diff --git a/hack/verify-flags/exceptions.txt b/hack/verify-flags/exceptions.txt index be68ee4bf1..289e0f9cbe 100644 --- a/hack/verify-flags/exceptions.txt +++ b/hack/verify-flags/exceptions.txt @@ -3,6 +3,8 @@ ingress/controllers/nginx/configuration.md:Setting at least one code this also e ingress/controllers/nginx/nginx.tmpl: require("error_page") ingress/controllers/nginx/nginx.tmpl: error_page {{ $errCode }} = @custom_{{ $errCode }};{{ end }} ingress/controllers/nginx/nginx/config/config.go: // enables which HTTP codes should be passed for processing with the error_page directive +kubelet-to-gcm/monitor/kubelet_to_gcm.go: "container_name": containerName, +kubelet-to-gcm/monitor/kubelet_to_gcm.go: "container_name": "", mungegithub/mungers/submit-queue.go: sq.e2e = &fake_e2e.FakeE2ETester{ mungegithub/mungers/submit-queue.go: fake_e2e "k8s.io/contrib/mungegithub/mungers/e2e/fake" mungegithub/mungers/submit-queue_test.go: e2e := sq.e2e.(*fake_e2e.FakeE2ETester) diff --git a/ingress/Godeps/Godeps.json b/ingress/Godeps/Godeps.json index 6d09f6d14d..6863964754 100644 --- a/ingress/Godeps/Godeps.json +++ b/ingress/Godeps/Godeps.json @@ -7,9 +7,9 @@ ], "Deps": [ { - "ImportPath": "github.com/Sirupsen/logrus", - "Comment": "v0.6.2-10-g51fe59a", - "Rev": "51fe59aca108dc5680109e7b2051cbdcfa5a253c" + "ImportPath": "bitbucket.org/ww/goautoneg", + "Comment": "null-5", + "Rev": "'75cd24fc2f2c2a2088577d12123ddee5f54e0675'" }, { "ImportPath": "github.com/beorn7/perks/quantile", @@ -20,6 +20,61 @@ "Comment": "v3.0.1", "Rev": "31b736133b98f26d5e078ec9eb591666edfd091f" }, + { + "ImportPath": "github.com/coreos/etcd/auth/authpb", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/client", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/clientv3", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/etcdserver/etcdserverpb", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/mvcc/mvccpb", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/pkg/fileutil", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/pkg/pathutil", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/pkg/tlsutil", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/pkg/transport", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, + { + "ImportPath": "github.com/coreos/etcd/pkg/types", + "Comment": "v3.0.6", + "Rev": "9efa00d1030d4bf62eb8e5ec130023aeb1b8e2d0" + }, { "ImportPath": "github.com/coreos/go-oidc/http", "Rev": "5cf2aa52da8c574d3aa4458f471ad6ae2240fe6b" @@ -47,23 +102,23 @@ }, { "ImportPath": "github.com/coreos/pkg/capnslog", - "Comment": "v2", - "Rev": "7f080b6c11ac2d2347c3cd7521e810207ea1a041" + "Comment": "v2-8-gfa29b1d", + "Rev": "fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8" }, { "ImportPath": "github.com/coreos/pkg/health", - "Comment": "v2", - "Rev": "7f080b6c11ac2d2347c3cd7521e810207ea1a041" + "Comment": "v2-8-gfa29b1d", + "Rev": "fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8" }, { "ImportPath": "github.com/coreos/pkg/httputil", - "Comment": "v2", - "Rev": "7f080b6c11ac2d2347c3cd7521e810207ea1a041" + "Comment": "v2-8-gfa29b1d", + "Rev": "fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8" }, { "ImportPath": "github.com/coreos/pkg/timeutil", - "Comment": "v2", - "Rev": "7f080b6c11ac2d2347c3cd7521e810207ea1a041" + "Comment": "v2-8-gfa29b1d", + "Rev": "fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8" }, { "ImportPath": "github.com/davecgh/go-spew/spew", @@ -81,43 +136,43 @@ }, { "ImportPath": "github.com/docker/engine-api/types", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/blkiodev", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/container", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/filters", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/network", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/registry", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/strslice", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/engine-api/types/versions", - "Comment": "v0.3.1-62-g3d72d39", - "Rev": "3d72d392d07bece8d7d7b2a3b6b2e57c2df376a2" + "Comment": "v0.3.1-78-gdea108d", + "Rev": "dea108d3aa0c67d7162a3fd8aa65f38a430019fd" }, { "ImportPath": "github.com/docker/go-connections/nat", @@ -131,18 +186,18 @@ }, { "ImportPath": "github.com/emicklei/go-restful", - "Comment": "v1.2-66-gc4afa8e", - "Rev": "c4afa8e5421428d584b32d36d7b35f2c9ae5f823" + "Comment": "v1.2-79-g89ef8af", + "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" }, { "ImportPath": "github.com/emicklei/go-restful/log", - "Comment": "v1.2-66-gc4afa8e", - "Rev": "c4afa8e5421428d584b32d36d7b35f2c9ae5f823" + "Comment": "v1.2-79-g89ef8af", + "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" }, { "ImportPath": "github.com/emicklei/go-restful/swagger", - "Comment": "v1.2-66-gc4afa8e", - "Rev": "c4afa8e5421428d584b32d36d7b35f2c9ae5f823" + "Comment": "v1.2-79-g89ef8af", + "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" }, { "ImportPath": "github.com/evanphx/json-patch", @@ -158,8 +213,13 @@ }, { "ImportPath": "github.com/gogo/protobuf/proto", - "Comment": "v0.1-125-g82d16f7", - "Rev": "82d16f734d6d871204a3feb1a73cb220cc92574c" + "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", @@ -167,21 +227,40 @@ }, { "ImportPath": "github.com/golang/groupcache/lru", - "Rev": "604ed5785183e59ae2789449d89e73f3a2a77987" + "Rev": "02826c3e79038b59d737d3b1c0a1d937f71a4433" + }, + { + "ImportPath": "github.com/golang/protobuf/jsonpb", + "Rev": "8616e8ee5e20a1704615e6c8d7afcdac06087a67" }, { "ImportPath": "github.com/golang/protobuf/proto", - "Rev": "b982704f8bb716bb608144408cff30e15fbde841" + "Rev": "8616e8ee5e20a1704615e6c8d7afcdac06087a67" }, { "ImportPath": "github.com/google/cadvisor/info/v1", - "Comment": "v0.23.2-25-g51574ec", - "Rev": "51574ec04ff12ca5a50f0935625ec02437191a06" + "Comment": "v0.24.0-alpha1", + "Rev": "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd" }, { "ImportPath": "github.com/google/gofuzz", "Rev": "bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5" }, + { + "ImportPath": "github.com/grpc-ecosystem/grpc-gateway/runtime", + "Comment": "v1.0.0-8-gf52d055", + "Rev": "f52d055dc48aec25854ed7d31862f78913cf17d1" + }, + { + "ImportPath": "github.com/grpc-ecosystem/grpc-gateway/runtime/internal", + "Comment": "v1.0.0-8-gf52d055", + "Rev": "f52d055dc48aec25854ed7d31862f78913cf17d1" + }, + { + "ImportPath": "github.com/grpc-ecosystem/grpc-gateway/utilities", + "Comment": "v1.0.0-8-gf52d055", + "Rev": "f52d055dc48aec25854ed7d31862f78913cf17d1" + }, { "ImportPath": "github.com/imdario/mergo", "Comment": "0.1.3-8-g6633656", @@ -193,7 +272,7 @@ }, { "ImportPath": "github.com/jonboulle/clockwork", - "Rev": "3f831b65b61282ba6bece21b91beea2edc4c887a" + "Rev": "72f9bd7c4e0c2a40055ab3d0f09654f730cce982" }, { "ImportPath": "github.com/juju/ratelimit", @@ -207,39 +286,14 @@ "ImportPath": "github.com/mitchellh/mapstructure", "Rev": "740c764bc6149d3f1806231418adb9f52c11bcbf" }, - { - "ImportPath": "github.com/opencontainers/runc/libcontainer/cgroups", - "Comment": "v1.0.0-rc1-57-g4eb8c2f", - "Rev": "4eb8c2fb1dcb10fa3bf9bd7031f3a25a8ce2fef6" - }, - { - "ImportPath": "github.com/opencontainers/runc/libcontainer/cgroups/fs", - "Comment": "v1.0.0-rc1-57-g4eb8c2f", - "Rev": "4eb8c2fb1dcb10fa3bf9bd7031f3a25a8ce2fef6" - }, - { - "ImportPath": "github.com/opencontainers/runc/libcontainer/configs", - "Comment": "v1.0.0-rc1-57-g4eb8c2f", - "Rev": "4eb8c2fb1dcb10fa3bf9bd7031f3a25a8ce2fef6" - }, - { - "ImportPath": "github.com/opencontainers/runc/libcontainer/system", - "Comment": "v1.0.0-rc1-57-g4eb8c2f", - "Rev": "4eb8c2fb1dcb10fa3bf9bd7031f3a25a8ce2fef6" - }, - { - "ImportPath": "github.com/opencontainers/runc/libcontainer/utils", - "Comment": "v1.0.0-rc1-57-g4eb8c2f", - "Rev": "4eb8c2fb1dcb10fa3bf9bd7031f3a25a8ce2fef6" - }, { "ImportPath": "github.com/pborman/uuid", "Rev": "ca53cad383cad2479bbba7f7a1a05797ec1386e4" }, { "ImportPath": "github.com/prometheus/client_golang/prometheus", - "Comment": "0.7.0-39-g3b78d7a", - "Rev": "3b78d7a77f51ccbc364d4bc170920153022cfd08" + "Comment": "0.7.0-52-ge51041b", + "Rev": "e51041b3fa41cece0dca035740ba6411905be473" }, { "ImportPath": "github.com/prometheus/client_model/go", @@ -248,47 +302,55 @@ }, { "ImportPath": "github.com/prometheus/common/expfmt", - "Rev": "a6ab08426bb262e2d190097751f5cfd1cfdfd17d" - }, - { - "ImportPath": "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg", - "Rev": "a6ab08426bb262e2d190097751f5cfd1cfdfd17d" + "Rev": "ffe929a3f4c4faeaa10f2b9535c2b1be3ad15650" }, { "ImportPath": "github.com/prometheus/common/model", - "Rev": "a6ab08426bb262e2d190097751f5cfd1cfdfd17d" + "Rev": "ffe929a3f4c4faeaa10f2b9535c2b1be3ad15650" }, { "ImportPath": "github.com/prometheus/procfs", - "Rev": "490cc6eb5fa45bf8a8b7b73c8bc82a8160e8531d" + "Rev": "454a56f35412459b5e684fd5ec0f9211b94f002a" }, { "ImportPath": "github.com/spf13/cobra", - "Rev": "4c05eb1145f16d0e6bb4a3e1b6d769f4713cb41f" + "Rev": "f62e98d28ab7ad31d707ba837a966378465c7b57" }, { "ImportPath": "github.com/spf13/pflag", - "Rev": "08b1a584251b5b62f458943640fc8ebd4d50aaa5" + "Rev": "1560c1005499d61b80f865c04d39ca7505bf7f0b" }, { "ImportPath": "github.com/ugorji/go/codec", - "Rev": "f4485b318aadd133842532f841dc205a8e339d74" + "Rev": "f1f1a805ed361a0e078bb537e4ea78cd37dcf065" }, { "ImportPath": "golang.org/x/net/context", - "Rev": "62685c2d7ca23c807425dca88b11a3e2323dab41" + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" }, { "ImportPath": "golang.org/x/net/context/ctxhttp", - "Rev": "62685c2d7ca23c807425dca88b11a3e2323dab41" + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" }, { "ImportPath": "golang.org/x/net/http2", - "Rev": "62685c2d7ca23c807425dca88b11a3e2323dab41" + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" }, { "ImportPath": "golang.org/x/net/http2/hpack", - "Rev": "62685c2d7ca23c807425dca88b11a3e2323dab41" + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "golang.org/x/net/internal/timeseries", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "golang.org/x/net/lex/httplex", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "golang.org/x/net/trace", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" }, { "ImportPath": "golang.org/x/oauth2", @@ -338,6 +400,56 @@ "ImportPath": "google.golang.org/cloud/internal", "Rev": "eb47ba841d53d93506cfbfbc03927daf9cc48f88" }, + { + "ImportPath": "google.golang.org/grpc", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/codes", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/credentials", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/grpclog", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/internal", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/metadata", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/naming", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/peer", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "google.golang.org/grpc/transport", + "Comment": "v1.0.0-6-g02fca89", + "Rev": "02fca896ff5f50c6bbbee0860345a49344b37a03" + }, + { + "ImportPath": "gopkg.in/fsnotify.v1", + "Comment": "v1.2.9", + "Rev": "8611c35ab31c1c28aa903d33cf8b6e44a399b09e" + }, { "ImportPath": "gopkg.in/gcfg.v1", "Rev": "083575c3955c85df16fe9590cceab64d03f5eb6e" @@ -361,742 +473,1157 @@ }, { "ImportPath": "gopkg.in/yaml.v2", - "Rev": "a83829b6f1293c91addabc89d0571c246397bbf4" + "Rev": "53feefa2559fb8dfa8d81baad31be332c97d6c77" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/endpoints", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/metatypes", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/pod", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/validation", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/util", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/recognizer", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/streaming", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/versioning", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/clock", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/crypto", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/framer", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/hash", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/integer", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/json", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/parsers", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/rand", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/runtime", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/uuid", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/yaml", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/metrics", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/federation/apis/federation", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/federation/apis/federation/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/federation/apis/federation/v1beta1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/annotations", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/endpoints", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/errors", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/meta", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/meta/metatypes", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/pod", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/resource", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/rest", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/service", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/testapi", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/unversioned/validation", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/util", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/v1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/api/validation", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apimachinery", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apimachinery/registered", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/apps", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/apps/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/apps/v1alpha1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { - "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication.k8s.io", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { - "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication.k8s.io/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication/install", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { - "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication/v1beta1", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/authorization", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/authorization/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/authorization/v1beta1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/autoscaling", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/autoscaling/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/autoscaling/v1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/batch", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/batch/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/batch/v1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/batch/v2alpha1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/certificates", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/certificates/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/certificates/v1alpha1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/componentconfig", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/componentconfig/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions/v1beta1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions/validation", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/imagepolicy", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/imagepolicy/install", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/policy", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/policy/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/policy/v1alpha1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/rbac", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/rbac/install", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/auth/user", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/capabilities", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/cache", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/metrics", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/record", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/restclient", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/transport", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/typed/discovery", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/typed/dynamic", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/adapters/internalclientset", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/auth", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/latest", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/testclient", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/cloudprovider", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/cloudprovider/providers/gce", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/controller", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/controller/deployment/util", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/controller/framework", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/conversion", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/conversion/queryparams", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/credentialprovider", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/fieldpath", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/fields", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/healthz", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/kubectl", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/kubectl/cmd/util", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/kubectl/resource", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/kubelet/qos", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/kubelet/types", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/labels", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/master/ports", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/registry/generic", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/json", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/protobuf", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/recognizer", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/streaming", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/versioning", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/security/apparmor", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/security/podsecuritypolicy/util", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/selection", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/storage", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/storage/etcd", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/storage/etcd/metrics", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/storage/etcd/util", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/storage/etcd3", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/storage/storagebackend", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/storage/storagebackend/factory", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/types", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/cache", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/certificates", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/clock", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/config", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/crypto", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/errors", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/exec", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/flag", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/flowcontrol", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/framer", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/hash", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/homedir", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/integer", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/intstr", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/json", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/jsonpath", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/labels", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/net", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/net/sets", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/parsers", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/pod", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/rand", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/replicaset", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/runtime", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/sets", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/slice", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/strategicpatch", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/sysctl", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/uuid", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/validation", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/validation/field", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/wait", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/workqueue", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/util/yaml", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/version", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/watch", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/pkg/watch/versioned", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/plugin/pkg/client/auth", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/plugin/pkg/client/auth/gcp", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/plugin/pkg/client/auth/oidc", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" + }, + { + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest", + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/third_party/forked/golang/json", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/third_party/forked/golang/reflect", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" }, { "ImportPath": "k8s.io/kubernetes/third_party/forked/golang/template", - "Comment": "v1.4.0-alpha.1-42-gb840f03", - "Rev": "b840f039cce0e142f8ba014ec0722a19e58bfc2d" + "Comment": "v1.4.0-alpha.2-1731-gb44b716", + "Rev": "b44b716965db2d54c8c7dfcdbcb1d54792ab8559" } ] } diff --git a/ingress/controllers/gce/controller/controller.go b/ingress/controllers/gce/controller/controller.go index 62ace16d1c..0bcea2e81f 100644 --- a/ingress/controllers/gce/controller/controller.go +++ b/ingress/controllers/gce/controller/controller.go @@ -464,7 +464,7 @@ func (lbc *LoadBalancerController) getReadyNodeNames() ([]string, error) { if err != nil { return nodeNames, err } - for _, n := range nodes.Items { + for _, n := range nodes { if n.Spec.Unschedulable { continue } diff --git a/ingress/controllers/gce/controller/controller_test.go b/ingress/controllers/gce/controller/controller_test.go index 8fa636dcc3..051c0c841d 100644 --- a/ingress/controllers/gce/controller/controller_test.go +++ b/ingress/controllers/gce/controller/controller_test.go @@ -31,9 +31,9 @@ import ( "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/client/restclient" client "k8s.io/kubernetes/pkg/client/unversioned" - "k8s.io/kubernetes/pkg/util" "k8s.io/kubernetes/pkg/util/intstr" "k8s.io/kubernetes/pkg/util/sets" + "k8s.io/kubernetes/pkg/util/uuid" ) const testClusterName = "testcluster" @@ -94,7 +94,7 @@ func toIngressRules(hostRules map[string]utils.FakeIngressRuleValueMap) []extens func newIngress(hostRules map[string]utils.FakeIngressRuleValueMap) *extensions.Ingress { return &extensions.Ingress{ ObjectMeta: api.ObjectMeta{ - Name: fmt.Sprintf("%v", util.NewUUID()), + Name: fmt.Sprintf("%v", uuid.NewUUID()), Namespace: api.NamespaceNone, }, Spec: extensions.IngressSpec{ diff --git a/ingress/controllers/gce/controller/utils.go b/ingress/controllers/gce/controller/utils.go index 24dc971373..aff5040be7 100644 --- a/ingress/controllers/gce/controller/utils.go +++ b/ingress/controllers/gce/controller/utils.go @@ -358,7 +358,7 @@ func (t *GCETranslator) toNodePorts(ings *extensions.IngressList) []int64 { return knownPorts } -func getZone(n api.Node) string { +func getZone(n *api.Node) string { zone, ok := n.Labels[zoneKey] if !ok { return defaultZone @@ -372,7 +372,7 @@ func (t *GCETranslator) GetZoneForNode(name string) (string, error) { if err != nil { return "", err } - for _, n := range nodes.Items { + for _, n := range nodes { if n.Name == name { // TODO: Make this more resilient to label changes by listing // cloud nodes and figuring out zone. @@ -389,7 +389,7 @@ func (t *GCETranslator) ListZones() ([]string, error) { if err != nil { return zones.List(), err } - for _, n := range readyNodes.Items { + for _, n := range readyNodes { zones.Insert(getZone(n)) } return zones.List(), nil diff --git a/ingress/controllers/nginx/Dockerfile b/ingress/controllers/nginx/Dockerfile index 3a295fb078..ab4997e927 100644 --- a/ingress/controllers/nginx/Dockerfile +++ b/ingress/controllers/nginx/Dockerfile @@ -23,6 +23,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ COPY nginx-ingress-controller / COPY nginx.tmpl /etc/nginx/template/nginx.tmpl +COPY nginx.tmpl /etc/nginx/nginx.tmpl COPY default.conf /etc/nginx/nginx.conf COPY lua /etc/nginx/lua/ diff --git a/ingress/controllers/nginx/configuration.md b/ingress/controllers/nginx/configuration.md index e8b160406a..0716b27e59 100644 --- a/ingress/controllers/nginx/configuration.md +++ b/ingress/controllers/nginx/configuration.md @@ -282,7 +282,6 @@ Responses with the "text/html" type are always compressed if `use-gzip` is enabl ### Default configuration options -Running `/nginx-ingress-controller --dump-nginx-configuration` is possible to get the value of the options that can be changed. The next table shows the options, the default value and a description |name |default| diff --git a/ingress/controllers/nginx/controller.go b/ingress/controllers/nginx/controller.go index 727b66c36e..29e71b3746 100644 --- a/ingress/controllers/nginx/controller.go +++ b/ingress/controllers/nginx/controller.go @@ -44,6 +44,7 @@ import ( "k8s.io/contrib/ingress/controllers/nginx/nginx/auth" "k8s.io/contrib/ingress/controllers/nginx/nginx/config" "k8s.io/contrib/ingress/controllers/nginx/nginx/healthcheck" + "k8s.io/contrib/ingress/controllers/nginx/nginx/ingress" "k8s.io/contrib/ingress/controllers/nginx/nginx/ipwhitelist" "k8s.io/contrib/ingress/controllers/nginx/nginx/ratelimit" "k8s.io/contrib/ingress/controllers/nginx/nginx/rewrite" @@ -453,7 +454,7 @@ func (lbc *loadBalancerController) sync(key string) error { ings := lbc.ingLister.Store.List() upstreams, servers := lbc.getUpstreamServers(ngxConfig, ings) - return lbc.nginx.CheckAndReload(ngxConfig, nginx.IngressConfig{ + return lbc.nginx.CheckAndReload(ngxConfig, ingress.Configuration{ Upstreams: upstreams, Servers: servers, TCPUpstreams: lbc.getTCPServices(), @@ -513,48 +514,48 @@ func (lbc *loadBalancerController) isStatusIPDefined(lbings []api.LoadBalancerIn return false } -func (lbc *loadBalancerController) getTCPServices() []*nginx.Location { +func (lbc *loadBalancerController) getTCPServices() []*ingress.Location { if lbc.tcpConfigMap == "" { // no configmap for TCP services - return []*nginx.Location{} + return []*ingress.Location{} } ns, name, err := parseNsName(lbc.tcpConfigMap) if err != nil { glog.Warningf("%v", err) - return []*nginx.Location{} + return []*ingress.Location{} } tcpMap, err := lbc.getTCPConfigMap(ns, name) if err != nil { glog.V(3).Infof("no configured tcp services found: %v", err) - return []*nginx.Location{} + return []*ingress.Location{} } return lbc.getStreamServices(tcpMap.Data, api.ProtocolTCP) } -func (lbc *loadBalancerController) getUDPServices() []*nginx.Location { +func (lbc *loadBalancerController) getUDPServices() []*ingress.Location { if lbc.udpConfigMap == "" { // no configmap for TCP services - return []*nginx.Location{} + return []*ingress.Location{} } ns, name, err := parseNsName(lbc.udpConfigMap) if err != nil { glog.Warningf("%v", err) - return []*nginx.Location{} + return []*ingress.Location{} } tcpMap, err := lbc.getUDPConfigMap(ns, name) if err != nil { glog.V(3).Infof("no configured tcp services found: %v", err) - return []*nginx.Location{} + return []*ingress.Location{} } return lbc.getStreamServices(tcpMap.Data, api.ProtocolUDP) } -func (lbc *loadBalancerController) getStreamServices(data map[string]string, proto api.Protocol) []*nginx.Location { - var svcs []*nginx.Location +func (lbc *loadBalancerController) getStreamServices(data map[string]string, proto api.Protocol) []*ingress.Location { + var svcs []*ingress.Location // k -> port to expose in nginx // v -> /: for k, v := range data { @@ -598,7 +599,7 @@ func (lbc *loadBalancerController) getStreamServices(data map[string]string, pro svc := svcObj.(*api.Service) - var endps []nginx.UpstreamServer + var endps []ingress.UpstreamServer targetPort, err := strconv.Atoi(svcPort) if err != nil { for _, sp := range svc.Spec.Ports { @@ -624,9 +625,9 @@ func (lbc *loadBalancerController) getStreamServices(data map[string]string, pro continue } - svcs = append(svcs, &nginx.Location{ + svcs = append(svcs, &ingress.Location{ Path: k, - Upstream: nginx.Upstream{ + Upstream: ingress.Upstream{ Name: fmt.Sprintf("%v-%v-%v", svcNs, svcName, port), Backends: endps, }, @@ -636,8 +637,8 @@ func (lbc *loadBalancerController) getStreamServices(data map[string]string, pro return svcs } -func (lbc *loadBalancerController) getDefaultUpstream() *nginx.Upstream { - upstream := &nginx.Upstream{ +func (lbc *loadBalancerController) getDefaultUpstream() *ingress.Upstream { + upstream := &ingress.Upstream{ Name: defUpstreamName, } svcKey := lbc.defaultSvc @@ -667,7 +668,7 @@ func (lbc *loadBalancerController) getDefaultUpstream() *nginx.Upstream { return upstream } -func (lbc *loadBalancerController) getUpstreamServers(ngxCfg config.Configuration, data []interface{}) ([]*nginx.Upstream, []*nginx.Server) { +func (lbc *loadBalancerController) getUpstreamServers(ngxCfg config.Configuration, data []interface{}) ([]*ingress.Upstream, []*ingress.Server) { upstreams := lbc.createUpstreams(ngxCfg, data) servers := lbc.createServers(data) @@ -754,7 +755,7 @@ func (lbc *loadBalancerController) getUpstreamServers(ngxCfg config.Configuratio if addLoc { - server.Locations = append(server.Locations, &nginx.Location{ + server.Locations = append(server.Locations, &ingress.Location{ Path: nginxPath, Upstream: *ups, Auth: *nginxAuth, @@ -771,31 +772,31 @@ func (lbc *loadBalancerController) getUpstreamServers(ngxCfg config.Configuratio // TODO: find a way to make this more readable // The structs must be ordered to always generate the same file // if the content does not change. - aUpstreams := make([]*nginx.Upstream, 0, len(upstreams)) + aUpstreams := make([]*ingress.Upstream, 0, len(upstreams)) for _, value := range upstreams { if len(value.Backends) == 0 { glog.Warningf("upstream %v does not have any active endpoints. Using default backend", value.Name) value.Backends = append(value.Backends, nginx.NewDefaultServer()) } - sort.Sort(nginx.UpstreamServerByAddrPort(value.Backends)) + sort.Sort(ingress.UpstreamServerByAddrPort(value.Backends)) aUpstreams = append(aUpstreams, value) } - sort.Sort(nginx.UpstreamByNameServers(aUpstreams)) + sort.Sort(ingress.UpstreamByNameServers(aUpstreams)) - aServers := make([]*nginx.Server, 0, len(servers)) + aServers := make([]*ingress.Server, 0, len(servers)) for _, value := range servers { - sort.Sort(nginx.LocationByPath(value.Locations)) + sort.Sort(ingress.LocationByPath(value.Locations)) aServers = append(aServers, value) } - sort.Sort(nginx.ServerByName(aServers)) + sort.Sort(ingress.ServerByName(aServers)) return aUpstreams, aServers } // createUpstreams creates the NGINX upstreams for each service referenced in // Ingress rules. The servers inside the upstream are endpoints. -func (lbc *loadBalancerController) createUpstreams(ngxCfg config.Configuration, data []interface{}) map[string]*nginx.Upstream { - upstreams := make(map[string]*nginx.Upstream) +func (lbc *loadBalancerController) createUpstreams(ngxCfg config.Configuration, data []interface{}) map[string]*ingress.Upstream { + upstreams := make(map[string]*ingress.Upstream) upstreams[defUpstreamName] = lbc.getDefaultUpstream() for _, ingIf := range data { @@ -852,12 +853,12 @@ func (lbc *loadBalancerController) createUpstreams(ngxCfg config.Configuration, return upstreams } -func (lbc *loadBalancerController) createServers(data []interface{}) map[string]*nginx.Server { - servers := make(map[string]*nginx.Server) +func (lbc *loadBalancerController) createServers(data []interface{}) map[string]*ingress.Server { + servers := make(map[string]*ingress.Server) pems := lbc.getPemsFromIngress(data) - var ngxCert nginx.SSLCert + var ngxCert ingress.SSLCert var err error if lbc.defSSLCertificate == "" { @@ -868,13 +869,13 @@ func (lbc *loadBalancerController) createServers(data []interface{}) map[string] ngxCert, err = lbc.getPemCertificate(lbc.defSSLCertificate) } - locs := []*nginx.Location{} - locs = append(locs, &nginx.Location{ + locs := []*ingress.Location{} + locs = append(locs, &ingress.Location{ Path: rootLocation, IsDefBackend: true, Upstream: *lbc.getDefaultUpstream(), }) - servers[defServerName] = &nginx.Server{Name: defServerName, Locations: locs} + servers[defServerName] = &ingress.Server{Name: defServerName, Locations: locs} if err == nil { pems[defServerName] = ngxCert @@ -896,13 +897,13 @@ func (lbc *loadBalancerController) createServers(data []interface{}) map[string] } if _, ok := servers[host]; !ok { - locs := []*nginx.Location{} - locs = append(locs, &nginx.Location{ + locs := []*ingress.Location{} + locs = append(locs, &ingress.Location{ Path: rootLocation, IsDefBackend: true, Upstream: *lbc.getDefaultUpstream(), }) - servers[host] = &nginx.Server{Name: host, Locations: locs} + servers[host] = &ingress.Server{Name: host, Locations: locs} } if ngxCert, ok := pems[host]; ok { @@ -918,8 +919,8 @@ func (lbc *loadBalancerController) createServers(data []interface{}) map[string] return servers } -func (lbc *loadBalancerController) getPemsFromIngress(data []interface{}) map[string]nginx.SSLCert { - pems := make(map[string]nginx.SSLCert) +func (lbc *loadBalancerController) getPemsFromIngress(data []interface{}) map[string]ingress.SSLCert { + pems := make(map[string]ingress.SSLCert) for _, ingIf := range data { ing := ingIf.(*extensions.Ingress) @@ -946,23 +947,23 @@ func (lbc *loadBalancerController) getPemsFromIngress(data []interface{}) map[st return pems } -func (lbc *loadBalancerController) getPemCertificate(secretName string) (nginx.SSLCert, error) { +func (lbc *loadBalancerController) getPemCertificate(secretName string) (ingress.SSLCert, error) { secretInterface, exists, err := lbc.secrLister.Store.GetByKey(secretName) if err != nil { - return nginx.SSLCert{}, fmt.Errorf("Error retriveing secret %v: %v", secretName, err) + return ingress.SSLCert{}, fmt.Errorf("Error retriveing secret %v: %v", secretName, err) } if !exists { - return nginx.SSLCert{}, fmt.Errorf("Secret %v does not exists", secretName) + return ingress.SSLCert{}, fmt.Errorf("Secret %v does not exists", secretName) } secret := secretInterface.(*api.Secret) cert, ok := secret.Data[api.TLSCertKey] if !ok { - return nginx.SSLCert{}, fmt.Errorf("Secret %v has no private key", secretName) + return ingress.SSLCert{}, fmt.Errorf("Secret %v has no private key", secretName) } key, ok := secret.Data[api.TLSPrivateKeyKey] if !ok { - return nginx.SSLCert{}, fmt.Errorf("Secret %v has no cert", secretName) + return ingress.SSLCert{}, fmt.Errorf("Secret %v has no cert", secretName) } nsSecName := strings.Replace(secretName, "/", "-", -1) @@ -986,15 +987,15 @@ func (lbc *loadBalancerController) secrReferenced(namespace string, name string) } // getEndpoints returns a list of : for a given service/target port combination. -func (lbc *loadBalancerController) getEndpoints(s *api.Service, servicePort intstr.IntOrString, proto api.Protocol, hz *healthcheck.Upstream) []nginx.UpstreamServer { +func (lbc *loadBalancerController) getEndpoints(s *api.Service, servicePort intstr.IntOrString, proto api.Protocol, hz *healthcheck.Upstream) []ingress.UpstreamServer { glog.V(3).Infof("getting endpoints for service %v/%v and port %v", s.Namespace, s.Name, servicePort.String()) ep, err := lbc.endpLister.GetServiceEndpoints(s) if err != nil { glog.Warningf("unexpected error obtaining service endpoints: %v", err) - return []nginx.UpstreamServer{} + return []ingress.UpstreamServer{} } - upsServers := []nginx.UpstreamServer{} + upsServers := []ingress.UpstreamServer{} for _, ss := range ep.Subsets { for _, epPort := range ss.Ports { @@ -1044,7 +1045,7 @@ func (lbc *loadBalancerController) getEndpoints(s *api.Service, servicePort ints } for _, epAddress := range ss.Addresses { - ups := nginx.UpstreamServer{ + ups := ingress.UpstreamServer{ Address: epAddress.IP, Port: fmt.Sprintf("%v", targetPort), MaxFails: hz.MaxFails, diff --git a/ingress/controllers/nginx/main.go b/ingress/controllers/nginx/main.go index f561e3b304..a3d9a3f08d 100644 --- a/ingress/controllers/nginx/main.go +++ b/ingress/controllers/nginx/main.go @@ -29,8 +29,6 @@ import ( "github.com/golang/glog" "github.com/spf13/pflag" - "k8s.io/contrib/ingress/controllers/nginx/nginx" - "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/client/unversioned" "k8s.io/kubernetes/pkg/healthz" @@ -77,9 +75,6 @@ var ( healthzPort = flags.Int("healthz-port", healthPort, "port for healthz endpoint.") - buildCfg = flags.Bool("dump-nginx-configuration", false, `Returns a ConfigMap with the default nginx conguration. - This can be used as a guide to create a custom configuration.`) - profiling = flags.Bool("profiling", true, `Enable profiling via web interface host:port/debug/pprof/`) defSSLCertificate = flags.String("default-ssl-certificate", "", `Name of the secret that contains a SSL @@ -93,11 +88,6 @@ func main() { glog.Infof("Using build: %v - %v", gitRepo, version) - if *buildCfg { - fmt.Printf("Example of ConfigMap to customize NGINX configuration:\n%v", nginx.ConfigMapAsString()) - os.Exit(0) - } - if *defaultSvc == "" { glog.Fatalf("Please specify --default-backend-service") } @@ -123,7 +113,7 @@ func main() { glog.Infof("Validated %v as the default backend", *defaultSvc) if *nxgConfigMap != "" { - _, _, err := parseNsName(*nxgConfigMap) + _, _, err = parseNsName(*nxgConfigMap) if err != nil { glog.Fatalf("configmap error: %v", err) } @@ -158,12 +148,12 @@ func registerHandlers(lbc *loadBalancerController) { mux := http.NewServeMux() healthz.InstallHandler(mux, lbc.nginx) - http.HandleFunc("/build", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/build", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) fmt.Fprintf(w, "build: %v - %v", gitRepo, version) }) - http.HandleFunc("/stop", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/stop", func(w http.ResponseWriter, r *http.Request) { lbc.Stop() }) diff --git a/ingress/controllers/nginx/nginx/command.go b/ingress/controllers/nginx/nginx/command.go index 39512670af..ec69a12a8a 100644 --- a/ingress/controllers/nginx/nginx/command.go +++ b/ingress/controllers/nginx/nginx/command.go @@ -27,6 +27,7 @@ import ( "k8s.io/kubernetes/pkg/healthz" "k8s.io/contrib/ingress/controllers/nginx/nginx/config" + "k8s.io/contrib/ingress/controllers/nginx/nginx/ingress" ) // Start starts a nginx (master process) and waits. If the process ends @@ -56,19 +57,23 @@ func (ngx *Manager) Start() { // shut down, stop accepting new connections and continue to service current requests // until all such requests are serviced. After that, the old worker processes exit. // http://nginx.org/en/docs/beginners_guide.html#control -func (ngx *Manager) CheckAndReload(cfg config.Configuration, ingressCfg IngressConfig) error { +func (ngx *Manager) CheckAndReload(cfg config.Configuration, ingressCfg ingress.Configuration) error { ngx.reloadRateLimiter.Accept() ngx.reloadLock.Lock() defer ngx.reloadLock.Unlock() - newCfg, err := ngx.writeCfg(cfg, ingressCfg) - + newCfg, err := ngx.template.Write(cfg, ingressCfg) if err != nil { return fmt.Errorf("failed to write new nginx configuration. Avoiding reload: %v", err) } - if newCfg { + changed, err := ngx.needsReload(newCfg) + if err != nil { + return err + } + + if changed { if err := ngx.shellOut("nginx -s reload"); err != nil { return fmt.Errorf("error reloading nginx: %v", err) } diff --git a/ingress/controllers/nginx/nginx/healthcheck/main_test.go b/ingress/controllers/nginx/nginx/healthcheck/main_test.go index 348df45e6e..aa96795f61 100644 --- a/ingress/controllers/nginx/nginx/healthcheck/main_test.go +++ b/ingress/controllers/nginx/nginx/healthcheck/main_test.go @@ -84,7 +84,7 @@ func TestAnnotations(t *testing.T) { t.Errorf("Unexpected error: %v", err) } if mf != 1 { - t.Errorf("Expected 1 but returned %s", mf) + t.Errorf("Expected 1 but returned %v", mf) } ft, err := ingAnnotations(ing.GetAnnotations()).failTimeout() @@ -92,7 +92,7 @@ func TestAnnotations(t *testing.T) { t.Errorf("Unexpected error: %v", err) } if ft != 1 { - t.Errorf("Expected 1 but returned %s", ft) + t.Errorf("Expected 1 but returned %v", ft) } } diff --git a/ingress/controllers/nginx/nginx/nginx.go b/ingress/controllers/nginx/nginx/ingress/nginx.go similarity index 84% rename from ingress/controllers/nginx/nginx/nginx.go rename to ingress/controllers/nginx/nginx/ingress/nginx.go index 31986d9b94..6dcff198a9 100644 --- a/ingress/controllers/nginx/nginx/nginx.go +++ b/ingress/controllers/nginx/nginx/ingress/nginx.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package nginx +package ingress import ( "k8s.io/contrib/ingress/controllers/nginx/nginx/auth" @@ -23,8 +23,8 @@ import ( "k8s.io/contrib/ingress/controllers/nginx/nginx/rewrite" ) -// IngressConfig describes an NGINX configuration -type IngressConfig struct { +// Configuration describes an NGINX configuration +type Configuration struct { Upstreams []*Upstream Servers []*Server TCPUpstreams []*Location @@ -113,15 +113,15 @@ func (c LocationByPath) Less(i, j int) bool { return c[i].Path > c[j].Path } -// NewDefaultServer return an UpstreamServer to be use as default server that returns 503. -func NewDefaultServer() UpstreamServer { - return UpstreamServer{Address: "127.0.0.1", Port: "8181"} -} - -// NewUpstream creates an upstream without servers. -func NewUpstream(name string) *Upstream { - return &Upstream{ - Name: name, - Backends: []UpstreamServer{}, - } +// SSLCert describes a SSL certificate to be used in NGINX +type SSLCert struct { + CertFileName string + KeyFileName string + // PemFileName contains the path to the file with the certificate and key concatenated + PemFileName string + // PemSHA contains the sha1 of the pem file. + // This is used to detect changes in the secret that contains the certificates + PemSHA string + // CN contains all the common names defined in the SSL certificate + CN []string } diff --git a/ingress/controllers/nginx/nginx/main.go b/ingress/controllers/nginx/nginx/main.go index f60ad2dad6..9f0d68cb75 100644 --- a/ingress/controllers/nginx/nginx/main.go +++ b/ingress/controllers/nginx/nginx/main.go @@ -17,22 +17,22 @@ limitations under the License. package nginx import ( - "fmt" "os" "strings" "sync" - "text/template" "github.com/golang/glog" - "github.com/fatih/structs" - "github.com/ghodss/yaml" - - "k8s.io/kubernetes/pkg/api" client "k8s.io/kubernetes/pkg/client/unversioned" "k8s.io/kubernetes/pkg/util/flowcontrol" "k8s.io/contrib/ingress/controllers/nginx/nginx/config" + "k8s.io/contrib/ingress/controllers/nginx/nginx/ingress" + ngx_template "k8s.io/contrib/ingress/controllers/nginx/nginx/template" +) + +var ( + tmplPath = "/etc/nginx/template/nginx.tmpl" ) // Manager ... @@ -48,11 +48,24 @@ type Manager struct { reloadRateLimiter flowcontrol.RateLimiter // template loaded ready to be used to generate the nginx configuration file - template *template.Template + template *ngx_template.Template reloadLock *sync.Mutex } +// NewDefaultServer return an UpstreamServer to be use as default server that returns 503. +func NewDefaultServer() ingress.UpstreamServer { + return ingress.UpstreamServer{Address: "127.0.0.1", Port: "8181"} +} + +// NewUpstream creates an upstream without servers. +func NewUpstream(name string) *ingress.Upstream { + return &ingress.Upstream{ + Name: name, + Backends: []ingress.UpstreamServer{}, + } +} + // NewManager ... func NewManager(kubeClient *client.Client) *Manager { ngx := &Manager{ @@ -67,10 +80,26 @@ func NewManager(kubeClient *client.Client) *Manager { ngx.sslDHParam = ngx.SearchDHParamFile(config.SSLDirectory) - if err := ngx.loadTemplate(); err != nil { + var onChange func() + + onChange = func() { + template, err := ngx_template.NewTemplate(tmplPath, onChange) + if err != nil { + glog.Warningf("invalid NGINX template: %v", err) + return + } + + ngx.template.Close() + ngx.template = template + glog.Info("new NGINX template loaded") + } + + template, err := ngx_template.NewTemplate(tmplPath, onChange) + if err != nil { glog.Fatalf("invalid NGINX template: %v", err) } + ngx.template = template return ngx } @@ -83,25 +112,3 @@ func (nginx *Manager) createCertsDir(base string) { glog.Fatalf("Couldn't create directory %v: %v", base, err) } } - -// ConfigMapAsString returns a ConfigMap with the default NGINX -// configuration to be used a guide to provide a custom configuration -func ConfigMapAsString() string { - cfg := &api.ConfigMap{} - cfg.Name = "custom-name" - cfg.Namespace = "a-valid-namespace" - cfg.Data = make(map[string]string) - - data := structs.Map(config.NewDefault()) - for k, v := range data { - cfg.Data[k] = fmt.Sprintf("%v", v) - } - - out, err := yaml.Marshal(cfg) - if err != nil { - glog.Warningf("Unexpected error creating default configuration: %v", err) - return "" - } - - return string(out) -} diff --git a/ingress/controllers/nginx/nginx/ssl.go b/ingress/controllers/nginx/nginx/ssl.go index 33234756e8..7f7d8bb288 100644 --- a/ingress/controllers/nginx/nginx/ssl.go +++ b/ingress/controllers/nginx/nginx/ssl.go @@ -28,54 +28,42 @@ import ( "github.com/golang/glog" "k8s.io/contrib/ingress/controllers/nginx/nginx/config" + "k8s.io/contrib/ingress/controllers/nginx/nginx/ingress" ) -// SSLCert describes a SSL certificate to be used in NGINX -type SSLCert struct { - CertFileName string - KeyFileName string - // PemFileName contains the path to the file with the certificate and key concatenated - PemFileName string - // PemSHA contains the sha1 of the pem file. - // This is used to detect changes in the secret that contains the certificates - PemSHA string - // CN contains all the common names defined in the SSL certificate - CN []string -} - // AddOrUpdateCertAndKey creates a .pem file wth the cert and the key with the specified name -func (nginx *Manager) AddOrUpdateCertAndKey(name string, cert string, key string) (SSLCert, error) { +func (nginx *Manager) AddOrUpdateCertAndKey(name string, cert string, key string) (ingress.SSLCert, error) { temporaryPemFileName := fmt.Sprintf("%v.pem", name) pemFileName := fmt.Sprintf("%v/%v.pem", config.SSLDirectory, name) temporaryPemFile, err := ioutil.TempFile("", temporaryPemFileName) if err != nil { - return SSLCert{}, fmt.Errorf("Couldn't create temp pem file %v: %v", temporaryPemFile.Name(), err) + return ingress.SSLCert{}, fmt.Errorf("Couldn't create temp pem file %v: %v", temporaryPemFile.Name(), err) } _, err = temporaryPemFile.WriteString(fmt.Sprintf("%v\n%v", cert, key)) if err != nil { - return SSLCert{}, fmt.Errorf("Couldn't write to pem file %v: %v", temporaryPemFile.Name(), err) + return ingress.SSLCert{}, fmt.Errorf("Couldn't write to pem file %v: %v", temporaryPemFile.Name(), err) } err = temporaryPemFile.Close() if err != nil { - return SSLCert{}, fmt.Errorf("Couldn't close temp pem file %v: %v", temporaryPemFile.Name(), err) + return ingress.SSLCert{}, fmt.Errorf("Couldn't close temp pem file %v: %v", temporaryPemFile.Name(), err) } cn, err := nginx.commonNames(temporaryPemFile.Name()) if err != nil { os.Remove(temporaryPemFile.Name()) - return SSLCert{}, err + return ingress.SSLCert{}, err } err = os.Rename(temporaryPemFile.Name(), pemFileName) if err != nil { os.Remove(temporaryPemFile.Name()) - return SSLCert{}, fmt.Errorf("Couldn't move temp pem file %v to destination %v: %v", temporaryPemFile.Name(), pemFileName, err) + return ingress.SSLCert{}, fmt.Errorf("Couldn't move temp pem file %v to destination %v: %v", temporaryPemFile.Name(), pemFileName, err) } - return SSLCert{ + return ingress.SSLCert{ CertFileName: cert, KeyFileName: key, PemFileName: pemFileName, @@ -133,6 +121,8 @@ func (nginx *Manager) SearchDHParamFile(baseDir string) string { return "" } +// pemSHA1 returns the SHA1 of a pem file. This is used to +// reload NGINX in case a secret with a SSL certificate changed. func (nginx *Manager) pemSHA1(filename string) string { hasher := sha1.New() s, err := ioutil.ReadFile(filename) diff --git a/ingress/controllers/nginx/nginx/template/file_watcher.go b/ingress/controllers/nginx/nginx/template/file_watcher.go new file mode 100644 index 0000000000..e35afba116 --- /dev/null +++ b/ingress/controllers/nginx/nginx/template/file_watcher.go @@ -0,0 +1,72 @@ +/* +Copyright 2016 The Kubernetes Authors All rights reserved. + +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 template + +import ( + "log" + "path" + + "gopkg.in/fsnotify.v1" +) + +type fileWatcher struct { + file string + watcher *fsnotify.Watcher + onEvent func() +} + +func newFileWatcher(file string, onEvent func()) (fileWatcher, error) { + fw := fileWatcher{ + file: file, + onEvent: onEvent, + } + + err := fw.watch() + return fw, err +} + +func (f fileWatcher) close() error { + return f.watcher.Close() +} + +// watch creates a fsnotify watcher for a file and create of write events +func (f *fileWatcher) watch() error { + watcher, err := fsnotify.NewWatcher() + if err != nil { + return err + } + f.watcher = watcher + + dir, file := path.Split(f.file) + go func(file string) { + for { + select { + case event := <-watcher.Events: + if event.Op&fsnotify.Write == fsnotify.Write || + event.Op&fsnotify.Create == fsnotify.Create && + event.Name == file { + f.onEvent() + } + case err := <-watcher.Errors: + if err != nil { + log.Printf("error watching file: %v\n", err) + } + } + } + }(file) + return watcher.Add(dir) +} diff --git a/ingress/controllers/nginx/nginx/template.go b/ingress/controllers/nginx/nginx/template/template.go similarity index 77% rename from ingress/controllers/nginx/nginx/template.go rename to ingress/controllers/nginx/nginx/template/template.go index f5cd24f5c2..4014604156 100644 --- a/ingress/controllers/nginx/nginx/template.go +++ b/ingress/controllers/nginx/nginx/template/template.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package nginx +package template import ( "bytes" @@ -22,12 +22,14 @@ import ( "fmt" "regexp" "strings" - "text/template" + text_template "text/template" "github.com/fatih/structs" "github.com/golang/glog" "k8s.io/contrib/ingress/controllers/nginx/nginx/config" + "k8s.io/contrib/ingress/controllers/nginx/nginx/ingress" + "k8s.io/kubernetes/pkg/util/sysctl" ) const ( @@ -36,9 +38,8 @@ const ( var ( camelRegexp = regexp.MustCompile("[0-9A-Za-z]+") - tmplPath = "/etc/nginx/template/nginx.tmpl" - funcMap = template.FuncMap{ + funcMap = text_template.FuncMap{ "empty": func(input interface{}) bool { check, ok := input.(string) if ok { @@ -54,48 +55,64 @@ var ( } ) -func (ngx *Manager) loadTemplate() error { - tmpl, err := template.New("nginx.tmpl").Funcs(funcMap).ParseFiles(tmplPath) +// Template ... +type Template struct { + tmpl *text_template.Template + fw fileWatcher +} + +//NewTemplate returns a new Template instance or an +//error if the specified template file contains errors +func NewTemplate(file string, onChange func()) (*Template, error) { + tmpl, err := text_template.New("nginx.tmpl").Funcs(funcMap).ParseFiles(file) + if err != nil { + return nil, err + } + fw, err := newFileWatcher(file, onChange) if err != nil { - return err + return nil, err } - ngx.template = tmpl - return nil + + return &Template{ + tmpl: tmpl, + fw: fw, + }, nil +} + +// Close removes the file watcher +func (t *Template) Close() { + t.fw.close() } -func (ngx *Manager) writeCfg(cfg config.Configuration, ingressCfg IngressConfig) (bool, error) { +// Write populates a buffer using a template with NGINX configuration +// and the servers and upstreams created by Ingress rules +func (t *Template) Write(cfg config.Configuration, ingressCfg ingress.Configuration) ([]byte, error) { conf := make(map[string]interface{}) conf["backlogSize"] = sysctlSomaxconn() conf["upstreams"] = ingressCfg.Upstreams conf["servers"] = ingressCfg.Servers conf["tcpUpstreams"] = ingressCfg.TCPUpstreams conf["udpUpstreams"] = ingressCfg.UDPUpstreams - conf["defResolver"] = ngx.defResolver - conf["sslDHParam"] = ngx.sslDHParam + conf["defResolver"] = cfg.Resolver + conf["sslDHParam"] = cfg.SSLDHParam conf["customErrors"] = len(cfg.CustomHTTPErrors) > 0 conf["cfg"] = fixKeyNames(structs.Map(cfg)) if glog.V(3) { b, err := json.Marshal(conf) if err != nil { - glog.Errorf("unexpected error:", err) + glog.Errorf("unexpected error: %v", err) } glog.Infof("NGINX configuration: %v", string(b)) } buffer := new(bytes.Buffer) - err := ngx.template.Execute(buffer, conf) + err := t.tmpl.Execute(buffer, conf) if err != nil { glog.V(3).Infof("%v", string(buffer.Bytes())) - return false, err } - changed, err := ngx.needsReload(buffer) - if err != nil { - return false, err - } - - return changed, nil + return buffer.Bytes(), err } func fixKeyNames(data map[string]interface{}) map[string]interface{} { @@ -121,7 +138,7 @@ func toCamelCase(src string) string { // buildLocation produces the location string, if the ingress has redirects // (specified through the ingress.kubernetes.io/rewrite-to annotation) func buildLocation(input interface{}) string { - location, ok := input.(*Location) + location, ok := input.(*ingress.Location) if !ok { return slash } @@ -139,7 +156,7 @@ func buildLocation(input interface{}) string { // If the annotation ingress.kubernetes.io/add-base-url:"true" is specified it will // add a base tag in the head of the response from the service func buildProxyPass(input interface{}) string { - location, ok := input.(*Location) + location, ok := input.(*ingress.Location) if !ok { return "" } @@ -200,7 +217,7 @@ func buildProxyPass(input interface{}) string { func buildRateLimitZones(input interface{}) []string { zones := []string{} - servers, ok := input.([]*Server) + servers, ok := input.([]*ingress.Server) if !ok { return zones } @@ -230,7 +247,7 @@ func buildRateLimitZones(input interface{}) []string { func buildRateLimit(input interface{}) []string { limits := []string{} - loc, ok := input.(*Location) + loc, ok := input.(*ingress.Location) if !ok { return limits } @@ -249,3 +266,16 @@ func buildRateLimit(input interface{}) []string { return limits } + +// sysctlSomaxconn returns the value of net.core.somaxconn, i.e. +// maximum number of connections that can be queued for acceptance +// http://nginx.org/en/docs/http/ngx_http_core_module.html#listen +func sysctlSomaxconn() int { + maxConns, err := sysctl.New().GetSysctl("net/core/somaxconn") + if err != nil || maxConns < 512 { + glog.Warningf("system net.core.somaxconn=%v. Using NGINX default (511)", maxConns) + return 511 + } + + return maxConns +} diff --git a/ingress/controllers/nginx/nginx/template_test.go b/ingress/controllers/nginx/nginx/template/template_test.go similarity index 94% rename from ingress/controllers/nginx/nginx/template_test.go rename to ingress/controllers/nginx/nginx/template/template_test.go index f13aaf339a..36650561cd 100644 --- a/ingress/controllers/nginx/nginx/template_test.go +++ b/ingress/controllers/nginx/nginx/template/template_test.go @@ -14,12 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. */ -package nginx +package template import ( "strings" "testing" + "k8s.io/contrib/ingress/controllers/nginx/nginx/ingress" "k8s.io/contrib/ingress/controllers/nginx/nginx/rewrite" ) @@ -70,7 +71,7 @@ var ( func TestBuildLocation(t *testing.T) { for k, tc := range tmplFuncTestcases { - loc := &Location{ + loc := &ingress.Location{ Path: tc.Path, Redirect: rewrite.Redirect{Target: tc.Target, AddBaseURL: tc.AddBaseURL}, } @@ -84,10 +85,10 @@ func TestBuildLocation(t *testing.T) { func TestBuildProxyPass(t *testing.T) { for k, tc := range tmplFuncTestcases { - loc := &Location{ + loc := &ingress.Location{ Path: tc.Path, Redirect: rewrite.Redirect{Target: tc.Target, AddBaseURL: tc.AddBaseURL}, - Upstream: Upstream{Name: "upstream-name"}, + Upstream: ingress.Upstream{Name: "upstream-name"}, } pp := buildProxyPass(loc) diff --git a/ingress/controllers/nginx/nginx/utils.go b/ingress/controllers/nginx/nginx/utils.go index fa18be3929..0c86933b8c 100644 --- a/ingress/controllers/nginx/nginx/utils.go +++ b/ingress/controllers/nginx/nginx/utils.go @@ -28,7 +28,6 @@ import ( "github.com/golang/glog" "github.com/mitchellh/mapstructure" "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/util/sysctl" "k8s.io/contrib/ingress/controllers/nginx/nginx/config" ) @@ -160,7 +159,7 @@ func (ngx *Manager) filterErrors(errCodes []int) []int { return fa } -func (ngx *Manager) needsReload(data *bytes.Buffer) (bool, error) { +func (ngx *Manager) needsReload(data []byte) (bool, error) { filename := ngx.ConfigFile in, err := os.Open(filename) if err != nil { @@ -173,14 +172,13 @@ func (ngx *Manager) needsReload(data *bytes.Buffer) (bool, error) { return false, err } - res := data.Bytes() - if !bytes.Equal(src, res) { - err = ioutil.WriteFile(filename, res, 0644) + if !bytes.Equal(src, data) { + err = ioutil.WriteFile(filename, data, 0644) if err != nil { return false, err } - dData, err := diff(src, res) + dData, err := diff(src, data) if err != nil { glog.Errorf("error computing diff: %s", err) return true, nil @@ -221,16 +219,3 @@ func diff(b1, b2 []byte) (data []byte, err error) { } return } - -// sysctlSomaxconn returns the value of net.core.somaxconn, i.e. -// maximum number of connections that can be queued for acceptance -// http://nginx.org/en/docs/http/ngx_http_core_module.html#listen -func sysctlSomaxconn() int { - maxConns, err := sysctl.GetSysctl("net/core/somaxconn") - if err != nil || maxConns < 512 { - glog.V(3).Infof("system net.core.somaxconn=%v. Using NGINX default (511)", maxConns) - return 511 - } - - return maxConns -} diff --git a/ingress/vendor/bitbucket.org/ww/goautoneg/Makefile b/ingress/vendor/bitbucket.org/ww/goautoneg/Makefile new file mode 100644 index 0000000000..e33ee17303 --- /dev/null +++ b/ingress/vendor/bitbucket.org/ww/goautoneg/Makefile @@ -0,0 +1,13 @@ +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/ingress/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/README.txt b/ingress/vendor/bitbucket.org/ww/goautoneg/README.txt similarity index 100% rename from ingress/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/README.txt rename to ingress/vendor/bitbucket.org/ww/goautoneg/README.txt diff --git a/ingress/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go b/ingress/vendor/bitbucket.org/ww/goautoneg/autoneg.go similarity index 100% rename from ingress/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go rename to ingress/vendor/bitbucket.org/ww/goautoneg/autoneg.go diff --git a/ingress/vendor/github.com/Sirupsen/logrus/.gitignore b/ingress/vendor/github.com/Sirupsen/logrus/.gitignore deleted file mode 100644 index 66be63a005..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/.gitignore +++ /dev/null @@ -1 +0,0 @@ -logrus diff --git a/ingress/vendor/github.com/Sirupsen/logrus/.travis.yml b/ingress/vendor/github.com/Sirupsen/logrus/.travis.yml deleted file mode 100644 index c3af3ce27c..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: go -go: - - 1.2 - - 1.3 - - tip -install: - - go get github.com/stretchr/testify - - go get github.com/stvp/go-udp-testing - - go get github.com/tobi/airbrake-go - - go get github.com/getsentry/raven-go diff --git a/ingress/vendor/github.com/Sirupsen/logrus/LICENSE b/ingress/vendor/github.com/Sirupsen/logrus/LICENSE deleted file mode 100644 index f090cb42f3..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Simon Eskildsen - -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/ingress/vendor/github.com/Sirupsen/logrus/README.md b/ingress/vendor/github.com/Sirupsen/logrus/README.md deleted file mode 100644 index b6aa84c987..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/README.md +++ /dev/null @@ -1,352 +0,0 @@ -# Logrus :walrus: [![Build Status](https://travis-ci.org/Sirupsen/logrus.svg?branch=master)](https://travis-ci.org/Sirupsen/logrus) - -Logrus is a structured logger for Go (golang), completely API compatible with -the standard library logger. [Godoc][godoc]. **Please note the Logrus API is not -yet stable (pre 1.0), the core API is unlikely change much but please version -control your Logrus to make sure you aren't fetching latest `master` on every -build.** - -Nicely color-coded in development (when a TTY is attached, otherwise just -plain text): - -![Colored](http://i.imgur.com/PY7qMwd.png) - -With `log.Formatter = new(logrus.JSONFormatter)`, for easy parsing by logstash -or Splunk: - -```json -{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the -ocean","size":10,"time":"2014-03-10 19:57:38.562264131 -0400 EDT"} - -{"level":"warning","msg":"The group's number increased tremendously!", -"number":122,"omg":true,"time":"2014-03-10 19:57:38.562471297 -0400 EDT"} - -{"animal":"walrus","level":"info","msg":"A giant walrus appears!", -"size":10,"time":"2014-03-10 19:57:38.562500591 -0400 EDT"} - -{"animal":"walrus","level":"info","msg":"Tremendously sized cow enters the ocean.", -"size":9,"time":"2014-03-10 19:57:38.562527896 -0400 EDT"} - -{"level":"fatal","msg":"The ice breaks!","number":100,"omg":true, -"time":"2014-03-10 19:57:38.562543128 -0400 EDT"} -``` - -With the default `log.Formatter = new(logrus.TextFormatter)` when a TTY is not -attached, the output is compatible with the -[l2met](http://r.32k.io/l2met-introduction) format: - -```text -time="2014-04-20 15:36:23.830442383 -0400 EDT" level="info" msg="A group of walrus emerges from the ocean" animal="walrus" size=10 -time="2014-04-20 15:36:23.830584199 -0400 EDT" level="warning" msg="The group's number increased tremendously!" omg=true number=122 -time="2014-04-20 15:36:23.830596521 -0400 EDT" level="info" msg="A giant walrus appears!" animal="walrus" size=10 -time="2014-04-20 15:36:23.830611837 -0400 EDT" level="info" msg="Tremendously sized cow enters the ocean." animal="walrus" size=9 -time="2014-04-20 15:36:23.830626464 -0400 EDT" level="fatal" msg="The ice breaks!" omg=true number=100 -``` - -#### Example - -The simplest way to use Logrus is simply the package-level exported logger: - -```go -package main - -import ( - log "github.com/Sirupsen/logrus" -) - -func main() { - log.WithFields(log.Fields{ - "animal": "walrus", - }).Info("A walrus appears") -} -``` - -Note that it's completely api-compatible with the stdlib logger, so you can -replace your `log` imports everywhere with `log "github.com/Sirupsen/logrus"` -and you'll now have the flexibility of Logrus. You can customize it all you -want: - -```go -package main - -import ( - "os" - log "github.com/Sirupsen/logrus" - "github.com/Sirupsen/logrus/hooks/airbrake" -) - -func init() { - // Log as JSON instead of the default ASCII formatter. - log.SetFormatter(&log.JSONFormatter{}) - - // Use the Airbrake hook to report errors that have Error severity or above to - // an exception tracker. You can create custom hooks, see the Hooks section. - log.AddHook(&logrus_airbrake.AirbrakeHook{}) - - // Output to stderr instead of stdout, could also be a file. - log.SetOutput(os.Stderr) - - // Only log the warning severity or above. - log.SetLevel(log.WarnLevel) -} - -func main() { - log.WithFields(log.Fields{ - "animal": "walrus", - "size": 10, - }).Info("A group of walrus emerges from the ocean") - - log.WithFields(log.Fields{ - "omg": true, - "number": 122, - }).Warn("The group's number increased tremendously!") - - log.WithFields(log.Fields{ - "omg": true, - "number": 100, - }).Fatal("The ice breaks!") -} -``` - -For more advanced usage such as logging to multiple locations from the same -application, you can also create an instance of the `logrus` Logger: - -```go -package main - -import ( - "github.com/Sirupsen/logrus" -) - -// Create a new instance of the logger. You can have any number of instances. -var log = logrus.New() - -func main() { - // The API for setting attributes is a little different than the package level - // exported logger. See Godoc. - log.Out = os.Stderr - - log.WithFields(logrus.Fields{ - "animal": "walrus", - "size": 10, - }).Info("A group of walrus emerges from the ocean") -} -``` - -#### Fields - -Logrus encourages careful, structured logging though logging fields instead of -long, unparseable error messages. For example, instead of: `log.Fatalf("Failed -to send event %s to topic %s with key %d")`, you should log the much more -discoverable: - -```go -log.WithFields(log.Fields{ - "event": event, - "topic": topic, - "key": key, -}).Fatal("Failed to send event") -``` - -We've found this API forces you to think about logging in a way that produces -much more useful logging messages. We've been in countless situations where just -a single added field to a log statement that was already there would've saved us -hours. The `WithFields` call is optional. - -In general, with Logrus using any of the `printf`-family functions should be -seen as a hint you should add a field, however, you can still use the -`printf`-family functions with Logrus. - -#### Hooks - -You can add hooks for logging levels. For example to send errors to an exception -tracking service on `Error`, `Fatal` and `Panic`, info to StatsD or log to -multiple places simultaneously, e.g. syslog. - -```go -// Not the real implementation of the Airbrake hook. Just a simple sample. -import ( - log "github.com/Sirupsen/logrus" -) - -func init() { - log.AddHook(new(AirbrakeHook)) -} - -type AirbrakeHook struct{} - -// `Fire()` takes the entry that the hook is fired for. `entry.Data[]` contains -// the fields for the entry. See the Fields section of the README. -func (hook *AirbrakeHook) Fire(entry *logrus.Entry) error { - err := airbrake.Notify(entry.Data["error"].(error)) - if err != nil { - log.WithFields(log.Fields{ - "source": "airbrake", - "endpoint": airbrake.Endpoint, - }).Info("Failed to send error to Airbrake") - } - - return nil -} - -// `Levels()` returns a slice of `Levels` the hook is fired for. -func (hook *AirbrakeHook) Levels() []log.Level { - return []log.Level{ - log.ErrorLevel, - log.FatalLevel, - log.PanicLevel, - } -} -``` - -Logrus comes with built-in hooks. Add those, or your custom hook, in `init`: - -```go -import ( - log "github.com/Sirupsen/logrus" - "github.com/Sirupsen/logrus/hooks/airbrake" - "github.com/Sirupsen/logrus/hooks/syslog" - "log/syslog" -) - -func init() { - log.AddHook(new(logrus_airbrake.AirbrakeHook)) - - hook, err := logrus_syslog.NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") - if err != nil { - log.Error("Unable to connect to local syslog daemon") - } else { - log.AddHook(hook) - } -} -``` - -* [`github.com/Sirupsen/logrus/hooks/airbrake`](https://github.com/Sirupsen/logrus/blob/master/hooks/airbrake/airbrake.go) - Send errors to an exception tracking service compatible with the Airbrake API. - Uses [`airbrake-go`](https://github.com/tobi/airbrake-go) behind the scenes. - -* [`github.com/Sirupsen/logrus/hooks/papertrail`](https://github.com/Sirupsen/logrus/blob/master/hooks/papertrail/papertrail.go) - Send errors to the Papertrail hosted logging service via UDP. - -* [`github.com/Sirupsen/logrus/hooks/syslog`](https://github.com/Sirupsen/logrus/blob/master/hooks/syslog/syslog.go) - Send errors to remote syslog server. - Uses standard library `log/syslog` behind the scenes. - -* [`github.com/nubo/hiprus`](https://github.com/nubo/hiprus) - Send errors to a channel in hipchat. - -* [`github.com/sebest/logrusly`](https://github.com/sebest/logrusly) - Send logs to Loggly (https://www.loggly.com/) - -#### Level logging - -Logrus has six logging levels: Debug, Info, Warning, Error, Fatal and Panic. - -```go -log.Debug("Useful debugging information.") -log.Info("Something noteworthy happened!") -log.Warn("You should probably take a look at this.") -log.Error("Something failed but I'm not quitting.") -// Calls os.Exit(1) after logging -log.Fatal("Bye.") -// Calls panic() after logging -log.Panic("I'm bailing.") -``` - -You can set the logging level on a `Logger`, then it will only log entries with -that severity or anything above it: - -```go -// Will log anything that is info or above (warn, error, fatal, panic). Default. -log.SetLevel(log.InfoLevel) -``` - -It may be useful to set `log.Level = logrus.DebugLevel` in a debug or verbose -environment if your application has that. - -#### Entries - -Besides the fields added with `WithField` or `WithFields` some fields are -automatically added to all logging events: - -1. `time`. The timestamp when the entry was created. -2. `msg`. The logging message passed to `{Info,Warn,Error,Fatal,Panic}` after - the `AddFields` call. E.g. `Failed to send event.` -3. `level`. The logging level. E.g. `info`. - -#### Environments - -Logrus has no notion of environment. - -If you wish for hooks and formatters to only be used in specific environments, -you should handle that yourself. For example, if your application has a global -variable `Environment`, which is a string representation of the environment you -could do: - -```go -import ( - log "github.com/Sirupsen/logrus" -) - -init() { - // do something here to set environment depending on an environment variable - // or command-line flag - if Environment == "production" { - log.SetFormatter(logrus.JSONFormatter) - } else { - // The TextFormatter is default, you don't actually have to do this. - log.SetFormatter(logrus.TextFormatter) - } -} -``` - -This configuration is how `logrus` was intended to be used, but JSON in -production is mostly only useful if you do log aggregation with tools like -Splunk or Logstash. - -#### Formatters - -The built-in logging formatters are: - -* `logrus.TextFormatter`. Logs the event in colors if stdout is a tty, otherwise - without colors. - * *Note:* to force colored output when there is no TTY, set the `ForceColors` - field to `true`. To force no colored output even if there is a TTY set the - `DisableColors` field to `true` -* `logrus.JSONFormatter`. Logs fields as JSON. - -Third party logging formatters: - -* [`zalgo`](https://github.com/aybabtme/logzalgo): invoking the P͉̫o̳̼̊w̖͈̰͎e̬͔̭͂r͚̼̹̲ ̫͓͉̳͈ō̠͕͖̚f̝͍̠ ͕̲̞͖͑Z̖̫̤̫ͪa͉̬͈̗l͖͎g̳̥o̰̥̅!̣͔̲̻͊̄ ̙̘̦̹̦. - -You can define your formatter by implementing the `Formatter` interface, -requiring a `Format` method. `Format` takes an `*Entry`. `entry.Data` is a -`Fields` type (`map[string]interface{}`) with all your fields as well as the -default ones (see Entries section above): - -```go -type MyJSONFormatter struct { -} - -log.SetFormatter(new(MyJSONFormatter)) - -func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { - // Note this doesn't include Time, Level and Message which are available on - // the Entry. Consult `godoc` on information about those fields or read the - // source of the official loggers. - serialized, err := json.Marshal(entry.Data) - if err != nil { - return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err) - } - return append(serialized, '\n'), nil -} -``` - -#### Rotation - -Log rotation is not provided with Logrus. Log rotation should be done by an -external program (like `logrotated(8)`) that can compress and delete old log -entries. It should not be a feature of the application-level logger. - - -[godoc]: https://godoc.org/github.com/Sirupsen/logrus diff --git a/ingress/vendor/github.com/Sirupsen/logrus/entry.go b/ingress/vendor/github.com/Sirupsen/logrus/entry.go deleted file mode 100644 index e164eecb5f..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/entry.go +++ /dev/null @@ -1,248 +0,0 @@ -package logrus - -import ( - "bytes" - "fmt" - "io" - "os" - "time" -) - -// An entry is the final or intermediate Logrus logging entry. It contains all -// the fields passed with WithField{,s}. It's finally logged when Debug, Info, -// Warn, Error, Fatal or Panic is called on it. These objects can be reused and -// passed around as much as you wish to avoid field duplication. -type Entry struct { - Logger *Logger - - // Contains all the fields set by the user. - Data Fields - - // Time at which the log entry was created - Time time.Time - - // Level the log entry was logged at: Debug, Info, Warn, Error, Fatal or Panic - Level Level - - // Message passed to Debug, Info, Warn, Error, Fatal or Panic - Message string -} - -func NewEntry(logger *Logger) *Entry { - return &Entry{ - Logger: logger, - // Default is three fields, give a little extra room - Data: make(Fields, 5), - } -} - -// Returns a reader for the entry, which is a proxy to the formatter. -func (entry *Entry) Reader() (*bytes.Buffer, error) { - serialized, err := entry.Logger.Formatter.Format(entry) - return bytes.NewBuffer(serialized), err -} - -// Returns the string representation from the reader and ultimately the -// formatter. -func (entry *Entry) String() (string, error) { - reader, err := entry.Reader() - if err != nil { - return "", err - } - - return reader.String(), err -} - -// Add a single field to the Entry. -func (entry *Entry) WithField(key string, value interface{}) *Entry { - return entry.WithFields(Fields{key: value}) -} - -// Add a map of fields to the Entry. -func (entry *Entry) WithFields(fields Fields) *Entry { - data := Fields{} - for k, v := range entry.Data { - data[k] = v - } - for k, v := range fields { - data[k] = v - } - return &Entry{Logger: entry.Logger, Data: data} -} - -func (entry *Entry) log(level Level, msg string) { - entry.Time = time.Now() - entry.Level = level - entry.Message = msg - - if err := entry.Logger.Hooks.Fire(level, entry); err != nil { - entry.Logger.mu.Lock() - fmt.Fprintf(os.Stderr, "Failed to fire hook: %v\n", err) - entry.Logger.mu.Unlock() - } - - reader, err := entry.Reader() - if err != nil { - entry.Logger.mu.Lock() - fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err) - entry.Logger.mu.Unlock() - } - - entry.Logger.mu.Lock() - defer entry.Logger.mu.Unlock() - - _, err = io.Copy(entry.Logger.Out, reader) - if err != nil { - fmt.Fprintf(os.Stderr, "Failed to write to log, %v\n", err) - } - - // To avoid Entry#log() returning a value that only would make sense for - // panic() to use in Entry#Panic(), we avoid the allocation by checking - // directly here. - if level <= PanicLevel { - panic(entry) - } -} - -func (entry *Entry) Debug(args ...interface{}) { - if entry.Logger.Level >= DebugLevel { - entry.log(DebugLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Print(args ...interface{}) { - entry.Info(args...) -} - -func (entry *Entry) Info(args ...interface{}) { - if entry.Logger.Level >= InfoLevel { - entry.log(InfoLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Warn(args ...interface{}) { - if entry.Logger.Level >= WarnLevel { - entry.log(WarnLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Error(args ...interface{}) { - if entry.Logger.Level >= ErrorLevel { - entry.log(ErrorLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Fatal(args ...interface{}) { - if entry.Logger.Level >= FatalLevel { - entry.log(FatalLevel, fmt.Sprint(args...)) - } - os.Exit(1) -} - -func (entry *Entry) Panic(args ...interface{}) { - if entry.Logger.Level >= PanicLevel { - entry.log(PanicLevel, fmt.Sprint(args...)) - } - panic(fmt.Sprint(args...)) -} - -// Entry Printf family functions - -func (entry *Entry) Debugf(format string, args ...interface{}) { - if entry.Logger.Level >= DebugLevel { - entry.Debug(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Infof(format string, args ...interface{}) { - if entry.Logger.Level >= InfoLevel { - entry.Info(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Printf(format string, args ...interface{}) { - entry.Infof(format, args...) -} - -func (entry *Entry) Warnf(format string, args ...interface{}) { - if entry.Logger.Level >= WarnLevel { - entry.Warn(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Warningf(format string, args ...interface{}) { - entry.Warnf(format, args...) -} - -func (entry *Entry) Errorf(format string, args ...interface{}) { - if entry.Logger.Level >= ErrorLevel { - entry.Error(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Fatalf(format string, args ...interface{}) { - if entry.Logger.Level >= FatalLevel { - entry.Fatal(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Panicf(format string, args ...interface{}) { - if entry.Logger.Level >= PanicLevel { - entry.Panic(fmt.Sprintf(format, args...)) - } -} - -// Entry Println family functions - -func (entry *Entry) Debugln(args ...interface{}) { - if entry.Logger.Level >= DebugLevel { - entry.Debug(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Infoln(args ...interface{}) { - if entry.Logger.Level >= InfoLevel { - entry.Info(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Println(args ...interface{}) { - entry.Infoln(args...) -} - -func (entry *Entry) Warnln(args ...interface{}) { - if entry.Logger.Level >= WarnLevel { - entry.Warn(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Warningln(args ...interface{}) { - entry.Warnln(args...) -} - -func (entry *Entry) Errorln(args ...interface{}) { - if entry.Logger.Level >= ErrorLevel { - entry.Error(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Fatalln(args ...interface{}) { - if entry.Logger.Level >= FatalLevel { - entry.Fatal(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Panicln(args ...interface{}) { - if entry.Logger.Level >= PanicLevel { - entry.Panic(entry.sprintlnn(args...)) - } -} - -// Sprintlnn => Sprint no newline. This is to get the behavior of how -// fmt.Sprintln where spaces are always added between operands, regardless of -// their type. Instead of vendoring the Sprintln implementation to spare a -// string allocation, we do the simplest thing. -func (entry *Entry) sprintlnn(args ...interface{}) string { - msg := fmt.Sprintln(args...) - return msg[:len(msg)-1] -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/exported.go b/ingress/vendor/github.com/Sirupsen/logrus/exported.go deleted file mode 100644 index d087124481..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/exported.go +++ /dev/null @@ -1,182 +0,0 @@ -package logrus - -import ( - "io" -) - -var ( - // std is the name of the standard logger in stdlib `log` - std = New() -) - -// SetOutput sets the standard logger output. -func SetOutput(out io.Writer) { - std.mu.Lock() - defer std.mu.Unlock() - std.Out = out -} - -// SetFormatter sets the standard logger formatter. -func SetFormatter(formatter Formatter) { - std.mu.Lock() - defer std.mu.Unlock() - std.Formatter = formatter -} - -// SetLevel sets the standard logger level. -func SetLevel(level Level) { - std.mu.Lock() - defer std.mu.Unlock() - std.Level = level -} - -// GetLevel returns the standard logger level. -func GetLevel() Level { - return std.Level -} - -// AddHook adds a hook to the standard logger hooks. -func AddHook(hook Hook) { - std.mu.Lock() - defer std.mu.Unlock() - std.Hooks.Add(hook) -} - -// WithField creates an entry from the standard logger and adds a field to -// it. If you want multiple fields, use `WithFields`. -// -// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal -// or Panic on the Entry it returns. -func WithField(key string, value interface{}) *Entry { - return std.WithField(key, value) -} - -// WithFields creates an entry from the standard logger and adds multiple -// fields to it. This is simply a helper for `WithField`, invoking it -// once for each field. -// -// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal -// or Panic on the Entry it returns. -func WithFields(fields Fields) *Entry { - return std.WithFields(fields) -} - -// Debug logs a message at level Debug on the standard logger. -func Debug(args ...interface{}) { - std.Debug(args...) -} - -// Print logs a message at level Info on the standard logger. -func Print(args ...interface{}) { - std.Print(args...) -} - -// Info logs a message at level Info on the standard logger. -func Info(args ...interface{}) { - std.Info(args...) -} - -// Warn logs a message at level Warn on the standard logger. -func Warn(args ...interface{}) { - std.Warn(args...) -} - -// Warning logs a message at level Warn on the standard logger. -func Warning(args ...interface{}) { - std.Warning(args...) -} - -// Error logs a message at level Error on the standard logger. -func Error(args ...interface{}) { - std.Error(args...) -} - -// Panic logs a message at level Panic on the standard logger. -func Panic(args ...interface{}) { - std.Panic(args...) -} - -// Fatal logs a message at level Fatal on the standard logger. -func Fatal(args ...interface{}) { - std.Fatal(args...) -} - -// Debugf logs a message at level Debug on the standard logger. -func Debugf(format string, args ...interface{}) { - std.Debugf(format, args...) -} - -// Printf logs a message at level Info on the standard logger. -func Printf(format string, args ...interface{}) { - std.Printf(format, args...) -} - -// Infof logs a message at level Info on the standard logger. -func Infof(format string, args ...interface{}) { - std.Infof(format, args...) -} - -// Warnf logs a message at level Warn on the standard logger. -func Warnf(format string, args ...interface{}) { - std.Warnf(format, args...) -} - -// Warningf logs a message at level Warn on the standard logger. -func Warningf(format string, args ...interface{}) { - std.Warningf(format, args...) -} - -// Errorf logs a message at level Error on the standard logger. -func Errorf(format string, args ...interface{}) { - std.Errorf(format, args...) -} - -// Panicf logs a message at level Panic on the standard logger. -func Panicf(format string, args ...interface{}) { - std.Panicf(format, args...) -} - -// Fatalf logs a message at level Fatal on the standard logger. -func Fatalf(format string, args ...interface{}) { - std.Fatalf(format, args...) -} - -// Debugln logs a message at level Debug on the standard logger. -func Debugln(args ...interface{}) { - std.Debugln(args...) -} - -// Println logs a message at level Info on the standard logger. -func Println(args ...interface{}) { - std.Println(args...) -} - -// Infoln logs a message at level Info on the standard logger. -func Infoln(args ...interface{}) { - std.Infoln(args...) -} - -// Warnln logs a message at level Warn on the standard logger. -func Warnln(args ...interface{}) { - std.Warnln(args...) -} - -// Warningln logs a message at level Warn on the standard logger. -func Warningln(args ...interface{}) { - std.Warningln(args...) -} - -// Errorln logs a message at level Error on the standard logger. -func Errorln(args ...interface{}) { - std.Errorln(args...) -} - -// Panicln logs a message at level Panic on the standard logger. -func Panicln(args ...interface{}) { - std.Panicln(args...) -} - -// Fatalln logs a message at level Fatal on the standard logger. -func Fatalln(args ...interface{}) { - std.Fatalln(args...) -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/formatter.go b/ingress/vendor/github.com/Sirupsen/logrus/formatter.go deleted file mode 100644 index 038ce9fd29..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/formatter.go +++ /dev/null @@ -1,44 +0,0 @@ -package logrus - -// The Formatter interface is used to implement a custom Formatter. It takes an -// `Entry`. It exposes all the fields, including the default ones: -// -// * `entry.Data["msg"]`. The message passed from Info, Warn, Error .. -// * `entry.Data["time"]`. The timestamp. -// * `entry.Data["level"]. The level the entry was logged at. -// -// Any additional fields added with `WithField` or `WithFields` are also in -// `entry.Data`. Format is expected to return an array of bytes which are then -// logged to `logger.Out`. -type Formatter interface { - Format(*Entry) ([]byte, error) -} - -// This is to not silently overwrite `time`, `msg` and `level` fields when -// dumping it. If this code wasn't there doing: -// -// logrus.WithField("level", 1).Info("hello") -// -// Would just silently drop the user provided level. Instead with this code -// it'll logged as: -// -// {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."} -// -// It's not exported because it's still using Data in an opinionated way. It's to -// avoid code duplication between the two default formatters. -func prefixFieldClashes(data Fields) { - _, ok := data["time"] - if ok { - data["fields.time"] = data["time"] - } - - _, ok = data["msg"] - if ok { - data["fields.msg"] = data["msg"] - } - - _, ok = data["level"] - if ok { - data["fields.level"] = data["level"] - } -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/hooks.go b/ingress/vendor/github.com/Sirupsen/logrus/hooks.go deleted file mode 100644 index 0da2b3653f..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/hooks.go +++ /dev/null @@ -1,34 +0,0 @@ -package logrus - -// A hook to be fired when logging on the logging levels returned from -// `Levels()` on your implementation of the interface. Note that this is not -// fired in a goroutine or a channel with workers, you should handle such -// functionality yourself if your call is non-blocking and you don't wish for -// the logging calls for levels returned from `Levels()` to block. -type Hook interface { - Levels() []Level - Fire(*Entry) error -} - -// Internal type for storing the hooks on a logger instance. -type levelHooks map[Level][]Hook - -// Add a hook to an instance of logger. This is called with -// `log.Hooks.Add(new(MyHook))` where `MyHook` implements the `Hook` interface. -func (hooks levelHooks) Add(hook Hook) { - for _, level := range hook.Levels() { - hooks[level] = append(hooks[level], hook) - } -} - -// Fire all the hooks for the passed level. Used by `entry.log` to fire -// appropriate hooks for a log entry. -func (hooks levelHooks) Fire(level Level, entry *Entry) error { - for _, hook := range hooks[level] { - if err := hook.Fire(entry); err != nil { - return err - } - } - - return nil -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/json_formatter.go b/ingress/vendor/github.com/Sirupsen/logrus/json_formatter.go deleted file mode 100644 index b09227c2b5..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/json_formatter.go +++ /dev/null @@ -1,26 +0,0 @@ -package logrus - -import ( - "encoding/json" - "fmt" - "time" -) - -type JSONFormatter struct{} - -func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { - data := make(Fields, len(entry.Data)+3) - for k, v := range entry.Data { - data[k] = v - } - prefixFieldClashes(data) - data["time"] = entry.Time.Format(time.RFC3339) - data["msg"] = entry.Message - data["level"] = entry.Level.String() - - serialized, err := json.Marshal(data) - if err != nil { - return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err) - } - return append(serialized, '\n'), nil -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/logger.go b/ingress/vendor/github.com/Sirupsen/logrus/logger.go deleted file mode 100644 index b392e547a7..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/logger.go +++ /dev/null @@ -1,161 +0,0 @@ -package logrus - -import ( - "io" - "os" - "sync" -) - -type Logger struct { - // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a - // file, or leave it default which is `os.Stdout`. You can also set this to - // something more adventorous, such as logging to Kafka. - Out io.Writer - // Hooks for the logger instance. These allow firing events based on logging - // levels and log entries. For example, to send errors to an error tracking - // service, log to StatsD or dump the core on fatal errors. - Hooks levelHooks - // All log entries pass through the formatter before logged to Out. The - // included formatters are `TextFormatter` and `JSONFormatter` for which - // TextFormatter is the default. In development (when a TTY is attached) it - // logs with colors, but to a file it wouldn't. You can easily implement your - // own that implements the `Formatter` interface, see the `README` or included - // formatters for examples. - Formatter Formatter - // The logging level the logger should log at. This is typically (and defaults - // to) `logrus.Info`, which allows Info(), Warn(), Error() and Fatal() to be - // logged. `logrus.Debug` is useful in - Level Level - // Used to sync writing to the log. - mu sync.Mutex -} - -// Creates a new logger. Configuration should be set by changing `Formatter`, -// `Out` and `Hooks` directly on the default logger instance. You can also just -// instantiate your own: -// -// var log = &Logger{ -// Out: os.Stderr, -// Formatter: new(JSONFormatter), -// Hooks: make(levelHooks), -// Level: logrus.DebugLevel, -// } -// -// It's recommended to make this a global instance called `log`. -func New() *Logger { - return &Logger{ - Out: os.Stdout, - Formatter: new(TextFormatter), - Hooks: make(levelHooks), - Level: InfoLevel, - } -} - -// Adds a field to the log entry, note that you it doesn't log until you call -// Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry. -// Ff you want multiple fields, use `WithFields`. -func (logger *Logger) WithField(key string, value interface{}) *Entry { - return NewEntry(logger).WithField(key, value) -} - -// Adds a struct of fields to the log entry. All it does is call `WithField` for -// each `Field`. -func (logger *Logger) WithFields(fields Fields) *Entry { - return NewEntry(logger).WithFields(fields) -} - -func (logger *Logger) Debugf(format string, args ...interface{}) { - NewEntry(logger).Debugf(format, args...) -} - -func (logger *Logger) Infof(format string, args ...interface{}) { - NewEntry(logger).Infof(format, args...) -} - -func (logger *Logger) Printf(format string, args ...interface{}) { - NewEntry(logger).Printf(format, args...) -} - -func (logger *Logger) Warnf(format string, args ...interface{}) { - NewEntry(logger).Warnf(format, args...) -} - -func (logger *Logger) Warningf(format string, args ...interface{}) { - NewEntry(logger).Warnf(format, args...) -} - -func (logger *Logger) Errorf(format string, args ...interface{}) { - NewEntry(logger).Errorf(format, args...) -} - -func (logger *Logger) Fatalf(format string, args ...interface{}) { - NewEntry(logger).Fatalf(format, args...) -} - -func (logger *Logger) Panicf(format string, args ...interface{}) { - NewEntry(logger).Panicf(format, args...) -} - -func (logger *Logger) Debug(args ...interface{}) { - NewEntry(logger).Debug(args...) -} - -func (logger *Logger) Info(args ...interface{}) { - NewEntry(logger).Info(args...) -} - -func (logger *Logger) Print(args ...interface{}) { - NewEntry(logger).Info(args...) -} - -func (logger *Logger) Warn(args ...interface{}) { - NewEntry(logger).Warn(args...) -} - -func (logger *Logger) Warning(args ...interface{}) { - NewEntry(logger).Warn(args...) -} - -func (logger *Logger) Error(args ...interface{}) { - NewEntry(logger).Error(args...) -} - -func (logger *Logger) Fatal(args ...interface{}) { - NewEntry(logger).Fatal(args...) -} - -func (logger *Logger) Panic(args ...interface{}) { - NewEntry(logger).Panic(args...) -} - -func (logger *Logger) Debugln(args ...interface{}) { - NewEntry(logger).Debugln(args...) -} - -func (logger *Logger) Infoln(args ...interface{}) { - NewEntry(logger).Infoln(args...) -} - -func (logger *Logger) Println(args ...interface{}) { - NewEntry(logger).Println(args...) -} - -func (logger *Logger) Warnln(args ...interface{}) { - NewEntry(logger).Warnln(args...) -} - -func (logger *Logger) Warningln(args ...interface{}) { - NewEntry(logger).Warnln(args...) -} - -func (logger *Logger) Errorln(args ...interface{}) { - NewEntry(logger).Errorln(args...) -} - -func (logger *Logger) Fatalln(args ...interface{}) { - NewEntry(logger).Fatalln(args...) -} - -func (logger *Logger) Panicln(args ...interface{}) { - NewEntry(logger).Panicln(args...) -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/logrus.go b/ingress/vendor/github.com/Sirupsen/logrus/logrus.go deleted file mode 100644 index 43ee12e90e..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/logrus.go +++ /dev/null @@ -1,94 +0,0 @@ -package logrus - -import ( - "fmt" - "log" -) - -// Fields type, used to pass to `WithFields`. -type Fields map[string]interface{} - -// Level type -type Level uint8 - -// Convert the Level to a string. E.g. PanicLevel becomes "panic". -func (level Level) String() string { - switch level { - case DebugLevel: - return "debug" - case InfoLevel: - return "info" - case WarnLevel: - return "warning" - case ErrorLevel: - return "error" - case FatalLevel: - return "fatal" - case PanicLevel: - return "panic" - } - - return "unknown" -} - -// ParseLevel takes a string level and returns the Logrus log level constant. -func ParseLevel(lvl string) (Level, error) { - switch lvl { - case "panic": - return PanicLevel, nil - case "fatal": - return FatalLevel, nil - case "error": - return ErrorLevel, nil - case "warn", "warning": - return WarnLevel, nil - case "info": - return InfoLevel, nil - case "debug": - return DebugLevel, nil - } - - var l Level - return l, fmt.Errorf("not a valid logrus Level: %q", lvl) -} - -// These are the different logging levels. You can set the logging level to log -// on your instance of logger, obtained with `logrus.New()`. -const ( - // PanicLevel level, highest level of severity. Logs and then calls panic with the - // message passed to Debug, Info, ... - PanicLevel Level = iota - // FatalLevel level. Logs and then calls `os.Exit(1)`. It will exit even if the - // logging level is set to Panic. - FatalLevel - // ErrorLevel level. Logs. Used for errors that should definitely be noted. - // Commonly used for hooks to send errors to an error tracking service. - ErrorLevel - // WarnLevel level. Non-critical entries that deserve eyes. - WarnLevel - // InfoLevel level. General operational entries about what's going on inside the - // application. - InfoLevel - // DebugLevel level. Usually only enabled when debugging. Very verbose logging. - DebugLevel -) - -// Won't compile if StdLogger can't be realized by a log.Logger -var _ StdLogger = &log.Logger{} - -// StdLogger is what your logrus-enabled library should take, that way -// it'll accept a stdlib logger and a logrus logger. There's no standard -// interface, this is the closest we get, unfortunately. -type StdLogger interface { - Print(...interface{}) - Printf(string, ...interface{}) - Println(...interface{}) - - Fatal(...interface{}) - Fatalf(string, ...interface{}) - Fatalln(...interface{}) - - Panic(...interface{}) - Panicf(string, ...interface{}) - Panicln(...interface{}) -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/terminal_freebsd.go b/ingress/vendor/github.com/Sirupsen/logrus/terminal_freebsd.go deleted file mode 100644 index 0428ee5d52..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/terminal_freebsd.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - Go 1.2 doesn't include Termios for FreeBSD. This should be added in 1.3 and this could be merged with terminal_darwin. -*/ -package logrus - -import ( - "syscall" -) - -const ioctlReadTermios = syscall.TIOCGETA - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go b/ingress/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go deleted file mode 100644 index 276447bd5c..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go +++ /dev/null @@ -1,21 +0,0 @@ -// Based on ssh/terminal: -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build linux,!appengine darwin freebsd - -package logrus - -import ( - "syscall" - "unsafe" -) - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal() bool { - fd := syscall.Stdout - var termios Termios - _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) - return err == 0 -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/terminal_windows.go b/ingress/vendor/github.com/Sirupsen/logrus/terminal_windows.go deleted file mode 100644 index 2e09f6f7e3..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/terminal_windows.go +++ /dev/null @@ -1,27 +0,0 @@ -// Based on ssh/terminal: -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build windows - -package logrus - -import ( - "syscall" - "unsafe" -) - -var kernel32 = syscall.NewLazyDLL("kernel32.dll") - -var ( - procGetConsoleMode = kernel32.NewProc("GetConsoleMode") -) - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal() bool { - fd := syscall.Stdout - var st uint32 - r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(fd), uintptr(unsafe.Pointer(&st)), 0) - return r != 0 && e == 0 -} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/text_formatter.go b/ingress/vendor/github.com/Sirupsen/logrus/text_formatter.go deleted file mode 100644 index 78e7889356..0000000000 --- a/ingress/vendor/github.com/Sirupsen/logrus/text_formatter.go +++ /dev/null @@ -1,124 +0,0 @@ -package logrus - -import ( - "bytes" - "fmt" - "regexp" - "sort" - "strings" - "time" -) - -const ( - nocolor = 0 - red = 31 - green = 32 - yellow = 33 - blue = 34 -) - -var ( - baseTimestamp time.Time - isTerminal bool - noQuoteNeeded *regexp.Regexp -) - -func init() { - baseTimestamp = time.Now() - isTerminal = IsTerminal() -} - -func miniTS() int { - return int(time.Since(baseTimestamp) / time.Second) -} - -type TextFormatter struct { - // Set to true to bypass checking for a TTY before outputting colors. - ForceColors bool - DisableColors bool - // Set to true to disable timestamp logging (useful when the output - // is redirected to a logging system already adding a timestamp) - DisableTimestamp bool -} - -func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { - - var keys []string - for k := range entry.Data { - keys = append(keys, k) - } - sort.Strings(keys) - - b := &bytes.Buffer{} - - prefixFieldClashes(entry.Data) - - isColored := (f.ForceColors || isTerminal) && !f.DisableColors - - if isColored { - printColored(b, entry, keys) - } else { - if !f.DisableTimestamp { - f.appendKeyValue(b, "time", entry.Time.Format(time.RFC3339)) - } - f.appendKeyValue(b, "level", entry.Level.String()) - f.appendKeyValue(b, "msg", entry.Message) - for _, key := range keys { - f.appendKeyValue(b, key, entry.Data[key]) - } - } - - b.WriteByte('\n') - return b.Bytes(), nil -} - -func printColored(b *bytes.Buffer, entry *Entry, keys []string) { - var levelColor int - switch entry.Level { - case WarnLevel: - levelColor = yellow - case ErrorLevel, FatalLevel, PanicLevel: - levelColor = red - default: - levelColor = blue - } - - levelText := strings.ToUpper(entry.Level.String())[0:4] - - fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%04d] %-44s ", levelColor, levelText, miniTS(), entry.Message) - for _, k := range keys { - v := entry.Data[k] - fmt.Fprintf(b, " \x1b[%dm%s\x1b[0m=%v", levelColor, k, v) - } -} - -func needsQuoting(text string) bool { - for _, ch := range text { - if !((ch >= 'a' && ch <= 'z') || - (ch >= 'A' && ch <= 'Z') || - (ch >= '0' && ch < '9') || - ch == '-' || ch == '.') { - return false - } - } - return true -} - -func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key, value interface{}) { - switch value.(type) { - case string: - if needsQuoting(value.(string)) { - fmt.Fprintf(b, "%v=%s ", key, value) - } else { - fmt.Fprintf(b, "%v=%q ", key, value) - } - case error: - if needsQuoting(value.(error).Error()) { - fmt.Fprintf(b, "%v=%s ", key, value) - } else { - fmt.Fprintf(b, "%v=%q ", key, value) - } - default: - fmt.Fprintf(b, "%v=%v ", key, value) - } -} diff --git a/ingress/vendor/github.com/opencontainers/runc/LICENSE b/ingress/vendor/github.com/coreos/etcd/LICENSE similarity index 94% rename from ingress/vendor/github.com/opencontainers/runc/LICENSE rename to ingress/vendor/github.com/coreos/etcd/LICENSE index 27448585ad..d645695673 100644 --- a/ingress/vendor/github.com/opencontainers/runc/LICENSE +++ b/ingress/vendor/github.com/coreos/etcd/LICENSE @@ -176,7 +176,18 @@ END OF TERMS AND CONDITIONS - Copyright 2014 Docker, Inc. + 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. diff --git a/ingress/vendor/github.com/coreos/etcd/NOTICE b/ingress/vendor/github.com/coreos/etcd/NOTICE new file mode 100644 index 0000000000..b39ddfa5cb --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/NOTICE @@ -0,0 +1,5 @@ +CoreOS Project +Copyright 2014 CoreOS, Inc + +This product includes software developed at CoreOS, Inc. +(http://www.coreos.com/). diff --git a/ingress/vendor/github.com/coreos/etcd/auth/authpb/auth.pb.go b/ingress/vendor/github.com/coreos/etcd/auth/authpb/auth.pb.go new file mode 100644 index 0000000000..448e1eaa0d --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/auth/authpb/auth.pb.go @@ -0,0 +1,820 @@ +// Code generated by protoc-gen-gogo. +// source: auth.proto +// DO NOT EDIT! + +/* + Package authpb is a generated protocol buffer package. + + It is generated from these files: + auth.proto + + It has these top-level messages: + User + Permission + Role +*/ +package authpb + +import ( + "fmt" + + proto "github.com/golang/protobuf/proto" + + math "math" +) + +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.ProtoPackageIsVersion1 + +type Permission_Type int32 + +const ( + READ Permission_Type = 0 + WRITE Permission_Type = 1 + READWRITE Permission_Type = 2 +) + +var Permission_Type_name = map[int32]string{ + 0: "READ", + 1: "WRITE", + 2: "READWRITE", +} +var Permission_Type_value = map[string]int32{ + "READ": 0, + "WRITE": 1, + "READWRITE": 2, +} + +func (x Permission_Type) String() string { + return proto.EnumName(Permission_Type_name, int32(x)) +} +func (Permission_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorAuth, []int{1, 0} } + +// User is a single entry in the bucket authUsers +type User struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + Roles []string `protobuf:"bytes,3,rep,name=roles" json:"roles,omitempty"` +} + +func (m *User) Reset() { *m = User{} } +func (m *User) String() string { return proto.CompactTextString(m) } +func (*User) ProtoMessage() {} +func (*User) Descriptor() ([]byte, []int) { return fileDescriptorAuth, []int{0} } + +// Permission is a single entity +type Permission struct { + PermType Permission_Type `protobuf:"varint,1,opt,name=permType,proto3,enum=authpb.Permission_Type" json:"permType,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` +} + +func (m *Permission) Reset() { *m = Permission{} } +func (m *Permission) String() string { return proto.CompactTextString(m) } +func (*Permission) ProtoMessage() {} +func (*Permission) Descriptor() ([]byte, []int) { return fileDescriptorAuth, []int{1} } + +// Role is a single entry in the bucket authRoles +type Role struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + KeyPermission []*Permission `protobuf:"bytes,2,rep,name=keyPermission" json:"keyPermission,omitempty"` +} + +func (m *Role) Reset() { *m = Role{} } +func (m *Role) String() string { return proto.CompactTextString(m) } +func (*Role) ProtoMessage() {} +func (*Role) Descriptor() ([]byte, []int) { return fileDescriptorAuth, []int{2} } + +func init() { + proto.RegisterType((*User)(nil), "authpb.User") + proto.RegisterType((*Permission)(nil), "authpb.Permission") + proto.RegisterType((*Role)(nil), "authpb.Role") + proto.RegisterEnum("authpb.Permission_Type", Permission_Type_name, Permission_Type_value) +} +func (m *User) 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 *User) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintAuth(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.Password) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintAuth(data, i, uint64(len(m.Password))) + i += copy(data[i:], m.Password) + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *Permission) 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 *Permission) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.PermType != 0 { + data[i] = 0x8 + i++ + i = encodeVarintAuth(data, i, uint64(m.PermType)) + } + if len(m.Key) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintAuth(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if len(m.RangeEnd) > 0 { + data[i] = 0x1a + i++ + i = encodeVarintAuth(data, i, uint64(len(m.RangeEnd))) + i += copy(data[i:], m.RangeEnd) + } + return i, nil +} + +func (m *Role) 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 *Role) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintAuth(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.KeyPermission) > 0 { + for _, msg := range m.KeyPermission { + data[i] = 0x12 + i++ + i = encodeVarintAuth(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func encodeFixed64Auth(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 encodeFixed32Auth(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 encodeVarintAuth(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 *User) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAuth(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovAuth(uint64(l)) + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + l = len(s) + n += 1 + l + sovAuth(uint64(l)) + } + } + return n +} + +func (m *Permission) Size() (n int) { + var l int + _ = l + if m.PermType != 0 { + n += 1 + sovAuth(uint64(m.PermType)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovAuth(uint64(l)) + } + l = len(m.RangeEnd) + if l > 0 { + n += 1 + l + sovAuth(uint64(l)) + } + return n +} + +func (m *Role) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAuth(uint64(l)) + } + if len(m.KeyPermission) > 0 { + for _, e := range m.KeyPermission { + l = e.Size() + n += 1 + l + sovAuth(uint64(l)) + } + } + return n +} + +func sovAuth(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozAuth(x uint64) (n int) { + return sovAuth(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *User) 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 ErrIntOverflowAuth + } + 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: User: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: User: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuth + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = append(m.Name[:0], data[iNdEx:postIndex]...) + if m.Name == nil { + m.Name = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuth + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = append(m.Password[:0], data[iNdEx:postIndex]...) + if m.Password == nil { + m.Password = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + 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 ErrInvalidLengthAuth + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Roles = append(m.Roles, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuth(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuth + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Permission) 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 ErrIntOverflowAuth + } + 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: Permission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Permission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PermType", wireType) + } + m.PermType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.PermType |= (Permission_Type(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuth + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuth + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RangeEnd = append(m.RangeEnd[:0], data[iNdEx:postIndex]...) + if m.RangeEnd == nil { + m.RangeEnd = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuth(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuth + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Role) 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 ErrIntOverflowAuth + } + 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: Role: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuth + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = append(m.Name[:0], data[iNdEx:postIndex]...) + if m.Name == nil { + m.Name = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyPermission", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuth + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuth + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyPermission = append(m.KeyPermission, &Permission{}) + if err := m.KeyPermission[len(m.KeyPermission)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuth(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuth + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAuth(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, ErrIntOverflowAuth + } + 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, ErrIntOverflowAuth + } + 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, ErrIntOverflowAuth + } + 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, ErrInvalidLengthAuth + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAuth + } + 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 := skipAuth(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 ( + ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") +) + +var fileDescriptorAuth = []byte{ + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc3, 0x30, + 0x1c, 0xc6, 0x9b, 0xb6, 0x1b, 0xed, 0x5f, 0x27, 0x25, 0x0c, 0x0c, 0x13, 0x42, 0xe9, 0xa9, 0x78, + 0xa8, 0xb0, 0x5d, 0xbc, 0x2a, 0xf6, 0x20, 0x78, 0x90, 0x50, 0xf1, 0x28, 0x1d, 0x0d, 0x75, 0x6c, + 0x6d, 0x4a, 0x32, 0x91, 0xbe, 0x89, 0x07, 0x1f, 0x68, 0xc7, 0x3d, 0x82, 0xab, 0x2f, 0x22, 0x4d, + 0x64, 0x43, 0xdc, 0xed, 0xfb, 0xbe, 0xff, 0x97, 0xe4, 0x97, 0x3f, 0x40, 0xfe, 0xb6, 0x7e, 0x4d, + 0x1a, 0x29, 0xd6, 0x02, 0x0f, 0x7b, 0xdd, 0xcc, 0x27, 0xe3, 0x52, 0x94, 0x42, 0x47, 0x57, 0xbd, + 0x32, 0xd3, 0xe8, 0x01, 0xdc, 0x27, 0xc5, 0x25, 0xc6, 0xe0, 0xd6, 0x79, 0xc5, 0x09, 0x0a, 0x51, + 0x7c, 0xca, 0xb4, 0xc6, 0x13, 0xf0, 0x9a, 0x5c, 0xa9, 0x77, 0x21, 0x0b, 0x62, 0xeb, 0x7c, 0xef, + 0xf1, 0x18, 0x06, 0x52, 0xac, 0xb8, 0x22, 0x4e, 0xe8, 0xc4, 0x3e, 0x33, 0x26, 0xfa, 0x44, 0x00, + 0x8f, 0x5c, 0x56, 0x0b, 0xa5, 0x16, 0xa2, 0xc6, 0x33, 0xf0, 0x1a, 0x2e, 0xab, 0xac, 0x6d, 0xcc, + 0xc5, 0x67, 0xd3, 0xf3, 0xc4, 0xd0, 0x24, 0x87, 0x56, 0xd2, 0x8f, 0xd9, 0xbe, 0x88, 0x03, 0x70, + 0x96, 0xbc, 0xfd, 0x7d, 0xb0, 0x97, 0xf8, 0x02, 0x7c, 0x99, 0xd7, 0x25, 0x7f, 0xe1, 0x75, 0x41, + 0x1c, 0x03, 0xa2, 0x83, 0xb4, 0x2e, 0xa2, 0x4b, 0x70, 0xf5, 0x31, 0x0f, 0x5c, 0x96, 0xde, 0xdc, + 0x05, 0x16, 0xf6, 0x61, 0xf0, 0xcc, 0xee, 0xb3, 0x34, 0x40, 0x78, 0x04, 0x7e, 0x1f, 0x1a, 0x6b, + 0x47, 0x19, 0xb8, 0x4c, 0xac, 0xf8, 0xd1, 0xcf, 0x5e, 0xc3, 0x68, 0xc9, 0xdb, 0x03, 0x16, 0xb1, + 0x43, 0x27, 0x3e, 0x99, 0xe2, 0xff, 0xc0, 0xec, 0x6f, 0xf1, 0x96, 0x6c, 0x76, 0xd4, 0xda, 0xee, + 0xa8, 0xb5, 0xe9, 0x28, 0xda, 0x76, 0x14, 0x7d, 0x75, 0x14, 0x7d, 0x7c, 0x53, 0x6b, 0x3e, 0xd4, + 0x3b, 0x9e, 0xfd, 0x04, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x76, 0x8d, 0x4f, 0x8f, 0x01, 0x00, 0x00, +} diff --git a/ingress/vendor/github.com/coreos/etcd/auth/authpb/auth.proto b/ingress/vendor/github.com/coreos/etcd/auth/authpb/auth.proto new file mode 100644 index 0000000000..001d334354 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/auth/authpb/auth.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; +package authpb; + +import "gogoproto/gogo.proto"; + +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_getters_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; + +// User is a single entry in the bucket authUsers +message User { + bytes name = 1; + bytes password = 2; + repeated string roles = 3; +} + +// Permission is a single entity +message Permission { + enum Type { + READ = 0; + WRITE = 1; + READWRITE = 2; + } + Type permType = 1; + + bytes key = 2; + bytes range_end = 3; +} + +// Role is a single entry in the bucket authRoles +message Role { + bytes name = 1; + + repeated Permission keyPermission = 2; +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/README.md b/ingress/vendor/github.com/coreos/etcd/client/README.md new file mode 100644 index 0000000000..0bab9589cc --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/README.md @@ -0,0 +1,117 @@ +# etcd/client + +etcd/client is the Go client library for etcd. + +[![GoDoc](https://godoc.org/github.com/coreos/etcd/client?status.png)](https://godoc.org/github.com/coreos/etcd/client) + +etcd uses `cmd/vendor` directory to store external dependencies, which are +to be compiled into etcd release binaries. `client` can be imported without +vendoring. For full compatibility, it is recommended to vendor builds using +etcd's vendored packages, using tools like godep, as in +[vendor directories](https://golang.org/cmd/go/#hdr-Vendor_Directories). +For more detail, please read [Go vendor design](https://golang.org/s/go15vendor). + +## Install + +```bash +go get github.com/coreos/etcd/client +``` + +## Usage + +```go +package main + +import ( + "log" + "time" + + "golang.org/x/net/context" + "github.com/coreos/etcd/client" +) + +func main() { + cfg := client.Config{ + Endpoints: []string{"http://127.0.0.1:2379"}, + Transport: client.DefaultTransport, + // set timeout per request to fail fast when the target endpoint is unavailable + HeaderTimeoutPerRequest: time.Second, + } + c, err := client.New(cfg) + if err != nil { + log.Fatal(err) + } + kapi := client.NewKeysAPI(c) + // set "/foo" key with "bar" value + log.Print("Setting '/foo' key with 'bar' value") + resp, err := kapi.Set(context.Background(), "/foo", "bar", nil) + if err != nil { + log.Fatal(err) + } else { + // print common key info + log.Printf("Set is done. Metadata is %q\n", resp) + } + // get "/foo" key's value + log.Print("Getting '/foo' key value") + resp, err = kapi.Get(context.Background(), "/foo", nil) + if err != nil { + log.Fatal(err) + } else { + // print common key info + log.Printf("Get is done. Metadata is %q\n", resp) + // print value + log.Printf("%q key has %q value\n", resp.Node.Key, resp.Node.Value) + } +} +``` + +## Error Handling + +etcd client might return three types of errors. + +- context error + +Each API call has its first parameter as `context`. A context can be canceled or have an attached deadline. If the context is canceled or reaches its deadline, the responding context error will be returned no matter what internal errors the API call has already encountered. + +- cluster error + +Each API call tries to send request to the cluster endpoints one by one until it successfully gets a response. If a requests to an endpoint fails, due to exceeding per request timeout or connection issues, the error will be added into a list of errors. If all possible endpoints fail, a cluster error that includes all encountered errors will be returned. + +- response error + +If the response gets from the cluster is invalid, a plain string error will be returned. For example, it might be a invalid JSON error. + +Here is the example code to handle client errors: + +```go +cfg := client.Config{Endpoints: []string{"http://etcd1:2379","http://etcd2:2379","http://etcd3:2379"}} +c, err := client.New(cfg) +if err != nil { + log.Fatal(err) +} + +kapi := client.NewKeysAPI(c) +resp, err := kapi.Set(ctx, "test", "bar", nil) +if err != nil { + if err == context.Canceled { + // ctx is canceled by another routine + } else if err == context.DeadlineExceeded { + // ctx is attached with a deadline and it exceeded + } else if cerr, ok := err.(*client.ClusterError); ok { + // process (cerr.Errors) + } else { + // bad cluster endpoints, which are not etcd servers + } +} +``` + + +## Caveat + +1. etcd/client prefers to use the same endpoint as long as the endpoint continues to work well. This saves socket resources, and improves efficiency for both client and server side. This preference doesn't remove consistency from the data consumed by the client because data replicated to each etcd member has already passed through the consensus process. + +2. etcd/client does round-robin rotation on other available endpoints if the preferred endpoint isn't functioning properly. For example, if the member that etcd/client connects to is hard killed, etcd/client will fail on the first attempt with the killed member, and succeed on the second attempt with another member. If it fails to talk to all available endpoints, it will return all errors happened. + +3. Default etcd/client cannot handle the case that the remote server is SIGSTOPed now. TCP keepalive mechanism doesn't help in this scenario because operating system may still send TCP keep-alive packets. Over time we'd like to improve this functionality, but solving this issue isn't high priority because a real-life case in which a server is stopped, but the connection is kept alive, hasn't been brought to our attention. + +4. etcd/client cannot detect whether the member in use is healthy when doing read requests. If the member is isolated from the cluster, etcd/client may retrieve outdated data. As a workaround, users could monitor experimental /health endpoint for member healthy information. We are improving it at [#3265](https://github.com/coreos/etcd/issues/3265). diff --git a/ingress/vendor/github.com/coreos/etcd/client/auth_role.go b/ingress/vendor/github.com/coreos/etcd/client/auth_role.go new file mode 100644 index 0000000000..d15e00dd71 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/auth_role.go @@ -0,0 +1,237 @@ +// Copyright 2015 The etcd 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 client + +import ( + "bytes" + "encoding/json" + "net/http" + "net/url" + + "golang.org/x/net/context" +) + +type Role struct { + Role string `json:"role"` + Permissions Permissions `json:"permissions"` + Grant *Permissions `json:"grant,omitempty"` + Revoke *Permissions `json:"revoke,omitempty"` +} + +type Permissions struct { + KV rwPermission `json:"kv"` +} + +type rwPermission struct { + Read []string `json:"read"` + Write []string `json:"write"` +} + +type PermissionType int + +const ( + ReadPermission PermissionType = iota + WritePermission + ReadWritePermission +) + +// NewAuthRoleAPI constructs a new AuthRoleAPI that uses HTTP to +// interact with etcd's role creation and modification features. +func NewAuthRoleAPI(c Client) AuthRoleAPI { + return &httpAuthRoleAPI{ + client: c, + } +} + +type AuthRoleAPI interface { + // AddRole adds a role. + AddRole(ctx context.Context, role string) error + + // RemoveRole removes a role. + RemoveRole(ctx context.Context, role string) error + + // GetRole retrieves role details. + GetRole(ctx context.Context, role string) (*Role, error) + + // GrantRoleKV grants a role some permission prefixes for the KV store. + GrantRoleKV(ctx context.Context, role string, prefixes []string, permType PermissionType) (*Role, error) + + // RevokeRoleKV revokes some permission prefixes for a role on the KV store. + RevokeRoleKV(ctx context.Context, role string, prefixes []string, permType PermissionType) (*Role, error) + + // ListRoles lists roles. + ListRoles(ctx context.Context) ([]string, error) +} + +type httpAuthRoleAPI struct { + client httpClient +} + +type authRoleAPIAction struct { + verb string + name string + role *Role +} + +type authRoleAPIList struct{} + +func (list *authRoleAPIList) HTTPRequest(ep url.URL) *http.Request { + u := v2AuthURL(ep, "roles", "") + req, _ := http.NewRequest("GET", u.String(), nil) + req.Header.Set("Content-Type", "application/json") + return req +} + +func (l *authRoleAPIAction) HTTPRequest(ep url.URL) *http.Request { + u := v2AuthURL(ep, "roles", l.name) + if l.role == nil { + req, _ := http.NewRequest(l.verb, u.String(), nil) + return req + } + b, err := json.Marshal(l.role) + if err != nil { + panic(err) + } + body := bytes.NewReader(b) + req, _ := http.NewRequest(l.verb, u.String(), body) + req.Header.Set("Content-Type", "application/json") + return req +} + +func (r *httpAuthRoleAPI) ListRoles(ctx context.Context) ([]string, error) { + resp, body, err := r.client.Do(ctx, &authRoleAPIList{}) + if err != nil { + return nil, err + } + if err = assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { + return nil, err + } + var roleList struct { + Roles []Role `json:"roles"` + } + if err = json.Unmarshal(body, &roleList); err != nil { + return nil, err + } + ret := make([]string, 0, len(roleList.Roles)) + for _, r := range roleList.Roles { + ret = append(ret, r.Role) + } + return ret, nil +} + +func (r *httpAuthRoleAPI) AddRole(ctx context.Context, rolename string) error { + role := &Role{ + Role: rolename, + } + return r.addRemoveRole(ctx, &authRoleAPIAction{ + verb: "PUT", + name: rolename, + role: role, + }) +} + +func (r *httpAuthRoleAPI) RemoveRole(ctx context.Context, rolename string) error { + return r.addRemoveRole(ctx, &authRoleAPIAction{ + verb: "DELETE", + name: rolename, + }) +} + +func (r *httpAuthRoleAPI) addRemoveRole(ctx context.Context, req *authRoleAPIAction) error { + resp, body, err := r.client.Do(ctx, req) + if err != nil { + return err + } + if err := assertStatusCode(resp.StatusCode, http.StatusOK, http.StatusCreated); err != nil { + var sec authError + err := json.Unmarshal(body, &sec) + if err != nil { + return err + } + return sec + } + return nil +} + +func (r *httpAuthRoleAPI) GetRole(ctx context.Context, rolename string) (*Role, error) { + return r.modRole(ctx, &authRoleAPIAction{ + verb: "GET", + name: rolename, + }) +} + +func buildRWPermission(prefixes []string, permType PermissionType) rwPermission { + var out rwPermission + switch permType { + case ReadPermission: + out.Read = prefixes + case WritePermission: + out.Write = prefixes + case ReadWritePermission: + out.Read = prefixes + out.Write = prefixes + } + return out +} + +func (r *httpAuthRoleAPI) GrantRoleKV(ctx context.Context, rolename string, prefixes []string, permType PermissionType) (*Role, error) { + rwp := buildRWPermission(prefixes, permType) + role := &Role{ + Role: rolename, + Grant: &Permissions{ + KV: rwp, + }, + } + return r.modRole(ctx, &authRoleAPIAction{ + verb: "PUT", + name: rolename, + role: role, + }) +} + +func (r *httpAuthRoleAPI) RevokeRoleKV(ctx context.Context, rolename string, prefixes []string, permType PermissionType) (*Role, error) { + rwp := buildRWPermission(prefixes, permType) + role := &Role{ + Role: rolename, + Revoke: &Permissions{ + KV: rwp, + }, + } + return r.modRole(ctx, &authRoleAPIAction{ + verb: "PUT", + name: rolename, + role: role, + }) +} + +func (r *httpAuthRoleAPI) modRole(ctx context.Context, req *authRoleAPIAction) (*Role, error) { + resp, body, err := r.client.Do(ctx, req) + if err != nil { + return nil, err + } + if err = assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { + var sec authError + err = json.Unmarshal(body, &sec) + if err != nil { + return nil, err + } + return nil, sec + } + var role Role + if err = json.Unmarshal(body, &role); err != nil { + return nil, err + } + return &role, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/auth_user.go b/ingress/vendor/github.com/coreos/etcd/client/auth_user.go new file mode 100644 index 0000000000..97c3f31813 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/auth_user.go @@ -0,0 +1,320 @@ +// Copyright 2015 The etcd 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 client + +import ( + "bytes" + "encoding/json" + "net/http" + "net/url" + "path" + + "golang.org/x/net/context" +) + +var ( + defaultV2AuthPrefix = "/v2/auth" +) + +type User struct { + User string `json:"user"` + Password string `json:"password,omitempty"` + Roles []string `json:"roles"` + Grant []string `json:"grant,omitempty"` + Revoke []string `json:"revoke,omitempty"` +} + +// userListEntry is the user representation given by the server for ListUsers +type userListEntry struct { + User string `json:"user"` + Roles []Role `json:"roles"` +} + +type UserRoles struct { + User string `json:"user"` + Roles []Role `json:"roles"` +} + +func v2AuthURL(ep url.URL, action string, name string) *url.URL { + if name != "" { + ep.Path = path.Join(ep.Path, defaultV2AuthPrefix, action, name) + return &ep + } + ep.Path = path.Join(ep.Path, defaultV2AuthPrefix, action) + return &ep +} + +// NewAuthAPI constructs a new AuthAPI that uses HTTP to +// interact with etcd's general auth features. +func NewAuthAPI(c Client) AuthAPI { + return &httpAuthAPI{ + client: c, + } +} + +type AuthAPI interface { + // Enable auth. + Enable(ctx context.Context) error + + // Disable auth. + Disable(ctx context.Context) error +} + +type httpAuthAPI struct { + client httpClient +} + +func (s *httpAuthAPI) Enable(ctx context.Context) error { + return s.enableDisable(ctx, &authAPIAction{"PUT"}) +} + +func (s *httpAuthAPI) Disable(ctx context.Context) error { + return s.enableDisable(ctx, &authAPIAction{"DELETE"}) +} + +func (s *httpAuthAPI) enableDisable(ctx context.Context, req httpAction) error { + resp, body, err := s.client.Do(ctx, req) + if err != nil { + return err + } + if err = assertStatusCode(resp.StatusCode, http.StatusOK, http.StatusCreated); err != nil { + var sec authError + err = json.Unmarshal(body, &sec) + if err != nil { + return err + } + return sec + } + return nil +} + +type authAPIAction struct { + verb string +} + +func (l *authAPIAction) HTTPRequest(ep url.URL) *http.Request { + u := v2AuthURL(ep, "enable", "") + req, _ := http.NewRequest(l.verb, u.String(), nil) + return req +} + +type authError struct { + Message string `json:"message"` + Code int `json:"-"` +} + +func (e authError) Error() string { + return e.Message +} + +// NewAuthUserAPI constructs a new AuthUserAPI that uses HTTP to +// interact with etcd's user creation and modification features. +func NewAuthUserAPI(c Client) AuthUserAPI { + return &httpAuthUserAPI{ + client: c, + } +} + +type AuthUserAPI interface { + // AddUser adds a user. + AddUser(ctx context.Context, username string, password string) error + + // RemoveUser removes a user. + RemoveUser(ctx context.Context, username string) error + + // GetUser retrieves user details. + GetUser(ctx context.Context, username string) (*User, error) + + // GrantUser grants a user some permission roles. + GrantUser(ctx context.Context, username string, roles []string) (*User, error) + + // RevokeUser revokes some permission roles from a user. + RevokeUser(ctx context.Context, username string, roles []string) (*User, error) + + // ChangePassword changes the user's password. + ChangePassword(ctx context.Context, username string, password string) (*User, error) + + // ListUsers lists the users. + ListUsers(ctx context.Context) ([]string, error) +} + +type httpAuthUserAPI struct { + client httpClient +} + +type authUserAPIAction struct { + verb string + username string + user *User +} + +type authUserAPIList struct{} + +func (list *authUserAPIList) HTTPRequest(ep url.URL) *http.Request { + u := v2AuthURL(ep, "users", "") + req, _ := http.NewRequest("GET", u.String(), nil) + req.Header.Set("Content-Type", "application/json") + return req +} + +func (l *authUserAPIAction) HTTPRequest(ep url.URL) *http.Request { + u := v2AuthURL(ep, "users", l.username) + if l.user == nil { + req, _ := http.NewRequest(l.verb, u.String(), nil) + return req + } + b, err := json.Marshal(l.user) + if err != nil { + panic(err) + } + body := bytes.NewReader(b) + req, _ := http.NewRequest(l.verb, u.String(), body) + req.Header.Set("Content-Type", "application/json") + return req +} + +func (u *httpAuthUserAPI) ListUsers(ctx context.Context) ([]string, error) { + resp, body, err := u.client.Do(ctx, &authUserAPIList{}) + if err != nil { + return nil, err + } + if err = assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { + var sec authError + err = json.Unmarshal(body, &sec) + if err != nil { + return nil, err + } + return nil, sec + } + + var userList struct { + Users []userListEntry `json:"users"` + } + + if err = json.Unmarshal(body, &userList); err != nil { + return nil, err + } + + ret := make([]string, 0, len(userList.Users)) + for _, u := range userList.Users { + ret = append(ret, u.User) + } + return ret, nil +} + +func (u *httpAuthUserAPI) AddUser(ctx context.Context, username string, password string) error { + user := &User{ + User: username, + Password: password, + } + return u.addRemoveUser(ctx, &authUserAPIAction{ + verb: "PUT", + username: username, + user: user, + }) +} + +func (u *httpAuthUserAPI) RemoveUser(ctx context.Context, username string) error { + return u.addRemoveUser(ctx, &authUserAPIAction{ + verb: "DELETE", + username: username, + }) +} + +func (u *httpAuthUserAPI) addRemoveUser(ctx context.Context, req *authUserAPIAction) error { + resp, body, err := u.client.Do(ctx, req) + if err != nil { + return err + } + if err = assertStatusCode(resp.StatusCode, http.StatusOK, http.StatusCreated); err != nil { + var sec authError + err = json.Unmarshal(body, &sec) + if err != nil { + return err + } + return sec + } + return nil +} + +func (u *httpAuthUserAPI) GetUser(ctx context.Context, username string) (*User, error) { + return u.modUser(ctx, &authUserAPIAction{ + verb: "GET", + username: username, + }) +} + +func (u *httpAuthUserAPI) GrantUser(ctx context.Context, username string, roles []string) (*User, error) { + user := &User{ + User: username, + Grant: roles, + } + return u.modUser(ctx, &authUserAPIAction{ + verb: "PUT", + username: username, + user: user, + }) +} + +func (u *httpAuthUserAPI) RevokeUser(ctx context.Context, username string, roles []string) (*User, error) { + user := &User{ + User: username, + Revoke: roles, + } + return u.modUser(ctx, &authUserAPIAction{ + verb: "PUT", + username: username, + user: user, + }) +} + +func (u *httpAuthUserAPI) ChangePassword(ctx context.Context, username string, password string) (*User, error) { + user := &User{ + User: username, + Password: password, + } + return u.modUser(ctx, &authUserAPIAction{ + verb: "PUT", + username: username, + user: user, + }) +} + +func (u *httpAuthUserAPI) modUser(ctx context.Context, req *authUserAPIAction) (*User, error) { + resp, body, err := u.client.Do(ctx, req) + if err != nil { + return nil, err + } + if err = assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { + var sec authError + err = json.Unmarshal(body, &sec) + if err != nil { + return nil, err + } + return nil, sec + } + var user User + if err = json.Unmarshal(body, &user); err != nil { + var userR UserRoles + if urerr := json.Unmarshal(body, &userR); urerr != nil { + return nil, err + } + user.User = userR.User + for _, r := range userR.Roles { + user.Roles = append(user.Roles, r.Role) + } + } + return &user, nil +} diff --git a/ingress/vendor/golang.org/x/net/context/ctxhttp/cancelreq.go b/ingress/vendor/github.com/coreos/etcd/client/cancelreq.go similarity index 63% rename from ingress/vendor/golang.org/x/net/context/ctxhttp/cancelreq.go rename to ingress/vendor/github.com/coreos/etcd/client/cancelreq.go index e3170e3333..76d1f04019 100644 --- a/ingress/vendor/golang.org/x/net/context/ctxhttp/cancelreq.go +++ b/ingress/vendor/github.com/coreos/etcd/client/cancelreq.go @@ -2,14 +2,13 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build go1.5 +// borrowed from golang/net/context/ctxhttp/cancelreq.go -package ctxhttp +package client import "net/http" -func canceler(client *http.Client, req *http.Request) func() { - // TODO(djd): Respect any existing value of req.Cancel. +func requestCanceler(tr CancelableTransport, req *http.Request) func() { ch := make(chan struct{}) req.Cancel = ch diff --git a/ingress/vendor/github.com/coreos/etcd/client/client.go b/ingress/vendor/github.com/coreos/etcd/client/client.go new file mode 100644 index 0000000000..eeeb8b57a2 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/client.go @@ -0,0 +1,609 @@ +// Copyright 2015 The etcd 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 client + +import ( + "errors" + "fmt" + "io/ioutil" + "math/rand" + "net" + "net/http" + "net/url" + "reflect" + "sort" + "strconv" + "sync" + "time" + + "golang.org/x/net/context" +) + +var ( + ErrNoEndpoints = errors.New("client: no endpoints available") + ErrTooManyRedirects = errors.New("client: too many redirects") + ErrClusterUnavailable = errors.New("client: etcd cluster is unavailable or misconfigured") + ErrNoLeaderEndpoint = errors.New("client: no leader endpoint available") + errTooManyRedirectChecks = errors.New("client: too many redirect checks") + + // oneShotCtxValue is set on a context using WithValue(&oneShotValue) so + // that Do() will not retry a request + oneShotCtxValue interface{} +) + +var DefaultRequestTimeout = 5 * time.Second + +var DefaultTransport CancelableTransport = &http.Transport{ + Proxy: http.ProxyFromEnvironment, + Dial: (&net.Dialer{ + Timeout: 30 * time.Second, + KeepAlive: 30 * time.Second, + }).Dial, + TLSHandshakeTimeout: 10 * time.Second, +} + +type EndpointSelectionMode int + +const ( + // EndpointSelectionRandom is the default value of the 'SelectionMode'. + // As the name implies, the client object will pick a node from the members + // of the cluster in a random fashion. If the cluster has three members, A, B, + // and C, the client picks any node from its three members as its request + // destination. + EndpointSelectionRandom EndpointSelectionMode = iota + + // If 'SelectionMode' is set to 'EndpointSelectionPrioritizeLeader', + // requests are sent directly to the cluster leader. This reduces + // forwarding roundtrips compared to making requests to etcd followers + // who then forward them to the cluster leader. In the event of a leader + // failure, however, clients configured this way cannot prioritize among + // the remaining etcd followers. Therefore, when a client sets 'SelectionMode' + // to 'EndpointSelectionPrioritizeLeader', it must use 'client.AutoSync()' to + // maintain its knowledge of current cluster state. + // + // This mode should be used with Client.AutoSync(). + EndpointSelectionPrioritizeLeader +) + +type Config struct { + // Endpoints defines a set of URLs (schemes, hosts and ports only) + // that can be used to communicate with a logical etcd cluster. For + // example, a three-node cluster could be provided like so: + // + // Endpoints: []string{ + // "http://node1.example.com:2379", + // "http://node2.example.com:2379", + // "http://node3.example.com:2379", + // } + // + // If multiple endpoints are provided, the Client will attempt to + // use them all in the event that one or more of them are unusable. + // + // If Client.Sync is ever called, the Client may cache an alternate + // set of endpoints to continue operation. + Endpoints []string + + // Transport is used by the Client to drive HTTP requests. If not + // provided, DefaultTransport will be used. + Transport CancelableTransport + + // CheckRedirect specifies the policy for handling HTTP redirects. + // If CheckRedirect is not nil, the Client calls it before + // following an HTTP redirect. The sole argument is the number of + // requests that have already been made. If CheckRedirect returns + // an error, Client.Do will not make any further requests and return + // the error back it to the caller. + // + // If CheckRedirect is nil, the Client uses its default policy, + // which is to stop after 10 consecutive requests. + CheckRedirect CheckRedirectFunc + + // Username specifies the user credential to add as an authorization header + Username string + + // Password is the password for the specified user to add as an authorization header + // to the request. + Password string + + // HeaderTimeoutPerRequest specifies the time limit to wait for response + // header in a single request made by the Client. The timeout includes + // connection time, any redirects, and header wait time. + // + // For non-watch GET request, server returns the response body immediately. + // For PUT/POST/DELETE request, server will attempt to commit request + // before responding, which is expected to take `100ms + 2 * RTT`. + // For watch request, server returns the header immediately to notify Client + // watch start. But if server is behind some kind of proxy, the response + // header may be cached at proxy, and Client cannot rely on this behavior. + // + // Especially, wait request will ignore this timeout. + // + // One API call may send multiple requests to different etcd servers until it + // succeeds. Use context of the API to specify the overall timeout. + // + // A HeaderTimeoutPerRequest of zero means no timeout. + HeaderTimeoutPerRequest time.Duration + + // SelectionMode is an EndpointSelectionMode enum that specifies the + // policy for choosing the etcd cluster node to which requests are sent. + SelectionMode EndpointSelectionMode +} + +func (cfg *Config) transport() CancelableTransport { + if cfg.Transport == nil { + return DefaultTransport + } + return cfg.Transport +} + +func (cfg *Config) checkRedirect() CheckRedirectFunc { + if cfg.CheckRedirect == nil { + return DefaultCheckRedirect + } + return cfg.CheckRedirect +} + +// CancelableTransport mimics net/http.Transport, but requires that +// the object also support request cancellation. +type CancelableTransport interface { + http.RoundTripper + CancelRequest(req *http.Request) +} + +type CheckRedirectFunc func(via int) error + +// DefaultCheckRedirect follows up to 10 redirects, but no more. +var DefaultCheckRedirect CheckRedirectFunc = func(via int) error { + if via > 10 { + return ErrTooManyRedirects + } + return nil +} + +type Client interface { + // Sync updates the internal cache of the etcd cluster's membership. + Sync(context.Context) error + + // AutoSync periodically calls Sync() every given interval. + // The recommended sync interval is 10 seconds to 1 minute, which does + // not bring too much overhead to server and makes client catch up the + // cluster change in time. + // + // The example to use it: + // + // for { + // err := client.AutoSync(ctx, 10*time.Second) + // if err == context.DeadlineExceeded || err == context.Canceled { + // break + // } + // log.Print(err) + // } + AutoSync(context.Context, time.Duration) error + + // Endpoints returns a copy of the current set of API endpoints used + // by Client to resolve HTTP requests. If Sync has ever been called, + // this may differ from the initial Endpoints provided in the Config. + Endpoints() []string + + // SetEndpoints sets the set of API endpoints used by Client to resolve + // HTTP requests. If the given endpoints are not valid, an error will be + // returned + SetEndpoints(eps []string) error + + httpClient +} + +func New(cfg Config) (Client, error) { + c := &httpClusterClient{ + clientFactory: newHTTPClientFactory(cfg.transport(), cfg.checkRedirect(), cfg.HeaderTimeoutPerRequest), + rand: rand.New(rand.NewSource(int64(time.Now().Nanosecond()))), + selectionMode: cfg.SelectionMode, + } + if cfg.Username != "" { + c.credentials = &credentials{ + username: cfg.Username, + password: cfg.Password, + } + } + if err := c.SetEndpoints(cfg.Endpoints); err != nil { + return nil, err + } + return c, nil +} + +type httpClient interface { + Do(context.Context, httpAction) (*http.Response, []byte, error) +} + +func newHTTPClientFactory(tr CancelableTransport, cr CheckRedirectFunc, headerTimeout time.Duration) httpClientFactory { + return func(ep url.URL) httpClient { + return &redirectFollowingHTTPClient{ + checkRedirect: cr, + client: &simpleHTTPClient{ + transport: tr, + endpoint: ep, + headerTimeout: headerTimeout, + }, + } + } +} + +type credentials struct { + username string + password string +} + +type httpClientFactory func(url.URL) httpClient + +type httpAction interface { + HTTPRequest(url.URL) *http.Request +} + +type httpClusterClient struct { + clientFactory httpClientFactory + endpoints []url.URL + pinned int + credentials *credentials + sync.RWMutex + rand *rand.Rand + selectionMode EndpointSelectionMode +} + +func (c *httpClusterClient) getLeaderEndpoint() (string, error) { + mAPI := NewMembersAPI(c) + leader, err := mAPI.Leader(context.Background()) + if err != nil { + return "", err + } + + return leader.ClientURLs[0], nil // TODO: how to handle multiple client URLs? +} + +func (c *httpClusterClient) SetEndpoints(eps []string) error { + if len(eps) == 0 { + return ErrNoEndpoints + } + + neps := make([]url.URL, len(eps)) + for i, ep := range eps { + u, err := url.Parse(ep) + if err != nil { + return err + } + neps[i] = *u + } + + switch c.selectionMode { + case EndpointSelectionRandom: + c.endpoints = shuffleEndpoints(c.rand, neps) + c.pinned = 0 + case EndpointSelectionPrioritizeLeader: + c.endpoints = neps + lep, err := c.getLeaderEndpoint() + if err != nil { + return ErrNoLeaderEndpoint + } + + for i := range c.endpoints { + if c.endpoints[i].String() == lep { + c.pinned = i + break + } + } + // If endpoints doesn't have the lu, just keep c.pinned = 0. + // Forwarding between follower and leader would be required but it works. + default: + return errors.New(fmt.Sprintf("invalid endpoint selection mode: %d", c.selectionMode)) + } + + return nil +} + +func (c *httpClusterClient) Do(ctx context.Context, act httpAction) (*http.Response, []byte, error) { + action := act + c.RLock() + leps := len(c.endpoints) + eps := make([]url.URL, leps) + n := copy(eps, c.endpoints) + pinned := c.pinned + + if c.credentials != nil { + action = &authedAction{ + act: act, + credentials: *c.credentials, + } + } + c.RUnlock() + + if leps == 0 { + return nil, nil, ErrNoEndpoints + } + + if leps != n { + return nil, nil, errors.New("unable to pick endpoint: copy failed") + } + + var resp *http.Response + var body []byte + var err error + cerr := &ClusterError{} + isOneShot := ctx.Value(&oneShotCtxValue) != nil + + for i := pinned; i < leps+pinned; i++ { + k := i % leps + hc := c.clientFactory(eps[k]) + resp, body, err = hc.Do(ctx, action) + if err != nil { + cerr.Errors = append(cerr.Errors, err) + if err == ctx.Err() { + return nil, nil, ctx.Err() + } + if err == context.Canceled || err == context.DeadlineExceeded { + return nil, nil, err + } + if isOneShot { + return nil, nil, err + } + continue + } + if resp.StatusCode/100 == 5 { + switch resp.StatusCode { + case http.StatusInternalServerError, http.StatusServiceUnavailable: + // TODO: make sure this is a no leader response + cerr.Errors = append(cerr.Errors, fmt.Errorf("client: etcd member %s has no leader", eps[k].String())) + default: + cerr.Errors = append(cerr.Errors, fmt.Errorf("client: etcd member %s returns server error [%s]", eps[k].String(), http.StatusText(resp.StatusCode))) + } + if isOneShot { + return nil, nil, cerr.Errors[0] + } + continue + } + if k != pinned { + c.Lock() + c.pinned = k + c.Unlock() + } + return resp, body, nil + } + + return nil, nil, cerr +} + +func (c *httpClusterClient) Endpoints() []string { + c.RLock() + defer c.RUnlock() + + eps := make([]string, len(c.endpoints)) + for i, ep := range c.endpoints { + eps[i] = ep.String() + } + + return eps +} + +func (c *httpClusterClient) Sync(ctx context.Context) error { + mAPI := NewMembersAPI(c) + ms, err := mAPI.List(ctx) + if err != nil { + return err + } + + c.Lock() + defer c.Unlock() + + eps := make([]string, 0) + for _, m := range ms { + eps = append(eps, m.ClientURLs...) + } + sort.Sort(sort.StringSlice(eps)) + + ceps := make([]string, len(c.endpoints)) + for i, cep := range c.endpoints { + ceps[i] = cep.String() + } + sort.Sort(sort.StringSlice(ceps)) + // fast path if no change happens + // this helps client to pin the endpoint when no cluster change + if reflect.DeepEqual(eps, ceps) { + return nil + } + + return c.SetEndpoints(eps) +} + +func (c *httpClusterClient) AutoSync(ctx context.Context, interval time.Duration) error { + ticker := time.NewTicker(interval) + defer ticker.Stop() + for { + err := c.Sync(ctx) + if err != nil { + return err + } + select { + case <-ctx.Done(): + return ctx.Err() + case <-ticker.C: + } + } +} + +type roundTripResponse struct { + resp *http.Response + err error +} + +type simpleHTTPClient struct { + transport CancelableTransport + endpoint url.URL + headerTimeout time.Duration +} + +func (c *simpleHTTPClient) Do(ctx context.Context, act httpAction) (*http.Response, []byte, error) { + req := act.HTTPRequest(c.endpoint) + + if err := printcURL(req); err != nil { + return nil, nil, err + } + + isWait := false + if req != nil && req.URL != nil { + ws := req.URL.Query().Get("wait") + if len(ws) != 0 { + var err error + isWait, err = strconv.ParseBool(ws) + if err != nil { + return nil, nil, fmt.Errorf("wrong wait value %s (%v for %+v)", ws, err, req) + } + } + } + + var hctx context.Context + var hcancel context.CancelFunc + if !isWait && c.headerTimeout > 0 { + hctx, hcancel = context.WithTimeout(ctx, c.headerTimeout) + } else { + hctx, hcancel = context.WithCancel(ctx) + } + defer hcancel() + + reqcancel := requestCanceler(c.transport, req) + + rtchan := make(chan roundTripResponse, 1) + go func() { + resp, err := c.transport.RoundTrip(req) + rtchan <- roundTripResponse{resp: resp, err: err} + close(rtchan) + }() + + var resp *http.Response + var err error + + select { + case rtresp := <-rtchan: + resp, err = rtresp.resp, rtresp.err + case <-hctx.Done(): + // cancel and wait for request to actually exit before continuing + reqcancel() + rtresp := <-rtchan + resp = rtresp.resp + switch { + case ctx.Err() != nil: + err = ctx.Err() + case hctx.Err() != nil: + err = fmt.Errorf("client: endpoint %s exceeded header timeout", c.endpoint.String()) + default: + panic("failed to get error from context") + } + } + + // always check for resp nil-ness to deal with possible + // race conditions between channels above + defer func() { + if resp != nil { + resp.Body.Close() + } + }() + + if err != nil { + return nil, nil, err + } + + var body []byte + done := make(chan struct{}) + go func() { + body, err = ioutil.ReadAll(resp.Body) + done <- struct{}{} + }() + + select { + case <-ctx.Done(): + resp.Body.Close() + <-done + return nil, nil, ctx.Err() + case <-done: + } + + return resp, body, err +} + +type authedAction struct { + act httpAction + credentials credentials +} + +func (a *authedAction) HTTPRequest(url url.URL) *http.Request { + r := a.act.HTTPRequest(url) + r.SetBasicAuth(a.credentials.username, a.credentials.password) + return r +} + +type redirectFollowingHTTPClient struct { + client httpClient + checkRedirect CheckRedirectFunc +} + +func (r *redirectFollowingHTTPClient) Do(ctx context.Context, act httpAction) (*http.Response, []byte, error) { + next := act + for i := 0; i < 100; i++ { + if i > 0 { + if err := r.checkRedirect(i); err != nil { + return nil, nil, err + } + } + resp, body, err := r.client.Do(ctx, next) + if err != nil { + return nil, nil, err + } + if resp.StatusCode/100 == 3 { + hdr := resp.Header.Get("Location") + if hdr == "" { + return nil, nil, fmt.Errorf("Location header not set") + } + loc, err := url.Parse(hdr) + if err != nil { + return nil, nil, fmt.Errorf("Location header not valid URL: %s", hdr) + } + next = &redirectedHTTPAction{ + action: act, + location: *loc, + } + continue + } + return resp, body, nil + } + + return nil, nil, errTooManyRedirectChecks +} + +type redirectedHTTPAction struct { + action httpAction + location url.URL +} + +func (r *redirectedHTTPAction) HTTPRequest(ep url.URL) *http.Request { + orig := r.action.HTTPRequest(ep) + orig.URL = &r.location + return orig +} + +func shuffleEndpoints(r *rand.Rand, eps []url.URL) []url.URL { + p := r.Perm(len(eps)) + neps := make([]url.URL, len(eps)) + for i, k := range p { + neps[i] = eps[k] + } + return neps +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/cluster_error.go b/ingress/vendor/github.com/coreos/etcd/client/cluster_error.go new file mode 100644 index 0000000000..aef5bf755b --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/cluster_error.go @@ -0,0 +1,33 @@ +// Copyright 2015 The etcd 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 client + +import "fmt" + +type ClusterError struct { + Errors []error +} + +func (ce *ClusterError) Error() string { + return ErrClusterUnavailable.Error() +} + +func (ce *ClusterError) Detail() string { + s := "" + for i, e := range ce.Errors { + s += fmt.Sprintf("error #%d: %s\n", i, e) + } + return s +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/curl.go b/ingress/vendor/github.com/coreos/etcd/client/curl.go new file mode 100644 index 0000000000..c8bc9fba20 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/curl.go @@ -0,0 +1,70 @@ +// Copyright 2015 The etcd 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 client + +import ( + "bytes" + "fmt" + "io/ioutil" + "net/http" + "os" +) + +var ( + cURLDebug = false +) + +func EnablecURLDebug() { + cURLDebug = true +} + +func DisablecURLDebug() { + cURLDebug = false +} + +// printcURL prints the cURL equivalent request to stderr. +// It returns an error if the body of the request cannot +// be read. +// The caller MUST cancel the request if there is an error. +func printcURL(req *http.Request) error { + if !cURLDebug { + return nil + } + var ( + command string + b []byte + err error + ) + + if req.URL != nil { + command = fmt.Sprintf("curl -X %s %s", req.Method, req.URL.String()) + } + + if req.Body != nil { + b, err = ioutil.ReadAll(req.Body) + if err != nil { + return err + } + command += fmt.Sprintf(" -d %q", string(b)) + } + + fmt.Fprintf(os.Stderr, "cURL Command: %s\n", command) + + // reset body + body := bytes.NewBuffer(b) + req.Body = ioutil.NopCloser(body) + + return nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/discover.go b/ingress/vendor/github.com/coreos/etcd/client/discover.go new file mode 100644 index 0000000000..bfd7aec93f --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/discover.go @@ -0,0 +1,21 @@ +// Copyright 2015 The etcd 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 client + +// Discoverer is an interface that wraps the Discover method. +type Discoverer interface { + // Discover looks up the etcd servers for the domain. + Discover(domain string) ([]string, error) +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/doc.go b/ingress/vendor/github.com/coreos/etcd/client/doc.go new file mode 100644 index 0000000000..32fdfb52c6 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/doc.go @@ -0,0 +1,73 @@ +// Copyright 2015 The etcd 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 client provides bindings for the etcd APIs. + +Create a Config and exchange it for a Client: + + import ( + "net/http" + + "github.com/coreos/etcd/client" + "golang.org/x/net/context" + ) + + cfg := client.Config{ + Endpoints: []string{"http://127.0.0.1:2379"}, + Transport: DefaultTransport, + } + + c, err := client.New(cfg) + if err != nil { + // handle error + } + +Clients are safe for concurrent use by multiple goroutines. + +Create a KeysAPI using the Client, then use it to interact with etcd: + + kAPI := client.NewKeysAPI(c) + + // create a new key /foo with the value "bar" + _, err = kAPI.Create(context.Background(), "/foo", "bar") + if err != nil { + // handle error + } + + // delete the newly created key only if the value is still "bar" + _, err = kAPI.Delete(context.Background(), "/foo", &DeleteOptions{PrevValue: "bar"}) + if err != nil { + // handle error + } + +Use a custom context to set timeouts on your operations: + + import "time" + + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + defer cancel() + + // set a new key, ignoring it's previous state + _, err := kAPI.Set(ctx, "/ping", "pong", nil) + if err != nil { + if err == context.DeadlineExceeded { + // request took longer than 5s + } else { + // handle error + } + } + +*/ +package client diff --git a/ingress/vendor/github.com/coreos/etcd/client/keys.generated.go b/ingress/vendor/github.com/coreos/etcd/client/keys.generated.go new file mode 100644 index 0000000000..748283aa95 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/keys.generated.go @@ -0,0 +1,1000 @@ +// ************************************************************ +// DO NOT EDIT. +// THIS FILE IS AUTO-GENERATED BY codecgen. +// ************************************************************ + +package client + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + "reflect" + "runtime" + time "time" +) + +const ( + // ----- content types ---- + codecSelferC_UTF81819 = 1 + codecSelferC_RAW1819 = 0 + // ----- value types used ---- + codecSelferValueTypeArray1819 = 10 + codecSelferValueTypeMap1819 = 9 + // ----- containerStateValues ---- + codecSelfer_containerMapKey1819 = 2 + codecSelfer_containerMapValue1819 = 3 + codecSelfer_containerMapEnd1819 = 4 + codecSelfer_containerArrayElem1819 = 6 + codecSelfer_containerArrayEnd1819 = 7 +) + +var ( + codecSelferBitsize1819 = uint8(reflect.TypeOf(uint(0)).Bits()) + codecSelferOnlyMapOrArrayEncodeToStructErr1819 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer1819 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 time.Time + _ = v0 + } +} + +func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1819 + 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 [3]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(3) + } else { + yynn2 = 3 + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.EncodeMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81819, string(x.Action)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("action")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81819, string(x.Action)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("node")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if x.PrevNode == nil { + r.EncodeNil() + } else { + x.PrevNode.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("prevNode")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + if x.PrevNode == nil { + r.EncodeNil() + } else { + x.PrevNode.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1819) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1819) + } + } + } +} + +func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym8 := z.DecBinary() + _ = yym8 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct9 := r.ContainerType() + if yyct9 == codecSelferValueTypeMap1819 { + yyl9 := r.ReadMapStart() + if yyl9 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1819) + } else { + x.codecDecodeSelfFromMap(yyl9, d) + } + } else if yyct9 == codecSelferValueTypeArray1819 { + yyl9 := r.ReadArrayStart() + if yyl9 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + } else { + x.codecDecodeSelfFromArray(yyl9, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1819) + } + } +} + +func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys10Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys10Slc + var yyhl10 bool = l >= 0 + for yyj10 := 0; ; yyj10++ { + if yyhl10 { + if yyj10 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1819) + yys10Slc = r.DecodeBytes(yys10Slc, true, true) + yys10 := string(yys10Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1819) + switch yys10 { + case "action": + if r.TryDecodeAsNil() { + x.Action = "" + } else { + x.Action = string(r.DecodeString()) + } + case "node": + if r.TryDecodeAsNil() { + if x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + x.Node.CodecDecodeSelf(d) + } + case "prevNode": + if r.TryDecodeAsNil() { + if x.PrevNode != nil { + x.PrevNode = nil + } + } else { + if x.PrevNode == nil { + x.PrevNode = new(Node) + } + x.PrevNode.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys10) + } // end switch yys10 + } // end for yyj10 + z.DecSendContainerState(codecSelfer_containerMapEnd1819) +} + +func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.Action = "" + } else { + x.Action = string(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + if x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + x.Node.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + if x.PrevNode != nil { + x.PrevNode = nil + } + } else { + if x.PrevNode == nil { + x.PrevNode = new(Node) + } + x.PrevNode.CodecDecodeSelf(d) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + z.DecStructFieldNotFound(yyj14-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) +} + +func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym18 := z.EncBinary() + _ = yym18 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep19 := !z.EncBinary() + yy2arr19 := z.EncBasicHandle().StructToArray + var yyq19 [8]bool + _, _, _ = yysep19, yyq19, yy2arr19 + const yyr19 bool = false + yyq19[1] = x.Dir != false + yyq19[6] = x.Expiration != nil + yyq19[7] = x.TTL != 0 + var yynn19 int + if yyr19 || yy2arr19 { + r.EncodeArrayStart(8) + } else { + yynn19 = 5 + for _, b := range yyq19 { + if b { + yynn19++ + } + } + r.EncodeMapStart(yynn19) + yynn19 = 0 + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + yym21 := z.EncBinary() + _ = yym21 + if false { + } else { + r.EncodeString(codecSelferC_UTF81819, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym22 := z.EncBinary() + _ = yym22 + if false { + } else { + r.EncodeString(codecSelferC_UTF81819, string(x.Key)) + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if yyq19[1] { + yym24 := z.EncBinary() + _ = yym24 + if false { + } else { + r.EncodeBool(bool(x.Dir)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq19[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("dir")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym25 := z.EncBinary() + _ = yym25 + if false { + } else { + r.EncodeBool(bool(x.Dir)) + } + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + yym27 := z.EncBinary() + _ = yym27 + if false { + } else { + r.EncodeString(codecSelferC_UTF81819, string(x.Value)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym28 := z.EncBinary() + _ = yym28 + if false { + } else { + r.EncodeString(codecSelferC_UTF81819, string(x.Value)) + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if x.Nodes == nil { + r.EncodeNil() + } else { + x.Nodes.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("nodes")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + if x.Nodes == nil { + r.EncodeNil() + } else { + x.Nodes.CodecEncodeSelf(e) + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + yym31 := z.EncBinary() + _ = yym31 + if false { + } else { + r.EncodeUint(uint64(x.CreatedIndex)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("createdIndex")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym32 := z.EncBinary() + _ = yym32 + if false { + } else { + r.EncodeUint(uint64(x.CreatedIndex)) + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + yym34 := z.EncBinary() + _ = yym34 + if false { + } else { + r.EncodeUint(uint64(x.ModifiedIndex)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("modifiedIndex")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym35 := z.EncBinary() + _ = yym35 + if false { + } else { + r.EncodeUint(uint64(x.ModifiedIndex)) + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if yyq19[6] { + if x.Expiration == nil { + r.EncodeNil() + } else { + yym37 := z.EncBinary() + _ = yym37 + if false { + } else if yym38 := z.TimeRtidIfBinc(); yym38 != 0 { + r.EncodeBuiltin(yym38, x.Expiration) + } else if z.HasExtensions() && z.EncExt(x.Expiration) { + } else if yym37 { + z.EncBinaryMarshal(x.Expiration) + } else if !yym37 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Expiration) + } else { + z.EncFallback(x.Expiration) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq19[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("expiration")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + if x.Expiration == nil { + r.EncodeNil() + } else { + yym39 := z.EncBinary() + _ = yym39 + if false { + } else if yym40 := z.TimeRtidIfBinc(); yym40 != 0 { + r.EncodeBuiltin(yym40, x.Expiration) + } else if z.HasExtensions() && z.EncExt(x.Expiration) { + } else if yym39 { + z.EncBinaryMarshal(x.Expiration) + } else if !yym39 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Expiration) + } else { + z.EncFallback(x.Expiration) + } + } + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if yyq19[7] { + yym42 := z.EncBinary() + _ = yym42 + if false { + } else { + r.EncodeInt(int64(x.TTL)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq19[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1819) + r.EncodeString(codecSelferC_UTF81819, string("ttl")) + z.EncSendContainerState(codecSelfer_containerMapValue1819) + yym43 := z.EncBinary() + _ = yym43 + if false { + } else { + r.EncodeInt(int64(x.TTL)) + } + } + } + if yyr19 || yy2arr19 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1819) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1819) + } + } + } +} + +func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym44 := z.DecBinary() + _ = yym44 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct45 := r.ContainerType() + if yyct45 == codecSelferValueTypeMap1819 { + yyl45 := r.ReadMapStart() + if yyl45 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1819) + } else { + x.codecDecodeSelfFromMap(yyl45, d) + } + } else if yyct45 == codecSelferValueTypeArray1819 { + yyl45 := r.ReadArrayStart() + if yyl45 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + } else { + x.codecDecodeSelfFromArray(yyl45, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1819) + } + } +} + +func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys46Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys46Slc + var yyhl46 bool = l >= 0 + for yyj46 := 0; ; yyj46++ { + if yyhl46 { + if yyj46 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1819) + yys46Slc = r.DecodeBytes(yys46Slc, true, true) + yys46 := string(yys46Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1819) + switch yys46 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "dir": + if r.TryDecodeAsNil() { + x.Dir = false + } else { + x.Dir = bool(r.DecodeBool()) + } + case "value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + case "nodes": + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + yyv50 := &x.Nodes + yyv50.CodecDecodeSelf(d) + } + case "createdIndex": + if r.TryDecodeAsNil() { + x.CreatedIndex = 0 + } else { + x.CreatedIndex = uint64(r.DecodeUint(64)) + } + case "modifiedIndex": + if r.TryDecodeAsNil() { + x.ModifiedIndex = 0 + } else { + x.ModifiedIndex = uint64(r.DecodeUint(64)) + } + case "expiration": + if r.TryDecodeAsNil() { + if x.Expiration != nil { + x.Expiration = nil + } + } else { + if x.Expiration == nil { + x.Expiration = new(time.Time) + } + yym54 := z.DecBinary() + _ = yym54 + if false { + } else if yym55 := z.TimeRtidIfBinc(); yym55 != 0 { + r.DecodeBuiltin(yym55, x.Expiration) + } else if z.HasExtensions() && z.DecExt(x.Expiration) { + } else if yym54 { + z.DecBinaryUnmarshal(x.Expiration) + } else if !yym54 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Expiration) + } else { + z.DecFallback(x.Expiration, false) + } + } + case "ttl": + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + x.TTL = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys46) + } // end switch yys46 + } // end for yyj46 + z.DecSendContainerState(codecSelfer_containerMapEnd1819) +} + +func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj57 int + var yyb57 bool + var yyhl57 bool = l >= 0 + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.Dir = false + } else { + x.Dir = bool(r.DecodeBool()) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + yyv61 := &x.Nodes + yyv61.CodecDecodeSelf(d) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.CreatedIndex = 0 + } else { + x.CreatedIndex = uint64(r.DecodeUint(64)) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.ModifiedIndex = 0 + } else { + x.ModifiedIndex = uint64(r.DecodeUint(64)) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + if x.Expiration != nil { + x.Expiration = nil + } + } else { + if x.Expiration == nil { + x.Expiration = new(time.Time) + } + yym65 := z.DecBinary() + _ = yym65 + if false { + } else if yym66 := z.TimeRtidIfBinc(); yym66 != 0 { + r.DecodeBuiltin(yym66, x.Expiration) + } else if z.HasExtensions() && z.DecExt(x.Expiration) { + } else if yym65 { + z.DecBinaryUnmarshal(x.Expiration) + } else if !yym65 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Expiration) + } else { + z.DecFallback(x.Expiration, false) + } + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + x.TTL = int64(r.DecodeInt(64)) + } + for { + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1819) + z.DecStructFieldNotFound(yyj57-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1819) +} + +func (x Nodes) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1819 + 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 { + h.encNodes((Nodes)(x), e) + } + } +} + +func (x *Nodes) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym69 := z.DecBinary() + _ = yym69 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decNodes((*Nodes)(x), d) + } +} + +func (x codecSelfer1819) encNodes(v Nodes, e *codec1978.Encoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv70 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1819) + if yyv70 == nil { + r.EncodeNil() + } else { + yyv70.CodecEncodeSelf(e) + } + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1819) +} + +func (x codecSelfer1819) decNodes(v *Nodes, d *codec1978.Decoder) { + var h codecSelfer1819 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv71 := *v + yyh71, yyl71 := z.DecSliceHelperStart() + var yyc71 bool + if yyl71 == 0 { + if yyv71 == nil { + yyv71 = []*Node{} + yyc71 = true + } else if len(yyv71) != 0 { + yyv71 = yyv71[:0] + yyc71 = true + } + } else if yyl71 > 0 { + var yyrr71, yyrl71 int + var yyrt71 bool + if yyl71 > cap(yyv71) { + + yyrg71 := len(yyv71) > 0 + yyv271 := yyv71 + yyrl71, yyrt71 = z.DecInferLen(yyl71, z.DecBasicHandle().MaxInitLen, 8) + if yyrt71 { + if yyrl71 <= cap(yyv71) { + yyv71 = yyv71[:yyrl71] + } else { + yyv71 = make([]*Node, yyrl71) + } + } else { + yyv71 = make([]*Node, yyrl71) + } + yyc71 = true + yyrr71 = len(yyv71) + if yyrg71 { + copy(yyv71, yyv271) + } + } else if yyl71 != len(yyv71) { + yyv71 = yyv71[:yyl71] + yyc71 = true + } + yyj71 := 0 + for ; yyj71 < yyrr71; yyj71++ { + yyh71.ElemContainerState(yyj71) + if r.TryDecodeAsNil() { + if yyv71[yyj71] != nil { + *yyv71[yyj71] = Node{} + } + } else { + if yyv71[yyj71] == nil { + yyv71[yyj71] = new(Node) + } + yyw72 := yyv71[yyj71] + yyw72.CodecDecodeSelf(d) + } + + } + if yyrt71 { + for ; yyj71 < yyl71; yyj71++ { + yyv71 = append(yyv71, nil) + yyh71.ElemContainerState(yyj71) + if r.TryDecodeAsNil() { + if yyv71[yyj71] != nil { + *yyv71[yyj71] = Node{} + } + } else { + if yyv71[yyj71] == nil { + yyv71[yyj71] = new(Node) + } + yyw73 := yyv71[yyj71] + yyw73.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj71 := 0 + for ; !r.CheckBreak(); yyj71++ { + + if yyj71 >= len(yyv71) { + yyv71 = append(yyv71, nil) // var yyz71 *Node + yyc71 = true + } + yyh71.ElemContainerState(yyj71) + if yyj71 < len(yyv71) { + if r.TryDecodeAsNil() { + if yyv71[yyj71] != nil { + *yyv71[yyj71] = Node{} + } + } else { + if yyv71[yyj71] == nil { + yyv71[yyj71] = new(Node) + } + yyw74 := yyv71[yyj71] + yyw74.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj71 < len(yyv71) { + yyv71 = yyv71[:yyj71] + yyc71 = true + } else if yyj71 == 0 && yyv71 == nil { + yyv71 = []*Node{} + yyc71 = true + } + } + yyh71.End() + if yyc71 { + *v = yyv71 + } +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/keys.go b/ingress/vendor/github.com/coreos/etcd/client/keys.go new file mode 100644 index 0000000000..62d5d506ec --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/keys.go @@ -0,0 +1,668 @@ +// Copyright 2015 The etcd 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 client + +//go:generate codecgen -d 1819 -r "Node|Response|Nodes" -o keys.generated.go keys.go + +import ( + "encoding/json" + "errors" + "fmt" + "net/http" + "net/url" + "strconv" + "strings" + "time" + + "github.com/coreos/etcd/pkg/pathutil" + "github.com/ugorji/go/codec" + "golang.org/x/net/context" +) + +const ( + ErrorCodeKeyNotFound = 100 + ErrorCodeTestFailed = 101 + ErrorCodeNotFile = 102 + ErrorCodeNotDir = 104 + ErrorCodeNodeExist = 105 + ErrorCodeRootROnly = 107 + ErrorCodeDirNotEmpty = 108 + ErrorCodeUnauthorized = 110 + + ErrorCodePrevValueRequired = 201 + ErrorCodeTTLNaN = 202 + ErrorCodeIndexNaN = 203 + ErrorCodeInvalidField = 209 + ErrorCodeInvalidForm = 210 + + ErrorCodeRaftInternal = 300 + ErrorCodeLeaderElect = 301 + + ErrorCodeWatcherCleared = 400 + ErrorCodeEventIndexCleared = 401 +) + +type Error struct { + Code int `json:"errorCode"` + Message string `json:"message"` + Cause string `json:"cause"` + Index uint64 `json:"index"` +} + +func (e Error) Error() string { + return fmt.Sprintf("%v: %v (%v) [%v]", e.Code, e.Message, e.Cause, e.Index) +} + +var ( + ErrInvalidJSON = errors.New("client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint.") + ErrEmptyBody = errors.New("client: response body is empty") +) + +// PrevExistType is used to define an existence condition when setting +// or deleting Nodes. +type PrevExistType string + +const ( + PrevIgnore = PrevExistType("") + PrevExist = PrevExistType("true") + PrevNoExist = PrevExistType("false") +) + +var ( + defaultV2KeysPrefix = "/v2/keys" +) + +// NewKeysAPI builds a KeysAPI that interacts with etcd's key-value +// API over HTTP. +func NewKeysAPI(c Client) KeysAPI { + return NewKeysAPIWithPrefix(c, defaultV2KeysPrefix) +} + +// NewKeysAPIWithPrefix acts like NewKeysAPI, but allows the caller +// to provide a custom base URL path. This should only be used in +// very rare cases. +func NewKeysAPIWithPrefix(c Client, p string) KeysAPI { + return &httpKeysAPI{ + client: c, + prefix: p, + } +} + +type KeysAPI interface { + // Get retrieves a set of Nodes from etcd + Get(ctx context.Context, key string, opts *GetOptions) (*Response, error) + + // Set assigns a new value to a Node identified by a given key. The caller + // may define a set of conditions in the SetOptions. If SetOptions.Dir=true + // then value is ignored. + Set(ctx context.Context, key, value string, opts *SetOptions) (*Response, error) + + // Delete removes a Node identified by the given key, optionally destroying + // all of its children as well. The caller may define a set of required + // conditions in an DeleteOptions object. + Delete(ctx context.Context, key string, opts *DeleteOptions) (*Response, error) + + // Create is an alias for Set w/ PrevExist=false + Create(ctx context.Context, key, value string) (*Response, error) + + // CreateInOrder is used to atomically create in-order keys within the given directory. + CreateInOrder(ctx context.Context, dir, value string, opts *CreateInOrderOptions) (*Response, error) + + // Update is an alias for Set w/ PrevExist=true + Update(ctx context.Context, key, value string) (*Response, error) + + // Watcher builds a new Watcher targeted at a specific Node identified + // by the given key. The Watcher may be configured at creation time + // through a WatcherOptions object. The returned Watcher is designed + // to emit events that happen to a Node, and optionally to its children. + Watcher(key string, opts *WatcherOptions) Watcher +} + +type WatcherOptions struct { + // AfterIndex defines the index after-which the Watcher should + // start emitting events. For example, if a value of 5 is + // provided, the first event will have an index >= 6. + // + // Setting AfterIndex to 0 (default) means that the Watcher + // should start watching for events starting at the current + // index, whatever that may be. + AfterIndex uint64 + + // Recursive specifies whether or not the Watcher should emit + // events that occur in children of the given keyspace. If set + // to false (default), events will be limited to those that + // occur for the exact key. + Recursive bool +} + +type CreateInOrderOptions struct { + // TTL defines a period of time after-which the Node should + // expire and no longer exist. Values <= 0 are ignored. Given + // that the zero-value is ignored, TTL cannot be used to set + // a TTL of 0. + TTL time.Duration +} + +type SetOptions struct { + // PrevValue specifies what the current value of the Node must + // be in order for the Set operation to succeed. + // + // Leaving this field empty means that the caller wishes to + // ignore the current value of the Node. This cannot be used + // to compare the Node's current value to an empty string. + // + // PrevValue is ignored if Dir=true + PrevValue string + + // PrevIndex indicates what the current ModifiedIndex of the + // Node must be in order for the Set operation to succeed. + // + // If PrevIndex is set to 0 (default), no comparison is made. + PrevIndex uint64 + + // PrevExist specifies whether the Node must currently exist + // (PrevExist) or not (PrevNoExist). If the caller does not + // care about existence, set PrevExist to PrevIgnore, or simply + // leave it unset. + PrevExist PrevExistType + + // TTL defines a period of time after-which the Node should + // expire and no longer exist. Values <= 0 are ignored. Given + // that the zero-value is ignored, TTL cannot be used to set + // a TTL of 0. + TTL time.Duration + + // Refresh set to true means a TTL value can be updated + // without firing a watch or changing the node value. A + // value must not be provided when refreshing a key. + Refresh bool + + // Dir specifies whether or not this Node should be created as a directory. + Dir bool +} + +type GetOptions struct { + // Recursive defines whether or not all children of the Node + // should be returned. + Recursive bool + + // Sort instructs the server whether or not to sort the Nodes. + // If true, the Nodes are sorted alphabetically by key in + // ascending order (A to z). If false (default), the Nodes will + // not be sorted and the ordering used should not be considered + // predictable. + Sort bool + + // Quorum specifies whether it gets the latest committed value that + // has been applied in quorum of members, which ensures external + // consistency (or linearizability). + Quorum bool +} + +type DeleteOptions struct { + // PrevValue specifies what the current value of the Node must + // be in order for the Delete operation to succeed. + // + // Leaving this field empty means that the caller wishes to + // ignore the current value of the Node. This cannot be used + // to compare the Node's current value to an empty string. + PrevValue string + + // PrevIndex indicates what the current ModifiedIndex of the + // Node must be in order for the Delete operation to succeed. + // + // If PrevIndex is set to 0 (default), no comparison is made. + PrevIndex uint64 + + // Recursive defines whether or not all children of the Node + // should be deleted. If set to true, all children of the Node + // identified by the given key will be deleted. If left unset + // or explicitly set to false, only a single Node will be + // deleted. + Recursive bool + + // Dir specifies whether or not this Node should be removed as a directory. + Dir bool +} + +type Watcher interface { + // Next blocks until an etcd event occurs, then returns a Response + // representing that event. The behavior of Next depends on the + // WatcherOptions used to construct the Watcher. Next is designed to + // be called repeatedly, each time blocking until a subsequent event + // is available. + // + // If the provided context is cancelled, Next will return a non-nil + // error. Any other failures encountered while waiting for the next + // event (connection issues, deserialization failures, etc) will + // also result in a non-nil error. + Next(context.Context) (*Response, error) +} + +type Response struct { + // Action is the name of the operation that occurred. Possible values + // include get, set, delete, update, create, compareAndSwap, + // compareAndDelete and expire. + Action string `json:"action"` + + // Node represents the state of the relevant etcd Node. + Node *Node `json:"node"` + + // PrevNode represents the previous state of the Node. PrevNode is non-nil + // only if the Node existed before the action occurred and the action + // caused a change to the Node. + PrevNode *Node `json:"prevNode"` + + // Index holds the cluster-level index at the time the Response was generated. + // This index is not tied to the Node(s) contained in this Response. + Index uint64 `json:"-"` +} + +type Node struct { + // Key represents the unique location of this Node (e.g. "/foo/bar"). + Key string `json:"key"` + + // Dir reports whether node describes a directory. + Dir bool `json:"dir,omitempty"` + + // Value is the current data stored on this Node. If this Node + // is a directory, Value will be empty. + Value string `json:"value"` + + // Nodes holds the children of this Node, only if this Node is a directory. + // This slice of will be arbitrarily deep (children, grandchildren, great- + // grandchildren, etc.) if a recursive Get or Watch request were made. + Nodes Nodes `json:"nodes"` + + // CreatedIndex is the etcd index at-which this Node was created. + CreatedIndex uint64 `json:"createdIndex"` + + // ModifiedIndex is the etcd index at-which this Node was last modified. + ModifiedIndex uint64 `json:"modifiedIndex"` + + // Expiration is the server side expiration time of the key. + Expiration *time.Time `json:"expiration,omitempty"` + + // TTL is the time to live of the key in second. + TTL int64 `json:"ttl,omitempty"` +} + +func (n *Node) String() string { + return fmt.Sprintf("{Key: %s, CreatedIndex: %d, ModifiedIndex: %d, TTL: %d}", n.Key, n.CreatedIndex, n.ModifiedIndex, n.TTL) +} + +// TTLDuration returns the Node's TTL as a time.Duration object +func (n *Node) TTLDuration() time.Duration { + return time.Duration(n.TTL) * time.Second +} + +type Nodes []*Node + +// interfaces for sorting + +func (ns Nodes) Len() int { return len(ns) } +func (ns Nodes) Less(i, j int) bool { return ns[i].Key < ns[j].Key } +func (ns Nodes) Swap(i, j int) { ns[i], ns[j] = ns[j], ns[i] } + +type httpKeysAPI struct { + client httpClient + prefix string +} + +func (k *httpKeysAPI) Set(ctx context.Context, key, val string, opts *SetOptions) (*Response, error) { + act := &setAction{ + Prefix: k.prefix, + Key: key, + Value: val, + } + + if opts != nil { + act.PrevValue = opts.PrevValue + act.PrevIndex = opts.PrevIndex + act.PrevExist = opts.PrevExist + act.TTL = opts.TTL + act.Refresh = opts.Refresh + act.Dir = opts.Dir + } + + doCtx := ctx + if act.PrevExist == PrevNoExist { + doCtx = context.WithValue(doCtx, &oneShotCtxValue, &oneShotCtxValue) + } + resp, body, err := k.client.Do(doCtx, act) + if err != nil { + return nil, err + } + + return unmarshalHTTPResponse(resp.StatusCode, resp.Header, body) +} + +func (k *httpKeysAPI) Create(ctx context.Context, key, val string) (*Response, error) { + return k.Set(ctx, key, val, &SetOptions{PrevExist: PrevNoExist}) +} + +func (k *httpKeysAPI) CreateInOrder(ctx context.Context, dir, val string, opts *CreateInOrderOptions) (*Response, error) { + act := &createInOrderAction{ + Prefix: k.prefix, + Dir: dir, + Value: val, + } + + if opts != nil { + act.TTL = opts.TTL + } + + resp, body, err := k.client.Do(ctx, act) + if err != nil { + return nil, err + } + + return unmarshalHTTPResponse(resp.StatusCode, resp.Header, body) +} + +func (k *httpKeysAPI) Update(ctx context.Context, key, val string) (*Response, error) { + return k.Set(ctx, key, val, &SetOptions{PrevExist: PrevExist}) +} + +func (k *httpKeysAPI) Delete(ctx context.Context, key string, opts *DeleteOptions) (*Response, error) { + act := &deleteAction{ + Prefix: k.prefix, + Key: key, + } + + if opts != nil { + act.PrevValue = opts.PrevValue + act.PrevIndex = opts.PrevIndex + act.Dir = opts.Dir + act.Recursive = opts.Recursive + } + + doCtx := context.WithValue(ctx, &oneShotCtxValue, &oneShotCtxValue) + resp, body, err := k.client.Do(doCtx, act) + if err != nil { + return nil, err + } + + return unmarshalHTTPResponse(resp.StatusCode, resp.Header, body) +} + +func (k *httpKeysAPI) Get(ctx context.Context, key string, opts *GetOptions) (*Response, error) { + act := &getAction{ + Prefix: k.prefix, + Key: key, + } + + if opts != nil { + act.Recursive = opts.Recursive + act.Sorted = opts.Sort + act.Quorum = opts.Quorum + } + + resp, body, err := k.client.Do(ctx, act) + if err != nil { + return nil, err + } + + return unmarshalHTTPResponse(resp.StatusCode, resp.Header, body) +} + +func (k *httpKeysAPI) Watcher(key string, opts *WatcherOptions) Watcher { + act := waitAction{ + Prefix: k.prefix, + Key: key, + } + + if opts != nil { + act.Recursive = opts.Recursive + if opts.AfterIndex > 0 { + act.WaitIndex = opts.AfterIndex + 1 + } + } + + return &httpWatcher{ + client: k.client, + nextWait: act, + } +} + +type httpWatcher struct { + client httpClient + nextWait waitAction +} + +func (hw *httpWatcher) Next(ctx context.Context) (*Response, error) { + for { + httpresp, body, err := hw.client.Do(ctx, &hw.nextWait) + if err != nil { + return nil, err + } + + resp, err := unmarshalHTTPResponse(httpresp.StatusCode, httpresp.Header, body) + if err != nil { + if err == ErrEmptyBody { + continue + } + return nil, err + } + + hw.nextWait.WaitIndex = resp.Node.ModifiedIndex + 1 + return resp, nil + } +} + +// v2KeysURL forms a URL representing the location of a key. +// The endpoint argument represents the base URL of an etcd +// server. The prefix is the path needed to route from the +// provided endpoint's path to the root of the keys API +// (typically "/v2/keys"). +func v2KeysURL(ep url.URL, prefix, key string) *url.URL { + // We concatenate all parts together manually. We cannot use + // path.Join because it does not reserve trailing slash. + // We call CanonicalURLPath to further cleanup the path. + if prefix != "" && prefix[0] != '/' { + prefix = "/" + prefix + } + if key != "" && key[0] != '/' { + key = "/" + key + } + ep.Path = pathutil.CanonicalURLPath(ep.Path + prefix + key) + return &ep +} + +type getAction struct { + Prefix string + Key string + Recursive bool + Sorted bool + Quorum bool +} + +func (g *getAction) HTTPRequest(ep url.URL) *http.Request { + u := v2KeysURL(ep, g.Prefix, g.Key) + + params := u.Query() + params.Set("recursive", strconv.FormatBool(g.Recursive)) + params.Set("sorted", strconv.FormatBool(g.Sorted)) + params.Set("quorum", strconv.FormatBool(g.Quorum)) + u.RawQuery = params.Encode() + + req, _ := http.NewRequest("GET", u.String(), nil) + return req +} + +type waitAction struct { + Prefix string + Key string + WaitIndex uint64 + Recursive bool +} + +func (w *waitAction) HTTPRequest(ep url.URL) *http.Request { + u := v2KeysURL(ep, w.Prefix, w.Key) + + params := u.Query() + params.Set("wait", "true") + params.Set("waitIndex", strconv.FormatUint(w.WaitIndex, 10)) + params.Set("recursive", strconv.FormatBool(w.Recursive)) + u.RawQuery = params.Encode() + + req, _ := http.NewRequest("GET", u.String(), nil) + return req +} + +type setAction struct { + Prefix string + Key string + Value string + PrevValue string + PrevIndex uint64 + PrevExist PrevExistType + TTL time.Duration + Refresh bool + Dir bool +} + +func (a *setAction) HTTPRequest(ep url.URL) *http.Request { + u := v2KeysURL(ep, a.Prefix, a.Key) + + params := u.Query() + form := url.Values{} + + // we're either creating a directory or setting a key + if a.Dir { + params.Set("dir", strconv.FormatBool(a.Dir)) + } else { + // These options are only valid for setting a key + if a.PrevValue != "" { + params.Set("prevValue", a.PrevValue) + } + form.Add("value", a.Value) + } + + // Options which apply to both setting a key and creating a dir + if a.PrevIndex != 0 { + params.Set("prevIndex", strconv.FormatUint(a.PrevIndex, 10)) + } + if a.PrevExist != PrevIgnore { + params.Set("prevExist", string(a.PrevExist)) + } + if a.TTL > 0 { + form.Add("ttl", strconv.FormatUint(uint64(a.TTL.Seconds()), 10)) + } + + if a.Refresh { + form.Add("refresh", "true") + } + + u.RawQuery = params.Encode() + body := strings.NewReader(form.Encode()) + + req, _ := http.NewRequest("PUT", u.String(), body) + req.Header.Set("Content-Type", "application/x-www-form-urlencoded") + + return req +} + +type deleteAction struct { + Prefix string + Key string + PrevValue string + PrevIndex uint64 + Dir bool + Recursive bool +} + +func (a *deleteAction) HTTPRequest(ep url.URL) *http.Request { + u := v2KeysURL(ep, a.Prefix, a.Key) + + params := u.Query() + if a.PrevValue != "" { + params.Set("prevValue", a.PrevValue) + } + if a.PrevIndex != 0 { + params.Set("prevIndex", strconv.FormatUint(a.PrevIndex, 10)) + } + if a.Dir { + params.Set("dir", "true") + } + if a.Recursive { + params.Set("recursive", "true") + } + u.RawQuery = params.Encode() + + req, _ := http.NewRequest("DELETE", u.String(), nil) + req.Header.Set("Content-Type", "application/x-www-form-urlencoded") + + return req +} + +type createInOrderAction struct { + Prefix string + Dir string + Value string + TTL time.Duration +} + +func (a *createInOrderAction) HTTPRequest(ep url.URL) *http.Request { + u := v2KeysURL(ep, a.Prefix, a.Dir) + + form := url.Values{} + form.Add("value", a.Value) + if a.TTL > 0 { + form.Add("ttl", strconv.FormatUint(uint64(a.TTL.Seconds()), 10)) + } + body := strings.NewReader(form.Encode()) + + req, _ := http.NewRequest("POST", u.String(), body) + req.Header.Set("Content-Type", "application/x-www-form-urlencoded") + return req +} + +func unmarshalHTTPResponse(code int, header http.Header, body []byte) (res *Response, err error) { + switch code { + case http.StatusOK, http.StatusCreated: + if len(body) == 0 { + return nil, ErrEmptyBody + } + res, err = unmarshalSuccessfulKeysResponse(header, body) + default: + err = unmarshalFailedKeysResponse(body) + } + + return +} + +func unmarshalSuccessfulKeysResponse(header http.Header, body []byte) (*Response, error) { + var res Response + err := codec.NewDecoderBytes(body, new(codec.JsonHandle)).Decode(&res) + if err != nil { + return nil, ErrInvalidJSON + } + if header.Get("X-Etcd-Index") != "" { + res.Index, err = strconv.ParseUint(header.Get("X-Etcd-Index"), 10, 64) + if err != nil { + return nil, err + } + } + return &res, nil +} + +func unmarshalFailedKeysResponse(body []byte) error { + var etcdErr Error + if err := json.Unmarshal(body, &etcdErr); err != nil { + return ErrInvalidJSON + } + return etcdErr +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/members.go b/ingress/vendor/github.com/coreos/etcd/client/members.go new file mode 100644 index 0000000000..23adf07ad9 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/members.go @@ -0,0 +1,304 @@ +// Copyright 2015 The etcd 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 client + +import ( + "bytes" + "encoding/json" + "fmt" + "net/http" + "net/url" + "path" + + "golang.org/x/net/context" + + "github.com/coreos/etcd/pkg/types" +) + +var ( + defaultV2MembersPrefix = "/v2/members" + defaultLeaderSuffix = "/leader" +) + +type Member struct { + // ID is the unique identifier of this Member. + ID string `json:"id"` + + // Name is a human-readable, non-unique identifier of this Member. + Name string `json:"name"` + + // PeerURLs represents the HTTP(S) endpoints this Member uses to + // participate in etcd's consensus protocol. + PeerURLs []string `json:"peerURLs"` + + // ClientURLs represents the HTTP(S) endpoints on which this Member + // serves it's client-facing APIs. + ClientURLs []string `json:"clientURLs"` +} + +type memberCollection []Member + +func (c *memberCollection) UnmarshalJSON(data []byte) error { + d := struct { + Members []Member + }{} + + if err := json.Unmarshal(data, &d); err != nil { + return err + } + + if d.Members == nil { + *c = make([]Member, 0) + return nil + } + + *c = d.Members + return nil +} + +type memberCreateOrUpdateRequest struct { + PeerURLs types.URLs +} + +func (m *memberCreateOrUpdateRequest) MarshalJSON() ([]byte, error) { + s := struct { + PeerURLs []string `json:"peerURLs"` + }{ + PeerURLs: make([]string, len(m.PeerURLs)), + } + + for i, u := range m.PeerURLs { + s.PeerURLs[i] = u.String() + } + + return json.Marshal(&s) +} + +// NewMembersAPI constructs a new MembersAPI that uses HTTP to +// interact with etcd's membership API. +func NewMembersAPI(c Client) MembersAPI { + return &httpMembersAPI{ + client: c, + } +} + +type MembersAPI interface { + // List enumerates the current cluster membership. + List(ctx context.Context) ([]Member, error) + + // Add instructs etcd to accept a new Member into the cluster. + Add(ctx context.Context, peerURL string) (*Member, error) + + // Remove demotes an existing Member out of the cluster. + Remove(ctx context.Context, mID string) error + + // Update instructs etcd to update an existing Member in the cluster. + Update(ctx context.Context, mID string, peerURLs []string) error + + // Leader gets current leader of the cluster + Leader(ctx context.Context) (*Member, error) +} + +type httpMembersAPI struct { + client httpClient +} + +func (m *httpMembersAPI) List(ctx context.Context) ([]Member, error) { + req := &membersAPIActionList{} + resp, body, err := m.client.Do(ctx, req) + if err != nil { + return nil, err + } + + if err := assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { + return nil, err + } + + var mCollection memberCollection + if err := json.Unmarshal(body, &mCollection); err != nil { + return nil, err + } + + return []Member(mCollection), nil +} + +func (m *httpMembersAPI) Add(ctx context.Context, peerURL string) (*Member, error) { + urls, err := types.NewURLs([]string{peerURL}) + if err != nil { + return nil, err + } + + req := &membersAPIActionAdd{peerURLs: urls} + resp, body, err := m.client.Do(ctx, req) + if err != nil { + return nil, err + } + + if err := assertStatusCode(resp.StatusCode, http.StatusCreated, http.StatusConflict); err != nil { + return nil, err + } + + if resp.StatusCode != http.StatusCreated { + var merr membersError + if err := json.Unmarshal(body, &merr); err != nil { + return nil, err + } + return nil, merr + } + + var memb Member + if err := json.Unmarshal(body, &memb); err != nil { + return nil, err + } + + return &memb, nil +} + +func (m *httpMembersAPI) Update(ctx context.Context, memberID string, peerURLs []string) error { + urls, err := types.NewURLs(peerURLs) + if err != nil { + return err + } + + req := &membersAPIActionUpdate{peerURLs: urls, memberID: memberID} + resp, body, err := m.client.Do(ctx, req) + if err != nil { + return err + } + + if err := assertStatusCode(resp.StatusCode, http.StatusNoContent, http.StatusNotFound, http.StatusConflict); err != nil { + return err + } + + if resp.StatusCode != http.StatusNoContent { + var merr membersError + if err := json.Unmarshal(body, &merr); err != nil { + return err + } + return merr + } + + return nil +} + +func (m *httpMembersAPI) Remove(ctx context.Context, memberID string) error { + req := &membersAPIActionRemove{memberID: memberID} + resp, _, err := m.client.Do(ctx, req) + if err != nil { + return err + } + + return assertStatusCode(resp.StatusCode, http.StatusNoContent, http.StatusGone) +} + +func (m *httpMembersAPI) Leader(ctx context.Context) (*Member, error) { + req := &membersAPIActionLeader{} + resp, body, err := m.client.Do(ctx, req) + if err != nil { + return nil, err + } + + if err := assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { + return nil, err + } + + var leader Member + if err := json.Unmarshal(body, &leader); err != nil { + return nil, err + } + + return &leader, nil +} + +type membersAPIActionList struct{} + +func (l *membersAPIActionList) HTTPRequest(ep url.URL) *http.Request { + u := v2MembersURL(ep) + req, _ := http.NewRequest("GET", u.String(), nil) + return req +} + +type membersAPIActionRemove struct { + memberID string +} + +func (d *membersAPIActionRemove) HTTPRequest(ep url.URL) *http.Request { + u := v2MembersURL(ep) + u.Path = path.Join(u.Path, d.memberID) + req, _ := http.NewRequest("DELETE", u.String(), nil) + return req +} + +type membersAPIActionAdd struct { + peerURLs types.URLs +} + +func (a *membersAPIActionAdd) HTTPRequest(ep url.URL) *http.Request { + u := v2MembersURL(ep) + m := memberCreateOrUpdateRequest{PeerURLs: a.peerURLs} + b, _ := json.Marshal(&m) + req, _ := http.NewRequest("POST", u.String(), bytes.NewReader(b)) + req.Header.Set("Content-Type", "application/json") + return req +} + +type membersAPIActionUpdate struct { + memberID string + peerURLs types.URLs +} + +func (a *membersAPIActionUpdate) HTTPRequest(ep url.URL) *http.Request { + u := v2MembersURL(ep) + m := memberCreateOrUpdateRequest{PeerURLs: a.peerURLs} + u.Path = path.Join(u.Path, a.memberID) + b, _ := json.Marshal(&m) + req, _ := http.NewRequest("PUT", u.String(), bytes.NewReader(b)) + req.Header.Set("Content-Type", "application/json") + return req +} + +func assertStatusCode(got int, want ...int) (err error) { + for _, w := range want { + if w == got { + return nil + } + } + return fmt.Errorf("unexpected status code %d", got) +} + +type membersAPIActionLeader struct{} + +func (l *membersAPIActionLeader) HTTPRequest(ep url.URL) *http.Request { + u := v2MembersURL(ep) + u.Path = path.Join(u.Path, defaultLeaderSuffix) + req, _ := http.NewRequest("GET", u.String(), nil) + return req +} + +// v2MembersURL add the necessary path to the provided endpoint +// to route requests to the default v2 members API. +func v2MembersURL(ep url.URL) *url.URL { + ep.Path = path.Join(ep.Path, defaultV2MembersPrefix) + return &ep +} + +type membersError struct { + Message string `json:"message"` + Code int `json:"-"` +} + +func (e membersError) Error() string { + return e.Message +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/srv.go b/ingress/vendor/github.com/coreos/etcd/client/srv.go new file mode 100644 index 0000000000..fdfa343592 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/srv.go @@ -0,0 +1,65 @@ +// Copyright 2015 The etcd 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 client + +import ( + "fmt" + "net" + "net/url" +) + +var ( + // indirection for testing + lookupSRV = net.LookupSRV +) + +type srvDiscover struct{} + +// NewSRVDiscover constructs a new Discoverer that uses the stdlib to lookup SRV records. +func NewSRVDiscover() Discoverer { + return &srvDiscover{} +} + +// Discover looks up the etcd servers for the domain. +func (d *srvDiscover) Discover(domain string) ([]string, error) { + var urls []*url.URL + + updateURLs := func(service, scheme string) error { + _, addrs, err := lookupSRV(service, "tcp", domain) + if err != nil { + return err + } + for _, srv := range addrs { + urls = append(urls, &url.URL{ + Scheme: scheme, + Host: net.JoinHostPort(srv.Target, fmt.Sprintf("%d", srv.Port)), + }) + } + return nil + } + + errHTTPS := updateURLs("etcd-client-ssl", "https") + errHTTP := updateURLs("etcd-client", "http") + + if errHTTPS != nil && errHTTP != nil { + return nil, fmt.Errorf("dns lookup errors: %s and %s", errHTTPS, errHTTP) + } + + endpoints := make([]string, len(urls)) + for i := range urls { + endpoints[i] = urls[i].String() + } + return endpoints, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/client/util.go b/ingress/vendor/github.com/coreos/etcd/client/util.go new file mode 100644 index 0000000000..198bff9654 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/client/util.go @@ -0,0 +1,23 @@ +// Copyright 2016 The etcd 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 client + +// IsKeyNotFound returns true if the error code is ErrorCodeKeyNotFound. +func IsKeyNotFound(err error) bool { + if cErr, ok := err.(Error); ok { + return cErr.Code == ErrorCodeKeyNotFound + } + return false +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/README.md b/ingress/vendor/github.com/coreos/etcd/clientv3/README.md new file mode 100644 index 0000000000..e434f99943 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/README.md @@ -0,0 +1,77 @@ +# etcd/clientv3 + +[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/coreos/etcd/clientv3) + +`etcd/clientv3` is the official Go etcd client for v3. + +## Install + +```bash +go get github.com/coreos/etcd/clientv3 +``` + +## Get started + +Create client using `clientv3.New`: + +```go +cli, err := clientv3.New(clientv3.Config{ + Endpoints: []string{"localhost:2379", "localhost:22379", "localhost:32379"}, + DialTimeout: 5 * time.Second, +}) +if err != nil { + // handle error! +} +defer cli.Close() +``` + +etcd v3 uses [`gRPC`](http://www.grpc.io) for remote procedure calls. And `clientv3` uses +[`grpc-go`](https://github.com/grpc/grpc-go) to connect to etcd. Make sure to close the client after using it. +If the client is not closed, the connection will have leaky goroutines. To specify client request timeout, +pass `context.WithTimeout` to APIs: + +```go +ctx, cancel := context.WithTimeout(context.Background(), timeout) +resp, err := kvc.Put(ctx, "sample_key", "sample_value") +cancel() +if err != nil { + // handle error! +} +// use the response +``` + +etcd uses `cmd/vendor` directory to store external dependencies, which are +to be compiled into etcd release binaries. `client` can be imported without +vendoring. For full compatibility, it is recommended to vendor builds using +etcd's vendored packages, using tools like godep, as in +[vendor directories](https://golang.org/cmd/go/#hdr-Vendor_Directories). +For more detail, please read [Go vendor design](https://golang.org/s/go15vendor). + +## Error Handling + +etcd client returns 2 types of errors: + +1. context error: canceled or deadline exceeded. +2. gRPC error: see [api/v3rpc/rpctypes](https://godoc.org/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes). + +Here is the example code to handle client errors: + +```go +resp, err := kvc.Put(ctx, "", "") +if err != nil { + switch err { + case context.Canceled: + log.Fatalf("ctx is canceled by another routine: %v", err) + case context.DeadlineExceeded: + log.Fatalf("ctx is attached with a deadline is exceeded: %v", err) + case rpctypes.ErrEmptyKey: + log.Fatalf("client-side error: %v", err) + default: + log.Fatalf("bad cluster endpoints, which are not etcd servers: %v", err) + } +} +``` + +## Examples + +More code examples can be found at [GoDoc](https://godoc.org/github.com/coreos/etcd/clientv3). diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/auth.go b/ingress/vendor/github.com/coreos/etcd/clientv3/auth.go new file mode 100644 index 0000000000..8c3c047f4e --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/auth.go @@ -0,0 +1,229 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "fmt" + "strings" + + "github.com/coreos/etcd/auth/authpb" + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +type ( + AuthEnableResponse pb.AuthEnableResponse + AuthDisableResponse pb.AuthDisableResponse + AuthenticateResponse pb.AuthenticateResponse + AuthUserAddResponse pb.AuthUserAddResponse + AuthUserDeleteResponse pb.AuthUserDeleteResponse + AuthUserChangePasswordResponse pb.AuthUserChangePasswordResponse + AuthUserGrantRoleResponse pb.AuthUserGrantRoleResponse + AuthUserGetResponse pb.AuthUserGetResponse + AuthUserRevokeRoleResponse pb.AuthUserRevokeRoleResponse + AuthRoleAddResponse pb.AuthRoleAddResponse + AuthRoleGrantPermissionResponse pb.AuthRoleGrantPermissionResponse + AuthRoleGetResponse pb.AuthRoleGetResponse + AuthRoleRevokePermissionResponse pb.AuthRoleRevokePermissionResponse + AuthRoleDeleteResponse pb.AuthRoleDeleteResponse + AuthUserListResponse pb.AuthUserListResponse + AuthRoleListResponse pb.AuthRoleListResponse + + PermissionType authpb.Permission_Type +) + +const ( + PermRead = authpb.READ + PermWrite = authpb.WRITE + PermReadWrite = authpb.READWRITE +) + +type Auth interface { + // AuthEnable enables auth of an etcd cluster. + AuthEnable(ctx context.Context) (*AuthEnableResponse, error) + + // AuthDisable disables auth of an etcd cluster. + AuthDisable(ctx context.Context) (*AuthDisableResponse, error) + + // UserAdd adds a new user to an etcd cluster. + UserAdd(ctx context.Context, name string, password string) (*AuthUserAddResponse, error) + + // UserDelete deletes a user from an etcd cluster. + UserDelete(ctx context.Context, name string) (*AuthUserDeleteResponse, error) + + // UserChangePassword changes a password of a user. + UserChangePassword(ctx context.Context, name string, password string) (*AuthUserChangePasswordResponse, error) + + // UserGrantRole grants a role to a user. + UserGrantRole(ctx context.Context, user string, role string) (*AuthUserGrantRoleResponse, error) + + // UserGet gets a detailed information of a user. + UserGet(ctx context.Context, name string) (*AuthUserGetResponse, error) + + // UserList gets a list of all users. + UserList(ctx context.Context) (*AuthUserListResponse, error) + + // UserRevokeRole revokes a role of a user. + UserRevokeRole(ctx context.Context, name string, role string) (*AuthUserRevokeRoleResponse, error) + + // RoleAdd adds a new role to an etcd cluster. + RoleAdd(ctx context.Context, name string) (*AuthRoleAddResponse, error) + + // RoleGrantPermission grants a permission to a role. + RoleGrantPermission(ctx context.Context, name string, key, rangeEnd string, permType PermissionType) (*AuthRoleGrantPermissionResponse, error) + + // RoleGet gets a detailed information of a role. + RoleGet(ctx context.Context, role string) (*AuthRoleGetResponse, error) + + // RoleList gets a list of all roles. + RoleList(ctx context.Context) (*AuthRoleListResponse, error) + + // RoleRevokePermission revokes a permission from a role. + RoleRevokePermission(ctx context.Context, role string, key, rangeEnd string) (*AuthRoleRevokePermissionResponse, error) + + // RoleDelete deletes a role. + RoleDelete(ctx context.Context, role string) (*AuthRoleDeleteResponse, error) +} + +type auth struct { + c *Client + + conn *grpc.ClientConn // conn in-use + remote pb.AuthClient +} + +func NewAuth(c *Client) Auth { + conn := c.ActiveConnection() + return &auth{ + conn: c.ActiveConnection(), + remote: pb.NewAuthClient(conn), + c: c, + } +} + +func (auth *auth) AuthEnable(ctx context.Context) (*AuthEnableResponse, error) { + resp, err := auth.remote.AuthEnable(ctx, &pb.AuthEnableRequest{}) + return (*AuthEnableResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) AuthDisable(ctx context.Context) (*AuthDisableResponse, error) { + resp, err := auth.remote.AuthDisable(ctx, &pb.AuthDisableRequest{}) + return (*AuthDisableResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserAdd(ctx context.Context, name string, password string) (*AuthUserAddResponse, error) { + resp, err := auth.remote.UserAdd(ctx, &pb.AuthUserAddRequest{Name: name, Password: password}) + return (*AuthUserAddResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserDelete(ctx context.Context, name string) (*AuthUserDeleteResponse, error) { + resp, err := auth.remote.UserDelete(ctx, &pb.AuthUserDeleteRequest{Name: name}) + return (*AuthUserDeleteResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserChangePassword(ctx context.Context, name string, password string) (*AuthUserChangePasswordResponse, error) { + resp, err := auth.remote.UserChangePassword(ctx, &pb.AuthUserChangePasswordRequest{Name: name, Password: password}) + return (*AuthUserChangePasswordResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserGrantRole(ctx context.Context, user string, role string) (*AuthUserGrantRoleResponse, error) { + resp, err := auth.remote.UserGrantRole(ctx, &pb.AuthUserGrantRoleRequest{User: user, Role: role}) + return (*AuthUserGrantRoleResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserGet(ctx context.Context, name string) (*AuthUserGetResponse, error) { + resp, err := auth.remote.UserGet(ctx, &pb.AuthUserGetRequest{Name: name}, grpc.FailFast(false)) + return (*AuthUserGetResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserList(ctx context.Context) (*AuthUserListResponse, error) { + resp, err := auth.remote.UserList(ctx, &pb.AuthUserListRequest{}, grpc.FailFast(false)) + return (*AuthUserListResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) UserRevokeRole(ctx context.Context, name string, role string) (*AuthUserRevokeRoleResponse, error) { + resp, err := auth.remote.UserRevokeRole(ctx, &pb.AuthUserRevokeRoleRequest{Name: name, Role: role}) + return (*AuthUserRevokeRoleResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) RoleAdd(ctx context.Context, name string) (*AuthRoleAddResponse, error) { + resp, err := auth.remote.RoleAdd(ctx, &pb.AuthRoleAddRequest{Name: name}) + return (*AuthRoleAddResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) RoleGrantPermission(ctx context.Context, name string, key, rangeEnd string, permType PermissionType) (*AuthRoleGrantPermissionResponse, error) { + perm := &authpb.Permission{ + Key: []byte(key), + RangeEnd: []byte(rangeEnd), + PermType: authpb.Permission_Type(permType), + } + resp, err := auth.remote.RoleGrantPermission(ctx, &pb.AuthRoleGrantPermissionRequest{Name: name, Perm: perm}) + return (*AuthRoleGrantPermissionResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) RoleGet(ctx context.Context, role string) (*AuthRoleGetResponse, error) { + resp, err := auth.remote.RoleGet(ctx, &pb.AuthRoleGetRequest{Role: role}, grpc.FailFast(false)) + return (*AuthRoleGetResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) RoleList(ctx context.Context) (*AuthRoleListResponse, error) { + resp, err := auth.remote.RoleList(ctx, &pb.AuthRoleListRequest{}, grpc.FailFast(false)) + return (*AuthRoleListResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) RoleRevokePermission(ctx context.Context, role string, key, rangeEnd string) (*AuthRoleRevokePermissionResponse, error) { + resp, err := auth.remote.RoleRevokePermission(ctx, &pb.AuthRoleRevokePermissionRequest{Role: role, Key: key, RangeEnd: rangeEnd}) + return (*AuthRoleRevokePermissionResponse)(resp), toErr(ctx, err) +} + +func (auth *auth) RoleDelete(ctx context.Context, role string) (*AuthRoleDeleteResponse, error) { + resp, err := auth.remote.RoleDelete(ctx, &pb.AuthRoleDeleteRequest{Role: role}) + return (*AuthRoleDeleteResponse)(resp), toErr(ctx, err) +} + +func StrToPermissionType(s string) (PermissionType, error) { + val, ok := authpb.Permission_Type_value[strings.ToUpper(s)] + if ok { + return PermissionType(val), nil + } + return PermissionType(-1), fmt.Errorf("invalid permission type: %s", s) +} + +type authenticator struct { + conn *grpc.ClientConn // conn in-use + remote pb.AuthClient +} + +func (auth *authenticator) authenticate(ctx context.Context, name string, password string) (*AuthenticateResponse, error) { + resp, err := auth.remote.Authenticate(ctx, &pb.AuthenticateRequest{Name: name, Password: password}, grpc.FailFast(false)) + return (*AuthenticateResponse)(resp), toErr(ctx, err) +} + +func (auth *authenticator) close() { + auth.conn.Close() +} + +func newAuthenticator(endpoint string, opts []grpc.DialOption) (*authenticator, error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return nil, err + } + + return &authenticator{ + conn: conn, + remote: pb.NewAuthClient(conn), + }, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/balancer.go b/ingress/vendor/github.com/coreos/etcd/clientv3/balancer.go new file mode 100644 index 0000000000..b7fba6a204 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/balancer.go @@ -0,0 +1,147 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "net/url" + "strings" + "sync" + + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +// simpleBalancer does the bare minimum to expose multiple eps +// to the grpc reconnection code path +type simpleBalancer struct { + // addrs are the client's endpoints for grpc + addrs []grpc.Address + // notifyCh notifies grpc of the set of addresses for connecting + notifyCh chan []grpc.Address + + // readyc closes once the first connection is up + readyc chan struct{} + readyOnce sync.Once + + // mu protects upEps, pinAddr, and connectingAddr + mu sync.RWMutex + // upEps holds the current endpoints that have an active connection + upEps map[string]struct{} + // upc closes when upEps transitions from empty to non-zero or the balancer closes. + upc chan struct{} + + // pinAddr is the currently pinned address; set to the empty string on + // intialization and shutdown. + pinAddr string +} + +func newSimpleBalancer(eps []string) *simpleBalancer { + notifyCh := make(chan []grpc.Address, 1) + addrs := make([]grpc.Address, len(eps)) + for i := range eps { + addrs[i].Addr = getHost(eps[i]) + } + notifyCh <- addrs + sb := &simpleBalancer{ + addrs: addrs, + notifyCh: notifyCh, + readyc: make(chan struct{}), + upEps: make(map[string]struct{}), + upc: make(chan struct{}), + } + return sb +} + +func (b *simpleBalancer) Start(target string) error { return nil } + +func (b *simpleBalancer) ConnectNotify() <-chan struct{} { + b.mu.Lock() + defer b.mu.Unlock() + return b.upc +} + +func (b *simpleBalancer) Up(addr grpc.Address) func(error) { + b.mu.Lock() + if len(b.upEps) == 0 { + // notify waiting Get()s and pin first connected address + close(b.upc) + b.pinAddr = addr.Addr + } + b.upEps[addr.Addr] = struct{}{} + b.mu.Unlock() + // notify client that a connection is up + b.readyOnce.Do(func() { close(b.readyc) }) + return func(err error) { + b.mu.Lock() + delete(b.upEps, addr.Addr) + if len(b.upEps) == 0 && b.pinAddr != "" { + b.upc = make(chan struct{}) + } else if b.pinAddr == addr.Addr { + // choose new random up endpoint + for k := range b.upEps { + b.pinAddr = k + break + } + } + b.mu.Unlock() + } +} + +func (b *simpleBalancer) Get(ctx context.Context, opts grpc.BalancerGetOptions) (grpc.Address, func(), error) { + var addr string + for { + b.mu.RLock() + ch := b.upc + b.mu.RUnlock() + select { + case <-ch: + case <-ctx.Done(): + return grpc.Address{Addr: ""}, nil, ctx.Err() + } + b.mu.RLock() + addr = b.pinAddr + upEps := len(b.upEps) + b.mu.RUnlock() + if addr == "" { + return grpc.Address{Addr: ""}, nil, grpc.ErrClientConnClosing + } + if upEps > 0 { + break + } + } + return grpc.Address{Addr: addr}, func() {}, nil +} + +func (b *simpleBalancer) Notify() <-chan []grpc.Address { return b.notifyCh } + +func (b *simpleBalancer) Close() error { + b.mu.Lock() + close(b.notifyCh) + // terminate all waiting Get()s + b.pinAddr = "" + if len(b.upEps) == 0 { + close(b.upc) + } + b.mu.Unlock() + return nil +} + +func getHost(ep string) string { + url, uerr := url.Parse(ep) + if uerr != nil || !strings.Contains(ep, "://") { + return ep + } + return url.Host +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/client.go b/ingress/vendor/github.com/coreos/etcd/clientv3/client.go new file mode 100644 index 0000000000..e6903fc2f6 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/client.go @@ -0,0 +1,324 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "crypto/tls" + "errors" + "fmt" + "io/ioutil" + "log" + "net" + "net/url" + "strings" + "time" + + "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" + + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/metadata" +) + +var ( + ErrNoAvailableEndpoints = errors.New("etcdclient: no available endpoints") +) + +// Client provides and manages an etcd v3 client session. +type Client struct { + Cluster + KV + Lease + Watcher + Auth + Maintenance + + conn *grpc.ClientConn + cfg Config + creds *credentials.TransportCredentials + balancer *simpleBalancer + retryWrapper retryRpcFunc + + ctx context.Context + cancel context.CancelFunc + + // Username is a username for authentication + Username string + // Password is a password for authentication + Password string +} + +// New creates a new etcdv3 client from a given configuration. +func New(cfg Config) (*Client, error) { + if len(cfg.Endpoints) == 0 { + return nil, ErrNoAvailableEndpoints + } + + return newClient(&cfg) +} + +// NewFromURL creates a new etcdv3 client from a URL. +func NewFromURL(url string) (*Client, error) { + return New(Config{Endpoints: []string{url}}) +} + +// NewFromConfigFile creates a new etcdv3 client from a configuration file. +func NewFromConfigFile(path string) (*Client, error) { + cfg, err := configFromFile(path) + if err != nil { + return nil, err + } + return New(*cfg) +} + +// Close shuts down the client's etcd connections. +func (c *Client) Close() error { + c.cancel() + return toErr(c.ctx, c.conn.Close()) +} + +// Ctx is a context for "out of band" messages (e.g., for sending +// "clean up" message when another context is canceled). It is +// canceled on client Close(). +func (c *Client) Ctx() context.Context { return c.ctx } + +// Endpoints lists the registered endpoints for the client. +func (c *Client) Endpoints() []string { return c.cfg.Endpoints } + +type authTokenCredential struct { + token string +} + +func (cred authTokenCredential) RequireTransportSecurity() bool { + return false +} + +func (cred authTokenCredential) GetRequestMetadata(ctx context.Context, s ...string) (map[string]string, error) { + return map[string]string{ + "token": cred.token, + }, nil +} + +func (c *Client) dialTarget(endpoint string) (proto string, host string, creds *credentials.TransportCredentials) { + proto = "tcp" + host = endpoint + creds = c.creds + url, uerr := url.Parse(endpoint) + if uerr != nil || !strings.Contains(endpoint, "://") { + return + } + // strip scheme:// prefix since grpc dials by host + host = url.Host + switch url.Scheme { + case "unix": + proto = "unix" + case "http": + creds = nil + case "https": + if creds != nil { + break + } + tlsconfig := &tls.Config{} + emptyCreds := credentials.NewTLS(tlsconfig) + creds = &emptyCreds + default: + return "", "", nil + } + return +} + +// dialSetupOpts gives the dial opts prior to any authentication +func (c *Client) dialSetupOpts(endpoint string, dopts ...grpc.DialOption) (opts []grpc.DialOption) { + if c.cfg.DialTimeout > 0 { + opts = []grpc.DialOption{grpc.WithTimeout(c.cfg.DialTimeout)} + } + opts = append(opts, dopts...) + + // grpc issues TLS cert checks using the string passed into dial so + // that string must be the host. To recover the full scheme://host URL, + // have a map from hosts to the original endpoint. + host2ep := make(map[string]string) + for i := range c.cfg.Endpoints { + _, host, _ := c.dialTarget(c.cfg.Endpoints[i]) + host2ep[host] = c.cfg.Endpoints[i] + } + + f := func(host string, t time.Duration) (net.Conn, error) { + proto, host, _ := c.dialTarget(host2ep[host]) + if proto == "" { + return nil, fmt.Errorf("unknown scheme for %q", host) + } + select { + case <-c.ctx.Done(): + return nil, c.ctx.Err() + default: + } + return net.DialTimeout(proto, host, t) + } + opts = append(opts, grpc.WithDialer(f)) + + _, _, creds := c.dialTarget(endpoint) + if creds != nil { + opts = append(opts, grpc.WithTransportCredentials(*creds)) + } else { + opts = append(opts, grpc.WithInsecure()) + } + + return opts +} + +// Dial connects to a single endpoint using the client's config. +func (c *Client) Dial(endpoint string) (*grpc.ClientConn, error) { + return c.dial(endpoint) +} + +func (c *Client) dial(endpoint string, dopts ...grpc.DialOption) (*grpc.ClientConn, error) { + opts := c.dialSetupOpts(endpoint, dopts...) + host := getHost(endpoint) + if c.Username != "" && c.Password != "" { + // use dial options without dopts to avoid reusing the client balancer + auth, err := newAuthenticator(host, c.dialSetupOpts(endpoint)) + if err != nil { + return nil, err + } + defer auth.close() + + resp, err := auth.authenticate(c.ctx, c.Username, c.Password) + if err != nil { + return nil, err + } + opts = append(opts, grpc.WithPerRPCCredentials(authTokenCredential{token: resp.Token})) + } + + conn, err := grpc.Dial(host, opts...) + if err != nil { + return nil, err + } + return conn, nil +} + +// WithRequireLeader requires client requests to only succeed +// when the cluster has a leader. +func WithRequireLeader(ctx context.Context) context.Context { + md := metadata.Pairs(rpctypes.MetadataRequireLeaderKey, rpctypes.MetadataHasLeader) + return metadata.NewContext(ctx, md) +} + +func newClient(cfg *Config) (*Client, error) { + if cfg == nil { + cfg = &Config{} + } + var creds *credentials.TransportCredentials + if cfg.TLS != nil { + c := credentials.NewTLS(cfg.TLS) + creds = &c + } + + // use a temporary skeleton client to bootstrap first connection + ctx, cancel := context.WithCancel(context.TODO()) + client := &Client{ + conn: nil, + cfg: *cfg, + creds: creds, + ctx: ctx, + cancel: cancel, + } + if cfg.Username != "" && cfg.Password != "" { + client.Username = cfg.Username + client.Password = cfg.Password + } + + client.balancer = newSimpleBalancer(cfg.Endpoints) + conn, err := client.dial(cfg.Endpoints[0], grpc.WithBalancer(client.balancer)) + if err != nil { + return nil, err + } + client.conn = conn + client.retryWrapper = client.newRetryWrapper() + + // wait for a connection + if cfg.DialTimeout > 0 { + hasConn := false + waitc := time.After(cfg.DialTimeout) + select { + case <-client.balancer.readyc: + hasConn = true + case <-ctx.Done(): + case <-waitc: + } + if !hasConn { + client.cancel() + conn.Close() + return nil, grpc.ErrClientConnTimeout + } + } + + client.Cluster = NewCluster(client) + client.KV = NewKV(client) + client.Lease = NewLease(client) + client.Watcher = NewWatcher(client) + client.Auth = NewAuth(client) + client.Maintenance = NewMaintenance(client) + if cfg.Logger != nil { + logger.Set(cfg.Logger) + } else { + // disable client side grpc by default + logger.Set(log.New(ioutil.Discard, "", 0)) + } + + return client, nil +} + +// ActiveConnection returns the current in-use connection +func (c *Client) ActiveConnection() *grpc.ClientConn { return c.conn } + +// isHaltErr returns true if the given error and context indicate no forward +// progress can be made, even after reconnecting. +func isHaltErr(ctx context.Context, err error) bool { + if ctx != nil && ctx.Err() != nil { + return true + } + if err == nil { + return false + } + eErr := rpctypes.Error(err) + if _, ok := eErr.(rpctypes.EtcdError); ok { + return eErr != rpctypes.ErrStopped && eErr != rpctypes.ErrNoLeader + } + // treat etcdserver errors not recognized by the client as halting + return isConnClosing(err) || strings.Contains(err.Error(), "etcdserver:") +} + +// isConnClosing returns true if the error matches a grpc client closing error +func isConnClosing(err error) bool { + return strings.Contains(err.Error(), grpc.ErrClientConnClosing.Error()) +} + +func toErr(ctx context.Context, err error) error { + if err == nil { + return nil + } + err = rpctypes.Error(err) + switch { + case ctx.Err() != nil && strings.Contains(err.Error(), "context"): + err = ctx.Err() + case strings.Contains(err.Error(), ErrNoAvailableEndpoints.Error()): + err = ErrNoAvailableEndpoints + case strings.Contains(err.Error(), grpc.ErrClientConnClosing.Error()): + err = grpc.ErrClientConnClosing + } + return err +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/cluster.go b/ingress/vendor/github.com/coreos/etcd/clientv3/cluster.go new file mode 100644 index 0000000000..8b981171b5 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/cluster.go @@ -0,0 +1,102 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +type ( + Member pb.Member + MemberListResponse pb.MemberListResponse + MemberAddResponse pb.MemberAddResponse + MemberRemoveResponse pb.MemberRemoveResponse + MemberUpdateResponse pb.MemberUpdateResponse +) + +type Cluster interface { + // MemberList lists the current cluster membership. + MemberList(ctx context.Context) (*MemberListResponse, error) + + // MemberAdd adds a new member into the cluster. + MemberAdd(ctx context.Context, peerAddrs []string) (*MemberAddResponse, error) + + // MemberRemove removes an existing member from the cluster. + MemberRemove(ctx context.Context, id uint64) (*MemberRemoveResponse, error) + + // MemberUpdate updates the peer addresses of the member. + MemberUpdate(ctx context.Context, id uint64, peerAddrs []string) (*MemberUpdateResponse, error) +} + +type cluster struct { + remote pb.ClusterClient +} + +func NewCluster(c *Client) Cluster { + return &cluster{remote: RetryClusterClient(c)} +} + +func (c *cluster) MemberAdd(ctx context.Context, peerAddrs []string) (*MemberAddResponse, error) { + r := &pb.MemberAddRequest{PeerURLs: peerAddrs} + resp, err := c.remote.MemberAdd(ctx, r) + if err == nil { + return (*MemberAddResponse)(resp), nil + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + return nil, toErr(ctx, err) +} + +func (c *cluster) MemberRemove(ctx context.Context, id uint64) (*MemberRemoveResponse, error) { + r := &pb.MemberRemoveRequest{ID: id} + resp, err := c.remote.MemberRemove(ctx, r) + if err == nil { + return (*MemberRemoveResponse)(resp), nil + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + return nil, toErr(ctx, err) +} + +func (c *cluster) MemberUpdate(ctx context.Context, id uint64, peerAddrs []string) (*MemberUpdateResponse, error) { + // it is safe to retry on update. + for { + r := &pb.MemberUpdateRequest{ID: id, PeerURLs: peerAddrs} + resp, err := c.remote.MemberUpdate(ctx, r) + if err == nil { + return (*MemberUpdateResponse)(resp), nil + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + } +} + +func (c *cluster) MemberList(ctx context.Context) (*MemberListResponse, error) { + // it is safe to retry on list. + for { + resp, err := c.remote.MemberList(ctx, &pb.MemberListRequest{}, grpc.FailFast(false)) + if err == nil { + return (*MemberListResponse)(resp), nil + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + } +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/compact_op.go b/ingress/vendor/github.com/coreos/etcd/clientv3/compact_op.go new file mode 100644 index 0000000000..32d97eb0cc --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/compact_op.go @@ -0,0 +1,53 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" +) + +// CompactOp represents a compact operation. +type CompactOp struct { + revision int64 + physical bool +} + +// CompactOption configures compact operation. +type CompactOption func(*CompactOp) + +func (op *CompactOp) applyCompactOpts(opts []CompactOption) { + for _, opt := range opts { + opt(op) + } +} + +// OpCompact wraps slice CompactOption to create a CompactOp. +func OpCompact(rev int64, opts ...CompactOption) CompactOp { + ret := CompactOp{revision: rev} + ret.applyCompactOpts(opts) + return ret +} + +func (op CompactOp) toRequest() *pb.CompactionRequest { + return &pb.CompactionRequest{Revision: op.revision, Physical: op.physical} +} + +// WithCompactPhysical makes compact RPC call wait until +// the compaction is physically applied to the local database +// such that compacted entries are totally removed from the +// backend database. +func WithCompactPhysical() CompactOption { + return func(op *CompactOp) { op.physical = true } +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/compare.go b/ingress/vendor/github.com/coreos/etcd/clientv3/compare.go new file mode 100644 index 0000000000..601349431e --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/compare.go @@ -0,0 +1,91 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" +) + +type CompareTarget int +type CompareResult int + +const ( + CompareVersion CompareTarget = iota + CompareCreated + CompareModified + CompareValue +) + +type Cmp pb.Compare + +func Compare(cmp Cmp, result string, v interface{}) Cmp { + var r pb.Compare_CompareResult + + switch result { + case "=": + r = pb.Compare_EQUAL + case ">": + r = pb.Compare_GREATER + case "<": + r = pb.Compare_LESS + default: + panic("Unknown result op") + } + + cmp.Result = r + switch cmp.Target { + case pb.Compare_VALUE: + val, ok := v.(string) + if !ok { + panic("bad compare value") + } + cmp.TargetUnion = &pb.Compare_Value{Value: []byte(val)} + case pb.Compare_VERSION: + cmp.TargetUnion = &pb.Compare_Version{Version: mustInt64(v)} + case pb.Compare_CREATE: + cmp.TargetUnion = &pb.Compare_CreateRevision{CreateRevision: mustInt64(v)} + case pb.Compare_MOD: + cmp.TargetUnion = &pb.Compare_ModRevision{ModRevision: mustInt64(v)} + default: + panic("Unknown compare type") + } + return cmp +} + +func Value(key string) Cmp { + return Cmp{Key: []byte(key), Target: pb.Compare_VALUE} +} + +func Version(key string) Cmp { + return Cmp{Key: []byte(key), Target: pb.Compare_VERSION} +} + +func CreateRevision(key string) Cmp { + return Cmp{Key: []byte(key), Target: pb.Compare_CREATE} +} + +func ModRevision(key string) Cmp { + return Cmp{Key: []byte(key), Target: pb.Compare_MOD} +} + +func mustInt64(val interface{}) int64 { + if v, ok := val.(int64); ok { + return v + } + if v, ok := val.(int); ok { + return int64(v) + } + panic("bad value") +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/config.go b/ingress/vendor/github.com/coreos/etcd/clientv3/config.go new file mode 100644 index 0000000000..066b41ecef --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/config.go @@ -0,0 +1,110 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "crypto/tls" + "crypto/x509" + "io/ioutil" + "time" + + "github.com/coreos/etcd/pkg/tlsutil" + "github.com/ghodss/yaml" +) + +type Config struct { + // Endpoints is a list of URLs + Endpoints []string + + // DialTimeout is the timeout for failing to establish a connection. + DialTimeout time.Duration + + // TLS holds the client secure credentials, if any. + TLS *tls.Config + + // Logger is the logger used by client library. + Logger Logger + + // Username is a username for authentication + Username string + + // Password is a password for authentication + Password string +} + +type yamlConfig struct { + Endpoints []string `json:"endpoints"` + DialTimeout time.Duration `json:"dial-timeout"` + InsecureTransport bool `json:"insecure-transport"` + InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify"` + Certfile string `json:"cert-file"` + Keyfile string `json:"key-file"` + CAfile string `json:"ca-file"` +} + +func configFromFile(fpath string) (*Config, error) { + b, err := ioutil.ReadFile(fpath) + if err != nil { + return nil, err + } + + yc := &yamlConfig{} + + err = yaml.Unmarshal(b, yc) + if err != nil { + return nil, err + } + + cfg := &Config{ + Endpoints: yc.Endpoints, + DialTimeout: yc.DialTimeout, + } + + if yc.InsecureTransport { + cfg.TLS = nil + return cfg, nil + } + + var ( + cert *tls.Certificate + cp *x509.CertPool + ) + + if yc.Certfile != "" && yc.Keyfile != "" { + cert, err = tlsutil.NewCert(yc.Certfile, yc.Keyfile, nil) + if err != nil { + return nil, err + } + } + + if yc.CAfile != "" { + cp, err = tlsutil.NewCertPool([]string{yc.CAfile}) + if err != nil { + return nil, err + } + } + + tlscfg := &tls.Config{ + MinVersion: tls.VersionTLS10, + InsecureSkipVerify: yc.InsecureSkipTLSVerify, + RootCAs: cp, + } + if cert != nil { + tlscfg.Certificates = []tls.Certificate{*cert} + } + cfg.TLS = tlscfg + + return cfg, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/doc.go b/ingress/vendor/github.com/coreos/etcd/clientv3/doc.go new file mode 100644 index 0000000000..9ce84aa57c --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/doc.go @@ -0,0 +1,64 @@ +// Copyright 2016 The etcd 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 clientv3 implements the official Go etcd client for v3. +// +// Create client using `clientv3.New`: +// +// cli, err := clientv3.New(clientv3.Config{ +// Endpoints: []string{"localhost:2379", "localhost:22379", "localhost:32379"}, +// DialTimeout: 5 * time.Second, +// }) +// if err != nil { +// // handle error! +// } +// defer cli.Close() +// +// Make sure to close the client after using it. If the client is not closed, the +// connection will have leaky goroutines. +// +// To specify client request timeout, pass context.WithTimeout to APIs: +// +// ctx, cancel := context.WithTimeout(context.Background(), timeout) +// resp, err := kvc.Put(ctx, "sample_key", "sample_value") +// cancel() +// if err != nil { +// // handle error! +// } +// // use the response +// +// The Client has internal state (watchers and leases), so Clients should be reused instead of created as needed. +// Clients are safe for concurrent use by multiple goroutines. +// +// etcd client returns 2 types of errors: +// +// 1. context error: canceled or deadline exceeded. +// 2. gRPC error: see https://github.com/coreos/etcd/blob/master/etcdserver/api/v3rpc/error.go. +// +// Here is the example code to handle client errors: +// +// resp, err := kvc.Put(ctx, "", "") +// if err != nil { +// if err == context.Canceled { +// // ctx is canceled by another routine +// } else if err == context.DeadlineExceeded { +// // ctx is attached with a deadline and it exceeded +// } else if verr, ok := err.(*v3rpc.ErrEmptyKey); ok { +// // process (verr.Errors) +// } else { +// // bad cluster endpoints, which are not etcd servers +// } +// } +// +package clientv3 diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/kv.go b/ingress/vendor/github.com/coreos/etcd/clientv3/kv.go new file mode 100644 index 0000000000..27f9110f80 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/kv.go @@ -0,0 +1,176 @@ +// Copyright 2015 The etcd 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 clientv3 + +import ( + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +type ( + CompactResponse pb.CompactionResponse + PutResponse pb.PutResponse + GetResponse pb.RangeResponse + DeleteResponse pb.DeleteRangeResponse + TxnResponse pb.TxnResponse +) + +type KV interface { + // Put puts a key-value pair into etcd. + // Note that key,value can be plain bytes array and string is + // an immutable representation of that bytes array. + // To get a string of bytes, do string([]byte(0x10, 0x20)). + Put(ctx context.Context, key, val string, opts ...OpOption) (*PutResponse, error) + + // Get retrieves keys. + // By default, Get will return the value for "key", if any. + // When passed WithRange(end), Get will return the keys in the range [key, end). + // When passed WithFromKey(), Get returns keys greater than or equal to key. + // When passed WithRev(rev) with rev > 0, Get retrieves keys at the given revision; + // if the required revision is compacted, the request will fail with ErrCompacted . + // When passed WithLimit(limit), the number of returned keys is bounded by limit. + // When passed WithSort(), the keys will be sorted. + Get(ctx context.Context, key string, opts ...OpOption) (*GetResponse, error) + + // Delete deletes a key, or optionally using WithRange(end), [key, end). + Delete(ctx context.Context, key string, opts ...OpOption) (*DeleteResponse, error) + + // Compact compacts etcd KV history before the given rev. + Compact(ctx context.Context, rev int64, opts ...CompactOption) (*CompactResponse, error) + + // Do applies a single Op on KV without a transaction. + // Do is useful when declaring operations to be issued at a later time + // whereas Get/Put/Delete are for better suited for when the operation + // should be immediately issued at time of declaration. + + // Do applies a single Op on KV without a transaction. + // Do is useful when creating arbitrary operations to be issued at a + // later time; the user can range over the operations, calling Do to + // execute them. Get/Put/Delete, on the other hand, are best suited + // for when the operation should be issued at the time of declaration. + Do(ctx context.Context, op Op) (OpResponse, error) + + // Txn creates a transaction. + Txn(ctx context.Context) Txn +} + +type OpResponse struct { + put *PutResponse + get *GetResponse + del *DeleteResponse +} + +func (op OpResponse) Put() *PutResponse { return op.put } +func (op OpResponse) Get() *GetResponse { return op.get } +func (op OpResponse) Del() *DeleteResponse { return op.del } + +type kv struct { + remote pb.KVClient +} + +func NewKV(c *Client) KV { + return &kv{remote: RetryKVClient(c)} +} + +func (kv *kv) Put(ctx context.Context, key, val string, opts ...OpOption) (*PutResponse, error) { + r, err := kv.Do(ctx, OpPut(key, val, opts...)) + return r.put, toErr(ctx, err) +} + +func (kv *kv) Get(ctx context.Context, key string, opts ...OpOption) (*GetResponse, error) { + r, err := kv.Do(ctx, OpGet(key, opts...)) + return r.get, toErr(ctx, err) +} + +func (kv *kv) Delete(ctx context.Context, key string, opts ...OpOption) (*DeleteResponse, error) { + r, err := kv.Do(ctx, OpDelete(key, opts...)) + return r.del, toErr(ctx, err) +} + +func (kv *kv) Compact(ctx context.Context, rev int64, opts ...CompactOption) (*CompactResponse, error) { + resp, err := kv.remote.Compact(ctx, OpCompact(rev, opts...).toRequest(), grpc.FailFast(false)) + if err != nil { + return nil, toErr(ctx, err) + } + return (*CompactResponse)(resp), err +} + +func (kv *kv) Txn(ctx context.Context) Txn { + return &txn{ + kv: kv, + ctx: ctx, + } +} + +func (kv *kv) Do(ctx context.Context, op Op) (OpResponse, error) { + for { + resp, err := kv.do(ctx, op) + if err == nil { + return resp, nil + } + if isHaltErr(ctx, err) { + return resp, toErr(ctx, err) + } + // do not retry on modifications + if op.isWrite() { + return resp, toErr(ctx, err) + } + } +} + +func (kv *kv) do(ctx context.Context, op Op) (OpResponse, error) { + var err error + switch op.t { + // TODO: handle other ops + case tRange: + var resp *pb.RangeResponse + r := &pb.RangeRequest{ + Key: op.key, + RangeEnd: op.end, + Limit: op.limit, + Revision: op.rev, + Serializable: op.serializable, + KeysOnly: op.keysOnly, + CountOnly: op.countOnly, + } + if op.sort != nil { + r.SortOrder = pb.RangeRequest_SortOrder(op.sort.Order) + r.SortTarget = pb.RangeRequest_SortTarget(op.sort.Target) + } + + resp, err = kv.remote.Range(ctx, r, grpc.FailFast(false)) + if err == nil { + return OpResponse{get: (*GetResponse)(resp)}, nil + } + case tPut: + var resp *pb.PutResponse + r := &pb.PutRequest{Key: op.key, Value: op.val, Lease: int64(op.leaseID)} + resp, err = kv.remote.Put(ctx, r) + if err == nil { + return OpResponse{put: (*PutResponse)(resp)}, nil + } + case tDeleteRange: + var resp *pb.DeleteRangeResponse + r := &pb.DeleteRangeRequest{Key: op.key, RangeEnd: op.end} + resp, err = kv.remote.DeleteRange(ctx, r) + if err == nil { + return OpResponse{del: (*DeleteResponse)(resp)}, nil + } + default: + panic("Unknown op") + } + return OpResponse{}, err +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/lease.go b/ingress/vendor/github.com/coreos/etcd/clientv3/lease.go new file mode 100644 index 0000000000..bf8919c349 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/lease.go @@ -0,0 +1,462 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "sync" + "time" + + "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +type ( + LeaseRevokeResponse pb.LeaseRevokeResponse + LeaseID int64 +) + +// LeaseGrantResponse is used to convert the protobuf grant response. +type LeaseGrantResponse struct { + *pb.ResponseHeader + ID LeaseID + TTL int64 + Error string +} + +// LeaseKeepAliveResponse is used to convert the protobuf keepalive response. +type LeaseKeepAliveResponse struct { + *pb.ResponseHeader + ID LeaseID + TTL int64 +} + +const ( + // defaultTTL is the assumed lease TTL used for the first keepalive + // deadline before the actual TTL is known to the client. + defaultTTL = 5 * time.Second + // a small buffer to store unsent lease responses. + leaseResponseChSize = 16 + // NoLease is a lease ID for the absence of a lease. + NoLease LeaseID = 0 +) + +type Lease interface { + // Grant creates a new lease. + Grant(ctx context.Context, ttl int64) (*LeaseGrantResponse, error) + + // Revoke revokes the given lease. + Revoke(ctx context.Context, id LeaseID) (*LeaseRevokeResponse, error) + + // KeepAlive keeps the given lease alive forever. + KeepAlive(ctx context.Context, id LeaseID) (<-chan *LeaseKeepAliveResponse, error) + + // KeepAliveOnce renews the lease once. In most of the cases, Keepalive + // should be used instead of KeepAliveOnce. + KeepAliveOnce(ctx context.Context, id LeaseID) (*LeaseKeepAliveResponse, error) + + // Close releases all resources Lease keeps for efficient communication + // with the etcd server. + Close() error +} + +type lessor struct { + mu sync.Mutex // guards all fields + + // donec is closed when recvKeepAliveLoop stops + donec chan struct{} + + remote pb.LeaseClient + + stream pb.Lease_LeaseKeepAliveClient + streamCancel context.CancelFunc + + stopCtx context.Context + stopCancel context.CancelFunc + + keepAlives map[LeaseID]*keepAlive + + // firstKeepAliveTimeout is the timeout for the first keepalive request + // before the actual TTL is known to the lease client + firstKeepAliveTimeout time.Duration +} + +// keepAlive multiplexes a keepalive for a lease over multiple channels +type keepAlive struct { + chs []chan<- *LeaseKeepAliveResponse + ctxs []context.Context + // deadline is the time the keep alive channels close if no response + deadline time.Time + // nextKeepAlive is when to send the next keep alive message + nextKeepAlive time.Time + // donec is closed on lease revoke, expiration, or cancel. + donec chan struct{} +} + +func NewLease(c *Client) Lease { + l := &lessor{ + donec: make(chan struct{}), + keepAlives: make(map[LeaseID]*keepAlive), + remote: RetryLeaseClient(c), + firstKeepAliveTimeout: c.cfg.DialTimeout + time.Second, + } + if l.firstKeepAliveTimeout == time.Second { + l.firstKeepAliveTimeout = defaultTTL + } + + l.stopCtx, l.stopCancel = context.WithCancel(context.Background()) + go l.recvKeepAliveLoop() + go l.deadlineLoop() + return l +} + +func (l *lessor) Grant(ctx context.Context, ttl int64) (*LeaseGrantResponse, error) { + cctx, cancel := context.WithCancel(ctx) + done := cancelWhenStop(cancel, l.stopCtx.Done()) + defer close(done) + + for { + r := &pb.LeaseGrantRequest{TTL: ttl} + resp, err := l.remote.LeaseGrant(cctx, r) + if err == nil { + gresp := &LeaseGrantResponse{ + ResponseHeader: resp.GetHeader(), + ID: LeaseID(resp.ID), + TTL: resp.TTL, + Error: resp.Error, + } + return gresp, nil + } + if isHaltErr(cctx, err) { + return nil, toErr(ctx, err) + } + if nerr := l.newStream(); nerr != nil { + return nil, nerr + } + } +} + +func (l *lessor) Revoke(ctx context.Context, id LeaseID) (*LeaseRevokeResponse, error) { + cctx, cancel := context.WithCancel(ctx) + done := cancelWhenStop(cancel, l.stopCtx.Done()) + defer close(done) + + for { + r := &pb.LeaseRevokeRequest{ID: int64(id)} + resp, err := l.remote.LeaseRevoke(cctx, r) + + if err == nil { + return (*LeaseRevokeResponse)(resp), nil + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + if nerr := l.newStream(); nerr != nil { + return nil, nerr + } + } +} + +func (l *lessor) KeepAlive(ctx context.Context, id LeaseID) (<-chan *LeaseKeepAliveResponse, error) { + ch := make(chan *LeaseKeepAliveResponse, leaseResponseChSize) + + l.mu.Lock() + ka, ok := l.keepAlives[id] + if !ok { + // create fresh keep alive + ka = &keepAlive{ + chs: []chan<- *LeaseKeepAliveResponse{ch}, + ctxs: []context.Context{ctx}, + deadline: time.Now().Add(l.firstKeepAliveTimeout), + nextKeepAlive: time.Now(), + donec: make(chan struct{}), + } + l.keepAlives[id] = ka + } else { + // add channel and context to existing keep alive + ka.ctxs = append(ka.ctxs, ctx) + ka.chs = append(ka.chs, ch) + } + l.mu.Unlock() + + go l.keepAliveCtxCloser(id, ctx, ka.donec) + + return ch, nil +} + +func (l *lessor) KeepAliveOnce(ctx context.Context, id LeaseID) (*LeaseKeepAliveResponse, error) { + cctx, cancel := context.WithCancel(ctx) + done := cancelWhenStop(cancel, l.stopCtx.Done()) + defer close(done) + + for { + resp, err := l.keepAliveOnce(cctx, id) + if err == nil { + if resp.TTL == 0 { + err = rpctypes.ErrLeaseNotFound + } + return resp, err + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + + if nerr := l.newStream(); nerr != nil { + return nil, nerr + } + } +} + +func (l *lessor) Close() error { + l.stopCancel() + <-l.donec + return nil +} + +func (l *lessor) keepAliveCtxCloser(id LeaseID, ctx context.Context, donec <-chan struct{}) { + select { + case <-donec: + return + case <-l.donec: + return + case <-ctx.Done(): + } + + l.mu.Lock() + defer l.mu.Unlock() + + ka, ok := l.keepAlives[id] + if !ok { + return + } + + // close channel and remove context if still associated with keep alive + for i, c := range ka.ctxs { + if c == ctx { + close(ka.chs[i]) + ka.ctxs = append(ka.ctxs[:i], ka.ctxs[i+1:]...) + ka.chs = append(ka.chs[:i], ka.chs[i+1:]...) + break + } + } + // remove if no one more listeners + if len(ka.chs) == 0 { + delete(l.keepAlives, id) + } +} + +func (l *lessor) keepAliveOnce(ctx context.Context, id LeaseID) (*LeaseKeepAliveResponse, error) { + cctx, cancel := context.WithCancel(ctx) + defer cancel() + + stream, err := l.remote.LeaseKeepAlive(cctx, grpc.FailFast(false)) + if err != nil { + return nil, toErr(ctx, err) + } + + err = stream.Send(&pb.LeaseKeepAliveRequest{ID: int64(id)}) + if err != nil { + return nil, toErr(ctx, err) + } + + resp, rerr := stream.Recv() + if rerr != nil { + return nil, toErr(ctx, rerr) + } + + karesp := &LeaseKeepAliveResponse{ + ResponseHeader: resp.GetHeader(), + ID: LeaseID(resp.ID), + TTL: resp.TTL, + } + return karesp, nil +} + +func (l *lessor) recvKeepAliveLoop() { + defer func() { + l.mu.Lock() + close(l.donec) + for _, ka := range l.keepAlives { + ka.Close() + } + l.keepAlives = make(map[LeaseID]*keepAlive) + l.mu.Unlock() + }() + + stream, serr := l.resetRecv() + for serr == nil { + resp, err := stream.Recv() + if err != nil { + if isHaltErr(l.stopCtx, err) { + return + } + stream, serr = l.resetRecv() + continue + } + l.recvKeepAlive(resp) + } +} + +// resetRecv opens a new lease stream and starts sending LeaseKeepAliveRequests +func (l *lessor) resetRecv() (pb.Lease_LeaseKeepAliveClient, error) { + if err := l.newStream(); err != nil { + return nil, err + } + stream := l.getKeepAliveStream() + go l.sendKeepAliveLoop(stream) + return stream, nil +} + +// recvKeepAlive updates a lease based on its LeaseKeepAliveResponse +func (l *lessor) recvKeepAlive(resp *pb.LeaseKeepAliveResponse) { + karesp := &LeaseKeepAliveResponse{ + ResponseHeader: resp.GetHeader(), + ID: LeaseID(resp.ID), + TTL: resp.TTL, + } + + l.mu.Lock() + defer l.mu.Unlock() + + ka, ok := l.keepAlives[karesp.ID] + if !ok { + return + } + + if karesp.TTL <= 0 { + // lease expired; close all keep alive channels + delete(l.keepAlives, karesp.ID) + ka.Close() + return + } + + // send update to all channels + nextKeepAlive := time.Now().Add(1 + time.Duration(karesp.TTL/3)*time.Second) + ka.deadline = time.Now().Add(time.Duration(karesp.TTL) * time.Second) + for _, ch := range ka.chs { + select { + case ch <- karesp: + ka.nextKeepAlive = nextKeepAlive + default: + } + } +} + +// deadlineLoop reaps any keep alive channels that have not received a response +// within the lease TTL +func (l *lessor) deadlineLoop() { + for { + select { + case <-time.After(time.Second): + case <-l.donec: + return + } + now := time.Now() + l.mu.Lock() + for id, ka := range l.keepAlives { + if ka.deadline.Before(now) { + // waited too long for response; lease may be expired + ka.Close() + delete(l.keepAlives, id) + } + } + l.mu.Unlock() + } +} + +// sendKeepAliveLoop sends LeaseKeepAliveRequests for the lifetime of a lease stream +func (l *lessor) sendKeepAliveLoop(stream pb.Lease_LeaseKeepAliveClient) { + for { + select { + case <-time.After(500 * time.Millisecond): + case <-stream.Context().Done(): + return + case <-l.donec: + return + case <-l.stopCtx.Done(): + return + } + + tosend := make([]LeaseID, 0) + + now := time.Now() + l.mu.Lock() + for id, ka := range l.keepAlives { + if ka.nextKeepAlive.Before(now) { + tosend = append(tosend, id) + } + } + l.mu.Unlock() + + for _, id := range tosend { + r := &pb.LeaseKeepAliveRequest{ID: int64(id)} + if err := stream.Send(r); err != nil { + // TODO do something with this error? + return + } + } + } +} + +func (l *lessor) getKeepAliveStream() pb.Lease_LeaseKeepAliveClient { + l.mu.Lock() + defer l.mu.Unlock() + return l.stream +} + +func (l *lessor) newStream() error { + sctx, cancel := context.WithCancel(l.stopCtx) + stream, err := l.remote.LeaseKeepAlive(sctx, grpc.FailFast(false)) + if err != nil { + cancel() + return toErr(sctx, err) + } + + l.mu.Lock() + defer l.mu.Unlock() + if l.stream != nil && l.streamCancel != nil { + l.stream.CloseSend() + l.streamCancel() + } + + l.streamCancel = cancel + l.stream = stream + return nil +} + +func (ka *keepAlive) Close() { + close(ka.donec) + for _, ch := range ka.chs { + close(ch) + } +} + +// cancelWhenStop calls cancel when the given stopc fires. It returns a done chan. done +// should be closed when the work is finished. When done fires, cancelWhenStop will release +// its internal resource. +func cancelWhenStop(cancel context.CancelFunc, stopc <-chan struct{}) chan<- struct{} { + done := make(chan struct{}, 1) + + go func() { + select { + case <-stopc: + case <-done: + } + cancel() + }() + + return done +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/logger.go b/ingress/vendor/github.com/coreos/etcd/clientv3/logger.go new file mode 100644 index 0000000000..6e57c4e7cc --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/logger.go @@ -0,0 +1,64 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "log" + "os" + "sync" + + "google.golang.org/grpc/grpclog" +) + +type Logger grpclog.Logger + +var ( + logger settableLogger +) + +type settableLogger struct { + l grpclog.Logger + mu sync.RWMutex +} + +func init() { + // use go's standard logger by default like grpc + logger.mu.Lock() + logger.l = log.New(os.Stderr, "", log.LstdFlags) + grpclog.SetLogger(&logger) + logger.mu.Unlock() +} + +func (s *settableLogger) Set(l Logger) { + s.mu.Lock() + logger.l = l + s.mu.Unlock() +} + +func (s *settableLogger) Get() Logger { + s.mu.RLock() + l := logger.l + s.mu.RUnlock() + return l +} + +// implement the grpclog.Logger interface + +func (s *settableLogger) Fatal(args ...interface{}) { s.Get().Fatal(args...) } +func (s *settableLogger) Fatalf(format string, args ...interface{}) { s.Get().Fatalf(format, args...) } +func (s *settableLogger) Fatalln(args ...interface{}) { s.Get().Fatalln(args...) } +func (s *settableLogger) Print(args ...interface{}) { s.Get().Print(args...) } +func (s *settableLogger) Printf(format string, args ...interface{}) { s.Get().Printf(format, args...) } +func (s *settableLogger) Println(args ...interface{}) { s.Get().Println(args...) } diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/maintenance.go b/ingress/vendor/github.com/coreos/etcd/clientv3/maintenance.go new file mode 100644 index 0000000000..718356250b --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/maintenance.go @@ -0,0 +1,164 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "io" + + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +type ( + DefragmentResponse pb.DefragmentResponse + AlarmResponse pb.AlarmResponse + AlarmMember pb.AlarmMember + StatusResponse pb.StatusResponse +) + +type Maintenance interface { + // AlarmList gets all active alarms. + AlarmList(ctx context.Context) (*AlarmResponse, error) + + // AlarmDisarm disarms a given alarm. + AlarmDisarm(ctx context.Context, m *AlarmMember) (*AlarmResponse, error) + + // Defragment defragments storage backend of the etcd member with given endpoint. + // Defragment is only needed when deleting a large number of keys and want to reclaim + // the resources. + // Defragment is an expensive operation. User should avoid defragmenting multiple members + // at the same time. + // To defragment multiple members in the cluster, user need to call defragment multiple + // times with different endpoints. + Defragment(ctx context.Context, endpoint string) (*DefragmentResponse, error) + + // Status gets the status of the endpoint. + Status(ctx context.Context, endpoint string) (*StatusResponse, error) + + // Snapshot provides a reader for a snapshot of a backend. + Snapshot(ctx context.Context) (io.ReadCloser, error) +} + +type maintenance struct { + c *Client + remote pb.MaintenanceClient +} + +func NewMaintenance(c *Client) Maintenance { + return &maintenance{c: c, remote: pb.NewMaintenanceClient(c.conn)} +} + +func (m *maintenance) AlarmList(ctx context.Context) (*AlarmResponse, error) { + req := &pb.AlarmRequest{ + Action: pb.AlarmRequest_GET, + MemberID: 0, // all + Alarm: pb.AlarmType_NONE, // all + } + for { + resp, err := m.remote.Alarm(ctx, req, grpc.FailFast(false)) + if err == nil { + return (*AlarmResponse)(resp), nil + } + if isHaltErr(ctx, err) { + return nil, toErr(ctx, err) + } + } +} + +func (m *maintenance) AlarmDisarm(ctx context.Context, am *AlarmMember) (*AlarmResponse, error) { + req := &pb.AlarmRequest{ + Action: pb.AlarmRequest_DEACTIVATE, + MemberID: am.MemberID, + Alarm: am.Alarm, + } + + if req.MemberID == 0 && req.Alarm == pb.AlarmType_NONE { + ar, err := m.AlarmList(ctx) + if err != nil { + return nil, toErr(ctx, err) + } + ret := AlarmResponse{} + for _, am := range ar.Alarms { + dresp, derr := m.AlarmDisarm(ctx, (*AlarmMember)(am)) + if derr != nil { + return nil, toErr(ctx, derr) + } + ret.Alarms = append(ret.Alarms, dresp.Alarms...) + } + return &ret, nil + } + + resp, err := m.remote.Alarm(ctx, req, grpc.FailFast(false)) + if err == nil { + return (*AlarmResponse)(resp), nil + } + return nil, toErr(ctx, err) +} + +func (m *maintenance) Defragment(ctx context.Context, endpoint string) (*DefragmentResponse, error) { + conn, err := m.c.Dial(endpoint) + if err != nil { + return nil, toErr(ctx, err) + } + defer conn.Close() + remote := pb.NewMaintenanceClient(conn) + resp, err := remote.Defragment(ctx, &pb.DefragmentRequest{}, grpc.FailFast(false)) + if err != nil { + return nil, toErr(ctx, err) + } + return (*DefragmentResponse)(resp), nil +} + +func (m *maintenance) Status(ctx context.Context, endpoint string) (*StatusResponse, error) { + conn, err := m.c.Dial(endpoint) + if err != nil { + return nil, toErr(ctx, err) + } + defer conn.Close() + remote := pb.NewMaintenanceClient(conn) + resp, err := remote.Status(ctx, &pb.StatusRequest{}, grpc.FailFast(false)) + if err != nil { + return nil, toErr(ctx, err) + } + return (*StatusResponse)(resp), nil +} + +func (m *maintenance) Snapshot(ctx context.Context) (io.ReadCloser, error) { + ss, err := m.remote.Snapshot(ctx, &pb.SnapshotRequest{}, grpc.FailFast(false)) + if err != nil { + return nil, toErr(ctx, err) + } + + pr, pw := io.Pipe() + go func() { + for { + resp, err := ss.Recv() + if err != nil { + pw.CloseWithError(err) + return + } + if resp == nil && err == nil { + break + } + if _, werr := pw.Write(resp.Blob); werr != nil { + pw.CloseWithError(werr) + return + } + } + pw.Close() + }() + return pr, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/op.go b/ingress/vendor/github.com/coreos/etcd/clientv3/op.go new file mode 100644 index 0000000000..89698be234 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/op.go @@ -0,0 +1,273 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" +) + +type opType int + +const ( + // A default Op has opType 0, which is invalid. + tRange opType = iota + 1 + tPut + tDeleteRange +) + +var ( + noPrefixEnd = []byte{0} +) + +// Op represents an Operation that kv can execute. +type Op struct { + t opType + key []byte + end []byte + + // for range + limit int64 + sort *SortOption + serializable bool + keysOnly bool + countOnly bool + + // for range, watch + rev int64 + + // progressNotify is for progress updates. + progressNotify bool + + // for put + val []byte + leaseID LeaseID +} + +func (op Op) toRequestOp() *pb.RequestOp { + switch op.t { + case tRange: + r := &pb.RangeRequest{ + Key: op.key, + RangeEnd: op.end, + Limit: op.limit, + Revision: op.rev, + Serializable: op.serializable, + KeysOnly: op.keysOnly, + CountOnly: op.countOnly, + } + if op.sort != nil { + r.SortOrder = pb.RangeRequest_SortOrder(op.sort.Order) + r.SortTarget = pb.RangeRequest_SortTarget(op.sort.Target) + } + return &pb.RequestOp{Request: &pb.RequestOp_RequestRange{RequestRange: r}} + case tPut: + r := &pb.PutRequest{Key: op.key, Value: op.val, Lease: int64(op.leaseID)} + return &pb.RequestOp{Request: &pb.RequestOp_RequestPut{RequestPut: r}} + case tDeleteRange: + r := &pb.DeleteRangeRequest{Key: op.key, RangeEnd: op.end} + return &pb.RequestOp{Request: &pb.RequestOp_RequestDeleteRange{RequestDeleteRange: r}} + default: + panic("Unknown Op") + } +} + +func (op Op) isWrite() bool { + return op.t != tRange +} + +func OpGet(key string, opts ...OpOption) Op { + ret := Op{t: tRange, key: []byte(key)} + ret.applyOpts(opts) + return ret +} + +func OpDelete(key string, opts ...OpOption) Op { + ret := Op{t: tDeleteRange, key: []byte(key)} + ret.applyOpts(opts) + switch { + case ret.leaseID != 0: + panic("unexpected lease in delete") + case ret.limit != 0: + panic("unexpected limit in delete") + case ret.rev != 0: + panic("unexpected revision in delete") + case ret.sort != nil: + panic("unexpected sort in delete") + case ret.serializable: + panic("unexpected serializable in delete") + case ret.countOnly: + panic("unexpected countOnly in delete") + } + return ret +} + +func OpPut(key, val string, opts ...OpOption) Op { + ret := Op{t: tPut, key: []byte(key), val: []byte(val)} + ret.applyOpts(opts) + switch { + case ret.end != nil: + panic("unexpected range in put") + case ret.limit != 0: + panic("unexpected limit in put") + case ret.rev != 0: + panic("unexpected revision in put") + case ret.sort != nil: + panic("unexpected sort in put") + case ret.serializable: + panic("unexpected serializable in put") + case ret.countOnly: + panic("unexpected countOnly in delete") + } + return ret +} + +func opWatch(key string, opts ...OpOption) Op { + ret := Op{t: tRange, key: []byte(key)} + ret.applyOpts(opts) + switch { + case ret.leaseID != 0: + panic("unexpected lease in watch") + case ret.limit != 0: + panic("unexpected limit in watch") + case ret.sort != nil: + panic("unexpected sort in watch") + case ret.serializable: + panic("unexpected serializable in watch") + case ret.countOnly: + panic("unexpected countOnly in delete") + } + return ret +} + +func (op *Op) applyOpts(opts []OpOption) { + for _, opt := range opts { + opt(op) + } +} + +// OpOption configures Operations like Get, Put, Delete. +type OpOption func(*Op) + +// WithLease attaches a lease ID to a key in 'Put' request. +func WithLease(leaseID LeaseID) OpOption { + return func(op *Op) { op.leaseID = leaseID } +} + +// WithLimit limits the number of results to return from 'Get' request. +func WithLimit(n int64) OpOption { return func(op *Op) { op.limit = n } } + +// WithRev specifies the store revision for 'Get' request. +// Or the start revision of 'Watch' request. +func WithRev(rev int64) OpOption { return func(op *Op) { op.rev = rev } } + +// WithSort specifies the ordering in 'Get' request. It requires +// 'WithRange' and/or 'WithPrefix' to be specified too. +// 'target' specifies the target to sort by: key, version, revisions, value. +// 'order' can be either 'SortNone', 'SortAscend', 'SortDescend'. +func WithSort(target SortTarget, order SortOrder) OpOption { + return func(op *Op) { + op.sort = &SortOption{target, order} + } +} + +// GetPrefixRangeEnd gets the range end of the prefix. +// 'Get(foo, WithPrefix())' is equal to 'Get(foo, WithRange(GetPrefixRangeEnd(foo))'. +func GetPrefixRangeEnd(prefix string) string { + return string(getPrefix([]byte(prefix))) +} + +func getPrefix(key []byte) []byte { + end := make([]byte, len(key)) + copy(end, key) + for i := len(end) - 1; i >= 0; i-- { + if end[i] < 0xff { + end[i] = end[i] + 1 + end = end[:i+1] + return end + } + } + // next prefix does not exist (e.g., 0xffff); + // default to WithFromKey policy + return noPrefixEnd +} + +// WithPrefix enables 'Get', 'Delete', or 'Watch' requests to operate +// on the keys with matching prefix. For example, 'Get(foo, WithPrefix())' +// can return 'foo1', 'foo2', and so on. +func WithPrefix() OpOption { + return func(op *Op) { + op.end = getPrefix(op.key) + } +} + +// WithRange specifies the range of 'Get' or 'Delete' requests. +// For example, 'Get' requests with 'WithRange(end)' returns +// the keys in the range [key, end). +func WithRange(endKey string) OpOption { + return func(op *Op) { op.end = []byte(endKey) } +} + +// WithFromKey specifies the range of 'Get' or 'Delete' requests +// to be equal or greater than the key in the argument. +func WithFromKey() OpOption { return WithRange("\x00") } + +// WithSerializable makes 'Get' request serializable. By default, +// it's linearizable. Serializable requests are better for lower latency +// requirement. +func WithSerializable() OpOption { + return func(op *Op) { op.serializable = true } +} + +// WithKeysOnly makes the 'Get' request return only the keys and the corresponding +// values will be omitted. +func WithKeysOnly() OpOption { + return func(op *Op) { op.keysOnly = true } +} + +// WithCountOnly makes the 'Get' request return only the count of keys. +func WithCountOnly() OpOption { + return func(op *Op) { op.countOnly = true } +} + +// WithFirstCreate gets the key with the oldest creation revision in the request range. +func WithFirstCreate() []OpOption { return withTop(SortByCreateRevision, SortAscend) } + +// WithLastCreate gets the key with the latest creation revision in the request range. +func WithLastCreate() []OpOption { return withTop(SortByCreateRevision, SortDescend) } + +// WithFirstKey gets the lexically first key in the request range. +func WithFirstKey() []OpOption { return withTop(SortByKey, SortAscend) } + +// WithLastKey gets the lexically last key in the request range. +func WithLastKey() []OpOption { return withTop(SortByKey, SortDescend) } + +// WithFirstRev gets the key with the oldest modification revision in the request range. +func WithFirstRev() []OpOption { return withTop(SortByModRevision, SortAscend) } + +// WithLastRev gets the key with the latest modification revision in the request range. +func WithLastRev() []OpOption { return withTop(SortByModRevision, SortDescend) } + +// withTop gets the first key over the get's prefix given a sort order +func withTop(target SortTarget, order SortOrder) []OpOption { + return []OpOption{WithPrefix(), WithSort(target, order), WithLimit(1)} +} + +// WithProgressNotify makes watch server send periodic progress updates. +// Progress updates have zero events in WatchResponse. +func WithProgressNotify() OpOption { + return func(op *Op) { + op.progressNotify = true + } +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/retry.go b/ingress/vendor/github.com/coreos/etcd/clientv3/retry.go new file mode 100644 index 0000000000..3029ed8ea9 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/retry.go @@ -0,0 +1,243 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +type rpcFunc func(ctx context.Context) error +type retryRpcFunc func(context.Context, rpcFunc) + +func (c *Client) newRetryWrapper() retryRpcFunc { + return func(rpcCtx context.Context, f rpcFunc) { + for { + err := f(rpcCtx) + // ignore grpc conn closing on fail-fast calls; they are transient errors + if err == nil || !isConnClosing(err) { + return + } + select { + case <-c.balancer.ConnectNotify(): + case <-rpcCtx.Done(): + case <-c.ctx.Done(): + return + } + } + } +} + +type retryKVClient struct { + pb.KVClient + retryf retryRpcFunc +} + +// RetryKVClient implements a KVClient that uses the client's FailFast retry policy. +func RetryKVClient(c *Client) pb.KVClient { + return &retryKVClient{pb.NewKVClient(c.conn), c.retryWrapper} +} + +func (rkv *retryKVClient) Put(ctx context.Context, in *pb.PutRequest, opts ...grpc.CallOption) (resp *pb.PutResponse, err error) { + rkv.retryf(ctx, func(rctx context.Context) error { + resp, err = rkv.KVClient.Put(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rkv *retryKVClient) DeleteRange(ctx context.Context, in *pb.DeleteRangeRequest, opts ...grpc.CallOption) (resp *pb.DeleteRangeResponse, err error) { + rkv.retryf(ctx, func(rctx context.Context) error { + resp, err = rkv.KVClient.DeleteRange(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rkv *retryKVClient) Txn(ctx context.Context, in *pb.TxnRequest, opts ...grpc.CallOption) (resp *pb.TxnResponse, err error) { + rkv.retryf(ctx, func(rctx context.Context) error { + resp, err = rkv.KVClient.Txn(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rkv *retryKVClient) Compact(ctx context.Context, in *pb.CompactionRequest, opts ...grpc.CallOption) (resp *pb.CompactionResponse, err error) { + rkv.retryf(ctx, func(rctx context.Context) error { + resp, err = rkv.KVClient.Compact(rctx, in, opts...) + return err + }) + return resp, err +} + +type retryLeaseClient struct { + pb.LeaseClient + retryf retryRpcFunc +} + +// RetryLeaseClient implements a LeaseClient that uses the client's FailFast retry policy. +func RetryLeaseClient(c *Client) pb.LeaseClient { + return &retryLeaseClient{pb.NewLeaseClient(c.conn), c.retryWrapper} +} + +func (rlc *retryLeaseClient) LeaseGrant(ctx context.Context, in *pb.LeaseGrantRequest, opts ...grpc.CallOption) (resp *pb.LeaseGrantResponse, err error) { + rlc.retryf(ctx, func(rctx context.Context) error { + resp, err = rlc.LeaseClient.LeaseGrant(rctx, in, opts...) + return err + }) + return resp, err + +} + +func (rlc *retryLeaseClient) LeaseRevoke(ctx context.Context, in *pb.LeaseRevokeRequest, opts ...grpc.CallOption) (resp *pb.LeaseRevokeResponse, err error) { + rlc.retryf(ctx, func(rctx context.Context) error { + resp, err = rlc.LeaseClient.LeaseRevoke(rctx, in, opts...) + return err + }) + return resp, err +} + +type retryClusterClient struct { + pb.ClusterClient + retryf retryRpcFunc +} + +// RetryClusterClient implements a ClusterClient that uses the client's FailFast retry policy. +func RetryClusterClient(c *Client) pb.ClusterClient { + return &retryClusterClient{pb.NewClusterClient(c.conn), c.retryWrapper} +} + +func (rcc *retryClusterClient) MemberAdd(ctx context.Context, in *pb.MemberAddRequest, opts ...grpc.CallOption) (resp *pb.MemberAddResponse, err error) { + rcc.retryf(ctx, func(rctx context.Context) error { + resp, err = rcc.ClusterClient.MemberAdd(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rcc *retryClusterClient) MemberRemove(ctx context.Context, in *pb.MemberRemoveRequest, opts ...grpc.CallOption) (resp *pb.MemberRemoveResponse, err error) { + rcc.retryf(ctx, func(rctx context.Context) error { + resp, err = rcc.ClusterClient.MemberRemove(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rcc *retryClusterClient) MemberUpdate(ctx context.Context, in *pb.MemberUpdateRequest, opts ...grpc.CallOption) (resp *pb.MemberUpdateResponse, err error) { + rcc.retryf(ctx, func(rctx context.Context) error { + resp, err = rcc.ClusterClient.MemberUpdate(rctx, in, opts...) + return err + }) + return resp, err +} + +type retryAuthClient struct { + pb.AuthClient + retryf retryRpcFunc +} + +// RetryAuthClient implements a AuthClient that uses the client's FailFast retry policy. +func RetryAuthClient(c *Client) pb.AuthClient { + return &retryAuthClient{pb.NewAuthClient(c.conn), c.retryWrapper} +} + +func (rac *retryAuthClient) AuthEnable(ctx context.Context, in *pb.AuthEnableRequest, opts ...grpc.CallOption) (resp *pb.AuthEnableResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.AuthEnable(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) AuthDisable(ctx context.Context, in *pb.AuthDisableRequest, opts ...grpc.CallOption) (resp *pb.AuthDisableResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.AuthDisable(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) UserAdd(ctx context.Context, in *pb.AuthUserAddRequest, opts ...grpc.CallOption) (resp *pb.AuthUserAddResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.UserAdd(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) UserDelete(ctx context.Context, in *pb.AuthUserDeleteRequest, opts ...grpc.CallOption) (resp *pb.AuthUserDeleteResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.UserDelete(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) UserChangePassword(ctx context.Context, in *pb.AuthUserChangePasswordRequest, opts ...grpc.CallOption) (resp *pb.AuthUserChangePasswordResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.UserChangePassword(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) UserGrantRole(ctx context.Context, in *pb.AuthUserGrantRoleRequest, opts ...grpc.CallOption) (resp *pb.AuthUserGrantRoleResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.UserGrantRole(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) UserRevokeRole(ctx context.Context, in *pb.AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (resp *pb.AuthUserRevokeRoleResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.UserRevokeRole(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) RoleAdd(ctx context.Context, in *pb.AuthRoleAddRequest, opts ...grpc.CallOption) (resp *pb.AuthRoleAddResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.RoleAdd(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) RoleDelete(ctx context.Context, in *pb.AuthRoleDeleteRequest, opts ...grpc.CallOption) (resp *pb.AuthRoleDeleteResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.RoleDelete(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) RoleGrantPermission(ctx context.Context, in *pb.AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (resp *pb.AuthRoleGrantPermissionResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.RoleGrantPermission(rctx, in, opts...) + return err + }) + return resp, err +} + +func (rac *retryAuthClient) RoleRevokePermission(ctx context.Context, in *pb.AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (resp *pb.AuthRoleRevokePermissionResponse, err error) { + rac.retryf(ctx, func(rctx context.Context) error { + resp, err = rac.AuthClient.RoleRevokePermission(rctx, in, opts...) + return err + }) + return resp, err +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/sort.go b/ingress/vendor/github.com/coreos/etcd/clientv3/sort.go new file mode 100644 index 0000000000..2bb9d9a13b --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/sort.go @@ -0,0 +1,37 @@ +// Copyright 2016 The etcd 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 clientv3 + +type SortTarget int +type SortOrder int + +const ( + SortNone SortOrder = iota + SortAscend + SortDescend +) + +const ( + SortByKey SortTarget = iota + SortByVersion + SortByCreateRevision + SortByModRevision + SortByValue +) + +type SortOption struct { + Target SortTarget + Order SortOrder +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/txn.go b/ingress/vendor/github.com/coreos/etcd/clientv3/txn.go new file mode 100644 index 0000000000..a451e33acd --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/txn.go @@ -0,0 +1,160 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "sync" + + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "golang.org/x/net/context" +) + +// Txn is the interface that wraps mini-transactions. +// +// Tx.If( +// Compare(Value(k1), ">", v1), +// Compare(Version(k1), "=", 2) +// ).Then( +// OpPut(k2,v2), OpPut(k3,v3) +// ).Else( +// OpPut(k4,v4), OpPut(k5,v5) +// ).Commit() +// +type Txn interface { + // If takes a list of comparison. If all comparisons passed in succeed, + // the operations passed into Then() will be executed. Or the operations + // passed into Else() will be executed. + If(cs ...Cmp) Txn + + // Then takes a list of operations. The Ops list will be executed, if the + // comparisons passed in If() succeed. + Then(ops ...Op) Txn + + // Else takes a list of operations. The Ops list will be executed, if the + // comparisons passed in If() fail. + Else(ops ...Op) Txn + + // Commit tries to commit the transaction. + Commit() (*TxnResponse, error) + + // TODO: add a Do for shortcut the txn without any condition? +} + +type txn struct { + kv *kv + ctx context.Context + + mu sync.Mutex + cif bool + cthen bool + celse bool + + isWrite bool + + cmps []*pb.Compare + + sus []*pb.RequestOp + fas []*pb.RequestOp +} + +func (txn *txn) If(cs ...Cmp) Txn { + txn.mu.Lock() + defer txn.mu.Unlock() + + if txn.cif { + panic("cannot call If twice!") + } + + if txn.cthen { + panic("cannot call If after Then!") + } + + if txn.celse { + panic("cannot call If after Else!") + } + + txn.cif = true + + for i := range cs { + txn.cmps = append(txn.cmps, (*pb.Compare)(&cs[i])) + } + + return txn +} + +func (txn *txn) Then(ops ...Op) Txn { + txn.mu.Lock() + defer txn.mu.Unlock() + + if txn.cthen { + panic("cannot call Then twice!") + } + if txn.celse { + panic("cannot call Then after Else!") + } + + txn.cthen = true + + for _, op := range ops { + txn.isWrite = txn.isWrite || op.isWrite() + txn.sus = append(txn.sus, op.toRequestOp()) + } + + return txn +} + +func (txn *txn) Else(ops ...Op) Txn { + txn.mu.Lock() + defer txn.mu.Unlock() + + if txn.celse { + panic("cannot call Else twice!") + } + + txn.celse = true + + for _, op := range ops { + txn.isWrite = txn.isWrite || op.isWrite() + txn.fas = append(txn.fas, op.toRequestOp()) + } + + return txn +} + +func (txn *txn) Commit() (*TxnResponse, error) { + txn.mu.Lock() + defer txn.mu.Unlock() + for { + resp, err := txn.commit() + if err == nil { + return resp, err + } + if isHaltErr(txn.ctx, err) { + return nil, toErr(txn.ctx, err) + } + if txn.isWrite { + return nil, toErr(txn.ctx, err) + } + } +} + +func (txn *txn) commit() (*TxnResponse, error) { + r := &pb.TxnRequest{Compare: txn.cmps, Success: txn.sus, Failure: txn.fas} + resp, err := txn.kv.remote.Txn(txn.ctx, r) + if err != nil { + return nil, err + } + return (*TxnResponse)(resp), nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/clientv3/watch.go b/ingress/vendor/github.com/coreos/etcd/clientv3/watch.go new file mode 100644 index 0000000000..afcc3b1afa --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/clientv3/watch.go @@ -0,0 +1,714 @@ +// Copyright 2016 The etcd 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 clientv3 + +import ( + "fmt" + "sync" + "time" + + v3rpc "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + mvccpb "github.com/coreos/etcd/mvcc/mvccpb" + "golang.org/x/net/context" + "google.golang.org/grpc" +) + +const ( + EventTypeDelete = mvccpb.DELETE + EventTypePut = mvccpb.PUT + + closeSendErrTimeout = 250 * time.Millisecond +) + +type Event mvccpb.Event + +type WatchChan <-chan WatchResponse + +type Watcher interface { + // Watch watches on a key or prefix. The watched events will be returned + // through the returned channel. + // If the watch is slow or the required rev is compacted, the watch request + // might be canceled from the server-side and the chan will be closed. + // 'opts' can be: 'WithRev' and/or 'WithPrefix'. + Watch(ctx context.Context, key string, opts ...OpOption) WatchChan + + // Close closes the watcher and cancels all watch requests. + Close() error +} + +type WatchResponse struct { + Header pb.ResponseHeader + Events []*Event + + // CompactRevision is the minimum revision the watcher may receive. + CompactRevision int64 + + // Canceled is used to indicate watch failure. + // If the watch failed and the stream was about to close, before the channel is closed, + // the channel sends a final response that has Canceled set to true with a non-nil Err(). + Canceled bool + + closeErr error +} + +// IsCreate returns true if the event tells that the key is newly created. +func (e *Event) IsCreate() bool { + return e.Type == EventTypePut && e.Kv.CreateRevision == e.Kv.ModRevision +} + +// IsModify returns true if the event tells that a new value is put on existing key. +func (e *Event) IsModify() bool { + return e.Type == EventTypePut && e.Kv.CreateRevision != e.Kv.ModRevision +} + +// Err is the error value if this WatchResponse holds an error. +func (wr *WatchResponse) Err() error { + switch { + case wr.closeErr != nil: + return v3rpc.Error(wr.closeErr) + case wr.CompactRevision != 0: + return v3rpc.ErrCompacted + case wr.Canceled: + return v3rpc.ErrFutureRev + } + return nil +} + +// IsProgressNotify returns true if the WatchResponse is progress notification. +func (wr *WatchResponse) IsProgressNotify() bool { + return len(wr.Events) == 0 && !wr.Canceled +} + +// watcher implements the Watcher interface +type watcher struct { + remote pb.WatchClient + + // mu protects the grpc streams map + mu sync.RWMutex + // streams holds all the active grpc streams keyed by ctx value. + streams map[string]*watchGrpcStream +} + +type watchGrpcStream struct { + owner *watcher + remote pb.WatchClient + + // ctx controls internal remote.Watch requests + ctx context.Context + // ctxKey is the key used when looking up this stream's context + ctxKey string + cancel context.CancelFunc + + // mu protects the streams map + mu sync.RWMutex + // streams holds all active watchers + streams map[int64]*watcherStream + + // reqc sends a watch request from Watch() to the main goroutine + reqc chan *watchRequest + // respc receives data from the watch client + respc chan *pb.WatchResponse + // stopc is sent to the main goroutine to stop all processing + stopc chan struct{} + // donec closes to broadcast shutdown + donec chan struct{} + // errc transmits errors from grpc Recv to the watch stream reconn logic + errc chan error + + // the error that closed the watch stream + closeErr error +} + +// watchRequest is issued by the subscriber to start a new watcher +type watchRequest struct { + ctx context.Context + key string + end string + rev int64 + // progressNotify is for progress updates. + progressNotify bool + // retc receives a chan WatchResponse once the watcher is established + retc chan chan WatchResponse +} + +// watcherStream represents a registered watcher +type watcherStream struct { + // initReq is the request that initiated this request + initReq watchRequest + + // outc publishes watch responses to subscriber + outc chan<- WatchResponse + // recvc buffers watch responses before publishing + recvc chan *WatchResponse + id int64 + + // lastRev is revision last successfully sent over outc + lastRev int64 + // resumec indicates the stream must recover at a given revision + resumec chan int64 +} + +func NewWatcher(c *Client) Watcher { + return &watcher{ + remote: pb.NewWatchClient(c.conn), + streams: make(map[string]*watchGrpcStream), + } +} + +// never closes +var valCtxCh = make(chan struct{}) +var zeroTime = time.Unix(0, 0) + +// ctx with only the values; never Done +type valCtx struct{ context.Context } + +func (vc *valCtx) Deadline() (time.Time, bool) { return zeroTime, false } +func (vc *valCtx) Done() <-chan struct{} { return valCtxCh } +func (vc *valCtx) Err() error { return nil } + +func (w *watcher) newWatcherGrpcStream(inctx context.Context) *watchGrpcStream { + ctx, cancel := context.WithCancel(&valCtx{inctx}) + wgs := &watchGrpcStream{ + owner: w, + remote: w.remote, + ctx: ctx, + ctxKey: fmt.Sprintf("%v", inctx), + cancel: cancel, + streams: make(map[int64]*watcherStream), + + respc: make(chan *pb.WatchResponse), + reqc: make(chan *watchRequest), + stopc: make(chan struct{}), + donec: make(chan struct{}), + errc: make(chan error, 1), + } + go wgs.run() + return wgs +} + +// Watch posts a watch request to run() and waits for a new watcher channel +func (w *watcher) Watch(ctx context.Context, key string, opts ...OpOption) WatchChan { + ow := opWatch(key, opts...) + + retc := make(chan chan WatchResponse, 1) + wr := &watchRequest{ + ctx: ctx, + key: string(ow.key), + end: string(ow.end), + rev: ow.rev, + progressNotify: ow.progressNotify, + retc: retc, + } + + ok := false + ctxKey := fmt.Sprintf("%v", ctx) + + // find or allocate appropriate grpc watch stream + w.mu.Lock() + if w.streams == nil { + // closed + w.mu.Unlock() + ch := make(chan WatchResponse) + close(ch) + return ch + } + wgs := w.streams[ctxKey] + if wgs == nil { + wgs = w.newWatcherGrpcStream(ctx) + w.streams[ctxKey] = wgs + } + donec := wgs.donec + reqc := wgs.reqc + w.mu.Unlock() + + // couldn't create channel; return closed channel + closeCh := make(chan WatchResponse, 1) + + // submit request + select { + case reqc <- wr: + ok = true + case <-wr.ctx.Done(): + wgs.stopIfEmpty() + case <-donec: + if wgs.closeErr != nil { + closeCh <- WatchResponse{closeErr: wgs.closeErr} + break + } + // retry; may have dropped stream from no ctxs + return w.Watch(ctx, key, opts...) + } + + // receive channel + if ok { + select { + case ret := <-retc: + return ret + case <-ctx.Done(): + case <-donec: + if wgs.closeErr != nil { + closeCh <- WatchResponse{closeErr: wgs.closeErr} + break + } + // retry; may have dropped stream from no ctxs + return w.Watch(ctx, key, opts...) + } + } + + close(closeCh) + return closeCh +} + +func (w *watcher) Close() (err error) { + w.mu.Lock() + streams := w.streams + w.streams = nil + w.mu.Unlock() + for _, wgs := range streams { + if werr := wgs.Close(); werr != nil { + err = werr + } + } + return err +} + +func (w *watchGrpcStream) Close() (err error) { + w.mu.Lock() + if w.stopc != nil { + close(w.stopc) + w.stopc = nil + } + w.mu.Unlock() + <-w.donec + select { + case err = <-w.errc: + default: + } + return toErr(w.ctx, err) +} + +func (w *watchGrpcStream) addStream(resp *pb.WatchResponse, pendingReq *watchRequest) { + if pendingReq == nil { + // no pending request; ignore + return + } + if resp.Canceled || resp.CompactRevision != 0 { + // a cancel at id creation time means the start revision has + // been compacted out of the store + ret := make(chan WatchResponse, 1) + ret <- WatchResponse{ + Header: *resp.Header, + CompactRevision: resp.CompactRevision, + Canceled: true} + close(ret) + pendingReq.retc <- ret + return + } + + ret := make(chan WatchResponse) + if resp.WatchId == -1 { + // failed; no channel + close(ret) + pendingReq.retc <- ret + return + } + + ws := &watcherStream{ + initReq: *pendingReq, + id: resp.WatchId, + outc: ret, + // buffered so unlikely to block on sending while holding mu + recvc: make(chan *WatchResponse, 4), + resumec: make(chan int64), + } + + if pendingReq.rev == 0 { + // note the header revision so that a put following a current watcher + // disconnect will arrive on the watcher channel after reconnect + ws.initReq.rev = resp.Header.Revision + } + + w.mu.Lock() + w.streams[ws.id] = ws + w.mu.Unlock() + + // pass back the subscriber channel for the watcher + pendingReq.retc <- ret + + // send messages to subscriber + go w.serveStream(ws) +} + +// closeStream closes the watcher resources and removes it +func (w *watchGrpcStream) closeStream(ws *watcherStream) { + w.mu.Lock() + // cancels request stream; subscriber receives nil channel + close(ws.initReq.retc) + // close subscriber's channel + close(ws.outc) + delete(w.streams, ws.id) + w.mu.Unlock() +} + +// run is the root of the goroutines for managing a watcher client +func (w *watchGrpcStream) run() { + var wc pb.Watch_WatchClient + var closeErr error + + defer func() { + w.owner.mu.Lock() + w.closeErr = closeErr + if w.owner.streams != nil { + delete(w.owner.streams, w.ctxKey) + } + close(w.donec) + w.owner.mu.Unlock() + w.cancel() + }() + + // already stopped? + w.mu.RLock() + stopc := w.stopc + w.mu.RUnlock() + if stopc == nil { + return + } + + // start a stream with the etcd grpc server + if wc, closeErr = w.newWatchClient(); closeErr != nil { + return + } + + var pendingReq, failedReq *watchRequest + curReqC := w.reqc + cancelSet := make(map[int64]struct{}) + + for { + select { + // Watch() requested + case pendingReq = <-curReqC: + // no more watch requests until there's a response + curReqC = nil + if err := wc.Send(pendingReq.toPB()); err == nil { + // pendingReq now waits on w.respc + break + } + failedReq = pendingReq + // New events from the watch client + case pbresp := <-w.respc: + switch { + case pbresp.Created: + // response to pending req, try to add + w.addStream(pbresp, pendingReq) + pendingReq = nil + curReqC = w.reqc + case pbresp.Canceled: + delete(cancelSet, pbresp.WatchId) + // shutdown serveStream, if any + w.mu.Lock() + if ws, ok := w.streams[pbresp.WatchId]; ok { + close(ws.recvc) + delete(w.streams, ws.id) + } + numStreams := len(w.streams) + w.mu.Unlock() + if numStreams == 0 { + // don't leak watcher streams + return + } + default: + // dispatch to appropriate watch stream + if ok := w.dispatchEvent(pbresp); ok { + break + } + // watch response on unexpected watch id; cancel id + if _, ok := cancelSet[pbresp.WatchId]; ok { + break + } + cancelSet[pbresp.WatchId] = struct{}{} + cr := &pb.WatchRequest_CancelRequest{ + CancelRequest: &pb.WatchCancelRequest{ + WatchId: pbresp.WatchId, + }, + } + req := &pb.WatchRequest{RequestUnion: cr} + wc.Send(req) + } + // watch client failed to recv; spawn another if possible + // TODO report watch client errors from errc? + case err := <-w.errc: + if toErr(w.ctx, err) == v3rpc.ErrNoLeader { + closeErr = err + return + } + if wc, closeErr = w.newWatchClient(); closeErr != nil { + return + } + curReqC = w.reqc + if pendingReq != nil { + failedReq = pendingReq + } + cancelSet = make(map[int64]struct{}) + case <-stopc: + return + } + + // send failed; queue for retry + if failedReq != nil { + go func(wr *watchRequest) { + select { + case w.reqc <- wr: + case <-wr.ctx.Done(): + case <-w.donec: + } + }(pendingReq) + failedReq = nil + pendingReq = nil + } + } +} + +// dispatchEvent sends a WatchResponse to the appropriate watcher stream +func (w *watchGrpcStream) dispatchEvent(pbresp *pb.WatchResponse) bool { + w.mu.RLock() + defer w.mu.RUnlock() + ws, ok := w.streams[pbresp.WatchId] + events := make([]*Event, len(pbresp.Events)) + for i, ev := range pbresp.Events { + events[i] = (*Event)(ev) + } + if ok { + wr := &WatchResponse{ + Header: *pbresp.Header, + Events: events, + CompactRevision: pbresp.CompactRevision, + Canceled: pbresp.Canceled} + ws.recvc <- wr + } + return ok +} + +// serveWatchClient forwards messages from the grpc stream to run() +func (w *watchGrpcStream) serveWatchClient(wc pb.Watch_WatchClient) { + for { + resp, err := wc.Recv() + if err != nil { + select { + case w.errc <- err: + case <-w.donec: + } + return + } + select { + case w.respc <- resp: + case <-w.donec: + return + } + } +} + +// serveStream forwards watch responses from run() to the subscriber +func (w *watchGrpcStream) serveStream(ws *watcherStream) { + var closeErr error + emptyWr := &WatchResponse{} + wrs := []*WatchResponse{} + resuming := false + closing := false + for !closing { + curWr := emptyWr + outc := ws.outc + if len(wrs) > 0 { + curWr = wrs[0] + } else { + outc = nil + } + select { + case outc <- *curWr: + if wrs[0].Err() != nil { + closing = true + break + } + var newRev int64 + if len(wrs[0].Events) > 0 { + newRev = wrs[0].Events[len(wrs[0].Events)-1].Kv.ModRevision + } else { + newRev = wrs[0].Header.Revision + } + if newRev != ws.lastRev { + ws.lastRev = newRev + } + wrs[0] = nil + wrs = wrs[1:] + case wr, ok := <-ws.recvc: + if !ok { + // shutdown from closeStream + return + } + // resume up to last seen event if disconnected + if resuming && wr.Err() == nil { + resuming = false + // trim events already seen + for i := 0; i < len(wr.Events); i++ { + if wr.Events[i].Kv.ModRevision > ws.lastRev { + wr.Events = wr.Events[i:] + break + } + } + // only forward new events + if wr.Events[0].Kv.ModRevision == ws.lastRev { + break + } + } + resuming = false + // TODO don't keep buffering if subscriber stops reading + wrs = append(wrs, wr) + case resumeRev := <-ws.resumec: + wrs = nil + resuming = true + if resumeRev == -1 { + // pause serving stream while resume gets set up + break + } + if resumeRev != ws.lastRev { + panic("unexpected resume revision") + } + case <-w.donec: + closing = true + closeErr = w.closeErr + case <-ws.initReq.ctx.Done(): + closing = true + } + } + + // try to send off close error + if closeErr != nil { + select { + case ws.outc <- WatchResponse{closeErr: w.closeErr}: + case <-w.donec: + case <-time.After(closeSendErrTimeout): + } + } + + w.closeStream(ws) + w.stopIfEmpty() + // lazily send cancel message if events on missing id +} + +func (wgs *watchGrpcStream) stopIfEmpty() { + wgs.mu.Lock() + if len(wgs.streams) == 0 && wgs.stopc != nil { + close(wgs.stopc) + wgs.stopc = nil + } + wgs.mu.Unlock() +} + +func (w *watchGrpcStream) newWatchClient() (pb.Watch_WatchClient, error) { + ws, rerr := w.resume() + if rerr != nil { + return nil, rerr + } + go w.serveWatchClient(ws) + return ws, nil +} + +// resume creates a new WatchClient with all current watchers reestablished +func (w *watchGrpcStream) resume() (ws pb.Watch_WatchClient, err error) { + for { + if ws, err = w.openWatchClient(); err != nil { + break + } else if err = w.resumeWatchers(ws); err == nil { + break + } + } + return ws, v3rpc.Error(err) +} + +// openWatchClient retries opening a watchclient until retryConnection fails +func (w *watchGrpcStream) openWatchClient() (ws pb.Watch_WatchClient, err error) { + for { + w.mu.Lock() + stopc := w.stopc + w.mu.Unlock() + if stopc == nil { + if err == nil { + err = context.Canceled + } + return nil, err + } + if ws, err = w.remote.Watch(w.ctx, grpc.FailFast(false)); ws != nil && err == nil { + break + } + if isHaltErr(w.ctx, err) { + return nil, v3rpc.Error(err) + } + } + return ws, nil +} + +// resumeWatchers rebuilds every registered watcher on a new client +func (w *watchGrpcStream) resumeWatchers(wc pb.Watch_WatchClient) error { + w.mu.RLock() + streams := make([]*watcherStream, 0, len(w.streams)) + for _, ws := range w.streams { + streams = append(streams, ws) + } + w.mu.RUnlock() + + for _, ws := range streams { + // pause serveStream + ws.resumec <- -1 + + // reconstruct watcher from initial request + if ws.lastRev != 0 { + ws.initReq.rev = ws.lastRev + } + if err := wc.Send(ws.initReq.toPB()); err != nil { + return err + } + + // wait for request ack + resp, err := wc.Recv() + if err != nil { + return err + } else if len(resp.Events) != 0 || !resp.Created { + return fmt.Errorf("watcher: unexpected response (%+v)", resp) + } + + // id may be different since new remote watcher; update map + w.mu.Lock() + delete(w.streams, ws.id) + ws.id = resp.WatchId + w.streams[ws.id] = ws + w.mu.Unlock() + + // unpause serveStream + ws.resumec <- ws.lastRev + } + return nil +} + +// toPB converts an internal watch request structure to its protobuf messagefunc (wr *watchRequest) +func (wr *watchRequest) toPB() *pb.WatchRequest { + req := &pb.WatchCreateRequest{ + StartRevision: wr.rev, + Key: []byte(wr.key), + RangeEnd: []byte(wr.end), + ProgressNotify: wr.progressNotify, + } + cr := &pb.WatchRequest_CreateRequest{CreateRequest: req} + return &pb.WatchRequest{RequestUnion: cr} +} diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go new file mode 100644 index 0000000000..f72c6a644f --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go @@ -0,0 +1,16 @@ +// Copyright 2016 The etcd 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 rpctypes has types and values shared by the etcd server and client for v3 RPC interaction. +package rpctypes diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go new file mode 100644 index 0000000000..ecf5a20674 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go @@ -0,0 +1,150 @@ +// Copyright 2015 The etcd 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 rpctypes + +import ( + "google.golang.org/grpc" + "google.golang.org/grpc/codes" +) + +var ( + // server-side error + ErrGRPCEmptyKey = grpc.Errorf(codes.InvalidArgument, "etcdserver: key is not provided") + ErrGRPCTooManyOps = grpc.Errorf(codes.InvalidArgument, "etcdserver: too many operations in txn request") + ErrGRPCDuplicateKey = grpc.Errorf(codes.InvalidArgument, "etcdserver: duplicate key given in txn request") + ErrGRPCCompacted = grpc.Errorf(codes.OutOfRange, "etcdserver: mvcc: required revision has been compacted") + ErrGRPCFutureRev = grpc.Errorf(codes.OutOfRange, "etcdserver: mvcc: required revision is a future revision") + ErrGRPCNoSpace = grpc.Errorf(codes.ResourceExhausted, "etcdserver: mvcc: database space exceeded") + + ErrGRPCLeaseNotFound = grpc.Errorf(codes.NotFound, "etcdserver: requested lease not found") + ErrGRPCLeaseExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: lease already exists") + + ErrGRPCMemberExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: member ID already exist") + ErrGRPCPeerURLExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: Peer URLs already exists") + ErrGRPCMemberBadURLs = grpc.Errorf(codes.InvalidArgument, "etcdserver: given member URLs are invalid") + ErrGRPCMemberNotFound = grpc.Errorf(codes.NotFound, "etcdserver: member not found") + + ErrGRPCRequestTooLarge = grpc.Errorf(codes.InvalidArgument, "etcdserver: request is too large") + + ErrGRPCRootUserNotExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: root user does not exist") + ErrGRPCRootRoleNotExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: root user does not have root role") + ErrGRPCUserAlreadyExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: user name already exists") + ErrGRPCUserNotFound = grpc.Errorf(codes.FailedPrecondition, "etcdserver: user name not found") + ErrGRPCRoleAlreadyExist = grpc.Errorf(codes.FailedPrecondition, "etcdserver: role name already exists") + ErrGRPCRoleNotFound = grpc.Errorf(codes.FailedPrecondition, "etcdserver: role name not found") + ErrGRPCAuthFailed = grpc.Errorf(codes.InvalidArgument, "etcdserver: authentication failed, invalid user ID or password") + ErrGRPCPermissionDenied = grpc.Errorf(codes.FailedPrecondition, "etcdserver: permission denied") + ErrGRPCRoleNotGranted = grpc.Errorf(codes.FailedPrecondition, "etcdserver: role is not granted to the user") + ErrGRPCPermissionNotGranted = grpc.Errorf(codes.FailedPrecondition, "etcdserver: permission is not granted to the role") + + ErrGRPCNoLeader = grpc.Errorf(codes.Unavailable, "etcdserver: no leader") + ErrGRPCNotCapable = grpc.Errorf(codes.Unavailable, "etcdserver: not capable") + ErrGRPCStopped = grpc.Errorf(codes.Unavailable, "etcdserver: server stopped") + + errStringToError = map[string]error{ + grpc.ErrorDesc(ErrGRPCEmptyKey): ErrGRPCEmptyKey, + grpc.ErrorDesc(ErrGRPCTooManyOps): ErrGRPCTooManyOps, + grpc.ErrorDesc(ErrGRPCDuplicateKey): ErrGRPCDuplicateKey, + grpc.ErrorDesc(ErrGRPCCompacted): ErrGRPCCompacted, + grpc.ErrorDesc(ErrGRPCFutureRev): ErrGRPCFutureRev, + grpc.ErrorDesc(ErrGRPCNoSpace): ErrGRPCNoSpace, + + grpc.ErrorDesc(ErrGRPCLeaseNotFound): ErrGRPCLeaseNotFound, + grpc.ErrorDesc(ErrGRPCLeaseExist): ErrGRPCLeaseExist, + + grpc.ErrorDesc(ErrGRPCMemberExist): ErrGRPCMemberExist, + grpc.ErrorDesc(ErrGRPCPeerURLExist): ErrGRPCPeerURLExist, + grpc.ErrorDesc(ErrGRPCMemberBadURLs): ErrGRPCMemberBadURLs, + grpc.ErrorDesc(ErrGRPCMemberNotFound): ErrGRPCMemberNotFound, + + grpc.ErrorDesc(ErrGRPCRequestTooLarge): ErrGRPCRequestTooLarge, + + grpc.ErrorDesc(ErrGRPCRootUserNotExist): ErrGRPCRootUserNotExist, + grpc.ErrorDesc(ErrGRPCRootRoleNotExist): ErrGRPCRootRoleNotExist, + grpc.ErrorDesc(ErrGRPCUserAlreadyExist): ErrGRPCUserAlreadyExist, + grpc.ErrorDesc(ErrGRPCUserNotFound): ErrGRPCUserNotFound, + grpc.ErrorDesc(ErrGRPCRoleAlreadyExist): ErrGRPCRoleAlreadyExist, + grpc.ErrorDesc(ErrGRPCRoleNotFound): ErrGRPCRoleNotFound, + grpc.ErrorDesc(ErrGRPCAuthFailed): ErrGRPCAuthFailed, + grpc.ErrorDesc(ErrGRPCPermissionDenied): ErrGRPCPermissionDenied, + grpc.ErrorDesc(ErrGRPCRoleNotGranted): ErrGRPCRoleNotGranted, + grpc.ErrorDesc(ErrGRPCPermissionNotGranted): ErrGRPCPermissionNotGranted, + + grpc.ErrorDesc(ErrGRPCNoLeader): ErrGRPCNoLeader, + grpc.ErrorDesc(ErrGRPCNotCapable): ErrGRPCNotCapable, + grpc.ErrorDesc(ErrGRPCStopped): ErrGRPCStopped, + } + + // client-side error + ErrEmptyKey = Error(ErrGRPCEmptyKey) + ErrTooManyOps = Error(ErrGRPCTooManyOps) + ErrDuplicateKey = Error(ErrGRPCDuplicateKey) + ErrCompacted = Error(ErrGRPCCompacted) + ErrFutureRev = Error(ErrGRPCFutureRev) + ErrNoSpace = Error(ErrGRPCNoSpace) + + ErrLeaseNotFound = Error(ErrGRPCLeaseNotFound) + ErrLeaseExist = Error(ErrGRPCLeaseExist) + + ErrMemberExist = Error(ErrGRPCMemberExist) + ErrPeerURLExist = Error(ErrGRPCPeerURLExist) + ErrMemberBadURLs = Error(ErrGRPCMemberBadURLs) + ErrMemberNotFound = Error(ErrGRPCMemberNotFound) + + ErrRequestTooLarge = Error(ErrGRPCRequestTooLarge) + + ErrRootUserNotExist = Error(ErrGRPCRootUserNotExist) + ErrRootRoleNotExist = Error(ErrGRPCRootRoleNotExist) + ErrUserAlreadyExist = Error(ErrGRPCUserAlreadyExist) + ErrUserNotFound = Error(ErrGRPCUserNotFound) + ErrRoleAlreadyExist = Error(ErrGRPCRoleAlreadyExist) + ErrRoleNotFound = Error(ErrGRPCRoleNotFound) + ErrAuthFailed = Error(ErrGRPCAuthFailed) + ErrPermissionDenied = Error(ErrGRPCPermissionDenied) + ErrRoleNotGranted = Error(ErrGRPCRoleNotGranted) + ErrPermissionNotGranted = Error(ErrGRPCPermissionNotGranted) + + ErrNoLeader = Error(ErrGRPCNoLeader) + ErrNotCapable = Error(ErrGRPCNotCapable) + ErrStopped = Error(ErrGRPCStopped) +) + +// EtcdError defines gRPC server errors. +// (https://github.com/grpc/grpc-go/blob/master/rpc_util.go#L319-L323) +type EtcdError struct { + code codes.Code + desc string +} + +// Code returns grpc/codes.Code. +// TODO: define clientv3/codes.Code. +func (e EtcdError) Code() codes.Code { + return e.code +} + +func (e EtcdError) Error() string { + return e.desc +} + +func Error(err error) error { + if err == nil { + return nil + } + verr, ok := errStringToError[grpc.ErrorDesc(err)] + if !ok { // not gRPC error + return err + } + return EtcdError{code: grpc.Code(verr), desc: grpc.ErrorDesc(verr)} +} diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go new file mode 100644 index 0000000000..5c590e1aec --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go @@ -0,0 +1,20 @@ +// Copyright 2016 The etcd 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 rpctypes + +var ( + MetadataRequireLeaderKey = "hasleader" + MetadataHasLeader = "true" +) diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go new file mode 100644 index 0000000000..746e9a116a --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go @@ -0,0 +1,1041 @@ +// Code generated by protoc-gen-gogo. +// source: etcdserver.proto +// DO NOT EDIT! + +/* + Package etcdserverpb is a generated protocol buffer package. + + It is generated from these files: + etcdserver.proto + raft_internal.proto + rpc.proto + + It has these top-level messages: + Request + Metadata + RequestHeader + InternalRaftRequest + EmptyResponse + InternalAuthenticateRequest + ResponseHeader + RangeRequest + RangeResponse + PutRequest + PutResponse + DeleteRangeRequest + DeleteRangeResponse + RequestOp + ResponseOp + Compare + TxnRequest + TxnResponse + CompactionRequest + CompactionResponse + HashRequest + HashResponse + SnapshotRequest + SnapshotResponse + WatchRequest + WatchCreateRequest + WatchCancelRequest + WatchResponse + LeaseGrantRequest + LeaseGrantResponse + LeaseRevokeRequest + LeaseRevokeResponse + LeaseKeepAliveRequest + LeaseKeepAliveResponse + Member + MemberAddRequest + MemberAddResponse + MemberRemoveRequest + MemberRemoveResponse + MemberUpdateRequest + MemberUpdateResponse + MemberListRequest + MemberListResponse + DefragmentRequest + DefragmentResponse + AlarmRequest + AlarmMember + AlarmResponse + StatusRequest + StatusResponse + AuthEnableRequest + AuthDisableRequest + AuthenticateRequest + AuthUserAddRequest + AuthUserGetRequest + AuthUserDeleteRequest + AuthUserChangePasswordRequest + AuthUserGrantRoleRequest + AuthUserRevokeRoleRequest + AuthRoleAddRequest + AuthRoleGetRequest + AuthUserListRequest + AuthRoleListRequest + AuthRoleDeleteRequest + AuthRoleGrantPermissionRequest + AuthRoleRevokePermissionRequest + AuthEnableResponse + AuthDisableResponse + AuthenticateResponse + AuthUserAddResponse + AuthUserGetResponse + AuthUserDeleteResponse + AuthUserChangePasswordResponse + AuthUserGrantRoleResponse + AuthUserRevokeRoleResponse + AuthRoleAddResponse + AuthRoleGetResponse + AuthRoleListResponse + AuthUserListResponse + AuthRoleDeleteResponse + AuthRoleGrantPermissionResponse + AuthRoleRevokePermissionResponse +*/ +package etcdserverpb + +import ( + "fmt" + + proto "github.com/golang/protobuf/proto" + + math "math" +) + +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.ProtoPackageIsVersion1 + +type Request struct { + ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD" json:"ID"` + Method string `protobuf:"bytes,2,opt,name=Method,json=method" json:"Method"` + Path string `protobuf:"bytes,3,opt,name=Path,json=path" json:"Path"` + Val string `protobuf:"bytes,4,opt,name=Val,json=val" json:"Val"` + Dir bool `protobuf:"varint,5,opt,name=Dir,json=dir" json:"Dir"` + PrevValue string `protobuf:"bytes,6,opt,name=PrevValue,json=prevValue" json:"PrevValue"` + PrevIndex uint64 `protobuf:"varint,7,opt,name=PrevIndex,json=prevIndex" json:"PrevIndex"` + PrevExist *bool `protobuf:"varint,8,opt,name=PrevExist,json=prevExist" json:"PrevExist,omitempty"` + Expiration int64 `protobuf:"varint,9,opt,name=Expiration,json=expiration" json:"Expiration"` + Wait bool `protobuf:"varint,10,opt,name=Wait,json=wait" json:"Wait"` + Since uint64 `protobuf:"varint,11,opt,name=Since,json=since" json:"Since"` + Recursive bool `protobuf:"varint,12,opt,name=Recursive,json=recursive" json:"Recursive"` + Sorted bool `protobuf:"varint,13,opt,name=Sorted,json=sorted" json:"Sorted"` + Quorum bool `protobuf:"varint,14,opt,name=Quorum,json=quorum" json:"Quorum"` + Time int64 `protobuf:"varint,15,opt,name=Time,json=time" json:"Time"` + Stream bool `protobuf:"varint,16,opt,name=Stream,json=stream" json:"Stream"` + Refresh *bool `protobuf:"varint,17,opt,name=Refresh,json=refresh" json:"Refresh,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Request) Reset() { *m = Request{} } +func (m *Request) String() string { return proto.CompactTextString(m) } +func (*Request) ProtoMessage() {} +func (*Request) Descriptor() ([]byte, []int) { return fileDescriptorEtcdserver, []int{0} } + +type Metadata struct { + NodeID uint64 `protobuf:"varint,1,opt,name=NodeID,json=nodeID" json:"NodeID"` + ClusterID uint64 `protobuf:"varint,2,opt,name=ClusterID,json=clusterID" json:"ClusterID"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Metadata) Reset() { *m = Metadata{} } +func (m *Metadata) String() string { return proto.CompactTextString(m) } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptorEtcdserver, []int{1} } + +func init() { + proto.RegisterType((*Request)(nil), "etcdserverpb.Request") + proto.RegisterType((*Metadata)(nil), "etcdserverpb.Metadata") +} +func (m *Request) 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 *Request) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.ID)) + data[i] = 0x12 + i++ + i = encodeVarintEtcdserver(data, i, uint64(len(m.Method))) + i += copy(data[i:], m.Method) + data[i] = 0x1a + i++ + i = encodeVarintEtcdserver(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + data[i] = 0x22 + i++ + i = encodeVarintEtcdserver(data, i, uint64(len(m.Val))) + i += copy(data[i:], m.Val) + data[i] = 0x28 + i++ + if m.Dir { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x32 + i++ + i = encodeVarintEtcdserver(data, i, uint64(len(m.PrevValue))) + i += copy(data[i:], m.PrevValue) + data[i] = 0x38 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.PrevIndex)) + if m.PrevExist != nil { + data[i] = 0x40 + i++ + if *m.PrevExist { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + data[i] = 0x48 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.Expiration)) + data[i] = 0x50 + i++ + if m.Wait { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x58 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.Since)) + data[i] = 0x60 + i++ + if m.Recursive { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x68 + i++ + if m.Sorted { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x70 + i++ + if m.Quorum { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x78 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.Time)) + data[i] = 0x80 + i++ + data[i] = 0x1 + i++ + if m.Stream { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + if m.Refresh != nil { + data[i] = 0x88 + i++ + data[i] = 0x1 + i++ + if *m.Refresh { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Metadata) 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 *Metadata) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.NodeID)) + data[i] = 0x10 + i++ + i = encodeVarintEtcdserver(data, i, uint64(m.ClusterID)) + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Etcdserver(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 encodeFixed32Etcdserver(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 encodeVarintEtcdserver(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 *Request) Size() (n int) { + var l int + _ = l + n += 1 + sovEtcdserver(uint64(m.ID)) + l = len(m.Method) + n += 1 + l + sovEtcdserver(uint64(l)) + l = len(m.Path) + n += 1 + l + sovEtcdserver(uint64(l)) + l = len(m.Val) + n += 1 + l + sovEtcdserver(uint64(l)) + n += 2 + l = len(m.PrevValue) + n += 1 + l + sovEtcdserver(uint64(l)) + n += 1 + sovEtcdserver(uint64(m.PrevIndex)) + if m.PrevExist != nil { + n += 2 + } + n += 1 + sovEtcdserver(uint64(m.Expiration)) + n += 2 + n += 1 + sovEtcdserver(uint64(m.Since)) + n += 2 + n += 2 + n += 2 + n += 1 + sovEtcdserver(uint64(m.Time)) + n += 3 + if m.Refresh != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Metadata) Size() (n int) { + var l int + _ = l + n += 1 + sovEtcdserver(uint64(m.NodeID)) + n += 1 + sovEtcdserver(uint64(m.ClusterID)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovEtcdserver(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozEtcdserver(x uint64) (n int) { + return sovEtcdserver(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Request) 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 ErrIntOverflowEtcdserver + } + 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: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + 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 ErrInvalidLengthEtcdserver + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Method = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + 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 ErrInvalidLengthEtcdserver + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Val", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + 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 ErrInvalidLengthEtcdserver + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Val = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dir", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Dir = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrevValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + 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 ErrInvalidLengthEtcdserver + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrevValue = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrevIndex", wireType) + } + m.PrevIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.PrevIndex |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrevExist", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PrevExist = &b + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Expiration", wireType) + } + m.Expiration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Expiration |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Wait", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Wait = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Since", wireType) + } + m.Since = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Since |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Recursive = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sorted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Sorted = bool(v != 0) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Quorum", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Quorum = bool(v != 0) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) + } + m.Time = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Time |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stream", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Stream = bool(v != 0) + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Refresh", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Refresh = &b + default: + iNdEx = preIndex + skippy, err := skipEtcdserver(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEtcdserver + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Metadata) 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 ErrIntOverflowEtcdserver + } + 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: Metadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) + } + m.NodeID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.NodeID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterID", wireType) + } + m.ClusterID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEtcdserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ClusterID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEtcdserver(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEtcdserver + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEtcdserver(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, ErrIntOverflowEtcdserver + } + 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, ErrIntOverflowEtcdserver + } + 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, ErrIntOverflowEtcdserver + } + 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, ErrInvalidLengthEtcdserver + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEtcdserver + } + 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 := skipEtcdserver(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 ( + ErrInvalidLengthEtcdserver = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEtcdserver = fmt.Errorf("proto: integer overflow") +) + +var fileDescriptorEtcdserver = []byte{ + // 404 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x92, 0x41, 0x6e, 0x13, 0x31, + 0x14, 0x86, 0xe3, 0xc4, 0x99, 0x64, 0x4c, 0x81, 0x62, 0x45, 0xe8, 0xa9, 0x42, 0x43, 0x14, 0xb1, + 0xc8, 0x0a, 0xee, 0x50, 0xd2, 0x45, 0x24, 0x8a, 0x4a, 0x8a, 0xca, 0xda, 0x64, 0x1e, 0x8d, 0xa5, + 0xcc, 0x78, 0x6a, 0xbf, 0x19, 0x72, 0x03, 0xae, 0xc0, 0x91, 0xb2, 0xe4, 0x04, 0x08, 0xc2, 0x45, + 0x90, 0x3d, 0x9d, 0x60, 0xba, 0xb3, 0xbe, 0xff, 0xf7, 0xef, 0xdf, 0xf6, 0x13, 0xa7, 0x48, 0xeb, + 0xdc, 0xa1, 0x6d, 0xd0, 0xbe, 0xae, 0xac, 0x21, 0x23, 0x4f, 0xfe, 0x91, 0xea, 0xf3, 0xd9, 0xe4, + 0xd6, 0xdc, 0x9a, 0x20, 0xbc, 0xf1, 0xab, 0xd6, 0x33, 0xfb, 0xc6, 0xc5, 0x68, 0x85, 0x77, 0x35, + 0x3a, 0x92, 0x13, 0xd1, 0x5f, 0x2e, 0x80, 0x4d, 0xd9, 0x9c, 0x9f, 0xf3, 0xfd, 0xcf, 0x97, 0xbd, + 0x55, 0x5f, 0x2f, 0xe4, 0x0b, 0x91, 0x5c, 0x22, 0x6d, 0x4c, 0x0e, 0xfd, 0x29, 0x9b, 0xa7, 0xf7, + 0x4a, 0x52, 0x04, 0x26, 0x41, 0xf0, 0x2b, 0x45, 0x1b, 0x18, 0x44, 0x1a, 0xaf, 0x14, 0x6d, 0xe4, + 0x73, 0x31, 0xb8, 0x51, 0x5b, 0xe0, 0x91, 0x30, 0x68, 0xd4, 0xd6, 0xf3, 0x85, 0xb6, 0x30, 0x9c, + 0xb2, 0xf9, 0xb8, 0xe3, 0xb9, 0xb6, 0x72, 0x26, 0xd2, 0x2b, 0x8b, 0xcd, 0x8d, 0xda, 0xd6, 0x08, + 0x49, 0xb4, 0x2b, 0xad, 0x3a, 0xdc, 0x79, 0x96, 0x65, 0x8e, 0x3b, 0x18, 0x45, 0x45, 0x83, 0x27, + 0xe0, 0xce, 0x73, 0xb1, 0xd3, 0x8e, 0x60, 0x7c, 0x3c, 0x85, 0xb5, 0x9e, 0x80, 0xe5, 0x2b, 0x21, + 0x2e, 0x76, 0x95, 0xb6, 0x8a, 0xb4, 0x29, 0x21, 0x9d, 0xb2, 0xf9, 0xe0, 0x3e, 0x48, 0xe0, 0x91, + 0xfb, 0xbb, 0x7d, 0x52, 0x9a, 0x40, 0x44, 0x55, 0xf9, 0x57, 0xa5, 0x49, 0x9e, 0x89, 0xe1, 0xb5, + 0x2e, 0xd7, 0x08, 0x8f, 0xa2, 0x0e, 0x43, 0xe7, 0x91, 0x3f, 0x7f, 0x85, 0xeb, 0xda, 0x3a, 0xdd, + 0x20, 0x9c, 0x44, 0x5b, 0x53, 0xdb, 0x61, 0xff, 0xa6, 0xd7, 0xc6, 0x12, 0xe6, 0xf0, 0x38, 0x32, + 0x24, 0x2e, 0x30, 0xaf, 0x7e, 0xa8, 0x8d, 0xad, 0x0b, 0x78, 0x12, 0xab, 0x77, 0x81, 0xf9, 0x56, + 0x1f, 0x75, 0x81, 0xf0, 0x34, 0x6a, 0xcd, 0x49, 0x17, 0x6d, 0x2a, 0x59, 0x54, 0x05, 0x9c, 0xfe, + 0x97, 0x1a, 0x98, 0xcc, 0xfc, 0x47, 0x7f, 0xb1, 0xe8, 0x36, 0xf0, 0x2c, 0x7a, 0x95, 0x91, 0x6d, + 0xe1, 0xec, 0x9d, 0x18, 0x5f, 0x22, 0xa9, 0x5c, 0x91, 0xf2, 0x49, 0xef, 0x4d, 0x8e, 0x0f, 0xa6, + 0x21, 0x29, 0x03, 0xf3, 0x37, 0x7c, 0xbb, 0xad, 0x1d, 0xa1, 0x5d, 0x2e, 0xc2, 0x50, 0x1c, 0x7f, + 0x61, 0xdd, 0xe1, 0xf3, 0xc9, 0xfe, 0x77, 0xd6, 0xdb, 0x1f, 0x32, 0xf6, 0xe3, 0x90, 0xb1, 0x5f, + 0x87, 0x8c, 0x7d, 0xff, 0x93, 0xf5, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x80, 0x62, 0xfc, 0x40, + 0xa4, 0x02, 0x00, 0x00, +} diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.proto b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.proto new file mode 100644 index 0000000000..25e0aca5d9 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; +package etcdserverpb; + +import "gogoproto/gogo.proto"; + +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_getters_all) = false; + +message Request { + optional uint64 ID = 1 [(gogoproto.nullable) = false]; + optional string Method = 2 [(gogoproto.nullable) = false]; + optional string Path = 3 [(gogoproto.nullable) = false]; + optional string Val = 4 [(gogoproto.nullable) = false]; + optional bool Dir = 5 [(gogoproto.nullable) = false]; + optional string PrevValue = 6 [(gogoproto.nullable) = false]; + optional uint64 PrevIndex = 7 [(gogoproto.nullable) = false]; + optional bool PrevExist = 8 [(gogoproto.nullable) = true]; + optional int64 Expiration = 9 [(gogoproto.nullable) = false]; + optional bool Wait = 10 [(gogoproto.nullable) = false]; + optional uint64 Since = 11 [(gogoproto.nullable) = false]; + optional bool Recursive = 12 [(gogoproto.nullable) = false]; + optional bool Sorted = 13 [(gogoproto.nullable) = false]; + optional bool Quorum = 14 [(gogoproto.nullable) = false]; + optional int64 Time = 15 [(gogoproto.nullable) = false]; + optional bool Stream = 16 [(gogoproto.nullable) = false]; + optional bool Refresh = 17 [(gogoproto.nullable) = true]; +} + +message Metadata { + optional uint64 NodeID = 1 [(gogoproto.nullable) = false]; + optional uint64 ClusterID = 2 [(gogoproto.nullable) = false]; +} diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go new file mode 100644 index 0000000000..068aefff0b --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go @@ -0,0 +1,2062 @@ +// Code generated by protoc-gen-gogo. +// source: raft_internal.proto +// DO NOT EDIT! + +package etcdserverpb + +import ( + "fmt" + + proto "github.com/golang/protobuf/proto" + + math "math" +) + +import io "io" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type RequestHeader struct { + ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` + // username is a username that is associated with an auth token of gRPC connection + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` +} + +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{0} } + +// An InternalRaftRequest is the union of all requests which can be +// sent via raft. +type InternalRaftRequest struct { + Header *RequestHeader `protobuf:"bytes,100,opt,name=header" json:"header,omitempty"` + ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` + V2 *Request `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"` + Range *RangeRequest `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"` + Put *PutRequest `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` + DeleteRange *DeleteRangeRequest `protobuf:"bytes,5,opt,name=delete_range,json=deleteRange" json:"delete_range,omitempty"` + Txn *TxnRequest `protobuf:"bytes,6,opt,name=txn" json:"txn,omitempty"` + Compaction *CompactionRequest `protobuf:"bytes,7,opt,name=compaction" json:"compaction,omitempty"` + LeaseGrant *LeaseGrantRequest `protobuf:"bytes,8,opt,name=lease_grant,json=leaseGrant" json:"lease_grant,omitempty"` + LeaseRevoke *LeaseRevokeRequest `protobuf:"bytes,9,opt,name=lease_revoke,json=leaseRevoke" json:"lease_revoke,omitempty"` + Alarm *AlarmRequest `protobuf:"bytes,10,opt,name=alarm" json:"alarm,omitempty"` + AuthEnable *AuthEnableRequest `protobuf:"bytes,1000,opt,name=auth_enable,json=authEnable" json:"auth_enable,omitempty"` + AuthDisable *AuthDisableRequest `protobuf:"bytes,1011,opt,name=auth_disable,json=authDisable" json:"auth_disable,omitempty"` + Authenticate *InternalAuthenticateRequest `protobuf:"bytes,1012,opt,name=authenticate" json:"authenticate,omitempty"` + AuthUserAdd *AuthUserAddRequest `protobuf:"bytes,1100,opt,name=auth_user_add,json=authUserAdd" json:"auth_user_add,omitempty"` + AuthUserDelete *AuthUserDeleteRequest `protobuf:"bytes,1101,opt,name=auth_user_delete,json=authUserDelete" json:"auth_user_delete,omitempty"` + AuthUserGet *AuthUserGetRequest `protobuf:"bytes,1102,opt,name=auth_user_get,json=authUserGet" json:"auth_user_get,omitempty"` + AuthUserChangePassword *AuthUserChangePasswordRequest `protobuf:"bytes,1103,opt,name=auth_user_change_password,json=authUserChangePassword" json:"auth_user_change_password,omitempty"` + AuthUserGrantRole *AuthUserGrantRoleRequest `protobuf:"bytes,1104,opt,name=auth_user_grant_role,json=authUserGrantRole" json:"auth_user_grant_role,omitempty"` + AuthUserRevokeRole *AuthUserRevokeRoleRequest `protobuf:"bytes,1105,opt,name=auth_user_revoke_role,json=authUserRevokeRole" json:"auth_user_revoke_role,omitempty"` + AuthUserList *AuthUserListRequest `protobuf:"bytes,1106,opt,name=auth_user_list,json=authUserList" json:"auth_user_list,omitempty"` + AuthRoleList *AuthRoleListRequest `protobuf:"bytes,1107,opt,name=auth_role_list,json=authRoleList" json:"auth_role_list,omitempty"` + AuthRoleAdd *AuthRoleAddRequest `protobuf:"bytes,1200,opt,name=auth_role_add,json=authRoleAdd" json:"auth_role_add,omitempty"` + AuthRoleDelete *AuthRoleDeleteRequest `protobuf:"bytes,1201,opt,name=auth_role_delete,json=authRoleDelete" json:"auth_role_delete,omitempty"` + AuthRoleGet *AuthRoleGetRequest `protobuf:"bytes,1202,opt,name=auth_role_get,json=authRoleGet" json:"auth_role_get,omitempty"` + AuthRoleGrantPermission *AuthRoleGrantPermissionRequest `protobuf:"bytes,1203,opt,name=auth_role_grant_permission,json=authRoleGrantPermission" json:"auth_role_grant_permission,omitempty"` + AuthRoleRevokePermission *AuthRoleRevokePermissionRequest `protobuf:"bytes,1204,opt,name=auth_role_revoke_permission,json=authRoleRevokePermission" json:"auth_role_revoke_permission,omitempty"` +} + +func (m *InternalRaftRequest) Reset() { *m = InternalRaftRequest{} } +func (m *InternalRaftRequest) String() string { return proto.CompactTextString(m) } +func (*InternalRaftRequest) ProtoMessage() {} +func (*InternalRaftRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{1} } + +type EmptyResponse struct { +} + +func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } +func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } +func (*EmptyResponse) ProtoMessage() {} +func (*EmptyResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{2} } + +// What is the difference between AuthenticateRequest (defined in rpc.proto) and InternalAuthenticateRequest? +// InternalAuthenticateRequest has a member that is filled by etcdserver and shouldn't be user-facing. +// For avoiding misusage the field, we have an internal version of AuthenticateRequest. +type InternalAuthenticateRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + // simple_token is generated in API layer (etcdserver/v3_server.go) + SimpleToken string `protobuf:"bytes,3,opt,name=simple_token,json=simpleToken,proto3" json:"simple_token,omitempty"` +} + +func (m *InternalAuthenticateRequest) Reset() { *m = InternalAuthenticateRequest{} } +func (m *InternalAuthenticateRequest) String() string { return proto.CompactTextString(m) } +func (*InternalAuthenticateRequest) ProtoMessage() {} +func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int) { + return fileDescriptorRaftInternal, []int{3} +} + +func init() { + proto.RegisterType((*RequestHeader)(nil), "etcdserverpb.RequestHeader") + proto.RegisterType((*InternalRaftRequest)(nil), "etcdserverpb.InternalRaftRequest") + proto.RegisterType((*EmptyResponse)(nil), "etcdserverpb.EmptyResponse") + proto.RegisterType((*InternalAuthenticateRequest)(nil), "etcdserverpb.InternalAuthenticateRequest") +} +func (m *RequestHeader) 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 *RequestHeader) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.ID)) + } + if len(m.Username) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRaftInternal(data, i, uint64(len(m.Username))) + i += copy(data[i:], m.Username) + } + return i, nil +} + +func (m *InternalRaftRequest) 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 *InternalRaftRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.ID)) + } + if m.V2 != nil { + data[i] = 0x12 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.V2.Size())) + n1, err := m.V2.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.Range != nil { + data[i] = 0x1a + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Range.Size())) + n2, err := m.Range.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.Put != nil { + data[i] = 0x22 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Put.Size())) + n3, err := m.Put.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.DeleteRange != nil { + data[i] = 0x2a + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.DeleteRange.Size())) + n4, err := m.DeleteRange.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.Txn != nil { + data[i] = 0x32 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Txn.Size())) + n5, err := m.Txn.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.Compaction != nil { + data[i] = 0x3a + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Compaction.Size())) + n6, err := m.Compaction.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.LeaseGrant != nil { + data[i] = 0x42 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.LeaseGrant.Size())) + n7, err := m.LeaseGrant.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.LeaseRevoke != nil { + data[i] = 0x4a + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.LeaseRevoke.Size())) + n8, err := m.LeaseRevoke.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + } + if m.Alarm != nil { + data[i] = 0x52 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Alarm.Size())) + n9, err := m.Alarm.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + } + if m.Header != nil { + data[i] = 0xa2 + i++ + data[i] = 0x6 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Header.Size())) + n10, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n10 + } + if m.AuthEnable != nil { + data[i] = 0xc2 + i++ + data[i] = 0x3e + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthEnable.Size())) + n11, err := m.AuthEnable.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.AuthDisable != nil { + data[i] = 0x9a + i++ + data[i] = 0x3f + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthDisable.Size())) + n12, err := m.AuthDisable.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.Authenticate != nil { + data[i] = 0xa2 + i++ + data[i] = 0x3f + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.Authenticate.Size())) + n13, err := m.Authenticate.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.AuthUserAdd != nil { + data[i] = 0xe2 + i++ + data[i] = 0x44 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserAdd.Size())) + n14, err := m.AuthUserAdd.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.AuthUserDelete != nil { + data[i] = 0xea + i++ + data[i] = 0x44 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserDelete.Size())) + n15, err := m.AuthUserDelete.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if m.AuthUserGet != nil { + data[i] = 0xf2 + i++ + data[i] = 0x44 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserGet.Size())) + n16, err := m.AuthUserGet.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n16 + } + if m.AuthUserChangePassword != nil { + data[i] = 0xfa + i++ + data[i] = 0x44 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserChangePassword.Size())) + n17, err := m.AuthUserChangePassword.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n17 + } + if m.AuthUserGrantRole != nil { + data[i] = 0x82 + i++ + data[i] = 0x45 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserGrantRole.Size())) + n18, err := m.AuthUserGrantRole.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n18 + } + if m.AuthUserRevokeRole != nil { + data[i] = 0x8a + i++ + data[i] = 0x45 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserRevokeRole.Size())) + n19, err := m.AuthUserRevokeRole.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n19 + } + if m.AuthUserList != nil { + data[i] = 0x92 + i++ + data[i] = 0x45 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthUserList.Size())) + n20, err := m.AuthUserList.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n20 + } + if m.AuthRoleList != nil { + data[i] = 0x9a + i++ + data[i] = 0x45 + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleList.Size())) + n21, err := m.AuthRoleList.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n21 + } + if m.AuthRoleAdd != nil { + data[i] = 0x82 + i++ + data[i] = 0x4b + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleAdd.Size())) + n22, err := m.AuthRoleAdd.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n22 + } + if m.AuthRoleDelete != nil { + data[i] = 0x8a + i++ + data[i] = 0x4b + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleDelete.Size())) + n23, err := m.AuthRoleDelete.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n23 + } + if m.AuthRoleGet != nil { + data[i] = 0x92 + i++ + data[i] = 0x4b + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleGet.Size())) + n24, err := m.AuthRoleGet.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n24 + } + if m.AuthRoleGrantPermission != nil { + data[i] = 0x9a + i++ + data[i] = 0x4b + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleGrantPermission.Size())) + n25, err := m.AuthRoleGrantPermission.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n25 + } + if m.AuthRoleRevokePermission != nil { + data[i] = 0xa2 + i++ + data[i] = 0x4b + i++ + i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleRevokePermission.Size())) + n26, err := m.AuthRoleRevokePermission.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n26 + } + return i, nil +} + +func (m *EmptyResponse) 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 *EmptyResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *InternalAuthenticateRequest) 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 *InternalAuthenticateRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRaftInternal(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.Password) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRaftInternal(data, i, uint64(len(m.Password))) + i += copy(data[i:], m.Password) + } + if len(m.SimpleToken) > 0 { + data[i] = 0x1a + i++ + i = encodeVarintRaftInternal(data, i, uint64(len(m.SimpleToken))) + i += copy(data[i:], m.SimpleToken) + } + return i, nil +} + +func encodeFixed64RaftInternal(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 encodeFixed32RaftInternal(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 encodeVarintRaftInternal(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 *RequestHeader) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRaftInternal(uint64(m.ID)) + } + l = len(m.Username) + if l > 0 { + n += 1 + l + sovRaftInternal(uint64(l)) + } + return n +} + +func (m *InternalRaftRequest) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRaftInternal(uint64(m.ID)) + } + if m.V2 != nil { + l = m.V2.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.Put != nil { + l = m.Put.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.DeleteRange != nil { + l = m.DeleteRange.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.Txn != nil { + l = m.Txn.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.Compaction != nil { + l = m.Compaction.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.LeaseGrant != nil { + l = m.LeaseGrant.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.LeaseRevoke != nil { + l = m.LeaseRevoke.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.Alarm != nil { + l = m.Alarm.Size() + n += 1 + l + sovRaftInternal(uint64(l)) + } + if m.Header != nil { + l = m.Header.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthEnable != nil { + l = m.AuthEnable.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthDisable != nil { + l = m.AuthDisable.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.Authenticate != nil { + l = m.Authenticate.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserAdd != nil { + l = m.AuthUserAdd.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserDelete != nil { + l = m.AuthUserDelete.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserGet != nil { + l = m.AuthUserGet.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserChangePassword != nil { + l = m.AuthUserChangePassword.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserGrantRole != nil { + l = m.AuthUserGrantRole.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserRevokeRole != nil { + l = m.AuthUserRevokeRole.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthUserList != nil { + l = m.AuthUserList.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthRoleList != nil { + l = m.AuthRoleList.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthRoleAdd != nil { + l = m.AuthRoleAdd.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthRoleDelete != nil { + l = m.AuthRoleDelete.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthRoleGet != nil { + l = m.AuthRoleGet.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthRoleGrantPermission != nil { + l = m.AuthRoleGrantPermission.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + if m.AuthRoleRevokePermission != nil { + l = m.AuthRoleRevokePermission.Size() + n += 2 + l + sovRaftInternal(uint64(l)) + } + return n +} + +func (m *EmptyResponse) Size() (n int) { + var l int + _ = l + return n +} + +func (m *InternalAuthenticateRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRaftInternal(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovRaftInternal(uint64(l)) + } + l = len(m.SimpleToken) + if l > 0 { + n += 1 + l + sovRaftInternal(uint64(l)) + } + return n +} + +func sovRaftInternal(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozRaftInternal(x uint64) (n int) { + return sovRaftInternal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *RequestHeader) 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 ErrIntOverflowRaftInternal + } + 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: RequestHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + 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 ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRaftInternal(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRaftInternal + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InternalRaftRequest) 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 ErrIntOverflowRaftInternal + } + 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: InternalRaftRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InternalRaftRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field V2", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.V2 == nil { + m.V2 = &Request{} + } + if err := m.V2.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Range == nil { + m.Range = &RangeRequest{} + } + if err := m.Range.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Put", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Put == nil { + m.Put = &PutRequest{} + } + if err := m.Put.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteRange == nil { + m.DeleteRange = &DeleteRangeRequest{} + } + if err := m.DeleteRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Txn == nil { + m.Txn = &TxnRequest{} + } + if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Compaction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Compaction == nil { + m.Compaction = &CompactionRequest{} + } + if err := m.Compaction.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LeaseGrant", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LeaseGrant == nil { + m.LeaseGrant = &LeaseGrantRequest{} + } + if err := m.LeaseGrant.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LeaseRevoke", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LeaseRevoke == nil { + m.LeaseRevoke = &LeaseRevokeRequest{} + } + if err := m.LeaseRevoke.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Alarm == nil { + m.Alarm = &AlarmRequest{} + } + if err := m.Alarm.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1000: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthEnable", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthEnable == nil { + m.AuthEnable = &AuthEnableRequest{} + } + if err := m.AuthEnable.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1011: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthDisable", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthDisable == nil { + m.AuthDisable = &AuthDisableRequest{} + } + if err := m.AuthDisable.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1012: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authenticate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Authenticate == nil { + m.Authenticate = &InternalAuthenticateRequest{} + } + if err := m.Authenticate.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserAdd == nil { + m.AuthUserAdd = &AuthUserAddRequest{} + } + if err := m.AuthUserAdd.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserDelete", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserDelete == nil { + m.AuthUserDelete = &AuthUserDeleteRequest{} + } + if err := m.AuthUserDelete.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserGet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserGet == nil { + m.AuthUserGet = &AuthUserGetRequest{} + } + if err := m.AuthUserGet.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserChangePassword", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserChangePassword == nil { + m.AuthUserChangePassword = &AuthUserChangePasswordRequest{} + } + if err := m.AuthUserChangePassword.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1104: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserGrantRole", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserGrantRole == nil { + m.AuthUserGrantRole = &AuthUserGrantRoleRequest{} + } + if err := m.AuthUserGrantRole.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1105: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserRevokeRole", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserRevokeRole == nil { + m.AuthUserRevokeRole = &AuthUserRevokeRoleRequest{} + } + if err := m.AuthUserRevokeRole.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1106: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUserList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthUserList == nil { + m.AuthUserList = &AuthUserListRequest{} + } + if err := m.AuthUserList.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1107: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthRoleList == nil { + m.AuthRoleList = &AuthRoleListRequest{} + } + if err := m.AuthRoleList.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthRoleAdd == nil { + m.AuthRoleAdd = &AuthRoleAddRequest{} + } + if err := m.AuthRoleAdd.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1201: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleDelete", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthRoleDelete == nil { + m.AuthRoleDelete = &AuthRoleDeleteRequest{} + } + if err := m.AuthRoleDelete.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1202: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleGet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthRoleGet == nil { + m.AuthRoleGet = &AuthRoleGetRequest{} + } + if err := m.AuthRoleGet.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1203: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleGrantPermission", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthRoleGrantPermission == nil { + m.AuthRoleGrantPermission = &AuthRoleGrantPermissionRequest{} + } + if err := m.AuthRoleGrantPermission.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 1204: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleRevokePermission", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthRoleRevokePermission == nil { + m.AuthRoleRevokePermission = &AuthRoleRevokePermissionRequest{} + } + if err := m.AuthRoleRevokePermission.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRaftInternal(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRaftInternal + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EmptyResponse) 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 ErrIntOverflowRaftInternal + } + 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: EmptyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EmptyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRaftInternal(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRaftInternal + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InternalAuthenticateRequest) 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 ErrIntOverflowRaftInternal + } + 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: InternalAuthenticateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InternalAuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + 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 ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + 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 ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SimpleToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRaftInternal + } + 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 ErrInvalidLengthRaftInternal + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SimpleToken = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRaftInternal(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRaftInternal + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRaftInternal(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, ErrIntOverflowRaftInternal + } + 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, ErrIntOverflowRaftInternal + } + 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, ErrIntOverflowRaftInternal + } + 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, ErrInvalidLengthRaftInternal + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRaftInternal + } + 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 := skipRaftInternal(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 ( + ErrInvalidLengthRaftInternal = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRaftInternal = fmt.Errorf("proto: integer overflow") +) + +var fileDescriptorRaftInternal = []byte{ + // 824 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x96, 0xdd, 0x4e, 0xdb, 0x48, + 0x14, 0xc7, 0x49, 0xf8, 0xcc, 0x24, 0x64, 0xd9, 0x01, 0x76, 0x67, 0x83, 0x94, 0x85, 0xac, 0x76, + 0x97, 0x7e, 0xd1, 0x0a, 0x2e, 0x7b, 0xd1, 0xa6, 0x04, 0x01, 0x12, 0x42, 0xc8, 0xa2, 0x52, 0xa5, + 0x5e, 0x58, 0x43, 0x7c, 0x48, 0x5c, 0x1c, 0xdb, 0xb5, 0x27, 0x29, 0x7d, 0x93, 0x3e, 0x46, 0xbf, + 0x1e, 0x82, 0x8b, 0x7e, 0xd0, 0xf6, 0x05, 0x5a, 0x7a, 0xd3, 0xab, 0xde, 0xb4, 0x0f, 0x50, 0xcd, + 0x87, 0xc7, 0x71, 0x32, 0xe1, 0xce, 0x3e, 0xe7, 0x7f, 0x7e, 0xe7, 0x4c, 0xe6, 0x3f, 0x9e, 0xa0, + 0xf9, 0x88, 0x1e, 0x33, 0xdb, 0xf5, 0x19, 0x44, 0x3e, 0xf5, 0xd6, 0xc2, 0x28, 0x60, 0x01, 0x2e, + 0x01, 0x6b, 0x3a, 0x31, 0x44, 0x3d, 0x88, 0xc2, 0xa3, 0xca, 0x42, 0x2b, 0x68, 0x05, 0x22, 0x71, + 0x93, 0x3f, 0x49, 0x4d, 0x65, 0x2e, 0xd5, 0xa8, 0x48, 0x21, 0x0a, 0x9b, 0xf2, 0xb1, 0x76, 0x1b, + 0xcd, 0x5a, 0xf0, 0xb8, 0x0b, 0x31, 0xdb, 0x01, 0xea, 0x40, 0x84, 0xcb, 0x28, 0xbf, 0xdb, 0x20, + 0xb9, 0xe5, 0xdc, 0xea, 0x84, 0x95, 0x77, 0x1b, 0xb8, 0x82, 0x66, 0xba, 0x31, 0x6f, 0xd9, 0x01, + 0x92, 0x5f, 0xce, 0xad, 0x16, 0x2c, 0xfd, 0x5e, 0xfb, 0x5e, 0x46, 0xf3, 0xbb, 0x6a, 0x20, 0x8b, + 0x1e, 0x33, 0x45, 0x1a, 0x62, 0xfc, 0x8b, 0xf2, 0xbd, 0x75, 0x51, 0x5d, 0x5c, 0x5f, 0x5c, 0xeb, + 0x1f, 0x79, 0x4d, 0x95, 0x58, 0xf9, 0xde, 0x3a, 0xbe, 0x85, 0x26, 0x23, 0xea, 0xb7, 0x80, 0x8c, + 0x0b, 0x65, 0x65, 0x40, 0xc9, 0x53, 0x89, 0x5c, 0x0a, 0xf1, 0x55, 0x34, 0x1e, 0x76, 0x19, 0x99, + 0x10, 0x7a, 0x92, 0xd5, 0x1f, 0x74, 0x93, 0x79, 0x2c, 0x2e, 0xc2, 0x9b, 0xa8, 0xe4, 0x80, 0x07, + 0x0c, 0x6c, 0xd9, 0x64, 0x52, 0x14, 0x2d, 0x67, 0x8b, 0x1a, 0x42, 0x91, 0x69, 0x55, 0x74, 0xd2, + 0x18, 0x6f, 0xc8, 0x4e, 0x7d, 0x32, 0x65, 0x6a, 0x78, 0x78, 0xea, 0xeb, 0x86, 0xec, 0xd4, 0xc7, + 0x77, 0x10, 0x6a, 0x06, 0x9d, 0x90, 0x36, 0x99, 0x1b, 0xf8, 0x64, 0x5a, 0x94, 0xfc, 0x9d, 0x2d, + 0xd9, 0xd4, 0xf9, 0xa4, 0xb2, 0xaf, 0x04, 0xdf, 0x45, 0x45, 0x0f, 0x68, 0x0c, 0x76, 0x2b, 0xa2, + 0x3e, 0x23, 0x33, 0x26, 0xc2, 0x1e, 0x17, 0x6c, 0xf3, 0xbc, 0x26, 0x78, 0x3a, 0xc4, 0xd7, 0x2c, + 0x09, 0x11, 0xf4, 0x82, 0x13, 0x20, 0x05, 0xd3, 0x9a, 0x05, 0xc2, 0x12, 0x02, 0xbd, 0x66, 0x2f, + 0x8d, 0xf1, 0x6d, 0xa1, 0x1e, 0x8d, 0x3a, 0x04, 0x99, 0xb6, 0xa5, 0xce, 0x53, 0x7a, 0x5b, 0x84, + 0x10, 0x6f, 0xa0, 0xa9, 0xb6, 0x70, 0x13, 0x71, 0x44, 0xc9, 0x92, 0x71, 0xcf, 0xa5, 0xe1, 0x2c, + 0x25, 0xc5, 0x75, 0x54, 0xa4, 0x5d, 0xd6, 0xb6, 0xc1, 0xa7, 0x47, 0x1e, 0x90, 0x6f, 0xc6, 0x1f, + 0xac, 0xde, 0x65, 0xed, 0x2d, 0x21, 0xd0, 0xcb, 0xa5, 0x3a, 0x84, 0x1b, 0xa8, 0x24, 0x10, 0x8e, + 0x1b, 0x0b, 0xc6, 0x8f, 0x69, 0xd3, 0x7a, 0x39, 0xa3, 0x21, 0x15, 0x7a, 0xbd, 0x34, 0x8d, 0xe1, + 0x7d, 0x49, 0x01, 0x9f, 0xb9, 0x4d, 0xca, 0x80, 0xfc, 0x94, 0x94, 0x2b, 0x59, 0x4a, 0xe2, 0xfb, + 0x7a, 0x9f, 0x34, 0xc1, 0x65, 0xea, 0xf1, 0x16, 0x9a, 0x15, 0x53, 0xf1, 0x63, 0x63, 0x53, 0xc7, + 0x21, 0x6f, 0x66, 0x46, 0x8d, 0x75, 0x3f, 0x86, 0xa8, 0xee, 0x38, 0x99, 0xb1, 0x54, 0x0c, 0xef, + 0xa3, 0xb9, 0x14, 0x23, 0x3d, 0x49, 0xde, 0x4a, 0xd2, 0x3f, 0x66, 0x92, 0x32, 0xb3, 0x82, 0x95, + 0x69, 0x26, 0x9c, 0x1d, 0xab, 0x05, 0x8c, 0xbc, 0xbb, 0x74, 0xac, 0x6d, 0x60, 0x43, 0x63, 0x6d, + 0x03, 0xc3, 0x2d, 0xf4, 0x57, 0x8a, 0x69, 0xb6, 0xf9, 0x29, 0xb1, 0x43, 0x1a, 0xc7, 0x4f, 0x82, + 0xc8, 0x21, 0xef, 0x25, 0xf2, 0x9a, 0x19, 0xb9, 0x29, 0xd4, 0x07, 0x4a, 0x9c, 0xd0, 0xff, 0xa0, + 0xc6, 0x34, 0x7e, 0x80, 0x16, 0xfa, 0xe6, 0xe5, 0xf6, 0xb6, 0xa3, 0xc0, 0x03, 0x72, 0x2e, 0x7b, + 0xfc, 0x37, 0x62, 0x6c, 0x71, 0x34, 0x82, 0x74, 0xab, 0x7f, 0xa7, 0x83, 0x19, 0xfc, 0x10, 0x2d, + 0xa6, 0x64, 0x79, 0x52, 0x24, 0xfa, 0x83, 0x44, 0xff, 0x6f, 0x46, 0xab, 0x23, 0xd3, 0xc7, 0xc6, + 0x74, 0x28, 0x85, 0x77, 0x50, 0x39, 0x85, 0x7b, 0x6e, 0xcc, 0xc8, 0x47, 0x49, 0x5d, 0x31, 0x53, + 0xf7, 0xdc, 0x98, 0x65, 0x7c, 0x94, 0x04, 0x35, 0x89, 0x8f, 0x26, 0x49, 0x9f, 0x46, 0x92, 0x78, + 0xeb, 0x21, 0x52, 0x12, 0xd4, 0x5b, 0x2f, 0x48, 0xdc, 0x91, 0xcf, 0x0b, 0xa3, 0xb6, 0x9e, 0xd7, + 0x0c, 0x3a, 0x52, 0xc5, 0xb4, 0x23, 0x05, 0x46, 0x39, 0xf2, 0x45, 0x61, 0x94, 0x23, 0x79, 0x95, + 0xc1, 0x91, 0x69, 0x38, 0x3b, 0x16, 0x77, 0xe4, 0xcb, 0x4b, 0xc7, 0x1a, 0x74, 0xa4, 0x8a, 0xe1, + 0x47, 0xa8, 0xd2, 0x87, 0x11, 0x46, 0x09, 0x21, 0xea, 0xb8, 0x71, 0xcc, 0xbf, 0xc3, 0xaf, 0x24, + 0xf3, 0xfa, 0x08, 0x26, 0x97, 0x1f, 0x68, 0x75, 0xc2, 0xff, 0x93, 0x9a, 0xf3, 0xb8, 0x83, 0x96, + 0xd2, 0x5e, 0xca, 0x3a, 0x7d, 0xcd, 0x5e, 0xcb, 0x66, 0x37, 0xcc, 0xcd, 0xa4, 0x4b, 0x86, 0xbb, + 0x11, 0x3a, 0x42, 0x50, 0xfb, 0x0d, 0xcd, 0x6e, 0x75, 0x42, 0xf6, 0xd4, 0x82, 0x38, 0x0c, 0xfc, + 0x18, 0x6a, 0x21, 0x5a, 0xba, 0xe4, 0x43, 0x84, 0x31, 0x9a, 0x10, 0x17, 0x77, 0x4e, 0x5c, 0xdc, + 0xe2, 0x99, 0x5f, 0xe8, 0xfa, 0x7c, 0xaa, 0x0b, 0x3d, 0x79, 0xc7, 0x2b, 0xa8, 0x14, 0xbb, 0x9d, + 0xd0, 0x03, 0x9b, 0x05, 0x27, 0xe0, 0x8b, 0x8b, 0xb8, 0x60, 0x15, 0x65, 0xec, 0x90, 0x87, 0xee, + 0x2d, 0x9c, 0x7d, 0xa9, 0x8e, 0x9d, 0x5d, 0x54, 0x73, 0xe7, 0x17, 0xd5, 0xdc, 0xe7, 0x8b, 0x6a, + 0xee, 0xd9, 0xd7, 0xea, 0xd8, 0xd1, 0x94, 0xf8, 0x37, 0xb1, 0xf1, 0x2b, 0x00, 0x00, 0xff, 0xff, + 0x54, 0x8c, 0x4a, 0x7f, 0xa5, 0x08, 0x00, 0x00, +} diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.proto b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.proto new file mode 100644 index 0000000000..3ad0d1b378 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.proto @@ -0,0 +1,72 @@ +syntax = "proto3"; +package etcdserverpb; + +import "gogoproto/gogo.proto"; +import "etcdserver.proto"; +import "rpc.proto"; + +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_getters_all) = false; + +message RequestHeader { + uint64 ID = 1; + // username is a username that is associated with an auth token of gRPC connection + string username = 2; +} + +// An InternalRaftRequest is the union of all requests which can be +// sent via raft. +message InternalRaftRequest { + RequestHeader header = 100; + uint64 ID = 1; + + Request v2 = 2; + + RangeRequest range = 3; + PutRequest put = 4; + DeleteRangeRequest delete_range = 5; + TxnRequest txn = 6; + CompactionRequest compaction = 7; + + LeaseGrantRequest lease_grant = 8; + LeaseRevokeRequest lease_revoke = 9; + + AlarmRequest alarm = 10; + + AuthEnableRequest auth_enable = 1000; + AuthDisableRequest auth_disable = 1011; + + InternalAuthenticateRequest authenticate = 1012; + + AuthUserAddRequest auth_user_add = 1100; + AuthUserDeleteRequest auth_user_delete = 1101; + AuthUserGetRequest auth_user_get = 1102; + AuthUserChangePasswordRequest auth_user_change_password = 1103; + AuthUserGrantRoleRequest auth_user_grant_role = 1104; + AuthUserRevokeRoleRequest auth_user_revoke_role = 1105; + AuthUserListRequest auth_user_list = 1106; + AuthRoleListRequest auth_role_list = 1107; + + AuthRoleAddRequest auth_role_add = 1200; + AuthRoleDeleteRequest auth_role_delete = 1201; + AuthRoleGetRequest auth_role_get = 1202; + AuthRoleGrantPermissionRequest auth_role_grant_permission = 1203; + AuthRoleRevokePermissionRequest auth_role_revoke_permission = 1204; +} + +message EmptyResponse { +} + +// What is the difference between AuthenticateRequest (defined in rpc.proto) and InternalAuthenticateRequest? +// InternalAuthenticateRequest has a member that is filled by etcdserver and shouldn't be user-facing. +// For avoiding misusage the field, we have an internal version of AuthenticateRequest. +message InternalAuthenticateRequest { + string name = 1; + string password = 2; + + // simple_token is generated in API layer (etcdserver/v3_server.go) + string simple_token = 3; +} + diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go new file mode 100644 index 0000000000..213d544268 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go @@ -0,0 +1,15327 @@ +// Code generated by protoc-gen-gogo. +// source: rpc.proto +// DO NOT EDIT! + +package etcdserverpb + +import ( + "fmt" + + proto "github.com/golang/protobuf/proto" + + math "math" + + authpb "github.com/coreos/etcd/auth/authpb" + + io "io" +) + +import mvccpb "github.com/coreos/etcd/mvcc/mvccpb" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type AlarmType int32 + +const ( + AlarmType_NONE AlarmType = 0 + AlarmType_NOSPACE AlarmType = 1 +) + +var AlarmType_name = map[int32]string{ + 0: "NONE", + 1: "NOSPACE", +} +var AlarmType_value = map[string]int32{ + "NONE": 0, + "NOSPACE": 1, +} + +func (x AlarmType) String() string { + return proto.EnumName(AlarmType_name, int32(x)) +} +func (AlarmType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{0} } + +type RangeRequest_SortOrder int32 + +const ( + RangeRequest_NONE RangeRequest_SortOrder = 0 + RangeRequest_ASCEND RangeRequest_SortOrder = 1 + RangeRequest_DESCEND RangeRequest_SortOrder = 2 +) + +var RangeRequest_SortOrder_name = map[int32]string{ + 0: "NONE", + 1: "ASCEND", + 2: "DESCEND", +} +var RangeRequest_SortOrder_value = map[string]int32{ + "NONE": 0, + "ASCEND": 1, + "DESCEND": 2, +} + +func (x RangeRequest_SortOrder) String() string { + return proto.EnumName(RangeRequest_SortOrder_name, int32(x)) +} +func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1, 0} } + +type RangeRequest_SortTarget int32 + +const ( + RangeRequest_KEY RangeRequest_SortTarget = 0 + RangeRequest_VERSION RangeRequest_SortTarget = 1 + RangeRequest_CREATE RangeRequest_SortTarget = 2 + RangeRequest_MOD RangeRequest_SortTarget = 3 + RangeRequest_VALUE RangeRequest_SortTarget = 4 +) + +var RangeRequest_SortTarget_name = map[int32]string{ + 0: "KEY", + 1: "VERSION", + 2: "CREATE", + 3: "MOD", + 4: "VALUE", +} +var RangeRequest_SortTarget_value = map[string]int32{ + "KEY": 0, + "VERSION": 1, + "CREATE": 2, + "MOD": 3, + "VALUE": 4, +} + +func (x RangeRequest_SortTarget) String() string { + return proto.EnumName(RangeRequest_SortTarget_name, int32(x)) +} +func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1, 1} } + +type Compare_CompareResult int32 + +const ( + Compare_EQUAL Compare_CompareResult = 0 + Compare_GREATER Compare_CompareResult = 1 + Compare_LESS Compare_CompareResult = 2 +) + +var Compare_CompareResult_name = map[int32]string{ + 0: "EQUAL", + 1: "GREATER", + 2: "LESS", +} +var Compare_CompareResult_value = map[string]int32{ + "EQUAL": 0, + "GREATER": 1, + "LESS": 2, +} + +func (x Compare_CompareResult) String() string { + return proto.EnumName(Compare_CompareResult_name, int32(x)) +} +func (Compare_CompareResult) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9, 0} } + +type Compare_CompareTarget int32 + +const ( + Compare_VERSION Compare_CompareTarget = 0 + Compare_CREATE Compare_CompareTarget = 1 + Compare_MOD Compare_CompareTarget = 2 + Compare_VALUE Compare_CompareTarget = 3 +) + +var Compare_CompareTarget_name = map[int32]string{ + 0: "VERSION", + 1: "CREATE", + 2: "MOD", + 3: "VALUE", +} +var Compare_CompareTarget_value = map[string]int32{ + "VERSION": 0, + "CREATE": 1, + "MOD": 2, + "VALUE": 3, +} + +func (x Compare_CompareTarget) String() string { + return proto.EnumName(Compare_CompareTarget_name, int32(x)) +} +func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9, 1} } + +type AlarmRequest_AlarmAction int32 + +const ( + AlarmRequest_GET AlarmRequest_AlarmAction = 0 + AlarmRequest_ACTIVATE AlarmRequest_AlarmAction = 1 + AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2 +) + +var AlarmRequest_AlarmAction_name = map[int32]string{ + 0: "GET", + 1: "ACTIVATE", + 2: "DEACTIVATE", +} +var AlarmRequest_AlarmAction_value = map[string]int32{ + "GET": 0, + "ACTIVATE": 1, + "DEACTIVATE": 2, +} + +func (x AlarmRequest_AlarmAction) String() string { + return proto.EnumName(AlarmRequest_AlarmAction_name, int32(x)) +} +func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{39, 0} +} + +type ResponseHeader struct { + // cluster_id is the ID of the cluster which sent the response. + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + // member_id is the ID of the member which sent the response. + MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` + // revision is the key-value store revision when the request was applied. + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + // raft_term is the raft term when the request was applied. + RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{0} } + +type RangeRequest struct { + // key is the first key for the range. If range_end is not given, the request only looks up key. + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // range_end is the upper bound on the requested range [key, range_end). + // If range_end is '\0', the range is all keys >= key. + // If the range_end is one bit larger than the given key, + // then the range requests get the all keys with the prefix (the given key). + // If both key and range_end are '\0', then range requests returns all keys. + RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` + // limit is a limit on the number of keys returned for the request. + Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // revision is the point-in-time of the key-value store to use for the range. + // If revision is less or equal to zero, the range is over the newest key-value store. + // If the revision has been compacted, ErrCompacted is returned as a response. + Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + // sort_order is the order for returned sorted results. + SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"` + // sort_target is the key-value field to use for sorting. + SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,json=sortTarget,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"` + // serializable sets the range request to use serializable member-local reads. + // Range requests are linearizable by default; linearizable requests have higher + // latency and lower throughput than serializable requests but reflect the current + // consensus of the cluster. For better performance, in exchange for possible stale reads, + // a serializable range request is served locally without needing to reach consensus + // with other nodes in the cluster. + Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"` + // keys_only when set returns only the keys and not the values. + KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"` + // count_only when set returns only the count of the keys in the range. + CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"` +} + +func (m *RangeRequest) Reset() { *m = RangeRequest{} } +func (m *RangeRequest) String() string { return proto.CompactTextString(m) } +func (*RangeRequest) ProtoMessage() {} +func (*RangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1} } + +type RangeResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // kvs is the list of key-value pairs matched by the range request. + // kvs is empty when count is requested. + Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` + // more indicates if there are more keys to return in the requested range. + More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` + // count is set to the number of keys within the range when requested. + Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` +} + +func (m *RangeResponse) Reset() { *m = RangeResponse{} } +func (m *RangeResponse) String() string { return proto.CompactTextString(m) } +func (*RangeResponse) ProtoMessage() {} +func (*RangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{2} } + +func (m *RangeResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue { + if m != nil { + return m.Kvs + } + return nil +} + +type PutRequest struct { + // key is the key, in bytes, to put into the key-value store. + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // value is the value, in bytes, to associate with the key in the key-value store. + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + // lease is the lease ID to associate with the key in the key-value store. A lease + // value of 0 indicates no lease. + Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"` +} + +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{3} } + +type PutResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{4} } + +func (m *PutResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type DeleteRangeRequest struct { + // key is the first key to delete in the range. + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // range_end is the key following the last key to delete for the range [key, range_end). + // If range_end is not given, the range is defined to contain only the key argument. + // If range_end is '\0', the range is all keys greater than or equal to the key argument. + RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` +} + +func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } +func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeRequest) ProtoMessage() {} +func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{5} } + +type DeleteRangeResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // deleted is the number of keys deleted by the delete range request. + Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` +} + +func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } +func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeResponse) ProtoMessage() {} +func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{6} } + +func (m *DeleteRangeResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type RequestOp struct { + // request is a union of request types accepted by a transaction. + // + // Types that are valid to be assigned to Request: + // *RequestOp_RequestRange + // *RequestOp_RequestPut + // *RequestOp_RequestDeleteRange + Request isRequestOp_Request `protobuf_oneof:"request"` +} + +func (m *RequestOp) Reset() { *m = RequestOp{} } +func (m *RequestOp) String() string { return proto.CompactTextString(m) } +func (*RequestOp) ProtoMessage() {} +func (*RequestOp) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{7} } + +type isRequestOp_Request interface { + isRequestOp_Request() + MarshalTo([]byte) (int, error) + Size() int +} + +type RequestOp_RequestRange struct { + RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,oneof"` +} +type RequestOp_RequestPut struct { + RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,oneof"` +} +type RequestOp_RequestDeleteRange struct { + RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,oneof"` +} + +func (*RequestOp_RequestRange) isRequestOp_Request() {} +func (*RequestOp_RequestPut) isRequestOp_Request() {} +func (*RequestOp_RequestDeleteRange) isRequestOp_Request() {} + +func (m *RequestOp) GetRequest() isRequestOp_Request { + if m != nil { + return m.Request + } + return nil +} + +func (m *RequestOp) GetRequestRange() *RangeRequest { + if x, ok := m.GetRequest().(*RequestOp_RequestRange); ok { + return x.RequestRange + } + return nil +} + +func (m *RequestOp) GetRequestPut() *PutRequest { + if x, ok := m.GetRequest().(*RequestOp_RequestPut); ok { + return x.RequestPut + } + return nil +} + +func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest { + if x, ok := m.GetRequest().(*RequestOp_RequestDeleteRange); ok { + return x.RequestDeleteRange + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RequestOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _RequestOp_OneofMarshaler, _RequestOp_OneofUnmarshaler, _RequestOp_OneofSizer, []interface{}{ + (*RequestOp_RequestRange)(nil), + (*RequestOp_RequestPut)(nil), + (*RequestOp_RequestDeleteRange)(nil), + } +} + +func _RequestOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RequestOp) + // request + switch x := m.Request.(type) { + case *RequestOp_RequestRange: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RequestRange); err != nil { + return err + } + case *RequestOp_RequestPut: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RequestPut); err != nil { + return err + } + case *RequestOp_RequestDeleteRange: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RequestDeleteRange); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RequestOp.Request has unexpected type %T", x) + } + return nil +} + +func _RequestOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RequestOp) + switch tag { + case 1: // request.request_range + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RangeRequest) + err := b.DecodeMessage(msg) + m.Request = &RequestOp_RequestRange{msg} + return true, err + case 2: // request.request_put + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(PutRequest) + err := b.DecodeMessage(msg) + m.Request = &RequestOp_RequestPut{msg} + return true, err + case 3: // request.request_delete_range + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(DeleteRangeRequest) + err := b.DecodeMessage(msg) + m.Request = &RequestOp_RequestDeleteRange{msg} + return true, err + default: + return false, nil + } +} + +func _RequestOp_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RequestOp) + // request + switch x := m.Request.(type) { + case *RequestOp_RequestRange: + s := proto.Size(x.RequestRange) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *RequestOp_RequestPut: + s := proto.Size(x.RequestPut) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *RequestOp_RequestDeleteRange: + s := proto.Size(x.RequestDeleteRange) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type ResponseOp struct { + // response is a union of response types returned by a transaction. + // + // Types that are valid to be assigned to Response: + // *ResponseOp_ResponseRange + // *ResponseOp_ResponsePut + // *ResponseOp_ResponseDeleteRange + Response isResponseOp_Response `protobuf_oneof:"response"` +} + +func (m *ResponseOp) Reset() { *m = ResponseOp{} } +func (m *ResponseOp) String() string { return proto.CompactTextString(m) } +func (*ResponseOp) ProtoMessage() {} +func (*ResponseOp) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{8} } + +type isResponseOp_Response interface { + isResponseOp_Response() + MarshalTo([]byte) (int, error) + Size() int +} + +type ResponseOp_ResponseRange struct { + ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,oneof"` +} +type ResponseOp_ResponsePut struct { + ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,oneof"` +} +type ResponseOp_ResponseDeleteRange struct { + ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,oneof"` +} + +func (*ResponseOp_ResponseRange) isResponseOp_Response() {} +func (*ResponseOp_ResponsePut) isResponseOp_Response() {} +func (*ResponseOp_ResponseDeleteRange) isResponseOp_Response() {} + +func (m *ResponseOp) GetResponse() isResponseOp_Response { + if m != nil { + return m.Response + } + return nil +} + +func (m *ResponseOp) GetResponseRange() *RangeResponse { + if x, ok := m.GetResponse().(*ResponseOp_ResponseRange); ok { + return x.ResponseRange + } + return nil +} + +func (m *ResponseOp) GetResponsePut() *PutResponse { + if x, ok := m.GetResponse().(*ResponseOp_ResponsePut); ok { + return x.ResponsePut + } + return nil +} + +func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse { + if x, ok := m.GetResponse().(*ResponseOp_ResponseDeleteRange); ok { + return x.ResponseDeleteRange + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ResponseOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ResponseOp_OneofMarshaler, _ResponseOp_OneofUnmarshaler, _ResponseOp_OneofSizer, []interface{}{ + (*ResponseOp_ResponseRange)(nil), + (*ResponseOp_ResponsePut)(nil), + (*ResponseOp_ResponseDeleteRange)(nil), + } +} + +func _ResponseOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ResponseOp) + // response + switch x := m.Response.(type) { + case *ResponseOp_ResponseRange: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ResponseRange); err != nil { + return err + } + case *ResponseOp_ResponsePut: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ResponsePut); err != nil { + return err + } + case *ResponseOp_ResponseDeleteRange: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ResponseDeleteRange); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ResponseOp.Response has unexpected type %T", x) + } + return nil +} + +func _ResponseOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ResponseOp) + switch tag { + case 1: // response.response_range + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RangeResponse) + err := b.DecodeMessage(msg) + m.Response = &ResponseOp_ResponseRange{msg} + return true, err + case 2: // response.response_put + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(PutResponse) + err := b.DecodeMessage(msg) + m.Response = &ResponseOp_ResponsePut{msg} + return true, err + case 3: // response.response_delete_range + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(DeleteRangeResponse) + err := b.DecodeMessage(msg) + m.Response = &ResponseOp_ResponseDeleteRange{msg} + return true, err + default: + return false, nil + } +} + +func _ResponseOp_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ResponseOp) + // response + switch x := m.Response.(type) { + case *ResponseOp_ResponseRange: + s := proto.Size(x.ResponseRange) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ResponseOp_ResponsePut: + s := proto.Size(x.ResponsePut) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ResponseOp_ResponseDeleteRange: + s := proto.Size(x.ResponseDeleteRange) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type Compare struct { + // result is logical comparison operation for this comparison. + Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"` + // target is the key-value field to inspect for the comparison. + Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"` + // key is the subject key for the comparison operation. + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // Types that are valid to be assigned to TargetUnion: + // *Compare_Version + // *Compare_CreateRevision + // *Compare_ModRevision + // *Compare_Value + TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"` +} + +func (m *Compare) Reset() { *m = Compare{} } +func (m *Compare) String() string { return proto.CompactTextString(m) } +func (*Compare) ProtoMessage() {} +func (*Compare) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9} } + +type isCompare_TargetUnion interface { + isCompare_TargetUnion() + MarshalTo([]byte) (int, error) + Size() int +} + +type Compare_Version struct { + Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"` +} +type Compare_CreateRevision struct { + CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"` +} +type Compare_ModRevision struct { + ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"` +} +type Compare_Value struct { + Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"` +} + +func (*Compare_Version) isCompare_TargetUnion() {} +func (*Compare_CreateRevision) isCompare_TargetUnion() {} +func (*Compare_ModRevision) isCompare_TargetUnion() {} +func (*Compare_Value) isCompare_TargetUnion() {} + +func (m *Compare) GetTargetUnion() isCompare_TargetUnion { + if m != nil { + return m.TargetUnion + } + return nil +} + +func (m *Compare) GetVersion() int64 { + if x, ok := m.GetTargetUnion().(*Compare_Version); ok { + return x.Version + } + return 0 +} + +func (m *Compare) GetCreateRevision() int64 { + if x, ok := m.GetTargetUnion().(*Compare_CreateRevision); ok { + return x.CreateRevision + } + return 0 +} + +func (m *Compare) GetModRevision() int64 { + if x, ok := m.GetTargetUnion().(*Compare_ModRevision); ok { + return x.ModRevision + } + return 0 +} + +func (m *Compare) GetValue() []byte { + if x, ok := m.GetTargetUnion().(*Compare_Value); ok { + return x.Value + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Compare) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Compare_OneofMarshaler, _Compare_OneofUnmarshaler, _Compare_OneofSizer, []interface{}{ + (*Compare_Version)(nil), + (*Compare_CreateRevision)(nil), + (*Compare_ModRevision)(nil), + (*Compare_Value)(nil), + } +} + +func _Compare_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Compare) + // target_union + switch x := m.TargetUnion.(type) { + case *Compare_Version: + _ = b.EncodeVarint(4<<3 | proto.WireVarint) + _ = b.EncodeVarint(uint64(x.Version)) + case *Compare_CreateRevision: + _ = b.EncodeVarint(5<<3 | proto.WireVarint) + _ = b.EncodeVarint(uint64(x.CreateRevision)) + case *Compare_ModRevision: + _ = b.EncodeVarint(6<<3 | proto.WireVarint) + _ = b.EncodeVarint(uint64(x.ModRevision)) + case *Compare_Value: + _ = b.EncodeVarint(7<<3 | proto.WireBytes) + _ = b.EncodeRawBytes(x.Value) + case nil: + default: + return fmt.Errorf("Compare.TargetUnion has unexpected type %T", x) + } + return nil +} + +func _Compare_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Compare) + switch tag { + case 4: // target_union.version + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.TargetUnion = &Compare_Version{int64(x)} + return true, err + case 5: // target_union.create_revision + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.TargetUnion = &Compare_CreateRevision{int64(x)} + return true, err + case 6: // target_union.mod_revision + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.TargetUnion = &Compare_ModRevision{int64(x)} + return true, err + case 7: // target_union.value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.TargetUnion = &Compare_Value{x} + return true, err + default: + return false, nil + } +} + +func _Compare_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Compare) + // target_union + switch x := m.TargetUnion.(type) { + case *Compare_Version: + n += proto.SizeVarint(4<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.Version)) + case *Compare_CreateRevision: + n += proto.SizeVarint(5<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.CreateRevision)) + case *Compare_ModRevision: + n += proto.SizeVarint(6<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.ModRevision)) + case *Compare_Value: + n += proto.SizeVarint(7<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Value))) + n += len(x.Value) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// From google paxosdb paper: +// Our implementation hinges around a powerful primitive which we call MultiOp. All other database +// operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically +// and consists of three components: +// 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check +// for the absence or presence of a value, or compare with a given value. Two different tests in the guard +// may apply to the same or different entries in the database. All tests in the guard are applied and +// MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise +// it executes f op (see item 3 below). +// 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or +// lookup operation, and applies to a single database entry. Two different operations in the list may apply +// to the same or different entries in the database. These operations are executed +// if guard evaluates to +// true. +// 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false. +type TxnRequest struct { + // compare is a list of predicates representing a conjunction of terms. + // If the comparisons succeed, then the success requests will be processed in order, + // and the response will contain their respective responses in order. + // If the comparisons fail, then the failure requests will be processed in order, + // and the response will contain their respective responses in order. + Compare []*Compare `protobuf:"bytes,1,rep,name=compare" json:"compare,omitempty"` + // success is a list of requests which will be applied when compare evaluates to true. + Success []*RequestOp `protobuf:"bytes,2,rep,name=success" json:"success,omitempty"` + // failure is a list of requests which will be applied when compare evaluates to false. + Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure" json:"failure,omitempty"` +} + +func (m *TxnRequest) Reset() { *m = TxnRequest{} } +func (m *TxnRequest) String() string { return proto.CompactTextString(m) } +func (*TxnRequest) ProtoMessage() {} +func (*TxnRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{10} } + +func (m *TxnRequest) GetCompare() []*Compare { + if m != nil { + return m.Compare + } + return nil +} + +func (m *TxnRequest) GetSuccess() []*RequestOp { + if m != nil { + return m.Success + } + return nil +} + +func (m *TxnRequest) GetFailure() []*RequestOp { + if m != nil { + return m.Failure + } + return nil +} + +type TxnResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // succeeded is set to true if the compare evaluated to true or false otherwise. + Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` + // responses is a list of responses corresponding to the results from applying + // success if succeeded is true or failure if succeeded is false. + Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses" json:"responses,omitempty"` +} + +func (m *TxnResponse) Reset() { *m = TxnResponse{} } +func (m *TxnResponse) String() string { return proto.CompactTextString(m) } +func (*TxnResponse) ProtoMessage() {} +func (*TxnResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{11} } + +func (m *TxnResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TxnResponse) GetResponses() []*ResponseOp { + if m != nil { + return m.Responses + } + return nil +} + +// CompactionRequest compacts the key-value store up to a given revision. All superseded keys +// with a revision less than the compaction revision will be removed. +type CompactionRequest struct { + // revision is the key-value store revision for the compaction operation. + Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` + // physical is set so the RPC will wait until the compaction is physically + // applied to the local database such that compacted entries are totally + // removed from the backend database. + Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"` +} + +func (m *CompactionRequest) Reset() { *m = CompactionRequest{} } +func (m *CompactionRequest) String() string { return proto.CompactTextString(m) } +func (*CompactionRequest) ProtoMessage() {} +func (*CompactionRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{12} } + +type CompactionResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *CompactionResponse) Reset() { *m = CompactionResponse{} } +func (m *CompactionResponse) String() string { return proto.CompactTextString(m) } +func (*CompactionResponse) ProtoMessage() {} +func (*CompactionResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{13} } + +func (m *CompactionResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type HashRequest struct { +} + +func (m *HashRequest) Reset() { *m = HashRequest{} } +func (m *HashRequest) String() string { return proto.CompactTextString(m) } +func (*HashRequest) ProtoMessage() {} +func (*HashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{14} } + +type HashResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // hash is the hash value computed from the responding member's key-value store. + Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *HashResponse) Reset() { *m = HashResponse{} } +func (m *HashResponse) String() string { return proto.CompactTextString(m) } +func (*HashResponse) ProtoMessage() {} +func (*HashResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{15} } + +func (m *HashResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type SnapshotRequest struct { +} + +func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } +func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } +func (*SnapshotRequest) ProtoMessage() {} +func (*SnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{16} } + +type SnapshotResponse struct { + // header has the current key-value store information. The first header in the snapshot + // stream indicates the point in time of the snapshot. + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // remaining_bytes is the number of blob bytes to be sent after this message + RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"` + // blob contains the next chunk of the snapshot in the snapshot stream. + Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` +} + +func (m *SnapshotResponse) Reset() { *m = SnapshotResponse{} } +func (m *SnapshotResponse) String() string { return proto.CompactTextString(m) } +func (*SnapshotResponse) ProtoMessage() {} +func (*SnapshotResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{17} } + +func (m *SnapshotResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type WatchRequest struct { + // request_union is a request to either create a new watcher or cancel an existing watcher. + // + // Types that are valid to be assigned to RequestUnion: + // *WatchRequest_CreateRequest + // *WatchRequest_CancelRequest + RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"` +} + +func (m *WatchRequest) Reset() { *m = WatchRequest{} } +func (m *WatchRequest) String() string { return proto.CompactTextString(m) } +func (*WatchRequest) ProtoMessage() {} +func (*WatchRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{18} } + +type isWatchRequest_RequestUnion interface { + isWatchRequest_RequestUnion() + MarshalTo([]byte) (int, error) + Size() int +} + +type WatchRequest_CreateRequest struct { + CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,oneof"` +} +type WatchRequest_CancelRequest struct { + CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,oneof"` +} + +func (*WatchRequest_CreateRequest) isWatchRequest_RequestUnion() {} +func (*WatchRequest_CancelRequest) isWatchRequest_RequestUnion() {} + +func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion { + if m != nil { + return m.RequestUnion + } + return nil +} + +func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest { + if x, ok := m.GetRequestUnion().(*WatchRequest_CreateRequest); ok { + return x.CreateRequest + } + return nil +} + +func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest { + if x, ok := m.GetRequestUnion().(*WatchRequest_CancelRequest); ok { + return x.CancelRequest + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{ + (*WatchRequest_CreateRequest)(nil), + (*WatchRequest_CancelRequest)(nil), + } +} + +func _WatchRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*WatchRequest) + // request_union + switch x := m.RequestUnion.(type) { + case *WatchRequest_CreateRequest: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CreateRequest); err != nil { + return err + } + case *WatchRequest_CancelRequest: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CancelRequest); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("WatchRequest.RequestUnion has unexpected type %T", x) + } + return nil +} + +func _WatchRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WatchRequest) + switch tag { + case 1: // request_union.create_request + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WatchCreateRequest) + err := b.DecodeMessage(msg) + m.RequestUnion = &WatchRequest_CreateRequest{msg} + return true, err + case 2: // request_union.cancel_request + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WatchCancelRequest) + err := b.DecodeMessage(msg) + m.RequestUnion = &WatchRequest_CancelRequest{msg} + return true, err + default: + return false, nil + } +} + +func _WatchRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WatchRequest) + // request_union + switch x := m.RequestUnion.(type) { + case *WatchRequest_CreateRequest: + s := proto.Size(x.CreateRequest) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *WatchRequest_CancelRequest: + s := proto.Size(x.CancelRequest) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type WatchCreateRequest struct { + // key is the key to register for watching. + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // range_end is the end of the range [key, range_end) to watch. If range_end is not given, + // only the key argument is watched. If range_end is equal to '\0', all keys greater than + // or equal to the key argument are watched. + RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` + // start_revision is an optional revision to watch from (inclusive). No start_revision is "now". + StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` + // progress_notify is set so that the etcd server will periodically send a WatchResponse with + // no events to the new watcher if there are no recent events. It is useful when clients + // wish to recover a disconnected watcher starting from a recent known revision. + // The etcd server may decide how often it will send notifications based on current load. + ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"` +} + +func (m *WatchCreateRequest) Reset() { *m = WatchCreateRequest{} } +func (m *WatchCreateRequest) String() string { return proto.CompactTextString(m) } +func (*WatchCreateRequest) ProtoMessage() {} +func (*WatchCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{19} } + +type WatchCancelRequest struct { + // watch_id is the watcher id to cancel so that no more events are transmitted. + WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` +} + +func (m *WatchCancelRequest) Reset() { *m = WatchCancelRequest{} } +func (m *WatchCancelRequest) String() string { return proto.CompactTextString(m) } +func (*WatchCancelRequest) ProtoMessage() {} +func (*WatchCancelRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{20} } + +type WatchResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // watch_id is the ID of the watcher that corresponds to the response. + WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` + // created is set to true if the response is for a create watch request. + // The client should record the watch_id and expect to receive events for + // the created watcher from the same stream. + // All events sent to the created watcher will attach with the same watch_id. + Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` + // canceled is set to true if the response is for a cancel watch request. + // No further events will be sent to the canceled watcher. + Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"` + // compact_revision is set to the minimum index if a watcher tries to watch + // at a compacted index. + // + // This happens when creating a watcher at a compacted revision or the watcher cannot + // catch up with the progress of the key-value store. + // + // The client should treat the watcher as canceled and should not try to create any + // watcher with the same start_revision again. + CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` + Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events" json:"events,omitempty"` +} + +func (m *WatchResponse) Reset() { *m = WatchResponse{} } +func (m *WatchResponse) String() string { return proto.CompactTextString(m) } +func (*WatchResponse) ProtoMessage() {} +func (*WatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{21} } + +func (m *WatchResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *WatchResponse) GetEvents() []*mvccpb.Event { + if m != nil { + return m.Events + } + return nil +} + +type LeaseGrantRequest struct { + // TTL is the advisory time-to-live in seconds. + TTL int64 `protobuf:"varint,1,opt,name=TTL,json=tTL,proto3" json:"TTL,omitempty"` + // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. + ID int64 `protobuf:"varint,2,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` +} + +func (m *LeaseGrantRequest) Reset() { *m = LeaseGrantRequest{} } +func (m *LeaseGrantRequest) String() string { return proto.CompactTextString(m) } +func (*LeaseGrantRequest) ProtoMessage() {} +func (*LeaseGrantRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{22} } + +type LeaseGrantResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // ID is the lease ID for the granted lease. + ID int64 `protobuf:"varint,2,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` + // TTL is the server chosen lease time-to-live in seconds. + TTL int64 `protobuf:"varint,3,opt,name=TTL,json=tTL,proto3" json:"TTL,omitempty"` + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *LeaseGrantResponse) Reset() { *m = LeaseGrantResponse{} } +func (m *LeaseGrantResponse) String() string { return proto.CompactTextString(m) } +func (*LeaseGrantResponse) ProtoMessage() {} +func (*LeaseGrantResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{23} } + +func (m *LeaseGrantResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type LeaseRevokeRequest struct { + // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted. + ID int64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` +} + +func (m *LeaseRevokeRequest) Reset() { *m = LeaseRevokeRequest{} } +func (m *LeaseRevokeRequest) String() string { return proto.CompactTextString(m) } +func (*LeaseRevokeRequest) ProtoMessage() {} +func (*LeaseRevokeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{24} } + +type LeaseRevokeResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *LeaseRevokeResponse) Reset() { *m = LeaseRevokeResponse{} } +func (m *LeaseRevokeResponse) String() string { return proto.CompactTextString(m) } +func (*LeaseRevokeResponse) ProtoMessage() {} +func (*LeaseRevokeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{25} } + +func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type LeaseKeepAliveRequest struct { + // ID is the lease ID for the lease to keep alive. + ID int64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` +} + +func (m *LeaseKeepAliveRequest) Reset() { *m = LeaseKeepAliveRequest{} } +func (m *LeaseKeepAliveRequest) String() string { return proto.CompactTextString(m) } +func (*LeaseKeepAliveRequest) ProtoMessage() {} +func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{26} } + +type LeaseKeepAliveResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // ID is the lease ID from the keep alive request. + ID int64 `protobuf:"varint,2,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` + // TTL is the new time-to-live for the lease. + TTL int64 `protobuf:"varint,3,opt,name=TTL,json=tTL,proto3" json:"TTL,omitempty"` +} + +func (m *LeaseKeepAliveResponse) Reset() { *m = LeaseKeepAliveResponse{} } +func (m *LeaseKeepAliveResponse) String() string { return proto.CompactTextString(m) } +func (*LeaseKeepAliveResponse) ProtoMessage() {} +func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{27} } + +func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type Member struct { + // ID is the member ID for this member. + ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` + // name is the human-readable name of the member. If the member is not started, the name will be an empty string. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // peerURLs is the list of URLs the member exposes to the cluster for communication. + PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs" json:"peerURLs,omitempty"` + // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty. + ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs" json:"clientURLs,omitempty"` +} + +func (m *Member) Reset() { *m = Member{} } +func (m *Member) String() string { return proto.CompactTextString(m) } +func (*Member) ProtoMessage() {} +func (*Member) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{28} } + +type MemberAddRequest struct { + // peerURLs is the list of URLs the added member will use to communicate with the cluster. + PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs" json:"peerURLs,omitempty"` +} + +func (m *MemberAddRequest) Reset() { *m = MemberAddRequest{} } +func (m *MemberAddRequest) String() string { return proto.CompactTextString(m) } +func (*MemberAddRequest) ProtoMessage() {} +func (*MemberAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{29} } + +type MemberAddResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // member is the member information for the added member. + Member *Member `protobuf:"bytes,2,opt,name=member" json:"member,omitempty"` +} + +func (m *MemberAddResponse) Reset() { *m = MemberAddResponse{} } +func (m *MemberAddResponse) String() string { return proto.CompactTextString(m) } +func (*MemberAddResponse) ProtoMessage() {} +func (*MemberAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{30} } + +func (m *MemberAddResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *MemberAddResponse) GetMember() *Member { + if m != nil { + return m.Member + } + return nil +} + +type MemberRemoveRequest struct { + // ID is the member ID of the member to remove. + ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` +} + +func (m *MemberRemoveRequest) Reset() { *m = MemberRemoveRequest{} } +func (m *MemberRemoveRequest) String() string { return proto.CompactTextString(m) } +func (*MemberRemoveRequest) ProtoMessage() {} +func (*MemberRemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{31} } + +type MemberRemoveResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *MemberRemoveResponse) Reset() { *m = MemberRemoveResponse{} } +func (m *MemberRemoveResponse) String() string { return proto.CompactTextString(m) } +func (*MemberRemoveResponse) ProtoMessage() {} +func (*MemberRemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{32} } + +func (m *MemberRemoveResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type MemberUpdateRequest struct { + // ID is the member ID of the member to update. + ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` + // peerURLs is the new list of URLs the member will use to communicate with the cluster. + PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs" json:"peerURLs,omitempty"` +} + +func (m *MemberUpdateRequest) Reset() { *m = MemberUpdateRequest{} } +func (m *MemberUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*MemberUpdateRequest) ProtoMessage() {} +func (*MemberUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{33} } + +type MemberUpdateResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *MemberUpdateResponse) Reset() { *m = MemberUpdateResponse{} } +func (m *MemberUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*MemberUpdateResponse) ProtoMessage() {} +func (*MemberUpdateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{34} } + +func (m *MemberUpdateResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type MemberListRequest struct { +} + +func (m *MemberListRequest) Reset() { *m = MemberListRequest{} } +func (m *MemberListRequest) String() string { return proto.CompactTextString(m) } +func (*MemberListRequest) ProtoMessage() {} +func (*MemberListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{35} } + +type MemberListResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // members is a list of all members associated with the cluster. + Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` +} + +func (m *MemberListResponse) Reset() { *m = MemberListResponse{} } +func (m *MemberListResponse) String() string { return proto.CompactTextString(m) } +func (*MemberListResponse) ProtoMessage() {} +func (*MemberListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{36} } + +func (m *MemberListResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *MemberListResponse) GetMembers() []*Member { + if m != nil { + return m.Members + } + return nil +} + +type DefragmentRequest struct { +} + +func (m *DefragmentRequest) Reset() { *m = DefragmentRequest{} } +func (m *DefragmentRequest) String() string { return proto.CompactTextString(m) } +func (*DefragmentRequest) ProtoMessage() {} +func (*DefragmentRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{37} } + +type DefragmentResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *DefragmentResponse) Reset() { *m = DefragmentResponse{} } +func (m *DefragmentResponse) String() string { return proto.CompactTextString(m) } +func (*DefragmentResponse) ProtoMessage() {} +func (*DefragmentResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{38} } + +func (m *DefragmentResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AlarmRequest struct { + // action is the kind of alarm request to issue. The action + // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a + // raised alarm. + Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"` + // memberID is the ID of the member associated with the alarm. If memberID is 0, the + // alarm request covers all members. + MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"` + // alarm is the type of alarm to consider for this request. + Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` +} + +func (m *AlarmRequest) Reset() { *m = AlarmRequest{} } +func (m *AlarmRequest) String() string { return proto.CompactTextString(m) } +func (*AlarmRequest) ProtoMessage() {} +func (*AlarmRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{39} } + +type AlarmMember struct { + // memberID is the ID of the member associated with the raised alarm. + MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"` + // alarm is the type of alarm which has been raised. + Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` +} + +func (m *AlarmMember) Reset() { *m = AlarmMember{} } +func (m *AlarmMember) String() string { return proto.CompactTextString(m) } +func (*AlarmMember) ProtoMessage() {} +func (*AlarmMember) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{40} } + +type AlarmResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // alarms is a list of alarms associated with the alarm request. + Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms" json:"alarms,omitempty"` +} + +func (m *AlarmResponse) Reset() { *m = AlarmResponse{} } +func (m *AlarmResponse) String() string { return proto.CompactTextString(m) } +func (*AlarmResponse) ProtoMessage() {} +func (*AlarmResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{41} } + +func (m *AlarmResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *AlarmResponse) GetAlarms() []*AlarmMember { + if m != nil { + return m.Alarms + } + return nil +} + +type StatusRequest struct { +} + +func (m *StatusRequest) Reset() { *m = StatusRequest{} } +func (m *StatusRequest) String() string { return proto.CompactTextString(m) } +func (*StatusRequest) ProtoMessage() {} +func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{42} } + +type StatusResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // version is the cluster protocol version used by the responding member. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // dbSize is the size of the backend database, in bytes, of the responding member. + DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"` + // leader is the member ID which the responding member believes is the current leader. + Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` + // raftIndex is the current raft index of the responding member. + RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"` + // raftTerm is the current raft term of the responding member. + RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"` +} + +func (m *StatusResponse) Reset() { *m = StatusResponse{} } +func (m *StatusResponse) String() string { return proto.CompactTextString(m) } +func (*StatusResponse) ProtoMessage() {} +func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{43} } + +func (m *StatusResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthEnableRequest struct { +} + +func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} } +func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) } +func (*AuthEnableRequest) ProtoMessage() {} +func (*AuthEnableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{44} } + +type AuthDisableRequest struct { +} + +func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} } +func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) } +func (*AuthDisableRequest) ProtoMessage() {} +func (*AuthDisableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{45} } + +type AuthenticateRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } +func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } +func (*AuthenticateRequest) ProtoMessage() {} +func (*AuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{46} } + +type AuthUserAddRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} } +func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserAddRequest) ProtoMessage() {} +func (*AuthUserAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{47} } + +type AuthUserGetRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} } +func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserGetRequest) ProtoMessage() {} +func (*AuthUserGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{48} } + +type AuthUserDeleteRequest struct { + // name is the name of the user to delete. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} } +func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserDeleteRequest) ProtoMessage() {} +func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{49} } + +type AuthUserChangePasswordRequest struct { + // name is the name of the user whose password is being changed. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // password is the new password for the user. + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePasswordRequest{} } +func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserChangePasswordRequest) ProtoMessage() {} +func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{50} +} + +type AuthUserGrantRoleRequest struct { + // user is the name of the user which should be granted a given role. + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // role is the name of the role to grant to the user. + Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` +} + +func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} } +func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserGrantRoleRequest) ProtoMessage() {} +func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{51} } + +type AuthUserRevokeRoleRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` +} + +func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} } +func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserRevokeRoleRequest) ProtoMessage() {} +func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{52} } + +type AuthRoleAddRequest struct { + // name is the name of the role to add to the authentication system. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} } +func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) } +func (*AuthRoleAddRequest) ProtoMessage() {} +func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} } + +type AuthRoleGetRequest struct { + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` +} + +func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} } +func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) } +func (*AuthRoleGetRequest) ProtoMessage() {} +func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{54} } + +type AuthUserListRequest struct { +} + +func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} } +func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) } +func (*AuthUserListRequest) ProtoMessage() {} +func (*AuthUserListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{55} } + +type AuthRoleListRequest struct { +} + +func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} } +func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) } +func (*AuthRoleListRequest) ProtoMessage() {} +func (*AuthRoleListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{56} } + +type AuthRoleDeleteRequest struct { + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` +} + +func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} } +func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*AuthRoleDeleteRequest) ProtoMessage() {} +func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{57} } + +type AuthRoleGrantPermissionRequest struct { + // name is the name of the role which will be granted the permission. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // perm is the permission to grant to the role. + Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm" json:"perm,omitempty"` +} + +func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPermissionRequest{} } +func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) } +func (*AuthRoleGrantPermissionRequest) ProtoMessage() {} +func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{58} +} + +func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission { + if m != nil { + return m.Perm + } + return nil +} + +type AuthRoleRevokePermissionRequest struct { + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + RangeEnd string `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` +} + +func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokePermissionRequest{} } +func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) } +func (*AuthRoleRevokePermissionRequest) ProtoMessage() {} +func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{59} +} + +type AuthEnableResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} } +func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) } +func (*AuthEnableResponse) ProtoMessage() {} +func (*AuthEnableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{60} } + +func (m *AuthEnableResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthDisableResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} } +func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) } +func (*AuthDisableResponse) ProtoMessage() {} +func (*AuthDisableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{61} } + +func (m *AuthDisableResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthenticateResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + // token is an authorized token that can be used in succeeding RPCs + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } +func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } +func (*AuthenticateResponse) ProtoMessage() {} +func (*AuthenticateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{62} } + +func (m *AuthenticateResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserAddResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} } +func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserAddResponse) ProtoMessage() {} +func (*AuthUserAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{63} } + +func (m *AuthUserAddResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserGetResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` +} + +func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} } +func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserGetResponse) ProtoMessage() {} +func (*AuthUserGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{64} } + +func (m *AuthUserGetResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserDeleteResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} } +func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserDeleteResponse) ProtoMessage() {} +func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{65} } + +func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserChangePasswordResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePasswordResponse{} } +func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserChangePasswordResponse) ProtoMessage() {} +func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{66} +} + +func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserGrantRoleResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} } +func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserGrantRoleResponse) ProtoMessage() {} +func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{67} } + +func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserRevokeRoleResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} } +func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserRevokeRoleResponse) ProtoMessage() {} +func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{68} } + +func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthRoleAddResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} } +func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) } +func (*AuthRoleAddResponse) ProtoMessage() {} +func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{69} } + +func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthRoleGetResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm" json:"perm,omitempty"` +} + +func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} } +func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) } +func (*AuthRoleGetResponse) ProtoMessage() {} +func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{70} } + +func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission { + if m != nil { + return m.Perm + } + return nil +} + +type AuthRoleListResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` +} + +func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} } +func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) } +func (*AuthRoleListResponse) ProtoMessage() {} +func (*AuthRoleListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{71} } + +func (m *AuthRoleListResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthUserListResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Users []string `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"` +} + +func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} } +func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) } +func (*AuthUserListResponse) ProtoMessage() {} +func (*AuthUserListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{72} } + +func (m *AuthUserListResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthRoleDeleteResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} } +func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*AuthRoleDeleteResponse) ProtoMessage() {} +func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{73} } + +func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthRoleGrantPermissionResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPermissionResponse{} } +func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) } +func (*AuthRoleGrantPermissionResponse) ProtoMessage() {} +func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{74} +} + +func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +type AuthRoleRevokePermissionResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevokePermissionResponse{} } +func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) } +func (*AuthRoleRevokePermissionResponse) ProtoMessage() {} +func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) { + return fileDescriptorRpc, []int{75} +} + +func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func init() { + proto.RegisterType((*ResponseHeader)(nil), "etcdserverpb.ResponseHeader") + proto.RegisterType((*RangeRequest)(nil), "etcdserverpb.RangeRequest") + proto.RegisterType((*RangeResponse)(nil), "etcdserverpb.RangeResponse") + proto.RegisterType((*PutRequest)(nil), "etcdserverpb.PutRequest") + proto.RegisterType((*PutResponse)(nil), "etcdserverpb.PutResponse") + proto.RegisterType((*DeleteRangeRequest)(nil), "etcdserverpb.DeleteRangeRequest") + proto.RegisterType((*DeleteRangeResponse)(nil), "etcdserverpb.DeleteRangeResponse") + proto.RegisterType((*RequestOp)(nil), "etcdserverpb.RequestOp") + proto.RegisterType((*ResponseOp)(nil), "etcdserverpb.ResponseOp") + proto.RegisterType((*Compare)(nil), "etcdserverpb.Compare") + proto.RegisterType((*TxnRequest)(nil), "etcdserverpb.TxnRequest") + proto.RegisterType((*TxnResponse)(nil), "etcdserverpb.TxnResponse") + proto.RegisterType((*CompactionRequest)(nil), "etcdserverpb.CompactionRequest") + proto.RegisterType((*CompactionResponse)(nil), "etcdserverpb.CompactionResponse") + proto.RegisterType((*HashRequest)(nil), "etcdserverpb.HashRequest") + proto.RegisterType((*HashResponse)(nil), "etcdserverpb.HashResponse") + proto.RegisterType((*SnapshotRequest)(nil), "etcdserverpb.SnapshotRequest") + proto.RegisterType((*SnapshotResponse)(nil), "etcdserverpb.SnapshotResponse") + proto.RegisterType((*WatchRequest)(nil), "etcdserverpb.WatchRequest") + proto.RegisterType((*WatchCreateRequest)(nil), "etcdserverpb.WatchCreateRequest") + proto.RegisterType((*WatchCancelRequest)(nil), "etcdserverpb.WatchCancelRequest") + proto.RegisterType((*WatchResponse)(nil), "etcdserverpb.WatchResponse") + proto.RegisterType((*LeaseGrantRequest)(nil), "etcdserverpb.LeaseGrantRequest") + proto.RegisterType((*LeaseGrantResponse)(nil), "etcdserverpb.LeaseGrantResponse") + proto.RegisterType((*LeaseRevokeRequest)(nil), "etcdserverpb.LeaseRevokeRequest") + proto.RegisterType((*LeaseRevokeResponse)(nil), "etcdserverpb.LeaseRevokeResponse") + proto.RegisterType((*LeaseKeepAliveRequest)(nil), "etcdserverpb.LeaseKeepAliveRequest") + proto.RegisterType((*LeaseKeepAliveResponse)(nil), "etcdserverpb.LeaseKeepAliveResponse") + proto.RegisterType((*Member)(nil), "etcdserverpb.Member") + proto.RegisterType((*MemberAddRequest)(nil), "etcdserverpb.MemberAddRequest") + proto.RegisterType((*MemberAddResponse)(nil), "etcdserverpb.MemberAddResponse") + proto.RegisterType((*MemberRemoveRequest)(nil), "etcdserverpb.MemberRemoveRequest") + proto.RegisterType((*MemberRemoveResponse)(nil), "etcdserverpb.MemberRemoveResponse") + proto.RegisterType((*MemberUpdateRequest)(nil), "etcdserverpb.MemberUpdateRequest") + proto.RegisterType((*MemberUpdateResponse)(nil), "etcdserverpb.MemberUpdateResponse") + proto.RegisterType((*MemberListRequest)(nil), "etcdserverpb.MemberListRequest") + proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse") + proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest") + proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse") + proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest") + proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember") + proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse") + proto.RegisterType((*StatusRequest)(nil), "etcdserverpb.StatusRequest") + proto.RegisterType((*StatusResponse)(nil), "etcdserverpb.StatusResponse") + proto.RegisterType((*AuthEnableRequest)(nil), "etcdserverpb.AuthEnableRequest") + proto.RegisterType((*AuthDisableRequest)(nil), "etcdserverpb.AuthDisableRequest") + proto.RegisterType((*AuthenticateRequest)(nil), "etcdserverpb.AuthenticateRequest") + proto.RegisterType((*AuthUserAddRequest)(nil), "etcdserverpb.AuthUserAddRequest") + proto.RegisterType((*AuthUserGetRequest)(nil), "etcdserverpb.AuthUserGetRequest") + proto.RegisterType((*AuthUserDeleteRequest)(nil), "etcdserverpb.AuthUserDeleteRequest") + proto.RegisterType((*AuthUserChangePasswordRequest)(nil), "etcdserverpb.AuthUserChangePasswordRequest") + proto.RegisterType((*AuthUserGrantRoleRequest)(nil), "etcdserverpb.AuthUserGrantRoleRequest") + proto.RegisterType((*AuthUserRevokeRoleRequest)(nil), "etcdserverpb.AuthUserRevokeRoleRequest") + proto.RegisterType((*AuthRoleAddRequest)(nil), "etcdserverpb.AuthRoleAddRequest") + proto.RegisterType((*AuthRoleGetRequest)(nil), "etcdserverpb.AuthRoleGetRequest") + proto.RegisterType((*AuthUserListRequest)(nil), "etcdserverpb.AuthUserListRequest") + proto.RegisterType((*AuthRoleListRequest)(nil), "etcdserverpb.AuthRoleListRequest") + proto.RegisterType((*AuthRoleDeleteRequest)(nil), "etcdserverpb.AuthRoleDeleteRequest") + proto.RegisterType((*AuthRoleGrantPermissionRequest)(nil), "etcdserverpb.AuthRoleGrantPermissionRequest") + proto.RegisterType((*AuthRoleRevokePermissionRequest)(nil), "etcdserverpb.AuthRoleRevokePermissionRequest") + proto.RegisterType((*AuthEnableResponse)(nil), "etcdserverpb.AuthEnableResponse") + proto.RegisterType((*AuthDisableResponse)(nil), "etcdserverpb.AuthDisableResponse") + proto.RegisterType((*AuthenticateResponse)(nil), "etcdserverpb.AuthenticateResponse") + proto.RegisterType((*AuthUserAddResponse)(nil), "etcdserverpb.AuthUserAddResponse") + proto.RegisterType((*AuthUserGetResponse)(nil), "etcdserverpb.AuthUserGetResponse") + proto.RegisterType((*AuthUserDeleteResponse)(nil), "etcdserverpb.AuthUserDeleteResponse") + proto.RegisterType((*AuthUserChangePasswordResponse)(nil), "etcdserverpb.AuthUserChangePasswordResponse") + proto.RegisterType((*AuthUserGrantRoleResponse)(nil), "etcdserverpb.AuthUserGrantRoleResponse") + proto.RegisterType((*AuthUserRevokeRoleResponse)(nil), "etcdserverpb.AuthUserRevokeRoleResponse") + proto.RegisterType((*AuthRoleAddResponse)(nil), "etcdserverpb.AuthRoleAddResponse") + proto.RegisterType((*AuthRoleGetResponse)(nil), "etcdserverpb.AuthRoleGetResponse") + proto.RegisterType((*AuthRoleListResponse)(nil), "etcdserverpb.AuthRoleListResponse") + proto.RegisterType((*AuthUserListResponse)(nil), "etcdserverpb.AuthUserListResponse") + proto.RegisterType((*AuthRoleDeleteResponse)(nil), "etcdserverpb.AuthRoleDeleteResponse") + proto.RegisterType((*AuthRoleGrantPermissionResponse)(nil), "etcdserverpb.AuthRoleGrantPermissionResponse") + proto.RegisterType((*AuthRoleRevokePermissionResponse)(nil), "etcdserverpb.AuthRoleRevokePermissionResponse") + proto.RegisterEnum("etcdserverpb.AlarmType", AlarmType_name, AlarmType_value) + proto.RegisterEnum("etcdserverpb.RangeRequest_SortOrder", RangeRequest_SortOrder_name, RangeRequest_SortOrder_value) + proto.RegisterEnum("etcdserverpb.RangeRequest_SortTarget", RangeRequest_SortTarget_name, RangeRequest_SortTarget_value) + proto.RegisterEnum("etcdserverpb.Compare_CompareResult", Compare_CompareResult_name, Compare_CompareResult_value) + proto.RegisterEnum("etcdserverpb.Compare_CompareTarget", Compare_CompareTarget_name, Compare_CompareTarget_value) + proto.RegisterEnum("etcdserverpb.AlarmRequest_AlarmAction", AlarmRequest_AlarmAction_name, AlarmRequest_AlarmAction_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 + +// Client API for KV service + +type KVClient interface { + // Range gets the keys in the range from the key-value store. + Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) + // Put puts the given key into the key-value store. + // A put request increments the revision of the key-value store + // and generates one event in the event history. + Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) + // DeleteRange deletes the given range from the key-value store. + // A delete request increments the revision of the key-value store + // and generates a delete event in the event history for every deleted key. + DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) + // Txn processes multiple requests in a single transaction. + // A txn request increments the revision of the key-value store + // and generates events with the same revision for every completed request. + // It is not allowed to modify the same key several times within one txn. + Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) + // Compact compacts the event history in the etcd key-value store. The key-value + // store should be periodically compacted or the event history will continue to grow + // indefinitely. + Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) +} + +type kVClient struct { + cc *grpc.ClientConn +} + +func NewKVClient(cc *grpc.ClientConn) KVClient { + return &kVClient{cc} +} + +func (c *kVClient) Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) { + out := new(RangeResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.KV/Range", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kVClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { + out := new(PutResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.KV/Put", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kVClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) { + out := new(DeleteRangeResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.KV/DeleteRange", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kVClient) Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) { + out := new(TxnResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.KV/Txn", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kVClient) Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) { + out := new(CompactionResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.KV/Compact", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for KV service + +type KVServer interface { + // Range gets the keys in the range from the key-value store. + Range(context.Context, *RangeRequest) (*RangeResponse, error) + // Put puts the given key into the key-value store. + // A put request increments the revision of the key-value store + // and generates one event in the event history. + Put(context.Context, *PutRequest) (*PutResponse, error) + // DeleteRange deletes the given range from the key-value store. + // A delete request increments the revision of the key-value store + // and generates a delete event in the event history for every deleted key. + DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) + // Txn processes multiple requests in a single transaction. + // A txn request increments the revision of the key-value store + // and generates events with the same revision for every completed request. + // It is not allowed to modify the same key several times within one txn. + Txn(context.Context, *TxnRequest) (*TxnResponse, error) + // Compact compacts the event history in the etcd key-value store. The key-value + // store should be periodically compacted or the event history will continue to grow + // indefinitely. + Compact(context.Context, *CompactionRequest) (*CompactionResponse, error) +} + +func RegisterKVServer(s *grpc.Server, srv KVServer) { + s.RegisterService(&_KV_serviceDesc, srv) +} + +func _KV_Range_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KVServer).Range(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.KV/Range", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KVServer).Range(ctx, req.(*RangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KV_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PutRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KVServer).Put(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.KV/Put", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KVServer).Put(ctx, req.(*PutRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KV_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KVServer).DeleteRange(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.KV/DeleteRange", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KVServer).DeleteRange(ctx, req.(*DeleteRangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KV_Txn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TxnRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KVServer).Txn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.KV/Txn", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KVServer).Txn(ctx, req.(*TxnRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KV_Compact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CompactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KVServer).Compact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.KV/Compact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KVServer).Compact(ctx, req.(*CompactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _KV_serviceDesc = grpc.ServiceDesc{ + ServiceName: "etcdserverpb.KV", + HandlerType: (*KVServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Range", + Handler: _KV_Range_Handler, + }, + { + MethodName: "Put", + Handler: _KV_Put_Handler, + }, + { + MethodName: "DeleteRange", + Handler: _KV_DeleteRange_Handler, + }, + { + MethodName: "Txn", + Handler: _KV_Txn_Handler, + }, + { + MethodName: "Compact", + Handler: _KV_Compact_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: fileDescriptorRpc, +} + +// Client API for Watch service + +type WatchClient interface { + // Watch watches for events happening or that have happened. Both input and output + // are streams; the input stream is for creating and canceling watchers and the output + // stream sends events. One watch RPC can watch on multiple key ranges, streaming events + // for several watches at once. The entire event history can be watched starting from the + // last compaction revision. + Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) +} + +type watchClient struct { + cc *grpc.ClientConn +} + +func NewWatchClient(cc *grpc.ClientConn) WatchClient { + return &watchClient{cc} +} + +func (c *watchClient) Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) { + stream, err := grpc.NewClientStream(ctx, &_Watch_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Watch/Watch", opts...) + if err != nil { + return nil, err + } + x := &watchWatchClient{stream} + return x, nil +} + +type Watch_WatchClient interface { + Send(*WatchRequest) error + Recv() (*WatchResponse, error) + grpc.ClientStream +} + +type watchWatchClient struct { + grpc.ClientStream +} + +func (x *watchWatchClient) Send(m *WatchRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *watchWatchClient) Recv() (*WatchResponse, error) { + m := new(WatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for Watch service + +type WatchServer interface { + // Watch watches for events happening or that have happened. Both input and output + // are streams; the input stream is for creating and canceling watchers and the output + // stream sends events. One watch RPC can watch on multiple key ranges, streaming events + // for several watches at once. The entire event history can be watched starting from the + // last compaction revision. + Watch(Watch_WatchServer) error +} + +func RegisterWatchServer(s *grpc.Server, srv WatchServer) { + s.RegisterService(&_Watch_serviceDesc, srv) +} + +func _Watch_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WatchServer).Watch(&watchWatchServer{stream}) +} + +type Watch_WatchServer interface { + Send(*WatchResponse) error + Recv() (*WatchRequest, error) + grpc.ServerStream +} + +type watchWatchServer struct { + grpc.ServerStream +} + +func (x *watchWatchServer) Send(m *WatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *watchWatchServer) Recv() (*WatchRequest, error) { + m := new(WatchRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _Watch_serviceDesc = grpc.ServiceDesc{ + ServiceName: "etcdserverpb.Watch", + HandlerType: (*WatchServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Watch", + Handler: _Watch_Watch_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: fileDescriptorRpc, +} + +// Client API for Lease service + +type LeaseClient interface { + // LeaseGrant creates a lease which expires if the server does not receive a keepAlive + // within a given time to live period. All keys attached to the lease will be expired and + // deleted if the lease expires. Each expired key generates a delete event in the event history. + LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) + // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. + LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) + // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client + // to the server and streaming keep alive responses from the server to the client. + LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) +} + +type leaseClient struct { + cc *grpc.ClientConn +} + +func NewLeaseClient(cc *grpc.ClientConn) LeaseClient { + return &leaseClient{cc} +} + +func (c *leaseClient) LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) { + out := new(LeaseGrantResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseGrant", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *leaseClient) LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) { + out := new(LeaseRevokeResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseRevoke", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *leaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) { + stream, err := grpc.NewClientStream(ctx, &_Lease_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Lease/LeaseKeepAlive", opts...) + if err != nil { + return nil, err + } + x := &leaseLeaseKeepAliveClient{stream} + return x, nil +} + +type Lease_LeaseKeepAliveClient interface { + Send(*LeaseKeepAliveRequest) error + Recv() (*LeaseKeepAliveResponse, error) + grpc.ClientStream +} + +type leaseLeaseKeepAliveClient struct { + grpc.ClientStream +} + +func (x *leaseLeaseKeepAliveClient) Send(m *LeaseKeepAliveRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *leaseLeaseKeepAliveClient) Recv() (*LeaseKeepAliveResponse, error) { + m := new(LeaseKeepAliveResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for Lease service + +type LeaseServer interface { + // LeaseGrant creates a lease which expires if the server does not receive a keepAlive + // within a given time to live period. All keys attached to the lease will be expired and + // deleted if the lease expires. Each expired key generates a delete event in the event history. + LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error) + // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. + LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error) + // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client + // to the server and streaming keep alive responses from the server to the client. + LeaseKeepAlive(Lease_LeaseKeepAliveServer) error +} + +func RegisterLeaseServer(s *grpc.Server, srv LeaseServer) { + s.RegisterService(&_Lease_serviceDesc, srv) +} + +func _Lease_LeaseGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LeaseGrantRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LeaseServer).LeaseGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Lease/LeaseGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LeaseServer).LeaseGrant(ctx, req.(*LeaseGrantRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Lease_LeaseRevoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LeaseRevokeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LeaseServer).LeaseRevoke(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Lease/LeaseRevoke", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LeaseServer).LeaseRevoke(ctx, req.(*LeaseRevokeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Lease_LeaseKeepAlive_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(LeaseServer).LeaseKeepAlive(&leaseLeaseKeepAliveServer{stream}) +} + +type Lease_LeaseKeepAliveServer interface { + Send(*LeaseKeepAliveResponse) error + Recv() (*LeaseKeepAliveRequest, error) + grpc.ServerStream +} + +type leaseLeaseKeepAliveServer struct { + grpc.ServerStream +} + +func (x *leaseLeaseKeepAliveServer) Send(m *LeaseKeepAliveResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *leaseLeaseKeepAliveServer) Recv() (*LeaseKeepAliveRequest, error) { + m := new(LeaseKeepAliveRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _Lease_serviceDesc = grpc.ServiceDesc{ + ServiceName: "etcdserverpb.Lease", + HandlerType: (*LeaseServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "LeaseGrant", + Handler: _Lease_LeaseGrant_Handler, + }, + { + MethodName: "LeaseRevoke", + Handler: _Lease_LeaseRevoke_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "LeaseKeepAlive", + Handler: _Lease_LeaseKeepAlive_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: fileDescriptorRpc, +} + +// Client API for Cluster service + +type ClusterClient interface { + // MemberAdd adds a member into the cluster. + MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) + // MemberRemove removes an existing member from the cluster. + MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) + // MemberUpdate updates the member configuration. + MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) + // MemberList lists all the members in the cluster. + MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) +} + +type clusterClient struct { + cc *grpc.ClientConn +} + +func NewClusterClient(cc *grpc.ClientConn) ClusterClient { + return &clusterClient{cc} +} + +func (c *clusterClient) MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) { + out := new(MemberAddResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberAdd", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterClient) MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) { + out := new(MemberRemoveResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberRemove", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterClient) MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) { + out := new(MemberUpdateResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberUpdate", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterClient) MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) { + out := new(MemberListResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberList", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for Cluster service + +type ClusterServer interface { + // MemberAdd adds a member into the cluster. + MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error) + // MemberRemove removes an existing member from the cluster. + MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error) + // MemberUpdate updates the member configuration. + MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error) + // MemberList lists all the members in the cluster. + MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error) +} + +func RegisterClusterServer(s *grpc.Server, srv ClusterServer) { + s.RegisterService(&_Cluster_serviceDesc, srv) +} + +func _Cluster_MemberAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MemberAddRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServer).MemberAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Cluster/MemberAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServer).MemberAdd(ctx, req.(*MemberAddRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Cluster_MemberRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MemberRemoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServer).MemberRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Cluster/MemberRemove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServer).MemberRemove(ctx, req.(*MemberRemoveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Cluster_MemberUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MemberUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServer).MemberUpdate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Cluster/MemberUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServer).MemberUpdate(ctx, req.(*MemberUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Cluster_MemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MemberListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterServer).MemberList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Cluster/MemberList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterServer).MemberList(ctx, req.(*MemberListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Cluster_serviceDesc = grpc.ServiceDesc{ + ServiceName: "etcdserverpb.Cluster", + HandlerType: (*ClusterServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "MemberAdd", + Handler: _Cluster_MemberAdd_Handler, + }, + { + MethodName: "MemberRemove", + Handler: _Cluster_MemberRemove_Handler, + }, + { + MethodName: "MemberUpdate", + Handler: _Cluster_MemberUpdate_Handler, + }, + { + MethodName: "MemberList", + Handler: _Cluster_MemberList_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: fileDescriptorRpc, +} + +// Client API for Maintenance service + +type MaintenanceClient interface { + // Alarm activates, deactivates, and queries alarms regarding cluster health. + Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) + // Status gets the status of the member. + Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) + // Defragment defragments a member's backend database to recover storage space. + Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) + // Hash returns the hash of the local KV state for consistency checking purpose. + // This is designed for testing; do not use this in production when there + // are ongoing transactions. + Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) + // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. + Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) +} + +type maintenanceClient struct { + cc *grpc.ClientConn +} + +func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient { + return &maintenanceClient{cc} +} + +func (c *maintenanceClient) Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) { + out := new(AlarmResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Alarm", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *maintenanceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { + out := new(StatusResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Status", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *maintenanceClient) Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) { + out := new(DefragmentResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Defragment", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *maintenanceClient) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) { + out := new(HashResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Hash", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *maintenanceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) { + stream, err := grpc.NewClientStream(ctx, &_Maintenance_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Maintenance/Snapshot", opts...) + if err != nil { + return nil, err + } + x := &maintenanceSnapshotClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Maintenance_SnapshotClient interface { + Recv() (*SnapshotResponse, error) + grpc.ClientStream +} + +type maintenanceSnapshotClient struct { + grpc.ClientStream +} + +func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) { + m := new(SnapshotResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for Maintenance service + +type MaintenanceServer interface { + // Alarm activates, deactivates, and queries alarms regarding cluster health. + Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error) + // Status gets the status of the member. + Status(context.Context, *StatusRequest) (*StatusResponse, error) + // Defragment defragments a member's backend database to recover storage space. + Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error) + // Hash returns the hash of the local KV state for consistency checking purpose. + // This is designed for testing; do not use this in production when there + // are ongoing transactions. + Hash(context.Context, *HashRequest) (*HashResponse, error) + // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. + Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error +} + +func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) { + s.RegisterService(&_Maintenance_serviceDesc, srv) +} + +func _Maintenance_Alarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AlarmRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MaintenanceServer).Alarm(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Maintenance/Alarm", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MaintenanceServer).Alarm(ctx, req.(*AlarmRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Maintenance_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MaintenanceServer).Status(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Maintenance/Status", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MaintenanceServer).Status(ctx, req.(*StatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Maintenance_Defragment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DefragmentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MaintenanceServer).Defragment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Maintenance/Defragment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MaintenanceServer).Defragment(ctx, req.(*DefragmentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Maintenance_Hash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HashRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MaintenanceServer).Hash(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Maintenance/Hash", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MaintenanceServer).Hash(ctx, req.(*HashRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Maintenance_Snapshot_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SnapshotRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(MaintenanceServer).Snapshot(m, &maintenanceSnapshotServer{stream}) +} + +type Maintenance_SnapshotServer interface { + Send(*SnapshotResponse) error + grpc.ServerStream +} + +type maintenanceSnapshotServer struct { + grpc.ServerStream +} + +func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _Maintenance_serviceDesc = grpc.ServiceDesc{ + ServiceName: "etcdserverpb.Maintenance", + HandlerType: (*MaintenanceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Alarm", + Handler: _Maintenance_Alarm_Handler, + }, + { + MethodName: "Status", + Handler: _Maintenance_Status_Handler, + }, + { + MethodName: "Defragment", + Handler: _Maintenance_Defragment_Handler, + }, + { + MethodName: "Hash", + Handler: _Maintenance_Hash_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Snapshot", + Handler: _Maintenance_Snapshot_Handler, + ServerStreams: true, + }, + }, + Metadata: fileDescriptorRpc, +} + +// Client API for Auth service + +type AuthClient interface { + // AuthEnable enables authentication. + AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) + // AuthDisable disables authentication. + AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) + // Authenticate processes an authenticate request. + Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) + // UserAdd adds a new user. + UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) + // UserGet gets detailed user information. + UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) + // UserList gets a list of all users. + UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) + // UserDelete deletes a specified user. + UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) + // UserChangePassword changes the password of a specified user. + UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) + // UserGrant grants a role to a specified user. + UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) + // UserRevokeRole revokes a role of specified user. + UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) + // RoleAdd adds a new role. + RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) + // RoleGet gets detailed role information. + RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) + // RoleList gets lists of all roles. + RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) + // RoleDelete deletes a specified role. + RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) + // RoleGrantPermission grants a permission of a specified key or range to a specified role. + RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) + // RoleRevokePermission revokes a key or range permission of a specified role. + RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) +} + +type authClient struct { + cc *grpc.ClientConn +} + +func NewAuthClient(cc *grpc.ClientConn) AuthClient { + return &authClient{cc} +} + +func (c *authClient) AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) { + out := new(AuthEnableResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/AuthEnable", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) { + out := new(AuthDisableResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/AuthDisable", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { + out := new(AuthenticateResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/Authenticate", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) { + out := new(AuthUserAddResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserAdd", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) { + out := new(AuthUserGetResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserGet", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) { + out := new(AuthUserListResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserList", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) { + out := new(AuthUserDeleteResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserDelete", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) { + out := new(AuthUserChangePasswordResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserChangePassword", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) { + out := new(AuthUserGrantRoleResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserGrantRole", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) { + out := new(AuthUserRevokeRoleResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserRevokeRole", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) { + out := new(AuthRoleAddResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleAdd", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) { + out := new(AuthRoleGetResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleGet", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) { + out := new(AuthRoleListResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleList", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) { + out := new(AuthRoleDeleteResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleDelete", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) { + out := new(AuthRoleGrantPermissionResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleGrantPermission", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authClient) RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) { + out := new(AuthRoleRevokePermissionResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleRevokePermission", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for Auth service + +type AuthServer interface { + // AuthEnable enables authentication. + AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error) + // AuthDisable disables authentication. + AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error) + // Authenticate processes an authenticate request. + Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) + // UserAdd adds a new user. + UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error) + // UserGet gets detailed user information. + UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error) + // UserList gets a list of all users. + UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error) + // UserDelete deletes a specified user. + UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) + // UserChangePassword changes the password of a specified user. + UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) + // UserGrant grants a role to a specified user. + UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) + // UserRevokeRole revokes a role of specified user. + UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) + // RoleAdd adds a new role. + RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error) + // RoleGet gets detailed role information. + RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error) + // RoleList gets lists of all roles. + RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error) + // RoleDelete deletes a specified role. + RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) + // RoleGrantPermission grants a permission of a specified key or range to a specified role. + RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) + // RoleRevokePermission revokes a key or range permission of a specified role. + RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) +} + +func RegisterAuthServer(s *grpc.Server, srv AuthServer) { + s.RegisterService(&_Auth_serviceDesc, srv) +} + +func _Auth_AuthEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthEnableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).AuthEnable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/AuthEnable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).AuthEnable(ctx, req.(*AuthEnableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_AuthDisable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthDisableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).AuthDisable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/AuthDisable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).AuthDisable(ctx, req.(*AuthDisableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthenticateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).Authenticate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/Authenticate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).Authenticate(ctx, req.(*AuthenticateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserAddRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserAdd(ctx, req.(*AuthUserAddRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserGet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserGet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserGet(ctx, req.(*AuthUserGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserList(ctx, req.(*AuthUserListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserDelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserDelete(ctx, req.(*AuthUserDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserChangePasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserChangePassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserChangePassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserChangePassword(ctx, req.(*AuthUserChangePasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserGrantRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserGrantRoleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserGrantRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserGrantRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserGrantRole(ctx, req.(*AuthUserGrantRoleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_UserRevokeRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthUserRevokeRoleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).UserRevokeRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/UserRevokeRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).UserRevokeRole(ctx, req.(*AuthUserRevokeRoleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_RoleAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRoleAddRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).RoleAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/RoleAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).RoleAdd(ctx, req.(*AuthRoleAddRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_RoleGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRoleGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).RoleGet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/RoleGet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).RoleGet(ctx, req.(*AuthRoleGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRoleListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).RoleList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/RoleList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).RoleList(ctx, req.(*AuthRoleListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_RoleDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRoleDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).RoleDelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/RoleDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).RoleDelete(ctx, req.(*AuthRoleDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_RoleGrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRoleGrantPermissionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).RoleGrantPermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/RoleGrantPermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).RoleGrantPermission(ctx, req.(*AuthRoleGrantPermissionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_RoleRevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRoleRevokePermissionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).RoleRevokePermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Auth/RoleRevokePermission", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).RoleRevokePermission(ctx, req.(*AuthRoleRevokePermissionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Auth_serviceDesc = grpc.ServiceDesc{ + ServiceName: "etcdserverpb.Auth", + HandlerType: (*AuthServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AuthEnable", + Handler: _Auth_AuthEnable_Handler, + }, + { + MethodName: "AuthDisable", + Handler: _Auth_AuthDisable_Handler, + }, + { + MethodName: "Authenticate", + Handler: _Auth_Authenticate_Handler, + }, + { + MethodName: "UserAdd", + Handler: _Auth_UserAdd_Handler, + }, + { + MethodName: "UserGet", + Handler: _Auth_UserGet_Handler, + }, + { + MethodName: "UserList", + Handler: _Auth_UserList_Handler, + }, + { + MethodName: "UserDelete", + Handler: _Auth_UserDelete_Handler, + }, + { + MethodName: "UserChangePassword", + Handler: _Auth_UserChangePassword_Handler, + }, + { + MethodName: "UserGrantRole", + Handler: _Auth_UserGrantRole_Handler, + }, + { + MethodName: "UserRevokeRole", + Handler: _Auth_UserRevokeRole_Handler, + }, + { + MethodName: "RoleAdd", + Handler: _Auth_RoleAdd_Handler, + }, + { + MethodName: "RoleGet", + Handler: _Auth_RoleGet_Handler, + }, + { + MethodName: "RoleList", + Handler: _Auth_RoleList_Handler, + }, + { + MethodName: "RoleDelete", + Handler: _Auth_RoleDelete_Handler, + }, + { + MethodName: "RoleGrantPermission", + Handler: _Auth_RoleGrantPermission_Handler, + }, + { + MethodName: "RoleRevokePermission", + Handler: _Auth_RoleRevokePermission_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: fileDescriptorRpc, +} + +func (m *ResponseHeader) 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 *ResponseHeader) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ClusterId != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.ClusterId)) + } + if m.MemberId != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.MemberId)) + } + if m.Revision != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.Revision)) + } + if m.RaftTerm != 0 { + data[i] = 0x20 + i++ + i = encodeVarintRpc(data, i, uint64(m.RaftTerm)) + } + return i, nil +} + +func (m *RangeRequest) 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 *RangeRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if len(m.RangeEnd) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.RangeEnd))) + i += copy(data[i:], m.RangeEnd) + } + if m.Limit != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.Limit)) + } + if m.Revision != 0 { + data[i] = 0x20 + i++ + i = encodeVarintRpc(data, i, uint64(m.Revision)) + } + if m.SortOrder != 0 { + data[i] = 0x28 + i++ + i = encodeVarintRpc(data, i, uint64(m.SortOrder)) + } + if m.SortTarget != 0 { + data[i] = 0x30 + i++ + i = encodeVarintRpc(data, i, uint64(m.SortTarget)) + } + if m.Serializable { + data[i] = 0x38 + i++ + if m.Serializable { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.KeysOnly { + data[i] = 0x40 + i++ + if m.KeysOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.CountOnly { + data[i] = 0x48 + i++ + if m.CountOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + +func (m *RangeResponse) 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 *RangeResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n1, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if len(m.Kvs) > 0 { + for _, msg := range m.Kvs { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.More { + data[i] = 0x18 + i++ + if m.More { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.Count != 0 { + data[i] = 0x20 + i++ + i = encodeVarintRpc(data, i, uint64(m.Count)) + } + return i, nil +} + +func (m *PutRequest) 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 *PutRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if len(m.Value) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + } + if m.Lease != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.Lease)) + } + return i, nil +} + +func (m *PutResponse) 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 *PutResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n2, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + return i, nil +} + +func (m *DeleteRangeRequest) 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 *DeleteRangeRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if len(m.RangeEnd) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.RangeEnd))) + i += copy(data[i:], m.RangeEnd) + } + return i, nil +} + +func (m *DeleteRangeResponse) 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 *DeleteRangeResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n3, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.Deleted != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.Deleted)) + } + return i, nil +} + +func (m *RequestOp) 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 *RequestOp) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Request != nil { + nn4, err := m.Request.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += nn4 + } + return i, nil +} + +func (m *RequestOp_RequestRange) MarshalTo(data []byte) (int, error) { + i := 0 + if m.RequestRange != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.RequestRange.Size())) + n5, err := m.RequestRange.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + return i, nil +} +func (m *RequestOp_RequestPut) MarshalTo(data []byte) (int, error) { + i := 0 + if m.RequestPut != nil { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(m.RequestPut.Size())) + n6, err := m.RequestPut.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + return i, nil +} +func (m *RequestOp_RequestDeleteRange) MarshalTo(data []byte) (int, error) { + i := 0 + if m.RequestDeleteRange != nil { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(m.RequestDeleteRange.Size())) + n7, err := m.RequestDeleteRange.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + } + return i, nil +} +func (m *ResponseOp) 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 *ResponseOp) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Response != nil { + nn8, err := m.Response.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += nn8 + } + return i, nil +} + +func (m *ResponseOp_ResponseRange) MarshalTo(data []byte) (int, error) { + i := 0 + if m.ResponseRange != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.ResponseRange.Size())) + n9, err := m.ResponseRange.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + } + return i, nil +} +func (m *ResponseOp_ResponsePut) MarshalTo(data []byte) (int, error) { + i := 0 + if m.ResponsePut != nil { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(m.ResponsePut.Size())) + n10, err := m.ResponsePut.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n10 + } + return i, nil +} +func (m *ResponseOp_ResponseDeleteRange) MarshalTo(data []byte) (int, error) { + i := 0 + if m.ResponseDeleteRange != nil { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(m.ResponseDeleteRange.Size())) + n11, err := m.ResponseDeleteRange.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n11 + } + return i, nil +} +func (m *Compare) 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 *Compare) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Result != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.Result)) + } + if m.Target != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.Target)) + } + if len(m.Key) > 0 { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if m.TargetUnion != nil { + nn12, err := m.TargetUnion.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += nn12 + } + return i, nil +} + +func (m *Compare_Version) MarshalTo(data []byte) (int, error) { + i := 0 + data[i] = 0x20 + i++ + i = encodeVarintRpc(data, i, uint64(m.Version)) + return i, nil +} +func (m *Compare_CreateRevision) MarshalTo(data []byte) (int, error) { + i := 0 + data[i] = 0x28 + i++ + i = encodeVarintRpc(data, i, uint64(m.CreateRevision)) + return i, nil +} +func (m *Compare_ModRevision) MarshalTo(data []byte) (int, error) { + i := 0 + data[i] = 0x30 + i++ + i = encodeVarintRpc(data, i, uint64(m.ModRevision)) + return i, nil +} +func (m *Compare_Value) MarshalTo(data []byte) (int, error) { + i := 0 + if m.Value != nil { + data[i] = 0x3a + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + } + return i, nil +} +func (m *TxnRequest) 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 *TxnRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Compare) > 0 { + for _, msg := range m.Compare { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Success) > 0 { + for _, msg := range m.Success { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Failure) > 0 { + for _, msg := range m.Failure { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *TxnResponse) 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 *TxnResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n13, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.Succeeded { + data[i] = 0x10 + i++ + if m.Succeeded { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if len(m.Responses) > 0 { + for _, msg := range m.Responses { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *CompactionRequest) 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 *CompactionRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Revision != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.Revision)) + } + if m.Physical { + data[i] = 0x10 + i++ + if m.Physical { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + +func (m *CompactionResponse) 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 *CompactionResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n14, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n14 + } + return i, nil +} + +func (m *HashRequest) 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 *HashRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *HashResponse) 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 *HashResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n15, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if m.Hash != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.Hash)) + } + return i, nil +} + +func (m *SnapshotRequest) 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 *SnapshotRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *SnapshotResponse) 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 *SnapshotResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n16, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n16 + } + if m.RemainingBytes != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.RemainingBytes)) + } + if len(m.Blob) > 0 { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Blob))) + i += copy(data[i:], m.Blob) + } + return i, nil +} + +func (m *WatchRequest) 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 *WatchRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RequestUnion != nil { + nn17, err := m.RequestUnion.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += nn17 + } + return i, nil +} + +func (m *WatchRequest_CreateRequest) MarshalTo(data []byte) (int, error) { + i := 0 + if m.CreateRequest != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.CreateRequest.Size())) + n18, err := m.CreateRequest.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n18 + } + return i, nil +} +func (m *WatchRequest_CancelRequest) MarshalTo(data []byte) (int, error) { + i := 0 + if m.CancelRequest != nil { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(m.CancelRequest.Size())) + n19, err := m.CancelRequest.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n19 + } + return i, nil +} +func (m *WatchCreateRequest) 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 *WatchCreateRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if len(m.RangeEnd) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.RangeEnd))) + i += copy(data[i:], m.RangeEnd) + } + if m.StartRevision != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.StartRevision)) + } + if m.ProgressNotify { + data[i] = 0x20 + i++ + if m.ProgressNotify { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + +func (m *WatchCancelRequest) 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 *WatchCancelRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.WatchId != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.WatchId)) + } + return i, nil +} + +func (m *WatchResponse) 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 *WatchResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n20, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n20 + } + if m.WatchId != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.WatchId)) + } + if m.Created { + data[i] = 0x18 + i++ + if m.Created { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.Canceled { + data[i] = 0x20 + i++ + if m.Canceled { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.CompactRevision != 0 { + data[i] = 0x28 + i++ + i = encodeVarintRpc(data, i, uint64(m.CompactRevision)) + } + if len(m.Events) > 0 { + for _, msg := range m.Events { + data[i] = 0x5a + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *LeaseGrantRequest) 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 *LeaseGrantRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TTL != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.TTL)) + } + if m.ID != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + return i, nil +} + +func (m *LeaseGrantResponse) 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 *LeaseGrantResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n21, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n21 + } + if m.ID != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + if m.TTL != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.TTL)) + } + if len(m.Error) > 0 { + data[i] = 0x22 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Error))) + i += copy(data[i:], m.Error) + } + return i, nil +} + +func (m *LeaseRevokeRequest) 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 *LeaseRevokeRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + return i, nil +} + +func (m *LeaseRevokeResponse) 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 *LeaseRevokeResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n22, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n22 + } + return i, nil +} + +func (m *LeaseKeepAliveRequest) 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 *LeaseKeepAliveRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + return i, nil +} + +func (m *LeaseKeepAliveResponse) 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 *LeaseKeepAliveResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n23, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n23 + } + if m.ID != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + if m.TTL != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.TTL)) + } + return i, nil +} + +func (m *Member) 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 *Member) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + if len(m.Name) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.PeerURLs) > 0 { + for _, s := range m.PeerURLs { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.ClientURLs) > 0 { + for _, s := range m.ClientURLs { + data[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *MemberAddRequest) 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 *MemberAddRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.PeerURLs) > 0 { + for _, s := range m.PeerURLs { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *MemberAddResponse) 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 *MemberAddResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n24, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n24 + } + if m.Member != nil { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(m.Member.Size())) + n25, err := m.Member.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n25 + } + return i, nil +} + +func (m *MemberRemoveRequest) 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 *MemberRemoveRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + return i, nil +} + +func (m *MemberRemoveResponse) 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 *MemberRemoveResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n26, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n26 + } + return i, nil +} + +func (m *MemberUpdateRequest) 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 *MemberUpdateRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.ID)) + } + if len(m.PeerURLs) > 0 { + for _, s := range m.PeerURLs { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *MemberUpdateResponse) 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 *MemberUpdateResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n27, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n27 + } + return i, nil +} + +func (m *MemberListRequest) 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 *MemberListRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *MemberListResponse) 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 *MemberListResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n28, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n28 + } + if len(m.Members) > 0 { + for _, msg := range m.Members { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *DefragmentRequest) 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 *DefragmentRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *DefragmentResponse) 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 *DefragmentResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n29, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n29 + } + return i, nil +} + +func (m *AlarmRequest) 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 *AlarmRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Action != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.Action)) + } + if m.MemberID != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.MemberID)) + } + if m.Alarm != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.Alarm)) + } + return i, nil +} + +func (m *AlarmMember) 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 *AlarmMember) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.MemberID != 0 { + data[i] = 0x8 + i++ + i = encodeVarintRpc(data, i, uint64(m.MemberID)) + } + if m.Alarm != 0 { + data[i] = 0x10 + i++ + i = encodeVarintRpc(data, i, uint64(m.Alarm)) + } + return i, nil +} + +func (m *AlarmResponse) 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 *AlarmResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n30, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n30 + } + if len(m.Alarms) > 0 { + for _, msg := range m.Alarms { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *StatusRequest) 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 *StatusRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *StatusResponse) 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 *StatusResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n31, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n31 + } + if len(m.Version) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Version))) + i += copy(data[i:], m.Version) + } + if m.DbSize != 0 { + data[i] = 0x18 + i++ + i = encodeVarintRpc(data, i, uint64(m.DbSize)) + } + if m.Leader != 0 { + data[i] = 0x20 + i++ + i = encodeVarintRpc(data, i, uint64(m.Leader)) + } + if m.RaftIndex != 0 { + data[i] = 0x28 + i++ + i = encodeVarintRpc(data, i, uint64(m.RaftIndex)) + } + if m.RaftTerm != 0 { + data[i] = 0x30 + i++ + i = encodeVarintRpc(data, i, uint64(m.RaftTerm)) + } + return i, nil +} + +func (m *AuthEnableRequest) 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 *AuthEnableRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *AuthDisableRequest) 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 *AuthDisableRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *AuthenticateRequest) 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 *AuthenticateRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.Password) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Password))) + i += copy(data[i:], m.Password) + } + return i, nil +} + +func (m *AuthUserAddRequest) 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 *AuthUserAddRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.Password) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Password))) + i += copy(data[i:], m.Password) + } + return i, nil +} + +func (m *AuthUserGetRequest) 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 *AuthUserGetRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + return i, nil +} + +func (m *AuthUserDeleteRequest) 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 *AuthUserDeleteRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + return i, nil +} + +func (m *AuthUserChangePasswordRequest) 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 *AuthUserChangePasswordRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.Password) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Password))) + i += copy(data[i:], m.Password) + } + return i, nil +} + +func (m *AuthUserGrantRoleRequest) 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 *AuthUserGrantRoleRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.User) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.User))) + i += copy(data[i:], m.User) + } + if len(m.Role) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Role))) + i += copy(data[i:], m.Role) + } + return i, nil +} + +func (m *AuthUserRevokeRoleRequest) 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 *AuthUserRevokeRoleRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if len(m.Role) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Role))) + i += copy(data[i:], m.Role) + } + return i, nil +} + +func (m *AuthRoleAddRequest) 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 *AuthRoleAddRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + return i, nil +} + +func (m *AuthRoleGetRequest) 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 *AuthRoleGetRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Role) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Role))) + i += copy(data[i:], m.Role) + } + return i, nil +} + +func (m *AuthUserListRequest) 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 *AuthUserListRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *AuthRoleListRequest) 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 *AuthRoleListRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *AuthRoleDeleteRequest) 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 *AuthRoleDeleteRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Role) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Role))) + i += copy(data[i:], m.Role) + } + return i, nil +} + +func (m *AuthRoleGrantPermissionRequest) 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 *AuthRoleGrantPermissionRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Name) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + } + if m.Perm != nil { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(m.Perm.Size())) + n32, err := m.Perm.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n32 + } + return i, nil +} + +func (m *AuthRoleRevokePermissionRequest) 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 *AuthRoleRevokePermissionRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Role) > 0 { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Role))) + i += copy(data[i:], m.Role) + } + if len(m.Key) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if len(m.RangeEnd) > 0 { + data[i] = 0x1a + i++ + i = encodeVarintRpc(data, i, uint64(len(m.RangeEnd))) + i += copy(data[i:], m.RangeEnd) + } + return i, nil +} + +func (m *AuthEnableResponse) 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 *AuthEnableResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n33, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n33 + } + return i, nil +} + +func (m *AuthDisableResponse) 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 *AuthDisableResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n34, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n34 + } + return i, nil +} + +func (m *AuthenticateResponse) 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 *AuthenticateResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n35, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n35 + } + if len(m.Token) > 0 { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(len(m.Token))) + i += copy(data[i:], m.Token) + } + return i, nil +} + +func (m *AuthUserAddResponse) 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 *AuthUserAddResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n36, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n36 + } + return i, nil +} + +func (m *AuthUserGetResponse) 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 *AuthUserGetResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n37, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n37 + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *AuthUserDeleteResponse) 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 *AuthUserDeleteResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n38, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n38 + } + return i, nil +} + +func (m *AuthUserChangePasswordResponse) 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 *AuthUserChangePasswordResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n39, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n39 + } + return i, nil +} + +func (m *AuthUserGrantRoleResponse) 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 *AuthUserGrantRoleResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n40, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n40 + } + return i, nil +} + +func (m *AuthUserRevokeRoleResponse) 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 *AuthUserRevokeRoleResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n41, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n41 + } + return i, nil +} + +func (m *AuthRoleAddResponse) 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 *AuthRoleAddResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n42, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n42 + } + return i, nil +} + +func (m *AuthRoleGetResponse) 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 *AuthRoleGetResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n43, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n43 + } + if len(m.Perm) > 0 { + for _, msg := range m.Perm { + data[i] = 0x12 + i++ + i = encodeVarintRpc(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *AuthRoleListResponse) 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 *AuthRoleListResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n44, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n44 + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *AuthUserListResponse) 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 *AuthUserListResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n45, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n45 + } + if len(m.Users) > 0 { + for _, s := range m.Users { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *AuthRoleDeleteResponse) 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 *AuthRoleDeleteResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n46, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n46 + } + return i, nil +} + +func (m *AuthRoleGrantPermissionResponse) 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 *AuthRoleGrantPermissionResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n47, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n47 + } + return i, nil +} + +func (m *AuthRoleRevokePermissionResponse) 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 *AuthRoleRevokePermissionResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + data[i] = 0xa + i++ + i = encodeVarintRpc(data, i, uint64(m.Header.Size())) + n48, err := m.Header.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n48 + } + return i, nil +} + +func encodeFixed64Rpc(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 encodeFixed32Rpc(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 encodeVarintRpc(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 *ResponseHeader) Size() (n int) { + var l int + _ = l + if m.ClusterId != 0 { + n += 1 + sovRpc(uint64(m.ClusterId)) + } + if m.MemberId != 0 { + n += 1 + sovRpc(uint64(m.MemberId)) + } + if m.Revision != 0 { + n += 1 + sovRpc(uint64(m.Revision)) + } + if m.RaftTerm != 0 { + n += 1 + sovRpc(uint64(m.RaftTerm)) + } + return n +} + +func (m *RangeRequest) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.RangeEnd) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovRpc(uint64(m.Limit)) + } + if m.Revision != 0 { + n += 1 + sovRpc(uint64(m.Revision)) + } + if m.SortOrder != 0 { + n += 1 + sovRpc(uint64(m.SortOrder)) + } + if m.SortTarget != 0 { + n += 1 + sovRpc(uint64(m.SortTarget)) + } + if m.Serializable { + n += 2 + } + if m.KeysOnly { + n += 2 + } + if m.CountOnly { + n += 2 + } + return n +} + +func (m *RangeResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Kvs) > 0 { + for _, e := range m.Kvs { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + if m.More { + n += 2 + } + if m.Count != 0 { + n += 1 + sovRpc(uint64(m.Count)) + } + return n +} + +func (m *PutRequest) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if m.Lease != 0 { + n += 1 + sovRpc(uint64(m.Lease)) + } + return n +} + +func (m *PutResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *DeleteRangeRequest) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.RangeEnd) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *DeleteRangeResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.Deleted != 0 { + n += 1 + sovRpc(uint64(m.Deleted)) + } + return n +} + +func (m *RequestOp) Size() (n int) { + var l int + _ = l + if m.Request != nil { + n += m.Request.Size() + } + return n +} + +func (m *RequestOp_RequestRange) Size() (n int) { + var l int + _ = l + if m.RequestRange != nil { + l = m.RequestRange.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *RequestOp_RequestPut) Size() (n int) { + var l int + _ = l + if m.RequestPut != nil { + l = m.RequestPut.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *RequestOp_RequestDeleteRange) Size() (n int) { + var l int + _ = l + if m.RequestDeleteRange != nil { + l = m.RequestDeleteRange.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *ResponseOp) Size() (n int) { + var l int + _ = l + if m.Response != nil { + n += m.Response.Size() + } + return n +} + +func (m *ResponseOp_ResponseRange) Size() (n int) { + var l int + _ = l + if m.ResponseRange != nil { + l = m.ResponseRange.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *ResponseOp_ResponsePut) Size() (n int) { + var l int + _ = l + if m.ResponsePut != nil { + l = m.ResponsePut.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *ResponseOp_ResponseDeleteRange) Size() (n int) { + var l int + _ = l + if m.ResponseDeleteRange != nil { + l = m.ResponseDeleteRange.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *Compare) Size() (n int) { + var l int + _ = l + if m.Result != 0 { + n += 1 + sovRpc(uint64(m.Result)) + } + if m.Target != 0 { + n += 1 + sovRpc(uint64(m.Target)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if m.TargetUnion != nil { + n += m.TargetUnion.Size() + } + return n +} + +func (m *Compare_Version) Size() (n int) { + var l int + _ = l + n += 1 + sovRpc(uint64(m.Version)) + return n +} +func (m *Compare_CreateRevision) Size() (n int) { + var l int + _ = l + n += 1 + sovRpc(uint64(m.CreateRevision)) + return n +} +func (m *Compare_ModRevision) Size() (n int) { + var l int + _ = l + n += 1 + sovRpc(uint64(m.ModRevision)) + return n +} +func (m *Compare_Value) Size() (n int) { + var l int + _ = l + if m.Value != nil { + l = len(m.Value) + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *TxnRequest) Size() (n int) { + var l int + _ = l + if len(m.Compare) > 0 { + for _, e := range m.Compare { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + if len(m.Success) > 0 { + for _, e := range m.Success { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + if len(m.Failure) > 0 { + for _, e := range m.Failure { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *TxnResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.Succeeded { + n += 2 + } + if len(m.Responses) > 0 { + for _, e := range m.Responses { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *CompactionRequest) Size() (n int) { + var l int + _ = l + if m.Revision != 0 { + n += 1 + sovRpc(uint64(m.Revision)) + } + if m.Physical { + n += 2 + } + return n +} + +func (m *CompactionResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *HashRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *HashResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.Hash != 0 { + n += 1 + sovRpc(uint64(m.Hash)) + } + return n +} + +func (m *SnapshotRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *SnapshotResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.RemainingBytes != 0 { + n += 1 + sovRpc(uint64(m.RemainingBytes)) + } + l = len(m.Blob) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *WatchRequest) Size() (n int) { + var l int + _ = l + if m.RequestUnion != nil { + n += m.RequestUnion.Size() + } + return n +} + +func (m *WatchRequest_CreateRequest) Size() (n int) { + var l int + _ = l + if m.CreateRequest != nil { + l = m.CreateRequest.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *WatchRequest_CancelRequest) Size() (n int) { + var l int + _ = l + if m.CancelRequest != nil { + l = m.CancelRequest.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} +func (m *WatchCreateRequest) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.RangeEnd) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if m.StartRevision != 0 { + n += 1 + sovRpc(uint64(m.StartRevision)) + } + if m.ProgressNotify { + n += 2 + } + return n +} + +func (m *WatchCancelRequest) Size() (n int) { + var l int + _ = l + if m.WatchId != 0 { + n += 1 + sovRpc(uint64(m.WatchId)) + } + return n +} + +func (m *WatchResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.WatchId != 0 { + n += 1 + sovRpc(uint64(m.WatchId)) + } + if m.Created { + n += 2 + } + if m.Canceled { + n += 2 + } + if m.CompactRevision != 0 { + n += 1 + sovRpc(uint64(m.CompactRevision)) + } + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *LeaseGrantRequest) Size() (n int) { + var l int + _ = l + if m.TTL != 0 { + n += 1 + sovRpc(uint64(m.TTL)) + } + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + return n +} + +func (m *LeaseGrantResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + if m.TTL != 0 { + n += 1 + sovRpc(uint64(m.TTL)) + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *LeaseRevokeRequest) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + return n +} + +func (m *LeaseRevokeResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *LeaseKeepAliveRequest) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + return n +} + +func (m *LeaseKeepAliveResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + if m.TTL != 0 { + n += 1 + sovRpc(uint64(m.TTL)) + } + return n +} + +func (m *Member) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.PeerURLs) > 0 { + for _, s := range m.PeerURLs { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + if len(m.ClientURLs) > 0 { + for _, s := range m.ClientURLs { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *MemberAddRequest) Size() (n int) { + var l int + _ = l + if len(m.PeerURLs) > 0 { + for _, s := range m.PeerURLs { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *MemberAddResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if m.Member != nil { + l = m.Member.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *MemberRemoveRequest) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + return n +} + +func (m *MemberRemoveResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *MemberUpdateRequest) Size() (n int) { + var l int + _ = l + if m.ID != 0 { + n += 1 + sovRpc(uint64(m.ID)) + } + if len(m.PeerURLs) > 0 { + for _, s := range m.PeerURLs { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *MemberUpdateResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *MemberListRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *MemberListResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *DefragmentRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *DefragmentResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AlarmRequest) Size() (n int) { + var l int + _ = l + if m.Action != 0 { + n += 1 + sovRpc(uint64(m.Action)) + } + if m.MemberID != 0 { + n += 1 + sovRpc(uint64(m.MemberID)) + } + if m.Alarm != 0 { + n += 1 + sovRpc(uint64(m.Alarm)) + } + return n +} + +func (m *AlarmMember) Size() (n int) { + var l int + _ = l + if m.MemberID != 0 { + n += 1 + sovRpc(uint64(m.MemberID)) + } + if m.Alarm != 0 { + n += 1 + sovRpc(uint64(m.Alarm)) + } + return n +} + +func (m *AlarmResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Alarms) > 0 { + for _, e := range m.Alarms { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *StatusRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *StatusResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if m.DbSize != 0 { + n += 1 + sovRpc(uint64(m.DbSize)) + } + if m.Leader != 0 { + n += 1 + sovRpc(uint64(m.Leader)) + } + if m.RaftIndex != 0 { + n += 1 + sovRpc(uint64(m.RaftIndex)) + } + if m.RaftTerm != 0 { + n += 1 + sovRpc(uint64(m.RaftTerm)) + } + return n +} + +func (m *AuthEnableRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *AuthDisableRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *AuthenticateRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserAddRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserGetRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserDeleteRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserChangePasswordRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserGrantRoleRequest) Size() (n int) { + var l int + _ = l + l = len(m.User) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Role) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserRevokeRoleRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Role) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleAddRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleGetRequest) Size() (n int) { + var l int + _ = l + l = len(m.Role) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserListRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *AuthRoleListRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *AuthRoleDeleteRequest) Size() (n int) { + var l int + _ = l + l = len(m.Role) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleGrantPermissionRequest) Size() (n int) { + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + if m.Perm != nil { + l = m.Perm.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleRevokePermissionRequest) Size() (n int) { + var l int + _ = l + l = len(m.Role) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.RangeEnd) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthEnableResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthDisableResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthenticateResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + l = len(m.Token) + if l > 0 { + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserAddResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserGetResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *AuthUserDeleteResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserChangePasswordResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserGrantRoleResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthUserRevokeRoleResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleAddResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleGetResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Perm) > 0 { + for _, e := range m.Perm { + l = e.Size() + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *AuthRoleListResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *AuthUserListResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + if len(m.Users) > 0 { + for _, s := range m.Users { + l = len(s) + n += 1 + l + sovRpc(uint64(l)) + } + } + return n +} + +func (m *AuthRoleDeleteResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleGrantPermissionResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func (m *AuthRoleRevokePermissionResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + +func sovRpc(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozRpc(x uint64) (n int) { + return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ResponseHeader) 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 ErrIntOverflowRpc + } + 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: ResponseHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + m.ClusterId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ClusterId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) + } + m.MemberId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.MemberId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + } + m.Revision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Revision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) + } + m.RaftTerm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.RaftTerm |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RangeRequest) 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 ErrIntOverflowRpc + } + 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: RangeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RangeEnd = append(m.RangeEnd[:0], data[iNdEx:postIndex]...) + if m.RangeEnd == nil { + m.RangeEnd = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Limit |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + } + m.Revision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Revision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SortOrder", wireType) + } + m.SortOrder = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.SortOrder |= (RangeRequest_SortOrder(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SortTarget", wireType) + } + m.SortTarget = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.SortTarget |= (RangeRequest_SortTarget(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Serializable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Serializable = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeysOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.KeysOnly = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CountOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.CountOnly = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RangeResponse) 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 ErrIntOverflowRpc + } + 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: RangeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kvs = append(m.Kvs, &mvccpb.KeyValue{}) + if err := m.Kvs[len(m.Kvs)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field More", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.More = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Count |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PutRequest) 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 ErrIntOverflowRpc + } + 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: PutRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], data[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) + } + m.Lease = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Lease |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PutResponse) 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 ErrIntOverflowRpc + } + 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: PutResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteRangeRequest) 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 ErrIntOverflowRpc + } + 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: DeleteRangeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RangeEnd = append(m.RangeEnd[:0], data[iNdEx:postIndex]...) + if m.RangeEnd == nil { + m.RangeEnd = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteRangeResponse) 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 ErrIntOverflowRpc + } + 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: DeleteRangeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType) + } + m.Deleted = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Deleted |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RequestOp) 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 ErrIntOverflowRpc + } + 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: RequestOp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestOp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &RangeRequest{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.Request = &RequestOp_RequestRange{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestPut", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &PutRequest{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.Request = &RequestOp_RequestPut{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestDeleteRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &DeleteRangeRequest{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.Request = &RequestOp_RequestDeleteRange{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResponseOp) 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 ErrIntOverflowRpc + } + 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: ResponseOp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResponseOp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &RangeResponse{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.Response = &ResponseOp_ResponseRange{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponsePut", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &PutResponse{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.Response = &ResponseOp_ResponsePut{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseDeleteRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &DeleteRangeResponse{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.Response = &ResponseOp_ResponseDeleteRange{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Compare) 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 ErrIntOverflowRpc + } + 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: Compare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Compare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + m.Result = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Result |= (Compare_CompareResult(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + m.Target = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Target |= (Compare_CompareTarget(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TargetUnion = &Compare_Version{v} + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TargetUnion = &Compare_CreateRevision{v} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TargetUnion = &Compare_ModRevision{v} + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := make([]byte, postIndex-iNdEx) + copy(v, data[iNdEx:postIndex]) + m.TargetUnion = &Compare_Value{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TxnRequest) 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 ErrIntOverflowRpc + } + 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: TxnRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TxnRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Compare", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Compare = append(m.Compare, &Compare{}) + if err := m.Compare[len(m.Compare)-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 Success", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Success = append(m.Success, &RequestOp{}) + if err := m.Success[len(m.Success)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Failure = append(m.Failure, &RequestOp{}) + if err := m.Failure[len(m.Failure)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TxnResponse) 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 ErrIntOverflowRpc + } + 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: TxnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TxnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Succeeded = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Responses = append(m.Responses, &ResponseOp{}) + if err := m.Responses[len(m.Responses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactionRequest) 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 ErrIntOverflowRpc + } + 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: CompactionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + } + m.Revision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Revision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Physical = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactionResponse) 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 ErrIntOverflowRpc + } + 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: CompactionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HashRequest) 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 ErrIntOverflowRpc + } + 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: HashRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HashRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HashResponse) 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 ErrIntOverflowRpc + } + 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: HashResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HashResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + m.Hash = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Hash |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SnapshotRequest) 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 ErrIntOverflowRpc + } + 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: SnapshotRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SnapshotResponse) 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 ErrIntOverflowRpc + } + 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: SnapshotResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemainingBytes", wireType) + } + m.RemainingBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.RemainingBytes |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Blob = append(m.Blob[:0], data[iNdEx:postIndex]...) + if m.Blob == nil { + m.Blob = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchRequest) 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 ErrIntOverflowRpc + } + 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: WatchRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateRequest", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &WatchCreateRequest{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.RequestUnion = &WatchRequest_CreateRequest{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &WatchCancelRequest{} + if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + m.RequestUnion = &WatchRequest_CancelRequest{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchCreateRequest) 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 ErrIntOverflowRpc + } + 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: WatchCreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RangeEnd = append(m.RangeEnd[:0], data[iNdEx:postIndex]...) + if m.RangeEnd == nil { + m.RangeEnd = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartRevision", wireType) + } + m.StartRevision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.StartRevision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProgressNotify", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ProgressNotify = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchCancelRequest) 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 ErrIntOverflowRpc + } + 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: WatchCancelRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) + } + m.WatchId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.WatchId |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchResponse) 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 ErrIntOverflowRpc + } + 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: WatchResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) + } + m.WatchId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.WatchId |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Created = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Canceled = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) + } + m.CompactRevision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.CompactRevision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Events = append(m.Events, &mvccpb.Event{}) + if err := m.Events[len(m.Events)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LeaseGrantRequest) 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 ErrIntOverflowRpc + } + 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: LeaseGrantRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LeaseGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) + } + m.TTL = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.TTL |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LeaseGrantResponse) 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 ErrIntOverflowRpc + } + 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: LeaseGrantResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LeaseGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) + } + m.TTL = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.TTL |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LeaseRevokeRequest) 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 ErrIntOverflowRpc + } + 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: LeaseRevokeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LeaseRevokeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LeaseRevokeResponse) 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 ErrIntOverflowRpc + } + 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: LeaseRevokeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LeaseRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LeaseKeepAliveRequest) 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 ErrIntOverflowRpc + } + 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: LeaseKeepAliveRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LeaseKeepAliveRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LeaseKeepAliveResponse) 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 ErrIntOverflowRpc + } + 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: LeaseKeepAliveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LeaseKeepAliveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) + } + m.TTL = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.TTL |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Member) 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 ErrIntOverflowRpc + } + 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: Member: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PeerURLs = append(m.PeerURLs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientURLs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClientURLs = append(m.ClientURLs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberAddRequest) 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 ErrIntOverflowRpc + } + 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: MemberAddRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PeerURLs = append(m.PeerURLs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberAddResponse) 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 ErrIntOverflowRpc + } + 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: MemberAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Member == nil { + m.Member = &Member{} + } + if err := m.Member.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberRemoveRequest) 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 ErrIntOverflowRpc + } + 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: MemberRemoveRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberRemoveResponse) 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 ErrIntOverflowRpc + } + 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: MemberRemoveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberUpdateRequest) 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 ErrIntOverflowRpc + } + 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: MemberUpdateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PeerURLs = append(m.PeerURLs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberUpdateResponse) 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 ErrIntOverflowRpc + } + 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: MemberUpdateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberListRequest) 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 ErrIntOverflowRpc + } + 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: MemberListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberListRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemberListResponse) 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 ErrIntOverflowRpc + } + 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: MemberListResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemberListResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Members = append(m.Members, &Member{}) + if err := m.Members[len(m.Members)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DefragmentRequest) 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 ErrIntOverflowRpc + } + 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: DefragmentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefragmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DefragmentResponse) 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 ErrIntOverflowRpc + } + 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: DefragmentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefragmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlarmRequest) 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 ErrIntOverflowRpc + } + 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: AlarmRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlarmRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + m.Action = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Action |= (AlarmRequest_AlarmAction(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.MemberID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) + } + m.Alarm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Alarm |= (AlarmType(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlarmMember) 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 ErrIntOverflowRpc + } + 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: AlarmMember: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlarmMember: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.MemberID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) + } + m.Alarm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Alarm |= (AlarmType(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlarmResponse) 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 ErrIntOverflowRpc + } + 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: AlarmResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlarmResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alarms = append(m.Alarms, &AlarmMember{}) + if err := m.Alarms[len(m.Alarms)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatusRequest) 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 ErrIntOverflowRpc + } + 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: StatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatusResponse) 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 ErrIntOverflowRpc + } + 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: StatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DbSize", wireType) + } + m.DbSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.DbSize |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) + } + m.Leader = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Leader |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType) + } + m.RaftIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.RaftIndex |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) + } + m.RaftTerm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.RaftTerm |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthEnableRequest) 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 ErrIntOverflowRpc + } + 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: AuthEnableRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthEnableRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthDisableRequest) 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 ErrIntOverflowRpc + } + 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: AuthDisableRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthDisableRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthenticateRequest) 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 ErrIntOverflowRpc + } + 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: AuthenticateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserAddRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserAddRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserGetRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserGetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserDeleteRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserDeleteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserChangePasswordRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserChangePasswordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserGrantRoleRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserGrantRoleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserGrantRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Role = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserRevokeRoleRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserRevokeRoleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserRevokeRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Role = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleAddRequest) 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 ErrIntOverflowRpc + } + 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: AuthRoleAddRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleGetRequest) 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 ErrIntOverflowRpc + } + 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: AuthRoleGetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Role = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserListRequest) 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 ErrIntOverflowRpc + } + 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: AuthUserListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserListRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleListRequest) 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 ErrIntOverflowRpc + } + 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: AuthRoleListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleListRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleDeleteRequest) 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 ErrIntOverflowRpc + } + 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: AuthRoleDeleteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Role = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleGrantPermissionRequest) 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 ErrIntOverflowRpc + } + 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: AuthRoleGrantPermissionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Perm == nil { + m.Perm = &authpb.Permission{} + } + if err := m.Perm.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleRevokePermissionRequest) 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 ErrIntOverflowRpc + } + 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: AuthRoleRevokePermissionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Role = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RangeEnd = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthEnableResponse) 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 ErrIntOverflowRpc + } + 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: AuthEnableResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthEnableResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthDisableResponse) 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 ErrIntOverflowRpc + } + 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: AuthDisableResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthDisableResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthenticateResponse) 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 ErrIntOverflowRpc + } + 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: AuthenticateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Token = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserAddResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserGetResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserGetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Roles = append(m.Roles, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserDeleteResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserDeleteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserChangePasswordResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserChangePasswordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserChangePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserGrantRoleResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserGrantRoleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserGrantRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserRevokeRoleResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserRevokeRoleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserRevokeRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleAddResponse) 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 ErrIntOverflowRpc + } + 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: AuthRoleAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleGetResponse) 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 ErrIntOverflowRpc + } + 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: AuthRoleGetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Perm = append(m.Perm, &authpb.Permission{}) + if err := m.Perm[len(m.Perm)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleListResponse) 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 ErrIntOverflowRpc + } + 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: AuthRoleListResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleListResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Roles = append(m.Roles, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthUserListResponse) 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 ErrIntOverflowRpc + } + 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: AuthUserListResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthUserListResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + 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 ErrInvalidLengthRpc + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Users = append(m.Users, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleDeleteResponse) 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 ErrIntOverflowRpc + } + 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: AuthRoleDeleteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleGrantPermissionResponse) 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 ErrIntOverflowRpc + } + 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: AuthRoleGrantPermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthRoleRevokePermissionResponse) 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 ErrIntOverflowRpc + } + 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: AuthRoleRevokePermissionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpc(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, ErrIntOverflowRpc + } + 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, ErrIntOverflowRpc + } + 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, ErrIntOverflowRpc + } + 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, ErrInvalidLengthRpc + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpc + } + 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 := skipRpc(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 ( + ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") +) + +var fileDescriptorRpc = []byte{ + // 3154 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x72, 0xe3, 0xc6, + 0xf1, 0x17, 0x48, 0x4a, 0x14, 0x9b, 0x14, 0xc5, 0x1d, 0x69, 0xd7, 0x14, 0x56, 0xab, 0xd5, 0xce, + 0x7e, 0xc9, 0x6b, 0x5b, 0xb4, 0x65, 0xff, 0xff, 0x87, 0x4d, 0xca, 0x55, 0x92, 0xc8, 0xac, 0x64, + 0xc9, 0xd2, 0x1a, 0xd2, 0xca, 0x4e, 0x55, 0x2a, 0x2a, 0x88, 0x9c, 0x25, 0x59, 0x22, 0x01, 0x1a, + 0x00, 0xb9, 0x2b, 0x27, 0xa9, 0x4a, 0xb9, 0xe2, 0x43, 0x72, 0xf5, 0x21, 0x5f, 0xc7, 0x3c, 0x43, + 0x6e, 0x79, 0x80, 0x54, 0x2e, 0x71, 0x55, 0x5e, 0x20, 0xb5, 0xc9, 0x21, 0x87, 0xdc, 0x53, 0x39, + 0xa4, 0x92, 0x9a, 0x2f, 0x60, 0x00, 0x02, 0x94, 0x1c, 0xc4, 0x17, 0x09, 0xd3, 0xd3, 0xd3, 0xbf, + 0x9e, 0x9e, 0xe9, 0x46, 0x77, 0x83, 0x50, 0x70, 0x06, 0xcd, 0xf5, 0x81, 0x63, 0x7b, 0x36, 0x2a, + 0x11, 0xaf, 0xd9, 0x72, 0x89, 0x33, 0x22, 0xce, 0xe0, 0x4c, 0x5f, 0x6c, 0xdb, 0x6d, 0x9b, 0x4d, + 0xd4, 0xe8, 0x13, 0xe7, 0xd1, 0x97, 0x28, 0x4f, 0xad, 0x3f, 0x6a, 0x36, 0xd9, 0x9f, 0xc1, 0x59, + 0xed, 0x7c, 0x24, 0xa6, 0x6e, 0xb2, 0x29, 0x73, 0xe8, 0x75, 0xd8, 0x9f, 0xc1, 0x19, 0xfb, 0x27, + 0x26, 0x97, 0xdb, 0xb6, 0xdd, 0xee, 0x91, 0x9a, 0x39, 0xe8, 0xd6, 0x4c, 0xcb, 0xb2, 0x3d, 0xd3, + 0xeb, 0xda, 0x96, 0xcb, 0x67, 0xf1, 0x17, 0x1a, 0x94, 0x0d, 0xe2, 0x0e, 0x6c, 0xcb, 0x25, 0x3b, + 0xc4, 0x6c, 0x11, 0x07, 0xdd, 0x02, 0x68, 0xf6, 0x86, 0xae, 0x47, 0x9c, 0xd3, 0x6e, 0xab, 0xaa, + 0xad, 0x6a, 0x6b, 0x39, 0xa3, 0x20, 0x28, 0xbb, 0x2d, 0x74, 0x13, 0x0a, 0x7d, 0xd2, 0x3f, 0xe3, + 0xb3, 0x19, 0x36, 0x3b, 0xcb, 0x09, 0xbb, 0x2d, 0xa4, 0xc3, 0xac, 0x43, 0x46, 0x5d, 0xb7, 0x6b, + 0x5b, 0xd5, 0xec, 0xaa, 0xb6, 0x96, 0x35, 0xfc, 0x31, 0x5d, 0xe8, 0x98, 0xcf, 0xbd, 0x53, 0x8f, + 0x38, 0xfd, 0x6a, 0x8e, 0x2f, 0xa4, 0x84, 0x63, 0xe2, 0xf4, 0xf1, 0x57, 0x59, 0x28, 0x19, 0xa6, + 0xd5, 0x26, 0x06, 0xf9, 0x74, 0x48, 0x5c, 0x0f, 0x55, 0x20, 0x7b, 0x4e, 0x2e, 0x18, 0x7c, 0xc9, + 0xa0, 0x8f, 0x7c, 0xbd, 0xd5, 0x26, 0xa7, 0xc4, 0xe2, 0xc0, 0x25, 0xba, 0xde, 0x6a, 0x93, 0x86, + 0xd5, 0x42, 0x8b, 0x30, 0xdd, 0xeb, 0xf6, 0xbb, 0x9e, 0x40, 0xe5, 0x83, 0x90, 0x3a, 0xb9, 0x88, + 0x3a, 0xdb, 0x00, 0xae, 0xed, 0x78, 0xa7, 0xb6, 0xd3, 0x22, 0x4e, 0x75, 0x7a, 0x55, 0x5b, 0x2b, + 0x6f, 0xdc, 0x5b, 0x57, 0x0f, 0x62, 0x5d, 0x55, 0x68, 0xfd, 0xc8, 0x76, 0xbc, 0x43, 0xca, 0x6b, + 0x14, 0x5c, 0xf9, 0x88, 0xbe, 0x03, 0x45, 0x26, 0xc4, 0x33, 0x9d, 0x36, 0xf1, 0xaa, 0x33, 0x4c, + 0xca, 0xfd, 0x4b, 0xa4, 0x1c, 0x33, 0x66, 0x83, 0xc1, 0xf3, 0x67, 0x84, 0xa1, 0xe4, 0x12, 0xa7, + 0x6b, 0xf6, 0xba, 0x9f, 0x99, 0x67, 0x3d, 0x52, 0xcd, 0xaf, 0x6a, 0x6b, 0xb3, 0x46, 0x88, 0x46, + 0xf7, 0x7f, 0x4e, 0x2e, 0xdc, 0x53, 0xdb, 0xea, 0x5d, 0x54, 0x67, 0x19, 0xc3, 0x2c, 0x25, 0x1c, + 0x5a, 0xbd, 0x0b, 0x76, 0x68, 0xf6, 0xd0, 0xf2, 0xf8, 0x6c, 0x81, 0xcd, 0x16, 0x18, 0x85, 0x4e, + 0xe3, 0x75, 0x28, 0xf8, 0xfa, 0xa3, 0x59, 0xc8, 0x1d, 0x1c, 0x1e, 0x34, 0x2a, 0x53, 0x08, 0x60, + 0x66, 0xf3, 0x68, 0xbb, 0x71, 0x50, 0xaf, 0x68, 0xa8, 0x08, 0xf9, 0x7a, 0x83, 0x0f, 0x32, 0x78, + 0x0b, 0x20, 0xd0, 0x14, 0xe5, 0x21, 0xbb, 0xd7, 0xf8, 0x6e, 0x65, 0x8a, 0xf2, 0x9c, 0x34, 0x8c, + 0xa3, 0xdd, 0xc3, 0x83, 0x8a, 0x46, 0x17, 0x6f, 0x1b, 0x8d, 0xcd, 0xe3, 0x46, 0x25, 0x43, 0x39, + 0x3e, 0x3c, 0xac, 0x57, 0xb2, 0xa8, 0x00, 0xd3, 0x27, 0x9b, 0xfb, 0xcf, 0x1a, 0x95, 0x1c, 0xfe, + 0x52, 0x83, 0x39, 0xb1, 0x77, 0x7e, 0xbf, 0xd0, 0x7b, 0x30, 0xd3, 0x61, 0x77, 0x8c, 0x1d, 0x6b, + 0x71, 0x63, 0x39, 0x62, 0xa8, 0xd0, 0x3d, 0x34, 0x04, 0x2f, 0xc2, 0x90, 0x3d, 0x1f, 0xb9, 0xd5, + 0xcc, 0x6a, 0x76, 0xad, 0xb8, 0x51, 0x59, 0xe7, 0x97, 0x7f, 0x7d, 0x8f, 0x5c, 0x9c, 0x98, 0xbd, + 0x21, 0x31, 0xe8, 0x24, 0x42, 0x90, 0xeb, 0xdb, 0x0e, 0x61, 0xa7, 0x3f, 0x6b, 0xb0, 0x67, 0x7a, + 0x25, 0x98, 0x01, 0xc4, 0xc9, 0xf3, 0x01, 0xfe, 0x00, 0xe0, 0xe9, 0xd0, 0x4b, 0xbe, 0x65, 0x8b, + 0x30, 0x3d, 0xa2, 0x72, 0xc5, 0x0d, 0xe3, 0x03, 0x76, 0xbd, 0x88, 0xe9, 0x12, 0xff, 0x7a, 0xd1, + 0x01, 0xde, 0x86, 0x22, 0x93, 0x95, 0x66, 0x7b, 0x78, 0x1b, 0x50, 0x9d, 0xf4, 0x88, 0x47, 0x52, + 0x5c, 0x7f, 0x4c, 0x60, 0x21, 0x24, 0x24, 0x95, 0xc1, 0xab, 0x90, 0x6f, 0x31, 0x61, 0x1c, 0x27, + 0x6b, 0xc8, 0x21, 0xfe, 0xbb, 0x06, 0x05, 0xa1, 0xe1, 0xe1, 0x00, 0x6d, 0xc2, 0x9c, 0xc3, 0x07, + 0xa7, 0x4c, 0x11, 0x01, 0xa2, 0x27, 0x5f, 0xff, 0x9d, 0x29, 0xa3, 0x24, 0x96, 0x30, 0x32, 0xfa, + 0x16, 0x14, 0xa5, 0x88, 0xc1, 0xd0, 0x63, 0x70, 0xc5, 0x8d, 0x6a, 0x58, 0x40, 0x70, 0x5c, 0x3b, + 0x53, 0x06, 0x08, 0xf6, 0xa7, 0x43, 0x0f, 0x1d, 0xc3, 0xa2, 0x5c, 0xcc, 0x15, 0x14, 0x6a, 0x64, + 0x99, 0x94, 0xd5, 0xb0, 0x94, 0x71, 0x1b, 0xef, 0x4c, 0x19, 0x48, 0xac, 0x57, 0x26, 0xb7, 0x0a, + 0x90, 0x17, 0x54, 0xfc, 0x0f, 0x0d, 0x40, 0xda, 0xe8, 0x70, 0x80, 0xea, 0x50, 0x76, 0xc4, 0x28, + 0xb4, 0xe1, 0x9b, 0xb1, 0x1b, 0x16, 0xa6, 0x9d, 0x32, 0xe6, 0xe4, 0x22, 0xbe, 0xe5, 0xf7, 0xa1, + 0xe4, 0x4b, 0x09, 0xf6, 0xbc, 0x14, 0xb3, 0x67, 0x5f, 0x42, 0x51, 0x2e, 0xa0, 0xbb, 0xfe, 0x18, + 0xae, 0xfb, 0xeb, 0x63, 0xb6, 0x7d, 0x67, 0xc2, 0xb6, 0x7d, 0x81, 0x0b, 0x52, 0x82, 0xba, 0x71, + 0xa0, 0xc1, 0x92, 0x93, 0xf1, 0xaf, 0xb2, 0x90, 0xdf, 0xb6, 0xfb, 0x03, 0xd3, 0xa1, 0x67, 0x34, + 0xe3, 0x10, 0x77, 0xd8, 0xf3, 0xd8, 0x76, 0xcb, 0x1b, 0x77, 0xc3, 0x08, 0x82, 0x4d, 0xfe, 0x37, + 0x18, 0xab, 0x21, 0x96, 0xd0, 0xc5, 0x22, 0x36, 0x66, 0xae, 0xb0, 0x58, 0x44, 0x46, 0xb1, 0x44, + 0x3a, 0x41, 0x36, 0x70, 0x02, 0x1d, 0xf2, 0x23, 0xe2, 0x04, 0xf1, 0x7c, 0x67, 0xca, 0x90, 0x04, + 0xf4, 0x3a, 0xcc, 0x37, 0x1d, 0x62, 0x52, 0x7b, 0xc8, 0x98, 0x3f, 0x2d, 0x78, 0xca, 0x7c, 0xc2, + 0x90, 0xb1, 0xff, 0x2e, 0x94, 0xfa, 0x76, 0x2b, 0xe0, 0x9b, 0x11, 0x7c, 0xc5, 0xbe, 0xdd, 0xf2, + 0x99, 0x6e, 0xc8, 0x48, 0x40, 0x83, 0x71, 0x69, 0x67, 0x4a, 0xc4, 0x02, 0xfc, 0x0e, 0xcc, 0x85, + 0xf6, 0x4a, 0x63, 0x5e, 0xe3, 0xa3, 0x67, 0x9b, 0xfb, 0x3c, 0x40, 0x3e, 0x61, 0x31, 0xd1, 0xa8, + 0x68, 0x34, 0xce, 0xee, 0x37, 0x8e, 0x8e, 0x2a, 0x19, 0xfc, 0x6d, 0x7f, 0x89, 0x88, 0xa8, 0x4a, + 0x20, 0x9d, 0x52, 0x02, 0xa9, 0x26, 0x03, 0x69, 0x26, 0x08, 0xa4, 0xd9, 0xad, 0x32, 0x94, 0xb8, + 0x41, 0x4e, 0x87, 0x56, 0xd7, 0xb6, 0xf0, 0x6f, 0x34, 0x80, 0xe3, 0x97, 0x96, 0x0c, 0x15, 0x35, + 0xc8, 0x37, 0xb9, 0xf0, 0xaa, 0xc6, 0x62, 0xe4, 0xf5, 0x58, 0x1b, 0x1b, 0x92, 0x0b, 0xbd, 0x03, + 0x79, 0x77, 0xd8, 0x6c, 0x12, 0x57, 0x06, 0xd5, 0xd7, 0xa2, 0x61, 0x41, 0x78, 0xb8, 0x21, 0xf9, + 0xe8, 0x92, 0xe7, 0x66, 0xb7, 0x37, 0x64, 0x21, 0x76, 0xf2, 0x12, 0xc1, 0x87, 0x7f, 0xa9, 0x41, + 0x91, 0x69, 0x99, 0x2a, 0x16, 0x2d, 0x43, 0x81, 0xe9, 0x40, 0x5a, 0x22, 0x1a, 0xcd, 0x1a, 0x01, + 0x01, 0xfd, 0x3f, 0x14, 0xe4, 0x95, 0x75, 0x85, 0x62, 0xd5, 0x78, 0xb1, 0x87, 0x03, 0x23, 0x60, + 0xc5, 0x7b, 0x70, 0x8d, 0x59, 0xa5, 0x49, 0x53, 0x21, 0x69, 0x47, 0x35, 0x59, 0xd0, 0x22, 0xc9, + 0x82, 0x0e, 0xb3, 0x83, 0xce, 0x85, 0xdb, 0x6d, 0x9a, 0x3d, 0xa1, 0x85, 0x3f, 0xc6, 0x1f, 0x00, + 0x52, 0x85, 0xa5, 0x7a, 0x19, 0xcc, 0x41, 0x71, 0xc7, 0x74, 0x3b, 0x42, 0x25, 0xfc, 0x09, 0x94, + 0xf8, 0x30, 0x95, 0x0d, 0x11, 0xe4, 0x3a, 0xa6, 0xdb, 0x61, 0x8a, 0xcf, 0x19, 0xec, 0x19, 0x5f, + 0x83, 0xf9, 0x23, 0xcb, 0x1c, 0xb8, 0x1d, 0x5b, 0x06, 0x57, 0x9a, 0x0a, 0x56, 0x02, 0x5a, 0x2a, + 0xc4, 0x87, 0x30, 0xef, 0x90, 0xbe, 0xd9, 0xb5, 0xba, 0x56, 0xfb, 0xf4, 0xec, 0xc2, 0x23, 0xae, + 0xc8, 0x14, 0xcb, 0x3e, 0x79, 0x8b, 0x52, 0xa9, 0x6a, 0x67, 0x3d, 0xfb, 0x4c, 0xb8, 0x38, 0x7b, + 0xc6, 0xbf, 0xd5, 0xa0, 0xf4, 0xb1, 0xe9, 0x35, 0xa5, 0x15, 0xd0, 0x2e, 0x94, 0x7d, 0xc7, 0x66, + 0x14, 0xa1, 0x4b, 0x24, 0xc2, 0xb3, 0x35, 0xdb, 0xc2, 0xd1, 0x65, 0x84, 0x9f, 0x6b, 0xaa, 0x04, + 0x26, 0xca, 0xb4, 0x9a, 0xa4, 0xe7, 0x8b, 0xca, 0x24, 0x8b, 0x62, 0x8c, 0xaa, 0x28, 0x95, 0xb0, + 0x35, 0x1f, 0xbc, 0xfd, 0xb8, 0x5b, 0x7e, 0xa9, 0x01, 0x1a, 0xd7, 0xe1, 0xeb, 0x26, 0xb2, 0xf7, + 0xa1, 0xec, 0x7a, 0xa6, 0xe3, 0x9d, 0x46, 0xf2, 0xe8, 0x39, 0x46, 0xf5, 0x83, 0xd3, 0x43, 0x98, + 0x1f, 0x38, 0x76, 0xdb, 0x21, 0xae, 0x7b, 0x6a, 0xd9, 0x5e, 0xf7, 0xf9, 0x05, 0x0b, 0x88, 0xb3, + 0x46, 0x59, 0x92, 0x0f, 0x18, 0x15, 0xd7, 0xa4, 0x52, 0xaa, 0xf2, 0x68, 0x09, 0x66, 0x5f, 0x50, + 0xaa, 0xcc, 0xf0, 0xb3, 0x46, 0x9e, 0x8d, 0x77, 0x5b, 0xf8, 0x6f, 0x1a, 0xcc, 0x09, 0xf3, 0xa7, + 0xba, 0x03, 0x2a, 0x44, 0x26, 0x04, 0x41, 0x13, 0x0c, 0x7e, 0x2c, 0x2d, 0x91, 0xb0, 0xc9, 0x21, + 0xf5, 0x33, 0x6e, 0x65, 0xd2, 0x12, 0xfb, 0xf1, 0xc7, 0xe8, 0x75, 0xa8, 0x34, 0xb9, 0x9f, 0x45, + 0x02, 0xbc, 0x31, 0x2f, 0xe8, 0xbe, 0x75, 0xee, 0xc3, 0x0c, 0x19, 0x11, 0xcb, 0x73, 0xab, 0x45, + 0x16, 0x14, 0xe6, 0x64, 0xd6, 0xd8, 0xa0, 0x54, 0x43, 0x4c, 0xe2, 0xff, 0x83, 0x6b, 0xfb, 0x34, + 0x91, 0x7b, 0xe2, 0x98, 0x96, 0x9a, 0x12, 0x1e, 0x1f, 0xef, 0x0b, 0xab, 0x64, 0xbd, 0xe3, 0x7d, + 0x54, 0x86, 0xcc, 0x6e, 0x5d, 0xec, 0x21, 0xd3, 0xad, 0xe3, 0xcf, 0x35, 0x40, 0xea, 0xba, 0x54, + 0x66, 0x8a, 0x08, 0x97, 0xf0, 0xd9, 0x00, 0x7e, 0x11, 0xa6, 0x89, 0xe3, 0xd8, 0x0e, 0x33, 0x48, + 0xc1, 0xe0, 0x03, 0x7c, 0x4f, 0xe8, 0x60, 0x90, 0x91, 0x7d, 0xee, 0x5f, 0x36, 0x2e, 0x4d, 0xf3, + 0x55, 0xdd, 0x83, 0x85, 0x10, 0x57, 0xaa, 0xe0, 0xf4, 0x10, 0xae, 0x33, 0x61, 0x7b, 0x84, 0x0c, + 0x36, 0x7b, 0xdd, 0x51, 0x22, 0xea, 0x00, 0x6e, 0x44, 0x19, 0xbf, 0x59, 0x1b, 0xe1, 0x0e, 0xcc, + 0x7c, 0xc8, 0x6a, 0x50, 0x45, 0x97, 0x1c, 0xe3, 0x45, 0x90, 0xb3, 0xcc, 0x3e, 0x4f, 0xe7, 0x0b, + 0x06, 0x7b, 0x66, 0xd1, 0x9c, 0x10, 0xe7, 0x99, 0xb1, 0xcf, 0xdf, 0x1a, 0x05, 0xc3, 0x1f, 0xa3, + 0x15, 0x5a, 0xfd, 0x76, 0x89, 0xe5, 0xb1, 0xd9, 0x1c, 0x9b, 0x55, 0x28, 0x78, 0x1d, 0x2a, 0x1c, + 0x69, 0xb3, 0xd5, 0x52, 0xde, 0x1c, 0xbe, 0x3c, 0x2d, 0x2c, 0x0f, 0xbf, 0x80, 0x6b, 0x0a, 0x7f, + 0x2a, 0x33, 0xbc, 0x09, 0x33, 0xbc, 0xd0, 0x16, 0x41, 0x6b, 0x31, 0xbc, 0x8a, 0xc3, 0x18, 0x82, + 0x07, 0xdf, 0x87, 0x05, 0x41, 0x21, 0x7d, 0x3b, 0xee, 0xac, 0x98, 0x7d, 0xf0, 0x3e, 0x2c, 0x86, + 0xd9, 0x52, 0x5d, 0x91, 0x4d, 0x09, 0xfa, 0x6c, 0xd0, 0x52, 0x62, 0x60, 0xf4, 0x50, 0x54, 0x83, + 0x65, 0x22, 0x06, 0xf3, 0x15, 0x92, 0x22, 0x52, 0x29, 0xb4, 0x20, 0xcd, 0xbf, 0xdf, 0x75, 0xfd, + 0x37, 0xdd, 0x67, 0x80, 0x54, 0x62, 0xaa, 0x43, 0x59, 0x87, 0x3c, 0x37, 0xb8, 0x4c, 0xa6, 0xe2, + 0x4f, 0x45, 0x32, 0x51, 0x85, 0xea, 0xe4, 0xb9, 0x63, 0xb6, 0xfb, 0xc4, 0x8f, 0x39, 0x34, 0x85, + 0x50, 0x89, 0xa9, 0x76, 0xfc, 0x47, 0x0d, 0x4a, 0x9b, 0x3d, 0xd3, 0xe9, 0x4b, 0xe3, 0xbf, 0x0f, + 0x33, 0x3c, 0x37, 0x11, 0xf9, 0xfb, 0x83, 0xb0, 0x18, 0x95, 0x97, 0x0f, 0x36, 0x79, 0x26, 0x23, + 0x56, 0xd1, 0xc3, 0x12, 0xfd, 0x9d, 0x7a, 0xa4, 0xdf, 0x53, 0x47, 0x6f, 0xc1, 0xb4, 0x49, 0x97, + 0x30, 0x5f, 0x2c, 0x47, 0xb3, 0x42, 0x26, 0xed, 0xf8, 0x62, 0x40, 0x0c, 0xce, 0x85, 0xdf, 0x83, + 0xa2, 0x82, 0x40, 0x93, 0xdd, 0x27, 0x8d, 0xe3, 0xca, 0x14, 0x2a, 0xc1, 0xec, 0xe6, 0xf6, 0xf1, + 0xee, 0x09, 0xcf, 0x81, 0xcb, 0x00, 0xf5, 0x86, 0x3f, 0xce, 0xe0, 0x4f, 0xc4, 0x2a, 0xe1, 0xe1, + 0xaa, 0x3e, 0x5a, 0x92, 0x3e, 0x99, 0x2b, 0xe9, 0xf3, 0x12, 0xe6, 0xc4, 0xf6, 0x53, 0xdd, 0x81, + 0x77, 0x60, 0x86, 0xc9, 0x93, 0x57, 0x60, 0x29, 0x06, 0x56, 0x7a, 0x27, 0x67, 0xc4, 0xf3, 0x30, + 0x77, 0xe4, 0x99, 0xde, 0xd0, 0x95, 0x57, 0xe0, 0x0f, 0x1a, 0x94, 0x25, 0x25, 0x6d, 0xf5, 0x2e, + 0x4b, 0x24, 0x1e, 0xf3, 0xfc, 0x02, 0xe9, 0x06, 0xcc, 0xb4, 0xce, 0x8e, 0xba, 0x9f, 0xc9, 0x2e, + 0x86, 0x18, 0x51, 0x7a, 0x8f, 0xe3, 0xf0, 0xae, 0x9c, 0x18, 0xd1, 0xdc, 0xdb, 0x31, 0x9f, 0x7b, + 0xbb, 0x56, 0x8b, 0xbc, 0x64, 0x6f, 0xda, 0x9c, 0x11, 0x10, 0x58, 0xba, 0x2c, 0xba, 0x77, 0xac, + 0x7e, 0x52, 0xbb, 0x79, 0x0b, 0x70, 0x6d, 0x73, 0xe8, 0x75, 0x1a, 0x96, 0x79, 0xd6, 0x93, 0x41, + 0x00, 0x2f, 0x02, 0xa2, 0xc4, 0x7a, 0xd7, 0x55, 0xa9, 0x0d, 0x58, 0xa0, 0x54, 0x62, 0x79, 0xdd, + 0xa6, 0x12, 0x31, 0x64, 0xd8, 0xd6, 0x22, 0x61, 0xdb, 0x74, 0xdd, 0x17, 0xb6, 0xd3, 0x12, 0x5b, + 0xf3, 0xc7, 0xb8, 0xce, 0x85, 0x3f, 0x73, 0x43, 0x81, 0xf9, 0xeb, 0x4a, 0x59, 0x0b, 0xa4, 0x3c, + 0x21, 0xde, 0x04, 0x29, 0xf8, 0x0d, 0xb8, 0x2e, 0x39, 0x45, 0x0d, 0x3d, 0x81, 0xf9, 0x10, 0x6e, + 0x49, 0xe6, 0xed, 0x0e, 0x4d, 0xf4, 0x9e, 0x0a, 0xc0, 0xff, 0x56, 0xcf, 0x2d, 0xa8, 0xfa, 0x7a, + 0xb2, 0x1c, 0xc4, 0xee, 0xa9, 0x0a, 0x0c, 0x5d, 0x71, 0x67, 0x0a, 0x06, 0x7b, 0xa6, 0x34, 0xc7, + 0xee, 0xf9, 0x2f, 0x41, 0xfa, 0x8c, 0xb7, 0x61, 0x49, 0xca, 0x10, 0xd9, 0x41, 0x58, 0xc8, 0x98, + 0x42, 0x71, 0x42, 0x84, 0xc1, 0xe8, 0xd2, 0xc9, 0x66, 0x57, 0x39, 0xc3, 0xa6, 0x65, 0x32, 0x35, + 0x45, 0xe6, 0x75, 0x7e, 0x23, 0xa8, 0x62, 0x6a, 0xd0, 0x16, 0x64, 0x2a, 0x40, 0x25, 0x8b, 0x83, + 0xa0, 0xe4, 0xb1, 0x83, 0x18, 0x13, 0xfd, 0x3d, 0x58, 0xf1, 0x95, 0xa0, 0x76, 0x7b, 0x4a, 0x9c, + 0x7e, 0xd7, 0x75, 0x95, 0x22, 0x30, 0x6e, 0xe3, 0x0f, 0x20, 0x37, 0x20, 0x22, 0xa6, 0x14, 0x37, + 0xd0, 0x3a, 0xef, 0xb1, 0xaf, 0x2b, 0x8b, 0xd9, 0x3c, 0x6e, 0xc1, 0x6d, 0x29, 0x9d, 0x5b, 0x34, + 0x56, 0x7c, 0x54, 0x29, 0x59, 0x20, 0x70, 0xb3, 0x8e, 0x17, 0x08, 0x59, 0x7e, 0xf6, 0x7e, 0xab, + 0xef, 0x03, 0x6e, 0x48, 0xe9, 0x5b, 0xa9, 0xde, 0x15, 0x7b, 0xdc, 0xa6, 0xbe, 0x4b, 0xa6, 0x12, + 0x76, 0x06, 0x8b, 0x61, 0x4f, 0x4e, 0x15, 0xc6, 0x16, 0x61, 0xda, 0xb3, 0xcf, 0x89, 0x0c, 0x62, + 0x7c, 0x20, 0x15, 0xf6, 0xdd, 0x3c, 0x95, 0xc2, 0x66, 0x20, 0x8c, 0x5d, 0xc9, 0xb4, 0xfa, 0xd2, + 0xd3, 0x94, 0xf9, 0x0c, 0x1f, 0xe0, 0x03, 0xb8, 0x11, 0x0d, 0x13, 0xa9, 0x54, 0x3e, 0xe1, 0x17, + 0x38, 0x2e, 0x92, 0xa4, 0x92, 0xfb, 0x51, 0x10, 0x0c, 0x94, 0x80, 0x92, 0x4a, 0xa4, 0x01, 0x7a, + 0x5c, 0x7c, 0xf9, 0x5f, 0xdc, 0x57, 0x3f, 0xdc, 0xa4, 0x12, 0xe6, 0x06, 0xc2, 0xd2, 0x1f, 0x7f, + 0x10, 0x23, 0xb2, 0x13, 0x63, 0x84, 0x70, 0x92, 0x20, 0x8a, 0x7d, 0x03, 0x97, 0x4e, 0x60, 0x04, + 0x01, 0x34, 0x2d, 0x06, 0x7d, 0x87, 0xf8, 0x18, 0x6c, 0x20, 0x2f, 0xb6, 0x1a, 0x76, 0x53, 0x1d, + 0xc6, 0xc7, 0x41, 0xec, 0x1c, 0x8b, 0xcc, 0xa9, 0x04, 0x7f, 0x02, 0xab, 0xc9, 0x41, 0x39, 0x8d, + 0xe4, 0x47, 0x18, 0x0a, 0x7e, 0x42, 0xa9, 0x7c, 0x53, 0x2b, 0x42, 0xfe, 0xe0, 0xf0, 0xe8, 0xe9, + 0xe6, 0x76, 0xa3, 0xa2, 0x6d, 0xfc, 0x2b, 0x0b, 0x99, 0xbd, 0x13, 0xf4, 0x7d, 0x98, 0xe6, 0xcd, + 0xff, 0x09, 0xdf, 0x46, 0xf4, 0x49, 0x9f, 0x11, 0xf0, 0xf2, 0xe7, 0x7f, 0xfa, 0xeb, 0x97, 0x99, + 0x1b, 0xf8, 0x5a, 0x6d, 0xf4, 0xae, 0xd9, 0x1b, 0x74, 0xcc, 0xda, 0xf9, 0xa8, 0xc6, 0xde, 0x09, + 0x8f, 0xb5, 0x47, 0xe8, 0x04, 0xb2, 0x4f, 0x87, 0x1e, 0x4a, 0xfc, 0x70, 0xa2, 0x27, 0x7f, 0x5e, + 0xc0, 0x3a, 0x93, 0xbc, 0x88, 0xe7, 0x55, 0xc9, 0x83, 0xa1, 0x47, 0xe5, 0x8e, 0xa0, 0xa8, 0x7c, + 0x21, 0x40, 0x97, 0x7e, 0x52, 0xd1, 0x2f, 0xff, 0xfa, 0x80, 0x31, 0xc3, 0x5b, 0xc6, 0xaf, 0xa9, + 0x78, 0xfc, 0x43, 0x86, 0xba, 0x9f, 0xe3, 0x97, 0x56, 0x74, 0x3f, 0x41, 0xcf, 0x3b, 0xba, 0x1f, + 0xa5, 0xcf, 0x1c, 0xbf, 0x1f, 0xef, 0xa5, 0x45, 0xe5, 0xda, 0xe2, 0xab, 0x46, 0xd3, 0x43, 0xb7, + 0x63, 0x9a, 0xe4, 0x6a, 0x3b, 0x58, 0x5f, 0x4d, 0x66, 0x10, 0x48, 0x77, 0x18, 0xd2, 0x4d, 0x7c, + 0x43, 0x45, 0x6a, 0xfa, 0x7c, 0x8f, 0xb5, 0x47, 0x1b, 0x1d, 0x98, 0x66, 0xbd, 0x34, 0x74, 0x2a, + 0x1f, 0xf4, 0x98, 0x4e, 0x63, 0xc2, 0x0d, 0x08, 0x75, 0xe1, 0xf0, 0x12, 0x43, 0x5b, 0xc0, 0x65, + 0x1f, 0x8d, 0xb5, 0xd3, 0x1e, 0x6b, 0x8f, 0xd6, 0xb4, 0xb7, 0xb5, 0x8d, 0x7f, 0x66, 0x60, 0x9a, + 0x35, 0x5d, 0xd0, 0x00, 0x20, 0xe8, 0x4e, 0x45, 0xf7, 0x39, 0xd6, 0xef, 0x8a, 0xee, 0x73, 0xbc, + 0xb1, 0x85, 0x6f, 0x33, 0xe4, 0x25, 0xbc, 0xe8, 0x23, 0xb3, 0xcf, 0x9f, 0xb5, 0x36, 0xe5, 0xa2, + 0x66, 0x7d, 0x01, 0x45, 0xa5, 0xcb, 0x84, 0xe2, 0x24, 0x86, 0xda, 0x54, 0xd1, 0x6b, 0x12, 0xd3, + 0xa2, 0xc2, 0x77, 0x19, 0xe8, 0x2d, 0x5c, 0x55, 0x8d, 0xcb, 0x71, 0x1d, 0xc6, 0x49, 0x81, 0x7f, + 0xa2, 0x41, 0x39, 0xdc, 0x69, 0x42, 0x77, 0x63, 0x44, 0x47, 0x1b, 0x56, 0xfa, 0xbd, 0xc9, 0x4c, + 0x89, 0x2a, 0x70, 0xfc, 0x73, 0x42, 0x06, 0x26, 0xe5, 0x94, 0xb6, 0xff, 0x77, 0x16, 0xf2, 0xdb, + 0xfc, 0x07, 0x12, 0xc8, 0x83, 0x82, 0xdf, 0xef, 0x41, 0x2b, 0x71, 0xbd, 0x80, 0x20, 0x51, 0xd6, + 0x6f, 0x27, 0xce, 0x0b, 0x15, 0x1e, 0x30, 0x15, 0x56, 0xf1, 0x4d, 0x5f, 0x05, 0xf1, 0x43, 0x8c, + 0x1a, 0x2f, 0x79, 0x6b, 0x66, 0xab, 0x45, 0x0d, 0xf1, 0x63, 0x0d, 0x4a, 0x6a, 0x1b, 0x07, 0xdd, + 0x89, 0xed, 0x42, 0xa8, 0x9d, 0x20, 0x1d, 0x4f, 0x62, 0x11, 0xf8, 0xaf, 0x33, 0xfc, 0xbb, 0x78, + 0x25, 0x09, 0xdf, 0x61, 0xfc, 0x61, 0x15, 0x78, 0xe3, 0x26, 0x5e, 0x85, 0x50, 0x5f, 0x28, 0x5e, + 0x85, 0x70, 0xdf, 0xe7, 0x72, 0x15, 0x86, 0x8c, 0x9f, 0xaa, 0xf0, 0x12, 0x20, 0xe8, 0xeb, 0xa0, + 0x58, 0xe3, 0x2a, 0xa5, 0x43, 0xf4, 0xe6, 0x8f, 0xb7, 0x84, 0xf0, 0x43, 0x86, 0x7d, 0x07, 0x2f, + 0x27, 0x61, 0xf7, 0xba, 0x2e, 0xf5, 0x80, 0x8d, 0xdf, 0xe5, 0xa0, 0xf8, 0xa1, 0xd9, 0xb5, 0x3c, + 0x62, 0x99, 0x56, 0x93, 0xa0, 0x36, 0x4c, 0xb3, 0x77, 0x43, 0xd4, 0xdd, 0xd5, 0x66, 0x4b, 0xd4, + 0xdd, 0x43, 0x9d, 0x08, 0x7c, 0x9f, 0x41, 0xdf, 0xc6, 0xba, 0x0f, 0xdd, 0x0f, 0xe4, 0xd7, 0x58, + 0x17, 0x81, 0x6e, 0xf9, 0x1c, 0x66, 0x78, 0xd7, 0x00, 0x45, 0xa4, 0x85, 0xba, 0x0b, 0xfa, 0x72, + 0xfc, 0x64, 0xe2, 0x2d, 0x53, 0xb1, 0x5c, 0xc6, 0x4c, 0xc1, 0x7e, 0x00, 0x10, 0xb4, 0xa9, 0xa2, + 0xf6, 0x1d, 0xeb, 0x6a, 0xe9, 0xab, 0xc9, 0x0c, 0x02, 0xf8, 0x11, 0x03, 0xbe, 0x87, 0x6f, 0xc7, + 0x02, 0xb7, 0xfc, 0x05, 0x14, 0xbc, 0x09, 0xb9, 0x1d, 0xd3, 0xed, 0xa0, 0x48, 0xe8, 0x57, 0x3e, + 0x97, 0xe9, 0x7a, 0xdc, 0x94, 0x80, 0xba, 0xc7, 0xa0, 0x56, 0xf0, 0x52, 0x2c, 0x54, 0xc7, 0x74, + 0x69, 0x24, 0x45, 0x43, 0x98, 0x95, 0x9f, 0xc0, 0xd0, 0xad, 0x88, 0xcd, 0xc2, 0x9f, 0xcb, 0xf4, + 0x95, 0xa4, 0x69, 0x01, 0xb8, 0xc6, 0x00, 0x31, 0xbe, 0x15, 0x6f, 0x54, 0xc1, 0xfe, 0x58, 0x7b, + 0xf4, 0xb6, 0xb6, 0xf1, 0xb3, 0x0a, 0xe4, 0x68, 0x96, 0x42, 0x63, 0x77, 0x50, 0xdc, 0x45, 0x2d, + 0x3c, 0xd6, 0x52, 0x89, 0x5a, 0x78, 0xbc, 0x2e, 0x8c, 0x89, 0xdd, 0xec, 0x67, 0x62, 0x84, 0x71, + 0xd1, 0x1d, 0x7b, 0x50, 0x54, 0x4a, 0x40, 0x14, 0x23, 0x31, 0xdc, 0xb0, 0x89, 0xc6, 0xee, 0x98, + 0xfa, 0x11, 0xaf, 0x32, 0x50, 0x1d, 0x5f, 0x0f, 0x83, 0xb6, 0x38, 0x1b, 0x45, 0xfd, 0x21, 0x94, + 0xd4, 0x5a, 0x11, 0xc5, 0x08, 0x8d, 0x74, 0x84, 0xa2, 0xb1, 0x22, 0xae, 0xd4, 0x8c, 0x71, 0x1a, + 0xff, 0x47, 0x71, 0x92, 0x97, 0xa2, 0x7f, 0x0a, 0x79, 0x51, 0x41, 0xc6, 0xed, 0x37, 0xdc, 0x43, + 0x8a, 0xdb, 0x6f, 0xa4, 0xfc, 0x8c, 0x49, 0x04, 0x18, 0x2c, 0xcd, 0x94, 0x65, 0x80, 0x16, 0x90, + 0x4f, 0x88, 0x97, 0x04, 0x19, 0x74, 0x45, 0x92, 0x20, 0x95, 0x2a, 0x65, 0x22, 0x64, 0x9b, 0x78, + 0xe2, 0x2e, 0xcb, 0x12, 0x00, 0x25, 0x48, 0x54, 0xa3, 0x21, 0x9e, 0xc4, 0x92, 0x98, 0xbb, 0x05, + 0xa8, 0x22, 0x14, 0xa2, 0x1f, 0x01, 0x04, 0xe5, 0x6e, 0xf4, 0x75, 0x1c, 0xdb, 0x33, 0x8b, 0xbe, + 0x8e, 0xe3, 0x2b, 0xe6, 0x18, 0x0f, 0x0e, 0xc0, 0x79, 0xfe, 0x48, 0xe1, 0x7f, 0xae, 0x01, 0x1a, + 0x2f, 0x8f, 0xd1, 0x1b, 0xf1, 0x10, 0xb1, 0xed, 0x38, 0xfd, 0xcd, 0xab, 0x31, 0x27, 0x46, 0xcf, + 0x40, 0xaf, 0x26, 0x5b, 0x32, 0x78, 0x41, 0x35, 0xfb, 0x42, 0x83, 0xb9, 0x50, 0x81, 0x8d, 0x1e, + 0x24, 0x9c, 0x73, 0xa4, 0xa5, 0xa7, 0x3f, 0xbc, 0x94, 0x2f, 0x31, 0x63, 0x51, 0x6e, 0x85, 0xcc, + 0xd6, 0x7e, 0xaa, 0x41, 0x39, 0x5c, 0x95, 0xa3, 0x04, 0x80, 0xb1, 0xbe, 0xa0, 0xbe, 0x76, 0x39, + 0xe3, 0x15, 0x4e, 0x2b, 0x48, 0xe0, 0x3e, 0x85, 0xbc, 0x28, 0xe6, 0xe3, 0xdc, 0x22, 0xdc, 0x56, + 0x8c, 0x73, 0x8b, 0x48, 0x27, 0x20, 0xc9, 0x2d, 0x68, 0x5d, 0xac, 0x78, 0xa2, 0x28, 0xf9, 0x93, + 0x20, 0x27, 0x7b, 0x62, 0xa4, 0x5f, 0x30, 0x11, 0x32, 0xf0, 0x44, 0x59, 0xf0, 0xa3, 0x04, 0x89, + 0x97, 0x78, 0x62, 0xb4, 0x5f, 0x90, 0xe4, 0x89, 0x0c, 0x55, 0xf1, 0xc4, 0xa0, 0x3e, 0x8f, 0xf3, + 0xc4, 0xb1, 0xa6, 0x69, 0x9c, 0x27, 0x8e, 0x97, 0xf8, 0x49, 0x67, 0xcb, 0xc0, 0x43, 0x9e, 0xb8, + 0x10, 0x53, 0xcf, 0xa3, 0x37, 0x13, 0x6c, 0x1a, 0xdb, 0x90, 0xd5, 0xdf, 0xba, 0x22, 0xf7, 0x64, + 0x0f, 0xe0, 0xa7, 0x21, 0x3d, 0xe0, 0xd7, 0x1a, 0x2c, 0xc6, 0x35, 0x04, 0x50, 0x02, 0x58, 0x42, + 0x37, 0x57, 0x5f, 0xbf, 0x2a, 0xfb, 0x15, 0xec, 0xe6, 0xfb, 0xc4, 0x56, 0xe5, 0xf7, 0xaf, 0x56, + 0xb4, 0xaf, 0x5e, 0xad, 0x68, 0x7f, 0x7e, 0xb5, 0xa2, 0xfd, 0xe2, 0x2f, 0x2b, 0x53, 0x67, 0x33, + 0xec, 0xb7, 0xda, 0xef, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0x45, 0x26, 0x54, 0x69, 0x32, 0x2e, + 0x00, 0x00, +} diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go new file mode 100644 index 0000000000..a2efbcd982 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go @@ -0,0 +1,1866 @@ +// Code generated by protoc-gen-grpc-gateway +// source: etcdserver/etcdserverpb/rpc.proto +// DO NOT EDIT! + +/* +Package etcdserverpb is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package etcdserverpb + +import ( + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" +) + +var _ codes.Code +var _ io.Reader +var _ = runtime.String +var _ = utilities.NewDoubleArray + +func request_KV_Range_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RangeRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Range(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_KV_Put_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PutRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Put(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_KV_DeleteRange_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteRangeRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteRange(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_KV_Txn_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq TxnRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Txn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_KV_Compact_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CompactionRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Compact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Watch_Watch_0(ctx context.Context, marshaler runtime.Marshaler, client WatchClient, req *http.Request, pathParams map[string]string) (Watch_WatchClient, runtime.ServerMetadata, error) { + var metadata runtime.ServerMetadata + stream, err := client.Watch(ctx) + if err != nil { + grpclog.Printf("Failed to start streaming: %v", err) + return nil, metadata, err + } + dec := marshaler.NewDecoder(req.Body) + handleSend := func() error { + var protoReq WatchRequest + err = dec.Decode(&protoReq) + if err == io.EOF { + return err + } + if err != nil { + grpclog.Printf("Failed to decode request: %v", err) + return err + } + if err = stream.Send(&protoReq); err != nil { + grpclog.Printf("Failed to send request: %v", err) + return err + } + return nil + } + if err := handleSend(); err != nil { + if cerr := stream.CloseSend(); cerr != nil { + grpclog.Printf("Failed to terminate client stream: %v", cerr) + } + if err == io.EOF { + return stream, metadata, nil + } + return nil, metadata, err + } + go func() { + for { + if err := handleSend(); err != nil { + break + } + } + if err := stream.CloseSend(); err != nil { + grpclog.Printf("Failed to terminate client stream: %v", err) + } + }() + header, err := stream.Header() + if err != nil { + grpclog.Printf("Failed to get header from client: %v", err) + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil +} + +func request_Lease_LeaseGrant_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LeaseGrantRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.LeaseGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Lease_LeaseRevoke_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LeaseRevokeRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.LeaseRevoke(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Lease_LeaseKeepAlive_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (Lease_LeaseKeepAliveClient, runtime.ServerMetadata, error) { + var metadata runtime.ServerMetadata + stream, err := client.LeaseKeepAlive(ctx) + if err != nil { + grpclog.Printf("Failed to start streaming: %v", err) + return nil, metadata, err + } + dec := marshaler.NewDecoder(req.Body) + handleSend := func() error { + var protoReq LeaseKeepAliveRequest + err = dec.Decode(&protoReq) + if err == io.EOF { + return err + } + if err != nil { + grpclog.Printf("Failed to decode request: %v", err) + return err + } + if err = stream.Send(&protoReq); err != nil { + grpclog.Printf("Failed to send request: %v", err) + return err + } + return nil + } + if err := handleSend(); err != nil { + if cerr := stream.CloseSend(); cerr != nil { + grpclog.Printf("Failed to terminate client stream: %v", cerr) + } + if err == io.EOF { + return stream, metadata, nil + } + return nil, metadata, err + } + go func() { + for { + if err := handleSend(); err != nil { + break + } + } + if err := stream.CloseSend(); err != nil { + grpclog.Printf("Failed to terminate client stream: %v", err) + } + }() + header, err := stream.Header() + if err != nil { + grpclog.Printf("Failed to get header from client: %v", err) + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil +} + +func request_Cluster_MemberAdd_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq MemberAddRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.MemberAdd(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Cluster_MemberRemove_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq MemberRemoveRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.MemberRemove(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Cluster_MemberUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq MemberUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.MemberUpdate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Cluster_MemberList_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq MemberListRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.MemberList(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Maintenance_Alarm_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AlarmRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Alarm(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Maintenance_Status_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq StatusRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Status(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Maintenance_Defragment_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DefragmentRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Defragment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Maintenance_Hash_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq HashRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Hash(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Maintenance_Snapshot_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (Maintenance_SnapshotClient, runtime.ServerMetadata, error) { + var protoReq SnapshotRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.Snapshot(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +func request_Auth_AuthEnable_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthEnableRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AuthEnable(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_AuthDisable_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthDisableRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AuthDisable(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_Authenticate_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthenticateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Authenticate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserAdd_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserAddRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserAdd(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserGet_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserGetRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserGet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserList_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserListRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserList(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserDelete_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserDeleteRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserDelete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserChangePassword_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserChangePasswordRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserChangePassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserGrantRole_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserGrantRoleRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserGrantRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_UserRevokeRole_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthUserRevokeRoleRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserRevokeRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_RoleAdd_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthRoleAddRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RoleAdd(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_RoleGet_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthRoleGetRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RoleGet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_RoleList_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthRoleListRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RoleList(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_RoleDelete_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthRoleDeleteRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RoleDelete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_RoleGrantPermission_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthRoleGrantPermissionRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RoleGrantPermission(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_Auth_RoleRevokePermission_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AuthRoleRevokePermissionRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RoleRevokePermission(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterKVHandlerFromEndpoint is same as RegisterKVHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterKVHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterKVHandler(ctx, mux, conn) +} + +// RegisterKVHandler registers the http handlers for service KV to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterKVHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + client := NewKVClient(conn) + + mux.Handle("POST", pattern_KV_Range_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_KV_Range_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_KV_Range_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_KV_Put_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_KV_Put_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_KV_Put_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_KV_DeleteRange_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_KV_DeleteRange_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_KV_DeleteRange_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_KV_Txn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_KV_Txn_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_KV_Txn_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_KV_Compact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_KV_Compact_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_KV_Compact_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_KV_Range_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "kv", "range"}, "")) + + pattern_KV_Put_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "kv", "put"}, "")) + + pattern_KV_DeleteRange_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "kv", "deleterange"}, "")) + + pattern_KV_Txn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "kv", "txn"}, "")) + + pattern_KV_Compact_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "kv", "compaction"}, "")) +) + +var ( + forward_KV_Range_0 = runtime.ForwardResponseMessage + + forward_KV_Put_0 = runtime.ForwardResponseMessage + + forward_KV_DeleteRange_0 = runtime.ForwardResponseMessage + + forward_KV_Txn_0 = runtime.ForwardResponseMessage + + forward_KV_Compact_0 = runtime.ForwardResponseMessage +) + +// RegisterWatchHandlerFromEndpoint is same as RegisterWatchHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterWatchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterWatchHandler(ctx, mux, conn) +} + +// RegisterWatchHandler registers the http handlers for service Watch to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterWatchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + client := NewWatchClient(conn) + + mux.Handle("POST", pattern_Watch_Watch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Watch_Watch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Watch_Watch_0(ctx, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Watch_Watch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v3alpha", "watch"}, "")) +) + +var ( + forward_Watch_Watch_0 = runtime.ForwardResponseStream +) + +// RegisterLeaseHandlerFromEndpoint is same as RegisterLeaseHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterLeaseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterLeaseHandler(ctx, mux, conn) +} + +// RegisterLeaseHandler registers the http handlers for service Lease to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterLeaseHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + client := NewLeaseClient(conn) + + mux.Handle("POST", pattern_Lease_LeaseGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Lease_LeaseGrant_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Lease_LeaseGrant_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Lease_LeaseRevoke_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Lease_LeaseRevoke_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Lease_LeaseRevoke_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Lease_LeaseKeepAlive_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Lease_LeaseKeepAlive_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Lease_LeaseKeepAlive_0(ctx, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Lease_LeaseGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "lease", "grant"}, "")) + + pattern_Lease_LeaseRevoke_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "kv", "lease", "revoke"}, "")) + + pattern_Lease_LeaseKeepAlive_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "lease", "keepalive"}, "")) +) + +var ( + forward_Lease_LeaseGrant_0 = runtime.ForwardResponseMessage + + forward_Lease_LeaseRevoke_0 = runtime.ForwardResponseMessage + + forward_Lease_LeaseKeepAlive_0 = runtime.ForwardResponseStream +) + +// RegisterClusterHandlerFromEndpoint is same as RegisterClusterHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterClusterHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterClusterHandler(ctx, mux, conn) +} + +// RegisterClusterHandler registers the http handlers for service Cluster to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterClusterHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + client := NewClusterClient(conn) + + mux.Handle("POST", pattern_Cluster_MemberAdd_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Cluster_MemberAdd_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Cluster_MemberAdd_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Cluster_MemberRemove_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Cluster_MemberRemove_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Cluster_MemberRemove_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Cluster_MemberUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Cluster_MemberUpdate_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Cluster_MemberUpdate_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Cluster_MemberList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Cluster_MemberList_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Cluster_MemberList_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Cluster_MemberAdd_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "cluster", "member", "add"}, "")) + + pattern_Cluster_MemberRemove_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "cluster", "member", "remove"}, "")) + + pattern_Cluster_MemberUpdate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "cluster", "member", "update"}, "")) + + pattern_Cluster_MemberList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "cluster", "member", "list"}, "")) +) + +var ( + forward_Cluster_MemberAdd_0 = runtime.ForwardResponseMessage + + forward_Cluster_MemberRemove_0 = runtime.ForwardResponseMessage + + forward_Cluster_MemberUpdate_0 = runtime.ForwardResponseMessage + + forward_Cluster_MemberList_0 = runtime.ForwardResponseMessage +) + +// RegisterMaintenanceHandlerFromEndpoint is same as RegisterMaintenanceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterMaintenanceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterMaintenanceHandler(ctx, mux, conn) +} + +// RegisterMaintenanceHandler registers the http handlers for service Maintenance to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterMaintenanceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + client := NewMaintenanceClient(conn) + + mux.Handle("POST", pattern_Maintenance_Alarm_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Maintenance_Alarm_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Maintenance_Alarm_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Maintenance_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Maintenance_Status_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Maintenance_Status_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Maintenance_Defragment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Maintenance_Defragment_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Maintenance_Defragment_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Maintenance_Hash_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Maintenance_Hash_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Maintenance_Hash_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Maintenance_Snapshot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Maintenance_Snapshot_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Maintenance_Snapshot_0(ctx, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Maintenance_Alarm_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "alarm"}, "")) + + pattern_Maintenance_Status_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "status"}, "")) + + pattern_Maintenance_Defragment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "defragment"}, "")) + + pattern_Maintenance_Hash_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "hash"}, "")) + + pattern_Maintenance_Snapshot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "snapshot"}, "")) +) + +var ( + forward_Maintenance_Alarm_0 = runtime.ForwardResponseMessage + + forward_Maintenance_Status_0 = runtime.ForwardResponseMessage + + forward_Maintenance_Defragment_0 = runtime.ForwardResponseMessage + + forward_Maintenance_Hash_0 = runtime.ForwardResponseMessage + + forward_Maintenance_Snapshot_0 = runtime.ForwardResponseStream +) + +// RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAuthHandler(ctx, mux, conn) +} + +// RegisterAuthHandler registers the http handlers for service Auth to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + client := NewAuthClient(conn) + + mux.Handle("POST", pattern_Auth_AuthEnable_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_AuthEnable_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_AuthEnable_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_AuthDisable_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_AuthDisable_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_AuthDisable_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_Authenticate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_Authenticate_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_Authenticate_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserAdd_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserAdd_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserAdd_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserGet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserGet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserGet_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserList_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserList_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserDelete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserDelete_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserDelete_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserChangePassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserChangePassword_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserChangePassword_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserGrantRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserGrantRole_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserGrantRole_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_UserRevokeRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_UserRevokeRole_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_UserRevokeRole_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_RoleAdd_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_RoleAdd_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_RoleAdd_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_RoleGet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_RoleGet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_RoleGet_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_RoleList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_RoleList_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_RoleList_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_RoleDelete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_RoleDelete_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_RoleDelete_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_RoleGrantPermission_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_RoleGrantPermission_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_RoleGrantPermission_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Auth_RoleRevokePermission_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Auth_RoleRevokePermission_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Auth_RoleRevokePermission_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Auth_AuthEnable_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "auth", "enable"}, "")) + + pattern_Auth_AuthDisable_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "auth", "disable"}, "")) + + pattern_Auth_Authenticate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "auth", "authenticate"}, "")) + + pattern_Auth_UserAdd_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "add"}, "")) + + pattern_Auth_UserGet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "get"}, "")) + + pattern_Auth_UserList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "list"}, "")) + + pattern_Auth_UserDelete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "delete"}, "")) + + pattern_Auth_UserChangePassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "changepw"}, "")) + + pattern_Auth_UserGrantRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "grant"}, "")) + + pattern_Auth_UserRevokeRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "user", "revoke"}, "")) + + pattern_Auth_RoleAdd_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "role", "add"}, "")) + + pattern_Auth_RoleGet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "role", "get"}, "")) + + pattern_Auth_RoleList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "role", "list"}, "")) + + pattern_Auth_RoleDelete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "role", "delete"}, "")) + + pattern_Auth_RoleGrantPermission_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "role", "grant"}, "")) + + pattern_Auth_RoleRevokePermission_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v3alpha", "auth", "role", "revoke"}, "")) +) + +var ( + forward_Auth_AuthEnable_0 = runtime.ForwardResponseMessage + + forward_Auth_AuthDisable_0 = runtime.ForwardResponseMessage + + forward_Auth_Authenticate_0 = runtime.ForwardResponseMessage + + forward_Auth_UserAdd_0 = runtime.ForwardResponseMessage + + forward_Auth_UserGet_0 = runtime.ForwardResponseMessage + + forward_Auth_UserList_0 = runtime.ForwardResponseMessage + + forward_Auth_UserDelete_0 = runtime.ForwardResponseMessage + + forward_Auth_UserChangePassword_0 = runtime.ForwardResponseMessage + + forward_Auth_UserGrantRole_0 = runtime.ForwardResponseMessage + + forward_Auth_UserRevokeRole_0 = runtime.ForwardResponseMessage + + forward_Auth_RoleAdd_0 = runtime.ForwardResponseMessage + + forward_Auth_RoleGet_0 = runtime.ForwardResponseMessage + + forward_Auth_RoleList_0 = runtime.ForwardResponseMessage + + forward_Auth_RoleDelete_0 = runtime.ForwardResponseMessage + + forward_Auth_RoleGrantPermission_0 = runtime.ForwardResponseMessage + + forward_Auth_RoleRevokePermission_0 = runtime.ForwardResponseMessage +) diff --git a/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.proto b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.proto new file mode 100644 index 0000000000..04f08cb564 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.proto @@ -0,0 +1,894 @@ +syntax = "proto3"; +package etcdserverpb; + +import "gogoproto/gogo.proto"; +import "etcd/mvcc/mvccpb/kv.proto"; +import "etcd/auth/authpb/auth.proto"; + +// for grpc-gateway +import "google/api/annotations.proto"; + +option (gogoproto.marshaler_all) = true; +option (gogoproto.unmarshaler_all) = true; + +service KV { + // Range gets the keys in the range from the key-value store. + rpc Range(RangeRequest) returns (RangeResponse) { + option (google.api.http) = { + post: "/v3alpha/kv/range" + body: "*" + }; + } + + // Put puts the given key into the key-value store. + // A put request increments the revision of the key-value store + // and generates one event in the event history. + rpc Put(PutRequest) returns (PutResponse) { + option (google.api.http) = { + post: "/v3alpha/kv/put" + body: "*" + }; + } + + // DeleteRange deletes the given range from the key-value store. + // A delete request increments the revision of the key-value store + // and generates a delete event in the event history for every deleted key. + rpc DeleteRange(DeleteRangeRequest) returns (DeleteRangeResponse) { + option (google.api.http) = { + post: "/v3alpha/kv/deleterange" + body: "*" + }; + } + + // Txn processes multiple requests in a single transaction. + // A txn request increments the revision of the key-value store + // and generates events with the same revision for every completed request. + // It is not allowed to modify the same key several times within one txn. + rpc Txn(TxnRequest) returns (TxnResponse) { + option (google.api.http) = { + post: "/v3alpha/kv/txn" + body: "*" + }; + } + + // Compact compacts the event history in the etcd key-value store. The key-value + // store should be periodically compacted or the event history will continue to grow + // indefinitely. + rpc Compact(CompactionRequest) returns (CompactionResponse) { + option (google.api.http) = { + post: "/v3alpha/kv/compaction" + body: "*" + }; + } +} + +service Watch { + // Watch watches for events happening or that have happened. Both input and output + // are streams; the input stream is for creating and canceling watchers and the output + // stream sends events. One watch RPC can watch on multiple key ranges, streaming events + // for several watches at once. The entire event history can be watched starting from the + // last compaction revision. + rpc Watch(stream WatchRequest) returns (stream WatchResponse) { + option (google.api.http) = { + post: "/v3alpha/watch" + body: "*" + }; + } +} + +service Lease { + // LeaseGrant creates a lease which expires if the server does not receive a keepAlive + // within a given time to live period. All keys attached to the lease will be expired and + // deleted if the lease expires. Each expired key generates a delete event in the event history. + rpc LeaseGrant(LeaseGrantRequest) returns (LeaseGrantResponse) { + option (google.api.http) = { + post: "/v3alpha/lease/grant" + body: "*" + }; + } + + // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. + rpc LeaseRevoke(LeaseRevokeRequest) returns (LeaseRevokeResponse) { + option (google.api.http) = { + post: "/v3alpha/kv/lease/revoke" + body: "*" + }; + } + + // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client + // to the server and streaming keep alive responses from the server to the client. + rpc LeaseKeepAlive(stream LeaseKeepAliveRequest) returns (stream LeaseKeepAliveResponse) { + option (google.api.http) = { + post: "/v3alpha/lease/keepalive" + body: "*" + }; + } + + // TODO(xiangli) List all existing Leases? + // TODO(xiangli) Get details information (expirations, leased keys, etc.) of a lease? +} + +service Cluster { + // MemberAdd adds a member into the cluster. + rpc MemberAdd(MemberAddRequest) returns (MemberAddResponse) { + option (google.api.http) = { + post: "/v3alpha/cluster/member/add" + body: "*" + }; + } + + // MemberRemove removes an existing member from the cluster. + rpc MemberRemove(MemberRemoveRequest) returns (MemberRemoveResponse) { + option (google.api.http) = { + post: "/v3alpha/cluster/member/remove" + body: "*" + }; + } + + // MemberUpdate updates the member configuration. + rpc MemberUpdate(MemberUpdateRequest) returns (MemberUpdateResponse) { + option (google.api.http) = { + post: "/v3alpha/cluster/member/update" + body: "*" + }; + } + + // MemberList lists all the members in the cluster. + rpc MemberList(MemberListRequest) returns (MemberListResponse) { + option (google.api.http) = { + post: "/v3alpha/cluster/member/list" + body: "*" + }; + } +} + +service Maintenance { + // Alarm activates, deactivates, and queries alarms regarding cluster health. + rpc Alarm(AlarmRequest) returns (AlarmResponse) { + option (google.api.http) = { + post: "/v3alpha/maintenance/alarm" + body: "*" + }; + } + + // Status gets the status of the member. + rpc Status(StatusRequest) returns (StatusResponse) { + option (google.api.http) = { + post: "/v3alpha/maintenance/status" + body: "*" + }; + } + + // Defragment defragments a member's backend database to recover storage space. + rpc Defragment(DefragmentRequest) returns (DefragmentResponse) { + option (google.api.http) = { + post: "/v3alpha/maintenance/defragment" + body: "*" + }; + } + + // Hash returns the hash of the local KV state for consistency checking purpose. + // This is designed for testing; do not use this in production when there + // are ongoing transactions. + rpc Hash(HashRequest) returns (HashResponse) { + option (google.api.http) = { + post: "/v3alpha/maintenance/hash" + body: "*" + }; + } + + // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. + rpc Snapshot(SnapshotRequest) returns (stream SnapshotResponse) { + option (google.api.http) = { + post: "/v3alpha/maintenance/snapshot" + body: "*" + }; + } +} + +service Auth { + // AuthEnable enables authentication. + rpc AuthEnable(AuthEnableRequest) returns (AuthEnableResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/enable" + body: "*" + }; + } + + // AuthDisable disables authentication. + rpc AuthDisable(AuthDisableRequest) returns (AuthDisableResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/disable" + body: "*" + }; + } + + // Authenticate processes an authenticate request. + rpc Authenticate(AuthenticateRequest) returns (AuthenticateResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/authenticate" + body: "*" + }; + } + + // UserAdd adds a new user. + rpc UserAdd(AuthUserAddRequest) returns (AuthUserAddResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/add" + body: "*" + }; + } + + // UserGet gets detailed user information. + rpc UserGet(AuthUserGetRequest) returns (AuthUserGetResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/get" + body: "*" + }; + } + + // UserList gets a list of all users. + rpc UserList(AuthUserListRequest) returns (AuthUserListResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/list" + body: "*" + }; + } + + // UserDelete deletes a specified user. + rpc UserDelete(AuthUserDeleteRequest) returns (AuthUserDeleteResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/delete" + body: "*" + }; + } + + // UserChangePassword changes the password of a specified user. + rpc UserChangePassword(AuthUserChangePasswordRequest) returns (AuthUserChangePasswordResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/changepw" + body: "*" + }; + } + + // UserGrant grants a role to a specified user. + rpc UserGrantRole(AuthUserGrantRoleRequest) returns (AuthUserGrantRoleResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/grant" + body: "*" + }; + } + + // UserRevokeRole revokes a role of specified user. + rpc UserRevokeRole(AuthUserRevokeRoleRequest) returns (AuthUserRevokeRoleResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/user/revoke" + body: "*" + }; + } + + // RoleAdd adds a new role. + rpc RoleAdd(AuthRoleAddRequest) returns (AuthRoleAddResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/role/add" + body: "*" + }; + } + + // RoleGet gets detailed role information. + rpc RoleGet(AuthRoleGetRequest) returns (AuthRoleGetResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/role/get" + body: "*" + }; + } + + // RoleList gets lists of all roles. + rpc RoleList(AuthRoleListRequest) returns (AuthRoleListResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/role/list" + body: "*" + }; + } + + // RoleDelete deletes a specified role. + rpc RoleDelete(AuthRoleDeleteRequest) returns (AuthRoleDeleteResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/role/delete" + body: "*" + }; + } + + // RoleGrantPermission grants a permission of a specified key or range to a specified role. + rpc RoleGrantPermission(AuthRoleGrantPermissionRequest) returns (AuthRoleGrantPermissionResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/role/grant" + body: "*" + }; + } + + // RoleRevokePermission revokes a key or range permission of a specified role. + rpc RoleRevokePermission(AuthRoleRevokePermissionRequest) returns (AuthRoleRevokePermissionResponse) { + option (google.api.http) = { + post: "/v3alpha/auth/role/revoke" + body: "*" + }; + } +} + +message ResponseHeader { + // cluster_id is the ID of the cluster which sent the response. + uint64 cluster_id = 1; + // member_id is the ID of the member which sent the response. + uint64 member_id = 2; + // revision is the key-value store revision when the request was applied. + int64 revision = 3; + // raft_term is the raft term when the request was applied. + uint64 raft_term = 4; +} + +message RangeRequest { + enum SortOrder { + NONE = 0; // default, no sorting + ASCEND = 1; // lowest target value first + DESCEND = 2; // highest target value first + } + enum SortTarget { + KEY = 0; + VERSION = 1; + CREATE = 2; + MOD = 3; + VALUE = 4; + } + + // key is the first key for the range. If range_end is not given, the request only looks up key. + bytes key = 1; + // range_end is the upper bound on the requested range [key, range_end). + // If range_end is '\0', the range is all keys >= key. + // If the range_end is one bit larger than the given key, + // then the range requests get the all keys with the prefix (the given key). + // If both key and range_end are '\0', then range requests returns all keys. + bytes range_end = 2; + // limit is a limit on the number of keys returned for the request. + int64 limit = 3; + // revision is the point-in-time of the key-value store to use for the range. + // If revision is less or equal to zero, the range is over the newest key-value store. + // If the revision has been compacted, ErrCompacted is returned as a response. + int64 revision = 4; + + // sort_order is the order for returned sorted results. + SortOrder sort_order = 5; + + // sort_target is the key-value field to use for sorting. + SortTarget sort_target = 6; + + // serializable sets the range request to use serializable member-local reads. + // Range requests are linearizable by default; linearizable requests have higher + // latency and lower throughput than serializable requests but reflect the current + // consensus of the cluster. For better performance, in exchange for possible stale reads, + // a serializable range request is served locally without needing to reach consensus + // with other nodes in the cluster. + bool serializable = 7; + + // keys_only when set returns only the keys and not the values. + bool keys_only = 8; + + // count_only when set returns only the count of the keys in the range. + bool count_only = 9; +} + +message RangeResponse { + ResponseHeader header = 1; + // kvs is the list of key-value pairs matched by the range request. + // kvs is empty when count is requested. + repeated mvccpb.KeyValue kvs = 2; + // more indicates if there are more keys to return in the requested range. + bool more = 3; + // count is set to the number of keys within the range when requested. + int64 count = 4; +} + +message PutRequest { + // key is the key, in bytes, to put into the key-value store. + bytes key = 1; + // value is the value, in bytes, to associate with the key in the key-value store. + bytes value = 2; + // lease is the lease ID to associate with the key in the key-value store. A lease + // value of 0 indicates no lease. + int64 lease = 3; +} + +message PutResponse { + ResponseHeader header = 1; +} + +message DeleteRangeRequest { + // key is the first key to delete in the range. + bytes key = 1; + // range_end is the key following the last key to delete for the range [key, range_end). + // If range_end is not given, the range is defined to contain only the key argument. + // If range_end is '\0', the range is all keys greater than or equal to the key argument. + bytes range_end = 2; +} + +message DeleteRangeResponse { + ResponseHeader header = 1; + // deleted is the number of keys deleted by the delete range request. + int64 deleted = 2; +} + +message RequestOp { + // request is a union of request types accepted by a transaction. + oneof request { + RangeRequest request_range = 1; + PutRequest request_put = 2; + DeleteRangeRequest request_delete_range = 3; + } +} + +message ResponseOp { + // response is a union of response types returned by a transaction. + oneof response { + RangeResponse response_range = 1; + PutResponse response_put = 2; + DeleteRangeResponse response_delete_range = 3; + } +} + +message Compare { + enum CompareResult { + EQUAL = 0; + GREATER = 1; + LESS = 2; + } + enum CompareTarget { + VERSION = 0; + CREATE = 1; + MOD = 2; + VALUE= 3; + } + // result is logical comparison operation for this comparison. + CompareResult result = 1; + // target is the key-value field to inspect for the comparison. + CompareTarget target = 2; + // key is the subject key for the comparison operation. + bytes key = 3; + oneof target_union { + // version is the version of the given key + int64 version = 4; + // create_revision is the creation revision of the given key + int64 create_revision = 5; + // mod_revision is the last modified revision of the given key. + int64 mod_revision = 6; + // value is the value of the given key, in bytes. + bytes value = 7; + } +} + +// From google paxosdb paper: +// Our implementation hinges around a powerful primitive which we call MultiOp. All other database +// operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically +// and consists of three components: +// 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check +// for the absence or presence of a value, or compare with a given value. Two different tests in the guard +// may apply to the same or different entries in the database. All tests in the guard are applied and +// MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise +// it executes f op (see item 3 below). +// 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or +// lookup operation, and applies to a single database entry. Two different operations in the list may apply +// to the same or different entries in the database. These operations are executed +// if guard evaluates to +// true. +// 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false. +message TxnRequest { + // compare is a list of predicates representing a conjunction of terms. + // If the comparisons succeed, then the success requests will be processed in order, + // and the response will contain their respective responses in order. + // If the comparisons fail, then the failure requests will be processed in order, + // and the response will contain their respective responses in order. + repeated Compare compare = 1; + // success is a list of requests which will be applied when compare evaluates to true. + repeated RequestOp success = 2; + // failure is a list of requests which will be applied when compare evaluates to false. + repeated RequestOp failure = 3; +} + +message TxnResponse { + ResponseHeader header = 1; + // succeeded is set to true if the compare evaluated to true or false otherwise. + bool succeeded = 2; + // responses is a list of responses corresponding to the results from applying + // success if succeeded is true or failure if succeeded is false. + repeated ResponseOp responses = 3; +} + +// CompactionRequest compacts the key-value store up to a given revision. All superseded keys +// with a revision less than the compaction revision will be removed. +message CompactionRequest { + // revision is the key-value store revision for the compaction operation. + int64 revision = 1; + // physical is set so the RPC will wait until the compaction is physically + // applied to the local database such that compacted entries are totally + // removed from the backend database. + bool physical = 2; +} + +message CompactionResponse { + ResponseHeader header = 1; +} + +message HashRequest { +} + +message HashResponse { + ResponseHeader header = 1; + // hash is the hash value computed from the responding member's key-value store. + uint32 hash = 2; +} + +message SnapshotRequest { +} + +message SnapshotResponse { + // header has the current key-value store information. The first header in the snapshot + // stream indicates the point in time of the snapshot. + ResponseHeader header = 1; + + // remaining_bytes is the number of blob bytes to be sent after this message + uint64 remaining_bytes = 2; + + // blob contains the next chunk of the snapshot in the snapshot stream. + bytes blob = 3; +} + +message WatchRequest { + // request_union is a request to either create a new watcher or cancel an existing watcher. + oneof request_union { + WatchCreateRequest create_request = 1; + WatchCancelRequest cancel_request = 2; + } +} + +message WatchCreateRequest { + // key is the key to register for watching. + bytes key = 1; + // range_end is the end of the range [key, range_end) to watch. If range_end is not given, + // only the key argument is watched. If range_end is equal to '\0', all keys greater than + // or equal to the key argument are watched. + bytes range_end = 2; + // start_revision is an optional revision to watch from (inclusive). No start_revision is "now". + int64 start_revision = 3; + // progress_notify is set so that the etcd server will periodically send a WatchResponse with + // no events to the new watcher if there are no recent events. It is useful when clients + // wish to recover a disconnected watcher starting from a recent known revision. + // The etcd server may decide how often it will send notifications based on current load. + bool progress_notify = 4; +} + +message WatchCancelRequest { + // watch_id is the watcher id to cancel so that no more events are transmitted. + int64 watch_id = 1; +} + +message WatchResponse { + ResponseHeader header = 1; + // watch_id is the ID of the watcher that corresponds to the response. + int64 watch_id = 2; + // created is set to true if the response is for a create watch request. + // The client should record the watch_id and expect to receive events for + // the created watcher from the same stream. + // All events sent to the created watcher will attach with the same watch_id. + bool created = 3; + // canceled is set to true if the response is for a cancel watch request. + // No further events will be sent to the canceled watcher. + bool canceled = 4; + // compact_revision is set to the minimum index if a watcher tries to watch + // at a compacted index. + // + // This happens when creating a watcher at a compacted revision or the watcher cannot + // catch up with the progress of the key-value store. + // + // The client should treat the watcher as canceled and should not try to create any + // watcher with the same start_revision again. + int64 compact_revision = 5; + + repeated mvccpb.Event events = 11; +} + +message LeaseGrantRequest { + // TTL is the advisory time-to-live in seconds. + int64 TTL = 1; + // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. + int64 ID = 2; +} + +message LeaseGrantResponse { + ResponseHeader header = 1; + // ID is the lease ID for the granted lease. + int64 ID = 2; + // TTL is the server chosen lease time-to-live in seconds. + int64 TTL = 3; + string error = 4; +} + +message LeaseRevokeRequest { + // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted. + int64 ID = 1; +} + +message LeaseRevokeResponse { + ResponseHeader header = 1; +} + +message LeaseKeepAliveRequest { + // ID is the lease ID for the lease to keep alive. + int64 ID = 1; +} + +message LeaseKeepAliveResponse { + ResponseHeader header = 1; + // ID is the lease ID from the keep alive request. + int64 ID = 2; + // TTL is the new time-to-live for the lease. + int64 TTL = 3; +} + +message Member { + // ID is the member ID for this member. + uint64 ID = 1; + // name is the human-readable name of the member. If the member is not started, the name will be an empty string. + string name = 2; + // peerURLs is the list of URLs the member exposes to the cluster for communication. + repeated string peerURLs = 3; + // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty. + repeated string clientURLs = 4; +} + +message MemberAddRequest { + // peerURLs is the list of URLs the added member will use to communicate with the cluster. + repeated string peerURLs = 1; +} + +message MemberAddResponse { + ResponseHeader header = 1; + // member is the member information for the added member. + Member member = 2; +} + +message MemberRemoveRequest { + // ID is the member ID of the member to remove. + uint64 ID = 1; +} + +message MemberRemoveResponse { + ResponseHeader header = 1; +} + +message MemberUpdateRequest { + // ID is the member ID of the member to update. + uint64 ID = 1; + // peerURLs is the new list of URLs the member will use to communicate with the cluster. + repeated string peerURLs = 2; +} + +message MemberUpdateResponse{ + ResponseHeader header = 1; +} + +message MemberListRequest { +} + +message MemberListResponse { + ResponseHeader header = 1; + // members is a list of all members associated with the cluster. + repeated Member members = 2; +} + +message DefragmentRequest { +} + +message DefragmentResponse { + ResponseHeader header = 1; +} + +enum AlarmType { + NONE = 0; // default, used to query if any alarm is active + NOSPACE = 1; // space quota is exhausted +} + +message AlarmRequest { + enum AlarmAction { + GET = 0; + ACTIVATE = 1; + DEACTIVATE = 2; + } + // action is the kind of alarm request to issue. The action + // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a + // raised alarm. + AlarmAction action = 1; + // memberID is the ID of the member associated with the alarm. If memberID is 0, the + // alarm request covers all members. + uint64 memberID = 2; + // alarm is the type of alarm to consider for this request. + AlarmType alarm = 3; +} + +message AlarmMember { + // memberID is the ID of the member associated with the raised alarm. + uint64 memberID = 1; + // alarm is the type of alarm which has been raised. + AlarmType alarm = 2; +} + +message AlarmResponse { + ResponseHeader header = 1; + // alarms is a list of alarms associated with the alarm request. + repeated AlarmMember alarms = 2; +} + +message StatusRequest { +} + +message StatusResponse { + ResponseHeader header = 1; + // version is the cluster protocol version used by the responding member. + string version = 2; + // dbSize is the size of the backend database, in bytes, of the responding member. + int64 dbSize = 3; + // leader is the member ID which the responding member believes is the current leader. + uint64 leader = 4; + // raftIndex is the current raft index of the responding member. + uint64 raftIndex = 5; + // raftTerm is the current raft term of the responding member. + uint64 raftTerm = 6; +} + +message AuthEnableRequest { +} + +message AuthDisableRequest { +} + +message AuthenticateRequest { + string name = 1; + string password = 2; +} + +message AuthUserAddRequest { + string name = 1; + string password = 2; +} + +message AuthUserGetRequest { + string name = 1; +} + +message AuthUserDeleteRequest { + // name is the name of the user to delete. + string name = 1; +} + +message AuthUserChangePasswordRequest { + // name is the name of the user whose password is being changed. + string name = 1; + // password is the new password for the user. + string password = 2; +} + +message AuthUserGrantRoleRequest { + // user is the name of the user which should be granted a given role. + string user = 1; + // role is the name of the role to grant to the user. + string role = 2; +} + +message AuthUserRevokeRoleRequest { + string name = 1; + string role = 2; +} + +message AuthRoleAddRequest { + // name is the name of the role to add to the authentication system. + string name = 1; +} + +message AuthRoleGetRequest { + string role = 1; +} + +message AuthUserListRequest { +} + +message AuthRoleListRequest { +} + +message AuthRoleDeleteRequest { + string role = 1; +} + +message AuthRoleGrantPermissionRequest { + // name is the name of the role which will be granted the permission. + string name = 1; + // perm is the permission to grant to the role. + authpb.Permission perm = 2; +} + +message AuthRoleRevokePermissionRequest { + string role = 1; + string key = 2; + string range_end = 3; +} + +message AuthEnableResponse { + ResponseHeader header = 1; +} + +message AuthDisableResponse { + ResponseHeader header = 1; +} + +message AuthenticateResponse { + ResponseHeader header = 1; + // token is an authorized token that can be used in succeeding RPCs + string token = 2; +} + +message AuthUserAddResponse { + ResponseHeader header = 1; +} + +message AuthUserGetResponse { + ResponseHeader header = 1; + + repeated string roles = 2; +} + +message AuthUserDeleteResponse { + ResponseHeader header = 1; +} + +message AuthUserChangePasswordResponse { + ResponseHeader header = 1; +} + +message AuthUserGrantRoleResponse { + ResponseHeader header = 1; +} + +message AuthUserRevokeRoleResponse { + ResponseHeader header = 1; +} + +message AuthRoleAddResponse { + ResponseHeader header = 1; +} + +message AuthRoleGetResponse { + ResponseHeader header = 1; + + repeated authpb.Permission perm = 2; +} + +message AuthRoleListResponse { + ResponseHeader header = 1; + + repeated string roles = 2; +} + +message AuthUserListResponse { + ResponseHeader header = 1; + + repeated string users = 2; +} + +message AuthRoleDeleteResponse { + ResponseHeader header = 1; +} + +message AuthRoleGrantPermissionResponse { + ResponseHeader header = 1; +} + +message AuthRoleRevokePermissionResponse { + ResponseHeader header = 1; +} diff --git a/ingress/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go b/ingress/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go new file mode 100644 index 0000000000..2ab97270cf --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go @@ -0,0 +1,681 @@ +// Code generated by protoc-gen-gogo. +// source: kv.proto +// DO NOT EDIT! + +/* + Package mvccpb is a generated protocol buffer package. + + It is generated from these files: + kv.proto + + It has these top-level messages: + KeyValue + Event +*/ +package mvccpb + +import ( + "fmt" + + proto "github.com/golang/protobuf/proto" + + math "math" +) + +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.ProtoPackageIsVersion1 + +type Event_EventType int32 + +const ( + PUT Event_EventType = 0 + DELETE Event_EventType = 1 +) + +var Event_EventType_name = map[int32]string{ + 0: "PUT", + 1: "DELETE", +} +var Event_EventType_value = map[string]int32{ + "PUT": 0, + "DELETE": 1, +} + +func (x Event_EventType) String() string { + return proto.EnumName(Event_EventType_name, int32(x)) +} +func (Event_EventType) EnumDescriptor() ([]byte, []int) { return fileDescriptorKv, []int{1, 0} } + +type KeyValue struct { + // key is the key in bytes. An empty key is not allowed. + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // create_revision is the revision of last creation on this key. + CreateRevision int64 `protobuf:"varint,2,opt,name=create_revision,json=createRevision,proto3" json:"create_revision,omitempty"` + // mod_revision is the revision of last modification on this key. + ModRevision int64 `protobuf:"varint,3,opt,name=mod_revision,json=modRevision,proto3" json:"mod_revision,omitempty"` + // version is the version of the key. A deletion resets + // the version to zero and any modification of the key + // increases its version. + Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + // value is the value held by the key, in bytes. + Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` + // lease is the ID of the lease that attached to key. + // When the attached lease expires, the key will be deleted. + // If lease is 0, then no lease is attached to the key. + Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"` +} + +func (m *KeyValue) Reset() { *m = KeyValue{} } +func (m *KeyValue) String() string { return proto.CompactTextString(m) } +func (*KeyValue) ProtoMessage() {} +func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptorKv, []int{0} } + +type Event struct { + // type is the kind of event. If type is a PUT, it indicates + // new data has been stored to the key. If type is a DELETE, + // it indicates the key was deleted. + Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=mvccpb.Event_EventType" json:"type,omitempty"` + // kv holds the KeyValue for the event. + // A PUT event contains current kv pair. + // A PUT event with kv.Version=1 indicates the creation of a key. + // A DELETE/EXPIRE event contains the deleted key with + // its modification revision set to the revision of deletion. + Kv *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorKv, []int{1} } + +func init() { + proto.RegisterType((*KeyValue)(nil), "mvccpb.KeyValue") + proto.RegisterType((*Event)(nil), "mvccpb.Event") + proto.RegisterEnum("mvccpb.Event_EventType", Event_EventType_name, Event_EventType_value) +} +func (m *KeyValue) 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 *KeyValue) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + data[i] = 0xa + i++ + i = encodeVarintKv(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + } + if m.CreateRevision != 0 { + data[i] = 0x10 + i++ + i = encodeVarintKv(data, i, uint64(m.CreateRevision)) + } + if m.ModRevision != 0 { + data[i] = 0x18 + i++ + i = encodeVarintKv(data, i, uint64(m.ModRevision)) + } + if m.Version != 0 { + data[i] = 0x20 + i++ + i = encodeVarintKv(data, i, uint64(m.Version)) + } + if len(m.Value) > 0 { + data[i] = 0x2a + i++ + i = encodeVarintKv(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + } + if m.Lease != 0 { + data[i] = 0x30 + i++ + i = encodeVarintKv(data, i, uint64(m.Lease)) + } + return i, nil +} + +func (m *Event) 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 *Event) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Type != 0 { + data[i] = 0x8 + i++ + i = encodeVarintKv(data, i, uint64(m.Type)) + } + if m.Kv != nil { + data[i] = 0x12 + i++ + i = encodeVarintKv(data, i, uint64(m.Kv.Size())) + n1, err := m.Kv.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + return i, nil +} + +func encodeFixed64Kv(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 encodeFixed32Kv(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 encodeVarintKv(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 *KeyValue) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovKv(uint64(l)) + } + if m.CreateRevision != 0 { + n += 1 + sovKv(uint64(m.CreateRevision)) + } + if m.ModRevision != 0 { + n += 1 + sovKv(uint64(m.ModRevision)) + } + if m.Version != 0 { + n += 1 + sovKv(uint64(m.Version)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovKv(uint64(l)) + } + if m.Lease != 0 { + n += 1 + sovKv(uint64(m.Lease)) + } + return n +} + +func (m *Event) Size() (n int) { + var l int + _ = l + if m.Type != 0 { + n += 1 + sovKv(uint64(m.Type)) + } + if m.Kv != nil { + l = m.Kv.Size() + n += 1 + l + sovKv(uint64(l)) + } + return n +} + +func sovKv(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozKv(x uint64) (n int) { + return sovKv(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *KeyValue) 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 ErrIntOverflowKv + } + 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: KeyValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KeyValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKv + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType) + } + m.CreateRevision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.CreateRevision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType) + } + m.ModRevision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ModRevision |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + m.Version = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Version |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKv + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], data[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) + } + m.Lease = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Lease |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipKv(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKv + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event) 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 ErrIntOverflowKv + } + 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: Event: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Type |= (Event_EventType(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKv + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKv + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Kv == nil { + m.Kv = &KeyValue{} + } + if err := m.Kv.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKv(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKv + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipKv(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, ErrIntOverflowKv + } + 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, ErrIntOverflowKv + } + 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, ErrIntOverflowKv + } + 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, ErrInvalidLengthKv + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKv + } + 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 := skipKv(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 ( + ErrInvalidLengthKv = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKv = fmt.Errorf("proto: integer overflow") +) + +var fileDescriptorKv = []byte{ + // 285 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x44, 0x90, 0x41, 0x4a, 0xc3, 0x40, + 0x14, 0x86, 0x33, 0x4d, 0x9b, 0xd6, 0xd7, 0x52, 0xc3, 0x50, 0x70, 0x70, 0x31, 0xc4, 0x6e, 0x2c, + 0x08, 0x11, 0xea, 0x0d, 0xc4, 0xac, 0x74, 0x21, 0x21, 0xba, 0x95, 0x34, 0x7d, 0x94, 0x92, 0xa6, + 0x13, 0xd2, 0x38, 0x98, 0x9b, 0x78, 0x0a, 0xcf, 0xd1, 0x65, 0x8f, 0x60, 0xe3, 0x45, 0x24, 0x6f, + 0x4c, 0xdd, 0x0c, 0xef, 0xff, 0xff, 0x6f, 0x98, 0xff, 0x0d, 0x0c, 0x52, 0xed, 0xe7, 0x85, 0x2a, + 0x15, 0x77, 0x32, 0x9d, 0x24, 0xf9, 0xe2, 0x72, 0xb2, 0x52, 0x2b, 0x45, 0xd6, 0x6d, 0x33, 0x99, + 0x74, 0xfa, 0xc5, 0x60, 0xf0, 0x88, 0xd5, 0x6b, 0xbc, 0x79, 0x47, 0xee, 0x82, 0x9d, 0x62, 0x25, + 0x98, 0xc7, 0x66, 0xa3, 0xb0, 0x19, 0xf9, 0x35, 0x9c, 0x27, 0x05, 0xc6, 0x25, 0xbe, 0x15, 0xa8, + 0xd7, 0xbb, 0xb5, 0xda, 0x8a, 0x8e, 0xc7, 0x66, 0x76, 0x38, 0x36, 0x76, 0xf8, 0xe7, 0xf2, 0x2b, + 0x18, 0x65, 0x6a, 0xf9, 0x4f, 0xd9, 0x44, 0x0d, 0x33, 0xb5, 0x3c, 0x21, 0x02, 0xfa, 0x1a, 0x0b, + 0x4a, 0xbb, 0x94, 0xb6, 0x92, 0x4f, 0xa0, 0xa7, 0x9b, 0x02, 0xa2, 0x47, 0x2f, 0x1b, 0xd1, 0xb8, + 0x1b, 0x8c, 0x77, 0x28, 0x1c, 0xa2, 0x8d, 0x98, 0x7e, 0x40, 0x2f, 0xd0, 0xb8, 0x2d, 0xf9, 0x0d, + 0x74, 0xcb, 0x2a, 0x47, 0x6a, 0x3b, 0x9e, 0x5f, 0xf8, 0x66, 0x4d, 0x9f, 0x42, 0x73, 0x46, 0x55, + 0x8e, 0x21, 0x41, 0xdc, 0x83, 0x4e, 0xaa, 0xa9, 0xfa, 0x70, 0xee, 0xb6, 0x68, 0xbb, 0x77, 0xd8, + 0x49, 0xf5, 0xd4, 0x83, 0xb3, 0xd3, 0x25, 0xde, 0x07, 0xfb, 0xf9, 0x25, 0x72, 0x2d, 0x0e, 0xe0, + 0x3c, 0x04, 0x4f, 0x41, 0x14, 0xb8, 0xec, 0x5e, 0xec, 0x8f, 0xd2, 0x3a, 0x1c, 0xa5, 0xb5, 0xaf, + 0x25, 0x3b, 0xd4, 0x92, 0x7d, 0xd7, 0x92, 0x7d, 0xfe, 0x48, 0x6b, 0xe1, 0xd0, 0x5f, 0xde, 0xfd, + 0x06, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x21, 0x8f, 0x2c, 0x75, 0x01, 0x00, 0x00, +} diff --git a/ingress/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.proto b/ingress/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.proto new file mode 100644 index 0000000000..f0c82b57cd --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; +package mvccpb; + +import "gogoproto/gogo.proto"; + +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.goproto_getters_all) = false; +option (gogoproto.goproto_enum_prefix_all) = false; + +message KeyValue { + // key is the key in bytes. An empty key is not allowed. + bytes key = 1; + // create_revision is the revision of last creation on this key. + int64 create_revision = 2; + // mod_revision is the revision of last modification on this key. + int64 mod_revision = 3; + // version is the version of the key. A deletion resets + // the version to zero and any modification of the key + // increases its version. + int64 version = 4; + // value is the value held by the key, in bytes. + bytes value = 5; + // lease is the ID of the lease that attached to key. + // When the attached lease expires, the key will be deleted. + // If lease is 0, then no lease is attached to the key. + int64 lease = 6; +} + +message Event { + enum EventType { + PUT = 0; + DELETE = 1; + } + // type is the kind of event. If type is a PUT, it indicates + // new data has been stored to the key. If type is a DELETE, + // it indicates the key was deleted. + EventType type = 1; + // kv holds the KeyValue for the event. + // A PUT event contains current kv pair. + // A PUT event with kv.Version=1 indicates the creation of a key. + // A DELETE/EXPIRE event contains the deleted key with + // its modification revision set to the revision of deletion. + KeyValue kv = 2; +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/fileutil.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/fileutil.go new file mode 100644 index 0000000000..c963a79032 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/fileutil.go @@ -0,0 +1,98 @@ +// Copyright 2015 The etcd 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 fileutil implements utility functions related to files and paths. +package fileutil + +import ( + "fmt" + "io/ioutil" + "os" + "path" + "sort" + + "github.com/coreos/pkg/capnslog" +) + +const ( + // PrivateFileMode grants owner to read/write a file. + PrivateFileMode = 0600 + // PrivateDirMode grants owner to make/remove files inside the directory. + PrivateDirMode = 0700 +) + +var ( + plog = capnslog.NewPackageLogger("github.com/coreos/etcd/pkg", "fileutil") +) + +// IsDirWriteable checks if dir is writable by writing and removing a file +// to dir. It returns nil if dir is writable. +func IsDirWriteable(dir string) error { + f := path.Join(dir, ".touch") + if err := ioutil.WriteFile(f, []byte(""), PrivateFileMode); err != nil { + return err + } + return os.Remove(f) +} + +// ReadDir returns the filenames in the given directory in sorted order. +func ReadDir(dirpath string) ([]string, error) { + dir, err := os.Open(dirpath) + if err != nil { + return nil, err + } + defer dir.Close() + names, err := dir.Readdirnames(-1) + if err != nil { + return nil, err + } + sort.Strings(names) + return names, nil +} + +// TouchDirAll is similar to os.MkdirAll. It creates directories with 0700 permission if any directory +// does not exists. TouchDirAll also ensures the given directory is writable. +func TouchDirAll(dir string) error { + // If path is already a directory, MkdirAll does nothing + // and returns nil. + err := os.MkdirAll(dir, PrivateDirMode) + if err != nil { + // if mkdirAll("a/text") and "text" is not + // a directory, this will return syscall.ENOTDIR + return err + } + return IsDirWriteable(dir) +} + +// CreateDirAll is similar to TouchDirAll but returns error +// if the deepest directory was not empty. +func CreateDirAll(dir string) error { + err := TouchDirAll(dir) + if err == nil { + var ns []string + ns, err = ReadDir(dir) + if err != nil { + return err + } + if len(ns) != 0 { + err = fmt.Errorf("expected %q to be empty, got %q", dir, ns) + } + } + return err +} + +func Exist(name string) bool { + _, err := os.Stat(name) + return err == nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock.go new file mode 100644 index 0000000000..338627f43c --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock.go @@ -0,0 +1,26 @@ +// Copyright 2016 The etcd 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 fileutil + +import ( + "errors" + "os" +) + +var ( + ErrLocked = errors.New("fileutil: file already locked") +) + +type LockedFile struct{ *os.File } diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_flock.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_flock.go new file mode 100644 index 0000000000..542550bc8a --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_flock.go @@ -0,0 +1,49 @@ +// Copyright 2016 The etcd 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 !windows,!plan9,!solaris + +package fileutil + +import ( + "os" + "syscall" +) + +func flockTryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + f, err := os.OpenFile(path, flag, perm) + if err != nil { + return nil, err + } + if err = syscall.Flock(int(f.Fd()), syscall.LOCK_EX|syscall.LOCK_NB); err != nil { + f.Close() + if err == syscall.EWOULDBLOCK { + err = ErrLocked + } + return nil, err + } + return &LockedFile{f}, nil +} + +func flockLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + f, err := os.OpenFile(path, flag, perm) + if err != nil { + return nil, err + } + if err = syscall.Flock(int(f.Fd()), syscall.LOCK_EX); err != nil { + f.Close() + return nil, err + } + return &LockedFile{f}, err +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_linux.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_linux.go new file mode 100644 index 0000000000..dec25a1af4 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_linux.go @@ -0,0 +1,96 @@ +// Copyright 2016 The etcd 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 linux + +package fileutil + +import ( + "os" + "syscall" +) + +// This used to call syscall.Flock() but that call fails with EBADF on NFS. +// An alternative is lockf() which works on NFS but that call lets a process lock +// the same file twice. Instead, use Linux's non-standard open file descriptor +// locks which will block if the process already holds the file lock. +// +// constants from /usr/include/bits/fcntl-linux.h +const ( + F_OFD_GETLK = 37 + F_OFD_SETLK = 37 + F_OFD_SETLKW = 38 +) + +var ( + wrlck = syscall.Flock_t{ + Type: syscall.F_WRLCK, + Whence: int16(os.SEEK_SET), + Start: 0, + Len: 0, + } + + linuxTryLockFile = flockTryLockFile + linuxLockFile = flockLockFile +) + +func init() { + // use open file descriptor locks if the system supports it + getlk := syscall.Flock_t{Type: syscall.F_RDLCK} + if err := syscall.FcntlFlock(0, F_OFD_GETLK, &getlk); err == nil { + linuxTryLockFile = ofdTryLockFile + linuxLockFile = ofdLockFile + } +} + +func TryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + return linuxTryLockFile(path, flag, perm) +} + +func ofdTryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + f, err := os.OpenFile(path, flag, perm) + if err != nil { + return nil, err + } + + flock := wrlck + if err = syscall.FcntlFlock(f.Fd(), F_OFD_SETLK, &flock); err != nil { + f.Close() + if err == syscall.EWOULDBLOCK { + err = ErrLocked + } + return nil, err + } + return &LockedFile{f}, nil +} + +func LockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + return linuxLockFile(path, flag, perm) +} + +func ofdLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + f, err := os.OpenFile(path, flag, perm) + if err != nil { + return nil, err + } + + flock := wrlck + err = syscall.FcntlFlock(f.Fd(), F_OFD_SETLKW, &flock) + + if err != nil { + f.Close() + return nil, err + } + return &LockedFile{f}, err +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_plan9.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_plan9.go new file mode 100644 index 0000000000..fee6a7c8f4 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_plan9.go @@ -0,0 +1,45 @@ +// Copyright 2015 The etcd 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 fileutil + +import ( + "os" + "syscall" + "time" +) + +func TryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + if err := os.Chmod(path, syscall.DMEXCL|PrivateFileMode); err != nil { + return nil, err + } + f, err := os.Open(path, flag, perm) + if err != nil { + return nil, ErrLocked + } + return &LockedFile{f}, nil +} + +func LockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + if err := os.Chmod(path, syscall.DMEXCL|PrivateFileMode); err != nil { + return nil, err + } + for { + f, err := os.OpenFile(path, flag, perm) + if err == nil { + return &LockedFile{f}, nil + } + time.Sleep(10 * time.Millisecond) + } +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_solaris.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_solaris.go new file mode 100644 index 0000000000..352ca5590d --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_solaris.go @@ -0,0 +1,62 @@ +// Copyright 2015 The etcd 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 solaris + +package fileutil + +import ( + "os" + "syscall" +) + +func TryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + var lock syscall.Flock_t + lock.Start = 0 + lock.Len = 0 + lock.Pid = 0 + lock.Type = syscall.F_WRLCK + lock.Whence = 0 + lock.Pid = 0 + f, err := os.OpenFile(path, flag, perm) + if err != nil { + return nil, err + } + if err := syscall.FcntlFlock(f.Fd(), syscall.F_SETLK, &lock); err != nil { + f.Close() + if err == syscall.EAGAIN { + err = ErrLocked + } + return nil, err + } + return &LockedFile{f}, nil +} + +func LockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + var lock syscall.Flock_t + lock.Start = 0 + lock.Len = 0 + lock.Pid = 0 + lock.Type = syscall.F_WRLCK + lock.Whence = 0 + f, err := os.OpenFile(path, flag, perm) + if err != nil { + return nil, err + } + if err = syscall.FcntlFlock(f.Fd(), syscall.F_SETLKW, &lock); err != nil { + f.Close() + return nil, err + } + return &LockedFile{f}, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_unix.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_unix.go new file mode 100644 index 0000000000..ed01164de6 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_unix.go @@ -0,0 +1,29 @@ +// Copyright 2015 The etcd 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 !windows,!plan9,!solaris,!linux + +package fileutil + +import ( + "os" +) + +func TryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + return flockTryLockFile(path, flag, perm) +} + +func LockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + return flockLockFile(path, flag, perm) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_windows.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_windows.go new file mode 100644 index 0000000000..8698f4a8d1 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/lock_windows.go @@ -0,0 +1,125 @@ +// Copyright 2015 The etcd 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 windows + +package fileutil + +import ( + "errors" + "fmt" + "os" + "syscall" + "unsafe" +) + +var ( + modkernel32 = syscall.NewLazyDLL("kernel32.dll") + procLockFileEx = modkernel32.NewProc("LockFileEx") + + errLocked = errors.New("The process cannot access the file because another process has locked a portion of the file.") +) + +const ( + // https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203(v=vs.85).aspx + LOCKFILE_EXCLUSIVE_LOCK = 2 + LOCKFILE_FAIL_IMMEDIATELY = 1 + + // see https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx + errLockViolation syscall.Errno = 0x21 +) + +func TryLockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + f, err := open(path, flag, perm) + if err != nil { + return nil, err + } + if err := lockFile(syscall.Handle(f.Fd()), LOCKFILE_FAIL_IMMEDIATELY); err != nil { + f.Close() + return nil, err + } + return &LockedFile{f}, nil +} + +func LockFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { + f, err := open(path, flag, perm) + if err != nil { + return nil, err + } + if err := lockFile(syscall.Handle(f.Fd()), 0); err != nil { + f.Close() + return nil, err + } + return &LockedFile{f}, nil +} + +func open(path string, flag int, perm os.FileMode) (*os.File, error) { + if path == "" { + return nil, fmt.Errorf("cannot open empty filename") + } + var access uint32 + switch flag { + case syscall.O_RDONLY: + access = syscall.GENERIC_READ + case syscall.O_WRONLY: + access = syscall.GENERIC_WRITE + case syscall.O_RDWR: + access = syscall.GENERIC_READ | syscall.GENERIC_WRITE + case syscall.O_WRONLY | syscall.O_CREAT: + access = syscall.GENERIC_ALL + default: + panic(fmt.Errorf("flag %v is not supported", flag)) + } + fd, err := syscall.CreateFile(&(syscall.StringToUTF16(path)[0]), + access, + syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE|syscall.FILE_SHARE_DELETE, + nil, + syscall.OPEN_ALWAYS, + syscall.FILE_ATTRIBUTE_NORMAL, + 0) + if err != nil { + return nil, err + } + return os.NewFile(uintptr(fd), path), nil +} + +func lockFile(fd syscall.Handle, flags uint32) error { + var flag uint32 = LOCKFILE_EXCLUSIVE_LOCK + flag |= flags + if fd == syscall.InvalidHandle { + return nil + } + err := lockFileEx(fd, flag, 1, 0, &syscall.Overlapped{}) + if err == nil { + return nil + } else if err.Error() == errLocked.Error() { + return ErrLocked + } else if err != errLockViolation { + return err + } + return nil +} + +func lockFileEx(h syscall.Handle, flags, locklow, lockhigh uint32, ol *syscall.Overlapped) (err error) { + var reserved uint32 = 0 + r1, _, e1 := syscall.Syscall6(procLockFileEx.Addr(), 6, uintptr(h), uintptr(flags), uintptr(reserved), uintptr(locklow), uintptr(lockhigh), uintptr(unsafe.Pointer(ol))) + if r1 == 0 { + if e1 != 0 { + err = error(e1) + } else { + err = syscall.EINVAL + } + } + return +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate.go new file mode 100644 index 0000000000..bb7f028123 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate.go @@ -0,0 +1,47 @@ +// Copyright 2015 The etcd 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 fileutil + +import "os" + +// Preallocate tries to allocate the space for given +// file. This operation is only supported on linux by a +// few filesystems (btrfs, ext4, etc.). +// If the operation is unsupported, no error will be returned. +// Otherwise, the error encountered will be returned. +func Preallocate(f *os.File, sizeInBytes int64, extendFile bool) error { + if extendFile { + return preallocExtend(f, sizeInBytes) + } + return preallocFixed(f, sizeInBytes) +} + +func preallocExtendTrunc(f *os.File, sizeInBytes int64) error { + curOff, err := f.Seek(0, os.SEEK_CUR) + if err != nil { + return err + } + size, err := f.Seek(sizeInBytes, os.SEEK_END) + if err != nil { + return err + } + if _, err = f.Seek(curOff, os.SEEK_SET); err != nil { + return err + } + if sizeInBytes > size { + return nil + } + return f.Truncate(sizeInBytes) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_darwin.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_darwin.go new file mode 100644 index 0000000000..1ed09c560f --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_darwin.go @@ -0,0 +1,43 @@ +// Copyright 2016 The etcd 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 darwin + +package fileutil + +import ( + "os" + "syscall" + "unsafe" +) + +func preallocExtend(f *os.File, sizeInBytes int64) error { + if err := preallocFixed(f, sizeInBytes); err != nil { + return err + } + return preallocExtendTrunc(f, sizeInBytes) +} + +func preallocFixed(f *os.File, sizeInBytes int64) error { + fstore := &syscall.Fstore_t{ + Flags: syscall.F_ALLOCATEALL, + Posmode: syscall.F_PEOFPOSMODE, + Length: sizeInBytes} + p := unsafe.Pointer(fstore) + _, _, errno := syscall.Syscall(syscall.SYS_FCNTL, f.Fd(), uintptr(syscall.F_PREALLOCATE), uintptr(p)) + if errno == 0 || errno == syscall.ENOTSUP { + return nil + } + return errno +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_unix.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_unix.go new file mode 100644 index 0000000000..50bd84f02a --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_unix.go @@ -0,0 +1,49 @@ +// Copyright 2016 The etcd 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 linux + +package fileutil + +import ( + "os" + "syscall" +) + +func preallocExtend(f *os.File, sizeInBytes int64) error { + // use mode = 0 to change size + err := syscall.Fallocate(int(f.Fd()), 0, 0, sizeInBytes) + if err != nil { + errno, ok := err.(syscall.Errno) + // not supported; fallback + // fallocate EINTRs frequently in some environments; fallback + if ok && (errno == syscall.ENOTSUP || errno == syscall.EINTR) { + return preallocExtendTrunc(f, sizeInBytes) + } + } + return err +} + +func preallocFixed(f *os.File, sizeInBytes int64) error { + // use mode = 1 to keep size; see FALLOC_FL_KEEP_SIZE + err := syscall.Fallocate(int(f.Fd()), 1, 0, sizeInBytes) + if err != nil { + errno, ok := err.(syscall.Errno) + // treat not supported as nil error + if ok && errno == syscall.ENOTSUP { + return nil + } + } + return err +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_unsupported.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_unsupported.go new file mode 100644 index 0000000000..162fbc5f78 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/preallocate_unsupported.go @@ -0,0 +1,25 @@ +// Copyright 2015 The etcd 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 !linux,!darwin + +package fileutil + +import "os" + +func preallocExtend(f *os.File, sizeInBytes int64) error { + return preallocExtendTrunc(f, sizeInBytes) +} + +func preallocFixed(f *os.File, sizeInBytes int64) error { return nil } diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/purge.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/purge.go new file mode 100644 index 0000000000..53bda0c012 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/purge.go @@ -0,0 +1,78 @@ +// Copyright 2015 The etcd 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 fileutil + +import ( + "os" + "path" + "sort" + "strings" + "time" +) + +func PurgeFile(dirname string, suffix string, max uint, interval time.Duration, stop <-chan struct{}) <-chan error { + return purgeFile(dirname, suffix, max, interval, stop, nil) +} + +// purgeFile is the internal implementation for PurgeFile which can post purged files to purgec if non-nil. +func purgeFile(dirname string, suffix string, max uint, interval time.Duration, stop <-chan struct{}, purgec chan<- string) <-chan error { + errC := make(chan error, 1) + go func() { + for { + fnames, err := ReadDir(dirname) + if err != nil { + errC <- err + return + } + newfnames := make([]string, 0) + for _, fname := range fnames { + if strings.HasSuffix(fname, suffix) { + newfnames = append(newfnames, fname) + } + } + sort.Strings(newfnames) + fnames = newfnames + for len(newfnames) > int(max) { + f := path.Join(dirname, newfnames[0]) + l, err := TryLockFile(f, os.O_WRONLY, PrivateFileMode) + if err != nil { + break + } + if err = os.Remove(f); err != nil { + errC <- err + return + } + if err = l.Close(); err != nil { + plog.Errorf("error unlocking %s when purging file (%v)", l.Name(), err) + errC <- err + return + } + plog.Infof("purged file %s successfully", f) + newfnames = newfnames[1:] + } + if purgec != nil { + for i := 0; i < len(fnames)-len(newfnames); i++ { + purgec <- fnames[i] + } + } + select { + case <-time.After(interval): + case <-stop: + return + } + } + }() + return errC +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync.go new file mode 100644 index 0000000000..54dd41f4f3 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync.go @@ -0,0 +1,29 @@ +// Copyright 2016 The etcd 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 !linux,!darwin + +package fileutil + +import "os" + +// Fsync is a wrapper around file.Sync(). Special handling is needed on darwin platform. +func Fsync(f *os.File) error { + return f.Sync() +} + +// Fdatasync is a wrapper around file.Sync(). Special handling is needed on linux platform. +func Fdatasync(f *os.File) error { + return f.Sync() +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync_darwin.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync_darwin.go new file mode 100644 index 0000000000..c2f39bf204 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync_darwin.go @@ -0,0 +1,40 @@ +// Copyright 2016 The etcd 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 darwin + +package fileutil + +import ( + "os" + "syscall" +) + +// Fsync on HFS/OSX flushes the data on to the physical drive but the drive +// may not write it to the persistent media for quite sometime and it may be +// written in out-of-order sequence. Using F_FULLFSYNC ensures that the +// physical drive's buffer will also get flushed to the media. +func Fsync(f *os.File) error { + _, _, errno := syscall.Syscall(syscall.SYS_FCNTL, f.Fd(), uintptr(syscall.F_FULLFSYNC), uintptr(0)) + if errno == 0 { + return nil + } + return errno +} + +// Fdatasync on darwin platform invokes fcntl(F_FULLFSYNC) for actual persistence +// on physical drive media. +func Fdatasync(f *os.File) error { + return Fsync(f) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync_linux.go b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync_linux.go new file mode 100644 index 0000000000..1bbced915e --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/fileutil/sync_linux.go @@ -0,0 +1,34 @@ +// Copyright 2016 The etcd 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 linux + +package fileutil + +import ( + "os" + "syscall" +) + +// Fsync is a wrapper around file.Sync(). Special handling is needed on darwin platform. +func Fsync(f *os.File) error { + return f.Sync() +} + +// Fdatasync is similar to fsync(), but does not flush modified metadata +// unless that metadata is needed in order to allow a subsequent data retrieval +// to be correctly handled. +func Fdatasync(f *os.File) error { + return syscall.Fdatasync(int(f.Fd())) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/pathutil/path.go b/ingress/vendor/github.com/coreos/etcd/pkg/pathutil/path.go new file mode 100644 index 0000000000..f26254ba93 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/pathutil/path.go @@ -0,0 +1,31 @@ +// Copyright 2009 The Go 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 pathutil implements utility functions for handling slash-separated +// paths. +package pathutil + +import "path" + +// CanonicalURLPath returns the canonical url path for p, which follows the rules: +// 1. the path always starts with "/" +// 2. replace multiple slashes with a single slash +// 3. replace each '.' '..' path name element with equivalent one +// 4. keep the trailing slash +// The function is borrowed from stdlib http.cleanPath in server.go. +func CanonicalURLPath(p string) string { + if p == "" { + return "/" + } + if p[0] != '/' { + p = "/" + p + } + np := path.Clean(p) + // path.Clean removes trailing slash except for root, + // put the trailing slash back if necessary. + if p[len(p)-1] == '/' && np != "/" { + np += "/" + } + return np +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/tlsutil/doc.go b/ingress/vendor/github.com/coreos/etcd/pkg/tlsutil/doc.go new file mode 100644 index 0000000000..3b6aa670ba --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/tlsutil/doc.go @@ -0,0 +1,16 @@ +// Copyright 2016 The etcd 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 tlsutil provides utility functions for handling TLS. +package tlsutil diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/tlsutil/tlsutil.go b/ingress/vendor/github.com/coreos/etcd/pkg/tlsutil/tlsutil.go new file mode 100644 index 0000000000..79b1f632ed --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/tlsutil/tlsutil.go @@ -0,0 +1,72 @@ +// Copyright 2016 The etcd 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 tlsutil + +import ( + "crypto/tls" + "crypto/x509" + "encoding/pem" + "io/ioutil" +) + +// NewCertPool creates x509 certPool with provided CA files. +func NewCertPool(CAFiles []string) (*x509.CertPool, error) { + certPool := x509.NewCertPool() + + for _, CAFile := range CAFiles { + pemByte, err := ioutil.ReadFile(CAFile) + if err != nil { + return nil, err + } + + for { + var block *pem.Block + block, pemByte = pem.Decode(pemByte) + if block == nil { + break + } + cert, err := x509.ParseCertificate(block.Bytes) + if err != nil { + return nil, err + } + certPool.AddCert(cert) + } + } + + return certPool, nil +} + +// NewCert generates TLS cert by using the given cert,key and parse function. +func NewCert(certfile, keyfile string, parseFunc func([]byte, []byte) (tls.Certificate, error)) (*tls.Certificate, error) { + cert, err := ioutil.ReadFile(certfile) + if err != nil { + return nil, err + } + + key, err := ioutil.ReadFile(keyfile) + if err != nil { + return nil, err + } + + if parseFunc == nil { + parseFunc = tls.X509KeyPair + } + + tlsCert, err := parseFunc(cert, key) + if err != nil { + return nil, err + } + return &tlsCert, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/doc.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/doc.go new file mode 100644 index 0000000000..37658ce591 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/doc.go @@ -0,0 +1,17 @@ +// Copyright 2015 The etcd 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 transport implements various HTTP transport utilities based on Go +// net package. +package transport diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/keepalive_listener.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/keepalive_listener.go new file mode 100644 index 0000000000..6ccae4ee4a --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/keepalive_listener.go @@ -0,0 +1,94 @@ +// Copyright 2015 The etcd 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 transport + +import ( + "crypto/tls" + "fmt" + "net" + "time" +) + +type keepAliveConn interface { + SetKeepAlive(bool) error + SetKeepAlivePeriod(d time.Duration) error +} + +// NewKeepAliveListener returns a listener that listens on the given address. +// Be careful when wrap around KeepAliveListener with another Listener if TLSInfo is not nil. +// Some pkgs (like go/http) might expect Listener to return TLSConn type to start TLS handshake. +// http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html +func NewKeepAliveListener(l net.Listener, scheme string, tlscfg *tls.Config) (net.Listener, error) { + if scheme == "https" { + if tlscfg == nil { + return nil, fmt.Errorf("cannot listen on TLS for given listener: KeyFile and CertFile are not presented") + } + return newTLSKeepaliveListener(l, tlscfg), nil + } + + return &keepaliveListener{ + Listener: l, + }, nil +} + +type keepaliveListener struct{ net.Listener } + +func (kln *keepaliveListener) Accept() (net.Conn, error) { + c, err := kln.Listener.Accept() + if err != nil { + return nil, err + } + kac := c.(keepAliveConn) + // detection time: tcp_keepalive_time + tcp_keepalive_probes + tcp_keepalive_intvl + // default on linux: 30 + 8 * 30 + // default on osx: 30 + 8 * 75 + kac.SetKeepAlive(true) + kac.SetKeepAlivePeriod(30 * time.Second) + return c, nil +} + +// A tlsKeepaliveListener implements a network listener (net.Listener) for TLS connections. +type tlsKeepaliveListener struct { + net.Listener + config *tls.Config +} + +// Accept waits for and returns the next incoming TLS connection. +// The returned connection c is a *tls.Conn. +func (l *tlsKeepaliveListener) Accept() (c net.Conn, err error) { + c, err = l.Listener.Accept() + if err != nil { + return + } + kac := c.(keepAliveConn) + // detection time: tcp_keepalive_time + tcp_keepalive_probes + tcp_keepalive_intvl + // default on linux: 30 + 8 * 30 + // default on osx: 30 + 8 * 75 + kac.SetKeepAlive(true) + kac.SetKeepAlivePeriod(30 * time.Second) + c = tls.Server(c, l.config) + return +} + +// NewListener creates a Listener which accepts connections from an inner +// Listener and wraps each connection with Server. +// The configuration config must be non-nil and must have +// at least one certificate. +func newTLSKeepaliveListener(inner net.Listener, config *tls.Config) net.Listener { + l := &tlsKeepaliveListener{} + l.Listener = inner + l.config = config + return l +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/limit_listen.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/limit_listen.go new file mode 100644 index 0000000000..930c542066 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/limit_listen.go @@ -0,0 +1,80 @@ +// Copyright 2013 The etcd 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 transport provides network utility functions, complementing the more +// common ones in the net package. +package transport + +import ( + "errors" + "net" + "sync" + "time" +) + +var ( + ErrNotTCP = errors.New("only tcp connections have keepalive") +) + +// LimitListener returns a Listener that accepts at most n simultaneous +// connections from the provided Listener. +func LimitListener(l net.Listener, n int) net.Listener { + return &limitListener{l, make(chan struct{}, n)} +} + +type limitListener struct { + net.Listener + sem chan struct{} +} + +func (l *limitListener) acquire() { l.sem <- struct{}{} } +func (l *limitListener) release() { <-l.sem } + +func (l *limitListener) Accept() (net.Conn, error) { + l.acquire() + c, err := l.Listener.Accept() + if err != nil { + l.release() + return nil, err + } + return &limitListenerConn{Conn: c, release: l.release}, nil +} + +type limitListenerConn struct { + net.Conn + releaseOnce sync.Once + release func() +} + +func (l *limitListenerConn) Close() error { + err := l.Conn.Close() + l.releaseOnce.Do(l.release) + return err +} + +func (l *limitListenerConn) SetKeepAlive(doKeepAlive bool) error { + tcpc, ok := l.Conn.(*net.TCPConn) + if !ok { + return ErrNotTCP + } + return tcpc.SetKeepAlive(doKeepAlive) +} + +func (l *limitListenerConn) SetKeepAlivePeriod(d time.Duration) error { + tcpc, ok := l.Conn.(*net.TCPConn) + if !ok { + return ErrNotTCP + } + return tcpc.SetKeepAlivePeriod(d) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/listener.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/listener.go new file mode 100644 index 0000000000..46fe12009d --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/listener.go @@ -0,0 +1,268 @@ +// Copyright 2015 The etcd 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 transport + +import ( + "crypto/ecdsa" + "crypto/elliptic" + "crypto/rand" + "crypto/tls" + "crypto/x509" + "crypto/x509/pkix" + "encoding/pem" + "fmt" + "math/big" + "net" + "os" + "path" + "strings" + "time" + + "github.com/coreos/etcd/pkg/fileutil" + "github.com/coreos/etcd/pkg/tlsutil" +) + +func NewListener(addr string, scheme string, tlscfg *tls.Config) (l net.Listener, err error) { + if scheme == "unix" || scheme == "unixs" { + // unix sockets via unix://laddr + l, err = NewUnixListener(addr) + } else { + l, err = net.Listen("tcp", addr) + } + + if err != nil { + return nil, err + } + + if scheme == "https" || scheme == "unixs" { + if tlscfg == nil { + return nil, fmt.Errorf("cannot listen on TLS for %s: KeyFile and CertFile are not presented", scheme+"://"+addr) + } + + l = tls.NewListener(l, tlscfg) + } + + return l, nil +} + +type TLSInfo struct { + CertFile string + KeyFile string + CAFile string + TrustedCAFile string + ClientCertAuth bool + + // ServerName ensures the cert matches the given host in case of discovery / virtual hosting + ServerName string + + selfCert bool + + // parseFunc exists to simplify testing. Typically, parseFunc + // should be left nil. In that case, tls.X509KeyPair will be used. + parseFunc func([]byte, []byte) (tls.Certificate, error) +} + +func (info TLSInfo) String() string { + return fmt.Sprintf("cert = %s, key = %s, ca = %s, trusted-ca = %s, client-cert-auth = %v", info.CertFile, info.KeyFile, info.CAFile, info.TrustedCAFile, info.ClientCertAuth) +} + +func (info TLSInfo) Empty() bool { + return info.CertFile == "" && info.KeyFile == "" +} + +func SelfCert(dirpath string, hosts []string) (info TLSInfo, err error) { + if err = fileutil.TouchDirAll(dirpath); err != nil { + return + } + + certPath := path.Join(dirpath, "cert.pem") + keyPath := path.Join(dirpath, "key.pem") + _, errcert := os.Stat(certPath) + _, errkey := os.Stat(keyPath) + if errcert == nil && errkey == nil { + info.CertFile = certPath + info.KeyFile = keyPath + info.selfCert = true + return + } + + serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128) + serialNumber, err := rand.Int(rand.Reader, serialNumberLimit) + if err != nil { + return + } + + tmpl := x509.Certificate{ + SerialNumber: serialNumber, + Subject: pkix.Name{Organization: []string{"etcd"}}, + NotBefore: time.Now(), + NotAfter: time.Now().Add(365 * (24 * time.Hour)), + + KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, + ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, + BasicConstraintsValid: true, + } + + for _, host := range hosts { + if ip := net.ParseIP(host); ip != nil { + tmpl.IPAddresses = append(tmpl.IPAddresses, ip) + } else { + tmpl.DNSNames = append(tmpl.DNSNames, strings.Split(host, ":")[0]) + } + } + + priv, err := ecdsa.GenerateKey(elliptic.P521(), rand.Reader) + if err != nil { + return + } + + derBytes, err := x509.CreateCertificate(rand.Reader, &tmpl, &tmpl, &priv.PublicKey, priv) + if err != nil { + return + } + + certOut, err := os.Create(certPath) + if err != nil { + return + } + pem.Encode(certOut, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes}) + certOut.Close() + + b, err := x509.MarshalECPrivateKey(priv) + if err != nil { + return + } + keyOut, err := os.OpenFile(keyPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600) + if err != nil { + return + } + pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b}) + keyOut.Close() + + return SelfCert(dirpath, hosts) +} + +func (info TLSInfo) baseConfig() (*tls.Config, error) { + if info.KeyFile == "" || info.CertFile == "" { + return nil, fmt.Errorf("KeyFile and CertFile must both be present[key: %v, cert: %v]", info.KeyFile, info.CertFile) + } + + tlsCert, err := tlsutil.NewCert(info.CertFile, info.KeyFile, info.parseFunc) + if err != nil { + return nil, err + } + + cfg := &tls.Config{ + Certificates: []tls.Certificate{*tlsCert}, + MinVersion: tls.VersionTLS12, + ServerName: info.ServerName, + } + return cfg, nil +} + +// cafiles returns a list of CA file paths. +func (info TLSInfo) cafiles() []string { + cs := make([]string, 0) + if info.CAFile != "" { + cs = append(cs, info.CAFile) + } + if info.TrustedCAFile != "" { + cs = append(cs, info.TrustedCAFile) + } + return cs +} + +// ServerConfig generates a tls.Config object for use by an HTTP server. +func (info TLSInfo) ServerConfig() (*tls.Config, error) { + cfg, err := info.baseConfig() + if err != nil { + return nil, err + } + + cfg.ClientAuth = tls.NoClientCert + if info.CAFile != "" || info.ClientCertAuth { + cfg.ClientAuth = tls.RequireAndVerifyClientCert + } + + CAFiles := info.cafiles() + if len(CAFiles) > 0 { + cp, err := tlsutil.NewCertPool(CAFiles) + if err != nil { + return nil, err + } + cfg.ClientCAs = cp + } + + return cfg, nil +} + +// ClientConfig generates a tls.Config object for use by an HTTP client. +func (info TLSInfo) ClientConfig() (*tls.Config, error) { + var cfg *tls.Config + var err error + + if !info.Empty() { + cfg, err = info.baseConfig() + if err != nil { + return nil, err + } + } else { + cfg = &tls.Config{ServerName: info.ServerName} + } + + CAFiles := info.cafiles() + if len(CAFiles) > 0 { + cfg.RootCAs, err = tlsutil.NewCertPool(CAFiles) + if err != nil { + return nil, err + } + // if given a CA, trust any host with a cert signed by the CA + cfg.ServerName = "" + } + + if info.selfCert { + cfg.InsecureSkipVerify = true + } + return cfg, nil +} + +// ShallowCopyTLSConfig copies *tls.Config. This is only +// work-around for go-vet tests, which complains +// +// assignment copies lock value to p: crypto/tls.Config contains sync.Once contains sync.Mutex +// +// Keep up-to-date with 'go/src/crypto/tls/common.go' +func ShallowCopyTLSConfig(cfg *tls.Config) *tls.Config { + ncfg := tls.Config{ + Time: cfg.Time, + Certificates: cfg.Certificates, + NameToCertificate: cfg.NameToCertificate, + GetCertificate: cfg.GetCertificate, + RootCAs: cfg.RootCAs, + NextProtos: cfg.NextProtos, + ServerName: cfg.ServerName, + ClientAuth: cfg.ClientAuth, + ClientCAs: cfg.ClientCAs, + InsecureSkipVerify: cfg.InsecureSkipVerify, + CipherSuites: cfg.CipherSuites, + PreferServerCipherSuites: cfg.PreferServerCipherSuites, + SessionTicketKey: cfg.SessionTicketKey, + ClientSessionCache: cfg.ClientSessionCache, + MinVersion: cfg.MinVersion, + MaxVersion: cfg.MaxVersion, + CurvePreferences: cfg.CurvePreferences, + } + return &ncfg +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_conn.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_conn.go new file mode 100644 index 0000000000..7e8c02030f --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_conn.go @@ -0,0 +1,44 @@ +// Copyright 2015 The etcd 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 transport + +import ( + "net" + "time" +) + +type timeoutConn struct { + net.Conn + wtimeoutd time.Duration + rdtimeoutd time.Duration +} + +func (c timeoutConn) Write(b []byte) (n int, err error) { + if c.wtimeoutd > 0 { + if err := c.SetWriteDeadline(time.Now().Add(c.wtimeoutd)); err != nil { + return 0, err + } + } + return c.Conn.Write(b) +} + +func (c timeoutConn) Read(b []byte) (n int, err error) { + if c.rdtimeoutd > 0 { + if err := c.SetReadDeadline(time.Now().Add(c.rdtimeoutd)); err != nil { + return 0, err + } + } + return c.Conn.Read(b) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_dialer.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_dialer.go new file mode 100644 index 0000000000..6ae39ecfc9 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_dialer.go @@ -0,0 +1,36 @@ +// Copyright 2015 The etcd 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 transport + +import ( + "net" + "time" +) + +type rwTimeoutDialer struct { + wtimeoutd time.Duration + rdtimeoutd time.Duration + net.Dialer +} + +func (d *rwTimeoutDialer) Dial(network, address string) (net.Conn, error) { + conn, err := d.Dialer.Dial(network, address) + tconn := &timeoutConn{ + rdtimeoutd: d.rdtimeoutd, + wtimeoutd: d.wtimeoutd, + Conn: conn, + } + return tconn, err +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_listener.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_listener.go new file mode 100644 index 0000000000..f176c43b95 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_listener.go @@ -0,0 +1,54 @@ +// Copyright 2015 The etcd 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 transport + +import ( + "crypto/tls" + "net" + "time" +) + +// NewTimeoutListener returns a listener that listens on the given address. +// If read/write on the accepted connection blocks longer than its time limit, +// it will return timeout error. +func NewTimeoutListener(addr string, scheme string, tlscfg *tls.Config, rdtimeoutd, wtimeoutd time.Duration) (net.Listener, error) { + ln, err := NewListener(addr, scheme, tlscfg) + if err != nil { + return nil, err + } + return &rwTimeoutListener{ + Listener: ln, + rdtimeoutd: rdtimeoutd, + wtimeoutd: wtimeoutd, + }, nil +} + +type rwTimeoutListener struct { + net.Listener + wtimeoutd time.Duration + rdtimeoutd time.Duration +} + +func (rwln *rwTimeoutListener) Accept() (net.Conn, error) { + c, err := rwln.Listener.Accept() + if err != nil { + return nil, err + } + return timeoutConn{ + Conn: c, + wtimeoutd: rwln.wtimeoutd, + rdtimeoutd: rwln.rdtimeoutd, + }, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_transport.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_transport.go new file mode 100644 index 0000000000..742cc5cbf1 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/timeout_transport.go @@ -0,0 +1,51 @@ +// Copyright 2015 The etcd 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 transport + +import ( + "net" + "net/http" + "time" +) + +// NewTimeoutTransport returns a transport created using the given TLS info. +// If read/write on the created connection blocks longer than its time limit, +// it will return timeout error. +// If read/write timeout is set, transport will not be able to reuse connection. +func NewTimeoutTransport(info TLSInfo, dialtimeoutd, rdtimeoutd, wtimeoutd time.Duration) (*http.Transport, error) { + tr, err := NewTransport(info, dialtimeoutd) + if err != nil { + return nil, err + } + + if rdtimeoutd != 0 || wtimeoutd != 0 { + // the timed out connection will timeout soon after it is idle. + // it should not be put back to http transport as an idle connection for future usage. + tr.MaxIdleConnsPerHost = -1 + } else { + // allow more idle connections between peers to avoid unncessary port allocation. + tr.MaxIdleConnsPerHost = 1024 + } + + tr.Dial = (&rwTimeoutDialer{ + Dialer: net.Dialer{ + Timeout: dialtimeoutd, + KeepAlive: 30 * time.Second, + }, + rdtimeoutd: rdtimeoutd, + wtimeoutd: wtimeoutd, + }).Dial + return tr, nil +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/tls.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/tls.go new file mode 100644 index 0000000000..62fe0d3851 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/tls.go @@ -0,0 +1,49 @@ +// Copyright 2016 The etcd 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 transport + +import ( + "fmt" + "strings" + "time" +) + +// ValidateSecureEndpoints scans the given endpoints against tls info, returning only those +// endpoints that could be validated as secure. +func ValidateSecureEndpoints(tlsInfo TLSInfo, eps []string) ([]string, error) { + t, err := NewTransport(tlsInfo, 5*time.Second) + if err != nil { + return nil, err + } + var errs []string + var endpoints []string + for _, ep := range eps { + if !strings.HasPrefix(ep, "https://") { + errs = append(errs, fmt.Sprintf("%q is insecure", ep)) + continue + } + conn, cerr := t.Dial("tcp", ep[len("https://"):]) + if cerr != nil { + errs = append(errs, fmt.Sprintf("%q failed to dial (%v)", ep, cerr)) + continue + } + conn.Close() + endpoints = append(endpoints, ep) + } + if len(errs) != 0 { + err = fmt.Errorf("%s", strings.Join(errs, ",")) + } + return endpoints, err +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/transport.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/transport.go new file mode 100644 index 0000000000..ca9ccfd802 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/transport.go @@ -0,0 +1,70 @@ +// Copyright 2016 The etcd 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 transport + +import ( + "net" + "net/http" + "strings" + "time" +) + +type unixTransport struct{ *http.Transport } + +func NewTransport(info TLSInfo, dialtimeoutd time.Duration) (*http.Transport, error) { + cfg, err := info.ClientConfig() + if err != nil { + return nil, err + } + + t := &http.Transport{ + Proxy: http.ProxyFromEnvironment, + Dial: (&net.Dialer{ + Timeout: dialtimeoutd, + // value taken from http.DefaultTransport + KeepAlive: 30 * time.Second, + }).Dial, + // value taken from http.DefaultTransport + TLSHandshakeTimeout: 10 * time.Second, + TLSClientConfig: cfg, + } + + dialer := (&net.Dialer{ + Timeout: dialtimeoutd, + KeepAlive: 30 * time.Second, + }) + dial := func(net, addr string) (net.Conn, error) { + return dialer.Dial("unix", addr) + } + + tu := &http.Transport{ + Proxy: http.ProxyFromEnvironment, + Dial: dial, + TLSHandshakeTimeout: 10 * time.Second, + TLSClientConfig: cfg, + } + ut := &unixTransport{tu} + + t.RegisterProtocol("unix", ut) + t.RegisterProtocol("unixs", ut) + + return t, nil +} + +func (urt *unixTransport) RoundTrip(req *http.Request) (*http.Response, error) { + req2 := *req + req2.URL.Scheme = strings.Replace(req.URL.Scheme, "unix", "http", 1) + return urt.Transport.RoundTrip(req) +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/transport/unix_listener.go b/ingress/vendor/github.com/coreos/etcd/pkg/transport/unix_listener.go new file mode 100644 index 0000000000..c126b6f7fa --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/transport/unix_listener.go @@ -0,0 +1,40 @@ +// Copyright 2016 The etcd 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 transport + +import ( + "net" + "os" +) + +type unixListener struct{ net.Listener } + +func NewUnixListener(addr string) (net.Listener, error) { + if err := os.RemoveAll(addr); err != nil { + return nil, err + } + l, err := net.Listen("unix", addr) + if err != nil { + return nil, err + } + return &unixListener{l}, nil +} + +func (ul *unixListener) Close() error { + if err := os.RemoveAll(ul.Addr().String()); err != nil { + return err + } + return ul.Listener.Close() +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/types/doc.go b/ingress/vendor/github.com/coreos/etcd/pkg/types/doc.go new file mode 100644 index 0000000000..de8ef0bd71 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/types/doc.go @@ -0,0 +1,17 @@ +// Copyright 2015 The etcd 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 types declares various data types and implements type-checking +// functions. +package types diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/types/id.go b/ingress/vendor/github.com/coreos/etcd/pkg/types/id.go new file mode 100644 index 0000000000..1b042d9ce6 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/types/id.go @@ -0,0 +1,41 @@ +// Copyright 2015 The etcd 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 types + +import ( + "strconv" +) + +// ID represents a generic identifier which is canonically +// stored as a uint64 but is typically represented as a +// base-16 string for input/output +type ID uint64 + +func (i ID) String() string { + return strconv.FormatUint(uint64(i), 16) +} + +// IDFromString attempts to create an ID from a base-16 string. +func IDFromString(s string) (ID, error) { + i, err := strconv.ParseUint(s, 16, 64) + return ID(i), err +} + +// IDSlice implements the sort interface +type IDSlice []ID + +func (p IDSlice) Len() int { return len(p) } +func (p IDSlice) Less(i, j int) bool { return uint64(p[i]) < uint64(p[j]) } +func (p IDSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/types/set.go b/ingress/vendor/github.com/coreos/etcd/pkg/types/set.go new file mode 100644 index 0000000000..73ef431bef --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/types/set.go @@ -0,0 +1,178 @@ +// Copyright 2015 The etcd 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 types + +import ( + "reflect" + "sort" + "sync" +) + +type Set interface { + Add(string) + Remove(string) + Contains(string) bool + Equals(Set) bool + Length() int + Values() []string + Copy() Set + Sub(Set) Set +} + +func NewUnsafeSet(values ...string) *unsafeSet { + set := &unsafeSet{make(map[string]struct{})} + for _, v := range values { + set.Add(v) + } + return set +} + +func NewThreadsafeSet(values ...string) *tsafeSet { + us := NewUnsafeSet(values...) + return &tsafeSet{us, sync.RWMutex{}} +} + +type unsafeSet struct { + d map[string]struct{} +} + +// Add adds a new value to the set (no-op if the value is already present) +func (us *unsafeSet) Add(value string) { + us.d[value] = struct{}{} +} + +// Remove removes the given value from the set +func (us *unsafeSet) Remove(value string) { + delete(us.d, value) +} + +// Contains returns whether the set contains the given value +func (us *unsafeSet) Contains(value string) (exists bool) { + _, exists = us.d[value] + return +} + +// ContainsAll returns whether the set contains all given values +func (us *unsafeSet) ContainsAll(values []string) bool { + for _, s := range values { + if !us.Contains(s) { + return false + } + } + return true +} + +// Equals returns whether the contents of two sets are identical +func (us *unsafeSet) Equals(other Set) bool { + v1 := sort.StringSlice(us.Values()) + v2 := sort.StringSlice(other.Values()) + v1.Sort() + v2.Sort() + return reflect.DeepEqual(v1, v2) +} + +// Length returns the number of elements in the set +func (us *unsafeSet) Length() int { + return len(us.d) +} + +// Values returns the values of the Set in an unspecified order. +func (us *unsafeSet) Values() (values []string) { + values = make([]string, 0) + for val := range us.d { + values = append(values, val) + } + return +} + +// Copy creates a new Set containing the values of the first +func (us *unsafeSet) Copy() Set { + cp := NewUnsafeSet() + for val := range us.d { + cp.Add(val) + } + + return cp +} + +// Sub removes all elements in other from the set +func (us *unsafeSet) Sub(other Set) Set { + oValues := other.Values() + result := us.Copy().(*unsafeSet) + + for _, val := range oValues { + if _, ok := result.d[val]; !ok { + continue + } + delete(result.d, val) + } + + return result +} + +type tsafeSet struct { + us *unsafeSet + m sync.RWMutex +} + +func (ts *tsafeSet) Add(value string) { + ts.m.Lock() + defer ts.m.Unlock() + ts.us.Add(value) +} + +func (ts *tsafeSet) Remove(value string) { + ts.m.Lock() + defer ts.m.Unlock() + ts.us.Remove(value) +} + +func (ts *tsafeSet) Contains(value string) (exists bool) { + ts.m.RLock() + defer ts.m.RUnlock() + return ts.us.Contains(value) +} + +func (ts *tsafeSet) Equals(other Set) bool { + ts.m.RLock() + defer ts.m.RUnlock() + return ts.us.Equals(other) +} + +func (ts *tsafeSet) Length() int { + ts.m.RLock() + defer ts.m.RUnlock() + return ts.us.Length() +} + +func (ts *tsafeSet) Values() (values []string) { + ts.m.RLock() + defer ts.m.RUnlock() + return ts.us.Values() +} + +func (ts *tsafeSet) Copy() Set { + ts.m.RLock() + defer ts.m.RUnlock() + usResult := ts.us.Copy().(*unsafeSet) + return &tsafeSet{usResult, sync.RWMutex{}} +} + +func (ts *tsafeSet) Sub(other Set) Set { + ts.m.RLock() + defer ts.m.RUnlock() + usResult := ts.us.Sub(other).(*unsafeSet) + return &tsafeSet{usResult, sync.RWMutex{}} +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/types/slice.go b/ingress/vendor/github.com/coreos/etcd/pkg/types/slice.go new file mode 100644 index 0000000000..0dd9ca798a --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/types/slice.go @@ -0,0 +1,22 @@ +// Copyright 2015 The etcd 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 types + +// Uint64Slice implements sort interface +type Uint64Slice []uint64 + +func (p Uint64Slice) Len() int { return len(p) } +func (p Uint64Slice) Less(i, j int) bool { return p[i] < p[j] } +func (p Uint64Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/types/urls.go b/ingress/vendor/github.com/coreos/etcd/pkg/types/urls.go new file mode 100644 index 0000000000..9e5d03ff64 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/types/urls.go @@ -0,0 +1,82 @@ +// Copyright 2015 The etcd 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 types + +import ( + "errors" + "fmt" + "net" + "net/url" + "sort" + "strings" +) + +type URLs []url.URL + +func NewURLs(strs []string) (URLs, error) { + all := make([]url.URL, len(strs)) + if len(all) == 0 { + return nil, errors.New("no valid URLs given") + } + for i, in := range strs { + in = strings.TrimSpace(in) + u, err := url.Parse(in) + if err != nil { + return nil, err + } + if u.Scheme != "http" && u.Scheme != "https" && u.Scheme != "unix" && u.Scheme != "unixs" { + return nil, fmt.Errorf("URL scheme must be http, https, unix, or unixs: %s", in) + } + if _, _, err := net.SplitHostPort(u.Host); err != nil { + return nil, fmt.Errorf(`URL address does not have the form "host:port": %s`, in) + } + if u.Path != "" { + return nil, fmt.Errorf("URL must not contain a path: %s", in) + } + all[i] = *u + } + us := URLs(all) + us.Sort() + + return us, nil +} + +func MustNewURLs(strs []string) URLs { + urls, err := NewURLs(strs) + if err != nil { + panic(err) + } + return urls +} + +func (us URLs) String() string { + return strings.Join(us.StringSlice(), ",") +} + +func (us *URLs) Sort() { + sort.Sort(us) +} +func (us URLs) Len() int { return len(us) } +func (us URLs) Less(i, j int) bool { return us[i].String() < us[j].String() } +func (us URLs) Swap(i, j int) { us[i], us[j] = us[j], us[i] } + +func (us URLs) StringSlice() []string { + out := make([]string, len(us)) + for i := range us { + out[i] = us[i].String() + } + + return out +} diff --git a/ingress/vendor/github.com/coreos/etcd/pkg/types/urlsmap.go b/ingress/vendor/github.com/coreos/etcd/pkg/types/urlsmap.go new file mode 100644 index 0000000000..47690cc381 --- /dev/null +++ b/ingress/vendor/github.com/coreos/etcd/pkg/types/urlsmap.go @@ -0,0 +1,107 @@ +// Copyright 2015 The etcd 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 types + +import ( + "fmt" + "sort" + "strings" +) + +// URLsMap is a map from a name to its URLs. +type URLsMap map[string]URLs + +// NewURLsMap returns a URLsMap instantiated from the given string, +// which consists of discovery-formatted names-to-URLs, like: +// mach0=http://1.1.1.1:2380,mach0=http://2.2.2.2::2380,mach1=http://3.3.3.3:2380,mach2=http://4.4.4.4:2380 +func NewURLsMap(s string) (URLsMap, error) { + m := parse(s) + + cl := URLsMap{} + for name, urls := range m { + us, err := NewURLs(urls) + if err != nil { + return nil, err + } + cl[name] = us + } + return cl, nil +} + +// NewURLsMapFromStringMap takes a map of strings and returns a URLsMap. The +// string values in the map can be multiple values separated by the sep string. +func NewURLsMapFromStringMap(m map[string]string, sep string) (URLsMap, error) { + var err error + um := URLsMap{} + for k, v := range m { + um[k], err = NewURLs(strings.Split(v, sep)) + if err != nil { + return nil, err + } + } + return um, nil +} + +// String turns URLsMap into discovery-formatted name-to-URLs sorted by name. +func (c URLsMap) String() string { + var pairs []string + for name, urls := range c { + for _, url := range urls { + pairs = append(pairs, fmt.Sprintf("%s=%s", name, url.String())) + } + } + sort.Strings(pairs) + return strings.Join(pairs, ",") +} + +// URLs returns a list of all URLs. +// The returned list is sorted in ascending lexicographical order. +func (c URLsMap) URLs() []string { + var urls []string + for _, us := range c { + for _, u := range us { + urls = append(urls, u.String()) + } + } + sort.Strings(urls) + return urls +} + +// Len returns the size of URLsMap. +func (c URLsMap) Len() int { + return len(c) +} + +// parse parses the given string and returns a map listing the values specified for each key. +func parse(s string) map[string][]string { + m := make(map[string][]string) + for s != "" { + key := s + if i := strings.IndexAny(key, ","); i >= 0 { + key, s = key[:i], key[i+1:] + } else { + s = "" + } + if key == "" { + continue + } + value := "" + if i := strings.Index(key, "="); i >= 0 { + key, value = key[:i], key[i+1:] + } + m[key] = append(m[key], value) + } + return m +} diff --git a/ingress/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go b/ingress/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go index e2c4668823..612d55c66c 100644 --- a/ingress/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go +++ b/ingress/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go @@ -92,6 +92,12 @@ func (p *PackageLogger) Fatal(args ...interface{}) { os.Exit(1) } +func (p *PackageLogger) Fatalln(args ...interface{}) { + s := fmt.Sprintln(args...) + p.internalLog(calldepth, CRITICAL, s) + os.Exit(1) +} + // Error Functions func (p *PackageLogger) Errorf(format string, args ...interface{}) { diff --git a/ingress/vendor/github.com/docker/engine-api/types/client.go b/ingress/vendor/github.com/docker/engine-api/types/client.go index a345341490..fa3b2cfb45 100644 --- a/ingress/vendor/github.com/docker/engine-api/types/client.go +++ b/ingress/vendor/github.com/docker/engine-api/types/client.go @@ -57,6 +57,7 @@ type ContainerLogsOptions struct { Timestamps bool Follow bool Tail string + Details bool } // ContainerRemoveOptions holds parameters to remove containers. @@ -172,12 +173,14 @@ type ImageListOptions struct { // ImageLoadResponse returns information to the client about a load process. type ImageLoadResponse struct { + // Body must be closed to avoid a resource leak Body io.ReadCloser JSON bool } // ImagePullOptions holds information to pull images. type ImagePullOptions struct { + All bool RegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry PrivilegeFunc RequestPrivilegeFunc } @@ -203,6 +206,7 @@ type ImageRemoveOptions struct { type ImageSearchOptions struct { RegistryAuth string PrivilegeFunc RequestPrivilegeFunc + Filters filters.Args } // ImageTagOptions holds parameters to tag an image diff --git a/ingress/vendor/github.com/docker/engine-api/types/container/host_config.go b/ingress/vendor/github.com/docker/engine-api/types/container/host_config.go index 39f6a22516..2446c1904d 100644 --- a/ingress/vendor/github.com/docker/engine-api/types/container/host_config.go +++ b/ingress/vendor/github.com/docker/engine-api/types/container/host_config.go @@ -136,30 +136,49 @@ func (n UTSMode) Valid() bool { return true } -// PidMode represents the pid stack of the container. +// PidMode represents the pid namespace of the container. type PidMode string -// IsPrivate indicates whether the container uses its private pid stack. +// IsPrivate indicates whether the container uses its own new pid namespace. func (n PidMode) IsPrivate() bool { - return !(n.IsHost()) + return !(n.IsHost() || n.IsContainer()) } -// IsHost indicates whether the container uses the host's pid stack. +// IsHost indicates whether the container uses the host's pid namespace. func (n PidMode) IsHost() bool { return n == "host" } -// Valid indicates whether the pid stack is valid. +// IsContainer indicates whether the container uses a container's pid namespace. +func (n PidMode) IsContainer() bool { + parts := strings.SplitN(string(n), ":", 2) + return len(parts) > 1 && parts[0] == "container" +} + +// Valid indicates whether the pid namespace is valid. func (n PidMode) Valid() bool { parts := strings.Split(string(n), ":") switch mode := parts[0]; mode { case "", "host": + case "container": + if len(parts) != 2 || parts[1] == "" { + return false + } default: return false } return true } +// Container returns the name of the container whose pid namespace is going to be used. +func (n PidMode) Container() string { + parts := strings.SplitN(string(n), ":", 2) + if len(parts) > 1 { + return parts[1] + } + return "" +} + // DeviceMapping represents the device mapping between the host and the container. type DeviceMapping struct { PathOnHost string diff --git a/ingress/vendor/github.com/docker/engine-api/types/registry/registry.go b/ingress/vendor/github.com/docker/engine-api/types/registry/registry.go index 8a6fe70ea7..d2aca6f024 100644 --- a/ingress/vendor/github.com/docker/engine-api/types/registry/registry.go +++ b/ingress/vendor/github.com/docker/engine-api/types/registry/registry.go @@ -78,12 +78,10 @@ type IndexInfo struct { type SearchResult struct { // StarCount indicates the number of stars this repository has StarCount int `json:"star_count"` - // IsOfficial indicates whether the result is an official repository or not + // IsOfficial is true if the result is from an official repository. IsOfficial bool `json:"is_official"` // Name is the name of the repository Name string `json:"name"` - // IsTrusted indicates whether the result is trusted - IsTrusted bool `json:"is_trusted"` // IsAutomated indicates whether the result is automated IsAutomated bool `json:"is_automated"` // Description is a textual description of the repository diff --git a/ingress/vendor/github.com/docker/engine-api/types/types.go b/ingress/vendor/github.com/docker/engine-api/types/types.go index 406b561a6e..cb2dc9ac9d 100644 --- a/ingress/vendor/github.com/docker/engine-api/types/types.go +++ b/ingress/vendor/github.com/docker/engine-api/types/types.go @@ -395,6 +395,7 @@ type Volume struct { Mountpoint string // Mountpoint is the location on disk of the volume Status map[string]interface{} `json:",omitempty"` // Status provides low-level status information about the volume Labels map[string]string // Labels is metadata specific to the volume + Scope string // Scope describes the level at which the volume exists (e.g. `global` for cluster-wide or `local` for machine level) } // VolumesListResponse contains the response for the remote API: diff --git a/ingress/vendor/github.com/emicklei/go-restful/README.md b/ingress/vendor/github.com/emicklei/go-restful/README.md index e5492e4767..cfe6d0a916 100644 --- a/ingress/vendor/github.com/emicklei/go-restful/README.md +++ b/ingress/vendor/github.com/emicklei/go-restful/README.md @@ -61,8 +61,8 @@ func (u UserResource) findUser(request *restful.Request, response *restful.Respo - [Documentation on godoc.org](http://godoc.org/github.com/emicklei/go-restful) - [Code examples](https://github.com/emicklei/go-restful/tree/master/examples) -- [Example posted on blog](http://ernestmicklei.com/2012/11/24/go-restful-first-working-example/) -- [Design explained on blog](http://ernestmicklei.com/2012/11/11/go-restful-api-design/) +- [Example posted on blog](http://ernestmicklei.com/2012/11/go-restful-first-working-example/) +- [Design explained on blog](http://ernestmicklei.com/2012/11/go-restful-api-design/) - [sourcegraph](https://sourcegraph.com/github.com/emicklei/go-restful) - [gopkg.in](https://gopkg.in/emicklei/go-restful.v1) - [showcase: Mora - MongoDB REST Api server](https://github.com/emicklei/mora) diff --git a/ingress/vendor/github.com/emicklei/go-restful/container.go b/ingress/vendor/github.com/emicklei/go-restful/container.go index 62ded27c71..4e53cccb93 100644 --- a/ingress/vendor/github.com/emicklei/go-restful/container.go +++ b/ingress/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/ingress/vendor/github.com/emicklei/go-restful/install.sh b/ingress/vendor/github.com/emicklei/go-restful/install.sh index 5fe03b5697..36cbf25f82 100644 --- a/ingress/vendor/github.com/emicklei/go-restful/install.sh +++ b/ingress/vendor/github.com/emicklei/go-restful/install.sh @@ -1,9 +1,10 @@ -cd examples - ls *.go | xargs -I {} go build -o /tmp/ignore {} - cd .. -go fmt ...swagger && \ +go test -test.v ...restful && \ go test -test.v ...swagger && \ +go vet ...restful && \ +go fmt ...swagger && \ go install ...swagger && \ go fmt ...restful && \ -go test -test.v ...restful && \ -go install ...restful \ No newline at end of file +go install ...restful +cd examples + ls *.go | xargs -I {} go build -o /tmp/ignore {} + cd .. \ No newline at end of file diff --git a/ingress/vendor/github.com/emicklei/go-restful/swagger/model_builder.go b/ingress/vendor/github.com/emicklei/go-restful/swagger/model_builder.go index 696d192e5b..398e83049c 100644 --- a/ingress/vendor/github.com/emicklei/go-restful/swagger/model_builder.go +++ b/ingress/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/ingress/vendor/github.com/emicklei/go-restful/swagger/swagger.go b/ingress/vendor/github.com/emicklei/go-restful/swagger/swagger.go index 967b6711e8..9c40833e7d 100644 --- a/ingress/vendor/github.com/emicklei/go-restful/swagger/swagger.go +++ b/ingress/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/ingress/vendor/github.com/emicklei/go-restful/web_service.go b/ingress/vendor/github.com/emicklei/go-restful/web_service.go index 24fc5328b1..2a51004f80 100644 --- a/ingress/vendor/github.com/emicklei/go-restful/web_service.go +++ b/ingress/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/ingress/vendor/github.com/gogo/protobuf/proto/decode.go b/ingress/vendor/github.com/gogo/protobuf/proto/decode.go index cb5b213f9b..7b06266d14 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/decode.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/decode.go @@ -773,10 +773,11 @@ func (o *Buffer) dec_new_map(p *Properties, base structPointer) error { } } keyelem, valelem := keyptr.Elem(), valptr.Elem() - if !keyelem.IsValid() || !valelem.IsValid() { - // We did not decode the key or the value in the map entry. - // Either way, it's an invalid map entry. - return fmt.Errorf("proto: bad map data: missing key/val") + if !keyelem.IsValid() { + keyelem = reflect.Zero(p.mtype.Key()) + } + if !valelem.IsValid() { + valelem = reflect.Zero(p.mtype.Elem()) } v.SetMapIndex(keyelem, valelem) diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/decode_gogo.go b/ingress/vendor/github.com/gogo/protobuf/proto/decode_gogo.go index 6a77aad766..603dabec3f 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/decode_gogo.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/decode_gogo.go @@ -115,14 +115,8 @@ func setCustomType(base structPointer, f field, value interface{}) { oldHeader.Len = v.Len() oldHeader.Cap = v.Cap() default: - l := 1 size := reflect.TypeOf(value).Elem().Size() - if kind == reflect.Array { - l = reflect.TypeOf(value).Elem().Len() - size = reflect.TypeOf(value).Size() - } - total := int(size) * l - structPointer_Copy(toStructPointer(reflect.ValueOf(value)), structPointer_Add(base, f), total) + structPointer_Copy(toStructPointer(reflect.ValueOf(value)), structPointer_Add(base, f), int(size)) } } diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/encode.go b/ingress/vendor/github.com/gogo/protobuf/proto/encode.go index 7321e1aae1..eb7e0474ef 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/encode.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/encode.go @@ -64,6 +64,10 @@ var ( // 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") ) @@ -105,6 +109,11 @@ func (p *Buffer) EncodeVarint(x uint64) error { 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++ @@ -1217,7 +1226,9 @@ func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error { // Do oneof fields. if prop.oneofMarshaler != nil { m := structPointer_Interface(base, prop.stype).(Message) - if err := prop.oneofMarshaler(m, o); err != nil { + if err := prop.oneofMarshaler(m, o); err == ErrNil { + return errOneofHasNil + } else if err != nil { return err } } @@ -1248,24 +1259,9 @@ func size_struct(prop *StructProperties, base structPointer) (n int) { } // Factor in any oneof fields. - // TODO: This could be faster and use less reflection. - if prop.oneofMarshaler != nil { - sv := reflect.ValueOf(structPointer_Interface(base, prop.stype)).Elem() - for i := 0; i < prop.stype.NumField(); i++ { - fv := sv.Field(i) - if fv.Kind() != reflect.Interface || fv.IsNil() { - continue - } - if prop.stype.Field(i).Tag.Get("protobuf_oneof") == "" { - continue - } - spv := fv.Elem() // interface -> *T - sv := spv.Elem() // *T -> T - sf := sv.Type().Field(0) // StructField inside T - var prop Properties - prop.Init(sf.Type, "whatever", sf.Tag.Get("protobuf"), &sf) - n += prop.size(&prop, toStructPointer(spv)) - } + if prop.oneofSizer != nil { + m := structPointer_Interface(base, prop.stype).(Message) + n += prop.oneofSizer(m) } return diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/equal.go b/ingress/vendor/github.com/gogo/protobuf/proto/equal.go index cc3f2c95a7..f5db1def3c 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/equal.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/equal.go @@ -50,7 +50,9 @@ Equality is defined in this way: 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. + 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) @@ -88,6 +90,7 @@ func Equal(a, b Message) bool { // 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_") { @@ -113,7 +116,7 @@ func equalStruct(v1, v2 reflect.Value) bool { } f1, f2 = f1.Elem(), f2.Elem() } - if !equalAny(f1, f2) { + if !equalAny(f1, f2, sprop.Prop[i]) { return false } } @@ -140,7 +143,8 @@ func equalStruct(v1, v2 reflect.Value) bool { } // v1 and v2 are known to have the same type. -func equalAny(v1, v2 reflect.Value) bool { +// 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) @@ -163,7 +167,7 @@ func equalAny(v1, v2 reflect.Value) bool { if e1.Type() != e2.Type() { return false } - return equalAny(e1, e2) + return equalAny(e1, e2, nil) case reflect.Map: if v1.Len() != v2.Len() { return false @@ -174,16 +178,22 @@ func equalAny(v1, v2 reflect.Value) bool { // This key was not found in the second map. return false } - if !equalAny(v1.MapIndex(key), val2) { + if !equalAny(v1.MapIndex(key), val2, nil) { return false } } return true case reflect.Ptr: - return equalAny(v1.Elem(), v2.Elem()) + 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 } @@ -194,7 +204,7 @@ func equalAny(v1, v2 reflect.Value) bool { return false } for i := 0; i < v1.Len(); i++ { - if !equalAny(v1.Index(i), v2.Index(i)) { + if !equalAny(v1.Index(i), v2.Index(i), prop) { return false } } @@ -229,7 +239,7 @@ func equalExtensions(base reflect.Type, em1, em2 map[int32]Extension) bool { if m1 != nil && m2 != nil { // Both are unencoded. - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2)) { + if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { return false } continue @@ -257,7 +267,7 @@ func equalExtensions(base reflect.Type, em1, em2 map[int32]Extension) bool { log.Printf("proto: badly encoded extension %d of %v: %v", extNum, base, err) return false } - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2)) { + if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { return false } } diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/extensions.go b/ingress/vendor/github.com/gogo/protobuf/proto/extensions.go index 9a6374fdbd..6180347e39 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/extensions.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/extensions.go @@ -403,7 +403,6 @@ func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { o := NewBuffer(b) t := reflect.TypeOf(extension.ExtensionType) - rep := extension.repeated() props := extensionProperties(extension) @@ -425,7 +424,7 @@ func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { return nil, err } - if !rep || o.index >= len(o.buf) { + if o.index >= len(o.buf) { break } } diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go b/ingress/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go index bd55fb68b6..86b1fa2344 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go @@ -56,6 +56,10 @@ func (this *Extension) Equal(that *Extension) bool { return bytes.Equal(this.enc, that.enc) } +func (this *Extension) Compare(that *Extension) int { + return bytes.Compare(this.enc, that.enc) +} + func SizeOfExtensionMap(m map[int32]Extension) (n int) { return sizeExtensionMap(m) } @@ -185,6 +189,17 @@ func NewExtension(e []byte) Extension { return ee } +func AppendExtension(e extendableProto, tag int32, buf []byte) { + if ee, eok := e.(extensionsMap); eok { + ext := ee.ExtensionMap()[int32(tag)] // may be missing + ext.enc = append(ext.enc, buf...) + ee.ExtensionMap()[int32(tag)] = ext + } else if ee, eok := e.(extensionsBytes); eok { + ext := ee.GetExtensions() + *ext = append(*ext, buf...) + } +} + func (this Extension) GoString() string { if this.enc == nil { if err := encodeExtension(&this); err != nil { diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/lib.go b/ingress/vendor/github.com/gogo/protobuf/proto/lib.go index 8ffa91a3e9..2e35ae2d2a 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/lib.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/lib.go @@ -70,6 +70,12 @@ for a protocol buffer variable v: 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 @@ -229,6 +235,7 @@ To create and play with a Test object: 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"), }, @@ -441,7 +448,7 @@ func (p *Buffer) DebugPrint(s string, b []byte) { var u uint64 obuf := p.buf - index := p.index + sindex := p.index p.buf = b p.index = 0 depth := 0 @@ -536,7 +543,7 @@ out: fmt.Printf("\n") p.buf = obuf - p.index = index + p.index = sindex } // SetDefaults sets unset protocol buffer fields to their default values. @@ -881,3 +888,7 @@ func isProto3Zero(v reflect.Value) bool { } return false } + +// ProtoPackageIsVersion1 is referenced from generated protocol buffer files +// to assert that that code is compatible with this version of the proto package. +const GoGoProtoPackageIsVersion1 = true diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/properties.go b/ingress/vendor/github.com/gogo/protobuf/proto/properties.go index 4711057e2b..5e6a0b3ba7 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/properties.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/properties.go @@ -96,6 +96,9 @@ 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. @@ -147,6 +150,7 @@ type StructProperties struct { oneofMarshaler oneofMarshaler oneofUnmarshaler oneofUnmarshaler + oneofSizer oneofSizer stype reflect.Type // OneofTypes contains information about the oneof fields in this message. @@ -174,6 +178,7 @@ func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order 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 @@ -233,8 +238,9 @@ func (p *Properties) String() string { if p.Packed { s += ",packed" } - if p.OrigName != p.Name { - s += ",name=" + p.OrigName + s += ",name=" + p.OrigName + if p.JSONName != p.OrigName { + s += ",json=" + p.JSONName } if p.proto3 { s += ",proto3" @@ -314,6 +320,8 @@ func (p *Properties) Parse(s string) { 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": @@ -784,11 +792,11 @@ func getPropertiesLocked(t reflect.Type) *StructProperties { sort.Sort(prop) type oneofMessage interface { - XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), []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); isOneofMessage && ok { var oots []interface{} - prop.oneofMarshaler, prop.oneofUnmarshaler, oots = om.XXX_OneofFuncs() + prop.oneofMarshaler, prop.oneofUnmarshaler, prop.oneofSizer, oots = om.XXX_OneofFuncs() prop.stype = t // Interpret oneof metadata. diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/text.go b/ingress/vendor/github.com/gogo/protobuf/proto/text.go index 7c9ae90f95..b60be28ab0 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/text.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/text.go @@ -335,7 +335,8 @@ func writeStruct(w *textWriter, sv reflect.Value) error { } inner := fv.Elem().Elem() // interface -> *T -> T tag := inner.Type().Field(0).Tag.Get("protobuf") - props.Parse(tag) // Overwrite the outer props. + 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) @@ -573,12 +574,12 @@ func writeUnknownStruct(w *textWriter, data []byte) (err error) { return ferr } if wire != WireStartGroup { - if err := w.WriteByte(':'); err != nil { + if err = w.WriteByte(':'); err != nil { return err } } if !w.compact || wire == WireStartGroup { - if err := w.WriteByte(' '); err != nil { + if err = w.WriteByte(' '); err != nil { return err } } @@ -727,7 +728,14 @@ func (w *textWriter) writeIndent() { w.complete = false } -func marshalText(w io.Writer, pb Message, compact bool) error { +// TextMarshaler is a configurable text format marshaler. +type TextMarshaler struct { + Compact bool // use compact text format (one line). +} + +// Marshal writes a given protocol buffer in text format. +// The only errors returned are from w. +func (m *TextMarshaler) Marshal(w io.Writer, pb Message) error { val := reflect.ValueOf(pb) if pb == nil || val.IsNil() { w.Write([]byte("")) @@ -742,7 +750,7 @@ func marshalText(w io.Writer, pb Message, compact bool) error { aw := &textWriter{ w: ww, complete: true, - compact: compact, + compact: m.Compact, } if tm, ok := pb.(encoding.TextMarshaler); ok { @@ -769,25 +777,29 @@ func marshalText(w io.Writer, pb Message, compact bool) error { return nil } +// Text is the same as Marshal, but returns the string directly. +func (m *TextMarshaler) Text(pb Message) string { + var buf bytes.Buffer + m.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 marshalText(w, pb, false) -} +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 { - var buf bytes.Buffer - marshalText(&buf, pb, false) - return buf.String() -} +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 marshalText(w, pb, true) } +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 { - var buf bytes.Buffer - marshalText(&buf, pb, true) - return buf.String() -} +func CompactTextString(pb Message) string { return compactTextMarshaler.Text(pb) } diff --git a/ingress/vendor/github.com/gogo/protobuf/proto/text_parser.go b/ingress/vendor/github.com/gogo/protobuf/proto/text_parser.go index f3909695ed..61b4bc8cc8 100644 --- a/ingress/vendor/github.com/gogo/protobuf/proto/text_parser.go +++ b/ingress/vendor/github.com/gogo/protobuf/proto/text_parser.go @@ -124,6 +124,14 @@ func isWhitespace(c byte) bool { 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] == '#') { @@ -338,13 +346,13 @@ func (p *textParser) next() *token { p.advance() if p.done { p.cur.value = "" - } else if len(p.cur.value) > 0 && p.cur.value[0] == '"' { + } 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 || p.s[0] != '"' { + if p.done || !isQuote(p.s[0]) { break } p.advance() @@ -724,15 +732,15 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { if err != nil { return err } - tok := p.next() - if tok.err != nil { - return tok.err + ntok := p.next() + if ntok.err != nil { + return ntok.err } - if tok.value == "]" { + if ntok.value == "]" { break } - if tok.value != "," { - return p.errorf("Expected ']' or ',' found %q", tok.value) + if ntok.value != "," { + return p.errorf("Expected ']' or ',' found %q", ntok.value) } } return nil diff --git a/ingress/vendor/github.com/gogo/protobuf/sortkeys/sortkeys.go b/ingress/vendor/github.com/gogo/protobuf/sortkeys/sortkeys.go new file mode 100644 index 0000000000..c52878dd59 --- /dev/null +++ b/ingress/vendor/github.com/gogo/protobuf/sortkeys/sortkeys.go @@ -0,0 +1,99 @@ +// Copyright (c) 2013, Vastech SA (PTY) LTD. All rights reserved. +// http://github.com/gogo/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. +// +// 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 sortkeys + +import ( + "sort" +) + +func Strings(l []string) { + sort.Strings(l) +} + +func Float64s(l []float64) { + sort.Float64s(l) +} + +func Float32s(l []float32) { + sort.Sort(Float32Slice(l)) +} + +func Int64s(l []int64) { + sort.Sort(Int64Slice(l)) +} + +func Int32s(l []int32) { + sort.Sort(Int32Slice(l)) +} + +func Uint64s(l []uint64) { + sort.Sort(Uint64Slice(l)) +} + +func Uint32s(l []uint32) { + sort.Sort(Uint32Slice(l)) +} + +func Bools(l []bool) { + sort.Sort(BoolSlice(l)) +} + +type BoolSlice []bool + +func (p BoolSlice) Len() int { return len(p) } +func (p BoolSlice) Less(i, j int) bool { return p[j] } +func (p BoolSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } + +type Int64Slice []int64 + +func (p Int64Slice) Len() int { return len(p) } +func (p Int64Slice) Less(i, j int) bool { return p[i] < p[j] } +func (p Int64Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } + +type Int32Slice []int32 + +func (p Int32Slice) Len() int { return len(p) } +func (p Int32Slice) Less(i, j int) bool { return p[i] < p[j] } +func (p Int32Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } + +type Uint64Slice []uint64 + +func (p Uint64Slice) Len() int { return len(p) } +func (p Uint64Slice) Less(i, j int) bool { return p[i] < p[j] } +func (p Uint64Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } + +type Uint32Slice []uint32 + +func (p Uint32Slice) Len() int { return len(p) } +func (p Uint32Slice) Less(i, j int) bool { return p[i] < p[j] } +func (p Uint32Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } + +type Float32Slice []float32 + +func (p Float32Slice) Len() int { return len(p) } +func (p Float32Slice) Less(i, j int) bool { return p[i] < p[j] } +func (p Float32Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } diff --git a/ingress/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go b/ingress/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go new file mode 100644 index 0000000000..6308548cb9 --- /dev/null +++ b/ingress/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go @@ -0,0 +1,799 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2015 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 jsonpb provides marshaling and unmarshaling between protocol buffers and JSON. +It follows the specification at https://developers.google.com/protocol-buffers/docs/proto3#json. + +This package produces a different output than the standard "encoding/json" package, +which does not operate correctly on protocol buffers. +*/ +package jsonpb + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "reflect" + "sort" + "strconv" + "strings" + "time" + + "github.com/golang/protobuf/proto" +) + +// Marshaler is a configurable object for converting between +// protocol buffer objects and a JSON representation for them. +type Marshaler struct { + // Whether to render enum values as integers, as opposed to string values. + EnumsAsInts bool + + // Whether to render fields with zero values. + EmitDefaults bool + + // A string to indent each level by. The presence of this field will + // also cause a space to appear between the field separator and + // value, and for newlines to be appear between fields and array + // elements. + Indent string + + // Whether to use the original (.proto) name for fields. + OrigName bool +} + +// Marshal marshals a protocol buffer into JSON. +func (m *Marshaler) Marshal(out io.Writer, pb proto.Message) error { + writer := &errWriter{writer: out} + return m.marshalObject(writer, pb, "", "") +} + +// MarshalToString converts a protocol buffer object to JSON string. +func (m *Marshaler) MarshalToString(pb proto.Message) (string, error) { + var buf bytes.Buffer + if err := m.Marshal(&buf, pb); err != nil { + return "", err + } + return buf.String(), nil +} + +type int32Slice []int32 + +// For sorting extensions ids to ensure stable output. +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] } + +type wkt interface { + XXX_WellKnownType() string +} + +// marshalObject writes a struct to the Writer. +func (m *Marshaler) marshalObject(out *errWriter, v proto.Message, indent, typeURL string) error { + s := reflect.ValueOf(v).Elem() + + // Handle well-known types. + if wkt, ok := v.(wkt); ok { + switch wkt.XXX_WellKnownType() { + case "DoubleValue", "FloatValue", "Int64Value", "UInt64Value", + "Int32Value", "UInt32Value", "BoolValue", "StringValue", "BytesValue": + // "Wrappers use the same representation in JSON + // as the wrapped primitive type, ..." + sprop := proto.GetProperties(s.Type()) + return m.marshalValue(out, sprop.Prop[0], s.Field(0), indent) + case "Any": + // Any is a bit more involved. + return m.marshalAny(out, v, indent) + case "Duration": + // "Generated output always contains 3, 6, or 9 fractional digits, + // depending on required precision." + s, ns := s.Field(0).Int(), s.Field(1).Int() + d := time.Duration(s)*time.Second + time.Duration(ns)*time.Nanosecond + x := fmt.Sprintf("%.9f", d.Seconds()) + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + out.write(`"`) + out.write(x) + out.write(`s"`) + return out.err + case "Struct": + // Let marshalValue handle the `fields` map. + // TODO: pass the correct Properties if needed. + return m.marshalValue(out, &proto.Properties{}, s.Field(0), indent) + case "Timestamp": + // "RFC 3339, where generated output will always be Z-normalized + // and uses 3, 6 or 9 fractional digits." + s, ns := s.Field(0).Int(), s.Field(1).Int() + t := time.Unix(s, ns).UTC() + // time.RFC3339Nano isn't exactly right (we need to get 3/6/9 fractional digits). + x := t.Format("2006-01-02T15:04:05.000000000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + out.write(`"`) + out.write(x) + out.write(`Z"`) + return out.err + case "Value": + // Value has a single oneof. + kind := s.Field(0) + if kind.IsNil() { + // "absence of any variant indicates an error" + return errors.New("nil Value") + } + // oneof -> *T -> T -> T.F + x := kind.Elem().Elem().Field(0) + // TODO: pass the correct Properties if needed. + return m.marshalValue(out, &proto.Properties{}, x, indent) + } + } + + out.write("{") + if m.Indent != "" { + out.write("\n") + } + + firstField := true + + if typeURL != "" { + if err := m.marshalTypeURL(out, indent, typeURL); err != nil { + return err + } + firstField = false + } + + for i := 0; i < s.NumField(); i++ { + value := s.Field(i) + valueField := s.Type().Field(i) + if strings.HasPrefix(valueField.Name, "XXX_") { + continue + } + + // IsNil will panic on most value kinds. + switch value.Kind() { + case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: + if value.IsNil() { + continue + } + } + + if !m.EmitDefaults { + switch value.Kind() { + case reflect.Bool: + if !value.Bool() { + continue + } + case reflect.Int32, reflect.Int64: + if value.Int() == 0 { + continue + } + case reflect.Uint32, reflect.Uint64: + if value.Uint() == 0 { + continue + } + case reflect.Float32, reflect.Float64: + if value.Float() == 0 { + continue + } + case reflect.String: + if value.Len() == 0 { + continue + } + } + } + + // Oneof fields need special handling. + if valueField.Tag.Get("protobuf_oneof") != "" { + // value is an interface containing &T{real_value}. + sv := value.Elem().Elem() // interface -> *T -> T + value = sv.Field(0) + valueField = sv.Type().Field(0) + } + prop := jsonProperties(valueField, m.OrigName) + if !firstField { + m.writeSep(out) + } + if err := m.marshalField(out, prop, value, indent); err != nil { + return err + } + firstField = false + } + + // Handle proto2 extensions. + if ep, ok := v.(proto.Message); ok { + extensions := proto.RegisteredExtensions(v) + // Sort extensions for stable output. + ids := make([]int32, 0, len(extensions)) + for id, desc := range extensions { + if !proto.HasExtension(ep, desc) { + continue + } + ids = append(ids, id) + } + sort.Sort(int32Slice(ids)) + for _, id := range ids { + desc := extensions[id] + if desc == nil { + // unknown extension + continue + } + ext, extErr := proto.GetExtension(ep, desc) + if extErr != nil { + return extErr + } + value := reflect.ValueOf(ext) + var prop proto.Properties + prop.Parse(desc.Tag) + prop.JSONName = fmt.Sprintf("[%s]", desc.Name) + if !firstField { + m.writeSep(out) + } + if err := m.marshalField(out, &prop, value, indent); err != nil { + return err + } + firstField = false + } + + } + + if m.Indent != "" { + out.write("\n") + out.write(indent) + } + out.write("}") + return out.err +} + +func (m *Marshaler) writeSep(out *errWriter) { + if m.Indent != "" { + out.write(",\n") + } else { + out.write(",") + } +} + +func (m *Marshaler) marshalAny(out *errWriter, any proto.Message, indent string) error { + // "If the Any contains a value that has a special JSON mapping, + // it will be converted as follows: {"@type": xxx, "value": yyy}. + // Otherwise, the value will be converted into a JSON object, + // and the "@type" field will be inserted to indicate the actual data type." + v := reflect.ValueOf(any).Elem() + turl := v.Field(0).String() + val := v.Field(1).Bytes() + + // Only the part of type_url after the last slash is relevant. + mname := turl + if slash := strings.LastIndex(mname, "/"); slash >= 0 { + mname = mname[slash+1:] + } + mt := proto.MessageType(mname) + if mt == nil { + return fmt.Errorf("unknown message type %q", mname) + } + msg := reflect.New(mt.Elem()).Interface().(proto.Message) + if err := proto.Unmarshal(val, msg); err != nil { + return err + } + + if _, ok := msg.(wkt); ok { + out.write("{") + if m.Indent != "" { + out.write("\n") + } + if err := m.marshalTypeURL(out, indent, turl); err != nil { + return err + } + m.writeSep(out) + if m.Indent != "" { + out.write(indent) + out.write(m.Indent) + out.write(`"value": `) + } else { + out.write(`"value":`) + } + if err := m.marshalObject(out, msg, indent+m.Indent, ""); err != nil { + return err + } + if m.Indent != "" { + out.write("\n") + out.write(indent) + } + out.write("}") + return out.err + } + + return m.marshalObject(out, msg, indent, turl) +} + +func (m *Marshaler) marshalTypeURL(out *errWriter, indent, typeURL string) error { + if m.Indent != "" { + out.write(indent) + out.write(m.Indent) + } + out.write(`"@type":`) + if m.Indent != "" { + out.write(" ") + } + b, err := json.Marshal(typeURL) + if err != nil { + return err + } + out.write(string(b)) + return out.err +} + +// marshalField writes field description and value to the Writer. +func (m *Marshaler) marshalField(out *errWriter, prop *proto.Properties, v reflect.Value, indent string) error { + if m.Indent != "" { + out.write(indent) + out.write(m.Indent) + } + out.write(`"`) + out.write(prop.JSONName) + out.write(`":`) + if m.Indent != "" { + out.write(" ") + } + if err := m.marshalValue(out, prop, v, indent); err != nil { + return err + } + return nil +} + +// marshalValue writes the value to the Writer. +func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v reflect.Value, indent string) error { + + var err error + v = reflect.Indirect(v) + + // Handle repeated elements. + if v.Kind() == reflect.Slice && v.Type().Elem().Kind() != reflect.Uint8 { + out.write("[") + comma := "" + for i := 0; i < v.Len(); i++ { + sliceVal := v.Index(i) + out.write(comma) + if m.Indent != "" { + out.write("\n") + out.write(indent) + out.write(m.Indent) + out.write(m.Indent) + } + if err := m.marshalValue(out, prop, sliceVal, indent+m.Indent); err != nil { + return err + } + comma = "," + } + if m.Indent != "" { + out.write("\n") + out.write(indent) + out.write(m.Indent) + } + out.write("]") + return out.err + } + + // Handle well-known types. + // Most are handled up in marshalObject (because 99% are messages). + type wkt interface { + XXX_WellKnownType() string + } + if wkt, ok := v.Interface().(wkt); ok { + switch wkt.XXX_WellKnownType() { + case "NullValue": + out.write("null") + return out.err + } + } + + // Handle enumerations. + if !m.EnumsAsInts && prop.Enum != "" { + // Unknown enum values will are stringified by the proto library as their + // value. Such values should _not_ be quoted or they will be interpreted + // as an enum string instead of their value. + enumStr := v.Interface().(fmt.Stringer).String() + var valStr string + if v.Kind() == reflect.Ptr { + valStr = strconv.Itoa(int(v.Elem().Int())) + } else { + valStr = strconv.Itoa(int(v.Int())) + } + isKnownEnum := enumStr != valStr + if isKnownEnum { + out.write(`"`) + } + out.write(enumStr) + if isKnownEnum { + out.write(`"`) + } + return out.err + } + + // Handle nested messages. + if v.Kind() == reflect.Struct { + return m.marshalObject(out, v.Addr().Interface().(proto.Message), indent+m.Indent, "") + } + + // Handle maps. + // Since Go randomizes map iteration, we sort keys for stable output. + if v.Kind() == reflect.Map { + out.write(`{`) + keys := v.MapKeys() + sort.Sort(mapKeys(keys)) + for i, k := range keys { + if i > 0 { + out.write(`,`) + } + if m.Indent != "" { + out.write("\n") + out.write(indent) + out.write(m.Indent) + out.write(m.Indent) + } + + b, err := json.Marshal(k.Interface()) + if err != nil { + return err + } + s := string(b) + + // If the JSON is not a string value, encode it again to make it one. + if !strings.HasPrefix(s, `"`) { + b, err := json.Marshal(s) + if err != nil { + return err + } + s = string(b) + } + + out.write(s) + out.write(`:`) + if m.Indent != "" { + out.write(` `) + } + + if err := m.marshalValue(out, prop, v.MapIndex(k), indent+m.Indent); err != nil { + return err + } + } + if m.Indent != "" { + out.write("\n") + out.write(indent) + out.write(m.Indent) + } + out.write(`}`) + return out.err + } + + // Default handling defers to the encoding/json library. + b, err := json.Marshal(v.Interface()) + if err != nil { + return err + } + needToQuote := string(b[0]) != `"` && (v.Kind() == reflect.Int64 || v.Kind() == reflect.Uint64) + if needToQuote { + out.write(`"`) + } + out.write(string(b)) + if needToQuote { + out.write(`"`) + } + return out.err +} + +// UnmarshalNext unmarshals the next protocol buffer from a JSON object stream. +// This function is lenient and will decode any options permutations of the +// related Marshaler. +func UnmarshalNext(dec *json.Decoder, pb proto.Message) error { + inputValue := json.RawMessage{} + if err := dec.Decode(&inputValue); err != nil { + return err + } + return unmarshalValue(reflect.ValueOf(pb).Elem(), inputValue, nil) +} + +// Unmarshal unmarshals a JSON object stream into a protocol +// buffer. This function is lenient and will decode any options +// permutations of the related Marshaler. +func Unmarshal(r io.Reader, pb proto.Message) error { + dec := json.NewDecoder(r) + return UnmarshalNext(dec, pb) +} + +// UnmarshalString will populate the fields of a protocol buffer based +// on a JSON string. This function is lenient and will decode any options +// permutations of the related Marshaler. +func UnmarshalString(str string, pb proto.Message) error { + return Unmarshal(strings.NewReader(str), pb) +} + +// unmarshalValue converts/copies a value into the target. +// prop may be nil. +func unmarshalValue(target reflect.Value, inputValue json.RawMessage, prop *proto.Properties) error { + targetType := target.Type() + + // Allocate memory for pointer fields. + if targetType.Kind() == reflect.Ptr { + target.Set(reflect.New(targetType.Elem())) + return unmarshalValue(target.Elem(), inputValue, prop) + } + + // Handle well-known types. + type wkt interface { + XXX_WellKnownType() string + } + if wkt, ok := target.Addr().Interface().(wkt); ok { + switch wkt.XXX_WellKnownType() { + case "DoubleValue", "FloatValue", "Int64Value", "UInt64Value", + "Int32Value", "UInt32Value", "BoolValue", "StringValue", "BytesValue": + // "Wrappers use the same representation in JSON + // as the wrapped primitive type, except that null is allowed." + // encoding/json will turn JSON `null` into Go `nil`, + // so we don't have to do any extra work. + return unmarshalValue(target.Field(0), inputValue, prop) + case "Any": + return fmt.Errorf("unmarshaling Any not supported yet") + case "Duration": + unq, err := strconv.Unquote(string(inputValue)) + if err != nil { + return err + } + d, err := time.ParseDuration(unq) + if err != nil { + return fmt.Errorf("bad Duration: %v", err) + } + ns := d.Nanoseconds() + s := ns / 1e9 + ns %= 1e9 + target.Field(0).SetInt(s) + target.Field(1).SetInt(ns) + return nil + case "Timestamp": + unq, err := strconv.Unquote(string(inputValue)) + if err != nil { + return err + } + t, err := time.Parse(time.RFC3339Nano, unq) + if err != nil { + return fmt.Errorf("bad Timestamp: %v", err) + } + ns := t.UnixNano() + s := ns / 1e9 + ns %= 1e9 + target.Field(0).SetInt(s) + target.Field(1).SetInt(ns) + return nil + } + } + + // Handle enums, which have an underlying type of int32, + // and may appear as strings. + // The case of an enum appearing as a number is handled + // at the bottom of this function. + if inputValue[0] == '"' && prop != nil && prop.Enum != "" { + vmap := proto.EnumValueMap(prop.Enum) + // Don't need to do unquoting; valid enum names + // are from a limited character set. + s := inputValue[1 : len(inputValue)-1] + n, ok := vmap[string(s)] + if !ok { + return fmt.Errorf("unknown value %q for enum %s", s, prop.Enum) + } + if target.Kind() == reflect.Ptr { // proto2 + target.Set(reflect.New(targetType.Elem())) + target = target.Elem() + } + target.SetInt(int64(n)) + return nil + } + + // Handle nested messages. + if targetType.Kind() == reflect.Struct { + var jsonFields map[string]json.RawMessage + if err := json.Unmarshal(inputValue, &jsonFields); err != nil { + return err + } + + consumeField := func(prop *proto.Properties) (json.RawMessage, bool) { + // Be liberal in what names we accept; both orig_name and camelName are okay. + fieldNames := acceptedJSONFieldNames(prop) + + vOrig, okOrig := jsonFields[fieldNames.orig] + vCamel, okCamel := jsonFields[fieldNames.camel] + if !okOrig && !okCamel { + return nil, false + } + // If, for some reason, both are present in the data, favour the camelName. + var raw json.RawMessage + if okOrig { + raw = vOrig + delete(jsonFields, fieldNames.orig) + } + if okCamel { + raw = vCamel + delete(jsonFields, fieldNames.camel) + } + return raw, true + } + + sprops := proto.GetProperties(targetType) + for i := 0; i < target.NumField(); i++ { + ft := target.Type().Field(i) + if strings.HasPrefix(ft.Name, "XXX_") { + continue + } + + valueForField, ok := consumeField(sprops.Prop[i]) + if !ok { + continue + } + + if err := unmarshalValue(target.Field(i), valueForField, sprops.Prop[i]); err != nil { + return err + } + } + // Check for any oneof fields. + if len(jsonFields) > 0 { + for _, oop := range sprops.OneofTypes { + raw, ok := consumeField(oop.Prop) + if !ok { + continue + } + nv := reflect.New(oop.Type.Elem()) + target.Field(oop.Field).Set(nv) + if err := unmarshalValue(nv.Elem().Field(0), raw, oop.Prop); err != nil { + return err + } + } + } + if len(jsonFields) > 0 { + // Pick any field to be the scapegoat. + var f string + for fname := range jsonFields { + f = fname + break + } + return fmt.Errorf("unknown field %q in %v", f, targetType) + } + return nil + } + + // Handle arrays (which aren't encoded bytes) + if targetType.Kind() == reflect.Slice && targetType.Elem().Kind() != reflect.Uint8 { + var slc []json.RawMessage + if err := json.Unmarshal(inputValue, &slc); err != nil { + return err + } + len := len(slc) + target.Set(reflect.MakeSlice(targetType, len, len)) + for i := 0; i < len; i++ { + if err := unmarshalValue(target.Index(i), slc[i], prop); err != nil { + return err + } + } + return nil + } + + // Handle maps (whose keys are always strings) + if targetType.Kind() == reflect.Map { + var mp map[string]json.RawMessage + if err := json.Unmarshal(inputValue, &mp); err != nil { + return err + } + target.Set(reflect.MakeMap(targetType)) + var keyprop, valprop *proto.Properties + if prop != nil { + // These could still be nil if the protobuf metadata is broken somehow. + // TODO: This won't work because the fields are unexported. + // We should probably just reparse them. + //keyprop, valprop = prop.mkeyprop, prop.mvalprop + } + for ks, raw := range mp { + // Unmarshal map key. The core json library already decoded the key into a + // string, so we handle that specially. Other types were quoted post-serialization. + var k reflect.Value + if targetType.Key().Kind() == reflect.String { + k = reflect.ValueOf(ks) + } else { + k = reflect.New(targetType.Key()).Elem() + if err := unmarshalValue(k, json.RawMessage(ks), keyprop); err != nil { + return err + } + } + + // Unmarshal map value. + v := reflect.New(targetType.Elem()).Elem() + if err := unmarshalValue(v, raw, valprop); err != nil { + return err + } + target.SetMapIndex(k, v) + } + return nil + } + + // 64-bit integers can be encoded as strings. In this case we drop + // the quotes and proceed as normal. + isNum := targetType.Kind() == reflect.Int64 || targetType.Kind() == reflect.Uint64 + if isNum && strings.HasPrefix(string(inputValue), `"`) { + inputValue = inputValue[1 : len(inputValue)-1] + } + + // Use the encoding/json for parsing other value types. + return json.Unmarshal(inputValue, target.Addr().Interface()) +} + +// jsonProperties returns parsed proto.Properties for the field and corrects JSONName attribute. +func jsonProperties(f reflect.StructField, origName bool) *proto.Properties { + var prop proto.Properties + prop.Init(f.Type, f.Name, f.Tag.Get("protobuf"), &f) + if origName || prop.JSONName == "" { + prop.JSONName = prop.OrigName + } + return &prop +} + +type fieldNames struct { + orig, camel string +} + +func acceptedJSONFieldNames(prop *proto.Properties) fieldNames { + opts := fieldNames{orig: prop.OrigName, camel: prop.OrigName} + if prop.JSONName != "" { + opts.camel = prop.JSONName + } + return opts +} + +// Writer wrapper inspired by https://blog.golang.org/errors-are-values +type errWriter struct { + writer io.Writer + err error +} + +func (w *errWriter) write(str string) { + if w.err != nil { + return + } + _, w.err = w.writer.Write([]byte(str)) +} + +// 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. +type mapKeys []reflect.Value + +func (s mapKeys) Len() int { return len(s) } +func (s mapKeys) Swap(i, j int) { s[i], s[j] = s[j], s[i] } +func (s mapKeys) Less(i, j int) bool { + return fmt.Sprint(s[i].Interface()) < fmt.Sprint(s[j].Interface()) +} diff --git a/ingress/vendor/github.com/golang/protobuf/proto/Makefile b/ingress/vendor/github.com/golang/protobuf/proto/Makefile index f1f06564a1..e2e0651a93 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/Makefile +++ b/ingress/vendor/github.com/golang/protobuf/proto/Makefile @@ -39,5 +39,5 @@ test: install generate-test-pbs generate-test-pbs: make install make -C testdata - protoc --go_out=Mtestdata/test.proto=github.com/golang/protobuf/proto/testdata:. proto3_proto/proto3.proto + 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/ingress/vendor/github.com/golang/protobuf/proto/clone.go b/ingress/vendor/github.com/golang/protobuf/proto/clone.go index e98ddec981..e392575b35 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/clone.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/clone.go @@ -84,9 +84,15 @@ func mergeStruct(out, in reflect.Value) { mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) } - if emIn, ok := in.Addr().Interface().(extendableProto); ok { - emOut := out.Addr().Interface().(extendableProto) - mergeExtension(emOut.ExtensionMap(), emIn.ExtensionMap()) + 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") diff --git a/ingress/vendor/github.com/golang/protobuf/proto/decode.go b/ingress/vendor/github.com/golang/protobuf/proto/decode.go index 5810782fd8..07288a250b 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/decode.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/decode.go @@ -390,11 +390,12 @@ func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_group if !ok { // Maybe it's an extension? if prop.extendable { - if e := structPointer_Interface(base, st).(extendableProto); isExtensionField(e, int32(tag)) { + if e, _ := extendable(structPointer_Interface(base, st)); isExtensionField(e, int32(tag)) { if err = o.skip(st, tag, wire); err == nil { - ext := e.ExtensionMap()[int32(tag)] // may be missing + extmap := e.extensionsWrite() + ext := extmap[int32(tag)] // may be missing ext.enc = append(ext.enc, o.buf[oi:o.index]...) - e.ExtensionMap()[int32(tag)] = ext + extmap[int32(tag)] = ext } continue } @@ -768,10 +769,11 @@ func (o *Buffer) dec_new_map(p *Properties, base structPointer) error { } } keyelem, valelem := keyptr.Elem(), valptr.Elem() - if !keyelem.IsValid() || !valelem.IsValid() { - // We did not decode the key or the value in the map entry. - // Either way, it's an invalid map entry. - return fmt.Errorf("proto: bad map data: missing key/val") + if !keyelem.IsValid() { + keyelem = reflect.Zero(p.mtype.Key()) + } + if !valelem.IsValid() { + valelem = reflect.Zero(p.mtype.Elem()) } v.SetMapIndex(keyelem, valelem) diff --git a/ingress/vendor/github.com/golang/protobuf/proto/encode.go b/ingress/vendor/github.com/golang/protobuf/proto/encode.go index 231b07401a..8c1b8fd1f6 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/encode.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/encode.go @@ -64,8 +64,16 @@ var ( // 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. @@ -74,6 +82,10 @@ var ( 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 @@ -273,6 +285,9 @@ func (p *Buffer) Marshal(pb Message) error { stats.Encode++ } + if len(p.buf) > maxMarshalSize { + return ErrTooLarge + } return err } @@ -1058,10 +1073,25 @@ func size_slice_struct_group(p *Properties, base structPointer) (n int) { // Encode an extension map. func (o *Buffer) enc_map(p *Properties, base structPointer) error { - v := *structPointer_ExtMap(base, p.field) - if err := encodeExtensionMap(v); err != nil { + 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 { @@ -1084,8 +1114,13 @@ func (o *Buffer) enc_map(p *Properties, base structPointer) error { } func size_map(p *Properties, base structPointer) int { - v := *structPointer_ExtMap(base, p.field) - return sizeExtensionMap(v) + 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. @@ -1114,7 +1149,7 @@ func (o *Buffer) enc_new_map(p *Properties, base structPointer) 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 { + if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil && err != ErrNil { return err } return nil @@ -1124,11 +1159,6 @@ func (o *Buffer) enc_new_map(p *Properties, base structPointer) error { for _, key := range v.MapKeys() { val := v.MapIndex(key) - // The only illegal map entry values are nil message pointers. - if val.Kind() == reflect.Ptr && val.IsNil() { - return errors.New("proto: map has nil element") - } - keycopy.Set(key) valcopy.Set(val) @@ -1216,13 +1246,18 @@ func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error { 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 != nil { + if err := prop.oneofMarshaler(m, o); err == ErrNil { + return errOneofHasNil + } else if err != nil { return err } } @@ -1230,6 +1265,9 @@ func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error { // 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...) } diff --git a/ingress/vendor/github.com/golang/protobuf/proto/equal.go b/ingress/vendor/github.com/golang/protobuf/proto/equal.go index f5db1def3c..8b16f951c7 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/equal.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/equal.go @@ -121,9 +121,16 @@ func equalStruct(v1, v2 reflect.Value) bool { } } + 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 !equalExtensions(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) { + if !equalExtMap(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) { return false } } @@ -184,6 +191,13 @@ func equalAny(v1, v2 reflect.Value, prop *Properties) bool { } 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 { @@ -223,8 +237,14 @@ func equalAny(v1, v2 reflect.Value, prop *Properties) bool { } // base is the struct type that the extensions are based on. -// em1 and em2 are extension maps. -func equalExtensions(base reflect.Type, em1, em2 map[int32]Extension) bool { +// 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 } diff --git a/ingress/vendor/github.com/golang/protobuf/proto/extensions.go b/ingress/vendor/github.com/golang/protobuf/proto/extensions.go index 054f4f1df7..9f484f53a3 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/extensions.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/extensions.go @@ -52,14 +52,99 @@ type ExtensionRange struct { Start, End int32 // both inclusive } -// extendableProto is an interface implemented by any protocol buffer that may be extended. +// 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. @@ -92,8 +177,13 @@ type Extension struct { } // SetRawExtension is for testing only. -func SetRawExtension(base extendableProto, id int32, b []byte) { - base.ExtensionMap()[id] = Extension{enc: b} +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. @@ -108,8 +198,12 @@ func isExtensionField(pb extendableProto, field int32) bool { // 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 a, b := reflect.TypeOf(pb), reflect.TypeOf(extension.ExtendedType); a != b { + 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. @@ -155,8 +249,19 @@ func extensionProperties(ed *ExtensionDesc) *Properties { return prop } -// encodeExtensionMap encodes any unmarshaled (unencoded) extensions in m. -func encodeExtensionMap(m map[int32]Extension) error { +// 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. @@ -184,7 +289,17 @@ func encodeExtensionMap(m map[int32]Extension) error { return nil } -func sizeExtensionMap(m map[int32]Extension) (n int) { +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. @@ -209,26 +324,51 @@ func sizeExtensionMap(m map[int32]Extension) (n int) { } // HasExtension returns whether the given extension is present in pb. -func HasExtension(pb extendableProto, extension *ExtensionDesc) bool { +func HasExtension(pb Message, extension *ExtensionDesc) bool { // TODO: Check types, field numbers, etc.? - _, ok := pb.ExtensionMap()[extension.Field] + 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 extendableProto, extension *ExtensionDesc) { +func ClearExtension(pb Message, extension *ExtensionDesc) { + epb, ok := extendable(pb) + if !ok { + return + } // TODO: Check types, field numbers, etc.? - delete(pb.ExtensionMap(), extension.Field) + 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 extendableProto, extension *ExtensionDesc) (interface{}, error) { - if err := checkExtensionTypes(pb, extension); err != nil { +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 := pb.ExtensionMap() + 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 @@ -332,10 +472,9 @@ func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { // 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 := pb.(extendableProto) + epb, ok := extendable(pb) if !ok { - err = errors.New("proto: not an extendable proto") - return + return nil, errors.New("proto: not an extendable proto") } extensions = make([]interface{}, len(es)) for i, e := range es { @@ -351,8 +490,12 @@ func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, e } // SetExtension sets the specified extension of pb to the specified value. -func SetExtension(pb extendableProto, extension *ExtensionDesc, value interface{}) error { - if err := checkExtensionTypes(pb, extension); err != nil { +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) @@ -368,10 +511,23 @@ func SetExtension(pb extendableProto, extension *ExtensionDesc, value interface{ return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) } - pb.ExtensionMap()[extension.Field] = Extension{desc: extension, value: 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. diff --git a/ingress/vendor/github.com/golang/protobuf/proto/lib.go b/ingress/vendor/github.com/golang/protobuf/proto/lib.go index 0de8f8dffd..170b8e87d2 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/lib.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/lib.go @@ -889,6 +889,10 @@ func isProto3Zero(v reflect.Value) bool { 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/ingress/vendor/github.com/golang/protobuf/proto/message_set.go b/ingress/vendor/github.com/golang/protobuf/proto/message_set.go index e25e01e637..fd982decd6 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/message_set.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/message_set.go @@ -149,9 +149,21 @@ func skipVarint(buf []byte) []byte { // 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(m map[int32]Extension) ([]byte, error) { - if err := encodeExtensionMap(m); err != nil { - return nil, err +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. @@ -178,7 +190,17 @@ func MarshalMessageSet(m map[int32]Extension) ([]byte, error) { // 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, m map[int32]Extension) error { +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 @@ -209,7 +231,16 @@ func UnmarshalMessageSet(buf []byte, m map[int32]Extension) error { // 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(m map[int32]Extension) ([]byte, error) { +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('{') @@ -252,7 +283,7 @@ func MarshalMessageSetJSON(m map[int32]Extension) ([]byte, error) { // 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, m map[int32]Extension) error { +func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error { // Common-case fast path. if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) { return nil diff --git a/ingress/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/ingress/vendor/github.com/golang/protobuf/proto/pointer_reflect.go index 749919d250..fb512e2e16 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/pointer_reflect.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/pointer_reflect.go @@ -29,7 +29,7 @@ // (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 +// +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 @@ -139,6 +139,11 @@ 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) diff --git a/ingress/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/ingress/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go index e9be0fe92e..6b5567d47c 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go @@ -29,7 +29,7 @@ // (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 +// +build !appengine,!js // This file contains the implementation of the proto field accesses using package unsafe. @@ -126,6 +126,10 @@ func structPointer_StringSlice(p structPointer, f field) *[]string { } // 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))) } diff --git a/ingress/vendor/github.com/golang/protobuf/proto/properties.go b/ingress/vendor/github.com/golang/protobuf/proto/properties.go index d4531c0563..69ddda8d4b 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/properties.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/properties.go @@ -173,6 +173,7 @@ func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order 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 @@ -229,8 +230,9 @@ func (p *Properties) String() string { if p.Packed { s += ",packed" } - if p.OrigName != p.Name { - s += ",name=" + p.OrigName + s += ",name=" + p.OrigName + if p.JSONName != p.OrigName { + s += ",json=" + p.JSONName } if p.proto3 { s += ",proto3" @@ -310,6 +312,8 @@ func (p *Properties) Parse(s string) { 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": @@ -469,17 +473,13 @@ func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lock p.dec = (*Buffer).dec_slice_int64 p.packedDec = (*Buffer).dec_slice_packed_int64 case reflect.Uint8: - p.enc = (*Buffer).enc_slice_byte p.dec = (*Buffer).dec_slice_byte - p.size = size_slice_byte - // This is a []byte, which is either a bytes field, - // or the value of a map field. In the latter case, - // we always encode an empty []byte, so we should not - // use the proto3 enc/size funcs. - // f == nil iff this is the key/value of a map field. - if p.proto3 && f != nil { + 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() { @@ -678,7 +678,8 @@ func getPropertiesLocked(t reflect.Type) *StructProperties { propertiesMap[t] = prop // build properties - prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType) + 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()) @@ -689,15 +690,22 @@ func getPropertiesLocked(t reflect.Type) *StructProperties { name := f.Name p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) - if f.Name == "XXX_extensions" { // special case + 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 - } - if f.Name == "XXX_unrecognized" { // special case + } else if f.Name == "XXX_unrecognized" { // special case prop.unrecField = toField(&f) } - oneof := f.Tag.Get("protobuf_oneof") != "" // special case + 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 { @@ -707,7 +715,7 @@ func getPropertiesLocked(t reflect.Type) *StructProperties { } print("\n") } - if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && !oneof { + if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" { fmt.Fprintln(os.Stderr, "proto: no encoder for", f.Name, f.Type.String(), "[GetProperties]") } } @@ -840,3 +848,17 @@ 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/ingress/vendor/github.com/golang/protobuf/proto/text.go b/ingress/vendor/github.com/golang/protobuf/proto/text.go index 2336b144c1..8214ce326b 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/text.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/text.go @@ -175,7 +175,93 @@ type raw interface { Bytes() []byte } -func writeStruct(w *textWriter, sv reflect.Value) error { +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++ { @@ -227,7 +313,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error { } continue } - if err := writeAny(w, v, props); err != nil { + if err := tm.writeAny(w, v, props); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -269,7 +355,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error { return err } } - if err := writeAny(w, key, props.mkeyprop); err != nil { + if err := tm.writeAny(w, key, props.mkeyprop); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -286,7 +372,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error { return err } } - if err := writeAny(w, val, props.mvalprop); err != nil { + if err := tm.writeAny(w, val, props.mvalprop); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -358,7 +444,7 @@ func writeStruct(w *textWriter, sv reflect.Value) error { } // Enums have a String method, so writeAny will work fine. - if err := writeAny(w, fv, props); err != nil { + if err := tm.writeAny(w, fv, props); err != nil { return err } @@ -369,8 +455,8 @@ func writeStruct(w *textWriter, sv reflect.Value) error { // Extensions (the XXX_extensions field). pv := sv.Addr() - if pv.Type().Implements(extendableProtoType) { - if err := writeExtensions(w, pv); err != nil { + if _, ok := extendable(pv.Interface()); ok { + if err := tm.writeExtensions(w, pv); err != nil { return err } } @@ -400,7 +486,7 @@ func writeRaw(w *textWriter, b []byte) error { } // writeAny writes an arbitrary field. -func writeAny(w *textWriter, v reflect.Value, props *Properties) error { +func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { v = reflect.Indirect(v) // Floats have special cases. @@ -427,7 +513,7 @@ func writeAny(w *textWriter, v reflect.Value, props *Properties) error { switch v.Kind() { case reflect.Slice: // Should only be a []byte; repeated fields are handled in writeStruct. - if err := writeString(w, string(v.Interface().([]byte))); err != nil { + if err := writeString(w, string(v.Bytes())); err != nil { return err } case reflect.String: @@ -449,15 +535,15 @@ func writeAny(w *textWriter, v reflect.Value, props *Properties) error { } } w.indent() - if tm, ok := v.Interface().(encoding.TextMarshaler); ok { - text, err := tm.MarshalText() + 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 := writeStruct(w, v); err != nil { + } else if err := tm.writeStruct(w, v); err != nil { return err } w.unindent() @@ -601,19 +687,24 @@ 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 writeExtensions(w *textWriter, pv reflect.Value) error { +func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error { emap := extensionMaps[pv.Type().Elem()] - ep := pv.Interface().(extendableProto) + 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 := ep.ExtensionMap() + 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] @@ -636,13 +727,13 @@ func writeExtensions(w *textWriter, pv reflect.Value) error { // Repeated extensions will appear as a slice. if !desc.repeated() { - if err := writeExtension(w, desc.Name, pb); err != nil { + 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 := writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil { + if err := tm.writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil { return err } } @@ -651,7 +742,7 @@ func writeExtensions(w *textWriter, pv reflect.Value) error { return nil } -func writeExtension(w *textWriter, name string, pb interface{}) error { +func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error { if _, err := fmt.Fprintf(w, "[%s]:", name); err != nil { return err } @@ -660,7 +751,7 @@ func writeExtension(w *textWriter, name string, pb interface{}) error { return err } } - if err := writeAny(w, reflect.ValueOf(pb), nil); err != nil { + if err := tm.writeAny(w, reflect.ValueOf(pb), nil); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -685,7 +776,15 @@ func (w *textWriter) writeIndent() { w.complete = false } -func marshalText(w io.Writer, pb Message, compact bool) error { +// 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("")) @@ -700,11 +799,11 @@ func marshalText(w io.Writer, pb Message, compact bool) error { aw := &textWriter{ w: ww, complete: true, - compact: compact, + compact: tm.Compact, } - if tm, ok := pb.(encoding.TextMarshaler); ok { - text, err := tm.MarshalText() + if etm, ok := pb.(encoding.TextMarshaler); ok { + text, err := etm.MarshalText() if err != nil { return err } @@ -718,7 +817,7 @@ func marshalText(w io.Writer, pb Message, compact bool) error { } // Dereference the received pointer so we don't have outer < and >. v := reflect.Indirect(val) - if err := writeStruct(aw, v); err != nil { + if err := tm.writeStruct(aw, v); err != nil { return err } if bw != nil { @@ -727,25 +826,29 @@ func marshalText(w io.Writer, pb Message, compact bool) error { 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 marshalText(w, pb, false) -} +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 { - var buf bytes.Buffer - marshalText(&buf, pb, false) - return buf.String() -} +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 marshalText(w, pb, true) } +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 { - var buf bytes.Buffer - marshalText(&buf, pb, true) - return buf.String() -} +func CompactTextString(pb Message) string { return compactTextMarshaler.Text(pb) } diff --git a/ingress/vendor/github.com/golang/protobuf/proto/text_parser.go b/ingress/vendor/github.com/golang/protobuf/proto/text_parser.go index 451323262c..0b8c59f746 100644 --- a/ingress/vendor/github.com/golang/protobuf/proto/text_parser.go +++ b/ingress/vendor/github.com/golang/protobuf/proto/text_parser.go @@ -163,7 +163,7 @@ func (p *textParser) advance() { p.cur.offset, p.cur.line = p.offset, p.line p.cur.unquoted = "" switch p.s[0] { - case '<', '>', '{', '}', ':', '[', ']', ';', ',': + case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': // Single symbol p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] case '"', '\'': @@ -451,7 +451,10 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) 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]". + // "[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 { @@ -461,33 +464,66 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { break } if tok.value == "[" { - // Looks like an extension. + // Looks like an extension or an Any. // // TODO: Check whether we need to handle // namespace rooted names (e.g. ".something.Foo"). - tok = p.next() - if tok.err != nil { - return tok.err + 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 == tok.value { + if d.Name == extName { desc = d break } } if desc == nil { - return p.errorf("unrecognized extension %q", tok.value) - } - // Check the extension terminator. - tok = p.next() - if tok.err != nil { - return tok.err - } - if tok.value != "]" { - return p.errorf("unrecognized extension terminator %q", tok.value) + return p.errorf("unrecognized extension %q", extName) } props := &Properties{} @@ -514,7 +550,7 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { } reqFieldErr = err } - ep := sv.Addr().Interface().(extendableProto) + ep := sv.Addr().Interface().(Message) if !rep { SetExtension(ep, desc, ext.Interface()) } else { @@ -566,8 +602,9 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { // The map entry should be this sequence of tokens: // < key : KEY value : VALUE > - // Technically the "key" and "value" could come in any order, - // but in practice they won't. + // 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 @@ -579,32 +616,39 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { default: return p.errorf("expected '{' or '<', found %q", tok.value) } - if err := p.consumeToken("key"); err != nil { - return err - } - 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 - } - if err := p.consumeToken("value"); err != nil { - return err - } - 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 - } - if err := p.consumeToken(terminator); err != nil { - return err + 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) @@ -627,7 +671,8 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { return err } reqFieldErr = err - } else if props.Required { + } + if props.Required { reqCount-- } @@ -643,6 +688,35 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { 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 { diff --git a/ingress/vendor/github.com/google/cadvisor/info/v1/container.go b/ingress/vendor/github.com/google/cadvisor/info/v1/container.go index 6e7e658975..21c85bd2a9 100644 --- a/ingress/vendor/github.com/google/cadvisor/info/v1/container.go +++ b/ingress/vendor/github.com/google/cadvisor/info/v1/container.go @@ -266,7 +266,7 @@ type LoadStats struct { // CPU usage time statistics. type CpuUsage struct { // Total CPU usage. - // Units: nanoseconds + // Unit: nanoseconds. Total uint64 `json:"total"` // Per CPU/core usage of the container. @@ -274,17 +274,31 @@ type CpuUsage struct { PerCpu []uint64 `json:"per_cpu_usage,omitempty"` // Time spent in user space. - // Unit: nanoseconds + // Unit: nanoseconds. User uint64 `json:"user"` // Time spent in kernel space. - // Unit: nanoseconds + // Unit: nanoseconds. System uint64 `json:"system"` } +// Cpu Completely Fair Scheduler statistics. +type CpuCFS struct { + // Total number of elapsed enforcement intervals. + Periods uint64 `json:"periods"` + + // Total number of times tasks in the cgroup have been throttled. + ThrottledPeriods uint64 `json:"throttled_periods"` + + // Total time duration for which tasks in the cgroup have been throttled. + // Unit: nanoseconds. + ThrottledTime uint64 `json:"throttled_time"` +} + // All CPU usage metrics are cumulative from the creation of the container type CpuStats struct { Usage CpuUsage `json:"usage"` + CFS CpuCFS `json:"cfs"` // Smoothed average of number of runnable threads x 1000. // We multiply by thousand to avoid using floats, but preserving precision. // Load is smoothed over the last 10 seconds. Instantaneous value can be read @@ -324,6 +338,10 @@ type MemoryStats struct { // Units: Bytes. RSS uint64 `json:"rss"` + // The amount of swap currently used by the processes in this cgroup + // Units: Bytes. + Swap uint64 `json:"swap"` + // The amount of working set memory, this includes recently accessed memory, // dirty memory, and kernel memory. Working set is <= "usage". // Units: Bytes. @@ -415,6 +433,12 @@ type FsStats struct { // Number of bytes available for non-root user. Available uint64 `json:"available"` + // HasInodes when true, indicates that Inodes info will be available. + HasInodes bool `json:"has_inodes"` + + // Number of Inodes + Inodes uint64 `json:"inodes"` + // Number of available Inodes InodesFree uint64 `json:"inodes_free"` diff --git a/ingress/vendor/github.com/google/cadvisor/info/v1/machine.go b/ingress/vendor/github.com/google/cadvisor/info/v1/machine.go index 74a5df49c3..933b6f3020 100644 --- a/ingress/vendor/github.com/google/cadvisor/info/v1/machine.go +++ b/ingress/vendor/github.com/google/cadvisor/info/v1/machine.go @@ -26,6 +26,9 @@ type FsInfo struct { // Total number of inodes available on the filesystem. Inodes uint64 `json:"inodes"` + + // HasInodes when true, indicates that Inodes info will be available. + HasInodes bool `json:"has_inodes"` } type Node struct { diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt new file mode 100644 index 0000000000..364516251b --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt @@ -0,0 +1,27 @@ +Copyright (c) 2015, Gengo, Inc. +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 Gengo, 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/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go new file mode 100644 index 0000000000..ad42535662 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go @@ -0,0 +1,139 @@ +package runtime + +import ( + "fmt" + "net" + "net/http" + "strconv" + "strings" + "time" + + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" +) + +const metadataHeaderPrefix = "Grpc-Metadata-" +const metadataTrailerPrefix = "Grpc-Trailer-" +const metadataGrpcTimeout = "Grpc-Timeout" + +const xForwardedFor = "X-Forwarded-For" +const xForwardedHost = "X-Forwarded-Host" + +var ( + // DefaultContextTimeout is used for gRPC call context.WithTimeout whenever a Grpc-Timeout inbound + // header isn't present. If the value is 0 the sent `context` will not have a timeout. + DefaultContextTimeout = 0 * time.Second +) + +/* +AnnotateContext adds context information such as metadata from the request. + +At a minimum, the RemoteAddr is included in the fashion of "X-Forwarded-For", +except that the forwarded destination is not another HTTP service but rather +a gRPC service. +*/ +func AnnotateContext(ctx context.Context, req *http.Request) (context.Context, error) { + var pairs []string + timeout := DefaultContextTimeout + if tm := req.Header.Get(metadataGrpcTimeout); tm != "" { + var err error + timeout, err = timeoutDecode(tm) + if err != nil { + return nil, grpc.Errorf(codes.InvalidArgument, "invalid grpc-timeout: %s", tm) + } + } + + for key, vals := range req.Header { + for _, val := range vals { + if key == "Authorization" { + pairs = append(pairs, "authorization", val) + continue + } + if strings.HasPrefix(key, metadataHeaderPrefix) { + pairs = append(pairs, key[len(metadataHeaderPrefix):], val) + } + } + } + if host := req.Header.Get(xForwardedHost); host != "" { + pairs = append(pairs, strings.ToLower(xForwardedHost), host) + } else if req.Host != "" { + pairs = append(pairs, strings.ToLower(xForwardedHost), req.Host) + } + + if addr := req.RemoteAddr; addr != "" { + if remoteIP, _, err := net.SplitHostPort(addr); err == nil { + if fwd := req.Header.Get(xForwardedFor); fwd == "" { + pairs = append(pairs, strings.ToLower(xForwardedFor), remoteIP) + } else { + pairs = append(pairs, strings.ToLower(xForwardedFor), fmt.Sprintf("%s, %s", fwd, remoteIP)) + } + } else { + grpclog.Printf("invalid remote addr: %s", addr) + } + } + + if timeout != 0 { + ctx, _ = context.WithTimeout(ctx, timeout) + } + if len(pairs) == 0 { + return ctx, nil + } + return metadata.NewContext(ctx, metadata.Pairs(pairs...)), nil +} + +// ServerMetadata consists of metadata sent from gRPC server. +type ServerMetadata struct { + HeaderMD metadata.MD + TrailerMD metadata.MD +} + +type serverMetadataKey struct{} + +// NewServerMetadataContext creates a new context with ServerMetadata +func NewServerMetadataContext(ctx context.Context, md ServerMetadata) context.Context { + return context.WithValue(ctx, serverMetadataKey{}, md) +} + +// ServerMetadataFromContext returns the ServerMetadata in ctx +func ServerMetadataFromContext(ctx context.Context) (md ServerMetadata, ok bool) { + md, ok = ctx.Value(serverMetadataKey{}).(ServerMetadata) + return +} + +func timeoutDecode(s string) (time.Duration, error) { + size := len(s) + if size < 2 { + return 0, fmt.Errorf("timeout string is too short: %q", s) + } + d, ok := timeoutUnitToDuration(s[size-1]) + if !ok { + return 0, fmt.Errorf("timeout unit is not recognized: %q", s) + } + t, err := strconv.ParseInt(s[:size-1], 10, 64) + if err != nil { + return 0, err + } + return d * time.Duration(t), nil +} + +func timeoutUnitToDuration(u uint8) (d time.Duration, ok bool) { + switch u { + case 'H': + return time.Hour, true + case 'M': + return time.Minute, true + case 'S': + return time.Second, true + case 'm': + return time.Millisecond, true + case 'u': + return time.Microsecond, true + case 'n': + return time.Nanosecond, true + default: + } + return +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go new file mode 100644 index 0000000000..1af5cc4ebd --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go @@ -0,0 +1,58 @@ +package runtime + +import ( + "strconv" +) + +// String just returns the given string. +// It is just for compatibility to other types. +func String(val string) (string, error) { + return val, nil +} + +// Bool converts the given string representation of a boolean value into bool. +func Bool(val string) (bool, error) { + return strconv.ParseBool(val) +} + +// Float64 converts the given string representation into representation of a floating point number into float64. +func Float64(val string) (float64, error) { + return strconv.ParseFloat(val, 64) +} + +// Float32 converts the given string representation of a floating point number into float32. +func Float32(val string) (float32, error) { + f, err := strconv.ParseFloat(val, 32) + if err != nil { + return 0, err + } + return float32(f), nil +} + +// Int64 converts the given string representation of an integer into int64. +func Int64(val string) (int64, error) { + return strconv.ParseInt(val, 0, 64) +} + +// Int32 converts the given string representation of an integer into int32. +func Int32(val string) (int32, error) { + i, err := strconv.ParseInt(val, 0, 32) + if err != nil { + return 0, err + } + return int32(i), nil +} + +// Uint64 converts the given string representation of an integer into uint64. +func Uint64(val string) (uint64, error) { + return strconv.ParseUint(val, 0, 64) +} + +// Uint32 converts the given string representation of an integer into uint32. +func Uint32(val string) (uint32, error) { + i, err := strconv.ParseUint(val, 0, 32) + if err != nil { + return 0, err + } + return uint32(i), nil +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go new file mode 100644 index 0000000000..b6e5ddf7a9 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go @@ -0,0 +1,5 @@ +/* +Package runtime contains runtime helper functions used by +servers which protoc-gen-grpc-gateway generates. +*/ +package runtime diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go new file mode 100644 index 0000000000..7d7a9b2241 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go @@ -0,0 +1,121 @@ +package runtime + +import ( + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" +) + +// HTTPStatusFromCode converts a gRPC error code into the corresponding HTTP response status. +func HTTPStatusFromCode(code codes.Code) int { + switch code { + case codes.OK: + return http.StatusOK + case codes.Canceled: + return http.StatusRequestTimeout + case codes.Unknown: + return http.StatusInternalServerError + case codes.InvalidArgument: + return http.StatusBadRequest + case codes.DeadlineExceeded: + return http.StatusRequestTimeout + case codes.NotFound: + return http.StatusNotFound + case codes.AlreadyExists: + return http.StatusConflict + case codes.PermissionDenied: + return http.StatusForbidden + case codes.Unauthenticated: + return http.StatusUnauthorized + case codes.ResourceExhausted: + return http.StatusForbidden + case codes.FailedPrecondition: + return http.StatusPreconditionFailed + case codes.Aborted: + return http.StatusConflict + case codes.OutOfRange: + return http.StatusBadRequest + case codes.Unimplemented: + return http.StatusNotImplemented + case codes.Internal: + return http.StatusInternalServerError + case codes.Unavailable: + return http.StatusServiceUnavailable + case codes.DataLoss: + return http.StatusInternalServerError + } + + grpclog.Printf("Unknown gRPC error code: %v", code) + return http.StatusInternalServerError +} + +var ( + // HTTPError replies to the request with the error. + // You can set a custom function to this variable to customize error format. + HTTPError = DefaultHTTPError + // OtherErrorHandler handles the following error used by the gateway: StatusMethodNotAllowed StatusNotFound and StatusBadRequest + OtherErrorHandler = DefaultOtherErrorHandler +) + +type errorBody struct { + Error string `json:"error"` + Code int `json:"code"` +} + +//Make this also conform to proto.Message for builtin JSONPb Marshaler +func (e *errorBody) Reset() { *e = errorBody{} } +func (e *errorBody) String() string { return proto.CompactTextString(e) } +func (*errorBody) ProtoMessage() {} + +// DefaultHTTPError is the default implementation of HTTPError. +// If "err" is an error from gRPC system, the function replies with the status code mapped by HTTPStatusFromCode. +// If otherwise, it replies with http.StatusInternalServerError. +// +// The response body returned by this function is a JSON object, +// which contains a member whose key is "error" and whose value is err.Error(). +func DefaultHTTPError(ctx context.Context, marshaler Marshaler, w http.ResponseWriter, _ *http.Request, err error) { + const fallback = `{"error": "failed to marshal error message"}` + + w.Header().Del("Trailer") + w.Header().Set("Content-Type", marshaler.ContentType()) + body := &errorBody{ + Error: grpc.ErrorDesc(err), + Code: int(grpc.Code(err)), + } + + buf, merr := marshaler.Marshal(body) + if merr != nil { + grpclog.Printf("Failed to marshal error message %q: %v", body, merr) + w.WriteHeader(http.StatusInternalServerError) + if _, err := io.WriteString(w, fallback); err != nil { + grpclog.Printf("Failed to write response: %v", err) + } + return + } + + md, ok := ServerMetadataFromContext(ctx) + if !ok { + grpclog.Printf("Failed to extract ServerMetadata from context") + } + + handleForwardResponseServerMetadata(w, md) + handleForwardResponseTrailerHeader(w, md) + st := HTTPStatusFromCode(grpc.Code(err)) + w.WriteHeader(st) + if _, err := w.Write(buf); err != nil { + grpclog.Printf("Failed to write response: %v", err) + } + + handleForwardResponseTrailer(w, md) +} + +// DefaultOtherErrorHandler is the default implementation of OtherErrorHandler. +// It simply writes a string representation of the given error into "w". +func DefaultOtherErrorHandler(w http.ResponseWriter, _ *http.Request, msg string, code int) { + http.Error(w, msg, code) +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go new file mode 100644 index 0000000000..bafa4285f9 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go @@ -0,0 +1,164 @@ +package runtime + +import ( + "fmt" + "io" + "net/http" + "net/textproto" + + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime/internal" + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/grpclog" +) + +// ForwardResponseStream forwards the stream from gRPC server to REST client. +func ForwardResponseStream(ctx context.Context, marshaler Marshaler, w http.ResponseWriter, req *http.Request, recv func() (proto.Message, error), opts ...func(context.Context, http.ResponseWriter, proto.Message) error) { + f, ok := w.(http.Flusher) + if !ok { + grpclog.Printf("Flush not supported in %T", w) + http.Error(w, "unexpected type of web server", http.StatusInternalServerError) + return + } + + md, ok := ServerMetadataFromContext(ctx) + if !ok { + grpclog.Printf("Failed to extract ServerMetadata from context") + http.Error(w, "unexpected error", http.StatusInternalServerError) + return + } + handleForwardResponseServerMetadata(w, md) + + w.Header().Set("Transfer-Encoding", "chunked") + w.Header().Set("Content-Type", marshaler.ContentType()) + if err := handleForwardResponseOptions(ctx, w, nil, opts); err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + w.WriteHeader(http.StatusOK) + f.Flush() + for { + resp, err := recv() + if err == io.EOF { + return + } + if err != nil { + handleForwardResponseStreamError(marshaler, w, err) + return + } + if err := handleForwardResponseOptions(ctx, w, resp, opts); err != nil { + handleForwardResponseStreamError(marshaler, w, err) + return + } + + buf, err := marshaler.Marshal(streamChunk(resp, nil)) + if err != nil { + grpclog.Printf("Failed to marshal response chunk: %v", err) + return + } + if _, err = fmt.Fprintf(w, "%s\n", buf); err != nil { + grpclog.Printf("Failed to send response chunk: %v", err) + return + } + f.Flush() + } +} + +func handleForwardResponseServerMetadata(w http.ResponseWriter, md ServerMetadata) { + for k, vs := range md.HeaderMD { + hKey := fmt.Sprintf("%s%s", metadataHeaderPrefix, k) + for i := range vs { + w.Header().Add(hKey, vs[i]) + } + } +} + +func handleForwardResponseTrailerHeader(w http.ResponseWriter, md ServerMetadata) { + for k := range md.TrailerMD { + tKey := textproto.CanonicalMIMEHeaderKey(fmt.Sprintf("%s%s", metadataTrailerPrefix, k)) + w.Header().Add("Trailer", tKey) + } +} + +func handleForwardResponseTrailer(w http.ResponseWriter, md ServerMetadata) { + for k, vs := range md.TrailerMD { + tKey := fmt.Sprintf("%s%s", metadataTrailerPrefix, k) + for i := range vs { + w.Header().Add(tKey, vs[i]) + } + } +} + +// ForwardResponseMessage forwards the message "resp" from gRPC server to REST client. +func ForwardResponseMessage(ctx context.Context, marshaler Marshaler, w http.ResponseWriter, req *http.Request, resp proto.Message, opts ...func(context.Context, http.ResponseWriter, proto.Message) error) { + md, ok := ServerMetadataFromContext(ctx) + if !ok { + grpclog.Printf("Failed to extract ServerMetadata from context") + } + + handleForwardResponseServerMetadata(w, md) + handleForwardResponseTrailerHeader(w, md) + w.Header().Set("Content-Type", marshaler.ContentType()) + if err := handleForwardResponseOptions(ctx, w, resp, opts); err != nil { + HTTPError(ctx, marshaler, w, req, err) + return + } + + buf, err := marshaler.Marshal(resp) + if err != nil { + grpclog.Printf("Marshal error: %v", err) + HTTPError(ctx, marshaler, w, req, err) + return + } + + if _, err = w.Write(buf); err != nil { + grpclog.Printf("Failed to write response: %v", err) + } + + handleForwardResponseTrailer(w, md) +} + +func handleForwardResponseOptions(ctx context.Context, w http.ResponseWriter, resp proto.Message, opts []func(context.Context, http.ResponseWriter, proto.Message) error) error { + if len(opts) == 0 { + return nil + } + for _, opt := range opts { + if err := opt(ctx, w, resp); err != nil { + grpclog.Printf("Error handling ForwardResponseOptions: %v", err) + return err + } + } + return nil +} + +func handleForwardResponseStreamError(marshaler Marshaler, w http.ResponseWriter, err error) { + buf, merr := marshaler.Marshal(streamChunk(nil, err)) + if merr != nil { + grpclog.Printf("Failed to marshal an error: %v", merr) + return + } + if _, werr := fmt.Fprintf(w, "%s\n", buf); werr != nil { + grpclog.Printf("Failed to notify error to client: %v", werr) + return + } +} + +func streamChunk(result proto.Message, err error) map[string]proto.Message { + if err != nil { + grpcCode := grpc.Code(err) + httpCode := HTTPStatusFromCode(grpcCode) + return map[string]proto.Message{ + "error": &internal.StreamError{ + GrpcCode: int32(grpcCode), + HttpCode: int32(httpCode), + Message: err.Error(), + HttpStatus: http.StatusText(httpCode), + }, + } + } + if result == nil { + return streamChunk(nil, fmt.Errorf("empty response")) + } + return map[string]proto.Message{"result": result} +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go new file mode 100644 index 0000000000..524e0d3c34 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go @@ -0,0 +1,65 @@ +// Code generated by protoc-gen-go. +// source: runtime/internal/stream_chunk.proto +// DO NOT EDIT! + +/* +Package internal is a generated protocol buffer package. + +It is generated from these files: + runtime/internal/stream_chunk.proto + +It has these top-level messages: + StreamError +*/ +package internal + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// StreamError is a response type which is returned when +// streaming rpc returns an error. +type StreamError struct { + GrpcCode int32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode" json:"grpc_code,omitempty"` + HttpCode int32 `protobuf:"varint,2,opt,name=http_code,json=httpCode" json:"http_code,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` + HttpStatus string `protobuf:"bytes,4,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` +} + +func (m *StreamError) Reset() { *m = StreamError{} } +func (m *StreamError) String() string { return proto.CompactTextString(m) } +func (*StreamError) ProtoMessage() {} +func (*StreamError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func init() { + proto.RegisterType((*StreamError)(nil), "grpc.gateway.runtime.StreamError") +} + +func init() { proto.RegisterFile("runtime/internal/stream_chunk.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 180 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x2a, 0xcd, 0x2b, + 0xc9, 0xcc, 0x4d, 0xd5, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0x2e, 0x29, + 0x4a, 0x4d, 0xcc, 0x8d, 0x4f, 0xce, 0x28, 0xcd, 0xcb, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x12, 0x49, 0x2f, 0x2a, 0x48, 0xd6, 0x4b, 0x4f, 0x2c, 0x49, 0x2d, 0x4f, 0xac, 0xd4, 0x83, 0xea, + 0x50, 0x6a, 0x62, 0xe4, 0xe2, 0x0e, 0x06, 0x2b, 0x76, 0x2d, 0x2a, 0xca, 0x2f, 0x12, 0x92, 0xe6, + 0xe2, 0x04, 0xa9, 0x8b, 0x4f, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x0d, 0xe2, + 0x00, 0x09, 0x38, 0x03, 0xf9, 0x20, 0xc9, 0x8c, 0x92, 0x92, 0x02, 0x88, 0x24, 0x13, 0x44, 0x12, + 0x24, 0x00, 0x96, 0x94, 0xe0, 0x62, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x95, 0x60, 0x06, + 0x4a, 0x71, 0x06, 0xc1, 0xb8, 0x42, 0xf2, 0x5c, 0xdc, 0x60, 0x6d, 0xc5, 0x25, 0x89, 0x25, 0xa5, + 0xc5, 0x12, 0x2c, 0x60, 0x59, 0x2e, 0x90, 0x50, 0x30, 0x58, 0xc4, 0x89, 0x2b, 0x8a, 0x03, 0xe6, + 0xf2, 0x24, 0x36, 0xb0, 0x6b, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x07, 0x92, 0xb6, + 0xd4, 0x00, 0x00, 0x00, +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.proto b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.proto new file mode 100644 index 0000000000..f7fba56c35 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package grpc.gateway.runtime; +option go_package = "internal"; + +// StreamError is a response type which is returned when +// streaming rpc returns an error. +message StreamError { + int32 grpc_code = 1; + int32 http_code = 2; + string message = 3; + string http_status = 4; +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go new file mode 100644 index 0000000000..0acd2ca29e --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go @@ -0,0 +1,37 @@ +package runtime + +import ( + "encoding/json" + "io" +) + +// JSONBuiltin is a Marshaler which marshals/unmarshals into/from JSON +// with the standard "encoding/json" package of Golang. +// Although it is generally faster for simple proto messages than JSONPb, +// it does not support advanced features of protobuf, e.g. map, oneof, .... +type JSONBuiltin struct{} + +// ContentType always Returns "application/json". +func (*JSONBuiltin) ContentType() string { + return "application/json" +} + +// Marshal marshals "v" into JSON +func (j *JSONBuiltin) Marshal(v interface{}) ([]byte, error) { + return json.Marshal(v) +} + +// Unmarshal unmarshals JSON data into "v". +func (j *JSONBuiltin) Unmarshal(data []byte, v interface{}) error { + return json.Unmarshal(data, v) +} + +// NewDecoder returns a Decoder which reads JSON stream from "r". +func (j *JSONBuiltin) NewDecoder(r io.Reader) Decoder { + return json.NewDecoder(r) +} + +// NewEncoder returns an Encoder which writes JSON stream into "w". +func (j *JSONBuiltin) NewEncoder(w io.Writer) Encoder { + return json.NewEncoder(w) +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go new file mode 100644 index 0000000000..9a42191119 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go @@ -0,0 +1,182 @@ +package runtime + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "reflect" + + "github.com/golang/protobuf/jsonpb" + "github.com/golang/protobuf/proto" +) + +// JSONPb is a Marshaler which marshals/unmarshals into/from JSON +// with the "github.com/golang/protobuf/jsonpb". +// It supports fully functionality of protobuf unlike JSONBuiltin. +type JSONPb jsonpb.Marshaler + +// ContentType always returns "application/json". +func (*JSONPb) ContentType() string { + return "application/json" +} + +// Marshal marshals "v" into JSON +// Currently it can marshal only proto.Message. +// TODO(yugui) Support fields of primitive types in a message. +func (j *JSONPb) Marshal(v interface{}) ([]byte, error) { + if _, ok := v.(proto.Message); !ok { + return j.marshalNonProtoField(v) + } + + var buf bytes.Buffer + if err := j.marshalTo(&buf, v); err != nil { + return nil, err + } + return buf.Bytes(), nil +} + +func (j *JSONPb) marshalTo(w io.Writer, v interface{}) error { + p, ok := v.(proto.Message) + if !ok { + buf, err := j.marshalNonProtoField(v) + if err != nil { + return err + } + _, err = w.Write(buf) + return err + } + return (*jsonpb.Marshaler)(j).Marshal(w, p) +} + +// marshalNonProto marshals a non-message field of a protobuf message. +// This function does not correctly marshals arbitary data structure into JSON, +// but it is only capable of marshaling non-message field values of protobuf, +// i.e. primitive types, enums; pointers to primitives or enums; maps from +// integer/string types to primitives/enums/pointers to messages. +func (j *JSONPb) marshalNonProtoField(v interface{}) ([]byte, error) { + rv := reflect.ValueOf(v) + for rv.Kind() == reflect.Ptr { + if rv.IsNil() { + return []byte("null"), nil + } + rv = rv.Elem() + } + + if rv.Kind() == reflect.Map { + m := make(map[string]*json.RawMessage) + for _, k := range rv.MapKeys() { + buf, err := j.Marshal(rv.MapIndex(k).Interface()) + if err != nil { + return nil, err + } + m[fmt.Sprintf("%v", k.Interface())] = (*json.RawMessage)(&buf) + } + if j.Indent != "" { + return json.MarshalIndent(m, "", j.Indent) + } + return json.Marshal(m) + } + if enum, ok := rv.Interface().(protoEnum); ok && !j.EnumsAsInts { + return json.Marshal(enum.String()) + } + return json.Marshal(rv.Interface()) +} + +// Unmarshal unmarshals JSON "data" into "v" +// Currently it can marshal only proto.Message. +// TODO(yugui) Support fields of primitive types in a message. +func (j *JSONPb) Unmarshal(data []byte, v interface{}) error { + return unmarshalJSONPb(data, v) +} + +// NewDecoder returns a Decoder which reads JSON stream from "r". +func (j *JSONPb) NewDecoder(r io.Reader) Decoder { + d := json.NewDecoder(r) + return DecoderFunc(func(v interface{}) error { return decodeJSONPb(d, v) }) +} + +// NewEncoder returns an Encoder which writes JSON stream into "w". +func (j *JSONPb) NewEncoder(w io.Writer) Encoder { + return EncoderFunc(func(v interface{}) error { return j.marshalTo(w, v) }) +} + +func unmarshalJSONPb(data []byte, v interface{}) error { + d := json.NewDecoder(bytes.NewReader(data)) + return decodeJSONPb(d, v) +} + +func decodeJSONPb(d *json.Decoder, v interface{}) error { + p, ok := v.(proto.Message) + if !ok { + return decodeNonProtoField(d, v) + } + return jsonpb.UnmarshalNext(d, p) +} + +func decodeNonProtoField(d *json.Decoder, v interface{}) error { + rv := reflect.ValueOf(v) + if rv.Kind() != reflect.Ptr { + return fmt.Errorf("%T is not a pointer", v) + } + for rv.Kind() == reflect.Ptr { + if rv.IsNil() { + rv.Set(reflect.New(rv.Type().Elem())) + } + if rv.Type().ConvertibleTo(typeProtoMessage) { + return jsonpb.UnmarshalNext(d, rv.Interface().(proto.Message)) + } + rv = rv.Elem() + } + if rv.Kind() == reflect.Map { + if rv.IsNil() { + rv.Set(reflect.MakeMap(rv.Type())) + } + conv, ok := convFromType[rv.Type().Key().Kind()] + if !ok { + return fmt.Errorf("unsupported type of map field key: %v", rv.Type().Key()) + } + + m := make(map[string]*json.RawMessage) + if err := d.Decode(&m); err != nil { + return err + } + for k, v := range m { + result := conv.Call([]reflect.Value{reflect.ValueOf(k)}) + if err := result[1].Interface(); err != nil { + return err.(error) + } + bk := result[0] + bv := reflect.New(rv.Type().Elem()) + if err := unmarshalJSONPb([]byte(*v), bv.Interface()); err != nil { + return err + } + rv.SetMapIndex(bk, bv.Elem()) + } + return nil + } + if _, ok := rv.Interface().(protoEnum); ok { + var repr interface{} + if err := d.Decode(&repr); err != nil { + return err + } + switch repr.(type) { + case string: + // TODO(yugui) Should use proto.StructProperties? + return fmt.Errorf("unmarshaling of symbolic enum %q not supported: %T", repr, rv.Interface()) + case float64: + rv.Set(reflect.ValueOf(int32(repr.(float64))).Convert(rv.Type())) + return nil + default: + return fmt.Errorf("cannot assign %#v into Go type %T", repr, rv.Interface()) + } + } + return d.Decode(v) +} + +type protoEnum interface { + fmt.Stringer + EnumDescriptor() ([]byte, []int) +} + +var typeProtoMessage = reflect.TypeOf((*proto.Message)(nil)).Elem() diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go new file mode 100644 index 0000000000..6d434f13cb --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go @@ -0,0 +1,42 @@ +package runtime + +import ( + "io" +) + +// Marshaler defines a conversion between byte sequence and gRPC payloads / fields. +type Marshaler interface { + // Marshal marshals "v" into byte sequence. + Marshal(v interface{}) ([]byte, error) + // Unmarshal unmarshals "data" into "v". + // "v" must be a pointer value. + Unmarshal(data []byte, v interface{}) error + // NewDecoder returns a Decoder which reads byte sequence from "r". + NewDecoder(r io.Reader) Decoder + // NewEncoder returns an Encoder which writes bytes sequence into "w". + NewEncoder(w io.Writer) Encoder + // ContentType returns the Content-Type which this marshaler is responsible for. + ContentType() string +} + +// Decoder decodes a byte sequence +type Decoder interface { + Decode(v interface{}) error +} + +// Encoder encodes gRPC payloads / fields into byte sequence. +type Encoder interface { + Encode(v interface{}) error +} + +// DecoderFunc adapts an decoder function into Decoder. +type DecoderFunc func(v interface{}) error + +// Decode delegates invocations to the underlying function itself. +func (f DecoderFunc) Decode(v interface{}) error { return f(v) } + +// EncoderFunc adapts an encoder function into Encoder +type EncoderFunc func(v interface{}) error + +// Encode delegates invocations to the underlying function itself. +func (f EncoderFunc) Encode(v interface{}) error { return f(v) } diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go new file mode 100644 index 0000000000..928f073321 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go @@ -0,0 +1,91 @@ +package runtime + +import ( + "errors" + "net/http" +) + +// MIMEWildcard is the fallback MIME type used for requests which do not match +// a registered MIME type. +const MIMEWildcard = "*" + +var ( + acceptHeader = http.CanonicalHeaderKey("Accept") + contentTypeHeader = http.CanonicalHeaderKey("Content-Type") + + defaultMarshaler = &JSONPb{OrigName: true} +) + +// MarshalerForRequest returns the inbound/outbound marshalers for this request. +// It checks the registry on the ServeMux for the MIME type set by the Content-Type header. +// If it isn't set (or the request Content-Type is empty), checks for "*". +// If there are multiple Content-Type headers set, choose the first one that it can +// exactly match in the registry. +// Otherwise, it follows the above logic for "*"/InboundMarshaler/OutboundMarshaler. +func MarshalerForRequest(mux *ServeMux, r *http.Request) (inbound Marshaler, outbound Marshaler) { + for _, acceptVal := range r.Header[acceptHeader] { + if m, ok := mux.marshalers.mimeMap[acceptVal]; ok { + outbound = m + break + } + } + + for _, contentTypeVal := range r.Header[contentTypeHeader] { + if m, ok := mux.marshalers.mimeMap[contentTypeVal]; ok { + inbound = m + break + } + } + + if inbound == nil { + inbound = mux.marshalers.mimeMap[MIMEWildcard] + } + if outbound == nil { + outbound = inbound + } + + return inbound, outbound +} + +// marshalerRegistry is a mapping from MIME types to Marshalers. +type marshalerRegistry struct { + mimeMap map[string]Marshaler +} + +// add adds a marshaler for a case-sensitive MIME type string ("*" to match any +// MIME type). +func (m marshalerRegistry) add(mime string, marshaler Marshaler) error { + if len(mime) == 0 { + return errors.New("empty MIME type") + } + + m.mimeMap[mime] = marshaler + + return nil +} + +// makeMarshalerMIMERegistry returns a new registry of marshalers. +// It allows for a mapping of case-sensitive Content-Type MIME type string to runtime.Marshaler interfaces. +// +// For example, you could allow the client to specify the use of the runtime.JSONPb marshaler +// with a "applicaton/jsonpb" Content-Type and the use of the runtime.JSONBuiltin marshaler +// with a "application/json" Content-Type. +// "*" can be used to match any Content-Type. +// This can be attached to a ServerMux with the marshaler option. +func makeMarshalerMIMERegistry() marshalerRegistry { + return marshalerRegistry{ + mimeMap: map[string]Marshaler{ + MIMEWildcard: defaultMarshaler, + }, + } +} + +// WithMarshalerOption returns a ServeMuxOption which associates inbound and outbound +// Marshalers to a MIME type in mux. +func WithMarshalerOption(mime string, marshaler Marshaler) ServeMuxOption { + return func(mux *ServeMux) { + if err := mux.marshalers.add(mime, marshaler); err != nil { + panic(err) + } + } +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go new file mode 100644 index 0000000000..2e6c562130 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go @@ -0,0 +1,132 @@ +package runtime + +import ( + "net/http" + "strings" + + "golang.org/x/net/context" + + "github.com/golang/protobuf/proto" +) + +// A HandlerFunc handles a specific pair of path pattern and HTTP method. +type HandlerFunc func(w http.ResponseWriter, r *http.Request, pathParams map[string]string) + +// ServeMux is a request multiplexer for grpc-gateway. +// It matches http requests to patterns and invokes the corresponding handler. +type ServeMux struct { + // handlers maps HTTP method to a list of handlers. + handlers map[string][]handler + forwardResponseOptions []func(context.Context, http.ResponseWriter, proto.Message) error + marshalers marshalerRegistry +} + +// ServeMuxOption is an option that can be given to a ServeMux on construction. +type ServeMuxOption func(*ServeMux) + +// WithForwardResponseOption returns a ServeMuxOption representing the forwardResponseOption. +// +// forwardResponseOption is an option that will be called on the relevant context.Context, +// http.ResponseWriter, and proto.Message before every forwarded response. +// +// The message may be nil in the case where just a header is being sent. +func WithForwardResponseOption(forwardResponseOption func(context.Context, http.ResponseWriter, proto.Message) error) ServeMuxOption { + return func(serveMux *ServeMux) { + serveMux.forwardResponseOptions = append(serveMux.forwardResponseOptions, forwardResponseOption) + } +} + +// NewServeMux returns a new ServeMux whose internal mapping is empty. +func NewServeMux(opts ...ServeMuxOption) *ServeMux { + serveMux := &ServeMux{ + handlers: make(map[string][]handler), + forwardResponseOptions: make([]func(context.Context, http.ResponseWriter, proto.Message) error, 0), + marshalers: makeMarshalerMIMERegistry(), + } + + for _, opt := range opts { + opt(serveMux) + } + return serveMux +} + +// Handle associates "h" to the pair of HTTP method and path pattern. +func (s *ServeMux) Handle(meth string, pat Pattern, h HandlerFunc) { + s.handlers[meth] = append(s.handlers[meth], handler{pat: pat, h: h}) +} + +// ServeHTTP dispatches the request to the first handler whose pattern matches to r.Method and r.Path. +func (s *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { + path := r.URL.Path + if !strings.HasPrefix(path, "/") { + OtherErrorHandler(w, r, http.StatusText(http.StatusBadRequest), http.StatusBadRequest) + return + } + + components := strings.Split(path[1:], "/") + l := len(components) + var verb string + if idx := strings.LastIndex(components[l-1], ":"); idx == 0 { + OtherErrorHandler(w, r, http.StatusText(http.StatusNotFound), http.StatusNotFound) + return + } else if idx > 0 { + c := components[l-1] + components[l-1], verb = c[:idx], c[idx+1:] + } + + if override := r.Header.Get("X-HTTP-Method-Override"); override != "" && isPathLengthFallback(r) { + r.Method = strings.ToUpper(override) + if err := r.ParseForm(); err != nil { + OtherErrorHandler(w, r, err.Error(), http.StatusBadRequest) + return + } + } + for _, h := range s.handlers[r.Method] { + pathParams, err := h.pat.Match(components, verb) + if err != nil { + continue + } + h.h(w, r, pathParams) + return + } + + // lookup other methods to handle fallback from GET to POST and + // to determine if it is MethodNotAllowed or NotFound. + for m, handlers := range s.handlers { + if m == r.Method { + continue + } + for _, h := range handlers { + pathParams, err := h.pat.Match(components, verb) + if err != nil { + continue + } + // X-HTTP-Method-Override is optional. Always allow fallback to POST. + if isPathLengthFallback(r) { + if err := r.ParseForm(); err != nil { + OtherErrorHandler(w, r, err.Error(), http.StatusBadRequest) + return + } + h.h(w, r, pathParams) + return + } + OtherErrorHandler(w, r, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed) + return + } + } + OtherErrorHandler(w, r, http.StatusText(http.StatusNotFound), http.StatusNotFound) +} + +// GetForwardResponseOptions returns the ForwardResponseOptions associated with this ServeMux. +func (s *ServeMux) GetForwardResponseOptions() []func(context.Context, http.ResponseWriter, proto.Message) error { + return s.forwardResponseOptions +} + +func isPathLengthFallback(r *http.Request) bool { + return r.Method == "POST" && r.Header.Get("Content-Type") == "application/x-www-form-urlencoded" +} + +type handler struct { + pat Pattern + h HandlerFunc +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go new file mode 100644 index 0000000000..3947dbea02 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go @@ -0,0 +1,227 @@ +package runtime + +import ( + "errors" + "fmt" + "strings" + + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc/grpclog" +) + +var ( + // ErrNotMatch indicates that the given HTTP request path does not match to the pattern. + ErrNotMatch = errors.New("not match to the path pattern") + // ErrInvalidPattern indicates that the given definition of Pattern is not valid. + ErrInvalidPattern = errors.New("invalid pattern") +) + +type op struct { + code utilities.OpCode + operand int +} + +// Pattern is a template pattern of http request paths defined in third_party/googleapis/google/api/http.proto. +type Pattern struct { + // ops is a list of operations + ops []op + // pool is a constant pool indexed by the operands or vars. + pool []string + // vars is a list of variables names to be bound by this pattern + vars []string + // stacksize is the max depth of the stack + stacksize int + // tailLen is the length of the fixed-size segments after a deep wildcard + tailLen int + // verb is the VERB part of the path pattern. It is empty if the pattern does not have VERB part. + verb string +} + +// NewPattern returns a new Pattern from the given definition values. +// "ops" is a sequence of op codes. "pool" is a constant pool. +// "verb" is the verb part of the pattern. It is empty if the pattern does not have the part. +// "version" must be 1 for now. +// It returns an error if the given definition is invalid. +func NewPattern(version int, ops []int, pool []string, verb string) (Pattern, error) { + if version != 1 { + grpclog.Printf("unsupported version: %d", version) + return Pattern{}, ErrInvalidPattern + } + + l := len(ops) + if l%2 != 0 { + grpclog.Printf("odd number of ops codes: %d", l) + return Pattern{}, ErrInvalidPattern + } + + var ( + typedOps []op + stack, maxstack int + tailLen int + pushMSeen bool + vars []string + ) + for i := 0; i < l; i += 2 { + op := op{code: utilities.OpCode(ops[i]), operand: ops[i+1]} + switch op.code { + case utilities.OpNop: + continue + case utilities.OpPush: + if pushMSeen { + tailLen++ + } + stack++ + case utilities.OpPushM: + if pushMSeen { + grpclog.Printf("pushM appears twice") + return Pattern{}, ErrInvalidPattern + } + pushMSeen = true + stack++ + case utilities.OpLitPush: + if op.operand < 0 || len(pool) <= op.operand { + grpclog.Printf("negative literal index: %d", op.operand) + return Pattern{}, ErrInvalidPattern + } + if pushMSeen { + tailLen++ + } + stack++ + case utilities.OpConcatN: + if op.operand <= 0 { + grpclog.Printf("negative concat size: %d", op.operand) + return Pattern{}, ErrInvalidPattern + } + stack -= op.operand + if stack < 0 { + grpclog.Print("stack underflow") + return Pattern{}, ErrInvalidPattern + } + stack++ + case utilities.OpCapture: + if op.operand < 0 || len(pool) <= op.operand { + grpclog.Printf("variable name index out of bound: %d", op.operand) + return Pattern{}, ErrInvalidPattern + } + v := pool[op.operand] + op.operand = len(vars) + vars = append(vars, v) + stack-- + if stack < 0 { + grpclog.Printf("stack underflow") + return Pattern{}, ErrInvalidPattern + } + default: + grpclog.Printf("invalid opcode: %d", op.code) + return Pattern{}, ErrInvalidPattern + } + + if maxstack < stack { + maxstack = stack + } + typedOps = append(typedOps, op) + } + return Pattern{ + ops: typedOps, + pool: pool, + vars: vars, + stacksize: maxstack, + tailLen: tailLen, + verb: verb, + }, nil +} + +// MustPattern is a helper function which makes it easier to call NewPattern in variable initialization. +func MustPattern(p Pattern, err error) Pattern { + if err != nil { + grpclog.Fatalf("Pattern initialization failed: %v", err) + } + return p +} + +// Match examines components if it matches to the Pattern. +// If it matches, the function returns a mapping from field paths to their captured values. +// If otherwise, the function returns an error. +func (p Pattern) Match(components []string, verb string) (map[string]string, error) { + if p.verb != verb { + return nil, ErrNotMatch + } + + var pos int + stack := make([]string, 0, p.stacksize) + captured := make([]string, len(p.vars)) + l := len(components) + for _, op := range p.ops { + switch op.code { + case utilities.OpNop: + continue + case utilities.OpPush, utilities.OpLitPush: + if pos >= l { + return nil, ErrNotMatch + } + c := components[pos] + if op.code == utilities.OpLitPush { + if lit := p.pool[op.operand]; c != lit { + return nil, ErrNotMatch + } + } + stack = append(stack, c) + pos++ + case utilities.OpPushM: + end := len(components) + if end < pos+p.tailLen { + return nil, ErrNotMatch + } + end -= p.tailLen + stack = append(stack, strings.Join(components[pos:end], "/")) + pos = end + case utilities.OpConcatN: + n := op.operand + l := len(stack) - n + stack = append(stack[:l], strings.Join(stack[l:], "/")) + case utilities.OpCapture: + n := len(stack) - 1 + captured[op.operand] = stack[n] + stack = stack[:n] + } + } + if pos < l { + return nil, ErrNotMatch + } + bindings := make(map[string]string) + for i, val := range captured { + bindings[p.vars[i]] = val + } + return bindings, nil +} + +// Verb returns the verb part of the Pattern. +func (p Pattern) Verb() string { return p.verb } + +func (p Pattern) String() string { + var stack []string + for _, op := range p.ops { + switch op.code { + case utilities.OpNop: + continue + case utilities.OpPush: + stack = append(stack, "*") + case utilities.OpLitPush: + stack = append(stack, p.pool[op.operand]) + case utilities.OpPushM: + stack = append(stack, "**") + case utilities.OpConcatN: + n := op.operand + l := len(stack) - n + stack = append(stack[:l], strings.Join(stack[l:], "/")) + case utilities.OpCapture: + n := len(stack) - 1 + stack[n] = fmt.Sprintf("{%s=%s}", p.vars[op.operand], stack[n]) + } + } + segs := strings.Join(stack, "/") + if p.verb != "" { + return fmt.Sprintf("/%s:%s", segs, p.verb) + } + return "/" + segs +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go new file mode 100644 index 0000000000..a3151e2a55 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go @@ -0,0 +1,80 @@ +package runtime + +import ( + "github.com/golang/protobuf/proto" +) + +// StringP returns a pointer to a string whose pointee is same as the given string value. +func StringP(val string) (*string, error) { + return proto.String(val), nil +} + +// BoolP parses the given string representation of a boolean value, +// and returns a pointer to a bool whose value is same as the parsed value. +func BoolP(val string) (*bool, error) { + b, err := Bool(val) + if err != nil { + return nil, err + } + return proto.Bool(b), nil +} + +// Float64P parses the given string representation of a floating point number, +// and returns a pointer to a float64 whose value is same as the parsed number. +func Float64P(val string) (*float64, error) { + f, err := Float64(val) + if err != nil { + return nil, err + } + return proto.Float64(f), nil +} + +// Float32P parses the given string representation of a floating point number, +// and returns a pointer to a float32 whose value is same as the parsed number. +func Float32P(val string) (*float32, error) { + f, err := Float32(val) + if err != nil { + return nil, err + } + return proto.Float32(f), nil +} + +// Int64P parses the given string representation of an integer +// and returns a pointer to a int64 whose value is same as the parsed integer. +func Int64P(val string) (*int64, error) { + i, err := Int64(val) + if err != nil { + return nil, err + } + return proto.Int64(i), nil +} + +// Int32P parses the given string representation of an integer +// and returns a pointer to a int32 whose value is same as the parsed integer. +func Int32P(val string) (*int32, error) { + i, err := Int32(val) + if err != nil { + return nil, err + } + return proto.Int32(i), err +} + +// Uint64P parses the given string representation of an integer +// and returns a pointer to a uint64 whose value is same as the parsed integer. +func Uint64P(val string) (*uint64, error) { + i, err := Uint64(val) + if err != nil { + return nil, err + } + return proto.Uint64(i), err +} + +// Uint32P parses the given string representation of an integer +// and returns a pointer to a uint32 whose value is same as the parsed integer. +func Uint32P(val string) (*uint32, error) { + i, err := Uint32(val) + if err != nil { + return nil, err + } + return proto.Uint32(i), err +} diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go new file mode 100644 index 0000000000..56a919a52f --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go @@ -0,0 +1,140 @@ +package runtime + +import ( + "fmt" + "net/url" + "reflect" + "strings" + + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc/grpclog" +) + +// PopulateQueryParameters populates "values" into "msg". +// A value is ignored if its key starts with one of the elements in "filter". +func PopulateQueryParameters(msg proto.Message, values url.Values, filter *utilities.DoubleArray) error { + for key, values := range values { + fieldPath := strings.Split(key, ".") + if filter.HasCommonPrefix(fieldPath) { + continue + } + if err := populateFieldValueFromPath(msg, fieldPath, values); err != nil { + return err + } + } + return nil +} + +// PopulateFieldFromPath sets a value in a nested Protobuf structure. +// It instantiates missing protobuf fields as it goes. +func PopulateFieldFromPath(msg proto.Message, fieldPathString string, value string) error { + fieldPath := strings.Split(fieldPathString, ".") + return populateFieldValueFromPath(msg, fieldPath, []string{value}) +} + +func populateFieldValueFromPath(msg proto.Message, fieldPath []string, values []string) error { + m := reflect.ValueOf(msg) + if m.Kind() != reflect.Ptr { + return fmt.Errorf("unexpected type %T: %v", msg, msg) + } + m = m.Elem() + for i, fieldName := range fieldPath { + isLast := i == len(fieldPath)-1 + if !isLast && m.Kind() != reflect.Struct { + return fmt.Errorf("non-aggregate type in the mid of path: %s", strings.Join(fieldPath, ".")) + } + f := fieldByProtoName(m, fieldName) + if !f.IsValid() { + grpclog.Printf("field not found in %T: %s", msg, strings.Join(fieldPath, ".")) + return nil + } + + switch f.Kind() { + case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, reflect.String, reflect.Uint32, reflect.Uint64: + m = f + case reflect.Slice: + // TODO(yugui) Support []byte + if !isLast { + return fmt.Errorf("unexpected repeated field in %s", strings.Join(fieldPath, ".")) + } + return populateRepeatedField(f, values) + case reflect.Ptr: + if f.IsNil() { + m = reflect.New(f.Type().Elem()) + f.Set(m) + } + m = f.Elem() + continue + case reflect.Struct: + m = f + continue + default: + return fmt.Errorf("unexpected type %s in %T", f.Type(), msg) + } + } + switch len(values) { + case 0: + return fmt.Errorf("no value of field: %s", strings.Join(fieldPath, ".")) + case 1: + default: + grpclog.Printf("too many field values: %s", strings.Join(fieldPath, ".")) + } + return populateField(m, values[0]) +} + +// fieldByProtoName looks up a field whose corresponding protobuf field name is "name". +// "m" must be a struct value. It returns zero reflect.Value if no such field found. +func fieldByProtoName(m reflect.Value, name string) reflect.Value { + props := proto.GetProperties(m.Type()) + for _, p := range props.Prop { + if p.OrigName == name { + return m.FieldByName(p.Name) + } + } + return reflect.Value{} +} + +func populateRepeatedField(f reflect.Value, values []string) error { + elemType := f.Type().Elem() + conv, ok := convFromType[elemType.Kind()] + if !ok { + return fmt.Errorf("unsupported field type %s", elemType) + } + f.Set(reflect.MakeSlice(f.Type(), len(values), len(values))) + for i, v := range values { + result := conv.Call([]reflect.Value{reflect.ValueOf(v)}) + if err := result[1].Interface(); err != nil { + return err.(error) + } + f.Index(i).Set(result[0]) + } + return nil +} + +func populateField(f reflect.Value, value string) error { + conv, ok := convFromType[f.Kind()] + if !ok { + return fmt.Errorf("unsupported field type %T", f) + } + result := conv.Call([]reflect.Value{reflect.ValueOf(value)}) + if err := result[1].Interface(); err != nil { + return err.(error) + } + f.Set(result[0]) + return nil +} + +var ( + convFromType = map[reflect.Kind]reflect.Value{ + reflect.String: reflect.ValueOf(String), + reflect.Bool: reflect.ValueOf(Bool), + reflect.Float64: reflect.ValueOf(Float64), + reflect.Float32: reflect.ValueOf(Float32), + reflect.Int64: reflect.ValueOf(Int64), + reflect.Int32: reflect.ValueOf(Int32), + reflect.Uint64: reflect.ValueOf(Uint64), + reflect.Uint32: reflect.ValueOf(Uint32), + // TODO(yugui) Support []byte + } +) diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go new file mode 100644 index 0000000000..cf79a4d588 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go @@ -0,0 +1,2 @@ +// Package utilities provides members for internal use in grpc-gateway. +package utilities diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go new file mode 100644 index 0000000000..28ad9461f8 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go @@ -0,0 +1,22 @@ +package utilities + +// An OpCode is a opcode of compiled path patterns. +type OpCode int + +// These constants are the valid values of OpCode. +const ( + // OpNop does nothing + OpNop = OpCode(iota) + // OpPush pushes a component to stack + OpPush + // OpLitPush pushes a component to stack if it matches to the literal + OpLitPush + // OpPushM concatenates the remaining components and pushes it to stack + OpPushM + // OpConcatN pops N items from stack, concatenates them and pushes it back to stack + OpConcatN + // OpCapture pops an item and binds it to the variable + OpCapture + // OpEnd is the least postive invalid opcode. + OpEnd +) diff --git a/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go new file mode 100644 index 0000000000..c2b7b30dd9 --- /dev/null +++ b/ingress/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go @@ -0,0 +1,177 @@ +package utilities + +import ( + "sort" +) + +// DoubleArray is a Double Array implementation of trie on sequences of strings. +type DoubleArray struct { + // Encoding keeps an encoding from string to int + Encoding map[string]int + // Base is the base array of Double Array + Base []int + // Check is the check array of Double Array + Check []int +} + +// NewDoubleArray builds a DoubleArray from a set of sequences of strings. +func NewDoubleArray(seqs [][]string) *DoubleArray { + da := &DoubleArray{Encoding: make(map[string]int)} + if len(seqs) == 0 { + return da + } + + encoded := registerTokens(da, seqs) + sort.Sort(byLex(encoded)) + + root := node{row: -1, col: -1, left: 0, right: len(encoded)} + addSeqs(da, encoded, 0, root) + + for i := len(da.Base); i > 0; i-- { + if da.Check[i-1] != 0 { + da.Base = da.Base[:i] + da.Check = da.Check[:i] + break + } + } + return da +} + +func registerTokens(da *DoubleArray, seqs [][]string) [][]int { + var result [][]int + for _, seq := range seqs { + var encoded []int + for _, token := range seq { + if _, ok := da.Encoding[token]; !ok { + da.Encoding[token] = len(da.Encoding) + } + encoded = append(encoded, da.Encoding[token]) + } + result = append(result, encoded) + } + for i := range result { + result[i] = append(result[i], len(da.Encoding)) + } + return result +} + +type node struct { + row, col int + left, right int +} + +func (n node) value(seqs [][]int) int { + return seqs[n.row][n.col] +} + +func (n node) children(seqs [][]int) []*node { + var result []*node + lastVal := int(-1) + last := new(node) + for i := n.left; i < n.right; i++ { + if lastVal == seqs[i][n.col+1] { + continue + } + last.right = i + last = &node{ + row: i, + col: n.col + 1, + left: i, + } + result = append(result, last) + } + last.right = n.right + return result +} + +func addSeqs(da *DoubleArray, seqs [][]int, pos int, n node) { + ensureSize(da, pos) + + children := n.children(seqs) + var i int + for i = 1; ; i++ { + ok := func() bool { + for _, child := range children { + code := child.value(seqs) + j := i + code + ensureSize(da, j) + if da.Check[j] != 0 { + return false + } + } + return true + }() + if ok { + break + } + } + da.Base[pos] = i + for _, child := range children { + code := child.value(seqs) + j := i + code + da.Check[j] = pos + 1 + } + terminator := len(da.Encoding) + for _, child := range children { + code := child.value(seqs) + if code == terminator { + continue + } + j := i + code + addSeqs(da, seqs, j, *child) + } +} + +func ensureSize(da *DoubleArray, i int) { + for i >= len(da.Base) { + da.Base = append(da.Base, make([]int, len(da.Base)+1)...) + da.Check = append(da.Check, make([]int, len(da.Check)+1)...) + } +} + +type byLex [][]int + +func (l byLex) Len() int { return len(l) } +func (l byLex) Swap(i, j int) { l[i], l[j] = l[j], l[i] } +func (l byLex) Less(i, j int) bool { + si := l[i] + sj := l[j] + var k int + for k = 0; k < len(si) && k < len(sj); k++ { + if si[k] < sj[k] { + return true + } + if si[k] > sj[k] { + return false + } + } + if k < len(sj) { + return true + } + return false +} + +// HasCommonPrefix determines if any sequence in the DoubleArray is a prefix of the given sequence. +func (da *DoubleArray) HasCommonPrefix(seq []string) bool { + if len(da.Base) == 0 { + return false + } + + var i int + for _, t := range seq { + code, ok := da.Encoding[t] + if !ok { + break + } + j := da.Base[i] + code + if len(da.Check) <= j || da.Check[j] != i+1 { + break + } + i = j + } + j := da.Base[i] + len(da.Encoding) + if len(da.Check) <= j || da.Check[j] != i+1 { + return false + } + return true +} diff --git a/ingress/vendor/github.com/jonboulle/clockwork/.travis.yml b/ingress/vendor/github.com/jonboulle/clockwork/.travis.yml deleted file mode 100644 index 6a363c70f8..0000000000 --- a/ingress/vendor/github.com/jonboulle/clockwork/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: go -go: - - 1.3 diff --git a/ingress/vendor/github.com/jonboulle/clockwork/README.md b/ingress/vendor/github.com/jonboulle/clockwork/README.md index d43a6c799a..236c86a244 100644 --- a/ingress/vendor/github.com/jonboulle/clockwork/README.md +++ b/ingress/vendor/github.com/jonboulle/clockwork/README.md @@ -1,9 +1,6 @@ clockwork ========= -[![Build Status](https://travis-ci.org/jonboulle/clockwork.png?branch=master)](https://travis-ci.org/jonboulle/clockwork) -[![godoc](https://godoc.org/github.com/jonboulle/clockwork?status.svg)](http://godoc.org/github.com/jonboulle/clockwork) - a simple fake clock for golang # Usage @@ -58,4 +55,4 @@ See [example_test.go](example_test.go) for a full example. # Credits -clockwork is inspired by @wickman's [threaded fake clock](https://gist.github.com/wickman/3840816), and the [Golang playground](http://blog.golang.org/playground#Faking time) +Inspired by @wickman's [threaded fake clock](https://gist.github.com/wickman/3840816), and the [Golang playground](http://blog.golang.org/playground#Faking time) diff --git a/ingress/vendor/github.com/jonboulle/clockwork/clockwork.go b/ingress/vendor/github.com/jonboulle/clockwork/clockwork.go index 1f1045bc0d..4b6918b522 100644 --- a/ingress/vendor/github.com/jonboulle/clockwork/clockwork.go +++ b/ingress/vendor/github.com/jonboulle/clockwork/clockwork.go @@ -36,9 +36,6 @@ func NewRealClock() Clock { func NewFakeClock() FakeClock { return &fakeClock{ l: sync.RWMutex{}, - - // use a fixture that does not fulfill Time.IsZero() - time: time.Date(1900, time.January, 1, 0, 0, 0, 0, time.UTC), } } diff --git a/ingress/vendor/github.com/opencontainers/runc/NOTICE b/ingress/vendor/github.com/opencontainers/runc/NOTICE deleted file mode 100644 index 5c97abce4b..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/NOTICE +++ /dev/null @@ -1,17 +0,0 @@ -runc - -Copyright 2012-2015 Docker, Inc. - -This product includes software developed at Docker, Inc. (http://www.docker.com). - -The following is courtesy of our legal counsel: - - -Use and transfer of Docker may be subject to certain restrictions by the -United States and other governments. -It is your responsibility to ensure that your use and/or transfer does not -violate applicable laws. - -For more information, please see http://www.bis.doc.gov - -See also http://www.apache.org/dev/crypto.html and/or seek legal counsel. diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups.go deleted file mode 100644 index 274ab47dd8..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups.go +++ /dev/null @@ -1,64 +0,0 @@ -// +build linux - -package cgroups - -import ( - "fmt" - - "github.com/opencontainers/runc/libcontainer/configs" -) - -type Manager interface { - // Applies cgroup configuration to the process with the specified pid - Apply(pid int) error - - // Returns the PIDs inside the cgroup set - GetPids() ([]int, error) - - // Returns the PIDs inside the cgroup set & all sub-cgroups - GetAllPids() ([]int, error) - - // Returns statistics for the cgroup set - GetStats() (*Stats, error) - - // Toggles the freezer cgroup according with specified state - Freeze(state configs.FreezerState) error - - // Destroys the cgroup set - Destroy() error - - // NewCgroupManager() and LoadCgroupManager() require following attributes: - // Paths map[string]string - // Cgroups *cgroups.Cgroup - // Paths maps cgroup subsystem to path at which it is mounted. - // Cgroups specifies specific cgroup settings for the various subsystems - - // Returns cgroup paths to save in a state file and to be able to - // restore the object later. - GetPaths() map[string]string - - // Set the cgroup as configured. - Set(container *configs.Config) error -} - -type NotFoundError struct { - Subsystem string -} - -func (e *NotFoundError) Error() string { - return fmt.Sprintf("mountpoint for %s not found", e.Subsystem) -} - -func NewNotFoundError(sub string) error { - return &NotFoundError{ - Subsystem: sub, - } -} - -func IsNotFound(err error) bool { - if err == nil { - return false - } - _, ok := err.(*NotFoundError) - return ok -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups_unsupported.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups_unsupported.go deleted file mode 100644 index 278d507e28..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups_unsupported.go +++ /dev/null @@ -1,3 +0,0 @@ -// +build !linux - -package cgroups diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/apply_raw.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/apply_raw.go deleted file mode 100644 index 633ab04270..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/apply_raw.go +++ /dev/null @@ -1,402 +0,0 @@ -// +build linux - -package fs - -import ( - "errors" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strconv" - "sync" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" - libcontainerUtils "github.com/opencontainers/runc/libcontainer/utils" -) - -var ( - subsystems = subsystemSet{ - &CpusetGroup{}, - &DevicesGroup{}, - &MemoryGroup{}, - &CpuGroup{}, - &CpuacctGroup{}, - &PidsGroup{}, - &BlkioGroup{}, - &HugetlbGroup{}, - &NetClsGroup{}, - &NetPrioGroup{}, - &PerfEventGroup{}, - &FreezerGroup{}, - &NameGroup{GroupName: "name=systemd", Join: true}, - } - CgroupProcesses = "cgroup.procs" - HugePageSizes, _ = cgroups.GetHugePageSize() -) - -var errSubsystemDoesNotExist = errors.New("cgroup: subsystem does not exist") - -type subsystemSet []subsystem - -func (s subsystemSet) Get(name string) (subsystem, error) { - for _, ss := range s { - if ss.Name() == name { - return ss, nil - } - } - return nil, errSubsystemDoesNotExist -} - -type subsystem interface { - // Name returns the name of the subsystem. - Name() string - // Returns the stats, as 'stats', corresponding to the cgroup under 'path'. - GetStats(path string, stats *cgroups.Stats) error - // Removes the cgroup represented by 'cgroupData'. - Remove(*cgroupData) error - // Creates and joins the cgroup represented by 'cgroupData'. - Apply(*cgroupData) error - // Set the cgroup represented by cgroup. - Set(path string, cgroup *configs.Cgroup) error -} - -type Manager struct { - mu sync.Mutex - Cgroups *configs.Cgroup - Paths map[string]string -} - -// The absolute path to the root of the cgroup hierarchies. -var cgroupRootLock sync.Mutex -var cgroupRoot string - -// Gets the cgroupRoot. -func getCgroupRoot() (string, error) { - cgroupRootLock.Lock() - defer cgroupRootLock.Unlock() - - if cgroupRoot != "" { - return cgroupRoot, nil - } - - root, err := cgroups.FindCgroupMountpointDir() - if err != nil { - return "", err - } - - if _, err := os.Stat(root); err != nil { - return "", err - } - - cgroupRoot = root - return cgroupRoot, nil -} - -type cgroupData struct { - root string - innerPath string - config *configs.Cgroup - pid int -} - -func (m *Manager) Apply(pid int) (err error) { - if m.Cgroups == nil { - return nil - } - - var c = m.Cgroups - - d, err := getCgroupData(m.Cgroups, pid) - if err != nil { - return err - } - - if c.Paths != nil { - paths := make(map[string]string) - for name, path := range c.Paths { - _, err := d.path(name) - if err != nil { - if cgroups.IsNotFound(err) { - continue - } - return err - } - paths[name] = path - } - m.Paths = paths - return cgroups.EnterPid(m.Paths, pid) - } - - m.mu.Lock() - defer m.mu.Unlock() - paths := make(map[string]string) - for _, sys := range subsystems { - if err := sys.Apply(d); err != nil { - return err - } - // TODO: Apply should, ideally, be reentrant or be broken up into a separate - // create and join phase so that the cgroup hierarchy for a container can be - // created then join consists of writing the process pids to cgroup.procs - p, err := d.path(sys.Name()) - if err != nil { - // The non-presence of the devices subsystem is - // considered fatal for security reasons. - if cgroups.IsNotFound(err) && sys.Name() != "devices" { - continue - } - return err - } - paths[sys.Name()] = p - } - m.Paths = paths - return nil -} - -func (m *Manager) Destroy() error { - if m.Cgroups.Paths != nil { - return nil - } - m.mu.Lock() - defer m.mu.Unlock() - if err := cgroups.RemovePaths(m.Paths); err != nil { - return err - } - m.Paths = make(map[string]string) - return nil -} - -func (m *Manager) GetPaths() map[string]string { - m.mu.Lock() - paths := m.Paths - m.mu.Unlock() - return paths -} - -func (m *Manager) GetStats() (*cgroups.Stats, error) { - m.mu.Lock() - defer m.mu.Unlock() - stats := cgroups.NewStats() - for name, path := range m.Paths { - sys, err := subsystems.Get(name) - if err == errSubsystemDoesNotExist || !cgroups.PathExists(path) { - continue - } - if err := sys.GetStats(path, stats); err != nil { - return nil, err - } - } - return stats, nil -} - -func (m *Manager) Set(container *configs.Config) error { - for _, sys := range subsystems { - // Generate fake cgroup data. - d, err := getCgroupData(container.Cgroups, -1) - if err != nil { - return err - } - // Get the path, but don't error out if the cgroup wasn't found. - path, err := d.path(sys.Name()) - if err != nil && !cgroups.IsNotFound(err) { - return err - } - - if err := sys.Set(path, container.Cgroups); err != nil { - return err - } - } - - if m.Paths["cpu"] != "" { - if err := CheckCpushares(m.Paths["cpu"], container.Cgroups.Resources.CpuShares); err != nil { - return err - } - } - return nil -} - -// Freeze toggles the container's freezer cgroup depending on the state -// provided -func (m *Manager) Freeze(state configs.FreezerState) error { - d, err := getCgroupData(m.Cgroups, 0) - if err != nil { - return err - } - dir, err := d.path("freezer") - if err != nil { - return err - } - prevState := m.Cgroups.Resources.Freezer - m.Cgroups.Resources.Freezer = state - freezer, err := subsystems.Get("freezer") - if err != nil { - return err - } - err = freezer.Set(dir, m.Cgroups) - if err != nil { - m.Cgroups.Resources.Freezer = prevState - return err - } - return nil -} - -func (m *Manager) GetPids() ([]int, error) { - dir, err := getCgroupPath(m.Cgroups) - if err != nil { - return nil, err - } - return cgroups.GetPids(dir) -} - -func (m *Manager) GetAllPids() ([]int, error) { - dir, err := getCgroupPath(m.Cgroups) - if err != nil { - return nil, err - } - return cgroups.GetAllPids(dir) -} - -func getCgroupPath(c *configs.Cgroup) (string, error) { - d, err := getCgroupData(c, 0) - if err != nil { - return "", err - } - - return d.path("devices") -} - -func getCgroupData(c *configs.Cgroup, pid int) (*cgroupData, error) { - root, err := getCgroupRoot() - if err != nil { - return nil, err - } - - if (c.Name != "" || c.Parent != "") && c.Path != "" { - return nil, fmt.Errorf("cgroup: either Path or Name and Parent should be used") - } - - // XXX: Do not remove this code. Path safety is important! -- cyphar - cgPath := libcontainerUtils.CleanPath(c.Path) - cgParent := libcontainerUtils.CleanPath(c.Parent) - cgName := libcontainerUtils.CleanPath(c.Name) - - innerPath := cgPath - if innerPath == "" { - innerPath = filepath.Join(cgParent, cgName) - } - - return &cgroupData{ - root: root, - innerPath: innerPath, - config: c, - pid: pid, - }, nil -} - -func (raw *cgroupData) parentPath(subsystem, mountpoint, root string) (string, error) { - // Use GetThisCgroupDir instead of GetInitCgroupDir, because the creating - // process could in container and shared pid namespace with host, and - // /proc/1/cgroup could point to whole other world of cgroups. - initPath, err := cgroups.GetThisCgroupDir(subsystem) - if err != nil { - return "", err - } - // This is needed for nested containers, because in /proc/self/cgroup we - // see pathes from host, which don't exist in container. - relDir, err := filepath.Rel(root, initPath) - if err != nil { - return "", err - } - return filepath.Join(mountpoint, relDir), nil -} - -func (raw *cgroupData) path(subsystem string) (string, error) { - mnt, root, err := cgroups.FindCgroupMountpointAndRoot(subsystem) - // If we didn't mount the subsystem, there is no point we make the path. - if err != nil { - return "", err - } - - // If the cgroup name/path is absolute do not look relative to the cgroup of the init process. - if filepath.IsAbs(raw.innerPath) { - // Sometimes subsystems can be mounted togethger as 'cpu,cpuacct'. - return filepath.Join(raw.root, filepath.Base(mnt), raw.innerPath), nil - } - - parentPath, err := raw.parentPath(subsystem, mnt, root) - if err != nil { - return "", err - } - - return filepath.Join(parentPath, raw.innerPath), nil -} - -func (raw *cgroupData) join(subsystem string) (string, error) { - path, err := raw.path(subsystem) - if err != nil { - return "", err - } - if err := os.MkdirAll(path, 0755); err != nil { - return "", err - } - if err := writeFile(path, CgroupProcesses, strconv.Itoa(raw.pid)); err != nil { - return "", err - } - return path, nil -} - -func writeFile(dir, file, data string) error { - // Normally dir should not be empty, one case is that cgroup subsystem - // is not mounted, we will get empty dir, and we want it fail here. - if dir == "" { - return fmt.Errorf("no such directory for %s", file) - } - if err := ioutil.WriteFile(filepath.Join(dir, file), []byte(data), 0700); err != nil { - return fmt.Errorf("failed to write %v to %v: %v", data, file, err) - } - return nil -} - -func readFile(dir, file string) (string, error) { - data, err := ioutil.ReadFile(filepath.Join(dir, file)) - return string(data), err -} - -func removePath(p string, err error) error { - if err != nil { - return err - } - if p != "" { - return os.RemoveAll(p) - } - return nil -} - -func CheckCpushares(path string, c int64) error { - var cpuShares int64 - - if c == 0 { - return nil - } - - fd, err := os.Open(filepath.Join(path, "cpu.shares")) - if err != nil { - return err - } - defer fd.Close() - - _, err = fmt.Fscanf(fd, "%d", &cpuShares) - if err != nil && err != io.EOF { - return err - } - - if c > cpuShares { - return fmt.Errorf("The maximum allowed cpu-shares is %d", cpuShares) - } else if c < cpuShares { - return fmt.Errorf("The minimum allowed cpu-shares is %d", cpuShares) - } - - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/blkio.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/blkio.go deleted file mode 100644 index a142cb991d..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/blkio.go +++ /dev/null @@ -1,237 +0,0 @@ -// +build linux - -package fs - -import ( - "bufio" - "fmt" - "os" - "path/filepath" - "strconv" - "strings" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type BlkioGroup struct { -} - -func (s *BlkioGroup) Name() string { - return "blkio" -} - -func (s *BlkioGroup) Apply(d *cgroupData) error { - _, err := d.join("blkio") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *BlkioGroup) Set(path string, cgroup *configs.Cgroup) error { - if cgroup.Resources.BlkioWeight != 0 { - if err := writeFile(path, "blkio.weight", strconv.FormatUint(uint64(cgroup.Resources.BlkioWeight), 10)); err != nil { - return err - } - } - - if cgroup.Resources.BlkioLeafWeight != 0 { - if err := writeFile(path, "blkio.leaf_weight", strconv.FormatUint(uint64(cgroup.Resources.BlkioLeafWeight), 10)); err != nil { - return err - } - } - for _, wd := range cgroup.Resources.BlkioWeightDevice { - if err := writeFile(path, "blkio.weight_device", wd.WeightString()); err != nil { - return err - } - if err := writeFile(path, "blkio.leaf_weight_device", wd.LeafWeightString()); err != nil { - return err - } - } - for _, td := range cgroup.Resources.BlkioThrottleReadBpsDevice { - if err := writeFile(path, "blkio.throttle.read_bps_device", td.String()); err != nil { - return err - } - } - for _, td := range cgroup.Resources.BlkioThrottleWriteBpsDevice { - if err := writeFile(path, "blkio.throttle.write_bps_device", td.String()); err != nil { - return err - } - } - for _, td := range cgroup.Resources.BlkioThrottleReadIOPSDevice { - if err := writeFile(path, "blkio.throttle.read_iops_device", td.String()); err != nil { - return err - } - } - for _, td := range cgroup.Resources.BlkioThrottleWriteIOPSDevice { - if err := writeFile(path, "blkio.throttle.write_iops_device", td.String()); err != nil { - return err - } - } - - return nil -} - -func (s *BlkioGroup) Remove(d *cgroupData) error { - return removePath(d.path("blkio")) -} - -/* -examples: - - blkio.sectors - 8:0 6792 - - blkio.io_service_bytes - 8:0 Read 1282048 - 8:0 Write 2195456 - 8:0 Sync 2195456 - 8:0 Async 1282048 - 8:0 Total 3477504 - Total 3477504 - - blkio.io_serviced - 8:0 Read 124 - 8:0 Write 104 - 8:0 Sync 104 - 8:0 Async 124 - 8:0 Total 228 - Total 228 - - blkio.io_queued - 8:0 Read 0 - 8:0 Write 0 - 8:0 Sync 0 - 8:0 Async 0 - 8:0 Total 0 - Total 0 -*/ - -func splitBlkioStatLine(r rune) bool { - return r == ' ' || r == ':' -} - -func getBlkioStat(path string) ([]cgroups.BlkioStatEntry, error) { - var blkioStats []cgroups.BlkioStatEntry - f, err := os.Open(path) - if err != nil { - if os.IsNotExist(err) { - return blkioStats, nil - } - return nil, err - } - defer f.Close() - - sc := bufio.NewScanner(f) - for sc.Scan() { - // format: dev type amount - fields := strings.FieldsFunc(sc.Text(), splitBlkioStatLine) - if len(fields) < 3 { - if len(fields) == 2 && fields[0] == "Total" { - // skip total line - continue - } else { - return nil, fmt.Errorf("Invalid line found while parsing %s: %s", path, sc.Text()) - } - } - - v, err := strconv.ParseUint(fields[0], 10, 64) - if err != nil { - return nil, err - } - major := v - - v, err = strconv.ParseUint(fields[1], 10, 64) - if err != nil { - return nil, err - } - minor := v - - op := "" - valueField := 2 - if len(fields) == 4 { - op = fields[2] - valueField = 3 - } - v, err = strconv.ParseUint(fields[valueField], 10, 64) - if err != nil { - return nil, err - } - blkioStats = append(blkioStats, cgroups.BlkioStatEntry{Major: major, Minor: minor, Op: op, Value: v}) - } - - return blkioStats, nil -} - -func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error { - // Try to read CFQ stats available on all CFQ enabled kernels first - if blkioStats, err := getBlkioStat(filepath.Join(path, "blkio.io_serviced_recursive")); err == nil && blkioStats != nil { - return getCFQStats(path, stats) - } - return getStats(path, stats) // Use generic stats as fallback -} - -func getCFQStats(path string, stats *cgroups.Stats) error { - var blkioStats []cgroups.BlkioStatEntry - var err error - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.sectors_recursive")); err != nil { - return err - } - stats.BlkioStats.SectorsRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.io_service_bytes_recursive")); err != nil { - return err - } - stats.BlkioStats.IoServiceBytesRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.io_serviced_recursive")); err != nil { - return err - } - stats.BlkioStats.IoServicedRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.io_queued_recursive")); err != nil { - return err - } - stats.BlkioStats.IoQueuedRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.io_service_time_recursive")); err != nil { - return err - } - stats.BlkioStats.IoServiceTimeRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.io_wait_time_recursive")); err != nil { - return err - } - stats.BlkioStats.IoWaitTimeRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.io_merged_recursive")); err != nil { - return err - } - stats.BlkioStats.IoMergedRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.time_recursive")); err != nil { - return err - } - stats.BlkioStats.IoTimeRecursive = blkioStats - - return nil -} - -func getStats(path string, stats *cgroups.Stats) error { - var blkioStats []cgroups.BlkioStatEntry - var err error - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.throttle.io_service_bytes")); err != nil { - return err - } - stats.BlkioStats.IoServiceBytesRecursive = blkioStats - - if blkioStats, err = getBlkioStat(filepath.Join(path, "blkio.throttle.io_serviced")); err != nil { - return err - } - stats.BlkioStats.IoServicedRecursive = blkioStats - - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpu.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpu.go deleted file mode 100644 index a4ef28a60f..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpu.go +++ /dev/null @@ -1,94 +0,0 @@ -// +build linux - -package fs - -import ( - "bufio" - "os" - "path/filepath" - "strconv" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type CpuGroup struct { -} - -func (s *CpuGroup) Name() string { - return "cpu" -} - -func (s *CpuGroup) Apply(d *cgroupData) error { - // We always want to join the cpu group, to allow fair cpu scheduling - // on a container basis - _, err := d.join("cpu") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *CpuGroup) Set(path string, cgroup *configs.Cgroup) error { - if cgroup.Resources.CpuShares != 0 { - if err := writeFile(path, "cpu.shares", strconv.FormatInt(cgroup.Resources.CpuShares, 10)); err != nil { - return err - } - } - if cgroup.Resources.CpuPeriod != 0 { - if err := writeFile(path, "cpu.cfs_period_us", strconv.FormatInt(cgroup.Resources.CpuPeriod, 10)); err != nil { - return err - } - } - if cgroup.Resources.CpuQuota != 0 { - if err := writeFile(path, "cpu.cfs_quota_us", strconv.FormatInt(cgroup.Resources.CpuQuota, 10)); err != nil { - return err - } - } - if cgroup.Resources.CpuRtPeriod != 0 { - if err := writeFile(path, "cpu.rt_period_us", strconv.FormatInt(cgroup.Resources.CpuRtPeriod, 10)); err != nil { - return err - } - } - if cgroup.Resources.CpuRtRuntime != 0 { - if err := writeFile(path, "cpu.rt_runtime_us", strconv.FormatInt(cgroup.Resources.CpuRtRuntime, 10)); err != nil { - return err - } - } - - return nil -} - -func (s *CpuGroup) Remove(d *cgroupData) error { - return removePath(d.path("cpu")) -} - -func (s *CpuGroup) GetStats(path string, stats *cgroups.Stats) error { - f, err := os.Open(filepath.Join(path, "cpu.stat")) - if err != nil { - if os.IsNotExist(err) { - return nil - } - return err - } - defer f.Close() - - sc := bufio.NewScanner(f) - for sc.Scan() { - t, v, err := getCgroupParamKeyValue(sc.Text()) - if err != nil { - return err - } - switch t { - case "nr_periods": - stats.CpuStats.ThrottlingData.Periods = v - - case "nr_throttled": - stats.CpuStats.ThrottlingData.ThrottledPeriods = v - - case "throttled_time": - stats.CpuStats.ThrottlingData.ThrottledTime = v - } - } - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuacct.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuacct.go deleted file mode 100644 index 53afbaddf1..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuacct.go +++ /dev/null @@ -1,121 +0,0 @@ -// +build linux - -package fs - -import ( - "fmt" - "io/ioutil" - "path/filepath" - "strconv" - "strings" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" - "github.com/opencontainers/runc/libcontainer/system" -) - -const ( - cgroupCpuacctStat = "cpuacct.stat" - nanosecondsInSecond = 1000000000 -) - -var clockTicks = uint64(system.GetClockTicks()) - -type CpuacctGroup struct { -} - -func (s *CpuacctGroup) Name() string { - return "cpuacct" -} - -func (s *CpuacctGroup) Apply(d *cgroupData) error { - // we just want to join this group even though we don't set anything - if _, err := d.join("cpuacct"); err != nil && !cgroups.IsNotFound(err) { - return err - } - - return nil -} - -func (s *CpuacctGroup) Set(path string, cgroup *configs.Cgroup) error { - return nil -} - -func (s *CpuacctGroup) Remove(d *cgroupData) error { - return removePath(d.path("cpuacct")) -} - -func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error { - userModeUsage, kernelModeUsage, err := getCpuUsageBreakdown(path) - if err != nil { - return err - } - - totalUsage, err := getCgroupParamUint(path, "cpuacct.usage") - if err != nil { - return err - } - - percpuUsage, err := getPercpuUsage(path) - if err != nil { - return err - } - - stats.CpuStats.CpuUsage.TotalUsage = totalUsage - stats.CpuStats.CpuUsage.PercpuUsage = percpuUsage - stats.CpuStats.CpuUsage.UsageInUsermode = userModeUsage - stats.CpuStats.CpuUsage.UsageInKernelmode = kernelModeUsage - return nil -} - -// Returns user and kernel usage breakdown in nanoseconds. -func getCpuUsageBreakdown(path string) (uint64, uint64, error) { - userModeUsage := uint64(0) - kernelModeUsage := uint64(0) - const ( - userField = "user" - systemField = "system" - ) - - // Expected format: - // user - // system - data, err := ioutil.ReadFile(filepath.Join(path, cgroupCpuacctStat)) - if err != nil { - return 0, 0, err - } - fields := strings.Fields(string(data)) - if len(fields) != 4 { - return 0, 0, fmt.Errorf("failure - %s is expected to have 4 fields", filepath.Join(path, cgroupCpuacctStat)) - } - if fields[0] != userField { - return 0, 0, fmt.Errorf("unexpected field %q in %q, expected %q", fields[0], cgroupCpuacctStat, userField) - } - if fields[2] != systemField { - return 0, 0, fmt.Errorf("unexpected field %q in %q, expected %q", fields[2], cgroupCpuacctStat, systemField) - } - if userModeUsage, err = strconv.ParseUint(fields[1], 10, 64); err != nil { - return 0, 0, err - } - if kernelModeUsage, err = strconv.ParseUint(fields[3], 10, 64); err != nil { - return 0, 0, err - } - - return (userModeUsage * nanosecondsInSecond) / clockTicks, (kernelModeUsage * nanosecondsInSecond) / clockTicks, nil -} - -func getPercpuUsage(path string) ([]uint64, error) { - percpuUsage := []uint64{} - data, err := ioutil.ReadFile(filepath.Join(path, "cpuacct.usage_percpu")) - if err != nil { - return percpuUsage, err - } - for _, value := range strings.Fields(string(data)) { - value, err := strconv.ParseUint(value, 10, 64) - if err != nil { - return percpuUsage, fmt.Errorf("Unable to convert param value to uint64: %s", err) - } - percpuUsage = append(percpuUsage, value) - } - return percpuUsage, nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuset.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuset.go deleted file mode 100644 index cbe62bd983..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuset.go +++ /dev/null @@ -1,139 +0,0 @@ -// +build linux - -package fs - -import ( - "bytes" - "fmt" - "io/ioutil" - "os" - "path/filepath" - "strconv" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" - libcontainerUtils "github.com/opencontainers/runc/libcontainer/utils" -) - -type CpusetGroup struct { -} - -func (s *CpusetGroup) Name() string { - return "cpuset" -} - -func (s *CpusetGroup) Apply(d *cgroupData) error { - dir, err := d.path("cpuset") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return s.ApplyDir(dir, d.config, d.pid) -} - -func (s *CpusetGroup) Set(path string, cgroup *configs.Cgroup) error { - if cgroup.Resources.CpusetCpus != "" { - if err := writeFile(path, "cpuset.cpus", cgroup.Resources.CpusetCpus); err != nil { - return err - } - } - if cgroup.Resources.CpusetMems != "" { - if err := writeFile(path, "cpuset.mems", cgroup.Resources.CpusetMems); err != nil { - return err - } - } - return nil -} - -func (s *CpusetGroup) Remove(d *cgroupData) error { - return removePath(d.path("cpuset")) -} - -func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} - -func (s *CpusetGroup) ApplyDir(dir string, cgroup *configs.Cgroup, pid int) error { - // This might happen if we have no cpuset cgroup mounted. - // Just do nothing and don't fail. - if dir == "" { - return nil - } - root, err := getCgroupRoot() - if err != nil { - return err - } - if err := s.ensureParent(dir, root); err != nil { - return err - } - // because we are not using d.join we need to place the pid into the procs file - // unlike the other subsystems - if err := writeFile(dir, "cgroup.procs", strconv.Itoa(pid)); err != nil { - return err - } - - return nil -} - -func (s *CpusetGroup) getSubsystemSettings(parent string) (cpus []byte, mems []byte, err error) { - if cpus, err = ioutil.ReadFile(filepath.Join(parent, "cpuset.cpus")); err != nil { - return - } - if mems, err = ioutil.ReadFile(filepath.Join(parent, "cpuset.mems")); err != nil { - return - } - return cpus, mems, nil -} - -// ensureParent makes sure that the parent directory of current is created -// and populated with the proper cpus and mems files copied from -// it's parent. -func (s *CpusetGroup) ensureParent(current, root string) error { - parent := filepath.Dir(current) - if libcontainerUtils.CleanPath(parent) == root { - return nil - } - // Avoid infinite recursion. - if parent == current { - return fmt.Errorf("cpuset: cgroup parent path outside cgroup root") - } - if err := s.ensureParent(parent, root); err != nil { - return err - } - if err := os.MkdirAll(current, 0755); err != nil { - return err - } - return s.copyIfNeeded(current, parent) -} - -// copyIfNeeded copies the cpuset.cpus and cpuset.mems from the parent -// directory to the current directory if the file's contents are 0 -func (s *CpusetGroup) copyIfNeeded(current, parent string) error { - var ( - err error - currentCpus, currentMems []byte - parentCpus, parentMems []byte - ) - - if currentCpus, currentMems, err = s.getSubsystemSettings(current); err != nil { - return err - } - if parentCpus, parentMems, err = s.getSubsystemSettings(parent); err != nil { - return err - } - - if s.isEmpty(currentCpus) { - if err := writeFile(current, "cpuset.cpus", string(parentCpus)); err != nil { - return err - } - } - if s.isEmpty(currentMems) { - if err := writeFile(current, "cpuset.mems", string(parentMems)); err != nil { - return err - } - } - return nil -} - -func (s *CpusetGroup) isEmpty(b []byte) bool { - return len(bytes.Trim(b, "\n")) == 0 -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/devices.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/devices.go deleted file mode 100644 index 5f78331094..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/devices.go +++ /dev/null @@ -1,78 +0,0 @@ -// +build linux - -package fs - -import ( - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" - "github.com/opencontainers/runc/libcontainer/system" -) - -type DevicesGroup struct { -} - -func (s *DevicesGroup) Name() string { - return "devices" -} - -func (s *DevicesGroup) Apply(d *cgroupData) error { - _, err := d.join("devices") - if err != nil { - // We will return error even it's `not found` error, devices - // cgroup is hard requirement for container's security. - return err - } - return nil -} - -func (s *DevicesGroup) Set(path string, cgroup *configs.Cgroup) error { - if system.RunningInUserNS() { - return nil - } - - devices := cgroup.Resources.Devices - if len(devices) > 0 { - for _, dev := range devices { - file := "devices.deny" - if dev.Allow { - file = "devices.allow" - } - if err := writeFile(path, file, dev.CgroupString()); err != nil { - return err - } - } - return nil - } - if !cgroup.Resources.AllowAllDevices { - if err := writeFile(path, "devices.deny", "a"); err != nil { - return err - } - - for _, dev := range cgroup.Resources.AllowedDevices { - if err := writeFile(path, "devices.allow", dev.CgroupString()); err != nil { - return err - } - } - return nil - } - - if err := writeFile(path, "devices.allow", "a"); err != nil { - return err - } - - for _, dev := range cgroup.Resources.DeniedDevices { - if err := writeFile(path, "devices.deny", dev.CgroupString()); err != nil { - return err - } - } - - return nil -} - -func (s *DevicesGroup) Remove(d *cgroupData) error { - return removePath(d.path("devices")) -} - -func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/freezer.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/freezer.go deleted file mode 100644 index e70dfe3b95..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/freezer.go +++ /dev/null @@ -1,61 +0,0 @@ -// +build linux - -package fs - -import ( - "fmt" - "strings" - "time" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type FreezerGroup struct { -} - -func (s *FreezerGroup) Name() string { - return "freezer" -} - -func (s *FreezerGroup) Apply(d *cgroupData) error { - _, err := d.join("freezer") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *FreezerGroup) Set(path string, cgroup *configs.Cgroup) error { - switch cgroup.Resources.Freezer { - case configs.Frozen, configs.Thawed: - if err := writeFile(path, "freezer.state", string(cgroup.Resources.Freezer)); err != nil { - return err - } - - for { - state, err := readFile(path, "freezer.state") - if err != nil { - return err - } - if strings.TrimSpace(state) == string(cgroup.Resources.Freezer) { - break - } - time.Sleep(1 * time.Millisecond) - } - case configs.Undefined: - return nil - default: - return fmt.Errorf("Invalid argument '%s' to freezer.state", string(cgroup.Resources.Freezer)) - } - - return nil -} - -func (s *FreezerGroup) Remove(d *cgroupData) error { - return removePath(d.path("freezer")) -} - -func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs_unsupported.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs_unsupported.go deleted file mode 100644 index 3ef9e03158..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs_unsupported.go +++ /dev/null @@ -1,3 +0,0 @@ -// +build !linux - -package fs diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/hugetlb.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/hugetlb.go deleted file mode 100644 index 2f9727719d..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/hugetlb.go +++ /dev/null @@ -1,71 +0,0 @@ -// +build linux - -package fs - -import ( - "fmt" - "strconv" - "strings" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type HugetlbGroup struct { -} - -func (s *HugetlbGroup) Name() string { - return "hugetlb" -} - -func (s *HugetlbGroup) Apply(d *cgroupData) error { - _, err := d.join("hugetlb") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *HugetlbGroup) Set(path string, cgroup *configs.Cgroup) error { - for _, hugetlb := range cgroup.Resources.HugetlbLimit { - if err := writeFile(path, strings.Join([]string{"hugetlb", hugetlb.Pagesize, "limit_in_bytes"}, "."), strconv.FormatUint(hugetlb.Limit, 10)); err != nil { - return err - } - } - - return nil -} - -func (s *HugetlbGroup) Remove(d *cgroupData) error { - return removePath(d.path("hugetlb")) -} - -func (s *HugetlbGroup) GetStats(path string, stats *cgroups.Stats) error { - hugetlbStats := cgroups.HugetlbStats{} - for _, pageSize := range HugePageSizes { - usage := strings.Join([]string{"hugetlb", pageSize, "usage_in_bytes"}, ".") - value, err := getCgroupParamUint(path, usage) - if err != nil { - return fmt.Errorf("failed to parse %s - %v", usage, err) - } - hugetlbStats.Usage = value - - maxUsage := strings.Join([]string{"hugetlb", pageSize, "max_usage_in_bytes"}, ".") - value, err = getCgroupParamUint(path, maxUsage) - if err != nil { - return fmt.Errorf("failed to parse %s - %v", maxUsage, err) - } - hugetlbStats.MaxUsage = value - - failcnt := strings.Join([]string{"hugetlb", pageSize, "failcnt"}, ".") - value, err = getCgroupParamUint(path, failcnt) - if err != nil { - return fmt.Errorf("failed to parse %s - %v", failcnt, err) - } - hugetlbStats.Failcnt = value - - stats.HugetlbStats[pageSize] = hugetlbStats - } - - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/memory.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/memory.go deleted file mode 100644 index b837128291..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/memory.go +++ /dev/null @@ -1,291 +0,0 @@ -// +build linux - -package fs - -import ( - "bufio" - "fmt" - "os" - "path/filepath" - "strconv" - "strings" - "time" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type MemoryGroup struct { -} - -func (s *MemoryGroup) Name() string { - return "memory" -} - -func (s *MemoryGroup) Apply(d *cgroupData) (err error) { - path, err := d.path("memory") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - // reset error. - err = nil - if path == "" { - // Invalid input. - return fmt.Errorf("invalid path for memory cgroups: %+v", d) - } - defer func() { - if err != nil { - os.RemoveAll(path) - } - }() - if !cgroups.PathExists(path) { - if err = os.MkdirAll(path, 0755); err != nil { - return err - } - } - if memoryAssigned(d.config) { - // We have to set kernel memory here, as we can't change it once - // processes have been attached to the cgroup. - if err = s.SetKernelMemory(path, d.config); err != nil { - return err - } - } - // We need to join memory cgroup after set memory limits, because - // kmem.limit_in_bytes can only be set when the cgroup is empty. - if _, jerr := d.join("memory"); jerr != nil && !cgroups.IsNotFound(jerr) { - err = jerr - return err - } - return nil -} - -func getModifyTime(path string) (time.Time, error) { - stat, err := os.Stat(path) - if err != nil { - return time.Time{}, fmt.Errorf("failed to get memory cgroups creation time: %v", err) - } - return stat.ModTime(), nil -} - -func (s *MemoryGroup) SetKernelMemory(path string, cgroup *configs.Cgroup) error { - // This has to be done separately because it has special - // constraints (it can only be initialized before setting up a - // hierarchy or adding a task to the cgroups. However, if - // sucessfully initialized, it can be updated anytime afterwards) - if cgroup.Resources.KernelMemory != 0 { - // Is kmem.limit_in_bytes already set? - // memory.kmem.max_usage_in_bytes is a read-only file. Use it to get cgroups creation time. - kmemCreationTime, err := getModifyTime(filepath.Join(path, "memory.kmem.max_usage_in_bytes")) - if err != nil { - return err - } - kmemLimitsUpdateTime, err := getModifyTime(filepath.Join(path, "memory.kmem.limit_in_bytes")) - if err != nil { - return err - } - // kmem.limit_in_bytes has already been set if its update time is after that of creation time. - // We use `!=` op instead of `>` because updates are losing precision compared to creation. - kmemInitialized := !kmemLimitsUpdateTime.Equal(kmemCreationTime) - if !kmemInitialized { - // If there's already tasks in the cgroup, we can't change the limit either - tasks, err := getCgroupParamString(path, "tasks") - if err != nil { - return err - } - if tasks != "" { - return fmt.Errorf("cannot set kmem.limit_in_bytes after task have joined this cgroup") - } - } - if err := writeFile(path, "memory.kmem.limit_in_bytes", strconv.FormatInt(cgroup.Resources.KernelMemory, 10)); err != nil { - return err - } - } - return nil -} - -func setMemoryAndSwap(path string, cgroup *configs.Cgroup) error { - // When memory and swap memory are both set, we need to handle the cases - // for updating container. - if cgroup.Resources.Memory != 0 && cgroup.Resources.MemorySwap > 0 { - memoryUsage, err := getMemoryData(path, "") - if err != nil { - return err - } - - // When update memory limit, we should adapt the write sequence - // for memory and swap memory, so it won't fail because the new - // value and the old value don't fit kernel's validation. - if memoryUsage.Limit < uint64(cgroup.Resources.MemorySwap) { - if err := writeFile(path, "memory.memsw.limit_in_bytes", strconv.FormatInt(cgroup.Resources.MemorySwap, 10)); err != nil { - return err - } - if err := writeFile(path, "memory.limit_in_bytes", strconv.FormatInt(cgroup.Resources.Memory, 10)); err != nil { - return err - } - } else { - if err := writeFile(path, "memory.limit_in_bytes", strconv.FormatInt(cgroup.Resources.Memory, 10)); err != nil { - return err - } - if err := writeFile(path, "memory.memsw.limit_in_bytes", strconv.FormatInt(cgroup.Resources.MemorySwap, 10)); err != nil { - return err - } - } - } else { - if cgroup.Resources.Memory != 0 { - if err := writeFile(path, "memory.limit_in_bytes", strconv.FormatInt(cgroup.Resources.Memory, 10)); err != nil { - return err - } - } - if cgroup.Resources.MemorySwap > 0 { - if err := writeFile(path, "memory.memsw.limit_in_bytes", strconv.FormatInt(cgroup.Resources.MemorySwap, 10)); err != nil { - return err - } - } - } - - return nil -} - -func (s *MemoryGroup) Set(path string, cgroup *configs.Cgroup) error { - if err := setMemoryAndSwap(path, cgroup); err != nil { - return err - } - - if err := s.SetKernelMemory(path, cgroup); err != nil { - return err - } - - if cgroup.Resources.MemoryReservation != 0 { - if err := writeFile(path, "memory.soft_limit_in_bytes", strconv.FormatInt(cgroup.Resources.MemoryReservation, 10)); err != nil { - return err - } - } - if cgroup.Resources.KernelMemoryTCP != 0 { - if err := writeFile(path, "memory.kmem.tcp.limit_in_bytes", strconv.FormatInt(cgroup.Resources.KernelMemoryTCP, 10)); err != nil { - return err - } - } - if cgroup.Resources.OomKillDisable { - if err := writeFile(path, "memory.oom_control", "1"); err != nil { - return err - } - } - if cgroup.Resources.MemorySwappiness == nil || int64(*cgroup.Resources.MemorySwappiness) == -1 { - return nil - } else if int64(*cgroup.Resources.MemorySwappiness) >= 0 && int64(*cgroup.Resources.MemorySwappiness) <= 100 { - if err := writeFile(path, "memory.swappiness", strconv.FormatInt(*cgroup.Resources.MemorySwappiness, 10)); err != nil { - return err - } - } else { - return fmt.Errorf("invalid value:%d. valid memory swappiness range is 0-100", int64(*cgroup.Resources.MemorySwappiness)) - } - - return nil -} - -func (s *MemoryGroup) Remove(d *cgroupData) error { - return removePath(d.path("memory")) -} - -func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error { - // Set stats from memory.stat. - statsFile, err := os.Open(filepath.Join(path, "memory.stat")) - if err != nil { - if os.IsNotExist(err) { - return nil - } - return err - } - defer statsFile.Close() - - sc := bufio.NewScanner(statsFile) - for sc.Scan() { - t, v, err := getCgroupParamKeyValue(sc.Text()) - if err != nil { - return fmt.Errorf("failed to parse memory.stat (%q) - %v", sc.Text(), err) - } - stats.MemoryStats.Stats[t] = v - } - stats.MemoryStats.Cache = stats.MemoryStats.Stats["cache"] - - memoryUsage, err := getMemoryData(path, "") - if err != nil { - return err - } - stats.MemoryStats.Usage = memoryUsage - swapUsage, err := getMemoryData(path, "memsw") - if err != nil { - return err - } - stats.MemoryStats.SwapUsage = swapUsage - kernelUsage, err := getMemoryData(path, "kmem") - if err != nil { - return err - } - stats.MemoryStats.KernelUsage = kernelUsage - kernelTCPUsage, err := getMemoryData(path, "kmem.tcp") - if err != nil { - return err - } - stats.MemoryStats.KernelTCPUsage = kernelTCPUsage - - return nil -} - -func memoryAssigned(cgroup *configs.Cgroup) bool { - return cgroup.Resources.Memory != 0 || - cgroup.Resources.MemoryReservation != 0 || - cgroup.Resources.MemorySwap > 0 || - cgroup.Resources.KernelMemory > 0 || - cgroup.Resources.KernelMemoryTCP > 0 || - cgroup.Resources.OomKillDisable || - (cgroup.Resources.MemorySwappiness != nil && *cgroup.Resources.MemorySwappiness != -1) -} - -func getMemoryData(path, name string) (cgroups.MemoryData, error) { - memoryData := cgroups.MemoryData{} - - moduleName := "memory" - if name != "" { - moduleName = strings.Join([]string{"memory", name}, ".") - } - usage := strings.Join([]string{moduleName, "usage_in_bytes"}, ".") - maxUsage := strings.Join([]string{moduleName, "max_usage_in_bytes"}, ".") - failcnt := strings.Join([]string{moduleName, "failcnt"}, ".") - limit := strings.Join([]string{moduleName, "limit_in_bytes"}, ".") - - value, err := getCgroupParamUint(path, usage) - if err != nil { - if moduleName != "memory" && os.IsNotExist(err) { - return cgroups.MemoryData{}, nil - } - return cgroups.MemoryData{}, fmt.Errorf("failed to parse %s - %v", usage, err) - } - memoryData.Usage = value - value, err = getCgroupParamUint(path, maxUsage) - if err != nil { - if moduleName != "memory" && os.IsNotExist(err) { - return cgroups.MemoryData{}, nil - } - return cgroups.MemoryData{}, fmt.Errorf("failed to parse %s - %v", maxUsage, err) - } - memoryData.MaxUsage = value - value, err = getCgroupParamUint(path, failcnt) - if err != nil { - if moduleName != "memory" && os.IsNotExist(err) { - return cgroups.MemoryData{}, nil - } - return cgroups.MemoryData{}, fmt.Errorf("failed to parse %s - %v", failcnt, err) - } - memoryData.Failcnt = value - value, err = getCgroupParamUint(path, limit) - if err != nil { - if moduleName != "memory" && os.IsNotExist(err) { - return cgroups.MemoryData{}, nil - } - return cgroups.MemoryData{}, fmt.Errorf("failed to parse %s - %v", limit, err) - } - memoryData.Limit = value - - return memoryData, nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/name.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/name.go deleted file mode 100644 index d8cf1d87c0..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/name.go +++ /dev/null @@ -1,40 +0,0 @@ -// +build linux - -package fs - -import ( - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type NameGroup struct { - GroupName string - Join bool -} - -func (s *NameGroup) Name() string { - return s.GroupName -} - -func (s *NameGroup) Apply(d *cgroupData) error { - if s.Join { - // ignore errors if the named cgroup does not exist - d.join(s.GroupName) - } - return nil -} - -func (s *NameGroup) Set(path string, cgroup *configs.Cgroup) error { - return nil -} - -func (s *NameGroup) Remove(d *cgroupData) error { - if s.Join { - removePath(d.path(s.GroupName)) - } - return nil -} - -func (s *NameGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/net_cls.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/net_cls.go deleted file mode 100644 index 8a4054ba87..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/net_cls.go +++ /dev/null @@ -1,41 +0,0 @@ -// +build linux - -package fs - -import ( - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type NetClsGroup struct { -} - -func (s *NetClsGroup) Name() string { - return "net_cls" -} - -func (s *NetClsGroup) Apply(d *cgroupData) error { - _, err := d.join("net_cls") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *NetClsGroup) Set(path string, cgroup *configs.Cgroup) error { - if cgroup.Resources.NetClsClassid != "" { - if err := writeFile(path, "net_cls.classid", cgroup.Resources.NetClsClassid); err != nil { - return err - } - } - - return nil -} - -func (s *NetClsGroup) Remove(d *cgroupData) error { - return removePath(d.path("net_cls")) -} - -func (s *NetClsGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/net_prio.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/net_prio.go deleted file mode 100644 index d0ab2af894..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/net_prio.go +++ /dev/null @@ -1,41 +0,0 @@ -// +build linux - -package fs - -import ( - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type NetPrioGroup struct { -} - -func (s *NetPrioGroup) Name() string { - return "net_prio" -} - -func (s *NetPrioGroup) Apply(d *cgroupData) error { - _, err := d.join("net_prio") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *NetPrioGroup) Set(path string, cgroup *configs.Cgroup) error { - for _, prioMap := range cgroup.Resources.NetPrioIfpriomap { - if err := writeFile(path, "net_prio.ifpriomap", prioMap.CgroupString()); err != nil { - return err - } - } - - return nil -} - -func (s *NetPrioGroup) Remove(d *cgroupData) error { - return removePath(d.path("net_prio")) -} - -func (s *NetPrioGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/perf_event.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/perf_event.go deleted file mode 100644 index 5693676d3a..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/perf_event.go +++ /dev/null @@ -1,35 +0,0 @@ -// +build linux - -package fs - -import ( - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type PerfEventGroup struct { -} - -func (s *PerfEventGroup) Name() string { - return "perf_event" -} - -func (s *PerfEventGroup) Apply(d *cgroupData) error { - // we just want to join this group even though we don't set anything - if _, err := d.join("perf_event"); err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *PerfEventGroup) Set(path string, cgroup *configs.Cgroup) error { - return nil -} - -func (s *PerfEventGroup) Remove(d *cgroupData) error { - return removePath(d.path("perf_event")) -} - -func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error { - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/pids.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/pids.go deleted file mode 100644 index f1e3720551..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/pids.go +++ /dev/null @@ -1,73 +0,0 @@ -// +build linux - -package fs - -import ( - "fmt" - "path/filepath" - "strconv" - - "github.com/opencontainers/runc/libcontainer/cgroups" - "github.com/opencontainers/runc/libcontainer/configs" -) - -type PidsGroup struct { -} - -func (s *PidsGroup) Name() string { - return "pids" -} - -func (s *PidsGroup) Apply(d *cgroupData) error { - _, err := d.join("pids") - if err != nil && !cgroups.IsNotFound(err) { - return err - } - return nil -} - -func (s *PidsGroup) Set(path string, cgroup *configs.Cgroup) error { - if cgroup.Resources.PidsLimit != 0 { - // "max" is the fallback value. - limit := "max" - - if cgroup.Resources.PidsLimit > 0 { - limit = strconv.FormatInt(cgroup.Resources.PidsLimit, 10) - } - - if err := writeFile(path, "pids.max", limit); err != nil { - return err - } - } - - return nil -} - -func (s *PidsGroup) Remove(d *cgroupData) error { - return removePath(d.path("pids")) -} - -func (s *PidsGroup) GetStats(path string, stats *cgroups.Stats) error { - current, err := getCgroupParamUint(path, "pids.current") - if err != nil { - return fmt.Errorf("failed to parse pids.current - %s", err) - } - - maxString, err := getCgroupParamString(path, "pids.max") - if err != nil { - return fmt.Errorf("failed to parse pids.max - %s", err) - } - - // Default if pids.max == "max" is 0 -- which represents "no limit". - var max uint64 - if maxString != "max" { - max, err = parseUint(maxString, 10, 64) - if err != nil { - return fmt.Errorf("failed to parse pids.max - unable to parse %q as a uint from Cgroup file %q", maxString, filepath.Join(path, "pids.max")) - } - } - - stats.PidsStats.Current = current - stats.PidsStats.Limit = max - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/utils.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/utils.go deleted file mode 100644 index 5ff0a16150..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/utils.go +++ /dev/null @@ -1,78 +0,0 @@ -// +build linux - -package fs - -import ( - "errors" - "fmt" - "io/ioutil" - "path/filepath" - "strconv" - "strings" -) - -var ( - ErrNotValidFormat = errors.New("line is not a valid key value format") -) - -// Saturates negative values at zero and returns a uint64. -// Due to kernel bugs, some of the memory cgroup stats can be negative. -func parseUint(s string, base, bitSize int) (uint64, error) { - value, err := strconv.ParseUint(s, base, bitSize) - if err != nil { - intValue, intErr := strconv.ParseInt(s, base, bitSize) - // 1. Handle negative values greater than MinInt64 (and) - // 2. Handle negative values lesser than MinInt64 - if intErr == nil && intValue < 0 { - return 0, nil - } else if intErr != nil && intErr.(*strconv.NumError).Err == strconv.ErrRange && intValue < 0 { - return 0, nil - } - - return value, err - } - - return value, nil -} - -// Parses a cgroup param and returns as name, value -// i.e. "io_service_bytes 1234" will return as io_service_bytes, 1234 -func getCgroupParamKeyValue(t string) (string, uint64, error) { - parts := strings.Fields(t) - switch len(parts) { - case 2: - value, err := parseUint(parts[1], 10, 64) - if err != nil { - return "", 0, fmt.Errorf("unable to convert param value (%q) to uint64: %v", parts[1], err) - } - - return parts[0], value, nil - default: - return "", 0, ErrNotValidFormat - } -} - -// Gets a single uint64 value from the specified cgroup file. -func getCgroupParamUint(cgroupPath, cgroupFile string) (uint64, error) { - fileName := filepath.Join(cgroupPath, cgroupFile) - contents, err := ioutil.ReadFile(fileName) - if err != nil { - return 0, err - } - - res, err := parseUint(strings.TrimSpace(string(contents)), 10, 64) - if err != nil { - return res, fmt.Errorf("unable to parse %q as a uint from Cgroup file %q", string(contents), fileName) - } - return res, nil -} - -// Gets a string value from the specified cgroup file -func getCgroupParamString(cgroupPath, cgroupFile string) (string, error) { - contents, err := ioutil.ReadFile(filepath.Join(cgroupPath, cgroupFile)) - if err != nil { - return "", err - } - - return strings.TrimSpace(string(contents)), nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/stats.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/stats.go deleted file mode 100644 index b483f1bf98..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/stats.go +++ /dev/null @@ -1,106 +0,0 @@ -// +build linux - -package cgroups - -type ThrottlingData struct { - // Number of periods with throttling active - Periods uint64 `json:"periods,omitempty"` - // Number of periods when the container hit its throttling limit. - ThrottledPeriods uint64 `json:"throttled_periods,omitempty"` - // Aggregate time the container was throttled for in nanoseconds. - ThrottledTime uint64 `json:"throttled_time,omitempty"` -} - -// CpuUsage denotes the usage of a CPU. -// All CPU stats are aggregate since container inception. -type CpuUsage struct { - // Total CPU time consumed. - // Units: nanoseconds. - TotalUsage uint64 `json:"total_usage,omitempty"` - // Total CPU time consumed per core. - // Units: nanoseconds. - PercpuUsage []uint64 `json:"percpu_usage,omitempty"` - // Time spent by tasks of the cgroup in kernel mode. - // Units: nanoseconds. - UsageInKernelmode uint64 `json:"usage_in_kernelmode"` - // Time spent by tasks of the cgroup in user mode. - // Units: nanoseconds. - UsageInUsermode uint64 `json:"usage_in_usermode"` -} - -type CpuStats struct { - CpuUsage CpuUsage `json:"cpu_usage,omitempty"` - ThrottlingData ThrottlingData `json:"throttling_data,omitempty"` -} - -type MemoryData struct { - Usage uint64 `json:"usage,omitempty"` - MaxUsage uint64 `json:"max_usage,omitempty"` - Failcnt uint64 `json:"failcnt"` - Limit uint64 `json:"limit"` -} - -type MemoryStats struct { - // memory used for cache - Cache uint64 `json:"cache,omitempty"` - // usage of memory - Usage MemoryData `json:"usage,omitempty"` - // usage of memory + swap - SwapUsage MemoryData `json:"swap_usage,omitempty"` - // usage of kernel memory - KernelUsage MemoryData `json:"kernel_usage,omitempty"` - // usage of kernel TCP memory - KernelTCPUsage MemoryData `json:"kernel_tcp_usage,omitempty"` - - Stats map[string]uint64 `json:"stats,omitempty"` -} - -type PidsStats struct { - // number of pids in the cgroup - Current uint64 `json:"current,omitempty"` - // active pids hard limit - Limit uint64 `json:"limit,omitempty"` -} - -type BlkioStatEntry struct { - Major uint64 `json:"major,omitempty"` - Minor uint64 `json:"minor,omitempty"` - Op string `json:"op,omitempty"` - Value uint64 `json:"value,omitempty"` -} - -type BlkioStats struct { - // number of bytes tranferred to and from the block device - IoServiceBytesRecursive []BlkioStatEntry `json:"io_service_bytes_recursive,omitempty"` - IoServicedRecursive []BlkioStatEntry `json:"io_serviced_recursive,omitempty"` - IoQueuedRecursive []BlkioStatEntry `json:"io_queue_recursive,omitempty"` - IoServiceTimeRecursive []BlkioStatEntry `json:"io_service_time_recursive,omitempty"` - IoWaitTimeRecursive []BlkioStatEntry `json:"io_wait_time_recursive,omitempty"` - IoMergedRecursive []BlkioStatEntry `json:"io_merged_recursive,omitempty"` - IoTimeRecursive []BlkioStatEntry `json:"io_time_recursive,omitempty"` - SectorsRecursive []BlkioStatEntry `json:"sectors_recursive,omitempty"` -} - -type HugetlbStats struct { - // current res_counter usage for hugetlb - Usage uint64 `json:"usage,omitempty"` - // maximum usage ever recorded. - MaxUsage uint64 `json:"max_usage,omitempty"` - // number of times hugetlb usage allocation failure. - Failcnt uint64 `json:"failcnt"` -} - -type Stats struct { - CpuStats CpuStats `json:"cpu_stats,omitempty"` - MemoryStats MemoryStats `json:"memory_stats,omitempty"` - PidsStats PidsStats `json:"pids_stats,omitempty"` - BlkioStats BlkioStats `json:"blkio_stats,omitempty"` - // the map is in the format "size of hugepage: stats of the hugepage" - HugetlbStats map[string]HugetlbStats `json:"hugetlb_stats,omitempty"` -} - -func NewStats() *Stats { - memoryStats := MemoryStats{Stats: make(map[string]uint64)} - hugetlbStats := make(map[string]HugetlbStats) - return &Stats{MemoryStats: memoryStats, HugetlbStats: hugetlbStats} -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go deleted file mode 100644 index 1a7c4e1a05..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go +++ /dev/null @@ -1,413 +0,0 @@ -// +build linux - -package cgroups - -import ( - "bufio" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strconv" - "strings" - "time" - - "github.com/docker/go-units" -) - -const cgroupNamePrefix = "name=" - -// https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt -func FindCgroupMountpoint(subsystem string) (string, error) { - // We are not using mount.GetMounts() because it's super-inefficient, - // parsing it directly sped up x10 times because of not using Sscanf. - // It was one of two major performance drawbacks in container start. - if !isSubsystemAvailable(subsystem) { - return "", NewNotFoundError(subsystem) - } - f, err := os.Open("/proc/self/mountinfo") - if err != nil { - return "", err - } - defer f.Close() - - scanner := bufio.NewScanner(f) - for scanner.Scan() { - txt := scanner.Text() - fields := strings.Split(txt, " ") - for _, opt := range strings.Split(fields[len(fields)-1], ",") { - if opt == subsystem { - return fields[4], nil - } - } - } - if err := scanner.Err(); err != nil { - return "", err - } - - return "", NewNotFoundError(subsystem) -} - -func FindCgroupMountpointAndRoot(subsystem string) (string, string, error) { - if !isSubsystemAvailable(subsystem) { - return "", "", NewNotFoundError(subsystem) - } - f, err := os.Open("/proc/self/mountinfo") - if err != nil { - return "", "", err - } - defer f.Close() - - scanner := bufio.NewScanner(f) - for scanner.Scan() { - txt := scanner.Text() - fields := strings.Split(txt, " ") - for _, opt := range strings.Split(fields[len(fields)-1], ",") { - if opt == subsystem { - return fields[4], fields[3], nil - } - } - } - if err := scanner.Err(); err != nil { - return "", "", err - } - - return "", "", NewNotFoundError(subsystem) -} - -func isSubsystemAvailable(subsystem string) bool { - cgroups, err := ParseCgroupFile("/proc/self/cgroup") - if err != nil { - return false - } - _, avail := cgroups[subsystem] - return avail -} - -func FindCgroupMountpointDir() (string, error) { - f, err := os.Open("/proc/self/mountinfo") - if err != nil { - return "", err - } - defer f.Close() - - scanner := bufio.NewScanner(f) - for scanner.Scan() { - text := scanner.Text() - fields := strings.Split(text, " ") - // Safe as mountinfo encodes mountpoints with spaces as \040. - index := strings.Index(text, " - ") - postSeparatorFields := strings.Fields(text[index+3:]) - numPostFields := len(postSeparatorFields) - - // This is an error as we can't detect if the mount is for "cgroup" - if numPostFields == 0 { - return "", fmt.Errorf("Found no fields post '-' in %q", text) - } - - if postSeparatorFields[0] == "cgroup" { - // Check that the mount is properly formated. - if numPostFields < 3 { - return "", fmt.Errorf("Error found less than 3 fields post '-' in %q", text) - } - - return filepath.Dir(fields[4]), nil - } - } - if err := scanner.Err(); err != nil { - return "", err - } - - return "", NewNotFoundError("cgroup") -} - -type Mount struct { - Mountpoint string - Root string - Subsystems []string -} - -func (m Mount) GetThisCgroupDir(cgroups map[string]string) (string, error) { - if len(m.Subsystems) == 0 { - return "", fmt.Errorf("no subsystem for mount") - } - - return getControllerPath(m.Subsystems[0], cgroups) -} - -func getCgroupMountsHelper(ss map[string]bool, mi io.Reader) ([]Mount, error) { - res := make([]Mount, 0, len(ss)) - scanner := bufio.NewScanner(mi) - numFound := 0 - for scanner.Scan() && numFound < len(ss) { - txt := scanner.Text() - sepIdx := strings.Index(txt, " - ") - if sepIdx == -1 { - return nil, fmt.Errorf("invalid mountinfo format") - } - if txt[sepIdx+3:sepIdx+9] != "cgroup" { - continue - } - fields := strings.Split(txt, " ") - m := Mount{ - Mountpoint: fields[4], - Root: fields[3], - } - for _, opt := range strings.Split(fields[len(fields)-1], ",") { - if !ss[opt] { - continue - } - if strings.HasPrefix(opt, cgroupNamePrefix) { - m.Subsystems = append(m.Subsystems, opt[len(cgroupNamePrefix):]) - } else { - m.Subsystems = append(m.Subsystems, opt) - } - numFound++ - } - res = append(res, m) - } - if err := scanner.Err(); err != nil { - return nil, err - } - return res, nil -} - -func GetCgroupMounts() ([]Mount, error) { - f, err := os.Open("/proc/self/mountinfo") - if err != nil { - return nil, err - } - defer f.Close() - - all, err := ParseCgroupFile("/proc/self/cgroup") - if err != nil { - return nil, err - } - - allMap := make(map[string]bool) - for s := range all { - allMap[s] = true - } - return getCgroupMountsHelper(allMap, f) -} - -// GetAllSubsystems returns all the cgroup subsystems supported by the kernel -func GetAllSubsystems() ([]string, error) { - f, err := os.Open("/proc/cgroups") - if err != nil { - return nil, err - } - defer f.Close() - - subsystems := []string{} - - s := bufio.NewScanner(f) - for s.Scan() { - if err := s.Err(); err != nil { - return nil, err - } - text := s.Text() - if text[0] != '#' { - parts := strings.Fields(text) - if len(parts) >= 4 && parts[3] != "0" { - subsystems = append(subsystems, parts[0]) - } - } - } - return subsystems, nil -} - -// GetThisCgroupDir returns the relative path to the cgroup docker is running in. -func GetThisCgroupDir(subsystem string) (string, error) { - cgroups, err := ParseCgroupFile("/proc/self/cgroup") - if err != nil { - return "", err - } - - return getControllerPath(subsystem, cgroups) -} - -func GetInitCgroupDir(subsystem string) (string, error) { - - cgroups, err := ParseCgroupFile("/proc/1/cgroup") - if err != nil { - return "", err - } - - return getControllerPath(subsystem, cgroups) -} - -func readProcsFile(dir string) ([]int, error) { - f, err := os.Open(filepath.Join(dir, "cgroup.procs")) - if err != nil { - return nil, err - } - defer f.Close() - - var ( - s = bufio.NewScanner(f) - out = []int{} - ) - - for s.Scan() { - if t := s.Text(); t != "" { - pid, err := strconv.Atoi(t) - if err != nil { - return nil, err - } - out = append(out, pid) - } - } - return out, nil -} - -// ParseCgroupFile parses the given cgroup file, typically from -// /proc//cgroup, into a map of subgroups to cgroup names. -func ParseCgroupFile(path string) (map[string]string, error) { - f, err := os.Open(path) - if err != nil { - return nil, err - } - defer f.Close() - - return parseCgroupFromReader(f) -} - -// helper function for ParseCgroupFile to make testing easier -func parseCgroupFromReader(r io.Reader) (map[string]string, error) { - s := bufio.NewScanner(r) - cgroups := make(map[string]string) - - for s.Scan() { - if err := s.Err(); err != nil { - return nil, err - } - - text := s.Text() - // from cgroups(7): - // /proc/[pid]/cgroup - // ... - // For each cgroup hierarchy ... there is one entry - // containing three colon-separated fields of the form: - // hierarchy-ID:subsystem-list:cgroup-path - parts := strings.SplitN(text, ":", 3) - if len(parts) < 3 { - return nil, fmt.Errorf("invalid cgroup entry: must contain at least two colons: %v", text) - } - - for _, subs := range strings.Split(parts[1], ",") { - cgroups[subs] = parts[2] - } - } - return cgroups, nil -} - -func getControllerPath(subsystem string, cgroups map[string]string) (string, error) { - - if p, ok := cgroups[subsystem]; ok { - return p, nil - } - - if p, ok := cgroups[cgroupNamePrefix+subsystem]; ok { - return p, nil - } - - return "", NewNotFoundError(subsystem) -} - -func PathExists(path string) bool { - if _, err := os.Stat(path); err != nil { - return false - } - return true -} - -func EnterPid(cgroupPaths map[string]string, pid int) error { - for _, path := range cgroupPaths { - if PathExists(path) { - if err := ioutil.WriteFile(filepath.Join(path, "cgroup.procs"), - []byte(strconv.Itoa(pid)), 0700); err != nil { - return err - } - } - } - return nil -} - -// RemovePaths iterates over the provided paths removing them. -// We trying to remove all paths five times with increasing delay between tries. -// If after all there are not removed cgroups - appropriate error will be -// returned. -func RemovePaths(paths map[string]string) (err error) { - delay := 10 * time.Millisecond - for i := 0; i < 5; i++ { - if i != 0 { - time.Sleep(delay) - delay *= 2 - } - for s, p := range paths { - os.RemoveAll(p) - // TODO: here probably should be logging - _, err := os.Stat(p) - // We need this strange way of checking cgroups existence because - // RemoveAll almost always returns error, even on already removed - // cgroups - if os.IsNotExist(err) { - delete(paths, s) - } - } - if len(paths) == 0 { - return nil - } - } - return fmt.Errorf("Failed to remove paths: %v", paths) -} - -func GetHugePageSize() ([]string, error) { - var pageSizes []string - sizeList := []string{"B", "kB", "MB", "GB", "TB", "PB"} - files, err := ioutil.ReadDir("/sys/kernel/mm/hugepages") - if err != nil { - return pageSizes, err - } - for _, st := range files { - nameArray := strings.Split(st.Name(), "-") - pageSize, err := units.RAMInBytes(nameArray[1]) - if err != nil { - return []string{}, err - } - sizeString := units.CustomSize("%g%s", float64(pageSize), 1024.0, sizeList) - pageSizes = append(pageSizes, sizeString) - } - - return pageSizes, nil -} - -// GetPids returns all pids, that were added to cgroup at path. -func GetPids(path string) ([]int, error) { - return readProcsFile(path) -} - -// GetAllPids returns all pids, that were added to cgroup at path and to all its -// subcgroups. -func GetAllPids(path string) ([]int, error) { - var pids []int - // collect pids from all sub-cgroups - err := filepath.Walk(path, func(p string, info os.FileInfo, iErr error) error { - dir, file := filepath.Split(p) - if file != "cgroup.procs" { - return nil - } - if iErr != nil { - return iErr - } - cPids, err := readProcsFile(dir) - if err != nil { - return err - } - pids = append(pids, cPids...) - return nil - }) - return pids, err -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/blkio_device.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/blkio_device.go deleted file mode 100644 index e0f3ca1653..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/blkio_device.go +++ /dev/null @@ -1,61 +0,0 @@ -package configs - -import "fmt" - -// blockIODevice holds major:minor format supported in blkio cgroup -type blockIODevice struct { - // Major is the device's major number - Major int64 `json:"major"` - // Minor is the device's minor number - Minor int64 `json:"minor"` -} - -// WeightDevice struct holds a `major:minor weight`|`major:minor leaf_weight` pair -type WeightDevice struct { - blockIODevice - // Weight is the bandwidth rate for the device, range is from 10 to 1000 - Weight uint16 `json:"weight"` - // LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, range is from 10 to 1000, cfq scheduler only - LeafWeight uint16 `json:"leafWeight"` -} - -// NewWeightDevice returns a configured WeightDevice pointer -func NewWeightDevice(major, minor int64, weight, leafWeight uint16) *WeightDevice { - wd := &WeightDevice{} - wd.Major = major - wd.Minor = minor - wd.Weight = weight - wd.LeafWeight = leafWeight - return wd -} - -// WeightString formats the struct to be writable to the cgroup specific file -func (wd *WeightDevice) WeightString() string { - return fmt.Sprintf("%d:%d %d", wd.Major, wd.Minor, wd.Weight) -} - -// LeafWeightString formats the struct to be writable to the cgroup specific file -func (wd *WeightDevice) LeafWeightString() string { - return fmt.Sprintf("%d:%d %d", wd.Major, wd.Minor, wd.LeafWeight) -} - -// ThrottleDevice struct holds a `major:minor rate_per_second` pair -type ThrottleDevice struct { - blockIODevice - // Rate is the IO rate limit per cgroup per device - Rate uint64 `json:"rate"` -} - -// NewThrottleDevice returns a configured ThrottleDevice pointer -func NewThrottleDevice(major, minor int64, rate uint64) *ThrottleDevice { - td := &ThrottleDevice{} - td.Major = major - td.Minor = minor - td.Rate = rate - return td -} - -// String formats the struct to be writable to the cgroup specific file -func (td *ThrottleDevice) String() string { - return fmt.Sprintf("%d:%d %d", td.Major, td.Minor, td.Rate) -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unix.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unix.go deleted file mode 100644 index f2eff91cf4..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unix.go +++ /dev/null @@ -1,124 +0,0 @@ -// +build linux freebsd - -package configs - -type FreezerState string - -const ( - Undefined FreezerState = "" - Frozen FreezerState = "FROZEN" - Thawed FreezerState = "THAWED" -) - -type Cgroup struct { - // Deprecated, use Path instead - Name string `json:"name,omitempty"` - - // name of parent of cgroup or slice - // Deprecated, use Path instead - Parent string `json:"parent,omitempty"` - - // Path specifies the path to cgroups that are created and/or joined by the container. - // The path is assumed to be relative to the host system cgroup mountpoint. - Path string `json:"path"` - - // ScopePrefix decribes prefix for the scope name - ScopePrefix string `json:"scope_prefix"` - - // Paths represent the absolute cgroups paths to join. - // This takes precedence over Path. - Paths map[string]string - - // Resources contains various cgroups settings to apply - *Resources -} - -type Resources struct { - // If this is true allow access to any kind of device within the container. If false, allow access only to devices explicitly listed in the allowed_devices list. - // Deprecated - AllowAllDevices bool `json:"allow_all_devices,omitempty"` - // Deprecated - AllowedDevices []*Device `json:"allowed_devices,omitempty"` - // Deprecated - DeniedDevices []*Device `json:"denied_devices,omitempty"` - - Devices []*Device `json:"devices"` - - // Memory limit (in bytes) - Memory int64 `json:"memory"` - - // Memory reservation or soft_limit (in bytes) - MemoryReservation int64 `json:"memory_reservation"` - - // Total memory usage (memory + swap); set `-1` to enable unlimited swap - MemorySwap int64 `json:"memory_swap"` - - // Kernel memory limit (in bytes) - KernelMemory int64 `json:"kernel_memory"` - - // Kernel memory limit for TCP use (in bytes) - KernelMemoryTCP int64 `json:"kernel_memory_tcp"` - - // CPU shares (relative weight vs. other containers) - CpuShares int64 `json:"cpu_shares"` - - // CPU hardcap limit (in usecs). Allowed cpu time in a given period. - CpuQuota int64 `json:"cpu_quota"` - - // CPU period to be used for hardcapping (in usecs). 0 to use system default. - CpuPeriod int64 `json:"cpu_period"` - - // How many time CPU will use in realtime scheduling (in usecs). - CpuRtRuntime int64 `json:"cpu_quota"` - - // CPU period to be used for realtime scheduling (in usecs). - CpuRtPeriod int64 `json:"cpu_period"` - - // CPU to use - CpusetCpus string `json:"cpuset_cpus"` - - // MEM to use - CpusetMems string `json:"cpuset_mems"` - - // Process limit; set <= `0' to disable limit. - PidsLimit int64 `json:"pids_limit"` - - // Specifies per cgroup weight, range is from 10 to 1000. - BlkioWeight uint16 `json:"blkio_weight"` - - // Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, range is from 10 to 1000, cfq scheduler only - BlkioLeafWeight uint16 `json:"blkio_leaf_weight"` - - // Weight per cgroup per device, can override BlkioWeight. - BlkioWeightDevice []*WeightDevice `json:"blkio_weight_device"` - - // IO read rate limit per cgroup per device, bytes per second. - BlkioThrottleReadBpsDevice []*ThrottleDevice `json:"blkio_throttle_read_bps_device"` - - // IO write rate limit per cgroup per divice, bytes per second. - BlkioThrottleWriteBpsDevice []*ThrottleDevice `json:"blkio_throttle_write_bps_device"` - - // IO read rate limit per cgroup per device, IO per second. - BlkioThrottleReadIOPSDevice []*ThrottleDevice `json:"blkio_throttle_read_iops_device"` - - // IO write rate limit per cgroup per device, IO per second. - BlkioThrottleWriteIOPSDevice []*ThrottleDevice `json:"blkio_throttle_write_iops_device"` - - // set the freeze value for the process - Freezer FreezerState `json:"freezer"` - - // Hugetlb limit (in bytes) - HugetlbLimit []*HugepageLimit `json:"hugetlb_limit"` - - // Whether to disable OOM Killer - OomKillDisable bool `json:"oom_kill_disable"` - - // Tuning swappiness behaviour per cgroup - MemorySwappiness *int64 `json:"memory_swappiness"` - - // Set priority of network traffic for container - NetPrioIfpriomap []*IfPrioMap `json:"net_prio_ifpriomap"` - - // Set class identifier for container's network packets - NetClsClassid string `json:"net_cls_classid"` -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unsupported.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unsupported.go deleted file mode 100644 index 95e2830a43..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unsupported.go +++ /dev/null @@ -1,6 +0,0 @@ -// +build !windows,!linux,!freebsd - -package configs - -type Cgroup struct { -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_windows.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_windows.go deleted file mode 100644 index d74847b0db..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_windows.go +++ /dev/null @@ -1,6 +0,0 @@ -package configs - -// TODO Windows: This can ultimately be entirely factored out on Windows as -// cgroups are a Unix-specific construct. -type Cgroup struct { -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/config.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/config.go deleted file mode 100644 index 806e0be960..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/config.go +++ /dev/null @@ -1,332 +0,0 @@ -package configs - -import ( - "bytes" - "encoding/json" - "fmt" - "os/exec" - "time" - - "github.com/Sirupsen/logrus" -) - -type Rlimit struct { - Type int `json:"type"` - Hard uint64 `json:"hard"` - Soft uint64 `json:"soft"` -} - -// IDMap represents UID/GID Mappings for User Namespaces. -type IDMap struct { - ContainerID int `json:"container_id"` - HostID int `json:"host_id"` - Size int `json:"size"` -} - -// Seccomp represents syscall restrictions -// By default, only the native architecture of the kernel is allowed to be used -// for syscalls. Additional architectures can be added by specifying them in -// Architectures. -type Seccomp struct { - DefaultAction Action `json:"default_action"` - Architectures []string `json:"architectures"` - Syscalls []*Syscall `json:"syscalls"` -} - -// Action is taken upon rule match in Seccomp -type Action int - -const ( - Kill Action = iota + 1 - Errno - Trap - Allow - Trace -) - -// Operator is a comparison operator to be used when matching syscall arguments in Seccomp -type Operator int - -const ( - EqualTo Operator = iota + 1 - NotEqualTo - GreaterThan - GreaterThanOrEqualTo - LessThan - LessThanOrEqualTo - MaskEqualTo -) - -// Arg is a rule to match a specific syscall argument in Seccomp -type Arg struct { - Index uint `json:"index"` - Value uint64 `json:"value"` - ValueTwo uint64 `json:"value_two"` - Op Operator `json:"op"` -} - -// Syscall is a rule to match a syscall in Seccomp -type Syscall struct { - Name string `json:"name"` - Action Action `json:"action"` - Args []*Arg `json:"args"` -} - -// TODO Windows. Many of these fields should be factored out into those parts -// which are common across platforms, and those which are platform specific. - -// Config defines configuration options for executing a process inside a contained environment. -type Config struct { - // NoPivotRoot will use MS_MOVE and a chroot to jail the process into the container's rootfs - // This is a common option when the container is running in ramdisk - NoPivotRoot bool `json:"no_pivot_root"` - - // ParentDeathSignal specifies the signal that is sent to the container's process in the case - // that the parent process dies. - ParentDeathSignal int `json:"parent_death_signal"` - - // PivotDir allows a custom directory inside the container's root filesystem to be used as pivot, when NoPivotRoot is not set. - // When a custom PivotDir not set, a temporary dir inside the root filesystem will be used. The pivot dir needs to be writeable. - // This is required when using read only root filesystems. In these cases, a read/writeable path can be (bind) mounted somewhere inside the root filesystem to act as pivot. - PivotDir string `json:"pivot_dir"` - - // Path to a directory containing the container's root filesystem. - Rootfs string `json:"rootfs"` - - // Readonlyfs will remount the container's rootfs as readonly where only externally mounted - // bind mounts are writtable. - Readonlyfs bool `json:"readonlyfs"` - - // Specifies the mount propagation flags to be applied to /. - RootPropagation int `json:"rootPropagation"` - - // Mounts specify additional source and destination paths that will be mounted inside the container's - // rootfs and mount namespace if specified - Mounts []*Mount `json:"mounts"` - - // The device nodes that should be automatically created within the container upon container start. Note, make sure that the node is marked as allowed in the cgroup as well! - Devices []*Device `json:"devices"` - - MountLabel string `json:"mount_label"` - - // Hostname optionally sets the container's hostname if provided - Hostname string `json:"hostname"` - - // Namespaces specifies the container's namespaces that it should setup when cloning the init process - // If a namespace is not provided that namespace is shared from the container's parent process - Namespaces Namespaces `json:"namespaces"` - - // Capabilities specify the capabilities to keep when executing the process inside the container - // All capbilities not specified will be dropped from the processes capability mask - Capabilities []string `json:"capabilities"` - - // Networks specifies the container's network setup to be created - Networks []*Network `json:"networks"` - - // Routes can be specified to create entries in the route table as the container is started - Routes []*Route `json:"routes"` - - // Cgroups specifies specific cgroup settings for the various subsystems that the container is - // placed into to limit the resources the container has available - Cgroups *Cgroup `json:"cgroups"` - - // AppArmorProfile specifies the profile to apply to the process running in the container and is - // change at the time the process is execed - AppArmorProfile string `json:"apparmor_profile,omitempty"` - - // ProcessLabel specifies the label to apply to the process running in the container. It is - // commonly used by selinux - ProcessLabel string `json:"process_label,omitempty"` - - // Rlimits specifies the resource limits, such as max open files, to set in the container - // If Rlimits are not set, the container will inherit rlimits from the parent process - Rlimits []Rlimit `json:"rlimits,omitempty"` - - // OomScoreAdj specifies the adjustment to be made by the kernel when calculating oom scores - // for a process. Valid values are between the range [-1000, '1000'], where processes with - // higher scores are preferred for being killed. - // More information about kernel oom score calculation here: https://lwn.net/Articles/317814/ - OomScoreAdj int `json:"oom_score_adj"` - - // AdditionalGroups specifies the gids that should be added to supplementary groups - // in addition to those that the user belongs to. - AdditionalGroups []string `json:"additional_groups"` - - // UidMappings is an array of User ID mappings for User Namespaces - UidMappings []IDMap `json:"uid_mappings"` - - // GidMappings is an array of Group ID mappings for User Namespaces - GidMappings []IDMap `json:"gid_mappings"` - - // MaskPaths specifies paths within the container's rootfs to mask over with a bind - // mount pointing to /dev/null as to prevent reads of the file. - MaskPaths []string `json:"mask_paths"` - - // ReadonlyPaths specifies paths within the container's rootfs to remount as read-only - // so that these files prevent any writes. - ReadonlyPaths []string `json:"readonly_paths"` - - // Sysctl is a map of properties and their values. It is the equivalent of using - // sysctl -w my.property.name value in Linux. - Sysctl map[string]string `json:"sysctl"` - - // Seccomp allows actions to be taken whenever a syscall is made within the container. - // A number of rules are given, each having an action to be taken if a syscall matches it. - // A default action to be taken if no rules match is also given. - Seccomp *Seccomp `json:"seccomp"` - - // NoNewPrivileges controls whether processes in the container can gain additional privileges. - NoNewPrivileges bool `json:"no_new_privileges,omitempty"` - - // Hooks are a collection of actions to perform at various container lifecycle events. - // CommandHooks are serialized to JSON, but other hooks are not. - Hooks *Hooks - - // Version is the version of opencontainer specification that is supported. - Version string `json:"version"` - - // Labels are user defined metadata that is stored in the config and populated on the state - Labels []string `json:"labels"` - - // NoNewKeyring will not allocated a new session keyring for the container. It will use the - // callers keyring in this case. - NoNewKeyring bool `json:"no_new_keyring"` -} - -type Hooks struct { - // Prestart commands are executed after the container namespaces are created, - // but before the user supplied command is executed from init. - Prestart []Hook - - // Poststart commands are executed after the container init process starts. - Poststart []Hook - - // Poststop commands are executed after the container init process exits. - Poststop []Hook -} - -func (hooks *Hooks) UnmarshalJSON(b []byte) error { - var state struct { - Prestart []CommandHook - Poststart []CommandHook - Poststop []CommandHook - } - - if err := json.Unmarshal(b, &state); err != nil { - return err - } - - deserialize := func(shooks []CommandHook) (hooks []Hook) { - for _, shook := range shooks { - hooks = append(hooks, shook) - } - - return hooks - } - - hooks.Prestart = deserialize(state.Prestart) - hooks.Poststart = deserialize(state.Poststart) - hooks.Poststop = deserialize(state.Poststop) - return nil -} - -func (hooks Hooks) MarshalJSON() ([]byte, error) { - serialize := func(hooks []Hook) (serializableHooks []CommandHook) { - for _, hook := range hooks { - switch chook := hook.(type) { - case CommandHook: - serializableHooks = append(serializableHooks, chook) - default: - logrus.Warnf("cannot serialize hook of type %T, skipping", hook) - } - } - - return serializableHooks - } - - return json.Marshal(map[string]interface{}{ - "prestart": serialize(hooks.Prestart), - "poststart": serialize(hooks.Poststart), - "poststop": serialize(hooks.Poststop), - }) -} - -// HookState is the payload provided to a hook on execution. -type HookState struct { - Version string `json:"ociVersion"` - ID string `json:"id"` - Pid int `json:"pid"` - Root string `json:"root"` - BundlePath string `json:"bundlePath"` -} - -type Hook interface { - // Run executes the hook with the provided state. - Run(HookState) error -} - -// NewFunctionHook will call the provided function when the hook is run. -func NewFunctionHook(f func(HookState) error) FuncHook { - return FuncHook{ - run: f, - } -} - -type FuncHook struct { - run func(HookState) error -} - -func (f FuncHook) Run(s HookState) error { - return f.run(s) -} - -type Command struct { - Path string `json:"path"` - Args []string `json:"args"` - Env []string `json:"env"` - Dir string `json:"dir"` - Timeout *time.Duration `json:"timeout"` -} - -// NewCommandHook will execute the provided command when the hook is run. -func NewCommandHook(cmd Command) CommandHook { - return CommandHook{ - Command: cmd, - } -} - -type CommandHook struct { - Command -} - -func (c Command) Run(s HookState) error { - b, err := json.Marshal(s) - if err != nil { - return err - } - cmd := exec.Cmd{ - Path: c.Path, - Args: c.Args, - Env: c.Env, - Stdin: bytes.NewReader(b), - } - errC := make(chan error, 1) - go func() { - out, err := cmd.CombinedOutput() - if err != nil { - err = fmt.Errorf("%s: %s", err, out) - } - errC <- err - }() - if c.Timeout != nil { - select { - case err := <-errC: - return err - case <-time.After(*c.Timeout): - cmd.Process.Kill() - cmd.Wait() - return fmt.Errorf("hook ran past specified timeout of %.1fs", c.Timeout.Seconds()) - } - } - return <-errC -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/config_unix.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/config_unix.go deleted file mode 100644 index a60554a7b9..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/config_unix.go +++ /dev/null @@ -1,51 +0,0 @@ -// +build freebsd linux - -package configs - -import "fmt" - -// HostUID gets the root uid for the process on host which could be non-zero -// when user namespaces are enabled. -func (c Config) HostUID() (int, error) { - if c.Namespaces.Contains(NEWUSER) { - if c.UidMappings == nil { - return -1, fmt.Errorf("User namespaces enabled, but no user mappings found.") - } - id, found := c.hostIDFromMapping(0, c.UidMappings) - if !found { - return -1, fmt.Errorf("User namespaces enabled, but no root user mapping found.") - } - return id, nil - } - // Return default root uid 0 - return 0, nil -} - -// HostGID gets the root gid for the process on host which could be non-zero -// when user namespaces are enabled. -func (c Config) HostGID() (int, error) { - if c.Namespaces.Contains(NEWUSER) { - if c.GidMappings == nil { - return -1, fmt.Errorf("User namespaces enabled, but no gid mappings found.") - } - id, found := c.hostIDFromMapping(0, c.GidMappings) - if !found { - return -1, fmt.Errorf("User namespaces enabled, but no root group mapping found.") - } - return id, nil - } - // Return default root gid 0 - return 0, nil -} - -// Utility function that gets a host ID for a container ID from user namespace map -// if that ID is present in the map. -func (c Config) hostIDFromMapping(containerID int, uMap []IDMap) (int, bool) { - for _, m := range uMap { - if (containerID >= m.ContainerID) && (containerID <= (m.ContainerID + m.Size - 1)) { - hostID := m.HostID + (containerID - m.ContainerID) - return hostID, true - } - } - return -1, false -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/device.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/device.go deleted file mode 100644 index 8701bb212d..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/device.go +++ /dev/null @@ -1,57 +0,0 @@ -package configs - -import ( - "fmt" - "os" -) - -const ( - Wildcard = -1 -) - -// TODO Windows: This can be factored out in the future - -type Device struct { - // Device type, block, char, etc. - Type rune `json:"type"` - - // Path to the device. - Path string `json:"path"` - - // Major is the device's major number. - Major int64 `json:"major"` - - // Minor is the device's minor number. - Minor int64 `json:"minor"` - - // Cgroup permissions format, rwm. - Permissions string `json:"permissions"` - - // FileMode permission bits for the device. - FileMode os.FileMode `json:"file_mode"` - - // Uid of the device. - Uid uint32 `json:"uid"` - - // Gid of the device. - Gid uint32 `json:"gid"` - - // Write the file to the allowed list - Allow bool `json:"allow"` -} - -func (d *Device) CgroupString() string { - return fmt.Sprintf("%c %s:%s %s", d.Type, deviceNumberString(d.Major), deviceNumberString(d.Minor), d.Permissions) -} - -func (d *Device) Mkdev() int { - return int((d.Major << 8) | (d.Minor & 0xff) | ((d.Minor & 0xfff00) << 12)) -} - -// deviceNumberString converts the device number to a string return result. -func deviceNumberString(number int64) string { - if number == Wildcard { - return "*" - } - return fmt.Sprint(number) -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/device_defaults.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/device_defaults.go deleted file mode 100644 index ba1f437f3b..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/device_defaults.go +++ /dev/null @@ -1,125 +0,0 @@ -// +build linux freebsd - -package configs - -var ( - // DefaultSimpleDevices are devices that are to be both allowed and created. - DefaultSimpleDevices = []*Device{ - // /dev/null and zero - { - Path: "/dev/null", - Type: 'c', - Major: 1, - Minor: 3, - Permissions: "rwm", - FileMode: 0666, - }, - { - Path: "/dev/zero", - Type: 'c', - Major: 1, - Minor: 5, - Permissions: "rwm", - FileMode: 0666, - }, - - { - Path: "/dev/full", - Type: 'c', - Major: 1, - Minor: 7, - Permissions: "rwm", - FileMode: 0666, - }, - - // consoles and ttys - { - Path: "/dev/tty", - Type: 'c', - Major: 5, - Minor: 0, - Permissions: "rwm", - FileMode: 0666, - }, - - // /dev/urandom,/dev/random - { - Path: "/dev/urandom", - Type: 'c', - Major: 1, - Minor: 9, - Permissions: "rwm", - FileMode: 0666, - }, - { - Path: "/dev/random", - Type: 'c', - Major: 1, - Minor: 8, - Permissions: "rwm", - FileMode: 0666, - }, - } - DefaultAllowedDevices = append([]*Device{ - // allow mknod for any device - { - Type: 'c', - Major: Wildcard, - Minor: Wildcard, - Permissions: "m", - }, - { - Type: 'b', - Major: Wildcard, - Minor: Wildcard, - Permissions: "m", - }, - - { - Path: "/dev/console", - Type: 'c', - Major: 5, - Minor: 1, - Permissions: "rwm", - }, - // /dev/pts/ - pts namespaces are "coming soon" - { - Path: "", - Type: 'c', - Major: 136, - Minor: Wildcard, - Permissions: "rwm", - }, - { - Path: "", - Type: 'c', - Major: 5, - Minor: 2, - Permissions: "rwm", - }, - - // tuntap - { - Path: "", - Type: 'c', - Major: 10, - Minor: 200, - Permissions: "rwm", - }, - }, DefaultSimpleDevices...) - DefaultAutoCreatedDevices = append([]*Device{ - { - // /dev/fuse is created but not allowed. - // This is to allow java to work. Because java - // Insists on there being a /dev/fuse - // https://github.com/docker/docker/issues/514 - // https://github.com/docker/docker/issues/2393 - // - Path: "/dev/fuse", - Type: 'c', - Major: 10, - Minor: 229, - Permissions: "rwm", - }, - }, DefaultSimpleDevices...) -) diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/hugepage_limit.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/hugepage_limit.go deleted file mode 100644 index d30216380b..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/hugepage_limit.go +++ /dev/null @@ -1,9 +0,0 @@ -package configs - -type HugepageLimit struct { - // which type of hugepage to limit. - Pagesize string `json:"page_size"` - - // usage limit for hugepage. - Limit uint64 `json:"limit"` -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/interface_priority_map.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/interface_priority_map.go deleted file mode 100644 index 9a0395eaf5..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/interface_priority_map.go +++ /dev/null @@ -1,14 +0,0 @@ -package configs - -import ( - "fmt" -) - -type IfPrioMap struct { - Interface string `json:"interface"` - Priority int64 `json:"priority"` -} - -func (i *IfPrioMap) CgroupString() string { - return fmt.Sprintf("%s %d", i.Interface, i.Priority) -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/mount.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/mount.go deleted file mode 100644 index cc770c916f..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/mount.go +++ /dev/null @@ -1,30 +0,0 @@ -package configs - -type Mount struct { - // Source path for the mount. - Source string `json:"source"` - - // Destination path for the mount inside the container. - Destination string `json:"destination"` - - // Device the mount is for. - Device string `json:"device"` - - // Mount flags. - Flags int `json:"flags"` - - // Propagation Flags - PropagationFlags []int `json:"propagation_flags"` - - // Mount data applied to the mount. - Data string `json:"data"` - - // Relabel source if set, "z" indicates shared, "Z" indicates unshared. - Relabel string `json:"relabel"` - - // Optional Command to be run before Source is mounted. - PremountCmds []Command `json:"premount_cmds"` - - // Optional Command to be run after Source is mounted. - PostmountCmds []Command `json:"postmount_cmds"` -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces.go deleted file mode 100644 index a3329a31a9..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces.go +++ /dev/null @@ -1,5 +0,0 @@ -package configs - -type NamespaceType string - -type Namespaces []Namespace diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall.go deleted file mode 100644 index fb4b852222..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall.go +++ /dev/null @@ -1,31 +0,0 @@ -// +build linux - -package configs - -import "syscall" - -func (n *Namespace) Syscall() int { - return namespaceInfo[n.Type] -} - -var namespaceInfo = map[NamespaceType]int{ - NEWNET: syscall.CLONE_NEWNET, - NEWNS: syscall.CLONE_NEWNS, - NEWUSER: syscall.CLONE_NEWUSER, - NEWIPC: syscall.CLONE_NEWIPC, - NEWUTS: syscall.CLONE_NEWUTS, - NEWPID: syscall.CLONE_NEWPID, -} - -// CloneFlags parses the container's Namespaces options to set the correct -// flags on clone, unshare. This function returns flags only for new namespaces. -func (n *Namespaces) CloneFlags() uintptr { - var flag int - for _, v := range *n { - if v.Path != "" { - continue - } - flag |= namespaceInfo[v.Type] - } - return uintptr(flag) -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall_unsupported.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall_unsupported.go deleted file mode 100644 index 0547223a9d..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall_unsupported.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build !linux,!windows - -package configs - -func (n *Namespace) Syscall() int { - panic("No namespace syscall support") - return 0 -} - -// CloneFlags parses the container's Namespaces options to set the correct -// flags on clone, unshare. This function returns flags only for new namespaces. -func (n *Namespaces) CloneFlags() uintptr { - panic("No namespace syscall support") - return uintptr(0) -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unix.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unix.go deleted file mode 100644 index b9c820d062..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unix.go +++ /dev/null @@ -1,127 +0,0 @@ -// +build linux freebsd - -package configs - -import ( - "fmt" - "os" - "sync" -) - -const ( - NEWNET NamespaceType = "NEWNET" - NEWPID NamespaceType = "NEWPID" - NEWNS NamespaceType = "NEWNS" - NEWUTS NamespaceType = "NEWUTS" - NEWIPC NamespaceType = "NEWIPC" - NEWUSER NamespaceType = "NEWUSER" -) - -var ( - nsLock sync.Mutex - supportedNamespaces = make(map[NamespaceType]bool) -) - -// nsToFile converts the namespace type to its filename -func nsToFile(ns NamespaceType) string { - switch ns { - case NEWNET: - return "net" - case NEWNS: - return "mnt" - case NEWPID: - return "pid" - case NEWIPC: - return "ipc" - case NEWUSER: - return "user" - case NEWUTS: - return "uts" - } - return "" -} - -// IsNamespaceSupported returns whether a namespace is available or -// not -func IsNamespaceSupported(ns NamespaceType) bool { - nsLock.Lock() - defer nsLock.Unlock() - supported, ok := supportedNamespaces[ns] - if ok { - return supported - } - nsFile := nsToFile(ns) - // if the namespace type is unknown, just return false - if nsFile == "" { - return false - } - _, err := os.Stat(fmt.Sprintf("/proc/self/ns/%s", nsFile)) - // a namespace is supported if it exists and we have permissions to read it - supported = err == nil - supportedNamespaces[ns] = supported - return supported -} - -func NamespaceTypes() []NamespaceType { - return []NamespaceType{ - NEWNET, - NEWPID, - NEWNS, - NEWUTS, - NEWIPC, - NEWUSER, - } -} - -// Namespace defines configuration for each namespace. It specifies an -// alternate path that is able to be joined via setns. -type Namespace struct { - Type NamespaceType `json:"type"` - Path string `json:"path"` -} - -func (n *Namespace) GetPath(pid int) string { - if n.Path != "" { - return n.Path - } - return fmt.Sprintf("/proc/%d/ns/%s", pid, nsToFile(n.Type)) -} - -func (n *Namespaces) Remove(t NamespaceType) bool { - i := n.index(t) - if i == -1 { - return false - } - *n = append((*n)[:i], (*n)[i+1:]...) - return true -} - -func (n *Namespaces) Add(t NamespaceType, path string) { - i := n.index(t) - if i == -1 { - *n = append(*n, Namespace{Type: t, Path: path}) - return - } - (*n)[i].Path = path -} - -func (n *Namespaces) index(t NamespaceType) int { - for i, ns := range *n { - if ns.Type == t { - return i - } - } - return -1 -} - -func (n *Namespaces) Contains(t NamespaceType) bool { - return n.index(t) != -1 -} - -func (n *Namespaces) PathOf(t NamespaceType) string { - i := n.index(t) - if i == -1 { - return "" - } - return (*n)[i].Path -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unsupported.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unsupported.go deleted file mode 100644 index 9a74033cea..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unsupported.go +++ /dev/null @@ -1,8 +0,0 @@ -// +build !linux,!freebsd - -package configs - -// Namespace defines configuration for each namespace. It specifies an -// alternate path that is able to be joined via setns. -type Namespace struct { -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/network.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/network.go deleted file mode 100644 index ccdb228e14..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/configs/network.go +++ /dev/null @@ -1,72 +0,0 @@ -package configs - -// Network defines configuration for a container's networking stack -// -// The network configuration can be omitted from a container causing the -// container to be setup with the host's networking stack -type Network struct { - // Type sets the networks type, commonly veth and loopback - Type string `json:"type"` - - // Name of the network interface - Name string `json:"name"` - - // The bridge to use. - Bridge string `json:"bridge"` - - // MacAddress contains the MAC address to set on the network interface - MacAddress string `json:"mac_address"` - - // Address contains the IPv4 and mask to set on the network interface - Address string `json:"address"` - - // Gateway sets the gateway address that is used as the default for the interface - Gateway string `json:"gateway"` - - // IPv6Address contains the IPv6 and mask to set on the network interface - IPv6Address string `json:"ipv6_address"` - - // IPv6Gateway sets the ipv6 gateway address that is used as the default for the interface - IPv6Gateway string `json:"ipv6_gateway"` - - // Mtu sets the mtu value for the interface and will be mirrored on both the host and - // container's interfaces if a pair is created, specifically in the case of type veth - // Note: This does not apply to loopback interfaces. - Mtu int `json:"mtu"` - - // TxQueueLen sets the tx_queuelen value for the interface and will be mirrored on both the host and - // container's interfaces if a pair is created, specifically in the case of type veth - // Note: This does not apply to loopback interfaces. - TxQueueLen int `json:"txqueuelen"` - - // HostInterfaceName is a unique name of a veth pair that resides on in the host interface of the - // container. - HostInterfaceName string `json:"host_interface_name"` - - // HairpinMode specifies if hairpin NAT should be enabled on the virtual interface - // bridge port in the case of type veth - // Note: This is unsupported on some systems. - // Note: This does not apply to loopback interfaces. - HairpinMode bool `json:"hairpin_mode"` -} - -// Routes can be specified to create entries in the route table as the container is started -// -// All of destination, source, and gateway should be either IPv4 or IPv6. -// One of the three options must be present, and omitted entries will use their -// IP family default for the route table. For IPv4 for example, setting the -// gateway to 1.2.3.4 and the interface to eth0 will set up a standard -// destination of 0.0.0.0(or *) when viewed in the route table. -type Route struct { - // Sets the destination and mask, should be a CIDR. Accepts IPv4 and IPv6 - Destination string `json:"destination"` - - // Sets the source and mask, should be a CIDR. Accepts IPv4 and IPv6 - Source string `json:"source"` - - // Sets the gateway. Accepts IPv4 and IPv6 - Gateway string `json:"gateway"` - - // The device to set this route up for, for example: eth0 - InterfaceName string `json:"interface_name"` -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/linux.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/linux.go deleted file mode 100644 index 1afc52b4bd..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/linux.go +++ /dev/null @@ -1,143 +0,0 @@ -// +build linux - -package system - -import ( - "bufio" - "fmt" - "os" - "os/exec" - "syscall" - "unsafe" -) - -// If arg2 is nonzero, set the "child subreaper" attribute of the -// calling process; if arg2 is zero, unset the attribute. When a -// process is marked as a child subreaper, all of the children -// that it creates, and their descendants, will be marked as -// having a subreaper. In effect, a subreaper fulfills the role -// of init(1) for its descendant processes. Upon termination of -// a process that is orphaned (i.e., its immediate parent has -// already terminated) and marked as having a subreaper, the -// nearest still living ancestor subreaper will receive a SIGCHLD -// signal and be able to wait(2) on the process to discover its -// termination status. -const PR_SET_CHILD_SUBREAPER = 36 - -type ParentDeathSignal int - -func (p ParentDeathSignal) Restore() error { - if p == 0 { - return nil - } - current, err := GetParentDeathSignal() - if err != nil { - return err - } - if p == current { - return nil - } - return p.Set() -} - -func (p ParentDeathSignal) Set() error { - return SetParentDeathSignal(uintptr(p)) -} - -func Execv(cmd string, args []string, env []string) error { - name, err := exec.LookPath(cmd) - if err != nil { - return err - } - - return syscall.Exec(name, args, env) -} - -func Prlimit(pid, resource int, limit syscall.Rlimit) error { - _, _, err := syscall.RawSyscall6(syscall.SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(&limit)), uintptr(unsafe.Pointer(&limit)), 0, 0) - if err != 0 { - return err - } - return nil -} - -func SetParentDeathSignal(sig uintptr) error { - if _, _, err := syscall.RawSyscall(syscall.SYS_PRCTL, syscall.PR_SET_PDEATHSIG, sig, 0); err != 0 { - return err - } - return nil -} - -func GetParentDeathSignal() (ParentDeathSignal, error) { - var sig int - _, _, err := syscall.RawSyscall(syscall.SYS_PRCTL, syscall.PR_GET_PDEATHSIG, uintptr(unsafe.Pointer(&sig)), 0) - if err != 0 { - return -1, err - } - return ParentDeathSignal(sig), nil -} - -func SetKeepCaps() error { - if _, _, err := syscall.RawSyscall(syscall.SYS_PRCTL, syscall.PR_SET_KEEPCAPS, 1, 0); err != 0 { - return err - } - - return nil -} - -func ClearKeepCaps() error { - if _, _, err := syscall.RawSyscall(syscall.SYS_PRCTL, syscall.PR_SET_KEEPCAPS, 0, 0); err != 0 { - return err - } - - return nil -} - -func Setctty() error { - if _, _, err := syscall.RawSyscall(syscall.SYS_IOCTL, 0, uintptr(syscall.TIOCSCTTY), 0); err != 0 { - return err - } - return nil -} - -// RunningInUserNS detects whether we are currently running in a user namespace. -// Copied from github.com/lxc/lxd/shared/util.go -func RunningInUserNS() bool { - file, err := os.Open("/proc/self/uid_map") - if err != nil { - // This kernel-provided file only exists if user namespaces are supported - return false - } - defer file.Close() - - buf := bufio.NewReader(file) - l, _, err := buf.ReadLine() - if err != nil { - return false - } - - line := string(l) - var a, b, c int64 - fmt.Sscanf(line, "%d %d %d", &a, &b, &c) - /* - * We assume we are in the initial user namespace if we have a full - * range - 4294967295 uids starting at uid 0. - */ - if a == 0 && b == 0 && c == 4294967295 { - return false - } - return true -} - -// SetSubreaper sets the value i as the subreaper setting for the calling process -func SetSubreaper(i int) error { - return Prctl(PR_SET_CHILD_SUBREAPER, uintptr(i), 0, 0, 0) -} - -func Prctl(option int, arg2, arg3, arg4, arg5 uintptr) (err error) { - _, _, e1 := syscall.Syscall6(syscall.SYS_PRCTL, uintptr(option), arg2, arg3, arg4, arg5, 0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/proc.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/proc.go deleted file mode 100644 index 37808a29f6..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/proc.go +++ /dev/null @@ -1,27 +0,0 @@ -package system - -import ( - "io/ioutil" - "path/filepath" - "strconv" - "strings" -) - -// look in /proc to find the process start time so that we can verify -// that this pid has started after ourself -func GetProcessStartTime(pid int) (string, error) { - data, err := ioutil.ReadFile(filepath.Join("/proc", strconv.Itoa(pid), "stat")) - if err != nil { - return "", err - } - - parts := strings.Split(string(data), " ") - // the starttime is located at pos 22 - // from the man page - // - // starttime %llu (was %lu before Linux 2.6) - // (22) The time the process started after system boot. In kernels before Linux 2.6, this - // value was expressed in jiffies. Since Linux 2.6, the value is expressed in clock ticks - // (divide by sysconf(_SC_CLK_TCK)). - return parts[22-1], nil // starts at 1 -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/setns_linux.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/setns_linux.go deleted file mode 100644 index 615ff4c827..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/setns_linux.go +++ /dev/null @@ -1,40 +0,0 @@ -package system - -import ( - "fmt" - "runtime" - "syscall" -) - -// Via http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7b21fddd087678a70ad64afc0f632e0f1071b092 -// -// We need different setns values for the different platforms and arch -// We are declaring the macro here because the SETNS syscall does not exist in th stdlib -var setNsMap = map[string]uintptr{ - "linux/386": 346, - "linux/arm64": 268, - "linux/amd64": 308, - "linux/arm": 375, - "linux/ppc": 350, - "linux/ppc64": 350, - "linux/ppc64le": 350, - "linux/s390x": 339, -} - -var sysSetns = setNsMap[fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)] - -func SysSetns() uint32 { - return uint32(sysSetns) -} - -func Setns(fd uintptr, flags uintptr) error { - ns, exists := setNsMap[fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)] - if !exists { - return fmt.Errorf("unsupported platform %s/%s", runtime.GOOS, runtime.GOARCH) - } - _, _, err := syscall.RawSyscall(ns, fd, flags, 0) - if err != 0 { - return err - } - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_386.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_386.go deleted file mode 100644 index c990065189..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_386.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build linux,386 - -package system - -import ( - "syscall" -) - -// Setuid sets the uid of the calling thread to the specified uid. -func Setuid(uid int) (err error) { - _, _, e1 := syscall.RawSyscall(syscall.SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -// Setgid sets the gid of the calling thread to the specified gid. -func Setgid(gid int) (err error) { - _, _, e1 := syscall.RawSyscall(syscall.SYS_SETGID32, uintptr(gid), 0, 0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_64.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_64.go deleted file mode 100644 index 0816bf8281..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_64.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build linux,arm64 linux,amd64 linux,ppc linux,ppc64 linux,ppc64le linux,s390x - -package system - -import ( - "syscall" -) - -// Setuid sets the uid of the calling thread to the specified uid. -func Setuid(uid int) (err error) { - _, _, e1 := syscall.RawSyscall(syscall.SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -// Setgid sets the gid of the calling thread to the specified gid. -func Setgid(gid int) (err error) { - _, _, e1 := syscall.RawSyscall(syscall.SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_arm.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_arm.go deleted file mode 100644 index 3f780f312b..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_arm.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build linux,arm - -package system - -import ( - "syscall" -) - -// Setuid sets the uid of the calling thread to the specified uid. -func Setuid(uid int) (err error) { - _, _, e1 := syscall.RawSyscall(syscall.SYS_SETUID32, uintptr(uid), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -// Setgid sets the gid of the calling thread to the specified gid. -func Setgid(gid int) (err error) { - _, _, e1 := syscall.RawSyscall(syscall.SYS_SETGID32, uintptr(gid), 0, 0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go deleted file mode 100644 index b3a07cba3e..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go +++ /dev/null @@ -1,12 +0,0 @@ -// +build cgo,linux cgo,freebsd - -package system - -/* -#include -*/ -import "C" - -func GetClockTicks() int { - return int(C.sysconf(C._SC_CLK_TCK)) -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig_notcgo.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig_notcgo.go deleted file mode 100644 index d93b5d5fdf..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig_notcgo.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build !cgo windows - -package system - -func GetClockTicks() int { - // TODO figure out a better alternative for platforms where we're missing cgo - // - // TODO Windows. This could be implemented using Win32 QueryPerformanceFrequency(). - // https://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx - // - // An example of its usage can be found here. - // https://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v=vs.85).aspx - - return 100 -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/unsupported.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/unsupported.go deleted file mode 100644 index e7cfd62b29..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/unsupported.go +++ /dev/null @@ -1,9 +0,0 @@ -// +build !linux - -package system - -// RunningInUserNS is a stub for non-Linux systems -// Always returns false -func RunningInUserNS() bool { - return false -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/xattrs_linux.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/xattrs_linux.go deleted file mode 100644 index 30f74dfb1b..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/system/xattrs_linux.go +++ /dev/null @@ -1,99 +0,0 @@ -package system - -import ( - "syscall" - "unsafe" -) - -var _zero uintptr - -// Returns the size of xattrs and nil error -// Requires path, takes allocated []byte or nil as last argument -func Llistxattr(path string, dest []byte) (size int, err error) { - pathBytes, err := syscall.BytePtrFromString(path) - if err != nil { - return -1, err - } - var newpathBytes unsafe.Pointer - if len(dest) > 0 { - newpathBytes = unsafe.Pointer(&dest[0]) - } else { - newpathBytes = unsafe.Pointer(&_zero) - } - - _size, _, errno := syscall.Syscall6(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(newpathBytes), uintptr(len(dest)), 0, 0, 0) - size = int(_size) - if errno != 0 { - return -1, errno - } - - return size, nil -} - -// Returns a []byte slice if the xattr is set and nil otherwise -// Requires path and its attribute as arguments -func Lgetxattr(path string, attr string) ([]byte, error) { - var sz int - pathBytes, err := syscall.BytePtrFromString(path) - if err != nil { - return nil, err - } - attrBytes, err := syscall.BytePtrFromString(attr) - if err != nil { - return nil, err - } - - // Start with a 128 length byte array - sz = 128 - dest := make([]byte, sz) - destBytes := unsafe.Pointer(&dest[0]) - _sz, _, errno := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(destBytes), uintptr(len(dest)), 0, 0) - - switch { - case errno == syscall.ENODATA: - return nil, errno - case errno == syscall.ENOTSUP: - return nil, errno - case errno == syscall.ERANGE: - // 128 byte array might just not be good enough, - // A dummy buffer is used ``uintptr(0)`` to get real size - // of the xattrs on disk - _sz, _, errno = syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(unsafe.Pointer(nil)), uintptr(0), 0, 0) - sz = int(_sz) - if sz < 0 { - return nil, errno - } - dest = make([]byte, sz) - destBytes := unsafe.Pointer(&dest[0]) - _sz, _, errno = syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(destBytes), uintptr(len(dest)), 0, 0) - if errno != 0 { - return nil, errno - } - case errno != 0: - return nil, errno - } - sz = int(_sz) - return dest[:sz], nil -} - -func Lsetxattr(path string, attr string, data []byte, flags int) error { - pathBytes, err := syscall.BytePtrFromString(path) - if err != nil { - return err - } - attrBytes, err := syscall.BytePtrFromString(attr) - if err != nil { - return err - } - var dataBytes unsafe.Pointer - if len(data) > 0 { - dataBytes = unsafe.Pointer(&data[0]) - } else { - dataBytes = unsafe.Pointer(&_zero) - } - _, _, errno := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(dataBytes), uintptr(len(data)), uintptr(flags), 0) - if errno != 0 { - return errno - } - return nil -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/utils/utils.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/utils/utils.go deleted file mode 100644 index 3466bfcea6..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/utils/utils.go +++ /dev/null @@ -1,121 +0,0 @@ -package utils - -import ( - "crypto/rand" - "encoding/hex" - "encoding/json" - "io" - "os" - "path/filepath" - "strings" - "syscall" -) - -const ( - exitSignalOffset = 128 -) - -// GenerateRandomName returns a new name joined with a prefix. This size -// specified is used to truncate the randomly generated value -func GenerateRandomName(prefix string, size int) (string, error) { - id := make([]byte, 32) - if _, err := io.ReadFull(rand.Reader, id); err != nil { - return "", err - } - if size > 64 { - size = 64 - } - return prefix + hex.EncodeToString(id)[:size], nil -} - -// ResolveRootfs ensures that the current working directory is -// not a symlink and returns the absolute path to the rootfs -func ResolveRootfs(uncleanRootfs string) (string, error) { - rootfs, err := filepath.Abs(uncleanRootfs) - if err != nil { - return "", err - } - return filepath.EvalSymlinks(rootfs) -} - -// ExitStatus returns the correct exit status for a process based on if it -// was signaled or exited cleanly -func ExitStatus(status syscall.WaitStatus) int { - if status.Signaled() { - return exitSignalOffset + int(status.Signal()) - } - return status.ExitStatus() -} - -// WriteJSON writes the provided struct v to w using standard json marshaling -func WriteJSON(w io.Writer, v interface{}) error { - data, err := json.Marshal(v) - if err != nil { - return err - } - _, err = w.Write(data) - return err -} - -// CleanPath makes a path safe for use with filepath.Join. This is done by not -// only cleaning the path, but also (if the path is relative) adding a leading -// '/' and cleaning it (then removing the leading '/'). This ensures that a -// path resulting from prepending another path will always resolve to lexically -// be a subdirectory of the prefixed path. This is all done lexically, so paths -// that include symlinks won't be safe as a result of using CleanPath. -func CleanPath(path string) string { - // Deal with empty strings nicely. - if path == "" { - return "" - } - - // Ensure that all paths are cleaned (especially problematic ones like - // "/../../../../../" which can cause lots of issues). - path = filepath.Clean(path) - - // If the path isn't absolute, we need to do more processing to fix paths - // such as "../../../..//some/path". We also shouldn't convert absolute - // paths to relative ones. - if !filepath.IsAbs(path) { - path = filepath.Clean(string(os.PathSeparator) + path) - // This can't fail, as (by definition) all paths are relative to root. - path, _ = filepath.Rel(string(os.PathSeparator), path) - } - - // Clean the path again for good measure. - return filepath.Clean(path) -} - -// SearchLabels searches a list of key-value pairs for the provided key and -// returns the corresponding value. The pairs must be separated with '='. -func SearchLabels(labels []string, query string) string { - for _, l := range labels { - parts := strings.SplitN(l, "=", 2) - if len(parts) < 2 { - continue - } - if parts[0] == query { - return parts[1] - } - } - return "" -} - -// Annotations returns the bundle path and user defined annotations from the -// libcontianer state. We need to remove the bundle because that is a label -// added by libcontainer. -func Annotations(labels []string) (bundle string, userAnnotations map[string]string) { - userAnnotations = make(map[string]string) - for _, l := range labels { - parts := strings.SplitN(l, "=", 2) - if len(parts) < 2 { - continue - } - if parts[0] == "bundle" { - bundle = parts[1] - } else { - userAnnotations[parts[0]] = parts[1] - } - } - return -} diff --git a/ingress/vendor/github.com/opencontainers/runc/libcontainer/utils/utils_unix.go b/ingress/vendor/github.com/opencontainers/runc/libcontainer/utils/utils_unix.go deleted file mode 100644 index 408918f27d..0000000000 --- a/ingress/vendor/github.com/opencontainers/runc/libcontainer/utils/utils_unix.go +++ /dev/null @@ -1,33 +0,0 @@ -// +build !windows - -package utils - -import ( - "io/ioutil" - "strconv" - "syscall" -) - -func CloseExecFrom(minFd int) error { - fdList, err := ioutil.ReadDir("/proc/self/fd") - if err != nil { - return err - } - for _, fi := range fdList { - fd, err := strconv.Atoi(fi.Name()) - if err != nil { - // ignore non-numeric file names - continue - } - - if fd < minFd { - // ignore descriptors lower than our specified minimum - continue - } - - // intentionally ignore errors from syscall.CloseOnExec - syscall.CloseOnExec(fd) - // the cases where this might fail are basically file descriptors that have already been closed (including and especially the one that was created when ioutil.ReadDir did the "opendir" syscall) - } - return nil -} diff --git a/ingress/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go b/ingress/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go index 85fa20be45..8be2476951 100644 --- a/ingress/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go +++ b/ingress/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go @@ -1,6 +1,7 @@ package prometheus import ( + "fmt" "runtime" "runtime/debug" "time" @@ -9,6 +10,9 @@ import ( type goCollector struct { goroutines Gauge gcDesc *Desc + + // metrics to describe and collect + metrics memStatsMetrics } // NewGoCollector returns a collector which exports metrics about the current @@ -16,20 +20,216 @@ type goCollector struct { func NewGoCollector() *goCollector { return &goCollector{ goroutines: NewGauge(GaugeOpts{ - Name: "go_goroutines", - Help: "Number of goroutines that currently exist.", + 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. @@ -47,4 +247,17 @@ func (c *goCollector) Collect(ch chan<- Metric) { } 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/ingress/vendor/github.com/prometheus/common/expfmt/decode.go b/ingress/vendor/github.com/prometheus/common/expfmt/decode.go index a98696dfc3..b72c9bedef 100644 --- a/ingress/vendor/github.com/prometheus/common/expfmt/decode.go +++ b/ingress/vendor/github.com/prometheus/common/expfmt/decode.go @@ -107,29 +107,7 @@ type protoDecoder struct { // Decode implements the Decoder interface. func (d *protoDecoder) Decode(v *dto.MetricFamily) error { _, err := pbutil.ReadDelimited(d.r, v) - if err != nil { - return err - } - if !model.IsValidMetricName(model.LabelValue(v.GetName())) { - return fmt.Errorf("invalid metric name %q", v.GetName()) - } - for _, m := range v.GetMetric() { - if m == nil { - continue - } - for _, l := range m.GetLabel() { - if l == nil { - continue - } - if !model.LabelValue(l.GetValue()).IsValid() { - return fmt.Errorf("invalid label value %q", l.GetValue()) - } - if !model.LabelName(l.GetName()).IsValid() { - return fmt.Errorf("invalid label name %q", l.GetName()) - } - } - } - return nil + return err } // textDecoder implements the Decoder interface for the text protcol. diff --git a/ingress/vendor/github.com/prometheus/common/expfmt/encode.go b/ingress/vendor/github.com/prometheus/common/expfmt/encode.go index 11839ed65c..392ca90ee2 100644 --- a/ingress/vendor/github.com/prometheus/common/expfmt/encode.go +++ b/ingress/vendor/github.com/prometheus/common/expfmt/encode.go @@ -18,9 +18,9 @@ import ( "io" "net/http" + "bitbucket.org/ww/goautoneg" "github.com/golang/protobuf/proto" "github.com/matttproud/golang_protobuf_extensions/pbutil" - "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg" dto "github.com/prometheus/client_model/go" ) diff --git a/ingress/vendor/github.com/prometheus/common/expfmt/fuzz.go b/ingress/vendor/github.com/prometheus/common/expfmt/fuzz.go index dc2eedeefc..14f9201469 100644 --- a/ingress/vendor/github.com/prometheus/common/expfmt/fuzz.go +++ b/ingress/vendor/github.com/prometheus/common/expfmt/fuzz.go @@ -20,8 +20,8 @@ import "bytes" // Fuzz text metric parser with with github.com/dvyukov/go-fuzz: // -// go-fuzz-build github.com/prometheus/common/expfmt -// go-fuzz -bin expfmt-fuzz.zip -workdir 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 { diff --git a/ingress/vendor/github.com/prometheus/common/expfmt/json_decode.go b/ingress/vendor/github.com/prometheus/common/expfmt/json_decode.go index cf86545188..67e3a0d4d6 100644 --- a/ingress/vendor/github.com/prometheus/common/expfmt/json_decode.go +++ b/ingress/vendor/github.com/prometheus/common/expfmt/json_decode.go @@ -46,7 +46,7 @@ type counter002 struct { Value float64 `json:"value"` } -func protoLabelSet(base, ext model.LabelSet) ([]*dto.LabelPair, error) { +func protoLabelSet(base, ext model.LabelSet) []*dto.LabelPair { labels := base.Clone().Merge(ext) delete(labels, model.MetricNameLabel) @@ -59,9 +59,6 @@ func protoLabelSet(base, ext model.LabelSet) ([]*dto.LabelPair, error) { pairs := make([]*dto.LabelPair, 0, len(labels)) for _, ln := range names { - if !model.LabelNameRE.MatchString(ln) { - return nil, fmt.Errorf("invalid label name %q", ln) - } lv := labels[model.LabelName(ln)] pairs = append(pairs, &dto.LabelPair{ @@ -70,7 +67,7 @@ func protoLabelSet(base, ext model.LabelSet) ([]*dto.LabelPair, error) { }) } - return pairs, nil + return pairs } func (d *json2Decoder) more() error { @@ -105,12 +102,8 @@ func (d *json2Decoder) more() error { } for _, ctr := range values { - labels, err := protoLabelSet(e.BaseLabels, ctr.Labels) - if err != nil { - return err - } f.Metric = append(f.Metric, &dto.Metric{ - Label: labels, + Label: protoLabelSet(e.BaseLabels, ctr.Labels), Untyped: &dto.Untyped{ Value: proto.Float64(ctr.Value), }, @@ -138,13 +131,8 @@ func (d *json2Decoder) more() error { // this remains "percentile" hist.Labels["percentile"] = model.LabelValue(q) - labels, err := protoLabelSet(e.BaseLabels, hist.Labels) - if err != nil { - return err - } - f.Metric = append(f.Metric, &dto.Metric{ - Label: labels, + Label: protoLabelSet(e.BaseLabels, hist.Labels), Untyped: &dto.Untyped{ Value: proto.Float64(value), }, diff --git a/ingress/vendor/github.com/prometheus/common/expfmt/text_parse.go b/ingress/vendor/github.com/prometheus/common/expfmt/text_parse.go index bd170b1675..84433bc4f6 100644 --- a/ingress/vendor/github.com/prometheus/common/expfmt/text_parse.go +++ b/ingress/vendor/github.com/prometheus/common/expfmt/text_parse.go @@ -108,13 +108,6 @@ func (p *TextParser) TextToMetricFamilies(in io.Reader) (map[string]*dto.MetricF delete(p.metricFamiliesByName, k) } } - // If p.err is io.EOF now, we have run into a premature end of the input - // stream. Turn this error into something nicer and more - // meaningful. (io.EOF is often used as a signal for the legitimate end - // of an input stream.) - if p.err == io.EOF { - p.parseError("unexpected end of input stream") - } return p.metricFamiliesByName, p.err } diff --git a/ingress/vendor/github.com/prometheus/common/model/alert.go b/ingress/vendor/github.com/prometheus/common/model/alert.go index 35e739c7ad..b027e9f3db 100644 --- a/ingress/vendor/github.com/prometheus/common/model/alert.go +++ b/ingress/vendor/github.com/prometheus/common/model/alert.go @@ -35,9 +35,8 @@ type Alert struct { 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"` - GeneratorURL string `json:"generatorURL"` + 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. @@ -61,16 +60,10 @@ func (a *Alert) String() string { // Resolved returns true iff the activity interval ended in the past. func (a *Alert) Resolved() bool { - return a.ResolvedAt(time.Now()) -} - -// ResolvedAt returns true off the activity interval ended before -// the given timestamp. -func (a *Alert) ResolvedAt(ts time.Time) bool { if a.EndsAt.IsZero() { return false } - return !a.EndsAt.After(ts) + return !a.EndsAt.After(time.Now()) } // Status returns the status of the alert. @@ -81,26 +74,6 @@ func (a *Alert) Status() AlertStatus { return AlertFiring } -// Validate checks whether the alert data is inconsistent. -func (a *Alert) Validate() error { - if a.StartsAt.IsZero() { - return fmt.Errorf("start time missing") - } - if !a.EndsAt.IsZero() && a.EndsAt.Before(a.StartsAt) { - return fmt.Errorf("start time must be before end time") - } - if err := a.Labels.Validate(); err != nil { - return fmt.Errorf("invalid label set: %s", err) - } - if len(a.Labels) == 0 { - return fmt.Errorf("at least one label pair required") - } - if err := a.Annotations.Validate(); err != nil { - return fmt.Errorf("invalid annotations: %s", err) - } - return nil -} - // Alert is a list of alerts that can be sorted in chronological order. type Alerts []*Alert diff --git a/ingress/vendor/github.com/prometheus/common/model/fnv.go b/ingress/vendor/github.com/prometheus/common/model/fnv.go deleted file mode 100644 index 038fc1c900..0000000000 --- a/ingress/vendor/github.com/prometheus/common/model/fnv.go +++ /dev/null @@ -1,42 +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 - -// Inline and byte-free variant of hash/fnv's fnv64a. - -const ( - offset64 = 14695981039346656037 - prime64 = 1099511628211 -) - -// hashNew initializies a new fnv64a hash value. -func hashNew() uint64 { - return offset64 -} - -// hashAdd adds a string to a fnv64a hash value, returning the updated hash. -func hashAdd(h uint64, s string) uint64 { - for i := 0; i < len(s); i++ { - h ^= uint64(s[i]) - h *= prime64 - } - return h -} - -// hashAddByte adds a byte to a fnv64a hash value, returning the updated hash. -func hashAddByte(h uint64, b byte) uint64 { - h ^= uint64(b) - h *= prime64 - return h -} diff --git a/ingress/vendor/github.com/prometheus/common/model/labels.go b/ingress/vendor/github.com/prometheus/common/model/labels.go index 3b72e7ff8f..6459c8f791 100644 --- a/ingress/vendor/github.com/prometheus/common/model/labels.go +++ b/ingress/vendor/github.com/prometheus/common/model/labels.go @@ -17,8 +17,8 @@ import ( "encoding/json" "fmt" "regexp" + "sort" "strings" - "unicode/utf8" ) const ( @@ -87,19 +87,6 @@ var LabelNameRE = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$") // therewith. type LabelName string -// IsValid is true iff the label name matches the pattern of LabelNameRE. -func (ln LabelName) IsValid() bool { - if len(ln) == 0 { - return false - } - for i, b := range ln { - if !((b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || b == '_' || (b >= '0' && b <= '9' && i > 0)) { - return false - } - } - return true -} - // UnmarshalYAML implements the yaml.Unmarshaler interface. func (ln *LabelName) UnmarshalYAML(unmarshal func(interface{}) error) error { var s string @@ -152,11 +139,6 @@ func (l LabelNames) String() string { // A LabelValue is an associated value for a LabelName. type LabelValue string -// IsValid returns true iff the string is a valid UTF8. -func (lv LabelValue) IsValid() bool { - return utf8.ValidString(string(lv)) -} - // LabelValues is a sortable LabelValue slice. It implements sort.Interface. type LabelValues []LabelValue @@ -165,7 +147,7 @@ func (l LabelValues) Len() int { } func (l LabelValues) Less(i, j int) bool { - return string(l[i]) < string(l[j]) + return sort.StringsAreSorted([]string{string(l[i]), string(l[j])}) } func (l LabelValues) Swap(i, j int) { diff --git a/ingress/vendor/github.com/prometheus/common/model/labelset.go b/ingress/vendor/github.com/prometheus/common/model/labelset.go index 5f931cdb9b..142b9d1e2d 100644 --- a/ingress/vendor/github.com/prometheus/common/model/labelset.go +++ b/ingress/vendor/github.com/prometheus/common/model/labelset.go @@ -27,21 +27,6 @@ import ( // match. type LabelSet map[LabelName]LabelValue -// Validate checks whether all names and values in the label set -// are valid. -func (ls LabelSet) Validate() error { - for ln, lv := range ls { - if !ln.IsValid() { - return fmt.Errorf("invalid name %q", ln) - } - if !lv.IsValid() { - return fmt.Errorf("invalid value %q", lv) - } - } - return nil -} - -// Equal returns true iff both label sets have exactly the same key/value pairs. func (ls LabelSet) Equal(o LabelSet) bool { if len(ls) != len(o) { return false @@ -105,7 +90,6 @@ func (ls LabelSet) Before(o LabelSet) bool { return false } -// Clone returns a copy of the label set. func (ls LabelSet) Clone() LabelSet { lsn := make(LabelSet, len(ls)) for ln, lv := range ls { diff --git a/ingress/vendor/github.com/prometheus/common/model/metric.go b/ingress/vendor/github.com/prometheus/common/model/metric.go index a5da59a505..25fc3c9425 100644 --- a/ingress/vendor/github.com/prometheus/common/model/metric.go +++ b/ingress/vendor/github.com/prometheus/common/model/metric.go @@ -15,15 +15,11 @@ package model import ( "fmt" - "regexp" "sort" "strings" ) -var ( - separator = []byte{0} - MetricNameRE = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_:]*$`) -) +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. @@ -83,16 +79,3 @@ func (m Metric) Fingerprint() Fingerprint { func (m Metric) FastFingerprint() Fingerprint { return LabelSet(m).FastFingerprint() } - -// IsValidMetricName returns true iff name matches the pattern of MetricNameRE. -func IsValidMetricName(n LabelValue) bool { - if len(n) == 0 { - return false - } - for i, b := range n { - if !((b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || b == '_' || b == ':' || (b >= '0' && b <= '9' && i > 0)) { - return false - } - } - return true -} diff --git a/ingress/vendor/github.com/prometheus/common/model/signature.go b/ingress/vendor/github.com/prometheus/common/model/signature.go index 8762b13c63..28f370065a 100644 --- a/ingress/vendor/github.com/prometheus/common/model/signature.go +++ b/ingress/vendor/github.com/prometheus/common/model/signature.go @@ -14,7 +14,11 @@ package model import ( + "bytes" + "hash" + "hash/fnv" "sort" + "sync" ) // SeparatorByte is a byte that cannot occur in valid UTF-8 sequences and is @@ -24,9 +28,30 @@ const SeparatorByte byte = 255 var ( // cache the signature of an empty label set. - emptyLabelSignature = hashNew() + 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.) @@ -41,14 +66,18 @@ func LabelsToSignature(labels map[string]string) uint64 { } sort.Strings(labelNames) - sum := hashNew() + hb := getHashAndBuf() + defer putHashAndBuf(hb) + for _, labelName := range labelNames { - sum = hashAdd(sum, labelName) - sum = hashAddByte(sum, SeparatorByte) - sum = hashAdd(sum, labels[labelName]) - sum = hashAddByte(sum, SeparatorByte) + 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 sum + return hb.h.Sum64() } // labelSetToFingerprint works exactly as LabelsToSignature but takes a LabelSet as @@ -64,14 +93,18 @@ func labelSetToFingerprint(ls LabelSet) Fingerprint { } sort.Sort(labelNames) - sum := hashNew() + hb := getHashAndBuf() + defer putHashAndBuf(hb) + for _, labelName := range labelNames { - sum = hashAdd(sum, string(labelName)) - sum = hashAddByte(sum, SeparatorByte) - sum = hashAdd(sum, string(ls[labelName])) - sum = hashAddByte(sum, SeparatorByte) + 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(sum) + return Fingerprint(hb.h.Sum64()) } // labelSetToFastFingerprint works similar to labelSetToFingerprint but uses a @@ -83,12 +116,17 @@ func labelSetToFastFingerprint(ls LabelSet) Fingerprint { } var result uint64 + hb := getHashAndBuf() + defer putHashAndBuf(hb) + for labelName, labelValue := range ls { - sum := hashNew() - sum = hashAdd(sum, string(labelName)) - sum = hashAddByte(sum, SeparatorByte) - sum = hashAdd(sum, string(labelValue)) - result ^= sum + 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) } @@ -98,20 +136,24 @@ func labelSetToFastFingerprint(ls LabelSet) Fingerprint { // 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(labels) == 0 { + if len(m) == 0 || len(labels) == 0 { return emptyLabelSignature } sort.Sort(LabelNames(labels)) - sum := hashNew() + hb := getHashAndBuf() + defer putHashAndBuf(hb) + for _, label := range labels { - sum = hashAdd(sum, string(label)) - sum = hashAddByte(sum, SeparatorByte) - sum = hashAdd(sum, string(m[label])) - sum = hashAddByte(sum, SeparatorByte) + 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 sum + return hb.h.Sum64() } // SignatureWithoutLabels works like LabelsToSignature but takes a Metric as @@ -133,12 +175,16 @@ func SignatureWithoutLabels(m Metric, labels map[LabelName]struct{}) uint64 { } sort.Sort(labelNames) - sum := hashNew() + hb := getHashAndBuf() + defer putHashAndBuf(hb) + for _, labelName := range labelNames { - sum = hashAdd(sum, string(labelName)) - sum = hashAddByte(sum, SeparatorByte) - sum = hashAdd(sum, string(m[labelName])) - sum = hashAddByte(sum, SeparatorByte) + 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 sum + return hb.h.Sum64() } diff --git a/ingress/vendor/github.com/prometheus/common/model/silence.go b/ingress/vendor/github.com/prometheus/common/model/silence.go index 7538e29977..b4b96eae9d 100644 --- a/ingress/vendor/github.com/prometheus/common/model/silence.go +++ b/ingress/vendor/github.com/prometheus/common/model/silence.go @@ -44,21 +44,6 @@ func (m *Matcher) UnmarshalJSON(b []byte) error { return nil } -// Validate returns true iff all fields of the matcher have valid values. -func (m *Matcher) Validate() error { - if !m.Name.IsValid() { - return fmt.Errorf("invalid name %q", m.Name) - } - if m.IsRegex { - if _, err := regexp.Compile(m.Value); err != nil { - return fmt.Errorf("invalid regular expression %q", m.Value) - } - } else if !LabelValue(m.Value).IsValid() || len(m.Value) == 0 { - return fmt.Errorf("invalid value %q", m.Value) - } - return nil -} - // Silence defines the representation of a silence definiton // in the Prometheus eco-system. type Silence struct { @@ -73,34 +58,3 @@ type Silence struct { CreatedBy string `json:"createdBy"` Comment string `json:"comment,omitempty"` } - -// Validate returns true iff all fields of the silence have valid values. -func (s *Silence) Validate() error { - if len(s.Matchers) == 0 { - return fmt.Errorf("at least one matcher required") - } - for _, m := range s.Matchers { - if err := m.Validate(); err != nil { - return fmt.Errorf("invalid matcher: %s", err) - } - } - if s.StartsAt.IsZero() { - return fmt.Errorf("start time missing") - } - if s.EndsAt.IsZero() { - return fmt.Errorf("end time missing") - } - if s.EndsAt.Before(s.StartsAt) { - return fmt.Errorf("start time must be before end time") - } - if s.CreatedBy == "" { - return fmt.Errorf("creator information missing") - } - if s.Comment == "" { - return fmt.Errorf("comment missing") - } - if s.CreatedAt.IsZero() { - return fmt.Errorf("creation timestamp missing") - } - return nil -} diff --git a/ingress/vendor/github.com/prometheus/common/model/time.go b/ingress/vendor/github.com/prometheus/common/model/time.go index 548968aebe..ebc8bf6cc8 100644 --- a/ingress/vendor/github.com/prometheus/common/model/time.go +++ b/ingress/vendor/github.com/prometheus/common/model/time.go @@ -163,70 +163,51 @@ func (t *Time) UnmarshalJSON(b []byte) error { // This type should not propagate beyond the scope of input/output processing. type Duration time.Duration -var durationRE = regexp.MustCompile("^([0-9]+)(y|w|d|h|m|s|ms)$") - // StringToDuration parses a string into a time.Duration, assuming that a year -// always has 365d, a week always has 7d, and a day always has 24h. +// 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) } - var ( - n, _ = strconv.Atoi(matches[1]) - dur = time.Duration(n) * time.Millisecond - ) - switch unit := matches[2]; unit { - case "y": - dur *= 1000 * 60 * 60 * 24 * 365 - case "w": - dur *= 1000 * 60 * 60 * 24 * 7 + durSeconds, _ := strconv.Atoi(matches[1]) + dur := time.Duration(durSeconds) * time.Second + unit := matches[2] + switch unit { case "d": - dur *= 1000 * 60 * 60 * 24 + dur *= 60 * 60 * 24 case "h": - dur *= 1000 * 60 * 60 + dur *= 60 * 60 case "m": - dur *= 1000 * 60 + dur *= 60 case "s": - dur *= 1000 - case "ms": - // Value already correct + 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 { - var ( - ms = int64(time.Duration(d) / time.Millisecond) - unit = "ms" - ) + seconds := int64(time.Duration(d) / time.Second) factors := map[string]int64{ - "y": 1000 * 60 * 60 * 24 * 365, - "w": 1000 * 60 * 60 * 24 * 7, - "d": 1000 * 60 * 60 * 24, - "h": 1000 * 60 * 60, - "m": 1000 * 60, - "s": 1000, - "ms": 1, + "d": 60 * 60 * 24, + "h": 60 * 60, + "m": 60, + "s": 1, } - + unit := "s" switch int64(0) { - case ms % factors["y"]: - unit = "y" - case ms % factors["w"]: - unit = "w" - case ms % factors["d"]: + case seconds % factors["d"]: unit = "d" - case ms % factors["h"]: + case seconds % factors["h"]: unit = "h" - case ms % factors["m"]: + case seconds % factors["m"]: unit = "m" - case ms % factors["s"]: - unit = "s" } - return fmt.Sprintf("%v%v", ms/factors[unit], unit) + return fmt.Sprintf("%v%v", seconds/factors[unit], unit) } // MarshalYAML implements the yaml.Marshaler interface. diff --git a/ingress/vendor/github.com/prometheus/common/model/value.go b/ingress/vendor/github.com/prometheus/common/model/value.go index dbf5d10e43..10ffb0bd61 100644 --- a/ingress/vendor/github.com/prometheus/common/model/value.go +++ b/ingress/vendor/github.com/prometheus/common/model/value.go @@ -16,7 +16,6 @@ package model import ( "encoding/json" "fmt" - "math" "sort" "strconv" "strings" @@ -44,14 +43,8 @@ func (v *SampleValue) UnmarshalJSON(b []byte) error { return nil } -// Equal returns true if the value of v and o is equal or if both are NaN. Note -// that v==o is false if both are NaN. If you want the conventional float -// behavior, use == to compare two SampleValues. func (v SampleValue) Equal(o SampleValue) bool { - if v == o { - return true - } - return math.IsNaN(float64(v)) && math.IsNaN(float64(o)) + return v == o } func (v SampleValue) String() string { @@ -84,9 +77,9 @@ func (s *SamplePair) UnmarshalJSON(b []byte) error { } // Equal returns true if this SamplePair and o have equal Values and equal -// Timestamps. The sematics of Value equality is defined by SampleValue.Equal. +// Timestamps. func (s *SamplePair) Equal(o *SamplePair) bool { - return s == o || (s.Value.Equal(o.Value) && s.Timestamp.Equal(o.Timestamp)) + return s == o || (s.Value == o.Value && s.Timestamp.Equal(o.Timestamp)) } func (s SamplePair) String() string { @@ -100,8 +93,7 @@ type Sample struct { Timestamp Time `json:"timestamp"` } -// Equal compares first the metrics, then the timestamp, then the value. The -// sematics of value equality is defined by SampleValue.Equal. +// Equal compares first the metrics, then the timestamp, then the value. func (s *Sample) Equal(o *Sample) bool { if s == o { return true @@ -113,7 +105,7 @@ func (s *Sample) Equal(o *Sample) bool { if !s.Timestamp.Equal(o.Timestamp) { return false } - if s.Value.Equal(o.Value) { + if s.Value != o.Value { return false } diff --git a/ingress/vendor/github.com/prometheus/procfs/.travis.yml b/ingress/vendor/github.com/prometheus/procfs/.travis.yml index b1e6743f9c..25e169dd01 100644 --- a/ingress/vendor/github.com/prometheus/procfs/.travis.yml +++ b/ingress/vendor/github.com/prometheus/procfs/.travis.yml @@ -1,5 +1,7 @@ +sudo: false language: go go: - 1.3 - 1.4 + - 1.5 - tip diff --git a/ingress/vendor/github.com/prometheus/procfs/AUTHORS.md b/ingress/vendor/github.com/prometheus/procfs/AUTHORS.md index 6eb1935cdf..f1c27ccb01 100644 --- a/ingress/vendor/github.com/prometheus/procfs/AUTHORS.md +++ b/ingress/vendor/github.com/prometheus/procfs/AUTHORS.md @@ -8,4 +8,13 @@ Maintainers of this repository: The following individuals have contributed code to this repository (listed in alphabetical order): -* Tobias Schmidt +* 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/ingress/vendor/github.com/prometheus/procfs/Makefile b/ingress/vendor/github.com/prometheus/procfs/Makefile new file mode 100644 index 0000000000..e8acbbc5ec --- /dev/null +++ b/ingress/vendor/github.com/prometheus/procfs/Makefile @@ -0,0 +1,6 @@ +ci: + go fmt + go vet + go test -v ./... + go get github.com/golang/lint/golint + golint *.go diff --git a/ingress/vendor/github.com/prometheus/procfs/README.md b/ingress/vendor/github.com/prometheus/procfs/README.md index 761d31cd4d..6e7ee6b8b7 100644 --- a/ingress/vendor/github.com/prometheus/procfs/README.md +++ b/ingress/vendor/github.com/prometheus/procfs/README.md @@ -3,5 +3,8 @@ This procfs package provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc. +*WARNING*: This package is a work in progress. Its API may still break in +backwards-incompatible ways without warnings. Use it at your own risk. + [![GoDoc](https://godoc.org/github.com/prometheus/procfs?status.png)](https://godoc.org/github.com/prometheus/procfs) [![Build Status](https://travis-ci.org/prometheus/procfs.svg?branch=master)](https://travis-ci.org/prometheus/procfs) diff --git a/ingress/vendor/github.com/prometheus/procfs/fs.go b/ingress/vendor/github.com/prometheus/procfs/fs.go index 838474aba4..6a8d97b11e 100644 --- a/ingress/vendor/github.com/prometheus/procfs/fs.go +++ b/ingress/vendor/github.com/prometheus/procfs/fs.go @@ -34,3 +34,7 @@ func (fs FS) stat(p string) (os.FileInfo, error) { 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/ingress/vendor/github.com/prometheus/procfs/ipvs.go b/ingress/vendor/github.com/prometheus/procfs/ipvs.go new file mode 100644 index 0000000000..26da5000e3 --- /dev/null +++ b/ingress/vendor/github.com/prometheus/procfs/ipvs.go @@ -0,0 +1,223 @@ +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/ingress/vendor/github.com/prometheus/procfs/mdstat.go b/ingress/vendor/github.com/prometheus/procfs/mdstat.go new file mode 100644 index 0000000000..09ed6b5ebc --- /dev/null +++ b/ingress/vendor/github.com/prometheus/procfs/mdstat.go @@ -0,0 +1,158 @@ +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/ingress/vendor/github.com/prometheus/procfs/proc.go b/ingress/vendor/github.com/prometheus/procfs/proc.go index 21445cf176..efc8502789 100644 --- a/ingress/vendor/github.com/prometheus/procfs/proc.go +++ b/ingress/vendor/github.com/prometheus/procfs/proc.go @@ -24,9 +24,13 @@ 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. +// Self returns a process for the current process read via /proc/self. func Self() (Proc, error) { - return NewProc(os.Getpid()) + fs, err := NewFS(DefaultMountPoint) + if err != nil { + return Proc{}, err + } + return fs.Self() } // NewProc returns a process for the given pid under /proc. @@ -35,7 +39,6 @@ func NewProc(pid int) (Proc, error) { if err != nil { return Proc{}, err } - return fs.NewProc(pid) } @@ -45,16 +48,27 @@ func AllProcs() (Procs, error) { 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 } @@ -96,9 +110,24 @@ func (p Proc) CmdLine() ([]string, error) { 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() @@ -118,6 +147,26 @@ func (p Proc) FileDescriptors() ([]uintptr, error) { 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) { @@ -147,3 +196,7 @@ func (p Proc) fileDescriptors() ([]string, error) { 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/ingress/vendor/github.com/prometheus/procfs/proc_io.go b/ingress/vendor/github.com/prometheus/procfs/proc_io.go new file mode 100644 index 0000000000..7c6dc86970 --- /dev/null +++ b/ingress/vendor/github.com/prometheus/procfs/proc_io.go @@ -0,0 +1,54 @@ +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/ingress/vendor/github.com/spf13/cobra/.gitignore b/ingress/vendor/github.com/spf13/cobra/.gitignore index 36d1a84d39..1b8c7c2611 100644 --- a/ingress/vendor/github.com/spf13/cobra/.gitignore +++ b/ingress/vendor/github.com/spf13/cobra/.gitignore @@ -19,6 +19,18 @@ _cgo_export.* _testmain.go +# Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore +# swap +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +# session +Session.vim +# temporary +.netrwhist +*~ +# auto-generated tag files +tags + *.exe cobra.test diff --git a/ingress/vendor/github.com/spf13/cobra/.travis.yml b/ingress/vendor/github.com/spf13/cobra/.travis.yml index e11869ba32..6e84be54d1 100644 --- a/ingress/vendor/github.com/spf13/cobra/.travis.yml +++ b/ingress/vendor/github.com/spf13/cobra/.travis.yml @@ -1,9 +1,14 @@ language: go go: - - 1.3.3 - - 1.4.2 - - 1.5.1 + - 1.4.3 + - 1.5.4 + - 1.6.3 - tip + +matrix: + allow_failures: + - go: tip + before_install: - mkdir -p bin - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.3/shellcheck diff --git a/ingress/vendor/github.com/spf13/cobra/README.md b/ingress/vendor/github.com/spf13/cobra/README.md index f326c7fa84..b338a0e442 100644 --- a/ingress/vendor/github.com/spf13/cobra/README.md +++ b/ingress/vendor/github.com/spf13/cobra/README.md @@ -22,6 +22,7 @@ Many of the most widely used Go projects are built using Cobra including: [![Build Status](https://travis-ci.org/spf13/cobra.svg "Travis CI status")](https://travis-ci.org/spf13/cobra) [![CircleCI status](https://circleci.com/gh/spf13/cobra.png?circle-token=:circle-token "CircleCI status")](https://circleci.com/gh/spf13/cobra) +[![GoDoc](https://godoc.org/github.com/spf13/cobra?status.svg)](https://godoc.org/github.com/spf13/cobra) ![cobra](https://cloud.githubusercontent.com/assets/173412/10911369/84832a8e-8212-11e5-9f82-cc96660a4794.gif) @@ -171,6 +172,12 @@ func main() { Cobra provides its own program that will create your application and add any commands you want. It's the easiest way to incorporate Cobra into your application. +In order to use the cobra command, compile it using the following command: + + > go install github.com/spf13/cobra/cobra + +This will create the cobra executable under your go path bin directory! + ### cobra init The `cobra init [yourApp]` command will create your initial application code @@ -226,13 +233,27 @@ The cobra generator will be easier to use if you provide a simple configuration file which will help you eliminate providing a bunch of repeated information in flags over and over. -an example ~/.cobra.yaml file: +An example ~/.cobra.yaml file: ```yaml author: Steve Francia license: MIT ``` +You can specify no license by setting `license` to `none` or you can specify +a custom license: + +```yaml +license: + header: This file is part of {{ .appName }}. + text: | + {{ .copyright }} + + This is my license. There are many like it, but this one is mine. + My license is my best friend. It is my life. I must master it as I must + master my life. +``` + ## Manually implementing Cobra To manually implement cobra you need to create a bare main.go file and a RootCmd file. diff --git a/ingress/vendor/github.com/spf13/cobra/bash_completions.go b/ingress/vendor/github.com/spf13/cobra/bash_completions.go index 3f33bb0ec8..236dee67f2 100644 --- a/ingress/vendor/github.com/spf13/cobra/bash_completions.go +++ b/ingress/vendor/github.com/spf13/cobra/bash_completions.go @@ -116,12 +116,12 @@ __handle_reply() fi local completions - if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then - completions=("${must_have_one_flag[@]}") - elif [[ ${#must_have_one_noun[@]} -ne 0 ]]; then + completions=("${commands[@]}") + if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions=("${must_have_one_noun[@]}") - else - completions=("${commands[@]}") + fi + if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then + completions+=("${must_have_one_flag[@]}") fi COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") ) @@ -167,6 +167,11 @@ __handle_flag() must_have_one_flag=() fi + # if you set a flag which only applies to this command, don't show subcommands + if __contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then + commands=() + fi + # keep flag value with flagname as flaghash if [ -n "${flagvalue}" ] ; then flaghash[${flagname}]=${flagvalue} @@ -263,6 +268,7 @@ func postscript(w io.Writer, name string) error { local c=0 local flags=() local two_word_flags=() + local local_nonpersistent_flags=() local flags_with_completion=() local flags_completion=() local commands=("%s") @@ -360,7 +366,7 @@ func writeFlagHandler(name string, annotations map[string][]string, w io.Writer) } func writeShortFlag(flag *pflag.Flag, w io.Writer) error { - b := (flag.Value.Type() == "bool") + b := (len(flag.NoOptDefVal) > 0) name := flag.Shorthand format := " " if !b { @@ -374,7 +380,7 @@ func writeShortFlag(flag *pflag.Flag, w io.Writer) error { } func writeFlag(flag *pflag.Flag, w io.Writer) error { - b := (flag.Value.Type() == "bool") + b := (len(flag.NoOptDefVal) > 0) name := flag.Name format := " flags+=(\"--%s" if !b { @@ -387,9 +393,24 @@ func writeFlag(flag *pflag.Flag, w io.Writer) error { return writeFlagHandler("--"+name, flag.Annotations, w) } +func writeLocalNonPersistentFlag(flag *pflag.Flag, w io.Writer) error { + b := (len(flag.NoOptDefVal) > 0) + name := flag.Name + format := " local_nonpersistent_flags+=(\"--%s" + if !b { + format += "=" + } + format += "\")\n" + if _, err := fmt.Fprintf(w, format, name); err != nil { + return err + } + return nil +} + func writeFlags(cmd *Command, w io.Writer) error { _, err := fmt.Fprintf(w, ` flags=() two_word_flags=() + local_nonpersistent_flags=() flags_with_completion=() flags_completion=() @@ -397,6 +418,7 @@ func writeFlags(cmd *Command, w io.Writer) error { if err != nil { return err } + localNonPersistentFlags := cmd.LocalNonPersistentFlags() var visitErr error cmd.NonInheritedFlags().VisitAll(func(flag *pflag.Flag) { if err := writeFlag(flag, w); err != nil { @@ -409,6 +431,12 @@ func writeFlags(cmd *Command, w io.Writer) error { return } } + if localNonPersistentFlags.Lookup(flag.Name) != nil { + if err := writeLocalNonPersistentFlag(flag, w); err != nil { + visitErr = err + return + } + } }) if visitErr != nil { return visitErr diff --git a/ingress/vendor/github.com/spf13/cobra/bash_completions.md b/ingress/vendor/github.com/spf13/cobra/bash_completions.md index 84d5b012f4..6e3b71f13d 100644 --- a/ingress/vendor/github.com/spf13/cobra/bash_completions.md +++ b/ingress/vendor/github.com/spf13/cobra/bash_completions.md @@ -117,7 +117,7 @@ cmd := &cobra.Command{ ``` The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by -the completion aglorithm if entered manually, e.g. in: +the completion algorithm if entered manually, e.g. in: ```bash # kubectl get rc [tab][tab] @@ -175,7 +175,7 @@ So while there are many other files in the CWD it only shows me subdirs and thos # Specifiy custom flag completion -Similar to the filename completion and filtering usingn cobra.BashCompFilenameExt, you can specifiy +Similar to the filename completion and filtering using cobra.BashCompFilenameExt, you can specifiy a custom flag completion function with cobra.BashCompCustom: ```go diff --git a/ingress/vendor/github.com/spf13/cobra/cobra.go b/ingress/vendor/github.com/spf13/cobra/cobra.go index 0c4e2e5de1..93a2c0f3a7 100644 --- a/ingress/vendor/github.com/spf13/cobra/cobra.go +++ b/ingress/vendor/github.com/spf13/cobra/cobra.go @@ -41,6 +41,10 @@ var initializers []func() // Set this to true to enable it var EnablePrefixMatching = false +//EnableCommandSorting controls sorting of the slice of commands, which is turned on by default. +//To disable sorting, set it to false. +var EnableCommandSorting = true + //AddTemplateFunc adds a template function that's available to Usage and Help //template generation. func AddTemplateFunc(name string, tmplFunc interface{}) { diff --git a/ingress/vendor/github.com/spf13/cobra/command.go b/ingress/vendor/github.com/spf13/cobra/command.go index 0efeeb1957..083e4ea7f4 100644 --- a/ingress/vendor/github.com/spf13/cobra/command.go +++ b/ingress/vendor/github.com/spf13/cobra/command.go @@ -21,6 +21,7 @@ import ( "io" "os" "path/filepath" + "sort" "strings" flag "github.com/spf13/pflag" @@ -103,11 +104,13 @@ type Command struct { commandsMaxUseLen int commandsMaxCommandPathLen int commandsMaxNameLen int + // is commands slice are sorted or not + commandsAreSorted bool flagErrorBuf *bytes.Buffer args []string // actual args parsed from flags - output *io.Writer // nil means stderr; use Out() method instead + output *io.Writer // out writer if set in SetOutput(w) usageFunc func(*Command) error // Usage can be defined by application usageTemplate string // Can be defined by Application helpTemplate string // Can be defined by Application @@ -120,6 +123,9 @@ type Command struct { DisableSuggestions bool // If displaying suggestions, allows to set the minimum levenshtein distance to display, must be > 0 SuggestionsMinimumDistance int + + // Disable the flag parsing. If this is true all flags will be passed to the command as arguments. + DisableFlagParsing bool } // os.Args[1:] by default, if desired, can be overridden @@ -128,25 +134,6 @@ func (c *Command) SetArgs(a []string) { c.args = a } -func (c *Command) getOut(def io.Writer) io.Writer { - if c.output != nil { - return *c.output - } - - if c.HasParent() { - return c.parent.Out() - } - return def -} - -func (c *Command) Out() io.Writer { - return c.getOut(os.Stderr) -} - -func (c *Command) getOutOrStdout() io.Writer { - return c.getOut(os.Stdout) -} - // SetOutput sets the destination for usage and error messages. // If output is nil, os.Stderr is used. func (c *Command) SetOutput(output io.Writer) { @@ -189,6 +176,26 @@ func (c *Command) SetGlobalNormalizationFunc(n func(f *flag.FlagSet, name string } } +func (c *Command) OutOrStdout() io.Writer { + return c.getOut(os.Stdout) +} + +func (c *Command) OutOrStderr() io.Writer { + return c.getOut(os.Stderr) +} + +func (c *Command) getOut(def io.Writer) io.Writer { + if c.output != nil { + return *c.output + } + if c.HasParent() { + return c.parent.getOut(def) + } + return def +} + +// UsageFunc returns either the function set by SetUsageFunc for this command +// or a parent, or it returns a default usage function func (c *Command) UsageFunc() (f func(*Command) error) { if c.usageFunc != nil { return c.usageFunc @@ -198,16 +205,24 @@ func (c *Command) UsageFunc() (f func(*Command) error) { return c.parent.UsageFunc() } return func(c *Command) error { - err := tmpl(c.Out(), c.UsageTemplate(), c) + c.mergePersistentFlags() + err := tmpl(c.OutOrStderr(), c.UsageTemplate(), c) if err != nil { - fmt.Print(err) + c.Println(err) } return err } } +// Output the usage for the command +// Used when a user provides invalid input +// Can be defined by user by overriding UsageFunc +func (c *Command) Usage() error { + return c.UsageFunc()(c) +} + // HelpFunc returns either the function set by SetHelpFunc for this command -// or a parent, or it returns a function which calls c.Help() +// or a parent, or it returns a function with default help behavior func (c *Command) HelpFunc() func(*Command, []string) { cmd := c for cmd != nil { @@ -217,13 +232,31 @@ func (c *Command) HelpFunc() func(*Command, []string) { cmd = cmd.parent } return func(*Command, []string) { - err := c.Help() + c.mergePersistentFlags() + err := tmpl(c.OutOrStdout(), c.HelpTemplate(), c) if err != nil { c.Println(err) } } } +// Output the help for the command +// Used when a user calls help [command] +// Can be defined by user by overriding HelpFunc +func (c *Command) Help() error { + c.HelpFunc()(c, []string{}) + return nil +} + +func (c *Command) UsageString() string { + tmpOutput := c.output + bb := new(bytes.Buffer) + c.SetOutput(bb) + c.Usage() + c.output = tmpOutput + return bb.String() +} + var minUsagePadding = 25 func (c *Command) UsagePadding() int { @@ -261,7 +294,7 @@ func (c *Command) UsageTemplate() string { return c.parent.UsageTemplate() } return `Usage:{{if .Runnable}} - {{if .HasFlags}}{{appendIfNotPresent .UseLine "[flags]"}}{{else}}{{.UseLine}}{{end}}{{end}}{{if .HasSubCommands}} + {{if .HasAvailableFlags}}{{appendIfNotPresent .UseLine "[flags]"}}{{else}}{{.UseLine}}{{end}}{{end}}{{if .HasAvailableSubCommands}} {{ .CommandPath}} [command]{{end}}{{if gt .Aliases 0}} Aliases: @@ -272,16 +305,16 @@ Examples: {{ .Example }}{{end}}{{ if .HasAvailableSubCommands}} Available Commands:{{range .Commands}}{{if .IsAvailableCommand}} - {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{ if .HasLocalFlags}} + {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{ if .HasAvailableLocalFlags}} Flags: -{{.LocalFlags.FlagUsages | trimRightSpace}}{{end}}{{ if .HasInheritedFlags}} +{{.LocalFlags.FlagUsages | trimRightSpace}}{{end}}{{ if .HasAvailableInheritedFlags}} Global Flags: {{.InheritedFlags.FlagUsages | trimRightSpace}}{{end}}{{if .HasHelpSubCommands}} Additional help topics:{{range .Commands}}{{if .IsHelpCommand}} - {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{ if .HasSubCommands }} + {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{ if .HasAvailableSubCommands }} Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}} ` @@ -531,12 +564,17 @@ func (c *Command) execute(a []string) (err error) { c.Println("\"help\" flag declared as non-bool. Please correct your code") return err } + if helpVal || !c.Runnable() { return flag.ErrHelp } c.preRun() + argWoFlags := c.Flags().Args() + if c.DisableFlagParsing { + argWoFlags = a + } for p := c; p != nil; p = p.Parent() { if p.PersistentPreRunE != nil { @@ -699,8 +737,7 @@ func (c *Command) initHelpCmd() { c.Printf("Unknown help topic %#q.", args) c.Root().Usage() } else { - helpFunc := cmd.HelpFunc() - helpFunc(cmd, args) + cmd.Help() } }, } @@ -714,8 +751,20 @@ func (c *Command) ResetCommands() { c.helpCommand = nil } -//Commands returns a slice of child commands. +// Sorts commands by their names +type commandSorterByName []*Command + +func (c commandSorterByName) Len() int { return len(c) } +func (c commandSorterByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] } +func (c commandSorterByName) Less(i, j int) bool { return c[i].Name() < c[j].Name() } + +// Commands returns a sorted slice of child commands. func (c *Command) Commands() []*Command { + // do not sort commands if it already sorted or sorting was disabled + if EnableCommandSorting && !c.commandsAreSorted { + sort.Sort(commandSorterByName(c.commands)) + c.commandsAreSorted = true + } return c.commands } @@ -744,10 +793,11 @@ func (c *Command) AddCommand(cmds ...*Command) { x.SetGlobalNormalizationFunc(c.globNormFunc) } c.commands = append(c.commands, x) + c.commandsAreSorted = false } } -// AddCommand removes one or more commands from a parent command. +// RemoveCommand removes one or more commands from a parent command. func (c *Command) RemoveCommand(cmds ...*Command) { commands := []*Command{} main: @@ -781,50 +831,23 @@ main: } } -// Print is a convenience method to Print to the defined output +// Print is a convenience method to Print to the defined output, fallback to Stderr if not set func (c *Command) Print(i ...interface{}) { - fmt.Fprint(c.Out(), i...) + fmt.Fprint(c.OutOrStderr(), i...) } -// Println is a convenience method to Println to the defined output +// Println is a convenience method to Println to the defined output, fallback to Stderr if not set func (c *Command) Println(i ...interface{}) { str := fmt.Sprintln(i...) c.Print(str) } -// Printf is a convenience method to Printf to the defined output +// Printf is a convenience method to Printf to the defined output, fallback to Stderr if not set func (c *Command) Printf(format string, i ...interface{}) { str := fmt.Sprintf(format, i...) c.Print(str) } -// Output the usage for the command -// Used when a user provides invalid input -// Can be defined by user by overriding UsageFunc -func (c *Command) Usage() error { - c.mergePersistentFlags() - err := c.UsageFunc()(c) - return err -} - -// Output the help for the command -// Used when a user calls help [command] -// by the default HelpFunc in the commander -func (c *Command) Help() error { - c.mergePersistentFlags() - err := tmpl(c.getOutOrStdout(), c.HelpTemplate(), c) - return err -} - -func (c *Command) UsageString() string { - tmpOutput := c.output - bb := new(bytes.Buffer) - c.SetOutput(bb) - c.Usage() - c.output = tmpOutput - return bb.String() -} - // CommandPath returns the full path to this command. func (c *Command) CommandPath() string { str := c.Name() @@ -1025,6 +1048,19 @@ func (c *Command) Flags() *flag.FlagSet { return c.flags } +// LocalNonPersistentFlags are flags specific to this command which will NOT persist to subcommands +func (c *Command) LocalNonPersistentFlags() *flag.FlagSet { + persistentFlags := c.PersistentFlags() + + out := flag.NewFlagSet(c.Name(), flag.ContinueOnError) + c.LocalFlags().VisitAll(func(f *flag.Flag) { + if persistentFlags.Lookup(f.Name) == nil { + out.AddFlag(f) + } + }) + return out +} + // Get the local FlagSet specifically set in the current command func (c *Command) LocalFlags() *flag.FlagSet { c.mergePersistentFlags() @@ -1114,10 +1150,34 @@ func (c *Command) HasLocalFlags() bool { return c.LocalFlags().HasFlags() } +// Does the command have flags inherited from its parent command func (c *Command) HasInheritedFlags() bool { return c.InheritedFlags().HasFlags() } +// Does the command contain any flags (local plus persistent from the entire +// structure) which are not hidden or deprecated +func (c *Command) HasAvailableFlags() bool { + return c.Flags().HasAvailableFlags() +} + +// Does the command contain persistent flags which are not hidden or deprecated +func (c *Command) HasAvailablePersistentFlags() bool { + return c.PersistentFlags().HasAvailableFlags() +} + +// Does the command has flags specifically declared locally which are not hidden +// or deprecated +func (c *Command) HasAvailableLocalFlags() bool { + return c.LocalFlags().HasAvailableFlags() +} + +// Does the command have flags inherited from its parent command which are +// not hidden or deprecated +func (c *Command) HasAvailableInheritedFlags() bool { + return c.InheritedFlags().HasAvailableFlags() +} + // Flag climbs up the command tree looking for matching flag func (c *Command) Flag(name string) (flag *flag.Flag) { flag = c.Flags().Lookup(name) @@ -1143,6 +1203,9 @@ func (c *Command) persistentFlag(name string) (flag *flag.Flag) { // ParseFlags parses persistent flag tree & local flags func (c *Command) ParseFlags(args []string) (err error) { + if c.DisableFlagParsing { + return nil + } c.mergePersistentFlags() err = c.Flags().Parse(args) return diff --git a/ingress/vendor/github.com/spf13/pflag/.travis.yml b/ingress/vendor/github.com/spf13/pflag/.travis.yml index df435a03fd..580ad22f59 100644 --- a/ingress/vendor/github.com/spf13/pflag/.travis.yml +++ b/ingress/vendor/github.com/spf13/pflag/.travis.yml @@ -3,9 +3,8 @@ sudo: false language: go go: - - 1.3 - - 1.4 - - 1.5 + - 1.5.4 + - 1.6.3 - tip install: @@ -14,5 +13,5 @@ install: - go install ./... script: - - verify/all.sh + - verify/all.sh -v - go test ./... diff --git a/ingress/vendor/github.com/spf13/pflag/README.md b/ingress/vendor/github.com/spf13/pflag/README.md index e74dd50b41..08ad945658 100644 --- a/ingress/vendor/github.com/spf13/pflag/README.md +++ b/ingress/vendor/github.com/spf13/pflag/README.md @@ -85,7 +85,7 @@ fmt.Println("flagvar has value ", flagvar) ``` There are helpers function to get values later if you have the FlagSet but -it was difficult to keep up with all of the the flag pointers in your code. +it was difficult to keep up with all of the flag pointers in your code. If you have a pflag.FlagSet with a flag called 'flagname' of type int you can use GetInt() to get the int value. But notice that 'flagname' must exist and it must be an int. GetString("flagname") will fail. @@ -244,6 +244,25 @@ It is possible to mark a flag as hidden, meaning it will still function as norma flags.MarkHidden("secretFlag") ``` +## Supporting Go flags when using pflag +In order to support flags defined using Go's `flag` package, they must be added to the `pflag` flagset. This is usually necessary +to support flags defined by third-party dependencies (e.g. `golang/glog`). + +**Example**: You want to add the Go flags to the `CommandLine` flagset +```go +import ( + goflag "flag" + flag "github.com/spf13/pflag" +) + +var ip *int = flag.Int("flagname", 1234, "help message for flagname") + +func main() { + flag.CommandLine.AddGoFlagSet(goflag.CommandLine) + flag.Parse() +} +``` + ## More info You can see the full reference documentation of the pflag package diff --git a/ingress/vendor/github.com/spf13/pflag/flag.go b/ingress/vendor/github.com/spf13/pflag/flag.go index fd91440341..965df13797 100644 --- a/ingress/vendor/github.com/spf13/pflag/flag.go +++ b/ingress/vendor/github.com/spf13/pflag/flag.go @@ -242,6 +242,17 @@ func (f *FlagSet) HasFlags() bool { return len(f.formal) > 0 } +// HasAvailableFlags returns a bool to indicate if the FlagSet has any flags +// definied that are not hidden or deprecated. +func (f *FlagSet) HasAvailableFlags() bool { + for _, flag := range f.formal { + if !flag.Hidden && len(flag.Deprecated) == 0 { + return true + } + } + return false +} + // VisitAll visits the command-line flags in lexicographical order, calling // fn for each. It visits all flags, even those not set. func VisitAll(fn func(*Flag)) { @@ -408,41 +419,123 @@ func (f *FlagSet) PrintDefaults() { fmt.Fprintf(f.out(), "%s", usages) } +// isZeroValue guesses whether the string represents the zero +// value for a flag. It is not accurate but in practice works OK. +func isZeroValue(value string) bool { + switch value { + case "false": + return true + case "": + return true + case "": + return true + case "0": + return true + } + return false +} + +// UnquoteUsage extracts a back-quoted name from the usage +// string for a flag and returns it and the un-quoted usage. +// Given "a `name` to show" it returns ("name", "a name to show"). +// If there are no back quotes, the name is an educated guess of the +// type of the flag's value, or the empty string if the flag is boolean. +func UnquoteUsage(flag *Flag) (name string, usage string) { + // Look for a back-quoted name, but avoid the strings package. + usage = flag.Usage + for i := 0; i < len(usage); i++ { + if usage[i] == '`' { + for j := i + 1; j < len(usage); j++ { + if usage[j] == '`' { + name = usage[i+1 : j] + usage = usage[:i] + name + usage[j+1:] + return name, usage + } + } + break // Only one back quote; use type name. + } + } + // No explicit name, so use type if we can find one. + name = "value" + switch flag.Value.(type) { + case boolFlag: + name = "" + case *durationValue: + name = "duration" + case *float64Value: + name = "float" + case *intValue, *int64Value: + name = "int" + case *stringValue: + name = "string" + case *uintValue, *uint64Value: + name = "uint" + } + return +} + // FlagUsages Returns a string containing the usage information for all flags in // the FlagSet func (f *FlagSet) FlagUsages() string { x := new(bytes.Buffer) + lines := make([]string, 0, len(f.formal)) + + maxlen := 0 f.VisitAll(func(flag *Flag) { if len(flag.Deprecated) > 0 || flag.Hidden { return } - format := "" + + line := "" if len(flag.Shorthand) > 0 && len(flag.ShorthandDeprecated) == 0 { - format = " -%s, --%s" + line = fmt.Sprintf(" -%s, --%s", flag.Shorthand, flag.Name) } else { - format = " %s --%s" + line = fmt.Sprintf(" --%s", flag.Name) } - if len(flag.NoOptDefVal) > 0 { - format = format + "[" - } - if flag.Value.Type() == "string" { - // put quotes on the value - format = format + "=%q" - } else { - format = format + "=%s" + + varname, usage := UnquoteUsage(flag) + if len(varname) > 0 { + line += " " + varname } if len(flag.NoOptDefVal) > 0 { - format = format + "]" + switch flag.Value.Type() { + case "string": + line += fmt.Sprintf("[=%q]", flag.NoOptDefVal) + case "bool": + if flag.NoOptDefVal != "true" { + line += fmt.Sprintf("[=%s]", flag.NoOptDefVal) + } + default: + line += fmt.Sprintf("[=%s]", flag.NoOptDefVal) + } } - format = format + ": %s\n" - shorthand := flag.Shorthand - if len(flag.ShorthandDeprecated) > 0 { - shorthand = "" + + // This special character will be replaced with spacing once the + // correct alignment is calculated + line += "\x00" + if len(line) > maxlen { + maxlen = len(line) } - fmt.Fprintf(x, format, shorthand, flag.Name, flag.DefValue, flag.Usage) + + line += usage + if !isZeroValue(flag.DefValue) { + if flag.Value.Type() == "string" { + line += fmt.Sprintf(" (default %q)", flag.DefValue) + } else { + line += fmt.Sprintf(" (default %s)", flag.DefValue) + } + } + + lines = append(lines, line) }) + for _, line := range lines { + sidx := strings.Index(line, "\x00") + spacing := strings.Repeat(" ", maxlen-sidx) + fmt.Fprintln(x, line[:sidx], spacing, line[sidx+1:]) + } + return x.String() } @@ -463,6 +556,8 @@ func defaultUsage(f *FlagSet) { // Usage prints to standard error a usage message documenting all defined command-line flags. // The function is a variable that may be changed to point to a custom function. +// By default it prints a simple header and calls PrintDefaults; for details about the +// format of the output and how to control it, see the documentation for PrintDefaults. var Usage = func() { fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]) PrintDefaults() @@ -683,6 +778,9 @@ func (f *FlagSet) parseLongArg(s string, args []string) (a []string, err error) } func (f *FlagSet) parseSingleShortArg(shorthands string, args []string) (outShorts string, outArgs []string, err error) { + if strings.HasPrefix(shorthands, "test.") { + return + } outArgs = args outShorts = shorthands[1:] c := shorthands[0] @@ -806,7 +904,7 @@ func Parsed() bool { return CommandLine.Parsed() } -// The default set of command-line flags, parsed from os.Args. +// CommandLine is the default set of command-line flags, parsed from os.Args. var CommandLine = NewFlagSet(os.Args[0], ExitOnError) // NewFlagSet returns a new, empty flag set with the specified name and diff --git a/ingress/vendor/github.com/spf13/pflag/golangflag.go b/ingress/vendor/github.com/spf13/pflag/golangflag.go index a8c24efb64..b056147fd8 100644 --- a/ingress/vendor/github.com/spf13/pflag/golangflag.go +++ b/ingress/vendor/github.com/spf13/pflag/golangflag.go @@ -61,6 +61,9 @@ func (v *flagValueWrapper) Type() string { } // PFlagFromGoFlag will return a *pflag.Flag given a *flag.Flag +// If the *flag.Flag.Name was a single character (ex: `v`) it will be accessiblei +// with both `-v` and `--v` in flags. If the golang flag was more than a single +// character (ex: `verbose`) it will only be accessible via `--verbose` func PFlagFromGoFlag(goflag *goflag.Flag) *Flag { // Remember the default value as a string; it won't change. flag := &Flag{ @@ -71,6 +74,10 @@ func PFlagFromGoFlag(goflag *goflag.Flag) *Flag { //DefValue: goflag.DefValue, DefValue: goflag.Value.String(), } + // Ex: if the golang flag was -v, allow both -v and --v to work + if len(flag.Name) == 1 { + flag.Shorthand = flag.Name + } if fv, ok := goflag.Value.(goBoolFlag); ok && fv.IsBoolFlag() { flag.NoOptDefVal = "true" } diff --git a/ingress/vendor/github.com/ugorji/go/codec/0doc.go b/ingress/vendor/github.com/ugorji/go/codec/0doc.go index bd7361c879..caa7e0a3b5 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/0doc.go +++ b/ingress/vendor/github.com/ugorji/go/codec/0doc.go @@ -64,7 +64,6 @@ Rich Feature Set includes: - Never silently skip data when decoding. User decides whether to return an error or silently skip data when keys or indexes in the data stream do not map to fields in the struct. - - Detect and error when encoding a cyclic reference (instead of stack overflow shutdown) - Encode/Decode from/to chan types (for iterative streaming support) - Drop-in replacement for encoding/json. `json:` key in struct tag supported. - Provides a RPC Server and Client Codec for net/rpc communication protocol. @@ -172,8 +171,6 @@ package codec // TODO: // -// - optimization for codecgen: -// if len of entity is <= 3 words, then support a value receiver for encode. // - (En|De)coder should store an error when it occurs. // Until reset, subsequent calls return that error that was stored. // This means that free panics must go away. @@ -186,14 +183,11 @@ package codec // Name string // Ys []Y // Ys chan <- Y -// Ys func(Y) -> call this function for each entry +// Ys func(interface{}) -> call this interface for each entry in there. // } // - Consider adding a isZeroer interface { isZero() bool } // It is used within isEmpty, for omitEmpty support. // - Consider making Handle used AS-IS within the encoding/decoding session. // This means that we don't cache Handle information within the (En|De)coder, // except we really need it at Reset(...) -// - Consider adding math/big support -// - Consider reducing the size of the generated functions: -// Maybe use one loop, and put the conditionals in the loop. -// for ... { if cLen > 0 { if j == cLen { break } } else if dd.CheckBreak() { break } } +// - Handle recursive types during encoding/decoding? diff --git a/ingress/vendor/github.com/ugorji/go/codec/binc.go b/ingress/vendor/github.com/ugorji/go/codec/binc.go index 766d26cf6d..c884d14dce 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/binc.go +++ b/ingress/vendor/github.com/ugorji/go/codec/binc.go @@ -908,14 +908,10 @@ func (h *BincHandle) newDecDriver(d *Decoder) decDriver { func (e *bincEncDriver) reset() { e.w = e.e.w - e.s = 0 - e.m = nil } func (d *bincDecDriver) reset() { d.r = d.d.r - d.s = nil - d.bd, d.bdRead, d.vd, d.vs = 0, false, 0, 0 } var _ decDriver = (*bincDecDriver)(nil) diff --git a/ingress/vendor/github.com/ugorji/go/codec/cbor.go b/ingress/vendor/github.com/ugorji/go/codec/cbor.go index a224cd3a72..0e5d32b2ea 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/cbor.go +++ b/ingress/vendor/github.com/ugorji/go/codec/cbor.go @@ -508,7 +508,7 @@ func (d *cborDecDriver) DecodeNaked() { n.v = valueTypeExt n.u = d.decUint() n.l = nil - // d.bdRead = false + d.bdRead = false // d.d.decode(&re.Value) // handled by decode itself. // decodeFurther = true default: @@ -578,7 +578,6 @@ func (e *cborEncDriver) reset() { func (d *cborDecDriver) reset() { d.r = d.d.r - d.bd, d.bdRead = 0, false } var _ decDriver = (*cborDecDriver)(nil) diff --git a/ingress/vendor/github.com/ugorji/go/codec/decode.go b/ingress/vendor/github.com/ugorji/go/codec/decode.go index 7e56f1eca5..b3b99f0367 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/decode.go +++ b/ingress/vendor/github.com/ugorji/go/codec/decode.go @@ -583,16 +583,14 @@ func (f *decFnInfo) kInterfaceNaked() (rvn reflect.Value) { if d.mtid == 0 || d.mtid == mapIntfIntfTypId { l := len(n.ms) n.ms = append(n.ms, nil) - var v2 interface{} = &n.ms[l] - d.decode(v2) - rvn = reflect.ValueOf(v2).Elem() + d.decode(&n.ms[l]) + rvn = reflect.ValueOf(&n.ms[l]).Elem() n.ms = n.ms[:l] } else if d.mtid == mapStrIntfTypId { // for json performance l := len(n.ns) n.ns = append(n.ns, nil) - var v2 interface{} = &n.ns[l] - d.decode(v2) - rvn = reflect.ValueOf(v2).Elem() + d.decode(&n.ns[l]) + rvn = reflect.ValueOf(&n.ns[l]).Elem() n.ns = n.ns[:l] } else { rvn = reflect.New(d.h.MapType).Elem() @@ -603,9 +601,8 @@ func (f *decFnInfo) kInterfaceNaked() (rvn reflect.Value) { if d.stid == 0 || d.stid == intfSliceTypId { l := len(n.ss) n.ss = append(n.ss, nil) - var v2 interface{} = &n.ss[l] - d.decode(v2) - rvn = reflect.ValueOf(v2).Elem() + d.decode(&n.ss[l]) + rvn = reflect.ValueOf(&n.ss[l]).Elem() n.ss = n.ss[:l] } else { rvn = reflect.New(d.h.SliceType).Elem() @@ -618,9 +615,9 @@ func (f *decFnInfo) kInterfaceNaked() (rvn reflect.Value) { l := len(n.is) n.is = append(n.is, nil) v2 := &n.is[l] + n.is = n.is[:l] d.decode(v2) v = *v2 - n.is = n.is[:l] } bfn := d.h.getExtForTag(tag) if bfn == nil { @@ -1456,8 +1453,8 @@ func (d *Decoder) swallow() { l := len(n.is) n.is = append(n.is, nil) v2 := &n.is[l] - d.decode(v2) n.is = n.is[:l] + d.decode(v2) } } } @@ -1865,7 +1862,6 @@ func (d *Decoder) intern(s string) { } } -// nextValueBytes returns the next value in the stream as a set of bytes. func (d *Decoder) nextValueBytes() []byte { d.d.uncacheRead() d.r.track() diff --git a/ingress/vendor/github.com/ugorji/go/codec/encode.go b/ingress/vendor/github.com/ugorji/go/codec/encode.go index a874c744b8..99af6fa555 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/encode.go +++ b/ingress/vendor/github.com/ugorji/go/codec/encode.go @@ -110,15 +110,6 @@ type EncodeOptions struct { // Canonical bool - // CheckCircularRef controls whether we check for circular references - // and error fast during an encode. - // - // If enabled, an error is received if a pointer to a struct - // references itself either directly or through one of its fields (iteratively). - // - // This is opt-in, as there may be a performance hit to checking circular references. - CheckCircularRef bool - // AsSymbols defines what should be encoded as symbols. // // Encoding as symbols can reduce the encoded size significantly. @@ -473,7 +464,7 @@ func (f *encFnInfo) kSlice(rv reflect.Value) { for j := 0; j < l; j++ { if cr != nil { if ti.mbs { - if j%2 == 0 { + if l%2 == 0 { cr.sendContainerState(containerMapKey) } else { cr.sendContainerState(containerMapValue) @@ -512,7 +503,7 @@ func (f *encFnInfo) kStruct(rv reflect.Value) { newlen := len(fti.sfi) // Use sync.Pool to reduce allocating slices unnecessarily. - // The cost of sync.Pool is less than the cost of new allocation. + // The cost of the occasional locking is less than the cost of new allocation. pool, poolv, fkvs := encStructPoolGet(newlen) // if toMap, use the sorted array. If toArray, use unsorted array (to match sequence in struct) @@ -523,6 +514,11 @@ func (f *encFnInfo) kStruct(rv reflect.Value) { var kv stringRv for _, si := range tisfi { kv.r = si.field(rv, false) + // if si.i != -1 { + // rvals[newlen] = rv.Field(int(si.i)) + // } else { + // rvals[newlen] = rv.FieldByIndex(si.is) + // } if toMap { if si.omitEmpty && isEmptyValue(kv.r) { continue @@ -600,15 +596,13 @@ func (f *encFnInfo) kStruct(rv reflect.Value) { // f.e.encodeValue(rv.Elem()) // } -// func (f *encFnInfo) kInterface(rv reflect.Value) { -// println("kInterface called") -// debug.PrintStack() -// if rv.IsNil() { -// f.e.e.EncodeNil() -// return -// } -// f.e.encodeValue(rv.Elem(), nil) -// } +func (f *encFnInfo) kInterface(rv reflect.Value) { + if rv.IsNil() { + f.e.e.EncodeNil() + return + } + f.e.encodeValue(rv.Elem(), nil) +} func (f *encFnInfo) kMap(rv reflect.Value) { ee := f.e.e @@ -883,7 +877,6 @@ type Encoder struct { // as the handler MAY need to do some coordination. w encWriter s []encRtidFn - ci set be bool // is binary encoding js bool // is json handle @@ -1140,23 +1133,20 @@ func (e *Encoder) encode(iv interface{}) { } } -func (e *Encoder) preEncodeValue(rv reflect.Value) (rv2 reflect.Value, sptr uintptr, proceed bool) { +func (e *Encoder) encodeI(iv interface{}, checkFastpath, checkCodecSelfer bool) { + if rv, proceed := e.preEncodeValue(reflect.ValueOf(iv)); proceed { + rt := rv.Type() + rtid := reflect.ValueOf(rt).Pointer() + fn := e.getEncFn(rtid, rt, checkFastpath, checkCodecSelfer) + fn.f(&fn.i, rv) + } +} + +func (e *Encoder) preEncodeValue(rv reflect.Value) (rv2 reflect.Value, proceed bool) { // use a goto statement instead of a recursive function for ptr/interface. TOP: switch rv.Kind() { - case reflect.Ptr: - if rv.IsNil() { - e.e.EncodeNil() - return - } - rv = rv.Elem() - if e.h.CheckCircularRef && rv.Kind() == reflect.Struct { - // TODO: Movable pointers will be an issue here. Future problem. - sptr = rv.UnsafeAddr() - break TOP - } - goto TOP - case reflect.Interface: + case reflect.Ptr, reflect.Interface: if rv.IsNil() { e.e.EncodeNil() return @@ -1173,40 +1163,18 @@ TOP: return } - proceed = true - rv2 = rv - return -} - -func (e *Encoder) doEncodeValue(rv reflect.Value, fn *encFn, sptr uintptr, - checkFastpath, checkCodecSelfer bool) { - if sptr != 0 { - if (&e.ci).add(sptr) { - e.errorf("circular reference found: # %d", sptr) - } - } - if fn == nil { - rt := rv.Type() - rtid := reflect.ValueOf(rt).Pointer() - // fn = e.getEncFn(rtid, rt, true, true) - fn = e.getEncFn(rtid, rt, checkFastpath, checkCodecSelfer) - } - fn.f(&fn.i, rv) - if sptr != 0 { - (&e.ci).remove(sptr) - } -} - -func (e *Encoder) encodeI(iv interface{}, checkFastpath, checkCodecSelfer bool) { - if rv, sptr, proceed := e.preEncodeValue(reflect.ValueOf(iv)); proceed { - e.doEncodeValue(rv, nil, sptr, checkFastpath, checkCodecSelfer) - } + return rv, true } func (e *Encoder) encodeValue(rv reflect.Value, fn *encFn) { // if a valid fn is passed, it MUST BE for the dereferenced type of rv - if rv, sptr, proceed := e.preEncodeValue(rv); proceed { - e.doEncodeValue(rv, fn, sptr, true, true) + if rv, proceed := e.preEncodeValue(rv); proceed { + if fn == nil { + rt := rv.Type() + rtid := reflect.ValueOf(rt).Pointer() + fn = e.getEncFn(rtid, rt, true, true) + } + fn.f(&fn.i, rv) } } @@ -1266,7 +1234,7 @@ func (e *Encoder) getEncFn(rtid uintptr, rt reflect.Type, checkFastpath, checkCo } else { rk := rt.Kind() if fastpathEnabled && checkFastpath && (rk == reflect.Map || rk == reflect.Slice) { - if rt.PkgPath() == "" { // un-named slice or map + if rt.PkgPath() == "" { if idx := fastpathAV.index(rtid); idx != -1 { fn.f = fastpathAV[idx].encfn } @@ -1316,11 +1284,10 @@ func (e *Encoder) getEncFn(rtid uintptr, rt reflect.Type, checkFastpath, checkCo fn.f = (*encFnInfo).kSlice case reflect.Struct: fn.f = (*encFnInfo).kStruct - // reflect.Ptr and reflect.Interface are handled already by preEncodeValue // case reflect.Ptr: // fn.f = (*encFnInfo).kPtr - // case reflect.Interface: - // fn.f = (*encFnInfo).kInterface + case reflect.Interface: + fn.f = (*encFnInfo).kInterface case reflect.Map: fn.f = (*encFnInfo).kMap default: @@ -1386,6 +1353,25 @@ func encStructPoolGet(newlen int) (p *sync.Pool, v interface{}, s []stringRv) { // panic(errors.New("encStructPoolLen must be equal to 4")) // defensive, in case it is changed // } // idxpool := newlen / 8 + + // if pool == nil { + // fkvs = make([]stringRv, newlen) + // } else { + // poolv = pool.Get() + // switch vv := poolv.(type) { + // case *[8]stringRv: + // fkvs = vv[:newlen] + // case *[16]stringRv: + // fkvs = vv[:newlen] + // case *[32]stringRv: + // fkvs = vv[:newlen] + // case *[64]stringRv: + // fkvs = vv[:newlen] + // case *[128]stringRv: + // fkvs = vv[:newlen] + // } + // } + if newlen <= 8 { p = &encStructPool[0] v = p.Get() diff --git a/ingress/vendor/github.com/ugorji/go/codec/fast-path.generated.go b/ingress/vendor/github.com/ugorji/go/codec/fast-path.generated.go index cf6e00df21..d968a500fd 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/fast-path.generated.go +++ b/ingress/vendor/github.com/ugorji/go/codec/fast-path.generated.go @@ -3124,11 +3124,7 @@ func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool { // -- -- fast path functions func (f *encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) { ee := e.e @@ -3149,39 +3145,8 @@ func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - e.encode(v2) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceStringR(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) { ee := e.e @@ -3202,39 +3167,8 @@ func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceStringV(v []string, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeString(c_UTF8, v2) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) { ee := e.e @@ -3255,39 +3189,8 @@ func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeFloat32(v2) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) { ee := e.e @@ -3308,39 +3211,8 @@ func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeFloat64(v2) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceUintR(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) { ee := e.e @@ -3361,39 +3233,8 @@ func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceUintV(v []uint, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeUint(uint64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) { ee := e.e @@ -3414,39 +3255,8 @@ func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeUint(uint64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) { ee := e.e @@ -3467,39 +3277,8 @@ func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeUint(uint64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) { ee := e.e @@ -3520,39 +3299,8 @@ func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeUint(uint64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceUintptrR(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) { ee := e.e @@ -3573,39 +3321,8 @@ func (_ fastpathT) EncSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - e.encode(v2) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceIntR(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) { ee := e.e @@ -3626,39 +3343,8 @@ func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceIntV(v []int, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeInt(int64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) { ee := e.e @@ -3679,39 +3365,8 @@ func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceInt8V(v []int8, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeInt(int64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) { ee := e.e @@ -3732,39 +3387,8 @@ func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceInt16V(v []int16, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeInt(int64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) { ee := e.e @@ -3785,39 +3409,8 @@ func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceInt32V(v []int32, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeInt(int64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) { ee := e.e @@ -3838,39 +3431,8 @@ func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceInt64V(v []int64, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeInt(int64(v2)) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.EncAsMapSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e) - } + fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e) } func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) { ee := e.e @@ -3891,33 +3453,6 @@ func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) { } } -func (_ fastpathT) EncAsMapSliceBoolV(v []bool, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - ee.EncodeBool(v2) - } - if cr != nil { - cr.sendContainerState(containerMapEnd) - } -} - func (f *encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) { fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e) } @@ -18177,7 +17712,7 @@ func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -18236,7 +17771,7 @@ func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]interface{}, 1, 4) @@ -18311,7 +17846,7 @@ func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -18370,7 +17905,7 @@ func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]string, 1, 4) @@ -18444,7 +17979,7 @@ func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -18503,7 +18038,7 @@ func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]float32, 1, 4) @@ -18577,7 +18112,7 @@ func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -18636,7 +18171,7 @@ func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]float64, 1, 4) @@ -18710,7 +18245,7 @@ func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool, d *Dec changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -18769,7 +18304,7 @@ func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool, d *Dec changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]uint, 1, 4) @@ -18843,7 +18378,7 @@ func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -18902,7 +18437,7 @@ func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]uint16, 1, 4) @@ -18976,7 +18511,7 @@ func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19035,7 +18570,7 @@ func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]uint32, 1, 4) @@ -19109,7 +18644,7 @@ func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19168,7 +18703,7 @@ func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool, d changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]uint64, 1, 4) @@ -19242,7 +18777,7 @@ func (_ fastpathT) DecSliceUintptrV(v []uintptr, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19301,7 +18836,7 @@ func (_ fastpathT) DecSliceUintptrV(v []uintptr, checkNil bool, canChange bool, changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]uintptr, 1, 4) @@ -19375,7 +18910,7 @@ func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool, d *Decod changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19434,7 +18969,7 @@ func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool, d *Decod changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]int, 1, 4) @@ -19508,7 +19043,7 @@ func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool, d *Dec changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19567,7 +19102,7 @@ func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool, d *Dec changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]int8, 1, 4) @@ -19641,7 +19176,7 @@ func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool, d *D changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19700,7 +19235,7 @@ func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool, d *D changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]int16, 1, 4) @@ -19774,7 +19309,7 @@ func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool, d *D changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19833,7 +19368,7 @@ func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool, d *D changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]int32, 1, 4) @@ -19907,7 +19442,7 @@ func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool, d *D changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -19966,7 +19501,7 @@ func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool, d *D changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]int64, 1, 4) @@ -20040,7 +19575,7 @@ func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool, d *Dec changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -20099,7 +19634,7 @@ func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool, d *Dec changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]bool, 1, 4) diff --git a/ingress/vendor/github.com/ugorji/go/codec/fast-path.go.tmpl b/ingress/vendor/github.com/ugorji/go/codec/fast-path.go.tmpl index 04c173fbaa..58cc6df4c5 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/fast-path.go.tmpl +++ b/ingress/vendor/github.com/ugorji/go/codec/fast-path.go.tmpl @@ -165,11 +165,7 @@ func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool { {{range .Values}}{{if not .Primitive}}{{if not .MapKey }} func (f *encFnInfo) {{ .MethodNamePfx "fastpathEnc" false }}R(rv reflect.Value) { - if f.ti.mbs { - fastpathTV.{{ .MethodNamePfx "EncAsMap" false }}V(rv.Interface().([]{{ .Elem }}), fastpathCheckNilFalse, f.e) - } else { - fastpathTV.{{ .MethodNamePfx "Enc" false }}V(rv.Interface().([]{{ .Elem }}), fastpathCheckNilFalse, f.e) - } + fastpathTV.{{ .MethodNamePfx "Enc" false }}V(rv.Interface().([]{{ .Elem }}), fastpathCheckNilFalse, f.e) } func (_ fastpathT) {{ .MethodNamePfx "Enc" false }}V(v []{{ .Elem }}, checkNil bool, e *Encoder) { ee := e.e @@ -186,31 +182,6 @@ func (_ fastpathT) {{ .MethodNamePfx "Enc" false }}V(v []{{ .Elem }}, checkNil b if cr != nil { cr.sendContainerState(containerArrayEnd) }{{/* ee.EncodeEnd() */}} } -func (_ fastpathT) {{ .MethodNamePfx "EncAsMap" false }}V(v []{{ .Elem }}, checkNil bool, e *Encoder) { - ee := e.e - cr := e.cr - if checkNil && v == nil { - ee.EncodeNil() - return - } - if len(v)%2 == 1 { - e.errorf("mapBySlice requires even slice length, but got %v", len(v)) - return - } - ee.EncodeMapStart(len(v) / 2) - for j, v2 := range v { - if cr != nil { - if j%2 == 0 { - cr.sendContainerState(containerMapKey) - } else { - cr.sendContainerState(containerMapValue) - } - } - {{ encmd .Elem "v2"}} - } - if cr != nil { cr.sendContainerState(containerMapEnd) } -} - {{end}}{{end}}{{end}} {{range .Values}}{{if not .Primitive}}{{if .MapKey }} @@ -357,7 +328,7 @@ func (_ fastpathT) {{ .MethodNamePfx "Dec" false }}V(v []{{ .Elem }}, checkNil b changed = true } slh.End() - return v, changed + return } if containerLenS > 0 { @@ -420,7 +391,7 @@ func (_ fastpathT) {{ .MethodNamePfx "Dec" false }}V(v []{{ .Elem }}, checkNil b changed = true } slh.End() - return v, changed + return } if cap(v) == 0 { v = make([]{{ .Elem }}, 1, 4) diff --git a/ingress/vendor/github.com/ugorji/go/codec/gen-dec-array.go.tmpl b/ingress/vendor/github.com/ugorji/go/codec/gen-dec-array.go.tmpl index 32df54144c..2caae5bfda 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/gen-dec-array.go.tmpl +++ b/ingress/vendor/github.com/ugorji/go/codec/gen-dec-array.go.tmpl @@ -1,7 +1,6 @@ {{var "v"}} := {{if not isArray}}*{{end}}{{ .Varname }} -{{var "h"}}, {{var "l"}} := z.DecSliceHelperStart() {{/* // helper, containerLenS */}}{{if not isArray}} +{{var "h"}}, {{var "l"}} := z.DecSliceHelperStart() {{/* // helper, containerLenS */}} var {{var "c"}} bool {{/* // changed */}} -_ = {{var "c"}}{{end}} if {{var "l"}} == 0 { {{if isSlice }}if {{var "v"}} == nil { {{var "v"}} = []{{ .Typ }}{} @@ -27,8 +26,6 @@ if {{var "l"}} == 0 { } {{ else }} var {{var "rr"}}, {{var "rl"}} int {{/* // num2read, length of slice/array/chan */}} var {{var "rt"}} bool {{/* truncated */}} - _, _ = {{var "rl"}}, {{var "rt"}} - {{var "rr"}} = {{var "l"}} // len({{var "v"}}) if {{var "l"}} > cap({{var "v"}}) { {{if isArray }}z.DecArrayCannotExpand(len({{var "v"}}), {{var "l"}}) {{ else }}{{if not .Immutable }} diff --git a/ingress/vendor/github.com/ugorji/go/codec/gen.generated.go b/ingress/vendor/github.com/ugorji/go/codec/gen.generated.go index 2ace97b78c..fb6f4b8097 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/gen.generated.go +++ b/ingress/vendor/github.com/ugorji/go/codec/gen.generated.go @@ -68,9 +68,8 @@ z.DecSendContainerState(codecSelfer_containerMapEnd{{ .Sfx }}) const genDecListTmpl = ` {{var "v"}} := {{if not isArray}}*{{end}}{{ .Varname }} -{{var "h"}}, {{var "l"}} := z.DecSliceHelperStart() {{/* // helper, containerLenS */}}{{if not isArray}} +{{var "h"}}, {{var "l"}} := z.DecSliceHelperStart() {{/* // helper, containerLenS */}} var {{var "c"}} bool {{/* // changed */}} -_ = {{var "c"}}{{end}} if {{var "l"}} == 0 { {{if isSlice }}if {{var "v"}} == nil { {{var "v"}} = []{{ .Typ }}{} @@ -96,8 +95,6 @@ if {{var "l"}} == 0 { } {{ else }} var {{var "rr"}}, {{var "rl"}} int {{/* // num2read, length of slice/array/chan */}} var {{var "rt"}} bool {{/* truncated */}} - _, _ = {{var "rl"}}, {{var "rt"}} - {{var "rr"}} = {{var "l"}} // len({{var "v"}}) if {{var "l"}} > cap({{var "v"}}) { {{if isArray }}z.DecArrayCannotExpand(len({{var "v"}}), {{var "l"}}) {{ else }}{{if not .Immutable }} diff --git a/ingress/vendor/github.com/ugorji/go/codec/gen.go b/ingress/vendor/github.com/ugorji/go/codec/gen.go index ffc5aecf6c..a075e7c0d6 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/gen.go +++ b/ingress/vendor/github.com/ugorji/go/codec/gen.go @@ -21,8 +21,6 @@ import ( "sync" "text/template" "time" - "unicode" - "unicode/utf8" ) // --------------------------------------------------- @@ -268,7 +266,6 @@ func Gen(w io.Writer, buildTags, pkgName, uid string, useUnsafe bool, ti *TypeIn x.line("type " + x.hn + " struct{}") x.line("") - x.varsfxreset() x.line("func init() {") x.linef("if %sGenVersion != %v {", x.cpfx, GenVersion) x.line("_, file, _, _ := runtime.Caller(0)") @@ -312,7 +309,6 @@ func Gen(w io.Writer, buildTags, pkgName, uid string, useUnsafe bool, ti *TypeIn for _, t := range x.ts { rtid := reflect.ValueOf(t).Pointer() // generate enc functions for all these slice/map types. - x.varsfxreset() x.linef("func (x %s) enc%s(v %s%s, e *%sEncoder) {", x.hn, x.genMethodNameT(t), x.arr2str(t, "*"), x.genTypeName(t), x.cpfx) x.genRequiredMethodVars(true) switch t.Kind() { @@ -327,7 +323,6 @@ func Gen(w io.Writer, buildTags, pkgName, uid string, useUnsafe bool, ti *TypeIn x.line("") // generate dec functions for all these slice/map types. - x.varsfxreset() x.linef("func (x %s) dec%s(v *%s, d *%sDecoder) {", x.hn, x.genMethodNameT(t), x.genTypeName(t), x.cpfx) x.genRequiredMethodVars(false) switch t.Kind() { @@ -382,7 +377,7 @@ func (x *genRunner) genRefPkgs(t reflect.Type) { x.imn[tpkg] = tpkg } else { x.imc++ - x.imn[tpkg] = "pkg" + strconv.FormatUint(x.imc, 10) + "_" + genGoIdentifier(tpkg[idx+1:], false) + x.imn[tpkg] = "pkg" + strconv.FormatUint(x.imc, 10) + "_" + tpkg[idx+1:] } } } @@ -413,10 +408,6 @@ func (x *genRunner) varsfx() string { return strconv.FormatUint(x.c, 10) } -func (x *genRunner) varsfxreset() { - x.c = 0 -} - func (x *genRunner) out(s string) { if _, err := io.WriteString(x.w, s); err != nil { panic(err) @@ -503,7 +494,6 @@ func (x *genRunner) selfer(encode bool) { // always make decode use a pointer receiver, // and structs always use a ptr receiver (encode|decode) isptr := !encode || t.Kind() == reflect.Struct - x.varsfxreset() fnSigPfx := "func (x " if isptr { fnSigPfx += "*" @@ -576,28 +566,9 @@ func (x *genRunner) xtraSM(varname string, encode bool, t reflect.Type) { } else { x.linef("h.dec%s((*%s)(%s), d)", x.genMethodNameT(t), x.genTypeName(t), varname) } - x.registerXtraT(t) -} - -func (x *genRunner) registerXtraT(t reflect.Type) { - // recursively register the types - if _, ok := x.tm[t]; ok { - return - } - var tkey reflect.Type - switch t.Kind() { - case reflect.Chan, reflect.Slice, reflect.Array: - case reflect.Map: - tkey = t.Key() - default: - return - } - x.tm[t] = struct{}{} - x.ts = append(x.ts, t) - // check if this refers to any xtra types eg. a slice of array: add the array - x.registerXtraT(t.Elem()) - if tkey != nil { - x.registerXtraT(tkey) + if _, ok := x.tm[t]; !ok { + x.tm[t] = struct{}{} + x.ts = append(x.ts, t) } } @@ -637,33 +608,22 @@ func (x *genRunner) encVar(varname string, t reflect.Type) { } -// enc will encode a variable (varname) of type t, -// except t is of kind reflect.Struct or reflect.Array, wherein varname is of type ptrTo(T) (to prevent copying) +// enc will encode a variable (varname) of type T, +// except t is of kind reflect.Struct or reflect.Array, wherein varname is of type *T (to prevent copying) func (x *genRunner) enc(varname string, t reflect.Type) { + // varName here must be to a pointer to a struct/array, or to a value directly. rtid := reflect.ValueOf(t).Pointer() // We call CodecEncodeSelf if one of the following are honored: // - the type already implements Selfer, call that // - the type has a Selfer implementation just created, use that // - the type is in the list of the ones we will generate for, but it is not currently being generated - mi := x.varsfx() tptr := reflect.PtrTo(t) tk := t.Kind() if x.checkForSelfer(t, varname) { - if tk == reflect.Array || tk == reflect.Struct { // varname is of type *T - if tptr.Implements(selferTyp) || t.Implements(selferTyp) { - x.line(varname + ".CodecEncodeSelf(e)") - return - } - } else { // varname is of type T - if t.Implements(selferTyp) { - x.line(varname + ".CodecEncodeSelf(e)") - return - } else if tptr.Implements(selferTyp) { - x.linef("%ssf%s := &%s", genTempVarPfx, mi, varname) - x.linef("%ssf%s.CodecEncodeSelf(e)", genTempVarPfx, mi) - return - } + if t.Implements(selferTyp) || (tptr.Implements(selferTyp) && (tk == reflect.Array || tk == reflect.Struct)) { + x.line(varname + ".CodecEncodeSelf(e)") + return } if _, ok := x.te[rtid]; ok { @@ -693,6 +653,7 @@ func (x *genRunner) enc(varname string, t reflect.Type) { // check if // - type is RawExt // - the type implements (Text|JSON|Binary)(Unm|M)arshal + mi := x.varsfx() x.linef("%sm%s := z.EncBinary()", genTempVarPfx, mi) x.linef("_ = %sm%s", genTempVarPfx, mi) x.line("if false {") //start if block @@ -715,31 +676,15 @@ func (x *genRunner) enc(varname string, t reflect.Type) { // first check if extensions are configued, before doing the interface conversion x.linef("} else if z.HasExtensions() && z.EncExt(%s) {", varname) } - if tk == reflect.Array || tk == reflect.Struct { // varname is of type *T - if t.Implements(binaryMarshalerTyp) || tptr.Implements(binaryMarshalerTyp) { - x.linef("} else if %sm%s { z.EncBinaryMarshal(%v) ", genTempVarPfx, mi, varname) - } - if t.Implements(jsonMarshalerTyp) || tptr.Implements(jsonMarshalerTyp) { - x.linef("} else if !%sm%s && z.IsJSONHandle() { z.EncJSONMarshal(%v) ", genTempVarPfx, mi, varname) - } else if t.Implements(textMarshalerTyp) || tptr.Implements(textMarshalerTyp) { - x.linef("} else if !%sm%s { z.EncTextMarshal(%v) ", genTempVarPfx, mi, varname) - } - } else { // varname is of type T - if t.Implements(binaryMarshalerTyp) { - x.linef("} else if %sm%s { z.EncBinaryMarshal(%v) ", genTempVarPfx, mi, varname) - } else if tptr.Implements(binaryMarshalerTyp) { - x.linef("} else if %sm%s { z.EncBinaryMarshal(&%v) ", genTempVarPfx, mi, varname) - } - if t.Implements(jsonMarshalerTyp) { - x.linef("} else if !%sm%s && z.IsJSONHandle() { z.EncJSONMarshal(%v) ", genTempVarPfx, mi, varname) - } else if tptr.Implements(jsonMarshalerTyp) { - x.linef("} else if !%sm%s && z.IsJSONHandle() { z.EncJSONMarshal(&%v) ", genTempVarPfx, mi, varname) - } else if t.Implements(textMarshalerTyp) { - x.linef("} else if !%sm%s { z.EncTextMarshal(%v) ", genTempVarPfx, mi, varname) - } else if tptr.Implements(textMarshalerTyp) { - x.linef("} else if !%sm%s { z.EncTextMarshal(&%v) ", genTempVarPfx, mi, varname) - } + if t.Implements(binaryMarshalerTyp) || tptr.Implements(binaryMarshalerTyp) { + x.linef("} else if %sm%s { z.EncBinaryMarshal(%v) ", genTempVarPfx, mi, varname) + } + if t.Implements(jsonMarshalerTyp) || tptr.Implements(jsonMarshalerTyp) { + x.linef("} else if !%sm%s && z.IsJSONHandle() { z.EncJSONMarshal(%v) ", genTempVarPfx, mi, varname) + } else if t.Implements(textMarshalerTyp) || tptr.Implements(textMarshalerTyp) { + x.linef("} else if !%sm%s { z.EncTextMarshal(%v) ", genTempVarPfx, mi, varname) } + x.line("} else {") switch t.Kind() { @@ -1075,8 +1020,6 @@ func (x *genRunner) decVar(varname string, t reflect.Type, canBeNil bool) { } } -// dec will decode a variable (varname) of type ptrTo(t). -// t is always a basetype (i.e. not of kind reflect.Ptr). func (x *genRunner) dec(varname string, t reflect.Type) { // assumptions: // - the varname is to a pointer already. No need to take address of it @@ -1649,26 +1592,6 @@ func genImportPath(t reflect.Type) (s string) { return } -// A go identifier is (letter|_)[letter|number|_]* -func genGoIdentifier(s string, checkFirstChar bool) string { - b := make([]byte, 0, len(s)) - t := make([]byte, 4) - var n int - for i, r := range s { - if checkFirstChar && i == 0 && !unicode.IsLetter(r) { - b = append(b, '_') - } - // r must be unicode_letter, unicode_digit or _ - if unicode.IsLetter(r) || unicode.IsDigit(r) { - n = utf8.EncodeRune(t, r) - b = append(b, t[:n]...) - } else { - b = append(b, '_') - } - } - return string(b) -} - func genNonPtr(t reflect.Type) reflect.Type { for t.Kind() == reflect.Ptr { t = t.Elem() diff --git a/ingress/vendor/github.com/ugorji/go/codec/helper.go b/ingress/vendor/github.com/ugorji/go/codec/helper.go index 40065a01c8..560014ae39 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/helper.go +++ b/ingress/vendor/github.com/ugorji/go/codec/helper.go @@ -155,10 +155,8 @@ const ( resetSliceElemToZeroValue bool = false ) -var ( - oneByteArr = [1]byte{0} - zeroByteSlice = oneByteArr[:0:0] -) +var oneByteArr = [1]byte{0} +var zeroByteSlice = oneByteArr[:0:0] type charEncoding uint8 @@ -217,24 +215,6 @@ const ( containerArrayEnd ) -type rgetPoolT struct { - encNames [8]string - fNames [8]string - etypes [8]uintptr - sfis [8]*structFieldInfo -} - -var rgetPool = sync.Pool{ - New: func() interface{} { return new(rgetPoolT) }, -} - -type rgetT struct { - fNames []string - encNames []string - etypes []uintptr - sfis []*structFieldInfo -} - type containerStateRecv interface { sendContainerState(containerState) } @@ -853,17 +833,14 @@ func (x *TypeInfos) get(rtid uintptr, rt reflect.Type) (pti *typeInfo) { siInfo = parseStructFieldInfo(structInfoFieldName, x.structTag(f.Tag)) ti.toArray = siInfo.toArray } - pi := rgetPool.Get() - pv := pi.(*rgetPoolT) - pv.etypes[0] = ti.baseId - vv := rgetT{pv.fNames[:0], pv.encNames[:0], pv.etypes[:1], pv.sfis[:0]} - x.rget(rt, rtid, nil, &vv, siInfo) - ti.sfip = make([]*structFieldInfo, len(vv.sfis)) - ti.sfi = make([]*structFieldInfo, len(vv.sfis)) - copy(ti.sfip, vv.sfis) - sort.Sort(sfiSortedByEncName(vv.sfis)) - copy(ti.sfi, vv.sfis) - rgetPool.Put(pi) + sfip := make([]*structFieldInfo, 0, rt.NumField()) + x.rget(rt, nil, make(map[string]bool, 16), &sfip, siInfo) + + ti.sfip = make([]*structFieldInfo, len(sfip)) + ti.sfi = make([]*structFieldInfo, len(sfip)) + copy(ti.sfip, sfip) + sort.Sort(sfiSortedByEncName(sfip)) + copy(ti.sfi, sfip) } // sfi = sfip @@ -876,37 +853,16 @@ func (x *TypeInfos) get(rtid uintptr, rt reflect.Type) (pti *typeInfo) { return } -func (x *TypeInfos) rget(rt reflect.Type, rtid uintptr, - indexstack []int, pv *rgetT, siInfo *structFieldInfo, +func (x *TypeInfos) rget(rt reflect.Type, indexstack []int, fnameToHastag map[string]bool, + sfi *[]*structFieldInfo, siInfo *structFieldInfo, ) { - // This will read up the fields and store how to access the value. - // It uses the go language's rules for embedding, as below: - // - if a field has been seen while traversing, skip it - // - if an encName has been seen while traversing, skip it - // - if an embedded type has been seen, skip it - // - // Also, per Go's rules, embedded fields must be analyzed AFTER all top-level fields. - // - // Note: we consciously use slices, not a map, to simulate a set. - // Typically, types have < 16 fields, and iteration using equals is faster than maps there - - type anonField struct { - ft reflect.Type - idx int - } - - var anonFields []anonField - -LOOP: - for j, jlen := 0, rt.NumField(); j < jlen; j++ { + for j := 0; j < rt.NumField(); j++ { f := rt.Field(j) fkind := f.Type.Kind() // skip if a func type, or is unexported, or structTag value == "-" - switch fkind { - case reflect.Func, reflect.Complex64, reflect.Complex128, reflect.UnsafePointer: - continue LOOP + if fkind == reflect.Func { + continue } - // if r1, _ := utf8.DecodeRuneInString(f.Name); r1 == utf8.RuneError || !unicode.IsUpper(r1) { if f.PkgPath != "" && !f.Anonymous { // unexported, not embedded continue @@ -930,8 +886,11 @@ LOOP: ft = ft.Elem() } if ft.Kind() == reflect.Struct { - // handle anonymous fields after handling all the non-anon fields - anonFields = append(anonFields, anonField{ft, j}) + indexstack2 := make([]int, len(indexstack)+1, len(indexstack)+4) + copy(indexstack2, indexstack) + indexstack2[len(indexstack)] = j + // indexstack2 := append(append(make([]int, 0, len(indexstack)+4), indexstack...), j) + x.rget(ft, indexstack2, fnameToHastag, sfi, siInfo) continue } } @@ -942,39 +901,26 @@ LOOP: continue } + // do not let fields with same name in embedded structs override field at higher level. + // this must be done after anonymous check, to allow anonymous field + // still include their child fields + if _, ok := fnameToHastag[f.Name]; ok { + continue + } if f.Name == "" { panic(noFieldNameToStructFieldInfoErr) } - - for _, k := range pv.fNames { - if k == f.Name { - continue LOOP - } - } - pv.fNames = append(pv.fNames, f.Name) - if si == nil { si = parseStructFieldInfo(f.Name, stag) } else if si.encName == "" { si.encName = f.Name } - - for _, k := range pv.encNames { - if k == si.encName { - continue LOOP - } - } - pv.encNames = append(pv.encNames, si.encName) - // si.ikind = int(f.Type.Kind()) if len(indexstack) == 0 { si.i = int16(j) } else { si.i = -1 - si.is = make([]int, len(indexstack)+1) - copy(si.is, indexstack) - si.is[len(indexstack)] = j - // si.is = append(append(make([]int, 0, len(indexstack)+4), indexstack...), j) + si.is = append(append(make([]int, 0, len(indexstack)+4), indexstack...), j) } if siInfo != nil { @@ -982,26 +928,8 @@ LOOP: si.omitEmpty = true } } - pv.sfis = append(pv.sfis, si) - } - - // now handle anonymous fields -LOOP2: - for _, af := range anonFields { - // if etypes contains this, then do not call rget again (as the fields are already seen here) - ftid := reflect.ValueOf(af.ft).Pointer() - for _, k := range pv.etypes { - if k == ftid { - continue LOOP2 - } - } - pv.etypes = append(pv.etypes, ftid) - - indexstack2 := make([]int, len(indexstack)+1) - copy(indexstack2, indexstack) - indexstack2[len(indexstack)] = af.idx - // indexstack2 := append(append(make([]int, 0, len(indexstack)+4), indexstack...), j) - x.rget(af.ft, ftid, indexstack2, pv, siInfo) + *sfi = append(*sfi, si) + fnameToHastag[f.Name] = stag != "" } } @@ -1199,73 +1127,3 @@ type bytesISlice []bytesI func (p bytesISlice) Len() int { return len(p) } func (p bytesISlice) Less(i, j int) bool { return bytes.Compare(p[i].v, p[j].v) == -1 } func (p bytesISlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } - -// ----------------- - -type set []uintptr - -func (s *set) add(v uintptr) (exists bool) { - // e.ci is always nil, or len >= 1 - // defer func() { fmt.Printf("$$$$$$$$$$$ cirRef Add: %v, exists: %v\n", v, exists) }() - x := *s - if x == nil { - x = make([]uintptr, 1, 8) - x[0] = v - *s = x - return - } - // typically, length will be 1. make this perform. - if len(x) == 1 { - if j := x[0]; j == 0 { - x[0] = v - } else if j == v { - exists = true - } else { - x = append(x, v) - *s = x - } - return - } - // check if it exists - for _, j := range x { - if j == v { - exists = true - return - } - } - // try to replace a "deleted" slot - for i, j := range x { - if j == 0 { - x[i] = v - return - } - } - // if unable to replace deleted slot, just append it. - x = append(x, v) - *s = x - return -} - -func (s *set) remove(v uintptr) (exists bool) { - // defer func() { fmt.Printf("$$$$$$$$$$$ cirRef Rm: %v, exists: %v\n", v, exists) }() - x := *s - if len(x) == 0 { - return - } - if len(x) == 1 { - if x[0] == v { - x[0] = 0 - } - return - } - for i, j := range x { - if j == v { - exists = true - x[i] = 0 // set it to 0, as way to delete it. - // copy(x[i:], x[i+1:]) - // x = x[:len(x)-1] - return - } - } - return -} diff --git a/ingress/vendor/github.com/ugorji/go/codec/json.go b/ingress/vendor/github.com/ugorji/go/codec/json.go index a04dfcb9d3..a18a5f7063 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/json.go +++ b/ingress/vendor/github.com/ugorji/go/codec/json.go @@ -43,23 +43,18 @@ import ( //-------------------------------- -var ( - jsonLiterals = [...]byte{'t', 'r', 'u', 'e', 'f', 'a', 'l', 's', 'e', 'n', 'u', 'l', 'l'} +var jsonLiterals = [...]byte{'t', 'r', 'u', 'e', 'f', 'a', 'l', 's', 'e', 'n', 'u', 'l', 'l'} - jsonFloat64Pow10 = [...]float64{ - 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, - 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, - 1e20, 1e21, 1e22, - } - - jsonUint64Pow10 = [...]uint64{ - 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, - 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, - } +var jsonFloat64Pow10 = [...]float64{ + 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, + 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, + 1e20, 1e21, 1e22, +} - // jsonTabs and jsonSpaces are used as caches for indents - jsonTabs, jsonSpaces string -) +var jsonUint64Pow10 = [...]uint64{ + 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, + 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, +} const ( // jsonUnreadAfterDecNum controls whether we unread after decoding a number. @@ -90,23 +85,8 @@ const ( jsonNumUintMaxVal = 1< 1<<53 || v < -(1<<53)) { - e.w.writen1('"') - e.w.writeb(strconv.AppendInt(e.b[:0], v, 10)) - e.w.writen1('"') - return - } e.w.writeb(strconv.AppendInt(e.b[:0], v, 10)) } func (e *jsonEncDriver) EncodeUint(v uint64) { - if x := e.h.IntegerAsString; x == 'A' || x == 'L' && v > 1<<53 { - e.w.writen1('"') - e.w.writeb(strconv.AppendUint(e.b[:0], v, 10)) - e.w.writen1('"') - return - } e.w.writeb(strconv.AppendUint(e.b[:0], v, 10)) } @@ -243,17 +165,11 @@ func (e *jsonEncDriver) EncodeRawExt(re *RawExt, en *Encoder) { } func (e *jsonEncDriver) EncodeArrayStart(length int) { - if e.d { - e.dl++ - } e.w.writen1('[') e.c = containerArrayStart } func (e *jsonEncDriver) EncodeMapStart(length int) { - if e.d { - e.dl++ - } e.w.writen1('{') e.c = containerMapStart } @@ -648,11 +564,6 @@ func (d *jsonDecDriver) decNum(storeBytes bool) { d.tok = b } b := d.tok - var str bool - if b == '"' { - str = true - b = d.r.readn1() - } if !(b == '+' || b == '-' || b == '.' || (b >= '0' && b <= '9')) { d.d.errorf("json: decNum: got first char '%c'", b) return @@ -667,10 +578,6 @@ func (d *jsonDecDriver) decNum(storeBytes bool) { n.reset() d.bs = d.bs[:0] - if str && storeBytes { - d.bs = append(d.bs, '"') - } - // The format of a number is as below: // parsing: sign? digit* dot? digit* e? sign? digit* // states: 0 1* 2 3* 4 5* 6 7 @@ -761,14 +668,6 @@ LOOP: default: break LOOP } - case '"': - if str { - if storeBytes { - d.bs = append(d.bs, '"') - } - b, eof = r.readn1eof() - } - break LOOP default: break LOOP } @@ -1134,24 +1033,6 @@ type JsonHandle struct { // RawBytesExt, if configured, is used to encode and decode raw bytes in a custom way. // If not configured, raw bytes are encoded to/from base64 text. RawBytesExt InterfaceExt - - // Indent indicates how a value is encoded. - // - If positive, indent by that number of spaces. - // - If negative, indent by that number of tabs. - Indent int8 - - // IntegerAsString controls how integers (signed and unsigned) are encoded. - // - // Per the JSON Spec, JSON numbers are 64-bit floating point numbers. - // Consequently, integers > 2^53 cannot be represented as a JSON number without losing precision. - // This can be mitigated by configuring how to encode integers. - // - // IntegerAsString interpretes the following values: - // - if 'L', then encode integers > 2^53 as a json string. - // - if 'A', then encode all integers as a json string - // containing the exact integer representation as a decimal. - // - else encode all integers as a json number (default) - IntegerAsString uint8 } func (h *JsonHandle) SetInterfaceExt(rt reflect.Type, tag uint64, ext InterfaceExt) (err error) { @@ -1159,48 +1040,26 @@ func (h *JsonHandle) SetInterfaceExt(rt reflect.Type, tag uint64, ext InterfaceE } func (h *JsonHandle) newEncDriver(e *Encoder) encDriver { - hd := jsonEncDriver{e: e, h: h} + hd := jsonEncDriver{e: e, w: e.w, h: h} hd.bs = hd.b[:0] - - hd.reset() - + hd.se.i = h.RawBytesExt return &hd } func (h *JsonHandle) newDecDriver(d *Decoder) decDriver { // d := jsonDecDriver{r: r.(*bytesDecReader), h: h} - hd := jsonDecDriver{d: d, h: h} + hd := jsonDecDriver{d: d, r: d.r, h: h} hd.bs = hd.b[:0] - hd.reset() + hd.se.i = h.RawBytesExt return &hd } func (e *jsonEncDriver) reset() { e.w = e.e.w - e.se.i = e.h.RawBytesExt - if e.bs != nil { - e.bs = e.bs[:0] - } - e.d, e.dt, e.dl, e.ds = false, false, 0, "" - e.c = 0 - if e.h.Indent > 0 { - e.d = true - e.ds = jsonSpaces[:e.h.Indent] - } else if e.h.Indent < 0 { - e.d = true - e.dt = true - e.ds = jsonTabs[:-(e.h.Indent)] - } } func (d *jsonDecDriver) reset() { d.r = d.d.r - d.se.i = d.h.RawBytesExt - if d.bs != nil { - d.bs = d.bs[:0] - } - d.c, d.tok = 0, 0 - d.n.reset() } var jsonEncodeTerminate = []byte{' '} diff --git a/ingress/vendor/github.com/ugorji/go/codec/msgpack.go b/ingress/vendor/github.com/ugorji/go/codec/msgpack.go index f9f8723627..5eb4c96368 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/msgpack.go +++ b/ingress/vendor/github.com/ugorji/go/codec/msgpack.go @@ -374,7 +374,7 @@ func (d *msgpackDecDriver) DecodeNaked() { } if n.v == valueTypeUint && d.h.SignedInteger { n.v = valueTypeInt - n.i = int64(n.u) + n.i = int64(n.v) } return } @@ -729,7 +729,6 @@ func (e *msgpackEncDriver) reset() { func (d *msgpackDecDriver) reset() { d.r = d.d.r - d.bd, d.bdRead = 0, false } //-------------------------------------------------- diff --git a/ingress/vendor/github.com/ugorji/go/codec/prebuild.sh b/ingress/vendor/github.com/ugorji/go/codec/prebuild.sh index 909f4bb0f2..98f442487a 100755 --- a/ingress/vendor/github.com/ugorji/go/codec/prebuild.sh +++ b/ingress/vendor/github.com/ugorji/go/codec/prebuild.sh @@ -171,7 +171,7 @@ do 'xf') zforce=1;; 'xb') zbak=1;; 'xx') zexternal=1;; - *) echo "prebuild.sh accepts [-fbx] only"; return 1;; + *) echo "prebuild.sh accepts [-fb] only"; return 1;; esac done shift $((OPTIND-1)) diff --git a/ingress/vendor/github.com/ugorji/go/codec/simple.go b/ingress/vendor/github.com/ugorji/go/codec/simple.go index 7c0ba7affc..c150496509 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/simple.go +++ b/ingress/vendor/github.com/ugorji/go/codec/simple.go @@ -512,7 +512,6 @@ func (e *simpleEncDriver) reset() { func (d *simpleDecDriver) reset() { d.r = d.d.r - d.bd, d.bdRead = 0, false } var _ decDriver = (*simpleDecDriver)(nil) diff --git a/ingress/vendor/github.com/ugorji/go/codec/test.py b/ingress/vendor/github.com/ugorji/go/codec/test.py index c0ad20b34c..dfe3b0c9a0 100755 --- a/ingress/vendor/github.com/ugorji/go/codec/test.py +++ b/ingress/vendor/github.com/ugorji/go/codec/test.py @@ -9,8 +9,6 @@ # sudo apt-get install python-pip # pip install --user msgpack-python msgpack-rpc-python cbor -# Ensure all "string" keys are utf strings (else encoded as bytes) - import cbor, msgpack, msgpackrpc, sys, os, threading def get_test_data_list(): @@ -28,39 +26,35 @@ def get_test_data_list(): -3232.0, -6464646464.0, 3232.0, - 6464.0, 6464646464.0, False, True, - u"null", None, u"someday", - 1328176922000002000, u"", - -2206187877999998000, u"bytestring", + 1328176922000002000, + -2206187877999998000, 270, - u"none", -2013855847999995777, #-6795364578871345152, ] l1 = [ { "true": True, "false": False }, - { "true": u"True", + { "true": "True", "false": False, "uint16(1616)": 1616 }, { "list": [1616, 32323232, True, -3232.0, {"TRUE":True, "FALSE":False}, [True, False] ], "int32":32323232, "bool": True, - "LONG STRING": u"123456789012345678901234567890123456789012345678901234567890", - "SHORT STRING": u"1234567890" }, - { True: "true", 138: False, "false": 200 } + "LONG STRING": "123456789012345678901234567890123456789012345678901234567890", + "SHORT STRING": "1234567890" }, + { True: "true", 8: False, "false": 0 } ] l = [] l.extend(l0) l.append(l0) - l.append(1) l.extend(l1) return l diff --git a/ingress/vendor/github.com/ugorji/go/codec/tests.sh b/ingress/vendor/github.com/ugorji/go/codec/tests.sh index 00857b6209..b1602ea7e7 100755 --- a/ingress/vendor/github.com/ugorji/go/codec/tests.sh +++ b/ingress/vendor/github.com/ugorji/go/codec/tests.sh @@ -6,7 +6,6 @@ _run() { # 1. VARIATIONS: regular (t), canonical (c), IO R/W (i), # binc-nosymbols (n), struct2array (s), intern string (e), - # json-indent (d), circular (l) # 2. MODE: reflection (r), external (x), codecgen (g), unsafe (u), notfastpath (f) # 3. OPTIONS: verbose (v), reset (z), must (m), # @@ -17,7 +16,7 @@ _run() { zargs="" local OPTIND OPTIND=1 - while getopts "_xurtcinsvgzmefdl" flag + while getopts "xurtcinsvgzmef" flag do case "x$flag" in 'xr') ;; @@ -28,7 +27,6 @@ _run() { 'xv') zargs="$zargs -tv" ;; 'xz') zargs="$zargs -tr" ;; 'xm') zargs="$zargs -tm" ;; - 'xl') zargs="$zargs -tl" ;; *) ;; esac done @@ -37,19 +35,15 @@ _run() { # echo ">>>>>>> TAGS: $ztags" OPTIND=1 - while getopts "_xurtcinsvgzmefdl" flag + 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" -run=Binc $zargs -tn; 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 ;; - 'xd') printf ">>>>>>> INDENT : "; - go test "-tags=$ztags" -run=JsonCodecsTable -td=-1 $zargs; - go test "-tags=$ztags" -run=JsonCodecsTable -td=8 $zargs; - sleep 2 ;; *) ;; esac done @@ -61,20 +55,20 @@ _run() { # echo ">>>>>>> RUNNING VARIATIONS OF TESTS" if [[ "x$@" = "x" ]]; then # All: r, x, g, gu - _run "-_tcinsed_ml" # regular - _run "-_tcinsed_ml_z" # regular with reset - _run "-_tcinsed_ml_f" # regular with no fastpath (notfastpath) - _run "-x_tcinsed_ml" # external - _run "-gx_tcinsed_ml" # codecgen: requires external - _run "-gxu_tcinsed_ml" # codecgen + unsafe + _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 "-_tcinsed_ml" # regular - _run "-_tcinsed_ml_z" # regular with reset + _run "-rtcinsm" # regular + _run "-rtcinsmz" # regular with reset elif [[ "x$@" = "x-F" ]]; then # regular with notfastpath - _run "-_tcinsed_ml_f" # regular - _run "-_tcinsed_ml_zf" # regular with reset + _run "-rtcinsmf" # regular + _run "-rtcinsmzf" # regular with reset else _run "$@" fi diff --git a/ingress/vendor/github.com/ugorji/go/codec/time.go b/ingress/vendor/github.com/ugorji/go/codec/time.go index 718b731ec5..fc4c63e1de 100644 --- a/ingress/vendor/github.com/ugorji/go/codec/time.go +++ b/ingress/vendor/github.com/ugorji/go/codec/time.go @@ -5,22 +5,11 @@ package codec import ( "fmt" - "reflect" "time" ) var ( - timeDigits = [...]byte{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} - timeExtEncFn = func(rv reflect.Value) (bs []byte, err error) { - defer panicToErr(&err) - bs = timeExt{}.WriteExt(rv.Interface()) - return - } - timeExtDecFn = func(rv reflect.Value, bs []byte) (err error) { - defer panicToErr(&err) - timeExt{}.ReadExt(rv.Interface(), bs) - return - } + timeDigits = [...]byte{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} ) type timeExt struct{} diff --git a/ingress/vendor/golang.org/x/net/context/context.go b/ingress/vendor/golang.org/x/net/context/context.go index 11bd8d34e6..ea1a7cd53a 100644 --- a/ingress/vendor/golang.org/x/net/context/context.go +++ b/ingress/vendor/golang.org/x/net/context/context.go @@ -36,12 +36,7 @@ // Contexts. package context -import ( - "errors" - "fmt" - "sync" - "time" -) +import "time" // A Context carries a deadline, a cancelation signal, and other values across // API boundaries. @@ -66,7 +61,7 @@ type Context interface { // // // Stream generates values with DoSomething and sends them to out // // until DoSomething returns an error or ctx.Done is closed. - // func Stream(ctx context.Context, out <-chan Value) error { + // func Stream(ctx context.Context, out chan<- Value) error { // for { // v, err := DoSomething(ctx) // if err != nil { @@ -138,48 +133,6 @@ type Context interface { Value(key interface{}) interface{} } -// Canceled is the error returned by Context.Err when the context is canceled. -var Canceled = errors.New("context canceled") - -// DeadlineExceeded is the error returned by Context.Err when the context's -// deadline passes. -var DeadlineExceeded = errors.New("context deadline exceeded") - -// An emptyCtx is never canceled, has no values, and has no deadline. It is not -// struct{}, since vars of this type must have distinct addresses. -type emptyCtx int - -func (*emptyCtx) Deadline() (deadline time.Time, ok bool) { - return -} - -func (*emptyCtx) Done() <-chan struct{} { - return nil -} - -func (*emptyCtx) Err() error { - return nil -} - -func (*emptyCtx) Value(key interface{}) interface{} { - return nil -} - -func (e *emptyCtx) String() string { - switch e { - case background: - return "context.Background" - case todo: - return "context.TODO" - } - return "unknown empty Context" -} - -var ( - background = new(emptyCtx) - todo = new(emptyCtx) -) - // Background returns a non-nil, empty Context. It is never canceled, has no // values, and has no deadline. It is typically used by the main function, // initialization, and tests, and as the top-level Context for incoming @@ -201,247 +154,3 @@ func TODO() Context { // A CancelFunc does not wait for the work to stop. // After the first call, subsequent calls to a CancelFunc do nothing. type CancelFunc func() - -// WithCancel returns a copy of parent with a new Done channel. The returned -// context's Done channel is closed when the returned cancel function is called -// or when the parent context's Done channel is closed, whichever happens first. -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete. -func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { - c := newCancelCtx(parent) - propagateCancel(parent, &c) - return &c, func() { c.cancel(true, Canceled) } -} - -// newCancelCtx returns an initialized cancelCtx. -func newCancelCtx(parent Context) cancelCtx { - return cancelCtx{ - Context: parent, - done: make(chan struct{}), - } -} - -// propagateCancel arranges for child to be canceled when parent is. -func propagateCancel(parent Context, child canceler) { - if parent.Done() == nil { - return // parent is never canceled - } - if p, ok := parentCancelCtx(parent); ok { - p.mu.Lock() - if p.err != nil { - // parent has already been canceled - child.cancel(false, p.err) - } else { - if p.children == nil { - p.children = make(map[canceler]bool) - } - p.children[child] = true - } - p.mu.Unlock() - } else { - go func() { - select { - case <-parent.Done(): - child.cancel(false, parent.Err()) - case <-child.Done(): - } - }() - } -} - -// parentCancelCtx follows a chain of parent references until it finds a -// *cancelCtx. This function understands how each of the concrete types in this -// package represents its parent. -func parentCancelCtx(parent Context) (*cancelCtx, bool) { - for { - switch c := parent.(type) { - case *cancelCtx: - return c, true - case *timerCtx: - return &c.cancelCtx, true - case *valueCtx: - parent = c.Context - default: - return nil, false - } - } -} - -// removeChild removes a context from its parent. -func removeChild(parent Context, child canceler) { - p, ok := parentCancelCtx(parent) - if !ok { - return - } - p.mu.Lock() - if p.children != nil { - delete(p.children, child) - } - p.mu.Unlock() -} - -// A canceler is a context type that can be canceled directly. The -// implementations are *cancelCtx and *timerCtx. -type canceler interface { - cancel(removeFromParent bool, err error) - Done() <-chan struct{} -} - -// A cancelCtx can be canceled. When canceled, it also cancels any children -// that implement canceler. -type cancelCtx struct { - Context - - done chan struct{} // closed by the first cancel call. - - mu sync.Mutex - children map[canceler]bool // set to nil by the first cancel call - err error // set to non-nil by the first cancel call -} - -func (c *cancelCtx) Done() <-chan struct{} { - return c.done -} - -func (c *cancelCtx) Err() error { - c.mu.Lock() - defer c.mu.Unlock() - return c.err -} - -func (c *cancelCtx) String() string { - return fmt.Sprintf("%v.WithCancel", c.Context) -} - -// cancel closes c.done, cancels each of c's children, and, if -// removeFromParent is true, removes c from its parent's children. -func (c *cancelCtx) cancel(removeFromParent bool, err error) { - if err == nil { - panic("context: internal error: missing cancel error") - } - c.mu.Lock() - if c.err != nil { - c.mu.Unlock() - return // already canceled - } - c.err = err - close(c.done) - for child := range c.children { - // NOTE: acquiring the child's lock while holding parent's lock. - child.cancel(false, err) - } - c.children = nil - c.mu.Unlock() - - if removeFromParent { - removeChild(c.Context, c) - } -} - -// WithDeadline returns a copy of the parent context with the deadline adjusted -// to be no later than d. If the parent's deadline is already earlier than d, -// WithDeadline(parent, d) is semantically equivalent to parent. The returned -// context's Done channel is closed when the deadline expires, when the returned -// cancel function is called, or when the parent context's Done channel is -// closed, whichever happens first. -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete. -func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { - if cur, ok := parent.Deadline(); ok && cur.Before(deadline) { - // The current deadline is already sooner than the new one. - return WithCancel(parent) - } - c := &timerCtx{ - cancelCtx: newCancelCtx(parent), - deadline: deadline, - } - propagateCancel(parent, c) - d := deadline.Sub(time.Now()) - if d <= 0 { - c.cancel(true, DeadlineExceeded) // deadline has already passed - return c, func() { c.cancel(true, Canceled) } - } - c.mu.Lock() - defer c.mu.Unlock() - if c.err == nil { - c.timer = time.AfterFunc(d, func() { - c.cancel(true, DeadlineExceeded) - }) - } - return c, func() { c.cancel(true, Canceled) } -} - -// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to -// implement Done and Err. It implements cancel by stopping its timer then -// delegating to cancelCtx.cancel. -type timerCtx struct { - cancelCtx - timer *time.Timer // Under cancelCtx.mu. - - deadline time.Time -} - -func (c *timerCtx) Deadline() (deadline time.Time, ok bool) { - return c.deadline, true -} - -func (c *timerCtx) String() string { - return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now())) -} - -func (c *timerCtx) cancel(removeFromParent bool, err error) { - c.cancelCtx.cancel(false, err) - if removeFromParent { - // Remove this timerCtx from its parent cancelCtx's children. - removeChild(c.cancelCtx.Context, c) - } - c.mu.Lock() - if c.timer != nil { - c.timer.Stop() - c.timer = nil - } - c.mu.Unlock() -} - -// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete: -// -// func slowOperationWithTimeout(ctx context.Context) (Result, error) { -// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) -// defer cancel() // releases resources if slowOperation completes before timeout elapses -// return slowOperation(ctx) -// } -func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { - return WithDeadline(parent, time.Now().Add(timeout)) -} - -// WithValue returns a copy of parent in which the value associated with key is -// val. -// -// Use context Values only for request-scoped data that transits processes and -// APIs, not for passing optional parameters to functions. -func WithValue(parent Context, key interface{}, val interface{}) Context { - return &valueCtx{parent, key, val} -} - -// A valueCtx carries a key-value pair. It implements Value for that key and -// delegates all other calls to the embedded Context. -type valueCtx struct { - Context - key, val interface{} -} - -func (c *valueCtx) String() string { - return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val) -} - -func (c *valueCtx) Value(key interface{}) interface{} { - if c.key == key { - return c.val - } - return c.Context.Value(key) -} diff --git a/ingress/vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.go b/ingress/vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.go deleted file mode 100644 index 56bcbadb85..0000000000 --- a/ingress/vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !go1.5 - -package ctxhttp - -import "net/http" - -type requestCanceler interface { - CancelRequest(*http.Request) -} - -func canceler(client *http.Client, req *http.Request) func() { - rc, ok := client.Transport.(requestCanceler) - if !ok { - return func() {} - } - return func() { - rc.CancelRequest(req) - } -} diff --git a/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go b/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go index 26a5e19ac3..f31d882736 100644 --- a/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go +++ b/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go @@ -1,7 +1,9 @@ -// Copyright 2015 The Go Authors. All rights reserved. +// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build go1.7 + // Package ctxhttp provides helper functions for performing context-aware HTTP requests. package ctxhttp @@ -14,71 +16,18 @@ import ( "golang.org/x/net/context" ) -func nop() {} - -var ( - testHookContextDoneBeforeHeaders = nop - testHookDoReturned = nop - testHookDidBodyClose = nop -) - -// Do sends an HTTP request with the provided http.Client and returns an HTTP response. +// Do sends an HTTP request with the provided http.Client and returns +// an HTTP response. +// // If the client is nil, http.DefaultClient is used. -// If the context is canceled or times out, ctx.Err() will be returned. +// +// The provided ctx must be non-nil. If it is canceled or times out, +// ctx.Err() will be returned. func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) { if client == nil { client = http.DefaultClient } - - // Request cancelation changed in Go 1.5, see cancelreq.go and cancelreq_go14.go. - cancel := canceler(client, req) - - type responseAndError struct { - resp *http.Response - err error - } - result := make(chan responseAndError, 1) - - go func() { - resp, err := client.Do(req) - testHookDoReturned() - result <- responseAndError{resp, err} - }() - - var resp *http.Response - - select { - case <-ctx.Done(): - testHookContextDoneBeforeHeaders() - cancel() - // Clean up after the goroutine calling client.Do: - go func() { - if r := <-result; r.resp != nil { - testHookDidBodyClose() - r.resp.Body.Close() - } - }() - return nil, ctx.Err() - case r := <-result: - var err error - resp, err = r.resp, r.err - if err != nil { - return resp, err - } - } - - c := make(chan struct{}) - go func() { - select { - case <-ctx.Done(): - cancel() - case <-c: - // The response's Body is closed. - } - }() - resp.Body = ¬ifyingReader{resp.Body, c} - - return resp, nil + return client.Do(req.WithContext(ctx)) } // Get issues a GET request via the Do function. @@ -113,28 +62,3 @@ func Post(ctx context.Context, client *http.Client, url string, bodyType string, func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) { return Post(ctx, client, url, "application/x-www-form-urlencoded", strings.NewReader(data.Encode())) } - -// notifyingReader is an io.ReadCloser that closes the notify channel after -// Close is called or a Read fails on the underlying ReadCloser. -type notifyingReader struct { - io.ReadCloser - notify chan<- struct{} -} - -func (r *notifyingReader) Read(p []byte) (int, error) { - n, err := r.ReadCloser.Read(p) - if err != nil && r.notify != nil { - close(r.notify) - r.notify = nil - } - return n, err -} - -func (r *notifyingReader) Close() error { - err := r.ReadCloser.Close() - if r.notify != nil { - close(r.notify) - r.notify = nil - } - return err -} diff --git a/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go b/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go new file mode 100644 index 0000000000..7564b20327 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go @@ -0,0 +1,147 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !go1.7 + +package ctxhttp + +import ( + "io" + "net/http" + "net/url" + "strings" + + "golang.org/x/net/context" +) + +func nop() {} + +var ( + testHookContextDoneBeforeHeaders = nop + testHookDoReturned = nop + testHookDidBodyClose = nop +) + +// Do sends an HTTP request with the provided http.Client and returns an HTTP response. +// If the client is nil, http.DefaultClient is used. +// If the context is canceled or times out, ctx.Err() will be returned. +func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) { + if client == nil { + client = http.DefaultClient + } + + // TODO(djd): Respect any existing value of req.Cancel. + cancel := make(chan struct{}) + req.Cancel = cancel + + type responseAndError struct { + resp *http.Response + err error + } + result := make(chan responseAndError, 1) + + // Make local copies of test hooks closed over by goroutines below. + // Prevents data races in tests. + testHookDoReturned := testHookDoReturned + testHookDidBodyClose := testHookDidBodyClose + + go func() { + resp, err := client.Do(req) + testHookDoReturned() + result <- responseAndError{resp, err} + }() + + var resp *http.Response + + select { + case <-ctx.Done(): + testHookContextDoneBeforeHeaders() + close(cancel) + // Clean up after the goroutine calling client.Do: + go func() { + if r := <-result; r.resp != nil { + testHookDidBodyClose() + r.resp.Body.Close() + } + }() + return nil, ctx.Err() + case r := <-result: + var err error + resp, err = r.resp, r.err + if err != nil { + return resp, err + } + } + + c := make(chan struct{}) + go func() { + select { + case <-ctx.Done(): + close(cancel) + case <-c: + // The response's Body is closed. + } + }() + resp.Body = ¬ifyingReader{resp.Body, c} + + return resp, nil +} + +// Get issues a GET request via the Do function. +func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) { + req, err := http.NewRequest("GET", url, nil) + if err != nil { + return nil, err + } + return Do(ctx, client, req) +} + +// Head issues a HEAD request via the Do function. +func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) { + req, err := http.NewRequest("HEAD", url, nil) + if err != nil { + return nil, err + } + return Do(ctx, client, req) +} + +// Post issues a POST request via the Do function. +func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) { + req, err := http.NewRequest("POST", url, body) + if err != nil { + return nil, err + } + req.Header.Set("Content-Type", bodyType) + return Do(ctx, client, req) +} + +// PostForm issues a POST request via the Do function. +func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) { + return Post(ctx, client, url, "application/x-www-form-urlencoded", strings.NewReader(data.Encode())) +} + +// notifyingReader is an io.ReadCloser that closes the notify channel after +// Close is called or a Read fails on the underlying ReadCloser. +type notifyingReader struct { + io.ReadCloser + notify chan<- struct{} +} + +func (r *notifyingReader) Read(p []byte) (int, error) { + n, err := r.ReadCloser.Read(p) + if err != nil && r.notify != nil { + close(r.notify) + r.notify = nil + } + return n, err +} + +func (r *notifyingReader) Close() error { + err := r.ReadCloser.Close() + if r.notify != nil { + close(r.notify) + r.notify = nil + } + return err +} diff --git a/ingress/vendor/golang.org/x/net/context/go17.go b/ingress/vendor/golang.org/x/net/context/go17.go new file mode 100644 index 0000000000..f8cda19ada --- /dev/null +++ b/ingress/vendor/golang.org/x/net/context/go17.go @@ -0,0 +1,72 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.7 + +package context + +import ( + "context" // standard library's context, as of Go 1.7 + "time" +) + +var ( + todo = context.TODO() + background = context.Background() +) + +// Canceled is the error returned by Context.Err when the context is canceled. +var Canceled = context.Canceled + +// DeadlineExceeded is the error returned by Context.Err when the context's +// deadline passes. +var DeadlineExceeded = context.DeadlineExceeded + +// WithCancel returns a copy of parent with a new Done channel. The returned +// context's Done channel is closed when the returned cancel function is called +// or when the parent context's Done channel is closed, whichever happens first. +// +// Canceling this context releases resources associated with it, so code should +// call cancel as soon as the operations running in this Context complete. +func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { + ctx, f := context.WithCancel(parent) + return ctx, CancelFunc(f) +} + +// WithDeadline returns a copy of the parent context with the deadline adjusted +// to be no later than d. If the parent's deadline is already earlier than d, +// WithDeadline(parent, d) is semantically equivalent to parent. The returned +// context's Done channel is closed when the deadline expires, when the returned +// cancel function is called, or when the parent context's Done channel is +// closed, whichever happens first. +// +// Canceling this context releases resources associated with it, so code should +// call cancel as soon as the operations running in this Context complete. +func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { + ctx, f := context.WithDeadline(parent, deadline) + return ctx, CancelFunc(f) +} + +// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). +// +// Canceling this context releases resources associated with it, so code should +// call cancel as soon as the operations running in this Context complete: +// +// func slowOperationWithTimeout(ctx context.Context) (Result, error) { +// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) +// defer cancel() // releases resources if slowOperation completes before timeout elapses +// return slowOperation(ctx) +// } +func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { + return WithDeadline(parent, time.Now().Add(timeout)) +} + +// WithValue returns a copy of parent in which the value associated with key is +// val. +// +// Use context Values only for request-scoped data that transits processes and +// APIs, not for passing optional parameters to functions. +func WithValue(parent Context, key interface{}, val interface{}) Context { + return context.WithValue(parent, key, val) +} diff --git a/ingress/vendor/golang.org/x/net/context/pre_go17.go b/ingress/vendor/golang.org/x/net/context/pre_go17.go new file mode 100644 index 0000000000..5a30acabd0 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/context/pre_go17.go @@ -0,0 +1,300 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !go1.7 + +package context + +import ( + "errors" + "fmt" + "sync" + "time" +) + +// An emptyCtx is never canceled, has no values, and has no deadline. It is not +// struct{}, since vars of this type must have distinct addresses. +type emptyCtx int + +func (*emptyCtx) Deadline() (deadline time.Time, ok bool) { + return +} + +func (*emptyCtx) Done() <-chan struct{} { + return nil +} + +func (*emptyCtx) Err() error { + return nil +} + +func (*emptyCtx) Value(key interface{}) interface{} { + return nil +} + +func (e *emptyCtx) String() string { + switch e { + case background: + return "context.Background" + case todo: + return "context.TODO" + } + return "unknown empty Context" +} + +var ( + background = new(emptyCtx) + todo = new(emptyCtx) +) + +// Canceled is the error returned by Context.Err when the context is canceled. +var Canceled = errors.New("context canceled") + +// DeadlineExceeded is the error returned by Context.Err when the context's +// deadline passes. +var DeadlineExceeded = errors.New("context deadline exceeded") + +// WithCancel returns a copy of parent with a new Done channel. The returned +// context's Done channel is closed when the returned cancel function is called +// or when the parent context's Done channel is closed, whichever happens first. +// +// Canceling this context releases resources associated with it, so code should +// call cancel as soon as the operations running in this Context complete. +func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { + c := newCancelCtx(parent) + propagateCancel(parent, c) + return c, func() { c.cancel(true, Canceled) } +} + +// newCancelCtx returns an initialized cancelCtx. +func newCancelCtx(parent Context) *cancelCtx { + return &cancelCtx{ + Context: parent, + done: make(chan struct{}), + } +} + +// propagateCancel arranges for child to be canceled when parent is. +func propagateCancel(parent Context, child canceler) { + if parent.Done() == nil { + return // parent is never canceled + } + if p, ok := parentCancelCtx(parent); ok { + p.mu.Lock() + if p.err != nil { + // parent has already been canceled + child.cancel(false, p.err) + } else { + if p.children == nil { + p.children = make(map[canceler]bool) + } + p.children[child] = true + } + p.mu.Unlock() + } else { + go func() { + select { + case <-parent.Done(): + child.cancel(false, parent.Err()) + case <-child.Done(): + } + }() + } +} + +// parentCancelCtx follows a chain of parent references until it finds a +// *cancelCtx. This function understands how each of the concrete types in this +// package represents its parent. +func parentCancelCtx(parent Context) (*cancelCtx, bool) { + for { + switch c := parent.(type) { + case *cancelCtx: + return c, true + case *timerCtx: + return c.cancelCtx, true + case *valueCtx: + parent = c.Context + default: + return nil, false + } + } +} + +// removeChild removes a context from its parent. +func removeChild(parent Context, child canceler) { + p, ok := parentCancelCtx(parent) + if !ok { + return + } + p.mu.Lock() + if p.children != nil { + delete(p.children, child) + } + p.mu.Unlock() +} + +// A canceler is a context type that can be canceled directly. The +// implementations are *cancelCtx and *timerCtx. +type canceler interface { + cancel(removeFromParent bool, err error) + Done() <-chan struct{} +} + +// A cancelCtx can be canceled. When canceled, it also cancels any children +// that implement canceler. +type cancelCtx struct { + Context + + done chan struct{} // closed by the first cancel call. + + mu sync.Mutex + children map[canceler]bool // set to nil by the first cancel call + err error // set to non-nil by the first cancel call +} + +func (c *cancelCtx) Done() <-chan struct{} { + return c.done +} + +func (c *cancelCtx) Err() error { + c.mu.Lock() + defer c.mu.Unlock() + return c.err +} + +func (c *cancelCtx) String() string { + return fmt.Sprintf("%v.WithCancel", c.Context) +} + +// cancel closes c.done, cancels each of c's children, and, if +// removeFromParent is true, removes c from its parent's children. +func (c *cancelCtx) cancel(removeFromParent bool, err error) { + if err == nil { + panic("context: internal error: missing cancel error") + } + c.mu.Lock() + if c.err != nil { + c.mu.Unlock() + return // already canceled + } + c.err = err + close(c.done) + for child := range c.children { + // NOTE: acquiring the child's lock while holding parent's lock. + child.cancel(false, err) + } + c.children = nil + c.mu.Unlock() + + if removeFromParent { + removeChild(c.Context, c) + } +} + +// WithDeadline returns a copy of the parent context with the deadline adjusted +// to be no later than d. If the parent's deadline is already earlier than d, +// WithDeadline(parent, d) is semantically equivalent to parent. The returned +// context's Done channel is closed when the deadline expires, when the returned +// cancel function is called, or when the parent context's Done channel is +// closed, whichever happens first. +// +// Canceling this context releases resources associated with it, so code should +// call cancel as soon as the operations running in this Context complete. +func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { + if cur, ok := parent.Deadline(); ok && cur.Before(deadline) { + // The current deadline is already sooner than the new one. + return WithCancel(parent) + } + c := &timerCtx{ + cancelCtx: newCancelCtx(parent), + deadline: deadline, + } + propagateCancel(parent, c) + d := deadline.Sub(time.Now()) + if d <= 0 { + c.cancel(true, DeadlineExceeded) // deadline has already passed + return c, func() { c.cancel(true, Canceled) } + } + c.mu.Lock() + defer c.mu.Unlock() + if c.err == nil { + c.timer = time.AfterFunc(d, func() { + c.cancel(true, DeadlineExceeded) + }) + } + return c, func() { c.cancel(true, Canceled) } +} + +// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to +// implement Done and Err. It implements cancel by stopping its timer then +// delegating to cancelCtx.cancel. +type timerCtx struct { + *cancelCtx + timer *time.Timer // Under cancelCtx.mu. + + deadline time.Time +} + +func (c *timerCtx) Deadline() (deadline time.Time, ok bool) { + return c.deadline, true +} + +func (c *timerCtx) String() string { + return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now())) +} + +func (c *timerCtx) cancel(removeFromParent bool, err error) { + c.cancelCtx.cancel(false, err) + if removeFromParent { + // Remove this timerCtx from its parent cancelCtx's children. + removeChild(c.cancelCtx.Context, c) + } + c.mu.Lock() + if c.timer != nil { + c.timer.Stop() + c.timer = nil + } + c.mu.Unlock() +} + +// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). +// +// Canceling this context releases resources associated with it, so code should +// call cancel as soon as the operations running in this Context complete: +// +// func slowOperationWithTimeout(ctx context.Context) (Result, error) { +// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) +// defer cancel() // releases resources if slowOperation completes before timeout elapses +// return slowOperation(ctx) +// } +func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { + return WithDeadline(parent, time.Now().Add(timeout)) +} + +// WithValue returns a copy of parent in which the value associated with key is +// val. +// +// Use context Values only for request-scoped data that transits processes and +// APIs, not for passing optional parameters to functions. +func WithValue(parent Context, key interface{}, val interface{}) Context { + return &valueCtx{parent, key, val} +} + +// A valueCtx carries a key-value pair. It implements Value for that key and +// delegates all other calls to the embedded Context. +type valueCtx struct { + Context + key, val interface{} +} + +func (c *valueCtx) String() string { + return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val) +} + +func (c *valueCtx) Value(key interface{}) interface{} { + if c.key == key { + return c.val + } + return c.Context.Value(key) +} diff --git a/ingress/vendor/golang.org/x/net/http2/client_conn_pool.go b/ingress/vendor/golang.org/x/net/http2/client_conn_pool.go index 772ea5e924..547e238a58 100644 --- a/ingress/vendor/golang.org/x/net/http2/client_conn_pool.go +++ b/ingress/vendor/golang.org/x/net/http2/client_conn_pool.go @@ -18,6 +18,18 @@ type ClientConnPool interface { MarkDead(*ClientConn) } +// clientConnPoolIdleCloser is the interface implemented by ClientConnPool +// implementations which can close their idle connections. +type clientConnPoolIdleCloser interface { + ClientConnPool + closeIdleConnections() +} + +var ( + _ clientConnPoolIdleCloser = (*clientConnPool)(nil) + _ clientConnPoolIdleCloser = noDialClientConnPool{} +) + // TODO: use singleflight for dialing and addConnCalls? type clientConnPool struct { t *Transport @@ -40,7 +52,16 @@ const ( noDialOnMiss = false ) -func (p *clientConnPool) getClientConn(_ *http.Request, addr string, dialOnMiss bool) (*ClientConn, error) { +func (p *clientConnPool) getClientConn(req *http.Request, addr string, dialOnMiss bool) (*ClientConn, error) { + if req.Close && dialOnMiss { + // It gets its own connection. + cc, err := p.t.dialClientConn(addr) + if err != nil { + return nil, err + } + cc.singleUse = true + return cc, nil + } p.mu.Lock() for _, cc := range p.conns[addr] { if cc.CanTakeNewRequest() { @@ -223,3 +244,12 @@ func filterOutClientConn(in []*ClientConn, exclude *ClientConn) []*ClientConn { } return out } + +// noDialClientConnPool is an implementation of http2.ClientConnPool +// which never dials. We let the HTTP/1.1 client dial and use its TLS +// connection instead. +type noDialClientConnPool struct{ *clientConnPool } + +func (p noDialClientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) { + return p.getClientConn(req, addr, noDialOnMiss) +} diff --git a/ingress/vendor/golang.org/x/net/http2/configure_transport.go b/ingress/vendor/golang.org/x/net/http2/configure_transport.go index daa17f5d43..4f720f530b 100644 --- a/ingress/vendor/golang.org/x/net/http2/configure_transport.go +++ b/ingress/vendor/golang.org/x/net/http2/configure_transport.go @@ -32,7 +32,7 @@ func configureTransport(t1 *http.Transport) (*Transport, error) { t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1") } upgradeFn := func(authority string, c *tls.Conn) http.RoundTripper { - addr := authorityAddr(authority) + addr := authorityAddr("https", authority) if used, err := connPool.addConnIfNeeded(addr, t2, c); err != nil { go c.Close() return erringRoundTripper{err} @@ -67,15 +67,6 @@ func registerHTTPSProtocol(t *http.Transport, rt http.RoundTripper) (err error) return nil } -// noDialClientConnPool is an implementation of http2.ClientConnPool -// which never dials. We let the HTTP/1.1 client dial and use its TLS -// connection instead. -type noDialClientConnPool struct{ *clientConnPool } - -func (p noDialClientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) { - return p.getClientConn(req, addr, noDialOnMiss) -} - // noDialH2RoundTripper is a RoundTripper which only tries to complete the request // if there's already has a cached connection to the host. type noDialH2RoundTripper struct{ t *Transport } diff --git a/ingress/vendor/golang.org/x/net/http2/errors.go b/ingress/vendor/golang.org/x/net/http2/errors.go index f320b2c09e..71a4e29056 100644 --- a/ingress/vendor/golang.org/x/net/http2/errors.go +++ b/ingress/vendor/golang.org/x/net/http2/errors.go @@ -4,7 +4,10 @@ package http2 -import "fmt" +import ( + "errors" + "fmt" +) // An ErrCode is an unsigned 32-bit error code as defined in the HTTP/2 spec. type ErrCode uint32 @@ -88,3 +91,32 @@ type connError struct { func (e connError) Error() string { return fmt.Sprintf("http2: connection error: %v: %v", e.Code, e.Reason) } + +type pseudoHeaderError string + +func (e pseudoHeaderError) Error() string { + return fmt.Sprintf("invalid pseudo-header %q", string(e)) +} + +type duplicatePseudoHeaderError string + +func (e duplicatePseudoHeaderError) Error() string { + return fmt.Sprintf("duplicate pseudo-header %q", string(e)) +} + +type headerFieldNameError string + +func (e headerFieldNameError) Error() string { + return fmt.Sprintf("invalid header field name %q", string(e)) +} + +type headerFieldValueError string + +func (e headerFieldValueError) Error() string { + return fmt.Sprintf("invalid header field value %q", string(e)) +} + +var ( + errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers") + errPseudoAfterRegular = errors.New("pseudo header field after regular") +) diff --git a/ingress/vendor/golang.org/x/net/http2/frame.go b/ingress/vendor/golang.org/x/net/http2/frame.go index e1e837cc8a..981d407a71 100644 --- a/ingress/vendor/golang.org/x/net/http2/frame.go +++ b/ingress/vendor/golang.org/x/net/http2/frame.go @@ -11,7 +11,11 @@ import ( "fmt" "io" "log" + "strings" "sync" + + "golang.org/x/net/http2/hpack" + "golang.org/x/net/lex/httplex" ) const frameHeaderLen = 9 @@ -261,7 +265,7 @@ type Frame interface { type Framer struct { r io.Reader lastFrame Frame - errReason string + errDetail error // lastHeaderStream is non-zero if the last frame was an // unfinished HEADERS/CONTINUATION. @@ -293,8 +297,20 @@ type Framer struct { // to return non-compliant frames or frame orders. // This is for testing and permits using the Framer to test // other HTTP/2 implementations' conformance to the spec. + // It is not compatible with ReadMetaHeaders. AllowIllegalReads bool + // ReadMetaHeaders if non-nil causes ReadFrame to merge + // HEADERS and CONTINUATION frames together and return + // MetaHeadersFrame instead. + ReadMetaHeaders *hpack.Decoder + + // MaxHeaderListSize is the http2 MAX_HEADER_LIST_SIZE. + // It's used only if ReadMetaHeaders is set; 0 means a sane default + // (currently 16MB) + // If the limit is hit, MetaHeadersFrame.Truncated is set true. + MaxHeaderListSize uint32 + // TODO: track which type of frame & with which flags was sent // last. Then return an error (unless AllowIllegalWrites) if // we're in the middle of a header block and a @@ -307,6 +323,13 @@ type Framer struct { debugFramerBuf *bytes.Buffer } +func (fr *Framer) maxHeaderListSize() uint32 { + if fr.MaxHeaderListSize == 0 { + return 16 << 20 // sane default, per docs + } + return fr.MaxHeaderListSize +} + func (f *Framer) startWrite(ftype FrameType, flags Flags, streamID uint32) { // Write the FrameHeader. f.wbuf = append(f.wbuf[:0], @@ -402,6 +425,17 @@ func (fr *Framer) SetMaxReadFrameSize(v uint32) { fr.maxReadSize = v } +// ErrorDetail returns a more detailed error of the last error +// returned by Framer.ReadFrame. For instance, if ReadFrame +// returns a StreamError with code PROTOCOL_ERROR, ErrorDetail +// will say exactly what was invalid. ErrorDetail is not guaranteed +// to return a non-nil value and like the rest of the http2 package, +// its return value is not protected by an API compatibility promise. +// ErrorDetail is reset after the next call to ReadFrame. +func (fr *Framer) ErrorDetail() error { + return fr.errDetail +} + // ErrFrameTooLarge is returned from Framer.ReadFrame when the peer // sends a frame that is larger than declared with SetMaxReadFrameSize. var ErrFrameTooLarge = errors.New("http2: frame too large") @@ -420,9 +454,10 @@ func terminalReadFrameError(err error) bool { // // If the frame is larger than previously set with SetMaxReadFrameSize, the // returned error is ErrFrameTooLarge. Other errors may be of type -// ConnectionError, StreamError, or anything else from from the underlying +// ConnectionError, StreamError, or anything else from the underlying // reader. func (fr *Framer) ReadFrame() (Frame, error) { + fr.errDetail = nil if fr.lastFrame != nil { fr.lastFrame.invalidate() } @@ -450,6 +485,9 @@ func (fr *Framer) ReadFrame() (Frame, error) { if fr.logReads { log.Printf("http2: Framer %p: read %v", fr, summarizeFrame(f)) } + if fh.Type == FrameHeaders && fr.ReadMetaHeaders != nil { + return fr.readMetaFrame(f.(*HeadersFrame)) + } return f, nil } @@ -458,7 +496,7 @@ func (fr *Framer) ReadFrame() (Frame, error) { // to the peer before hanging up on them. This might help others debug // their implementations. func (fr *Framer) connError(code ErrCode, reason string) error { - fr.errReason = reason + fr.errDetail = errors.New(reason) return ConnectionError(code) } @@ -553,7 +591,14 @@ func parseDataFrame(fh FrameHeader, payload []byte) (Frame, error) { return f, nil } -var errStreamID = errors.New("invalid streamid") +var ( + errStreamID = errors.New("invalid stream ID") + errDepStreamID = errors.New("invalid dependent stream ID") +) + +func validStreamIDOrZero(streamID uint32) bool { + return streamID&(1<<31) == 0 +} func validStreamID(streamID uint32) bool { return streamID != 0 && streamID&(1<<31) == 0 @@ -940,8 +985,8 @@ func (f *Framer) WriteHeaders(p HeadersFrameParam) error { } if !p.Priority.IsZero() { v := p.Priority.StreamDep - if !validStreamID(v) && !f.AllowIllegalWrites { - return errors.New("invalid dependent stream id") + if !validStreamIDOrZero(v) && !f.AllowIllegalWrites { + return errDepStreamID } if p.Priority.Exclusive { v |= 1 << 31 @@ -1009,6 +1054,9 @@ func (f *Framer) WritePriority(streamID uint32, p PriorityParam) error { if !validStreamID(streamID) && !f.AllowIllegalWrites { return errStreamID } + if !validStreamIDOrZero(p.StreamDep) { + return errDepStreamID + } f.startWrite(FramePriority, 0, streamID) v := p.StreamDep if p.Exclusive { @@ -1225,6 +1273,196 @@ type headersEnder interface { HeadersEnded() bool } +type headersOrContinuation interface { + headersEnder + HeaderBlockFragment() []byte +} + +// A MetaHeadersFrame is the representation of one HEADERS frame and +// zero or more contiguous CONTINUATION frames and the decoding of +// their HPACK-encoded contents. +// +// This type of frame does not appear on the wire and is only returned +// by the Framer when Framer.ReadMetaHeaders is set. +type MetaHeadersFrame struct { + *HeadersFrame + + // Fields are the fields contained in the HEADERS and + // CONTINUATION frames. The underlying slice is owned by the + // Framer and must not be retained after the next call to + // ReadFrame. + // + // Fields are guaranteed to be in the correct http2 order and + // not have unknown pseudo header fields or invalid header + // field names or values. Required pseudo header fields may be + // missing, however. Use the MetaHeadersFrame.Pseudo accessor + // method access pseudo headers. + Fields []hpack.HeaderField + + // Truncated is whether the max header list size limit was hit + // and Fields is incomplete. The hpack decoder state is still + // valid, however. + Truncated bool +} + +// PseudoValue returns the given pseudo header field's value. +// The provided pseudo field should not contain the leading colon. +func (mh *MetaHeadersFrame) PseudoValue(pseudo string) string { + for _, hf := range mh.Fields { + if !hf.IsPseudo() { + return "" + } + if hf.Name[1:] == pseudo { + return hf.Value + } + } + return "" +} + +// RegularFields returns the regular (non-pseudo) header fields of mh. +// The caller does not own the returned slice. +func (mh *MetaHeadersFrame) RegularFields() []hpack.HeaderField { + for i, hf := range mh.Fields { + if !hf.IsPseudo() { + return mh.Fields[i:] + } + } + return nil +} + +// PseudoFields returns the pseudo header fields of mh. +// The caller does not own the returned slice. +func (mh *MetaHeadersFrame) PseudoFields() []hpack.HeaderField { + for i, hf := range mh.Fields { + if !hf.IsPseudo() { + return mh.Fields[:i] + } + } + return mh.Fields +} + +func (mh *MetaHeadersFrame) checkPseudos() error { + var isRequest, isResponse bool + pf := mh.PseudoFields() + for i, hf := range pf { + switch hf.Name { + case ":method", ":path", ":scheme", ":authority": + isRequest = true + case ":status": + isResponse = true + default: + return pseudoHeaderError(hf.Name) + } + // Check for duplicates. + // This would be a bad algorithm, but N is 4. + // And this doesn't allocate. + for _, hf2 := range pf[:i] { + if hf.Name == hf2.Name { + return duplicatePseudoHeaderError(hf.Name) + } + } + } + if isRequest && isResponse { + return errMixPseudoHeaderTypes + } + return nil +} + +func (fr *Framer) maxHeaderStringLen() int { + v := fr.maxHeaderListSize() + if uint32(int(v)) == v { + return int(v) + } + // They had a crazy big number for MaxHeaderBytes anyway, + // so give them unlimited header lengths: + return 0 +} + +// readMetaFrame returns 0 or more CONTINUATION frames from fr and +// merge them into into the provided hf and returns a MetaHeadersFrame +// with the decoded hpack values. +func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { + if fr.AllowIllegalReads { + return nil, errors.New("illegal use of AllowIllegalReads with ReadMetaHeaders") + } + mh := &MetaHeadersFrame{ + HeadersFrame: hf, + } + var remainSize = fr.maxHeaderListSize() + var sawRegular bool + + var invalid error // pseudo header field errors + hdec := fr.ReadMetaHeaders + hdec.SetEmitEnabled(true) + hdec.SetMaxStringLength(fr.maxHeaderStringLen()) + hdec.SetEmitFunc(func(hf hpack.HeaderField) { + if !httplex.ValidHeaderFieldValue(hf.Value) { + invalid = headerFieldValueError(hf.Value) + } + isPseudo := strings.HasPrefix(hf.Name, ":") + if isPseudo { + if sawRegular { + invalid = errPseudoAfterRegular + } + } else { + sawRegular = true + if !validWireHeaderFieldName(hf.Name) { + invalid = headerFieldNameError(hf.Name) + } + } + + if invalid != nil { + hdec.SetEmitEnabled(false) + return + } + + size := hf.Size() + if size > remainSize { + hdec.SetEmitEnabled(false) + mh.Truncated = true + return + } + remainSize -= size + + mh.Fields = append(mh.Fields, hf) + }) + // Lose reference to MetaHeadersFrame: + defer hdec.SetEmitFunc(func(hf hpack.HeaderField) {}) + + var hc headersOrContinuation = hf + for { + frag := hc.HeaderBlockFragment() + if _, err := hdec.Write(frag); err != nil { + return nil, ConnectionError(ErrCodeCompression) + } + + if hc.HeadersEnded() { + break + } + if f, err := fr.ReadFrame(); err != nil { + return nil, err + } else { + hc = f.(*ContinuationFrame) // guaranteed by checkFrameOrder + } + } + + mh.HeadersFrame.headerFragBuf = nil + mh.HeadersFrame.invalidate() + + if err := hdec.Close(); err != nil { + return nil, ConnectionError(ErrCodeCompression) + } + if invalid != nil { + fr.errDetail = invalid + return nil, StreamError{mh.StreamID, ErrCodeProtocol} + } + if err := mh.checkPseudos(); err != nil { + fr.errDetail = err + return nil, StreamError{mh.StreamID, ErrCodeProtocol} + } + return mh, nil +} + func summarizeFrame(f Frame) string { var buf bytes.Buffer f.Header().writeDebug(&buf) diff --git a/ingress/vendor/golang.org/x/net/http2/go15.go b/ingress/vendor/golang.org/x/net/http2/go15.go deleted file mode 100644 index f0a5624141..0000000000 --- a/ingress/vendor/golang.org/x/net/http2/go15.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.5 - -package http2 - -import "net/http" - -func requestCancel(req *http.Request) <-chan struct{} { return req.Cancel } diff --git a/ingress/vendor/golang.org/x/net/http2/go16.go b/ingress/vendor/golang.org/x/net/http2/go16.go new file mode 100644 index 0000000000..2b72855f55 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/http2/go16.go @@ -0,0 +1,43 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.6 + +package http2 + +import ( + "crypto/tls" + "net/http" + "time" +) + +func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { + return t1.ExpectContinueTimeout +} + +// isBadCipher reports whether the cipher is blacklisted by the HTTP/2 spec. +func isBadCipher(cipher uint16) bool { + switch cipher { + case tls.TLS_RSA_WITH_RC4_128_SHA, + tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA, + tls.TLS_RSA_WITH_AES_128_CBC_SHA, + tls.TLS_RSA_WITH_AES_256_CBC_SHA, + tls.TLS_RSA_WITH_AES_128_GCM_SHA256, + tls.TLS_RSA_WITH_AES_256_GCM_SHA384, + tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, + tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, + tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, + tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA, + tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, + tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, + tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: + // Reject cipher suites from Appendix A. + // "This list includes those cipher suites that do not + // offer an ephemeral key exchange and those that are + // based on the TLS null, stream or block cipher type" + return true + default: + return false + } +} diff --git a/ingress/vendor/golang.org/x/net/http2/go17.go b/ingress/vendor/golang.org/x/net/http2/go17.go new file mode 100644 index 0000000000..730319dd5a --- /dev/null +++ b/ingress/vendor/golang.org/x/net/http2/go17.go @@ -0,0 +1,94 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.7 + +package http2 + +import ( + "context" + "net" + "net/http" + "net/http/httptrace" + "time" +) + +type contextContext interface { + context.Context +} + +func serverConnBaseContext(c net.Conn, opts *ServeConnOpts) (ctx contextContext, cancel func()) { + ctx, cancel = context.WithCancel(context.Background()) + ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr()) + if hs := opts.baseConfig(); hs != nil { + ctx = context.WithValue(ctx, http.ServerContextKey, hs) + } + return +} + +func contextWithCancel(ctx contextContext) (_ contextContext, cancel func()) { + return context.WithCancel(ctx) +} + +func requestWithContext(req *http.Request, ctx contextContext) *http.Request { + return req.WithContext(ctx) +} + +type clientTrace httptrace.ClientTrace + +func reqContext(r *http.Request) context.Context { return r.Context() } + +func setResponseUncompressed(res *http.Response) { res.Uncompressed = true } + +func traceGotConn(req *http.Request, cc *ClientConn) { + trace := httptrace.ContextClientTrace(req.Context()) + if trace == nil || trace.GotConn == nil { + return + } + ci := httptrace.GotConnInfo{Conn: cc.tconn} + cc.mu.Lock() + ci.Reused = cc.nextStreamID > 1 + ci.WasIdle = len(cc.streams) == 0 && ci.Reused + if ci.WasIdle && !cc.lastActive.IsZero() { + ci.IdleTime = time.Now().Sub(cc.lastActive) + } + cc.mu.Unlock() + + trace.GotConn(ci) +} + +func traceWroteHeaders(trace *clientTrace) { + if trace != nil && trace.WroteHeaders != nil { + trace.WroteHeaders() + } +} + +func traceGot100Continue(trace *clientTrace) { + if trace != nil && trace.Got100Continue != nil { + trace.Got100Continue() + } +} + +func traceWait100Continue(trace *clientTrace) { + if trace != nil && trace.Wait100Continue != nil { + trace.Wait100Continue() + } +} + +func traceWroteRequest(trace *clientTrace, err error) { + if trace != nil && trace.WroteRequest != nil { + trace.WroteRequest(httptrace.WroteRequestInfo{Err: err}) + } +} + +func traceFirstResponseByte(trace *clientTrace) { + if trace != nil && trace.GotFirstResponseByte != nil { + trace.GotFirstResponseByte() + } +} + +func requestTrace(req *http.Request) *clientTrace { + trace := httptrace.ContextClientTrace(req.Context()) + return (*clientTrace)(trace) +} diff --git a/ingress/vendor/golang.org/x/net/http2/hpack/encode.go b/ingress/vendor/golang.org/x/net/http2/hpack/encode.go index 80d621cf35..f9bb033984 100644 --- a/ingress/vendor/golang.org/x/net/http2/hpack/encode.go +++ b/ingress/vendor/golang.org/x/net/http2/hpack/encode.go @@ -144,7 +144,7 @@ func (e *Encoder) SetMaxDynamicTableSizeLimit(v uint32) { // shouldIndex reports whether f should be indexed. func (e *Encoder) shouldIndex(f HeaderField) bool { - return !f.Sensitive && f.size() <= e.dynTab.maxSize + return !f.Sensitive && f.Size() <= e.dynTab.maxSize } // appendIndexed appends index i, as encoded in "Indexed Header Field" diff --git a/ingress/vendor/golang.org/x/net/http2/hpack/hpack.go b/ingress/vendor/golang.org/x/net/http2/hpack/hpack.go index 2ea4949ab0..8aa197ad67 100644 --- a/ingress/vendor/golang.org/x/net/http2/hpack/hpack.go +++ b/ingress/vendor/golang.org/x/net/http2/hpack/hpack.go @@ -41,6 +41,14 @@ type HeaderField struct { Sensitive bool } +// IsPseudo reports whether the header field is an http2 pseudo header. +// That is, it reports whether it starts with a colon. +// It is not otherwise guaranteed to be a valid pseudo header field, +// though. +func (hf HeaderField) IsPseudo() bool { + return len(hf.Name) != 0 && hf.Name[0] == ':' +} + func (hf HeaderField) String() string { var suffix string if hf.Sensitive { @@ -49,7 +57,8 @@ func (hf HeaderField) String() string { return fmt.Sprintf("header field %q = %q%s", hf.Name, hf.Value, suffix) } -func (hf *HeaderField) size() uint32 { +// Size returns the size of an entry per RFC 7540 section 5.2. +func (hf HeaderField) Size() uint32 { // http://http2.github.io/http2-spec/compression.html#rfc.section.4.1 // "The size of the dynamic table is the sum of the size of // its entries. The size of an entry is the sum of its name's @@ -171,7 +180,7 @@ func (dt *dynamicTable) setMaxSize(v uint32) { func (dt *dynamicTable) add(f HeaderField) { dt.ents = append(dt.ents, f) - dt.size += f.size() + dt.size += f.Size() dt.evict() } @@ -179,7 +188,7 @@ func (dt *dynamicTable) add(f HeaderField) { func (dt *dynamicTable) evict() { base := dt.ents // keep base pointer of slice for dt.size > dt.maxSize { - dt.size -= dt.ents[0].size() + dt.size -= dt.ents[0].Size() dt.ents = dt.ents[1:] } diff --git a/ingress/vendor/golang.org/x/net/http2/hpack/huffman.go b/ingress/vendor/golang.org/x/net/http2/hpack/huffman.go index eb4b1f05cd..8850e39467 100644 --- a/ingress/vendor/golang.org/x/net/http2/hpack/huffman.go +++ b/ingress/vendor/golang.org/x/net/http2/hpack/huffman.go @@ -48,12 +48,16 @@ var ErrInvalidHuffman = errors.New("hpack: invalid Huffman-encoded data") // maxLen bytes will return ErrStringLength. func huffmanDecode(buf *bytes.Buffer, maxLen int, v []byte) error { n := rootHuffmanNode - cur, nbits := uint(0), uint8(0) + // cur is the bit buffer that has not been fed into n. + // cbits is the number of low order bits in cur that are valid. + // sbits is the number of bits of the symbol prefix being decoded. + cur, cbits, sbits := uint(0), uint8(0), uint8(0) for _, b := range v { cur = cur<<8 | uint(b) - nbits += 8 - for nbits >= 8 { - idx := byte(cur >> (nbits - 8)) + cbits += 8 + sbits += 8 + for cbits >= 8 { + idx := byte(cur >> (cbits - 8)) n = n.children[idx] if n == nil { return ErrInvalidHuffman @@ -63,22 +67,40 @@ func huffmanDecode(buf *bytes.Buffer, maxLen int, v []byte) error { return ErrStringLength } buf.WriteByte(n.sym) - nbits -= n.codeLen + cbits -= n.codeLen n = rootHuffmanNode + sbits = cbits } else { - nbits -= 8 + cbits -= 8 } } } - for nbits > 0 { - n = n.children[byte(cur<<(8-nbits))] - if n.children != nil || n.codeLen > nbits { + for cbits > 0 { + n = n.children[byte(cur<<(8-cbits))] + if n == nil { + return ErrInvalidHuffman + } + if n.children != nil || n.codeLen > cbits { break } + if maxLen != 0 && buf.Len() == maxLen { + return ErrStringLength + } buf.WriteByte(n.sym) - nbits -= n.codeLen + cbits -= n.codeLen n = rootHuffmanNode + sbits = cbits + } + if sbits > 7 { + // Either there was an incomplete symbol, or overlong padding. + // Both are decoding errors per RFC 7541 section 5.2. + return ErrInvalidHuffman } + if mask := uint(1<= len(isTokenTable) || ('A' <= r && r <= 'Z') { - return false - } - if !isTokenTable[byte(r)] { + if !httplex.IsTokenRune(r) { return false } - } - return true -} - -// validHeaderFieldValue reports whether v is a valid header field value. -// -// RFC 7230 says: -// field-value = *( field-content / obs-fold ) -// obj-fold = N/A to http2, and deprecated -// field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] -// field-vchar = VCHAR / obs-text -// obs-text = %x80-FF -// VCHAR = "any visible [USASCII] character" -// -// http2 further says: "Similarly, HTTP/2 allows header field values -// that are not valid. While most of the values that can be encoded -// will not alter header field parsing, carriage return (CR, ASCII -// 0xd), line feed (LF, ASCII 0xa), and the zero character (NUL, ASCII -// 0x0) might be exploited by an attacker if they are translated -// verbatim. Any request or response that contains a character not -// permitted in a header field value MUST be treated as malformed -// (Section 8.1.2.6). Valid characters are defined by the -// field-content ABNF rule in Section 3.2 of [RFC7230]." -// -// This function does not (yet?) properly handle the rejection of -// strings that begin or end with SP or HTAB. -func validHeaderFieldValue(v string) bool { - for i := 0; i < len(v); i++ { - if b := v[i]; b < ' ' && b != '\t' || b == 0x7f { + if 'A' <= r && r <= 'Z' { return false } } @@ -320,7 +289,7 @@ func mustUint31(v int32) uint32 { } // bodyAllowedForStatus reports whether a given response status code -// permits a body. See RFC2616, section 4.4. +// permits a body. See RFC 2616, section 4.4. func bodyAllowedForStatus(status int) bool { switch { case status >= 100 && status <= 199: @@ -344,86 +313,39 @@ func (e *httpError) Temporary() bool { return true } var errTimeout error = &httpError{msg: "http2: timeout awaiting response headers", timeout: true} -var isTokenTable = [127]bool{ - '!': true, - '#': true, - '$': true, - '%': true, - '&': true, - '\'': true, - '*': true, - '+': true, - '-': true, - '.': true, - '0': true, - '1': true, - '2': true, - '3': true, - '4': true, - '5': true, - '6': true, - '7': true, - '8': true, - '9': true, - 'A': true, - 'B': true, - 'C': true, - 'D': true, - 'E': true, - 'F': true, - 'G': true, - 'H': true, - 'I': true, - 'J': true, - 'K': true, - 'L': true, - 'M': true, - 'N': true, - 'O': true, - 'P': true, - 'Q': true, - 'R': true, - 'S': true, - 'T': true, - 'U': true, - 'W': true, - 'V': true, - 'X': true, - 'Y': true, - 'Z': true, - '^': true, - '_': true, - '`': true, - 'a': true, - 'b': true, - 'c': true, - 'd': true, - 'e': true, - 'f': true, - 'g': true, - 'h': true, - 'i': true, - 'j': true, - 'k': true, - 'l': true, - 'm': true, - 'n': true, - 'o': true, - 'p': true, - 'q': true, - 'r': true, - 's': true, - 't': true, - 'u': true, - 'v': true, - 'w': true, - 'x': true, - 'y': true, - 'z': true, - '|': true, - '~': true, -} - type connectionStater interface { ConnectionState() tls.ConnectionState } + +var sorterPool = sync.Pool{New: func() interface{} { return new(sorter) }} + +type sorter struct { + v []string // owned by sorter +} + +func (s *sorter) Len() int { return len(s.v) } +func (s *sorter) Swap(i, j int) { s.v[i], s.v[j] = s.v[j], s.v[i] } +func (s *sorter) Less(i, j int) bool { return s.v[i] < s.v[j] } + +// Keys returns the sorted keys of h. +// +// The returned slice is only valid until s used again or returned to +// its pool. +func (s *sorter) Keys(h http.Header) []string { + keys := s.v[:0] + for k := range h { + keys = append(keys, k) + } + s.v = keys + sort.Sort(s) + return keys +} + +func (s *sorter) SortStrings(ss []string) { + // Our sorter works on s.v, which sorter owners, so + // stash it away while we sort the user's buffer. + save := s.v + s.v = ss + sort.Sort(s) + s.v = save +} diff --git a/ingress/vendor/golang.org/x/net/http2/not_go15.go b/ingress/vendor/golang.org/x/net/http2/not_go15.go deleted file mode 100644 index d0fa5c8906..0000000000 --- a/ingress/vendor/golang.org/x/net/http2/not_go15.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !go1.5 - -package http2 - -import "net/http" - -func requestCancel(req *http.Request) <-chan struct{} { return nil } diff --git a/ingress/vendor/golang.org/x/net/http2/not_go16.go b/ingress/vendor/golang.org/x/net/http2/not_go16.go index db53c5b8cb..efd2e1282c 100644 --- a/ingress/vendor/golang.org/x/net/http2/not_go16.go +++ b/ingress/vendor/golang.org/x/net/http2/not_go16.go @@ -6,8 +6,41 @@ package http2 -import "net/http" +import ( + "crypto/tls" + "net/http" + "time" +) func configureTransport(t1 *http.Transport) (*Transport, error) { return nil, errTransportVersion } + +func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { + return 0 + +} + +// isBadCipher reports whether the cipher is blacklisted by the HTTP/2 spec. +func isBadCipher(cipher uint16) bool { + switch cipher { + case tls.TLS_RSA_WITH_RC4_128_SHA, + tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA, + tls.TLS_RSA_WITH_AES_128_CBC_SHA, + tls.TLS_RSA_WITH_AES_256_CBC_SHA, + tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, + tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, + tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, + tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA, + tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, + tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, + tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: + // Reject cipher suites from Appendix A. + // "This list includes those cipher suites that do not + // offer an ephemeral key exchange and those that are + // based on the TLS null, stream or block cipher type" + return true + default: + return false + } +} diff --git a/ingress/vendor/golang.org/x/net/http2/not_go17.go b/ingress/vendor/golang.org/x/net/http2/not_go17.go new file mode 100644 index 0000000000..28df0c16bf --- /dev/null +++ b/ingress/vendor/golang.org/x/net/http2/not_go17.go @@ -0,0 +1,51 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !go1.7 + +package http2 + +import ( + "net" + "net/http" +) + +type contextContext interface{} + +type fakeContext struct{} + +func (fakeContext) Done() <-chan struct{} { return nil } +func (fakeContext) Err() error { panic("should not be called") } + +func reqContext(r *http.Request) fakeContext { + return fakeContext{} +} + +func setResponseUncompressed(res *http.Response) { + // Nothing. +} + +type clientTrace struct{} + +func requestTrace(*http.Request) *clientTrace { return nil } +func traceGotConn(*http.Request, *ClientConn) {} +func traceFirstResponseByte(*clientTrace) {} +func traceWroteHeaders(*clientTrace) {} +func traceWroteRequest(*clientTrace, error) {} +func traceGot100Continue(trace *clientTrace) {} +func traceWait100Continue(trace *clientTrace) {} + +func nop() {} + +func serverConnBaseContext(c net.Conn, opts *ServeConnOpts) (ctx contextContext, cancel func()) { + return nil, nop +} + +func contextWithCancel(ctx contextContext) (_ contextContext, cancel func()) { + return ctx, nop +} + +func requestWithContext(req *http.Request, ctx contextContext) *http.Request { + return req +} diff --git a/ingress/vendor/golang.org/x/net/http2/pipe.go b/ingress/vendor/golang.org/x/net/http2/pipe.go index 69446e7a37..53b7a1daf6 100644 --- a/ingress/vendor/golang.org/x/net/http2/pipe.go +++ b/ingress/vendor/golang.org/x/net/http2/pipe.go @@ -29,6 +29,12 @@ type pipeBuffer interface { io.Reader } +func (p *pipe) Len() int { + p.mu.Lock() + defer p.mu.Unlock() + return p.b.Len() +} + // Read waits until data is available and copies bytes // from the buffer into p. func (p *pipe) Read(d []byte) (n int, err error) { diff --git a/ingress/vendor/golang.org/x/net/http2/server.go b/ingress/vendor/golang.org/x/net/http2/server.go index 6f4c2bb7cd..f368738f7c 100644 --- a/ingress/vendor/golang.org/x/net/http2/server.go +++ b/ingress/vendor/golang.org/x/net/http2/server.go @@ -51,7 +51,6 @@ import ( "os" "reflect" "runtime" - "sort" "strconv" "strings" "sync" @@ -251,10 +250,14 @@ func (o *ServeConnOpts) handler() http.Handler { // // The opts parameter is optional. If nil, default values are used. func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { + baseCtx, cancel := serverConnBaseContext(c, opts) + defer cancel() + sc := &serverConn{ srv: s, hs: opts.baseConfig(), conn: c, + baseCtx: baseCtx, remoteAddrStr: c.RemoteAddr().String(), bw: newBufferedWriter(c), handler: opts.handler(), @@ -273,13 +276,14 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { serveG: newGoroutineLock(), pushEnabled: true, } + sc.flow.add(initialWindowSize) sc.inflow.add(initialWindowSize) sc.hpackEncoder = hpack.NewEncoder(&sc.headerWriteBuf) - sc.hpackDecoder = hpack.NewDecoder(initialHeaderTableSize, nil) - sc.hpackDecoder.SetMaxStringLength(sc.maxHeaderStringLen()) fr := NewFramer(sc.bw, c) + fr.ReadMetaHeaders = hpack.NewDecoder(initialHeaderTableSize, nil) + fr.MaxHeaderListSize = sc.maxHeaderListSize() fr.SetMaxReadFrameSize(s.maxReadFrameSize()) sc.framer = fr @@ -335,30 +339,6 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { sc.serve() } -// isBadCipher reports whether the cipher is blacklisted by the HTTP/2 spec. -func isBadCipher(cipher uint16) bool { - switch cipher { - case tls.TLS_RSA_WITH_RC4_128_SHA, - tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA, - tls.TLS_RSA_WITH_AES_128_CBC_SHA, - tls.TLS_RSA_WITH_AES_256_CBC_SHA, - tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, - tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, - tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, - tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA, - tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, - tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, - tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: - // Reject cipher suites from Appendix A. - // "This list includes those cipher suites that do not - // offer an ephemeral key exchange and those that are - // based on the TLS null, stream or block cipher type" - return true - default: - return false - } -} - func (sc *serverConn) rejectConn(err ErrCode, debug string) { sc.vlogf("http2: server rejecting conn: %v, %s", err, debug) // ignoring errors. hanging up anyway. @@ -374,8 +354,8 @@ type serverConn struct { conn net.Conn bw *bufferedWriter // writing to conn handler http.Handler + baseCtx contextContext framer *Framer - hpackDecoder *hpack.Decoder doneServing chan struct{} // closed when serverConn.serve ends readFrameCh chan readFrameResult // written by serverConn.readFrames wantWriteFrameCh chan frameWriteMsg // from handlers -> serve @@ -402,7 +382,6 @@ type serverConn struct { headerTableSize uint32 peerMaxHeaderListSize uint32 // zero means unknown (default) canonHeader map[string]string // http2-lower-case -> Go-Canonical-Case - req requestParam // non-zero while reading request headers writingFrame bool // started write goroutine but haven't heard back on wroteFrameCh needsFrameFlush bool // last frame write wasn't a flush writeSched writeScheduler @@ -411,22 +390,13 @@ type serverConn struct { goAwayCode ErrCode shutdownTimerCh <-chan time.Time // nil until used shutdownTimer *time.Timer // nil until used + freeRequestBodyBuf []byte // if non-nil, a free initialWindowSize buffer for getRequestBodyBuf // Owned by the writeFrameAsync goroutine: headerWriteBuf bytes.Buffer hpackEncoder *hpack.Encoder } -func (sc *serverConn) maxHeaderStringLen() int { - v := sc.maxHeaderListSize() - if uint32(int(v)) == v { - return int(v) - } - // They had a crazy big number for MaxHeaderBytes anyway, - // so give them unlimited header lengths: - return 0 -} - func (sc *serverConn) maxHeaderListSize() uint32 { n := sc.hs.MaxHeaderBytes if n <= 0 { @@ -439,21 +409,6 @@ func (sc *serverConn) maxHeaderListSize() uint32 { return uint32(n + typicalHeaders*perFieldOverhead) } -// requestParam is the state of the next request, initialized over -// potentially several frames HEADERS + zero or more CONTINUATION -// frames. -type requestParam struct { - // stream is non-nil if we're reading (HEADER or CONTINUATION) - // frames for a request (but not DATA). - stream *stream - header http.Header - method, path string - scheme, authority string - sawRegularHeader bool // saw a non-pseudo header already - invalidHeader bool // an invalid header was seen - headerListSize int64 // actually uint32, but easier math this way -} - // stream represents a stream. This is the minimal metadata needed by // the serve goroutine. Most of the actual stream state is owned by // the http.Handler's goroutine in the responseWriter. Because the @@ -463,10 +418,12 @@ type requestParam struct { // responseWriter's state field. type stream struct { // immutable: - sc *serverConn - id uint32 - body *pipe // non-nil if expecting DATA frames - cw closeWaiter // closed wait stream transitions to closed state + sc *serverConn + id uint32 + body *pipe // non-nil if expecting DATA frames + cw closeWaiter // closed wait stream transitions to closed state + ctx contextContext + cancelCtx func() // owned by serverConn's serve loop: bodyBytes int64 // body bytes seen so far @@ -480,6 +437,8 @@ type stream struct { sentReset bool // only true once detached from streams map gotReset bool // only true once detacted from streams map gotTrailerHeader bool // HEADER frame for trailers was seen + wroteHeaders bool // whether we wrote headers (not status 100) + reqBuf []byte trailer http.Header // accumulated trailers reqTrailer http.Header // handler's Request.Trailer @@ -589,87 +548,6 @@ func (sc *serverConn) condlogf(err error, format string, args ...interface{}) { } } -func (sc *serverConn) onNewHeaderField(f hpack.HeaderField) { - sc.serveG.check() - if VerboseLogs { - sc.vlogf("http2: server decoded %v", f) - } - switch { - case !validHeaderFieldValue(f.Value): // f.Name checked _after_ pseudo check, since ':' is invalid - sc.req.invalidHeader = true - case strings.HasPrefix(f.Name, ":"): - if sc.req.sawRegularHeader { - sc.logf("pseudo-header after regular header") - sc.req.invalidHeader = true - return - } - var dst *string - switch f.Name { - case ":method": - dst = &sc.req.method - case ":path": - dst = &sc.req.path - case ":scheme": - dst = &sc.req.scheme - case ":authority": - dst = &sc.req.authority - default: - // 8.1.2.1 Pseudo-Header Fields - // "Endpoints MUST treat a request or response - // that contains undefined or invalid - // pseudo-header fields as malformed (Section - // 8.1.2.6)." - sc.logf("invalid pseudo-header %q", f.Name) - sc.req.invalidHeader = true - return - } - if *dst != "" { - sc.logf("duplicate pseudo-header %q sent", f.Name) - sc.req.invalidHeader = true - return - } - *dst = f.Value - case !validHeaderFieldName(f.Name): - sc.req.invalidHeader = true - default: - sc.req.sawRegularHeader = true - sc.req.header.Add(sc.canonicalHeader(f.Name), f.Value) - const headerFieldOverhead = 32 // per spec - sc.req.headerListSize += int64(len(f.Name)) + int64(len(f.Value)) + headerFieldOverhead - if sc.req.headerListSize > int64(sc.maxHeaderListSize()) { - sc.hpackDecoder.SetEmitEnabled(false) - } - } -} - -func (st *stream) onNewTrailerField(f hpack.HeaderField) { - sc := st.sc - sc.serveG.check() - if VerboseLogs { - sc.vlogf("http2: server decoded trailer %v", f) - } - switch { - case strings.HasPrefix(f.Name, ":"): - sc.req.invalidHeader = true - return - case !validHeaderFieldName(f.Name) || !validHeaderFieldValue(f.Value): - sc.req.invalidHeader = true - return - default: - key := sc.canonicalHeader(f.Name) - if st.trailer != nil { - vv := append(st.trailer[key], f.Value) - st.trailer[key] = vv - - // arbitrary; TODO: read spec about header list size limits wrt trailers - const tooBig = 1000 - if len(vv) >= tooBig { - sc.hpackDecoder.SetEmitEnabled(false) - } - } - } -} - func (sc *serverConn) canonicalHeader(v string) string { sc.serveG.check() cv, ok := commonCanonHeader[v] @@ -704,10 +582,11 @@ type readFrameResult struct { // It's run on its own goroutine. func (sc *serverConn) readFrames() { gate := make(gate) + gateDone := gate.Done for { f, err := sc.framer.ReadFrame() select { - case sc.readFrameCh <- readFrameResult{f, err, gate.Done}: + case sc.readFrameCh <- readFrameResult{f, err, gateDone}: case <-sc.doneServing: return } @@ -946,7 +825,23 @@ func (sc *serverConn) writeFrameFromHandler(wm frameWriteMsg) error { // If you're not on the serve goroutine, use writeFrameFromHandler instead. func (sc *serverConn) writeFrame(wm frameWriteMsg) { sc.serveG.check() - sc.writeSched.add(wm) + + var ignoreWrite bool + + // Don't send a 100-continue response if we've already sent headers. + // See golang.org/issue/14030. + switch wm.write.(type) { + case *writeResHeaders: + wm.stream.wroteHeaders = true + case write100ContinueHeadersFrame: + if wm.stream.wroteHeaders { + ignoreWrite = true + } + } + + if !ignoreWrite { + sc.writeSched.add(wm) + } sc.scheduleFrameWrite() } @@ -1183,10 +1078,8 @@ func (sc *serverConn) processFrame(f Frame) error { switch f := f.(type) { case *SettingsFrame: return sc.processSettings(f) - case *HeadersFrame: + case *MetaHeadersFrame: return sc.processHeaders(f) - case *ContinuationFrame: - return sc.processContinuation(f) case *WindowUpdateFrame: return sc.processWindowUpdate(f) case *PingFrame: @@ -1265,6 +1158,7 @@ func (sc *serverConn) processResetStream(f *RSTStreamFrame) error { } if st != nil { st.gotReset = true + st.cancelCtx() sc.closeStream(st, StreamError{f.StreamID, f.ErrCode}) } return nil @@ -1286,6 +1180,18 @@ func (sc *serverConn) closeStream(st *stream, err error) { } st.cw.Close() // signals Handler's CloseNotifier, unblocks writes, etc sc.writeSched.forgetStream(st.id) + if st.reqBuf != nil { + // Stash this request body buffer (64k) away for reuse + // by a future POST/PUT/etc. + // + // TODO(bradfitz): share on the server? sync.Pool? + // Server requires locks and might hurt contention. + // sync.Pool might work, or might be worse, depending + // on goroutine CPU migrations. (get and put on + // separate CPUs). Maybe a mix of strategies. But + // this is an easy win for now. + sc.freeRequestBodyBuf = st.reqBuf + } } func (sc *serverConn) processSettings(f *SettingsFrame) error { @@ -1442,7 +1348,7 @@ func (st *stream) copyTrailersToHandlerRequest() { } } -func (sc *serverConn) processHeaders(f *HeadersFrame) error { +func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error { sc.serveG.check() id := f.Header().StreamID if sc.inGoAway { @@ -1471,17 +1377,18 @@ func (sc *serverConn) processHeaders(f *HeadersFrame) error { // endpoint has opened or reserved. [...] An endpoint that // receives an unexpected stream identifier MUST respond with // a connection error (Section 5.4.1) of type PROTOCOL_ERROR. - if id <= sc.maxStreamID || sc.req.stream != nil { + if id <= sc.maxStreamID { return ConnectionError(ErrCodeProtocol) } + sc.maxStreamID = id - if id > sc.maxStreamID { - sc.maxStreamID = id - } + ctx, cancelCtx := contextWithCancel(sc.baseCtx) st = &stream{ - sc: sc, - id: id, - state: stateOpen, + sc: sc, + id: id, + state: stateOpen, + ctx: ctx, + cancelCtx: cancelCtx, } if f.StreamEnded() { st.state = stateHalfClosedRemote @@ -1501,50 +1408,6 @@ func (sc *serverConn) processHeaders(f *HeadersFrame) error { if sc.curOpenStreams == 1 { sc.setConnState(http.StateActive) } - sc.req = requestParam{ - stream: st, - header: make(http.Header), - } - sc.hpackDecoder.SetEmitFunc(sc.onNewHeaderField) - sc.hpackDecoder.SetEmitEnabled(true) - return sc.processHeaderBlockFragment(st, f.HeaderBlockFragment(), f.HeadersEnded()) -} - -func (st *stream) processTrailerHeaders(f *HeadersFrame) error { - sc := st.sc - sc.serveG.check() - if st.gotTrailerHeader { - return ConnectionError(ErrCodeProtocol) - } - st.gotTrailerHeader = true - if !f.StreamEnded() { - return StreamError{st.id, ErrCodeProtocol} - } - sc.resetPendingRequest() // we use invalidHeader from it for trailers - return st.processTrailerHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded()) -} - -func (sc *serverConn) processContinuation(f *ContinuationFrame) error { - sc.serveG.check() - st := sc.streams[f.Header().StreamID] - if st.gotTrailerHeader { - return st.processTrailerHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded()) - } - return sc.processHeaderBlockFragment(st, f.HeaderBlockFragment(), f.HeadersEnded()) -} - -func (sc *serverConn) processHeaderBlockFragment(st *stream, frag []byte, end bool) error { - sc.serveG.check() - if _, err := sc.hpackDecoder.Write(frag); err != nil { - return ConnectionError(ErrCodeCompression) - } - if !end { - return nil - } - if err := sc.hpackDecoder.Close(); err != nil { - return ConnectionError(ErrCodeCompression) - } - defer sc.resetPendingRequest() if sc.curOpenStreams > sc.advMaxStreams { // "Endpoints MUST NOT exceed the limit set by their // peer. An endpoint that receives a HEADERS frame @@ -1564,7 +1427,7 @@ func (sc *serverConn) processHeaderBlockFragment(st *stream, frag []byte, end bo return StreamError{st.id, ErrCodeRefusedStream} } - rw, req, err := sc.newWriterAndRequest() + rw, req, err := sc.newWriterAndRequest(st, f) if err != nil { return err } @@ -1576,36 +1439,44 @@ func (sc *serverConn) processHeaderBlockFragment(st *stream, frag []byte, end bo st.declBodyBytes = req.ContentLength handler := sc.handler.ServeHTTP - if !sc.hpackDecoder.EmitEnabled() { + if f.Truncated { // Their header list was too long. Send a 431 error. handler = handleHeaderListTooLong + } else if err := checkValidHTTP2Request(req); err != nil { + handler = new400Handler(err) } go sc.runHandler(rw, req, handler) return nil } -func (st *stream) processTrailerHeaderBlockFragment(frag []byte, end bool) error { +func (st *stream) processTrailerHeaders(f *MetaHeadersFrame) error { sc := st.sc sc.serveG.check() - sc.hpackDecoder.SetEmitFunc(st.onNewTrailerField) - if _, err := sc.hpackDecoder.Write(frag); err != nil { - return ConnectionError(ErrCodeCompression) + if st.gotTrailerHeader { + return ConnectionError(ErrCodeProtocol) } - if !end { - return nil + st.gotTrailerHeader = true + if !f.StreamEnded() { + return StreamError{st.id, ErrCodeProtocol} } - rp := &sc.req - if rp.invalidHeader { - return StreamError{rp.stream.id, ErrCodeProtocol} + if len(f.PseudoFields()) > 0 { + return StreamError{st.id, ErrCodeProtocol} } - - err := sc.hpackDecoder.Close() - st.endStream() - if err != nil { - return ConnectionError(ErrCodeCompression) + if st.trailer != nil { + for _, hf := range f.RegularFields() { + key := sc.canonicalHeader(hf.Name) + if !ValidTrailerHeader(key) { + // TODO: send more details to the peer somehow. But http2 has + // no way to send debug data at a stream level. Discuss with + // HTTP folk. + return StreamError{st.id, ErrCodeProtocol} + } + st.trailer[key] = append(st.trailer[key], hf.Value) + } } + st.endStream() return nil } @@ -1650,29 +1521,21 @@ func adjustStreamPriority(streams map[uint32]*stream, streamID uint32, priority } } -// resetPendingRequest zeros out all state related to a HEADERS frame -// and its zero or more CONTINUATION frames sent to start a new -// request. -func (sc *serverConn) resetPendingRequest() { - sc.serveG.check() - sc.req = requestParam{} -} - -func (sc *serverConn) newWriterAndRequest() (*responseWriter, *http.Request, error) { +func (sc *serverConn) newWriterAndRequest(st *stream, f *MetaHeadersFrame) (*responseWriter, *http.Request, error) { sc.serveG.check() - rp := &sc.req - if rp.invalidHeader { - return nil, nil, StreamError{rp.stream.id, ErrCodeProtocol} - } + method := f.PseudoValue("method") + path := f.PseudoValue("path") + scheme := f.PseudoValue("scheme") + authority := f.PseudoValue("authority") - isConnect := rp.method == "CONNECT" + isConnect := method == "CONNECT" if isConnect { - if rp.path != "" || rp.scheme != "" || rp.authority == "" { - return nil, nil, StreamError{rp.stream.id, ErrCodeProtocol} + if path != "" || scheme != "" || authority == "" { + return nil, nil, StreamError{f.StreamID, ErrCodeProtocol} } - } else if rp.method == "" || rp.path == "" || - (rp.scheme != "https" && rp.scheme != "http") { + } else if method == "" || path == "" || + (scheme != "https" && scheme != "http") { // See 8.1.2.6 Malformed Requests and Responses: // // Malformed requests or responses that are detected @@ -1683,35 +1546,40 @@ func (sc *serverConn) newWriterAndRequest() (*responseWriter, *http.Request, err // "All HTTP/2 requests MUST include exactly one valid // value for the :method, :scheme, and :path // pseudo-header fields" - return nil, nil, StreamError{rp.stream.id, ErrCodeProtocol} + return nil, nil, StreamError{f.StreamID, ErrCodeProtocol} } - bodyOpen := rp.stream.state == stateOpen - if rp.method == "HEAD" && bodyOpen { + bodyOpen := !f.StreamEnded() + if method == "HEAD" && bodyOpen { // HEAD requests can't have bodies - return nil, nil, StreamError{rp.stream.id, ErrCodeProtocol} + return nil, nil, StreamError{f.StreamID, ErrCodeProtocol} } var tlsState *tls.ConnectionState // nil if not scheme https - if rp.scheme == "https" { + if scheme == "https" { tlsState = sc.tlsState } - authority := rp.authority + + header := make(http.Header) + for _, hf := range f.RegularFields() { + header.Add(sc.canonicalHeader(hf.Name), hf.Value) + } + if authority == "" { - authority = rp.header.Get("Host") + authority = header.Get("Host") } - needsContinue := rp.header.Get("Expect") == "100-continue" + needsContinue := header.Get("Expect") == "100-continue" if needsContinue { - rp.header.Del("Expect") + header.Del("Expect") } // Merge Cookie headers into one "; "-delimited value. - if cookies := rp.header["Cookie"]; len(cookies) > 1 { - rp.header.Set("Cookie", strings.Join(cookies, "; ")) + if cookies := header["Cookie"]; len(cookies) > 1 { + header.Set("Cookie", strings.Join(cookies, "; ")) } // Setup Trailers var trailer http.Header - for _, v := range rp.header["Trailer"] { + for _, v := range header["Trailer"] { for _, key := range strings.Split(v, ",") { key = http.CanonicalHeaderKey(strings.TrimSpace(key)) switch key { @@ -1726,31 +1594,31 @@ func (sc *serverConn) newWriterAndRequest() (*responseWriter, *http.Request, err } } } - delete(rp.header, "Trailer") + delete(header, "Trailer") body := &requestBody{ conn: sc, - stream: rp.stream, + stream: st, needsContinue: needsContinue, } var url_ *url.URL var requestURI string if isConnect { - url_ = &url.URL{Host: rp.authority} - requestURI = rp.authority // mimic HTTP/1 server behavior + url_ = &url.URL{Host: authority} + requestURI = authority // mimic HTTP/1 server behavior } else { var err error - url_, err = url.ParseRequestURI(rp.path) + url_, err = url.ParseRequestURI(path) if err != nil { - return nil, nil, StreamError{rp.stream.id, ErrCodeProtocol} + return nil, nil, StreamError{f.StreamID, ErrCodeProtocol} } - requestURI = rp.path + requestURI = path } req := &http.Request{ - Method: rp.method, + Method: method, URL: url_, RemoteAddr: sc.remoteAddrStr, - Header: rp.header, + Header: header, RequestURI: requestURI, Proto: "HTTP/2.0", ProtoMajor: 2, @@ -1760,12 +1628,18 @@ func (sc *serverConn) newWriterAndRequest() (*responseWriter, *http.Request, err Body: body, Trailer: trailer, } + req = requestWithContext(req, st.ctx) if bodyOpen { + // Disabled, per golang.org/issue/14960: + // st.reqBuf = sc.getRequestBodyBuf() + // TODO: remove this 64k of garbage per request (again, but without a data race): + buf := make([]byte, initialWindowSize) + body.pipe = &pipe{ - b: &fixedBuffer{buf: make([]byte, initialWindowSize)}, // TODO: garbage + b: &fixedBuffer{buf: buf}, } - if vv, ok := rp.header["Content-Length"]; ok { + if vv, ok := header["Content-Length"]; ok { req.ContentLength, _ = strconv.ParseInt(vv[0], 10, 64) } else { req.ContentLength = -1 @@ -1778,7 +1652,7 @@ func (sc *serverConn) newWriterAndRequest() (*responseWriter, *http.Request, err rws.conn = sc rws.bw = bwSave rws.bw.Reset(chunkWriter{rws}) - rws.stream = rp.stream + rws.stream = st rws.req = req rws.body = body @@ -1786,10 +1660,20 @@ func (sc *serverConn) newWriterAndRequest() (*responseWriter, *http.Request, err return rw, req, nil } +func (sc *serverConn) getRequestBodyBuf() []byte { + sc.serveG.check() + if buf := sc.freeRequestBodyBuf; buf != nil { + sc.freeRequestBodyBuf = nil + return buf + } + return make([]byte, initialWindowSize) +} + // Run on its own goroutine. func (sc *serverConn) runHandler(rw *responseWriter, req *http.Request, handler func(http.ResponseWriter, *http.Request)) { didPanic := true defer func() { + rw.rws.stream.cancelCtx() if didPanic { e := recover() // Same as net/http: @@ -1942,7 +1826,7 @@ type requestBody struct { func (b *requestBody) Close() error { if b.pipe != nil { - b.pipe.CloseWithError(errClosedBody) + b.pipe.BreakWithError(errClosedBody) } b.closed = true return nil @@ -2017,9 +1901,9 @@ func (rws *responseWriterState) hasTrailers() bool { return len(rws.trailers) != // written in the trailers at the end of the response. func (rws *responseWriterState) declareTrailer(k string) { k = http.CanonicalHeaderKey(k) - switch k { - case "Transfer-Encoding", "Content-Length", "Trailer": + if !ValidTrailerHeader(k) { // Forbidden by RFC 2616 14.40. + rws.conn.logf("ignoring invalid trailer %q", k) return } if !strSliceContains(rws.trailers, k) { @@ -2160,7 +2044,12 @@ func (rws *responseWriterState) promoteUndeclaredTrailers() { rws.declareTrailer(trailerKey) rws.handlerHeader[http.CanonicalHeaderKey(trailerKey)] = vv } - sort.Strings(rws.trailers) + + if len(rws.trailers) > 1 { + sorter := sorterPool.Get().(*sorter) + sorter.SortStrings(rws.trailers) + sorterPool.Put(sorter) + } } func (w *responseWriter) Flush() { @@ -2306,3 +2195,69 @@ func foreachHeaderElement(v string, fn func(string)) { } } } + +// From http://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2.2 +var connHeaders = []string{ + "Connection", + "Keep-Alive", + "Proxy-Connection", + "Transfer-Encoding", + "Upgrade", +} + +// checkValidHTTP2Request checks whether req is a valid HTTP/2 request, +// per RFC 7540 Section 8.1.2.2. +// The returned error is reported to users. +func checkValidHTTP2Request(req *http.Request) error { + for _, h := range connHeaders { + if _, ok := req.Header[h]; ok { + return fmt.Errorf("request header %q is not valid in HTTP/2", h) + } + } + te := req.Header["Te"] + if len(te) > 0 && (len(te) > 1 || (te[0] != "trailers" && te[0] != "")) { + return errors.New(`request header "TE" may only be "trailers" in HTTP/2`) + } + return nil +} + +func new400Handler(err error) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + http.Error(w, err.Error(), http.StatusBadRequest) + } +} + +// ValidTrailerHeader reports whether name is a valid header field name to appear +// in trailers. +// See: http://tools.ietf.org/html/rfc7230#section-4.1.2 +func ValidTrailerHeader(name string) bool { + name = http.CanonicalHeaderKey(name) + if strings.HasPrefix(name, "If-") || badTrailer[name] { + return false + } + return true +} + +var badTrailer = map[string]bool{ + "Authorization": true, + "Cache-Control": true, + "Connection": true, + "Content-Encoding": true, + "Content-Length": true, + "Content-Range": true, + "Content-Type": true, + "Expect": true, + "Host": true, + "Keep-Alive": true, + "Max-Forwards": true, + "Pragma": true, + "Proxy-Authenticate": true, + "Proxy-Authorization": true, + "Proxy-Connection": true, + "Range": true, + "Realm": true, + "Te": true, + "Trailer": true, + "Transfer-Encoding": true, + "Www-Authenticate": true, +} diff --git a/ingress/vendor/golang.org/x/net/http2/transport.go b/ingress/vendor/golang.org/x/net/http2/transport.go index c3a1bdb8cb..fb8dd997b7 100644 --- a/ingress/vendor/golang.org/x/net/http2/transport.go +++ b/ingress/vendor/golang.org/x/net/http2/transport.go @@ -25,6 +25,7 @@ import ( "time" "golang.org/x/net/http2/hpack" + "golang.org/x/net/lex/httplex" ) const ( @@ -76,6 +77,10 @@ type Transport struct { // uncompressed. DisableCompression bool + // AllowHTTP, if true, permits HTTP/2 requests using the insecure, + // plain-text "http" scheme. Note that this does not enable h2c support. + AllowHTTP bool + // MaxHeaderListSize is the http2 SETTINGS_MAX_HEADER_LIST_SIZE to // send in the initial settings frame. It is how many bytes // of response headers are allow. Unlike the http2 spec, zero here @@ -134,9 +139,10 @@ func (t *Transport) initConnPool() { // ClientConn is the state of a single HTTP/2 client connection to an // HTTP/2 server. type ClientConn struct { - t *Transport - tconn net.Conn // usually *tls.Conn, except specialized impls - tlsState *tls.ConnectionState // nil only for specialized impls + t *Transport + tconn net.Conn // usually *tls.Conn, except specialized impls + tlsState *tls.ConnectionState // nil only for specialized impls + singleUse bool // whether being used for a single http.Request // readLoop goroutine fields: readerDone chan struct{} // closed on error @@ -148,11 +154,14 @@ type ClientConn struct { inflow flow // peer's conn-level flow control closed bool goAway *GoAwayFrame // if non-nil, the GoAwayFrame we received + goAwayDebug string // goAway frame's debug data, retained as a string streams map[uint32]*clientStream // client-initiated nextStreamID uint32 bw *bufio.Writer br *bufio.Reader fr *Framer + lastActive time.Time + // Settings from peer: maxFrameSize uint32 maxConcurrentStreams uint32 @@ -170,10 +179,12 @@ type ClientConn struct { type clientStream struct { cc *ClientConn req *http.Request + trace *clientTrace // or nil ID uint32 resc chan resAndError bufPipe pipe // buffered pipe with the flow-controlled response payload requestedGzip bool + on100 func() // optional code to run if get a 100 continue response flow flow // guarded by cc.mu inflow flow // guarded by cc.mu @@ -187,36 +198,43 @@ type clientStream struct { done chan struct{} // closed when stream remove from cc.streams map; close calls guarded by cc.mu // owned by clientConnReadLoop: - pastHeaders bool // got HEADERS w/ END_HEADERS - pastTrailers bool // got second HEADERS frame w/ END_HEADERS + firstByte bool // got the first response byte + pastHeaders bool // got first MetaHeadersFrame (actual headers) + pastTrailers bool // got optional second MetaHeadersFrame (trailers) trailer http.Header // accumulated trailers resTrailer *http.Header // client's Response.Trailer } // awaitRequestCancel runs in its own goroutine and waits for the user -// to either cancel a RoundTrip request (using the provided -// Request.Cancel channel), or for the request to be done (any way it -// might be removed from the cc.streams map: peer reset, successful -// completion, TCP connection breakage, etc) -func (cs *clientStream) awaitRequestCancel(cancel <-chan struct{}) { - if cancel == nil { +// to cancel a RoundTrip request, its context to expire, or for the +// request to be done (any way it might be removed from the cc.streams +// map: peer reset, successful completion, TCP connection breakage, +// etc) +func (cs *clientStream) awaitRequestCancel(req *http.Request) { + ctx := reqContext(req) + if req.Cancel == nil && ctx.Done() == nil { return } select { - case <-cancel: + case <-req.Cancel: cs.bufPipe.CloseWithError(errRequestCanceled) cs.cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) + case <-ctx.Done(): + cs.bufPipe.CloseWithError(ctx.Err()) + cs.cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) case <-cs.done: } } -// checkReset reports any error sent in a RST_STREAM frame by the -// server. -func (cs *clientStream) checkReset() error { +// checkResetOrDone reports any error sent in a RST_STREAM frame by the +// server, or errStreamClosed if the stream is complete. +func (cs *clientStream) checkResetOrDone() error { select { case <-cs.peerReset: return cs.resetErr + case <-cs.done: + return errStreamClosed default: return nil } @@ -264,26 +282,31 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { // authorityAddr returns a given authority (a host/IP, or host:port / ip:port) // and returns a host:port. The port 443 is added if needed. -func authorityAddr(authority string) (addr string) { +func authorityAddr(scheme string, authority string) (addr string) { if _, _, err := net.SplitHostPort(authority); err == nil { return authority } - return net.JoinHostPort(authority, "443") + port := "443" + if scheme == "http" { + port = "80" + } + return net.JoinHostPort(authority, port) } // RoundTripOpt is like RoundTrip, but takes options. func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error) { - if req.URL.Scheme != "https" { + if !(req.URL.Scheme == "https" || (req.URL.Scheme == "http" && t.AllowHTTP)) { return nil, errors.New("http2: unsupported scheme") } - addr := authorityAddr(req.URL.Host) + addr := authorityAddr(req.URL.Scheme, req.URL.Host) for { cc, err := t.connPool().GetClientConn(req, addr) if err != nil { t.vlogf("http2: Transport failed to get client conn for %s: %v", addr, err) return nil, err } + traceGotConn(req, cc) res, err := cc.RoundTrip(req) if shouldRetryRequest(req, err) { continue @@ -300,7 +323,7 @@ func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Res // connected from previous requests but are now sitting idle. // It does not interrupt any connections currently in use. func (t *Transport) CloseIdleConnections() { - if cp, ok := t.connPool().(*clientConnPool); ok { + if cp, ok := t.connPool().(clientConnPoolIdleCloser); ok { cp.closeIdleConnections() } } @@ -333,8 +356,12 @@ func (t *Transport) newTLSConfig(host string) *tls.Config { if t.TLSClientConfig != nil { *cfg = *t.TLSClientConfig } - cfg.NextProtos = []string{NextProtoTLS} // TODO: don't override if already in list - cfg.ServerName = host + if !strSliceContains(cfg.NextProtos, NextProtoTLS) { + cfg.NextProtos = append([]string{NextProtoTLS}, cfg.NextProtos...) + } + if cfg.ServerName == "" { + cfg.ServerName = host + } return cfg } @@ -374,6 +401,13 @@ func (t *Transport) disableKeepAlives() bool { return t.t1 != nil && t.t1.DisableKeepAlives } +func (t *Transport) expectContinueTimeout() time.Duration { + if t.t1 == nil { + return 0 + } + return transportExpectContinueTimeout(t.t1) +} + func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) { if VerboseLogs { t.vlogf("http2: Transport creating client conn to %v", c.RemoteAddr()) @@ -401,6 +435,8 @@ func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) { cc.bw = bufio.NewWriter(stickyErrWriter{c, &cc.werr}) cc.br = bufio.NewReader(c) cc.fr = NewFramer(cc.bw, cc.br) + cc.fr.ReadMetaHeaders = hpack.NewDecoder(initialHeaderTableSize, nil) + cc.fr.MaxHeaderListSize = t.maxHeaderListSize() // TODO: SetMaxDynamicTableSize, SetMaxDynamicTableSizeLimit on // henc in response to SETTINGS frames? @@ -412,8 +448,8 @@ func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) { } initialSettings := []Setting{ - Setting{ID: SettingEnablePush, Val: 0}, - Setting{ID: SettingInitialWindowSize, Val: transportDefaultStreamFlow}, + {ID: SettingEnablePush, Val: 0}, + {ID: SettingInitialWindowSize, Val: transportDefaultStreamFlow}, } if max := t.maxHeaderListSize(); max != 0 { initialSettings = append(initialSettings, Setting{ID: SettingMaxHeaderListSize, Val: max}) @@ -460,7 +496,17 @@ func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) { func (cc *ClientConn) setGoAway(f *GoAwayFrame) { cc.mu.Lock() defer cc.mu.Unlock() + + old := cc.goAway cc.goAway = f + + // Merge the previous and current GoAway error frames. + if cc.goAwayDebug == "" { + cc.goAwayDebug = string(f.DebugData()) + } + if old != nil && old.ErrCode != ErrCodeNo { + cc.goAway.ErrCode = old.ErrCode + } } func (cc *ClientConn) CanTakeNewRequest() bool { @@ -470,6 +516,9 @@ func (cc *ClientConn) CanTakeNewRequest() bool { } func (cc *ClientConn) canTakeNewRequestLocked() bool { + if cc.singleUse && cc.nextStreamID > 1 { + return false + } return cc.goAway == nil && !cc.closed && int64(len(cc.streams)+1) < int64(cc.maxConcurrentStreams) && cc.nextStreamID < 2147483647 @@ -578,6 +627,33 @@ func checkConnHeaders(req *http.Request) error { return nil } +func bodyAndLength(req *http.Request) (body io.Reader, contentLen int64) { + body = req.Body + if body == nil { + return nil, 0 + } + if req.ContentLength != 0 { + return req.Body, req.ContentLength + } + + // We have a body but a zero content length. Test to see if + // it's actually zero or just unset. + var buf [1]byte + n, rerr := io.ReadFull(body, buf[:]) + if rerr != nil && rerr != io.EOF { + return errorReader{rerr}, -1 + } + if n == 1 { + // Oh, guess there is data in this Body Reader after all. + // The ContentLength field just wasn't set. + // Stich the Body back together again, re-attaching our + // consumed byte. + return io.MultiReader(bytes.NewReader(buf[:]), body), -1 + } + // Body is actually zero bytes. + return nil, 0 +} + func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { if err := checkConnHeaders(req); err != nil { return nil, err @@ -589,39 +665,18 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { } hasTrailers := trailers != "" - var body io.Reader = req.Body - contentLen := req.ContentLength - if req.Body != nil && contentLen == 0 { - // Test to see if it's actually zero or just unset. - var buf [1]byte - n, rerr := io.ReadFull(body, buf[:]) - if rerr != nil && rerr != io.EOF { - contentLen = -1 - body = errorReader{rerr} - } else if n == 1 { - // Oh, guess there is data in this Body Reader after all. - // The ContentLength field just wasn't set. - // Stich the Body back together again, re-attaching our - // consumed byte. - contentLen = -1 - body = io.MultiReader(bytes.NewReader(buf[:]), body) - } else { - // Body is actually empty. - body = nil - } - } + body, contentLen := bodyAndLength(req) + hasBody := body != nil cc.mu.Lock() + cc.lastActive = time.Now() if cc.closed || !cc.canTakeNewRequestLocked() { cc.mu.Unlock() return nil, errClientConnUnusable } - cs := cc.newStream() - cs.req = req - hasBody := body != nil - // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere? + var requestedGzip bool if !cc.t.disableCompression() && req.Header.Get("Accept-Encoding") == "" && req.Header.Get("Range") == "" && @@ -638,37 +693,49 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { // We don't request gzip if the request is for a range, since // auto-decoding a portion of a gzipped document will just fail // anyway. See https://golang.org/issue/8923 - cs.requestedGzip = true + requestedGzip = true } // we send: HEADERS{1}, CONTINUATION{0,} + DATA{0,} (DATA is // sent by writeRequestBody below, along with any Trailers, // again in form HEADERS{1}, CONTINUATION{0,}) - hdrs := cc.encodeHeaders(req, cs.requestedGzip, trailers, contentLen) + hdrs, err := cc.encodeHeaders(req, requestedGzip, trailers, contentLen) + if err != nil { + cc.mu.Unlock() + return nil, err + } + + cs := cc.newStream() + cs.req = req + cs.trace = requestTrace(req) + cs.requestedGzip = requestedGzip + bodyWriter := cc.t.getBodyWriterState(cs, body) + cs.on100 = bodyWriter.on100 + cc.wmu.Lock() endStream := !hasBody && !hasTrailers werr := cc.writeHeaders(cs.ID, endStream, hdrs) cc.wmu.Unlock() + traceWroteHeaders(cs.trace) cc.mu.Unlock() if werr != nil { if hasBody { req.Body.Close() // per RoundTripper contract + bodyWriter.cancel() } cc.forgetStreamID(cs.ID) // Don't bother sending a RST_STREAM (our write already failed; // no need to keep writing) + traceWroteRequest(cs.trace, werr) return nil, werr } var respHeaderTimer <-chan time.Time - var bodyCopyErrc chan error // result of body copy if hasBody { - bodyCopyErrc = make(chan error, 1) - go func() { - bodyCopyErrc <- cs.writeRequestBody(body, req.Body) - }() + bodyWriter.scheduleBodyWrite() } else { + traceWroteRequest(cs.trace, nil) if d := cc.responseHeaderTimeout(); d != 0 { timer := time.NewTimer(d) defer timer.Stop() @@ -677,8 +744,8 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { } readLoopResCh := cs.resc - requestCanceledCh := requestCancel(req) bodyWritten := false + ctx := reqContext(req) for { select { @@ -694,6 +761,7 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { // doesn't, they'll RST_STREAM us soon enough. This is a // heuristic to avoid adding knobs to Transport. Hopefully // we can keep it. + bodyWriter.cancel() cs.abortRequestBodyWrite(errStopReqBodyWrite) } if re.err != nil { @@ -708,14 +776,25 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { if !hasBody || bodyWritten { cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) } else { + bodyWriter.cancel() cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel) } return nil, errTimeout - case <-requestCanceledCh: + case <-ctx.Done(): + cc.forgetStreamID(cs.ID) + if !hasBody || bodyWritten { + cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) + } else { + bodyWriter.cancel() + cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel) + } + return nil, ctx.Err() + case <-req.Cancel: cc.forgetStreamID(cs.ID) if !hasBody || bodyWritten { cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) } else { + bodyWriter.cancel() cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel) } return nil, errRequestCanceled @@ -724,7 +803,7 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { // stream from the streams map; no need for // forgetStreamID. return nil, cs.resetErr - case err := <-bodyCopyErrc: + case err := <-bodyWriter.resc: if err != nil { return nil, err } @@ -785,6 +864,7 @@ func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) ( defer cc.putFrameScratchBuffer(buf) defer func() { + traceWroteRequest(cs.trace, err) // TODO: write h12Compare test showing whether // Request.Body is closed by the Transport, // and in multiple cases: server replies <=299 and >299 @@ -881,7 +961,7 @@ func (cs *clientStream) awaitFlowControl(maxBytes int) (taken int32, err error) if cs.stopReqBody != nil { return 0, cs.stopReqBody } - if err := cs.checkReset(); err != nil { + if err := cs.checkResetOrDone(); err != nil { return 0, err } if a := cs.flow.available(); a > 0 { @@ -908,7 +988,7 @@ type badStringError struct { func (e *badStringError) Error() string { return fmt.Sprintf("%s %q", e.what, e.str) } // requires cc.mu be held. -func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trailers string, contentLength int64) []byte { +func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trailers string, contentLength int64) ([]byte, error) { cc.hbuf.Reset() host := req.Host @@ -916,6 +996,20 @@ func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trail host = req.URL.Host } + // Check for any invalid headers and return an error before we + // potentially pollute our hpack state. (We want to be able to + // continue to reuse the hpack encoder for future requests) + for k, vv := range req.Header { + if !httplex.ValidHeaderFieldName(k) { + return nil, fmt.Errorf("invalid HTTP header name %q", k) + } + for _, v := range vv { + if !httplex.ValidHeaderFieldValue(v) { + return nil, fmt.Errorf("invalid HTTP header value %q for header %q", v, k) + } + } + } + // 8.1.2.3 Request Pseudo-Header Fields // The :path pseudo-header field includes the path and query parts of the // target URI (the path-absolute production and optionally a '?' character @@ -939,14 +1033,11 @@ func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trail // Host is :authority, already sent. // Content-Length is automatic, set below. continue - case "connection", "proxy-connection", "transfer-encoding", "upgrade": + case "connection", "proxy-connection", "transfer-encoding", "upgrade", "keep-alive": // Per 8.1.2.2 Connection-Specific Header // Fields, don't send connection-specific - // fields. We deal with these earlier in - // RoundTrip, deciding whether they're - // error-worthy, but we don't want to mutate - // the user's *Request so at this point, just - // skip over them at this point. + // fields. We have already checked if any + // are error-worthy so just ignore the rest. continue case "user-agent": // Match Go's http1 behavior: at most one @@ -975,7 +1066,7 @@ func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trail if !didUA { cc.writeHeader("user-agent", defaultUserAgent) } - return cc.hbuf.Bytes() + return cc.hbuf.Bytes(), nil } // shouldSendReqContentLength reports whether the http2.Transport should send @@ -1053,8 +1144,10 @@ func (cc *ClientConn) streamByID(id uint32, andRemove bool) *clientStream { defer cc.mu.Unlock() cs := cc.streams[id] if andRemove && cs != nil && !cc.closed { + cc.lastActive = time.Now() delete(cc.streams, id) close(cs.done) + cc.cond.Broadcast() // wake up checkResetOrDone via clientStream.awaitFlowControl } return cs } @@ -1064,15 +1157,6 @@ type clientConnReadLoop struct { cc *ClientConn activeRes map[uint32]*clientStream // keyed by streamID closeWhenIdle bool - - hdec *hpack.Decoder - - // Fields reset on each HEADERS: - nextRes *http.Response - sawRegHeader bool // saw non-pseudo header - reqMalformed error // non-nil once known to be malformed - lastHeaderEndsStream bool - headerListSize int64 // actually uint32, but easier math this way } // readLoop runs in its own goroutine and reads and dispatches frames. @@ -1081,7 +1165,6 @@ func (cc *ClientConn) readLoop() { cc: cc, activeRes: make(map[uint32]*clientStream), } - rl.hdec = hpack.NewDecoder(initialHeaderTableSize, rl.onNewHeaderField) defer rl.cleanup() cc.readerErr = rl.run() @@ -1092,6 +1175,19 @@ func (cc *ClientConn) readLoop() { } } +// GoAwayError is returned by the Transport when the server closes the +// TCP connection after sending a GOAWAY frame. +type GoAwayError struct { + LastStreamID uint32 + ErrCode ErrCode + DebugData string +} + +func (e GoAwayError) Error() string { + return fmt.Sprintf("http2: server sent GOAWAY and closed the connection; LastStreamID=%v, ErrCode=%v, debug=%q", + e.LastStreamID, e.ErrCode, e.DebugData) +} + func (rl *clientConnReadLoop) cleanup() { cc := rl.cc defer cc.tconn.Close() @@ -1102,10 +1198,18 @@ func (rl *clientConnReadLoop) cleanup() { // TODO: also do this if we've written the headers but not // gotten a response yet. err := cc.readerErr + cc.mu.Lock() if err == io.EOF { - err = io.ErrUnexpectedEOF + if cc.goAway != nil { + err = GoAwayError{ + LastStreamID: cc.goAway.LastStreamID, + ErrCode: cc.goAway.ErrCode, + DebugData: cc.goAwayDebug, + } + } else { + err = io.ErrUnexpectedEOF + } } - cc.mu.Lock() for _, cs := range rl.activeRes { cs.bufPipe.CloseWithError(err) } @@ -1123,7 +1227,7 @@ func (rl *clientConnReadLoop) cleanup() { func (rl *clientConnReadLoop) run() error { cc := rl.cc - rl.closeWhenIdle = cc.t.disableKeepAlives() + rl.closeWhenIdle = cc.t.disableKeepAlives() || cc.singleUse gotReply := false // ever saw a reply for { f, err := cc.fr.ReadFrame() @@ -1131,8 +1235,10 @@ func (rl *clientConnReadLoop) run() error { cc.vlogf("Transport readFrame error: (%T) %v", err, err) } if se, ok := err.(StreamError); ok { - // TODO: deal with stream errors from the framer. - return se + if cs := cc.streamByID(se.StreamID, true /*ended; remove it*/); cs != nil { + rl.endStreamError(cs, cc.fr.errDetail) + } + continue } else if err != nil { return err } @@ -1142,13 +1248,10 @@ func (rl *clientConnReadLoop) run() error { maybeIdle := false // whether frame might transition us to idle switch f := f.(type) { - case *HeadersFrame: + case *MetaHeadersFrame: err = rl.processHeaders(f) maybeIdle = true gotReply = true - case *ContinuationFrame: - err = rl.processContinuation(f) - maybeIdle = true case *DataFrame: err = rl.processData(f) maybeIdle = true @@ -1178,92 +1281,110 @@ func (rl *clientConnReadLoop) run() error { } } -func (rl *clientConnReadLoop) processHeaders(f *HeadersFrame) error { - rl.sawRegHeader = false - rl.reqMalformed = nil - rl.lastHeaderEndsStream = f.StreamEnded() - rl.headerListSize = 0 - rl.nextRes = &http.Response{ - Proto: "HTTP/2.0", - ProtoMajor: 2, - Header: make(http.Header), - } - rl.hdec.SetEmitEnabled(true) - return rl.processHeaderBlockFragment(f.HeaderBlockFragment(), f.StreamID, f.HeadersEnded()) -} - -func (rl *clientConnReadLoop) processContinuation(f *ContinuationFrame) error { - return rl.processHeaderBlockFragment(f.HeaderBlockFragment(), f.StreamID, f.HeadersEnded()) -} - -func (rl *clientConnReadLoop) processHeaderBlockFragment(frag []byte, streamID uint32, finalFrag bool) error { +func (rl *clientConnReadLoop) processHeaders(f *MetaHeadersFrame) error { cc := rl.cc - streamEnded := rl.lastHeaderEndsStream - cs := cc.streamByID(streamID, streamEnded && finalFrag) + cs := cc.streamByID(f.StreamID, f.StreamEnded()) if cs == nil { // We'd get here if we canceled a request while the - // server was mid-way through replying with its - // headers. (The case of a CONTINUATION arriving - // without HEADERS would be rejected earlier by the - // Framer). So if this was just something we canceled, - // ignore it. + // server had its response still in flight. So if this + // was just something we canceled, ignore it. return nil } - if cs.pastHeaders { - rl.hdec.SetEmitFunc(func(f hpack.HeaderField) { rl.onNewTrailerField(cs, f) }) - } else { - rl.hdec.SetEmitFunc(rl.onNewHeaderField) - } - _, err := rl.hdec.Write(frag) - if err != nil { - return ConnectionError(ErrCodeCompression) - } - if finalFrag { - if err := rl.hdec.Close(); err != nil { - return ConnectionError(ErrCodeCompression) + if !cs.firstByte { + if cs.trace != nil { + // TODO(bradfitz): move first response byte earlier, + // when we first read the 9 byte header, not waiting + // until all the HEADERS+CONTINUATION frames have been + // merged. This works for now. + traceFirstResponseByte(cs.trace) } + cs.firstByte = true } - - if !finalFrag { - return nil - } - if !cs.pastHeaders { cs.pastHeaders = true } else { - // We're dealing with trailers. (and specifically the - // final frame of headers) - if cs.pastTrailers { - // Too many HEADERS frames for this stream. - return ConnectionError(ErrCodeProtocol) - } - cs.pastTrailers = true - if !streamEnded { - // We expect that any header block fragment - // frame for trailers with END_HEADERS also - // has END_STREAM. - return ConnectionError(ErrCodeProtocol) + return rl.processTrailers(cs, f) + } + + res, err := rl.handleResponse(cs, f) + if err != nil { + if _, ok := err.(ConnectionError); ok { + return err } - rl.endStream(cs) + // Any other error type is a stream error. + cs.cc.writeStreamReset(f.StreamID, ErrCodeProtocol, err) + cs.resc <- resAndError{err: err} + return nil // return nil from process* funcs to keep conn alive + } + if res == nil { + // (nil, nil) special case. See handleResponse docs. return nil } + if res.Body != noBody { + rl.activeRes[cs.ID] = cs + } + cs.resTrailer = &res.Trailer + cs.resc <- resAndError{res: res} + return nil +} - if rl.reqMalformed != nil { - cs.resc <- resAndError{err: rl.reqMalformed} - rl.cc.writeStreamReset(cs.ID, ErrCodeProtocol, rl.reqMalformed) - return nil +// may return error types nil, or ConnectionError. Any other error value +// is a StreamError of type ErrCodeProtocol. The returned error in that case +// is the detail. +// +// As a special case, handleResponse may return (nil, nil) to skip the +// frame (currently only used for 100 expect continue). This special +// case is going away after Issue 13851 is fixed. +func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFrame) (*http.Response, error) { + if f.Truncated { + return nil, errResponseHeaderListSize } - res := rl.nextRes + status := f.PseudoValue("status") + if status == "" { + return nil, errors.New("missing status pseudo header") + } + statusCode, err := strconv.Atoi(status) + if err != nil { + return nil, errors.New("malformed non-numeric status pseudo header") + } - if res.StatusCode == 100 { - // Just skip 100-continue response headers for now. - // TODO: golang.org/issue/13851 for doing it properly. + if statusCode == 100 { + traceGot100Continue(cs.trace) + if cs.on100 != nil { + cs.on100() // forces any write delay timer to fire + } cs.pastHeaders = false // do it all again - return nil + return nil, nil + } + + header := make(http.Header) + res := &http.Response{ + Proto: "HTTP/2.0", + ProtoMajor: 2, + Header: header, + StatusCode: statusCode, + Status: status + " " + http.StatusText(statusCode), + } + for _, hf := range f.RegularFields() { + key := http.CanonicalHeaderKey(hf.Name) + if key == "Trailer" { + t := res.Trailer + if t == nil { + t = make(http.Header) + res.Trailer = t + } + foreachHeaderElement(hf.Value, func(v string) { + t[http.CanonicalHeaderKey(v)] = nil + }) + } else { + header[key] = append(header[key], hf.Value) + } } - if !streamEnded || cs.req.Method == "HEAD" { + streamEnded := f.StreamEnded() + isHead := cs.req.Method == "HEAD" + if !streamEnded || isHead { res.ContentLength = -1 if clens := res.Header["Content-Length"]; len(clens) == 1 { if clen64, err := strconv.ParseInt(clens[0], 10, 64); err == nil { @@ -1278,27 +1399,52 @@ func (rl *clientConnReadLoop) processHeaderBlockFragment(frag []byte, streamID u } } - if streamEnded { + if streamEnded || isHead { res.Body = noBody - } else { - buf := new(bytes.Buffer) // TODO(bradfitz): recycle this garbage - cs.bufPipe = pipe{b: buf} - cs.bytesRemain = res.ContentLength - res.Body = transportResponseBody{cs} - go cs.awaitRequestCancel(requestCancel(cs.req)) - - if cs.requestedGzip && res.Header.Get("Content-Encoding") == "gzip" { - res.Header.Del("Content-Encoding") - res.Header.Del("Content-Length") - res.ContentLength = -1 - res.Body = &gzipReader{body: res.Body} - } - rl.activeRes[cs.ID] = cs + return res, nil } - cs.resTrailer = &res.Trailer - cs.resc <- resAndError{res: res} - rl.nextRes = nil // unused now; will be reset next HEADERS frame + buf := new(bytes.Buffer) // TODO(bradfitz): recycle this garbage + cs.bufPipe = pipe{b: buf} + cs.bytesRemain = res.ContentLength + res.Body = transportResponseBody{cs} + go cs.awaitRequestCancel(cs.req) + + if cs.requestedGzip && res.Header.Get("Content-Encoding") == "gzip" { + res.Header.Del("Content-Encoding") + res.Header.Del("Content-Length") + res.ContentLength = -1 + res.Body = &gzipReader{body: res.Body} + setResponseUncompressed(res) + } + return res, nil +} + +func (rl *clientConnReadLoop) processTrailers(cs *clientStream, f *MetaHeadersFrame) error { + if cs.pastTrailers { + // Too many HEADERS frames for this stream. + return ConnectionError(ErrCodeProtocol) + } + cs.pastTrailers = true + if !f.StreamEnded() { + // We expect that any headers for trailers also + // has END_STREAM. + return ConnectionError(ErrCodeProtocol) + } + if len(f.PseudoFields()) > 0 { + // No pseudo header fields are defined for trailers. + // TODO: ConnectionError might be overly harsh? Check. + return ConnectionError(ErrCodeProtocol) + } + + trailer := make(http.Header) + for _, hf := range f.RegularFields() { + key := http.CanonicalHeaderKey(hf.Name) + trailer[key] = append(trailer[key], hf.Value) + } + cs.trailer = trailer + + rl.endStream(cs) return nil } @@ -1349,8 +1495,12 @@ func (b transportResponseBody) Read(p []byte) (n int, err error) { cc.inflow.add(connAdd) } if err == nil { // No need to refresh if the stream is over or failed. - if v := cs.inflow.available(); v < transportDefaultStreamFlow-transportDefaultStreamMinRefresh { - streamAdd = transportDefaultStreamFlow - v + // Consider any buffered body data (read from the conn but not + // consumed by the client) when computing flow control for this + // stream. + v := int(cs.inflow.available()) + cs.bufPipe.Len() + if v < transportDefaultStreamFlow-transportDefaultStreamMinRefresh { + streamAdd = int32(transportDefaultStreamFlow - v) cs.inflow.add(streamAdd) } } @@ -1416,6 +1566,7 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { cc.mu.Unlock() if _, err := cs.bufPipe.Write(data); err != nil { + rl.endStreamError(cs, err) return err } } @@ -1431,11 +1582,14 @@ var errInvalidTrailers = errors.New("http2: invalid trailers") func (rl *clientConnReadLoop) endStream(cs *clientStream) { // TODO: check that any declared content-length matches, like // server.go's (*stream).endStream method. - err := io.EOF - code := cs.copyTrailers - if rl.reqMalformed != nil { - err = rl.reqMalformed - code = nil + rl.endStreamError(cs, nil) +} + +func (rl *clientConnReadLoop) endStreamError(cs *clientStream, err error) { + var code func() + if err == nil { + err = io.EOF + code = cs.copyTrailers } cs.bufPipe.closeWithErrorAndCode(err, code) delete(rl.activeRes, cs.ID) @@ -1528,7 +1682,7 @@ func (rl *clientConnReadLoop) processResetStream(f *RSTStreamFrame) error { cs.resetErr = err close(cs.peerReset) cs.bufPipe.CloseWithError(err) - cs.cc.cond.Broadcast() // wake up checkReset via clientStream.awaitFlowControl + cs.cc.cond.Broadcast() // wake up checkResetOrDone via clientStream.awaitFlowControl } delete(rl.activeRes, cs.ID) return nil @@ -1574,118 +1728,6 @@ var ( errPseudoTrailers = errors.New("http2: invalid pseudo header in trailers") ) -func (rl *clientConnReadLoop) checkHeaderField(f hpack.HeaderField) bool { - if rl.reqMalformed != nil { - return false - } - - const headerFieldOverhead = 32 // per spec - rl.headerListSize += int64(len(f.Name)) + int64(len(f.Value)) + headerFieldOverhead - if max := rl.cc.t.maxHeaderListSize(); max != 0 && rl.headerListSize > int64(max) { - rl.hdec.SetEmitEnabled(false) - rl.reqMalformed = errResponseHeaderListSize - return false - } - - if !validHeaderFieldValue(f.Value) { - rl.reqMalformed = errInvalidHeaderFieldValue - return false - } - - isPseudo := strings.HasPrefix(f.Name, ":") - if isPseudo { - if rl.sawRegHeader { - rl.reqMalformed = errors.New("http2: invalid pseudo header after regular header") - return false - } - } else { - if !validHeaderFieldName(f.Name) { - rl.reqMalformed = errInvalidHeaderFieldName - return false - } - rl.sawRegHeader = true - } - - return true -} - -// onNewHeaderField runs on the readLoop goroutine whenever a new -// hpack header field is decoded. -func (rl *clientConnReadLoop) onNewHeaderField(f hpack.HeaderField) { - cc := rl.cc - if VerboseLogs { - cc.logf("http2: Transport decoded %v", f) - } - - if !rl.checkHeaderField(f) { - return - } - - isPseudo := strings.HasPrefix(f.Name, ":") - if isPseudo { - switch f.Name { - case ":status": - code, err := strconv.Atoi(f.Value) - if err != nil { - rl.reqMalformed = errors.New("http2: invalid :status") - return - } - rl.nextRes.Status = f.Value + " " + http.StatusText(code) - rl.nextRes.StatusCode = code - default: - // "Endpoints MUST NOT generate pseudo-header - // fields other than those defined in this - // document." - rl.reqMalformed = fmt.Errorf("http2: unknown response pseudo header %q", f.Name) - } - return - } - - key := http.CanonicalHeaderKey(f.Name) - if key == "Trailer" { - t := rl.nextRes.Trailer - if t == nil { - t = make(http.Header) - rl.nextRes.Trailer = t - } - foreachHeaderElement(f.Value, func(v string) { - t[http.CanonicalHeaderKey(v)] = nil - }) - } else { - rl.nextRes.Header.Add(key, f.Value) - } -} - -func (rl *clientConnReadLoop) onNewTrailerField(cs *clientStream, f hpack.HeaderField) { - if VerboseLogs { - rl.cc.logf("http2: Transport decoded trailer %v", f) - } - if !rl.checkHeaderField(f) { - return - } - if strings.HasPrefix(f.Name, ":") { - // Pseudo-header fields MUST NOT appear in - // trailers. Endpoints MUST treat a request or - // response that contains undefined or invalid - // pseudo-header fields as malformed. - rl.reqMalformed = errPseudoTrailers - return - } - - key := http.CanonicalHeaderKey(f.Name) - - // The spec says one must predeclare their trailers but in practice - // popular users (which is to say the only user we found) do not so we - // violate the spec and accept all of them. - const acceptAllTrailers = true - if _, ok := (*cs.resTrailer)[key]; ok || acceptAllTrailers { - if cs.trailer == nil { - cs.trailer = make(http.Header) - } - cs.trailer[key] = append(cs.trailer[key], f.Value) - } -} - func (cc *ClientConn) logf(format string, args ...interface{}) { cc.t.logf(format, args...) } @@ -1748,3 +1790,79 @@ func (gz *gzipReader) Close() error { type errorReader struct{ err error } func (r errorReader) Read(p []byte) (int, error) { return 0, r.err } + +// bodyWriterState encapsulates various state around the Transport's writing +// of the request body, particularly regarding doing delayed writes of the body +// when the request contains "Expect: 100-continue". +type bodyWriterState struct { + cs *clientStream + timer *time.Timer // if non-nil, we're doing a delayed write + fnonce *sync.Once // to call fn with + fn func() // the code to run in the goroutine, writing the body + resc chan error // result of fn's execution + delay time.Duration // how long we should delay a delayed write for +} + +func (t *Transport) getBodyWriterState(cs *clientStream, body io.Reader) (s bodyWriterState) { + s.cs = cs + if body == nil { + return + } + resc := make(chan error, 1) + s.resc = resc + s.fn = func() { + resc <- cs.writeRequestBody(body, cs.req.Body) + } + s.delay = t.expectContinueTimeout() + if s.delay == 0 || + !httplex.HeaderValuesContainsToken( + cs.req.Header["Expect"], + "100-continue") { + return + } + s.fnonce = new(sync.Once) + + // Arm the timer with a very large duration, which we'll + // intentionally lower later. It has to be large now because + // we need a handle to it before writing the headers, but the + // s.delay value is defined to not start until after the + // request headers were written. + const hugeDuration = 365 * 24 * time.Hour + s.timer = time.AfterFunc(hugeDuration, func() { + s.fnonce.Do(s.fn) + }) + return +} + +func (s bodyWriterState) cancel() { + if s.timer != nil { + s.timer.Stop() + } +} + +func (s bodyWriterState) on100() { + if s.timer == nil { + // If we didn't do a delayed write, ignore the server's + // bogus 100 continue response. + return + } + s.timer.Stop() + go func() { s.fnonce.Do(s.fn) }() +} + +// scheduleBodyWrite starts writing the body, either immediately (in +// the common case) or after the delay timeout. It should not be +// called until after the headers have been written. +func (s bodyWriterState) scheduleBodyWrite() { + if s.timer == nil { + // We're not doing a delayed write (see + // getBodyWriterState), so just start the writing + // goroutine immediately. + go s.fn() + return + } + traceWait100Continue(s.cs.trace) + if s.timer.Stop() { + s.timer.Reset(s.delay) + } +} diff --git a/ingress/vendor/golang.org/x/net/http2/write.go b/ingress/vendor/golang.org/x/net/http2/write.go index 5297a4bfe3..27ef0dd4d7 100644 --- a/ingress/vendor/golang.org/x/net/http2/write.go +++ b/ingress/vendor/golang.org/x/net/http2/write.go @@ -9,10 +9,10 @@ import ( "fmt" "log" "net/http" - "sort" "time" "golang.org/x/net/http2/hpack" + "golang.org/x/net/lex/httplex" ) // writeFramer is implemented by any type that is used to write frames. @@ -230,25 +230,26 @@ func (wu writeWindowUpdate) writeFrame(ctx writeContext) error { } func encodeHeaders(enc *hpack.Encoder, h http.Header, keys []string) { - // TODO: garbage. pool sorters like http1? hot path for 1 key? if keys == nil { - keys = make([]string, 0, len(h)) - for k := range h { - keys = append(keys, k) - } - sort.Strings(keys) + sorter := sorterPool.Get().(*sorter) + // Using defer here, since the returned keys from the + // sorter.Keys method is only valid until the sorter + // is returned: + defer sorterPool.Put(sorter) + keys = sorter.Keys(h) } for _, k := range keys { vv := h[k] k = lowerHeader(k) - if !validHeaderFieldName(k) { - // TODO: return an error? golang.org/issue/14048 - // For now just omit it. + if !validWireHeaderFieldName(k) { + // Skip it as backup paranoia. Per + // golang.org/issue/14048, these should + // already be rejected at a higher level. continue } isTE := k == "transfer-encoding" for _, v := range vv { - if !validHeaderFieldValue(v) { + if !httplex.ValidHeaderFieldValue(v) { // TODO: return an error? golang.org/issue/14048 // For now just omit it. continue diff --git a/ingress/vendor/golang.org/x/net/internal/timeseries/timeseries.go b/ingress/vendor/golang.org/x/net/internal/timeseries/timeseries.go new file mode 100644 index 0000000000..3f90b7300d --- /dev/null +++ b/ingress/vendor/golang.org/x/net/internal/timeseries/timeseries.go @@ -0,0 +1,525 @@ +// Copyright 2015 The Go 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 timeseries implements a time series structure for stats collection. +package timeseries + +import ( + "fmt" + "log" + "time" +) + +const ( + timeSeriesNumBuckets = 64 + minuteHourSeriesNumBuckets = 60 +) + +var timeSeriesResolutions = []time.Duration{ + 1 * time.Second, + 10 * time.Second, + 1 * time.Minute, + 10 * time.Minute, + 1 * time.Hour, + 6 * time.Hour, + 24 * time.Hour, // 1 day + 7 * 24 * time.Hour, // 1 week + 4 * 7 * 24 * time.Hour, // 4 weeks + 16 * 7 * 24 * time.Hour, // 16 weeks +} + +var minuteHourSeriesResolutions = []time.Duration{ + 1 * time.Second, + 1 * time.Minute, +} + +// An Observable is a kind of data that can be aggregated in a time series. +type Observable interface { + Multiply(ratio float64) // Multiplies the data in self by a given ratio + Add(other Observable) // Adds the data from a different observation to self + Clear() // Clears the observation so it can be reused. + CopyFrom(other Observable) // Copies the contents of a given observation to self +} + +// Float attaches the methods of Observable to a float64. +type Float float64 + +// NewFloat returns a Float. +func NewFloat() Observable { + f := Float(0) + return &f +} + +// String returns the float as a string. +func (f *Float) String() string { return fmt.Sprintf("%g", f.Value()) } + +// Value returns the float's value. +func (f *Float) Value() float64 { return float64(*f) } + +func (f *Float) Multiply(ratio float64) { *f *= Float(ratio) } + +func (f *Float) Add(other Observable) { + o := other.(*Float) + *f += *o +} + +func (f *Float) Clear() { *f = 0 } + +func (f *Float) CopyFrom(other Observable) { + o := other.(*Float) + *f = *o +} + +// A Clock tells the current time. +type Clock interface { + Time() time.Time +} + +type defaultClock int + +var defaultClockInstance defaultClock + +func (defaultClock) Time() time.Time { return time.Now() } + +// Information kept per level. Each level consists of a circular list of +// observations. The start of the level may be derived from end and the +// len(buckets) * sizeInMillis. +type tsLevel struct { + oldest int // index to oldest bucketed Observable + newest int // index to newest bucketed Observable + end time.Time // end timestamp for this level + size time.Duration // duration of the bucketed Observable + buckets []Observable // collections of observations + provider func() Observable // used for creating new Observable +} + +func (l *tsLevel) Clear() { + l.oldest = 0 + l.newest = len(l.buckets) - 1 + l.end = time.Time{} + for i := range l.buckets { + if l.buckets[i] != nil { + l.buckets[i].Clear() + l.buckets[i] = nil + } + } +} + +func (l *tsLevel) InitLevel(size time.Duration, numBuckets int, f func() Observable) { + l.size = size + l.provider = f + l.buckets = make([]Observable, numBuckets) +} + +// Keeps a sequence of levels. Each level is responsible for storing data at +// a given resolution. For example, the first level stores data at a one +// minute resolution while the second level stores data at a one hour +// resolution. + +// Each level is represented by a sequence of buckets. Each bucket spans an +// interval equal to the resolution of the level. New observations are added +// to the last bucket. +type timeSeries struct { + provider func() Observable // make more Observable + numBuckets int // number of buckets in each level + levels []*tsLevel // levels of bucketed Observable + lastAdd time.Time // time of last Observable tracked + total Observable // convenient aggregation of all Observable + clock Clock // Clock for getting current time + pending Observable // observations not yet bucketed + pendingTime time.Time // what time are we keeping in pending + dirty bool // if there are pending observations +} + +// init initializes a level according to the supplied criteria. +func (ts *timeSeries) init(resolutions []time.Duration, f func() Observable, numBuckets int, clock Clock) { + ts.provider = f + ts.numBuckets = numBuckets + ts.clock = clock + ts.levels = make([]*tsLevel, len(resolutions)) + + for i := range resolutions { + if i > 0 && resolutions[i-1] >= resolutions[i] { + log.Print("timeseries: resolutions must be monotonically increasing") + break + } + newLevel := new(tsLevel) + newLevel.InitLevel(resolutions[i], ts.numBuckets, ts.provider) + ts.levels[i] = newLevel + } + + ts.Clear() +} + +// Clear removes all observations from the time series. +func (ts *timeSeries) Clear() { + ts.lastAdd = time.Time{} + ts.total = ts.resetObservation(ts.total) + ts.pending = ts.resetObservation(ts.pending) + ts.pendingTime = time.Time{} + ts.dirty = false + + for i := range ts.levels { + ts.levels[i].Clear() + } +} + +// Add records an observation at the current time. +func (ts *timeSeries) Add(observation Observable) { + ts.AddWithTime(observation, ts.clock.Time()) +} + +// AddWithTime records an observation at the specified time. +func (ts *timeSeries) AddWithTime(observation Observable, t time.Time) { + + smallBucketDuration := ts.levels[0].size + + if t.After(ts.lastAdd) { + ts.lastAdd = t + } + + if t.After(ts.pendingTime) { + ts.advance(t) + ts.mergePendingUpdates() + ts.pendingTime = ts.levels[0].end + ts.pending.CopyFrom(observation) + ts.dirty = true + } else if t.After(ts.pendingTime.Add(-1 * smallBucketDuration)) { + // The observation is close enough to go into the pending bucket. + // This compensates for clock skewing and small scheduling delays + // by letting the update stay in the fast path. + ts.pending.Add(observation) + ts.dirty = true + } else { + ts.mergeValue(observation, t) + } +} + +// mergeValue inserts the observation at the specified time in the past into all levels. +func (ts *timeSeries) mergeValue(observation Observable, t time.Time) { + for _, level := range ts.levels { + index := (ts.numBuckets - 1) - int(level.end.Sub(t)/level.size) + if 0 <= index && index < ts.numBuckets { + bucketNumber := (level.oldest + index) % ts.numBuckets + if level.buckets[bucketNumber] == nil { + level.buckets[bucketNumber] = level.provider() + } + level.buckets[bucketNumber].Add(observation) + } + } + ts.total.Add(observation) +} + +// mergePendingUpdates applies the pending updates into all levels. +func (ts *timeSeries) mergePendingUpdates() { + if ts.dirty { + ts.mergeValue(ts.pending, ts.pendingTime) + ts.pending = ts.resetObservation(ts.pending) + ts.dirty = false + } +} + +// advance cycles the buckets at each level until the latest bucket in +// each level can hold the time specified. +func (ts *timeSeries) advance(t time.Time) { + if !t.After(ts.levels[0].end) { + return + } + for i := 0; i < len(ts.levels); i++ { + level := ts.levels[i] + if !level.end.Before(t) { + break + } + + // If the time is sufficiently far, just clear the level and advance + // directly. + if !t.Before(level.end.Add(level.size * time.Duration(ts.numBuckets))) { + for _, b := range level.buckets { + ts.resetObservation(b) + } + level.end = time.Unix(0, (t.UnixNano()/level.size.Nanoseconds())*level.size.Nanoseconds()) + } + + for t.After(level.end) { + level.end = level.end.Add(level.size) + level.newest = level.oldest + level.oldest = (level.oldest + 1) % ts.numBuckets + ts.resetObservation(level.buckets[level.newest]) + } + + t = level.end + } +} + +// Latest returns the sum of the num latest buckets from the level. +func (ts *timeSeries) Latest(level, num int) Observable { + now := ts.clock.Time() + if ts.levels[0].end.Before(now) { + ts.advance(now) + } + + ts.mergePendingUpdates() + + result := ts.provider() + l := ts.levels[level] + index := l.newest + + for i := 0; i < num; i++ { + if l.buckets[index] != nil { + result.Add(l.buckets[index]) + } + if index == 0 { + index = ts.numBuckets + } + index-- + } + + return result +} + +// LatestBuckets returns a copy of the num latest buckets from level. +func (ts *timeSeries) LatestBuckets(level, num int) []Observable { + if level < 0 || level > len(ts.levels) { + log.Print("timeseries: bad level argument: ", level) + return nil + } + if num < 0 || num >= ts.numBuckets { + log.Print("timeseries: bad num argument: ", num) + return nil + } + + results := make([]Observable, num) + now := ts.clock.Time() + if ts.levels[0].end.Before(now) { + ts.advance(now) + } + + ts.mergePendingUpdates() + + l := ts.levels[level] + index := l.newest + + for i := 0; i < num; i++ { + result := ts.provider() + results[i] = result + if l.buckets[index] != nil { + result.CopyFrom(l.buckets[index]) + } + + if index == 0 { + index = ts.numBuckets + } + index -= 1 + } + return results +} + +// ScaleBy updates observations by scaling by factor. +func (ts *timeSeries) ScaleBy(factor float64) { + for _, l := range ts.levels { + for i := 0; i < ts.numBuckets; i++ { + l.buckets[i].Multiply(factor) + } + } + + ts.total.Multiply(factor) + ts.pending.Multiply(factor) +} + +// Range returns the sum of observations added over the specified time range. +// If start or finish times don't fall on bucket boundaries of the same +// level, then return values are approximate answers. +func (ts *timeSeries) Range(start, finish time.Time) Observable { + return ts.ComputeRange(start, finish, 1)[0] +} + +// Recent returns the sum of observations from the last delta. +func (ts *timeSeries) Recent(delta time.Duration) Observable { + now := ts.clock.Time() + return ts.Range(now.Add(-delta), now) +} + +// Total returns the total of all observations. +func (ts *timeSeries) Total() Observable { + ts.mergePendingUpdates() + return ts.total +} + +// ComputeRange computes a specified number of values into a slice using +// the observations recorded over the specified time period. The return +// values are approximate if the start or finish times don't fall on the +// bucket boundaries at the same level or if the number of buckets spanning +// the range is not an integral multiple of num. +func (ts *timeSeries) ComputeRange(start, finish time.Time, num int) []Observable { + if start.After(finish) { + log.Printf("timeseries: start > finish, %v>%v", start, finish) + return nil + } + + if num < 0 { + log.Printf("timeseries: num < 0, %v", num) + return nil + } + + results := make([]Observable, num) + + for _, l := range ts.levels { + if !start.Before(l.end.Add(-l.size * time.Duration(ts.numBuckets))) { + ts.extract(l, start, finish, num, results) + return results + } + } + + // Failed to find a level that covers the desired range. So just + // extract from the last level, even if it doesn't cover the entire + // desired range. + ts.extract(ts.levels[len(ts.levels)-1], start, finish, num, results) + + return results +} + +// RecentList returns the specified number of values in slice over the most +// recent time period of the specified range. +func (ts *timeSeries) RecentList(delta time.Duration, num int) []Observable { + if delta < 0 { + return nil + } + now := ts.clock.Time() + return ts.ComputeRange(now.Add(-delta), now, num) +} + +// extract returns a slice of specified number of observations from a given +// level over a given range. +func (ts *timeSeries) extract(l *tsLevel, start, finish time.Time, num int, results []Observable) { + ts.mergePendingUpdates() + + srcInterval := l.size + dstInterval := finish.Sub(start) / time.Duration(num) + dstStart := start + srcStart := l.end.Add(-srcInterval * time.Duration(ts.numBuckets)) + + srcIndex := 0 + + // Where should scanning start? + if dstStart.After(srcStart) { + advance := dstStart.Sub(srcStart) / srcInterval + srcIndex += int(advance) + srcStart = srcStart.Add(advance * srcInterval) + } + + // The i'th value is computed as show below. + // interval = (finish/start)/num + // i'th value = sum of observation in range + // [ start + i * interval, + // start + (i + 1) * interval ) + for i := 0; i < num; i++ { + results[i] = ts.resetObservation(results[i]) + dstEnd := dstStart.Add(dstInterval) + for srcIndex < ts.numBuckets && srcStart.Before(dstEnd) { + srcEnd := srcStart.Add(srcInterval) + if srcEnd.After(ts.lastAdd) { + srcEnd = ts.lastAdd + } + + if !srcEnd.Before(dstStart) { + srcValue := l.buckets[(srcIndex+l.oldest)%ts.numBuckets] + if !srcStart.Before(dstStart) && !srcEnd.After(dstEnd) { + // dst completely contains src. + if srcValue != nil { + results[i].Add(srcValue) + } + } else { + // dst partially overlaps src. + overlapStart := maxTime(srcStart, dstStart) + overlapEnd := minTime(srcEnd, dstEnd) + base := srcEnd.Sub(srcStart) + fraction := overlapEnd.Sub(overlapStart).Seconds() / base.Seconds() + + used := ts.provider() + if srcValue != nil { + used.CopyFrom(srcValue) + } + used.Multiply(fraction) + results[i].Add(used) + } + + if srcEnd.After(dstEnd) { + break + } + } + srcIndex++ + srcStart = srcStart.Add(srcInterval) + } + dstStart = dstStart.Add(dstInterval) + } +} + +// resetObservation clears the content so the struct may be reused. +func (ts *timeSeries) resetObservation(observation Observable) Observable { + if observation == nil { + observation = ts.provider() + } else { + observation.Clear() + } + return observation +} + +// TimeSeries tracks data at granularities from 1 second to 16 weeks. +type TimeSeries struct { + timeSeries +} + +// NewTimeSeries creates a new TimeSeries using the function provided for creating new Observable. +func NewTimeSeries(f func() Observable) *TimeSeries { + return NewTimeSeriesWithClock(f, defaultClockInstance) +} + +// NewTimeSeriesWithClock creates a new TimeSeries using the function provided for creating new Observable and the clock for +// assigning timestamps. +func NewTimeSeriesWithClock(f func() Observable, clock Clock) *TimeSeries { + ts := new(TimeSeries) + ts.timeSeries.init(timeSeriesResolutions, f, timeSeriesNumBuckets, clock) + return ts +} + +// MinuteHourSeries tracks data at granularities of 1 minute and 1 hour. +type MinuteHourSeries struct { + timeSeries +} + +// NewMinuteHourSeries creates a new MinuteHourSeries using the function provided for creating new Observable. +func NewMinuteHourSeries(f func() Observable) *MinuteHourSeries { + return NewMinuteHourSeriesWithClock(f, defaultClockInstance) +} + +// NewMinuteHourSeriesWithClock creates a new MinuteHourSeries using the function provided for creating new Observable and the clock for +// assigning timestamps. +func NewMinuteHourSeriesWithClock(f func() Observable, clock Clock) *MinuteHourSeries { + ts := new(MinuteHourSeries) + ts.timeSeries.init(minuteHourSeriesResolutions, f, + minuteHourSeriesNumBuckets, clock) + return ts +} + +func (ts *MinuteHourSeries) Minute() Observable { + return ts.timeSeries.Latest(0, 60) +} + +func (ts *MinuteHourSeries) Hour() Observable { + return ts.timeSeries.Latest(1, 60) +} + +func minTime(a, b time.Time) time.Time { + if a.Before(b) { + return a + } + return b +} + +func maxTime(a, b time.Time) time.Time { + if a.After(b) { + return a + } + return b +} diff --git a/ingress/vendor/golang.org/x/net/lex/httplex/httplex.go b/ingress/vendor/golang.org/x/net/lex/httplex/httplex.go new file mode 100644 index 0000000000..bd0ec24f44 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/lex/httplex/httplex.go @@ -0,0 +1,312 @@ +// Copyright 2016 The Go 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 httplex contains rules around lexical matters of various +// HTTP-related specifications. +// +// This package is shared by the standard library (which vendors it) +// and x/net/http2. It comes with no API stability promise. +package httplex + +import ( + "strings" + "unicode/utf8" +) + +var isTokenTable = [127]bool{ + '!': true, + '#': true, + '$': true, + '%': true, + '&': true, + '\'': true, + '*': true, + '+': true, + '-': true, + '.': true, + '0': true, + '1': true, + '2': true, + '3': true, + '4': true, + '5': true, + '6': true, + '7': true, + '8': true, + '9': true, + 'A': true, + 'B': true, + 'C': true, + 'D': true, + 'E': true, + 'F': true, + 'G': true, + 'H': true, + 'I': true, + 'J': true, + 'K': true, + 'L': true, + 'M': true, + 'N': true, + 'O': true, + 'P': true, + 'Q': true, + 'R': true, + 'S': true, + 'T': true, + 'U': true, + 'W': true, + 'V': true, + 'X': true, + 'Y': true, + 'Z': true, + '^': true, + '_': true, + '`': true, + 'a': true, + 'b': true, + 'c': true, + 'd': true, + 'e': true, + 'f': true, + 'g': true, + 'h': true, + 'i': true, + 'j': true, + 'k': true, + 'l': true, + 'm': true, + 'n': true, + 'o': true, + 'p': true, + 'q': true, + 'r': true, + 's': true, + 't': true, + 'u': true, + 'v': true, + 'w': true, + 'x': true, + 'y': true, + 'z': true, + '|': true, + '~': true, +} + +func IsTokenRune(r rune) bool { + i := int(r) + return i < len(isTokenTable) && isTokenTable[i] +} + +func isNotToken(r rune) bool { + return !IsTokenRune(r) +} + +// HeaderValuesContainsToken reports whether any string in values +// contains the provided token, ASCII case-insensitively. +func HeaderValuesContainsToken(values []string, token string) bool { + for _, v := range values { + if headerValueContainsToken(v, token) { + return true + } + } + return false +} + +// isOWS reports whether b is an optional whitespace byte, as defined +// by RFC 7230 section 3.2.3. +func isOWS(b byte) bool { return b == ' ' || b == '\t' } + +// trimOWS returns x with all optional whitespace removes from the +// beginning and end. +func trimOWS(x string) string { + // TODO: consider using strings.Trim(x, " \t") instead, + // if and when it's fast enough. See issue 10292. + // But this ASCII-only code will probably always beat UTF-8 + // aware code. + for len(x) > 0 && isOWS(x[0]) { + x = x[1:] + } + for len(x) > 0 && isOWS(x[len(x)-1]) { + x = x[:len(x)-1] + } + return x +} + +// headerValueContainsToken reports whether v (assumed to be a +// 0#element, in the ABNF extension described in RFC 7230 section 7) +// contains token amongst its comma-separated tokens, ASCII +// case-insensitively. +func headerValueContainsToken(v string, token string) bool { + v = trimOWS(v) + if comma := strings.IndexByte(v, ','); comma != -1 { + return tokenEqual(trimOWS(v[:comma]), token) || headerValueContainsToken(v[comma+1:], token) + } + return tokenEqual(v, token) +} + +// lowerASCII returns the ASCII lowercase version of b. +func lowerASCII(b byte) byte { + if 'A' <= b && b <= 'Z' { + return b + ('a' - 'A') + } + return b +} + +// tokenEqual reports whether t1 and t2 are equal, ASCII case-insensitively. +func tokenEqual(t1, t2 string) bool { + if len(t1) != len(t2) { + return false + } + for i, b := range t1 { + if b >= utf8.RuneSelf { + // No UTF-8 or non-ASCII allowed in tokens. + return false + } + if lowerASCII(byte(b)) != lowerASCII(t2[i]) { + return false + } + } + return true +} + +// isLWS reports whether b is linear white space, according +// to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 +// LWS = [CRLF] 1*( SP | HT ) +func isLWS(b byte) bool { return b == ' ' || b == '\t' } + +// isCTL reports whether b is a control byte, according +// to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 +// CTL = +func isCTL(b byte) bool { + const del = 0x7f // a CTL + return b < ' ' || b == del +} + +// ValidHeaderFieldName reports whether v is a valid HTTP/1.x header name. +// HTTP/2 imposes the additional restriction that uppercase ASCII +// letters are not allowed. +// +// RFC 7230 says: +// header-field = field-name ":" OWS field-value OWS +// field-name = token +// token = 1*tchar +// tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / +// "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA +func ValidHeaderFieldName(v string) bool { + if len(v) == 0 { + return false + } + for _, r := range v { + if !IsTokenRune(r) { + return false + } + } + return true +} + +// ValidHostHeader reports whether h is a valid host header. +func ValidHostHeader(h string) bool { + // The latest spec is actually this: + // + // http://tools.ietf.org/html/rfc7230#section-5.4 + // Host = uri-host [ ":" port ] + // + // Where uri-host is: + // http://tools.ietf.org/html/rfc3986#section-3.2.2 + // + // But we're going to be much more lenient for now and just + // search for any byte that's not a valid byte in any of those + // expressions. + for i := 0; i < len(h); i++ { + if !validHostByte[h[i]] { + return false + } + } + return true +} + +// See the validHostHeader comment. +var validHostByte = [256]bool{ + '0': true, '1': true, '2': true, '3': true, '4': true, '5': true, '6': true, '7': true, + '8': true, '9': true, + + 'a': true, 'b': true, 'c': true, 'd': true, 'e': true, 'f': true, 'g': true, 'h': true, + 'i': true, 'j': true, 'k': true, 'l': true, 'm': true, 'n': true, 'o': true, 'p': true, + 'q': true, 'r': true, 's': true, 't': true, 'u': true, 'v': true, 'w': true, 'x': true, + 'y': true, 'z': true, + + 'A': true, 'B': true, 'C': true, 'D': true, 'E': true, 'F': true, 'G': true, 'H': true, + 'I': true, 'J': true, 'K': true, 'L': true, 'M': true, 'N': true, 'O': true, 'P': true, + 'Q': true, 'R': true, 'S': true, 'T': true, 'U': true, 'V': true, 'W': true, 'X': true, + 'Y': true, 'Z': true, + + '!': true, // sub-delims + '$': true, // sub-delims + '%': true, // pct-encoded (and used in IPv6 zones) + '&': true, // sub-delims + '(': true, // sub-delims + ')': true, // sub-delims + '*': true, // sub-delims + '+': true, // sub-delims + ',': true, // sub-delims + '-': true, // unreserved + '.': true, // unreserved + ':': true, // IPv6address + Host expression's optional port + ';': true, // sub-delims + '=': true, // sub-delims + '[': true, + '\'': true, // sub-delims + ']': true, + '_': true, // unreserved + '~': true, // unreserved +} + +// ValidHeaderFieldValue reports whether v is a valid "field-value" according to +// http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 : +// +// message-header = field-name ":" [ field-value ] +// field-value = *( field-content | LWS ) +// field-content = +// +// http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 : +// +// TEXT = +// LWS = [CRLF] 1*( SP | HT ) +// CTL = +// +// RFC 7230 says: +// field-value = *( field-content / obs-fold ) +// obj-fold = N/A to http2, and deprecated +// field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] +// field-vchar = VCHAR / obs-text +// obs-text = %x80-FF +// VCHAR = "any visible [USASCII] character" +// +// http2 further says: "Similarly, HTTP/2 allows header field values +// that are not valid. While most of the values that can be encoded +// will not alter header field parsing, carriage return (CR, ASCII +// 0xd), line feed (LF, ASCII 0xa), and the zero character (NUL, ASCII +// 0x0) might be exploited by an attacker if they are translated +// verbatim. Any request or response that contains a character not +// permitted in a header field value MUST be treated as malformed +// (Section 8.1.2.6). Valid characters are defined by the +// field-content ABNF rule in Section 3.2 of [RFC7230]." +// +// This function does not (yet?) properly handle the rejection of +// strings that begin or end with SP or HTAB. +func ValidHeaderFieldValue(v string) bool { + for i := 0; i < len(v); i++ { + b := v[i] + if isCTL(b) && !isLWS(b) { + return false + } + } + return true +} diff --git a/ingress/vendor/golang.org/x/net/trace/events.go b/ingress/vendor/golang.org/x/net/trace/events.go new file mode 100644 index 0000000000..e66c7e3282 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/trace/events.go @@ -0,0 +1,524 @@ +// Copyright 2015 The Go 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 trace + +import ( + "bytes" + "fmt" + "html/template" + "io" + "log" + "net/http" + "runtime" + "sort" + "strconv" + "strings" + "sync" + "sync/atomic" + "text/tabwriter" + "time" +) + +var eventsTmpl = template.Must(template.New("events").Funcs(template.FuncMap{ + "elapsed": elapsed, + "trimSpace": strings.TrimSpace, +}).Parse(eventsHTML)) + +const maxEventsPerLog = 100 + +type bucket struct { + MaxErrAge time.Duration + String string +} + +var buckets = []bucket{ + {0, "total"}, + {10 * time.Second, "errs<10s"}, + {1 * time.Minute, "errs<1m"}, + {10 * time.Minute, "errs<10m"}, + {1 * time.Hour, "errs<1h"}, + {10 * time.Hour, "errs<10h"}, + {24000 * time.Hour, "errors"}, +} + +// RenderEvents renders the HTML page typically served at /debug/events. +// It does not do any auth checking; see AuthRequest for the default auth check +// used by the handler registered on http.DefaultServeMux. +// req may be nil. +func RenderEvents(w http.ResponseWriter, req *http.Request, sensitive bool) { + now := time.Now() + data := &struct { + Families []string // family names + Buckets []bucket + Counts [][]int // eventLog count per family/bucket + + // Set when a bucket has been selected. + Family string + Bucket int + EventLogs eventLogs + Expanded bool + }{ + Buckets: buckets, + } + + data.Families = make([]string, 0, len(families)) + famMu.RLock() + for name := range families { + data.Families = append(data.Families, name) + } + famMu.RUnlock() + sort.Strings(data.Families) + + // Count the number of eventLogs in each family for each error age. + data.Counts = make([][]int, len(data.Families)) + for i, name := range data.Families { + // TODO(sameer): move this loop under the family lock. + f := getEventFamily(name) + data.Counts[i] = make([]int, len(data.Buckets)) + for j, b := range data.Buckets { + data.Counts[i][j] = f.Count(now, b.MaxErrAge) + } + } + + if req != nil { + var ok bool + data.Family, data.Bucket, ok = parseEventsArgs(req) + if !ok { + // No-op + } else { + data.EventLogs = getEventFamily(data.Family).Copy(now, buckets[data.Bucket].MaxErrAge) + } + if data.EventLogs != nil { + defer data.EventLogs.Free() + sort.Sort(data.EventLogs) + } + if exp, err := strconv.ParseBool(req.FormValue("exp")); err == nil { + data.Expanded = exp + } + } + + famMu.RLock() + defer famMu.RUnlock() + if err := eventsTmpl.Execute(w, data); err != nil { + log.Printf("net/trace: Failed executing template: %v", err) + } +} + +func parseEventsArgs(req *http.Request) (fam string, b int, ok bool) { + fam, bStr := req.FormValue("fam"), req.FormValue("b") + if fam == "" || bStr == "" { + return "", 0, false + } + b, err := strconv.Atoi(bStr) + if err != nil || b < 0 || b >= len(buckets) { + return "", 0, false + } + return fam, b, true +} + +// An EventLog provides a log of events associated with a specific object. +type EventLog interface { + // Printf formats its arguments with fmt.Sprintf and adds the + // result to the event log. + Printf(format string, a ...interface{}) + + // Errorf is like Printf, but it marks this event as an error. + Errorf(format string, a ...interface{}) + + // Finish declares that this event log is complete. + // The event log should not be used after calling this method. + Finish() +} + +// NewEventLog returns a new EventLog with the specified family name +// and title. +func NewEventLog(family, title string) EventLog { + el := newEventLog() + el.ref() + el.Family, el.Title = family, title + el.Start = time.Now() + el.events = make([]logEntry, 0, maxEventsPerLog) + el.stack = make([]uintptr, 32) + n := runtime.Callers(2, el.stack) + el.stack = el.stack[:n] + + getEventFamily(family).add(el) + return el +} + +func (el *eventLog) Finish() { + getEventFamily(el.Family).remove(el) + el.unref() // matches ref in New +} + +var ( + famMu sync.RWMutex + families = make(map[string]*eventFamily) // family name => family +) + +func getEventFamily(fam string) *eventFamily { + famMu.Lock() + defer famMu.Unlock() + f := families[fam] + if f == nil { + f = &eventFamily{} + families[fam] = f + } + return f +} + +type eventFamily struct { + mu sync.RWMutex + eventLogs eventLogs +} + +func (f *eventFamily) add(el *eventLog) { + f.mu.Lock() + f.eventLogs = append(f.eventLogs, el) + f.mu.Unlock() +} + +func (f *eventFamily) remove(el *eventLog) { + f.mu.Lock() + defer f.mu.Unlock() + for i, el0 := range f.eventLogs { + if el == el0 { + copy(f.eventLogs[i:], f.eventLogs[i+1:]) + f.eventLogs = f.eventLogs[:len(f.eventLogs)-1] + return + } + } +} + +func (f *eventFamily) Count(now time.Time, maxErrAge time.Duration) (n int) { + f.mu.RLock() + defer f.mu.RUnlock() + for _, el := range f.eventLogs { + if el.hasRecentError(now, maxErrAge) { + n++ + } + } + return +} + +func (f *eventFamily) Copy(now time.Time, maxErrAge time.Duration) (els eventLogs) { + f.mu.RLock() + defer f.mu.RUnlock() + els = make(eventLogs, 0, len(f.eventLogs)) + for _, el := range f.eventLogs { + if el.hasRecentError(now, maxErrAge) { + el.ref() + els = append(els, el) + } + } + return +} + +type eventLogs []*eventLog + +// Free calls unref on each element of the list. +func (els eventLogs) Free() { + for _, el := range els { + el.unref() + } +} + +// eventLogs may be sorted in reverse chronological order. +func (els eventLogs) Len() int { return len(els) } +func (els eventLogs) Less(i, j int) bool { return els[i].Start.After(els[j].Start) } +func (els eventLogs) Swap(i, j int) { els[i], els[j] = els[j], els[i] } + +// A logEntry is a timestamped log entry in an event log. +type logEntry struct { + When time.Time + Elapsed time.Duration // since previous event in log + NewDay bool // whether this event is on a different day to the previous event + What string + IsErr bool +} + +// WhenString returns a string representation of the elapsed time of the event. +// It will include the date if midnight was crossed. +func (e logEntry) WhenString() string { + if e.NewDay { + return e.When.Format("2006/01/02 15:04:05.000000") + } + return e.When.Format("15:04:05.000000") +} + +// An eventLog represents an active event log. +type eventLog struct { + // Family is the top-level grouping of event logs to which this belongs. + Family string + + // Title is the title of this event log. + Title string + + // Timing information. + Start time.Time + + // Call stack where this event log was created. + stack []uintptr + + // Append-only sequence of events. + // + // TODO(sameer): change this to a ring buffer to avoid the array copy + // when we hit maxEventsPerLog. + mu sync.RWMutex + events []logEntry + LastErrorTime time.Time + discarded int + + refs int32 // how many buckets this is in +} + +func (el *eventLog) reset() { + // Clear all but the mutex. Mutexes may not be copied, even when unlocked. + el.Family = "" + el.Title = "" + el.Start = time.Time{} + el.stack = nil + el.events = nil + el.LastErrorTime = time.Time{} + el.discarded = 0 + el.refs = 0 +} + +func (el *eventLog) hasRecentError(now time.Time, maxErrAge time.Duration) bool { + if maxErrAge == 0 { + return true + } + el.mu.RLock() + defer el.mu.RUnlock() + return now.Sub(el.LastErrorTime) < maxErrAge +} + +// delta returns the elapsed time since the last event or the log start, +// and whether it spans midnight. +// L >= el.mu +func (el *eventLog) delta(t time.Time) (time.Duration, bool) { + if len(el.events) == 0 { + return t.Sub(el.Start), false + } + prev := el.events[len(el.events)-1].When + return t.Sub(prev), prev.Day() != t.Day() + +} + +func (el *eventLog) Printf(format string, a ...interface{}) { + el.printf(false, format, a...) +} + +func (el *eventLog) Errorf(format string, a ...interface{}) { + el.printf(true, format, a...) +} + +func (el *eventLog) printf(isErr bool, format string, a ...interface{}) { + e := logEntry{When: time.Now(), IsErr: isErr, What: fmt.Sprintf(format, a...)} + el.mu.Lock() + e.Elapsed, e.NewDay = el.delta(e.When) + if len(el.events) < maxEventsPerLog { + el.events = append(el.events, e) + } else { + // Discard the oldest event. + if el.discarded == 0 { + // el.discarded starts at two to count for the event it + // is replacing, plus the next one that we are about to + // drop. + el.discarded = 2 + } else { + el.discarded++ + } + // TODO(sameer): if this causes allocations on a critical path, + // change eventLog.What to be a fmt.Stringer, as in trace.go. + el.events[0].What = fmt.Sprintf("(%d events discarded)", el.discarded) + // The timestamp of the discarded meta-event should be + // the time of the last event it is representing. + el.events[0].When = el.events[1].When + copy(el.events[1:], el.events[2:]) + el.events[maxEventsPerLog-1] = e + } + if e.IsErr { + el.LastErrorTime = e.When + } + el.mu.Unlock() +} + +func (el *eventLog) ref() { + atomic.AddInt32(&el.refs, 1) +} + +func (el *eventLog) unref() { + if atomic.AddInt32(&el.refs, -1) == 0 { + freeEventLog(el) + } +} + +func (el *eventLog) When() string { + return el.Start.Format("2006/01/02 15:04:05.000000") +} + +func (el *eventLog) ElapsedTime() string { + elapsed := time.Since(el.Start) + return fmt.Sprintf("%.6f", elapsed.Seconds()) +} + +func (el *eventLog) Stack() string { + buf := new(bytes.Buffer) + tw := tabwriter.NewWriter(buf, 1, 8, 1, '\t', 0) + printStackRecord(tw, el.stack) + tw.Flush() + return buf.String() +} + +// printStackRecord prints the function + source line information +// for a single stack trace. +// Adapted from runtime/pprof/pprof.go. +func printStackRecord(w io.Writer, stk []uintptr) { + for _, pc := range stk { + f := runtime.FuncForPC(pc) + if f == nil { + continue + } + file, line := f.FileLine(pc) + name := f.Name() + // Hide runtime.goexit and any runtime functions at the beginning. + if strings.HasPrefix(name, "runtime.") { + continue + } + fmt.Fprintf(w, "# %s\t%s:%d\n", name, file, line) + } +} + +func (el *eventLog) Events() []logEntry { + el.mu.RLock() + defer el.mu.RUnlock() + return el.events +} + +// freeEventLogs is a freelist of *eventLog +var freeEventLogs = make(chan *eventLog, 1000) + +// newEventLog returns a event log ready to use. +func newEventLog() *eventLog { + select { + case el := <-freeEventLogs: + return el + default: + return new(eventLog) + } +} + +// freeEventLog adds el to freeEventLogs if there's room. +// This is non-blocking. +func freeEventLog(el *eventLog) { + el.reset() + select { + case freeEventLogs <- el: + default: + } +} + +const eventsHTML = ` + + + events + + + + +

/debug/events

+ + + {{range $i, $fam := .Families}} + + + + {{range $j, $bucket := $.Buckets}} + {{$n := index $.Counts $i $j}} + + {{end}} + + {{end}} +
{{$fam}} + {{if $n}}{{end}} + [{{$n}} {{$bucket.String}}] + {{if $n}}{{end}} +
+ +{{if $.EventLogs}} +
+

Family: {{$.Family}}

+ +{{if $.Expanded}}{{end}} +[Summary]{{if $.Expanded}}{{end}} + +{{if not $.Expanded}}{{end}} +[Expanded]{{if not $.Expanded}}{{end}} + + + + {{range $el := $.EventLogs}} + + + + + {{if $.Expanded}} + + + + + + {{range $el.Events}} + + + + + + {{end}} + {{end}} + {{end}} +
WhenElapsed
{{$el.When}}{{$el.ElapsedTime}}{{$el.Title}} +
{{$el.Stack|trimSpace}}
{{.WhenString}}{{elapsed .Elapsed}}.{{if .IsErr}}E{{else}}.{{end}}. {{.What}}
+{{end}} + + +` diff --git a/ingress/vendor/golang.org/x/net/trace/histogram.go b/ingress/vendor/golang.org/x/net/trace/histogram.go new file mode 100644 index 0000000000..bb42aa5320 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/trace/histogram.go @@ -0,0 +1,356 @@ +// Copyright 2015 The Go 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 trace + +// This file implements histogramming for RPC statistics collection. + +import ( + "bytes" + "fmt" + "html/template" + "log" + "math" + + "golang.org/x/net/internal/timeseries" +) + +const ( + bucketCount = 38 +) + +// histogram keeps counts of values in buckets that are spaced +// out in powers of 2: 0-1, 2-3, 4-7... +// histogram implements timeseries.Observable +type histogram struct { + sum int64 // running total of measurements + sumOfSquares float64 // square of running total + buckets []int64 // bucketed values for histogram + value int // holds a single value as an optimization + valueCount int64 // number of values recorded for single value +} + +// AddMeasurement records a value measurement observation to the histogram. +func (h *histogram) addMeasurement(value int64) { + // TODO: assert invariant + h.sum += value + h.sumOfSquares += float64(value) * float64(value) + + bucketIndex := getBucket(value) + + if h.valueCount == 0 || (h.valueCount > 0 && h.value == bucketIndex) { + h.value = bucketIndex + h.valueCount++ + } else { + h.allocateBuckets() + h.buckets[bucketIndex]++ + } +} + +func (h *histogram) allocateBuckets() { + if h.buckets == nil { + h.buckets = make([]int64, bucketCount) + h.buckets[h.value] = h.valueCount + h.value = 0 + h.valueCount = -1 + } +} + +func log2(i int64) int { + n := 0 + for ; i >= 0x100; i >>= 8 { + n += 8 + } + for ; i > 0; i >>= 1 { + n += 1 + } + return n +} + +func getBucket(i int64) (index int) { + index = log2(i) - 1 + if index < 0 { + index = 0 + } + if index >= bucketCount { + index = bucketCount - 1 + } + return +} + +// Total returns the number of recorded observations. +func (h *histogram) total() (total int64) { + if h.valueCount >= 0 { + total = h.valueCount + } + for _, val := range h.buckets { + total += int64(val) + } + return +} + +// Average returns the average value of recorded observations. +func (h *histogram) average() float64 { + t := h.total() + if t == 0 { + return 0 + } + return float64(h.sum) / float64(t) +} + +// Variance returns the variance of recorded observations. +func (h *histogram) variance() float64 { + t := float64(h.total()) + if t == 0 { + return 0 + } + s := float64(h.sum) / t + return h.sumOfSquares/t - s*s +} + +// StandardDeviation returns the standard deviation of recorded observations. +func (h *histogram) standardDeviation() float64 { + return math.Sqrt(h.variance()) +} + +// PercentileBoundary estimates the value that the given fraction of recorded +// observations are less than. +func (h *histogram) percentileBoundary(percentile float64) int64 { + total := h.total() + + // Corner cases (make sure result is strictly less than Total()) + if total == 0 { + return 0 + } else if total == 1 { + return int64(h.average()) + } + + percentOfTotal := round(float64(total) * percentile) + var runningTotal int64 + + for i := range h.buckets { + value := h.buckets[i] + runningTotal += value + if runningTotal == percentOfTotal { + // We hit an exact bucket boundary. If the next bucket has data, it is a + // good estimate of the value. If the bucket is empty, we interpolate the + // midpoint between the next bucket's boundary and the next non-zero + // bucket. If the remaining buckets are all empty, then we use the + // boundary for the next bucket as the estimate. + j := uint8(i + 1) + min := bucketBoundary(j) + if runningTotal < total { + for h.buckets[j] == 0 { + j++ + } + } + max := bucketBoundary(j) + return min + round(float64(max-min)/2) + } else if runningTotal > percentOfTotal { + // The value is in this bucket. Interpolate the value. + delta := runningTotal - percentOfTotal + percentBucket := float64(value-delta) / float64(value) + bucketMin := bucketBoundary(uint8(i)) + nextBucketMin := bucketBoundary(uint8(i + 1)) + bucketSize := nextBucketMin - bucketMin + return bucketMin + round(percentBucket*float64(bucketSize)) + } + } + return bucketBoundary(bucketCount - 1) +} + +// Median returns the estimated median of the observed values. +func (h *histogram) median() int64 { + return h.percentileBoundary(0.5) +} + +// Add adds other to h. +func (h *histogram) Add(other timeseries.Observable) { + o := other.(*histogram) + if o.valueCount == 0 { + // Other histogram is empty + } else if h.valueCount >= 0 && o.valueCount > 0 && h.value == o.value { + // Both have a single bucketed value, aggregate them + h.valueCount += o.valueCount + } else { + // Two different values necessitate buckets in this histogram + h.allocateBuckets() + if o.valueCount >= 0 { + h.buckets[o.value] += o.valueCount + } else { + for i := range h.buckets { + h.buckets[i] += o.buckets[i] + } + } + } + h.sumOfSquares += o.sumOfSquares + h.sum += o.sum +} + +// Clear resets the histogram to an empty state, removing all observed values. +func (h *histogram) Clear() { + h.buckets = nil + h.value = 0 + h.valueCount = 0 + h.sum = 0 + h.sumOfSquares = 0 +} + +// CopyFrom copies from other, which must be a *histogram, into h. +func (h *histogram) CopyFrom(other timeseries.Observable) { + o := other.(*histogram) + if o.valueCount == -1 { + h.allocateBuckets() + copy(h.buckets, o.buckets) + } + h.sum = o.sum + h.sumOfSquares = o.sumOfSquares + h.value = o.value + h.valueCount = o.valueCount +} + +// Multiply scales the histogram by the specified ratio. +func (h *histogram) Multiply(ratio float64) { + if h.valueCount == -1 { + for i := range h.buckets { + h.buckets[i] = int64(float64(h.buckets[i]) * ratio) + } + } else { + h.valueCount = int64(float64(h.valueCount) * ratio) + } + h.sum = int64(float64(h.sum) * ratio) + h.sumOfSquares = h.sumOfSquares * ratio +} + +// New creates a new histogram. +func (h *histogram) New() timeseries.Observable { + r := new(histogram) + r.Clear() + return r +} + +func (h *histogram) String() string { + return fmt.Sprintf("%d, %f, %d, %d, %v", + h.sum, h.sumOfSquares, h.value, h.valueCount, h.buckets) +} + +// round returns the closest int64 to the argument +func round(in float64) int64 { + return int64(math.Floor(in + 0.5)) +} + +// bucketBoundary returns the first value in the bucket. +func bucketBoundary(bucket uint8) int64 { + if bucket == 0 { + return 0 + } + return 1 << bucket +} + +// bucketData holds data about a specific bucket for use in distTmpl. +type bucketData struct { + Lower, Upper int64 + N int64 + Pct, CumulativePct float64 + GraphWidth int +} + +// data holds data about a Distribution for use in distTmpl. +type data struct { + Buckets []*bucketData + Count, Median int64 + Mean, StandardDeviation float64 +} + +// maxHTMLBarWidth is the maximum width of the HTML bar for visualizing buckets. +const maxHTMLBarWidth = 350.0 + +// newData returns data representing h for use in distTmpl. +func (h *histogram) newData() *data { + // Force the allocation of buckets to simplify the rendering implementation + h.allocateBuckets() + // We scale the bars on the right so that the largest bar is + // maxHTMLBarWidth pixels in width. + maxBucket := int64(0) + for _, n := range h.buckets { + if n > maxBucket { + maxBucket = n + } + } + total := h.total() + barsizeMult := maxHTMLBarWidth / float64(maxBucket) + var pctMult float64 + if total == 0 { + pctMult = 1.0 + } else { + pctMult = 100.0 / float64(total) + } + + buckets := make([]*bucketData, len(h.buckets)) + runningTotal := int64(0) + for i, n := range h.buckets { + if n == 0 { + continue + } + runningTotal += n + var upperBound int64 + if i < bucketCount-1 { + upperBound = bucketBoundary(uint8(i + 1)) + } else { + upperBound = math.MaxInt64 + } + buckets[i] = &bucketData{ + Lower: bucketBoundary(uint8(i)), + Upper: upperBound, + N: n, + Pct: float64(n) * pctMult, + CumulativePct: float64(runningTotal) * pctMult, + GraphWidth: int(float64(n) * barsizeMult), + } + } + return &data{ + Buckets: buckets, + Count: total, + Median: h.median(), + Mean: h.average(), + StandardDeviation: h.standardDeviation(), + } +} + +func (h *histogram) html() template.HTML { + buf := new(bytes.Buffer) + if err := distTmpl.Execute(buf, h.newData()); err != nil { + buf.Reset() + log.Printf("net/trace: couldn't execute template: %v", err) + } + return template.HTML(buf.String()) +} + +// Input: data +var distTmpl = template.Must(template.New("distTmpl").Parse(` + + + + + + + +
Count: {{.Count}}Mean: {{printf "%.0f" .Mean}}StdDev: {{printf "%.0f" .StandardDeviation}}Median: {{.Median}}
+
+ +{{range $b := .Buckets}} +{{if $b}} + + + + + + + + + +{{end}} +{{end}} +
[{{.Lower}},{{.Upper}}){{.N}}{{printf "%#.3f" .Pct}}%{{printf "%#.3f" .CumulativePct}}%
+`)) diff --git a/ingress/vendor/golang.org/x/net/trace/trace.go b/ingress/vendor/golang.org/x/net/trace/trace.go new file mode 100644 index 0000000000..877dfb32b6 --- /dev/null +++ b/ingress/vendor/golang.org/x/net/trace/trace.go @@ -0,0 +1,1063 @@ +// Copyright 2015 The Go 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 trace implements tracing of requests and long-lived objects. +It exports HTTP interfaces on /debug/requests and /debug/events. + +A trace.Trace provides tracing for short-lived objects, usually requests. +A request handler might be implemented like this: + + func fooHandler(w http.ResponseWriter, req *http.Request) { + tr := trace.New("mypkg.Foo", req.URL.Path) + defer tr.Finish() + ... + tr.LazyPrintf("some event %q happened", str) + ... + if err := somethingImportant(); err != nil { + tr.LazyPrintf("somethingImportant failed: %v", err) + tr.SetError() + } + } + +The /debug/requests HTTP endpoint organizes the traces by family, +errors, and duration. It also provides histogram of request duration +for each family. + +A trace.EventLog provides tracing for long-lived objects, such as RPC +connections. + + // A Fetcher fetches URL paths for a single domain. + type Fetcher struct { + domain string + events trace.EventLog + } + + func NewFetcher(domain string) *Fetcher { + return &Fetcher{ + domain, + trace.NewEventLog("mypkg.Fetcher", domain), + } + } + + func (f *Fetcher) Fetch(path string) (string, error) { + resp, err := http.Get("http://" + f.domain + "/" + path) + if err != nil { + f.events.Errorf("Get(%q) = %v", path, err) + return "", err + } + f.events.Printf("Get(%q) = %s", path, resp.Status) + ... + } + + func (f *Fetcher) Close() error { + f.events.Finish() + return nil + } + +The /debug/events HTTP endpoint organizes the event logs by family and +by time since the last error. The expanded view displays recent log +entries and the log's call stack. +*/ +package trace + +import ( + "bytes" + "fmt" + "html/template" + "io" + "log" + "net" + "net/http" + "runtime" + "sort" + "strconv" + "sync" + "sync/atomic" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/internal/timeseries" +) + +// DebugUseAfterFinish controls whether to debug uses of Trace values after finishing. +// FOR DEBUGGING ONLY. This will slow down the program. +var DebugUseAfterFinish = false + +// AuthRequest determines whether a specific request is permitted to load the +// /debug/requests or /debug/events pages. +// +// It returns two bools; the first indicates whether the page may be viewed at all, +// and the second indicates whether sensitive events will be shown. +// +// AuthRequest may be replaced by a program to customise its authorisation requirements. +// +// The default AuthRequest function returns (true, true) if and only if the request +// comes from localhost/127.0.0.1/[::1]. +var AuthRequest = func(req *http.Request) (any, sensitive bool) { + // RemoteAddr is commonly in the form "IP" or "IP:port". + // If it is in the form "IP:port", split off the port. + host, _, err := net.SplitHostPort(req.RemoteAddr) + if err != nil { + host = req.RemoteAddr + } + switch host { + case "localhost", "127.0.0.1", "::1": + return true, true + default: + return false, false + } +} + +func init() { + http.HandleFunc("/debug/requests", func(w http.ResponseWriter, req *http.Request) { + any, sensitive := AuthRequest(req) + if !any { + http.Error(w, "not allowed", http.StatusUnauthorized) + return + } + w.Header().Set("Content-Type", "text/html; charset=utf-8") + Render(w, req, sensitive) + }) + http.HandleFunc("/debug/events", func(w http.ResponseWriter, req *http.Request) { + any, sensitive := AuthRequest(req) + if !any { + http.Error(w, "not allowed", http.StatusUnauthorized) + return + } + w.Header().Set("Content-Type", "text/html; charset=utf-8") + RenderEvents(w, req, sensitive) + }) +} + +// Render renders the HTML page typically served at /debug/requests. +// It does not do any auth checking; see AuthRequest for the default auth check +// used by the handler registered on http.DefaultServeMux. +// req may be nil. +func Render(w io.Writer, req *http.Request, sensitive bool) { + data := &struct { + Families []string + ActiveTraceCount map[string]int + CompletedTraces map[string]*family + + // Set when a bucket has been selected. + Traces traceList + Family string + Bucket int + Expanded bool + Traced bool + Active bool + ShowSensitive bool // whether to show sensitive events + + Histogram template.HTML + HistogramWindow string // e.g. "last minute", "last hour", "all time" + + // If non-zero, the set of traces is a partial set, + // and this is the total number. + Total int + }{ + CompletedTraces: completedTraces, + } + + data.ShowSensitive = sensitive + if req != nil { + // Allow show_sensitive=0 to force hiding of sensitive data for testing. + // This only goes one way; you can't use show_sensitive=1 to see things. + if req.FormValue("show_sensitive") == "0" { + data.ShowSensitive = false + } + + if exp, err := strconv.ParseBool(req.FormValue("exp")); err == nil { + data.Expanded = exp + } + if exp, err := strconv.ParseBool(req.FormValue("rtraced")); err == nil { + data.Traced = exp + } + } + + completedMu.RLock() + data.Families = make([]string, 0, len(completedTraces)) + for fam := range completedTraces { + data.Families = append(data.Families, fam) + } + completedMu.RUnlock() + sort.Strings(data.Families) + + // We are careful here to minimize the time spent locking activeMu, + // since that lock is required every time an RPC starts and finishes. + data.ActiveTraceCount = make(map[string]int, len(data.Families)) + activeMu.RLock() + for fam, s := range activeTraces { + data.ActiveTraceCount[fam] = s.Len() + } + activeMu.RUnlock() + + var ok bool + data.Family, data.Bucket, ok = parseArgs(req) + switch { + case !ok: + // No-op + case data.Bucket == -1: + data.Active = true + n := data.ActiveTraceCount[data.Family] + data.Traces = getActiveTraces(data.Family) + if len(data.Traces) < n { + data.Total = n + } + case data.Bucket < bucketsPerFamily: + if b := lookupBucket(data.Family, data.Bucket); b != nil { + data.Traces = b.Copy(data.Traced) + } + default: + if f := getFamily(data.Family, false); f != nil { + var obs timeseries.Observable + f.LatencyMu.RLock() + switch o := data.Bucket - bucketsPerFamily; o { + case 0: + obs = f.Latency.Minute() + data.HistogramWindow = "last minute" + case 1: + obs = f.Latency.Hour() + data.HistogramWindow = "last hour" + case 2: + obs = f.Latency.Total() + data.HistogramWindow = "all time" + } + f.LatencyMu.RUnlock() + if obs != nil { + data.Histogram = obs.(*histogram).html() + } + } + } + + if data.Traces != nil { + defer data.Traces.Free() + sort.Sort(data.Traces) + } + + completedMu.RLock() + defer completedMu.RUnlock() + if err := pageTmpl.ExecuteTemplate(w, "Page", data); err != nil { + log.Printf("net/trace: Failed executing template: %v", err) + } +} + +func parseArgs(req *http.Request) (fam string, b int, ok bool) { + if req == nil { + return "", 0, false + } + fam, bStr := req.FormValue("fam"), req.FormValue("b") + if fam == "" || bStr == "" { + return "", 0, false + } + b, err := strconv.Atoi(bStr) + if err != nil || b < -1 { + return "", 0, false + } + + return fam, b, true +} + +func lookupBucket(fam string, b int) *traceBucket { + f := getFamily(fam, false) + if f == nil || b < 0 || b >= len(f.Buckets) { + return nil + } + return f.Buckets[b] +} + +type contextKeyT string + +var contextKey = contextKeyT("golang.org/x/net/trace.Trace") + +// NewContext returns a copy of the parent context +// and associates it with a Trace. +func NewContext(ctx context.Context, tr Trace) context.Context { + return context.WithValue(ctx, contextKey, tr) +} + +// FromContext returns the Trace bound to the context, if any. +func FromContext(ctx context.Context) (tr Trace, ok bool) { + tr, ok = ctx.Value(contextKey).(Trace) + return +} + +// Trace represents an active request. +type Trace interface { + // LazyLog adds x to the event log. It will be evaluated each time the + // /debug/requests page is rendered. Any memory referenced by x will be + // pinned until the trace is finished and later discarded. + LazyLog(x fmt.Stringer, sensitive bool) + + // LazyPrintf evaluates its arguments with fmt.Sprintf each time the + // /debug/requests page is rendered. Any memory referenced by a will be + // pinned until the trace is finished and later discarded. + LazyPrintf(format string, a ...interface{}) + + // SetError declares that this trace resulted in an error. + SetError() + + // SetRecycler sets a recycler for the trace. + // f will be called for each event passed to LazyLog at a time when + // it is no longer required, whether while the trace is still active + // and the event is discarded, or when a completed trace is discarded. + SetRecycler(f func(interface{})) + + // SetTraceInfo sets the trace info for the trace. + // This is currently unused. + SetTraceInfo(traceID, spanID uint64) + + // SetMaxEvents sets the maximum number of events that will be stored + // in the trace. This has no effect if any events have already been + // added to the trace. + SetMaxEvents(m int) + + // Finish declares that this trace is complete. + // The trace should not be used after calling this method. + Finish() +} + +type lazySprintf struct { + format string + a []interface{} +} + +func (l *lazySprintf) String() string { + return fmt.Sprintf(l.format, l.a...) +} + +// New returns a new Trace with the specified family and title. +func New(family, title string) Trace { + tr := newTrace() + tr.ref() + tr.Family, tr.Title = family, title + tr.Start = time.Now() + tr.events = make([]event, 0, maxEventsPerTrace) + + activeMu.RLock() + s := activeTraces[tr.Family] + activeMu.RUnlock() + if s == nil { + activeMu.Lock() + s = activeTraces[tr.Family] // check again + if s == nil { + s = new(traceSet) + activeTraces[tr.Family] = s + } + activeMu.Unlock() + } + s.Add(tr) + + // Trigger allocation of the completed trace structure for this family. + // This will cause the family to be present in the request page during + // the first trace of this family. We don't care about the return value, + // nor is there any need for this to run inline, so we execute it in its + // own goroutine, but only if the family isn't allocated yet. + completedMu.RLock() + if _, ok := completedTraces[tr.Family]; !ok { + go allocFamily(tr.Family) + } + completedMu.RUnlock() + + return tr +} + +func (tr *trace) Finish() { + tr.Elapsed = time.Now().Sub(tr.Start) + if DebugUseAfterFinish { + buf := make([]byte, 4<<10) // 4 KB should be enough + n := runtime.Stack(buf, false) + tr.finishStack = buf[:n] + } + + activeMu.RLock() + m := activeTraces[tr.Family] + activeMu.RUnlock() + m.Remove(tr) + + f := getFamily(tr.Family, true) + for _, b := range f.Buckets { + if b.Cond.match(tr) { + b.Add(tr) + } + } + // Add a sample of elapsed time as microseconds to the family's timeseries + h := new(histogram) + h.addMeasurement(tr.Elapsed.Nanoseconds() / 1e3) + f.LatencyMu.Lock() + f.Latency.Add(h) + f.LatencyMu.Unlock() + + tr.unref() // matches ref in New +} + +const ( + bucketsPerFamily = 9 + tracesPerBucket = 10 + maxActiveTraces = 20 // Maximum number of active traces to show. + maxEventsPerTrace = 10 + numHistogramBuckets = 38 +) + +var ( + // The active traces. + activeMu sync.RWMutex + activeTraces = make(map[string]*traceSet) // family -> traces + + // Families of completed traces. + completedMu sync.RWMutex + completedTraces = make(map[string]*family) // family -> traces +) + +type traceSet struct { + mu sync.RWMutex + m map[*trace]bool + + // We could avoid the entire map scan in FirstN by having a slice of all the traces + // ordered by start time, and an index into that from the trace struct, with a periodic + // repack of the slice after enough traces finish; we could also use a skip list or similar. + // However, that would shift some of the expense from /debug/requests time to RPC time, + // which is probably the wrong trade-off. +} + +func (ts *traceSet) Len() int { + ts.mu.RLock() + defer ts.mu.RUnlock() + return len(ts.m) +} + +func (ts *traceSet) Add(tr *trace) { + ts.mu.Lock() + if ts.m == nil { + ts.m = make(map[*trace]bool) + } + ts.m[tr] = true + ts.mu.Unlock() +} + +func (ts *traceSet) Remove(tr *trace) { + ts.mu.Lock() + delete(ts.m, tr) + ts.mu.Unlock() +} + +// FirstN returns the first n traces ordered by time. +func (ts *traceSet) FirstN(n int) traceList { + ts.mu.RLock() + defer ts.mu.RUnlock() + + if n > len(ts.m) { + n = len(ts.m) + } + trl := make(traceList, 0, n) + + // Fast path for when no selectivity is needed. + if n == len(ts.m) { + for tr := range ts.m { + tr.ref() + trl = append(trl, tr) + } + sort.Sort(trl) + return trl + } + + // Pick the oldest n traces. + // This is inefficient. See the comment in the traceSet struct. + for tr := range ts.m { + // Put the first n traces into trl in the order they occur. + // When we have n, sort trl, and thereafter maintain its order. + if len(trl) < n { + tr.ref() + trl = append(trl, tr) + if len(trl) == n { + // This is guaranteed to happen exactly once during this loop. + sort.Sort(trl) + } + continue + } + if tr.Start.After(trl[n-1].Start) { + continue + } + + // Find where to insert this one. + tr.ref() + i := sort.Search(n, func(i int) bool { return trl[i].Start.After(tr.Start) }) + trl[n-1].unref() + copy(trl[i+1:], trl[i:]) + trl[i] = tr + } + + return trl +} + +func getActiveTraces(fam string) traceList { + activeMu.RLock() + s := activeTraces[fam] + activeMu.RUnlock() + if s == nil { + return nil + } + return s.FirstN(maxActiveTraces) +} + +func getFamily(fam string, allocNew bool) *family { + completedMu.RLock() + f := completedTraces[fam] + completedMu.RUnlock() + if f == nil && allocNew { + f = allocFamily(fam) + } + return f +} + +func allocFamily(fam string) *family { + completedMu.Lock() + defer completedMu.Unlock() + f := completedTraces[fam] + if f == nil { + f = newFamily() + completedTraces[fam] = f + } + return f +} + +// family represents a set of trace buckets and associated latency information. +type family struct { + // traces may occur in multiple buckets. + Buckets [bucketsPerFamily]*traceBucket + + // latency time series + LatencyMu sync.RWMutex + Latency *timeseries.MinuteHourSeries +} + +func newFamily() *family { + return &family{ + Buckets: [bucketsPerFamily]*traceBucket{ + {Cond: minCond(0)}, + {Cond: minCond(50 * time.Millisecond)}, + {Cond: minCond(100 * time.Millisecond)}, + {Cond: minCond(200 * time.Millisecond)}, + {Cond: minCond(500 * time.Millisecond)}, + {Cond: minCond(1 * time.Second)}, + {Cond: minCond(10 * time.Second)}, + {Cond: minCond(100 * time.Second)}, + {Cond: errorCond{}}, + }, + Latency: timeseries.NewMinuteHourSeries(func() timeseries.Observable { return new(histogram) }), + } +} + +// traceBucket represents a size-capped bucket of historic traces, +// along with a condition for a trace to belong to the bucket. +type traceBucket struct { + Cond cond + + // Ring buffer implementation of a fixed-size FIFO queue. + mu sync.RWMutex + buf [tracesPerBucket]*trace + start int // < tracesPerBucket + length int // <= tracesPerBucket +} + +func (b *traceBucket) Add(tr *trace) { + b.mu.Lock() + defer b.mu.Unlock() + + i := b.start + b.length + if i >= tracesPerBucket { + i -= tracesPerBucket + } + if b.length == tracesPerBucket { + // "Remove" an element from the bucket. + b.buf[i].unref() + b.start++ + if b.start == tracesPerBucket { + b.start = 0 + } + } + b.buf[i] = tr + if b.length < tracesPerBucket { + b.length++ + } + tr.ref() +} + +// Copy returns a copy of the traces in the bucket. +// If tracedOnly is true, only the traces with trace information will be returned. +// The logs will be ref'd before returning; the caller should call +// the Free method when it is done with them. +// TODO(dsymonds): keep track of traced requests in separate buckets. +func (b *traceBucket) Copy(tracedOnly bool) traceList { + b.mu.RLock() + defer b.mu.RUnlock() + + trl := make(traceList, 0, b.length) + for i, x := 0, b.start; i < b.length; i++ { + tr := b.buf[x] + if !tracedOnly || tr.spanID != 0 { + tr.ref() + trl = append(trl, tr) + } + x++ + if x == b.length { + x = 0 + } + } + return trl +} + +func (b *traceBucket) Empty() bool { + b.mu.RLock() + defer b.mu.RUnlock() + return b.length == 0 +} + +// cond represents a condition on a trace. +type cond interface { + match(t *trace) bool + String() string +} + +type minCond time.Duration + +func (m minCond) match(t *trace) bool { return t.Elapsed >= time.Duration(m) } +func (m minCond) String() string { return fmt.Sprintf("≥%gs", time.Duration(m).Seconds()) } + +type errorCond struct{} + +func (e errorCond) match(t *trace) bool { return t.IsError } +func (e errorCond) String() string { return "errors" } + +type traceList []*trace + +// Free calls unref on each element of the list. +func (trl traceList) Free() { + for _, t := range trl { + t.unref() + } +} + +// traceList may be sorted in reverse chronological order. +func (trl traceList) Len() int { return len(trl) } +func (trl traceList) Less(i, j int) bool { return trl[i].Start.After(trl[j].Start) } +func (trl traceList) Swap(i, j int) { trl[i], trl[j] = trl[j], trl[i] } + +// An event is a timestamped log entry in a trace. +type event struct { + When time.Time + Elapsed time.Duration // since previous event in trace + NewDay bool // whether this event is on a different day to the previous event + Recyclable bool // whether this event was passed via LazyLog + What interface{} // string or fmt.Stringer + Sensitive bool // whether this event contains sensitive information +} + +// WhenString returns a string representation of the elapsed time of the event. +// It will include the date if midnight was crossed. +func (e event) WhenString() string { + if e.NewDay { + return e.When.Format("2006/01/02 15:04:05.000000") + } + return e.When.Format("15:04:05.000000") +} + +// discarded represents a number of discarded events. +// It is stored as *discarded to make it easier to update in-place. +type discarded int + +func (d *discarded) String() string { + return fmt.Sprintf("(%d events discarded)", int(*d)) +} + +// trace represents an active or complete request, +// either sent or received by this program. +type trace struct { + // Family is the top-level grouping of traces to which this belongs. + Family string + + // Title is the title of this trace. + Title string + + // Timing information. + Start time.Time + Elapsed time.Duration // zero while active + + // Trace information if non-zero. + traceID uint64 + spanID uint64 + + // Whether this trace resulted in an error. + IsError bool + + // Append-only sequence of events (modulo discards). + mu sync.RWMutex + events []event + + refs int32 // how many buckets this is in + recycler func(interface{}) + disc discarded // scratch space to avoid allocation + + finishStack []byte // where finish was called, if DebugUseAfterFinish is set +} + +func (tr *trace) reset() { + // Clear all but the mutex. Mutexes may not be copied, even when unlocked. + tr.Family = "" + tr.Title = "" + tr.Start = time.Time{} + tr.Elapsed = 0 + tr.traceID = 0 + tr.spanID = 0 + tr.IsError = false + tr.events = nil + tr.refs = 0 + tr.recycler = nil + tr.disc = 0 + tr.finishStack = nil +} + +// delta returns the elapsed time since the last event or the trace start, +// and whether it spans midnight. +// L >= tr.mu +func (tr *trace) delta(t time.Time) (time.Duration, bool) { + if len(tr.events) == 0 { + return t.Sub(tr.Start), false + } + prev := tr.events[len(tr.events)-1].When + return t.Sub(prev), prev.Day() != t.Day() +} + +func (tr *trace) addEvent(x interface{}, recyclable, sensitive bool) { + if DebugUseAfterFinish && tr.finishStack != nil { + buf := make([]byte, 4<<10) // 4 KB should be enough + n := runtime.Stack(buf, false) + log.Printf("net/trace: trace used after finish:\nFinished at:\n%s\nUsed at:\n%s", tr.finishStack, buf[:n]) + } + + /* + NOTE TO DEBUGGERS + + If you are here because your program panicked in this code, + it is almost definitely the fault of code using this package, + and very unlikely to be the fault of this code. + + The most likely scenario is that some code elsewhere is using + a requestz.Trace after its Finish method is called. + You can temporarily set the DebugUseAfterFinish var + to help discover where that is; do not leave that var set, + since it makes this package much less efficient. + */ + + e := event{When: time.Now(), What: x, Recyclable: recyclable, Sensitive: sensitive} + tr.mu.Lock() + e.Elapsed, e.NewDay = tr.delta(e.When) + if len(tr.events) < cap(tr.events) { + tr.events = append(tr.events, e) + } else { + // Discard the middle events. + di := int((cap(tr.events) - 1) / 2) + if d, ok := tr.events[di].What.(*discarded); ok { + (*d)++ + } else { + // disc starts at two to count for the event it is replacing, + // plus the next one that we are about to drop. + tr.disc = 2 + if tr.recycler != nil && tr.events[di].Recyclable { + go tr.recycler(tr.events[di].What) + } + tr.events[di].What = &tr.disc + } + // The timestamp of the discarded meta-event should be + // the time of the last event it is representing. + tr.events[di].When = tr.events[di+1].When + + if tr.recycler != nil && tr.events[di+1].Recyclable { + go tr.recycler(tr.events[di+1].What) + } + copy(tr.events[di+1:], tr.events[di+2:]) + tr.events[cap(tr.events)-1] = e + } + tr.mu.Unlock() +} + +func (tr *trace) LazyLog(x fmt.Stringer, sensitive bool) { + tr.addEvent(x, true, sensitive) +} + +func (tr *trace) LazyPrintf(format string, a ...interface{}) { + tr.addEvent(&lazySprintf{format, a}, false, false) +} + +func (tr *trace) SetError() { tr.IsError = true } + +func (tr *trace) SetRecycler(f func(interface{})) { + tr.recycler = f +} + +func (tr *trace) SetTraceInfo(traceID, spanID uint64) { + tr.traceID, tr.spanID = traceID, spanID +} + +func (tr *trace) SetMaxEvents(m int) { + // Always keep at least three events: first, discarded count, last. + if len(tr.events) == 0 && m > 3 { + tr.events = make([]event, 0, m) + } +} + +func (tr *trace) ref() { + atomic.AddInt32(&tr.refs, 1) +} + +func (tr *trace) unref() { + if atomic.AddInt32(&tr.refs, -1) == 0 { + if tr.recycler != nil { + // freeTrace clears tr, so we hold tr.recycler and tr.events here. + go func(f func(interface{}), es []event) { + for _, e := range es { + if e.Recyclable { + f(e.What) + } + } + }(tr.recycler, tr.events) + } + + freeTrace(tr) + } +} + +func (tr *trace) When() string { + return tr.Start.Format("2006/01/02 15:04:05.000000") +} + +func (tr *trace) ElapsedTime() string { + t := tr.Elapsed + if t == 0 { + // Active trace. + t = time.Since(tr.Start) + } + return fmt.Sprintf("%.6f", t.Seconds()) +} + +func (tr *trace) Events() []event { + tr.mu.RLock() + defer tr.mu.RUnlock() + return tr.events +} + +var traceFreeList = make(chan *trace, 1000) // TODO(dsymonds): Use sync.Pool? + +// newTrace returns a trace ready to use. +func newTrace() *trace { + select { + case tr := <-traceFreeList: + return tr + default: + return new(trace) + } +} + +// freeTrace adds tr to traceFreeList if there's room. +// This is non-blocking. +func freeTrace(tr *trace) { + if DebugUseAfterFinish { + return // never reuse + } + tr.reset() + select { + case traceFreeList <- tr: + default: + } +} + +func elapsed(d time.Duration) string { + b := []byte(fmt.Sprintf("%.6f", d.Seconds())) + + // For subsecond durations, blank all zeros before decimal point, + // and all zeros between the decimal point and the first non-zero digit. + if d < time.Second { + dot := bytes.IndexByte(b, '.') + for i := 0; i < dot; i++ { + b[i] = ' ' + } + for i := dot + 1; i < len(b); i++ { + if b[i] == '0' { + b[i] = ' ' + } else { + break + } + } + } + + return string(b) +} + +var pageTmpl = template.Must(template.New("Page").Funcs(template.FuncMap{ + "elapsed": elapsed, + "add": func(a, b int) int { return a + b }, +}).Parse(pageHTML)) + +const pageHTML = ` +{{template "Prolog" .}} +{{template "StatusTable" .}} +{{template "Epilog" .}} + +{{define "Prolog"}} + + + /debug/requests + + + + +

/debug/requests

+{{end}} {{/* end of Prolog */}} + +{{define "StatusTable"}} + + {{range $fam := .Families}} + + + + {{$n := index $.ActiveTraceCount $fam}} + + + {{$f := index $.CompletedTraces $fam}} + {{range $i, $b := $f.Buckets}} + {{$empty := $b.Empty}} + + {{end}} + + {{$nb := len $f.Buckets}} + + + + + + {{end}} +
{{$fam}} + {{if $n}}{{end}} + [{{$n}} active] + {{if $n}}{{end}} + + {{if not $empty}}{{end}} + [{{.Cond}}] + {{if not $empty}}{{end}} + + [minute] + + [hour] + + [total] +
+{{end}} {{/* end of StatusTable */}} + +{{define "Epilog"}} +{{if $.Traces}} +
+

Family: {{$.Family}}

+ +{{if or $.Expanded $.Traced}} + [Normal/Summary] +{{else}} + [Normal/Summary] +{{end}} + +{{if or (not $.Expanded) $.Traced}} + [Normal/Expanded] +{{else}} + [Normal/Expanded] +{{end}} + +{{if not $.Active}} + {{if or $.Expanded (not $.Traced)}} + [Traced/Summary] + {{else}} + [Traced/Summary] + {{end}} + {{if or (not $.Expanded) (not $.Traced)}} + [Traced/Expanded] + {{else}} + [Traced/Expanded] + {{end}} +{{end}} + +{{if $.Total}} +

Showing {{len $.Traces}} of {{$.Total}} traces.

+{{end}} + + + + + {{range $tr := $.Traces}} + + + + + {{/* TODO: include traceID/spanID */}} + + {{if $.Expanded}} + {{range $tr.Events}} + + + + + + {{end}} + {{end}} + {{end}} +
+ {{if $.Active}}Active{{else}}Completed{{end}} Requests +
WhenElapsed (s)
{{$tr.When}}{{$tr.ElapsedTime}}{{$tr.Title}}
{{.WhenString}}{{elapsed .Elapsed}}{{if or $.ShowSensitive (not .Sensitive)}}... {{.What}}{{else}}[redacted]{{end}}
+{{end}} {{/* if $.Traces */}} + +{{if $.Histogram}} +

Latency (µs) of {{$.Family}} over {{$.HistogramWindow}}

+{{$.Histogram}} +{{end}} {{/* if $.Histogram */}} + + + +{{end}} {{/* end of Epilog */}} +` diff --git a/ingress/vendor/google.golang.org/grpc/.travis.yml b/ingress/vendor/google.golang.org/grpc/.travis.yml new file mode 100644 index 0000000000..9bc2c12793 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/.travis.yml @@ -0,0 +1,17 @@ +language: go + +go: + - 1.5.3 + - 1.6 + +before_install: + - go get github.com/axw/gocov/gocov + - go get github.com/mattn/goveralls + - go get golang.org/x/tools/cmd/cover + +install: + - mkdir -p "$GOPATH/src/google.golang.org" + - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/google.golang.org/grpc" + +script: + - make test testrace diff --git a/ingress/vendor/google.golang.org/grpc/CONTRIBUTING.md b/ingress/vendor/google.golang.org/grpc/CONTRIBUTING.md new file mode 100644 index 0000000000..36cd6f7581 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/CONTRIBUTING.md @@ -0,0 +1,46 @@ +# How to contribute + +We definitely welcome patches and contribution to grpc! Here are some guidelines +and information about how to do so. + +## Sending patches + +### Getting started + +1. Check out the code: + + $ go get google.golang.org/grpc + $ cd $GOPATH/src/google.golang.org/grpc + +1. Create a fork of the grpc-go repository. +1. Add your fork as a remote: + + $ git remote add fork git@github.com:$YOURGITHUBUSERNAME/grpc-go.git + +1. Make changes, commit them. +1. Run the test suite: + + $ make test + +1. Push your changes to your fork: + + $ git push fork ... + +1. Open a pull request. + +## Legal requirements + +In order to protect both you and ourselves, you will need to sign the +[Contributor License Agreement](https://cla.developers.google.com/clas). + +## Filing Issues +When filing an issue, make sure to answer these five questions: + +1. What version of Go are you using (`go version`)? +2. What operating system and processor architecture are you using? +3. What did you do? +4. What did you expect to see? +5. What did you see instead? + +### Contributing code +Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file. diff --git a/ingress/vendor/google.golang.org/grpc/LICENSE b/ingress/vendor/google.golang.org/grpc/LICENSE new file mode 100644 index 0000000000..f4988b4507 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/LICENSE @@ -0,0 +1,28 @@ +Copyright 2014, Google Inc. +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 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/ingress/vendor/google.golang.org/grpc/Makefile b/ingress/vendor/google.golang.org/grpc/Makefile new file mode 100644 index 0000000000..03bb01f0b3 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/Makefile @@ -0,0 +1,52 @@ +all: test testrace + +deps: + go get -d -v google.golang.org/grpc/... + +updatedeps: + go get -d -v -u -f google.golang.org/grpc/... + +testdeps: + go get -d -v -t google.golang.org/grpc/... + +updatetestdeps: + go get -d -v -t -u -f google.golang.org/grpc/... + +build: deps + go build google.golang.org/grpc/... + +proto: + @ if ! which protoc > /dev/null; then \ + echo "error: protoc not installed" >&2; \ + exit 1; \ + fi + go get -u -v github.com/golang/protobuf/protoc-gen-go + # use $$dir as the root for all proto files in the same directory + for dir in $$(git ls-files '*.proto' | xargs -n1 dirname | uniq); do \ + protoc -I $$dir --go_out=plugins=grpc:$$dir $$dir/*.proto; \ + done + +test: testdeps + go test -v -cpu 1,4 google.golang.org/grpc/... + +testrace: testdeps + go test -v -race -cpu 1,4 google.golang.org/grpc/... + +clean: + go clean -i google.golang.org/grpc/... + +coverage: testdeps + ./coverage.sh --coveralls + +.PHONY: \ + all \ + deps \ + updatedeps \ + testdeps \ + updatetestdeps \ + build \ + proto \ + test \ + testrace \ + clean \ + coverage diff --git a/ingress/vendor/google.golang.org/grpc/PATENTS b/ingress/vendor/google.golang.org/grpc/PATENTS new file mode 100644 index 0000000000..69b47959fa --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the gRPC project. + +Google 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, +transfer and otherwise run, modify and propagate the contents of this +implementation of gRPC, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of gRPC. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of gRPC or any code incorporated within this +implementation of gRPC constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of gRPC +shall terminate as of the date such litigation is filed. diff --git a/ingress/vendor/google.golang.org/grpc/README.md b/ingress/vendor/google.golang.org/grpc/README.md new file mode 100644 index 0000000000..90e9453d52 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/README.md @@ -0,0 +1,32 @@ +#gRPC-Go + +[![Build Status](https://travis-ci.org/grpc/grpc-go.svg)](https://travis-ci.org/grpc/grpc-go) [![GoDoc](https://godoc.org/google.golang.org/grpc?status.svg)](https://godoc.org/google.golang.org/grpc) + +The Go implementation of [gRPC](http://www.grpc.io/): A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the [gRPC Quick Start](http://www.grpc.io/docs/) guide. + +Installation +------------ + +To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run: + +``` +$ go get google.golang.org/grpc +``` + +Prerequisites +------------- + +This requires Go 1.5 or later . + +Constraints +----------- +The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the [list](http://godoc.org/google.golang.org/grpc?imports), you need a discussion with gRPC-Go authors and consultants. + +Documentation +------------- +See [API documentation](https://godoc.org/google.golang.org/grpc) for package and API descriptions and find examples in the [examples directory](examples/). + +Status +------ +Beta release + diff --git a/ingress/vendor/google.golang.org/grpc/backoff.go b/ingress/vendor/google.golang.org/grpc/backoff.go new file mode 100644 index 0000000000..52f4f10fc2 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/backoff.go @@ -0,0 +1,80 @@ +package grpc + +import ( + "math/rand" + "time" +) + +// DefaultBackoffConfig uses values specified for backoff in +// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +var ( + DefaultBackoffConfig = BackoffConfig{ + MaxDelay: 120 * time.Second, + baseDelay: 1.0 * time.Second, + factor: 1.6, + jitter: 0.2, + } +) + +// backoffStrategy defines the methodology for backing off after a grpc +// connection failure. +// +// This is unexported until the gRPC project decides whether or not to allow +// alternative backoff strategies. Once a decision is made, this type and its +// method may be exported. +type backoffStrategy interface { + // backoff returns the amount of time to wait before the next retry given + // the number of consecutive failures. + backoff(retries int) time.Duration +} + +// BackoffConfig defines the parameters for the default gRPC backoff strategy. +type BackoffConfig struct { + // MaxDelay is the upper bound of backoff delay. + MaxDelay time.Duration + + // TODO(stevvooe): The following fields are not exported, as allowing + // changes would violate the current gRPC specification for backoff. If + // gRPC decides to allow more interesting backoff strategies, these fields + // may be opened up in the future. + + // baseDelay is the amount of time to wait before retrying after the first + // failure. + baseDelay time.Duration + + // factor is applied to the backoff after each retry. + factor float64 + + // jitter provides a range to randomize backoff delays. + jitter float64 +} + +func setDefaults(bc *BackoffConfig) { + md := bc.MaxDelay + *bc = DefaultBackoffConfig + + if md > 0 { + bc.MaxDelay = md + } +} + +func (bc BackoffConfig) backoff(retries int) (t time.Duration) { + if retries == 0 { + return bc.baseDelay + } + backoff, max := float64(bc.baseDelay), float64(bc.MaxDelay) + for backoff < max && retries > 0 { + backoff *= bc.factor + retries-- + } + if backoff > max { + backoff = max + } + // Randomize backoff delays so that if a cluster of requests start at + // the same time, they won't operate in lockstep. + backoff *= 1 + bc.jitter*(rand.Float64()*2-1) + if backoff < 0 { + return 0 + } + return time.Duration(backoff) +} diff --git a/ingress/vendor/google.golang.org/grpc/balancer.go b/ingress/vendor/google.golang.org/grpc/balancer.go new file mode 100644 index 0000000000..419e214611 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/balancer.go @@ -0,0 +1,385 @@ +/* + * + * Copyright 2016, Google Inc. + * 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 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 grpc + +import ( + "fmt" + "sync" + + "golang.org/x/net/context" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/naming" +) + +// Address represents a server the client connects to. +// This is the EXPERIMENTAL API and may be changed or extended in the future. +type Address struct { + // Addr is the server address on which a connection will be established. + Addr string + // Metadata is the information associated with Addr, which may be used + // to make load balancing decision. + Metadata interface{} +} + +// BalancerGetOptions configures a Get call. +// This is the EXPERIMENTAL API and may be changed or extended in the future. +type BalancerGetOptions struct { + // BlockingWait specifies whether Get should block when there is no + // connected address. + BlockingWait bool +} + +// Balancer chooses network addresses for RPCs. +// This is the EXPERIMENTAL API and may be changed or extended in the future. +type Balancer interface { + // Start does the initialization work to bootstrap a Balancer. For example, + // this function may start the name resolution and watch the updates. It will + // be called when dialing. + Start(target string) error + // Up informs the Balancer that gRPC has a connection to the server at + // addr. It returns down which is called once the connection to addr gets + // lost or closed. + // TODO: It is not clear how to construct and take advantage the meaningful error + // parameter for down. Need realistic demands to guide. + Up(addr Address) (down func(error)) + // Get gets the address of a server for the RPC corresponding to ctx. + // i) If it returns a connected address, gRPC internals issues the RPC on the + // connection to this address; + // ii) If it returns an address on which the connection is under construction + // (initiated by Notify(...)) but not connected, gRPC internals + // * fails RPC if the RPC is fail-fast and connection is in the TransientFailure or + // Shutdown state; + // or + // * issues RPC on the connection otherwise. + // iii) If it returns an address on which the connection does not exist, gRPC + // internals treats it as an error and will fail the corresponding RPC. + // + // Therefore, the following is the recommended rule when writing a custom Balancer. + // If opts.BlockingWait is true, it should return a connected address or + // block if there is no connected address. It should respect the timeout or + // cancellation of ctx when blocking. If opts.BlockingWait is false (for fail-fast + // RPCs), it should return an address it has notified via Notify(...) immediately + // instead of blocking. + // + // The function returns put which is called once the rpc has completed or failed. + // put can collect and report RPC stats to a remote load balancer. + // + // This function should only return the errors Balancer cannot recover by itself. + // gRPC internals will fail the RPC if an error is returned. + Get(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error) + // Notify returns a channel that is used by gRPC internals to watch the addresses + // gRPC needs to connect. The addresses might be from a name resolver or remote + // load balancer. gRPC internals will compare it with the existing connected + // addresses. If the address Balancer notified is not in the existing connected + // addresses, gRPC starts to connect the address. If an address in the existing + // connected addresses is not in the notification list, the corresponding connection + // is shutdown gracefully. Otherwise, there are no operations to take. Note that + // the Address slice must be the full list of the Addresses which should be connected. + // It is NOT delta. + Notify() <-chan []Address + // Close shuts down the balancer. + Close() error +} + +// downErr implements net.Error. It is constructed by gRPC internals and passed to the down +// call of Balancer. +type downErr struct { + timeout bool + temporary bool + desc string +} + +func (e downErr) Error() string { return e.desc } +func (e downErr) Timeout() bool { return e.timeout } +func (e downErr) Temporary() bool { return e.temporary } + +func downErrorf(timeout, temporary bool, format string, a ...interface{}) downErr { + return downErr{ + timeout: timeout, + temporary: temporary, + desc: fmt.Sprintf(format, a...), + } +} + +// RoundRobin returns a Balancer that selects addresses round-robin. It uses r to watch +// the name resolution updates and updates the addresses available correspondingly. +func RoundRobin(r naming.Resolver) Balancer { + return &roundRobin{r: r} +} + +type addrInfo struct { + addr Address + connected bool +} + +type roundRobin struct { + r naming.Resolver + w naming.Watcher + addrs []*addrInfo // all the addresses the client should potentially connect + mu sync.Mutex + addrCh chan []Address // the channel to notify gRPC internals the list of addresses the client should connect to. + next int // index of the next address to return for Get() + waitCh chan struct{} // the channel to block when there is no connected address available + done bool // The Balancer is closed. +} + +func (rr *roundRobin) watchAddrUpdates() error { + updates, err := rr.w.Next() + if err != nil { + grpclog.Printf("grpc: the naming watcher stops working due to %v.\n", err) + return err + } + rr.mu.Lock() + defer rr.mu.Unlock() + for _, update := range updates { + addr := Address{ + Addr: update.Addr, + Metadata: update.Metadata, + } + switch update.Op { + case naming.Add: + var exist bool + for _, v := range rr.addrs { + if addr == v.addr { + exist = true + grpclog.Println("grpc: The name resolver wanted to add an existing address: ", addr) + break + } + } + if exist { + continue + } + rr.addrs = append(rr.addrs, &addrInfo{addr: addr}) + case naming.Delete: + for i, v := range rr.addrs { + if addr == v.addr { + copy(rr.addrs[i:], rr.addrs[i+1:]) + rr.addrs = rr.addrs[:len(rr.addrs)-1] + break + } + } + default: + grpclog.Println("Unknown update.Op ", update.Op) + } + } + // Make a copy of rr.addrs and write it onto rr.addrCh so that gRPC internals gets notified. + open := make([]Address, len(rr.addrs)) + for i, v := range rr.addrs { + open[i] = v.addr + } + if rr.done { + return ErrClientConnClosing + } + rr.addrCh <- open + return nil +} + +func (rr *roundRobin) Start(target string) error { + if rr.r == nil { + // If there is no name resolver installed, it is not needed to + // do name resolution. In this case, target is added into rr.addrs + // as the only address available and rr.addrCh stays nil. + rr.addrs = append(rr.addrs, &addrInfo{addr: Address{Addr: target}}) + return nil + } + w, err := rr.r.Resolve(target) + if err != nil { + return err + } + rr.w = w + rr.addrCh = make(chan []Address) + go func() { + for { + if err := rr.watchAddrUpdates(); err != nil { + return + } + } + }() + return nil +} + +// Up sets the connected state of addr and sends notification if there are pending +// Get() calls. +func (rr *roundRobin) Up(addr Address) func(error) { + rr.mu.Lock() + defer rr.mu.Unlock() + var cnt int + for _, a := range rr.addrs { + if a.addr == addr { + if a.connected { + return nil + } + a.connected = true + } + if a.connected { + cnt++ + } + } + // addr is only one which is connected. Notify the Get() callers who are blocking. + if cnt == 1 && rr.waitCh != nil { + close(rr.waitCh) + rr.waitCh = nil + } + return func(err error) { + rr.down(addr, err) + } +} + +// down unsets the connected state of addr. +func (rr *roundRobin) down(addr Address, err error) { + rr.mu.Lock() + defer rr.mu.Unlock() + for _, a := range rr.addrs { + if addr == a.addr { + a.connected = false + break + } + } +} + +// Get returns the next addr in the rotation. +func (rr *roundRobin) Get(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error) { + var ch chan struct{} + rr.mu.Lock() + if rr.done { + rr.mu.Unlock() + err = ErrClientConnClosing + return + } + + if len(rr.addrs) > 0 { + if rr.next >= len(rr.addrs) { + rr.next = 0 + } + next := rr.next + for { + a := rr.addrs[next] + next = (next + 1) % len(rr.addrs) + if a.connected { + addr = a.addr + rr.next = next + rr.mu.Unlock() + return + } + if next == rr.next { + // Has iterated all the possible address but none is connected. + break + } + } + } + if !opts.BlockingWait { + if len(rr.addrs) == 0 { + rr.mu.Unlock() + err = fmt.Errorf("there is no address available") + return + } + // Returns the next addr on rr.addrs for failfast RPCs. + addr = rr.addrs[rr.next].addr + rr.next++ + rr.mu.Unlock() + return + } + // Wait on rr.waitCh for non-failfast RPCs. + if rr.waitCh == nil { + ch = make(chan struct{}) + rr.waitCh = ch + } else { + ch = rr.waitCh + } + rr.mu.Unlock() + for { + select { + case <-ctx.Done(): + err = ctx.Err() + return + case <-ch: + rr.mu.Lock() + if rr.done { + rr.mu.Unlock() + err = ErrClientConnClosing + return + } + + if len(rr.addrs) > 0 { + if rr.next >= len(rr.addrs) { + rr.next = 0 + } + next := rr.next + for { + a := rr.addrs[next] + next = (next + 1) % len(rr.addrs) + if a.connected { + addr = a.addr + rr.next = next + rr.mu.Unlock() + return + } + if next == rr.next { + // Has iterated all the possible address but none is connected. + break + } + } + } + // The newly added addr got removed by Down() again. + if rr.waitCh == nil { + ch = make(chan struct{}) + rr.waitCh = ch + } else { + ch = rr.waitCh + } + rr.mu.Unlock() + } + } +} + +func (rr *roundRobin) Notify() <-chan []Address { + return rr.addrCh +} + +func (rr *roundRobin) Close() error { + rr.mu.Lock() + defer rr.mu.Unlock() + rr.done = true + if rr.w != nil { + rr.w.Close() + } + if rr.waitCh != nil { + close(rr.waitCh) + rr.waitCh = nil + } + if rr.addrCh != nil { + close(rr.addrCh) + } + return nil +} diff --git a/ingress/vendor/google.golang.org/grpc/call.go b/ingress/vendor/google.golang.org/grpc/call.go new file mode 100644 index 0000000000..84ac178c43 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/call.go @@ -0,0 +1,213 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 grpc + +import ( + "bytes" + "io" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/trace" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/transport" +) + +// recvResponse receives and parses an RPC response. +// On error, it returns the error and indicates whether the call should be retried. +// +// TODO(zhaoq): Check whether the received message sequence is valid. +func recvResponse(dopts dialOptions, t transport.ClientTransport, c *callInfo, stream *transport.Stream, reply interface{}) error { + // Try to acquire header metadata from the server if there is any. + var err error + c.headerMD, err = stream.Header() + if err != nil { + return err + } + p := &parser{r: stream} + for { + if err = recv(p, dopts.codec, stream, dopts.dc, reply); err != nil { + if err == io.EOF { + break + } + return err + } + } + c.trailerMD = stream.Trailer() + return nil +} + +// sendRequest writes out various information of an RPC such as Context and Message. +func sendRequest(ctx context.Context, codec Codec, compressor Compressor, callHdr *transport.CallHdr, t transport.ClientTransport, args interface{}, opts *transport.Options) (_ *transport.Stream, err error) { + stream, err := t.NewStream(ctx, callHdr) + if err != nil { + return nil, err + } + defer func() { + if err != nil { + if _, ok := err.(transport.ConnectionError); !ok { + t.CloseStream(stream, err) + } + } + }() + var cbuf *bytes.Buffer + if compressor != nil { + cbuf = new(bytes.Buffer) + } + outBuf, err := encode(codec, args, compressor, cbuf) + if err != nil { + return nil, transport.StreamErrorf(codes.Internal, "grpc: %v", err) + } + err = t.Write(stream, outBuf, opts) + if err != nil { + return nil, err + } + // Sent successfully. + return stream, nil +} + +// Invoke sends the RPC request on the wire and returns after response is received. +// Invoke is called by generated code. Also users can call Invoke directly when it +// is really needed in their use cases. +func Invoke(ctx context.Context, method string, args, reply interface{}, cc *ClientConn, opts ...CallOption) (err error) { + c := defaultCallInfo + for _, o := range opts { + if err := o.before(&c); err != nil { + return toRPCErr(err) + } + } + defer func() { + for _, o := range opts { + o.after(&c) + } + }() + if EnableTracing { + c.traceInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method) + defer c.traceInfo.tr.Finish() + c.traceInfo.firstLine.client = true + if deadline, ok := ctx.Deadline(); ok { + c.traceInfo.firstLine.deadline = deadline.Sub(time.Now()) + } + c.traceInfo.tr.LazyLog(&c.traceInfo.firstLine, false) + // TODO(dsymonds): Arrange for c.traceInfo.firstLine.remoteAddr to be set. + defer func() { + if err != nil { + c.traceInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + c.traceInfo.tr.SetError() + } + }() + } + topts := &transport.Options{ + Last: true, + Delay: false, + } + for { + var ( + err error + t transport.ClientTransport + stream *transport.Stream + // Record the put handler from Balancer.Get(...). It is called once the + // RPC has completed or failed. + put func() + ) + // TODO(zhaoq): Need a formal spec of fail-fast. + callHdr := &transport.CallHdr{ + Host: cc.authority, + Method: method, + } + if cc.dopts.cp != nil { + callHdr.SendCompress = cc.dopts.cp.Type() + } + gopts := BalancerGetOptions{ + BlockingWait: !c.failFast, + } + t, put, err = cc.getTransport(ctx, gopts) + if err != nil { + // TODO(zhaoq): Probably revisit the error handling. + if _, ok := err.(*rpcError); ok { + return err + } + if err == errConnClosing { + if c.failFast { + return Errorf(codes.Unavailable, "%v", errConnClosing) + } + continue + } + // All the other errors are treated as Internal errors. + return Errorf(codes.Internal, "%v", err) + } + if c.traceInfo.tr != nil { + c.traceInfo.tr.LazyLog(&payload{sent: true, msg: args}, true) + } + stream, err = sendRequest(ctx, cc.dopts.codec, cc.dopts.cp, callHdr, t, args, topts) + if err != nil { + if put != nil { + put() + put = nil + } + if _, ok := err.(transport.ConnectionError); ok { + if c.failFast { + return toRPCErr(err) + } + continue + } + return toRPCErr(err) + } + // Receive the response + err = recvResponse(cc.dopts, t, &c, stream, reply) + if err != nil { + if put != nil { + put() + put = nil + } + if _, ok := err.(transport.ConnectionError); ok { + if c.failFast { + return toRPCErr(err) + } + continue + } + t.CloseStream(stream, err) + return toRPCErr(err) + } + if c.traceInfo.tr != nil { + c.traceInfo.tr.LazyLog(&payload{sent: false, msg: reply}, true) + } + t.CloseStream(stream, nil) + if put != nil { + put() + put = nil + } + return Errorf(stream.StatusCode(), "%s", stream.StatusDesc()) + } +} diff --git a/ingress/vendor/google.golang.org/grpc/clientconn.go b/ingress/vendor/google.golang.org/grpc/clientconn.go new file mode 100644 index 0000000000..c3c7691dc0 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/clientconn.go @@ -0,0 +1,724 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 grpc + +import ( + "errors" + "fmt" + "net" + "strings" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/trace" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/transport" +) + +var ( + // ErrClientConnClosing indicates that the operation is illegal because + // the ClientConn is closing. + ErrClientConnClosing = errors.New("grpc: the client connection is closing") + // ErrClientConnTimeout indicates that the ClientConn cannot establish the + // underlying connections within the specified timeout. + ErrClientConnTimeout = errors.New("grpc: timed out when dialing") + + // errNoTransportSecurity indicates that there is no transport security + // being set for ClientConn. Users should either set one or explicitly + // call WithInsecure DialOption to disable security. + errNoTransportSecurity = errors.New("grpc: no transport security set (use grpc.WithInsecure() explicitly or set credentials)") + // errTransportCredentialsMissing indicates that users want to transmit security + // information (e.g., oauth2 token) which requires secure connection on an insecure + // connection. + errTransportCredentialsMissing = errors.New("grpc: the credentials require transport level security (use grpc.WithTransportCredentials() to set)") + // errCredentialsConflict indicates that grpc.WithTransportCredentials() + // and grpc.WithInsecure() are both called for a connection. + errCredentialsConflict = errors.New("grpc: transport credentials are set for an insecure connection (grpc.WithTransportCredentials() and grpc.WithInsecure() are both called)") + // errNetworkIP indicates that the connection is down due to some network I/O error. + errNetworkIO = errors.New("grpc: failed with network I/O error") + // errConnDrain indicates that the connection starts to be drained and does not accept any new RPCs. + errConnDrain = errors.New("grpc: the connection is drained") + // errConnClosing indicates that the connection is closing. + errConnClosing = errors.New("grpc: the connection is closing") + errNoAddr = errors.New("grpc: there is no address available to dial") + // minimum time to give a connection to complete + minConnectTimeout = 20 * time.Second +) + +// dialOptions configure a Dial call. dialOptions are set by the DialOption +// values passed to Dial. +type dialOptions struct { + codec Codec + cp Compressor + dc Decompressor + bs backoffStrategy + balancer Balancer + block bool + insecure bool + timeout time.Duration + copts transport.ConnectOptions +} + +// DialOption configures how we set up the connection. +type DialOption func(*dialOptions) + +// WithCodec returns a DialOption which sets a codec for message marshaling and unmarshaling. +func WithCodec(c Codec) DialOption { + return func(o *dialOptions) { + o.codec = c + } +} + +// WithCompressor returns a DialOption which sets a CompressorGenerator for generating message +// compressor. +func WithCompressor(cp Compressor) DialOption { + return func(o *dialOptions) { + o.cp = cp + } +} + +// WithDecompressor returns a DialOption which sets a DecompressorGenerator for generating +// message decompressor. +func WithDecompressor(dc Decompressor) DialOption { + return func(o *dialOptions) { + o.dc = dc + } +} + +// WithBalancer returns a DialOption which sets a load balancer. +func WithBalancer(b Balancer) DialOption { + return func(o *dialOptions) { + o.balancer = b + } +} + +// WithBackoffMaxDelay configures the dialer to use the provided maximum delay +// when backing off after failed connection attempts. +func WithBackoffMaxDelay(md time.Duration) DialOption { + return WithBackoffConfig(BackoffConfig{MaxDelay: md}) +} + +// WithBackoffConfig configures the dialer to use the provided backoff +// parameters after connection failures. +// +// Use WithBackoffMaxDelay until more parameters on BackoffConfig are opened up +// for use. +func WithBackoffConfig(b BackoffConfig) DialOption { + // Set defaults to ensure that provided BackoffConfig is valid and + // unexported fields get default values. + setDefaults(&b) + return withBackoff(b) +} + +// withBackoff sets the backoff strategy used for retries after a +// failed connection attempt. +// +// This can be exported if arbitrary backoff strategies are allowed by gRPC. +func withBackoff(bs backoffStrategy) DialOption { + return func(o *dialOptions) { + o.bs = bs + } +} + +// WithBlock returns a DialOption which makes caller of Dial blocks until the underlying +// connection is up. Without this, Dial returns immediately and connecting the server +// happens in background. +func WithBlock() DialOption { + return func(o *dialOptions) { + o.block = true + } +} + +// WithInsecure returns a DialOption which disables transport security for this ClientConn. +// Note that transport security is required unless WithInsecure is set. +func WithInsecure() DialOption { + return func(o *dialOptions) { + o.insecure = true + } +} + +// WithTransportCredentials returns a DialOption which configures a +// connection level security credentials (e.g., TLS/SSL). +func WithTransportCredentials(creds credentials.TransportCredentials) DialOption { + return func(o *dialOptions) { + o.copts.TransportCredentials = creds + } +} + +// WithPerRPCCredentials returns a DialOption which sets +// credentials which will place auth state on each outbound RPC. +func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption { + return func(o *dialOptions) { + o.copts.PerRPCCredentials = append(o.copts.PerRPCCredentials, creds) + } +} + +// WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn +// initially. This is valid if and only if WithBlock() is present. +func WithTimeout(d time.Duration) DialOption { + return func(o *dialOptions) { + o.timeout = d + } +} + +// WithDialer returns a DialOption that specifies a function to use for dialing network addresses. +func WithDialer(f func(addr string, timeout time.Duration) (net.Conn, error)) DialOption { + return func(o *dialOptions) { + o.copts.Dialer = f + } +} + +// WithUserAgent returns a DialOption that specifies a user agent string for all the RPCs. +func WithUserAgent(s string) DialOption { + return func(o *dialOptions) { + o.copts.UserAgent = s + } +} + +// Dial creates a client connection the given target. +func Dial(target string, opts ...DialOption) (*ClientConn, error) { + cc := &ClientConn{ + target: target, + conns: make(map[Address]*addrConn), + } + for _, opt := range opts { + opt(&cc.dopts) + } + + // Set defaults. + if cc.dopts.codec == nil { + cc.dopts.codec = protoCodec{} + } + if cc.dopts.bs == nil { + cc.dopts.bs = DefaultBackoffConfig + } + if cc.dopts.balancer == nil { + cc.dopts.balancer = RoundRobin(nil) + } + + if err := cc.dopts.balancer.Start(target); err != nil { + return nil, err + } + var ( + ok bool + addrs []Address + ) + ch := cc.dopts.balancer.Notify() + if ch == nil { + // There is no name resolver installed. + addrs = append(addrs, Address{Addr: target}) + } else { + addrs, ok = <-ch + if !ok || len(addrs) == 0 { + return nil, errNoAddr + } + } + waitC := make(chan error, 1) + go func() { + for _, a := range addrs { + if err := cc.newAddrConn(a, false); err != nil { + waitC <- err + return + } + } + close(waitC) + }() + var timeoutCh <-chan time.Time + if cc.dopts.timeout > 0 { + timeoutCh = time.After(cc.dopts.timeout) + } + select { + case err := <-waitC: + if err != nil { + cc.Close() + return nil, err + } + case <-timeoutCh: + cc.Close() + return nil, ErrClientConnTimeout + } + if ok { + go cc.lbWatcher() + } + colonPos := strings.LastIndex(target, ":") + if colonPos == -1 { + colonPos = len(target) + } + cc.authority = target[:colonPos] + return cc, nil +} + +// ConnectivityState indicates the state of a client connection. +type ConnectivityState int + +const ( + // Idle indicates the ClientConn is idle. + Idle ConnectivityState = iota + // Connecting indicates the ClienConn is connecting. + Connecting + // Ready indicates the ClientConn is ready for work. + Ready + // TransientFailure indicates the ClientConn has seen a failure but expects to recover. + TransientFailure + // Shutdown indicates the ClientConn has started shutting down. + Shutdown +) + +func (s ConnectivityState) String() string { + switch s { + case Idle: + return "IDLE" + case Connecting: + return "CONNECTING" + case Ready: + return "READY" + case TransientFailure: + return "TRANSIENT_FAILURE" + case Shutdown: + return "SHUTDOWN" + default: + panic(fmt.Sprintf("unknown connectivity state: %d", s)) + } +} + +// ClientConn represents a client connection to an RPC server. +type ClientConn struct { + target string + authority string + dopts dialOptions + + mu sync.RWMutex + conns map[Address]*addrConn +} + +func (cc *ClientConn) lbWatcher() { + for addrs := range cc.dopts.balancer.Notify() { + var ( + add []Address // Addresses need to setup connections. + del []*addrConn // Connections need to tear down. + ) + cc.mu.Lock() + for _, a := range addrs { + if _, ok := cc.conns[a]; !ok { + add = append(add, a) + } + } + for k, c := range cc.conns { + var keep bool + for _, a := range addrs { + if k == a { + keep = true + break + } + } + if !keep { + del = append(del, c) + } + } + cc.mu.Unlock() + for _, a := range add { + cc.newAddrConn(a, true) + } + for _, c := range del { + c.tearDown(errConnDrain) + } + } +} + +func (cc *ClientConn) newAddrConn(addr Address, skipWait bool) error { + ac := &addrConn{ + cc: cc, + addr: addr, + dopts: cc.dopts, + shutdownChan: make(chan struct{}), + } + if EnableTracing { + ac.events = trace.NewEventLog("grpc.ClientConn", ac.addr.Addr) + } + if !ac.dopts.insecure { + if ac.dopts.copts.TransportCredentials == nil { + return errNoTransportSecurity + } + } else { + if ac.dopts.copts.TransportCredentials != nil { + return errCredentialsConflict + } + for _, cd := range ac.dopts.copts.PerRPCCredentials { + if cd.RequireTransportSecurity() { + return errTransportCredentialsMissing + } + } + } + // Insert ac into ac.cc.conns. This needs to be done before any getTransport(...) is called. + ac.cc.mu.Lock() + if ac.cc.conns == nil { + ac.cc.mu.Unlock() + return ErrClientConnClosing + } + stale := ac.cc.conns[ac.addr] + ac.cc.conns[ac.addr] = ac + ac.cc.mu.Unlock() + if stale != nil { + // There is an addrConn alive on ac.addr already. This could be due to + // i) stale's Close is undergoing; + // ii) a buggy Balancer notifies duplicated Addresses. + stale.tearDown(errConnDrain) + } + ac.stateCV = sync.NewCond(&ac.mu) + // skipWait may overwrite the decision in ac.dopts.block. + if ac.dopts.block && !skipWait { + if err := ac.resetTransport(false); err != nil { + ac.tearDown(err) + return err + } + // Start to monitor the error status of transport. + go ac.transportMonitor() + } else { + // Start a goroutine connecting to the server asynchronously. + go func() { + if err := ac.resetTransport(false); err != nil { + grpclog.Printf("Failed to dial %s: %v; please retry.", ac.addr.Addr, err) + ac.tearDown(err) + return + } + ac.transportMonitor() + }() + } + return nil +} + +func (cc *ClientConn) getTransport(ctx context.Context, opts BalancerGetOptions) (transport.ClientTransport, func(), error) { + addr, put, err := cc.dopts.balancer.Get(ctx, opts) + if err != nil { + return nil, nil, toRPCErr(err) + } + cc.mu.RLock() + if cc.conns == nil { + cc.mu.RUnlock() + return nil, nil, toRPCErr(ErrClientConnClosing) + } + ac, ok := cc.conns[addr] + cc.mu.RUnlock() + if !ok { + if put != nil { + put() + } + return nil, nil, Errorf(codes.Internal, "grpc: failed to find the transport to send the rpc") + } + t, err := ac.wait(ctx, !opts.BlockingWait) + if err != nil { + if put != nil { + put() + } + return nil, nil, err + } + return t, put, nil +} + +// Close tears down the ClientConn and all underlying connections. +func (cc *ClientConn) Close() error { + cc.mu.Lock() + if cc.conns == nil { + cc.mu.Unlock() + return ErrClientConnClosing + } + conns := cc.conns + cc.conns = nil + cc.mu.Unlock() + cc.dopts.balancer.Close() + for _, ac := range conns { + ac.tearDown(ErrClientConnClosing) + } + return nil +} + +// addrConn is a network connection to a given address. +type addrConn struct { + cc *ClientConn + addr Address + dopts dialOptions + shutdownChan chan struct{} + events trace.EventLog + + mu sync.Mutex + state ConnectivityState + stateCV *sync.Cond + down func(error) // the handler called when a connection is down. + // ready is closed and becomes nil when a new transport is up or failed + // due to timeout. + ready chan struct{} + transport transport.ClientTransport +} + +// printf records an event in ac's event log, unless ac has been closed. +// REQUIRES ac.mu is held. +func (ac *addrConn) printf(format string, a ...interface{}) { + if ac.events != nil { + ac.events.Printf(format, a...) + } +} + +// errorf records an error in ac's event log, unless ac has been closed. +// REQUIRES ac.mu is held. +func (ac *addrConn) errorf(format string, a ...interface{}) { + if ac.events != nil { + ac.events.Errorf(format, a...) + } +} + +// getState returns the connectivity state of the Conn +func (ac *addrConn) getState() ConnectivityState { + ac.mu.Lock() + defer ac.mu.Unlock() + return ac.state +} + +// waitForStateChange blocks until the state changes to something other than the sourceState. +func (ac *addrConn) waitForStateChange(ctx context.Context, sourceState ConnectivityState) (ConnectivityState, error) { + ac.mu.Lock() + defer ac.mu.Unlock() + if sourceState != ac.state { + return ac.state, nil + } + done := make(chan struct{}) + var err error + go func() { + select { + case <-ctx.Done(): + ac.mu.Lock() + err = ctx.Err() + ac.stateCV.Broadcast() + ac.mu.Unlock() + case <-done: + } + }() + defer close(done) + for sourceState == ac.state { + ac.stateCV.Wait() + if err != nil { + return ac.state, err + } + } + return ac.state, nil +} + +func (ac *addrConn) resetTransport(closeTransport bool) error { + var retries int + for { + ac.mu.Lock() + ac.printf("connecting") + if ac.state == Shutdown { + // ac.tearDown(...) has been invoked. + ac.mu.Unlock() + return errConnClosing + } + if ac.down != nil { + ac.down(downErrorf(false, true, "%v", errNetworkIO)) + ac.down = nil + } + ac.state = Connecting + ac.stateCV.Broadcast() + t := ac.transport + ac.mu.Unlock() + if closeTransport && t != nil { + t.Close() + } + sleepTime := ac.dopts.bs.backoff(retries) + ac.dopts.copts.Timeout = sleepTime + if sleepTime < minConnectTimeout { + ac.dopts.copts.Timeout = minConnectTimeout + } + connectTime := time.Now() + newTransport, err := transport.NewClientTransport(ac.addr.Addr, &ac.dopts.copts) + if err != nil { + ac.mu.Lock() + if ac.state == Shutdown { + // ac.tearDown(...) has been invoked. + ac.mu.Unlock() + return errConnClosing + } + ac.errorf("transient failure: %v", err) + ac.state = TransientFailure + ac.stateCV.Broadcast() + if ac.ready != nil { + close(ac.ready) + ac.ready = nil + } + ac.mu.Unlock() + sleepTime -= time.Since(connectTime) + if sleepTime < 0 { + sleepTime = 0 + } + closeTransport = false + select { + case <-time.After(sleepTime): + case <-ac.shutdownChan: + } + retries++ + grpclog.Printf("grpc: addrConn.resetTransport failed to create client transport: %v; Reconnecting to %q", err, ac.addr) + continue + } + ac.mu.Lock() + ac.printf("ready") + if ac.state == Shutdown { + // ac.tearDown(...) has been invoked. + ac.mu.Unlock() + newTransport.Close() + return errConnClosing + } + ac.state = Ready + ac.stateCV.Broadcast() + ac.transport = newTransport + if ac.ready != nil { + close(ac.ready) + ac.ready = nil + } + ac.down = ac.cc.dopts.balancer.Up(ac.addr) + ac.mu.Unlock() + return nil + } +} + +// Run in a goroutine to track the error in transport and create the +// new transport if an error happens. It returns when the channel is closing. +func (ac *addrConn) transportMonitor() { + for { + ac.mu.Lock() + t := ac.transport + ac.mu.Unlock() + select { + // shutdownChan is needed to detect the teardown when + // the addrConn is idle (i.e., no RPC in flight). + case <-ac.shutdownChan: + return + case <-t.Error(): + ac.mu.Lock() + if ac.state == Shutdown { + // ac.tearDown(...) has been invoked. + ac.mu.Unlock() + return + } + ac.state = TransientFailure + ac.stateCV.Broadcast() + ac.mu.Unlock() + if err := ac.resetTransport(true); err != nil { + ac.mu.Lock() + ac.printf("transport exiting: %v", err) + ac.mu.Unlock() + grpclog.Printf("grpc: addrConn.transportMonitor exits due to: %v", err) + return + } + } + } +} + +// wait blocks until i) the new transport is up or ii) ctx is done or iii) ac is closed or +// iv) transport is in TransientFailure and the RPC is fail-fast. +func (ac *addrConn) wait(ctx context.Context, failFast bool) (transport.ClientTransport, error) { + for { + ac.mu.Lock() + switch { + case ac.state == Shutdown: + ac.mu.Unlock() + return nil, errConnClosing + case ac.state == Ready: + ct := ac.transport + ac.mu.Unlock() + return ct, nil + case ac.state == TransientFailure && failFast: + ac.mu.Unlock() + return nil, Errorf(codes.Unavailable, "grpc: RPC failed fast due to transport failure") + default: + ready := ac.ready + if ready == nil { + ready = make(chan struct{}) + ac.ready = ready + } + ac.mu.Unlock() + select { + case <-ctx.Done(): + return nil, toRPCErr(ctx.Err()) + // Wait until the new transport is ready or failed. + case <-ready: + } + } + } +} + +// tearDown starts to tear down the addrConn. +// TODO(zhaoq): Make this synchronous to avoid unbounded memory consumption in +// some edge cases (e.g., the caller opens and closes many addrConn's in a +// tight loop. +func (ac *addrConn) tearDown(err error) { + ac.mu.Lock() + defer func() { + ac.mu.Unlock() + ac.cc.mu.Lock() + if ac.cc.conns != nil { + delete(ac.cc.conns, ac.addr) + } + ac.cc.mu.Unlock() + }() + if ac.state == Shutdown { + return + } + ac.state = Shutdown + if ac.down != nil { + ac.down(downErrorf(false, false, "%v", err)) + ac.down = nil + } + ac.stateCV.Broadcast() + if ac.events != nil { + ac.events.Finish() + ac.events = nil + } + if ac.ready != nil { + close(ac.ready) + ac.ready = nil + } + if ac.transport != nil { + if err == errConnDrain { + ac.transport.GracefulClose() + } else { + ac.transport.Close() + } + } + if ac.shutdownChan != nil { + close(ac.shutdownChan) + } + return +} diff --git a/ingress/vendor/google.golang.org/grpc/codegen.sh b/ingress/vendor/google.golang.org/grpc/codegen.sh new file mode 100755 index 0000000000..b009488842 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/codegen.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# This script serves as an example to demonstrate how to generate the gRPC-Go +# interface and the related messages from .proto file. +# +# It assumes the installation of i) Google proto buffer compiler at +# https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen +# plugin at https://github.com/golang/protobuf (after 2015-02-20). If you have +# not, please install them first. +# +# We recommend running this script at $GOPATH/src. +# +# If this is not what you need, feel free to make your own scripts. Again, this +# script is for demonstration purpose. +# +proto=$1 +protoc --go_out=plugins=grpc:. $proto diff --git a/ingress/vendor/google.golang.org/grpc/codes/code_string.go b/ingress/vendor/google.golang.org/grpc/codes/code_string.go new file mode 100644 index 0000000000..e6762d0845 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/codes/code_string.go @@ -0,0 +1,16 @@ +// generated by stringer -type=Code; DO NOT EDIT + +package codes + +import "fmt" + +const _Code_name = "OKCanceledUnknownInvalidArgumentDeadlineExceededNotFoundAlreadyExistsPermissionDeniedResourceExhaustedFailedPreconditionAbortedOutOfRangeUnimplementedInternalUnavailableDataLossUnauthenticated" + +var _Code_index = [...]uint8{0, 2, 10, 17, 32, 48, 56, 69, 85, 102, 120, 127, 137, 150, 158, 169, 177, 192} + +func (i Code) String() string { + if i+1 >= Code(len(_Code_index)) { + return fmt.Sprintf("Code(%d)", i) + } + return _Code_name[_Code_index[i]:_Code_index[i+1]] +} diff --git a/ingress/vendor/google.golang.org/grpc/codes/codes.go b/ingress/vendor/google.golang.org/grpc/codes/codes.go new file mode 100644 index 0000000000..37c5b860bd --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/codes/codes.go @@ -0,0 +1,159 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 codes defines the canonical error codes used by gRPC. It is +// consistent across various languages. +package codes + +// A Code is an unsigned 32-bit error code as defined in the gRPC spec. +type Code uint32 + +//go:generate stringer -type=Code + +const ( + // OK is returned on success. + OK Code = 0 + + // Canceled indicates the operation was cancelled (typically by the caller). + Canceled Code = 1 + + // Unknown error. An example of where this error may be returned is + // if a Status value received from another address space belongs to + // an error-space that is not known in this address space. Also + // errors raised by APIs that do not return enough error information + // may be converted to this error. + Unknown Code = 2 + + // InvalidArgument indicates client specified an invalid argument. + // Note that this differs from FailedPrecondition. It indicates arguments + // that are problematic regardless of the state of the system + // (e.g., a malformed file name). + InvalidArgument Code = 3 + + // DeadlineExceeded means operation expired before completion. + // For operations that change the state of the system, this error may be + // returned even if the operation has completed successfully. For + // example, a successful response from a server could have been delayed + // long enough for the deadline to expire. + DeadlineExceeded Code = 4 + + // NotFound means some requested entity (e.g., file or directory) was + // not found. + NotFound Code = 5 + + // AlreadyExists means an attempt to create an entity failed because one + // already exists. + AlreadyExists Code = 6 + + // PermissionDenied indicates the caller does not have permission to + // execute the specified operation. It must not be used for rejections + // caused by exhausting some resource (use ResourceExhausted + // instead for those errors). It must not be + // used if the caller cannot be identified (use Unauthenticated + // instead for those errors). + PermissionDenied Code = 7 + + // Unauthenticated indicates the request does not have valid + // authentication credentials for the operation. + Unauthenticated Code = 16 + + // ResourceExhausted indicates some resource has been exhausted, perhaps + // a per-user quota, or perhaps the entire file system is out of space. + ResourceExhausted Code = 8 + + // FailedPrecondition indicates operation was rejected because the + // system is not in a state required for the operation's execution. + // For example, directory to be deleted may be non-empty, an rmdir + // operation is applied to a non-directory, etc. + // + // A litmus test that may help a service implementor in deciding + // between FailedPrecondition, Aborted, and Unavailable: + // (a) Use Unavailable if the client can retry just the failing call. + // (b) Use Aborted if the client should retry at a higher-level + // (e.g., restarting a read-modify-write sequence). + // (c) Use FailedPrecondition if the client should not retry until + // the system state has been explicitly fixed. E.g., if an "rmdir" + // fails because the directory is non-empty, FailedPrecondition + // should be returned since the client should not retry unless + // they have first fixed up the directory by deleting files from it. + // (d) Use FailedPrecondition if the client performs conditional + // REST Get/Update/Delete on a resource and the resource on the + // server does not match the condition. E.g., conflicting + // read-modify-write on the same resource. + FailedPrecondition Code = 9 + + // Aborted indicates the operation was aborted, typically due to a + // concurrency issue like sequencer check failures, transaction aborts, + // etc. + // + // See litmus test above for deciding between FailedPrecondition, + // Aborted, and Unavailable. + Aborted Code = 10 + + // OutOfRange means operation was attempted past the valid range. + // E.g., seeking or reading past end of file. + // + // Unlike InvalidArgument, this error indicates a problem that may + // be fixed if the system state changes. For example, a 32-bit file + // system will generate InvalidArgument if asked to read at an + // offset that is not in the range [0,2^32-1], but it will generate + // OutOfRange if asked to read from an offset past the current + // file size. + // + // There is a fair bit of overlap between FailedPrecondition and + // OutOfRange. We recommend using OutOfRange (the more specific + // error) when it applies so that callers who are iterating through + // a space can easily look for an OutOfRange error to detect when + // they are done. + OutOfRange Code = 11 + + // Unimplemented indicates operation is not implemented or not + // supported/enabled in this service. + Unimplemented Code = 12 + + // Internal errors. Means some invariants expected by underlying + // system has been broken. If you see one of these errors, + // something is very broken. + Internal Code = 13 + + // Unavailable indicates the service is currently unavailable. + // This is a most likely a transient condition and may be corrected + // by retrying with a backoff. + // + // See litmus test above for deciding between FailedPrecondition, + // Aborted, and Unavailable. + Unavailable Code = 14 + + // DataLoss indicates unrecoverable data loss or corruption. + DataLoss Code = 15 +) diff --git a/ingress/vendor/google.golang.org/grpc/coverage.sh b/ingress/vendor/google.golang.org/grpc/coverage.sh new file mode 100755 index 0000000000..120235374a --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/coverage.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +set -e + +workdir=.cover +profile="$workdir/cover.out" +mode=set +end2endtest="google.golang.org/grpc/test" + +generate_cover_data() { + rm -rf "$workdir" + mkdir "$workdir" + + for pkg in "$@"; do + if [ $pkg == "google.golang.org/grpc" -o $pkg == "google.golang.org/grpc/transport" -o $pkg == "google.golang.org/grpc/metadata" -o $pkg == "google.golang.org/grpc/credentials" ] + then + f="$workdir/$(echo $pkg | tr / -)" + go test -covermode="$mode" -coverprofile="$f.cover" "$pkg" + go test -covermode="$mode" -coverpkg "$pkg" -coverprofile="$f.e2e.cover" "$end2endtest" + fi + done + + echo "mode: $mode" >"$profile" + grep -h -v "^mode:" "$workdir"/*.cover >>"$profile" +} + +show_cover_report() { + go tool cover -${1}="$profile" +} + +push_to_coveralls() { + goveralls -coverprofile="$profile" +} + +generate_cover_data $(go list ./...) +show_cover_report func +case "$1" in +"") + ;; +--html) + show_cover_report html ;; +--coveralls) + push_to_coveralls ;; +*) + echo >&2 "error: invalid option: $1" ;; +esac +rm -rf "$workdir" diff --git a/ingress/vendor/google.golang.org/grpc/credentials/credentials.go b/ingress/vendor/google.golang.org/grpc/credentials/credentials.go new file mode 100644 index 0000000000..b021e1eb7d --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/credentials/credentials.go @@ -0,0 +1,228 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 credentials implements various credentials supported by gRPC library, +// which encapsulate all the state needed by a client to authenticate with a +// server and make various assertions, e.g., about the client's identity, role, +// or whether it is authorized to make a particular call. +package credentials + +import ( + "crypto/tls" + "crypto/x509" + "fmt" + "io/ioutil" + "net" + "strings" + "time" + + "golang.org/x/net/context" +) + +var ( + // alpnProtoStr are the specified application level protocols for gRPC. + alpnProtoStr = []string{"h2"} +) + +// PerRPCCredentials defines the common interface for the credentials which need to +// attach security information to every RPC (e.g., oauth2). +type PerRPCCredentials interface { + // GetRequestMetadata gets the current request metadata, refreshing + // tokens if required. This should be called by the transport layer on + // each request, and the data should be populated in headers or other + // context. uri is the URI of the entry point for the request. When + // supported by the underlying implementation, ctx can be used for + // timeout and cancellation. + // TODO(zhaoq): Define the set of the qualified keys instead of leaving + // it as an arbitrary string. + GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) + // RequireTransportSecurity indicates whether the credentials requires + // transport security. + RequireTransportSecurity() bool +} + +// ProtocolInfo provides information regarding the gRPC wire protocol version, +// security protocol, security protocol version in use, etc. +type ProtocolInfo struct { + // ProtocolVersion is the gRPC wire protocol version. + ProtocolVersion string + // SecurityProtocol is the security protocol in use. + SecurityProtocol string + // SecurityVersion is the security protocol version. + SecurityVersion string +} + +// AuthInfo defines the common interface for the auth information the users are interested in. +type AuthInfo interface { + AuthType() string +} + +// TransportCredentials defines the common interface for all the live gRPC wire +// protocols and supported transport security protocols (e.g., TLS, SSL). +type TransportCredentials interface { + // ClientHandshake does the authentication handshake specified by the corresponding + // authentication protocol on rawConn for clients. It returns the authenticated + // connection and the corresponding auth information about the connection. + ClientHandshake(addr string, rawConn net.Conn, timeout time.Duration) (net.Conn, AuthInfo, error) + // ServerHandshake does the authentication handshake for servers. It returns + // the authenticated connection and the corresponding auth information about + // the connection. + ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) + // Info provides the ProtocolInfo of this TransportCredentials. + Info() ProtocolInfo +} + +// TLSInfo contains the auth information for a TLS authenticated connection. +// It implements the AuthInfo interface. +type TLSInfo struct { + State tls.ConnectionState +} + +// AuthType returns the type of TLSInfo as a string. +func (t TLSInfo) AuthType() string { + return "tls" +} + +// tlsCreds is the credentials required for authenticating a connection using TLS. +type tlsCreds struct { + // TLS configuration + config *tls.Config +} + +func (c tlsCreds) Info() ProtocolInfo { + return ProtocolInfo{ + SecurityProtocol: "tls", + SecurityVersion: "1.2", + } +} + +// GetRequestMetadata returns nil, nil since TLS credentials does not have +// metadata. +func (c *tlsCreds) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) { + return nil, nil +} + +func (c *tlsCreds) RequireTransportSecurity() bool { + return true +} + +type timeoutError struct{} + +func (timeoutError) Error() string { return "credentials: Dial timed out" } +func (timeoutError) Timeout() bool { return true } +func (timeoutError) Temporary() bool { return true } + +func (c *tlsCreds) ClientHandshake(addr string, rawConn net.Conn, timeout time.Duration) (_ net.Conn, _ AuthInfo, err error) { + // borrow some code from tls.DialWithDialer + var errChannel chan error + if timeout != 0 { + errChannel = make(chan error, 2) + time.AfterFunc(timeout, func() { + errChannel <- timeoutError{} + }) + } + // use local cfg to avoid clobbering ServerName if using multiple endpoints + cfg := *c.config + if c.config.ServerName == "" { + colonPos := strings.LastIndex(addr, ":") + if colonPos == -1 { + colonPos = len(addr) + } + cfg.ServerName = addr[:colonPos] + } + conn := tls.Client(rawConn, &cfg) + if timeout == 0 { + err = conn.Handshake() + } else { + go func() { + errChannel <- conn.Handshake() + }() + err = <-errChannel + } + if err != nil { + rawConn.Close() + return nil, nil, err + } + // TODO(zhaoq): Omit the auth info for client now. It is more for + // information than anything else. + return conn, nil, nil +} + +func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) { + conn := tls.Server(rawConn, c.config) + if err := conn.Handshake(); err != nil { + rawConn.Close() + return nil, nil, err + } + return conn, TLSInfo{conn.ConnectionState()}, nil +} + +// NewTLS uses c to construct a TransportCredentials based on TLS. +func NewTLS(c *tls.Config) TransportCredentials { + tc := &tlsCreds{c} + tc.config.NextProtos = alpnProtoStr + return tc +} + +// NewClientTLSFromCert constructs a TLS from the input certificate for client. +func NewClientTLSFromCert(cp *x509.CertPool, serverName string) TransportCredentials { + return NewTLS(&tls.Config{ServerName: serverName, RootCAs: cp}) +} + +// NewClientTLSFromFile constructs a TLS from the input certificate file for client. +func NewClientTLSFromFile(certFile, serverName string) (TransportCredentials, error) { + b, err := ioutil.ReadFile(certFile) + if err != nil { + return nil, err + } + cp := x509.NewCertPool() + if !cp.AppendCertsFromPEM(b) { + return nil, fmt.Errorf("credentials: failed to append certificates") + } + return NewTLS(&tls.Config{ServerName: serverName, RootCAs: cp}), nil +} + +// NewServerTLSFromCert constructs a TLS from the input certificate for server. +func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials { + return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}}) +} + +// NewServerTLSFromFile constructs a TLS from the input certificate file and key +// file for server. +func NewServerTLSFromFile(certFile, keyFile string) (TransportCredentials, error) { + cert, err := tls.LoadX509KeyPair(certFile, keyFile) + if err != nil { + return nil, err + } + return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil +} diff --git a/ingress/vendor/google.golang.org/grpc/doc.go b/ingress/vendor/google.golang.org/grpc/doc.go new file mode 100644 index 0000000000..b4c0e740e9 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/doc.go @@ -0,0 +1,6 @@ +/* +Package grpc implements an RPC system called gRPC. + +See www.grpc.io for more information about gRPC. +*/ +package grpc diff --git a/ingress/vendor/google.golang.org/grpc/grpclog/logger.go b/ingress/vendor/google.golang.org/grpc/grpclog/logger.go new file mode 100644 index 0000000000..2cc09be489 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/grpclog/logger.go @@ -0,0 +1,93 @@ +/* + * + * Copyright 2015, Google Inc. + * 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 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 grpclog defines logging for grpc. +*/ +package grpclog + +import ( + "log" + "os" +) + +// Use golang's standard logger by default. +// Access is not mutex-protected: do not modify except in init() +// functions. +var logger Logger = log.New(os.Stderr, "", log.LstdFlags) + +// Logger mimics golang's standard Logger as an interface. +type Logger interface { + Fatal(args ...interface{}) + Fatalf(format string, args ...interface{}) + Fatalln(args ...interface{}) + Print(args ...interface{}) + Printf(format string, args ...interface{}) + Println(args ...interface{}) +} + +// SetLogger sets the logger that is used in grpc. Call only from +// init() functions. +func SetLogger(l Logger) { + logger = l +} + +// Fatal is equivalent to Print() followed by a call to os.Exit() with a non-zero exit code. +func Fatal(args ...interface{}) { + logger.Fatal(args...) +} + +// Fatalf is equivalent to Printf() followed by a call to os.Exit() with a non-zero exit code. +func Fatalf(format string, args ...interface{}) { + logger.Fatalf(format, args...) +} + +// Fatalln is equivalent to Println() followed by a call to os.Exit()) with a non-zero exit code. +func Fatalln(args ...interface{}) { + logger.Fatalln(args...) +} + +// Print prints to the logger. Arguments are handled in the manner of fmt.Print. +func Print(args ...interface{}) { + logger.Print(args...) +} + +// Printf prints to the logger. Arguments are handled in the manner of fmt.Printf. +func Printf(format string, args ...interface{}) { + logger.Printf(format, args...) +} + +// Println prints to the logger. Arguments are handled in the manner of fmt.Println. +func Println(args ...interface{}) { + logger.Println(args...) +} diff --git a/ingress/vendor/google.golang.org/grpc/interceptor.go b/ingress/vendor/google.golang.org/grpc/interceptor.go new file mode 100644 index 0000000000..588f59e5ab --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/interceptor.go @@ -0,0 +1,74 @@ +/* + * + * Copyright 2016, Google Inc. + * 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 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 grpc + +import ( + "golang.org/x/net/context" +) + +// UnaryServerInfo consists of various information about a unary RPC on +// server side. All per-rpc information may be mutated by the interceptor. +type UnaryServerInfo struct { + // Server is the service implementation the user provides. This is read-only. + Server interface{} + // FullMethod is the full RPC method string, i.e., /package.service/method. + FullMethod string +} + +// UnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal +// execution of a unary RPC. +type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error) + +// UnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info +// contains all the information of this RPC the interceptor can operate on. And handler is the wrapper +// of the service method implementation. It is the responsibility of the interceptor to invoke handler +// to complete the RPC. +type UnaryServerInterceptor func(ctx context.Context, req interface{}, info *UnaryServerInfo, handler UnaryHandler) (resp interface{}, err error) + +// StreamServerInfo consists of various information about a streaming RPC on +// server side. All per-rpc information may be mutated by the interceptor. +type StreamServerInfo struct { + // FullMethod is the full RPC method string, i.e., /package.service/method. + FullMethod string + // IsClientStream indicates whether the RPC is a client streaming RPC. + IsClientStream bool + // IsServerStream indicates whether the RPC is a server streaming RPC. + IsServerStream bool +} + +// StreamServerInterceptor provides a hook to intercept the execution of a streaming RPC on the server. +// info contains all the information of this RPC the interceptor can operate on. And handler is the +// service method implementation. It is the responsibility of the interceptor to invoke handler to +// complete the RPC. +type StreamServerInterceptor func(srv interface{}, ss ServerStream, info *StreamServerInfo, handler StreamHandler) error diff --git a/ingress/vendor/google.golang.org/grpc/internal/internal.go b/ingress/vendor/google.golang.org/grpc/internal/internal.go new file mode 100644 index 0000000000..5489143a85 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/internal/internal.go @@ -0,0 +1,49 @@ +/* + * Copyright 2016, Google Inc. + * 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 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 internal contains gRPC-internal code for testing, to avoid polluting +// the godoc of the top-level grpc package. +package internal + +// TestingCloseConns closes all existing transports but keeps +// grpcServer.lis accepting new connections. +// +// The provided grpcServer must be of type *grpc.Server. It is untyped +// for circular dependency reasons. +var TestingCloseConns func(grpcServer interface{}) + +// TestingUseHandlerImpl enables the http.Handler-based server implementation. +// It must be called before Serve and requires TLS credentials. +// +// The provided grpcServer must be of type *grpc.Server. It is untyped +// for circular dependency reasons. +var TestingUseHandlerImpl func(grpcServer interface{}) diff --git a/ingress/vendor/google.golang.org/grpc/metadata/metadata.go b/ingress/vendor/google.golang.org/grpc/metadata/metadata.go new file mode 100644 index 0000000000..58469ddd3f --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/metadata/metadata.go @@ -0,0 +1,134 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 metadata define the structure of the metadata supported by gRPC library. +package metadata + +import ( + "encoding/base64" + "fmt" + "strings" + + "golang.org/x/net/context" +) + +const ( + binHdrSuffix = "-bin" +) + +// encodeKeyValue encodes key and value qualified for transmission via gRPC. +// Transmitting binary headers violates HTTP/2 spec. +// TODO(zhaoq): Maybe check if k is ASCII also. +func encodeKeyValue(k, v string) (string, string) { + k = strings.ToLower(k) + if strings.HasSuffix(k, binHdrSuffix) { + val := base64.StdEncoding.EncodeToString([]byte(v)) + v = string(val) + } + return k, v +} + +// DecodeKeyValue returns the original key and value corresponding to the +// encoded data in k, v. +func DecodeKeyValue(k, v string) (string, string, error) { + if !strings.HasSuffix(k, binHdrSuffix) { + return k, v, nil + } + val, err := base64.StdEncoding.DecodeString(v) + if err != nil { + return "", "", err + } + return k, string(val), nil +} + +// MD is a mapping from metadata keys to values. Users should use the following +// two convenience functions New and Pairs to generate MD. +type MD map[string][]string + +// New creates a MD from given key-value map. +func New(m map[string]string) MD { + md := MD{} + for k, v := range m { + key, val := encodeKeyValue(k, v) + md[key] = append(md[key], val) + } + return md +} + +// Pairs returns an MD formed by the mapping of key, value ... +// Pairs panics if len(kv) is odd. +func Pairs(kv ...string) MD { + if len(kv)%2 == 1 { + panic(fmt.Sprintf("metadata: Pairs got the odd number of input pairs for metadata: %d", len(kv))) + } + md := MD{} + var k string + for i, s := range kv { + if i%2 == 0 { + k = s + continue + } + key, val := encodeKeyValue(k, s) + md[key] = append(md[key], val) + } + return md +} + +// Len returns the number of items in md. +func (md MD) Len() int { + return len(md) +} + +// Copy returns a copy of md. +func (md MD) Copy() MD { + out := MD{} + for k, v := range md { + for _, i := range v { + out[k] = append(out[k], i) + } + } + return out +} + +type mdKey struct{} + +// NewContext creates a new context with md attached. +func NewContext(ctx context.Context, md MD) context.Context { + return context.WithValue(ctx, mdKey{}, md) +} + +// FromContext returns the MD in ctx if it exists. +func FromContext(ctx context.Context) (md MD, ok bool) { + md, ok = ctx.Value(mdKey{}).(MD) + return +} diff --git a/ingress/vendor/google.golang.org/grpc/naming/naming.go b/ingress/vendor/google.golang.org/grpc/naming/naming.go new file mode 100644 index 0000000000..c2e0871e6f --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/naming/naming.go @@ -0,0 +1,74 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 naming defines the naming API and related data structures for gRPC. +// The interface is EXPERIMENTAL and may be suject to change. +package naming + +// Operation defines the corresponding operations for a name resolution change. +type Operation uint8 + +const ( + // Add indicates a new address is added. + Add Operation = iota + // Delete indicates an exisiting address is deleted. + Delete +) + +// Update defines a name resolution update. Notice that it is not valid having both +// empty string Addr and nil Metadata in an Update. +type Update struct { + // Op indicates the operation of the update. + Op Operation + // Addr is the updated address. It is empty string if there is no address update. + Addr string + // Metadata is the updated metadata. It is nil if there is no metadata update. + // Metadata is not required for a custom naming implementation. + Metadata interface{} +} + +// Resolver creates a Watcher for a target to track its resolution changes. +type Resolver interface { + // Resolve creates a Watcher for target. + Resolve(target string) (Watcher, error) +} + +// Watcher watches for the updates on the specified target. +type Watcher interface { + // Next blocks until an update or error happens. It may return one or more + // updates. The first call should get the full set of the results. It should + // return an error if and only if Watcher cannot recover. + Next() ([]*Update, error) + // Close closes the Watcher. + Close() +} diff --git a/ingress/vendor/google.golang.org/grpc/peer/peer.go b/ingress/vendor/google.golang.org/grpc/peer/peer.go new file mode 100644 index 0000000000..bfa6205ba9 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/peer/peer.go @@ -0,0 +1,65 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 peer defines various peer information associated with RPCs and +// corresponding utils. +package peer + +import ( + "net" + + "golang.org/x/net/context" + "google.golang.org/grpc/credentials" +) + +// Peer contains the information of the peer for an RPC. +type Peer struct { + // Addr is the peer address. + Addr net.Addr + // AuthInfo is the authentication information of the transport. + // It is nil if there is no transport security being used. + AuthInfo credentials.AuthInfo +} + +type peerKey struct{} + +// NewContext creates a new context with peer information attached. +func NewContext(ctx context.Context, p *Peer) context.Context { + return context.WithValue(ctx, peerKey{}, p) +} + +// FromContext returns the peer information in ctx if it exists. +func FromContext(ctx context.Context) (p *Peer, ok bool) { + p, ok = ctx.Value(peerKey{}).(*Peer) + return +} diff --git a/ingress/vendor/google.golang.org/grpc/rpc_util.go b/ingress/vendor/google.golang.org/grpc/rpc_util.go new file mode 100644 index 0000000000..d628717560 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/rpc_util.go @@ -0,0 +1,449 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 grpc + +import ( + "bytes" + "compress/gzip" + "encoding/binary" + "fmt" + "io" + "io/ioutil" + "math" + "os" + + "github.com/golang/protobuf/proto" + "golang.org/x/net/context" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/transport" +) + +// Codec defines the interface gRPC uses to encode and decode messages. +type Codec interface { + // Marshal returns the wire format of v. + Marshal(v interface{}) ([]byte, error) + // Unmarshal parses the wire format into v. + Unmarshal(data []byte, v interface{}) error + // String returns the name of the Codec implementation. The returned + // string will be used as part of content type in transmission. + String() string +} + +// protoCodec is a Codec implementation with protobuf. It is the default codec for gRPC. +type protoCodec struct{} + +func (protoCodec) Marshal(v interface{}) ([]byte, error) { + return proto.Marshal(v.(proto.Message)) +} + +func (protoCodec) Unmarshal(data []byte, v interface{}) error { + return proto.Unmarshal(data, v.(proto.Message)) +} + +func (protoCodec) String() string { + return "proto" +} + +// Compressor defines the interface gRPC uses to compress a message. +type Compressor interface { + // Do compresses p into w. + Do(w io.Writer, p []byte) error + // Type returns the compression algorithm the Compressor uses. + Type() string +} + +// NewGZIPCompressor creates a Compressor based on GZIP. +func NewGZIPCompressor() Compressor { + return &gzipCompressor{} +} + +type gzipCompressor struct { +} + +func (c *gzipCompressor) Do(w io.Writer, p []byte) error { + z := gzip.NewWriter(w) + if _, err := z.Write(p); err != nil { + return err + } + return z.Close() +} + +func (c *gzipCompressor) Type() string { + return "gzip" +} + +// Decompressor defines the interface gRPC uses to decompress a message. +type Decompressor interface { + // Do reads the data from r and uncompress them. + Do(r io.Reader) ([]byte, error) + // Type returns the compression algorithm the Decompressor uses. + Type() string +} + +type gzipDecompressor struct { +} + +// NewGZIPDecompressor creates a Decompressor based on GZIP. +func NewGZIPDecompressor() Decompressor { + return &gzipDecompressor{} +} + +func (d *gzipDecompressor) Do(r io.Reader) ([]byte, error) { + z, err := gzip.NewReader(r) + if err != nil { + return nil, err + } + defer z.Close() + return ioutil.ReadAll(z) +} + +func (d *gzipDecompressor) Type() string { + return "gzip" +} + +// callInfo contains all related configuration and information about an RPC. +type callInfo struct { + failFast bool + headerMD metadata.MD + trailerMD metadata.MD + traceInfo traceInfo // in trace.go +} + +var defaultCallInfo = callInfo{failFast: true} + +// CallOption configures a Call before it starts or extracts information from +// a Call after it completes. +type CallOption interface { + // before is called before the call is sent to any server. If before + // returns a non-nil error, the RPC fails with that error. + before(*callInfo) error + + // after is called after the call has completed. after cannot return an + // error, so any failures should be reported via output parameters. + after(*callInfo) +} + +type beforeCall func(c *callInfo) error + +func (o beforeCall) before(c *callInfo) error { return o(c) } +func (o beforeCall) after(c *callInfo) {} + +type afterCall func(c *callInfo) + +func (o afterCall) before(c *callInfo) error { return nil } +func (o afterCall) after(c *callInfo) { o(c) } + +// Header returns a CallOptions that retrieves the header metadata +// for a unary RPC. +func Header(md *metadata.MD) CallOption { + return afterCall(func(c *callInfo) { + *md = c.headerMD + }) +} + +// Trailer returns a CallOptions that retrieves the trailer metadata +// for a unary RPC. +func Trailer(md *metadata.MD) CallOption { + return afterCall(func(c *callInfo) { + *md = c.trailerMD + }) +} + +// FailFast configures the action to take when an RPC is attempted on broken +// connections or unreachable servers. If failfast is true, the RPC will fail +// immediately. Otherwise, the RPC client will block the call until a +// connection is available (or the call is canceled or times out) and will retry +// the call if it fails due to a transient error. Please refer to +// https://github.com/grpc/grpc/blob/master/doc/fail_fast.md +func FailFast(failFast bool) CallOption { + return beforeCall(func(c *callInfo) error { + c.failFast = failFast + return nil + }) +} + +// The format of the payload: compressed or not? +type payloadFormat uint8 + +const ( + compressionNone payloadFormat = iota // no compression + compressionMade +) + +// parser reads complete gRPC messages from the underlying reader. +type parser struct { + // r is the underlying reader. + // See the comment on recvMsg for the permissible + // error types. + r io.Reader + + // The header of a gRPC message. Find more detail + // at http://www.grpc.io/docs/guides/wire.html. + header [5]byte +} + +// recvMsg reads a complete gRPC message from the stream. +// +// It returns the message and its payload (compression/encoding) +// format. The caller owns the returned msg memory. +// +// If there is an error, possible values are: +// * io.EOF, when no messages remain +// * io.ErrUnexpectedEOF +// * of type transport.ConnectionError +// * of type transport.StreamError +// No other error values or types must be returned, which also means +// that the underlying io.Reader must not return an incompatible +// error. +func (p *parser) recvMsg() (pf payloadFormat, msg []byte, err error) { + if _, err := io.ReadFull(p.r, p.header[:]); err != nil { + return 0, nil, err + } + + pf = payloadFormat(p.header[0]) + length := binary.BigEndian.Uint32(p.header[1:]) + + if length == 0 { + return pf, nil, nil + } + // TODO(bradfitz,zhaoq): garbage. reuse buffer after proto decoding instead + // of making it for each message: + msg = make([]byte, int(length)) + if _, err := io.ReadFull(p.r, msg); err != nil { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + return 0, nil, err + } + return pf, msg, nil +} + +// encode serializes msg and prepends the message header. If msg is nil, it +// generates the message header of 0 message length. +func encode(c Codec, msg interface{}, cp Compressor, cbuf *bytes.Buffer) ([]byte, error) { + var b []byte + var length uint + if msg != nil { + var err error + // TODO(zhaoq): optimize to reduce memory alloc and copying. + b, err = c.Marshal(msg) + if err != nil { + return nil, err + } + if cp != nil { + if err := cp.Do(cbuf, b); err != nil { + return nil, err + } + b = cbuf.Bytes() + } + length = uint(len(b)) + } + if length > math.MaxUint32 { + return nil, Errorf(codes.InvalidArgument, "grpc: message too large (%d bytes)", length) + } + + const ( + payloadLen = 1 + sizeLen = 4 + ) + + var buf = make([]byte, payloadLen+sizeLen+len(b)) + + // Write payload format + if cp == nil { + buf[0] = byte(compressionNone) + } else { + buf[0] = byte(compressionMade) + } + // Write length of b into buf + binary.BigEndian.PutUint32(buf[1:], uint32(length)) + // Copy encoded msg to buf + copy(buf[5:], b) + + return buf, nil +} + +func checkRecvPayload(pf payloadFormat, recvCompress string, dc Decompressor) error { + switch pf { + case compressionNone: + case compressionMade: + if dc == nil || recvCompress != dc.Type() { + return transport.StreamErrorf(codes.Unimplemented, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress) + } + default: + return transport.StreamErrorf(codes.Internal, "grpc: received unexpected payload format %d", pf) + } + return nil +} + +func recv(p *parser, c Codec, s *transport.Stream, dc Decompressor, m interface{}) error { + pf, d, err := p.recvMsg() + if err != nil { + return err + } + if err := checkRecvPayload(pf, s.RecvCompress(), dc); err != nil { + return err + } + if pf == compressionMade { + d, err = dc.Do(bytes.NewReader(d)) + if err != nil { + return transport.StreamErrorf(codes.Internal, "grpc: failed to decompress the received message %v", err) + } + } + if err := c.Unmarshal(d, m); err != nil { + return transport.StreamErrorf(codes.Internal, "grpc: failed to unmarshal the received message %v", err) + } + return nil +} + +// rpcError defines the status from an RPC. +type rpcError struct { + code codes.Code + desc string +} + +func (e *rpcError) Error() string { + return fmt.Sprintf("rpc error: code = %d desc = %s", e.code, e.desc) +} + +// Code returns the error code for err if it was produced by the rpc system. +// Otherwise, it returns codes.Unknown. +func Code(err error) codes.Code { + if err == nil { + return codes.OK + } + if e, ok := err.(*rpcError); ok { + return e.code + } + return codes.Unknown +} + +// ErrorDesc returns the error description of err if it was produced by the rpc system. +// Otherwise, it returns err.Error() or empty string when err is nil. +func ErrorDesc(err error) string { + if err == nil { + return "" + } + if e, ok := err.(*rpcError); ok { + return e.desc + } + return err.Error() +} + +// Errorf returns an error containing an error code and a description; +// Errorf returns nil if c is OK. +func Errorf(c codes.Code, format string, a ...interface{}) error { + if c == codes.OK { + return nil + } + return &rpcError{ + code: c, + desc: fmt.Sprintf(format, a...), + } +} + +// toRPCErr converts an error into a rpcError. +func toRPCErr(err error) error { + switch e := err.(type) { + case *rpcError: + return err + case transport.StreamError: + return &rpcError{ + code: e.Code, + desc: e.Desc, + } + case transport.ConnectionError: + return &rpcError{ + code: codes.Internal, + desc: e.Desc, + } + default: + switch err { + case context.DeadlineExceeded: + return &rpcError{ + code: codes.DeadlineExceeded, + desc: err.Error(), + } + case context.Canceled: + return &rpcError{ + code: codes.Canceled, + desc: err.Error(), + } + case ErrClientConnClosing: + return &rpcError{ + code: codes.FailedPrecondition, + desc: err.Error(), + } + } + + } + return Errorf(codes.Unknown, "%v", err) +} + +// convertCode converts a standard Go error into its canonical code. Note that +// this is only used to translate the error returned by the server applications. +func convertCode(err error) codes.Code { + switch err { + case nil: + return codes.OK + case io.EOF: + return codes.OutOfRange + case io.ErrClosedPipe, io.ErrNoProgress, io.ErrShortBuffer, io.ErrShortWrite, io.ErrUnexpectedEOF: + return codes.FailedPrecondition + case os.ErrInvalid: + return codes.InvalidArgument + case context.Canceled: + return codes.Canceled + case context.DeadlineExceeded: + return codes.DeadlineExceeded + } + switch { + case os.IsExist(err): + return codes.AlreadyExists + case os.IsNotExist(err): + return codes.NotFound + case os.IsPermission(err): + return codes.PermissionDenied + } + return codes.Unknown +} + +// SupportPackageIsVersion3 is referenced from generated protocol buffer files +// to assert that that code is compatible with this version of the grpc package. +// +// This constant may be renamed in the future if a change in the generated code +// requires a synchronised update of grpc-go and protoc-gen-go. This constant +// should not be referenced from any other code. +const SupportPackageIsVersion3 = true diff --git a/ingress/vendor/google.golang.org/grpc/server.go b/ingress/vendor/google.golang.org/grpc/server.go new file mode 100644 index 0000000000..a2b2b94d48 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/server.go @@ -0,0 +1,837 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 grpc + +import ( + "bytes" + "errors" + "fmt" + "io" + "net" + "net/http" + "reflect" + "runtime" + "strings" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/http2" + "golang.org/x/net/trace" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/transport" +) + +type methodHandler func(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor UnaryServerInterceptor) (interface{}, error) + +// MethodDesc represents an RPC service's method specification. +type MethodDesc struct { + MethodName string + Handler methodHandler +} + +// ServiceDesc represents an RPC service's specification. +type ServiceDesc struct { + ServiceName string + // The pointer to the service interface. Used to check whether the user + // provided implementation satisfies the interface requirements. + HandlerType interface{} + Methods []MethodDesc + Streams []StreamDesc + Metadata interface{} +} + +// service consists of the information of the server serving this service and +// the methods in this service. +type service struct { + server interface{} // the server for service methods + md map[string]*MethodDesc + sd map[string]*StreamDesc + mdata interface{} +} + +// Server is a gRPC server to serve RPC requests. +type Server struct { + opts options + + mu sync.Mutex // guards following + lis map[net.Listener]bool + conns map[io.Closer]bool + m map[string]*service // service name -> service info + events trace.EventLog +} + +type options struct { + creds credentials.TransportCredentials + codec Codec + cp Compressor + dc Decompressor + unaryInt UnaryServerInterceptor + streamInt StreamServerInterceptor + maxConcurrentStreams uint32 + useHandlerImpl bool // use http.Handler-based server +} + +// A ServerOption sets options. +type ServerOption func(*options) + +// CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling. +func CustomCodec(codec Codec) ServerOption { + return func(o *options) { + o.codec = codec + } +} + +// RPCCompressor returns a ServerOption that sets a compressor for outbound message. +func RPCCompressor(cp Compressor) ServerOption { + return func(o *options) { + o.cp = cp + } +} + +// RPCDecompressor returns a ServerOption that sets a decompressor for inbound message. +func RPCDecompressor(dc Decompressor) ServerOption { + return func(o *options) { + o.dc = dc + } +} + +// MaxConcurrentStreams returns a ServerOption that will apply a limit on the number +// of concurrent streams to each ServerTransport. +func MaxConcurrentStreams(n uint32) ServerOption { + return func(o *options) { + o.maxConcurrentStreams = n + } +} + +// Creds returns a ServerOption that sets credentials for server connections. +func Creds(c credentials.TransportCredentials) ServerOption { + return func(o *options) { + o.creds = c + } +} + +// UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the +// server. Only one unary interceptor can be installed. The construction of multiple +// interceptors (e.g., chaining) can be implemented at the caller. +func UnaryInterceptor(i UnaryServerInterceptor) ServerOption { + return func(o *options) { + if o.unaryInt != nil { + panic("The unary server interceptor has been set.") + } + o.unaryInt = i + } +} + +// StreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the +// server. Only one stream interceptor can be installed. +func StreamInterceptor(i StreamServerInterceptor) ServerOption { + return func(o *options) { + if o.streamInt != nil { + panic("The stream server interceptor has been set.") + } + o.streamInt = i + } +} + +// NewServer creates a gRPC server which has no service registered and has not +// started to accept requests yet. +func NewServer(opt ...ServerOption) *Server { + var opts options + for _, o := range opt { + o(&opts) + } + if opts.codec == nil { + // Set the default codec. + opts.codec = protoCodec{} + } + s := &Server{ + lis: make(map[net.Listener]bool), + opts: opts, + conns: make(map[io.Closer]bool), + m: make(map[string]*service), + } + if EnableTracing { + _, file, line, _ := runtime.Caller(1) + s.events = trace.NewEventLog("grpc.Server", fmt.Sprintf("%s:%d", file, line)) + } + return s +} + +// printf records an event in s's event log, unless s has been stopped. +// REQUIRES s.mu is held. +func (s *Server) printf(format string, a ...interface{}) { + if s.events != nil { + s.events.Printf(format, a...) + } +} + +// errorf records an error in s's event log, unless s has been stopped. +// REQUIRES s.mu is held. +func (s *Server) errorf(format string, a ...interface{}) { + if s.events != nil { + s.events.Errorf(format, a...) + } +} + +// RegisterService register a service and its implementation to the gRPC +// server. Called from the IDL generated code. This must be called before +// invoking Serve. +func (s *Server) RegisterService(sd *ServiceDesc, ss interface{}) { + ht := reflect.TypeOf(sd.HandlerType).Elem() + st := reflect.TypeOf(ss) + if !st.Implements(ht) { + grpclog.Fatalf("grpc: Server.RegisterService found the handler of type %v that does not satisfy %v", st, ht) + } + s.register(sd, ss) +} + +func (s *Server) register(sd *ServiceDesc, ss interface{}) { + s.mu.Lock() + defer s.mu.Unlock() + s.printf("RegisterService(%q)", sd.ServiceName) + if _, ok := s.m[sd.ServiceName]; ok { + grpclog.Fatalf("grpc: Server.RegisterService found duplicate service registration for %q", sd.ServiceName) + } + srv := &service{ + server: ss, + md: make(map[string]*MethodDesc), + sd: make(map[string]*StreamDesc), + mdata: sd.Metadata, + } + for i := range sd.Methods { + d := &sd.Methods[i] + srv.md[d.MethodName] = d + } + for i := range sd.Streams { + d := &sd.Streams[i] + srv.sd[d.StreamName] = d + } + s.m[sd.ServiceName] = srv +} + +// MethodInfo contains the information of an RPC including its method name and type. +type MethodInfo struct { + // Name is the method name only, without the service name or package name. + Name string + // IsClientStream indicates whether the RPC is a client streaming RPC. + IsClientStream bool + // IsServerStream indicates whether the RPC is a server streaming RPC. + IsServerStream bool +} + +// ServiceInfo contains unary RPC method info, streaming RPC methid info and metadata for a service. +type ServiceInfo struct { + Methods []MethodInfo + // Metadata is the metadata specified in ServiceDesc when registering service. + Metadata interface{} +} + +// GetServiceInfo returns a map from service names to ServiceInfo. +// Service names include the package names, in the form of .. +func (s *Server) GetServiceInfo() map[string]*ServiceInfo { + ret := make(map[string]*ServiceInfo) + for n, srv := range s.m { + methods := make([]MethodInfo, 0, len(srv.md)+len(srv.sd)) + for m := range srv.md { + methods = append(methods, MethodInfo{ + Name: m, + IsClientStream: false, + IsServerStream: false, + }) + } + for m, d := range srv.sd { + methods = append(methods, MethodInfo{ + Name: m, + IsClientStream: d.ClientStreams, + IsServerStream: d.ServerStreams, + }) + } + + ret[n] = &ServiceInfo{ + Methods: methods, + Metadata: srv.mdata, + } + } + return ret +} + +var ( + // ErrServerStopped indicates that the operation is now illegal because of + // the server being stopped. + ErrServerStopped = errors.New("grpc: the server has been stopped") +) + +func (s *Server) useTransportAuthenticator(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) { + if s.opts.creds == nil { + return rawConn, nil, nil + } + return s.opts.creds.ServerHandshake(rawConn) +} + +// Serve accepts incoming connections on the listener lis, creating a new +// ServerTransport and service goroutine for each. The service goroutines +// read gRPC requests and then call the registered handlers to reply to them. +// Service returns when lis.Accept fails. lis will be closed when +// this method returns. +func (s *Server) Serve(lis net.Listener) error { + s.mu.Lock() + s.printf("serving") + if s.lis == nil { + s.mu.Unlock() + lis.Close() + return ErrServerStopped + } + s.lis[lis] = true + s.mu.Unlock() + defer func() { + s.mu.Lock() + if s.lis != nil && s.lis[lis] { + lis.Close() + delete(s.lis, lis) + } + s.mu.Unlock() + }() + for { + rawConn, err := lis.Accept() + if err != nil { + s.mu.Lock() + s.printf("done serving; Accept = %v", err) + s.mu.Unlock() + return err + } + // Start a new goroutine to deal with rawConn + // so we don't stall this Accept loop goroutine. + go s.handleRawConn(rawConn) + } +} + +// handleRawConn is run in its own goroutine and handles a just-accepted +// connection that has not had any I/O performed on it yet. +func (s *Server) handleRawConn(rawConn net.Conn) { + conn, authInfo, err := s.useTransportAuthenticator(rawConn) + if err != nil { + s.mu.Lock() + s.errorf("ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err) + s.mu.Unlock() + grpclog.Printf("grpc: Server.Serve failed to complete security handshake from %q: %v", rawConn.RemoteAddr(), err) + rawConn.Close() + return + } + + s.mu.Lock() + if s.conns == nil { + s.mu.Unlock() + conn.Close() + return + } + s.mu.Unlock() + + if s.opts.useHandlerImpl { + s.serveUsingHandler(conn) + } else { + s.serveNewHTTP2Transport(conn, authInfo) + } +} + +// serveNewHTTP2Transport sets up a new http/2 transport (using the +// gRPC http2 server transport in transport/http2_server.go) and +// serves streams on it. +// This is run in its own goroutine (it does network I/O in +// transport.NewServerTransport). +func (s *Server) serveNewHTTP2Transport(c net.Conn, authInfo credentials.AuthInfo) { + st, err := transport.NewServerTransport("http2", c, s.opts.maxConcurrentStreams, authInfo) + if err != nil { + s.mu.Lock() + s.errorf("NewServerTransport(%q) failed: %v", c.RemoteAddr(), err) + s.mu.Unlock() + c.Close() + grpclog.Println("grpc: Server.Serve failed to create ServerTransport: ", err) + return + } + if !s.addConn(st) { + st.Close() + return + } + s.serveStreams(st) +} + +func (s *Server) serveStreams(st transport.ServerTransport) { + defer s.removeConn(st) + defer st.Close() + var wg sync.WaitGroup + st.HandleStreams(func(stream *transport.Stream) { + wg.Add(1) + go func() { + defer wg.Done() + s.handleStream(st, stream, s.traceInfo(st, stream)) + }() + }) + wg.Wait() +} + +var _ http.Handler = (*Server)(nil) + +// serveUsingHandler is called from handleRawConn when s is configured +// to handle requests via the http.Handler interface. It sets up a +// net/http.Server to handle the just-accepted conn. The http.Server +// is configured to route all incoming requests (all HTTP/2 streams) +// to ServeHTTP, which creates a new ServerTransport for each stream. +// serveUsingHandler blocks until conn closes. +// +// This codepath is only used when Server.TestingUseHandlerImpl has +// been configured. This lets the end2end tests exercise the ServeHTTP +// method as one of the environment types. +// +// conn is the *tls.Conn that's already been authenticated. +func (s *Server) serveUsingHandler(conn net.Conn) { + if !s.addConn(conn) { + conn.Close() + return + } + defer s.removeConn(conn) + h2s := &http2.Server{ + MaxConcurrentStreams: s.opts.maxConcurrentStreams, + } + h2s.ServeConn(conn, &http2.ServeConnOpts{ + Handler: s, + }) +} + +func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { + st, err := transport.NewServerHandlerTransport(w, r) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + if !s.addConn(st) { + st.Close() + return + } + defer s.removeConn(st) + s.serveStreams(st) +} + +// traceInfo returns a traceInfo and associates it with stream, if tracing is enabled. +// If tracing is not enabled, it returns nil. +func (s *Server) traceInfo(st transport.ServerTransport, stream *transport.Stream) (trInfo *traceInfo) { + if !EnableTracing { + return nil + } + trInfo = &traceInfo{ + tr: trace.New("grpc.Recv."+methodFamily(stream.Method()), stream.Method()), + } + trInfo.firstLine.client = false + trInfo.firstLine.remoteAddr = st.RemoteAddr() + stream.TraceContext(trInfo.tr) + if dl, ok := stream.Context().Deadline(); ok { + trInfo.firstLine.deadline = dl.Sub(time.Now()) + } + return trInfo +} + +func (s *Server) addConn(c io.Closer) bool { + s.mu.Lock() + defer s.mu.Unlock() + if s.conns == nil { + return false + } + s.conns[c] = true + return true +} + +func (s *Server) removeConn(c io.Closer) { + s.mu.Lock() + defer s.mu.Unlock() + if s.conns != nil { + delete(s.conns, c) + } +} + +func (s *Server) sendResponse(t transport.ServerTransport, stream *transport.Stream, msg interface{}, cp Compressor, opts *transport.Options) error { + var cbuf *bytes.Buffer + if cp != nil { + cbuf = new(bytes.Buffer) + } + p, err := encode(s.opts.codec, msg, cp, cbuf) + if err != nil { + // This typically indicates a fatal issue (e.g., memory + // corruption or hardware faults) the application program + // cannot handle. + // + // TODO(zhaoq): There exist other options also such as only closing the + // faulty stream locally and remotely (Other streams can keep going). Find + // the optimal option. + grpclog.Fatalf("grpc: Server failed to encode response %v", err) + } + return t.Write(stream, p, opts) +} + +func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, md *MethodDesc, trInfo *traceInfo) (err error) { + if trInfo != nil { + defer trInfo.tr.Finish() + trInfo.firstLine.client = false + trInfo.tr.LazyLog(&trInfo.firstLine, false) + defer func() { + if err != nil && err != io.EOF { + trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + trInfo.tr.SetError() + } + }() + } + if s.opts.cp != nil { + // NOTE: this needs to be ahead of all handling, https://github.com/grpc/grpc-go/issues/686. + stream.SetSendCompress(s.opts.cp.Type()) + } + p := &parser{r: stream} + for { + pf, req, err := p.recvMsg() + if err == io.EOF { + // The entire stream is done (for unary RPC only). + return err + } + if err == io.ErrUnexpectedEOF { + err = transport.StreamError{Code: codes.Internal, Desc: "io.ErrUnexpectedEOF"} + } + if err != nil { + switch err := err.(type) { + case transport.ConnectionError: + // Nothing to do here. + case transport.StreamError: + if err := t.WriteStatus(stream, err.Code, err.Desc); err != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", err) + } + default: + panic(fmt.Sprintf("grpc: Unexpected error (%T) from recvMsg: %v", err, err)) + } + return err + } + + if err := checkRecvPayload(pf, stream.RecvCompress(), s.opts.dc); err != nil { + switch err := err.(type) { + case transport.StreamError: + if err := t.WriteStatus(stream, err.Code, err.Desc); err != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", err) + } + default: + if err := t.WriteStatus(stream, codes.Internal, err.Error()); err != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", err) + } + + } + return err + } + statusCode := codes.OK + statusDesc := "" + df := func(v interface{}) error { + if pf == compressionMade { + var err error + req, err = s.opts.dc.Do(bytes.NewReader(req)) + if err != nil { + if err := t.WriteStatus(stream, codes.Internal, err.Error()); err != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", err) + } + return err + } + } + if err := s.opts.codec.Unmarshal(req, v); err != nil { + return err + } + if trInfo != nil { + trInfo.tr.LazyLog(&payload{sent: false, msg: v}, true) + } + return nil + } + reply, appErr := md.Handler(srv.server, stream.Context(), df, s.opts.unaryInt) + if appErr != nil { + if err, ok := appErr.(*rpcError); ok { + statusCode = err.code + statusDesc = err.desc + } else { + statusCode = convertCode(appErr) + statusDesc = appErr.Error() + } + if trInfo != nil && statusCode != codes.OK { + trInfo.tr.LazyLog(stringer(statusDesc), true) + trInfo.tr.SetError() + } + if err := t.WriteStatus(stream, statusCode, statusDesc); err != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status: %v", err) + return err + } + return nil + } + if trInfo != nil { + trInfo.tr.LazyLog(stringer("OK"), false) + } + opts := &transport.Options{ + Last: true, + Delay: false, + } + if err := s.sendResponse(t, stream, reply, s.opts.cp, opts); err != nil { + switch err := err.(type) { + case transport.ConnectionError: + // Nothing to do here. + case transport.StreamError: + statusCode = err.Code + statusDesc = err.Desc + default: + statusCode = codes.Unknown + statusDesc = err.Error() + } + return err + } + if trInfo != nil { + trInfo.tr.LazyLog(&payload{sent: true, msg: reply}, true) + } + return t.WriteStatus(stream, statusCode, statusDesc) + } +} + +func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, sd *StreamDesc, trInfo *traceInfo) (err error) { + if s.opts.cp != nil { + stream.SetSendCompress(s.opts.cp.Type()) + } + ss := &serverStream{ + t: t, + s: stream, + p: &parser{r: stream}, + codec: s.opts.codec, + cp: s.opts.cp, + dc: s.opts.dc, + trInfo: trInfo, + } + if ss.cp != nil { + ss.cbuf = new(bytes.Buffer) + } + if trInfo != nil { + trInfo.tr.LazyLog(&trInfo.firstLine, false) + defer func() { + ss.mu.Lock() + if err != nil && err != io.EOF { + ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + ss.trInfo.tr.SetError() + } + ss.trInfo.tr.Finish() + ss.trInfo.tr = nil + ss.mu.Unlock() + }() + } + var appErr error + if s.opts.streamInt == nil { + appErr = sd.Handler(srv.server, ss) + } else { + info := &StreamServerInfo{ + FullMethod: stream.Method(), + IsClientStream: sd.ClientStreams, + IsServerStream: sd.ServerStreams, + } + appErr = s.opts.streamInt(srv.server, ss, info, sd.Handler) + } + if appErr != nil { + if err, ok := appErr.(*rpcError); ok { + ss.statusCode = err.code + ss.statusDesc = err.desc + } else if err, ok := appErr.(transport.StreamError); ok { + ss.statusCode = err.Code + ss.statusDesc = err.Desc + } else { + ss.statusCode = convertCode(appErr) + ss.statusDesc = appErr.Error() + } + } + if trInfo != nil { + ss.mu.Lock() + if ss.statusCode != codes.OK { + ss.trInfo.tr.LazyLog(stringer(ss.statusDesc), true) + ss.trInfo.tr.SetError() + } else { + ss.trInfo.tr.LazyLog(stringer("OK"), false) + } + ss.mu.Unlock() + } + return t.WriteStatus(ss.s, ss.statusCode, ss.statusDesc) + +} + +func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Stream, trInfo *traceInfo) { + sm := stream.Method() + if sm != "" && sm[0] == '/' { + sm = sm[1:] + } + pos := strings.LastIndex(sm, "/") + if pos == -1 { + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"Malformed method name %q", []interface{}{sm}}, true) + trInfo.tr.SetError() + } + if err := t.WriteStatus(stream, codes.InvalidArgument, fmt.Sprintf("malformed method name: %q", stream.Method())); err != nil { + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + trInfo.tr.SetError() + } + grpclog.Printf("grpc: Server.handleStream failed to write status: %v", err) + } + if trInfo != nil { + trInfo.tr.Finish() + } + return + } + service := sm[:pos] + method := sm[pos+1:] + srv, ok := s.m[service] + if !ok { + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"Unknown service %v", []interface{}{service}}, true) + trInfo.tr.SetError() + } + if err := t.WriteStatus(stream, codes.Unimplemented, fmt.Sprintf("unknown service %v", service)); err != nil { + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + trInfo.tr.SetError() + } + grpclog.Printf("grpc: Server.handleStream failed to write status: %v", err) + } + if trInfo != nil { + trInfo.tr.Finish() + } + return + } + // Unary RPC or Streaming RPC? + if md, ok := srv.md[method]; ok { + s.processUnaryRPC(t, stream, srv, md, trInfo) + return + } + if sd, ok := srv.sd[method]; ok { + s.processStreamingRPC(t, stream, srv, sd, trInfo) + return + } + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"Unknown method %v", []interface{}{method}}, true) + trInfo.tr.SetError() + } + if err := t.WriteStatus(stream, codes.Unimplemented, fmt.Sprintf("unknown method %v", method)); err != nil { + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + trInfo.tr.SetError() + } + grpclog.Printf("grpc: Server.handleStream failed to write status: %v", err) + } + if trInfo != nil { + trInfo.tr.Finish() + } +} + +// Stop stops the gRPC server. It immediately closes all open +// connections and listeners. +// It cancels all active RPCs on the server side and the corresponding +// pending RPCs on the client side will get notified by connection +// errors. +func (s *Server) Stop() { + s.mu.Lock() + listeners := s.lis + s.lis = nil + cs := s.conns + s.conns = nil + s.mu.Unlock() + + for lis := range listeners { + lis.Close() + } + for c := range cs { + c.Close() + } + + s.mu.Lock() + if s.events != nil { + s.events.Finish() + s.events = nil + } + s.mu.Unlock() +} + +func init() { + internal.TestingCloseConns = func(arg interface{}) { + arg.(*Server).testingCloseConns() + } + internal.TestingUseHandlerImpl = func(arg interface{}) { + arg.(*Server).opts.useHandlerImpl = true + } +} + +// testingCloseConns closes all existing transports but keeps s.lis +// accepting new connections. +func (s *Server) testingCloseConns() { + s.mu.Lock() + for c := range s.conns { + c.Close() + delete(s.conns, c) + } + s.mu.Unlock() +} + +// SendHeader sends header metadata. It may be called at most once from a unary +// RPC handler. The ctx is the RPC handler's Context or one derived from it. +func SendHeader(ctx context.Context, md metadata.MD) error { + if md.Len() == 0 { + return nil + } + stream, ok := transport.StreamFromContext(ctx) + if !ok { + return fmt.Errorf("grpc: failed to fetch the stream from the context %v", ctx) + } + t := stream.ServerTransport() + if t == nil { + grpclog.Fatalf("grpc: SendHeader: %v has no ServerTransport to send header metadata.", stream) + } + return t.WriteHeader(stream, md) +} + +// SetTrailer sets the trailer metadata that will be sent when an RPC returns. +// It may be called at most once from a unary RPC handler. The ctx is the RPC +// handler's Context or one derived from it. +func SetTrailer(ctx context.Context, md metadata.MD) error { + if md.Len() == 0 { + return nil + } + stream, ok := transport.StreamFromContext(ctx) + if !ok { + return fmt.Errorf("grpc: failed to fetch the stream from the context %v", ctx) + } + return stream.SetTrailer(md) +} diff --git a/ingress/vendor/google.golang.org/grpc/stream.go b/ingress/vendor/google.golang.org/grpc/stream.go new file mode 100644 index 0000000000..7a3bef511b --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/stream.go @@ -0,0 +1,462 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 grpc + +import ( + "bytes" + "errors" + "io" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/trace" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/transport" +) + +// StreamHandler defines the handler called by gRPC server to complete the +// execution of a streaming RPC. +type StreamHandler func(srv interface{}, stream ServerStream) error + +// StreamDesc represents a streaming RPC service's method specification. +type StreamDesc struct { + StreamName string + Handler StreamHandler + + // At least one of these is true. + ServerStreams bool + ClientStreams bool +} + +// Stream defines the common interface a client or server stream has to satisfy. +type Stream interface { + // Context returns the context for this stream. + Context() context.Context + // SendMsg blocks until it sends m, the stream is done or the stream + // breaks. + // On error, it aborts the stream and returns an RPC status on client + // side. On server side, it simply returns the error to the caller. + // SendMsg is called by generated code. Also Users can call SendMsg + // directly when it is really needed in their use cases. + SendMsg(m interface{}) error + // RecvMsg blocks until it receives a message or the stream is + // done. On client side, it returns io.EOF when the stream is done. On + // any other error, it aborts the stream and returns an RPC status. On + // server side, it simply returns the error to the caller. + RecvMsg(m interface{}) error +} + +// ClientStream defines the interface a client stream has to satisfy. +type ClientStream interface { + // Header returns the header metadata received from the server if there + // is any. It blocks if the metadata is not ready to read. + Header() (metadata.MD, error) + // Trailer returns the trailer metadata from the server. It must be called + // after stream.Recv() returns non-nil error (including io.EOF) for + // bi-directional streaming and server streaming or stream.CloseAndRecv() + // returns for client streaming in order to receive trailer metadata if + // present. Otherwise, it could returns an empty MD even though trailer + // is present. + Trailer() metadata.MD + // CloseSend closes the send direction of the stream. It closes the stream + // when non-nil error is met. + CloseSend() error + Stream +} + +// NewClientStream creates a new Stream for the client side. This is called +// by generated code. +func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error) { + var ( + t transport.ClientTransport + s *transport.Stream + err error + put func() + ) + c := defaultCallInfo + for _, o := range opts { + if err := o.before(&c); err != nil { + return nil, toRPCErr(err) + } + } + callHdr := &transport.CallHdr{ + Host: cc.authority, + Method: method, + Flush: desc.ServerStreams && desc.ClientStreams, + } + if cc.dopts.cp != nil { + callHdr.SendCompress = cc.dopts.cp.Type() + } + cs := &clientStream{ + opts: opts, + c: c, + desc: desc, + codec: cc.dopts.codec, + cp: cc.dopts.cp, + dc: cc.dopts.dc, + tracing: EnableTracing, + } + if cc.dopts.cp != nil { + callHdr.SendCompress = cc.dopts.cp.Type() + cs.cbuf = new(bytes.Buffer) + } + if cs.tracing { + cs.trInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method) + cs.trInfo.firstLine.client = true + if deadline, ok := ctx.Deadline(); ok { + cs.trInfo.firstLine.deadline = deadline.Sub(time.Now()) + } + cs.trInfo.tr.LazyLog(&cs.trInfo.firstLine, false) + ctx = trace.NewContext(ctx, cs.trInfo.tr) + } + gopts := BalancerGetOptions{ + BlockingWait: !c.failFast, + } + for { + t, put, err = cc.getTransport(ctx, gopts) + if err != nil { + // TODO(zhaoq): Probably revisit the error handling. + if _, ok := err.(*rpcError); ok { + return nil, err + } + if err == errConnClosing { + if c.failFast { + return nil, Errorf(codes.Unavailable, "%v", errConnClosing) + } + continue + } + // All the other errors are treated as Internal errors. + return nil, Errorf(codes.Internal, "%v", err) + } + + s, err = t.NewStream(ctx, callHdr) + if err != nil { + if put != nil { + put() + put = nil + } + if _, ok := err.(transport.ConnectionError); ok { + if c.failFast { + cs.finish(err) + return nil, toRPCErr(err) + } + continue + } + return nil, toRPCErr(err) + } + break + } + cs.put = put + cs.t = t + cs.s = s + cs.p = &parser{r: s} + // Listen on ctx.Done() to detect cancellation when there is no pending + // I/O operations on this stream. + go func() { + select { + case <-t.Error(): + // Incur transport error, simply exit. + case <-s.Context().Done(): + err := s.Context().Err() + cs.finish(err) + cs.closeTransportStream(transport.ContextErr(err)) + } + }() + return cs, nil +} + +// clientStream implements a client side Stream. +type clientStream struct { + opts []CallOption + c callInfo + t transport.ClientTransport + s *transport.Stream + p *parser + desc *StreamDesc + codec Codec + cp Compressor + cbuf *bytes.Buffer + dc Decompressor + + tracing bool // set to EnableTracing when the clientStream is created. + + mu sync.Mutex + put func() + closed bool + // trInfo.tr is set when the clientStream is created (if EnableTracing is true), + // and is set to nil when the clientStream's finish method is called. + trInfo traceInfo +} + +func (cs *clientStream) Context() context.Context { + return cs.s.Context() +} + +func (cs *clientStream) Header() (metadata.MD, error) { + m, err := cs.s.Header() + if err != nil { + if _, ok := err.(transport.ConnectionError); !ok { + cs.closeTransportStream(err) + } + } + return m, err +} + +func (cs *clientStream) Trailer() metadata.MD { + return cs.s.Trailer() +} + +func (cs *clientStream) SendMsg(m interface{}) (err error) { + if cs.tracing { + cs.mu.Lock() + if cs.trInfo.tr != nil { + cs.trInfo.tr.LazyLog(&payload{sent: true, msg: m}, true) + } + cs.mu.Unlock() + } + defer func() { + if err != nil { + cs.finish(err) + } + if err == nil || err == io.EOF { + return + } + if _, ok := err.(transport.ConnectionError); !ok { + cs.closeTransportStream(err) + } + err = toRPCErr(err) + }() + out, err := encode(cs.codec, m, cs.cp, cs.cbuf) + defer func() { + if cs.cbuf != nil { + cs.cbuf.Reset() + } + }() + if err != nil { + return transport.StreamErrorf(codes.Internal, "grpc: %v", err) + } + return cs.t.Write(cs.s, out, &transport.Options{Last: false}) +} + +func (cs *clientStream) RecvMsg(m interface{}) (err error) { + err = recv(cs.p, cs.codec, cs.s, cs.dc, m) + defer func() { + // err != nil indicates the termination of the stream. + if err != nil { + cs.finish(err) + } + }() + if err == nil { + if cs.tracing { + cs.mu.Lock() + if cs.trInfo.tr != nil { + cs.trInfo.tr.LazyLog(&payload{sent: false, msg: m}, true) + } + cs.mu.Unlock() + } + if !cs.desc.ClientStreams || cs.desc.ServerStreams { + return + } + // Special handling for client streaming rpc. + err = recv(cs.p, cs.codec, cs.s, cs.dc, m) + cs.closeTransportStream(err) + if err == nil { + return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) + } + if err == io.EOF { + if cs.s.StatusCode() == codes.OK { + cs.finish(err) + return nil + } + return Errorf(cs.s.StatusCode(), "%s", cs.s.StatusDesc()) + } + return toRPCErr(err) + } + if _, ok := err.(transport.ConnectionError); !ok { + cs.closeTransportStream(err) + } + if err == io.EOF { + if cs.s.StatusCode() == codes.OK { + // Returns io.EOF to indicate the end of the stream. + return + } + return Errorf(cs.s.StatusCode(), "%s", cs.s.StatusDesc()) + } + return toRPCErr(err) +} + +func (cs *clientStream) CloseSend() (err error) { + err = cs.t.Write(cs.s, nil, &transport.Options{Last: true}) + defer func() { + if err != nil { + cs.finish(err) + } + }() + if err == nil || err == io.EOF { + return + } + if _, ok := err.(transport.ConnectionError); !ok { + cs.closeTransportStream(err) + } + err = toRPCErr(err) + return +} + +func (cs *clientStream) closeTransportStream(err error) { + cs.mu.Lock() + if cs.closed { + cs.mu.Unlock() + return + } + cs.closed = true + cs.mu.Unlock() + cs.t.CloseStream(cs.s, err) +} + +func (cs *clientStream) finish(err error) { + cs.mu.Lock() + defer cs.mu.Unlock() + for _, o := range cs.opts { + o.after(&cs.c) + } + if cs.put != nil { + cs.put() + cs.put = nil + } + if !cs.tracing { + return + } + if cs.trInfo.tr != nil { + if err == nil || err == io.EOF { + cs.trInfo.tr.LazyPrintf("RPC: [OK]") + } else { + cs.trInfo.tr.LazyPrintf("RPC: [%v]", err) + cs.trInfo.tr.SetError() + } + cs.trInfo.tr.Finish() + cs.trInfo.tr = nil + } +} + +// ServerStream defines the interface a server stream has to satisfy. +type ServerStream interface { + // SendHeader sends the header metadata. It should not be called + // after SendProto. It fails if called multiple times or if + // called after SendProto. + SendHeader(metadata.MD) error + // SetTrailer sets the trailer metadata which will be sent with the + // RPC status. + SetTrailer(metadata.MD) + Stream +} + +// serverStream implements a server side Stream. +type serverStream struct { + t transport.ServerTransport + s *transport.Stream + p *parser + codec Codec + cp Compressor + dc Decompressor + cbuf *bytes.Buffer + statusCode codes.Code + statusDesc string + trInfo *traceInfo + + mu sync.Mutex // protects trInfo.tr after the service handler runs. +} + +func (ss *serverStream) Context() context.Context { + return ss.s.Context() +} + +func (ss *serverStream) SendHeader(md metadata.MD) error { + return ss.t.WriteHeader(ss.s, md) +} + +func (ss *serverStream) SetTrailer(md metadata.MD) { + if md.Len() == 0 { + return + } + ss.s.SetTrailer(md) + return +} + +func (ss *serverStream) SendMsg(m interface{}) (err error) { + defer func() { + if ss.trInfo != nil { + ss.mu.Lock() + if ss.trInfo.tr != nil { + if err == nil { + ss.trInfo.tr.LazyLog(&payload{sent: true, msg: m}, true) + } else { + ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + ss.trInfo.tr.SetError() + } + } + ss.mu.Unlock() + } + }() + out, err := encode(ss.codec, m, ss.cp, ss.cbuf) + defer func() { + if ss.cbuf != nil { + ss.cbuf.Reset() + } + }() + if err != nil { + err = transport.StreamErrorf(codes.Internal, "grpc: %v", err) + return err + } + return ss.t.Write(ss.s, out, &transport.Options{Last: false}) +} + +func (ss *serverStream) RecvMsg(m interface{}) (err error) { + defer func() { + if ss.trInfo != nil { + ss.mu.Lock() + if ss.trInfo.tr != nil { + if err == nil { + ss.trInfo.tr.LazyLog(&payload{sent: false, msg: m}, true) + } else if err != io.EOF { + ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + ss.trInfo.tr.SetError() + } + } + ss.mu.Unlock() + } + }() + return recv(ss.p, ss.codec, ss.s, ss.dc, m) +} diff --git a/ingress/vendor/google.golang.org/grpc/trace.go b/ingress/vendor/google.golang.org/grpc/trace.go new file mode 100644 index 0000000000..f6747e1dfa --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/trace.go @@ -0,0 +1,119 @@ +/* + * + * Copyright 2015, Google Inc. + * 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 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 grpc + +import ( + "bytes" + "fmt" + "io" + "net" + "strings" + "time" + + "golang.org/x/net/trace" +) + +// EnableTracing controls whether to trace RPCs using the golang.org/x/net/trace package. +// This should only be set before any RPCs are sent or received by this program. +var EnableTracing = true + +// methodFamily returns the trace family for the given method. +// It turns "/pkg.Service/GetFoo" into "pkg.Service". +func methodFamily(m string) string { + m = strings.TrimPrefix(m, "/") // remove leading slash + if i := strings.Index(m, "/"); i >= 0 { + m = m[:i] // remove everything from second slash + } + if i := strings.LastIndex(m, "."); i >= 0 { + m = m[i+1:] // cut down to last dotted component + } + return m +} + +// traceInfo contains tracing information for an RPC. +type traceInfo struct { + tr trace.Trace + firstLine firstLine +} + +// firstLine is the first line of an RPC trace. +type firstLine struct { + client bool // whether this is a client (outgoing) RPC + remoteAddr net.Addr + deadline time.Duration // may be zero +} + +func (f *firstLine) String() string { + var line bytes.Buffer + io.WriteString(&line, "RPC: ") + if f.client { + io.WriteString(&line, "to") + } else { + io.WriteString(&line, "from") + } + fmt.Fprintf(&line, " %v deadline:", f.remoteAddr) + if f.deadline != 0 { + fmt.Fprint(&line, f.deadline) + } else { + io.WriteString(&line, "none") + } + return line.String() +} + +// payload represents an RPC request or response payload. +type payload struct { + sent bool // whether this is an outgoing payload + msg interface{} // e.g. a proto.Message + // TODO(dsymonds): add stringifying info to codec, and limit how much we hold here? +} + +func (p payload) String() string { + if p.sent { + return fmt.Sprintf("sent: %v", p.msg) + } + return fmt.Sprintf("recv: %v", p.msg) +} + +type fmtStringer struct { + format string + a []interface{} +} + +func (f *fmtStringer) String() string { + return fmt.Sprintf(f.format, f.a...) +} + +type stringer string + +func (s stringer) String() string { return string(s) } diff --git a/ingress/vendor/google.golang.org/grpc/transport/control.go b/ingress/vendor/google.golang.org/grpc/transport/control.go new file mode 100644 index 0000000000..7e9bdf3350 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/transport/control.go @@ -0,0 +1,210 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 transport + +import ( + "fmt" + "sync" + + "golang.org/x/net/http2" +) + +const ( + // The default value of flow control window size in HTTP2 spec. + defaultWindowSize = 65535 + // The initial window size for flow control. + initialWindowSize = defaultWindowSize // for an RPC + initialConnWindowSize = defaultWindowSize * 16 // for a connection +) + +// The following defines various control items which could flow through +// the control buffer of transport. They represent different aspects of +// control tasks, e.g., flow control, settings, streaming resetting, etc. +type windowUpdate struct { + streamID uint32 + increment uint32 +} + +func (*windowUpdate) item() {} + +type settings struct { + ack bool + ss []http2.Setting +} + +func (*settings) item() {} + +type resetStream struct { + streamID uint32 + code http2.ErrCode +} + +func (*resetStream) item() {} + +type flushIO struct { +} + +func (*flushIO) item() {} + +type ping struct { + ack bool + data [8]byte +} + +func (*ping) item() {} + +// quotaPool is a pool which accumulates the quota and sends it to acquire() +// when it is available. +type quotaPool struct { + c chan int + + mu sync.Mutex + quota int +} + +// newQuotaPool creates a quotaPool which has quota q available to consume. +func newQuotaPool(q int) *quotaPool { + qb := "aPool{ + c: make(chan int, 1), + } + if q > 0 { + qb.c <- q + } else { + qb.quota = q + } + return qb +} + +// add adds n to the available quota and tries to send it on acquire. +func (qb *quotaPool) add(n int) { + qb.mu.Lock() + defer qb.mu.Unlock() + qb.quota += n + if qb.quota <= 0 { + return + } + select { + case qb.c <- qb.quota: + qb.quota = 0 + default: + } +} + +// cancel cancels the pending quota sent on acquire, if any. +func (qb *quotaPool) cancel() { + qb.mu.Lock() + defer qb.mu.Unlock() + select { + case n := <-qb.c: + qb.quota += n + default: + } +} + +// reset cancels the pending quota sent on acquired, incremented by v and sends +// it back on acquire. +func (qb *quotaPool) reset(v int) { + qb.mu.Lock() + defer qb.mu.Unlock() + select { + case n := <-qb.c: + qb.quota += n + default: + } + qb.quota += v + if qb.quota <= 0 { + return + } + select { + case qb.c <- qb.quota: + qb.quota = 0 + default: + } +} + +// acquire returns the channel on which available quota amounts are sent. +func (qb *quotaPool) acquire() <-chan int { + return qb.c +} + +// inFlow deals with inbound flow control +type inFlow struct { + // The inbound flow control limit for pending data. + limit uint32 + + mu sync.Mutex + // pendingData is the overall data which have been received but not been + // consumed by applications. + pendingData uint32 + // The amount of data the application has consumed but grpc has not sent + // window update for them. Used to reduce window update frequency. + pendingUpdate uint32 +} + +// onData is invoked when some data frame is received. It updates pendingData. +func (f *inFlow) onData(n uint32) error { + f.mu.Lock() + defer f.mu.Unlock() + f.pendingData += n + if f.pendingData+f.pendingUpdate > f.limit { + return fmt.Errorf("received %d-bytes data exceeding the limit %d bytes", f.pendingData+f.pendingUpdate, f.limit) + } + return nil +} + +// onRead is invoked when the application reads the data. It returns the window size +// to be sent to the peer. +func (f *inFlow) onRead(n uint32) uint32 { + f.mu.Lock() + defer f.mu.Unlock() + if f.pendingData == 0 { + return 0 + } + f.pendingData -= n + f.pendingUpdate += n + if f.pendingUpdate >= f.limit/4 { + wu := f.pendingUpdate + f.pendingUpdate = 0 + return wu + } + return 0 +} + +func (f *inFlow) resetPendingData() uint32 { + f.mu.Lock() + defer f.mu.Unlock() + n := f.pendingData + f.pendingData = 0 + return n +} diff --git a/ingress/vendor/google.golang.org/grpc/transport/handler_server.go b/ingress/vendor/google.golang.org/grpc/transport/handler_server.go new file mode 100644 index 0000000000..4b0d525243 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/transport/handler_server.go @@ -0,0 +1,393 @@ +/* + * Copyright 2016, Google Inc. + * 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 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. + * + */ + +// This file is the implementation of a gRPC server using HTTP/2 which +// uses the standard Go http2 Server implementation (via the +// http.Handler interface), rather than speaking low-level HTTP/2 +// frames itself. It is the implementation of *grpc.Server.ServeHTTP. + +package transport + +import ( + "errors" + "fmt" + "io" + "net" + "net/http" + "strings" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/http2" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" +) + +// NewServerHandlerTransport returns a ServerTransport handling gRPC +// from inside an http.Handler. It requires that the http Server +// supports HTTP/2. +func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request) (ServerTransport, error) { + if r.ProtoMajor != 2 { + return nil, errors.New("gRPC requires HTTP/2") + } + if r.Method != "POST" { + return nil, errors.New("invalid gRPC request method") + } + if !validContentType(r.Header.Get("Content-Type")) { + return nil, errors.New("invalid gRPC request content-type") + } + if _, ok := w.(http.Flusher); !ok { + return nil, errors.New("gRPC requires a ResponseWriter supporting http.Flusher") + } + if _, ok := w.(http.CloseNotifier); !ok { + return nil, errors.New("gRPC requires a ResponseWriter supporting http.CloseNotifier") + } + + st := &serverHandlerTransport{ + rw: w, + req: r, + closedCh: make(chan struct{}), + writes: make(chan func()), + } + + if v := r.Header.Get("grpc-timeout"); v != "" { + to, err := timeoutDecode(v) + if err != nil { + return nil, StreamErrorf(codes.Internal, "malformed time-out: %v", err) + } + st.timeoutSet = true + st.timeout = to + } + + var metakv []string + if r.Host != "" { + metakv = append(metakv, ":authority", r.Host) + } + for k, vv := range r.Header { + k = strings.ToLower(k) + if isReservedHeader(k) && !isWhitelistedPseudoHeader(k) { + continue + } + for _, v := range vv { + if k == "user-agent" { + // user-agent is special. Copying logic of http_util.go. + if i := strings.LastIndex(v, " "); i == -1 { + // There is no application user agent string being set + continue + } else { + v = v[:i] + } + } + metakv = append(metakv, k, v) + } + } + st.headerMD = metadata.Pairs(metakv...) + + return st, nil +} + +// serverHandlerTransport is an implementation of ServerTransport +// which replies to exactly one gRPC request (exactly one HTTP request), +// using the net/http.Handler interface. This http.Handler is guaranteed +// at this point to be speaking over HTTP/2, so it's able to speak valid +// gRPC. +type serverHandlerTransport struct { + rw http.ResponseWriter + req *http.Request + timeoutSet bool + timeout time.Duration + didCommonHeaders bool + + headerMD metadata.MD + + closeOnce sync.Once + closedCh chan struct{} // closed on Close + + // writes is a channel of code to run serialized in the + // ServeHTTP (HandleStreams) goroutine. The channel is closed + // when WriteStatus is called. + writes chan func() +} + +func (ht *serverHandlerTransport) Close() error { + ht.closeOnce.Do(ht.closeCloseChanOnce) + return nil +} + +func (ht *serverHandlerTransport) closeCloseChanOnce() { close(ht.closedCh) } + +func (ht *serverHandlerTransport) RemoteAddr() net.Addr { return strAddr(ht.req.RemoteAddr) } + +// strAddr is a net.Addr backed by either a TCP "ip:port" string, or +// the empty string if unknown. +type strAddr string + +func (a strAddr) Network() string { + if a != "" { + // Per the documentation on net/http.Request.RemoteAddr, if this is + // set, it's set to the IP:port of the peer (hence, TCP): + // https://golang.org/pkg/net/http/#Request + // + // If we want to support Unix sockets later, we can + // add our own grpc-specific convention within the + // grpc codebase to set RemoteAddr to a different + // format, or probably better: we can attach it to the + // context and use that from serverHandlerTransport.RemoteAddr. + return "tcp" + } + return "" +} + +func (a strAddr) String() string { return string(a) } + +// do runs fn in the ServeHTTP goroutine. +func (ht *serverHandlerTransport) do(fn func()) error { + select { + case ht.writes <- fn: + return nil + case <-ht.closedCh: + return ErrConnClosing + } +} + +func (ht *serverHandlerTransport) WriteStatus(s *Stream, statusCode codes.Code, statusDesc string) error { + err := ht.do(func() { + ht.writeCommonHeaders(s) + + // And flush, in case no header or body has been sent yet. + // This forces a separation of headers and trailers if this is the + // first call (for example, in end2end tests's TestNoService). + ht.rw.(http.Flusher).Flush() + + h := ht.rw.Header() + h.Set("Grpc-Status", fmt.Sprintf("%d", statusCode)) + if statusDesc != "" { + h.Set("Grpc-Message", statusDesc) + } + if md := s.Trailer(); len(md) > 0 { + for k, vv := range md { + // Clients don't tolerate reading restricted headers after some non restricted ones were sent. + if isReservedHeader(k) { + continue + } + for _, v := range vv { + // http2 ResponseWriter mechanism to + // send undeclared Trailers after the + // headers have possibly been written. + h.Add(http2.TrailerPrefix+k, v) + } + } + } + }) + close(ht.writes) + return err +} + +// writeCommonHeaders sets common headers on the first write +// call (Write, WriteHeader, or WriteStatus). +func (ht *serverHandlerTransport) writeCommonHeaders(s *Stream) { + if ht.didCommonHeaders { + return + } + ht.didCommonHeaders = true + + h := ht.rw.Header() + h["Date"] = nil // suppress Date to make tests happy; TODO: restore + h.Set("Content-Type", "application/grpc") + + // Predeclare trailers we'll set later in WriteStatus (after the body). + // This is a SHOULD in the HTTP RFC, and the way you add (known) + // Trailers per the net/http.ResponseWriter contract. + // See https://golang.org/pkg/net/http/#ResponseWriter + // and https://golang.org/pkg/net/http/#example_ResponseWriter_trailers + h.Add("Trailer", "Grpc-Status") + h.Add("Trailer", "Grpc-Message") + + if s.sendCompress != "" { + h.Set("Grpc-Encoding", s.sendCompress) + } +} + +func (ht *serverHandlerTransport) Write(s *Stream, data []byte, opts *Options) error { + return ht.do(func() { + ht.writeCommonHeaders(s) + ht.rw.Write(data) + if !opts.Delay { + ht.rw.(http.Flusher).Flush() + } + }) +} + +func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error { + return ht.do(func() { + ht.writeCommonHeaders(s) + h := ht.rw.Header() + for k, vv := range md { + // Clients don't tolerate reading restricted headers after some non restricted ones were sent. + if isReservedHeader(k) { + continue + } + for _, v := range vv { + h.Add(k, v) + } + } + ht.rw.WriteHeader(200) + ht.rw.(http.Flusher).Flush() + }) +} + +func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream)) { + // With this transport type there will be exactly 1 stream: this HTTP request. + + var ctx context.Context + var cancel context.CancelFunc + if ht.timeoutSet { + ctx, cancel = context.WithTimeout(context.Background(), ht.timeout) + } else { + ctx, cancel = context.WithCancel(context.Background()) + } + + // requestOver is closed when either the request's context is done + // or the status has been written via WriteStatus. + requestOver := make(chan struct{}) + + // clientGone receives a single value if peer is gone, either + // because the underlying connection is dead or because the + // peer sends an http2 RST_STREAM. + clientGone := ht.rw.(http.CloseNotifier).CloseNotify() + go func() { + select { + case <-requestOver: + return + case <-ht.closedCh: + case <-clientGone: + } + cancel() + }() + + req := ht.req + + s := &Stream{ + id: 0, // irrelevant + windowHandler: func(int) {}, // nothing + cancel: cancel, + buf: newRecvBuffer(), + st: ht, + method: req.URL.Path, + recvCompress: req.Header.Get("grpc-encoding"), + } + pr := &peer.Peer{ + Addr: ht.RemoteAddr(), + } + if req.TLS != nil { + pr.AuthInfo = credentials.TLSInfo{State: *req.TLS} + } + ctx = metadata.NewContext(ctx, ht.headerMD) + ctx = peer.NewContext(ctx, pr) + s.ctx = newContextWithStream(ctx, s) + s.dec = &recvBufferReader{ctx: s.ctx, recv: s.buf} + + // readerDone is closed when the Body.Read-ing goroutine exits. + readerDone := make(chan struct{}) + go func() { + defer close(readerDone) + + // TODO: minimize garbage, optimize recvBuffer code/ownership + const readSize = 8196 + for buf := make([]byte, readSize); ; { + n, err := req.Body.Read(buf) + if n > 0 { + s.buf.put(&recvMsg{data: buf[:n:n]}) + buf = buf[n:] + } + if err != nil { + s.buf.put(&recvMsg{err: mapRecvMsgError(err)}) + return + } + if len(buf) == 0 { + buf = make([]byte, readSize) + } + } + }() + + // startStream is provided by the *grpc.Server's serveStreams. + // It starts a goroutine serving s and exits immediately. + // The goroutine that is started is the one that then calls + // into ht, calling WriteHeader, Write, WriteStatus, Close, etc. + startStream(s) + + ht.runStream() + close(requestOver) + + // Wait for reading goroutine to finish. + req.Body.Close() + <-readerDone +} + +func (ht *serverHandlerTransport) runStream() { + for { + select { + case fn, ok := <-ht.writes: + if !ok { + return + } + fn() + case <-ht.closedCh: + return + } + } +} + +// mapRecvMsgError returns the non-nil err into the appropriate +// error value as expected by callers of *grpc.parser.recvMsg. +// In particular, in can only be: +// * io.EOF +// * io.ErrUnexpectedEOF +// * of type transport.ConnectionError +// * of type transport.StreamError +func mapRecvMsgError(err error) error { + if err == io.EOF || err == io.ErrUnexpectedEOF { + return err + } + if se, ok := err.(http2.StreamError); ok { + if code, ok := http2ErrConvTab[se.Code]; ok { + return StreamError{ + Code: code, + Desc: se.Error(), + } + } + } + return ConnectionError{Desc: err.Error()} +} diff --git a/ingress/vendor/google.golang.org/grpc/transport/http2_client.go b/ingress/vendor/google.golang.org/grpc/transport/http2_client.go new file mode 100644 index 0000000000..f66435fdbd --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/transport/http2_client.go @@ -0,0 +1,949 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 transport + +import ( + "bytes" + "io" + "math" + "net" + "strings" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" +) + +// http2Client implements the ClientTransport interface with HTTP2. +type http2Client struct { + target string // server name/addr + userAgent string + conn net.Conn // underlying communication channel + authInfo credentials.AuthInfo // auth info about the connection + nextID uint32 // the next stream ID to be used + + // writableChan synchronizes write access to the transport. + // A writer acquires the write lock by sending a value on writableChan + // and releases it by receiving from writableChan. + writableChan chan int + // shutdownChan is closed when Close is called. + // Blocking operations should select on shutdownChan to avoid + // blocking forever after Close. + // TODO(zhaoq): Maybe have a channel context? + shutdownChan chan struct{} + // errorChan is closed to notify the I/O error to the caller. + errorChan chan struct{} + + framer *framer + hBuf *bytes.Buffer // the buffer for HPACK encoding + hEnc *hpack.Encoder // HPACK encoder + + // controlBuf delivers all the control related tasks (e.g., window + // updates, reset streams, and various settings) to the controller. + controlBuf *recvBuffer + fc *inFlow + // sendQuotaPool provides flow control to outbound message. + sendQuotaPool *quotaPool + // streamsQuota limits the max number of concurrent streams. + streamsQuota *quotaPool + + // The scheme used: https if TLS is on, http otherwise. + scheme string + + creds []credentials.PerRPCCredentials + + mu sync.Mutex // guard the following variables + state transportState // the state of underlying connection + activeStreams map[uint32]*Stream + // The max number of concurrent streams + maxStreams int + // the per-stream outbound flow control window size set by the peer. + streamSendQuota uint32 +} + +// newHTTP2Client constructs a connected ClientTransport to addr based on HTTP2 +// and starts to receive messages on it. Non-nil error returns if construction +// fails. +func newHTTP2Client(addr string, opts *ConnectOptions) (_ ClientTransport, err error) { + if opts.Dialer == nil { + // Set the default Dialer. + opts.Dialer = func(addr string, timeout time.Duration) (net.Conn, error) { + return net.DialTimeout("tcp", addr, timeout) + } + } + scheme := "http" + startT := time.Now() + timeout := opts.Timeout + conn, connErr := opts.Dialer(addr, timeout) + if connErr != nil { + return nil, ConnectionErrorf("transport: %v", connErr) + } + var authInfo credentials.AuthInfo + if opts.TransportCredentials != nil { + scheme = "https" + if timeout > 0 { + timeout -= time.Since(startT) + } + conn, authInfo, connErr = opts.TransportCredentials.ClientHandshake(addr, conn, timeout) + } + if connErr != nil { + return nil, ConnectionErrorf("transport: %v", connErr) + } + defer func() { + if err != nil { + conn.Close() + } + }() + ua := primaryUA + if opts.UserAgent != "" { + ua = opts.UserAgent + " " + ua + } + var buf bytes.Buffer + t := &http2Client{ + target: addr, + userAgent: ua, + conn: conn, + authInfo: authInfo, + // The client initiated stream id is odd starting from 1. + nextID: 1, + writableChan: make(chan int, 1), + shutdownChan: make(chan struct{}), + errorChan: make(chan struct{}), + framer: newFramer(conn), + hBuf: &buf, + hEnc: hpack.NewEncoder(&buf), + controlBuf: newRecvBuffer(), + fc: &inFlow{limit: initialConnWindowSize}, + sendQuotaPool: newQuotaPool(defaultWindowSize), + scheme: scheme, + state: reachable, + activeStreams: make(map[uint32]*Stream), + creds: opts.PerRPCCredentials, + maxStreams: math.MaxInt32, + streamSendQuota: defaultWindowSize, + } + // Start the reader goroutine for incoming message. Each transport has + // a dedicated goroutine which reads HTTP2 frame from network. Then it + // dispatches the frame to the corresponding stream entity. + go t.reader() + // Send connection preface to server. + n, err := t.conn.Write(clientPreface) + if err != nil { + t.Close() + return nil, ConnectionErrorf("transport: %v", err) + } + if n != len(clientPreface) { + t.Close() + return nil, ConnectionErrorf("transport: preface mismatch, wrote %d bytes; want %d", n, len(clientPreface)) + } + if initialWindowSize != defaultWindowSize { + err = t.framer.writeSettings(true, http2.Setting{ + ID: http2.SettingInitialWindowSize, + Val: uint32(initialWindowSize), + }) + } else { + err = t.framer.writeSettings(true) + } + if err != nil { + t.Close() + return nil, ConnectionErrorf("transport: %v", err) + } + // Adjust the connection flow control window if needed. + if delta := uint32(initialConnWindowSize - defaultWindowSize); delta > 0 { + if err := t.framer.writeWindowUpdate(true, 0, delta); err != nil { + t.Close() + return nil, ConnectionErrorf("transport: %v", err) + } + } + go t.controller() + t.writableChan <- 0 + return t, nil +} + +func (t *http2Client) newStream(ctx context.Context, callHdr *CallHdr) *Stream { + // TODO(zhaoq): Handle uint32 overflow of Stream.id. + s := &Stream{ + id: t.nextID, + method: callHdr.Method, + sendCompress: callHdr.SendCompress, + buf: newRecvBuffer(), + fc: &inFlow{limit: initialWindowSize}, + sendQuotaPool: newQuotaPool(int(t.streamSendQuota)), + headerChan: make(chan struct{}), + } + t.nextID += 2 + s.windowHandler = func(n int) { + t.updateWindow(s, uint32(n)) + } + // Make a stream be able to cancel the pending operations by itself. + s.ctx, s.cancel = context.WithCancel(ctx) + s.dec = &recvBufferReader{ + ctx: s.ctx, + recv: s.buf, + } + return s +} + +// NewStream creates a stream and register it into the transport as "active" +// streams. +func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Stream, err error) { + // Record the timeout value on the context. + var timeout time.Duration + if dl, ok := ctx.Deadline(); ok { + timeout = dl.Sub(time.Now()) + } + select { + case <-ctx.Done(): + return nil, ContextErr(ctx.Err()) + default: + } + pr := &peer.Peer{ + Addr: t.conn.RemoteAddr(), + } + // Attach Auth info if there is any. + if t.authInfo != nil { + pr.AuthInfo = t.authInfo + } + ctx = peer.NewContext(ctx, pr) + authData := make(map[string]string) + for _, c := range t.creds { + // Construct URI required to get auth request metadata. + var port string + if pos := strings.LastIndex(t.target, ":"); pos != -1 { + // Omit port if it is the default one. + if t.target[pos+1:] != "443" { + port = ":" + t.target[pos+1:] + } + } + pos := strings.LastIndex(callHdr.Method, "/") + if pos == -1 { + return nil, StreamErrorf(codes.InvalidArgument, "transport: malformed method name: %q", callHdr.Method) + } + audience := "https://" + callHdr.Host + port + callHdr.Method[:pos] + data, err := c.GetRequestMetadata(ctx, audience) + if err != nil { + return nil, StreamErrorf(codes.InvalidArgument, "transport: %v", err) + } + for k, v := range data { + authData[k] = v + } + } + t.mu.Lock() + if t.activeStreams == nil { + t.mu.Unlock() + return nil, ErrConnClosing + } + if t.state != reachable { + t.mu.Unlock() + return nil, ErrConnClosing + } + checkStreamsQuota := t.streamsQuota != nil + t.mu.Unlock() + if checkStreamsQuota { + sq, err := wait(ctx, t.shutdownChan, t.streamsQuota.acquire()) + if err != nil { + return nil, err + } + // Returns the quota balance back. + if sq > 1 { + t.streamsQuota.add(sq - 1) + } + } + if _, err := wait(ctx, t.shutdownChan, t.writableChan); err != nil { + // Return the quota back now because there is no stream returned to the caller. + if _, ok := err.(StreamError); ok && checkStreamsQuota { + t.streamsQuota.add(1) + } + return nil, err + } + t.mu.Lock() + if t.state != reachable { + t.mu.Unlock() + return nil, ErrConnClosing + } + s := t.newStream(ctx, callHdr) + t.activeStreams[s.id] = s + + // This stream is not counted when applySetings(...) initialize t.streamsQuota. + // Reset t.streamsQuota to the right value. + var reset bool + if !checkStreamsQuota && t.streamsQuota != nil { + reset = true + } + t.mu.Unlock() + if reset { + t.streamsQuota.reset(-1) + } + + // HPACK encodes various headers. Note that once WriteField(...) is + // called, the corresponding headers/continuation frame has to be sent + // because hpack.Encoder is stateful. + t.hBuf.Reset() + t.hEnc.WriteField(hpack.HeaderField{Name: ":method", Value: "POST"}) + t.hEnc.WriteField(hpack.HeaderField{Name: ":scheme", Value: t.scheme}) + t.hEnc.WriteField(hpack.HeaderField{Name: ":path", Value: callHdr.Method}) + t.hEnc.WriteField(hpack.HeaderField{Name: ":authority", Value: callHdr.Host}) + t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"}) + t.hEnc.WriteField(hpack.HeaderField{Name: "user-agent", Value: t.userAgent}) + t.hEnc.WriteField(hpack.HeaderField{Name: "te", Value: "trailers"}) + + if callHdr.SendCompress != "" { + t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-encoding", Value: callHdr.SendCompress}) + } + if timeout > 0 { + t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-timeout", Value: timeoutEncode(timeout)}) + } + for k, v := range authData { + // Capital header names are illegal in HTTP/2. + k = strings.ToLower(k) + t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: v}) + } + var ( + hasMD bool + endHeaders bool + ) + if md, ok := metadata.FromContext(ctx); ok { + hasMD = true + for k, v := range md { + // HTTP doesn't allow you to set pseudoheaders after non pseudoheaders were set. + if isReservedHeader(k) { + continue + } + for _, entry := range v { + t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry}) + } + } + } + first := true + // Sends the headers in a single batch even when they span multiple frames. + for !endHeaders { + size := t.hBuf.Len() + if size > http2MaxFrameLen { + size = http2MaxFrameLen + } else { + endHeaders = true + } + var flush bool + if endHeaders && (hasMD || callHdr.Flush) { + flush = true + } + if first { + // Sends a HeadersFrame to server to start a new stream. + p := http2.HeadersFrameParam{ + StreamID: s.id, + BlockFragment: t.hBuf.Next(size), + EndStream: false, + EndHeaders: endHeaders, + } + // Do a force flush for the buffered frames iff it is the last headers frame + // and there is header metadata to be sent. Otherwise, there is flushing until + // the corresponding data frame is written. + err = t.framer.writeHeaders(flush, p) + first = false + } else { + // Sends Continuation frames for the leftover headers. + err = t.framer.writeContinuation(flush, s.id, endHeaders, t.hBuf.Next(size)) + } + if err != nil { + t.notifyError(err) + return nil, ConnectionErrorf("transport: %v", err) + } + } + t.writableChan <- 0 + return s, nil +} + +// CloseStream clears the footprint of a stream when the stream is not needed any more. +// This must not be executed in reader's goroutine. +func (t *http2Client) CloseStream(s *Stream, err error) { + var updateStreams bool + t.mu.Lock() + if t.activeStreams == nil { + t.mu.Unlock() + return + } + if t.streamsQuota != nil { + updateStreams = true + } + if t.state == draining && len(t.activeStreams) == 1 { + // The transport is draining and s is the last live stream on t. + t.mu.Unlock() + t.Close() + return + } + delete(t.activeStreams, s.id) + t.mu.Unlock() + if updateStreams { + t.streamsQuota.add(1) + } + // In case stream sending and receiving are invoked in separate + // goroutines (e.g., bi-directional streaming), the caller needs + // to call cancel on the stream to interrupt the blocking on + // other goroutines. + s.cancel() + s.mu.Lock() + if q := s.fc.resetPendingData(); q > 0 { + if n := t.fc.onRead(q); n > 0 { + t.controlBuf.put(&windowUpdate{0, n}) + } + } + if s.state == streamDone { + s.mu.Unlock() + return + } + if !s.headerDone { + close(s.headerChan) + s.headerDone = true + } + s.state = streamDone + s.mu.Unlock() + if _, ok := err.(StreamError); ok { + t.controlBuf.put(&resetStream{s.id, http2.ErrCodeCancel}) + } +} + +// Close kicks off the shutdown process of the transport. This should be called +// only once on a transport. Once it is called, the transport should not be +// accessed any more. +func (t *http2Client) Close() (err error) { + t.mu.Lock() + if t.state == reachable { + close(t.errorChan) + } + if t.state == closing { + t.mu.Unlock() + return + } + t.state = closing + t.mu.Unlock() + close(t.shutdownChan) + err = t.conn.Close() + t.mu.Lock() + streams := t.activeStreams + t.activeStreams = nil + t.mu.Unlock() + // Notify all active streams. + for _, s := range streams { + s.mu.Lock() + if !s.headerDone { + close(s.headerChan) + s.headerDone = true + } + s.mu.Unlock() + s.write(recvMsg{err: ErrConnClosing}) + } + return +} + +func (t *http2Client) GracefulClose() error { + t.mu.Lock() + if t.state == closing { + t.mu.Unlock() + return nil + } + if t.state == draining { + t.mu.Unlock() + return nil + } + t.state = draining + active := len(t.activeStreams) + t.mu.Unlock() + if active == 0 { + return t.Close() + } + return nil +} + +// Write formats the data into HTTP2 data frame(s) and sends it out. The caller +// should proceed only if Write returns nil. +// TODO(zhaoq): opts.Delay is ignored in this implementation. Support it later +// if it improves the performance. +func (t *http2Client) Write(s *Stream, data []byte, opts *Options) error { + r := bytes.NewBuffer(data) + for { + var p []byte + if r.Len() > 0 { + size := http2MaxFrameLen + s.sendQuotaPool.add(0) + // Wait until the stream has some quota to send the data. + sq, err := wait(s.ctx, t.shutdownChan, s.sendQuotaPool.acquire()) + if err != nil { + return err + } + t.sendQuotaPool.add(0) + // Wait until the transport has some quota to send the data. + tq, err := wait(s.ctx, t.shutdownChan, t.sendQuotaPool.acquire()) + if err != nil { + if _, ok := err.(StreamError); ok { + t.sendQuotaPool.cancel() + } + return err + } + if sq < size { + size = sq + } + if tq < size { + size = tq + } + p = r.Next(size) + ps := len(p) + if ps < sq { + // Overbooked stream quota. Return it back. + s.sendQuotaPool.add(sq - ps) + } + if ps < tq { + // Overbooked transport quota. Return it back. + t.sendQuotaPool.add(tq - ps) + } + } + var ( + endStream bool + forceFlush bool + ) + if opts.Last && r.Len() == 0 { + endStream = true + } + // Indicate there is a writer who is about to write a data frame. + t.framer.adjustNumWriters(1) + // Got some quota. Try to acquire writing privilege on the transport. + if _, err := wait(s.ctx, t.shutdownChan, t.writableChan); err != nil { + if _, ok := err.(StreamError); ok { + // Return the connection quota back. + t.sendQuotaPool.add(len(p)) + } + if t.framer.adjustNumWriters(-1) == 0 { + // This writer is the last one in this batch and has the + // responsibility to flush the buffered frames. It queues + // a flush request to controlBuf instead of flushing directly + // in order to avoid the race with other writing or flushing. + t.controlBuf.put(&flushIO{}) + } + return err + } + select { + case <-s.ctx.Done(): + t.sendQuotaPool.add(len(p)) + if t.framer.adjustNumWriters(-1) == 0 { + t.controlBuf.put(&flushIO{}) + } + t.writableChan <- 0 + return ContextErr(s.ctx.Err()) + default: + } + if r.Len() == 0 && t.framer.adjustNumWriters(0) == 1 { + // Do a force flush iff this is last frame for the entire gRPC message + // and the caller is the only writer at this moment. + forceFlush = true + } + // If WriteData fails, all the pending streams will be handled + // by http2Client.Close(). No explicit CloseStream() needs to be + // invoked. + if err := t.framer.writeData(forceFlush, s.id, endStream, p); err != nil { + t.notifyError(err) + return ConnectionErrorf("transport: %v", err) + } + if t.framer.adjustNumWriters(-1) == 0 { + t.framer.flushWrite() + } + t.writableChan <- 0 + if r.Len() == 0 { + break + } + } + if !opts.Last { + return nil + } + s.mu.Lock() + if s.state != streamDone { + if s.state == streamReadDone { + s.state = streamDone + } else { + s.state = streamWriteDone + } + } + s.mu.Unlock() + return nil +} + +func (t *http2Client) getStream(f http2.Frame) (*Stream, bool) { + t.mu.Lock() + defer t.mu.Unlock() + s, ok := t.activeStreams[f.Header().StreamID] + return s, ok +} + +// updateWindow adjusts the inbound quota for the stream and the transport. +// Window updates will deliver to the controller for sending when +// the cumulative quota exceeds the corresponding threshold. +func (t *http2Client) updateWindow(s *Stream, n uint32) { + s.mu.Lock() + defer s.mu.Unlock() + if s.state == streamDone { + return + } + if w := t.fc.onRead(n); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + if w := s.fc.onRead(n); w > 0 { + t.controlBuf.put(&windowUpdate{s.id, w}) + } +} + +func (t *http2Client) handleData(f *http2.DataFrame) { + size := len(f.Data()) + if err := t.fc.onData(uint32(size)); err != nil { + t.notifyError(ConnectionErrorf("%v", err)) + return + } + // Select the right stream to dispatch. + s, ok := t.getStream(f) + if !ok { + if w := t.fc.onRead(uint32(size)); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + return + } + if size > 0 { + s.mu.Lock() + if s.state == streamDone { + s.mu.Unlock() + // The stream has been closed. Release the corresponding quota. + if w := t.fc.onRead(uint32(size)); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + return + } + if err := s.fc.onData(uint32(size)); err != nil { + s.state = streamDone + s.statusCode = codes.Internal + s.statusDesc = err.Error() + s.mu.Unlock() + s.write(recvMsg{err: io.EOF}) + t.controlBuf.put(&resetStream{s.id, http2.ErrCodeFlowControl}) + return + } + s.mu.Unlock() + // TODO(bradfitz, zhaoq): A copy is required here because there is no + // guarantee f.Data() is consumed before the arrival of next frame. + // Can this copy be eliminated? + data := make([]byte, size) + copy(data, f.Data()) + s.write(recvMsg{data: data}) + } + // The server has closed the stream without sending trailers. Record that + // the read direction is closed, and set the status appropriately. + if f.FrameHeader.Flags.Has(http2.FlagDataEndStream) { + s.mu.Lock() + if s.state == streamWriteDone { + s.state = streamDone + } else { + s.state = streamReadDone + } + s.statusCode = codes.Internal + s.statusDesc = "server closed the stream without sending trailers" + s.mu.Unlock() + s.write(recvMsg{err: io.EOF}) + } +} + +func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { + s, ok := t.getStream(f) + if !ok { + return + } + s.mu.Lock() + if s.state == streamDone { + s.mu.Unlock() + return + } + s.state = streamDone + if !s.headerDone { + close(s.headerChan) + s.headerDone = true + } + s.statusCode, ok = http2ErrConvTab[http2.ErrCode(f.ErrCode)] + if !ok { + grpclog.Println("transport: http2Client.handleRSTStream found no mapped gRPC status for the received http2 error ", f.ErrCode) + s.statusCode = codes.Unknown + } + s.mu.Unlock() + s.write(recvMsg{err: io.EOF}) +} + +func (t *http2Client) handleSettings(f *http2.SettingsFrame) { + if f.IsAck() { + return + } + var ss []http2.Setting + f.ForeachSetting(func(s http2.Setting) error { + ss = append(ss, s) + return nil + }) + // The settings will be applied once the ack is sent. + t.controlBuf.put(&settings{ack: true, ss: ss}) +} + +func (t *http2Client) handlePing(f *http2.PingFrame) { + pingAck := &ping{ack: true} + copy(pingAck.data[:], f.Data[:]) + t.controlBuf.put(pingAck) +} + +func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) { + // TODO(zhaoq): GoAwayFrame handler to be implemented +} + +func (t *http2Client) handleWindowUpdate(f *http2.WindowUpdateFrame) { + id := f.Header().StreamID + incr := f.Increment + if id == 0 { + t.sendQuotaPool.add(int(incr)) + return + } + if s, ok := t.getStream(f); ok { + s.sendQuotaPool.add(int(incr)) + } +} + +// operateHeaders takes action on the decoded headers. +func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) { + s, ok := t.getStream(frame) + if !ok { + return + } + var state decodeState + for _, hf := range frame.Fields { + state.processHeaderField(hf) + } + if state.err != nil { + s.write(recvMsg{err: state.err}) + // Something wrong. Stops reading even when there is remaining. + return + } + + endStream := frame.StreamEnded() + + s.mu.Lock() + if !endStream { + s.recvCompress = state.encoding + } + if !s.headerDone { + if !endStream && len(state.mdata) > 0 { + s.header = state.mdata + } + close(s.headerChan) + s.headerDone = true + } + if !endStream || s.state == streamDone { + s.mu.Unlock() + return + } + + if len(state.mdata) > 0 { + s.trailer = state.mdata + } + s.state = streamDone + s.statusCode = state.statusCode + s.statusDesc = state.statusDesc + s.mu.Unlock() + + s.write(recvMsg{err: io.EOF}) +} + +func handleMalformedHTTP2(s *Stream, err error) { + s.mu.Lock() + if !s.headerDone { + close(s.headerChan) + s.headerDone = true + } + s.mu.Unlock() + s.write(recvMsg{err: err}) +} + +// reader runs as a separate goroutine in charge of reading data from network +// connection. +// +// TODO(zhaoq): currently one reader per transport. Investigate whether this is +// optimal. +// TODO(zhaoq): Check the validity of the incoming frame sequence. +func (t *http2Client) reader() { + // Check the validity of server preface. + frame, err := t.framer.readFrame() + if err != nil { + t.notifyError(err) + return + } + sf, ok := frame.(*http2.SettingsFrame) + if !ok { + t.notifyError(err) + return + } + t.handleSettings(sf) + + // loop to keep reading incoming messages on this transport. + for { + frame, err := t.framer.readFrame() + if err != nil { + // Abort an active stream if the http2.Framer returns a + // http2.StreamError. This can happen only if the server's response + // is malformed http2. + if se, ok := err.(http2.StreamError); ok { + t.mu.Lock() + s := t.activeStreams[se.StreamID] + t.mu.Unlock() + if s != nil { + // use error detail to provide better err message + handleMalformedHTTP2(s, StreamErrorf(http2ErrConvTab[se.Code], "%v", t.framer.errorDetail())) + } + continue + } else { + // Transport error. + t.notifyError(err) + return + } + } + switch frame := frame.(type) { + case *http2.MetaHeadersFrame: + t.operateHeaders(frame) + case *http2.DataFrame: + t.handleData(frame) + case *http2.RSTStreamFrame: + t.handleRSTStream(frame) + case *http2.SettingsFrame: + t.handleSettings(frame) + case *http2.PingFrame: + t.handlePing(frame) + case *http2.GoAwayFrame: + t.handleGoAway(frame) + case *http2.WindowUpdateFrame: + t.handleWindowUpdate(frame) + default: + grpclog.Printf("transport: http2Client.reader got unhandled frame type %v.", frame) + } + } +} + +func (t *http2Client) applySettings(ss []http2.Setting) { + for _, s := range ss { + switch s.ID { + case http2.SettingMaxConcurrentStreams: + // TODO(zhaoq): This is a hack to avoid significant refactoring of the + // code to deal with the unrealistic int32 overflow. Probably will try + // to find a better way to handle this later. + if s.Val > math.MaxInt32 { + s.Val = math.MaxInt32 + } + t.mu.Lock() + reset := t.streamsQuota != nil + if !reset { + t.streamsQuota = newQuotaPool(int(s.Val) - len(t.activeStreams)) + } + ms := t.maxStreams + t.maxStreams = int(s.Val) + t.mu.Unlock() + if reset { + t.streamsQuota.reset(int(s.Val) - ms) + } + case http2.SettingInitialWindowSize: + t.mu.Lock() + for _, stream := range t.activeStreams { + // Adjust the sending quota for each stream. + stream.sendQuotaPool.reset(int(s.Val - t.streamSendQuota)) + } + t.streamSendQuota = s.Val + t.mu.Unlock() + } + } +} + +// controller running in a separate goroutine takes charge of sending control +// frames (e.g., window update, reset stream, setting, etc.) to the server. +func (t *http2Client) controller() { + for { + select { + case i := <-t.controlBuf.get(): + t.controlBuf.load() + select { + case <-t.writableChan: + switch i := i.(type) { + case *windowUpdate: + t.framer.writeWindowUpdate(true, i.streamID, i.increment) + case *settings: + if i.ack { + t.framer.writeSettingsAck(true) + t.applySettings(i.ss) + } else { + t.framer.writeSettings(true, i.ss...) + } + case *resetStream: + t.framer.writeRSTStream(true, i.streamID, i.code) + case *flushIO: + t.framer.flushWrite() + case *ping: + t.framer.writePing(true, i.ack, i.data) + default: + grpclog.Printf("transport: http2Client.controller got unexpected item type %v\n", i) + } + t.writableChan <- 0 + continue + case <-t.shutdownChan: + return + } + case <-t.shutdownChan: + return + } + } +} + +func (t *http2Client) Error() <-chan struct{} { + return t.errorChan +} + +func (t *http2Client) notifyError(err error) { + t.mu.Lock() + defer t.mu.Unlock() + // make sure t.errorChan is closed only once. + if t.state == reachable { + t.state = unreachable + close(t.errorChan) + grpclog.Printf("transport: http2Client.notifyError got notified that the client transport was broken %v.", err) + } +} diff --git a/ingress/vendor/google.golang.org/grpc/transport/http2_server.go b/ingress/vendor/google.golang.org/grpc/transport/http2_server.go new file mode 100644 index 0000000000..cee1542976 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/transport/http2_server.go @@ -0,0 +1,748 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 transport + +import ( + "bytes" + "errors" + "io" + "math" + "net" + "strconv" + "sync" + + "golang.org/x/net/context" + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" +) + +// ErrIllegalHeaderWrite indicates that setting header is illegal because of +// the stream's state. +var ErrIllegalHeaderWrite = errors.New("transport: the stream is done or WriteHeader was already called") + +// http2Server implements the ServerTransport interface with HTTP2. +type http2Server struct { + conn net.Conn + maxStreamID uint32 // max stream ID ever seen + authInfo credentials.AuthInfo // auth info about the connection + // writableChan synchronizes write access to the transport. + // A writer acquires the write lock by receiving a value on writableChan + // and releases it by sending on writableChan. + writableChan chan int + // shutdownChan is closed when Close is called. + // Blocking operations should select on shutdownChan to avoid + // blocking forever after Close. + shutdownChan chan struct{} + framer *framer + hBuf *bytes.Buffer // the buffer for HPACK encoding + hEnc *hpack.Encoder // HPACK encoder + + // The max number of concurrent streams. + maxStreams uint32 + // controlBuf delivers all the control related tasks (e.g., window + // updates, reset streams, and various settings) to the controller. + controlBuf *recvBuffer + fc *inFlow + // sendQuotaPool provides flow control to outbound message. + sendQuotaPool *quotaPool + + mu sync.Mutex // guard the following + state transportState + activeStreams map[uint32]*Stream + // the per-stream outbound flow control window size set by the peer. + streamSendQuota uint32 +} + +// newHTTP2Server constructs a ServerTransport based on HTTP2. ConnectionError is +// returned if something goes wrong. +func newHTTP2Server(conn net.Conn, maxStreams uint32, authInfo credentials.AuthInfo) (_ ServerTransport, err error) { + framer := newFramer(conn) + // Send initial settings as connection preface to client. + var settings []http2.Setting + // TODO(zhaoq): Have a better way to signal "no limit" because 0 is + // permitted in the HTTP2 spec. + if maxStreams == 0 { + maxStreams = math.MaxUint32 + } else { + settings = append(settings, http2.Setting{ + ID: http2.SettingMaxConcurrentStreams, + Val: maxStreams, + }) + } + if initialWindowSize != defaultWindowSize { + settings = append(settings, http2.Setting{ + ID: http2.SettingInitialWindowSize, + Val: uint32(initialWindowSize)}) + } + if err := framer.writeSettings(true, settings...); err != nil { + return nil, ConnectionErrorf("transport: %v", err) + } + // Adjust the connection flow control window if needed. + if delta := uint32(initialConnWindowSize - defaultWindowSize); delta > 0 { + if err := framer.writeWindowUpdate(true, 0, delta); err != nil { + return nil, ConnectionErrorf("transport: %v", err) + } + } + var buf bytes.Buffer + t := &http2Server{ + conn: conn, + authInfo: authInfo, + framer: framer, + hBuf: &buf, + hEnc: hpack.NewEncoder(&buf), + maxStreams: maxStreams, + controlBuf: newRecvBuffer(), + fc: &inFlow{limit: initialConnWindowSize}, + sendQuotaPool: newQuotaPool(defaultWindowSize), + state: reachable, + writableChan: make(chan int, 1), + shutdownChan: make(chan struct{}), + activeStreams: make(map[uint32]*Stream), + streamSendQuota: defaultWindowSize, + } + go t.controller() + t.writableChan <- 0 + return t, nil +} + +// operateHeader takes action on the decoded headers. +func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func(*Stream)) { + buf := newRecvBuffer() + s := &Stream{ + id: frame.Header().StreamID, + st: t, + buf: buf, + fc: &inFlow{limit: initialWindowSize}, + } + + var state decodeState + for _, hf := range frame.Fields { + state.processHeaderField(hf) + } + if err := state.err; err != nil { + if se, ok := err.(StreamError); ok { + t.controlBuf.put(&resetStream{s.id, statusCodeConvTab[se.Code]}) + } + return + } + + if frame.StreamEnded() { + // s is just created by the caller. No lock needed. + s.state = streamReadDone + } + s.recvCompress = state.encoding + if state.timeoutSet { + s.ctx, s.cancel = context.WithTimeout(context.TODO(), state.timeout) + } else { + s.ctx, s.cancel = context.WithCancel(context.TODO()) + } + pr := &peer.Peer{ + Addr: t.conn.RemoteAddr(), + } + // Attach Auth info if there is any. + if t.authInfo != nil { + pr.AuthInfo = t.authInfo + } + s.ctx = peer.NewContext(s.ctx, pr) + // Cache the current stream to the context so that the server application + // can find out. Required when the server wants to send some metadata + // back to the client (unary call only). + s.ctx = newContextWithStream(s.ctx, s) + // Attach the received metadata to the context. + if len(state.mdata) > 0 { + s.ctx = metadata.NewContext(s.ctx, state.mdata) + } + + s.dec = &recvBufferReader{ + ctx: s.ctx, + recv: s.buf, + } + s.recvCompress = state.encoding + s.method = state.method + t.mu.Lock() + if t.state != reachable { + t.mu.Unlock() + return + } + if uint32(len(t.activeStreams)) >= t.maxStreams { + t.mu.Unlock() + t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream}) + return + } + s.sendQuotaPool = newQuotaPool(int(t.streamSendQuota)) + t.activeStreams[s.id] = s + t.mu.Unlock() + s.windowHandler = func(n int) { + t.updateWindow(s, uint32(n)) + } + handle(s) +} + +// HandleStreams receives incoming streams using the given handler. This is +// typically run in a separate goroutine. +func (t *http2Server) HandleStreams(handle func(*Stream)) { + // Check the validity of client preface. + preface := make([]byte, len(clientPreface)) + if _, err := io.ReadFull(t.conn, preface); err != nil { + grpclog.Printf("transport: http2Server.HandleStreams failed to receive the preface from client: %v", err) + t.Close() + return + } + if !bytes.Equal(preface, clientPreface) { + grpclog.Printf("transport: http2Server.HandleStreams received bogus greeting from client: %q", preface) + t.Close() + return + } + + frame, err := t.framer.readFrame() + if err != nil { + grpclog.Printf("transport: http2Server.HandleStreams failed to read frame: %v", err) + t.Close() + return + } + sf, ok := frame.(*http2.SettingsFrame) + if !ok { + grpclog.Printf("transport: http2Server.HandleStreams saw invalid preface type %T from client", frame) + t.Close() + return + } + t.handleSettings(sf) + + for { + frame, err := t.framer.readFrame() + if err != nil { + if se, ok := err.(http2.StreamError); ok { + t.mu.Lock() + s := t.activeStreams[se.StreamID] + t.mu.Unlock() + if s != nil { + t.closeStream(s) + } + t.controlBuf.put(&resetStream{se.StreamID, se.Code}) + continue + } + t.Close() + return + } + switch frame := frame.(type) { + case *http2.MetaHeadersFrame: + id := frame.Header().StreamID + if id%2 != 1 || id <= t.maxStreamID { + // illegal gRPC stream id. + grpclog.Println("transport: http2Server.HandleStreams received an illegal stream id: ", id) + t.Close() + break + } + t.maxStreamID = id + t.operateHeaders(frame, handle) + case *http2.DataFrame: + t.handleData(frame) + case *http2.RSTStreamFrame: + t.handleRSTStream(frame) + case *http2.SettingsFrame: + t.handleSettings(frame) + case *http2.PingFrame: + t.handlePing(frame) + case *http2.WindowUpdateFrame: + t.handleWindowUpdate(frame) + case *http2.GoAwayFrame: + break + default: + grpclog.Printf("transport: http2Server.HandleStreams found unhandled frame type %v.", frame) + } + } +} + +func (t *http2Server) getStream(f http2.Frame) (*Stream, bool) { + t.mu.Lock() + defer t.mu.Unlock() + if t.activeStreams == nil { + // The transport is closing. + return nil, false + } + s, ok := t.activeStreams[f.Header().StreamID] + if !ok { + // The stream is already done. + return nil, false + } + return s, true +} + +// updateWindow adjusts the inbound quota for the stream and the transport. +// Window updates will deliver to the controller for sending when +// the cumulative quota exceeds the corresponding threshold. +func (t *http2Server) updateWindow(s *Stream, n uint32) { + s.mu.Lock() + defer s.mu.Unlock() + if s.state == streamDone { + return + } + if w := t.fc.onRead(n); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + if w := s.fc.onRead(n); w > 0 { + t.controlBuf.put(&windowUpdate{s.id, w}) + } +} + +func (t *http2Server) handleData(f *http2.DataFrame) { + size := len(f.Data()) + if err := t.fc.onData(uint32(size)); err != nil { + grpclog.Printf("transport: http2Server %v", err) + t.Close() + return + } + // Select the right stream to dispatch. + s, ok := t.getStream(f) + if !ok { + if w := t.fc.onRead(uint32(size)); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + return + } + if size > 0 { + s.mu.Lock() + if s.state == streamDone { + s.mu.Unlock() + // The stream has been closed. Release the corresponding quota. + if w := t.fc.onRead(uint32(size)); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + return + } + if err := s.fc.onData(uint32(size)); err != nil { + s.mu.Unlock() + t.closeStream(s) + t.controlBuf.put(&resetStream{s.id, http2.ErrCodeFlowControl}) + return + } + s.mu.Unlock() + // TODO(bradfitz, zhaoq): A copy is required here because there is no + // guarantee f.Data() is consumed before the arrival of next frame. + // Can this copy be eliminated? + data := make([]byte, size) + copy(data, f.Data()) + s.write(recvMsg{data: data}) + } + if f.Header().Flags.Has(http2.FlagDataEndStream) { + // Received the end of stream from the client. + s.mu.Lock() + if s.state != streamDone { + if s.state == streamWriteDone { + s.state = streamDone + } else { + s.state = streamReadDone + } + } + s.mu.Unlock() + s.write(recvMsg{err: io.EOF}) + } +} + +func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) { + s, ok := t.getStream(f) + if !ok { + return + } + t.closeStream(s) +} + +func (t *http2Server) handleSettings(f *http2.SettingsFrame) { + if f.IsAck() { + return + } + var ss []http2.Setting + f.ForeachSetting(func(s http2.Setting) error { + ss = append(ss, s) + return nil + }) + // The settings will be applied once the ack is sent. + t.controlBuf.put(&settings{ack: true, ss: ss}) +} + +func (t *http2Server) handlePing(f *http2.PingFrame) { + pingAck := &ping{ack: true} + copy(pingAck.data[:], f.Data[:]) + t.controlBuf.put(pingAck) +} + +func (t *http2Server) handleWindowUpdate(f *http2.WindowUpdateFrame) { + id := f.Header().StreamID + incr := f.Increment + if id == 0 { + t.sendQuotaPool.add(int(incr)) + return + } + if s, ok := t.getStream(f); ok { + s.sendQuotaPool.add(int(incr)) + } +} + +func (t *http2Server) writeHeaders(s *Stream, b *bytes.Buffer, endStream bool) error { + first := true + endHeaders := false + var err error + // Sends the headers in a single batch. + for !endHeaders { + size := t.hBuf.Len() + if size > http2MaxFrameLen { + size = http2MaxFrameLen + } else { + endHeaders = true + } + if first { + p := http2.HeadersFrameParam{ + StreamID: s.id, + BlockFragment: b.Next(size), + EndStream: endStream, + EndHeaders: endHeaders, + } + err = t.framer.writeHeaders(endHeaders, p) + first = false + } else { + err = t.framer.writeContinuation(endHeaders, s.id, endHeaders, b.Next(size)) + } + if err != nil { + t.Close() + return ConnectionErrorf("transport: %v", err) + } + } + return nil +} + +// WriteHeader sends the header metedata md back to the client. +func (t *http2Server) WriteHeader(s *Stream, md metadata.MD) error { + s.mu.Lock() + if s.headerOk || s.state == streamDone { + s.mu.Unlock() + return ErrIllegalHeaderWrite + } + s.headerOk = true + s.mu.Unlock() + if _, err := wait(s.ctx, t.shutdownChan, t.writableChan); err != nil { + return err + } + t.hBuf.Reset() + t.hEnc.WriteField(hpack.HeaderField{Name: ":status", Value: "200"}) + t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"}) + if s.sendCompress != "" { + t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress}) + } + for k, v := range md { + if isReservedHeader(k) { + // Clients don't tolerate reading restricted headers after some non restricted ones were sent. + continue + } + for _, entry := range v { + t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry}) + } + } + if err := t.writeHeaders(s, t.hBuf, false); err != nil { + return err + } + t.writableChan <- 0 + return nil +} + +// WriteStatus sends stream status to the client and terminates the stream. +// There is no further I/O operations being able to perform on this stream. +// TODO(zhaoq): Now it indicates the end of entire stream. Revisit if early +// OK is adopted. +func (t *http2Server) WriteStatus(s *Stream, statusCode codes.Code, statusDesc string) error { + var headersSent bool + s.mu.Lock() + if s.state == streamDone { + s.mu.Unlock() + return nil + } + if s.headerOk { + headersSent = true + } + s.mu.Unlock() + if _, err := wait(s.ctx, t.shutdownChan, t.writableChan); err != nil { + return err + } + t.hBuf.Reset() + if !headersSent { + t.hEnc.WriteField(hpack.HeaderField{Name: ":status", Value: "200"}) + t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"}) + } + t.hEnc.WriteField( + hpack.HeaderField{ + Name: "grpc-status", + Value: strconv.Itoa(int(statusCode)), + }) + t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-message", Value: statusDesc}) + // Attach the trailer metadata. + for k, v := range s.trailer { + // Clients don't tolerate reading restricted headers after some non restricted ones were sent. + if isReservedHeader(k) { + continue + } + for _, entry := range v { + t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry}) + } + } + if err := t.writeHeaders(s, t.hBuf, true); err != nil { + t.Close() + return err + } + t.closeStream(s) + t.writableChan <- 0 + return nil +} + +// Write converts the data into HTTP2 data frame and sends it out. Non-nil error +// is returns if it fails (e.g., framing error, transport error). +func (t *http2Server) Write(s *Stream, data []byte, opts *Options) error { + // TODO(zhaoq): Support multi-writers for a single stream. + var writeHeaderFrame bool + s.mu.Lock() + if s.state == streamDone { + s.mu.Unlock() + return StreamErrorf(codes.Unknown, "the stream has been done") + } + if !s.headerOk { + writeHeaderFrame = true + s.headerOk = true + } + s.mu.Unlock() + if writeHeaderFrame { + if _, err := wait(s.ctx, t.shutdownChan, t.writableChan); err != nil { + return err + } + t.hBuf.Reset() + t.hEnc.WriteField(hpack.HeaderField{Name: ":status", Value: "200"}) + t.hEnc.WriteField(hpack.HeaderField{Name: "content-type", Value: "application/grpc"}) + if s.sendCompress != "" { + t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress}) + } + p := http2.HeadersFrameParam{ + StreamID: s.id, + BlockFragment: t.hBuf.Bytes(), + EndHeaders: true, + } + if err := t.framer.writeHeaders(false, p); err != nil { + t.Close() + return ConnectionErrorf("transport: %v", err) + } + t.writableChan <- 0 + } + r := bytes.NewBuffer(data) + for { + if r.Len() == 0 { + return nil + } + size := http2MaxFrameLen + s.sendQuotaPool.add(0) + // Wait until the stream has some quota to send the data. + sq, err := wait(s.ctx, t.shutdownChan, s.sendQuotaPool.acquire()) + if err != nil { + return err + } + t.sendQuotaPool.add(0) + // Wait until the transport has some quota to send the data. + tq, err := wait(s.ctx, t.shutdownChan, t.sendQuotaPool.acquire()) + if err != nil { + if _, ok := err.(StreamError); ok { + t.sendQuotaPool.cancel() + } + return err + } + if sq < size { + size = sq + } + if tq < size { + size = tq + } + p := r.Next(size) + ps := len(p) + if ps < sq { + // Overbooked stream quota. Return it back. + s.sendQuotaPool.add(sq - ps) + } + if ps < tq { + // Overbooked transport quota. Return it back. + t.sendQuotaPool.add(tq - ps) + } + t.framer.adjustNumWriters(1) + // Got some quota. Try to acquire writing privilege on the + // transport. + if _, err := wait(s.ctx, t.shutdownChan, t.writableChan); err != nil { + if _, ok := err.(StreamError); ok { + // Return the connection quota back. + t.sendQuotaPool.add(ps) + } + if t.framer.adjustNumWriters(-1) == 0 { + // This writer is the last one in this batch and has the + // responsibility to flush the buffered frames. It queues + // a flush request to controlBuf instead of flushing directly + // in order to avoid the race with other writing or flushing. + t.controlBuf.put(&flushIO{}) + } + return err + } + select { + case <-s.ctx.Done(): + t.sendQuotaPool.add(ps) + if t.framer.adjustNumWriters(-1) == 0 { + t.controlBuf.put(&flushIO{}) + } + t.writableChan <- 0 + return ContextErr(s.ctx.Err()) + default: + } + var forceFlush bool + if r.Len() == 0 && t.framer.adjustNumWriters(0) == 1 && !opts.Last { + forceFlush = true + } + if err := t.framer.writeData(forceFlush, s.id, false, p); err != nil { + t.Close() + return ConnectionErrorf("transport: %v", err) + } + if t.framer.adjustNumWriters(-1) == 0 { + t.framer.flushWrite() + } + t.writableChan <- 0 + } + +} + +func (t *http2Server) applySettings(ss []http2.Setting) { + for _, s := range ss { + if s.ID == http2.SettingInitialWindowSize { + t.mu.Lock() + defer t.mu.Unlock() + for _, stream := range t.activeStreams { + stream.sendQuotaPool.reset(int(s.Val - t.streamSendQuota)) + } + t.streamSendQuota = s.Val + } + + } +} + +// controller running in a separate goroutine takes charge of sending control +// frames (e.g., window update, reset stream, setting, etc.) to the server. +func (t *http2Server) controller() { + for { + select { + case i := <-t.controlBuf.get(): + t.controlBuf.load() + select { + case <-t.writableChan: + switch i := i.(type) { + case *windowUpdate: + t.framer.writeWindowUpdate(true, i.streamID, i.increment) + case *settings: + if i.ack { + t.framer.writeSettingsAck(true) + t.applySettings(i.ss) + } else { + t.framer.writeSettings(true, i.ss...) + } + case *resetStream: + t.framer.writeRSTStream(true, i.streamID, i.code) + case *flushIO: + t.framer.flushWrite() + case *ping: + t.framer.writePing(true, i.ack, i.data) + default: + grpclog.Printf("transport: http2Server.controller got unexpected item type %v\n", i) + } + t.writableChan <- 0 + continue + case <-t.shutdownChan: + return + } + case <-t.shutdownChan: + return + } + } +} + +// Close starts shutting down the http2Server transport. +// TODO(zhaoq): Now the destruction is not blocked on any pending streams. This +// could cause some resource issue. Revisit this later. +func (t *http2Server) Close() (err error) { + t.mu.Lock() + if t.state == closing { + t.mu.Unlock() + return errors.New("transport: Close() was already called") + } + t.state = closing + streams := t.activeStreams + t.activeStreams = nil + t.mu.Unlock() + close(t.shutdownChan) + err = t.conn.Close() + // Cancel all active streams. + for _, s := range streams { + s.cancel() + } + return +} + +// closeStream clears the footprint of a stream when the stream is not needed +// any more. +func (t *http2Server) closeStream(s *Stream) { + t.mu.Lock() + delete(t.activeStreams, s.id) + t.mu.Unlock() + // In case stream sending and receiving are invoked in separate + // goroutines (e.g., bi-directional streaming), cancel needs to be + // called to interrupt the potential blocking on other goroutines. + s.cancel() + s.mu.Lock() + if q := s.fc.resetPendingData(); q > 0 { + if w := t.fc.onRead(q); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + } + if s.state == streamDone { + s.mu.Unlock() + return + } + s.state = streamDone + s.mu.Unlock() +} + +func (t *http2Server) RemoteAddr() net.Addr { + return t.conn.RemoteAddr() +} diff --git a/ingress/vendor/google.golang.org/grpc/transport/http_util.go b/ingress/vendor/google.golang.org/grpc/transport/http_util.go new file mode 100644 index 0000000000..f2e23dcec3 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/transport/http_util.go @@ -0,0 +1,435 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 transport + +import ( + "bufio" + "fmt" + "io" + "net" + "strconv" + "strings" + "sync/atomic" + "time" + + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" +) + +const ( + // The primary user agent + primaryUA = "grpc-go/0.11" + // http2MaxFrameLen specifies the max length of a HTTP2 frame. + http2MaxFrameLen = 16384 // 16KB frame + // http://http2.github.io/http2-spec/#SettingValues + http2InitHeaderTableSize = 4096 + // http2IOBufSize specifies the buffer size for sending frames. + http2IOBufSize = 32 * 1024 +) + +var ( + clientPreface = []byte(http2.ClientPreface) + http2ErrConvTab = map[http2.ErrCode]codes.Code{ + http2.ErrCodeNo: codes.Internal, + http2.ErrCodeProtocol: codes.Internal, + http2.ErrCodeInternal: codes.Internal, + http2.ErrCodeFlowControl: codes.ResourceExhausted, + http2.ErrCodeSettingsTimeout: codes.Internal, + http2.ErrCodeStreamClosed: codes.Internal, + http2.ErrCodeFrameSize: codes.Internal, + http2.ErrCodeRefusedStream: codes.Unavailable, + http2.ErrCodeCancel: codes.Canceled, + http2.ErrCodeCompression: codes.Internal, + http2.ErrCodeConnect: codes.Internal, + http2.ErrCodeEnhanceYourCalm: codes.ResourceExhausted, + http2.ErrCodeInadequateSecurity: codes.PermissionDenied, + http2.ErrCodeHTTP11Required: codes.FailedPrecondition, + } + statusCodeConvTab = map[codes.Code]http2.ErrCode{ + codes.Internal: http2.ErrCodeInternal, + codes.Canceled: http2.ErrCodeCancel, + codes.Unavailable: http2.ErrCodeRefusedStream, + codes.ResourceExhausted: http2.ErrCodeEnhanceYourCalm, + codes.PermissionDenied: http2.ErrCodeInadequateSecurity, + } +) + +// Records the states during HPACK decoding. Must be reset once the +// decoding of the entire headers are finished. +type decodeState struct { + err error // first error encountered decoding + + encoding string + // statusCode caches the stream status received from the trailer + // the server sent. Client side only. + statusCode codes.Code + statusDesc string + // Server side only fields. + timeoutSet bool + timeout time.Duration + method string + // key-value metadata map from the peer. + mdata map[string][]string +} + +// isReservedHeader checks whether hdr belongs to HTTP2 headers +// reserved by gRPC protocol. Any other headers are classified as the +// user-specified metadata. +func isReservedHeader(hdr string) bool { + if hdr != "" && hdr[0] == ':' { + return true + } + switch hdr { + case "content-type", + "grpc-message-type", + "grpc-encoding", + "grpc-message", + "grpc-status", + "grpc-timeout", + "te": + return true + default: + return false + } +} + +// isWhitelistedPseudoHeader checks whether hdr belongs to HTTP2 pseudoheaders +// that should be propagated into metadata visible to users. +func isWhitelistedPseudoHeader(hdr string) bool { + switch hdr { + case ":authority": + return true + default: + return false + } +} + +func (d *decodeState) setErr(err error) { + if d.err == nil { + d.err = err + } +} + +func validContentType(t string) bool { + e := "application/grpc" + if !strings.HasPrefix(t, e) { + return false + } + // Support variations on the content-type + // (e.g. "application/grpc+blah", "application/grpc;blah"). + if len(t) > len(e) && t[len(e)] != '+' && t[len(e)] != ';' { + return false + } + return true +} + +func (d *decodeState) processHeaderField(f hpack.HeaderField) { + switch f.Name { + case "content-type": + if !validContentType(f.Value) { + d.setErr(StreamErrorf(codes.FailedPrecondition, "transport: received the unexpected content-type %q", f.Value)) + return + } + case "grpc-encoding": + d.encoding = f.Value + case "grpc-status": + code, err := strconv.Atoi(f.Value) + if err != nil { + d.setErr(StreamErrorf(codes.Internal, "transport: malformed grpc-status: %v", err)) + return + } + d.statusCode = codes.Code(code) + case "grpc-message": + d.statusDesc = f.Value + case "grpc-timeout": + d.timeoutSet = true + var err error + d.timeout, err = timeoutDecode(f.Value) + if err != nil { + d.setErr(StreamErrorf(codes.Internal, "transport: malformed time-out: %v", err)) + return + } + case ":path": + d.method = f.Value + default: + if !isReservedHeader(f.Name) || isWhitelistedPseudoHeader(f.Name) { + if f.Name == "user-agent" { + i := strings.LastIndex(f.Value, " ") + if i == -1 { + // There is no application user agent string being set. + return + } + // Extract the application user agent string. + f.Value = f.Value[:i] + } + if d.mdata == nil { + d.mdata = make(map[string][]string) + } + k, v, err := metadata.DecodeKeyValue(f.Name, f.Value) + if err != nil { + grpclog.Printf("Failed to decode (%q, %q): %v", f.Name, f.Value, err) + return + } + d.mdata[k] = append(d.mdata[k], v) + } + } +} + +type timeoutUnit uint8 + +const ( + hour timeoutUnit = 'H' + minute timeoutUnit = 'M' + second timeoutUnit = 'S' + millisecond timeoutUnit = 'm' + microsecond timeoutUnit = 'u' + nanosecond timeoutUnit = 'n' +) + +func timeoutUnitToDuration(u timeoutUnit) (d time.Duration, ok bool) { + switch u { + case hour: + return time.Hour, true + case minute: + return time.Minute, true + case second: + return time.Second, true + case millisecond: + return time.Millisecond, true + case microsecond: + return time.Microsecond, true + case nanosecond: + return time.Nanosecond, true + default: + } + return +} + +const maxTimeoutValue int64 = 100000000 - 1 + +// div does integer division and round-up the result. Note that this is +// equivalent to (d+r-1)/r but has less chance to overflow. +func div(d, r time.Duration) int64 { + if m := d % r; m > 0 { + return int64(d/r + 1) + } + return int64(d / r) +} + +// TODO(zhaoq): It is the simplistic and not bandwidth efficient. Improve it. +func timeoutEncode(t time.Duration) string { + if d := div(t, time.Nanosecond); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "n" + } + if d := div(t, time.Microsecond); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "u" + } + if d := div(t, time.Millisecond); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "m" + } + if d := div(t, time.Second); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "S" + } + if d := div(t, time.Minute); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "M" + } + // Note that maxTimeoutValue * time.Hour > MaxInt64. + return strconv.FormatInt(div(t, time.Hour), 10) + "H" +} + +func timeoutDecode(s string) (time.Duration, error) { + size := len(s) + if size < 2 { + return 0, fmt.Errorf("transport: timeout string is too short: %q", s) + } + unit := timeoutUnit(s[size-1]) + d, ok := timeoutUnitToDuration(unit) + if !ok { + return 0, fmt.Errorf("transport: timeout unit is not recognized: %q", s) + } + t, err := strconv.ParseInt(s[:size-1], 10, 64) + if err != nil { + return 0, err + } + return d * time.Duration(t), nil +} + +type framer struct { + numWriters int32 + reader io.Reader + writer *bufio.Writer + fr *http2.Framer +} + +func newFramer(conn net.Conn) *framer { + f := &framer{ + reader: bufio.NewReaderSize(conn, http2IOBufSize), + writer: bufio.NewWriterSize(conn, http2IOBufSize), + } + f.fr = http2.NewFramer(f.writer, f.reader) + f.fr.ReadMetaHeaders = hpack.NewDecoder(http2InitHeaderTableSize, nil) + return f +} + +func (f *framer) adjustNumWriters(i int32) int32 { + return atomic.AddInt32(&f.numWriters, i) +} + +// The following writeXXX functions can only be called when the caller gets +// unblocked from writableChan channel (i.e., owns the privilege to write). + +func (f *framer) writeContinuation(forceFlush bool, streamID uint32, endHeaders bool, headerBlockFragment []byte) error { + if err := f.fr.WriteContinuation(streamID, endHeaders, headerBlockFragment); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeData(forceFlush bool, streamID uint32, endStream bool, data []byte) error { + if err := f.fr.WriteData(streamID, endStream, data); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeGoAway(forceFlush bool, maxStreamID uint32, code http2.ErrCode, debugData []byte) error { + if err := f.fr.WriteGoAway(maxStreamID, code, debugData); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeHeaders(forceFlush bool, p http2.HeadersFrameParam) error { + if err := f.fr.WriteHeaders(p); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writePing(forceFlush, ack bool, data [8]byte) error { + if err := f.fr.WritePing(ack, data); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writePriority(forceFlush bool, streamID uint32, p http2.PriorityParam) error { + if err := f.fr.WritePriority(streamID, p); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writePushPromise(forceFlush bool, p http2.PushPromiseParam) error { + if err := f.fr.WritePushPromise(p); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeRSTStream(forceFlush bool, streamID uint32, code http2.ErrCode) error { + if err := f.fr.WriteRSTStream(streamID, code); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeSettings(forceFlush bool, settings ...http2.Setting) error { + if err := f.fr.WriteSettings(settings...); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeSettingsAck(forceFlush bool) error { + if err := f.fr.WriteSettingsAck(); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) writeWindowUpdate(forceFlush bool, streamID, incr uint32) error { + if err := f.fr.WriteWindowUpdate(streamID, incr); err != nil { + return err + } + if forceFlush { + return f.writer.Flush() + } + return nil +} + +func (f *framer) flushWrite() error { + return f.writer.Flush() +} + +func (f *framer) readFrame() (http2.Frame, error) { + return f.fr.ReadFrame() +} + +func (f *framer) errorDetail() error { + return f.fr.ErrorDetail() +} diff --git a/ingress/vendor/google.golang.org/grpc/transport/transport.go b/ingress/vendor/google.golang.org/grpc/transport/transport.go new file mode 100644 index 0000000000..599f25d177 --- /dev/null +++ b/ingress/vendor/google.golang.org/grpc/transport/transport.go @@ -0,0 +1,515 @@ +/* + * + * Copyright 2014, Google Inc. + * 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 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 transport defines and implements message oriented communication channel +to complete various transactions (e.g., an RPC). +*/ +package transport + +import ( + "bytes" + "errors" + "fmt" + "io" + "net" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/trace" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/metadata" +) + +// recvMsg represents the received msg from the transport. All transport +// protocol specific info has been removed. +type recvMsg struct { + data []byte + // nil: received some data + // io.EOF: stream is completed. data is nil. + // other non-nil error: transport failure. data is nil. + err error +} + +func (*recvMsg) item() {} + +// All items in an out of a recvBuffer should be the same type. +type item interface { + item() +} + +// recvBuffer is an unbounded channel of item. +type recvBuffer struct { + c chan item + mu sync.Mutex + backlog []item +} + +func newRecvBuffer() *recvBuffer { + b := &recvBuffer{ + c: make(chan item, 1), + } + return b +} + +func (b *recvBuffer) put(r item) { + b.mu.Lock() + defer b.mu.Unlock() + if len(b.backlog) == 0 { + select { + case b.c <- r: + return + default: + } + } + b.backlog = append(b.backlog, r) +} + +func (b *recvBuffer) load() { + b.mu.Lock() + defer b.mu.Unlock() + if len(b.backlog) > 0 { + select { + case b.c <- b.backlog[0]: + b.backlog = b.backlog[1:] + default: + } + } +} + +// get returns the channel that receives an item in the buffer. +// +// Upon receipt of an item, the caller should call load to send another +// item onto the channel if there is any. +func (b *recvBuffer) get() <-chan item { + return b.c +} + +// recvBufferReader implements io.Reader interface to read the data from +// recvBuffer. +type recvBufferReader struct { + ctx context.Context + recv *recvBuffer + last *bytes.Reader // Stores the remaining data in the previous calls. + err error +} + +// Read reads the next len(p) bytes from last. If last is drained, it tries to +// read additional data from recv. It blocks if there no additional data available +// in recv. If Read returns any non-nil error, it will continue to return that error. +func (r *recvBufferReader) Read(p []byte) (n int, err error) { + if r.err != nil { + return 0, r.err + } + defer func() { r.err = err }() + if r.last != nil && r.last.Len() > 0 { + // Read remaining data left in last call. + return r.last.Read(p) + } + select { + case <-r.ctx.Done(): + return 0, ContextErr(r.ctx.Err()) + case i := <-r.recv.get(): + r.recv.load() + m := i.(*recvMsg) + if m.err != nil { + return 0, m.err + } + r.last = bytes.NewReader(m.data) + return r.last.Read(p) + } +} + +type streamState uint8 + +const ( + streamActive streamState = iota + streamWriteDone // EndStream sent + streamReadDone // EndStream received + streamDone // sendDone and recvDone or RSTStreamFrame is sent or received. +) + +// Stream represents an RPC in the transport layer. +type Stream struct { + id uint32 + // nil for client side Stream. + st ServerTransport + // ctx is the associated context of the stream. + ctx context.Context + cancel context.CancelFunc + // method records the associated RPC method of the stream. + method string + recvCompress string + sendCompress string + buf *recvBuffer + dec io.Reader + fc *inFlow + recvQuota uint32 + // The accumulated inbound quota pending for window update. + updateQuota uint32 + // The handler to control the window update procedure for both this + // particular stream and the associated transport. + windowHandler func(int) + + sendQuotaPool *quotaPool + // Close headerChan to indicate the end of reception of header metadata. + headerChan chan struct{} + // header caches the received header metadata. + header metadata.MD + // The key-value map of trailer metadata. + trailer metadata.MD + + mu sync.RWMutex // guard the following + // headerOK becomes true from the first header is about to send. + headerOk bool + state streamState + // true iff headerChan is closed. Used to avoid closing headerChan + // multiple times. + headerDone bool + // the status received from the server. + statusCode codes.Code + statusDesc string +} + +// RecvCompress returns the compression algorithm applied to the inbound +// message. It is empty string if there is no compression applied. +func (s *Stream) RecvCompress() string { + return s.recvCompress +} + +// SetSendCompress sets the compression algorithm to the stream. +func (s *Stream) SetSendCompress(str string) { + s.sendCompress = str +} + +// Header acquires the key-value pairs of header metadata once it +// is available. It blocks until i) the metadata is ready or ii) there is no +// header metadata or iii) the stream is cancelled/expired. +func (s *Stream) Header() (metadata.MD, error) { + select { + case <-s.ctx.Done(): + return nil, ContextErr(s.ctx.Err()) + case <-s.headerChan: + return s.header.Copy(), nil + } +} + +// Trailer returns the cached trailer metedata. Note that if it is not called +// after the entire stream is done, it could return an empty MD. Client +// side only. +func (s *Stream) Trailer() metadata.MD { + s.mu.RLock() + defer s.mu.RUnlock() + return s.trailer.Copy() +} + +// ServerTransport returns the underlying ServerTransport for the stream. +// The client side stream always returns nil. +func (s *Stream) ServerTransport() ServerTransport { + return s.st +} + +// Context returns the context of the stream. +func (s *Stream) Context() context.Context { + return s.ctx +} + +// TraceContext recreates the context of s with a trace.Trace. +func (s *Stream) TraceContext(tr trace.Trace) { + s.ctx = trace.NewContext(s.ctx, tr) +} + +// Method returns the method for the stream. +func (s *Stream) Method() string { + return s.method +} + +// StatusCode returns statusCode received from the server. +func (s *Stream) StatusCode() codes.Code { + return s.statusCode +} + +// StatusDesc returns statusDesc received from the server. +func (s *Stream) StatusDesc() string { + return s.statusDesc +} + +// ErrIllegalTrailerSet indicates that the trailer has already been set or it +// is too late to do so. +var ErrIllegalTrailerSet = errors.New("transport: trailer has been set") + +// SetTrailer sets the trailer metadata which will be sent with the RPC status +// by the server. This can only be called at most once. Server side only. +func (s *Stream) SetTrailer(md metadata.MD) error { + s.mu.Lock() + defer s.mu.Unlock() + if s.trailer != nil { + return ErrIllegalTrailerSet + } + s.trailer = md.Copy() + return nil +} + +func (s *Stream) write(m recvMsg) { + s.buf.put(&m) +} + +// Read reads all the data available for this Stream from the transport and +// passes them into the decoder, which converts them into a gRPC message stream. +// The error is io.EOF when the stream is done or another non-nil error if +// the stream broke. +func (s *Stream) Read(p []byte) (n int, err error) { + n, err = s.dec.Read(p) + if err != nil { + return + } + s.windowHandler(n) + return +} + +// The key to save transport.Stream in the context. +type streamKey struct{} + +// newContextWithStream creates a new context from ctx and attaches stream +// to it. +func newContextWithStream(ctx context.Context, stream *Stream) context.Context { + return context.WithValue(ctx, streamKey{}, stream) +} + +// StreamFromContext returns the stream saved in ctx. +func StreamFromContext(ctx context.Context) (s *Stream, ok bool) { + s, ok = ctx.Value(streamKey{}).(*Stream) + return +} + +// state of transport +type transportState int + +const ( + reachable transportState = iota + unreachable + closing + draining +) + +// NewServerTransport creates a ServerTransport with conn or non-nil error +// if it fails. +func NewServerTransport(protocol string, conn net.Conn, maxStreams uint32, authInfo credentials.AuthInfo) (ServerTransport, error) { + return newHTTP2Server(conn, maxStreams, authInfo) +} + +// ConnectOptions covers all relevant options for dialing a server. +type ConnectOptions struct { + // UserAgent is the application user agent. + UserAgent string + // Dialer specifies how to dial a network address. + Dialer func(string, time.Duration) (net.Conn, error) + // PerRPCCredentials stores the PerRPCCredentials required to issue RPCs. + PerRPCCredentials []credentials.PerRPCCredentials + // TransportCredentials stores the Authenticator required to setup a client connection. + TransportCredentials credentials.TransportCredentials + // Timeout specifies the timeout for dialing a ClientTransport. + Timeout time.Duration +} + +// NewClientTransport establishes the transport with the required ConnectOptions +// and returns it to the caller. +func NewClientTransport(target string, opts *ConnectOptions) (ClientTransport, error) { + return newHTTP2Client(target, opts) +} + +// Options provides additional hints and information for message +// transmission. +type Options struct { + // Last indicates whether this write is the last piece for + // this stream. + Last bool + + // Delay is a hint to the transport implementation for whether + // the data could be buffered for a batching write. The + // Transport implementation may ignore the hint. + Delay bool +} + +// CallHdr carries the information of a particular RPC. +type CallHdr struct { + // Host specifies the peer's host. + Host string + + // Method specifies the operation to perform. + Method string + + // RecvCompress specifies the compression algorithm applied on + // inbound messages. + RecvCompress string + + // SendCompress specifies the compression algorithm applied on + // outbound message. + SendCompress string + + // Flush indicates whether a new stream command should be sent + // to the peer without waiting for the first data. This is + // only a hint. The transport may modify the flush decision + // for performance purposes. + Flush bool +} + +// ClientTransport is the common interface for all gRPC client-side transport +// implementations. +type ClientTransport interface { + // Close tears down this transport. Once it returns, the transport + // should not be accessed any more. The caller must make sure this + // is called only once. + Close() error + + // GracefulClose starts to tear down the transport. It stops accepting + // new RPCs and wait the completion of the pending RPCs. + GracefulClose() error + + // Write sends the data for the given stream. A nil stream indicates + // the write is to be performed on the transport as a whole. + Write(s *Stream, data []byte, opts *Options) error + + // NewStream creates a Stream for an RPC. + NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, error) + + // CloseStream clears the footprint of a stream when the stream is + // not needed any more. The err indicates the error incurred when + // CloseStream is called. Must be called when a stream is finished + // unless the associated transport is closing. + CloseStream(stream *Stream, err error) + + // Error returns a channel that is closed when some I/O error + // happens. Typically the caller should have a goroutine to monitor + // this in order to take action (e.g., close the current transport + // and create a new one) in error case. It should not return nil + // once the transport is initiated. + Error() <-chan struct{} +} + +// ServerTransport is the common interface for all gRPC server-side transport +// implementations. +// +// Methods may be called concurrently from multiple goroutines, but +// Write methods for a given Stream will be called serially. +type ServerTransport interface { + // HandleStreams receives incoming streams using the given handler. + HandleStreams(func(*Stream)) + + // WriteHeader sends the header metadata for the given stream. + // WriteHeader may not be called on all streams. + WriteHeader(s *Stream, md metadata.MD) error + + // Write sends the data for the given stream. + // Write may not be called on all streams. + Write(s *Stream, data []byte, opts *Options) error + + // WriteStatus sends the status of a stream to the client. + // WriteStatus is the final call made on a stream and always + // occurs. + WriteStatus(s *Stream, statusCode codes.Code, statusDesc string) error + + // Close tears down the transport. Once it is called, the transport + // should not be accessed any more. All the pending streams and their + // handlers will be terminated asynchronously. + Close() error + + // RemoteAddr returns the remote network address. + RemoteAddr() net.Addr +} + +// StreamErrorf creates an StreamError with the specified error code and description. +func StreamErrorf(c codes.Code, format string, a ...interface{}) StreamError { + return StreamError{ + Code: c, + Desc: fmt.Sprintf(format, a...), + } +} + +// ConnectionErrorf creates an ConnectionError with the specified error description. +func ConnectionErrorf(format string, a ...interface{}) ConnectionError { + return ConnectionError{ + Desc: fmt.Sprintf(format, a...), + } +} + +// ConnectionError is an error that results in the termination of the +// entire connection and the retry of all the active streams. +type ConnectionError struct { + Desc string +} + +func (e ConnectionError) Error() string { + return fmt.Sprintf("connection error: desc = %q", e.Desc) +} + +// ErrConnClosing indicates that the transport is closing. +var ErrConnClosing = ConnectionError{Desc: "transport is closing"} + +// StreamError is an error that only affects one stream within a connection. +type StreamError struct { + Code codes.Code + Desc string +} + +func (e StreamError) Error() string { + return fmt.Sprintf("stream error: code = %d desc = %q", e.Code, e.Desc) +} + +// ContextErr converts the error from context package into a StreamError. +func ContextErr(err error) StreamError { + switch err { + case context.DeadlineExceeded: + return StreamErrorf(codes.DeadlineExceeded, "%v", err) + case context.Canceled: + return StreamErrorf(codes.Canceled, "%v", err) + } + panic(fmt.Sprintf("Unexpected error from context packet: %v", err)) +} + +// wait blocks until it can receive from ctx.Done, closing, or proceed. +// If it receives from ctx.Done, it returns 0, the StreamError for ctx.Err. +// If it receives from closing, it returns 0, ErrConnClosing. +// If it receives from proceed, it returns the received integer, nil. +func wait(ctx context.Context, closing <-chan struct{}, proceed <-chan int) (int, error) { + select { + case <-ctx.Done(): + return 0, ContextErr(ctx.Err()) + case <-closing: + return 0, ErrConnClosing + case i := <-proceed: + return i, nil + } +} diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/.gitignore b/ingress/vendor/gopkg.in/fsnotify.v1/.gitignore new file mode 100644 index 0000000000..4cd0cbaf43 --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/.gitignore @@ -0,0 +1,6 @@ +# Setup a Global .gitignore for OS and editor generated files: +# https://help.github.com/articles/ignoring-files +# git config --global core.excludesfile ~/.gitignore_global + +.vagrant +*.sublime-project diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/.travis.yml b/ingress/vendor/gopkg.in/fsnotify.v1/.travis.yml new file mode 100644 index 0000000000..70988769cc --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/.travis.yml @@ -0,0 +1,23 @@ +sudo: false +language: go + +go: + - 1.5.2 + +before_script: + - go get -u github.com/golang/lint/golint + +script: + - go test -v --race ./... + +after_script: + - test -z "$(gofmt -s -l -w . | tee /dev/stderr)" + - test -z "$(golint ./... | tee /dev/stderr)" + - go vet ./... + +os: + - linux + - osx + +notifications: + email: false diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/AUTHORS b/ingress/vendor/gopkg.in/fsnotify.v1/AUTHORS new file mode 100644 index 0000000000..2b9d1fdd62 --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/AUTHORS @@ -0,0 +1,40 @@ +# Names should be added to this file as +# Name or Organization +# The email address is not required for organizations. + +# You can update this list using the following command: +# +# $ git shortlog -se | awk '{print $2 " " $3 " " $4}' + +# Please keep the list sorted. + +Adrien Bustany +Caleb Spare +Case Nelson +Chris Howey +Christoffer Buchholz +Daniel Wagner-Hall +Dave Cheney +Evan Phoenix +Francisco Souza +Hari haran +John C Barstow +Kelvin Fo +Ken-ichirou MATSUZAWA +Matt Layher +Nathan Youngman +Paul Hammond +Pawel Knap +Pieter Droogendijk +Pursuit92 +Riku Voipio +Rob Figueiredo +Soge Zhang +Tilak Sharma +Travis Cline +Tudor Golubenco +Yukang +bronze1man +debrando +henrikedwards +铁哥 diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/CHANGELOG.md b/ingress/vendor/gopkg.in/fsnotify.v1/CHANGELOG.md new file mode 100644 index 0000000000..d37247e0b5 --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/CHANGELOG.md @@ -0,0 +1,283 @@ +# Changelog + +## v1.2.9 / 2016-01-13 + +kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/go-fsnotify/fsnotify/pull/111) (thanks @bep) + +## v1.2.8 / 2015-12-17 + +* kqueue: fix race condition in Close [#105](https://github.com/go-fsnotify/fsnotify/pull/105) (thanks @djui for reporting the issue and @ppknap for writing a failing test) +* inotify: fix race in test +* enable race detection for continuous integration (Linux, Mac, Windows) + +## v1.2.5 / 2015-10-17 + +* inotify: use epoll_create1 for arm64 support (requires Linux 2.6.27 or later) [#100](https://github.com/go-fsnotify/fsnotify/pull/100) (thanks @suihkulokki) +* inotify: fix path leaks [#73](https://github.com/go-fsnotify/fsnotify/pull/73) (thanks @chamaken) +* kqueue: watch for rename events on subdirectories [#83](https://github.com/go-fsnotify/fsnotify/pull/83) (thanks @guotie) +* kqueue: avoid infinite loops from symlinks cycles [#101](https://github.com/go-fsnotify/fsnotify/pull/101) (thanks @illicitonion) + +## v1.2.1 / 2015-10-14 + +* kqueue: don't watch named pipes [#98](https://github.com/go-fsnotify/fsnotify/pull/98) (thanks @evanphx) + +## v1.2.0 / 2015-02-08 + +* inotify: use epoll to wake up readEvents [#66](https://github.com/go-fsnotify/fsnotify/pull/66) (thanks @PieterD) +* inotify: closing watcher should now always shut down goroutine [#63](https://github.com/go-fsnotify/fsnotify/pull/63) (thanks @PieterD) +* kqueue: close kqueue after removing watches, fixes [#59](https://github.com/go-fsnotify/fsnotify/issues/59) + +## v1.1.1 / 2015-02-05 + +* inotify: Retry read on EINTR [#61](https://github.com/go-fsnotify/fsnotify/issues/61) (thanks @PieterD) + +## v1.1.0 / 2014-12-12 + +* kqueue: rework internals [#43](https://github.com/go-fsnotify/fsnotify/pull/43) + * add low-level functions + * only need to store flags on directories + * less mutexes [#13](https://github.com/go-fsnotify/fsnotify/issues/13) + * done can be an unbuffered channel + * remove calls to os.NewSyscallError +* More efficient string concatenation for Event.String() [#52](https://github.com/go-fsnotify/fsnotify/pull/52) (thanks @mdlayher) +* kqueue: fix regression in rework causing subdirectories to be watched [#48](https://github.com/go-fsnotify/fsnotify/issues/48) +* kqueue: cleanup internal watch before sending remove event [#51](https://github.com/go-fsnotify/fsnotify/issues/51) + +## v1.0.4 / 2014-09-07 + +* kqueue: add dragonfly to the build tags. +* Rename source code files, rearrange code so exported APIs are at the top. +* Add done channel to example code. [#37](https://github.com/go-fsnotify/fsnotify/pull/37) (thanks @chenyukang) + +## v1.0.3 / 2014-08-19 + +* [Fix] Windows MOVED_TO now translates to Create like on BSD and Linux. [#36](https://github.com/go-fsnotify/fsnotify/issues/36) + +## v1.0.2 / 2014-08-17 + +* [Fix] Missing create events on OS X. [#14](https://github.com/go-fsnotify/fsnotify/issues/14) (thanks @zhsso) +* [Fix] Make ./path and path equivalent. (thanks @zhsso) + +## v1.0.0 / 2014-08-15 + +* [API] Remove AddWatch on Windows, use Add. +* Improve documentation for exported identifiers. [#30](https://github.com/go-fsnotify/fsnotify/issues/30) +* Minor updates based on feedback from golint. + +## dev / 2014-07-09 + +* Moved to [github.com/go-fsnotify/fsnotify](https://github.com/go-fsnotify/fsnotify). +* Use os.NewSyscallError instead of returning errno (thanks @hariharan-uno) + +## dev / 2014-07-04 + +* kqueue: fix incorrect mutex used in Close() +* Update example to demonstrate usage of Op. + +## dev / 2014-06-28 + +* [API] Don't set the Write Op for attribute notifications [#4](https://github.com/go-fsnotify/fsnotify/issues/4) +* Fix for String() method on Event (thanks Alex Brainman) +* Don't build on Plan 9 or Solaris (thanks @4ad) + +## dev / 2014-06-21 + +* Events channel of type Event rather than *Event. +* [internal] use syscall constants directly for inotify and kqueue. +* [internal] kqueue: rename events to kevents and fileEvent to event. + +## dev / 2014-06-19 + +* Go 1.3+ required on Windows (uses syscall.ERROR_MORE_DATA internally). +* [internal] remove cookie from Event struct (unused). +* [internal] Event struct has the same definition across every OS. +* [internal] remove internal watch and removeWatch methods. + +## dev / 2014-06-12 + +* [API] Renamed Watch() to Add() and RemoveWatch() to Remove(). +* [API] Pluralized channel names: Events and Errors. +* [API] Renamed FileEvent struct to Event. +* [API] Op constants replace methods like IsCreate(). + +## dev / 2014-06-12 + +* Fix data race on kevent buffer (thanks @tilaks) [#98](https://github.com/howeyc/fsnotify/pull/98) + +## dev / 2014-05-23 + +* [API] Remove current implementation of WatchFlags. + * current implementation doesn't take advantage of OS for efficiency + * provides little benefit over filtering events as they are received, but has extra bookkeeping and mutexes + * no tests for the current implementation + * not fully implemented on Windows [#93](https://github.com/howeyc/fsnotify/issues/93#issuecomment-39285195) + +## v0.9.3 / 2014-12-31 + +* kqueue: cleanup internal watch before sending remove event [#51](https://github.com/go-fsnotify/fsnotify/issues/51) + +## v0.9.2 / 2014-08-17 + +* [Backport] Fix missing create events on OS X. [#14](https://github.com/go-fsnotify/fsnotify/issues/14) (thanks @zhsso) + +## v0.9.1 / 2014-06-12 + +* Fix data race on kevent buffer (thanks @tilaks) [#98](https://github.com/howeyc/fsnotify/pull/98) + +## v0.9.0 / 2014-01-17 + +* IsAttrib() for events that only concern a file's metadata [#79][] (thanks @abustany) +* [Fix] kqueue: fix deadlock [#77][] (thanks @cespare) +* [NOTICE] Development has moved to `code.google.com/p/go.exp/fsnotify` in preparation for inclusion in the Go standard library. + +## v0.8.12 / 2013-11-13 + +* [API] Remove FD_SET and friends from Linux adapter + +## v0.8.11 / 2013-11-02 + +* [Doc] Add Changelog [#72][] (thanks @nathany) +* [Doc] Spotlight and double modify events on OS X [#62][] (reported by @paulhammond) + +## v0.8.10 / 2013-10-19 + +* [Fix] kqueue: remove file watches when parent directory is removed [#71][] (reported by @mdwhatcott) +* [Fix] kqueue: race between Close and readEvents [#70][] (reported by @bernerdschaefer) +* [Doc] specify OS-specific limits in README (thanks @debrando) + +## v0.8.9 / 2013-09-08 + +* [Doc] Contributing (thanks @nathany) +* [Doc] update package path in example code [#63][] (thanks @paulhammond) +* [Doc] GoCI badge in README (Linux only) [#60][] +* [Doc] Cross-platform testing with Vagrant [#59][] (thanks @nathany) + +## v0.8.8 / 2013-06-17 + +* [Fix] Windows: handle `ERROR_MORE_DATA` on Windows [#49][] (thanks @jbowtie) + +## v0.8.7 / 2013-06-03 + +* [API] Make syscall flags internal +* [Fix] inotify: ignore event changes +* [Fix] race in symlink test [#45][] (reported by @srid) +* [Fix] tests on Windows +* lower case error messages + +## v0.8.6 / 2013-05-23 + +* kqueue: Use EVT_ONLY flag on Darwin +* [Doc] Update README with full example + +## v0.8.5 / 2013-05-09 + +* [Fix] inotify: allow monitoring of "broken" symlinks (thanks @tsg) + +## v0.8.4 / 2013-04-07 + +* [Fix] kqueue: watch all file events [#40][] (thanks @ChrisBuchholz) + +## v0.8.3 / 2013-03-13 + +* [Fix] inoitfy/kqueue memory leak [#36][] (reported by @nbkolchin) +* [Fix] kqueue: use fsnFlags for watching a directory [#33][] (reported by @nbkolchin) + +## v0.8.2 / 2013-02-07 + +* [Doc] add Authors +* [Fix] fix data races for map access [#29][] (thanks @fsouza) + +## v0.8.1 / 2013-01-09 + +* [Fix] Windows path separators +* [Doc] BSD License + +## v0.8.0 / 2012-11-09 + +* kqueue: directory watching improvements (thanks @vmirage) +* inotify: add `IN_MOVED_TO` [#25][] (requested by @cpisto) +* [Fix] kqueue: deleting watched directory [#24][] (reported by @jakerr) + +## v0.7.4 / 2012-10-09 + +* [Fix] inotify: fixes from https://codereview.appspot.com/5418045/ (ugorji) +* [Fix] kqueue: preserve watch flags when watching for delete [#21][] (reported by @robfig) +* [Fix] kqueue: watch the directory even if it isn't a new watch (thanks @robfig) +* [Fix] kqueue: modify after recreation of file + +## v0.7.3 / 2012-09-27 + +* [Fix] kqueue: watch with an existing folder inside the watched folder (thanks @vmirage) +* [Fix] kqueue: no longer get duplicate CREATE events + +## v0.7.2 / 2012-09-01 + +* kqueue: events for created directories + +## v0.7.1 / 2012-07-14 + +* [Fix] for renaming files + +## v0.7.0 / 2012-07-02 + +* [Feature] FSNotify flags +* [Fix] inotify: Added file name back to event path + +## v0.6.0 / 2012-06-06 + +* kqueue: watch files after directory created (thanks @tmc) + +## v0.5.1 / 2012-05-22 + +* [Fix] inotify: remove all watches before Close() + +## v0.5.0 / 2012-05-03 + +* [API] kqueue: return errors during watch instead of sending over channel +* kqueue: match symlink behavior on Linux +* inotify: add `DELETE_SELF` (requested by @taralx) +* [Fix] kqueue: handle EINTR (reported by @robfig) +* [Doc] Godoc example [#1][] (thanks @davecheney) + +## v0.4.0 / 2012-03-30 + +* Go 1 released: build with go tool +* [Feature] Windows support using winfsnotify +* Windows does not have attribute change notifications +* Roll attribute notifications into IsModify + +## v0.3.0 / 2012-02-19 + +* kqueue: add files when watch directory + +## v0.2.0 / 2011-12-30 + +* update to latest Go weekly code + +## v0.1.0 / 2011-10-19 + +* kqueue: add watch on file creation to match inotify +* kqueue: create file event +* inotify: ignore `IN_IGNORED` events +* event String() +* linux: common FileEvent functions +* initial commit + +[#79]: https://github.com/howeyc/fsnotify/pull/79 +[#77]: https://github.com/howeyc/fsnotify/pull/77 +[#72]: https://github.com/howeyc/fsnotify/issues/72 +[#71]: https://github.com/howeyc/fsnotify/issues/71 +[#70]: https://github.com/howeyc/fsnotify/issues/70 +[#63]: https://github.com/howeyc/fsnotify/issues/63 +[#62]: https://github.com/howeyc/fsnotify/issues/62 +[#60]: https://github.com/howeyc/fsnotify/issues/60 +[#59]: https://github.com/howeyc/fsnotify/issues/59 +[#49]: https://github.com/howeyc/fsnotify/issues/49 +[#45]: https://github.com/howeyc/fsnotify/issues/45 +[#40]: https://github.com/howeyc/fsnotify/issues/40 +[#36]: https://github.com/howeyc/fsnotify/issues/36 +[#33]: https://github.com/howeyc/fsnotify/issues/33 +[#29]: https://github.com/howeyc/fsnotify/issues/29 +[#25]: https://github.com/howeyc/fsnotify/issues/25 +[#24]: https://github.com/howeyc/fsnotify/issues/24 +[#21]: https://github.com/howeyc/fsnotify/issues/21 diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/CONTRIBUTING.md b/ingress/vendor/gopkg.in/fsnotify.v1/CONTRIBUTING.md new file mode 100644 index 0000000000..0f377f341b --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/CONTRIBUTING.md @@ -0,0 +1,77 @@ +# Contributing + +## Issues + +* Request features and report bugs using the [GitHub Issue Tracker](https://github.com/go-fsnotify/fsnotify/issues). +* Please indicate the platform you are using fsnotify on. +* A code example to reproduce the problem is appreciated. + +## Pull Requests + +### Contributor License Agreement + +fsnotify is derived from code in the [golang.org/x/exp](https://godoc.org/golang.org/x/exp) package and it may be included [in the standard library](https://github.com/go-fsnotify/fsnotify/issues/1) in the future. Therefore fsnotify carries the same [LICENSE](https://github.com/go-fsnotify/fsnotify/blob/master/LICENSE) as Go. Contributors retain their copyright, so you need to fill out a short form before we can accept your contribution: [Google Individual Contributor License Agreement](https://developers.google.com/open-source/cla/individual). + +Please indicate that you have signed the CLA in your pull request. + +### How fsnotify is Developed + +* Development is done on feature branches. +* Tests are run on BSD, Linux, OS X and Windows. +* Pull requests are reviewed and [applied to master][am] using [hub][]. + * Maintainers may modify or squash commits rather than asking contributors to. +* To issue a new release, the maintainers will: + * Update the CHANGELOG + * Tag a version, which will become available through gopkg.in. + +### How to Fork + +For smooth sailing, always use the original import path. Installing with `go get` makes this easy. + +1. Install from GitHub (`go get -u github.com/go-fsnotify/fsnotify`) +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Ensure everything works and the tests pass (see below) +4. Commit your changes (`git commit -am 'Add some feature'`) + +Contribute upstream: + +1. Fork fsnotify on GitHub +2. Add your remote (`git remote add fork git@github.com:mycompany/repo.git`) +3. Push to the branch (`git push fork my-new-feature`) +4. Create a new Pull Request on GitHub + +This workflow is [thoroughly explained by Katrina Owen](https://blog.splice.com/contributing-open-source-git-repositories-go/). + +### Testing + +fsnotify uses build tags to compile different code on Linux, BSD, OS X, and Windows. + +Before doing a pull request, please do your best to test your changes on multiple platforms, and list which platforms you were able/unable to test on. + +To aid in cross-platform testing there is a Vagrantfile for Linux and BSD. + +* Install [Vagrant](http://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/) +* Setup [Vagrant Gopher](https://github.com/nathany/vagrant-gopher) in your `src` folder. +* Run `vagrant up` from the project folder. You can also setup just one box with `vagrant up linux` or `vagrant up bsd` (note: the BSD box doesn't support Windows hosts at this time, and NFS may prompt for your host OS password) +* Once setup, you can run the test suite on a given OS with a single command `vagrant ssh linux -c 'cd go-fsnotify/fsnotify; go test'`. +* When you're done, you will want to halt or destroy the Vagrant boxes. + +Notice: fsnotify file system events won't trigger in shared folders. The tests get around this limitation by using the /tmp directory. + +Right now there is no equivalent solution for Windows and OS X, but there are Windows VMs [freely available from Microsoft](http://www.modern.ie/en-us/virtualization-tools#downloads). + +### Maintainers + +Help maintaining fsnotify is welcome. To be a maintainer: + +* Submit a pull request and sign the CLA as above. +* You must be able to run the test suite on Mac, Windows, Linux and BSD. + +To keep master clean, the fsnotify project uses the "apply mail" workflow outlined in Nathaniel Talbott's post ["Merge pull request" Considered Harmful][am]. This requires installing [hub][]. + +All code changes should be internal pull requests. + +Releases are tagged using [Semantic Versioning](http://semver.org/). + +[hub]: https://github.com/github/hub +[am]: http://blog.spreedly.com/2014/06/24/merge-pull-request-considered-harmful/#.VGa5yZPF_Zs diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/LICENSE b/ingress/vendor/gopkg.in/fsnotify.v1/LICENSE new file mode 100644 index 0000000000..f21e540800 --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/LICENSE @@ -0,0 +1,28 @@ +Copyright (c) 2012 The Go Authors. All rights reserved. +Copyright (c) 2012 fsnotify Authors. 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 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/ingress/vendor/gopkg.in/fsnotify.v1/README.md b/ingress/vendor/gopkg.in/fsnotify.v1/README.md new file mode 100644 index 0000000000..f2b432e96a --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/README.md @@ -0,0 +1,64 @@ +# File system notifications for Go + +[![GoDoc](https://godoc.org/gopkg.in/fsnotify.v1?status.svg)](https://godoc.org/gopkg.in/fsnotify.v1) [![Coverage](http://gocover.io/_badge/github.com/go-fsnotify/fsnotify)](http://gocover.io/github.com/go-fsnotify/fsnotify) + +Go 1.3+ required. + +Cross platform: Windows, Linux, BSD and OS X. + +|Adapter |OS |Status | +|----------|----------|----------| +|inotify |Linux 2.6.27 or later, Android\*|Supported [![Build Status](https://travis-ci.org/go-fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/go-fsnotify/fsnotify)| +|kqueue |BSD, OS X, iOS\*|Supported [![Build Status](https://travis-ci.org/go-fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/go-fsnotify/fsnotify)| +|ReadDirectoryChangesW|Windows|Supported [![Build status](https://ci.appveyor.com/api/projects/status/ivwjubaih4r0udeh/branch/master?svg=true)](https://ci.appveyor.com/project/NathanYoungman/fsnotify/branch/master)| +|FSEvents |OS X |[Planned](https://github.com/go-fsnotify/fsnotify/issues/11)| +|FEN |Solaris 11 |[Planned](https://github.com/go-fsnotify/fsnotify/issues/12)| +|fanotify |Linux 2.6.37+ | | +|USN Journals |Windows |[Maybe](https://github.com/go-fsnotify/fsnotify/issues/53)| +|Polling |*All* |[Maybe](https://github.com/go-fsnotify/fsnotify/issues/9)| + +\* Android and iOS are untested. + +Please see [the documentation](https://godoc.org/gopkg.in/fsnotify.v1) for usage. Consult the [Wiki](https://github.com/go-fsnotify/fsnotify/wiki) for the FAQ and further information. + +## API stability + +Two major versions of fsnotify exist. + +**[fsnotify.v0](https://gopkg.in/fsnotify.v0)** is API-compatible with [howeyc/fsnotify](https://godoc.org/github.com/howeyc/fsnotify). Bugfixes *may* be backported, but I recommend upgrading to v1. + +```go +import "gopkg.in/fsnotify.v0" +``` + +\* Refer to the package as fsnotify (without the .v0 suffix). + +**[fsnotify.v1](https://gopkg.in/fsnotify.v1)** provides [a new API](https://godoc.org/gopkg.in/fsnotify.v1) based on [this design document](http://goo.gl/MrYxyA). You can import v1 with: + +```go +import "gopkg.in/fsnotify.v1" +``` + +Further API changes are [planned](https://github.com/go-fsnotify/fsnotify/milestones), but a new major revision will be tagged, so you can depend on the v1 API. + +**Master** may have unreleased changes. Use it to test the very latest code or when [contributing][], but don't expect it to remain API-compatible: + +```go +import "github.com/go-fsnotify/fsnotify" +``` + +## Contributing + +Please refer to [CONTRIBUTING][] before opening an issue or pull request. + +## Example + +See [example_test.go](https://github.com/go-fsnotify/fsnotify/blob/master/example_test.go). + +[contributing]: https://github.com/go-fsnotify/fsnotify/blob/master/CONTRIBUTING.md + +## Related Projects + +* [notify](https://github.com/rjeczalik/notify) +* [fsevents](https://github.com/go-fsnotify/fsevents) + diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/fsnotify.go b/ingress/vendor/gopkg.in/fsnotify.v1/fsnotify.go new file mode 100644 index 0000000000..c899ee0083 --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/fsnotify.go @@ -0,0 +1,62 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !plan9,!solaris + +// Package fsnotify provides a platform-independent interface for file system notifications. +package fsnotify + +import ( + "bytes" + "fmt" +) + +// Event represents a single file system notification. +type Event struct { + Name string // Relative path to the file or directory. + Op Op // File operation that triggered the event. +} + +// Op describes a set of file operations. +type Op uint32 + +// These are the generalized file operations that can trigger a notification. +const ( + Create Op = 1 << iota + Write + Remove + Rename + Chmod +) + +// String returns a string representation of the event in the form +// "file: REMOVE|WRITE|..." +func (e Event) String() string { + // Use a buffer for efficient string concatenation + var buffer bytes.Buffer + + if e.Op&Create == Create { + buffer.WriteString("|CREATE") + } + if e.Op&Remove == Remove { + buffer.WriteString("|REMOVE") + } + if e.Op&Write == Write { + buffer.WriteString("|WRITE") + } + if e.Op&Rename == Rename { + buffer.WriteString("|RENAME") + } + if e.Op&Chmod == Chmod { + buffer.WriteString("|CHMOD") + } + + // If buffer remains empty, return no event names + if buffer.Len() == 0 { + return fmt.Sprintf("%q: ", e.Name) + } + + // Return a list of event names, with leading pipe character stripped + return fmt.Sprintf("%q: %s", e.Name, buffer.String()[1:]) +} diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/inotify.go b/ingress/vendor/gopkg.in/fsnotify.v1/inotify.go new file mode 100644 index 0000000000..06f4bba88e --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/inotify.go @@ -0,0 +1,324 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build linux + +package fsnotify + +import ( + "errors" + "fmt" + "io" + "os" + "path/filepath" + "strings" + "sync" + "syscall" + "unsafe" +) + +// Watcher watches a set of files, delivering events to a channel. +type Watcher struct { + Events chan Event + Errors chan error + mu sync.Mutex // Map access + cv *sync.Cond // sync removing on rm_watch with IN_IGNORE + fd int + poller *fdPoller + watches map[string]*watch // Map of inotify watches (key: path) + paths map[int]string // Map of watched paths (key: watch descriptor) + done chan struct{} // Channel for sending a "quit message" to the reader goroutine + doneResp chan struct{} // Channel to respond to Close +} + +// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. +func NewWatcher() (*Watcher, error) { + // Create inotify fd + fd, errno := syscall.InotifyInit() + if fd == -1 { + return nil, errno + } + // Create epoll + poller, err := newFdPoller(fd) + if err != nil { + syscall.Close(fd) + return nil, err + } + w := &Watcher{ + fd: fd, + poller: poller, + watches: make(map[string]*watch), + paths: make(map[int]string), + Events: make(chan Event), + Errors: make(chan error), + done: make(chan struct{}), + doneResp: make(chan struct{}), + } + w.cv = sync.NewCond(&w.mu) + + go w.readEvents() + return w, nil +} + +func (w *Watcher) isClosed() bool { + select { + case <-w.done: + return true + default: + return false + } +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + if w.isClosed() { + return nil + } + + // Send 'close' signal to goroutine, and set the Watcher to closed. + close(w.done) + + // Wake up goroutine + w.poller.wake() + + // Wait for goroutine to close + <-w.doneResp + + return nil +} + +// Add starts watching the named file or directory (non-recursively). +func (w *Watcher) Add(name string) error { + name = filepath.Clean(name) + if w.isClosed() { + return errors.New("inotify instance already closed") + } + + const agnosticEvents = syscall.IN_MOVED_TO | syscall.IN_MOVED_FROM | + syscall.IN_CREATE | syscall.IN_ATTRIB | syscall.IN_MODIFY | + syscall.IN_MOVE_SELF | syscall.IN_DELETE | syscall.IN_DELETE_SELF + + var flags uint32 = agnosticEvents + + w.mu.Lock() + watchEntry, found := w.watches[name] + w.mu.Unlock() + if found { + watchEntry.flags |= flags + flags |= syscall.IN_MASK_ADD + } + wd, errno := syscall.InotifyAddWatch(w.fd, name, flags) + if wd == -1 { + return errno + } + + w.mu.Lock() + w.watches[name] = &watch{wd: uint32(wd), flags: flags} + w.paths[wd] = name + w.mu.Unlock() + + return nil +} + +// Remove stops watching the named file or directory (non-recursively). +func (w *Watcher) Remove(name string) error { + name = filepath.Clean(name) + + // Fetch the watch. + w.mu.Lock() + defer w.mu.Unlock() + watch, ok := w.watches[name] + + // Remove it from inotify. + if !ok { + return fmt.Errorf("can't remove non-existent inotify watch for: %s", name) + } + // inotify_rm_watch will return EINVAL if the file has been deleted; + // the inotify will already have been removed. + // watches and pathes are deleted in ignoreLinux() implicitly and asynchronously + // by calling inotify_rm_watch() below. e.g. readEvents() goroutine receives IN_IGNORE + // so that EINVAL means that the wd is being rm_watch()ed or its file removed + // by another thread and we have not received IN_IGNORE event. + success, errno := syscall.InotifyRmWatch(w.fd, watch.wd) + if success == -1 { + // TODO: Perhaps it's not helpful to return an error here in every case. + // the only two possible errors are: + // EBADF, which happens when w.fd is not a valid file descriptor of any kind. + // EINVAL, which is when fd is not an inotify descriptor or wd is not a valid watch descriptor. + // Watch descriptors are invalidated when they are removed explicitly or implicitly; + // explicitly by inotify_rm_watch, implicitly when the file they are watching is deleted. + return errno + } + + // wait until ignoreLinux() deleting maps + exists := true + for exists { + w.cv.Wait() + _, exists = w.watches[name] + } + + return nil +} + +type watch struct { + wd uint32 // Watch descriptor (as returned by the inotify_add_watch() syscall) + flags uint32 // inotify flags of this watch (see inotify(7) for the list of valid flags) +} + +// readEvents reads from the inotify file descriptor, converts the +// received events into Event objects and sends them via the Events channel +func (w *Watcher) readEvents() { + var ( + buf [syscall.SizeofInotifyEvent * 4096]byte // Buffer for a maximum of 4096 raw events + n int // Number of bytes read with read() + errno error // Syscall errno + ok bool // For poller.wait + ) + + defer close(w.doneResp) + defer close(w.Errors) + defer close(w.Events) + defer syscall.Close(w.fd) + defer w.poller.close() + + for { + // See if we have been closed. + if w.isClosed() { + return + } + + ok, errno = w.poller.wait() + if errno != nil { + select { + case w.Errors <- errno: + case <-w.done: + return + } + continue + } + + if !ok { + continue + } + + n, errno = syscall.Read(w.fd, buf[:]) + // If a signal interrupted execution, see if we've been asked to close, and try again. + // http://man7.org/linux/man-pages/man7/signal.7.html : + // "Before Linux 3.8, reads from an inotify(7) file descriptor were not restartable" + if errno == syscall.EINTR { + continue + } + + // syscall.Read might have been woken up by Close. If so, we're done. + if w.isClosed() { + return + } + + if n < syscall.SizeofInotifyEvent { + var err error + if n == 0 { + // If EOF is received. This should really never happen. + err = io.EOF + } else if n < 0 { + // If an error occured while reading. + err = errno + } else { + // Read was too short. + err = errors.New("notify: short read in readEvents()") + } + select { + case w.Errors <- err: + case <-w.done: + return + } + continue + } + + var offset uint32 + // We don't know how many events we just read into the buffer + // While the offset points to at least one whole event... + for offset <= uint32(n-syscall.SizeofInotifyEvent) { + // Point "raw" to the event in the buffer + raw := (*syscall.InotifyEvent)(unsafe.Pointer(&buf[offset])) + + mask := uint32(raw.Mask) + nameLen := uint32(raw.Len) + // If the event happened to the watched directory or the watched file, the kernel + // doesn't append the filename to the event, but we would like to always fill the + // the "Name" field with a valid filename. We retrieve the path of the watch from + // the "paths" map. + w.mu.Lock() + name := w.paths[int(raw.Wd)] + w.mu.Unlock() + if nameLen > 0 { + // Point "bytes" at the first byte of the filename + bytes := (*[syscall.PathMax]byte)(unsafe.Pointer(&buf[offset+syscall.SizeofInotifyEvent])) + // The filename is padded with NULL bytes. TrimRight() gets rid of those. + name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000") + } + + event := newEvent(name, mask) + + // Send the events that are not ignored on the events channel + if !event.ignoreLinux(w, raw.Wd, mask) { + select { + case w.Events <- event: + case <-w.done: + return + } + } + + // Move to the next event in the buffer + offset += syscall.SizeofInotifyEvent + nameLen + } + } +} + +// Certain types of events can be "ignored" and not sent over the Events +// channel. Such as events marked ignore by the kernel, or MODIFY events +// against files that do not exist. +func (e *Event) ignoreLinux(w *Watcher, wd int32, mask uint32) bool { + // Ignore anything the inotify API says to ignore + if mask&syscall.IN_IGNORED == syscall.IN_IGNORED { + w.mu.Lock() + defer w.mu.Unlock() + name := w.paths[int(wd)] + delete(w.paths, int(wd)) + delete(w.watches, name) + w.cv.Broadcast() + return true + } + + // If the event is not a DELETE or RENAME, the file must exist. + // Otherwise the event is ignored. + // *Note*: this was put in place because it was seen that a MODIFY + // event was sent after the DELETE. This ignores that MODIFY and + // assumes a DELETE will come or has come if the file doesn't exist. + if !(e.Op&Remove == Remove || e.Op&Rename == Rename) { + _, statErr := os.Lstat(e.Name) + return os.IsNotExist(statErr) + } + return false +} + +// newEvent returns an platform-independent Event based on an inotify mask. +func newEvent(name string, mask uint32) Event { + e := Event{Name: name} + if mask&syscall.IN_CREATE == syscall.IN_CREATE || mask&syscall.IN_MOVED_TO == syscall.IN_MOVED_TO { + e.Op |= Create + } + if mask&syscall.IN_DELETE_SELF == syscall.IN_DELETE_SELF || mask&syscall.IN_DELETE == syscall.IN_DELETE { + e.Op |= Remove + } + if mask&syscall.IN_MODIFY == syscall.IN_MODIFY { + e.Op |= Write + } + if mask&syscall.IN_MOVE_SELF == syscall.IN_MOVE_SELF || mask&syscall.IN_MOVED_FROM == syscall.IN_MOVED_FROM { + e.Op |= Rename + } + if mask&syscall.IN_ATTRIB == syscall.IN_ATTRIB { + e.Op |= Chmod + } + return e +} diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/inotify_poller.go b/ingress/vendor/gopkg.in/fsnotify.v1/inotify_poller.go new file mode 100644 index 0000000000..23a5ca1460 --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/inotify_poller.go @@ -0,0 +1,186 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build linux + +package fsnotify + +import ( + "errors" + "syscall" +) + +type fdPoller struct { + fd int // File descriptor (as returned by the inotify_init() syscall) + epfd int // Epoll file descriptor + pipe [2]int // Pipe for waking up +} + +func emptyPoller(fd int) *fdPoller { + poller := new(fdPoller) + poller.fd = fd + poller.epfd = -1 + poller.pipe[0] = -1 + poller.pipe[1] = -1 + return poller +} + +// Create a new inotify poller. +// This creates an inotify handler, and an epoll handler. +func newFdPoller(fd int) (*fdPoller, error) { + var errno error + poller := emptyPoller(fd) + defer func() { + if errno != nil { + poller.close() + } + }() + poller.fd = fd + + // Create epoll fd + poller.epfd, errno = syscall.EpollCreate1(0) + if poller.epfd == -1 { + return nil, errno + } + // Create pipe; pipe[0] is the read end, pipe[1] the write end. + errno = syscall.Pipe2(poller.pipe[:], syscall.O_NONBLOCK) + if errno != nil { + return nil, errno + } + + // Register inotify fd with epoll + event := syscall.EpollEvent{ + Fd: int32(poller.fd), + Events: syscall.EPOLLIN, + } + errno = syscall.EpollCtl(poller.epfd, syscall.EPOLL_CTL_ADD, poller.fd, &event) + if errno != nil { + return nil, errno + } + + // Register pipe fd with epoll + event = syscall.EpollEvent{ + Fd: int32(poller.pipe[0]), + Events: syscall.EPOLLIN, + } + errno = syscall.EpollCtl(poller.epfd, syscall.EPOLL_CTL_ADD, poller.pipe[0], &event) + if errno != nil { + return nil, errno + } + + return poller, nil +} + +// Wait using epoll. +// Returns true if something is ready to be read, +// false if there is not. +func (poller *fdPoller) wait() (bool, error) { + // 3 possible events per fd, and 2 fds, makes a maximum of 6 events. + // I don't know whether epoll_wait returns the number of events returned, + // or the total number of events ready. + // I decided to catch both by making the buffer one larger than the maximum. + events := make([]syscall.EpollEvent, 7) + for { + n, errno := syscall.EpollWait(poller.epfd, events, -1) + if n == -1 { + if errno == syscall.EINTR { + continue + } + return false, errno + } + if n == 0 { + // If there are no events, try again. + continue + } + if n > 6 { + // This should never happen. More events were returned than should be possible. + return false, errors.New("epoll_wait returned more events than I know what to do with") + } + ready := events[:n] + epollhup := false + epollerr := false + epollin := false + for _, event := range ready { + if event.Fd == int32(poller.fd) { + if event.Events&syscall.EPOLLHUP != 0 { + // This should not happen, but if it does, treat it as a wakeup. + epollhup = true + } + if event.Events&syscall.EPOLLERR != 0 { + // If an error is waiting on the file descriptor, we should pretend + // something is ready to read, and let syscall.Read pick up the error. + epollerr = true + } + if event.Events&syscall.EPOLLIN != 0 { + // There is data to read. + epollin = true + } + } + if event.Fd == int32(poller.pipe[0]) { + if event.Events&syscall.EPOLLHUP != 0 { + // Write pipe descriptor was closed, by us. This means we're closing down the + // watcher, and we should wake up. + } + if event.Events&syscall.EPOLLERR != 0 { + // If an error is waiting on the pipe file descriptor. + // This is an absolute mystery, and should never ever happen. + return false, errors.New("Error on the pipe descriptor.") + } + if event.Events&syscall.EPOLLIN != 0 { + // This is a regular wakeup, so we have to clear the buffer. + err := poller.clearWake() + if err != nil { + return false, err + } + } + } + } + + if epollhup || epollerr || epollin { + return true, nil + } + return false, nil + } +} + +// Close the write end of the poller. +func (poller *fdPoller) wake() error { + buf := make([]byte, 1) + n, errno := syscall.Write(poller.pipe[1], buf) + if n == -1 { + if errno == syscall.EAGAIN { + // Buffer is full, poller will wake. + return nil + } + return errno + } + return nil +} + +func (poller *fdPoller) clearWake() error { + // You have to be woken up a LOT in order to get to 100! + buf := make([]byte, 100) + n, errno := syscall.Read(poller.pipe[0], buf) + if n == -1 { + if errno == syscall.EAGAIN { + // Buffer is empty, someone else cleared our wake. + return nil + } + return errno + } + return nil +} + +// Close all poller file descriptors, but not the one passed to it. +func (poller *fdPoller) close() { + if poller.pipe[1] != -1 { + syscall.Close(poller.pipe[1]) + } + if poller.pipe[0] != -1 { + syscall.Close(poller.pipe[0]) + } + if poller.epfd != -1 { + syscall.Close(poller.epfd) + } +} diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/kqueue.go b/ingress/vendor/gopkg.in/fsnotify.v1/kqueue.go new file mode 100644 index 0000000000..b8ea30846d --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/kqueue.go @@ -0,0 +1,502 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build freebsd openbsd netbsd dragonfly darwin + +package fsnotify + +import ( + "errors" + "fmt" + "io/ioutil" + "os" + "path/filepath" + "sync" + "syscall" + "time" +) + +// Watcher watches a set of files, delivering events to a channel. +type Watcher struct { + Events chan Event + Errors chan error + done chan bool // Channel for sending a "quit message" to the reader goroutine + + kq int // File descriptor (as returned by the kqueue() syscall). + + mu sync.Mutex // Protects access to watcher data + watches map[string]int // Map of watched file descriptors (key: path). + externalWatches map[string]bool // Map of watches added by user of the library. + dirFlags map[string]uint32 // Map of watched directories to fflags used in kqueue. + paths map[int]pathInfo // Map file descriptors to path names for processing kqueue events. + fileExists map[string]bool // Keep track of if we know this file exists (to stop duplicate create events). + isClosed bool // Set to true when Close() is first called +} + +type pathInfo struct { + name string + isDir bool +} + +// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. +func NewWatcher() (*Watcher, error) { + kq, err := kqueue() + if err != nil { + return nil, err + } + + w := &Watcher{ + kq: kq, + watches: make(map[string]int), + dirFlags: make(map[string]uint32), + paths: make(map[int]pathInfo), + fileExists: make(map[string]bool), + externalWatches: make(map[string]bool), + Events: make(chan Event), + Errors: make(chan error), + done: make(chan bool), + } + + go w.readEvents() + return w, nil +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + w.mu.Lock() + if w.isClosed { + w.mu.Unlock() + return nil + } + w.isClosed = true + w.mu.Unlock() + + // copy paths to remove while locked + w.mu.Lock() + var pathsToRemove = make([]string, 0, len(w.watches)) + for name := range w.watches { + pathsToRemove = append(pathsToRemove, name) + } + w.mu.Unlock() + // unlock before calling Remove, which also locks + + var err error + for _, name := range pathsToRemove { + if e := w.Remove(name); e != nil && err == nil { + err = e + } + } + + // Send "quit" message to the reader goroutine: + w.done <- true + + return nil +} + +// Add starts watching the named file or directory (non-recursively). +func (w *Watcher) Add(name string) error { + w.mu.Lock() + w.externalWatches[name] = true + w.mu.Unlock() + _, err := w.addWatch(name, noteAllEvents) + return err +} + +// Remove stops watching the the named file or directory (non-recursively). +func (w *Watcher) Remove(name string) error { + name = filepath.Clean(name) + w.mu.Lock() + watchfd, ok := w.watches[name] + w.mu.Unlock() + if !ok { + return fmt.Errorf("can't remove non-existent kevent watch for: %s", name) + } + + const registerRemove = syscall.EV_DELETE + if err := register(w.kq, []int{watchfd}, registerRemove, 0); err != nil { + return err + } + + syscall.Close(watchfd) + + w.mu.Lock() + isDir := w.paths[watchfd].isDir + delete(w.watches, name) + delete(w.paths, watchfd) + delete(w.dirFlags, name) + w.mu.Unlock() + + // Find all watched paths that are in this directory that are not external. + if isDir { + var pathsToRemove []string + w.mu.Lock() + for _, path := range w.paths { + wdir, _ := filepath.Split(path.name) + if filepath.Clean(wdir) == name { + if !w.externalWatches[path.name] { + pathsToRemove = append(pathsToRemove, path.name) + } + } + } + w.mu.Unlock() + for _, name := range pathsToRemove { + // Since these are internal, not much sense in propagating error + // to the user, as that will just confuse them with an error about + // a path they did not explicitly watch themselves. + w.Remove(name) + } + } + + return nil +} + +// Watch all events (except NOTE_EXTEND, NOTE_LINK, NOTE_REVOKE) +const noteAllEvents = syscall.NOTE_DELETE | syscall.NOTE_WRITE | syscall.NOTE_ATTRIB | syscall.NOTE_RENAME + +// keventWaitTime to block on each read from kevent +var keventWaitTime = durationToTimespec(100 * time.Millisecond) + +// addWatch adds name to the watched file set. +// The flags are interpreted as described in kevent(2). +// Returns the real path to the file which was added, if any, which may be different from the one passed in the case of symlinks. +func (w *Watcher) addWatch(name string, flags uint32) (string, error) { + var isDir bool + // Make ./name and name equivalent + name = filepath.Clean(name) + + w.mu.Lock() + if w.isClosed { + w.mu.Unlock() + return "", errors.New("kevent instance already closed") + } + watchfd, alreadyWatching := w.watches[name] + // We already have a watch, but we can still override flags. + if alreadyWatching { + isDir = w.paths[watchfd].isDir + } + w.mu.Unlock() + + if !alreadyWatching { + fi, err := os.Lstat(name) + if err != nil { + return "", err + } + + // Don't watch sockets. + if fi.Mode()&os.ModeSocket == os.ModeSocket { + return "", nil + } + + // Don't watch named pipes. + if fi.Mode()&os.ModeNamedPipe == os.ModeNamedPipe { + return "", nil + } + + // Follow Symlinks + // Unfortunately, Linux can add bogus symlinks to watch list without + // issue, and Windows can't do symlinks period (AFAIK). To maintain + // consistency, we will act like everything is fine. There will simply + // be no file events for broken symlinks. + // Hence the returns of nil on errors. + if fi.Mode()&os.ModeSymlink == os.ModeSymlink { + name, err = filepath.EvalSymlinks(name) + if err != nil { + return "", nil + } + + w.mu.Lock() + _, alreadyWatching = w.watches[name] + w.mu.Unlock() + + if alreadyWatching { + return name, nil + } + + fi, err = os.Lstat(name) + if err != nil { + return "", nil + } + } + + watchfd, err = syscall.Open(name, openMode, 0700) + if watchfd == -1 { + return "", err + } + + isDir = fi.IsDir() + } + + const registerAdd = syscall.EV_ADD | syscall.EV_CLEAR | syscall.EV_ENABLE + if err := register(w.kq, []int{watchfd}, registerAdd, flags); err != nil { + syscall.Close(watchfd) + return "", err + } + + if !alreadyWatching { + w.mu.Lock() + w.watches[name] = watchfd + w.paths[watchfd] = pathInfo{name: name, isDir: isDir} + w.mu.Unlock() + } + + if isDir { + // Watch the directory if it has not been watched before, + // or if it was watched before, but perhaps only a NOTE_DELETE (watchDirectoryFiles) + w.mu.Lock() + + watchDir := (flags&syscall.NOTE_WRITE) == syscall.NOTE_WRITE && + (!alreadyWatching || (w.dirFlags[name]&syscall.NOTE_WRITE) != syscall.NOTE_WRITE) + // Store flags so this watch can be updated later + w.dirFlags[name] = flags + w.mu.Unlock() + + if watchDir { + if err := w.watchDirectoryFiles(name); err != nil { + return "", err + } + } + } + return name, nil +} + +// readEvents reads from kqueue and converts the received kevents into +// Event values that it sends down the Events channel. +func (w *Watcher) readEvents() { + eventBuffer := make([]syscall.Kevent_t, 10) + + for { + // See if there is a message on the "done" channel + select { + case <-w.done: + err := syscall.Close(w.kq) + if err != nil { + w.Errors <- err + } + close(w.Events) + close(w.Errors) + return + default: + } + + // Get new events + kevents, err := read(w.kq, eventBuffer, &keventWaitTime) + // EINTR is okay, the syscall was interrupted before timeout expired. + if err != nil && err != syscall.EINTR { + w.Errors <- err + continue + } + + // Flush the events we received to the Events channel + for len(kevents) > 0 { + kevent := &kevents[0] + watchfd := int(kevent.Ident) + mask := uint32(kevent.Fflags) + w.mu.Lock() + path := w.paths[watchfd] + w.mu.Unlock() + event := newEvent(path.name, mask) + + if path.isDir && !(event.Op&Remove == Remove) { + // Double check to make sure the directory exists. This can happen when + // we do a rm -fr on a recursively watched folders and we receive a + // modification event first but the folder has been deleted and later + // receive the delete event + if _, err := os.Lstat(event.Name); os.IsNotExist(err) { + // mark is as delete event + event.Op |= Remove + } + } + + if event.Op&Rename == Rename || event.Op&Remove == Remove { + w.Remove(event.Name) + w.mu.Lock() + delete(w.fileExists, event.Name) + w.mu.Unlock() + } + + if path.isDir && event.Op&Write == Write && !(event.Op&Remove == Remove) { + w.sendDirectoryChangeEvents(event.Name) + } else { + // Send the event on the Events channel + w.Events <- event + } + + if event.Op&Remove == Remove { + // Look for a file that may have overwritten this. + // For example, mv f1 f2 will delete f2, then create f2. + if path.isDir { + fileDir := filepath.Clean(event.Name) + w.mu.Lock() + _, found := w.watches[fileDir] + w.mu.Unlock() + if found { + // make sure the directory exists before we watch for changes. When we + // do a recursive watch and perform rm -fr, the parent directory might + // have gone missing, ignore the missing directory and let the + // upcoming delete event remove the watch from the parent directory. + if _, err := os.Lstat(fileDir); err == nil { + w.sendDirectoryChangeEvents(fileDir) + } + } + } else { + filePath := filepath.Clean(event.Name) + if fileInfo, err := os.Lstat(filePath); err == nil { + w.sendFileCreatedEventIfNew(filePath, fileInfo) + } + } + } + + // Move to next event + kevents = kevents[1:] + } + } +} + +// newEvent returns an platform-independent Event based on kqueue Fflags. +func newEvent(name string, mask uint32) Event { + e := Event{Name: name} + if mask&syscall.NOTE_DELETE == syscall.NOTE_DELETE { + e.Op |= Remove + } + if mask&syscall.NOTE_WRITE == syscall.NOTE_WRITE { + e.Op |= Write + } + if mask&syscall.NOTE_RENAME == syscall.NOTE_RENAME { + e.Op |= Rename + } + if mask&syscall.NOTE_ATTRIB == syscall.NOTE_ATTRIB { + e.Op |= Chmod + } + return e +} + +func newCreateEvent(name string) Event { + return Event{Name: name, Op: Create} +} + +// watchDirectoryFiles to mimic inotify when adding a watch on a directory +func (w *Watcher) watchDirectoryFiles(dirPath string) error { + // Get all files + files, err := ioutil.ReadDir(dirPath) + if err != nil { + return err + } + + for _, fileInfo := range files { + filePath := filepath.Join(dirPath, fileInfo.Name()) + filePath, err = w.internalWatch(filePath, fileInfo) + if err != nil { + return err + } + + w.mu.Lock() + w.fileExists[filePath] = true + w.mu.Unlock() + } + + return nil +} + +// sendDirectoryEvents searches the directory for newly created files +// and sends them over the event channel. This functionality is to have +// the BSD version of fsnotify match Linux inotify which provides a +// create event for files created in a watched directory. +func (w *Watcher) sendDirectoryChangeEvents(dirPath string) { + // Get all files + files, err := ioutil.ReadDir(dirPath) + if err != nil { + w.Errors <- err + } + + // Search for new files + for _, fileInfo := range files { + filePath := filepath.Join(dirPath, fileInfo.Name()) + err := w.sendFileCreatedEventIfNew(filePath, fileInfo) + + if err != nil { + return + } + } +} + +// sendFileCreatedEvent sends a create event if the file isn't already being tracked. +func (w *Watcher) sendFileCreatedEventIfNew(filePath string, fileInfo os.FileInfo) (err error) { + w.mu.Lock() + _, doesExist := w.fileExists[filePath] + w.mu.Unlock() + if !doesExist { + // Send create event + w.Events <- newCreateEvent(filePath) + } + + // like watchDirectoryFiles (but without doing another ReadDir) + filePath, err = w.internalWatch(filePath, fileInfo) + if err != nil { + return err + } + + w.mu.Lock() + w.fileExists[filePath] = true + w.mu.Unlock() + + return nil +} + +func (w *Watcher) internalWatch(name string, fileInfo os.FileInfo) (string, error) { + if fileInfo.IsDir() { + // mimic Linux providing delete events for subdirectories + // but preserve the flags used if currently watching subdirectory + w.mu.Lock() + flags := w.dirFlags[name] + w.mu.Unlock() + + flags |= syscall.NOTE_DELETE | syscall.NOTE_RENAME + return w.addWatch(name, flags) + } + + // watch file to mimic Linux inotify + return w.addWatch(name, noteAllEvents) +} + +// kqueue creates a new kernel event queue and returns a descriptor. +func kqueue() (kq int, err error) { + kq, err = syscall.Kqueue() + if kq == -1 { + return kq, err + } + return kq, nil +} + +// register events with the queue +func register(kq int, fds []int, flags int, fflags uint32) error { + changes := make([]syscall.Kevent_t, len(fds)) + + for i, fd := range fds { + // SetKevent converts int to the platform-specific types: + syscall.SetKevent(&changes[i], fd, syscall.EVFILT_VNODE, flags) + changes[i].Fflags = fflags + } + + // register the events + success, err := syscall.Kevent(kq, changes, nil, nil) + if success == -1 { + return err + } + return nil +} + +// read retrieves pending events, or waits until an event occurs. +// A timeout of nil blocks indefinitely, while 0 polls the queue. +func read(kq int, events []syscall.Kevent_t, timeout *syscall.Timespec) ([]syscall.Kevent_t, error) { + n, err := syscall.Kevent(kq, nil, events, timeout) + if err != nil { + return nil, err + } + return events[0:n], nil +} + +// durationToTimespec prepares a timeout value +func durationToTimespec(d time.Duration) syscall.Timespec { + return syscall.NsecToTimespec(d.Nanoseconds()) +} diff --git a/ingress/vendor/github.com/Sirupsen/logrus/terminal_linux.go b/ingress/vendor/gopkg.in/fsnotify.v1/open_mode_bsd.go similarity index 61% rename from ingress/vendor/github.com/Sirupsen/logrus/terminal_linux.go rename to ingress/vendor/gopkg.in/fsnotify.v1/open_mode_bsd.go index a2c0b40db6..c57ccb427b 100644 --- a/ingress/vendor/github.com/Sirupsen/logrus/terminal_linux.go +++ b/ingress/vendor/gopkg.in/fsnotify.v1/open_mode_bsd.go @@ -1,12 +1,11 @@ -// Based on ssh/terminal: // Copyright 2013 The Go 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 logrus +// +build freebsd openbsd netbsd dragonfly -import "syscall" +package fsnotify -const ioctlReadTermios = syscall.TCGETS +import "syscall" -type Termios syscall.Termios +const openMode = syscall.O_NONBLOCK | syscall.O_RDONLY diff --git a/ingress/vendor/github.com/Sirupsen/logrus/terminal_darwin.go b/ingress/vendor/gopkg.in/fsnotify.v1/open_mode_darwin.go similarity index 61% rename from ingress/vendor/github.com/Sirupsen/logrus/terminal_darwin.go rename to ingress/vendor/gopkg.in/fsnotify.v1/open_mode_darwin.go index 8fe02a4aec..174b2c331f 100644 --- a/ingress/vendor/github.com/Sirupsen/logrus/terminal_darwin.go +++ b/ingress/vendor/gopkg.in/fsnotify.v1/open_mode_darwin.go @@ -1,12 +1,12 @@ -// Based on ssh/terminal: // Copyright 2013 The Go 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 logrus +// +build darwin -import "syscall" +package fsnotify -const ioctlReadTermios = syscall.TIOCGETA +import "syscall" -type Termios syscall.Termios +// note: this constant is not defined on BSD +const openMode = syscall.O_EVTONLY diff --git a/ingress/vendor/gopkg.in/fsnotify.v1/windows.go b/ingress/vendor/gopkg.in/fsnotify.v1/windows.go new file mode 100644 index 0000000000..811585227d --- /dev/null +++ b/ingress/vendor/gopkg.in/fsnotify.v1/windows.go @@ -0,0 +1,561 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build windows + +package fsnotify + +import ( + "errors" + "fmt" + "os" + "path/filepath" + "runtime" + "sync" + "syscall" + "unsafe" +) + +// Watcher watches a set of files, delivering events to a channel. +type Watcher struct { + Events chan Event + Errors chan error + isClosed bool // Set to true when Close() is first called + mu sync.Mutex // Map access + port syscall.Handle // Handle to completion port + watches watchMap // Map of watches (key: i-number) + input chan *input // Inputs to the reader are sent on this channel + quit chan chan<- error +} + +// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. +func NewWatcher() (*Watcher, error) { + port, e := syscall.CreateIoCompletionPort(syscall.InvalidHandle, 0, 0, 0) + if e != nil { + return nil, os.NewSyscallError("CreateIoCompletionPort", e) + } + w := &Watcher{ + port: port, + watches: make(watchMap), + input: make(chan *input, 1), + Events: make(chan Event, 50), + Errors: make(chan error), + quit: make(chan chan<- error, 1), + } + go w.readEvents() + return w, nil +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + if w.isClosed { + return nil + } + w.isClosed = true + + // Send "quit" message to the reader goroutine + ch := make(chan error) + w.quit <- ch + if err := w.wakeupReader(); err != nil { + return err + } + return <-ch +} + +// Add starts watching the named file or directory (non-recursively). +func (w *Watcher) Add(name string) error { + if w.isClosed { + return errors.New("watcher already closed") + } + in := &input{ + op: opAddWatch, + path: filepath.Clean(name), + flags: sys_FS_ALL_EVENTS, + reply: make(chan error), + } + w.input <- in + if err := w.wakeupReader(); err != nil { + return err + } + return <-in.reply +} + +// Remove stops watching the the named file or directory (non-recursively). +func (w *Watcher) Remove(name string) error { + in := &input{ + op: opRemoveWatch, + path: filepath.Clean(name), + reply: make(chan error), + } + w.input <- in + if err := w.wakeupReader(); err != nil { + return err + } + return <-in.reply +} + +const ( + // Options for AddWatch + sys_FS_ONESHOT = 0x80000000 + sys_FS_ONLYDIR = 0x1000000 + + // Events + sys_FS_ACCESS = 0x1 + sys_FS_ALL_EVENTS = 0xfff + sys_FS_ATTRIB = 0x4 + sys_FS_CLOSE = 0x18 + sys_FS_CREATE = 0x100 + sys_FS_DELETE = 0x200 + sys_FS_DELETE_SELF = 0x400 + sys_FS_MODIFY = 0x2 + sys_FS_MOVE = 0xc0 + sys_FS_MOVED_FROM = 0x40 + sys_FS_MOVED_TO = 0x80 + sys_FS_MOVE_SELF = 0x800 + + // Special events + sys_FS_IGNORED = 0x8000 + sys_FS_Q_OVERFLOW = 0x4000 +) + +func newEvent(name string, mask uint32) Event { + e := Event{Name: name} + if mask&sys_FS_CREATE == sys_FS_CREATE || mask&sys_FS_MOVED_TO == sys_FS_MOVED_TO { + e.Op |= Create + } + if mask&sys_FS_DELETE == sys_FS_DELETE || mask&sys_FS_DELETE_SELF == sys_FS_DELETE_SELF { + e.Op |= Remove + } + if mask&sys_FS_MODIFY == sys_FS_MODIFY { + e.Op |= Write + } + if mask&sys_FS_MOVE == sys_FS_MOVE || mask&sys_FS_MOVE_SELF == sys_FS_MOVE_SELF || mask&sys_FS_MOVED_FROM == sys_FS_MOVED_FROM { + e.Op |= Rename + } + if mask&sys_FS_ATTRIB == sys_FS_ATTRIB { + e.Op |= Chmod + } + return e +} + +const ( + opAddWatch = iota + opRemoveWatch +) + +const ( + provisional uint64 = 1 << (32 + iota) +) + +type input struct { + op int + path string + flags uint32 + reply chan error +} + +type inode struct { + handle syscall.Handle + volume uint32 + index uint64 +} + +type watch struct { + ov syscall.Overlapped + ino *inode // i-number + path string // Directory path + mask uint64 // Directory itself is being watched with these notify flags + names map[string]uint64 // Map of names being watched and their notify flags + rename string // Remembers the old name while renaming a file + buf [4096]byte +} + +type indexMap map[uint64]*watch +type watchMap map[uint32]indexMap + +func (w *Watcher) wakeupReader() error { + e := syscall.PostQueuedCompletionStatus(w.port, 0, 0, nil) + if e != nil { + return os.NewSyscallError("PostQueuedCompletionStatus", e) + } + return nil +} + +func getDir(pathname string) (dir string, err error) { + attr, e := syscall.GetFileAttributes(syscall.StringToUTF16Ptr(pathname)) + if e != nil { + return "", os.NewSyscallError("GetFileAttributes", e) + } + if attr&syscall.FILE_ATTRIBUTE_DIRECTORY != 0 { + dir = pathname + } else { + dir, _ = filepath.Split(pathname) + dir = filepath.Clean(dir) + } + return +} + +func getIno(path string) (ino *inode, err error) { + h, e := syscall.CreateFile(syscall.StringToUTF16Ptr(path), + syscall.FILE_LIST_DIRECTORY, + syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE|syscall.FILE_SHARE_DELETE, + nil, syscall.OPEN_EXISTING, + syscall.FILE_FLAG_BACKUP_SEMANTICS|syscall.FILE_FLAG_OVERLAPPED, 0) + if e != nil { + return nil, os.NewSyscallError("CreateFile", e) + } + var fi syscall.ByHandleFileInformation + if e = syscall.GetFileInformationByHandle(h, &fi); e != nil { + syscall.CloseHandle(h) + return nil, os.NewSyscallError("GetFileInformationByHandle", e) + } + ino = &inode{ + handle: h, + volume: fi.VolumeSerialNumber, + index: uint64(fi.FileIndexHigh)<<32 | uint64(fi.FileIndexLow), + } + return ino, nil +} + +// Must run within the I/O thread. +func (m watchMap) get(ino *inode) *watch { + if i := m[ino.volume]; i != nil { + return i[ino.index] + } + return nil +} + +// Must run within the I/O thread. +func (m watchMap) set(ino *inode, watch *watch) { + i := m[ino.volume] + if i == nil { + i = make(indexMap) + m[ino.volume] = i + } + i[ino.index] = watch +} + +// Must run within the I/O thread. +func (w *Watcher) addWatch(pathname string, flags uint64) error { + dir, err := getDir(pathname) + if err != nil { + return err + } + if flags&sys_FS_ONLYDIR != 0 && pathname != dir { + return nil + } + ino, err := getIno(dir) + if err != nil { + return err + } + w.mu.Lock() + watchEntry := w.watches.get(ino) + w.mu.Unlock() + if watchEntry == nil { + if _, e := syscall.CreateIoCompletionPort(ino.handle, w.port, 0, 0); e != nil { + syscall.CloseHandle(ino.handle) + return os.NewSyscallError("CreateIoCompletionPort", e) + } + watchEntry = &watch{ + ino: ino, + path: dir, + names: make(map[string]uint64), + } + w.mu.Lock() + w.watches.set(ino, watchEntry) + w.mu.Unlock() + flags |= provisional + } else { + syscall.CloseHandle(ino.handle) + } + if pathname == dir { + watchEntry.mask |= flags + } else { + watchEntry.names[filepath.Base(pathname)] |= flags + } + if err = w.startRead(watchEntry); err != nil { + return err + } + if pathname == dir { + watchEntry.mask &= ^provisional + } else { + watchEntry.names[filepath.Base(pathname)] &= ^provisional + } + return nil +} + +// Must run within the I/O thread. +func (w *Watcher) remWatch(pathname string) error { + dir, err := getDir(pathname) + if err != nil { + return err + } + ino, err := getIno(dir) + if err != nil { + return err + } + w.mu.Lock() + watch := w.watches.get(ino) + w.mu.Unlock() + if watch == nil { + return fmt.Errorf("can't remove non-existent watch for: %s", pathname) + } + if pathname == dir { + w.sendEvent(watch.path, watch.mask&sys_FS_IGNORED) + watch.mask = 0 + } else { + name := filepath.Base(pathname) + w.sendEvent(watch.path+"\\"+name, watch.names[name]&sys_FS_IGNORED) + delete(watch.names, name) + } + return w.startRead(watch) +} + +// Must run within the I/O thread. +func (w *Watcher) deleteWatch(watch *watch) { + for name, mask := range watch.names { + if mask&provisional == 0 { + w.sendEvent(watch.path+"\\"+name, mask&sys_FS_IGNORED) + } + delete(watch.names, name) + } + if watch.mask != 0 { + if watch.mask&provisional == 0 { + w.sendEvent(watch.path, watch.mask&sys_FS_IGNORED) + } + watch.mask = 0 + } +} + +// Must run within the I/O thread. +func (w *Watcher) startRead(watch *watch) error { + if e := syscall.CancelIo(watch.ino.handle); e != nil { + w.Errors <- os.NewSyscallError("CancelIo", e) + w.deleteWatch(watch) + } + mask := toWindowsFlags(watch.mask) + for _, m := range watch.names { + mask |= toWindowsFlags(m) + } + if mask == 0 { + if e := syscall.CloseHandle(watch.ino.handle); e != nil { + w.Errors <- os.NewSyscallError("CloseHandle", e) + } + w.mu.Lock() + delete(w.watches[watch.ino.volume], watch.ino.index) + w.mu.Unlock() + return nil + } + e := syscall.ReadDirectoryChanges(watch.ino.handle, &watch.buf[0], + uint32(unsafe.Sizeof(watch.buf)), false, mask, nil, &watch.ov, 0) + if e != nil { + err := os.NewSyscallError("ReadDirectoryChanges", e) + if e == syscall.ERROR_ACCESS_DENIED && watch.mask&provisional == 0 { + // Watched directory was probably removed + if w.sendEvent(watch.path, watch.mask&sys_FS_DELETE_SELF) { + if watch.mask&sys_FS_ONESHOT != 0 { + watch.mask = 0 + } + } + err = nil + } + w.deleteWatch(watch) + w.startRead(watch) + return err + } + return nil +} + +// readEvents reads from the I/O completion port, converts the +// received events into Event objects and sends them via the Events channel. +// Entry point to the I/O thread. +func (w *Watcher) readEvents() { + var ( + n, key uint32 + ov *syscall.Overlapped + ) + runtime.LockOSThread() + + for { + e := syscall.GetQueuedCompletionStatus(w.port, &n, &key, &ov, syscall.INFINITE) + watch := (*watch)(unsafe.Pointer(ov)) + + if watch == nil { + select { + case ch := <-w.quit: + w.mu.Lock() + var indexes []indexMap + for _, index := range w.watches { + indexes = append(indexes, index) + } + w.mu.Unlock() + for _, index := range indexes { + for _, watch := range index { + w.deleteWatch(watch) + w.startRead(watch) + } + } + var err error + if e := syscall.CloseHandle(w.port); e != nil { + err = os.NewSyscallError("CloseHandle", e) + } + close(w.Events) + close(w.Errors) + ch <- err + return + case in := <-w.input: + switch in.op { + case opAddWatch: + in.reply <- w.addWatch(in.path, uint64(in.flags)) + case opRemoveWatch: + in.reply <- w.remWatch(in.path) + } + default: + } + continue + } + + switch e { + case syscall.ERROR_MORE_DATA: + if watch == nil { + w.Errors <- errors.New("ERROR_MORE_DATA has unexpectedly null lpOverlapped buffer") + } else { + // The i/o succeeded but the buffer is full. + // In theory we should be building up a full packet. + // In practice we can get away with just carrying on. + n = uint32(unsafe.Sizeof(watch.buf)) + } + case syscall.ERROR_ACCESS_DENIED: + // Watched directory was probably removed + w.sendEvent(watch.path, watch.mask&sys_FS_DELETE_SELF) + w.deleteWatch(watch) + w.startRead(watch) + continue + case syscall.ERROR_OPERATION_ABORTED: + // CancelIo was called on this handle + continue + default: + w.Errors <- os.NewSyscallError("GetQueuedCompletionPort", e) + continue + case nil: + } + + var offset uint32 + for { + if n == 0 { + w.Events <- newEvent("", sys_FS_Q_OVERFLOW) + w.Errors <- errors.New("short read in readEvents()") + break + } + + // Point "raw" to the event in the buffer + raw := (*syscall.FileNotifyInformation)(unsafe.Pointer(&watch.buf[offset])) + buf := (*[syscall.MAX_PATH]uint16)(unsafe.Pointer(&raw.FileName)) + name := syscall.UTF16ToString(buf[:raw.FileNameLength/2]) + fullname := watch.path + "\\" + name + + var mask uint64 + switch raw.Action { + case syscall.FILE_ACTION_REMOVED: + mask = sys_FS_DELETE_SELF + case syscall.FILE_ACTION_MODIFIED: + mask = sys_FS_MODIFY + case syscall.FILE_ACTION_RENAMED_OLD_NAME: + watch.rename = name + case syscall.FILE_ACTION_RENAMED_NEW_NAME: + if watch.names[watch.rename] != 0 { + watch.names[name] |= watch.names[watch.rename] + delete(watch.names, watch.rename) + mask = sys_FS_MOVE_SELF + } + } + + sendNameEvent := func() { + if w.sendEvent(fullname, watch.names[name]&mask) { + if watch.names[name]&sys_FS_ONESHOT != 0 { + delete(watch.names, name) + } + } + } + if raw.Action != syscall.FILE_ACTION_RENAMED_NEW_NAME { + sendNameEvent() + } + if raw.Action == syscall.FILE_ACTION_REMOVED { + w.sendEvent(fullname, watch.names[name]&sys_FS_IGNORED) + delete(watch.names, name) + } + if w.sendEvent(fullname, watch.mask&toFSnotifyFlags(raw.Action)) { + if watch.mask&sys_FS_ONESHOT != 0 { + watch.mask = 0 + } + } + if raw.Action == syscall.FILE_ACTION_RENAMED_NEW_NAME { + fullname = watch.path + "\\" + watch.rename + sendNameEvent() + } + + // Move to the next event in the buffer + if raw.NextEntryOffset == 0 { + break + } + offset += raw.NextEntryOffset + + // Error! + if offset >= n { + w.Errors <- errors.New("Windows system assumed buffer larger than it is, events have likely been missed.") + break + } + } + + if err := w.startRead(watch); err != nil { + w.Errors <- err + } + } +} + +func (w *Watcher) sendEvent(name string, mask uint64) bool { + if mask == 0 { + return false + } + event := newEvent(name, uint32(mask)) + select { + case ch := <-w.quit: + w.quit <- ch + case w.Events <- event: + } + return true +} + +func toWindowsFlags(mask uint64) uint32 { + var m uint32 + if mask&sys_FS_ACCESS != 0 { + m |= syscall.FILE_NOTIFY_CHANGE_LAST_ACCESS + } + if mask&sys_FS_MODIFY != 0 { + m |= syscall.FILE_NOTIFY_CHANGE_LAST_WRITE + } + if mask&sys_FS_ATTRIB != 0 { + m |= syscall.FILE_NOTIFY_CHANGE_ATTRIBUTES + } + if mask&(sys_FS_MOVE|sys_FS_CREATE|sys_FS_DELETE) != 0 { + m |= syscall.FILE_NOTIFY_CHANGE_FILE_NAME | syscall.FILE_NOTIFY_CHANGE_DIR_NAME + } + return m +} + +func toFSnotifyFlags(action uint32) uint64 { + switch action { + case syscall.FILE_ACTION_ADDED: + return sys_FS_CREATE + case syscall.FILE_ACTION_REMOVED: + return sys_FS_DELETE + case syscall.FILE_ACTION_MODIFIED: + return sys_FS_MODIFY + case syscall.FILE_ACTION_RENAMED_OLD_NAME: + return sys_FS_MOVED_FROM + case syscall.FILE_ACTION_RENAMED_NEW_NAME: + return sys_FS_MOVED_TO + } + return 0 +} diff --git a/ingress/vendor/gopkg.in/yaml.v2/.travis.yml b/ingress/vendor/gopkg.in/yaml.v2/.travis.yml deleted file mode 100644 index 004172a2e3..0000000000 --- a/ingress/vendor/gopkg.in/yaml.v2/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -go: - - 1.4 - - 1.5 - - 1.6 - - tip - -go_import_path: gopkg.in/yaml.v2 diff --git a/ingress/vendor/gopkg.in/yaml.v2/readerc.go b/ingress/vendor/gopkg.in/yaml.v2/readerc.go index f450791717..d5fb097277 100644 --- a/ingress/vendor/gopkg.in/yaml.v2/readerc.go +++ b/ingress/vendor/gopkg.in/yaml.v2/readerc.go @@ -247,7 +247,7 @@ func yaml_parser_update_buffer(parser *yaml_parser_t, length int) bool { if parser.encoding == yaml_UTF16LE_ENCODING { low, high = 0, 1 } else { - low, high = 1, 0 + high, low = 1, 0 } // The UTF-16 encoding is not as simple as one might @@ -357,26 +357,23 @@ func yaml_parser_update_buffer(parser *yaml_parser_t, length int) bool { if value <= 0x7F { // 0000 0000-0000 007F . 0xxxxxxx parser.buffer[buffer_len+0] = byte(value) - buffer_len += 1 } else if value <= 0x7FF { // 0000 0080-0000 07FF . 110xxxxx 10xxxxxx parser.buffer[buffer_len+0] = byte(0xC0 + (value >> 6)) parser.buffer[buffer_len+1] = byte(0x80 + (value & 0x3F)) - buffer_len += 2 } else if value <= 0xFFFF { // 0000 0800-0000 FFFF . 1110xxxx 10xxxxxx 10xxxxxx parser.buffer[buffer_len+0] = byte(0xE0 + (value >> 12)) parser.buffer[buffer_len+1] = byte(0x80 + ((value >> 6) & 0x3F)) parser.buffer[buffer_len+2] = byte(0x80 + (value & 0x3F)) - buffer_len += 3 } else { // 0001 0000-0010 FFFF . 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx parser.buffer[buffer_len+0] = byte(0xF0 + (value >> 18)) parser.buffer[buffer_len+1] = byte(0x80 + ((value >> 12) & 0x3F)) parser.buffer[buffer_len+2] = byte(0x80 + ((value >> 6) & 0x3F)) parser.buffer[buffer_len+3] = byte(0x80 + (value & 0x3F)) - buffer_len += 4 } + buffer_len += width parser.unread++ } diff --git a/ingress/vendor/gopkg.in/yaml.v2/scannerc.go b/ingress/vendor/gopkg.in/yaml.v2/scannerc.go index 25808000f2..d97d76fa55 100644 --- a/ingress/vendor/gopkg.in/yaml.v2/scannerc.go +++ b/ingress/vendor/gopkg.in/yaml.v2/scannerc.go @@ -1546,7 +1546,7 @@ func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool // Unknown directive. } else { yaml_parser_set_scanner_error(parser, "while scanning a directive", - start_mark, "found unknown directive name") + start_mark, "found uknown directive name") return false } diff --git a/ingress/vendor/gopkg.in/yaml.v2/yaml.go b/ingress/vendor/gopkg.in/yaml.v2/yaml.go index 36d6b883a6..d133edf9d3 100644 --- a/ingress/vendor/gopkg.in/yaml.v2/yaml.go +++ b/ingress/vendor/gopkg.in/yaml.v2/yaml.go @@ -222,7 +222,7 @@ func getStructInfo(st reflect.Type) (*structInfo, error) { inlineMap := -1 for i := 0; i != n; i++ { field := st.Field(i) - if field.PkgPath != "" && !field.Anonymous { + if field.PkgPath != "" { continue // Private field } diff --git a/ingress/vendor/k8s.io/client-go b/ingress/vendor/k8s.io/client-go new file mode 120000 index 0000000000..caf1974f8e --- /dev/null +++ b/ingress/vendor/k8s.io/client-go @@ -0,0 +1 @@ +kubernetes/staging/src/k8s.io/client-go \ No newline at end of file diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/deep_copy_generated.go deleted file mode 100644 index 455839d8a5..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/deep_copy_generated.go +++ /dev/null @@ -1,130 +0,0 @@ -// +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 federation - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_federation_Cluster, - DeepCopy_federation_ClusterCondition, - DeepCopy_federation_ClusterList, - DeepCopy_federation_ClusterSpec, - DeepCopy_federation_ClusterStatus, - DeepCopy_federation_ServerAddressByClientCIDR, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_federation_Cluster(in Cluster, out *Cluster, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_federation_ClusterSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_federation_ClusterStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_federation_ClusterCondition(in ClusterCondition, out *ClusterCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_federation_ClusterList(in ClusterList, out *ClusterList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Cluster, len(in)) - for i := range in { - if err := DeepCopy_federation_Cluster(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_federation_ClusterSpec(in ClusterSpec, out *ClusterSpec, c *conversion.Cloner) error { - if in.ServerAddressByClientCIDRs != nil { - in, out := in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs - *out = make([]ServerAddressByClientCIDR, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ServerAddressByClientCIDRs = nil - } - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(api.LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - return nil -} - -func DeepCopy_federation_ClusterStatus(in ClusterStatus, out *ClusterStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]ClusterCondition, len(in)) - for i := range in { - if err := DeepCopy_federation_ClusterCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.Zones != nil { - in, out := in.Zones, &out.Zones - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Zones = nil - } - out.Region = in.Region - return nil -} - -func DeepCopy_federation_ServerAddressByClientCIDR(in ServerAddressByClientCIDR, out *ServerAddressByClientCIDR, c *conversion.Cloner) error { - out.ClientCIDR = in.ClientCIDR - out.ServerAddress = in.ServerAddress - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/install/install.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/install/install.go index cedafe03ab..edd850fa27 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/install/install.go @@ -114,7 +114,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - federation.AddToScheme(api.Scheme) + if err := federation.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -123,7 +126,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1beta1.SchemeGroupVersion: - v1beta1.AddToScheme(api.Scheme) + if err := v1beta1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/register.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/register.go index ce906cb42a..4e19b94013 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/register.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/register.go @@ -38,18 +38,19 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -// Adds the list of known types to api.Scheme. -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Cluster{}, &ClusterList{}, &api.ListOptions{}, &api.DeleteOptions{}, ) + return nil } func (obj *Cluster) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.generated.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.generated.go index af5e512e37..b154773ea4 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.generated.go @@ -152,25 +152,25 @@ func (x *ServerAddressByClientCIDR) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym9 := z.DecBinary() + _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct10 := r.ContainerType() + if yyct10 == codecSelferValueTypeMap1234 { + yyl10 := r.ReadMapStart() + if yyl10 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl10, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct10 == codecSelferValueTypeArray1234 { + yyl10 := r.ReadArrayStart() + if yyl10 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl10, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -182,12 +182,12 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys11Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys11Slc + var yyhl11 bool = l >= 0 + for yyj11 := 0; ; yyj11++ { + if yyhl11 { + if yyj11 >= l { break } } else { @@ -196,10 +196,10 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys11Slc = r.DecodeBytes(yys11Slc, true, true) + yys11 := string(yys11Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys11 { case "clientCIDR": if r.TryDecodeAsNil() { x.ClientCIDR = "" @@ -213,9 +213,9 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.D x.ServerAddress = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys11) + } // end switch yys11 + } // end for yyj11 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -223,16 +223,16 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb6 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb6 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -242,13 +242,13 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.ClientCIDR = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb6 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb6 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -259,17 +259,17 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978 x.ServerAddress = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb6 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb6 { + if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -281,37 +281,37 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym17 := z.EncBinary() + _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.SecretRef != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep18 := !z.EncBinary() + yy2arr18 := z.EncBasicHandle().StructToArray + var yyq18 [2]bool + _, _, _ = yysep18, yyq18, yy2arr18 + const yyr18 bool = false + yyq18[1] = x.SecretRef != nil + var yynn18 int + if yyr18 || yy2arr18 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn18 = 1 + for _, b := range yyq18 { if b { - yynn2++ + yynn18++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn18) + yynn18 = 0 } - if yyr2 || yy2arr2 { + if yyr18 || yy2arr18 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.ServerAddressByClientCIDRs == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym20 := z.EncBinary() + _ = yym20 if false { } else { h.encSliceServerAddressByClientCIDR(([]ServerAddressByClientCIDR)(x.ServerAddressByClientCIDRs), e) @@ -324,17 +324,17 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.ServerAddressByClientCIDRs == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym21 := z.EncBinary() + _ = yym21 if false { } else { h.encSliceServerAddressByClientCIDR(([]ServerAddressByClientCIDR)(x.ServerAddressByClientCIDRs), e) } } } - if yyr2 || yy2arr2 { + if yyr18 || yy2arr18 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq18[1] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -344,7 +344,7 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq18[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -355,7 +355,7 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr18 || yy2arr18 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -368,25 +368,25 @@ func (x *ClusterSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym23 := z.DecBinary() + _ = yym23 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct24 := r.ContainerType() + if yyct24 == codecSelferValueTypeMap1234 { + yyl24 := r.ReadMapStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl24, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct24 == codecSelferValueTypeArray1234 { + yyl24 := r.ReadArrayStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl24, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -398,12 +398,12 @@ func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys25Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys25Slc + var yyhl25 bool = l >= 0 + for yyj25 := 0; ; yyj25++ { + if yyhl25 { + if yyj25 >= l { break } } else { @@ -412,20 +412,20 @@ func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys25Slc = r.DecodeBytes(yys25Slc, true, true) + yys25 := string(yys25Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys25 { case "serverAddressByClientCIDRs": if r.TryDecodeAsNil() { x.ServerAddressByClientCIDRs = nil } else { - yyv4 := &x.ServerAddressByClientCIDRs - yym5 := z.DecBinary() - _ = yym5 + yyv26 := &x.ServerAddressByClientCIDRs + yym27 := z.DecBinary() + _ = yym27 if false { } else { - h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv4), d) + h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv26), d) } } case "secretRef": @@ -440,9 +440,9 @@ func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys25) + } // end switch yys25 + } // end for yyj25 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -450,16 +450,16 @@ func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj29 int + var yyb29 bool + var yyhl29 bool = l >= 0 + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l } else { - yyb7 = r.CheckBreak() + yyb29 = r.CheckBreak() } - if yyb7 { + if yyb29 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -467,21 +467,21 @@ func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServerAddressByClientCIDRs = nil } else { - yyv8 := &x.ServerAddressByClientCIDRs - yym9 := z.DecBinary() - _ = yym9 + yyv30 := &x.ServerAddressByClientCIDRs + yym31 := z.DecBinary() + _ = yym31 if false { } else { - h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv8), d) + h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv30), d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l } else { - yyb7 = r.CheckBreak() + yyb29 = r.CheckBreak() } - if yyb7 { + if yyb29 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -497,17 +497,17 @@ func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretRef.CodecDecodeSelf(d) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l } else { - yyb7 = r.CheckBreak() + yyb29 = r.CheckBreak() } - if yyb7 { + if yyb29 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj29-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -516,8 +516,8 @@ func (x ClusterConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym33 := z.EncBinary() + _ = yym33 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -529,8 +529,8 @@ func (x *ClusterConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym34 := z.DecBinary() + _ = yym34 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -545,34 +545,34 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym35 := z.EncBinary() + _ = yym35 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep36 := !z.EncBinary() + yy2arr36 := z.EncBasicHandle().StructToArray + var yyq36 [6]bool + _, _, _ = yysep36, yyq36, yy2arr36 + const yyr36 bool = false + yyq36[2] = true + yyq36[3] = true + yyq36[4] = x.Reason != "" + yyq36[5] = x.Message != "" + var yynn36 int + if yyr36 || yy2arr36 { r.EncodeArrayStart(6) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn36 = 2 + for _, b := range yyq36 { if b { - yynn2++ + yynn36++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn36) + yynn36 = 0 } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -581,96 +581,106 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf7 := &x.Status - yysf7.CodecEncodeSelf(e) + yym39 := z.EncBinary() + _ = yym39 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yysf8 := &x.Status - yysf8.CodecEncodeSelf(e) + yym40 := z.EncBinary() + _ = yym40 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq36[2] { + yy42 := &x.LastProbeTime + yym43 := z.EncBinary() + _ = yym43 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy42) { + } else if yym43 { + z.EncBinaryMarshal(yy42) + } else if !yym43 && z.IsJSONHandle() { + z.EncJSONMarshal(yy42) } else { - z.EncFallback(yy10) + z.EncFallback(yy42) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq36[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy44 := &x.LastProbeTime + yym45 := z.EncBinary() + _ = yym45 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy44) { + } else if yym45 { + z.EncBinaryMarshal(yy44) + } else if !yym45 && z.IsJSONHandle() { + z.EncJSONMarshal(yy44) } else { - z.EncFallback(yy12) + z.EncFallback(yy44) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq36[3] { + yy47 := &x.LastTransitionTime + yym48 := z.EncBinary() + _ = yym48 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy47) { + } else if yym48 { + z.EncBinaryMarshal(yy47) + } else if !yym48 && z.IsJSONHandle() { + z.EncJSONMarshal(yy47) } else { - z.EncFallback(yy15) + z.EncFallback(yy47) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq36[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy49 := &x.LastTransitionTime + yym50 := z.EncBinary() + _ = yym50 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy49) { + } else if yym50 { + z.EncBinaryMarshal(yy49) + } else if !yym50 && z.IsJSONHandle() { + z.EncJSONMarshal(yy49) } else { - z.EncFallback(yy17) + z.EncFallback(yy49) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq36[4] { + yym52 := z.EncBinary() + _ = yym52 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -679,23 +689,23 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq36[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym53 := z.EncBinary() + _ = yym53 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq36[5] { + yym55 := z.EncBinary() + _ = yym55 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -704,19 +714,19 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq36[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym56 := z.EncBinary() + _ = yym56 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -729,25 +739,25 @@ func (x *ClusterCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym57 := z.DecBinary() + _ = yym57 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct58 := r.ContainerType() + if yyct58 == codecSelferValueTypeMap1234 { + yyl58 := r.ReadMapStart() + if yyl58 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl58, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct58 == codecSelferValueTypeArray1234 { + yyl58 := r.ReadArrayStart() + if yyl58 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl58, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -759,12 +769,12 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys59Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys59Slc + var yyhl59 bool = l >= 0 + for yyj59 := 0; ; yyj59++ { + if yyhl59 { + if yyj59 >= l { break } } else { @@ -773,10 +783,10 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys59Slc = r.DecodeBytes(yys59Slc, true, true) + yys59 := string(yys59Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys59 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -793,34 +803,34 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv62 := &x.LastProbeTime + yym63 := z.DecBinary() + _ = yym63 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv62) { + } else if yym63 { + z.DecBinaryUnmarshal(yyv62) + } else if !yym63 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv62) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv62, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv64 := &x.LastTransitionTime + yym65 := z.DecBinary() + _ = yym65 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv64) { + } else if yym65 { + z.DecBinaryUnmarshal(yyv64) + } else if !yym65 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv64) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv64, false) } } case "reason": @@ -836,9 +846,9 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys59) + } // end switch yys59 + } // end for yyj59 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -846,16 +856,16 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj68 int + var yyb68 bool + var yyhl68 bool = l >= 0 + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -865,13 +875,13 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Type = ClusterConditionType(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -881,13 +891,13 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Status = pkg1_api.ConditionStatus(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -895,26 +905,26 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv71 := &x.LastProbeTime + yym72 := z.DecBinary() + _ = yym72 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv71) { + } else if yym72 { + z.DecBinaryUnmarshal(yyv71) + } else if !yym72 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv71) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv71, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -922,26 +932,26 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv73 := &x.LastTransitionTime + yym74 := z.DecBinary() + _ = yym74 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv73) { + } else if yym74 { + z.DecBinaryUnmarshal(yyv73) + } else if !yym74 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv73) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv73, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -951,13 +961,13 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -968,17 +978,17 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj68-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -990,40 +1000,40 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym77 := z.EncBinary() + _ = yym77 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = len(x.Zones) != 0 - yyq2[2] = x.Region != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep78 := !z.EncBinary() + yy2arr78 := z.EncBasicHandle().StructToArray + var yyq78 [3]bool + _, _, _ = yysep78, yyq78, yy2arr78 + const yyr78 bool = false + yyq78[0] = len(x.Conditions) != 0 + yyq78[1] = len(x.Zones) != 0 + yyq78[2] = x.Region != "" + var yynn78 int + if yyr78 || yy2arr78 { r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn78 = 0 + for _, b := range yyq78 { if b { - yynn2++ + yynn78++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn78) + yynn78 = 0 } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq78[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym80 := z.EncBinary() + _ = yym80 if false { } else { h.encSliceClusterCondition(([]ClusterCondition)(x.Conditions), e) @@ -1033,15 +1043,15 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq78[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym81 := z.EncBinary() + _ = yym81 if false { } else { h.encSliceClusterCondition(([]ClusterCondition)(x.Conditions), e) @@ -1049,14 +1059,14 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq78[1] { if x.Zones == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym83 := z.EncBinary() + _ = yym83 if false { } else { z.F.EncSliceStringV(x.Zones, false, e) @@ -1066,15 +1076,15 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq78[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("zones")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Zones == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym84 := z.EncBinary() + _ = yym84 if false { } else { z.F.EncSliceStringV(x.Zones, false, e) @@ -1082,11 +1092,11 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq78[2] { + yym86 := z.EncBinary() + _ = yym86 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Region)) @@ -1095,19 +1105,19 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq78[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("region")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym87 := z.EncBinary() + _ = yym87 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Region)) } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1120,25 +1130,25 @@ func (x *ClusterStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym88 := z.DecBinary() + _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct89 := r.ContainerType() + if yyct89 == codecSelferValueTypeMap1234 { + yyl89 := r.ReadMapStart() + if yyl89 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl89, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct89 == codecSelferValueTypeArray1234 { + yyl89 := r.ReadArrayStart() + if yyl89 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl89, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1150,12 +1160,12 @@ func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys90Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys90Slc + var yyhl90 bool = l >= 0 + for yyj90 := 0; ; yyj90++ { + if yyhl90 { + if yyj90 >= l { break } } else { @@ -1164,32 +1174,32 @@ func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys90Slc = r.DecodeBytes(yys90Slc, true, true) + yys90 := string(yys90Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys90 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv91 := &x.Conditions + yym92 := z.DecBinary() + _ = yym92 if false { } else { - h.decSliceClusterCondition((*[]ClusterCondition)(yyv4), d) + h.decSliceClusterCondition((*[]ClusterCondition)(yyv91), d) } } case "zones": if r.TryDecodeAsNil() { x.Zones = nil } else { - yyv6 := &x.Zones - yym7 := z.DecBinary() - _ = yym7 + yyv93 := &x.Zones + yym94 := z.DecBinary() + _ = yym94 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv93, false, d) } } case "region": @@ -1199,9 +1209,9 @@ func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Region = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys90) + } // end switch yys90 + } // end for yyj90 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1209,16 +1219,16 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj96 int + var yyb96 bool + var yyhl96 bool = l >= 0 + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1226,21 +1236,21 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv10 := &x.Conditions - yym11 := z.DecBinary() - _ = yym11 + yyv97 := &x.Conditions + yym98 := z.DecBinary() + _ = yym98 if false { } else { - h.decSliceClusterCondition((*[]ClusterCondition)(yyv10), d) + h.decSliceClusterCondition((*[]ClusterCondition)(yyv97), d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1248,21 +1258,21 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Zones = nil } else { - yyv12 := &x.Zones - yym13 := z.DecBinary() - _ = yym13 + yyv99 := &x.Zones + yym100 := z.DecBinary() + _ = yym100 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv99, false, d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1273,17 +1283,17 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Region = string(r.DecodeString()) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj96-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1295,136 +1305,136 @@ func (x *Cluster) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym102 := z.EncBinary() + _ = yym102 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep103 := !z.EncBinary() + yy2arr103 := z.EncBasicHandle().StructToArray + var yyq103 [5]bool + _, _, _ = yysep103, yyq103, yy2arr103 + const yyr103 bool = false + yyq103[0] = x.Kind != "" + yyq103[1] = x.APIVersion != "" + yyq103[2] = true + yyq103[3] = true + yyq103[4] = true + var yynn103 int + if yyr103 || yy2arr103 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn103 = 0 + for _, b := range yyq103 { if b { - yynn2++ + yynn103++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn103) + yynn103 = 0 } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq103[0] { + yym105 := z.EncBinary() + _ = yym105 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq103[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym106 := z.EncBinary() + _ = yym106 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq103[1] { + yym108 := z.EncBinary() + _ = yym108 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq103[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym109 := z.EncBinary() + _ = yym109 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq103[2] { + yy111 := &x.ObjectMeta + yy111.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq103[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy112 := &x.ObjectMeta + yy112.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq103[3] { + yy114 := &x.Spec + yy114.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq103[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy115 := &x.Spec + yy115.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq103[4] { + yy117 := &x.Status + yy117.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq103[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy118 := &x.Status + yy118.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1437,25 +1447,25 @@ func (x *Cluster) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym119 := z.DecBinary() + _ = yym119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct120 := r.ContainerType() + if yyct120 == codecSelferValueTypeMap1234 { + yyl120 := r.ReadMapStart() + if yyl120 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl120, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct120 == codecSelferValueTypeArray1234 { + yyl120 := r.ReadArrayStart() + if yyl120 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl120, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1467,12 +1477,12 @@ func (x *Cluster) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys121Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys121Slc + var yyhl121 bool = l >= 0 + for yyj121 := 0; ; yyj121++ { + if yyhl121 { + if yyj121 >= l { break } } else { @@ -1481,47 +1491,47 @@ func (x *Cluster) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys121Slc = r.DecodeBytes(yys121Slc, true, true) + yys121 := string(yys121Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys121 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ClusterSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ClusterStatus{} + x.ObjectMeta = pkg1_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv124 := &x.ObjectMeta + yyv124.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ClusterSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv125 := &x.Spec + yyv125.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ClusterStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv126 := &x.Status + yyv126.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys121) + } // end switch yys121 + } // end for yyj121 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1529,104 +1539,104 @@ func (x *Cluster) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj127 int + var yyb127 bool + var yyhl127 bool = l >= 0 + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ClusterSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ClusterStatus{} + x.ObjectMeta = pkg1_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv130 := &x.ObjectMeta + yyv130.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ClusterSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv131 := &x.Spec + yyv131.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ClusterStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv132 := &x.Status + yyv132.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj127-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1638,139 +1648,139 @@ func (x *ClusterList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym133 := z.EncBinary() + _ = yym133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep134 := !z.EncBinary() + yy2arr134 := z.EncBasicHandle().StructToArray + var yyq134 [4]bool + _, _, _ = yysep134, yyq134, yy2arr134 + const yyr134 bool = false + yyq134[0] = x.Kind != "" + yyq134[1] = x.APIVersion != "" + yyq134[2] = true + var yynn134 int + if yyr134 || yy2arr134 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn134 = 1 + for _, b := range yyq134 { if b { - yynn2++ + yynn134++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn134) + yynn134 = 0 } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq134[0] { + yym136 := z.EncBinary() + _ = yym136 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym137 := z.EncBinary() + _ = yym137 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq134[1] { + yym139 := z.EncBinary() + _ = yym139 if false { } else { - h.encSliceCluster(([]Cluster)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq134[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym140 := z.EncBinary() + _ = yym140 if false { } else { - h.encSliceCluster(([]Cluster)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq134[2] { + yy142 := &x.ListMeta + yym143 := z.EncBinary() + _ = yym143 if false { + } else if z.HasExtensions() && z.EncExt(yy142) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy142) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq134[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy144 := &x.ListMeta + yym145 := z.EncBinary() + _ = yym145 if false { + } else if z.HasExtensions() && z.EncExt(yy144) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy144) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym147 := z.EncBinary() + _ = yym147 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceCluster(([]Cluster)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym148 := z.EncBinary() + _ = yym148 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceCluster(([]Cluster)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1783,25 +1793,25 @@ func (x *ClusterList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym149 := z.DecBinary() + _ = yym149 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct150 := r.ContainerType() + if yyct150 == codecSelferValueTypeMap1234 { + yyl150 := r.ReadMapStart() + if yyl150 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl150, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct150 == codecSelferValueTypeArray1234 { + yyl150 := r.ReadArrayStart() + if yyl150 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl150, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1813,12 +1823,12 @@ func (x *ClusterList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys151Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys151Slc + var yyhl151 bool = l >= 0 + for yyj151 := 0; ; yyj151++ { + if yyhl151 { + if yyj151 >= l { break } } else { @@ -1827,51 +1837,51 @@ func (x *ClusterList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys151Slc = r.DecodeBytes(yys151Slc, true, true) + yys151 := string(yys151Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys151 { + case "kind": if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else { - z.DecFallback(yyv4, false) - } + x.Kind = string(r.DecodeString()) } - case "items": + case "apiVersion": if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decSliceCluster((*[]Cluster)(yyv6), d) - } + x.APIVersion = string(r.DecodeString()) } - case "kind": + case "metadata": if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv154 := &x.ListMeta + yym155 := z.DecBinary() + _ = yym155 + if false { + } else if z.HasExtensions() && z.DecExt(yyv154) { + } else { + z.DecFallback(yyv154, false) + } } - case "apiVersion": + case "items": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv156 := &x.Items + yym157 := z.DecBinary() + _ = yym157 + if false { + } else { + h.decSliceCluster((*[]Cluster)(yyv156), d) + } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys151) + } // end switch yys151 + } // end for yyj151 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1879,16 +1889,48 @@ func (x *ClusterList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj158 int + var yyb158 bool + var yyhl158 bool = l >= 0 + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l + } else { + yyb158 = r.CheckBreak() + } + if yyb158 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l + } else { + yyb158 = r.CheckBreak() + } + if yyb158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1896,22 +1938,22 @@ func (x *ClusterList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 + yyv161 := &x.ListMeta + yym162 := z.DecBinary() + _ = yym162 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { + } else if z.HasExtensions() && z.DecExt(yyv161) { } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv161, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1919,58 +1961,551 @@ func (x *ClusterList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 + yyv163 := &x.Items + yym164 := z.DecBinary() + _ = yym164 if false { } else { - h.decSliceCluster((*[]Cluster)(yyv13), d) + h.decSliceCluster((*[]Cluster)(yyv163), d) + } + } + for { + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l + } else { + yyb158 = r.CheckBreak() + } + if yyb158 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj158-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FederatedReplicaSetPreferences) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym165 := z.EncBinary() + _ = yym165 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep166 := !z.EncBinary() + yy2arr166 := z.EncBasicHandle().StructToArray + var yyq166 [2]bool + _, _, _ = yysep166, yyq166, yy2arr166 + const yyr166 bool = false + yyq166[0] = x.Rebalance != false + yyq166[1] = len(x.Clusters) != 0 + var yynn166 int + if yyr166 || yy2arr166 { + r.EncodeArrayStart(2) + } else { + yynn166 = 0 + for _, b := range yyq166 { + if b { + yynn166++ + } + } + r.EncodeMapStart(yynn166) + yynn166 = 0 + } + if yyr166 || yy2arr166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq166[0] { + yym168 := z.EncBinary() + _ = yym168 + if false { + } else { + r.EncodeBool(bool(x.Rebalance)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq166[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rebalance")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym169 := z.EncBinary() + _ = yym169 + if false { + } else { + r.EncodeBool(bool(x.Rebalance)) + } + } + } + if yyr166 || yy2arr166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq166[1] { + if x.Clusters == nil { + r.EncodeNil() + } else { + yym171 := z.EncBinary() + _ = yym171 + if false { + } else { + h.encMapstringClusterReplicaSetPreferences((map[string]ClusterReplicaSetPreferences)(x.Clusters), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq166[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusters")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Clusters == nil { + r.EncodeNil() + } else { + yym172 := z.EncBinary() + _ = yym172 + if false { + } else { + h.encMapstringClusterReplicaSetPreferences((map[string]ClusterReplicaSetPreferences)(x.Clusters), e) + } + } + } + } + if yyr166 || yy2arr166 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FederatedReplicaSetPreferences) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym173 := z.DecBinary() + _ = yym173 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct174 := r.ContainerType() + if yyct174 == codecSelferValueTypeMap1234 { + yyl174 := r.ReadMapStart() + if yyl174 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl174, d) + } + } else if yyct174 == codecSelferValueTypeArray1234 { + yyl174 := r.ReadArrayStart() + if yyl174 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl174, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l +} + +func (x *FederatedReplicaSetPreferences) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys175Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys175Slc + var yyhl175 bool = l >= 0 + for yyj175 := 0; ; yyj175++ { + if yyhl175 { + if yyj175 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys175Slc = r.DecodeBytes(yys175Slc, true, true) + yys175 := string(yys175Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys175 { + case "rebalance": + if r.TryDecodeAsNil() { + x.Rebalance = false + } else { + x.Rebalance = bool(r.DecodeBool()) + } + case "clusters": + if r.TryDecodeAsNil() { + x.Clusters = nil + } else { + yyv177 := &x.Clusters + yym178 := z.DecBinary() + _ = yym178 + if false { + } else { + h.decMapstringClusterReplicaSetPreferences((*map[string]ClusterReplicaSetPreferences)(yyv177), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys175) + } // end switch yys175 + } // end for yyj175 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *FederatedReplicaSetPreferences) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj179 int + var yyb179 bool + var yyhl179 bool = l >= 0 + yyj179++ + if yyhl179 { + yyb179 = yyj179 > l } else { - yyb10 = r.CheckBreak() + yyb179 = r.CheckBreak() } - if yyb10 { + if yyb179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Rebalance = false } else { - x.Kind = string(r.DecodeString()) + x.Rebalance = bool(r.DecodeBool()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj179++ + if yyhl179 { + yyb179 = yyj179 > l } else { - yyb10 = r.CheckBreak() + yyb179 = r.CheckBreak() } - if yyb10 { + if yyb179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Clusters = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv181 := &x.Clusters + yym182 := z.DecBinary() + _ = yym182 + if false { + } else { + h.decMapstringClusterReplicaSetPreferences((*map[string]ClusterReplicaSetPreferences)(yyv181), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj179++ + if yyhl179 { + yyb179 = yyj179 > l } else { - yyb10 = r.CheckBreak() + yyb179 = r.CheckBreak() } - if yyb10 { + if yyb179 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj179-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ClusterReplicaSetPreferences) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym183 := z.EncBinary() + _ = yym183 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep184 := !z.EncBinary() + yy2arr184 := z.EncBasicHandle().StructToArray + var yyq184 [3]bool + _, _, _ = yysep184, yyq184, yy2arr184 + const yyr184 bool = false + yyq184[0] = x.MinReplicas != 0 + yyq184[1] = x.MaxReplicas != nil + var yynn184 int + if yyr184 || yy2arr184 { + r.EncodeArrayStart(3) + } else { + yynn184 = 1 + for _, b := range yyq184 { + if b { + yynn184++ + } + } + r.EncodeMapStart(yynn184) + yynn184 = 0 + } + if yyr184 || yy2arr184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq184[0] { + yym186 := z.EncBinary() + _ = yym186 + if false { + } else { + r.EncodeInt(int64(x.MinReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq184[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym187 := z.EncBinary() + _ = yym187 + if false { + } else { + r.EncodeInt(int64(x.MinReplicas)) + } + } + } + if yyr184 || yy2arr184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq184[1] { + if x.MaxReplicas == nil { + r.EncodeNil() + } else { + yy189 := *x.MaxReplicas + yym190 := z.EncBinary() + _ = yym190 + if false { + } else { + r.EncodeInt(int64(yy189)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq184[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.MaxReplicas == nil { + r.EncodeNil() + } else { + yy191 := *x.MaxReplicas + yym192 := z.EncBinary() + _ = yym192 + if false { + } else { + r.EncodeInt(int64(yy191)) + } + } + } + } + if yyr184 || yy2arr184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym194 := z.EncBinary() + _ = yym194 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Weight")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym195 := z.EncBinary() + _ = yym195 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr184 || yy2arr184 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ClusterReplicaSetPreferences) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym196 := z.DecBinary() + _ = yym196 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct197 := r.ContainerType() + if yyct197 == codecSelferValueTypeMap1234 { + yyl197 := r.ReadMapStart() + if yyl197 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl197, d) + } + } else if yyct197 == codecSelferValueTypeArray1234 { + yyl197 := r.ReadArrayStart() + if yyl197 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl197, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ClusterReplicaSetPreferences) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys198Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys198Slc + var yyhl198 bool = l >= 0 + for yyj198 := 0; ; yyj198++ { + if yyhl198 { + if yyj198 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys198Slc = r.DecodeBytes(yys198Slc, true, true) + yys198 := string(yys198Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys198 { + case "minReplicas": + if r.TryDecodeAsNil() { + x.MinReplicas = 0 + } else { + x.MinReplicas = int64(r.DecodeInt(64)) + } + case "maxReplicas": + if r.TryDecodeAsNil() { + if x.MaxReplicas != nil { + x.MaxReplicas = nil + } + } else { + if x.MaxReplicas == nil { + x.MaxReplicas = new(int64) + } + yym201 := z.DecBinary() + _ = yym201 + if false { + } else { + *((*int64)(x.MaxReplicas)) = int64(r.DecodeInt(64)) + } + } + case "Weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys198) + } // end switch yys198 + } // end for yyj198 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ClusterReplicaSetPreferences) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb203 = r.CheckBreak() + } + if yyb203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinReplicas = 0 + } else { + x.MinReplicas = int64(r.DecodeInt(64)) + } + yyj203++ + if yyhl203 { + yyb203 = yyj203 > l + } else { + yyb203 = r.CheckBreak() + } + if yyb203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.MaxReplicas != nil { + x.MaxReplicas = nil + } + } else { + if x.MaxReplicas == nil { + x.MaxReplicas = new(int64) + } + yym206 := z.DecBinary() + _ = yym206 + if false { + } else { + *((*int64)(x.MaxReplicas)) = int64(r.DecodeInt(64)) + } + } + yyj203++ + if yyhl203 { + yyb203 = yyj203 > l + } else { + yyb203 = r.CheckBreak() + } + if yyb203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int64(r.DecodeInt(64)) + } + for { + yyj203++ + if yyhl203 { + yyb203 = yyj203 > l + } else { + yyb203 = r.CheckBreak() + } + if yyb203 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj203-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1980,10 +2515,10 @@ func (x codecSelfer1234) encSliceServerAddressByClientCIDR(v []ServerAddressByCl z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv208 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy209 := &yyv208 + yy209.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1993,86 +2528,83 @@ func (x codecSelfer1234) decSliceServerAddressByClientCIDR(v *[]ServerAddressByC z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ServerAddressByClientCIDR{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyv210 := *v + yyh210, yyl210 := z.DecSliceHelperStart() + var yyc210 bool + if yyl210 == 0 { + if yyv210 == nil { + yyv210 = []ServerAddressByClientCIDR{} + yyc210 = true + } else if len(yyv210) != 0 { + yyv210 = yyv210[:0] + yyc210 = true + } + } else if yyl210 > 0 { + var yyrr210, yyrl210 int + var yyrt210 bool + if yyl210 > cap(yyv210) { + + yyrg210 := len(yyv210) > 0 + yyv2210 := yyv210 + yyrl210, yyrt210 = z.DecInferLen(yyl210, z.DecBasicHandle().MaxInitLen, 32) + if yyrt210 { + if yyrl210 <= cap(yyv210) { + yyv210 = yyv210[:yyrl210] } else { - yyv1 = make([]ServerAddressByClientCIDR, yyrl1) + yyv210 = make([]ServerAddressByClientCIDR, yyrl210) } } else { - yyv1 = make([]ServerAddressByClientCIDR, yyrl1) + yyv210 = make([]ServerAddressByClientCIDR, yyrl210) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc210 = true + yyrr210 = len(yyv210) + if yyrg210 { + copy(yyv210, yyv2210) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl210 != len(yyv210) { + yyv210 = yyv210[:yyl210] + yyc210 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj210 := 0 + for ; yyj210 < yyrr210; yyj210++ { + yyh210.ElemContainerState(yyj210) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServerAddressByClientCIDR{} + yyv210[yyj210] = ServerAddressByClientCIDR{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv211 := &yyv210[yyj210] + yyv211.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ServerAddressByClientCIDR{}) - yyh1.ElemContainerState(yyj1) + if yyrt210 { + for ; yyj210 < yyl210; yyj210++ { + yyv210 = append(yyv210, ServerAddressByClientCIDR{}) + yyh210.ElemContainerState(yyj210) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServerAddressByClientCIDR{} + yyv210[yyj210] = ServerAddressByClientCIDR{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv212 := &yyv210[yyj210] + yyv212.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj210 := 0 + for ; !r.CheckBreak(); yyj210++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ServerAddressByClientCIDR{}) // var yyz1 ServerAddressByClientCIDR - yyc1 = true + if yyj210 >= len(yyv210) { + yyv210 = append(yyv210, ServerAddressByClientCIDR{}) // var yyz210 ServerAddressByClientCIDR + yyc210 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh210.ElemContainerState(yyj210) + if yyj210 < len(yyv210) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ServerAddressByClientCIDR{} + yyv210[yyj210] = ServerAddressByClientCIDR{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv213 := &yyv210[yyj210] + yyv213.CodecDecodeSelf(d) } } else { @@ -2080,17 +2612,17 @@ func (x codecSelfer1234) decSliceServerAddressByClientCIDR(v *[]ServerAddressByC } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ServerAddressByClientCIDR{} - yyc1 = true + if yyj210 < len(yyv210) { + yyv210 = yyv210[:yyj210] + yyc210 = true + } else if yyj210 == 0 && yyv210 == nil { + yyv210 = []ServerAddressByClientCIDR{} + yyc210 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh210.End() + if yyc210 { + *v = yyv210 } } @@ -2099,10 +2631,10 @@ func (x codecSelfer1234) encSliceClusterCondition(v []ClusterCondition, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv214 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy215 := &yyv214 + yy215.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2112,86 +2644,83 @@ func (x codecSelfer1234) decSliceClusterCondition(v *[]ClusterCondition, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ClusterCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyv216 := *v + yyh216, yyl216 := z.DecSliceHelperStart() + var yyc216 bool + if yyl216 == 0 { + if yyv216 == nil { + yyv216 = []ClusterCondition{} + yyc216 = true + } else if len(yyv216) != 0 { + yyv216 = yyv216[:0] + yyc216 = true + } + } else if yyl216 > 0 { + var yyrr216, yyrl216 int + var yyrt216 bool + if yyl216 > cap(yyv216) { + + yyrg216 := len(yyv216) > 0 + yyv2216 := yyv216 + yyrl216, yyrt216 = z.DecInferLen(yyl216, z.DecBasicHandle().MaxInitLen, 112) + if yyrt216 { + if yyrl216 <= cap(yyv216) { + yyv216 = yyv216[:yyrl216] } else { - yyv1 = make([]ClusterCondition, yyrl1) + yyv216 = make([]ClusterCondition, yyrl216) } } else { - yyv1 = make([]ClusterCondition, yyrl1) + yyv216 = make([]ClusterCondition, yyrl216) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc216 = true + yyrr216 = len(yyv216) + if yyrg216 { + copy(yyv216, yyv2216) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl216 != len(yyv216) { + yyv216 = yyv216[:yyl216] + yyc216 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj216 := 0 + for ; yyj216 < yyrr216; yyj216++ { + yyh216.ElemContainerState(yyj216) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterCondition{} + yyv216[yyj216] = ClusterCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv217 := &yyv216[yyj216] + yyv217.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ClusterCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt216 { + for ; yyj216 < yyl216; yyj216++ { + yyv216 = append(yyv216, ClusterCondition{}) + yyh216.ElemContainerState(yyj216) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterCondition{} + yyv216[yyj216] = ClusterCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv218 := &yyv216[yyj216] + yyv218.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj216 := 0 + for ; !r.CheckBreak(); yyj216++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ClusterCondition{}) // var yyz1 ClusterCondition - yyc1 = true + if yyj216 >= len(yyv216) { + yyv216 = append(yyv216, ClusterCondition{}) // var yyz216 ClusterCondition + yyc216 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh216.ElemContainerState(yyj216) + if yyj216 < len(yyv216) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterCondition{} + yyv216[yyj216] = ClusterCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv219 := &yyv216[yyj216] + yyv219.CodecDecodeSelf(d) } } else { @@ -2199,17 +2728,17 @@ func (x codecSelfer1234) decSliceClusterCondition(v *[]ClusterCondition, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ClusterCondition{} - yyc1 = true + if yyj216 < len(yyv216) { + yyv216 = yyv216[:yyj216] + yyc216 = true + } else if yyj216 == 0 && yyv216 == nil { + yyv216 = []ClusterCondition{} + yyc216 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh216.End() + if yyc216 { + *v = yyv216 } } @@ -2218,10 +2747,10 @@ func (x codecSelfer1234) encSliceCluster(v []Cluster, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv220 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy221 := &yyv220 + yy221.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2231,86 +2760,83 @@ func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Cluster{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 336) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyv222 := *v + yyh222, yyl222 := z.DecSliceHelperStart() + var yyc222 bool + if yyl222 == 0 { + if yyv222 == nil { + yyv222 = []Cluster{} + yyc222 = true + } else if len(yyv222) != 0 { + yyv222 = yyv222[:0] + yyc222 = true + } + } else if yyl222 > 0 { + var yyrr222, yyrl222 int + var yyrt222 bool + if yyl222 > cap(yyv222) { + + yyrg222 := len(yyv222) > 0 + yyv2222 := yyv222 + yyrl222, yyrt222 = z.DecInferLen(yyl222, z.DecBasicHandle().MaxInitLen, 352) + if yyrt222 { + if yyrl222 <= cap(yyv222) { + yyv222 = yyv222[:yyrl222] } else { - yyv1 = make([]Cluster, yyrl1) + yyv222 = make([]Cluster, yyrl222) } } else { - yyv1 = make([]Cluster, yyrl1) + yyv222 = make([]Cluster, yyrl222) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc222 = true + yyrr222 = len(yyv222) + if yyrg222 { + copy(yyv222, yyv2222) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl222 != len(yyv222) { + yyv222 = yyv222[:yyl222] + yyc222 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj222 := 0 + for ; yyj222 < yyrr222; yyj222++ { + yyh222.ElemContainerState(yyj222) if r.TryDecodeAsNil() { - yyv1[yyj1] = Cluster{} + yyv222[yyj222] = Cluster{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv223 := &yyv222[yyj222] + yyv223.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Cluster{}) - yyh1.ElemContainerState(yyj1) + if yyrt222 { + for ; yyj222 < yyl222; yyj222++ { + yyv222 = append(yyv222, Cluster{}) + yyh222.ElemContainerState(yyj222) if r.TryDecodeAsNil() { - yyv1[yyj1] = Cluster{} + yyv222[yyj222] = Cluster{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv224 := &yyv222[yyj222] + yyv224.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj222 := 0 + for ; !r.CheckBreak(); yyj222++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Cluster{}) // var yyz1 Cluster - yyc1 = true + if yyj222 >= len(yyv222) { + yyv222 = append(yyv222, Cluster{}) // var yyz222 Cluster + yyc222 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh222.ElemContainerState(yyj222) + if yyj222 < len(yyv222) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Cluster{} + yyv222[yyj222] = Cluster{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv225 := &yyv222[yyj222] + yyv225.CodecDecodeSelf(d) } } else { @@ -2318,16 +2844,111 @@ func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Cluster{} - yyc1 = true + if yyj222 < len(yyv222) { + yyv222 = yyv222[:yyj222] + yyc222 = true + } else if yyj222 == 0 && yyv222 == nil { + yyv222 = []Cluster{} + yyc222 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh222.End() + if yyc222 { + *v = yyv222 } } + +func (x codecSelfer1234) encMapstringClusterReplicaSetPreferences(v map[string]ClusterReplicaSetPreferences, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk226, yyv226 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym227 := z.EncBinary() + _ = yym227 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk226)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy228 := &yyv226 + yy228.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decMapstringClusterReplicaSetPreferences(v *map[string]ClusterReplicaSetPreferences, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv229 := *v + yyl229 := r.ReadMapStart() + yybh229 := z.DecBasicHandle() + if yyv229 == nil { + yyrl229, _ := z.DecInferLen(yyl229, yybh229.MaxInitLen, 40) + yyv229 = make(map[string]ClusterReplicaSetPreferences, yyrl229) + *v = yyv229 + } + var yymk229 string + var yymv229 ClusterReplicaSetPreferences + var yymg229 bool + if yybh229.MapValueReset { + yymg229 = true + } + if yyl229 > 0 { + for yyj229 := 0; yyj229 < yyl229; yyj229++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk229 = "" + } else { + yymk229 = string(r.DecodeString()) + } + + if yymg229 { + yymv229 = yyv229[yymk229] + } else { + yymv229 = ClusterReplicaSetPreferences{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv229 = ClusterReplicaSetPreferences{} + } else { + yyv231 := &yymv229 + yyv231.CodecDecodeSelf(d) + } + + if yyv229 != nil { + yyv229[yymk229] = yymv229 + } + } + } else if yyl229 < 0 { + for yyj229 := 0; !r.CheckBreak(); yyj229++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk229 = "" + } else { + yymk229 = string(r.DecodeString()) + } + + if yymg229 { + yymv229 = yyv229[yymk229] + } else { + yymv229 = ClusterReplicaSetPreferences{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv229 = ClusterReplicaSetPreferences{} + } else { + yyv233 := &yymv229 + yyv233.CodecDecodeSelf(d) + } + + if yyv229 != nil { + yyv229[yymk229] = yymv229 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.go index c3ee0eab83..7e3c66348c 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/types.go @@ -108,3 +108,32 @@ type ClusterList struct { // List of Cluster objects. Items []Cluster `json:"items"` } + +// Temporary/alpha stuctures to support custom replica assignments within FederatedReplicaSet. + +// A set of preferences that can be added to federated version of ReplicaSet as a json-serialized annotation. +// The preferences allow the user to express in which culsters he wants to put his replicas within the +// mentiond FederatedReplicaSet. +type FederatedReplicaSetPreferences struct { + // If set to true then already scheduled and running replicas may be moved to other clusters to + // in order to bring cluster replicasets towards a desired state. Otherwise, if set to false, + // up and running replicas will not be moved. + Rebalance bool `json:"rebalance,omitempty"` + + // A mapping between cluser names and preferences regarding local replicasets in these clusters. + // "*" (if provided) applies to all clusters if an explicit mapping is not provided. If there is no + // "*" that clusters without explicit preferences should not have any replicas scheduled. + Clusters map[string]ClusterReplicaSetPreferences `json:"clusters,omitempty"` +} + +// Preferences regarding number of replicas assigned to a cluster replicaset within a federated replicaset. +type ClusterReplicaSetPreferences struct { + // Minimum number of replicas that should be assigned to this Local ReplicaSet. 0 by default. + MinReplicas int64 `json:"minReplicas,omitempty"` + + // Maximum number of replicas that should be assigned to this Local ReplicaSet. Unbounded if no value provided (default). + MaxReplicas *int64 `json:"maxReplicas,omitempty"` + + // A number expressing the preference to put an additional replica to this LocalReplicaSet. 0 by default. + Weight int64 +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion.go index f7ca2372aa..5881109c6a 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion.go @@ -19,12 +19,11 @@ package v1beta1 import ( "fmt" - "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/runtime" ) -func addConversionFuncs(scheme *runtime.Scheme) { - err := api.Scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.String(), "Cluster", +func addConversionFuncs(scheme *runtime.Scheme) error { + return scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.String(), "Cluster", func(label, value string) (string, string, error) { switch label { case "metadata.name": @@ -32,9 +31,6 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + }, + ) } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/deep_copy_generated.go deleted file mode 100644 index 2fd58fa4c6..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/deep_copy_generated.go +++ /dev/null @@ -1,131 +0,0 @@ -// +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 v1beta1 - -import ( - api "k8s.io/kubernetes/pkg/api" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1beta1_Cluster, - DeepCopy_v1beta1_ClusterCondition, - DeepCopy_v1beta1_ClusterList, - DeepCopy_v1beta1_ClusterSpec, - DeepCopy_v1beta1_ClusterStatus, - DeepCopy_v1beta1_ServerAddressByClientCIDR, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1beta1_Cluster(in Cluster, out *Cluster, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_ClusterSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_ClusterStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_ClusterCondition(in ClusterCondition, out *ClusterCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v1beta1_ClusterList(in ClusterList, out *ClusterList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Cluster, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_Cluster(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_ClusterSpec(in ClusterSpec, out *ClusterSpec, c *conversion.Cloner) error { - if in.ServerAddressByClientCIDRs != nil { - in, out := in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs - *out = make([]ServerAddressByClientCIDR, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ServerAddressByClientCIDRs = nil - } - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(v1.LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - return nil -} - -func DeepCopy_v1beta1_ClusterStatus(in ClusterStatus, out *ClusterStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]ClusterCondition, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_ClusterCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.Zones != nil { - in, out := in.Zones, &out.Zones - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Zones = nil - } - out.Region = in.Region - return nil -} - -func DeepCopy_v1beta1_ServerAddressByClientCIDR(in ServerAddressByClientCIDR, out *ServerAddressByClientCIDR, c *conversion.Cloner) error { - out.ClientCIDR = in.ClientCIDR - out.ServerAddress = in.ServerAddress - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/defaults.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/defaults.go index 54aef235ef..5704712048 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/defaults.go @@ -20,5 +20,6 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.pb.go index c9c4341eb6..e6c79651eb 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.pb.go @@ -40,6 +40,9 @@ import math "math" import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -47,29 +50,35 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *Cluster) Reset() { *m = Cluster{} } -func (m *Cluster) String() string { return proto.CompactTextString(m) } -func (*Cluster) ProtoMessage() {} +// 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 *Cluster) Reset() { *m = Cluster{} } +func (*Cluster) ProtoMessage() {} +func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *ClusterCondition) Reset() { *m = ClusterCondition{} } -func (m *ClusterCondition) String() string { return proto.CompactTextString(m) } -func (*ClusterCondition) ProtoMessage() {} +func (m *ClusterCondition) Reset() { *m = ClusterCondition{} } +func (*ClusterCondition) ProtoMessage() {} +func (*ClusterCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *ClusterList) Reset() { *m = ClusterList{} } -func (m *ClusterList) String() string { return proto.CompactTextString(m) } -func (*ClusterList) ProtoMessage() {} +func (m *ClusterList) Reset() { *m = ClusterList{} } +func (*ClusterList) ProtoMessage() {} +func (*ClusterList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *ClusterSpec) Reset() { *m = ClusterSpec{} } -func (m *ClusterSpec) String() string { return proto.CompactTextString(m) } -func (*ClusterSpec) ProtoMessage() {} +func (m *ClusterSpec) Reset() { *m = ClusterSpec{} } +func (*ClusterSpec) ProtoMessage() {} +func (*ClusterSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } -func (m *ClusterStatus) String() string { return proto.CompactTextString(m) } -func (*ClusterStatus) ProtoMessage() {} +func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } +func (*ClusterStatus) ProtoMessage() {} +func (*ClusterStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} } -func (m *ServerAddressByClientCIDR) String() string { return proto.CompactTextString(m) } -func (*ServerAddressByClientCIDR) ProtoMessage() {} +func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} } +func (*ServerAddressByClientCIDR) ProtoMessage() {} +func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{5} +} func init() { proto.RegisterType((*Cluster)(nil), "k8s.io.kubernetes.federation.apis.federation.v1beta1.Cluster") @@ -454,6 +463,86 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Cluster) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Cluster{`, + `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(), "ClusterSpec", "ClusterSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ClusterStatus", "ClusterStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Cluster", "Cluster", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterSpec{`, + `ServerAddressByClientCIDRs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ServerAddressByClientCIDRs), "ServerAddressByClientCIDR", "ServerAddressByClientCIDR", 1), `&`, ``, 1) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "k8s_io_kubernetes_pkg_api_v1.LocalObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterStatus{`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "ClusterCondition", "ClusterCondition", 1), `&`, ``, 1) + `,`, + `Zones:` + fmt.Sprintf("%v", this.Zones) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `}`, + }, "") + return s +} +func (this *ServerAddressByClientCIDR) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServerAddressByClientCIDR{`, + `ClientCIDR:` + fmt.Sprintf("%v", this.ClientCIDR) + `,`, + `ServerAddress:` + fmt.Sprintf("%v", this.ServerAddress) + `,`, + `}`, + }, "") + 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 *Cluster) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -1396,3 +1485,56 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 776 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x54, 0xdf, 0x6a, 0x13, 0x4d, + 0x14, 0x6f, 0xfe, 0x37, 0xd3, 0x2f, 0xdf, 0x57, 0x86, 0x4f, 0x88, 0xb9, 0x68, 0x24, 0x88, 0xb4, + 0x68, 0x77, 0x69, 0x50, 0x28, 0x88, 0x42, 0x37, 0x45, 0x28, 0xa4, 0x54, 0xa6, 0x45, 0xa4, 0x20, + 0xb2, 0xd9, 0x9c, 0xa6, 0x6b, 0x92, 0xdd, 0x30, 0x33, 0x5b, 0x69, 0xaf, 0x7c, 0x00, 0x2f, 0x7c, + 0x08, 0xdf, 0x40, 0x7c, 0x87, 0x5e, 0xf6, 0xc2, 0x0b, 0xf1, 0xa2, 0x68, 0x7d, 0x0b, 0xaf, 0x9c, + 0x99, 0x9d, 0x6c, 0x76, 0xbb, 0x4d, 0xd0, 0xf6, 0x62, 0x60, 0xcf, 0xd9, 0x73, 0x7e, 0xbf, 0xdf, + 0x9c, 0x73, 0xe6, 0xa0, 0xcd, 0xfe, 0x3a, 0x33, 0x5c, 0xdf, 0xec, 0x07, 0x1d, 0xa0, 0x1e, 0x70, + 0x60, 0xe6, 0x01, 0x74, 0x81, 0xda, 0xdc, 0xf5, 0x3d, 0xd3, 0x1e, 0xb9, 0x09, 0xfb, 0x68, 0xad, + 0x03, 0xdc, 0x5e, 0x33, 0x7b, 0xe0, 0x49, 0x17, 0x74, 0x8d, 0x11, 0xf5, 0xb9, 0x8f, 0x1f, 0x86, + 0x28, 0xc6, 0x04, 0xc5, 0x98, 0x64, 0x19, 0x12, 0x25, 0x6e, 0x6b, 0x94, 0xda, 0x6a, 0xcf, 0xe5, + 0x87, 0x41, 0xc7, 0x70, 0xfc, 0xa1, 0xd9, 0xf3, 0x7b, 0xbe, 0xa9, 0xc0, 0x3a, 0xc1, 0x81, 0xb2, + 0x94, 0xa1, 0xbe, 0x42, 0x92, 0x5a, 0x33, 0x2d, 0x75, 0xd4, 0xef, 0x49, 0x8d, 0x26, 0x05, 0xe6, + 0x07, 0xd4, 0x81, 0xcb, 0xc2, 0x6a, 0x8f, 0xa6, 0xe7, 0x04, 0xde, 0x11, 0x50, 0x26, 0xf4, 0x40, + 0x37, 0x95, 0xf6, 0x60, 0x7a, 0xda, 0x51, 0xea, 0xf6, 0xb5, 0xd5, 0xab, 0xa3, 0x69, 0xe0, 0x71, + 0x77, 0x98, 0xd6, 0xb4, 0x76, 0x75, 0x78, 0xc0, 0xdd, 0x81, 0xe9, 0x7a, 0x9c, 0x71, 0x7a, 0x39, + 0xa5, 0xf1, 0x39, 0x8b, 0x4a, 0xad, 0x41, 0xc0, 0x38, 0x50, 0xfc, 0x12, 0xcd, 0x0f, 0x45, 0xf9, + 0xba, 0x36, 0xb7, 0xab, 0x99, 0x3b, 0x99, 0xe5, 0x85, 0xe6, 0xb2, 0x91, 0x2e, 0xbf, 0x40, 0x94, + 0x75, 0x17, 0xb5, 0x36, 0x76, 0x3a, 0x6f, 0xc0, 0xe1, 0xdb, 0x22, 0xc7, 0xc2, 0xa7, 0xe7, 0xf5, + 0xb9, 0x8b, 0xf3, 0x3a, 0x9a, 0xf8, 0x48, 0x84, 0x86, 0x1d, 0x94, 0x67, 0x23, 0x70, 0xaa, 0x59, + 0x85, 0xba, 0x61, 0x5c, 0xa7, 0xa9, 0x86, 0x96, 0xb9, 0x2b, 0x80, 0xac, 0x7f, 0x34, 0x5d, 0x5e, + 0x5a, 0x44, 0x81, 0xe3, 0x3e, 0x2a, 0x32, 0x6e, 0xf3, 0x80, 0x55, 0x73, 0x8a, 0xa6, 0x75, 0x33, + 0x1a, 0x05, 0x65, 0xfd, 0xab, 0x89, 0x8a, 0xa1, 0x4d, 0x34, 0x45, 0xe3, 0x5b, 0x0e, 0x2d, 0xea, + 0xc8, 0x96, 0xef, 0x75, 0x5d, 0x09, 0x81, 0xd7, 0x51, 0x9e, 0x1f, 0x8f, 0x40, 0x15, 0xaf, 0x6c, + 0xdd, 0x1d, 0x6b, 0xdc, 0x13, 0xbe, 0x5f, 0xe7, 0xf5, 0xff, 0x2f, 0xc7, 0x4b, 0x3f, 0x51, 0x19, + 0xf8, 0x45, 0xa4, 0x3d, 0xab, 0x72, 0x9f, 0x26, 0x69, 0x45, 0xf6, 0xcc, 0xc1, 0x31, 0x22, 0xcc, + 0xa4, 0x4c, 0x7c, 0x88, 0x2a, 0x03, 0x9b, 0xf1, 0xe7, 0xd4, 0xef, 0xc0, 0x9e, 0x18, 0x19, 0x5d, + 0x9a, 0xfb, 0x33, 0xfa, 0x1a, 0x9b, 0x5e, 0x43, 0xa6, 0x58, 0xb7, 0xb4, 0x96, 0x4a, 0x3b, 0x8e, + 0x44, 0x92, 0xc0, 0xf8, 0x2d, 0xc2, 0xd2, 0xb1, 0x47, 0x6d, 0x8f, 0x85, 0xb7, 0x93, 0x74, 0xf9, + 0xbf, 0xa7, 0xab, 0x69, 0x3a, 0xdc, 0x4e, 0xc1, 0x91, 0x2b, 0x28, 0xf0, 0x3d, 0x54, 0xa4, 0x60, + 0x33, 0xdf, 0xab, 0x16, 0x54, 0xe9, 0xa2, 0x8e, 0x11, 0xe5, 0x25, 0xfa, 0x2f, 0x5e, 0x41, 0xa5, + 0x21, 0x30, 0x66, 0xf7, 0xa0, 0x5a, 0x54, 0x81, 0xff, 0xe9, 0xc0, 0xd2, 0x76, 0xe8, 0x26, 0xe3, + 0xff, 0x8d, 0xb3, 0x0c, 0x5a, 0xd0, 0xcd, 0x6a, 0xbb, 0x8c, 0xe3, 0x57, 0xa9, 0x87, 0x61, 0xfe, + 0xe1, 0x8d, 0x64, 0xba, 0x7a, 0x1f, 0x8b, 0x9a, 0x6c, 0x7e, 0xec, 0x89, 0xbd, 0x8e, 0x0e, 0x2a, + 0xb8, 0x1c, 0x86, 0xb2, 0xf7, 0x39, 0x81, 0xfd, 0xe4, 0x46, 0x73, 0x6b, 0x55, 0x34, 0x53, 0x61, + 0x4b, 0x62, 0x92, 0x10, 0xba, 0xf1, 0x31, 0x1b, 0x5d, 0x49, 0x3e, 0x19, 0xfc, 0x29, 0x83, 0x6a, + 0x0c, 0xa8, 0x50, 0xba, 0xd1, 0xed, 0x8a, 0x25, 0xc7, 0xac, 0xe3, 0xd6, 0xc0, 0x05, 0x8f, 0xb7, + 0xb6, 0x36, 0x09, 0x13, 0xb7, 0x94, 0x4a, 0x76, 0xae, 0xa7, 0x64, 0x77, 0x1a, 0xae, 0xd5, 0xd0, + 0xda, 0x6a, 0x53, 0x43, 0x18, 0x99, 0x21, 0x0b, 0xbf, 0x46, 0x65, 0x06, 0x0e, 0x05, 0x4e, 0xe0, + 0x40, 0x2f, 0x93, 0xe6, 0xec, 0x15, 0xd5, 0xf6, 0x1d, 0x7b, 0x10, 0xee, 0x24, 0x91, 0x03, 0x14, + 0x3c, 0x07, 0xac, 0x8a, 0x90, 0x50, 0xde, 0x1d, 0x03, 0x91, 0x09, 0x66, 0xe3, 0x4b, 0x06, 0x55, + 0x12, 0x0b, 0x00, 0x9f, 0x20, 0xe4, 0x8c, 0x1f, 0xd7, 0xb8, 0x2e, 0xcf, 0x6e, 0xd4, 0xa1, 0xe8, + 0xad, 0x4e, 0x96, 0x66, 0xe4, 0x62, 0x24, 0xc6, 0x86, 0xeb, 0xa8, 0x70, 0x22, 0xc6, 0x88, 0x89, + 0xc9, 0xce, 0x89, 0x81, 0x2d, 0xcb, 0xae, 0xee, 0x4b, 0x07, 0x09, 0xfd, 0xe1, 0xec, 0xf7, 0x44, + 0xac, 0x1e, 0xe9, 0xd8, 0xec, 0x4b, 0x2f, 0xd1, 0x7f, 0x1b, 0xef, 0x33, 0xe8, 0xf6, 0xd4, 0x92, + 0xe3, 0xa6, 0xb8, 0x62, 0x64, 0xe9, 0xe5, 0x35, 0x91, 0x16, 0xfd, 0x21, 0xb1, 0x28, 0xfc, 0x18, + 0x55, 0x12, 0x7d, 0xd2, 0x7b, 0x2b, 0xda, 0x15, 0x09, 0x36, 0x92, 0x8c, 0xb5, 0x56, 0x4e, 0x7f, + 0x2c, 0xcd, 0x9d, 0x89, 0xf3, 0x55, 0x9c, 0x77, 0x17, 0x4b, 0x99, 0x53, 0x71, 0xce, 0xc4, 0xf9, + 0x2e, 0xce, 0x87, 0x9f, 0x4b, 0x73, 0xfb, 0x25, 0x5d, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x48, 0x5d, 0x6b, 0x0c, 0x46, 0x08, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.proto b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.proto index d14f69e7fd..2eef53fe7e 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/generated.proto @@ -24,6 +24,7 @@ package k8s.io.kubernetes.federation.apis.federation.v1beta1; 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". diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/register.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/register.go index 7d7195ca1c..8fe059b140 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/register.go @@ -29,14 +29,12 @@ const GroupName = "federation" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"} -// Adds the list of known types to api.Scheme. -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Cluster{}, &ClusterList{}, @@ -44,6 +42,7 @@ func addKnownTypes(scheme *runtime.Scheme) { &v1.DeleteOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } func (obj *Cluster) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/types.generated.go index c959446e2a..488be61eec 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/types.generated.go @@ -152,25 +152,25 @@ func (x *ServerAddressByClientCIDR) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym9 := z.DecBinary() + _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct10 := r.ContainerType() + if yyct10 == codecSelferValueTypeMap1234 { + yyl10 := r.ReadMapStart() + if yyl10 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl10, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct10 == codecSelferValueTypeArray1234 { + yyl10 := r.ReadArrayStart() + if yyl10 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl10, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -182,12 +182,12 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys11Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys11Slc + var yyhl11 bool = l >= 0 + for yyj11 := 0; ; yyj11++ { + if yyhl11 { + if yyj11 >= l { break } } else { @@ -196,10 +196,10 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys11Slc = r.DecodeBytes(yys11Slc, true, true) + yys11 := string(yys11Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys11 { case "clientCIDR": if r.TryDecodeAsNil() { x.ClientCIDR = "" @@ -213,9 +213,9 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.D x.ServerAddress = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys11) + } // end switch yys11 + } // end for yyj11 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -223,16 +223,16 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb6 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb6 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -242,13 +242,13 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.ClientCIDR = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb6 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb6 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -259,17 +259,17 @@ func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978 x.ServerAddress = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb6 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb6 { + if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -281,37 +281,37 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym17 := z.EncBinary() + _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.SecretRef != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep18 := !z.EncBinary() + yy2arr18 := z.EncBasicHandle().StructToArray + var yyq18 [2]bool + _, _, _ = yysep18, yyq18, yy2arr18 + const yyr18 bool = false + yyq18[1] = x.SecretRef != nil + var yynn18 int + if yyr18 || yy2arr18 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn18 = 1 + for _, b := range yyq18 { if b { - yynn2++ + yynn18++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn18) + yynn18 = 0 } - if yyr2 || yy2arr2 { + if yyr18 || yy2arr18 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.ServerAddressByClientCIDRs == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym20 := z.EncBinary() + _ = yym20 if false { } else { h.encSliceServerAddressByClientCIDR(([]ServerAddressByClientCIDR)(x.ServerAddressByClientCIDRs), e) @@ -324,17 +324,17 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.ServerAddressByClientCIDRs == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym21 := z.EncBinary() + _ = yym21 if false { } else { h.encSliceServerAddressByClientCIDR(([]ServerAddressByClientCIDR)(x.ServerAddressByClientCIDRs), e) } } } - if yyr2 || yy2arr2 { + if yyr18 || yy2arr18 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq18[1] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -344,7 +344,7 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq18[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -355,7 +355,7 @@ func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr18 || yy2arr18 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -368,25 +368,25 @@ func (x *ClusterSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym23 := z.DecBinary() + _ = yym23 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct24 := r.ContainerType() + if yyct24 == codecSelferValueTypeMap1234 { + yyl24 := r.ReadMapStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl24, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct24 == codecSelferValueTypeArray1234 { + yyl24 := r.ReadArrayStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl24, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -398,12 +398,12 @@ func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys25Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys25Slc + var yyhl25 bool = l >= 0 + for yyj25 := 0; ; yyj25++ { + if yyhl25 { + if yyj25 >= l { break } } else { @@ -412,20 +412,20 @@ func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys25Slc = r.DecodeBytes(yys25Slc, true, true) + yys25 := string(yys25Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys25 { case "serverAddressByClientCIDRs": if r.TryDecodeAsNil() { x.ServerAddressByClientCIDRs = nil } else { - yyv4 := &x.ServerAddressByClientCIDRs - yym5 := z.DecBinary() - _ = yym5 + yyv26 := &x.ServerAddressByClientCIDRs + yym27 := z.DecBinary() + _ = yym27 if false { } else { - h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv4), d) + h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv26), d) } } case "secretRef": @@ -440,9 +440,9 @@ func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys25) + } // end switch yys25 + } // end for yyj25 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -450,16 +450,16 @@ func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj29 int + var yyb29 bool + var yyhl29 bool = l >= 0 + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l } else { - yyb7 = r.CheckBreak() + yyb29 = r.CheckBreak() } - if yyb7 { + if yyb29 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -467,21 +467,21 @@ func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServerAddressByClientCIDRs = nil } else { - yyv8 := &x.ServerAddressByClientCIDRs - yym9 := z.DecBinary() - _ = yym9 + yyv30 := &x.ServerAddressByClientCIDRs + yym31 := z.DecBinary() + _ = yym31 if false { } else { - h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv8), d) + h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv30), d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l } else { - yyb7 = r.CheckBreak() + yyb29 = r.CheckBreak() } - if yyb7 { + if yyb29 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -497,17 +497,17 @@ func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretRef.CodecDecodeSelf(d) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l } else { - yyb7 = r.CheckBreak() + yyb29 = r.CheckBreak() } - if yyb7 { + if yyb29 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj29-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -516,8 +516,8 @@ func (x ClusterConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym33 := z.EncBinary() + _ = yym33 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -529,8 +529,8 @@ func (x *ClusterConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym34 := z.DecBinary() + _ = yym34 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -545,34 +545,34 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym35 := z.EncBinary() + _ = yym35 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep36 := !z.EncBinary() + yy2arr36 := z.EncBasicHandle().StructToArray + var yyq36 [6]bool + _, _, _ = yysep36, yyq36, yy2arr36 + const yyr36 bool = false + yyq36[2] = true + yyq36[3] = true + yyq36[4] = x.Reason != "" + yyq36[5] = x.Message != "" + var yynn36 int + if yyr36 || yy2arr36 { r.EncodeArrayStart(6) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn36 = 2 + for _, b := range yyq36 { if b { - yynn2++ + yynn36++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn36) + yynn36 = 0 } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -581,96 +581,106 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf7 := &x.Status - yysf7.CodecEncodeSelf(e) + yym39 := z.EncBinary() + _ = yym39 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yysf8 := &x.Status - yysf8.CodecEncodeSelf(e) + yym40 := z.EncBinary() + _ = yym40 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq36[2] { + yy42 := &x.LastProbeTime + yym43 := z.EncBinary() + _ = yym43 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy42) { + } else if yym43 { + z.EncBinaryMarshal(yy42) + } else if !yym43 && z.IsJSONHandle() { + z.EncJSONMarshal(yy42) } else { - z.EncFallback(yy10) + z.EncFallback(yy42) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq36[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy44 := &x.LastProbeTime + yym45 := z.EncBinary() + _ = yym45 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy44) { + } else if yym45 { + z.EncBinaryMarshal(yy44) + } else if !yym45 && z.IsJSONHandle() { + z.EncJSONMarshal(yy44) } else { - z.EncFallback(yy12) + z.EncFallback(yy44) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq36[3] { + yy47 := &x.LastTransitionTime + yym48 := z.EncBinary() + _ = yym48 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy47) { + } else if yym48 { + z.EncBinaryMarshal(yy47) + } else if !yym48 && z.IsJSONHandle() { + z.EncJSONMarshal(yy47) } else { - z.EncFallback(yy15) + z.EncFallback(yy47) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq36[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy49 := &x.LastTransitionTime + yym50 := z.EncBinary() + _ = yym50 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy49) { + } else if yym50 { + z.EncBinaryMarshal(yy49) + } else if !yym50 && z.IsJSONHandle() { + z.EncJSONMarshal(yy49) } else { - z.EncFallback(yy17) + z.EncFallback(yy49) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq36[4] { + yym52 := z.EncBinary() + _ = yym52 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -679,23 +689,23 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq36[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym53 := z.EncBinary() + _ = yym53 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq36[5] { + yym55 := z.EncBinary() + _ = yym55 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -704,19 +714,19 @@ func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq36[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym56 := z.EncBinary() + _ = yym56 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -729,25 +739,25 @@ func (x *ClusterCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym57 := z.DecBinary() + _ = yym57 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct58 := r.ContainerType() + if yyct58 == codecSelferValueTypeMap1234 { + yyl58 := r.ReadMapStart() + if yyl58 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl58, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct58 == codecSelferValueTypeArray1234 { + yyl58 := r.ReadArrayStart() + if yyl58 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl58, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -759,12 +769,12 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys59Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys59Slc + var yyhl59 bool = l >= 0 + for yyj59 := 0; ; yyj59++ { + if yyhl59 { + if yyj59 >= l { break } } else { @@ -773,10 +783,10 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys59Slc = r.DecodeBytes(yys59Slc, true, true) + yys59 := string(yys59Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys59 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -793,34 +803,34 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv62 := &x.LastProbeTime + yym63 := z.DecBinary() + _ = yym63 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv62) { + } else if yym63 { + z.DecBinaryUnmarshal(yyv62) + } else if !yym63 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv62) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv62, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv64 := &x.LastTransitionTime + yym65 := z.DecBinary() + _ = yym65 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv64) { + } else if yym65 { + z.DecBinaryUnmarshal(yyv64) + } else if !yym65 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv64) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv64, false) } } case "reason": @@ -836,9 +846,9 @@ func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys59) + } // end switch yys59 + } // end for yyj59 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -846,16 +856,16 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj68 int + var yyb68 bool + var yyhl68 bool = l >= 0 + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -865,13 +875,13 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Type = ClusterConditionType(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -881,13 +891,13 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Status = pkg1_v1.ConditionStatus(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -895,26 +905,26 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv71 := &x.LastProbeTime + yym72 := z.DecBinary() + _ = yym72 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv71) { + } else if yym72 { + z.DecBinaryUnmarshal(yyv71) + } else if !yym72 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv71) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv71, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -922,26 +932,26 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv73 := &x.LastTransitionTime + yym74 := z.DecBinary() + _ = yym74 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv73) { + } else if yym74 { + z.DecBinaryUnmarshal(yyv73) + } else if !yym74 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv73) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv73, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -951,13 +961,13 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -968,17 +978,17 @@ func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj68++ + if yyhl68 { + yyb68 = yyj68 > l } else { - yyb12 = r.CheckBreak() + yyb68 = r.CheckBreak() } - if yyb12 { + if yyb68 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj68-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -990,40 +1000,40 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym77 := z.EncBinary() + _ = yym77 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = len(x.Zones) != 0 - yyq2[2] = x.Region != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep78 := !z.EncBinary() + yy2arr78 := z.EncBasicHandle().StructToArray + var yyq78 [3]bool + _, _, _ = yysep78, yyq78, yy2arr78 + const yyr78 bool = false + yyq78[0] = len(x.Conditions) != 0 + yyq78[1] = len(x.Zones) != 0 + yyq78[2] = x.Region != "" + var yynn78 int + if yyr78 || yy2arr78 { r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn78 = 0 + for _, b := range yyq78 { if b { - yynn2++ + yynn78++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn78) + yynn78 = 0 } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq78[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym80 := z.EncBinary() + _ = yym80 if false { } else { h.encSliceClusterCondition(([]ClusterCondition)(x.Conditions), e) @@ -1033,15 +1043,15 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq78[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym81 := z.EncBinary() + _ = yym81 if false { } else { h.encSliceClusterCondition(([]ClusterCondition)(x.Conditions), e) @@ -1049,14 +1059,14 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq78[1] { if x.Zones == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym83 := z.EncBinary() + _ = yym83 if false { } else { z.F.EncSliceStringV(x.Zones, false, e) @@ -1066,15 +1076,15 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq78[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("zones")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Zones == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym84 := z.EncBinary() + _ = yym84 if false { } else { z.F.EncSliceStringV(x.Zones, false, e) @@ -1082,11 +1092,11 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq78[2] { + yym86 := z.EncBinary() + _ = yym86 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Region)) @@ -1095,19 +1105,19 @@ func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq78[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("region")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym87 := z.EncBinary() + _ = yym87 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Region)) } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1120,25 +1130,25 @@ func (x *ClusterStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym88 := z.DecBinary() + _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct89 := r.ContainerType() + if yyct89 == codecSelferValueTypeMap1234 { + yyl89 := r.ReadMapStart() + if yyl89 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl89, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct89 == codecSelferValueTypeArray1234 { + yyl89 := r.ReadArrayStart() + if yyl89 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl89, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1150,12 +1160,12 @@ func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys90Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys90Slc + var yyhl90 bool = l >= 0 + for yyj90 := 0; ; yyj90++ { + if yyhl90 { + if yyj90 >= l { break } } else { @@ -1164,32 +1174,32 @@ func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys90Slc = r.DecodeBytes(yys90Slc, true, true) + yys90 := string(yys90Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys90 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv91 := &x.Conditions + yym92 := z.DecBinary() + _ = yym92 if false { } else { - h.decSliceClusterCondition((*[]ClusterCondition)(yyv4), d) + h.decSliceClusterCondition((*[]ClusterCondition)(yyv91), d) } } case "zones": if r.TryDecodeAsNil() { x.Zones = nil } else { - yyv6 := &x.Zones - yym7 := z.DecBinary() - _ = yym7 + yyv93 := &x.Zones + yym94 := z.DecBinary() + _ = yym94 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv93, false, d) } } case "region": @@ -1199,9 +1209,9 @@ func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Region = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys90) + } // end switch yys90 + } // end for yyj90 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1209,16 +1219,16 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj96 int + var yyb96 bool + var yyhl96 bool = l >= 0 + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1226,21 +1236,21 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv10 := &x.Conditions - yym11 := z.DecBinary() - _ = yym11 + yyv97 := &x.Conditions + yym98 := z.DecBinary() + _ = yym98 if false { } else { - h.decSliceClusterCondition((*[]ClusterCondition)(yyv10), d) + h.decSliceClusterCondition((*[]ClusterCondition)(yyv97), d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1248,21 +1258,21 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Zones = nil } else { - yyv12 := &x.Zones - yym13 := z.DecBinary() - _ = yym13 + yyv99 := &x.Zones + yym100 := z.DecBinary() + _ = yym100 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv99, false, d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1273,17 +1283,17 @@ func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Region = string(r.DecodeString()) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj96++ + if yyhl96 { + yyb96 = yyj96 > l } else { - yyb9 = r.CheckBreak() + yyb96 = r.CheckBreak() } - if yyb9 { + if yyb96 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj96-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1295,136 +1305,136 @@ func (x *Cluster) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym102 := z.EncBinary() + _ = yym102 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep103 := !z.EncBinary() + yy2arr103 := z.EncBasicHandle().StructToArray + var yyq103 [5]bool + _, _, _ = yysep103, yyq103, yy2arr103 + const yyr103 bool = false + yyq103[0] = x.Kind != "" + yyq103[1] = x.APIVersion != "" + yyq103[2] = true + yyq103[3] = true + yyq103[4] = true + var yynn103 int + if yyr103 || yy2arr103 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn103 = 0 + for _, b := range yyq103 { if b { - yynn2++ + yynn103++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn103) + yynn103 = 0 } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq103[0] { + yym105 := z.EncBinary() + _ = yym105 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq103[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym106 := z.EncBinary() + _ = yym106 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq103[1] { + yym108 := z.EncBinary() + _ = yym108 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq103[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym109 := z.EncBinary() + _ = yym109 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq103[2] { + yy111 := &x.ObjectMeta + yy111.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq103[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy112 := &x.ObjectMeta + yy112.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq103[3] { + yy114 := &x.Spec + yy114.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq103[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy115 := &x.Spec + yy115.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq103[4] { + yy117 := &x.Status + yy117.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq103[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy118 := &x.Status + yy118.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr103 || yy2arr103 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1437,25 +1447,25 @@ func (x *Cluster) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym119 := z.DecBinary() + _ = yym119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct120 := r.ContainerType() + if yyct120 == codecSelferValueTypeMap1234 { + yyl120 := r.ReadMapStart() + if yyl120 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl120, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct120 == codecSelferValueTypeArray1234 { + yyl120 := r.ReadArrayStart() + if yyl120 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl120, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1467,12 +1477,12 @@ func (x *Cluster) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys121Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys121Slc + var yyhl121 bool = l >= 0 + for yyj121 := 0; ; yyj121++ { + if yyhl121 { + if yyj121 >= l { break } } else { @@ -1481,47 +1491,47 @@ func (x *Cluster) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys121Slc = r.DecodeBytes(yys121Slc, true, true) + yys121 := string(yys121Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys121 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ClusterSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ClusterStatus{} + x.ObjectMeta = pkg1_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv124 := &x.ObjectMeta + yyv124.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ClusterSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv125 := &x.Spec + yyv125.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ClusterStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv126 := &x.Status + yyv126.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys121) + } // end switch yys121 + } // end for yyj121 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1529,104 +1539,104 @@ func (x *Cluster) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj127 int + var yyb127 bool + var yyhl127 bool = l >= 0 + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ClusterSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ClusterStatus{} + x.ObjectMeta = pkg1_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv130 := &x.ObjectMeta + yyv130.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ClusterSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv131 := &x.Spec + yyv131.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ClusterStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv132 := &x.Status + yyv132.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb9 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb9 { + if yyb127 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj127-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1638,139 +1648,139 @@ func (x *ClusterList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym133 := z.EncBinary() + _ = yym133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep134 := !z.EncBinary() + yy2arr134 := z.EncBasicHandle().StructToArray + var yyq134 [4]bool + _, _, _ = yysep134, yyq134, yy2arr134 + const yyr134 bool = false + yyq134[0] = x.Kind != "" + yyq134[1] = x.APIVersion != "" + yyq134[2] = true + var yynn134 int + if yyr134 || yy2arr134 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn134 = 1 + for _, b := range yyq134 { if b { - yynn2++ + yynn134++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn134) + yynn134 = 0 } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq134[0] { + yym136 := z.EncBinary() + _ = yym136 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym137 := z.EncBinary() + _ = yym137 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq134[1] { + yym139 := z.EncBinary() + _ = yym139 if false { } else { - h.encSliceCluster(([]Cluster)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq134[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym140 := z.EncBinary() + _ = yym140 if false { } else { - h.encSliceCluster(([]Cluster)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq134[2] { + yy142 := &x.ListMeta + yym143 := z.EncBinary() + _ = yym143 if false { + } else if z.HasExtensions() && z.EncExt(yy142) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy142) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq134[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy144 := &x.ListMeta + yym145 := z.EncBinary() + _ = yym145 if false { + } else if z.HasExtensions() && z.EncExt(yy144) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy144) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym147 := z.EncBinary() + _ = yym147 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceCluster(([]Cluster)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym148 := z.EncBinary() + _ = yym148 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceCluster(([]Cluster)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr134 || yy2arr134 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1783,25 +1793,25 @@ func (x *ClusterList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym149 := z.DecBinary() + _ = yym149 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct150 := r.ContainerType() + if yyct150 == codecSelferValueTypeMap1234 { + yyl150 := r.ReadMapStart() + if yyl150 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl150, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct150 == codecSelferValueTypeArray1234 { + yyl150 := r.ReadArrayStart() + if yyl150 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl150, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1813,12 +1823,12 @@ func (x *ClusterList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys151Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys151Slc + var yyhl151 bool = l >= 0 + for yyj151 := 0; ; yyj151++ { + if yyhl151 { + if yyj151 >= l { break } } else { @@ -1827,51 +1837,51 @@ func (x *ClusterList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys151Slc = r.DecodeBytes(yys151Slc, true, true) + yys151 := string(yys151Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys151 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv154 := &x.ListMeta + yym155 := z.DecBinary() + _ = yym155 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv154) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv154, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv156 := &x.Items + yym157 := z.DecBinary() + _ = yym157 if false { } else { - h.decSliceCluster((*[]Cluster)(yyv6), d) + h.decSliceCluster((*[]Cluster)(yyv156), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys151) + } // end switch yys151 + } // end for yyj151 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1879,98 +1889,98 @@ func (x *ClusterList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj158 int + var yyb158 bool + var yyhl158 bool = l >= 0 + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceCluster((*[]Cluster)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv161 := &x.ListMeta + yym162 := z.DecBinary() + _ = yym162 + if false { + } else if z.HasExtensions() && z.DecExt(yyv161) { + } else { + z.DecFallback(yyv161, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv163 := &x.Items + yym164 := z.DecBinary() + _ = yym164 + if false { + } else { + h.decSliceCluster((*[]Cluster)(yyv163), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj158++ + if yyhl158 { + yyb158 = yyj158 > l } else { - yyb10 = r.CheckBreak() + yyb158 = r.CheckBreak() } - if yyb10 { + if yyb158 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj158-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1980,10 +1990,10 @@ func (x codecSelfer1234) encSliceServerAddressByClientCIDR(v []ServerAddressByCl z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv165 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy166 := &yyv165 + yy166.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1993,86 +2003,83 @@ func (x codecSelfer1234) decSliceServerAddressByClientCIDR(v *[]ServerAddressByC z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ServerAddressByClientCIDR{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv167 := *v + yyh167, yyl167 := z.DecSliceHelperStart() + var yyc167 bool + if yyl167 == 0 { + if yyv167 == nil { + yyv167 = []ServerAddressByClientCIDR{} + yyc167 = true + } else if len(yyv167) != 0 { + yyv167 = yyv167[:0] + yyc167 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + } else if yyl167 > 0 { + var yyrr167, yyrl167 int + var yyrt167 bool + if yyl167 > cap(yyv167) { + + yyrg167 := len(yyv167) > 0 + yyv2167 := yyv167 + yyrl167, yyrt167 = z.DecInferLen(yyl167, z.DecBasicHandle().MaxInitLen, 32) + if yyrt167 { + if yyrl167 <= cap(yyv167) { + yyv167 = yyv167[:yyrl167] } else { - yyv1 = make([]ServerAddressByClientCIDR, yyrl1) + yyv167 = make([]ServerAddressByClientCIDR, yyrl167) } } else { - yyv1 = make([]ServerAddressByClientCIDR, yyrl1) + yyv167 = make([]ServerAddressByClientCIDR, yyrl167) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc167 = true + yyrr167 = len(yyv167) + if yyrg167 { + copy(yyv167, yyv2167) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl167 != len(yyv167) { + yyv167 = yyv167[:yyl167] + yyc167 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj167 := 0 + for ; yyj167 < yyrr167; yyj167++ { + yyh167.ElemContainerState(yyj167) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServerAddressByClientCIDR{} + yyv167[yyj167] = ServerAddressByClientCIDR{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv168 := &yyv167[yyj167] + yyv168.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ServerAddressByClientCIDR{}) - yyh1.ElemContainerState(yyj1) + if yyrt167 { + for ; yyj167 < yyl167; yyj167++ { + yyv167 = append(yyv167, ServerAddressByClientCIDR{}) + yyh167.ElemContainerState(yyj167) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServerAddressByClientCIDR{} + yyv167[yyj167] = ServerAddressByClientCIDR{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv169 := &yyv167[yyj167] + yyv169.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj167 := 0 + for ; !r.CheckBreak(); yyj167++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ServerAddressByClientCIDR{}) // var yyz1 ServerAddressByClientCIDR - yyc1 = true + if yyj167 >= len(yyv167) { + yyv167 = append(yyv167, ServerAddressByClientCIDR{}) // var yyz167 ServerAddressByClientCIDR + yyc167 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh167.ElemContainerState(yyj167) + if yyj167 < len(yyv167) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ServerAddressByClientCIDR{} + yyv167[yyj167] = ServerAddressByClientCIDR{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv170 := &yyv167[yyj167] + yyv170.CodecDecodeSelf(d) } } else { @@ -2080,17 +2087,17 @@ func (x codecSelfer1234) decSliceServerAddressByClientCIDR(v *[]ServerAddressByC } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ServerAddressByClientCIDR{} - yyc1 = true + if yyj167 < len(yyv167) { + yyv167 = yyv167[:yyj167] + yyc167 = true + } else if yyj167 == 0 && yyv167 == nil { + yyv167 = []ServerAddressByClientCIDR{} + yyc167 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh167.End() + if yyc167 { + *v = yyv167 } } @@ -2099,10 +2106,10 @@ func (x codecSelfer1234) encSliceClusterCondition(v []ClusterCondition, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv171 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy172 := &yyv171 + yy172.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2112,86 +2119,83 @@ func (x codecSelfer1234) decSliceClusterCondition(v *[]ClusterCondition, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ClusterCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv173 := *v + yyh173, yyl173 := z.DecSliceHelperStart() + var yyc173 bool + if yyl173 == 0 { + if yyv173 == nil { + yyv173 = []ClusterCondition{} + yyc173 = true + } else if len(yyv173) != 0 { + yyv173 = yyv173[:0] + yyc173 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + } else if yyl173 > 0 { + var yyrr173, yyrl173 int + var yyrt173 bool + if yyl173 > cap(yyv173) { + + yyrg173 := len(yyv173) > 0 + yyv2173 := yyv173 + yyrl173, yyrt173 = z.DecInferLen(yyl173, z.DecBasicHandle().MaxInitLen, 112) + if yyrt173 { + if yyrl173 <= cap(yyv173) { + yyv173 = yyv173[:yyrl173] } else { - yyv1 = make([]ClusterCondition, yyrl1) + yyv173 = make([]ClusterCondition, yyrl173) } } else { - yyv1 = make([]ClusterCondition, yyrl1) + yyv173 = make([]ClusterCondition, yyrl173) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc173 = true + yyrr173 = len(yyv173) + if yyrg173 { + copy(yyv173, yyv2173) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl173 != len(yyv173) { + yyv173 = yyv173[:yyl173] + yyc173 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj173 := 0 + for ; yyj173 < yyrr173; yyj173++ { + yyh173.ElemContainerState(yyj173) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterCondition{} + yyv173[yyj173] = ClusterCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv174 := &yyv173[yyj173] + yyv174.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ClusterCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt173 { + for ; yyj173 < yyl173; yyj173++ { + yyv173 = append(yyv173, ClusterCondition{}) + yyh173.ElemContainerState(yyj173) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterCondition{} + yyv173[yyj173] = ClusterCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv175 := &yyv173[yyj173] + yyv175.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj173 := 0 + for ; !r.CheckBreak(); yyj173++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ClusterCondition{}) // var yyz1 ClusterCondition - yyc1 = true + if yyj173 >= len(yyv173) { + yyv173 = append(yyv173, ClusterCondition{}) // var yyz173 ClusterCondition + yyc173 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh173.ElemContainerState(yyj173) + if yyj173 < len(yyv173) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterCondition{} + yyv173[yyj173] = ClusterCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv176 := &yyv173[yyj173] + yyv176.CodecDecodeSelf(d) } } else { @@ -2199,17 +2203,17 @@ func (x codecSelfer1234) decSliceClusterCondition(v *[]ClusterCondition, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ClusterCondition{} - yyc1 = true + if yyj173 < len(yyv173) { + yyv173 = yyv173[:yyj173] + yyc173 = true + } else if yyj173 == 0 && yyv173 == nil { + yyv173 = []ClusterCondition{} + yyc173 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh173.End() + if yyc173 { + *v = yyv173 } } @@ -2218,10 +2222,10 @@ func (x codecSelfer1234) encSliceCluster(v []Cluster, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv177 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy178 := &yyv177 + yy178.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2231,86 +2235,83 @@ func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Cluster{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv179 := *v + yyh179, yyl179 := z.DecSliceHelperStart() + var yyc179 bool + if yyl179 == 0 { + if yyv179 == nil { + yyv179 = []Cluster{} + yyc179 = true + } else if len(yyv179) != 0 { + yyv179 = yyv179[:0] + yyc179 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 336) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + } else if yyl179 > 0 { + var yyrr179, yyrl179 int + var yyrt179 bool + if yyl179 > cap(yyv179) { + + yyrg179 := len(yyv179) > 0 + yyv2179 := yyv179 + yyrl179, yyrt179 = z.DecInferLen(yyl179, z.DecBasicHandle().MaxInitLen, 352) + if yyrt179 { + if yyrl179 <= cap(yyv179) { + yyv179 = yyv179[:yyrl179] } else { - yyv1 = make([]Cluster, yyrl1) + yyv179 = make([]Cluster, yyrl179) } } else { - yyv1 = make([]Cluster, yyrl1) + yyv179 = make([]Cluster, yyrl179) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc179 = true + yyrr179 = len(yyv179) + if yyrg179 { + copy(yyv179, yyv2179) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl179 != len(yyv179) { + yyv179 = yyv179[:yyl179] + yyc179 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj179 := 0 + for ; yyj179 < yyrr179; yyj179++ { + yyh179.ElemContainerState(yyj179) if r.TryDecodeAsNil() { - yyv1[yyj1] = Cluster{} + yyv179[yyj179] = Cluster{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv180 := &yyv179[yyj179] + yyv180.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Cluster{}) - yyh1.ElemContainerState(yyj1) + if yyrt179 { + for ; yyj179 < yyl179; yyj179++ { + yyv179 = append(yyv179, Cluster{}) + yyh179.ElemContainerState(yyj179) if r.TryDecodeAsNil() { - yyv1[yyj1] = Cluster{} + yyv179[yyj179] = Cluster{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv181 := &yyv179[yyj179] + yyv181.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj179 := 0 + for ; !r.CheckBreak(); yyj179++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Cluster{}) // var yyz1 Cluster - yyc1 = true + if yyj179 >= len(yyv179) { + yyv179 = append(yyv179, Cluster{}) // var yyz179 Cluster + yyc179 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh179.ElemContainerState(yyj179) + if yyj179 < len(yyv179) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Cluster{} + yyv179[yyj179] = Cluster{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv182 := &yyv179[yyj179] + yyv182.CodecDecodeSelf(d) } } else { @@ -2318,16 +2319,16 @@ func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Cluster{} - yyc1 = true + if yyj179 < len(yyv179) { + yyv179 = yyv179[:yyj179] + yyc179 = true + } else if yyj179 == 0 && yyv179 == nil { + yyv179 = []Cluster{} + yyc179 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh179.End() + if yyc179 { + *v = yyv179 } } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/zz_generated.conversion.go similarity index 97% rename from ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/zz_generated.conversion.go index fa582e3a6c..f5caec409c 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/zz_generated.conversion.go @@ -25,10 +25,17 @@ import ( api "k8s.io/kubernetes/pkg/api" v1 "k8s.io/kubernetes/pkg/api/v1" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v1beta1_Cluster_To_federation_Cluster, Convert_federation_Cluster_To_v1beta1_Cluster, Convert_v1beta1_ClusterCondition_To_federation_ClusterCondition, @@ -41,10 +48,7 @@ func init() { Convert_federation_ClusterStatus_To_v1beta1_ClusterStatus, Convert_v1beta1_ServerAddressByClientCIDR_To_federation_ServerAddressByClientCIDR, Convert_federation_ServerAddressByClientCIDR_To_v1beta1_ServerAddressByClientCIDR, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1beta1_Cluster_To_federation_Cluster(in *Cluster, out *federation.Cluster, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..fbe4374567 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,159 @@ +// +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 v1beta1 + +import ( + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v1beta1_Cluster, InType: reflect.TypeOf(&Cluster{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterCondition, InType: reflect.TypeOf(&ClusterCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterList, InType: reflect.TypeOf(&ClusterList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterSpec, InType: reflect.TypeOf(&ClusterSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterStatus, InType: reflect.TypeOf(&ClusterStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, + ) +} + +func DeepCopy_v1beta1_Cluster(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Cluster) + out := out.(*Cluster) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_ClusterSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_ClusterStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_ClusterCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterCondition) + out := out.(*ClusterCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterList) + out := out.(*ClusterList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Cluster, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_Cluster(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ClusterSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterSpec) + out := out.(*ClusterSpec) + if in.ServerAddressByClientCIDRs != nil { + in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs + *out = make([]ServerAddressByClientCIDR, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ServerAddressByClientCIDRs = nil + } + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(v1.LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterStatus) + out := out.(*ClusterStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ClusterCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_ClusterCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Zones != nil { + in, out := &in.Zones, &out.Zones + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Zones = nil + } + out.Region = in.Region + return nil + } +} + +func DeepCopy_v1beta1_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServerAddressByClientCIDR) + out := out.(*ServerAddressByClientCIDR) + out.ClientCIDR = in.ClientCIDR + out.ServerAddress = in.ServerAddress + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/zz_generated.deepcopy.go new file mode 100644 index 0000000000..5126feb89c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/apis/federation/zz_generated.deepcopy.go @@ -0,0 +1,200 @@ +// +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 federation + +import ( + api "k8s.io/kubernetes/pkg/api" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_federation_Cluster, InType: reflect.TypeOf(&Cluster{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterCondition, InType: reflect.TypeOf(&ClusterCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterList, InType: reflect.TypeOf(&ClusterList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterReplicaSetPreferences, InType: reflect.TypeOf(&ClusterReplicaSetPreferences{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterSpec, InType: reflect.TypeOf(&ClusterSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterStatus, InType: reflect.TypeOf(&ClusterStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_FederatedReplicaSetPreferences, InType: reflect.TypeOf(&FederatedReplicaSetPreferences{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, + ) +} + +func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Cluster) + out := out.(*Cluster) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_federation_ClusterSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_federation_ClusterStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_federation_ClusterCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterCondition) + out := out.(*ClusterCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterList) + out := out.(*ClusterList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Cluster, len(*in)) + for i := range *in { + if err := DeepCopy_federation_Cluster(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_federation_ClusterReplicaSetPreferences(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterReplicaSetPreferences) + out := out.(*ClusterReplicaSetPreferences) + out.MinReplicas = in.MinReplicas + if in.MaxReplicas != nil { + in, out := &in.MaxReplicas, &out.MaxReplicas + *out = new(int64) + **out = **in + } else { + out.MaxReplicas = nil + } + out.Weight = in.Weight + return nil + } +} + +func DeepCopy_federation_ClusterSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterSpec) + out := out.(*ClusterSpec) + if in.ServerAddressByClientCIDRs != nil { + in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs + *out = make([]ServerAddressByClientCIDR, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ServerAddressByClientCIDRs = nil + } + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(api.LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + return nil + } +} + +func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterStatus) + out := out.(*ClusterStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ClusterCondition, len(*in)) + for i := range *in { + if err := DeepCopy_federation_ClusterCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Zones != nil { + in, out := &in.Zones, &out.Zones + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Zones = nil + } + out.Region = in.Region + return nil + } +} + +func DeepCopy_federation_FederatedReplicaSetPreferences(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FederatedReplicaSetPreferences) + out := out.(*FederatedReplicaSetPreferences) + out.Rebalance = in.Rebalance + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make(map[string]ClusterReplicaSetPreferences) + for key, val := range *in { + newVal := new(ClusterReplicaSetPreferences) + if err := DeepCopy_federation_ClusterReplicaSetPreferences(&val, newVal, c); err != nil { + return err + } + (*out)[key] = *newVal + } + } else { + out.Clusters = nil + } + return nil + } +} + +func DeepCopy_federation_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServerAddressByClientCIDR) + out := out.(*ServerAddressByClientCIDR) + out.ClientCIDR = in.ClientCIDR + out.ServerAddress = in.ServerAddress + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/clientset.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/clientset.go index 8741b73b48..b262ad7b39 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/clientset.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/clientset.go @@ -19,6 +19,7 @@ package federation_internalclientset import ( "github.com/golang/glog" unversionedcore "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned" + unversionedextensions "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned" unversionedfederation "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned" restclient "k8s.io/kubernetes/pkg/client/restclient" discovery "k8s.io/kubernetes/pkg/client/typed/discovery" @@ -29,6 +30,7 @@ type Interface interface { Discovery() discovery.DiscoveryInterface Federation() unversionedfederation.FederationInterface Core() unversionedcore.CoreInterface + Extensions() unversionedextensions.ExtensionsInterface } // Clientset contains the clients for groups. Each group has exactly one @@ -37,6 +39,7 @@ type Clientset struct { *discovery.DiscoveryClient *unversionedfederation.FederationClient *unversionedcore.CoreClient + *unversionedextensions.ExtensionsClient } // Federation retrieves the FederationClient @@ -55,6 +58,14 @@ func (c *Clientset) Core() unversionedcore.CoreInterface { return c.CoreClient } +// Extensions retrieves the ExtensionsClient +func (c *Clientset) Extensions() unversionedextensions.ExtensionsInterface { + if c == nil { + return nil + } + return c.ExtensionsClient +} + // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { return c.DiscoveryClient @@ -76,6 +87,10 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) { if err != nil { return nil, err } + clientset.ExtensionsClient, err = unversionedextensions.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { @@ -91,6 +106,7 @@ func NewForConfigOrDie(c *restclient.Config) *Clientset { var clientset Clientset clientset.FederationClient = unversionedfederation.NewForConfigOrDie(c) clientset.CoreClient = unversionedcore.NewForConfigOrDie(c) + clientset.ExtensionsClient = unversionedextensions.NewForConfigOrDie(c) clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &clientset @@ -101,6 +117,7 @@ func New(c *restclient.RESTClient) *Clientset { var clientset Clientset clientset.FederationClient = unversionedfederation.New(c) clientset.CoreClient = unversionedcore.New(c) + clientset.ExtensionsClient = unversionedextensions.New(c) clientset.DiscoveryClient = discovery.NewDiscoveryClient(c) return &clientset diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/doc.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/doc.go index 96610bb059..6b3841cb79 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/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=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service] --input=[../../federation/apis/federation/,api/] +// This package is generated by client-gen with arguments: --clientset-name=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service,api/Namespace,extensions/ReplicaSet,api/Secret,extensions/Ingress,api/Event] --input=[../../federation/apis/federation/,api/,extensions/] // This package has the automatically generated clientset. package federation_internalclientset diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/core_client.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/core_client.go index 487d36ddb9..91a9e07908 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/core_client.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/core_client.go @@ -24,6 +24,9 @@ import ( type CoreInterface interface { GetRESTClient() *restclient.RESTClient + EventsGetter + NamespacesGetter + SecretsGetter ServicesGetter } @@ -32,6 +35,18 @@ type CoreClient struct { *restclient.RESTClient } +func (c *CoreClient) Events(namespace string) EventInterface { + return newEvents(c, namespace) +} + +func (c *CoreClient) Namespaces() NamespaceInterface { + return newNamespaces(c) +} + +func (c *CoreClient) Secrets(namespace string) SecretInterface { + return newSecrets(c, namespace) +} + func (c *CoreClient) Services(namespace string) ServiceInterface { return newServices(c, namespace) } diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/doc.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/doc.go index 7899881b16..c31ea23475 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/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=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service] --input=[../../federation/apis/federation/,api/] +// This package is generated by client-gen with arguments: --clientset-name=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service,api/Namespace,extensions/ReplicaSet,api/Secret,extensions/Ingress,api/Event] --input=[../../federation/apis/federation/,api/,extensions/] // This package has the automatically generated typed clients. package unversioned diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/event.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/event.go new file mode 100644 index 0000000000..d4edcd37a8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/event.go @@ -0,0 +1,150 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + watch "k8s.io/kubernetes/pkg/watch" +) + +// EventsGetter has a method to return a EventInterface. +// A group's client should implement this interface. +type EventsGetter interface { + Events(namespace string) EventInterface +} + +// EventInterface has methods to work with Event resources. +type EventInterface interface { + Create(*api.Event) (*api.Event, error) + Update(*api.Event) (*api.Event, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*api.Event, error) + List(opts api.ListOptions) (*api.EventList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error) + EventExpansion +} + +// events implements EventInterface +type events struct { + client *CoreClient + ns string +} + +// newEvents returns a Events +func newEvents(c *CoreClient, namespace string) *events { + return &events{ + client: c, + ns: namespace, + } +} + +// Create takes the representation of a event and creates it. Returns the server's representation of the event, and an error, if there is any. +func (c *events) Create(event *api.Event) (result *api.Event, err error) { + result = &api.Event{} + err = c.client.Post(). + Namespace(c.ns). + Resource("events"). + Body(event). + Do(). + Into(result) + return +} + +// Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any. +func (c *events) Update(event *api.Event) (result *api.Event, err error) { + result = &api.Event{} + err = c.client.Put(). + Namespace(c.ns). + Resource("events"). + Name(event.Name). + Body(event). + Do(). + Into(result) + return +} + +// Delete takes name of the event and deletes it. Returns an error if one occurs. +func (c *events) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("events"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *events) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("events"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the event, and returns the corresponding event object, and an error if there is any. +func (c *events) Get(name string) (result *api.Event, err error) { + result = &api.Event{} + err = c.client.Get(). + Namespace(c.ns). + Resource("events"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of Events that match those selectors. +func (c *events) List(opts api.ListOptions) (result *api.EventList, err error) { + result = &api.EventList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("events"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested events. +func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("events"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched event. +func (c *events) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error) { + result = &api.Event{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("events"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/generated_expansion.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/generated_expansion.go index 9838bf1bb6..93dc6d30b7 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/generated_expansion.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/generated_expansion.go @@ -16,4 +16,8 @@ limitations under the License. package unversioned +type SecretExpansion interface{} + +type EventExpansion interface{} + type ServiceExpansion interface{} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/namespace.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/namespace.go new file mode 100644 index 0000000000..7b39f2b864 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/namespace.go @@ -0,0 +1,153 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + watch "k8s.io/kubernetes/pkg/watch" +) + +// NamespacesGetter has a method to return a NamespaceInterface. +// A group's client should implement this interface. +type NamespacesGetter interface { + Namespaces() NamespaceInterface +} + +// NamespaceInterface has methods to work with Namespace resources. +type NamespaceInterface interface { + Create(*api.Namespace) (*api.Namespace, error) + Update(*api.Namespace) (*api.Namespace, error) + UpdateStatus(*api.Namespace) (*api.Namespace, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*api.Namespace, error) + List(opts api.ListOptions) (*api.NamespaceList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) + NamespaceExpansion +} + +// namespaces implements NamespaceInterface +type namespaces struct { + client *CoreClient +} + +// newNamespaces returns a Namespaces +func newNamespaces(c *CoreClient) *namespaces { + return &namespaces{ + client: c, + } +} + +// Create takes the representation of a namespace and creates it. Returns the server's representation of the namespace, and an error, if there is any. +func (c *namespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { + result = &api.Namespace{} + err = c.client.Post(). + Resource("namespaces"). + Body(namespace). + Do(). + Into(result) + return +} + +// Update takes the representation of a namespace and updates it. Returns the server's representation of the namespace, and an error, if there is any. +func (c *namespaces) Update(namespace *api.Namespace) (result *api.Namespace, err error) { + result = &api.Namespace{} + err = c.client.Put(). + Resource("namespaces"). + Name(namespace.Name). + Body(namespace). + Do(). + Into(result) + return +} + +func (c *namespaces) UpdateStatus(namespace *api.Namespace) (result *api.Namespace, err error) { + result = &api.Namespace{} + err = c.client.Put(). + Resource("namespaces"). + Name(namespace.Name). + SubResource("status"). + Body(namespace). + Do(). + Into(result) + return +} + +// Delete takes name of the namespace and deletes it. Returns an error if one occurs. +func (c *namespaces) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Resource("namespaces"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *namespaces) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Resource("namespaces"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. +func (c *namespaces) Get(name string) (result *api.Namespace, err error) { + result = &api.Namespace{} + err = c.client.Get(). + Resource("namespaces"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of Namespaces that match those selectors. +func (c *namespaces) List(opts api.ListOptions) (result *api.NamespaceList, err error) { + result = &api.NamespaceList{} + err = c.client.Get(). + Resource("namespaces"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested namespaces. +func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Resource("namespaces"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched namespace. +func (c *namespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) { + result = &api.Namespace{} + err = c.client.Patch(pt). + Resource("namespaces"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/namespace_expansion.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/namespace_expansion.go new file mode 100644 index 0000000000..15049da11f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/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 unversioned + +import "k8s.io/kubernetes/pkg/api" + +// The NamespaceExpansion interface allows manually adding extra methods to the NamespaceInterface. +type NamespaceExpansion interface { + Finalize(item *api.Namespace) (*api.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 *api.Namespace) (result *api.Namespace, err error) { + result = &api.Namespace{} + err = c.client.Put().Resource("namespaces").Name(namespace.Name).SubResource("finalize").Body(namespace).Do().Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/secret.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/secret.go new file mode 100644 index 0000000000..f87263cbbb --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/secret.go @@ -0,0 +1,150 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + watch "k8s.io/kubernetes/pkg/watch" +) + +// SecretsGetter has a method to return a SecretInterface. +// A group's client should implement this interface. +type SecretsGetter interface { + Secrets(namespace string) SecretInterface +} + +// SecretInterface has methods to work with Secret resources. +type SecretInterface interface { + Create(*api.Secret) (*api.Secret, error) + Update(*api.Secret) (*api.Secret, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*api.Secret, error) + List(opts api.ListOptions) (*api.SecretList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) + SecretExpansion +} + +// secrets implements SecretInterface +type secrets struct { + client *CoreClient + ns string +} + +// newSecrets returns a Secrets +func newSecrets(c *CoreClient, namespace string) *secrets { + return &secrets{ + client: c, + ns: namespace, + } +} + +// Create takes the representation of a secret and creates it. Returns the server's representation of the secret, and an error, if there is any. +func (c *secrets) Create(secret *api.Secret) (result *api.Secret, err error) { + result = &api.Secret{} + err = c.client.Post(). + Namespace(c.ns). + Resource("secrets"). + Body(secret). + Do(). + Into(result) + return +} + +// Update takes the representation of a secret and updates it. Returns the server's representation of the secret, and an error, if there is any. +func (c *secrets) Update(secret *api.Secret) (result *api.Secret, err error) { + result = &api.Secret{} + err = c.client.Put(). + Namespace(c.ns). + Resource("secrets"). + Name(secret.Name). + Body(secret). + Do(). + Into(result) + return +} + +// Delete takes name of the secret and deletes it. Returns an error if one occurs. +func (c *secrets) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("secrets"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *secrets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("secrets"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. +func (c *secrets) Get(name string) (result *api.Secret, err error) { + result = &api.Secret{} + err = c.client.Get(). + Namespace(c.ns). + Resource("secrets"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of Secrets that match those selectors. +func (c *secrets) List(opts api.ListOptions) (result *api.SecretList, err error) { + result = &api.SecretList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("secrets"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested secrets. +func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("secrets"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched secret. +func (c *secrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) { + result = &api.Secret{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("secrets"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/service.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/service.go index 1d7b071e85..86fa3b2296 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/service.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/core/unversioned/service.go @@ -37,7 +37,7 @@ type ServiceInterface interface { Get(name string) (*api.Service, error) List(opts api.ListOptions) (*api.ServiceList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) ServiceExpansion } @@ -150,11 +150,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched service. -func (c *services) Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) { +func (c *services) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) { result = &api.Service{} err = c.client.Patch(pt). Namespace(c.ns). Resource("services"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/doc.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/doc.go new file mode 100644 index 0000000000..c31ea23475 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/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=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service,api/Namespace,extensions/ReplicaSet,api/Secret,extensions/Ingress,api/Event] --input=[../../federation/apis/federation/,api/,extensions/] + +// This package has the automatically generated typed clients. +package unversioned diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/extensions_client.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/extensions_client.go new file mode 100644 index 0000000000..b55aac1ddc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/extensions_client.go @@ -0,0 +1,106 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + registered "k8s.io/kubernetes/pkg/apimachinery/registered" + restclient "k8s.io/kubernetes/pkg/client/restclient" +) + +type ExtensionsInterface interface { + GetRESTClient() *restclient.RESTClient + IngressesGetter + ReplicaSetsGetter +} + +// ExtensionsClient is used to interact with features provided by the Extensions group. +type ExtensionsClient struct { + *restclient.RESTClient +} + +func (c *ExtensionsClient) Ingresses(namespace string) IngressInterface { + return newIngresses(c, namespace) +} + +func (c *ExtensionsClient) ReplicaSets(namespace string) ReplicaSetInterface { + return newReplicaSets(c, namespace) +} + +// NewForConfig creates a new ExtensionsClient for the given config. +func NewForConfig(c *restclient.Config) (*ExtensionsClient, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := restclient.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &ExtensionsClient{client}, nil +} + +// NewForConfigOrDie creates a new ExtensionsClient for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *restclient.Config) *ExtensionsClient { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new ExtensionsClient for the given RESTClient. +func New(c *restclient.RESTClient) *ExtensionsClient { + return &ExtensionsClient{c} +} + +func setConfigDefaults(config *restclient.Config) error { + // if extensions group is not registered, return an error + g, err := registered.Group("extensions") + if err != nil { + return err + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = restclient.DefaultKubernetesUserAgent() + } + // TODO: Unconditionally set the config.Version, until we fix the config. + //if config.Version == "" { + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + //} + + config.NegotiatedSerializer = api.Codecs + + if config.QPS == 0 { + config.QPS = 5 + } + if config.Burst == 0 { + config.Burst = 10 + } + return nil +} + +// GetRESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *ExtensionsClient) GetRESTClient() *restclient.RESTClient { + if c == nil { + return nil + } + return c.RESTClient +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/generated_expansion.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/generated_expansion.go new file mode 100644 index 0000000000..6e5e319a80 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/generated_expansion.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. +*/ + +package unversioned + +type ReplicaSetExpansion interface{} + +type IngressExpansion interface{} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/ingress.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/ingress.go new file mode 100644 index 0000000000..7d941ac870 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/ingress.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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + extensions "k8s.io/kubernetes/pkg/apis/extensions" + watch "k8s.io/kubernetes/pkg/watch" +) + +// IngressesGetter has a method to return a IngressInterface. +// A group's client should implement this interface. +type IngressesGetter interface { + Ingresses(namespace string) IngressInterface +} + +// IngressInterface has methods to work with Ingress resources. +type IngressInterface interface { + Create(*extensions.Ingress) (*extensions.Ingress, error) + Update(*extensions.Ingress) (*extensions.Ingress, error) + UpdateStatus(*extensions.Ingress) (*extensions.Ingress, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*extensions.Ingress, error) + List(opts api.ListOptions) (*extensions.IngressList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) + IngressExpansion +} + +// ingresses implements IngressInterface +type ingresses struct { + client *ExtensionsClient + ns string +} + +// newIngresses returns a Ingresses +func newIngresses(c *ExtensionsClient, namespace string) *ingresses { + return &ingresses{ + client: c, + ns: namespace, + } +} + +// Create takes the representation of a ingress and creates it. Returns the server's representation of the ingress, and an error, if there is any. +func (c *ingresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { + result = &extensions.Ingress{} + err = c.client.Post(). + Namespace(c.ns). + Resource("ingresses"). + Body(ingress). + Do(). + Into(result) + return +} + +// Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any. +func (c *ingresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { + result = &extensions.Ingress{} + err = c.client.Put(). + Namespace(c.ns). + Resource("ingresses"). + Name(ingress.Name). + Body(ingress). + Do(). + Into(result) + return +} + +func (c *ingresses) UpdateStatus(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { + result = &extensions.Ingress{} + err = c.client.Put(). + Namespace(c.ns). + Resource("ingresses"). + Name(ingress.Name). + SubResource("status"). + Body(ingress). + Do(). + Into(result) + return +} + +// Delete takes name of the ingress and deletes it. Returns an error if one occurs. +func (c *ingresses) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("ingresses"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *ingresses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("ingresses"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. +func (c *ingresses) Get(name string) (result *extensions.Ingress, err error) { + result = &extensions.Ingress{} + err = c.client.Get(). + Namespace(c.ns). + Resource("ingresses"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of Ingresses that match those selectors. +func (c *ingresses) List(opts api.ListOptions) (result *extensions.IngressList, err error) { + result = &extensions.IngressList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("ingresses"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested ingresses. +func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("ingresses"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched ingress. +func (c *ingresses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) { + result = &extensions.Ingress{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("ingresses"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/replicaset.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/replicaset.go new file mode 100644 index 0000000000..fc6987b5ba --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/extensions/unversioned/replicaset.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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + extensions "k8s.io/kubernetes/pkg/apis/extensions" + watch "k8s.io/kubernetes/pkg/watch" +) + +// ReplicaSetsGetter has a method to return a ReplicaSetInterface. +// A group's client should implement this interface. +type ReplicaSetsGetter interface { + ReplicaSets(namespace string) ReplicaSetInterface +} + +// ReplicaSetInterface has methods to work with ReplicaSet resources. +type ReplicaSetInterface interface { + Create(*extensions.ReplicaSet) (*extensions.ReplicaSet, error) + Update(*extensions.ReplicaSet) (*extensions.ReplicaSet, error) + UpdateStatus(*extensions.ReplicaSet) (*extensions.ReplicaSet, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*extensions.ReplicaSet, error) + List(opts api.ListOptions) (*extensions.ReplicaSetList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) + ReplicaSetExpansion +} + +// replicaSets implements ReplicaSetInterface +type replicaSets struct { + client *ExtensionsClient + ns string +} + +// newReplicaSets returns a ReplicaSets +func newReplicaSets(c *ExtensionsClient, namespace string) *replicaSets { + return &replicaSets{ + client: c, + ns: namespace, + } +} + +// Create takes the representation of a replicaSet and creates it. Returns the server's representation of the replicaSet, and an error, if there is any. +func (c *replicaSets) Create(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { + result = &extensions.ReplicaSet{} + err = c.client.Post(). + Namespace(c.ns). + Resource("replicasets"). + Body(replicaSet). + Do(). + Into(result) + return +} + +// Update takes the representation of a replicaSet and updates it. Returns the server's representation of the replicaSet, and an error, if there is any. +func (c *replicaSets) Update(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { + result = &extensions.ReplicaSet{} + err = c.client.Put(). + Namespace(c.ns). + Resource("replicasets"). + Name(replicaSet.Name). + Body(replicaSet). + Do(). + Into(result) + return +} + +func (c *replicaSets) UpdateStatus(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { + result = &extensions.ReplicaSet{} + err = c.client.Put(). + Namespace(c.ns). + Resource("replicasets"). + Name(replicaSet.Name). + SubResource("status"). + Body(replicaSet). + Do(). + Into(result) + return +} + +// Delete takes name of the replicaSet and deletes it. Returns an error if one occurs. +func (c *replicaSets) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("replicasets"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *replicaSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("replicasets"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. +func (c *replicaSets) Get(name string) (result *extensions.ReplicaSet, err error) { + result = &extensions.ReplicaSet{} + err = c.client.Get(). + Namespace(c.ns). + Resource("replicasets"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. +func (c *replicaSets) List(opts api.ListOptions) (result *extensions.ReplicaSetList, err error) { + result = &extensions.ReplicaSetList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("replicasets"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested replicaSets. +func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("replicasets"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched replicaSet. +func (c *replicaSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) { + result = &extensions.ReplicaSet{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("replicasets"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/cluster.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/cluster.go index cdeb36143f..a9698d5140 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/cluster.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/cluster.go @@ -38,7 +38,7 @@ type ClusterInterface interface { Get(name string) (*federation.Cluster, error) List(opts api.ListOptions) (*federation.ClusterList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error) ClusterExpansion } @@ -141,10 +141,11 @@ func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched cluster. -func (c *clusters) Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error) { +func (c *clusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error) { result = &federation.Cluster{} err = c.client.Patch(pt). Resource("clusters"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/doc.go b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/doc.go index 7899881b16..c31ea23475 100644 --- a/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset/typed/federation/unversioned/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=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service] --input=[../../federation/apis/federation/,api/] +// This package is generated by client-gen with arguments: --clientset-name=federation_internalclientset --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/Service,api/Namespace,extensions/ReplicaSet,api/Secret,extensions/Ingress,api/Event] --input=[../../federation/apis/federation/,api/,extensions/] // This package has the automatically generated typed clients. package unversioned diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/context.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/context.go index 096144b835..580e6b8a0a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/context.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/context.go @@ -22,6 +22,7 @@ import ( "golang.org/x/net/context" "k8s.io/kubernetes/pkg/auth/user" + "k8s.io/kubernetes/pkg/types" ) // Context carries values across API boundaries. @@ -49,11 +50,16 @@ type Context interface { // The key type is unexported to prevent collisions type key int -// namespaceKey is the context key for the request namespace. -const namespaceKey key = 0 +const ( + // namespaceKey is the context key for the request namespace. + namespaceKey key = iota -// userKey is the context key for the request user. -const userKey key = 1 + // userKey is the context key for the request user. + userKey + + // uidKey is the context key for the uid to assign to an object on create. + uidKey +) // NewContext instantiates a base context object for request flows. func NewContext() Context { @@ -119,3 +125,14 @@ func UserFrom(ctx Context) (user.Info, bool) { user, ok := ctx.Value(userKey).(user.Info) return user, ok } + +// WithUID returns a copy of parent in which the uid value is set +func WithUID(parent Context, uid types.UID) Context { + return WithValue(parent, uidKey, uid) +} + +// UIDFrom returns the value of the uid key on the ctx +func UIDFrom(ctx Context) (types.UID, bool) { + uid, ok := ctx.Value(uidKey).(types.UID) + return uid, ok +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/conversion.go index 07585d8c35..4a9f50b9ec 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/conversion.go @@ -17,43 +17,104 @@ limitations under the License. package api import ( + "fmt" + "k8s.io/kubernetes/pkg/api/resource" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/conversion" "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" + "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/util/intstr" + utillabels "k8s.io/kubernetes/pkg/util/labels" + "k8s.io/kubernetes/pkg/util/validation/field" ) -func init() { - Scheme.AddDefaultingFuncs( - func(obj *ListOptions) { - if obj.LabelSelector == nil { - obj.LabelSelector = labels.Everything() - } - if obj.FieldSelector == nil { - obj.FieldSelector = fields.Everything() - } - }, - ) - Scheme.AddConversionFuncs( +func addConversionFuncs(scheme *runtime.Scheme) error { + return scheme.AddConversionFuncs( Convert_unversioned_TypeMeta_To_unversioned_TypeMeta, + Convert_unversioned_ListMeta_To_unversioned_ListMeta, + Convert_intstr_IntOrString_To_intstr_IntOrString, + Convert_unversioned_Time_To_unversioned_Time, + Convert_Slice_string_To_unversioned_Time, + + Convert_resource_Quantity_To_resource_Quantity, + Convert_string_To_labels_Selector, + Convert_labels_Selector_To_string, + Convert_string_To_fields_Selector, + Convert_fields_Selector_To_string, + Convert_Pointer_bool_To_bool, Convert_bool_To_Pointer_bool, + Convert_Pointer_string_To_string, Convert_string_To_Pointer_string, - Convert_labels_Selector_To_string, - Convert_fields_Selector_To_string, - Convert_resource_Quantity_To_resource_Quantity, + + Convert_Pointer_int64_To_int, + Convert_int_To_Pointer_int64, + + Convert_Pointer_int32_To_int32, + Convert_int32_To_Pointer_int32, + + Convert_Pointer_float64_To_float64, + Convert_float64_To_Pointer_float64, + + Convert_map_to_unversioned_LabelSelector, + Convert_unversioned_LabelSelector_to_map, ) } +func Convert_Pointer_float64_To_float64(in **float64, out *float64, s conversion.Scope) error { + if *in == nil { + *out = 0 + return nil + } + *out = float64(**in) + return nil +} + +func Convert_float64_To_Pointer_float64(in *float64, out **float64, s conversion.Scope) error { + temp := float64(*in) + *out = &temp + return nil +} + +func Convert_Pointer_int32_To_int32(in **int32, out *int32, s conversion.Scope) error { + if *in == nil { + *out = 0 + return nil + } + *out = int32(**in) + return nil +} + +func Convert_int32_To_Pointer_int32(in *int32, out **int32, s conversion.Scope) error { + temp := int32(*in) + *out = &temp + return nil +} + +func Convert_Pointer_int64_To_int(in **int64, out *int, s conversion.Scope) error { + if *in == nil { + *out = 0 + return nil + } + *out = int(**in) + return nil +} + +func Convert_int_To_Pointer_int64(in *int, out **int64, s conversion.Scope) error { + temp := int64(*in) + *out = &temp + return nil +} + func Convert_Pointer_string_To_string(in **string, out *string, s conversion.Scope) error { if *in == nil { *out = "" @@ -132,6 +193,7 @@ func Convert_string_To_labels_Selector(in *string, out *labels.Selector, s conve *out = selector return nil } + func Convert_string_To_fields_Selector(in *string, out *fields.Selector, s conversion.Scope) error { selector, err := fields.ParseSelector(*in) if err != nil { @@ -140,6 +202,7 @@ func Convert_string_To_fields_Selector(in *string, out *fields.Selector, s conve *out = selector return nil } + func Convert_labels_Selector_To_string(in *labels.Selector, out *string, s conversion.Scope) error { if *in == nil { return nil @@ -147,6 +210,7 @@ func Convert_labels_Selector_To_string(in *labels.Selector, out *string, s conve *out = (*in).String() return nil } + func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conversion.Scope) error { if *in == nil { return nil @@ -154,7 +218,28 @@ func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conve *out = (*in).String() return nil } + func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error { *out = *in return nil } + +func Convert_map_to_unversioned_LabelSelector(in *map[string]string, out *unversioned.LabelSelector, s conversion.Scope) error { + if in == nil { + return nil + } + out = new(unversioned.LabelSelector) + for labelKey, labelValue := range *in { + utillabels.AddLabelToSelector(out, labelKey, labelValue) + } + return nil +} + +func Convert_unversioned_LabelSelector_to_map(in *unversioned.LabelSelector, out *map[string]string, s conversion.Scope) error { + var err error + *out, err = unversioned.LabelSelectorAsMap(in) + if err != nil { + err = field.Invalid(field.NewPath("labelSelector"), *in, fmt.Sprintf("cannot convert to old selector: %v", err)) + } + return err +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/deep_copy_generated.go deleted file mode 100644 index 340f365613..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/deep_copy_generated.go +++ /dev/null @@ -1,2950 +0,0 @@ -// +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 api - -import ( - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" - fields "k8s.io/kubernetes/pkg/fields" - labels "k8s.io/kubernetes/pkg/labels" - runtime "k8s.io/kubernetes/pkg/runtime" - types "k8s.io/kubernetes/pkg/types" -) - -func init() { - if err := Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_api_AWSElasticBlockStoreVolumeSource, - DeepCopy_api_Affinity, - DeepCopy_api_AttachedVolume, - DeepCopy_api_AzureFileVolumeSource, - DeepCopy_api_Binding, - DeepCopy_api_Capabilities, - DeepCopy_api_CephFSVolumeSource, - DeepCopy_api_CinderVolumeSource, - DeepCopy_api_ComponentCondition, - DeepCopy_api_ComponentStatus, - DeepCopy_api_ComponentStatusList, - DeepCopy_api_ConfigMap, - DeepCopy_api_ConfigMapKeySelector, - DeepCopy_api_ConfigMapList, - DeepCopy_api_ConfigMapVolumeSource, - DeepCopy_api_Container, - DeepCopy_api_ContainerImage, - DeepCopy_api_ContainerPort, - DeepCopy_api_ContainerState, - DeepCopy_api_ContainerStateRunning, - DeepCopy_api_ContainerStateTerminated, - DeepCopy_api_ContainerStateWaiting, - DeepCopy_api_ContainerStatus, - DeepCopy_api_ConversionError, - DeepCopy_api_DaemonEndpoint, - DeepCopy_api_DeleteOptions, - DeepCopy_api_DownwardAPIVolumeFile, - DeepCopy_api_DownwardAPIVolumeSource, - DeepCopy_api_EmptyDirVolumeSource, - DeepCopy_api_EndpointAddress, - DeepCopy_api_EndpointPort, - DeepCopy_api_EndpointSubset, - DeepCopy_api_Endpoints, - DeepCopy_api_EndpointsList, - DeepCopy_api_EnvVar, - DeepCopy_api_EnvVarSource, - DeepCopy_api_Event, - DeepCopy_api_EventList, - DeepCopy_api_EventSource, - DeepCopy_api_ExecAction, - DeepCopy_api_ExportOptions, - DeepCopy_api_FCVolumeSource, - DeepCopy_api_FlexVolumeSource, - DeepCopy_api_FlockerVolumeSource, - DeepCopy_api_GCEPersistentDiskVolumeSource, - DeepCopy_api_GitRepoVolumeSource, - DeepCopy_api_GlusterfsVolumeSource, - DeepCopy_api_HTTPGetAction, - DeepCopy_api_HTTPHeader, - DeepCopy_api_Handler, - DeepCopy_api_HostPathVolumeSource, - DeepCopy_api_ISCSIVolumeSource, - DeepCopy_api_KeyToPath, - DeepCopy_api_Lifecycle, - DeepCopy_api_LimitRange, - DeepCopy_api_LimitRangeItem, - DeepCopy_api_LimitRangeList, - DeepCopy_api_LimitRangeSpec, - DeepCopy_api_List, - DeepCopy_api_ListOptions, - DeepCopy_api_LoadBalancerIngress, - DeepCopy_api_LoadBalancerStatus, - DeepCopy_api_LocalObjectReference, - DeepCopy_api_NFSVolumeSource, - DeepCopy_api_Namespace, - DeepCopy_api_NamespaceList, - DeepCopy_api_NamespaceSpec, - DeepCopy_api_NamespaceStatus, - DeepCopy_api_Node, - DeepCopy_api_NodeAddress, - DeepCopy_api_NodeAffinity, - DeepCopy_api_NodeCondition, - DeepCopy_api_NodeDaemonEndpoints, - DeepCopy_api_NodeList, - DeepCopy_api_NodeProxyOptions, - DeepCopy_api_NodeResources, - DeepCopy_api_NodeSelector, - DeepCopy_api_NodeSelectorRequirement, - DeepCopy_api_NodeSelectorTerm, - DeepCopy_api_NodeSpec, - DeepCopy_api_NodeStatus, - DeepCopy_api_NodeSystemInfo, - DeepCopy_api_ObjectFieldSelector, - DeepCopy_api_ObjectMeta, - DeepCopy_api_ObjectReference, - DeepCopy_api_OwnerReference, - DeepCopy_api_PersistentVolume, - DeepCopy_api_PersistentVolumeClaim, - DeepCopy_api_PersistentVolumeClaimList, - DeepCopy_api_PersistentVolumeClaimSpec, - DeepCopy_api_PersistentVolumeClaimStatus, - DeepCopy_api_PersistentVolumeClaimVolumeSource, - DeepCopy_api_PersistentVolumeList, - DeepCopy_api_PersistentVolumeSource, - DeepCopy_api_PersistentVolumeSpec, - DeepCopy_api_PersistentVolumeStatus, - DeepCopy_api_Pod, - DeepCopy_api_PodAffinity, - DeepCopy_api_PodAffinityTerm, - DeepCopy_api_PodAntiAffinity, - DeepCopy_api_PodAttachOptions, - DeepCopy_api_PodCondition, - DeepCopy_api_PodExecOptions, - DeepCopy_api_PodList, - DeepCopy_api_PodLogOptions, - DeepCopy_api_PodProxyOptions, - DeepCopy_api_PodSecurityContext, - DeepCopy_api_PodSpec, - DeepCopy_api_PodStatus, - DeepCopy_api_PodStatusResult, - DeepCopy_api_PodTemplate, - DeepCopy_api_PodTemplateList, - DeepCopy_api_PodTemplateSpec, - DeepCopy_api_Preconditions, - DeepCopy_api_PreferredSchedulingTerm, - DeepCopy_api_Probe, - DeepCopy_api_RBDVolumeSource, - DeepCopy_api_RangeAllocation, - DeepCopy_api_ReplicationController, - DeepCopy_api_ReplicationControllerList, - DeepCopy_api_ReplicationControllerSpec, - DeepCopy_api_ReplicationControllerStatus, - DeepCopy_api_ResourceFieldSelector, - DeepCopy_api_ResourceQuota, - DeepCopy_api_ResourceQuotaList, - DeepCopy_api_ResourceQuotaSpec, - DeepCopy_api_ResourceQuotaStatus, - DeepCopy_api_ResourceRequirements, - DeepCopy_api_SELinuxOptions, - DeepCopy_api_Secret, - DeepCopy_api_SecretKeySelector, - DeepCopy_api_SecretList, - DeepCopy_api_SecretVolumeSource, - DeepCopy_api_SecurityContext, - DeepCopy_api_SerializedReference, - DeepCopy_api_Service, - DeepCopy_api_ServiceAccount, - DeepCopy_api_ServiceAccountList, - DeepCopy_api_ServiceList, - DeepCopy_api_ServicePort, - DeepCopy_api_ServiceProxyOptions, - DeepCopy_api_ServiceSpec, - DeepCopy_api_ServiceStatus, - DeepCopy_api_TCPSocketAction, - DeepCopy_api_Taint, - DeepCopy_api_Toleration, - DeepCopy_api_Volume, - DeepCopy_api_VolumeMount, - DeepCopy_api_VolumeSource, - DeepCopy_api_VsphereVirtualDiskVolumeSource, - DeepCopy_api_WeightedPodAffinityTerm, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_api_AWSElasticBlockStoreVolumeSource(in AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, c *conversion.Cloner) error { - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_Affinity(in Affinity, out *Affinity, c *conversion.Cloner) error { - if in.NodeAffinity != nil { - in, out := in.NodeAffinity, &out.NodeAffinity - *out = new(NodeAffinity) - if err := DeepCopy_api_NodeAffinity(*in, *out, c); err != nil { - return err - } - } else { - out.NodeAffinity = nil - } - if in.PodAffinity != nil { - in, out := in.PodAffinity, &out.PodAffinity - *out = new(PodAffinity) - if err := DeepCopy_api_PodAffinity(*in, *out, c); err != nil { - return err - } - } else { - out.PodAffinity = nil - } - if in.PodAntiAffinity != nil { - in, out := in.PodAntiAffinity, &out.PodAntiAffinity - *out = new(PodAntiAffinity) - if err := DeepCopy_api_PodAntiAffinity(*in, *out, c); err != nil { - return err - } - } else { - out.PodAntiAffinity = nil - } - return nil -} - -func DeepCopy_api_AttachedVolume(in AttachedVolume, out *AttachedVolume, c *conversion.Cloner) error { - out.Name = in.Name - out.DevicePath = in.DevicePath - return nil -} - -func DeepCopy_api_AzureFileVolumeSource(in AzureFileVolumeSource, out *AzureFileVolumeSource, c *conversion.Cloner) error { - out.SecretName = in.SecretName - out.ShareName = in.ShareName - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_Binding(in Binding, out *Binding, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Target = in.Target - return nil -} - -func DeepCopy_api_Capabilities(in Capabilities, out *Capabilities, c *conversion.Cloner) error { - if in.Add != nil { - in, out := in.Add, &out.Add - *out = make([]Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Add = nil - } - if in.Drop != nil { - in, out := in.Drop, &out.Drop - *out = make([]Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Drop = nil - } - return nil -} - -func DeepCopy_api_CephFSVolumeSource(in CephFSVolumeSource, out *CephFSVolumeSource, c *conversion.Cloner) error { - if in.Monitors != nil { - in, out := in.Monitors, &out.Monitors - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Monitors = nil - } - out.Path = in.Path - out.User = in.User - out.SecretFile = in.SecretFile - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_CinderVolumeSource(in CinderVolumeSource, out *CinderVolumeSource, c *conversion.Cloner) error { - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_ComponentCondition(in ComponentCondition, out *ComponentCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.Message = in.Message - out.Error = in.Error - return nil -} - -func DeepCopy_api_ComponentStatus(in ComponentStatus, out *ComponentStatus, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]ComponentCondition, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Conditions = nil - } - return nil -} - -func DeepCopy_api_ComponentStatusList(in ComponentStatusList, out *ComponentStatusList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ComponentStatus, len(in)) - for i := range in { - if err := DeepCopy_api_ComponentStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ConfigMap(in ConfigMap, out *ConfigMap, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Data = nil - } - return nil -} - -func DeepCopy_api_ConfigMapKeySelector(in ConfigMapKeySelector, out *ConfigMapKeySelector, c *conversion.Cloner) error { - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key - return nil -} - -func DeepCopy_api_ConfigMapList(in ConfigMapList, out *ConfigMapList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ConfigMap, len(in)) - for i := range in { - if err := DeepCopy_api_ConfigMap(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ConfigMapVolumeSource(in ConfigMapVolumeSource, out *ConfigMapVolumeSource, c *conversion.Cloner) error { - out.LocalObjectReference = in.LocalObjectReference - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]KeyToPath, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_Container(in Container, out *Container, c *conversion.Cloner) error { - out.Name = in.Name - out.Image = in.Image - if in.Command != nil { - in, out := in.Command, &out.Command - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Command = nil - } - if in.Args != nil { - in, out := in.Args, &out.Args - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Args = nil - } - out.WorkingDir = in.WorkingDir - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]ContainerPort, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ports = nil - } - if in.Env != nil { - in, out := in.Env, &out.Env - *out = make([]EnvVar, len(in)) - for i := range in { - if err := DeepCopy_api_EnvVar(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Env = nil - } - if err := DeepCopy_api_ResourceRequirements(in.Resources, &out.Resources, c); err != nil { - return err - } - if in.VolumeMounts != nil { - in, out := in.VolumeMounts, &out.VolumeMounts - *out = make([]VolumeMount, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.VolumeMounts = nil - } - if in.LivenessProbe != nil { - in, out := in.LivenessProbe, &out.LivenessProbe - *out = new(Probe) - if err := DeepCopy_api_Probe(*in, *out, c); err != nil { - return err - } - } else { - out.LivenessProbe = nil - } - if in.ReadinessProbe != nil { - in, out := in.ReadinessProbe, &out.ReadinessProbe - *out = new(Probe) - if err := DeepCopy_api_Probe(*in, *out, c); err != nil { - return err - } - } else { - out.ReadinessProbe = nil - } - if in.Lifecycle != nil { - in, out := in.Lifecycle, &out.Lifecycle - *out = new(Lifecycle) - if err := DeepCopy_api_Lifecycle(*in, *out, c); err != nil { - return err - } - } else { - out.Lifecycle = nil - } - out.TerminationMessagePath = in.TerminationMessagePath - out.ImagePullPolicy = in.ImagePullPolicy - if in.SecurityContext != nil { - in, out := in.SecurityContext, &out.SecurityContext - *out = new(SecurityContext) - if err := DeepCopy_api_SecurityContext(*in, *out, c); err != nil { - return err - } - } else { - out.SecurityContext = nil - } - out.Stdin = in.Stdin - out.StdinOnce = in.StdinOnce - out.TTY = in.TTY - return nil -} - -func DeepCopy_api_ContainerImage(in ContainerImage, out *ContainerImage, c *conversion.Cloner) error { - if in.Names != nil { - in, out := in.Names, &out.Names - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Names = nil - } - out.SizeBytes = in.SizeBytes - return nil -} - -func DeepCopy_api_ContainerPort(in ContainerPort, out *ContainerPort, c *conversion.Cloner) error { - out.Name = in.Name - out.HostPort = in.HostPort - out.ContainerPort = in.ContainerPort - out.Protocol = in.Protocol - out.HostIP = in.HostIP - return nil -} - -func DeepCopy_api_ContainerState(in ContainerState, out *ContainerState, c *conversion.Cloner) error { - if in.Waiting != nil { - in, out := in.Waiting, &out.Waiting - *out = new(ContainerStateWaiting) - **out = *in - } else { - out.Waiting = nil - } - if in.Running != nil { - in, out := in.Running, &out.Running - *out = new(ContainerStateRunning) - if err := DeepCopy_api_ContainerStateRunning(*in, *out, c); err != nil { - return err - } - } else { - out.Running = nil - } - if in.Terminated != nil { - in, out := in.Terminated, &out.Terminated - *out = new(ContainerStateTerminated) - if err := DeepCopy_api_ContainerStateTerminated(*in, *out, c); err != nil { - return err - } - } else { - out.Terminated = nil - } - return nil -} - -func DeepCopy_api_ContainerStateRunning(in ContainerStateRunning, out *ContainerStateRunning, c *conversion.Cloner) error { - out.StartedAt = in.StartedAt.DeepCopy() - return nil -} - -func DeepCopy_api_ContainerStateTerminated(in ContainerStateTerminated, out *ContainerStateTerminated, c *conversion.Cloner) error { - out.ExitCode = in.ExitCode - out.Signal = in.Signal - out.Reason = in.Reason - out.Message = in.Message - out.StartedAt = in.StartedAt.DeepCopy() - out.FinishedAt = in.FinishedAt.DeepCopy() - out.ContainerID = in.ContainerID - return nil -} - -func DeepCopy_api_ContainerStateWaiting(in ContainerStateWaiting, out *ContainerStateWaiting, c *conversion.Cloner) error { - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_api_ContainerStatus(in ContainerStatus, out *ContainerStatus, c *conversion.Cloner) error { - out.Name = in.Name - if err := DeepCopy_api_ContainerState(in.State, &out.State, c); err != nil { - return err - } - if err := DeepCopy_api_ContainerState(in.LastTerminationState, &out.LastTerminationState, c); err != nil { - return err - } - out.Ready = in.Ready - out.RestartCount = in.RestartCount - out.Image = in.Image - out.ImageID = in.ImageID - out.ContainerID = in.ContainerID - return nil -} - -func DeepCopy_api_ConversionError(in ConversionError, out *ConversionError, c *conversion.Cloner) error { - if in.In == nil { - out.In = nil - } else if newVal, err := c.DeepCopy(in.In); err != nil { - return err - } else { - out.In = newVal.(interface{}) - } - if in.Out == nil { - out.Out = nil - } else if newVal, err := c.DeepCopy(in.Out); err != nil { - return err - } else { - out.Out = newVal.(interface{}) - } - out.Message = in.Message - return nil -} - -func DeepCopy_api_DaemonEndpoint(in DaemonEndpoint, out *DaemonEndpoint, c *conversion.Cloner) error { - out.Port = in.Port - return nil -} - -func DeepCopy_api_DeleteOptions(in DeleteOptions, out *DeleteOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if in.GracePeriodSeconds != nil { - in, out := in.GracePeriodSeconds, &out.GracePeriodSeconds - *out = new(int64) - **out = *in - } else { - out.GracePeriodSeconds = nil - } - if in.Preconditions != nil { - in, out := in.Preconditions, &out.Preconditions - *out = new(Preconditions) - if err := DeepCopy_api_Preconditions(*in, *out, c); err != nil { - return err - } - } else { - out.Preconditions = nil - } - if in.OrphanDependents != nil { - in, out := in.OrphanDependents, &out.OrphanDependents - *out = new(bool) - **out = *in - } else { - out.OrphanDependents = nil - } - return nil -} - -func DeepCopy_api_DownwardAPIVolumeFile(in DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, c *conversion.Cloner) error { - out.Path = in.Path - if in.FieldRef != nil { - in, out := in.FieldRef, &out.FieldRef - *out = new(ObjectFieldSelector) - **out = *in - } else { - out.FieldRef = nil - } - if in.ResourceFieldRef != nil { - in, out := in.ResourceFieldRef, &out.ResourceFieldRef - *out = new(ResourceFieldSelector) - if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { - return err - } - } else { - out.ResourceFieldRef = nil - } - return nil -} - -func DeepCopy_api_DownwardAPIVolumeSource(in DownwardAPIVolumeSource, out *DownwardAPIVolumeSource, c *conversion.Cloner) error { - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]DownwardAPIVolumeFile, len(in)) - for i := range in { - if err := DeepCopy_api_DownwardAPIVolumeFile(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_EmptyDirVolumeSource(in EmptyDirVolumeSource, out *EmptyDirVolumeSource, c *conversion.Cloner) error { - out.Medium = in.Medium - return nil -} - -func DeepCopy_api_EndpointAddress(in EndpointAddress, out *EndpointAddress, c *conversion.Cloner) error { - out.IP = in.IP - out.Hostname = in.Hostname - if in.TargetRef != nil { - in, out := in.TargetRef, &out.TargetRef - *out = new(ObjectReference) - **out = *in - } else { - out.TargetRef = nil - } - return nil -} - -func DeepCopy_api_EndpointPort(in EndpointPort, out *EndpointPort, c *conversion.Cloner) error { - out.Name = in.Name - out.Port = in.Port - out.Protocol = in.Protocol - return nil -} - -func DeepCopy_api_EndpointSubset(in EndpointSubset, out *EndpointSubset, c *conversion.Cloner) error { - if in.Addresses != nil { - in, out := in.Addresses, &out.Addresses - *out = make([]EndpointAddress, len(in)) - for i := range in { - if err := DeepCopy_api_EndpointAddress(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Addresses = nil - } - if in.NotReadyAddresses != nil { - in, out := in.NotReadyAddresses, &out.NotReadyAddresses - *out = make([]EndpointAddress, len(in)) - for i := range in { - if err := DeepCopy_api_EndpointAddress(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.NotReadyAddresses = nil - } - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]EndpointPort, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ports = nil - } - return nil -} - -func DeepCopy_api_Endpoints(in Endpoints, out *Endpoints, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Subsets != nil { - in, out := in.Subsets, &out.Subsets - *out = make([]EndpointSubset, len(in)) - for i := range in { - if err := DeepCopy_api_EndpointSubset(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Subsets = nil - } - return nil -} - -func DeepCopy_api_EndpointsList(in EndpointsList, out *EndpointsList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Endpoints, len(in)) - for i := range in { - if err := DeepCopy_api_Endpoints(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_EnvVar(in EnvVar, out *EnvVar, c *conversion.Cloner) error { - out.Name = in.Name - out.Value = in.Value - if in.ValueFrom != nil { - in, out := in.ValueFrom, &out.ValueFrom - *out = new(EnvVarSource) - if err := DeepCopy_api_EnvVarSource(*in, *out, c); err != nil { - return err - } - } else { - out.ValueFrom = nil - } - return nil -} - -func DeepCopy_api_EnvVarSource(in EnvVarSource, out *EnvVarSource, c *conversion.Cloner) error { - if in.FieldRef != nil { - in, out := in.FieldRef, &out.FieldRef - *out = new(ObjectFieldSelector) - **out = *in - } else { - out.FieldRef = nil - } - if in.ResourceFieldRef != nil { - in, out := in.ResourceFieldRef, &out.ResourceFieldRef - *out = new(ResourceFieldSelector) - if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { - return err - } - } else { - out.ResourceFieldRef = nil - } - if in.ConfigMapKeyRef != nil { - in, out := in.ConfigMapKeyRef, &out.ConfigMapKeyRef - *out = new(ConfigMapKeySelector) - **out = *in - } else { - out.ConfigMapKeyRef = nil - } - if in.SecretKeyRef != nil { - in, out := in.SecretKeyRef, &out.SecretKeyRef - *out = new(SecretKeySelector) - **out = *in - } else { - out.SecretKeyRef = nil - } - return nil -} - -func DeepCopy_api_Event(in Event, out *Event, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.InvolvedObject = in.InvolvedObject - out.Reason = in.Reason - out.Message = in.Message - out.Source = in.Source - out.FirstTimestamp = in.FirstTimestamp.DeepCopy() - out.LastTimestamp = in.LastTimestamp.DeepCopy() - out.Count = in.Count - out.Type = in.Type - return nil -} - -func DeepCopy_api_EventList(in EventList, out *EventList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Event, len(in)) - for i := range in { - if err := DeepCopy_api_Event(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_EventSource(in EventSource, out *EventSource, c *conversion.Cloner) error { - out.Component = in.Component - out.Host = in.Host - return nil -} - -func DeepCopy_api_ExecAction(in ExecAction, out *ExecAction, c *conversion.Cloner) error { - if in.Command != nil { - in, out := in.Command, &out.Command - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Command = nil - } - return nil -} - -func DeepCopy_api_ExportOptions(in ExportOptions, out *ExportOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Export = in.Export - out.Exact = in.Exact - return nil -} - -func DeepCopy_api_FCVolumeSource(in FCVolumeSource, out *FCVolumeSource, c *conversion.Cloner) error { - if in.TargetWWNs != nil { - in, out := in.TargetWWNs, &out.TargetWWNs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.TargetWWNs = nil - } - if in.Lun != nil { - in, out := in.Lun, &out.Lun - *out = new(int32) - **out = *in - } else { - out.Lun = nil - } - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_FlexVolumeSource(in FlexVolumeSource, out *FlexVolumeSource, c *conversion.Cloner) error { - out.Driver = in.Driver - out.FSType = in.FSType - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - out.ReadOnly = in.ReadOnly - if in.Options != nil { - in, out := in.Options, &out.Options - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Options = nil - } - return nil -} - -func DeepCopy_api_FlockerVolumeSource(in FlockerVolumeSource, out *FlockerVolumeSource, c *conversion.Cloner) error { - out.DatasetName = in.DatasetName - return nil -} - -func DeepCopy_api_GCEPersistentDiskVolumeSource(in GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, c *conversion.Cloner) error { - out.PDName = in.PDName - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_GitRepoVolumeSource(in GitRepoVolumeSource, out *GitRepoVolumeSource, c *conversion.Cloner) error { - out.Repository = in.Repository - out.Revision = in.Revision - out.Directory = in.Directory - return nil -} - -func DeepCopy_api_GlusterfsVolumeSource(in GlusterfsVolumeSource, out *GlusterfsVolumeSource, c *conversion.Cloner) error { - out.EndpointsName = in.EndpointsName - out.Path = in.Path - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_HTTPGetAction(in HTTPGetAction, out *HTTPGetAction, c *conversion.Cloner) error { - out.Path = in.Path - out.Port = in.Port - out.Host = in.Host - out.Scheme = in.Scheme - if in.HTTPHeaders != nil { - in, out := in.HTTPHeaders, &out.HTTPHeaders - *out = make([]HTTPHeader, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.HTTPHeaders = nil - } - return nil -} - -func DeepCopy_api_HTTPHeader(in HTTPHeader, out *HTTPHeader, c *conversion.Cloner) error { - out.Name = in.Name - out.Value = in.Value - return nil -} - -func DeepCopy_api_Handler(in Handler, out *Handler, c *conversion.Cloner) error { - if in.Exec != nil { - in, out := in.Exec, &out.Exec - *out = new(ExecAction) - if err := DeepCopy_api_ExecAction(*in, *out, c); err != nil { - return err - } - } else { - out.Exec = nil - } - if in.HTTPGet != nil { - in, out := in.HTTPGet, &out.HTTPGet - *out = new(HTTPGetAction) - if err := DeepCopy_api_HTTPGetAction(*in, *out, c); err != nil { - return err - } - } else { - out.HTTPGet = nil - } - if in.TCPSocket != nil { - in, out := in.TCPSocket, &out.TCPSocket - *out = new(TCPSocketAction) - **out = *in - } else { - out.TCPSocket = nil - } - return nil -} - -func DeepCopy_api_HostPathVolumeSource(in HostPathVolumeSource, out *HostPathVolumeSource, c *conversion.Cloner) error { - out.Path = in.Path - return nil -} - -func DeepCopy_api_ISCSIVolumeSource(in ISCSIVolumeSource, out *ISCSIVolumeSource, c *conversion.Cloner) error { - out.TargetPortal = in.TargetPortal - out.IQN = in.IQN - out.Lun = in.Lun - out.ISCSIInterface = in.ISCSIInterface - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_KeyToPath(in KeyToPath, out *KeyToPath, c *conversion.Cloner) error { - out.Key = in.Key - out.Path = in.Path - return nil -} - -func DeepCopy_api_Lifecycle(in Lifecycle, out *Lifecycle, c *conversion.Cloner) error { - if in.PostStart != nil { - in, out := in.PostStart, &out.PostStart - *out = new(Handler) - if err := DeepCopy_api_Handler(*in, *out, c); err != nil { - return err - } - } else { - out.PostStart = nil - } - if in.PreStop != nil { - in, out := in.PreStop, &out.PreStop - *out = new(Handler) - if err := DeepCopy_api_Handler(*in, *out, c); err != nil { - return err - } - } else { - out.PreStop = nil - } - return nil -} - -func DeepCopy_api_LimitRange(in LimitRange, out *LimitRange, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_LimitRangeSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conversion.Cloner) error { - out.Type = in.Type - if in.Max != nil { - in, out := in.Max, &out.Max - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Max = nil - } - if in.Min != nil { - in, out := in.Min, &out.Min - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Min = nil - } - if in.Default != nil { - in, out := in.Default, &out.Default - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Default = nil - } - if in.DefaultRequest != nil { - in, out := in.DefaultRequest, &out.DefaultRequest - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.DefaultRequest = nil - } - if in.MaxLimitRequestRatio != nil { - in, out := in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.MaxLimitRequestRatio = nil - } - return nil -} - -func DeepCopy_api_LimitRangeList(in LimitRangeList, out *LimitRangeList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]LimitRange, len(in)) - for i := range in { - if err := DeepCopy_api_LimitRange(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_LimitRangeSpec(in LimitRangeSpec, out *LimitRangeSpec, c *conversion.Cloner) error { - if in.Limits != nil { - in, out := in.Limits, &out.Limits - *out = make([]LimitRangeItem, len(in)) - for i := range in { - if err := DeepCopy_api_LimitRangeItem(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Limits = nil - } - return nil -} - -func DeepCopy_api_List(in List, out *List, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]runtime.Object, len(in)) - for i := range in { - if newVal, err := c.DeepCopy(in[i]); err != nil { - return err - } else { - (*out)[i] = newVal.(runtime.Object) - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ListOptions(in ListOptions, out *ListOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if in.LabelSelector == nil { - out.LabelSelector = nil - } else if newVal, err := c.DeepCopy(in.LabelSelector); err != nil { - return err - } else { - out.LabelSelector = newVal.(labels.Selector) - } - if in.FieldSelector == nil { - out.FieldSelector = nil - } else if newVal, err := c.DeepCopy(in.FieldSelector); err != nil { - return err - } else { - out.FieldSelector = newVal.(fields.Selector) - } - out.Watch = in.Watch - out.ResourceVersion = in.ResourceVersion - if in.TimeoutSeconds != nil { - in, out := in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int64) - **out = *in - } else { - out.TimeoutSeconds = nil - } - return nil -} - -func DeepCopy_api_LoadBalancerIngress(in LoadBalancerIngress, out *LoadBalancerIngress, c *conversion.Cloner) error { - out.IP = in.IP - out.Hostname = in.Hostname - return nil -} - -func DeepCopy_api_LoadBalancerStatus(in LoadBalancerStatus, out *LoadBalancerStatus, c *conversion.Cloner) error { - if in.Ingress != nil { - in, out := in.Ingress, &out.Ingress - *out = make([]LoadBalancerIngress, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ingress = nil - } - return nil -} - -func DeepCopy_api_LocalObjectReference(in LocalObjectReference, out *LocalObjectReference, c *conversion.Cloner) error { - out.Name = in.Name - return nil -} - -func DeepCopy_api_NFSVolumeSource(in NFSVolumeSource, out *NFSVolumeSource, c *conversion.Cloner) error { - out.Server = in.Server - out.Path = in.Path - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_Namespace(in Namespace, out *Namespace, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_NamespaceSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_api_NamespaceList(in NamespaceList, out *NamespaceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Namespace, len(in)) - for i := range in { - if err := DeepCopy_api_Namespace(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_NamespaceSpec(in NamespaceSpec, out *NamespaceSpec, c *conversion.Cloner) error { - if in.Finalizers != nil { - in, out := in.Finalizers, &out.Finalizers - *out = make([]FinalizerName, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Finalizers = nil - } - return nil -} - -func DeepCopy_api_NamespaceStatus(in NamespaceStatus, out *NamespaceStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - return nil -} - -func DeepCopy_api_Node(in Node, out *Node, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Spec = in.Spec - if err := DeepCopy_api_NodeStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_NodeAddress(in NodeAddress, out *NodeAddress, c *conversion.Cloner) error { - out.Type = in.Type - out.Address = in.Address - return nil -} - -func DeepCopy_api_NodeAffinity(in NodeAffinity, out *NodeAffinity, c *conversion.Cloner) error { - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = new(NodeSelector) - if err := DeepCopy_api_NodeSelector(*in, *out, c); err != nil { - return err - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]PreferredSchedulingTerm, len(in)) - for i := range in { - if err := DeepCopy_api_PreferredSchedulingTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } - return nil -} - -func DeepCopy_api_NodeCondition(in NodeCondition, out *NodeCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_api_NodeDaemonEndpoints(in NodeDaemonEndpoints, out *NodeDaemonEndpoints, c *conversion.Cloner) error { - out.KubeletEndpoint = in.KubeletEndpoint - return nil -} - -func DeepCopy_api_NodeList(in NodeList, out *NodeList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Node, len(in)) - for i := range in { - if err := DeepCopy_api_Node(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_NodeProxyOptions(in NodeProxyOptions, out *NodeProxyOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Path = in.Path - return nil -} - -func DeepCopy_api_NodeResources(in NodeResources, out *NodeResources, c *conversion.Cloner) error { - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - return nil -} - -func DeepCopy_api_NodeSelector(in NodeSelector, out *NodeSelector, c *conversion.Cloner) error { - if in.NodeSelectorTerms != nil { - in, out := in.NodeSelectorTerms, &out.NodeSelectorTerms - *out = make([]NodeSelectorTerm, len(in)) - for i := range in { - if err := DeepCopy_api_NodeSelectorTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.NodeSelectorTerms = nil - } - return nil -} - -func DeepCopy_api_NodeSelectorRequirement(in NodeSelectorRequirement, out *NodeSelectorRequirement, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - if in.Values != nil { - in, out := in.Values, &out.Values - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Values = nil - } - return nil -} - -func DeepCopy_api_NodeSelectorTerm(in NodeSelectorTerm, out *NodeSelectorTerm, c *conversion.Cloner) error { - if in.MatchExpressions != nil { - in, out := in.MatchExpressions, &out.MatchExpressions - *out = make([]NodeSelectorRequirement, len(in)) - for i := range in { - if err := DeepCopy_api_NodeSelectorRequirement(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func DeepCopy_api_NodeSpec(in NodeSpec, out *NodeSpec, c *conversion.Cloner) error { - out.PodCIDR = in.PodCIDR - out.ExternalID = in.ExternalID - out.ProviderID = in.ProviderID - out.Unschedulable = in.Unschedulable - return nil -} - -func DeepCopy_api_NodeStatus(in NodeStatus, out *NodeStatus, c *conversion.Cloner) error { - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - if in.Allocatable != nil { - in, out := in.Allocatable, &out.Allocatable - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Allocatable = nil - } - out.Phase = in.Phase - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]NodeCondition, len(in)) - for i := range in { - if err := DeepCopy_api_NodeCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.Addresses != nil { - in, out := in.Addresses, &out.Addresses - *out = make([]NodeAddress, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Addresses = nil - } - out.DaemonEndpoints = in.DaemonEndpoints - out.NodeInfo = in.NodeInfo - if in.Images != nil { - in, out := in.Images, &out.Images - *out = make([]ContainerImage, len(in)) - for i := range in { - if err := DeepCopy_api_ContainerImage(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Images = nil - } - if in.VolumesInUse != nil { - in, out := in.VolumesInUse, &out.VolumesInUse - *out = make([]UniqueVolumeName, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.VolumesInUse = nil - } - if in.VolumesAttached != nil { - in, out := in.VolumesAttached, &out.VolumesAttached - *out = make([]AttachedVolume, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.VolumesAttached = nil - } - return nil -} - -func DeepCopy_api_NodeSystemInfo(in NodeSystemInfo, out *NodeSystemInfo, c *conversion.Cloner) error { - out.MachineID = in.MachineID - out.SystemUUID = in.SystemUUID - out.BootID = in.BootID - out.KernelVersion = in.KernelVersion - out.OSImage = in.OSImage - out.ContainerRuntimeVersion = in.ContainerRuntimeVersion - out.KubeletVersion = in.KubeletVersion - out.KubeProxyVersion = in.KubeProxyVersion - out.OperatingSystem = in.OperatingSystem - out.Architecture = in.Architecture - return nil -} - -func DeepCopy_api_ObjectFieldSelector(in ObjectFieldSelector, out *ObjectFieldSelector, c *conversion.Cloner) error { - out.APIVersion = in.APIVersion - out.FieldPath = in.FieldPath - return nil -} - -func DeepCopy_api_ObjectMeta(in ObjectMeta, out *ObjectMeta, c *conversion.Cloner) error { - out.Name = in.Name - out.GenerateName = in.GenerateName - out.Namespace = in.Namespace - out.SelfLink = in.SelfLink - out.UID = in.UID - out.ResourceVersion = in.ResourceVersion - out.Generation = in.Generation - out.CreationTimestamp = in.CreationTimestamp.DeepCopy() - if in.DeletionTimestamp != nil { - in, out := in.DeletionTimestamp, &out.DeletionTimestamp - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.DeletionTimestamp = nil - } - if in.DeletionGracePeriodSeconds != nil { - in, out := in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds - *out = new(int64) - **out = *in - } else { - out.DeletionGracePeriodSeconds = nil - } - if in.Labels != nil { - in, out := in.Labels, &out.Labels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Labels = 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 - } - if in.OwnerReferences != nil { - in, out := in.OwnerReferences, &out.OwnerReferences - *out = make([]OwnerReference, len(in)) - for i := range in { - if err := DeepCopy_api_OwnerReference(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.OwnerReferences = nil - } - if in.Finalizers != nil { - in, out := in.Finalizers, &out.Finalizers - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Finalizers = nil - } - return nil -} - -func DeepCopy_api_ObjectReference(in ObjectReference, out *ObjectReference, c *conversion.Cloner) error { - out.Kind = in.Kind - out.Namespace = in.Namespace - out.Name = in.Name - out.UID = in.UID - out.APIVersion = in.APIVersion - out.ResourceVersion = in.ResourceVersion - out.FieldPath = in.FieldPath - return nil -} - -func DeepCopy_api_OwnerReference(in OwnerReference, out *OwnerReference, c *conversion.Cloner) error { - out.APIVersion = in.APIVersion - out.Kind = in.Kind - out.Name = in.Name - out.UID = in.UID - if in.Controller != nil { - in, out := in.Controller, &out.Controller - *out = new(bool) - **out = *in - } else { - out.Controller = nil - } - return nil -} - -func DeepCopy_api_PersistentVolume(in PersistentVolume, out *PersistentVolume, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_PersistentVolumeSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_api_PersistentVolumeClaim(in PersistentVolumeClaim, out *PersistentVolumeClaim, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_PersistentVolumeClaimSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_api_PersistentVolumeClaimStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_PersistentVolumeClaimList(in PersistentVolumeClaimList, out *PersistentVolumeClaimList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PersistentVolumeClaim, len(in)) - for i := range in { - if err := DeepCopy_api_PersistentVolumeClaim(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_PersistentVolumeClaimSpec(in PersistentVolumeClaimSpec, out *PersistentVolumeClaimSpec, c *conversion.Cloner) error { - if in.AccessModes != nil { - in, out := in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AccessModes = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := DeepCopy_api_ResourceRequirements(in.Resources, &out.Resources, c); err != nil { - return err - } - out.VolumeName = in.VolumeName - return nil -} - -func DeepCopy_api_PersistentVolumeClaimStatus(in PersistentVolumeClaimStatus, out *PersistentVolumeClaimStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - if in.AccessModes != nil { - in, out := in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AccessModes = nil - } - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - return nil -} - -func DeepCopy_api_PersistentVolumeClaimVolumeSource(in PersistentVolumeClaimVolumeSource, out *PersistentVolumeClaimVolumeSource, c *conversion.Cloner) error { - out.ClaimName = in.ClaimName - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_PersistentVolumeList(in PersistentVolumeList, out *PersistentVolumeList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PersistentVolume, len(in)) - for i := range in { - if err := DeepCopy_api_PersistentVolume(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_PersistentVolumeSource(in PersistentVolumeSource, out *PersistentVolumeSource, c *conversion.Cloner) error { - if in.GCEPersistentDisk != nil { - in, out := in.GCEPersistentDisk, &out.GCEPersistentDisk - *out = new(GCEPersistentDiskVolumeSource) - **out = *in - } else { - out.GCEPersistentDisk = nil - } - if in.AWSElasticBlockStore != nil { - in, out := in.AWSElasticBlockStore, &out.AWSElasticBlockStore - *out = new(AWSElasticBlockStoreVolumeSource) - **out = *in - } else { - out.AWSElasticBlockStore = nil - } - if in.HostPath != nil { - in, out := in.HostPath, &out.HostPath - *out = new(HostPathVolumeSource) - **out = *in - } else { - out.HostPath = nil - } - if in.Glusterfs != nil { - in, out := in.Glusterfs, &out.Glusterfs - *out = new(GlusterfsVolumeSource) - **out = *in - } else { - out.Glusterfs = nil - } - if in.NFS != nil { - in, out := in.NFS, &out.NFS - *out = new(NFSVolumeSource) - **out = *in - } else { - out.NFS = nil - } - if in.RBD != nil { - in, out := in.RBD, &out.RBD - *out = new(RBDVolumeSource) - if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.RBD = nil - } - if in.ISCSI != nil { - in, out := in.ISCSI, &out.ISCSI - *out = new(ISCSIVolumeSource) - **out = *in - } else { - out.ISCSI = nil - } - if in.FlexVolume != nil { - in, out := in.FlexVolume, &out.FlexVolume - *out = new(FlexVolumeSource) - if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FlexVolume = nil - } - if in.Cinder != nil { - in, out := in.Cinder, &out.Cinder - *out = new(CinderVolumeSource) - **out = *in - } else { - out.Cinder = nil - } - if in.CephFS != nil { - in, out := in.CephFS, &out.CephFS - *out = new(CephFSVolumeSource) - if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.CephFS = nil - } - if in.FC != nil { - in, out := in.FC, &out.FC - *out = new(FCVolumeSource) - if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FC = nil - } - if in.Flocker != nil { - in, out := in.Flocker, &out.Flocker - *out = new(FlockerVolumeSource) - **out = *in - } else { - out.Flocker = nil - } - if in.AzureFile != nil { - in, out := in.AzureFile, &out.AzureFile - *out = new(AzureFileVolumeSource) - **out = *in - } else { - out.AzureFile = nil - } - if in.VsphereVolume != nil { - in, out := in.VsphereVolume, &out.VsphereVolume - *out = new(VsphereVirtualDiskVolumeSource) - **out = *in - } else { - out.VsphereVolume = nil - } - return nil -} - -func DeepCopy_api_PersistentVolumeSpec(in PersistentVolumeSpec, out *PersistentVolumeSpec, c *conversion.Cloner) error { - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - if err := DeepCopy_api_PersistentVolumeSource(in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { - return err - } - if in.AccessModes != nil { - in, out := in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AccessModes = nil - } - if in.ClaimRef != nil { - in, out := in.ClaimRef, &out.ClaimRef - *out = new(ObjectReference) - **out = *in - } else { - out.ClaimRef = nil - } - out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy - return nil -} - -func DeepCopy_api_PersistentVolumeStatus(in PersistentVolumeStatus, out *PersistentVolumeStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - out.Message = in.Message - out.Reason = in.Reason - return nil -} - -func DeepCopy_api_Pod(in Pod, out *Pod, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_PodSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_api_PodStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_PodAffinity(in PodAffinity, out *PodAffinity, c *conversion.Cloner) error { - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = make([]PodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_api_PodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]WeightedPodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_api_WeightedPodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } - return nil -} - -func DeepCopy_api_PodAffinityTerm(in PodAffinityTerm, out *PodAffinityTerm, c *conversion.Cloner) error { - if in.LabelSelector != nil { - in, out := in.LabelSelector, &out.LabelSelector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.LabelSelector = nil - } - if in.Namespaces != nil { - in, out := in.Namespaces, &out.Namespaces - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Namespaces = nil - } - out.TopologyKey = in.TopologyKey - return nil -} - -func DeepCopy_api_PodAntiAffinity(in PodAntiAffinity, out *PodAntiAffinity, c *conversion.Cloner) error { - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = make([]PodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_api_PodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]WeightedPodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_api_WeightedPodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } - return nil -} - -func DeepCopy_api_PodAttachOptions(in PodAttachOptions, out *PodAttachOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container - return nil -} - -func DeepCopy_api_PodCondition(in PodCondition, out *PodCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_api_PodExecOptions(in PodExecOptions, out *PodExecOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container - if in.Command != nil { - in, out := in.Command, &out.Command - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Command = nil - } - return nil -} - -func DeepCopy_api_PodList(in PodList, out *PodList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Pod, len(in)) - for i := range in { - if err := DeepCopy_api_Pod(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_PodLogOptions(in PodLogOptions, out *PodLogOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Container = in.Container - out.Follow = in.Follow - out.Previous = in.Previous - if in.SinceSeconds != nil { - in, out := in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = *in - } else { - out.SinceSeconds = nil - } - if in.SinceTime != nil { - in, out := in.SinceTime, &out.SinceTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.SinceTime = nil - } - out.Timestamps = in.Timestamps - if in.TailLines != nil { - in, out := in.TailLines, &out.TailLines - *out = new(int64) - **out = *in - } else { - out.TailLines = nil - } - if in.LimitBytes != nil { - in, out := in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = *in - } else { - out.LimitBytes = nil - } - return nil -} - -func DeepCopy_api_PodProxyOptions(in PodProxyOptions, out *PodProxyOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Path = in.Path - return nil -} - -func DeepCopy_api_PodSecurityContext(in PodSecurityContext, out *PodSecurityContext, c *conversion.Cloner) error { - out.HostNetwork = in.HostNetwork - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC - if in.SELinuxOptions != nil { - in, out := in.SELinuxOptions, &out.SELinuxOptions - *out = new(SELinuxOptions) - **out = *in - } else { - out.SELinuxOptions = nil - } - if in.RunAsUser != nil { - in, out := in.RunAsUser, &out.RunAsUser - *out = new(int64) - **out = *in - } else { - out.RunAsUser = nil - } - if in.RunAsNonRoot != nil { - in, out := in.RunAsNonRoot, &out.RunAsNonRoot - *out = new(bool) - **out = *in - } else { - out.RunAsNonRoot = nil - } - if in.SupplementalGroups != nil { - in, out := in.SupplementalGroups, &out.SupplementalGroups - *out = make([]int64, len(in)) - copy(*out, in) - } else { - out.SupplementalGroups = nil - } - if in.FSGroup != nil { - in, out := in.FSGroup, &out.FSGroup - *out = new(int64) - **out = *in - } else { - out.FSGroup = nil - } - return nil -} - -func DeepCopy_api_PodSpec(in PodSpec, out *PodSpec, c *conversion.Cloner) error { - if in.Volumes != nil { - in, out := in.Volumes, &out.Volumes - *out = make([]Volume, len(in)) - for i := range in { - if err := DeepCopy_api_Volume(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Volumes = nil - } - if in.InitContainers != nil { - in, out := in.InitContainers, &out.InitContainers - *out = make([]Container, len(in)) - for i := range in { - if err := DeepCopy_api_Container(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.InitContainers = nil - } - if in.Containers != nil { - in, out := in.Containers, &out.Containers - *out = make([]Container, len(in)) - for i := range in { - if err := DeepCopy_api_Container(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Containers = nil - } - out.RestartPolicy = in.RestartPolicy - if in.TerminationGracePeriodSeconds != nil { - in, out := in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds - *out = new(int64) - **out = *in - } else { - out.TerminationGracePeriodSeconds = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.ActiveDeadlineSeconds = nil - } - out.DNSPolicy = in.DNSPolicy - if in.NodeSelector != nil { - in, out := in.NodeSelector, &out.NodeSelector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.NodeSelector = nil - } - out.ServiceAccountName = in.ServiceAccountName - out.NodeName = in.NodeName - if in.SecurityContext != nil { - in, out := in.SecurityContext, &out.SecurityContext - *out = new(PodSecurityContext) - if err := DeepCopy_api_PodSecurityContext(*in, *out, c); err != nil { - return err - } - } else { - out.SecurityContext = nil - } - if in.ImagePullSecrets != nil { - in, out := in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]LocalObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ImagePullSecrets = nil - } - out.Hostname = in.Hostname - out.Subdomain = in.Subdomain - return nil -} - -func DeepCopy_api_PodStatus(in PodStatus, out *PodStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]PodCondition, len(in)) - for i := range in { - if err := DeepCopy_api_PodCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.Message = in.Message - out.Reason = in.Reason - out.HostIP = in.HostIP - out.PodIP = in.PodIP - if in.StartTime != nil { - in, out := in.StartTime, &out.StartTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.StartTime = nil - } - if in.InitContainerStatuses != nil { - in, out := in.InitContainerStatuses, &out.InitContainerStatuses - *out = make([]ContainerStatus, len(in)) - for i := range in { - if err := DeepCopy_api_ContainerStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.InitContainerStatuses = nil - } - if in.ContainerStatuses != nil { - in, out := in.ContainerStatuses, &out.ContainerStatuses - *out = make([]ContainerStatus, len(in)) - for i := range in { - if err := DeepCopy_api_ContainerStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.ContainerStatuses = nil - } - return nil -} - -func DeepCopy_api_PodStatusResult(in PodStatusResult, out *PodStatusResult, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_PodStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_PodTemplate(in PodTemplate, out *PodTemplate, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_PodTemplateList(in PodTemplateList, out *PodTemplateList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PodTemplate, len(in)) - for i := range in { - if err := DeepCopy_api_PodTemplate(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_PodTemplateSpec(in PodTemplateSpec, out *PodTemplateSpec, c *conversion.Cloner) error { - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_PodSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_Preconditions(in Preconditions, out *Preconditions, c *conversion.Cloner) error { - if in.UID != nil { - in, out := in.UID, &out.UID - *out = new(types.UID) - **out = *in - } else { - out.UID = nil - } - return nil -} - -func DeepCopy_api_PreferredSchedulingTerm(in PreferredSchedulingTerm, out *PreferredSchedulingTerm, c *conversion.Cloner) error { - out.Weight = in.Weight - if err := DeepCopy_api_NodeSelectorTerm(in.Preference, &out.Preference, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_Probe(in Probe, out *Probe, c *conversion.Cloner) error { - if err := DeepCopy_api_Handler(in.Handler, &out.Handler, c); err != nil { - return err - } - out.InitialDelaySeconds = in.InitialDelaySeconds - out.TimeoutSeconds = in.TimeoutSeconds - out.PeriodSeconds = in.PeriodSeconds - out.SuccessThreshold = in.SuccessThreshold - out.FailureThreshold = in.FailureThreshold - return nil -} - -func DeepCopy_api_RBDVolumeSource(in RBDVolumeSource, out *RBDVolumeSource, c *conversion.Cloner) error { - if in.CephMonitors != nil { - in, out := in.CephMonitors, &out.CephMonitors - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.CephMonitors = nil - } - out.RBDImage = in.RBDImage - out.FSType = in.FSType - out.RBDPool = in.RBDPool - out.RadosUser = in.RadosUser - out.Keyring = in.Keyring - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_api_RangeAllocation(in RangeAllocation, out *RangeAllocation, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Range = in.Range - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Data = nil - } - return nil -} - -func DeepCopy_api_ReplicationController(in ReplicationController, out *ReplicationController, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_ReplicationControllerSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_api_ReplicationControllerList(in ReplicationControllerList, out *ReplicationControllerList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ReplicationController, len(in)) - for i := range in { - if err := DeepCopy_api_ReplicationController(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ReplicationControllerSpec(in ReplicationControllerSpec, out *ReplicationControllerSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Selector = nil - } - if in.Template != nil { - in, out := in.Template, &out.Template - *out = new(PodTemplateSpec) - if err := DeepCopy_api_PodTemplateSpec(*in, *out, c); err != nil { - return err - } - } else { - out.Template = nil - } - return nil -} - -func DeepCopy_api_ReplicationControllerStatus(in ReplicationControllerStatus, out *ReplicationControllerStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ObservedGeneration = in.ObservedGeneration - return nil -} - -func DeepCopy_api_ResourceFieldSelector(in ResourceFieldSelector, out *ResourceFieldSelector, c *conversion.Cloner) error { - out.ContainerName = in.ContainerName - out.Resource = in.Resource - out.Divisor = in.Divisor.DeepCopy() - return nil -} - -func DeepCopy_api_ResourceQuota(in ResourceQuota, out *ResourceQuota, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_ResourceQuotaSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_api_ResourceQuotaStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_ResourceQuotaList(in ResourceQuotaList, out *ResourceQuotaList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ResourceQuota, len(in)) - for i := range in { - if err := DeepCopy_api_ResourceQuota(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ResourceQuotaSpec(in ResourceQuotaSpec, out *ResourceQuotaSpec, c *conversion.Cloner) error { - if in.Hard != nil { - in, out := in.Hard, &out.Hard - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Hard = nil - } - if in.Scopes != nil { - in, out := in.Scopes, &out.Scopes - *out = make([]ResourceQuotaScope, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Scopes = nil - } - return nil -} - -func DeepCopy_api_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuotaStatus, c *conversion.Cloner) error { - if in.Hard != nil { - in, out := in.Hard, &out.Hard - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Hard = nil - } - if in.Used != nil { - in, out := in.Used, &out.Used - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Used = nil - } - return nil -} - -func DeepCopy_api_ResourceRequirements(in ResourceRequirements, out *ResourceRequirements, c *conversion.Cloner) error { - if in.Limits != nil { - in, out := in.Limits, &out.Limits - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Limits = nil - } - if in.Requests != nil { - in, out := in.Requests, &out.Requests - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Requests = nil - } - return nil -} - -func DeepCopy_api_SELinuxOptions(in SELinuxOptions, out *SELinuxOptions, c *conversion.Cloner) error { - out.User = in.User - out.Role = in.Role - out.Type = in.Type - out.Level = in.Level - return nil -} - -func DeepCopy_api_Secret(in Secret, out *Secret, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make(map[string][]byte) - for key, val := range in { - if newVal, err := c.DeepCopy(val); err != nil { - return err - } else { - (*out)[key] = newVal.([]byte) - } - } - } else { - out.Data = nil - } - out.Type = in.Type - return nil -} - -func DeepCopy_api_SecretKeySelector(in SecretKeySelector, out *SecretKeySelector, c *conversion.Cloner) error { - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key - return nil -} - -func DeepCopy_api_SecretList(in SecretList, out *SecretList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Secret, len(in)) - for i := range in { - if err := DeepCopy_api_Secret(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_SecretVolumeSource(in SecretVolumeSource, out *SecretVolumeSource, c *conversion.Cloner) error { - out.SecretName = in.SecretName - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]KeyToPath, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_SecurityContext(in SecurityContext, out *SecurityContext, c *conversion.Cloner) error { - if in.Capabilities != nil { - in, out := in.Capabilities, &out.Capabilities - *out = new(Capabilities) - if err := DeepCopy_api_Capabilities(*in, *out, c); err != nil { - return err - } - } else { - out.Capabilities = nil - } - if in.Privileged != nil { - in, out := in.Privileged, &out.Privileged - *out = new(bool) - **out = *in - } else { - out.Privileged = nil - } - if in.SELinuxOptions != nil { - in, out := in.SELinuxOptions, &out.SELinuxOptions - *out = new(SELinuxOptions) - **out = *in - } else { - out.SELinuxOptions = nil - } - if in.RunAsUser != nil { - in, out := in.RunAsUser, &out.RunAsUser - *out = new(int64) - **out = *in - } else { - out.RunAsUser = nil - } - if in.RunAsNonRoot != nil { - in, out := in.RunAsNonRoot, &out.RunAsNonRoot - *out = new(bool) - **out = *in - } else { - out.RunAsNonRoot = nil - } - if in.ReadOnlyRootFilesystem != nil { - in, out := in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem - *out = new(bool) - **out = *in - } else { - out.ReadOnlyRootFilesystem = nil - } - return nil -} - -func DeepCopy_api_SerializedReference(in SerializedReference, out *SerializedReference, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Reference = in.Reference - return nil -} - -func DeepCopy_api_Service(in Service, out *Service, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_api_ServiceSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_api_ServiceStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_ServiceAccount(in ServiceAccount, out *ServiceAccount, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Secrets != nil { - in, out := in.Secrets, &out.Secrets - *out = make([]ObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Secrets = nil - } - if in.ImagePullSecrets != nil { - in, out := in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]LocalObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ImagePullSecrets = nil - } - return nil -} - -func DeepCopy_api_ServiceAccountList(in ServiceAccountList, out *ServiceAccountList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ServiceAccount, len(in)) - for i := range in { - if err := DeepCopy_api_ServiceAccount(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ServiceList(in ServiceList, out *ServiceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Service, len(in)) - for i := range in { - if err := DeepCopy_api_Service(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_api_ServicePort(in ServicePort, out *ServicePort, c *conversion.Cloner) error { - out.Name = in.Name - out.Protocol = in.Protocol - out.Port = in.Port - out.TargetPort = in.TargetPort - out.NodePort = in.NodePort - return nil -} - -func DeepCopy_api_ServiceProxyOptions(in ServiceProxyOptions, out *ServiceProxyOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Path = in.Path - return nil -} - -func DeepCopy_api_ServiceSpec(in ServiceSpec, out *ServiceSpec, c *conversion.Cloner) error { - out.Type = in.Type - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]ServicePort, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ports = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Selector = nil - } - out.ClusterIP = in.ClusterIP - if in.ExternalIPs != nil { - in, out := in.ExternalIPs, &out.ExternalIPs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.ExternalIPs = nil - } - out.LoadBalancerIP = in.LoadBalancerIP - out.SessionAffinity = in.SessionAffinity - if in.LoadBalancerSourceRanges != nil { - in, out := in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.LoadBalancerSourceRanges = nil - } - return nil -} - -func DeepCopy_api_ServiceStatus(in ServiceStatus, out *ServiceStatus, c *conversion.Cloner) error { - if err := DeepCopy_api_LoadBalancerStatus(in.LoadBalancer, &out.LoadBalancer, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_TCPSocketAction(in TCPSocketAction, out *TCPSocketAction, c *conversion.Cloner) error { - out.Port = in.Port - return nil -} - -func DeepCopy_api_Taint(in Taint, out *Taint, c *conversion.Cloner) error { - out.Key = in.Key - out.Value = in.Value - out.Effect = in.Effect - return nil -} - -func DeepCopy_api_Toleration(in Toleration, out *Toleration, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - out.Value = in.Value - out.Effect = in.Effect - return nil -} - -func DeepCopy_api_Volume(in Volume, out *Volume, c *conversion.Cloner) error { - out.Name = in.Name - if err := DeepCopy_api_VolumeSource(in.VolumeSource, &out.VolumeSource, c); err != nil { - return err - } - return nil -} - -func DeepCopy_api_VolumeMount(in VolumeMount, out *VolumeMount, c *conversion.Cloner) error { - out.Name = in.Name - out.ReadOnly = in.ReadOnly - out.MountPath = in.MountPath - out.SubPath = in.SubPath - return nil -} - -func DeepCopy_api_VolumeSource(in VolumeSource, out *VolumeSource, c *conversion.Cloner) error { - if in.HostPath != nil { - in, out := in.HostPath, &out.HostPath - *out = new(HostPathVolumeSource) - **out = *in - } else { - out.HostPath = nil - } - if in.EmptyDir != nil { - in, out := in.EmptyDir, &out.EmptyDir - *out = new(EmptyDirVolumeSource) - **out = *in - } else { - out.EmptyDir = nil - } - if in.GCEPersistentDisk != nil { - in, out := in.GCEPersistentDisk, &out.GCEPersistentDisk - *out = new(GCEPersistentDiskVolumeSource) - **out = *in - } else { - out.GCEPersistentDisk = nil - } - if in.AWSElasticBlockStore != nil { - in, out := in.AWSElasticBlockStore, &out.AWSElasticBlockStore - *out = new(AWSElasticBlockStoreVolumeSource) - **out = *in - } else { - out.AWSElasticBlockStore = nil - } - if in.GitRepo != nil { - in, out := in.GitRepo, &out.GitRepo - *out = new(GitRepoVolumeSource) - **out = *in - } else { - out.GitRepo = nil - } - if in.Secret != nil { - in, out := in.Secret, &out.Secret - *out = new(SecretVolumeSource) - if err := DeepCopy_api_SecretVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.Secret = nil - } - if in.NFS != nil { - in, out := in.NFS, &out.NFS - *out = new(NFSVolumeSource) - **out = *in - } else { - out.NFS = nil - } - if in.ISCSI != nil { - in, out := in.ISCSI, &out.ISCSI - *out = new(ISCSIVolumeSource) - **out = *in - } else { - out.ISCSI = nil - } - if in.Glusterfs != nil { - in, out := in.Glusterfs, &out.Glusterfs - *out = new(GlusterfsVolumeSource) - **out = *in - } else { - out.Glusterfs = nil - } - if in.PersistentVolumeClaim != nil { - in, out := in.PersistentVolumeClaim, &out.PersistentVolumeClaim - *out = new(PersistentVolumeClaimVolumeSource) - **out = *in - } else { - out.PersistentVolumeClaim = nil - } - if in.RBD != nil { - in, out := in.RBD, &out.RBD - *out = new(RBDVolumeSource) - if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.RBD = nil - } - if in.FlexVolume != nil { - in, out := in.FlexVolume, &out.FlexVolume - *out = new(FlexVolumeSource) - if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FlexVolume = nil - } - if in.Cinder != nil { - in, out := in.Cinder, &out.Cinder - *out = new(CinderVolumeSource) - **out = *in - } else { - out.Cinder = nil - } - if in.CephFS != nil { - in, out := in.CephFS, &out.CephFS - *out = new(CephFSVolumeSource) - if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.CephFS = nil - } - if in.Flocker != nil { - in, out := in.Flocker, &out.Flocker - *out = new(FlockerVolumeSource) - **out = *in - } else { - out.Flocker = nil - } - if in.DownwardAPI != nil { - in, out := in.DownwardAPI, &out.DownwardAPI - *out = new(DownwardAPIVolumeSource) - if err := DeepCopy_api_DownwardAPIVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.DownwardAPI = nil - } - if in.FC != nil { - in, out := in.FC, &out.FC - *out = new(FCVolumeSource) - if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FC = nil - } - if in.AzureFile != nil { - in, out := in.AzureFile, &out.AzureFile - *out = new(AzureFileVolumeSource) - **out = *in - } else { - out.AzureFile = nil - } - if in.ConfigMap != nil { - in, out := in.ConfigMap, &out.ConfigMap - *out = new(ConfigMapVolumeSource) - if err := DeepCopy_api_ConfigMapVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.ConfigMap = nil - } - if in.VsphereVolume != nil { - in, out := in.VsphereVolume, &out.VsphereVolume - *out = new(VsphereVirtualDiskVolumeSource) - **out = *in - } else { - out.VsphereVolume = nil - } - return nil -} - -func DeepCopy_api_VsphereVirtualDiskVolumeSource(in VsphereVirtualDiskVolumeSource, out *VsphereVirtualDiskVolumeSource, c *conversion.Cloner) error { - out.VolumePath = in.VolumePath - out.FSType = in.FSType - return nil -} - -func DeepCopy_api_WeightedPodAffinityTerm(in WeightedPodAffinityTerm, out *WeightedPodAffinityTerm, c *conversion.Cloner) error { - out.Weight = in.Weight - if err := DeepCopy_api_PodAffinityTerm(in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { - return err - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/defaults.go new file mode 100644 index 0000000000..a2b01b7fd6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/defaults.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 api + +import ( + "k8s.io/kubernetes/pkg/fields" + "k8s.io/kubernetes/pkg/labels" + "k8s.io/kubernetes/pkg/runtime" +) + +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( + func(obj *ListOptions) { + if obj.LabelSelector == nil { + obj.LabelSelector = labels.Everything() + } + if obj.FieldSelector == nil { + obj.FieldSelector = fields.Everything() + } + }, + ) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/errors/errors.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/errors/errors.go index a51fe94146..432bbed855 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/errors/errors.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/helpers.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/helpers.go index ca873b3096..50e811b352 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/helpers.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/helpers.go @@ -30,6 +30,7 @@ import ( "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/selection" "k8s.io/kubernetes/pkg/types" "k8s.io/kubernetes/pkg/util/sets" @@ -134,6 +135,7 @@ var standardQuotaResources = sets.NewString( string(ResourceMemory), string(ResourceRequestsCPU), string(ResourceRequestsMemory), + string(ResourceRequestsStorage), string(ResourceLimitsCPU), string(ResourceLimitsMemory), string(ResourcePods), @@ -221,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 == "" } @@ -378,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) } @@ -428,19 +434,38 @@ const ( // CreatedByAnnotation represents the key used to store the spec(json) // used to create the resource. CreatedByAnnotation = "kubernetes.io/created-by" + + // 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 // and converts it to the Affinity type in api. -func GetAffinityFromPodAnnotations(annotations map[string]string) (Affinity, error) { - var affinity Affinity +func GetAffinityFromPodAnnotations(annotations map[string]string) (*Affinity, error) { if len(annotations) > 0 && annotations[AffinityAnnotationKey] != "" { + var affinity Affinity err := json.Unmarshal([]byte(annotations[AffinityAnnotationKey]), &affinity) if err != nil { - return affinity, err + return nil, err } + return &affinity, nil } - return affinity, nil + return nil, nil } // GetTolerationsFromPodAnnotations gets the json serialized tolerations data from Pod.Annotations @@ -500,3 +525,62 @@ func TaintToleratedByTolerations(taint *Taint, tolerations []Toleration) bool { } return tolerated } + +func GetAvoidPodsFromNodeAnnotations(annotations map[string]string) (AvoidPods, error) { + var avoidPods AvoidPods + if len(annotations) > 0 && annotations[PreferAvoidPodsAnnotationKey] != "" { + err := json.Unmarshal([]byte(annotations[PreferAvoidPodsAnnotationKey]), &avoidPods) + if err != nil { + return avoidPods, err + } + } + 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/ingress/vendor/k8s.io/kubernetes/pkg/api/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/install/install.go index 937920d28a..0cc911e739 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/install/install.go @@ -29,10 +29,8 @@ import ( "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/apimachinery" "k8s.io/kubernetes/pkg/apimachinery/registered" - "k8s.io/kubernetes/pkg/conversion" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/util/sets" - "k8s.io/kubernetes/pkg/watch/versioned" ) const importPrefix = "k8s.io/kubernetes/pkg/api" @@ -140,7 +138,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - api.AddToScheme(api.Scheme) + if err := api.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -149,103 +150,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1.SchemeGroupVersion: - v1.AddToScheme(api.Scheme) - } - } - - // This is a "fast-path" that avoids reflection for common types. It focuses on the objects that are - // converted the most in the cluster. - // TODO: generate one of these for every external API group - this is to prove the impact - api.Scheme.AddGenericConversionFunc(func(objA, objB interface{}, s conversion.Scope) (bool, error) { - switch a := objA.(type) { - case *v1.Pod: - switch b := objB.(type) { - case *api.Pod: - return true, v1.Convert_v1_Pod_To_api_Pod(a, b, s) - } - case *api.Pod: - switch b := objB.(type) { - case *v1.Pod: - return true, v1.Convert_api_Pod_To_v1_Pod(a, b, s) - } - - case *v1.Event: - switch b := objB.(type) { - case *api.Event: - return true, v1.Convert_v1_Event_To_api_Event(a, b, s) - } - case *api.Event: - switch b := objB.(type) { - case *v1.Event: - return true, v1.Convert_api_Event_To_v1_Event(a, b, s) - } - - case *v1.ReplicationController: - switch b := objB.(type) { - case *api.ReplicationController: - return true, v1.Convert_v1_ReplicationController_To_api_ReplicationController(a, b, s) - } - case *api.ReplicationController: - switch b := objB.(type) { - case *v1.ReplicationController: - return true, v1.Convert_api_ReplicationController_To_v1_ReplicationController(a, b, s) - } - - case *v1.Node: - switch b := objB.(type) { - case *api.Node: - return true, v1.Convert_v1_Node_To_api_Node(a, b, s) - } - case *api.Node: - switch b := objB.(type) { - case *v1.Node: - return true, v1.Convert_api_Node_To_v1_Node(a, b, s) - } - - case *v1.Namespace: - switch b := objB.(type) { - case *api.Namespace: - return true, v1.Convert_v1_Namespace_To_api_Namespace(a, b, s) - } - case *api.Namespace: - switch b := objB.(type) { - case *v1.Namespace: - return true, v1.Convert_api_Namespace_To_v1_Namespace(a, b, s) - } - - case *v1.Service: - switch b := objB.(type) { - case *api.Service: - return true, v1.Convert_v1_Service_To_api_Service(a, b, s) - } - case *api.Service: - switch b := objB.(type) { - case *v1.Service: - return true, v1.Convert_api_Service_To_v1_Service(a, b, s) - } - - case *v1.Endpoints: - switch b := objB.(type) { - case *api.Endpoints: - return true, v1.Convert_v1_Endpoints_To_api_Endpoints(a, b, s) - } - case *api.Endpoints: - switch b := objB.(type) { - case *v1.Endpoints: - return true, v1.Convert_api_Endpoints_To_v1_Endpoints(a, b, s) - } - - case *versioned.Event: - switch b := objB.(type) { - case *versioned.InternalEvent: - return true, versioned.Convert_versioned_Event_to_versioned_InternalEvent(a, b, s) - } - case *versioned.InternalEvent: - switch b := objB.(type) { - case *versioned.Event: - return true, versioned.Convert_versioned_InternalEvent_to_versioned_Event(a, b, s) + if err := v1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) } } - return false, nil - }) + } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/mapper.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/mapper.go index 60addca7f2..c5876b8cad 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/mapper.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/mapper.go @@ -21,6 +21,7 @@ import ( "k8s.io/kubernetes/pkg/api/meta" "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/util/sets" ) @@ -34,14 +35,21 @@ func RegisterRESTMapper(m meta.RESTMapper) { RESTMapper = append(RESTMapper.(meta.MultiRESTMapper), m) } +// Instantiates a DefaultRESTMapper based on types registered in api.Scheme func NewDefaultRESTMapper(defaultGroupVersions []unversioned.GroupVersion, interfacesFunc meta.VersionInterfacesFunc, importPathPrefix string, ignoredKinds, rootScoped sets.String) *meta.DefaultRESTMapper { + return NewDefaultRESTMapperFromScheme(defaultGroupVersions, interfacesFunc, importPathPrefix, ignoredKinds, rootScoped, Scheme) +} + +// Instantiates a DefaultRESTMapper based on types registered in the given scheme. +func NewDefaultRESTMapperFromScheme(defaultGroupVersions []unversioned.GroupVersion, interfacesFunc meta.VersionInterfacesFunc, + importPathPrefix string, ignoredKinds, rootScoped sets.String, scheme *runtime.Scheme) *meta.DefaultRESTMapper { mapper := meta.NewDefaultRESTMapper(defaultGroupVersions, interfacesFunc) // enumerate all supported versions, get the kinds, and register with the mapper how to address // our resources. for _, gv := range defaultGroupVersions { - for kind, oType := range Scheme.KnownTypes(gv) { + for kind, oType := range scheme.KnownTypes(gv) { gvk := gv.WithKind(kind) // TODO: Remove import path check. // We check the import path because we currently stuff both "api" and "extensions" objects diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta.go index 77793593c1..a05d694435 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta.go @@ -23,13 +23,19 @@ import ( "k8s.io/kubernetes/pkg/conversion" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/types" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/uuid" ) // FillObjectMetaSystemFields populates fields that are managed by the system on ObjectMeta. func FillObjectMetaSystemFields(ctx Context, meta *ObjectMeta) { meta.CreationTimestamp = unversioned.Now() - meta.UID = util.NewUUID() + // allows admission controllers to assign a UID earlier in the request processing + // to support tracking resources pending creation. + uid, found := UIDFrom(ctx) + if !found { + uid = uuid.NewUUID() + } + meta.UID = uid meta.SelfLink = "" } @@ -67,8 +73,6 @@ func ListMetaFor(obj runtime.Object) (*unversioned.ListMeta, error) { func (obj *ObjectMeta) GetObjectMeta() meta.Object { return obj } -func (obj *ObjectReference) GetObjectKind() unversioned.ObjectKind { return obj } - // Namespace implements meta.Object for any object with an ObjectMeta typed field. Allows // fast, direct access to metadata fields for API objects. func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace } @@ -127,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/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/errors.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/errors.go index dc4ec07a37..70452965e5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/errors.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/errors.go @@ -38,19 +38,40 @@ func (e *AmbiguousResourceError) Error() string { return fmt.Sprintf("%v matches multiple kinds %v", e.PartialResource, e.MatchingKinds) case len(e.MatchingResources) > 0: return fmt.Sprintf("%v matches multiple resources %v", e.PartialResource, e.MatchingResources) - } - return fmt.Sprintf("%v matches multiple resources or kinds", e.PartialResource) } -func IsAmbiguousResourceError(err error) bool { +// AmbiguousKindError is returned if the RESTMapper finds multiple matches for a kind +type AmbiguousKindError struct { + PartialKind unversioned.GroupVersionKind + + MatchingResources []unversioned.GroupVersionResource + MatchingKinds []unversioned.GroupVersionKind +} + +func (e *AmbiguousKindError) Error() string { + switch { + case len(e.MatchingKinds) > 0 && len(e.MatchingResources) > 0: + return fmt.Sprintf("%v matches multiple resources %v and kinds %v", e.PartialKind, e.MatchingResources, e.MatchingKinds) + case len(e.MatchingKinds) > 0: + return fmt.Sprintf("%v matches multiple kinds %v", e.PartialKind, e.MatchingKinds) + case len(e.MatchingResources) > 0: + return fmt.Sprintf("%v matches multiple resources %v", e.PartialKind, e.MatchingResources) + } + return fmt.Sprintf("%v matches multiple resources or kinds", e.PartialKind) +} + +func IsAmbiguousError(err error) bool { if err == nil { return false } - - _, ok := err.(*AmbiguousResourceError) - return ok + switch err.(type) { + case *AmbiguousResourceError, *AmbiguousKindError: + return true + default: + return false + } } // NoResourceMatchError is returned if the RESTMapper can't find any match for a resource @@ -62,11 +83,23 @@ func (e *NoResourceMatchError) Error() string { return fmt.Sprintf("no matches for %v", e.PartialResource) } -func IsNoResourceMatchError(err error) bool { +// NoKindMatchError is returned if the RESTMapper can't find any match for a kind +type NoKindMatchError struct { + PartialKind unversioned.GroupVersionKind +} + +func (e *NoKindMatchError) Error() string { + return fmt.Sprintf("no matches for %v", e.PartialKind) +} + +func IsNoMatchError(err error) bool { if err == nil { return false } - - _, ok := err.(*NoResourceMatchError) - return ok + switch err.(type) { + case *NoResourceMatchError, *NoKindMatchError: + return true + default: + return false + } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/interfaces.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/interfaces.go index 34c51e39b8..a12c707614 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/interfaces.go +++ b/ingress/vendor/k8s.io/kubernetes/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{} @@ -173,7 +175,10 @@ type RESTMapper interface { // ResourcesFor takes a partial resource and returns back the list of potential resource in priority order ResourcesFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + // RESTMapping identifies a preferred resource mapping for the provided group kind. RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) + // RESTMappings returns all resource mappings for the provided group kind. + RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) AliasesForResource(resource string) ([]string, bool) ResourceSingularizer(resource string) (singular string, err error) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/multirestmapper.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/multirestmapper.go index 790795a281..7b239e0340 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/multirestmapper.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/multirestmapper.go @@ -56,7 +56,7 @@ func (m MultiRESTMapper) ResourcesFor(resource unversioned.GroupVersionResource) for _, t := range m { gvrs, err := t.ResourcesFor(resource) // ignore "no match" errors, but any other error percolates back up - if IsNoResourceMatchError(err) { + if IsNoMatchError(err) { continue } if err != nil { @@ -91,7 +91,7 @@ func (m MultiRESTMapper) KindsFor(resource unversioned.GroupVersionResource) (gv for _, t := range m { gvks, err := t.KindsFor(resource) // ignore "no match" errors, but any other error percolates back up - if IsNoResourceMatchError(err) { + if IsNoMatchError(err) { continue } if err != nil { @@ -155,7 +155,7 @@ func (m MultiRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...strin for _, t := range m { currMapping, err := t.RESTMapping(gk, versions...) // ignore "no match" errors, but any other error percolates back up - if IsNoResourceMatchError(err) { + if IsNoMatchError(err) { continue } if err != nil { @@ -171,12 +171,43 @@ func (m MultiRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...strin return allMappings[0], nil } if len(allMappings) > 1 { - return nil, fmt.Errorf("multiple matches found for %v in %v", gk, versions) + var kinds []unversioned.GroupVersionKind + for _, m := range allMappings { + kinds = append(kinds, m.GroupVersionKind) + } + return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} } if len(errors) > 0 { return nil, utilerrors.NewAggregate(errors) } - return nil, fmt.Errorf("no match found for %v in %v", gk, versions) + return nil, &NoKindMatchError{PartialKind: gk.WithVersion("")} +} + +// RESTMappings returns all possible RESTMappings for the provided group kind, or an error +// if the type is not recognized. +func (m MultiRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) { + var allMappings []*RESTMapping + var errors []error + + for _, t := range m { + currMappings, err := t.RESTMappings(gk) + // ignore "no match" errors, but any other error percolates back up + if IsNoMatchError(err) { + continue + } + if err != nil { + errors = append(errors, err) + continue + } + allMappings = append(allMappings, currMappings...) + } + if len(errors) > 0 { + return nil, utilerrors.NewAggregate(errors) + } + if len(allMappings) == 0 { + return nil, &NoKindMatchError{PartialKind: gk.WithVersion("")} + } + return allMappings, nil } // AliasesForResource finds the first alias response for the provided mappers. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/priority.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/priority.go index 1e44e45f65..2e460609d1 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/priority.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/priority.go @@ -153,7 +153,60 @@ func kindMatches(pattern unversioned.GroupVersionKind, kind unversioned.GroupVer } func (m PriorityRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (mapping *RESTMapping, err error) { - return m.Delegate.RESTMapping(gk, versions...) + mappings, err := m.Delegate.RESTMappings(gk) + if err != nil { + return nil, err + } + + // any versions the user provides take priority + priorities := m.KindPriority + if len(versions) > 0 { + priorities = make([]unversioned.GroupVersionKind, 0, len(m.KindPriority)+len(versions)) + for _, version := range versions { + gv, err := unversioned.ParseGroupVersion(version) + if err != nil { + return nil, err + } + priorities = append(priorities, gv.WithKind(AnyKind)) + } + priorities = append(priorities, m.KindPriority...) + } + + remaining := append([]*RESTMapping{}, mappings...) + for _, pattern := range priorities { + var matching []*RESTMapping + for _, m := range remaining { + if kindMatches(pattern, m.GroupVersionKind) { + matching = append(matching, m) + } + } + + switch len(matching) { + case 0: + // if you have no matches, then nothing matched this pattern just move to the next + continue + case 1: + // one match, return + return matching[0], nil + default: + // more than one match, use the matched hits as the list moving to the next pattern. + // this way you can have a series of selection criteria + remaining = matching + } + } + if len(remaining) == 1 { + return remaining[0], nil + } + + var kinds []unversioned.GroupVersionKind + for _, m := range mappings { + kinds = append(kinds, m.GroupVersionKind) + } + return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} +} + +func (m PriorityRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) { + return m.Delegate.RESTMappings(gk) } func (m PriorityRESTMapper) AliasesForResource(alias string) (aliases []string, ok bool) { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/restmapper.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/restmapper.go index bf2567ea6e..d95d49385d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/restmapper.go +++ b/ingress/vendor/k8s.io/kubernetes/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) } @@ -431,6 +431,7 @@ func (o resourceByPreferredGroupVersion) Less(i, j int) bool { // RESTClient should use to operate on the provided group/kind in order of versions. If a version search // order is not provided, the search order provided to DefaultRESTMapper will be used to resolve which // version should be used to access the named group/kind. +// TODO: consider refactoring to use RESTMappings in a way that preserves version ordering and preference func (m *DefaultRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) { // Pick an appropriate version var gvk *unversioned.GroupVersionKind @@ -462,7 +463,7 @@ func (m *DefaultRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...st } } if gvk == nil { - return nil, fmt.Errorf("no kind named %q is registered in versions %q", gk, versions) + return nil, &NoKindMatchError{PartialKind: gk.WithVersion("")} } // Ensure we have a REST mapping @@ -503,6 +504,49 @@ func (m *DefaultRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...st return retVal, nil } +// RESTMappings returns the RESTMappings for the provided group kind in a rough internal preferred order. If no +// kind is found it will return a NoResourceMatchError. +func (m *DefaultRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) { + // Use the default preferred versions + var mappings []*RESTMapping + for _, gv := range m.defaultGroupVersions { + if gv.Group != gk.Group { + continue + } + + gvk := gk.WithVersion(gv.Version) + gvr, ok := m.kindToPluralResource[gvk] + if !ok { + continue + } + + // Ensure we have a REST scope + scope, ok := m.kindToScope[gvk] + if !ok { + return nil, fmt.Errorf("the provided version %q and kind %q cannot be mapped to a supported scope", gvk.GroupVersion(), gvk.Kind) + } + + interfaces, err := m.interfacesFunc(gvk.GroupVersion()) + if err != nil { + return nil, fmt.Errorf("the provided version %q has no relevant versions", gvk.GroupVersion().String()) + } + + mappings = append(mappings, &RESTMapping{ + Resource: gvr.Resource, + GroupVersionKind: gvk, + Scope: scope, + + ObjectConvertor: interfaces.ObjectConvertor, + MetadataAccessor: interfaces.MetadataAccessor, + }) + } + + if len(mappings) == 0 { + return nil, &NoResourceMatchError{PartialResource: unversioned.GroupVersionResource{Group: gk.Group, Resource: gk.Kind}} + } + return mappings, nil +} + // AddResourceAlias maps aliases to resources func (m *DefaultRESTMapper) AddResourceAlias(alias string, resources ...string) { if len(resources) == 0 { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/unstructured.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/meta/unstructured.go new file mode 100644 index 0000000000..784cbf05c3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/pod_example.json b/ingress/vendor/k8s.io/kubernetes/pkg/api/pod_example.json deleted file mode 100644 index 8284240a22..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/pod_example.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "kind": "Pod", - "apiVersion": "v1", - "metadata": { - "name": "etcd-server-e2e-test-wojtekt-master", - "namespace": "default", - "selfLink": "/api/v1/namespaces/default/pods/etcd-server-e2e-test-wojtekt-master", - "uid": "a671734a-e8e5-11e4-8fde-42010af09327", - "resourceVersion": "22", - "creationTimestamp": "2015-04-22T11:49:36Z", - "annotations": { - "kubernetes.io/config.mirror": "mirror", - "kubernetes.io/config.source": "file" - } - }, - "spec": { - "volumes": [ - { - "name": "varetcd", - "hostPath": { - "path": "/mnt/master-pd/var/etcd" - }, - "emptyDir": null, - "gcePersistentDisk": null, - "awsElasticBlockStore": null, - "gitRepo": null, - "secret": null, - "nfs": null, - "iscsi": null, - "glusterfs": null - } - ], - "containers": [ - { - "name": "etcd-container", - "image": "gcr.io/google_containers/etcd:2.0.9", - "command": [ - "/usr/local/bin/etcd", - "--addr", - "127.0.0.1:4001", - "--bind-addr", - "127.0.0.1:4001", - "--data-dir", - "/var/etcd/data" - ], - "ports": [ - { - "name": "serverport", - "hostPort": 2380, - "containerPort": 2380, - "protocol": "TCP" - }, - { - "name": "clientport", - "hostPort": 4001, - "containerPort": 4001, - "protocol": "TCP" - } - ], - "resources": {}, - "volumeMounts": [ - { - "name": "varetcd", - "mountPath": "/var/etcd" - } - ], - "terminationMessagePath": "/dev/termination-log", - "imagePullPolicy": "IfNotPresent", - "capabilities": {} - } - ], - "restartPolicy": "Always", - "dnsPolicy": "ClusterFirst", - "nodeName": "e2e-test-wojtekt-master", - "hostNetwork": true - }, - "status": { - "phase": "Running", - "conditions": [ - { - "type": "Ready", - "status": "True" - } - ], - "containerStatuses": [ - { - "name": "etcd-container", - "state": { - "running": { - "startedAt": "2015-04-22T11:49:32Z" - } - }, - "lastState": {}, - "ready": true, - "restartCount": 0, - "image": "gcr.io/google_containers/etcd:2.0.9", - "imageID": "docker://b6b9a86dc06aa1361357ca1b105feba961f6a4145adca6c54e142c0be0fe87b0", - "containerID": "docker://3cbbf818f1addfc252957b4504f56ef2907a313fe6afc47fc75373674255d46d" - } - ] - } -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/ref.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/ref.go index b864593a0a..443343a97c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/ref.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/ref.go @@ -128,3 +128,5 @@ func (obj *ObjectReference) SetGroupVersionKind(gvk unversioned.GroupVersionKind func (obj *ObjectReference) GroupVersionKind() unversioned.GroupVersionKind { return unversioned.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) } + +func (obj *ObjectReference) GetObjectKind() unversioned.ObjectKind { return obj } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/register.go index 6b1ed75752..72bd6b0909 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/register.go @@ -23,6 +23,10 @@ import ( ) // Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered. +// NOTE: If you are copying this file to start a new api group, STOP! Copy the +// extensions group instead. This Scheme is special and should appear ONLY in +// the api group, unless you really know what you're doing. +// TODO(lavalamp): make the above error impossible. var Scheme = runtime.NewScheme() // Codecs provides access to encoding and decoding for the scheme @@ -34,7 +38,7 @@ const GroupName = "" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Unversiond is group version for unversioned API objects +// Unversioned is group version for unversioned API objects // TODO: this should be v1 probably var Unversioned = unversioned.GroupVersion{Group: "", Version: "v1"} @@ -51,10 +55,29 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - if err := Scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) + +func init() { + // TODO(lavalamp): move this call to scheme builder above. Can't + // remove it from here because lots of people inapropriately rely on it + // (specifically the unversioned time conversion). Can't have it in + // both places because then it gets double registered. Consequence of + // current state is that it only ever gets registered in the main + // api.Scheme, even though everyone that uses anything from unversioned + // needs these. + if err := addConversionFuncs(Scheme); err != nil { + // Programmer error. panic(err) } +} + +func addKnownTypes(scheme *runtime.Scheme) error { + if err := scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { + return err + } scheme.AddKnownTypes(SchemeGroupVersion, &Pod{}, &PodList{}, @@ -104,7 +127,7 @@ func AddToScheme(scheme *runtime.Scheme) { ) // Register Unversioned types under their own special group - Scheme.AddUnversionedTypes(Unversioned, + scheme.AddUnversionedTypes(Unversioned, &unversioned.ExportOptions{}, &unversioned.Status{}, &unversioned.APIVersions{}, @@ -112,4 +135,5 @@ func AddToScheme(scheme *runtime.Scheme) { &unversioned.APIGroup{}, &unversioned.APIResourceList{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/replication_controller_example.json b/ingress/vendor/k8s.io/kubernetes/pkg/api/replication_controller_example.json index 5c3c4fe71c..70eef1cff3 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/replication_controller_example.json +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/resource/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/resource/generated.pb.go index f091cdeef1..3bde152533 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/resource/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/resource/generated.pb.go @@ -38,9 +38,32 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *Quantity) Reset() { *m = Quantity{} } -func (*Quantity) ProtoMessage() {} +// 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 *Quantity) Reset() { *m = Quantity{} } +func (*Quantity) ProtoMessage() {} +func (*Quantity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } func init() { proto.RegisterType((*Quantity)(nil), "k8s.io.kubernetes.pkg.api.resource.Quantity") } + +var fileDescriptorGenerated = []byte{ + // 222 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0xca, 0xb6, 0x28, 0xd6, + 0xcb, 0xcc, 0xd7, 0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xca, 0x4b, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, 0xc8, + 0x4e, 0xd7, 0x4f, 0x2c, 0xc8, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x4f, + 0x4f, 0xcd, 0x4b, 0x2d, 0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x82, 0xe8, 0xd1, 0x43, 0xe8, 0xd1, 0x03, 0xea, 0xd1, 0x03, 0xea, 0xd1, 0x83, 0xe9, 0x91, 0xd2, + 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, + 0x07, 0x6b, 0x4d, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0xa4, 0x94, 0x21, 0x76, + 0x67, 0x94, 0x96, 0x64, 0xe6, 0xe8, 0x67, 0xe6, 0x95, 0x14, 0x97, 0x14, 0xa1, 0xbb, 0x42, 0xc9, + 0x82, 0x8b, 0x23, 0xb0, 0x34, 0x31, 0xaf, 0x24, 0xb3, 0xa4, 0x52, 0x48, 0x8c, 0x8b, 0x0d, 0xa8, + 0x24, 0x33, 0x2f, 0x5d, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xca, 0xb3, 0x12, 0x99, 0xb1, + 0x40, 0x9e, 0xa1, 0x63, 0xa1, 0x3c, 0xc3, 0x04, 0x20, 0x5e, 0x00, 0xc4, 0x0d, 0x77, 0x14, 0x18, + 0x9c, 0xb4, 0x4e, 0x3c, 0x94, 0x63, 0xb8, 0x00, 0xc4, 0x37, 0x80, 0xb8, 0xe1, 0x91, 0x1c, 0xe3, + 0x09, 0x20, 0xbe, 0x00, 0xc4, 0x0f, 0x80, 0x78, 0xc2, 0x63, 0x39, 0x86, 0x28, 0x0e, 0x98, 0x3f, + 0x00, 0x01, 0x00, 0x00, 0xff, 0xff, 0x90, 0x1c, 0x7f, 0xff, 0x20, 0x01, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/create.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/create.go index e7a521cb2d..7d99ee84dd 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/create.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/create.go @@ -40,7 +40,7 @@ type RESTCreateStrategy interface { // the object. For example: remove fields that are not to be persisted, // sort order-insensitive list fields, etc. This should not remove fields // whose presence would be considered a validation error. - PrepareForCreate(obj runtime.Object) + PrepareForCreate(ctx api.Context, obj runtime.Object) // Validate is invoked after default fields in the object have been filled in before // the object is persisted. This method should not mutate the object. Validate(ctx api.Context, obj runtime.Object) field.ErrorList @@ -67,10 +67,13 @@ func BeforeCreate(strategy RESTCreateStrategy, ctx api.Context, obj runtime.Obje } objectMeta.DeletionTimestamp = nil objectMeta.DeletionGracePeriodSeconds = nil - strategy.PrepareForCreate(obj) + strategy.PrepareForCreate(ctx, obj) api.FillObjectMetaSystemFields(ctx, objectMeta) api.GenerateName(strategy, objectMeta) + // ClusterName is ignored and should not be saved + objectMeta.ClusterName = "" + if errs := strategy.Validate(ctx, obj); len(errs) > 0 { return errors.NewInvalid(kind.GroupKind(), objectMeta.Name, errs) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/delete.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/delete.go index 6967acbd10..5a76f214a6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/delete.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/delete.go @@ -32,12 +32,26 @@ type RESTDeleteStrategy interface { runtime.ObjectTyper } +type GarbageCollectionPolicy string + +const ( + DeleteDependents GarbageCollectionPolicy = "DeleteDependents" + OrphanDependents GarbageCollectionPolicy = "OrphanDependents" +) + +// GarbageCollectionDeleteStrategy must be implemented by the registry that wants to +// orphan dependents by default. +type GarbageCollectionDeleteStrategy interface { + // DefaultGarbageCollectionPolicy returns the default garbage collection behavior. + DefaultGarbageCollectionPolicy() GarbageCollectionPolicy +} + // RESTGracefulDeleteStrategy must be implemented by the registry that supports // graceful deletion. type RESTGracefulDeleteStrategy interface { // CheckGracefulDelete should return true if the object can be gracefully deleted and set // any default values on the DeleteOptions. - CheckGracefulDelete(obj runtime.Object, options *api.DeleteOptions) bool + CheckGracefulDelete(ctx api.Context, obj runtime.Object, options *api.DeleteOptions) bool } // BeforeDelete tests whether the object can be gracefully deleted. If graceful is set the object @@ -87,7 +101,7 @@ func BeforeDelete(strategy RESTDeleteStrategy, ctx api.Context, obj runtime.Obje return false, true, nil } - if !gracefulStrategy.CheckGracefulDelete(obj, options) { + if !gracefulStrategy.CheckGracefulDelete(ctx, obj, options) { return false, false, nil } now := unversioned.NewTime(unversioned.Now().Add(time.Second * time.Duration(*options.GracePeriodSeconds))) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/export.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/export.go index 4407da79ab..f072517583 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/export.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/export.go @@ -17,6 +17,7 @@ limitations under the License. package rest import ( + "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/runtime" ) @@ -24,5 +25,5 @@ import ( type RESTExportStrategy interface { // Export strips fields that can not be set by the user. If 'exact' is false // fields specific to the cluster are also stripped - Export(obj runtime.Object, exact bool) error + Export(ctx api.Context, obj runtime.Object, exact bool) error } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/update.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/update.go index 68cccb213d..af65dbc463 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/update.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/rest/update.go @@ -41,7 +41,7 @@ type RESTUpdateStrategy interface { // the object. For example: remove fields that are not to be persisted, // sort order-insensitive list fields, etc. This should not remove fields // whose presence would be considered a validation error. - PrepareForUpdate(obj, old runtime.Object) + PrepareForUpdate(ctx api.Context, obj, old runtime.Object) // ValidateUpdate is invoked after default fields in the object have been // filled in before the object is persisted. This method should not mutate // the object. @@ -93,7 +93,10 @@ func BeforeUpdate(strategy RESTUpdateStrategy, ctx api.Context, obj, old runtime } objectMeta.Generation = oldMeta.Generation - strategy.PrepareForUpdate(obj, old) + strategy.PrepareForUpdate(ctx, obj, old) + + // ClusterName is ignored and should not be saved + objectMeta.ClusterName = "" // Ensure some common fields, like UID, are validated for all resources. errs, err := validateCommonFields(obj, old) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/service/annotations.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/service/annotations.go index ee275d3c1e..bd13cc5166 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/service/annotations.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/service/annotations.go @@ -16,6 +16,13 @@ limitations under the License. package service +import ( + "strconv" + + "github.com/golang/glog" + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/testapi/testapi.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/testapi/testapi.go index f58e1c61ff..0ad8b08c67 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/testapi/testapi.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/testapi/testapi.go @@ -34,6 +34,7 @@ import ( "k8s.io/kubernetes/pkg/apis/batch" "k8s.io/kubernetes/pkg/apis/certificates" "k8s.io/kubernetes/pkg/apis/extensions" + "k8s.io/kubernetes/pkg/apis/imagepolicy" "k8s.io/kubernetes/pkg/apis/policy" "k8s.io/kubernetes/pkg/apis/rbac" "k8s.io/kubernetes/pkg/runtime" @@ -42,11 +43,14 @@ import ( _ "k8s.io/kubernetes/federation/apis/federation/install" _ "k8s.io/kubernetes/pkg/api/install" _ "k8s.io/kubernetes/pkg/apis/apps/install" + _ "k8s.io/kubernetes/pkg/apis/authentication/install" + _ "k8s.io/kubernetes/pkg/apis/authorization/install" _ "k8s.io/kubernetes/pkg/apis/autoscaling/install" _ "k8s.io/kubernetes/pkg/apis/batch/install" _ "k8s.io/kubernetes/pkg/apis/certificates/install" _ "k8s.io/kubernetes/pkg/apis/componentconfig/install" _ "k8s.io/kubernetes/pkg/apis/extensions/install" + _ "k8s.io/kubernetes/pkg/apis/imagepolicy/install" _ "k8s.io/kubernetes/pkg/apis/policy/install" _ "k8s.io/kubernetes/pkg/apis/rbac/install" ) @@ -62,6 +66,7 @@ var ( Federation TestGroup Rbac TestGroup Certificates TestGroup + ImagePolicy TestGroup serializer runtime.SerializerInfo storageSerializer runtime.SerializerInfo @@ -71,6 +76,7 @@ type TestGroup struct { externalGroupVersion unversioned.GroupVersion internalGroupVersion unversioned.GroupVersion internalTypes map[string]reflect.Type + externalTypes map[string]reflect.Type } func init() { @@ -112,22 +118,27 @@ func init() { externalGroupVersion: groupVersion, internalGroupVersion: internalGroupVersion, internalTypes: api.Scheme.KnownTypes(internalGroupVersion), + externalTypes: api.Scheme.KnownTypes(groupVersion), } } } if _, ok := Groups[api.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: api.GroupName, Version: registered.GroupOrDie(api.GroupName).GroupVersion.Version} Groups[api.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: api.GroupName, Version: registered.GroupOrDie(api.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: api.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(api.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[extensions.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: extensions.GroupName, Version: registered.GroupOrDie(extensions.GroupName).GroupVersion.Version} Groups[extensions.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: extensions.GroupName, Version: registered.GroupOrDie(extensions.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: extensions.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(extensions.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[autoscaling.GroupName]; !ok { @@ -138,10 +149,12 @@ func init() { } internalTypes[k] = t } + externalGroupVersion := unversioned.GroupVersion{Group: autoscaling.GroupName, Version: registered.GroupOrDie(autoscaling.GroupName).GroupVersion.Version} Groups[autoscaling.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: autoscaling.GroupName, Version: registered.GroupOrDie(autoscaling.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: extensions.SchemeGroupVersion, internalTypes: internalTypes, + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[autoscaling.GroupName+"IntraGroup"]; !ok { @@ -152,52 +165,76 @@ func init() { break } } + externalGroupVersion := unversioned.GroupVersion{Group: autoscaling.GroupName, Version: registered.GroupOrDie(autoscaling.GroupName).GroupVersion.Version} Groups[autoscaling.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: autoscaling.GroupName, Version: registered.GroupOrDie(autoscaling.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: autoscaling.SchemeGroupVersion, internalTypes: internalTypes, + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[batch.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: batch.GroupName, Version: registered.GroupOrDie(batch.GroupName).GroupVersion.Version} Groups[batch.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: batch.GroupName, Version: registered.GroupOrDie(batch.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: batch.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(batch.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[apps.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: apps.GroupName, Version: registered.GroupOrDie(apps.GroupName).GroupVersion.Version} Groups[apps.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: apps.GroupName, Version: registered.GroupOrDie(apps.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: extensions.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(extensions.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[policy.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: policy.GroupName, Version: registered.GroupOrDie(policy.GroupName).GroupVersion.Version} Groups[policy.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: policy.GroupName, Version: registered.GroupOrDie(policy.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: policy.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(policy.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[federation.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: federation.GroupName, Version: registered.GroupOrDie(federation.GroupName).GroupVersion.Version} Groups[federation.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: federation.GroupName, Version: registered.GroupOrDie(federation.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: federation.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(federation.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[rbac.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: rbac.GroupName, Version: registered.GroupOrDie(rbac.GroupName).GroupVersion.Version} Groups[rbac.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: rbac.GroupName, Version: registered.GroupOrDie(rbac.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: rbac.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(rbac.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), } } if _, ok := Groups[certificates.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: certificates.GroupName, Version: registered.GroupOrDie(certificates.GroupName).GroupVersion.Version} Groups[certificates.GroupName] = TestGroup{ - externalGroupVersion: unversioned.GroupVersion{Group: certificates.GroupName, Version: registered.GroupOrDie(certificates.GroupName).GroupVersion.Version}, + externalGroupVersion: externalGroupVersion, internalGroupVersion: certificates.SchemeGroupVersion, internalTypes: api.Scheme.KnownTypes(certificates.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), + } + } + + 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), } } @@ -210,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) { @@ -232,13 +270,18 @@ func (g TestGroup) InternalTypes() map[string]reflect.Type { return g.internalTypes } +// ExternalTypes returns a map of external API types' kind names to their Go types. +func (g TestGroup) ExternalTypes() map[string]reflect.Type { + return g.externalTypes +} + // Codec returns the codec for the API version to test against, as set by the // KUBE_TEST_API_TYPE env var. 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. @@ -266,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 @@ -350,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() @@ -387,6 +430,6 @@ func GetCodecForObject(obj runtime.Object) (runtime.Codec, error) { return nil, fmt.Errorf("unexpected kind: %v", kind) } -func NewTestGroup(external, internal unversioned.GroupVersion, internalTypes map[string]reflect.Type) TestGroup { - return TestGroup{external, internal, internalTypes} +func NewTestGroup(external, internal unversioned.GroupVersion, internalTypes map[string]reflect.Type, externalTypes map[string]reflect.Type) TestGroup { + return TestGroup{external, internal, internalTypes, externalTypes} } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/types.generated.go index 67d3dbc27c..727adf86dd 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/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 - yym1 := z.DecBinary() - _ = yym1 + yym52 := z.DecBinary() + _ = yym52 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct53 := r.ContainerType() + if yyct53 == codecSelferValueTypeMap1234 { + yyl53 := r.ReadMapStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl53, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct53 == codecSelferValueTypeArray1234 { + yyl53 := r.ReadArrayStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys54Slc = r.DecodeBytes(yys54Slc, true, true) + yys54 := string(yys54Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv11 := &x.CreationTimestamp - yym12 := z.DecBinary() - _ = yym12 + yyv62 := &x.CreationTimestamp + yym63 := z.DecBinary() + _ = yym63 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if yym12 { - z.DecBinaryUnmarshal(yyv11) - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv62) { + } else if yym63 { + z.DecBinaryUnmarshal(yyv62) + } else if !yym63 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv62) } else { - z.DecFallback(yyv11, 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) } - yym14 := z.DecBinary() - _ = yym14 + yym65 := z.DecBinary() + _ = yym65 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym14 { + } else if yym65 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym14 && 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) } - yym16 := z.DecBinary() - _ = yym16 + 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 { - yyv17 := &x.Labels - yym18 := z.DecBinary() - _ = yym18 + yyv68 := &x.Labels + yym69 := z.DecBinary() + _ = yym69 if false { } else { - z.F.DecMapStringStringX(yyv17, false, d) + z.F.DecMapStringStringX(yyv68, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv19 := &x.Annotations - yym20 := z.DecBinary() - _ = yym20 + yyv70 := &x.Annotations + yym71 := z.DecBinary() + _ = yym71 if false { } else { - z.F.DecMapStringStringX(yyv19, false, d) + z.F.DecMapStringStringX(yyv70, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv21 := &x.OwnerReferences - yym22 := z.DecBinary() - _ = yym22 + yyv72 := &x.OwnerReferences + yym73 := z.DecBinary() + _ = yym73 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv21), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv72), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv23 := &x.Finalizers - yym24 := z.DecBinary() - _ = yym24 + yyv74 := &x.Finalizers + yym75 := z.DecBinary() + _ = yym75 if false { } else { - z.F.DecSliceStringX(yyv23, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj25 int - var yyb25 bool - var yyhl25 bool = l >= 0 - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + var yyj77 int + var yyb77 bool + var yyhl77 bool = l >= 0 + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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)) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv33 := &x.CreationTimestamp - yym34 := z.DecBinary() - _ = yym34 + yyv85 := &x.CreationTimestamp + yym86 := z.DecBinary() + _ = yym86 if false { - } else if z.HasExtensions() && z.DecExt(yyv33) { - } else if yym34 { - z.DecBinaryUnmarshal(yyv33) - } else if !yym34 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv33) + } else if z.HasExtensions() && z.DecExt(yyv85) { + } else if yym86 { + z.DecBinaryUnmarshal(yyv85) + } else if !yym86 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv85) } else { - z.DecFallback(yyv33, false) + z.DecFallback(yyv85, false) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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) } - yym36 := z.DecBinary() - _ = yym36 + yym88 := z.DecBinary() + _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym36 { + } else if yym88 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym36 && z.IsJSONHandle() { + } else if !yym88 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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) } - yym38 := z.DecBinary() - _ = yym38 + yym90 := z.DecBinary() + _ = yym90 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv39 := &x.Labels - yym40 := z.DecBinary() - _ = yym40 + yyv91 := &x.Labels + yym92 := z.DecBinary() + _ = yym92 if false { } else { - z.F.DecMapStringStringX(yyv39, false, d) + z.F.DecMapStringStringX(yyv91, false, d) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv41 := &x.Annotations - yym42 := z.DecBinary() - _ = yym42 + yyv93 := &x.Annotations + yym94 := z.DecBinary() + _ = yym94 if false { } else { - z.F.DecMapStringStringX(yyv41, false, d) + z.F.DecMapStringStringX(yyv93, false, d) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv43 := &x.OwnerReferences - yym44 := z.DecBinary() - _ = yym44 + yyv95 := &x.OwnerReferences + yym96 := z.DecBinary() + _ = yym96 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv43), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv95), d) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv45 := &x.Finalizers - yym46 := z.DecBinary() - _ = yym46 + yyv97 := &x.Finalizers + yym98 := z.DecBinary() + _ = yym98 if false { } else { - z.F.DecSliceStringX(yyv45, 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 { - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj25-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 { - yym1 := z.EncBinary() - _ = yym1 + yym100 := z.EncBinary() + _ = yym100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [21]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil - yyq2[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil - yyq2[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq2[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq2[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil - yyq2[6] = x.VolumeSource.Secret != nil && x.Secret != nil - yyq2[7] = x.VolumeSource.NFS != nil && x.NFS != nil - yyq2[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil - yyq2[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq2[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil - yyq2[11] = x.VolumeSource.RBD != nil && x.RBD != nil - yyq2[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq2[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil - yyq2[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil - yyq2[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil - yyq2[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil - yyq2[17] = x.VolumeSource.FC != nil && x.FC != nil - yyq2[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil - yyq2[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil - yyq2[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(21) - } else { - yynn2 = 1 - for _, b := range yyq2 { + 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 { + yynn101 = 1 + for _, b := range yyq101 { if b { - yynn2++ + yynn101++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn101) + yynn101 = 0 } - if yyr2 || yy2arr2 { + if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym103 := z.EncBinary() + _ = yym103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1128,25 +1178,25 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym104 := z.EncBinary() + _ = yym104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - var yyn6 bool + var yyn105 bool if x.VolumeSource.HostPath == nil { - yyn6 = true - goto LABEL6 + yyn105 = true + goto LABEL105 } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { + LABEL105: + if yyr101 || yy2arr101 { + if yyn105 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq101[1] { if x.HostPath == nil { r.EncodeNil() } else { @@ -1157,11 +1207,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[1] { + if yyq101[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn6 { + if yyn105 { r.EncodeNil() } else { if x.HostPath == nil { @@ -1172,18 +1222,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn9 bool + var yyn106 bool if x.VolumeSource.EmptyDir == nil { - yyn9 = true - goto LABEL9 + yyn106 = true + goto LABEL106 } - LABEL9: - if yyr2 || yy2arr2 { - if yyn9 { + LABEL106: + if yyr101 || yy2arr101 { + if yyn106 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq101[2] { if x.EmptyDir == nil { r.EncodeNil() } else { @@ -1194,11 +1244,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[2] { + if yyq101[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn9 { + if yyn106 { r.EncodeNil() } else { if x.EmptyDir == nil { @@ -1209,18 +1259,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn12 bool + var yyn107 bool if x.VolumeSource.GCEPersistentDisk == nil { - yyn12 = true - goto LABEL12 + yyn107 = true + goto LABEL107 } - LABEL12: - if yyr2 || yy2arr2 { - if yyn12 { + LABEL107: + if yyr101 || yy2arr101 { + if yyn107 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq101[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -1231,11 +1281,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[3] { + if yyq101[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn12 { + if yyn107 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { @@ -1246,18 +1296,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn15 bool + var yyn108 bool if x.VolumeSource.AWSElasticBlockStore == nil { - yyn15 = true - goto LABEL15 + yyn108 = true + goto LABEL108 } - LABEL15: - if yyr2 || yy2arr2 { - if yyn15 { + LABEL108: + if yyr101 || yy2arr101 { + if yyn108 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq101[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -1268,11 +1318,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[4] { + if yyq101[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn15 { + if yyn108 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { @@ -1283,18 +1333,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn18 bool + var yyn109 bool if x.VolumeSource.GitRepo == nil { - yyn18 = true - goto LABEL18 + yyn109 = true + goto LABEL109 } - LABEL18: - if yyr2 || yy2arr2 { - if yyn18 { + LABEL109: + if yyr101 || yy2arr101 { + if yyn109 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq101[5] { if x.GitRepo == nil { r.EncodeNil() } else { @@ -1305,11 +1355,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[5] { + if yyq101[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn18 { + if yyn109 { r.EncodeNil() } else { if x.GitRepo == nil { @@ -1320,18 +1370,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn21 bool + var yyn110 bool if x.VolumeSource.Secret == nil { - yyn21 = true - goto LABEL21 + yyn110 = true + goto LABEL110 } - LABEL21: - if yyr2 || yy2arr2 { - if yyn21 { + LABEL110: + if yyr101 || yy2arr101 { + if yyn110 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq101[6] { if x.Secret == nil { r.EncodeNil() } else { @@ -1342,11 +1392,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[6] { + if yyq101[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn21 { + if yyn110 { r.EncodeNil() } else { if x.Secret == nil { @@ -1357,18 +1407,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn24 bool + var yyn111 bool if x.VolumeSource.NFS == nil { - yyn24 = true - goto LABEL24 + yyn111 = true + goto LABEL111 } - LABEL24: - if yyr2 || yy2arr2 { - if yyn24 { + LABEL111: + if yyr101 || yy2arr101 { + if yyn111 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq101[7] { if x.NFS == nil { r.EncodeNil() } else { @@ -1379,11 +1429,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[7] { + if yyq101[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn24 { + if yyn111 { r.EncodeNil() } else { if x.NFS == nil { @@ -1394,18 +1444,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn27 bool + var yyn112 bool if x.VolumeSource.ISCSI == nil { - yyn27 = true - goto LABEL27 + yyn112 = true + goto LABEL112 } - LABEL27: - if yyr2 || yy2arr2 { - if yyn27 { + LABEL112: + if yyr101 || yy2arr101 { + if yyn112 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq101[8] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -1416,11 +1466,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[8] { + if yyq101[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn27 { + if yyn112 { r.EncodeNil() } else { if x.ISCSI == nil { @@ -1431,18 +1481,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn30 bool + var yyn113 bool if x.VolumeSource.Glusterfs == nil { - yyn30 = true - goto LABEL30 + yyn113 = true + goto LABEL113 } - LABEL30: - if yyr2 || yy2arr2 { - if yyn30 { + LABEL113: + if yyr101 || yy2arr101 { + if yyn113 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { + if yyq101[9] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -1453,11 +1503,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[9] { + if yyq101[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn30 { + if yyn113 { r.EncodeNil() } else { if x.Glusterfs == nil { @@ -1468,18 +1518,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn33 bool + var yyn114 bool if x.VolumeSource.PersistentVolumeClaim == nil { - yyn33 = true - goto LABEL33 + yyn114 = true + goto LABEL114 } - LABEL33: - if yyr2 || yy2arr2 { - if yyn33 { + LABEL114: + if yyr101 || yy2arr101 { + if yyn114 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { + if yyq101[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { @@ -1490,11 +1540,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[10] { + if yyq101[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn33 { + if yyn114 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { @@ -1505,18 +1555,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn36 bool + var yyn115 bool if x.VolumeSource.RBD == nil { - yyn36 = true - goto LABEL36 + yyn115 = true + goto LABEL115 } - LABEL36: - if yyr2 || yy2arr2 { - if yyn36 { + LABEL115: + if yyr101 || yy2arr101 { + if yyn115 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { + if yyq101[11] { if x.RBD == nil { r.EncodeNil() } else { @@ -1527,11 +1577,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[11] { + if yyq101[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn36 { + if yyn115 { r.EncodeNil() } else { if x.RBD == nil { @@ -1542,18 +1592,55 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn39 bool + var yyn116 bool + if x.VolumeSource.Quobyte == nil { + yyn116 = true + goto LABEL116 + } + LABEL116: + if yyr101 || yy2arr101 { + if yyn116 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[12] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn116 { + r.EncodeNil() + } else { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + } + var yyn117 bool if x.VolumeSource.FlexVolume == nil { - yyn39 = true - goto LABEL39 + yyn117 = true + goto LABEL117 } - LABEL39: - if yyr2 || yy2arr2 { - if yyn39 { + LABEL117: + if yyr101 || yy2arr101 { + if yyn117 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { + if yyq101[13] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -1564,11 +1651,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[12] { + if yyq101[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn39 { + if yyn117 { r.EncodeNil() } else { if x.FlexVolume == nil { @@ -1579,18 +1666,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn42 bool + var yyn118 bool if x.VolumeSource.Cinder == nil { - yyn42 = true - goto LABEL42 + yyn118 = true + goto LABEL118 } - LABEL42: - if yyr2 || yy2arr2 { - if yyn42 { + LABEL118: + if yyr101 || yy2arr101 { + if yyn118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { + if yyq101[14] { if x.Cinder == nil { r.EncodeNil() } else { @@ -1601,11 +1688,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[13] { + if yyq101[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn42 { + if yyn118 { r.EncodeNil() } else { if x.Cinder == nil { @@ -1616,18 +1703,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn45 bool + var yyn119 bool if x.VolumeSource.CephFS == nil { - yyn45 = true - goto LABEL45 + yyn119 = true + goto LABEL119 } - LABEL45: - if yyr2 || yy2arr2 { - if yyn45 { + LABEL119: + if yyr101 || yy2arr101 { + if yyn119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { + if yyq101[15] { if x.CephFS == nil { r.EncodeNil() } else { @@ -1638,11 +1725,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[14] { + if yyq101[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn45 { + if yyn119 { r.EncodeNil() } else { if x.CephFS == nil { @@ -1653,18 +1740,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn48 bool + var yyn120 bool if x.VolumeSource.Flocker == nil { - yyn48 = true - goto LABEL48 + yyn120 = true + goto LABEL120 } - LABEL48: - if yyr2 || yy2arr2 { - if yyn48 { + LABEL120: + if yyr101 || yy2arr101 { + if yyn120 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { + if yyq101[16] { if x.Flocker == nil { r.EncodeNil() } else { @@ -1675,11 +1762,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[15] { + if yyq101[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn48 { + if yyn120 { r.EncodeNil() } else { if x.Flocker == nil { @@ -1690,18 +1777,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn51 bool + var yyn121 bool if x.VolumeSource.DownwardAPI == nil { - yyn51 = true - goto LABEL51 + yyn121 = true + goto LABEL121 } - LABEL51: - if yyr2 || yy2arr2 { - if yyn51 { + LABEL121: + if yyr101 || yy2arr101 { + if yyn121 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { + if yyq101[17] { if x.DownwardAPI == nil { r.EncodeNil() } else { @@ -1712,11 +1799,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[16] { + if yyq101[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn51 { + if yyn121 { r.EncodeNil() } else { if x.DownwardAPI == nil { @@ -1727,18 +1814,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn54 bool + var yyn122 bool if x.VolumeSource.FC == nil { - yyn54 = true - goto LABEL54 + yyn122 = true + goto LABEL122 } - LABEL54: - if yyr2 || yy2arr2 { - if yyn54 { + LABEL122: + if yyr101 || yy2arr101 { + if yyn122 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { + if yyq101[18] { if x.FC == nil { r.EncodeNil() } else { @@ -1749,11 +1836,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[17] { + if yyq101[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn54 { + if yyn122 { r.EncodeNil() } else { if x.FC == nil { @@ -1764,18 +1851,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn57 bool + var yyn123 bool if x.VolumeSource.AzureFile == nil { - yyn57 = true - goto LABEL57 + yyn123 = true + goto LABEL123 } - LABEL57: - if yyr2 || yy2arr2 { - if yyn57 { + LABEL123: + if yyr101 || yy2arr101 { + if yyn123 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[18] { + if yyq101[19] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -1786,11 +1873,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[18] { + if yyq101[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn57 { + if yyn123 { r.EncodeNil() } else { if x.AzureFile == nil { @@ -1801,18 +1888,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn60 bool + var yyn124 bool if x.VolumeSource.ConfigMap == nil { - yyn60 = true - goto LABEL60 + yyn124 = true + goto LABEL124 } - LABEL60: - if yyr2 || yy2arr2 { - if yyn60 { + LABEL124: + if yyr101 || yy2arr101 { + if yyn124 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[19] { + if yyq101[20] { if x.ConfigMap == nil { r.EncodeNil() } else { @@ -1823,11 +1910,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[19] { + if yyq101[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn60 { + if yyn124 { r.EncodeNil() } else { if x.ConfigMap == nil { @@ -1838,18 +1925,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn63 bool + var yyn125 bool if x.VolumeSource.VsphereVolume == nil { - yyn63 = true - goto LABEL63 + yyn125 = true + goto LABEL125 } - LABEL63: - if yyr2 || yy2arr2 { - if yyn63 { + LABEL125: + if yyr101 || yy2arr101 { + if yyn125 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[20] { + if yyq101[21] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -1860,11 +1947,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[20] { + if yyq101[21] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn63 { + if yyn125 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -1875,7 +1962,44 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym127 := z.DecBinary() + _ = yym127 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct128 := r.ContainerType() + if yyct128 == codecSelferValueTypeMap1234 { + yyl128 := r.ReadMapStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl128, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct128 == codecSelferValueTypeArray1234 { + yyl128 := r.ReadArrayStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys129Slc = r.DecodeBytes(yys129Slc, true, true) + yys129 := string(yys129Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj25 int - var yyb25 bool - var yyhl25 bool = l >= 0 - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + var yyj153 int + var yyb153 bool + var yyhl153 bool = l >= 0 + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2732,18 +2908,42 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.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 { - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + if yyb153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj25-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 { - yym1 := z.EncBinary() - _ = yym1 + yym177 := z.EncBinary() + _ = yym177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [20]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.HostPath != nil - yyq2[1] = x.EmptyDir != nil - yyq2[2] = x.GCEPersistentDisk != nil - yyq2[3] = x.AWSElasticBlockStore != nil - yyq2[4] = x.GitRepo != nil - yyq2[5] = x.Secret != nil - yyq2[6] = x.NFS != nil - yyq2[7] = x.ISCSI != nil - yyq2[8] = x.Glusterfs != nil - yyq2[9] = x.PersistentVolumeClaim != nil - yyq2[10] = x.RBD != nil - yyq2[11] = x.FlexVolume != nil - yyq2[12] = x.Cinder != nil - yyq2[13] = x.CephFS != nil - yyq2[14] = x.Flocker != nil - yyq2[15] = x.DownwardAPI != nil - yyq2[16] = x.FC != nil - yyq2[17] = x.AzureFile != nil - yyq2[18] = x.ConfigMap != nil - yyq2[19] = x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(20) - } else { - yynn2 = 0 - for _, b := range yyq2 { + 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 { + yynn178 = 0 + for _, b := range yyq178 { if b { - yynn2++ + yynn178++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn178) + yynn178 = 0 } - if yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym201 := z.DecBinary() + _ = yym201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct202 := r.ContainerType() + if yyct202 == codecSelferValueTypeMap1234 { + yyl202 := r.ReadMapStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl202, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct202 == codecSelferValueTypeArray1234 { + yyl202 := r.ReadArrayStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys203Slc = r.DecodeBytes(yys203Slc, true, true) + yys203 := string(yys203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj24 int - var yyb24 bool - var yyhl24 bool = l >= 0 - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + var yyj226 int + var yyb226 bool + var yyhl226 bool = l >= 0 + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3574,13 +3844,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HostPath.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3595,13 +3865,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.EmptyDir.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3616,13 +3886,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3637,13 +3907,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3658,13 +3928,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GitRepo.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3679,13 +3949,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Secret.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3700,13 +3970,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NFS.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3721,13 +3991,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ISCSI.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3742,13 +4012,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Glusterfs.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3763,13 +4033,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PersistentVolumeClaim.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3784,13 +4054,34 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + 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) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3826,13 +4117,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Cinder.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3847,13 +4138,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.CephFS.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3868,13 +4159,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Flocker.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3889,13 +4180,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.DownwardAPI.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3910,13 +4201,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FC.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3931,13 +4222,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureFile.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3952,13 +4243,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMap.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3973,18 +4264,39 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.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 { - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj24-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 { - yym1 := z.EncBinary() - _ = yym1 + yym249 := z.EncBinary() + _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.GCEPersistentDisk != nil - yyq2[1] = x.AWSElasticBlockStore != nil - yyq2[2] = x.HostPath != nil - yyq2[3] = x.Glusterfs != nil - yyq2[4] = x.NFS != nil - yyq2[5] = x.RBD != nil - yyq2[6] = x.ISCSI != nil - yyq2[7] = x.FlexVolume != nil - yyq2[8] = x.Cinder != nil - yyq2[9] = x.CephFS != nil - yyq2[10] = x.FC != nil - yyq2[11] = x.Flocker != nil - yyq2[12] = x.AzureFile != nil - yyq2[13] = x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(14) - } else { - yynn2 = 0 - for _, b := range yyq2 { + 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 { + yynn250 = 0 + for _, b := range yyq250 { if b { - yynn2++ + yynn250++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn250) + yynn250 = 0 } - if yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym267 := z.DecBinary() + _ = yym267 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct268 := r.ContainerType() + if yyct268 == codecSelferValueTypeMap1234 { + yyl268 := r.ReadMapStart() + if yyl268 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl268, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct268 == codecSelferValueTypeArray1234 { + yyl268 := r.ReadArrayStart() + if yyl268 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys269Slc = r.DecodeBytes(yys269Slc, true, true) + yys269 := string(yys269Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + var yyj286 int + var yyb286 bool + var yyhl286 bool = l >= 0 + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4605,13 +4987,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4626,13 +5008,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4647,13 +5029,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.HostPath.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4668,13 +5050,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Glusterfs.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4689,13 +5071,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.NFS.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4710,13 +5092,34 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.RBD.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + 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) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4752,13 +5155,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FlexVolume.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4773,13 +5176,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Cinder.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4794,13 +5197,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.CephFS.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4815,13 +5218,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FC.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4836,13 +5239,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Flocker.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4857,13 +5260,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureFile.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4878,18 +5281,39 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.VsphereVolume.CodecDecodeSelf(d) } + 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 + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb18 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb18 { + if yyb286 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-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 { - yym1 := z.EncBinary() - _ = yym1 + yym303 := z.EncBinary() + _ = yym303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn304 = 1 + for _, b := range yyq304 { if b { - yynn2++ + yynn304++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn304) + yynn304 = 0 } - if yyr2 || yy2arr2 { + if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym307 := z.EncBinary() + _ = yym307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } - if yyr2 || yy2arr2 { + if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq304[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym310 := z.EncBinary() + _ = yym310 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym311 := z.DecBinary() + _ = yym311 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct312 := r.ContainerType() + if yyct312 == codecSelferValueTypeMap1234 { + yyl312 := r.ReadMapStart() + if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl312, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct312 == codecSelferValueTypeArray1234 { + yyl312 := r.ReadArrayStart() + if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys313Slc = r.DecodeBytes(yys313Slc, true, true) + yys313 := string(yys313Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj316 int + var yyb316 bool + var yyhl316 bool = l >= 0 + yyj316++ + if yyhl316 { + yyb316 = yyj316 > l } else { - yyb6 = r.CheckBreak() + yyb316 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj316++ + if yyhl316 { + yyb316 = yyj316 > l } else { - yyb6 = r.CheckBreak() + yyb316 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj316++ + if yyhl316 { + yyb316 = yyj316 > l } else { - yyb6 = r.CheckBreak() + yyb316 = r.CheckBreak() } - if yyb6 { + if yyb316 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj316-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5111,136 +5535,136 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym319 := z.EncBinary() + _ = yym319 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn320 = 0 + for _, b := range yyq320 { if b { - yynn2++ + yynn320++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn320) + yynn320 = 0 } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq320[0] { + yym322 := z.EncBinary() + _ = yym322 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq320[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym323 := z.EncBinary() + _ = yym323 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq320[1] { + yym325 := z.EncBinary() + _ = yym325 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq320[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym326 := z.EncBinary() + _ = yym326 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq320[2] { + yy328 := &x.ObjectMeta + yy328.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq320[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy329 := &x.ObjectMeta + yy329.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq320[3] { + yy331 := &x.Spec + yy331.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq320[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy332 := &x.Spec + yy332.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq320[4] { + yy334 := &x.Status + yy334.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq320[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy335 := &x.Status + yy335.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym336 := z.DecBinary() + _ = yym336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct337 := r.ContainerType() + if yyct337 == codecSelferValueTypeMap1234 { + yyl337 := r.ReadMapStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl337, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct337 == codecSelferValueTypeArray1234 { + yyl337 := r.ReadArrayStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +5721,47 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys338Slc = r.DecodeBytes(yys338Slc, true, true) + yys338 := string(yys338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys338 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PersistentVolumeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv341 := &x.ObjectMeta + yyv341.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv342 := &x.Spec + yyv342.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv343 := &x.Status + yyv343.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys338) + } // end switch yys338 + } // end for yyj338 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5345,104 +5769,104 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj344 int + var yyb344 bool + var yyhl344 bool = l >= 0 + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PersistentVolumeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv347 := &x.ObjectMeta + yyv347.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv348 := &x.Spec + yyv348.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv349 := &x.Status + yyv349.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym350 := z.EncBinary() + _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.AccessModes) != 0 - yyq2[2] = x.ClaimRef != nil - yyq2[3] = x.PersistentVolumeReclaimPolicy != "" - yyq2[4] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq2[5] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq2[6] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil - yyq2[7] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq2[8] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil - yyq2[9] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil - yyq2[10] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil - yyq2[11] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq2[12] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil - yyq2[13] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil - yyq2[14] = x.PersistentVolumeSource.FC != nil && x.FC != nil - yyq2[15] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil - yyq2[16] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil - yyq2[17] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn351 = 1 + for _, b := range yyq351 { if b { - yynn2++ + yynn351++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn351) + yynn351 = 0 } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Capacity == nil { r.EncodeNil() @@ -5511,89 +5937,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.Capacity.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("accessModes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - if x.ClaimRef == nil { - r.EncodeNil() - } else { - x.ClaimRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("claimRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ClaimRef == nil { - r.EncodeNil() - } else { - x.ClaimRef.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) - } - } - var yyn15 bool + var yyn353 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn15 = true - goto LABEL15 + yyn353 = true + goto LABEL353 } - LABEL15: - if yyr2 || yy2arr2 { - if yyn15 { + LABEL353: + if yyr351 || yy2arr351 { + if yyn353 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq351[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -5604,11 +5959,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[4] { + if yyq351[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn15 { + if yyn353 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { @@ -5619,18 +5974,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn18 bool + var yyn354 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn18 = true - goto LABEL18 + yyn354 = true + goto LABEL354 } - LABEL18: - if yyr2 || yy2arr2 { - if yyn18 { + LABEL354: + if yyr351 || yy2arr351 { + if yyn354 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq351[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -5641,11 +5996,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[5] { + if yyq351[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn18 { + if yyn354 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { @@ -5656,18 +6011,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn21 bool + var yyn355 bool if x.PersistentVolumeSource.HostPath == nil { - yyn21 = true - goto LABEL21 + yyn355 = true + goto LABEL355 } - LABEL21: - if yyr2 || yy2arr2 { - if yyn21 { + LABEL355: + if yyr351 || yy2arr351 { + if yyn355 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq351[3] { if x.HostPath == nil { r.EncodeNil() } else { @@ -5678,11 +6033,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[6] { + if yyq351[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn21 { + if yyn355 { r.EncodeNil() } else { if x.HostPath == nil { @@ -5693,18 +6048,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn24 bool + var yyn356 bool if x.PersistentVolumeSource.Glusterfs == nil { - yyn24 = true - goto LABEL24 + yyn356 = true + goto LABEL356 } - LABEL24: - if yyr2 || yy2arr2 { - if yyn24 { + LABEL356: + if yyr351 || yy2arr351 { + if yyn356 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq351[4] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -5715,11 +6070,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[7] { + if yyq351[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn24 { + if yyn356 { r.EncodeNil() } else { if x.Glusterfs == nil { @@ -5730,18 +6085,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn27 bool + var yyn357 bool if x.PersistentVolumeSource.NFS == nil { - yyn27 = true - goto LABEL27 + yyn357 = true + goto LABEL357 } - LABEL27: - if yyr2 || yy2arr2 { - if yyn27 { + LABEL357: + if yyr351 || yy2arr351 { + if yyn357 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq351[5] { if x.NFS == nil { r.EncodeNil() } else { @@ -5752,11 +6107,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[8] { + if yyq351[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn27 { + if yyn357 { r.EncodeNil() } else { if x.NFS == nil { @@ -5767,18 +6122,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn30 bool + var yyn358 bool if x.PersistentVolumeSource.RBD == nil { - yyn30 = true - goto LABEL30 + yyn358 = true + goto LABEL358 } - LABEL30: - if yyr2 || yy2arr2 { - if yyn30 { + LABEL358: + if yyr351 || yy2arr351 { + if yyn358 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { + if yyq351[6] { if x.RBD == nil { r.EncodeNil() } else { @@ -5789,11 +6144,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[9] { + if yyq351[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn30 { + if yyn358 { r.EncodeNil() } else { if x.RBD == nil { @@ -5804,18 +6159,55 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn33 bool + var yyn359 bool + if x.PersistentVolumeSource.Quobyte == nil { + yyn359 = true + goto LABEL359 + } + LABEL359: + if yyr351 || yy2arr351 { + if yyn359 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + 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 { - yyn33 = true - goto LABEL33 + yyn360 = true + goto LABEL360 } - LABEL33: - if yyr2 || yy2arr2 { - if yyn33 { + LABEL360: + if yyr351 || yy2arr351 { + if yyn360 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { + if yyq351[8] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -5826,11 +6218,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[10] { + if yyq351[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn33 { + if yyn360 { r.EncodeNil() } else { if x.ISCSI == nil { @@ -5841,18 +6233,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn36 bool + var yyn361 bool if x.PersistentVolumeSource.FlexVolume == nil { - yyn36 = true - goto LABEL36 + yyn361 = true + goto LABEL361 } - LABEL36: - if yyr2 || yy2arr2 { - if yyn36 { + LABEL361: + if yyr351 || yy2arr351 { + if yyn361 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { + if yyq351[9] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -5863,11 +6255,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[11] { + if yyq351[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn36 { + if yyn361 { r.EncodeNil() } else { if x.FlexVolume == nil { @@ -5878,18 +6270,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn39 bool + var yyn362 bool if x.PersistentVolumeSource.Cinder == nil { - yyn39 = true - goto LABEL39 + yyn362 = true + goto LABEL362 } - LABEL39: - if yyr2 || yy2arr2 { - if yyn39 { + LABEL362: + if yyr351 || yy2arr351 { + if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { + if yyq351[10] { if x.Cinder == nil { r.EncodeNil() } else { @@ -5900,11 +6292,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[12] { + if yyq351[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn39 { + if yyn362 { r.EncodeNil() } else { if x.Cinder == nil { @@ -5915,18 +6307,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn42 bool + var yyn363 bool if x.PersistentVolumeSource.CephFS == nil { - yyn42 = true - goto LABEL42 + yyn363 = true + goto LABEL363 } - LABEL42: - if yyr2 || yy2arr2 { - if yyn42 { + LABEL363: + if yyr351 || yy2arr351 { + if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { + if yyq351[11] { if x.CephFS == nil { r.EncodeNil() } else { @@ -5937,11 +6329,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[13] { + if yyq351[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn42 { + if yyn363 { r.EncodeNil() } else { if x.CephFS == nil { @@ -5952,18 +6344,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn45 bool + var yyn364 bool if x.PersistentVolumeSource.FC == nil { - yyn45 = true - goto LABEL45 + yyn364 = true + goto LABEL364 } - LABEL45: - if yyr2 || yy2arr2 { - if yyn45 { + LABEL364: + if yyr351 || yy2arr351 { + if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { + if yyq351[12] { if x.FC == nil { r.EncodeNil() } else { @@ -5974,11 +6366,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[14] { + if yyq351[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn45 { + if yyn364 { r.EncodeNil() } else { if x.FC == nil { @@ -5989,18 +6381,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn48 bool + var yyn365 bool if x.PersistentVolumeSource.Flocker == nil { - yyn48 = true - goto LABEL48 + yyn365 = true + goto LABEL365 } - LABEL48: - if yyr2 || yy2arr2 { - if yyn48 { + LABEL365: + if yyr351 || yy2arr351 { + if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { + if yyq351[13] { if x.Flocker == nil { r.EncodeNil() } else { @@ -6011,11 +6403,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[15] { + if yyq351[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn48 { + if yyn365 { r.EncodeNil() } else { if x.Flocker == nil { @@ -6026,18 +6418,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn51 bool + var yyn366 bool if x.PersistentVolumeSource.AzureFile == nil { - yyn51 = true - goto LABEL51 + yyn366 = true + goto LABEL366 } - LABEL51: - if yyr2 || yy2arr2 { - if yyn51 { + LABEL366: + if yyr351 || yy2arr351 { + if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { + if yyq351[14] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -6048,11 +6440,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[16] { + if yyq351[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn51 { + if yyn366 { r.EncodeNil() } else { if x.AzureFile == nil { @@ -6063,18 +6455,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn54 bool + var yyn367 bool if x.PersistentVolumeSource.VsphereVolume == nil { - yyn54 = true - goto LABEL54 + yyn367 = true + goto LABEL367 } - LABEL54: - if yyr2 || yy2arr2 { - if yyn54 { + LABEL367: + if yyr351 || yy2arr351 { + if yyn367 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { + if yyq351[15] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -6085,11 +6477,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[17] { + if yyq351[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn54 { + if yyn367 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -6100,7 +6492,115 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + 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 yyq351[17] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym370 := z.EncBinary() + _ = yym370 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq351[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("accessModes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym371 := z.EncBinary() + _ = yym371 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr351 || yy2arr351 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[18] { + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq351[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("claimRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } + } + if yyr351 || yy2arr351 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[19] { + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq351[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym374 := z.DecBinary() + _ = yym374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct375 := r.ContainerType() + if yyct375 == codecSelferValueTypeMap1234 { + yyl375 := r.ReadMapStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl375, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct375 == codecSelferValueTypeArray1234 { + yyl375 := r.ReadArrayStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,45 +6657,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys376Slc = r.DecodeBytes(yys376Slc, true, true) + yys376 := string(yys376Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys376 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv4 := &x.Capacity - yyv4.CodecDecodeSelf(d) - } - case "accessModes": - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv5 := &x.AccessModes - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv5), d) - } - } - case "claimRef": - if r.TryDecodeAsNil() { - if x.ClaimRef != nil { - x.ClaimRef = nil - } - } else { - if x.ClaimRef == nil { - x.ClaimRef = new(ObjectReference) - } - x.ClaimRef.CodecDecodeSelf(d) - } - case "persistentVolumeReclaimPolicy": - if r.TryDecodeAsNil() { - x.PersistentVolumeReclaimPolicy = "" - } else { - x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + yyv377 := &x.Capacity + yyv377.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { @@ -6281,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) @@ -6393,10 +6878,53 @@ 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 { + yyv394 := &x.AccessModes + yym395 := z.DecBinary() + _ = yym395 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), d) + } + } + case "claimRef": + if r.TryDecodeAsNil() { + if x.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + case "persistentVolumeReclaimPolicy": + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj23 int - var yyb23 bool - var yyhl23 bool = l >= 0 - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + var yyj398 int + var yyb398 bool + var yyhl398 bool = l >= 0 + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6421,78 +6949,19 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv24 := &x.Capacity - yyv24.CodecDecodeSelf(d) - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv25 := &x.AccessModes - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv25), d) - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ClaimRef != nil { - x.ClaimRef = nil - } - } else { - if x.ClaimRef == nil { - x.ClaimRef = new(ObjectReference) - } - x.ClaimRef.CodecDecodeSelf(d) - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PersistentVolumeReclaimPolicy = "" - } else { - x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + yyv399 := &x.Capacity + yyv399.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6510,13 +6979,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6534,13 +7003,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6558,13 +7027,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6582,13 +7051,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6606,13 +7075,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6627,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) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6654,13 +7147,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6678,13 +7171,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6702,13 +7195,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6726,13 +7219,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6750,13 +7243,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6774,13 +7267,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6798,13 +7291,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6819,18 +7312,101 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.VsphereVolume.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 + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv416 := &x.AccessModes + yym417 := z.DecBinary() + _ = yym417 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) + } + } + 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.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } for { - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj23-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym422 := z.EncBinary() + _ = yym422 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - yyq2[1] = x.Message != "" - yyq2[2] = x.Reason != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn423 = 0 + for _, b := range yyq423 { if b { - yynn2++ + yynn423++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn423) + yynn423 = 0 } - if yyr2 || yy2arr2 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq423[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq423[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq423[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym427 := z.EncBinary() + _ = yym427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq423[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym430 := z.EncBinary() + _ = yym430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym431 := z.DecBinary() + _ = yym431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct432 := r.ContainerType() + if yyct432 == codecSelferValueTypeMap1234 { + yyl432 := r.ReadMapStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl432, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct432 == codecSelferValueTypeArray1234 { + yyl432 := r.ReadArrayStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys433Slc = r.DecodeBytes(yys433Slc, true, true) + yys433 := string(yys433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys433 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -7039,9 +7615,9 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.Reason = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys433) + } // end switch yys433 + } // end for yyj433 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7049,16 +7625,16 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj437 int + var yyb437 bool + var yyhl437 bool = l >= 0 + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7068,13 +7644,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7084,13 +7660,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Message = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7101,17 +7677,17 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De x.Reason = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj437-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7123,139 +7699,139 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym441 := z.EncBinary() + _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn442 = 1 + for _, b := range yyq442 { if b { - yynn2++ + yynn442++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn442) + yynn442 = 0 } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq442[0] { + yym444 := z.EncBinary() + _ = yym444 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym445 := z.EncBinary() + _ = yym445 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq442[1] { + yym447 := z.EncBinary() + _ = yym447 if false { } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq442[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym448 := z.EncBinary() + _ = yym448 if false { } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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.Kind)) + z.EncFallback(yy450) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq442[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy452 := &x.ListMeta + yym453 := z.EncBinary() + _ = yym453 if false { + } else if z.HasExtensions() && z.EncExt(yy452) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy452) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym455 := z.EncBinary() + _ = yym455 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym456 := z.EncBinary() + _ = yym456 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7268,25 +7844,25 @@ func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym457 := z.DecBinary() + _ = yym457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct458 := r.ContainerType() + if yyct458 == codecSelferValueTypeMap1234 { + yyl458 := r.ReadMapStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl458, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct458 == codecSelferValueTypeArray1234 { + yyl458 := r.ReadArrayStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl458, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7298,12 +7874,12 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -7312,51 +7888,51 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys459Slc = r.DecodeBytes(yys459Slc, true, true) + yys459 := string(yys459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys459 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv462 := &x.ListMeta + yym463 := z.DecBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv462) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv464 := &x.Items + yym465 := z.DecBinary() + _ = yym465 if false { } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv6), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys459) + } // end switch yys459 + } // end for yyj459 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7364,98 +7940,98 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj466 int + var yyb466 bool + var yyhl466 bool = l >= 0 + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv469 := &x.ListMeta + yym470 := z.DecBinary() + _ = yym470 + if false { + } else if z.HasExtensions() && z.DecExt(yyv469) { + } else { + z.DecFallback(yyv469, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv471 := &x.Items + yym472 := z.DecBinary() + _ = yym472 + if false { + } else { + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj466-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7467,136 +8043,136 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym473 := z.EncBinary() + _ = yym473 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn474 = 0 + for _, b := range yyq474 { if b { - yynn2++ + yynn474++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn474) + yynn474 = 0 } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq474[0] { + yym476 := z.EncBinary() + _ = yym476 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq474[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym477 := z.EncBinary() + _ = yym477 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq474[1] { + yym479 := z.EncBinary() + _ = yym479 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq474[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym480 := z.EncBinary() + _ = yym480 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq474[2] { + yy482 := &x.ObjectMeta + yy482.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq474[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy483 := &x.ObjectMeta + yy483.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq474[3] { + yy485 := &x.Spec + yy485.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq474[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy486 := &x.Spec + yy486.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq474[4] { + yy488 := &x.Status + yy488.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq474[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy489 := &x.Status + yy489.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7609,25 +8185,25 @@ func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym490 := z.DecBinary() + _ = yym490 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct491 := r.ContainerType() + if yyct491 == codecSelferValueTypeMap1234 { + yyl491 := r.ReadMapStart() + if yyl491 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl491, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct491 == codecSelferValueTypeArray1234 { + yyl491 := r.ReadArrayStart() + if yyl491 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl491, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7639,12 +8215,12 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -7653,47 +8229,47 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys492Slc = r.DecodeBytes(yys492Slc, true, true) + yys492 := string(yys492Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys492 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv495 := &x.ObjectMeta + yyv495.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeClaimSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv496 := &x.Spec + yyv496.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeClaimStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv497 := &x.Status + yyv497.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys492) + } // end switch yys492 + } // end for yyj492 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7701,104 +8277,104 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj498 int + var yyb498 bool + var yyhl498 bool = l >= 0 + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv501 := &x.ObjectMeta + yyv501.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeClaimSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv502 := &x.Spec + yyv502.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeClaimStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv503 := &x.Status + yyv503.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj498-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7810,139 +8386,139 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym504 := z.EncBinary() + _ = yym504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn505 = 1 + for _, b := range yyq505 { if b { - yynn2++ + yynn505++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn505) + yynn505 = 0 } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq505[0] { + yym507 := z.EncBinary() + _ = yym507 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq505[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym508 := z.EncBinary() + _ = yym508 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq505[1] { + yym510 := z.EncBinary() + _ = yym510 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq505[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym511 := z.EncBinary() + _ = yym511 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq505[2] { + yy513 := &x.ListMeta + yym514 := z.EncBinary() + _ = yym514 if false { + } else if z.HasExtensions() && z.EncExt(yy513) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy513) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy515 := &x.ListMeta + yym516 := z.EncBinary() + _ = yym516 if false { + } else if z.HasExtensions() && z.EncExt(yy515) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy515) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym518 := z.EncBinary() + _ = yym518 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7955,25 +8531,25 @@ func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym520 := z.DecBinary() + _ = yym520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct521 := r.ContainerType() + if yyct521 == codecSelferValueTypeMap1234 { + yyl521 := r.ReadMapStart() + if yyl521 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl521, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct521 == codecSelferValueTypeArray1234 { + yyl521 := r.ReadArrayStart() + if yyl521 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl521, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7985,12 +8561,12 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -7999,51 +8575,51 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys522Slc = r.DecodeBytes(yys522Slc, true, true) + yys522 := string(yys522Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv525 := &x.ListMeta + yym526 := z.DecBinary() + _ = yym526 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv525) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv525, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv527 := &x.Items + yym528 := z.DecBinary() + _ = yym528 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv6), d) + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys522) + } // end switch yys522 + } // end for yyj522 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8051,98 +8627,98 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj529 int + var yyb529 bool + var yyhl529 bool = l >= 0 + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv532 := &x.ListMeta + yym533 := z.DecBinary() + _ = yym533 + if false { + } else if z.HasExtensions() && z.DecExt(yyv532) { + } else { + z.DecFallback(yyv532, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv534 := &x.Items + yym535 := z.DecBinary() + _ = yym535 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym536 := z.EncBinary() + _ = yym536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.AccessModes) != 0 - yyq2[1] = x.Selector != nil - yyq2[2] = true - yyq2[3] = x.VolumeName != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn537 = 0 + for _, b := range yyq537 { if b { - yynn2++ + yynn537++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn537) + yynn537 = 0 } - if yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq537[0] { if x.AccessModes == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq537[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.Resources - yy10.CodecEncodeSelf(e) + if yyq537[2] { + yy545 := &x.Resources + yy545.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Resources - yy12.CodecEncodeSelf(e) + yy546 := &x.Resources + yy546.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + 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 yyq2[3] { + if yyq537[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym549 := z.EncBinary() + _ = yym549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym550 := z.DecBinary() + _ = yym550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct551 := r.ContainerType() + if yyct551 == codecSelferValueTypeMap1234 { + yyl551 := r.ReadMapStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl551, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct551 == codecSelferValueTypeArray1234 { + yyl551 := r.ReadArrayStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys552Slc = r.DecodeBytes(yys552Slc, true, true) + yys552 := string(yys552Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys552 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv4 := &x.AccessModes - yym5 := z.DecBinary() - _ = yym5 + yyv553 := &x.AccessModes + yym554 := z.DecBinary() + _ = yym554 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), 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) } - yym7 := z.DecBinary() - _ = yym7 + 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 { - yyv8 := &x.Resources - yyv8.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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj559 int + var yyb559 bool + var yyhl559 bool = l >= 0 + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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 { - yyv11 := &x.AccessModes - yym12 := z.DecBinary() - _ = yym12 + yyv560 := &x.AccessModes + yym561 := z.DecBinary() + _ = yym561 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv11), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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) } - yym14 := z.DecBinary() - _ = yym14 + yym563 := z.DecBinary() + _ = yym563 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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 { - yyv15 := &x.Resources - yyv15.CodecDecodeSelf(d) + yyv564 := &x.Resources + yyv564.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + if yyb559 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym566 := z.EncBinary() + _ = yym566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - yyq2[1] = len(x.AccessModes) != 0 - yyq2[2] = len(x.Capacity) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn567 = 0 + for _, b := range yyq567 { if b { - yynn2++ + yynn567++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn567) + yynn567 = 0 } - if yyr2 || yy2arr2 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq567[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq567[1] { if x.AccessModes == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym573 := z.DecBinary() + _ = yym573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct574 := r.ContainerType() + if yyct574 == codecSelferValueTypeMap1234 { + yyl574 := r.ReadMapStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl574, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct574 == codecSelferValueTypeArray1234 { + yyl574 := r.ReadArrayStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys575Slc = r.DecodeBytes(yys575Slc, true, true) + yys575 := string(yys575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys575 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -8681,25 +9257,25 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv5 := &x.AccessModes - yym6 := z.DecBinary() - _ = yym6 + yyv577 := &x.AccessModes + yym578 := z.DecBinary() + _ = yym578 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv5), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv7 := &x.Capacity - yyv7.CodecDecodeSelf(d) + yyv579 := &x.Capacity + yyv579.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys575) + } // end switch yys575 + } // end for yyj575 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8707,16 +9283,16 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj580 int + var yyb580 bool + var yyhl580 bool = l >= 0 + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8726,13 +9302,13 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8740,21 +9316,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv10 := &x.AccessModes - yym11 := z.DecBinary() - _ = yym11 + yyv582 := &x.AccessModes + yym583 := z.DecBinary() + _ = yym583 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv10), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8762,21 +9338,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv12 := &x.Capacity - yyv12.CodecDecodeSelf(d) + yyv584 := &x.Capacity + yyv584.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj580-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8785,8 +9361,8 @@ func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym585 := z.EncBinary() + _ = yym585 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -8798,8 +9374,8 @@ func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym586 := z.DecBinary() + _ = yym586 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -8811,8 +9387,8 @@ func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym587 := z.EncBinary() + _ = yym587 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -8824,8 +9400,8 @@ func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym588 := z.DecBinary() + _ = yym588 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -8837,8 +9413,8 @@ func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym589 := z.EncBinary() + _ = yym589 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -8850,8 +9426,8 @@ func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym590 := z.DecBinary() + _ = yym590 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -8866,33 +9442,33 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym591 := z.EncBinary() + _ = yym591 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn592 = 1 + for _, b := range yyq592 { if b { - yynn2++ + yynn592++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn592) + yynn592 = 0 } - if yyr2 || yy2arr2 { + if yyr592 || yy2arr592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym594 := z.EncBinary() + _ = yym594 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -8901,14 +9477,14 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym595 := z.EncBinary() + _ = yym595 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr592 || yy2arr592 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8921,25 +9497,25 @@ func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym596 := z.DecBinary() + _ = yym596 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct597 := r.ContainerType() + if yyct597 == codecSelferValueTypeMap1234 { + yyl597 := r.ReadMapStart() + if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl597, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct597 == codecSelferValueTypeArray1234 { + yyl597 := r.ReadArrayStart() + if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl597, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8951,12 +9527,12 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -8965,10 +9541,10 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys598Slc = r.DecodeBytes(yys598Slc, true, true) + yys598 := string(yys598Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys598 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -8976,9 +9552,9 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys598) + } // end switch yys598 + } // end for yyj598 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8986,16 +9562,16 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj600 int + var yyb600 bool + var yyhl600 bool = l >= 0 + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb5 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb5 { + if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9006,17 +9582,17 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Path = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb5 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb5 { + if yyb600 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj600-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9028,46 +9604,46 @@ func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym602 := z.EncBinary() + _ = yym602 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Medium != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn603 = 0 + for _, b := range yyq603 { if b { - yynn2++ + yynn603++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn603) + yynn603 = 0 } - if yyr2 || yy2arr2 { + if yyr603 || yy2arr603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq603[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq603[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr603 || yy2arr603 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9080,25 +9656,25 @@ func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym605 := z.DecBinary() + _ = yym605 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct606 := r.ContainerType() + if yyct606 == codecSelferValueTypeMap1234 { + yyl606 := r.ReadMapStart() + if yyl606 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl606, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct606 == codecSelferValueTypeArray1234 { + yyl606 := r.ReadArrayStart() + if yyl606 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl606, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9110,12 +9686,12 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -9124,10 +9700,10 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys607Slc = r.DecodeBytes(yys607Slc, true, true) + yys607 := string(yys607Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys607 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" @@ -9135,9 +9711,9 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Medium = StorageMedium(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys607) + } // end switch yys607 + } // end for yyj607 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9145,16 +9721,16 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj609 int + var yyb609 bool + var yyhl609 bool = l >= 0 + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l } else { - yyb5 = r.CheckBreak() + yyb609 = r.CheckBreak() } - if yyb5 { + if yyb609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9165,17 +9741,17 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Medium = StorageMedium(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l } else { - yyb5 = r.CheckBreak() + yyb609 = r.CheckBreak() } - if yyb5 { + if yyb609 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj609-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9184,8 +9760,8 @@ func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym615 := z.EncBinary() + _ = yym615 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - yyq2[2] = x.Partition != 0 - yyq2[3] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn616 = 1 + for _, b := range yyq616 { if b { - yynn2++ + yynn616++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn616) + yynn616 = 0 } - if yyr2 || yy2arr2 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym619 := z.EncBinary() + _ = yym619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } - if yyr2 || yy2arr2 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq616[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym622 := z.EncBinary() + _ = yym622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq616[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym625 := z.EncBinary() + _ = yym625 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr2 || yy2arr2 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq616[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym628 := z.EncBinary() + _ = yym628 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym629 := z.DecBinary() + _ = yym629 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct630 := r.ContainerType() + if yyct630 == codecSelferValueTypeMap1234 { + yyl630 := r.ReadMapStart() + if yyl630 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl630, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct630 == codecSelferValueTypeArray1234 { + yyl630 := r.ReadArrayStart() + if yyl630 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys631Slc = r.DecodeBytes(yys631Slc, true, true) + yys631 := string(yys631Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj636 int + var yyb636 bool + var yyhl636 bool = l >= 0 + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb8 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb8 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb8 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb8 { + 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)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb8 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb8 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb8 { + if yyb636 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym641 := z.EncBinary() + _ = yym641 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.TargetPortal != "" - yyq2[1] = x.IQN != "" - yyq2[2] = x.Lun != 0 - yyq2[3] = x.ISCSIInterface != "" - yyq2[4] = x.FSType != "" - yyq2[5] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn642 = 0 + for _, b := range yyq642 { if b { - yynn2++ + yynn642++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn642) + yynn642 = 0 } - if yyr2 || yy2arr2 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq642[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym645 := z.EncBinary() + _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } - if yyr2 || yy2arr2 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq642[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym648 := z.EncBinary() + _ = yym648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } - if yyr2 || yy2arr2 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq642[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym651 := z.EncBinary() + _ = yym651 if false { } else { r.EncodeInt(int64(x.Lun)) } } } - if yyr2 || yy2arr2 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq642[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym654 := z.EncBinary() + _ = yym654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } - if yyr2 || yy2arr2 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq642[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym657 := z.EncBinary() + _ = yym657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq642[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym660 := z.EncBinary() + _ = yym660 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym661 := z.DecBinary() + _ = yym661 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct662 := r.ContainerType() + if yyct662 == codecSelferValueTypeMap1234 { + yyl662 := r.ReadMapStart() + if yyl662 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl662, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct662 == codecSelferValueTypeArray1234 { + yyl662 := r.ReadArrayStart() + if yyl662 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys663Slc = r.DecodeBytes(yys663Slc, true, true) + yys663 := string(yys663Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj670 int + var yyb670 bool + var yyhl670 bool = l >= 0 + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + 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)) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb10 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb10 { + if yyb670 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym677 := z.EncBinary() + _ = yym677 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.FSType != "" - yyq2[3] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn678 = 2 + for _, b := range yyq678 { if b { - yynn2++ + yynn678++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn678) + yynn678 = 0 } - if yyr2 || yy2arr2 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym681 := z.EncBinary() + _ = yym681 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } - if yyr2 || yy2arr2 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { - yy7 := *x.Lun - yym8 := z.EncBinary() - _ = yym8 + yy683 := *x.Lun + yym684 := z.EncBinary() + _ = yym684 if false { } else { - r.EncodeInt(int64(yy7)) + r.EncodeInt(int64(yy683)) } } } else { @@ -10026,20 +10602,20 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Lun == nil { r.EncodeNil() } else { - yy9 := *x.Lun - yym10 := z.EncBinary() - _ = yym10 + yy685 := *x.Lun + yym686 := z.EncBinary() + _ = yym686 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy685)) } } } - if yyr2 || yy2arr2 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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 yyq2[2] { + if yyq678[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym689 := z.EncBinary() + _ = yym689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + 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 yyq2[3] { + if yyq678[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym692 := z.EncBinary() + _ = yym692 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym693 := z.DecBinary() + _ = yym693 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct694 := r.ContainerType() + if yyct694 == codecSelferValueTypeMap1234 { + yyl694 := r.ReadMapStart() + if yyl694 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl694, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct694 == codecSelferValueTypeArray1234 { + yyl694 := r.ReadArrayStart() + if yyl694 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys695Slc = r.DecodeBytes(yys695Slc, true, true) + yys695 := string(yys695Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys695 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv4 := &x.TargetWWNs - yym5 := z.DecBinary() - _ = yym5 + yyv696 := &x.TargetWWNs + yym697 := z.DecBinary() + _ = yym697 if false { } else { - z.F.DecSliceStringX(yyv4, 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) } - yym7 := z.DecBinary() - _ = yym7 + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj702 int + var yyb702 bool + var yyhl702 bool = l >= 0 + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb10 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb10 { + 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 { - yyv11 := &x.TargetWWNs - yym12 := z.DecBinary() - _ = yym12 + yyv703 := &x.TargetWWNs + yym704 := z.DecBinary() + _ = yym704 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv703, false, d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb10 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb10 { + 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) } - yym14 := z.DecBinary() - _ = yym14 + yym706 := z.DecBinary() + _ = yym706 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb10 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb10 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb10 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb10 { + if yyb702 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym709 := z.EncBinary() + _ = yym709 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[1] = x.FSType != "" - yyq2[2] = x.SecretRef != nil - yyq2[3] = x.ReadOnly != false - yyq2[4] = len(x.Options) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn710 = 1 + for _, b := range yyq710 { if b { - yynn2++ + yynn710++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn710) + yynn710 = 0 } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym713 := z.EncBinary() + _ = yym713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq710[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym716 := z.EncBinary() + _ = yym716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq710[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym720 := z.EncBinary() + _ = yym720 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq710[4] { if x.Options == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym724 := z.DecBinary() + _ = yym724 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct725 := r.ContainerType() + if yyct725 == codecSelferValueTypeMap1234 { + yyl725 := r.ReadMapStart() + if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl725, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct725 == codecSelferValueTypeArray1234 { + yyl725 := r.ReadArrayStart() + if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys726Slc = r.DecodeBytes(yys726Slc, true, true) + yys726 := string(yys726Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv8 := &x.Options - yym9 := z.DecBinary() - _ = yym9 + yyv731 := &x.Options + yym732 := z.DecBinary() + _ = yym732 if false { } else { - z.F.DecMapStringStringX(yyv8, false, d) + z.F.DecMapStringStringX(yyv731, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj733 int + var yyb733 bool + var yyhl733 bool = l >= 0 + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb10 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb10 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb10 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb10 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10624,13 +11200,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb10 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb10 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb10 { + 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 { - yyv15 := &x.Options - yym16 := z.DecBinary() - _ = yym16 + yyv738 := &x.Options + yym739 := z.DecBinary() + _ = yym739 if false { } else { - z.F.DecMapStringStringX(yyv15, false, d) + z.F.DecMapStringStringX(yyv738, false, d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb10 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb10 { + if yyb733 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym740 := z.EncBinary() + _ = yym740 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - yyq2[2] = x.Partition != 0 - yyq2[3] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn741 = 1 + for _, b := range yyq741 { if b { - yynn2++ + yynn741++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn741) + yynn741 = 0 } - if yyr2 || yy2arr2 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym744 := z.EncBinary() + _ = yym744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr2 || yy2arr2 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq741[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym747 := z.EncBinary() + _ = yym747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq741[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym750 := z.EncBinary() + _ = yym750 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr2 || yy2arr2 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq741[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym753 := z.EncBinary() + _ = yym753 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym754 := z.DecBinary() + _ = yym754 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct755 := r.ContainerType() + if yyct755 == codecSelferValueTypeMap1234 { + yyl755 := r.ReadMapStart() + if yyl755 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl755, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct755 == codecSelferValueTypeArray1234 { + yyl755 := r.ReadArrayStart() + if yyl755 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys756Slc = r.DecodeBytes(yys756Slc, true, true) + yys756 := string(yys756Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj761 int + var yyb761 bool + var yyhl761 bool = l >= 0 + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb8 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb8 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb8 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb8 { + 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)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb8 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb8 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb8 { + if yyb761 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym766 := z.EncBinary() + _ = yym766 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Revision != "" - yyq2[2] = x.Directory != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn767 = 1 + for _, b := range yyq767 { if b { - yynn2++ + yynn767++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn767) + yynn767 = 0 } - if yyr2 || yy2arr2 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym770 := z.EncBinary() + _ = yym770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } - if yyr2 || yy2arr2 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq767[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym773 := z.EncBinary() + _ = yym773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } - if yyr2 || yy2arr2 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq767[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym776 := z.EncBinary() + _ = yym776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym777 := z.DecBinary() + _ = yym777 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct778 := r.ContainerType() + if yyct778 == codecSelferValueTypeMap1234 { + yyl778 := r.ReadMapStart() + if yyl778 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl778, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct778 == codecSelferValueTypeArray1234 { + yyl778 := r.ReadArrayStart() + if yyl778 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys779Slc = r.DecodeBytes(yys779Slc, true, true) + yys779 := string(yys779Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj783 int + var yyb783 bool + var yyhl783 bool = l >= 0 + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb7 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb7 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb7 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb7 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb7 { + if yyb783 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym787 := z.EncBinary() + _ = yym787 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.SecretName != "" - yyq2[1] = len(x.Items) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn788 = 0 + for _, b := range yyq788 { if b { - yynn2++ + yynn788++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn788) + yynn788 = 0 } - if yyr2 || yy2arr2 { + if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq788[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym791 := z.EncBinary() + _ = yym791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr2 || yy2arr2 { + if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq788[1] { if x.Items == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym800 := z.DecBinary() + _ = yym800 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct801 := r.ContainerType() + if yyct801 == codecSelferValueTypeMap1234 { + yyl801 := r.ReadMapStart() + if yyl801 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl801, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct801 == codecSelferValueTypeArray1234 { + yyl801 := r.ReadArrayStart() + if yyl801 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys802Slc = r.DecodeBytes(yys802Slc, true, true) + yys802 := string(yys802Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Items - yym6 := z.DecBinary() - _ = yym6 + yyv804 := &x.Items + yym805 := z.DecBinary() + _ = yym805 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv5), 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj808 int + var yyb808 bool + var yyhl808 bool = l >= 0 + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l } else { - yyb7 = r.CheckBreak() + yyb808 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l } else { - yyb7 = r.CheckBreak() + yyb808 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.Items - yym10 := z.DecBinary() - _ = yym10 + yyv810 := &x.Items + yym811 := z.DecBinary() + _ = yym811 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv9), 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l } else { - yyb7 = r.CheckBreak() + yyb808 = r.CheckBreak() } - if yyb7 { + if yyb808 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym814 := z.EncBinary() + _ = yym814 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn815 = 2 + for _, b := range yyq815 { if b { - yynn2++ + yynn815++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn815) + yynn815 = 0 } - if yyr2 || yy2arr2 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym818 := z.EncBinary() + _ = yym818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } - if yyr2 || yy2arr2 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym821 := z.EncBinary() + _ = yym821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq815[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym824 := z.EncBinary() + _ = yym824 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym825 := z.DecBinary() + _ = yym825 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct826 := r.ContainerType() + if yyct826 == codecSelferValueTypeMap1234 { + yyl826 := r.ReadMapStart() + if yyl826 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl826, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct826 == codecSelferValueTypeArray1234 { + yyl826 := r.ReadArrayStart() + if yyl826 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys827Slc = r.DecodeBytes(yys827Slc, true, true) + yys827 := string(yys827Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj831 int + var yyb831 bool + var yyhl831 bool = l >= 0 + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb7 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb7 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb7 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb7 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb7 { + if yyb831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym866 := z.EncBinary() + _ = yym866 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn867 = 2 + for _, b := range yyq867 { if b { - yynn2++ + yynn867++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn867) + yynn867 = 0 } - if yyr2 || yy2arr2 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym870 := z.EncBinary() + _ = yym870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } - if yyr2 || yy2arr2 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym873 := z.EncBinary() + _ = yym873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq867[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym876 := z.EncBinary() + _ = yym876 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym877 := z.DecBinary() + _ = yym877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct878 := r.ContainerType() + if yyct878 == codecSelferValueTypeMap1234 { + yyl878 := r.ReadMapStart() + if yyl878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl878, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct878 == codecSelferValueTypeArray1234 { + yyl878 := r.ReadArrayStart() + if yyl878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys879Slc = r.DecodeBytes(yys879Slc, true, true) + yys879 := string(yys879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj883 int + var yyb883 bool + var yyhl883 bool = l >= 0 + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb7 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb7 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb7 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb7 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb7 { + if yyb883 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym887 := z.EncBinary() + _ = yym887 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.FSType != "" - yyq2[3] = x.RBDPool != "" - yyq2[4] = x.RadosUser != "" - yyq2[5] = x.Keyring != "" - yyq2[6] = x.SecretRef != nil - yyq2[7] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn888 = 2 + for _, b := range yyq888 { if b { - yynn2++ + yynn888++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn888) + yynn888 = 0 } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym891 := z.EncBinary() + _ = yym891 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym894 := z.EncBinary() + _ = yym894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq888[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym897 := z.EncBinary() + _ = yym897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq888[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym900 := z.EncBinary() + _ = yym900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq888[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym903 := z.EncBinary() + _ = yym903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq888[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym906 := z.EncBinary() + _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } - if yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[7] { + if yyq888[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym910 := z.EncBinary() + _ = yym910 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym911 := z.DecBinary() + _ = yym911 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct912 := r.ContainerType() + if yyct912 == codecSelferValueTypeMap1234 { + yyl912 := r.ReadMapStart() + if yyl912 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl912, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct912 == codecSelferValueTypeArray1234 { + yyl912 := r.ReadArrayStart() + if yyl912 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys913Slc = r.DecodeBytes(yys913Slc, true, true) + yys913 := string(yys913Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys913 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv4 := &x.CephMonitors - yym5 := z.DecBinary() - _ = yym5 + yyv914 := &x.CephMonitors + yym915 := z.DecBinary() + _ = yym915 if false { } else { - z.F.DecSliceStringX(yyv4, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj923 int + var yyb923 bool + var yyhl923 bool = l >= 0 + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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 { - yyv14 := &x.CephMonitors - yym15 := z.DecBinary() - _ = yym15 + yyv924 := &x.CephMonitors + yym925 := z.DecBinary() + _ = yym925 if false { } else { - z.F.DecSliceStringX(yyv14, false, d) + z.F.DecSliceStringX(yyv924, false, d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12468,13 +13469,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + 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 { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb13 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb13 { + if yyb923 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-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 { - yym1 := z.EncBinary() - _ = yym1 + yym933 := z.EncBinary() + _ = yym933 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn934 = 1 + for _, b := range yyq934 { if b { - yynn2++ + yynn934++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn934) + yynn934 = 0 } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym937 := z.EncBinary() + _ = yym937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq934[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym940 := z.EncBinary() + _ = yym940 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq934[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym943 := z.EncBinary() + _ = yym943 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym944 := z.DecBinary() + _ = yym944 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct945 := r.ContainerType() + if yyct945 == codecSelferValueTypeMap1234 { + yyl945 := r.ReadMapStart() + if yyl945 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl945, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct945 == codecSelferValueTypeArray1234 { + yyl945 := r.ReadArrayStart() + if yyl945 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys946Slc = r.DecodeBytes(yys946Slc, true, true) + yys946 := string(yys946Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj950 int + var yyb950 bool + var yyhl950 bool = l >= 0 + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb7 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb7 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb7 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb7 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb7 { + if yyb950 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym954 := z.EncBinary() + _ = yym954 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Path != "" - yyq2[2] = x.User != "" - yyq2[3] = x.SecretFile != "" - yyq2[4] = x.SecretRef != nil - yyq2[5] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn955 = 1 + for _, b := range yyq955 { if b { - yynn2++ + yynn955++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn955) + yynn955 = 0 } - if yyr2 || yy2arr2 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym958 := z.EncBinary() + _ = yym958 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } - if yyr2 || yy2arr2 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq955[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym961 := z.EncBinary() + _ = yym961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq955[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym964 := z.EncBinary() + _ = yym964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr2 || yy2arr2 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq955[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym967 := z.EncBinary() + _ = yym967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } - if yyr2 || yy2arr2 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq955[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym971 := z.EncBinary() + _ = yym971 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym972 := z.DecBinary() + _ = yym972 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct973 := r.ContainerType() + if yyct973 == codecSelferValueTypeMap1234 { + yyl973 := r.ReadMapStart() + if yyl973 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl973, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct973 == codecSelferValueTypeArray1234 { + yyl973 := r.ReadArrayStart() + if yyl973 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys974Slc = r.DecodeBytes(yys974Slc, true, true) + yys974 := string(yys974Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys974 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv4 := &x.Monitors - yym5 := z.DecBinary() - _ = yym5 + yyv975 := &x.Monitors + yym976 := z.DecBinary() + _ = yym976 if false { } else { - z.F.DecSliceStringX(yyv4, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj982 int + var yyb982 bool + var yyhl982 bool = l >= 0 + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + 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 { - yyv12 := &x.Monitors - yym13 := z.DecBinary() - _ = yym13 + yyv983 := &x.Monitors + yym984 := z.DecBinary() + _ = yym984 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv983, false, d) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13156,13 +14157,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SecretRef.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + 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 { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb11 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb11 { + if yyb982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-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 { - yym1 := z.EncBinary() - _ = yym1 + yym990 := z.EncBinary() + _ = yym990 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn991 = 1 + for _, b := range yyq991 { if b { - yynn2++ + yynn991++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn991) + yynn991 = 0 } - if yyr2 || yy2arr2 { + if yyr991 || yy2arr991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym994 := z.EncBinary() + _ = yym994 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym995 := z.DecBinary() + _ = yym995 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct996 := r.ContainerType() + if yyct996 == codecSelferValueTypeMap1234 { + yyl996 := r.ReadMapStart() + if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl996, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct996 == codecSelferValueTypeArray1234 { + yyl996 := r.ReadArrayStart() + if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys997Slc = r.DecodeBytes(yys997Slc, true, true) + yys997 := string(yys997Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj999 int + var yyb999 bool + var yyhl999 bool = l >= 0 + yyj999++ + if yyhl999 { + yyb999 = yyj999 > l } else { - yyb5 = r.CheckBreak() + yyb999 = r.CheckBreak() } - if yyb5 { + 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 { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj999++ + if yyhl999 { + yyb999 = yyj999 > l } else { - yyb5 = r.CheckBreak() + yyb999 = r.CheckBreak() } - if yyb5 { + if yyb999 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Items) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1002 = 0 + for _, b := range yyq1002 { if b { - yynn2++ + yynn1002++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1002) + yynn1002 = 0 } - if yyr2 || yy2arr2 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1002[0] { if x.Items == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1011 := z.DecBinary() + _ = yym1011 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1012 := r.ContainerType() + if yyct1012 == codecSelferValueTypeMap1234 { + yyl1012 := r.ReadMapStart() + if yyl1012 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1012, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1012 == codecSelferValueTypeArray1234 { + yyl1012 := r.ReadArrayStart() + if yyl1012 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1013Slc = r.DecodeBytes(yys1013Slc, true, true) + yys1013 := string(yys1013Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1013 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv1014 := &x.Items + yym1015 := z.DecBinary() + _ = yym1015 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4), 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1018 int + var yyb1018 bool + var yyhl1018 bool = l >= 0 + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb6 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Items - yym8 := z.DecBinary() - _ = yym8 + yyv1019 := &x.Items + yym1020 := z.DecBinary() + _ = yym1020 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv7), 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb6 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb6 { + if yyb1018 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1023 := z.EncBinary() + _ = yym1023 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FieldRef != nil - yyq2[2] = x.ResourceFieldRef != nil - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1024 = 1 + for _, b := range yyq1024 { if b { - yynn2++ + yynn1024++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1024) + yynn1024 = 0 } - if yyr2 || yy2arr2 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1027 := z.EncBinary() + _ = yym1027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1035 := z.DecBinary() + _ = yym1035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1036 := r.ContainerType() + if yyct1036 == codecSelferValueTypeMap1234 { + yyl1036 := r.ReadMapStart() + if yyl1036 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1036, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1036 == codecSelferValueTypeArray1234 { + yyl1036 := r.ReadArrayStart() + if yyl1036 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1037Slc = r.DecodeBytes(yys1037Slc, true, true) + yys1037 := string(yys1037Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1043 int + var yyb1043 bool + var yyhl1043 bool = l >= 0 + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb7 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb7 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb7 { + if yyb1043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13776,13 +14907,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.FieldRef.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb7 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb7 { + if yyb1043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13797,18 +14928,44 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.ResourceFieldRef.CodecDecodeSelf(d) } + 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 + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1048 := z.DecBinary() + _ = yym1048 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb7 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb7 { + if yyb1043 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1049 := z.EncBinary() + _ = yym1049 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1050 = 2 + for _, b := range yyq1050 { if b { - yynn2++ + yynn1050++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1050) + yynn1050 = 0 } - if yyr2 || yy2arr2 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1053 := z.EncBinary() + _ = yym1053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } - if yyr2 || yy2arr2 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1056 := z.EncBinary() + _ = yym1056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } - if yyr2 || yy2arr2 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1050[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1059 := z.EncBinary() + _ = yym1059 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1060 := z.DecBinary() + _ = yym1060 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1061 := r.ContainerType() + if yyct1061 == codecSelferValueTypeMap1234 { + yyl1061 := r.ReadMapStart() + if yyl1061 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1061, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1061 == codecSelferValueTypeArray1234 { + yyl1061 := r.ReadArrayStart() + if yyl1061 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1062Slc = r.DecodeBytes(yys1062Slc, true, true) + yys1062 := string(yys1062Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1066 int + var yyb1066 bool + var yyhl1066 bool = l >= 0 + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb7 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb7 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb7 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb7 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb7 { + if yyb1066 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1070 := z.EncBinary() + _ = yym1070 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1071 = 1 + for _, b := range yyq1071 { if b { - yynn2++ + yynn1071++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1071) + yynn1071 = 0 } - if yyr2 || yy2arr2 { + if yyr1071 || yy2arr1071 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1074 := z.EncBinary() + _ = yym1074 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } - if yyr2 || yy2arr2 { + if yyr1071 || yy2arr1071 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1071[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1077 := z.EncBinary() + _ = yym1077 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1078 := z.DecBinary() + _ = yym1078 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1079 := r.ContainerType() + if yyct1079 == codecSelferValueTypeMap1234 { + yyl1079 := r.ReadMapStart() + if yyl1079 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1079, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1079 == codecSelferValueTypeArray1234 { + yyl1079 := r.ReadArrayStart() + if yyl1079 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1080Slc = r.DecodeBytes(yys1080Slc, true, true) + yys1080 := string(yys1080Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1083 int + var yyb1083 bool + var yyhl1083 bool = l >= 0 + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l } else { - yyb6 = r.CheckBreak() + yyb1083 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l } else { - yyb6 = r.CheckBreak() + yyb1083 = r.CheckBreak() } - if yyb6 { + if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14259,89 +15416,500 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code x.FSType = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l } else { - yyb6 = r.CheckBreak() + yyb1083 = r.CheckBreak() } - if yyb6 { + if yyb1083 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1083-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { +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 { - yym1 := z.EncBinary() - _ = yym1 + yym1088 := z.EncBinary() + _ = yym1088 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Items) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1089 = 2 + for _, b := range yyq1089 { if b { - yynn2++ + yynn1089++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1089) + yynn1089 = 0 } - if yyr2 || yy2arr2 { + if yyr1089 || yy2arr1089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - if x.Items == nil { + 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 { - yym4 := z.EncBinary() - _ = yym4 + yy1100 := *x.FSType + yym1101 := z.EncBinary() + _ = yym1101 if false { } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(yy1100)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1089[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { + if x.FSType == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yy1102 := *x.FSType + yym1103 := z.EncBinary() + _ = yym1103 if false { } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(yy1102)) } } } } - if yyr2 || yy2arr2 { + if yyr1089 || yy2arr1089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) +} + +func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1127 := z.EncBinary() + _ = yym1127 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1128 = 1 + for _, b := range yyq1128 { + if b { + yynn1128++ + } + } + r.EncodeMapStart(yynn1128) + yynn1128 = 0 + } + if yyr1128 || yy2arr1128 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1130 := z.EncBinary() + _ = yym1130 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -14350,14 +15918,82 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1131 := z.EncBinary() + _ = yym1131 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1128 || yy2arr1128 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1128[1] { + if x.Items == nil { + r.EncodeNil() + } else { + yym1133 := z.EncBinary() + _ = yym1133 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1128[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1134 := z.EncBinary() + _ = yym1134 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1140 := z.DecBinary() + _ = yym1140 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1141 := r.ContainerType() + if yyct1141 == codecSelferValueTypeMap1234 { + yyl1141 := r.ReadMapStart() + if yyl1141 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1141, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1141 == codecSelferValueTypeArray1234 { + yyl1141 := r.ReadArrayStart() + if yyl1141 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,32 +16050,48 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1142Slc = r.DecodeBytes(yys1142Slc, true, true) + yys1142 := string(yys1142Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1142 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv1144 := &x.Items + yym1145 := z.DecBinary() + _ = yym1145 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv4), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1144), d) } } - case "Name": + case "defaultMode": if r.TryDecodeAsNil() { - x.Name = "" + if x.DefaultMode != nil { + x.DefaultMode = nil + } } else { - x.Name = string(r.DecodeString()) + 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1142) + } // end switch yys1142 + } // end for yyj1142 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14447,16 +16099,32 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1148 int + var yyb1148 bool + var yyhl1148 bool = l >= 0 + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb7 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb7 { + if yyb1148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l + } else { + yyb1148 = r.CheckBreak() + } + if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14464,42 +16132,52 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv8 := &x.Items - yym9 := z.DecBinary() - _ = yym9 + yyv1150 := &x.Items + yym1151 := z.DecBinary() + _ = yym1151 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv8), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1150), d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb7 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb7 { + if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + if x.DefaultMode != nil { + x.DefaultMode = nil + } } else { - x.Name = string(r.DecodeString()) + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1153 := z.DecBinary() + _ = yym1153 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) + } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb7 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb7 { + if yyb1148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1154 := z.EncBinary() + _ = yym1154 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1155 = 2 + for _, b := range yyq1155 { if b { - yynn2++ + yynn1155++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1155) + yynn1155 = 0 } - if yyr2 || yy2arr2 { + if yyr1155 || yy2arr1155 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1158 := z.EncBinary() + _ = yym1158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr1155 || yy2arr1155 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1161 := z.EncBinary() + _ = yym1161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1167 := z.DecBinary() + _ = yym1167 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1168 := r.ContainerType() + if yyct1168 == codecSelferValueTypeMap1234 { + yyl1168 := r.ReadMapStart() + if yyl1168 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1168, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1168 == codecSelferValueTypeArray1234 { + yyl1168 := r.ReadArrayStart() + if yyl1168 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1169Slc = r.DecodeBytes(yys1169Slc, true, true) + yys1169 := string(yys1169Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1174 int + var yyb1174 bool + var yyhl1174 bool = l >= 0 + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l } else { - yyb6 = r.CheckBreak() + yyb1174 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l } else { - yyb6 = r.CheckBreak() + yyb1174 = r.CheckBreak() } - if yyb6 { + 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()) } + 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 + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1178 := z.DecBinary() + _ = yym1178 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l } else { - yyb6 = r.CheckBreak() + yyb1174 = r.CheckBreak() } - if yyb6 { + if yyb1174 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1179 := z.EncBinary() + _ = yym1179 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.Name != "" - yyq2[1] = x.HostPort != 0 - yyq2[3] = x.Protocol != "" - yyq2[4] = x.HostIP != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1180 = 1 + for _, b := range yyq1180 { if b { - yynn2++ + yynn1180++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1180) + yynn1180 = 0 } - if yyr2 || yy2arr2 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1180[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1183 := z.EncBinary() + _ = yym1183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1180[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1186 := z.EncBinary() + _ = yym1186 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } - if yyr2 || yy2arr2 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } - if yyr2 || yy2arr2 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1180[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1180[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq1180[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1193 := z.EncBinary() + _ = yym1193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1194 := z.DecBinary() + _ = yym1194 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1195 := r.ContainerType() + if yyct1195 == codecSelferValueTypeMap1234 { + yyl1195 := r.ReadMapStart() + if yyl1195 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1195, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1195 == codecSelferValueTypeArray1234 { + yyl1195 := r.ReadArrayStart() + if yyl1195 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1196Slc = r.DecodeBytes(yys1196Slc, true, true) + yys1196 := string(yys1196Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj1202 int + var yyb1202 bool + var yyhl1202 bool = l >= 0 + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb9 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb9 { + 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()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb9 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb9 { + 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)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb9 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb9 { + 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)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb9 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb9 { + 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()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb9 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb9 { + 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 { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb9 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb9 { + if yyb1202 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1208 := z.EncBinary() + _ = yym1208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.ReadOnly != false - yyq2[3] = x.SubPath != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1209 = 2 + for _, b := range yyq1209 { if b { - yynn2++ + yynn1209++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1209) + yynn1209 = 0 } - if yyr2 || yy2arr2 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1212 := z.EncBinary() + _ = yym1212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1209[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1215 := z.EncBinary() + _ = yym1215 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym1218 := z.EncBinary() + _ = yym1218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } - if yyr2 || yy2arr2 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq1209[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1221 := z.EncBinary() + _ = yym1221 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1222 := z.DecBinary() + _ = yym1222 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1223 := r.ContainerType() + if yyct1223 == codecSelferValueTypeMap1234 { + yyl1223 := r.ReadMapStart() + if yyl1223 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1223, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1223 == codecSelferValueTypeArray1234 { + yyl1223 := r.ReadArrayStart() + if yyl1223 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1224Slc = r.DecodeBytes(yys1224Slc, true, true) + yys1224 := string(yys1224Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1229 int + var yyb1229 bool + var yyhl1229 bool = l >= 0 + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb8 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb8 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb8 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb8 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb8 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb8 { + if yyb1229 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1234 := z.EncBinary() + _ = yym1234 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Value != "" - yyq2[2] = x.ValueFrom != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1235 = 1 + for _, b := range yyq1235 { if b { - yynn2++ + yynn1235++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1235) + yynn1235 = 0 } - if yyr2 || yy2arr2 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1238 := z.EncBinary() + _ = yym1238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1235[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1241 := z.EncBinary() + _ = yym1241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2 || yy2arr2 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1243 := z.DecBinary() + _ = yym1243 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1244 := r.ContainerType() + if yyct1244 == codecSelferValueTypeMap1234 { + yyl1244 := r.ReadMapStart() + if yyl1244 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1244, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1244 == codecSelferValueTypeArray1234 { + yyl1244 := r.ReadArrayStart() + if yyl1244 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1245Slc = r.DecodeBytes(yys1245Slc, true, true) + yys1245 := string(yys1245Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1249 int + var yyb1249 bool + var yyhl1249 bool = l >= 0 + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb7 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb7 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb7 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb7 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb7 { + if yyb1249 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1253 := z.EncBinary() + _ = yym1253 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.FieldRef != nil - yyq2[1] = x.ResourceFieldRef != nil - yyq2[2] = x.ConfigMapKeyRef != nil - yyq2[3] = x.SecretKeyRef != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1254 = 0 + for _, b := range yyq1254 { if b { - yynn2++ + yynn1254++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1254) + yynn1254 = 0 } - if yyr2 || yy2arr2 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1259 := z.DecBinary() + _ = yym1259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1260 := r.ContainerType() + if yyct1260 == codecSelferValueTypeMap1234 { + yyl1260 := r.ReadMapStart() + if yyl1260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1260, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1260 == codecSelferValueTypeArray1234 { + yyl1260 := r.ReadArrayStart() + if yyl1260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1261Slc = r.DecodeBytes(yys1261Slc, true, true) + yys1261 := string(yys1261Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1266 int + var yyb1266 bool + var yyhl1266 bool = l >= 0 + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15882,13 +17638,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FieldRef.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15903,13 +17659,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15924,13 +17680,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMapKeyRef.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1271 := z.EncBinary() + _ = yym1271 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1272 = 2 + for _, b := range yyq1272 { if b { - yynn2++ + yynn1272++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1272) + yynn1272 = 0 } - if yyr2 || yy2arr2 { + if yyr1272 || yy2arr1272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1275 := z.EncBinary() + _ = yym1275 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr2 || yy2arr2 { + if yyr1272 || yy2arr1272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1278 := z.EncBinary() + _ = yym1278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1279 := z.DecBinary() + _ = yym1279 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1280 := r.ContainerType() + if yyct1280 == codecSelferValueTypeMap1234 { + yyl1280 := r.ReadMapStart() + if yyl1280 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1280, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1280 == codecSelferValueTypeArray1234 { + yyl1280 := r.ReadArrayStart() + if yyl1280 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1281Slc = r.DecodeBytes(yys1281Slc, true, true) + yys1281 := string(yys1281Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1284 int + var yyb1284 bool + var yyhl1284 bool = l >= 0 + yyj1284++ + if yyhl1284 { + yyb1284 = yyj1284 > l } else { - yyb6 = r.CheckBreak() + yyb1284 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1284++ + if yyhl1284 { + yyb1284 = yyj1284 > l } else { - yyb6 = r.CheckBreak() + yyb1284 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1284++ + if yyhl1284 { + yyb1284 = yyj1284 > l } else { - yyb6 = r.CheckBreak() + yyb1284 = r.CheckBreak() } - if yyb6 { + if yyb1284 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1287 := z.EncBinary() + _ = yym1287 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.ContainerName != "" - yyq2[2] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1288 = 1 + for _, b := range yyq1288 { if b { - yynn2++ + yynn1288++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1288) + yynn1288 = 0 } - if yyr2 || yy2arr2 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1288[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1291 := z.EncBinary() + _ = yym1291 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } - if yyr2 || yy2arr2 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1294 := z.EncBinary() + _ = yym1294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr2 || yy2arr2 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.Divisor - yym11 := z.EncBinary() - _ = yym11 + if yyq1288[2] { + yy1296 := &x.Divisor + yym1297 := z.EncBinary() + _ = yym1297 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy1296) { + } else if !yym1297 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1296) } else { - z.EncFallback(yy10) + z.EncFallback(yy1296) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1288[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Divisor - yym13 := z.EncBinary() - _ = yym13 + yy1298 := &x.Divisor + yym1299 := z.EncBinary() + _ = yym1299 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy1298) { + } else if !yym1299 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1298) } else { - z.EncFallback(yy12) + z.EncFallback(yy1298) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1300 := z.DecBinary() + _ = yym1300 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1301 := r.ContainerType() + if yyct1301 == codecSelferValueTypeMap1234 { + yyl1301 := r.ReadMapStart() + if yyl1301 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1301, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1301 == codecSelferValueTypeArray1234 { + yyl1301 := r.ReadArrayStart() + if yyl1301 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1302Slc = r.DecodeBytes(yys1302Slc, true, true) + yys1302 := string(yys1302Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.Divisor - yym7 := z.DecBinary() - _ = yym7 + yyv1305 := &x.Divisor + yym1306 := z.DecBinary() + _ = yym1306 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv1305) { + } else if !yym1306 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1305) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv1305, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1307 int + var yyb1307 bool + var yyhl1307 bool = l >= 0 + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb8 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb8 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb8 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Divisor - yym12 := z.DecBinary() - _ = yym12 + yyv1310 := &x.Divisor + yym1311 := z.DecBinary() + _ = yym1311 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv1310) { + } else if !yym1311 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1310) } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv1310, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb8 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb8 { + if yyb1307 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1307-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16455,68 +18211,68 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1312 := z.EncBinary() + _ = yym1312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1313 = 2 + for _, b := range yyq1313 { if b { - yynn2++ + yynn1313++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1313) + yynn1313 = 0 } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1315 := z.EncBinary() + _ = yym1315 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("key")) + r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1316 := z.EncBinary() + _ = yym1316 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym1318 := z.EncBinary() + _ = yym1318 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Name")) + r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1319 := z.EncBinary() + _ = yym1319 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1320 := z.DecBinary() + _ = yym1320 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1321 := r.ContainerType() + if yyct1321 == codecSelferValueTypeMap1234 { + yyl1321 := r.ReadMapStart() + if yyl1321 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1321, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1321 == codecSelferValueTypeArray1234 { + yyl1321 := r.ReadArrayStart() + if yyl1321 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,356 +18329,153 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1322Slc = r.DecodeBytes(yys1322Slc, true, true) + yys1322 := string(yys1322Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } + switch yys1322 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SecretKeySelector) 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 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("key")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 - 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) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1322) + } // end switch yys1322 + } // end for yyj1322 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1325 int + var yyb1325 bool + var yyhl1325 bool = l >= 0 + yyj1325++ + if yyhl1325 { + yyb1325 = yyj1325 > l } else { - yyb6 = r.CheckBreak() + yyb1325 = r.CheckBreak() } - if yyb6 { + if yyb1325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Key = "" + x.Name = "" } else { - x.Key = string(r.DecodeString()) + x.Name = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1325++ + if yyhl1325 { + yyb1325 = yyj1325 > l } else { - yyb6 = r.CheckBreak() + yyb1325 = r.CheckBreak() } - if yyb6 { + if yyb1325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + x.Key = "" } else { - x.Name = string(r.DecodeString()) + x.Key = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1325++ + if yyhl1325 { + yyb1325 = yyj1325 > l } else { - yyb6 = r.CheckBreak() + yyb1325 = r.CheckBreak() } - if yyb6 { + if yyb1325 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1325-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *SecretKeySelector) 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 + yym1328 := z.EncBinary() + _ = yym1328 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1329 = 2 + for _, b := range yyq1329 { if b { - yynn2++ + yynn1329++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1329) + yynn1329 = 0 } - if yyr2 || yy2arr2 { + if yyr1329 || yy2arr1329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1331 := z.EncBinary() + _ = yym1331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) + r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1332 := z.EncBinary() + _ = yym1332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1329 || yy2arr1329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym1334 := z.EncBinary() + _ = yym1334 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("value")) + r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1335 := z.EncBinary() + _ = yym1335 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr1329 || yy2arr1329 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16931,29 +18484,29 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1336 := z.DecBinary() + _ = yym1336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1337 := r.ContainerType() + if yyct1337 == codecSelferValueTypeMap1234 { + yyl1337 := r.ReadMapStart() + if yyl1337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1337, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1337 == codecSelferValueTypeArray1234 { + yyl1337 := r.ReadArrayStart() + if yyl1337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1337, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16961,16 +18514,16 @@ func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -16979,43 +18532,43 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1338Slc = r.DecodeBytes(yys1338Slc, true, true) + yys1338 := string(yys1338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "name": + switch yys1338 { + case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } - case "value": + case "key": if r.TryDecodeAsNil() { - x.Value = "" + x.Key = "" } else { - x.Value = string(r.DecodeString()) + x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1338) + } // end switch yys1338 + } // end for yyj1338 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1341 int + var yyb1341 bool + var yyhl1341 bool = l >= 0 + yyj1341++ + if yyhl1341 { + yyb1341 = yyj1341 > l } else { - yyb6 = r.CheckBreak() + yyb1341 = r.CheckBreak() } - if yyb6 { + if yyb1341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17025,13 +18578,216 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1341++ + if yyhl1341 { + yyb1341 = yyj1341 > l } else { - yyb6 = r.CheckBreak() + yyb1341 = r.CheckBreak() } - if yyb6 { + if yyb1341 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + for { + yyj1341++ + if yyhl1341 { + yyb1341 = yyj1341 > l + } else { + yyb1341 = r.CheckBreak() + } + if yyb1341 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1341-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1344 := z.EncBinary() + _ = yym1344 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1345 = 2 + for _, b := range yyq1345 { + if b { + yynn1345++ + } + } + r.EncodeMapStart(yynn1345) + yynn1345 = 0 + } + if yyr1345 || yy2arr1345 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1347 := z.EncBinary() + _ = yym1347 + 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) + yym1348 := z.EncBinary() + _ = yym1348 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1345 || yy2arr1345 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1350 := z.EncBinary() + _ = yym1350 + 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) + yym1351 := z.EncBinary() + _ = yym1351 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + if yyr1345 || yy2arr1345 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1352 := z.DecBinary() + _ = yym1352 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1353 := r.ContainerType() + if yyct1353 == codecSelferValueTypeMap1234 { + yyl1353 := r.ReadMapStart() + if yyl1353 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1353, d) + } + } else if yyct1353 == codecSelferValueTypeArray1234 { + yyl1353 := r.ReadArrayStart() + if yyl1353 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1353, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1354Slc = r.DecodeBytes(yys1354Slc, true, true) + yys1354 := string(yys1354Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1354 { + 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, yys1354) + } // end switch yys1354 + } // end for yyj1354 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1357 int + var yyb1357 bool + var yyhl1357 bool = l >= 0 + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l + } else { + yyb1357 = r.CheckBreak() + } + if yyb1357 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l + } else { + yyb1357 = r.CheckBreak() + } + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb6 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb6 { + if yyb1357 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1360 := z.EncBinary() + _ = yym1360 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.Path != "" - yyq2[1] = true - yyq2[2] = x.Host != "" - yyq2[3] = x.Scheme != "" - yyq2[4] = len(x.HTTPHeaders) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1361 = 0 + for _, b := range yyq1361 { if b { - yynn2++ + yynn1361++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1361) + yynn1361 = 0 } - if yyr2 || yy2arr2 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1361[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy7 := &x.Port - yym8 := z.EncBinary() - _ = yym8 + if yyq1361[1] { + yy1366 := &x.Port + yym1367 := z.EncBinary() + _ = yym1367 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy1366) { + } else if !yym1367 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1366) } else { - z.EncFallback(yy7) + z.EncFallback(yy1366) } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1361[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Port - yym10 := z.EncBinary() - _ = yym10 + yy1368 := &x.Port + yym1369 := z.EncBinary() + _ = yym1369 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy1368) { + } else if !yym1369 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1368) } else { - z.EncFallback(yy9) + z.EncFallback(yy1368) } } } - if yyr2 || yy2arr2 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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 yyq2[2] { + if yyq1361[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym1372 := z.EncBinary() + _ = yym1372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr2 || yy2arr2 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1361[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1361[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq1361[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym18 := z.EncBinary() - _ = yym18 + 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 yyq2[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 { - yym19 := z.EncBinary() - _ = yym19 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1377 := z.DecBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1378 := r.ContainerType() + if yyct1378 == codecSelferValueTypeMap1234 { + yyl1378 := r.ReadMapStart() + if yyl1378 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1378, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1378 == codecSelferValueTypeArray1234 { + yyl1378 := r.ReadArrayStart() + if yyl1378 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1379Slc = r.DecodeBytes(yys1379Slc, true, true) + yys1379 := string(yys1379Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Port - yym6 := z.DecBinary() - _ = yym6 + yyv1381 := &x.Port + yym1382 := z.DecBinary() + _ = yym1382 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv1381) { + } else if !yym1382 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1381) } else { - z.DecFallback(yyv5, 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 { - yyv9 := &x.HTTPHeaders - yym10 := z.DecBinary() - _ = yym10 + yyv1385 := &x.HTTPHeaders + yym1386 := z.DecBinary() + _ = yym1386 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv9), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1385), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj1387 int + var yyb1387 bool + var yyhl1387 bool = l >= 0 + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb11 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb11 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb11 { + 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 { - yyv13 := &x.Port - yym14 := z.DecBinary() - _ = yym14 + yyv1389 := &x.Port + yym1390 := z.DecBinary() + _ = yym1390 if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) + } else if z.HasExtensions() && z.DecExt(yyv1389) { + } else if !yym1390 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1389) } else { - z.DecFallback(yyv13, false) + z.DecFallback(yyv1389, false) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb11 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb11 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb11 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb11 { + 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 { - yyv17 := &x.HTTPHeaders - yym18 := z.DecBinary() - _ = yym18 + yyv1393 := &x.HTTPHeaders + yym1394 := z.DecBinary() + _ = yym1394 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv17), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1393), d) } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb11 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb11 { + if yyb1387 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1397 := z.EncBinary() + _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1398 = 0 + for _, b := range yyq1398 { if b { - yynn2++ + yynn1398++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1398) + yynn1398 = 0 } - if yyr2 || yy2arr2 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.Port - yym5 := z.EncBinary() - _ = yym5 + if yyq1398[0] { + yy1400 := &x.Port + yym1401 := z.EncBinary() + _ = yym1401 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { - } else if !yym5 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4) + } else if z.HasExtensions() && z.EncExt(yy1400) { + } else if !yym1401 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1400) } else { - z.EncFallback(yy4) + z.EncFallback(yy1400) } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Port - yym7 := z.EncBinary() - _ = yym7 + yy1402 := &x.Port + yym1403 := z.EncBinary() + _ = yym1403 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { - } else if !yym7 && z.IsJSONHandle() { - z.EncJSONMarshal(yy6) + } else if z.HasExtensions() && z.EncExt(yy1402) { + } else if !yym1403 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1402) } else { - z.EncFallback(yy6) + z.EncFallback(yy1402) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1404 := z.DecBinary() + _ = yym1404 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1405 := r.ContainerType() + if yyct1405 == codecSelferValueTypeMap1234 { + yyl1405 := r.ReadMapStart() + if yyl1405 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1405, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1405 == codecSelferValueTypeArray1234 { + yyl1405 := r.ReadArrayStart() + if yyl1405 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1406Slc = r.DecodeBytes(yys1406Slc, true, true) + yys1406 := string(yys1406Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1406 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv4 := &x.Port - yym5 := z.DecBinary() - _ = yym5 + yyv1407 := &x.Port + yym1408 := z.DecBinary() + _ = yym1408 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv1407) { + } else if !yym1408 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1407) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1407, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1409 int + var yyb1409 bool + var yyhl1409 bool = l >= 0 + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb6 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Port - yym8 := z.DecBinary() - _ = yym8 + yyv1410 := &x.Port + yym1411 := z.DecBinary() + _ = yym1411 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv1410) { + } else if !yym1411 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1410) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv1410, false) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb6 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb6 { + if yyb1409 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1412 := z.EncBinary() + _ = yym1412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Command) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1413 = 0 + for _, b := range yyq1413 { if b { - yynn2++ + yynn1413++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1413) + yynn1413 = 0 } - if yyr2 || yy2arr2 { + if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1413[0] { if x.Command == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1417 := z.DecBinary() + _ = yym1417 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1418 := r.ContainerType() + if yyct1418 == codecSelferValueTypeMap1234 { + yyl1418 := r.ReadMapStart() + if yyl1418 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1418, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1418 == codecSelferValueTypeArray1234 { + yyl1418 := r.ReadArrayStart() + if yyl1418 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1419Slc = r.DecodeBytes(yys1419Slc, true, true) + yys1419 := string(yys1419Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1419 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { - yyv4 := &x.Command - yym5 := z.DecBinary() - _ = yym5 + yyv1420 := &x.Command + yym1421 := z.DecBinary() + _ = yym1421 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + z.F.DecSliceStringX(yyv1420, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1422 int + var yyb1422 bool + var yyhl1422 bool = l >= 0 + yyj1422++ + if yyhl1422 { + yyb1422 = yyj1422 > l } else { - yyb6 = r.CheckBreak() + yyb1422 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Command - yym8 := z.DecBinary() - _ = yym8 + yyv1423 := &x.Command + yym1424 := z.DecBinary() + _ = yym1424 if false { } else { - z.F.DecSliceStringX(yyv7, false, d) + z.F.DecSliceStringX(yyv1423, false, d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1422++ + if yyhl1422 { + yyb1422 = yyj1422 > l } else { - yyb6 = r.CheckBreak() + yyb1422 = r.CheckBreak() } - if yyb6 { + if yyb1422 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1422-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17871,274 +19627,274 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1425 := z.EncBinary() + _ = yym1425 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.InitialDelaySeconds != 0 - yyq2[1] = x.TimeoutSeconds != 0 - yyq2[2] = x.PeriodSeconds != 0 - yyq2[3] = x.SuccessThreshold != 0 - yyq2[4] = x.FailureThreshold != 0 - yyq2[5] = x.Handler.Exec != nil && x.Exec != nil - yyq2[6] = x.Handler.HTTPGet != nil && x.HTTPGet != nil - yyq2[7] = x.Handler.TCPSocket != nil && x.TCPSocket != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1426 = 0 + for _, b := range yyq1426 { if b { - yynn2++ + yynn1426++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1426) + yynn1426 = 0 } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { + var yyn1427 bool + if x.Handler.Exec == nil { + yyn1427 = true + goto LABEL1427 + } + LABEL1427: + if yyr1426 || yy2arr1426 { + if yyn1427 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1426[0] { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } } else { - r.EncodeInt(int64(x.InitialDelaySeconds)) + r.EncodeNil() } - } else { - r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq1426[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) + r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { + if yyn1427 { + r.EncodeNil() } else { - r.EncodeInt(int64(x.InitialDelaySeconds)) + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { + var yyn1428 bool + if x.Handler.HTTPGet == nil { + yyn1428 = true + goto LABEL1428 + } + LABEL1428: + if yyr1426 || yy2arr1426 { + if yyn1428 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1426[1] { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } } else { - r.EncodeInt(int64(x.TimeoutSeconds)) + r.EncodeNil() } - } else { - r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq1426[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { + if yyn1428 { + r.EncodeNil() } else { - r.EncodeInt(int64(x.TimeoutSeconds)) + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 - if false { + var yyn1429 bool + if x.Handler.TCPSocket == nil { + yyn1429 = true + goto LABEL1429 + } + LABEL1429: + if yyr1426 || yy2arr1426 { + if yyn1429 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1426[2] { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } } else { - r.EncodeInt(int64(x.PeriodSeconds)) + r.EncodeNil() } - } else { - r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq1426[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { + if yyn1429 { + r.EncodeNil() } else { - r.EncodeInt(int64(x.PeriodSeconds)) + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } } } } - if yyr2 || yy2arr2 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq1426[3] { + yym1431 := z.EncBinary() + _ = yym1431 if false { } else { - r.EncodeInt(int64(x.SuccessThreshold)) + r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq1426[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) + r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1432 := z.EncBinary() + _ = yym1432 if false { } else { - r.EncodeInt(int64(x.SuccessThreshold)) + r.EncodeInt(int64(x.InitialDelaySeconds)) } } } - if yyr2 || yy2arr2 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq1426[4] { + yym1434 := z.EncBinary() + _ = yym1434 if false { } else { - r.EncodeInt(int64(x.FailureThreshold)) + r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq1426[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1435 := z.EncBinary() + _ = yym1435 if false { } else { - r.EncodeInt(int64(x.FailureThreshold)) + r.EncodeInt(int64(x.TimeoutSeconds)) } } } - var yyn18 bool - if x.Handler.Exec == nil { - yyn18 = true - goto LABEL18 - } - LABEL18: - if yyr2 || yy2arr2 { - if yyn18 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } + if yyr1426 || yy2arr1426 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1426[5] { + yym1437 := z.EncBinary() + _ = yym1437 + if false { } else { - r.EncodeNil() + r.EncodeInt(int64(x.PeriodSeconds)) } + } else { + r.EncodeInt(0) } } else { - if yyq2[5] { + if yyq1426[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exec")) + r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn18 { - r.EncodeNil() + yym1438 := z.EncBinary() + _ = yym1438 + if false { } else { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } + r.EncodeInt(int64(x.PeriodSeconds)) } } } - var yyn21 bool - if x.Handler.HTTPGet == nil { - yyn21 = true - goto LABEL21 - } - LABEL21: - if yyr2 || yy2arr2 { - if yyn21 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } + if yyr1426 || yy2arr1426 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1426[6] { + yym1440 := z.EncBinary() + _ = yym1440 + if false { } else { - r.EncodeNil() + r.EncodeInt(int64(x.SuccessThreshold)) } + } else { + r.EncodeInt(0) } } else { - if yyq2[6] { + if yyq1426[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpGet")) + r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn21 { - r.EncodeNil() + yym1441 := z.EncBinary() + _ = yym1441 + if false { } else { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } + r.EncodeInt(int64(x.SuccessThreshold)) } } } - var yyn24 bool - if x.Handler.TCPSocket == nil { - yyn24 = true - goto LABEL24 - } - LABEL24: - if yyr2 || yy2arr2 { - if yyn24 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } + if yyr1426 || yy2arr1426 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1426[7] { + yym1443 := z.EncBinary() + _ = yym1443 + if false { } else { - r.EncodeNil() + r.EncodeInt(int64(x.FailureThreshold)) } + } else { + r.EncodeInt(0) } } else { - if yyq2[7] { + if yyq1426[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) + r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn24 { - r.EncodeNil() + yym1444 := z.EncBinary() + _ = yym1444 + if false { } else { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } + r.EncodeInt(int64(x.FailureThreshold)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1445 := z.DecBinary() + _ = yym1445 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1446 := r.ContainerType() + if yyct1446 == codecSelferValueTypeMap1234 { + yyl1446 := r.ReadMapStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1446, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1446 == codecSelferValueTypeArray1234 { + yyl1446 := r.ReadArrayStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,40 +19951,10 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1447Slc = r.DecodeBytes(yys1447Slc, true, true) + yys1447 := string(yys1447Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "initialDelaySeconds": - if r.TryDecodeAsNil() { - x.InitialDelaySeconds = 0 - } else { - x.InitialDelaySeconds = int32(r.DecodeInt(32)) - } - case "timeoutSeconds": - if r.TryDecodeAsNil() { - x.TimeoutSeconds = 0 - } else { - x.TimeoutSeconds = int32(r.DecodeInt(32)) - } - case "periodSeconds": - if r.TryDecodeAsNil() { - x.PeriodSeconds = 0 - } else { - x.PeriodSeconds = int32(r.DecodeInt(32)) - } - case "successThreshold": - if r.TryDecodeAsNil() { - x.SuccessThreshold = 0 - } else { - x.SuccessThreshold = int32(r.DecodeInt(32)) - } - case "failureThreshold": - if r.TryDecodeAsNil() { - x.FailureThreshold = 0 - } else { - x.FailureThreshold = int32(r.DecodeInt(32)) - } + switch yys1447 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) @@ -18271,10 +19997,40 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.TCPSocket.CodecDecodeSelf(d) } + case "initialDelaySeconds": + if r.TryDecodeAsNil() { + x.InitialDelaySeconds = 0 + } else { + x.InitialDelaySeconds = int32(r.DecodeInt(32)) + } + case "timeoutSeconds": + if r.TryDecodeAsNil() { + x.TimeoutSeconds = 0 + } else { + x.TimeoutSeconds = int32(r.DecodeInt(32)) + } + case "periodSeconds": + if r.TryDecodeAsNil() { + x.PeriodSeconds = 0 + } else { + x.PeriodSeconds = int32(r.DecodeInt(32)) + } + case "successThreshold": + if r.TryDecodeAsNil() { + x.SuccessThreshold = 0 + } else { + x.SuccessThreshold = int32(r.DecodeInt(32)) + } + case "failureThreshold": + if r.TryDecodeAsNil() { + x.FailureThreshold = 0 + } else { + x.FailureThreshold = int32(r.DecodeInt(32)) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1447) + } // end switch yys1447 + } // end for yyj1447 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18282,173 +20038,173 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1456 int + var yyb1456 bool + var yyhl1456 bool = l >= 0 + if x.Handler.Exec == nil { + x.Handler.Exec = new(ExecAction) + } + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.InitialDelaySeconds = 0 + if x.Exec != nil { + x.Exec = nil + } } else { - x.InitialDelaySeconds = int32(r.DecodeInt(32)) + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + if x.Handler.HTTPGet == nil { + x.Handler.HTTPGet = new(HTTPGetAction) + } + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.TimeoutSeconds = 0 + if x.HTTPGet != nil { + x.HTTPGet = nil + } } else { - x.TimeoutSeconds = int32(r.DecodeInt(32)) + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + if x.Handler.TCPSocket == nil { + x.Handler.TCPSocket = new(TCPSocketAction) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.PeriodSeconds = 0 + if x.TCPSocket != nil { + x.TCPSocket = nil + } } else { - x.PeriodSeconds = int32(r.DecodeInt(32)) + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.SuccessThreshold = 0 + x.InitialDelaySeconds = 0 } else { - x.SuccessThreshold = int32(r.DecodeInt(32)) + x.InitialDelaySeconds = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.FailureThreshold = 0 + x.TimeoutSeconds = 0 } else { - x.FailureThreshold = int32(r.DecodeInt(32)) - } - if x.Handler.Exec == nil { - x.Handler.Exec = new(ExecAction) + x.TimeoutSeconds = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.Exec != nil { - x.Exec = nil - } + x.PeriodSeconds = 0 } else { - if x.Exec == nil { - x.Exec = new(ExecAction) - } - x.Exec.CodecDecodeSelf(d) - } - if x.Handler.HTTPGet == nil { - x.Handler.HTTPGet = new(HTTPGetAction) + x.PeriodSeconds = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.HTTPGet != nil { - x.HTTPGet = nil - } + x.SuccessThreshold = 0 } else { - if x.HTTPGet == nil { - x.HTTPGet = new(HTTPGetAction) - } - x.HTTPGet.CodecDecodeSelf(d) - } - if x.Handler.TCPSocket == nil { - x.Handler.TCPSocket = new(TCPSocketAction) + x.SuccessThreshold = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.TCPSocket != nil { - x.TCPSocket = nil - } + x.FailureThreshold = 0 } else { - if x.TCPSocket == nil { - x.TCPSocket = new(TCPSocketAction) - } - x.TCPSocket.CodecDecodeSelf(d) + x.FailureThreshold = int32(r.DecodeInt(32)) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb12 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb12 { + if yyb1456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1469 := z.EncBinary() + _ = yym1469 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Add) != 0 - yyq2[1] = len(x.Drop) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1470 = 0 + for _, b := range yyq1470 { if b { - yynn2++ + yynn1470++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1470) + yynn1470 = 0 } - if yyr2 || yy2arr2 { + if yyr1470 || yy2arr1470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1470[0] { if x.Add == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1470 || yy2arr1470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1470[1] { if x.Drop == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1477 := z.DecBinary() + _ = yym1477 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1478 := r.ContainerType() + if yyct1478 == codecSelferValueTypeMap1234 { + yyl1478 := r.ReadMapStart() + if yyl1478 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1478, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1478 == codecSelferValueTypeArray1234 { + yyl1478 := r.ReadArrayStart() + if yyl1478 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1479Slc = r.DecodeBytes(yys1479Slc, true, true) + yys1479 := string(yys1479Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1479 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { - yyv4 := &x.Add - yym5 := z.DecBinary() - _ = yym5 + yyv1480 := &x.Add + yym1481 := z.DecBinary() + _ = yym1481 if false { } else { - h.decSliceCapability((*[]Capability)(yyv4), d) + h.decSliceCapability((*[]Capability)(yyv1480), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv6 := &x.Drop - yym7 := z.DecBinary() - _ = yym7 + yyv1482 := &x.Drop + yym1483 := z.DecBinary() + _ = yym1483 if false { } else { - h.decSliceCapability((*[]Capability)(yyv6), d) + h.decSliceCapability((*[]Capability)(yyv1482), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1484 int + var yyb1484 bool + var yyhl1484 bool = l >= 0 + yyj1484++ + if yyhl1484 { + yyb1484 = yyj1484 > l } else { - yyb8 = r.CheckBreak() + yyb1484 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.Add - yym10 := z.DecBinary() - _ = yym10 + yyv1485 := &x.Add + yym1486 := z.DecBinary() + _ = yym1486 if false { } else { - h.decSliceCapability((*[]Capability)(yyv9), d) + h.decSliceCapability((*[]Capability)(yyv1485), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1484++ + if yyhl1484 { + yyb1484 = yyj1484 > l } else { - yyb8 = r.CheckBreak() + yyb1484 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Drop - yym12 := z.DecBinary() - _ = yym12 + yyv1487 := &x.Drop + yym1488 := z.DecBinary() + _ = yym1488 if false { } else { - h.decSliceCapability((*[]Capability)(yyv11), d) + h.decSliceCapability((*[]Capability)(yyv1487), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1484++ + if yyhl1484 { + yyb1484 = yyj1484 > l } else { - yyb8 = r.CheckBreak() + yyb1484 = r.CheckBreak() } - if yyb8 { + if yyb1484 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1489 := z.EncBinary() + _ = yym1489 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Limits) != 0 - yyq2[1] = len(x.Requests) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1490 = 0 + for _, b := range yyq1490 { if b { - yynn2++ + yynn1490++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1490) + yynn1490 = 0 } - if yyr2 || yy2arr2 { + if yyr1490 || yy2arr1490 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1490 || yy2arr1490 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1493 := z.DecBinary() + _ = yym1493 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1494 := r.ContainerType() + if yyct1494 == codecSelferValueTypeMap1234 { + yyl1494 := r.ReadMapStart() + if yyl1494 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1494, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1494 == codecSelferValueTypeArray1234 { + yyl1494 := r.ReadArrayStart() + if yyl1494 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1495Slc = r.DecodeBytes(yys1495Slc, true, true) + yys1495 := string(yys1495Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1495 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4 := &x.Limits - yyv4.CodecDecodeSelf(d) + yyv1496 := &x.Limits + yyv1496.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv5 := &x.Requests - yyv5.CodecDecodeSelf(d) + yyv1497 := &x.Requests + yyv1497.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1498 int + var yyb1498 bool + var yyhl1498 bool = l >= 0 + yyj1498++ + if yyhl1498 { + yyb1498 = yyj1498 > l } else { - yyb6 = r.CheckBreak() + yyb1498 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Limits - yyv7.CodecDecodeSelf(d) + yyv1499 := &x.Limits + yyv1499.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1498++ + if yyhl1498 { + yyb1498 = yyj1498 > l } else { - yyb6 = r.CheckBreak() + yyb1498 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.Requests - yyv8.CodecDecodeSelf(d) + yyv1500 := &x.Requests + yyv1500.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1498++ + if yyhl1498 { + yyb1498 = yyj1498 > l } else { - yyb6 = r.CheckBreak() + yyb1498 = r.CheckBreak() } - if yyb6 { + if yyb1498 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1501 := z.EncBinary() + _ = yym1501 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = len(x.Command) != 0 - yyq2[3] = len(x.Args) != 0 - yyq2[4] = x.WorkingDir != "" - yyq2[5] = len(x.Ports) != 0 - yyq2[6] = len(x.Env) != 0 - yyq2[7] = true - yyq2[8] = len(x.VolumeMounts) != 0 - yyq2[9] = x.LivenessProbe != nil - yyq2[10] = x.ReadinessProbe != nil - yyq2[11] = x.Lifecycle != nil - yyq2[12] = x.TerminationMessagePath != "" - yyq2[14] = x.SecurityContext != nil - yyq2[15] = x.Stdin != false - yyq2[16] = x.StdinOnce != false - yyq2[17] = x.TTY != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 3 - for _, b := range yyq2 { + yynn1502 = 3 + for _, b := range yyq1502 { if b { - yynn2++ + yynn1502++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1502) + yynn1502 = 0 } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1505 := z.EncBinary() + _ = yym1505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1508 := z.EncBinary() + _ = yym1508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1502[2] { if x.Command == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + 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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1502[3] { if x.Args == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[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 { - yym14 := z.EncBinary() - _ = yym14 + 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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq1502[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1517 := z.EncBinary() + _ = yym1517 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq1502[5] { if x.Ports == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[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 { - yym20 := z.EncBinary() - _ = yym20 + 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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq1502[6] { if x.Env == nil { r.EncodeNil() } else { - yym22 := z.EncBinary() - _ = yym22 + 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 yyq2[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 { - yym23 := z.EncBinary() - _ = yym23 + 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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yy25 := &x.Resources - yy25.CodecEncodeSelf(e) + if yyq1502[7] { + yy1525 := &x.Resources + yy1525.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[7] { + if yyq1502[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy27 := &x.Resources - yy27.CodecEncodeSelf(e) + yy1526 := &x.Resources + yy1526.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq1502[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { - yym30 := z.EncBinary() - _ = yym30 + 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 yyq2[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 { - yym31 := z.EncBinary() - _ = yym31 + 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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - yym42 := z.EncBinary() - _ = yym42 + 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 yyq2[12] { + if yyq1502[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym43 := z.EncBinary() - _ = yym43 + yym1535 := z.EncBinary() + _ = yym1535 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { - yym51 := z.EncBinary() - _ = yym51 + 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 yyq2[15] { + if yyq1502[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym52 := z.EncBinary() - _ = yym52 + yym1540 := z.EncBinary() + _ = yym1540 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { - yym54 := z.EncBinary() - _ = yym54 + 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 yyq2[16] { + if yyq1502[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym55 := z.EncBinary() - _ = yym55 + yym1543 := z.EncBinary() + _ = yym1543 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } - if yyr2 || yy2arr2 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { - yym57 := z.EncBinary() - _ = yym57 + 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 yyq2[17] { + if yyq1502[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym58 := z.EncBinary() - _ = yym58 + yym1546 := z.EncBinary() + _ = yym1546 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1547 := z.DecBinary() + _ = yym1547 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1548 := r.ContainerType() + if yyct1548 == codecSelferValueTypeMap1234 { + yyl1548 := r.ReadMapStart() + if yyl1548 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1548, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1548 == codecSelferValueTypeArray1234 { + yyl1548 := r.ReadArrayStart() + if yyl1548 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1549Slc = r.DecodeBytes(yys1549Slc, true, true) + yys1549 := string(yys1549Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.Command - yym7 := z.DecBinary() - _ = yym7 + yyv1552 := &x.Command + yym1553 := z.DecBinary() + _ = yym1553 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv1552, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { - yyv8 := &x.Args - yym9 := z.DecBinary() - _ = yym9 + yyv1554 := &x.Args + yym1555 := z.DecBinary() + _ = yym1555 if false { } else { - z.F.DecSliceStringX(yyv8, 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 { - yyv11 := &x.Ports - yym12 := z.DecBinary() - _ = yym12 + yyv1557 := &x.Ports + yym1558 := z.DecBinary() + _ = yym1558 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv11), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1557), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { - yyv13 := &x.Env - yym14 := z.DecBinary() - _ = yym14 + yyv1559 := &x.Env + yym1560 := z.DecBinary() + _ = yym1560 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv13), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1559), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv15 := &x.Resources - yyv15.CodecDecodeSelf(d) + yyv1561 := &x.Resources + yyv1561.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv16 := &x.VolumeMounts - yym17 := z.DecBinary() - _ = yym17 + yyv1562 := &x.VolumeMounts + yym1563 := z.DecBinary() + _ = yym1563 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv16), 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj27 int - var yyb27 bool - var yyhl27 bool = l >= 0 - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + var yyj1573 int + var yyb1573 bool + var yyhl1573 bool = l >= 0 + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyv30 := &x.Command - yym31 := z.DecBinary() - _ = yym31 + yyv1576 := &x.Command + yym1577 := z.DecBinary() + _ = yym1577 if false { } else { - z.F.DecSliceStringX(yyv30, false, d) + z.F.DecSliceStringX(yyv1576, false, d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyv32 := &x.Args - yym33 := z.DecBinary() - _ = yym33 + yyv1578 := &x.Args + yym1579 := z.DecBinary() + _ = yym1579 if false { } else { - z.F.DecSliceStringX(yyv32, false, d) + z.F.DecSliceStringX(yyv1578, false, d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyv35 := &x.Ports - yym36 := z.DecBinary() - _ = yym36 + yyv1581 := &x.Ports + yym1582 := z.DecBinary() + _ = yym1582 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv35), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1581), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyv37 := &x.Env - yym38 := z.DecBinary() - _ = yym38 + yyv1583 := &x.Env + yym1584 := z.DecBinary() + _ = yym1584 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv37), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1583), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyv39 := &x.Resources - yyv39.CodecDecodeSelf(d) + yyv1585 := &x.Resources + yyv1585.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyv40 := &x.VolumeMounts - yym41 := z.DecBinary() - _ = yym41 + yyv1586 := &x.VolumeMounts + yym1587 := z.DecBinary() + _ = yym1587 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv40), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1586), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19900,13 +21656,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.LivenessProbe.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19921,13 +21677,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ReadinessProbe.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19942,13 +21698,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Lifecycle.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19995,13 +21751,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + 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 { - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb27 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb27 { + if yyb1573 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj27-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1597 := z.EncBinary() + _ = yym1597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Exec != nil - yyq2[1] = x.HTTPGet != nil - yyq2[2] = x.TCPSocket != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1598 = 0 + for _, b := range yyq1598 { if b { - yynn2++ + yynn1598++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1598) + yynn1598 = 0 } - if yyr2 || yy2arr2 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1602 := z.DecBinary() + _ = yym1602 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1603 := r.ContainerType() + if yyct1603 == codecSelferValueTypeMap1234 { + yyl1603 := r.ReadMapStart() + if yyl1603 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1603, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1603 == codecSelferValueTypeArray1234 { + yyl1603 := r.ReadArrayStart() + if yyl1603 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1604Slc = r.DecodeBytes(yys1604Slc, true, true) + yys1604 := string(yys1604Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1608 int + var yyb1608 bool + var yyhl1608 bool = l >= 0 + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb7 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb7 { + if yyb1608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20290,13 +22046,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Exec.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb7 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb7 { + if yyb1608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20311,13 +22067,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HTTPGet.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb7 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb7 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb7 { + if yyb1608 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1612 := z.EncBinary() + _ = yym1612 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.PostStart != nil - yyq2[1] = x.PreStop != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1613 = 0 + for _, b := range yyq1613 { if b { - yynn2++ + yynn1613++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1613) + yynn1613 = 0 } - if yyr2 || yy2arr2 { + if yyr1613 || yy2arr1613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1613 || yy2arr1613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1616 := z.DecBinary() + _ = yym1616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1617 := r.ContainerType() + if yyct1617 == codecSelferValueTypeMap1234 { + yyl1617 := r.ReadMapStart() + if yyl1617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1617, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1617 == codecSelferValueTypeArray1234 { + yyl1617 := r.ReadArrayStart() + if yyl1617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1618Slc = r.DecodeBytes(yys1618Slc, true, true) + yys1618 := string(yys1618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1621 int + var yyb1621 bool + var yyhl1621 bool = l >= 0 + yyj1621++ + if yyhl1621 { + yyb1621 = yyj1621 > l } else { - yyb6 = r.CheckBreak() + yyb1621 = r.CheckBreak() } - if yyb6 { + if yyb1621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20544,13 +22300,13 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PostStart.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1621++ + if yyhl1621 { + yyb1621 = yyj1621 > l } else { - yyb6 = r.CheckBreak() + yyb1621 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1621++ + if yyhl1621 { + yyb1621 = yyj1621 > l } else { - yyb6 = r.CheckBreak() + yyb1621 = r.CheckBreak() } - if yyb6 { + if yyb1621 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1626 := z.EncBinary() + _ = yym1626 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Reason != "" - yyq2[1] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1627 = 0 + for _, b := range yyq1627 { if b { - yynn2++ + yynn1627++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1627) + yynn1627 = 0 } - if yyr2 || yy2arr2 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1627[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1630 := z.EncBinary() + _ = yym1630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1627[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1633 := z.EncBinary() + _ = yym1633 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1634 := z.DecBinary() + _ = yym1634 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1635 := r.ContainerType() + if yyct1635 == codecSelferValueTypeMap1234 { + yyl1635 := r.ReadMapStart() + if yyl1635 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1635, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1635 == codecSelferValueTypeArray1234 { + yyl1635 := r.ReadArrayStart() + if yyl1635 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1636Slc = r.DecodeBytes(yys1636Slc, true, true) + yys1636 := string(yys1636Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1639 int + var yyb1639 bool + var yyhl1639 bool = l >= 0 + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l } else { - yyb6 = r.CheckBreak() + yyb1639 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l } else { - yyb6 = r.CheckBreak() + yyb1639 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l } else { - yyb6 = r.CheckBreak() + yyb1639 = r.CheckBreak() } - if yyb6 { + if yyb1639 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1642 := z.EncBinary() + _ = yym1642 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1643 = 0 + for _, b := range yyq1643 { if b { - yynn2++ + yynn1643++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1643) + yynn1643 = 0 } - if yyr2 || yy2arr2 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.StartedAt - yym5 := z.EncBinary() - _ = yym5 + if yyq1643[0] { + yy1645 := &x.StartedAt + yym1646 := z.EncBinary() + _ = yym1646 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { - } else if yym5 { - z.EncBinaryMarshal(yy4) - } else if !yym5 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4) + } else if z.HasExtensions() && z.EncExt(yy1645) { + } else if yym1646 { + z.EncBinaryMarshal(yy1645) + } else if !yym1646 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1645) } else { - z.EncFallback(yy4) + z.EncFallback(yy1645) } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1643[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.StartedAt - yym7 := z.EncBinary() - _ = yym7 + yy1647 := &x.StartedAt + yym1648 := z.EncBinary() + _ = yym1648 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { - } else if yym7 { - z.EncBinaryMarshal(yy6) - } else if !yym7 && z.IsJSONHandle() { - z.EncJSONMarshal(yy6) + } else if z.HasExtensions() && z.EncExt(yy1647) { + } else if yym1648 { + z.EncBinaryMarshal(yy1647) + } else if !yym1648 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1647) } else { - z.EncFallback(yy6) + z.EncFallback(yy1647) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1649 := z.DecBinary() + _ = yym1649 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1650 := r.ContainerType() + if yyct1650 == codecSelferValueTypeMap1234 { + yyl1650 := r.ReadMapStart() + if yyl1650 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1650, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1650 == codecSelferValueTypeArray1234 { + yyl1650 := r.ReadArrayStart() + if yyl1650 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1651Slc = r.DecodeBytes(yys1651Slc, true, true) + yys1651 := string(yys1651Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1651 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv4 := &x.StartedAt - yym5 := z.DecBinary() - _ = yym5 + yyv1652 := &x.StartedAt + yym1653 := z.DecBinary() + _ = yym1653 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if yym5 { - z.DecBinaryUnmarshal(yyv4) - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv1652) { + } else if yym1653 { + z.DecBinaryUnmarshal(yyv1652) + } else if !yym1653 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1652) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1652, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1654 int + var yyb1654 bool + var yyhl1654 bool = l >= 0 + yyj1654++ + if yyhl1654 { + yyb1654 = yyj1654 > l } else { - yyb6 = r.CheckBreak() + yyb1654 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.StartedAt - yym8 := z.DecBinary() - _ = yym8 + yyv1655 := &x.StartedAt + yym1656 := z.DecBinary() + _ = yym1656 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if yym8 { - z.DecBinaryUnmarshal(yyv7) - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv1655) { + } else if yym1656 { + z.DecBinaryUnmarshal(yyv1655) + } else if !yym1656 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1655) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv1655, false) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1654++ + if yyhl1654 { + yyb1654 = yyj1654 > l } else { - yyb6 = r.CheckBreak() + yyb1654 = r.CheckBreak() } - if yyb6 { + if yyb1654 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1657 := z.EncBinary() + _ = yym1657 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Signal != 0 - yyq2[2] = x.Reason != "" - yyq2[3] = x.Message != "" - yyq2[4] = true - yyq2[5] = true - yyq2[6] = x.ContainerID != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1658 = 1 + for _, b := range yyq1658 { if b { - yynn2++ + yynn1658++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1658) + yynn1658 = 0 } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1661 := z.EncBinary() + _ = yym1661 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1658[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1664 := z.EncBinary() + _ = yym1664 if false { } else { r.EncodeInt(int64(x.Signal)) } } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1658[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1667 := z.EncBinary() + _ = yym1667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq1658[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1670 := z.EncBinary() + _ = yym1670 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy16 := &x.StartedAt - yym17 := z.EncBinary() - _ = yym17 + if yyq1658[4] { + yy1672 := &x.StartedAt + yym1673 := z.EncBinary() + _ = yym1673 if false { - } else if z.HasExtensions() && z.EncExt(yy16) { - } else if yym17 { - z.EncBinaryMarshal(yy16) - } else if !yym17 && z.IsJSONHandle() { - z.EncJSONMarshal(yy16) + } else if z.HasExtensions() && z.EncExt(yy1672) { + } else if yym1673 { + z.EncBinaryMarshal(yy1672) + } else if !yym1673 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1672) } else { - z.EncFallback(yy16) + z.EncFallback(yy1672) } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq1658[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy18 := &x.StartedAt - yym19 := z.EncBinary() - _ = yym19 + yy1674 := &x.StartedAt + yym1675 := z.EncBinary() + _ = yym1675 if false { - } else if z.HasExtensions() && z.EncExt(yy18) { - } else if yym19 { - z.EncBinaryMarshal(yy18) - } else if !yym19 && z.IsJSONHandle() { - z.EncJSONMarshal(yy18) + } else if z.HasExtensions() && z.EncExt(yy1674) { + } else if yym1675 { + z.EncBinaryMarshal(yy1674) + } else if !yym1675 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1674) } else { - z.EncFallback(yy18) + z.EncFallback(yy1674) } } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yy21 := &x.FinishedAt - yym22 := z.EncBinary() - _ = yym22 + if yyq1658[5] { + yy1677 := &x.FinishedAt + yym1678 := z.EncBinary() + _ = yym1678 if false { - } else if z.HasExtensions() && z.EncExt(yy21) { - } else if yym22 { - z.EncBinaryMarshal(yy21) - } else if !yym22 && z.IsJSONHandle() { - z.EncJSONMarshal(yy21) + } else if z.HasExtensions() && z.EncExt(yy1677) { + } else if yym1678 { + z.EncBinaryMarshal(yy1677) + } else if !yym1678 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1677) } else { - z.EncFallback(yy21) + z.EncFallback(yy1677) } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq1658[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy23 := &x.FinishedAt - yym24 := z.EncBinary() - _ = yym24 + yy1679 := &x.FinishedAt + yym1680 := z.EncBinary() + _ = yym1680 if false { - } else if z.HasExtensions() && z.EncExt(yy23) { - } else if yym24 { - z.EncBinaryMarshal(yy23) - } else if !yym24 && z.IsJSONHandle() { - z.EncJSONMarshal(yy23) + } else if z.HasExtensions() && z.EncExt(yy1679) { + } else if yym1680 { + z.EncBinaryMarshal(yy1679) + } else if !yym1680 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1679) } else { - z.EncFallback(yy23) + z.EncFallback(yy1679) } } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym26 := z.EncBinary() - _ = yym26 + 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 yyq2[6] { + if yyq1658[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym27 := z.EncBinary() - _ = yym27 + yym1683 := z.EncBinary() + _ = yym1683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1684 := z.DecBinary() + _ = yym1684 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1685 := r.ContainerType() + if yyct1685 == codecSelferValueTypeMap1234 { + yyl1685 := r.ReadMapStart() + if yyl1685 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1685, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1685 == codecSelferValueTypeArray1234 { + yyl1685 := r.ReadArrayStart() + if yyl1685 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1686Slc = r.DecodeBytes(yys1686Slc, true, true) + yys1686 := string(yys1686Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv8 := &x.StartedAt - yym9 := z.DecBinary() - _ = yym9 + yyv1691 := &x.StartedAt + yym1692 := z.DecBinary() + _ = yym1692 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv1691) { + } else if yym1692 { + z.DecBinaryUnmarshal(yyv1691) + } else if !yym1692 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1691) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv1691, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv10 := &x.FinishedAt - yym11 := z.DecBinary() - _ = yym11 + yyv1693 := &x.FinishedAt + yym1694 := z.DecBinary() + _ = yym1694 if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else if yym11 { - z.DecBinaryUnmarshal(yyv10) - } else if !yym11 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv10) + } else if z.HasExtensions() && z.DecExt(yyv1693) { + } else if yym1694 { + z.DecBinaryUnmarshal(yyv1693) + } else if !yym1694 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1693) } else { - z.DecFallback(yyv10, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj1696 int + var yyb1696 bool + var yyhl1696 bool = l >= 0 + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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 { - yyv18 := &x.StartedAt - yym19 := z.DecBinary() - _ = yym19 + yyv1701 := &x.StartedAt + yym1702 := z.DecBinary() + _ = yym1702 if false { - } else if z.HasExtensions() && z.DecExt(yyv18) { - } else if yym19 { - z.DecBinaryUnmarshal(yyv18) - } else if !yym19 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv18) + } else if z.HasExtensions() && z.DecExt(yyv1701) { + } else if yym1702 { + z.DecBinaryUnmarshal(yyv1701) + } else if !yym1702 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1701) } else { - z.DecFallback(yyv18, false) + z.DecFallback(yyv1701, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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 { - yyv20 := &x.FinishedAt - yym21 := z.DecBinary() - _ = yym21 + yyv1703 := &x.FinishedAt + yym1704 := z.DecBinary() + _ = yym1704 if false { - } else if z.HasExtensions() && z.DecExt(yyv20) { - } else if yym21 { - z.DecBinaryUnmarshal(yyv20) - } else if !yym21 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv20) + } else if z.HasExtensions() && z.DecExt(yyv1703) { + } else if yym1704 { + z.DecBinaryUnmarshal(yyv1703) + } else if !yym1704 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1703) } else { - z.DecFallback(yyv20, false) + z.DecFallback(yyv1703, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + 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 { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb13 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb13 { + if yyb1696 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1706 := z.EncBinary() + _ = yym1706 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Waiting != nil - yyq2[1] = x.Running != nil - yyq2[2] = x.Terminated != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1707 = 0 + for _, b := range yyq1707 { if b { - yynn2++ + yynn1707++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1707) + yynn1707 = 0 } - if yyr2 || yy2arr2 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1711 := z.DecBinary() + _ = yym1711 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1712 := r.ContainerType() + if yyct1712 == codecSelferValueTypeMap1234 { + yyl1712 := r.ReadMapStart() + if yyl1712 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1712, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1712 == codecSelferValueTypeArray1234 { + yyl1712 := r.ReadArrayStart() + if yyl1712 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1713Slc = r.DecodeBytes(yys1713Slc, true, true) + yys1713 := string(yys1713Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1717 int + var yyb1717 bool + var yyhl1717 bool = l >= 0 + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb7 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb7 { + if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21776,13 +23532,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Waiting.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb7 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb7 { + if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21797,13 +23553,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Running.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb7 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb7 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb7 { + if yyb1717 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1721 := z.EncBinary() + _ = yym1721 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = true - yyq2[2] = true - yyq2[7] = x.ContainerID != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 5 - for _, b := range yyq2 { + yynn1722 = 5 + for _, b := range yyq1722 { if b { - yynn2++ + yynn1722++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1722) + yynn1722 = 0 } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1725 := z.EncBinary() + _ = yym1725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy7 := &x.State - yy7.CodecEncodeSelf(e) + if yyq1722[1] { + yy1727 := &x.State + yy1727.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1722[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.State - yy9.CodecEncodeSelf(e) + yy1728 := &x.State + yy1728.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy12 := &x.LastTerminationState - yy12.CodecEncodeSelf(e) + if yyq1722[2] { + yy1730 := &x.LastTerminationState + yy1730.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1722[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.LastTerminationState - yy14.CodecEncodeSelf(e) + yy1731 := &x.LastTerminationState + yy1731.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym17 := z.EncBinary() - _ = yym17 + 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) - yym18 := z.EncBinary() - _ = yym18 + yym1734 := z.EncBinary() + _ = yym1734 if false { } else { r.EncodeBool(bool(x.Ready)) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym20 := z.EncBinary() - _ = yym20 + 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) - yym21 := z.EncBinary() - _ = yym21 + yym1737 := z.EncBinary() + _ = yym1737 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym23 := z.EncBinary() - _ = yym23 + 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) - yym24 := z.EncBinary() - _ = yym24 + yym1740 := z.EncBinary() + _ = yym1740 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym26 := z.EncBinary() - _ = yym26 + 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) - yym27 := z.EncBinary() - _ = yym27 + yym1743 := z.EncBinary() + _ = yym1743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } - if yyr2 || yy2arr2 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym29 := z.EncBinary() - _ = yym29 + 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 yyq2[7] { + if yyq1722[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym30 := z.EncBinary() - _ = yym30 + yym1746 := z.EncBinary() + _ = yym1746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1747 := z.DecBinary() + _ = yym1747 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1748 := r.ContainerType() + if yyct1748 == codecSelferValueTypeMap1234 { + yyl1748 := r.ReadMapStart() + if yyl1748 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1748, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1748 == codecSelferValueTypeArray1234 { + yyl1748 := r.ReadArrayStart() + if yyl1748 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1749Slc = r.DecodeBytes(yys1749Slc, true, true) + yys1749 := string(yys1749Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.State - yyv5.CodecDecodeSelf(d) + yyv1751 := &x.State + yyv1751.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv6 := &x.LastTerminationState - yyv6.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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1758 int + var yyb1758 bool + var yyhl1758 bool = l >= 0 + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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 { - yyv14 := &x.State - yyv14.CodecDecodeSelf(d) + yyv1760 := &x.State + yyv1760.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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 { - yyv15 := &x.LastTerminationState - yyv15.CodecDecodeSelf(d) + yyv1761 := &x.LastTerminationState + yyv1761.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + 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 { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb12 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb12 { + if yyb1758 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1771 := z.EncBinary() + _ = yym1771 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1772 = 2 + for _, b := range yyq1772 { if b { - yynn2++ + yynn1772++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1772) + yynn1772 = 0 } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq1772[2] { + yy1776 := &x.LastProbeTime + yym1777 := z.EncBinary() + _ = yym1777 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy1776) { + } else if yym1777 { + z.EncBinaryMarshal(yy1776) + } else if !yym1777 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1776) } else { - z.EncFallback(yy10) + z.EncFallback(yy1776) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1772[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy1778 := &x.LastProbeTime + yym1779 := z.EncBinary() + _ = yym1779 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy1778) { + } else if yym1779 { + z.EncBinaryMarshal(yy1778) + } else if !yym1779 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1778) } else { - z.EncFallback(yy12) + z.EncFallback(yy1778) } } } - if yyr2 || yy2arr2 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq1772[3] { + yy1781 := &x.LastTransitionTime + yym1782 := z.EncBinary() + _ = yym1782 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy1781) { + } else if yym1782 { + z.EncBinaryMarshal(yy1781) + } else if !yym1782 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1781) } else { - z.EncFallback(yy15) + z.EncFallback(yy1781) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq1772[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy1783 := &x.LastTransitionTime + yym1784 := z.EncBinary() + _ = yym1784 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy1783) { + } else if yym1784 { + z.EncBinaryMarshal(yy1783) + } else if !yym1784 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1783) } else { - z.EncFallback(yy17) + z.EncFallback(yy1783) } } } - if yyr2 || yy2arr2 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + 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 yyq2[4] { + if yyq1772[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym1787 := z.EncBinary() + _ = yym1787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + 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 yyq2[5] { + if yyq1772[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym1790 := z.EncBinary() + _ = yym1790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1791 := z.DecBinary() + _ = yym1791 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1792 := r.ContainerType() + if yyct1792 == codecSelferValueTypeMap1234 { + yyl1792 := r.ReadMapStart() + if yyl1792 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1792, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1792 == codecSelferValueTypeArray1234 { + yyl1792 := r.ReadArrayStart() + if yyl1792 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1793Slc = r.DecodeBytes(yys1793Slc, true, true) + yys1793 := string(yys1793Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv1796 := &x.LastProbeTime + yym1797 := z.DecBinary() + _ = yym1797 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv1796) { + } else if yym1797 { + z.DecBinaryUnmarshal(yyv1796) + } else if !yym1797 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1796) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv1796, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv1798 := &x.LastTransitionTime + yym1799 := z.DecBinary() + _ = yym1799 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv1798) { + } else if yym1799 { + z.DecBinaryUnmarshal(yyv1798) + } else if !yym1799 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1798) } else { - z.DecFallback(yyv8, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1802 int + var yyb1802 bool + var yyhl1802 bool = l >= 0 + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + 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 { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv1805 := &x.LastProbeTime + yym1806 := z.DecBinary() + _ = yym1806 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv1805) { + } else if yym1806 { + z.DecBinaryUnmarshal(yyv1805) + } else if !yym1806 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1805) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv1805, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + 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 { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv1807 := &x.LastTransitionTime + yym1808 := z.DecBinary() + _ = yym1808 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv1807) { + } else if yym1808 { + z.DecBinaryUnmarshal(yyv1807) + } else if !yym1808 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1807) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv1807, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + 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 { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb12 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb12 { + if yyb1802 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1812 := z.DecBinary() + _ = yym1812 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -22820,139 +24576,139 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1813 := z.EncBinary() + _ = yym1813 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1814 = 1 + for _, b := range yyq1814 { if b { - yynn2++ + yynn1814++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1814) + yynn1814 = 0 } - if yyr2 || yy2arr2 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1814[0] { + yym1816 := z.EncBinary() + _ = yym1816 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1814[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1817 := z.EncBinary() + _ = yym1817 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1814[1] { + yym1819 := z.EncBinary() + _ = yym1819 if false { } else { - h.encSlicePod(([]Pod)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1814[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1820 := z.EncBinary() + _ = yym1820 if false { } else { - h.encSlicePod(([]Pod)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1814[2] { + yy1822 := &x.ListMeta + yym1823 := z.EncBinary() + _ = yym1823 if false { + } else if z.HasExtensions() && z.EncExt(yy1822) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1822) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1814[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1824 := &x.ListMeta + yym1825 := z.EncBinary() + _ = yym1825 if false { + } else if z.HasExtensions() && z.EncExt(yy1824) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1824) } } } - if yyr2 || yy2arr2 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1827 := z.EncBinary() + _ = yym1827 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePod(([]Pod)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1828 := z.EncBinary() + _ = yym1828 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1829 := z.DecBinary() + _ = yym1829 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1830 := r.ContainerType() + if yyct1830 == codecSelferValueTypeMap1234 { + yyl1830 := r.ReadMapStart() + if yyl1830 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1830, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1830 == codecSelferValueTypeArray1234 { + yyl1830 := r.ReadArrayStart() + if yyl1830 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +24765,51 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1831Slc = r.DecodeBytes(yys1831Slc, true, true) + yys1831 := string(yys1831Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1831 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1834 := &x.ListMeta + yym1835 := z.DecBinary() + _ = yym1835 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1834) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1834, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1836 := &x.Items + yym1837 := z.DecBinary() + _ = yym1837 if false { } else { - h.decSlicePod((*[]Pod)(yyv6), d) + h.decSlicePod((*[]Pod)(yyv1836), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1831) + } // end switch yys1831 + } // end for yyj1831 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23061,98 +24817,98 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1838 int + var yyb1838 bool + var yyhl1838 bool = l >= 0 + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb10 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb10 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb10 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb10 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePod((*[]Pod)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb10 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb10 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1841 := &x.ListMeta + yym1842 := z.DecBinary() + _ = yym1842 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1841) { + } else { + z.DecFallback(yyv1841, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb10 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb10 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1843 := &x.Items + yym1844 := z.DecBinary() + _ = yym1844 + if false { + } else { + h.decSlicePod((*[]Pod)(yyv1843), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb10 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb10 { + if yyb1838 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1847 := z.EncBinary() + _ = yym1847 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1848 = 1 + for _, b := range yyq1848 { if b { - yynn2++ + yynn1848++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1848) + yynn1848 = 0 } - if yyr2 || yy2arr2 { + if yyr1848 || yy2arr1848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym1851 := z.EncBinary() + _ = yym1851 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1852 := z.DecBinary() + _ = yym1852 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1853 := r.ContainerType() + if yyct1853 == codecSelferValueTypeMap1234 { + yyl1853 := r.ReadMapStart() + if yyl1853 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1853, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1853 == codecSelferValueTypeArray1234 { + yyl1853 := r.ReadArrayStart() + if yyl1853 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1854Slc = r.DecodeBytes(yys1854Slc, true, true) + yys1854 := string(yys1854Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1854 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv4 := &x.NodeSelectorTerms - yym5 := z.DecBinary() - _ = yym5 + yyv1855 := &x.NodeSelectorTerms + yym1856 := z.DecBinary() + _ = yym1856 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv4), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1855), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1857 int + var yyb1857 bool + var yyhl1857 bool = l >= 0 + yyj1857++ + if yyhl1857 { + yyb1857 = yyj1857 > l } else { - yyb6 = r.CheckBreak() + yyb1857 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.NodeSelectorTerms - yym8 := z.DecBinary() - _ = yym8 + yyv1858 := &x.NodeSelectorTerms + yym1859 := z.DecBinary() + _ = yym1859 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv7), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1858), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1857++ + if yyhl1857 { + yyb1857 = yyj1857 > l } else { - yyb6 = r.CheckBreak() + yyb1857 = r.CheckBreak() } - if yyb6 { + if yyb1857 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1860 := z.EncBinary() + _ = yym1860 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1861 = 1 + for _, b := range yyq1861 { if b { - yynn2++ + yynn1861++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1861) + yynn1861 = 0 } - if yyr2 || yy2arr2 { + if yyr1861 || yy2arr1861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym1864 := z.EncBinary() + _ = yym1864 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1865 := z.DecBinary() + _ = yym1865 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1866 := r.ContainerType() + if yyct1866 == codecSelferValueTypeMap1234 { + yyl1866 := r.ReadMapStart() + if yyl1866 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1866, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1866 == codecSelferValueTypeArray1234 { + yyl1866 := r.ReadArrayStart() + if yyl1866 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1867Slc = r.DecodeBytes(yys1867Slc, true, true) + yys1867 := string(yys1867Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1867 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv4 := &x.MatchExpressions - yym5 := z.DecBinary() - _ = yym5 + yyv1868 := &x.MatchExpressions + yym1869 := z.DecBinary() + _ = yym1869 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv4), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1868), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1870 int + var yyb1870 bool + var yyhl1870 bool = l >= 0 + yyj1870++ + if yyhl1870 { + yyb1870 = yyj1870 > l } else { - yyb6 = r.CheckBreak() + yyb1870 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.MatchExpressions - yym8 := z.DecBinary() - _ = yym8 + yyv1871 := &x.MatchExpressions + yym1872 := z.DecBinary() + _ = yym1872 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv7), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1871), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1870++ + if yyhl1870 { + yyb1870 = yyj1870 > l } else { - yyb6 = r.CheckBreak() + yyb1870 = r.CheckBreak() } - if yyb6 { + if yyb1870 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1873 := z.EncBinary() + _ = yym1873 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = len(x.Values) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1874 = 2 + for _, b := range yyq1874 { if b { - yynn2++ + yynn1874++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1874) + yynn1874 = 0 } - if yyr2 || yy2arr2 { + if yyr1874 || yy2arr1874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1877 := z.EncBinary() + _ = yym1877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1874 || yy2arr1874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1874[2] { if x.Values == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1882 := z.DecBinary() + _ = yym1882 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1883 := r.ContainerType() + if yyct1883 == codecSelferValueTypeMap1234 { + yyl1883 := r.ReadMapStart() + if yyl1883 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1883, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1883 == codecSelferValueTypeArray1234 { + yyl1883 := r.ReadArrayStart() + if yyl1883 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1884Slc = r.DecodeBytes(yys1884Slc, true, true) + yys1884 := string(yys1884Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.Values - yym7 := z.DecBinary() - _ = yym7 + yyv1887 := &x.Values + yym1888 := z.DecBinary() + _ = yym1888 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv1887, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1889 int + var yyb1889 bool + var yyhl1889 bool = l >= 0 + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb8 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb8 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb8 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Values - yym12 := z.DecBinary() - _ = yym12 + yyv1892 := &x.Values + yym1893 := z.DecBinary() + _ = yym1893 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv1892, false, d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb8 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb8 { + if yyb1889 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1896 := z.EncBinary() + _ = yym1896 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.NodeAffinity != nil - yyq2[1] = x.PodAffinity != nil - yyq2[2] = x.PodAntiAffinity != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1897 = 0 + for _, b := range yyq1897 { if b { - yynn2++ + yynn1897++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1897) + yynn1897 = 0 } - if yyr2 || yy2arr2 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1901 := z.DecBinary() + _ = yym1901 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1902 := r.ContainerType() + if yyct1902 == codecSelferValueTypeMap1234 { + yyl1902 := r.ReadMapStart() + if yyl1902 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1902, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1902 == codecSelferValueTypeArray1234 { + yyl1902 := r.ReadArrayStart() + if yyl1902 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1903Slc = r.DecodeBytes(yys1903Slc, true, true) + yys1903 := string(yys1903Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1907 int + var yyb1907 bool + var yyhl1907 bool = l >= 0 + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb7 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb7 { + if yyb1907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24065,13 +25821,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NodeAffinity.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb7 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb7 { + if yyb1907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24086,13 +25842,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PodAffinity.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb7 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb7 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb7 { + if yyb1907 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1911 := z.EncBinary() + _ = yym1911 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1912 = 0 + for _, b := range yyq1912 { if b { - yynn2++ + yynn1912++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1912) + yynn1912 = 0 } - if yyr2 || yy2arr2 { + if yyr1912 || yy2arr1912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1912[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1912 || yy2arr1912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1912[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1919 := z.DecBinary() + _ = yym1919 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1920 := r.ContainerType() + if yyct1920 == codecSelferValueTypeMap1234 { + yyl1920 := r.ReadMapStart() + if yyl1920 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1920, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1920 == codecSelferValueTypeArray1234 { + yyl1920 := r.ReadArrayStart() + if yyl1920 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1921Slc = r.DecodeBytes(yys1921Slc, true, true) + yys1921 := string(yys1921Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1921 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv4 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym5 := z.DecBinary() - _ = yym5 + yyv1922 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1923 := z.DecBinary() + _ = yym1923 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv4), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1922), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv6 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym7 := z.DecBinary() - _ = yym7 + yyv1924 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1925 := z.DecBinary() + _ = yym1925 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv6), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1924), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1926 int + var yyb1926 bool + var yyhl1926 bool = l >= 0 + yyj1926++ + if yyhl1926 { + yyb1926 = yyj1926 > l } else { - yyb8 = r.CheckBreak() + yyb1926 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym10 := z.DecBinary() - _ = yym10 + yyv1927 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1928 := z.DecBinary() + _ = yym1928 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv9), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1927), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1926++ + if yyhl1926 { + yyb1926 = yyj1926 > l } else { - yyb8 = r.CheckBreak() + yyb1926 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym12 := z.DecBinary() - _ = yym12 + yyv1929 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1930 := z.DecBinary() + _ = yym1930 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv11), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1929), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1926++ + if yyhl1926 { + yyb1926 = yyj1926 > l } else { - yyb8 = r.CheckBreak() + yyb1926 = r.CheckBreak() } - if yyb8 { + if yyb1926 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1931 := z.EncBinary() + _ = yym1931 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1932 = 0 + for _, b := range yyq1932 { if b { - yynn2++ + yynn1932++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1932) + yynn1932 = 0 } - if yyr2 || yy2arr2 { + if yyr1932 || yy2arr1932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1932[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1932 || yy2arr1932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1932[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1939 := z.DecBinary() + _ = yym1939 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1940 := r.ContainerType() + if yyct1940 == codecSelferValueTypeMap1234 { + yyl1940 := r.ReadMapStart() + if yyl1940 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1940, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1940 == codecSelferValueTypeArray1234 { + yyl1940 := r.ReadArrayStart() + if yyl1940 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1941Slc = r.DecodeBytes(yys1941Slc, true, true) + yys1941 := string(yys1941Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1941 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv4 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym5 := z.DecBinary() - _ = yym5 + yyv1942 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1943 := z.DecBinary() + _ = yym1943 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv4), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1942), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv6 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym7 := z.DecBinary() - _ = yym7 + yyv1944 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1945 := z.DecBinary() + _ = yym1945 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv6), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1944), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1946 int + var yyb1946 bool + var yyhl1946 bool = l >= 0 + yyj1946++ + if yyhl1946 { + yyb1946 = yyj1946 > l } else { - yyb8 = r.CheckBreak() + yyb1946 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym10 := z.DecBinary() - _ = yym10 + yyv1947 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1948 := z.DecBinary() + _ = yym1948 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv9), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1947), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1946++ + if yyhl1946 { + yyb1946 = yyj1946 > l } else { - yyb8 = r.CheckBreak() + yyb1946 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym12 := z.DecBinary() - _ = yym12 + yyv1949 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1950 := z.DecBinary() + _ = yym1950 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv11), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1949), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1946++ + if yyhl1946 { + yyb1946 = yyj1946 > l } else { - yyb8 = r.CheckBreak() + yyb1946 = r.CheckBreak() } - if yyb8 { + if yyb1946 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1951 := z.EncBinary() + _ = yym1951 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1952 = 2 + for _, b := range yyq1952 { if b { - yynn2++ + yynn1952++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1952) + yynn1952 = 0 } - if yyr2 || yy2arr2 { + if yyr1952 || yy2arr1952 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1955 := z.EncBinary() + _ = yym1955 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr2 || yy2arr2 { + if yyr1952 || yy2arr1952 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.PodAffinityTerm - yy7.CodecEncodeSelf(e) + yy1957 := &x.PodAffinityTerm + yy1957.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.PodAffinityTerm - yy9.CodecEncodeSelf(e) + yy1958 := &x.PodAffinityTerm + yy1958.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1959 := z.DecBinary() + _ = yym1959 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1960 := r.ContainerType() + if yyct1960 == codecSelferValueTypeMap1234 { + yyl1960 := r.ReadMapStart() + if yyl1960 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1960, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1960 == codecSelferValueTypeArray1234 { + yyl1960 := r.ReadArrayStart() + if yyl1960 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1961Slc = r.DecodeBytes(yys1961Slc, true, true) + yys1961 := string(yys1961Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.PodAffinityTerm - yyv5.CodecDecodeSelf(d) + yyv1963 := &x.PodAffinityTerm + yyv1963.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1964 int + var yyb1964 bool + var yyhl1964 bool = l >= 0 + yyj1964++ + if yyhl1964 { + yyb1964 = yyj1964 > l } else { - yyb6 = r.CheckBreak() + yyb1964 = r.CheckBreak() } - if yyb6 { + 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)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1964++ + if yyhl1964 { + yyb1964 = yyj1964 > l } else { - yyb6 = r.CheckBreak() + yyb1964 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.PodAffinityTerm - yyv8.CodecDecodeSelf(d) + yyv1966 := &x.PodAffinityTerm + yyv1966.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1964++ + if yyhl1964 { + yyb1964 = yyj1964 > l } else { - yyb6 = r.CheckBreak() + yyb1964 = r.CheckBreak() } - if yyb6 { + if yyb1964 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1967 := z.EncBinary() + _ = yym1967 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.LabelSelector != nil - yyq2[2] = x.TopologyKey != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1968 = 1 + for _, b := range yyq1968 { if b { - yynn2++ + yynn1968++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1968) + yynn1968 = 0 } - if yyr2 || yy2arr2 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1968[0] { if x.LabelSelector == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 { - yym8 := z.EncBinary() - _ = yym8 + yym1974 := z.EncBinary() + _ = yym1974 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } - if yyr2 || yy2arr2 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1968[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1977 := z.EncBinary() + _ = yym1977 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1978 := z.DecBinary() + _ = yym1978 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1979 := r.ContainerType() + if yyct1979 == codecSelferValueTypeMap1234 { + yyl1979 := r.ReadMapStart() + if yyl1979 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1979, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1979 == codecSelferValueTypeArray1234 { + yyl1979 := r.ReadArrayStart() + if yyl1979 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1980Slc = r.DecodeBytes(yys1980Slc, true, true) + yys1980 := string(yys1980Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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) } - yym5 := z.DecBinary() - _ = yym5 + 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 { - yyv6 := &x.Namespaces - yym7 := z.DecBinary() - _ = yym7 + yyv1983 := &x.Namespaces + yym1984 := z.DecBinary() + _ = yym1984 if false { } else { - z.F.DecSliceStringX(yyv6, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj1986 int + var yyb1986 bool + var yyhl1986 bool = l >= 0 + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb9 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb9 { + 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) } - yym11 := z.DecBinary() - _ = yym11 + yym1988 := z.DecBinary() + _ = yym1988 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb9 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb9 { + 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 { - yyv12 := &x.Namespaces - yym13 := z.DecBinary() - _ = yym13 + yyv1989 := &x.Namespaces + yym1990 := z.DecBinary() + _ = yym1990 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv1989, false, d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb9 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb9 { + 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 { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb9 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb9 { + if yyb1986 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1992 := z.EncBinary() + _ = yym1992 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil - yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1993 = 0 + for _, b := range yyq1993 { if b { - yynn2++ + yynn1993++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1993) + yynn1993 = 0 } - if yyr2 || yy2arr2 { + if yyr1993 || yy2arr1993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1993 || yy2arr1993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1993[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1998 := z.DecBinary() + _ = yym1998 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1999 := r.ContainerType() + if yyct1999 == codecSelferValueTypeMap1234 { + yyl1999 := r.ReadMapStart() + if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1999, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1999 == codecSelferValueTypeArray1234 { + yyl1999 := r.ReadArrayStart() + if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2000Slc = r.DecodeBytes(yys2000Slc, true, true) + yys2000 := string(yys2000Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym6 := z.DecBinary() - _ = yym6 + yyv2002 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym2003 := z.DecBinary() + _ = yym2003 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv5), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2002), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2004 int + var yyb2004 bool + var yyhl2004 bool = l >= 0 + yyj2004++ + if yyhl2004 { + yyb2004 = yyj2004 > l } else { - yyb7 = r.CheckBreak() + yyb2004 = r.CheckBreak() } - if yyb7 { + if yyb2004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25351,13 +27107,13 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2004++ + if yyhl2004 { + yyb2004 = yyj2004 > l } else { - yyb7 = r.CheckBreak() + yyb2004 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym10 := z.DecBinary() - _ = yym10 + yyv2006 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym2007 := z.DecBinary() + _ = yym2007 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv9), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2006), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2004++ + if yyhl2004 { + yyb2004 = yyj2004 > l } else { - yyb7 = r.CheckBreak() + yyb2004 = r.CheckBreak() } - if yyb7 { + if yyb2004 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2008 := z.EncBinary() + _ = yym2008 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn2009 = 2 + for _, b := range yyq2009 { if b { - yynn2++ + yynn2009++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2009) + yynn2009 = 0 } - if yyr2 || yy2arr2 { + if yyr2009 || yy2arr2009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym2012 := z.EncBinary() + _ = yym2012 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr2 || yy2arr2 { + if yyr2009 || yy2arr2009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Preference - yy7.CodecEncodeSelf(e) + yy2014 := &x.Preference + yy2014.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Preference - yy9.CodecEncodeSelf(e) + yy2015 := &x.Preference + yy2015.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2016 := z.DecBinary() + _ = yym2016 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2017 := r.ContainerType() + if yyct2017 == codecSelferValueTypeMap1234 { + yyl2017 := r.ReadMapStart() + if yyl2017 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2017, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2017 == codecSelferValueTypeArray1234 { + yyl2017 := r.ReadArrayStart() + if yyl2017 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2018Slc = r.DecodeBytes(yys2018Slc, true, true) + yys2018 := string(yys2018Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Preference - yyv5.CodecDecodeSelf(d) + yyv2020 := &x.Preference + yyv2020.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2021 int + var yyb2021 bool + var yyhl2021 bool = l >= 0 + yyj2021++ + if yyhl2021 { + yyb2021 = yyj2021 > l } else { - yyb6 = r.CheckBreak() + yyb2021 = r.CheckBreak() } - if yyb6 { + 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)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2021++ + if yyhl2021 { + yyb2021 = yyj2021 > l } else { - yyb6 = r.CheckBreak() + yyb2021 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.Preference - yyv8.CodecDecodeSelf(d) + yyv2023 := &x.Preference + yyv2023.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2021++ + if yyhl2021 { + yyb2021 = yyj2021 > l } else { - yyb6 = r.CheckBreak() + yyb2021 = r.CheckBreak() } - if yyb6 { + if yyb2021 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2024 := z.EncBinary() + _ = yym2024 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Value != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn2025 = 2 + for _, b := range yyq2025 { if b { - yynn2++ + yynn2025++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2025) + yynn2025 = 0 } - if yyr2 || yy2arr2 { + if yyr2025 || yy2arr2025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym2028 := z.EncBinary() + _ = yym2028 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr2025 || yy2arr2025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq2025[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2031 := z.EncBinary() + _ = yym2031 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2033 := z.DecBinary() + _ = yym2033 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2034 := r.ContainerType() + if yyct2034 == codecSelferValueTypeMap1234 { + yyl2034 := r.ReadMapStart() + if yyl2034 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2034, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2034 == codecSelferValueTypeArray1234 { + yyl2034 := r.ReadArrayStart() + if yyl2034 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2035Slc = r.DecodeBytes(yys2035Slc, true, true) + yys2035 := string(yys2035Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2039 int + var yyb2039 bool + var yyhl2039 bool = l >= 0 + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb7 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb7 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb7 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb7 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb7 { + if yyb2039 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym2045 := z.EncBinary() + _ = yym2045 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Key != "" - yyq2[1] = x.Operator != "" - yyq2[2] = x.Value != "" - yyq2[3] = x.Effect != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2046 = 0 + for _, b := range yyq2046 { if b { - yynn2++ + yynn2046++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2046) + yynn2046 = 0 } - if yyr2 || yy2arr2 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq2046[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2049 := z.EncBinary() + _ = yym2049 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } - if yyr2 || yy2arr2 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2046[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2046[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq2046[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2053 := z.EncBinary() + _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2 || yy2arr2 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq2046[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2046[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2055 := z.DecBinary() + _ = yym2055 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2056 := r.ContainerType() + if yyct2056 == codecSelferValueTypeMap1234 { + yyl2056 := r.ReadMapStart() + if yyl2056 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2056, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2056 == codecSelferValueTypeArray1234 { + yyl2056 := r.ReadArrayStart() + if yyl2056 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2057Slc = r.DecodeBytes(yys2057Slc, true, true) + yys2057 := string(yys2057Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2062 int + var yyb2062 bool + var yyhl2062 bool = l >= 0 + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb8 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb8 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb8 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb8 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb8 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb8 { + if yyb2062 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym2069 := z.EncBinary() + _ = yym2069 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [13]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.RestartPolicy != "" - yyq2[3] = x.TerminationGracePeriodSeconds != nil - yyq2[4] = x.ActiveDeadlineSeconds != nil - yyq2[5] = x.DNSPolicy != "" - yyq2[6] = len(x.NodeSelector) != 0 - yyq2[8] = x.NodeName != "" - yyq2[9] = x.SecurityContext != nil - yyq2[10] = len(x.ImagePullSecrets) != 0 - yyq2[11] = x.Hostname != "" - yyq2[12] = x.Subdomain != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 3 - for _, b := range yyq2 { + yynn2070 = 3 + for _, b := range yyq2070 { if b { - yynn2++ + yynn2070++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2070) + yynn2070 = 0 } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym2073 := z.EncBinary() + _ = yym2073 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 { - yym8 := z.EncBinary() - _ = yym8 + yym2076 := z.EncBinary() + _ = yym2076 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2070[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2070[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq2070[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy13 := *x.TerminationGracePeriodSeconds - yym14 := z.EncBinary() - _ = yym14 + yy2079 := *x.TerminationGracePeriodSeconds + yym2080 := z.EncBinary() + _ = yym2080 if false { } else { - r.EncodeInt(int64(yy13)) + r.EncodeInt(int64(yy2079)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy15 := *x.TerminationGracePeriodSeconds - yym16 := z.EncBinary() - _ = yym16 + yy2081 := *x.TerminationGracePeriodSeconds + yym2082 := z.EncBinary() + _ = yym2082 if false { } else { - r.EncodeInt(int64(yy15)) + r.EncodeInt(int64(yy2081)) } } } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq2070[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy18 := *x.ActiveDeadlineSeconds - yym19 := z.EncBinary() - _ = yym19 + yy2084 := *x.ActiveDeadlineSeconds + yym2085 := z.EncBinary() + _ = yym2085 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy2084)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy20 := *x.ActiveDeadlineSeconds - yym21 := z.EncBinary() - _ = yym21 + yy2086 := *x.ActiveDeadlineSeconds + yym2087 := z.EncBinary() + _ = yym2087 if false { } else { - r.EncodeInt(int64(yy20)) + r.EncodeInt(int64(yy2086)) } } } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq2070[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq2070[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq2070[6] { if x.NodeSelector == nil { r.EncodeNil() } else { - yym26 := z.EncBinary() - _ = yym26 + 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 yyq2[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 { - yym27 := z.EncBinary() - _ = yym27 + 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 yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym29 := z.EncBinary() - _ = yym29 + 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) - yym30 := z.EncBinary() - _ = yym30 + yym2094 := z.EncBinary() + _ = yym2094 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym32 := z.EncBinary() - _ = yym32 + 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 yyq2[8] { + if yyq2070[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym33 := z.EncBinary() - _ = yym33 + yym2097 := z.EncBinary() + _ = yym2097 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { + if yyq2070[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym38 := z.EncBinary() - _ = yym38 + 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 yyq2[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 { - yym39 := z.EncBinary() - _ = yym39 + 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 yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { - yym41 := z.EncBinary() - _ = yym41 + 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 yyq2[11] { + if yyq2070[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym42 := z.EncBinary() - _ = yym42 + yym2104 := z.EncBinary() + _ = yym2104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2 || yy2arr2 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - yym44 := z.EncBinary() - _ = yym44 + 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 yyq2[12] { + if yyq2070[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym45 := z.EncBinary() - _ = yym45 + yym2107 := z.EncBinary() + _ = yym2107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2108 := z.DecBinary() + _ = yym2108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2109 := r.ContainerType() + if yyct2109 == codecSelferValueTypeMap1234 { + yyl2109 := r.ReadMapStart() + if yyl2109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2109, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2109 == codecSelferValueTypeArray1234 { + yyl2109 := r.ReadArrayStart() + if yyl2109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2110Slc = r.DecodeBytes(yys2110Slc, true, true) + yys2110 := string(yys2110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2110 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv4 := &x.Volumes - yym5 := z.DecBinary() - _ = yym5 + yyv2111 := &x.Volumes + yym2112 := z.DecBinary() + _ = yym2112 if false { } else { - h.decSliceVolume((*[]Volume)(yyv4), d) + h.decSliceVolume((*[]Volume)(yyv2111), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv6 := &x.Containers - yym7 := z.DecBinary() - _ = yym7 + yyv2113 := &x.Containers + yym2114 := z.DecBinary() + _ = yym2114 if false { } else { - h.decSliceContainer((*[]Container)(yyv6), 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) } - yym10 := z.DecBinary() - _ = yym10 + 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) } - yym12 := z.DecBinary() - _ = yym12 + 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 { - yyv14 := &x.NodeSelector - yym15 := z.DecBinary() - _ = yym15 + yyv2121 := &x.NodeSelector + yym2122 := z.DecBinary() + _ = yym2122 if false { } else { - z.F.DecMapStringStringX(yyv14, 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 { - yyv19 := &x.ImagePullSecrets - yym20 := z.DecBinary() - _ = yym20 + yyv2126 := &x.ImagePullSecrets + yym2127 := z.DecBinary() + _ = yym2127 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv19), 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj23 int - var yyb23 bool - var yyhl23 bool = l >= 0 - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + var yyj2130 int + var yyb2130 bool + var yyhl2130 bool = l >= 0 + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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 { - yyv24 := &x.Volumes - yym25 := z.DecBinary() - _ = yym25 + yyv2131 := &x.Volumes + yym2132 := z.DecBinary() + _ = yym2132 if false { } else { - h.decSliceVolume((*[]Volume)(yyv24), d) + h.decSliceVolume((*[]Volume)(yyv2131), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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 { - yyv26 := &x.Containers - yym27 := z.DecBinary() - _ = yym27 + yyv2133 := &x.Containers + yym2134 := z.DecBinary() + _ = yym2134 if false { } else { - h.decSliceContainer((*[]Container)(yyv26), d) + h.decSliceContainer((*[]Container)(yyv2133), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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) } - yym30 := z.DecBinary() - _ = yym30 + yym2137 := z.DecBinary() + _ = yym2137 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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) } - yym32 := z.DecBinary() - _ = yym32 + yym2139 := z.DecBinary() + _ = yym2139 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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 { - yyv34 := &x.NodeSelector - yym35 := z.DecBinary() - _ = yym35 + yyv2141 := &x.NodeSelector + yym2142 := z.DecBinary() + _ = yym2142 if false { } else { - z.F.DecMapStringStringX(yyv34, false, d) + z.F.DecMapStringStringX(yyv2141, false, d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26954,13 +28710,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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 { - yyv39 := &x.ImagePullSecrets - yym40 := z.DecBinary() - _ = yym40 + yyv2146 := &x.ImagePullSecrets + yym2147 := z.DecBinary() + _ = yym2147 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv39), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2146), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb23 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb23 { + 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 { - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l + } else { + yyb2130 = r.CheckBreak() + } + if yyb2130 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + 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 { - yyb23 = r.CheckBreak() + yyb2163 = r.CheckBreak() } - if yyb23 { + if yyb2163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj23-1, "") + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym2166 := z.EncBinary() + _ = yym2166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.HostNetwork != false - yyq2[1] = x.HostPID != false - yyq2[2] = x.HostIPC != false - yyq2[3] = x.SELinuxOptions != nil - yyq2[4] = x.RunAsUser != nil - yyq2[5] = x.RunAsNonRoot != nil - yyq2[6] = len(x.SupplementalGroups) != 0 - yyq2[7] = x.FSGroup != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2167 = 0 + for _, b := range yyq2167 { if b { - yynn2++ + yynn2167++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2167) + yynn2167 = 0 } - if yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq2167[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2170 := z.EncBinary() + _ = yym2170 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq2167[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2173 := z.EncBinary() + _ = yym2173 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq2167[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2176 := z.EncBinary() + _ = yym2176 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq2167[4] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy16 := *x.RunAsUser - yym17 := z.EncBinary() - _ = yym17 + yy2179 := *x.RunAsUser + yym2180 := z.EncBinary() + _ = yym2180 if false { } else { - r.EncodeInt(int64(yy16)) + r.EncodeInt(int64(yy2179)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy18 := *x.RunAsUser - yym19 := z.EncBinary() - _ = yym19 + yy2181 := *x.RunAsUser + yym2182 := z.EncBinary() + _ = yym2182 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy2181)) } } } } - if yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq2167[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy21 := *x.RunAsNonRoot - yym22 := z.EncBinary() - _ = yym22 + yy2184 := *x.RunAsNonRoot + yym2185 := z.EncBinary() + _ = yym2185 if false { } else { - r.EncodeBool(bool(yy21)) + r.EncodeBool(bool(yy2184)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy23 := *x.RunAsNonRoot - yym24 := z.EncBinary() - _ = yym24 + yy2186 := *x.RunAsNonRoot + yym2187 := z.EncBinary() + _ = yym2187 if false { } else { - r.EncodeBool(bool(yy23)) + r.EncodeBool(bool(yy2186)) } } } } - if yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq2167[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym26 := z.EncBinary() - _ = yym26 + 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 yyq2[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 { - yym27 := z.EncBinary() - _ = yym27 + 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 yyr2 || yy2arr2 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq2167[7] { if x.FSGroup == nil { r.EncodeNil() } else { - yy29 := *x.FSGroup - yym30 := z.EncBinary() - _ = yym30 + yy2192 := *x.FSGroup + yym2193 := z.EncBinary() + _ = yym2193 if false { } else { - r.EncodeInt(int64(yy29)) + r.EncodeInt(int64(yy2192)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy31 := *x.FSGroup - yym32 := z.EncBinary() - _ = yym32 + yy2194 := *x.FSGroup + yym2195 := z.EncBinary() + _ = yym2195 if false { } else { - r.EncodeInt(int64(yy31)) + r.EncodeInt(int64(yy2194)) } } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2196 := z.DecBinary() + _ = yym2196 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2197 := r.ContainerType() + if yyct2197 == codecSelferValueTypeMap1234 { + yyl2197 := r.ReadMapStart() + if yyl2197 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2197, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2197 == codecSelferValueTypeArray1234 { + yyl2197 := r.ReadArrayStart() + if yyl2197 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2198Slc = r.DecodeBytes(yys2198Slc, true, true) + yys2198 := string(yys2198Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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) } - yym9 := z.DecBinary() - _ = yym9 + 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) } - yym11 := z.DecBinary() - _ = yym11 + 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 { - yyv12 := &x.SupplementalGroups - yym13 := z.DecBinary() - _ = yym13 + yyv2207 := &x.SupplementalGroups + yym2208 := z.DecBinary() + _ = yym2208 if false { } else { - z.F.DecSliceInt64X(yyv12, 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) } - yym15 := z.DecBinary() - _ = yym15 + yym2210 := z.DecBinary() + _ = yym2210 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj16 int - var yyb16 bool - var yyhl16 bool = l >= 0 - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + var yyj2211 int + var yyb2211 bool + var yyhl2211 bool = l >= 0 + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27531,13 +29490,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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) } - yym22 := z.DecBinary() - _ = yym22 + yym2217 := z.DecBinary() + _ = yym2217 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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) } - yym24 := z.DecBinary() - _ = yym24 + yym2219 := z.DecBinary() + _ = yym2219 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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 { - yyv25 := &x.SupplementalGroups - yym26 := z.DecBinary() - _ = yym26 + yyv2220 := &x.SupplementalGroups + yym2221 := z.DecBinary() + _ = yym2221 if false { } else { - z.F.DecSliceInt64X(yyv25, false, d) + z.F.DecSliceInt64X(yyv2220, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + 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) } - yym28 := z.DecBinary() - _ = yym28 + yym2223 := z.DecBinary() + _ = yym2223 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb16 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb16 { + if yyb2211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj16-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2224 := z.EncBinary() + _ = yym2224 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - yyq2[1] = len(x.Conditions) != 0 - yyq2[2] = x.Message != "" - yyq2[3] = x.Reason != "" - yyq2[4] = x.HostIP != "" - yyq2[5] = x.PodIP != "" - yyq2[6] = x.StartTime != nil - yyq2[7] = len(x.ContainerStatuses) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2225 = 0 + for _, b := range yyq2225 { if b { - yynn2++ + yynn2225++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2225) + yynn2225 = 0 } - if yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2225[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2225[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2225[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq2225[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2232 := z.EncBinary() + _ = yym2232 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq2225[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2235 := z.EncBinary() + _ = yym2235 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq2225[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym2238 := z.EncBinary() + _ = yym2238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq2225[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym2241 := z.EncBinary() + _ = yym2241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq2225[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym22 := z.EncBinary() - _ = yym22 + yym2243 := z.EncBinary() + _ = yym2243 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym22 { + } else if yym2243 { z.EncBinaryMarshal(x.StartTime) - } else if !yym22 && 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 yyq2[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 { - yym23 := z.EncBinary() - _ = yym23 + yym2244 := z.EncBinary() + _ = yym2244 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym23 { + } else if yym2244 { z.EncBinaryMarshal(x.StartTime) - } else if !yym23 && 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 yyr2 || yy2arr2 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq2225[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[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 { - yym26 := z.EncBinary() - _ = yym26 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2248 := z.DecBinary() + _ = yym2248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2249 := r.ContainerType() + if yyct2249 == codecSelferValueTypeMap1234 { + yyl2249 := r.ReadMapStart() + if yyl2249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2249, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2249 == codecSelferValueTypeArray1234 { + yyl2249 := r.ReadArrayStart() + if yyl2249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2250Slc = r.DecodeBytes(yys2250Slc, true, true) + yys2250 := string(yys2250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Conditions - yym6 := z.DecBinary() - _ = yym6 + yyv2252 := &x.Conditions + yym2253 := z.DecBinary() + _ = yym2253 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv5), 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) } - yym12 := z.DecBinary() - _ = yym12 + yym2259 := z.DecBinary() + _ = yym2259 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym12 { + } else if yym2259 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym12 && 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 { - yyv13 := &x.ContainerStatuses - yym14 := z.DecBinary() - _ = yym14 + yyv2260 := &x.ContainerStatuses + yym2261 := z.DecBinary() + _ = yym2261 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv13), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2260), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj15 int - var yyb15 bool - var yyhl15 bool = l >= 0 - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + var yyj2262 int + var yyb2262 bool + var yyhl2262 bool = l >= 0 + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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 { - yyv17 := &x.Conditions - yym18 := z.DecBinary() - _ = yym18 + yyv2264 := &x.Conditions + yym2265 := z.DecBinary() + _ = yym2265 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv17), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2264), d) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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) } - yym24 := z.DecBinary() - _ = yym24 + yym2271 := z.DecBinary() + _ = yym2271 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym24 { + } else if yym2271 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym24 && z.IsJSONHandle() { + } else if !yym2271 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + 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 { - yyv25 := &x.ContainerStatuses - yym26 := z.DecBinary() - _ = yym26 + yyv2272 := &x.ContainerStatuses + yym2273 := z.DecBinary() + _ = yym2273 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv25), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2272), d) } } for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb15 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb15 { + if yyb2262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj15-1, "") + z.DecStructFieldNotFound(yyj2262-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28237,72 +30196,38 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2274 := z.EncBinary() + _ = yym2274 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2275 = 0 + for _, b := range yyq2275 { if b { - yynn2++ + yynn2275++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2275) + yynn2275 = 0 } - if yyr2 || yy2arr2 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2275[0] { + yym2277 := z.EncBinary() + _ = yym2277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -28311,23 +30236,23 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2275[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym2278 := z.EncBinary() + _ = yym2278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2275[1] { + yym2280 := z.EncBinary() + _ = yym2280 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -28336,19 +30261,53 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2275[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym2281 := z.EncBinary() + _ = yym2281 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2275 || yy2arr2275 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2275[2] { + yy2283 := &x.ObjectMeta + yy2283.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2275[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2284 := &x.ObjectMeta + yy2284.CodecEncodeSelf(e) + } + } + if yyr2275 || yy2arr2275 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2275[3] { + yy2286 := &x.Status + yy2286.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2275[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2287 := &x.Status + yy2287.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2288 := z.DecBinary() + _ = yym2288 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2289 := r.ContainerType() + if yyct2289 == codecSelferValueTypeMap1234 { + yyl2289 := r.ReadMapStart() + if yyl2289 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2289, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2289 == codecSelferValueTypeArray1234 { + yyl2289 := r.ReadArrayStart() + if yyl2289 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,24 +30364,10 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2290Slc = r.DecodeBytes(yys2290Slc, true, true) + yys2290 := string(yys2290Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PodStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys2290 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28435,10 +30380,24 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2293 := &x.ObjectMeta + yyv2293.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2294 := &x.Status + yyv2294.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2290) + } // end switch yys2290 + } // end for yyj2290 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28446,87 +30405,87 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2295 int + var yyb2295 bool + var yyhl2295 bool = l >= 0 + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb8 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb8 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb8 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb8 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb8 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb8 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2298 := &x.ObjectMeta + yyv2298.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb8 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb8 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2299 := &x.Status + yyv2299.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb8 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb8 { + if yyb2295 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2295-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28538,136 +30497,136 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2300 := z.EncBinary() + _ = yym2300 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2301 = 0 + for _, b := range yyq2301 { if b { - yynn2++ + yynn2301++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2301) + yynn2301 = 0 } - if yyr2 || yy2arr2 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2301[0] { + yym2303 := z.EncBinary() + _ = yym2303 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2301[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2304 := z.EncBinary() + _ = yym2304 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2301[1] { + yym2306 := z.EncBinary() + _ = yym2306 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2301[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym2307 := z.EncBinary() + _ = yym2307 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq2301[2] { + yy2309 := &x.ObjectMeta + yy2309.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2301[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy2310 := &x.ObjectMeta + yy2310.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2301[3] { + yy2312 := &x.Spec + yy2312.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq2301[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2313 := &x.Spec + yy2313.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq2301[4] { + yy2315 := &x.Status + yy2315.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq2301[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy2316 := &x.Status + yy2316.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2317 := z.DecBinary() + _ = yym2317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2318 := r.ContainerType() + if yyct2318 == codecSelferValueTypeMap1234 { + yyl2318 := r.ReadMapStart() + if yyl2318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2318, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2318 == codecSelferValueTypeArray1234 { + yyl2318 := r.ReadArrayStart() + if yyl2318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +30683,47 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2319Slc = r.DecodeBytes(yys2319Slc, true, true) + yys2319 := string(yys2319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys2319 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PodSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv2322 := &x.ObjectMeta + yyv2322.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2323 := &x.Spec + yyv2323.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2324 := &x.Status + yyv2324.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2319) + } // end switch yys2319 + } // end for yyj2319 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28772,16 +30731,48 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2325 int + var yyb2325 bool + var yyhl2325 bool = l >= 0 + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l + } else { + yyb2325 = r.CheckBreak() + } + if yyb2325 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l + } else { + yyb2325 = r.CheckBreak() + } + if yyb2325 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb9 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb9 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28789,16 +30780,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + yyv2328 := &x.ObjectMeta + yyv2328.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb9 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb9 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28806,16 +30797,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + yyv2329 := &x.Spec + yyv2329.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb9 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb9 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28823,53 +30814,21 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) + yyv2330 := &x.Status + yyv2330.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb9 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb9 { + if yyb2325 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2331 := z.EncBinary() + _ = yym2331 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2332 = 0 + for _, b := range yyq2332 { if b { - yynn2++ + yynn2332++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2332) + yynn2332 = 0 } - if yyr2 || yy2arr2 { + if yyr2332 || yy2arr2332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2332[0] { + yy2334 := &x.ObjectMeta + yy2334.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2332[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy2335 := &x.ObjectMeta + yy2335.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2332 || yy2arr2332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2332[1] { + yy2337 := &x.Spec + yy2337.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq2332[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yy2338 := &x.Spec + yy2338.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2339 := z.DecBinary() + _ = yym2339 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2340 := r.ContainerType() + if yyct2340 == codecSelferValueTypeMap1234 { + yyl2340 := r.ReadMapStart() + if yyl2340 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2340, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2340 == codecSelferValueTypeArray1234 { + yyl2340 := r.ReadArrayStart() + if yyl2340 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2341Slc = r.DecodeBytes(yys2341Slc, true, true) + yys2341 := string(yys2341Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2341 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv2342 := &x.ObjectMeta + yyv2342.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + yyv2343 := &x.Spec + yyv2343.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2344 int + var yyb2344 bool + var yyhl2344 bool = l >= 0 + yyj2344++ + if yyhl2344 { + yyb2344 = yyj2344 > l } else { - yyb6 = r.CheckBreak() + yyb2344 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.ObjectMeta - yyv7.CodecDecodeSelf(d) + yyv2345 := &x.ObjectMeta + yyv2345.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2344++ + if yyhl2344 { + yyb2344 = yyj2344 > l } else { - yyb6 = r.CheckBreak() + yyb2344 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.Spec - yyv8.CodecDecodeSelf(d) + yyv2346 := &x.Spec + yyv2346.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2344++ + if yyhl2344 { + yyb2344 = yyj2344 > l } else { - yyb6 = r.CheckBreak() + yyb2344 = r.CheckBreak() } - if yyb6 { + if yyb2344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj2344-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29086,72 +31045,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2347 := z.EncBinary() + _ = yym2347 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2348 = 0 + for _, b := range yyq2348 { if b { - yynn2++ + yynn2348++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Template - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Template - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn2348) + yynn2348 = 0 } - if yyr2 || yy2arr2 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2348[0] { + yym2350 := z.EncBinary() + _ = yym2350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29160,23 +31085,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2348[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym2351 := z.EncBinary() + _ = yym2351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2348[1] { + yym2353 := z.EncBinary() + _ = yym2353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29185,19 +31110,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2348[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym2354 := z.EncBinary() + _ = yym2354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2348 || yy2arr2348 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2348[2] { + yy2356 := &x.ObjectMeta + yy2356.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2348[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2357 := &x.ObjectMeta + yy2357.CodecEncodeSelf(e) + } + } + if yyr2348 || yy2arr2348 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2348[3] { + yy2359 := &x.Template + yy2359.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2348[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2360 := &x.Template + yy2360.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2361 := z.DecBinary() + _ = yym2361 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2362 := r.ContainerType() + if yyct2362 == codecSelferValueTypeMap1234 { + yyl2362 := r.ReadMapStart() + if yyl2362 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2362, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2362 == codecSelferValueTypeArray1234 { + yyl2362 := r.ReadArrayStart() + if yyl2362 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,24 +31213,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2363Slc = r.DecodeBytes(yys2363Slc, true, true) + yys2363 := string(yys2363Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "template": - if r.TryDecodeAsNil() { - x.Template = PodTemplateSpec{} - } else { - yyv5 := &x.Template - yyv5.CodecDecodeSelf(d) - } + switch yys2363 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -29284,10 +31229,24 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2366 := &x.ObjectMeta + yyv2366.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = PodTemplateSpec{} + } else { + yyv2367 := &x.Template + yyv2367.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2363) + } // end switch yys2363 + } // end for yyj2363 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29295,87 +31254,87 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2368 int + var yyb2368 bool + var yyhl2368 bool = l >= 0 + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb8 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb8 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb8 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb8 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Template = PodTemplateSpec{} + x.APIVersion = "" } else { - yyv10 := &x.Template - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb8 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb8 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2371 := &x.ObjectMeta + yyv2371.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb8 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb8 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Template = PodTemplateSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2372 := &x.Template + yyv2372.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb8 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb8 { + if yyb2368 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2368-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29387,139 +31346,139 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2373 := z.EncBinary() + _ = yym2373 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2374 = 1 + for _, b := range yyq2374 { if b { - yynn2++ + yynn2374++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2374) + yynn2374 = 0 } - if yyr2 || yy2arr2 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2374[0] { + yym2376 := z.EncBinary() + _ = yym2376 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2374[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2377 := z.EncBinary() + _ = yym2377 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2374[1] { + yym2379 := z.EncBinary() + _ = yym2379 if false { } else { - h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2374[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2380 := z.EncBinary() + _ = yym2380 if false { } else { - h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2374[2] { + yy2382 := &x.ListMeta + yym2383 := z.EncBinary() + _ = yym2383 if false { + } else if z.HasExtensions() && z.EncExt(yy2382) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2382) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2374[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2384 := &x.ListMeta + yym2385 := z.EncBinary() + _ = yym2385 if false { + } else if z.HasExtensions() && z.EncExt(yy2384) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2384) } } } - if yyr2 || yy2arr2 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2387 := z.EncBinary() + _ = yym2387 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2388 := z.EncBinary() + _ = yym2388 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29532,25 +31491,25 @@ func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2389 := z.DecBinary() + _ = yym2389 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2390 := r.ContainerType() + if yyct2390 == codecSelferValueTypeMap1234 { + yyl2390 := r.ReadMapStart() + if yyl2390 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2390, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2390 == codecSelferValueTypeArray1234 { + yyl2390 := r.ReadArrayStart() + if yyl2390 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2390, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29562,12 +31521,12 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys2391Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2391Slc + var yyhl2391 bool = l >= 0 + for yyj2391 := 0; ; yyj2391++ { + if yyhl2391 { + if yyj2391 >= l { break } } else { @@ -29576,51 +31535,51 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2391Slc = r.DecodeBytes(yys2391Slc, true, true) + yys2391 := string(yys2391Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2391 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2394 := &x.ListMeta + yym2395 := z.DecBinary() + _ = yym2395 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2394) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2394, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2396 := &x.Items + yym2397 := z.DecBinary() + _ = yym2397 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv6), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2396), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2391) + } // end switch yys2391 + } // end for yyj2391 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29628,98 +31587,98 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2398 int + var yyb2398 bool + var yyhl2398 bool = l >= 0 + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb10 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb10 { + if yyb2398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb10 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb10 { + if yyb2398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb10 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb10 { + if yyb2398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2401 := &x.ListMeta + yym2402 := z.DecBinary() + _ = yym2402 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2401) { + } else { + z.DecFallback(yyv2401, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb10 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb10 { + if yyb2398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2403 := &x.Items + yym2404 := z.DecBinary() + _ = yym2404 + if false { + } else { + h.decSlicePodTemplate((*[]PodTemplate)(yyv2403), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb10 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb10 { + if yyb2398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2398-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29731,34 +31690,34 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2405 := z.EncBinary() + _ = yym2405 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Template != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn2406 = 2 + for _, b := range yyq2406 { if b { - yynn2++ + yynn2406++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2406) + yynn2406 = 0 } - if yyr2 || yy2arr2 { + if yyr2406 || yy2arr2406 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2408 := z.EncBinary() + _ = yym2408 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -29767,20 +31726,20 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2409 := z.EncBinary() + _ = yym2409 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr2406 || yy2arr2406 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym2411 := z.EncBinary() + _ = yym2411 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -29793,17 +31752,17 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym2412 := z.EncBinary() + _ = yym2412 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } - if yyr2 || yy2arr2 { + if yyr2406 || yy2arr2406 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2406[2] { if x.Template == nil { r.EncodeNil() } else { @@ -29813,7 +31772,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2406[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -29824,7 +31783,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2406 || yy2arr2406 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29837,25 +31796,25 @@ func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2414 := z.DecBinary() + _ = yym2414 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2415 := r.ContainerType() + if yyct2415 == codecSelferValueTypeMap1234 { + yyl2415 := r.ReadMapStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2415, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2415 == codecSelferValueTypeArray1234 { + yyl2415 := r.ReadArrayStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2415, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29867,12 +31826,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -29881,10 +31840,10 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2416Slc = r.DecodeBytes(yys2416Slc, true, true) + yys2416 := string(yys2416Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2416 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -29895,12 +31854,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv5 := &x.Selector - yym6 := z.DecBinary() - _ = yym6 + yyv2418 := &x.Selector + yym2419 := z.DecBinary() + _ = yym2419 if false { } else { - z.F.DecMapStringStringX(yyv5, false, d) + z.F.DecMapStringStringX(yyv2418, false, d) } } case "template": @@ -29915,9 +31874,9 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.Template.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2416) + } // end switch yys2416 + } // end for yyj2416 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29925,16 +31884,16 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2421 int + var yyb2421 bool + var yyhl2421 bool = l >= 0 + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l } else { - yyb8 = r.CheckBreak() + yyb2421 = r.CheckBreak() } - if yyb8 { + if yyb2421 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29944,13 +31903,13 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l } else { - yyb8 = r.CheckBreak() + yyb2421 = r.CheckBreak() } - if yyb8 { + if yyb2421 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29958,21 +31917,21 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv10 := &x.Selector - yym11 := z.DecBinary() - _ = yym11 + yyv2423 := &x.Selector + yym2424 := z.DecBinary() + _ = yym2424 if false { } else { - z.F.DecMapStringStringX(yyv10, false, d) + z.F.DecMapStringStringX(yyv2423, false, d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l } else { - yyb8 = r.CheckBreak() + yyb2421 = r.CheckBreak() } - if yyb8 { + if yyb2421 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29988,17 +31947,17 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.Template.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l } else { - yyb8 = r.CheckBreak() + yyb2421 = r.CheckBreak() } - if yyb8 { + if yyb2421 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2421-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30010,35 +31969,36 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2426 := z.EncBinary() + _ = yym2426 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FullyLabeledReplicas != 0 - yyq2[2] = x.ObservedGeneration != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2427 = 1 + for _, b := range yyq2427 { if b { - yynn2++ + yynn2427++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2427) + yynn2427 = 0 } - if yyr2 || yy2arr2 { + if yyr2427 || yy2arr2427 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2429 := z.EncBinary() + _ = yym2429 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -30047,18 +32007,18 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2430 := z.EncBinary() + _ = yym2430 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr2427 || yy2arr2427 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq2427[1] { + yym2432 := z.EncBinary() + _ = yym2432 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -30067,23 +32027,48 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq2427[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2433 := z.EncBinary() + _ = yym2433 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr2427 || yy2arr2427 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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)) @@ -30092,19 +32077,19 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq2427[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2439 := z.EncBinary() + _ = yym2439 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2 || yy2arr2 { + if yyr2427 || yy2arr2427 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30117,25 +32102,25 @@ func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2440 := z.DecBinary() + _ = yym2440 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2441 := r.ContainerType() + if yyct2441 == codecSelferValueTypeMap1234 { + yyl2441 := r.ReadMapStart() + if yyl2441 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2441, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2441 == codecSelferValueTypeArray1234 { + yyl2441 := r.ReadArrayStart() + if yyl2441 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2441, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30147,12 +32132,12 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -30161,10 +32146,10 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2442Slc = r.DecodeBytes(yys2442Slc, true, true) + yys2442 := string(yys2442Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2442 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -30177,6 +32162,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 @@ -30184,9 +32175,9 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 x.ObservedGeneration = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2442) + } // end switch yys2442 + } // end for yyj2442 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30194,16 +32185,16 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2447 int + var yyb2447 bool + var yyhl2447 bool = l >= 0 + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb7 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb7 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30213,13 +32204,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb7 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb7 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30229,13 +32220,29 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb7 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb7 { + 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 } @@ -30246,17 +32253,17 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 x.ObservedGeneration = int64(r.DecodeInt(64)) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb7 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb7 { + if yyb2447 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj2447-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30268,136 +32275,136 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2452 := z.EncBinary() + _ = yym2452 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2453 = 0 + for _, b := range yyq2453 { if b { - yynn2++ + yynn2453++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2453) + yynn2453 = 0 } - if yyr2 || yy2arr2 { + if yyr2453 || yy2arr2453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2453[0] { + yym2455 := z.EncBinary() + _ = yym2455 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2453[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2456 := z.EncBinary() + _ = yym2456 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2453 || yy2arr2453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2453[1] { + yym2458 := z.EncBinary() + _ = yym2458 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2453[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym2459 := z.EncBinary() + _ = yym2459 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr2453 || yy2arr2453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq2453[2] { + yy2461 := &x.ObjectMeta + yy2461.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2453[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy2462 := &x.ObjectMeta + yy2462.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2453 || yy2arr2453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2453[3] { + yy2464 := &x.Spec + yy2464.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq2453[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2465 := &x.Spec + yy2465.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2453 || yy2arr2453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq2453[4] { + yy2467 := &x.Status + yy2467.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq2453[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy2468 := &x.Status + yy2468.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2453 || yy2arr2453 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30410,25 +32417,25 @@ func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2469 := z.DecBinary() + _ = yym2469 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2470 := r.ContainerType() + if yyct2470 == codecSelferValueTypeMap1234 { + yyl2470 := r.ReadMapStart() + if yyl2470 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2470, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2470 == codecSelferValueTypeArray1234 { + yyl2470 := r.ReadArrayStart() + if yyl2470 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2470, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30440,12 +32447,12 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -30454,47 +32461,47 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2471Slc = r.DecodeBytes(yys2471Slc, true, true) + yys2471 := string(yys2471Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys2471 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv2474 := &x.ObjectMeta + yyv2474.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicationControllerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2475 := &x.Spec + yyv2475.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicationControllerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2476 := &x.Status + yyv2476.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2471) + } // end switch yys2471 + } // end for yyj2471 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30502,104 +32509,104 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2477 int + var yyb2477 bool + var yyhl2477 bool = l >= 0 + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l } else { - yyb9 = r.CheckBreak() + yyb2477 = r.CheckBreak() } - if yyb9 { + if yyb2477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l } else { - yyb9 = r.CheckBreak() + yyb2477 = r.CheckBreak() } - if yyb9 { + if yyb2477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l } else { - yyb9 = r.CheckBreak() + yyb2477 = r.CheckBreak() } - if yyb9 { + if yyb2477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv2480 := &x.ObjectMeta + yyv2480.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l } else { - yyb9 = r.CheckBreak() + yyb2477 = r.CheckBreak() } - if yyb9 { + if yyb2477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicationControllerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2481 := &x.Spec + yyv2481.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l } else { - yyb9 = r.CheckBreak() + yyb2477 = r.CheckBreak() } - if yyb9 { + if yyb2477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicationControllerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2482 := &x.Status + yyv2482.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l } else { - yyb9 = r.CheckBreak() + yyb2477 = r.CheckBreak() } - if yyb9 { + if yyb2477 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj2477-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30611,139 +32618,139 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2483 := z.EncBinary() + _ = yym2483 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2484 = 1 + for _, b := range yyq2484 { if b { - yynn2++ + yynn2484++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2484) + yynn2484 = 0 } - if yyr2 || yy2arr2 { + if yyr2484 || yy2arr2484 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2484[0] { + yym2486 := z.EncBinary() + _ = yym2486 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2484[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2487 := z.EncBinary() + _ = yym2487 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2484 || yy2arr2484 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2484[1] { + yym2489 := z.EncBinary() + _ = yym2489 if false { } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2484[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2490 := z.EncBinary() + _ = yym2490 if false { } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2484 || yy2arr2484 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2484[2] { + yy2492 := &x.ListMeta + yym2493 := z.EncBinary() + _ = yym2493 if false { + } else if z.HasExtensions() && z.EncExt(yy2492) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2492) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2484[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2494 := &x.ListMeta + yym2495 := z.EncBinary() + _ = yym2495 if false { + } else if z.HasExtensions() && z.EncExt(yy2494) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2494) } } } - if yyr2 || yy2arr2 { + if yyr2484 || yy2arr2484 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2497 := z.EncBinary() + _ = yym2497 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr2484 || yy2arr2484 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30756,25 +32763,25 @@ func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2499 := z.DecBinary() + _ = yym2499 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2500 := r.ContainerType() + if yyct2500 == codecSelferValueTypeMap1234 { + yyl2500 := r.ReadMapStart() + if yyl2500 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2500, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2500 == codecSelferValueTypeArray1234 { + yyl2500 := r.ReadArrayStart() + if yyl2500 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2500, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30786,12 +32793,12 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -30800,51 +32807,51 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2501Slc = r.DecodeBytes(yys2501Slc, true, true) + yys2501 := string(yys2501Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2504 := &x.ListMeta + yym2505 := z.DecBinary() + _ = yym2505 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2504) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2504, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2506 := &x.Items + yym2507 := z.DecBinary() + _ = yym2507 if false { } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv6), d) + h.decSliceReplicationController((*[]ReplicationController)(yyv2506), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2501) + } // end switch yys2501 + } // end for yyj2501 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30852,98 +32859,98 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2508 int + var yyb2508 bool + var yyhl2508 bool = l >= 0 + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l } else { - yyb10 = r.CheckBreak() + yyb2508 = r.CheckBreak() } - if yyb10 { + if yyb2508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l } else { - yyb10 = r.CheckBreak() + yyb2508 = r.CheckBreak() } - if yyb10 { + if yyb2508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l } else { - yyb10 = r.CheckBreak() + yyb2508 = r.CheckBreak() } - if yyb10 { + if yyb2508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2511 := &x.ListMeta + yym2512 := z.DecBinary() + _ = yym2512 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2511) { + } else { + z.DecFallback(yyv2511, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l } else { - yyb10 = r.CheckBreak() + yyb2508 = r.CheckBreak() } - if yyb10 { + if yyb2508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2513 := &x.Items + yym2514 := z.DecBinary() + _ = yym2514 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2513), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l } else { - yyb10 = r.CheckBreak() + yyb2508 = r.CheckBreak() } - if yyb10 { + if yyb2508 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2508-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30955,139 +32962,139 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2515 := z.EncBinary() + _ = yym2515 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2516 = 1 + for _, b := range yyq2516 { if b { - yynn2++ + yynn2516++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2516) + yynn2516 = 0 } - if yyr2 || yy2arr2 { + if yyr2516 || yy2arr2516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2516[0] { + yym2518 := z.EncBinary() + _ = yym2518 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2516[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2519 := z.EncBinary() + _ = yym2519 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2516 || yy2arr2516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2516[1] { + yym2521 := z.EncBinary() + _ = yym2521 if false { } else { - h.encSliceService(([]Service)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2516[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2522 := z.EncBinary() + _ = yym2522 if false { } else { - h.encSliceService(([]Service)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2516 || yy2arr2516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2516[2] { + yy2524 := &x.ListMeta + yym2525 := z.EncBinary() + _ = yym2525 if false { + } else if z.HasExtensions() && z.EncExt(yy2524) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2524) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2516[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2526 := &x.ListMeta + yym2527 := z.EncBinary() + _ = yym2527 if false { + } else if z.HasExtensions() && z.EncExt(yy2526) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2526) } } } - if yyr2 || yy2arr2 { + if yyr2516 || yy2arr2516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2529 := z.EncBinary() + _ = yym2529 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceService(([]Service)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceService(([]Service)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr2516 || yy2arr2516 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31100,25 +33107,25 @@ func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2531 := z.DecBinary() + _ = yym2531 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2532 := r.ContainerType() + if yyct2532 == codecSelferValueTypeMap1234 { + yyl2532 := r.ReadMapStart() + if yyl2532 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2532, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2532 == codecSelferValueTypeArray1234 { + yyl2532 := r.ReadArrayStart() + if yyl2532 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2532, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31130,12 +33137,12 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -31144,51 +33151,51 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2533Slc = r.DecodeBytes(yys2533Slc, true, true) + yys2533 := string(yys2533Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2536 := &x.ListMeta + yym2537 := z.DecBinary() + _ = yym2537 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2536) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2536, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2538 := &x.Items + yym2539 := z.DecBinary() + _ = yym2539 if false { } else { - h.decSliceService((*[]Service)(yyv6), d) + h.decSliceService((*[]Service)(yyv2538), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2533) + } // end switch yys2533 + } // end for yyj2533 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31196,98 +33203,98 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2540 int + var yyb2540 bool + var yyhl2540 bool = l >= 0 + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l } else { - yyb10 = r.CheckBreak() + yyb2540 = r.CheckBreak() } - if yyb10 { + if yyb2540 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l } else { - yyb10 = r.CheckBreak() + yyb2540 = r.CheckBreak() } - if yyb10 { + if yyb2540 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceService((*[]Service)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l } else { - yyb10 = r.CheckBreak() + yyb2540 = r.CheckBreak() } - if yyb10 { + if yyb2540 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2543 := &x.ListMeta + yym2544 := z.DecBinary() + _ = yym2544 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2543) { + } else { + z.DecFallback(yyv2543, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l } else { - yyb10 = r.CheckBreak() + yyb2540 = r.CheckBreak() } - if yyb10 { + if yyb2540 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2545 := &x.Items + yym2546 := z.DecBinary() + _ = yym2546 + if false { + } else { + h.decSliceService((*[]Service)(yyv2545), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l } else { - yyb10 = r.CheckBreak() + yyb2540 = r.CheckBreak() } - if yyb10 { + if yyb2540 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2540-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31296,8 +33303,8 @@ func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym2547 := z.EncBinary() + _ = yym2547 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -31309,8 +33316,8 @@ func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2548 := z.DecBinary() + _ = yym2548 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -31322,8 +33329,8 @@ func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym2549 := z.EncBinary() + _ = yym2549 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -31335,8 +33342,8 @@ func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2550 := z.DecBinary() + _ = yym2550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -31351,48 +33358,48 @@ func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2551 := z.EncBinary() + _ = yym2551 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2552 = 0 + for _, b := range yyq2552 { if b { - yynn2++ + yynn2552++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2552) + yynn2552 = 0 } - if yyr2 || yy2arr2 { + if yyr2552 || yy2arr2552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.LoadBalancer - yy4.CodecEncodeSelf(e) + if yyq2552[0] { + yy2554 := &x.LoadBalancer + yy2554.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2552[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.LoadBalancer - yy6.CodecEncodeSelf(e) + yy2555 := &x.LoadBalancer + yy2555.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2552 || yy2arr2552 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31405,25 +33412,25 @@ func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2556 := z.DecBinary() + _ = yym2556 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2557 := r.ContainerType() + if yyct2557 == codecSelferValueTypeMap1234 { + yyl2557 := r.ReadMapStart() + if yyl2557 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2557, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2557 == codecSelferValueTypeArray1234 { + yyl2557 := r.ReadArrayStart() + if yyl2557 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2557, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31435,12 +33442,12 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -31449,21 +33456,21 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2558Slc = r.DecodeBytes(yys2558Slc, true, true) + yys2558 := string(yys2558Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2558 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv4 := &x.LoadBalancer - yyv4.CodecDecodeSelf(d) + yyv2559 := &x.LoadBalancer + yyv2559.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2558) + } // end switch yys2558 + } // end for yyj2558 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31471,16 +33478,16 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj2560 int + var yyb2560 bool + var yyhl2560 bool = l >= 0 + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l } else { - yyb5 = r.CheckBreak() + yyb2560 = r.CheckBreak() } - if yyb5 { + if yyb2560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31488,21 +33495,21 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv6 := &x.LoadBalancer - yyv6.CodecDecodeSelf(d) + yyv2561 := &x.LoadBalancer + yyv2561.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l } else { - yyb5 = r.CheckBreak() + yyb2560 = r.CheckBreak() } - if yyb5 { + if yyb2560 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj2560-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31514,38 +33521,38 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2562 := z.EncBinary() + _ = yym2562 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Ingress) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2563 = 0 + for _, b := range yyq2563 { if b { - yynn2++ + yynn2563++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2563) + yynn2563 = 0 } - if yyr2 || yy2arr2 { + if yyr2563 || yy2arr2563 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2563[0] { if x.Ingress == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym2565 := z.EncBinary() + _ = yym2565 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -31555,15 +33562,15 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2563[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym2566 := z.EncBinary() + _ = yym2566 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -31571,7 +33578,7 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2563 || yy2arr2563 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31584,25 +33591,25 @@ func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2567 := z.DecBinary() + _ = yym2567 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2568 := r.ContainerType() + if yyct2568 == codecSelferValueTypeMap1234 { + yyl2568 := r.ReadMapStart() + if yyl2568 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2568, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2568 == codecSelferValueTypeArray1234 { + yyl2568 := r.ReadArrayStart() + if yyl2568 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2568, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31614,12 +33621,12 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -31628,26 +33635,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2569Slc = r.DecodeBytes(yys2569Slc, true, true) + yys2569 := string(yys2569Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2569 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv4 := &x.Ingress - yym5 := z.DecBinary() - _ = yym5 + yyv2570 := &x.Ingress + yym2571 := z.DecBinary() + _ = yym2571 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv4), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2570), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2569) + } // end switch yys2569 + } // end for yyj2569 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31655,16 +33662,16 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2572 int + var yyb2572 bool + var yyhl2572 bool = l >= 0 + yyj2572++ + if yyhl2572 { + yyb2572 = yyj2572 > l } else { - yyb6 = r.CheckBreak() + yyb2572 = r.CheckBreak() } - if yyb6 { + if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31672,26 +33679,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv7 := &x.Ingress - yym8 := z.DecBinary() - _ = yym8 + yyv2573 := &x.Ingress + yym2574 := z.DecBinary() + _ = yym2574 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv7), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2573), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2572++ + if yyhl2572 { + yyb2572 = yyj2572 > l } else { - yyb6 = r.CheckBreak() + yyb2572 = r.CheckBreak() } - if yyb6 { + if yyb2572 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj2572-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31703,36 +33710,36 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2575 := z.EncBinary() + _ = yym2575 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.IP != "" - yyq2[1] = x.Hostname != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2576 = 0 + for _, b := range yyq2576 { if b { - yynn2++ + yynn2576++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2576) + yynn2576 = 0 } - if yyr2 || yy2arr2 { + if yyr2576 || yy2arr2576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq2576[0] { + yym2578 := z.EncBinary() + _ = yym2578 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -31741,23 +33748,23 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2576[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2579 := z.EncBinary() + _ = yym2579 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } - if yyr2 || yy2arr2 { + if yyr2576 || yy2arr2576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq2576[1] { + yym2581 := z.EncBinary() + _ = yym2581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -31766,19 +33773,19 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2576[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2582 := z.EncBinary() + _ = yym2582 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2 || yy2arr2 { + if yyr2576 || yy2arr2576 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31791,25 +33798,25 @@ func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2583 := z.DecBinary() + _ = yym2583 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2584 := r.ContainerType() + if yyct2584 == codecSelferValueTypeMap1234 { + yyl2584 := r.ReadMapStart() + if yyl2584 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2584, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2584 == codecSelferValueTypeArray1234 { + yyl2584 := r.ReadArrayStart() + if yyl2584 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2584, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31821,12 +33828,12 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -31835,10 +33842,10 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2585Slc = r.DecodeBytes(yys2585Slc, true, true) + yys2585 := string(yys2585Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2585 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -31852,9 +33859,9 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Hostname = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2585) + } // end switch yys2585 + } // end for yyj2585 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31862,16 +33869,16 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2588 int + var yyb2588 bool + var yyhl2588 bool = l >= 0 + yyj2588++ + if yyhl2588 { + yyb2588 = yyj2588 > l } else { - yyb6 = r.CheckBreak() + yyb2588 = r.CheckBreak() } - if yyb6 { + if yyb2588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31881,13 +33888,13 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.IP = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2588++ + if yyhl2588 { + yyb2588 = yyj2588 > l } else { - yyb6 = r.CheckBreak() + yyb2588 = r.CheckBreak() } - if yyb6 { + if yyb2588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31898,17 +33905,17 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Hostname = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2588++ + if yyhl2588 { + yyb2588 = yyj2588 > l } else { - yyb6 = r.CheckBreak() + yyb2588 = r.CheckBreak() } - if yyb6 { + if yyb2588 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj2588-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31920,57 +33927,57 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2591 := z.EncBinary() + _ = yym2591 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Type != "" - yyq2[3] = x.ClusterIP != "" - yyq2[4] = len(x.ExternalIPs) != 0 - yyq2[5] = x.LoadBalancerIP != "" - yyq2[6] = x.SessionAffinity != "" - yyq2[7] = len(x.LoadBalancerSourceRanges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 2 - for _, b := range yyq2 { + 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 { + yynn2592 = 3 + for _, b := range yyq2592 { if b { - yynn2++ + yynn2592++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2592) + yynn2592 = 0 } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2592[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2592[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 { - yym8 := z.EncBinary() - _ = yym8 + yym2596 := z.EncBinary() + _ = yym2596 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 { - yym11 := z.EncBinary() - _ = yym11 + yym2599 := z.EncBinary() + _ = yym2599 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq2592[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2602 := z.EncBinary() + _ = yym2602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + 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 yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq2592[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym2611 := z.EncBinary() + _ = yym2611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq2592[7] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq2592[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq2592[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[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 { - yym26 := z.EncBinary() - _ = yym26 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2616 := z.DecBinary() + _ = yym2616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2617 := r.ContainerType() + if yyct2617 == codecSelferValueTypeMap1234 { + yyl2617 := r.ReadMapStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2617, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2617 == codecSelferValueTypeArray1234 { + yyl2617 := r.ReadArrayStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2618Slc = r.DecodeBytes(yys2618Slc, true, true) + yys2618 := string(yys2618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Ports - yym6 := z.DecBinary() - _ = yym6 + yyv2620 := &x.Ports + yym2621 := z.DecBinary() + _ = yym2621 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv5), d) + h.decSliceServicePort((*[]ServicePort)(yyv2620), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv7 := &x.Selector - yym8 := z.DecBinary() - _ = yym8 + yyv2622 := &x.Selector + yym2623 := z.DecBinary() + _ = yym2623 if false { } else { - z.F.DecMapStringStringX(yyv7, 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 { - yyv10 := &x.ExternalIPs - yym11 := z.DecBinary() - _ = yym11 + yyv2626 := &x.ExternalIPs + yym2627 := z.DecBinary() + _ = yym2627 if false { } else { - z.F.DecSliceStringX(yyv10, 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 { - yyv14 := &x.LoadBalancerSourceRanges - yym15 := z.DecBinary() - _ = yym15 + yyv2630 := &x.LoadBalancerSourceRanges + yym2631 := z.DecBinary() + _ = yym2631 if false { } else { - z.F.DecSliceStringX(yyv14, false, d) + z.F.DecSliceStringX(yyv2630, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj16 int - var yyb16 bool - var yyhl16 bool = l >= 0 - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + var yyj2632 int + var yyb2632 bool + var yyhl2632 bool = l >= 0 + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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 { - yyv18 := &x.Ports - yym19 := z.DecBinary() - _ = yym19 + yyv2634 := &x.Ports + yym2635 := z.DecBinary() + _ = yym2635 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv18), d) + h.decSliceServicePort((*[]ServicePort)(yyv2634), d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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 { - yyv20 := &x.Selector - yym21 := z.DecBinary() - _ = yym21 + yyv2636 := &x.Selector + yym2637 := z.DecBinary() + _ = yym2637 if false { } else { - z.F.DecMapStringStringX(yyv20, false, d) + z.F.DecMapStringStringX(yyv2636, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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 { - yyv23 := &x.ExternalIPs - yym24 := z.DecBinary() - _ = yym24 + yyv2640 := &x.ExternalIPs + yym2641 := z.DecBinary() + _ = yym2641 if false { } else { - z.F.DecSliceStringX(yyv23, false, d) + z.F.DecSliceStringX(yyv2640, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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()) } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + 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 { - yyv27 := &x.LoadBalancerSourceRanges - yym28 := z.DecBinary() - _ = yym28 + yyv2644 := &x.LoadBalancerSourceRanges + yym2645 := z.DecBinary() + _ = yym2645 if false { } else { - z.F.DecSliceStringX(yyv27, false, d) + z.F.DecSliceStringX(yyv2644, false, d) } } for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb16 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb16 { + if yyb2632 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj16-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2646 := z.EncBinary() + _ = yym2646 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 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 5 - for _, b := range yyq2 { + yynn2647 = 5 + for _, b := range yyq2647 { if b { - yynn2++ + yynn2647++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2647) + yynn2647 = 0 } - if yyr2 || yy2arr2 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym2650 := z.EncBinary() + _ = yym2650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym2654 := z.EncBinary() + _ = yym2654 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy13 := &x.TargetPort - yym14 := z.EncBinary() - _ = yym14 + yy2656 := &x.TargetPort + yym2657 := z.EncBinary() + _ = yym2657 if false { - } else if z.HasExtensions() && z.EncExt(yy13) { - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(yy13) + } else if z.HasExtensions() && z.EncExt(yy2656) { + } else if !yym2657 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2656) } else { - z.EncFallback(yy13) + z.EncFallback(yy2656) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy15 := &x.TargetPort - yym16 := z.EncBinary() - _ = yym16 + yy2658 := &x.TargetPort + yym2659 := z.EncBinary() + _ = yym2659 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy2658) { + } else if !yym2659 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2658) } else { - z.EncFallback(yy15) + z.EncFallback(yy2658) } } - if yyr2 || yy2arr2 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym18 := z.EncBinary() - _ = yym18 + 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) - yym19 := z.EncBinary() - _ = yym19 + yym2662 := z.EncBinary() + _ = yym2662 if false { } else { r.EncodeInt(int64(x.NodePort)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2663 := z.DecBinary() + _ = yym2663 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2664 := r.ContainerType() + if yyct2664 == codecSelferValueTypeMap1234 { + yyl2664 := r.ReadMapStart() + if yyl2664 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2664, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2664 == codecSelferValueTypeArray1234 { + yyl2664 := r.ReadArrayStart() + if yyl2664 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2665Slc = r.DecodeBytes(yys2665Slc, true, true) + yys2665 := string(yys2665Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv7 := &x.TargetPort - yym8 := z.DecBinary() - _ = yym8 + yyv2669 := &x.TargetPort + yym2670 := z.DecBinary() + _ = yym2670 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv2669) { + } else if !yym2670 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2669) } else { - z.DecFallback(yyv7, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2672 int + var yyb2672 bool + var yyhl2672 bool = l >= 0 + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb10 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb10 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb10 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb10 { + 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)) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb10 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb10 { + 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 { - yyv14 := &x.TargetPort - yym15 := z.DecBinary() - _ = yym15 + yyv2676 := &x.TargetPort + yym2677 := z.DecBinary() + _ = yym2677 if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else if !yym15 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv14) + } else if z.HasExtensions() && z.DecExt(yyv2676) { + } else if !yym2677 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2676) } else { - z.DecFallback(yyv14, false) + z.DecFallback(yyv2676, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb10 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb10 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb10 { + if yyb2672 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2672-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32813,136 +34861,136 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2679 := z.EncBinary() + _ = yym2679 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2680 = 0 + for _, b := range yyq2680 { if b { - yynn2++ + yynn2680++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2680) + yynn2680 = 0 } - if yyr2 || yy2arr2 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2680[0] { + yym2682 := z.EncBinary() + _ = yym2682 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2680[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2683 := z.EncBinary() + _ = yym2683 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2680[1] { + yym2685 := z.EncBinary() + _ = yym2685 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2680[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym2686 := z.EncBinary() + _ = yym2686 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq2680[2] { + yy2688 := &x.ObjectMeta + yy2688.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2680[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy2689 := &x.ObjectMeta + yy2689.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2680[3] { + yy2691 := &x.Spec + yy2691.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq2680[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2692 := &x.Spec + yy2692.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq2680[4] { + yy2694 := &x.Status + yy2694.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq2680[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy2695 := &x.Status + yy2695.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2696 := z.DecBinary() + _ = yym2696 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2697 := r.ContainerType() + if yyct2697 == codecSelferValueTypeMap1234 { + yyl2697 := r.ReadMapStart() + if yyl2697 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2697, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2697 == codecSelferValueTypeArray1234 { + yyl2697 := r.ReadArrayStart() + if yyl2697 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +35047,47 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2698Slc = r.DecodeBytes(yys2698Slc, true, true) + yys2698 := string(yys2698Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys2698 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ServiceSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ServiceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv2701 := &x.ObjectMeta + yyv2701.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ServiceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2702 := &x.Spec + yyv2702.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ServiceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2703 := &x.Status + yyv2703.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2698) + } // end switch yys2698 + } // end for yyj2698 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33047,104 +35095,104 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2704 int + var yyb2704 bool + var yyhl2704 bool = l >= 0 + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb9 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb9 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb9 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb9 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ServiceSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb9 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb9 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ServiceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv2707 := &x.ObjectMeta + yyv2707.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb9 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb9 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ServiceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2708 := &x.Spec + yyv2708.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb9 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb9 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ServiceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2709 := &x.Status + yyv2709.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb9 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb9 { + if yyb2704 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj2704-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33156,57 +35204,107 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2710 := z.EncBinary() + _ = yym2710 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] = true - yyq2[2] = len(x.ImagePullSecrets) != 0 - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2711 = 1 + for _, b := range yyq2711 { if b { - yynn2++ + yynn2711++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2711) + yynn2711 = 0 } - if yyr2 || yy2arr2 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2711[0] { + yym2713 := z.EncBinary() + _ = yym2713 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2711[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2714 := z.EncBinary() + _ = yym2714 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2711 || yy2arr2711 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2711[1] { + yym2716 := z.EncBinary() + _ = yym2716 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2711[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2717 := z.EncBinary() + _ = yym2717 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2711 || yy2arr2711 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2711[2] { + yy2719 := &x.ObjectMeta + yy2719.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2711[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy2720 := &x.ObjectMeta + yy2720.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym2722 := z.EncBinary() + _ = yym2722 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -33219,22 +35317,22 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x.Secrets == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym2723 := z.EncBinary() + _ = yym2723 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } - if yyr2 || yy2arr2 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2711[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym12 := z.EncBinary() - _ = yym12 + yym2725 := z.EncBinary() + _ = yym2725 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33244,15 +35342,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2711[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym2726 := z.EncBinary() + _ = yym2726 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33260,57 +35358,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2727 := z.DecBinary() + _ = yym2727 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2728 := r.ContainerType() + if yyct2728 == codecSelferValueTypeMap1234 { + yyl2728 := r.ReadMapStart() + if yyl2728 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2728, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2728 == codecSelferValueTypeArray1234 { + yyl2728 := r.ReadArrayStart() + if yyl2728 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,57 +35415,57 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2729Slc = r.DecodeBytes(yys2729Slc, true, true) + yys2729 := string(yys2729Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2729 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv2732 := &x.ObjectMeta + yyv2732.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv5 := &x.Secrets - yym6 := z.DecBinary() - _ = yym6 + yyv2733 := &x.Secrets + yym2734 := z.DecBinary() + _ = yym2734 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv5), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2733), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv7 := &x.ImagePullSecrets - yym8 := z.DecBinary() - _ = yym8 + yyv2735 := &x.ImagePullSecrets + yym2736 := z.DecBinary() + _ = yym2736 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv7), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2735), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2729) + } // end switch yys2729 + } // end for yyj2729 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33425,114 +35473,114 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj2737 int + var yyb2737 bool + var yyhl2737 bool = l >= 0 + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb11 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb11 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv12 := &x.ObjectMeta - yyv12.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb11 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb11 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Secrets = nil + x.APIVersion = "" } else { - yyv13 := &x.Secrets - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb11 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb11 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ImagePullSecrets = nil + x.ObjectMeta = ObjectMeta{} } else { - yyv15 := &x.ImagePullSecrets - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv15), d) - } + yyv2740 := &x.ObjectMeta + yyv2740.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb11 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb11 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Secrets = nil } else { - x.Kind = string(r.DecodeString()) + yyv2741 := &x.Secrets + yym2742 := z.DecBinary() + _ = yym2742 + if false { + } else { + h.decSliceObjectReference((*[]ObjectReference)(yyv2741), d) + } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb11 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb11 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.ImagePullSecrets = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2743 := &x.ImagePullSecrets + yym2744 := z.DecBinary() + _ = yym2744 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2743), d) + } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb11 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb11 { + if yyb2737 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj2737-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33544,139 +35592,139 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2745 := z.EncBinary() + _ = yym2745 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2746 = 1 + for _, b := range yyq2746 { if b { - yynn2++ + yynn2746++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2746) + yynn2746 = 0 } - if yyr2 || yy2arr2 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2746[0] { + yym2748 := z.EncBinary() + _ = yym2748 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2746[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2749 := z.EncBinary() + _ = yym2749 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2746[1] { + yym2751 := z.EncBinary() + _ = yym2751 if false { } else { - h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2746[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2752 := z.EncBinary() + _ = yym2752 if false { } else { - h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2746[2] { + yy2754 := &x.ListMeta + yym2755 := z.EncBinary() + _ = yym2755 if false { + } else if z.HasExtensions() && z.EncExt(yy2754) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2754) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2746[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2756 := &x.ListMeta + yym2757 := z.EncBinary() + _ = yym2757 if false { + } else if z.HasExtensions() && z.EncExt(yy2756) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2756) } } } - if yyr2 || yy2arr2 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2759 := z.EncBinary() + _ = yym2759 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2760 := z.EncBinary() + _ = yym2760 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2761 := z.DecBinary() + _ = yym2761 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2762 := r.ContainerType() + if yyct2762 == codecSelferValueTypeMap1234 { + yyl2762 := r.ReadMapStart() + if yyl2762 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2762, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2762 == codecSelferValueTypeArray1234 { + yyl2762 := r.ReadArrayStart() + if yyl2762 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +35781,51 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2763Slc = r.DecodeBytes(yys2763Slc, true, true) + yys2763 := string(yys2763Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2763 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2766 := &x.ListMeta + yym2767 := z.DecBinary() + _ = yym2767 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2766) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2766, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2768 := &x.Items + yym2769 := z.DecBinary() + _ = yym2769 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv6), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2768), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2763) + } // end switch yys2763 + } // end for yyj2763 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33785,98 +35833,98 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2770 int + var yyb2770 bool + var yyhl2770 bool = l >= 0 + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb10 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb10 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb10 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb10 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb10 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb10 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2773 := &x.ListMeta + yym2774 := z.DecBinary() + _ = yym2774 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2773) { + } else { + z.DecFallback(yyv2773, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb10 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb10 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2775 := &x.Items + yym2776 := z.DecBinary() + _ = yym2776 + if false { + } else { + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2775), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb10 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb10 { + if yyb2770 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2770-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33888,127 +35936,127 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2777 := z.EncBinary() + _ = yym2777 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2778 = 1 + for _, b := range yyq2778 { if b { - yynn2++ + yynn2778++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2778) + yynn2778 = 0 } - if yyr2 || yy2arr2 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2778[0] { + yym2780 := z.EncBinary() + _ = yym2780 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2778[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2781 := z.EncBinary() + _ = yym2781 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Subsets == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2778[1] { + yym2783 := z.EncBinary() + _ = yym2783 if false { } else { - h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Subsets")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Subsets == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2778[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2784 := z.EncBinary() + _ = yym2784 if false { } else { - h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2778[2] { + yy2786 := &x.ObjectMeta + yy2786.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2778[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2787 := &x.ObjectMeta + yy2787.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2789 := z.EncBinary() + _ = yym2789 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Subsets")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2790 := z.EncBinary() + _ = yym2790 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2791 := z.DecBinary() + _ = yym2791 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2792 := r.ContainerType() + if yyct2792 == codecSelferValueTypeMap1234 { + yyl2792 := r.ReadMapStart() + if yyl2792 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2792, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2792 == codecSelferValueTypeArray1234 { + yyl2792 := r.ReadArrayStart() + if yyl2792 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,45 +36113,45 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2793Slc = r.DecodeBytes(yys2793Slc, true, true) + yys2793 := string(yys2793Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2793 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv2796 := &x.ObjectMeta + yyv2796.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv5 := &x.Subsets - yym6 := z.DecBinary() - _ = yym6 + yyv2797 := &x.Subsets + yym2798 := z.DecBinary() + _ = yym2798 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv5), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2797), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2793) + } // end switch yys2793 + } // end for yyj2793 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34111,92 +36159,92 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2799 int + var yyb2799 bool + var yyhl2799 bool = l >= 0 + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb9 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb9 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb9 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb9 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Subsets = nil + x.APIVersion = "" } else { - yyv11 := &x.Subsets - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv11), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb9 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb9 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2802 := &x.ObjectMeta + yyv2802.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb9 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb9 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Subsets = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2803 := &x.Subsets + yym2804 := z.DecBinary() + _ = yym2804 + if false { + } else { + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2803), d) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb9 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb9 { + if yyb2799 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2805 := z.EncBinary() + _ = yym2805 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 3 - for _, b := range yyq2 { + yynn2806 = 3 + for _, b := range yyq2806 { if b { - yynn2++ + yynn2806++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2806) + yynn2806 = 0 } - if yyr2 || yy2arr2 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym2809 := z.EncBinary() + _ = yym2809 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } - if yyr2 || yy2arr2 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 { - yym8 := z.EncBinary() - _ = yym8 + yym2812 := z.EncBinary() + _ = yym2812 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } - if yyr2 || yy2arr2 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 { - yym11 := z.EncBinary() - _ = yym11 + yym2815 := z.EncBinary() + _ = yym2815 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2816 := z.DecBinary() + _ = yym2816 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2817 := r.ContainerType() + if yyct2817 == codecSelferValueTypeMap1234 { + yyl2817 := r.ReadMapStart() + if yyl2817 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2817, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2817 == codecSelferValueTypeArray1234 { + yyl2817 := r.ReadArrayStart() + if yyl2817 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2818Slc = r.DecodeBytes(yys2818Slc, true, true) + yys2818 := string(yys2818Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2818 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv4 := &x.Addresses - yym5 := z.DecBinary() - _ = yym5 + yyv2819 := &x.Addresses + yym2820 := z.DecBinary() + _ = yym2820 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv4), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2819), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv6 := &x.NotReadyAddresses - yym7 := z.DecBinary() - _ = yym7 + yyv2821 := &x.NotReadyAddresses + yym2822 := z.DecBinary() + _ = yym2822 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv6), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2821), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv8 := &x.Ports - yym9 := z.DecBinary() - _ = yym9 + yyv2823 := &x.Ports + yym2824 := z.DecBinary() + _ = yym2824 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv8), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2823), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2825 int + var yyb2825 bool + var yyhl2825 bool = l >= 0 + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb10 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb10 { + 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 { - yyv11 := &x.Addresses - yym12 := z.DecBinary() - _ = yym12 + yyv2826 := &x.Addresses + yym2827 := z.DecBinary() + _ = yym2827 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv11), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2826), d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb10 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb10 { + 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 { - yyv13 := &x.NotReadyAddresses - yym14 := z.DecBinary() - _ = yym14 + yyv2828 := &x.NotReadyAddresses + yym2829 := z.DecBinary() + _ = yym2829 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv13), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2828), d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb10 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb10 { + 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 { - yyv15 := &x.Ports - yym16 := z.DecBinary() - _ = yym16 + yyv2830 := &x.Ports + yym2831 := z.DecBinary() + _ = yym2831 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv15), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2830), d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb10 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb10 { + if yyb2825 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2825-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34512,34 +36560,35 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2832 := z.EncBinary() + _ = yym2832 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Hostname != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn2833 = 2 + for _, b := range yyq2833 { if b { - yynn2++ + yynn2833++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2833) + yynn2833 = 0 } - if yyr2 || yy2arr2 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2835 := z.EncBinary() + _ = yym2835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -34548,18 +36597,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("IP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2836 := z.EncBinary() + _ = yym2836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2 || yy2arr2 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq2833[1] { + yym2838 := z.EncBinary() + _ = yym2838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -34568,19 +36617,54 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2833[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2839 := z.EncBinary() + _ = yym2839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2 || yy2arr2 { + if yyr2833 || yy2arr2833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2833[2] { + if x.NodeName == nil { + r.EncodeNil() + } else { + yy2841 := *x.NodeName + yym2842 := z.EncBinary() + _ = yym2842 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy2841)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2833[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NodeName == nil { + r.EncodeNil() + } else { + yy2843 := *x.NodeName + yym2844 := z.EncBinary() + _ = yym2844 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy2843)) + } + } + } + } + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetRef == nil { r.EncodeNil() @@ -34597,7 +36681,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { x.TargetRef.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34610,25 +36694,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2846 := z.DecBinary() + _ = yym2846 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2847 := r.ContainerType() + if yyct2847 == codecSelferValueTypeMap1234 { + yyl2847 := r.ReadMapStart() + if yyl2847 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2847, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2847 == codecSelferValueTypeArray1234 { + yyl2847 := r.ReadArrayStart() + if yyl2847 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2847, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34640,12 +36724,12 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -34654,10 +36738,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2848Slc = r.DecodeBytes(yys2848Slc, true, true) + yys2848 := string(yys2848Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2848 { case "IP": if r.TryDecodeAsNil() { x.IP = "" @@ -34670,6 +36754,22 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Hostname = string(r.DecodeString()) } + case "nodeName": + if r.TryDecodeAsNil() { + if x.NodeName != nil { + x.NodeName = nil + } + } else { + if x.NodeName == nil { + x.NodeName = new(string) + } + yym2852 := z.DecBinary() + _ = yym2852 + if false { + } else { + *((*string)(x.NodeName)) = r.DecodeString() + } + } case "TargetRef": if r.TryDecodeAsNil() { if x.TargetRef != nil { @@ -34682,9 +36782,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2848) + } // end switch yys2848 + } // end for yyj2848 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34692,16 +36792,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2854 int + var yyb2854 bool + var yyhl2854 bool = l >= 0 + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb7 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb7 { + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34711,13 +36811,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb7 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb7 { + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34727,13 +36827,39 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb7 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb7 { + if yyb2854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NodeName != nil { + x.NodeName = nil + } + } else { + if x.NodeName == nil { + x.NodeName = new(string) + } + yym2858 := z.DecBinary() + _ = yym2858 + if false { + } else { + *((*string)(x.NodeName)) = r.DecodeString() + } + } + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l + } else { + yyb2854 = r.CheckBreak() + } + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34749,17 +36875,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb7 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb7 { + if yyb2854 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj2854-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34771,33 +36897,33 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2860 := z.EncBinary() + _ = yym2860 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 3 - for _, b := range yyq2 { + yynn2861 = 3 + for _, b := range yyq2861 { if b { - yynn2++ + yynn2861++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2861) + yynn2861 = 0 } - if yyr2 || yy2arr2 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2863 := z.EncBinary() + _ = yym2863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -34806,17 +36932,17 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2864 := z.EncBinary() + _ = yym2864 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym2866 := z.EncBinary() + _ = yym2866 if false { } else { r.EncodeInt(int64(x.Port)) @@ -34825,14 +36951,14 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2867 := z.EncBinary() + _ = yym2867 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { @@ -34841,7 +36967,7 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34854,25 +36980,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2869 := z.DecBinary() + _ = yym2869 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2870 := r.ContainerType() + if yyct2870 == codecSelferValueTypeMap1234 { + yyl2870 := r.ReadMapStart() + if yyl2870 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2870, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2870 == codecSelferValueTypeArray1234 { + yyl2870 := r.ReadArrayStart() + if yyl2870 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2870, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34884,12 +37010,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -34898,10 +37024,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2871Slc = r.DecodeBytes(yys2871Slc, true, true) + yys2871 := string(yys2871Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2871 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -34921,9 +37047,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2871) + } // end switch yys2871 + } // end for yyj2871 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34931,16 +37057,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2875 int + var yyb2875 bool + var yyhl2875 bool = l >= 0 + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb7 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb7 { + if yyb2875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34950,13 +37076,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb7 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb7 { + if yyb2875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34966,13 +37092,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb7 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb7 { + if yyb2875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34983,17 +37109,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb7 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb7 { + if yyb2875 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj2875-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35005,139 +37131,139 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2879 := z.EncBinary() + _ = yym2879 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2880 = 1 + for _, b := range yyq2880 { if b { - yynn2++ + yynn2880++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2880) + yynn2880 = 0 } - if yyr2 || yy2arr2 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2880[0] { + yym2882 := z.EncBinary() + _ = yym2882 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2880[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2883 := z.EncBinary() + _ = yym2883 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2880[1] { + yym2885 := z.EncBinary() + _ = yym2885 if false { } else { - h.encSliceEndpoints(([]Endpoints)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2880[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2886 := z.EncBinary() + _ = yym2886 if false { } else { - h.encSliceEndpoints(([]Endpoints)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2880[2] { + yy2888 := &x.ListMeta + yym2889 := z.EncBinary() + _ = yym2889 if false { + } else if z.HasExtensions() && z.EncExt(yy2888) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2888) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2880[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2890 := &x.ListMeta + yym2891 := z.EncBinary() + _ = yym2891 if false { + } else if z.HasExtensions() && z.EncExt(yy2890) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2890) } } } - if yyr2 || yy2arr2 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2893 := z.EncBinary() + _ = yym2893 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEndpoints(([]Endpoints)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2894 := z.EncBinary() + _ = yym2894 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35150,25 +37276,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2895 := z.DecBinary() + _ = yym2895 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2896 := r.ContainerType() + if yyct2896 == codecSelferValueTypeMap1234 { + yyl2896 := r.ReadMapStart() + if yyl2896 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2896, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2896 == codecSelferValueTypeArray1234 { + yyl2896 := r.ReadArrayStart() + if yyl2896 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2896, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35180,12 +37306,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35194,51 +37320,51 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2897Slc = r.DecodeBytes(yys2897Slc, true, true) + yys2897 := string(yys2897Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2897 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2900 := &x.ListMeta + yym2901 := z.DecBinary() + _ = yym2901 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2900) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2900, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2902 := &x.Items + yym2903 := z.DecBinary() + _ = yym2903 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv6), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2902), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2897) + } // end switch yys2897 + } // end for yyj2897 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35246,98 +37372,98 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2904 int + var yyb2904 bool + var yyhl2904 bool = l >= 0 + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb10 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb10 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb10 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb10 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceEndpoints((*[]Endpoints)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb10 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb10 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2907 := &x.ListMeta + yym2908 := z.DecBinary() + _ = yym2908 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2907) { + } else { + z.DecFallback(yyv2907, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb10 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb10 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2909 := &x.Items + yym2910 := z.DecBinary() + _ = yym2910 + if false { + } else { + h.decSliceEndpoints((*[]Endpoints)(yyv2909), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb10 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb10 { + if yyb2904 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2904-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35349,38 +37475,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2911 := z.EncBinary() + _ = yym2911 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.PodCIDR != "" - yyq2[1] = x.ExternalID != "" - yyq2[2] = x.ProviderID != "" - yyq2[3] = x.Unschedulable != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2912 = 0 + for _, b := range yyq2912 { if b { - yynn2++ + yynn2912++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2912) + yynn2912 = 0 } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq2912[0] { + yym2914 := z.EncBinary() + _ = yym2914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -35389,23 +37515,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2912[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2915 := z.EncBinary() + _ = yym2915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq2912[1] { + yym2917 := z.EncBinary() + _ = yym2917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -35414,23 +37540,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2912[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2918 := z.EncBinary() + _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq2912[2] { + yym2920 := z.EncBinary() + _ = yym2920 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -35439,23 +37565,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2912[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2921 := z.EncBinary() + _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq2912[3] { + yym2923 := z.EncBinary() + _ = yym2923 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -35464,19 +37590,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[3] { + if yyq2912[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2924 := z.EncBinary() + _ = yym2924 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35489,25 +37615,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2925 := z.DecBinary() + _ = yym2925 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2926 := r.ContainerType() + if yyct2926 == codecSelferValueTypeMap1234 { + yyl2926 := r.ReadMapStart() + if yyl2926 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2926, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2926 == codecSelferValueTypeArray1234 { + yyl2926 := r.ReadArrayStart() + if yyl2926 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2926, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35519,12 +37645,12 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35533,10 +37659,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2927Slc = r.DecodeBytes(yys2927Slc, true, true) + yys2927 := string(yys2927Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2927 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -35562,9 +37688,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2927) + } // end switch yys2927 + } // end for yyj2927 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35572,16 +37698,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2932 int + var yyb2932 bool + var yyhl2932 bool = l >= 0 + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb8 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb8 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35591,13 +37717,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb8 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb8 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35607,13 +37733,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb8 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb8 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35623,13 +37749,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb8 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb8 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35640,17 +37766,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb8 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb8 { + if yyb2932 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2932-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35662,33 +37788,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2937 := z.EncBinary() + _ = yym2937 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2938 = 1 + for _, b := range yyq2938 { if b { - yynn2++ + yynn2938++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2938) + yynn2938 = 0 } - if yyr2 || yy2arr2 { + if yyr2938 || yy2arr2938 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2940 := z.EncBinary() + _ = yym2940 if false { } else { r.EncodeInt(int64(x.Port)) @@ -35697,14 +37823,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2941 := z.EncBinary() + _ = yym2941 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr2938 || yy2arr2938 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35717,25 +37843,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2942 := z.DecBinary() + _ = yym2942 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2943 := r.ContainerType() + if yyct2943 == codecSelferValueTypeMap1234 { + yyl2943 := r.ReadMapStart() + if yyl2943 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2943, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2943 == codecSelferValueTypeArray1234 { + yyl2943 := r.ReadArrayStart() + if yyl2943 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2943, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35747,12 +37873,12 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35761,10 +37887,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2944Slc = r.DecodeBytes(yys2944Slc, true, true) + yys2944 := string(yys2944Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2944 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -35772,9 +37898,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2944) + } // end switch yys2944 + } // end for yyj2944 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35782,16 +37908,16 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj2946 int + var yyb2946 bool + var yyhl2946 bool = l >= 0 + yyj2946++ + if yyhl2946 { + yyb2946 = yyj2946 > l } else { - yyb5 = r.CheckBreak() + yyb2946 = r.CheckBreak() } - if yyb5 { + if yyb2946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35802,17 +37928,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj2946++ + if yyhl2946 { + yyb2946 = yyj2946 > l } else { - yyb5 = r.CheckBreak() + yyb2946 = r.CheckBreak() } - if yyb5 { + if yyb2946 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj2946-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35824,48 +37950,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2948 := z.EncBinary() + _ = yym2948 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2949 = 0 + for _, b := range yyq2949 { if b { - yynn2++ + yynn2949++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2949) + yynn2949 = 0 } - if yyr2 || yy2arr2 { + if yyr2949 || yy2arr2949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.KubeletEndpoint - yy4.CodecEncodeSelf(e) + if yyq2949[0] { + yy2951 := &x.KubeletEndpoint + yy2951.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2949[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.KubeletEndpoint - yy6.CodecEncodeSelf(e) + yy2952 := &x.KubeletEndpoint + yy2952.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2949 || yy2arr2949 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35878,25 +38004,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2953 := z.DecBinary() + _ = yym2953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2954 := r.ContainerType() + if yyct2954 == codecSelferValueTypeMap1234 { + yyl2954 := r.ReadMapStart() + if yyl2954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2954, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2954 == codecSelferValueTypeArray1234 { + yyl2954 := r.ReadArrayStart() + if yyl2954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2954, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35908,12 +38034,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35922,21 +38048,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2955Slc = r.DecodeBytes(yys2955Slc, true, true) + yys2955 := string(yys2955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2955 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv4 := &x.KubeletEndpoint - yyv4.CodecDecodeSelf(d) + yyv2956 := &x.KubeletEndpoint + yyv2956.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2955) + } // end switch yys2955 + } // end for yyj2955 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35944,16 +38070,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj2957 int + var yyb2957 bool + var yyhl2957 bool = l >= 0 + yyj2957++ + if yyhl2957 { + yyb2957 = yyj2957 > l } else { - yyb5 = r.CheckBreak() + yyb2957 = r.CheckBreak() } - if yyb5 { + if yyb2957 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35961,21 +38087,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv6 := &x.KubeletEndpoint - yyv6.CodecDecodeSelf(d) + yyv2958 := &x.KubeletEndpoint + yyv2958.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj2957++ + if yyhl2957 { + yyb2957 = yyj2957 > l } else { - yyb5 = r.CheckBreak() + yyb2957 = r.CheckBreak() } - if yyb5 { + if yyb2957 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj2957-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35987,33 +38113,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2959 := z.EncBinary() + _ = yym2959 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 10 - for _, b := range yyq2 { + yynn2960 = 10 + for _, b := range yyq2960 { if b { - yynn2++ + yynn2960++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2960) + yynn2960 = 0 } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2962 := z.EncBinary() + _ = yym2962 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -36022,17 +38148,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2963 := z.EncBinary() + _ = yym2963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym2965 := z.EncBinary() + _ = yym2965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -36041,17 +38167,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2966 := z.EncBinary() + _ = yym2966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym2968 := z.EncBinary() + _ = yym2968 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -36060,17 +38186,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2969 := z.EncBinary() + _ = yym2969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym2971 := z.EncBinary() + _ = yym2971 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -36079,17 +38205,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2972 := z.EncBinary() + _ = yym2972 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym2974 := z.EncBinary() + _ = yym2974 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -36098,17 +38224,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym2975 := z.EncBinary() + _ = yym2975 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 + yym2977 := z.EncBinary() + _ = yym2977 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -36117,17 +38243,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym2978 := z.EncBinary() + _ = yym2978 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym2980 := z.EncBinary() + _ = yym2980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -36136,17 +38262,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym2981 := z.EncBinary() + _ = yym2981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym25 := z.EncBinary() - _ = yym25 + yym2983 := z.EncBinary() + _ = yym2983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -36155,17 +38281,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym2984 := z.EncBinary() + _ = yym2984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym28 := z.EncBinary() - _ = yym28 + yym2986 := z.EncBinary() + _ = yym2986 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -36174,17 +38300,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym2987 := z.EncBinary() + _ = yym2987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym31 := z.EncBinary() - _ = yym31 + yym2989 := z.EncBinary() + _ = yym2989 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -36193,14 +38319,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym32 := z.EncBinary() - _ = yym32 + yym2990 := z.EncBinary() + _ = yym2990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2 || yy2arr2 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36213,25 +38339,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2991 := z.DecBinary() + _ = yym2991 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2992 := r.ContainerType() + if yyct2992 == codecSelferValueTypeMap1234 { + yyl2992 := r.ReadMapStart() + if yyl2992 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2992, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2992 == codecSelferValueTypeArray1234 { + yyl2992 := r.ReadArrayStart() + if yyl2992 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2992, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36243,12 +38369,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -36257,10 +38383,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2993Slc = r.DecodeBytes(yys2993Slc, true, true) + yys2993 := string(yys2993Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2993 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -36322,9 +38448,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2993) + } // end switch yys2993 + } // end for yyj2993 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36332,16 +38458,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj3004 int + var yyb3004 bool + var yyhl3004 bool = l >= 0 + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36351,13 +38477,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36367,13 +38493,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36383,13 +38509,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36399,13 +38525,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36415,13 +38541,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36431,13 +38557,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36447,13 +38573,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36463,13 +38589,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36479,13 +38605,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36496,17 +38622,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb14 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb14 { + if yyb3004 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj3004-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36518,42 +38644,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3015 := z.EncBinary() + _ = yym3015 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Capacity) != 0 - yyq2[1] = len(x.Allocatable) != 0 - yyq2[2] = x.Phase != "" - yyq2[3] = len(x.Conditions) != 0 - yyq2[4] = len(x.Addresses) != 0 - yyq2[5] = true - yyq2[6] = true - yyq2[7] = len(x.Images) != 0 - yyq2[8] = len(x.VolumesInUse) != 0 - yyq2[9] = len(x.VolumesAttached) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3016 = 0 + for _, b := range yyq3016 { if b { - yynn2++ + yynn3016++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3016) + yynn3016 = 0 } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3016[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -36563,7 +38689,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq3016[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36574,9 +38700,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq3016[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -36586,7 +38712,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq3016[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36597,29 +38723,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq3016[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3016[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq3016[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym3021 := z.EncBinary() + _ = yym3021 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36629,15 +38755,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym14 := z.EncBinary() - _ = yym14 + yym3022 := z.EncBinary() + _ = yym3022 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36645,14 +38771,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq3016[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + yym3024 := z.EncBinary() + _ = yym3024 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36662,15 +38788,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + yym3025 := z.EncBinary() + _ = yym3025 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36678,48 +38804,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yy19 := &x.DaemonEndpoints - yy19.CodecEncodeSelf(e) + if yyq3016[5] { + yy3027 := &x.DaemonEndpoints + yy3027.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq3016[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy21 := &x.DaemonEndpoints - yy21.CodecEncodeSelf(e) + yy3028 := &x.DaemonEndpoints + yy3028.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yy24 := &x.NodeInfo - yy24.CodecEncodeSelf(e) + if yyq3016[6] { + yy3030 := &x.NodeInfo + yy3030.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[6] { + if yyq3016[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy26 := &x.NodeInfo - yy26.CodecEncodeSelf(e) + yy3031 := &x.NodeInfo + yy3031.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq3016[7] { if x.Images == nil { r.EncodeNil() } else { - yym29 := z.EncBinary() - _ = yym29 + yym3033 := z.EncBinary() + _ = yym3033 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36729,15 +38855,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym30 := z.EncBinary() - _ = yym30 + yym3034 := z.EncBinary() + _ = yym3034 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36745,14 +38871,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq3016[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym32 := z.EncBinary() - _ = yym32 + yym3036 := z.EncBinary() + _ = yym3036 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36762,15 +38888,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym33 := z.EncBinary() - _ = yym33 + yym3037 := z.EncBinary() + _ = yym3037 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36778,14 +38904,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { + if yyq3016[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym35 := z.EncBinary() - _ = yym35 + yym3039 := z.EncBinary() + _ = yym3039 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36795,15 +38921,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym36 := z.EncBinary() - _ = yym36 + yym3040 := z.EncBinary() + _ = yym3040 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36811,7 +38937,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36824,25 +38950,25 @@ func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3041 := z.DecBinary() + _ = yym3041 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3042 := r.ContainerType() + if yyct3042 == codecSelferValueTypeMap1234 { + yyl3042 := r.ReadMapStart() + if yyl3042 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3042, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3042 == codecSelferValueTypeArray1234 { + yyl3042 := r.ReadArrayStart() + if yyl3042 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3042, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36854,12 +38980,12 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys3043Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3043Slc + var yyhl3043 bool = l >= 0 + for yyj3043 := 0; ; yyj3043++ { + if yyhl3043 { + if yyj3043 >= l { break } } else { @@ -36868,23 +38994,23 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3043Slc = r.DecodeBytes(yys3043Slc, true, true) + yys3043 := string(yys3043Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3043 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv4 := &x.Capacity - yyv4.CodecDecodeSelf(d) + yyv3044 := &x.Capacity + yyv3044.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv5 := &x.Allocatable - yyv5.CodecDecodeSelf(d) + yyv3045 := &x.Allocatable + yyv3045.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { @@ -36896,80 +39022,80 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv7 := &x.Conditions - yym8 := z.DecBinary() - _ = yym8 + yyv3047 := &x.Conditions + yym3048 := z.DecBinary() + _ = yym3048 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv7), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3047), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv9 := &x.Addresses - yym10 := z.DecBinary() - _ = yym10 + yyv3049 := &x.Addresses + yym3050 := z.DecBinary() + _ = yym3050 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv9), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3049), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv11 := &x.DaemonEndpoints - yyv11.CodecDecodeSelf(d) + yyv3051 := &x.DaemonEndpoints + yyv3051.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv12 := &x.NodeInfo - yyv12.CodecDecodeSelf(d) + yyv3052 := &x.NodeInfo + yyv3052.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { - yyv13 := &x.Images - yym14 := z.DecBinary() - _ = yym14 + yyv3053 := &x.Images + yym3054 := z.DecBinary() + _ = yym3054 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv13), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3053), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv15 := &x.VolumesInUse - yym16 := z.DecBinary() - _ = yym16 + yyv3055 := &x.VolumesInUse + yym3056 := z.DecBinary() + _ = yym3056 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv15), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3055), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv17 := &x.VolumesAttached - yym18 := z.DecBinary() - _ = yym18 + yyv3057 := &x.VolumesAttached + yym3058 := z.DecBinary() + _ = yym3058 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv17), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3057), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3043) + } // end switch yys3043 + } // end for yyj3043 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36977,16 +39103,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj19 int - var yyb19 bool - var yyhl19 bool = l >= 0 - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + var yyj3059 int + var yyb3059 bool + var yyhl3059 bool = l >= 0 + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36994,16 +39120,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv20 := &x.Capacity - yyv20.CodecDecodeSelf(d) + yyv3060 := &x.Capacity + yyv3060.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37011,16 +39137,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv21 := &x.Allocatable - yyv21.CodecDecodeSelf(d) + yyv3061 := &x.Allocatable + yyv3061.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37030,13 +39156,13 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = NodePhase(r.DecodeString()) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37044,21 +39170,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv23 := &x.Conditions - yym24 := z.DecBinary() - _ = yym24 + yyv3063 := &x.Conditions + yym3064 := z.DecBinary() + _ = yym3064 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv23), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3063), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37066,21 +39192,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv25 := &x.Addresses - yym26 := z.DecBinary() - _ = yym26 + yyv3065 := &x.Addresses + yym3066 := z.DecBinary() + _ = yym3066 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv25), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3065), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37088,16 +39214,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv27 := &x.DaemonEndpoints - yyv27.CodecDecodeSelf(d) + yyv3067 := &x.DaemonEndpoints + yyv3067.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37105,16 +39231,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv28 := &x.NodeInfo - yyv28.CodecDecodeSelf(d) + yyv3068 := &x.NodeInfo + yyv3068.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37122,21 +39248,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Images = nil } else { - yyv29 := &x.Images - yym30 := z.DecBinary() - _ = yym30 + yyv3069 := &x.Images + yym3070 := z.DecBinary() + _ = yym3070 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv29), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3069), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37144,21 +39270,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv31 := &x.VolumesInUse - yym32 := z.DecBinary() - _ = yym32 + yyv3071 := &x.VolumesInUse + yym3072 := z.DecBinary() + _ = yym3072 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv31), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3071), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37166,26 +39292,26 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv33 := &x.VolumesAttached - yym34 := z.DecBinary() - _ = yym34 + yyv3073 := &x.VolumesAttached + yym3074 := z.DecBinary() + _ = yym3074 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv33), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3073), d) } } for { - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l } else { - yyb19 = r.CheckBreak() + yyb3059 = r.CheckBreak() } - if yyb19 { + if yyb3059 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj19-1, "") + z.DecStructFieldNotFound(yyj3059-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37194,8 +39320,8 @@ func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3075 := z.EncBinary() + _ = yym3075 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -37207,8 +39333,8 @@ func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3076 := z.DecBinary() + _ = yym3076 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -37223,30 +39349,30 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3077 := z.EncBinary() + _ = yym3077 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3078 = 2 + for _, b := range yyq3078 { if b { - yynn2++ + yynn3078++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3078) + yynn3078 = 0 } - if yyr2 || yy2arr2 { + if yyr3078 || yy2arr3078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { @@ -37255,10 +39381,10 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3078 || yy2arr3078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3081 := z.EncBinary() + _ = yym3081 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) @@ -37267,14 +39393,14 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3082 := z.EncBinary() + _ = yym3082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } - if yyr2 || yy2arr2 { + if yyr3078 || yy2arr3078 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37287,25 +39413,25 @@ func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3083 := z.DecBinary() + _ = yym3083 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3084 := r.ContainerType() + if yyct3084 == codecSelferValueTypeMap1234 { + yyl3084 := r.ReadMapStart() + if yyl3084 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3084, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3084 == codecSelferValueTypeArray1234 { + yyl3084 := r.ReadArrayStart() + if yyl3084 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3084, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37317,12 +39443,12 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -37331,10 +39457,10 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3085Slc = r.DecodeBytes(yys3085Slc, true, true) + yys3085 := string(yys3085Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3085 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -37348,9 +39474,9 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3085) + } // end switch yys3085 + } // end for yyj3085 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37358,16 +39484,16 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3088 int + var yyb3088 bool + var yyhl3088 bool = l >= 0 + yyj3088++ + if yyhl3088 { + yyb3088 = yyj3088 > l } else { - yyb6 = r.CheckBreak() + yyb3088 = r.CheckBreak() } - if yyb6 { + if yyb3088 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37377,13 +39503,13 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = UniqueVolumeName(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3088++ + if yyhl3088 { + yyb3088 = yyj3088 > l } else { - yyb6 = r.CheckBreak() + yyb3088 = r.CheckBreak() } - if yyb6 { + if yyb3088 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37394,105 +39520,86 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3088++ + if yyhl3088 { + yyb3088 = yyj3088 > l } else { - yyb6 = r.CheckBreak() + yyb3088 = r.CheckBreak() } - if yyb6 { + if yyb3088 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3088-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *AvoidPods) 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 + yym3091 := z.EncBinary() + _ = yym3091 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.SizeBytes != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3092 = 0 + for _, b := range yyq3092 { if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - 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 { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) + yynn3092++ } } + r.EncodeMapStart(yynn3092) + yynn3092 = 0 } - if yyr2 || yy2arr2 { + if yyr3092 || yy2arr3092 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { + if yyq3092[0] { + if x.PreferAvoidPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.SizeBytes)) + yym3094 := z.EncBinary() + _ = yym3094 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } } } else { - r.EncodeInt(0) + r.EncodeNil() } } else { - if yyq2[1] { + if yyq3092[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) + r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { + if x.PreferAvoidPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.SizeBytes)) + yym3095 := z.EncBinary() + _ = yym3095 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } } } } - if yyr2 || yy2arr2 { + if yyr3092 || yy2arr3092 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37501,29 +39608,29 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3096 := z.DecBinary() + _ = yym3096 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3097 := r.ContainerType() + if yyct3097 == codecSelferValueTypeMap1234 { + yyl3097 := r.ReadMapStart() + if yyl3097 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3097, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3097 == codecSelferValueTypeArray1234 { + yyl3097 := r.ReadArrayStart() + if yyl3097 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3097, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37531,16 +39638,16 @@ func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -37549,279 +39656,160 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3098Slc = r.DecodeBytes(yys3098Slc, true, true) + yys3098 := string(yys3098Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "names": + switch yys3098 { + case "preferAvoidPods": if r.TryDecodeAsNil() { - x.Names = nil + x.PreferAvoidPods = nil } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 + yyv3099 := &x.PreferAvoidPods + yym3100 := z.DecBinary() + _ = yym3100 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3099), d) } } - case "sizeBytes": - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3098) + } // end switch yys3098 + } // end for yyj3098 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3101 int + var yyb3101 bool + var yyhl3101 bool = l >= 0 + yyj3101++ + if yyhl3101 { + yyb3101 = yyj3101 > l } else { - yyb7 = r.CheckBreak() + yyb3101 = r.CheckBreak() } - if yyb7 { + if yyb3101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Names = nil + x.PreferAvoidPods = nil } else { - yyv8 := &x.Names - yym9 := z.DecBinary() - _ = yym9 + yyv3102 := &x.PreferAvoidPods + yym3103 := z.DecBinary() + _ = yym3103 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3102), d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3101++ + if yyhl3101 { + yyb3101 = yyj3101 > l } else { - yyb7 = r.CheckBreak() + yyb3101 = r.CheckBreak() } - if yyb7 { + if yyb3101 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3101-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 - 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 - yym1 := z.DecBinary() - _ = yym1 - 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 - yym1 := z.EncBinary() - _ = yym1 - 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 - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *PreferAvoidPodsEntry) 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 + yym3104 := z.EncBinary() + _ = yym3104 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3105 = 1 + for _, b := range yyq3105 { if b { - yynn2++ + yynn3105++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - 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) + r.EncodeMapStart(yynn3105) + yynn3105 = 0 } - if yyr2 || yy2arr2 { + if yyr3105 || yy2arr3105 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Status.CodecEncodeSelf(e) + yy3107 := &x.PodSignature + yy3107.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Status.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastHeartbeatTime - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) - } else { - z.EncFallback(yy10) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastHeartbeatTime - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) - } else { - z.EncFallback(yy12) - } - } + yy3108 := &x.PodSignature + yy3108.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3105 || yy2arr3105 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq3105[1] { + yy3110 := &x.EvictionTime + yym3111 := z.EncBinary() + _ = yym3111 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy3110) { + } else if yym3111 { + z.EncBinaryMarshal(yy3110) + } else if !yym3111 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3110) } else { - z.EncFallback(yy15) + z.EncFallback(yy3110) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq3105[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy3112 := &x.EvictionTime + yym3113 := z.EncBinary() + _ = yym3113 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy3112) { + } else if yym3113 { + z.EncBinaryMarshal(yy3112) + } else if !yym3113 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3112) } else { - z.EncFallback(yy17) + z.EncFallback(yy3112) } } } - if yyr2 || yy2arr2 { + if yyr3105 || yy2arr3105 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq3105[2] { + yym3115 := z.EncBinary() + _ = yym3115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -37830,23 +39818,23 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq3105[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym3116 := z.EncBinary() + _ = yym3116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr3105 || yy2arr3105 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq3105[3] { + yym3118 := z.EncBinary() + _ = yym3118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -37855,19 +39843,19 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq3105[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym3119 := z.EncBinary() + _ = yym3119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr3105 || yy2arr3105 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37876,29 +39864,29 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3120 := z.DecBinary() + _ = yym3120 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3121 := r.ContainerType() + if yyct3121 == codecSelferValueTypeMap1234 { + yyl3121 := r.ReadMapStart() + if yyl3121 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3121, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3121 == codecSelferValueTypeArray1234 { + yyl3121 := r.ReadArrayStart() + if yyl3121 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3121, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37906,16 +39894,16 @@ func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -37924,54 +39912,32 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3122Slc = r.DecodeBytes(yys3122Slc, true, true) + yys3122 := string(yys3122Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - case "status": + switch yys3122 { + case "podSignature": if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - case "lastHeartbeatTime": - if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_unversioned.Time{} + x.PodSignature = PodSignature{} } else { - yyv6 := &x.LastHeartbeatTime - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) - } else { - z.DecFallback(yyv6, false) - } + yyv3123 := &x.PodSignature + yyv3123.CodecDecodeSelf(d) } - case "lastTransitionTime": + case "evictionTime": if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_unversioned.Time{} + x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv3124 := &x.EvictionTime + yym3125 := z.DecBinary() + _ = yym3125 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv3124) { + } else if yym3125 { + z.DecBinaryUnmarshal(yyv3124) + } else if !yym3125 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3124) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv3124, false) } } case "reason": @@ -37987,112 +39953,70 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3122) + } // end switch yys3122 + } // end for yyj3122 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj3128 int + var yyb3128 bool + var yyhl3128 bool = l >= 0 + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l } else { - yyb12 = r.CheckBreak() + yyb3128 = r.CheckBreak() } - if yyb12 { + if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_unversioned.Time{} + x.PodSignature = PodSignature{} } else { - yyv15 := &x.LastHeartbeatTime - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) - } else { - z.DecFallback(yyv15, false) - } + yyv3129 := &x.PodSignature + yyv3129.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l } else { - yyb12 = r.CheckBreak() + yyb3128 = r.CheckBreak() } - if yyb12 { + if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_unversioned.Time{} + x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv3130 := &x.EvictionTime + yym3131 := z.DecBinary() + _ = yym3131 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv3130) { + } else if yym3131 { + z.DecBinaryUnmarshal(yyv3130) + } else if !yym3131 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3130) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv3130, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l } else { - yyb12 = r.CheckBreak() + yyb3128 = r.CheckBreak() } - if yyb12 { + if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38102,13 +40026,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l } else { - yyb12 = r.CheckBreak() + yyb3128 = r.CheckBreak() } - if yyb12 { + if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38119,17 +40043,919 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l } else { - yyb12 = r.CheckBreak() + yyb3128 = r.CheckBreak() } - if yyb12 { + if yyb3128 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + 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) } @@ -38138,8 +40964,8 @@ func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3205 := z.EncBinary() + _ = yym3205 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38151,8 +40977,8 @@ func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3206 := z.DecBinary() + _ = yym3206 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38167,30 +40993,30 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3207 := z.EncBinary() + _ = yym3207 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3208 = 2 + for _, b := range yyq3208 { if b { - yynn2++ + yynn3208++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3208) + yynn3208 = 0 } - if yyr2 || yy2arr2 { + if yyr3208 || yy2arr3208 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -38199,10 +41025,10 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3208 || yy2arr3208 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3211 := z.EncBinary() + _ = yym3211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -38211,14 +41037,14 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3212 := z.EncBinary() + _ = yym3212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr2 || yy2arr2 { + if yyr3208 || yy2arr3208 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38231,25 +41057,25 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3213 := z.DecBinary() + _ = yym3213 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3214 := r.ContainerType() + if yyct3214 == codecSelferValueTypeMap1234 { + yyl3214 := r.ReadMapStart() + if yyl3214 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3214, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3214 == codecSelferValueTypeArray1234 { + yyl3214 := r.ReadArrayStart() + if yyl3214 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3214, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38261,12 +41087,12 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -38275,10 +41101,10 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3215Slc = r.DecodeBytes(yys3215Slc, true, true) + yys3215 := string(yys3215Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3215 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -38292,9 +41118,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3215) + } // end switch yys3215 + } // end for yyj3215 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38302,16 +41128,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3218 int + var yyb3218 bool + var yyhl3218 bool = l >= 0 + yyj3218++ + if yyhl3218 { + yyb3218 = yyj3218 > l } else { - yyb6 = r.CheckBreak() + yyb3218 = r.CheckBreak() } - if yyb6 { + if yyb3218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38321,13 +41147,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3218++ + if yyhl3218 { + yyb3218 = yyj3218 > l } else { - yyb6 = r.CheckBreak() + yyb3218 = r.CheckBreak() } - if yyb6 { + if yyb3218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38338,17 +41164,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3218++ + if yyhl3218 { + yyb3218 = yyj3218 > l } else { - yyb6 = r.CheckBreak() + yyb3218 = r.CheckBreak() } - if yyb6 { + if yyb3218 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3218-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38360,33 +41186,33 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3221 := z.EncBinary() + _ = yym3221 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Capacity) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3222 = 0 + for _, b := range yyq3222 { if b { - yynn2++ + yynn3222++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3222) + yynn3222 = 0 } - if yyr2 || yy2arr2 { + if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3222[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -38396,7 +41222,7 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq3222[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -38407,7 +41233,7 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38420,25 +41246,25 @@ func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3224 := z.DecBinary() + _ = yym3224 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3225 := r.ContainerType() + if yyct3225 == codecSelferValueTypeMap1234 { + yyl3225 := r.ReadMapStart() + if yyl3225 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3225, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3225 == codecSelferValueTypeArray1234 { + yyl3225 := r.ReadArrayStart() + if yyl3225 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3225, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38450,12 +41276,12 @@ func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -38464,21 +41290,21 @@ func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3226Slc = r.DecodeBytes(yys3226Slc, true, true) + yys3226 := string(yys3226Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3226 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv4 := &x.Capacity - yyv4.CodecDecodeSelf(d) + yyv3227 := &x.Capacity + yyv3227.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3226) + } // end switch yys3226 + } // end for yyj3226 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38486,16 +41312,16 @@ func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj3228 int + var yyb3228 bool + var yyhl3228 bool = l >= 0 + yyj3228++ + if yyhl3228 { + yyb3228 = yyj3228 > l } else { - yyb5 = r.CheckBreak() + yyb3228 = r.CheckBreak() } - if yyb5 { + if yyb3228 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38503,21 +41329,21 @@ func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv6 := &x.Capacity - yyv6.CodecDecodeSelf(d) + yyv3229 := &x.Capacity + yyv3229.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj3228++ + if yyhl3228 { + yyb3228 = yyj3228 > l } else { - yyb5 = r.CheckBreak() + yyb3228 = r.CheckBreak() } - if yyb5 { + if yyb3228 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj3228-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38526,8 +41352,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3230 := z.EncBinary() + _ = yym3230 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38539,8 +41365,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3231 := z.DecBinary() + _ = yym3231 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38555,8 +41381,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3232 := z.EncBinary() + _ = yym3232 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38569,8 +41395,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3233 := z.DecBinary() + _ = yym3233 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38585,136 +41411,136 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3234 := z.EncBinary() + _ = yym3234 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3235 = 0 + for _, b := range yyq3235 { if b { - yynn2++ + yynn3235++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3235) + yynn3235 = 0 } - if yyr2 || yy2arr2 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq3235[0] { + yym3237 := z.EncBinary() + _ = yym3237 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3235[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym3238 := z.EncBinary() + _ = yym3238 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq3235[1] { + yym3240 := z.EncBinary() + _ = yym3240 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3235[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym3241 := z.EncBinary() + _ = yym3241 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq3235[2] { + yy3243 := &x.ObjectMeta + yy3243.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3235[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy3244 := &x.ObjectMeta + yy3244.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq3235[3] { + yy3246 := &x.Spec + yy3246.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq3235[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy3247 := &x.Spec + yy3247.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq3235[4] { + yy3249 := &x.Status + yy3249.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq3235[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy3250 := &x.Status + yy3250.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38727,25 +41553,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3251 := z.DecBinary() + _ = yym3251 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3252 := r.ContainerType() + if yyct3252 == codecSelferValueTypeMap1234 { + yyl3252 := r.ReadMapStart() + if yyl3252 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3252, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3252 == codecSelferValueTypeArray1234 { + yyl3252 := r.ReadArrayStart() + if yyl3252 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3252, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38757,12 +41583,12 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -38771,47 +41597,47 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3253Slc = r.DecodeBytes(yys3253Slc, true, true) + yys3253 := string(yys3253Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys3253 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = NodeSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = NodeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv3256 := &x.ObjectMeta + yyv3256.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NodeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3257 := &x.Spec + yyv3257.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NodeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3258 := &x.Status + yyv3258.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3253) + } // end switch yys3253 + } // end for yyj3253 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38819,104 +41645,104 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj3259 int + var yyb3259 bool + var yyhl3259 bool = l >= 0 + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb9 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb9 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb9 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb9 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = NodeSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb9 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb9 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = NodeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv3262 := &x.ObjectMeta + yyv3262.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb9 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb9 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NodeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3263 := &x.Spec + yyv3263.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb9 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb9 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NodeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3264 := &x.Status + yyv3264.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb9 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb9 { + if yyb3259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj3259-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38928,139 +41754,139 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3265 := z.EncBinary() + _ = yym3265 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3266 = 1 + for _, b := range yyq3266 { if b { - yynn2++ + yynn3266++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3266) + yynn3266 = 0 } - if yyr2 || yy2arr2 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3266[0] { + yym3268 := z.EncBinary() + _ = yym3268 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3266[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3269 := z.EncBinary() + _ = yym3269 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3266[1] { + yym3271 := z.EncBinary() + _ = yym3271 if false { } else { - h.encSliceNode(([]Node)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3266[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3272 := z.EncBinary() + _ = yym3272 if false { } else { - h.encSliceNode(([]Node)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3266[2] { + yy3274 := &x.ListMeta + yym3275 := z.EncBinary() + _ = yym3275 if false { + } else if z.HasExtensions() && z.EncExt(yy3274) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3274) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3266[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3276 := &x.ListMeta + yym3277 := z.EncBinary() + _ = yym3277 if false { + } else if z.HasExtensions() && z.EncExt(yy3276) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3276) } } } - if yyr2 || yy2arr2 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3279 := z.EncBinary() + _ = yym3279 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNode(([]Node)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3280 := z.EncBinary() + _ = yym3280 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39073,25 +41899,25 @@ func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3281 := z.DecBinary() + _ = yym3281 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3282 := r.ContainerType() + if yyct3282 == codecSelferValueTypeMap1234 { + yyl3282 := r.ReadMapStart() + if yyl3282 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3282, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3282 == codecSelferValueTypeArray1234 { + yyl3282 := r.ReadArrayStart() + if yyl3282 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3282, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39103,12 +41929,12 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -39117,51 +41943,51 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3283Slc = r.DecodeBytes(yys3283Slc, true, true) + yys3283 := string(yys3283Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3283 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3286 := &x.ListMeta + yym3287 := z.DecBinary() + _ = yym3287 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3286) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3286, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3288 := &x.Items + yym3289 := z.DecBinary() + _ = yym3289 if false { } else { - h.decSliceNode((*[]Node)(yyv6), d) + h.decSliceNode((*[]Node)(yyv3288), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3283) + } // end switch yys3283 + } // end for yyj3283 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39169,98 +41995,98 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3290 int + var yyb3290 bool + var yyhl3290 bool = l >= 0 + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb10 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb10 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb10 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb10 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceNode((*[]Node)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb10 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb10 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3293 := &x.ListMeta + yym3294 := z.DecBinary() + _ = yym3294 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3293) { + } else { + z.DecFallback(yyv3293, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb10 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb10 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3295 := &x.Items + yym3296 := z.DecBinary() + _ = yym3296 + if false { + } else { + h.decSliceNode((*[]Node)(yyv3295), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb10 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb10 { + if yyb3290 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3290-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39272,36 +42098,36 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3297 := z.EncBinary() + _ = yym3297 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3298 = 1 + for _, b := range yyq3298 { if b { - yynn2++ + yynn3298++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3298) + yynn3298 = 0 } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym3300 := z.EncBinary() + _ = yym3300 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -39314,15 +42140,15 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Finalizers == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym3301 := z.EncBinary() + _ = yym3301 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39335,25 +42161,25 @@ func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3302 := z.DecBinary() + _ = yym3302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3303 := r.ContainerType() + if yyct3303 == codecSelferValueTypeMap1234 { + yyl3303 := r.ReadMapStart() + if yyl3303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3303, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3303 == codecSelferValueTypeArray1234 { + yyl3303 := r.ReadArrayStart() + if yyl3303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3303, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39365,12 +42191,12 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -39379,26 +42205,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3304Slc = r.DecodeBytes(yys3304Slc, true, true) + yys3304 := string(yys3304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3304 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv4 := &x.Finalizers - yym5 := z.DecBinary() - _ = yym5 + yyv3305 := &x.Finalizers + yym3306 := z.DecBinary() + _ = yym3306 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv4), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3305), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3304) + } // end switch yys3304 + } // end for yyj3304 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39406,16 +42232,16 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3307 int + var yyb3307 bool + var yyhl3307 bool = l >= 0 + yyj3307++ + if yyhl3307 { + yyb3307 = yyj3307 > l } else { - yyb6 = r.CheckBreak() + yyb3307 = r.CheckBreak() } - if yyb6 { + if yyb3307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39423,26 +42249,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv7 := &x.Finalizers - yym8 := z.DecBinary() - _ = yym8 + yyv3308 := &x.Finalizers + yym3309 := z.DecBinary() + _ = yym3309 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv7), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3308), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3307++ + if yyhl3307 { + yyb3307 = yyj3307 > l } else { - yyb6 = r.CheckBreak() + yyb3307 = r.CheckBreak() } - if yyb6 { + if yyb3307 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3307-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39451,8 +42277,8 @@ func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3310 := z.EncBinary() + _ = yym3310 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39464,8 +42290,8 @@ func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3311 := z.DecBinary() + _ = yym3311 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39480,46 +42306,46 @@ func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3312 := z.EncBinary() + _ = yym3312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3313 = 0 + for _, b := range yyq3313 { if b { - yynn2++ + yynn3313++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3313) + yynn3313 = 0 } - if yyr2 || yy2arr2 { + if yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3313[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3313[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39532,25 +42358,25 @@ func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3315 := z.DecBinary() + _ = yym3315 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3316 := r.ContainerType() + if yyct3316 == codecSelferValueTypeMap1234 { + yyl3316 := r.ReadMapStart() + if yyl3316 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3316, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3316 == codecSelferValueTypeArray1234 { + yyl3316 := r.ReadArrayStart() + if yyl3316 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3316, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39562,12 +42388,12 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -39576,10 +42402,10 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3317Slc = r.DecodeBytes(yys3317Slc, true, true) + yys3317 := string(yys3317Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3317 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -39587,9 +42413,9 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Phase = NamespacePhase(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3317) + } // end switch yys3317 + } // end for yyj3317 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39597,16 +42423,16 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj3319 int + var yyb3319 bool + var yyhl3319 bool = l >= 0 + yyj3319++ + if yyhl3319 { + yyb3319 = yyj3319 > l } else { - yyb5 = r.CheckBreak() + yyb3319 = r.CheckBreak() } - if yyb5 { + if yyb3319 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39617,17 +42443,17 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Phase = NamespacePhase(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj3319++ + if yyhl3319 { + yyb3319 = yyj3319 > l } else { - yyb5 = r.CheckBreak() + yyb3319 = r.CheckBreak() } - if yyb5 { + if yyb3319 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj3319-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39636,8 +42462,8 @@ func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3321 := z.EncBinary() + _ = yym3321 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39649,8 +42475,8 @@ func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3322 := z.DecBinary() + _ = yym3322 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39665,136 +42491,136 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3323 := z.EncBinary() + _ = yym3323 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3324 = 0 + for _, b := range yyq3324 { if b { - yynn2++ + yynn3324++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3324) + yynn3324 = 0 } - if yyr2 || yy2arr2 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq3324[0] { + yym3326 := z.EncBinary() + _ = yym3326 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3324[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym3327 := z.EncBinary() + _ = yym3327 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq3324[1] { + yym3329 := z.EncBinary() + _ = yym3329 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3324[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym3330 := z.EncBinary() + _ = yym3330 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq3324[2] { + yy3332 := &x.ObjectMeta + yy3332.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3324[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy3333 := &x.ObjectMeta + yy3333.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq3324[3] { + yy3335 := &x.Spec + yy3335.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq3324[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy3336 := &x.Spec + yy3336.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq3324[4] { + yy3338 := &x.Status + yy3338.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq3324[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy3339 := &x.Status + yy3339.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39807,25 +42633,25 @@ func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3340 := z.DecBinary() + _ = yym3340 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3341 := r.ContainerType() + if yyct3341 == codecSelferValueTypeMap1234 { + yyl3341 := r.ReadMapStart() + if yyl3341 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3341, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3341 == codecSelferValueTypeArray1234 { + yyl3341 := r.ReadArrayStart() + if yyl3341 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3341, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39837,12 +42663,12 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -39851,47 +42677,47 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3342Slc = r.DecodeBytes(yys3342Slc, true, true) + yys3342 := string(yys3342Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys3342 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv3345 := &x.ObjectMeta + yyv3345.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NamespaceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3346 := &x.Spec + yyv3346.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NamespaceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3347 := &x.Status + yyv3347.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3342) + } // end switch yys3342 + } // end for yyj3342 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39899,104 +42725,104 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj3348 int + var yyb3348 bool + var yyhl3348 bool = l >= 0 + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb9 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb9 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb9 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb9 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb9 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb9 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv3351 := &x.ObjectMeta + yyv3351.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb9 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb9 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NamespaceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3352 := &x.Spec + yyv3352.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb9 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb9 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NamespaceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3353 := &x.Status + yyv3353.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb9 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb9 { + if yyb3348 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj3348-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40008,139 +42834,139 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3354 := z.EncBinary() + _ = yym3354 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3355 = 1 + for _, b := range yyq3355 { if b { - yynn2++ + yynn3355++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3355) + yynn3355 = 0 } - if yyr2 || yy2arr2 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3355[0] { + yym3357 := z.EncBinary() + _ = yym3357 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3355[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3358 := z.EncBinary() + _ = yym3358 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3355[1] { + yym3360 := z.EncBinary() + _ = yym3360 if false { } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3355[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3361 := z.EncBinary() + _ = yym3361 if false { } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3355[2] { + yy3363 := &x.ListMeta + yym3364 := z.EncBinary() + _ = yym3364 if false { + } else if z.HasExtensions() && z.EncExt(yy3363) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3363) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3355[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3365 := &x.ListMeta + yym3366 := z.EncBinary() + _ = yym3366 if false { + } else if z.HasExtensions() && z.EncExt(yy3365) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3365) } } } - if yyr2 || yy2arr2 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3368 := z.EncBinary() + _ = yym3368 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNamespace(([]Namespace)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3369 := z.EncBinary() + _ = yym3369 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNamespace(([]Namespace)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40153,25 +42979,25 @@ func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3370 := z.DecBinary() + _ = yym3370 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3371 := r.ContainerType() + if yyct3371 == codecSelferValueTypeMap1234 { + yyl3371 := r.ReadMapStart() + if yyl3371 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3371, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3371 == codecSelferValueTypeArray1234 { + yyl3371 := r.ReadArrayStart() + if yyl3371 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3371, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40183,12 +43009,12 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -40197,51 +43023,51 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3372Slc = r.DecodeBytes(yys3372Slc, true, true) + yys3372 := string(yys3372Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3372 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3375 := &x.ListMeta + yym3376 := z.DecBinary() + _ = yym3376 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3375) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3375, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3377 := &x.Items + yym3378 := z.DecBinary() + _ = yym3378 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv6), d) + h.decSliceNamespace((*[]Namespace)(yyv3377), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3372) + } // end switch yys3372 + } // end for yyj3372 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40249,98 +43075,98 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3379 int + var yyb3379 bool + var yyhl3379 bool = l >= 0 + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb10 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb10 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb10 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb10 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceNamespace((*[]Namespace)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb10 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb10 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3382 := &x.ListMeta + yym3383 := z.DecBinary() + _ = yym3383 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3382) { + } else { + z.DecFallback(yyv3382, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb10 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb10 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3384 := &x.Items + yym3385 := z.DecBinary() + _ = yym3385 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3384), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb10 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb10 { + if yyb3379 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3379-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40352,65 +43178,37 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3386 := z.EncBinary() + _ = yym3386 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3387 = 1 + for _, b := range yyq3387 { if b { - yynn2++ + yynn3387++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn3387) + yynn3387 = 0 } - if yyr2 || yy2arr2 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy9 := &x.Target - yy9.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("target")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Target - yy11.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq3387[0] { + yym3389 := z.EncBinary() + _ = yym3389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -40419,23 +43217,23 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3387[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym3390 := z.EncBinary() + _ = yym3390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq3387[1] { + yym3392 := z.EncBinary() + _ = yym3392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -40444,19 +43242,47 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3387[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym3393 := z.EncBinary() + _ = yym3393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3387 || yy2arr3387 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3387[2] { + yy3395 := &x.ObjectMeta + yy3395.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3387[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3396 := &x.ObjectMeta + yy3396.CodecEncodeSelf(e) + } + } + if yyr3387 || yy2arr3387 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3398 := &x.Target + yy3398.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("target")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3399 := &x.Target + yy3399.CodecEncodeSelf(e) + } + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40469,25 +43295,25 @@ func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3400 := z.DecBinary() + _ = yym3400 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3401 := r.ContainerType() + if yyct3401 == codecSelferValueTypeMap1234 { + yyl3401 := r.ReadMapStart() + if yyl3401 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3401, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3401 == codecSelferValueTypeArray1234 { + yyl3401 := r.ReadArrayStart() + if yyl3401 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3401, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40499,12 +43325,12 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -40513,24 +43339,10 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3402Slc = r.DecodeBytes(yys3402Slc, true, true) + yys3402 := string(yys3402Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "target": - if r.TryDecodeAsNil() { - x.Target = ObjectReference{} - } else { - yyv5 := &x.Target - yyv5.CodecDecodeSelf(d) - } + switch yys3402 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -40543,10 +43355,24 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3405 := &x.ObjectMeta + yyv3405.CodecDecodeSelf(d) + } + case "target": + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3406 := &x.Target + yyv3406.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3402) + } // end switch yys3402 + } // end for yyj3402 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40554,87 +43380,87 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj3407 int + var yyb3407 bool + var yyhl3407 bool = l >= 0 + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb8 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb8 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb8 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb8 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Target = ObjectReference{} + x.APIVersion = "" } else { - yyv10 := &x.Target - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb8 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb8 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3410 := &x.ObjectMeta + yyv3410.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb8 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb8 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Target = ObjectReference{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3411 := &x.Target + yyv3411.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb8 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb8 { + if yyb3407 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj3407-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40646,68 +43472,68 @@ func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3412 := z.EncBinary() + _ = yym3412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.UID != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3413 = 0 + for _, b := range yyq3413 { if b { - yynn2++ + yynn3413++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3413) + yynn3413 = 0 } - if yyr2 || yy2arr2 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3413[0] { if x.UID == nil { r.EncodeNil() } else { - yy4 := *x.UID - yym5 := z.EncBinary() - _ = yym5 + yy3415 := *x.UID + yym3416 := z.EncBinary() + _ = yym3416 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { + } else if z.HasExtensions() && z.EncExt(yy3415) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy4)) + r.EncodeString(codecSelferC_UTF81234, string(yy3415)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy6 := *x.UID - yym7 := z.EncBinary() - _ = yym7 + yy3417 := *x.UID + yym3418 := z.EncBinary() + _ = yym3418 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { + } else if z.HasExtensions() && z.EncExt(yy3417) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy6)) + r.EncodeString(codecSelferC_UTF81234, string(yy3417)) } } } } - if yyr2 || yy2arr2 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40720,25 +43546,25 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3419 := z.DecBinary() + _ = yym3419 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3420 := r.ContainerType() + if yyct3420 == codecSelferValueTypeMap1234 { + yyl3420 := r.ReadMapStart() + if yyl3420 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3420, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3420 == codecSelferValueTypeArray1234 { + yyl3420 := r.ReadArrayStart() + if yyl3420 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3420, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40750,12 +43576,12 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -40764,10 +43590,10 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3421Slc = r.DecodeBytes(yys3421Slc, true, true) + yys3421 := string(yys3421Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3421 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { @@ -40777,8 +43603,8 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym5 := z.DecBinary() - _ = yym5 + yym3423 := z.DecBinary() + _ = yym3423 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -40786,9 +43612,9 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3421) + } // end switch yys3421 + } // end for yyj3421 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40796,16 +43622,16 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3424 int + var yyb3424 bool + var yyhl3424 bool = l >= 0 + yyj3424++ + if yyhl3424 { + yyb3424 = yyj3424 > l } else { - yyb6 = r.CheckBreak() + yyb3424 = r.CheckBreak() } - if yyb6 { + if yyb3424 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40818,8 +43644,8 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym8 := z.DecBinary() - _ = yym8 + yym3426 := z.DecBinary() + _ = yym3426 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -40827,17 +43653,17 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3424++ + if yyhl3424 { + yyb3424 = yyj3424 > l } else { - yyb6 = r.CheckBreak() + yyb3424 = r.CheckBreak() } - if yyb6 { + if yyb3424 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3424-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40849,178 +43675,178 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3427 := z.EncBinary() + _ = yym3427 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.GracePeriodSeconds != nil - yyq2[1] = x.Preconditions != nil - yyq2[2] = x.OrphanDependents != nil - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3428 = 0 + for _, b := range yyq3428 { if b { - yynn2++ + yynn3428++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3428) + yynn3428 = 0 } - if yyr2 || yy2arr2 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - if x.GracePeriodSeconds == nil { - r.EncodeNil() + if yyq3428[0] { + yym3430 := z.EncBinary() + _ = yym3430 + if false { } else { - yy4 := *x.GracePeriodSeconds - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(yy4)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3428[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GracePeriodSeconds == nil { - r.EncodeNil() + yym3431 := z.EncBinary() + _ = yym3431 + if false { } else { - yy6 := *x.GracePeriodSeconds - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(yy6)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Preconditions == nil { - r.EncodeNil() + if yyq3428[1] { + yym3433 := z.EncBinary() + _ = yym3433 + if false { } else { - x.Preconditions.CodecEncodeSelf(e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3428[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preconditions")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Preconditions == nil { - r.EncodeNil() + yym3434 := z.EncBinary() + _ = yym3434 + if false { } else { - x.Preconditions.CodecEncodeSelf(e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - if x.OrphanDependents == nil { + if yyq3428[2] { + if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy12 := *x.OrphanDependents - yym13 := z.EncBinary() - _ = yym13 + yy3436 := *x.GracePeriodSeconds + yym3437 := z.EncBinary() + _ = yym3437 if false { } else { - r.EncodeBool(bool(yy12)) + r.EncodeInt(int64(yy3436)) } } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3428[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) + r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OrphanDependents == nil { + if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy14 := *x.OrphanDependents - yym15 := z.EncBinary() - _ = yym15 + yy3438 := *x.GracePeriodSeconds + yym3439 := z.EncBinary() + _ = yym3439 if false { } else { - r.EncodeBool(bool(yy14)) + r.EncodeInt(int64(yy3438)) } } } } - if yyr2 || yy2arr2 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { + if yyq3428[3] { + if x.Preconditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + x.Preconditions.CodecEncodeSelf(e) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq3428[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { + if x.Preconditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + x.Preconditions.CodecEncodeSelf(e) } } } - if yyr2 || yy2arr2 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 - if false { + if yyq3428[4] { + if x.OrphanDependents == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy3442 := *x.OrphanDependents + yym3443 := z.EncBinary() + _ = yym3443 + if false { + } else { + r.EncodeBool(bool(yy3442)) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq3428[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 - if false { + if x.OrphanDependents == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy3444 := *x.OrphanDependents + yym3445 := z.EncBinary() + _ = yym3445 + if false { + } else { + r.EncodeBool(bool(yy3444)) + } } } } - if yyr2 || yy2arr2 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41033,25 +43859,25 @@ func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3446 := z.DecBinary() + _ = yym3446 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3447 := r.ContainerType() + if yyct3447 == codecSelferValueTypeMap1234 { + yyl3447 := r.ReadMapStart() + if yyl3447 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3447, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3447 == codecSelferValueTypeArray1234 { + yyl3447 := r.ReadArrayStart() + if yyl3447 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3447, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41063,12 +43889,12 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -41077,10 +43903,22 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3448Slc = r.DecodeBytes(yys3448Slc, true, true) + yys3448 := string(yys3448Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3448 { + 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 { @@ -41090,8 +43928,8 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym3452 := z.DecBinary() + _ = yym3452 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -41117,29 +43955,17 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym8 := z.DecBinary() - _ = yym8 + yym3455 := z.DecBinary() + _ = yym3455 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3448) + } // end switch yys3448 + } // end for yyj3448 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41147,16 +43973,48 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj3456 int + var yyb3456 bool + var yyhl3456 bool = l >= 0 + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb11 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb11 { + if yyb3456 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l + } else { + yyb3456 = r.CheckBreak() + } + if yyb3456 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l + } else { + yyb3456 = r.CheckBreak() + } + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41169,20 +44027,20 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym13 := z.DecBinary() - _ = yym13 + yym3460 := z.DecBinary() + _ = yym3460 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb11 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb11 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41197,13 +44055,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Preconditions.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb11 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb11 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41216,57 +44074,25 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym16 := z.DecBinary() - _ = yym16 + yym3463 := z.DecBinary() + _ = yym3463 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb11 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb11 { + if yyb3456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj3456-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41278,74 +44104,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3464 := z.EncBinary() + _ = yym3464 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3465 = 2 + for _, b := range yyq3465 { if b { - yynn2++ + yynn3465++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3465) + yynn3465 = 0 } - if yyr2 || yy2arr2 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("export")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exact")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3465[0] { + yym3467 := z.EncBinary() + _ = yym3467 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41354,23 +44142,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3465[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3468 := z.EncBinary() + _ = yym3468 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3465[1] { + yym3470 := z.EncBinary() + _ = yym3470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41379,19 +44167,57 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3465[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3471 := z.EncBinary() + _ = yym3471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3465 || yy2arr3465 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3473 := z.EncBinary() + _ = yym3473 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("export")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3474 := z.EncBinary() + _ = yym3474 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } + if yyr3465 || yy2arr3465 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3476 := z.EncBinary() + _ = yym3476 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exact")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3477 := z.EncBinary() + _ = yym3477 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41404,25 +44230,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3478 := z.DecBinary() + _ = yym3478 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3479 := r.ContainerType() + if yyct3479 == codecSelferValueTypeMap1234 { + yyl3479 := r.ReadMapStart() + if yyl3479 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3479, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3479 == codecSelferValueTypeArray1234 { + yyl3479 := r.ReadArrayStart() + if yyl3479 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3479, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41434,12 +44260,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -41448,22 +44274,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3480Slc = r.DecodeBytes(yys3480Slc, true, true) + yys3480 := string(yys3480Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "export": - if r.TryDecodeAsNil() { - x.Export = false - } else { - x.Export = bool(r.DecodeBool()) - } - case "exact": - if r.TryDecodeAsNil() { - x.Exact = false - } else { - x.Exact = bool(r.DecodeBool()) - } + switch yys3480 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41476,10 +44290,22 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "export": + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + case "exact": + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3480) + } // end switch yys3480 + } // end for yyj3480 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41487,85 +44313,85 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj3485 int + var yyb3485 bool + var yyhl3485 bool = l >= 0 + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb8 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb8 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Export = false + x.Kind = "" } else { - x.Export = bool(r.DecodeBool()) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb8 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb8 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Exact = false + x.APIVersion = "" } else { - x.Exact = bool(r.DecodeBool()) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb8 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb8 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Export = false } else { - x.Kind = string(r.DecodeString()) + x.Export = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb8 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb8 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Exact = false } else { - x.APIVersion = string(r.DecodeString()) + x.Exact = bool(r.DecodeBool()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb8 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb8 { + if yyb3485 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj3485-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41577,38 +44403,88 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3490 := z.EncBinary() + _ = yym3490 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[5] = x.Kind != "" - yyq2[6] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 5 - for _, b := range yyq2 { + yynn3491 = 5 + for _, b := range yyq3491 { if b { - yynn2++ + yynn3491++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3491) + yynn3491 = 0 } - if yyr2 || yy2arr2 { + if yyr3491 || yy2arr3491 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3491[0] { + yym3493 := z.EncBinary() + _ = yym3493 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3491[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3494 := z.EncBinary() + _ = yym3494 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3491 || yy2arr3491 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3491[1] { + yym3496 := z.EncBinary() + _ = yym3496 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3491[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3497 := z.EncBinary() + _ = yym3497 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym3499 := z.EncBinary() + _ = yym3499 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -41622,8 +44498,8 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.LabelSelector == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym3500 := z.EncBinary() + _ = yym3500 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -41631,13 +44507,13 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym3502 := z.EncBinary() + _ = yym3502 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { @@ -41651,8 +44527,8 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.FieldSelector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym3503 := z.EncBinary() + _ = yym3503 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { @@ -41660,10 +44536,10 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym3505 := z.EncBinary() + _ = yym3505 if false { } else { r.EncodeBool(bool(x.Watch)) @@ -41672,17 +44548,17 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3506 := z.EncBinary() + _ = yym3506 if false { } else { r.EncodeBool(bool(x.Watch)) } } - if yyr2 || yy2arr2 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym3508 := z.EncBinary() + _ = yym3508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -41691,24 +44567,24 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3509 := z.EncBinary() + _ = yym3509 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } - if yyr2 || yy2arr2 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy16 := *x.TimeoutSeconds - yym17 := z.EncBinary() - _ = yym17 + yy3511 := *x.TimeoutSeconds + yym3512 := z.EncBinary() + _ = yym3512 if false { } else { - r.EncodeInt(int64(yy16)) + r.EncodeInt(int64(yy3511)) } } } else { @@ -41718,66 +44594,16 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy18 := *x.TimeoutSeconds - yym19 := z.EncBinary() - _ = yym19 + yy3513 := *x.TimeoutSeconds + yym3514 := z.EncBinary() + _ = yym3514 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy3513)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym21 := z.EncBinary() - _ = yym21 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym24 := z.EncBinary() - _ = yym24 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41790,25 +44616,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3515 := z.DecBinary() + _ = yym3515 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3516 := r.ContainerType() + if yyct3516 == codecSelferValueTypeMap1234 { + yyl3516 := r.ReadMapStart() + if yyl3516 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3516, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3516 == codecSelferValueTypeArray1234 { + yyl3516 := r.ReadArrayStart() + if yyl3516 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3516, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41820,12 +44646,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -41834,34 +44660,46 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3517Slc = r.DecodeBytes(yys3517Slc, true, true) + yys3517 := string(yys3517Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3517 { + 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 "LabelSelector": if r.TryDecodeAsNil() { x.LabelSelector = nil } else { - yyv4 := &x.LabelSelector - yym5 := z.DecBinary() - _ = yym5 + yyv3520 := &x.LabelSelector + yym3521 := z.DecBinary() + _ = yym3521 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3520) { } else { - z.DecFallback(yyv4, true) + z.DecFallback(yyv3520, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { - yyv6 := &x.FieldSelector - yym7 := z.DecBinary() - _ = yym7 + yyv3522 := &x.FieldSelector + yym3523 := z.DecBinary() + _ = yym3523 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { + } else if z.HasExtensions() && z.DecExt(yyv3522) { } else { - z.DecFallback(yyv6, true) + z.DecFallback(yyv3522, true) } } case "Watch": @@ -41885,29 +44723,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym11 := z.DecBinary() - _ = yym11 + yym3527 := z.DecBinary() + _ = yym3527 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3517) + } // end switch yys3517 + } // end for yyj3517 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41915,16 +44741,48 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj3528 int + var yyb3528 bool + var yyhl3528 bool = l >= 0 + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l + } else { + yyb3528 = r.CheckBreak() + } + if yyb3528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l + } else { + yyb3528 = r.CheckBreak() + } + if yyb3528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb14 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb14 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41932,22 +44790,22 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LabelSelector = nil } else { - yyv15 := &x.LabelSelector - yym16 := z.DecBinary() - _ = yym16 + yyv3531 := &x.LabelSelector + yym3532 := z.DecBinary() + _ = yym3532 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { + } else if z.HasExtensions() && z.DecExt(yyv3531) { } else { - z.DecFallback(yyv15, true) + z.DecFallback(yyv3531, true) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb14 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb14 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41955,22 +44813,22 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FieldSelector = nil } else { - yyv17 := &x.FieldSelector - yym18 := z.DecBinary() - _ = yym18 + yyv3533 := &x.FieldSelector + yym3534 := z.DecBinary() + _ = yym3534 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { + } else if z.HasExtensions() && z.DecExt(yyv3533) { } else { - z.DecFallback(yyv17, true) + z.DecFallback(yyv3533, true) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb14 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb14 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41980,13 +44838,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb14 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb14 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41996,13 +44854,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb14 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb14 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42015,57 +44873,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym22 := z.DecBinary() - _ = yym22 + yym3538 := z.DecBinary() + _ = yym3538 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb14 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb14 { + if yyb3528 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj3528-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42077,35 +44903,85 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3539 := z.EncBinary() + _ = yym3539 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[8] = x.Kind != "" - yyq2[9] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 8 - for _, b := range yyq2 { + yynn3540 = 8 + for _, b := range yyq3540 { if b { - yynn2++ + yynn3540++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3540) + yynn3540 = 0 } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + if yyq3540[0] { + yym3542 := z.EncBinary() + _ = yym3542 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3540[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3543 := z.EncBinary() + _ = yym3543 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3540 || yy2arr3540 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3540[1] { + yym3545 := z.EncBinary() + _ = yym3545 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3540[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3546 := z.EncBinary() + _ = yym3546 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3540 || yy2arr3540 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3548 := z.EncBinary() + _ = yym3548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -42114,17 +44990,17 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3549 := z.EncBinary() + _ = yym3549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3551 := z.EncBinary() + _ = yym3551 if false { } else { r.EncodeBool(bool(x.Follow)) @@ -42133,17 +45009,17 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3552 := z.EncBinary() + _ = yym3552 if false { } else { r.EncodeBool(bool(x.Follow)) } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym3554 := z.EncBinary() + _ = yym3554 if false { } else { r.EncodeBool(bool(x.Previous)) @@ -42152,24 +45028,24 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3555 := z.EncBinary() + _ = yym3555 if false { } else { r.EncodeBool(bool(x.Previous)) } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy13 := *x.SinceSeconds - yym14 := z.EncBinary() - _ = yym14 + yy3557 := *x.SinceSeconds + yym3558 := z.EncBinary() + _ = yym3558 if false { } else { - r.EncodeInt(int64(yy13)) + r.EncodeInt(int64(yy3557)) } } } else { @@ -42179,27 +45055,27 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy15 := *x.SinceSeconds - yym16 := z.EncBinary() - _ = yym16 + yy3559 := *x.SinceSeconds + yym3560 := z.EncBinary() + _ = yym3560 if false { } else { - r.EncodeInt(int64(yy15)) + r.EncodeInt(int64(yy3559)) } } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym18 := z.EncBinary() - _ = yym18 + yym3562 := z.EncBinary() + _ = yym3562 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym18 { + } else if yym3562 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym18 && z.IsJSONHandle() { + } else if !yym3562 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -42212,23 +45088,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.SinceTime == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + yym3563 := z.EncBinary() + _ = yym3563 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym19 { + } else if yym3563 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym19 && z.IsJSONHandle() { + } else if !yym3563 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym21 := z.EncBinary() - _ = yym21 + yym3565 := z.EncBinary() + _ = yym3565 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -42237,24 +45113,24 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym22 := z.EncBinary() - _ = yym22 + yym3566 := z.EncBinary() + _ = yym3566 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { - yy24 := *x.TailLines - yym25 := z.EncBinary() - _ = yym25 + yy3568 := *x.TailLines + yym3569 := z.EncBinary() + _ = yym3569 if false { } else { - r.EncodeInt(int64(yy24)) + r.EncodeInt(int64(yy3568)) } } } else { @@ -42264,26 +45140,26 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.TailLines == nil { r.EncodeNil() } else { - yy26 := *x.TailLines - yym27 := z.EncBinary() - _ = yym27 + yy3570 := *x.TailLines + yym3571 := z.EncBinary() + _ = yym3571 if false { } else { - r.EncodeInt(int64(yy26)) + r.EncodeInt(int64(yy3570)) } } } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy29 := *x.LimitBytes - yym30 := z.EncBinary() - _ = yym30 + yy3573 := *x.LimitBytes + yym3574 := z.EncBinary() + _ = yym3574 if false { } else { - r.EncodeInt(int64(yy29)) + r.EncodeInt(int64(yy3573)) } } } else { @@ -42293,66 +45169,16 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.LimitBytes == nil { r.EncodeNil() } else { - yy31 := *x.LimitBytes - yym32 := z.EncBinary() - _ = yym32 + yy3575 := *x.LimitBytes + yym3576 := z.EncBinary() + _ = yym3576 if false { } else { - r.EncodeInt(int64(yy31)) + r.EncodeInt(int64(yy3575)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42365,25 +45191,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3577 := z.DecBinary() + _ = yym3577 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3578 := r.ContainerType() + if yyct3578 == codecSelferValueTypeMap1234 { + yyl3578 := r.ReadMapStart() + if yyl3578 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3578, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3578 == codecSelferValueTypeArray1234 { + yyl3578 := r.ReadArrayStart() + if yyl3578 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3578, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42395,12 +45221,12 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -42409,10 +45235,22 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3579Slc = r.DecodeBytes(yys3579Slc, true, true) + yys3579 := string(yys3579Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3579 { + 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 "Container": if r.TryDecodeAsNil() { x.Container = "" @@ -42440,8 +45278,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym8 := z.DecBinary() - _ = yym8 + yym3586 := z.DecBinary() + _ = yym3586 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -42456,13 +45294,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym10 := z.DecBinary() - _ = yym10 + yym3588 := z.DecBinary() + _ = yym3588 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym10 { + } else if yym3588 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym3588 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -42483,8 +45321,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym13 := z.DecBinary() - _ = yym13 + yym3591 := z.DecBinary() + _ = yym3591 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -42499,29 +45337,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym15 := z.DecBinary() - _ = yym15 + yym3593 := z.DecBinary() + _ = yym3593 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3579) + } // end switch yys3579 + } // end for yyj3579 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42529,16 +45355,48 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + var yyj3594 int + var yyb3594 bool + var yyhl3594 bool = l >= 0 + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l + } else { + yyb3594 = r.CheckBreak() + } + if yyb3594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l + } else { + yyb3594 = r.CheckBreak() + } + if yyb3594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" } else { - yyb18 = r.CheckBreak() + x.APIVersion = string(r.DecodeString()) } - if yyb18 { + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l + } else { + yyb3594 = r.CheckBreak() + } + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42548,13 +45406,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42564,13 +45422,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42580,13 +45438,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42599,20 +45457,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym23 := z.DecBinary() - _ = yym23 + yym3601 := z.DecBinary() + _ = yym3601 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42625,25 +45483,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym25 := z.DecBinary() - _ = yym25 + yym3603 := z.DecBinary() + _ = yym3603 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym25 { + } else if yym3603 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym25 && z.IsJSONHandle() { + } else if !yym3603 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42653,13 +45511,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42672,20 +45530,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym28 := z.DecBinary() - _ = yym28 + yym3606 := z.DecBinary() + _ = yym3606 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42698,57 +45556,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym30 := z.DecBinary() - _ = yym30 + yym3608 := z.DecBinary() + _ = yym3608 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb18 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb18 { + if yyb3594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-1, "") + z.DecStructFieldNotFound(yyj3594-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42760,212 +45586,212 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3609 := z.EncBinary() + _ = yym3609 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Stdin != false - yyq2[1] = x.Stdout != false - yyq2[2] = x.Stderr != false - yyq2[3] = x.TTY != false - yyq2[4] = x.Container != "" - yyq2[5] = x.Kind != "" - yyq2[6] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3610 = 0 + for _, b := range yyq3610 { if b { - yynn2++ + yynn3610++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3610) + yynn3610 = 0 } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3610[0] { + yym3612 := z.EncBinary() + _ = yym3612 if false { } else { - r.EncodeBool(bool(x.Stdin)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3610[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdin")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3613 := z.EncBinary() + _ = yym3613 if false { } else { - r.EncodeBool(bool(x.Stdin)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3610[1] { + yym3615 := z.EncBinary() + _ = yym3615 if false { } else { - r.EncodeBool(bool(x.Stdout)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3610[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdout")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3616 := z.EncBinary() + _ = yym3616 if false { } else { - r.EncodeBool(bool(x.Stdout)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3610[2] { + yym3618 := z.EncBinary() + _ = yym3618 if false { } else { - r.EncodeBool(bool(x.Stderr)) + r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { - if yyq2[2] { + if yyq3610[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stderr")) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3619 := z.EncBinary() + _ = yym3619 if false { } else { - r.EncodeBool(bool(x.Stderr)) + r.EncodeBool(bool(x.Stdin)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3610[3] { + yym3621 := z.EncBinary() + _ = yym3621 if false { } else { - r.EncodeBool(bool(x.TTY)) + r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { - if yyq2[3] { + if yyq3610[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tty")) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3622 := z.EncBinary() + _ = yym3622 if false { } else { - r.EncodeBool(bool(x.TTY)) + r.EncodeBool(bool(x.Stdout)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq3610[4] { + yym3624 := z.EncBinary() + _ = yym3624 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + r.EncodeBool(bool(x.Stderr)) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeBool(false) } } else { - if yyq2[4] { + if yyq3610[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("container")) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym3625 := z.EncBinary() + _ = yym3625 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + r.EncodeBool(bool(x.Stderr)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq3610[5] { + yym3627 := z.EncBinary() + _ = yym3627 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeBool(bool(x.TTY)) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeBool(false) } } else { - if yyq2[5] { + if yyq3610[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym3628 := z.EncBinary() + _ = yym3628 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeBool(bool(x.TTY)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 + if yyq3610[6] { + yym3630 := z.EncBinary() + _ = yym3630 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq3610[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym3631 := z.EncBinary() + _ = yym3631 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr2 || yy2arr2 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42978,25 +45804,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3632 := z.DecBinary() + _ = yym3632 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3633 := r.ContainerType() + if yyct3633 == codecSelferValueTypeMap1234 { + yyl3633 := r.ReadMapStart() + if yyl3633 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3633, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3633 == codecSelferValueTypeArray1234 { + yyl3633 := r.ReadArrayStart() + if yyl3633 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3633, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43008,12 +45834,12 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -43022,10 +45848,22 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3634Slc = r.DecodeBytes(yys3634Slc, true, true) + yys3634 := string(yys3634Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3634 { + 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 "stdin": if r.TryDecodeAsNil() { x.Stdin = false @@ -43056,22 +45894,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3634) + } // end switch yys3634 + } // end for yyj3634 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43079,16 +45905,48 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj3642 int + var yyb3642 bool + var yyhl3642 bool = l >= 0 + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l + } else { + yyb3642 = r.CheckBreak() + } + if yyb3642 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l + } else { + yyb3642 = r.CheckBreak() + } + if yyb3642 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb11 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb11 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43098,13 +45956,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdin = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb11 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb11 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43114,13 +45972,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdout = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb11 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb11 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43130,13 +45988,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stderr = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb11 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb11 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43146,13 +46004,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.TTY = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb11 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb11 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43162,50 +46020,18 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Container = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb11 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb11 { + if yyb3642 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj3642-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43217,35 +46043,85 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3650 := z.EncBinary() + _ = yym3650 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[6] = x.Kind != "" - yyq2[7] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 6 - for _, b := range yyq2 { + yynn3651 = 6 + for _, b := range yyq3651 { if b { - yynn2++ + yynn3651++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3651) + yynn3651 = 0 } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3651[0] { + yym3653 := z.EncBinary() + _ = yym3653 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3651[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3654 := z.EncBinary() + _ = yym3654 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3651 || yy2arr3651 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3651[1] { + yym3656 := z.EncBinary() + _ = yym3656 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3651[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3657 := z.EncBinary() + _ = yym3657 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym3659 := z.EncBinary() + _ = yym3659 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -43254,17 +46130,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3660 := z.EncBinary() + _ = yym3660 if false { } else { r.EncodeBool(bool(x.Stdin)) } } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3662 := z.EncBinary() + _ = yym3662 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -43273,17 +46149,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3663 := z.EncBinary() + _ = yym3663 if false { } else { r.EncodeBool(bool(x.Stdout)) } } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym3665 := z.EncBinary() + _ = yym3665 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -43292,17 +46168,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3666 := z.EncBinary() + _ = yym3666 if false { } else { r.EncodeBool(bool(x.Stderr)) } } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym3668 := z.EncBinary() + _ = yym3668 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -43311,17 +46187,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3669 := z.EncBinary() + _ = yym3669 if false { } else { r.EncodeBool(bool(x.TTY)) } } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym3671 := z.EncBinary() + _ = yym3671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -43330,20 +46206,20 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym3672 := z.EncBinary() + _ = yym3672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + yym3674 := z.EncBinary() + _ = yym3674 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -43356,65 +46232,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym20 := z.EncBinary() - _ = yym20 + yym3675 := z.EncBinary() + _ = yym3675 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43427,25 +46253,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3676 := z.DecBinary() + _ = yym3676 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3677 := r.ContainerType() + if yyct3677 == codecSelferValueTypeMap1234 { + yyl3677 := r.ReadMapStart() + if yyl3677 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3677, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3677 == codecSelferValueTypeArray1234 { + yyl3677 := r.ReadArrayStart() + if yyl3677 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3677, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43457,12 +46283,12 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -43471,10 +46297,22 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3678Slc = r.DecodeBytes(yys3678Slc, true, true) + yys3678 := string(yys3678Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3678 { + 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 "Stdin": if r.TryDecodeAsNil() { x.Stdin = false @@ -43509,30 +46347,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv9 := &x.Command - yym10 := z.DecBinary() - _ = yym10 + yyv3686 := &x.Command + yym3687 := z.DecBinary() + _ = yym3687 if false { } else { - z.F.DecSliceStringX(yyv9, false, d) + z.F.DecSliceStringX(yyv3686, false, d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3678) + } // end switch yys3678 + } // end for yyj3678 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43540,155 +46366,155 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj3688 int + var yyb3688 bool + var yyhl3688 bool = l >= 0 + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stdin = false + x.Kind = "" } else { - x.Stdin = bool(r.DecodeBool()) + x.Kind = string(r.DecodeString()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stdout = false + x.APIVersion = "" } else { - x.Stdout = bool(r.DecodeBool()) + x.APIVersion = string(r.DecodeString()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stderr = false + x.Stdin = false } else { - x.Stderr = bool(r.DecodeBool()) + x.Stdin = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.TTY = false + x.Stdout = false } else { - x.TTY = bool(r.DecodeBool()) + x.Stdout = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Container = "" + x.Stderr = false } else { - x.Container = string(r.DecodeString()) + x.Stderr = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Command = nil + x.TTY = false } else { - yyv19 := &x.Command - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - z.F.DecSliceStringX(yyv19, false, d) - } + x.TTY = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Container = "" } else { - x.Kind = string(r.DecodeString()) + x.Container = string(r.DecodeString()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Command = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3696 := &x.Command + yym3697 := z.DecBinary() + _ = yym3697 + if false { + } else { + z.F.DecSliceStringX(yyv3696, false, d) + } } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb13 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb13 { + if yyb3688 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-1, "") + z.DecStructFieldNotFound(yyj3688-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43700,55 +46526,36 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3698 := z.EncBinary() + _ = yym3698 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3699 = 1 + for _, b := range yyq3699 { if b { - yynn2++ + yynn3699++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - 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) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } + r.EncodeMapStart(yynn3699) + yynn3699 = 0 } - if yyr2 || yy2arr2 { + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3699[0] { + yym3701 := z.EncBinary() + _ = yym3701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43757,23 +46564,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3699[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3702 := z.EncBinary() + _ = yym3702 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3699[1] { + yym3704 := z.EncBinary() + _ = yym3704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43782,19 +46589,38 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3699[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3705 := z.EncBinary() + _ = yym3705 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3699 || yy2arr3699 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3707 := z.EncBinary() + _ = yym3707 + 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) + yym3708 := z.EncBinary() + _ = yym3708 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43807,25 +46633,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3709 := z.DecBinary() + _ = yym3709 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3710 := r.ContainerType() + if yyct3710 == codecSelferValueTypeMap1234 { + yyl3710 := r.ReadMapStart() + if yyl3710 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3710, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3710 == codecSelferValueTypeArray1234 { + yyl3710 := r.ReadArrayStart() + if yyl3710 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3710, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43837,12 +46663,12 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -43851,16 +46677,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3711Slc = r.DecodeBytes(yys3711Slc, true, true) + yys3711 := string(yys3711Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } + switch yys3711 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43873,10 +46693,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3711) + } // end switch yys3711 + } // end for yyj3711 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43884,32 +46710,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3715 int + var yyb3715 bool + var yyhl3715 bool = l >= 0 + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb7 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb7 { + if yyb3715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43919,13 +46729,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb7 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb7 { + if yyb3715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43935,18 +46745,34 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l + } else { + yyb3715 = r.CheckBreak() + } + if yyb3715 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb7 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb7 { + if yyb3715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3715-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43958,55 +46784,36 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3719 := z.EncBinary() + _ = yym3719 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3720 = 1 + for _, b := range yyq3720 { if b { - yynn2++ + yynn3720++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - 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) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } + r.EncodeMapStart(yynn3720) + yynn3720 = 0 } - if yyr2 || yy2arr2 { + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3720[0] { + yym3722 := z.EncBinary() + _ = yym3722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44015,23 +46822,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3720[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3723 := z.EncBinary() + _ = yym3723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3720[1] { + yym3725 := z.EncBinary() + _ = yym3725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44040,19 +46847,38 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3720[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3726 := z.EncBinary() + _ = yym3726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3720 || yy2arr3720 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3728 := z.EncBinary() + _ = yym3728 + 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) + yym3729 := z.EncBinary() + _ = yym3729 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44065,25 +46891,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3730 := z.DecBinary() + _ = yym3730 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3731 := r.ContainerType() + if yyct3731 == codecSelferValueTypeMap1234 { + yyl3731 := r.ReadMapStart() + if yyl3731 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3731, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3731 == codecSelferValueTypeArray1234 { + yyl3731 := r.ReadArrayStart() + if yyl3731 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3731, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44095,12 +46921,12 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -44109,16 +46935,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3732Slc = r.DecodeBytes(yys3732Slc, true, true) + yys3732 := string(yys3732Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } + switch yys3732 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44131,10 +46951,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3732) + } // end switch yys3732 + } // end for yyj3732 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44142,69 +46968,69 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3736 int + var yyb3736 bool + var yyhl3736 bool = l >= 0 + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb7 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb7 { + if yyb3736 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Path = "" + x.Kind = "" } else { - x.Path = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb7 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb7 { + if yyb3736 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.APIVersion = "" } else { - x.Kind = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb7 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb7 { + if yyb3736 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Path = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Path = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb7 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb7 { + if yyb3736 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3736-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44216,55 +47042,36 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3740 := z.EncBinary() + _ = yym3740 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3741 = 1 + for _, b := range yyq3741 { if b { - yynn2++ + yynn3741++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3741) + yynn3741 = 0 } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - 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) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr2 || yy2arr2 { + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3741[0] { + yym3743 := z.EncBinary() + _ = yym3743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44273,23 +47080,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3741[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3744 := z.EncBinary() + _ = yym3744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3741[1] { + yym3746 := z.EncBinary() + _ = yym3746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44298,19 +47105,38 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3741[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3747 := z.EncBinary() + _ = yym3747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3741 || yy2arr3741 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3749 := z.EncBinary() + _ = yym3749 + 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) + yym3750 := z.EncBinary() + _ = yym3750 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44323,25 +47149,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3751 := z.DecBinary() + _ = yym3751 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3752 := r.ContainerType() + if yyct3752 == codecSelferValueTypeMap1234 { + yyl3752 := r.ReadMapStart() + if yyl3752 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3752, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3752 == codecSelferValueTypeArray1234 { + yyl3752 := r.ReadArrayStart() + if yyl3752 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3752, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44353,12 +47179,12 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -44367,16 +47193,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3753Slc = r.DecodeBytes(yys3753Slc, true, true) + yys3753 := string(yys3753Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } + switch yys3753 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44389,10 +47209,16 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3753) + } // end switch yys3753 + } // end for yyj3753 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44400,69 +47226,69 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3757 int + var yyb3757 bool + var yyhl3757 bool = l >= 0 + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb7 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb7 { + if yyb3757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Path = "" + x.Kind = "" } else { - x.Path = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb7 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb7 { + if yyb3757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.APIVersion = "" } else { - x.Kind = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb7 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb7 { + if yyb3757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Path = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Path = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb7 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb7 { + if yyb3757 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3757-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44474,34 +47300,34 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3761 := z.EncBinary() + _ = yym3761 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[4] = x.Controller != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 4 - for _, b := range yyq2 { + yynn3762 = 4 + for _, b := range yyq3762 { if b { - yynn2++ + yynn3762++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3762) + yynn3762 = 0 } - if yyr2 || yy2arr2 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym3764 := z.EncBinary() + _ = yym3764 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44510,17 +47336,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3765 := z.EncBinary() + _ = yym3765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr2 || yy2arr2 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3767 := z.EncBinary() + _ = yym3767 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44529,17 +47355,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3768 := z.EncBinary() + _ = yym3768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr2 || yy2arr2 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym3770 := z.EncBinary() + _ = yym3770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -44548,17 +47374,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3771 := z.EncBinary() + _ = yym3771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym3773 := z.EncBinary() + _ = yym3773 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -44568,50 +47394,50 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3774 := z.EncBinary() + _ = yym3774 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr2 || yy2arr2 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq3762[4] { if x.Controller == nil { r.EncodeNil() } else { - yy16 := *x.Controller - yym17 := z.EncBinary() - _ = yym17 + yy3776 := *x.Controller + yym3777 := z.EncBinary() + _ = yym3777 if false { } else { - r.EncodeBool(bool(yy16)) + r.EncodeBool(bool(yy3776)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy18 := *x.Controller - yym19 := z.EncBinary() - _ = yym19 + yy3778 := *x.Controller + yym3779 := z.EncBinary() + _ = yym3779 if false { } else { - r.EncodeBool(bool(yy18)) + r.EncodeBool(bool(yy3778)) } } } } - if yyr2 || yy2arr2 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44624,25 +47450,25 @@ func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3780 := z.DecBinary() + _ = yym3780 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3781 := r.ContainerType() + if yyct3781 == codecSelferValueTypeMap1234 { + yyl3781 := r.ReadMapStart() + if yyl3781 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3781, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3781 == codecSelferValueTypeArray1234 { + yyl3781 := r.ReadArrayStart() + if yyl3781 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3781, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44654,12 +47480,12 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -44668,10 +47494,10 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3782Slc = r.DecodeBytes(yys3782Slc, true, true) + yys3782 := string(yys3782Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3782 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -44705,17 +47531,17 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym9 := z.DecBinary() - _ = yym9 + yym3788 := z.DecBinary() + _ = yym3788 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3782) + } // end switch yys3782 + } // end for yyj3782 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44723,16 +47549,16 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3789 int + var yyb3789 bool + var yyhl3789 bool = l >= 0 + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb10 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb10 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44742,13 +47568,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb10 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb10 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44758,13 +47584,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb10 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb10 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44774,13 +47600,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb10 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb10 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44790,13 +47616,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb10 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb10 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44809,25 +47635,25 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym16 := z.DecBinary() - _ = yym16 + yym3795 := z.DecBinary() + _ = yym3795 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb10 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb10 { + if yyb3789 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3789-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44839,41 +47665,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3796 := z.EncBinary() + _ = yym3796 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.Namespace != "" - yyq2[2] = x.Name != "" - yyq2[3] = x.UID != "" - yyq2[4] = x.APIVersion != "" - yyq2[5] = x.ResourceVersion != "" - yyq2[6] = x.FieldPath != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3797 = 0 + for _, b := range yyq3797 { if b { - yynn2++ + yynn3797++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3797) + yynn3797 = 0 } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3797[0] { + yym3799 := z.EncBinary() + _ = yym3799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44882,23 +47708,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3797[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3800 := z.EncBinary() + _ = yym3800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3797[1] { + yym3802 := z.EncBinary() + _ = yym3802 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -44907,23 +47733,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3797[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3803 := z.EncBinary() + _ = yym3803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3797[2] { + yym3805 := z.EncBinary() + _ = yym3805 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -44932,23 +47758,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3797[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3806 := z.EncBinary() + _ = yym3806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3797[3] { + yym3808 := z.EncBinary() + _ = yym3808 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -44958,12 +47784,12 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3797[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3809 := z.EncBinary() + _ = yym3809 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -44971,11 +47797,11 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq3797[4] { + yym3811 := z.EncBinary() + _ = yym3811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44984,23 +47810,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq3797[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym3812 := z.EncBinary() + _ = yym3812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq3797[5] { + yym3814 := z.EncBinary() + _ = yym3814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -45009,23 +47835,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq3797[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym3815 := z.EncBinary() + _ = yym3815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 + if yyq3797[6] { + yym3817 := z.EncBinary() + _ = yym3817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -45034,19 +47860,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq3797[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym3818 := z.EncBinary() + _ = yym3818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr2 || yy2arr2 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45059,25 +47885,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3819 := z.DecBinary() + _ = yym3819 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3820 := r.ContainerType() + if yyct3820 == codecSelferValueTypeMap1234 { + yyl3820 := r.ReadMapStart() + if yyl3820 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3820, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3820 == codecSelferValueTypeArray1234 { + yyl3820 := r.ReadArrayStart() + if yyl3820 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3820, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45089,12 +47915,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -45103,10 +47929,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3821Slc = r.DecodeBytes(yys3821Slc, true, true) + yys3821 := string(yys3821Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3821 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45150,9 +47976,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3821) + } // end switch yys3821 + } // end for yyj3821 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45160,16 +47986,16 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj3829 int + var yyb3829 bool + var yyhl3829 bool = l >= 0 + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45179,13 +48005,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45195,13 +48021,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45211,13 +48037,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45227,13 +48053,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45243,13 +48069,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45259,13 +48085,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45276,17 +48102,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb11 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb11 { + if yyb3829 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj3829-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45298,33 +48124,33 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3837 := z.EncBinary() + _ = yym3837 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3838 = 1 + for _, b := range yyq3838 { if b { - yynn2++ + yynn3838++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3838) + yynn3838 = 0 } - if yyr2 || yy2arr2 { + if yyr3838 || yy2arr3838 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym3840 := z.EncBinary() + _ = yym3840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45333,14 +48159,14 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3841 := z.EncBinary() + _ = yym3841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr3838 || yy2arr3838 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45353,25 +48179,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3842 := z.DecBinary() + _ = yym3842 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3843 := r.ContainerType() + if yyct3843 == codecSelferValueTypeMap1234 { + yyl3843 := r.ReadMapStart() + if yyl3843 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3843, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3843 == codecSelferValueTypeArray1234 { + yyl3843 := r.ReadArrayStart() + if yyl3843 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3843, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45383,12 +48209,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -45397,10 +48223,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3844Slc = r.DecodeBytes(yys3844Slc, true, true) + yys3844 := string(yys3844Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3844 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -45408,9 +48234,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3844) + } // end switch yys3844 + } // end for yyj3844 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45418,16 +48244,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj3846 int + var yyb3846 bool + var yyhl3846 bool = l >= 0 + yyj3846++ + if yyhl3846 { + yyb3846 = yyj3846 > l } else { - yyb5 = r.CheckBreak() + yyb3846 = r.CheckBreak() } - if yyb5 { + if yyb3846 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45438,17 +48264,17 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj3846++ + if yyhl3846 { + yyb3846 = yyj3846 > l } else { - yyb5 = r.CheckBreak() + yyb3846 = r.CheckBreak() } - if yyb5 { + if yyb3846 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj3846-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45460,54 +48286,37 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3848 := z.EncBinary() + _ = yym3848 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3849 = 0 + for _, b := range yyq3849 { if b { - yynn2++ + yynn3849++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3849) + yynn3849 = 0 } - if yyr2 || yy2arr2 { + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.Reference - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reference")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Reference - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym9 := z.EncBinary() - _ = yym9 + if yyq3849[0] { + yym3851 := z.EncBinary() + _ = yym3851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45516,23 +48325,23 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3849[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym3852 := z.EncBinary() + _ = yym3852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3849[1] { + yym3854 := z.EncBinary() + _ = yym3854 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45541,19 +48350,36 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3849[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym3855 := z.EncBinary() + _ = yym3855 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3849 || yy2arr3849 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3849[2] { + yy3857 := &x.Reference + yy3857.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3849[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reference")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3858 := &x.Reference + yy3858.CodecEncodeSelf(e) + } + } + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45566,25 +48392,25 @@ func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3859 := z.DecBinary() + _ = yym3859 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3860 := r.ContainerType() + if yyct3860 == codecSelferValueTypeMap1234 { + yyl3860 := r.ReadMapStart() + if yyl3860 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3860, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3860 == codecSelferValueTypeArray1234 { + yyl3860 := r.ReadArrayStart() + if yyl3860 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3860, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45596,12 +48422,12 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -45610,17 +48436,10 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3861Slc = r.DecodeBytes(yys3861Slc, true, true) + yys3861 := string(yys3861Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "reference": - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv4 := &x.Reference - yyv4.CodecDecodeSelf(d) - } + switch yys3861 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45633,10 +48452,17 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } + case "reference": + if r.TryDecodeAsNil() { + x.Reference = ObjectReference{} + } else { + yyv3864 := &x.Reference + yyv3864.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3861) + } // end switch yys3861 + } // end for yyj3861 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45644,70 +48470,70 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3865 int + var yyb3865 bool + var yyhl3865 bool = l >= 0 + yyj3865++ + if yyhl3865 { + yyb3865 = yyj3865 > l } else { - yyb7 = r.CheckBreak() + yyb3865 = r.CheckBreak() } - if yyb7 { + if yyb3865 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} + x.Kind = "" } else { - yyv8 := &x.Reference - yyv8.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3865++ + if yyhl3865 { + yyb3865 = yyj3865 > l } else { - yyb7 = r.CheckBreak() + yyb3865 = r.CheckBreak() } - if yyb7 { + if yyb3865 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.APIVersion = "" } else { - x.Kind = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3865++ + if yyhl3865 { + yyb3865 = yyj3865 > l } else { - yyb7 = r.CheckBreak() + yyb3865 = r.CheckBreak() } - if yyb7 { + if yyb3865 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Reference = ObjectReference{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3868 := &x.Reference + yyv3868.CodecDecodeSelf(d) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3865++ + if yyhl3865 { + yyb3865 = yyj3865 > l } else { - yyb7 = r.CheckBreak() + yyb3865 = r.CheckBreak() } - if yyb7 { + if yyb3865 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3865-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45719,36 +48545,36 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3869 := z.EncBinary() + _ = yym3869 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Component != "" - yyq2[1] = x.Host != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3870 = 0 + for _, b := range yyq3870 { if b { - yynn2++ + yynn3870++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3870) + yynn3870 = 0 } - if yyr2 || yy2arr2 { + if yyr3870 || yy2arr3870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3870[0] { + yym3872 := z.EncBinary() + _ = yym3872 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) @@ -45757,23 +48583,23 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3870[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3873 := z.EncBinary() + _ = yym3873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } - if yyr2 || yy2arr2 { + if yyr3870 || yy2arr3870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3870[1] { + yym3875 := z.EncBinary() + _ = yym3875 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -45782,19 +48608,19 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3870[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3876 := z.EncBinary() + _ = yym3876 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr2 || yy2arr2 { + if yyr3870 || yy2arr3870 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45807,25 +48633,25 @@ func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3877 := z.DecBinary() + _ = yym3877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3878 := r.ContainerType() + if yyct3878 == codecSelferValueTypeMap1234 { + yyl3878 := r.ReadMapStart() + if yyl3878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3878, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3878 == codecSelferValueTypeArray1234 { + yyl3878 := r.ReadArrayStart() + if yyl3878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3878, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45837,12 +48663,12 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys3879Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3879Slc + var yyhl3879 bool = l >= 0 + for yyj3879 := 0; ; yyj3879++ { + if yyhl3879 { + if yyj3879 >= l { break } } else { @@ -45851,10 +48677,10 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3879Slc = r.DecodeBytes(yys3879Slc, true, true) + yys3879 := string(yys3879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3879 { case "component": if r.TryDecodeAsNil() { x.Component = "" @@ -45868,9 +48694,9 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3879) + } // end switch yys3879 + } // end for yyj3879 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45878,16 +48704,16 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3882 int + var yyb3882 bool + var yyhl3882 bool = l >= 0 + yyj3882++ + if yyhl3882 { + yyb3882 = yyj3882 > l } else { - yyb6 = r.CheckBreak() + yyb3882 = r.CheckBreak() } - if yyb6 { + if yyb3882 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45897,13 +48723,13 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Component = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3882++ + if yyhl3882 { + yyb3882 = yyj3882 > l } else { - yyb6 = r.CheckBreak() + yyb3882 = r.CheckBreak() } - if yyb6 { + if yyb3882 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45914,17 +48740,17 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3882++ + if yyhl3882 { + yyb3882 = yyj3882 > l } else { - yyb6 = r.CheckBreak() + yyb3882 = r.CheckBreak() } - if yyb6 { + if yyb3882 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3882-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45936,79 +48762,129 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3885 := z.EncBinary() + _ = yym3885 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [11]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Reason != "" - yyq2[3] = x.Message != "" - yyq2[4] = true - yyq2[5] = true - yyq2[6] = true - yyq2[7] = x.Count != 0 - yyq2[8] = x.Type != "" - yyq2[9] = x.Kind != "" - yyq2[10] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep3886 := !z.EncBinary() + yy2arr3886 := z.EncBasicHandle().StructToArray + 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(11) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn3886 = 0 + for _, b := range yyq3886 { if b { - yynn2++ + yynn3886++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3886) + yynn3886 = 0 } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq3886[0] { + yym3888 := z.EncBinary() + _ = yym3888 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3886[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3889 := z.EncBinary() + _ = yym3889 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[1] { + yym3891 := z.EncBinary() + _ = yym3891 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3886[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3892 := z.EncBinary() + _ = yym3892 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[2] { + yy3894 := &x.ObjectMeta + yy3894.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq3886[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy3895 := &x.ObjectMeta + yy3895.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.InvolvedObject - yy9.CodecEncodeSelf(e) + if yyq3886[3] { + yy3897 := &x.InvolvedObject + yy3897.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq3886[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.InvolvedObject - yy11.CodecEncodeSelf(e) + yy3898 := &x.InvolvedObject + yy3898.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq3886[4] { + yym3900 := z.EncBinary() + _ = yym3900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -46017,23 +48893,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3886[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym3901 := z.EncBinary() + _ = yym3901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq3886[5] { + yym3903 := z.EncBinary() + _ = yym3903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -46042,114 +48918,114 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3886[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym3904 := z.EncBinary() + _ = yym3904 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy20 := &x.Source - yy20.CodecEncodeSelf(e) + if yyq3886[6] { + yy3906 := &x.Source + yy3906.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq3886[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy22 := &x.Source - yy22.CodecEncodeSelf(e) + yy3907 := &x.Source + yy3907.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yy25 := &x.FirstTimestamp - yym26 := z.EncBinary() - _ = yym26 + if yyq3886[7] { + yy3909 := &x.FirstTimestamp + yym3910 := z.EncBinary() + _ = yym3910 if false { - } else if z.HasExtensions() && z.EncExt(yy25) { - } else if yym26 { - z.EncBinaryMarshal(yy25) - } else if !yym26 && z.IsJSONHandle() { - z.EncJSONMarshal(yy25) + } else if z.HasExtensions() && z.EncExt(yy3909) { + } else if yym3910 { + z.EncBinaryMarshal(yy3909) + } else if !yym3910 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3909) } else { - z.EncFallback(yy25) + z.EncFallback(yy3909) } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq3886[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy27 := &x.FirstTimestamp - yym28 := z.EncBinary() - _ = yym28 + yy3911 := &x.FirstTimestamp + yym3912 := z.EncBinary() + _ = yym3912 if false { - } else if z.HasExtensions() && z.EncExt(yy27) { - } else if yym28 { - z.EncBinaryMarshal(yy27) - } else if !yym28 && z.IsJSONHandle() { - z.EncJSONMarshal(yy27) + } else if z.HasExtensions() && z.EncExt(yy3911) { + } else if yym3912 { + z.EncBinaryMarshal(yy3911) + } else if !yym3912 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3911) } else { - z.EncFallback(yy27) + z.EncFallback(yy3911) } } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yy30 := &x.LastTimestamp - yym31 := z.EncBinary() - _ = yym31 + if yyq3886[8] { + yy3914 := &x.LastTimestamp + yym3915 := z.EncBinary() + _ = yym3915 if false { - } else if z.HasExtensions() && z.EncExt(yy30) { - } else if yym31 { - z.EncBinaryMarshal(yy30) - } else if !yym31 && z.IsJSONHandle() { - z.EncJSONMarshal(yy30) + } else if z.HasExtensions() && z.EncExt(yy3914) { + } else if yym3915 { + z.EncBinaryMarshal(yy3914) + } else if !yym3915 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3914) } else { - z.EncFallback(yy30) + z.EncFallback(yy3914) } } else { r.EncodeNil() } } else { - if yyq2[6] { + if yyq3886[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy32 := &x.LastTimestamp - yym33 := z.EncBinary() - _ = yym33 + yy3916 := &x.LastTimestamp + yym3917 := z.EncBinary() + _ = yym3917 if false { - } else if z.HasExtensions() && z.EncExt(yy32) { - } else if yym33 { - z.EncBinaryMarshal(yy32) - } else if !yym33 && z.IsJSONHandle() { - z.EncJSONMarshal(yy32) + } else if z.HasExtensions() && z.EncExt(yy3916) { + } else if yym3917 { + z.EncBinaryMarshal(yy3916) + } else if !yym3917 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3916) } else { - z.EncFallback(yy32) + z.EncFallback(yy3916) } } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym35 := z.EncBinary() - _ = yym35 + if yyq3886[9] { + yym3919 := z.EncBinary() + _ = yym3919 if false { } else { r.EncodeInt(int64(x.Count)) @@ -46158,23 +49034,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[7] { + if yyq3886[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 + yym3920 := z.EncBinary() + _ = yym3920 if false { } else { r.EncodeInt(int64(x.Count)) } } } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym38 := z.EncBinary() - _ = yym38 + if yyq3886[10] { + yym3922 := z.EncBinary() + _ = yym3922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -46183,69 +49059,19 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[8] { + if yyq3886[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym39 := z.EncBinary() - _ = yym39 + yym3923 := z.EncBinary() + _ = yym3923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46258,25 +49084,25 @@ func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3924 := z.DecBinary() + _ = yym3924 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3925 := r.ContainerType() + if yyct3925 == codecSelferValueTypeMap1234 { + yyl3925 := r.ReadMapStart() + if yyl3925 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3925, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3925 == codecSelferValueTypeArray1234 { + yyl3925 := r.ReadArrayStart() + if yyl3925 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3925, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46288,12 +49114,12 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -46302,23 +49128,35 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3926Slc = r.DecodeBytes(yys3926Slc, true, true) + yys3926 := string(yys3926Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3926 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv3929 := &x.ObjectMeta + yyv3929.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv5 := &x.InvolvedObject - yyv5.CodecDecodeSelf(d) + yyv3930 := &x.InvolvedObject + yyv3930.CodecDecodeSelf(d) } case "reason": if r.TryDecodeAsNil() { @@ -46336,41 +49174,41 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv8 := &x.Source - yyv8.CodecDecodeSelf(d) + yyv3933 := &x.Source + yyv3933.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv9 := &x.FirstTimestamp - yym10 := z.DecBinary() - _ = yym10 + yyv3934 := &x.FirstTimestamp + yym3935 := z.DecBinary() + _ = yym3935 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if yym10 { - z.DecBinaryUnmarshal(yyv9) - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv3934) { + } else if yym3935 { + z.DecBinaryUnmarshal(yyv3934) + } else if !yym3935 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3934) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv3934, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv11 := &x.LastTimestamp - yym12 := z.DecBinary() - _ = yym12 + yyv3936 := &x.LastTimestamp + yym3937 := z.DecBinary() + _ = yym3937 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if yym12 { - z.DecBinaryUnmarshal(yyv11) - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv3936) { + } else if yym3937 { + z.DecBinaryUnmarshal(yyv3936) + } else if !yym3937 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3936) } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv3936, false) } } case "count": @@ -46385,22 +49223,10 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3926) + } // end switch yys3926 + } // end for yyj3926 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46408,16 +49234,48 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj17 int - var yyb17 bool - var yyhl17 bool = l >= 0 - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + var yyj3940 int + var yyb3940 bool + var yyhl3940 bool = l >= 0 + 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.Kind = "" + } else { + x.Kind = 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46425,16 +49283,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv18 := &x.ObjectMeta - yyv18.CodecDecodeSelf(d) + yyv3943 := &x.ObjectMeta + yyv3943.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46442,16 +49300,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv19 := &x.InvolvedObject - yyv19.CodecDecodeSelf(d) + yyv3944 := &x.InvolvedObject + yyv3944.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46461,13 +49319,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46477,13 +49335,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46491,16 +49349,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv22 := &x.Source - yyv22.CodecDecodeSelf(d) + yyv3947 := &x.Source + yyv3947.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46508,26 +49366,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv23 := &x.FirstTimestamp - yym24 := z.DecBinary() - _ = yym24 + yyv3948 := &x.FirstTimestamp + yym3949 := z.DecBinary() + _ = yym3949 if false { - } else if z.HasExtensions() && z.DecExt(yyv23) { - } else if yym24 { - z.DecBinaryUnmarshal(yyv23) - } else if !yym24 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv23) + } else if z.HasExtensions() && z.DecExt(yyv3948) { + } else if yym3949 { + z.DecBinaryUnmarshal(yyv3948) + } else if !yym3949 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3948) } else { - z.DecFallback(yyv23, false) + z.DecFallback(yyv3948, false) } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46535,26 +49393,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv25 := &x.LastTimestamp - yym26 := z.DecBinary() - _ = yym26 + yyv3950 := &x.LastTimestamp + yym3951 := z.DecBinary() + _ = yym3951 if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else if yym26 { - z.DecBinaryUnmarshal(yyv25) - } else if !yym26 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv25) + } else if z.HasExtensions() && z.DecExt(yyv3950) { + } else if yym3951 { + z.DecBinaryUnmarshal(yyv3950) + } else if !yym3951 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3950) } else { - z.DecFallback(yyv25, false) + z.DecFallback(yyv3950, false) } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46564,13 +49422,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Count = int32(r.DecodeInt(32)) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46580,50 +49438,18 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb17 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb17 { + if yyb3940 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj17-1, "") + z.DecStructFieldNotFound(yyj3940-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46635,139 +49461,139 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3954 := z.EncBinary() + _ = yym3954 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3955 = 1 + for _, b := range yyq3955 { if b { - yynn2++ + yynn3955++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3955) + yynn3955 = 0 } - if yyr2 || yy2arr2 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3955[0] { + yym3957 := z.EncBinary() + _ = yym3957 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3955[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3958 := z.EncBinary() + _ = yym3958 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3955[1] { + yym3960 := z.EncBinary() + _ = yym3960 if false { } else { - h.encSliceEvent(([]Event)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3955[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3961 := z.EncBinary() + _ = yym3961 if false { } else { - h.encSliceEvent(([]Event)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3955[2] { + yy3963 := &x.ListMeta + yym3964 := z.EncBinary() + _ = yym3964 if false { + } else if z.HasExtensions() && z.EncExt(yy3963) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3963) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3955[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3965 := &x.ListMeta + yym3966 := z.EncBinary() + _ = yym3966 if false { + } else if z.HasExtensions() && z.EncExt(yy3965) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3965) } } } - if yyr2 || yy2arr2 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3968 := z.EncBinary() + _ = yym3968 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEvent(([]Event)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3969 := z.EncBinary() + _ = yym3969 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46780,25 +49606,25 @@ func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3970 := z.DecBinary() + _ = yym3970 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3971 := r.ContainerType() + if yyct3971 == codecSelferValueTypeMap1234 { + yyl3971 := r.ReadMapStart() + if yyl3971 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3971, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3971 == codecSelferValueTypeArray1234 { + yyl3971 := r.ReadArrayStart() + if yyl3971 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3971, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46810,12 +49636,12 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -46824,51 +49650,51 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3972Slc = r.DecodeBytes(yys3972Slc, true, true) + yys3972 := string(yys3972Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3972 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3975 := &x.ListMeta + yym3976 := z.DecBinary() + _ = yym3976 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3975) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3975, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3977 := &x.Items + yym3978 := z.DecBinary() + _ = yym3978 if false { } else { - h.decSliceEvent((*[]Event)(yyv6), d) + h.decSliceEvent((*[]Event)(yyv3977), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3972) + } // end switch yys3972 + } // end for yyj3972 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46876,98 +49702,98 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3979 int + var yyb3979 bool + var yyhl3979 bool = l >= 0 + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb10 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb10 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb10 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb10 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb10 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb10 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3982 := &x.ListMeta + yym3983 := z.DecBinary() + _ = yym3983 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3982) { + } else { + z.DecFallback(yyv3982, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb10 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb10 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3984 := &x.Items + yym3985 := z.DecBinary() + _ = yym3985 + if false { + } else { + h.decSliceEvent((*[]Event)(yyv3984), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb10 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb10 { + if yyb3979 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3979-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46979,139 +49805,139 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3986 := z.EncBinary() + _ = yym3986 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3987 = 1 + for _, b := range yyq3987 { if b { - yynn2++ + yynn3987++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3987) + yynn3987 = 0 } - if yyr2 || yy2arr2 { + if yyr3987 || yy2arr3987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3987[0] { + yym3989 := z.EncBinary() + _ = yym3989 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3987[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3990 := z.EncBinary() + _ = yym3990 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3987 || yy2arr3987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3987[1] { + yym3992 := z.EncBinary() + _ = yym3992 if false { } else { - h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3987[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3993 := z.EncBinary() + _ = yym3993 if false { } else { - h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3987 || yy2arr3987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3987[2] { + yy3995 := &x.ListMeta + yym3996 := z.EncBinary() + _ = yym3996 if false { + } else if z.HasExtensions() && z.EncExt(yy3995) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3995) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3987[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3997 := &x.ListMeta + yym3998 := z.EncBinary() + _ = yym3998 if false { + } else if z.HasExtensions() && z.EncExt(yy3997) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3997) } } } - if yyr2 || yy2arr2 { + if yyr3987 || yy2arr3987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4000 := z.EncBinary() + _ = yym4000 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3987 || yy2arr3987 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47124,25 +49950,25 @@ func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4002 := z.DecBinary() + _ = yym4002 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4003 := r.ContainerType() + if yyct4003 == codecSelferValueTypeMap1234 { + yyl4003 := r.ReadMapStart() + if yyl4003 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4003, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4003 == codecSelferValueTypeArray1234 { + yyl4003 := r.ReadArrayStart() + if yyl4003 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4003, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47154,12 +49980,12 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -47168,51 +49994,51 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4004Slc = r.DecodeBytes(yys4004Slc, true, true) + yys4004 := string(yys4004Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4007 := &x.ListMeta + yym4008 := z.DecBinary() + _ = yym4008 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4007) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4007, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4009 := &x.Items + yym4010 := z.DecBinary() + _ = yym4010 if false { } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv6), d) + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4009), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4004) + } // end switch yys4004 + } // end for yyj4004 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47220,98 +50046,98 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4011 int + var yyb4011 bool + var yyhl4011 bool = l >= 0 + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l } else { - yyb10 = r.CheckBreak() + yyb4011 = r.CheckBreak() } - if yyb10 { + if yyb4011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l } else { - yyb10 = r.CheckBreak() + yyb4011 = r.CheckBreak() } - if yyb10 { + if yyb4011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l } else { - yyb10 = r.CheckBreak() + yyb4011 = r.CheckBreak() } - if yyb10 { + if yyb4011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4014 := &x.ListMeta + yym4015 := z.DecBinary() + _ = yym4015 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4014) { + } else { + z.DecFallback(yyv4014, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l } else { - yyb10 = r.CheckBreak() + yyb4011 = r.CheckBreak() } - if yyb10 { + if yyb4011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4016 := &x.Items + yym4017 := z.DecBinary() + _ = yym4017 + if false { + } else { + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4016), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l } else { - yyb10 = r.CheckBreak() + yyb4011 = r.CheckBreak() } - if yyb10 { + if yyb4011 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4011-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47320,8 +50146,8 @@ func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4018 := z.EncBinary() + _ = yym4018 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -47333,8 +50159,8 @@ func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4019 := z.DecBinary() + _ = yym4019 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -47349,53 +50175,53 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4020 := z.EncBinary() + _ = yym4020 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Type != "" - yyq2[1] = len(x.Max) != 0 - yyq2[2] = len(x.Min) != 0 - yyq2[3] = len(x.Default) != 0 - yyq2[4] = len(x.DefaultRequest) != 0 - yyq2[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4021 = 0 + for _, b := range yyq4021 { if b { - yynn2++ + yynn4021++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4021) + yynn4021 = 0 } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4021[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4021[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4021[1] { if x.Max == nil { r.EncodeNil() } else { @@ -47405,7 +50231,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq4021[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47416,9 +50242,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq4021[2] { if x.Min == nil { r.EncodeNil() } else { @@ -47428,7 +50254,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4021[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47439,9 +50265,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq4021[3] { if x.Default == nil { r.EncodeNil() } else { @@ -47451,7 +50277,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq4021[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("default")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47462,9 +50288,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq4021[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { @@ -47474,7 +50300,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[4] { + if yyq4021[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47485,9 +50311,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq4021[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { @@ -47497,7 +50323,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[5] { + if yyq4021[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47508,7 +50334,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4021 || yy2arr4021 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47521,25 +50347,25 @@ func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4028 := z.DecBinary() + _ = yym4028 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4029 := r.ContainerType() + if yyct4029 == codecSelferValueTypeMap1234 { + yyl4029 := r.ReadMapStart() + if yyl4029 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4029, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4029 == codecSelferValueTypeArray1234 { + yyl4029 := r.ReadArrayStart() + if yyl4029 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4029, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47551,12 +50377,12 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -47565,10 +50391,10 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4030Slc = r.DecodeBytes(yys4030Slc, true, true) + yys4030 := string(yys4030Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4030 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -47579,41 +50405,41 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv5 := &x.Max - yyv5.CodecDecodeSelf(d) + yyv4032 := &x.Max + yyv4032.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { - yyv6 := &x.Min - yyv6.CodecDecodeSelf(d) + yyv4033 := &x.Min + yyv4033.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { - yyv7 := &x.Default - yyv7.CodecDecodeSelf(d) + yyv4034 := &x.Default + yyv4034.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv8 := &x.DefaultRequest - yyv8.CodecDecodeSelf(d) + yyv4035 := &x.DefaultRequest + yyv4035.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv9 := &x.MaxLimitRequestRatio - yyv9.CodecDecodeSelf(d) + yyv4036 := &x.MaxLimitRequestRatio + yyv4036.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4030) + } // end switch yys4030 + } // end for yyj4030 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47621,16 +50447,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4037 int + var yyb4037 bool + var yyhl4037 bool = l >= 0 + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47640,13 +50466,13 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = LimitType(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47654,16 +50480,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv12 := &x.Max - yyv12.CodecDecodeSelf(d) + yyv4039 := &x.Max + yyv4039.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47671,16 +50497,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Min = nil } else { - yyv13 := &x.Min - yyv13.CodecDecodeSelf(d) + yyv4040 := &x.Min + yyv4040.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47688,16 +50514,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Default = nil } else { - yyv14 := &x.Default - yyv14.CodecDecodeSelf(d) + yyv4041 := &x.Default + yyv4041.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47705,16 +50531,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv15 := &x.DefaultRequest - yyv15.CodecDecodeSelf(d) + yyv4042 := &x.DefaultRequest + yyv4042.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47722,21 +50548,21 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv16 := &x.MaxLimitRequestRatio - yyv16.CodecDecodeSelf(d) + yyv4043 := &x.MaxLimitRequestRatio + yyv4043.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l } else { - yyb10 = r.CheckBreak() + yyb4037 = r.CheckBreak() } - if yyb10 { + if yyb4037 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4037-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47748,36 +50574,36 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4044 := z.EncBinary() + _ = yym4044 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4045 = 1 + for _, b := range yyq4045 { if b { - yynn2++ + yynn4045++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4045) + yynn4045 = 0 } - if yyr2 || yy2arr2 { + if yyr4045 || yy2arr4045 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym4047 := z.EncBinary() + _ = yym4047 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) @@ -47790,15 +50616,15 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Limits == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym4048 := z.EncBinary() + _ = yym4048 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } - if yyr2 || yy2arr2 { + if yyr4045 || yy2arr4045 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47811,25 +50637,25 @@ func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4049 := z.DecBinary() + _ = yym4049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4050 := r.ContainerType() + if yyct4050 == codecSelferValueTypeMap1234 { + yyl4050 := r.ReadMapStart() + if yyl4050 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4050, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4050 == codecSelferValueTypeArray1234 { + yyl4050 := r.ReadArrayStart() + if yyl4050 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4050, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47841,12 +50667,12 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -47855,26 +50681,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4051Slc = r.DecodeBytes(yys4051Slc, true, true) + yys4051 := string(yys4051Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4051 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4 := &x.Limits - yym5 := z.DecBinary() - _ = yym5 + yyv4052 := &x.Limits + yym4053 := z.DecBinary() + _ = yym4053 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4052), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4051) + } // end switch yys4051 + } // end for yyj4051 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47882,16 +50708,16 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj4054 int + var yyb4054 bool + var yyhl4054 bool = l >= 0 + yyj4054++ + if yyhl4054 { + yyb4054 = yyj4054 > l } else { - yyb6 = r.CheckBreak() + yyb4054 = r.CheckBreak() } - if yyb6 { + if yyb4054 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47899,26 +50725,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv7 := &x.Limits - yym8 := z.DecBinary() - _ = yym8 + yyv4055 := &x.Limits + yym4056 := z.DecBinary() + _ = yym4056 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv7), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4055), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj4054++ + if yyhl4054 { + yyb4054 = yyj4054 > l } else { - yyb6 = r.CheckBreak() + yyb4054 = r.CheckBreak() } - if yyb6 { + if yyb4054 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj4054-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47930,72 +50756,38 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4057 := z.EncBinary() + _ = yym4057 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4058 = 0 + for _, b := range yyq4058 { if b { - yynn2++ + yynn4058++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn4058) + yynn4058 = 0 } - if yyr2 || yy2arr2 { + if yyr4058 || yy2arr4058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq4058[0] { + yym4060 := z.EncBinary() + _ = yym4060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48004,23 +50796,23 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq4058[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym4061 := z.EncBinary() + _ = yym4061 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4058 || yy2arr4058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq4058[1] { + yym4063 := z.EncBinary() + _ = yym4063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48029,19 +50821,53 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq4058[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym4064 := z.EncBinary() + _ = yym4064 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + 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) @@ -48054,25 +50880,25 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4071 := z.DecBinary() + _ = yym4071 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4072 := r.ContainerType() + if yyct4072 == codecSelferValueTypeMap1234 { + yyl4072 := r.ReadMapStart() + if yyl4072 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4072, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4072 == codecSelferValueTypeArray1234 { + yyl4072 := r.ReadArrayStart() + if yyl4072 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4072, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48084,12 +50910,12 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -48098,24 +50924,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4073Slc = r.DecodeBytes(yys4073Slc, true, true) + yys4073 := string(yys4073Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} - } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) - } + switch yys4073 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48128,10 +50940,24 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4073) + } // end switch yys4073 + } // end for yyj4073 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48139,87 +50965,87 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj4078 int + var yyb4078 bool + var yyhl4078 bool = l >= 0 + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l } else { - yyb8 = r.CheckBreak() + yyb4078 = r.CheckBreak() } - if yyb8 { + if yyb4078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l } else { - yyb8 = r.CheckBreak() + yyb4078 = r.CheckBreak() } - if yyb8 { + if yyb4078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} + x.APIVersion = "" } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l } else { - yyb8 = r.CheckBreak() + yyb4078 = r.CheckBreak() } - if yyb8 { + if yyb4078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4081 := &x.ObjectMeta + yyv4081.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l } else { - yyb8 = r.CheckBreak() + yyb4078 = r.CheckBreak() } - if yyb8 { + if yyb4078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = LimitRangeSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv4082 := &x.Spec + yyv4082.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l } else { - yyb8 = r.CheckBreak() + yyb4078 = r.CheckBreak() } - if yyb8 { + if yyb4078 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj4078-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48231,139 +51057,139 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4083 := z.EncBinary() + _ = yym4083 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4084 = 1 + for _, b := range yyq4084 { if b { - yynn2++ + yynn4084++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4084) + yynn4084 = 0 } - if yyr2 || yy2arr2 { + if yyr4084 || yy2arr4084 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4084[0] { + yym4086 := z.EncBinary() + _ = yym4086 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4084[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4087 := z.EncBinary() + _ = yym4087 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4084 || yy2arr4084 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4084[1] { + yym4089 := z.EncBinary() + _ = yym4089 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4084[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4090 := z.EncBinary() + _ = yym4090 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4084 || yy2arr4084 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4084[2] { + yy4092 := &x.ListMeta + yym4093 := z.EncBinary() + _ = yym4093 if false { + } else if z.HasExtensions() && z.EncExt(yy4092) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4092) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4084[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4094 := &x.ListMeta + yym4095 := z.EncBinary() + _ = yym4095 if false { + } else if z.HasExtensions() && z.EncExt(yy4094) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4094) } } } - if yyr2 || yy2arr2 { + if yyr4084 || yy2arr4084 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4097 := z.EncBinary() + _ = yym4097 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceLimitRange(([]LimitRange)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4084 || yy2arr4084 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48376,25 +51202,25 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4099 := z.DecBinary() + _ = yym4099 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4100 := r.ContainerType() + if yyct4100 == codecSelferValueTypeMap1234 { + yyl4100 := r.ReadMapStart() + if yyl4100 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4100, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4100 == codecSelferValueTypeArray1234 { + yyl4100 := r.ReadArrayStart() + if yyl4100 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4100, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48406,12 +51232,12 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -48420,51 +51246,51 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4101Slc = r.DecodeBytes(yys4101Slc, true, true) + yys4101 := string(yys4101Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4104 := &x.ListMeta + yym4105 := z.DecBinary() + _ = yym4105 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4104) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4104, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4106 := &x.Items + yym4107 := z.DecBinary() + _ = yym4107 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv6), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4106), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4101) + } // end switch yys4101 + } // end for yyj4101 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48472,98 +51298,98 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4108 int + var yyb4108 bool + var yyhl4108 bool = l >= 0 + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l } else { - yyb10 = r.CheckBreak() + yyb4108 = r.CheckBreak() } - if yyb10 { + if yyb4108 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l } else { - yyb10 = r.CheckBreak() + yyb4108 = r.CheckBreak() } - if yyb10 { + if yyb4108 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceLimitRange((*[]LimitRange)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l } else { - yyb10 = r.CheckBreak() + yyb4108 = r.CheckBreak() } - if yyb10 { + if yyb4108 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4111 := &x.ListMeta + yym4112 := z.DecBinary() + _ = yym4112 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4111) { + } else { + z.DecFallback(yyv4111, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l } else { - yyb10 = r.CheckBreak() + yyb4108 = r.CheckBreak() } - if yyb10 { + if yyb4108 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4113 := &x.Items + yym4114 := z.DecBinary() + _ = yym4114 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv4113), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l } else { - yyb10 = r.CheckBreak() + yyb4108 = r.CheckBreak() } - if yyb10 { + if yyb4108 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4108-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48572,8 +51398,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4115 := z.EncBinary() + _ = yym4115 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -48585,8 +51411,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4116 := z.DecBinary() + _ = yym4116 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -48601,34 +51427,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4117 := z.EncBinary() + _ = yym4117 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Hard) != 0 - yyq2[1] = len(x.Scopes) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4118 = 0 + for _, b := range yyq4118 { if b { - yynn2++ + yynn4118++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4118) + yynn4118 = 0 } - if yyr2 || yy2arr2 { + if yyr4118 || yy2arr4118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4118[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -48638,7 +51464,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4118[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -48649,14 +51475,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4118 || yy2arr4118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4118[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym4121 := z.EncBinary() + _ = yym4121 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -48666,15 +51492,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym4122 := z.EncBinary() + _ = yym4122 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -48682,7 +51508,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4118 || yy2arr4118 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48695,25 +51521,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4123 := z.DecBinary() + _ = yym4123 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4124 := r.ContainerType() + if yyct4124 == codecSelferValueTypeMap1234 { + yyl4124 := r.ReadMapStart() + if yyl4124 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4124, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4124 == codecSelferValueTypeArray1234 { + yyl4124 := r.ReadArrayStart() + if yyl4124 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4124, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48725,12 +51551,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -48739,33 +51565,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4125Slc = r.DecodeBytes(yys4125Slc, true, true) + yys4125 := string(yys4125Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4125 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4 := &x.Hard - yyv4.CodecDecodeSelf(d) + yyv4126 := &x.Hard + yyv4126.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv5 := &x.Scopes - yym6 := z.DecBinary() - _ = yym6 + yyv4127 := &x.Scopes + yym4128 := z.DecBinary() + _ = yym4128 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv5), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4127), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4125) + } // end switch yys4125 + } // end for yyj4125 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48773,16 +51599,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj4129 int + var yyb4129 bool + var yyhl4129 bool = l >= 0 + yyj4129++ + if yyhl4129 { + yyb4129 = yyj4129 > l } else { - yyb7 = r.CheckBreak() + yyb4129 = r.CheckBreak() } - if yyb7 { + if yyb4129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48790,16 +51616,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv8 := &x.Hard - yyv8.CodecDecodeSelf(d) + yyv4130 := &x.Hard + yyv4130.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4129++ + if yyhl4129 { + yyb4129 = yyj4129 > l } else { - yyb7 = r.CheckBreak() + yyb4129 = r.CheckBreak() } - if yyb7 { + if yyb4129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48807,26 +51633,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv9 := &x.Scopes - yym10 := z.DecBinary() - _ = yym10 + yyv4131 := &x.Scopes + yym4132 := z.DecBinary() + _ = yym4132 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv9), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4131), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4129++ + if yyhl4129 { + yyb4129 = yyj4129 > l } else { - yyb7 = r.CheckBreak() + yyb4129 = r.CheckBreak() } - if yyb7 { + if yyb4129 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj4129-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48838,34 +51664,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4133 := z.EncBinary() + _ = yym4133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Hard) != 0 - yyq2[1] = len(x.Used) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4134 = 0 + for _, b := range yyq4134 { if b { - yynn2++ + yynn4134++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4134) + yynn4134 = 0 } - if yyr2 || yy2arr2 { + if yyr4134 || yy2arr4134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4134[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -48875,7 +51701,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -48886,9 +51712,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4134 || yy2arr4134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4134[1] { if x.Used == nil { r.EncodeNil() } else { @@ -48898,7 +51724,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq4134[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -48909,7 +51735,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4134 || yy2arr4134 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48922,25 +51748,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4137 := z.DecBinary() + _ = yym4137 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4138 := r.ContainerType() + if yyct4138 == codecSelferValueTypeMap1234 { + yyl4138 := r.ReadMapStart() + if yyl4138 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4138, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4138 == codecSelferValueTypeArray1234 { + yyl4138 := r.ReadArrayStart() + if yyl4138 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4138, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48952,12 +51778,12 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -48966,28 +51792,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4139Slc = r.DecodeBytes(yys4139Slc, true, true) + yys4139 := string(yys4139Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4139 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4 := &x.Hard - yyv4.CodecDecodeSelf(d) + yyv4140 := &x.Hard + yyv4140.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv5 := &x.Used - yyv5.CodecDecodeSelf(d) + yyv4141 := &x.Used + yyv4141.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4139) + } // end switch yys4139 + } // end for yyj4139 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48995,16 +51821,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj4142 int + var yyb4142 bool + var yyhl4142 bool = l >= 0 + yyj4142++ + if yyhl4142 { + yyb4142 = yyj4142 > l } else { - yyb6 = r.CheckBreak() + yyb4142 = r.CheckBreak() } - if yyb6 { + if yyb4142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49012,16 +51838,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv7 := &x.Hard - yyv7.CodecDecodeSelf(d) + yyv4143 := &x.Hard + yyv4143.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj4142++ + if yyhl4142 { + yyb4142 = yyj4142 > l } else { - yyb6 = r.CheckBreak() + yyb4142 = r.CheckBreak() } - if yyb6 { + if yyb4142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49029,21 +51855,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv8 := &x.Used - yyv8.CodecDecodeSelf(d) + yyv4144 := &x.Used + yyv4144.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj4142++ + if yyhl4142 { + yyb4142 = yyj4142 > l } else { - yyb6 = r.CheckBreak() + yyb4142 = r.CheckBreak() } - if yyb6 { + if yyb4142 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj4142-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49055,136 +51881,136 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4145 := z.EncBinary() + _ = yym4145 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4146 = 0 + for _, b := range yyq4146 { if b { - yynn2++ + yynn4146++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4146) + yynn4146 = 0 } - if yyr2 || yy2arr2 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4146[0] { + yym4148 := z.EncBinary() + _ = yym4148 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4146[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4149 := z.EncBinary() + _ = yym4149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq4146[1] { + yym4151 := z.EncBinary() + _ = yym4151 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4146[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym4152 := z.EncBinary() + _ = yym4152 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq4146[2] { + yy4154 := &x.ObjectMeta + yy4154.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4146[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy4155 := &x.ObjectMeta + yy4155.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq4146[3] { + yy4157 := &x.Spec + yy4157.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4146[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy4158 := &x.Spec + yy4158.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq4146[4] { + yy4160 := &x.Status + yy4160.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq4146[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy4161 := &x.Status + yy4161.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49197,25 +52023,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4162 := z.DecBinary() + _ = yym4162 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4163 := r.ContainerType() + if yyct4163 == codecSelferValueTypeMap1234 { + yyl4163 := r.ReadMapStart() + if yyl4163 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4163, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4163 == codecSelferValueTypeArray1234 { + yyl4163 := r.ReadArrayStart() + if yyl4163 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4163, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49227,12 +52053,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -49241,47 +52067,47 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4164Slc = r.DecodeBytes(yys4164Slc, true, true) + yys4164 := string(yys4164Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys4164 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ResourceQuotaSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ResourceQuotaStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv4167 := &x.ObjectMeta + yyv4167.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ResourceQuotaSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv4168 := &x.Spec + yyv4168.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ResourceQuotaStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv4169 := &x.Status + yyv4169.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4164) + } // end switch yys4164 + } // end for yyj4164 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49289,104 +52115,104 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj4170 int + var yyb4170 bool + var yyhl4170 bool = l >= 0 + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb9 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb9 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb9 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb9 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ResourceQuotaSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb9 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb9 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ResourceQuotaStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv4173 := &x.ObjectMeta + yyv4173.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb9 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb9 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ResourceQuotaSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv4174 := &x.Spec + yyv4174.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb9 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb9 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ResourceQuotaStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv4175 := &x.Status + yyv4175.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb9 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb9 { + if yyb4170 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj4170-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49398,139 +52224,139 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4176 := z.EncBinary() + _ = yym4176 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4177 = 1 + for _, b := range yyq4177 { if b { - yynn2++ + yynn4177++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4177) + yynn4177 = 0 } - if yyr2 || yy2arr2 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4177[0] { + yym4179 := z.EncBinary() + _ = yym4179 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4177[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4180 := z.EncBinary() + _ = yym4180 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4177[1] { + yym4182 := z.EncBinary() + _ = yym4182 if false { } else { - h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4177[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4183 := z.EncBinary() + _ = yym4183 if false { } else { - h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4177[2] { + yy4185 := &x.ListMeta + yym4186 := z.EncBinary() + _ = yym4186 if false { + } else if z.HasExtensions() && z.EncExt(yy4185) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4185) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4177[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4187 := &x.ListMeta + yym4188 := z.EncBinary() + _ = yym4188 if false { + } else if z.HasExtensions() && z.EncExt(yy4187) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4187) } } } - if yyr2 || yy2arr2 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4190 := z.EncBinary() + _ = yym4190 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4191 := z.EncBinary() + _ = yym4191 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49543,25 +52369,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4192 := z.DecBinary() + _ = yym4192 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4193 := r.ContainerType() + if yyct4193 == codecSelferValueTypeMap1234 { + yyl4193 := r.ReadMapStart() + if yyl4193 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4193, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4193 == codecSelferValueTypeArray1234 { + yyl4193 := r.ReadArrayStart() + if yyl4193 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4193, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49573,12 +52399,12 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -49587,51 +52413,51 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4194Slc = r.DecodeBytes(yys4194Slc, true, true) + yys4194 := string(yys4194Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4194 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4197 := &x.ListMeta + yym4198 := z.DecBinary() + _ = yym4198 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4197) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4197, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4199 := &x.Items + yym4200 := z.DecBinary() + _ = yym4200 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv6), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4199), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4194) + } // end switch yys4194 + } // end for yyj4194 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49639,98 +52465,98 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4201 int + var yyb4201 bool + var yyhl4201 bool = l >= 0 + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb10 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb10 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb10 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb10 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb10 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb10 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4204 := &x.ListMeta + yym4205 := z.DecBinary() + _ = yym4205 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4204) { + } else { + z.DecFallback(yyv4204, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb10 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb10 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4206 := &x.Items + yym4207 := z.DecBinary() + _ = yym4207 + if false { + } else { + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4206), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb10 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb10 { + if yyb4201 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4201-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49742,150 +52568,150 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4208 := z.EncBinary() + _ = yym4208 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] = true - yyq2[1] = len(x.Data) != 0 - yyq2[2] = x.Type != "" - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4209 = 0 + for _, b := range yyq4209 { if b { - yynn2++ + yynn4209++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4209) + yynn4209 = 0 } - if yyr2 || yy2arr2 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4209[0] { + yym4211 := z.EncBinary() + _ = yym4211 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4209[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4212 := z.EncBinary() + _ = yym4212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Data == nil { - r.EncodeNil() + if yyq4209[1] { + yym4214 := z.EncBinary() + _ = yym4214 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4209[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() + yym4215 := z.EncBinary() + _ = yym4215 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - x.Type.CodecEncodeSelf(e) + if yyq4209[2] { + yy4217 := &x.ObjectMeta + yy4217.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4209[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) + yy4218 := &x.ObjectMeta + yy4218.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq4209[3] { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + yym4220 := z.EncBinary() + _ = yym4220 + if false { + } else { + h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4209[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + yym4221 := z.EncBinary() + _ = yym4221 + if false { + } else { + h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) + } } } } - if yyr2 || yy2arr2 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq4209[4] { + x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq4209[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49898,25 +52724,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4223 := z.DecBinary() + _ = yym4223 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4224 := r.ContainerType() + if yyct4224 == codecSelferValueTypeMap1234 { + yyl4224 := r.ReadMapStart() + if yyl4224 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4224, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4224 == codecSelferValueTypeArray1234 { + yyl4224 := r.ReadArrayStart() + if yyl4224 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4224, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49928,12 +52754,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -49942,27 +52768,39 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4225Slc = r.DecodeBytes(yys4225Slc, true, true) + yys4225 := string(yys4225Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4225 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4228 := &x.ObjectMeta + yyv4228.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv5 := &x.Data - yym6 := z.DecBinary() - _ = yym6 + yyv4229 := &x.Data + yym4230 := z.DecBinary() + _ = yym4230 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv5), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4229), d) } } case "type": @@ -49971,22 +52809,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Type = SecretType(r.DecodeString()) } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4225) + } // end switch yys4225 + } // end for yyj4225 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49994,108 +52820,108 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4232 int + var yyb4232 bool + var yyhl4232 bool = l >= 0 + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb10 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb10 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb10 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb10 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.APIVersion = "" } else { - yyv12 := &x.Data - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv12), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb10 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb10 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Type = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Type = SecretType(r.DecodeString()) + yyv4235 := &x.ObjectMeta + yyv4235.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb10 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb10 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Data = nil } else { - x.Kind = string(r.DecodeString()) + yyv4236 := &x.Data + yym4237 := z.DecBinary() + _ = yym4237 + if false { + } else { + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4236), d) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb10 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb10 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Type = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Type = SecretType(r.DecodeString()) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb10 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb10 { + if yyb4232 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4232-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50104,8 +52930,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4239 := z.EncBinary() + _ = yym4239 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -50117,8 +52943,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4240 := z.DecBinary() + _ = yym4240 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50133,139 +52959,139 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4241 := z.EncBinary() + _ = yym4241 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4242 = 1 + for _, b := range yyq4242 { if b { - yynn2++ + yynn4242++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4242) + yynn4242 = 0 } - if yyr2 || yy2arr2 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4242[0] { + yym4244 := z.EncBinary() + _ = yym4244 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4242[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4245 := z.EncBinary() + _ = yym4245 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4242[1] { + yym4247 := z.EncBinary() + _ = yym4247 if false { } else { - h.encSliceSecret(([]Secret)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4242[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4248 := z.EncBinary() + _ = yym4248 if false { } else { - h.encSliceSecret(([]Secret)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4242[2] { + yy4250 := &x.ListMeta + yym4251 := z.EncBinary() + _ = yym4251 if false { + } else if z.HasExtensions() && z.EncExt(yy4250) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4250) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4242[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4252 := &x.ListMeta + yym4253 := z.EncBinary() + _ = yym4253 if false { + } else if z.HasExtensions() && z.EncExt(yy4252) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4252) } } } - if yyr2 || yy2arr2 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4255 := z.EncBinary() + _ = yym4255 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceSecret(([]Secret)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4256 := z.EncBinary() + _ = yym4256 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50278,25 +53104,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4257 := z.DecBinary() + _ = yym4257 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4258 := r.ContainerType() + if yyct4258 == codecSelferValueTypeMap1234 { + yyl4258 := r.ReadMapStart() + if yyl4258 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4258, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4258 == codecSelferValueTypeArray1234 { + yyl4258 := r.ReadArrayStart() + if yyl4258 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4258, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50308,12 +53134,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -50322,51 +53148,51 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4259Slc = r.DecodeBytes(yys4259Slc, true, true) + yys4259 := string(yys4259Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4259 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4262 := &x.ListMeta + yym4263 := z.DecBinary() + _ = yym4263 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4262) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4262, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4264 := &x.Items + yym4265 := z.DecBinary() + _ = yym4265 if false { } else { - h.decSliceSecret((*[]Secret)(yyv6), d) + h.decSliceSecret((*[]Secret)(yyv4264), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4259) + } // end switch yys4259 + } // end for yyj4259 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50374,98 +53200,98 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4266 int + var yyb4266 bool + var yyhl4266 bool = l >= 0 + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb10 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb10 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb10 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb10 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceSecret((*[]Secret)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb10 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb10 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4269 := &x.ListMeta + yym4270 := z.DecBinary() + _ = yym4270 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4269) { + } else { + z.DecFallback(yyv4269, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb10 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb10 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4271 := &x.Items + yym4272 := z.DecBinary() + _ = yym4272 + if false { + } else { + h.decSliceSecret((*[]Secret)(yyv4271), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb10 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb10 { + if yyb4266 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4266-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50477,134 +53303,134 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4273 := z.EncBinary() + _ = yym4273 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Data) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4274 = 0 + for _, b := range yyq4274 { if b { - yynn2++ + yynn4274++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4274) + yynn4274 = 0 } - if yyr2 || yy2arr2 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4274[0] { + yym4276 := z.EncBinary() + _ = yym4276 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4274[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4277 := z.EncBinary() + _ = yym4277 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Data == nil { - r.EncodeNil() + if yyq4274[1] { + yym4279 := z.EncBinary() + _ = yym4279 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - z.F.EncMapStringStringV(x.Data, false, e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4274[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() + yym4280 := z.EncBinary() + _ = yym4280 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncMapStringStringV(x.Data, false, e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq4274[2] { + yy4282 := &x.ObjectMeta + yy4282.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4274[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy4283 := &x.ObjectMeta + yy4283.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq4274[3] { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4285 := z.EncBinary() + _ = yym4285 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4274[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4286 := z.EncBinary() + _ = yym4286 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } } } } - if yyr2 || yy2arr2 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50617,25 +53443,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4287 := z.DecBinary() + _ = yym4287 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4288 := r.ContainerType() + if yyct4288 == codecSelferValueTypeMap1234 { + yyl4288 := r.ReadMapStart() + if yyl4288 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4288, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4288 == codecSelferValueTypeArray1234 { + yyl4288 := r.ReadArrayStart() + if yyl4288 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4288, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50647,12 +53473,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -50661,45 +53487,45 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4289Slc = r.DecodeBytes(yys4289Slc, true, true) + yys4289 := string(yys4289Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4289 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4292 := &x.ObjectMeta + yyv4292.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv5 := &x.Data - yym6 := z.DecBinary() - _ = yym6 + yyv4293 := &x.Data + yym4294 := z.DecBinary() + _ = yym4294 if false { } else { - z.F.DecMapStringStringX(yyv5, false, d) + z.F.DecMapStringStringX(yyv4293, false, d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4289) + } // end switch yys4289 + } // end for yyj4289 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50707,92 +53533,92 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj4295 int + var yyb4295 bool + var yyhl4295 bool = l >= 0 + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb9 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb9 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb9 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb9 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.APIVersion = "" } else { - yyv11 := &x.Data - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - z.F.DecMapStringStringX(yyv11, false, d) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb9 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb9 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4298 := &x.ObjectMeta + yyv4298.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb9 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb9 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Data = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4299 := &x.Data + yym4300 := z.DecBinary() + _ = yym4300 + if false { + } else { + z.F.DecMapStringStringX(yyv4299, false, d) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb9 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb9 { + if yyb4295 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj4295-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50804,139 +53630,139 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4301 := z.EncBinary() + _ = yym4301 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4302 = 1 + for _, b := range yyq4302 { if b { - yynn2++ + yynn4302++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4302) + yynn4302 = 0 } - if yyr2 || yy2arr2 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4302[0] { + yym4304 := z.EncBinary() + _ = yym4304 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4302[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4305 := z.EncBinary() + _ = yym4305 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4302[1] { + yym4307 := z.EncBinary() + _ = yym4307 if false { } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4302[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4308 := z.EncBinary() + _ = yym4308 if false { } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4302[2] { + yy4310 := &x.ListMeta + yym4311 := z.EncBinary() + _ = yym4311 if false { + } else if z.HasExtensions() && z.EncExt(yy4310) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4310) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4302[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4312 := &x.ListMeta + yym4313 := z.EncBinary() + _ = yym4313 if false { + } else if z.HasExtensions() && z.EncExt(yy4312) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4312) } } } - if yyr2 || yy2arr2 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4315 := z.EncBinary() + _ = yym4315 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4316 := z.EncBinary() + _ = yym4316 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50949,25 +53775,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4317 := z.DecBinary() + _ = yym4317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4318 := r.ContainerType() + if yyct4318 == codecSelferValueTypeMap1234 { + yyl4318 := r.ReadMapStart() + if yyl4318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4318, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4318 == codecSelferValueTypeArray1234 { + yyl4318 := r.ReadArrayStart() + if yyl4318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4318, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50979,12 +53805,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -50993,51 +53819,51 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4319Slc = r.DecodeBytes(yys4319Slc, true, true) + yys4319 := string(yys4319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4322 := &x.ListMeta + yym4323 := z.DecBinary() + _ = yym4323 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4322) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4322, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4324 := &x.Items + yym4325 := z.DecBinary() + _ = yym4325 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv6), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4324), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4319) + } // end switch yys4319 + } // end for yyj4319 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51045,98 +53871,98 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4326 int + var yyb4326 bool + var yyhl4326 bool = l >= 0 + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb10 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb10 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb10 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb10 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb10 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb10 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4329 := &x.ListMeta + yym4330 := z.DecBinary() + _ = yym4330 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4329) { + } else { + z.DecFallback(yyv4329, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb10 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb10 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4331 := &x.Items + yym4332 := z.DecBinary() + _ = yym4332 + if false { + } else { + h.decSliceConfigMap((*[]ConfigMap)(yyv4331), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb10 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb10 { + if yyb4326 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4326-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51145,8 +53971,8 @@ func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4333 := z.EncBinary() + _ = yym4333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51158,8 +53984,8 @@ func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4334 := z.DecBinary() + _ = yym4334 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51171,8 +53997,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4335 := z.EncBinary() + _ = yym4335 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51184,8 +54010,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4336 := z.DecBinary() + _ = yym4336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51200,32 +54026,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4337 := z.EncBinary() + _ = yym4337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Message != "" - yyq2[3] = x.Error != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn4338 = 2 + for _, b := range yyq4338 { if b { - yynn2++ + yynn4338++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4338) + yynn4338 = 0 } - if yyr2 || yy2arr2 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -51234,7 +54060,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -51243,11 +54069,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq4338[2] { + yym4342 := z.EncBinary() + _ = yym4342 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -51256,23 +54082,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq4338[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym4343 := z.EncBinary() + _ = yym4343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq4338[3] { + yym4345 := z.EncBinary() + _ = yym4345 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -51281,19 +54107,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq4338[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym4346 := z.EncBinary() + _ = yym4346 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr2 || yy2arr2 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51306,25 +54132,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4347 := z.DecBinary() + _ = yym4347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4348 := r.ContainerType() + if yyct4348 == codecSelferValueTypeMap1234 { + yyl4348 := r.ReadMapStart() + if yyl4348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4348, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4348 == codecSelferValueTypeArray1234 { + yyl4348 := r.ReadArrayStart() + if yyl4348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4348, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51336,12 +54162,12 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -51350,10 +54176,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4349Slc = r.DecodeBytes(yys4349Slc, true, true) + yys4349 := string(yys4349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4349 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -51379,9 +54205,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4349) + } // end switch yys4349 + } // end for yyj4349 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51389,16 +54215,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj4354 int + var yyb4354 bool + var yyhl4354 bool = l >= 0 + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb8 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb8 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51408,13 +54234,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb8 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb8 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51424,13 +54250,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb8 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb8 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51440,13 +54266,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb8 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb8 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51457,17 +54283,17 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb8 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb8 { + if yyb4354 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj4354-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51479,134 +54305,134 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4359 := z.EncBinary() + _ = yym4359 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Conditions) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4360 = 0 + for _, b := range yyq4360 { if b { - yynn2++ + yynn4360++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4360) + yynn4360 = 0 } - if yyr2 || yy2arr2 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4360[0] { + yym4362 := z.EncBinary() + _ = yym4362 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4360[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4363 := z.EncBinary() + _ = yym4363 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Conditions == nil { - r.EncodeNil() + if yyq4360[1] { + yym4365 := z.EncBinary() + _ = yym4365 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4360[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() + yym4366 := z.EncBinary() + _ = yym4366 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq4360[2] { + yy4368 := &x.ObjectMeta + yy4368.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4360[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy4369 := &x.ObjectMeta + yy4369.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq4360[3] { + if x.Conditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4371 := z.EncBinary() + _ = yym4371 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4360[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Conditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4372 := z.EncBinary() + _ = yym4372 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } } } } - if yyr2 || yy2arr2 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51619,25 +54445,25 @@ func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4373 := z.DecBinary() + _ = yym4373 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4374 := r.ContainerType() + if yyct4374 == codecSelferValueTypeMap1234 { + yyl4374 := r.ReadMapStart() + if yyl4374 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4374, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4374 == codecSelferValueTypeArray1234 { + yyl4374 := r.ReadArrayStart() + if yyl4374 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4374, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51649,12 +54475,12 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -51663,45 +54489,45 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) + yys4375 := string(yys4375Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4375 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4378 := &x.ObjectMeta + yyv4378.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv5 := &x.Conditions - yym6 := z.DecBinary() - _ = yym6 + yyv4379 := &x.Conditions + yym4380 := z.DecBinary() + _ = yym4380 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv5), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4379), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4375) + } // end switch yys4375 + } // end for yyj4375 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51709,92 +54535,92 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj4381 int + var yyb4381 bool + var yyhl4381 bool = l >= 0 + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb9 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb9 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb9 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb9 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Conditions = nil + x.APIVersion = "" } else { - yyv11 := &x.Conditions - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv11), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb9 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb9 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4384 := &x.ObjectMeta + yyv4384.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb9 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb9 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Conditions = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4385 := &x.Conditions + yym4386 := z.DecBinary() + _ = yym4386 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4385), d) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb9 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb9 { + if yyb4381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj4381-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51806,139 +54632,139 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4387 := z.EncBinary() + _ = yym4387 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4388 = 1 + for _, b := range yyq4388 { if b { - yynn2++ + yynn4388++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4388) + yynn4388 = 0 } - if yyr2 || yy2arr2 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4388[0] { + yym4390 := z.EncBinary() + _ = yym4390 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4388[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4391 := z.EncBinary() + _ = yym4391 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4388[1] { + yym4393 := z.EncBinary() + _ = yym4393 if false { } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4388[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4394 := z.EncBinary() + _ = yym4394 if false { } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4388[2] { + yy4396 := &x.ListMeta + yym4397 := z.EncBinary() + _ = yym4397 if false { + } else if z.HasExtensions() && z.EncExt(yy4396) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4396) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4388[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4398 := &x.ListMeta + yym4399 := z.EncBinary() + _ = yym4399 if false { + } else if z.HasExtensions() && z.EncExt(yy4398) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4398) } } } - if yyr2 || yy2arr2 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4401 := z.EncBinary() + _ = yym4401 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4402 := z.EncBinary() + _ = yym4402 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51951,25 +54777,25 @@ func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4403 := z.DecBinary() + _ = yym4403 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4404 := r.ContainerType() + if yyct4404 == codecSelferValueTypeMap1234 { + yyl4404 := r.ReadMapStart() + if yyl4404 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4404, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4404 == codecSelferValueTypeArray1234 { + yyl4404 := r.ReadArrayStart() + if yyl4404 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4404, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51981,12 +54807,12 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -51995,51 +54821,51 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4405Slc = r.DecodeBytes(yys4405Slc, true, true) + yys4405 := string(yys4405Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4405 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4408 := &x.ListMeta + yym4409 := z.DecBinary() + _ = yym4409 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4408) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4408, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4410 := &x.Items + yym4411 := z.DecBinary() + _ = yym4411 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv6), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4410), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4405) + } // end switch yys4405 + } // end for yyj4405 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52047,98 +54873,98 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4412 int + var yyb4412 bool + var yyhl4412 bool = l >= 0 + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb10 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb10 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb10 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb10 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb10 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb10 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4415 := &x.ListMeta + yym4416 := z.DecBinary() + _ = yym4416 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4415) { + } else { + z.DecFallback(yyv4415, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb10 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb10 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4417 := &x.Items + yym4418 := z.DecBinary() + _ = yym4418 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4417), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb10 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb10 { + if yyb4412 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4412-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52150,38 +54976,38 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4419 := z.EncBinary() + _ = yym4419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Capabilities != nil - yyq2[1] = x.Privileged != nil - yyq2[2] = x.SELinuxOptions != nil - yyq2[3] = x.RunAsUser != nil - yyq2[4] = x.RunAsNonRoot != nil - yyq2[5] = x.ReadOnlyRootFilesystem != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4420 = 0 + for _, b := range yyq4420 { if b { - yynn2++ + yynn4420++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4420) + yynn4420 = 0 } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4420[0] { if x.Capabilities == nil { r.EncodeNil() } else { @@ -52191,7 +55017,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4420[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52202,44 +55028,44 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4420[1] { if x.Privileged == nil { r.EncodeNil() } else { - yy7 := *x.Privileged - yym8 := z.EncBinary() - _ = yym8 + yy4423 := *x.Privileged + yym4424 := z.EncBinary() + _ = yym4424 if false { } else { - r.EncodeBool(bool(yy7)) + r.EncodeBool(bool(yy4423)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy9 := *x.Privileged - yym10 := z.EncBinary() - _ = yym10 + yy4425 := *x.Privileged + yym4426 := z.EncBinary() + _ = yym4426 if false { } else { - r.EncodeBool(bool(yy9)) + r.EncodeBool(bool(yy4425)) } } } } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq4420[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -52249,7 +55075,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52260,112 +55086,112 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq4420[3] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy15 := *x.RunAsUser - yym16 := z.EncBinary() - _ = yym16 + yy4429 := *x.RunAsUser + yym4430 := z.EncBinary() + _ = yym4430 if false { } else { - r.EncodeInt(int64(yy15)) + r.EncodeInt(int64(yy4429)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy17 := *x.RunAsUser - yym18 := z.EncBinary() - _ = yym18 + yy4431 := *x.RunAsUser + yym4432 := z.EncBinary() + _ = yym4432 if false { } else { - r.EncodeInt(int64(yy17)) + r.EncodeInt(int64(yy4431)) } } } } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq4420[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy20 := *x.RunAsNonRoot - yym21 := z.EncBinary() - _ = yym21 + yy4434 := *x.RunAsNonRoot + yym4435 := z.EncBinary() + _ = yym4435 if false { } else { - r.EncodeBool(bool(yy20)) + r.EncodeBool(bool(yy4434)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy22 := *x.RunAsNonRoot - yym23 := z.EncBinary() - _ = yym23 + yy4436 := *x.RunAsNonRoot + yym4437 := z.EncBinary() + _ = yym4437 if false { } else { - r.EncodeBool(bool(yy22)) + r.EncodeBool(bool(yy4436)) } } } } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq4420[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy25 := *x.ReadOnlyRootFilesystem - yym26 := z.EncBinary() - _ = yym26 + yy4439 := *x.ReadOnlyRootFilesystem + yym4440 := z.EncBinary() + _ = yym4440 if false { } else { - r.EncodeBool(bool(yy25)) + r.EncodeBool(bool(yy4439)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy27 := *x.ReadOnlyRootFilesystem - yym28 := z.EncBinary() - _ = yym28 + yy4441 := *x.ReadOnlyRootFilesystem + yym4442 := z.EncBinary() + _ = yym4442 if false { } else { - r.EncodeBool(bool(yy27)) + r.EncodeBool(bool(yy4441)) } } } } - if yyr2 || yy2arr2 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52378,25 +55204,25 @@ func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4443 := z.DecBinary() + _ = yym4443 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4444 := r.ContainerType() + if yyct4444 == codecSelferValueTypeMap1234 { + yyl4444 := r.ReadMapStart() + if yyl4444 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4444, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4444 == codecSelferValueTypeArray1234 { + yyl4444 := r.ReadArrayStart() + if yyl4444 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4444, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52408,12 +55234,12 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -52422,10 +55248,10 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4445Slc = r.DecodeBytes(yys4445Slc, true, true) + yys4445 := string(yys4445Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4445 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { @@ -52446,8 +55272,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Privileged == nil { x.Privileged = new(bool) } - yym6 := z.DecBinary() - _ = yym6 + yym4448 := z.DecBinary() + _ = yym4448 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() @@ -52473,8 +55299,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym4451 := z.DecBinary() + _ = yym4451 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -52489,8 +55315,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym11 := z.DecBinary() - _ = yym11 + yym4453 := z.DecBinary() + _ = yym4453 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -52505,17 +55331,17 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym13 := z.DecBinary() - _ = yym13 + yym4455 := z.DecBinary() + _ = yym4455 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4445) + } // end switch yys4445 + } // end for yyj4445 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52523,16 +55349,16 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj4456 int + var yyb4456 bool + var yyhl4456 bool = l >= 0 + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52547,13 +55373,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.Capabilities.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52566,20 +55392,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Privileged == nil { x.Privileged = new(bool) } - yym17 := z.DecBinary() - _ = yym17 + yym4459 := z.DecBinary() + _ = yym4459 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52594,13 +55420,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52613,20 +55439,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym20 := z.DecBinary() - _ = yym20 + yym4462 := z.DecBinary() + _ = yym4462 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52639,20 +55465,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym22 := z.DecBinary() - _ = yym22 + yym4464 := z.DecBinary() + _ = yym4464 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52665,25 +55491,25 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym24 := z.DecBinary() - _ = yym24 + yym4466 := z.DecBinary() + _ = yym4466 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb14 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb14 { + if yyb4456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj4456-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52695,38 +55521,38 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4467 := z.EncBinary() + _ = yym4467 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.User != "" - yyq2[1] = x.Role != "" - yyq2[2] = x.Type != "" - yyq2[3] = x.Level != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4468 = 0 + for _, b := range yyq4468 { if b { - yynn2++ + yynn4468++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4468) + yynn4468 = 0 } - if yyr2 || yy2arr2 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq4468[0] { + yym4470 := z.EncBinary() + _ = yym4470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -52735,23 +55561,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4468[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym4471 := z.EncBinary() + _ = yym4471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr2 || yy2arr2 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq4468[1] { + yym4473 := z.EncBinary() + _ = yym4473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) @@ -52760,23 +55586,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4468[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym4474 := z.EncBinary() + _ = yym4474 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } - if yyr2 || yy2arr2 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq4468[2] { + yym4476 := z.EncBinary() + _ = yym4476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -52785,23 +55611,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq4468[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym4477 := z.EncBinary() + _ = yym4477 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr2 || yy2arr2 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq4468[3] { + yym4479 := z.EncBinary() + _ = yym4479 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) @@ -52810,19 +55636,19 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq4468[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym4480 := z.EncBinary() + _ = yym4480 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } - if yyr2 || yy2arr2 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52835,25 +55661,25 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4481 := z.DecBinary() + _ = yym4481 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4482 := r.ContainerType() + if yyct4482 == codecSelferValueTypeMap1234 { + yyl4482 := r.ReadMapStart() + if yyl4482 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4482, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4482 == codecSelferValueTypeArray1234 { + yyl4482 := r.ReadArrayStart() + if yyl4482 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4482, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52865,12 +55691,12 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -52879,10 +55705,10 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4483Slc = r.DecodeBytes(yys4483Slc, true, true) + yys4483 := string(yys4483Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4483 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -52908,9 +55734,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4483) + } // end switch yys4483 + } // end for yyj4483 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52918,16 +55744,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj4488 int + var yyb4488 bool + var yyhl4488 bool = l >= 0 + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb8 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb8 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52937,13 +55763,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb8 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb8 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52953,13 +55779,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb8 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb8 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52969,13 +55795,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb8 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb8 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52986,17 +55812,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb8 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb8 { + if yyb4488 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj4488-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53008,53 +55834,103 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4493 := z.EncBinary() + _ = yym4493 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] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn4494 = 2 + for _, b := range yyq4494 { if b { - yynn2++ + yynn4494++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4494) + yynn4494 = 0 } - if yyr2 || yy2arr2 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4494[0] { + yym4496 := z.EncBinary() + _ = yym4496 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4494[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4497 := z.EncBinary() + _ = yym4497 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4494 || yy2arr4494 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4494[1] { + yym4499 := z.EncBinary() + _ = yym4499 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4494[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4500 := z.EncBinary() + _ = yym4500 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4494 || yy2arr4494 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4494[2] { + yy4502 := &x.ObjectMeta + yy4502.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4494[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy4503 := &x.ObjectMeta + yy4503.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym9 := z.EncBinary() - _ = yym9 + yym4505 := z.EncBinary() + _ = yym4505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -53063,20 +55939,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym4506 := z.EncBinary() + _ = yym4506 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr2 || yy2arr2 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym12 := z.EncBinary() - _ = yym12 + yym4508 := z.EncBinary() + _ = yym4508 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -53089,65 +55965,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym4509 := z.EncBinary() + _ = yym4509 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53160,25 +55986,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4510 := z.DecBinary() + _ = yym4510 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4511 := r.ContainerType() + if yyct4511 == codecSelferValueTypeMap1234 { + yyl4511 := r.ReadMapStart() + if yyl4511 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4511, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4511 == codecSelferValueTypeArray1234 { + yyl4511 := r.ReadArrayStart() + if yyl4511 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4511, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53190,12 +56016,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -53204,16 +56030,28 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4512Slc = r.DecodeBytes(yys4512Slc, true, true) + yys4512 := string(yys4512Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4512 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4515 := &x.ObjectMeta + yyv4515.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -53225,30 +56063,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv6 := &x.Data - yym7 := z.DecBinary() - _ = yym7 + yyv4517 := &x.Data + yym4518 := z.DecBinary() + _ = yym4518 if false { } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) + *yyv4517 = r.DecodeBytes(*(*[]byte)(yyv4517), false, false) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4512) + } // end switch yys4512 + } // end for yyj4512 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53256,108 +56082,108 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4519 int + var yyb4519 bool + var yyhl4519 bool = l >= 0 + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb10 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb10 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb10 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb10 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Range = "" + x.APIVersion = "" } else { - x.Range = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb10 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb10 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.ObjectMeta = ObjectMeta{} } else { - yyv13 := &x.Data - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *yyv13 = r.DecodeBytes(*(*[]byte)(yyv13), false, false) - } + yyv4522 := &x.ObjectMeta + yyv4522.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb10 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb10 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Range = "" } else { - x.Kind = string(r.DecodeString()) + x.Range = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb10 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb10 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Data = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4524 := &x.Data + yym4525 := z.DecBinary() + _ = yym4525 + if false { + } else { + *yyv4524 = r.DecodeBytes(*(*[]byte)(yyv4524), false, false) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb10 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb10 { + if yyb4519 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4519-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53367,10 +56193,10 @@ func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4526 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4527 := &yyv4526 + yy4527.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53380,86 +56206,83 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []OwnerReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv4528 := *v + yyh4528, yyl4528 := z.DecSliceHelperStart() + var yyc4528 bool + if yyl4528 == 0 { + if yyv4528 == nil { + yyv4528 = []OwnerReference{} + yyc4528 = true + } else if len(yyv4528) != 0 { + yyv4528 = yyv4528[:0] + yyc4528 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4528 > 0 { + var yyrr4528, yyrl4528 int + var yyrt4528 bool + if yyl4528 > cap(yyv4528) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg4528 := len(yyv4528) > 0 + yyv24528 := yyv4528 + yyrl4528, yyrt4528 = z.DecInferLen(yyl4528, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4528 { + if yyrl4528 <= cap(yyv4528) { + yyv4528 = yyv4528[:yyrl4528] } else { - yyv1 = make([]OwnerReference, yyrl1) + yyv4528 = make([]OwnerReference, yyrl4528) } } else { - yyv1 = make([]OwnerReference, yyrl1) + yyv4528 = make([]OwnerReference, yyrl4528) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4528 = true + yyrr4528 = len(yyv4528) + if yyrg4528 { + copy(yyv4528, yyv24528) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4528 != len(yyv4528) { + yyv4528 = yyv4528[:yyl4528] + yyc4528 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4528 := 0 + for ; yyj4528 < yyrr4528; yyj4528++ { + yyh4528.ElemContainerState(yyj4528) if r.TryDecodeAsNil() { - yyv1[yyj1] = OwnerReference{} + yyv4528[yyj4528] = OwnerReference{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4529 := &yyv4528[yyj4528] + yyv4529.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, OwnerReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt4528 { + for ; yyj4528 < yyl4528; yyj4528++ { + yyv4528 = append(yyv4528, OwnerReference{}) + yyh4528.ElemContainerState(yyj4528) if r.TryDecodeAsNil() { - yyv1[yyj1] = OwnerReference{} + yyv4528[yyj4528] = OwnerReference{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4530 := &yyv4528[yyj4528] + yyv4530.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4528 := 0 + for ; !r.CheckBreak(); yyj4528++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, OwnerReference{}) // var yyz1 OwnerReference - yyc1 = true + if yyj4528 >= len(yyv4528) { + yyv4528 = append(yyv4528, OwnerReference{}) // var yyz4528 OwnerReference + yyc4528 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4528.ElemContainerState(yyj4528) + if yyj4528 < len(yyv4528) { if r.TryDecodeAsNil() { - yyv1[yyj1] = OwnerReference{} + yyv4528[yyj4528] = OwnerReference{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4531 := &yyv4528[yyj4528] + yyv4531.CodecDecodeSelf(d) } } else { @@ -53467,17 +56290,17 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []OwnerReference{} - yyc1 = true + if yyj4528 < len(yyv4528) { + yyv4528 = yyv4528[:yyj4528] + yyc4528 = true + } else if yyj4528 == 0 && yyv4528 == nil { + yyv4528 = []OwnerReference{} + yyc4528 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4528.End() + if yyc4528 { + *v = yyv4528 } } @@ -53486,9 +56309,9 @@ func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolume z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4532 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4532.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53498,78 +56321,75 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PersistentVolumeAccessMode{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4533 > 0 { + var yyrr4533, yyrl4533 int + var yyrt4533 bool + if yyl4533 > cap(yyv4533) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4533, yyrt4533 = z.DecInferLen(yyl4533, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4533 { + if yyrl4533 <= cap(yyv4533) { + yyv4533 = yyv4533[:yyrl4533] } else { - yyv1 = make([]PersistentVolumeAccessMode, yyrl1) + yyv4533 = make([]PersistentVolumeAccessMode, yyrl4533) } } else { - yyv1 = make([]PersistentVolumeAccessMode, yyrl1) + yyv4533 = make([]PersistentVolumeAccessMode, yyrl4533) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4533 = true + yyrr4533 = len(yyv4533) + } else if yyl4533 != len(yyv4533) { + yyv4533 = yyv4533[:yyl4533] + yyc4533 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4533 := 0 + for ; yyj4533 < yyrr4533; yyj4533++ { + yyh4533.ElemContainerState(yyj4533) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4533[yyj4533] = "" } else { - yyv1[yyj1] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4533 { + for ; yyj4533 < yyl4533; yyj4533++ { + yyv4533 = append(yyv4533, "") + yyh4533.ElemContainerState(yyj4533) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4533[yyj4533] = "" } else { - yyv1[yyj1] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4533 := 0 + for ; !r.CheckBreak(); yyj4533++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 PersistentVolumeAccessMode - yyc1 = true + if yyj4533 >= len(yyv4533) { + yyv4533 = append(yyv4533, "") // var yyz4533 PersistentVolumeAccessMode + yyc4533 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4533.ElemContainerState(yyj4533) + if yyj4533 < len(yyv4533) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4533[yyj4533] = "" } else { - yyv1[yyj1] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) } } else { @@ -53577,17 +56397,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PersistentVolumeAccessMode{} - yyc1 = true + if yyj4533 < len(yyv4533) { + yyv4533 = yyv4533[:yyj4533] + yyc4533 = true + } else if yyj4533 == 0 && yyv4533 == nil { + yyv4533 = []PersistentVolumeAccessMode{} + yyc4533 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4533.End() + if yyc4533 { + *v = yyv4533 } } @@ -53596,10 +56416,10 @@ func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4537 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4538 := &yyv4537 + yy4538.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53609,86 +56429,83 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PersistentVolume{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4539 > 0 { + var yyrr4539, yyrl4539 int + var yyrt4539 bool + if yyl4539 > cap(yyv4539) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 456) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PersistentVolume, yyrl1) + yyv4539 = make([]PersistentVolume, yyrl4539) } } else { - yyv1 = make([]PersistentVolume, yyrl1) + yyv4539 = make([]PersistentVolume, yyrl4539) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4539 = true + yyrr4539 = len(yyv4539) + if yyrg4539 { + copy(yyv4539, yyv24539) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4539 != len(yyv4539) { + yyv4539 = yyv4539[:yyl4539] + yyc4539 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4539 := 0 + for ; yyj4539 < yyrr4539; yyj4539++ { + yyh4539.ElemContainerState(yyj4539) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolume{} + yyv4539[yyj4539] = PersistentVolume{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4540 := &yyv4539[yyj4539] + yyv4540.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PersistentVolume{}) - yyh1.ElemContainerState(yyj1) + if yyrt4539 { + for ; yyj4539 < yyl4539; yyj4539++ { + yyv4539 = append(yyv4539, PersistentVolume{}) + yyh4539.ElemContainerState(yyj4539) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolume{} + yyv4539[yyj4539] = PersistentVolume{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4541 := &yyv4539[yyj4539] + yyv4541.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4539 := 0 + for ; !r.CheckBreak(); yyj4539++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PersistentVolume{}) // var yyz1 PersistentVolume - yyc1 = true + if yyj4539 >= len(yyv4539) { + yyv4539 = append(yyv4539, PersistentVolume{}) // var yyz4539 PersistentVolume + yyc4539 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4539.ElemContainerState(yyj4539) + if yyj4539 < len(yyv4539) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolume{} + yyv4539[yyj4539] = PersistentVolume{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4542 := &yyv4539[yyj4539] + yyv4542.CodecDecodeSelf(d) } } else { @@ -53696,17 +56513,17 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PersistentVolume{} - yyc1 = true + if yyj4539 < len(yyv4539) { + yyv4539 = yyv4539[:yyj4539] + yyc4539 = true + } else if yyj4539 == 0 && yyv4539 == nil { + yyv4539 = []PersistentVolume{} + yyc4539 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4539.End() + if yyc4539 { + *v = yyv4539 } } @@ -53715,10 +56532,10 @@ func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4543 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4544 := &yyv4543 + yy4544.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53728,86 +56545,83 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PersistentVolumeClaim{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4545 > 0 { + var yyrr4545, yyrl4545 int + var yyrt4545 bool + if yyl4545 > cap(yyv4545) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PersistentVolumeClaim, yyrl1) + yyv4545 = make([]PersistentVolumeClaim, yyrl4545) } } else { - yyv1 = make([]PersistentVolumeClaim, yyrl1) + yyv4545 = make([]PersistentVolumeClaim, yyrl4545) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4545 = true + yyrr4545 = len(yyv4545) + if yyrg4545 { + copy(yyv4545, yyv24545) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4545 != len(yyv4545) { + yyv4545 = yyv4545[:yyl4545] + yyc4545 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4545 := 0 + for ; yyj4545 < yyrr4545; yyj4545++ { + yyh4545.ElemContainerState(yyj4545) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolumeClaim{} + yyv4545[yyj4545] = PersistentVolumeClaim{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4546 := &yyv4545[yyj4545] + yyv4546.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PersistentVolumeClaim{}) - yyh1.ElemContainerState(yyj1) + if yyrt4545 { + for ; yyj4545 < yyl4545; yyj4545++ { + yyv4545 = append(yyv4545, PersistentVolumeClaim{}) + yyh4545.ElemContainerState(yyj4545) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolumeClaim{} + yyv4545[yyj4545] = PersistentVolumeClaim{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4547 := &yyv4545[yyj4545] + yyv4547.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4545 := 0 + for ; !r.CheckBreak(); yyj4545++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PersistentVolumeClaim{}) // var yyz1 PersistentVolumeClaim - yyc1 = true + if yyj4545 >= len(yyv4545) { + yyv4545 = append(yyv4545, PersistentVolumeClaim{}) // var yyz4545 PersistentVolumeClaim + yyc4545 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4545.ElemContainerState(yyj4545) + if yyj4545 < len(yyv4545) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolumeClaim{} + yyv4545[yyj4545] = PersistentVolumeClaim{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4548 := &yyv4545[yyj4545] + yyv4548.CodecDecodeSelf(d) } } else { @@ -53815,17 +56629,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PersistentVolumeClaim{} - yyc1 = true + if yyj4545 < len(yyv4545) { + yyv4545 = yyv4545[:yyj4545] + yyc4545 = true + } else if yyj4545 == 0 && yyv4545 == nil { + yyv4545 = []PersistentVolumeClaim{} + yyc4545 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4545.End() + if yyc4545 { + *v = yyv4545 } } @@ -53834,10 +56648,10 @@ func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4549 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4550 := &yyv4549 + yy4550.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53847,86 +56661,83 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []KeyToPath{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4551 > 0 { + var yyrr4551, yyrl4551 int + var yyrt4551 bool + if yyl4551 > cap(yyv4551) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]KeyToPath, yyrl1) + yyv4551 = make([]KeyToPath, yyrl4551) } } else { - yyv1 = make([]KeyToPath, yyrl1) + yyv4551 = make([]KeyToPath, yyrl4551) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4551 = true + yyrr4551 = len(yyv4551) + if yyrg4551 { + copy(yyv4551, yyv24551) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4551 != len(yyv4551) { + yyv4551 = yyv4551[:yyl4551] + yyc4551 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4551 := 0 + for ; yyj4551 < yyrr4551; yyj4551++ { + yyh4551.ElemContainerState(yyj4551) if r.TryDecodeAsNil() { - yyv1[yyj1] = KeyToPath{} + yyv4551[yyj4551] = KeyToPath{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4552 := &yyv4551[yyj4551] + yyv4552.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, KeyToPath{}) - yyh1.ElemContainerState(yyj1) + if yyrt4551 { + for ; yyj4551 < yyl4551; yyj4551++ { + yyv4551 = append(yyv4551, KeyToPath{}) + yyh4551.ElemContainerState(yyj4551) if r.TryDecodeAsNil() { - yyv1[yyj1] = KeyToPath{} + yyv4551[yyj4551] = KeyToPath{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4553 := &yyv4551[yyj4551] + yyv4553.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4551 := 0 + for ; !r.CheckBreak(); yyj4551++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, KeyToPath{}) // var yyz1 KeyToPath - yyc1 = true + if yyj4551 >= len(yyv4551) { + yyv4551 = append(yyv4551, KeyToPath{}) // var yyz4551 KeyToPath + yyc4551 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4551.ElemContainerState(yyj4551) + if yyj4551 < len(yyv4551) { if r.TryDecodeAsNil() { - yyv1[yyj1] = KeyToPath{} + yyv4551[yyj4551] = KeyToPath{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4554 := &yyv4551[yyj4551] + yyv4554.CodecDecodeSelf(d) } } else { @@ -53934,17 +56745,17 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []KeyToPath{} - yyc1 = true + if yyj4551 < len(yyv4551) { + yyv4551 = yyv4551[:yyj4551] + yyc4551 = true + } else if yyj4551 == 0 && yyv4551 == nil { + yyv4551 = []KeyToPath{} + yyc4551 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4551.End() + if yyc4551 { + *v = yyv4551 } } @@ -53953,10 +56764,10 @@ func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4555 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4556 := &yyv4555 + yy4556.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53966,86 +56777,83 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []DownwardAPIVolumeFile{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4557 > 0 { + var yyrr4557, yyrl4557 int + var yyrt4557 bool + if yyl4557 > cap(yyv4557) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]DownwardAPIVolumeFile, yyrl1) + yyv4557 = make([]DownwardAPIVolumeFile, yyrl4557) } } else { - yyv1 = make([]DownwardAPIVolumeFile, yyrl1) + yyv4557 = make([]DownwardAPIVolumeFile, yyrl4557) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4557 = true + yyrr4557 = len(yyv4557) + if yyrg4557 { + copy(yyv4557, yyv24557) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4557 != len(yyv4557) { + yyv4557 = yyv4557[:yyl4557] + yyc4557 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4557 := 0 + for ; yyj4557 < yyrr4557; yyj4557++ { + yyh4557.ElemContainerState(yyj4557) if r.TryDecodeAsNil() { - yyv1[yyj1] = DownwardAPIVolumeFile{} + yyv4557[yyj4557] = DownwardAPIVolumeFile{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4558 := &yyv4557[yyj4557] + yyv4558.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, DownwardAPIVolumeFile{}) - yyh1.ElemContainerState(yyj1) + if yyrt4557 { + for ; yyj4557 < yyl4557; yyj4557++ { + yyv4557 = append(yyv4557, DownwardAPIVolumeFile{}) + yyh4557.ElemContainerState(yyj4557) if r.TryDecodeAsNil() { - yyv1[yyj1] = DownwardAPIVolumeFile{} + yyv4557[yyj4557] = DownwardAPIVolumeFile{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4559 := &yyv4557[yyj4557] + yyv4559.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4557 := 0 + for ; !r.CheckBreak(); yyj4557++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, DownwardAPIVolumeFile{}) // var yyz1 DownwardAPIVolumeFile - yyc1 = true + if yyj4557 >= len(yyv4557) { + yyv4557 = append(yyv4557, DownwardAPIVolumeFile{}) // var yyz4557 DownwardAPIVolumeFile + yyc4557 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4557.ElemContainerState(yyj4557) + if yyj4557 < len(yyv4557) { if r.TryDecodeAsNil() { - yyv1[yyj1] = DownwardAPIVolumeFile{} + yyv4557[yyj4557] = DownwardAPIVolumeFile{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4560 := &yyv4557[yyj4557] + yyv4560.CodecDecodeSelf(d) } } else { @@ -54053,17 +56861,17 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []DownwardAPIVolumeFile{} - yyc1 = true + if yyj4557 < len(yyv4557) { + yyv4557 = yyv4557[:yyj4557] + yyc4557 = true + } else if yyj4557 == 0 && yyv4557 == nil { + yyv4557 = []DownwardAPIVolumeFile{} + yyc4557 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4557.End() + if yyc4557 { + *v = yyv4557 } } @@ -54072,10 +56880,10 @@ func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4561 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4562 := &yyv4561 + yy4562.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54085,86 +56893,83 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HTTPHeader{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4563 > 0 { + var yyrr4563, yyrl4563 int + var yyrt4563 bool + if yyl4563 > cap(yyv4563) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]HTTPHeader, yyrl1) + yyv4563 = make([]HTTPHeader, yyrl4563) } } else { - yyv1 = make([]HTTPHeader, yyrl1) + yyv4563 = make([]HTTPHeader, yyrl4563) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4563 = true + yyrr4563 = len(yyv4563) + if yyrg4563 { + copy(yyv4563, yyv24563) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4563 != len(yyv4563) { + yyv4563 = yyv4563[:yyl4563] + yyc4563 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4563 := 0 + for ; yyj4563 < yyrr4563; yyj4563++ { + yyh4563.ElemContainerState(yyj4563) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPHeader{} + yyv4563[yyj4563] = HTTPHeader{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4564 := &yyv4563[yyj4563] + yyv4564.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HTTPHeader{}) - yyh1.ElemContainerState(yyj1) + if yyrt4563 { + for ; yyj4563 < yyl4563; yyj4563++ { + yyv4563 = append(yyv4563, HTTPHeader{}) + yyh4563.ElemContainerState(yyj4563) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPHeader{} + yyv4563[yyj4563] = HTTPHeader{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4565 := &yyv4563[yyj4563] + yyv4565.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4563 := 0 + for ; !r.CheckBreak(); yyj4563++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HTTPHeader{}) // var yyz1 HTTPHeader - yyc1 = true + if yyj4563 >= len(yyv4563) { + yyv4563 = append(yyv4563, HTTPHeader{}) // var yyz4563 HTTPHeader + yyc4563 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4563.ElemContainerState(yyj4563) + if yyj4563 < len(yyv4563) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPHeader{} + yyv4563[yyj4563] = HTTPHeader{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4566 := &yyv4563[yyj4563] + yyv4566.CodecDecodeSelf(d) } } else { @@ -54172,17 +56977,17 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HTTPHeader{} - yyc1 = true + if yyj4563 < len(yyv4563) { + yyv4563 = yyv4563[:yyj4563] + yyc4563 = true + } else if yyj4563 == 0 && yyv4563 == nil { + yyv4563 = []HTTPHeader{} + yyc4563 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4563.End() + if yyc4563 { + *v = yyv4563 } } @@ -54191,9 +56996,9 @@ func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4567 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4567.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54203,78 +57008,75 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Capability{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4568 > 0 { + var yyrr4568, yyrl4568 int + var yyrt4568 bool + if yyl4568 > cap(yyv4568) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4568, yyrt4568 = z.DecInferLen(yyl4568, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4568 { + if yyrl4568 <= cap(yyv4568) { + yyv4568 = yyv4568[:yyrl4568] } else { - yyv1 = make([]Capability, yyrl1) + yyv4568 = make([]Capability, yyrl4568) } } else { - yyv1 = make([]Capability, yyrl1) + yyv4568 = make([]Capability, yyrl4568) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4568 = true + yyrr4568 = len(yyv4568) + } else if yyl4568 != len(yyv4568) { + yyv4568 = yyv4568[:yyl4568] + yyc4568 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4568 := 0 + for ; yyj4568 < yyrr4568; yyj4568++ { + yyh4568.ElemContainerState(yyj4568) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4568[yyj4568] = "" } else { - yyv1[yyj1] = Capability(r.DecodeString()) + yyv4568[yyj4568] = Capability(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4568 { + for ; yyj4568 < yyl4568; yyj4568++ { + yyv4568 = append(yyv4568, "") + yyh4568.ElemContainerState(yyj4568) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4568[yyj4568] = "" } else { - yyv1[yyj1] = Capability(r.DecodeString()) + yyv4568[yyj4568] = Capability(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4568 := 0 + for ; !r.CheckBreak(); yyj4568++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 Capability - yyc1 = true + if yyj4568 >= len(yyv4568) { + yyv4568 = append(yyv4568, "") // var yyz4568 Capability + yyc4568 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4568.ElemContainerState(yyj4568) + if yyj4568 < len(yyv4568) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4568[yyj4568] = "" } else { - yyv1[yyj1] = Capability(r.DecodeString()) + yyv4568[yyj4568] = Capability(r.DecodeString()) } } else { @@ -54282,17 +57084,17 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Capability{} - yyc1 = true + if yyj4568 < len(yyv4568) { + yyv4568 = yyv4568[:yyj4568] + yyc4568 = true + } else if yyj4568 == 0 && yyv4568 == nil { + yyv4568 = []Capability{} + yyc4568 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4568.End() + if yyc4568 { + *v = yyv4568 } } @@ -54301,10 +57103,10 @@ func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4572 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4573 := &yyv4572 + yy4573.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54314,86 +57116,83 @@ func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ContainerPort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4574 > 0 { + var yyrr4574, yyrl4574 int + var yyrt4574 bool + if yyl4574 > cap(yyv4574) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ContainerPort, yyrl1) + yyv4574 = make([]ContainerPort, yyrl4574) } } else { - yyv1 = make([]ContainerPort, yyrl1) + yyv4574 = make([]ContainerPort, yyrl4574) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4574 = true + yyrr4574 = len(yyv4574) + if yyrg4574 { + copy(yyv4574, yyv24574) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4574 != len(yyv4574) { + yyv4574 = yyv4574[:yyl4574] + yyc4574 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4574 := 0 + for ; yyj4574 < yyrr4574; yyj4574++ { + yyh4574.ElemContainerState(yyj4574) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerPort{} + yyv4574[yyj4574] = ContainerPort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4575 := &yyv4574[yyj4574] + yyv4575.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ContainerPort{}) - yyh1.ElemContainerState(yyj1) + if yyrt4574 { + for ; yyj4574 < yyl4574; yyj4574++ { + yyv4574 = append(yyv4574, ContainerPort{}) + yyh4574.ElemContainerState(yyj4574) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerPort{} + yyv4574[yyj4574] = ContainerPort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4576 := &yyv4574[yyj4574] + yyv4576.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4574 := 0 + for ; !r.CheckBreak(); yyj4574++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ContainerPort{}) // var yyz1 ContainerPort - yyc1 = true + if yyj4574 >= len(yyv4574) { + yyv4574 = append(yyv4574, ContainerPort{}) // var yyz4574 ContainerPort + yyc4574 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4574.ElemContainerState(yyj4574) + if yyj4574 < len(yyv4574) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerPort{} + yyv4574[yyj4574] = ContainerPort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4577 := &yyv4574[yyj4574] + yyv4577.CodecDecodeSelf(d) } } else { @@ -54401,17 +57200,17 @@ func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ContainerPort{} - yyc1 = true + if yyj4574 < len(yyv4574) { + yyv4574 = yyv4574[:yyj4574] + yyc4574 = true + } else if yyj4574 == 0 && yyv4574 == nil { + yyv4574 = []ContainerPort{} + yyc4574 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4574.End() + if yyc4574 { + *v = yyv4574 } } @@ -54420,10 +57219,10 @@ func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4578 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4579 := &yyv4578 + yy4579.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54433,86 +57232,83 @@ func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EnvVar{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4580 > 0 { + var yyrr4580, yyrl4580 int + var yyrt4580 bool + if yyl4580 > cap(yyv4580) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EnvVar, yyrl1) + yyv4580 = make([]EnvVar, yyrl4580) } } else { - yyv1 = make([]EnvVar, yyrl1) + yyv4580 = make([]EnvVar, yyrl4580) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4580 = true + yyrr4580 = len(yyv4580) + if yyrg4580 { + copy(yyv4580, yyv24580) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4580 != len(yyv4580) { + yyv4580 = yyv4580[:yyl4580] + yyc4580 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4580 := 0 + for ; yyj4580 < yyrr4580; yyj4580++ { + yyh4580.ElemContainerState(yyj4580) if r.TryDecodeAsNil() { - yyv1[yyj1] = EnvVar{} + yyv4580[yyj4580] = EnvVar{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4581 := &yyv4580[yyj4580] + yyv4581.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EnvVar{}) - yyh1.ElemContainerState(yyj1) + if yyrt4580 { + for ; yyj4580 < yyl4580; yyj4580++ { + yyv4580 = append(yyv4580, EnvVar{}) + yyh4580.ElemContainerState(yyj4580) if r.TryDecodeAsNil() { - yyv1[yyj1] = EnvVar{} + yyv4580[yyj4580] = EnvVar{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4582 := &yyv4580[yyj4580] + yyv4582.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4580 := 0 + for ; !r.CheckBreak(); yyj4580++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EnvVar{}) // var yyz1 EnvVar - yyc1 = true + if yyj4580 >= len(yyv4580) { + yyv4580 = append(yyv4580, EnvVar{}) // var yyz4580 EnvVar + yyc4580 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4580.ElemContainerState(yyj4580) + if yyj4580 < len(yyv4580) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EnvVar{} + yyv4580[yyj4580] = EnvVar{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4583 := &yyv4580[yyj4580] + yyv4583.CodecDecodeSelf(d) } } else { @@ -54520,17 +57316,17 @@ func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EnvVar{} - yyc1 = true + if yyj4580 < len(yyv4580) { + yyv4580 = yyv4580[:yyj4580] + yyc4580 = true + } else if yyj4580 == 0 && yyv4580 == nil { + yyv4580 = []EnvVar{} + yyc4580 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4580.End() + if yyc4580 { + *v = yyv4580 } } @@ -54539,10 +57335,10 @@ func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4584 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4585 := &yyv4584 + yy4585.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54552,86 +57348,83 @@ func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []VolumeMount{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4586 > 0 { + var yyrr4586, yyrl4586 int + var yyrt4586 bool + if yyl4586 > cap(yyv4586) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]VolumeMount, yyrl1) + yyv4586 = make([]VolumeMount, yyrl4586) } } else { - yyv1 = make([]VolumeMount, yyrl1) + yyv4586 = make([]VolumeMount, yyrl4586) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4586 = true + yyrr4586 = len(yyv4586) + if yyrg4586 { + copy(yyv4586, yyv24586) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4586 != len(yyv4586) { + yyv4586 = yyv4586[:yyl4586] + yyc4586 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4586 := 0 + for ; yyj4586 < yyrr4586; yyj4586++ { + yyh4586.ElemContainerState(yyj4586) if r.TryDecodeAsNil() { - yyv1[yyj1] = VolumeMount{} + yyv4586[yyj4586] = VolumeMount{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4587 := &yyv4586[yyj4586] + yyv4587.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, VolumeMount{}) - yyh1.ElemContainerState(yyj1) + if yyrt4586 { + for ; yyj4586 < yyl4586; yyj4586++ { + yyv4586 = append(yyv4586, VolumeMount{}) + yyh4586.ElemContainerState(yyj4586) if r.TryDecodeAsNil() { - yyv1[yyj1] = VolumeMount{} + yyv4586[yyj4586] = VolumeMount{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4588 := &yyv4586[yyj4586] + yyv4588.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4586 := 0 + for ; !r.CheckBreak(); yyj4586++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, VolumeMount{}) // var yyz1 VolumeMount - yyc1 = true + if yyj4586 >= len(yyv4586) { + yyv4586 = append(yyv4586, VolumeMount{}) // var yyz4586 VolumeMount + yyc4586 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4586.ElemContainerState(yyj4586) + if yyj4586 < len(yyv4586) { if r.TryDecodeAsNil() { - yyv1[yyj1] = VolumeMount{} + yyv4586[yyj4586] = VolumeMount{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4589 := &yyv4586[yyj4586] + yyv4589.CodecDecodeSelf(d) } } else { @@ -54639,17 +57432,17 @@ func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []VolumeMount{} - yyc1 = true + if yyj4586 < len(yyv4586) { + yyv4586 = yyv4586[:yyj4586] + yyc4586 = true + } else if yyj4586 == 0 && yyv4586 == nil { + yyv4586 = []VolumeMount{} + yyc4586 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4586.End() + if yyc4586 { + *v = yyv4586 } } @@ -54658,10 +57451,10 @@ func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4590 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4591 := &yyv4590 + yy4591.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54671,86 +57464,83 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Pod{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4592 > 0 { + var yyrr4592, yyrl4592 int + var yyrt4592 bool + if yyl4592 > cap(yyv4592) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 624) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Pod, yyrl1) + yyv4592 = make([]Pod, yyrl4592) } } else { - yyv1 = make([]Pod, yyrl1) + yyv4592 = make([]Pod, yyrl4592) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4592 = true + yyrr4592 = len(yyv4592) + if yyrg4592 { + copy(yyv4592, yyv24592) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4592 != len(yyv4592) { + yyv4592 = yyv4592[:yyl4592] + yyc4592 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4592 := 0 + for ; yyj4592 < yyrr4592; yyj4592++ { + yyh4592.ElemContainerState(yyj4592) if r.TryDecodeAsNil() { - yyv1[yyj1] = Pod{} + yyv4592[yyj4592] = Pod{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4593 := &yyv4592[yyj4592] + yyv4593.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Pod{}) - yyh1.ElemContainerState(yyj1) + if yyrt4592 { + for ; yyj4592 < yyl4592; yyj4592++ { + yyv4592 = append(yyv4592, Pod{}) + yyh4592.ElemContainerState(yyj4592) if r.TryDecodeAsNil() { - yyv1[yyj1] = Pod{} + yyv4592[yyj4592] = Pod{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4594 := &yyv4592[yyj4592] + yyv4594.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4592 := 0 + for ; !r.CheckBreak(); yyj4592++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Pod{}) // var yyz1 Pod - yyc1 = true + if yyj4592 >= len(yyv4592) { + yyv4592 = append(yyv4592, Pod{}) // var yyz4592 Pod + yyc4592 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4592.ElemContainerState(yyj4592) + if yyj4592 < len(yyv4592) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Pod{} + yyv4592[yyj4592] = Pod{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4595 := &yyv4592[yyj4592] + yyv4595.CodecDecodeSelf(d) } } else { @@ -54758,17 +57548,17 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Pod{} - yyc1 = true + if yyj4592 < len(yyv4592) { + yyv4592 = yyv4592[:yyj4592] + yyc4592 = true + } else if yyj4592 == 0 && yyv4592 == nil { + yyv4592 = []Pod{} + yyc4592 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4592.End() + if yyc4592 { + *v = yyv4592 } } @@ -54777,10 +57567,10 @@ func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4596 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4597 := &yyv4596 + yy4597.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54790,86 +57580,83 @@ func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeSelectorTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4598 > 0 { + var yyrr4598, yyrl4598 int + var yyrt4598 bool + if yyl4598 > cap(yyv4598) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NodeSelectorTerm, yyrl1) + yyv4598 = make([]NodeSelectorTerm, yyrl4598) } } else { - yyv1 = make([]NodeSelectorTerm, yyrl1) + yyv4598 = make([]NodeSelectorTerm, yyrl4598) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4598 = true + yyrr4598 = len(yyv4598) + if yyrg4598 { + copy(yyv4598, yyv24598) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4598 != len(yyv4598) { + yyv4598 = yyv4598[:yyl4598] + yyc4598 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4598 := 0 + for ; yyj4598 < yyrr4598; yyj4598++ { + yyh4598.ElemContainerState(yyj4598) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorTerm{} + yyv4598[yyj4598] = NodeSelectorTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4599 := &yyv4598[yyj4598] + yyv4599.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeSelectorTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4598 { + for ; yyj4598 < yyl4598; yyj4598++ { + yyv4598 = append(yyv4598, NodeSelectorTerm{}) + yyh4598.ElemContainerState(yyj4598) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorTerm{} + yyv4598[yyj4598] = NodeSelectorTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4600 := &yyv4598[yyj4598] + yyv4600.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4598 := 0 + for ; !r.CheckBreak(); yyj4598++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeSelectorTerm{}) // var yyz1 NodeSelectorTerm - yyc1 = true + if yyj4598 >= len(yyv4598) { + yyv4598 = append(yyv4598, NodeSelectorTerm{}) // var yyz4598 NodeSelectorTerm + yyc4598 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4598.ElemContainerState(yyj4598) + if yyj4598 < len(yyv4598) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorTerm{} + yyv4598[yyj4598] = NodeSelectorTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4601 := &yyv4598[yyj4598] + yyv4601.CodecDecodeSelf(d) } } else { @@ -54877,17 +57664,17 @@ func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeSelectorTerm{} - yyc1 = true + if yyj4598 < len(yyv4598) { + yyv4598 = yyv4598[:yyj4598] + yyc4598 = true + } else if yyj4598 == 0 && yyv4598 == nil { + yyv4598 = []NodeSelectorTerm{} + yyc4598 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4598.End() + if yyc4598 { + *v = yyv4598 } } @@ -54896,10 +57683,10 @@ func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequire z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4602 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4603 := &yyv4602 + yy4603.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54909,86 +57696,83 @@ func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequir z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeSelectorRequirement{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4604 > 0 { + var yyrr4604, yyrl4604 int + var yyrt4604 bool + if yyl4604 > cap(yyv4604) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NodeSelectorRequirement, yyrl1) + yyv4604 = make([]NodeSelectorRequirement, yyrl4604) } } else { - yyv1 = make([]NodeSelectorRequirement, yyrl1) + yyv4604 = make([]NodeSelectorRequirement, yyrl4604) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4604 = true + yyrr4604 = len(yyv4604) + if yyrg4604 { + copy(yyv4604, yyv24604) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4604 != len(yyv4604) { + yyv4604 = yyv4604[:yyl4604] + yyc4604 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4604 := 0 + for ; yyj4604 < yyrr4604; yyj4604++ { + yyh4604.ElemContainerState(yyj4604) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorRequirement{} + yyv4604[yyj4604] = NodeSelectorRequirement{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4605 := &yyv4604[yyj4604] + yyv4605.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeSelectorRequirement{}) - yyh1.ElemContainerState(yyj1) + if yyrt4604 { + for ; yyj4604 < yyl4604; yyj4604++ { + yyv4604 = append(yyv4604, NodeSelectorRequirement{}) + yyh4604.ElemContainerState(yyj4604) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorRequirement{} + yyv4604[yyj4604] = NodeSelectorRequirement{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4606 := &yyv4604[yyj4604] + yyv4606.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4604 := 0 + for ; !r.CheckBreak(); yyj4604++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeSelectorRequirement{}) // var yyz1 NodeSelectorRequirement - yyc1 = true + if yyj4604 >= len(yyv4604) { + yyv4604 = append(yyv4604, NodeSelectorRequirement{}) // var yyz4604 NodeSelectorRequirement + yyc4604 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4604.ElemContainerState(yyj4604) + if yyj4604 < len(yyv4604) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorRequirement{} + yyv4604[yyj4604] = NodeSelectorRequirement{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4607 := &yyv4604[yyj4604] + yyv4607.CodecDecodeSelf(d) } } else { @@ -54996,17 +57780,17 @@ func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequir } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeSelectorRequirement{} - yyc1 = true + if yyj4604 < len(yyv4604) { + yyv4604 = yyv4604[:yyj4604] + yyc4604 = true + } else if yyj4604 == 0 && yyv4604 == nil { + yyv4604 = []NodeSelectorRequirement{} + yyc4604 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4604.End() + if yyc4604 { + *v = yyv4604 } } @@ -55015,10 +57799,10 @@ func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4608 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4609 := &yyv4608 + yy4609.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55028,86 +57812,83 @@ func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodAffinityTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4610 > 0 { + var yyrr4610, yyrl4610 int + var yyrt4610 bool + if yyl4610 > cap(yyv4610) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodAffinityTerm, yyrl1) + yyv4610 = make([]PodAffinityTerm, yyrl4610) } } else { - yyv1 = make([]PodAffinityTerm, yyrl1) + yyv4610 = make([]PodAffinityTerm, yyrl4610) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4610 = true + yyrr4610 = len(yyv4610) + if yyrg4610 { + copy(yyv4610, yyv24610) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4610 != len(yyv4610) { + yyv4610 = yyv4610[:yyl4610] + yyc4610 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4610 := 0 + for ; yyj4610 < yyrr4610; yyj4610++ { + yyh4610.ElemContainerState(yyj4610) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodAffinityTerm{} + yyv4610[yyj4610] = PodAffinityTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4611 := &yyv4610[yyj4610] + yyv4611.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodAffinityTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4610 { + for ; yyj4610 < yyl4610; yyj4610++ { + yyv4610 = append(yyv4610, PodAffinityTerm{}) + yyh4610.ElemContainerState(yyj4610) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodAffinityTerm{} + yyv4610[yyj4610] = PodAffinityTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4612 := &yyv4610[yyj4610] + yyv4612.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4610 := 0 + for ; !r.CheckBreak(); yyj4610++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodAffinityTerm{}) // var yyz1 PodAffinityTerm - yyc1 = true + if yyj4610 >= len(yyv4610) { + yyv4610 = append(yyv4610, PodAffinityTerm{}) // var yyz4610 PodAffinityTerm + yyc4610 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4610.ElemContainerState(yyj4610) + if yyj4610 < len(yyv4610) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodAffinityTerm{} + yyv4610[yyj4610] = PodAffinityTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4613 := &yyv4610[yyj4610] + yyv4613.CodecDecodeSelf(d) } } else { @@ -55115,17 +57896,17 @@ func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodAffinityTerm{} - yyc1 = true + if yyj4610 < len(yyv4610) { + yyv4610 = yyv4610[:yyj4610] + yyc4610 = true + } else if yyj4610 == 0 && yyv4610 == nil { + yyv4610 = []PodAffinityTerm{} + yyc4610 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4610.End() + if yyc4610 { + *v = yyv4610 } } @@ -55134,10 +57915,10 @@ func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinity z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4614 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4615 := &yyv4614 + yy4615.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55147,86 +57928,83 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []WeightedPodAffinityTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4616 > 0 { + var yyrr4616, yyrl4616 int + var yyrt4616 bool + if yyl4616 > cap(yyv4616) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]WeightedPodAffinityTerm, yyrl1) + yyv4616 = make([]WeightedPodAffinityTerm, yyrl4616) } } else { - yyv1 = make([]WeightedPodAffinityTerm, yyrl1) + yyv4616 = make([]WeightedPodAffinityTerm, yyrl4616) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4616 = true + yyrr4616 = len(yyv4616) + if yyrg4616 { + copy(yyv4616, yyv24616) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4616 != len(yyv4616) { + yyv4616 = yyv4616[:yyl4616] + yyc4616 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4616 := 0 + for ; yyj4616 < yyrr4616; yyj4616++ { + yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv1[yyj1] = WeightedPodAffinityTerm{} + yyv4616[yyj4616] = WeightedPodAffinityTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4617 := &yyv4616[yyj4616] + yyv4617.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, WeightedPodAffinityTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4616 { + for ; yyj4616 < yyl4616; yyj4616++ { + yyv4616 = append(yyv4616, WeightedPodAffinityTerm{}) + yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv1[yyj1] = WeightedPodAffinityTerm{} + yyv4616[yyj4616] = WeightedPodAffinityTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4618 := &yyv4616[yyj4616] + yyv4618.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4616 := 0 + for ; !r.CheckBreak(); yyj4616++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, WeightedPodAffinityTerm{}) // var yyz1 WeightedPodAffinityTerm - yyc1 = true + if yyj4616 >= len(yyv4616) { + yyv4616 = append(yyv4616, WeightedPodAffinityTerm{}) // var yyz4616 WeightedPodAffinityTerm + yyc4616 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4616.ElemContainerState(yyj4616) + if yyj4616 < len(yyv4616) { if r.TryDecodeAsNil() { - yyv1[yyj1] = WeightedPodAffinityTerm{} + yyv4616[yyj4616] = WeightedPodAffinityTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4619 := &yyv4616[yyj4616] + yyv4619.CodecDecodeSelf(d) } } else { @@ -55234,17 +58012,17 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []WeightedPodAffinityTerm{} - yyc1 = true + if yyj4616 < len(yyv4616) { + yyv4616 = yyv4616[:yyj4616] + yyc4616 = true + } else if yyj4616 == 0 && yyv4616 == nil { + yyv4616 = []WeightedPodAffinityTerm{} + yyc4616 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4616.End() + if yyc4616 { + *v = yyv4616 } } @@ -55253,10 +58031,10 @@ func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredScheduling z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4620 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4621 := &yyv4620 + yy4621.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55266,86 +58044,547 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PreferredSchedulingTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl4622 > 0 { + var yyrr4622, yyrl4622 int + var yyrt4622 bool + if yyl4622 > cap(yyv4622) { + + 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 { + yyv4622 = make([]PreferredSchedulingTerm, yyrl4622) + } + } else { + yyv4622 = make([]PreferredSchedulingTerm, yyrl4622) + } + yyc4622 = true + yyrr4622 = len(yyv4622) + if yyrg4622 { + copy(yyv4622, yyv24622) + } + } else if yyl4622 != len(yyv4622) { + yyv4622 = yyv4622[:yyl4622] + yyc4622 = true + } + yyj4622 := 0 + for ; yyj4622 < yyrr4622; yyj4622++ { + yyh4622.ElemContainerState(yyj4622) + if r.TryDecodeAsNil() { + yyv4622[yyj4622] = PreferredSchedulingTerm{} + } else { + yyv4623 := &yyv4622[yyj4622] + yyv4623.CodecDecodeSelf(d) + } + + } + if yyrt4622 { + for ; yyj4622 < yyl4622; yyj4622++ { + yyv4622 = append(yyv4622, PreferredSchedulingTerm{}) + yyh4622.ElemContainerState(yyj4622) + if r.TryDecodeAsNil() { + yyv4622[yyj4622] = PreferredSchedulingTerm{} + } else { + yyv4624 := &yyv4622[yyj4622] + yyv4624.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4622 := 0 + for ; !r.CheckBreak(); yyj4622++ { + + if yyj4622 >= len(yyv4622) { + yyv4622 = append(yyv4622, PreferredSchedulingTerm{}) // var yyz4622 PreferredSchedulingTerm + yyc4622 = true + } + yyh4622.ElemContainerState(yyj4622) + if yyj4622 < len(yyv4622) { + if r.TryDecodeAsNil() { + yyv4622[yyj4622] = PreferredSchedulingTerm{} + } else { + yyv4625 := &yyv4622[yyj4622] + yyv4625.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4622 < len(yyv4622) { + yyv4622 = yyv4622[:yyj4622] + yyc4622 = true + } else if yyj4622 == 0 && yyv4622 == nil { + yyv4622 = []PreferredSchedulingTerm{} + yyc4622 = true + } + } + yyh4622.End() + if yyc4622 { + *v = yyv4622 + } +} + +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 _, yyv4626 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4627 := &yyv4626 + yy4627.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 + + 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 yyl4628 > 0 { + var yyrr4628, yyrl4628 int + var yyrt4628 bool + if yyl4628 > cap(yyv4628) { + + 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 { + yyv4628 = make([]Volume, yyrl4628) + } + } else { + yyv4628 = make([]Volume, yyrl4628) + } + yyc4628 = true + yyrr4628 = len(yyv4628) + if yyrg4628 { + copy(yyv4628, yyv24628) + } + } else if yyl4628 != len(yyv4628) { + yyv4628 = yyv4628[:yyl4628] + yyc4628 = true + } + yyj4628 := 0 + for ; yyj4628 < yyrr4628; yyj4628++ { + yyh4628.ElemContainerState(yyj4628) + if r.TryDecodeAsNil() { + yyv4628[yyj4628] = Volume{} + } else { + yyv4629 := &yyv4628[yyj4628] + yyv4629.CodecDecodeSelf(d) + } + + } + if yyrt4628 { + for ; yyj4628 < yyl4628; yyj4628++ { + yyv4628 = append(yyv4628, Volume{}) + yyh4628.ElemContainerState(yyj4628) + if r.TryDecodeAsNil() { + yyv4628[yyj4628] = Volume{} + } else { + 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 { + z.DecSwallow() + } + + } + if yyj4628 < len(yyv4628) { + yyv4628 = yyv4628[:yyj4628] + yyc4628 = true + } else if yyj4628 == 0 && yyv4628 == nil { + yyv4628 = []Volume{} + yyc4628 = true + } + } + yyh4628.End() + if yyc4628 { + *v = yyv4628 + } +} + +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 _, yyv4632 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4633 := &yyv4632 + yy4633.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 + + 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 yyl4634 > 0 { + var yyrr4634, yyrl4634 int + var yyrt4634 bool + if yyl4634 > cap(yyv4634) { + + 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 { + yyv4634 = make([]Container, yyrl4634) + } + } else { + yyv4634 = make([]Container, yyrl4634) + } + yyc4634 = true + yyrr4634 = len(yyv4634) + if yyrg4634 { + copy(yyv4634, yyv24634) + } + } else if yyl4634 != len(yyv4634) { + yyv4634 = yyv4634[:yyl4634] + yyc4634 = true + } + yyj4634 := 0 + for ; yyj4634 < yyrr4634; yyj4634++ { + yyh4634.ElemContainerState(yyj4634) + if r.TryDecodeAsNil() { + yyv4634[yyj4634] = Container{} + } else { + yyv4635 := &yyv4634[yyj4634] + yyv4635.CodecDecodeSelf(d) + } + + } + if yyrt4634 { + for ; yyj4634 < yyl4634; yyj4634++ { + yyv4634 = append(yyv4634, Container{}) + yyh4634.ElemContainerState(yyj4634) + if r.TryDecodeAsNil() { + yyv4634[yyj4634] = Container{} + } else { + yyv4636 := &yyv4634[yyj4634] + yyv4636.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4634 := 0 + for ; !r.CheckBreak(); yyj4634++ { + + if yyj4634 >= len(yyv4634) { + yyv4634 = append(yyv4634, Container{}) // var yyz4634 Container + yyc4634 = true + } + yyh4634.ElemContainerState(yyj4634) + if yyj4634 < len(yyv4634) { + if r.TryDecodeAsNil() { + yyv4634[yyj4634] = Container{} + } else { + yyv4637 := &yyv4634[yyj4634] + yyv4637.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4634 < len(yyv4634) { + yyv4634 = yyv4634[:yyj4634] + yyc4634 = true + } else if yyj4634 == 0 && yyv4634 == nil { + yyv4634 = []Container{} + yyc4634 = true + } + } + yyh4634.End() + if yyc4634 { + *v = yyv4634 + } +} + +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 _, yyv4638 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4639 := &yyv4638 + yy4639.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 + + yyv4640 := *v + yyh4640, yyl4640 := z.DecSliceHelperStart() + var yyc4640 bool + if yyl4640 == 0 { + if yyv4640 == nil { + yyv4640 = []LocalObjectReference{} + yyc4640 = true + } else if len(yyv4640) != 0 { + yyv4640 = yyv4640[:0] + yyc4640 = true + } + } else if yyl4640 > 0 { + var yyrr4640, yyrl4640 int + 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([]LocalObjectReference, yyrl4640) + } + } else { + yyv4640 = make([]LocalObjectReference, yyrl4640) + } + yyc4640 = true + yyrr4640 = len(yyv4640) + if yyrg4640 { + copy(yyv4640, yyv24640) + } + } else if yyl4640 != len(yyv4640) { + yyv4640 = yyv4640[:yyl4640] + yyc4640 = true + } + yyj4640 := 0 + for ; yyj4640 < yyrr4640; yyj4640++ { + yyh4640.ElemContainerState(yyj4640) + if r.TryDecodeAsNil() { + yyv4640[yyj4640] = LocalObjectReference{} + } else { + yyv4641 := &yyv4640[yyj4640] + yyv4641.CodecDecodeSelf(d) + } + + } + if yyrt4640 { + for ; yyj4640 < yyl4640; yyj4640++ { + yyv4640 = append(yyv4640, LocalObjectReference{}) + yyh4640.ElemContainerState(yyj4640) + if r.TryDecodeAsNil() { + yyv4640[yyj4640] = LocalObjectReference{} + } else { + yyv4642 := &yyv4640[yyj4640] + yyv4642.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4640 := 0 + for ; !r.CheckBreak(); yyj4640++ { + + if yyj4640 >= len(yyv4640) { + yyv4640 = append(yyv4640, LocalObjectReference{}) // var yyz4640 LocalObjectReference + yyc4640 = true + } + yyh4640.ElemContainerState(yyj4640) + if yyj4640 < len(yyv4640) { + if r.TryDecodeAsNil() { + yyv4640[yyj4640] = LocalObjectReference{} + } else { + yyv4643 := &yyv4640[yyj4640] + yyv4643.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4640 < len(yyv4640) { + yyv4640 = yyv4640[:yyj4640] + yyc4640 = true + } else if yyj4640 == 0 && yyv4640 == nil { + yyv4640 = []LocalObjectReference{} + yyc4640 = true + } + } + yyh4640.End() + if yyc4640 { + *v = yyv4640 + } +} + +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 _, yyv4644 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4645 := &yyv4644 + yy4645.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 + + yyv4646 := *v + yyh4646, yyl4646 := z.DecSliceHelperStart() + var yyc4646 bool + if yyl4646 == 0 { + if yyv4646 == nil { + yyv4646 = []PodCondition{} + yyc4646 = true + } else if len(yyv4646) != 0 { + yyv4646 = yyv4646[:0] + yyc4646 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4646 > 0 { + var yyrr4646, yyrl4646 int + var yyrt4646 bool + if yyl4646 > cap(yyv4646) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg4646 := len(yyv4646) > 0 + yyv24646 := yyv4646 + yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4646 { + if yyrl4646 <= cap(yyv4646) { + yyv4646 = yyv4646[:yyrl4646] } else { - yyv1 = make([]PreferredSchedulingTerm, yyrl1) + yyv4646 = make([]PodCondition, yyrl4646) } } else { - yyv1 = make([]PreferredSchedulingTerm, yyrl1) + yyv4646 = make([]PodCondition, yyrl4646) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4646 = true + yyrr4646 = len(yyv4646) + if yyrg4646 { + copy(yyv4646, yyv24646) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4646 != len(yyv4646) { + yyv4646 = yyv4646[:yyl4646] + yyc4646 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4646 := 0 + for ; yyj4646 < yyrr4646; yyj4646++ { + yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv1[yyj1] = PreferredSchedulingTerm{} + yyv4646[yyj4646] = PodCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4647 := &yyv4646[yyj4646] + yyv4647.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PreferredSchedulingTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4646 { + for ; yyj4646 < yyl4646; yyj4646++ { + yyv4646 = append(yyv4646, PodCondition{}) + yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv1[yyj1] = PreferredSchedulingTerm{} + yyv4646[yyj4646] = PodCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4648 := &yyv4646[yyj4646] + yyv4648.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4646 := 0 + for ; !r.CheckBreak(); yyj4646++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PreferredSchedulingTerm{}) // var yyz1 PreferredSchedulingTerm - yyc1 = true + if yyj4646 >= len(yyv4646) { + yyv4646 = append(yyv4646, PodCondition{}) // var yyz4646 PodCondition + yyc4646 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4646.ElemContainerState(yyj4646) + if yyj4646 < len(yyv4646) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PreferredSchedulingTerm{} + yyv4646[yyj4646] = PodCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4649 := &yyv4646[yyj4646] + yyv4649.CodecDecodeSelf(d) } } else { @@ -55353,356 +58592,115 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PreferredSchedulingTerm{} - yyc1 = true + if yyj4646 < len(yyv4646) { + yyv4646 = yyv4646[:yyj4646] + yyc4646 = true + } else if yyj4646 == 0 && yyv4646 == nil { + yyv4646 = []PodCondition{} + yyc4646 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4646.End() + if yyc4646 { + *v = yyv4646 } } -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 _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.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 - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Volume{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 176) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]Volume, yyrl1) - } - } else { - yyv1 = make([]Volume, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = Volume{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Volume{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = Volume{} - } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Volume{}) // var yyz1 Volume - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = Volume{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Volume{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -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 _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.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 - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Container{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 256) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]Container, yyrl1) - } - } else { - yyv1 = make([]Container, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = Container{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Container{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = Container{} - } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Container{}) // var yyz1 Container - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = Container{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Container{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4650 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4651 := &yyv4650 + yy4651.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LocalObjectReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4652 > 0 { + var yyrr4652, yyrl4652 int + var yyrt4652 bool + if yyl4652 > cap(yyv4652) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LocalObjectReference, yyrl1) + yyv4652 = make([]ContainerStatus, yyrl4652) } } else { - yyv1 = make([]LocalObjectReference, yyrl1) + yyv4652 = make([]ContainerStatus, yyrl4652) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4652 = true + yyrr4652 = len(yyv4652) + if yyrg4652 { + copy(yyv4652, yyv24652) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4652 != len(yyv4652) { + yyv4652 = yyv4652[:yyl4652] + yyc4652 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4652 := 0 + for ; yyj4652 < yyrr4652; yyj4652++ { + yyh4652.ElemContainerState(yyj4652) if r.TryDecodeAsNil() { - yyv1[yyj1] = LocalObjectReference{} + yyv4652[yyj4652] = ContainerStatus{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4653 := &yyv4652[yyj4652] + yyv4653.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LocalObjectReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt4652 { + for ; yyj4652 < yyl4652; yyj4652++ { + yyv4652 = append(yyv4652, ContainerStatus{}) + yyh4652.ElemContainerState(yyj4652) if r.TryDecodeAsNil() { - yyv1[yyj1] = LocalObjectReference{} + yyv4652[yyj4652] = ContainerStatus{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4654 := &yyv4652[yyj4652] + yyv4654.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4652 := 0 + for ; !r.CheckBreak(); yyj4652++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LocalObjectReference{}) // var yyz1 LocalObjectReference - yyc1 = true + if yyj4652 >= len(yyv4652) { + yyv4652 = append(yyv4652, ContainerStatus{}) // var yyz4652 ContainerStatus + yyc4652 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4652.ElemContainerState(yyj4652) + if yyj4652 < len(yyv4652) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LocalObjectReference{} + yyv4652[yyj4652] = ContainerStatus{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4655 := &yyv4652[yyj4652] + yyv4655.CodecDecodeSelf(d) } } else { @@ -55710,118 +58708,115 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LocalObjectReference{} - yyc1 = true + if yyj4652 < len(yyv4652) { + yyv4652 = yyv4652[:yyj4652] + yyc4652 = true + } else if yyj4652 == 0 && yyv4652 == nil { + yyv4652 = []ContainerStatus{} + yyc4652 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4652.End() + if yyc4652 { + *v = yyv4652 } } -func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, 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 _, yyv1 := range v { + for _, yyv4656 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4657 := &yyv4656 + yy4657.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4658 > 0 { + var yyrr4658, yyrl4658 int + var yyrt4658 bool + if yyl4658 > cap(yyv4658) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodCondition, yyrl1) + yyv4658 = make([]PodTemplate, yyrl4658) } } else { - yyv1 = make([]PodCondition, yyrl1) + yyv4658 = make([]PodTemplate, yyrl4658) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4658 = true + yyrr4658 = len(yyv4658) + if yyrg4658 { + copy(yyv4658, yyv24658) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4658 != len(yyv4658) { + yyv4658 = yyv4658[:yyl4658] + yyc4658 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4658 := 0 + for ; yyj4658 < yyrr4658; yyj4658++ { + yyh4658.ElemContainerState(yyj4658) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodCondition{} + yyv4658[yyj4658] = PodTemplate{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4659 := &yyv4658[yyj4658] + yyv4659.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt4658 { + for ; yyj4658 < yyl4658; yyj4658++ { + yyv4658 = append(yyv4658, PodTemplate{}) + yyh4658.ElemContainerState(yyj4658) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodCondition{} + yyv4658[yyj4658] = PodTemplate{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4660 := &yyv4658[yyj4658] + yyv4660.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4658 := 0 + for ; !r.CheckBreak(); yyj4658++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodCondition{}) // var yyz1 PodCondition - yyc1 = true + if yyj4658 >= len(yyv4658) { + yyv4658 = append(yyv4658, PodTemplate{}) // var yyz4658 PodTemplate + yyc4658 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4658.ElemContainerState(yyj4658) + if yyj4658 < len(yyv4658) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodCondition{} + yyv4658[yyj4658] = PodTemplate{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4661 := &yyv4658[yyj4658] + yyv4661.CodecDecodeSelf(d) } } else { @@ -55829,118 +58824,115 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodCondition{} - yyc1 = true + if yyj4658 < len(yyv4658) { + yyv4658 = yyv4658[:yyj4658] + yyc4658 = true + } else if yyj4658 == 0 && yyv4658 == nil { + yyv4658 = []PodTemplate{} + yyc4658 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4658.End() + if yyc4658 { + *v = yyv4658 } } -func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4662 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4663 := &yyv4662 + yy4663.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ContainerStatus{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4664 > 0 { + var yyrr4664, yyrl4664 int + var yyrt4664 bool + if yyl4664 > cap(yyv4664) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 120) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ContainerStatus, yyrl1) + yyv4664 = make([]ReplicationController, yyrl4664) } } else { - yyv1 = make([]ContainerStatus, yyrl1) + yyv4664 = make([]ReplicationController, yyrl4664) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4664 = true + yyrr4664 = len(yyv4664) + if yyrg4664 { + copy(yyv4664, yyv24664) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4664 != len(yyv4664) { + yyv4664 = yyv4664[:yyl4664] + yyc4664 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4664 := 0 + for ; yyj4664 < yyrr4664; yyj4664++ { + yyh4664.ElemContainerState(yyj4664) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerStatus{} + yyv4664[yyj4664] = ReplicationController{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4665 := &yyv4664[yyj4664] + yyv4665.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ContainerStatus{}) - yyh1.ElemContainerState(yyj1) + if yyrt4664 { + for ; yyj4664 < yyl4664; yyj4664++ { + yyv4664 = append(yyv4664, ReplicationController{}) + yyh4664.ElemContainerState(yyj4664) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerStatus{} + yyv4664[yyj4664] = ReplicationController{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4666 := &yyv4664[yyj4664] + yyv4666.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4664 := 0 + for ; !r.CheckBreak(); yyj4664++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ContainerStatus{}) // var yyz1 ContainerStatus - yyc1 = true + if yyj4664 >= len(yyv4664) { + yyv4664 = append(yyv4664, ReplicationController{}) // var yyz4664 ReplicationController + yyc4664 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4664.ElemContainerState(yyj4664) + if yyj4664 < len(yyv4664) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerStatus{} + yyv4664[yyj4664] = ReplicationController{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4667 := &yyv4664[yyj4664] + yyv4667.CodecDecodeSelf(d) } } else { @@ -55948,118 +58940,115 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ContainerStatus{} - yyc1 = true + if yyj4664 < len(yyv4664) { + yyv4664 = yyv4664[:yyj4664] + yyc4664 = true + } else if yyj4664 == 0 && yyv4664 == nil { + yyv4664 = []ReplicationController{} + yyc4664 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4664.End() + if yyc4664 { + *v = yyv4664 } } -func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4668 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4669 := &yyv4668 + yy4669.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodTemplate{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4670 > 0 { + var yyrr4670, yyrl4670 int + var yyrt4670 bool + if yyl4670 > cap(yyv4670) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 672) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodTemplate, yyrl1) + yyv4670 = make([]Service, yyrl4670) } } else { - yyv1 = make([]PodTemplate, yyrl1) + yyv4670 = make([]Service, yyrl4670) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4670 = true + yyrr4670 = len(yyv4670) + if yyrg4670 { + copy(yyv4670, yyv24670) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4670 != len(yyv4670) { + yyv4670 = yyv4670[:yyl4670] + yyc4670 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4670 := 0 + for ; yyj4670 < yyrr4670; yyj4670++ { + yyh4670.ElemContainerState(yyj4670) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodTemplate{} + yyv4670[yyj4670] = Service{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4671 := &yyv4670[yyj4670] + yyv4671.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodTemplate{}) - yyh1.ElemContainerState(yyj1) + if yyrt4670 { + for ; yyj4670 < yyl4670; yyj4670++ { + yyv4670 = append(yyv4670, Service{}) + yyh4670.ElemContainerState(yyj4670) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodTemplate{} + yyv4670[yyj4670] = Service{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4672 := &yyv4670[yyj4670] + yyv4672.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4670 := 0 + for ; !r.CheckBreak(); yyj4670++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodTemplate{}) // var yyz1 PodTemplate - yyc1 = true + if yyj4670 >= len(yyv4670) { + yyv4670 = append(yyv4670, Service{}) // var yyz4670 Service + yyc4670 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4670.ElemContainerState(yyj4670) + if yyj4670 < len(yyv4670) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodTemplate{} + yyv4670[yyj4670] = Service{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4673 := &yyv4670[yyj4670] + yyv4673.CodecDecodeSelf(d) } } else { @@ -56067,118 +59056,115 @@ func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodTemplate{} - yyc1 = true + if yyj4670 < len(yyv4670) { + yyv4670 = yyv4670[:yyj4670] + yyc4670 = true + } else if yyj4670 == 0 && yyv4670 == nil { + yyv4670 = []Service{} + yyc4670 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4670.End() + if yyc4670 { + *v = yyv4670 } } -func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4674 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4675 := &yyv4674 + yy4675.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ReplicationController{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4676 > 0 { + var yyrr4676, yyrl4676 int + var yyrt4676 bool + if yyl4676 > cap(yyv4676) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ReplicationController, yyrl1) + yyv4676 = make([]LoadBalancerIngress, yyrl4676) } } else { - yyv1 = make([]ReplicationController, yyrl1) + yyv4676 = make([]LoadBalancerIngress, yyrl4676) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4676 = true + yyrr4676 = len(yyv4676) + if yyrg4676 { + copy(yyv4676, yyv24676) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4676 != len(yyv4676) { + yyv4676 = yyv4676[:yyl4676] + yyc4676 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4676 := 0 + for ; yyj4676 < yyrr4676; yyj4676++ { + yyh4676.ElemContainerState(yyj4676) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicationController{} + yyv4676[yyj4676] = LoadBalancerIngress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4677 := &yyv4676[yyj4676] + yyv4677.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ReplicationController{}) - yyh1.ElemContainerState(yyj1) + if yyrt4676 { + for ; yyj4676 < yyl4676; yyj4676++ { + yyv4676 = append(yyv4676, LoadBalancerIngress{}) + yyh4676.ElemContainerState(yyj4676) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicationController{} + yyv4676[yyj4676] = LoadBalancerIngress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4678 := &yyv4676[yyj4676] + yyv4678.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4676 := 0 + for ; !r.CheckBreak(); yyj4676++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ReplicationController{}) // var yyz1 ReplicationController - yyc1 = true + if yyj4676 >= len(yyv4676) { + yyv4676 = append(yyv4676, LoadBalancerIngress{}) // var yyz4676 LoadBalancerIngress + yyc4676 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4676.ElemContainerState(yyj4676) + if yyj4676 < len(yyv4676) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicationController{} + yyv4676[yyj4676] = LoadBalancerIngress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4679 := &yyv4676[yyj4676] + yyv4679.CodecDecodeSelf(d) } } else { @@ -56186,118 +59172,115 @@ func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationControlle } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ReplicationController{} - yyc1 = true + if yyj4676 < len(yyv4676) { + yyv4676 = yyv4676[:yyj4676] + yyc4676 = true + } else if yyj4676 == 0 && yyv4676 == nil { + yyv4676 = []LoadBalancerIngress{} + yyc4676 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4676.End() + if yyc4676 { + *v = yyv4676 } } -func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4680 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4681 := &yyv4680 + yy4681.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Service{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4682 > 0 { + var yyrr4682, yyrl4682 int + var yyrt4682 bool + if yyl4682 > cap(yyv4682) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 408) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Service, yyrl1) + yyv4682 = make([]ServicePort, yyrl4682) } } else { - yyv1 = make([]Service, yyrl1) + yyv4682 = make([]ServicePort, yyrl4682) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4682 = true + yyrr4682 = len(yyv4682) + if yyrg4682 { + copy(yyv4682, yyv24682) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4682 != len(yyv4682) { + yyv4682 = yyv4682[:yyl4682] + yyc4682 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4682 := 0 + for ; yyj4682 < yyrr4682; yyj4682++ { + yyh4682.ElemContainerState(yyj4682) if r.TryDecodeAsNil() { - yyv1[yyj1] = Service{} + yyv4682[yyj4682] = ServicePort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4683 := &yyv4682[yyj4682] + yyv4683.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Service{}) - yyh1.ElemContainerState(yyj1) + if yyrt4682 { + for ; yyj4682 < yyl4682; yyj4682++ { + yyv4682 = append(yyv4682, ServicePort{}) + yyh4682.ElemContainerState(yyj4682) if r.TryDecodeAsNil() { - yyv1[yyj1] = Service{} + yyv4682[yyj4682] = ServicePort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4684 := &yyv4682[yyj4682] + yyv4684.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4682 := 0 + for ; !r.CheckBreak(); yyj4682++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Service{}) // var yyz1 Service - yyc1 = true + if yyj4682 >= len(yyv4682) { + yyv4682 = append(yyv4682, ServicePort{}) // var yyz4682 ServicePort + yyc4682 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4682.ElemContainerState(yyj4682) + if yyj4682 < len(yyv4682) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Service{} + yyv4682[yyj4682] = ServicePort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4685 := &yyv4682[yyj4682] + yyv4685.CodecDecodeSelf(d) } } else { @@ -56305,118 +59288,115 @@ func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Service{} - yyc1 = true + if yyj4682 < len(yyv4682) { + yyv4682 = yyv4682[:yyj4682] + yyc4682 = true + } else if yyj4682 == 0 && yyv4682 == nil { + yyv4682 = []ServicePort{} + yyc4682 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4682.End() + if yyc4682 { + *v = yyv4682 } } -func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4686 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4687 := &yyv4686 + yy4687.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LoadBalancerIngress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4688 > 0 { + var yyrr4688, yyrl4688 int + var yyrt4688 bool + if yyl4688 > cap(yyv4688) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LoadBalancerIngress, yyrl1) + yyv4688 = make([]ObjectReference, yyrl4688) } } else { - yyv1 = make([]LoadBalancerIngress, yyrl1) + yyv4688 = make([]ObjectReference, yyrl4688) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4688 = true + yyrr4688 = len(yyv4688) + if yyrg4688 { + copy(yyv4688, yyv24688) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4688 != len(yyv4688) { + yyv4688 = yyv4688[:yyl4688] + yyc4688 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4688 := 0 + for ; yyj4688 < yyrr4688; yyj4688++ { + yyh4688.ElemContainerState(yyj4688) if r.TryDecodeAsNil() { - yyv1[yyj1] = LoadBalancerIngress{} + yyv4688[yyj4688] = ObjectReference{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4689 := &yyv4688[yyj4688] + yyv4689.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LoadBalancerIngress{}) - yyh1.ElemContainerState(yyj1) + if yyrt4688 { + for ; yyj4688 < yyl4688; yyj4688++ { + yyv4688 = append(yyv4688, ObjectReference{}) + yyh4688.ElemContainerState(yyj4688) if r.TryDecodeAsNil() { - yyv1[yyj1] = LoadBalancerIngress{} + yyv4688[yyj4688] = ObjectReference{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4690 := &yyv4688[yyj4688] + yyv4690.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4688 := 0 + for ; !r.CheckBreak(); yyj4688++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LoadBalancerIngress{}) // var yyz1 LoadBalancerIngress - yyc1 = true + if yyj4688 >= len(yyv4688) { + yyv4688 = append(yyv4688, ObjectReference{}) // var yyz4688 ObjectReference + yyc4688 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4688.ElemContainerState(yyj4688) + if yyj4688 < len(yyv4688) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LoadBalancerIngress{} + yyv4688[yyj4688] = ObjectReference{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4691 := &yyv4688[yyj4688] + yyv4691.CodecDecodeSelf(d) } } else { @@ -56424,118 +59404,115 @@ func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LoadBalancerIngress{} - yyc1 = true + if yyj4688 < len(yyv4688) { + yyv4688 = yyv4688[:yyj4688] + yyc4688 = true + } else if yyj4688 == 0 && yyv4688 == nil { + yyv4688 = []ObjectReference{} + yyc4688 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4688.End() + if yyc4688 { + *v = yyv4688 } } -func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4692 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4693 := &yyv4692 + yy4693.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ServicePort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4694 > 0 { + var yyrr4694, yyrl4694 int + var yyrt4694 bool + if yyl4694 > cap(yyv4694) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 80) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ServicePort, yyrl1) + yyv4694 = make([]ServiceAccount, yyrl4694) } } else { - yyv1 = make([]ServicePort, yyrl1) + yyv4694 = make([]ServiceAccount, yyrl4694) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4694 = true + yyrr4694 = len(yyv4694) + if yyrg4694 { + copy(yyv4694, yyv24694) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4694 != len(yyv4694) { + yyv4694 = yyv4694[:yyl4694] + yyc4694 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4694 := 0 + for ; yyj4694 < yyrr4694; yyj4694++ { + yyh4694.ElemContainerState(yyj4694) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServicePort{} + yyv4694[yyj4694] = ServiceAccount{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4695 := &yyv4694[yyj4694] + yyv4695.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ServicePort{}) - yyh1.ElemContainerState(yyj1) + if yyrt4694 { + for ; yyj4694 < yyl4694; yyj4694++ { + yyv4694 = append(yyv4694, ServiceAccount{}) + yyh4694.ElemContainerState(yyj4694) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServicePort{} + yyv4694[yyj4694] = ServiceAccount{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4696 := &yyv4694[yyj4694] + yyv4696.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4694 := 0 + for ; !r.CheckBreak(); yyj4694++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ServicePort{}) // var yyz1 ServicePort - yyc1 = true + if yyj4694 >= len(yyv4694) { + yyv4694 = append(yyv4694, ServiceAccount{}) // var yyz4694 ServiceAccount + yyc4694 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4694.ElemContainerState(yyj4694) + if yyj4694 < len(yyv4694) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ServicePort{} + yyv4694[yyj4694] = ServiceAccount{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4697 := &yyv4694[yyj4694] + yyv4697.CodecDecodeSelf(d) } } else { @@ -56543,118 +59520,115 @@ func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ServicePort{} - yyc1 = true + if yyj4694 < len(yyv4694) { + yyv4694 = yyv4694[:yyj4694] + yyc4694 = true + } else if yyj4694 == 0 && yyv4694 == nil { + yyv4694 = []ServiceAccount{} + yyc4694 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4694.End() + if yyc4694 { + *v = yyv4694 } } -func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4698 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4699 := &yyv4698 + yy4699.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ObjectReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4700 > 0 { + var yyrr4700, yyrl4700 int + var yyrt4700 bool + if yyl4700 > cap(yyv4700) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ObjectReference, yyrl1) + yyv4700 = make([]EndpointSubset, yyrl4700) } } else { - yyv1 = make([]ObjectReference, yyrl1) + yyv4700 = make([]EndpointSubset, yyrl4700) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4700 = true + yyrr4700 = len(yyv4700) + if yyrg4700 { + copy(yyv4700, yyv24700) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4700 != len(yyv4700) { + yyv4700 = yyv4700[:yyl4700] + yyc4700 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4700 := 0 + for ; yyj4700 < yyrr4700; yyj4700++ { + yyh4700.ElemContainerState(yyj4700) if r.TryDecodeAsNil() { - yyv1[yyj1] = ObjectReference{} + yyv4700[yyj4700] = EndpointSubset{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4701 := &yyv4700[yyj4700] + yyv4701.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ObjectReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt4700 { + for ; yyj4700 < yyl4700; yyj4700++ { + yyv4700 = append(yyv4700, EndpointSubset{}) + yyh4700.ElemContainerState(yyj4700) if r.TryDecodeAsNil() { - yyv1[yyj1] = ObjectReference{} + yyv4700[yyj4700] = EndpointSubset{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4702 := &yyv4700[yyj4700] + yyv4702.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4700 := 0 + for ; !r.CheckBreak(); yyj4700++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ObjectReference{}) // var yyz1 ObjectReference - yyc1 = true + if yyj4700 >= len(yyv4700) { + yyv4700 = append(yyv4700, EndpointSubset{}) // var yyz4700 EndpointSubset + yyc4700 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4700.ElemContainerState(yyj4700) + if yyj4700 < len(yyv4700) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ObjectReference{} + yyv4700[yyj4700] = EndpointSubset{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4703 := &yyv4700[yyj4700] + yyv4703.CodecDecodeSelf(d) } } else { @@ -56662,118 +59636,115 @@ func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ObjectReference{} - yyc1 = true + if yyj4700 < len(yyv4700) { + yyv4700 = yyv4700[:yyj4700] + yyc4700 = true + } else if yyj4700 == 0 && yyv4700 == nil { + yyv4700 = []EndpointSubset{} + yyc4700 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4700.End() + if yyc4700 { + *v = yyv4700 } } -func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4704 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4705 := &yyv4704 + yy4705.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ServiceAccount{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4706 > 0 { + var yyrr4706, yyrl4706 int + var yyrt4706 bool + if yyl4706 > cap(yyv4706) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 288) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ServiceAccount, yyrl1) + yyv4706 = make([]EndpointAddress, yyrl4706) } } else { - yyv1 = make([]ServiceAccount, yyrl1) + yyv4706 = make([]EndpointAddress, yyrl4706) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4706 = true + yyrr4706 = len(yyv4706) + if yyrg4706 { + copy(yyv4706, yyv24706) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4706 != len(yyv4706) { + yyv4706 = yyv4706[:yyl4706] + yyc4706 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4706 := 0 + for ; yyj4706 < yyrr4706; yyj4706++ { + yyh4706.ElemContainerState(yyj4706) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServiceAccount{} + yyv4706[yyj4706] = EndpointAddress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4707 := &yyv4706[yyj4706] + yyv4707.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ServiceAccount{}) - yyh1.ElemContainerState(yyj1) + if yyrt4706 { + for ; yyj4706 < yyl4706; yyj4706++ { + yyv4706 = append(yyv4706, EndpointAddress{}) + yyh4706.ElemContainerState(yyj4706) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServiceAccount{} + yyv4706[yyj4706] = EndpointAddress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4708 := &yyv4706[yyj4706] + yyv4708.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4706 := 0 + for ; !r.CheckBreak(); yyj4706++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ServiceAccount{}) // var yyz1 ServiceAccount - yyc1 = true + if yyj4706 >= len(yyv4706) { + yyv4706 = append(yyv4706, EndpointAddress{}) // var yyz4706 EndpointAddress + yyc4706 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4706.ElemContainerState(yyj4706) + if yyj4706 < len(yyv4706) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ServiceAccount{} + yyv4706[yyj4706] = EndpointAddress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4709 := &yyv4706[yyj4706] + yyv4709.CodecDecodeSelf(d) } } else { @@ -56781,118 +59752,115 @@ func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ServiceAccount{} - yyc1 = true + if yyj4706 < len(yyv4706) { + yyv4706 = yyv4706[:yyj4706] + yyc4706 = true + } else if yyj4706 == 0 && yyv4706 == nil { + yyv4706 = []EndpointAddress{} + yyc4706 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4706.End() + if yyc4706 { + *v = yyv4706 } } -func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4710 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4711 := &yyv4710 + yy4711.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EndpointSubset{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4712 > 0 { + var yyrr4712, yyrl4712 int + var yyrt4712 bool + if yyl4712 > cap(yyv4712) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EndpointSubset, yyrl1) + yyv4712 = make([]EndpointPort, yyrl4712) } } else { - yyv1 = make([]EndpointSubset, yyrl1) + yyv4712 = make([]EndpointPort, yyrl4712) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4712 = true + yyrr4712 = len(yyv4712) + if yyrg4712 { + copy(yyv4712, yyv24712) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4712 != len(yyv4712) { + yyv4712 = yyv4712[:yyl4712] + yyc4712 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4712 := 0 + for ; yyj4712 < yyrr4712; yyj4712++ { + yyh4712.ElemContainerState(yyj4712) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointSubset{} + yyv4712[yyj4712] = EndpointPort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4713 := &yyv4712[yyj4712] + yyv4713.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EndpointSubset{}) - yyh1.ElemContainerState(yyj1) + if yyrt4712 { + for ; yyj4712 < yyl4712; yyj4712++ { + yyv4712 = append(yyv4712, EndpointPort{}) + yyh4712.ElemContainerState(yyj4712) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointSubset{} + yyv4712[yyj4712] = EndpointPort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4714 := &yyv4712[yyj4712] + yyv4714.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4712 := 0 + for ; !r.CheckBreak(); yyj4712++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EndpointSubset{}) // var yyz1 EndpointSubset - yyc1 = true + if yyj4712 >= len(yyv4712) { + yyv4712 = append(yyv4712, EndpointPort{}) // var yyz4712 EndpointPort + yyc4712 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4712.ElemContainerState(yyj4712) + if yyj4712 < len(yyv4712) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointSubset{} + yyv4712[yyj4712] = EndpointPort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4715 := &yyv4712[yyj4712] + yyv4715.CodecDecodeSelf(d) } } else { @@ -56900,118 +59868,115 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EndpointSubset{} - yyc1 = true + if yyj4712 < len(yyv4712) { + yyv4712 = yyv4712[:yyj4712] + yyc4712 = true + } else if yyj4712 == 0 && yyv4712 == nil { + yyv4712 = []EndpointPort{} + yyc4712 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4712.End() + if yyc4712 { + *v = yyv4712 } } -func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4716 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4717 := &yyv4716 + yy4717.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EndpointAddress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4718 > 0 { + var yyrr4718, yyrl4718 int + var yyrt4718 bool + if yyl4718 > cap(yyv4718) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EndpointAddress, yyrl1) + yyv4718 = make([]Endpoints, yyrl4718) } } else { - yyv1 = make([]EndpointAddress, yyrl1) + yyv4718 = make([]Endpoints, yyrl4718) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4718 = true + yyrr4718 = len(yyv4718) + if yyrg4718 { + copy(yyv4718, yyv24718) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4718 != len(yyv4718) { + yyv4718 = yyv4718[:yyl4718] + yyc4718 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4718 := 0 + for ; yyj4718 < yyrr4718; yyj4718++ { + yyh4718.ElemContainerState(yyj4718) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointAddress{} + yyv4718[yyj4718] = Endpoints{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4719 := &yyv4718[yyj4718] + yyv4719.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EndpointAddress{}) - yyh1.ElemContainerState(yyj1) + if yyrt4718 { + for ; yyj4718 < yyl4718; yyj4718++ { + yyv4718 = append(yyv4718, Endpoints{}) + yyh4718.ElemContainerState(yyj4718) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointAddress{} + yyv4718[yyj4718] = Endpoints{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4720 := &yyv4718[yyj4718] + yyv4720.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4718 := 0 + for ; !r.CheckBreak(); yyj4718++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EndpointAddress{}) // var yyz1 EndpointAddress - yyc1 = true + if yyj4718 >= len(yyv4718) { + yyv4718 = append(yyv4718, Endpoints{}) // var yyz4718 Endpoints + yyc4718 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4718.ElemContainerState(yyj4718) + if yyj4718 < len(yyv4718) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointAddress{} + yyv4718[yyj4718] = Endpoints{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4721 := &yyv4718[yyj4718] + yyv4721.CodecDecodeSelf(d) } } else { @@ -57019,118 +59984,115 @@ func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EndpointAddress{} - yyc1 = true + if yyj4718 < len(yyv4718) { + yyv4718 = yyv4718[:yyj4718] + yyc4718 = true + } else if yyj4718 == 0 && yyv4718 == nil { + yyv4718 = []Endpoints{} + yyc4718 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4718.End() + if yyc4718 { + *v = yyv4718 } } -func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4722 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4723 := &yyv4722 + yy4723.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EndpointPort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4724 > 0 { + var yyrr4724, yyrl4724 int + var yyrt4724 bool + if yyl4724 > cap(yyv4724) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EndpointPort, yyrl1) + yyv4724 = make([]NodeCondition, yyrl4724) } } else { - yyv1 = make([]EndpointPort, yyrl1) + yyv4724 = make([]NodeCondition, yyrl4724) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4724 = true + yyrr4724 = len(yyv4724) + if yyrg4724 { + copy(yyv4724, yyv24724) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4724 != len(yyv4724) { + yyv4724 = yyv4724[:yyl4724] + yyc4724 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4724 := 0 + for ; yyj4724 < yyrr4724; yyj4724++ { + yyh4724.ElemContainerState(yyj4724) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointPort{} + yyv4724[yyj4724] = NodeCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4725 := &yyv4724[yyj4724] + yyv4725.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EndpointPort{}) - yyh1.ElemContainerState(yyj1) + if yyrt4724 { + for ; yyj4724 < yyl4724; yyj4724++ { + yyv4724 = append(yyv4724, NodeCondition{}) + yyh4724.ElemContainerState(yyj4724) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointPort{} + yyv4724[yyj4724] = NodeCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4726 := &yyv4724[yyj4724] + yyv4726.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4724 := 0 + for ; !r.CheckBreak(); yyj4724++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EndpointPort{}) // var yyz1 EndpointPort - yyc1 = true + if yyj4724 >= len(yyv4724) { + yyv4724 = append(yyv4724, NodeCondition{}) // var yyz4724 NodeCondition + yyc4724 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4724.ElemContainerState(yyj4724) + if yyj4724 < len(yyv4724) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointPort{} + yyv4724[yyj4724] = NodeCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4727 := &yyv4724[yyj4724] + yyv4727.CodecDecodeSelf(d) } } else { @@ -57138,118 +60100,115 @@ func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EndpointPort{} - yyc1 = true + if yyj4724 < len(yyv4724) { + yyv4724 = yyv4724[:yyj4724] + yyc4724 = true + } else if yyj4724 == 0 && yyv4724 == nil { + yyv4724 = []NodeCondition{} + yyc4724 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4724.End() + if yyc4724 { + *v = yyv4724 } } -func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4728 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4729 := &yyv4728 + yy4729.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Endpoints{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4730 > 0 { + var yyrr4730, yyrl4730 int + var yyrt4730 bool + if yyl4730 > cap(yyv4730) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Endpoints, yyrl1) + yyv4730 = make([]NodeAddress, yyrl4730) } } else { - yyv1 = make([]Endpoints, yyrl1) + yyv4730 = make([]NodeAddress, yyrl4730) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4730 = true + yyrr4730 = len(yyv4730) + if yyrg4730 { + copy(yyv4730, yyv24730) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4730 != len(yyv4730) { + yyv4730 = yyv4730[:yyl4730] + yyc4730 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4730 := 0 + for ; yyj4730 < yyrr4730; yyj4730++ { + yyh4730.ElemContainerState(yyj4730) if r.TryDecodeAsNil() { - yyv1[yyj1] = Endpoints{} + yyv4730[yyj4730] = NodeAddress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4731 := &yyv4730[yyj4730] + yyv4731.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Endpoints{}) - yyh1.ElemContainerState(yyj1) + if yyrt4730 { + for ; yyj4730 < yyl4730; yyj4730++ { + yyv4730 = append(yyv4730, NodeAddress{}) + yyh4730.ElemContainerState(yyj4730) if r.TryDecodeAsNil() { - yyv1[yyj1] = Endpoints{} + yyv4730[yyj4730] = NodeAddress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4732 := &yyv4730[yyj4730] + yyv4732.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4730 := 0 + for ; !r.CheckBreak(); yyj4730++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Endpoints{}) // var yyz1 Endpoints - yyc1 = true + if yyj4730 >= len(yyv4730) { + yyv4730 = append(yyv4730, NodeAddress{}) // var yyz4730 NodeAddress + yyc4730 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4730.ElemContainerState(yyj4730) + if yyj4730 < len(yyv4730) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Endpoints{} + yyv4730[yyj4730] = NodeAddress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4733 := &yyv4730[yyj4730] + yyv4733.CodecDecodeSelf(d) } } else { @@ -57257,118 +60216,115 @@ func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Endpoints{} - yyc1 = true + if yyj4730 < len(yyv4730) { + yyv4730 = yyv4730[:yyj4730] + yyc4730 = true + } else if yyj4730 == 0 && yyv4730 == nil { + yyv4730 = []NodeAddress{} + yyc4730 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4730.End() + if yyc4730 { + *v = yyv4730 } } -func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4734 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4735 := &yyv4734 + yy4735.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4736 > 0 { + var yyrr4736, yyrl4736 int + var yyrt4736 bool + if yyl4736 > cap(yyv4736) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NodeCondition, yyrl1) + yyv4736 = make([]ContainerImage, yyrl4736) } } else { - yyv1 = make([]NodeCondition, yyrl1) + yyv4736 = make([]ContainerImage, yyrl4736) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4736 = true + yyrr4736 = len(yyv4736) + if yyrg4736 { + copy(yyv4736, yyv24736) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4736 != len(yyv4736) { + yyv4736 = yyv4736[:yyl4736] + yyc4736 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4736 := 0 + for ; yyj4736 < yyrr4736; yyj4736++ { + yyh4736.ElemContainerState(yyj4736) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeCondition{} + yyv4736[yyj4736] = ContainerImage{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4737 := &yyv4736[yyj4736] + yyv4737.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt4736 { + for ; yyj4736 < yyl4736; yyj4736++ { + yyv4736 = append(yyv4736, ContainerImage{}) + yyh4736.ElemContainerState(yyj4736) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeCondition{} + yyv4736[yyj4736] = ContainerImage{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4738 := &yyv4736[yyj4736] + yyv4738.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4736 := 0 + for ; !r.CheckBreak(); yyj4736++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeCondition{}) // var yyz1 NodeCondition - yyc1 = true + if yyj4736 >= len(yyv4736) { + yyv4736 = append(yyv4736, ContainerImage{}) // var yyz4736 ContainerImage + yyc4736 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4736.ElemContainerState(yyj4736) + if yyj4736 < len(yyv4736) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeCondition{} + yyv4736[yyj4736] = ContainerImage{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4739 := &yyv4736[yyj4736] + yyv4739.CodecDecodeSelf(d) } } else { @@ -57376,118 +60332,106 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeCondition{} - yyc1 = true + if yyj4736 < len(yyv4736) { + yyv4736 = yyv4736[:yyj4736] + yyc4736 = true + } else if yyj4736 == 0 && yyv4736 == nil { + yyv4736 = []ContainerImage{} + yyc4736 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4736.End() + if yyc4736 { + *v = yyv4736 } } -func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4740 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yyv4740.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeAddress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4741 > 0 { + var yyrr4741, yyrl4741 int + var yyrt4741 bool + if yyl4741 > cap(yyv4741) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4741, yyrt4741 = z.DecInferLen(yyl4741, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4741 { + if yyrl4741 <= cap(yyv4741) { + yyv4741 = yyv4741[:yyrl4741] } else { - yyv1 = make([]NodeAddress, yyrl1) + yyv4741 = make([]UniqueVolumeName, yyrl4741) } } else { - yyv1 = make([]NodeAddress, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyv4741 = make([]UniqueVolumeName, yyrl4741) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4741 = true + yyrr4741 = len(yyv4741) + } else if yyl4741 != len(yyv4741) { + yyv4741 = yyv4741[:yyl4741] + yyc4741 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4741 := 0 + for ; yyj4741 < yyrr4741; yyj4741++ { + yyh4741.ElemContainerState(yyj4741) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeAddress{} + yyv4741[yyj4741] = "" } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeAddress{}) - yyh1.ElemContainerState(yyj1) + if yyrt4741 { + for ; yyj4741 < yyl4741; yyj4741++ { + yyv4741 = append(yyv4741, "") + yyh4741.ElemContainerState(yyj4741) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeAddress{} + yyv4741[yyj4741] = "" } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4741 := 0 + for ; !r.CheckBreak(); yyj4741++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeAddress{}) // var yyz1 NodeAddress - yyc1 = true + if yyj4741 >= len(yyv4741) { + yyv4741 = append(yyv4741, "") // var yyz4741 UniqueVolumeName + yyc4741 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4741.ElemContainerState(yyj4741) + if yyj4741 < len(yyv4741) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeAddress{} + yyv4741[yyj4741] = "" } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) } } else { @@ -57495,228 +60439,115 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeAddress{} - yyc1 = true + if yyj4741 < len(yyv4741) { + yyv4741 = yyv4741[:yyj4741] + yyc4741 = true + } else if yyj4741 == 0 && yyv4741 == nil { + yyv4741 = []UniqueVolumeName{} + yyc4741 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4741.End() + if yyc4741 { + *v = yyv4741 } } -func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4745 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4746 := &yyv4745 + yy4746.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ContainerImage{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]ContainerImage, yyrl1) - } - } else { - yyv1 = make([]ContainerImage, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + 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 } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerImage{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } + } else if yyl4747 > 0 { + var yyrr4747, yyrl4747 int + var yyrt4747 bool + if yyl4747 > cap(yyv4747) { - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ContainerImage{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerImage{} + 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 { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4747 = make([]AttachedVolume, yyrl4747) } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ContainerImage{}) // var yyz1 ContainerImage - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerImage{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - } else { - z.DecSwallow() + yyv4747 = make([]AttachedVolume, yyrl4747) } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ContainerImage{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -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 _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.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 - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []UniqueVolumeName{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]UniqueVolumeName, yyrl1) - } - } else { - yyv1 = make([]UniqueVolumeName, yyrl1) + yyc4747 = true + yyrr4747 = len(yyv4747) + if yyrg4747 { + copy(yyv4747, yyv24747) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4747 != len(yyv4747) { + yyv4747 = yyv4747[:yyl4747] + yyc4747 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4747 := 0 + for ; yyj4747 < yyrr4747; yyj4747++ { + yyh4747.ElemContainerState(yyj4747) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4747[yyj4747] = AttachedVolume{} } else { - yyv1[yyj1] = UniqueVolumeName(r.DecodeString()) + yyv4748 := &yyv4747[yyj4747] + yyv4748.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4747 { + for ; yyj4747 < yyl4747; yyj4747++ { + yyv4747 = append(yyv4747, AttachedVolume{}) + yyh4747.ElemContainerState(yyj4747) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4747[yyj4747] = AttachedVolume{} } else { - yyv1[yyj1] = UniqueVolumeName(r.DecodeString()) + yyv4749 := &yyv4747[yyj4747] + yyv4749.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4747 := 0 + for ; !r.CheckBreak(); yyj4747++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 UniqueVolumeName - yyc1 = true + if yyj4747 >= len(yyv4747) { + yyv4747 = append(yyv4747, AttachedVolume{}) // var yyz4747 AttachedVolume + yyc4747 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4747.ElemContainerState(yyj4747) + if yyj4747 < len(yyv4747) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4747[yyj4747] = AttachedVolume{} } else { - yyv1[yyj1] = UniqueVolumeName(r.DecodeString()) + yyv4750 := &yyv4747[yyj4747] + yyv4750.CodecDecodeSelf(d) } } else { @@ -57724,118 +60555,115 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []UniqueVolumeName{} - yyc1 = true + if yyj4747 < len(yyv4747) { + yyv4747 = yyv4747[:yyj4747] + yyc4747 = true + } else if yyj4747 == 0 && yyv4747 == nil { + yyv4747 = []AttachedVolume{} + yyc4747 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4747.End() + if yyc4747 { + *v = yyv4747 } } -func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4751 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4752 := &yyv4751 + yy4752.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []AttachedVolume{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4753 > 0 { + var yyrr4753, yyrl4753 int + var yyrt4753 bool + if yyl4753 > cap(yyv4753) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]AttachedVolume, yyrl1) + yyv4753 = make([]PreferAvoidPodsEntry, yyrl4753) } } else { - yyv1 = make([]AttachedVolume, yyrl1) + yyv4753 = make([]PreferAvoidPodsEntry, yyrl4753) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4753 = true + yyrr4753 = len(yyv4753) + if yyrg4753 { + copy(yyv4753, yyv24753) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4753 != len(yyv4753) { + yyv4753 = yyv4753[:yyl4753] + yyc4753 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4753 := 0 + for ; yyj4753 < yyrr4753; yyj4753++ { + yyh4753.ElemContainerState(yyj4753) if r.TryDecodeAsNil() { - yyv1[yyj1] = AttachedVolume{} + yyv4753[yyj4753] = PreferAvoidPodsEntry{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4754 := &yyv4753[yyj4753] + yyv4754.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, AttachedVolume{}) - yyh1.ElemContainerState(yyj1) + if yyrt4753 { + for ; yyj4753 < yyl4753; yyj4753++ { + yyv4753 = append(yyv4753, PreferAvoidPodsEntry{}) + yyh4753.ElemContainerState(yyj4753) if r.TryDecodeAsNil() { - yyv1[yyj1] = AttachedVolume{} + yyv4753[yyj4753] = PreferAvoidPodsEntry{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4755 := &yyv4753[yyj4753] + yyv4755.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4753 := 0 + for ; !r.CheckBreak(); yyj4753++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, AttachedVolume{}) // var yyz1 AttachedVolume - yyc1 = true + if yyj4753 >= len(yyv4753) { + yyv4753 = append(yyv4753, PreferAvoidPodsEntry{}) // var yyz4753 PreferAvoidPodsEntry + yyc4753 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4753.ElemContainerState(yyj4753) + if yyj4753 < len(yyv4753) { if r.TryDecodeAsNil() { - yyv1[yyj1] = AttachedVolume{} + yyv4753[yyj4753] = PreferAvoidPodsEntry{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4756 := &yyv4753[yyj4753] + yyv4756.CodecDecodeSelf(d) } } else { @@ -57843,17 +60671,17 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []AttachedVolume{} - yyc1 = true + if yyj4753 < len(yyv4753) { + yyv4753 = yyv4753[:yyj4753] + yyc4753 = true + } else if yyj4753 == 0 && yyv4753 == nil { + yyv4753 = []PreferAvoidPodsEntry{} + yyc4753 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4753.End() + if yyc4753 { + *v = yyv4753 } } @@ -57862,19 +60690,19 @@ func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { + for yyk4757, yyv4757 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk1.CodecEncodeSelf(e) + yyk4757.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3 := &yyv1 - yym4 := z.EncBinary() - _ = yym4 + yy4758 := &yyv4757 + yym4759 := z.EncBinary() + _ = yym4759 if false { - } else if z.HasExtensions() && z.EncExt(yy3) { - } else if !yym4 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3) + } else if z.HasExtensions() && z.EncExt(yy4758) { + } else if !yym4759 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4758) } else { - z.EncFallback(yy3) + z.EncFallback(yy4758) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -57885,86 +60713,86 @@ func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 72) - yyv1 = make(map[ResourceName]pkg3_resource.Quantity, yyrl1) - *v = yyv1 + 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 yymk1 ResourceName - var yymv1 pkg3_resource.Quantity - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true + var yymk4760 ResourceName + var yymv4760 pkg3_resource.Quantity + var yymg4760 bool + if yybh4760.MapValueReset { + yymg4760 = true } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + if yyl4760 > 0 { + for yyj4760 := 0; yyj4760 < yyl4760; yyj4760++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4760 = "" } else { - yymk1 = ResourceName(r.DecodeString()) + yymk4760 = ResourceName(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4760 { + yymv4760 = yyv4760[yymk4760] } else { - yymv1 = pkg3_resource.Quantity{} + yymv4760 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = pkg3_resource.Quantity{} + yymv4760 = pkg3_resource.Quantity{} } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 + yyv4762 := &yymv4760 + yym4763 := z.DecBinary() + _ = yym4763 if false { - } else if z.HasExtensions() && z.DecExt(yyv3) { - } else if !yym4 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3) + } else if z.HasExtensions() && z.DecExt(yyv4762) { + } else if !yym4763 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4762) } else { - z.DecFallback(yyv3, false) + z.DecFallback(yyv4762, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4760 != nil { + yyv4760[yymk4760] = yymv4760 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl4760 < 0 { + for yyj4760 := 0; !r.CheckBreak(); yyj4760++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4760 = "" } else { - yymk1 = ResourceName(r.DecodeString()) + yymk4760 = ResourceName(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4760 { + yymv4760 = yyv4760[yymk4760] } else { - yymv1 = pkg3_resource.Quantity{} + yymv4760 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = pkg3_resource.Quantity{} + yymv4760 = pkg3_resource.Quantity{} } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 + yyv4765 := &yymv4760 + yym4766 := z.DecBinary() + _ = yym4766 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv4765) { + } else if !yym4766 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4765) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv4765, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4760 != nil { + yyv4760[yymk4760] = yymv4760 } } } // else len==0: TODO: Should we clear map entries? @@ -57976,10 +60804,10 @@ func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4767 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4768 := &yyv4767 + yy4768.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57989,86 +60817,83 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Node{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4769 > 0 { + var yyrr4769, yyrl4769 int + var yyrt4769 bool + if yyl4769 > cap(yyv4769) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 616) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Node, yyrl1) + yyv4769 = make([]Node, yyrl4769) } } else { - yyv1 = make([]Node, yyrl1) + yyv4769 = make([]Node, yyrl4769) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4769 = true + yyrr4769 = len(yyv4769) + if yyrg4769 { + copy(yyv4769, yyv24769) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4769 != len(yyv4769) { + yyv4769 = yyv4769[:yyl4769] + yyc4769 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4769 := 0 + for ; yyj4769 < yyrr4769; yyj4769++ { + yyh4769.ElemContainerState(yyj4769) if r.TryDecodeAsNil() { - yyv1[yyj1] = Node{} + yyv4769[yyj4769] = Node{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4770 := &yyv4769[yyj4769] + yyv4770.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Node{}) - yyh1.ElemContainerState(yyj1) + if yyrt4769 { + for ; yyj4769 < yyl4769; yyj4769++ { + yyv4769 = append(yyv4769, Node{}) + yyh4769.ElemContainerState(yyj4769) if r.TryDecodeAsNil() { - yyv1[yyj1] = Node{} + yyv4769[yyj4769] = Node{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4771 := &yyv4769[yyj4769] + yyv4771.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4769 := 0 + for ; !r.CheckBreak(); yyj4769++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Node{}) // var yyz1 Node - yyc1 = true + if yyj4769 >= len(yyv4769) { + yyv4769 = append(yyv4769, Node{}) // var yyz4769 Node + yyc4769 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4769.ElemContainerState(yyj4769) + if yyj4769 < len(yyv4769) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Node{} + yyv4769[yyj4769] = Node{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4772 := &yyv4769[yyj4769] + yyv4772.CodecDecodeSelf(d) } } else { @@ -58076,17 +60901,17 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Node{} - yyc1 = true + if yyj4769 < len(yyv4769) { + yyv4769 = yyv4769[:yyj4769] + yyc4769 = true + } else if yyj4769 == 0 && yyv4769 == nil { + yyv4769 = []Node{} + yyc4769 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4769.End() + if yyc4769 { + *v = yyv4769 } } @@ -58095,9 +60920,9 @@ func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4773 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4773.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58107,78 +60932,75 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []FinalizerName{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4774 > 0 { + var yyrr4774, yyrl4774 int + var yyrt4774 bool + if yyl4774 > cap(yyv4774) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4774, yyrt4774 = z.DecInferLen(yyl4774, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4774 { + if yyrl4774 <= cap(yyv4774) { + yyv4774 = yyv4774[:yyrl4774] } else { - yyv1 = make([]FinalizerName, yyrl1) + yyv4774 = make([]FinalizerName, yyrl4774) } } else { - yyv1 = make([]FinalizerName, yyrl1) + yyv4774 = make([]FinalizerName, yyrl4774) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4774 = true + yyrr4774 = len(yyv4774) + } else if yyl4774 != len(yyv4774) { + yyv4774 = yyv4774[:yyl4774] + yyc4774 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4774 := 0 + for ; yyj4774 < yyrr4774; yyj4774++ { + yyh4774.ElemContainerState(yyj4774) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4774[yyj4774] = "" } else { - yyv1[yyj1] = FinalizerName(r.DecodeString()) + yyv4774[yyj4774] = FinalizerName(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4774 { + for ; yyj4774 < yyl4774; yyj4774++ { + yyv4774 = append(yyv4774, "") + yyh4774.ElemContainerState(yyj4774) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4774[yyj4774] = "" } else { - yyv1[yyj1] = FinalizerName(r.DecodeString()) + yyv4774[yyj4774] = FinalizerName(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4774 := 0 + for ; !r.CheckBreak(); yyj4774++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 FinalizerName - yyc1 = true + if yyj4774 >= len(yyv4774) { + yyv4774 = append(yyv4774, "") // var yyz4774 FinalizerName + yyc4774 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4774.ElemContainerState(yyj4774) + if yyj4774 < len(yyv4774) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4774[yyj4774] = "" } else { - yyv1[yyj1] = FinalizerName(r.DecodeString()) + yyv4774[yyj4774] = FinalizerName(r.DecodeString()) } } else { @@ -58186,17 +61008,17 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []FinalizerName{} - yyc1 = true + if yyj4774 < len(yyv4774) { + yyv4774 = yyv4774[:yyj4774] + yyc4774 = true + } else if yyj4774 == 0 && yyv4774 == nil { + yyv4774 = []FinalizerName{} + yyc4774 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4774.End() + if yyc4774 { + *v = yyv4774 } } @@ -58205,10 +61027,10 @@ func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4778 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4779 := &yyv4778 + yy4779.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58218,86 +61040,83 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Namespace{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4780 > 0 { + var yyrr4780, yyrl4780 int + var yyrt4780 bool + if yyl4780 > cap(yyv4780) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Namespace, yyrl1) + yyv4780 = make([]Namespace, yyrl4780) } } else { - yyv1 = make([]Namespace, yyrl1) + yyv4780 = make([]Namespace, yyrl4780) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4780 = true + yyrr4780 = len(yyv4780) + if yyrg4780 { + copy(yyv4780, yyv24780) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4780 != len(yyv4780) { + yyv4780 = yyv4780[:yyl4780] + yyc4780 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4780 := 0 + for ; yyj4780 < yyrr4780; yyj4780++ { + yyh4780.ElemContainerState(yyj4780) if r.TryDecodeAsNil() { - yyv1[yyj1] = Namespace{} + yyv4780[yyj4780] = Namespace{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4781 := &yyv4780[yyj4780] + yyv4781.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Namespace{}) - yyh1.ElemContainerState(yyj1) + if yyrt4780 { + for ; yyj4780 < yyl4780; yyj4780++ { + yyv4780 = append(yyv4780, Namespace{}) + yyh4780.ElemContainerState(yyj4780) if r.TryDecodeAsNil() { - yyv1[yyj1] = Namespace{} + yyv4780[yyj4780] = Namespace{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4782 := &yyv4780[yyj4780] + yyv4782.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4780 := 0 + for ; !r.CheckBreak(); yyj4780++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Namespace{}) // var yyz1 Namespace - yyc1 = true + if yyj4780 >= len(yyv4780) { + yyv4780 = append(yyv4780, Namespace{}) // var yyz4780 Namespace + yyc4780 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4780.ElemContainerState(yyj4780) + if yyj4780 < len(yyv4780) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Namespace{} + yyv4780[yyj4780] = Namespace{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4783 := &yyv4780[yyj4780] + yyv4783.CodecDecodeSelf(d) } } else { @@ -58305,17 +61124,17 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Namespace{} - yyc1 = true + if yyj4780 < len(yyv4780) { + yyv4780 = yyv4780[:yyj4780] + yyc4780 = true + } else if yyj4780 == 0 && yyv4780 == nil { + yyv4780 = []Namespace{} + yyc4780 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4780.End() + if yyc4780 { + *v = yyv4780 } } @@ -58324,10 +61143,10 @@ func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4784 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4785 := &yyv4784 + yy4785.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58337,86 +61156,83 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Event{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4786 > 0 { + var yyrr4786, yyrl4786 int + var yyrt4786 bool + if yyl4786 > cap(yyv4786) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 488) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Event, yyrl1) + yyv4786 = make([]Event, yyrl4786) } } else { - yyv1 = make([]Event, yyrl1) + yyv4786 = make([]Event, yyrl4786) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4786 = true + yyrr4786 = len(yyv4786) + if yyrg4786 { + copy(yyv4786, yyv24786) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4786 != len(yyv4786) { + yyv4786 = yyv4786[:yyl4786] + yyc4786 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4786 := 0 + for ; yyj4786 < yyrr4786; yyj4786++ { + yyh4786.ElemContainerState(yyj4786) if r.TryDecodeAsNil() { - yyv1[yyj1] = Event{} + yyv4786[yyj4786] = Event{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4787 := &yyv4786[yyj4786] + yyv4787.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Event{}) - yyh1.ElemContainerState(yyj1) + if yyrt4786 { + for ; yyj4786 < yyl4786; yyj4786++ { + yyv4786 = append(yyv4786, Event{}) + yyh4786.ElemContainerState(yyj4786) if r.TryDecodeAsNil() { - yyv1[yyj1] = Event{} + yyv4786[yyj4786] = Event{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4788 := &yyv4786[yyj4786] + yyv4788.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4786 := 0 + for ; !r.CheckBreak(); yyj4786++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Event{}) // var yyz1 Event - yyc1 = true + if yyj4786 >= len(yyv4786) { + yyv4786 = append(yyv4786, Event{}) // var yyz4786 Event + yyc4786 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4786.ElemContainerState(yyj4786) + if yyj4786 < len(yyv4786) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Event{} + yyv4786[yyj4786] = Event{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4789 := &yyv4786[yyj4786] + yyv4789.CodecDecodeSelf(d) } } else { @@ -58424,17 +61240,17 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Event{} - yyc1 = true + if yyj4786 < len(yyv4786) { + yyv4786 = yyv4786[:yyj4786] + yyc4786 = true + } else if yyj4786 == 0 && yyv4786 == nil { + yyv4786 = []Event{} + yyc4786 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4786.End() + if yyc4786 { + *v = yyv4786 } } @@ -58443,17 +61259,17 @@ func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *code z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4790 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyv1 == nil { + if yyv4790 == nil { r.EncodeNil() } else { - yym2 := z.EncBinary() - _ = yym2 + yym4791 := z.EncBinary() + _ = yym4791 if false { - } else if z.HasExtensions() && z.EncExt(yyv1) { + } else if z.HasExtensions() && z.EncExt(yyv4790) { } else { - z.EncFallback(yyv1) + z.EncFallback(yyv4790) } } } @@ -58465,77 +61281,74 @@ func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *cod z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg7_runtime.Object{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4792 > 0 { + var yyrr4792, yyrl4792 int + var yyrt4792 bool + if yyl4792 > cap(yyv4792) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]pkg7_runtime.Object, yyrl1) + yyv4792 = make([]pkg7_runtime.Object, yyrl4792) } } else { - yyv1 = make([]pkg7_runtime.Object, yyrl1) + yyv4792 = make([]pkg7_runtime.Object, yyrl4792) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4792 = true + yyrr4792 = len(yyv4792) + if yyrg4792 { + copy(yyv4792, yyv24792) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4792 != len(yyv4792) { + yyv4792 = yyv4792[:yyl4792] + yyc4792 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4792 := 0 + for ; yyj4792 < yyrr4792; yyj4792++ { + yyh4792.ElemContainerState(yyj4792) if r.TryDecodeAsNil() { - yyv1[yyj1] = nil + yyv4792[yyj4792] = nil } else { - yyv2 := &yyv1[yyj1] - yym3 := z.DecBinary() - _ = yym3 + yyv4793 := &yyv4792[yyj4792] + yym4794 := z.DecBinary() + _ = yym4794 if false { - } else if z.HasExtensions() && z.DecExt(yyv2) { + } else if z.HasExtensions() && z.DecExt(yyv4793) { } else { - z.DecFallback(yyv2, true) + z.DecFallback(yyv4793, true) } } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) + if yyrt4792 { + for ; yyj4792 < yyl4792; yyj4792++ { + yyv4792 = append(yyv4792, nil) + yyh4792.ElemContainerState(yyj4792) if r.TryDecodeAsNil() { - yyv1[yyj1] = nil + yyv4792[yyj4792] = nil } else { - yyv4 := &yyv1[yyj1] - yym5 := z.DecBinary() - _ = yym5 + yyv4795 := &yyv4792[yyj4792] + yym4796 := z.DecBinary() + _ = yym4796 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4795) { } else { - z.DecFallback(yyv4, true) + z.DecFallback(yyv4795, true) } } @@ -58543,25 +61356,25 @@ func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *cod } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4792 := 0 + for ; !r.CheckBreak(); yyj4792++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 pkg7_runtime.Object - yyc1 = true + if yyj4792 >= len(yyv4792) { + yyv4792 = append(yyv4792, nil) // var yyz4792 pkg7_runtime.Object + yyc4792 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4792.ElemContainerState(yyj4792) + if yyj4792 < len(yyv4792) { if r.TryDecodeAsNil() { - yyv1[yyj1] = nil + yyv4792[yyj4792] = nil } else { - yyv6 := &yyv1[yyj1] - yym7 := z.DecBinary() - _ = yym7 + yyv4797 := &yyv4792[yyj4792] + yym4798 := z.DecBinary() + _ = yym4798 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { + } else if z.HasExtensions() && z.DecExt(yyv4797) { } else { - z.DecFallback(yyv6, true) + z.DecFallback(yyv4797, true) } } @@ -58570,17 +61383,17 @@ func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *cod } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg7_runtime.Object{} - yyc1 = true + if yyj4792 < len(yyv4792) { + yyv4792 = yyv4792[:yyj4792] + yyc4792 = true + } else if yyj4792 == 0 && yyv4792 == nil { + yyv4792 = []pkg7_runtime.Object{} + yyc4792 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4792.End() + if yyc4792 { + *v = yyv4792 } } @@ -58589,10 +61402,10 @@ func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4799 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4800 := &yyv4799 + yy4800.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58602,86 +61415,83 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LimitRangeItem{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4801 > 0 { + var yyrr4801, yyrl4801 int + var yyrt4801 bool + if yyl4801 > cap(yyv4801) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LimitRangeItem, yyrl1) + yyv4801 = make([]LimitRangeItem, yyrl4801) } } else { - yyv1 = make([]LimitRangeItem, yyrl1) + yyv4801 = make([]LimitRangeItem, yyrl4801) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4801 = true + yyrr4801 = len(yyv4801) + if yyrg4801 { + copy(yyv4801, yyv24801) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4801 != len(yyv4801) { + yyv4801 = yyv4801[:yyl4801] + yyc4801 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4801 := 0 + for ; yyj4801 < yyrr4801; yyj4801++ { + yyh4801.ElemContainerState(yyj4801) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRangeItem{} + yyv4801[yyj4801] = LimitRangeItem{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4802 := &yyv4801[yyj4801] + yyv4802.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LimitRangeItem{}) - yyh1.ElemContainerState(yyj1) + if yyrt4801 { + for ; yyj4801 < yyl4801; yyj4801++ { + yyv4801 = append(yyv4801, LimitRangeItem{}) + yyh4801.ElemContainerState(yyj4801) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRangeItem{} + yyv4801[yyj4801] = LimitRangeItem{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4803 := &yyv4801[yyj4801] + yyv4803.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4801 := 0 + for ; !r.CheckBreak(); yyj4801++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LimitRangeItem{}) // var yyz1 LimitRangeItem - yyc1 = true + if yyj4801 >= len(yyv4801) { + yyv4801 = append(yyv4801, LimitRangeItem{}) // var yyz4801 LimitRangeItem + yyc4801 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4801.ElemContainerState(yyj4801) + if yyj4801 < len(yyv4801) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRangeItem{} + yyv4801[yyj4801] = LimitRangeItem{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4804 := &yyv4801[yyj4801] + yyv4804.CodecDecodeSelf(d) } } else { @@ -58689,17 +61499,17 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LimitRangeItem{} - yyc1 = true + if yyj4801 < len(yyv4801) { + yyv4801 = yyv4801[:yyj4801] + yyc4801 = true + } else if yyj4801 == 0 && yyv4801 == nil { + yyv4801 = []LimitRangeItem{} + yyc4801 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4801.End() + if yyc4801 { + *v = yyv4801 } } @@ -58708,10 +61518,10 @@ func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4805 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4806 := &yyv4805 + yy4806.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58721,86 +61531,83 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LimitRange{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4807 > 0 { + var yyrr4807, yyrl4807 int + var yyrt4807 bool + if yyl4807 > cap(yyv4807) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LimitRange, yyrl1) + yyv4807 = make([]LimitRange, yyrl4807) } } else { - yyv1 = make([]LimitRange, yyrl1) + yyv4807 = make([]LimitRange, yyrl4807) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4807 = true + yyrr4807 = len(yyv4807) + if yyrg4807 { + copy(yyv4807, yyv24807) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4807 != len(yyv4807) { + yyv4807 = yyv4807[:yyl4807] + yyc4807 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4807 := 0 + for ; yyj4807 < yyrr4807; yyj4807++ { + yyh4807.ElemContainerState(yyj4807) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRange{} + yyv4807[yyj4807] = LimitRange{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4808 := &yyv4807[yyj4807] + yyv4808.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LimitRange{}) - yyh1.ElemContainerState(yyj1) + if yyrt4807 { + for ; yyj4807 < yyl4807; yyj4807++ { + yyv4807 = append(yyv4807, LimitRange{}) + yyh4807.ElemContainerState(yyj4807) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRange{} + yyv4807[yyj4807] = LimitRange{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4809 := &yyv4807[yyj4807] + yyv4809.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4807 := 0 + for ; !r.CheckBreak(); yyj4807++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LimitRange{}) // var yyz1 LimitRange - yyc1 = true + if yyj4807 >= len(yyv4807) { + yyv4807 = append(yyv4807, LimitRange{}) // var yyz4807 LimitRange + yyc4807 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4807.ElemContainerState(yyj4807) + if yyj4807 < len(yyv4807) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRange{} + yyv4807[yyj4807] = LimitRange{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4810 := &yyv4807[yyj4807] + yyv4810.CodecDecodeSelf(d) } } else { @@ -58808,17 +61615,17 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LimitRange{} - yyc1 = true + if yyj4807 < len(yyv4807) { + yyv4807 = yyv4807[:yyj4807] + yyc4807 = true + } else if yyj4807 == 0 && yyv4807 == nil { + yyv4807 = []LimitRange{} + yyc4807 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4807.End() + if yyc4807 { + *v = yyv4807 } } @@ -58827,9 +61634,9 @@ func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4811 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4811.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58839,78 +61646,75 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ResourceQuotaScope{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4812 > 0 { + var yyrr4812, yyrl4812 int + var yyrt4812 bool + if yyl4812 > cap(yyv4812) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4812, yyrt4812 = z.DecInferLen(yyl4812, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4812 { + if yyrl4812 <= cap(yyv4812) { + yyv4812 = yyv4812[:yyrl4812] } else { - yyv1 = make([]ResourceQuotaScope, yyrl1) + yyv4812 = make([]ResourceQuotaScope, yyrl4812) } } else { - yyv1 = make([]ResourceQuotaScope, yyrl1) + yyv4812 = make([]ResourceQuotaScope, yyrl4812) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4812 = true + yyrr4812 = len(yyv4812) + } else if yyl4812 != len(yyv4812) { + yyv4812 = yyv4812[:yyl4812] + yyc4812 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4812 := 0 + for ; yyj4812 < yyrr4812; yyj4812++ { + yyh4812.ElemContainerState(yyj4812) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4812[yyj4812] = "" } else { - yyv1[yyj1] = ResourceQuotaScope(r.DecodeString()) + yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4812 { + for ; yyj4812 < yyl4812; yyj4812++ { + yyv4812 = append(yyv4812, "") + yyh4812.ElemContainerState(yyj4812) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4812[yyj4812] = "" } else { - yyv1[yyj1] = ResourceQuotaScope(r.DecodeString()) + yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4812 := 0 + for ; !r.CheckBreak(); yyj4812++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 ResourceQuotaScope - yyc1 = true + if yyj4812 >= len(yyv4812) { + yyv4812 = append(yyv4812, "") // var yyz4812 ResourceQuotaScope + yyc4812 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4812.ElemContainerState(yyj4812) + if yyj4812 < len(yyv4812) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4812[yyj4812] = "" } else { - yyv1[yyj1] = ResourceQuotaScope(r.DecodeString()) + yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) } } else { @@ -58918,17 +61722,17 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ResourceQuotaScope{} - yyc1 = true + if yyj4812 < len(yyv4812) { + yyv4812 = yyv4812[:yyj4812] + yyc4812 = true + } else if yyj4812 == 0 && yyv4812 == nil { + yyv4812 = []ResourceQuotaScope{} + yyc4812 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4812.End() + if yyc4812 { + *v = yyv4812 } } @@ -58937,10 +61741,10 @@ func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4816 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4817 := &yyv4816 + yy4817.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58950,86 +61754,83 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ResourceQuota{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4818 > 0 { + var yyrr4818, yyrl4818 int + var yyrt4818 bool + if yyl4818 > cap(yyv4818) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 288) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ResourceQuota, yyrl1) + yyv4818 = make([]ResourceQuota, yyrl4818) } } else { - yyv1 = make([]ResourceQuota, yyrl1) + yyv4818 = make([]ResourceQuota, yyrl4818) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4818 = true + yyrr4818 = len(yyv4818) + if yyrg4818 { + copy(yyv4818, yyv24818) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4818 != len(yyv4818) { + yyv4818 = yyv4818[:yyl4818] + yyc4818 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4818 := 0 + for ; yyj4818 < yyrr4818; yyj4818++ { + yyh4818.ElemContainerState(yyj4818) if r.TryDecodeAsNil() { - yyv1[yyj1] = ResourceQuota{} + yyv4818[yyj4818] = ResourceQuota{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4819 := &yyv4818[yyj4818] + yyv4819.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ResourceQuota{}) - yyh1.ElemContainerState(yyj1) + if yyrt4818 { + for ; yyj4818 < yyl4818; yyj4818++ { + yyv4818 = append(yyv4818, ResourceQuota{}) + yyh4818.ElemContainerState(yyj4818) if r.TryDecodeAsNil() { - yyv1[yyj1] = ResourceQuota{} + yyv4818[yyj4818] = ResourceQuota{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4820 := &yyv4818[yyj4818] + yyv4820.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4818 := 0 + for ; !r.CheckBreak(); yyj4818++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ResourceQuota{}) // var yyz1 ResourceQuota - yyc1 = true + if yyj4818 >= len(yyv4818) { + yyv4818 = append(yyv4818, ResourceQuota{}) // var yyz4818 ResourceQuota + yyc4818 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4818.ElemContainerState(yyj4818) + if yyj4818 < len(yyv4818) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ResourceQuota{} + yyv4818[yyj4818] = ResourceQuota{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4821 := &yyv4818[yyj4818] + yyv4821.CodecDecodeSelf(d) } } else { @@ -59037,17 +61838,17 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ResourceQuota{} - yyc1 = true + if yyj4818 < len(yyv4818) { + yyv4818 = yyv4818[:yyj4818] + yyc4818 = true + } else if yyj4818 == 0 && yyv4818 == nil { + yyv4818 = []ResourceQuota{} + yyc4818 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4818.End() + if yyc4818 { + *v = yyv4818 } } @@ -59056,23 +61857,23 @@ func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { + for yyk4822, yyv4822 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym2 := z.EncBinary() - _ = yym2 + yym4823 := z.EncBinary() + _ = yym4823 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4822)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv1 == nil { + if yyv4822 == nil { r.EncodeNil() } else { - yym3 := z.EncBinary() - _ = yym3 + yym4824 := z.EncBinary() + _ = yym4824 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv1)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4822)) } } } @@ -59084,210 +61885,95 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) - yyv1 = make(map[string][]uint8, yyrl1) - *v = yyv1 + 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 yymk1 string - var yymv1 []uint8 - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true + var yymk4825 string + var yymv4825 []uint8 + var yymg4825 bool + if yybh4825.MapValueReset { + yymg4825 = true } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + if yyl4825 > 0 { + for yyj4825 := 0; yyj4825 < yyl4825; yyj4825++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4825 = "" } else { - yymk1 = string(r.DecodeString()) + yymk4825 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4825 { + yymv4825 = yyv4825[yymk4825] } else { - yymv1 = nil + yymv4825 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv4825 = nil } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 + yyv4827 := &yymv4825 + yym4828 := z.DecBinary() + _ = yym4828 if false { } else { - *yyv3 = r.DecodeBytes(*(*[]byte)(yyv3), false, false) + *yyv4827 = r.DecodeBytes(*(*[]byte)(yyv4827), false, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4825 != nil { + yyv4825[yymk4825] = yymv4825 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl4825 < 0 { + for yyj4825 := 0; !r.CheckBreak(); yyj4825++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4825 = "" } else { - yymk1 = string(r.DecodeString()) + yymk4825 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4825 { + yymv4825 = yyv4825[yymk4825] } else { - yymv1 = nil + yymv4825 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv4825 = nil } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 + yyv4830 := &yymv4825 + yym4831 := z.DecBinary() + _ = yym4831 if false { } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) + *yyv4830 = r.DecodeBytes(*(*[]byte)(yyv4830), false, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4825 != nil { + yyv4825[yymk4825] = yymv4825 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) encSliceuint8(v []uint8, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeUint(uint64(yyv1)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceuint8(v *[]uint8, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []uint8{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]uint8, yyrl1) - } - } else { - yyv1 = make([]uint8, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = 0 - } else { - yyv1[yyj1] = uint8(r.DecodeUint(8)) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, 0) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = 0 - } else { - yyv1[yyj1] = uint8(r.DecodeUint(8)) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, 0) // var yyz1 uint8 - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = 0 - } else { - yyv1[yyj1] = uint8(r.DecodeUint(8)) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []uint8{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4832 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4833 := &yyv4832 + yy4833.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59297,86 +61983,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Secret{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4834 > 0 { + var yyrr4834, yyrl4834 int + var yyrt4834 bool + if yyl4834 > cap(yyv4834) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Secret, yyrl1) + yyv4834 = make([]Secret, yyrl4834) } } else { - yyv1 = make([]Secret, yyrl1) + yyv4834 = make([]Secret, yyrl4834) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4834 = true + yyrr4834 = len(yyv4834) + if yyrg4834 { + copy(yyv4834, yyv24834) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4834 != len(yyv4834) { + yyv4834 = yyv4834[:yyl4834] + yyc4834 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4834 := 0 + for ; yyj4834 < yyrr4834; yyj4834++ { + yyh4834.ElemContainerState(yyj4834) if r.TryDecodeAsNil() { - yyv1[yyj1] = Secret{} + yyv4834[yyj4834] = Secret{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4835 := &yyv4834[yyj4834] + yyv4835.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Secret{}) - yyh1.ElemContainerState(yyj1) + if yyrt4834 { + for ; yyj4834 < yyl4834; yyj4834++ { + yyv4834 = append(yyv4834, Secret{}) + yyh4834.ElemContainerState(yyj4834) if r.TryDecodeAsNil() { - yyv1[yyj1] = Secret{} + yyv4834[yyj4834] = Secret{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4836 := &yyv4834[yyj4834] + yyv4836.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4834 := 0 + for ; !r.CheckBreak(); yyj4834++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Secret{}) // var yyz1 Secret - yyc1 = true + if yyj4834 >= len(yyv4834) { + yyv4834 = append(yyv4834, Secret{}) // var yyz4834 Secret + yyc4834 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4834.ElemContainerState(yyj4834) + if yyj4834 < len(yyv4834) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Secret{} + yyv4834[yyj4834] = Secret{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4837 := &yyv4834[yyj4834] + yyv4837.CodecDecodeSelf(d) } } else { @@ -59384,17 +62067,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Secret{} - yyc1 = true + if yyj4834 < len(yyv4834) { + yyv4834 = yyv4834[:yyj4834] + yyc4834 = true + } else if yyj4834 == 0 && yyv4834 == nil { + yyv4834 = []Secret{} + yyc4834 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4834.End() + if yyc4834 { + *v = yyv4834 } } @@ -59403,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 _, yyv1 := range v { + for _, yyv4838 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4839 := &yyv4838 + yy4839.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59416,86 +62099,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ConfigMap{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4840 > 0 { + var yyrr4840, yyrl4840 int + var yyrt4840 bool + if yyl4840 > cap(yyv4840) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 248) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ConfigMap, yyrl1) + yyv4840 = make([]ConfigMap, yyrl4840) } } else { - yyv1 = make([]ConfigMap, yyrl1) + yyv4840 = make([]ConfigMap, yyrl4840) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4840 = true + yyrr4840 = len(yyv4840) + if yyrg4840 { + copy(yyv4840, yyv24840) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4840 != len(yyv4840) { + yyv4840 = yyv4840[:yyl4840] + yyc4840 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4840 := 0 + for ; yyj4840 < yyrr4840; yyj4840++ { + yyh4840.ElemContainerState(yyj4840) if r.TryDecodeAsNil() { - yyv1[yyj1] = ConfigMap{} + yyv4840[yyj4840] = ConfigMap{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4841 := &yyv4840[yyj4840] + yyv4841.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ConfigMap{}) - yyh1.ElemContainerState(yyj1) + if yyrt4840 { + for ; yyj4840 < yyl4840; yyj4840++ { + yyv4840 = append(yyv4840, ConfigMap{}) + yyh4840.ElemContainerState(yyj4840) if r.TryDecodeAsNil() { - yyv1[yyj1] = ConfigMap{} + yyv4840[yyj4840] = ConfigMap{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4842 := &yyv4840[yyj4840] + yyv4842.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4840 := 0 + for ; !r.CheckBreak(); yyj4840++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ConfigMap{}) // var yyz1 ConfigMap - yyc1 = true + if yyj4840 >= len(yyv4840) { + yyv4840 = append(yyv4840, ConfigMap{}) // var yyz4840 ConfigMap + yyc4840 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4840.ElemContainerState(yyj4840) + if yyj4840 < len(yyv4840) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ConfigMap{} + yyv4840[yyj4840] = ConfigMap{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4843 := &yyv4840[yyj4840] + yyv4843.CodecDecodeSelf(d) } } else { @@ -59503,17 +62183,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ConfigMap{} - yyc1 = true + if yyj4840 < len(yyv4840) { + yyv4840 = yyv4840[:yyj4840] + yyc4840 = true + } else if yyj4840 == 0 && yyv4840 == nil { + yyv4840 = []ConfigMap{} + yyc4840 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4840.End() + if yyc4840 { + *v = yyv4840 } } @@ -59522,10 +62202,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4844 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4845 := &yyv4844 + yy4845.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59535,86 +62215,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ComponentCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4846 > 0 { + var yyrr4846, yyrl4846 int + var yyrt4846 bool + if yyl4846 > cap(yyv4846) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ComponentCondition, yyrl1) + yyv4846 = make([]ComponentCondition, yyrl4846) } } else { - yyv1 = make([]ComponentCondition, yyrl1) + yyv4846 = make([]ComponentCondition, yyrl4846) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4846 = true + yyrr4846 = len(yyv4846) + if yyrg4846 { + copy(yyv4846, yyv24846) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4846 != len(yyv4846) { + yyv4846 = yyv4846[:yyl4846] + yyc4846 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4846 := 0 + for ; yyj4846 < yyrr4846; yyj4846++ { + yyh4846.ElemContainerState(yyj4846) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentCondition{} + yyv4846[yyj4846] = ComponentCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4847 := &yyv4846[yyj4846] + yyv4847.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ComponentCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt4846 { + for ; yyj4846 < yyl4846; yyj4846++ { + yyv4846 = append(yyv4846, ComponentCondition{}) + yyh4846.ElemContainerState(yyj4846) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentCondition{} + yyv4846[yyj4846] = ComponentCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4848 := &yyv4846[yyj4846] + yyv4848.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4846 := 0 + for ; !r.CheckBreak(); yyj4846++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ComponentCondition{}) // var yyz1 ComponentCondition - yyc1 = true + if yyj4846 >= len(yyv4846) { + yyv4846 = append(yyv4846, ComponentCondition{}) // var yyz4846 ComponentCondition + yyc4846 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4846.ElemContainerState(yyj4846) + if yyj4846 < len(yyv4846) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentCondition{} + yyv4846[yyj4846] = ComponentCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4849 := &yyv4846[yyj4846] + yyv4849.CodecDecodeSelf(d) } } else { @@ -59622,17 +62299,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ComponentCondition{} - yyc1 = true + if yyj4846 < len(yyv4846) { + yyv4846 = yyv4846[:yyj4846] + yyc4846 = true + } else if yyj4846 == 0 && yyv4846 == nil { + yyv4846 = []ComponentCondition{} + yyc4846 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4846.End() + if yyc4846 { + *v = yyv4846 } } @@ -59641,10 +62318,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4850 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4851 := &yyv4850 + yy4851.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59654,86 +62331,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ComponentStatus{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4852 > 0 { + var yyrr4852, yyrl4852 int + var yyrt4852 bool + if yyl4852 > cap(yyv4852) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ComponentStatus, yyrl1) + yyv4852 = make([]ComponentStatus, yyrl4852) } } else { - yyv1 = make([]ComponentStatus, yyrl1) + yyv4852 = make([]ComponentStatus, yyrl4852) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4852 = true + yyrr4852 = len(yyv4852) + if yyrg4852 { + copy(yyv4852, yyv24852) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4852 != len(yyv4852) { + yyv4852 = yyv4852[:yyl4852] + yyc4852 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4852 := 0 + for ; yyj4852 < yyrr4852; yyj4852++ { + yyh4852.ElemContainerState(yyj4852) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentStatus{} + yyv4852[yyj4852] = ComponentStatus{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4853 := &yyv4852[yyj4852] + yyv4853.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ComponentStatus{}) - yyh1.ElemContainerState(yyj1) + if yyrt4852 { + for ; yyj4852 < yyl4852; yyj4852++ { + yyv4852 = append(yyv4852, ComponentStatus{}) + yyh4852.ElemContainerState(yyj4852) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentStatus{} + yyv4852[yyj4852] = ComponentStatus{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4854 := &yyv4852[yyj4852] + yyv4854.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4852 := 0 + for ; !r.CheckBreak(); yyj4852++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ComponentStatus{}) // var yyz1 ComponentStatus - yyc1 = true + if yyj4852 >= len(yyv4852) { + yyv4852 = append(yyv4852, ComponentStatus{}) // var yyz4852 ComponentStatus + yyc4852 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4852.ElemContainerState(yyj4852) + if yyj4852 < len(yyv4852) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentStatus{} + yyv4852[yyj4852] = ComponentStatus{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4855 := &yyv4852[yyj4852] + yyv4855.CodecDecodeSelf(d) } } else { @@ -59741,16 +62415,16 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ComponentStatus{} - yyc1 = true + if yyj4852 < len(yyv4852) { + yyv4852 = yyv4852[:yyj4852] + yyc4852 = true + } else if yyj4852 == 0 && yyv4852 == nil { + yyv4852 = []ComponentStatus{} + yyc4852 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4852.End() + if yyc4852 { + *v = yyv4852 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/types.go index 7225e8fa89..5062276521 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/types.go +++ b/ingress/vendor/k8s.io/kubernetes/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"` @@ -1889,6 +2022,8 @@ type EndpointAddress struct { // Optional: Hostname of this endpoint // Meant to be used by DNS servers etc. Hostname string `json:"hostname,omitempty"` + // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + NodeName *string `json:"nodeName,omitempty"` // Optional: The kubernetes object related to the entry point. TargetRef *ObjectReference } @@ -2008,6 +2143,34 @@ type AttachedVolume struct { DevicePath string `json:"devicePath"` } +// AvoidPods describes pods that should avoid this node. This is the value for a +// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +// will eventually become a field of NodeStatus. +type AvoidPods struct { + // Bounded-sized list of signatures of pods that should avoid this node, sorted + // in timestamp order from oldest to newest. Size of the slice is unspecified. + PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty"` +} + +// Describes a class of pods that should avoid this node. +type PreferAvoidPodsEntry struct { + // The class of pods. + PodSignature PodSignature `json:"podSignature"` + // Time at which this entry was added to the list. + EvictionTime unversioned.Time `json:"evictionTime,omitempty"` + // (brief) reason why this entry was added to the list. + Reason string `json:"reason,omitempty"` + // Human readable message indicating why this entry was added to the list. + Message string `json:"message,omitempty"` +} + +// Describes the class of pods that should avoid this node. +// Exactly one field should be set. +type PodSignature struct { + // Reference to controller whose pods should avoid this node. + PodController *OwnerReference `json:"podController,omitempty"` +} + // Describe a container image type ContainerImage struct { // Names by which this image is known. @@ -2041,6 +2204,8 @@ const ( NodeOutOfDisk NodeConditionType = "OutOfDisk" // NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory. NodeMemoryPressure NodeConditionType = "MemoryPressure" + // NodeDiskPressure means the kubelet is under pressure due to insufficient available disk. + NodeDiskPressure NodeConditionType = "DiskPressure" // NodeNetworkUnavailable means that network for the node is not correctly configured. NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable" ) @@ -2232,7 +2397,11 @@ type ListOptions struct { FieldSelector fields.Selector // If true, watch for changes to this list Watch bool - // The resource version to watch (no effect on list yet) + // For watch, it's the resource version to watch. + // For list, + // - if unset, then the result is returned from remote storage based on quorum-read flag; + // - if it's 0, then we simply return what we currently have in cache, no guarantee; + // - if set to non zero, then the result is as fresh as given rv. ResourceVersion string // Timeout for the list/watch call. TimeoutSeconds *int64 @@ -2536,6 +2705,8 @@ const ( ResourceRequestsCPU ResourceName = "requests.cpu" // Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) ResourceRequestsMemory ResourceName = "requests.memory" + // Storage request, in bytes + ResourceRequestsStorage ResourceName = "requests.storage" // CPU limit, in cores. (500m = .5 cores) ResourceLimitsCPU ResourceName = "limits.cpu" // Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) @@ -2757,6 +2928,8 @@ const ( StreamTypeData = "data" // Value for streamType header for error stream StreamTypeError = "error" + // Value for streamType header for terminal resize stream + StreamTypeResize = "resize" // Name of header that specifies the port being forwarded PortHeader = "port" diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/deep_copy_generated.go deleted file mode 100644 index 77f5b66d88..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/deep_copy_generated.go +++ /dev/null @@ -1,288 +0,0 @@ -// +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 unversioned - -import ( - conversion "k8s.io/kubernetes/pkg/conversion" - time "time" -) - -func DeepCopy_unversioned_APIGroup(in APIGroup, out *APIGroup, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Name = in.Name - if in.Versions != nil { - in, out := in.Versions, &out.Versions - *out = make([]GroupVersionForDiscovery, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Versions = nil - } - out.PreferredVersion = in.PreferredVersion - if in.ServerAddressByClientCIDRs != nil { - in, out := in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs - *out = make([]ServerAddressByClientCIDR, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ServerAddressByClientCIDRs = nil - } - return nil -} - -func DeepCopy_unversioned_APIGroupList(in APIGroupList, out *APIGroupList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]APIGroup, len(in)) - for i := range in { - if err := DeepCopy_unversioned_APIGroup(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Groups = nil - } - return nil -} - -func DeepCopy_unversioned_APIResource(in APIResource, out *APIResource, c *conversion.Cloner) error { - out.Name = in.Name - out.Namespaced = in.Namespaced - out.Kind = in.Kind - return nil -} - -func DeepCopy_unversioned_APIResourceList(in APIResourceList, out *APIResourceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.GroupVersion = in.GroupVersion - if in.APIResources != nil { - in, out := in.APIResources, &out.APIResources - *out = make([]APIResource, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.APIResources = nil - } - return nil -} - -func DeepCopy_unversioned_APIVersions(in APIVersions, out *APIVersions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if in.Versions != nil { - in, out := in.Versions, &out.Versions - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Versions = nil - } - if in.ServerAddressByClientCIDRs != nil { - in, out := in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs - *out = make([]ServerAddressByClientCIDR, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ServerAddressByClientCIDRs = nil - } - return nil -} - -func DeepCopy_unversioned_Duration(in Duration, out *Duration, c *conversion.Cloner) error { - out.Duration = in.Duration - return nil -} - -func DeepCopy_unversioned_ExportOptions(in ExportOptions, out *ExportOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Export = in.Export - out.Exact = in.Exact - return nil -} - -func DeepCopy_unversioned_GroupKind(in GroupKind, out *GroupKind, c *conversion.Cloner) error { - out.Group = in.Group - out.Kind = in.Kind - return nil -} - -func DeepCopy_unversioned_GroupResource(in GroupResource, out *GroupResource, c *conversion.Cloner) error { - out.Group = in.Group - out.Resource = in.Resource - return nil -} - -func DeepCopy_unversioned_GroupVersion(in GroupVersion, out *GroupVersion, c *conversion.Cloner) error { - out.Group = in.Group - out.Version = in.Version - return nil -} - -func DeepCopy_unversioned_GroupVersionForDiscovery(in GroupVersionForDiscovery, out *GroupVersionForDiscovery, c *conversion.Cloner) error { - out.GroupVersion = in.GroupVersion - out.Version = in.Version - return nil -} - -func DeepCopy_unversioned_GroupVersionKind(in GroupVersionKind, out *GroupVersionKind, c *conversion.Cloner) error { - out.Group = in.Group - out.Version = in.Version - out.Kind = in.Kind - return nil -} - -func DeepCopy_unversioned_GroupVersionResource(in GroupVersionResource, out *GroupVersionResource, c *conversion.Cloner) error { - out.Group = in.Group - out.Version = in.Version - out.Resource = in.Resource - return nil -} - -func DeepCopy_unversioned_LabelSelector(in LabelSelector, out *LabelSelector, c *conversion.Cloner) error { - if in.MatchLabels != nil { - in, out := in.MatchLabels, &out.MatchLabels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.MatchLabels = nil - } - if in.MatchExpressions != nil { - in, out := in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(in)) - for i := range in { - if err := DeepCopy_unversioned_LabelSelectorRequirement(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func DeepCopy_unversioned_LabelSelectorRequirement(in LabelSelectorRequirement, out *LabelSelectorRequirement, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - if in.Values != nil { - in, out := in.Values, &out.Values - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Values = nil - } - return nil -} - -func DeepCopy_unversioned_ListMeta(in ListMeta, out *ListMeta, c *conversion.Cloner) error { - out.SelfLink = in.SelfLink - out.ResourceVersion = in.ResourceVersion - return nil -} - -func DeepCopy_unversioned_Patch(in Patch, out *Patch, c *conversion.Cloner) error { - return nil -} - -func DeepCopy_unversioned_RootPaths(in RootPaths, out *RootPaths, c *conversion.Cloner) error { - if in.Paths != nil { - in, out := in.Paths, &out.Paths - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Paths = nil - } - return nil -} - -func DeepCopy_unversioned_ServerAddressByClientCIDR(in ServerAddressByClientCIDR, out *ServerAddressByClientCIDR, c *conversion.Cloner) error { - out.ClientCIDR = in.ClientCIDR - out.ServerAddress = in.ServerAddress - return nil -} - -func DeepCopy_unversioned_Status(in Status, out *Status, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - out.Status = in.Status - out.Message = in.Message - out.Reason = in.Reason - if in.Details != nil { - in, out := in.Details, &out.Details - *out = new(StatusDetails) - if err := DeepCopy_unversioned_StatusDetails(*in, *out, c); err != nil { - return err - } - } else { - out.Details = nil - } - out.Code = in.Code - return nil -} - -func DeepCopy_unversioned_StatusCause(in StatusCause, out *StatusCause, c *conversion.Cloner) error { - out.Type = in.Type - out.Message = in.Message - out.Field = in.Field - return nil -} - -func DeepCopy_unversioned_StatusDetails(in StatusDetails, out *StatusDetails, c *conversion.Cloner) error { - out.Name = in.Name - out.Group = in.Group - out.Kind = in.Kind - if in.Causes != nil { - in, out := in.Causes, &out.Causes - *out = make([]StatusCause, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Causes = nil - } - out.RetryAfterSeconds = in.RetryAfterSeconds - return nil -} - -func DeepCopy_unversioned_Time(in Time, out *Time, c *conversion.Cloner) error { - if newVal, err := c.DeepCopy(in.Time); err != nil { - return err - } else { - out.Time = newVal.(time.Time) - } - return nil -} - -func DeepCopy_unversioned_Timestamp(in Timestamp, out *Timestamp, c *conversion.Cloner) error { - out.Seconds = in.Seconds - out.Nanos = in.Nanos - return nil -} - -func DeepCopy_unversioned_TypeMeta(in TypeMeta, out *TypeMeta, c *conversion.Cloner) error { - out.Kind = in.Kind - out.APIVersion = in.APIVersion - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.pb.go index f0d7147173..f78dcbae53 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.pb.go @@ -58,6 +58,10 @@ import math "math" import time "time" +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. @@ -65,95 +69,111 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *APIGroup) Reset() { *m = APIGroup{} } -func (m *APIGroup) String() string { return proto.CompactTextString(m) } -func (*APIGroup) ProtoMessage() {} +// 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 *APIGroup) Reset() { *m = APIGroup{} } +func (*APIGroup) ProtoMessage() {} +func (*APIGroup) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *APIGroupList) Reset() { *m = APIGroupList{} } -func (m *APIGroupList) String() string { return proto.CompactTextString(m) } -func (*APIGroupList) ProtoMessage() {} +func (m *APIGroupList) Reset() { *m = APIGroupList{} } +func (*APIGroupList) ProtoMessage() {} +func (*APIGroupList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *APIResource) Reset() { *m = APIResource{} } -func (m *APIResource) String() string { return proto.CompactTextString(m) } -func (*APIResource) ProtoMessage() {} +func (m *APIResource) Reset() { *m = APIResource{} } +func (*APIResource) ProtoMessage() {} +func (*APIResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *APIResourceList) Reset() { *m = APIResourceList{} } -func (m *APIResourceList) String() string { return proto.CompactTextString(m) } -func (*APIResourceList) ProtoMessage() {} +func (m *APIResourceList) Reset() { *m = APIResourceList{} } +func (*APIResourceList) ProtoMessage() {} +func (*APIResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *APIVersions) Reset() { *m = APIVersions{} } -func (*APIVersions) ProtoMessage() {} +func (m *APIVersions) Reset() { *m = APIVersions{} } +func (*APIVersions) ProtoMessage() {} +func (*APIVersions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *Duration) Reset() { *m = Duration{} } -func (m *Duration) String() string { return proto.CompactTextString(m) } -func (*Duration) ProtoMessage() {} +func (m *Duration) Reset() { *m = Duration{} } +func (*Duration) ProtoMessage() {} +func (*Duration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *ExportOptions) Reset() { *m = ExportOptions{} } -func (m *ExportOptions) String() string { return proto.CompactTextString(m) } -func (*ExportOptions) ProtoMessage() {} +func (m *ExportOptions) Reset() { *m = ExportOptions{} } +func (*ExportOptions) ProtoMessage() {} +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } -func (m *GroupKind) Reset() { *m = GroupKind{} } -func (*GroupKind) ProtoMessage() {} +func (m *GroupKind) Reset() { *m = GroupKind{} } +func (*GroupKind) ProtoMessage() {} +func (*GroupKind) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } -func (m *GroupResource) Reset() { *m = GroupResource{} } -func (*GroupResource) ProtoMessage() {} +func (m *GroupResource) Reset() { *m = GroupResource{} } +func (*GroupResource) ProtoMessage() {} +func (*GroupResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } -func (m *GroupVersion) Reset() { *m = GroupVersion{} } -func (*GroupVersion) ProtoMessage() {} +func (m *GroupVersion) Reset() { *m = GroupVersion{} } +func (*GroupVersion) ProtoMessage() {} +func (*GroupVersion) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } -func (m *GroupVersionForDiscovery) Reset() { *m = GroupVersionForDiscovery{} } -func (m *GroupVersionForDiscovery) String() string { return proto.CompactTextString(m) } -func (*GroupVersionForDiscovery) ProtoMessage() {} +func (m *GroupVersionForDiscovery) Reset() { *m = GroupVersionForDiscovery{} } +func (*GroupVersionForDiscovery) ProtoMessage() {} +func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{10} +} -func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} } -func (*GroupVersionKind) ProtoMessage() {} +func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} } +func (*GroupVersionKind) ProtoMessage() {} +func (*GroupVersionKind) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } -func (m *GroupVersionResource) Reset() { *m = GroupVersionResource{} } -func (*GroupVersionResource) ProtoMessage() {} +func (m *GroupVersionResource) Reset() { *m = GroupVersionResource{} } +func (*GroupVersionResource) ProtoMessage() {} +func (*GroupVersionResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } -func (m *LabelSelector) Reset() { *m = LabelSelector{} } -func (m *LabelSelector) String() string { return proto.CompactTextString(m) } -func (*LabelSelector) ProtoMessage() {} +func (m *LabelSelector) Reset() { *m = LabelSelector{} } +func (*LabelSelector) ProtoMessage() {} +func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) } -func (*LabelSelectorRequirement) ProtoMessage() {} +func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } +func (*LabelSelectorRequirement) ProtoMessage() {} +func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{14} +} -func (m *ListMeta) Reset() { *m = ListMeta{} } -func (m *ListMeta) String() string { return proto.CompactTextString(m) } -func (*ListMeta) ProtoMessage() {} +func (m *ListMeta) Reset() { *m = ListMeta{} } +func (*ListMeta) ProtoMessage() {} +func (*ListMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } -func (m *RootPaths) Reset() { *m = RootPaths{} } -func (m *RootPaths) String() string { return proto.CompactTextString(m) } -func (*RootPaths) ProtoMessage() {} +func (m *RootPaths) Reset() { *m = RootPaths{} } +func (*RootPaths) ProtoMessage() {} +func (*RootPaths) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } -func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} } -func (m *ServerAddressByClientCIDR) String() string { return proto.CompactTextString(m) } -func (*ServerAddressByClientCIDR) ProtoMessage() {} +func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} } +func (*ServerAddressByClientCIDR) ProtoMessage() {} +func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{17} +} -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} +func (m *Status) Reset() { *m = Status{} } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } -func (m *StatusCause) Reset() { *m = StatusCause{} } -func (m *StatusCause) String() string { return proto.CompactTextString(m) } -func (*StatusCause) ProtoMessage() {} +func (m *StatusCause) Reset() { *m = StatusCause{} } +func (*StatusCause) ProtoMessage() {} +func (*StatusCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } -func (m *StatusDetails) Reset() { *m = StatusDetails{} } -func (m *StatusDetails) String() string { return proto.CompactTextString(m) } -func (*StatusDetails) ProtoMessage() {} +func (m *StatusDetails) Reset() { *m = StatusDetails{} } +func (*StatusDetails) ProtoMessage() {} +func (*StatusDetails) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } -func (m *Time) Reset() { *m = Time{} } -func (m *Time) String() string { return proto.CompactTextString(m) } -func (*Time) ProtoMessage() {} +func (m *Time) Reset() { *m = Time{} } +func (*Time) ProtoMessage() {} +func (*Time) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (m *Timestamp) String() string { return proto.CompactTextString(m) } -func (*Timestamp) ProtoMessage() {} +func (m *Timestamp) Reset() { *m = Timestamp{} } +func (*Timestamp) ProtoMessage() {} +func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } -func (m *TypeMeta) Reset() { *m = TypeMeta{} } -func (m *TypeMeta) String() string { return proto.CompactTextString(m) } -func (*TypeMeta) ProtoMessage() {} +func (m *TypeMeta) Reset() { *m = TypeMeta{} } +func (*TypeMeta) ProtoMessage() {} +func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } func init() { proto.RegisterType((*APIGroup)(nil), "k8s.io.kubernetes.pkg.api.unversioned.APIGroup") @@ -1278,6 +1298,220 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *APIGroup) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIGroup{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Versions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Versions), "GroupVersionForDiscovery", "GroupVersionForDiscovery", 1), `&`, ``, 1) + `,`, + `PreferredVersion:` + strings.Replace(strings.Replace(this.PreferredVersion.String(), "GroupVersionForDiscovery", "GroupVersionForDiscovery", 1), `&`, ``, 1) + `,`, + `ServerAddressByClientCIDRs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ServerAddressByClientCIDRs), "ServerAddressByClientCIDR", "ServerAddressByClientCIDR", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *APIGroupList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIGroupList{`, + `Groups:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Groups), "APIGroup", "APIGroup", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *APIResource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIResource{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Namespaced:` + fmt.Sprintf("%v", this.Namespaced) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `}`, + }, "") + return s +} +func (this *APIResourceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIResourceList{`, + `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, + `APIResources:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.APIResources), "APIResource", "APIResource", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Duration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Duration{`, + `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, + `}`, + }, "") + return s +} +func (this *ExportOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportOptions{`, + `Export:` + fmt.Sprintf("%v", this.Export) + `,`, + `Exact:` + fmt.Sprintf("%v", this.Exact) + `,`, + `}`, + }, "") + return s +} +func (this *GroupVersionForDiscovery) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GroupVersionForDiscovery{`, + `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelector) String() string { + if this == nil { + return "nil" + } + keysForMatchLabels := make([]string, 0, len(this.MatchLabels)) + for k := range this.MatchLabels { + keysForMatchLabels = append(keysForMatchLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) + mapStringForMatchLabels := "map[string]string{" + for _, k := range keysForMatchLabels { + mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k]) + } + mapStringForMatchLabels += "}" + s := strings.Join([]string{`&LabelSelector{`, + `MatchLabels:` + mapStringForMatchLabels + `,`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LabelSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func (this *ListMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListMeta{`, + `SelfLink:` + fmt.Sprintf("%v", this.SelfLink) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `}`, + }, "") + return s +} +func (this *RootPaths) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RootPaths{`, + `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, + `}`, + }, "") + return s +} +func (this *ServerAddressByClientCIDR) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServerAddressByClientCIDR{`, + `ClientCIDR:` + fmt.Sprintf("%v", this.ClientCIDR) + `,`, + `ServerAddress:` + fmt.Sprintf("%v", this.ServerAddress) + `,`, + `}`, + }, "") + return s +} +func (this *Status) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Status{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "ListMeta", 1), `&`, ``, 1) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "StatusDetails", "StatusDetails", 1) + `,`, + `Code:` + fmt.Sprintf("%v", this.Code) + `,`, + `}`, + }, "") + return s +} +func (this *StatusCause) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusCause{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Field:` + fmt.Sprintf("%v", this.Field) + `,`, + `}`, + }, "") + return s +} +func (this *StatusDetails) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusDetails{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Group:` + fmt.Sprintf("%v", this.Group) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Causes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Causes), "StatusCause", "StatusCause", 1), `&`, ``, 1) + `,`, + `RetryAfterSeconds:` + fmt.Sprintf("%v", this.RetryAfterSeconds) + `,`, + `}`, + }, "") + return s +} +func (this *Timestamp) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Timestamp{`, + `Seconds:` + fmt.Sprintf("%v", this.Seconds) + `,`, + `Nanos:` + fmt.Sprintf("%v", this.Nanos) + `,`, + `}`, + }, "") + return s +} +func (this *TypeMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TypeMeta{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `}`, + }, "") + 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 *APIGroup) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -4210,3 +4444,93 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 1376 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0x47, 0xec, 0xae, 0x9f, 0x63, 0x92, 0x0e, 0xa9, 0x70, 0x2d, 0x11, 0x87, 0x45, 0xa0, + 0x54, 0x6a, 0x6d, 0x35, 0x02, 0x54, 0x15, 0xf1, 0x11, 0x27, 0x69, 0x15, 0x35, 0x49, 0xa3, 0x49, + 0x15, 0xa4, 0x16, 0x24, 0x36, 0xde, 0xb1, 0xb3, 0xb2, 0xbd, 0xbb, 0xec, 0xec, 0x56, 0x8d, 0x40, + 0xa2, 0x17, 0x24, 0x0e, 0x08, 0xe5, 0xc8, 0x05, 0xd4, 0x4a, 0xfc, 0x07, 0xfc, 0x13, 0x11, 0xa7, + 0x5e, 0x90, 0x38, 0xa0, 0x08, 0xca, 0x85, 0x2b, 0x57, 0x4e, 0xcc, 0xcc, 0xce, 0xec, 0x87, 0x53, + 0x93, 0x0d, 0xf4, 0xc0, 0x61, 0x15, 0xcf, 0xfb, 0x9e, 0xf7, 0x7e, 0xf3, 0xde, 0x0b, 0xbc, 0x39, + 0xb8, 0x46, 0x5b, 0x96, 0xd3, 0x1e, 0x04, 0x7b, 0xc4, 0xb3, 0x89, 0x4f, 0x68, 0xdb, 0x1d, 0xf4, + 0xdb, 0x86, 0x6b, 0xb5, 0x03, 0xfb, 0x3e, 0xf1, 0xa8, 0xe5, 0xd8, 0xc4, 0x6c, 0xf7, 0x89, 0x4d, + 0x3c, 0xc3, 0x27, 0x66, 0xcb, 0xf5, 0x1c, 0xdf, 0x41, 0xaf, 0x85, 0x6a, 0xad, 0x58, 0xad, 0xc5, + 0xd4, 0x5a, 0x4c, 0xad, 0x95, 0x50, 0x6b, 0x5c, 0xe9, 0x5b, 0xfe, 0x7e, 0xb0, 0xd7, 0xea, 0x3a, + 0xa3, 0x76, 0xdf, 0xe9, 0x3b, 0x6d, 0xa1, 0xbd, 0x17, 0xf4, 0xc4, 0x49, 0x1c, 0xc4, 0xaf, 0xd0, + 0x6a, 0xe3, 0xca, 0xb3, 0x83, 0xf1, 0x02, 0xdb, 0xb7, 0x46, 0x64, 0x3c, 0x88, 0xc6, 0xd5, 0x67, + 0x8b, 0x07, 0xbe, 0x35, 0x6c, 0x5b, 0xb6, 0x4f, 0x7d, 0x6f, 0x5c, 0x45, 0xff, 0xb1, 0x08, 0xda, + 0xf2, 0xf6, 0xfa, 0x4d, 0xcf, 0x09, 0x5c, 0xb4, 0x00, 0x53, 0xb6, 0x31, 0x22, 0xf5, 0xfc, 0x42, + 0x7e, 0xb1, 0xd2, 0x99, 0x3e, 0x3a, 0x6e, 0xe6, 0x9e, 0x1e, 0x37, 0xa7, 0xb6, 0x18, 0x0d, 0x0b, + 0x0e, 0x1a, 0x81, 0x26, 0x2f, 0x43, 0xeb, 0x85, 0x85, 0xe2, 0x62, 0x75, 0xe9, 0xbd, 0x56, 0xa6, + 0x9b, 0xb7, 0x84, 0x87, 0xdd, 0xf0, 0x78, 0xc3, 0xf1, 0x56, 0x2d, 0xda, 0x75, 0x18, 0xf7, 0xa0, + 0x33, 0x2b, 0xdd, 0x68, 0x92, 0x49, 0x71, 0xe4, 0x02, 0x7d, 0x91, 0x87, 0x59, 0xd7, 0x23, 0x3d, + 0xe2, 0x79, 0xc4, 0x94, 0xfc, 0x7a, 0x91, 0x45, 0xf7, 0x1c, 0xfc, 0xd6, 0xa5, 0xdf, 0xd9, 0xed, + 0x31, 0x07, 0xf8, 0x84, 0x4b, 0xf4, 0x7d, 0x1e, 0x1a, 0x94, 0x78, 0x4c, 0x6f, 0xd9, 0x34, 0x3d, + 0x42, 0x69, 0xe7, 0x60, 0x65, 0x68, 0x11, 0xdb, 0x5f, 0x59, 0x5f, 0xc5, 0xb4, 0x3e, 0x25, 0x32, + 0xf1, 0x7e, 0xc6, 0x88, 0x76, 0x26, 0x19, 0xea, 0xe8, 0x32, 0xa4, 0xc6, 0x44, 0x11, 0x8a, 0xff, + 0x21, 0x0e, 0xbd, 0x0f, 0xd3, 0xaa, 0x96, 0x1b, 0x16, 0xf5, 0xd1, 0x07, 0x50, 0xee, 0xf3, 0x03, + 0x65, 0x15, 0xe5, 0x11, 0xb6, 0x33, 0x46, 0xa8, 0x8c, 0x74, 0x5e, 0x90, 0x01, 0x95, 0xc5, 0x91, + 0x62, 0x69, 0x4e, 0x67, 0x75, 0xa9, 0x32, 0x21, 0x4c, 0xa8, 0x13, 0x78, 0x5d, 0x92, 0x01, 0x38, + 0x4b, 0x00, 0xfc, 0x2f, 0x75, 0x8d, 0x2e, 0x31, 0x19, 0x74, 0xf2, 0x8b, 0x5a, 0x07, 0x49, 0x39, + 0xd8, 0x8a, 0x38, 0x38, 0x21, 0xc5, 0xad, 0x0e, 0x2c, 0xdb, 0x14, 0x05, 0x4f, 0x58, 0xbd, 0xc5, + 0x68, 0x58, 0x70, 0xf4, 0x1f, 0xf2, 0x30, 0x93, 0x88, 0x43, 0x5c, 0xfa, 0x1a, 0x4c, 0xf7, 0x13, + 0x35, 0x97, 0x31, 0xcd, 0x49, 0xed, 0xe9, 0x24, 0x1e, 0x70, 0x4a, 0x12, 0xf5, 0xa0, 0xe2, 0x49, + 0x4b, 0x0a, 0xdd, 0x4b, 0xd9, 0x33, 0xa6, 0x82, 0x88, 0x5d, 0x25, 0x88, 0x14, 0xc7, 0xa6, 0xf5, + 0x3f, 0xc2, 0xec, 0x29, 0xbc, 0xa3, 0xc5, 0xc4, 0xa3, 0xe2, 0x85, 0x62, 0x77, 0x9d, 0xf0, 0x1e, + 0x4e, 0xc1, 0x61, 0xe1, 0xff, 0x81, 0xc3, 0xeb, 0xda, 0x37, 0x8f, 0x9a, 0xb9, 0x87, 0xbf, 0x2c, + 0xe4, 0xf4, 0x75, 0xd0, 0x56, 0x03, 0xd6, 0x6f, 0x78, 0x7a, 0xdf, 0x01, 0xcd, 0x94, 0xbf, 0x45, + 0x51, 0x8a, 0x9d, 0x57, 0xd4, 0xd3, 0x57, 0x32, 0x7f, 0x1d, 0x37, 0x6b, 0xbc, 0xb3, 0xb5, 0x14, + 0x01, 0x47, 0x2a, 0xfa, 0x87, 0x50, 0x5b, 0x7b, 0xe0, 0x3a, 0x9e, 0x7f, 0xdb, 0xf5, 0x45, 0x32, + 0x5e, 0x87, 0x32, 0x11, 0x04, 0x61, 0x4d, 0x8b, 0xc1, 0x1a, 0x8a, 0x61, 0xc9, 0x45, 0xaf, 0x42, + 0x89, 0x3c, 0x30, 0xba, 0xbe, 0x44, 0x5d, 0x4d, 0x8a, 0x95, 0xd6, 0x38, 0x11, 0x87, 0x3c, 0x66, + 0xbd, 0x22, 0x90, 0xc1, 0xc1, 0xc5, 0x35, 0x04, 0x30, 0x24, 0x76, 0x22, 0x0d, 0x21, 0x81, 0x43, + 0x5e, 0x84, 0xce, 0xc2, 0x24, 0x74, 0x26, 0xd2, 0x30, 0x84, 0x5a, 0xa8, 0xab, 0x1e, 0x4c, 0x26, + 0x0f, 0x97, 0x41, 0x53, 0xa0, 0x91, 0x5e, 0xa2, 0x5e, 0xa9, 0x0c, 0xe1, 0x48, 0x22, 0xe1, 0x6d, + 0x1f, 0x52, 0x28, 0xcf, 0xe6, 0xec, 0x12, 0x9c, 0x93, 0xd0, 0x90, 0xbe, 0x66, 0xa4, 0xd8, 0x39, + 0xf5, 0x58, 0x14, 0x3f, 0xe1, 0xe9, 0x73, 0xa8, 0x4f, 0xea, 0xaf, 0xff, 0xe1, 0x1d, 0x66, 0x0f, + 0x45, 0xff, 0x9a, 0x0d, 0x88, 0xa4, 0xa5, 0xec, 0xe5, 0xcb, 0xee, 0xe4, 0xf4, 0x3e, 0x94, 0xc8, + 0xc8, 0x77, 0x79, 0x98, 0x4b, 0x5d, 0xed, 0x4c, 0x15, 0x3f, 0x43, 0x50, 0x49, 0x70, 0x14, 0xcf, + 0x00, 0x8e, 0x9f, 0x0a, 0x50, 0xdb, 0x30, 0xf6, 0xc8, 0x70, 0x87, 0x0c, 0x49, 0xd7, 0x77, 0x3c, + 0xf4, 0x19, 0x54, 0x47, 0x86, 0xdf, 0xdd, 0x17, 0x54, 0x35, 0x2a, 0xd6, 0x32, 0x36, 0x91, 0x94, + 0xa9, 0xd6, 0x66, 0x6c, 0x67, 0xcd, 0xf6, 0xd9, 0x90, 0x7d, 0x51, 0xc6, 0x54, 0x4d, 0x70, 0x70, + 0xd2, 0x9d, 0x18, 0xf1, 0xe2, 0xcc, 0x5e, 0x2d, 0xef, 0x24, 0xff, 0x62, 0xb5, 0x48, 0xc5, 0x80, + 0xc9, 0x27, 0x81, 0xe5, 0x91, 0x11, 0x6b, 0x46, 0xf1, 0x88, 0xdf, 0x1c, 0x73, 0x80, 0x4f, 0xb8, + 0x6c, 0xbc, 0x0b, 0xb3, 0xe3, 0xd1, 0xa3, 0x59, 0x28, 0x0e, 0xc8, 0x41, 0x58, 0x31, 0xcc, 0x7f, + 0xa2, 0x39, 0x28, 0xdd, 0x37, 0x86, 0x81, 0x7c, 0x8f, 0x38, 0x3c, 0x5c, 0x2f, 0x5c, 0xcb, 0xeb, + 0xac, 0x35, 0xd7, 0x27, 0x05, 0x82, 0x5e, 0x4e, 0x18, 0xea, 0x54, 0x65, 0x54, 0xc5, 0x5b, 0xe4, + 0x20, 0xb4, 0xba, 0x06, 0x9a, 0xe3, 0xf2, 0xb5, 0xcc, 0xf1, 0x64, 0xdd, 0x2f, 0xa9, 0x5a, 0xde, + 0x96, 0x74, 0xd6, 0x19, 0x2f, 0xa4, 0xcc, 0x2b, 0x06, 0x8e, 0x54, 0x91, 0x0e, 0x65, 0x11, 0x0f, + 0x65, 0x80, 0xe0, 0x53, 0x04, 0x78, 0x33, 0xdc, 0x15, 0x14, 0x2c, 0x39, 0xfa, 0xa7, 0xa0, 0xf1, + 0x29, 0xb9, 0x49, 0x7c, 0x83, 0x43, 0x88, 0x92, 0x61, 0x6f, 0xc3, 0xb2, 0x07, 0x32, 0xb4, 0x08, + 0x42, 0x3b, 0x92, 0x8e, 0x23, 0x09, 0xb4, 0x0c, 0x33, 0x0a, 0x4e, 0xbb, 0x29, 0x8c, 0xbe, 0x24, + 0x95, 0x66, 0x70, 0x9a, 0x8d, 0xc7, 0xe5, 0xf5, 0xcb, 0x50, 0xc1, 0x8e, 0xe3, 0x6f, 0x1b, 0xfe, + 0x3e, 0x45, 0x4d, 0x28, 0xb9, 0xfc, 0x87, 0x1c, 0x79, 0x15, 0xfe, 0x18, 0x04, 0x07, 0x87, 0x74, + 0xfd, 0xab, 0x3c, 0x5c, 0x9c, 0x38, 0x80, 0xf8, 0x42, 0xd1, 0x8d, 0x4e, 0x32, 0xfc, 0x68, 0xa1, + 0x88, 0xe5, 0x70, 0x42, 0x0a, 0xbd, 0x0d, 0xb5, 0xd4, 0xd4, 0x92, 0x17, 0xb8, 0x20, 0xd5, 0x6a, + 0x29, 0x6f, 0x38, 0x2d, 0xab, 0xff, 0x59, 0x80, 0xf2, 0x8e, 0x6f, 0xf8, 0x01, 0x45, 0x1f, 0x81, + 0x36, 0x62, 0x09, 0x34, 0x0d, 0xdf, 0x10, 0x9e, 0xb3, 0x6f, 0x56, 0x2a, 0xf7, 0x71, 0xa6, 0x15, + 0x05, 0x47, 0x26, 0xf9, 0x60, 0xa3, 0xc2, 0x91, 0x8c, 0x2f, 0x1a, 0x6c, 0xa1, 0x7b, 0x2c, 0xb9, + 0xbc, 0x5b, 0xb0, 0x5d, 0x89, 0x1a, 0x7d, 0xd5, 0x01, 0xa2, 0x6e, 0xb1, 0x19, 0x92, 0xb1, 0xe2, + 0xa3, 0xb7, 0xa0, 0xec, 0x11, 0x83, 0xb2, 0x9a, 0x4d, 0x09, 0xc9, 0x79, 0x65, 0x12, 0x0b, 0x2a, + 0x43, 0xd7, 0xb4, 0x34, 0x2e, 0xce, 0x58, 0x4a, 0xa3, 0x7b, 0x70, 0xce, 0x64, 0x61, 0x59, 0xac, + 0x2f, 0x94, 0xc4, 0x45, 0xdf, 0xc8, 0xba, 0x5c, 0x08, 0x6b, 0xab, 0xa1, 0x6e, 0xa7, 0xca, 0x83, + 0x92, 0x07, 0xac, 0x2c, 0xf2, 0xbe, 0xda, 0x75, 0x4c, 0x52, 0x2f, 0x33, 0xcb, 0xa5, 0xb8, 0xaf, + 0xae, 0x30, 0x1a, 0x16, 0x1c, 0xfd, 0x90, 0x6d, 0x4a, 0xa1, 0xa5, 0x15, 0x23, 0xa0, 0x04, 0x5d, + 0x8d, 0xae, 0x11, 0x16, 0xfc, 0xa2, 0xd2, 0xb9, 0x73, 0xe0, 0x12, 0x76, 0x89, 0x8a, 0x10, 0xe3, + 0x87, 0xe8, 0x06, 0x89, 0x24, 0x15, 0x4e, 0x49, 0x12, 0x6b, 0xd1, 0x3d, 0x8b, 0x0c, 0x55, 0xa3, + 0x8f, 0x5a, 0xf4, 0x0d, 0x4e, 0xc4, 0x21, 0x4f, 0xff, 0x96, 0xf5, 0xcf, 0xd4, 0xe5, 0x32, 0x2c, + 0xbf, 0x51, 0xef, 0x2f, 0x64, 0xd8, 0x27, 0x26, 0x4e, 0x19, 0x74, 0x17, 0xca, 0x5d, 0x7e, 0x3f, + 0xf5, 0x0f, 0xc7, 0xd2, 0x99, 0x6a, 0x21, 0x52, 0x13, 0x63, 0x49, 0x1c, 0x19, 0x96, 0x42, 0x8b, + 0xe8, 0x26, 0x9c, 0xf7, 0x08, 0xeb, 0x79, 0xcb, 0x3d, 0x9f, 0x78, 0x3b, 0xa4, 0xeb, 0xd8, 0x66, + 0x58, 0xf2, 0x52, 0x94, 0xe4, 0xf3, 0x78, 0x5c, 0x00, 0x9f, 0xd4, 0x61, 0xab, 0xce, 0xd4, 0x1d, + 0xb6, 0xc1, 0xf1, 0xbc, 0x53, 0x69, 0x26, 0x5c, 0xf6, 0xa2, 0xbc, 0x2b, 0x65, 0xc5, 0xe7, 0xe9, + 0xb1, 0x0d, 0xdb, 0x09, 0xe1, 0x5e, 0x8a, 0xd3, 0xb3, 0xc5, 0x89, 0x38, 0xe4, 0x5d, 0x9f, 0xe3, + 0x13, 0xec, 0xcb, 0xc7, 0xcd, 0xdc, 0x21, 0xfb, 0x1e, 0x3d, 0x96, 0xd3, 0xec, 0x1e, 0x54, 0xb8, + 0x37, 0xf6, 0x20, 0x46, 0xee, 0xf3, 0x76, 0xa9, 0x7f, 0x0c, 0x1a, 0x87, 0x92, 0xe8, 0x95, 0xaa, + 0x3a, 0xf9, 0x89, 0xd5, 0x61, 0x0d, 0x89, 0x25, 0x3e, 0xdd, 0x1a, 0xa3, 0x86, 0x14, 0xaf, 0xfb, + 0x38, 0x21, 0xd5, 0xb9, 0x72, 0xf4, 0xdb, 0x7c, 0xee, 0x09, 0xfb, 0x7e, 0x66, 0xdf, 0xc3, 0xa7, + 0xf3, 0xf9, 0x23, 0xf6, 0x3d, 0x61, 0xdf, 0xaf, 0xec, 0x3b, 0xfc, 0x7d, 0x3e, 0x77, 0xb7, 0x9a, + 0x28, 0xe4, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x22, 0x00, 0xde, 0x9c, 0x10, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.proto index bb4bf4aa7b..cab7058aac 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/generated.proto @@ -144,7 +144,7 @@ message GroupVersion { } // GroupVersion contains the "group/version" and "version" string of a version. -// It is made a struct to keep extensiblity. +// It is made a struct to keep extensibility. message GroupVersionForDiscovery { // groupVersion specifies the API group and version in the form "group/version" optional string groupVersion = 1; @@ -328,6 +328,7 @@ message StatusDetails { // // +protobuf.options.marshal=false // +protobuf.as=Timestamp +// +protobuf.options.(gogoproto.goproto_stringer)=false message Time { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/group_version.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/group_version.go index 8f74789217..dfbfe3a32a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/group_version.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/helpers.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/helpers.go index fbbff00197..5bd9051cbc 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/helpers.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/helpers.go @@ -20,6 +20,7 @@ import ( "fmt" "k8s.io/kubernetes/pkg/labels" + "k8s.io/kubernetes/pkg/selection" "k8s.io/kubernetes/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) } @@ -64,6 +65,35 @@ func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error) { return selector, nil } +// LabelSelectorAsMap converts the LabelSelector api type into a map of strings, ie. the +// original structure of a label selector. Operators that cannot be converted into plain +// labels (Exists, DoesNotExist, NotIn, and In with more than one value) will result in +// an error. +func LabelSelectorAsMap(ps *LabelSelector) (map[string]string, error) { + if ps == nil { + return nil, nil + } + selector := map[string]string{} + for k, v := range ps.MatchLabels { + selector[k] = v + } + for _, expr := range ps.MatchExpressions { + switch expr.Operator { + case LabelSelectorOpIn: + if len(expr.Values) != 1 { + return selector, fmt.Errorf("operator %q without a single value cannot be converted into the old label selector format", expr.Operator) + } + // Should we do anything in case this will override a previous key-value pair? + selector[expr.Key] = expr.Values[0] + case LabelSelectorOpNotIn, LabelSelectorOpExists, LabelSelectorOpDoesNotExist: + return selector, fmt.Errorf("operator %q cannot be converted into the old label selector format", expr.Operator) + default: + return selector, fmt.Errorf("%q is not a valid selector operator", expr.Operator) + } + } + return selector, nil +} + // ParseToLabelSelector parses a string representing a selector into a LabelSelector object. // Note: This function should be kept in sync with the parser in pkg/labels/selector.go func ParseToLabelSelector(selector string) (*LabelSelector, error) { @@ -79,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") @@ -90,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/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/time.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/time.go index 73b00f2e7c..7e6281a205 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/time.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/time.go @@ -29,6 +29,7 @@ import ( // // +protobuf.options.marshal=false // +protobuf.as=Timestamp +// +protobuf.options.(gogoproto.goproto_stringer)=false type Time struct { time.Time `protobuf:"-"` } @@ -40,6 +41,11 @@ func (t Time) DeepCopy() Time { return t } +// String returns the representation of the time. +func (t Time) String() string { + return t.Time.String() +} + // NewTime returns a wrapped instance of the provided time func NewTime(time time.Time) Time { return Time{time} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types.go index f3964874e1..7d632b496b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types.go @@ -357,7 +357,7 @@ type ServerAddressByClientCIDR struct { } // GroupVersion contains the "group/version" and "version" string of a version. -// It is made a struct to keep extensiblity. +// It is made a struct to keep extensibility. type GroupVersionForDiscovery struct { // groupVersion specifies the API group and version in the form "group/version" GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"` diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types_swagger_doc_generated.go index cdd31eb48d..3f08115a6c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types_swagger_doc_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/types_swagger_doc_generated.go @@ -90,7 +90,7 @@ func (ExportOptions) SwaggerDoc() map[string]string { } var map_GroupVersionForDiscovery = map[string]string{ - "": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensiblity.", + "": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", "groupVersion": "groupVersion specifies the API group and version in the form \"group/version\"", "version": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/zz_generated.deepcopy.go new file mode 100644 index 0000000000..627bb817ec --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/unversioned/zz_generated.deepcopy.go @@ -0,0 +1,390 @@ +// +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 unversioned + +import ( + conversion "k8s.io/kubernetes/pkg/conversion" + time "time" +) + +func DeepCopy_unversioned_APIGroup(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIGroup) + out := out.(*APIGroup) + out.TypeMeta = in.TypeMeta + out.Name = in.Name + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]GroupVersionForDiscovery, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Versions = nil + } + out.PreferredVersion = in.PreferredVersion + if in.ServerAddressByClientCIDRs != nil { + in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs + *out = make([]ServerAddressByClientCIDR, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ServerAddressByClientCIDRs = nil + } + return nil + } +} + +func DeepCopy_unversioned_APIGroupList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIGroupList) + out := out.(*APIGroupList) + out.TypeMeta = in.TypeMeta + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]APIGroup, len(*in)) + for i := range *in { + if err := DeepCopy_unversioned_APIGroup(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Groups = nil + } + return nil + } +} + +func DeepCopy_unversioned_APIResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIResource) + out := out.(*APIResource) + out.Name = in.Name + out.Namespaced = in.Namespaced + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_unversioned_APIResourceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIResourceList) + out := out.(*APIResourceList) + out.TypeMeta = in.TypeMeta + out.GroupVersion = in.GroupVersion + if in.APIResources != nil { + in, out := &in.APIResources, &out.APIResources + *out = make([]APIResource, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.APIResources = nil + } + return nil + } +} + +func DeepCopy_unversioned_APIVersions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIVersions) + out := out.(*APIVersions) + out.TypeMeta = in.TypeMeta + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Versions = nil + } + if in.ServerAddressByClientCIDRs != nil { + in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs + *out = make([]ServerAddressByClientCIDR, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ServerAddressByClientCIDRs = nil + } + return nil + } +} + +func DeepCopy_unversioned_Duration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Duration) + out := out.(*Duration) + out.Duration = in.Duration + return nil + } +} + +func DeepCopy_unversioned_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_unversioned_GroupKind(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupKind) + out := out.(*GroupKind) + out.Group = in.Group + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_unversioned_GroupResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupResource) + out := out.(*GroupResource) + out.Group = in.Group + out.Resource = in.Resource + return nil + } +} + +func DeepCopy_unversioned_GroupVersion(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersion) + out := out.(*GroupVersion) + out.Group = in.Group + out.Version = in.Version + return nil + } +} + +func DeepCopy_unversioned_GroupVersionForDiscovery(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersionForDiscovery) + out := out.(*GroupVersionForDiscovery) + out.GroupVersion = in.GroupVersion + out.Version = in.Version + return nil + } +} + +func DeepCopy_unversioned_GroupVersionKind(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersionKind) + out := out.(*GroupVersionKind) + out.Group = in.Group + out.Version = in.Version + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_unversioned_GroupVersionResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersionResource) + out := out.(*GroupVersionResource) + out.Group = in.Group + out.Version = in.Version + out.Resource = in.Resource + return nil + } +} + +func DeepCopy_unversioned_LabelSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelector) + out := out.(*LabelSelector) + if in.MatchLabels != nil { + in, out := &in.MatchLabels, &out.MatchLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.MatchLabels = nil + } + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]LabelSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_unversioned_LabelSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_unversioned_LabelSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelectorRequirement) + out := out.(*LabelSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_unversioned_ListMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListMeta) + out := out.(*ListMeta) + out.SelfLink = in.SelfLink + out.ResourceVersion = in.ResourceVersion + return nil + } +} + +func DeepCopy_unversioned_Patch(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Patch) + out := out.(*Patch) + _ = in + _ = out + return nil + } +} + +func DeepCopy_unversioned_RootPaths(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RootPaths) + out := out.(*RootPaths) + if in.Paths != nil { + in, out := &in.Paths, &out.Paths + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Paths = nil + } + return nil + } +} + +func DeepCopy_unversioned_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServerAddressByClientCIDR) + out := out.(*ServerAddressByClientCIDR) + out.ClientCIDR = in.ClientCIDR + out.ServerAddress = in.ServerAddress + return nil + } +} + +func DeepCopy_unversioned_Status(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Status) + out := out.(*Status) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + out.Status = in.Status + out.Message = in.Message + out.Reason = in.Reason + if in.Details != nil { + in, out := &in.Details, &out.Details + *out = new(StatusDetails) + if err := DeepCopy_unversioned_StatusDetails(*in, *out, c); err != nil { + return err + } + } else { + out.Details = nil + } + out.Code = in.Code + return nil + } +} + +func DeepCopy_unversioned_StatusCause(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StatusCause) + out := out.(*StatusCause) + out.Type = in.Type + out.Message = in.Message + out.Field = in.Field + return nil + } +} + +func DeepCopy_unversioned_StatusDetails(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StatusDetails) + out := out.(*StatusDetails) + out.Name = in.Name + out.Group = in.Group + out.Kind = in.Kind + if in.Causes != nil { + in, out := &in.Causes, &out.Causes + *out = make([]StatusCause, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Causes = nil + } + out.RetryAfterSeconds = in.RetryAfterSeconds + return nil + } +} + +func DeepCopy_unversioned_Time(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Time) + out := out.(*Time) + if newVal, err := c.DeepCopy(&in.Time); err != nil { + return err + } else { + out.Time = *newVal.(*time.Time) + } + return nil + } +} + +func DeepCopy_unversioned_Timestamp(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Timestamp) + out := out.(*Timestamp) + out.Seconds = in.Seconds + out.Nanos = in.Nanos + return nil + } +} + +func DeepCopy_unversioned_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TypeMeta) + out := out.(*TypeMeta) + out.Kind = in.Kind + out.APIVersion = in.APIVersion + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion.go index 642b1bc5e5..254e568acc 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion.go @@ -19,10 +19,14 @@ package v1 import ( "encoding/json" "fmt" + "reflect" "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/conversion" "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/util/validation/field" + "k8s.io/kubernetes/pkg/watch/versioned" ) const ( @@ -31,9 +35,111 @@ const ( // Value used to identify mirror pods from pre-v1.1 kubelet. mirrorAnnotationValue_1_0 = "mirror" + + // annotation key prefix used to identify non-convertible json paths. + NonConvertibleAnnotationPrefix = "kubernetes.io/non-convertible" ) -func addConversionFuncs(scheme *runtime.Scheme) { +// This is a "fast-path" that avoids reflection for common types. It focuses on the objects that are +// converted the most in the cluster. +// TODO: generate one of these for every external API group - this is to prove the impact +func addFastPathConversionFuncs(scheme *runtime.Scheme) error { + scheme.AddGenericConversionFunc(func(objA, objB interface{}, s conversion.Scope) (bool, error) { + switch a := objA.(type) { + case *Pod: + switch b := objB.(type) { + case *api.Pod: + return true, Convert_v1_Pod_To_api_Pod(a, b, s) + } + case *api.Pod: + switch b := objB.(type) { + case *Pod: + return true, Convert_api_Pod_To_v1_Pod(a, b, s) + } + + case *Event: + switch b := objB.(type) { + case *api.Event: + return true, Convert_v1_Event_To_api_Event(a, b, s) + } + case *api.Event: + switch b := objB.(type) { + case *Event: + return true, Convert_api_Event_To_v1_Event(a, b, s) + } + + case *ReplicationController: + switch b := objB.(type) { + case *api.ReplicationController: + return true, Convert_v1_ReplicationController_To_api_ReplicationController(a, b, s) + } + case *api.ReplicationController: + switch b := objB.(type) { + case *ReplicationController: + return true, Convert_api_ReplicationController_To_v1_ReplicationController(a, b, s) + } + + case *Node: + switch b := objB.(type) { + case *api.Node: + return true, Convert_v1_Node_To_api_Node(a, b, s) + } + case *api.Node: + switch b := objB.(type) { + case *Node: + return true, Convert_api_Node_To_v1_Node(a, b, s) + } + + case *Namespace: + switch b := objB.(type) { + case *api.Namespace: + return true, Convert_v1_Namespace_To_api_Namespace(a, b, s) + } + case *api.Namespace: + switch b := objB.(type) { + case *Namespace: + return true, Convert_api_Namespace_To_v1_Namespace(a, b, s) + } + + case *Service: + switch b := objB.(type) { + case *api.Service: + return true, Convert_v1_Service_To_api_Service(a, b, s) + } + case *api.Service: + switch b := objB.(type) { + case *Service: + return true, Convert_api_Service_To_v1_Service(a, b, s) + } + + case *Endpoints: + switch b := objB.(type) { + case *api.Endpoints: + return true, Convert_v1_Endpoints_To_api_Endpoints(a, b, s) + } + case *api.Endpoints: + switch b := objB.(type) { + case *Endpoints: + return true, Convert_api_Endpoints_To_v1_Endpoints(a, b, s) + } + + case *versioned.Event: + switch b := objB.(type) { + case *versioned.InternalEvent: + return true, versioned.Convert_versioned_Event_to_versioned_InternalEvent(a, b, s) + } + case *versioned.InternalEvent: + switch b := objB.(type) { + case *versioned.Event: + return true, versioned.Convert_versioned_InternalEvent_to_versioned_Event(a, b, s) + } + } + return false, nil + }) + return nil +} + +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions err := scheme.AddConversionFuncs( Convert_api_Pod_To_v1_Pod, @@ -46,14 +152,19 @@ func addConversionFuncs(scheme *runtime.Scheme) { Convert_v1_Secret_To_api_Secret, Convert_v1_ServiceSpec_To_api_ServiceSpec, Convert_v1_ResourceList_To_api_ResourceList, + Convert_v1_ReplicationController_to_extensions_ReplicaSet, + Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec, + Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus, + Convert_extensions_ReplicaSet_to_v1_ReplicationController, + Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec, + Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus, ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } // Add field label conversions for kinds having selectable nothing but ObjectMeta fields. - for _, kind := range []string{ + for _, k := range []string{ "Endpoints", "ResourceQuota", "PersistentVolumeClaim", @@ -61,7 +172,8 @@ func addConversionFuncs(scheme *runtime.Scheme) { "ServiceAccount", "ConfigMap", } { - err = api.Scheme.AddFieldLabelConversionFunc("v1", kind, + kind := k // don't close over range variables + err = scheme.AddFieldLabelConversionFunc("v1", kind, func(label, value string) (string, string, error) { switch label { case "metadata.namespace", @@ -70,25 +182,26 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label %q not supported for %q", label, kind) } - }) + }, + ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } } // Add field conversion funcs. - err = api.Scheme.AddFieldLabelConversionFunc("v1", "Pod", + 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": @@ -96,12 +209,12 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) + }, + ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } - err = api.Scheme.AddFieldLabelConversionFunc("v1", "Node", + err = scheme.AddFieldLabelConversionFunc("v1", "Node", func(label, value string) (string, string, error) { switch label { case "metadata.name": @@ -111,12 +224,12 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) + }, + ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } - err = api.Scheme.AddFieldLabelConversionFunc("v1", "ReplicationController", + err = scheme.AddFieldLabelConversionFunc("v1", "ReplicationController", func(label, value string) (string, string, error) { switch label { case "metadata.name", @@ -128,88 +241,134 @@ func addConversionFuncs(scheme *runtime.Scheme) { } }) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } - err = api.Scheme.AddFieldLabelConversionFunc("v1", "Event", + err = scheme.AddFieldLabelConversionFunc("v1", "PersistentVolume", func(label, value string) (string, string, error) { switch label { - case "involvedObject.kind", - "involvedObject.namespace", - "involvedObject.name", - "involvedObject.uid", - "involvedObject.apiVersion", - "involvedObject.resourceVersion", - "involvedObject.fieldPath", - "reason", - "source", - "type", - "metadata.namespace", - "metadata.name": + case "metadata.name": return label, value, nil default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) + }, + ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } - err = api.Scheme.AddFieldLabelConversionFunc("v1", "Namespace", - func(label, value string) (string, string, error) { - switch label { - case "status.phase", - "metadata.name": - return label, value, nil - default: - return "", "", fmt.Errorf("field label not supported: %s", label) - } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + if err := AddFieldLabelConversionsForEvent(scheme); err != nil { + return err } - err = api.Scheme.AddFieldLabelConversionFunc("v1", "PersistentVolume", - 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) - } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + if err := AddFieldLabelConversionsForNamespace(scheme); err != nil { + return err } - err = api.Scheme.AddFieldLabelConversionFunc("v1", "Secret", - func(label, value string) (string, string, error) { - switch label { - case "type", - "metadata.namespace", - "metadata.name": - return label, value, nil - default: - return "", "", fmt.Errorf("field label not supported: %s", label) - } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + if err := AddFieldLabelConversionsForSecret(scheme); err != nil { + return err } + return nil +} + +func Convert_v1_ReplicationController_to_extensions_ReplicaSet(in *ReplicationController, out *extensions.ReplicaSet, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*ReplicationController))(in) + } + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(in *ReplicationControllerSpec, out *extensions.ReplicaSetSpec, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*ReplicationControllerSpec))(in) + } + out.Replicas = *in.Replicas + if in.Selector != nil { + api.Convert_map_to_unversioned_LabelSelector(&in.Selector, out.Selector, s) + } + if in.Template != nil { + if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in.Template, &out.Template, s); err != nil { + return err + } + } + return nil +} + +func Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus(in *ReplicationControllerStatus, out *extensions.ReplicaSetStatus, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*ReplicationControllerStatus))(in) + } + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil +} + +func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.ReplicaSet, out *ReplicationController, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*extensions.ReplicaSet))(in) + } + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { + fieldErr, ok := err.(*field.Error) + if !ok { + return err + } + if out.Annotations == nil { + out.Annotations = make(map[string]string) + } + out.Annotations[NonConvertibleAnnotationPrefix+"/"+fieldErr.Field] = reflect.ValueOf(fieldErr.BadValue).String() + } + if err := Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(in *extensions.ReplicaSetSpec, out *ReplicationControllerSpec, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*extensions.ReplicaSetSpec))(in) + } + out.Replicas = new(int32) + *out.Replicas = in.Replicas + var invalidErr error + if in.Selector != nil { + invalidErr = api.Convert_unversioned_LabelSelector_to_map(in.Selector, &out.Selector, s) + } + out.Template = new(PodTemplateSpec) + if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, out.Template, s); err != nil { + return err + } + return invalidErr +} + +func Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus(in *extensions.ReplicaSetStatus, out *ReplicationControllerStatus, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*extensions.ReplicaSetStatus))(in) + } + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil } func Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(in *api.ReplicationControllerSpec, out *ReplicationControllerSpec, s conversion.Scope) error { out.Replicas = &in.Replicas out.Selector = in.Selector - //if in.TemplateRef != nil { - // out.TemplateRef = new(ObjectReference) - // if err := Convert_api_ObjectReference_To_v1_ObjectReference(in.TemplateRef, out.TemplateRef, s); err != nil { - // return err - // } - //} else { - // out.TemplateRef = nil - //} if in.Template != nil { out.Template = new(PodTemplateSpec) if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in.Template, out.Template, s); err != nil { @@ -224,15 +383,6 @@ func Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(in *a func Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(in *ReplicationControllerSpec, out *api.ReplicationControllerSpec, s conversion.Scope) error { out.Replicas = *in.Replicas out.Selector = in.Selector - - //if in.TemplateRef != nil { - // out.TemplateRef = new(api.ObjectReference) - // if err := Convert_v1_ObjectReference_To_api_ObjectReference(in.TemplateRef, out.TemplateRef, s); err != nil { - // return err - // } - //} else { - // out.TemplateRef = nil - //} if in.Template != nil { out.Template = new(api.PodTemplateSpec) if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in.Template, out.Template, s); err != nil { @@ -271,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 { @@ -305,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 { @@ -321,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 { @@ -353,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 } @@ -406,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)) @@ -414,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 { @@ -422,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) @@ -446,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 { @@ -484,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 @@ -577,3 +745,53 @@ func Convert_v1_ResourceList_To_api_ResourceList(in *ResourceList, out *api.Reso } return nil } + +func AddFieldLabelConversionsForEvent(scheme *runtime.Scheme) error { + return scheme.AddFieldLabelConversionFunc("v1", "Event", + func(label, value string) (string, string, error) { + switch label { + case "involvedObject.kind", + "involvedObject.namespace", + "involvedObject.name", + "involvedObject.uid", + "involvedObject.apiVersion", + "involvedObject.resourceVersion", + "involvedObject.fieldPath", + "reason", + "source", + "type", + "metadata.namespace", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }) +} + +func AddFieldLabelConversionsForNamespace(scheme *runtime.Scheme) error { + return scheme.AddFieldLabelConversionFunc("v1", "Namespace", + func(label, value string) (string, string, error) { + switch label { + case "status.phase", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }) +} + +func AddFieldLabelConversionsForSecret(scheme *runtime.Scheme) error { + return scheme.AddFieldLabelConversionFunc("v1", "Secret", + func(label, value string) (string, string, error) { + switch label { + case "type", + "metadata.namespace", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/deep_copy_generated.go deleted file mode 100644 index 9054da35ed..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/deep_copy_generated.go +++ /dev/null @@ -1,2924 +0,0 @@ -// +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 v1 - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" - runtime "k8s.io/kubernetes/pkg/runtime" - types "k8s.io/kubernetes/pkg/types" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1_AWSElasticBlockStoreVolumeSource, - DeepCopy_v1_Affinity, - DeepCopy_v1_AttachedVolume, - DeepCopy_v1_AzureFileVolumeSource, - DeepCopy_v1_Binding, - DeepCopy_v1_Capabilities, - DeepCopy_v1_CephFSVolumeSource, - DeepCopy_v1_CinderVolumeSource, - DeepCopy_v1_ComponentCondition, - DeepCopy_v1_ComponentStatus, - DeepCopy_v1_ComponentStatusList, - DeepCopy_v1_ConfigMap, - DeepCopy_v1_ConfigMapKeySelector, - DeepCopy_v1_ConfigMapList, - DeepCopy_v1_ConfigMapVolumeSource, - DeepCopy_v1_Container, - DeepCopy_v1_ContainerImage, - DeepCopy_v1_ContainerPort, - DeepCopy_v1_ContainerState, - DeepCopy_v1_ContainerStateRunning, - DeepCopy_v1_ContainerStateTerminated, - DeepCopy_v1_ContainerStateWaiting, - DeepCopy_v1_ContainerStatus, - DeepCopy_v1_DaemonEndpoint, - DeepCopy_v1_DeleteOptions, - DeepCopy_v1_DownwardAPIVolumeFile, - DeepCopy_v1_DownwardAPIVolumeSource, - DeepCopy_v1_EmptyDirVolumeSource, - DeepCopy_v1_EndpointAddress, - DeepCopy_v1_EndpointPort, - DeepCopy_v1_EndpointSubset, - DeepCopy_v1_Endpoints, - DeepCopy_v1_EndpointsList, - DeepCopy_v1_EnvVar, - DeepCopy_v1_EnvVarSource, - DeepCopy_v1_Event, - DeepCopy_v1_EventList, - DeepCopy_v1_EventSource, - DeepCopy_v1_ExecAction, - DeepCopy_v1_ExportOptions, - DeepCopy_v1_FCVolumeSource, - DeepCopy_v1_FlexVolumeSource, - DeepCopy_v1_FlockerVolumeSource, - DeepCopy_v1_GCEPersistentDiskVolumeSource, - DeepCopy_v1_GitRepoVolumeSource, - DeepCopy_v1_GlusterfsVolumeSource, - DeepCopy_v1_HTTPGetAction, - DeepCopy_v1_HTTPHeader, - DeepCopy_v1_Handler, - DeepCopy_v1_HostPathVolumeSource, - DeepCopy_v1_ISCSIVolumeSource, - DeepCopy_v1_KeyToPath, - DeepCopy_v1_Lifecycle, - DeepCopy_v1_LimitRange, - DeepCopy_v1_LimitRangeItem, - DeepCopy_v1_LimitRangeList, - DeepCopy_v1_LimitRangeSpec, - DeepCopy_v1_List, - DeepCopy_v1_ListOptions, - DeepCopy_v1_LoadBalancerIngress, - DeepCopy_v1_LoadBalancerStatus, - DeepCopy_v1_LocalObjectReference, - DeepCopy_v1_NFSVolumeSource, - DeepCopy_v1_Namespace, - DeepCopy_v1_NamespaceList, - DeepCopy_v1_NamespaceSpec, - DeepCopy_v1_NamespaceStatus, - DeepCopy_v1_Node, - DeepCopy_v1_NodeAddress, - DeepCopy_v1_NodeAffinity, - DeepCopy_v1_NodeCondition, - DeepCopy_v1_NodeDaemonEndpoints, - DeepCopy_v1_NodeList, - DeepCopy_v1_NodeProxyOptions, - DeepCopy_v1_NodeSelector, - DeepCopy_v1_NodeSelectorRequirement, - DeepCopy_v1_NodeSelectorTerm, - DeepCopy_v1_NodeSpec, - DeepCopy_v1_NodeStatus, - DeepCopy_v1_NodeSystemInfo, - DeepCopy_v1_ObjectFieldSelector, - DeepCopy_v1_ObjectMeta, - DeepCopy_v1_ObjectReference, - DeepCopy_v1_OwnerReference, - DeepCopy_v1_PersistentVolume, - DeepCopy_v1_PersistentVolumeClaim, - DeepCopy_v1_PersistentVolumeClaimList, - DeepCopy_v1_PersistentVolumeClaimSpec, - DeepCopy_v1_PersistentVolumeClaimStatus, - DeepCopy_v1_PersistentVolumeClaimVolumeSource, - DeepCopy_v1_PersistentVolumeList, - DeepCopy_v1_PersistentVolumeSource, - DeepCopy_v1_PersistentVolumeSpec, - DeepCopy_v1_PersistentVolumeStatus, - DeepCopy_v1_Pod, - DeepCopy_v1_PodAffinity, - DeepCopy_v1_PodAffinityTerm, - DeepCopy_v1_PodAntiAffinity, - DeepCopy_v1_PodAttachOptions, - DeepCopy_v1_PodCondition, - DeepCopy_v1_PodExecOptions, - DeepCopy_v1_PodList, - DeepCopy_v1_PodLogOptions, - DeepCopy_v1_PodProxyOptions, - DeepCopy_v1_PodSecurityContext, - DeepCopy_v1_PodSpec, - DeepCopy_v1_PodStatus, - DeepCopy_v1_PodStatusResult, - DeepCopy_v1_PodTemplate, - DeepCopy_v1_PodTemplateList, - DeepCopy_v1_PodTemplateSpec, - DeepCopy_v1_Preconditions, - DeepCopy_v1_PreferredSchedulingTerm, - DeepCopy_v1_Probe, - DeepCopy_v1_RBDVolumeSource, - DeepCopy_v1_RangeAllocation, - DeepCopy_v1_ReplicationController, - DeepCopy_v1_ReplicationControllerList, - DeepCopy_v1_ReplicationControllerSpec, - DeepCopy_v1_ReplicationControllerStatus, - DeepCopy_v1_ResourceFieldSelector, - DeepCopy_v1_ResourceQuota, - DeepCopy_v1_ResourceQuotaList, - DeepCopy_v1_ResourceQuotaSpec, - DeepCopy_v1_ResourceQuotaStatus, - DeepCopy_v1_ResourceRequirements, - DeepCopy_v1_SELinuxOptions, - DeepCopy_v1_Secret, - DeepCopy_v1_SecretKeySelector, - DeepCopy_v1_SecretList, - DeepCopy_v1_SecretVolumeSource, - DeepCopy_v1_SecurityContext, - DeepCopy_v1_SerializedReference, - DeepCopy_v1_Service, - DeepCopy_v1_ServiceAccount, - DeepCopy_v1_ServiceAccountList, - DeepCopy_v1_ServiceList, - DeepCopy_v1_ServicePort, - DeepCopy_v1_ServiceProxyOptions, - DeepCopy_v1_ServiceSpec, - DeepCopy_v1_ServiceStatus, - DeepCopy_v1_TCPSocketAction, - DeepCopy_v1_Taint, - DeepCopy_v1_Toleration, - DeepCopy_v1_Volume, - DeepCopy_v1_VolumeMount, - DeepCopy_v1_VolumeSource, - DeepCopy_v1_VsphereVirtualDiskVolumeSource, - DeepCopy_v1_WeightedPodAffinityTerm, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1_AWSElasticBlockStoreVolumeSource(in AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, c *conversion.Cloner) error { - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_Affinity(in Affinity, out *Affinity, c *conversion.Cloner) error { - if in.NodeAffinity != nil { - in, out := in.NodeAffinity, &out.NodeAffinity - *out = new(NodeAffinity) - if err := DeepCopy_v1_NodeAffinity(*in, *out, c); err != nil { - return err - } - } else { - out.NodeAffinity = nil - } - if in.PodAffinity != nil { - in, out := in.PodAffinity, &out.PodAffinity - *out = new(PodAffinity) - if err := DeepCopy_v1_PodAffinity(*in, *out, c); err != nil { - return err - } - } else { - out.PodAffinity = nil - } - if in.PodAntiAffinity != nil { - in, out := in.PodAntiAffinity, &out.PodAntiAffinity - *out = new(PodAntiAffinity) - if err := DeepCopy_v1_PodAntiAffinity(*in, *out, c); err != nil { - return err - } - } else { - out.PodAntiAffinity = nil - } - return nil -} - -func DeepCopy_v1_AttachedVolume(in AttachedVolume, out *AttachedVolume, c *conversion.Cloner) error { - out.Name = in.Name - out.DevicePath = in.DevicePath - return nil -} - -func DeepCopy_v1_AzureFileVolumeSource(in AzureFileVolumeSource, out *AzureFileVolumeSource, c *conversion.Cloner) error { - out.SecretName = in.SecretName - out.ShareName = in.ShareName - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_Binding(in Binding, out *Binding, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Target = in.Target - return nil -} - -func DeepCopy_v1_Capabilities(in Capabilities, out *Capabilities, c *conversion.Cloner) error { - if in.Add != nil { - in, out := in.Add, &out.Add - *out = make([]Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Add = nil - } - if in.Drop != nil { - in, out := in.Drop, &out.Drop - *out = make([]Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Drop = nil - } - return nil -} - -func DeepCopy_v1_CephFSVolumeSource(in CephFSVolumeSource, out *CephFSVolumeSource, c *conversion.Cloner) error { - if in.Monitors != nil { - in, out := in.Monitors, &out.Monitors - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Monitors = nil - } - out.Path = in.Path - out.User = in.User - out.SecretFile = in.SecretFile - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_CinderVolumeSource(in CinderVolumeSource, out *CinderVolumeSource, c *conversion.Cloner) error { - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_ComponentCondition(in ComponentCondition, out *ComponentCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.Message = in.Message - out.Error = in.Error - return nil -} - -func DeepCopy_v1_ComponentStatus(in ComponentStatus, out *ComponentStatus, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]ComponentCondition, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Conditions = nil - } - return nil -} - -func DeepCopy_v1_ComponentStatusList(in ComponentStatusList, out *ComponentStatusList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ComponentStatus, len(in)) - for i := range in { - if err := DeepCopy_v1_ComponentStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ConfigMap(in ConfigMap, out *ConfigMap, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Data = nil - } - return nil -} - -func DeepCopy_v1_ConfigMapKeySelector(in ConfigMapKeySelector, out *ConfigMapKeySelector, c *conversion.Cloner) error { - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key - return nil -} - -func DeepCopy_v1_ConfigMapList(in ConfigMapList, out *ConfigMapList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ConfigMap, len(in)) - for i := range in { - if err := DeepCopy_v1_ConfigMap(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ConfigMapVolumeSource(in ConfigMapVolumeSource, out *ConfigMapVolumeSource, c *conversion.Cloner) error { - out.LocalObjectReference = in.LocalObjectReference - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]KeyToPath, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_Container(in Container, out *Container, c *conversion.Cloner) error { - out.Name = in.Name - out.Image = in.Image - if in.Command != nil { - in, out := in.Command, &out.Command - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Command = nil - } - if in.Args != nil { - in, out := in.Args, &out.Args - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Args = nil - } - out.WorkingDir = in.WorkingDir - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]ContainerPort, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ports = nil - } - if in.Env != nil { - in, out := in.Env, &out.Env - *out = make([]EnvVar, len(in)) - for i := range in { - if err := DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Env = nil - } - if err := DeepCopy_v1_ResourceRequirements(in.Resources, &out.Resources, c); err != nil { - return err - } - if in.VolumeMounts != nil { - in, out := in.VolumeMounts, &out.VolumeMounts - *out = make([]VolumeMount, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.VolumeMounts = nil - } - if in.LivenessProbe != nil { - in, out := in.LivenessProbe, &out.LivenessProbe - *out = new(Probe) - if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { - return err - } - } else { - out.LivenessProbe = nil - } - if in.ReadinessProbe != nil { - in, out := in.ReadinessProbe, &out.ReadinessProbe - *out = new(Probe) - if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { - return err - } - } else { - out.ReadinessProbe = nil - } - if in.Lifecycle != nil { - in, out := in.Lifecycle, &out.Lifecycle - *out = new(Lifecycle) - if err := DeepCopy_v1_Lifecycle(*in, *out, c); err != nil { - return err - } - } else { - out.Lifecycle = nil - } - out.TerminationMessagePath = in.TerminationMessagePath - out.ImagePullPolicy = in.ImagePullPolicy - if in.SecurityContext != nil { - in, out := in.SecurityContext, &out.SecurityContext - *out = new(SecurityContext) - if err := DeepCopy_v1_SecurityContext(*in, *out, c); err != nil { - return err - } - } else { - out.SecurityContext = nil - } - out.Stdin = in.Stdin - out.StdinOnce = in.StdinOnce - out.TTY = in.TTY - return nil -} - -func DeepCopy_v1_ContainerImage(in ContainerImage, out *ContainerImage, c *conversion.Cloner) error { - if in.Names != nil { - in, out := in.Names, &out.Names - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Names = nil - } - out.SizeBytes = in.SizeBytes - return nil -} - -func DeepCopy_v1_ContainerPort(in ContainerPort, out *ContainerPort, c *conversion.Cloner) error { - out.Name = in.Name - out.HostPort = in.HostPort - out.ContainerPort = in.ContainerPort - out.Protocol = in.Protocol - out.HostIP = in.HostIP - return nil -} - -func DeepCopy_v1_ContainerState(in ContainerState, out *ContainerState, c *conversion.Cloner) error { - if in.Waiting != nil { - in, out := in.Waiting, &out.Waiting - *out = new(ContainerStateWaiting) - **out = *in - } else { - out.Waiting = nil - } - if in.Running != nil { - in, out := in.Running, &out.Running - *out = new(ContainerStateRunning) - if err := DeepCopy_v1_ContainerStateRunning(*in, *out, c); err != nil { - return err - } - } else { - out.Running = nil - } - if in.Terminated != nil { - in, out := in.Terminated, &out.Terminated - *out = new(ContainerStateTerminated) - if err := DeepCopy_v1_ContainerStateTerminated(*in, *out, c); err != nil { - return err - } - } else { - out.Terminated = nil - } - return nil -} - -func DeepCopy_v1_ContainerStateRunning(in ContainerStateRunning, out *ContainerStateRunning, c *conversion.Cloner) error { - out.StartedAt = in.StartedAt.DeepCopy() - return nil -} - -func DeepCopy_v1_ContainerStateTerminated(in ContainerStateTerminated, out *ContainerStateTerminated, c *conversion.Cloner) error { - out.ExitCode = in.ExitCode - out.Signal = in.Signal - out.Reason = in.Reason - out.Message = in.Message - out.StartedAt = in.StartedAt.DeepCopy() - out.FinishedAt = in.FinishedAt.DeepCopy() - out.ContainerID = in.ContainerID - return nil -} - -func DeepCopy_v1_ContainerStateWaiting(in ContainerStateWaiting, out *ContainerStateWaiting, c *conversion.Cloner) error { - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v1_ContainerStatus(in ContainerStatus, out *ContainerStatus, c *conversion.Cloner) error { - out.Name = in.Name - if err := DeepCopy_v1_ContainerState(in.State, &out.State, c); err != nil { - return err - } - if err := DeepCopy_v1_ContainerState(in.LastTerminationState, &out.LastTerminationState, c); err != nil { - return err - } - out.Ready = in.Ready - out.RestartCount = in.RestartCount - out.Image = in.Image - out.ImageID = in.ImageID - out.ContainerID = in.ContainerID - return nil -} - -func DeepCopy_v1_DaemonEndpoint(in DaemonEndpoint, out *DaemonEndpoint, c *conversion.Cloner) error { - out.Port = in.Port - return nil -} - -func DeepCopy_v1_DeleteOptions(in DeleteOptions, out *DeleteOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if in.GracePeriodSeconds != nil { - in, out := in.GracePeriodSeconds, &out.GracePeriodSeconds - *out = new(int64) - **out = *in - } else { - out.GracePeriodSeconds = nil - } - if in.Preconditions != nil { - in, out := in.Preconditions, &out.Preconditions - *out = new(Preconditions) - if err := DeepCopy_v1_Preconditions(*in, *out, c); err != nil { - return err - } - } else { - out.Preconditions = nil - } - if in.OrphanDependents != nil { - in, out := in.OrphanDependents, &out.OrphanDependents - *out = new(bool) - **out = *in - } else { - out.OrphanDependents = nil - } - return nil -} - -func DeepCopy_v1_DownwardAPIVolumeFile(in DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, c *conversion.Cloner) error { - out.Path = in.Path - if in.FieldRef != nil { - in, out := in.FieldRef, &out.FieldRef - *out = new(ObjectFieldSelector) - **out = *in - } else { - out.FieldRef = nil - } - if in.ResourceFieldRef != nil { - in, out := in.ResourceFieldRef, &out.ResourceFieldRef - *out = new(ResourceFieldSelector) - if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { - return err - } - } else { - out.ResourceFieldRef = nil - } - return nil -} - -func DeepCopy_v1_DownwardAPIVolumeSource(in DownwardAPIVolumeSource, out *DownwardAPIVolumeSource, c *conversion.Cloner) error { - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]DownwardAPIVolumeFile, len(in)) - for i := range in { - if err := DeepCopy_v1_DownwardAPIVolumeFile(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_EmptyDirVolumeSource(in EmptyDirVolumeSource, out *EmptyDirVolumeSource, c *conversion.Cloner) error { - out.Medium = in.Medium - return nil -} - -func DeepCopy_v1_EndpointAddress(in EndpointAddress, out *EndpointAddress, c *conversion.Cloner) error { - out.IP = in.IP - out.Hostname = in.Hostname - if in.TargetRef != nil { - in, out := in.TargetRef, &out.TargetRef - *out = new(ObjectReference) - **out = *in - } else { - out.TargetRef = nil - } - return nil -} - -func DeepCopy_v1_EndpointPort(in EndpointPort, out *EndpointPort, c *conversion.Cloner) error { - out.Name = in.Name - out.Port = in.Port - out.Protocol = in.Protocol - return nil -} - -func DeepCopy_v1_EndpointSubset(in EndpointSubset, out *EndpointSubset, c *conversion.Cloner) error { - if in.Addresses != nil { - in, out := in.Addresses, &out.Addresses - *out = make([]EndpointAddress, len(in)) - for i := range in { - if err := DeepCopy_v1_EndpointAddress(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Addresses = nil - } - if in.NotReadyAddresses != nil { - in, out := in.NotReadyAddresses, &out.NotReadyAddresses - *out = make([]EndpointAddress, len(in)) - for i := range in { - if err := DeepCopy_v1_EndpointAddress(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.NotReadyAddresses = nil - } - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]EndpointPort, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ports = nil - } - return nil -} - -func DeepCopy_v1_Endpoints(in Endpoints, out *Endpoints, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Subsets != nil { - in, out := in.Subsets, &out.Subsets - *out = make([]EndpointSubset, len(in)) - for i := range in { - if err := DeepCopy_v1_EndpointSubset(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Subsets = nil - } - return nil -} - -func DeepCopy_v1_EndpointsList(in EndpointsList, out *EndpointsList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Endpoints, len(in)) - for i := range in { - if err := DeepCopy_v1_Endpoints(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_EnvVar(in EnvVar, out *EnvVar, c *conversion.Cloner) error { - out.Name = in.Name - out.Value = in.Value - if in.ValueFrom != nil { - in, out := in.ValueFrom, &out.ValueFrom - *out = new(EnvVarSource) - if err := DeepCopy_v1_EnvVarSource(*in, *out, c); err != nil { - return err - } - } else { - out.ValueFrom = nil - } - return nil -} - -func DeepCopy_v1_EnvVarSource(in EnvVarSource, out *EnvVarSource, c *conversion.Cloner) error { - if in.FieldRef != nil { - in, out := in.FieldRef, &out.FieldRef - *out = new(ObjectFieldSelector) - **out = *in - } else { - out.FieldRef = nil - } - if in.ResourceFieldRef != nil { - in, out := in.ResourceFieldRef, &out.ResourceFieldRef - *out = new(ResourceFieldSelector) - if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { - return err - } - } else { - out.ResourceFieldRef = nil - } - if in.ConfigMapKeyRef != nil { - in, out := in.ConfigMapKeyRef, &out.ConfigMapKeyRef - *out = new(ConfigMapKeySelector) - **out = *in - } else { - out.ConfigMapKeyRef = nil - } - if in.SecretKeyRef != nil { - in, out := in.SecretKeyRef, &out.SecretKeyRef - *out = new(SecretKeySelector) - **out = *in - } else { - out.SecretKeyRef = nil - } - return nil -} - -func DeepCopy_v1_Event(in Event, out *Event, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.InvolvedObject = in.InvolvedObject - out.Reason = in.Reason - out.Message = in.Message - out.Source = in.Source - out.FirstTimestamp = in.FirstTimestamp.DeepCopy() - out.LastTimestamp = in.LastTimestamp.DeepCopy() - out.Count = in.Count - out.Type = in.Type - return nil -} - -func DeepCopy_v1_EventList(in EventList, out *EventList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Event, len(in)) - for i := range in { - if err := DeepCopy_v1_Event(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_EventSource(in EventSource, out *EventSource, c *conversion.Cloner) error { - out.Component = in.Component - out.Host = in.Host - return nil -} - -func DeepCopy_v1_ExecAction(in ExecAction, out *ExecAction, c *conversion.Cloner) error { - if in.Command != nil { - in, out := in.Command, &out.Command - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Command = nil - } - return nil -} - -func DeepCopy_v1_ExportOptions(in ExportOptions, out *ExportOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Export = in.Export - out.Exact = in.Exact - return nil -} - -func DeepCopy_v1_FCVolumeSource(in FCVolumeSource, out *FCVolumeSource, c *conversion.Cloner) error { - if in.TargetWWNs != nil { - in, out := in.TargetWWNs, &out.TargetWWNs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.TargetWWNs = nil - } - if in.Lun != nil { - in, out := in.Lun, &out.Lun - *out = new(int32) - **out = *in - } else { - out.Lun = nil - } - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_FlexVolumeSource(in FlexVolumeSource, out *FlexVolumeSource, c *conversion.Cloner) error { - out.Driver = in.Driver - out.FSType = in.FSType - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - out.ReadOnly = in.ReadOnly - if in.Options != nil { - in, out := in.Options, &out.Options - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Options = nil - } - return nil -} - -func DeepCopy_v1_FlockerVolumeSource(in FlockerVolumeSource, out *FlockerVolumeSource, c *conversion.Cloner) error { - out.DatasetName = in.DatasetName - return nil -} - -func DeepCopy_v1_GCEPersistentDiskVolumeSource(in GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, c *conversion.Cloner) error { - out.PDName = in.PDName - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_GitRepoVolumeSource(in GitRepoVolumeSource, out *GitRepoVolumeSource, c *conversion.Cloner) error { - out.Repository = in.Repository - out.Revision = in.Revision - out.Directory = in.Directory - return nil -} - -func DeepCopy_v1_GlusterfsVolumeSource(in GlusterfsVolumeSource, out *GlusterfsVolumeSource, c *conversion.Cloner) error { - out.EndpointsName = in.EndpointsName - out.Path = in.Path - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_HTTPGetAction(in HTTPGetAction, out *HTTPGetAction, c *conversion.Cloner) error { - out.Path = in.Path - out.Port = in.Port - out.Host = in.Host - out.Scheme = in.Scheme - if in.HTTPHeaders != nil { - in, out := in.HTTPHeaders, &out.HTTPHeaders - *out = make([]HTTPHeader, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.HTTPHeaders = nil - } - return nil -} - -func DeepCopy_v1_HTTPHeader(in HTTPHeader, out *HTTPHeader, c *conversion.Cloner) error { - out.Name = in.Name - out.Value = in.Value - return nil -} - -func DeepCopy_v1_Handler(in Handler, out *Handler, c *conversion.Cloner) error { - if in.Exec != nil { - in, out := in.Exec, &out.Exec - *out = new(ExecAction) - if err := DeepCopy_v1_ExecAction(*in, *out, c); err != nil { - return err - } - } else { - out.Exec = nil - } - if in.HTTPGet != nil { - in, out := in.HTTPGet, &out.HTTPGet - *out = new(HTTPGetAction) - if err := DeepCopy_v1_HTTPGetAction(*in, *out, c); err != nil { - return err - } - } else { - out.HTTPGet = nil - } - if in.TCPSocket != nil { - in, out := in.TCPSocket, &out.TCPSocket - *out = new(TCPSocketAction) - **out = *in - } else { - out.TCPSocket = nil - } - return nil -} - -func DeepCopy_v1_HostPathVolumeSource(in HostPathVolumeSource, out *HostPathVolumeSource, c *conversion.Cloner) error { - out.Path = in.Path - return nil -} - -func DeepCopy_v1_ISCSIVolumeSource(in ISCSIVolumeSource, out *ISCSIVolumeSource, c *conversion.Cloner) error { - out.TargetPortal = in.TargetPortal - out.IQN = in.IQN - out.Lun = in.Lun - out.ISCSIInterface = in.ISCSIInterface - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_KeyToPath(in KeyToPath, out *KeyToPath, c *conversion.Cloner) error { - out.Key = in.Key - out.Path = in.Path - return nil -} - -func DeepCopy_v1_Lifecycle(in Lifecycle, out *Lifecycle, c *conversion.Cloner) error { - if in.PostStart != nil { - in, out := in.PostStart, &out.PostStart - *out = new(Handler) - if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { - return err - } - } else { - out.PostStart = nil - } - if in.PreStop != nil { - in, out := in.PreStop, &out.PreStop - *out = new(Handler) - if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { - return err - } - } else { - out.PreStop = nil - } - return nil -} - -func DeepCopy_v1_LimitRange(in LimitRange, out *LimitRange, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_LimitRangeSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_LimitRangeItem(in LimitRangeItem, out *LimitRangeItem, c *conversion.Cloner) error { - out.Type = in.Type - if in.Max != nil { - in, out := in.Max, &out.Max - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Max = nil - } - if in.Min != nil { - in, out := in.Min, &out.Min - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Min = nil - } - if in.Default != nil { - in, out := in.Default, &out.Default - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Default = nil - } - if in.DefaultRequest != nil { - in, out := in.DefaultRequest, &out.DefaultRequest - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.DefaultRequest = nil - } - if in.MaxLimitRequestRatio != nil { - in, out := in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.MaxLimitRequestRatio = nil - } - return nil -} - -func DeepCopy_v1_LimitRangeList(in LimitRangeList, out *LimitRangeList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]LimitRange, len(in)) - for i := range in { - if err := DeepCopy_v1_LimitRange(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_LimitRangeSpec(in LimitRangeSpec, out *LimitRangeSpec, c *conversion.Cloner) error { - if in.Limits != nil { - in, out := in.Limits, &out.Limits - *out = make([]LimitRangeItem, len(in)) - for i := range in { - if err := DeepCopy_v1_LimitRangeItem(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Limits = nil - } - return nil -} - -func DeepCopy_v1_List(in List, out *List, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]runtime.RawExtension, len(in)) - for i := range in { - if err := runtime.DeepCopy_runtime_RawExtension(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ListOptions(in ListOptions, out *ListOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.LabelSelector = in.LabelSelector - out.FieldSelector = in.FieldSelector - out.Watch = in.Watch - out.ResourceVersion = in.ResourceVersion - if in.TimeoutSeconds != nil { - in, out := in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int64) - **out = *in - } else { - out.TimeoutSeconds = nil - } - return nil -} - -func DeepCopy_v1_LoadBalancerIngress(in LoadBalancerIngress, out *LoadBalancerIngress, c *conversion.Cloner) error { - out.IP = in.IP - out.Hostname = in.Hostname - return nil -} - -func DeepCopy_v1_LoadBalancerStatus(in LoadBalancerStatus, out *LoadBalancerStatus, c *conversion.Cloner) error { - if in.Ingress != nil { - in, out := in.Ingress, &out.Ingress - *out = make([]LoadBalancerIngress, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ingress = nil - } - return nil -} - -func DeepCopy_v1_LocalObjectReference(in LocalObjectReference, out *LocalObjectReference, c *conversion.Cloner) error { - out.Name = in.Name - return nil -} - -func DeepCopy_v1_NFSVolumeSource(in NFSVolumeSource, out *NFSVolumeSource, c *conversion.Cloner) error { - out.Server = in.Server - out.Path = in.Path - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_Namespace(in Namespace, out *Namespace, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_NamespaceSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1_NamespaceList(in NamespaceList, out *NamespaceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Namespace, len(in)) - for i := range in { - if err := DeepCopy_v1_Namespace(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_NamespaceSpec(in NamespaceSpec, out *NamespaceSpec, c *conversion.Cloner) error { - if in.Finalizers != nil { - in, out := in.Finalizers, &out.Finalizers - *out = make([]FinalizerName, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Finalizers = nil - } - return nil -} - -func DeepCopy_v1_NamespaceStatus(in NamespaceStatus, out *NamespaceStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - return nil -} - -func DeepCopy_v1_Node(in Node, out *Node, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Spec = in.Spec - if err := DeepCopy_v1_NodeStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_NodeAddress(in NodeAddress, out *NodeAddress, c *conversion.Cloner) error { - out.Type = in.Type - out.Address = in.Address - return nil -} - -func DeepCopy_v1_NodeAffinity(in NodeAffinity, out *NodeAffinity, c *conversion.Cloner) error { - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = new(NodeSelector) - if err := DeepCopy_v1_NodeSelector(*in, *out, c); err != nil { - return err - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]PreferredSchedulingTerm, len(in)) - for i := range in { - if err := DeepCopy_v1_PreferredSchedulingTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } - return nil -} - -func DeepCopy_v1_NodeCondition(in NodeCondition, out *NodeCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v1_NodeDaemonEndpoints(in NodeDaemonEndpoints, out *NodeDaemonEndpoints, c *conversion.Cloner) error { - out.KubeletEndpoint = in.KubeletEndpoint - return nil -} - -func DeepCopy_v1_NodeList(in NodeList, out *NodeList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Node, len(in)) - for i := range in { - if err := DeepCopy_v1_Node(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_NodeProxyOptions(in NodeProxyOptions, out *NodeProxyOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Path = in.Path - return nil -} - -func DeepCopy_v1_NodeSelector(in NodeSelector, out *NodeSelector, c *conversion.Cloner) error { - if in.NodeSelectorTerms != nil { - in, out := in.NodeSelectorTerms, &out.NodeSelectorTerms - *out = make([]NodeSelectorTerm, len(in)) - for i := range in { - if err := DeepCopy_v1_NodeSelectorTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.NodeSelectorTerms = nil - } - return nil -} - -func DeepCopy_v1_NodeSelectorRequirement(in NodeSelectorRequirement, out *NodeSelectorRequirement, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - if in.Values != nil { - in, out := in.Values, &out.Values - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Values = nil - } - return nil -} - -func DeepCopy_v1_NodeSelectorTerm(in NodeSelectorTerm, out *NodeSelectorTerm, c *conversion.Cloner) error { - if in.MatchExpressions != nil { - in, out := in.MatchExpressions, &out.MatchExpressions - *out = make([]NodeSelectorRequirement, len(in)) - for i := range in { - if err := DeepCopy_v1_NodeSelectorRequirement(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func DeepCopy_v1_NodeSpec(in NodeSpec, out *NodeSpec, c *conversion.Cloner) error { - out.PodCIDR = in.PodCIDR - out.ExternalID = in.ExternalID - out.ProviderID = in.ProviderID - out.Unschedulable = in.Unschedulable - return nil -} - -func DeepCopy_v1_NodeStatus(in NodeStatus, out *NodeStatus, c *conversion.Cloner) error { - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - if in.Allocatable != nil { - in, out := in.Allocatable, &out.Allocatable - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Allocatable = nil - } - out.Phase = in.Phase - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]NodeCondition, len(in)) - for i := range in { - if err := DeepCopy_v1_NodeCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.Addresses != nil { - in, out := in.Addresses, &out.Addresses - *out = make([]NodeAddress, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Addresses = nil - } - out.DaemonEndpoints = in.DaemonEndpoints - out.NodeInfo = in.NodeInfo - if in.Images != nil { - in, out := in.Images, &out.Images - *out = make([]ContainerImage, len(in)) - for i := range in { - if err := DeepCopy_v1_ContainerImage(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Images = nil - } - if in.VolumesInUse != nil { - in, out := in.VolumesInUse, &out.VolumesInUse - *out = make([]UniqueVolumeName, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.VolumesInUse = nil - } - if in.VolumesAttached != nil { - in, out := in.VolumesAttached, &out.VolumesAttached - *out = make([]AttachedVolume, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.VolumesAttached = nil - } - return nil -} - -func DeepCopy_v1_NodeSystemInfo(in NodeSystemInfo, out *NodeSystemInfo, c *conversion.Cloner) error { - out.MachineID = in.MachineID - out.SystemUUID = in.SystemUUID - out.BootID = in.BootID - out.KernelVersion = in.KernelVersion - out.OSImage = in.OSImage - out.ContainerRuntimeVersion = in.ContainerRuntimeVersion - out.KubeletVersion = in.KubeletVersion - out.KubeProxyVersion = in.KubeProxyVersion - out.OperatingSystem = in.OperatingSystem - out.Architecture = in.Architecture - return nil -} - -func DeepCopy_v1_ObjectFieldSelector(in ObjectFieldSelector, out *ObjectFieldSelector, c *conversion.Cloner) error { - out.APIVersion = in.APIVersion - out.FieldPath = in.FieldPath - return nil -} - -func DeepCopy_v1_ObjectMeta(in ObjectMeta, out *ObjectMeta, c *conversion.Cloner) error { - out.Name = in.Name - out.GenerateName = in.GenerateName - out.Namespace = in.Namespace - out.SelfLink = in.SelfLink - out.UID = in.UID - out.ResourceVersion = in.ResourceVersion - out.Generation = in.Generation - out.CreationTimestamp = in.CreationTimestamp.DeepCopy() - if in.DeletionTimestamp != nil { - in, out := in.DeletionTimestamp, &out.DeletionTimestamp - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.DeletionTimestamp = nil - } - if in.DeletionGracePeriodSeconds != nil { - in, out := in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds - *out = new(int64) - **out = *in - } else { - out.DeletionGracePeriodSeconds = nil - } - if in.Labels != nil { - in, out := in.Labels, &out.Labels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Labels = 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 - } - if in.OwnerReferences != nil { - in, out := in.OwnerReferences, &out.OwnerReferences - *out = make([]OwnerReference, len(in)) - for i := range in { - if err := DeepCopy_v1_OwnerReference(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.OwnerReferences = nil - } - if in.Finalizers != nil { - in, out := in.Finalizers, &out.Finalizers - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Finalizers = nil - } - return nil -} - -func DeepCopy_v1_ObjectReference(in ObjectReference, out *ObjectReference, c *conversion.Cloner) error { - out.Kind = in.Kind - out.Namespace = in.Namespace - out.Name = in.Name - out.UID = in.UID - out.APIVersion = in.APIVersion - out.ResourceVersion = in.ResourceVersion - out.FieldPath = in.FieldPath - return nil -} - -func DeepCopy_v1_OwnerReference(in OwnerReference, out *OwnerReference, c *conversion.Cloner) error { - out.APIVersion = in.APIVersion - out.Kind = in.Kind - out.Name = in.Name - out.UID = in.UID - if in.Controller != nil { - in, out := in.Controller, &out.Controller - *out = new(bool) - **out = *in - } else { - out.Controller = nil - } - return nil -} - -func DeepCopy_v1_PersistentVolume(in PersistentVolume, out *PersistentVolume, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_PersistentVolumeSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1_PersistentVolumeClaim(in PersistentVolumeClaim, out *PersistentVolumeClaim, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_PersistentVolumeClaimSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1_PersistentVolumeClaimStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_PersistentVolumeClaimList(in PersistentVolumeClaimList, out *PersistentVolumeClaimList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PersistentVolumeClaim, len(in)) - for i := range in { - if err := DeepCopy_v1_PersistentVolumeClaim(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_PersistentVolumeClaimSpec(in PersistentVolumeClaimSpec, out *PersistentVolumeClaimSpec, c *conversion.Cloner) error { - if in.AccessModes != nil { - in, out := in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AccessModes = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := DeepCopy_v1_ResourceRequirements(in.Resources, &out.Resources, c); err != nil { - return err - } - out.VolumeName = in.VolumeName - return nil -} - -func DeepCopy_v1_PersistentVolumeClaimStatus(in PersistentVolumeClaimStatus, out *PersistentVolumeClaimStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - if in.AccessModes != nil { - in, out := in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AccessModes = nil - } - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - return nil -} - -func DeepCopy_v1_PersistentVolumeClaimVolumeSource(in PersistentVolumeClaimVolumeSource, out *PersistentVolumeClaimVolumeSource, c *conversion.Cloner) error { - out.ClaimName = in.ClaimName - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_PersistentVolumeList(in PersistentVolumeList, out *PersistentVolumeList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PersistentVolume, len(in)) - for i := range in { - if err := DeepCopy_v1_PersistentVolume(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_PersistentVolumeSource(in PersistentVolumeSource, out *PersistentVolumeSource, c *conversion.Cloner) error { - if in.GCEPersistentDisk != nil { - in, out := in.GCEPersistentDisk, &out.GCEPersistentDisk - *out = new(GCEPersistentDiskVolumeSource) - **out = *in - } else { - out.GCEPersistentDisk = nil - } - if in.AWSElasticBlockStore != nil { - in, out := in.AWSElasticBlockStore, &out.AWSElasticBlockStore - *out = new(AWSElasticBlockStoreVolumeSource) - **out = *in - } else { - out.AWSElasticBlockStore = nil - } - if in.HostPath != nil { - in, out := in.HostPath, &out.HostPath - *out = new(HostPathVolumeSource) - **out = *in - } else { - out.HostPath = nil - } - if in.Glusterfs != nil { - in, out := in.Glusterfs, &out.Glusterfs - *out = new(GlusterfsVolumeSource) - **out = *in - } else { - out.Glusterfs = nil - } - if in.NFS != nil { - in, out := in.NFS, &out.NFS - *out = new(NFSVolumeSource) - **out = *in - } else { - out.NFS = nil - } - if in.RBD != nil { - in, out := in.RBD, &out.RBD - *out = new(RBDVolumeSource) - if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.RBD = nil - } - if in.ISCSI != nil { - in, out := in.ISCSI, &out.ISCSI - *out = new(ISCSIVolumeSource) - **out = *in - } else { - out.ISCSI = nil - } - if in.Cinder != nil { - in, out := in.Cinder, &out.Cinder - *out = new(CinderVolumeSource) - **out = *in - } else { - out.Cinder = nil - } - if in.CephFS != nil { - in, out := in.CephFS, &out.CephFS - *out = new(CephFSVolumeSource) - if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.CephFS = nil - } - if in.FC != nil { - in, out := in.FC, &out.FC - *out = new(FCVolumeSource) - if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FC = nil - } - if in.Flocker != nil { - in, out := in.Flocker, &out.Flocker - *out = new(FlockerVolumeSource) - **out = *in - } else { - out.Flocker = nil - } - if in.FlexVolume != nil { - in, out := in.FlexVolume, &out.FlexVolume - *out = new(FlexVolumeSource) - if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FlexVolume = nil - } - if in.AzureFile != nil { - in, out := in.AzureFile, &out.AzureFile - *out = new(AzureFileVolumeSource) - **out = *in - } else { - out.AzureFile = nil - } - if in.VsphereVolume != nil { - in, out := in.VsphereVolume, &out.VsphereVolume - *out = new(VsphereVirtualDiskVolumeSource) - **out = *in - } else { - out.VsphereVolume = nil - } - return nil -} - -func DeepCopy_v1_PersistentVolumeSpec(in PersistentVolumeSpec, out *PersistentVolumeSpec, c *conversion.Cloner) error { - if in.Capacity != nil { - in, out := in.Capacity, &out.Capacity - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Capacity = nil - } - if err := DeepCopy_v1_PersistentVolumeSource(in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { - return err - } - if in.AccessModes != nil { - in, out := in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AccessModes = nil - } - if in.ClaimRef != nil { - in, out := in.ClaimRef, &out.ClaimRef - *out = new(ObjectReference) - **out = *in - } else { - out.ClaimRef = nil - } - out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy - return nil -} - -func DeepCopy_v1_PersistentVolumeStatus(in PersistentVolumeStatus, out *PersistentVolumeStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - out.Message = in.Message - out.Reason = in.Reason - return nil -} - -func DeepCopy_v1_Pod(in Pod, out *Pod, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_PodSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1_PodStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_PodAffinity(in PodAffinity, out *PodAffinity, c *conversion.Cloner) error { - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = make([]PodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_v1_PodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]WeightedPodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_v1_WeightedPodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } - return nil -} - -func DeepCopy_v1_PodAffinityTerm(in PodAffinityTerm, out *PodAffinityTerm, c *conversion.Cloner) error { - if in.LabelSelector != nil { - in, out := in.LabelSelector, &out.LabelSelector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.LabelSelector = nil - } - if in.Namespaces != nil { - in, out := in.Namespaces, &out.Namespaces - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Namespaces = nil - } - out.TopologyKey = in.TopologyKey - return nil -} - -func DeepCopy_v1_PodAntiAffinity(in PodAntiAffinity, out *PodAntiAffinity, c *conversion.Cloner) error { - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = make([]PodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_v1_PodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]WeightedPodAffinityTerm, len(in)) - for i := range in { - if err := DeepCopy_v1_WeightedPodAffinityTerm(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } - return nil -} - -func DeepCopy_v1_PodAttachOptions(in PodAttachOptions, out *PodAttachOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container - return nil -} - -func DeepCopy_v1_PodCondition(in PodCondition, out *PodCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v1_PodExecOptions(in PodExecOptions, out *PodExecOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container - if in.Command != nil { - in, out := in.Command, &out.Command - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Command = nil - } - return nil -} - -func DeepCopy_v1_PodList(in PodList, out *PodList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Pod, len(in)) - for i := range in { - if err := DeepCopy_v1_Pod(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_PodLogOptions(in PodLogOptions, out *PodLogOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Container = in.Container - out.Follow = in.Follow - out.Previous = in.Previous - if in.SinceSeconds != nil { - in, out := in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = *in - } else { - out.SinceSeconds = nil - } - if in.SinceTime != nil { - in, out := in.SinceTime, &out.SinceTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.SinceTime = nil - } - out.Timestamps = in.Timestamps - if in.TailLines != nil { - in, out := in.TailLines, &out.TailLines - *out = new(int64) - **out = *in - } else { - out.TailLines = nil - } - if in.LimitBytes != nil { - in, out := in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = *in - } else { - out.LimitBytes = nil - } - return nil -} - -func DeepCopy_v1_PodProxyOptions(in PodProxyOptions, out *PodProxyOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Path = in.Path - return nil -} - -func DeepCopy_v1_PodSecurityContext(in PodSecurityContext, out *PodSecurityContext, c *conversion.Cloner) error { - if in.SELinuxOptions != nil { - in, out := in.SELinuxOptions, &out.SELinuxOptions - *out = new(SELinuxOptions) - **out = *in - } else { - out.SELinuxOptions = nil - } - if in.RunAsUser != nil { - in, out := in.RunAsUser, &out.RunAsUser - *out = new(int64) - **out = *in - } else { - out.RunAsUser = nil - } - if in.RunAsNonRoot != nil { - in, out := in.RunAsNonRoot, &out.RunAsNonRoot - *out = new(bool) - **out = *in - } else { - out.RunAsNonRoot = nil - } - if in.SupplementalGroups != nil { - in, out := in.SupplementalGroups, &out.SupplementalGroups - *out = make([]int64, len(in)) - copy(*out, in) - } else { - out.SupplementalGroups = nil - } - if in.FSGroup != nil { - in, out := in.FSGroup, &out.FSGroup - *out = new(int64) - **out = *in - } else { - out.FSGroup = nil - } - return nil -} - -func DeepCopy_v1_PodSpec(in PodSpec, out *PodSpec, c *conversion.Cloner) error { - if in.Volumes != nil { - in, out := in.Volumes, &out.Volumes - *out = make([]Volume, len(in)) - for i := range in { - if err := DeepCopy_v1_Volume(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Volumes = nil - } - if in.InitContainers != nil { - in, out := in.InitContainers, &out.InitContainers - *out = make([]Container, len(in)) - for i := range in { - if err := DeepCopy_v1_Container(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.InitContainers = nil - } - if in.Containers != nil { - in, out := in.Containers, &out.Containers - *out = make([]Container, len(in)) - for i := range in { - if err := DeepCopy_v1_Container(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Containers = nil - } - out.RestartPolicy = in.RestartPolicy - if in.TerminationGracePeriodSeconds != nil { - in, out := in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds - *out = new(int64) - **out = *in - } else { - out.TerminationGracePeriodSeconds = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.ActiveDeadlineSeconds = nil - } - out.DNSPolicy = in.DNSPolicy - if in.NodeSelector != nil { - in, out := in.NodeSelector, &out.NodeSelector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.NodeSelector = nil - } - out.ServiceAccountName = in.ServiceAccountName - out.DeprecatedServiceAccount = in.DeprecatedServiceAccount - out.NodeName = in.NodeName - out.HostNetwork = in.HostNetwork - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC - if in.SecurityContext != nil { - in, out := in.SecurityContext, &out.SecurityContext - *out = new(PodSecurityContext) - if err := DeepCopy_v1_PodSecurityContext(*in, *out, c); err != nil { - return err - } - } else { - out.SecurityContext = nil - } - if in.ImagePullSecrets != nil { - in, out := in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]LocalObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ImagePullSecrets = nil - } - out.Hostname = in.Hostname - out.Subdomain = in.Subdomain - return nil -} - -func DeepCopy_v1_PodStatus(in PodStatus, out *PodStatus, c *conversion.Cloner) error { - out.Phase = in.Phase - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]PodCondition, len(in)) - for i := range in { - if err := DeepCopy_v1_PodCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.Message = in.Message - out.Reason = in.Reason - out.HostIP = in.HostIP - out.PodIP = in.PodIP - if in.StartTime != nil { - in, out := in.StartTime, &out.StartTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.StartTime = nil - } - if in.InitContainerStatuses != nil { - in, out := in.InitContainerStatuses, &out.InitContainerStatuses - *out = make([]ContainerStatus, len(in)) - for i := range in { - if err := DeepCopy_v1_ContainerStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.InitContainerStatuses = nil - } - if in.ContainerStatuses != nil { - in, out := in.ContainerStatuses, &out.ContainerStatuses - *out = make([]ContainerStatus, len(in)) - for i := range in { - if err := DeepCopy_v1_ContainerStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.ContainerStatuses = nil - } - return nil -} - -func DeepCopy_v1_PodStatusResult(in PodStatusResult, out *PodStatusResult, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_PodStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_PodTemplate(in PodTemplate, out *PodTemplate, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_PodTemplateList(in PodTemplateList, out *PodTemplateList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PodTemplate, len(in)) - for i := range in { - if err := DeepCopy_v1_PodTemplate(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_PodTemplateSpec(in PodTemplateSpec, out *PodTemplateSpec, c *conversion.Cloner) error { - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_PodSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_Preconditions(in Preconditions, out *Preconditions, c *conversion.Cloner) error { - if in.UID != nil { - in, out := in.UID, &out.UID - *out = new(types.UID) - **out = *in - } else { - out.UID = nil - } - return nil -} - -func DeepCopy_v1_PreferredSchedulingTerm(in PreferredSchedulingTerm, out *PreferredSchedulingTerm, c *conversion.Cloner) error { - out.Weight = in.Weight - if err := DeepCopy_v1_NodeSelectorTerm(in.Preference, &out.Preference, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_Probe(in Probe, out *Probe, c *conversion.Cloner) error { - if err := DeepCopy_v1_Handler(in.Handler, &out.Handler, c); err != nil { - return err - } - out.InitialDelaySeconds = in.InitialDelaySeconds - out.TimeoutSeconds = in.TimeoutSeconds - out.PeriodSeconds = in.PeriodSeconds - out.SuccessThreshold = in.SuccessThreshold - out.FailureThreshold = in.FailureThreshold - return nil -} - -func DeepCopy_v1_RBDVolumeSource(in RBDVolumeSource, out *RBDVolumeSource, c *conversion.Cloner) error { - if in.CephMonitors != nil { - in, out := in.CephMonitors, &out.CephMonitors - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.CephMonitors = nil - } - out.RBDImage = in.RBDImage - out.FSType = in.FSType - out.RBDPool = in.RBDPool - out.RadosUser = in.RadosUser - out.Keyring = in.Keyring - if in.SecretRef != nil { - in, out := in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = *in - } else { - out.SecretRef = nil - } - out.ReadOnly = in.ReadOnly - return nil -} - -func DeepCopy_v1_RangeAllocation(in RangeAllocation, out *RangeAllocation, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Range = in.Range - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Data = nil - } - return nil -} - -func DeepCopy_v1_ReplicationController(in ReplicationController, out *ReplicationController, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_ReplicationControllerSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1_ReplicationControllerList(in ReplicationControllerList, out *ReplicationControllerList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ReplicationController, len(in)) - for i := range in { - if err := DeepCopy_v1_ReplicationController(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ReplicationControllerSpec(in ReplicationControllerSpec, out *ReplicationControllerSpec, c *conversion.Cloner) error { - if in.Replicas != nil { - in, out := in.Replicas, &out.Replicas - *out = new(int32) - **out = *in - } else { - out.Replicas = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Selector = nil - } - if in.Template != nil { - in, out := in.Template, &out.Template - *out = new(PodTemplateSpec) - if err := DeepCopy_v1_PodTemplateSpec(*in, *out, c); err != nil { - return err - } - } else { - out.Template = nil - } - return nil -} - -func DeepCopy_v1_ReplicationControllerStatus(in ReplicationControllerStatus, out *ReplicationControllerStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ObservedGeneration = in.ObservedGeneration - return nil -} - -func DeepCopy_v1_ResourceFieldSelector(in ResourceFieldSelector, out *ResourceFieldSelector, c *conversion.Cloner) error { - out.ContainerName = in.ContainerName - out.Resource = in.Resource - out.Divisor = in.Divisor.DeepCopy() - return nil -} - -func DeepCopy_v1_ResourceQuota(in ResourceQuota, out *ResourceQuota, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_ResourceQuotaSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1_ResourceQuotaStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_ResourceQuotaList(in ResourceQuotaList, out *ResourceQuotaList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ResourceQuota, len(in)) - for i := range in { - if err := DeepCopy_v1_ResourceQuota(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ResourceQuotaSpec(in ResourceQuotaSpec, out *ResourceQuotaSpec, c *conversion.Cloner) error { - if in.Hard != nil { - in, out := in.Hard, &out.Hard - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Hard = nil - } - if in.Scopes != nil { - in, out := in.Scopes, &out.Scopes - *out = make([]ResourceQuotaScope, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Scopes = nil - } - return nil -} - -func DeepCopy_v1_ResourceQuotaStatus(in ResourceQuotaStatus, out *ResourceQuotaStatus, c *conversion.Cloner) error { - if in.Hard != nil { - in, out := in.Hard, &out.Hard - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Hard = nil - } - if in.Used != nil { - in, out := in.Used, &out.Used - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Used = nil - } - return nil -} - -func DeepCopy_v1_ResourceRequirements(in ResourceRequirements, out *ResourceRequirements, c *conversion.Cloner) error { - if in.Limits != nil { - in, out := in.Limits, &out.Limits - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Limits = nil - } - if in.Requests != nil { - in, out := in.Requests, &out.Requests - *out = make(ResourceList) - for key, val := range in { - (*out)[key] = val.DeepCopy() - } - } else { - out.Requests = nil - } - return nil -} - -func DeepCopy_v1_SELinuxOptions(in SELinuxOptions, out *SELinuxOptions, c *conversion.Cloner) error { - out.User = in.User - out.Role = in.Role - out.Type = in.Type - out.Level = in.Level - return nil -} - -func DeepCopy_v1_Secret(in Secret, out *Secret, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make(map[string][]byte) - for key, val := range in { - if newVal, err := c.DeepCopy(val); err != nil { - return err - } else { - (*out)[key] = newVal.([]byte) - } - } - } else { - out.Data = nil - } - if in.StringData != nil { - in, out := in.StringData, &out.StringData - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.StringData = nil - } - out.Type = in.Type - return nil -} - -func DeepCopy_v1_SecretKeySelector(in SecretKeySelector, out *SecretKeySelector, c *conversion.Cloner) error { - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key - return nil -} - -func DeepCopy_v1_SecretList(in SecretList, out *SecretList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Secret, len(in)) - for i := range in { - if err := DeepCopy_v1_Secret(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_SecretVolumeSource(in SecretVolumeSource, out *SecretVolumeSource, c *conversion.Cloner) error { - out.SecretName = in.SecretName - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]KeyToPath, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_SecurityContext(in SecurityContext, out *SecurityContext, c *conversion.Cloner) error { - if in.Capabilities != nil { - in, out := in.Capabilities, &out.Capabilities - *out = new(Capabilities) - if err := DeepCopy_v1_Capabilities(*in, *out, c); err != nil { - return err - } - } else { - out.Capabilities = nil - } - if in.Privileged != nil { - in, out := in.Privileged, &out.Privileged - *out = new(bool) - **out = *in - } else { - out.Privileged = nil - } - if in.SELinuxOptions != nil { - in, out := in.SELinuxOptions, &out.SELinuxOptions - *out = new(SELinuxOptions) - **out = *in - } else { - out.SELinuxOptions = nil - } - if in.RunAsUser != nil { - in, out := in.RunAsUser, &out.RunAsUser - *out = new(int64) - **out = *in - } else { - out.RunAsUser = nil - } - if in.RunAsNonRoot != nil { - in, out := in.RunAsNonRoot, &out.RunAsNonRoot - *out = new(bool) - **out = *in - } else { - out.RunAsNonRoot = nil - } - if in.ReadOnlyRootFilesystem != nil { - in, out := in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem - *out = new(bool) - **out = *in - } else { - out.ReadOnlyRootFilesystem = nil - } - return nil -} - -func DeepCopy_v1_SerializedReference(in SerializedReference, out *SerializedReference, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Reference = in.Reference - return nil -} - -func DeepCopy_v1_Service(in Service, out *Service, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_ServiceSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1_ServiceStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_ServiceAccount(in ServiceAccount, out *ServiceAccount, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Secrets != nil { - in, out := in.Secrets, &out.Secrets - *out = make([]ObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Secrets = nil - } - if in.ImagePullSecrets != nil { - in, out := in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]LocalObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.ImagePullSecrets = nil - } - return nil -} - -func DeepCopy_v1_ServiceAccountList(in ServiceAccountList, out *ServiceAccountList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ServiceAccount, len(in)) - for i := range in { - if err := DeepCopy_v1_ServiceAccount(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ServiceList(in ServiceList, out *ServiceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Service, len(in)) - for i := range in { - if err := DeepCopy_v1_Service(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_ServicePort(in ServicePort, out *ServicePort, c *conversion.Cloner) error { - out.Name = in.Name - out.Protocol = in.Protocol - out.Port = in.Port - out.TargetPort = in.TargetPort - out.NodePort = in.NodePort - return nil -} - -func DeepCopy_v1_ServiceProxyOptions(in ServiceProxyOptions, out *ServiceProxyOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Path = in.Path - return nil -} - -func DeepCopy_v1_ServiceSpec(in ServiceSpec, out *ServiceSpec, c *conversion.Cloner) error { - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]ServicePort, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ports = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Selector = nil - } - out.ClusterIP = in.ClusterIP - out.Type = in.Type - if in.ExternalIPs != nil { - in, out := in.ExternalIPs, &out.ExternalIPs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.ExternalIPs = nil - } - if in.DeprecatedPublicIPs != nil { - in, out := in.DeprecatedPublicIPs, &out.DeprecatedPublicIPs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.DeprecatedPublicIPs = nil - } - out.SessionAffinity = in.SessionAffinity - out.LoadBalancerIP = in.LoadBalancerIP - if in.LoadBalancerSourceRanges != nil { - in, out := in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.LoadBalancerSourceRanges = nil - } - return nil -} - -func DeepCopy_v1_ServiceStatus(in ServiceStatus, out *ServiceStatus, c *conversion.Cloner) error { - if err := DeepCopy_v1_LoadBalancerStatus(in.LoadBalancer, &out.LoadBalancer, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_TCPSocketAction(in TCPSocketAction, out *TCPSocketAction, c *conversion.Cloner) error { - out.Port = in.Port - return nil -} - -func DeepCopy_v1_Taint(in Taint, out *Taint, c *conversion.Cloner) error { - out.Key = in.Key - out.Value = in.Value - out.Effect = in.Effect - return nil -} - -func DeepCopy_v1_Toleration(in Toleration, out *Toleration, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - out.Value = in.Value - out.Effect = in.Effect - return nil -} - -func DeepCopy_v1_Volume(in Volume, out *Volume, c *conversion.Cloner) error { - out.Name = in.Name - if err := DeepCopy_v1_VolumeSource(in.VolumeSource, &out.VolumeSource, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_VolumeMount(in VolumeMount, out *VolumeMount, c *conversion.Cloner) error { - out.Name = in.Name - out.ReadOnly = in.ReadOnly - out.MountPath = in.MountPath - out.SubPath = in.SubPath - return nil -} - -func DeepCopy_v1_VolumeSource(in VolumeSource, out *VolumeSource, c *conversion.Cloner) error { - if in.HostPath != nil { - in, out := in.HostPath, &out.HostPath - *out = new(HostPathVolumeSource) - **out = *in - } else { - out.HostPath = nil - } - if in.EmptyDir != nil { - in, out := in.EmptyDir, &out.EmptyDir - *out = new(EmptyDirVolumeSource) - **out = *in - } else { - out.EmptyDir = nil - } - if in.GCEPersistentDisk != nil { - in, out := in.GCEPersistentDisk, &out.GCEPersistentDisk - *out = new(GCEPersistentDiskVolumeSource) - **out = *in - } else { - out.GCEPersistentDisk = nil - } - if in.AWSElasticBlockStore != nil { - in, out := in.AWSElasticBlockStore, &out.AWSElasticBlockStore - *out = new(AWSElasticBlockStoreVolumeSource) - **out = *in - } else { - out.AWSElasticBlockStore = nil - } - if in.GitRepo != nil { - in, out := in.GitRepo, &out.GitRepo - *out = new(GitRepoVolumeSource) - **out = *in - } else { - out.GitRepo = nil - } - if in.Secret != nil { - in, out := in.Secret, &out.Secret - *out = new(SecretVolumeSource) - if err := DeepCopy_v1_SecretVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.Secret = nil - } - if in.NFS != nil { - in, out := in.NFS, &out.NFS - *out = new(NFSVolumeSource) - **out = *in - } else { - out.NFS = nil - } - if in.ISCSI != nil { - in, out := in.ISCSI, &out.ISCSI - *out = new(ISCSIVolumeSource) - **out = *in - } else { - out.ISCSI = nil - } - if in.Glusterfs != nil { - in, out := in.Glusterfs, &out.Glusterfs - *out = new(GlusterfsVolumeSource) - **out = *in - } else { - out.Glusterfs = nil - } - if in.PersistentVolumeClaim != nil { - in, out := in.PersistentVolumeClaim, &out.PersistentVolumeClaim - *out = new(PersistentVolumeClaimVolumeSource) - **out = *in - } else { - out.PersistentVolumeClaim = nil - } - if in.RBD != nil { - in, out := in.RBD, &out.RBD - *out = new(RBDVolumeSource) - if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.RBD = nil - } - if in.FlexVolume != nil { - in, out := in.FlexVolume, &out.FlexVolume - *out = new(FlexVolumeSource) - if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FlexVolume = nil - } - if in.Cinder != nil { - in, out := in.Cinder, &out.Cinder - *out = new(CinderVolumeSource) - **out = *in - } else { - out.Cinder = nil - } - if in.CephFS != nil { - in, out := in.CephFS, &out.CephFS - *out = new(CephFSVolumeSource) - if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.CephFS = nil - } - if in.Flocker != nil { - in, out := in.Flocker, &out.Flocker - *out = new(FlockerVolumeSource) - **out = *in - } else { - out.Flocker = nil - } - if in.DownwardAPI != nil { - in, out := in.DownwardAPI, &out.DownwardAPI - *out = new(DownwardAPIVolumeSource) - if err := DeepCopy_v1_DownwardAPIVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.DownwardAPI = nil - } - if in.FC != nil { - in, out := in.FC, &out.FC - *out = new(FCVolumeSource) - if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.FC = nil - } - if in.AzureFile != nil { - in, out := in.AzureFile, &out.AzureFile - *out = new(AzureFileVolumeSource) - **out = *in - } else { - out.AzureFile = nil - } - if in.ConfigMap != nil { - in, out := in.ConfigMap, &out.ConfigMap - *out = new(ConfigMapVolumeSource) - if err := DeepCopy_v1_ConfigMapVolumeSource(*in, *out, c); err != nil { - return err - } - } else { - out.ConfigMap = nil - } - if in.VsphereVolume != nil { - in, out := in.VsphereVolume, &out.VsphereVolume - *out = new(VsphereVirtualDiskVolumeSource) - **out = *in - } else { - out.VsphereVolume = nil - } - return nil -} - -func DeepCopy_v1_VsphereVirtualDiskVolumeSource(in VsphereVirtualDiskVolumeSource, out *VsphereVirtualDiskVolumeSource, c *conversion.Cloner) error { - out.VolumePath = in.VolumePath - out.FSType = in.FSType - return nil -} - -func DeepCopy_v1_WeightedPodAffinityTerm(in WeightedPodAffinityTerm, out *WeightedPodAffinityTerm, c *conversion.Cloner) error { - out.Weight = in.Weight - if err := DeepCopy_v1_PodAffinityTerm(in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { - return err - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/defaults.go index 5d6323fb4f..64120bfd8d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/defaults.go @@ -23,8 +23,8 @@ import ( "k8s.io/kubernetes/pkg/util/parsers" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_PodExecOptions, SetDefaults_PodAttachOptions, SetDefaults_ReplicationController, @@ -35,6 +35,9 @@ func addDefaultingFuncs(scheme *runtime.Scheme) { 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/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.pb.go index 16ac125d58..d60c24acc9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.pb.go @@ -28,6 +28,8 @@ limitations under the License. AWSElasticBlockStoreVolumeSource Affinity AttachedVolume + AvoidPods + AzureDiskVolumeSource AzureFileVolumeSource Binding Capabilities @@ -130,6 +132,7 @@ limitations under the License. PodLogOptions PodProxyOptions PodSecurityContext + PodSignature PodSpec PodStatus PodStatusResult @@ -137,8 +140,10 @@ limitations under the License. PodTemplateList PodTemplateSpec Preconditions + PreferAvoidPodsEntry PreferredSchedulingTerm Probe + QuobyteVolumeSource RBDVolumeSource RangeAllocation ReplicationController @@ -187,6 +192,10 @@ import k8s_io_kubernetes_pkg_runtime "k8s.io/kubernetes/pkg/runtime" import k8s_io_kubernetes_pkg_types "k8s.io/kubernetes/pkg/types" +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. @@ -194,606 +203,662 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *AWSElasticBlockStoreVolumeSource) Reset() { *m = AWSElasticBlockStoreVolumeSource{} } -func (m *AWSElasticBlockStoreVolumeSource) String() string { return proto.CompactTextString(m) } -func (*AWSElasticBlockStoreVolumeSource) ProtoMessage() {} +// 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 *Affinity) Reset() { *m = Affinity{} } -func (m *Affinity) String() string { return proto.CompactTextString(m) } -func (*Affinity) ProtoMessage() {} +func (m *AWSElasticBlockStoreVolumeSource) Reset() { *m = AWSElasticBlockStoreVolumeSource{} } +func (*AWSElasticBlockStoreVolumeSource) ProtoMessage() {} +func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{0} +} -func (m *AttachedVolume) Reset() { *m = AttachedVolume{} } -func (m *AttachedVolume) String() string { return proto.CompactTextString(m) } -func (*AttachedVolume) ProtoMessage() {} +func (m *Affinity) Reset() { *m = Affinity{} } +func (*Affinity) ProtoMessage() {} +func (*Affinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *AzureFileVolumeSource) Reset() { *m = AzureFileVolumeSource{} } -func (m *AzureFileVolumeSource) String() string { return proto.CompactTextString(m) } -func (*AzureFileVolumeSource) ProtoMessage() {} +func (m *AttachedVolume) Reset() { *m = AttachedVolume{} } +func (*AttachedVolume) ProtoMessage() {} +func (*AttachedVolume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *Binding) Reset() { *m = Binding{} } -func (m *Binding) String() string { return proto.CompactTextString(m) } -func (*Binding) ProtoMessage() {} +func (m *AvoidPods) Reset() { *m = AvoidPods{} } +func (*AvoidPods) ProtoMessage() {} +func (*AvoidPods) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *Capabilities) Reset() { *m = Capabilities{} } -func (m *Capabilities) String() string { return proto.CompactTextString(m) } -func (*Capabilities) ProtoMessage() {} +func (m *AzureDiskVolumeSource) Reset() { *m = AzureDiskVolumeSource{} } +func (*AzureDiskVolumeSource) ProtoMessage() {} +func (*AzureDiskVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *CephFSVolumeSource) Reset() { *m = CephFSVolumeSource{} } -func (m *CephFSVolumeSource) String() string { return proto.CompactTextString(m) } -func (*CephFSVolumeSource) ProtoMessage() {} +func (m *AzureFileVolumeSource) Reset() { *m = AzureFileVolumeSource{} } +func (*AzureFileVolumeSource) ProtoMessage() {} +func (*AzureFileVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *CinderVolumeSource) Reset() { *m = CinderVolumeSource{} } -func (m *CinderVolumeSource) String() string { return proto.CompactTextString(m) } -func (*CinderVolumeSource) ProtoMessage() {} +func (m *Binding) Reset() { *m = Binding{} } +func (*Binding) ProtoMessage() {} +func (*Binding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } -func (m *ComponentCondition) Reset() { *m = ComponentCondition{} } -func (m *ComponentCondition) String() string { return proto.CompactTextString(m) } -func (*ComponentCondition) ProtoMessage() {} +func (m *Capabilities) Reset() { *m = Capabilities{} } +func (*Capabilities) ProtoMessage() {} +func (*Capabilities) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } -func (m *ComponentStatus) Reset() { *m = ComponentStatus{} } -func (m *ComponentStatus) String() string { return proto.CompactTextString(m) } -func (*ComponentStatus) ProtoMessage() {} +func (m *CephFSVolumeSource) Reset() { *m = CephFSVolumeSource{} } +func (*CephFSVolumeSource) ProtoMessage() {} +func (*CephFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } -func (m *ComponentStatusList) Reset() { *m = ComponentStatusList{} } -func (m *ComponentStatusList) String() string { return proto.CompactTextString(m) } -func (*ComponentStatusList) ProtoMessage() {} +func (m *CinderVolumeSource) Reset() { *m = CinderVolumeSource{} } +func (*CinderVolumeSource) ProtoMessage() {} +func (*CinderVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } -func (m *ConfigMap) Reset() { *m = ConfigMap{} } -func (m *ConfigMap) String() string { return proto.CompactTextString(m) } -func (*ConfigMap) ProtoMessage() {} +func (m *ComponentCondition) Reset() { *m = ComponentCondition{} } +func (*ComponentCondition) ProtoMessage() {} +func (*ComponentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } -func (m *ConfigMapKeySelector) Reset() { *m = ConfigMapKeySelector{} } -func (m *ConfigMapKeySelector) String() string { return proto.CompactTextString(m) } -func (*ConfigMapKeySelector) ProtoMessage() {} +func (m *ComponentStatus) Reset() { *m = ComponentStatus{} } +func (*ComponentStatus) ProtoMessage() {} +func (*ComponentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } -func (m *ConfigMapList) Reset() { *m = ConfigMapList{} } -func (m *ConfigMapList) String() string { return proto.CompactTextString(m) } -func (*ConfigMapList) ProtoMessage() {} +func (m *ComponentStatusList) Reset() { *m = ComponentStatusList{} } +func (*ComponentStatusList) ProtoMessage() {} +func (*ComponentStatusList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } -func (m *ConfigMapVolumeSource) Reset() { *m = ConfigMapVolumeSource{} } -func (m *ConfigMapVolumeSource) String() string { return proto.CompactTextString(m) } -func (*ConfigMapVolumeSource) ProtoMessage() {} +func (m *ConfigMap) Reset() { *m = ConfigMap{} } +func (*ConfigMap) ProtoMessage() {} +func (*ConfigMap) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } -func (m *Container) Reset() { *m = Container{} } -func (m *Container) String() string { return proto.CompactTextString(m) } -func (*Container) ProtoMessage() {} +func (m *ConfigMapKeySelector) Reset() { *m = ConfigMapKeySelector{} } +func (*ConfigMapKeySelector) ProtoMessage() {} +func (*ConfigMapKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } -func (m *ContainerImage) Reset() { *m = ContainerImage{} } -func (m *ContainerImage) String() string { return proto.CompactTextString(m) } -func (*ContainerImage) ProtoMessage() {} +func (m *ConfigMapList) Reset() { *m = ConfigMapList{} } +func (*ConfigMapList) ProtoMessage() {} +func (*ConfigMapList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } -func (m *ContainerPort) Reset() { *m = ContainerPort{} } -func (m *ContainerPort) String() string { return proto.CompactTextString(m) } -func (*ContainerPort) ProtoMessage() {} +func (m *ConfigMapVolumeSource) Reset() { *m = ConfigMapVolumeSource{} } +func (*ConfigMapVolumeSource) ProtoMessage() {} +func (*ConfigMapVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } -func (m *ContainerState) Reset() { *m = ContainerState{} } -func (m *ContainerState) String() string { return proto.CompactTextString(m) } -func (*ContainerState) ProtoMessage() {} +func (m *Container) Reset() { *m = Container{} } +func (*Container) ProtoMessage() {} +func (*Container) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } -func (m *ContainerStateRunning) Reset() { *m = ContainerStateRunning{} } -func (m *ContainerStateRunning) String() string { return proto.CompactTextString(m) } -func (*ContainerStateRunning) ProtoMessage() {} +func (m *ContainerImage) Reset() { *m = ContainerImage{} } +func (*ContainerImage) ProtoMessage() {} +func (*ContainerImage) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } -func (m *ContainerStateTerminated) Reset() { *m = ContainerStateTerminated{} } -func (m *ContainerStateTerminated) String() string { return proto.CompactTextString(m) } -func (*ContainerStateTerminated) ProtoMessage() {} +func (m *ContainerPort) Reset() { *m = ContainerPort{} } +func (*ContainerPort) ProtoMessage() {} +func (*ContainerPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } -func (m *ContainerStateWaiting) Reset() { *m = ContainerStateWaiting{} } -func (m *ContainerStateWaiting) String() string { return proto.CompactTextString(m) } -func (*ContainerStateWaiting) ProtoMessage() {} +func (m *ContainerState) Reset() { *m = ContainerState{} } +func (*ContainerState) ProtoMessage() {} +func (*ContainerState) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } -func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } -func (m *ContainerStatus) String() string { return proto.CompactTextString(m) } -func (*ContainerStatus) ProtoMessage() {} +func (m *ContainerStateRunning) Reset() { *m = ContainerStateRunning{} } +func (*ContainerStateRunning) ProtoMessage() {} +func (*ContainerStateRunning) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } -func (m *DaemonEndpoint) Reset() { *m = DaemonEndpoint{} } -func (m *DaemonEndpoint) String() string { return proto.CompactTextString(m) } -func (*DaemonEndpoint) ProtoMessage() {} +func (m *ContainerStateTerminated) Reset() { *m = ContainerStateTerminated{} } +func (*ContainerStateTerminated) ProtoMessage() {} +func (*ContainerStateTerminated) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{22} +} -func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } -func (m *DeleteOptions) String() string { return proto.CompactTextString(m) } -func (*DeleteOptions) ProtoMessage() {} +func (m *ContainerStateWaiting) Reset() { *m = ContainerStateWaiting{} } +func (*ContainerStateWaiting) ProtoMessage() {} +func (*ContainerStateWaiting) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } -func (m *DownwardAPIVolumeFile) Reset() { *m = DownwardAPIVolumeFile{} } -func (m *DownwardAPIVolumeFile) String() string { return proto.CompactTextString(m) } -func (*DownwardAPIVolumeFile) ProtoMessage() {} +func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } +func (*ContainerStatus) ProtoMessage() {} +func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } -func (m *DownwardAPIVolumeSource) Reset() { *m = DownwardAPIVolumeSource{} } -func (m *DownwardAPIVolumeSource) String() string { return proto.CompactTextString(m) } -func (*DownwardAPIVolumeSource) ProtoMessage() {} +func (m *DaemonEndpoint) Reset() { *m = DaemonEndpoint{} } +func (*DaemonEndpoint) ProtoMessage() {} +func (*DaemonEndpoint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } -func (m *EmptyDirVolumeSource) Reset() { *m = EmptyDirVolumeSource{} } -func (m *EmptyDirVolumeSource) String() string { return proto.CompactTextString(m) } -func (*EmptyDirVolumeSource) ProtoMessage() {} +func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } +func (*DeleteOptions) ProtoMessage() {} +func (*DeleteOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } -func (m *EndpointAddress) Reset() { *m = EndpointAddress{} } -func (m *EndpointAddress) String() string { return proto.CompactTextString(m) } -func (*EndpointAddress) ProtoMessage() {} +func (m *DownwardAPIVolumeFile) Reset() { *m = DownwardAPIVolumeFile{} } +func (*DownwardAPIVolumeFile) ProtoMessage() {} +func (*DownwardAPIVolumeFile) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } -func (m *EndpointPort) Reset() { *m = EndpointPort{} } -func (m *EndpointPort) String() string { return proto.CompactTextString(m) } -func (*EndpointPort) ProtoMessage() {} +func (m *DownwardAPIVolumeSource) Reset() { *m = DownwardAPIVolumeSource{} } +func (*DownwardAPIVolumeSource) ProtoMessage() {} +func (*DownwardAPIVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{28} +} -func (m *EndpointSubset) Reset() { *m = EndpointSubset{} } -func (m *EndpointSubset) String() string { return proto.CompactTextString(m) } -func (*EndpointSubset) ProtoMessage() {} +func (m *EmptyDirVolumeSource) Reset() { *m = EmptyDirVolumeSource{} } +func (*EmptyDirVolumeSource) ProtoMessage() {} +func (*EmptyDirVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } -func (m *Endpoints) Reset() { *m = Endpoints{} } -func (m *Endpoints) String() string { return proto.CompactTextString(m) } -func (*Endpoints) ProtoMessage() {} +func (m *EndpointAddress) Reset() { *m = EndpointAddress{} } +func (*EndpointAddress) ProtoMessage() {} +func (*EndpointAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } -func (m *EndpointsList) Reset() { *m = EndpointsList{} } -func (m *EndpointsList) String() string { return proto.CompactTextString(m) } -func (*EndpointsList) ProtoMessage() {} +func (m *EndpointPort) Reset() { *m = EndpointPort{} } +func (*EndpointPort) ProtoMessage() {} +func (*EndpointPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } -func (m *EnvVar) Reset() { *m = EnvVar{} } -func (m *EnvVar) String() string { return proto.CompactTextString(m) } -func (*EnvVar) ProtoMessage() {} +func (m *EndpointSubset) Reset() { *m = EndpointSubset{} } +func (*EndpointSubset) ProtoMessage() {} +func (*EndpointSubset) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } -func (m *EnvVarSource) Reset() { *m = EnvVarSource{} } -func (m *EnvVarSource) String() string { return proto.CompactTextString(m) } -func (*EnvVarSource) ProtoMessage() {} +func (m *Endpoints) Reset() { *m = Endpoints{} } +func (*Endpoints) ProtoMessage() {} +func (*Endpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} +func (m *EndpointsList) Reset() { *m = EndpointsList{} } +func (*EndpointsList) ProtoMessage() {} +func (*EndpointsList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } -func (m *EventList) Reset() { *m = EventList{} } -func (m *EventList) String() string { return proto.CompactTextString(m) } -func (*EventList) ProtoMessage() {} +func (m *EnvVar) Reset() { *m = EnvVar{} } +func (*EnvVar) ProtoMessage() {} +func (*EnvVar) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } -func (m *EventSource) Reset() { *m = EventSource{} } -func (m *EventSource) String() string { return proto.CompactTextString(m) } -func (*EventSource) ProtoMessage() {} +func (m *EnvVarSource) Reset() { *m = EnvVarSource{} } +func (*EnvVarSource) ProtoMessage() {} +func (*EnvVarSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } -func (m *ExecAction) Reset() { *m = ExecAction{} } -func (m *ExecAction) String() string { return proto.CompactTextString(m) } -func (*ExecAction) ProtoMessage() {} +func (m *Event) Reset() { *m = Event{} } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } -func (m *ExportOptions) Reset() { *m = ExportOptions{} } -func (m *ExportOptions) String() string { return proto.CompactTextString(m) } -func (*ExportOptions) ProtoMessage() {} +func (m *EventList) Reset() { *m = EventList{} } +func (*EventList) ProtoMessage() {} +func (*EventList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } -func (m *FCVolumeSource) Reset() { *m = FCVolumeSource{} } -func (m *FCVolumeSource) String() string { return proto.CompactTextString(m) } -func (*FCVolumeSource) ProtoMessage() {} +func (m *EventSource) Reset() { *m = EventSource{} } +func (*EventSource) ProtoMessage() {} +func (*EventSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } -func (m *FlexVolumeSource) Reset() { *m = FlexVolumeSource{} } -func (m *FlexVolumeSource) String() string { return proto.CompactTextString(m) } -func (*FlexVolumeSource) ProtoMessage() {} +func (m *ExecAction) Reset() { *m = ExecAction{} } +func (*ExecAction) ProtoMessage() {} +func (*ExecAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } -func (m *FlockerVolumeSource) Reset() { *m = FlockerVolumeSource{} } -func (m *FlockerVolumeSource) String() string { return proto.CompactTextString(m) } -func (*FlockerVolumeSource) ProtoMessage() {} +func (m *ExportOptions) Reset() { *m = ExportOptions{} } +func (*ExportOptions) ProtoMessage() {} +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } -func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } -func (m *GCEPersistentDiskVolumeSource) String() string { return proto.CompactTextString(m) } -func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} +func (m *FCVolumeSource) Reset() { *m = FCVolumeSource{} } +func (*FCVolumeSource) ProtoMessage() {} +func (*FCVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } -func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } -func (m *GitRepoVolumeSource) String() string { return proto.CompactTextString(m) } -func (*GitRepoVolumeSource) ProtoMessage() {} +func (m *FlexVolumeSource) Reset() { *m = FlexVolumeSource{} } +func (*FlexVolumeSource) ProtoMessage() {} +func (*FlexVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } -func (m *GlusterfsVolumeSource) Reset() { *m = GlusterfsVolumeSource{} } -func (m *GlusterfsVolumeSource) String() string { return proto.CompactTextString(m) } -func (*GlusterfsVolumeSource) ProtoMessage() {} +func (m *FlockerVolumeSource) Reset() { *m = FlockerVolumeSource{} } +func (*FlockerVolumeSource) ProtoMessage() {} +func (*FlockerVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } -func (m *HTTPGetAction) Reset() { *m = HTTPGetAction{} } -func (m *HTTPGetAction) String() string { return proto.CompactTextString(m) } -func (*HTTPGetAction) ProtoMessage() {} +func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } +func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} +func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{45} +} -func (m *HTTPHeader) Reset() { *m = HTTPHeader{} } -func (m *HTTPHeader) String() string { return proto.CompactTextString(m) } -func (*HTTPHeader) ProtoMessage() {} +func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } +func (*GitRepoVolumeSource) ProtoMessage() {} +func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } -func (m *Handler) Reset() { *m = Handler{} } -func (m *Handler) String() string { return proto.CompactTextString(m) } -func (*Handler) ProtoMessage() {} +func (m *GlusterfsVolumeSource) Reset() { *m = GlusterfsVolumeSource{} } +func (*GlusterfsVolumeSource) ProtoMessage() {} +func (*GlusterfsVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } -func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } -func (m *HostPathVolumeSource) String() string { return proto.CompactTextString(m) } -func (*HostPathVolumeSource) ProtoMessage() {} +func (m *HTTPGetAction) Reset() { *m = HTTPGetAction{} } +func (*HTTPGetAction) ProtoMessage() {} +func (*HTTPGetAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } -func (m *ISCSIVolumeSource) Reset() { *m = ISCSIVolumeSource{} } -func (m *ISCSIVolumeSource) String() string { return proto.CompactTextString(m) } -func (*ISCSIVolumeSource) ProtoMessage() {} +func (m *HTTPHeader) Reset() { *m = HTTPHeader{} } +func (*HTTPHeader) ProtoMessage() {} +func (*HTTPHeader) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } -func (m *KeyToPath) Reset() { *m = KeyToPath{} } -func (m *KeyToPath) String() string { return proto.CompactTextString(m) } -func (*KeyToPath) ProtoMessage() {} +func (m *Handler) Reset() { *m = Handler{} } +func (*Handler) ProtoMessage() {} +func (*Handler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } -func (m *Lifecycle) Reset() { *m = Lifecycle{} } -func (m *Lifecycle) String() string { return proto.CompactTextString(m) } -func (*Lifecycle) ProtoMessage() {} +func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } +func (*HostPathVolumeSource) ProtoMessage() {} +func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } -func (m *LimitRange) Reset() { *m = LimitRange{} } -func (m *LimitRange) String() string { return proto.CompactTextString(m) } -func (*LimitRange) ProtoMessage() {} +func (m *ISCSIVolumeSource) Reset() { *m = ISCSIVolumeSource{} } +func (*ISCSIVolumeSource) ProtoMessage() {} +func (*ISCSIVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } -func (m *LimitRangeItem) Reset() { *m = LimitRangeItem{} } -func (m *LimitRangeItem) String() string { return proto.CompactTextString(m) } -func (*LimitRangeItem) ProtoMessage() {} +func (m *KeyToPath) Reset() { *m = KeyToPath{} } +func (*KeyToPath) ProtoMessage() {} +func (*KeyToPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } -func (m *LimitRangeList) Reset() { *m = LimitRangeList{} } -func (m *LimitRangeList) String() string { return proto.CompactTextString(m) } -func (*LimitRangeList) ProtoMessage() {} +func (m *Lifecycle) Reset() { *m = Lifecycle{} } +func (*Lifecycle) ProtoMessage() {} +func (*Lifecycle) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } -func (m *LimitRangeSpec) Reset() { *m = LimitRangeSpec{} } -func (m *LimitRangeSpec) String() string { return proto.CompactTextString(m) } -func (*LimitRangeSpec) ProtoMessage() {} +func (m *LimitRange) Reset() { *m = LimitRange{} } +func (*LimitRange) ProtoMessage() {} +func (*LimitRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{55} } -func (m *List) Reset() { *m = List{} } -func (m *List) String() string { return proto.CompactTextString(m) } -func (*List) ProtoMessage() {} +func (m *LimitRangeItem) Reset() { *m = LimitRangeItem{} } +func (*LimitRangeItem) ProtoMessage() {} +func (*LimitRangeItem) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } -func (m *ListOptions) Reset() { *m = ListOptions{} } -func (m *ListOptions) String() string { return proto.CompactTextString(m) } -func (*ListOptions) ProtoMessage() {} +func (m *LimitRangeList) Reset() { *m = LimitRangeList{} } +func (*LimitRangeList) ProtoMessage() {} +func (*LimitRangeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{57} } -func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } -func (m *LoadBalancerIngress) String() string { return proto.CompactTextString(m) } -func (*LoadBalancerIngress) ProtoMessage() {} +func (m *LimitRangeSpec) Reset() { *m = LimitRangeSpec{} } +func (*LimitRangeSpec) ProtoMessage() {} +func (*LimitRangeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } -func (m *LoadBalancerStatus) Reset() { *m = LoadBalancerStatus{} } -func (m *LoadBalancerStatus) String() string { return proto.CompactTextString(m) } -func (*LoadBalancerStatus) ProtoMessage() {} +func (m *List) Reset() { *m = List{} } +func (*List) ProtoMessage() {} +func (*List) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } -func (m *LocalObjectReference) Reset() { *m = LocalObjectReference{} } -func (m *LocalObjectReference) String() string { return proto.CompactTextString(m) } -func (*LocalObjectReference) ProtoMessage() {} +func (m *ListOptions) Reset() { *m = ListOptions{} } +func (*ListOptions) ProtoMessage() {} +func (*ListOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } -func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } -func (m *NFSVolumeSource) String() string { return proto.CompactTextString(m) } -func (*NFSVolumeSource) ProtoMessage() {} +func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } +func (*LoadBalancerIngress) ProtoMessage() {} +func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } -func (m *Namespace) Reset() { *m = Namespace{} } -func (m *Namespace) String() string { return proto.CompactTextString(m) } -func (*Namespace) ProtoMessage() {} +func (m *LoadBalancerStatus) Reset() { *m = LoadBalancerStatus{} } +func (*LoadBalancerStatus) ProtoMessage() {} +func (*LoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } -func (m *NamespaceList) Reset() { *m = NamespaceList{} } -func (m *NamespaceList) String() string { return proto.CompactTextString(m) } -func (*NamespaceList) ProtoMessage() {} +func (m *LocalObjectReference) Reset() { *m = LocalObjectReference{} } +func (*LocalObjectReference) ProtoMessage() {} +func (*LocalObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } -func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } -func (m *NamespaceSpec) String() string { return proto.CompactTextString(m) } -func (*NamespaceSpec) ProtoMessage() {} +func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } +func (*NFSVolumeSource) ProtoMessage() {} +func (*NFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } -func (m *NamespaceStatus) Reset() { *m = NamespaceStatus{} } -func (m *NamespaceStatus) String() string { return proto.CompactTextString(m) } -func (*NamespaceStatus) ProtoMessage() {} +func (m *Namespace) Reset() { *m = Namespace{} } +func (*Namespace) ProtoMessage() {} +func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } -func (m *Node) Reset() { *m = Node{} } -func (m *Node) String() string { return proto.CompactTextString(m) } -func (*Node) ProtoMessage() {} +func (m *NamespaceList) Reset() { *m = NamespaceList{} } +func (*NamespaceList) ProtoMessage() {} +func (*NamespaceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{66} } -func (m *NodeAddress) Reset() { *m = NodeAddress{} } -func (m *NodeAddress) String() string { return proto.CompactTextString(m) } -func (*NodeAddress) ProtoMessage() {} +func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } +func (*NamespaceSpec) ProtoMessage() {} +func (*NamespaceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{67} } -func (m *NodeAffinity) Reset() { *m = NodeAffinity{} } -func (m *NodeAffinity) String() string { return proto.CompactTextString(m) } -func (*NodeAffinity) ProtoMessage() {} +func (m *NamespaceStatus) Reset() { *m = NamespaceStatus{} } +func (*NamespaceStatus) ProtoMessage() {} +func (*NamespaceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{68} } -func (m *NodeCondition) Reset() { *m = NodeCondition{} } -func (m *NodeCondition) String() string { return proto.CompactTextString(m) } -func (*NodeCondition) ProtoMessage() {} +func (m *Node) Reset() { *m = Node{} } +func (*Node) ProtoMessage() {} +func (*Node) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{69} } -func (m *NodeDaemonEndpoints) Reset() { *m = NodeDaemonEndpoints{} } -func (m *NodeDaemonEndpoints) String() string { return proto.CompactTextString(m) } -func (*NodeDaemonEndpoints) ProtoMessage() {} +func (m *NodeAddress) Reset() { *m = NodeAddress{} } +func (*NodeAddress) ProtoMessage() {} +func (*NodeAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{70} } -func (m *NodeList) Reset() { *m = NodeList{} } -func (m *NodeList) String() string { return proto.CompactTextString(m) } -func (*NodeList) ProtoMessage() {} +func (m *NodeAffinity) Reset() { *m = NodeAffinity{} } +func (*NodeAffinity) ProtoMessage() {} +func (*NodeAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{71} } -func (m *NodeProxyOptions) Reset() { *m = NodeProxyOptions{} } -func (m *NodeProxyOptions) String() string { return proto.CompactTextString(m) } -func (*NodeProxyOptions) ProtoMessage() {} +func (m *NodeCondition) Reset() { *m = NodeCondition{} } +func (*NodeCondition) ProtoMessage() {} +func (*NodeCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{72} } -func (m *NodeSelector) Reset() { *m = NodeSelector{} } -func (m *NodeSelector) String() string { return proto.CompactTextString(m) } -func (*NodeSelector) ProtoMessage() {} +func (m *NodeDaemonEndpoints) Reset() { *m = NodeDaemonEndpoints{} } +func (*NodeDaemonEndpoints) ProtoMessage() {} +func (*NodeDaemonEndpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{73} } -func (m *NodeSelectorRequirement) Reset() { *m = NodeSelectorRequirement{} } -func (m *NodeSelectorRequirement) String() string { return proto.CompactTextString(m) } -func (*NodeSelectorRequirement) ProtoMessage() {} +func (m *NodeList) Reset() { *m = NodeList{} } +func (*NodeList) ProtoMessage() {} +func (*NodeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{74} } -func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } -func (m *NodeSelectorTerm) String() string { return proto.CompactTextString(m) } -func (*NodeSelectorTerm) ProtoMessage() {} +func (m *NodeProxyOptions) Reset() { *m = NodeProxyOptions{} } +func (*NodeProxyOptions) ProtoMessage() {} +func (*NodeProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{75} } -func (m *NodeSpec) Reset() { *m = NodeSpec{} } -func (m *NodeSpec) String() string { return proto.CompactTextString(m) } -func (*NodeSpec) ProtoMessage() {} +func (m *NodeSelector) Reset() { *m = NodeSelector{} } +func (*NodeSelector) ProtoMessage() {} +func (*NodeSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{76} } -func (m *NodeStatus) Reset() { *m = NodeStatus{} } -func (m *NodeStatus) String() string { return proto.CompactTextString(m) } -func (*NodeStatus) ProtoMessage() {} +func (m *NodeSelectorRequirement) Reset() { *m = NodeSelectorRequirement{} } +func (*NodeSelectorRequirement) ProtoMessage() {} +func (*NodeSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{77} +} -func (m *NodeSystemInfo) Reset() { *m = NodeSystemInfo{} } -func (m *NodeSystemInfo) String() string { return proto.CompactTextString(m) } -func (*NodeSystemInfo) ProtoMessage() {} +func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } +func (*NodeSelectorTerm) ProtoMessage() {} +func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{78} } -func (m *ObjectFieldSelector) Reset() { *m = ObjectFieldSelector{} } -func (m *ObjectFieldSelector) String() string { return proto.CompactTextString(m) } -func (*ObjectFieldSelector) ProtoMessage() {} +func (m *NodeSpec) Reset() { *m = NodeSpec{} } +func (*NodeSpec) ProtoMessage() {} +func (*NodeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{79} } -func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } -func (m *ObjectMeta) String() string { return proto.CompactTextString(m) } -func (*ObjectMeta) ProtoMessage() {} +func (m *NodeStatus) Reset() { *m = NodeStatus{} } +func (*NodeStatus) ProtoMessage() {} +func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{80} } -func (m *ObjectReference) Reset() { *m = ObjectReference{} } -func (m *ObjectReference) String() string { return proto.CompactTextString(m) } -func (*ObjectReference) ProtoMessage() {} +func (m *NodeSystemInfo) Reset() { *m = NodeSystemInfo{} } +func (*NodeSystemInfo) ProtoMessage() {} +func (*NodeSystemInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{81} } -func (m *OwnerReference) Reset() { *m = OwnerReference{} } -func (m *OwnerReference) String() string { return proto.CompactTextString(m) } -func (*OwnerReference) ProtoMessage() {} +func (m *ObjectFieldSelector) Reset() { *m = ObjectFieldSelector{} } +func (*ObjectFieldSelector) ProtoMessage() {} +func (*ObjectFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{82} } -func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } -func (m *PersistentVolume) String() string { return proto.CompactTextString(m) } -func (*PersistentVolume) ProtoMessage() {} +func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } +func (*ObjectMeta) ProtoMessage() {} +func (*ObjectMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{83} } -func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } -func (m *PersistentVolumeClaim) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaim) ProtoMessage() {} +func (m *ObjectReference) Reset() { *m = ObjectReference{} } +func (*ObjectReference) ProtoMessage() {} +func (*ObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{84} } -func (m *PersistentVolumeClaimList) Reset() { *m = PersistentVolumeClaimList{} } -func (m *PersistentVolumeClaimList) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimList) ProtoMessage() {} +func (m *OwnerReference) Reset() { *m = OwnerReference{} } +func (*OwnerReference) ProtoMessage() {} +func (*OwnerReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{85} } -func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } -func (m *PersistentVolumeClaimSpec) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimSpec) ProtoMessage() {} +func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } +func (*PersistentVolume) ProtoMessage() {} +func (*PersistentVolume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{86} } -func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } -func (m *PersistentVolumeClaimStatus) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimStatus) ProtoMessage() {} +func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } +func (*PersistentVolumeClaim) ProtoMessage() {} +func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{87} } -func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } -func (m *PersistentVolumeClaimVolumeSource) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} +func (m *PersistentVolumeClaimList) Reset() { *m = PersistentVolumeClaimList{} } +func (*PersistentVolumeClaimList) ProtoMessage() {} +func (*PersistentVolumeClaimList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{88} +} -func (m *PersistentVolumeList) Reset() { *m = PersistentVolumeList{} } -func (m *PersistentVolumeList) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeList) ProtoMessage() {} +func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } +func (*PersistentVolumeClaimSpec) ProtoMessage() {} +func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{89} +} -func (m *PersistentVolumeSource) Reset() { *m = PersistentVolumeSource{} } -func (m *PersistentVolumeSource) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeSource) ProtoMessage() {} +func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } +func (*PersistentVolumeClaimStatus) ProtoMessage() {} +func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{90} +} -func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } -func (m *PersistentVolumeSpec) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeSpec) ProtoMessage() {} +func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } +func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} +func (*PersistentVolumeClaimVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{91} +} + +func (m *PersistentVolumeList) Reset() { *m = PersistentVolumeList{} } +func (*PersistentVolumeList) ProtoMessage() {} +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{93} } + +func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } +func (*PersistentVolumeSpec) ProtoMessage() {} +func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{94} } -func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } -func (m *PersistentVolumeStatus) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeStatus) ProtoMessage() {} +func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } +func (*PersistentVolumeStatus) ProtoMessage() {} +func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{95} } -func (m *Pod) Reset() { *m = Pod{} } -func (m *Pod) String() string { return proto.CompactTextString(m) } -func (*Pod) ProtoMessage() {} +func (m *Pod) Reset() { *m = Pod{} } +func (*Pod) ProtoMessage() {} +func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{96} } -func (m *PodAffinity) Reset() { *m = PodAffinity{} } -func (m *PodAffinity) String() string { return proto.CompactTextString(m) } -func (*PodAffinity) ProtoMessage() {} +func (m *PodAffinity) Reset() { *m = PodAffinity{} } +func (*PodAffinity) ProtoMessage() {} +func (*PodAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{97} } -func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } -func (m *PodAffinityTerm) String() string { return proto.CompactTextString(m) } -func (*PodAffinityTerm) ProtoMessage() {} +func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } +func (*PodAffinityTerm) ProtoMessage() {} +func (*PodAffinityTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{98} } -func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } -func (m *PodAntiAffinity) String() string { return proto.CompactTextString(m) } -func (*PodAntiAffinity) ProtoMessage() {} +func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } +func (*PodAntiAffinity) ProtoMessage() {} +func (*PodAntiAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{99} } -func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } -func (m *PodAttachOptions) String() string { return proto.CompactTextString(m) } -func (*PodAttachOptions) ProtoMessage() {} +func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } +func (*PodAttachOptions) ProtoMessage() {} +func (*PodAttachOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{100} } -func (m *PodCondition) Reset() { *m = PodCondition{} } -func (m *PodCondition) String() string { return proto.CompactTextString(m) } -func (*PodCondition) ProtoMessage() {} +func (m *PodCondition) Reset() { *m = PodCondition{} } +func (*PodCondition) ProtoMessage() {} +func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{101} } -func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } -func (m *PodExecOptions) String() string { return proto.CompactTextString(m) } -func (*PodExecOptions) ProtoMessage() {} +func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } +func (*PodExecOptions) ProtoMessage() {} +func (*PodExecOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{102} } -func (m *PodList) Reset() { *m = PodList{} } -func (m *PodList) String() string { return proto.CompactTextString(m) } -func (*PodList) ProtoMessage() {} +func (m *PodList) Reset() { *m = PodList{} } +func (*PodList) ProtoMessage() {} +func (*PodList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{103} } -func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } -func (m *PodLogOptions) String() string { return proto.CompactTextString(m) } -func (*PodLogOptions) ProtoMessage() {} +func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } +func (*PodLogOptions) ProtoMessage() {} +func (*PodLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{104} } -func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } -func (m *PodProxyOptions) String() string { return proto.CompactTextString(m) } -func (*PodProxyOptions) ProtoMessage() {} +func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } +func (*PodProxyOptions) ProtoMessage() {} +func (*PodProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{105} } -func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } -func (m *PodSecurityContext) String() string { return proto.CompactTextString(m) } -func (*PodSecurityContext) ProtoMessage() {} +func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } +func (*PodSecurityContext) ProtoMessage() {} +func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{106} } -func (m *PodSpec) Reset() { *m = PodSpec{} } -func (m *PodSpec) String() string { return proto.CompactTextString(m) } -func (*PodSpec) ProtoMessage() {} +func (m *PodSignature) Reset() { *m = PodSignature{} } +func (*PodSignature) ProtoMessage() {} +func (*PodSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{107} } -func (m *PodStatus) Reset() { *m = PodStatus{} } -func (m *PodStatus) String() string { return proto.CompactTextString(m) } -func (*PodStatus) ProtoMessage() {} +func (m *PodSpec) Reset() { *m = PodSpec{} } +func (*PodSpec) ProtoMessage() {} +func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{108} } -func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } -func (m *PodStatusResult) String() string { return proto.CompactTextString(m) } -func (*PodStatusResult) ProtoMessage() {} +func (m *PodStatus) Reset() { *m = PodStatus{} } +func (*PodStatus) ProtoMessage() {} +func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{109} } -func (m *PodTemplate) Reset() { *m = PodTemplate{} } -func (m *PodTemplate) String() string { return proto.CompactTextString(m) } -func (*PodTemplate) ProtoMessage() {} +func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } +func (*PodStatusResult) ProtoMessage() {} +func (*PodStatusResult) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{110} } -func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } -func (m *PodTemplateList) String() string { return proto.CompactTextString(m) } -func (*PodTemplateList) ProtoMessage() {} +func (m *PodTemplate) Reset() { *m = PodTemplate{} } +func (*PodTemplate) ProtoMessage() {} +func (*PodTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{111} } -func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } -func (m *PodTemplateSpec) String() string { return proto.CompactTextString(m) } -func (*PodTemplateSpec) ProtoMessage() {} +func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } +func (*PodTemplateList) ProtoMessage() {} +func (*PodTemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{112} } -func (m *Preconditions) Reset() { *m = Preconditions{} } -func (m *Preconditions) String() string { return proto.CompactTextString(m) } -func (*Preconditions) ProtoMessage() {} +func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } +func (*PodTemplateSpec) ProtoMessage() {} +func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{113} } -func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } -func (m *PreferredSchedulingTerm) String() string { return proto.CompactTextString(m) } -func (*PreferredSchedulingTerm) ProtoMessage() {} +func (m *Preconditions) Reset() { *m = Preconditions{} } +func (*Preconditions) ProtoMessage() {} +func (*Preconditions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{114} } -func (m *Probe) Reset() { *m = Probe{} } -func (m *Probe) String() string { return proto.CompactTextString(m) } -func (*Probe) ProtoMessage() {} +func (m *PreferAvoidPodsEntry) Reset() { *m = PreferAvoidPodsEntry{} } +func (*PreferAvoidPodsEntry) ProtoMessage() {} +func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{115} } -func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } -func (m *RBDVolumeSource) String() string { return proto.CompactTextString(m) } -func (*RBDVolumeSource) ProtoMessage() {} +func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } +func (*PreferredSchedulingTerm) ProtoMessage() {} +func (*PreferredSchedulingTerm) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{116} +} -func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } -func (m *RangeAllocation) String() string { return proto.CompactTextString(m) } -func (*RangeAllocation) ProtoMessage() {} +func (m *Probe) Reset() { *m = Probe{} } +func (*Probe) ProtoMessage() {} +func (*Probe) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{117} } -func (m *ReplicationController) Reset() { *m = ReplicationController{} } -func (m *ReplicationController) String() string { return proto.CompactTextString(m) } -func (*ReplicationController) ProtoMessage() {} +func (m *QuobyteVolumeSource) Reset() { *m = QuobyteVolumeSource{} } +func (*QuobyteVolumeSource) ProtoMessage() {} +func (*QuobyteVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{118} } -func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } -func (m *ReplicationControllerList) String() string { return proto.CompactTextString(m) } -func (*ReplicationControllerList) ProtoMessage() {} +func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } +func (*RBDVolumeSource) ProtoMessage() {} +func (*RBDVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{119} } -func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } -func (m *ReplicationControllerSpec) String() string { return proto.CompactTextString(m) } -func (*ReplicationControllerSpec) ProtoMessage() {} +func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } +func (*RangeAllocation) ProtoMessage() {} +func (*RangeAllocation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{120} } -func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } -func (m *ReplicationControllerStatus) String() string { return proto.CompactTextString(m) } -func (*ReplicationControllerStatus) ProtoMessage() {} +func (m *ReplicationController) Reset() { *m = ReplicationController{} } +func (*ReplicationController) ProtoMessage() {} +func (*ReplicationController) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{121} } -func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } -func (m *ResourceFieldSelector) String() string { return proto.CompactTextString(m) } -func (*ResourceFieldSelector) ProtoMessage() {} +func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } +func (*ReplicationControllerList) ProtoMessage() {} +func (*ReplicationControllerList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{122} +} -func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } -func (m *ResourceQuota) String() string { return proto.CompactTextString(m) } -func (*ResourceQuota) ProtoMessage() {} +func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } +func (*ReplicationControllerSpec) ProtoMessage() {} +func (*ReplicationControllerSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{123} +} -func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } -func (m *ResourceQuotaList) String() string { return proto.CompactTextString(m) } -func (*ResourceQuotaList) ProtoMessage() {} +func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } +func (*ReplicationControllerStatus) ProtoMessage() {} +func (*ReplicationControllerStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{124} +} -func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } -func (m *ResourceQuotaSpec) String() string { return proto.CompactTextString(m) } -func (*ResourceQuotaSpec) ProtoMessage() {} +func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } +func (*ResourceFieldSelector) ProtoMessage() {} +func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{125} } -func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } -func (m *ResourceQuotaStatus) String() string { return proto.CompactTextString(m) } -func (*ResourceQuotaStatus) ProtoMessage() {} +func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } +func (*ResourceQuota) ProtoMessage() {} +func (*ResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{126} } -func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } -func (m *ResourceRequirements) String() string { return proto.CompactTextString(m) } -func (*ResourceRequirements) ProtoMessage() {} +func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } +func (*ResourceQuotaList) ProtoMessage() {} +func (*ResourceQuotaList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{127} } -func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } -func (m *SELinuxOptions) String() string { return proto.CompactTextString(m) } -func (*SELinuxOptions) ProtoMessage() {} +func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } +func (*ResourceQuotaSpec) ProtoMessage() {} +func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{128} } -func (m *Secret) Reset() { *m = Secret{} } -func (m *Secret) String() string { return proto.CompactTextString(m) } -func (*Secret) ProtoMessage() {} +func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } +func (*ResourceQuotaStatus) ProtoMessage() {} +func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{129} } -func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } -func (m *SecretKeySelector) String() string { return proto.CompactTextString(m) } -func (*SecretKeySelector) ProtoMessage() {} +func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } +func (*ResourceRequirements) ProtoMessage() {} +func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{130} } -func (m *SecretList) Reset() { *m = SecretList{} } -func (m *SecretList) String() string { return proto.CompactTextString(m) } -func (*SecretList) ProtoMessage() {} +func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } +func (*SELinuxOptions) ProtoMessage() {} +func (*SELinuxOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{131} } -func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } -func (m *SecretVolumeSource) String() string { return proto.CompactTextString(m) } -func (*SecretVolumeSource) ProtoMessage() {} +func (m *Secret) Reset() { *m = Secret{} } +func (*Secret) ProtoMessage() {} +func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{132} } -func (m *SecurityContext) Reset() { *m = SecurityContext{} } -func (m *SecurityContext) String() string { return proto.CompactTextString(m) } -func (*SecurityContext) ProtoMessage() {} +func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } +func (*SecretKeySelector) ProtoMessage() {} +func (*SecretKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{133} } -func (m *SerializedReference) Reset() { *m = SerializedReference{} } -func (m *SerializedReference) String() string { return proto.CompactTextString(m) } -func (*SerializedReference) ProtoMessage() {} +func (m *SecretList) Reset() { *m = SecretList{} } +func (*SecretList) ProtoMessage() {} +func (*SecretList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{134} } -func (m *Service) Reset() { *m = Service{} } -func (m *Service) String() string { return proto.CompactTextString(m) } -func (*Service) ProtoMessage() {} +func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } +func (*SecretVolumeSource) ProtoMessage() {} +func (*SecretVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{135} } -func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } -func (m *ServiceAccount) String() string { return proto.CompactTextString(m) } -func (*ServiceAccount) ProtoMessage() {} +func (m *SecurityContext) Reset() { *m = SecurityContext{} } +func (*SecurityContext) ProtoMessage() {} +func (*SecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{136} } -func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } -func (m *ServiceAccountList) String() string { return proto.CompactTextString(m) } -func (*ServiceAccountList) ProtoMessage() {} +func (m *SerializedReference) Reset() { *m = SerializedReference{} } +func (*SerializedReference) ProtoMessage() {} +func (*SerializedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{137} } -func (m *ServiceList) Reset() { *m = ServiceList{} } -func (m *ServiceList) String() string { return proto.CompactTextString(m) } -func (*ServiceList) ProtoMessage() {} +func (m *Service) Reset() { *m = Service{} } +func (*Service) ProtoMessage() {} +func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{138} } -func (m *ServicePort) Reset() { *m = ServicePort{} } -func (m *ServicePort) String() string { return proto.CompactTextString(m) } -func (*ServicePort) ProtoMessage() {} +func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } +func (*ServiceAccount) ProtoMessage() {} +func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{139} } -func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } -func (m *ServiceProxyOptions) String() string { return proto.CompactTextString(m) } -func (*ServiceProxyOptions) ProtoMessage() {} +func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } +func (*ServiceAccountList) ProtoMessage() {} +func (*ServiceAccountList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{140} } -func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } -func (m *ServiceSpec) String() string { return proto.CompactTextString(m) } -func (*ServiceSpec) ProtoMessage() {} +func (m *ServiceList) Reset() { *m = ServiceList{} } +func (*ServiceList) ProtoMessage() {} +func (*ServiceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{141} } -func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } -func (m *ServiceStatus) String() string { return proto.CompactTextString(m) } -func (*ServiceStatus) ProtoMessage() {} +func (m *ServicePort) Reset() { *m = ServicePort{} } +func (*ServicePort) ProtoMessage() {} +func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{142} } -func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } -func (m *TCPSocketAction) String() string { return proto.CompactTextString(m) } -func (*TCPSocketAction) ProtoMessage() {} +func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } +func (*ServiceProxyOptions) ProtoMessage() {} +func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{143} } -func (m *Taint) Reset() { *m = Taint{} } -func (m *Taint) String() string { return proto.CompactTextString(m) } -func (*Taint) ProtoMessage() {} +func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } +func (*ServiceSpec) ProtoMessage() {} +func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{144} } -func (m *Toleration) Reset() { *m = Toleration{} } -func (m *Toleration) String() string { return proto.CompactTextString(m) } -func (*Toleration) ProtoMessage() {} +func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } +func (*ServiceStatus) ProtoMessage() {} +func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{145} } -func (m *Volume) Reset() { *m = Volume{} } -func (m *Volume) String() string { return proto.CompactTextString(m) } -func (*Volume) ProtoMessage() {} +func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } +func (*TCPSocketAction) ProtoMessage() {} +func (*TCPSocketAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{146} } -func (m *VolumeMount) Reset() { *m = VolumeMount{} } -func (m *VolumeMount) String() string { return proto.CompactTextString(m) } -func (*VolumeMount) ProtoMessage() {} +func (m *Taint) Reset() { *m = Taint{} } +func (*Taint) ProtoMessage() {} +func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{147} } -func (m *VolumeSource) Reset() { *m = VolumeSource{} } -func (m *VolumeSource) String() string { return proto.CompactTextString(m) } -func (*VolumeSource) ProtoMessage() {} +func (m *Toleration) Reset() { *m = Toleration{} } +func (*Toleration) ProtoMessage() {} +func (*Toleration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{148} } -func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } -func (m *VsphereVirtualDiskVolumeSource) String() string { return proto.CompactTextString(m) } -func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} +func (m *Volume) Reset() { *m = Volume{} } +func (*Volume) ProtoMessage() {} +func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{149} } -func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } -func (m *WeightedPodAffinityTerm) String() string { return proto.CompactTextString(m) } -func (*WeightedPodAffinityTerm) ProtoMessage() {} +func (m *VolumeMount) Reset() { *m = VolumeMount{} } +func (*VolumeMount) ProtoMessage() {} +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{151} } + +func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } +func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} +func (*VsphereVirtualDiskVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{152} +} + +func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } +func (*WeightedPodAffinityTerm) ProtoMessage() {} +func (*WeightedPodAffinityTerm) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{153} +} func init() { proto.RegisterType((*AWSElasticBlockStoreVolumeSource)(nil), "k8s.io.kubernetes.pkg.api.v1.AWSElasticBlockStoreVolumeSource") proto.RegisterType((*Affinity)(nil), "k8s.io.kubernetes.pkg.api.v1.Affinity") proto.RegisterType((*AttachedVolume)(nil), "k8s.io.kubernetes.pkg.api.v1.AttachedVolume") + proto.RegisterType((*AvoidPods)(nil), "k8s.io.kubernetes.pkg.api.v1.AvoidPods") + proto.RegisterType((*AzureDiskVolumeSource)(nil), "k8s.io.kubernetes.pkg.api.v1.AzureDiskVolumeSource") proto.RegisterType((*AzureFileVolumeSource)(nil), "k8s.io.kubernetes.pkg.api.v1.AzureFileVolumeSource") proto.RegisterType((*Binding)(nil), "k8s.io.kubernetes.pkg.api.v1.Binding") proto.RegisterType((*Capabilities)(nil), "k8s.io.kubernetes.pkg.api.v1.Capabilities") @@ -896,6 +961,7 @@ func init() { proto.RegisterType((*PodLogOptions)(nil), "k8s.io.kubernetes.pkg.api.v1.PodLogOptions") proto.RegisterType((*PodProxyOptions)(nil), "k8s.io.kubernetes.pkg.api.v1.PodProxyOptions") proto.RegisterType((*PodSecurityContext)(nil), "k8s.io.kubernetes.pkg.api.v1.PodSecurityContext") + proto.RegisterType((*PodSignature)(nil), "k8s.io.kubernetes.pkg.api.v1.PodSignature") proto.RegisterType((*PodSpec)(nil), "k8s.io.kubernetes.pkg.api.v1.PodSpec") proto.RegisterType((*PodStatus)(nil), "k8s.io.kubernetes.pkg.api.v1.PodStatus") proto.RegisterType((*PodStatusResult)(nil), "k8s.io.kubernetes.pkg.api.v1.PodStatusResult") @@ -903,8 +969,10 @@ func init() { proto.RegisterType((*PodTemplateList)(nil), "k8s.io.kubernetes.pkg.api.v1.PodTemplateList") proto.RegisterType((*PodTemplateSpec)(nil), "k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec") proto.RegisterType((*Preconditions)(nil), "k8s.io.kubernetes.pkg.api.v1.Preconditions") + proto.RegisterType((*PreferAvoidPodsEntry)(nil), "k8s.io.kubernetes.pkg.api.v1.PreferAvoidPodsEntry") proto.RegisterType((*PreferredSchedulingTerm)(nil), "k8s.io.kubernetes.pkg.api.v1.PreferredSchedulingTerm") proto.RegisterType((*Probe)(nil), "k8s.io.kubernetes.pkg.api.v1.Probe") + proto.RegisterType((*QuobyteVolumeSource)(nil), "k8s.io.kubernetes.pkg.api.v1.QuobyteVolumeSource") proto.RegisterType((*RBDVolumeSource)(nil), "k8s.io.kubernetes.pkg.api.v1.RBDVolumeSource") proto.RegisterType((*RangeAllocation)(nil), "k8s.io.kubernetes.pkg.api.v1.RangeAllocation") proto.RegisterType((*ReplicationController)(nil), "k8s.io.kubernetes.pkg.api.v1.ReplicationController") @@ -1052,6 +1120,84 @@ func (m *AttachedVolume) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *AvoidPods) 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 *AvoidPods) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.PreferAvoidPods) > 0 { + for _, msg := range m.PreferAvoidPods { + 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 + } + } + 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) @@ -1521,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 } @@ -2094,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 } @@ -2124,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 } @@ -2182,6 +2343,12 @@ func (m *EndpointAddress) MarshalTo(data []byte) (int, error) { i++ i = encodeVarintGenerated(data, i, uint64(len(m.Hostname))) i += copy(data[i:], m.Hostname) + if m.NodeName != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(*m.NodeName))) + i += copy(data[i:], *m.NodeName) + } return i, nil } @@ -3090,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 } @@ -4431,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 } @@ -4983,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 } @@ -5016,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 @@ -5050,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++ @@ -5111,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:]) + n107, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n105 + i += n107 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n106, err := m.Spec.MarshalTo(data[i:]) + n108, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n106 + i += n108 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n107, err := m.Status.MarshalTo(data[i:]) + n109, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n107 + i += n109 return i, nil } @@ -5196,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 { @@ -5346,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))) @@ -5457,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 @@ -5521,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++ @@ -5589,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 @@ -5625,6 +5823,34 @@ func (m *PodSecurityContext) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *PodSignature) 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 *PodSignature) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.PodController != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodController.Size())) + n116, err := m.PodController.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n116 + } + return i, nil +} + func (m *PodSpec) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -5739,11 +5965,11 @@ func (m *PodSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x72 i++ i = encodeVarintGenerated(data, i, uint64(m.SecurityContext.Size())) - n114, err := m.SecurityContext.MarshalTo(data[i:]) + n117, err := m.SecurityContext.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n114 + i += n117 } if len(m.ImagePullSecrets) > 0 { for _, msg := range m.ImagePullSecrets { @@ -5823,11 +6049,11 @@ func (m *PodStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n115, err := m.StartTime.MarshalTo(data[i:]) + n118, err := m.StartTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n115 + i += n118 } if len(m.ContainerStatuses) > 0 { for _, msg := range m.ContainerStatuses { @@ -5862,19 +6088,19 @@ func (m *PodStatusResult) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n116, err := m.ObjectMeta.MarshalTo(data[i:]) + n119, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n116 + i += n119 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n117, err := m.Status.MarshalTo(data[i:]) + n120, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n117 + i += n120 return i, nil } @@ -5896,19 +6122,19 @@ func (m *PodTemplate) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n118, err := m.ObjectMeta.MarshalTo(data[i:]) + n121, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n118 + i += n121 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n119, err := m.Template.MarshalTo(data[i:]) + n122, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n119 + i += n122 return i, nil } @@ -5930,11 +6156,11 @@ func (m *PodTemplateList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n120, err := m.ListMeta.MarshalTo(data[i:]) + n123, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n120 + i += n123 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -5968,19 +6194,19 @@ func (m *PodTemplateSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n121, err := m.ObjectMeta.MarshalTo(data[i:]) + n124, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n121 + i += n124 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n122, err := m.Spec.MarshalTo(data[i:]) + n125, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n122 + i += n125 return i, nil } @@ -6008,6 +6234,48 @@ func (m *Preconditions) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *PreferAvoidPodsEntry) 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 *PreferAvoidPodsEntry) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodSignature.Size())) + n126, err := m.PodSignature.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n126 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.EvictionTime.Size())) + n127, err := m.EvictionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n127 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + return i, nil +} + func (m *PreferredSchedulingTerm) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -6029,11 +6297,11 @@ func (m *PreferredSchedulingTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Preference.Size())) - n123, err := m.Preference.MarshalTo(data[i:]) + n128, err := m.Preference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n123 + i += n128 return i, nil } @@ -6055,11 +6323,11 @@ func (m *Probe) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Handler.Size())) - n124, err := m.Handler.MarshalTo(data[i:]) + n129, err := m.Handler.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n124 + i += n129 data[i] = 0x10 i++ i = encodeVarintGenerated(data, i, uint64(m.InitialDelaySeconds)) @@ -6078,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) @@ -6132,11 +6442,11 @@ func (m *RBDVolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) - n125, err := m.SecretRef.MarshalTo(data[i:]) + n130, err := m.SecretRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n125 + i += n130 } data[i] = 0x40 i++ @@ -6167,11 +6477,11 @@ func (m *RangeAllocation) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n126, err := m.ObjectMeta.MarshalTo(data[i:]) + n131, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n126 + i += n131 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Range))) @@ -6203,27 +6513,27 @@ func (m *ReplicationController) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n127, err := m.ObjectMeta.MarshalTo(data[i:]) + n132, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n127 + i += n132 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n128, err := m.Spec.MarshalTo(data[i:]) + n133, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n128 + i += n133 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n129, err := m.Status.MarshalTo(data[i:]) + n134, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n129 + i += n134 return i, nil } @@ -6245,11 +6555,11 @@ func (m *ReplicationControllerList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n130, err := m.ListMeta.MarshalTo(data[i:]) + n135, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n130 + i += n135 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6306,11 +6616,11 @@ func (m *ReplicationControllerSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n131, err := m.Template.MarshalTo(data[i:]) + n136, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n131 + i += n136 } return i, nil } @@ -6339,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 } @@ -6368,11 +6681,11 @@ func (m *ResourceFieldSelector) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Divisor.Size())) - n132, err := m.Divisor.MarshalTo(data[i:]) + n137, err := m.Divisor.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n132 + i += n137 return i, nil } @@ -6394,27 +6707,27 @@ func (m *ResourceQuota) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n133, err := m.ObjectMeta.MarshalTo(data[i:]) + n138, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n133 + i += n138 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n134, err := m.Spec.MarshalTo(data[i:]) + n139, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n134 + i += n139 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n135, err := m.Status.MarshalTo(data[i:]) + n140, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n135 + i += n140 return i, nil } @@ -6436,11 +6749,11 @@ func (m *ResourceQuotaList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n136, err := m.ListMeta.MarshalTo(data[i:]) + n141, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n136 + i += n141 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6486,11 +6799,11 @@ func (m *ResourceQuotaSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n137, err := (&v).MarshalTo(data[i:]) + n142, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n137 + i += n142 } } if len(m.Scopes) > 0 { @@ -6541,11 +6854,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n138, err := (&v).MarshalTo(data[i:]) + n143, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n138 + i += n143 } } if len(m.Used) > 0 { @@ -6563,11 +6876,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n139, err := (&v).MarshalTo(data[i:]) + n144, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n139 + i += n144 } } return i, nil @@ -6603,11 +6916,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n140, err := (&v).MarshalTo(data[i:]) + n145, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n140 + i += n145 } } if len(m.Requests) > 0 { @@ -6625,11 +6938,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n141, err := (&v).MarshalTo(data[i:]) + n146, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n141 + i += n146 } } return i, nil @@ -6687,11 +7000,11 @@ func (m *Secret) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n142, err := m.ObjectMeta.MarshalTo(data[i:]) + n147, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n142 + i += n147 if len(m.Data) > 0 { for k := range m.Data { data[i] = 0x12 @@ -6751,11 +7064,11 @@ func (m *SecretKeySelector) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) - n143, err := m.LocalObjectReference.MarshalTo(data[i:]) + n148, err := m.LocalObjectReference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n143 + i += n148 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Key))) @@ -6781,11 +7094,11 @@ func (m *SecretList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n144, err := m.ListMeta.MarshalTo(data[i:]) + n149, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n144 + i += n149 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6832,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 } @@ -6854,11 +7172,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Capabilities.Size())) - n145, err := m.Capabilities.MarshalTo(data[i:]) + n150, err := m.Capabilities.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n145 + i += n150 } if m.Privileged != nil { data[i] = 0x10 @@ -6874,11 +7192,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n146, err := m.SELinuxOptions.MarshalTo(data[i:]) + n151, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n146 + i += n151 } if m.RunAsUser != nil { data[i] = 0x20 @@ -6926,11 +7244,11 @@ func (m *SerializedReference) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Reference.Size())) - n147, err := m.Reference.MarshalTo(data[i:]) + n152, err := m.Reference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n147 + i += n152 return i, nil } @@ -6952,27 +7270,27 @@ func (m *Service) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n148, err := m.ObjectMeta.MarshalTo(data[i:]) + n153, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n148 + i += n153 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n149, err := m.Spec.MarshalTo(data[i:]) + n154, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n149 + i += n154 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n150, err := m.Status.MarshalTo(data[i:]) + n155, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n150 + i += n155 return i, nil } @@ -6994,11 +7312,11 @@ func (m *ServiceAccount) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n151, err := m.ObjectMeta.MarshalTo(data[i:]) + n156, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n151 + i += n156 if len(m.Secrets) > 0 { for _, msg := range m.Secrets { data[i] = 0x12 @@ -7044,11 +7362,11 @@ func (m *ServiceAccountList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n152, err := m.ListMeta.MarshalTo(data[i:]) + n157, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n152 + i += n157 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7082,11 +7400,11 @@ func (m *ServiceList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n153, err := m.ListMeta.MarshalTo(data[i:]) + n158, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n153 + i += n158 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7131,11 +7449,11 @@ func (m *ServicePort) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.TargetPort.Size())) - n154, err := m.TargetPort.MarshalTo(data[i:]) + n159, err := m.TargetPort.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n154 + i += n159 data[i] = 0x28 i++ i = encodeVarintGenerated(data, i, uint64(m.NodePort)) @@ -7269,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 } @@ -7290,11 +7612,11 @@ func (m *ServiceStatus) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LoadBalancer.Size())) - n155, err := m.LoadBalancer.MarshalTo(data[i:]) + n160, err := m.LoadBalancer.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n155 + i += n160 return i, nil } @@ -7316,11 +7638,11 @@ func (m *TCPSocketAction) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) - n156, err := m.Port.MarshalTo(data[i:]) + n161, err := m.Port.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n156 + i += n161 return i, nil } @@ -7410,11 +7732,11 @@ func (m *Volume) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.VolumeSource.Size())) - n157, err := m.VolumeSource.MarshalTo(data[i:]) + n162, err := m.VolumeSource.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n157 + i += n162 return i, nil } @@ -7475,151 +7797,151 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.HostPath.Size())) - n158, err := m.HostPath.MarshalTo(data[i:]) + n163, err := m.HostPath.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n158 + i += n163 } if m.EmptyDir != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) - n159, err := m.EmptyDir.MarshalTo(data[i:]) + n164, err := m.EmptyDir.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n159 + i += n164 } if m.GCEPersistentDisk != nil { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) - n160, err := m.GCEPersistentDisk.MarshalTo(data[i:]) + n165, err := m.GCEPersistentDisk.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n160 + i += n165 } if m.AWSElasticBlockStore != nil { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) - n161, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) + n166, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n161 + i += n166 } if m.GitRepo != nil { data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) - n162, err := m.GitRepo.MarshalTo(data[i:]) + n167, err := m.GitRepo.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n162 + i += n167 } if m.Secret != nil { data[i] = 0x32 i++ i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) - n163, err := m.Secret.MarshalTo(data[i:]) + n168, err := m.Secret.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n163 + i += n168 } if m.NFS != nil { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) - n164, err := m.NFS.MarshalTo(data[i:]) + n169, err := m.NFS.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n164 + i += n169 } if m.ISCSI != nil { data[i] = 0x42 i++ i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) - n165, err := m.ISCSI.MarshalTo(data[i:]) + n170, err := m.ISCSI.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n165 + i += n170 } if m.Glusterfs != nil { data[i] = 0x4a i++ i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) - n166, err := m.Glusterfs.MarshalTo(data[i:]) + n171, err := m.Glusterfs.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n166 + i += n171 } if m.PersistentVolumeClaim != nil { data[i] = 0x52 i++ i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) - n167, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) + n172, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n167 + i += n172 } if m.RBD != nil { data[i] = 0x5a i++ i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) - n168, err := m.RBD.MarshalTo(data[i:]) + n173, err := m.RBD.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n168 + i += n173 } if m.FlexVolume != nil { data[i] = 0x62 i++ i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) - n169, err := m.FlexVolume.MarshalTo(data[i:]) + n174, err := m.FlexVolume.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n169 + i += n174 } if m.Cinder != nil { data[i] = 0x6a i++ i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) - n170, err := m.Cinder.MarshalTo(data[i:]) + n175, err := m.Cinder.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n170 + i += n175 } if m.CephFS != nil { data[i] = 0x72 i++ i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) - n171, err := m.CephFS.MarshalTo(data[i:]) + n176, err := m.CephFS.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n171 + i += n176 } if m.Flocker != nil { data[i] = 0x7a i++ i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) - n172, err := m.Flocker.MarshalTo(data[i:]) + n177, err := m.Flocker.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n172 + i += n177 } if m.DownwardAPI != nil { data[i] = 0x82 @@ -7627,11 +7949,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.DownwardAPI.Size())) - n173, err := m.DownwardAPI.MarshalTo(data[i:]) + n178, err := m.DownwardAPI.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n173 + i += n178 } if m.FC != nil { data[i] = 0x8a @@ -7639,11 +7961,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.FC.Size())) - n174, err := m.FC.MarshalTo(data[i:]) + n179, err := m.FC.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n174 + i += n179 } if m.AzureFile != nil { data[i] = 0x92 @@ -7651,11 +7973,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.AzureFile.Size())) - n175, err := m.AzureFile.MarshalTo(data[i:]) + n180, err := m.AzureFile.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n175 + i += n180 } if m.ConfigMap != nil { data[i] = 0x9a @@ -7663,11 +7985,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.ConfigMap.Size())) - n176, err := m.ConfigMap.MarshalTo(data[i:]) + n181, err := m.ConfigMap.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n176 + i += n181 } if m.VsphereVolume != nil { data[i] = 0xa2 @@ -7675,11 +7997,35 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.VsphereVolume.Size())) - n177, err := m.VsphereVolume.MarshalTo(data[i:]) + n182, err := m.VsphereVolume.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n177 + 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 } @@ -7731,11 +8077,11 @@ func (m *WeightedPodAffinityTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.PodAffinityTerm.Size())) - n178, err := m.PodAffinityTerm.MarshalTo(data[i:]) + n185, err := m.PodAffinityTerm.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n178 + i += n185 return i, nil } @@ -7806,6 +8152,39 @@ func (m *AttachedVolume) Size() (n int) { return n } +func (m *AvoidPods) Size() (n int) { + var l int + _ = l + if len(m.PreferAvoidPods) > 0 { + for _, e := range m.PreferAvoidPods { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + 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 @@ -7972,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 } @@ -8179,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 } @@ -8191,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 } @@ -8213,6 +8601,10 @@ func (m *EndpointAddress) Size() (n int) { } l = len(m.Hostname) n += 1 + l + sovGenerated(uint64(l)) + if m.NodeName != nil { + l = len(*m.NodeName) + n += 1 + l + sovGenerated(uint64(l)) + } return n } @@ -8545,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 } @@ -9056,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 } @@ -9259,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 } @@ -9487,6 +9892,16 @@ func (m *PodSecurityContext) Size() (n int) { return n } +func (m *PodSignature) Size() (n int) { + var l int + _ = l + if m.PodController != nil { + l = m.PodController.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + func (m *PodSpec) Size() (n int) { var l int _ = l @@ -9632,6 +10047,20 @@ func (m *Preconditions) Size() (n int) { return n } +func (m *PreferAvoidPodsEntry) Size() (n int) { + var l int + _ = l + l = m.PodSignature.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.EvictionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *PreferredSchedulingTerm) Size() (n int) { var l int _ = l @@ -9654,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 @@ -9748,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 } @@ -9933,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 } @@ -10095,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 } @@ -10246,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 } @@ -10281,6 +10739,2185 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *AWSElasticBlockStoreVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AWSElasticBlockStoreVolumeSource{`, + `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *Affinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Affinity{`, + `NodeAffinity:` + strings.Replace(fmt.Sprintf("%v", this.NodeAffinity), "NodeAffinity", "NodeAffinity", 1) + `,`, + `PodAffinity:` + strings.Replace(fmt.Sprintf("%v", this.PodAffinity), "PodAffinity", "PodAffinity", 1) + `,`, + `PodAntiAffinity:` + strings.Replace(fmt.Sprintf("%v", this.PodAntiAffinity), "PodAntiAffinity", "PodAntiAffinity", 1) + `,`, + `}`, + }, "") + return s +} +func (this *AttachedVolume) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AttachedVolume{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `DevicePath:` + fmt.Sprintf("%v", this.DevicePath) + `,`, + `}`, + }, "") + return s +} +func (this *AvoidPods) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AvoidPods{`, + `PreferAvoidPods:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferAvoidPods), "PreferAvoidPodsEntry", "PreferAvoidPodsEntry", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + 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" + } + s := strings.Join([]string{`&AzureFileVolumeSource{`, + `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, + `ShareName:` + fmt.Sprintf("%v", this.ShareName) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *Binding) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Binding{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Target:` + strings.Replace(strings.Replace(this.Target.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Capabilities) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Capabilities{`, + `Add:` + fmt.Sprintf("%v", this.Add) + `,`, + `Drop:` + fmt.Sprintf("%v", this.Drop) + `,`, + `}`, + }, "") + return s +} +func (this *CephFSVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CephFSVolumeSource{`, + `Monitors:` + fmt.Sprintf("%v", this.Monitors) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `User:` + fmt.Sprintf("%v", this.User) + `,`, + `SecretFile:` + fmt.Sprintf("%v", this.SecretFile) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "LocalObjectReference", 1) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *CinderVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CinderVolumeSource{`, + `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *ComponentCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ComponentCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Error:` + fmt.Sprintf("%v", this.Error) + `,`, + `}`, + }, "") + return s +} +func (this *ComponentStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ComponentStatus{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "ComponentCondition", "ComponentCondition", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ComponentStatusList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ComponentStatusList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ComponentStatus", "ComponentStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMap) String() string { + if this == nil { + return "nil" + } + keysForData := make([]string, 0, len(this.Data)) + for k := range this.Data { + keysForData = append(keysForData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForData) + mapStringForData := "map[string]string{" + for _, k := range keysForData { + mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) + } + mapStringForData += "}" + s := strings.Join([]string{`&ConfigMap{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Data:` + mapStringForData + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMapKeySelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConfigMapKeySelector{`, + `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMapList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConfigMapList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ConfigMap", "ConfigMap", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMapVolumeSource) String() string { + if this == nil { + return "nil" + } + 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 +} +func (this *Container) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Container{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Image:` + fmt.Sprintf("%v", this.Image) + `,`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `WorkingDir:` + fmt.Sprintf("%v", this.WorkingDir) + `,`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "ContainerPort", "ContainerPort", 1), `&`, ``, 1) + `,`, + `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "EnvVar", 1), `&`, ``, 1) + `,`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, + `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "VolumeMount", 1), `&`, ``, 1) + `,`, + `LivenessProbe:` + strings.Replace(fmt.Sprintf("%v", this.LivenessProbe), "Probe", "Probe", 1) + `,`, + `ReadinessProbe:` + strings.Replace(fmt.Sprintf("%v", this.ReadinessProbe), "Probe", "Probe", 1) + `,`, + `Lifecycle:` + strings.Replace(fmt.Sprintf("%v", this.Lifecycle), "Lifecycle", "Lifecycle", 1) + `,`, + `TerminationMessagePath:` + fmt.Sprintf("%v", this.TerminationMessagePath) + `,`, + `ImagePullPolicy:` + fmt.Sprintf("%v", this.ImagePullPolicy) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "SecurityContext", "SecurityContext", 1) + `,`, + `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, + `StdinOnce:` + fmt.Sprintf("%v", this.StdinOnce) + `,`, + `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerImage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerImage{`, + `Names:` + fmt.Sprintf("%v", this.Names) + `,`, + `SizeBytes:` + fmt.Sprintf("%v", this.SizeBytes) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerPort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `HostPort:` + fmt.Sprintf("%v", this.HostPort) + `,`, + `ContainerPort:` + fmt.Sprintf("%v", this.ContainerPort) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerState) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerState{`, + `Waiting:` + strings.Replace(fmt.Sprintf("%v", this.Waiting), "ContainerStateWaiting", "ContainerStateWaiting", 1) + `,`, + `Running:` + strings.Replace(fmt.Sprintf("%v", this.Running), "ContainerStateRunning", "ContainerStateRunning", 1) + `,`, + `Terminated:` + strings.Replace(fmt.Sprintf("%v", this.Terminated), "ContainerStateTerminated", "ContainerStateTerminated", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStateRunning) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStateRunning{`, + `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStateTerminated) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStateTerminated{`, + `ExitCode:` + fmt.Sprintf("%v", this.ExitCode) + `,`, + `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `FinishedAt:` + strings.Replace(strings.Replace(this.FinishedAt.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStateWaiting) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStateWaiting{`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStatus{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `State:` + strings.Replace(strings.Replace(this.State.String(), "ContainerState", "ContainerState", 1), `&`, ``, 1) + `,`, + `LastTerminationState:` + strings.Replace(strings.Replace(this.LastTerminationState.String(), "ContainerState", "ContainerState", 1), `&`, ``, 1) + `,`, + `Ready:` + fmt.Sprintf("%v", this.Ready) + `,`, + `RestartCount:` + fmt.Sprintf("%v", this.RestartCount) + `,`, + `Image:` + fmt.Sprintf("%v", this.Image) + `,`, + `ImageID:` + fmt.Sprintf("%v", this.ImageID) + `,`, + `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, + `}`, + }, "") + return s +} +func (this *DaemonEndpoint) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DaemonEndpoint{`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteOptions{`, + `GracePeriodSeconds:` + valueToStringGenerated(this.GracePeriodSeconds) + `,`, + `Preconditions:` + strings.Replace(fmt.Sprintf("%v", this.Preconditions), "Preconditions", "Preconditions", 1) + `,`, + `OrphanDependents:` + valueToStringGenerated(this.OrphanDependents) + `,`, + `}`, + }, "") + return s +} +func (this *DownwardAPIVolumeFile) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DownwardAPIVolumeFile{`, + `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 +} +func (this *DownwardAPIVolumeSource) String() string { + if this == nil { + return "nil" + } + 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 +} +func (this *EmptyDirVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EmptyDirVolumeSource{`, + `Medium:` + fmt.Sprintf("%v", this.Medium) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointAddress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointAddress{`, + `IP:` + fmt.Sprintf("%v", this.IP) + `,`, + `TargetRef:` + strings.Replace(fmt.Sprintf("%v", this.TargetRef), "ObjectReference", "ObjectReference", 1) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `NodeName:` + valueToStringGenerated(this.NodeName) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointPort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointSubset) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointSubset{`, + `Addresses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Addresses), "EndpointAddress", "EndpointAddress", 1), `&`, ``, 1) + `,`, + `NotReadyAddresses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.NotReadyAddresses), "EndpointAddress", "EndpointAddress", 1), `&`, ``, 1) + `,`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "EndpointPort", "EndpointPort", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Endpoints) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Endpoints{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Subsets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subsets), "EndpointSubset", "EndpointSubset", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointsList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointsList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Endpoints", "Endpoints", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EnvVar) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EnvVar{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `ValueFrom:` + strings.Replace(fmt.Sprintf("%v", this.ValueFrom), "EnvVarSource", "EnvVarSource", 1) + `,`, + `}`, + }, "") + return s +} +func (this *EnvVarSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EnvVarSource{`, + `FieldRef:` + strings.Replace(fmt.Sprintf("%v", this.FieldRef), "ObjectFieldSelector", "ObjectFieldSelector", 1) + `,`, + `ResourceFieldRef:` + strings.Replace(fmt.Sprintf("%v", this.ResourceFieldRef), "ResourceFieldSelector", "ResourceFieldSelector", 1) + `,`, + `ConfigMapKeyRef:` + strings.Replace(fmt.Sprintf("%v", this.ConfigMapKeyRef), "ConfigMapKeySelector", "ConfigMapKeySelector", 1) + `,`, + `SecretKeyRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretKeyRef), "SecretKeySelector", "SecretKeySelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *Event) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `InvolvedObject:` + strings.Replace(strings.Replace(this.InvolvedObject.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Source:` + strings.Replace(strings.Replace(this.Source.String(), "EventSource", "EventSource", 1), `&`, ``, 1) + `,`, + `FirstTimestamp:` + strings.Replace(strings.Replace(this.FirstTimestamp.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTimestamp:` + strings.Replace(strings.Replace(this.LastTimestamp.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Count:` + fmt.Sprintf("%v", this.Count) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `}`, + }, "") + return s +} +func (this *EventList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EventList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Event", "Event", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EventSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EventSource{`, + `Component:` + fmt.Sprintf("%v", this.Component) + `,`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `}`, + }, "") + return s +} +func (this *ExecAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecAction{`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `}`, + }, "") + return s +} +func (this *ExportOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportOptions{`, + `Export:` + fmt.Sprintf("%v", this.Export) + `,`, + `Exact:` + fmt.Sprintf("%v", this.Exact) + `,`, + `}`, + }, "") + return s +} +func (this *FCVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FCVolumeSource{`, + `TargetWWNs:` + fmt.Sprintf("%v", this.TargetWWNs) + `,`, + `Lun:` + valueToStringGenerated(this.Lun) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *FlexVolumeSource) String() string { + if this == nil { + return "nil" + } + keysForOptions := make([]string, 0, len(this.Options)) + for k := range this.Options { + keysForOptions = append(keysForOptions, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) + mapStringForOptions := "map[string]string{" + for _, k := range keysForOptions { + mapStringForOptions += fmt.Sprintf("%v: %v,", k, this.Options[k]) + } + mapStringForOptions += "}" + s := strings.Join([]string{`&FlexVolumeSource{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "LocalObjectReference", 1) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `Options:` + mapStringForOptions + `,`, + `}`, + }, "") + return s +} +func (this *FlockerVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FlockerVolumeSource{`, + `DatasetName:` + fmt.Sprintf("%v", this.DatasetName) + `,`, + `}`, + }, "") + return s +} +func (this *GCEPersistentDiskVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GCEPersistentDiskVolumeSource{`, + `PDName:` + fmt.Sprintf("%v", this.PDName) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *GitRepoVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GitRepoVolumeSource{`, + `Repository:` + fmt.Sprintf("%v", this.Repository) + `,`, + `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, + `Directory:` + fmt.Sprintf("%v", this.Directory) + `,`, + `}`, + }, "") + return s +} +func (this *GlusterfsVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GlusterfsVolumeSource{`, + `EndpointsName:` + fmt.Sprintf("%v", this.EndpointsName) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPGetAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPGetAction{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Port:` + strings.Replace(strings.Replace(this.Port.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `Scheme:` + fmt.Sprintf("%v", this.Scheme) + `,`, + `HTTPHeaders:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.HTTPHeaders), "HTTPHeader", "HTTPHeader", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPHeader) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPHeader{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *Handler) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Handler{`, + `Exec:` + strings.Replace(fmt.Sprintf("%v", this.Exec), "ExecAction", "ExecAction", 1) + `,`, + `HTTPGet:` + strings.Replace(fmt.Sprintf("%v", this.HTTPGet), "HTTPGetAction", "HTTPGetAction", 1) + `,`, + `TCPSocket:` + strings.Replace(fmt.Sprintf("%v", this.TCPSocket), "TCPSocketAction", "TCPSocketAction", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HostPathVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HostPathVolumeSource{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *ISCSIVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ISCSIVolumeSource{`, + `TargetPortal:` + fmt.Sprintf("%v", this.TargetPortal) + `,`, + `IQN:` + fmt.Sprintf("%v", this.IQN) + `,`, + `Lun:` + fmt.Sprintf("%v", this.Lun) + `,`, + `ISCSIInterface:` + fmt.Sprintf("%v", this.ISCSIInterface) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *KeyToPath) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&KeyToPath{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Mode:` + valueToStringGenerated(this.Mode) + `,`, + `}`, + }, "") + return s +} +func (this *Lifecycle) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Lifecycle{`, + `PostStart:` + strings.Replace(fmt.Sprintf("%v", this.PostStart), "Handler", "Handler", 1) + `,`, + `PreStop:` + strings.Replace(fmt.Sprintf("%v", this.PreStop), "Handler", "Handler", 1) + `,`, + `}`, + }, "") + return s +} +func (this *LimitRange) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LimitRange{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LimitRangeSpec", "LimitRangeSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LimitRangeItem) String() string { + if this == nil { + return "nil" + } + keysForMax := make([]string, 0, len(this.Max)) + for k := range this.Max { + keysForMax = append(keysForMax, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMax) + mapStringForMax := "ResourceList{" + for _, k := range keysForMax { + mapStringForMax += fmt.Sprintf("%v: %v,", k, this.Max[ResourceName(k)]) + } + mapStringForMax += "}" + keysForMin := make([]string, 0, len(this.Min)) + for k := range this.Min { + keysForMin = append(keysForMin, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMin) + mapStringForMin := "ResourceList{" + for _, k := range keysForMin { + mapStringForMin += fmt.Sprintf("%v: %v,", k, this.Min[ResourceName(k)]) + } + mapStringForMin += "}" + keysForDefault := make([]string, 0, len(this.Default)) + for k := range this.Default { + keysForDefault = append(keysForDefault, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForDefault) + mapStringForDefault := "ResourceList{" + for _, k := range keysForDefault { + mapStringForDefault += fmt.Sprintf("%v: %v,", k, this.Default[ResourceName(k)]) + } + mapStringForDefault += "}" + keysForDefaultRequest := make([]string, 0, len(this.DefaultRequest)) + for k := range this.DefaultRequest { + keysForDefaultRequest = append(keysForDefaultRequest, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForDefaultRequest) + mapStringForDefaultRequest := "ResourceList{" + for _, k := range keysForDefaultRequest { + mapStringForDefaultRequest += fmt.Sprintf("%v: %v,", k, this.DefaultRequest[ResourceName(k)]) + } + mapStringForDefaultRequest += "}" + keysForMaxLimitRequestRatio := make([]string, 0, len(this.MaxLimitRequestRatio)) + for k := range this.MaxLimitRequestRatio { + keysForMaxLimitRequestRatio = append(keysForMaxLimitRequestRatio, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMaxLimitRequestRatio) + mapStringForMaxLimitRequestRatio := "ResourceList{" + for _, k := range keysForMaxLimitRequestRatio { + mapStringForMaxLimitRequestRatio += fmt.Sprintf("%v: %v,", k, this.MaxLimitRequestRatio[ResourceName(k)]) + } + mapStringForMaxLimitRequestRatio += "}" + s := strings.Join([]string{`&LimitRangeItem{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Max:` + mapStringForMax + `,`, + `Min:` + mapStringForMin + `,`, + `Default:` + mapStringForDefault + `,`, + `DefaultRequest:` + mapStringForDefaultRequest + `,`, + `MaxLimitRequestRatio:` + mapStringForMaxLimitRequestRatio + `,`, + `}`, + }, "") + return s +} +func (this *LimitRangeList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LimitRangeList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "LimitRange", "LimitRange", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LimitRangeSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LimitRangeSpec{`, + `Limits:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Limits), "LimitRangeItem", "LimitRangeItem", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *List) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&List{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RawExtension", "k8s_io_kubernetes_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ListOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListOptions{`, + `LabelSelector:` + fmt.Sprintf("%v", this.LabelSelector) + `,`, + `FieldSelector:` + fmt.Sprintf("%v", this.FieldSelector) + `,`, + `Watch:` + fmt.Sprintf("%v", this.Watch) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, + `}`, + }, "") + return s +} +func (this *LoadBalancerIngress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LoadBalancerIngress{`, + `IP:` + fmt.Sprintf("%v", this.IP) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `}`, + }, "") + return s +} +func (this *LoadBalancerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LoadBalancerStatus{`, + `Ingress:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ingress), "LoadBalancerIngress", "LoadBalancerIngress", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LocalObjectReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LocalObjectReference{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *NFSVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NFSVolumeSource{`, + `Server:` + fmt.Sprintf("%v", this.Server) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *Namespace) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Namespace{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NamespaceSpec", "NamespaceSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "NamespaceStatus", "NamespaceStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceSpec{`, + `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `}`, + }, "") + return s +} +func (this *Node) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Node{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NodeSpec", "NodeSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "NodeStatus", "NodeStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeAddress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeAddress{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Address:` + fmt.Sprintf("%v", this.Address) + `,`, + `}`, + }, "") + return s +} +func (this *NodeAffinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeAffinity{`, + `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(fmt.Sprintf("%v", this.RequiredDuringSchedulingIgnoredDuringExecution), "NodeSelector", "NodeSelector", 1) + `,`, + `PreferredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferredDuringSchedulingIgnoredDuringExecution), "PreferredSchedulingTerm", "PreferredSchedulingTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastHeartbeatTime:` + strings.Replace(strings.Replace(this.LastHeartbeatTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *NodeDaemonEndpoints) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeDaemonEndpoints{`, + `KubeletEndpoint:` + strings.Replace(strings.Replace(this.KubeletEndpoint.String(), "DaemonEndpoint", "DaemonEndpoint", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Node", "Node", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeProxyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeProxyOptions{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSelector{`, + `NodeSelectorTerms:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.NodeSelectorTerms), "NodeSelectorTerm", "NodeSelectorTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSelectorTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSelectorTerm{`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "NodeSelectorRequirement", "NodeSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSpec{`, + `PodCIDR:` + fmt.Sprintf("%v", this.PodCIDR) + `,`, + `ExternalID:` + fmt.Sprintf("%v", this.ExternalID) + `,`, + `ProviderID:` + fmt.Sprintf("%v", this.ProviderID) + `,`, + `Unschedulable:` + fmt.Sprintf("%v", this.Unschedulable) + `,`, + `}`, + }, "") + return s +} +func (this *NodeStatus) String() string { + if this == nil { + return "nil" + } + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "ResourceList{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) + } + mapStringForCapacity += "}" + keysForAllocatable := make([]string, 0, len(this.Allocatable)) + for k := range this.Allocatable { + keysForAllocatable = append(keysForAllocatable, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatable) + mapStringForAllocatable := "ResourceList{" + for _, k := range keysForAllocatable { + mapStringForAllocatable += fmt.Sprintf("%v: %v,", k, this.Allocatable[ResourceName(k)]) + } + mapStringForAllocatable += "}" + s := strings.Join([]string{`&NodeStatus{`, + `Capacity:` + mapStringForCapacity + `,`, + `Allocatable:` + mapStringForAllocatable + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "NodeCondition", "NodeCondition", 1), `&`, ``, 1) + `,`, + `Addresses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Addresses), "NodeAddress", "NodeAddress", 1), `&`, ``, 1) + `,`, + `DaemonEndpoints:` + strings.Replace(strings.Replace(this.DaemonEndpoints.String(), "NodeDaemonEndpoints", "NodeDaemonEndpoints", 1), `&`, ``, 1) + `,`, + `NodeInfo:` + strings.Replace(strings.Replace(this.NodeInfo.String(), "NodeSystemInfo", "NodeSystemInfo", 1), `&`, ``, 1) + `,`, + `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "ContainerImage", "ContainerImage", 1), `&`, ``, 1) + `,`, + `VolumesInUse:` + fmt.Sprintf("%v", this.VolumesInUse) + `,`, + `VolumesAttached:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumesAttached), "AttachedVolume", "AttachedVolume", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSystemInfo) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSystemInfo{`, + `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, + `SystemUUID:` + fmt.Sprintf("%v", this.SystemUUID) + `,`, + `BootID:` + fmt.Sprintf("%v", this.BootID) + `,`, + `KernelVersion:` + fmt.Sprintf("%v", this.KernelVersion) + `,`, + `OSImage:` + fmt.Sprintf("%v", this.OSImage) + `,`, + `ContainerRuntimeVersion:` + fmt.Sprintf("%v", this.ContainerRuntimeVersion) + `,`, + `KubeletVersion:` + fmt.Sprintf("%v", this.KubeletVersion) + `,`, + `KubeProxyVersion:` + fmt.Sprintf("%v", this.KubeProxyVersion) + `,`, + `OperatingSystem:` + fmt.Sprintf("%v", this.OperatingSystem) + `,`, + `Architecture:` + fmt.Sprintf("%v", this.Architecture) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectFieldSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ObjectFieldSelector{`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `FieldPath:` + fmt.Sprintf("%v", this.FieldPath) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectMeta) String() string { + if this == nil { + return "nil" + } + keysForLabels := make([]string, 0, len(this.Labels)) + for k := range this.Labels { + keysForLabels = append(keysForLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) + mapStringForLabels := "map[string]string{" + for _, k := range keysForLabels { + mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) + } + mapStringForLabels += "}" + 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{`&ObjectMeta{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `GenerateName:` + fmt.Sprintf("%v", this.GenerateName) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `SelfLink:` + fmt.Sprintf("%v", this.SelfLink) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, + `CreationTimestamp:` + strings.Replace(strings.Replace(this.CreationTimestamp.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `DeletionTimestamp:` + strings.Replace(fmt.Sprintf("%v", this.DeletionTimestamp), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `DeletionGracePeriodSeconds:` + valueToStringGenerated(this.DeletionGracePeriodSeconds) + `,`, + `Labels:` + mapStringForLabels + `,`, + `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 +} +func (this *ObjectReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ObjectReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `FieldPath:` + fmt.Sprintf("%v", this.FieldPath) + `,`, + `}`, + }, "") + return s +} +func (this *OwnerReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OwnerReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Controller:` + valueToStringGenerated(this.Controller) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolume) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolume{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PersistentVolumeSpec", "PersistentVolumeSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PersistentVolumeStatus", "PersistentVolumeStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaim) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaim{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PersistentVolumeClaimSpec", "PersistentVolumeClaimSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PersistentVolumeClaimStatus", "PersistentVolumeClaimStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaimList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PersistentVolumeClaim", "PersistentVolumeClaim", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaimSpec{`, + `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, + `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimStatus) String() string { + if this == nil { + return "nil" + } + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "ResourceList{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) + } + mapStringForCapacity += "}" + s := strings.Join([]string{`&PersistentVolumeClaimStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, + `Capacity:` + mapStringForCapacity + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaimVolumeSource{`, + `ClaimName:` + fmt.Sprintf("%v", this.ClaimName) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PersistentVolume", "PersistentVolume", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeSource{`, + `GCEPersistentDisk:` + strings.Replace(fmt.Sprintf("%v", this.GCEPersistentDisk), "GCEPersistentDiskVolumeSource", "GCEPersistentDiskVolumeSource", 1) + `,`, + `AWSElasticBlockStore:` + strings.Replace(fmt.Sprintf("%v", this.AWSElasticBlockStore), "AWSElasticBlockStoreVolumeSource", "AWSElasticBlockStoreVolumeSource", 1) + `,`, + `HostPath:` + strings.Replace(fmt.Sprintf("%v", this.HostPath), "HostPathVolumeSource", "HostPathVolumeSource", 1) + `,`, + `Glusterfs:` + strings.Replace(fmt.Sprintf("%v", this.Glusterfs), "GlusterfsVolumeSource", "GlusterfsVolumeSource", 1) + `,`, + `NFS:` + strings.Replace(fmt.Sprintf("%v", this.NFS), "NFSVolumeSource", "NFSVolumeSource", 1) + `,`, + `RBD:` + strings.Replace(fmt.Sprintf("%v", this.RBD), "RBDVolumeSource", "RBDVolumeSource", 1) + `,`, + `ISCSI:` + strings.Replace(fmt.Sprintf("%v", this.ISCSI), "ISCSIVolumeSource", "ISCSIVolumeSource", 1) + `,`, + `Cinder:` + strings.Replace(fmt.Sprintf("%v", this.Cinder), "CinderVolumeSource", "CinderVolumeSource", 1) + `,`, + `CephFS:` + strings.Replace(fmt.Sprintf("%v", this.CephFS), "CephFSVolumeSource", "CephFSVolumeSource", 1) + `,`, + `FC:` + strings.Replace(fmt.Sprintf("%v", this.FC), "FCVolumeSource", "FCVolumeSource", 1) + `,`, + `Flocker:` + strings.Replace(fmt.Sprintf("%v", this.Flocker), "FlockerVolumeSource", "FlockerVolumeSource", 1) + `,`, + `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 +} +func (this *PersistentVolumeSpec) String() string { + if this == nil { + return "nil" + } + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "ResourceList{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) + } + mapStringForCapacity += "}" + s := strings.Join([]string{`&PersistentVolumeSpec{`, + `Capacity:` + mapStringForCapacity + `,`, + `PersistentVolumeSource:` + strings.Replace(strings.Replace(this.PersistentVolumeSource.String(), "PersistentVolumeSource", "PersistentVolumeSource", 1), `&`, ``, 1) + `,`, + `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, + `ClaimRef:` + strings.Replace(fmt.Sprintf("%v", this.ClaimRef), "ObjectReference", "ObjectReference", 1) + `,`, + `PersistentVolumeReclaimPolicy:` + fmt.Sprintf("%v", this.PersistentVolumeReclaimPolicy) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `}`, + }, "") + return s +} +func (this *Pod) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Pod{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodStatus", "PodStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodAffinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAffinity{`, + `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RequiredDuringSchedulingIgnoredDuringExecution), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, + `PreferredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferredDuringSchedulingIgnoredDuringExecution), "WeightedPodAffinityTerm", "WeightedPodAffinityTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodAffinityTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAffinityTerm{`, + `LabelSelector:` + strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, + `TopologyKey:` + fmt.Sprintf("%v", this.TopologyKey) + `,`, + `}`, + }, "") + return s +} +func (this *PodAntiAffinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAntiAffinity{`, + `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RequiredDuringSchedulingIgnoredDuringExecution), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, + `PreferredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferredDuringSchedulingIgnoredDuringExecution), "WeightedPodAffinityTerm", "WeightedPodAffinityTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodAttachOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAttachOptions{`, + `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, + `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, + `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, + `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `}`, + }, "") + return s +} +func (this *PodCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *PodExecOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodExecOptions{`, + `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, + `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, + `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, + `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `}`, + }, "") + return s +} +func (this *PodList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Pod", "Pod", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodLogOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodLogOptions{`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `Follow:` + fmt.Sprintf("%v", this.Follow) + `,`, + `Previous:` + fmt.Sprintf("%v", this.Previous) + `,`, + `SinceSeconds:` + valueToStringGenerated(this.SinceSeconds) + `,`, + `SinceTime:` + strings.Replace(fmt.Sprintf("%v", this.SinceTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `Timestamps:` + fmt.Sprintf("%v", this.Timestamps) + `,`, + `TailLines:` + valueToStringGenerated(this.TailLines) + `,`, + `LimitBytes:` + valueToStringGenerated(this.LimitBytes) + `,`, + `}`, + }, "") + return s +} +func (this *PodProxyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodProxyOptions{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *PodSecurityContext) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSecurityContext{`, + `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "SELinuxOptions", 1) + `,`, + `RunAsUser:` + valueToStringGenerated(this.RunAsUser) + `,`, + `RunAsNonRoot:` + valueToStringGenerated(this.RunAsNonRoot) + `,`, + `SupplementalGroups:` + fmt.Sprintf("%v", this.SupplementalGroups) + `,`, + `FSGroup:` + valueToStringGenerated(this.FSGroup) + `,`, + `}`, + }, "") + return s +} +func (this *PodSignature) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSignature{`, + `PodController:` + strings.Replace(fmt.Sprintf("%v", this.PodController), "OwnerReference", "OwnerReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodSpec) String() string { + if this == nil { + return "nil" + } + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&PodSpec{`, + `Volumes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "Volume", 1), `&`, ``, 1) + `,`, + `Containers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Containers), "Container", "Container", 1), `&`, ``, 1) + `,`, + `RestartPolicy:` + fmt.Sprintf("%v", this.RestartPolicy) + `,`, + `TerminationGracePeriodSeconds:` + valueToStringGenerated(this.TerminationGracePeriodSeconds) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `DNSPolicy:` + fmt.Sprintf("%v", this.DNSPolicy) + `,`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `DeprecatedServiceAccount:` + fmt.Sprintf("%v", this.DeprecatedServiceAccount) + `,`, + `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, + `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, + `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, + `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "PodSecurityContext", 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Subdomain:` + fmt.Sprintf("%v", this.Subdomain) + `,`, + `}`, + }, "") + return s +} +func (this *PodStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "PodCondition", "PodCondition", 1), `&`, ``, 1) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, + `PodIP:` + fmt.Sprintf("%v", this.PodIP) + `,`, + `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `ContainerStatuses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ContainerStatuses), "ContainerStatus", "ContainerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodStatusResult) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodStatusResult{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodStatus", "PodStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplate{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplateList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplateList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PodTemplate", "PodTemplate", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplateSpec{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Preconditions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Preconditions{`, + `UID:` + valueToStringGenerated(this.UID) + `,`, + `}`, + }, "") + return s +} +func (this *PreferAvoidPodsEntry) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PreferAvoidPodsEntry{`, + `PodSignature:` + strings.Replace(strings.Replace(this.PodSignature.String(), "PodSignature", "PodSignature", 1), `&`, ``, 1) + `,`, + `EvictionTime:` + strings.Replace(strings.Replace(this.EvictionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *PreferredSchedulingTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PreferredSchedulingTerm{`, + `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, + `Preference:` + strings.Replace(strings.Replace(this.Preference.String(), "NodeSelectorTerm", "NodeSelectorTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Probe) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Probe{`, + `Handler:` + strings.Replace(strings.Replace(this.Handler.String(), "Handler", "Handler", 1), `&`, ``, 1) + `,`, + `InitialDelaySeconds:` + fmt.Sprintf("%v", this.InitialDelaySeconds) + `,`, + `TimeoutSeconds:` + fmt.Sprintf("%v", this.TimeoutSeconds) + `,`, + `PeriodSeconds:` + fmt.Sprintf("%v", this.PeriodSeconds) + `,`, + `SuccessThreshold:` + fmt.Sprintf("%v", this.SuccessThreshold) + `,`, + `FailureThreshold:` + fmt.Sprintf("%v", this.FailureThreshold) + `,`, + `}`, + }, "") + 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" + } + s := strings.Join([]string{`&RBDVolumeSource{`, + `CephMonitors:` + fmt.Sprintf("%v", this.CephMonitors) + `,`, + `RBDImage:` + fmt.Sprintf("%v", this.RBDImage) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `RBDPool:` + fmt.Sprintf("%v", this.RBDPool) + `,`, + `RadosUser:` + fmt.Sprintf("%v", this.RadosUser) + `,`, + `Keyring:` + fmt.Sprintf("%v", this.Keyring) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "LocalObjectReference", 1) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *RangeAllocation) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RangeAllocation{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Range:` + fmt.Sprintf("%v", this.Range) + `,`, + `Data:` + valueToStringGenerated(this.Data) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationController) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationController{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicationControllerSpec", "ReplicationControllerSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicationControllerStatus", "ReplicationControllerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationControllerList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ReplicationController", "ReplicationController", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerSpec) String() string { + if this == nil { + return "nil" + } + keysForSelector := make([]string, 0, len(this.Selector)) + for k := range this.Selector { + keysForSelector = append(keysForSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) + mapStringForSelector := "map[string]string{" + for _, k := range keysForSelector { + mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) + } + mapStringForSelector += "}" + s := strings.Join([]string{`&ReplicationControllerSpec{`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Selector:` + mapStringForSelector + `,`, + `Template:` + strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "PodTemplateSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationControllerStatus{`, + `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 +} +func (this *ResourceFieldSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceFieldSelector{`, + `ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`, + `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, + `Divisor:` + strings.Replace(strings.Replace(this.Divisor.String(), "Quantity", "k8s_io_kubernetes_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuota) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceQuota{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceQuotaSpec", "ResourceQuotaSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceQuotaStatus", "ResourceQuotaStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuotaList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceQuotaList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ResourceQuota", "ResourceQuota", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuotaSpec) String() string { + if this == nil { + return "nil" + } + keysForHard := make([]string, 0, len(this.Hard)) + for k := range this.Hard { + keysForHard = append(keysForHard, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHard) + mapStringForHard := "ResourceList{" + for _, k := range keysForHard { + mapStringForHard += fmt.Sprintf("%v: %v,", k, this.Hard[ResourceName(k)]) + } + mapStringForHard += "}" + s := strings.Join([]string{`&ResourceQuotaSpec{`, + `Hard:` + mapStringForHard + `,`, + `Scopes:` + fmt.Sprintf("%v", this.Scopes) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuotaStatus) String() string { + if this == nil { + return "nil" + } + keysForHard := make([]string, 0, len(this.Hard)) + for k := range this.Hard { + keysForHard = append(keysForHard, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHard) + mapStringForHard := "ResourceList{" + for _, k := range keysForHard { + mapStringForHard += fmt.Sprintf("%v: %v,", k, this.Hard[ResourceName(k)]) + } + mapStringForHard += "}" + keysForUsed := make([]string, 0, len(this.Used)) + for k := range this.Used { + keysForUsed = append(keysForUsed, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForUsed) + mapStringForUsed := "ResourceList{" + for _, k := range keysForUsed { + mapStringForUsed += fmt.Sprintf("%v: %v,", k, this.Used[ResourceName(k)]) + } + mapStringForUsed += "}" + s := strings.Join([]string{`&ResourceQuotaStatus{`, + `Hard:` + mapStringForHard + `,`, + `Used:` + mapStringForUsed + `,`, + `}`, + }, "") + return s +} +func (this *ResourceRequirements) String() string { + if this == nil { + return "nil" + } + keysForLimits := make([]string, 0, len(this.Limits)) + for k := range this.Limits { + keysForLimits = append(keysForLimits, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLimits) + mapStringForLimits := "ResourceList{" + for _, k := range keysForLimits { + mapStringForLimits += fmt.Sprintf("%v: %v,", k, this.Limits[ResourceName(k)]) + } + mapStringForLimits += "}" + keysForRequests := make([]string, 0, len(this.Requests)) + for k := range this.Requests { + keysForRequests = append(keysForRequests, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForRequests) + mapStringForRequests := "ResourceList{" + for _, k := range keysForRequests { + mapStringForRequests += fmt.Sprintf("%v: %v,", k, this.Requests[ResourceName(k)]) + } + mapStringForRequests += "}" + s := strings.Join([]string{`&ResourceRequirements{`, + `Limits:` + mapStringForLimits + `,`, + `Requests:` + mapStringForRequests + `,`, + `}`, + }, "") + return s +} +func (this *SELinuxOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SELinuxOptions{`, + `User:` + fmt.Sprintf("%v", this.User) + `,`, + `Role:` + fmt.Sprintf("%v", this.Role) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Level:` + fmt.Sprintf("%v", this.Level) + `,`, + `}`, + }, "") + return s +} +func (this *Secret) String() string { + if this == nil { + return "nil" + } + keysForData := make([]string, 0, len(this.Data)) + for k := range this.Data { + keysForData = append(keysForData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForData) + mapStringForData := "map[string][]byte{" + for _, k := range keysForData { + mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) + } + mapStringForData += "}" + keysForStringData := make([]string, 0, len(this.StringData)) + for k := range this.StringData { + keysForStringData = append(keysForStringData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForStringData) + mapStringForStringData := "map[string]string{" + for _, k := range keysForStringData { + mapStringForStringData += fmt.Sprintf("%v: %v,", k, this.StringData[k]) + } + mapStringForStringData += "}" + s := strings.Join([]string{`&Secret{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Data:` + mapStringForData + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `StringData:` + mapStringForStringData + `,`, + `}`, + }, "") + return s +} +func (this *SecretKeySelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecretKeySelector{`, + `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *SecretList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecretList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Secret", "Secret", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SecretVolumeSource) String() string { + if this == nil { + return "nil" + } + 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 +} +func (this *SecurityContext) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecurityContext{`, + `Capabilities:` + strings.Replace(fmt.Sprintf("%v", this.Capabilities), "Capabilities", "Capabilities", 1) + `,`, + `Privileged:` + valueToStringGenerated(this.Privileged) + `,`, + `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "SELinuxOptions", 1) + `,`, + `RunAsUser:` + valueToStringGenerated(this.RunAsUser) + `,`, + `RunAsNonRoot:` + valueToStringGenerated(this.RunAsNonRoot) + `,`, + `ReadOnlyRootFilesystem:` + valueToStringGenerated(this.ReadOnlyRootFilesystem) + `,`, + `}`, + }, "") + return s +} +func (this *SerializedReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SerializedReference{`, + `Reference:` + strings.Replace(strings.Replace(this.Reference.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Service) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Service{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ServiceSpec", "ServiceSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ServiceStatus", "ServiceStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceAccount) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceAccount{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Secrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Secrets), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceAccountList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceAccountList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ServiceAccount", "ServiceAccount", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Service", "Service", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServicePort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServicePort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `TargetPort:` + strings.Replace(strings.Replace(this.TargetPort.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `NodePort:` + fmt.Sprintf("%v", this.NodePort) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceProxyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceProxyOptions{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceSpec) String() string { + if this == nil { + return "nil" + } + keysForSelector := make([]string, 0, len(this.Selector)) + for k := range this.Selector { + keysForSelector = append(keysForSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) + mapStringForSelector := "map[string]string{" + for _, k := range keysForSelector { + mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) + } + mapStringForSelector += "}" + s := strings.Join([]string{`&ServiceSpec{`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "ServicePort", "ServicePort", 1), `&`, ``, 1) + `,`, + `Selector:` + mapStringForSelector + `,`, + `ClusterIP:` + fmt.Sprintf("%v", this.ClusterIP) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `ExternalIPs:` + fmt.Sprintf("%v", this.ExternalIPs) + `,`, + `DeprecatedPublicIPs:` + fmt.Sprintf("%v", this.DeprecatedPublicIPs) + `,`, + `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 +} +func (this *ServiceStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceStatus{`, + `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "LoadBalancerStatus", "LoadBalancerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TCPSocketAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TCPSocketAction{`, + `Port:` + strings.Replace(strings.Replace(this.Port.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Taint) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Taint{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, + `}`, + }, "") + return s +} +func (this *Toleration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Toleration{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, + `}`, + }, "") + return s +} +func (this *Volume) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Volume{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `VolumeSource:` + strings.Replace(strings.Replace(this.VolumeSource.String(), "VolumeSource", "VolumeSource", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VolumeMount) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VolumeMount{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `MountPath:` + fmt.Sprintf("%v", this.MountPath) + `,`, + `SubPath:` + fmt.Sprintf("%v", this.SubPath) + `,`, + `}`, + }, "") + return s +} +func (this *VolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VolumeSource{`, + `HostPath:` + strings.Replace(fmt.Sprintf("%v", this.HostPath), "HostPathVolumeSource", "HostPathVolumeSource", 1) + `,`, + `EmptyDir:` + strings.Replace(fmt.Sprintf("%v", this.EmptyDir), "EmptyDirVolumeSource", "EmptyDirVolumeSource", 1) + `,`, + `GCEPersistentDisk:` + strings.Replace(fmt.Sprintf("%v", this.GCEPersistentDisk), "GCEPersistentDiskVolumeSource", "GCEPersistentDiskVolumeSource", 1) + `,`, + `AWSElasticBlockStore:` + strings.Replace(fmt.Sprintf("%v", this.AWSElasticBlockStore), "AWSElasticBlockStoreVolumeSource", "AWSElasticBlockStoreVolumeSource", 1) + `,`, + `GitRepo:` + strings.Replace(fmt.Sprintf("%v", this.GitRepo), "GitRepoVolumeSource", "GitRepoVolumeSource", 1) + `,`, + `Secret:` + strings.Replace(fmt.Sprintf("%v", this.Secret), "SecretVolumeSource", "SecretVolumeSource", 1) + `,`, + `NFS:` + strings.Replace(fmt.Sprintf("%v", this.NFS), "NFSVolumeSource", "NFSVolumeSource", 1) + `,`, + `ISCSI:` + strings.Replace(fmt.Sprintf("%v", this.ISCSI), "ISCSIVolumeSource", "ISCSIVolumeSource", 1) + `,`, + `Glusterfs:` + strings.Replace(fmt.Sprintf("%v", this.Glusterfs), "GlusterfsVolumeSource", "GlusterfsVolumeSource", 1) + `,`, + `PersistentVolumeClaim:` + strings.Replace(fmt.Sprintf("%v", this.PersistentVolumeClaim), "PersistentVolumeClaimVolumeSource", "PersistentVolumeClaimVolumeSource", 1) + `,`, + `RBD:` + strings.Replace(fmt.Sprintf("%v", this.RBD), "RBDVolumeSource", "RBDVolumeSource", 1) + `,`, + `FlexVolume:` + strings.Replace(fmt.Sprintf("%v", this.FlexVolume), "FlexVolumeSource", "FlexVolumeSource", 1) + `,`, + `Cinder:` + strings.Replace(fmt.Sprintf("%v", this.Cinder), "CinderVolumeSource", "CinderVolumeSource", 1) + `,`, + `CephFS:` + strings.Replace(fmt.Sprintf("%v", this.CephFS), "CephFSVolumeSource", "CephFSVolumeSource", 1) + `,`, + `Flocker:` + strings.Replace(fmt.Sprintf("%v", this.Flocker), "FlockerVolumeSource", "FlockerVolumeSource", 1) + `,`, + `DownwardAPI:` + strings.Replace(fmt.Sprintf("%v", this.DownwardAPI), "DownwardAPIVolumeSource", "DownwardAPIVolumeSource", 1) + `,`, + `FC:` + strings.Replace(fmt.Sprintf("%v", this.FC), "FCVolumeSource", "FCVolumeSource", 1) + `,`, + `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 +} +func (this *VsphereVirtualDiskVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VsphereVirtualDiskVolumeSource{`, + `VolumePath:` + fmt.Sprintf("%v", this.VolumePath) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `}`, + }, "") + return s +} +func (this *WeightedPodAffinityTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WeightedPodAffinityTerm{`, + `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, + `PodAffinityTerm:` + strings.Replace(strings.Replace(this.PodAffinityTerm.String(), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + 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 *AWSElasticBlockStoreVolumeSource) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -10685,7 +13322,7 @@ func (m *AttachedVolume) Unmarshal(data []byte) error { } return nil } -func (m *AzureFileVolumeSource) Unmarshal(data []byte) error { +func (m *AvoidPods) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -10708,15 +13345,96 @@ func (m *AzureFileVolumeSource) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AzureFileVolumeSource: wiretype end group for non-group") + return fmt.Errorf("proto: AvoidPods: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AzureFileVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AvoidPods: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PreferAvoidPods", 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.PreferAvoidPods = append(m.PreferAvoidPods, PreferAvoidPodsEntry{}) + if err := m.PreferAvoidPods[len(m.PreferAvoidPods)-1].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 *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 { @@ -10741,11 +13459,11 @@ func (m *AzureFileVolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SecretName = string(data[iNdEx:postIndex]) + m.DiskName = string(data[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShareName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DataDiskURI", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10770,9 +13488,69 @@ func (m *AzureFileVolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ShareName = string(data[iNdEx:postIndex]) + 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) } @@ -10791,7 +13569,136 @@ func (m *AzureFileVolumeSource) Unmarshal(data []byte) error { break } } - m.ReadOnly = bool(v != 0) + 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 + 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: AzureFileVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AzureFileVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", 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.SecretName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShareName", 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.ShareName = 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) default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -12267,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:]) @@ -14283,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:]) @@ -14364,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:]) @@ -14584,6 +17551,36 @@ func (m *EndpointAddress) Unmarshal(data []byte) error { } m.Hostname = string(data[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", 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.NodeName = &s + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -17851,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:]) @@ -22915,59 +25932,88 @@ func (m *ObjectMeta) Unmarshal(data []byte) error { } m.Finalizers = append(m.Finalizers, 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 *ObjectReference) 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: ObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + 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:]) + 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 *ObjectReference) 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: ObjectReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24863,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:]) @@ -26972,7 +30084,7 @@ func (m *PodSecurityContext) Unmarshal(data []byte) error { } return nil } -func (m *PodSpec) Unmarshal(data []byte) error { +func (m *PodSignature) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -26995,15 +30107,15 @@ func (m *PodSpec) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PodSpec: wiretype end group for non-group") + return fmt.Errorf("proto: PodSignature: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PodSpec: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PodSignature: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PodController", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27027,14 +30139,66 @@ func (m *PodSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Volumes = append(m.Volumes, Volume{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if m.PodController == nil { + m.PodController = &OwnerReference{} + } + if err := m.PodController.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + 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 *PodSpec) 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: PodSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodSpec: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27058,16 +30222,16 @@ func (m *PodSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Containers = append(m.Containers, Container{}) - if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + m.Volumes = append(m.Volumes, Volume{}) + if err := m.Volumes[len(m.Volumes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -27077,64 +30241,95 @@ func (m *PodSpec) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.RestartPolicy = RestartPolicy(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationGracePeriodSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.TerminationGracePeriodSeconds = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } + m.Containers = append(m.Containers, Container{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err } - m.ActiveDeadlineSeconds = &v - case 6: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DNSPolicy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", 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.RestartPolicy = RestartPolicy(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminationGracePeriodSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TerminationGracePeriodSeconds = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveDeadlineSeconds = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNSPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28316,17 +31511,364 @@ func (m *Preconditions) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Preconditions: wiretype end group for non-group") + return fmt.Errorf("proto: Preconditions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Preconditions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", 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 := k8s_io_kubernetes_pkg_types.UID(data[iNdEx:postIndex]) + m.UID = &s + 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 *PreferAvoidPodsEntry) 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: PreferAvoidPodsEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PreferAvoidPodsEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSignature", 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.PodSignature.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvictionTime", 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.EvictionTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = 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 *PreferredSchedulingTerm) 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: PreferredSchedulingTerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PreferredSchedulingTerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Weight |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Preference", 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.Preference.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 *Probe) 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: Probe: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Preconditions: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Probe: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Handler", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28336,77 +31878,65 @@ func (m *Preconditions) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - s := k8s_io_kubernetes_pkg_types.UID(data[iNdEx:postIndex]) - m.UID = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(data[iNdEx:]) - if err != nil { + if err := m.Handler.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialDelaySeconds", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PreferredSchedulingTerm) 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 + m.InitialDelaySeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.InitialDelaySeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.TimeoutSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.TimeoutSeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PreferredSchedulingTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PreferredSchedulingTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PeriodSeconds", wireType) } - m.Weight = 0 + m.PeriodSeconds = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28416,16 +31946,16 @@ func (m *PreferredSchedulingTerm) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - m.Weight |= (int32(b) & 0x7F) << shift + m.PeriodSeconds |= (int32(b) & 0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Preference", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuccessThreshold", wireType) } - var msglen int + m.SuccessThreshold = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28435,22 +31965,30 @@ func (m *PreferredSchedulingTerm) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + m.SuccessThreshold |= (int32(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailureThreshold", wireType) } - if err := m.Preference.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err + m.FailureThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.FailureThreshold |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -28472,7 +32010,7 @@ func (m *PreferredSchedulingTerm) Unmarshal(data []byte) error { } return nil } -func (m *Probe) Unmarshal(data []byte) error { +func (m *QuobyteVolumeSource) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -28495,17 +32033,17 @@ func (m *Probe) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Probe: wiretype end group for non-group") + return fmt.Errorf("proto: QuobyteVolumeSource: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Probe: illegal tag %d (wire type %d)", fieldNum, wire) + 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 Handler", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Registry", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28515,27 +32053,26 @@ func (m *Probe) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Handler.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } + m.Registry = string(data[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitialDelaySeconds", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) } - m.InitialDelaySeconds = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28545,16 +32082,26 @@ func (m *Probe) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - m.InitialDelaySeconds |= (int32(b) & 0x7F) << shift + 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 TimeoutSeconds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) } - m.TimeoutSeconds = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28564,16 +32111,17 @@ func (m *Probe) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - m.TimeoutSeconds |= (int32(b) & 0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + m.ReadOnly = bool(v != 0) case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PeriodSeconds", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) } - m.PeriodSeconds = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28583,16 +32131,26 @@ func (m *Probe) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - m.PeriodSeconds |= (int32(b) & 0x7F) << shift + 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 != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuccessThreshold", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) } - m.SuccessThreshold = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -28602,30 +32160,21 @@ func (m *Probe) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - m.SuccessThreshold |= (int32(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailureThreshold", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated } - m.FailureThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.FailureThreshold |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } + 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:]) @@ -29615,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:]) @@ -31591,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:]) @@ -33024,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:]) @@ -33961,181 +37578,247 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.GitRepo == nil { - m.GitRepo = &GitRepoVolumeSource{} - } - if err := m.GitRepo.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", 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.Secret == nil { - m.Secret = &SecretVolumeSource{} - } - if err := m.Secret.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NFS", 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.NFS == nil { - m.NFS = &NFSVolumeSource{} - } - if err := m.NFS.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ISCSI", 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.ISCSI == nil { - m.ISCSI = &ISCSIVolumeSource{} - } - if err := m.ISCSI.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Glusterfs", 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.Glusterfs == nil { - m.Glusterfs = &GlusterfsVolumeSource{} - } - if err := m.Glusterfs.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaim", 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.PersistentVolumeClaim == nil { - m.PersistentVolumeClaim = &PersistentVolumeClaimVolumeSource{} + if m.GitRepo == nil { + m.GitRepo = &GitRepoVolumeSource{} + } + if err := m.GitRepo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Secret", 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.Secret == nil { + m.Secret = &SecretVolumeSource{} + } + if err := m.Secret.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NFS", 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.NFS == nil { + m.NFS = &NFSVolumeSource{} + } + if err := m.NFS.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ISCSI", 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.ISCSI == nil { + m.ISCSI = &ISCSIVolumeSource{} + } + if err := m.ISCSI.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Glusterfs", 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.Glusterfs == nil { + m.Glusterfs = &GlusterfsVolumeSource{} + } + if err := m.Glusterfs.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaim", 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.PersistentVolumeClaim == nil { + m.PersistentVolumeClaim = &PersistentVolumeClaimVolumeSource{} + } + if err := m.PersistentVolumeClaim.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RBD", 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.RBD == nil { + m.RBD = &RBDVolumeSource{} + } + if err := m.RBD.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlexVolume", 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.FlexVolume == nil { + m.FlexVolume = &FlexVolumeSource{} } - if err := m.PersistentVolumeClaim.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.FlexVolume.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 11: + case 13: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBD", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cinder", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34159,16 +37842,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RBD == nil { - m.RBD = &RBDVolumeSource{} + if m.Cinder == nil { + m.Cinder = &CinderVolumeSource{} } - if err := m.RBD.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Cinder.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 12: + case 14: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FlexVolume", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CephFS", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34192,16 +37875,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.FlexVolume == nil { - m.FlexVolume = &FlexVolumeSource{} + if m.CephFS == nil { + m.CephFS = &CephFSVolumeSource{} } - if err := m.FlexVolume.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.CephFS.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 13: + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cinder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Flocker", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34225,16 +37908,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cinder == nil { - m.Cinder = &CinderVolumeSource{} + if m.Flocker == nil { + m.Flocker = &FlockerVolumeSource{} } - if err := m.Cinder.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Flocker.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 14: + case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CephFS", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DownwardAPI", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34258,16 +37941,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CephFS == nil { - m.CephFS = &CephFSVolumeSource{} + if m.DownwardAPI == nil { + m.DownwardAPI = &DownwardAPIVolumeSource{} } - if err := m.CephFS.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.DownwardAPI.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 15: + case 17: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Flocker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FC", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34291,16 +37974,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Flocker == nil { - m.Flocker = &FlockerVolumeSource{} + if m.FC == nil { + m.FC = &FCVolumeSource{} } - if err := m.Flocker.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.FC.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 16: + case 18: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DownwardAPI", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34324,16 +38007,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DownwardAPI == nil { - m.DownwardAPI = &DownwardAPIVolumeSource{} + if m.AzureFile == nil { + m.AzureFile = &AzureFileVolumeSource{} } - if err := m.DownwardAPI.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AzureFile.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 17: + case 19: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FC", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34357,16 +38040,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.FC == nil { - m.FC = &FCVolumeSource{} + if m.ConfigMap == nil { + m.ConfigMap = &ConfigMapVolumeSource{} } - if err := m.FC.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ConfigMap.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 18: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VsphereVolume", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34390,16 +38073,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AzureFile == nil { - m.AzureFile = &AzureFileVolumeSource{} + if m.VsphereVolume == nil { + m.VsphereVolume = &VsphereVirtualDiskVolumeSource{} } - if err := m.AzureFile.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.VsphereVolume.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 19: + case 21: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Quobyte", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34423,16 +38106,16 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ConfigMap == nil { - m.ConfigMap = &ConfigMapVolumeSource{} + if m.Quobyte == nil { + m.Quobyte = &QuobyteVolumeSource{} } - if err := m.ConfigMap.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Quobyte.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 20: + case 22: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VsphereVolume", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34456,10 +38139,10 @@ func (m *VolumeSource) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.VsphereVolume == nil { - m.VsphereVolume = &VsphereVirtualDiskVolumeSource{} + if m.AzureDisk == nil { + m.AzureDisk = &AzureDiskVolumeSource{} } - if err := m.VsphereVolume.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AzureDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -34795,3 +38478,617 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 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/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.proto index 060b6cac42..32fb099f6d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/generated.proto @@ -80,6 +80,36 @@ message AttachedVolume { optional string devicePath = 2; } +// AvoidPods describes pods that should avoid this node. This is the value for a +// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +// will eventually become a field of NodeStatus. +message AvoidPods { + // Bounded-sized list of signatures of pods that should avoid this node, sorted + // in timestamp order from oldest to newest. Size of the slice is unspecified. + 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 @@ -247,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. @@ -517,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. @@ -524,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. @@ -549,6 +599,9 @@ message EndpointAddress { // The Hostname of this endpoint optional string hostname = 3; + // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + optional string nodeName = 4; + // Reference to object providing the endpoint. optional ObjectReference targetRef = 2; } @@ -651,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 @@ -951,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 @@ -1292,6 +1352,7 @@ message NodeStatus { // NodePhase is the recently observed lifecycle phase of the node. // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase + // The field is never populated, and now is deprecated. optional string phase = 3; // Conditions is an array of current observed node conditions. @@ -1466,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 @@ -1486,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. @@ -1710,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. @@ -2040,6 +2111,13 @@ message PodSecurityContext { optional int64 fsGroup = 5; } +// Describes the class of pods that should avoid this node. +// Exactly one field should be set. +message PodSignature { + // Reference to controller whose pods should avoid this node. + optional OwnerReference podController = 1; +} + // PodSpec is a description of a pod. message PodSpec { // List of volumes that can be mounted by containers belonging to the pod. @@ -2219,6 +2297,21 @@ message Preconditions { optional string uid = 1; } +// Describes a class of pods that should avoid this node. +message PreferAvoidPodsEntry { + // The class of pods. + optional PodSignature podSignature = 1; + + // Time at which this entry was added to the list. + optional k8s.io.kubernetes.pkg.api.unversioned.Time evictionTime = 2; + + // (brief) reason why this entry was added to the list. + optional string reason = 3; + + // Human readable message indicating why this entry was added to the list. + optional string message = 4; +} + // An empty preferred scheduling term matches all objects with implicit weight 0 // (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). message PreferredSchedulingTerm { @@ -2257,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 { @@ -2376,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; } @@ -2442,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; } @@ -2530,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. @@ -2685,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 @@ -2741,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. @@ -2910,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/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/meta.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/meta.go index d5ba042a20..6f95cf7bc7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/meta.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/register.go index 8c625b8780..f02ea8297f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/register.go @@ -28,15 +28,13 @@ const GroupName = "" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"} -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) - addConversionFuncs(scheme) - addDefaultingFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs, addFastPathConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Pod{}, &PodList{}, @@ -91,4 +89,5 @@ func addKnownTypes(scheme *runtime.Scheme) { // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.generated.go index 93c45dadf2..6cd7fc6ba4 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/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 - yym1 := z.DecBinary() - _ = yym1 + yym52 := z.DecBinary() + _ = yym52 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct53 := r.ContainerType() + if yyct53 == codecSelferValueTypeMap1234 { + yyl53 := r.ReadMapStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl53, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct53 == codecSelferValueTypeArray1234 { + yyl53 := r.ReadArrayStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys54Slc = r.DecodeBytes(yys54Slc, true, true) + yys54 := string(yys54Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv11 := &x.CreationTimestamp - yym12 := z.DecBinary() - _ = yym12 + yyv62 := &x.CreationTimestamp + yym63 := z.DecBinary() + _ = yym63 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if yym12 { - z.DecBinaryUnmarshal(yyv11) - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv62) { + } else if yym63 { + z.DecBinaryUnmarshal(yyv62) + } else if !yym63 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv62) } else { - z.DecFallback(yyv11, 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) } - yym14 := z.DecBinary() - _ = yym14 + yym65 := z.DecBinary() + _ = yym65 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym14 { + } else if yym65 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym14 && 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) } - yym16 := z.DecBinary() - _ = yym16 + 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 { - yyv17 := &x.Labels - yym18 := z.DecBinary() - _ = yym18 + yyv68 := &x.Labels + yym69 := z.DecBinary() + _ = yym69 if false { } else { - z.F.DecMapStringStringX(yyv17, false, d) + z.F.DecMapStringStringX(yyv68, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv19 := &x.Annotations - yym20 := z.DecBinary() - _ = yym20 + yyv70 := &x.Annotations + yym71 := z.DecBinary() + _ = yym71 if false { } else { - z.F.DecMapStringStringX(yyv19, false, d) + z.F.DecMapStringStringX(yyv70, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv21 := &x.OwnerReferences - yym22 := z.DecBinary() - _ = yym22 + yyv72 := &x.OwnerReferences + yym73 := z.DecBinary() + _ = yym73 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv21), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv72), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv23 := &x.Finalizers - yym24 := z.DecBinary() - _ = yym24 + yyv74 := &x.Finalizers + yym75 := z.DecBinary() + _ = yym75 if false { } else { - z.F.DecSliceStringX(yyv23, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj25 int - var yyb25 bool - var yyhl25 bool = l >= 0 - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + var yyj77 int + var yyb77 bool + var yyhl77 bool = l >= 0 + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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()) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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)) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv33 := &x.CreationTimestamp - yym34 := z.DecBinary() - _ = yym34 + yyv85 := &x.CreationTimestamp + yym86 := z.DecBinary() + _ = yym86 if false { - } else if z.HasExtensions() && z.DecExt(yyv33) { - } else if yym34 { - z.DecBinaryUnmarshal(yyv33) - } else if !yym34 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv33) + } else if z.HasExtensions() && z.DecExt(yyv85) { + } else if yym86 { + z.DecBinaryUnmarshal(yyv85) + } else if !yym86 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv85) } else { - z.DecFallback(yyv33, false) + z.DecFallback(yyv85, false) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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) } - yym36 := z.DecBinary() - _ = yym36 + yym88 := z.DecBinary() + _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym36 { + } else if yym88 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym36 && z.IsJSONHandle() { + } else if !yym88 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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) } - yym38 := z.DecBinary() - _ = yym38 + yym90 := z.DecBinary() + _ = yym90 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv39 := &x.Labels - yym40 := z.DecBinary() - _ = yym40 + yyv91 := &x.Labels + yym92 := z.DecBinary() + _ = yym92 if false { } else { - z.F.DecMapStringStringX(yyv39, false, d) + z.F.DecMapStringStringX(yyv91, false, d) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv41 := &x.Annotations - yym42 := z.DecBinary() - _ = yym42 + yyv93 := &x.Annotations + yym94 := z.DecBinary() + _ = yym94 if false { } else { - z.F.DecMapStringStringX(yyv41, false, d) + z.F.DecMapStringStringX(yyv93, false, d) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv43 := &x.OwnerReferences - yym44 := z.DecBinary() - _ = yym44 + yyv95 := &x.OwnerReferences + yym96 := z.DecBinary() + _ = yym96 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv43), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv95), d) } } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + 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 { - yyv45 := &x.Finalizers - yym46 := z.DecBinary() - _ = yym46 + yyv97 := &x.Finalizers + yym98 := z.DecBinary() + _ = yym98 if false { } else { - z.F.DecSliceStringX(yyv45, 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 { - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb25 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb25 { + if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj25-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 { - yym1 := z.EncBinary() - _ = yym1 + yym100 := z.EncBinary() + _ = yym100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [21]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil - yyq2[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil - yyq2[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq2[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq2[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil - yyq2[6] = x.VolumeSource.Secret != nil && x.Secret != nil - yyq2[7] = x.VolumeSource.NFS != nil && x.NFS != nil - yyq2[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil - yyq2[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq2[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil - yyq2[11] = x.VolumeSource.RBD != nil && x.RBD != nil - yyq2[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq2[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil - yyq2[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil - yyq2[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil - yyq2[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil - yyq2[17] = x.VolumeSource.FC != nil && x.FC != nil - yyq2[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil - yyq2[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil - yyq2[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(21) - } else { - yynn2 = 1 - for _, b := range yyq2 { + 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 { + yynn101 = 1 + for _, b := range yyq101 { if b { - yynn2++ + yynn101++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn101) + yynn101 = 0 } - if yyr2 || yy2arr2 { + if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym103 := z.EncBinary() + _ = yym103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1124,25 +1174,25 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym104 := z.EncBinary() + _ = yym104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - var yyn6 bool + var yyn105 bool if x.VolumeSource.HostPath == nil { - yyn6 = true - goto LABEL6 + yyn105 = true + goto LABEL105 } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { + LABEL105: + if yyr101 || yy2arr101 { + if yyn105 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq101[1] { if x.HostPath == nil { r.EncodeNil() } else { @@ -1153,11 +1203,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[1] { + if yyq101[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn6 { + if yyn105 { r.EncodeNil() } else { if x.HostPath == nil { @@ -1168,18 +1218,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn9 bool + var yyn106 bool if x.VolumeSource.EmptyDir == nil { - yyn9 = true - goto LABEL9 + yyn106 = true + goto LABEL106 } - LABEL9: - if yyr2 || yy2arr2 { - if yyn9 { + LABEL106: + if yyr101 || yy2arr101 { + if yyn106 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq101[2] { if x.EmptyDir == nil { r.EncodeNil() } else { @@ -1190,11 +1240,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[2] { + if yyq101[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn9 { + if yyn106 { r.EncodeNil() } else { if x.EmptyDir == nil { @@ -1205,18 +1255,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn12 bool + var yyn107 bool if x.VolumeSource.GCEPersistentDisk == nil { - yyn12 = true - goto LABEL12 + yyn107 = true + goto LABEL107 } - LABEL12: - if yyr2 || yy2arr2 { - if yyn12 { + LABEL107: + if yyr101 || yy2arr101 { + if yyn107 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq101[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -1227,11 +1277,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[3] { + if yyq101[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn12 { + if yyn107 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { @@ -1242,18 +1292,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn15 bool + var yyn108 bool if x.VolumeSource.AWSElasticBlockStore == nil { - yyn15 = true - goto LABEL15 + yyn108 = true + goto LABEL108 } - LABEL15: - if yyr2 || yy2arr2 { - if yyn15 { + LABEL108: + if yyr101 || yy2arr101 { + if yyn108 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq101[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -1264,11 +1314,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[4] { + if yyq101[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn15 { + if yyn108 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { @@ -1279,18 +1329,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn18 bool + var yyn109 bool if x.VolumeSource.GitRepo == nil { - yyn18 = true - goto LABEL18 + yyn109 = true + goto LABEL109 } - LABEL18: - if yyr2 || yy2arr2 { - if yyn18 { + LABEL109: + if yyr101 || yy2arr101 { + if yyn109 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq101[5] { if x.GitRepo == nil { r.EncodeNil() } else { @@ -1301,11 +1351,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[5] { + if yyq101[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn18 { + if yyn109 { r.EncodeNil() } else { if x.GitRepo == nil { @@ -1316,18 +1366,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn21 bool + var yyn110 bool if x.VolumeSource.Secret == nil { - yyn21 = true - goto LABEL21 + yyn110 = true + goto LABEL110 } - LABEL21: - if yyr2 || yy2arr2 { - if yyn21 { + LABEL110: + if yyr101 || yy2arr101 { + if yyn110 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq101[6] { if x.Secret == nil { r.EncodeNil() } else { @@ -1338,11 +1388,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[6] { + if yyq101[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn21 { + if yyn110 { r.EncodeNil() } else { if x.Secret == nil { @@ -1353,18 +1403,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn24 bool + var yyn111 bool if x.VolumeSource.NFS == nil { - yyn24 = true - goto LABEL24 + yyn111 = true + goto LABEL111 } - LABEL24: - if yyr2 || yy2arr2 { - if yyn24 { + LABEL111: + if yyr101 || yy2arr101 { + if yyn111 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq101[7] { if x.NFS == nil { r.EncodeNil() } else { @@ -1375,11 +1425,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[7] { + if yyq101[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn24 { + if yyn111 { r.EncodeNil() } else { if x.NFS == nil { @@ -1390,18 +1440,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn27 bool + var yyn112 bool if x.VolumeSource.ISCSI == nil { - yyn27 = true - goto LABEL27 + yyn112 = true + goto LABEL112 } - LABEL27: - if yyr2 || yy2arr2 { - if yyn27 { + LABEL112: + if yyr101 || yy2arr101 { + if yyn112 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq101[8] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -1412,11 +1462,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[8] { + if yyq101[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn27 { + if yyn112 { r.EncodeNil() } else { if x.ISCSI == nil { @@ -1427,18 +1477,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn30 bool + var yyn113 bool if x.VolumeSource.Glusterfs == nil { - yyn30 = true - goto LABEL30 + yyn113 = true + goto LABEL113 } - LABEL30: - if yyr2 || yy2arr2 { - if yyn30 { + LABEL113: + if yyr101 || yy2arr101 { + if yyn113 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { + if yyq101[9] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -1449,11 +1499,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[9] { + if yyq101[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn30 { + if yyn113 { r.EncodeNil() } else { if x.Glusterfs == nil { @@ -1464,18 +1514,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn33 bool + var yyn114 bool if x.VolumeSource.PersistentVolumeClaim == nil { - yyn33 = true - goto LABEL33 + yyn114 = true + goto LABEL114 } - LABEL33: - if yyr2 || yy2arr2 { - if yyn33 { + LABEL114: + if yyr101 || yy2arr101 { + if yyn114 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { + if yyq101[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { @@ -1486,11 +1536,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[10] { + if yyq101[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn33 { + if yyn114 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { @@ -1501,18 +1551,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn36 bool + var yyn115 bool if x.VolumeSource.RBD == nil { - yyn36 = true - goto LABEL36 + yyn115 = true + goto LABEL115 } - LABEL36: - if yyr2 || yy2arr2 { - if yyn36 { + LABEL115: + if yyr101 || yy2arr101 { + if yyn115 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { + if yyq101[11] { if x.RBD == nil { r.EncodeNil() } else { @@ -1523,11 +1573,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[11] { + if yyq101[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn36 { + if yyn115 { r.EncodeNil() } else { if x.RBD == nil { @@ -1538,18 +1588,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn39 bool + var yyn116 bool if x.VolumeSource.FlexVolume == nil { - yyn39 = true - goto LABEL39 + yyn116 = true + goto LABEL116 } - LABEL39: - if yyr2 || yy2arr2 { - if yyn39 { + LABEL116: + if yyr101 || yy2arr101 { + if yyn116 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { + if yyq101[12] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -1560,11 +1610,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[12] { + if yyq101[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn39 { + if yyn116 { r.EncodeNil() } else { if x.FlexVolume == nil { @@ -1575,18 +1625,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn42 bool + var yyn117 bool if x.VolumeSource.Cinder == nil { - yyn42 = true - goto LABEL42 + yyn117 = true + goto LABEL117 } - LABEL42: - if yyr2 || yy2arr2 { - if yyn42 { + LABEL117: + if yyr101 || yy2arr101 { + if yyn117 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { + if yyq101[13] { if x.Cinder == nil { r.EncodeNil() } else { @@ -1597,11 +1647,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[13] { + if yyq101[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn42 { + if yyn117 { r.EncodeNil() } else { if x.Cinder == nil { @@ -1612,18 +1662,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn45 bool + var yyn118 bool if x.VolumeSource.CephFS == nil { - yyn45 = true - goto LABEL45 + yyn118 = true + goto LABEL118 } - LABEL45: - if yyr2 || yy2arr2 { - if yyn45 { + LABEL118: + if yyr101 || yy2arr101 { + if yyn118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { + if yyq101[14] { if x.CephFS == nil { r.EncodeNil() } else { @@ -1634,11 +1684,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[14] { + if yyq101[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn45 { + if yyn118 { r.EncodeNil() } else { if x.CephFS == nil { @@ -1649,18 +1699,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn48 bool + var yyn119 bool if x.VolumeSource.Flocker == nil { - yyn48 = true - goto LABEL48 + yyn119 = true + goto LABEL119 } - LABEL48: - if yyr2 || yy2arr2 { - if yyn48 { + LABEL119: + if yyr101 || yy2arr101 { + if yyn119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { + if yyq101[15] { if x.Flocker == nil { r.EncodeNil() } else { @@ -1671,11 +1721,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[15] { + if yyq101[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn48 { + if yyn119 { r.EncodeNil() } else { if x.Flocker == nil { @@ -1686,18 +1736,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn51 bool + var yyn120 bool if x.VolumeSource.DownwardAPI == nil { - yyn51 = true - goto LABEL51 + yyn120 = true + goto LABEL120 } - LABEL51: - if yyr2 || yy2arr2 { - if yyn51 { + LABEL120: + if yyr101 || yy2arr101 { + if yyn120 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { + if yyq101[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { @@ -1708,11 +1758,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[16] { + if yyq101[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn51 { + if yyn120 { r.EncodeNil() } else { if x.DownwardAPI == nil { @@ -1723,18 +1773,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn54 bool + var yyn121 bool if x.VolumeSource.FC == nil { - yyn54 = true - goto LABEL54 + yyn121 = true + goto LABEL121 } - LABEL54: - if yyr2 || yy2arr2 { - if yyn54 { + LABEL121: + if yyr101 || yy2arr101 { + if yyn121 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { + if yyq101[17] { if x.FC == nil { r.EncodeNil() } else { @@ -1745,11 +1795,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[17] { + if yyq101[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn54 { + if yyn121 { r.EncodeNil() } else { if x.FC == nil { @@ -1760,18 +1810,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn57 bool + var yyn122 bool if x.VolumeSource.AzureFile == nil { - yyn57 = true - goto LABEL57 + yyn122 = true + goto LABEL122 } - LABEL57: - if yyr2 || yy2arr2 { - if yyn57 { + LABEL122: + if yyr101 || yy2arr101 { + if yyn122 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[18] { + if yyq101[18] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -1782,11 +1832,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[18] { + if yyq101[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn57 { + if yyn122 { r.EncodeNil() } else { if x.AzureFile == nil { @@ -1797,18 +1847,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn60 bool + var yyn123 bool if x.VolumeSource.ConfigMap == nil { - yyn60 = true - goto LABEL60 + yyn123 = true + goto LABEL123 } - LABEL60: - if yyr2 || yy2arr2 { - if yyn60 { + LABEL123: + if yyr101 || yy2arr101 { + if yyn123 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[19] { + if yyq101[19] { if x.ConfigMap == nil { r.EncodeNil() } else { @@ -1819,11 +1869,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[19] { + if yyq101[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn60 { + if yyn123 { r.EncodeNil() } else { if x.ConfigMap == nil { @@ -1834,18 +1884,18 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn63 bool + var yyn124 bool if x.VolumeSource.VsphereVolume == nil { - yyn63 = true - goto LABEL63 + yyn124 = true + goto LABEL124 } - LABEL63: - if yyr2 || yy2arr2 { - if yyn63 { + LABEL124: + if yyr101 || yy2arr101 { + if yyn124 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[20] { + if yyq101[20] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -1856,11 +1906,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[20] { + if yyq101[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn63 { + if yyn124 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -1871,7 +1921,81 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym127 := z.DecBinary() + _ = yym127 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct128 := r.ContainerType() + if yyct128 == codecSelferValueTypeMap1234 { + yyl128 := r.ReadMapStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl128, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct128 == codecSelferValueTypeArray1234 { + yyl128 := r.ReadArrayStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys129Slc = r.DecodeBytes(yys129Slc, true, true) + yys129 := string(yys129Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj25 int - var yyb25 bool - var yyhl25 bool = l >= 0 - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + var yyj153 int + var yyb153 bool + var yyhl153 bool = l >= 0 + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + 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) } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2728,18 +2880,66 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.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.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 { - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb25 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb25 { + if yyb153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj25-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 { - yym1 := z.EncBinary() - _ = yym1 + yym177 := z.EncBinary() + _ = yym177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [20]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.HostPath != nil - yyq2[1] = x.EmptyDir != nil - yyq2[2] = x.GCEPersistentDisk != nil - yyq2[3] = x.AWSElasticBlockStore != nil - yyq2[4] = x.GitRepo != nil - yyq2[5] = x.Secret != nil - yyq2[6] = x.NFS != nil - yyq2[7] = x.ISCSI != nil - yyq2[8] = x.Glusterfs != nil - yyq2[9] = x.PersistentVolumeClaim != nil - yyq2[10] = x.RBD != nil - yyq2[11] = x.FlexVolume != nil - yyq2[12] = x.Cinder != nil - yyq2[13] = x.CephFS != nil - yyq2[14] = x.Flocker != nil - yyq2[15] = x.DownwardAPI != nil - yyq2[16] = x.FC != nil - yyq2[17] = x.AzureFile != nil - yyq2[18] = x.ConfigMap != nil - yyq2[19] = x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(20) - } else { - yynn2 = 0 - for _, b := range yyq2 { + 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 { + yynn178 = 0 + for _, b := range yyq178 { if b { - yynn2++ + yynn178++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn178) + yynn178 = 0 } - if yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym201 := z.DecBinary() + _ = yym201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct202 := r.ContainerType() + if yyct202 == codecSelferValueTypeMap1234 { + yyl202 := r.ReadMapStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl202, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct202 == codecSelferValueTypeArray1234 { + yyl202 := r.ReadArrayStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys203Slc = r.DecodeBytes(yys203Slc, true, true) + yys203 := string(yys203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj24 int - var yyb24 bool - var yyhl24 bool = l >= 0 - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + var yyj226 int + var yyb226 bool + var yyhl226 bool = l >= 0 + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3570,13 +3840,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HostPath.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3591,13 +3861,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.EmptyDir.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3612,13 +3882,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3633,13 +3903,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3654,13 +3924,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GitRepo.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3675,13 +3945,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Secret.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3696,13 +3966,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NFS.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3717,13 +3987,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ISCSI.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3738,13 +4008,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Glusterfs.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3759,13 +4029,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PersistentVolumeClaim.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3780,13 +4050,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3801,13 +4071,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FlexVolume.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3822,13 +4092,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Cinder.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3843,13 +4113,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.CephFS.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3864,13 +4134,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Flocker.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3885,13 +4155,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.DownwardAPI.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3906,13 +4176,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FC.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3927,13 +4197,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureFile.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3948,13 +4218,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMap.CodecDecodeSelf(d) } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3969,18 +4239,60 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.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.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 + } + 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 { - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb24 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb24 { + if yyb226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj24-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 { - yym1 := z.EncBinary() - _ = yym1 + yym249 := z.EncBinary() + _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn250 = 1 + for _, b := range yyq250 { if b { - yynn2++ + yynn250++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn250) + yynn250 = 0 } - if yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym253 := z.EncBinary() + _ = yym253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } - if yyr2 || yy2arr2 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq250[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym256 := z.EncBinary() + _ = yym256 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym257 := z.DecBinary() + _ = yym257 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct258 := r.ContainerType() + if yyct258 == codecSelferValueTypeMap1234 { + yyl258 := r.ReadMapStart() + if yyl258 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl258, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct258 == codecSelferValueTypeArray1234 { + yyl258 := r.ReadArrayStart() + if yyl258 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys259Slc = r.DecodeBytes(yys259Slc, true, true) + yys259 := string(yys259Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj262 int + var yyb262 bool + var yyhl262 bool = l >= 0 + yyj262++ + if yyhl262 { + yyb262 = yyj262 > l } else { - yyb6 = r.CheckBreak() + yyb262 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj262++ + if yyhl262 { + yyb262 = yyj262 > l } else { - yyb6 = r.CheckBreak() + yyb262 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj262++ + if yyhl262 { + yyb262 = yyj262 > l } else { - yyb6 = r.CheckBreak() + yyb262 = r.CheckBreak() } - if yyb6 { + if yyb262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym265 := z.EncBinary() + _ = yym265 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.GCEPersistentDisk != nil - yyq2[1] = x.AWSElasticBlockStore != nil - yyq2[2] = x.HostPath != nil - yyq2[3] = x.Glusterfs != nil - yyq2[4] = x.NFS != nil - yyq2[5] = x.RBD != nil - yyq2[6] = x.ISCSI != nil - yyq2[7] = x.Cinder != nil - yyq2[8] = x.CephFS != nil - yyq2[9] = x.FC != nil - yyq2[10] = x.Flocker != nil - yyq2[11] = x.FlexVolume != nil - yyq2[12] = x.AzureFile != nil - yyq2[13] = x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(14) - } else { - yynn2 = 0 - for _, b := range yyq2 { + 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 { + yynn266 = 0 + for _, b := range yyq266 { if b { - yynn2++ + yynn266++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn266) + yynn266 = 0 } - if yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym283 := z.DecBinary() + _ = yym283 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct284 := r.ContainerType() + if yyct284 == codecSelferValueTypeMap1234 { + yyl284 := r.ReadMapStart() + if yyl284 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl284, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct284 == codecSelferValueTypeArray1234 { + yyl284 := r.ReadArrayStart() + if yyl284 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys285Slc = r.DecodeBytes(yys285Slc, true, true) + yys285 := string(yys285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + var yyj302 int + var yyb302 bool + var yyhl302 bool = l >= 0 + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4811,13 +5193,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4832,13 +5214,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4853,13 +5235,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.HostPath.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4874,13 +5256,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Glusterfs.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4895,13 +5277,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.NFS.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4916,13 +5298,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.RBD.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4937,13 +5319,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.ISCSI.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4958,13 +5340,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Cinder.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4979,13 +5361,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.CephFS.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5000,13 +5382,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FC.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5021,13 +5403,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Flocker.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5042,13 +5424,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FlexVolume.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5063,13 +5445,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureFile.CodecDecodeSelf(d) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5084,18 +5466,60 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.VsphereVolume.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.Quobyte != nil { + x.Quobyte = nil + } + } 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 { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb18 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb18 { + if yyb302 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-1, "") + z.DecStructFieldNotFound(yyj302-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5107,136 +5531,136 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym319 := z.EncBinary() + _ = yym319 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn320 = 0 + for _, b := range yyq320 { if b { - yynn2++ + yynn320++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn320) + yynn320 = 0 } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq320[0] { + yym322 := z.EncBinary() + _ = yym322 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq320[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym323 := z.EncBinary() + _ = yym323 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq320[1] { + yym325 := z.EncBinary() + _ = yym325 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq320[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym326 := z.EncBinary() + _ = yym326 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq320[2] { + yy328 := &x.ObjectMeta + yy328.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq320[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy329 := &x.ObjectMeta + yy329.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq320[3] { + yy331 := &x.Spec + yy331.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq320[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy332 := &x.Spec + yy332.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq320[4] { + yy334 := &x.Status + yy334.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq320[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy335 := &x.Status + yy335.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym336 := z.DecBinary() + _ = yym336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct337 := r.ContainerType() + if yyct337 == codecSelferValueTypeMap1234 { + yyl337 := r.ReadMapStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl337, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct337 == codecSelferValueTypeArray1234 { + yyl337 := r.ReadArrayStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +5717,47 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys338Slc = r.DecodeBytes(yys338Slc, true, true) + yys338 := string(yys338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys338 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PersistentVolumeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv341 := &x.ObjectMeta + yyv341.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv342 := &x.Spec + yyv342.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv343 := &x.Status + yyv343.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys338) + } // end switch yys338 + } // end for yyj338 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5341,104 +5765,104 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj344 int + var yyb344 bool + var yyhl344 bool = l >= 0 + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PersistentVolumeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv347 := &x.ObjectMeta + yyv347.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv348 := &x.Spec + yyv348.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv349 := &x.Status + yyv349.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb9 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb9 { + if yyb344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym350 := z.EncBinary() + _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Capacity) != 0 - yyq2[1] = len(x.AccessModes) != 0 - yyq2[2] = x.ClaimRef != nil - yyq2[3] = x.PersistentVolumeReclaimPolicy != "" - yyq2[4] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq2[5] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq2[6] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil - yyq2[7] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq2[8] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil - yyq2[9] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil - yyq2[10] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil - yyq2[11] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil - yyq2[12] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil - yyq2[13] = x.PersistentVolumeSource.FC != nil && x.FC != nil - yyq2[14] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil - yyq2[15] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq2[16] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil - yyq2[17] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn351 = 0 + for _, b := range yyq351 { if b { - yynn2++ + yynn351++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn351) + yynn351 = 0 } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[0] { + if yyq351[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -5514,89 +5940,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("accessModes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - if x.ClaimRef == nil { - r.EncodeNil() - } else { - x.ClaimRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("claimRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ClaimRef == nil { - r.EncodeNil() - } else { - x.ClaimRef.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) - } - } - var yyn15 bool + var yyn353 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn15 = true - goto LABEL15 + yyn353 = true + goto LABEL353 } - LABEL15: - if yyr2 || yy2arr2 { - if yyn15 { + LABEL353: + if yyr351 || yy2arr351 { + if yyn353 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq351[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -5607,11 +5962,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[4] { + if yyq351[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn15 { + if yyn353 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { @@ -5622,18 +5977,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn18 bool + var yyn354 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn18 = true - goto LABEL18 + yyn354 = true + goto LABEL354 } - LABEL18: - if yyr2 || yy2arr2 { - if yyn18 { + LABEL354: + if yyr351 || yy2arr351 { + if yyn354 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq351[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -5644,11 +5999,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[5] { + if yyq351[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn18 { + if yyn354 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { @@ -5659,18 +6014,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn21 bool + var yyn355 bool if x.PersistentVolumeSource.HostPath == nil { - yyn21 = true - goto LABEL21 + yyn355 = true + goto LABEL355 } - LABEL21: - if yyr2 || yy2arr2 { - if yyn21 { + LABEL355: + if yyr351 || yy2arr351 { + if yyn355 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq351[3] { if x.HostPath == nil { r.EncodeNil() } else { @@ -5681,11 +6036,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[6] { + if yyq351[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn21 { + if yyn355 { r.EncodeNil() } else { if x.HostPath == nil { @@ -5696,18 +6051,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn24 bool + var yyn356 bool if x.PersistentVolumeSource.Glusterfs == nil { - yyn24 = true - goto LABEL24 + yyn356 = true + goto LABEL356 } - LABEL24: - if yyr2 || yy2arr2 { - if yyn24 { + LABEL356: + if yyr351 || yy2arr351 { + if yyn356 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq351[4] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -5718,11 +6073,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[7] { + if yyq351[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn24 { + if yyn356 { r.EncodeNil() } else { if x.Glusterfs == nil { @@ -5733,18 +6088,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn27 bool + var yyn357 bool if x.PersistentVolumeSource.NFS == nil { - yyn27 = true - goto LABEL27 + yyn357 = true + goto LABEL357 } - LABEL27: - if yyr2 || yy2arr2 { - if yyn27 { + LABEL357: + if yyr351 || yy2arr351 { + if yyn357 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq351[5] { if x.NFS == nil { r.EncodeNil() } else { @@ -5755,11 +6110,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[8] { + if yyq351[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn27 { + if yyn357 { r.EncodeNil() } else { if x.NFS == nil { @@ -5770,18 +6125,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn30 bool + var yyn358 bool if x.PersistentVolumeSource.RBD == nil { - yyn30 = true - goto LABEL30 + yyn358 = true + goto LABEL358 } - LABEL30: - if yyr2 || yy2arr2 { - if yyn30 { + LABEL358: + if yyr351 || yy2arr351 { + if yyn358 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { + if yyq351[6] { if x.RBD == nil { r.EncodeNil() } else { @@ -5792,11 +6147,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[9] { + if yyq351[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn30 { + if yyn358 { r.EncodeNil() } else { if x.RBD == nil { @@ -5807,18 +6162,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn33 bool + var yyn359 bool if x.PersistentVolumeSource.ISCSI == nil { - yyn33 = true - goto LABEL33 + yyn359 = true + goto LABEL359 } - LABEL33: - if yyr2 || yy2arr2 { - if yyn33 { + LABEL359: + if yyr351 || yy2arr351 { + if yyn359 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { + if yyq351[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -5829,11 +6184,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[10] { + if yyq351[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn33 { + if yyn359 { r.EncodeNil() } else { if x.ISCSI == nil { @@ -5844,18 +6199,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn36 bool + var yyn360 bool if x.PersistentVolumeSource.Cinder == nil { - yyn36 = true - goto LABEL36 + yyn360 = true + goto LABEL360 } - LABEL36: - if yyr2 || yy2arr2 { - if yyn36 { + LABEL360: + if yyr351 || yy2arr351 { + if yyn360 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { + if yyq351[8] { if x.Cinder == nil { r.EncodeNil() } else { @@ -5866,11 +6221,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[11] { + if yyq351[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn36 { + if yyn360 { r.EncodeNil() } else { if x.Cinder == nil { @@ -5881,18 +6236,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn39 bool + var yyn361 bool if x.PersistentVolumeSource.CephFS == nil { - yyn39 = true - goto LABEL39 + yyn361 = true + goto LABEL361 } - LABEL39: - if yyr2 || yy2arr2 { - if yyn39 { + LABEL361: + if yyr351 || yy2arr351 { + if yyn361 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { + if yyq351[9] { if x.CephFS == nil { r.EncodeNil() } else { @@ -5903,11 +6258,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[12] { + if yyq351[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn39 { + if yyn361 { r.EncodeNil() } else { if x.CephFS == nil { @@ -5918,18 +6273,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn42 bool + var yyn362 bool if x.PersistentVolumeSource.FC == nil { - yyn42 = true - goto LABEL42 + yyn362 = true + goto LABEL362 } - LABEL42: - if yyr2 || yy2arr2 { - if yyn42 { + LABEL362: + if yyr351 || yy2arr351 { + if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { + if yyq351[10] { if x.FC == nil { r.EncodeNil() } else { @@ -5940,11 +6295,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[13] { + if yyq351[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn42 { + if yyn362 { r.EncodeNil() } else { if x.FC == nil { @@ -5955,18 +6310,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn45 bool + var yyn363 bool if x.PersistentVolumeSource.Flocker == nil { - yyn45 = true - goto LABEL45 + yyn363 = true + goto LABEL363 } - LABEL45: - if yyr2 || yy2arr2 { - if yyn45 { + LABEL363: + if yyr351 || yy2arr351 { + if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { + if yyq351[11] { if x.Flocker == nil { r.EncodeNil() } else { @@ -5977,11 +6332,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[14] { + if yyq351[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn45 { + if yyn363 { r.EncodeNil() } else { if x.Flocker == nil { @@ -5992,18 +6347,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn48 bool + var yyn364 bool if x.PersistentVolumeSource.FlexVolume == nil { - yyn48 = true - goto LABEL48 + yyn364 = true + goto LABEL364 } - LABEL48: - if yyr2 || yy2arr2 { - if yyn48 { + LABEL364: + if yyr351 || yy2arr351 { + if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { + if yyq351[12] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -6014,11 +6369,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[15] { + if yyq351[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn48 { + if yyn364 { r.EncodeNil() } else { if x.FlexVolume == nil { @@ -6029,18 +6384,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn51 bool + var yyn365 bool if x.PersistentVolumeSource.AzureFile == nil { - yyn51 = true - goto LABEL51 + yyn365 = true + goto LABEL365 } - LABEL51: - if yyr2 || yy2arr2 { - if yyn51 { + LABEL365: + if yyr351 || yy2arr351 { + if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { + if yyq351[13] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -6051,11 +6406,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[16] { + if yyq351[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn51 { + if yyn365 { r.EncodeNil() } else { if x.AzureFile == nil { @@ -6066,18 +6421,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn54 bool + var yyn366 bool if x.PersistentVolumeSource.VsphereVolume == nil { - yyn54 = true - goto LABEL54 + yyn366 = true + goto LABEL366 } - LABEL54: - if yyr2 || yy2arr2 { - if yyn54 { + LABEL366: + if yyr351 || yy2arr351 { + if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { + if yyq351[14] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -6088,11 +6443,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[17] { + if yyq351[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn54 { + if yyn366 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -6103,7 +6458,152 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + 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 yyq351[17] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym370 := z.EncBinary() + _ = yym370 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq351[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("accessModes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym371 := z.EncBinary() + _ = yym371 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr351 || yy2arr351 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[18] { + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq351[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("claimRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } + } + if yyr351 || yy2arr351 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[19] { + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq351[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym374 := z.DecBinary() + _ = yym374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct375 := r.ContainerType() + if yyct375 == codecSelferValueTypeMap1234 { + yyl375 := r.ReadMapStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl375, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct375 == codecSelferValueTypeArray1234 { + yyl375 := r.ReadArrayStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,45 +6660,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys376Slc = r.DecodeBytes(yys376Slc, true, true) + yys376 := string(yys376Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys376 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv4 := &x.Capacity - yyv4.CodecDecodeSelf(d) - } - case "accessModes": - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv5 := &x.AccessModes - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv5), d) - } - } - case "claimRef": - if r.TryDecodeAsNil() { - if x.ClaimRef != nil { - x.ClaimRef = nil - } - } else { - if x.ClaimRef == nil { - x.ClaimRef = new(ObjectReference) - } - x.ClaimRef.CodecDecodeSelf(d) - } - case "persistentVolumeReclaimPolicy": - if r.TryDecodeAsNil() { - x.PersistentVolumeReclaimPolicy = "" - } else { - x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + yyv377 := &x.Capacity + yyv377.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { @@ -6396,10 +6867,67 @@ 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 { + yyv394 := &x.AccessModes + yym395 := z.DecBinary() + _ = yym395 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), d) + } + } + case "claimRef": + if r.TryDecodeAsNil() { + if x.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + case "persistentVolumeReclaimPolicy": + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj23 int - var yyb23 bool - var yyhl23 bool = l >= 0 - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + var yyj398 int + var yyb398 bool + var yyhl398 bool = l >= 0 + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6424,78 +6952,19 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv24 := &x.Capacity - yyv24.CodecDecodeSelf(d) - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv25 := &x.AccessModes - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv25), d) - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ClaimRef != nil { - x.ClaimRef = nil - } - } else { - if x.ClaimRef == nil { - x.ClaimRef = new(ObjectReference) - } - x.ClaimRef.CodecDecodeSelf(d) - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PersistentVolumeReclaimPolicy = "" - } else { - x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + yyv399 := &x.Capacity + yyv399.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6513,13 +6982,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6537,13 +7006,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6561,13 +7030,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6585,13 +7054,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6609,13 +7078,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6633,13 +7102,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6657,13 +7126,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6681,13 +7150,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6705,13 +7174,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6729,13 +7198,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6753,13 +7222,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6777,13 +7246,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6801,13 +7270,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6822,18 +7291,125 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.VsphereVolume.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.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 + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv416 := &x.AccessModes + yym417 := z.DecBinary() + _ = yym417 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) + } + } + 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.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } for { - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb23 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb23 { + if yyb398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj23-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym422 := z.EncBinary() + _ = yym422 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - yyq2[1] = x.Message != "" - yyq2[2] = x.Reason != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn423 = 0 + for _, b := range yyq423 { if b { - yynn2++ + yynn423++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn423) + yynn423 = 0 } - if yyr2 || yy2arr2 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq423[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq423[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq423[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym427 := z.EncBinary() + _ = yym427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq423[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym430 := z.EncBinary() + _ = yym430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym431 := z.DecBinary() + _ = yym431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct432 := r.ContainerType() + if yyct432 == codecSelferValueTypeMap1234 { + yyl432 := r.ReadMapStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl432, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct432 == codecSelferValueTypeArray1234 { + yyl432 := r.ReadArrayStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys433Slc = r.DecodeBytes(yys433Slc, true, true) + yys433 := string(yys433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys433 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -7042,9 +7618,9 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.Reason = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys433) + } // end switch yys433 + } // end for yyj433 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7052,16 +7628,16 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj437 int + var yyb437 bool + var yyhl437 bool = l >= 0 + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7071,13 +7647,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7087,13 +7663,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Message = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7104,17 +7680,17 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De x.Reason = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l } else { - yyb7 = r.CheckBreak() + yyb437 = r.CheckBreak() } - if yyb7 { + if yyb437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj437-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7126,139 +7702,139 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym441 := z.EncBinary() + _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn442 = 1 + for _, b := range yyq442 { if b { - yynn2++ + yynn442++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn442) + yynn442 = 0 } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq442[0] { + yym444 := z.EncBinary() + _ = yym444 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym445 := z.EncBinary() + _ = yym445 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq442[1] { + yym447 := z.EncBinary() + _ = yym447 if false { } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq442[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym448 := z.EncBinary() + _ = yym448 if false { } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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.Kind)) + z.EncFallback(yy450) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq442[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy452 := &x.ListMeta + yym453 := z.EncBinary() + _ = yym453 if false { + } else if z.HasExtensions() && z.EncExt(yy452) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy452) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym455 := z.EncBinary() + _ = yym455 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym456 := z.EncBinary() + _ = yym456 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7271,25 +7847,25 @@ func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym457 := z.DecBinary() + _ = yym457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct458 := r.ContainerType() + if yyct458 == codecSelferValueTypeMap1234 { + yyl458 := r.ReadMapStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl458, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct458 == codecSelferValueTypeArray1234 { + yyl458 := r.ReadArrayStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl458, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7301,12 +7877,12 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -7315,51 +7891,51 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys459Slc = r.DecodeBytes(yys459Slc, true, true) + yys459 := string(yys459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys459 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv462 := &x.ListMeta + yym463 := z.DecBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv462) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv464 := &x.Items + yym465 := z.DecBinary() + _ = yym465 if false { } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv6), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys459) + } // end switch yys459 + } // end for yyj459 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7367,98 +7943,98 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj466 int + var yyb466 bool + var yyhl466 bool = l >= 0 + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv469 := &x.ListMeta + yym470 := z.DecBinary() + _ = yym470 + if false { + } else if z.HasExtensions() && z.DecExt(yyv469) { + } else { + z.DecFallback(yyv469, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv471 := &x.Items + yym472 := z.DecBinary() + _ = yym472 + if false { + } else { + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj466-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7470,136 +8046,136 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym473 := z.EncBinary() + _ = yym473 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn474 = 0 + for _, b := range yyq474 { if b { - yynn2++ + yynn474++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn474) + yynn474 = 0 } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq474[0] { + yym476 := z.EncBinary() + _ = yym476 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq474[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym477 := z.EncBinary() + _ = yym477 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq474[1] { + yym479 := z.EncBinary() + _ = yym479 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq474[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym480 := z.EncBinary() + _ = yym480 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq474[2] { + yy482 := &x.ObjectMeta + yy482.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq474[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy483 := &x.ObjectMeta + yy483.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq474[3] { + yy485 := &x.Spec + yy485.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq474[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy486 := &x.Spec + yy486.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq474[4] { + yy488 := &x.Status + yy488.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq474[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy489 := &x.Status + yy489.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7612,25 +8188,25 @@ func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym490 := z.DecBinary() + _ = yym490 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct491 := r.ContainerType() + if yyct491 == codecSelferValueTypeMap1234 { + yyl491 := r.ReadMapStart() + if yyl491 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl491, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct491 == codecSelferValueTypeArray1234 { + yyl491 := r.ReadArrayStart() + if yyl491 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl491, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7642,12 +8218,12 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -7656,47 +8232,47 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys492Slc = r.DecodeBytes(yys492Slc, true, true) + yys492 := string(yys492Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys492 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv495 := &x.ObjectMeta + yyv495.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeClaimSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv496 := &x.Spec + yyv496.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeClaimStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv497 := &x.Status + yyv497.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys492) + } // end switch yys492 + } // end for yyj492 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7704,104 +8280,104 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj498 int + var yyb498 bool + var yyhl498 bool = l >= 0 + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv501 := &x.ObjectMeta + yyv501.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PersistentVolumeClaimSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv502 := &x.Spec + yyv502.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PersistentVolumeClaimStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv503 := &x.Status + yyv503.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l } else { - yyb9 = r.CheckBreak() + yyb498 = r.CheckBreak() } - if yyb9 { + if yyb498 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj498-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7813,139 +8389,139 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym504 := z.EncBinary() + _ = yym504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn505 = 1 + for _, b := range yyq505 { if b { - yynn2++ + yynn505++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn505) + yynn505 = 0 } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq505[0] { + yym507 := z.EncBinary() + _ = yym507 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq505[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym508 := z.EncBinary() + _ = yym508 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq505[1] { + yym510 := z.EncBinary() + _ = yym510 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq505[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym511 := z.EncBinary() + _ = yym511 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq505[2] { + yy513 := &x.ListMeta + yym514 := z.EncBinary() + _ = yym514 if false { + } else if z.HasExtensions() && z.EncExt(yy513) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy513) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy515 := &x.ListMeta + yym516 := z.EncBinary() + _ = yym516 if false { + } else if z.HasExtensions() && z.EncExt(yy515) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy515) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym518 := z.EncBinary() + _ = yym518 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7958,25 +8534,25 @@ func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym520 := z.DecBinary() + _ = yym520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct521 := r.ContainerType() + if yyct521 == codecSelferValueTypeMap1234 { + yyl521 := r.ReadMapStart() + if yyl521 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl521, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct521 == codecSelferValueTypeArray1234 { + yyl521 := r.ReadArrayStart() + if yyl521 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl521, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7988,12 +8564,12 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -8002,51 +8578,51 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys522Slc = r.DecodeBytes(yys522Slc, true, true) + yys522 := string(yys522Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv525 := &x.ListMeta + yym526 := z.DecBinary() + _ = yym526 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv525) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv525, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv527 := &x.Items + yym528 := z.DecBinary() + _ = yym528 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv6), d) + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys522) + } // end switch yys522 + } // end for yyj522 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8054,98 +8630,98 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj529 int + var yyb529 bool + var yyhl529 bool = l >= 0 + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv532 := &x.ListMeta + yym533 := z.DecBinary() + _ = yym533 + if false { + } else if z.HasExtensions() && z.DecExt(yyv532) { + } else { + z.DecFallback(yyv532, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv534 := &x.Items + yym535 := z.DecBinary() + _ = yym535 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l } else { - yyb10 = r.CheckBreak() + yyb529 = r.CheckBreak() } - if yyb10 { + if yyb529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym536 := z.EncBinary() + _ = yym536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.AccessModes) != 0 - yyq2[1] = x.Selector != nil - yyq2[2] = true - yyq2[3] = x.VolumeName != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn537 = 0 + for _, b := range yyq537 { if b { - yynn2++ + yynn537++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn537) + yynn537 = 0 } - if yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq537[0] { if x.AccessModes == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq537[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.Resources - yy10.CodecEncodeSelf(e) + if yyq537[2] { + yy545 := &x.Resources + yy545.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Resources - yy12.CodecEncodeSelf(e) + yy546 := &x.Resources + yy546.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + 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 yyq2[3] { + if yyq537[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym549 := z.EncBinary() + _ = yym549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym550 := z.DecBinary() + _ = yym550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct551 := r.ContainerType() + if yyct551 == codecSelferValueTypeMap1234 { + yyl551 := r.ReadMapStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl551, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct551 == codecSelferValueTypeArray1234 { + yyl551 := r.ReadArrayStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys552Slc = r.DecodeBytes(yys552Slc, true, true) + yys552 := string(yys552Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys552 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv4 := &x.AccessModes - yym5 := z.DecBinary() - _ = yym5 + yyv553 := &x.AccessModes + yym554 := z.DecBinary() + _ = yym554 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), 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) } - yym7 := z.DecBinary() - _ = yym7 + 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 { - yyv8 := &x.Resources - yyv8.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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj559 int + var yyb559 bool + var yyhl559 bool = l >= 0 + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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 { - yyv11 := &x.AccessModes - yym12 := z.DecBinary() - _ = yym12 + yyv560 := &x.AccessModes + yym561 := z.DecBinary() + _ = yym561 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv11), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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) } - yym14 := z.DecBinary() - _ = yym14 + yym563 := z.DecBinary() + _ = yym563 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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 { - yyv15 := &x.Resources - yyv15.CodecDecodeSelf(d) + yyv564 := &x.Resources + yyv564.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb10 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb10 { + if yyb559 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym566 := z.EncBinary() + _ = yym566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - yyq2[1] = len(x.AccessModes) != 0 - yyq2[2] = len(x.Capacity) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn567 = 0 + for _, b := range yyq567 { if b { - yynn2++ + yynn567++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn567) + yynn567 = 0 } - if yyr2 || yy2arr2 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq567[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq567[1] { if x.AccessModes == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym573 := z.DecBinary() + _ = yym573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct574 := r.ContainerType() + if yyct574 == codecSelferValueTypeMap1234 { + yyl574 := r.ReadMapStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl574, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct574 == codecSelferValueTypeArray1234 { + yyl574 := r.ReadArrayStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys575Slc = r.DecodeBytes(yys575Slc, true, true) + yys575 := string(yys575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys575 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -8684,25 +9260,25 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv5 := &x.AccessModes - yym6 := z.DecBinary() - _ = yym6 + yyv577 := &x.AccessModes + yym578 := z.DecBinary() + _ = yym578 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv5), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv7 := &x.Capacity - yyv7.CodecDecodeSelf(d) + yyv579 := &x.Capacity + yyv579.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys575) + } // end switch yys575 + } // end for yyj575 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8710,16 +9286,16 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj580 int + var yyb580 bool + var yyhl580 bool = l >= 0 + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8729,13 +9305,13 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8743,21 +9319,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv10 := &x.AccessModes - yym11 := z.DecBinary() - _ = yym11 + yyv582 := &x.AccessModes + yym583 := z.DecBinary() + _ = yym583 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv10), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8765,21 +9341,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv12 := &x.Capacity - yyv12.CodecDecodeSelf(d) + yyv584 := &x.Capacity + yyv584.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l } else { - yyb8 = r.CheckBreak() + yyb580 = r.CheckBreak() } - if yyb8 { + if yyb580 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj580-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8788,8 +9364,8 @@ func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym585 := z.EncBinary() + _ = yym585 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -8801,8 +9377,8 @@ func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym586 := z.DecBinary() + _ = yym586 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -8814,8 +9390,8 @@ func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym587 := z.EncBinary() + _ = yym587 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -8827,8 +9403,8 @@ func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym588 := z.DecBinary() + _ = yym588 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -8840,8 +9416,8 @@ func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym589 := z.EncBinary() + _ = yym589 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -8853,8 +9429,8 @@ func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym590 := z.DecBinary() + _ = yym590 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -8869,33 +9445,33 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym591 := z.EncBinary() + _ = yym591 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn592 = 1 + for _, b := range yyq592 { if b { - yynn2++ + yynn592++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn592) + yynn592 = 0 } - if yyr2 || yy2arr2 { + if yyr592 || yy2arr592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym594 := z.EncBinary() + _ = yym594 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -8904,14 +9480,14 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym595 := z.EncBinary() + _ = yym595 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr592 || yy2arr592 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8924,25 +9500,25 @@ func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym596 := z.DecBinary() + _ = yym596 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct597 := r.ContainerType() + if yyct597 == codecSelferValueTypeMap1234 { + yyl597 := r.ReadMapStart() + if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl597, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct597 == codecSelferValueTypeArray1234 { + yyl597 := r.ReadArrayStart() + if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl597, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8954,12 +9530,12 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -8968,10 +9544,10 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys598Slc = r.DecodeBytes(yys598Slc, true, true) + yys598 := string(yys598Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys598 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -8979,9 +9555,9 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys598) + } // end switch yys598 + } // end for yyj598 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8989,16 +9565,16 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj600 int + var yyb600 bool + var yyhl600 bool = l >= 0 + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb5 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb5 { + if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9009,17 +9585,17 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Path = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb5 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb5 { + if yyb600 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj600-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9031,46 +9607,46 @@ func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym602 := z.EncBinary() + _ = yym602 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Medium != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn603 = 0 + for _, b := range yyq603 { if b { - yynn2++ + yynn603++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn603) + yynn603 = 0 } - if yyr2 || yy2arr2 { + if yyr603 || yy2arr603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq603[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq603[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr603 || yy2arr603 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9083,25 +9659,25 @@ func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym605 := z.DecBinary() + _ = yym605 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct606 := r.ContainerType() + if yyct606 == codecSelferValueTypeMap1234 { + yyl606 := r.ReadMapStart() + if yyl606 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl606, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct606 == codecSelferValueTypeArray1234 { + yyl606 := r.ReadArrayStart() + if yyl606 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl606, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9113,12 +9689,12 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -9127,10 +9703,10 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys607Slc = r.DecodeBytes(yys607Slc, true, true) + yys607 := string(yys607Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys607 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" @@ -9138,9 +9714,9 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Medium = StorageMedium(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys607) + } // end switch yys607 + } // end for yyj607 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9148,16 +9724,16 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj609 int + var yyb609 bool + var yyhl609 bool = l >= 0 + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l } else { - yyb5 = r.CheckBreak() + yyb609 = r.CheckBreak() } - if yyb5 { + if yyb609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9168,17 +9744,17 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Medium = StorageMedium(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l } else { - yyb5 = r.CheckBreak() + yyb609 = r.CheckBreak() } - if yyb5 { + if yyb609 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj609-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9190,34 +9766,34 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym611 := z.EncBinary() + _ = yym611 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn612 = 2 + for _, b := range yyq612 { if b { - yynn2++ + yynn612++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn612) + yynn612 = 0 } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym614 := z.EncBinary() + _ = yym614 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) @@ -9226,17 +9802,17 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("endpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym615 := z.EncBinary() + _ = yym615 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym617 := z.EncBinary() + _ = yym617 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -9245,18 +9821,18 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym618 := z.EncBinary() + _ = yym618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq612[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym621 := z.EncBinary() + _ = yym621 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym622 := z.DecBinary() + _ = yym622 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct623 := r.ContainerType() + if yyct623 == codecSelferValueTypeMap1234 { + yyl623 := r.ReadMapStart() + if yyl623 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl623, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct623 == codecSelferValueTypeArray1234 { + yyl623 := r.ReadArrayStart() + if yyl623 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys624Slc = r.DecodeBytes(yys624Slc, true, true) + yys624 := string(yys624Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj628 int + var yyb628 bool + var yyhl628 bool = l >= 0 + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb7 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb7 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb7 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb7 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb7 { + if yyb628 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym632 := z.EncBinary() + _ = yym632 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.FSType != "" - yyq2[3] = x.RBDPool != "" - yyq2[4] = x.RadosUser != "" - yyq2[5] = x.Keyring != "" - yyq2[6] = x.SecretRef != nil - yyq2[7] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn633 = 2 + for _, b := range yyq633 { if b { - yynn2++ + yynn633++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn633) + yynn633 = 0 } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym636 := z.EncBinary() + _ = yym636 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym639 := z.EncBinary() + _ = yym639 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq633[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym642 := z.EncBinary() + _ = yym642 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq633[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym645 := z.EncBinary() + _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq633[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym648 := z.EncBinary() + _ = yym648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq633[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym651 := z.EncBinary() + _ = yym651 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } - if yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[7] { + if yyq633[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym655 := z.EncBinary() + _ = yym655 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym656 := z.DecBinary() + _ = yym656 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct657 := r.ContainerType() + if yyct657 == codecSelferValueTypeMap1234 { + yyl657 := r.ReadMapStart() + if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl657, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct657 == codecSelferValueTypeArray1234 { + yyl657 := r.ReadArrayStart() + if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys658Slc = r.DecodeBytes(yys658Slc, true, true) + yys658 := string(yys658Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys658 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv4 := &x.CephMonitors - yym5 := z.DecBinary() - _ = yym5 + yyv659 := &x.CephMonitors + yym660 := z.DecBinary() + _ = yym660 if false { } else { - z.F.DecSliceStringX(yyv4, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj668 int + var yyb668 bool + var yyhl668 bool = l >= 0 + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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 { - yyv14 := &x.CephMonitors - yym15 := z.DecBinary() - _ = yym15 + yyv669 := &x.CephMonitors + yym670 := z.DecBinary() + _ = yym670 if false { } else { - z.F.DecSliceStringX(yyv14, false, d) + z.F.DecSliceStringX(yyv669, false, d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9921,13 +10497,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + 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 { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb13 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb13 { + if yyb668 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-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 { - yym1 := z.EncBinary() - _ = yym1 + yym678 := z.EncBinary() + _ = yym678 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn679 = 1 + for _, b := range yyq679 { if b { - yynn2++ + yynn679++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn679) + yynn679 = 0 } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym682 := z.EncBinary() + _ = yym682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq679[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym685 := z.EncBinary() + _ = yym685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq679[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym688 := z.EncBinary() + _ = yym688 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym689 := z.DecBinary() + _ = yym689 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct690 := r.ContainerType() + if yyct690 == codecSelferValueTypeMap1234 { + yyl690 := r.ReadMapStart() + if yyl690 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl690, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct690 == codecSelferValueTypeArray1234 { + yyl690 := r.ReadArrayStart() + if yyl690 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys691Slc = r.DecodeBytes(yys691Slc, true, true) + yys691 := string(yys691Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj695 int + var yyb695 bool + var yyhl695 bool = l >= 0 + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb7 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb7 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb7 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb7 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb7 { + if yyb695 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym699 := z.EncBinary() + _ = yym699 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Path != "" - yyq2[2] = x.User != "" - yyq2[3] = x.SecretFile != "" - yyq2[4] = x.SecretRef != nil - yyq2[5] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn700 = 1 + for _, b := range yyq700 { if b { - yynn2++ + yynn700++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn700) + yynn700 = 0 } - if yyr2 || yy2arr2 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym703 := z.EncBinary() + _ = yym703 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } - if yyr2 || yy2arr2 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq700[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym706 := z.EncBinary() + _ = yym706 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq700[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym709 := z.EncBinary() + _ = yym709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr2 || yy2arr2 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq700[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym712 := z.EncBinary() + _ = yym712 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } - if yyr2 || yy2arr2 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq700[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym716 := z.EncBinary() + _ = yym716 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym717 := z.DecBinary() + _ = yym717 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct718 := r.ContainerType() + if yyct718 == codecSelferValueTypeMap1234 { + yyl718 := r.ReadMapStart() + if yyl718 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl718, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct718 == codecSelferValueTypeArray1234 { + yyl718 := r.ReadArrayStart() + if yyl718 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys719Slc = r.DecodeBytes(yys719Slc, true, true) + yys719 := string(yys719Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys719 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv4 := &x.Monitors - yym5 := z.DecBinary() - _ = yym5 + yyv720 := &x.Monitors + yym721 := z.DecBinary() + _ = yym721 if false { } else { - z.F.DecSliceStringX(yyv4, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj727 int + var yyb727 bool + var yyhl727 bool = l >= 0 + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + 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 { - yyv12 := &x.Monitors - yym13 := z.DecBinary() - _ = yym13 + yyv728 := &x.Monitors + yym729 := z.DecBinary() + _ = yym729 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv728, false, d) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10609,13 +11185,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SecretRef.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + 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 { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb11 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb11 { + if yyb727 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-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 { - yym1 := z.EncBinary() - _ = yym1 + yym735 := z.EncBinary() + _ = yym735 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn736 = 1 + for _, b := range yyq736 { if b { - yynn2++ + yynn736++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn736) + yynn736 = 0 } - if yyr2 || yy2arr2 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym739 := z.EncBinary() + _ = yym739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym740 := z.DecBinary() + _ = yym740 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct741 := r.ContainerType() + if yyct741 == codecSelferValueTypeMap1234 { + yyl741 := r.ReadMapStart() + if yyl741 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl741, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct741 == codecSelferValueTypeArray1234 { + yyl741 := r.ReadArrayStart() + if yyl741 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys742Slc = r.DecodeBytes(yys742Slc, true, true) + yys742 := string(yys742Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj744 int + var yyb744 bool + var yyhl744 bool = l >= 0 + yyj744++ + if yyhl744 { + yyb744 = yyj744 > l } else { - yyb5 = r.CheckBreak() + yyb744 = r.CheckBreak() } - if yyb5 { + 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 { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj744++ + if yyhl744 { + yyb744 = yyj744 > l } else { - yyb5 = r.CheckBreak() + yyb744 = r.CheckBreak() } - if yyb5 { + if yyb744 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym750 := z.EncBinary() + _ = yym750 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - yyq2[2] = x.Partition != 0 - yyq2[3] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn751 = 1 + for _, b := range yyq751 { if b { - yynn2++ + yynn751++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn751) + yynn751 = 0 } - if yyr2 || yy2arr2 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym754 := z.EncBinary() + _ = yym754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } - if yyr2 || yy2arr2 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq751[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym757 := z.EncBinary() + _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq751[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym760 := z.EncBinary() + _ = yym760 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr2 || yy2arr2 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq751[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym763 := z.EncBinary() + _ = yym763 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym764 := z.DecBinary() + _ = yym764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct765 := r.ContainerType() + if yyct765 == codecSelferValueTypeMap1234 { + yyl765 := r.ReadMapStart() + if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl765, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct765 == codecSelferValueTypeArray1234 { + yyl765 := r.ReadArrayStart() + if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys766Slc = r.DecodeBytes(yys766Slc, true, true) + yys766 := string(yys766Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj771 int + var yyb771 bool + var yyhl771 bool = l >= 0 + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb8 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb8 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb8 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb8 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11129,13 +11705,328 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.Partition = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + 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 { - yyb8 = r.CheckBreak() + yyb801 = r.CheckBreak() } - if yyb8 { + 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 } @@ -11145,18 +12036,50 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l } else { - yyb8 = r.CheckBreak() + yyb801 = r.CheckBreak() } - if yyb8 { + if yyb801 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym807 := z.EncBinary() + _ = yym807 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[1] = x.FSType != "" - yyq2[2] = x.SecretRef != nil - yyq2[3] = x.ReadOnly != false - yyq2[4] = len(x.Options) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn808 = 1 + for _, b := range yyq808 { if b { - yynn2++ + yynn808++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn808) + yynn808 = 0 } - if yyr2 || yy2arr2 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym811 := z.EncBinary() + _ = yym811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } - if yyr2 || yy2arr2 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq808[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym814 := z.EncBinary() + _ = yym814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq808[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym818 := z.EncBinary() + _ = yym818 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq808[4] { if x.Options == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym822 := z.DecBinary() + _ = yym822 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct823 := r.ContainerType() + if yyct823 == codecSelferValueTypeMap1234 { + yyl823 := r.ReadMapStart() + if yyl823 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl823, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct823 == codecSelferValueTypeArray1234 { + yyl823 := r.ReadArrayStart() + if yyl823 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys824Slc = r.DecodeBytes(yys824Slc, true, true) + yys824 := string(yys824Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv8 := &x.Options - yym9 := z.DecBinary() - _ = yym9 + yyv829 := &x.Options + yym830 := z.DecBinary() + _ = yym830 if false { } else { - z.F.DecMapStringStringX(yyv8, false, d) + z.F.DecMapStringStringX(yyv829, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj831 int + var yyb831 bool + var yyhl831 bool = l >= 0 + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb10 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb10 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb10 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb10 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11489,13 +12412,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb10 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb10 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb10 { + 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 { - yyv15 := &x.Options - yym16 := z.DecBinary() - _ = yym16 + yyv836 := &x.Options + yym837 := z.DecBinary() + _ = yym837 if false { } else { - z.F.DecMapStringStringX(yyv15, false, d) + z.F.DecMapStringStringX(yyv836, false, d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb10 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb10 { + if yyb831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym838 := z.EncBinary() + _ = yym838 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - yyq2[2] = x.Partition != 0 - yyq2[3] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn839 = 1 + for _, b := range yyq839 { if b { - yynn2++ + yynn839++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn839) + yynn839 = 0 } - if yyr2 || yy2arr2 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym842 := z.EncBinary() + _ = yym842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr2 || yy2arr2 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq839[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym845 := z.EncBinary() + _ = yym845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq839[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym848 := z.EncBinary() + _ = yym848 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr2 || yy2arr2 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq839[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym851 := z.EncBinary() + _ = yym851 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym852 := z.DecBinary() + _ = yym852 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct853 := r.ContainerType() + if yyct853 == codecSelferValueTypeMap1234 { + yyl853 := r.ReadMapStart() + if yyl853 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl853, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct853 == codecSelferValueTypeArray1234 { + yyl853 := r.ReadArrayStart() + if yyl853 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys854Slc = r.DecodeBytes(yys854Slc, true, true) + yys854 := string(yys854Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj859 int + var yyb859 bool + var yyhl859 bool = l >= 0 + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb8 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb8 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb8 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb8 { + 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)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb8 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb8 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb8 { + if yyb859 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym864 := z.EncBinary() + _ = yym864 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Revision != "" - yyq2[2] = x.Directory != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn865 = 1 + for _, b := range yyq865 { if b { - yynn2++ + yynn865++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn865) + yynn865 = 0 } - if yyr2 || yy2arr2 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym868 := z.EncBinary() + _ = yym868 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } - if yyr2 || yy2arr2 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq865[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym871 := z.EncBinary() + _ = yym871 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } - if yyr2 || yy2arr2 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq865[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym874 := z.EncBinary() + _ = yym874 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym875 := z.DecBinary() + _ = yym875 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct876 := r.ContainerType() + if yyct876 == codecSelferValueTypeMap1234 { + yyl876 := r.ReadMapStart() + if yyl876 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl876, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct876 == codecSelferValueTypeArray1234 { + yyl876 := r.ReadArrayStart() + if yyl876 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys877Slc = r.DecodeBytes(yys877Slc, true, true) + yys877 := string(yys877Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj881 int + var yyb881 bool + var yyhl881 bool = l >= 0 + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb7 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb7 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb7 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb7 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb7 { + if yyb881 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym885 := z.EncBinary() + _ = yym885 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.SecretName != "" - yyq2[1] = len(x.Items) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn886 = 0 + for _, b := range yyq886 { if b { - yynn2++ + yynn886++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn886) + yynn886 = 0 } - if yyr2 || yy2arr2 { + if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq886[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym889 := z.EncBinary() + _ = yym889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr2 || yy2arr2 { + if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq886[1] { if x.Items == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym898 := z.DecBinary() + _ = yym898 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct899 := r.ContainerType() + if yyct899 == codecSelferValueTypeMap1234 { + yyl899 := r.ReadMapStart() + if yyl899 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl899, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct899 == codecSelferValueTypeArray1234 { + yyl899 := r.ReadArrayStart() + if yyl899 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys900Slc = r.DecodeBytes(yys900Slc, true, true) + yys900 := string(yys900Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Items - yym6 := z.DecBinary() - _ = yym6 + yyv902 := &x.Items + yym903 := z.DecBinary() + _ = yym903 + if false { + } else { + 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 { - h.decSliceKeyToPath((*[]KeyToPath)(yyv5), d) + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj906 int + var yyb906 bool + var yyhl906 bool = l >= 0 + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l } else { - yyb7 = r.CheckBreak() + yyb906 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l } else { - yyb7 = r.CheckBreak() + yyb906 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.Items - yym10 := z.DecBinary() - _ = yym10 + yyv908 := &x.Items + yym909 := z.DecBinary() + _ = yym909 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv9), 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l } else { - yyb7 = r.CheckBreak() + yyb906 = r.CheckBreak() } - if yyb7 { + if yyb906 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym912 := z.EncBinary() + _ = yym912 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn913 = 2 + for _, b := range yyq913 { if b { - yynn2++ + yynn913++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn913) + yynn913 = 0 } - if yyr2 || yy2arr2 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym916 := z.EncBinary() + _ = yym916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } - if yyr2 || yy2arr2 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym919 := z.EncBinary() + _ = yym919 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq913[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym922 := z.EncBinary() + _ = yym922 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym923 := z.DecBinary() + _ = yym923 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct924 := r.ContainerType() + if yyct924 == codecSelferValueTypeMap1234 { + yyl924 := r.ReadMapStart() + if yyl924 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl924, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct924 == codecSelferValueTypeArray1234 { + yyl924 := r.ReadArrayStart() + if yyl924 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys925Slc = r.DecodeBytes(yys925Slc, true, true) + yys925 := string(yys925Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj929 int + var yyb929 bool + var yyhl929 bool = l >= 0 + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb7 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb7 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb7 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb7 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb7 { + if yyb929 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym933 := z.EncBinary() + _ = yym933 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[3] = x.ISCSIInterface != "" - yyq2[4] = x.FSType != "" - yyq2[5] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 3 - for _, b := range yyq2 { + yynn934 = 3 + for _, b := range yyq934 { if b { - yynn2++ + yynn934++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn934) + yynn934 = 0 } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym937 := z.EncBinary() + _ = yym937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym940 := z.EncBinary() + _ = yym940 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym943 := z.EncBinary() + _ = yym943 if false { } else { r.EncodeInt(int64(x.Lun)) } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq934[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym946 := z.EncBinary() + _ = yym946 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq934[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym949 := z.EncBinary() + _ = yym949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq934[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym952 := z.EncBinary() + _ = yym952 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym953 := z.DecBinary() + _ = yym953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct954 := r.ContainerType() + if yyct954 == codecSelferValueTypeMap1234 { + yyl954 := r.ReadMapStart() + if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl954, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct954 == codecSelferValueTypeArray1234 { + yyl954 := r.ReadArrayStart() + if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys955Slc = r.DecodeBytes(yys955Slc, true, true) + yys955 := string(yys955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj962 int + var yyb962 bool + var yyhl962 bool = l >= 0 + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + 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)) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb10 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb10 { + if yyb962 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym969 := z.EncBinary() + _ = yym969 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.FSType != "" - yyq2[3] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn970 = 2 + for _, b := range yyq970 { if b { - yynn2++ + yynn970++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn970) + yynn970 = 0 } - if yyr2 || yy2arr2 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym973 := z.EncBinary() + _ = yym973 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } - if yyr2 || yy2arr2 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { - yy7 := *x.Lun - yym8 := z.EncBinary() - _ = yym8 + yy975 := *x.Lun + yym976 := z.EncBinary() + _ = yym976 if false { } else { - r.EncodeInt(int64(yy7)) + r.EncodeInt(int64(yy975)) } } } else { @@ -13062,20 +14063,20 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Lun == nil { r.EncodeNil() } else { - yy9 := *x.Lun - yym10 := z.EncBinary() - _ = yym10 + yy977 := *x.Lun + yym978 := z.EncBinary() + _ = yym978 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy977)) } } } - if yyr2 || yy2arr2 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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 yyq2[2] { + if yyq970[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym981 := z.EncBinary() + _ = yym981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + 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 yyq2[3] { + if yyq970[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym984 := z.EncBinary() + _ = yym984 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym985 := z.DecBinary() + _ = yym985 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct986 := r.ContainerType() + if yyct986 == codecSelferValueTypeMap1234 { + yyl986 := r.ReadMapStart() + if yyl986 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl986, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct986 == codecSelferValueTypeArray1234 { + yyl986 := r.ReadArrayStart() + if yyl986 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys987Slc = r.DecodeBytes(yys987Slc, true, true) + yys987 := string(yys987Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys987 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv4 := &x.TargetWWNs - yym5 := z.DecBinary() - _ = yym5 + yyv988 := &x.TargetWWNs + yym989 := z.DecBinary() + _ = yym989 if false { } else { - z.F.DecSliceStringX(yyv4, 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) } - yym7 := z.DecBinary() - _ = yym7 + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj994 int + var yyb994 bool + var yyhl994 bool = l >= 0 + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb10 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb10 { + 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 { - yyv11 := &x.TargetWWNs - yym12 := z.DecBinary() - _ = yym12 + yyv995 := &x.TargetWWNs + yym996 := z.DecBinary() + _ = yym996 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv995, false, d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb10 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb10 { + 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) } - yym14 := z.DecBinary() - _ = yym14 + yym998 := z.DecBinary() + _ = yym998 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb10 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb10 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb10 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb10 { + if yyb994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.ReadOnly != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1002 = 2 + for _, b := range yyq1002 { if b { - yynn2++ + yynn1002++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1002) + yynn1002 = 0 } - if yyr2 || yy2arr2 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1005 := z.EncBinary() + _ = yym1005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } - if yyr2 || yy2arr2 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1008 := z.EncBinary() + _ = yym1008 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } - if yyr2 || yy2arr2 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1002[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1011 := z.EncBinary() + _ = yym1011 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1012 := z.DecBinary() + _ = yym1012 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1013 := r.ContainerType() + if yyct1013 == codecSelferValueTypeMap1234 { + yyl1013 := r.ReadMapStart() + if yyl1013 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1013, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1013 == codecSelferValueTypeArray1234 { + yyl1013 := r.ReadArrayStart() + if yyl1013 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1014Slc = r.DecodeBytes(yys1014Slc, true, true) + yys1014 := string(yys1014Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1018 int + var yyb1018 bool + var yyhl1018 bool = l >= 0 + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb7 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb7 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb7 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb7 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb7 { + if yyb1018 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1022 := z.EncBinary() + _ = yym1022 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FSType != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1023 = 1 + for _, b := range yyq1023 { if b { - yynn2++ + yynn1023++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1023) + yynn1023 = 0 } - if yyr2 || yy2arr2 { + if yyr1023 || yy2arr1023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1026 := z.EncBinary() + _ = yym1026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } - if yyr2 || yy2arr2 { + if yyr1023 || yy2arr1023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1023[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1029 := z.EncBinary() + _ = yym1029 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1030 := z.DecBinary() + _ = yym1030 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1031 := r.ContainerType() + if yyct1031 == codecSelferValueTypeMap1234 { + yyl1031 := r.ReadMapStart() + if yyl1031 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1031, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1031 == codecSelferValueTypeArray1234 { + yyl1031 := r.ReadArrayStart() + if yyl1031 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1032Slc = r.DecodeBytes(yys1032Slc, true, true) + yys1032 := string(yys1032Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1035 int + var yyb1035 bool + var yyhl1035 bool = l >= 0 + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb6 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb6 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb6 { + if yyb1035 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13778,91 +14779,502 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code x.FSType = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb6 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb6 { + if yyb1035 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1035-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { +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 { - yym1 := z.EncBinary() - _ = yym1 + yym1040 := z.EncBinary() + _ = yym1040 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Items) != 0 - yyq2[1] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1041 = 2 + for _, b := range yyq1041 { if b { - yynn2++ + yynn1041++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1041) + yynn1041 = 0 } - if yyr2 || yy2arr2 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - if x.Items == nil { + 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 { - yym4 := z.EncBinary() - _ = yym4 + 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 { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(yy1052)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1041[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { + if x.FSType == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yy1054 := *x.FSType + yym1055 := z.EncBinary() + _ = yym1055 if false { } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(yy1054)) } } } } - if yyr2 || yy2arr2 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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) +} + +func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1079 := z.EncBinary() + _ = yym1079 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1080 = 0 + for _, b := range yyq1080 { + if b { + yynn1080++ + } + } + r.EncodeMapStart(yynn1080) + yynn1080 = 0 + } + if yyr1080 || yy2arr1080 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1080[0] { + yym1082 := z.EncBinary() + _ = yym1082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -13871,19 +15283,87 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1080[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1083 := z.EncBinary() + _ = yym1083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr1080 || yy2arr1080 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1080[1] { + if x.Items == nil { + r.EncodeNil() + } else { + yym1085 := z.EncBinary() + _ = yym1085 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1080[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1086 := z.EncBinary() + _ = yym1086 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1092 := z.DecBinary() + _ = yym1092 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1093 := r.ContainerType() + if yyct1093 == codecSelferValueTypeMap1234 { + yyl1093 := r.ReadMapStart() + if yyl1093 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1093, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1093 == codecSelferValueTypeArray1234 { + yyl1093 := r.ReadArrayStart() + if yyl1093 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,32 +15420,48 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1094Slc = r.DecodeBytes(yys1094Slc, true, true) + yys1094 := string(yys1094Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1094 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv1096 := &x.Items + yym1097 := z.DecBinary() + _ = yym1097 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv4), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1096), d) } } - case "name": + case "defaultMode": if r.TryDecodeAsNil() { - x.Name = "" + if x.DefaultMode != nil { + x.DefaultMode = nil + } } else { - x.Name = string(r.DecodeString()) + 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1094) + } // end switch yys1094 + } // end for yyj1094 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13973,16 +15469,32 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1100 int + var yyb1100 bool + var yyhl1100 bool = l >= 0 + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l } else { - yyb7 = r.CheckBreak() + yyb1100 = r.CheckBreak() } - if yyb7 { + if yyb1100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l + } else { + yyb1100 = r.CheckBreak() + } + if yyb1100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13990,42 +15502,52 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv8 := &x.Items - yym9 := z.DecBinary() - _ = yym9 + yyv1102 := &x.Items + yym1103 := z.DecBinary() + _ = yym1103 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv8), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1102), d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l } else { - yyb7 = r.CheckBreak() + yyb1100 = r.CheckBreak() } - if yyb7 { + if yyb1100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + if x.DefaultMode != nil { + x.DefaultMode = nil + } } else { - x.Name = string(r.DecodeString()) + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1105 := z.DecBinary() + _ = yym1105 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) + } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l } else { - yyb7 = r.CheckBreak() + yyb1100 = r.CheckBreak() } - if yyb7 { + if yyb1100 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1106 := z.EncBinary() + _ = yym1106 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1107 = 2 + for _, b := range yyq1107 { if b { - yynn2++ + yynn1107++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1107) + yynn1107 = 0 } - if yyr2 || yy2arr2 { + if yyr1107 || yy2arr1107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1110 := z.EncBinary() + _ = yym1110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr1107 || yy2arr1107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1113 := z.EncBinary() + _ = yym1113 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1119 := z.DecBinary() + _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1120 := r.ContainerType() + if yyct1120 == codecSelferValueTypeMap1234 { + yyl1120 := r.ReadMapStart() + if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1120, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1120 == codecSelferValueTypeArray1234 { + yyl1120 := r.ReadArrayStart() + if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1121Slc = r.DecodeBytes(yys1121Slc, true, true) + yys1121 := string(yys1121Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1126 int + var yyb1126 bool + var yyhl1126 bool = l >= 0 + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l } else { - yyb6 = r.CheckBreak() + yyb1126 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l } else { - yyb6 = r.CheckBreak() + yyb1126 = r.CheckBreak() } - if yyb6 { + 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()) } + 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 + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1130 := z.DecBinary() + _ = yym1130 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l } else { - yyb6 = r.CheckBreak() + yyb1126 = r.CheckBreak() } - if yyb6 { + if yyb1126 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1131 := z.EncBinary() + _ = yym1131 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.Name != "" - yyq2[1] = x.HostPort != 0 - yyq2[3] = x.Protocol != "" - yyq2[4] = x.HostIP != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1132 = 1 + for _, b := range yyq1132 { if b { - yynn2++ + yynn1132++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1132) + yynn1132 = 0 } - if yyr2 || yy2arr2 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1132[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1135 := z.EncBinary() + _ = yym1135 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1132[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1138 := z.EncBinary() + _ = yym1138 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } - if yyr2 || yy2arr2 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym1141 := z.EncBinary() + _ = yym1141 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } - if yyr2 || yy2arr2 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1132[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1132[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq1132[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1145 := z.EncBinary() + _ = yym1145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1146 := z.DecBinary() + _ = yym1146 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1147 := r.ContainerType() + if yyct1147 == codecSelferValueTypeMap1234 { + yyl1147 := r.ReadMapStart() + if yyl1147 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1147, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1147 == codecSelferValueTypeArray1234 { + yyl1147 := r.ReadArrayStart() + if yyl1147 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1148Slc = r.DecodeBytes(yys1148Slc, true, true) + yys1148 := string(yys1148Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj1154 int + var yyb1154 bool + var yyhl1154 bool = l >= 0 + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb9 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb9 { + 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()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb9 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb9 { + 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)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb9 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb9 { + 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)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb9 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb9 { + 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()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb9 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb9 { + 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 { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb9 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb9 { + if yyb1154 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1160 := z.EncBinary() + _ = yym1160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.ReadOnly != false - yyq2[3] = x.SubPath != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1161 = 2 + for _, b := range yyq1161 { if b { - yynn2++ + yynn1161++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1161) + yynn1161 = 0 } - if yyr2 || yy2arr2 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1164 := z.EncBinary() + _ = yym1164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1161[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1167 := z.EncBinary() + _ = yym1167 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr2 || yy2arr2 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym1170 := z.EncBinary() + _ = yym1170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } - if yyr2 || yy2arr2 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq1161[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1173 := z.EncBinary() + _ = yym1173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1174 := z.DecBinary() + _ = yym1174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1175 := r.ContainerType() + if yyct1175 == codecSelferValueTypeMap1234 { + yyl1175 := r.ReadMapStart() + if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1175, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1175 == codecSelferValueTypeArray1234 { + yyl1175 := r.ReadArrayStart() + if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) + yys1176 := string(yys1176Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1181 int + var yyb1181 bool + var yyhl1181 bool = l >= 0 + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb8 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb8 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb8 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb8 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb8 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb8 { + if yyb1181 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1186 := z.EncBinary() + _ = yym1186 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Value != "" - yyq2[2] = x.ValueFrom != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1187 = 1 + for _, b := range yyq1187 { if b { - yynn2++ + yynn1187++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1187) + yynn1187 = 0 } - if yyr2 || yy2arr2 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1190 := z.EncBinary() + _ = yym1190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1187[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1193 := z.EncBinary() + _ = yym1193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2 || yy2arr2 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1195 := z.DecBinary() + _ = yym1195 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1196 := r.ContainerType() + if yyct1196 == codecSelferValueTypeMap1234 { + yyl1196 := r.ReadMapStart() + if yyl1196 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1196, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1196 == codecSelferValueTypeArray1234 { + yyl1196 := r.ReadArrayStart() + if yyl1196 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1197Slc = r.DecodeBytes(yys1197Slc, true, true) + yys1197 := string(yys1197Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1201 int + var yyb1201 bool + var yyhl1201 bool = l >= 0 + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb7 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb7 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb7 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb7 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb7 { + if yyb1201 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1205 := z.EncBinary() + _ = yym1205 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.FieldRef != nil - yyq2[1] = x.ResourceFieldRef != nil - yyq2[2] = x.ConfigMapKeyRef != nil - yyq2[3] = x.SecretKeyRef != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1206 = 0 + for _, b := range yyq1206 { if b { - yynn2++ + yynn1206++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1206) + yynn1206 = 0 } - if yyr2 || yy2arr2 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1211 := z.DecBinary() + _ = yym1211 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1212 := r.ContainerType() + if yyct1212 == codecSelferValueTypeMap1234 { + yyl1212 := r.ReadMapStart() + if yyl1212 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1212, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1212 == codecSelferValueTypeArray1234 { + yyl1212 := r.ReadArrayStart() + if yyl1212 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1213Slc = r.DecodeBytes(yys1213Slc, true, true) + yys1213 := string(yys1213Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1218 int + var yyb1218 bool + var yyhl1218 bool = l >= 0 + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb8 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb8 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15408,13 +17008,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FieldRef.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb8 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb8 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15429,13 +17029,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb8 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb8 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15450,13 +17050,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMapKeyRef.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb8 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb8 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb8 { + if yyb1218 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1223 := z.EncBinary() + _ = yym1223 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1224 = 1 + for _, b := range yyq1224 { if b { - yynn2++ + yynn1224++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1224) + yynn1224 = 0 } - if yyr2 || yy2arr2 { + if yyr1224 || yy2arr1224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1224[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1227 := z.EncBinary() + _ = yym1227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1224 || yy2arr1224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1230 := z.EncBinary() + _ = yym1230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1231 := z.DecBinary() + _ = yym1231 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1232 := r.ContainerType() + if yyct1232 == codecSelferValueTypeMap1234 { + yyl1232 := r.ReadMapStart() + if yyl1232 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1232, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1232 == codecSelferValueTypeArray1234 { + yyl1232 := r.ReadArrayStart() + if yyl1232 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1233Slc = r.DecodeBytes(yys1233Slc, true, true) + yys1233 := string(yys1233Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1236 int + var yyb1236 bool + var yyhl1236 bool = l >= 0 + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb6 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb6 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb6 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb6 { + if yyb1236 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1239 := z.EncBinary() + _ = yym1239 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.ContainerName != "" - yyq2[2] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1240 = 1 + for _, b := range yyq1240 { if b { - yynn2++ + yynn1240++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1240) + yynn1240 = 0 } - if yyr2 || yy2arr2 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1240[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1243 := z.EncBinary() + _ = yym1243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } - if yyr2 || yy2arr2 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1246 := z.EncBinary() + _ = yym1246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr2 || yy2arr2 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.Divisor - yym11 := z.EncBinary() - _ = yym11 + if yyq1240[2] { + yy1248 := &x.Divisor + yym1249 := z.EncBinary() + _ = yym1249 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy1248) { + } else if !yym1249 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1248) } else { - z.EncFallback(yy10) + z.EncFallback(yy1248) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1240[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Divisor - yym13 := z.EncBinary() - _ = yym13 + yy1250 := &x.Divisor + yym1251 := z.EncBinary() + _ = yym1251 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy1250) { + } else if !yym1251 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1250) } else { - z.EncFallback(yy12) + z.EncFallback(yy1250) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1252 := z.DecBinary() + _ = yym1252 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1253 := r.ContainerType() + if yyct1253 == codecSelferValueTypeMap1234 { + yyl1253 := r.ReadMapStart() + if yyl1253 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1253, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1253 == codecSelferValueTypeArray1234 { + yyl1253 := r.ReadArrayStart() + if yyl1253 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1254Slc = r.DecodeBytes(yys1254Slc, true, true) + yys1254 := string(yys1254Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.Divisor - yym7 := z.DecBinary() - _ = yym7 + yyv1257 := &x.Divisor + yym1258 := z.DecBinary() + _ = yym1258 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv1257) { + } else if !yym1258 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1257) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv1257, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1259 int + var yyb1259 bool + var yyhl1259 bool = l >= 0 + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb8 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb8 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb8 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Divisor - yym12 := z.DecBinary() - _ = yym12 + yyv1262 := &x.Divisor + yym1263 := z.DecBinary() + _ = yym1263 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv1262) { + } else if !yym1263 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1262) } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv1262, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb8 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb8 { + if yyb1259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1259-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15988,54 +17588,35 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1264 := z.EncBinary() + _ = yym1264 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1265 = 1 + for _, b := range yyq1265 { if b { - yynn2++ + yynn1265++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1265) + yynn1265 = 0 } - if yyr2 || yy2arr2 { + if yyr1265 || yy2arr1265 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("key")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq1265[0] { + yym1267 := z.EncBinary() + _ = yym1267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16044,19 +17625,38 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1265[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1268 := z.EncBinary() + _ = yym1268 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr1265 || yy2arr1265 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1270 := z.EncBinary() + _ = yym1270 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1271 := z.EncBinary() + _ = yym1271 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1272 := z.DecBinary() + _ = yym1272 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1273 := r.ContainerType() + if yyct1273 == codecSelferValueTypeMap1234 { + yyl1273 := r.ReadMapStart() + if yyl1273 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1273, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1273 == codecSelferValueTypeArray1234 { + yyl1273 := r.ReadArrayStart() + if yyl1273 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,26 +17713,26 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1274Slc = r.DecodeBytes(yys1274Slc, true, true) + yys1274 := string(yys1274Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } + switch yys1274 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1274) + } // end switch yys1274 + } // end for yyj1274 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16140,53 +17740,53 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1277 int + var yyb1277 bool + var yyhl1277 bool = l >= 0 + yyj1277++ + if yyhl1277 { + yyb1277 = yyj1277 > l } else { - yyb6 = r.CheckBreak() + yyb1277 = r.CheckBreak() } - if yyb6 { + if yyb1277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Key = "" + x.Name = "" } else { - x.Key = string(r.DecodeString()) + x.Name = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1277++ + if yyhl1277 { + yyb1277 = yyj1277 > l } else { - yyb6 = r.CheckBreak() + yyb1277 = r.CheckBreak() } - if yyb6 { + if yyb1277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + x.Key = "" } else { - x.Name = string(r.DecodeString()) + x.Key = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1277++ + if yyhl1277 { + yyb1277 = yyj1277 > l } else { - yyb6 = r.CheckBreak() + yyb1277 = r.CheckBreak() } - if yyb6 { + if yyb1277 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1277-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16198,54 +17798,35 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1280 := z.EncBinary() + _ = yym1280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1281 = 1 + for _, b := range yyq1281 { if b { - yynn2++ + yynn1281++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1281) + yynn1281 = 0 } - if yyr2 || yy2arr2 { + if yyr1281 || yy2arr1281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("key")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq1281[0] { + yym1283 := z.EncBinary() + _ = yym1283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16254,19 +17835,38 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1281[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1284 := z.EncBinary() + _ = yym1284 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr1281 || yy2arr1281 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1286 := z.EncBinary() + _ = yym1286 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1287 := z.EncBinary() + _ = yym1287 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1288 := z.DecBinary() + _ = yym1288 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1289 := r.ContainerType() + if yyct1289 == codecSelferValueTypeMap1234 { + yyl1289 := r.ReadMapStart() + if yyl1289 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1289, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1289 == codecSelferValueTypeArray1234 { + yyl1289 := r.ReadArrayStart() + if yyl1289 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,26 +17923,26 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1290Slc = r.DecodeBytes(yys1290Slc, true, true) + yys1290 := string(yys1290Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } + switch yys1290 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1290) + } // end switch yys1290 + } // end for yyj1290 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16350,53 +17950,53 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1293 int + var yyb1293 bool + var yyhl1293 bool = l >= 0 + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb6 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb6 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Key = "" + x.Name = "" } else { - x.Key = string(r.DecodeString()) + x.Name = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb6 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb6 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + x.Key = "" } else { - x.Name = string(r.DecodeString()) + x.Key = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb6 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb6 { + if yyb1293 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1296 := z.EncBinary() + _ = yym1296 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1297 = 2 + for _, b := range yyq1297 { if b { - yynn2++ + yynn1297++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1297) + yynn1297 = 0 } - if yyr2 || yy2arr2 { + if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1300 := z.EncBinary() + _ = yym1300 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1303 := z.EncBinary() + _ = yym1303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1304 := z.DecBinary() + _ = yym1304 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1305 := r.ContainerType() + if yyct1305 == codecSelferValueTypeMap1234 { + yyl1305 := r.ReadMapStart() + if yyl1305 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1305, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1305 == codecSelferValueTypeArray1234 { + yyl1305 := r.ReadArrayStart() + if yyl1305 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1306Slc = r.DecodeBytes(yys1306Slc, true, true) + yys1306 := string(yys1306Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1309 int + var yyb1309 bool + var yyhl1309 bool = l >= 0 + yyj1309++ + if yyhl1309 { + yyb1309 = yyj1309 > l } else { - yyb6 = r.CheckBreak() + yyb1309 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1309++ + if yyhl1309 { + yyb1309 = yyj1309 > l } else { - yyb6 = r.CheckBreak() + yyb1309 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1309++ + if yyhl1309 { + yyb1309 = yyj1309 > l } else { - yyb6 = r.CheckBreak() + yyb1309 = r.CheckBreak() } - if yyb6 { + if yyb1309 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1312 := z.EncBinary() + _ = yym1312 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.Path != "" - yyq2[2] = x.Host != "" - yyq2[3] = x.Scheme != "" - yyq2[4] = len(x.HTTPHeaders) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1313 = 1 + for _, b := range yyq1313 { if b { - yynn2++ + yynn1313++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1313) + yynn1313 = 0 } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1313[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1316 := z.EncBinary() + _ = yym1316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Port - yym8 := z.EncBinary() - _ = yym8 + yy1318 := &x.Port + yym1319 := z.EncBinary() + _ = yym1319 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy1318) { + } else if !yym1319 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1318) } else { - z.EncFallback(yy7) + z.EncFallback(yy1318) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Port - yym10 := z.EncBinary() - _ = yym10 + yy1320 := &x.Port + yym1321 := z.EncBinary() + _ = yym1321 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy1320) { + } else if !yym1321 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1320) } else { - z.EncFallback(yy9) + z.EncFallback(yy1320) } } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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 yyq2[2] { + if yyq1313[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym1324 := z.EncBinary() + _ = yym1324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1313[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1313[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq1313[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym18 := z.EncBinary() - _ = yym18 + 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 yyq2[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 { - yym19 := z.EncBinary() - _ = yym19 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1329 := z.DecBinary() + _ = yym1329 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1330 := r.ContainerType() + if yyct1330 == codecSelferValueTypeMap1234 { + yyl1330 := r.ReadMapStart() + if yyl1330 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1330, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1330 == codecSelferValueTypeArray1234 { + yyl1330 := r.ReadArrayStart() + if yyl1330 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1331Slc = r.DecodeBytes(yys1331Slc, true, true) + yys1331 := string(yys1331Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Port - yym6 := z.DecBinary() - _ = yym6 + yyv1333 := &x.Port + yym1334 := z.DecBinary() + _ = yym1334 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv1333) { + } else if !yym1334 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1333) } else { - z.DecFallback(yyv5, 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 { - yyv9 := &x.HTTPHeaders - yym10 := z.DecBinary() - _ = yym10 + yyv1337 := &x.HTTPHeaders + yym1338 := z.DecBinary() + _ = yym1338 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv9), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1337), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj1339 int + var yyb1339 bool + var yyhl1339 bool = l >= 0 + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb11 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb11 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb11 { + 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 { - yyv13 := &x.Port - yym14 := z.DecBinary() - _ = yym14 + yyv1341 := &x.Port + yym1342 := z.DecBinary() + _ = yym1342 if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) + } else if z.HasExtensions() && z.DecExt(yyv1341) { + } else if !yym1342 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1341) } else { - z.DecFallback(yyv13, false) + z.DecFallback(yyv1341, false) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb11 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb11 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb11 { + 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()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb11 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb11 { + 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 { - yyv17 := &x.HTTPHeaders - yym18 := z.DecBinary() - _ = yym18 + yyv1345 := &x.HTTPHeaders + yym1346 := z.DecBinary() + _ = yym1346 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv17), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1345), d) } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb11 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb11 { + if yyb1339 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1349 := z.EncBinary() + _ = yym1349 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1350 = 1 + for _, b := range yyq1350 { if b { - yynn2++ + yynn1350++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1350) + yynn1350 = 0 } - if yyr2 || yy2arr2 { + if yyr1350 || yy2arr1350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Port - yym5 := z.EncBinary() - _ = yym5 + yy1352 := &x.Port + yym1353 := z.EncBinary() + _ = yym1353 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { - } else if !yym5 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4) + } else if z.HasExtensions() && z.EncExt(yy1352) { + } else if !yym1353 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1352) } else { - z.EncFallback(yy4) + z.EncFallback(yy1352) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Port - yym7 := z.EncBinary() - _ = yym7 + yy1354 := &x.Port + yym1355 := z.EncBinary() + _ = yym1355 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { - } else if !yym7 && z.IsJSONHandle() { - z.EncJSONMarshal(yy6) + } else if z.HasExtensions() && z.EncExt(yy1354) { + } else if !yym1355 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1354) } else { - z.EncFallback(yy6) + z.EncFallback(yy1354) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1356 := z.DecBinary() + _ = yym1356 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1357 := r.ContainerType() + if yyct1357 == codecSelferValueTypeMap1234 { + yyl1357 := r.ReadMapStart() + if yyl1357 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1357, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1357 == codecSelferValueTypeArray1234 { + yyl1357 := r.ReadArrayStart() + if yyl1357 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1358Slc = r.DecodeBytes(yys1358Slc, true, true) + yys1358 := string(yys1358Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1358 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv4 := &x.Port - yym5 := z.DecBinary() - _ = yym5 + yyv1359 := &x.Port + yym1360 := z.DecBinary() + _ = yym1360 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv1359) { + } else if !yym1360 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1359) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1359, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1361 int + var yyb1361 bool + var yyhl1361 bool = l >= 0 + yyj1361++ + if yyhl1361 { + yyb1361 = yyj1361 > l } else { - yyb6 = r.CheckBreak() + yyb1361 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Port - yym8 := z.DecBinary() - _ = yym8 + yyv1362 := &x.Port + yym1363 := z.DecBinary() + _ = yym1363 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv1362) { + } else if !yym1363 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1362) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv1362, false) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1361++ + if yyhl1361 { + yyb1361 = yyj1361 > l } else { - yyb6 = r.CheckBreak() + yyb1361 = r.CheckBreak() } - if yyb6 { + if yyb1361 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Command) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1365 = 0 + for _, b := range yyq1365 { if b { - yynn2++ + yynn1365++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1365) + yynn1365 = 0 } - if yyr2 || yy2arr2 { + if yyr1365 || yy2arr1365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1365[0] { if x.Command == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1369 := z.DecBinary() + _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1370 := r.ContainerType() + if yyct1370 == codecSelferValueTypeMap1234 { + yyl1370 := r.ReadMapStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1370, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1370 == codecSelferValueTypeArray1234 { + yyl1370 := r.ReadArrayStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) + yys1371 := string(yys1371Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1371 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { - yyv4 := &x.Command - yym5 := z.DecBinary() - _ = yym5 + yyv1372 := &x.Command + yym1373 := z.DecBinary() + _ = yym1373 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + z.F.DecSliceStringX(yyv1372, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1374 int + var yyb1374 bool + var yyhl1374 bool = l >= 0 + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb6 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Command - yym8 := z.DecBinary() - _ = yym8 + yyv1375 := &x.Command + yym1376 := z.DecBinary() + _ = yym1376 if false { } else { - z.F.DecSliceStringX(yyv7, false, d) + z.F.DecSliceStringX(yyv1375, false, d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb6 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb6 { + if yyb1374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17404,274 +19004,274 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1377 := z.EncBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.InitialDelaySeconds != 0 - yyq2[1] = x.TimeoutSeconds != 0 - yyq2[2] = x.PeriodSeconds != 0 - yyq2[3] = x.SuccessThreshold != 0 - yyq2[4] = x.FailureThreshold != 0 - yyq2[5] = x.Handler.Exec != nil && x.Exec != nil - yyq2[6] = x.Handler.HTTPGet != nil && x.HTTPGet != nil - yyq2[7] = x.Handler.TCPSocket != nil && x.TCPSocket != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1378 = 0 + for _, b := range yyq1378 { if b { - yynn2++ + yynn1378++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1378) + yynn1378 = 0 } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { + var yyn1379 bool + if x.Handler.Exec == nil { + yyn1379 = true + goto LABEL1379 + } + LABEL1379: + if yyr1378 || yy2arr1378 { + if yyn1379 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1378[0] { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } } else { - r.EncodeInt(int64(x.InitialDelaySeconds)) + r.EncodeNil() } - } else { - r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq1378[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) + r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { + if yyn1379 { + r.EncodeNil() } else { - r.EncodeInt(int64(x.InitialDelaySeconds)) + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { + var yyn1380 bool + if x.Handler.HTTPGet == nil { + yyn1380 = true + goto LABEL1380 + } + LABEL1380: + if yyr1378 || yy2arr1378 { + if yyn1380 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1378[1] { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } } else { - r.EncodeInt(int64(x.TimeoutSeconds)) + r.EncodeNil() } - } else { - r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq1378[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { + if yyn1380 { + r.EncodeNil() } else { - r.EncodeInt(int64(x.TimeoutSeconds)) + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 - if false { + var yyn1381 bool + if x.Handler.TCPSocket == nil { + yyn1381 = true + goto LABEL1381 + } + LABEL1381: + if yyr1378 || yy2arr1378 { + if yyn1381 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1378[2] { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } } else { - r.EncodeInt(int64(x.PeriodSeconds)) + r.EncodeNil() } - } else { - r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq1378[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { + if yyn1381 { + r.EncodeNil() } else { - r.EncodeInt(int64(x.PeriodSeconds)) + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } } } } - if yyr2 || yy2arr2 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq1378[3] { + yym1383 := z.EncBinary() + _ = yym1383 if false { } else { - r.EncodeInt(int64(x.SuccessThreshold)) + r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq1378[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) + r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1384 := z.EncBinary() + _ = yym1384 if false { } else { - r.EncodeInt(int64(x.SuccessThreshold)) + r.EncodeInt(int64(x.InitialDelaySeconds)) } } } - if yyr2 || yy2arr2 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq1378[4] { + yym1386 := z.EncBinary() + _ = yym1386 if false { } else { - r.EncodeInt(int64(x.FailureThreshold)) + r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq1378[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1387 := z.EncBinary() + _ = yym1387 if false { } else { - r.EncodeInt(int64(x.FailureThreshold)) + r.EncodeInt(int64(x.TimeoutSeconds)) } } } - var yyn18 bool - if x.Handler.Exec == nil { - yyn18 = true - goto LABEL18 - } - LABEL18: - if yyr2 || yy2arr2 { - if yyn18 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } + if yyr1378 || yy2arr1378 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1378[5] { + yym1389 := z.EncBinary() + _ = yym1389 + if false { } else { - r.EncodeNil() + r.EncodeInt(int64(x.PeriodSeconds)) } + } else { + r.EncodeInt(0) } } else { - if yyq2[5] { + if yyq1378[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exec")) + r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn18 { - r.EncodeNil() + yym1390 := z.EncBinary() + _ = yym1390 + if false { } else { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } + r.EncodeInt(int64(x.PeriodSeconds)) } } } - var yyn21 bool - if x.Handler.HTTPGet == nil { - yyn21 = true - goto LABEL21 - } - LABEL21: - if yyr2 || yy2arr2 { - if yyn21 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } + if yyr1378 || yy2arr1378 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1378[6] { + yym1392 := z.EncBinary() + _ = yym1392 + if false { } else { - r.EncodeNil() + r.EncodeInt(int64(x.SuccessThreshold)) } + } else { + r.EncodeInt(0) } } else { - if yyq2[6] { + if yyq1378[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpGet")) + r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn21 { - r.EncodeNil() + yym1393 := z.EncBinary() + _ = yym1393 + if false { } else { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } + r.EncodeInt(int64(x.SuccessThreshold)) } } } - var yyn24 bool - if x.Handler.TCPSocket == nil { - yyn24 = true - goto LABEL24 - } - LABEL24: - if yyr2 || yy2arr2 { - if yyn24 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } + if yyr1378 || yy2arr1378 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1378[7] { + yym1395 := z.EncBinary() + _ = yym1395 + if false { } else { - r.EncodeNil() + r.EncodeInt(int64(x.FailureThreshold)) } + } else { + r.EncodeInt(0) } } else { - if yyq2[7] { + if yyq1378[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) + r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn24 { - r.EncodeNil() + yym1396 := z.EncBinary() + _ = yym1396 + if false { } else { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } + r.EncodeInt(int64(x.FailureThreshold)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1397 := z.DecBinary() + _ = yym1397 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1398 := r.ContainerType() + if yyct1398 == codecSelferValueTypeMap1234 { + yyl1398 := r.ReadMapStart() + if yyl1398 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1398, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1398 == codecSelferValueTypeArray1234 { + yyl1398 := r.ReadArrayStart() + if yyl1398 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,40 +19328,10 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1399Slc = r.DecodeBytes(yys1399Slc, true, true) + yys1399 := string(yys1399Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "initialDelaySeconds": - if r.TryDecodeAsNil() { - x.InitialDelaySeconds = 0 - } else { - x.InitialDelaySeconds = int32(r.DecodeInt(32)) - } - case "timeoutSeconds": - if r.TryDecodeAsNil() { - x.TimeoutSeconds = 0 - } else { - x.TimeoutSeconds = int32(r.DecodeInt(32)) - } - case "periodSeconds": - if r.TryDecodeAsNil() { - x.PeriodSeconds = 0 - } else { - x.PeriodSeconds = int32(r.DecodeInt(32)) - } - case "successThreshold": - if r.TryDecodeAsNil() { - x.SuccessThreshold = 0 - } else { - x.SuccessThreshold = int32(r.DecodeInt(32)) - } - case "failureThreshold": - if r.TryDecodeAsNil() { - x.FailureThreshold = 0 - } else { - x.FailureThreshold = int32(r.DecodeInt(32)) - } + switch yys1399 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) @@ -17804,10 +19374,40 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.TCPSocket.CodecDecodeSelf(d) } + case "initialDelaySeconds": + if r.TryDecodeAsNil() { + x.InitialDelaySeconds = 0 + } else { + x.InitialDelaySeconds = int32(r.DecodeInt(32)) + } + case "timeoutSeconds": + if r.TryDecodeAsNil() { + x.TimeoutSeconds = 0 + } else { + x.TimeoutSeconds = int32(r.DecodeInt(32)) + } + case "periodSeconds": + if r.TryDecodeAsNil() { + x.PeriodSeconds = 0 + } else { + x.PeriodSeconds = int32(r.DecodeInt(32)) + } + case "successThreshold": + if r.TryDecodeAsNil() { + x.SuccessThreshold = 0 + } else { + x.SuccessThreshold = int32(r.DecodeInt(32)) + } + case "failureThreshold": + if r.TryDecodeAsNil() { + x.FailureThreshold = 0 + } else { + x.FailureThreshold = int32(r.DecodeInt(32)) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1399) + } // end switch yys1399 + } // end for yyj1399 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17815,173 +19415,173 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1408 int + var yyb1408 bool + var yyhl1408 bool = l >= 0 + if x.Handler.Exec == nil { + x.Handler.Exec = new(ExecAction) + } + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.InitialDelaySeconds = 0 + if x.Exec != nil { + x.Exec = nil + } } else { - x.InitialDelaySeconds = int32(r.DecodeInt(32)) + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + if x.Handler.HTTPGet == nil { + x.Handler.HTTPGet = new(HTTPGetAction) + } + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.TimeoutSeconds = 0 + if x.HTTPGet != nil { + x.HTTPGet = nil + } } else { - x.TimeoutSeconds = int32(r.DecodeInt(32)) + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + if x.Handler.TCPSocket == nil { + x.Handler.TCPSocket = new(TCPSocketAction) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.PeriodSeconds = 0 + if x.TCPSocket != nil { + x.TCPSocket = nil + } } else { - x.PeriodSeconds = int32(r.DecodeInt(32)) + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.SuccessThreshold = 0 + x.InitialDelaySeconds = 0 } else { - x.SuccessThreshold = int32(r.DecodeInt(32)) + x.InitialDelaySeconds = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.FailureThreshold = 0 + x.TimeoutSeconds = 0 } else { - x.FailureThreshold = int32(r.DecodeInt(32)) - } - if x.Handler.Exec == nil { - x.Handler.Exec = new(ExecAction) + x.TimeoutSeconds = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.Exec != nil { - x.Exec = nil - } + x.PeriodSeconds = 0 } else { - if x.Exec == nil { - x.Exec = new(ExecAction) - } - x.Exec.CodecDecodeSelf(d) - } - if x.Handler.HTTPGet == nil { - x.Handler.HTTPGet = new(HTTPGetAction) + x.PeriodSeconds = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.HTTPGet != nil { - x.HTTPGet = nil - } + x.SuccessThreshold = 0 } else { - if x.HTTPGet == nil { - x.HTTPGet = new(HTTPGetAction) - } - x.HTTPGet.CodecDecodeSelf(d) - } - if x.Handler.TCPSocket == nil { - x.Handler.TCPSocket = new(TCPSocketAction) + x.SuccessThreshold = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.TCPSocket != nil { - x.TCPSocket = nil - } + x.FailureThreshold = 0 } else { - if x.TCPSocket == nil { - x.TCPSocket = new(TCPSocketAction) - } - x.TCPSocket.CodecDecodeSelf(d) + x.FailureThreshold = int32(r.DecodeInt(32)) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb12 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb12 { + if yyb1408 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1421 := z.EncBinary() + _ = yym1421 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Add) != 0 - yyq2[1] = len(x.Drop) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1422 = 0 + for _, b := range yyq1422 { if b { - yynn2++ + yynn1422++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1422) + yynn1422 = 0 } - if yyr2 || yy2arr2 { + if yyr1422 || yy2arr1422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1422[0] { if x.Add == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1422 || yy2arr1422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1422[1] { if x.Drop == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1429 := z.DecBinary() + _ = yym1429 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1430 := r.ContainerType() + if yyct1430 == codecSelferValueTypeMap1234 { + yyl1430 := r.ReadMapStart() + if yyl1430 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1430, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1430 == codecSelferValueTypeArray1234 { + yyl1430 := r.ReadArrayStart() + if yyl1430 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1431Slc = r.DecodeBytes(yys1431Slc, true, true) + yys1431 := string(yys1431Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1431 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { - yyv4 := &x.Add - yym5 := z.DecBinary() - _ = yym5 + yyv1432 := &x.Add + yym1433 := z.DecBinary() + _ = yym1433 if false { } else { - h.decSliceCapability((*[]Capability)(yyv4), d) + h.decSliceCapability((*[]Capability)(yyv1432), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv6 := &x.Drop - yym7 := z.DecBinary() - _ = yym7 + yyv1434 := &x.Drop + yym1435 := z.DecBinary() + _ = yym1435 if false { } else { - h.decSliceCapability((*[]Capability)(yyv6), d) + h.decSliceCapability((*[]Capability)(yyv1434), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1436 int + var yyb1436 bool + var yyhl1436 bool = l >= 0 + yyj1436++ + if yyhl1436 { + yyb1436 = yyj1436 > l } else { - yyb8 = r.CheckBreak() + yyb1436 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.Add - yym10 := z.DecBinary() - _ = yym10 + yyv1437 := &x.Add + yym1438 := z.DecBinary() + _ = yym1438 if false { } else { - h.decSliceCapability((*[]Capability)(yyv9), d) + h.decSliceCapability((*[]Capability)(yyv1437), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1436++ + if yyhl1436 { + yyb1436 = yyj1436 > l } else { - yyb8 = r.CheckBreak() + yyb1436 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Drop - yym12 := z.DecBinary() - _ = yym12 + yyv1439 := &x.Drop + yym1440 := z.DecBinary() + _ = yym1440 if false { } else { - h.decSliceCapability((*[]Capability)(yyv11), d) + h.decSliceCapability((*[]Capability)(yyv1439), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1436++ + if yyhl1436 { + yyb1436 = yyj1436 > l } else { - yyb8 = r.CheckBreak() + yyb1436 = r.CheckBreak() } - if yyb8 { + if yyb1436 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1441 := z.EncBinary() + _ = yym1441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Limits) != 0 - yyq2[1] = len(x.Requests) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1442 = 0 + for _, b := range yyq1442 { if b { - yynn2++ + yynn1442++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1442) + yynn1442 = 0 } - if yyr2 || yy2arr2 { + if yyr1442 || yy2arr1442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1442 || yy2arr1442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1445 := z.DecBinary() + _ = yym1445 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1446 := r.ContainerType() + if yyct1446 == codecSelferValueTypeMap1234 { + yyl1446 := r.ReadMapStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1446, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1446 == codecSelferValueTypeArray1234 { + yyl1446 := r.ReadArrayStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1447Slc = r.DecodeBytes(yys1447Slc, true, true) + yys1447 := string(yys1447Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1447 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4 := &x.Limits - yyv4.CodecDecodeSelf(d) + yyv1448 := &x.Limits + yyv1448.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv5 := &x.Requests - yyv5.CodecDecodeSelf(d) + yyv1449 := &x.Requests + yyv1449.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1450 int + var yyb1450 bool + var yyhl1450 bool = l >= 0 + yyj1450++ + if yyhl1450 { + yyb1450 = yyj1450 > l } else { - yyb6 = r.CheckBreak() + yyb1450 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Limits - yyv7.CodecDecodeSelf(d) + yyv1451 := &x.Limits + yyv1451.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1450++ + if yyhl1450 { + yyb1450 = yyj1450 > l } else { - yyb6 = r.CheckBreak() + yyb1450 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.Requests - yyv8.CodecDecodeSelf(d) + yyv1452 := &x.Requests + yyv1452.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1450++ + if yyhl1450 { + yyb1450 = yyj1450 > l } else { - yyb6 = r.CheckBreak() + yyb1450 = r.CheckBreak() } - if yyb6 { + if yyb1450 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1453 := z.EncBinary() + _ = yym1453 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Image != "" - yyq2[2] = len(x.Command) != 0 - yyq2[3] = len(x.Args) != 0 - yyq2[4] = x.WorkingDir != "" - yyq2[5] = len(x.Ports) != 0 - yyq2[6] = len(x.Env) != 0 - yyq2[7] = true - yyq2[8] = len(x.VolumeMounts) != 0 - yyq2[9] = x.LivenessProbe != nil - yyq2[10] = x.ReadinessProbe != nil - yyq2[11] = x.Lifecycle != nil - yyq2[12] = x.TerminationMessagePath != "" - yyq2[13] = x.ImagePullPolicy != "" - yyq2[14] = x.SecurityContext != nil - yyq2[15] = x.Stdin != false - yyq2[16] = x.StdinOnce != false - yyq2[17] = x.TTY != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1454 = 1 + for _, b := range yyq1454 { if b { - yynn2++ + yynn1454++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1454) + yynn1454 = 0 } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1457 := z.EncBinary() + _ = yym1457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1460 := z.EncBinary() + _ = yym1460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1454[2] { if x.Command == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + 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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1454[3] { if x.Args == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[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 { - yym14 := z.EncBinary() - _ = yym14 + 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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq1454[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1469 := z.EncBinary() + _ = yym1469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq1454[5] { if x.Ports == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[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 { - yym20 := z.EncBinary() - _ = yym20 + 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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq1454[6] { if x.Env == nil { r.EncodeNil() } else { - yym22 := z.EncBinary() - _ = yym22 + 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 yyq2[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 { - yym23 := z.EncBinary() - _ = yym23 + 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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yy25 := &x.Resources - yy25.CodecEncodeSelf(e) + if yyq1454[7] { + yy1477 := &x.Resources + yy1477.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[7] { + if yyq1454[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy27 := &x.Resources - yy27.CodecEncodeSelf(e) + yy1478 := &x.Resources + yy1478.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq1454[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { - yym30 := z.EncBinary() - _ = yym30 + 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 yyq2[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 { - yym31 := z.EncBinary() - _ = yym31 + 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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - yym42 := z.EncBinary() - _ = yym42 + 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 yyq2[12] { + if yyq1454[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym43 := z.EncBinary() - _ = yym43 + yym1487 := z.EncBinary() + _ = yym1487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { + if yyq1454[13] { x.ImagePullPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[13] { + if yyq1454[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { - yym51 := z.EncBinary() - _ = yym51 + 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 yyq2[15] { + if yyq1454[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym52 := z.EncBinary() - _ = yym52 + yym1492 := z.EncBinary() + _ = yym1492 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { - yym54 := z.EncBinary() - _ = yym54 + 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 yyq2[16] { + if yyq1454[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym55 := z.EncBinary() - _ = yym55 + yym1495 := z.EncBinary() + _ = yym1495 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } - if yyr2 || yy2arr2 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { - yym57 := z.EncBinary() - _ = yym57 + 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 yyq2[17] { + if yyq1454[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym58 := z.EncBinary() - _ = yym58 + yym1498 := z.EncBinary() + _ = yym1498 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1499 := z.DecBinary() + _ = yym1499 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1500 := r.ContainerType() + if yyct1500 == codecSelferValueTypeMap1234 { + yyl1500 := r.ReadMapStart() + if yyl1500 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1500, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1500 == codecSelferValueTypeArray1234 { + yyl1500 := r.ReadArrayStart() + if yyl1500 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1501Slc = r.DecodeBytes(yys1501Slc, true, true) + yys1501 := string(yys1501Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.Command - yym7 := z.DecBinary() - _ = yym7 + yyv1504 := &x.Command + yym1505 := z.DecBinary() + _ = yym1505 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv1504, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { - yyv8 := &x.Args - yym9 := z.DecBinary() - _ = yym9 + yyv1506 := &x.Args + yym1507 := z.DecBinary() + _ = yym1507 if false { } else { - z.F.DecSliceStringX(yyv8, 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 { - yyv11 := &x.Ports - yym12 := z.DecBinary() - _ = yym12 + yyv1509 := &x.Ports + yym1510 := z.DecBinary() + _ = yym1510 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv11), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1509), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { - yyv13 := &x.Env - yym14 := z.DecBinary() - _ = yym14 + yyv1511 := &x.Env + yym1512 := z.DecBinary() + _ = yym1512 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv13), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1511), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv15 := &x.Resources - yyv15.CodecDecodeSelf(d) + yyv1513 := &x.Resources + yyv1513.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv16 := &x.VolumeMounts - yym17 := z.DecBinary() - _ = yym17 + yyv1514 := &x.VolumeMounts + yym1515 := z.DecBinary() + _ = yym1515 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv16), 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj27 int - var yyb27 bool - var yyhl27 bool = l >= 0 - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + var yyj1525 int + var yyb1525 bool + var yyhl1525 bool = l >= 0 + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyv30 := &x.Command - yym31 := z.DecBinary() - _ = yym31 + yyv1528 := &x.Command + yym1529 := z.DecBinary() + _ = yym1529 if false { } else { - z.F.DecSliceStringX(yyv30, false, d) + z.F.DecSliceStringX(yyv1528, false, d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyv32 := &x.Args - yym33 := z.DecBinary() - _ = yym33 + yyv1530 := &x.Args + yym1531 := z.DecBinary() + _ = yym1531 if false { } else { - z.F.DecSliceStringX(yyv32, false, d) + z.F.DecSliceStringX(yyv1530, false, d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyv35 := &x.Ports - yym36 := z.DecBinary() - _ = yym36 + yyv1533 := &x.Ports + yym1534 := z.DecBinary() + _ = yym1534 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv35), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1533), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyv37 := &x.Env - yym38 := z.DecBinary() - _ = yym38 + yyv1535 := &x.Env + yym1536 := z.DecBinary() + _ = yym1536 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv37), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1535), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyv39 := &x.Resources - yyv39.CodecDecodeSelf(d) + yyv1537 := &x.Resources + yyv1537.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyv40 := &x.VolumeMounts - yym41 := z.DecBinary() - _ = yym41 + yyv1538 := &x.VolumeMounts + yym1539 := z.DecBinary() + _ = yym1539 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv40), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1538), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19447,13 +21047,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.LivenessProbe.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19468,13 +21068,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ReadinessProbe.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19489,13 +21089,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Lifecycle.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19542,13 +21142,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + 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 { - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb27 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb27 { + if yyb1525 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj27-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1549 := z.EncBinary() + _ = yym1549 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Exec != nil - yyq2[1] = x.HTTPGet != nil - yyq2[2] = x.TCPSocket != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1550 = 0 + for _, b := range yyq1550 { if b { - yynn2++ + yynn1550++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1550) + yynn1550 = 0 } - if yyr2 || yy2arr2 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1554 := z.DecBinary() + _ = yym1554 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1555 := r.ContainerType() + if yyct1555 == codecSelferValueTypeMap1234 { + yyl1555 := r.ReadMapStart() + if yyl1555 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1555, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1555 == codecSelferValueTypeArray1234 { + yyl1555 := r.ReadArrayStart() + if yyl1555 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1556Slc = r.DecodeBytes(yys1556Slc, true, true) + yys1556 := string(yys1556Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1560 int + var yyb1560 bool + var yyhl1560 bool = l >= 0 + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb7 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb7 { + if yyb1560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19837,13 +21437,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Exec.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb7 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb7 { + if yyb1560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19858,13 +21458,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HTTPGet.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb7 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb7 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb7 { + if yyb1560 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1564 := z.EncBinary() + _ = yym1564 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.PostStart != nil - yyq2[1] = x.PreStop != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1565 = 0 + for _, b := range yyq1565 { if b { - yynn2++ + yynn1565++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1565) + yynn1565 = 0 } - if yyr2 || yy2arr2 { + if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1568 := z.DecBinary() + _ = yym1568 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1569 := r.ContainerType() + if yyct1569 == codecSelferValueTypeMap1234 { + yyl1569 := r.ReadMapStart() + if yyl1569 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1569, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1569 == codecSelferValueTypeArray1234 { + yyl1569 := r.ReadArrayStart() + if yyl1569 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1570Slc = r.DecodeBytes(yys1570Slc, true, true) + yys1570 := string(yys1570Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1573 int + var yyb1573 bool + var yyhl1573 bool = l >= 0 + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb6 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb6 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20091,13 +21691,13 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PostStart.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb6 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb6 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb6 { + if yyb1573 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1578 := z.EncBinary() + _ = yym1578 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Reason != "" - yyq2[1] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1579 = 0 + for _, b := range yyq1579 { if b { - yynn2++ + yynn1579++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1579) + yynn1579 = 0 } - if yyr2 || yy2arr2 { + if yyr1579 || yy2arr1579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1579[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1582 := z.EncBinary() + _ = yym1582 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr1579 || yy2arr1579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1579[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1585 := z.EncBinary() + _ = yym1585 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1586 := z.DecBinary() + _ = yym1586 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1587 := r.ContainerType() + if yyct1587 == codecSelferValueTypeMap1234 { + yyl1587 := r.ReadMapStart() + if yyl1587 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1587, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1587 == codecSelferValueTypeArray1234 { + yyl1587 := r.ReadArrayStart() + if yyl1587 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1588Slc = r.DecodeBytes(yys1588Slc, true, true) + yys1588 := string(yys1588Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1591 int + var yyb1591 bool + var yyhl1591 bool = l >= 0 + yyj1591++ + if yyhl1591 { + yyb1591 = yyj1591 > l } else { - yyb6 = r.CheckBreak() + yyb1591 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1591++ + if yyhl1591 { + yyb1591 = yyj1591 > l } else { - yyb6 = r.CheckBreak() + yyb1591 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1591++ + if yyhl1591 { + yyb1591 = yyj1591 > l } else { - yyb6 = r.CheckBreak() + yyb1591 = r.CheckBreak() } - if yyb6 { + if yyb1591 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1594 := z.EncBinary() + _ = yym1594 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1595 = 0 + for _, b := range yyq1595 { if b { - yynn2++ + yynn1595++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1595) + yynn1595 = 0 } - if yyr2 || yy2arr2 { + if yyr1595 || yy2arr1595 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.StartedAt - yym5 := z.EncBinary() - _ = yym5 + if yyq1595[0] { + yy1597 := &x.StartedAt + yym1598 := z.EncBinary() + _ = yym1598 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { - } else if yym5 { - z.EncBinaryMarshal(yy4) - } else if !yym5 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4) + } else if z.HasExtensions() && z.EncExt(yy1597) { + } else if yym1598 { + z.EncBinaryMarshal(yy1597) + } else if !yym1598 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1597) } else { - z.EncFallback(yy4) + z.EncFallback(yy1597) } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1595[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.StartedAt - yym7 := z.EncBinary() - _ = yym7 + yy1599 := &x.StartedAt + yym1600 := z.EncBinary() + _ = yym1600 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { - } else if yym7 { - z.EncBinaryMarshal(yy6) - } else if !yym7 && z.IsJSONHandle() { - z.EncJSONMarshal(yy6) + } else if z.HasExtensions() && z.EncExt(yy1599) { + } else if yym1600 { + z.EncBinaryMarshal(yy1599) + } else if !yym1600 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1599) } else { - z.EncFallback(yy6) + z.EncFallback(yy1599) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1601 := z.DecBinary() + _ = yym1601 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1602 := r.ContainerType() + if yyct1602 == codecSelferValueTypeMap1234 { + yyl1602 := r.ReadMapStart() + if yyl1602 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1602, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1602 == codecSelferValueTypeArray1234 { + yyl1602 := r.ReadArrayStart() + if yyl1602 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1603Slc = r.DecodeBytes(yys1603Slc, true, true) + yys1603 := string(yys1603Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1603 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv4 := &x.StartedAt - yym5 := z.DecBinary() - _ = yym5 + yyv1604 := &x.StartedAt + yym1605 := z.DecBinary() + _ = yym1605 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if yym5 { - z.DecBinaryUnmarshal(yyv4) - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv1604) { + } else if yym1605 { + z.DecBinaryUnmarshal(yyv1604) + } else if !yym1605 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1604) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1604, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1606 int + var yyb1606 bool + var yyhl1606 bool = l >= 0 + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb6 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.StartedAt - yym8 := z.DecBinary() - _ = yym8 + yyv1607 := &x.StartedAt + yym1608 := z.DecBinary() + _ = yym1608 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if yym8 { - z.DecBinaryUnmarshal(yyv7) - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv1607) { + } else if yym1608 { + z.DecBinaryUnmarshal(yyv1607) + } else if !yym1608 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1607) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv1607, false) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb6 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb6 { + if yyb1606 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1609 := z.EncBinary() + _ = yym1609 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Signal != 0 - yyq2[2] = x.Reason != "" - yyq2[3] = x.Message != "" - yyq2[4] = true - yyq2[5] = true - yyq2[6] = x.ContainerID != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1610 = 1 + for _, b := range yyq1610 { if b { - yynn2++ + yynn1610++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1610) + yynn1610 = 0 } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1613 := z.EncBinary() + _ = yym1613 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1610[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1616 := z.EncBinary() + _ = yym1616 if false { } else { r.EncodeInt(int64(x.Signal)) } } } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1610[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1619 := z.EncBinary() + _ = yym1619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq1610[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1622 := z.EncBinary() + _ = yym1622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy16 := &x.StartedAt - yym17 := z.EncBinary() - _ = yym17 + if yyq1610[4] { + yy1624 := &x.StartedAt + yym1625 := z.EncBinary() + _ = yym1625 if false { - } else if z.HasExtensions() && z.EncExt(yy16) { - } else if yym17 { - z.EncBinaryMarshal(yy16) - } else if !yym17 && z.IsJSONHandle() { - z.EncJSONMarshal(yy16) + } else if z.HasExtensions() && z.EncExt(yy1624) { + } else if yym1625 { + z.EncBinaryMarshal(yy1624) + } else if !yym1625 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1624) } else { - z.EncFallback(yy16) + z.EncFallback(yy1624) } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq1610[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy18 := &x.StartedAt - yym19 := z.EncBinary() - _ = yym19 + yy1626 := &x.StartedAt + yym1627 := z.EncBinary() + _ = yym1627 if false { - } else if z.HasExtensions() && z.EncExt(yy18) { - } else if yym19 { - z.EncBinaryMarshal(yy18) - } else if !yym19 && z.IsJSONHandle() { - z.EncJSONMarshal(yy18) + } else if z.HasExtensions() && z.EncExt(yy1626) { + } else if yym1627 { + z.EncBinaryMarshal(yy1626) + } else if !yym1627 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1626) } else { - z.EncFallback(yy18) + z.EncFallback(yy1626) } } } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yy21 := &x.FinishedAt - yym22 := z.EncBinary() - _ = yym22 + if yyq1610[5] { + yy1629 := &x.FinishedAt + yym1630 := z.EncBinary() + _ = yym1630 if false { - } else if z.HasExtensions() && z.EncExt(yy21) { - } else if yym22 { - z.EncBinaryMarshal(yy21) - } else if !yym22 && z.IsJSONHandle() { - z.EncJSONMarshal(yy21) + } else if z.HasExtensions() && z.EncExt(yy1629) { + } else if yym1630 { + z.EncBinaryMarshal(yy1629) + } else if !yym1630 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1629) } else { - z.EncFallback(yy21) + z.EncFallback(yy1629) } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq1610[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy23 := &x.FinishedAt - yym24 := z.EncBinary() - _ = yym24 + yy1631 := &x.FinishedAt + yym1632 := z.EncBinary() + _ = yym1632 if false { - } else if z.HasExtensions() && z.EncExt(yy23) { - } else if yym24 { - z.EncBinaryMarshal(yy23) - } else if !yym24 && z.IsJSONHandle() { - z.EncJSONMarshal(yy23) + } else if z.HasExtensions() && z.EncExt(yy1631) { + } else if yym1632 { + z.EncBinaryMarshal(yy1631) + } else if !yym1632 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1631) } else { - z.EncFallback(yy23) + z.EncFallback(yy1631) } } } - if yyr2 || yy2arr2 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym26 := z.EncBinary() - _ = yym26 + 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 yyq2[6] { + if yyq1610[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym27 := z.EncBinary() - _ = yym27 + yym1635 := z.EncBinary() + _ = yym1635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1636 := z.DecBinary() + _ = yym1636 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1637 := r.ContainerType() + if yyct1637 == codecSelferValueTypeMap1234 { + yyl1637 := r.ReadMapStart() + if yyl1637 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1637, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1637 == codecSelferValueTypeArray1234 { + yyl1637 := r.ReadArrayStart() + if yyl1637 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1638Slc = r.DecodeBytes(yys1638Slc, true, true) + yys1638 := string(yys1638Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv8 := &x.StartedAt - yym9 := z.DecBinary() - _ = yym9 + yyv1643 := &x.StartedAt + yym1644 := z.DecBinary() + _ = yym1644 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv1643) { + } else if yym1644 { + z.DecBinaryUnmarshal(yyv1643) + } else if !yym1644 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1643) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv1643, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv10 := &x.FinishedAt - yym11 := z.DecBinary() - _ = yym11 + yyv1645 := &x.FinishedAt + yym1646 := z.DecBinary() + _ = yym1646 if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else if yym11 { - z.DecBinaryUnmarshal(yyv10) - } else if !yym11 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv10) + } else if z.HasExtensions() && z.DecExt(yyv1645) { + } else if yym1646 { + z.DecBinaryUnmarshal(yyv1645) + } else if !yym1646 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1645) } else { - z.DecFallback(yyv10, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj1648 int + var yyb1648 bool + var yyhl1648 bool = l >= 0 + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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 { - yyv18 := &x.StartedAt - yym19 := z.DecBinary() - _ = yym19 + yyv1653 := &x.StartedAt + yym1654 := z.DecBinary() + _ = yym1654 if false { - } else if z.HasExtensions() && z.DecExt(yyv18) { - } else if yym19 { - z.DecBinaryUnmarshal(yyv18) - } else if !yym19 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv18) + } else if z.HasExtensions() && z.DecExt(yyv1653) { + } else if yym1654 { + z.DecBinaryUnmarshal(yyv1653) + } else if !yym1654 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1653) } else { - z.DecFallback(yyv18, false) + z.DecFallback(yyv1653, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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 { - yyv20 := &x.FinishedAt - yym21 := z.DecBinary() - _ = yym21 + yyv1655 := &x.FinishedAt + yym1656 := z.DecBinary() + _ = yym1656 if false { - } else if z.HasExtensions() && z.DecExt(yyv20) { - } else if yym21 { - z.DecBinaryUnmarshal(yyv20) - } else if !yym21 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv20) + } else if z.HasExtensions() && z.DecExt(yyv1655) { + } else if yym1656 { + z.DecBinaryUnmarshal(yyv1655) + } else if !yym1656 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1655) } else { - z.DecFallback(yyv20, false) + z.DecFallback(yyv1655, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + 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 { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb13 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb13 { + if yyb1648 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1658 := z.EncBinary() + _ = yym1658 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Waiting != nil - yyq2[1] = x.Running != nil - yyq2[2] = x.Terminated != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1659 = 0 + for _, b := range yyq1659 { if b { - yynn2++ + yynn1659++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1659) + yynn1659 = 0 } - if yyr2 || yy2arr2 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1663 := z.DecBinary() + _ = yym1663 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1664 := r.ContainerType() + if yyct1664 == codecSelferValueTypeMap1234 { + yyl1664 := r.ReadMapStart() + if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1664, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1664 == codecSelferValueTypeArray1234 { + yyl1664 := r.ReadArrayStart() + if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1665Slc = r.DecodeBytes(yys1665Slc, true, true) + yys1665 := string(yys1665Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1669 int + var yyb1669 bool + var yyhl1669 bool = l >= 0 + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb7 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb7 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21323,13 +22923,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Waiting.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb7 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb7 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21344,13 +22944,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Running.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb7 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb7 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb7 { + if yyb1669 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1673 := z.EncBinary() + _ = yym1673 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = true - yyq2[2] = true - yyq2[7] = x.ContainerID != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 5 - for _, b := range yyq2 { + yynn1674 = 5 + for _, b := range yyq1674 { if b { - yynn2++ + yynn1674++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1674) + yynn1674 = 0 } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1677 := z.EncBinary() + _ = yym1677 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy7 := &x.State - yy7.CodecEncodeSelf(e) + if yyq1674[1] { + yy1679 := &x.State + yy1679.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1674[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.State - yy9.CodecEncodeSelf(e) + yy1680 := &x.State + yy1680.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy12 := &x.LastTerminationState - yy12.CodecEncodeSelf(e) + if yyq1674[2] { + yy1682 := &x.LastTerminationState + yy1682.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1674[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.LastTerminationState - yy14.CodecEncodeSelf(e) + yy1683 := &x.LastTerminationState + yy1683.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym17 := z.EncBinary() - _ = yym17 + 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) - yym18 := z.EncBinary() - _ = yym18 + yym1686 := z.EncBinary() + _ = yym1686 if false { } else { r.EncodeBool(bool(x.Ready)) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym20 := z.EncBinary() - _ = yym20 + 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) - yym21 := z.EncBinary() - _ = yym21 + yym1689 := z.EncBinary() + _ = yym1689 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym23 := z.EncBinary() - _ = yym23 + 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) - yym24 := z.EncBinary() - _ = yym24 + yym1692 := z.EncBinary() + _ = yym1692 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym26 := z.EncBinary() - _ = yym26 + 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) - yym27 := z.EncBinary() - _ = yym27 + yym1695 := z.EncBinary() + _ = yym1695 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } - if yyr2 || yy2arr2 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym29 := z.EncBinary() - _ = yym29 + 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 yyq2[7] { + if yyq1674[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym30 := z.EncBinary() - _ = yym30 + yym1698 := z.EncBinary() + _ = yym1698 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1699 := z.DecBinary() + _ = yym1699 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1700 := r.ContainerType() + if yyct1700 == codecSelferValueTypeMap1234 { + yyl1700 := r.ReadMapStart() + if yyl1700 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1700, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1700 == codecSelferValueTypeArray1234 { + yyl1700 := r.ReadArrayStart() + if yyl1700 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1701Slc = r.DecodeBytes(yys1701Slc, true, true) + yys1701 := string(yys1701Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.State - yyv5.CodecDecodeSelf(d) + yyv1703 := &x.State + yyv1703.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv6 := &x.LastTerminationState - yyv6.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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1710 int + var yyb1710 bool + var yyhl1710 bool = l >= 0 + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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 { - yyv14 := &x.State - yyv14.CodecDecodeSelf(d) + yyv1712 := &x.State + yyv1712.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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 { - yyv15 := &x.LastTerminationState - yyv15.CodecDecodeSelf(d) + yyv1713 := &x.LastTerminationState + yyv1713.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + 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 { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb12 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb12 { + if yyb1710 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1723 := z.EncBinary() + _ = yym1723 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1724 = 2 + for _, b := range yyq1724 { if b { - yynn2++ + yynn1724++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1724) + yynn1724 = 0 } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq1724[2] { + yy1728 := &x.LastProbeTime + yym1729 := z.EncBinary() + _ = yym1729 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy1728) { + } else if yym1729 { + z.EncBinaryMarshal(yy1728) + } else if !yym1729 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1728) } else { - z.EncFallback(yy10) + z.EncFallback(yy1728) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1724[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy1730 := &x.LastProbeTime + yym1731 := z.EncBinary() + _ = yym1731 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy1730) { + } else if yym1731 { + z.EncBinaryMarshal(yy1730) + } else if !yym1731 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1730) } else { - z.EncFallback(yy12) + z.EncFallback(yy1730) } } } - if yyr2 || yy2arr2 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq1724[3] { + yy1733 := &x.LastTransitionTime + yym1734 := z.EncBinary() + _ = yym1734 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy1733) { + } else if yym1734 { + z.EncBinaryMarshal(yy1733) + } else if !yym1734 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1733) } else { - z.EncFallback(yy15) + z.EncFallback(yy1733) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq1724[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy1735 := &x.LastTransitionTime + yym1736 := z.EncBinary() + _ = yym1736 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy1735) { + } else if yym1736 { + z.EncBinaryMarshal(yy1735) + } else if !yym1736 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1735) } else { - z.EncFallback(yy17) + z.EncFallback(yy1735) } } } - if yyr2 || yy2arr2 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + 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 yyq2[4] { + if yyq1724[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym1739 := z.EncBinary() + _ = yym1739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + 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 yyq2[5] { + if yyq1724[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym1742 := z.EncBinary() + _ = yym1742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1743 := z.DecBinary() + _ = yym1743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1744 := r.ContainerType() + if yyct1744 == codecSelferValueTypeMap1234 { + yyl1744 := r.ReadMapStart() + if yyl1744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1744, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1744 == codecSelferValueTypeArray1234 { + yyl1744 := r.ReadArrayStart() + if yyl1744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1745Slc = r.DecodeBytes(yys1745Slc, true, true) + yys1745 := string(yys1745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv1748 := &x.LastProbeTime + yym1749 := z.DecBinary() + _ = yym1749 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv1748) { + } else if yym1749 { + z.DecBinaryUnmarshal(yyv1748) + } else if !yym1749 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1748) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv1748, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv1750 := &x.LastTransitionTime + yym1751 := z.DecBinary() + _ = yym1751 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv1750) { + } else if yym1751 { + z.DecBinaryUnmarshal(yyv1750) + } else if !yym1751 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1750) } else { - z.DecFallback(yyv8, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1754 int + var yyb1754 bool + var yyhl1754 bool = l >= 0 + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + 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 { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv1757 := &x.LastProbeTime + yym1758 := z.DecBinary() + _ = yym1758 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv1757) { + } else if yym1758 { + z.DecBinaryUnmarshal(yyv1757) + } else if !yym1758 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1757) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv1757, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + 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 { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv1759 := &x.LastTransitionTime + yym1760 := z.DecBinary() + _ = yym1760 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv1759) { + } else if yym1760 { + z.DecBinaryUnmarshal(yyv1759) + } else if !yym1760 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1759) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv1759, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + 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()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + 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 { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb12 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb12 { + if yyb1754 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1767 := z.EncBinary() + _ = yym1767 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1768 = 1 + for _, b := range yyq1768 { if b { - yynn2++ + yynn1768++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1768) + yynn1768 = 0 } - if yyr2 || yy2arr2 { + if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym1771 := z.EncBinary() + _ = yym1771 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1772 := z.DecBinary() + _ = yym1772 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1773 := r.ContainerType() + if yyct1773 == codecSelferValueTypeMap1234 { + yyl1773 := r.ReadMapStart() + if yyl1773 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1773, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1773 == codecSelferValueTypeArray1234 { + yyl1773 := r.ReadArrayStart() + if yyl1773 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1774Slc = r.DecodeBytes(yys1774Slc, true, true) + yys1774 := string(yys1774Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1774 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv4 := &x.NodeSelectorTerms - yym5 := z.DecBinary() - _ = yym5 + yyv1775 := &x.NodeSelectorTerms + yym1776 := z.DecBinary() + _ = yym1776 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv4), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1775), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1777 int + var yyb1777 bool + var yyhl1777 bool = l >= 0 + yyj1777++ + if yyhl1777 { + yyb1777 = yyj1777 > l } else { - yyb6 = r.CheckBreak() + yyb1777 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.NodeSelectorTerms - yym8 := z.DecBinary() - _ = yym8 + yyv1778 := &x.NodeSelectorTerms + yym1779 := z.DecBinary() + _ = yym1779 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv7), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1778), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1777++ + if yyhl1777 { + yyb1777 = yyj1777 > l } else { - yyb6 = r.CheckBreak() + yyb1777 = r.CheckBreak() } - if yyb6 { + if yyb1777 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1780 := z.EncBinary() + _ = yym1780 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1781 = 1 + for _, b := range yyq1781 { if b { - yynn2++ + yynn1781++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1781) + yynn1781 = 0 } - if yyr2 || yy2arr2 { + if yyr1781 || yy2arr1781 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym1784 := z.EncBinary() + _ = yym1784 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1785 := z.DecBinary() + _ = yym1785 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1786 := r.ContainerType() + if yyct1786 == codecSelferValueTypeMap1234 { + yyl1786 := r.ReadMapStart() + if yyl1786 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1786, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1786 == codecSelferValueTypeArray1234 { + yyl1786 := r.ReadArrayStart() + if yyl1786 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1787Slc = r.DecodeBytes(yys1787Slc, true, true) + yys1787 := string(yys1787Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1787 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv4 := &x.MatchExpressions - yym5 := z.DecBinary() - _ = yym5 + yyv1788 := &x.MatchExpressions + yym1789 := z.DecBinary() + _ = yym1789 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv4), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1788), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1790 int + var yyb1790 bool + var yyhl1790 bool = l >= 0 + yyj1790++ + if yyhl1790 { + yyb1790 = yyj1790 > l } else { - yyb6 = r.CheckBreak() + yyb1790 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.MatchExpressions - yym8 := z.DecBinary() - _ = yym8 + yyv1791 := &x.MatchExpressions + yym1792 := z.DecBinary() + _ = yym1792 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv7), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1791), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1790++ + if yyhl1790 { + yyb1790 = yyj1790 > l } else { - yyb6 = r.CheckBreak() + yyb1790 = r.CheckBreak() } - if yyb6 { + if yyb1790 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1793 := z.EncBinary() + _ = yym1793 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = len(x.Values) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1794 = 2 + for _, b := range yyq1794 { if b { - yynn2++ + yynn1794++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1794) + yynn1794 = 0 } - if yyr2 || yy2arr2 { + if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1797 := z.EncBinary() + _ = yym1797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1794[2] { if x.Values == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1802 := z.DecBinary() + _ = yym1802 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1803 := r.ContainerType() + if yyct1803 == codecSelferValueTypeMap1234 { + yyl1803 := r.ReadMapStart() + if yyl1803 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1803, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1803 == codecSelferValueTypeArray1234 { + yyl1803 := r.ReadArrayStart() + if yyl1803 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1804Slc = r.DecodeBytes(yys1804Slc, true, true) + yys1804 := string(yys1804Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv6 := &x.Values - yym7 := z.DecBinary() - _ = yym7 + yyv1807 := &x.Values + yym1808 := z.DecBinary() + _ = yym1808 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv1807, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1809 int + var yyb1809 bool + var yyhl1809 bool = l >= 0 + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb8 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb8 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb8 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Values - yym12 := z.DecBinary() - _ = yym12 + yyv1812 := &x.Values + yym1813 := z.DecBinary() + _ = yym1813 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv1812, false, d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb8 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb8 { + if yyb1809 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1816 := z.EncBinary() + _ = yym1816 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.NodeAffinity != nil - yyq2[1] = x.PodAffinity != nil - yyq2[2] = x.PodAntiAffinity != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1817 = 0 + for _, b := range yyq1817 { if b { - yynn2++ + yynn1817++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1817) + yynn1817 = 0 } - if yyr2 || yy2arr2 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1821 := z.DecBinary() + _ = yym1821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1822 := r.ContainerType() + if yyct1822 == codecSelferValueTypeMap1234 { + yyl1822 := r.ReadMapStart() + if yyl1822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1822, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1822 == codecSelferValueTypeArray1234 { + yyl1822 := r.ReadArrayStart() + if yyl1822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1823Slc = r.DecodeBytes(yys1823Slc, true, true) + yys1823 := string(yys1823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1827 int + var yyb1827 bool + var yyhl1827 bool = l >= 0 + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb7 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb7 { + if yyb1827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23268,13 +24868,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NodeAffinity.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb7 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb7 { + if yyb1827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23289,13 +24889,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PodAffinity.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb7 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb7 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb7 { + if yyb1827 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1831 := z.EncBinary() + _ = yym1831 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1832 = 0 + for _, b := range yyq1832 { if b { - yynn2++ + yynn1832++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1832) + yynn1832 = 0 } - if yyr2 || yy2arr2 { + if yyr1832 || yy2arr1832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1832[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1832 || yy2arr1832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1832[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1839 := z.DecBinary() + _ = yym1839 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1840 := r.ContainerType() + if yyct1840 == codecSelferValueTypeMap1234 { + yyl1840 := r.ReadMapStart() + if yyl1840 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1840, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1840 == codecSelferValueTypeArray1234 { + yyl1840 := r.ReadArrayStart() + if yyl1840 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1841Slc = r.DecodeBytes(yys1841Slc, true, true) + yys1841 := string(yys1841Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1841 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv4 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym5 := z.DecBinary() - _ = yym5 + yyv1842 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1843 := z.DecBinary() + _ = yym1843 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv4), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1842), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv6 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym7 := z.DecBinary() - _ = yym7 + yyv1844 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1845 := z.DecBinary() + _ = yym1845 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv6), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1844), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1846 int + var yyb1846 bool + var yyhl1846 bool = l >= 0 + yyj1846++ + if yyhl1846 { + yyb1846 = yyj1846 > l } else { - yyb8 = r.CheckBreak() + yyb1846 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym10 := z.DecBinary() - _ = yym10 + yyv1847 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1848 := z.DecBinary() + _ = yym1848 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv9), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1847), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1846++ + if yyhl1846 { + yyb1846 = yyj1846 > l } else { - yyb8 = r.CheckBreak() + yyb1846 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym12 := z.DecBinary() - _ = yym12 + yyv1849 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1850 := z.DecBinary() + _ = yym1850 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv11), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1849), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1846++ + if yyhl1846 { + yyb1846 = yyj1846 > l } else { - yyb8 = r.CheckBreak() + yyb1846 = r.CheckBreak() } - if yyb8 { + if yyb1846 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1851 := z.EncBinary() + _ = yym1851 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1852 = 0 + for _, b := range yyq1852 { if b { - yynn2++ + yynn1852++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1852) + yynn1852 = 0 } - if yyr2 || yy2arr2 { + if yyr1852 || yy2arr1852 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1852[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1852 || yy2arr1852 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1852[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1859 := z.DecBinary() + _ = yym1859 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1860 := r.ContainerType() + if yyct1860 == codecSelferValueTypeMap1234 { + yyl1860 := r.ReadMapStart() + if yyl1860 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1860, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1860 == codecSelferValueTypeArray1234 { + yyl1860 := r.ReadArrayStart() + if yyl1860 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1861Slc = r.DecodeBytes(yys1861Slc, true, true) + yys1861 := string(yys1861Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1861 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv4 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym5 := z.DecBinary() - _ = yym5 + yyv1862 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1863 := z.DecBinary() + _ = yym1863 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv4), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1862), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv6 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym7 := z.DecBinary() - _ = yym7 + yyv1864 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1865 := z.DecBinary() + _ = yym1865 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv6), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1864), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1866 int + var yyb1866 bool + var yyhl1866 bool = l >= 0 + yyj1866++ + if yyhl1866 { + yyb1866 = yyj1866 > l } else { - yyb8 = r.CheckBreak() + yyb1866 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym10 := z.DecBinary() - _ = yym10 + yyv1867 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1868 := z.DecBinary() + _ = yym1868 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv9), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1867), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1866++ + if yyhl1866 { + yyb1866 = yyj1866 > l } else { - yyb8 = r.CheckBreak() + yyb1866 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym12 := z.DecBinary() - _ = yym12 + yyv1869 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1870 := z.DecBinary() + _ = yym1870 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv11), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1869), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1866++ + if yyhl1866 { + yyb1866 = yyj1866 > l } else { - yyb8 = r.CheckBreak() + yyb1866 = r.CheckBreak() } - if yyb8 { + if yyb1866 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1871 := z.EncBinary() + _ = yym1871 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1872 = 2 + for _, b := range yyq1872 { if b { - yynn2++ + yynn1872++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1872) + yynn1872 = 0 } - if yyr2 || yy2arr2 { + if yyr1872 || yy2arr1872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1875 := z.EncBinary() + _ = yym1875 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr2 || yy2arr2 { + if yyr1872 || yy2arr1872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.PodAffinityTerm - yy7.CodecEncodeSelf(e) + yy1877 := &x.PodAffinityTerm + yy1877.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.PodAffinityTerm - yy9.CodecEncodeSelf(e) + yy1878 := &x.PodAffinityTerm + yy1878.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1879 := z.DecBinary() + _ = yym1879 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1880 := r.ContainerType() + if yyct1880 == codecSelferValueTypeMap1234 { + yyl1880 := r.ReadMapStart() + if yyl1880 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1880, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1880 == codecSelferValueTypeArray1234 { + yyl1880 := r.ReadArrayStart() + if yyl1880 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1881Slc = r.DecodeBytes(yys1881Slc, true, true) + yys1881 := string(yys1881Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.PodAffinityTerm - yyv5.CodecDecodeSelf(d) + yyv1883 := &x.PodAffinityTerm + yyv1883.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1884 int + var yyb1884 bool + var yyhl1884 bool = l >= 0 + yyj1884++ + if yyhl1884 { + yyb1884 = yyj1884 > l } else { - yyb6 = r.CheckBreak() + yyb1884 = r.CheckBreak() } - if yyb6 { + 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)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1884++ + if yyhl1884 { + yyb1884 = yyj1884 > l } else { - yyb6 = r.CheckBreak() + yyb1884 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.PodAffinityTerm - yyv8.CodecDecodeSelf(d) + yyv1886 := &x.PodAffinityTerm + yyv1886.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1884++ + if yyhl1884 { + yyb1884 = yyj1884 > l } else { - yyb6 = r.CheckBreak() + yyb1884 = r.CheckBreak() } - if yyb6 { + if yyb1884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1887 := z.EncBinary() + _ = yym1887 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.LabelSelector != nil - yyq2[2] = x.TopologyKey != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1888 = 1 + for _, b := range yyq1888 { if b { - yynn2++ + yynn1888++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1888) + yynn1888 = 0 } - if yyr2 || yy2arr2 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1888[0] { if x.LabelSelector == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 { - yym8 := z.EncBinary() - _ = yym8 + yym1894 := z.EncBinary() + _ = yym1894 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } - if yyr2 || yy2arr2 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1888[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1897 := z.EncBinary() + _ = yym1897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1898 := z.DecBinary() + _ = yym1898 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1899 := r.ContainerType() + if yyct1899 == codecSelferValueTypeMap1234 { + yyl1899 := r.ReadMapStart() + if yyl1899 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1899, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1899 == codecSelferValueTypeArray1234 { + yyl1899 := r.ReadArrayStart() + if yyl1899 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1900Slc = r.DecodeBytes(yys1900Slc, true, true) + yys1900 := string(yys1900Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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) } - yym5 := z.DecBinary() - _ = yym5 + 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 { - yyv6 := &x.Namespaces - yym7 := z.DecBinary() - _ = yym7 + yyv1903 := &x.Namespaces + yym1904 := z.DecBinary() + _ = yym1904 if false { } else { - z.F.DecSliceStringX(yyv6, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj1906 int + var yyb1906 bool + var yyhl1906 bool = l >= 0 + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb9 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb9 { + 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) } - yym11 := z.DecBinary() - _ = yym11 + yym1908 := z.DecBinary() + _ = yym1908 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb9 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb9 { + 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 { - yyv12 := &x.Namespaces - yym13 := z.DecBinary() - _ = yym13 + yyv1909 := &x.Namespaces + yym1910 := z.DecBinary() + _ = yym1910 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv1909, false, d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb9 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb9 { + 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 { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb9 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb9 { + if yyb1906 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1912 := z.EncBinary() + _ = yym1912 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil - yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1913 = 0 + for _, b := range yyq1913 { if b { - yynn2++ + yynn1913++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1913) + yynn1913 = 0 } - if yyr2 || yy2arr2 { + if yyr1913 || yy2arr1913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1913 || yy2arr1913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1913[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1918 := z.DecBinary() + _ = yym1918 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1919 := r.ContainerType() + if yyct1919 == codecSelferValueTypeMap1234 { + yyl1919 := r.ReadMapStart() + if yyl1919 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1919, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1919 == codecSelferValueTypeArray1234 { + yyl1919 := r.ReadArrayStart() + if yyl1919 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1920Slc = r.DecodeBytes(yys1920Slc, true, true) + yys1920 := string(yys1920Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym6 := z.DecBinary() - _ = yym6 + yyv1922 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1923 := z.DecBinary() + _ = yym1923 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv5), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1922), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1924 int + var yyb1924 bool + var yyhl1924 bool = l >= 0 + yyj1924++ + if yyhl1924 { + yyb1924 = yyj1924 > l } else { - yyb7 = r.CheckBreak() + yyb1924 = r.CheckBreak() } - if yyb7 { + if yyb1924 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24554,13 +26154,13 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1924++ + if yyhl1924 { + yyb1924 = yyj1924 > l } else { - yyb7 = r.CheckBreak() + yyb1924 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym10 := z.DecBinary() - _ = yym10 + yyv1926 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1927 := z.DecBinary() + _ = yym1927 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv9), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1926), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1924++ + if yyhl1924 { + yyb1924 = yyj1924 > l } else { - yyb7 = r.CheckBreak() + yyb1924 = r.CheckBreak() } - if yyb7 { + if yyb1924 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1928 := z.EncBinary() + _ = yym1928 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1929 = 2 + for _, b := range yyq1929 { if b { - yynn2++ + yynn1929++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1929) + yynn1929 = 0 } - if yyr2 || yy2arr2 { + if yyr1929 || yy2arr1929 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1932 := z.EncBinary() + _ = yym1932 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr2 || yy2arr2 { + if yyr1929 || yy2arr1929 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Preference - yy7.CodecEncodeSelf(e) + yy1934 := &x.Preference + yy1934.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Preference - yy9.CodecEncodeSelf(e) + yy1935 := &x.Preference + yy1935.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1936 := z.DecBinary() + _ = yym1936 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1937 := r.ContainerType() + if yyct1937 == codecSelferValueTypeMap1234 { + yyl1937 := r.ReadMapStart() + if yyl1937 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1937, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1937 == codecSelferValueTypeArray1234 { + yyl1937 := r.ReadArrayStart() + if yyl1937 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1938Slc = r.DecodeBytes(yys1938Slc, true, true) + yys1938 := string(yys1938Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Preference - yyv5.CodecDecodeSelf(d) + yyv1940 := &x.Preference + yyv1940.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1941 int + var yyb1941 bool + var yyhl1941 bool = l >= 0 + yyj1941++ + if yyhl1941 { + yyb1941 = yyj1941 > l } else { - yyb6 = r.CheckBreak() + yyb1941 = r.CheckBreak() } - if yyb6 { + 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)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1941++ + if yyhl1941 { + yyb1941 = yyj1941 > l } else { - yyb6 = r.CheckBreak() + yyb1941 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.Preference - yyv8.CodecDecodeSelf(d) + yyv1943 := &x.Preference + yyv1943.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1941++ + if yyhl1941 { + yyb1941 = yyj1941 > l } else { - yyb6 = r.CheckBreak() + yyb1941 = r.CheckBreak() } - if yyb6 { + if yyb1941 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1944 := z.EncBinary() + _ = yym1944 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Value != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1945 = 2 + for _, b := range yyq1945 { if b { - yynn2++ + yynn1945++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1945) + yynn1945 = 0 } - if yyr2 || yy2arr2 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1948 := z.EncBinary() + _ = yym1948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq1945[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1951 := z.EncBinary() + _ = yym1951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1953 := z.DecBinary() + _ = yym1953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1954 := r.ContainerType() + if yyct1954 == codecSelferValueTypeMap1234 { + yyl1954 := r.ReadMapStart() + if yyl1954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1954, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1954 == codecSelferValueTypeArray1234 { + yyl1954 := r.ReadArrayStart() + if yyl1954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1955Slc = r.DecodeBytes(yys1955Slc, true, true) + yys1955 := string(yys1955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1959 int + var yyb1959 bool + var yyhl1959 bool = l >= 0 + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb7 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb7 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb7 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb7 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb7 { + if yyb1959 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1965 := z.EncBinary() + _ = yym1965 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Key != "" - yyq2[1] = x.Operator != "" - yyq2[2] = x.Value != "" - yyq2[3] = x.Effect != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1966 = 0 + for _, b := range yyq1966 { if b { - yynn2++ + yynn1966++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1966) + yynn1966 = 0 } - if yyr2 || yy2arr2 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq1966[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1969 := z.EncBinary() + _ = yym1969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } - if yyr2 || yy2arr2 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1966[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1966[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq1966[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1973 := z.EncBinary() + _ = yym1973 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2 || yy2arr2 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1966[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1966[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1975 := z.DecBinary() + _ = yym1975 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1976 := r.ContainerType() + if yyct1976 == codecSelferValueTypeMap1234 { + yyl1976 := r.ReadMapStart() + if yyl1976 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1976, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1976 == codecSelferValueTypeArray1234 { + yyl1976 := r.ReadArrayStart() + if yyl1976 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1977Slc = r.DecodeBytes(yys1977Slc, true, true) + yys1977 := string(yys1977Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1982 int + var yyb1982 bool + var yyhl1982 bool = l >= 0 + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb8 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb8 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb8 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb8 { + 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()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb8 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb8 { + 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 { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb8 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb8 { + if yyb1982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1989 := z.EncBinary() + _ = yym1989 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [17]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Volumes) != 0 - yyq2[2] = x.RestartPolicy != "" - yyq2[3] = x.TerminationGracePeriodSeconds != nil - yyq2[4] = x.ActiveDeadlineSeconds != nil - yyq2[5] = x.DNSPolicy != "" - yyq2[6] = len(x.NodeSelector) != 0 - yyq2[7] = x.ServiceAccountName != "" - yyq2[8] = x.DeprecatedServiceAccount != "" - yyq2[9] = x.NodeName != "" - yyq2[10] = x.HostNetwork != false - yyq2[11] = x.HostPID != false - yyq2[12] = x.HostIPC != false - yyq2[13] = x.SecurityContext != nil - yyq2[14] = len(x.ImagePullSecrets) != 0 - yyq2[15] = x.Hostname != "" - yyq2[16] = x.Subdomain != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1990 = 1 + for _, b := range yyq1990 { if b { - yynn2++ + yynn1990++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1990) + yynn1990 = 0 } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1990[0] { if x.Volumes == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 { - yym8 := z.EncBinary() - _ = yym8 + yym1996 := z.EncBinary() + _ = yym1996 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1990[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq1990[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1990[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy13 := *x.TerminationGracePeriodSeconds - yym14 := z.EncBinary() - _ = yym14 + yy1999 := *x.TerminationGracePeriodSeconds + yym2000 := z.EncBinary() + _ = yym2000 if false { } else { - r.EncodeInt(int64(yy13)) + r.EncodeInt(int64(yy1999)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy15 := *x.TerminationGracePeriodSeconds - yym16 := z.EncBinary() - _ = yym16 + yy2001 := *x.TerminationGracePeriodSeconds + yym2002 := z.EncBinary() + _ = yym2002 if false { } else { - r.EncodeInt(int64(yy15)) + r.EncodeInt(int64(yy2001)) } } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq1990[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy18 := *x.ActiveDeadlineSeconds - yym19 := z.EncBinary() - _ = yym19 + yy2004 := *x.ActiveDeadlineSeconds + yym2005 := z.EncBinary() + _ = yym2005 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy2004)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy20 := *x.ActiveDeadlineSeconds - yym21 := z.EncBinary() - _ = yym21 + yy2006 := *x.ActiveDeadlineSeconds + yym2007 := z.EncBinary() + _ = yym2007 if false { } else { - r.EncodeInt(int64(yy20)) + r.EncodeInt(int64(yy2006)) } } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq1990[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq1990[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq1990[6] { if x.NodeSelector == nil { r.EncodeNil() } else { - yym26 := z.EncBinary() - _ = yym26 + 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 yyq2[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 { - yym27 := z.EncBinary() - _ = yym27 + 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 yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym29 := z.EncBinary() - _ = yym29 + 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 yyq2[7] { + if yyq1990[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym30 := z.EncBinary() - _ = yym30 + yym2014 := z.EncBinary() + _ = yym2014 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym32 := z.EncBinary() - _ = yym32 + 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 yyq2[8] { + if yyq1990[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym33 := z.EncBinary() - _ = yym33 + yym2017 := z.EncBinary() + _ = yym2017 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yym35 := z.EncBinary() - _ = yym35 + 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 yyq2[9] { + if yyq1990[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 + yym2020 := z.EncBinary() + _ = yym2020 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - yym38 := z.EncBinary() - _ = yym38 + 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 yyq2[10] { + if yyq1990[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym39 := z.EncBinary() - _ = yym39 + yym2023 := z.EncBinary() + _ = yym2023 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { - yym41 := z.EncBinary() - _ = yym41 + 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 yyq2[11] { + if yyq1990[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym42 := z.EncBinary() - _ = yym42 + yym2026 := z.EncBinary() + _ = yym2026 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - yym44 := z.EncBinary() - _ = yym44 + 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 yyq2[12] { + if yyq1990[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym45 := z.EncBinary() - _ = yym45 + yym2029 := z.EncBinary() + _ = yym2029 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { + if yyq1990[14] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym50 := z.EncBinary() - _ = yym50 + 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 yyq2[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 { - yym51 := z.EncBinary() - _ = yym51 + 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 yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { - yym53 := z.EncBinary() - _ = yym53 + 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 yyq2[15] { + if yyq1990[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym54 := z.EncBinary() - _ = yym54 + yym2036 := z.EncBinary() + _ = yym2036 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2 || yy2arr2 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { - yym56 := z.EncBinary() - _ = yym56 + 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 yyq2[16] { + if yyq1990[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym57 := z.EncBinary() - _ = yym57 + yym2039 := z.EncBinary() + _ = yym2039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2040 := z.DecBinary() + _ = yym2040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2041 := r.ContainerType() + if yyct2041 == codecSelferValueTypeMap1234 { + yyl2041 := r.ReadMapStart() + if yyl2041 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2041, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2041 == codecSelferValueTypeArray1234 { + yyl2041 := r.ReadArrayStart() + if yyl2041 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2042Slc = r.DecodeBytes(yys2042Slc, true, true) + yys2042 := string(yys2042Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2042 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv4 := &x.Volumes - yym5 := z.DecBinary() - _ = yym5 + yyv2043 := &x.Volumes + yym2044 := z.DecBinary() + _ = yym2044 if false { } else { - h.decSliceVolume((*[]Volume)(yyv4), d) + h.decSliceVolume((*[]Volume)(yyv2043), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv6 := &x.Containers - yym7 := z.DecBinary() - _ = yym7 + yyv2045 := &x.Containers + yym2046 := z.DecBinary() + _ = yym2046 if false { } else { - h.decSliceContainer((*[]Container)(yyv6), 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) } - yym10 := z.DecBinary() - _ = yym10 + 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) } - yym12 := z.DecBinary() - _ = yym12 + 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 { - yyv14 := &x.NodeSelector - yym15 := z.DecBinary() - _ = yym15 + yyv2053 := &x.NodeSelector + yym2054 := z.DecBinary() + _ = yym2054 if false { } else { - z.F.DecMapStringStringX(yyv14, 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 { - yyv23 := &x.ImagePullSecrets - yym24 := z.DecBinary() - _ = yym24 + yyv2062 := &x.ImagePullSecrets + yym2063 := z.DecBinary() + _ = yym2063 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv23), 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj27 int - var yyb27 bool - var yyhl27 bool = l >= 0 - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + var yyj2066 int + var yyb2066 bool + var yyhl2066 bool = l >= 0 + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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 { - yyv28 := &x.Volumes - yym29 := z.DecBinary() - _ = yym29 + yyv2067 := &x.Volumes + yym2068 := z.DecBinary() + _ = yym2068 if false { } else { - h.decSliceVolume((*[]Volume)(yyv28), d) + h.decSliceVolume((*[]Volume)(yyv2067), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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 { - yyv30 := &x.Containers - yym31 := z.DecBinary() - _ = yym31 + yyv2069 := &x.Containers + yym2070 := z.DecBinary() + _ = yym2070 if false { } else { - h.decSliceContainer((*[]Container)(yyv30), d) + h.decSliceContainer((*[]Container)(yyv2069), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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) } - yym34 := z.DecBinary() - _ = yym34 + yym2073 := z.DecBinary() + _ = yym2073 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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) } - yym36 := z.DecBinary() - _ = yym36 + yym2075 := z.DecBinary() + _ = yym2075 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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 { - yyv38 := &x.NodeSelector - yym39 := z.DecBinary() - _ = yym39 + yyv2077 := &x.NodeSelector + yym2078 := z.DecBinary() + _ = yym2078 if false { } else { - z.F.DecMapStringStringX(yyv38, false, d) + z.F.DecMapStringStringX(yyv2077, false, d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26363,13 +27963,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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 { - yyv47 := &x.ImagePullSecrets - yym48 := z.DecBinary() - _ = yym48 + yyv2086 := &x.ImagePullSecrets + yym2087 := z.DecBinary() + _ = yym2087 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv47), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2086), d) } } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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()) } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + 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 { - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb27 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb27 { + if yyb2066 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj27-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2090 := z.EncBinary() + _ = yym2090 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.SELinuxOptions != nil - yyq2[1] = x.RunAsUser != nil - yyq2[2] = x.RunAsNonRoot != nil - yyq2[3] = len(x.SupplementalGroups) != 0 - yyq2[4] = x.FSGroup != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2091 = 0 + for _, b := range yyq2091 { if b { - yynn2++ + yynn2091++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2091) + yynn2091 = 0 } - if yyr2 || yy2arr2 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2091[1] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy7 := *x.RunAsUser - yym8 := z.EncBinary() - _ = yym8 + yy2094 := *x.RunAsUser + yym2095 := z.EncBinary() + _ = yym2095 if false { } else { - r.EncodeInt(int64(yy7)) + r.EncodeInt(int64(yy2094)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy9 := *x.RunAsUser - yym10 := z.EncBinary() - _ = yym10 + yy2096 := *x.RunAsUser + yym2097 := z.EncBinary() + _ = yym2097 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy2096)) } } } } - if yyr2 || yy2arr2 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2091[2] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy12 := *x.RunAsNonRoot - yym13 := z.EncBinary() - _ = yym13 + yy2099 := *x.RunAsNonRoot + yym2100 := z.EncBinary() + _ = yym2100 if false { } else { - r.EncodeBool(bool(yy12)) + r.EncodeBool(bool(yy2099)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy14 := *x.RunAsNonRoot - yym15 := z.EncBinary() - _ = yym15 + yy2101 := *x.RunAsNonRoot + yym2102 := z.EncBinary() + _ = yym2102 if false { } else { - r.EncodeBool(bool(yy14)) + r.EncodeBool(bool(yy2101)) } } } } - if yyr2 || yy2arr2 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq2091[3] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym17 := z.EncBinary() - _ = yym17 + 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 yyq2[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 { - yym18 := z.EncBinary() - _ = yym18 + 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 yyr2 || yy2arr2 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq2091[4] { if x.FSGroup == nil { r.EncodeNil() } else { - yy20 := *x.FSGroup - yym21 := z.EncBinary() - _ = yym21 + yy2107 := *x.FSGroup + yym2108 := z.EncBinary() + _ = yym2108 if false { } else { - r.EncodeInt(int64(yy20)) + r.EncodeInt(int64(yy2107)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy22 := *x.FSGroup - yym23 := z.EncBinary() - _ = yym23 + yy2109 := *x.FSGroup + yym2110 := z.EncBinary() + _ = yym2110 if false { } else { - r.EncodeInt(int64(yy22)) + r.EncodeInt(int64(yy2109)) } } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2111 := z.DecBinary() + _ = yym2111 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2112 := r.ContainerType() + if yyct2112 == codecSelferValueTypeMap1234 { + yyl2112 := r.ReadMapStart() + if yyl2112 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2112, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2112 == codecSelferValueTypeArray1234 { + yyl2112 := r.ReadArrayStart() + if yyl2112 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2113Slc = r.DecodeBytes(yys2113Slc, true, true) + yys2113 := string(yys2113Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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) } - yym6 := z.DecBinary() - _ = yym6 + 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) } - yym8 := z.DecBinary() - _ = yym8 + 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 { - yyv9 := &x.SupplementalGroups - yym10 := z.DecBinary() - _ = yym10 + yyv2119 := &x.SupplementalGroups + yym2120 := z.DecBinary() + _ = yym2120 if false { } else { - z.F.DecSliceInt64X(yyv9, 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) } - yym12 := z.DecBinary() - _ = yym12 + yym2122 := z.DecBinary() + _ = yym2122 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj2123 int + var yyb2123 bool + var yyhl2123 bool = l >= 0 + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb13 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb13 { + if yyb2123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26796,13 +28396,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb13 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb13 { + 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) } - yym16 := z.DecBinary() - _ = yym16 + yym2126 := z.DecBinary() + _ = yym2126 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb13 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb13 { + 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) } - yym18 := z.DecBinary() - _ = yym18 + yym2128 := z.DecBinary() + _ = yym2128 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb13 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb13 { + 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 { - yyv19 := &x.SupplementalGroups - yym20 := z.DecBinary() - _ = yym20 + yyv2129 := &x.SupplementalGroups + yym2130 := z.DecBinary() + _ = yym2130 if false { } else { - z.F.DecSliceInt64X(yyv19, false, d) + z.F.DecSliceInt64X(yyv2129, false, d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb13 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb13 { + 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) } - yym22 := z.DecBinary() - _ = yym22 + yym2132 := z.DecBinary() + _ = yym2132 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb13 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb13 { + if yyb2123 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2133 := z.EncBinary() + _ = yym2133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - yyq2[1] = len(x.Conditions) != 0 - yyq2[2] = x.Message != "" - yyq2[3] = x.Reason != "" - yyq2[4] = x.HostIP != "" - yyq2[5] = x.PodIP != "" - yyq2[6] = x.StartTime != nil - yyq2[7] = len(x.ContainerStatuses) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2134 = 0 + for _, b := range yyq2134 { if b { - yynn2++ + yynn2134++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2134) + yynn2134 = 0 } - if yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2134[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2134[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq2134[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2141 := z.EncBinary() + _ = yym2141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[3] { + if yyq2134[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2144 := z.EncBinary() + _ = yym2144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[4] { + if yyq2134[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym2147 := z.EncBinary() + _ = yym2147 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq2134[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym2150 := z.EncBinary() + _ = yym2150 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq2134[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym22 := z.EncBinary() - _ = yym22 + yym2152 := z.EncBinary() + _ = yym2152 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym22 { + } else if yym2152 { z.EncBinaryMarshal(x.StartTime) - } else if !yym22 && 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 yyq2[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 { - yym23 := z.EncBinary() - _ = yym23 + yym2153 := z.EncBinary() + _ = yym2153 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym23 { + } else if yym2153 { z.EncBinaryMarshal(x.StartTime) - } else if !yym23 && 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 yyr2 || yy2arr2 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq2134[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[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 { - yym26 := z.EncBinary() - _ = yym26 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2157 := z.DecBinary() + _ = yym2157 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2158 := r.ContainerType() + if yyct2158 == codecSelferValueTypeMap1234 { + yyl2158 := r.ReadMapStart() + if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2158, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2158 == codecSelferValueTypeArray1234 { + yyl2158 := r.ReadArrayStart() + if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2159Slc = r.DecodeBytes(yys2159Slc, true, true) + yys2159 := string(yys2159Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Conditions - yym6 := z.DecBinary() - _ = yym6 + yyv2161 := &x.Conditions + yym2162 := z.DecBinary() + _ = yym2162 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv5), 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) } - yym12 := z.DecBinary() - _ = yym12 + yym2168 := z.DecBinary() + _ = yym2168 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym12 { + } else if yym2168 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym12 && 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 { - yyv13 := &x.ContainerStatuses - yym14 := z.DecBinary() - _ = yym14 + yyv2169 := &x.ContainerStatuses + yym2170 := z.DecBinary() + _ = yym2170 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv13), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2169), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj15 int - var yyb15 bool - var yyhl15 bool = l >= 0 - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + var yyj2171 int + var yyb2171 bool + var yyhl2171 bool = l >= 0 + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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 { - yyv17 := &x.Conditions - yym18 := z.DecBinary() - _ = yym18 + yyv2173 := &x.Conditions + yym2174 := z.DecBinary() + _ = yym2174 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv17), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2173), d) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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()) } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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) } - yym24 := z.DecBinary() - _ = yym24 + yym2180 := z.DecBinary() + _ = yym2180 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym24 { + } else if yym2180 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym24 && z.IsJSONHandle() { + } else if !yym2180 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + 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 { - yyv25 := &x.ContainerStatuses - yym26 := z.DecBinary() - _ = yym26 + yyv2181 := &x.ContainerStatuses + yym2182 := z.DecBinary() + _ = yym2182 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv25), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2181), d) } } for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb15 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb15 { + if yyb2171 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj15-1, "") + z.DecStructFieldNotFound(yyj2171-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27502,72 +29102,38 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2183 := z.EncBinary() + _ = yym2183 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2184 = 0 + for _, b := range yyq2184 { if b { - yynn2++ + yynn2184++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn2184) + yynn2184 = 0 } - if yyr2 || yy2arr2 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2184[0] { + yym2186 := z.EncBinary() + _ = yym2186 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -27576,23 +29142,23 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2184[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym2187 := z.EncBinary() + _ = yym2187 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2184[1] { + yym2189 := z.EncBinary() + _ = yym2189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -27601,19 +29167,53 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2184[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym2190 := z.EncBinary() + _ = yym2190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2184 || yy2arr2184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2184[2] { + yy2192 := &x.ObjectMeta + yy2192.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2184[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2193 := &x.ObjectMeta + yy2193.CodecEncodeSelf(e) + } + } + if yyr2184 || yy2arr2184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2184[3] { + yy2195 := &x.Status + yy2195.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2184[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2196 := &x.Status + yy2196.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2197 := z.DecBinary() + _ = yym2197 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2198 := r.ContainerType() + if yyct2198 == codecSelferValueTypeMap1234 { + yyl2198 := r.ReadMapStart() + if yyl2198 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2198, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2198 == codecSelferValueTypeArray1234 { + yyl2198 := r.ReadArrayStart() + if yyl2198 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,24 +29270,10 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2199Slc = r.DecodeBytes(yys2199Slc, true, true) + yys2199 := string(yys2199Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PodStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys2199 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -27700,10 +29286,24 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2202 := &x.ObjectMeta + yyv2202.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2203 := &x.Status + yyv2203.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2199) + } // end switch yys2199 + } // end for yyj2199 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27711,87 +29311,87 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2204 int + var yyb2204 bool + var yyhl2204 bool = l >= 0 + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb8 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb8 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb8 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb8 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb8 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb8 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2207 := &x.ObjectMeta + yyv2207.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb8 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb8 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2208 := &x.Status + yyv2208.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb8 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb8 { + if yyb2204 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2204-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27803,136 +29403,136 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2209 := z.EncBinary() + _ = yym2209 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2210 = 0 + for _, b := range yyq2210 { if b { - yynn2++ + yynn2210++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2210) + yynn2210 = 0 } - if yyr2 || yy2arr2 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2210[0] { + yym2212 := z.EncBinary() + _ = yym2212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2210[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2213 := z.EncBinary() + _ = yym2213 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2210[1] { + yym2215 := z.EncBinary() + _ = yym2215 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2210[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym2216 := z.EncBinary() + _ = yym2216 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq2210[2] { + yy2218 := &x.ObjectMeta + yy2218.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2210[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy2219 := &x.ObjectMeta + yy2219.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2210[3] { + yy2221 := &x.Spec + yy2221.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq2210[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2222 := &x.Spec + yy2222.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq2210[4] { + yy2224 := &x.Status + yy2224.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq2210[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy2225 := &x.Status + yy2225.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2226 := z.DecBinary() + _ = yym2226 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2227 := r.ContainerType() + if yyct2227 == codecSelferValueTypeMap1234 { + yyl2227 := r.ReadMapStart() + if yyl2227 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2227, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2227 == codecSelferValueTypeArray1234 { + yyl2227 := r.ReadArrayStart() + if yyl2227 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +29589,47 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2228Slc = r.DecodeBytes(yys2228Slc, true, true) + yys2228 := string(yys2228Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys2228 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PodSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv2231 := &x.ObjectMeta + yyv2231.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2232 := &x.Spec + yyv2232.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2233 := &x.Status + yyv2233.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2228) + } // end switch yys2228 + } // end for yyj2228 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28037,104 +29637,104 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2234 int + var yyb2234 bool + var yyhl2234 bool = l >= 0 + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb9 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb9 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb9 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb9 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PodSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb9 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb9 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv2237 := &x.ObjectMeta + yyv2237.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb9 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb9 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2238 := &x.Spec + yyv2238.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb9 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb9 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2239 := &x.Status + yyv2239.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb9 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb9 { + if yyb2234 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj2234-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28146,139 +29746,139 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2240 := z.EncBinary() + _ = yym2240 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2241 = 1 + for _, b := range yyq2241 { if b { - yynn2++ + yynn2241++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2241) + yynn2241 = 0 } - if yyr2 || yy2arr2 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2241[0] { + yym2243 := z.EncBinary() + _ = yym2243 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2241[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2244 := z.EncBinary() + _ = yym2244 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2241[1] { + yym2246 := z.EncBinary() + _ = yym2246 if false { } else { - h.encSlicePod(([]Pod)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2241[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2247 := z.EncBinary() + _ = yym2247 if false { } else { - h.encSlicePod(([]Pod)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2241[2] { + yy2249 := &x.ListMeta + yym2250 := z.EncBinary() + _ = yym2250 if false { + } else if z.HasExtensions() && z.EncExt(yy2249) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2249) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2241[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2251 := &x.ListMeta + yym2252 := z.EncBinary() + _ = yym2252 if false { + } else if z.HasExtensions() && z.EncExt(yy2251) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2251) } } } - if yyr2 || yy2arr2 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2254 := z.EncBinary() + _ = yym2254 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePod(([]Pod)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2255 := z.EncBinary() + _ = yym2255 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2256 := z.DecBinary() + _ = yym2256 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2257 := r.ContainerType() + if yyct2257 == codecSelferValueTypeMap1234 { + yyl2257 := r.ReadMapStart() + if yyl2257 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2257, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2257 == codecSelferValueTypeArray1234 { + yyl2257 := r.ReadArrayStart() + if yyl2257 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +29935,51 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2258Slc = r.DecodeBytes(yys2258Slc, true, true) + yys2258 := string(yys2258Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2258 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2261 := &x.ListMeta + yym2262 := z.DecBinary() + _ = yym2262 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2261) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2261, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2263 := &x.Items + yym2264 := z.DecBinary() + _ = yym2264 if false { } else { - h.decSlicePod((*[]Pod)(yyv6), d) + h.decSlicePod((*[]Pod)(yyv2263), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2258) + } // end switch yys2258 + } // end for yyj2258 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28387,98 +29987,98 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2265 int + var yyb2265 bool + var yyhl2265 bool = l >= 0 + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb10 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb10 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb10 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb10 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePod((*[]Pod)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb10 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb10 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2268 := &x.ListMeta + yym2269 := z.DecBinary() + _ = yym2269 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2268) { + } else { + z.DecFallback(yyv2268, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb10 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb10 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2270 := &x.Items + yym2271 := z.DecBinary() + _ = yym2271 + if false { + } else { + h.decSlicePod((*[]Pod)(yyv2270), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb10 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb10 { + if yyb2265 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2272 := z.EncBinary() + _ = yym2272 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2273 = 0 + for _, b := range yyq2273 { if b { - yynn2++ + yynn2273++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2273) + yynn2273 = 0 } - if yyr2 || yy2arr2 { + if yyr2273 || yy2arr2273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2273[0] { + yy2275 := &x.ObjectMeta + yy2275.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2273[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy2276 := &x.ObjectMeta + yy2276.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2273 || yy2arr2273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2273[1] { + yy2278 := &x.Spec + yy2278.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq2273[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yy2279 := &x.Spec + yy2279.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2280 := z.DecBinary() + _ = yym2280 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2281 := r.ContainerType() + if yyct2281 == codecSelferValueTypeMap1234 { + yyl2281 := r.ReadMapStart() + if yyl2281 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2281, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2281 == codecSelferValueTypeArray1234 { + yyl2281 := r.ReadArrayStart() + if yyl2281 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2282Slc = r.DecodeBytes(yys2282Slc, true, true) + yys2282 := string(yys2282Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2282 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv2283 := &x.ObjectMeta + yyv2283.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + yyv2284 := &x.Spec + yyv2284.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2285 int + var yyb2285 bool + var yyhl2285 bool = l >= 0 + yyj2285++ + if yyhl2285 { + yyb2285 = yyj2285 > l } else { - yyb6 = r.CheckBreak() + yyb2285 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.ObjectMeta - yyv7.CodecDecodeSelf(d) + yyv2286 := &x.ObjectMeta + yyv2286.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2285++ + if yyhl2285 { + yyb2285 = yyj2285 > l } else { - yyb6 = r.CheckBreak() + yyb2285 = r.CheckBreak() } - if yyb6 { + 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 { - yyv8 := &x.Spec - yyv8.CodecDecodeSelf(d) + yyv2287 := &x.Spec + yyv2287.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2285++ + if yyhl2285 { + yyb2285 = yyj2285 > l } else { - yyb6 = r.CheckBreak() + yyb2285 = r.CheckBreak() } - if yyb6 { + if yyb2285 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj2285-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28695,72 +30295,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2288 := z.EncBinary() + _ = yym2288 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2289 = 0 + for _, b := range yyq2289 { if b { - yynn2++ + yynn2289++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn2289) + yynn2289 = 0 } - if yyr2 || yy2arr2 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Template - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Template - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2289[0] { + yym2291 := z.EncBinary() + _ = yym2291 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -28769,23 +30335,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2289[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym2292 := z.EncBinary() + _ = yym2292 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2289[1] { + yym2294 := z.EncBinary() + _ = yym2294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -28794,19 +30360,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2289[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym2295 := z.EncBinary() + _ = yym2295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2289 || yy2arr2289 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2289[2] { + yy2297 := &x.ObjectMeta + yy2297.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2289[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2298 := &x.ObjectMeta + yy2298.CodecEncodeSelf(e) + } + } + if yyr2289 || yy2arr2289 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2289[3] { + yy2300 := &x.Template + yy2300.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2289[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2301 := &x.Template + yy2301.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2302 := z.DecBinary() + _ = yym2302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2303 := r.ContainerType() + if yyct2303 == codecSelferValueTypeMap1234 { + yyl2303 := r.ReadMapStart() + if yyl2303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2303, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2303 == codecSelferValueTypeArray1234 { + yyl2303 := r.ReadArrayStart() + if yyl2303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,24 +30463,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2304Slc = r.DecodeBytes(yys2304Slc, true, true) + yys2304 := string(yys2304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "template": - if r.TryDecodeAsNil() { - x.Template = PodTemplateSpec{} - } else { - yyv5 := &x.Template - yyv5.CodecDecodeSelf(d) - } + switch yys2304 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28893,10 +30479,24 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2307 := &x.ObjectMeta + yyv2307.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = PodTemplateSpec{} + } else { + yyv2308 := &x.Template + yyv2308.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2304) + } // end switch yys2304 + } // end for yyj2304 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28904,87 +30504,87 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2309 int + var yyb2309 bool + var yyhl2309 bool = l >= 0 + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb8 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb8 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb8 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb8 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Template = PodTemplateSpec{} + x.APIVersion = "" } else { - yyv10 := &x.Template - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb8 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb8 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2312 := &x.ObjectMeta + yyv2312.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb8 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb8 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Template = PodTemplateSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2313 := &x.Template + yyv2313.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb8 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb8 { + if yyb2309 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2309-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28996,139 +30596,139 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2314 := z.EncBinary() + _ = yym2314 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2315 = 1 + for _, b := range yyq2315 { if b { - yynn2++ + yynn2315++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2315) + yynn2315 = 0 } - if yyr2 || yy2arr2 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2315[0] { + yym2317 := z.EncBinary() + _ = yym2317 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2315[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2318 := z.EncBinary() + _ = yym2318 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2315[1] { + yym2320 := z.EncBinary() + _ = yym2320 if false { } else { - h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2315[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2321 := z.EncBinary() + _ = yym2321 if false { } else { - h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2315[2] { + yy2323 := &x.ListMeta + yym2324 := z.EncBinary() + _ = yym2324 if false { + } else if z.HasExtensions() && z.EncExt(yy2323) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2323) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2315[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2325 := &x.ListMeta + yym2326 := z.EncBinary() + _ = yym2326 if false { + } else if z.HasExtensions() && z.EncExt(yy2325) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2325) } } } - if yyr2 || yy2arr2 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2328 := z.EncBinary() + _ = yym2328 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2329 := z.EncBinary() + _ = yym2329 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2330 := z.DecBinary() + _ = yym2330 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2331 := r.ContainerType() + if yyct2331 == codecSelferValueTypeMap1234 { + yyl2331 := r.ReadMapStart() + if yyl2331 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2331, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2331 == codecSelferValueTypeArray1234 { + yyl2331 := r.ReadArrayStart() + if yyl2331 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +30785,51 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2332Slc = r.DecodeBytes(yys2332Slc, true, true) + yys2332 := string(yys2332Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2332 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2335 := &x.ListMeta + yym2336 := z.DecBinary() + _ = yym2336 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2335) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2335, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2337 := &x.Items + yym2338 := z.DecBinary() + _ = yym2338 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv6), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2337), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2332) + } // end switch yys2332 + } // end for yyj2332 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29237,98 +30837,98 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2339 int + var yyb2339 bool + var yyhl2339 bool = l >= 0 + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb10 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb10 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb10 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb10 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb10 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb10 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2342 := &x.ListMeta + yym2343 := z.DecBinary() + _ = yym2343 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2342) { + } else { + z.DecFallback(yyv2342, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb10 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb10 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2344 := &x.Items + yym2345 := z.DecBinary() + _ = yym2345 + if false { + } else { + h.decSlicePodTemplate((*[]PodTemplate)(yyv2344), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb10 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb10 { + if yyb2339 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2346 := z.EncBinary() + _ = yym2346 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != nil - yyq2[1] = len(x.Selector) != 0 - yyq2[2] = x.Template != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2347 = 0 + for _, b := range yyq2347 { if b { - yynn2++ + yynn2347++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2347) + yynn2347 = 0 } - if yyr2 || yy2arr2 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2347[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy4 := *x.Replicas - yym5 := z.EncBinary() - _ = yym5 + yy2349 := *x.Replicas + yym2350 := z.EncBinary() + _ = yym2350 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy2349)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy6 := *x.Replicas - yym7 := z.EncBinary() - _ = yym7 + yy2351 := *x.Replicas + yym2352 := z.EncBinary() + _ = yym2352 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy2351)) } } } } - if yyr2 || yy2arr2 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2347[1] { if x.Selector == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + 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 yyq2[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 { - yym10 := z.EncBinary() - _ = yym10 + 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 yyr2 || yy2arr2 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2357 := z.DecBinary() + _ = yym2357 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2358 := r.ContainerType() + if yyct2358 == codecSelferValueTypeMap1234 { + yyl2358 := r.ReadMapStart() + if yyl2358 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2358, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2358 == codecSelferValueTypeArray1234 { + yyl2358 := r.ReadArrayStart() + if yyl2358 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2359Slc = r.DecodeBytes(yys2359Slc, true, true) + yys2359 := string(yys2359Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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) } - yym5 := z.DecBinary() - _ = yym5 + 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 { - yyv6 := &x.Selector - yym7 := z.DecBinary() - _ = yym7 + yyv2362 := &x.Selector + yym2363 := z.DecBinary() + _ = yym2363 if false { } else { - z.F.DecMapStringStringX(yyv6, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2365 int + var yyb2365 bool + var yyhl2365 bool = l >= 0 + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb9 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb9 { + 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) } - yym11 := z.DecBinary() - _ = yym11 + yym2367 := z.DecBinary() + _ = yym2367 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb9 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb9 { + 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 { - yyv12 := &x.Selector - yym13 := z.DecBinary() - _ = yym13 + yyv2368 := &x.Selector + yym2369 := z.DecBinary() + _ = yym2369 if false { } else { - z.F.DecMapStringStringX(yyv12, false, d) + z.F.DecMapStringStringX(yyv2368, false, d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb9 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb9 { + if yyb2365 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29641,17 +31241,17 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.Template.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb9 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb9 { + if yyb2365 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2371 := z.EncBinary() + _ = yym2371 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FullyLabeledReplicas != 0 - yyq2[2] = x.ObservedGeneration != 0 - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2372 = 1 + for _, b := range yyq2372 { if b { - yynn2++ + yynn2372++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2372) + yynn2372 = 0 } - if yyr2 || yy2arr2 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym2375 := z.EncBinary() + _ = yym2375 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq2372[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2378 := z.EncBinary() + _ = yym2378 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq2372[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2384 := z.EncBinary() + _ = yym2384 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2385 := z.DecBinary() + _ = yym2385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2386 := r.ContainerType() + if yyct2386 == codecSelferValueTypeMap1234 { + yyl2386 := r.ReadMapStart() + if yyl2386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2386, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2386 == codecSelferValueTypeArray1234 { + yyl2386 := r.ReadArrayStart() + if yyl2386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2387Slc = r.DecodeBytes(yys2387Slc, true, true) + yys2387 := string(yys2387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2392 int + var yyb2392 bool + var yyhl2392 bool = l >= 0 + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb7 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb7 { + 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)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb7 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb7 { + 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)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb7 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb7 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb7 { + if yyb2392 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj2392-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29921,136 +31569,136 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2397 := z.EncBinary() + _ = yym2397 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2398 = 0 + for _, b := range yyq2398 { if b { - yynn2++ + yynn2398++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2398) + yynn2398 = 0 } - if yyr2 || yy2arr2 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2398[0] { + yym2400 := z.EncBinary() + _ = yym2400 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2401 := z.EncBinary() + _ = yym2401 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2398[1] { + yym2403 := z.EncBinary() + _ = yym2403 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2398[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym2404 := z.EncBinary() + _ = yym2404 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq2398[2] { + yy2406 := &x.ObjectMeta + yy2406.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2398[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy2407 := &x.ObjectMeta + yy2407.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2398[3] { + yy2409 := &x.Spec + yy2409.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq2398[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2410 := &x.Spec + yy2410.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq2398[4] { + yy2412 := &x.Status + yy2412.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq2398[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy2413 := &x.Status + yy2413.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2414 := z.DecBinary() + _ = yym2414 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2415 := r.ContainerType() + if yyct2415 == codecSelferValueTypeMap1234 { + yyl2415 := r.ReadMapStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2415, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2415 == codecSelferValueTypeArray1234 { + yyl2415 := r.ReadArrayStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +31755,47 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2416Slc = r.DecodeBytes(yys2416Slc, true, true) + yys2416 := string(yys2416Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys2416 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv2419 := &x.ObjectMeta + yyv2419.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicationControllerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2420 := &x.Spec + yyv2420.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicationControllerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2421 := &x.Status + yyv2421.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2416) + } // end switch yys2416 + } // end for yyj2416 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30155,104 +31803,104 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2422 int + var yyb2422 bool + var yyhl2422 bool = l >= 0 + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb9 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb9 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb9 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb9 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb9 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb9 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv2425 := &x.ObjectMeta + yyv2425.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb9 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb9 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicationControllerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2426 := &x.Spec + yyv2426.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb9 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb9 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicationControllerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2427 := &x.Status + yyv2427.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb9 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb9 { + if yyb2422 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj2422-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30264,139 +31912,139 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2428 := z.EncBinary() + _ = yym2428 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2429 = 1 + for _, b := range yyq2429 { if b { - yynn2++ + yynn2429++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2429) + yynn2429 = 0 } - if yyr2 || yy2arr2 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2429[0] { + yym2431 := z.EncBinary() + _ = yym2431 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2429[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2432 := z.EncBinary() + _ = yym2432 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2429[1] { + yym2434 := z.EncBinary() + _ = yym2434 if false { } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2429[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2435 := z.EncBinary() + _ = yym2435 if false { } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2429[2] { + yy2437 := &x.ListMeta + yym2438 := z.EncBinary() + _ = yym2438 if false { + } else if z.HasExtensions() && z.EncExt(yy2437) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2437) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2429[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2439 := &x.ListMeta + yym2440 := z.EncBinary() + _ = yym2440 if false { + } else if z.HasExtensions() && z.EncExt(yy2439) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2439) } } } - if yyr2 || yy2arr2 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2442 := z.EncBinary() + _ = yym2442 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2443 := z.EncBinary() + _ = yym2443 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2444 := z.DecBinary() + _ = yym2444 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2445 := r.ContainerType() + if yyct2445 == codecSelferValueTypeMap1234 { + yyl2445 := r.ReadMapStart() + if yyl2445 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2445, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2445 == codecSelferValueTypeArray1234 { + yyl2445 := r.ReadArrayStart() + if yyl2445 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +32101,51 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2446Slc = r.DecodeBytes(yys2446Slc, true, true) + yys2446 := string(yys2446Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2446 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2449 := &x.ListMeta + yym2450 := z.DecBinary() + _ = yym2450 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2449) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2449, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2451 := &x.Items + yym2452 := z.DecBinary() + _ = yym2452 if false { } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv6), d) + h.decSliceReplicationController((*[]ReplicationController)(yyv2451), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2446) + } // end switch yys2446 + } // end for yyj2446 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30505,98 +32153,98 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2453 int + var yyb2453 bool + var yyhl2453 bool = l >= 0 + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb10 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb10 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb10 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb10 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb10 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb10 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2456 := &x.ListMeta + yym2457 := z.DecBinary() + _ = yym2457 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2456) { + } else { + z.DecFallback(yyv2456, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb10 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb10 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2458 := &x.Items + yym2459 := z.DecBinary() + _ = yym2459 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2458), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb10 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb10 { + if yyb2453 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym2464 := z.EncBinary() + _ = yym2464 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2465 = 0 + for _, b := range yyq2465 { if b { - yynn2++ + yynn2465++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2465) + yynn2465 = 0 } - if yyr2 || yy2arr2 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.LoadBalancer - yy4.CodecEncodeSelf(e) + if yyq2465[0] { + yy2467 := &x.LoadBalancer + yy2467.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2465[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.LoadBalancer - yy6.CodecEncodeSelf(e) + yy2468 := &x.LoadBalancer + yy2468.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2469 := z.DecBinary() + _ = yym2469 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2470 := r.ContainerType() + if yyct2470 == codecSelferValueTypeMap1234 { + yyl2470 := r.ReadMapStart() + if yyl2470 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2470, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2470 == codecSelferValueTypeArray1234 { + yyl2470 := r.ReadArrayStart() + if yyl2470 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2471Slc = r.DecodeBytes(yys2471Slc, true, true) + yys2471 := string(yys2471Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2471 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv4 := &x.LoadBalancer - yyv4.CodecDecodeSelf(d) + yyv2472 := &x.LoadBalancer + yyv2472.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj2473 int + var yyb2473 bool + var yyhl2473 bool = l >= 0 + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l } else { - yyb5 = r.CheckBreak() + yyb2473 = r.CheckBreak() } - if yyb5 { + 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 { - yyv6 := &x.LoadBalancer - yyv6.CodecDecodeSelf(d) + yyv2474 := &x.LoadBalancer + yyv2474.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l } else { - yyb5 = r.CheckBreak() + yyb2473 = r.CheckBreak() } - if yyb5 { + if yyb2473 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2475 := z.EncBinary() + _ = yym2475 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Ingress) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2476 = 0 + for _, b := range yyq2476 { if b { - yynn2++ + yynn2476++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2476) + yynn2476 = 0 } - if yyr2 || yy2arr2 { + if yyr2476 || yy2arr2476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2476[0] { if x.Ingress == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2480 := z.DecBinary() + _ = yym2480 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2481 := r.ContainerType() + if yyct2481 == codecSelferValueTypeMap1234 { + yyl2481 := r.ReadMapStart() + if yyl2481 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2481, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2481 == codecSelferValueTypeArray1234 { + yyl2481 := r.ReadArrayStart() + if yyl2481 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2482Slc = r.DecodeBytes(yys2482Slc, true, true) + yys2482 := string(yys2482Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2482 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv4 := &x.Ingress - yym5 := z.DecBinary() - _ = yym5 + yyv2483 := &x.Ingress + yym2484 := z.DecBinary() + _ = yym2484 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv4), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2483), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2485 int + var yyb2485 bool + var yyhl2485 bool = l >= 0 + yyj2485++ + if yyhl2485 { + yyb2485 = yyj2485 > l } else { - yyb6 = r.CheckBreak() + yyb2485 = r.CheckBreak() } - if yyb6 { + 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 { - yyv7 := &x.Ingress - yym8 := z.DecBinary() - _ = yym8 + yyv2486 := &x.Ingress + yym2487 := z.DecBinary() + _ = yym2487 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv7), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2486), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2485++ + if yyhl2485 { + yyb2485 = yyj2485 > l } else { - yyb6 = r.CheckBreak() + yyb2485 = r.CheckBreak() } - if yyb6 { + if yyb2485 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2488 := z.EncBinary() + _ = yym2488 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.IP != "" - yyq2[1] = x.Hostname != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2489 = 0 + for _, b := range yyq2489 { if b { - yynn2++ + yynn2489++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2489) + yynn2489 = 0 } - if yyr2 || yy2arr2 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq2489[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2492 := z.EncBinary() + _ = yym2492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } - if yyr2 || yy2arr2 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[1] { + if yyq2489[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2495 := z.EncBinary() + _ = yym2495 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2496 := z.DecBinary() + _ = yym2496 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2497 := r.ContainerType() + if yyct2497 == codecSelferValueTypeMap1234 { + yyl2497 := r.ReadMapStart() + if yyl2497 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2497, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2497 == codecSelferValueTypeArray1234 { + yyl2497 := r.ReadArrayStart() + if yyl2497 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2498Slc = r.DecodeBytes(yys2498Slc, true, true) + yys2498 := string(yys2498Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj2501 int + var yyb2501 bool + var yyhl2501 bool = l >= 0 + yyj2501++ + if yyhl2501 { + yyb2501 = yyj2501 > l } else { - yyb6 = r.CheckBreak() + yyb2501 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2501++ + if yyhl2501 { + yyb2501 = yyj2501 > l } else { - yyb6 = r.CheckBreak() + yyb2501 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj2501++ + if yyhl2501 { + yyb2501 = yyj2501 > l } else { - yyb6 = r.CheckBreak() + yyb2501 = r.CheckBreak() } - if yyb6 { + if yyb2501 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2504 := z.EncBinary() + _ = yym2504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [9]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.Selector) != 0 - yyq2[2] = x.ClusterIP != "" - yyq2[3] = x.Type != "" - yyq2[4] = len(x.ExternalIPs) != 0 - yyq2[5] = len(x.DeprecatedPublicIPs) != 0 - yyq2[6] = x.SessionAffinity != "" - yyq2[7] = x.LoadBalancerIP != "" - yyq2[8] = len(x.LoadBalancerSourceRanges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2505 = 1 + for _, b := range yyq2505 { if b { - yynn2++ + yynn2505++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2505) + yynn2505 = 0 } - if yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 { - yym5 := z.EncBinary() - _ = yym5 + yym2508 := z.EncBinary() + _ = yym2508 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } - if yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2505[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[2] { + if yyq2505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2514 := z.EncBinary() + _ = yym2514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } - if yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq2505[3] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2505[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq2505[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + 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 yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq2505[5] { if x.DeprecatedPublicIPs == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[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 { - yym20 := z.EncBinary() - _ = yym20 + 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 yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq2505[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq2505[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[7] { + if yyq2505[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym2525 := z.EncBinary() + _ = yym2525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } - if yyr2 || yy2arr2 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq2505[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym28 := z.EncBinary() - _ = yym28 + 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 yyq2[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 { - yym29 := z.EncBinary() - _ = yym29 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2532 := z.DecBinary() + _ = yym2532 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2533 := r.ContainerType() + if yyct2533 == codecSelferValueTypeMap1234 { + yyl2533 := r.ReadMapStart() + if yyl2533 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2533, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2533 == codecSelferValueTypeArray1234 { + yyl2533 := r.ReadArrayStart() + if yyl2533 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2534Slc = r.DecodeBytes(yys2534Slc, true, true) + yys2534 := string(yys2534Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2534 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv4 := &x.Ports - yym5 := z.DecBinary() - _ = yym5 + yyv2535 := &x.Ports + yym2536 := z.DecBinary() + _ = yym2536 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv4), d) + h.decSliceServicePort((*[]ServicePort)(yyv2535), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv6 := &x.Selector - yym7 := z.DecBinary() - _ = yym7 + yyv2537 := &x.Selector + yym2538 := z.DecBinary() + _ = yym2538 if false { } else { - z.F.DecMapStringStringX(yyv6, 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 { - yyv10 := &x.ExternalIPs - yym11 := z.DecBinary() - _ = yym11 + yyv2541 := &x.ExternalIPs + yym2542 := z.DecBinary() + _ = yym2542 if false { } else { - z.F.DecSliceStringX(yyv10, false, d) + z.F.DecSliceStringX(yyv2541, false, d) } } case "deprecatedPublicIPs": if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv12 := &x.DeprecatedPublicIPs - yym13 := z.DecBinary() - _ = yym13 + yyv2543 := &x.DeprecatedPublicIPs + yym2544 := z.DecBinary() + _ = yym2544 if false { } else { - z.F.DecSliceStringX(yyv12, 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 { - yyv16 := &x.LoadBalancerSourceRanges - yym17 := z.DecBinary() - _ = yym17 + yyv2547 := &x.LoadBalancerSourceRanges + yym2548 := z.DecBinary() + _ = yym2548 if false { } else { - z.F.DecSliceStringX(yyv16, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + var yyj2550 int + var yyb2550 bool + var yyhl2550 bool = l >= 0 + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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 { - yyv19 := &x.Ports - yym20 := z.DecBinary() - _ = yym20 + yyv2551 := &x.Ports + yym2552 := z.DecBinary() + _ = yym2552 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv19), d) + h.decSliceServicePort((*[]ServicePort)(yyv2551), d) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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 { - yyv21 := &x.Selector - yym22 := z.DecBinary() - _ = yym22 + yyv2553 := &x.Selector + yym2554 := z.DecBinary() + _ = yym2554 if false { } else { - z.F.DecMapStringStringX(yyv21, false, d) + z.F.DecMapStringStringX(yyv2553, false, d) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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 { - yyv25 := &x.ExternalIPs - yym26 := z.DecBinary() - _ = yym26 + yyv2557 := &x.ExternalIPs + yym2558 := z.DecBinary() + _ = yym2558 if false { } else { - z.F.DecSliceStringX(yyv25, false, d) + z.F.DecSliceStringX(yyv2557, false, d) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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 { - yyv27 := &x.DeprecatedPublicIPs - yym28 := z.DecBinary() - _ = yym28 + yyv2559 := &x.DeprecatedPublicIPs + yym2560 := z.DecBinary() + _ = yym2560 if false { } else { - z.F.DecSliceStringX(yyv27, false, d) + z.F.DecSliceStringX(yyv2559, false, d) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + 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 { - yyv31 := &x.LoadBalancerSourceRanges - yym32 := z.DecBinary() - _ = yym32 + yyv2563 := &x.LoadBalancerSourceRanges + yym2564 := z.DecBinary() + _ = yym2564 if false { } else { - z.F.DecSliceStringX(yyv31, 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 { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb18 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb18 { + if yyb2550 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2566 := z.EncBinary() + _ = yym2566 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.Name != "" - yyq2[1] = x.Protocol != "" - yyq2[3] = true - yyq2[4] = x.NodePort != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2567 = 1 + for _, b := range yyq2567 { if b { - yynn2++ + yynn2567++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2567) + yynn2567 = 0 } - if yyr2 || yy2arr2 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq2567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2570 := z.EncBinary() + _ = yym2570 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2567[1] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2567[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + 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) - yym11 := z.EncBinary() - _ = yym11 + yym2574 := z.EncBinary() + _ = yym2574 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.TargetPort - yym14 := z.EncBinary() - _ = yym14 + if yyq2567[3] { + yy2576 := &x.TargetPort + yym2577 := z.EncBinary() + _ = yym2577 if false { - } else if z.HasExtensions() && z.EncExt(yy13) { - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(yy13) + } else if z.HasExtensions() && z.EncExt(yy2576) { + } else if !yym2577 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2576) } else { - z.EncFallback(yy13) + z.EncFallback(yy2576) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq2567[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy15 := &x.TargetPort - yym16 := z.EncBinary() - _ = yym16 + yy2578 := &x.TargetPort + yym2579 := z.EncBinary() + _ = yym2579 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy2578) { + } else if !yym2579 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2578) } else { - z.EncFallback(yy15) + z.EncFallback(yy2578) } } } - if yyr2 || yy2arr2 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 + 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 yyq2[4] { + if yyq2567[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 + yym2582 := z.EncBinary() + _ = yym2582 if false { } else { r.EncodeInt(int64(x.NodePort)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2583 := z.DecBinary() + _ = yym2583 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2584 := r.ContainerType() + if yyct2584 == codecSelferValueTypeMap1234 { + yyl2584 := r.ReadMapStart() + if yyl2584 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2584, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2584 == codecSelferValueTypeArray1234 { + yyl2584 := r.ReadArrayStart() + if yyl2584 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2585Slc = r.DecodeBytes(yys2585Slc, true, true) + yys2585 := string(yys2585Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv7 := &x.TargetPort - yym8 := z.DecBinary() - _ = yym8 + yyv2589 := &x.TargetPort + yym2590 := z.DecBinary() + _ = yym2590 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv2589) { + } else if !yym2590 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2589) } else { - z.DecFallback(yyv7, 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2592 int + var yyb2592 bool + var yyhl2592 bool = l >= 0 + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb10 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb10 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb10 { + 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()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb10 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb10 { + 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)) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb10 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb10 { + 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 { - yyv14 := &x.TargetPort - yym15 := z.DecBinary() - _ = yym15 + yyv2596 := &x.TargetPort + yym2597 := z.DecBinary() + _ = yym2597 if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else if !yym15 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv14) + } else if z.HasExtensions() && z.DecExt(yyv2596) { + } else if !yym2597 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2596) } else { - z.DecFallback(yyv14, false) + z.DecFallback(yyv2596, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb10 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb10 { + 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb10 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb10 { + if yyb2592 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2592-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32225,136 +33921,136 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2599 := z.EncBinary() + _ = yym2599 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2600 = 0 + for _, b := range yyq2600 { if b { - yynn2++ + yynn2600++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2600) + yynn2600 = 0 } - if yyr2 || yy2arr2 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2600[0] { + yym2602 := z.EncBinary() + _ = yym2602 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2600[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym2603 := z.EncBinary() + _ = yym2603 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq2600[1] { + yym2605 := z.EncBinary() + _ = yym2605 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2600[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym2606 := z.EncBinary() + _ = yym2606 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq2600[2] { + yy2608 := &x.ObjectMeta + yy2608.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2600[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy2609 := &x.ObjectMeta + yy2609.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq2600[3] { + yy2611 := &x.Spec + yy2611.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq2600[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy2612 := &x.Spec + yy2612.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq2600[4] { + yy2614 := &x.Status + yy2614.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq2600[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy2615 := &x.Status + yy2615.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2616 := z.DecBinary() + _ = yym2616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2617 := r.ContainerType() + if yyct2617 == codecSelferValueTypeMap1234 { + yyl2617 := r.ReadMapStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2617, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2617 == codecSelferValueTypeArray1234 { + yyl2617 := r.ReadArrayStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,47 +34107,47 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2618Slc = r.DecodeBytes(yys2618Slc, true, true) + yys2618 := string(yys2618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys2618 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ServiceSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ServiceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv2621 := &x.ObjectMeta + yyv2621.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ServiceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2622 := &x.Spec + yyv2622.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ServiceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2623 := &x.Status + yyv2623.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2618) + } // end switch yys2618 + } // end for yyj2618 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32459,104 +34155,104 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2624 int + var yyb2624 bool + var yyhl2624 bool = l >= 0 + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb9 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb9 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb9 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb9 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ServiceSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb9 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb9 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ServiceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv2627 := &x.ObjectMeta + yyv2627.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb9 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb9 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ServiceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv2628 := &x.Spec + yyv2628.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb9 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb9 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ServiceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv2629 := &x.Status + yyv2629.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb9 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb9 { + if yyb2624 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj2624-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32568,139 +34264,139 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2630 := z.EncBinary() + _ = yym2630 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2631 = 1 + for _, b := range yyq2631 { if b { - yynn2++ + yynn2631++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2631) + yynn2631 = 0 } - if yyr2 || yy2arr2 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2631[0] { + yym2633 := z.EncBinary() + _ = yym2633 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2631[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2634 := z.EncBinary() + _ = yym2634 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2631[1] { + yym2636 := z.EncBinary() + _ = yym2636 if false { } else { - h.encSliceService(([]Service)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2631[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2637 := z.EncBinary() + _ = yym2637 if false { } else { - h.encSliceService(([]Service)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2631[2] { + yy2639 := &x.ListMeta + yym2640 := z.EncBinary() + _ = yym2640 if false { + } else if z.HasExtensions() && z.EncExt(yy2639) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2639) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2631[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2641 := &x.ListMeta + yym2642 := z.EncBinary() + _ = yym2642 if false { + } else if z.HasExtensions() && z.EncExt(yy2641) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2641) } } } - if yyr2 || yy2arr2 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2644 := z.EncBinary() + _ = yym2644 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceService(([]Service)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2645 := z.EncBinary() + _ = yym2645 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceService(([]Service)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2646 := z.DecBinary() + _ = yym2646 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2647 := r.ContainerType() + if yyct2647 == codecSelferValueTypeMap1234 { + yyl2647 := r.ReadMapStart() + if yyl2647 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2647, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2647 == codecSelferValueTypeArray1234 { + yyl2647 := r.ReadArrayStart() + if yyl2647 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +34453,51 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2648Slc = r.DecodeBytes(yys2648Slc, true, true) + yys2648 := string(yys2648Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2648 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2651 := &x.ListMeta + yym2652 := z.DecBinary() + _ = yym2652 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2651) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2651, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2653 := &x.Items + yym2654 := z.DecBinary() + _ = yym2654 if false { } else { - h.decSliceService((*[]Service)(yyv6), d) + h.decSliceService((*[]Service)(yyv2653), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2648) + } // end switch yys2648 + } // end for yyj2648 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32809,98 +34505,98 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2655 int + var yyb2655 bool + var yyhl2655 bool = l >= 0 + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb10 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb10 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb10 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb10 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceService((*[]Service)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb10 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb10 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2658 := &x.ListMeta + yym2659 := z.DecBinary() + _ = yym2659 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2658) { + } else { + z.DecFallback(yyv2658, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb10 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb10 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2660 := &x.Items + yym2661 := z.DecBinary() + _ = yym2661 + if false { + } else { + h.decSliceService((*[]Service)(yyv2660), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb10 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb10 { + if yyb2655 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2655-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32912,59 +34608,109 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2662 := z.EncBinary() + _ = yym2662 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] = true - yyq2[1] = len(x.Secrets) != 0 - yyq2[2] = len(x.ImagePullSecrets) != 0 - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2663 = 0 + for _, b := range yyq2663 { if b { - yynn2++ + yynn2663++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2663) + yynn2663 = 0 } - if yyr2 || yy2arr2 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq2663[0] { + yym2665 := z.EncBinary() + _ = yym2665 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2663[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2666 := z.EncBinary() + _ = yym2666 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2663 || yy2arr2663 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2663[1] { + yym2668 := z.EncBinary() + _ = yym2668 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2663[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2669 := z.EncBinary() + _ = yym2669 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2663 || yy2arr2663 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2663[2] { + yy2671 := &x.ObjectMeta + yy2671.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2663[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy2672 := &x.ObjectMeta + yy2672.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2663[3] { if x.Secrets == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym2674 := z.EncBinary() + _ = yym2674 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -32974,15 +34720,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq2663[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secrets == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym2675 := z.EncBinary() + _ = yym2675 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -32990,14 +34736,14 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2663[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym12 := z.EncBinary() - _ = yym12 + yym2677 := z.EncBinary() + _ = yym2677 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33007,15 +34753,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2663[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym2678 := z.EncBinary() + _ = yym2678 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33023,57 +34769,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2679 := z.DecBinary() + _ = yym2679 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2680 := r.ContainerType() + if yyct2680 == codecSelferValueTypeMap1234 { + yyl2680 := r.ReadMapStart() + if yyl2680 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2680, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2680 == codecSelferValueTypeArray1234 { + yyl2680 := r.ReadArrayStart() + if yyl2680 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,57 +34826,57 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2681Slc = r.DecodeBytes(yys2681Slc, true, true) + yys2681 := string(yys2681Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2681 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv2684 := &x.ObjectMeta + yyv2684.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv5 := &x.Secrets - yym6 := z.DecBinary() - _ = yym6 + yyv2685 := &x.Secrets + yym2686 := z.DecBinary() + _ = yym2686 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv5), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2685), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv7 := &x.ImagePullSecrets - yym8 := z.DecBinary() - _ = yym8 + yyv2687 := &x.ImagePullSecrets + yym2688 := z.DecBinary() + _ = yym2688 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv7), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2687), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2681) + } // end switch yys2681 + } // end for yyj2681 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33188,114 +34884,114 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj2689 int + var yyb2689 bool + var yyhl2689 bool = l >= 0 + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb11 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb11 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv12 := &x.ObjectMeta - yyv12.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb11 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb11 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Secrets = nil + x.APIVersion = "" } else { - yyv13 := &x.Secrets - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb11 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb11 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ImagePullSecrets = nil + x.ObjectMeta = ObjectMeta{} } else { - yyv15 := &x.ImagePullSecrets - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv15), d) - } + yyv2692 := &x.ObjectMeta + yyv2692.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb11 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb11 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Secrets = nil } else { - x.Kind = string(r.DecodeString()) + yyv2693 := &x.Secrets + yym2694 := z.DecBinary() + _ = yym2694 + if false { + } else { + h.decSliceObjectReference((*[]ObjectReference)(yyv2693), d) + } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb11 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb11 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.ImagePullSecrets = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2695 := &x.ImagePullSecrets + yym2696 := z.DecBinary() + _ = yym2696 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2695), d) + } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb11 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb11 { + if yyb2689 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj2689-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33307,139 +35003,139 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2697 := z.EncBinary() + _ = yym2697 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2698 = 1 + for _, b := range yyq2698 { if b { - yynn2++ + yynn2698++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2698) + yynn2698 = 0 } - if yyr2 || yy2arr2 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2698[0] { + yym2700 := z.EncBinary() + _ = yym2700 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2698[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2701 := z.EncBinary() + _ = yym2701 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2698[1] { + yym2703 := z.EncBinary() + _ = yym2703 if false { } else { - h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2698[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2704 := z.EncBinary() + _ = yym2704 if false { } else { - h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2698[2] { + yy2706 := &x.ListMeta + yym2707 := z.EncBinary() + _ = yym2707 if false { + } else if z.HasExtensions() && z.EncExt(yy2706) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2706) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2698[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2708 := &x.ListMeta + yym2709 := z.EncBinary() + _ = yym2709 if false { + } else if z.HasExtensions() && z.EncExt(yy2708) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2708) } } } - if yyr2 || yy2arr2 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2711 := z.EncBinary() + _ = yym2711 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2712 := z.EncBinary() + _ = yym2712 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2713 := z.DecBinary() + _ = yym2713 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2714 := r.ContainerType() + if yyct2714 == codecSelferValueTypeMap1234 { + yyl2714 := r.ReadMapStart() + if yyl2714 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2714, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2714 == codecSelferValueTypeArray1234 { + yyl2714 := r.ReadArrayStart() + if yyl2714 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +35192,51 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2715Slc = r.DecodeBytes(yys2715Slc, true, true) + yys2715 := string(yys2715Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2715 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2718 := &x.ListMeta + yym2719 := z.DecBinary() + _ = yym2719 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2718) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2718, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2720 := &x.Items + yym2721 := z.DecBinary() + _ = yym2721 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv6), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2720), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2715) + } // end switch yys2715 + } // end for yyj2715 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33548,98 +35244,98 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2722 int + var yyb2722 bool + var yyhl2722 bool = l >= 0 + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb10 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb10 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb10 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb10 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb10 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb10 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2725 := &x.ListMeta + yym2726 := z.DecBinary() + _ = yym2726 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2725) { + } else { + z.DecFallback(yyv2725, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb10 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb10 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2727 := &x.Items + yym2728 := z.DecBinary() + _ = yym2728 + if false { + } else { + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2727), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb10 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb10 { + if yyb2722 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2722-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33651,81 +35347,37 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2729 := z.EncBinary() + _ = yym2729 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2730 = 1 + for _, b := range yyq2730 { if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Subsets == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("subsets")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Subsets == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + yynn2730++ } } + r.EncodeMapStart(yynn2730) + yynn2730 = 0 } - if yyr2 || yy2arr2 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2730[0] { + yym2732 := z.EncBinary() + _ = yym2732 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33734,23 +35386,23 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2730[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym2733 := z.EncBinary() + _ = yym2733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if yyq2730[1] { + yym2735 := z.EncBinary() + _ = yym2735 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33759,19 +35411,63 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2730[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym2736 := z.EncBinary() + _ = yym2736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2730 || yy2arr2730 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2730[2] { + yy2738 := &x.ObjectMeta + yy2738.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2730[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2739 := &x.ObjectMeta + yy2739.CodecEncodeSelf(e) + } + } + if yyr2730 || yy2arr2730 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2741 := z.EncBinary() + _ = yym2741 + if false { + } else { + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subsets")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2742 := z.EncBinary() + _ = yym2742 + if false { + } else { + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + } + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2743 := z.DecBinary() + _ = yym2743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2744 := r.ContainerType() + if yyct2744 == codecSelferValueTypeMap1234 { + yyl2744 := r.ReadMapStart() + if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2744, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2744 == codecSelferValueTypeArray1234 { + yyl2744 := r.ReadArrayStart() + if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,45 +35524,45 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2745Slc = r.DecodeBytes(yys2745Slc, true, true) + yys2745 := string(yys2745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2745 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv2748 := &x.ObjectMeta + yyv2748.CodecDecodeSelf(d) } case "subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv5 := &x.Subsets - yym6 := z.DecBinary() - _ = yym6 + yyv2749 := &x.Subsets + yym2750 := z.DecBinary() + _ = yym2750 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv5), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2749), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2745) + } // end switch yys2745 + } // end for yyj2745 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33874,92 +35570,92 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj2751 int + var yyb2751 bool + var yyhl2751 bool = l >= 0 + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb9 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb9 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb9 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb9 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Subsets = nil + x.APIVersion = "" } else { - yyv11 := &x.Subsets - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv11), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb9 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb9 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2754 := &x.ObjectMeta + yyv2754.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb9 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb9 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Subsets = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2755 := &x.Subsets + yym2756 := z.DecBinary() + _ = yym2756 + if false { + } else { + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2755), d) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb9 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb9 { + if yyb2751 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-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 { - yym1 := z.EncBinary() - _ = yym1 + yym2757 := z.EncBinary() + _ = yym2757 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Addresses) != 0 - yyq2[1] = len(x.NotReadyAddresses) != 0 - yyq2[2] = len(x.Ports) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2758 = 0 + for _, b := range yyq2758 { if b { - yynn2++ + yynn2758++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2758) + yynn2758 = 0 } - if yyr2 || yy2arr2 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2758[0] { if x.Addresses == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2758[1] { if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2758[2] { if x.Ports == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym2768 := z.DecBinary() + _ = yym2768 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2769 := r.ContainerType() + if yyct2769 == codecSelferValueTypeMap1234 { + yyl2769 := r.ReadMapStart() + if yyl2769 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2769, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2769 == codecSelferValueTypeArray1234 { + yyl2769 := r.ReadArrayStart() + if yyl2769 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2770Slc = r.DecodeBytes(yys2770Slc, true, true) + yys2770 := string(yys2770Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2770 { case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv4 := &x.Addresses - yym5 := z.DecBinary() - _ = yym5 + yyv2771 := &x.Addresses + yym2772 := z.DecBinary() + _ = yym2772 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv4), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2771), d) } } case "notReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv6 := &x.NotReadyAddresses - yym7 := z.DecBinary() - _ = yym7 + yyv2773 := &x.NotReadyAddresses + yym2774 := z.DecBinary() + _ = yym2774 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv6), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2773), d) } } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv8 := &x.Ports - yym9 := z.DecBinary() - _ = yym9 + yyv2775 := &x.Ports + yym2776 := z.DecBinary() + _ = yym2776 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv8), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2775), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2777 int + var yyb2777 bool + var yyhl2777 bool = l >= 0 + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb10 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb10 { + 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 { - yyv11 := &x.Addresses - yym12 := z.DecBinary() - _ = yym12 + yyv2778 := &x.Addresses + yym2779 := z.DecBinary() + _ = yym2779 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv11), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2778), d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb10 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb10 { + 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 { - yyv13 := &x.NotReadyAddresses - yym14 := z.DecBinary() - _ = yym14 + yyv2780 := &x.NotReadyAddresses + yym2781 := z.DecBinary() + _ = yym2781 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv13), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2780), d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb10 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb10 { + 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 { - yyv15 := &x.Ports - yym16 := z.DecBinary() - _ = yym16 + yyv2782 := &x.Ports + yym2783 := z.DecBinary() + _ = yym2783 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv15), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2782), d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb10 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb10 { + if yyb2777 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2777-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34296,35 +35992,36 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2784 := z.EncBinary() + _ = yym2784 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Hostname != "" - yyq2[2] = x.TargetRef != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2785 = 1 + for _, b := range yyq2785 { if b { - yynn2++ + yynn2785++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2785) + yynn2785 = 0 } - if yyr2 || yy2arr2 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2787 := z.EncBinary() + _ = yym2787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -34333,18 +36030,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2788 := z.EncBinary() + _ = yym2788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2 || yy2arr2 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq2785[1] { + yym2790 := z.EncBinary() + _ = yym2790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -34353,21 +36050,56 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2785[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2791 := z.EncBinary() + _ = yym2791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2 || yy2arr2 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2785[2] { + if x.NodeName == nil { + r.EncodeNil() + } else { + yy2793 := *x.NodeName + yym2794 := z.EncBinary() + _ = yym2794 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy2793)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2785[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NodeName == nil { + r.EncodeNil() + } else { + yy2795 := *x.NodeName + yym2796 := z.EncBinary() + _ = yym2796 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy2795)) + } + } + } + } + if yyr2785 || yy2arr2785 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2785[3] { if x.TargetRef == nil { r.EncodeNil() } else { @@ -34377,7 +36109,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq2785[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -34388,7 +36120,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34401,25 +36133,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2798 := z.DecBinary() + _ = yym2798 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2799 := r.ContainerType() + if yyct2799 == codecSelferValueTypeMap1234 { + yyl2799 := r.ReadMapStart() + if yyl2799 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2799, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2799 == codecSelferValueTypeArray1234 { + yyl2799 := r.ReadArrayStart() + if yyl2799 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2799, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34431,12 +36163,12 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -34445,10 +36177,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2800Slc = r.DecodeBytes(yys2800Slc, true, true) + yys2800 := string(yys2800Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2800 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -34461,6 +36193,22 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Hostname = string(r.DecodeString()) } + case "nodeName": + if r.TryDecodeAsNil() { + if x.NodeName != nil { + x.NodeName = nil + } + } else { + if x.NodeName == nil { + x.NodeName = new(string) + } + yym2804 := z.DecBinary() + _ = yym2804 + if false { + } else { + *((*string)(x.NodeName)) = r.DecodeString() + } + } case "targetRef": if r.TryDecodeAsNil() { if x.TargetRef != nil { @@ -34473,9 +36221,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2800) + } // end switch yys2800 + } // end for yyj2800 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34483,16 +36231,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2806 int + var yyb2806 bool + var yyhl2806 bool = l >= 0 + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb7 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb7 { + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34502,13 +36250,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb7 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb7 { + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34518,13 +36266,39 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb7 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb7 { + if yyb2806 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NodeName != nil { + x.NodeName = nil + } + } else { + if x.NodeName == nil { + x.NodeName = new(string) + } + yym2810 := z.DecBinary() + _ = yym2810 + if false { + } else { + *((*string)(x.NodeName)) = r.DecodeString() + } + } + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l + } else { + yyb2806 = r.CheckBreak() + } + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34540,17 +36314,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb7 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb7 { + if yyb2806 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj2806-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34562,36 +36336,36 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2812 := z.EncBinary() + _ = yym2812 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Name != "" - yyq2[2] = x.Protocol != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2813 = 1 + for _, b := range yyq2813 { if b { - yynn2++ + yynn2813++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2813) + yynn2813 = 0 } - if yyr2 || yy2arr2 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq2813[0] { + yym2815 := z.EncBinary() + _ = yym2815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -34600,22 +36374,22 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2813[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2816 := z.EncBinary() + _ = yym2816 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym2818 := z.EncBinary() + _ = yym2818 if false { } else { r.EncodeInt(int64(x.Port)) @@ -34624,29 +36398,29 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2819 := z.EncBinary() + _ = yym2819 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2813[2] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2813[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34659,25 +36433,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2821 := z.DecBinary() + _ = yym2821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2822 := r.ContainerType() + if yyct2822 == codecSelferValueTypeMap1234 { + yyl2822 := r.ReadMapStart() + if yyl2822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2822, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2822 == codecSelferValueTypeArray1234 { + yyl2822 := r.ReadArrayStart() + if yyl2822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2822, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34689,12 +36463,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -34703,10 +36477,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2823Slc = r.DecodeBytes(yys2823Slc, true, true) + yys2823 := string(yys2823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2823 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -34726,9 +36500,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2823) + } // end switch yys2823 + } // end for yyj2823 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34736,16 +36510,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj2827 int + var yyb2827 bool + var yyhl2827 bool = l >= 0 + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb7 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb7 { + if yyb2827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34755,13 +36529,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb7 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb7 { + if yyb2827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34771,13 +36545,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb7 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb7 { + if yyb2827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34788,17 +36562,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb7 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb7 { + if yyb2827 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj2827-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34810,139 +36584,139 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2831 := z.EncBinary() + _ = yym2831 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2832 = 1 + for _, b := range yyq2832 { if b { - yynn2++ + yynn2832++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2832) + yynn2832 = 0 } - if yyr2 || yy2arr2 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq2832[0] { + yym2834 := z.EncBinary() + _ = yym2834 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2832[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym2835 := z.EncBinary() + _ = yym2835 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq2832[1] { + yym2837 := z.EncBinary() + _ = yym2837 if false { } else { - h.encSliceEndpoints(([]Endpoints)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq2832[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2838 := z.EncBinary() + _ = yym2838 if false { } else { - h.encSliceEndpoints(([]Endpoints)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq2832[2] { + yy2840 := &x.ListMeta + yym2841 := z.EncBinary() + _ = yym2841 if false { + } else if z.HasExtensions() && z.EncExt(yy2840) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2840) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq2832[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy2842 := &x.ListMeta + yym2843 := z.EncBinary() + _ = yym2843 if false { + } else if z.HasExtensions() && z.EncExt(yy2842) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy2842) } } } - if yyr2 || yy2arr2 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym2845 := z.EncBinary() + _ = yym2845 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEndpoints(([]Endpoints)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2846 := z.EncBinary() + _ = yym2846 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34955,25 +36729,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2847 := z.DecBinary() + _ = yym2847 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2848 := r.ContainerType() + if yyct2848 == codecSelferValueTypeMap1234 { + yyl2848 := r.ReadMapStart() + if yyl2848 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2848, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2848 == codecSelferValueTypeArray1234 { + yyl2848 := r.ReadArrayStart() + if yyl2848 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2848, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34985,12 +36759,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -34999,51 +36773,51 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2849Slc = r.DecodeBytes(yys2849Slc, true, true) + yys2849 := string(yys2849Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2849 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv2852 := &x.ListMeta + yym2853 := z.DecBinary() + _ = yym2853 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv2852) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv2852, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv2854 := &x.Items + yym2855 := z.DecBinary() + _ = yym2855 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv6), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2854), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2849) + } // end switch yys2849 + } // end for yyj2849 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35051,98 +36825,98 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj2856 int + var yyb2856 bool + var yyhl2856 bool = l >= 0 + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb10 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb10 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb10 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb10 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceEndpoints((*[]Endpoints)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb10 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb10 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv2859 := &x.ListMeta + yym2860 := z.DecBinary() + _ = yym2860 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2859) { + } else { + z.DecFallback(yyv2859, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb10 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb10 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2861 := &x.Items + yym2862 := z.DecBinary() + _ = yym2862 + if false { + } else { + h.decSliceEndpoints((*[]Endpoints)(yyv2861), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb10 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb10 { + if yyb2856 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj2856-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35154,38 +36928,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2863 := z.EncBinary() + _ = yym2863 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.PodCIDR != "" - yyq2[1] = x.ExternalID != "" - yyq2[2] = x.ProviderID != "" - yyq2[3] = x.Unschedulable != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2864 = 0 + for _, b := range yyq2864 { if b { - yynn2++ + yynn2864++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2864) + yynn2864 = 0 } - if yyr2 || yy2arr2 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq2864[0] { + yym2866 := z.EncBinary() + _ = yym2866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -35194,23 +36968,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq2864[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2867 := z.EncBinary() + _ = yym2867 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2 || yy2arr2 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq2864[1] { + yym2869 := z.EncBinary() + _ = yym2869 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -35219,23 +36993,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2864[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2870 := z.EncBinary() + _ = yym2870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2 || yy2arr2 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq2864[2] { + yym2872 := z.EncBinary() + _ = yym2872 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -35244,23 +37018,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2864[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2873 := z.EncBinary() + _ = yym2873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2 || yy2arr2 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq2864[3] { + yym2875 := z.EncBinary() + _ = yym2875 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -35269,19 +37043,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[3] { + if yyq2864[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2876 := z.EncBinary() + _ = yym2876 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2 || yy2arr2 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35294,25 +37068,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2877 := z.DecBinary() + _ = yym2877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2878 := r.ContainerType() + if yyct2878 == codecSelferValueTypeMap1234 { + yyl2878 := r.ReadMapStart() + if yyl2878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2878, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2878 == codecSelferValueTypeArray1234 { + yyl2878 := r.ReadArrayStart() + if yyl2878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2878, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35324,12 +37098,12 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35338,10 +37112,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2879Slc = r.DecodeBytes(yys2879Slc, true, true) + yys2879 := string(yys2879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2879 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -35367,9 +37141,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2879) + } // end switch yys2879 + } // end for yyj2879 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35377,16 +37151,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj2884 int + var yyb2884 bool + var yyhl2884 bool = l >= 0 + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb8 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb8 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35396,13 +37170,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb8 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb8 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35412,13 +37186,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb8 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb8 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35428,13 +37202,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb8 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb8 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35445,17 +37219,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb8 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb8 { + if yyb2884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj2884-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35467,33 +37241,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2889 := z.EncBinary() + _ = yym2889 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn2890 = 1 + for _, b := range yyq2890 { if b { - yynn2++ + yynn2890++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2890) + yynn2890 = 0 } - if yyr2 || yy2arr2 { + if yyr2890 || yy2arr2890 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2892 := z.EncBinary() + _ = yym2892 if false { } else { r.EncodeInt(int64(x.Port)) @@ -35502,14 +37276,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2893 := z.EncBinary() + _ = yym2893 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr2890 || yy2arr2890 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35522,25 +37296,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2894 := z.DecBinary() + _ = yym2894 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2895 := r.ContainerType() + if yyct2895 == codecSelferValueTypeMap1234 { + yyl2895 := r.ReadMapStart() + if yyl2895 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2895, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2895 == codecSelferValueTypeArray1234 { + yyl2895 := r.ReadArrayStart() + if yyl2895 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2895, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35552,12 +37326,12 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35566,10 +37340,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2896Slc = r.DecodeBytes(yys2896Slc, true, true) + yys2896 := string(yys2896Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2896 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -35577,9 +37351,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2896) + } // end switch yys2896 + } // end for yyj2896 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35587,16 +37361,16 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj2898 int + var yyb2898 bool + var yyhl2898 bool = l >= 0 + yyj2898++ + if yyhl2898 { + yyb2898 = yyj2898 > l } else { - yyb5 = r.CheckBreak() + yyb2898 = r.CheckBreak() } - if yyb5 { + if yyb2898 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35607,17 +37381,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj2898++ + if yyhl2898 { + yyb2898 = yyj2898 > l } else { - yyb5 = r.CheckBreak() + yyb2898 = r.CheckBreak() } - if yyb5 { + if yyb2898 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj2898-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35629,48 +37403,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2900 := z.EncBinary() + _ = yym2900 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2901 = 0 + for _, b := range yyq2901 { if b { - yynn2++ + yynn2901++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2901) + yynn2901 = 0 } - if yyr2 || yy2arr2 { + if yyr2901 || yy2arr2901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.KubeletEndpoint - yy4.CodecEncodeSelf(e) + if yyq2901[0] { + yy2903 := &x.KubeletEndpoint + yy2903.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2901[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.KubeletEndpoint - yy6.CodecEncodeSelf(e) + yy2904 := &x.KubeletEndpoint + yy2904.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2901 || yy2arr2901 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35683,25 +37457,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2905 := z.DecBinary() + _ = yym2905 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2906 := r.ContainerType() + if yyct2906 == codecSelferValueTypeMap1234 { + yyl2906 := r.ReadMapStart() + if yyl2906 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2906, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2906 == codecSelferValueTypeArray1234 { + yyl2906 := r.ReadArrayStart() + if yyl2906 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2906, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35713,12 +37487,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -35727,21 +37501,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2907Slc = r.DecodeBytes(yys2907Slc, true, true) + yys2907 := string(yys2907Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2907 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv4 := &x.KubeletEndpoint - yyv4.CodecDecodeSelf(d) + yyv2908 := &x.KubeletEndpoint + yyv2908.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2907) + } // end switch yys2907 + } // end for yyj2907 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35749,16 +37523,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj2909 int + var yyb2909 bool + var yyhl2909 bool = l >= 0 + yyj2909++ + if yyhl2909 { + yyb2909 = yyj2909 > l } else { - yyb5 = r.CheckBreak() + yyb2909 = r.CheckBreak() } - if yyb5 { + if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35766,21 +37540,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv6 := &x.KubeletEndpoint - yyv6.CodecDecodeSelf(d) + yyv2910 := &x.KubeletEndpoint + yyv2910.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj2909++ + if yyhl2909 { + yyb2909 = yyj2909 > l } else { - yyb5 = r.CheckBreak() + yyb2909 = r.CheckBreak() } - if yyb5 { + if yyb2909 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj2909-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35792,33 +37566,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2911 := z.EncBinary() + _ = yym2911 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 10 - for _, b := range yyq2 { + yynn2912 = 10 + for _, b := range yyq2912 { if b { - yynn2++ + yynn2912++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2912) + yynn2912 = 0 } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym2914 := z.EncBinary() + _ = yym2914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -35827,17 +37601,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym2915 := z.EncBinary() + _ = yym2915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym2917 := z.EncBinary() + _ = yym2917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -35846,17 +37620,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym2918 := z.EncBinary() + _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym2920 := z.EncBinary() + _ = yym2920 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -35865,17 +37639,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym2921 := z.EncBinary() + _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym2923 := z.EncBinary() + _ = yym2923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -35884,17 +37658,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym2924 := z.EncBinary() + _ = yym2924 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym2926 := z.EncBinary() + _ = yym2926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -35903,17 +37677,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym2927 := z.EncBinary() + _ = yym2927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 + yym2929 := z.EncBinary() + _ = yym2929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -35922,17 +37696,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym2930 := z.EncBinary() + _ = yym2930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym2932 := z.EncBinary() + _ = yym2932 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -35941,17 +37715,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym2933 := z.EncBinary() + _ = yym2933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym25 := z.EncBinary() - _ = yym25 + yym2935 := z.EncBinary() + _ = yym2935 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -35960,17 +37734,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym2936 := z.EncBinary() + _ = yym2936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym28 := z.EncBinary() - _ = yym28 + yym2938 := z.EncBinary() + _ = yym2938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -35979,17 +37753,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym2939 := z.EncBinary() + _ = yym2939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym31 := z.EncBinary() - _ = yym31 + yym2941 := z.EncBinary() + _ = yym2941 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -35998,14 +37772,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym32 := z.EncBinary() - _ = yym32 + yym2942 := z.EncBinary() + _ = yym2942 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2 || yy2arr2 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36018,25 +37792,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2943 := z.DecBinary() + _ = yym2943 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2944 := r.ContainerType() + if yyct2944 == codecSelferValueTypeMap1234 { + yyl2944 := r.ReadMapStart() + if yyl2944 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2944, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2944 == codecSelferValueTypeArray1234 { + yyl2944 := r.ReadArrayStart() + if yyl2944 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2944, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36048,12 +37822,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -36062,10 +37836,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2945Slc = r.DecodeBytes(yys2945Slc, true, true) + yys2945 := string(yys2945Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2945 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -36127,9 +37901,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2945) + } // end switch yys2945 + } // end for yyj2945 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36137,16 +37911,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj2956 int + var yyb2956 bool + var yyhl2956 bool = l >= 0 + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36156,13 +37930,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36172,13 +37946,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36188,13 +37962,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36204,13 +37978,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36220,13 +37994,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36236,13 +38010,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36252,13 +38026,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36268,13 +38042,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36284,13 +38058,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36301,17 +38075,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb14 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb14 { + if yyb2956 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj2956-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36323,42 +38097,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym2967 := z.EncBinary() + _ = yym2967 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Capacity) != 0 - yyq2[1] = len(x.Allocatable) != 0 - yyq2[2] = x.Phase != "" - yyq2[3] = len(x.Conditions) != 0 - yyq2[4] = len(x.Addresses) != 0 - yyq2[5] = true - yyq2[6] = true - yyq2[7] = len(x.Images) != 0 - yyq2[8] = len(x.VolumesInUse) != 0 - yyq2[9] = len(x.VolumesAttached) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn2968 = 0 + for _, b := range yyq2968 { if b { - yynn2++ + yynn2968++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn2968) + yynn2968 = 0 } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq2968[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -36368,7 +38142,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq2968[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36379,9 +38153,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq2968[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -36391,7 +38165,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq2968[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36402,29 +38176,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq2968[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2968[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq2968[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym2973 := z.EncBinary() + _ = yym2973 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36434,15 +38208,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym14 := z.EncBinary() - _ = yym14 + yym2974 := z.EncBinary() + _ = yym2974 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36450,14 +38224,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq2968[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + yym2976 := z.EncBinary() + _ = yym2976 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36467,15 +38241,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + yym2977 := z.EncBinary() + _ = yym2977 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36483,48 +38257,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yy19 := &x.DaemonEndpoints - yy19.CodecEncodeSelf(e) + if yyq2968[5] { + yy2979 := &x.DaemonEndpoints + yy2979.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq2968[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy21 := &x.DaemonEndpoints - yy21.CodecEncodeSelf(e) + yy2980 := &x.DaemonEndpoints + yy2980.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yy24 := &x.NodeInfo - yy24.CodecEncodeSelf(e) + if yyq2968[6] { + yy2982 := &x.NodeInfo + yy2982.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[6] { + if yyq2968[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy26 := &x.NodeInfo - yy26.CodecEncodeSelf(e) + yy2983 := &x.NodeInfo + yy2983.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq2968[7] { if x.Images == nil { r.EncodeNil() } else { - yym29 := z.EncBinary() - _ = yym29 + yym2985 := z.EncBinary() + _ = yym2985 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36534,15 +38308,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym30 := z.EncBinary() - _ = yym30 + yym2986 := z.EncBinary() + _ = yym2986 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36550,14 +38324,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { + if yyq2968[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym32 := z.EncBinary() - _ = yym32 + yym2988 := z.EncBinary() + _ = yym2988 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36567,15 +38341,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym33 := z.EncBinary() - _ = yym33 + yym2989 := z.EncBinary() + _ = yym2989 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36583,14 +38357,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { + if yyq2968[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym35 := z.EncBinary() - _ = yym35 + yym2991 := z.EncBinary() + _ = yym2991 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36600,15 +38374,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym36 := z.EncBinary() - _ = yym36 + yym2992 := z.EncBinary() + _ = yym2992 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36616,7 +38390,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36629,25 +38403,25 @@ func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym2993 := z.DecBinary() + _ = yym2993 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct2994 := r.ContainerType() + if yyct2994 == codecSelferValueTypeMap1234 { + yyl2994 := r.ReadMapStart() + if yyl2994 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl2994, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct2994 == codecSelferValueTypeArray1234 { + yyl2994 := r.ReadArrayStart() + if yyl2994 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl2994, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36659,12 +38433,12 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -36673,23 +38447,23 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys2995Slc = r.DecodeBytes(yys2995Slc, true, true) + yys2995 := string(yys2995Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys2995 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv4 := &x.Capacity - yyv4.CodecDecodeSelf(d) + yyv2996 := &x.Capacity + yyv2996.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv5 := &x.Allocatable - yyv5.CodecDecodeSelf(d) + yyv2997 := &x.Allocatable + yyv2997.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { @@ -36701,80 +38475,80 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv7 := &x.Conditions - yym8 := z.DecBinary() - _ = yym8 + yyv2999 := &x.Conditions + yym3000 := z.DecBinary() + _ = yym3000 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv7), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv2999), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv9 := &x.Addresses - yym10 := z.DecBinary() - _ = yym10 + yyv3001 := &x.Addresses + yym3002 := z.DecBinary() + _ = yym3002 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv9), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3001), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv11 := &x.DaemonEndpoints - yyv11.CodecDecodeSelf(d) + yyv3003 := &x.DaemonEndpoints + yyv3003.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv12 := &x.NodeInfo - yyv12.CodecDecodeSelf(d) + yyv3004 := &x.NodeInfo + yyv3004.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { - yyv13 := &x.Images - yym14 := z.DecBinary() - _ = yym14 + yyv3005 := &x.Images + yym3006 := z.DecBinary() + _ = yym3006 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv13), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3005), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv15 := &x.VolumesInUse - yym16 := z.DecBinary() - _ = yym16 + yyv3007 := &x.VolumesInUse + yym3008 := z.DecBinary() + _ = yym3008 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv15), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3007), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv17 := &x.VolumesAttached - yym18 := z.DecBinary() - _ = yym18 + yyv3009 := &x.VolumesAttached + yym3010 := z.DecBinary() + _ = yym3010 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv17), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3009), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys2995) + } // end switch yys2995 + } // end for yyj2995 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36782,16 +38556,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj19 int - var yyb19 bool - var yyhl19 bool = l >= 0 - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + var yyj3011 int + var yyb3011 bool + var yyhl3011 bool = l >= 0 + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36799,16 +38573,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv20 := &x.Capacity - yyv20.CodecDecodeSelf(d) + yyv3012 := &x.Capacity + yyv3012.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36816,16 +38590,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv21 := &x.Allocatable - yyv21.CodecDecodeSelf(d) + yyv3013 := &x.Allocatable + yyv3013.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36835,13 +38609,13 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = NodePhase(r.DecodeString()) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36849,21 +38623,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv23 := &x.Conditions - yym24 := z.DecBinary() - _ = yym24 + yyv3015 := &x.Conditions + yym3016 := z.DecBinary() + _ = yym3016 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv23), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3015), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36871,21 +38645,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv25 := &x.Addresses - yym26 := z.DecBinary() - _ = yym26 + yyv3017 := &x.Addresses + yym3018 := z.DecBinary() + _ = yym3018 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv25), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3017), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36893,16 +38667,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv27 := &x.DaemonEndpoints - yyv27.CodecDecodeSelf(d) + yyv3019 := &x.DaemonEndpoints + yyv3019.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36910,16 +38684,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv28 := &x.NodeInfo - yyv28.CodecDecodeSelf(d) + yyv3020 := &x.NodeInfo + yyv3020.CodecDecodeSelf(d) } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36927,21 +38701,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Images = nil } else { - yyv29 := &x.Images - yym30 := z.DecBinary() - _ = yym30 + yyv3021 := &x.Images + yym3022 := z.DecBinary() + _ = yym3022 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv29), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3021), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36949,21 +38723,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv31 := &x.VolumesInUse - yym32 := z.DecBinary() - _ = yym32 + yyv3023 := &x.VolumesInUse + yym3024 := z.DecBinary() + _ = yym3024 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv31), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3023), d) } } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36971,26 +38745,26 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv33 := &x.VolumesAttached - yym34 := z.DecBinary() - _ = yym34 + yyv3025 := &x.VolumesAttached + yym3026 := z.DecBinary() + _ = yym3026 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv33), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3025), d) } } for { - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb19 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb19 { + if yyb3011 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj19-1, "") + z.DecStructFieldNotFound(yyj3011-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36999,8 +38773,8 @@ func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3027 := z.EncBinary() + _ = yym3027 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -37012,8 +38786,8 @@ func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3028 := z.DecBinary() + _ = yym3028 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -37028,30 +38802,30 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3029 := z.EncBinary() + _ = yym3029 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3030 = 2 + for _, b := range yyq3030 { if b { - yynn2++ + yynn3030++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3030) + yynn3030 = 0 } - if yyr2 || yy2arr2 { + if yyr3030 || yy2arr3030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { @@ -37060,10 +38834,10 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3030 || yy2arr3030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3033 := z.EncBinary() + _ = yym3033 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) @@ -37072,14 +38846,14 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3034 := z.EncBinary() + _ = yym3034 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } - if yyr2 || yy2arr2 { + if yyr3030 || yy2arr3030 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37092,25 +38866,25 @@ func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3035 := z.DecBinary() + _ = yym3035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3036 := r.ContainerType() + if yyct3036 == codecSelferValueTypeMap1234 { + yyl3036 := r.ReadMapStart() + if yyl3036 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3036, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3036 == codecSelferValueTypeArray1234 { + yyl3036 := r.ReadArrayStart() + if yyl3036 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3036, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37122,12 +38896,12 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -37136,10 +38910,10 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3037Slc = r.DecodeBytes(yys3037Slc, true, true) + yys3037 := string(yys3037Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3037 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -37153,9 +38927,9 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3037) + } // end switch yys3037 + } // end for yyj3037 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37163,16 +38937,16 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3040 int + var yyb3040 bool + var yyhl3040 bool = l >= 0 + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb6 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb6 { + if yyb3040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37182,13 +38956,13 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = UniqueVolumeName(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb6 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb6 { + if yyb3040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37199,105 +38973,86 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb6 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb6 { + if yyb3040 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3040-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *AvoidPods) 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 + yym3043 := z.EncBinary() + _ = yym3043 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.SizeBytes != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3044 = 0 + for _, b := range yyq3044 { if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - 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 { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) + yynn3044++ } } + r.EncodeMapStart(yynn3044) + yynn3044 = 0 } - if yyr2 || yy2arr2 { + if yyr3044 || yy2arr3044 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { + if yyq3044[0] { + if x.PreferAvoidPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.SizeBytes)) + yym3046 := z.EncBinary() + _ = yym3046 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } } } else { - r.EncodeInt(0) + r.EncodeNil() } } else { - if yyq2[1] { + if yyq3044[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) + r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { + if x.PreferAvoidPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.SizeBytes)) + yym3047 := z.EncBinary() + _ = yym3047 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } } } } - if yyr2 || yy2arr2 { + if yyr3044 || yy2arr3044 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37306,29 +39061,29 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3048 := z.DecBinary() + _ = yym3048 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3049 := r.ContainerType() + if yyct3049 == codecSelferValueTypeMap1234 { + yyl3049 := r.ReadMapStart() + if yyl3049 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3049, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3049 == codecSelferValueTypeArray1234 { + yyl3049 := r.ReadArrayStart() + if yyl3049 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3049, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37336,16 +39091,16 @@ func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -37354,279 +39109,160 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3050Slc = r.DecodeBytes(yys3050Slc, true, true) + yys3050 := string(yys3050Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "names": + switch yys3050 { + case "preferAvoidPods": if r.TryDecodeAsNil() { - x.Names = nil + x.PreferAvoidPods = nil } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 + yyv3051 := &x.PreferAvoidPods + yym3052 := z.DecBinary() + _ = yym3052 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3051), d) } } - case "sizeBytes": - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3050) + } // end switch yys3050 + } // end for yyj3050 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3053 int + var yyb3053 bool + var yyhl3053 bool = l >= 0 + yyj3053++ + if yyhl3053 { + yyb3053 = yyj3053 > l } else { - yyb7 = r.CheckBreak() + yyb3053 = r.CheckBreak() } - if yyb7 { + if yyb3053 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Names = nil + x.PreferAvoidPods = nil } else { - yyv8 := &x.Names - yym9 := z.DecBinary() - _ = yym9 + yyv3054 := &x.PreferAvoidPods + yym3055 := z.DecBinary() + _ = yym3055 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3054), d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3053++ + if yyhl3053 { + yyb3053 = yyj3053 > l } else { - yyb7 = r.CheckBreak() + yyb3053 = r.CheckBreak() } - if yyb7 { + if yyb3053 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3053-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 - 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 - yym1 := z.DecBinary() - _ = yym1 - 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 - yym1 := z.EncBinary() - _ = yym1 - 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 - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *PreferAvoidPodsEntry) 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 + yym3056 := z.EncBinary() + _ = yym3056 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3057 = 1 + for _, b := range yyq3057 { if b { - yynn2++ + yynn3057++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3057) + yynn3057 = 0 } - if yyr2 || yy2arr2 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Type.CodecEncodeSelf(e) + yy3059 := &x.PodSignature + yy3059.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) + r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - 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) + yy3060 := &x.PodSignature + yy3060.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastHeartbeatTime - yym11 := z.EncBinary() - _ = yym11 + if yyq3057[1] { + yy3062 := &x.EvictionTime + yym3063 := z.EncBinary() + _ = yym3063 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy3062) { + } else if yym3063 { + z.EncBinaryMarshal(yy3062) + } else if !yym3063 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3062) } else { - z.EncFallback(yy10) + z.EncFallback(yy3062) } } else { r.EncodeNil() } } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastHeartbeatTime - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) - } else { - z.EncFallback(yy12) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) - } else { - z.EncFallback(yy15) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[3] { + if yyq3057[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy3064 := &x.EvictionTime + yym3065 := z.EncBinary() + _ = yym3065 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy3064) { + } else if yym3065 { + z.EncBinaryMarshal(yy3064) + } else if !yym3065 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3064) } else { - z.EncFallback(yy17) + z.EncFallback(yy3064) } } } - if yyr2 || yy2arr2 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq3057[2] { + yym3067 := z.EncBinary() + _ = yym3067 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -37635,23 +39271,23 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq3057[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym3068 := z.EncBinary() + _ = yym3068 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq3057[3] { + yym3070 := z.EncBinary() + _ = yym3070 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -37660,19 +39296,19 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq3057[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym3071 := z.EncBinary() + _ = yym3071 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37681,29 +39317,29 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3072 := z.DecBinary() + _ = yym3072 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3073 := r.ContainerType() + if yyct3073 == codecSelferValueTypeMap1234 { + yyl3073 := r.ReadMapStart() + if yyl3073 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3073, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3073 == codecSelferValueTypeArray1234 { + yyl3073 := r.ReadArrayStart() + if yyl3073 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3073, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37711,16 +39347,16 @@ func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -37729,54 +39365,32 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3074Slc = r.DecodeBytes(yys3074Slc, true, true) + yys3074 := string(yys3074Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "type": + switch yys3074 { + case "podSignature": if r.TryDecodeAsNil() { - x.Type = "" + x.PodSignature = PodSignature{} } else { - x.Type = NodeConditionType(r.DecodeString()) + yyv3075 := &x.PodSignature + yyv3075.CodecDecodeSelf(d) } - case "status": + case "evictionTime": if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - case "lastHeartbeatTime": - if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_unversioned.Time{} - } else { - yyv6 := &x.LastHeartbeatTime - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) - } else { - z.DecFallback(yyv6, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_unversioned.Time{} + x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv3076 := &x.EvictionTime + yym3077 := z.DecBinary() + _ = yym3077 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv3076) { + } else if yym3077 { + z.DecBinaryUnmarshal(yyv3076) + } else if !yym3077 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3076) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv3076, false) } } case "reason": @@ -37792,112 +39406,70 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3074) + } // end switch yys3074 + } // end for yyj3074 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj3080 int + var yyb3080 bool + var yyhl3080 bool = l >= 0 + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb12 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb12 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_unversioned.Time{} + x.PodSignature = PodSignature{} } else { - yyv15 := &x.LastHeartbeatTime - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) - } else { - z.DecFallback(yyv15, false) - } + yyv3081 := &x.PodSignature + yyv3081.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb12 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb12 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_unversioned.Time{} + x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv3082 := &x.EvictionTime + yym3083 := z.DecBinary() + _ = yym3083 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv3082) { + } else if yym3083 { + z.DecBinaryUnmarshal(yyv3082) + } else if !yym3083 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3082) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv3082, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb12 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb12 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37907,13 +39479,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb12 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb12 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37924,17 +39496,919 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb12 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb12 { + if yyb3080 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj3080-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 { + yym3086 := z.EncBinary() + _ = yym3086 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn3087 = 0 + for _, b := range yyq3087 { + if b { + yynn3087++ + } + } + r.EncodeMapStart(yynn3087) + yynn3087 = 0 + } + if yyr3087 || yy2arr3087 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3087[0] { + if x.PodController == nil { + r.EncodeNil() + } else { + x.PodController.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3087[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 yyr3087 || yy2arr3087 { + 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 + yym3089 := z.DecBinary() + _ = yym3089 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3090 := r.ContainerType() + if yyct3090 == codecSelferValueTypeMap1234 { + yyl3090 := r.ReadMapStart() + if yyl3090 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3090, d) + } + } else if yyct3090 == codecSelferValueTypeArray1234 { + yyl3090 := r.ReadArrayStart() + if yyl3090 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3090, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3091Slc = r.DecodeBytes(yys3091Slc, true, true) + yys3091 := string(yys3091Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3091 { + 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, yys3091) + } // end switch yys3091 + } // end for yyj3091 + 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 yyj3093 int + var yyb3093 bool + var yyhl3093 bool = l >= 0 + yyj3093++ + if yyhl3093 { + yyb3093 = yyj3093 > l + } else { + yyb3093 = r.CheckBreak() + } + if yyb3093 { + 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 { + yyj3093++ + if yyhl3093 { + yyb3093 = yyj3093 > l + } else { + yyb3093 = r.CheckBreak() + } + if yyb3093 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3093-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 { + yym3095 := z.EncBinary() + _ = yym3095 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn3096 = 1 + for _, b := range yyq3096 { + if b { + yynn3096++ + } + } + r.EncodeMapStart(yynn3096) + yynn3096 = 0 + } + if yyr3096 || yy2arr3096 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Names == nil { + r.EncodeNil() + } else { + yym3098 := z.EncBinary() + _ = yym3098 + 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 { + yym3099 := z.EncBinary() + _ = yym3099 + if false { + } else { + z.F.EncSliceStringV(x.Names, false, e) + } + } + } + if yyr3096 || yy2arr3096 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3096[1] { + yym3101 := z.EncBinary() + _ = yym3101 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq3096[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3102 := z.EncBinary() + _ = yym3102 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } + } + if yyr3096 || yy2arr3096 { + 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 + yym3103 := z.DecBinary() + _ = yym3103 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3104 := r.ContainerType() + if yyct3104 == codecSelferValueTypeMap1234 { + yyl3104 := r.ReadMapStart() + if yyl3104 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3104, d) + } + } else if yyct3104 == codecSelferValueTypeArray1234 { + yyl3104 := r.ReadArrayStart() + if yyl3104 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3104, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3105Slc = r.DecodeBytes(yys3105Slc, true, true) + yys3105 := string(yys3105Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3105 { + case "names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv3106 := &x.Names + yym3107 := z.DecBinary() + _ = yym3107 + if false { + } else { + z.F.DecSliceStringX(yyv3106, false, d) + } + } + case "sizeBytes": + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys3105) + } // end switch yys3105 + } // end for yyj3105 + 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 yyj3109 int + var yyb3109 bool + var yyhl3109 bool = l >= 0 + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv3110 := &x.Names + yym3111 := z.DecBinary() + _ = yym3111 + if false { + } else { + z.F.DecSliceStringX(yyv3110, false, d) + } + } + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + for { + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3109-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3113 := z.EncBinary() + _ = yym3113 + 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 + yym3114 := z.DecBinary() + _ = yym3114 + 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 + yym3115 := z.EncBinary() + _ = yym3115 + 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 + yym3116 := z.DecBinary() + _ = yym3116 + 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 { + yym3117 := z.EncBinary() + _ = yym3117 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn3118 = 2 + for _, b := range yyq3118 { + if b { + yynn3118++ + } + } + r.EncodeMapStart(yynn3118) + yynn3118 = 0 + } + if yyr3118 || yy2arr3118 { + 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 yyr3118 || yy2arr3118 { + 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 yyr3118 || yy2arr3118 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3118[2] { + yy3122 := &x.LastHeartbeatTime + yym3123 := z.EncBinary() + _ = yym3123 + if false { + } else if z.HasExtensions() && z.EncExt(yy3122) { + } else if yym3123 { + z.EncBinaryMarshal(yy3122) + } else if !yym3123 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3122) + } else { + z.EncFallback(yy3122) + } + } else { + r.EncodeNil() + } + } else { + if yyq3118[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3124 := &x.LastHeartbeatTime + yym3125 := z.EncBinary() + _ = yym3125 + if false { + } else if z.HasExtensions() && z.EncExt(yy3124) { + } else if yym3125 { + z.EncBinaryMarshal(yy3124) + } else if !yym3125 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3124) + } else { + z.EncFallback(yy3124) + } + } + } + if yyr3118 || yy2arr3118 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3118[3] { + yy3127 := &x.LastTransitionTime + yym3128 := z.EncBinary() + _ = yym3128 + if false { + } else if z.HasExtensions() && z.EncExt(yy3127) { + } else if yym3128 { + z.EncBinaryMarshal(yy3127) + } else if !yym3128 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3127) + } else { + z.EncFallback(yy3127) + } + } else { + r.EncodeNil() + } + } else { + if yyq3118[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3129 := &x.LastTransitionTime + yym3130 := z.EncBinary() + _ = yym3130 + if false { + } else if z.HasExtensions() && z.EncExt(yy3129) { + } else if yym3130 { + z.EncBinaryMarshal(yy3129) + } else if !yym3130 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3129) + } else { + z.EncFallback(yy3129) + } + } + } + if yyr3118 || yy2arr3118 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3118[4] { + yym3132 := z.EncBinary() + _ = yym3132 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3118[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3133 := z.EncBinary() + _ = yym3133 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3118 || yy2arr3118 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3118[5] { + yym3135 := z.EncBinary() + _ = yym3135 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3118[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3136 := z.EncBinary() + _ = yym3136 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3118 || yy2arr3118 { + 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 + 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 *NodeCondition) 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 "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 { + yyv3142 := &x.LastHeartbeatTime + yym3143 := z.DecBinary() + _ = yym3143 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3142) { + } else if yym3143 { + z.DecBinaryUnmarshal(yyv3142) + } else if !yym3143 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3142) + } else { + z.DecFallback(yyv3142, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv3144 := &x.LastTransitionTime + yym3145 := z.DecBinary() + _ = yym3145 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3144) { + } else if yym3145 { + z.DecBinaryUnmarshal(yyv3144) + } else if !yym3145 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3144) + } else { + z.DecFallback(yyv3144, 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, yys3139) + } // end switch yys3139 + } // end for yyj3139 + 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 yyj3148 int + var yyb3148 bool + var yyhl3148 bool = l >= 0 + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeConditionType(r.DecodeString()) + } + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastHeartbeatTime = pkg2_unversioned.Time{} + } else { + yyv3151 := &x.LastHeartbeatTime + yym3152 := z.DecBinary() + _ = yym3152 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3151) { + } else if yym3152 { + z.DecBinaryUnmarshal(yyv3151) + } else if !yym3152 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3151) + } else { + z.DecFallback(yyv3151, false) + } + } + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv3153 := &x.LastTransitionTime + yym3154 := z.DecBinary() + _ = yym3154 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3153) { + } else if yym3154 { + z.DecBinaryUnmarshal(yyv3153) + } else if !yym3154 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3153) + } else { + z.DecFallback(yyv3153, false) + } + } + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l + } else { + yyb3148 = r.CheckBreak() + } + if yyb3148 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37943,8 +40417,8 @@ func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3157 := z.EncBinary() + _ = yym3157 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -37956,8 +40430,8 @@ func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3158 := z.DecBinary() + _ = yym3158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -37972,30 +40446,30 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3159 := z.EncBinary() + _ = yym3159 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3160 = 2 + for _, b := range yyq3160 { if b { - yynn2++ + yynn3160++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3160) + yynn3160 = 0 } - if yyr2 || yy2arr2 { + if yyr3160 || yy2arr3160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -38004,10 +40478,10 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3160 || yy2arr3160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3163 := z.EncBinary() + _ = yym3163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -38016,14 +40490,14 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3164 := z.EncBinary() + _ = yym3164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr2 || yy2arr2 { + if yyr3160 || yy2arr3160 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38036,25 +40510,25 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3165 := z.DecBinary() + _ = yym3165 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3166 := r.ContainerType() + if yyct3166 == codecSelferValueTypeMap1234 { + yyl3166 := r.ReadMapStart() + if yyl3166 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3166, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3166 == codecSelferValueTypeArray1234 { + yyl3166 := r.ReadArrayStart() + if yyl3166 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3166, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38066,12 +40540,12 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -38080,10 +40554,10 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3167Slc = r.DecodeBytes(yys3167Slc, true, true) + yys3167 := string(yys3167Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3167 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -38097,9 +40571,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3167) + } // end switch yys3167 + } // end for yyj3167 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38107,16 +40581,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3170 int + var yyb3170 bool + var yyhl3170 bool = l >= 0 + yyj3170++ + if yyhl3170 { + yyb3170 = yyj3170 > l } else { - yyb6 = r.CheckBreak() + yyb3170 = r.CheckBreak() } - if yyb6 { + if yyb3170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38126,13 +40600,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3170++ + if yyhl3170 { + yyb3170 = yyj3170 > l } else { - yyb6 = r.CheckBreak() + yyb3170 = r.CheckBreak() } - if yyb6 { + if yyb3170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38143,17 +40617,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3170++ + if yyhl3170 { + yyb3170 = yyj3170 > l } else { - yyb6 = r.CheckBreak() + yyb3170 = r.CheckBreak() } - if yyb6 { + if yyb3170 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3170-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38162,8 +40636,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3173 := z.EncBinary() + _ = yym3173 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38175,8 +40649,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3174 := z.DecBinary() + _ = yym3174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38191,8 +40665,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3175 := z.EncBinary() + _ = yym3175 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38205,8 +40679,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3176 := z.DecBinary() + _ = yym3176 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38221,136 +40695,136 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3177 := z.EncBinary() + _ = yym3177 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3178 = 0 + for _, b := range yyq3178 { if b { - yynn2++ + yynn3178++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3178) + yynn3178 = 0 } - if yyr2 || yy2arr2 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq3178[0] { + yym3180 := z.EncBinary() + _ = yym3180 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3178[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym3181 := z.EncBinary() + _ = yym3181 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq3178[1] { + yym3183 := z.EncBinary() + _ = yym3183 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3178[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym3184 := z.EncBinary() + _ = yym3184 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq3178[2] { + yy3186 := &x.ObjectMeta + yy3186.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3178[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy3187 := &x.ObjectMeta + yy3187.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq3178[3] { + yy3189 := &x.Spec + yy3189.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq3178[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy3190 := &x.Spec + yy3190.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq3178[4] { + yy3192 := &x.Status + yy3192.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq3178[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy3193 := &x.Status + yy3193.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38363,25 +40837,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3194 := z.DecBinary() + _ = yym3194 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3195 := r.ContainerType() + if yyct3195 == codecSelferValueTypeMap1234 { + yyl3195 := r.ReadMapStart() + if yyl3195 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3195, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3195 == codecSelferValueTypeArray1234 { + yyl3195 := r.ReadArrayStart() + if yyl3195 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3195, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38393,12 +40867,12 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -38407,47 +40881,47 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3196Slc = r.DecodeBytes(yys3196Slc, true, true) + yys3196 := string(yys3196Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys3196 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = NodeSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = NodeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv3199 := &x.ObjectMeta + yyv3199.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NodeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3200 := &x.Spec + yyv3200.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NodeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3201 := &x.Status + yyv3201.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3196) + } // end switch yys3196 + } // end for yyj3196 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38455,104 +40929,104 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj3202 int + var yyb3202 bool + var yyhl3202 bool = l >= 0 + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb9 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb9 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb9 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb9 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = NodeSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb9 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb9 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = NodeStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv3205 := &x.ObjectMeta + yyv3205.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb9 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb9 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NodeSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3206 := &x.Spec + yyv3206.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb9 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb9 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NodeStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3207 := &x.Status + yyv3207.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb9 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb9 { + if yyb3202 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj3202-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38564,139 +41038,139 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3208 := z.EncBinary() + _ = yym3208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3209 = 1 + for _, b := range yyq3209 { if b { - yynn2++ + yynn3209++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3209) + yynn3209 = 0 } - if yyr2 || yy2arr2 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3209[0] { + yym3211 := z.EncBinary() + _ = yym3211 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3209[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3212 := z.EncBinary() + _ = yym3212 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3209[1] { + yym3214 := z.EncBinary() + _ = yym3214 if false { } else { - h.encSliceNode(([]Node)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3209[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3215 := z.EncBinary() + _ = yym3215 if false { } else { - h.encSliceNode(([]Node)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3209[2] { + yy3217 := &x.ListMeta + yym3218 := z.EncBinary() + _ = yym3218 if false { + } else if z.HasExtensions() && z.EncExt(yy3217) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3217) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3209[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3219 := &x.ListMeta + yym3220 := z.EncBinary() + _ = yym3220 if false { + } else if z.HasExtensions() && z.EncExt(yy3219) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3219) } } } - if yyr2 || yy2arr2 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3222 := z.EncBinary() + _ = yym3222 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNode(([]Node)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3223 := z.EncBinary() + _ = yym3223 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38709,25 +41183,25 @@ func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3224 := z.DecBinary() + _ = yym3224 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3225 := r.ContainerType() + if yyct3225 == codecSelferValueTypeMap1234 { + yyl3225 := r.ReadMapStart() + if yyl3225 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3225, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3225 == codecSelferValueTypeArray1234 { + yyl3225 := r.ReadArrayStart() + if yyl3225 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3225, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38739,12 +41213,12 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -38753,51 +41227,51 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3226Slc = r.DecodeBytes(yys3226Slc, true, true) + yys3226 := string(yys3226Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3226 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3229 := &x.ListMeta + yym3230 := z.DecBinary() + _ = yym3230 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3229) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3229, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3231 := &x.Items + yym3232 := z.DecBinary() + _ = yym3232 if false { } else { - h.decSliceNode((*[]Node)(yyv6), d) + h.decSliceNode((*[]Node)(yyv3231), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3226) + } // end switch yys3226 + } // end for yyj3226 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38805,98 +41279,98 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3233 int + var yyb3233 bool + var yyhl3233 bool = l >= 0 + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb10 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb10 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb10 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb10 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceNode((*[]Node)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb10 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb10 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3236 := &x.ListMeta + yym3237 := z.DecBinary() + _ = yym3237 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3236) { + } else { + z.DecFallback(yyv3236, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb10 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb10 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3238 := &x.Items + yym3239 := z.DecBinary() + _ = yym3239 + if false { + } else { + h.decSliceNode((*[]Node)(yyv3238), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb10 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb10 { + if yyb3233 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3233-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38905,8 +41379,8 @@ func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3240 := z.EncBinary() + _ = yym3240 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38918,8 +41392,8 @@ func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3241 := z.DecBinary() + _ = yym3241 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38934,38 +41408,38 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3242 := z.EncBinary() + _ = yym3242 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Finalizers) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3243 = 0 + for _, b := range yyq3243 { if b { - yynn2++ + yynn3243++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3243) + yynn3243 = 0 } - if yyr2 || yy2arr2 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3243[0] { if x.Finalizers == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym3245 := z.EncBinary() + _ = yym3245 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -38975,15 +41449,15 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq3243[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym3246 := z.EncBinary() + _ = yym3246 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -38991,7 +41465,7 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39004,25 +41478,25 @@ func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3247 := z.DecBinary() + _ = yym3247 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3248 := r.ContainerType() + if yyct3248 == codecSelferValueTypeMap1234 { + yyl3248 := r.ReadMapStart() + if yyl3248 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3248, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3248 == codecSelferValueTypeArray1234 { + yyl3248 := r.ReadArrayStart() + if yyl3248 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3248, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39034,12 +41508,12 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -39048,26 +41522,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3249Slc = r.DecodeBytes(yys3249Slc, true, true) + yys3249 := string(yys3249Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3249 { case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv4 := &x.Finalizers - yym5 := z.DecBinary() - _ = yym5 + yyv3250 := &x.Finalizers + yym3251 := z.DecBinary() + _ = yym3251 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv4), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3250), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3249) + } // end switch yys3249 + } // end for yyj3249 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39075,16 +41549,16 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3252 int + var yyb3252 bool + var yyhl3252 bool = l >= 0 + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l } else { - yyb6 = r.CheckBreak() + yyb3252 = r.CheckBreak() } - if yyb6 { + if yyb3252 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39092,26 +41566,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv7 := &x.Finalizers - yym8 := z.DecBinary() - _ = yym8 + yyv3253 := &x.Finalizers + yym3254 := z.DecBinary() + _ = yym3254 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv7), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3253), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l } else { - yyb6 = r.CheckBreak() + yyb3252 = r.CheckBreak() } - if yyb6 { + if yyb3252 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3252-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39123,46 +41597,46 @@ func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3255 := z.EncBinary() + _ = yym3255 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Phase != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3256 = 0 + for _, b := range yyq3256 { if b { - yynn2++ + yynn3256++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3256) + yynn3256 = 0 } - if yyr2 || yy2arr2 { + if yyr3256 || yy2arr3256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3256[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3256[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3256 || yy2arr3256 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39175,25 +41649,25 @@ func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3258 := z.DecBinary() + _ = yym3258 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3259 := r.ContainerType() + if yyct3259 == codecSelferValueTypeMap1234 { + yyl3259 := r.ReadMapStart() + if yyl3259 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3259, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3259 == codecSelferValueTypeArray1234 { + yyl3259 := r.ReadArrayStart() + if yyl3259 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3259, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39205,12 +41679,12 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -39219,10 +41693,10 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3260Slc = r.DecodeBytes(yys3260Slc, true, true) + yys3260 := string(yys3260Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3260 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -39230,9 +41704,9 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Phase = NamespacePhase(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3260) + } // end switch yys3260 + } // end for yyj3260 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39240,16 +41714,16 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj3262 int + var yyb3262 bool + var yyhl3262 bool = l >= 0 + yyj3262++ + if yyhl3262 { + yyb3262 = yyj3262 > l } else { - yyb5 = r.CheckBreak() + yyb3262 = r.CheckBreak() } - if yyb5 { + if yyb3262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39260,17 +41734,17 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Phase = NamespacePhase(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj3262++ + if yyhl3262 { + yyb3262 = yyj3262 > l } else { - yyb5 = r.CheckBreak() + yyb3262 = r.CheckBreak() } - if yyb5 { + if yyb3262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj3262-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39279,8 +41753,8 @@ func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3264 := z.EncBinary() + _ = yym3264 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39292,8 +41766,8 @@ func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3265 := z.DecBinary() + _ = yym3265 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39308,136 +41782,136 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3266 := z.EncBinary() + _ = yym3266 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3267 = 0 + for _, b := range yyq3267 { if b { - yynn2++ + yynn3267++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3267) + yynn3267 = 0 } - if yyr2 || yy2arr2 { + if yyr3267 || yy2arr3267 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq3267[0] { + yym3269 := z.EncBinary() + _ = yym3269 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3267[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym3270 := z.EncBinary() + _ = yym3270 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr3267 || yy2arr3267 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq3267[1] { + yym3272 := z.EncBinary() + _ = yym3272 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3267[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym3273 := z.EncBinary() + _ = yym3273 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr3267 || yy2arr3267 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq3267[2] { + yy3275 := &x.ObjectMeta + yy3275.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3267[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy3276 := &x.ObjectMeta + yy3276.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3267 || yy2arr3267 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq3267[3] { + yy3278 := &x.Spec + yy3278.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq3267[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy3279 := &x.Spec + yy3279.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3267 || yy2arr3267 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq3267[4] { + yy3281 := &x.Status + yy3281.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq3267[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy3282 := &x.Status + yy3282.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3267 || yy2arr3267 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39450,25 +41924,25 @@ func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3283 := z.DecBinary() + _ = yym3283 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3284 := r.ContainerType() + if yyct3284 == codecSelferValueTypeMap1234 { + yyl3284 := r.ReadMapStart() + if yyl3284 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3284, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3284 == codecSelferValueTypeArray1234 { + yyl3284 := r.ReadArrayStart() + if yyl3284 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3284, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39480,12 +41954,12 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys3285Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3285Slc + var yyhl3285 bool = l >= 0 + for yyj3285 := 0; ; yyj3285++ { + if yyhl3285 { + if yyj3285 >= l { break } } else { @@ -39494,47 +41968,47 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3285Slc = r.DecodeBytes(yys3285Slc, true, true) + yys3285 := string(yys3285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys3285 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv3288 := &x.ObjectMeta + yyv3288.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NamespaceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3289 := &x.Spec + yyv3289.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NamespaceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3290 := &x.Status + yyv3290.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3285) + } // end switch yys3285 + } // end for yyj3285 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39542,104 +42016,104 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj3291 int + var yyb3291 bool + var yyhl3291 bool = l >= 0 + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l } else { - yyb9 = r.CheckBreak() + yyb3291 = r.CheckBreak() } - if yyb9 { + if yyb3291 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l } else { - yyb9 = r.CheckBreak() + yyb3291 = r.CheckBreak() } - if yyb9 { + if yyb3291 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l } else { - yyb9 = r.CheckBreak() + yyb3291 = r.CheckBreak() } - if yyb9 { + if yyb3291 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv3294 := &x.ObjectMeta + yyv3294.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l } else { - yyb9 = r.CheckBreak() + yyb3291 = r.CheckBreak() } - if yyb9 { + if yyb3291 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = NamespaceSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv3295 := &x.Spec + yyv3295.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l } else { - yyb9 = r.CheckBreak() + yyb3291 = r.CheckBreak() } - if yyb9 { + if yyb3291 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = NamespaceStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3296 := &x.Status + yyv3296.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l } else { - yyb9 = r.CheckBreak() + yyb3291 = r.CheckBreak() } - if yyb9 { + if yyb3291 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj3291-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39651,139 +42125,139 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3297 := z.EncBinary() + _ = yym3297 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3298 = 1 + for _, b := range yyq3298 { if b { - yynn2++ + yynn3298++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3298) + yynn3298 = 0 } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3298[0] { + yym3300 := z.EncBinary() + _ = yym3300 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3298[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3301 := z.EncBinary() + _ = yym3301 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3298[1] { + yym3303 := z.EncBinary() + _ = yym3303 if false { } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3298[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3304 := z.EncBinary() + _ = yym3304 if false { } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3298[2] { + yy3306 := &x.ListMeta + yym3307 := z.EncBinary() + _ = yym3307 if false { + } else if z.HasExtensions() && z.EncExt(yy3306) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3306) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3298[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3308 := &x.ListMeta + yym3309 := z.EncBinary() + _ = yym3309 if false { + } else if z.HasExtensions() && z.EncExt(yy3308) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3308) } } } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3311 := z.EncBinary() + _ = yym3311 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNamespace(([]Namespace)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNamespace(([]Namespace)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39796,25 +42270,25 @@ func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3313 := z.DecBinary() + _ = yym3313 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3314 := r.ContainerType() + if yyct3314 == codecSelferValueTypeMap1234 { + yyl3314 := r.ReadMapStart() + if yyl3314 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3314, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3314 == codecSelferValueTypeArray1234 { + yyl3314 := r.ReadArrayStart() + if yyl3314 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3314, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39826,12 +42300,12 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -39840,51 +42314,51 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3315Slc = r.DecodeBytes(yys3315Slc, true, true) + yys3315 := string(yys3315Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3318 := &x.ListMeta + yym3319 := z.DecBinary() + _ = yym3319 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3318) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3318, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3320 := &x.Items + yym3321 := z.DecBinary() + _ = yym3321 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv6), d) + h.decSliceNamespace((*[]Namespace)(yyv3320), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3315) + } // end switch yys3315 + } // end for yyj3315 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39892,98 +42366,98 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3322 int + var yyb3322 bool + var yyhl3322 bool = l >= 0 + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l } else { - yyb10 = r.CheckBreak() + yyb3322 = r.CheckBreak() } - if yyb10 { + if yyb3322 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l } else { - yyb10 = r.CheckBreak() + yyb3322 = r.CheckBreak() } - if yyb10 { + if yyb3322 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceNamespace((*[]Namespace)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l } else { - yyb10 = r.CheckBreak() + yyb3322 = r.CheckBreak() } - if yyb10 { + if yyb3322 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3325 := &x.ListMeta + yym3326 := z.DecBinary() + _ = yym3326 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3325) { + } else { + z.DecFallback(yyv3325, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l } else { - yyb10 = r.CheckBreak() + yyb3322 = r.CheckBreak() } - if yyb10 { + if yyb3322 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3327 := &x.Items + yym3328 := z.DecBinary() + _ = yym3328 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3327), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l } else { - yyb10 = r.CheckBreak() + yyb3322 = r.CheckBreak() } - if yyb10 { + if yyb3322 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3322-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39995,65 +42469,37 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3329 := z.EncBinary() + _ = yym3329 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3330 = 1 + for _, b := range yyq3330 { if b { - yynn2++ + yynn3330++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn3330) + yynn3330 = 0 } - if yyr2 || yy2arr2 { + if yyr3330 || yy2arr3330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy9 := &x.Target - yy9.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("target")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Target - yy11.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq3330[0] { + yym3332 := z.EncBinary() + _ = yym3332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -40062,23 +42508,23 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3330[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym3333 := z.EncBinary() + _ = yym3333 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3330 || yy2arr3330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq3330[1] { + yym3335 := z.EncBinary() + _ = yym3335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -40087,19 +42533,47 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3330[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym3336 := z.EncBinary() + _ = yym3336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + 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) @@ -40112,25 +42586,25 @@ func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3343 := z.DecBinary() + _ = yym3343 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3344 := r.ContainerType() + if yyct3344 == codecSelferValueTypeMap1234 { + yyl3344 := r.ReadMapStart() + if yyl3344 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3344, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3344 == codecSelferValueTypeArray1234 { + yyl3344 := r.ReadArrayStart() + if yyl3344 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3344, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40142,12 +42616,12 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -40156,24 +42630,10 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3345Slc = r.DecodeBytes(yys3345Slc, true, true) + yys3345 := string(yys3345Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "target": - if r.TryDecodeAsNil() { - x.Target = ObjectReference{} - } else { - yyv5 := &x.Target - yyv5.CodecDecodeSelf(d) - } + switch yys3345 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -40186,10 +42646,24 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3345) + } // end switch yys3345 + } // end for yyj3345 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40197,87 +42671,87 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj3350 int + var yyb3350 bool + var yyhl3350 bool = l >= 0 + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l } else { - yyb8 = r.CheckBreak() + yyb3350 = r.CheckBreak() } - if yyb8 { + if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l } else { - yyb8 = r.CheckBreak() + yyb3350 = r.CheckBreak() } - if yyb8 { + if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Target = ObjectReference{} + x.APIVersion = "" } else { - yyv10 := &x.Target - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l } else { - yyb8 = r.CheckBreak() + yyb3350 = r.CheckBreak() } - if yyb8 { + if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3353 := &x.ObjectMeta + yyv3353.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l } else { - yyb8 = r.CheckBreak() + yyb3350 = r.CheckBreak() } - if yyb8 { + if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Target = ObjectReference{} } else { - x.APIVersion = string(r.DecodeString()) + yyv3354 := &x.Target + yyv3354.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l } else { - yyb8 = r.CheckBreak() + yyb3350 = r.CheckBreak() } - if yyb8 { + if yyb3350 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj3350-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40289,68 +42763,68 @@ func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3355 := z.EncBinary() + _ = yym3355 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.UID != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3356 = 0 + for _, b := range yyq3356 { if b { - yynn2++ + yynn3356++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3356) + yynn3356 = 0 } - if yyr2 || yy2arr2 { + if yyr3356 || yy2arr3356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3356[0] { if x.UID == nil { r.EncodeNil() } else { - yy4 := *x.UID - yym5 := z.EncBinary() - _ = yym5 + yy3358 := *x.UID + yym3359 := z.EncBinary() + _ = yym3359 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { + } else if z.HasExtensions() && z.EncExt(yy3358) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy4)) + r.EncodeString(codecSelferC_UTF81234, string(yy3358)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq3356[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { - yy6 := *x.UID - yym7 := z.EncBinary() - _ = yym7 + yy3360 := *x.UID + yym3361 := z.EncBinary() + _ = yym3361 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { + } else if z.HasExtensions() && z.EncExt(yy3360) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy6)) + r.EncodeString(codecSelferC_UTF81234, string(yy3360)) } } } } - if yyr2 || yy2arr2 { + if yyr3356 || yy2arr3356 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40363,25 +42837,25 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3362 := z.DecBinary() + _ = yym3362 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3363 := r.ContainerType() + if yyct3363 == codecSelferValueTypeMap1234 { + yyl3363 := r.ReadMapStart() + if yyl3363 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3363, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3363 == codecSelferValueTypeArray1234 { + yyl3363 := r.ReadArrayStart() + if yyl3363 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3363, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40393,12 +42867,12 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -40407,10 +42881,10 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3364Slc = r.DecodeBytes(yys3364Slc, true, true) + yys3364 := string(yys3364Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3364 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { @@ -40420,8 +42894,8 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym5 := z.DecBinary() - _ = yym5 + yym3366 := z.DecBinary() + _ = yym3366 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -40429,9 +42903,9 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3364) + } // end switch yys3364 + } // end for yyj3364 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40439,16 +42913,16 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3367 int + var yyb3367 bool + var yyhl3367 bool = l >= 0 + yyj3367++ + if yyhl3367 { + yyb3367 = yyj3367 > l } else { - yyb6 = r.CheckBreak() + yyb3367 = r.CheckBreak() } - if yyb6 { + if yyb3367 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40461,8 +42935,8 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym8 := z.DecBinary() - _ = yym8 + yym3369 := z.DecBinary() + _ = yym3369 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -40470,17 +42944,17 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3367++ + if yyhl3367 { + yyb3367 = yyj3367 > l } else { - yyb6 = r.CheckBreak() + yyb3367 = r.CheckBreak() } - if yyb6 { + if yyb3367 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3367-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40492,178 +42966,178 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3370 := z.EncBinary() + _ = yym3370 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.GracePeriodSeconds != nil - yyq2[1] = x.Preconditions != nil - yyq2[2] = x.OrphanDependents != nil - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3371 = 0 + for _, b := range yyq3371 { if b { - yynn2++ + yynn3371++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3371) + yynn3371 = 0 } - if yyr2 || yy2arr2 { + if yyr3371 || yy2arr3371 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - if x.GracePeriodSeconds == nil { - r.EncodeNil() + if yyq3371[0] { + yym3373 := z.EncBinary() + _ = yym3373 + if false { } else { - yy4 := *x.GracePeriodSeconds - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(yy4)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3371[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GracePeriodSeconds == nil { - r.EncodeNil() + yym3374 := z.EncBinary() + _ = yym3374 + if false { } else { - yy6 := *x.GracePeriodSeconds - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(yy6)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3371 || yy2arr3371 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Preconditions == nil { - r.EncodeNil() + if yyq3371[1] { + yym3376 := z.EncBinary() + _ = yym3376 + if false { } else { - x.Preconditions.CodecEncodeSelf(e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3371[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preconditions")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Preconditions == nil { - r.EncodeNil() + yym3377 := z.EncBinary() + _ = yym3377 + if false { } else { - x.Preconditions.CodecEncodeSelf(e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3371 || yy2arr3371 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - if x.OrphanDependents == nil { + if yyq3371[2] { + if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy12 := *x.OrphanDependents - yym13 := z.EncBinary() - _ = yym13 + yy3379 := *x.GracePeriodSeconds + yym3380 := z.EncBinary() + _ = yym3380 if false { } else { - r.EncodeBool(bool(yy12)) + r.EncodeInt(int64(yy3379)) } } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3371[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) + r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OrphanDependents == nil { + if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy14 := *x.OrphanDependents - yym15 := z.EncBinary() - _ = yym15 + yy3381 := *x.GracePeriodSeconds + yym3382 := z.EncBinary() + _ = yym3382 if false { } else { - r.EncodeBool(bool(yy14)) + r.EncodeInt(int64(yy3381)) } } } } - if yyr2 || yy2arr2 { + if yyr3371 || yy2arr3371 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { + if yyq3371[3] { + if x.Preconditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + x.Preconditions.CodecEncodeSelf(e) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq3371[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { + if x.Preconditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + x.Preconditions.CodecEncodeSelf(e) } } } - if yyr2 || yy2arr2 { + if yyr3371 || yy2arr3371 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 - if false { + if yyq3371[4] { + if x.OrphanDependents == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy3385 := *x.OrphanDependents + yym3386 := z.EncBinary() + _ = yym3386 + if false { + } else { + r.EncodeBool(bool(yy3385)) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq3371[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 - if false { + if x.OrphanDependents == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy3387 := *x.OrphanDependents + yym3388 := z.EncBinary() + _ = yym3388 + if false { + } else { + r.EncodeBool(bool(yy3387)) + } } } } - if yyr2 || yy2arr2 { + if yyr3371 || yy2arr3371 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40676,25 +43150,25 @@ func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3389 := z.DecBinary() + _ = yym3389 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3390 := r.ContainerType() + if yyct3390 == codecSelferValueTypeMap1234 { + yyl3390 := r.ReadMapStart() + if yyl3390 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3390, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3390 == codecSelferValueTypeArray1234 { + yyl3390 := r.ReadArrayStart() + if yyl3390 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3390, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40706,12 +43180,12 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -40720,10 +43194,22 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3391Slc = r.DecodeBytes(yys3391Slc, true, true) + yys3391 := string(yys3391Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { @@ -40733,8 +43219,8 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym3395 := z.DecBinary() + _ = yym3395 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -40760,29 +43246,17 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym8 := z.DecBinary() - _ = yym8 + yym3398 := z.DecBinary() + _ = yym3398 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3391) + } // end switch yys3391 + } // end for yyj3391 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40790,16 +43264,48 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + 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 { - yyb11 = r.CheckBreak() + yyb3399 = r.CheckBreak() } - if yyb11 { + if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40812,20 +43318,20 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym13 := z.DecBinary() - _ = yym13 + yym3403 := z.DecBinary() + _ = yym3403 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l } else { - yyb11 = r.CheckBreak() + yyb3399 = r.CheckBreak() } - if yyb11 { + if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40840,13 +43346,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Preconditions.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l } else { - yyb11 = r.CheckBreak() + yyb3399 = r.CheckBreak() } - if yyb11 { + if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40859,57 +43365,25 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym16 := z.DecBinary() - _ = yym16 + yym3406 := z.DecBinary() + _ = yym3406 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l } else { - yyb11 = r.CheckBreak() + yyb3399 = r.CheckBreak() } - if yyb11 { + if yyb3399 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj3399-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40921,74 +43395,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3407 := z.EncBinary() + _ = yym3407 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3408 = 2 + for _, b := range yyq3408 { if b { - yynn2++ + yynn3408++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("export")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exact")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } + r.EncodeMapStart(yynn3408) + yynn3408 = 0 } - if yyr2 || yy2arr2 { + if yyr3408 || yy2arr3408 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3408[0] { + yym3410 := z.EncBinary() + _ = yym3410 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -40997,23 +43433,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3408[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3411 := z.EncBinary() + _ = yym3411 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3408 || yy2arr3408 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3408[1] { + yym3413 := z.EncBinary() + _ = yym3413 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41022,19 +43458,57 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3408[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3414 := z.EncBinary() + _ = yym3414 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + 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) @@ -41047,25 +43521,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3421 := z.DecBinary() + _ = yym3421 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3422 := r.ContainerType() + if yyct3422 == codecSelferValueTypeMap1234 { + yyl3422 := r.ReadMapStart() + if yyl3422 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3422, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3422 == codecSelferValueTypeArray1234 { + yyl3422 := r.ReadArrayStart() + if yyl3422 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3422, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41077,12 +43551,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -41091,22 +43565,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3423Slc = r.DecodeBytes(yys3423Slc, true, true) + yys3423 := string(yys3423Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "export": - if r.TryDecodeAsNil() { - x.Export = false - } else { - x.Export = bool(r.DecodeBool()) - } - case "exact": - if r.TryDecodeAsNil() { - x.Exact = false - } else { - x.Exact = bool(r.DecodeBool()) - } + switch yys3423 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41119,10 +43581,22 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "export": + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + case "exact": + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3423) + } // end switch yys3423 + } // end for yyj3423 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41130,85 +43604,85 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj3428 int + var yyb3428 bool + var yyhl3428 bool = l >= 0 + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb8 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb8 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Export = false + x.Kind = "" } else { - x.Export = bool(r.DecodeBool()) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb8 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb8 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Exact = false + x.APIVersion = "" } else { - x.Exact = bool(r.DecodeBool()) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb8 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb8 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Export = false } else { - x.Kind = string(r.DecodeString()) + x.Export = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb8 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb8 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Exact = false } else { - x.APIVersion = string(r.DecodeString()) + x.Exact = bool(r.DecodeBool()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb8 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb8 { + if yyb3428 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj3428-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41220,222 +43694,222 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3433 := z.EncBinary() + _ = yym3433 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.LabelSelector != "" - yyq2[1] = x.FieldSelector != "" - yyq2[2] = x.Watch != false - yyq2[3] = x.ResourceVersion != "" - yyq2[4] = x.TimeoutSeconds != nil - yyq2[5] = x.Kind != "" - yyq2[6] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3434 = 0 + for _, b := range yyq3434 { if b { - yynn2++ + yynn3434++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3434) + yynn3434 = 0 } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3434[0] { + yym3436 := z.EncBinary() + _ = yym3436 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3434[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3437 := z.EncBinary() + _ = yym3437 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3434[1] { + yym3439 := z.EncBinary() + _ = yym3439 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3434[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3440 := z.EncBinary() + _ = yym3440 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3434[2] { + yym3442 := z.EncBinary() + _ = yym3442 if false { } else { - r.EncodeBool(bool(x.Watch)) + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3434[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("watch")) + r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3443 := z.EncBinary() + _ = yym3443 if false { } else { - r.EncodeBool(bool(x.Watch)) + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3434[3] { + yym3445 := z.EncBinary() + _ = yym3445 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3434[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3446 := z.EncBinary() + _ = yym3446 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - if x.TimeoutSeconds == nil { - r.EncodeNil() + if yyq3434[4] { + yym3448 := z.EncBinary() + _ = yym3448 + if false { } else { - yy16 := *x.TimeoutSeconds - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeInt(int64(yy16)) - } + r.EncodeBool(bool(x.Watch)) } } else { - r.EncodeNil() + r.EncodeBool(false) } } else { - if yyq2[4] { + if yyq3434[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TimeoutSeconds == nil { - r.EncodeNil() + yym3449 := z.EncBinary() + _ = yym3449 + if false { } else { - yy18 := *x.TimeoutSeconds - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(yy18)) - } + r.EncodeBool(bool(x.Watch)) } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym21 := z.EncBinary() - _ = yym21 + if yyq3434[5] { + yym3451 := z.EncBinary() + _ = yym3451 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq3434[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym22 := z.EncBinary() - _ = yym22 + yym3452 := z.EncBinary() + _ = yym3452 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym24 := z.EncBinary() - _ = yym24 - if false { + if yyq3434[6] { + if x.TimeoutSeconds == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy3454 := *x.TimeoutSeconds + yym3455 := z.EncBinary() + _ = yym3455 + if false { + } else { + r.EncodeInt(int64(yy3454)) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[6] { + if yyq3434[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym25 := z.EncBinary() - _ = yym25 - if false { + if x.TimeoutSeconds == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy3456 := *x.TimeoutSeconds + yym3457 := z.EncBinary() + _ = yym3457 + if false { + } else { + r.EncodeInt(int64(yy3456)) + } } } } - if yyr2 || yy2arr2 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41448,25 +43922,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3458 := z.DecBinary() + _ = yym3458 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3459 := r.ContainerType() + if yyct3459 == codecSelferValueTypeMap1234 { + yyl3459 := r.ReadMapStart() + if yyl3459 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3459, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3459 == codecSelferValueTypeArray1234 { + yyl3459 := r.ReadArrayStart() + if yyl3459 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3459, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41478,12 +43952,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -41492,10 +43966,22 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3460Slc = r.DecodeBytes(yys3460Slc, true, true) + yys3460 := string(yys3460Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3460 { + 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 "labelSelector": if r.TryDecodeAsNil() { x.LabelSelector = "" @@ -41529,29 +44015,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym3468 := z.DecBinary() + _ = yym3468 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3460) + } // end switch yys3460 + } // end for yyj3460 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41559,16 +44033,48 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj3469 int + var yyb3469 bool + var yyhl3469 bool = l >= 0 + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l + } else { + yyb3469 = r.CheckBreak() + } + if yyb3469 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l + } else { + yyb3469 = r.CheckBreak() + } + if yyb3469 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb12 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb12 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41578,13 +44084,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LabelSelector = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb12 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb12 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41594,13 +44100,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FieldSelector = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb12 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb12 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41610,13 +44116,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb12 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb12 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41626,13 +44132,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb12 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb12 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41645,57 +44151,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym18 := z.DecBinary() - _ = yym18 + yym3477 := z.DecBinary() + _ = yym3477 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb12 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb12 { + if yyb3469 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj3469-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41707,44 +44181,94 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3478 := z.EncBinary() + _ = yym3478 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Container != "" - yyq2[1] = x.Follow != false - yyq2[2] = x.Previous != false - yyq2[3] = x.SinceSeconds != nil - yyq2[4] = x.SinceTime != nil - yyq2[5] = x.Timestamps != false - yyq2[6] = x.TailLines != nil - yyq2[7] = x.LimitBytes != nil - yyq2[8] = x.Kind != "" - yyq2[9] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3479 = 0 + for _, b := range yyq3479 { if b { - yynn2++ + yynn3479++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3479) + yynn3479 = 0 } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3479[0] { + yym3481 := z.EncBinary() + _ = yym3481 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3479[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3482 := z.EncBinary() + _ = yym3482 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3479 || yy2arr3479 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3479[1] { + yym3484 := z.EncBinary() + _ = yym3484 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3479[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3485 := z.EncBinary() + _ = yym3485 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3479 || yy2arr3479 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3479[2] { + yym3487 := z.EncBinary() + _ = yym3487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -41753,23 +44277,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3479[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3488 := z.EncBinary() + _ = yym3488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3479[3] { + yym3490 := z.EncBinary() + _ = yym3490 if false { } else { r.EncodeBool(bool(x.Follow)) @@ -41778,23 +44302,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[1] { + if yyq3479[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3491 := z.EncBinary() + _ = yym3491 if false { } else { r.EncodeBool(bool(x.Follow)) } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3479[4] { + yym3493 := z.EncBinary() + _ = yym3493 if false { } else { r.EncodeBool(bool(x.Previous)) @@ -41803,66 +44327,66 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[2] { + if yyq3479[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3494 := z.EncBinary() + _ = yym3494 if false { } else { r.EncodeBool(bool(x.Previous)) } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq3479[5] { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy13 := *x.SinceSeconds - yym14 := z.EncBinary() - _ = yym14 + yy3496 := *x.SinceSeconds + yym3497 := z.EncBinary() + _ = yym3497 if false { } else { - r.EncodeInt(int64(yy13)) + r.EncodeInt(int64(yy3496)) } } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq3479[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy15 := *x.SinceSeconds - yym16 := z.EncBinary() - _ = yym16 + yy3498 := *x.SinceSeconds + yym3499 := z.EncBinary() + _ = yym3499 if false { } else { - r.EncodeInt(int64(yy15)) + r.EncodeInt(int64(yy3498)) } } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq3479[6] { if x.SinceTime == nil { r.EncodeNil() } else { - yym18 := z.EncBinary() - _ = yym18 + yym3501 := z.EncBinary() + _ = yym3501 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym18 { + } else if yym3501 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym18 && z.IsJSONHandle() { + } else if !yym3501 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -41872,20 +44396,20 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[4] { + if yyq3479[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + yym3502 := z.EncBinary() + _ = yym3502 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym19 { + } else if yym3502 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym19 && z.IsJSONHandle() { + } else if !yym3502 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -41893,11 +44417,11 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym21 := z.EncBinary() - _ = yym21 + if yyq3479[7] { + yym3504 := z.EncBinary() + _ = yym3504 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -41906,139 +44430,89 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[5] { + if yyq3479[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym22 := z.EncBinary() - _ = yym22 + yym3505 := z.EncBinary() + _ = yym3505 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq3479[8] { if x.TailLines == nil { r.EncodeNil() } else { - yy24 := *x.TailLines - yym25 := z.EncBinary() - _ = yym25 + yy3507 := *x.TailLines + yym3508 := z.EncBinary() + _ = yym3508 if false { } else { - r.EncodeInt(int64(yy24)) + r.EncodeInt(int64(yy3507)) } } } else { r.EncodeNil() } } else { - if yyq2[6] { + if yyq3479[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { - yy26 := *x.TailLines - yym27 := z.EncBinary() - _ = yym27 + yy3509 := *x.TailLines + yym3510 := z.EncBinary() + _ = yym3510 if false { } else { - r.EncodeInt(int64(yy26)) + r.EncodeInt(int64(yy3509)) } } } } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq3479[9] { if x.LimitBytes == nil { r.EncodeNil() } else { - yy29 := *x.LimitBytes - yym30 := z.EncBinary() - _ = yym30 + yy3512 := *x.LimitBytes + yym3513 := z.EncBinary() + _ = yym3513 if false { } else { - r.EncodeInt(int64(yy29)) + r.EncodeInt(int64(yy3512)) } } } else { r.EncodeNil() } } else { - if yyq2[7] { + if yyq3479[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy31 := *x.LimitBytes - yym32 := z.EncBinary() - _ = yym32 + yy3514 := *x.LimitBytes + yym3515 := z.EncBinary() + _ = yym3515 if false { } else { - r.EncodeInt(int64(yy31)) + r.EncodeInt(int64(yy3514)) } } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42051,25 +44525,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3516 := z.DecBinary() + _ = yym3516 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3517 := r.ContainerType() + if yyct3517 == codecSelferValueTypeMap1234 { + yyl3517 := r.ReadMapStart() + if yyl3517 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3517, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3517 == codecSelferValueTypeArray1234 { + yyl3517 := r.ReadArrayStart() + if yyl3517 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3517, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42081,12 +44555,12 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -42095,10 +44569,22 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3518Slc = r.DecodeBytes(yys3518Slc, true, true) + yys3518 := string(yys3518Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3518 { + 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 "container": if r.TryDecodeAsNil() { x.Container = "" @@ -42126,8 +44612,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym8 := z.DecBinary() - _ = yym8 + yym3525 := z.DecBinary() + _ = yym3525 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -42142,13 +44628,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym10 := z.DecBinary() - _ = yym10 + yym3527 := z.DecBinary() + _ = yym3527 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym10 { + } else if yym3527 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym3527 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -42169,8 +44655,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym13 := z.DecBinary() - _ = yym13 + yym3530 := z.DecBinary() + _ = yym3530 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -42185,29 +44671,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym15 := z.DecBinary() - _ = yym15 + yym3532 := z.DecBinary() + _ = yym3532 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3518) + } // end switch yys3518 + } // end for yyj3518 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42215,16 +44689,48 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + var yyj3533 int + var yyb3533 bool + var yyhl3533 bool = l >= 0 + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l + } else { + yyb3533 = r.CheckBreak() + } + if yyb3533 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l + } else { + yyb3533 = r.CheckBreak() + } + if yyb3533 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42234,13 +44740,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42250,13 +44756,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42266,13 +44772,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42285,20 +44791,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym23 := z.DecBinary() - _ = yym23 + yym3540 := z.DecBinary() + _ = yym3540 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42311,25 +44817,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym25 := z.DecBinary() - _ = yym25 + yym3542 := z.DecBinary() + _ = yym3542 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym25 { + } else if yym3542 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym25 && z.IsJSONHandle() { + } else if !yym3542 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42339,13 +44845,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42358,20 +44864,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym28 := z.DecBinary() - _ = yym28 + yym3545 := z.DecBinary() + _ = yym3545 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42384,57 +44890,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym30 := z.DecBinary() - _ = yym30 + yym3547 := z.DecBinary() + _ = yym3547 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb18 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb18 { + if yyb3533 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-1, "") + z.DecStructFieldNotFound(yyj3533-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42446,212 +44920,212 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3548 := z.EncBinary() + _ = yym3548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Stdin != false - yyq2[1] = x.Stdout != false - yyq2[2] = x.Stderr != false - yyq2[3] = x.TTY != false - yyq2[4] = x.Container != "" - yyq2[5] = x.Kind != "" - yyq2[6] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3549 = 0 + for _, b := range yyq3549 { if b { - yynn2++ + yynn3549++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3549) + yynn3549 = 0 } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3549[0] { + yym3551 := z.EncBinary() + _ = yym3551 if false { } else { - r.EncodeBool(bool(x.Stdin)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdin")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3552 := z.EncBinary() + _ = yym3552 if false { } else { - r.EncodeBool(bool(x.Stdin)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3549[1] { + yym3554 := z.EncBinary() + _ = yym3554 if false { } else { - r.EncodeBool(bool(x.Stdout)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3549[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdout")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3555 := z.EncBinary() + _ = yym3555 if false { } else { - r.EncodeBool(bool(x.Stdout)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3549[2] { + yym3557 := z.EncBinary() + _ = yym3557 if false { } else { - r.EncodeBool(bool(x.Stderr)) + r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { - if yyq2[2] { + if yyq3549[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stderr")) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3558 := z.EncBinary() + _ = yym3558 if false { } else { - r.EncodeBool(bool(x.Stderr)) + r.EncodeBool(bool(x.Stdin)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3549[3] { + yym3560 := z.EncBinary() + _ = yym3560 if false { } else { - r.EncodeBool(bool(x.TTY)) + r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { - if yyq2[3] { + if yyq3549[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tty")) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3561 := z.EncBinary() + _ = yym3561 if false { } else { - r.EncodeBool(bool(x.TTY)) + r.EncodeBool(bool(x.Stdout)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq3549[4] { + yym3563 := z.EncBinary() + _ = yym3563 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + r.EncodeBool(bool(x.Stderr)) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeBool(false) } } else { - if yyq2[4] { + if yyq3549[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("container")) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym3564 := z.EncBinary() + _ = yym3564 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + r.EncodeBool(bool(x.Stderr)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq3549[5] { + yym3566 := z.EncBinary() + _ = yym3566 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeBool(bool(x.TTY)) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeBool(false) } } else { - if yyq2[5] { + if yyq3549[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym3567 := z.EncBinary() + _ = yym3567 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeBool(bool(x.TTY)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 + if yyq3549[6] { + yym3569 := z.EncBinary() + _ = yym3569 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq3549[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym3570 := z.EncBinary() + _ = yym3570 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr2 || yy2arr2 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42664,25 +45138,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3571 := z.DecBinary() + _ = yym3571 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3572 := r.ContainerType() + if yyct3572 == codecSelferValueTypeMap1234 { + yyl3572 := r.ReadMapStart() + if yyl3572 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3572, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3572 == codecSelferValueTypeArray1234 { + yyl3572 := r.ReadArrayStart() + if yyl3572 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3572, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42694,12 +45168,12 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -42708,10 +45182,22 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3573Slc = r.DecodeBytes(yys3573Slc, true, true) + yys3573 := string(yys3573Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3573 { + 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 "stdin": if r.TryDecodeAsNil() { x.Stdin = false @@ -42742,22 +45228,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3573) + } // end switch yys3573 + } // end for yyj3573 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42765,133 +45239,133 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj3581 int + var yyb3581 bool + var yyhl3581 bool = l >= 0 + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stdin = false + x.Kind = "" } else { - x.Stdin = bool(r.DecodeBool()) + x.Kind = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stdout = false + x.APIVersion = "" } else { - x.Stdout = bool(r.DecodeBool()) + x.APIVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stderr = false + x.Stdin = false } else { - x.Stderr = bool(r.DecodeBool()) + x.Stdin = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.TTY = false + x.Stdout = false } else { - x.TTY = bool(r.DecodeBool()) + x.Stdout = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Container = "" + x.Stderr = false } else { - x.Container = string(r.DecodeString()) + x.Stderr = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.TTY = false } else { - x.Kind = string(r.DecodeString()) + x.TTY = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Container = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Container = string(r.DecodeString()) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb11 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb11 { + if yyb3581 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj3581-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42903,41 +45377,91 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3589 := z.EncBinary() + _ = yym3589 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Stdin != false - yyq2[1] = x.Stdout != false - yyq2[2] = x.Stderr != false - yyq2[3] = x.TTY != false - yyq2[4] = x.Container != "" - yyq2[6] = x.Kind != "" - yyq2[7] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3590 = 1 + for _, b := range yyq3590 { if b { - yynn2++ + yynn3590++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3590) + yynn3590 = 0 } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3590[0] { + yym3592 := z.EncBinary() + _ = yym3592 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3590[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3593 := z.EncBinary() + _ = yym3593 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3590 || yy2arr3590 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3590[1] { + yym3595 := z.EncBinary() + _ = yym3595 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3590[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3596 := z.EncBinary() + _ = yym3596 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3590 || yy2arr3590 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3590[2] { + yym3598 := z.EncBinary() + _ = yym3598 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -42946,23 +45470,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[0] { + if yyq3590[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3599 := z.EncBinary() + _ = yym3599 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3590[3] { + yym3601 := z.EncBinary() + _ = yym3601 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -42971,23 +45495,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[1] { + if yyq3590[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3602 := z.EncBinary() + _ = yym3602 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3590[4] { + yym3604 := z.EncBinary() + _ = yym3604 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -42996,23 +45520,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[2] { + if yyq3590[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3605 := z.EncBinary() + _ = yym3605 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3590[5] { + yym3607 := z.EncBinary() + _ = yym3607 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -43021,23 +45545,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[3] { + if yyq3590[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3608 := z.EncBinary() + _ = yym3608 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq3590[6] { + yym3610 := z.EncBinary() + _ = yym3610 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -43046,25 +45570,25 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq3590[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym3611 := z.EncBinary() + _ = yym3611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + yym3613 := z.EncBinary() + _ = yym3613 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -43077,65 +45601,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym20 := z.EncBinary() - _ = yym20 + yym3614 := z.EncBinary() + _ = yym3614 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43148,25 +45622,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3615 := z.DecBinary() + _ = yym3615 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3616 := r.ContainerType() + if yyct3616 == codecSelferValueTypeMap1234 { + yyl3616 := r.ReadMapStart() + if yyl3616 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3616, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3616 == codecSelferValueTypeArray1234 { + yyl3616 := r.ReadArrayStart() + if yyl3616 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3616, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43178,12 +45652,12 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -43192,10 +45666,22 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3617Slc = r.DecodeBytes(yys3617Slc, true, true) + yys3617 := string(yys3617Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3617 { + 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 "stdin": if r.TryDecodeAsNil() { x.Stdin = false @@ -43230,30 +45716,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv9 := &x.Command - yym10 := z.DecBinary() - _ = yym10 + yyv3625 := &x.Command + yym3626 := z.DecBinary() + _ = yym3626 if false { } else { - z.F.DecSliceStringX(yyv9, false, d) + z.F.DecSliceStringX(yyv3625, false, d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3617) + } // end switch yys3617 + } // end for yyj3617 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43261,155 +45735,155 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj3627 int + var yyb3627 bool + var yyhl3627 bool = l >= 0 + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stdin = false + x.Kind = "" } else { - x.Stdin = bool(r.DecodeBool()) + x.Kind = string(r.DecodeString()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stdout = false + x.APIVersion = "" } else { - x.Stdout = bool(r.DecodeBool()) + x.APIVersion = string(r.DecodeString()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Stderr = false + x.Stdin = false } else { - x.Stderr = bool(r.DecodeBool()) + x.Stdin = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.TTY = false + x.Stdout = false } else { - x.TTY = bool(r.DecodeBool()) + x.Stdout = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Container = "" + x.Stderr = false } else { - x.Container = string(r.DecodeString()) + x.Stderr = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Command = nil + x.TTY = false } else { - yyv19 := &x.Command - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - z.F.DecSliceStringX(yyv19, false, d) - } + x.TTY = bool(r.DecodeBool()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Container = "" } else { - x.Kind = string(r.DecodeString()) + x.Container = string(r.DecodeString()) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Command = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3635 := &x.Command + yym3636 := z.DecBinary() + _ = yym3636 + if false { + } else { + z.F.DecSliceStringX(yyv3635, false, d) + } } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb13 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb13 { + if yyb3627 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-1, "") + z.DecStructFieldNotFound(yyj3627-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43421,108 +45895,108 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3637 := z.EncBinary() + _ = yym3637 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Path != "" - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3638 = 0 + for _, b := range yyq3638 { if b { - yynn2++ + yynn3638++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3638) + yynn3638 = 0 } - if yyr2 || yy2arr2 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3638[0] { + yym3640 := z.EncBinary() + _ = yym3640 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3638[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3641 := z.EncBinary() + _ = yym3641 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3638[1] { + yym3643 := z.EncBinary() + _ = yym3643 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3638[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3644 := z.EncBinary() + _ = yym3644 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3638[2] { + yym3646 := z.EncBinary() + _ = yym3646 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3638[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3647 := z.EncBinary() + _ = yym3647 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43535,25 +46009,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3648 := z.DecBinary() + _ = yym3648 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3649 := r.ContainerType() + if yyct3649 == codecSelferValueTypeMap1234 { + yyl3649 := r.ReadMapStart() + if yyl3649 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3649, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3649 == codecSelferValueTypeArray1234 { + yyl3649 := r.ReadArrayStart() + if yyl3649 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3649, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43565,12 +46039,12 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -43579,16 +46053,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3650Slc = r.DecodeBytes(yys3650Slc, true, true) + yys3650 := string(yys3650Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } + switch yys3650 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43601,10 +46069,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3650) + } // end switch yys3650 + } // end for yyj3650 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43612,69 +46086,69 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3654 int + var yyb3654 bool + var yyhl3654 bool = l >= 0 + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb7 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb7 { + if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Path = "" + x.Kind = "" } else { - x.Path = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb7 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb7 { + if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.APIVersion = "" } else { - x.Kind = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb7 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb7 { + if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Path = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Path = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb7 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb7 { + if yyb3654 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3654-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43686,108 +46160,108 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3658 := z.EncBinary() + _ = yym3658 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Path != "" - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3659 = 0 + for _, b := range yyq3659 { if b { - yynn2++ + yynn3659++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3659) + yynn3659 = 0 } - if yyr2 || yy2arr2 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3659[0] { + yym3661 := z.EncBinary() + _ = yym3661 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3659[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3662 := z.EncBinary() + _ = yym3662 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3659[1] { + yym3664 := z.EncBinary() + _ = yym3664 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3659[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3665 := z.EncBinary() + _ = yym3665 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3659[2] { + yym3667 := z.EncBinary() + _ = yym3667 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3659[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3668 := z.EncBinary() + _ = yym3668 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43800,25 +46274,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3669 := z.DecBinary() + _ = yym3669 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3670 := r.ContainerType() + if yyct3670 == codecSelferValueTypeMap1234 { + yyl3670 := r.ReadMapStart() + if yyl3670 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3670, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3670 == codecSelferValueTypeArray1234 { + yyl3670 := r.ReadArrayStart() + if yyl3670 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3670, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43830,12 +46304,12 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -43844,16 +46318,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3671Slc = r.DecodeBytes(yys3671Slc, true, true) + yys3671 := string(yys3671Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } + switch yys3671 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43866,10 +46334,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3671) + } // end switch yys3671 + } // end for yyj3671 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43877,32 +46351,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3675 int + var yyb3675 bool + var yyhl3675 bool = l >= 0 + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb7 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb7 { + if yyb3675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43912,13 +46370,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb7 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb7 { + if yyb3675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43928,18 +46386,34 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l + } else { + yyb3675 = r.CheckBreak() + } + if yyb3675 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb7 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb7 { + if yyb3675 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3675-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43951,108 +46425,108 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3679 := z.EncBinary() + _ = yym3679 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Path != "" - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3680 = 0 + for _, b := range yyq3680 { if b { - yynn2++ + yynn3680++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3680) + yynn3680 = 0 } - if yyr2 || yy2arr2 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3680[0] { + yym3682 := z.EncBinary() + _ = yym3682 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3680[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3683 := z.EncBinary() + _ = yym3683 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3680[1] { + yym3685 := z.EncBinary() + _ = yym3685 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3680[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3686 := z.EncBinary() + _ = yym3686 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3680[2] { + yym3688 := z.EncBinary() + _ = yym3688 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3680[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3689 := z.EncBinary() + _ = yym3689 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44065,25 +46539,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3690 := z.DecBinary() + _ = yym3690 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3691 := r.ContainerType() + if yyct3691 == codecSelferValueTypeMap1234 { + yyl3691 := r.ReadMapStart() + if yyl3691 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3691, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3691 == codecSelferValueTypeArray1234 { + yyl3691 := r.ReadArrayStart() + if yyl3691 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3691, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44095,12 +46569,12 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -44109,16 +46583,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3692Slc = r.DecodeBytes(yys3692Slc, true, true) + yys3692 := string(yys3692Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } + switch yys3692 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44131,10 +46599,16 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3692) + } // end switch yys3692 + } // end for yyj3692 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44142,69 +46616,69 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3696 int + var yyb3696 bool + var yyhl3696 bool = l >= 0 + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb7 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb7 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Path = "" + x.Kind = "" } else { - x.Path = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb7 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb7 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.APIVersion = "" } else { - x.Kind = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb7 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb7 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Path = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Path = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb7 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb7 { + if yyb3696 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3696-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44216,34 +46690,34 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3700 := z.EncBinary() + _ = yym3700 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[4] = x.Controller != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 4 - for _, b := range yyq2 { + yynn3701 = 4 + for _, b := range yyq3701 { if b { - yynn2++ + yynn3701++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3701) + yynn3701 = 0 } - if yyr2 || yy2arr2 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym3703 := z.EncBinary() + _ = yym3703 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44252,17 +46726,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3704 := z.EncBinary() + _ = yym3704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr2 || yy2arr2 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym3706 := z.EncBinary() + _ = yym3706 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44271,17 +46745,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3707 := z.EncBinary() + _ = yym3707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr2 || yy2arr2 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym3709 := z.EncBinary() + _ = yym3709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -44290,17 +46764,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3710 := z.EncBinary() + _ = yym3710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym3712 := z.EncBinary() + _ = yym3712 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -44310,50 +46784,50 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3713 := z.EncBinary() + _ = yym3713 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr2 || yy2arr2 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq3701[4] { if x.Controller == nil { r.EncodeNil() } else { - yy16 := *x.Controller - yym17 := z.EncBinary() - _ = yym17 + yy3715 := *x.Controller + yym3716 := z.EncBinary() + _ = yym3716 if false { } else { - r.EncodeBool(bool(yy16)) + r.EncodeBool(bool(yy3715)) } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy18 := *x.Controller - yym19 := z.EncBinary() - _ = yym19 + yy3717 := *x.Controller + yym3718 := z.EncBinary() + _ = yym3718 if false { } else { - r.EncodeBool(bool(yy18)) + r.EncodeBool(bool(yy3717)) } } } } - if yyr2 || yy2arr2 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44366,25 +46840,25 @@ func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3719 := z.DecBinary() + _ = yym3719 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3720 := r.ContainerType() + if yyct3720 == codecSelferValueTypeMap1234 { + yyl3720 := r.ReadMapStart() + if yyl3720 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3720, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3720 == codecSelferValueTypeArray1234 { + yyl3720 := r.ReadArrayStart() + if yyl3720 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3720, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44396,12 +46870,12 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -44410,10 +46884,10 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3721Slc = r.DecodeBytes(yys3721Slc, true, true) + yys3721 := string(yys3721Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3721 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -44447,17 +46921,17 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym9 := z.DecBinary() - _ = yym9 + yym3727 := z.DecBinary() + _ = yym3727 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3721) + } // end switch yys3721 + } // end for yyj3721 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44465,16 +46939,16 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3728 int + var yyb3728 bool + var yyhl3728 bool = l >= 0 + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb10 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb10 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44484,13 +46958,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb10 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb10 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44500,13 +46974,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb10 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb10 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44516,13 +46990,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb10 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb10 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44532,13 +47006,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb10 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb10 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44551,25 +47025,25 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym16 := z.DecBinary() - _ = yym16 + yym3734 := z.DecBinary() + _ = yym3734 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb10 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb10 { + if yyb3728 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3728-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44581,41 +47055,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3735 := z.EncBinary() + _ = yym3735 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.Namespace != "" - yyq2[2] = x.Name != "" - yyq2[3] = x.UID != "" - yyq2[4] = x.APIVersion != "" - yyq2[5] = x.ResourceVersion != "" - yyq2[6] = x.FieldPath != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3736 = 0 + for _, b := range yyq3736 { if b { - yynn2++ + yynn3736++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3736) + yynn3736 = 0 } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3736[0] { + yym3738 := z.EncBinary() + _ = yym3738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44624,23 +47098,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3736[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3739 := z.EncBinary() + _ = yym3739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3736[1] { + yym3741 := z.EncBinary() + _ = yym3741 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -44649,23 +47123,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3736[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3742 := z.EncBinary() + _ = yym3742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq3736[2] { + yym3744 := z.EncBinary() + _ = yym3744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -44674,23 +47148,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3736[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym3745 := z.EncBinary() + _ = yym3745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq3736[3] { + yym3747 := z.EncBinary() + _ = yym3747 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -44700,12 +47174,12 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3736[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym3748 := z.EncBinary() + _ = yym3748 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -44713,11 +47187,11 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq3736[4] { + yym3750 := z.EncBinary() + _ = yym3750 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44726,23 +47200,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq3736[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym3751 := z.EncBinary() + _ = yym3751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq3736[5] { + yym3753 := z.EncBinary() + _ = yym3753 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -44751,23 +47225,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq3736[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym3754 := z.EncBinary() + _ = yym3754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 + if yyq3736[6] { + yym3756 := z.EncBinary() + _ = yym3756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -44776,19 +47250,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq3736[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym3757 := z.EncBinary() + _ = yym3757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr2 || yy2arr2 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44801,25 +47275,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3758 := z.DecBinary() + _ = yym3758 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3759 := r.ContainerType() + if yyct3759 == codecSelferValueTypeMap1234 { + yyl3759 := r.ReadMapStart() + if yyl3759 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3759, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3759 == codecSelferValueTypeArray1234 { + yyl3759 := r.ReadArrayStart() + if yyl3759 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3759, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44831,12 +47305,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -44845,10 +47319,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3760Slc = r.DecodeBytes(yys3760Slc, true, true) + yys3760 := string(yys3760Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3760 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44892,9 +47366,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3760) + } // end switch yys3760 + } // end for yyj3760 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44902,16 +47376,16 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj3768 int + var yyb3768 bool + var yyhl3768 bool = l >= 0 + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44921,13 +47395,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44937,13 +47411,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44953,13 +47427,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44969,13 +47443,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44985,13 +47459,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45001,13 +47475,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45018,17 +47492,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb11 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb11 { + if yyb3768 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj3768-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45040,35 +47514,35 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3776 := z.EncBinary() + _ = yym3776 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3777 = 0 + for _, b := range yyq3777 { if b { - yynn2++ + yynn3777++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3777) + yynn3777 = 0 } - if yyr2 || yy2arr2 { + if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3777[0] { + yym3779 := z.EncBinary() + _ = yym3779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45077,19 +47551,19 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3777[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3780 := z.EncBinary() + _ = yym3780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45102,25 +47576,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3781 := z.DecBinary() + _ = yym3781 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3782 := r.ContainerType() + if yyct3782 == codecSelferValueTypeMap1234 { + yyl3782 := r.ReadMapStart() + if yyl3782 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3782, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3782 == codecSelferValueTypeArray1234 { + yyl3782 := r.ReadArrayStart() + if yyl3782 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3782, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45132,12 +47606,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -45146,10 +47620,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3783Slc = r.DecodeBytes(yys3783Slc, true, true) + yys3783 := string(yys3783Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3783 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -45157,9 +47631,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3783) + } // end switch yys3783 + } // end for yyj3783 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45167,16 +47641,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj3785 int + var yyb3785 bool + var yyhl3785 bool = l >= 0 + yyj3785++ + if yyhl3785 { + yyb3785 = yyj3785 > l } else { - yyb5 = r.CheckBreak() + yyb3785 = r.CheckBreak() } - if yyb5 { + if yyb3785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45187,17 +47661,17 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj3785++ + if yyhl3785 { + yyb3785 = yyj3785 > l } else { - yyb5 = r.CheckBreak() + yyb3785 = r.CheckBreak() } - if yyb5 { + if yyb3785 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj3785-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45209,54 +47683,37 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3787 := z.EncBinary() + _ = yym3787 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = x.Kind != "" - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep3788 := !z.EncBinary() + yy2arr3788 := z.EncBasicHandle().StructToArray + var yyq3788 [3]bool + _, _, _ = yysep3788, yyq3788, yy2arr3788 + const yyr3788 bool = false + yyq3788[0] = x.Kind != "" + yyq3788[1] = x.APIVersion != "" + yyq3788[2] = true + var yynn3788 int + if yyr3788 || yy2arr3788 { r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn3788 = 0 + for _, b := range yyq3788 { if b { - yynn2++ + yynn3788++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3788) + yynn3788 = 0 } - if yyr2 || yy2arr2 { + if yyr3788 || yy2arr3788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.Reference - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reference")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Reference - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym9 := z.EncBinary() - _ = yym9 + if yyq3788[0] { + yym3790 := z.EncBinary() + _ = yym3790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45265,23 +47722,23 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3788[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym3791 := z.EncBinary() + _ = yym3791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3788 || yy2arr3788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3788[1] { + yym3793 := z.EncBinary() + _ = yym3793 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45290,19 +47747,36 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3788[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym3794 := z.EncBinary() + _ = yym3794 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3788 || yy2arr3788 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3788[2] { + yy3796 := &x.Reference + yy3796.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3788[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reference")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3797 := &x.Reference + yy3797.CodecEncodeSelf(e) + } + } + if yyr3788 || yy2arr3788 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45315,25 +47789,25 @@ func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3798 := z.DecBinary() + _ = yym3798 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3799 := r.ContainerType() + if yyct3799 == codecSelferValueTypeMap1234 { + yyl3799 := r.ReadMapStart() + if yyl3799 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3799, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3799 == codecSelferValueTypeArray1234 { + yyl3799 := r.ReadArrayStart() + if yyl3799 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3799, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45345,12 +47819,12 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -45359,17 +47833,10 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3800Slc = r.DecodeBytes(yys3800Slc, true, true) + yys3800 := string(yys3800Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "reference": - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv4 := &x.Reference - yyv4.CodecDecodeSelf(d) - } + switch yys3800 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45382,10 +47849,17 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } + case "reference": + if r.TryDecodeAsNil() { + x.Reference = ObjectReference{} + } else { + yyv3803 := &x.Reference + yyv3803.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3800) + } // end switch yys3800 + } // end for yyj3800 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45393,33 +47867,16 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv8 := &x.Reference - yyv8.CodecDecodeSelf(d) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj3804 int + var yyb3804 bool + var yyhl3804 bool = l >= 0 + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb7 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb7 { + if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45429,13 +47886,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb7 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb7 { + if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45445,18 +47902,35 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l + } else { + yyb3804 = r.CheckBreak() + } + if yyb3804 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reference = ObjectReference{} + } else { + yyv3807 := &x.Reference + yyv3807.CodecDecodeSelf(d) + } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb7 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb7 { + if yyb3804 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj3804-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45468,36 +47942,36 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3808 := z.EncBinary() + _ = yym3808 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Component != "" - yyq2[1] = x.Host != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3809 = 0 + for _, b := range yyq3809 { if b { - yynn2++ + yynn3809++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3809) + yynn3809 = 0 } - if yyr2 || yy2arr2 { + if yyr3809 || yy2arr3809 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq3809[0] { + yym3811 := z.EncBinary() + _ = yym3811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) @@ -45506,23 +47980,23 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3809[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym3812 := z.EncBinary() + _ = yym3812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } - if yyr2 || yy2arr2 { + if yyr3809 || yy2arr3809 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq3809[1] { + yym3814 := z.EncBinary() + _ = yym3814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -45531,19 +48005,19 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq3809[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym3815 := z.EncBinary() + _ = yym3815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr2 || yy2arr2 { + if yyr3809 || yy2arr3809 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45556,25 +48030,25 @@ func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3816 := z.DecBinary() + _ = yym3816 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3817 := r.ContainerType() + if yyct3817 == codecSelferValueTypeMap1234 { + yyl3817 := r.ReadMapStart() + if yyl3817 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3817, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3817 == codecSelferValueTypeArray1234 { + yyl3817 := r.ReadArrayStart() + if yyl3817 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3817, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45586,12 +48060,12 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -45600,10 +48074,10 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3818Slc = r.DecodeBytes(yys3818Slc, true, true) + yys3818 := string(yys3818Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3818 { case "component": if r.TryDecodeAsNil() { x.Component = "" @@ -45617,9 +48091,9 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3818) + } // end switch yys3818 + } // end for yyj3818 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45627,16 +48101,16 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3821 int + var yyb3821 bool + var yyhl3821 bool = l >= 0 + yyj3821++ + if yyhl3821 { + yyb3821 = yyj3821 > l } else { - yyb6 = r.CheckBreak() + yyb3821 = r.CheckBreak() } - if yyb6 { + if yyb3821 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45646,13 +48120,13 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Component = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3821++ + if yyhl3821 { + yyb3821 = yyj3821 > l } else { - yyb6 = r.CheckBreak() + yyb3821 = r.CheckBreak() } - if yyb6 { + if yyb3821 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45663,17 +48137,17 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3821++ + if yyhl3821 { + yyb3821 = yyj3821 > l } else { - yyb6 = r.CheckBreak() + yyb3821 = r.CheckBreak() } - if yyb6 { + if yyb3821 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3821-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45685,65 +48159,115 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3824 := z.EncBinary() + _ = yym3824 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [11]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Reason != "" - yyq2[3] = x.Message != "" - yyq2[4] = true - yyq2[5] = true - yyq2[6] = true - yyq2[7] = x.Count != 0 - yyq2[8] = x.Type != "" - yyq2[9] = x.Kind != "" - yyq2[10] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn3825 = 2 + for _, b := range yyq3825 { if b { - yynn2++ + yynn3825++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3825) + yynn3825 = 0 } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq3825[0] { + yym3827 := z.EncBinary() + _ = yym3827 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + 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) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy3834 := &x.ObjectMeta + yy3834.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy9 := &x.InvolvedObject - yy9.CodecEncodeSelf(e) + yy3836 := &x.InvolvedObject + yy3836.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.InvolvedObject - yy11.CodecEncodeSelf(e) + yy3837 := &x.InvolvedObject + yy3837.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq3825[4] { + yym3839 := z.EncBinary() + _ = yym3839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -45752,23 +48276,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3825[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym3840 := z.EncBinary() + _ = yym3840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq3825[5] { + yym3842 := z.EncBinary() + _ = yym3842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -45777,114 +48301,114 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3825[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym3843 := z.EncBinary() + _ = yym3843 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy20 := &x.Source - yy20.CodecEncodeSelf(e) + if yyq3825[6] { + yy3845 := &x.Source + yy3845.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq3825[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy22 := &x.Source - yy22.CodecEncodeSelf(e) + yy3846 := &x.Source + yy3846.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yy25 := &x.FirstTimestamp - yym26 := z.EncBinary() - _ = yym26 + if yyq3825[7] { + yy3848 := &x.FirstTimestamp + yym3849 := z.EncBinary() + _ = yym3849 if false { - } else if z.HasExtensions() && z.EncExt(yy25) { - } else if yym26 { - z.EncBinaryMarshal(yy25) - } else if !yym26 && z.IsJSONHandle() { - z.EncJSONMarshal(yy25) + } else if z.HasExtensions() && z.EncExt(yy3848) { + } else if yym3849 { + z.EncBinaryMarshal(yy3848) + } else if !yym3849 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3848) } else { - z.EncFallback(yy25) + z.EncFallback(yy3848) } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq3825[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy27 := &x.FirstTimestamp - yym28 := z.EncBinary() - _ = yym28 + yy3850 := &x.FirstTimestamp + yym3851 := z.EncBinary() + _ = yym3851 if false { - } else if z.HasExtensions() && z.EncExt(yy27) { - } else if yym28 { - z.EncBinaryMarshal(yy27) - } else if !yym28 && z.IsJSONHandle() { - z.EncJSONMarshal(yy27) + } else if z.HasExtensions() && z.EncExt(yy3850) { + } else if yym3851 { + z.EncBinaryMarshal(yy3850) + } else if !yym3851 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3850) } else { - z.EncFallback(yy27) + z.EncFallback(yy3850) } } } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yy30 := &x.LastTimestamp - yym31 := z.EncBinary() - _ = yym31 + if yyq3825[8] { + yy3853 := &x.LastTimestamp + yym3854 := z.EncBinary() + _ = yym3854 if false { - } else if z.HasExtensions() && z.EncExt(yy30) { - } else if yym31 { - z.EncBinaryMarshal(yy30) - } else if !yym31 && z.IsJSONHandle() { - z.EncJSONMarshal(yy30) + } else if z.HasExtensions() && z.EncExt(yy3853) { + } else if yym3854 { + z.EncBinaryMarshal(yy3853) + } else if !yym3854 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3853) } else { - z.EncFallback(yy30) + z.EncFallback(yy3853) } } else { r.EncodeNil() } } else { - if yyq2[6] { + if yyq3825[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy32 := &x.LastTimestamp - yym33 := z.EncBinary() - _ = yym33 + yy3855 := &x.LastTimestamp + yym3856 := z.EncBinary() + _ = yym3856 if false { - } else if z.HasExtensions() && z.EncExt(yy32) { - } else if yym33 { - z.EncBinaryMarshal(yy32) - } else if !yym33 && z.IsJSONHandle() { - z.EncJSONMarshal(yy32) + } else if z.HasExtensions() && z.EncExt(yy3855) { + } else if yym3856 { + z.EncBinaryMarshal(yy3855) + } else if !yym3856 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3855) } else { - z.EncFallback(yy32) + z.EncFallback(yy3855) } } } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym35 := z.EncBinary() - _ = yym35 + if yyq3825[9] { + yym3858 := z.EncBinary() + _ = yym3858 if false { } else { r.EncodeInt(int64(x.Count)) @@ -45893,23 +48417,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[7] { + if yyq3825[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 + yym3859 := z.EncBinary() + _ = yym3859 if false { } else { r.EncodeInt(int64(x.Count)) } } } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym38 := z.EncBinary() - _ = yym38 + if yyq3825[10] { + yym3861 := z.EncBinary() + _ = yym3861 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -45918,69 +48442,19 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[8] { + if yyq3825[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym39 := z.EncBinary() - _ = yym39 + yym3862 := z.EncBinary() + _ = yym3862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45993,25 +48467,25 @@ func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3863 := z.DecBinary() + _ = yym3863 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3864 := r.ContainerType() + if yyct3864 == codecSelferValueTypeMap1234 { + yyl3864 := r.ReadMapStart() + if yyl3864 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3864, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3864 == codecSelferValueTypeArray1234 { + yyl3864 := r.ReadArrayStart() + if yyl3864 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3864, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46023,12 +48497,12 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -46037,23 +48511,35 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3865Slc = r.DecodeBytes(yys3865Slc, true, true) + yys3865 := string(yys3865Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3865 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv3868 := &x.ObjectMeta + yyv3868.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv5 := &x.InvolvedObject - yyv5.CodecDecodeSelf(d) + yyv3869 := &x.InvolvedObject + yyv3869.CodecDecodeSelf(d) } case "reason": if r.TryDecodeAsNil() { @@ -46071,41 +48557,41 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv8 := &x.Source - yyv8.CodecDecodeSelf(d) + yyv3872 := &x.Source + yyv3872.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv9 := &x.FirstTimestamp - yym10 := z.DecBinary() - _ = yym10 + yyv3873 := &x.FirstTimestamp + yym3874 := z.DecBinary() + _ = yym3874 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if yym10 { - z.DecBinaryUnmarshal(yyv9) - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv3873) { + } else if yym3874 { + z.DecBinaryUnmarshal(yyv3873) + } else if !yym3874 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3873) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv3873, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv11 := &x.LastTimestamp - yym12 := z.DecBinary() - _ = yym12 + yyv3875 := &x.LastTimestamp + yym3876 := z.DecBinary() + _ = yym3876 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if yym12 { - z.DecBinaryUnmarshal(yyv11) - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv3875) { + } else if yym3876 { + z.DecBinaryUnmarshal(yyv3875) + } else if !yym3876 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3875) } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv3875, false) } } case "count": @@ -46120,22 +48606,10 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3865) + } // end switch yys3865 + } // end for yyj3865 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46143,16 +48617,48 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj17 int - var yyb17 bool - var yyhl17 bool = l >= 0 - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + var yyj3879 int + var yyb3879 bool + var yyhl3879 bool = l >= 0 + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46160,16 +48666,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv18 := &x.ObjectMeta - yyv18.CodecDecodeSelf(d) + yyv3882 := &x.ObjectMeta + yyv3882.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46177,16 +48683,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv19 := &x.InvolvedObject - yyv19.CodecDecodeSelf(d) + yyv3883 := &x.InvolvedObject + yyv3883.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46196,13 +48702,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46212,13 +48718,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46226,16 +48732,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv22 := &x.Source - yyv22.CodecDecodeSelf(d) + yyv3886 := &x.Source + yyv3886.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46243,26 +48749,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv23 := &x.FirstTimestamp - yym24 := z.DecBinary() - _ = yym24 + yyv3887 := &x.FirstTimestamp + yym3888 := z.DecBinary() + _ = yym3888 if false { - } else if z.HasExtensions() && z.DecExt(yyv23) { - } else if yym24 { - z.DecBinaryUnmarshal(yyv23) - } else if !yym24 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv23) + } else if z.HasExtensions() && z.DecExt(yyv3887) { + } else if yym3888 { + z.DecBinaryUnmarshal(yyv3887) + } else if !yym3888 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3887) } else { - z.DecFallback(yyv23, false) + z.DecFallback(yyv3887, false) } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46270,26 +48776,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv25 := &x.LastTimestamp - yym26 := z.DecBinary() - _ = yym26 + yyv3889 := &x.LastTimestamp + yym3890 := z.DecBinary() + _ = yym3890 if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else if yym26 { - z.DecBinaryUnmarshal(yyv25) - } else if !yym26 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv25) + } else if z.HasExtensions() && z.DecExt(yyv3889) { + } else if yym3890 { + z.DecBinaryUnmarshal(yyv3889) + } else if !yym3890 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3889) } else { - z.DecFallback(yyv25, false) + z.DecFallback(yyv3889, false) } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46299,13 +48805,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Count = int32(r.DecodeInt(32)) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46315,50 +48821,18 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l } else { - yyb17 = r.CheckBreak() + yyb3879 = r.CheckBreak() } - if yyb17 { + if yyb3879 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj17-1, "") + z.DecStructFieldNotFound(yyj3879-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46370,139 +48844,139 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3893 := z.EncBinary() + _ = yym3893 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3894 = 1 + for _, b := range yyq3894 { if b { - yynn2++ + yynn3894++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3894) + yynn3894 = 0 } - if yyr2 || yy2arr2 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3894[0] { + yym3896 := z.EncBinary() + _ = yym3896 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3894[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3897 := z.EncBinary() + _ = yym3897 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3894[1] { + yym3899 := z.EncBinary() + _ = yym3899 if false { } else { - h.encSliceEvent(([]Event)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3894[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3900 := z.EncBinary() + _ = yym3900 if false { } else { - h.encSliceEvent(([]Event)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3894[2] { + yy3902 := &x.ListMeta + yym3903 := z.EncBinary() + _ = yym3903 if false { + } else if z.HasExtensions() && z.EncExt(yy3902) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3902) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3894[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3904 := &x.ListMeta + yym3905 := z.EncBinary() + _ = yym3905 if false { + } else if z.HasExtensions() && z.EncExt(yy3904) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3904) } } } - if yyr2 || yy2arr2 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3907 := z.EncBinary() + _ = yym3907 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEvent(([]Event)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3908 := z.EncBinary() + _ = yym3908 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46515,25 +48989,25 @@ func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3909 := z.DecBinary() + _ = yym3909 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3910 := r.ContainerType() + if yyct3910 == codecSelferValueTypeMap1234 { + yyl3910 := r.ReadMapStart() + if yyl3910 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3910, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3910 == codecSelferValueTypeArray1234 { + yyl3910 := r.ReadArrayStart() + if yyl3910 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3910, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46545,12 +49019,12 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -46559,51 +49033,51 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3911Slc = r.DecodeBytes(yys3911Slc, true, true) + yys3911 := string(yys3911Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3911 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3914 := &x.ListMeta + yym3915 := z.DecBinary() + _ = yym3915 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3914) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3914, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3916 := &x.Items + yym3917 := z.DecBinary() + _ = yym3917 if false { } else { - h.decSliceEvent((*[]Event)(yyv6), d) + h.decSliceEvent((*[]Event)(yyv3916), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3911) + } // end switch yys3911 + } // end for yyj3911 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46611,98 +49085,98 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3918 int + var yyb3918 bool + var yyhl3918 bool = l >= 0 + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb10 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb10 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb10 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb10 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb10 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb10 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv3921 := &x.ListMeta + yym3922 := z.DecBinary() + _ = yym3922 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3921) { + } else { + z.DecFallback(yyv3921, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb10 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb10 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv3923 := &x.Items + yym3924 := z.DecBinary() + _ = yym3924 + if false { + } else { + h.decSliceEvent((*[]Event)(yyv3923), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb10 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb10 { + if yyb3918 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3918-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46714,139 +49188,139 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3925 := z.EncBinary() + _ = yym3925 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3926 = 1 + for _, b := range yyq3926 { if b { - yynn2++ + yynn3926++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3926) + yynn3926 = 0 } - if yyr2 || yy2arr2 { + if yyr3926 || yy2arr3926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq3926[0] { + yym3928 := z.EncBinary() + _ = yym3928 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3926[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym3929 := z.EncBinary() + _ = yym3929 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3926 || yy2arr3926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq3926[1] { + yym3931 := z.EncBinary() + _ = yym3931 if false { } else { - h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq3926[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3932 := z.EncBinary() + _ = yym3932 if false { } else { - h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr3926 || yy2arr3926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq3926[2] { + yy3934 := &x.ListMeta + yym3935 := z.EncBinary() + _ = yym3935 if false { + } else if z.HasExtensions() && z.EncExt(yy3934) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3934) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq3926[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy3936 := &x.ListMeta + yym3937 := z.EncBinary() + _ = yym3937 if false { + } else if z.HasExtensions() && z.EncExt(yy3936) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy3936) } } } - if yyr2 || yy2arr2 { + if yyr3926 || yy2arr3926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym3939 := z.EncBinary() + _ = yym3939 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr3926 || yy2arr3926 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46859,25 +49333,25 @@ func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3941 := z.DecBinary() + _ = yym3941 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3942 := r.ContainerType() + if yyct3942 == codecSelferValueTypeMap1234 { + yyl3942 := r.ReadMapStart() + if yyl3942 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3942, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3942 == codecSelferValueTypeArray1234 { + yyl3942 := r.ReadArrayStart() + if yyl3942 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3942, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46889,12 +49363,12 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -46903,51 +49377,51 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3943Slc = r.DecodeBytes(yys3943Slc, true, true) + yys3943 := string(yys3943Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv3946 := &x.ListMeta + yym3947 := z.DecBinary() + _ = yym3947 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv3946) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv3946, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv3948 := &x.Items + yym3949 := z.DecBinary() + _ = yym3949 if false { } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv6), d) + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3948), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3943) + } // end switch yys3943 + } // end for yyj3943 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46955,61 +49429,16 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv13), d) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3950 int + var yyb3950 bool + var yyhl3950 bool = l >= 0 + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l } else { - yyb10 = r.CheckBreak() + yyb3950 = r.CheckBreak() } - if yyb10 { + if yyb3950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47019,13 +49448,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l } else { - yyb10 = r.CheckBreak() + yyb3950 = r.CheckBreak() } - if yyb10 { + if yyb3950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47035,18 +49464,63 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } 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 { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l } else { - yyb10 = r.CheckBreak() + yyb3950 = r.CheckBreak() } - if yyb10 { + if yyb3950 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3950-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47055,8 +49529,8 @@ func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym3957 := z.EncBinary() + _ = yym3957 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -47068,8 +49542,8 @@ func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3958 := z.DecBinary() + _ = yym3958 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -47084,53 +49558,53 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3959 := z.EncBinary() + _ = yym3959 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Type != "" - yyq2[1] = len(x.Max) != 0 - yyq2[2] = len(x.Min) != 0 - yyq2[3] = len(x.Default) != 0 - yyq2[4] = len(x.DefaultRequest) != 0 - yyq2[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3960 = 0 + for _, b := range yyq3960 { if b { - yynn2++ + yynn3960++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3960) + yynn3960 = 0 } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq3960[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq3960[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq3960[1] { if x.Max == nil { r.EncodeNil() } else { @@ -47140,7 +49614,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq3960[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47151,9 +49625,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq3960[2] { if x.Min == nil { r.EncodeNil() } else { @@ -47163,7 +49637,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq3960[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47174,9 +49648,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq3960[3] { if x.Default == nil { r.EncodeNil() } else { @@ -47186,7 +49660,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq3960[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("default")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47197,9 +49671,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq3960[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { @@ -47209,7 +49683,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[4] { + if yyq3960[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47220,9 +49694,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq3960[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { @@ -47232,7 +49706,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[5] { + if yyq3960[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -47243,7 +49717,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47256,25 +49730,25 @@ func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3967 := z.DecBinary() + _ = yym3967 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3968 := r.ContainerType() + if yyct3968 == codecSelferValueTypeMap1234 { + yyl3968 := r.ReadMapStart() + if yyl3968 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3968, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3968 == codecSelferValueTypeArray1234 { + yyl3968 := r.ReadArrayStart() + if yyl3968 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3968, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47286,12 +49760,12 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -47300,10 +49774,10 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3969Slc = r.DecodeBytes(yys3969Slc, true, true) + yys3969 := string(yys3969Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3969 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -47314,41 +49788,41 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv5 := &x.Max - yyv5.CodecDecodeSelf(d) + yyv3971 := &x.Max + yyv3971.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { - yyv6 := &x.Min - yyv6.CodecDecodeSelf(d) + yyv3972 := &x.Min + yyv3972.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { - yyv7 := &x.Default - yyv7.CodecDecodeSelf(d) + yyv3973 := &x.Default + yyv3973.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv8 := &x.DefaultRequest - yyv8.CodecDecodeSelf(d) + yyv3974 := &x.DefaultRequest + yyv3974.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv9 := &x.MaxLimitRequestRatio - yyv9.CodecDecodeSelf(d) + yyv3975 := &x.MaxLimitRequestRatio + yyv3975.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3969) + } // end switch yys3969 + } // end for yyj3969 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47356,16 +49830,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj3976 int + var yyb3976 bool + var yyhl3976 bool = l >= 0 + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47375,13 +49849,13 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = LimitType(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47389,16 +49863,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv12 := &x.Max - yyv12.CodecDecodeSelf(d) + yyv3978 := &x.Max + yyv3978.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47406,16 +49880,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Min = nil } else { - yyv13 := &x.Min - yyv13.CodecDecodeSelf(d) + yyv3979 := &x.Min + yyv3979.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47423,16 +49897,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Default = nil } else { - yyv14 := &x.Default - yyv14.CodecDecodeSelf(d) + yyv3980 := &x.Default + yyv3980.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47440,16 +49914,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv15 := &x.DefaultRequest - yyv15.CodecDecodeSelf(d) + yyv3981 := &x.DefaultRequest + yyv3981.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47457,21 +49931,21 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv16 := &x.MaxLimitRequestRatio - yyv16.CodecDecodeSelf(d) + yyv3982 := &x.MaxLimitRequestRatio + yyv3982.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l } else { - yyb10 = r.CheckBreak() + yyb3976 = r.CheckBreak() } - if yyb10 { + if yyb3976 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj3976-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47483,36 +49957,36 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3983 := z.EncBinary() + _ = yym3983 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn3984 = 1 + for _, b := range yyq3984 { if b { - yynn2++ + yynn3984++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3984) + yynn3984 = 0 } - if yyr2 || yy2arr2 { + if yyr3984 || yy2arr3984 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym3986 := z.EncBinary() + _ = yym3986 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) @@ -47525,15 +49999,15 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Limits == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym3987 := z.EncBinary() + _ = yym3987 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } - if yyr2 || yy2arr2 { + if yyr3984 || yy2arr3984 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47546,25 +50020,25 @@ func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym3988 := z.DecBinary() + _ = yym3988 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct3989 := r.ContainerType() + if yyct3989 == codecSelferValueTypeMap1234 { + yyl3989 := r.ReadMapStart() + if yyl3989 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl3989, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct3989 == codecSelferValueTypeArray1234 { + yyl3989 := r.ReadArrayStart() + if yyl3989 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl3989, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47576,12 +50050,12 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -47590,26 +50064,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys3990Slc = r.DecodeBytes(yys3990Slc, true, true) + yys3990 := string(yys3990Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys3990 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4 := &x.Limits - yym5 := z.DecBinary() - _ = yym5 + yyv3991 := &x.Limits + yym3992 := z.DecBinary() + _ = yym3992 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3991), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys3990) + } // end switch yys3990 + } // end for yyj3990 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47617,16 +50091,16 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj3993 int + var yyb3993 bool + var yyhl3993 bool = l >= 0 + yyj3993++ + if yyhl3993 { + yyb3993 = yyj3993 > l } else { - yyb6 = r.CheckBreak() + yyb3993 = r.CheckBreak() } - if yyb6 { + if yyb3993 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47634,26 +50108,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv7 := &x.Limits - yym8 := z.DecBinary() - _ = yym8 + yyv3994 := &x.Limits + yym3995 := z.DecBinary() + _ = yym3995 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv7), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3994), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj3993++ + if yyhl3993 { + yyb3993 = yyj3993 > l } else { - yyb6 = r.CheckBreak() + yyb3993 = r.CheckBreak() } - if yyb6 { + if yyb3993 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj3993-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47665,72 +50139,38 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym3996 := z.EncBinary() + _ = yym3996 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn3997 = 0 + for _, b := range yyq3997 { if b { - yynn2++ + yynn3997++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn3997) + yynn3997 = 0 } - if yyr2 || yy2arr2 { + if yyr3997 || yy2arr3997 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq3997[0] { + yym3999 := z.EncBinary() + _ = yym3999 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47739,23 +50179,23 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq3997[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym4000 := z.EncBinary() + _ = yym4000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr3997 || yy2arr3997 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq3997[1] { + yym4002 := z.EncBinary() + _ = yym4002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47764,19 +50204,53 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq3997[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym4003 := z.EncBinary() + _ = yym4003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + 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) @@ -47789,25 +50263,25 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4010 := z.DecBinary() + _ = yym4010 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4011 := r.ContainerType() + if yyct4011 == codecSelferValueTypeMap1234 { + yyl4011 := r.ReadMapStart() + if yyl4011 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4011, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4011 == codecSelferValueTypeArray1234 { + yyl4011 := r.ReadArrayStart() + if yyl4011 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4011, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47819,12 +50293,12 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -47833,24 +50307,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4012Slc = r.DecodeBytes(yys4012Slc, true, true) + yys4012 := string(yys4012Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} - } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) - } + switch yys4012 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47863,10 +50323,24 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4012) + } // end switch yys4012 + } // end for yyj4012 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47874,87 +50348,87 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj4017 int + var yyb4017 bool + var yyhl4017 bool = l >= 0 + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l } else { - yyb8 = r.CheckBreak() + yyb4017 = r.CheckBreak() } - if yyb8 { + if yyb4017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l } else { - yyb8 = r.CheckBreak() + yyb4017 = r.CheckBreak() } - if yyb8 { + if yyb4017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} + x.APIVersion = "" } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l } else { - yyb8 = r.CheckBreak() + yyb4017 = r.CheckBreak() } - if yyb8 { + if yyb4017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4020 := &x.ObjectMeta + yyv4020.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l } else { - yyb8 = r.CheckBreak() + yyb4017 = r.CheckBreak() } - if yyb8 { + if yyb4017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = LimitRangeSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv4021 := &x.Spec + yyv4021.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l } else { - yyb8 = r.CheckBreak() + yyb4017 = r.CheckBreak() } - if yyb8 { + if yyb4017 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj4017-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47966,139 +50440,139 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4022 := z.EncBinary() + _ = yym4022 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4023 = 1 + for _, b := range yyq4023 { if b { - yynn2++ + yynn4023++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4023) + yynn4023 = 0 } - if yyr2 || yy2arr2 { + if yyr4023 || yy2arr4023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4023[0] { + yym4025 := z.EncBinary() + _ = yym4025 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4023[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4026 := z.EncBinary() + _ = yym4026 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4023 || yy2arr4023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4023[1] { + yym4028 := z.EncBinary() + _ = yym4028 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4023[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4029 := z.EncBinary() + _ = yym4029 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4023 || yy2arr4023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4023[2] { + yy4031 := &x.ListMeta + yym4032 := z.EncBinary() + _ = yym4032 if false { + } else if z.HasExtensions() && z.EncExt(yy4031) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4031) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4023[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4033 := &x.ListMeta + yym4034 := z.EncBinary() + _ = yym4034 if false { + } else if z.HasExtensions() && z.EncExt(yy4033) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4033) } } } - if yyr2 || yy2arr2 { + if yyr4023 || yy2arr4023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4036 := z.EncBinary() + _ = yym4036 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceLimitRange(([]LimitRange)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4023 || yy2arr4023 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48111,25 +50585,25 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4038 := z.DecBinary() + _ = yym4038 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4039 := r.ContainerType() + if yyct4039 == codecSelferValueTypeMap1234 { + yyl4039 := r.ReadMapStart() + if yyl4039 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4039, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4039 == codecSelferValueTypeArray1234 { + yyl4039 := r.ReadArrayStart() + if yyl4039 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4039, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48141,12 +50615,12 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -48155,51 +50629,51 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4040Slc = r.DecodeBytes(yys4040Slc, true, true) + yys4040 := string(yys4040Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4043 := &x.ListMeta + yym4044 := z.DecBinary() + _ = yym4044 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4043) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4043, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4045 := &x.Items + yym4046 := z.DecBinary() + _ = yym4046 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv6), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4045), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4040) + } // end switch yys4040 + } // end for yyj4040 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48207,98 +50681,98 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4047 int + var yyb4047 bool + var yyhl4047 bool = l >= 0 + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l } else { - yyb10 = r.CheckBreak() + yyb4047 = r.CheckBreak() } - if yyb10 { + if yyb4047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l } else { - yyb10 = r.CheckBreak() + yyb4047 = r.CheckBreak() } - if yyb10 { + if yyb4047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceLimitRange((*[]LimitRange)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l } else { - yyb10 = r.CheckBreak() + yyb4047 = r.CheckBreak() } - if yyb10 { + if yyb4047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4050 := &x.ListMeta + yym4051 := z.DecBinary() + _ = yym4051 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4050) { + } else { + z.DecFallback(yyv4050, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l } else { - yyb10 = r.CheckBreak() + yyb4047 = r.CheckBreak() } - if yyb10 { + if yyb4047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4052 := &x.Items + yym4053 := z.DecBinary() + _ = yym4053 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv4052), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l } else { - yyb10 = r.CheckBreak() + yyb4047 = r.CheckBreak() } - if yyb10 { + if yyb4047 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4047-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48307,8 +50781,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4054 := z.EncBinary() + _ = yym4054 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -48320,8 +50794,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4055 := z.DecBinary() + _ = yym4055 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -48336,34 +50810,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4056 := z.EncBinary() + _ = yym4056 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Hard) != 0 - yyq2[1] = len(x.Scopes) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4057 = 0 + for _, b := range yyq4057 { if b { - yynn2++ + yynn4057++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4057) + yynn4057 = 0 } - if yyr2 || yy2arr2 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4057[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -48373,7 +50847,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4057[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -48384,14 +50858,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4057[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym4060 := z.EncBinary() + _ = yym4060 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -48401,15 +50875,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym4061 := z.EncBinary() + _ = yym4061 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -48417,7 +50891,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48430,25 +50904,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4062 := z.DecBinary() + _ = yym4062 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4063 := r.ContainerType() + if yyct4063 == codecSelferValueTypeMap1234 { + yyl4063 := r.ReadMapStart() + if yyl4063 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4063, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4063 == codecSelferValueTypeArray1234 { + yyl4063 := r.ReadArrayStart() + if yyl4063 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4063, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48460,12 +50934,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -48474,33 +50948,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4064Slc = r.DecodeBytes(yys4064Slc, true, true) + yys4064 := string(yys4064Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4064 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4 := &x.Hard - yyv4.CodecDecodeSelf(d) + yyv4065 := &x.Hard + yyv4065.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv5 := &x.Scopes - yym6 := z.DecBinary() - _ = yym6 + yyv4066 := &x.Scopes + yym4067 := z.DecBinary() + _ = yym4067 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv5), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4066), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4064) + } // end switch yys4064 + } // end for yyj4064 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48508,16 +50982,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj4068 int + var yyb4068 bool + var yyhl4068 bool = l >= 0 + yyj4068++ + if yyhl4068 { + yyb4068 = yyj4068 > l } else { - yyb7 = r.CheckBreak() + yyb4068 = r.CheckBreak() } - if yyb7 { + if yyb4068 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48525,16 +50999,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv8 := &x.Hard - yyv8.CodecDecodeSelf(d) + yyv4069 := &x.Hard + yyv4069.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4068++ + if yyhl4068 { + yyb4068 = yyj4068 > l } else { - yyb7 = r.CheckBreak() + yyb4068 = r.CheckBreak() } - if yyb7 { + if yyb4068 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48542,26 +51016,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv9 := &x.Scopes - yym10 := z.DecBinary() - _ = yym10 + yyv4070 := &x.Scopes + yym4071 := z.DecBinary() + _ = yym4071 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv9), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4070), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4068++ + if yyhl4068 { + yyb4068 = yyj4068 > l } else { - yyb7 = r.CheckBreak() + yyb4068 = r.CheckBreak() } - if yyb7 { + if yyb4068 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj4068-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48573,34 +51047,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4072 := z.EncBinary() + _ = yym4072 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Hard) != 0 - yyq2[1] = len(x.Used) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4073 = 0 + for _, b := range yyq4073 { if b { - yynn2++ + yynn4073++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4073) + yynn4073 = 0 } - if yyr2 || yy2arr2 { + if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4073[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -48610,7 +51084,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4073[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -48621,9 +51095,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4073[1] { if x.Used == nil { r.EncodeNil() } else { @@ -48633,7 +51107,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq4073[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -48644,7 +51118,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48657,25 +51131,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4076 := z.DecBinary() + _ = yym4076 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4077 := r.ContainerType() + if yyct4077 == codecSelferValueTypeMap1234 { + yyl4077 := r.ReadMapStart() + if yyl4077 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4077, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4077 == codecSelferValueTypeArray1234 { + yyl4077 := r.ReadArrayStart() + if yyl4077 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4077, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48687,12 +51161,12 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -48701,28 +51175,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4078Slc = r.DecodeBytes(yys4078Slc, true, true) + yys4078 := string(yys4078Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4078 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4 := &x.Hard - yyv4.CodecDecodeSelf(d) + yyv4079 := &x.Hard + yyv4079.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv5 := &x.Used - yyv5.CodecDecodeSelf(d) + yyv4080 := &x.Used + yyv4080.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4078) + } // end switch yys4078 + } // end for yyj4078 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48730,16 +51204,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj4081 int + var yyb4081 bool + var yyhl4081 bool = l >= 0 + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb6 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb6 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48747,16 +51221,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv7 := &x.Hard - yyv7.CodecDecodeSelf(d) + yyv4082 := &x.Hard + yyv4082.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb6 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb6 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48764,21 +51238,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv8 := &x.Used - yyv8.CodecDecodeSelf(d) + yyv4083 := &x.Used + yyv4083.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb6 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb6 { + if yyb4081 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj4081-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48790,136 +51264,136 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4084 := z.EncBinary() + _ = yym4084 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4085 = 0 + for _, b := range yyq4085 { if b { - yynn2++ + yynn4085++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4085) + yynn4085 = 0 } - if yyr2 || yy2arr2 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4085[0] { + yym4087 := z.EncBinary() + _ = yym4087 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4085[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4088 := z.EncBinary() + _ = yym4088 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq4085[1] { + yym4090 := z.EncBinary() + _ = yym4090 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4085[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym4091 := z.EncBinary() + _ = yym4091 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq4085[2] { + yy4093 := &x.ObjectMeta + yy4093.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4085[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy4094 := &x.ObjectMeta + yy4094.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq4085[3] { + yy4096 := &x.Spec + yy4096.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4085[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy4097 := &x.Spec + yy4097.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq4085[4] { + yy4099 := &x.Status + yy4099.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq4085[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy4100 := &x.Status + yy4100.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48932,25 +51406,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4101 := z.DecBinary() + _ = yym4101 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4102 := r.ContainerType() + if yyct4102 == codecSelferValueTypeMap1234 { + yyl4102 := r.ReadMapStart() + if yyl4102 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4102, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4102 == codecSelferValueTypeArray1234 { + yyl4102 := r.ReadArrayStart() + if yyl4102 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4102, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48962,12 +51436,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -48976,47 +51450,47 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4103Slc = r.DecodeBytes(yys4103Slc, true, true) + yys4103 := string(yys4103Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys4103 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ResourceQuotaSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ResourceQuotaStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv4106 := &x.ObjectMeta + yyv4106.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ResourceQuotaSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv4107 := &x.Spec + yyv4107.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ResourceQuotaStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv4108 := &x.Status + yyv4108.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4103) + } // end switch yys4103 + } // end for yyj4103 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49024,104 +51498,104 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj4109 int + var yyb4109 bool + var yyhl4109 bool = l >= 0 + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb9 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb9 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb9 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb9 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ResourceQuotaSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb9 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb9 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ResourceQuotaStatus{} + x.ObjectMeta = ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv4112 := &x.ObjectMeta + yyv4112.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb9 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb9 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ResourceQuotaSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv4113 := &x.Spec + yyv4113.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb9 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb9 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ResourceQuotaStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv4114 := &x.Status + yyv4114.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb9 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb9 { + if yyb4109 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj4109-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49133,139 +51607,139 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4115 := z.EncBinary() + _ = yym4115 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4116 = 1 + for _, b := range yyq4116 { if b { - yynn2++ + yynn4116++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4116) + yynn4116 = 0 } - if yyr2 || yy2arr2 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4116[0] { + yym4118 := z.EncBinary() + _ = yym4118 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4116[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4119 := z.EncBinary() + _ = yym4119 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4116[1] { + yym4121 := z.EncBinary() + _ = yym4121 if false { } else { - h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4116[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4122 := z.EncBinary() + _ = yym4122 if false { } else { - h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4116[2] { + yy4124 := &x.ListMeta + yym4125 := z.EncBinary() + _ = yym4125 if false { + } else if z.HasExtensions() && z.EncExt(yy4124) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4124) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4116[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4126 := &x.ListMeta + yym4127 := z.EncBinary() + _ = yym4127 if false { + } else if z.HasExtensions() && z.EncExt(yy4126) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4126) } } } - if yyr2 || yy2arr2 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4129 := z.EncBinary() + _ = yym4129 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4130 := z.EncBinary() + _ = yym4130 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49278,25 +51752,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4131 := z.DecBinary() + _ = yym4131 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4132 := r.ContainerType() + if yyct4132 == codecSelferValueTypeMap1234 { + yyl4132 := r.ReadMapStart() + if yyl4132 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4132, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4132 == codecSelferValueTypeArray1234 { + yyl4132 := r.ReadArrayStart() + if yyl4132 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4132, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49308,12 +51782,12 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -49322,51 +51796,51 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4133Slc = r.DecodeBytes(yys4133Slc, true, true) + yys4133 := string(yys4133Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4133 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4136 := &x.ListMeta + yym4137 := z.DecBinary() + _ = yym4137 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4136) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4136, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4138 := &x.Items + yym4139 := z.DecBinary() + _ = yym4139 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv6), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4138), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4133) + } // end switch yys4133 + } // end for yyj4133 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49374,98 +51848,98 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4140 int + var yyb4140 bool + var yyhl4140 bool = l >= 0 + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb10 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb10 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb10 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb10 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb10 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb10 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4143 := &x.ListMeta + yym4144 := z.DecBinary() + _ = yym4144 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4143) { + } else { + z.DecFallback(yyv4143, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb10 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb10 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4145 := &x.Items + yym4146 := z.DecBinary() + _ = yym4146 + if false { + } else { + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4145), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb10 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb10 { + if yyb4140 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4140-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49477,60 +51951,110 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4147 := z.EncBinary() + _ = yym4147 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Data) != 0 - yyq2[2] = len(x.StringData) != 0 - yyq2[3] = x.Type != "" - yyq2[4] = x.Kind != "" - yyq2[5] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4148 = 0 + for _, b := range yyq4148 { if b { - yynn2++ + yynn4148++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4148) + yynn4148 = 0 } - if yyr2 || yy2arr2 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4148[0] { + yym4150 := z.EncBinary() + _ = yym4150 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4148[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4151 := z.EncBinary() + _ = yym4151 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4148 || yy2arr4148 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4148[1] { + yym4153 := z.EncBinary() + _ = yym4153 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4148[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4154 := z.EncBinary() + _ = yym4154 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4148 || yy2arr4148 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4148[2] { + yy4156 := &x.ObjectMeta + yy4156.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4148[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy4157 := &x.ObjectMeta + yy4157.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4148[3] { if x.Data == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym4159 := z.EncBinary() + _ = yym4159 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -49540,15 +52064,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq4148[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym4160 := z.EncBinary() + _ = yym4160 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -49556,14 +52080,14 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq4148[4] { if x.StringData == nil { r.EncodeNil() } else { - yym12 := z.EncBinary() - _ = yym12 + yym4162 := z.EncBinary() + _ = yym4162 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -49573,15 +52097,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4148[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stringData")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StringData == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym4163 := z.EncBinary() + _ = yym4163 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -49589,72 +52113,22 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq4148[5] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq4148[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym21 := z.EncBinary() - _ = yym21 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49667,25 +52141,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4165 := z.DecBinary() + _ = yym4165 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4166 := r.ContainerType() + if yyct4166 == codecSelferValueTypeMap1234 { + yyl4166 := r.ReadMapStart() + if yyl4166 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4166, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4166 == codecSelferValueTypeArray1234 { + yyl4166 := r.ReadArrayStart() + if yyl4166 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4166, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49697,12 +52171,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -49711,39 +52185,51 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4167Slc = r.DecodeBytes(yys4167Slc, true, true) + yys4167 := string(yys4167Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4167 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4170 := &x.ObjectMeta + yyv4170.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv5 := &x.Data - yym6 := z.DecBinary() - _ = yym6 + yyv4171 := &x.Data + yym4172 := z.DecBinary() + _ = yym4172 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv5), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4171), d) } } case "stringData": if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv7 := &x.StringData - yym8 := z.DecBinary() - _ = yym8 + yyv4173 := &x.StringData + yym4174 := z.DecBinary() + _ = yym4174 if false { } else { - z.F.DecMapStringStringX(yyv7, false, d) + z.F.DecMapStringStringX(yyv4173, false, d) } } case "type": @@ -49752,22 +52238,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Type = SecretType(r.DecodeString()) } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4167) + } // end switch yys4167 + } // end for yyj4167 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49775,130 +52249,130 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj4176 int + var yyb4176 bool + var yyhl4176 bool = l >= 0 + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv13 := &x.ObjectMeta - yyv13.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.APIVersion = "" } else { - yyv14 := &x.Data - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv14), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.StringData = nil + x.ObjectMeta = ObjectMeta{} } else { - yyv16 := &x.StringData - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - z.F.DecMapStringStringX(yyv16, false, d) - } + yyv4179 := &x.ObjectMeta + yyv4179.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Type = "" + x.Data = nil } else { - x.Type = SecretType(r.DecodeString()) + yyv4180 := &x.Data + yym4181 := z.DecBinary() + _ = yym4181 + if false { + } else { + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4180), d) + } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.StringData = nil } else { - x.Kind = string(r.DecodeString()) + yyv4182 := &x.StringData + yym4183 := z.DecBinary() + _ = yym4183 + if false { + } else { + z.F.DecMapStringStringX(yyv4182, false, d) + } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Type = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Type = SecretType(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb12 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb12 { + if yyb4176 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj4176-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49907,8 +52381,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4185 := z.EncBinary() + _ = yym4185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -49920,8 +52394,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4186 := z.DecBinary() + _ = yym4186 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -49936,139 +52410,139 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4187 := z.EncBinary() + _ = yym4187 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4188 = 1 + for _, b := range yyq4188 { if b { - yynn2++ + yynn4188++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4188) + yynn4188 = 0 } - if yyr2 || yy2arr2 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4188[0] { + yym4190 := z.EncBinary() + _ = yym4190 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4188[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4191 := z.EncBinary() + _ = yym4191 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4188[1] { + yym4193 := z.EncBinary() + _ = yym4193 if false { } else { - h.encSliceSecret(([]Secret)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4188[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4194 := z.EncBinary() + _ = yym4194 if false { } else { - h.encSliceSecret(([]Secret)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4188[2] { + yy4196 := &x.ListMeta + yym4197 := z.EncBinary() + _ = yym4197 if false { + } else if z.HasExtensions() && z.EncExt(yy4196) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4196) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4188[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4198 := &x.ListMeta + yym4199 := z.EncBinary() + _ = yym4199 if false { + } else if z.HasExtensions() && z.EncExt(yy4198) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4198) } } } - if yyr2 || yy2arr2 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4201 := z.EncBinary() + _ = yym4201 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceSecret(([]Secret)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4202 := z.EncBinary() + _ = yym4202 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50081,25 +52555,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4203 := z.DecBinary() + _ = yym4203 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4204 := r.ContainerType() + if yyct4204 == codecSelferValueTypeMap1234 { + yyl4204 := r.ReadMapStart() + if yyl4204 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4204, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4204 == codecSelferValueTypeArray1234 { + yyl4204 := r.ReadArrayStart() + if yyl4204 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4204, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50111,12 +52585,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -50125,51 +52599,51 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4205Slc = r.DecodeBytes(yys4205Slc, true, true) + yys4205 := string(yys4205Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4205 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4208 := &x.ListMeta + yym4209 := z.DecBinary() + _ = yym4209 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4208) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4208, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4210 := &x.Items + yym4211 := z.DecBinary() + _ = yym4211 if false { } else { - h.decSliceSecret((*[]Secret)(yyv6), d) + h.decSliceSecret((*[]Secret)(yyv4210), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4205) + } // end switch yys4205 + } // end for yyj4205 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50177,98 +52651,98 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4212 int + var yyb4212 bool + var yyhl4212 bool = l >= 0 + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb10 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb10 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb10 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb10 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceSecret((*[]Secret)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb10 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb10 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4215 := &x.ListMeta + yym4216 := z.DecBinary() + _ = yym4216 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4215) { + } else { + z.DecFallback(yyv4215, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb10 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb10 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4217 := &x.Items + yym4218 := z.DecBinary() + _ = yym4218 + if false { + } else { + h.decSliceSecret((*[]Secret)(yyv4217), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb10 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb10 { + if yyb4212 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4212-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50280,134 +52754,134 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4219 := z.EncBinary() + _ = yym4219 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Data) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4220 = 0 + for _, b := range yyq4220 { if b { - yynn2++ + yynn4220++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4220) + yynn4220 = 0 } - if yyr2 || yy2arr2 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4220[0] { + yym4222 := z.EncBinary() + _ = yym4222 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4220[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4223 := z.EncBinary() + _ = yym4223 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Data == nil { - r.EncodeNil() + if yyq4220[1] { + yym4225 := z.EncBinary() + _ = yym4225 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - z.F.EncMapStringStringV(x.Data, false, e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4220[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() + yym4226 := z.EncBinary() + _ = yym4226 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncMapStringStringV(x.Data, false, e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq4220[2] { + yy4228 := &x.ObjectMeta + yy4228.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4220[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy4229 := &x.ObjectMeta + yy4229.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq4220[3] { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4231 := z.EncBinary() + _ = yym4231 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4220[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4232 := z.EncBinary() + _ = yym4232 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } } } } - if yyr2 || yy2arr2 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50420,25 +52894,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4233 := z.DecBinary() + _ = yym4233 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4234 := r.ContainerType() + if yyct4234 == codecSelferValueTypeMap1234 { + yyl4234 := r.ReadMapStart() + if yyl4234 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4234, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4234 == codecSelferValueTypeArray1234 { + yyl4234 := r.ReadArrayStart() + if yyl4234 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4234, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50450,12 +52924,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -50464,45 +52938,45 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4235Slc = r.DecodeBytes(yys4235Slc, true, true) + yys4235 := string(yys4235Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4235 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4238 := &x.ObjectMeta + yyv4238.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv5 := &x.Data - yym6 := z.DecBinary() - _ = yym6 + yyv4239 := &x.Data + yym4240 := z.DecBinary() + _ = yym4240 if false { } else { - z.F.DecMapStringStringX(yyv5, false, d) + z.F.DecMapStringStringX(yyv4239, false, d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4235) + } // end switch yys4235 + } // end for yyj4235 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50510,16 +52984,48 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj4241 int + var yyb4241 bool + var yyhl4241 bool = l >= 0 + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l + } else { + yyb4241 = r.CheckBreak() + } + if yyb4241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l + } else { + yyb4241 = r.CheckBreak() + } + if yyb4241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb9 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb9 { + if yyb4241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50527,16 +53033,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + yyv4244 := &x.ObjectMeta + yyv4244.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb9 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb9 { + if yyb4241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50544,58 +53050,26 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv11 := &x.Data - yym12 := z.DecBinary() - _ = yym12 + yyv4245 := &x.Data + yym4246 := z.DecBinary() + _ = yym4246 if false { } else { - z.F.DecMapStringStringX(yyv11, false, d) + z.F.DecMapStringStringX(yyv4245, false, d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb9 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb9 { + if yyb4241 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj4241-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50607,139 +53081,139 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4247 := z.EncBinary() + _ = yym4247 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4248 = 1 + for _, b := range yyq4248 { if b { - yynn2++ + yynn4248++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4248) + yynn4248 = 0 } - if yyr2 || yy2arr2 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4248[0] { + yym4250 := z.EncBinary() + _ = yym4250 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4248[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4251 := z.EncBinary() + _ = yym4251 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4248[1] { + yym4253 := z.EncBinary() + _ = yym4253 if false { } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4248[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4254 := z.EncBinary() + _ = yym4254 if false { } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4248[2] { + yy4256 := &x.ListMeta + yym4257 := z.EncBinary() + _ = yym4257 if false { + } else if z.HasExtensions() && z.EncExt(yy4256) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4256) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4248[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4258 := &x.ListMeta + yym4259 := z.EncBinary() + _ = yym4259 if false { + } else if z.HasExtensions() && z.EncExt(yy4258) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4258) } } } - if yyr2 || yy2arr2 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4261 := z.EncBinary() + _ = yym4261 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4262 := z.EncBinary() + _ = yym4262 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50752,25 +53226,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4263 := z.DecBinary() + _ = yym4263 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4264 := r.ContainerType() + if yyct4264 == codecSelferValueTypeMap1234 { + yyl4264 := r.ReadMapStart() + if yyl4264 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4264, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4264 == codecSelferValueTypeArray1234 { + yyl4264 := r.ReadArrayStart() + if yyl4264 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4264, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50782,12 +53256,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -50796,51 +53270,51 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4265Slc = r.DecodeBytes(yys4265Slc, true, true) + yys4265 := string(yys4265Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4265 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4268 := &x.ListMeta + yym4269 := z.DecBinary() + _ = yym4269 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4268) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4268, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4270 := &x.Items + yym4271 := z.DecBinary() + _ = yym4271 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv6), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4270), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4265) + } // end switch yys4265 + } // end for yyj4265 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50848,98 +53322,98 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4272 int + var yyb4272 bool + var yyhl4272 bool = l >= 0 + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb10 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb10 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb10 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb10 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb10 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb10 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4275 := &x.ListMeta + yym4276 := z.DecBinary() + _ = yym4276 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4275) { + } else { + z.DecFallback(yyv4275, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb10 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb10 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4277 := &x.Items + yym4278 := z.DecBinary() + _ = yym4278 + if false { + } else { + h.decSliceConfigMap((*[]ConfigMap)(yyv4277), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb10 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb10 { + if yyb4272 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4272-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50948,8 +53422,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym4279 := z.EncBinary() + _ = yym4279 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -50961,8 +53435,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4280 := z.DecBinary() + _ = yym4280 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50977,32 +53451,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4281 := z.EncBinary() + _ = yym4281 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Message != "" - yyq2[3] = x.Error != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn4282 = 2 + for _, b := range yyq4282 { if b { - yynn2++ + yynn4282++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4282) + yynn4282 = 0 } - if yyr2 || yy2arr2 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -51011,7 +53485,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -51020,11 +53494,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq4282[2] { + yym4286 := z.EncBinary() + _ = yym4286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -51033,23 +53507,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq4282[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym4287 := z.EncBinary() + _ = yym4287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq4282[3] { + yym4289 := z.EncBinary() + _ = yym4289 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -51058,19 +53532,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq4282[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym4290 := z.EncBinary() + _ = yym4290 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr2 || yy2arr2 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51083,25 +53557,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4291 := z.DecBinary() + _ = yym4291 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4292 := r.ContainerType() + if yyct4292 == codecSelferValueTypeMap1234 { + yyl4292 := r.ReadMapStart() + if yyl4292 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4292, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4292 == codecSelferValueTypeArray1234 { + yyl4292 := r.ReadArrayStart() + if yyl4292 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4292, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51113,12 +53587,12 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -51127,10 +53601,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4293Slc = r.DecodeBytes(yys4293Slc, true, true) + yys4293 := string(yys4293Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4293 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -51156,9 +53630,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4293) + } // end switch yys4293 + } // end for yyj4293 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51166,16 +53640,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj4298 int + var yyb4298 bool + var yyhl4298 bool = l >= 0 + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb8 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb8 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51185,13 +53659,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb8 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb8 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51201,13 +53675,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb8 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb8 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51217,13 +53691,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb8 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb8 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51234,17 +53708,17 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb8 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb8 { + if yyb4298 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj4298-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51256,134 +53730,134 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4303 := z.EncBinary() + _ = yym4303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Conditions) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep4304 := !z.EncBinary() + yy2arr4304 := z.EncBasicHandle().StructToArray + var yyq4304 [4]bool + _, _, _ = yysep4304, yyq4304, yy2arr4304 + const yyr4304 bool = false + 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) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn4304 = 0 + for _, b := range yyq4304 { if b { - yynn2++ + yynn4304++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4304) + yynn4304 = 0 } - if yyr2 || yy2arr2 { + if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4304[0] { + yym4306 := z.EncBinary() + _ = yym4306 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4304[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym4307 := z.EncBinary() + _ = yym4307 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Conditions == nil { - r.EncodeNil() + if yyq4304[1] { + yym4309 := z.EncBinary() + _ = yym4309 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4304[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() + yym4310 := z.EncBinary() + _ = yym4310 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq4304[2] { + yy4312 := &x.ObjectMeta + yy4312.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4304[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy4313 := &x.ObjectMeta + yy4313.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq4304[3] { + if x.Conditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4315 := z.EncBinary() + _ = yym4315 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq4304[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Conditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym4316 := z.EncBinary() + _ = yym4316 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } } } } - if yyr2 || yy2arr2 { + if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51396,25 +53870,25 @@ func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4317 := z.DecBinary() + _ = yym4317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4318 := r.ContainerType() + if yyct4318 == codecSelferValueTypeMap1234 { + yyl4318 := r.ReadMapStart() + if yyl4318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4318, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4318 == codecSelferValueTypeArray1234 { + yyl4318 := r.ReadArrayStart() + if yyl4318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4318, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51426,12 +53900,12 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -51440,45 +53914,45 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4319Slc = r.DecodeBytes(yys4319Slc, true, true) + yys4319 := string(yys4319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4322 := &x.ObjectMeta + yyv4322.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv5 := &x.Conditions - yym6 := z.DecBinary() - _ = yym6 + yyv4323 := &x.Conditions + yym4324 := z.DecBinary() + _ = yym4324 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv5), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4323), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4319) + } // end switch yys4319 + } // end for yyj4319 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51486,16 +53960,48 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + 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 { - yyb9 = r.CheckBreak() + yyb4325 = r.CheckBreak() } - if yyb9 { + if yyb4325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51503,16 +54009,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + yyv4328 := &x.ObjectMeta + yyv4328.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l } else { - yyb9 = r.CheckBreak() + yyb4325 = r.CheckBreak() } - if yyb9 { + if yyb4325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51520,58 +54026,26 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv11 := &x.Conditions - yym12 := z.DecBinary() - _ = yym12 + yyv4329 := &x.Conditions + yym4330 := z.DecBinary() + _ = yym4330 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv11), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4329), d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l } else { - yyb9 = r.CheckBreak() + yyb4325 = r.CheckBreak() } - if yyb9 { + if yyb4325 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj4325-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51583,139 +54057,139 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4331 := z.EncBinary() + _ = yym4331 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4332 = 1 + for _, b := range yyq4332 { if b { - yynn2++ + yynn4332++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4332) + yynn4332 = 0 } - if yyr2 || yy2arr2 { + if yyr4332 || yy2arr4332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq4332[0] { + yym4334 := z.EncBinary() + _ = yym4334 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4332[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym4335 := z.EncBinary() + _ = yym4335 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr4332 || yy2arr4332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq4332[1] { + yym4337 := z.EncBinary() + _ = yym4337 if false { } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq4332[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4338 := z.EncBinary() + _ = yym4338 if false { } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr4332 || yy2arr4332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq4332[2] { + yy4340 := &x.ListMeta + yym4341 := z.EncBinary() + _ = yym4341 if false { + } else if z.HasExtensions() && z.EncExt(yy4340) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4340) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq4332[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy4342 := &x.ListMeta + yym4343 := z.EncBinary() + _ = yym4343 if false { + } else if z.HasExtensions() && z.EncExt(yy4342) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy4342) } } } - if yyr2 || yy2arr2 { + if yyr4332 || yy2arr4332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym4345 := z.EncBinary() + _ = yym4345 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + 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 { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr4332 || yy2arr4332 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51728,25 +54202,25 @@ func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4347 := z.DecBinary() + _ = yym4347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4348 := r.ContainerType() + if yyct4348 == codecSelferValueTypeMap1234 { + yyl4348 := r.ReadMapStart() + if yyl4348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4348, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4348 == codecSelferValueTypeArray1234 { + yyl4348 := r.ReadArrayStart() + if yyl4348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4348, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51758,12 +54232,12 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -51772,51 +54246,51 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4349Slc = r.DecodeBytes(yys4349Slc, true, true) + yys4349 := string(yys4349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv4352 := &x.ListMeta + yym4353 := z.DecBinary() + _ = yym4353 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv4352) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4352, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv4354 := &x.Items + yym4355 := z.DecBinary() + _ = yym4355 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv6), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4354), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4349) + } // end switch yys4349 + } // end for yyj4349 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51824,98 +54298,98 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4356 int + var yyb4356 bool + var yyhl4356 bool = l >= 0 + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l } else { - yyb10 = r.CheckBreak() + yyb4356 = r.CheckBreak() } - if yyb10 { + if yyb4356 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l } else { - yyb10 = r.CheckBreak() + yyb4356 = r.CheckBreak() } - if yyb10 { + if yyb4356 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l } else { - yyb10 = r.CheckBreak() + yyb4356 = r.CheckBreak() } - if yyb10 { + if yyb4356 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv4359 := &x.ListMeta + yym4360 := z.DecBinary() + _ = yym4360 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4359) { + } else { + z.DecFallback(yyv4359, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l } else { - yyb10 = r.CheckBreak() + yyb4356 = r.CheckBreak() } - if yyb10 { + if yyb4356 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4361 := &x.Items + yym4362 := z.DecBinary() + _ = yym4362 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4361), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l } else { - yyb10 = r.CheckBreak() + yyb4356 = r.CheckBreak() } - if yyb10 { + if yyb4356 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4356-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51927,38 +54401,39 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4363 := z.EncBinary() + _ = yym4363 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Items) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4364 = 0 + for _, b := range yyq4364 { if b { - yynn2++ + yynn4364++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4364) + yynn4364 = 0 } - if yyr2 || yy2arr2 { + if yyr4364 || yy2arr4364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4364[0] { if x.Items == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym4366 := z.EncBinary() + _ = yym4366 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -51968,15 +54443,15 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4364[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym4367 := z.EncBinary() + _ = yym4367 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -51984,7 +54459,42 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + 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) @@ -51997,25 +54507,25 @@ func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4373 := z.DecBinary() + _ = yym4373 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4374 := r.ContainerType() + if yyct4374 == codecSelferValueTypeMap1234 { + yyl4374 := r.ReadMapStart() + if yyl4374 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4374, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4374 == codecSelferValueTypeArray1234 { + yyl4374 := r.ReadArrayStart() + if yyl4374 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4374, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52027,12 +54537,12 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -52041,26 +54551,42 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) + yys4375 := string(yys4375Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4375 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + 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 { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4), d) + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4375) + } // end switch yys4375 + } // end for yyj4375 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52068,16 +54594,16 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj4380 int + var yyb4380 bool + var yyhl4380 bool = l >= 0 + yyj4380++ + if yyhl4380 { + yyb4380 = yyj4380 > l } else { - yyb6 = r.CheckBreak() + yyb4380 = r.CheckBreak() } - if yyb6 { + if yyb4380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52085,26 +54611,52 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv7 := &x.Items - yym8 := z.DecBinary() - _ = yym8 + 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 { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv7), d) + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj4380++ + if yyhl4380 { + yyb4380 = yyj4380 > l } else { - yyb6 = r.CheckBreak() + yyb4380 = r.CheckBreak() } - if yyb6 { + if yyb4380 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj4380-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52116,35 +54668,36 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4385 := z.EncBinary() + _ = yym4385 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FieldRef != nil - yyq2[2] = x.ResourceFieldRef != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn4386 = 1 + for _, b := range yyq4386 { if b { - yynn2++ + yynn4386++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4386) + yynn4386 = 0 } - if yyr2 || yy2arr2 { + if yyr4386 || yy2arr4386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym4388 := z.EncBinary() + _ = yym4388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -52153,16 +54706,16 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym4389 := z.EncBinary() + _ = yym4389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr4386 || yy2arr4386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4386[1] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -52172,7 +54725,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq4386[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52183,9 +54736,9 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4386 || yy2arr4386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq4386[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -52195,7 +54748,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4386[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52206,7 +54759,42 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + 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) @@ -52219,25 +54807,25 @@ func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4397 := z.DecBinary() + _ = yym4397 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4398 := r.ContainerType() + if yyct4398 == codecSelferValueTypeMap1234 { + yyl4398 := r.ReadMapStart() + if yyl4398 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4398, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4398 == codecSelferValueTypeArray1234 { + yyl4398 := r.ReadArrayStart() + if yyl4398 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4398, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52249,12 +54837,12 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -52263,10 +54851,10 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4399Slc = r.DecodeBytes(yys4399Slc, true, true) + yys4399 := string(yys4399Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4399 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -52295,10 +54883,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) + } + yym4404 := z.DecBinary() + _ = yym4404 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4399) + } // end switch yys4399 + } // end for yyj4399 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52306,16 +54910,16 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj4405 int + var yyb4405 bool + var yyhl4405 bool = l >= 0 + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l } else { - yyb7 = r.CheckBreak() + yyb4405 = r.CheckBreak() } - if yyb7 { + if yyb4405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52325,13 +54929,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l } else { - yyb7 = r.CheckBreak() + yyb4405 = r.CheckBreak() } - if yyb7 { + if yyb4405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52346,13 +54950,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.FieldRef.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l } else { - yyb7 = r.CheckBreak() + yyb4405 = r.CheckBreak() } - if yyb7 { + if yyb4405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52367,18 +54971,44 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l } else { - yyb7 = r.CheckBreak() + yyb4405 = r.CheckBreak() } - if yyb7 { + if yyb4405 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj4405-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52390,38 +55020,38 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4411 := z.EncBinary() + _ = yym4411 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Capabilities != nil - yyq2[1] = x.Privileged != nil - yyq2[2] = x.SELinuxOptions != nil - yyq2[3] = x.RunAsUser != nil - yyq2[4] = x.RunAsNonRoot != nil - yyq2[5] = x.ReadOnlyRootFilesystem != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4412 = 0 + for _, b := range yyq4412 { if b { - yynn2++ + yynn4412++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4412) + yynn4412 = 0 } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq4412[0] { if x.Capabilities == nil { r.EncodeNil() } else { @@ -52431,7 +55061,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4412[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52442,44 +55072,44 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq4412[1] { if x.Privileged == nil { r.EncodeNil() } else { - yy7 := *x.Privileged - yym8 := z.EncBinary() - _ = yym8 + yy4415 := *x.Privileged + yym4416 := z.EncBinary() + _ = yym4416 if false { } else { - r.EncodeBool(bool(yy7)) + r.EncodeBool(bool(yy4415)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq4412[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { - yy9 := *x.Privileged - yym10 := z.EncBinary() - _ = yym10 + yy4417 := *x.Privileged + yym4418 := z.EncBinary() + _ = yym4418 if false { } else { - r.EncodeBool(bool(yy9)) + r.EncodeBool(bool(yy4417)) } } } } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq4412[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -52489,7 +55119,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq4412[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52500,112 +55130,112 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq4412[3] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy15 := *x.RunAsUser - yym16 := z.EncBinary() - _ = yym16 + yy4421 := *x.RunAsUser + yym4422 := z.EncBinary() + _ = yym4422 if false { } else { - r.EncodeInt(int64(yy15)) + r.EncodeInt(int64(yy4421)) } } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq4412[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy17 := *x.RunAsUser - yym18 := z.EncBinary() - _ = yym18 + yy4423 := *x.RunAsUser + yym4424 := z.EncBinary() + _ = yym4424 if false { } else { - r.EncodeInt(int64(yy17)) + r.EncodeInt(int64(yy4423)) } } } } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq4412[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy20 := *x.RunAsNonRoot - yym21 := z.EncBinary() - _ = yym21 + yy4426 := *x.RunAsNonRoot + yym4427 := z.EncBinary() + _ = yym4427 if false { } else { - r.EncodeBool(bool(yy20)) + r.EncodeBool(bool(yy4426)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq4412[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy22 := *x.RunAsNonRoot - yym23 := z.EncBinary() - _ = yym23 + yy4428 := *x.RunAsNonRoot + yym4429 := z.EncBinary() + _ = yym4429 if false { } else { - r.EncodeBool(bool(yy22)) + r.EncodeBool(bool(yy4428)) } } } } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq4412[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy25 := *x.ReadOnlyRootFilesystem - yym26 := z.EncBinary() - _ = yym26 + yy4431 := *x.ReadOnlyRootFilesystem + yym4432 := z.EncBinary() + _ = yym4432 if false { } else { - r.EncodeBool(bool(yy25)) + r.EncodeBool(bool(yy4431)) } } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq4412[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy27 := *x.ReadOnlyRootFilesystem - yym28 := z.EncBinary() - _ = yym28 + yy4433 := *x.ReadOnlyRootFilesystem + yym4434 := z.EncBinary() + _ = yym4434 if false { } else { - r.EncodeBool(bool(yy27)) + r.EncodeBool(bool(yy4433)) } } } } - if yyr2 || yy2arr2 { + if yyr4412 || yy2arr4412 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52618,25 +55248,25 @@ func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4435 := z.DecBinary() + _ = yym4435 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4436 := r.ContainerType() + if yyct4436 == codecSelferValueTypeMap1234 { + yyl4436 := r.ReadMapStart() + if yyl4436 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4436, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4436 == codecSelferValueTypeArray1234 { + yyl4436 := r.ReadArrayStart() + if yyl4436 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4436, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52648,12 +55278,12 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -52662,10 +55292,10 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4437Slc = r.DecodeBytes(yys4437Slc, true, true) + yys4437 := string(yys4437Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4437 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { @@ -52686,8 +55316,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Privileged == nil { x.Privileged = new(bool) } - yym6 := z.DecBinary() - _ = yym6 + yym4440 := z.DecBinary() + _ = yym4440 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() @@ -52713,8 +55343,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym4443 := z.DecBinary() + _ = yym4443 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -52729,8 +55359,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym11 := z.DecBinary() - _ = yym11 + yym4445 := z.DecBinary() + _ = yym4445 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -52745,17 +55375,17 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym13 := z.DecBinary() - _ = yym13 + yym4447 := z.DecBinary() + _ = yym4447 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4437) + } // end switch yys4437 + } // end for yyj4437 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52763,16 +55393,16 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj4448 int + var yyb4448 bool + var yyhl4448 bool = l >= 0 + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52787,13 +55417,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.Capabilities.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52806,20 +55436,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Privileged == nil { x.Privileged = new(bool) } - yym17 := z.DecBinary() - _ = yym17 + yym4451 := z.DecBinary() + _ = yym4451 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52834,13 +55464,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52853,20 +55483,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym20 := z.DecBinary() - _ = yym20 + yym4454 := z.DecBinary() + _ = yym4454 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52879,20 +55509,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym22 := z.DecBinary() - _ = yym22 + yym4456 := z.DecBinary() + _ = yym4456 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52905,25 +55535,25 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym24 := z.DecBinary() - _ = yym24 + yym4458 := z.DecBinary() + _ = yym4458 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l } else { - yyb14 = r.CheckBreak() + yyb4448 = r.CheckBreak() } - if yyb14 { + if yyb4448 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj4448-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52935,38 +55565,38 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4459 := z.EncBinary() + _ = yym4459 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.User != "" - yyq2[1] = x.Role != "" - yyq2[2] = x.Type != "" - yyq2[3] = x.Level != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn4460 = 0 + for _, b := range yyq4460 { if b { - yynn2++ + yynn4460++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4460) + yynn4460 = 0 } - if yyr2 || yy2arr2 { + if yyr4460 || yy2arr4460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq4460[0] { + yym4462 := z.EncBinary() + _ = yym4462 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -52975,23 +55605,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq4460[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym4463 := z.EncBinary() + _ = yym4463 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr2 || yy2arr2 { + if yyr4460 || yy2arr4460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq4460[1] { + yym4465 := z.EncBinary() + _ = yym4465 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) @@ -53000,23 +55630,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq4460[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym4466 := z.EncBinary() + _ = yym4466 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } - if yyr2 || yy2arr2 { + if yyr4460 || yy2arr4460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq4460[2] { + yym4468 := z.EncBinary() + _ = yym4468 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -53025,23 +55655,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq4460[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym4469 := z.EncBinary() + _ = yym4469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr2 || yy2arr2 { + if yyr4460 || yy2arr4460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq4460[3] { + yym4471 := z.EncBinary() + _ = yym4471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) @@ -53050,19 +55680,19 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq4460[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym4472 := z.EncBinary() + _ = yym4472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } - if yyr2 || yy2arr2 { + if yyr4460 || yy2arr4460 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53075,25 +55705,25 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4473 := z.DecBinary() + _ = yym4473 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4474 := r.ContainerType() + if yyct4474 == codecSelferValueTypeMap1234 { + yyl4474 := r.ReadMapStart() + if yyl4474 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4474, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4474 == codecSelferValueTypeArray1234 { + yyl4474 := r.ReadArrayStart() + if yyl4474 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4474, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53105,12 +55735,12 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -53119,10 +55749,10 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4475Slc = r.DecodeBytes(yys4475Slc, true, true) + yys4475 := string(yys4475Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4475 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -53148,9 +55778,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4475) + } // end switch yys4475 + } // end for yyj4475 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53158,16 +55788,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj4480 int + var yyb4480 bool + var yyhl4480 bool = l >= 0 + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb8 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb8 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53177,13 +55807,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb8 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb8 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53193,13 +55823,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb8 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb8 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53209,13 +55839,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb8 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb8 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53226,17 +55856,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb8 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb8 { + if yyb4480 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj4480-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53248,53 +55878,103 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym4485 := z.EncBinary() + _ = yym4485 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] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn4486 = 2 + for _, b := range yyq4486 { if b { - yynn2++ + yynn4486++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn4486) + yynn4486 = 0 } - if yyr2 || yy2arr2 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq4486[0] { + yym4488 := z.EncBinary() + _ = yym4488 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4486[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4489 := z.EncBinary() + _ = yym4489 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4486 || yy2arr4486 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4486[1] { + yym4491 := z.EncBinary() + _ = yym4491 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4486[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4492 := z.EncBinary() + _ = yym4492 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4486 || yy2arr4486 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4486[2] { + yy4494 := &x.ObjectMeta + yy4494.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq4486[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy4495 := &x.ObjectMeta + yy4495.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym9 := z.EncBinary() - _ = yym9 + yym4497 := z.EncBinary() + _ = yym4497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -53303,20 +55983,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym4498 := z.EncBinary() + _ = yym4498 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr2 || yy2arr2 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym12 := z.EncBinary() - _ = yym12 + yym4500 := z.EncBinary() + _ = yym4500 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -53329,65 +56009,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym4501 := z.EncBinary() + _ = yym4501 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53400,25 +56030,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym4502 := z.DecBinary() + _ = yym4502 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct4503 := r.ContainerType() + if yyct4503 == codecSelferValueTypeMap1234 { + yyl4503 := r.ReadMapStart() + if yyl4503 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl4503, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct4503 == codecSelferValueTypeArray1234 { + yyl4503 := r.ReadArrayStart() + if yyl4503 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl4503, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53430,12 +56060,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -53444,16 +56074,28 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys4504Slc = r.DecodeBytes(yys4504Slc, true, true) + yys4504 := string(yys4504Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys4504 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv4507 := &x.ObjectMeta + yyv4507.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -53465,30 +56107,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv6 := &x.Data - yym7 := z.DecBinary() - _ = yym7 + yyv4509 := &x.Data + yym4510 := z.DecBinary() + _ = yym4510 if false { } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) + *yyv4509 = r.DecodeBytes(*(*[]byte)(yyv4509), false, false) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys4504) + } // end switch yys4504 + } // end for yyj4504 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53496,108 +56126,108 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj4511 int + var yyb4511 bool + var yyhl4511 bool = l >= 0 + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb10 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb10 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb10 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb10 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Range = "" + x.APIVersion = "" } else { - x.Range = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb10 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb10 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.ObjectMeta = ObjectMeta{} } else { - yyv13 := &x.Data - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *yyv13 = r.DecodeBytes(*(*[]byte)(yyv13), false, false) - } + yyv4514 := &x.ObjectMeta + yyv4514.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb10 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb10 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Range = "" } else { - x.Kind = string(r.DecodeString()) + x.Range = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb10 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb10 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Data = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv4516 := &x.Data + yym4517 := z.DecBinary() + _ = yym4517 + if false { + } else { + *yyv4516 = r.DecodeBytes(*(*[]byte)(yyv4516), false, false) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb10 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb10 { + if yyb4511 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj4511-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53607,10 +56237,10 @@ func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4518 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4519 := &yyv4518 + yy4519.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53620,86 +56250,83 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []OwnerReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4520 > 0 { + var yyrr4520, yyrl4520 int + var yyrt4520 bool + if yyl4520 > cap(yyv4520) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]OwnerReference, yyrl1) + yyv4520 = make([]OwnerReference, yyrl4520) } } else { - yyv1 = make([]OwnerReference, yyrl1) + yyv4520 = make([]OwnerReference, yyrl4520) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4520 = true + yyrr4520 = len(yyv4520) + if yyrg4520 { + copy(yyv4520, yyv24520) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4520 != len(yyv4520) { + yyv4520 = yyv4520[:yyl4520] + yyc4520 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4520 := 0 + for ; yyj4520 < yyrr4520; yyj4520++ { + yyh4520.ElemContainerState(yyj4520) if r.TryDecodeAsNil() { - yyv1[yyj1] = OwnerReference{} + yyv4520[yyj4520] = OwnerReference{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4521 := &yyv4520[yyj4520] + yyv4521.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, OwnerReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt4520 { + for ; yyj4520 < yyl4520; yyj4520++ { + yyv4520 = append(yyv4520, OwnerReference{}) + yyh4520.ElemContainerState(yyj4520) if r.TryDecodeAsNil() { - yyv1[yyj1] = OwnerReference{} + yyv4520[yyj4520] = OwnerReference{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4522 := &yyv4520[yyj4520] + yyv4522.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4520 := 0 + for ; !r.CheckBreak(); yyj4520++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, OwnerReference{}) // var yyz1 OwnerReference - yyc1 = true + if yyj4520 >= len(yyv4520) { + yyv4520 = append(yyv4520, OwnerReference{}) // var yyz4520 OwnerReference + yyc4520 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4520.ElemContainerState(yyj4520) + if yyj4520 < len(yyv4520) { if r.TryDecodeAsNil() { - yyv1[yyj1] = OwnerReference{} + yyv4520[yyj4520] = OwnerReference{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4523 := &yyv4520[yyj4520] + yyv4523.CodecDecodeSelf(d) } } else { @@ -53707,17 +56334,17 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []OwnerReference{} - yyc1 = true + if yyj4520 < len(yyv4520) { + yyv4520 = yyv4520[:yyj4520] + yyc4520 = true + } else if yyj4520 == 0 && yyv4520 == nil { + yyv4520 = []OwnerReference{} + yyc4520 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4520.End() + if yyc4520 { + *v = yyv4520 } } @@ -53726,9 +56353,9 @@ func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolume z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4524 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4524.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53738,78 +56365,75 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PersistentVolumeAccessMode{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4525 > 0 { + var yyrr4525, yyrl4525 int + var yyrt4525 bool + if yyl4525 > cap(yyv4525) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4525, yyrt4525 = z.DecInferLen(yyl4525, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4525 { + if yyrl4525 <= cap(yyv4525) { + yyv4525 = yyv4525[:yyrl4525] } else { - yyv1 = make([]PersistentVolumeAccessMode, yyrl1) + yyv4525 = make([]PersistentVolumeAccessMode, yyrl4525) } } else { - yyv1 = make([]PersistentVolumeAccessMode, yyrl1) + yyv4525 = make([]PersistentVolumeAccessMode, yyrl4525) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4525 = true + yyrr4525 = len(yyv4525) + } else if yyl4525 != len(yyv4525) { + yyv4525 = yyv4525[:yyl4525] + yyc4525 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4525 := 0 + for ; yyj4525 < yyrr4525; yyj4525++ { + yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4525[yyj4525] = "" } else { - yyv1[yyj1] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4525 { + for ; yyj4525 < yyl4525; yyj4525++ { + yyv4525 = append(yyv4525, "") + yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4525[yyj4525] = "" } else { - yyv1[yyj1] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4525 := 0 + for ; !r.CheckBreak(); yyj4525++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 PersistentVolumeAccessMode - yyc1 = true + if yyj4525 >= len(yyv4525) { + yyv4525 = append(yyv4525, "") // var yyz4525 PersistentVolumeAccessMode + yyc4525 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4525.ElemContainerState(yyj4525) + if yyj4525 < len(yyv4525) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4525[yyj4525] = "" } else { - yyv1[yyj1] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) } } else { @@ -53817,17 +56441,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PersistentVolumeAccessMode{} - yyc1 = true + if yyj4525 < len(yyv4525) { + yyv4525 = yyv4525[:yyj4525] + yyc4525 = true + } else if yyj4525 == 0 && yyv4525 == nil { + yyv4525 = []PersistentVolumeAccessMode{} + yyc4525 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4525.End() + if yyc4525 { + *v = yyv4525 } } @@ -53836,10 +56460,10 @@ func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4529 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4530 := &yyv4529 + yy4530.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53849,86 +56473,83 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PersistentVolume{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4531 > 0 { + var yyrr4531, yyrl4531 int + var yyrt4531 bool + if yyl4531 > cap(yyv4531) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 456) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PersistentVolume, yyrl1) + yyv4531 = make([]PersistentVolume, yyrl4531) } } else { - yyv1 = make([]PersistentVolume, yyrl1) + yyv4531 = make([]PersistentVolume, yyrl4531) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4531 = true + yyrr4531 = len(yyv4531) + if yyrg4531 { + copy(yyv4531, yyv24531) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4531 != len(yyv4531) { + yyv4531 = yyv4531[:yyl4531] + yyc4531 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4531 := 0 + for ; yyj4531 < yyrr4531; yyj4531++ { + yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolume{} + yyv4531[yyj4531] = PersistentVolume{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4532 := &yyv4531[yyj4531] + yyv4532.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PersistentVolume{}) - yyh1.ElemContainerState(yyj1) + if yyrt4531 { + for ; yyj4531 < yyl4531; yyj4531++ { + yyv4531 = append(yyv4531, PersistentVolume{}) + yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolume{} + yyv4531[yyj4531] = PersistentVolume{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4533 := &yyv4531[yyj4531] + yyv4533.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4531 := 0 + for ; !r.CheckBreak(); yyj4531++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PersistentVolume{}) // var yyz1 PersistentVolume - yyc1 = true + if yyj4531 >= len(yyv4531) { + yyv4531 = append(yyv4531, PersistentVolume{}) // var yyz4531 PersistentVolume + yyc4531 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4531.ElemContainerState(yyj4531) + if yyj4531 < len(yyv4531) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolume{} + yyv4531[yyj4531] = PersistentVolume{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4534 := &yyv4531[yyj4531] + yyv4534.CodecDecodeSelf(d) } } else { @@ -53936,17 +56557,17 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PersistentVolume{} - yyc1 = true + if yyj4531 < len(yyv4531) { + yyv4531 = yyv4531[:yyj4531] + yyc4531 = true + } else if yyj4531 == 0 && yyv4531 == nil { + yyv4531 = []PersistentVolume{} + yyc4531 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4531.End() + if yyc4531 { + *v = yyv4531 } } @@ -53955,10 +56576,10 @@ func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4535 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4536 := &yyv4535 + yy4536.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53968,86 +56589,83 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PersistentVolumeClaim{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4537 > 0 { + var yyrr4537, yyrl4537 int + var yyrt4537 bool + if yyl4537 > cap(yyv4537) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PersistentVolumeClaim, yyrl1) + yyv4537 = make([]PersistentVolumeClaim, yyrl4537) } } else { - yyv1 = make([]PersistentVolumeClaim, yyrl1) + yyv4537 = make([]PersistentVolumeClaim, yyrl4537) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4537 = true + yyrr4537 = len(yyv4537) + if yyrg4537 { + copy(yyv4537, yyv24537) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4537 != len(yyv4537) { + yyv4537 = yyv4537[:yyl4537] + yyc4537 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4537 := 0 + for ; yyj4537 < yyrr4537; yyj4537++ { + yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolumeClaim{} + yyv4537[yyj4537] = PersistentVolumeClaim{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4538 := &yyv4537[yyj4537] + yyv4538.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PersistentVolumeClaim{}) - yyh1.ElemContainerState(yyj1) + if yyrt4537 { + for ; yyj4537 < yyl4537; yyj4537++ { + yyv4537 = append(yyv4537, PersistentVolumeClaim{}) + yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolumeClaim{} + yyv4537[yyj4537] = PersistentVolumeClaim{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4539 := &yyv4537[yyj4537] + yyv4539.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4537 := 0 + for ; !r.CheckBreak(); yyj4537++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PersistentVolumeClaim{}) // var yyz1 PersistentVolumeClaim - yyc1 = true + if yyj4537 >= len(yyv4537) { + yyv4537 = append(yyv4537, PersistentVolumeClaim{}) // var yyz4537 PersistentVolumeClaim + yyc4537 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4537.ElemContainerState(yyj4537) + if yyj4537 < len(yyv4537) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PersistentVolumeClaim{} + yyv4537[yyj4537] = PersistentVolumeClaim{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4540 := &yyv4537[yyj4537] + yyv4540.CodecDecodeSelf(d) } } else { @@ -54055,17 +56673,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PersistentVolumeClaim{} - yyc1 = true + if yyj4537 < len(yyv4537) { + yyv4537 = yyv4537[:yyj4537] + yyc4537 = true + } else if yyj4537 == 0 && yyv4537 == nil { + yyv4537 = []PersistentVolumeClaim{} + yyc4537 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4537.End() + if yyc4537 { + *v = yyv4537 } } @@ -54074,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 _, yyv1 := range v { + for _, yyv4541 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4542 := &yyv4541 + yy4542.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54087,86 +56705,83 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []KeyToPath{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4543 > 0 { + var yyrr4543, yyrl4543 int + var yyrt4543 bool + if yyl4543 > cap(yyv4543) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]KeyToPath, yyrl1) + yyv4543 = make([]KeyToPath, yyrl4543) } } else { - yyv1 = make([]KeyToPath, yyrl1) + yyv4543 = make([]KeyToPath, yyrl4543) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4543 = true + yyrr4543 = len(yyv4543) + if yyrg4543 { + copy(yyv4543, yyv24543) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4543 != len(yyv4543) { + yyv4543 = yyv4543[:yyl4543] + yyc4543 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4543 := 0 + for ; yyj4543 < yyrr4543; yyj4543++ { + yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { - yyv1[yyj1] = KeyToPath{} + yyv4543[yyj4543] = KeyToPath{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4544 := &yyv4543[yyj4543] + yyv4544.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, KeyToPath{}) - yyh1.ElemContainerState(yyj1) + if yyrt4543 { + for ; yyj4543 < yyl4543; yyj4543++ { + yyv4543 = append(yyv4543, KeyToPath{}) + yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { - yyv1[yyj1] = KeyToPath{} + yyv4543[yyj4543] = KeyToPath{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4545 := &yyv4543[yyj4543] + yyv4545.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4543 := 0 + for ; !r.CheckBreak(); yyj4543++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, KeyToPath{}) // var yyz1 KeyToPath - yyc1 = true + if yyj4543 >= len(yyv4543) { + yyv4543 = append(yyv4543, KeyToPath{}) // var yyz4543 KeyToPath + yyc4543 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4543.ElemContainerState(yyj4543) + if yyj4543 < len(yyv4543) { if r.TryDecodeAsNil() { - yyv1[yyj1] = KeyToPath{} + yyv4543[yyj4543] = KeyToPath{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4546 := &yyv4543[yyj4543] + yyv4546.CodecDecodeSelf(d) } } else { @@ -54174,17 +56789,17 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []KeyToPath{} - yyc1 = true + if yyj4543 < len(yyv4543) { + yyv4543 = yyv4543[:yyj4543] + yyc4543 = true + } else if yyj4543 == 0 && yyv4543 == nil { + yyv4543 = []KeyToPath{} + yyc4543 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4543.End() + if yyc4543 { + *v = yyv4543 } } @@ -54193,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 _, yyv1 := range v { + for _, yyv4547 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4548 := &yyv4547 + yy4548.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54206,86 +56821,83 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HTTPHeader{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4549 > 0 { + var yyrr4549, yyrl4549 int + var yyrt4549 bool + if yyl4549 > cap(yyv4549) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]HTTPHeader, yyrl1) + yyv4549 = make([]HTTPHeader, yyrl4549) } } else { - yyv1 = make([]HTTPHeader, yyrl1) + yyv4549 = make([]HTTPHeader, yyrl4549) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4549 = true + yyrr4549 = len(yyv4549) + if yyrg4549 { + copy(yyv4549, yyv24549) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4549 != len(yyv4549) { + yyv4549 = yyv4549[:yyl4549] + yyc4549 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4549 := 0 + for ; yyj4549 < yyrr4549; yyj4549++ { + yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPHeader{} + yyv4549[yyj4549] = HTTPHeader{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4550 := &yyv4549[yyj4549] + yyv4550.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HTTPHeader{}) - yyh1.ElemContainerState(yyj1) + if yyrt4549 { + for ; yyj4549 < yyl4549; yyj4549++ { + yyv4549 = append(yyv4549, HTTPHeader{}) + yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPHeader{} + yyv4549[yyj4549] = HTTPHeader{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4551 := &yyv4549[yyj4549] + yyv4551.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4549 := 0 + for ; !r.CheckBreak(); yyj4549++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HTTPHeader{}) // var yyz1 HTTPHeader - yyc1 = true + if yyj4549 >= len(yyv4549) { + yyv4549 = append(yyv4549, HTTPHeader{}) // var yyz4549 HTTPHeader + yyc4549 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4549.ElemContainerState(yyj4549) + if yyj4549 < len(yyv4549) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPHeader{} + yyv4549[yyj4549] = HTTPHeader{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4552 := &yyv4549[yyj4549] + yyv4552.CodecDecodeSelf(d) } } else { @@ -54293,17 +56905,17 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HTTPHeader{} - yyc1 = true + if yyj4549 < len(yyv4549) { + yyv4549 = yyv4549[:yyj4549] + yyc4549 = true + } else if yyj4549 == 0 && yyv4549 == nil { + yyv4549 = []HTTPHeader{} + yyc4549 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4549.End() + if yyc4549 { + *v = yyv4549 } } @@ -54312,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 _, yyv1 := range v { + for _, yyv4553 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4553.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54324,78 +56936,75 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Capability{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv4554 := *v + yyh4554, yyl4554 := z.DecSliceHelperStart() + var yyc4554 bool + if yyl4554 == 0 { + if yyv4554 == nil { + yyv4554 = []Capability{} + yyc4554 = true + } else if len(yyv4554) != 0 { + yyv4554 = yyv4554[:0] + yyc4554 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4554 > 0 { + var yyrr4554, yyrl4554 int + var yyrt4554 bool + if yyl4554 > cap(yyv4554) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4554, yyrt4554 = z.DecInferLen(yyl4554, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4554 { + if yyrl4554 <= cap(yyv4554) { + yyv4554 = yyv4554[:yyrl4554] } else { - yyv1 = make([]Capability, yyrl1) + yyv4554 = make([]Capability, yyrl4554) } } else { - yyv1 = make([]Capability, yyrl1) + yyv4554 = make([]Capability, yyrl4554) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4554 = true + yyrr4554 = len(yyv4554) + } else if yyl4554 != len(yyv4554) { + yyv4554 = yyv4554[:yyl4554] + yyc4554 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4554 := 0 + for ; yyj4554 < yyrr4554; yyj4554++ { + yyh4554.ElemContainerState(yyj4554) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4554[yyj4554] = "" } else { - yyv1[yyj1] = Capability(r.DecodeString()) + yyv4554[yyj4554] = Capability(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4554 { + for ; yyj4554 < yyl4554; yyj4554++ { + yyv4554 = append(yyv4554, "") + yyh4554.ElemContainerState(yyj4554) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4554[yyj4554] = "" } else { - yyv1[yyj1] = Capability(r.DecodeString()) + yyv4554[yyj4554] = Capability(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4554 := 0 + for ; !r.CheckBreak(); yyj4554++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 Capability - yyc1 = true + if yyj4554 >= len(yyv4554) { + yyv4554 = append(yyv4554, "") // var yyz4554 Capability + yyc4554 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4554.ElemContainerState(yyj4554) + if yyj4554 < len(yyv4554) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4554[yyj4554] = "" } else { - yyv1[yyj1] = Capability(r.DecodeString()) + yyv4554[yyj4554] = Capability(r.DecodeString()) } } else { @@ -54403,17 +57012,17 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Capability{} - yyc1 = true + if yyj4554 < len(yyv4554) { + yyv4554 = yyv4554[:yyj4554] + yyc4554 = true + } else if yyj4554 == 0 && yyv4554 == nil { + yyv4554 = []Capability{} + yyc4554 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4554.End() + if yyc4554 { + *v = yyv4554 } } @@ -54422,10 +57031,10 @@ func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4558 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4559 := &yyv4558 + yy4559.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54435,86 +57044,83 @@ func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ContainerPort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv4560 := *v + yyh4560, yyl4560 := z.DecSliceHelperStart() + var yyc4560 bool + if yyl4560 == 0 { + if yyv4560 == nil { + yyv4560 = []ContainerPort{} + yyc4560 = true + } else if len(yyv4560) != 0 { + yyv4560 = yyv4560[:0] + yyc4560 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4560 > 0 { + var yyrr4560, yyrl4560 int + var yyrt4560 bool + if yyl4560 > cap(yyv4560) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg4560 := len(yyv4560) > 0 + yyv24560 := yyv4560 + yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4560 { + if yyrl4560 <= cap(yyv4560) { + yyv4560 = yyv4560[:yyrl4560] } else { - yyv1 = make([]ContainerPort, yyrl1) + yyv4560 = make([]ContainerPort, yyrl4560) } } else { - yyv1 = make([]ContainerPort, yyrl1) + yyv4560 = make([]ContainerPort, yyrl4560) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4560 = true + yyrr4560 = len(yyv4560) + if yyrg4560 { + copy(yyv4560, yyv24560) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4560 != len(yyv4560) { + yyv4560 = yyv4560[:yyl4560] + yyc4560 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4560 := 0 + for ; yyj4560 < yyrr4560; yyj4560++ { + yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerPort{} + yyv4560[yyj4560] = ContainerPort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4561 := &yyv4560[yyj4560] + yyv4561.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ContainerPort{}) - yyh1.ElemContainerState(yyj1) + if yyrt4560 { + for ; yyj4560 < yyl4560; yyj4560++ { + yyv4560 = append(yyv4560, ContainerPort{}) + yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerPort{} + yyv4560[yyj4560] = ContainerPort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4562 := &yyv4560[yyj4560] + yyv4562.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4560 := 0 + for ; !r.CheckBreak(); yyj4560++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ContainerPort{}) // var yyz1 ContainerPort - yyc1 = true + if yyj4560 >= len(yyv4560) { + yyv4560 = append(yyv4560, ContainerPort{}) // var yyz4560 ContainerPort + yyc4560 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4560.ElemContainerState(yyj4560) + if yyj4560 < len(yyv4560) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerPort{} + yyv4560[yyj4560] = ContainerPort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4563 := &yyv4560[yyj4560] + yyv4563.CodecDecodeSelf(d) } } else { @@ -54522,17 +57128,17 @@ func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ContainerPort{} - yyc1 = true + if yyj4560 < len(yyv4560) { + yyv4560 = yyv4560[:yyj4560] + yyc4560 = true + } else if yyj4560 == 0 && yyv4560 == nil { + yyv4560 = []ContainerPort{} + yyc4560 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4560.End() + if yyc4560 { + *v = yyv4560 } } @@ -54541,10 +57147,10 @@ func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4564 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4565 := &yyv4564 + yy4565.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54554,86 +57160,83 @@ func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EnvVar{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv4566 := *v + yyh4566, yyl4566 := z.DecSliceHelperStart() + var yyc4566 bool + if yyl4566 == 0 { + if yyv4566 == nil { + yyv4566 = []EnvVar{} + yyc4566 = true + } else if len(yyv4566) != 0 { + yyv4566 = yyv4566[:0] + yyc4566 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4566 > 0 { + var yyrr4566, yyrl4566 int + var yyrt4566 bool + if yyl4566 > cap(yyv4566) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg4566 := len(yyv4566) > 0 + yyv24566 := yyv4566 + yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4566 { + if yyrl4566 <= cap(yyv4566) { + yyv4566 = yyv4566[:yyrl4566] } else { - yyv1 = make([]EnvVar, yyrl1) + yyv4566 = make([]EnvVar, yyrl4566) } } else { - yyv1 = make([]EnvVar, yyrl1) + yyv4566 = make([]EnvVar, yyrl4566) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4566 = true + yyrr4566 = len(yyv4566) + if yyrg4566 { + copy(yyv4566, yyv24566) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4566 != len(yyv4566) { + yyv4566 = yyv4566[:yyl4566] + yyc4566 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4566 := 0 + for ; yyj4566 < yyrr4566; yyj4566++ { + yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { - yyv1[yyj1] = EnvVar{} + yyv4566[yyj4566] = EnvVar{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4567 := &yyv4566[yyj4566] + yyv4567.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EnvVar{}) - yyh1.ElemContainerState(yyj1) + if yyrt4566 { + for ; yyj4566 < yyl4566; yyj4566++ { + yyv4566 = append(yyv4566, EnvVar{}) + yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { - yyv1[yyj1] = EnvVar{} + yyv4566[yyj4566] = EnvVar{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4568 := &yyv4566[yyj4566] + yyv4568.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4566 := 0 + for ; !r.CheckBreak(); yyj4566++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EnvVar{}) // var yyz1 EnvVar - yyc1 = true + if yyj4566 >= len(yyv4566) { + yyv4566 = append(yyv4566, EnvVar{}) // var yyz4566 EnvVar + yyc4566 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4566.ElemContainerState(yyj4566) + if yyj4566 < len(yyv4566) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EnvVar{} + yyv4566[yyj4566] = EnvVar{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4569 := &yyv4566[yyj4566] + yyv4569.CodecDecodeSelf(d) } } else { @@ -54641,17 +57244,17 @@ func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EnvVar{} - yyc1 = true + if yyj4566 < len(yyv4566) { + yyv4566 = yyv4566[:yyj4566] + yyc4566 = true + } else if yyj4566 == 0 && yyv4566 == nil { + yyv4566 = []EnvVar{} + yyc4566 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4566.End() + if yyc4566 { + *v = yyv4566 } } @@ -54660,10 +57263,10 @@ func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4570 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4571 := &yyv4570 + yy4571.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54673,86 +57276,83 @@ func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []VolumeMount{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4572 > 0 { + var yyrr4572, yyrl4572 int + var yyrt4572 bool + if yyl4572 > cap(yyv4572) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]VolumeMount, yyrl1) + yyv4572 = make([]VolumeMount, yyrl4572) } } else { - yyv1 = make([]VolumeMount, yyrl1) + yyv4572 = make([]VolumeMount, yyrl4572) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4572 = true + yyrr4572 = len(yyv4572) + if yyrg4572 { + copy(yyv4572, yyv24572) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4572 != len(yyv4572) { + yyv4572 = yyv4572[:yyl4572] + yyc4572 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4572 := 0 + for ; yyj4572 < yyrr4572; yyj4572++ { + yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { - yyv1[yyj1] = VolumeMount{} + yyv4572[yyj4572] = VolumeMount{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4573 := &yyv4572[yyj4572] + yyv4573.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, VolumeMount{}) - yyh1.ElemContainerState(yyj1) + if yyrt4572 { + for ; yyj4572 < yyl4572; yyj4572++ { + yyv4572 = append(yyv4572, VolumeMount{}) + yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { - yyv1[yyj1] = VolumeMount{} + yyv4572[yyj4572] = VolumeMount{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4574 := &yyv4572[yyj4572] + yyv4574.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4572 := 0 + for ; !r.CheckBreak(); yyj4572++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, VolumeMount{}) // var yyz1 VolumeMount - yyc1 = true + if yyj4572 >= len(yyv4572) { + yyv4572 = append(yyv4572, VolumeMount{}) // var yyz4572 VolumeMount + yyc4572 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4572.ElemContainerState(yyj4572) + if yyj4572 < len(yyv4572) { if r.TryDecodeAsNil() { - yyv1[yyj1] = VolumeMount{} + yyv4572[yyj4572] = VolumeMount{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4575 := &yyv4572[yyj4572] + yyv4575.CodecDecodeSelf(d) } } else { @@ -54760,17 +57360,17 @@ func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []VolumeMount{} - yyc1 = true + if yyj4572 < len(yyv4572) { + yyv4572 = yyv4572[:yyj4572] + yyc4572 = true + } else if yyj4572 == 0 && yyv4572 == nil { + yyv4572 = []VolumeMount{} + yyc4572 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4572.End() + if yyc4572 { + *v = yyv4572 } } @@ -54779,10 +57379,10 @@ func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4576 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4577 := &yyv4576 + yy4577.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54792,86 +57392,83 @@ func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeSelectorTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4578 > 0 { + var yyrr4578, yyrl4578 int + var yyrt4578 bool + if yyl4578 > cap(yyv4578) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NodeSelectorTerm, yyrl1) + yyv4578 = make([]NodeSelectorTerm, yyrl4578) } } else { - yyv1 = make([]NodeSelectorTerm, yyrl1) + yyv4578 = make([]NodeSelectorTerm, yyrl4578) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4578 = true + yyrr4578 = len(yyv4578) + if yyrg4578 { + copy(yyv4578, yyv24578) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4578 != len(yyv4578) { + yyv4578 = yyv4578[:yyl4578] + yyc4578 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4578 := 0 + for ; yyj4578 < yyrr4578; yyj4578++ { + yyh4578.ElemContainerState(yyj4578) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorTerm{} + yyv4578[yyj4578] = NodeSelectorTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4579 := &yyv4578[yyj4578] + yyv4579.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeSelectorTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4578 { + for ; yyj4578 < yyl4578; yyj4578++ { + yyv4578 = append(yyv4578, NodeSelectorTerm{}) + yyh4578.ElemContainerState(yyj4578) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorTerm{} + yyv4578[yyj4578] = NodeSelectorTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4580 := &yyv4578[yyj4578] + yyv4580.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4578 := 0 + for ; !r.CheckBreak(); yyj4578++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeSelectorTerm{}) // var yyz1 NodeSelectorTerm - yyc1 = true + if yyj4578 >= len(yyv4578) { + yyv4578 = append(yyv4578, NodeSelectorTerm{}) // var yyz4578 NodeSelectorTerm + yyc4578 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4578.ElemContainerState(yyj4578) + if yyj4578 < len(yyv4578) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorTerm{} + yyv4578[yyj4578] = NodeSelectorTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4581 := &yyv4578[yyj4578] + yyv4581.CodecDecodeSelf(d) } } else { @@ -54879,17 +57476,17 @@ func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeSelectorTerm{} - yyc1 = true + if yyj4578 < len(yyv4578) { + yyv4578 = yyv4578[:yyj4578] + yyc4578 = true + } else if yyj4578 == 0 && yyv4578 == nil { + yyv4578 = []NodeSelectorTerm{} + yyc4578 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4578.End() + if yyc4578 { + *v = yyv4578 } } @@ -54898,10 +57495,10 @@ func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequire z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4582 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4583 := &yyv4582 + yy4583.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54911,86 +57508,83 @@ func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequir z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeSelectorRequirement{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4584 > 0 { + var yyrr4584, yyrl4584 int + var yyrt4584 bool + if yyl4584 > cap(yyv4584) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NodeSelectorRequirement, yyrl1) + yyv4584 = make([]NodeSelectorRequirement, yyrl4584) } } else { - yyv1 = make([]NodeSelectorRequirement, yyrl1) + yyv4584 = make([]NodeSelectorRequirement, yyrl4584) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4584 = true + yyrr4584 = len(yyv4584) + if yyrg4584 { + copy(yyv4584, yyv24584) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4584 != len(yyv4584) { + yyv4584 = yyv4584[:yyl4584] + yyc4584 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4584 := 0 + for ; yyj4584 < yyrr4584; yyj4584++ { + yyh4584.ElemContainerState(yyj4584) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorRequirement{} + yyv4584[yyj4584] = NodeSelectorRequirement{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4585 := &yyv4584[yyj4584] + yyv4585.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeSelectorRequirement{}) - yyh1.ElemContainerState(yyj1) + if yyrt4584 { + for ; yyj4584 < yyl4584; yyj4584++ { + yyv4584 = append(yyv4584, NodeSelectorRequirement{}) + yyh4584.ElemContainerState(yyj4584) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorRequirement{} + yyv4584[yyj4584] = NodeSelectorRequirement{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4586 := &yyv4584[yyj4584] + yyv4586.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4584 := 0 + for ; !r.CheckBreak(); yyj4584++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeSelectorRequirement{}) // var yyz1 NodeSelectorRequirement - yyc1 = true + if yyj4584 >= len(yyv4584) { + yyv4584 = append(yyv4584, NodeSelectorRequirement{}) // var yyz4584 NodeSelectorRequirement + yyc4584 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4584.ElemContainerState(yyj4584) + if yyj4584 < len(yyv4584) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeSelectorRequirement{} + yyv4584[yyj4584] = NodeSelectorRequirement{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4587 := &yyv4584[yyj4584] + yyv4587.CodecDecodeSelf(d) } } else { @@ -54998,17 +57592,17 @@ func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequir } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeSelectorRequirement{} - yyc1 = true + if yyj4584 < len(yyv4584) { + yyv4584 = yyv4584[:yyj4584] + yyc4584 = true + } else if yyj4584 == 0 && yyv4584 == nil { + yyv4584 = []NodeSelectorRequirement{} + yyc4584 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4584.End() + if yyc4584 { + *v = yyv4584 } } @@ -55017,10 +57611,10 @@ func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4588 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4589 := &yyv4588 + yy4589.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55030,86 +57624,83 @@ func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodAffinityTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv4590 := *v + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4590 > 0 { + var yyrr4590, yyrl4590 int + var yyrt4590 bool + if yyl4590 > cap(yyv4590) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodAffinityTerm, yyrl1) + yyv4590 = make([]PodAffinityTerm, yyrl4590) } } else { - yyv1 = make([]PodAffinityTerm, yyrl1) + yyv4590 = make([]PodAffinityTerm, yyrl4590) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4590 = true + yyrr4590 = len(yyv4590) + if yyrg4590 { + copy(yyv4590, yyv24590) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4590 != len(yyv4590) { + yyv4590 = yyv4590[:yyl4590] + yyc4590 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4590 := 0 + for ; yyj4590 < yyrr4590; yyj4590++ { + yyh4590.ElemContainerState(yyj4590) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodAffinityTerm{} + yyv4590[yyj4590] = PodAffinityTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4591 := &yyv4590[yyj4590] + yyv4591.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodAffinityTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4590 { + for ; yyj4590 < yyl4590; yyj4590++ { + yyv4590 = append(yyv4590, PodAffinityTerm{}) + yyh4590.ElemContainerState(yyj4590) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodAffinityTerm{} + yyv4590[yyj4590] = PodAffinityTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4592 := &yyv4590[yyj4590] + yyv4592.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4590 := 0 + for ; !r.CheckBreak(); yyj4590++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodAffinityTerm{}) // var yyz1 PodAffinityTerm - yyc1 = true + if yyj4590 >= len(yyv4590) { + yyv4590 = append(yyv4590, PodAffinityTerm{}) // var yyz4590 PodAffinityTerm + yyc4590 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4590.ElemContainerState(yyj4590) + if yyj4590 < len(yyv4590) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodAffinityTerm{} + yyv4590[yyj4590] = PodAffinityTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4593 := &yyv4590[yyj4590] + yyv4593.CodecDecodeSelf(d) } } else { @@ -55117,17 +57708,17 @@ func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodAffinityTerm{} - yyc1 = true + if yyj4590 < len(yyv4590) { + yyv4590 = yyv4590[:yyj4590] + yyc4590 = true + } else if yyj4590 == 0 && yyv4590 == nil { + yyv4590 = []PodAffinityTerm{} + yyc4590 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4590.End() + if yyc4590 { + *v = yyv4590 } } @@ -55136,10 +57727,10 @@ func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinity z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4594 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4595 := &yyv4594 + yy4595.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55149,86 +57740,83 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []WeightedPodAffinityTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4596 > 0 { + var yyrr4596, yyrl4596 int + var yyrt4596 bool + if yyl4596 > cap(yyv4596) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]WeightedPodAffinityTerm, yyrl1) + yyv4596 = make([]WeightedPodAffinityTerm, yyrl4596) } } else { - yyv1 = make([]WeightedPodAffinityTerm, yyrl1) + yyv4596 = make([]WeightedPodAffinityTerm, yyrl4596) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4596 = true + yyrr4596 = len(yyv4596) + if yyrg4596 { + copy(yyv4596, yyv24596) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4596 != len(yyv4596) { + yyv4596 = yyv4596[:yyl4596] + yyc4596 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4596 := 0 + for ; yyj4596 < yyrr4596; yyj4596++ { + yyh4596.ElemContainerState(yyj4596) if r.TryDecodeAsNil() { - yyv1[yyj1] = WeightedPodAffinityTerm{} + yyv4596[yyj4596] = WeightedPodAffinityTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4597 := &yyv4596[yyj4596] + yyv4597.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, WeightedPodAffinityTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4596 { + for ; yyj4596 < yyl4596; yyj4596++ { + yyv4596 = append(yyv4596, WeightedPodAffinityTerm{}) + yyh4596.ElemContainerState(yyj4596) if r.TryDecodeAsNil() { - yyv1[yyj1] = WeightedPodAffinityTerm{} + yyv4596[yyj4596] = WeightedPodAffinityTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4598 := &yyv4596[yyj4596] + yyv4598.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4596 := 0 + for ; !r.CheckBreak(); yyj4596++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, WeightedPodAffinityTerm{}) // var yyz1 WeightedPodAffinityTerm - yyc1 = true + if yyj4596 >= len(yyv4596) { + yyv4596 = append(yyv4596, WeightedPodAffinityTerm{}) // var yyz4596 WeightedPodAffinityTerm + yyc4596 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4596.ElemContainerState(yyj4596) + if yyj4596 < len(yyv4596) { if r.TryDecodeAsNil() { - yyv1[yyj1] = WeightedPodAffinityTerm{} + yyv4596[yyj4596] = WeightedPodAffinityTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4599 := &yyv4596[yyj4596] + yyv4599.CodecDecodeSelf(d) } } else { @@ -55236,17 +57824,17 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []WeightedPodAffinityTerm{} - yyc1 = true + if yyj4596 < len(yyv4596) { + yyv4596 = yyv4596[:yyj4596] + yyc4596 = true + } else if yyj4596 == 0 && yyv4596 == nil { + yyv4596 = []WeightedPodAffinityTerm{} + yyc4596 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4596.End() + if yyc4596 { + *v = yyv4596 } } @@ -55255,10 +57843,10 @@ func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredScheduling z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4600 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4601 := &yyv4600 + yy4601.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55268,86 +57856,83 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PreferredSchedulingTerm{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4602 > 0 { + var yyrr4602, yyrl4602 int + var yyrt4602 bool + if yyl4602 > cap(yyv4602) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PreferredSchedulingTerm, yyrl1) + yyv4602 = make([]PreferredSchedulingTerm, yyrl4602) } } else { - yyv1 = make([]PreferredSchedulingTerm, yyrl1) + yyv4602 = make([]PreferredSchedulingTerm, yyrl4602) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4602 = true + yyrr4602 = len(yyv4602) + if yyrg4602 { + copy(yyv4602, yyv24602) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4602 != len(yyv4602) { + yyv4602 = yyv4602[:yyl4602] + yyc4602 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4602 := 0 + for ; yyj4602 < yyrr4602; yyj4602++ { + yyh4602.ElemContainerState(yyj4602) if r.TryDecodeAsNil() { - yyv1[yyj1] = PreferredSchedulingTerm{} + yyv4602[yyj4602] = PreferredSchedulingTerm{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4603 := &yyv4602[yyj4602] + yyv4603.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PreferredSchedulingTerm{}) - yyh1.ElemContainerState(yyj1) + if yyrt4602 { + for ; yyj4602 < yyl4602; yyj4602++ { + yyv4602 = append(yyv4602, PreferredSchedulingTerm{}) + yyh4602.ElemContainerState(yyj4602) if r.TryDecodeAsNil() { - yyv1[yyj1] = PreferredSchedulingTerm{} + yyv4602[yyj4602] = PreferredSchedulingTerm{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4604 := &yyv4602[yyj4602] + yyv4604.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4602 := 0 + for ; !r.CheckBreak(); yyj4602++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PreferredSchedulingTerm{}) // var yyz1 PreferredSchedulingTerm - yyc1 = true + if yyj4602 >= len(yyv4602) { + yyv4602 = append(yyv4602, PreferredSchedulingTerm{}) // var yyz4602 PreferredSchedulingTerm + yyc4602 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4602.ElemContainerState(yyj4602) + if yyj4602 < len(yyv4602) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PreferredSchedulingTerm{} + yyv4602[yyj4602] = PreferredSchedulingTerm{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4605 := &yyv4602[yyj4602] + yyv4605.CodecDecodeSelf(d) } } else { @@ -55355,17 +57940,17 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PreferredSchedulingTerm{} - yyc1 = true + if yyj4602 < len(yyv4602) { + yyv4602 = yyv4602[:yyj4602] + yyc4602 = true + } else if yyj4602 == 0 && yyv4602 == nil { + yyv4602 = []PreferredSchedulingTerm{} + yyc4602 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4602.End() + if yyc4602 { + *v = yyv4602 } } @@ -55374,10 +57959,10 @@ func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4606 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4607 := &yyv4606 + yy4607.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55387,86 +57972,83 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Volume{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4608 > 0 { + var yyrr4608, yyrl4608 int + var yyrt4608 bool + if yyl4608 > cap(yyv4608) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 176) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Volume, yyrl1) + yyv4608 = make([]Volume, yyrl4608) } } else { - yyv1 = make([]Volume, yyrl1) + yyv4608 = make([]Volume, yyrl4608) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4608 = true + yyrr4608 = len(yyv4608) + if yyrg4608 { + copy(yyv4608, yyv24608) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4608 != len(yyv4608) { + yyv4608 = yyv4608[:yyl4608] + yyc4608 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4608 := 0 + for ; yyj4608 < yyrr4608; yyj4608++ { + yyh4608.ElemContainerState(yyj4608) if r.TryDecodeAsNil() { - yyv1[yyj1] = Volume{} + yyv4608[yyj4608] = Volume{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4609 := &yyv4608[yyj4608] + yyv4609.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Volume{}) - yyh1.ElemContainerState(yyj1) + if yyrt4608 { + for ; yyj4608 < yyl4608; yyj4608++ { + yyv4608 = append(yyv4608, Volume{}) + yyh4608.ElemContainerState(yyj4608) if r.TryDecodeAsNil() { - yyv1[yyj1] = Volume{} + yyv4608[yyj4608] = Volume{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4610 := &yyv4608[yyj4608] + yyv4610.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4608 := 0 + for ; !r.CheckBreak(); yyj4608++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Volume{}) // var yyz1 Volume - yyc1 = true + if yyj4608 >= len(yyv4608) { + yyv4608 = append(yyv4608, Volume{}) // var yyz4608 Volume + yyc4608 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4608.ElemContainerState(yyj4608) + if yyj4608 < len(yyv4608) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Volume{} + yyv4608[yyj4608] = Volume{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4611 := &yyv4608[yyj4608] + yyv4611.CodecDecodeSelf(d) } } else { @@ -55474,17 +58056,17 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Volume{} - yyc1 = true + if yyj4608 < len(yyv4608) { + yyv4608 = yyv4608[:yyj4608] + yyc4608 = true + } else if yyj4608 == 0 && yyv4608 == nil { + yyv4608 = []Volume{} + yyc4608 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4608.End() + if yyc4608 { + *v = yyv4608 } } @@ -55493,10 +58075,10 @@ func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4612 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4613 := &yyv4612 + yy4613.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55506,86 +58088,547 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Container{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl4614 > 0 { + var yyrr4614, yyrl4614 int + var yyrt4614 bool + if yyl4614 > cap(yyv4614) { + + 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 { + yyv4614 = make([]Container, yyrl4614) + } + } else { + yyv4614 = make([]Container, yyrl4614) + } + yyc4614 = true + yyrr4614 = len(yyv4614) + if yyrg4614 { + copy(yyv4614, yyv24614) + } + } else if yyl4614 != len(yyv4614) { + yyv4614 = yyv4614[:yyl4614] + yyc4614 = true + } + yyj4614 := 0 + for ; yyj4614 < yyrr4614; yyj4614++ { + yyh4614.ElemContainerState(yyj4614) + if r.TryDecodeAsNil() { + yyv4614[yyj4614] = Container{} + } else { + yyv4615 := &yyv4614[yyj4614] + yyv4615.CodecDecodeSelf(d) + } + + } + if yyrt4614 { + for ; yyj4614 < yyl4614; yyj4614++ { + yyv4614 = append(yyv4614, Container{}) + yyh4614.ElemContainerState(yyj4614) + if r.TryDecodeAsNil() { + yyv4614[yyj4614] = Container{} + } else { + yyv4616 := &yyv4614[yyj4614] + yyv4616.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4614 := 0 + for ; !r.CheckBreak(); yyj4614++ { + + if yyj4614 >= len(yyv4614) { + yyv4614 = append(yyv4614, Container{}) // var yyz4614 Container + yyc4614 = true + } + yyh4614.ElemContainerState(yyj4614) + if yyj4614 < len(yyv4614) { + if r.TryDecodeAsNil() { + yyv4614[yyj4614] = Container{} + } else { + yyv4617 := &yyv4614[yyj4614] + yyv4617.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4614 < len(yyv4614) { + yyv4614 = yyv4614[:yyj4614] + yyc4614 = true + } else if yyj4614 == 0 && yyv4614 == nil { + yyv4614 = []Container{} + yyc4614 = true + } + } + yyh4614.End() + if yyc4614 { + *v = yyv4614 + } +} + +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 _, yyv4618 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4619 := &yyv4618 + yy4619.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 + + 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 yyl4620 > 0 { + var yyrr4620, yyrl4620 int + var yyrt4620 bool + if yyl4620 > cap(yyv4620) { + + 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 { + yyv4620 = make([]LocalObjectReference, yyrl4620) + } + } else { + yyv4620 = make([]LocalObjectReference, yyrl4620) + } + yyc4620 = true + yyrr4620 = len(yyv4620) + if yyrg4620 { + copy(yyv4620, yyv24620) + } + } else if yyl4620 != len(yyv4620) { + yyv4620 = yyv4620[:yyl4620] + yyc4620 = true + } + yyj4620 := 0 + for ; yyj4620 < yyrr4620; yyj4620++ { + yyh4620.ElemContainerState(yyj4620) + if r.TryDecodeAsNil() { + yyv4620[yyj4620] = LocalObjectReference{} + } else { + yyv4621 := &yyv4620[yyj4620] + yyv4621.CodecDecodeSelf(d) + } + + } + if yyrt4620 { + for ; yyj4620 < yyl4620; yyj4620++ { + yyv4620 = append(yyv4620, LocalObjectReference{}) + yyh4620.ElemContainerState(yyj4620) + if r.TryDecodeAsNil() { + yyv4620[yyj4620] = LocalObjectReference{} + } else { + yyv4622 := &yyv4620[yyj4620] + yyv4622.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4620 := 0 + for ; !r.CheckBreak(); yyj4620++ { + + if yyj4620 >= len(yyv4620) { + yyv4620 = append(yyv4620, LocalObjectReference{}) // var yyz4620 LocalObjectReference + yyc4620 = true + } + yyh4620.ElemContainerState(yyj4620) + if yyj4620 < len(yyv4620) { + if r.TryDecodeAsNil() { + yyv4620[yyj4620] = LocalObjectReference{} + } else { + yyv4623 := &yyv4620[yyj4620] + yyv4623.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4620 < len(yyv4620) { + yyv4620 = yyv4620[:yyj4620] + yyc4620 = true + } else if yyj4620 == 0 && yyv4620 == nil { + yyv4620 = []LocalObjectReference{} + yyc4620 = true + } + } + yyh4620.End() + if yyc4620 { + *v = yyv4620 + } +} + +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 + r.EncodeArrayStart(len(v)) + for _, yyv4630 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4631 := &yyv4630 + yy4631.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 + + yyv4632 := *v + yyh4632, yyl4632 := z.DecSliceHelperStart() + var yyc4632 bool + if yyl4632 == 0 { + if yyv4632 == nil { + yyv4632 = []ContainerStatus{} + yyc4632 = true + } else if len(yyv4632) != 0 { + yyv4632 = yyv4632[:0] + yyc4632 = true + } + } else if yyl4632 > 0 { + var yyrr4632, yyrl4632 int + var yyrt4632 bool + if yyl4632 > cap(yyv4632) { + + yyrg4632 := len(yyv4632) > 0 + yyv24632 := yyv4632 + yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4632 { + if yyrl4632 <= cap(yyv4632) { + yyv4632 = yyv4632[:yyrl4632] + } else { + yyv4632 = make([]ContainerStatus, yyrl4632) + } + } else { + yyv4632 = make([]ContainerStatus, yyrl4632) + } + yyc4632 = true + yyrr4632 = len(yyv4632) + if yyrg4632 { + copy(yyv4632, yyv24632) + } + } else if yyl4632 != len(yyv4632) { + yyv4632 = yyv4632[:yyl4632] + yyc4632 = true + } + yyj4632 := 0 + for ; yyj4632 < yyrr4632; yyj4632++ { + yyh4632.ElemContainerState(yyj4632) + if r.TryDecodeAsNil() { + yyv4632[yyj4632] = ContainerStatus{} + } else { + yyv4633 := &yyv4632[yyj4632] + yyv4633.CodecDecodeSelf(d) + } + + } + if yyrt4632 { + for ; yyj4632 < yyl4632; yyj4632++ { + yyv4632 = append(yyv4632, ContainerStatus{}) + yyh4632.ElemContainerState(yyj4632) + if r.TryDecodeAsNil() { + yyv4632[yyj4632] = ContainerStatus{} + } else { + yyv4634 := &yyv4632[yyj4632] + yyv4634.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4632 := 0 + for ; !r.CheckBreak(); yyj4632++ { + + if yyj4632 >= len(yyv4632) { + yyv4632 = append(yyv4632, ContainerStatus{}) // var yyz4632 ContainerStatus + yyc4632 = true + } + yyh4632.ElemContainerState(yyj4632) + if yyj4632 < len(yyv4632) { + if r.TryDecodeAsNil() { + yyv4632[yyj4632] = ContainerStatus{} + } else { + yyv4635 := &yyv4632[yyj4632] + yyv4635.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4632 < len(yyv4632) { + yyv4632 = yyv4632[:yyj4632] + yyc4632 = true + } else if yyj4632 == 0 && yyv4632 == nil { + yyv4632 = []ContainerStatus{} + yyc4632 = true + } + } + yyh4632.End() + if yyc4632 { + *v = yyv4632 + } +} + +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 _, yyv4636 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4637 := &yyv4636 + yy4637.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 + + yyv4638 := *v + yyh4638, yyl4638 := z.DecSliceHelperStart() + var yyc4638 bool + if yyl4638 == 0 { + if yyv4638 == nil { + yyv4638 = []Pod{} + yyc4638 = true + } else if len(yyv4638) != 0 { + yyv4638 = yyv4638[:0] + yyc4638 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4638 > 0 { + var yyrr4638, yyrl4638 int + var yyrt4638 bool + if yyl4638 > cap(yyv4638) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 256) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg4638 := len(yyv4638) > 0 + yyv24638 := yyv4638 + yyrl4638, yyrt4638 = z.DecInferLen(yyl4638, z.DecBasicHandle().MaxInitLen, 664) + if yyrt4638 { + if yyrl4638 <= cap(yyv4638) { + yyv4638 = yyv4638[:yyrl4638] } else { - yyv1 = make([]Container, yyrl1) + yyv4638 = make([]Pod, yyrl4638) } } else { - yyv1 = make([]Container, yyrl1) + yyv4638 = make([]Pod, yyrl4638) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4638 = true + yyrr4638 = len(yyv4638) + if yyrg4638 { + copy(yyv4638, yyv24638) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4638 != len(yyv4638) { + yyv4638 = yyv4638[:yyl4638] + yyc4638 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4638 := 0 + for ; yyj4638 < yyrr4638; yyj4638++ { + yyh4638.ElemContainerState(yyj4638) if r.TryDecodeAsNil() { - yyv1[yyj1] = Container{} + yyv4638[yyj4638] = Pod{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4639 := &yyv4638[yyj4638] + yyv4639.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Container{}) - yyh1.ElemContainerState(yyj1) + if yyrt4638 { + for ; yyj4638 < yyl4638; yyj4638++ { + yyv4638 = append(yyv4638, Pod{}) + yyh4638.ElemContainerState(yyj4638) if r.TryDecodeAsNil() { - yyv1[yyj1] = Container{} + yyv4638[yyj4638] = Pod{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4640 := &yyv4638[yyj4638] + yyv4640.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4638 := 0 + for ; !r.CheckBreak(); yyj4638++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Container{}) // var yyz1 Container - yyc1 = true + if yyj4638 >= len(yyv4638) { + yyv4638 = append(yyv4638, Pod{}) // var yyz4638 Pod + yyc4638 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4638.ElemContainerState(yyj4638) + if yyj4638 < len(yyv4638) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Container{} + yyv4638[yyj4638] = Pod{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4641 := &yyv4638[yyj4638] + yyv4641.CodecDecodeSelf(d) } } else { @@ -55593,356 +58636,115 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Container{} - yyc1 = true + if yyj4638 < len(yyv4638) { + yyv4638 = yyv4638[:yyj4638] + yyc4638 = true + } else if yyj4638 == 0 && yyv4638 == nil { + yyv4638 = []Pod{} + yyc4638 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4638.End() + if yyc4638 { + *v = yyv4638 } } -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 _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.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 - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LocalObjectReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]LocalObjectReference, yyrl1) - } - } else { - yyv1 = make([]LocalObjectReference, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = LocalObjectReference{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LocalObjectReference{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = LocalObjectReference{} - } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LocalObjectReference{}) // var yyz1 LocalObjectReference - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = LocalObjectReference{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LocalObjectReference{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -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 _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.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 - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]PodCondition, yyrl1) - } - } else { - yyv1 = make([]PodCondition, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = PodCondition{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodCondition{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = PodCondition{} - } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodCondition{}) // var yyz1 PodCondition - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = PodCondition{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodCondition{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, 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 _, yyv1 := range v { + for _, yyv4642 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4643 := &yyv4642 + yy4643.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ContainerStatus{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4644 > 0 { + var yyrr4644, yyrl4644 int + var yyrt4644 bool + if yyl4644 > cap(yyv4644) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 120) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ContainerStatus, yyrl1) + yyv4644 = make([]PodTemplate, yyrl4644) } } else { - yyv1 = make([]ContainerStatus, yyrl1) + yyv4644 = make([]PodTemplate, yyrl4644) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4644 = true + yyrr4644 = len(yyv4644) + if yyrg4644 { + copy(yyv4644, yyv24644) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4644 != len(yyv4644) { + yyv4644 = yyv4644[:yyl4644] + yyc4644 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4644 := 0 + for ; yyj4644 < yyrr4644; yyj4644++ { + yyh4644.ElemContainerState(yyj4644) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerStatus{} + yyv4644[yyj4644] = PodTemplate{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4645 := &yyv4644[yyj4644] + yyv4645.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ContainerStatus{}) - yyh1.ElemContainerState(yyj1) + if yyrt4644 { + for ; yyj4644 < yyl4644; yyj4644++ { + yyv4644 = append(yyv4644, PodTemplate{}) + yyh4644.ElemContainerState(yyj4644) if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerStatus{} + yyv4644[yyj4644] = PodTemplate{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4646 := &yyv4644[yyj4644] + yyv4646.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4644 := 0 + for ; !r.CheckBreak(); yyj4644++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ContainerStatus{}) // var yyz1 ContainerStatus - yyc1 = true + if yyj4644 >= len(yyv4644) { + yyv4644 = append(yyv4644, PodTemplate{}) // var yyz4644 PodTemplate + yyc4644 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4644.ElemContainerState(yyj4644) + if yyj4644 < len(yyv4644) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerStatus{} + yyv4644[yyj4644] = PodTemplate{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4647 := &yyv4644[yyj4644] + yyv4647.CodecDecodeSelf(d) } } else { @@ -55950,118 +58752,115 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ContainerStatus{} - yyc1 = true + if yyj4644 < len(yyv4644) { + yyv4644 = yyv4644[:yyj4644] + yyc4644 = true + } else if yyj4644 == 0 && yyv4644 == nil { + yyv4644 = []PodTemplate{} + yyc4644 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4644.End() + if yyc4644 { + *v = yyv4644 } } -func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4648 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4649 := &yyv4648 + yy4649.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Pod{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4650 > 0 { + var yyrr4650, yyrl4650 int + var yyrt4650 bool + if yyl4650 > cap(yyv4650) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 648) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Pod, yyrl1) + yyv4650 = make([]ReplicationController, yyrl4650) } } else { - yyv1 = make([]Pod, yyrl1) + yyv4650 = make([]ReplicationController, yyrl4650) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4650 = true + yyrr4650 = len(yyv4650) + if yyrg4650 { + copy(yyv4650, yyv24650) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4650 != len(yyv4650) { + yyv4650 = yyv4650[:yyl4650] + yyc4650 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4650 := 0 + for ; yyj4650 < yyrr4650; yyj4650++ { + yyh4650.ElemContainerState(yyj4650) if r.TryDecodeAsNil() { - yyv1[yyj1] = Pod{} + yyv4650[yyj4650] = ReplicationController{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4651 := &yyv4650[yyj4650] + yyv4651.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Pod{}) - yyh1.ElemContainerState(yyj1) + if yyrt4650 { + for ; yyj4650 < yyl4650; yyj4650++ { + yyv4650 = append(yyv4650, ReplicationController{}) + yyh4650.ElemContainerState(yyj4650) if r.TryDecodeAsNil() { - yyv1[yyj1] = Pod{} + yyv4650[yyj4650] = ReplicationController{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4652 := &yyv4650[yyj4650] + yyv4652.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4650 := 0 + for ; !r.CheckBreak(); yyj4650++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Pod{}) // var yyz1 Pod - yyc1 = true + if yyj4650 >= len(yyv4650) { + yyv4650 = append(yyv4650, ReplicationController{}) // var yyz4650 ReplicationController + yyc4650 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4650.ElemContainerState(yyj4650) + if yyj4650 < len(yyv4650) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Pod{} + yyv4650[yyj4650] = ReplicationController{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4653 := &yyv4650[yyj4650] + yyv4653.CodecDecodeSelf(d) } } else { @@ -56069,118 +58868,115 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Pod{} - yyc1 = true + if yyj4650 < len(yyv4650) { + yyv4650 = yyv4650[:yyj4650] + yyc4650 = true + } else if yyj4650 == 0 && yyv4650 == nil { + yyv4650 = []ReplicationController{} + yyc4650 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4650.End() + if yyc4650 { + *v = yyv4650 } } -func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4654 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4655 := &yyv4654 + yy4655.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodTemplate{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4656 > 0 { + var yyrr4656, yyrl4656 int + var yyrt4656 bool + if yyl4656 > cap(yyv4656) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 696) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodTemplate, yyrl1) + yyv4656 = make([]LoadBalancerIngress, yyrl4656) } } else { - yyv1 = make([]PodTemplate, yyrl1) + yyv4656 = make([]LoadBalancerIngress, yyrl4656) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4656 = true + yyrr4656 = len(yyv4656) + if yyrg4656 { + copy(yyv4656, yyv24656) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4656 != len(yyv4656) { + yyv4656 = yyv4656[:yyl4656] + yyc4656 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4656 := 0 + for ; yyj4656 < yyrr4656; yyj4656++ { + yyh4656.ElemContainerState(yyj4656) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodTemplate{} + yyv4656[yyj4656] = LoadBalancerIngress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4657 := &yyv4656[yyj4656] + yyv4657.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodTemplate{}) - yyh1.ElemContainerState(yyj1) + if yyrt4656 { + for ; yyj4656 < yyl4656; yyj4656++ { + yyv4656 = append(yyv4656, LoadBalancerIngress{}) + yyh4656.ElemContainerState(yyj4656) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodTemplate{} + yyv4656[yyj4656] = LoadBalancerIngress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4658 := &yyv4656[yyj4656] + yyv4658.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4656 := 0 + for ; !r.CheckBreak(); yyj4656++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodTemplate{}) // var yyz1 PodTemplate - yyc1 = true + if yyj4656 >= len(yyv4656) { + yyv4656 = append(yyv4656, LoadBalancerIngress{}) // var yyz4656 LoadBalancerIngress + yyc4656 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4656.ElemContainerState(yyj4656) + if yyj4656 < len(yyv4656) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodTemplate{} + yyv4656[yyj4656] = LoadBalancerIngress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4659 := &yyv4656[yyj4656] + yyv4659.CodecDecodeSelf(d) } } else { @@ -56188,118 +58984,115 @@ func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodTemplate{} - yyc1 = true + if yyj4656 < len(yyv4656) { + yyv4656 = yyv4656[:yyj4656] + yyc4656 = true + } else if yyj4656 == 0 && yyv4656 == nil { + yyv4656 = []LoadBalancerIngress{} + yyc4656 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4656.End() + if yyc4656 { + *v = yyv4656 } } -func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4660 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4661 := &yyv4660 + yy4661.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ReplicationController{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4662 > 0 { + var yyrr4662, yyrl4662 int + var yyrt4662 bool + if yyl4662 > cap(yyv4662) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ReplicationController, yyrl1) + yyv4662 = make([]ServicePort, yyrl4662) } } else { - yyv1 = make([]ReplicationController, yyrl1) + yyv4662 = make([]ServicePort, yyrl4662) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4662 = true + yyrr4662 = len(yyv4662) + if yyrg4662 { + copy(yyv4662, yyv24662) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4662 != len(yyv4662) { + yyv4662 = yyv4662[:yyl4662] + yyc4662 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4662 := 0 + for ; yyj4662 < yyrr4662; yyj4662++ { + yyh4662.ElemContainerState(yyj4662) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicationController{} + yyv4662[yyj4662] = ServicePort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4663 := &yyv4662[yyj4662] + yyv4663.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ReplicationController{}) - yyh1.ElemContainerState(yyj1) + if yyrt4662 { + for ; yyj4662 < yyl4662; yyj4662++ { + yyv4662 = append(yyv4662, ServicePort{}) + yyh4662.ElemContainerState(yyj4662) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicationController{} + yyv4662[yyj4662] = ServicePort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4664 := &yyv4662[yyj4662] + yyv4664.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4662 := 0 + for ; !r.CheckBreak(); yyj4662++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ReplicationController{}) // var yyz1 ReplicationController - yyc1 = true + if yyj4662 >= len(yyv4662) { + yyv4662 = append(yyv4662, ServicePort{}) // var yyz4662 ServicePort + yyc4662 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4662.ElemContainerState(yyj4662) + if yyj4662 < len(yyv4662) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicationController{} + yyv4662[yyj4662] = ServicePort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4665 := &yyv4662[yyj4662] + yyv4665.CodecDecodeSelf(d) } } else { @@ -56307,118 +59100,115 @@ func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationControlle } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ReplicationController{} - yyc1 = true + if yyj4662 < len(yyv4662) { + yyv4662 = yyv4662[:yyj4662] + yyc4662 = true + } else if yyj4662 == 0 && yyv4662 == nil { + yyv4662 = []ServicePort{} + yyc4662 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4662.End() + if yyc4662 { + *v = yyv4662 } } -func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4666 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4667 := &yyv4666 + yy4667.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LoadBalancerIngress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4668 > 0 { + var yyrr4668, yyrl4668 int + var yyrt4668 bool + if yyl4668 > cap(yyv4668) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LoadBalancerIngress, yyrl1) + yyv4668 = make([]Service, yyrl4668) } } else { - yyv1 = make([]LoadBalancerIngress, yyrl1) + yyv4668 = make([]Service, yyrl4668) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4668 = true + yyrr4668 = len(yyv4668) + if yyrg4668 { + copy(yyv4668, yyv24668) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4668 != len(yyv4668) { + yyv4668 = yyv4668[:yyl4668] + yyc4668 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4668 := 0 + for ; yyj4668 < yyrr4668; yyj4668++ { + yyh4668.ElemContainerState(yyj4668) if r.TryDecodeAsNil() { - yyv1[yyj1] = LoadBalancerIngress{} + yyv4668[yyj4668] = Service{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4669 := &yyv4668[yyj4668] + yyv4669.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LoadBalancerIngress{}) - yyh1.ElemContainerState(yyj1) + if yyrt4668 { + for ; yyj4668 < yyl4668; yyj4668++ { + yyv4668 = append(yyv4668, Service{}) + yyh4668.ElemContainerState(yyj4668) if r.TryDecodeAsNil() { - yyv1[yyj1] = LoadBalancerIngress{} + yyv4668[yyj4668] = Service{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4670 := &yyv4668[yyj4668] + yyv4670.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4668 := 0 + for ; !r.CheckBreak(); yyj4668++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LoadBalancerIngress{}) // var yyz1 LoadBalancerIngress - yyc1 = true + if yyj4668 >= len(yyv4668) { + yyv4668 = append(yyv4668, Service{}) // var yyz4668 Service + yyc4668 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4668.ElemContainerState(yyj4668) + if yyj4668 < len(yyv4668) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LoadBalancerIngress{} + yyv4668[yyj4668] = Service{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4671 := &yyv4668[yyj4668] + yyv4671.CodecDecodeSelf(d) } } else { @@ -56426,118 +59216,115 @@ func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LoadBalancerIngress{} - yyc1 = true + if yyj4668 < len(yyv4668) { + yyv4668 = yyv4668[:yyj4668] + yyc4668 = true + } else if yyj4668 == 0 && yyv4668 == nil { + yyv4668 = []Service{} + yyc4668 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4668.End() + if yyc4668 { + *v = yyv4668 } } -func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4672 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4673 := &yyv4672 + yy4673.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ServicePort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4674 > 0 { + var yyrr4674, yyrl4674 int + var yyrt4674 bool + if yyl4674 > cap(yyv4674) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 80) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ServicePort, yyrl1) + yyv4674 = make([]ObjectReference, yyrl4674) } } else { - yyv1 = make([]ServicePort, yyrl1) + yyv4674 = make([]ObjectReference, yyrl4674) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4674 = true + yyrr4674 = len(yyv4674) + if yyrg4674 { + copy(yyv4674, yyv24674) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4674 != len(yyv4674) { + yyv4674 = yyv4674[:yyl4674] + yyc4674 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4674 := 0 + for ; yyj4674 < yyrr4674; yyj4674++ { + yyh4674.ElemContainerState(yyj4674) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServicePort{} + yyv4674[yyj4674] = ObjectReference{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4675 := &yyv4674[yyj4674] + yyv4675.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ServicePort{}) - yyh1.ElemContainerState(yyj1) + if yyrt4674 { + for ; yyj4674 < yyl4674; yyj4674++ { + yyv4674 = append(yyv4674, ObjectReference{}) + yyh4674.ElemContainerState(yyj4674) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServicePort{} + yyv4674[yyj4674] = ObjectReference{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4676 := &yyv4674[yyj4674] + yyv4676.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4674 := 0 + for ; !r.CheckBreak(); yyj4674++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ServicePort{}) // var yyz1 ServicePort - yyc1 = true + if yyj4674 >= len(yyv4674) { + yyv4674 = append(yyv4674, ObjectReference{}) // var yyz4674 ObjectReference + yyc4674 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4674.ElemContainerState(yyj4674) + if yyj4674 < len(yyv4674) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ServicePort{} + yyv4674[yyj4674] = ObjectReference{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4677 := &yyv4674[yyj4674] + yyv4677.CodecDecodeSelf(d) } } else { @@ -56545,118 +59332,115 @@ func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ServicePort{} - yyc1 = true + if yyj4674 < len(yyv4674) { + yyv4674 = yyv4674[:yyj4674] + yyc4674 = true + } else if yyj4674 == 0 && yyv4674 == nil { + yyv4674 = []ObjectReference{} + yyc4674 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4674.End() + if yyc4674 { + *v = yyv4674 } } -func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4678 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4679 := &yyv4678 + yy4679.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Service{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4680 > 0 { + var yyrr4680, yyrl4680 int + var yyrt4680 bool + if yyl4680 > cap(yyv4680) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 432) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Service, yyrl1) + yyv4680 = make([]ServiceAccount, yyrl4680) } } else { - yyv1 = make([]Service, yyrl1) + yyv4680 = make([]ServiceAccount, yyrl4680) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4680 = true + yyrr4680 = len(yyv4680) + if yyrg4680 { + copy(yyv4680, yyv24680) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4680 != len(yyv4680) { + yyv4680 = yyv4680[:yyl4680] + yyc4680 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4680 := 0 + for ; yyj4680 < yyrr4680; yyj4680++ { + yyh4680.ElemContainerState(yyj4680) if r.TryDecodeAsNil() { - yyv1[yyj1] = Service{} + yyv4680[yyj4680] = ServiceAccount{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4681 := &yyv4680[yyj4680] + yyv4681.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Service{}) - yyh1.ElemContainerState(yyj1) + if yyrt4680 { + for ; yyj4680 < yyl4680; yyj4680++ { + yyv4680 = append(yyv4680, ServiceAccount{}) + yyh4680.ElemContainerState(yyj4680) if r.TryDecodeAsNil() { - yyv1[yyj1] = Service{} + yyv4680[yyj4680] = ServiceAccount{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4682 := &yyv4680[yyj4680] + yyv4682.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4680 := 0 + for ; !r.CheckBreak(); yyj4680++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Service{}) // var yyz1 Service - yyc1 = true + if yyj4680 >= len(yyv4680) { + yyv4680 = append(yyv4680, ServiceAccount{}) // var yyz4680 ServiceAccount + yyc4680 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4680.ElemContainerState(yyj4680) + if yyj4680 < len(yyv4680) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Service{} + yyv4680[yyj4680] = ServiceAccount{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4683 := &yyv4680[yyj4680] + yyv4683.CodecDecodeSelf(d) } } else { @@ -56664,118 +59448,115 @@ func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Service{} - yyc1 = true + if yyj4680 < len(yyv4680) { + yyv4680 = yyv4680[:yyj4680] + yyc4680 = true + } else if yyj4680 == 0 && yyv4680 == nil { + yyv4680 = []ServiceAccount{} + yyc4680 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4680.End() + if yyc4680 { + *v = yyv4680 } } -func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4684 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4685 := &yyv4684 + yy4685.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ObjectReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4686 > 0 { + var yyrr4686, yyrl4686 int + var yyrt4686 bool + if yyl4686 > cap(yyv4686) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ObjectReference, yyrl1) + yyv4686 = make([]EndpointSubset, yyrl4686) } } else { - yyv1 = make([]ObjectReference, yyrl1) + yyv4686 = make([]EndpointSubset, yyrl4686) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4686 = true + yyrr4686 = len(yyv4686) + if yyrg4686 { + copy(yyv4686, yyv24686) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4686 != len(yyv4686) { + yyv4686 = yyv4686[:yyl4686] + yyc4686 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4686 := 0 + for ; yyj4686 < yyrr4686; yyj4686++ { + yyh4686.ElemContainerState(yyj4686) if r.TryDecodeAsNil() { - yyv1[yyj1] = ObjectReference{} + yyv4686[yyj4686] = EndpointSubset{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4687 := &yyv4686[yyj4686] + yyv4687.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ObjectReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt4686 { + for ; yyj4686 < yyl4686; yyj4686++ { + yyv4686 = append(yyv4686, EndpointSubset{}) + yyh4686.ElemContainerState(yyj4686) if r.TryDecodeAsNil() { - yyv1[yyj1] = ObjectReference{} + yyv4686[yyj4686] = EndpointSubset{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4688 := &yyv4686[yyj4686] + yyv4688.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4686 := 0 + for ; !r.CheckBreak(); yyj4686++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ObjectReference{}) // var yyz1 ObjectReference - yyc1 = true + if yyj4686 >= len(yyv4686) { + yyv4686 = append(yyv4686, EndpointSubset{}) // var yyz4686 EndpointSubset + yyc4686 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4686.ElemContainerState(yyj4686) + if yyj4686 < len(yyv4686) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ObjectReference{} + yyv4686[yyj4686] = EndpointSubset{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4689 := &yyv4686[yyj4686] + yyv4689.CodecDecodeSelf(d) } } else { @@ -56783,118 +59564,115 @@ func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ObjectReference{} - yyc1 = true + if yyj4686 < len(yyv4686) { + yyv4686 = yyv4686[:yyj4686] + yyc4686 = true + } else if yyj4686 == 0 && yyv4686 == nil { + yyv4686 = []EndpointSubset{} + yyc4686 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4686.End() + if yyc4686 { + *v = yyv4686 } } -func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4690 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4691 := &yyv4690 + yy4691.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ServiceAccount{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4692 > 0 { + var yyrr4692, yyrl4692 int + var yyrt4692 bool + if yyl4692 > cap(yyv4692) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 288) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ServiceAccount, yyrl1) + yyv4692 = make([]EndpointAddress, yyrl4692) } } else { - yyv1 = make([]ServiceAccount, yyrl1) + yyv4692 = make([]EndpointAddress, yyrl4692) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4692 = true + yyrr4692 = len(yyv4692) + if yyrg4692 { + copy(yyv4692, yyv24692) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4692 != len(yyv4692) { + yyv4692 = yyv4692[:yyl4692] + yyc4692 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4692 := 0 + for ; yyj4692 < yyrr4692; yyj4692++ { + yyh4692.ElemContainerState(yyj4692) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServiceAccount{} + yyv4692[yyj4692] = EndpointAddress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4693 := &yyv4692[yyj4692] + yyv4693.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ServiceAccount{}) - yyh1.ElemContainerState(yyj1) + if yyrt4692 { + for ; yyj4692 < yyl4692; yyj4692++ { + yyv4692 = append(yyv4692, EndpointAddress{}) + yyh4692.ElemContainerState(yyj4692) if r.TryDecodeAsNil() { - yyv1[yyj1] = ServiceAccount{} + yyv4692[yyj4692] = EndpointAddress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4694 := &yyv4692[yyj4692] + yyv4694.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4692 := 0 + for ; !r.CheckBreak(); yyj4692++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ServiceAccount{}) // var yyz1 ServiceAccount - yyc1 = true + if yyj4692 >= len(yyv4692) { + yyv4692 = append(yyv4692, EndpointAddress{}) // var yyz4692 EndpointAddress + yyc4692 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4692.ElemContainerState(yyj4692) + if yyj4692 < len(yyv4692) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ServiceAccount{} + yyv4692[yyj4692] = EndpointAddress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4695 := &yyv4692[yyj4692] + yyv4695.CodecDecodeSelf(d) } } else { @@ -56902,118 +59680,115 @@ func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ServiceAccount{} - yyc1 = true + if yyj4692 < len(yyv4692) { + yyv4692 = yyv4692[:yyj4692] + yyc4692 = true + } else if yyj4692 == 0 && yyv4692 == nil { + yyv4692 = []EndpointAddress{} + yyc4692 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4692.End() + if yyc4692 { + *v = yyv4692 } } -func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4696 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4697 := &yyv4696 + yy4697.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EndpointSubset{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4698 > 0 { + var yyrr4698, yyrl4698 int + var yyrt4698 bool + if yyl4698 > cap(yyv4698) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EndpointSubset, yyrl1) + yyv4698 = make([]EndpointPort, yyrl4698) } } else { - yyv1 = make([]EndpointSubset, yyrl1) + yyv4698 = make([]EndpointPort, yyrl4698) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4698 = true + yyrr4698 = len(yyv4698) + if yyrg4698 { + copy(yyv4698, yyv24698) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4698 != len(yyv4698) { + yyv4698 = yyv4698[:yyl4698] + yyc4698 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4698 := 0 + for ; yyj4698 < yyrr4698; yyj4698++ { + yyh4698.ElemContainerState(yyj4698) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointSubset{} + yyv4698[yyj4698] = EndpointPort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4699 := &yyv4698[yyj4698] + yyv4699.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EndpointSubset{}) - yyh1.ElemContainerState(yyj1) + if yyrt4698 { + for ; yyj4698 < yyl4698; yyj4698++ { + yyv4698 = append(yyv4698, EndpointPort{}) + yyh4698.ElemContainerState(yyj4698) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointSubset{} + yyv4698[yyj4698] = EndpointPort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4700 := &yyv4698[yyj4698] + yyv4700.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4698 := 0 + for ; !r.CheckBreak(); yyj4698++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EndpointSubset{}) // var yyz1 EndpointSubset - yyc1 = true + if yyj4698 >= len(yyv4698) { + yyv4698 = append(yyv4698, EndpointPort{}) // var yyz4698 EndpointPort + yyc4698 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4698.ElemContainerState(yyj4698) + if yyj4698 < len(yyv4698) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointSubset{} + yyv4698[yyj4698] = EndpointPort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4701 := &yyv4698[yyj4698] + yyv4701.CodecDecodeSelf(d) } } else { @@ -57021,118 +59796,115 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EndpointSubset{} - yyc1 = true + if yyj4698 < len(yyv4698) { + yyv4698 = yyv4698[:yyj4698] + yyc4698 = true + } else if yyj4698 == 0 && yyv4698 == nil { + yyv4698 = []EndpointPort{} + yyc4698 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4698.End() + if yyc4698 { + *v = yyv4698 } } -func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4702 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4703 := &yyv4702 + yy4703.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EndpointAddress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4704 > 0 { + var yyrr4704, yyrl4704 int + var yyrt4704 bool + if yyl4704 > cap(yyv4704) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EndpointAddress, yyrl1) + yyv4704 = make([]Endpoints, yyrl4704) } } else { - yyv1 = make([]EndpointAddress, yyrl1) + yyv4704 = make([]Endpoints, yyrl4704) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4704 = true + yyrr4704 = len(yyv4704) + if yyrg4704 { + copy(yyv4704, yyv24704) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4704 != len(yyv4704) { + yyv4704 = yyv4704[:yyl4704] + yyc4704 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4704 := 0 + for ; yyj4704 < yyrr4704; yyj4704++ { + yyh4704.ElemContainerState(yyj4704) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointAddress{} + yyv4704[yyj4704] = Endpoints{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4705 := &yyv4704[yyj4704] + yyv4705.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EndpointAddress{}) - yyh1.ElemContainerState(yyj1) + if yyrt4704 { + for ; yyj4704 < yyl4704; yyj4704++ { + yyv4704 = append(yyv4704, Endpoints{}) + yyh4704.ElemContainerState(yyj4704) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointAddress{} + yyv4704[yyj4704] = Endpoints{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4706 := &yyv4704[yyj4704] + yyv4706.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4704 := 0 + for ; !r.CheckBreak(); yyj4704++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EndpointAddress{}) // var yyz1 EndpointAddress - yyc1 = true + if yyj4704 >= len(yyv4704) { + yyv4704 = append(yyv4704, Endpoints{}) // var yyz4704 Endpoints + yyc4704 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4704.ElemContainerState(yyj4704) + if yyj4704 < len(yyv4704) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointAddress{} + yyv4704[yyj4704] = Endpoints{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4707 := &yyv4704[yyj4704] + yyv4707.CodecDecodeSelf(d) } } else { @@ -57140,118 +59912,115 @@ func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EndpointAddress{} - yyc1 = true + if yyj4704 < len(yyv4704) { + yyv4704 = yyv4704[:yyj4704] + yyc4704 = true + } else if yyj4704 == 0 && yyv4704 == nil { + yyv4704 = []Endpoints{} + yyc4704 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4704.End() + if yyc4704 { + *v = yyv4704 } } -func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4708 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4709 := &yyv4708 + yy4709.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []EndpointPort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4710 > 0 { + var yyrr4710, yyrl4710 int + var yyrt4710 bool + if yyl4710 > cap(yyv4710) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]EndpointPort, yyrl1) + yyv4710 = make([]NodeCondition, yyrl4710) } } else { - yyv1 = make([]EndpointPort, yyrl1) + yyv4710 = make([]NodeCondition, yyrl4710) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4710 = true + yyrr4710 = len(yyv4710) + if yyrg4710 { + copy(yyv4710, yyv24710) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4710 != len(yyv4710) { + yyv4710 = yyv4710[:yyl4710] + yyc4710 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4710 := 0 + for ; yyj4710 < yyrr4710; yyj4710++ { + yyh4710.ElemContainerState(yyj4710) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointPort{} + yyv4710[yyj4710] = NodeCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4711 := &yyv4710[yyj4710] + yyv4711.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, EndpointPort{}) - yyh1.ElemContainerState(yyj1) + if yyrt4710 { + for ; yyj4710 < yyl4710; yyj4710++ { + yyv4710 = append(yyv4710, NodeCondition{}) + yyh4710.ElemContainerState(yyj4710) if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointPort{} + yyv4710[yyj4710] = NodeCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4712 := &yyv4710[yyj4710] + yyv4712.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4710 := 0 + for ; !r.CheckBreak(); yyj4710++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, EndpointPort{}) // var yyz1 EndpointPort - yyc1 = true + if yyj4710 >= len(yyv4710) { + yyv4710 = append(yyv4710, NodeCondition{}) // var yyz4710 NodeCondition + yyc4710 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4710.ElemContainerState(yyj4710) + if yyj4710 < len(yyv4710) { if r.TryDecodeAsNil() { - yyv1[yyj1] = EndpointPort{} + yyv4710[yyj4710] = NodeCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4713 := &yyv4710[yyj4710] + yyv4713.CodecDecodeSelf(d) } } else { @@ -57259,118 +60028,115 @@ func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []EndpointPort{} - yyc1 = true + if yyj4710 < len(yyv4710) { + yyv4710 = yyv4710[:yyj4710] + yyc4710 = true + } else if yyj4710 == 0 && yyv4710 == nil { + yyv4710 = []NodeCondition{} + yyc4710 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4710.End() + if yyc4710 { + *v = yyv4710 } } -func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4714 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4715 := &yyv4714 + yy4715.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Endpoints{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4716 > 0 { + var yyrr4716, yyrl4716 int + var yyrt4716 bool + if yyl4716 > cap(yyv4716) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Endpoints, yyrl1) + yyv4716 = make([]NodeAddress, yyrl4716) } } else { - yyv1 = make([]Endpoints, yyrl1) + yyv4716 = make([]NodeAddress, yyrl4716) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4716 = true + yyrr4716 = len(yyv4716) + if yyrg4716 { + copy(yyv4716, yyv24716) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4716 != len(yyv4716) { + yyv4716 = yyv4716[:yyl4716] + yyc4716 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4716 := 0 + for ; yyj4716 < yyrr4716; yyj4716++ { + yyh4716.ElemContainerState(yyj4716) if r.TryDecodeAsNil() { - yyv1[yyj1] = Endpoints{} + yyv4716[yyj4716] = NodeAddress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4717 := &yyv4716[yyj4716] + yyv4717.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Endpoints{}) - yyh1.ElemContainerState(yyj1) + if yyrt4716 { + for ; yyj4716 < yyl4716; yyj4716++ { + yyv4716 = append(yyv4716, NodeAddress{}) + yyh4716.ElemContainerState(yyj4716) if r.TryDecodeAsNil() { - yyv1[yyj1] = Endpoints{} + yyv4716[yyj4716] = NodeAddress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4718 := &yyv4716[yyj4716] + yyv4718.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4716 := 0 + for ; !r.CheckBreak(); yyj4716++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Endpoints{}) // var yyz1 Endpoints - yyc1 = true + if yyj4716 >= len(yyv4716) { + yyv4716 = append(yyv4716, NodeAddress{}) // var yyz4716 NodeAddress + yyc4716 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4716.ElemContainerState(yyj4716) + if yyj4716 < len(yyv4716) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Endpoints{} + yyv4716[yyj4716] = NodeAddress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4719 := &yyv4716[yyj4716] + yyv4719.CodecDecodeSelf(d) } } else { @@ -57378,118 +60144,115 @@ func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Endpoints{} - yyc1 = true + if yyj4716 < len(yyv4716) { + yyv4716 = yyv4716[:yyj4716] + yyc4716 = true + } else if yyj4716 == 0 && yyv4716 == nil { + yyv4716 = []NodeAddress{} + yyc4716 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4716.End() + if yyc4716 { + *v = yyv4716 } } -func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4720 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4721 := &yyv4720 + yy4721.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4722 > 0 { + var yyrr4722, yyrl4722 int + var yyrt4722 bool + if yyl4722 > cap(yyv4722) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NodeCondition, yyrl1) + yyv4722 = make([]ContainerImage, yyrl4722) } } else { - yyv1 = make([]NodeCondition, yyrl1) + yyv4722 = make([]ContainerImage, yyrl4722) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4722 = true + yyrr4722 = len(yyv4722) + if yyrg4722 { + copy(yyv4722, yyv24722) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4722 != len(yyv4722) { + yyv4722 = yyv4722[:yyl4722] + yyc4722 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4722 := 0 + for ; yyj4722 < yyrr4722; yyj4722++ { + yyh4722.ElemContainerState(yyj4722) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeCondition{} + yyv4722[yyj4722] = ContainerImage{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4723 := &yyv4722[yyj4722] + yyv4723.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt4722 { + for ; yyj4722 < yyl4722; yyj4722++ { + yyv4722 = append(yyv4722, ContainerImage{}) + yyh4722.ElemContainerState(yyj4722) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeCondition{} + yyv4722[yyj4722] = ContainerImage{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4724 := &yyv4722[yyj4722] + yyv4724.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4722 := 0 + for ; !r.CheckBreak(); yyj4722++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeCondition{}) // var yyz1 NodeCondition - yyc1 = true + if yyj4722 >= len(yyv4722) { + yyv4722 = append(yyv4722, ContainerImage{}) // var yyz4722 ContainerImage + yyc4722 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4722.ElemContainerState(yyj4722) + if yyj4722 < len(yyv4722) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeCondition{} + yyv4722[yyj4722] = ContainerImage{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4725 := &yyv4722[yyj4722] + yyv4725.CodecDecodeSelf(d) } } else { @@ -57497,118 +60260,106 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeCondition{} - yyc1 = true + if yyj4722 < len(yyv4722) { + yyv4722 = yyv4722[:yyj4722] + yyc4722 = true + } else if yyj4722 == 0 && yyv4722 == nil { + yyv4722 = []ContainerImage{} + yyc4722 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4722.End() + if yyc4722 { + *v = yyv4722 } } -func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4726 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yyv4726.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NodeAddress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4727 > 0 { + var yyrr4727, yyrl4727 int + var yyrt4727 bool + if yyl4727 > cap(yyv4727) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4727, yyrt4727 = z.DecInferLen(yyl4727, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4727 { + if yyrl4727 <= cap(yyv4727) { + yyv4727 = yyv4727[:yyrl4727] } else { - yyv1 = make([]NodeAddress, yyrl1) + yyv4727 = make([]UniqueVolumeName, yyrl4727) } } else { - yyv1 = make([]NodeAddress, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyv4727 = make([]UniqueVolumeName, yyrl4727) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4727 = true + yyrr4727 = len(yyv4727) + } else if yyl4727 != len(yyv4727) { + yyv4727 = yyv4727[:yyl4727] + yyc4727 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4727 := 0 + for ; yyj4727 < yyrr4727; yyj4727++ { + yyh4727.ElemContainerState(yyj4727) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeAddress{} + yyv4727[yyj4727] = "" } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NodeAddress{}) - yyh1.ElemContainerState(yyj1) + if yyrt4727 { + for ; yyj4727 < yyl4727; yyj4727++ { + yyv4727 = append(yyv4727, "") + yyh4727.ElemContainerState(yyj4727) if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeAddress{} + yyv4727[yyj4727] = "" } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4727 := 0 + for ; !r.CheckBreak(); yyj4727++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NodeAddress{}) // var yyz1 NodeAddress - yyc1 = true + if yyj4727 >= len(yyv4727) { + yyv4727 = append(yyv4727, "") // var yyz4727 UniqueVolumeName + yyc4727 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4727.ElemContainerState(yyj4727) + if yyj4727 < len(yyv4727) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NodeAddress{} + yyv4727[yyj4727] = "" } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) } } else { @@ -57616,228 +60367,115 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NodeAddress{} - yyc1 = true + if yyj4727 < len(yyv4727) { + yyv4727 = yyv4727[:yyj4727] + yyc4727 = true + } else if yyj4727 == 0 && yyv4727 == nil { + yyv4727 = []UniqueVolumeName{} + yyc4727 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4727.End() + if yyc4727 { + *v = yyv4727 } } -func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4731 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4732 := &yyv4731 + yy4732.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ContainerImage{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4733 > 0 { + var yyrr4733, yyrl4733 int + var yyrt4733 bool + if yyl4733 > cap(yyv4733) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ContainerImage, yyrl1) + yyv4733 = make([]AttachedVolume, yyrl4733) } } else { - yyv1 = make([]ContainerImage, yyrl1) + yyv4733 = make([]AttachedVolume, yyrl4733) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerImage{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ContainerImage{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerImage{} - } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ContainerImage{}) // var yyz1 ContainerImage - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = ContainerImage{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ContainerImage{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -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 _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.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 - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []UniqueVolumeName{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]UniqueVolumeName, yyrl1) - } - } else { - yyv1 = make([]UniqueVolumeName, yyrl1) + yyc4733 = true + yyrr4733 = len(yyv4733) + if yyrg4733 { + copy(yyv4733, yyv24733) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4733 != len(yyv4733) { + yyv4733 = yyv4733[:yyl4733] + yyc4733 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4733 := 0 + for ; yyj4733 < yyrr4733; yyj4733++ { + yyh4733.ElemContainerState(yyj4733) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4733[yyj4733] = AttachedVolume{} } else { - yyv1[yyj1] = UniqueVolumeName(r.DecodeString()) + yyv4734 := &yyv4733[yyj4733] + yyv4734.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4733 { + for ; yyj4733 < yyl4733; yyj4733++ { + yyv4733 = append(yyv4733, AttachedVolume{}) + yyh4733.ElemContainerState(yyj4733) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4733[yyj4733] = AttachedVolume{} } else { - yyv1[yyj1] = UniqueVolumeName(r.DecodeString()) + yyv4735 := &yyv4733[yyj4733] + yyv4735.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4733 := 0 + for ; !r.CheckBreak(); yyj4733++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 UniqueVolumeName - yyc1 = true + if yyj4733 >= len(yyv4733) { + yyv4733 = append(yyv4733, AttachedVolume{}) // var yyz4733 AttachedVolume + yyc4733 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4733.ElemContainerState(yyj4733) + if yyj4733 < len(yyv4733) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4733[yyj4733] = AttachedVolume{} } else { - yyv1[yyj1] = UniqueVolumeName(r.DecodeString()) + yyv4736 := &yyv4733[yyj4733] + yyv4736.CodecDecodeSelf(d) } } else { @@ -57845,118 +60483,115 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []UniqueVolumeName{} - yyc1 = true + if yyj4733 < len(yyv4733) { + yyv4733 = yyv4733[:yyj4733] + yyc4733 = true + } else if yyj4733 == 0 && yyv4733 == nil { + yyv4733 = []AttachedVolume{} + yyc4733 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4733.End() + if yyc4733 { + *v = yyv4733 } } -func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { +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 _, yyv1 := range v { + for _, yyv4737 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4738 := &yyv4737 + yy4738.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []AttachedVolume{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4739 > 0 { + var yyrr4739, yyrl4739 int + var yyrt4739 bool + if yyl4739 > cap(yyv4739) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]AttachedVolume, yyrl1) + yyv4739 = make([]PreferAvoidPodsEntry, yyrl4739) } } else { - yyv1 = make([]AttachedVolume, yyrl1) + yyv4739 = make([]PreferAvoidPodsEntry, yyrl4739) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4739 = true + yyrr4739 = len(yyv4739) + if yyrg4739 { + copy(yyv4739, yyv24739) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4739 != len(yyv4739) { + yyv4739 = yyv4739[:yyl4739] + yyc4739 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4739 := 0 + for ; yyj4739 < yyrr4739; yyj4739++ { + yyh4739.ElemContainerState(yyj4739) if r.TryDecodeAsNil() { - yyv1[yyj1] = AttachedVolume{} + yyv4739[yyj4739] = PreferAvoidPodsEntry{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4740 := &yyv4739[yyj4739] + yyv4740.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, AttachedVolume{}) - yyh1.ElemContainerState(yyj1) + if yyrt4739 { + for ; yyj4739 < yyl4739; yyj4739++ { + yyv4739 = append(yyv4739, PreferAvoidPodsEntry{}) + yyh4739.ElemContainerState(yyj4739) if r.TryDecodeAsNil() { - yyv1[yyj1] = AttachedVolume{} + yyv4739[yyj4739] = PreferAvoidPodsEntry{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4741 := &yyv4739[yyj4739] + yyv4741.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4739 := 0 + for ; !r.CheckBreak(); yyj4739++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, AttachedVolume{}) // var yyz1 AttachedVolume - yyc1 = true + if yyj4739 >= len(yyv4739) { + yyv4739 = append(yyv4739, PreferAvoidPodsEntry{}) // var yyz4739 PreferAvoidPodsEntry + yyc4739 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4739.ElemContainerState(yyj4739) + if yyj4739 < len(yyv4739) { if r.TryDecodeAsNil() { - yyv1[yyj1] = AttachedVolume{} + yyv4739[yyj4739] = PreferAvoidPodsEntry{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4742 := &yyv4739[yyj4739] + yyv4742.CodecDecodeSelf(d) } } else { @@ -57964,17 +60599,17 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []AttachedVolume{} - yyc1 = true + if yyj4739 < len(yyv4739) { + yyv4739 = yyv4739[:yyj4739] + yyc4739 = true + } else if yyj4739 == 0 && yyv4739 == nil { + yyv4739 = []PreferAvoidPodsEntry{} + yyc4739 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4739.End() + if yyc4739 { + *v = yyv4739 } } @@ -57983,19 +60618,19 @@ func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { + for yyk4743, yyv4743 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk1.CodecEncodeSelf(e) + yyk4743.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3 := &yyv1 - yym4 := z.EncBinary() - _ = yym4 + yy4744 := &yyv4743 + yym4745 := z.EncBinary() + _ = yym4745 if false { - } else if z.HasExtensions() && z.EncExt(yy3) { - } else if !yym4 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3) + } else if z.HasExtensions() && z.EncExt(yy4744) { + } else if !yym4745 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4744) } else { - z.EncFallback(yy3) + z.EncFallback(yy4744) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -58006,86 +60641,86 @@ func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 72) - yyv1 = make(map[ResourceName]pkg3_resource.Quantity, yyrl1) - *v = yyv1 + 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 yymk1 ResourceName - var yymv1 pkg3_resource.Quantity - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true + var yymk4746 ResourceName + var yymv4746 pkg3_resource.Quantity + var yymg4746 bool + if yybh4746.MapValueReset { + yymg4746 = true } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + if yyl4746 > 0 { + for yyj4746 := 0; yyj4746 < yyl4746; yyj4746++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4746 = "" } else { - yymk1 = ResourceName(r.DecodeString()) + yymk4746 = ResourceName(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4746 { + yymv4746 = yyv4746[yymk4746] } else { - yymv1 = pkg3_resource.Quantity{} + yymv4746 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = pkg3_resource.Quantity{} + yymv4746 = pkg3_resource.Quantity{} } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 + yyv4748 := &yymv4746 + yym4749 := z.DecBinary() + _ = yym4749 if false { - } else if z.HasExtensions() && z.DecExt(yyv3) { - } else if !yym4 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3) + } else if z.HasExtensions() && z.DecExt(yyv4748) { + } else if !yym4749 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4748) } else { - z.DecFallback(yyv3, false) + z.DecFallback(yyv4748, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4746 != nil { + yyv4746[yymk4746] = yymv4746 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl4746 < 0 { + for yyj4746 := 0; !r.CheckBreak(); yyj4746++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4746 = "" } else { - yymk1 = ResourceName(r.DecodeString()) + yymk4746 = ResourceName(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4746 { + yymv4746 = yyv4746[yymk4746] } else { - yymv1 = pkg3_resource.Quantity{} + yymv4746 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = pkg3_resource.Quantity{} + yymv4746 = pkg3_resource.Quantity{} } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 + yyv4751 := &yymv4746 + yym4752 := z.DecBinary() + _ = yym4752 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv4751) { + } else if !yym4752 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4751) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv4751, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4746 != nil { + yyv4746[yymk4746] = yymv4746 } } } // else len==0: TODO: Should we clear map entries? @@ -58097,10 +60732,10 @@ func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4753 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4754 := &yyv4753 + yy4754.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58110,86 +60745,83 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Node{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4755 > 0 { + var yyrr4755, yyrl4755 int + var yyrt4755 bool + if yyl4755 > cap(yyv4755) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 616) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Node, yyrl1) + yyv4755 = make([]Node, yyrl4755) } } else { - yyv1 = make([]Node, yyrl1) + yyv4755 = make([]Node, yyrl4755) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4755 = true + yyrr4755 = len(yyv4755) + if yyrg4755 { + copy(yyv4755, yyv24755) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4755 != len(yyv4755) { + yyv4755 = yyv4755[:yyl4755] + yyc4755 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4755 := 0 + for ; yyj4755 < yyrr4755; yyj4755++ { + yyh4755.ElemContainerState(yyj4755) if r.TryDecodeAsNil() { - yyv1[yyj1] = Node{} + yyv4755[yyj4755] = Node{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4756 := &yyv4755[yyj4755] + yyv4756.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Node{}) - yyh1.ElemContainerState(yyj1) + if yyrt4755 { + for ; yyj4755 < yyl4755; yyj4755++ { + yyv4755 = append(yyv4755, Node{}) + yyh4755.ElemContainerState(yyj4755) if r.TryDecodeAsNil() { - yyv1[yyj1] = Node{} + yyv4755[yyj4755] = Node{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4757 := &yyv4755[yyj4755] + yyv4757.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4755 := 0 + for ; !r.CheckBreak(); yyj4755++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Node{}) // var yyz1 Node - yyc1 = true + if yyj4755 >= len(yyv4755) { + yyv4755 = append(yyv4755, Node{}) // var yyz4755 Node + yyc4755 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4755.ElemContainerState(yyj4755) + if yyj4755 < len(yyv4755) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Node{} + yyv4755[yyj4755] = Node{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4758 := &yyv4755[yyj4755] + yyv4758.CodecDecodeSelf(d) } } else { @@ -58197,17 +60829,17 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Node{} - yyc1 = true + if yyj4755 < len(yyv4755) { + yyv4755 = yyv4755[:yyj4755] + yyc4755 = true + } else if yyj4755 == 0 && yyv4755 == nil { + yyv4755 = []Node{} + yyc4755 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4755.End() + if yyc4755 { + *v = yyv4755 } } @@ -58216,9 +60848,9 @@ func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4759 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4759.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58228,78 +60860,75 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []FinalizerName{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4760 > 0 { + var yyrr4760, yyrl4760 int + var yyrt4760 bool + if yyl4760 > cap(yyv4760) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4760, yyrt4760 = z.DecInferLen(yyl4760, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4760 { + if yyrl4760 <= cap(yyv4760) { + yyv4760 = yyv4760[:yyrl4760] } else { - yyv1 = make([]FinalizerName, yyrl1) + yyv4760 = make([]FinalizerName, yyrl4760) } } else { - yyv1 = make([]FinalizerName, yyrl1) + yyv4760 = make([]FinalizerName, yyrl4760) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4760 = true + yyrr4760 = len(yyv4760) + } else if yyl4760 != len(yyv4760) { + yyv4760 = yyv4760[:yyl4760] + yyc4760 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4760 := 0 + for ; yyj4760 < yyrr4760; yyj4760++ { + yyh4760.ElemContainerState(yyj4760) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4760[yyj4760] = "" } else { - yyv1[yyj1] = FinalizerName(r.DecodeString()) + yyv4760[yyj4760] = FinalizerName(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4760 { + for ; yyj4760 < yyl4760; yyj4760++ { + yyv4760 = append(yyv4760, "") + yyh4760.ElemContainerState(yyj4760) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4760[yyj4760] = "" } else { - yyv1[yyj1] = FinalizerName(r.DecodeString()) + yyv4760[yyj4760] = FinalizerName(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4760 := 0 + for ; !r.CheckBreak(); yyj4760++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 FinalizerName - yyc1 = true + if yyj4760 >= len(yyv4760) { + yyv4760 = append(yyv4760, "") // var yyz4760 FinalizerName + yyc4760 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4760.ElemContainerState(yyj4760) + if yyj4760 < len(yyv4760) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4760[yyj4760] = "" } else { - yyv1[yyj1] = FinalizerName(r.DecodeString()) + yyv4760[yyj4760] = FinalizerName(r.DecodeString()) } } else { @@ -58307,17 +60936,17 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []FinalizerName{} - yyc1 = true + if yyj4760 < len(yyv4760) { + yyv4760 = yyv4760[:yyj4760] + yyc4760 = true + } else if yyj4760 == 0 && yyv4760 == nil { + yyv4760 = []FinalizerName{} + yyc4760 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4760.End() + if yyc4760 { + *v = yyv4760 } } @@ -58326,10 +60955,10 @@ func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4764 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4765 := &yyv4764 + yy4765.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58339,86 +60968,83 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Namespace{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4766 > 0 { + var yyrr4766, yyrl4766 int + var yyrt4766 bool + if yyl4766 > cap(yyv4766) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Namespace, yyrl1) + yyv4766 = make([]Namespace, yyrl4766) } } else { - yyv1 = make([]Namespace, yyrl1) + yyv4766 = make([]Namespace, yyrl4766) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4766 = true + yyrr4766 = len(yyv4766) + if yyrg4766 { + copy(yyv4766, yyv24766) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4766 != len(yyv4766) { + yyv4766 = yyv4766[:yyl4766] + yyc4766 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4766 := 0 + for ; yyj4766 < yyrr4766; yyj4766++ { + yyh4766.ElemContainerState(yyj4766) if r.TryDecodeAsNil() { - yyv1[yyj1] = Namespace{} + yyv4766[yyj4766] = Namespace{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4767 := &yyv4766[yyj4766] + yyv4767.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Namespace{}) - yyh1.ElemContainerState(yyj1) + if yyrt4766 { + for ; yyj4766 < yyl4766; yyj4766++ { + yyv4766 = append(yyv4766, Namespace{}) + yyh4766.ElemContainerState(yyj4766) if r.TryDecodeAsNil() { - yyv1[yyj1] = Namespace{} + yyv4766[yyj4766] = Namespace{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4768 := &yyv4766[yyj4766] + yyv4768.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4766 := 0 + for ; !r.CheckBreak(); yyj4766++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Namespace{}) // var yyz1 Namespace - yyc1 = true + if yyj4766 >= len(yyv4766) { + yyv4766 = append(yyv4766, Namespace{}) // var yyz4766 Namespace + yyc4766 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4766.ElemContainerState(yyj4766) + if yyj4766 < len(yyv4766) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Namespace{} + yyv4766[yyj4766] = Namespace{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4769 := &yyv4766[yyj4766] + yyv4769.CodecDecodeSelf(d) } } else { @@ -58426,17 +61052,17 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Namespace{} - yyc1 = true + if yyj4766 < len(yyv4766) { + yyv4766 = yyv4766[:yyj4766] + yyc4766 = true + } else if yyj4766 == 0 && yyv4766 == nil { + yyv4766 = []Namespace{} + yyc4766 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4766.End() + if yyc4766 { + *v = yyv4766 } } @@ -58445,10 +61071,10 @@ func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4770 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4771 := &yyv4770 + yy4771.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58458,86 +61084,83 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Event{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4772 > 0 { + var yyrr4772, yyrl4772 int + var yyrt4772 bool + if yyl4772 > cap(yyv4772) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 488) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Event, yyrl1) + yyv4772 = make([]Event, yyrl4772) } } else { - yyv1 = make([]Event, yyrl1) + yyv4772 = make([]Event, yyrl4772) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4772 = true + yyrr4772 = len(yyv4772) + if yyrg4772 { + copy(yyv4772, yyv24772) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4772 != len(yyv4772) { + yyv4772 = yyv4772[:yyl4772] + yyc4772 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4772 := 0 + for ; yyj4772 < yyrr4772; yyj4772++ { + yyh4772.ElemContainerState(yyj4772) if r.TryDecodeAsNil() { - yyv1[yyj1] = Event{} + yyv4772[yyj4772] = Event{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4773 := &yyv4772[yyj4772] + yyv4773.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Event{}) - yyh1.ElemContainerState(yyj1) + if yyrt4772 { + for ; yyj4772 < yyl4772; yyj4772++ { + yyv4772 = append(yyv4772, Event{}) + yyh4772.ElemContainerState(yyj4772) if r.TryDecodeAsNil() { - yyv1[yyj1] = Event{} + yyv4772[yyj4772] = Event{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4774 := &yyv4772[yyj4772] + yyv4774.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4772 := 0 + for ; !r.CheckBreak(); yyj4772++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Event{}) // var yyz1 Event - yyc1 = true + if yyj4772 >= len(yyv4772) { + yyv4772 = append(yyv4772, Event{}) // var yyz4772 Event + yyc4772 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4772.ElemContainerState(yyj4772) + if yyj4772 < len(yyv4772) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Event{} + yyv4772[yyj4772] = Event{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4775 := &yyv4772[yyj4772] + yyv4775.CodecDecodeSelf(d) } } else { @@ -58545,17 +61168,17 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Event{} - yyc1 = true + if yyj4772 < len(yyv4772) { + yyv4772 = yyv4772[:yyj4772] + yyc4772 = true + } else if yyj4772 == 0 && yyv4772 == nil { + yyv4772 = []Event{} + yyc4772 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4772.End() + if yyc4772 { + *v = yyv4772 } } @@ -58564,17 +61187,17 @@ func (x codecSelfer1234) encSliceruntime_RawExtension(v []pkg5_runtime.RawExtens z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4776 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yym3 := z.EncBinary() - _ = yym3 + yy4777 := &yyv4776 + yym4778 := z.EncBinary() + _ = yym4778 if false { - } else if z.HasExtensions() && z.EncExt(yy2) { - } else if !yym3 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2) + } else if z.HasExtensions() && z.EncExt(yy4777) { + } else if !yym4778 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4777) } else { - z.EncFallback(yy2) + z.EncFallback(yy4777) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -58585,81 +61208,78 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg5_runtime.RawExtension{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4779 > 0 { + var yyrr4779, yyrl4779 int + var yyrt4779 bool + if yyl4779 > cap(yyv4779) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]pkg5_runtime.RawExtension, yyrl1) + yyv4779 = make([]pkg5_runtime.RawExtension, yyrl4779) } } else { - yyv1 = make([]pkg5_runtime.RawExtension, yyrl1) + yyv4779 = make([]pkg5_runtime.RawExtension, yyrl4779) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4779 = true + yyrr4779 = len(yyv4779) + if yyrg4779 { + copy(yyv4779, yyv24779) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4779 != len(yyv4779) { + yyv4779 = yyv4779[:yyl4779] + yyc4779 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4779 := 0 + for ; yyj4779 < yyrr4779; yyj4779++ { + yyh4779.ElemContainerState(yyj4779) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg5_runtime.RawExtension{} + yyv4779[yyj4779] = pkg5_runtime.RawExtension{} } else { - yyv2 := &yyv1[yyj1] - yym3 := z.DecBinary() - _ = yym3 + yyv4780 := &yyv4779[yyj4779] + yym4781 := z.DecBinary() + _ = yym4781 if false { - } else if z.HasExtensions() && z.DecExt(yyv2) { - } else if !yym3 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2) + } else if z.HasExtensions() && z.DecExt(yyv4780) { + } else if !yym4781 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4780) } else { - z.DecFallback(yyv2, false) + z.DecFallback(yyv4780, false) } } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, pkg5_runtime.RawExtension{}) - yyh1.ElemContainerState(yyj1) + if yyrt4779 { + for ; yyj4779 < yyl4779; yyj4779++ { + yyv4779 = append(yyv4779, pkg5_runtime.RawExtension{}) + yyh4779.ElemContainerState(yyj4779) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg5_runtime.RawExtension{} + yyv4779[yyj4779] = pkg5_runtime.RawExtension{} } else { - yyv4 := &yyv1[yyj1] - yym5 := z.DecBinary() - _ = yym5 + yyv4782 := &yyv4779[yyj4779] + yym4783 := z.DecBinary() + _ = yym4783 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv4782) { + } else if !yym4783 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4782) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv4782, false) } } @@ -58667,27 +61287,27 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4779 := 0 + for ; !r.CheckBreak(); yyj4779++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, pkg5_runtime.RawExtension{}) // var yyz1 pkg5_runtime.RawExtension - yyc1 = true + if yyj4779 >= len(yyv4779) { + yyv4779 = append(yyv4779, pkg5_runtime.RawExtension{}) // var yyz4779 pkg5_runtime.RawExtension + yyc4779 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4779.ElemContainerState(yyj4779) + if yyj4779 < len(yyv4779) { if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg5_runtime.RawExtension{} + yyv4779[yyj4779] = pkg5_runtime.RawExtension{} } else { - yyv6 := &yyv1[yyj1] - yym7 := z.DecBinary() - _ = yym7 + yyv4784 := &yyv4779[yyj4779] + yym4785 := z.DecBinary() + _ = yym4785 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv4784) { + } else if !yym4785 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4784) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv4784, false) } } @@ -58696,17 +61316,17 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg5_runtime.RawExtension{} - yyc1 = true + if yyj4779 < len(yyv4779) { + yyv4779 = yyv4779[:yyj4779] + yyc4779 = true + } else if yyj4779 == 0 && yyv4779 == nil { + yyv4779 = []pkg5_runtime.RawExtension{} + yyc4779 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4779.End() + if yyc4779 { + *v = yyv4779 } } @@ -58715,10 +61335,10 @@ func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4786 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4787 := &yyv4786 + yy4787.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58728,86 +61348,83 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LimitRangeItem{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4788 > 0 { + var yyrr4788, yyrl4788 int + var yyrt4788 bool + if yyl4788 > cap(yyv4788) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LimitRangeItem, yyrl1) + yyv4788 = make([]LimitRangeItem, yyrl4788) } } else { - yyv1 = make([]LimitRangeItem, yyrl1) + yyv4788 = make([]LimitRangeItem, yyrl4788) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4788 = true + yyrr4788 = len(yyv4788) + if yyrg4788 { + copy(yyv4788, yyv24788) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4788 != len(yyv4788) { + yyv4788 = yyv4788[:yyl4788] + yyc4788 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4788 := 0 + for ; yyj4788 < yyrr4788; yyj4788++ { + yyh4788.ElemContainerState(yyj4788) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRangeItem{} + yyv4788[yyj4788] = LimitRangeItem{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4789 := &yyv4788[yyj4788] + yyv4789.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LimitRangeItem{}) - yyh1.ElemContainerState(yyj1) + if yyrt4788 { + for ; yyj4788 < yyl4788; yyj4788++ { + yyv4788 = append(yyv4788, LimitRangeItem{}) + yyh4788.ElemContainerState(yyj4788) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRangeItem{} + yyv4788[yyj4788] = LimitRangeItem{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4790 := &yyv4788[yyj4788] + yyv4790.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4788 := 0 + for ; !r.CheckBreak(); yyj4788++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LimitRangeItem{}) // var yyz1 LimitRangeItem - yyc1 = true + if yyj4788 >= len(yyv4788) { + yyv4788 = append(yyv4788, LimitRangeItem{}) // var yyz4788 LimitRangeItem + yyc4788 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4788.ElemContainerState(yyj4788) + if yyj4788 < len(yyv4788) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRangeItem{} + yyv4788[yyj4788] = LimitRangeItem{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4791 := &yyv4788[yyj4788] + yyv4791.CodecDecodeSelf(d) } } else { @@ -58815,17 +61432,17 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LimitRangeItem{} - yyc1 = true + if yyj4788 < len(yyv4788) { + yyv4788 = yyv4788[:yyj4788] + yyc4788 = true + } else if yyj4788 == 0 && yyv4788 == nil { + yyv4788 = []LimitRangeItem{} + yyc4788 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4788.End() + if yyc4788 { + *v = yyv4788 } } @@ -58834,10 +61451,10 @@ func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4792 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4793 := &yyv4792 + yy4793.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58847,86 +61464,83 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LimitRange{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4794 > 0 { + var yyrr4794, yyrl4794 int + var yyrt4794 bool + if yyl4794 > cap(yyv4794) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LimitRange, yyrl1) + yyv4794 = make([]LimitRange, yyrl4794) } } else { - yyv1 = make([]LimitRange, yyrl1) + yyv4794 = make([]LimitRange, yyrl4794) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4794 = true + yyrr4794 = len(yyv4794) + if yyrg4794 { + copy(yyv4794, yyv24794) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4794 != len(yyv4794) { + yyv4794 = yyv4794[:yyl4794] + yyc4794 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4794 := 0 + for ; yyj4794 < yyrr4794; yyj4794++ { + yyh4794.ElemContainerState(yyj4794) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRange{} + yyv4794[yyj4794] = LimitRange{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4795 := &yyv4794[yyj4794] + yyv4795.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LimitRange{}) - yyh1.ElemContainerState(yyj1) + if yyrt4794 { + for ; yyj4794 < yyl4794; yyj4794++ { + yyv4794 = append(yyv4794, LimitRange{}) + yyh4794.ElemContainerState(yyj4794) if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRange{} + yyv4794[yyj4794] = LimitRange{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4796 := &yyv4794[yyj4794] + yyv4796.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4794 := 0 + for ; !r.CheckBreak(); yyj4794++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LimitRange{}) // var yyz1 LimitRange - yyc1 = true + if yyj4794 >= len(yyv4794) { + yyv4794 = append(yyv4794, LimitRange{}) // var yyz4794 LimitRange + yyc4794 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4794.ElemContainerState(yyj4794) + if yyj4794 < len(yyv4794) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LimitRange{} + yyv4794[yyj4794] = LimitRange{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4797 := &yyv4794[yyj4794] + yyv4797.CodecDecodeSelf(d) } } else { @@ -58934,17 +61548,17 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LimitRange{} - yyc1 = true + if yyj4794 < len(yyv4794) { + yyv4794 = yyv4794[:yyj4794] + yyc4794 = true + } else if yyj4794 == 0 && yyv4794 == nil { + yyv4794 = []LimitRange{} + yyc4794 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4794.End() + if yyc4794 { + *v = yyv4794 } } @@ -58953,9 +61567,9 @@ func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4798 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv4798.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58965,78 +61579,75 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ResourceQuotaScope{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4799 > 0 { + var yyrr4799, yyrl4799 int + var yyrt4799 bool + if yyl4799 > cap(yyv4799) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl4799, yyrt4799 = z.DecInferLen(yyl4799, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4799 { + if yyrl4799 <= cap(yyv4799) { + yyv4799 = yyv4799[:yyrl4799] } else { - yyv1 = make([]ResourceQuotaScope, yyrl1) + yyv4799 = make([]ResourceQuotaScope, yyrl4799) } } else { - yyv1 = make([]ResourceQuotaScope, yyrl1) + yyv4799 = make([]ResourceQuotaScope, yyrl4799) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc4799 = true + yyrr4799 = len(yyv4799) + } else if yyl4799 != len(yyv4799) { + yyv4799 = yyv4799[:yyl4799] + yyc4799 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4799 := 0 + for ; yyj4799 < yyrr4799; yyj4799++ { + yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4799[yyj4799] = "" } else { - yyv1[yyj1] = ResourceQuotaScope(r.DecodeString()) + yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt4799 { + for ; yyj4799 < yyl4799; yyj4799++ { + yyv4799 = append(yyv4799, "") + yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4799[yyj4799] = "" } else { - yyv1[yyj1] = ResourceQuotaScope(r.DecodeString()) + yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4799 := 0 + for ; !r.CheckBreak(); yyj4799++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 ResourceQuotaScope - yyc1 = true + if yyj4799 >= len(yyv4799) { + yyv4799 = append(yyv4799, "") // var yyz4799 ResourceQuotaScope + yyc4799 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4799.ElemContainerState(yyj4799) + if yyj4799 < len(yyv4799) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv4799[yyj4799] = "" } else { - yyv1[yyj1] = ResourceQuotaScope(r.DecodeString()) + yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) } } else { @@ -59044,17 +61655,17 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ResourceQuotaScope{} - yyc1 = true + if yyj4799 < len(yyv4799) { + yyv4799 = yyv4799[:yyj4799] + yyc4799 = true + } else if yyj4799 == 0 && yyv4799 == nil { + yyv4799 = []ResourceQuotaScope{} + yyc4799 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4799.End() + if yyc4799 { + *v = yyv4799 } } @@ -59063,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 _, yyv1 := range v { + for _, yyv4803 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4804 := &yyv4803 + yy4804.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59076,86 +61687,83 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ResourceQuota{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4805 > 0 { + var yyrr4805, yyrl4805 int + var yyrt4805 bool + if yyl4805 > cap(yyv4805) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 288) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ResourceQuota, yyrl1) + yyv4805 = make([]ResourceQuota, yyrl4805) } } else { - yyv1 = make([]ResourceQuota, yyrl1) + yyv4805 = make([]ResourceQuota, yyrl4805) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4805 = true + yyrr4805 = len(yyv4805) + if yyrg4805 { + copy(yyv4805, yyv24805) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4805 != len(yyv4805) { + yyv4805 = yyv4805[:yyl4805] + yyc4805 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4805 := 0 + for ; yyj4805 < yyrr4805; yyj4805++ { + yyh4805.ElemContainerState(yyj4805) if r.TryDecodeAsNil() { - yyv1[yyj1] = ResourceQuota{} + yyv4805[yyj4805] = ResourceQuota{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4806 := &yyv4805[yyj4805] + yyv4806.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ResourceQuota{}) - yyh1.ElemContainerState(yyj1) + if yyrt4805 { + for ; yyj4805 < yyl4805; yyj4805++ { + yyv4805 = append(yyv4805, ResourceQuota{}) + yyh4805.ElemContainerState(yyj4805) if r.TryDecodeAsNil() { - yyv1[yyj1] = ResourceQuota{} + yyv4805[yyj4805] = ResourceQuota{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4807 := &yyv4805[yyj4805] + yyv4807.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4805 := 0 + for ; !r.CheckBreak(); yyj4805++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ResourceQuota{}) // var yyz1 ResourceQuota - yyc1 = true + if yyj4805 >= len(yyv4805) { + yyv4805 = append(yyv4805, ResourceQuota{}) // var yyz4805 ResourceQuota + yyc4805 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4805.ElemContainerState(yyj4805) + if yyj4805 < len(yyv4805) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ResourceQuota{} + yyv4805[yyj4805] = ResourceQuota{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4808 := &yyv4805[yyj4805] + yyv4808.CodecDecodeSelf(d) } } else { @@ -59163,17 +61771,17 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ResourceQuota{} - yyc1 = true + if yyj4805 < len(yyv4805) { + yyv4805 = yyv4805[:yyj4805] + yyc4805 = true + } else if yyj4805 == 0 && yyv4805 == nil { + yyv4805 = []ResourceQuota{} + yyc4805 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4805.End() + if yyc4805 { + *v = yyv4805 } } @@ -59182,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 yyk1, yyv1 := range v { + for yyk4809, yyv4809 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym2 := z.EncBinary() - _ = yym2 + yym4810 := z.EncBinary() + _ = yym4810 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4809)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv1 == nil { + if yyv4809 == nil { r.EncodeNil() } else { - yym3 := z.EncBinary() - _ = yym3 + yym4811 := z.EncBinary() + _ = yym4811 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv1)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4809)) } } } @@ -59210,210 +61818,95 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) - yyv1 = make(map[string][]uint8, yyrl1) - *v = yyv1 + 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 yymk1 string - var yymv1 []uint8 - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true + var yymk4812 string + var yymv4812 []uint8 + var yymg4812 bool + if yybh4812.MapValueReset { + yymg4812 = true } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + if yyl4812 > 0 { + for yyj4812 := 0; yyj4812 < yyl4812; yyj4812++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4812 = "" } else { - yymk1 = string(r.DecodeString()) + yymk4812 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4812 { + yymv4812 = yyv4812[yymk4812] } else { - yymv1 = nil + yymv4812 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv4812 = nil } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 + yyv4814 := &yymv4812 + yym4815 := z.DecBinary() + _ = yym4815 if false { } else { - *yyv3 = r.DecodeBytes(*(*[]byte)(yyv3), false, false) + *yyv4814 = r.DecodeBytes(*(*[]byte)(yyv4814), false, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4812 != nil { + yyv4812[yymk4812] = yymv4812 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl4812 < 0 { + for yyj4812 := 0; !r.CheckBreak(); yyj4812++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk4812 = "" } else { - yymk1 = string(r.DecodeString()) + yymk4812 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg4812 { + yymv4812 = yyv4812[yymk4812] } else { - yymv1 = nil + yymv4812 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv4812 = nil } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 + yyv4817 := &yymv4812 + yym4818 := z.DecBinary() + _ = yym4818 if false { } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) + *yyv4817 = r.DecodeBytes(*(*[]byte)(yyv4817), false, false) } } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv4812 != nil { + yyv4812[yymk4812] = yymv4812 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) encSliceuint8(v []uint8, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeUint(uint64(yyv1)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceuint8(v *[]uint8, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []uint8{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]uint8, yyrl1) - } - } else { - yyv1 = make([]uint8, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = 0 - } else { - yyv1[yyj1] = uint8(r.DecodeUint(8)) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, 0) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = 0 - } else { - yyv1[yyj1] = uint8(r.DecodeUint(8)) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, 0) // var yyz1 uint8 - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = 0 - } else { - yyv1[yyj1] = uint8(r.DecodeUint(8)) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []uint8{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4819 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4820 := &yyv4819 + yy4820.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59423,86 +61916,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Secret{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4821 > 0 { + var yyrr4821, yyrl4821 int + var yyrt4821 bool + if yyl4821 > cap(yyv4821) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 272) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Secret, yyrl1) + yyv4821 = make([]Secret, yyrl4821) } } else { - yyv1 = make([]Secret, yyrl1) + yyv4821 = make([]Secret, yyrl4821) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4821 = true + yyrr4821 = len(yyv4821) + if yyrg4821 { + copy(yyv4821, yyv24821) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4821 != len(yyv4821) { + yyv4821 = yyv4821[:yyl4821] + yyc4821 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4821 := 0 + for ; yyj4821 < yyrr4821; yyj4821++ { + yyh4821.ElemContainerState(yyj4821) if r.TryDecodeAsNil() { - yyv1[yyj1] = Secret{} + yyv4821[yyj4821] = Secret{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4822 := &yyv4821[yyj4821] + yyv4822.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Secret{}) - yyh1.ElemContainerState(yyj1) + if yyrt4821 { + for ; yyj4821 < yyl4821; yyj4821++ { + yyv4821 = append(yyv4821, Secret{}) + yyh4821.ElemContainerState(yyj4821) if r.TryDecodeAsNil() { - yyv1[yyj1] = Secret{} + yyv4821[yyj4821] = Secret{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4823 := &yyv4821[yyj4821] + yyv4823.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4821 := 0 + for ; !r.CheckBreak(); yyj4821++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Secret{}) // var yyz1 Secret - yyc1 = true + if yyj4821 >= len(yyv4821) { + yyv4821 = append(yyv4821, Secret{}) // var yyz4821 Secret + yyc4821 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4821.ElemContainerState(yyj4821) + if yyj4821 < len(yyv4821) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Secret{} + yyv4821[yyj4821] = Secret{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4824 := &yyv4821[yyj4821] + yyv4824.CodecDecodeSelf(d) } } else { @@ -59510,17 +62000,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Secret{} - yyc1 = true + if yyj4821 < len(yyv4821) { + yyv4821 = yyv4821[:yyj4821] + yyc4821 = true + } else if yyj4821 == 0 && yyv4821 == nil { + yyv4821 = []Secret{} + yyc4821 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4821.End() + if yyc4821 { + *v = yyv4821 } } @@ -59529,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 _, yyv1 := range v { + for _, yyv4825 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4826 := &yyv4825 + yy4826.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59542,86 +62032,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ConfigMap{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4827 > 0 { + var yyrr4827, yyrl4827 int + var yyrt4827 bool + if yyl4827 > cap(yyv4827) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 248) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ConfigMap, yyrl1) + yyv4827 = make([]ConfigMap, yyrl4827) } } else { - yyv1 = make([]ConfigMap, yyrl1) + yyv4827 = make([]ConfigMap, yyrl4827) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4827 = true + yyrr4827 = len(yyv4827) + if yyrg4827 { + copy(yyv4827, yyv24827) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4827 != len(yyv4827) { + yyv4827 = yyv4827[:yyl4827] + yyc4827 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4827 := 0 + for ; yyj4827 < yyrr4827; yyj4827++ { + yyh4827.ElemContainerState(yyj4827) if r.TryDecodeAsNil() { - yyv1[yyj1] = ConfigMap{} + yyv4827[yyj4827] = ConfigMap{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4828 := &yyv4827[yyj4827] + yyv4828.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ConfigMap{}) - yyh1.ElemContainerState(yyj1) + if yyrt4827 { + for ; yyj4827 < yyl4827; yyj4827++ { + yyv4827 = append(yyv4827, ConfigMap{}) + yyh4827.ElemContainerState(yyj4827) if r.TryDecodeAsNil() { - yyv1[yyj1] = ConfigMap{} + yyv4827[yyj4827] = ConfigMap{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4829 := &yyv4827[yyj4827] + yyv4829.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4827 := 0 + for ; !r.CheckBreak(); yyj4827++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ConfigMap{}) // var yyz1 ConfigMap - yyc1 = true + if yyj4827 >= len(yyv4827) { + yyv4827 = append(yyv4827, ConfigMap{}) // var yyz4827 ConfigMap + yyc4827 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4827.ElemContainerState(yyj4827) + if yyj4827 < len(yyv4827) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ConfigMap{} + yyv4827[yyj4827] = ConfigMap{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4830 := &yyv4827[yyj4827] + yyv4830.CodecDecodeSelf(d) } } else { @@ -59629,17 +62116,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ConfigMap{} - yyc1 = true + if yyj4827 < len(yyv4827) { + yyv4827 = yyv4827[:yyj4827] + yyc4827 = true + } else if yyj4827 == 0 && yyv4827 == nil { + yyv4827 = []ConfigMap{} + yyc4827 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4827.End() + if yyc4827 { + *v = yyv4827 } } @@ -59648,10 +62135,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4831 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4832 := &yyv4831 + yy4832.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59661,86 +62148,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ComponentCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4833 > 0 { + var yyrr4833, yyrl4833 int + var yyrt4833 bool + if yyl4833 > cap(yyv4833) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ComponentCondition, yyrl1) + yyv4833 = make([]ComponentCondition, yyrl4833) } } else { - yyv1 = make([]ComponentCondition, yyrl1) + yyv4833 = make([]ComponentCondition, yyrl4833) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4833 = true + yyrr4833 = len(yyv4833) + if yyrg4833 { + copy(yyv4833, yyv24833) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4833 != len(yyv4833) { + yyv4833 = yyv4833[:yyl4833] + yyc4833 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4833 := 0 + for ; yyj4833 < yyrr4833; yyj4833++ { + yyh4833.ElemContainerState(yyj4833) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentCondition{} + yyv4833[yyj4833] = ComponentCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4834 := &yyv4833[yyj4833] + yyv4834.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ComponentCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt4833 { + for ; yyj4833 < yyl4833; yyj4833++ { + yyv4833 = append(yyv4833, ComponentCondition{}) + yyh4833.ElemContainerState(yyj4833) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentCondition{} + yyv4833[yyj4833] = ComponentCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4835 := &yyv4833[yyj4833] + yyv4835.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4833 := 0 + for ; !r.CheckBreak(); yyj4833++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ComponentCondition{}) // var yyz1 ComponentCondition - yyc1 = true + if yyj4833 >= len(yyv4833) { + yyv4833 = append(yyv4833, ComponentCondition{}) // var yyz4833 ComponentCondition + yyc4833 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4833.ElemContainerState(yyj4833) + if yyj4833 < len(yyv4833) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentCondition{} + yyv4833[yyj4833] = ComponentCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4836 := &yyv4833[yyj4833] + yyv4836.CodecDecodeSelf(d) } } else { @@ -59748,17 +62232,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ComponentCondition{} - yyc1 = true + if yyj4833 < len(yyv4833) { + yyv4833 = yyv4833[:yyj4833] + yyc4833 = true + } else if yyj4833 == 0 && yyv4833 == nil { + yyv4833 = []ComponentCondition{} + yyc4833 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4833.End() + if yyc4833 { + *v = yyv4833 } } @@ -59767,10 +62251,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4837 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4838 := &yyv4837 + yy4838.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59780,86 +62264,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ComponentStatus{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4839 > 0 { + var yyrr4839, yyrl4839 int + var yyrt4839 bool + if yyl4839 > cap(yyv4839) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ComponentStatus, yyrl1) + yyv4839 = make([]ComponentStatus, yyrl4839) } } else { - yyv1 = make([]ComponentStatus, yyrl1) + yyv4839 = make([]ComponentStatus, yyrl4839) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4839 = true + yyrr4839 = len(yyv4839) + if yyrg4839 { + copy(yyv4839, yyv24839) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4839 != len(yyv4839) { + yyv4839 = yyv4839[:yyl4839] + yyc4839 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4839 := 0 + for ; yyj4839 < yyrr4839; yyj4839++ { + yyh4839.ElemContainerState(yyj4839) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentStatus{} + yyv4839[yyj4839] = ComponentStatus{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4840 := &yyv4839[yyj4839] + yyv4840.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ComponentStatus{}) - yyh1.ElemContainerState(yyj1) + if yyrt4839 { + for ; yyj4839 < yyl4839; yyj4839++ { + yyv4839 = append(yyv4839, ComponentStatus{}) + yyh4839.ElemContainerState(yyj4839) if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentStatus{} + yyv4839[yyj4839] = ComponentStatus{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4841 := &yyv4839[yyj4839] + yyv4841.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4839 := 0 + for ; !r.CheckBreak(); yyj4839++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ComponentStatus{}) // var yyz1 ComponentStatus - yyc1 = true + if yyj4839 >= len(yyv4839) { + yyv4839 = append(yyv4839, ComponentStatus{}) // var yyz4839 ComponentStatus + yyc4839 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4839.ElemContainerState(yyj4839) + if yyj4839 < len(yyv4839) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ComponentStatus{} + yyv4839[yyj4839] = ComponentStatus{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4842 := &yyv4839[yyj4839] + yyv4842.CodecDecodeSelf(d) } } else { @@ -59867,17 +62348,17 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ComponentStatus{} - yyc1 = true + if yyj4839 < len(yyv4839) { + yyv4839 = yyv4839[:yyj4839] + yyc4839 = true + } else if yyj4839 == 0 && yyv4839 == nil { + yyv4839 = []ComponentStatus{} + yyc4839 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4839.End() + if yyc4839 { + *v = yyv4839 } } @@ -59886,10 +62367,10 @@ func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv4843 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy4844 := &yyv4843 + yy4844.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59899,86 +62380,83 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []DownwardAPIVolumeFile{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl4845 > 0 { + var yyrr4845, yyrl4845 int + var yyrt4845 bool + if yyl4845 > cap(yyv4845) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]DownwardAPIVolumeFile, yyrl1) + yyv4845 = make([]DownwardAPIVolumeFile, yyrl4845) } } else { - yyv1 = make([]DownwardAPIVolumeFile, yyrl1) + yyv4845 = make([]DownwardAPIVolumeFile, yyrl4845) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc4845 = true + yyrr4845 = len(yyv4845) + if yyrg4845 { + copy(yyv4845, yyv24845) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl4845 != len(yyv4845) { + yyv4845 = yyv4845[:yyl4845] + yyc4845 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj4845 := 0 + for ; yyj4845 < yyrr4845; yyj4845++ { + yyh4845.ElemContainerState(yyj4845) if r.TryDecodeAsNil() { - yyv1[yyj1] = DownwardAPIVolumeFile{} + yyv4845[yyj4845] = DownwardAPIVolumeFile{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv4846 := &yyv4845[yyj4845] + yyv4846.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, DownwardAPIVolumeFile{}) - yyh1.ElemContainerState(yyj1) + if yyrt4845 { + for ; yyj4845 < yyl4845; yyj4845++ { + yyv4845 = append(yyv4845, DownwardAPIVolumeFile{}) + yyh4845.ElemContainerState(yyj4845) if r.TryDecodeAsNil() { - yyv1[yyj1] = DownwardAPIVolumeFile{} + yyv4845[yyj4845] = DownwardAPIVolumeFile{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv4847 := &yyv4845[yyj4845] + yyv4847.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj4845 := 0 + for ; !r.CheckBreak(); yyj4845++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, DownwardAPIVolumeFile{}) // var yyz1 DownwardAPIVolumeFile - yyc1 = true + if yyj4845 >= len(yyv4845) { + yyv4845 = append(yyv4845, DownwardAPIVolumeFile{}) // var yyz4845 DownwardAPIVolumeFile + yyc4845 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh4845.ElemContainerState(yyj4845) + if yyj4845 < len(yyv4845) { if r.TryDecodeAsNil() { - yyv1[yyj1] = DownwardAPIVolumeFile{} + yyv4845[yyj4845] = DownwardAPIVolumeFile{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv4848 := &yyv4845[yyj4845] + yyv4848.CodecDecodeSelf(d) } } else { @@ -59986,16 +62464,16 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []DownwardAPIVolumeFile{} - yyc1 = true + if yyj4845 < len(yyv4845) { + yyv4845 = yyv4845[:yyj4845] + yyc4845 = true + } else if yyj4845 == 0 && yyv4845 == nil { + yyv4845 = []DownwardAPIVolumeFile{} + yyc4845 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh4845.End() + if yyc4845 { + *v = yyv4845 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.go index 42a0b98792..03c55a3d35 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types.go @@ -24,7 +24,7 @@ import ( "k8s.io/kubernetes/pkg/util/intstr" ) -// The comments for the structs and fields can be used from go-resful to +// The comments for the structs and fields can be used from go-restful to // generate Swagger API documentation for its models. Please read this PR for more // information on the implementation: https://github.com/emicklei/go-restful/pull/215 // @@ -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. @@ -2279,6 +2396,8 @@ type EndpointAddress struct { IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"` // The Hostname of this endpoint Hostname string `json:"hostname,omitempty" protobuf:"bytes,3,opt,name=hostname"` + // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + NodeName *string `json:"nodeName,omitempty" protobuf:"bytes,4,opt,name=nodeName"` // Reference to object providing the endpoint. TargetRef *ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,2,opt,name=targetRef"` } @@ -2376,6 +2495,7 @@ type NodeStatus struct { Allocatable ResourceList `json:"allocatable,omitempty" protobuf:"bytes,2,rep,name=allocatable,casttype=ResourceList,castkey=ResourceName"` // NodePhase is the recently observed lifecycle phase of the node. // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase + // The field is never populated, and now is deprecated. Phase NodePhase `json:"phase,omitempty" protobuf:"bytes,3,opt,name=phase,casttype=NodePhase"` // Conditions is an array of current observed node conditions. // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition @@ -2408,6 +2528,34 @@ type AttachedVolume struct { DevicePath string `json:"devicePath" protobuf:"bytes,2,rep,name=devicePath"` } +// AvoidPods describes pods that should avoid this node. This is the value for a +// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +// will eventually become a field of NodeStatus. +type AvoidPods struct { + // Bounded-sized list of signatures of pods that should avoid this node, sorted + // in timestamp order from oldest to newest. Size of the slice is unspecified. + PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty" protobuf:"bytes,1,rep,name=preferAvoidPods"` +} + +// Describes a class of pods that should avoid this node. +type PreferAvoidPodsEntry struct { + // The class of pods. + PodSignature PodSignature `json:"podSignature" protobuf:"bytes,1,opt,name=podSignature"` + // Time at which this entry was added to the list. + EvictionTime unversioned.Time `json:"evictionTime,omitempty" protobuf:"bytes,2,opt,name=evictionTime"` + // (brief) reason why this entry was added to the list. + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + // Human readable message indicating why this entry was added to the list. + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` +} + +// Describes the class of pods that should avoid this node. +// Exactly one field should be set. +type PodSignature struct { + // Reference to controller whose pods should avoid this node. + PodController *OwnerReference `json:"podController,omitempty" protobuf:"bytes,1,opt,name=podController"` +} + // Describe a container image type ContainerImage struct { // Names by which this image is known. @@ -2442,6 +2590,8 @@ const ( NodeOutOfDisk NodeConditionType = "OutOfDisk" // NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory. NodeMemoryPressure NodeConditionType = "MemoryPressure" + // NodeDiskPressure means the kubelet is under pressure due to insufficient available disk. + NodeDiskPressure NodeConditionType = "DiskPressure" // NodeNetworkUnavailable means that network for the node is not correctly configured. NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable" ) @@ -3010,6 +3160,8 @@ const ( ResourceRequestsCPU ResourceName = "requests.cpu" // Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) ResourceRequestsMemory ResourceName = "requests.memory" + // Storage request, in bytes + ResourceRequestsStorage ResourceName = "requests.storage" // CPU limit, in cores. (500m = .5 cores) ResourceLimitsCPU ResourceName = "limits.cpu" // Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) @@ -3252,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 '..' @@ -3263,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/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types_swagger_doc_generated.go index c5eb00db3f..886ed425d6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types_swagger_doc_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/types_swagger_doc_generated.go @@ -60,6 +60,28 @@ func (AttachedVolume) SwaggerDoc() map[string]string { return map_AttachedVolume } +var map_AvoidPods = map[string]string{ + "": "AvoidPods describes pods that should avoid this node. This is the value for a Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and will eventually become a field of NodeStatus.", + "preferAvoidPods": "Bounded-sized list of signatures of pods that should avoid this node, sorted in timestamp order from oldest to newest. Size of the slice is unspecified.", +} + +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", @@ -178,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 { @@ -321,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 { @@ -328,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 { @@ -349,6 +374,7 @@ var map_EndpointAddress = map[string]string{ "": "EndpointAddress is a tuple that describes single IP address.", "ip": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", "hostname": "The Hostname of this endpoint", + "nodeName": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", "targetRef": "Reference to object providing the endpoint.", } @@ -411,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", @@ -606,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 { @@ -884,7 +911,7 @@ var map_NodeStatus = map[string]string{ "": "NodeStatus is information about the current status of a node.", "capacity": "Capacity represents the total resources of a node. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity for more details.", "allocatable": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "phase": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase", + "phase": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated.", "conditions": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", "addresses": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses", "daemonEndpoints": "Endpoints of daemons running on the Node.", @@ -942,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 { @@ -1067,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 { @@ -1227,6 +1257,15 @@ func (PodSecurityContext) SwaggerDoc() map[string]string { return map_PodSecurityContext } +var map_PodSignature = map[string]string{ + "": "Describes the class of pods that should avoid this node. Exactly one field should be set.", + "podController": "Reference to controller whose pods should avoid this node.", +} + +func (PodSignature) SwaggerDoc() map[string]string { + return map_PodSignature +} + var map_PodSpec = map[string]string{ "": "PodSpec is a description of a pod.", "volumes": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md", @@ -1317,6 +1356,18 @@ func (Preconditions) SwaggerDoc() map[string]string { return map_Preconditions } +var map_PreferAvoidPodsEntry = map[string]string{ + "": "Describes a class of pods that should avoid this node.", + "podSignature": "The class of pods.", + "evictionTime": "Time at which this entry was added to the list.", + "reason": "(brief) reason why this entry was added to the list.", + "message": "Human readable message indicating why this entry was added to the list.", +} + +func (PreferAvoidPodsEntry) SwaggerDoc() map[string]string { + return map_PreferAvoidPodsEntry +} + var map_PreferredSchedulingTerm = map[string]string{ "": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", "weight": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", @@ -1340,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", @@ -1403,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.", } @@ -1464,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 { @@ -1516,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 { @@ -1615,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 { @@ -1713,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/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/zz_generated.conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/zz_generated.conversion.go new file mode 100644 index 0000000000..2f5acd0940 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/zz_generated.conversion.go @@ -0,0 +1,7129 @@ +// +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 v1 + +import ( + api "k8s.io/kubernetes/pkg/api" + resource "k8s.io/kubernetes/pkg/api/resource" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" + types "k8s.io/kubernetes/pkg/types" +) + +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_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource, + Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource, + Convert_v1_Affinity_To_api_Affinity, + Convert_api_Affinity_To_v1_Affinity, + Convert_v1_AttachedVolume_To_api_AttachedVolume, + 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, + Convert_api_Binding_To_v1_Binding, + Convert_v1_Capabilities_To_api_Capabilities, + Convert_api_Capabilities_To_v1_Capabilities, + Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource, + Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource, + Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource, + Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource, + Convert_v1_ComponentCondition_To_api_ComponentCondition, + Convert_api_ComponentCondition_To_v1_ComponentCondition, + Convert_v1_ComponentStatus_To_api_ComponentStatus, + Convert_api_ComponentStatus_To_v1_ComponentStatus, + Convert_v1_ComponentStatusList_To_api_ComponentStatusList, + Convert_api_ComponentStatusList_To_v1_ComponentStatusList, + Convert_v1_ConfigMap_To_api_ConfigMap, + Convert_api_ConfigMap_To_v1_ConfigMap, + Convert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector, + Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector, + Convert_v1_ConfigMapList_To_api_ConfigMapList, + Convert_api_ConfigMapList_To_v1_ConfigMapList, + Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource, + Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource, + Convert_v1_Container_To_api_Container, + Convert_api_Container_To_v1_Container, + Convert_v1_ContainerImage_To_api_ContainerImage, + Convert_api_ContainerImage_To_v1_ContainerImage, + Convert_v1_ContainerPort_To_api_ContainerPort, + Convert_api_ContainerPort_To_v1_ContainerPort, + Convert_v1_ContainerState_To_api_ContainerState, + Convert_api_ContainerState_To_v1_ContainerState, + Convert_v1_ContainerStateRunning_To_api_ContainerStateRunning, + Convert_api_ContainerStateRunning_To_v1_ContainerStateRunning, + Convert_v1_ContainerStateTerminated_To_api_ContainerStateTerminated, + Convert_api_ContainerStateTerminated_To_v1_ContainerStateTerminated, + Convert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting, + Convert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting, + Convert_v1_ContainerStatus_To_api_ContainerStatus, + Convert_api_ContainerStatus_To_v1_ContainerStatus, + Convert_v1_DaemonEndpoint_To_api_DaemonEndpoint, + Convert_api_DaemonEndpoint_To_v1_DaemonEndpoint, + Convert_v1_DeleteOptions_To_api_DeleteOptions, + Convert_api_DeleteOptions_To_v1_DeleteOptions, + Convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile, + Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile, + Convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource, + Convert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource, + Convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource, + Convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource, + Convert_v1_EndpointAddress_To_api_EndpointAddress, + Convert_api_EndpointAddress_To_v1_EndpointAddress, + Convert_v1_EndpointPort_To_api_EndpointPort, + Convert_api_EndpointPort_To_v1_EndpointPort, + Convert_v1_EndpointSubset_To_api_EndpointSubset, + Convert_api_EndpointSubset_To_v1_EndpointSubset, + Convert_v1_Endpoints_To_api_Endpoints, + Convert_api_Endpoints_To_v1_Endpoints, + Convert_v1_EndpointsList_To_api_EndpointsList, + Convert_api_EndpointsList_To_v1_EndpointsList, + Convert_v1_EnvVar_To_api_EnvVar, + Convert_api_EnvVar_To_v1_EnvVar, + Convert_v1_EnvVarSource_To_api_EnvVarSource, + Convert_api_EnvVarSource_To_v1_EnvVarSource, + Convert_v1_Event_To_api_Event, + Convert_api_Event_To_v1_Event, + Convert_v1_EventList_To_api_EventList, + Convert_api_EventList_To_v1_EventList, + Convert_v1_EventSource_To_api_EventSource, + Convert_api_EventSource_To_v1_EventSource, + Convert_v1_ExecAction_To_api_ExecAction, + Convert_api_ExecAction_To_v1_ExecAction, + Convert_v1_ExportOptions_To_api_ExportOptions, + Convert_api_ExportOptions_To_v1_ExportOptions, + Convert_v1_FCVolumeSource_To_api_FCVolumeSource, + Convert_api_FCVolumeSource_To_v1_FCVolumeSource, + Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource, + Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource, + Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource, + Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource, + Convert_v1_GCEPersistentDiskVolumeSource_To_api_GCEPersistentDiskVolumeSource, + Convert_api_GCEPersistentDiskVolumeSource_To_v1_GCEPersistentDiskVolumeSource, + Convert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource, + Convert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource, + Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource, + Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource, + Convert_v1_HTTPGetAction_To_api_HTTPGetAction, + Convert_api_HTTPGetAction_To_v1_HTTPGetAction, + Convert_v1_HTTPHeader_To_api_HTTPHeader, + Convert_api_HTTPHeader_To_v1_HTTPHeader, + Convert_v1_Handler_To_api_Handler, + Convert_api_Handler_To_v1_Handler, + Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource, + Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource, + Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource, + Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource, + Convert_v1_KeyToPath_To_api_KeyToPath, + Convert_api_KeyToPath_To_v1_KeyToPath, + Convert_v1_Lifecycle_To_api_Lifecycle, + Convert_api_Lifecycle_To_v1_Lifecycle, + Convert_v1_LimitRange_To_api_LimitRange, + Convert_api_LimitRange_To_v1_LimitRange, + Convert_v1_LimitRangeItem_To_api_LimitRangeItem, + Convert_api_LimitRangeItem_To_v1_LimitRangeItem, + Convert_v1_LimitRangeList_To_api_LimitRangeList, + Convert_api_LimitRangeList_To_v1_LimitRangeList, + Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec, + Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec, + Convert_v1_List_To_api_List, + Convert_api_List_To_v1_List, + Convert_v1_ListOptions_To_api_ListOptions, + Convert_api_ListOptions_To_v1_ListOptions, + Convert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress, + Convert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress, + Convert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus, + Convert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus, + Convert_v1_LocalObjectReference_To_api_LocalObjectReference, + Convert_api_LocalObjectReference_To_v1_LocalObjectReference, + Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource, + Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource, + Convert_v1_Namespace_To_api_Namespace, + Convert_api_Namespace_To_v1_Namespace, + Convert_v1_NamespaceList_To_api_NamespaceList, + Convert_api_NamespaceList_To_v1_NamespaceList, + Convert_v1_NamespaceSpec_To_api_NamespaceSpec, + Convert_api_NamespaceSpec_To_v1_NamespaceSpec, + Convert_v1_NamespaceStatus_To_api_NamespaceStatus, + Convert_api_NamespaceStatus_To_v1_NamespaceStatus, + Convert_v1_Node_To_api_Node, + Convert_api_Node_To_v1_Node, + Convert_v1_NodeAddress_To_api_NodeAddress, + Convert_api_NodeAddress_To_v1_NodeAddress, + Convert_v1_NodeAffinity_To_api_NodeAffinity, + Convert_api_NodeAffinity_To_v1_NodeAffinity, + Convert_v1_NodeCondition_To_api_NodeCondition, + Convert_api_NodeCondition_To_v1_NodeCondition, + Convert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints, + Convert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints, + Convert_v1_NodeList_To_api_NodeList, + Convert_api_NodeList_To_v1_NodeList, + Convert_v1_NodeProxyOptions_To_api_NodeProxyOptions, + Convert_api_NodeProxyOptions_To_v1_NodeProxyOptions, + Convert_v1_NodeSelector_To_api_NodeSelector, + Convert_api_NodeSelector_To_v1_NodeSelector, + Convert_v1_NodeSelectorRequirement_To_api_NodeSelectorRequirement, + Convert_api_NodeSelectorRequirement_To_v1_NodeSelectorRequirement, + Convert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm, + Convert_api_NodeSelectorTerm_To_v1_NodeSelectorTerm, + Convert_v1_NodeSpec_To_api_NodeSpec, + Convert_api_NodeSpec_To_v1_NodeSpec, + Convert_v1_NodeStatus_To_api_NodeStatus, + Convert_api_NodeStatus_To_v1_NodeStatus, + Convert_v1_NodeSystemInfo_To_api_NodeSystemInfo, + Convert_api_NodeSystemInfo_To_v1_NodeSystemInfo, + Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector, + Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector, + Convert_v1_ObjectMeta_To_api_ObjectMeta, + Convert_api_ObjectMeta_To_v1_ObjectMeta, + Convert_v1_ObjectReference_To_api_ObjectReference, + Convert_api_ObjectReference_To_v1_ObjectReference, + Convert_v1_OwnerReference_To_api_OwnerReference, + Convert_api_OwnerReference_To_v1_OwnerReference, + Convert_v1_PersistentVolume_To_api_PersistentVolume, + Convert_api_PersistentVolume_To_v1_PersistentVolume, + Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim, + Convert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim, + Convert_v1_PersistentVolumeClaimList_To_api_PersistentVolumeClaimList, + Convert_api_PersistentVolumeClaimList_To_v1_PersistentVolumeClaimList, + Convert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec, + Convert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec, + Convert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus, + Convert_api_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimStatus, + Convert_v1_PersistentVolumeClaimVolumeSource_To_api_PersistentVolumeClaimVolumeSource, + Convert_api_PersistentVolumeClaimVolumeSource_To_v1_PersistentVolumeClaimVolumeSource, + Convert_v1_PersistentVolumeList_To_api_PersistentVolumeList, + Convert_api_PersistentVolumeList_To_v1_PersistentVolumeList, + Convert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource, + Convert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource, + Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec, + Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec, + Convert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus, + Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus, + Convert_v1_Pod_To_api_Pod, + Convert_api_Pod_To_v1_Pod, + Convert_v1_PodAffinity_To_api_PodAffinity, + Convert_api_PodAffinity_To_v1_PodAffinity, + Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm, + Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm, + Convert_v1_PodAntiAffinity_To_api_PodAntiAffinity, + Convert_api_PodAntiAffinity_To_v1_PodAntiAffinity, + Convert_v1_PodAttachOptions_To_api_PodAttachOptions, + Convert_api_PodAttachOptions_To_v1_PodAttachOptions, + Convert_v1_PodCondition_To_api_PodCondition, + Convert_api_PodCondition_To_v1_PodCondition, + Convert_v1_PodExecOptions_To_api_PodExecOptions, + Convert_api_PodExecOptions_To_v1_PodExecOptions, + Convert_v1_PodList_To_api_PodList, + Convert_api_PodList_To_v1_PodList, + Convert_v1_PodLogOptions_To_api_PodLogOptions, + Convert_api_PodLogOptions_To_v1_PodLogOptions, + Convert_v1_PodProxyOptions_To_api_PodProxyOptions, + Convert_api_PodProxyOptions_To_v1_PodProxyOptions, + Convert_v1_PodSecurityContext_To_api_PodSecurityContext, + Convert_api_PodSecurityContext_To_v1_PodSecurityContext, + Convert_v1_PodSignature_To_api_PodSignature, + Convert_api_PodSignature_To_v1_PodSignature, + Convert_v1_PodSpec_To_api_PodSpec, + Convert_api_PodSpec_To_v1_PodSpec, + Convert_v1_PodStatus_To_api_PodStatus, + Convert_api_PodStatus_To_v1_PodStatus, + Convert_v1_PodStatusResult_To_api_PodStatusResult, + Convert_api_PodStatusResult_To_v1_PodStatusResult, + Convert_v1_PodTemplate_To_api_PodTemplate, + Convert_api_PodTemplate_To_v1_PodTemplate, + Convert_v1_PodTemplateList_To_api_PodTemplateList, + Convert_api_PodTemplateList_To_v1_PodTemplateList, + Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec, + Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec, + Convert_v1_Preconditions_To_api_Preconditions, + Convert_api_Preconditions_To_v1_Preconditions, + Convert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry, + Convert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry, + Convert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm, + 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, + Convert_api_RangeAllocation_To_v1_RangeAllocation, + Convert_v1_ReplicationController_To_api_ReplicationController, + Convert_api_ReplicationController_To_v1_ReplicationController, + Convert_v1_ReplicationControllerList_To_api_ReplicationControllerList, + Convert_api_ReplicationControllerList_To_v1_ReplicationControllerList, + Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec, + Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec, + Convert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus, + Convert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStatus, + Convert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector, + Convert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector, + Convert_v1_ResourceQuota_To_api_ResourceQuota, + Convert_api_ResourceQuota_To_v1_ResourceQuota, + Convert_v1_ResourceQuotaList_To_api_ResourceQuotaList, + Convert_api_ResourceQuotaList_To_v1_ResourceQuotaList, + Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec, + Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec, + Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus, + Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus, + Convert_v1_ResourceRequirements_To_api_ResourceRequirements, + Convert_api_ResourceRequirements_To_v1_ResourceRequirements, + Convert_v1_SELinuxOptions_To_api_SELinuxOptions, + Convert_api_SELinuxOptions_To_v1_SELinuxOptions, + Convert_v1_Secret_To_api_Secret, + Convert_api_Secret_To_v1_Secret, + Convert_v1_SecretKeySelector_To_api_SecretKeySelector, + Convert_api_SecretKeySelector_To_v1_SecretKeySelector, + Convert_v1_SecretList_To_api_SecretList, + Convert_api_SecretList_To_v1_SecretList, + Convert_v1_SecretVolumeSource_To_api_SecretVolumeSource, + Convert_api_SecretVolumeSource_To_v1_SecretVolumeSource, + Convert_v1_SecurityContext_To_api_SecurityContext, + Convert_api_SecurityContext_To_v1_SecurityContext, + Convert_v1_SerializedReference_To_api_SerializedReference, + Convert_api_SerializedReference_To_v1_SerializedReference, + Convert_v1_Service_To_api_Service, + Convert_api_Service_To_v1_Service, + Convert_v1_ServiceAccount_To_api_ServiceAccount, + Convert_api_ServiceAccount_To_v1_ServiceAccount, + Convert_v1_ServiceAccountList_To_api_ServiceAccountList, + Convert_api_ServiceAccountList_To_v1_ServiceAccountList, + Convert_v1_ServiceList_To_api_ServiceList, + Convert_api_ServiceList_To_v1_ServiceList, + Convert_v1_ServicePort_To_api_ServicePort, + Convert_api_ServicePort_To_v1_ServicePort, + Convert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions, + Convert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions, + Convert_v1_ServiceSpec_To_api_ServiceSpec, + Convert_api_ServiceSpec_To_v1_ServiceSpec, + Convert_v1_ServiceStatus_To_api_ServiceStatus, + Convert_api_ServiceStatus_To_v1_ServiceStatus, + Convert_v1_TCPSocketAction_To_api_TCPSocketAction, + Convert_api_TCPSocketAction_To_v1_TCPSocketAction, + Convert_v1_Taint_To_api_Taint, + Convert_api_Taint_To_v1_Taint, + Convert_v1_Toleration_To_api_Toleration, + Convert_api_Toleration_To_v1_Toleration, + Convert_v1_Volume_To_api_Volume, + Convert_api_Volume_To_v1_Volume, + Convert_v1_VolumeMount_To_api_VolumeMount, + Convert_api_VolumeMount_To_v1_VolumeMount, + Convert_v1_VolumeSource_To_api_VolumeSource, + Convert_api_VolumeSource_To_v1_VolumeSource, + Convert_v1_VsphereVirtualDiskVolumeSource_To_api_VsphereVirtualDiskVolumeSource, + Convert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource, + Convert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm, + Convert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm, + ) +} + +func autoConvert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(in *AWSElasticBlockStoreVolumeSource, out *api.AWSElasticBlockStoreVolumeSource, s conversion.Scope) error { + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(in *AWSElasticBlockStoreVolumeSource, out *api.AWSElasticBlockStoreVolumeSource, s conversion.Scope) error { + return autoConvert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(in, out, s) +} + +func autoConvert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(in *api.AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, s conversion.Scope) error { + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(in *api.AWSElasticBlockStoreVolumeSource, out *AWSElasticBlockStoreVolumeSource, s conversion.Scope) error { + return autoConvert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(in, out, s) +} + +func autoConvert_v1_Affinity_To_api_Affinity(in *Affinity, out *api.Affinity, s conversion.Scope) error { + if in.NodeAffinity != nil { + in, out := &in.NodeAffinity, &out.NodeAffinity + *out = new(api.NodeAffinity) + if err := Convert_v1_NodeAffinity_To_api_NodeAffinity(*in, *out, s); err != nil { + return err + } + } else { + out.NodeAffinity = nil + } + if in.PodAffinity != nil { + in, out := &in.PodAffinity, &out.PodAffinity + *out = new(api.PodAffinity) + if err := Convert_v1_PodAffinity_To_api_PodAffinity(*in, *out, s); err != nil { + return err + } + } else { + out.PodAffinity = nil + } + if in.PodAntiAffinity != nil { + in, out := &in.PodAntiAffinity, &out.PodAntiAffinity + *out = new(api.PodAntiAffinity) + if err := Convert_v1_PodAntiAffinity_To_api_PodAntiAffinity(*in, *out, s); err != nil { + return err + } + } else { + out.PodAntiAffinity = nil + } + return nil +} + +func Convert_v1_Affinity_To_api_Affinity(in *Affinity, out *api.Affinity, s conversion.Scope) error { + return autoConvert_v1_Affinity_To_api_Affinity(in, out, s) +} + +func autoConvert_api_Affinity_To_v1_Affinity(in *api.Affinity, out *Affinity, s conversion.Scope) error { + if in.NodeAffinity != nil { + in, out := &in.NodeAffinity, &out.NodeAffinity + *out = new(NodeAffinity) + if err := Convert_api_NodeAffinity_To_v1_NodeAffinity(*in, *out, s); err != nil { + return err + } + } else { + out.NodeAffinity = nil + } + if in.PodAffinity != nil { + in, out := &in.PodAffinity, &out.PodAffinity + *out = new(PodAffinity) + if err := Convert_api_PodAffinity_To_v1_PodAffinity(*in, *out, s); err != nil { + return err + } + } else { + out.PodAffinity = nil + } + if in.PodAntiAffinity != nil { + in, out := &in.PodAntiAffinity, &out.PodAntiAffinity + *out = new(PodAntiAffinity) + if err := Convert_api_PodAntiAffinity_To_v1_PodAntiAffinity(*in, *out, s); err != nil { + return err + } + } else { + out.PodAntiAffinity = nil + } + return nil +} + +func Convert_api_Affinity_To_v1_Affinity(in *api.Affinity, out *Affinity, s conversion.Scope) error { + return autoConvert_api_Affinity_To_v1_Affinity(in, out, s) +} + +func autoConvert_v1_AttachedVolume_To_api_AttachedVolume(in *AttachedVolume, out *api.AttachedVolume, s conversion.Scope) error { + out.Name = api.UniqueVolumeName(in.Name) + out.DevicePath = in.DevicePath + return nil +} + +func Convert_v1_AttachedVolume_To_api_AttachedVolume(in *AttachedVolume, out *api.AttachedVolume, s conversion.Scope) error { + return autoConvert_v1_AttachedVolume_To_api_AttachedVolume(in, out, s) +} + +func autoConvert_api_AttachedVolume_To_v1_AttachedVolume(in *api.AttachedVolume, out *AttachedVolume, s conversion.Scope) error { + out.Name = UniqueVolumeName(in.Name) + out.DevicePath = in.DevicePath + return nil +} + +func Convert_api_AttachedVolume_To_v1_AttachedVolume(in *api.AttachedVolume, out *AttachedVolume, s conversion.Scope) error { + return autoConvert_api_AttachedVolume_To_v1_AttachedVolume(in, out, s) +} + +func autoConvert_v1_AvoidPods_To_api_AvoidPods(in *AvoidPods, out *api.AvoidPods, s conversion.Scope) error { + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]api.PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := Convert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil +} + +func Convert_v1_AvoidPods_To_api_AvoidPods(in *AvoidPods, out *api.AvoidPods, s conversion.Scope) error { + return autoConvert_v1_AvoidPods_To_api_AvoidPods(in, out, s) +} + +func autoConvert_api_AvoidPods_To_v1_AvoidPods(in *api.AvoidPods, out *AvoidPods, s conversion.Scope) error { + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := Convert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil +} + +func Convert_api_AvoidPods_To_v1_AvoidPods(in *api.AvoidPods, out *AvoidPods, s conversion.Scope) error { + 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 + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in *AzureFileVolumeSource, out *api.AzureFileVolumeSource, s conversion.Scope) error { + return autoConvert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in, out, s) +} + +func autoConvert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.AzureFileVolumeSource, out *AzureFileVolumeSource, s conversion.Scope) error { + out.SecretName = in.SecretName + out.ShareName = in.ShareName + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.AzureFileVolumeSource, out *AzureFileVolumeSource, s conversion.Scope) error { + return autoConvert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in, out, s) +} + +func autoConvert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Target, &out.Target, s); err != nil { + return err + } + return nil +} + +func Convert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversion.Scope) error { + return autoConvert_v1_Binding_To_api_Binding(in, out, s) +} + +func autoConvert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Target, &out.Target, s); err != nil { + return err + } + return nil +} + +func Convert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversion.Scope) error { + return autoConvert_api_Binding_To_v1_Binding(in, out, s) +} + +func autoConvert_v1_Capabilities_To_api_Capabilities(in *Capabilities, out *api.Capabilities, s conversion.Scope) error { + if in.Add != nil { + in, out := &in.Add, &out.Add + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = api.Capability((*in)[i]) + } + } else { + out.Add = nil + } + if in.Drop != nil { + in, out := &in.Drop, &out.Drop + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = api.Capability((*in)[i]) + } + } else { + out.Drop = nil + } + return nil +} + +func Convert_v1_Capabilities_To_api_Capabilities(in *Capabilities, out *api.Capabilities, s conversion.Scope) error { + return autoConvert_v1_Capabilities_To_api_Capabilities(in, out, s) +} + +func autoConvert_api_Capabilities_To_v1_Capabilities(in *api.Capabilities, out *Capabilities, s conversion.Scope) error { + if in.Add != nil { + in, out := &in.Add, &out.Add + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = Capability((*in)[i]) + } + } else { + out.Add = nil + } + if in.Drop != nil { + in, out := &in.Drop, &out.Drop + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = Capability((*in)[i]) + } + } else { + out.Drop = nil + } + return nil +} + +func Convert_api_Capabilities_To_v1_Capabilities(in *api.Capabilities, out *Capabilities, s conversion.Scope) error { + return autoConvert_api_Capabilities_To_v1_Capabilities(in, out, s) +} + +func autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in *CephFSVolumeSource, out *api.CephFSVolumeSource, s conversion.Scope) error { + out.Monitors = in.Monitors + out.Path = in.Path + out.User = in.User + out.SecretFile = in.SecretFile + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(api.LocalObjectReference) + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in *CephFSVolumeSource, out *api.CephFSVolumeSource, s conversion.Scope) error { + return autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in, out, s) +} + +func autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in *api.CephFSVolumeSource, out *CephFSVolumeSource, s conversion.Scope) error { + out.Monitors = in.Monitors + out.Path = in.Path + out.User = in.User + out.SecretFile = in.SecretFile + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in *api.CephFSVolumeSource, out *CephFSVolumeSource, s conversion.Scope) error { + return autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in, out, s) +} + +func autoConvert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in *CinderVolumeSource, out *api.CinderVolumeSource, s conversion.Scope) error { + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in *CinderVolumeSource, out *api.CinderVolumeSource, s conversion.Scope) error { + return autoConvert_v1_CinderVolumeSource_To_api_CinderVolumeSource(in, out, s) +} + +func autoConvert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in *api.CinderVolumeSource, out *CinderVolumeSource, s conversion.Scope) error { + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in *api.CinderVolumeSource, out *CinderVolumeSource, s conversion.Scope) error { + return autoConvert_api_CinderVolumeSource_To_v1_CinderVolumeSource(in, out, s) +} + +func autoConvert_v1_ComponentCondition_To_api_ComponentCondition(in *ComponentCondition, out *api.ComponentCondition, s conversion.Scope) error { + out.Type = api.ComponentConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + out.Message = in.Message + out.Error = in.Error + return nil +} + +func Convert_v1_ComponentCondition_To_api_ComponentCondition(in *ComponentCondition, out *api.ComponentCondition, s conversion.Scope) error { + return autoConvert_v1_ComponentCondition_To_api_ComponentCondition(in, out, s) +} + +func autoConvert_api_ComponentCondition_To_v1_ComponentCondition(in *api.ComponentCondition, out *ComponentCondition, s conversion.Scope) error { + out.Type = ComponentConditionType(in.Type) + out.Status = ConditionStatus(in.Status) + out.Message = in.Message + out.Error = in.Error + return nil +} + +func Convert_api_ComponentCondition_To_v1_ComponentCondition(in *api.ComponentCondition, out *ComponentCondition, s conversion.Scope) error { + return autoConvert_api_ComponentCondition_To_v1_ComponentCondition(in, out, s) +} + +func autoConvert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out *api.ComponentStatus, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]api.ComponentCondition, len(*in)) + for i := range *in { + if err := Convert_v1_ComponentCondition_To_api_ComponentCondition(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + return nil +} + +func Convert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out *api.ComponentStatus, s conversion.Scope) error { + return autoConvert_v1_ComponentStatus_To_api_ComponentStatus(in, out, s) +} + +func autoConvert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, out *ComponentStatus, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ComponentCondition, len(*in)) + for i := range *in { + if err := Convert_api_ComponentCondition_To_v1_ComponentCondition(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + return nil +} + +func Convert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, out *ComponentStatus, s conversion.Scope) error { + return autoConvert_api_ComponentStatus_To_v1_ComponentStatus(in, out, s) +} + +func autoConvert_v1_ComponentStatusList_To_api_ComponentStatusList(in *ComponentStatusList, out *api.ComponentStatusList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.ComponentStatus, len(*in)) + for i := range *in { + if err := Convert_v1_ComponentStatus_To_api_ComponentStatus(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_ComponentStatusList_To_api_ComponentStatusList(in *ComponentStatusList, out *api.ComponentStatusList, s conversion.Scope) error { + return autoConvert_v1_ComponentStatusList_To_api_ComponentStatusList(in, out, s) +} + +func autoConvert_api_ComponentStatusList_To_v1_ComponentStatusList(in *api.ComponentStatusList, out *ComponentStatusList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ComponentStatus, len(*in)) + for i := range *in { + if err := Convert_api_ComponentStatus_To_v1_ComponentStatus(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_ComponentStatusList_To_v1_ComponentStatusList(in *api.ComponentStatusList, out *ComponentStatusList, s conversion.Scope) error { + return autoConvert_api_ComponentStatusList_To_v1_ComponentStatusList(in, out, s) +} + +func autoConvert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s conversion.Scope) error { + SetDefaults_ConfigMap(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + out.Data = in.Data + return nil +} + +func Convert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, s conversion.Scope) error { + return autoConvert_v1_ConfigMap_To_api_ConfigMap(in, out, s) +} + +func autoConvert_api_ConfigMap_To_v1_ConfigMap(in *api.ConfigMap, out *ConfigMap, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + out.Data = in.Data + return nil +} + +func Convert_api_ConfigMap_To_v1_ConfigMap(in *api.ConfigMap, out *ConfigMap, s conversion.Scope) error { + return autoConvert_api_ConfigMap_To_v1_ConfigMap(in, out, s) +} + +func autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in *ConfigMapKeySelector, out *api.ConfigMapKeySelector, s conversion.Scope) error { + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { + return err + } + out.Key = in.Key + return nil +} + +func Convert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in *ConfigMapKeySelector, out *api.ConfigMapKeySelector, s conversion.Scope) error { + return autoConvert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(in, out, s) +} + +func autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in *api.ConfigMapKeySelector, out *ConfigMapKeySelector, s conversion.Scope) error { + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { + return err + } + out.Key = in.Key + return nil +} + +func Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in *api.ConfigMapKeySelector, out *ConfigMapKeySelector, s conversion.Scope) error { + return autoConvert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in, out, s) +} + +func autoConvert_v1_ConfigMapList_To_api_ConfigMapList(in *ConfigMapList, out *api.ConfigMapList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.ConfigMap, len(*in)) + for i := range *in { + if err := Convert_v1_ConfigMap_To_api_ConfigMap(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_ConfigMapList_To_api_ConfigMapList(in *ConfigMapList, out *api.ConfigMapList, s conversion.Scope) error { + return autoConvert_v1_ConfigMapList_To_api_ConfigMapList(in, out, s) +} + +func autoConvert_api_ConfigMapList_To_v1_ConfigMapList(in *api.ConfigMapList, out *ConfigMapList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigMap, len(*in)) + for i := range *in { + if err := Convert_api_ConfigMap_To_v1_ConfigMap(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_ConfigMapList_To_v1_ConfigMapList(in *api.ConfigMapList, out *ConfigMapList, s conversion.Scope) error { + return autoConvert_api_ConfigMapList_To_v1_ConfigMapList(in, out, s) +} + +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 + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.KeyToPath, len(*in)) + for i := range *in { + if err := Convert_v1_KeyToPath_To_api_KeyToPath(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + out.DefaultMode = in.DefaultMode + return nil +} + +func Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error { + return autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in, out, s) +} + +func autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.ConfigMapVolumeSource, out *ConfigMapVolumeSource, s conversion.Scope) error { + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + if err := Convert_api_KeyToPath_To_v1_KeyToPath(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + out.DefaultMode = in.DefaultMode + return nil +} + +func Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.ConfigMapVolumeSource, out *ConfigMapVolumeSource, s conversion.Scope) error { + return autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in, out, s) +} + +func autoConvert_v1_Container_To_api_Container(in *Container, out *api.Container, s conversion.Scope) error { + SetDefaults_Container(in) + out.Name = in.Name + out.Image = in.Image + out.Command = in.Command + out.Args = in.Args + out.WorkingDir = in.WorkingDir + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]api.ContainerPort, len(*in)) + for i := range *in { + if err := Convert_v1_ContainerPort_To_api_ContainerPort(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ports = nil + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]api.EnvVar, len(*in)) + for i := range *in { + if err := Convert_v1_EnvVar_To_api_EnvVar(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Env = nil + } + if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil { + return err + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]api.VolumeMount, len(*in)) + for i := range *in { + if err := Convert_v1_VolumeMount_To_api_VolumeMount(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.VolumeMounts = nil + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(api.Probe) + if err := Convert_v1_Probe_To_api_Probe(*in, *out, s); err != nil { + return err + } + } else { + out.LivenessProbe = nil + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(api.Probe) + if err := Convert_v1_Probe_To_api_Probe(*in, *out, s); err != nil { + return err + } + } else { + out.ReadinessProbe = nil + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(api.Lifecycle) + if err := Convert_v1_Lifecycle_To_api_Lifecycle(*in, *out, s); err != nil { + return err + } + } else { + out.Lifecycle = nil + } + out.TerminationMessagePath = in.TerminationMessagePath + out.ImagePullPolicy = api.PullPolicy(in.ImagePullPolicy) + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(api.SecurityContext) + if err := Convert_v1_SecurityContext_To_api_SecurityContext(*in, *out, s); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + out.Stdin = in.Stdin + out.StdinOnce = in.StdinOnce + out.TTY = in.TTY + return nil +} + +func Convert_v1_Container_To_api_Container(in *Container, out *api.Container, s conversion.Scope) error { + return autoConvert_v1_Container_To_api_Container(in, out, s) +} + +func autoConvert_api_Container_To_v1_Container(in *api.Container, out *Container, s conversion.Scope) error { + out.Name = in.Name + out.Image = in.Image + out.Command = in.Command + out.Args = in.Args + out.WorkingDir = in.WorkingDir + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ContainerPort, len(*in)) + for i := range *in { + if err := Convert_api_ContainerPort_To_v1_ContainerPort(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ports = nil + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]EnvVar, len(*in)) + for i := range *in { + if err := Convert_api_EnvVar_To_v1_EnvVar(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Env = nil + } + if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil { + return err + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]VolumeMount, len(*in)) + for i := range *in { + if err := Convert_api_VolumeMount_To_v1_VolumeMount(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.VolumeMounts = nil + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + if err := Convert_api_Probe_To_v1_Probe(*in, *out, s); err != nil { + return err + } + } else { + out.LivenessProbe = nil + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + if err := Convert_api_Probe_To_v1_Probe(*in, *out, s); err != nil { + return err + } + } else { + out.ReadinessProbe = nil + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(Lifecycle) + if err := Convert_api_Lifecycle_To_v1_Lifecycle(*in, *out, s); err != nil { + return err + } + } else { + out.Lifecycle = nil + } + out.TerminationMessagePath = in.TerminationMessagePath + out.ImagePullPolicy = PullPolicy(in.ImagePullPolicy) + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(SecurityContext) + if err := Convert_api_SecurityContext_To_v1_SecurityContext(*in, *out, s); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + out.Stdin = in.Stdin + out.StdinOnce = in.StdinOnce + out.TTY = in.TTY + return nil +} + +func Convert_api_Container_To_v1_Container(in *api.Container, out *Container, s conversion.Scope) error { + return autoConvert_api_Container_To_v1_Container(in, out, s) +} + +func autoConvert_v1_ContainerImage_To_api_ContainerImage(in *ContainerImage, out *api.ContainerImage, s conversion.Scope) error { + out.Names = in.Names + out.SizeBytes = in.SizeBytes + return nil +} + +func Convert_v1_ContainerImage_To_api_ContainerImage(in *ContainerImage, out *api.ContainerImage, s conversion.Scope) error { + return autoConvert_v1_ContainerImage_To_api_ContainerImage(in, out, s) +} + +func autoConvert_api_ContainerImage_To_v1_ContainerImage(in *api.ContainerImage, out *ContainerImage, s conversion.Scope) error { + out.Names = in.Names + out.SizeBytes = in.SizeBytes + return nil +} + +func Convert_api_ContainerImage_To_v1_ContainerImage(in *api.ContainerImage, out *ContainerImage, s conversion.Scope) error { + return autoConvert_api_ContainerImage_To_v1_ContainerImage(in, out, s) +} + +func autoConvert_v1_ContainerPort_To_api_ContainerPort(in *ContainerPort, out *api.ContainerPort, s conversion.Scope) error { + SetDefaults_ContainerPort(in) + out.Name = in.Name + out.HostPort = in.HostPort + out.ContainerPort = in.ContainerPort + out.Protocol = api.Protocol(in.Protocol) + out.HostIP = in.HostIP + return nil +} + +func Convert_v1_ContainerPort_To_api_ContainerPort(in *ContainerPort, out *api.ContainerPort, s conversion.Scope) error { + return autoConvert_v1_ContainerPort_To_api_ContainerPort(in, out, s) +} + +func autoConvert_api_ContainerPort_To_v1_ContainerPort(in *api.ContainerPort, out *ContainerPort, s conversion.Scope) error { + out.Name = in.Name + out.HostPort = in.HostPort + out.ContainerPort = in.ContainerPort + out.Protocol = Protocol(in.Protocol) + out.HostIP = in.HostIP + return nil +} + +func Convert_api_ContainerPort_To_v1_ContainerPort(in *api.ContainerPort, out *ContainerPort, s conversion.Scope) error { + return autoConvert_api_ContainerPort_To_v1_ContainerPort(in, out, s) +} + +func autoConvert_v1_ContainerState_To_api_ContainerState(in *ContainerState, out *api.ContainerState, s conversion.Scope) error { + if in.Waiting != nil { + in, out := &in.Waiting, &out.Waiting + *out = new(api.ContainerStateWaiting) + if err := Convert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting(*in, *out, s); err != nil { + return err + } + } else { + out.Waiting = nil + } + if in.Running != nil { + in, out := &in.Running, &out.Running + *out = new(api.ContainerStateRunning) + if err := Convert_v1_ContainerStateRunning_To_api_ContainerStateRunning(*in, *out, s); err != nil { + return err + } + } else { + out.Running = nil + } + if in.Terminated != nil { + in, out := &in.Terminated, &out.Terminated + *out = new(api.ContainerStateTerminated) + if err := Convert_v1_ContainerStateTerminated_To_api_ContainerStateTerminated(*in, *out, s); err != nil { + return err + } + } else { + out.Terminated = nil + } + return nil +} + +func Convert_v1_ContainerState_To_api_ContainerState(in *ContainerState, out *api.ContainerState, s conversion.Scope) error { + return autoConvert_v1_ContainerState_To_api_ContainerState(in, out, s) +} + +func autoConvert_api_ContainerState_To_v1_ContainerState(in *api.ContainerState, out *ContainerState, s conversion.Scope) error { + if in.Waiting != nil { + in, out := &in.Waiting, &out.Waiting + *out = new(ContainerStateWaiting) + if err := Convert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting(*in, *out, s); err != nil { + return err + } + } else { + out.Waiting = nil + } + if in.Running != nil { + in, out := &in.Running, &out.Running + *out = new(ContainerStateRunning) + if err := Convert_api_ContainerStateRunning_To_v1_ContainerStateRunning(*in, *out, s); err != nil { + return err + } + } else { + out.Running = nil + } + if in.Terminated != nil { + in, out := &in.Terminated, &out.Terminated + *out = new(ContainerStateTerminated) + if err := Convert_api_ContainerStateTerminated_To_v1_ContainerStateTerminated(*in, *out, s); err != nil { + return err + } + } else { + out.Terminated = nil + } + return nil +} + +func Convert_api_ContainerState_To_v1_ContainerState(in *api.ContainerState, out *ContainerState, s conversion.Scope) error { + return autoConvert_api_ContainerState_To_v1_ContainerState(in, out, s) +} + +func autoConvert_v1_ContainerStateRunning_To_api_ContainerStateRunning(in *ContainerStateRunning, out *api.ContainerStateRunning, s conversion.Scope) error { + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ContainerStateRunning_To_api_ContainerStateRunning(in *ContainerStateRunning, out *api.ContainerStateRunning, s conversion.Scope) error { + return autoConvert_v1_ContainerStateRunning_To_api_ContainerStateRunning(in, out, s) +} + +func autoConvert_api_ContainerStateRunning_To_v1_ContainerStateRunning(in *api.ContainerStateRunning, out *ContainerStateRunning, s conversion.Scope) error { + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil { + return err + } + return nil +} + +func Convert_api_ContainerStateRunning_To_v1_ContainerStateRunning(in *api.ContainerStateRunning, out *ContainerStateRunning, s conversion.Scope) error { + return autoConvert_api_ContainerStateRunning_To_v1_ContainerStateRunning(in, out, s) +} + +func autoConvert_v1_ContainerStateTerminated_To_api_ContainerStateTerminated(in *ContainerStateTerminated, out *api.ContainerStateTerminated, s conversion.Scope) error { + out.ExitCode = in.ExitCode + out.Signal = in.Signal + out.Reason = in.Reason + out.Message = in.Message + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FinishedAt, &out.FinishedAt, s); err != nil { + return err + } + out.ContainerID = in.ContainerID + return nil +} + +func Convert_v1_ContainerStateTerminated_To_api_ContainerStateTerminated(in *ContainerStateTerminated, out *api.ContainerStateTerminated, s conversion.Scope) error { + return autoConvert_v1_ContainerStateTerminated_To_api_ContainerStateTerminated(in, out, s) +} + +func autoConvert_api_ContainerStateTerminated_To_v1_ContainerStateTerminated(in *api.ContainerStateTerminated, out *ContainerStateTerminated, s conversion.Scope) error { + out.ExitCode = in.ExitCode + out.Signal = in.Signal + out.Reason = in.Reason + out.Message = in.Message + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.StartedAt, &out.StartedAt, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FinishedAt, &out.FinishedAt, s); err != nil { + return err + } + out.ContainerID = in.ContainerID + return nil +} + +func Convert_api_ContainerStateTerminated_To_v1_ContainerStateTerminated(in *api.ContainerStateTerminated, out *ContainerStateTerminated, s conversion.Scope) error { + return autoConvert_api_ContainerStateTerminated_To_v1_ContainerStateTerminated(in, out, s) +} + +func autoConvert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting(in *ContainerStateWaiting, out *api.ContainerStateWaiting, s conversion.Scope) error { + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting(in *ContainerStateWaiting, out *api.ContainerStateWaiting, s conversion.Scope) error { + return autoConvert_v1_ContainerStateWaiting_To_api_ContainerStateWaiting(in, out, s) +} + +func autoConvert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting(in *api.ContainerStateWaiting, out *ContainerStateWaiting, s conversion.Scope) error { + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting(in *api.ContainerStateWaiting, out *ContainerStateWaiting, s conversion.Scope) error { + return autoConvert_api_ContainerStateWaiting_To_v1_ContainerStateWaiting(in, out, s) +} + +func autoConvert_v1_ContainerStatus_To_api_ContainerStatus(in *ContainerStatus, out *api.ContainerStatus, s conversion.Scope) error { + out.Name = in.Name + if err := Convert_v1_ContainerState_To_api_ContainerState(&in.State, &out.State, s); err != nil { + return err + } + if err := Convert_v1_ContainerState_To_api_ContainerState(&in.LastTerminationState, &out.LastTerminationState, s); err != nil { + return err + } + out.Ready = in.Ready + out.RestartCount = in.RestartCount + out.Image = in.Image + out.ImageID = in.ImageID + out.ContainerID = in.ContainerID + return nil +} + +func Convert_v1_ContainerStatus_To_api_ContainerStatus(in *ContainerStatus, out *api.ContainerStatus, s conversion.Scope) error { + return autoConvert_v1_ContainerStatus_To_api_ContainerStatus(in, out, s) +} + +func autoConvert_api_ContainerStatus_To_v1_ContainerStatus(in *api.ContainerStatus, out *ContainerStatus, s conversion.Scope) error { + out.Name = in.Name + if err := Convert_api_ContainerState_To_v1_ContainerState(&in.State, &out.State, s); err != nil { + return err + } + if err := Convert_api_ContainerState_To_v1_ContainerState(&in.LastTerminationState, &out.LastTerminationState, s); err != nil { + return err + } + out.Ready = in.Ready + out.RestartCount = in.RestartCount + out.Image = in.Image + out.ImageID = in.ImageID + out.ContainerID = in.ContainerID + return nil +} + +func Convert_api_ContainerStatus_To_v1_ContainerStatus(in *api.ContainerStatus, out *ContainerStatus, s conversion.Scope) error { + return autoConvert_api_ContainerStatus_To_v1_ContainerStatus(in, out, s) +} + +func autoConvert_v1_DaemonEndpoint_To_api_DaemonEndpoint(in *DaemonEndpoint, out *api.DaemonEndpoint, s conversion.Scope) error { + out.Port = in.Port + return nil +} + +func Convert_v1_DaemonEndpoint_To_api_DaemonEndpoint(in *DaemonEndpoint, out *api.DaemonEndpoint, s conversion.Scope) error { + return autoConvert_v1_DaemonEndpoint_To_api_DaemonEndpoint(in, out, s) +} + +func autoConvert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in *api.DaemonEndpoint, out *DaemonEndpoint, s conversion.Scope) error { + out.Port = in.Port + return nil +} + +func Convert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in *api.DaemonEndpoint, out *DaemonEndpoint, s conversion.Scope) error { + return autoConvert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in, out, s) +} + +func autoConvert_v1_DeleteOptions_To_api_DeleteOptions(in *DeleteOptions, out *api.DeleteOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.GracePeriodSeconds = in.GracePeriodSeconds + if in.Preconditions != nil { + in, out := &in.Preconditions, &out.Preconditions + *out = new(api.Preconditions) + if err := Convert_v1_Preconditions_To_api_Preconditions(*in, *out, s); err != nil { + return err + } + } else { + out.Preconditions = nil + } + out.OrphanDependents = in.OrphanDependents + return nil +} + +func Convert_v1_DeleteOptions_To_api_DeleteOptions(in *DeleteOptions, out *api.DeleteOptions, s conversion.Scope) error { + return autoConvert_v1_DeleteOptions_To_api_DeleteOptions(in, out, s) +} + +func autoConvert_api_DeleteOptions_To_v1_DeleteOptions(in *api.DeleteOptions, out *DeleteOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.GracePeriodSeconds = in.GracePeriodSeconds + if in.Preconditions != nil { + in, out := &in.Preconditions, &out.Preconditions + *out = new(Preconditions) + if err := Convert_api_Preconditions_To_v1_Preconditions(*in, *out, s); err != nil { + return err + } + } else { + out.Preconditions = nil + } + out.OrphanDependents = in.OrphanDependents + return nil +} + +func Convert_api_DeleteOptions_To_v1_DeleteOptions(in *api.DeleteOptions, out *DeleteOptions, s conversion.Scope) error { + return autoConvert_api_DeleteOptions_To_v1_DeleteOptions(in, out, s) +} + +func autoConvert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in *DownwardAPIVolumeFile, out *api.DownwardAPIVolumeFile, s conversion.Scope) error { + out.Path = in.Path + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(api.ObjectFieldSelector) + if err := Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(api.ResourceFieldSelector) + if err := Convert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + out.Mode = in.Mode + return nil +} + +func Convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in *DownwardAPIVolumeFile, out *api.DownwardAPIVolumeFile, s conversion.Scope) error { + return autoConvert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in, out, s) +} + +func autoConvert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, s conversion.Scope) error { + out.Path = in.Path + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + if err := Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := Convert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + out.Mode = in.Mode + return nil +} + +func Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.DownwardAPIVolumeFile, out *DownwardAPIVolumeFile, s conversion.Scope) error { + return autoConvert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in, out, s) +} + +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)) + for i := range *in { + if err := Convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + out.DefaultMode = in.DefaultMode + return nil +} + +func Convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in *DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, s conversion.Scope) error { + return autoConvert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in, out, s) +} + +func autoConvert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(in *api.DownwardAPIVolumeSource, out *DownwardAPIVolumeSource, s conversion.Scope) error { + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DownwardAPIVolumeFile, len(*in)) + for i := range *in { + if err := Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + out.DefaultMode = in.DefaultMode + return nil +} + +func Convert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(in *api.DownwardAPIVolumeSource, out *DownwardAPIVolumeSource, s conversion.Scope) error { + return autoConvert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(in, out, s) +} + +func autoConvert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in *EmptyDirVolumeSource, out *api.EmptyDirVolumeSource, s conversion.Scope) error { + out.Medium = api.StorageMedium(in.Medium) + return nil +} + +func Convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in *EmptyDirVolumeSource, out *api.EmptyDirVolumeSource, s conversion.Scope) error { + return autoConvert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in, out, s) +} + +func autoConvert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in *api.EmptyDirVolumeSource, out *EmptyDirVolumeSource, s conversion.Scope) error { + out.Medium = StorageMedium(in.Medium) + return nil +} + +func Convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in *api.EmptyDirVolumeSource, out *EmptyDirVolumeSource, s conversion.Scope) error { + return autoConvert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in, out, s) +} + +func autoConvert_v1_EndpointAddress_To_api_EndpointAddress(in *EndpointAddress, out *api.EndpointAddress, s conversion.Scope) error { + out.IP = in.IP + out.Hostname = in.Hostname + out.NodeName = in.NodeName + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(api.ObjectReference) + if err := Convert_v1_ObjectReference_To_api_ObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.TargetRef = nil + } + return nil +} + +func Convert_v1_EndpointAddress_To_api_EndpointAddress(in *EndpointAddress, out *api.EndpointAddress, s conversion.Scope) error { + return autoConvert_v1_EndpointAddress_To_api_EndpointAddress(in, out, s) +} + +func autoConvert_api_EndpointAddress_To_v1_EndpointAddress(in *api.EndpointAddress, out *EndpointAddress, s conversion.Scope) error { + out.IP = in.IP + out.Hostname = in.Hostname + out.NodeName = in.NodeName + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(ObjectReference) + if err := Convert_api_ObjectReference_To_v1_ObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.TargetRef = nil + } + return nil +} + +func Convert_api_EndpointAddress_To_v1_EndpointAddress(in *api.EndpointAddress, out *EndpointAddress, s conversion.Scope) error { + return autoConvert_api_EndpointAddress_To_v1_EndpointAddress(in, out, s) +} + +func autoConvert_v1_EndpointPort_To_api_EndpointPort(in *EndpointPort, out *api.EndpointPort, s conversion.Scope) error { + out.Name = in.Name + out.Port = in.Port + out.Protocol = api.Protocol(in.Protocol) + return nil +} + +func Convert_v1_EndpointPort_To_api_EndpointPort(in *EndpointPort, out *api.EndpointPort, s conversion.Scope) error { + return autoConvert_v1_EndpointPort_To_api_EndpointPort(in, out, s) +} + +func autoConvert_api_EndpointPort_To_v1_EndpointPort(in *api.EndpointPort, out *EndpointPort, s conversion.Scope) error { + out.Name = in.Name + out.Port = in.Port + out.Protocol = Protocol(in.Protocol) + return nil +} + +func Convert_api_EndpointPort_To_v1_EndpointPort(in *api.EndpointPort, out *EndpointPort, s conversion.Scope) error { + return autoConvert_api_EndpointPort_To_v1_EndpointPort(in, out, s) +} + +func autoConvert_v1_EndpointSubset_To_api_EndpointSubset(in *EndpointSubset, out *api.EndpointSubset, s conversion.Scope) error { + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]api.EndpointAddress, len(*in)) + for i := range *in { + if err := Convert_v1_EndpointAddress_To_api_EndpointAddress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if in.NotReadyAddresses != nil { + in, out := &in.NotReadyAddresses, &out.NotReadyAddresses + *out = make([]api.EndpointAddress, len(*in)) + for i := range *in { + if err := Convert_v1_EndpointAddress_To_api_EndpointAddress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.NotReadyAddresses = nil + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]api.EndpointPort, len(*in)) + for i := range *in { + if err := Convert_v1_EndpointPort_To_api_EndpointPort(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ports = nil + } + return nil +} + +func Convert_v1_EndpointSubset_To_api_EndpointSubset(in *EndpointSubset, out *api.EndpointSubset, s conversion.Scope) error { + return autoConvert_v1_EndpointSubset_To_api_EndpointSubset(in, out, s) +} + +func autoConvert_api_EndpointSubset_To_v1_EndpointSubset(in *api.EndpointSubset, out *EndpointSubset, s conversion.Scope) error { + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := Convert_api_EndpointAddress_To_v1_EndpointAddress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if in.NotReadyAddresses != nil { + in, out := &in.NotReadyAddresses, &out.NotReadyAddresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := Convert_api_EndpointAddress_To_v1_EndpointAddress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.NotReadyAddresses = nil + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]EndpointPort, len(*in)) + for i := range *in { + if err := Convert_api_EndpointPort_To_v1_EndpointPort(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ports = nil + } + return nil +} + +func Convert_api_EndpointSubset_To_v1_EndpointSubset(in *api.EndpointSubset, out *EndpointSubset, s conversion.Scope) error { + return autoConvert_api_EndpointSubset_To_v1_EndpointSubset(in, out, s) +} + +func autoConvert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s conversion.Scope) error { + SetDefaults_Endpoints(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if in.Subsets != nil { + in, out := &in.Subsets, &out.Subsets + *out = make([]api.EndpointSubset, len(*in)) + for i := range *in { + if err := Convert_v1_EndpointSubset_To_api_EndpointSubset(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Subsets = nil + } + return nil +} + +func Convert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, s conversion.Scope) error { + return autoConvert_v1_Endpoints_To_api_Endpoints(in, out, s) +} + +func autoConvert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if in.Subsets != nil { + in, out := &in.Subsets, &out.Subsets + *out = make([]EndpointSubset, len(*in)) + for i := range *in { + if err := Convert_api_EndpointSubset_To_v1_EndpointSubset(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Subsets = nil + } + return nil +} + +func Convert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, s conversion.Scope) error { + return autoConvert_api_Endpoints_To_v1_Endpoints(in, out, s) +} + +func autoConvert_v1_EndpointsList_To_api_EndpointsList(in *EndpointsList, out *api.EndpointsList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Endpoints, len(*in)) + for i := range *in { + if err := Convert_v1_Endpoints_To_api_Endpoints(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_EndpointsList_To_api_EndpointsList(in *EndpointsList, out *api.EndpointsList, s conversion.Scope) error { + return autoConvert_v1_EndpointsList_To_api_EndpointsList(in, out, s) +} + +func autoConvert_api_EndpointsList_To_v1_EndpointsList(in *api.EndpointsList, out *EndpointsList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Endpoints, len(*in)) + for i := range *in { + if err := Convert_api_Endpoints_To_v1_Endpoints(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_EndpointsList_To_v1_EndpointsList(in *api.EndpointsList, out *EndpointsList, s conversion.Scope) error { + return autoConvert_api_EndpointsList_To_v1_EndpointsList(in, out, s) +} + +func autoConvert_v1_EnvVar_To_api_EnvVar(in *EnvVar, out *api.EnvVar, s conversion.Scope) error { + out.Name = in.Name + out.Value = in.Value + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(api.EnvVarSource) + if err := Convert_v1_EnvVarSource_To_api_EnvVarSource(*in, *out, s); err != nil { + return err + } + } else { + out.ValueFrom = nil + } + return nil +} + +func Convert_v1_EnvVar_To_api_EnvVar(in *EnvVar, out *api.EnvVar, s conversion.Scope) error { + return autoConvert_v1_EnvVar_To_api_EnvVar(in, out, s) +} + +func autoConvert_api_EnvVar_To_v1_EnvVar(in *api.EnvVar, out *EnvVar, s conversion.Scope) error { + out.Name = in.Name + out.Value = in.Value + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(EnvVarSource) + if err := Convert_api_EnvVarSource_To_v1_EnvVarSource(*in, *out, s); err != nil { + return err + } + } else { + out.ValueFrom = nil + } + return nil +} + +func Convert_api_EnvVar_To_v1_EnvVar(in *api.EnvVar, out *EnvVar, s conversion.Scope) error { + return autoConvert_api_EnvVar_To_v1_EnvVar(in, out, s) +} + +func autoConvert_v1_EnvVarSource_To_api_EnvVarSource(in *EnvVarSource, out *api.EnvVarSource, s conversion.Scope) error { + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(api.ObjectFieldSelector) + if err := Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(api.ResourceFieldSelector) + if err := Convert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(api.ConfigMapKeySelector) + if err := Convert_v1_ConfigMapKeySelector_To_api_ConfigMapKeySelector(*in, *out, s); err != nil { + return err + } + } else { + out.ConfigMapKeyRef = nil + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(api.SecretKeySelector) + if err := Convert_v1_SecretKeySelector_To_api_SecretKeySelector(*in, *out, s); err != nil { + return err + } + } else { + out.SecretKeyRef = nil + } + return nil +} + +func Convert_v1_EnvVarSource_To_api_EnvVarSource(in *EnvVarSource, out *api.EnvVarSource, s conversion.Scope) error { + return autoConvert_v1_EnvVarSource_To_api_EnvVarSource(in, out, s) +} + +func autoConvert_api_EnvVarSource_To_v1_EnvVarSource(in *api.EnvVarSource, out *EnvVarSource, s conversion.Scope) error { + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + if err := Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := Convert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(*in, *out, s); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(ConfigMapKeySelector) + if err := Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(*in, *out, s); err != nil { + return err + } + } else { + out.ConfigMapKeyRef = nil + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(SecretKeySelector) + if err := Convert_api_SecretKeySelector_To_v1_SecretKeySelector(*in, *out, s); err != nil { + return err + } + } else { + out.SecretKeyRef = nil + } + return nil +} + +func Convert_api_EnvVarSource_To_v1_EnvVarSource(in *api.EnvVarSource, out *EnvVarSource, s conversion.Scope) error { + return autoConvert_api_EnvVarSource_To_v1_EnvVarSource(in, out, s) +} + +func autoConvert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + if err := Convert_v1_EventSource_To_api_EventSource(&in.Source, &out.Source, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FirstTimestamp, &out.FirstTimestamp, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTimestamp, &out.LastTimestamp, s); err != nil { + return err + } + out.Count = in.Count + out.Type = in.Type + return nil +} + +func Convert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope) error { + return autoConvert_v1_Event_To_api_Event(in, out, s) +} + +func autoConvert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.InvolvedObject, &out.InvolvedObject, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + if err := Convert_api_EventSource_To_v1_EventSource(&in.Source, &out.Source, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.FirstTimestamp, &out.FirstTimestamp, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTimestamp, &out.LastTimestamp, s); err != nil { + return err + } + out.Count = in.Count + out.Type = in.Type + return nil +} + +func Convert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope) error { + return autoConvert_api_Event_To_v1_Event(in, out, s) +} + +func autoConvert_v1_EventList_To_api_EventList(in *EventList, out *api.EventList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Event, len(*in)) + for i := range *in { + if err := Convert_v1_Event_To_api_Event(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_EventList_To_api_EventList(in *EventList, out *api.EventList, s conversion.Scope) error { + return autoConvert_v1_EventList_To_api_EventList(in, out, s) +} + +func autoConvert_api_EventList_To_v1_EventList(in *api.EventList, out *EventList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + if err := Convert_api_Event_To_v1_Event(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_EventList_To_v1_EventList(in *api.EventList, out *EventList, s conversion.Scope) error { + return autoConvert_api_EventList_To_v1_EventList(in, out, s) +} + +func autoConvert_v1_EventSource_To_api_EventSource(in *EventSource, out *api.EventSource, s conversion.Scope) error { + out.Component = in.Component + out.Host = in.Host + return nil +} + +func Convert_v1_EventSource_To_api_EventSource(in *EventSource, out *api.EventSource, s conversion.Scope) error { + return autoConvert_v1_EventSource_To_api_EventSource(in, out, s) +} + +func autoConvert_api_EventSource_To_v1_EventSource(in *api.EventSource, out *EventSource, s conversion.Scope) error { + out.Component = in.Component + out.Host = in.Host + return nil +} + +func Convert_api_EventSource_To_v1_EventSource(in *api.EventSource, out *EventSource, s conversion.Scope) error { + return autoConvert_api_EventSource_To_v1_EventSource(in, out, s) +} + +func autoConvert_v1_ExecAction_To_api_ExecAction(in *ExecAction, out *api.ExecAction, s conversion.Scope) error { + out.Command = in.Command + return nil +} + +func Convert_v1_ExecAction_To_api_ExecAction(in *ExecAction, out *api.ExecAction, s conversion.Scope) error { + return autoConvert_v1_ExecAction_To_api_ExecAction(in, out, s) +} + +func autoConvert_api_ExecAction_To_v1_ExecAction(in *api.ExecAction, out *ExecAction, s conversion.Scope) error { + out.Command = in.Command + return nil +} + +func Convert_api_ExecAction_To_v1_ExecAction(in *api.ExecAction, out *ExecAction, s conversion.Scope) error { + return autoConvert_api_ExecAction_To_v1_ExecAction(in, out, s) +} + +func autoConvert_v1_ExportOptions_To_api_ExportOptions(in *ExportOptions, out *api.ExportOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Export = in.Export + out.Exact = in.Exact + return nil +} + +func Convert_v1_ExportOptions_To_api_ExportOptions(in *ExportOptions, out *api.ExportOptions, s conversion.Scope) error { + return autoConvert_v1_ExportOptions_To_api_ExportOptions(in, out, s) +} + +func autoConvert_api_ExportOptions_To_v1_ExportOptions(in *api.ExportOptions, out *ExportOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Export = in.Export + out.Exact = in.Exact + return nil +} + +func Convert_api_ExportOptions_To_v1_ExportOptions(in *api.ExportOptions, out *ExportOptions, s conversion.Scope) error { + return autoConvert_api_ExportOptions_To_v1_ExportOptions(in, out, s) +} + +func autoConvert_v1_FCVolumeSource_To_api_FCVolumeSource(in *FCVolumeSource, out *api.FCVolumeSource, s conversion.Scope) error { + out.TargetWWNs = in.TargetWWNs + out.Lun = in.Lun + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_FCVolumeSource_To_api_FCVolumeSource(in *FCVolumeSource, out *api.FCVolumeSource, s conversion.Scope) error { + return autoConvert_v1_FCVolumeSource_To_api_FCVolumeSource(in, out, s) +} + +func autoConvert_api_FCVolumeSource_To_v1_FCVolumeSource(in *api.FCVolumeSource, out *FCVolumeSource, s conversion.Scope) error { + out.TargetWWNs = in.TargetWWNs + out.Lun = in.Lun + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_FCVolumeSource_To_v1_FCVolumeSource(in *api.FCVolumeSource, out *FCVolumeSource, s conversion.Scope) error { + return autoConvert_api_FCVolumeSource_To_v1_FCVolumeSource(in, out, s) +} + +func autoConvert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in *FlexVolumeSource, out *api.FlexVolumeSource, s conversion.Scope) error { + out.Driver = in.Driver + out.FSType = in.FSType + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(api.LocalObjectReference) + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + out.Options = in.Options + return nil +} + +func Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in *FlexVolumeSource, out *api.FlexVolumeSource, s conversion.Scope) error { + return autoConvert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in, out, s) +} + +func autoConvert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in *api.FlexVolumeSource, out *FlexVolumeSource, s conversion.Scope) error { + out.Driver = in.Driver + out.FSType = in.FSType + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + out.Options = in.Options + return nil +} + +func Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in *api.FlexVolumeSource, out *FlexVolumeSource, s conversion.Scope) error { + return autoConvert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in, out, s) +} + +func autoConvert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in *FlockerVolumeSource, out *api.FlockerVolumeSource, s conversion.Scope) error { + out.DatasetName = in.DatasetName + return nil +} + +func Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in *FlockerVolumeSource, out *api.FlockerVolumeSource, s conversion.Scope) error { + return autoConvert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in, out, s) +} + +func autoConvert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in *api.FlockerVolumeSource, out *FlockerVolumeSource, s conversion.Scope) error { + out.DatasetName = in.DatasetName + return nil +} + +func Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in *api.FlockerVolumeSource, out *FlockerVolumeSource, s conversion.Scope) error { + return autoConvert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in, out, s) +} + +func autoConvert_v1_GCEPersistentDiskVolumeSource_To_api_GCEPersistentDiskVolumeSource(in *GCEPersistentDiskVolumeSource, out *api.GCEPersistentDiskVolumeSource, s conversion.Scope) error { + out.PDName = in.PDName + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_GCEPersistentDiskVolumeSource_To_api_GCEPersistentDiskVolumeSource(in *GCEPersistentDiskVolumeSource, out *api.GCEPersistentDiskVolumeSource, s conversion.Scope) error { + return autoConvert_v1_GCEPersistentDiskVolumeSource_To_api_GCEPersistentDiskVolumeSource(in, out, s) +} + +func autoConvert_api_GCEPersistentDiskVolumeSource_To_v1_GCEPersistentDiskVolumeSource(in *api.GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, s conversion.Scope) error { + out.PDName = in.PDName + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_GCEPersistentDiskVolumeSource_To_v1_GCEPersistentDiskVolumeSource(in *api.GCEPersistentDiskVolumeSource, out *GCEPersistentDiskVolumeSource, s conversion.Scope) error { + return autoConvert_api_GCEPersistentDiskVolumeSource_To_v1_GCEPersistentDiskVolumeSource(in, out, s) +} + +func autoConvert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in *GitRepoVolumeSource, out *api.GitRepoVolumeSource, s conversion.Scope) error { + out.Repository = in.Repository + out.Revision = in.Revision + out.Directory = in.Directory + return nil +} + +func Convert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in *GitRepoVolumeSource, out *api.GitRepoVolumeSource, s conversion.Scope) error { + return autoConvert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(in, out, s) +} + +func autoConvert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in *api.GitRepoVolumeSource, out *GitRepoVolumeSource, s conversion.Scope) error { + out.Repository = in.Repository + out.Revision = in.Revision + out.Directory = in.Directory + return nil +} + +func Convert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in *api.GitRepoVolumeSource, out *GitRepoVolumeSource, s conversion.Scope) error { + return autoConvert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(in, out, s) +} + +func autoConvert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(in *GlusterfsVolumeSource, out *api.GlusterfsVolumeSource, s conversion.Scope) error { + out.EndpointsName = in.EndpointsName + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(in *GlusterfsVolumeSource, out *api.GlusterfsVolumeSource, s conversion.Scope) error { + return autoConvert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(in, out, s) +} + +func autoConvert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in *api.GlusterfsVolumeSource, out *GlusterfsVolumeSource, s conversion.Scope) error { + out.EndpointsName = in.EndpointsName + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in *api.GlusterfsVolumeSource, out *GlusterfsVolumeSource, s conversion.Scope) error { + return autoConvert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in, out, s) +} + +func autoConvert_v1_HTTPGetAction_To_api_HTTPGetAction(in *HTTPGetAction, out *api.HTTPGetAction, s conversion.Scope) error { + SetDefaults_HTTPGetAction(in) + out.Path = in.Path + if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil { + return err + } + out.Host = in.Host + out.Scheme = api.URIScheme(in.Scheme) + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]api.HTTPHeader, len(*in)) + for i := range *in { + if err := Convert_v1_HTTPHeader_To_api_HTTPHeader(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.HTTPHeaders = nil + } + return nil +} + +func Convert_v1_HTTPGetAction_To_api_HTTPGetAction(in *HTTPGetAction, out *api.HTTPGetAction, s conversion.Scope) error { + return autoConvert_v1_HTTPGetAction_To_api_HTTPGetAction(in, out, s) +} + +func autoConvert_api_HTTPGetAction_To_v1_HTTPGetAction(in *api.HTTPGetAction, out *HTTPGetAction, s conversion.Scope) error { + out.Path = in.Path + if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil { + return err + } + out.Host = in.Host + out.Scheme = URIScheme(in.Scheme) + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]HTTPHeader, len(*in)) + for i := range *in { + if err := Convert_api_HTTPHeader_To_v1_HTTPHeader(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.HTTPHeaders = nil + } + return nil +} + +func Convert_api_HTTPGetAction_To_v1_HTTPGetAction(in *api.HTTPGetAction, out *HTTPGetAction, s conversion.Scope) error { + return autoConvert_api_HTTPGetAction_To_v1_HTTPGetAction(in, out, s) +} + +func autoConvert_v1_HTTPHeader_To_api_HTTPHeader(in *HTTPHeader, out *api.HTTPHeader, s conversion.Scope) error { + out.Name = in.Name + out.Value = in.Value + return nil +} + +func Convert_v1_HTTPHeader_To_api_HTTPHeader(in *HTTPHeader, out *api.HTTPHeader, s conversion.Scope) error { + return autoConvert_v1_HTTPHeader_To_api_HTTPHeader(in, out, s) +} + +func autoConvert_api_HTTPHeader_To_v1_HTTPHeader(in *api.HTTPHeader, out *HTTPHeader, s conversion.Scope) error { + out.Name = in.Name + out.Value = in.Value + return nil +} + +func Convert_api_HTTPHeader_To_v1_HTTPHeader(in *api.HTTPHeader, out *HTTPHeader, s conversion.Scope) error { + return autoConvert_api_HTTPHeader_To_v1_HTTPHeader(in, out, s) +} + +func autoConvert_v1_Handler_To_api_Handler(in *Handler, out *api.Handler, s conversion.Scope) error { + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(api.ExecAction) + if err := Convert_v1_ExecAction_To_api_ExecAction(*in, *out, s); err != nil { + return err + } + } else { + out.Exec = nil + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(api.HTTPGetAction) + if err := Convert_v1_HTTPGetAction_To_api_HTTPGetAction(*in, *out, s); err != nil { + return err + } + } else { + out.HTTPGet = nil + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(api.TCPSocketAction) + if err := Convert_v1_TCPSocketAction_To_api_TCPSocketAction(*in, *out, s); err != nil { + return err + } + } else { + out.TCPSocket = nil + } + return nil +} + +func Convert_v1_Handler_To_api_Handler(in *Handler, out *api.Handler, s conversion.Scope) error { + return autoConvert_v1_Handler_To_api_Handler(in, out, s) +} + +func autoConvert_api_Handler_To_v1_Handler(in *api.Handler, out *Handler, s conversion.Scope) error { + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(ExecAction) + if err := Convert_api_ExecAction_To_v1_ExecAction(*in, *out, s); err != nil { + return err + } + } else { + out.Exec = nil + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(HTTPGetAction) + if err := Convert_api_HTTPGetAction_To_v1_HTTPGetAction(*in, *out, s); err != nil { + return err + } + } else { + out.HTTPGet = nil + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(TCPSocketAction) + if err := Convert_api_TCPSocketAction_To_v1_TCPSocketAction(*in, *out, s); err != nil { + return err + } + } else { + out.TCPSocket = nil + } + return nil +} + +func Convert_api_Handler_To_v1_Handler(in *api.Handler, out *Handler, s conversion.Scope) error { + return autoConvert_api_Handler_To_v1_Handler(in, out, s) +} + +func autoConvert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in *HostPathVolumeSource, out *api.HostPathVolumeSource, s conversion.Scope) error { + out.Path = in.Path + return nil +} + +func Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in *HostPathVolumeSource, out *api.HostPathVolumeSource, s conversion.Scope) error { + return autoConvert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(in, out, s) +} + +func autoConvert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in *api.HostPathVolumeSource, out *HostPathVolumeSource, s conversion.Scope) error { + out.Path = in.Path + return nil +} + +func Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in *api.HostPathVolumeSource, out *HostPathVolumeSource, s conversion.Scope) error { + return autoConvert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in, out, s) +} + +func autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in *ISCSIVolumeSource, out *api.ISCSIVolumeSource, s conversion.Scope) error { + SetDefaults_ISCSIVolumeSource(in) + out.TargetPortal = in.TargetPortal + out.IQN = in.IQN + out.Lun = in.Lun + out.ISCSIInterface = in.ISCSIInterface + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in *ISCSIVolumeSource, out *api.ISCSIVolumeSource, s conversion.Scope) error { + return autoConvert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(in, out, s) +} + +func autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSource, out *ISCSIVolumeSource, s conversion.Scope) error { + out.TargetPortal = in.TargetPortal + out.IQN = in.IQN + out.Lun = in.Lun + out.ISCSIInterface = in.ISCSIInterface + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSource, out *ISCSIVolumeSource, s conversion.Scope) error { + return autoConvert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in, out, s) +} + +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 +} + +func Convert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s conversion.Scope) error { + return autoConvert_v1_KeyToPath_To_api_KeyToPath(in, out, 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 +} + +func Convert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *KeyToPath, s conversion.Scope) error { + return autoConvert_api_KeyToPath_To_v1_KeyToPath(in, out, s) +} + +func autoConvert_v1_Lifecycle_To_api_Lifecycle(in *Lifecycle, out *api.Lifecycle, s conversion.Scope) error { + if in.PostStart != nil { + in, out := &in.PostStart, &out.PostStart + *out = new(api.Handler) + if err := Convert_v1_Handler_To_api_Handler(*in, *out, s); err != nil { + return err + } + } else { + out.PostStart = nil + } + if in.PreStop != nil { + in, out := &in.PreStop, &out.PreStop + *out = new(api.Handler) + if err := Convert_v1_Handler_To_api_Handler(*in, *out, s); err != nil { + return err + } + } else { + out.PreStop = nil + } + return nil +} + +func Convert_v1_Lifecycle_To_api_Lifecycle(in *Lifecycle, out *api.Lifecycle, s conversion.Scope) error { + return autoConvert_v1_Lifecycle_To_api_Lifecycle(in, out, s) +} + +func autoConvert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *Lifecycle, s conversion.Scope) error { + if in.PostStart != nil { + in, out := &in.PostStart, &out.PostStart + *out = new(Handler) + if err := Convert_api_Handler_To_v1_Handler(*in, *out, s); err != nil { + return err + } + } else { + out.PostStart = nil + } + if in.PreStop != nil { + in, out := &in.PreStop, &out.PreStop + *out = new(Handler) + if err := Convert_api_Handler_To_v1_Handler(*in, *out, s); err != nil { + return err + } + } else { + out.PreStop = nil + } + return nil +} + +func Convert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *Lifecycle, s conversion.Scope) error { + return autoConvert_api_Lifecycle_To_v1_Lifecycle(in, out, s) +} + +func autoConvert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +func Convert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange, s conversion.Scope) error { + return autoConvert_v1_LimitRange_To_api_LimitRange(in, out, s) +} + +func autoConvert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +func Convert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange, s conversion.Scope) error { + return autoConvert_api_LimitRange_To_v1_LimitRange(in, out, s) +} + +func autoConvert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *api.LimitRangeItem, s conversion.Scope) error { + SetDefaults_LimitRangeItem(in) + out.Type = api.LimitType(in.Type) + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Max, &out.Max, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Min, &out.Min, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Default, &out.Default, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.DefaultRequest, &out.DefaultRequest, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio, s); err != nil { + return err + } + return nil +} + +func Convert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *api.LimitRangeItem, s conversion.Scope) error { + return autoConvert_v1_LimitRangeItem_To_api_LimitRangeItem(in, out, s) +} + +func autoConvert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out *LimitRangeItem, s conversion.Scope) error { + out.Type = LimitType(in.Type) + if in.Max != nil { + in, out := &in.Max, &out.Max + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Max = nil + } + if in.Min != nil { + in, out := &in.Min, &out.Min + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Min = nil + } + if in.Default != nil { + in, out := &in.Default, &out.Default + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Default = nil + } + if in.DefaultRequest != nil { + in, out := &in.DefaultRequest, &out.DefaultRequest + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.DefaultRequest = nil + } + if in.MaxLimitRequestRatio != nil { + in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.MaxLimitRequestRatio = nil + } + return nil +} + +func Convert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out *LimitRangeItem, s conversion.Scope) error { + return autoConvert_api_LimitRangeItem_To_v1_LimitRangeItem(in, out, s) +} + +func autoConvert_v1_LimitRangeList_To_api_LimitRangeList(in *LimitRangeList, out *api.LimitRangeList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.LimitRange, len(*in)) + for i := range *in { + if err := Convert_v1_LimitRange_To_api_LimitRange(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_LimitRangeList_To_api_LimitRangeList(in *LimitRangeList, out *api.LimitRangeList, s conversion.Scope) error { + return autoConvert_v1_LimitRangeList_To_api_LimitRangeList(in, out, s) +} + +func autoConvert_api_LimitRangeList_To_v1_LimitRangeList(in *api.LimitRangeList, out *LimitRangeList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LimitRange, len(*in)) + for i := range *in { + if err := Convert_api_LimitRange_To_v1_LimitRange(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_LimitRangeList_To_v1_LimitRangeList(in *api.LimitRangeList, out *LimitRangeList, s conversion.Scope) error { + return autoConvert_api_LimitRangeList_To_v1_LimitRangeList(in, out, s) +} + +func autoConvert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in *LimitRangeSpec, out *api.LimitRangeSpec, s conversion.Scope) error { + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make([]api.LimitRangeItem, len(*in)) + for i := range *in { + if err := Convert_v1_LimitRangeItem_To_api_LimitRangeItem(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Limits = nil + } + return nil +} + +func Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in *LimitRangeSpec, out *api.LimitRangeSpec, s conversion.Scope) error { + return autoConvert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in, out, s) +} + +func autoConvert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in *api.LimitRangeSpec, out *LimitRangeSpec, s conversion.Scope) error { + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make([]LimitRangeItem, len(*in)) + for i := range *in { + if err := Convert_api_LimitRangeItem_To_v1_LimitRangeItem(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Limits = nil + } + return nil +} + +func Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in *api.LimitRangeSpec, out *LimitRangeSpec, s conversion.Scope) error { + return autoConvert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in, out, s) +} + +func autoConvert_v1_List_To_api_List(in *List, out *api.List, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]runtime.Object, len(*in)) + for i := range *in { + if err := runtime.Convert_runtime_RawExtension_To_runtime_Object(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_List_To_api_List(in *List, out *api.List, s conversion.Scope) error { + return autoConvert_v1_List_To_api_List(in, out, s) +} + +func autoConvert_api_List_To_v1_List(in *api.List, out *List, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]runtime.RawExtension, len(*in)) + for i := range *in { + if err := runtime.Convert_runtime_Object_To_runtime_RawExtension(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_List_To_v1_List(in *api.List, out *List, s conversion.Scope) error { + return autoConvert_api_List_To_v1_List(in, out, s) +} + +func autoConvert_v1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.ListOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_string_To_labels_Selector(&in.LabelSelector, &out.LabelSelector, s); err != nil { + return err + } + if err := api.Convert_string_To_fields_Selector(&in.FieldSelector, &out.FieldSelector, s); err != nil { + return err + } + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + out.TimeoutSeconds = in.TimeoutSeconds + return nil +} + +func Convert_v1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.ListOptions, s conversion.Scope) error { + return autoConvert_v1_ListOptions_To_api_ListOptions(in, out, s) +} + +func autoConvert_api_ListOptions_To_v1_ListOptions(in *api.ListOptions, out *ListOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_labels_Selector_To_string(&in.LabelSelector, &out.LabelSelector, s); err != nil { + return err + } + if err := api.Convert_fields_Selector_To_string(&in.FieldSelector, &out.FieldSelector, s); err != nil { + return err + } + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + out.TimeoutSeconds = in.TimeoutSeconds + return nil +} + +func Convert_api_ListOptions_To_v1_ListOptions(in *api.ListOptions, out *ListOptions, s conversion.Scope) error { + return autoConvert_api_ListOptions_To_v1_ListOptions(in, out, s) +} + +func autoConvert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(in *LoadBalancerIngress, out *api.LoadBalancerIngress, s conversion.Scope) error { + out.IP = in.IP + out.Hostname = in.Hostname + return nil +} + +func Convert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(in *LoadBalancerIngress, out *api.LoadBalancerIngress, s conversion.Scope) error { + return autoConvert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(in, out, s) +} + +func autoConvert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in *api.LoadBalancerIngress, out *LoadBalancerIngress, s conversion.Scope) error { + out.IP = in.IP + out.Hostname = in.Hostname + return nil +} + +func Convert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in *api.LoadBalancerIngress, out *LoadBalancerIngress, s conversion.Scope) error { + return autoConvert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in, out, s) +} + +func autoConvert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in *LoadBalancerStatus, out *api.LoadBalancerStatus, s conversion.Scope) error { + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]api.LoadBalancerIngress, len(*in)) + for i := range *in { + if err := Convert_v1_LoadBalancerIngress_To_api_LoadBalancerIngress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ingress = nil + } + return nil +} + +func Convert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in *LoadBalancerStatus, out *api.LoadBalancerStatus, s conversion.Scope) error { + return autoConvert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in, out, s) +} + +func autoConvert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(in *api.LoadBalancerStatus, out *LoadBalancerStatus, s conversion.Scope) error { + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]LoadBalancerIngress, len(*in)) + for i := range *in { + if err := Convert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ingress = nil + } + return nil +} + +func Convert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(in *api.LoadBalancerStatus, out *LoadBalancerStatus, s conversion.Scope) error { + return autoConvert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(in, out, s) +} + +func autoConvert_v1_LocalObjectReference_To_api_LocalObjectReference(in *LocalObjectReference, out *api.LocalObjectReference, s conversion.Scope) error { + out.Name = in.Name + return nil +} + +func Convert_v1_LocalObjectReference_To_api_LocalObjectReference(in *LocalObjectReference, out *api.LocalObjectReference, s conversion.Scope) error { + return autoConvert_v1_LocalObjectReference_To_api_LocalObjectReference(in, out, s) +} + +func autoConvert_api_LocalObjectReference_To_v1_LocalObjectReference(in *api.LocalObjectReference, out *LocalObjectReference, s conversion.Scope) error { + out.Name = in.Name + return nil +} + +func Convert_api_LocalObjectReference_To_v1_LocalObjectReference(in *api.LocalObjectReference, out *LocalObjectReference, s conversion.Scope) error { + return autoConvert_api_LocalObjectReference_To_v1_LocalObjectReference(in, out, s) +} + +func autoConvert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in *NFSVolumeSource, out *api.NFSVolumeSource, s conversion.Scope) error { + out.Server = in.Server + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in *NFSVolumeSource, out *api.NFSVolumeSource, s conversion.Scope) error { + return autoConvert_v1_NFSVolumeSource_To_api_NFSVolumeSource(in, out, s) +} + +func autoConvert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in *api.NFSVolumeSource, out *NFSVolumeSource, s conversion.Scope) error { + out.Server = in.Server + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in *api.NFSVolumeSource, out *NFSVolumeSource, s conversion.Scope) error { + return autoConvert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in, out, s) +} + +func autoConvert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_NamespaceSpec_To_api_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NamespaceStatus_To_api_NamespaceStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, s conversion.Scope) error { + return autoConvert_v1_Namespace_To_api_Namespace(in, out, s) +} + +func autoConvert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_NamespaceSpec_To_v1_NamespaceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_NamespaceStatus_To_v1_NamespaceStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, s conversion.Scope) error { + return autoConvert_api_Namespace_To_v1_Namespace(in, out, s) +} + +func autoConvert_v1_NamespaceList_To_api_NamespaceList(in *NamespaceList, out *api.NamespaceList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Namespace, len(*in)) + for i := range *in { + if err := Convert_v1_Namespace_To_api_Namespace(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_NamespaceList_To_api_NamespaceList(in *NamespaceList, out *api.NamespaceList, s conversion.Scope) error { + return autoConvert_v1_NamespaceList_To_api_NamespaceList(in, out, s) +} + +func autoConvert_api_NamespaceList_To_v1_NamespaceList(in *api.NamespaceList, out *NamespaceList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Namespace, len(*in)) + for i := range *in { + if err := Convert_api_Namespace_To_v1_Namespace(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_NamespaceList_To_v1_NamespaceList(in *api.NamespaceList, out *NamespaceList, s conversion.Scope) error { + return autoConvert_api_NamespaceList_To_v1_NamespaceList(in, out, s) +} + +func autoConvert_v1_NamespaceSpec_To_api_NamespaceSpec(in *NamespaceSpec, out *api.NamespaceSpec, s conversion.Scope) error { + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]api.FinalizerName, len(*in)) + for i := range *in { + (*out)[i] = api.FinalizerName((*in)[i]) + } + } else { + out.Finalizers = nil + } + return nil +} + +func Convert_v1_NamespaceSpec_To_api_NamespaceSpec(in *NamespaceSpec, out *api.NamespaceSpec, s conversion.Scope) error { + return autoConvert_v1_NamespaceSpec_To_api_NamespaceSpec(in, out, s) +} + +func autoConvert_api_NamespaceSpec_To_v1_NamespaceSpec(in *api.NamespaceSpec, out *NamespaceSpec, s conversion.Scope) error { + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]FinalizerName, len(*in)) + for i := range *in { + (*out)[i] = FinalizerName((*in)[i]) + } + } else { + out.Finalizers = nil + } + return nil +} + +func Convert_api_NamespaceSpec_To_v1_NamespaceSpec(in *api.NamespaceSpec, out *NamespaceSpec, s conversion.Scope) error { + return autoConvert_api_NamespaceSpec_To_v1_NamespaceSpec(in, out, s) +} + +func autoConvert_v1_NamespaceStatus_To_api_NamespaceStatus(in *NamespaceStatus, out *api.NamespaceStatus, s conversion.Scope) error { + SetDefaults_NamespaceStatus(in) + out.Phase = api.NamespacePhase(in.Phase) + return nil +} + +func Convert_v1_NamespaceStatus_To_api_NamespaceStatus(in *NamespaceStatus, out *api.NamespaceStatus, s conversion.Scope) error { + return autoConvert_v1_NamespaceStatus_To_api_NamespaceStatus(in, out, s) +} + +func autoConvert_api_NamespaceStatus_To_v1_NamespaceStatus(in *api.NamespaceStatus, out *NamespaceStatus, s conversion.Scope) error { + out.Phase = NamespacePhase(in.Phase) + return nil +} + +func Convert_api_NamespaceStatus_To_v1_NamespaceStatus(in *api.NamespaceStatus, out *NamespaceStatus, s conversion.Scope) error { + return autoConvert_api_NamespaceStatus_To_v1_NamespaceStatus(in, out, s) +} + +func autoConvert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) error { + SetDefaults_Node(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_NodeSpec_To_api_NodeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeStatus_To_api_NodeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) error { + return autoConvert_v1_Node_To_api_Node(in, out, s) +} + +func autoConvert_api_Node_To_v1_Node(in *api.Node, out *Node, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_NodeSpec_To_v1_NodeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_NodeStatus_To_v1_NodeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_Node_To_v1_Node(in *api.Node, out *Node, s conversion.Scope) error { + return autoConvert_api_Node_To_v1_Node(in, out, s) +} + +func autoConvert_v1_NodeAddress_To_api_NodeAddress(in *NodeAddress, out *api.NodeAddress, s conversion.Scope) error { + out.Type = api.NodeAddressType(in.Type) + out.Address = in.Address + return nil +} + +func Convert_v1_NodeAddress_To_api_NodeAddress(in *NodeAddress, out *api.NodeAddress, s conversion.Scope) error { + return autoConvert_v1_NodeAddress_To_api_NodeAddress(in, out, s) +} + +func autoConvert_api_NodeAddress_To_v1_NodeAddress(in *api.NodeAddress, out *NodeAddress, s conversion.Scope) error { + out.Type = NodeAddressType(in.Type) + out.Address = in.Address + return nil +} + +func Convert_api_NodeAddress_To_v1_NodeAddress(in *api.NodeAddress, out *NodeAddress, s conversion.Scope) error { + return autoConvert_api_NodeAddress_To_v1_NodeAddress(in, out, s) +} + +func autoConvert_v1_NodeAffinity_To_api_NodeAffinity(in *NodeAffinity, out *api.NodeAffinity, s conversion.Scope) error { + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = new(api.NodeSelector) + if err := Convert_v1_NodeSelector_To_api_NodeSelector(*in, *out, s); err != nil { + return err + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]api.PreferredSchedulingTerm, len(*in)) + for i := range *in { + if err := Convert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil +} + +func Convert_v1_NodeAffinity_To_api_NodeAffinity(in *NodeAffinity, out *api.NodeAffinity, s conversion.Scope) error { + return autoConvert_v1_NodeAffinity_To_api_NodeAffinity(in, out, s) +} + +func autoConvert_api_NodeAffinity_To_v1_NodeAffinity(in *api.NodeAffinity, out *NodeAffinity, s conversion.Scope) error { + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = new(NodeSelector) + if err := Convert_api_NodeSelector_To_v1_NodeSelector(*in, *out, s); err != nil { + return err + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]PreferredSchedulingTerm, len(*in)) + for i := range *in { + if err := Convert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil +} + +func Convert_api_NodeAffinity_To_v1_NodeAffinity(in *api.NodeAffinity, out *NodeAffinity, s conversion.Scope) error { + return autoConvert_api_NodeAffinity_To_v1_NodeAffinity(in, out, s) +} + +func autoConvert_v1_NodeCondition_To_api_NodeCondition(in *NodeCondition, out *api.NodeCondition, s conversion.Scope) error { + out.Type = api.NodeConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastHeartbeatTime, &out.LastHeartbeatTime, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_NodeCondition_To_api_NodeCondition(in *NodeCondition, out *api.NodeCondition, s conversion.Scope) error { + return autoConvert_v1_NodeCondition_To_api_NodeCondition(in, out, s) +} + +func autoConvert_api_NodeCondition_To_v1_NodeCondition(in *api.NodeCondition, out *NodeCondition, s conversion.Scope) error { + out.Type = NodeConditionType(in.Type) + out.Status = ConditionStatus(in.Status) + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastHeartbeatTime, &out.LastHeartbeatTime, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_api_NodeCondition_To_v1_NodeCondition(in *api.NodeCondition, out *NodeCondition, s conversion.Scope) error { + return autoConvert_api_NodeCondition_To_v1_NodeCondition(in, out, s) +} + +func autoConvert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(in *NodeDaemonEndpoints, out *api.NodeDaemonEndpoints, s conversion.Scope) error { + if err := Convert_v1_DaemonEndpoint_To_api_DaemonEndpoint(&in.KubeletEndpoint, &out.KubeletEndpoint, s); err != nil { + return err + } + return nil +} + +func Convert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(in *NodeDaemonEndpoints, out *api.NodeDaemonEndpoints, s conversion.Scope) error { + return autoConvert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(in, out, s) +} + +func autoConvert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in *api.NodeDaemonEndpoints, out *NodeDaemonEndpoints, s conversion.Scope) error { + if err := Convert_api_DaemonEndpoint_To_v1_DaemonEndpoint(&in.KubeletEndpoint, &out.KubeletEndpoint, s); err != nil { + return err + } + return nil +} + +func Convert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in *api.NodeDaemonEndpoints, out *NodeDaemonEndpoints, s conversion.Scope) error { + return autoConvert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in, out, s) +} + +func autoConvert_v1_NodeList_To_api_NodeList(in *NodeList, out *api.NodeList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Node, len(*in)) + for i := range *in { + if err := Convert_v1_Node_To_api_Node(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_NodeList_To_api_NodeList(in *NodeList, out *api.NodeList, s conversion.Scope) error { + return autoConvert_v1_NodeList_To_api_NodeList(in, out, s) +} + +func autoConvert_api_NodeList_To_v1_NodeList(in *api.NodeList, out *NodeList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Node, len(*in)) + for i := range *in { + if err := Convert_api_Node_To_v1_Node(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_NodeList_To_v1_NodeList(in *api.NodeList, out *NodeList, s conversion.Scope) error { + return autoConvert_api_NodeList_To_v1_NodeList(in, out, s) +} + +func autoConvert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in *NodeProxyOptions, out *api.NodeProxyOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Path = in.Path + return nil +} + +func Convert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in *NodeProxyOptions, out *api.NodeProxyOptions, s conversion.Scope) error { + return autoConvert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in, out, s) +} + +func autoConvert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in *api.NodeProxyOptions, out *NodeProxyOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Path = in.Path + return nil +} + +func Convert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in *api.NodeProxyOptions, out *NodeProxyOptions, s conversion.Scope) error { + return autoConvert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in, out, s) +} + +func autoConvert_v1_NodeSelector_To_api_NodeSelector(in *NodeSelector, out *api.NodeSelector, s conversion.Scope) error { + if in.NodeSelectorTerms != nil { + in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms + *out = make([]api.NodeSelectorTerm, len(*in)) + for i := range *in { + if err := Convert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.NodeSelectorTerms = nil + } + return nil +} + +func Convert_v1_NodeSelector_To_api_NodeSelector(in *NodeSelector, out *api.NodeSelector, s conversion.Scope) error { + return autoConvert_v1_NodeSelector_To_api_NodeSelector(in, out, s) +} + +func autoConvert_api_NodeSelector_To_v1_NodeSelector(in *api.NodeSelector, out *NodeSelector, s conversion.Scope) error { + if in.NodeSelectorTerms != nil { + in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms + *out = make([]NodeSelectorTerm, len(*in)) + for i := range *in { + if err := Convert_api_NodeSelectorTerm_To_v1_NodeSelectorTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.NodeSelectorTerms = nil + } + return nil +} + +func Convert_api_NodeSelector_To_v1_NodeSelector(in *api.NodeSelector, out *NodeSelector, s conversion.Scope) error { + return autoConvert_api_NodeSelector_To_v1_NodeSelector(in, out, s) +} + +func autoConvert_v1_NodeSelectorRequirement_To_api_NodeSelectorRequirement(in *NodeSelectorRequirement, out *api.NodeSelectorRequirement, s conversion.Scope) error { + out.Key = in.Key + out.Operator = api.NodeSelectorOperator(in.Operator) + out.Values = in.Values + return nil +} + +func Convert_v1_NodeSelectorRequirement_To_api_NodeSelectorRequirement(in *NodeSelectorRequirement, out *api.NodeSelectorRequirement, s conversion.Scope) error { + return autoConvert_v1_NodeSelectorRequirement_To_api_NodeSelectorRequirement(in, out, s) +} + +func autoConvert_api_NodeSelectorRequirement_To_v1_NodeSelectorRequirement(in *api.NodeSelectorRequirement, out *NodeSelectorRequirement, s conversion.Scope) error { + out.Key = in.Key + out.Operator = NodeSelectorOperator(in.Operator) + out.Values = in.Values + return nil +} + +func Convert_api_NodeSelectorRequirement_To_v1_NodeSelectorRequirement(in *api.NodeSelectorRequirement, out *NodeSelectorRequirement, s conversion.Scope) error { + return autoConvert_api_NodeSelectorRequirement_To_v1_NodeSelectorRequirement(in, out, s) +} + +func autoConvert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(in *NodeSelectorTerm, out *api.NodeSelectorTerm, s conversion.Scope) error { + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]api.NodeSelectorRequirement, len(*in)) + for i := range *in { + if err := Convert_v1_NodeSelectorRequirement_To_api_NodeSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil +} + +func Convert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(in *NodeSelectorTerm, out *api.NodeSelectorTerm, s conversion.Scope) error { + return autoConvert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(in, out, s) +} + +func autoConvert_api_NodeSelectorTerm_To_v1_NodeSelectorTerm(in *api.NodeSelectorTerm, out *NodeSelectorTerm, s conversion.Scope) error { + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]NodeSelectorRequirement, len(*in)) + for i := range *in { + if err := Convert_api_NodeSelectorRequirement_To_v1_NodeSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil +} + +func Convert_api_NodeSelectorTerm_To_v1_NodeSelectorTerm(in *api.NodeSelectorTerm, out *NodeSelectorTerm, s conversion.Scope) error { + return autoConvert_api_NodeSelectorTerm_To_v1_NodeSelectorTerm(in, out, s) +} + +func autoConvert_v1_NodeSpec_To_api_NodeSpec(in *NodeSpec, out *api.NodeSpec, s conversion.Scope) error { + out.PodCIDR = in.PodCIDR + out.ExternalID = in.ExternalID + out.ProviderID = in.ProviderID + out.Unschedulable = in.Unschedulable + return nil +} + +func Convert_v1_NodeSpec_To_api_NodeSpec(in *NodeSpec, out *api.NodeSpec, s conversion.Scope) error { + return autoConvert_v1_NodeSpec_To_api_NodeSpec(in, out, s) +} + +func autoConvert_api_NodeSpec_To_v1_NodeSpec(in *api.NodeSpec, out *NodeSpec, s conversion.Scope) error { + out.PodCIDR = in.PodCIDR + out.ExternalID = in.ExternalID + out.ProviderID = in.ProviderID + out.Unschedulable = in.Unschedulable + return nil +} + +func Convert_api_NodeSpec_To_v1_NodeSpec(in *api.NodeSpec, out *NodeSpec, s conversion.Scope) error { + return autoConvert_api_NodeSpec_To_v1_NodeSpec(in, out, s) +} + +func autoConvert_v1_NodeStatus_To_api_NodeStatus(in *NodeStatus, out *api.NodeStatus, s conversion.Scope) error { + SetDefaults_NodeStatus(in) + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Capacity, &out.Capacity, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Allocatable, &out.Allocatable, s); err != nil { + return err + } + out.Phase = api.NodePhase(in.Phase) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]api.NodeCondition, len(*in)) + for i := range *in { + if err := Convert_v1_NodeCondition_To_api_NodeCondition(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]api.NodeAddress, len(*in)) + for i := range *in { + if err := Convert_v1_NodeAddress_To_api_NodeAddress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if err := Convert_v1_NodeDaemonEndpoints_To_api_NodeDaemonEndpoints(&in.DaemonEndpoints, &out.DaemonEndpoints, s); err != nil { + return err + } + if err := Convert_v1_NodeSystemInfo_To_api_NodeSystemInfo(&in.NodeInfo, &out.NodeInfo, s); err != nil { + return err + } + if in.Images != nil { + in, out := &in.Images, &out.Images + *out = make([]api.ContainerImage, len(*in)) + for i := range *in { + if err := Convert_v1_ContainerImage_To_api_ContainerImage(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Images = nil + } + if in.VolumesInUse != nil { + in, out := &in.VolumesInUse, &out.VolumesInUse + *out = make([]api.UniqueVolumeName, len(*in)) + for i := range *in { + (*out)[i] = api.UniqueVolumeName((*in)[i]) + } + } else { + out.VolumesInUse = nil + } + if in.VolumesAttached != nil { + in, out := &in.VolumesAttached, &out.VolumesAttached + *out = make([]api.AttachedVolume, len(*in)) + for i := range *in { + if err := Convert_v1_AttachedVolume_To_api_AttachedVolume(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.VolumesAttached = nil + } + return nil +} + +func Convert_v1_NodeStatus_To_api_NodeStatus(in *NodeStatus, out *api.NodeStatus, s conversion.Scope) error { + return autoConvert_v1_NodeStatus_To_api_NodeStatus(in, out, s) +} + +func autoConvert_api_NodeStatus_To_v1_NodeStatus(in *api.NodeStatus, out *NodeStatus, s conversion.Scope) error { + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Capacity = nil + } + if in.Allocatable != nil { + in, out := &in.Allocatable, &out.Allocatable + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Allocatable = nil + } + out.Phase = NodePhase(in.Phase) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]NodeCondition, len(*in)) + for i := range *in { + if err := Convert_api_NodeCondition_To_v1_NodeCondition(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]NodeAddress, len(*in)) + for i := range *in { + if err := Convert_api_NodeAddress_To_v1_NodeAddress(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if err := Convert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(&in.DaemonEndpoints, &out.DaemonEndpoints, s); err != nil { + return err + } + if err := Convert_api_NodeSystemInfo_To_v1_NodeSystemInfo(&in.NodeInfo, &out.NodeInfo, s); err != nil { + return err + } + if in.Images != nil { + in, out := &in.Images, &out.Images + *out = make([]ContainerImage, len(*in)) + for i := range *in { + if err := Convert_api_ContainerImage_To_v1_ContainerImage(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Images = nil + } + if in.VolumesInUse != nil { + in, out := &in.VolumesInUse, &out.VolumesInUse + *out = make([]UniqueVolumeName, len(*in)) + for i := range *in { + (*out)[i] = UniqueVolumeName((*in)[i]) + } + } else { + out.VolumesInUse = nil + } + if in.VolumesAttached != nil { + in, out := &in.VolumesAttached, &out.VolumesAttached + *out = make([]AttachedVolume, len(*in)) + for i := range *in { + if err := Convert_api_AttachedVolume_To_v1_AttachedVolume(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.VolumesAttached = nil + } + return nil +} + +func Convert_api_NodeStatus_To_v1_NodeStatus(in *api.NodeStatus, out *NodeStatus, s conversion.Scope) error { + return autoConvert_api_NodeStatus_To_v1_NodeStatus(in, out, s) +} + +func autoConvert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in *NodeSystemInfo, out *api.NodeSystemInfo, s conversion.Scope) error { + out.MachineID = in.MachineID + out.SystemUUID = in.SystemUUID + out.BootID = in.BootID + out.KernelVersion = in.KernelVersion + out.OSImage = in.OSImage + out.ContainerRuntimeVersion = in.ContainerRuntimeVersion + out.KubeletVersion = in.KubeletVersion + out.KubeProxyVersion = in.KubeProxyVersion + out.OperatingSystem = in.OperatingSystem + out.Architecture = in.Architecture + return nil +} + +func Convert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in *NodeSystemInfo, out *api.NodeSystemInfo, s conversion.Scope) error { + return autoConvert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in, out, s) +} + +func autoConvert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo, out *NodeSystemInfo, s conversion.Scope) error { + out.MachineID = in.MachineID + out.SystemUUID = in.SystemUUID + out.BootID = in.BootID + out.KernelVersion = in.KernelVersion + out.OSImage = in.OSImage + out.ContainerRuntimeVersion = in.ContainerRuntimeVersion + out.KubeletVersion = in.KubeletVersion + out.KubeProxyVersion = in.KubeProxyVersion + out.OperatingSystem = in.OperatingSystem + out.Architecture = in.Architecture + return nil +} + +func Convert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo, out *NodeSystemInfo, s conversion.Scope) error { + return autoConvert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in, out, s) +} + +func autoConvert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in *ObjectFieldSelector, out *api.ObjectFieldSelector, s conversion.Scope) error { + SetDefaults_ObjectFieldSelector(in) + out.APIVersion = in.APIVersion + out.FieldPath = in.FieldPath + return nil +} + +func Convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in *ObjectFieldSelector, out *api.ObjectFieldSelector, s conversion.Scope) error { + return autoConvert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(in, out, s) +} + +func autoConvert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in *api.ObjectFieldSelector, out *ObjectFieldSelector, s conversion.Scope) error { + out.APIVersion = in.APIVersion + out.FieldPath = in.FieldPath + return nil +} + +func Convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in *api.ObjectFieldSelector, out *ObjectFieldSelector, s conversion.Scope) error { + return autoConvert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(in, out, s) +} + +func autoConvert_v1_ObjectMeta_To_api_ObjectMeta(in *ObjectMeta, out *api.ObjectMeta, s conversion.Scope) error { + out.Name = in.Name + out.GenerateName = in.GenerateName + out.Namespace = in.Namespace + out.SelfLink = in.SelfLink + out.UID = types.UID(in.UID) + out.ResourceVersion = in.ResourceVersion + out.Generation = in.Generation + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.CreationTimestamp, &out.CreationTimestamp, s); err != nil { + return err + } + out.DeletionTimestamp = in.DeletionTimestamp + out.DeletionGracePeriodSeconds = in.DeletionGracePeriodSeconds + out.Labels = in.Labels + out.Annotations = in.Annotations + if in.OwnerReferences != nil { + in, out := &in.OwnerReferences, &out.OwnerReferences + *out = make([]api.OwnerReference, len(*in)) + for i := range *in { + if err := Convert_v1_OwnerReference_To_api_OwnerReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.OwnerReferences = nil + } + out.Finalizers = in.Finalizers + out.ClusterName = in.ClusterName + return nil +} + +func Convert_v1_ObjectMeta_To_api_ObjectMeta(in *ObjectMeta, out *api.ObjectMeta, s conversion.Scope) error { + return autoConvert_v1_ObjectMeta_To_api_ObjectMeta(in, out, s) +} + +func autoConvert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *ObjectMeta, s conversion.Scope) error { + out.Name = in.Name + out.GenerateName = in.GenerateName + out.Namespace = in.Namespace + out.SelfLink = in.SelfLink + out.UID = types.UID(in.UID) + out.ResourceVersion = in.ResourceVersion + out.Generation = in.Generation + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.CreationTimestamp, &out.CreationTimestamp, s); err != nil { + return err + } + out.DeletionTimestamp = in.DeletionTimestamp + out.DeletionGracePeriodSeconds = in.DeletionGracePeriodSeconds + out.Labels = in.Labels + out.Annotations = in.Annotations + if in.OwnerReferences != nil { + in, out := &in.OwnerReferences, &out.OwnerReferences + *out = make([]OwnerReference, len(*in)) + for i := range *in { + if err := Convert_api_OwnerReference_To_v1_OwnerReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.OwnerReferences = nil + } + out.Finalizers = in.Finalizers + out.ClusterName = in.ClusterName + return nil +} + +func Convert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *ObjectMeta, s conversion.Scope) error { + return autoConvert_api_ObjectMeta_To_v1_ObjectMeta(in, out, s) +} + +func autoConvert_v1_ObjectReference_To_api_ObjectReference(in *ObjectReference, out *api.ObjectReference, s conversion.Scope) error { + out.Kind = in.Kind + out.Namespace = in.Namespace + out.Name = in.Name + out.UID = types.UID(in.UID) + out.APIVersion = in.APIVersion + out.ResourceVersion = in.ResourceVersion + out.FieldPath = in.FieldPath + return nil +} + +func Convert_v1_ObjectReference_To_api_ObjectReference(in *ObjectReference, out *api.ObjectReference, s conversion.Scope) error { + return autoConvert_v1_ObjectReference_To_api_ObjectReference(in, out, s) +} + +func autoConvert_api_ObjectReference_To_v1_ObjectReference(in *api.ObjectReference, out *ObjectReference, s conversion.Scope) error { + out.Kind = in.Kind + out.Namespace = in.Namespace + out.Name = in.Name + out.UID = types.UID(in.UID) + out.APIVersion = in.APIVersion + out.ResourceVersion = in.ResourceVersion + out.FieldPath = in.FieldPath + return nil +} + +func Convert_api_ObjectReference_To_v1_ObjectReference(in *api.ObjectReference, out *ObjectReference, s conversion.Scope) error { + return autoConvert_api_ObjectReference_To_v1_ObjectReference(in, out, s) +} + +func autoConvert_v1_OwnerReference_To_api_OwnerReference(in *OwnerReference, out *api.OwnerReference, s conversion.Scope) error { + out.APIVersion = in.APIVersion + out.Kind = in.Kind + out.Name = in.Name + out.UID = types.UID(in.UID) + out.Controller = in.Controller + return nil +} + +func Convert_v1_OwnerReference_To_api_OwnerReference(in *OwnerReference, out *api.OwnerReference, s conversion.Scope) error { + return autoConvert_v1_OwnerReference_To_api_OwnerReference(in, out, s) +} + +func autoConvert_api_OwnerReference_To_v1_OwnerReference(in *api.OwnerReference, out *OwnerReference, s conversion.Scope) error { + out.APIVersion = in.APIVersion + out.Kind = in.Kind + out.Name = in.Name + out.UID = types.UID(in.UID) + out.Controller = in.Controller + return nil +} + +func Convert_api_OwnerReference_To_v1_OwnerReference(in *api.OwnerReference, out *OwnerReference, s conversion.Scope) error { + return autoConvert_api_OwnerReference_To_v1_OwnerReference(in, out, s) +} + +func autoConvert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, out *api.PersistentVolume, s conversion.Scope) error { + SetDefaults_PersistentVolume(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, out *api.PersistentVolume, s conversion.Scope) error { + return autoConvert_v1_PersistentVolume_To_api_PersistentVolume(in, out, s) +} + +func autoConvert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolume, out *PersistentVolume, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolume, out *PersistentVolume, s conversion.Scope) error { + return autoConvert_api_PersistentVolume_To_v1_PersistentVolume(in, out, s) +} + +func autoConvert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *PersistentVolumeClaim, out *api.PersistentVolumeClaim, s conversion.Scope) error { + SetDefaults_PersistentVolumeClaim(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *PersistentVolumeClaim, out *api.PersistentVolumeClaim, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in, out, s) +} + +func autoConvert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in *api.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in *api.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in, out, s) +} + +func autoConvert_v1_PersistentVolumeClaimList_To_api_PersistentVolumeClaimList(in *PersistentVolumeClaimList, out *api.PersistentVolumeClaimList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_PersistentVolumeClaimList_To_api_PersistentVolumeClaimList(in *PersistentVolumeClaimList, out *api.PersistentVolumeClaimList, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeClaimList_To_api_PersistentVolumeClaimList(in, out, s) +} + +func autoConvert_api_PersistentVolumeClaimList_To_v1_PersistentVolumeClaimList(in *api.PersistentVolumeClaimList, out *PersistentVolumeClaimList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := Convert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_PersistentVolumeClaimList_To_v1_PersistentVolumeClaimList(in *api.PersistentVolumeClaimList, out *PersistentVolumeClaimList, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeClaimList_To_v1_PersistentVolumeClaimList(in, out, s) +} + +func autoConvert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(in *PersistentVolumeClaimSpec, out *api.PersistentVolumeClaimSpec, s conversion.Scope) error { + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]api.PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = api.PersistentVolumeAccessMode((*in)[i]) + } + } else { + out.AccessModes = nil + } + out.Selector = in.Selector + if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil { + return err + } + out.VolumeName = in.VolumeName + return nil +} + +func Convert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(in *PersistentVolumeClaimSpec, out *api.PersistentVolumeClaimSpec, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(in, out, s) +} + +func autoConvert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(in *api.PersistentVolumeClaimSpec, out *PersistentVolumeClaimSpec, s conversion.Scope) error { + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = PersistentVolumeAccessMode((*in)[i]) + } + } else { + out.AccessModes = nil + } + out.Selector = in.Selector + if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil { + return err + } + out.VolumeName = in.VolumeName + return nil +} + +func Convert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(in *api.PersistentVolumeClaimSpec, out *PersistentVolumeClaimSpec, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(in, out, s) +} + +func autoConvert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus(in *PersistentVolumeClaimStatus, out *api.PersistentVolumeClaimStatus, s conversion.Scope) error { + out.Phase = api.PersistentVolumeClaimPhase(in.Phase) + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]api.PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = api.PersistentVolumeAccessMode((*in)[i]) + } + } else { + out.AccessModes = nil + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Capacity, &out.Capacity, s); err != nil { + return err + } + return nil +} + +func Convert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus(in *PersistentVolumeClaimStatus, out *api.PersistentVolumeClaimStatus, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus(in, out, s) +} + +func autoConvert_api_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimStatus(in *api.PersistentVolumeClaimStatus, out *PersistentVolumeClaimStatus, s conversion.Scope) error { + out.Phase = PersistentVolumeClaimPhase(in.Phase) + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = PersistentVolumeAccessMode((*in)[i]) + } + } else { + out.AccessModes = nil + } + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Capacity = nil + } + return nil +} + +func Convert_api_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimStatus(in *api.PersistentVolumeClaimStatus, out *PersistentVolumeClaimStatus, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeClaimStatus_To_v1_PersistentVolumeClaimStatus(in, out, s) +} + +func autoConvert_v1_PersistentVolumeClaimVolumeSource_To_api_PersistentVolumeClaimVolumeSource(in *PersistentVolumeClaimVolumeSource, out *api.PersistentVolumeClaimVolumeSource, s conversion.Scope) error { + out.ClaimName = in.ClaimName + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_PersistentVolumeClaimVolumeSource_To_api_PersistentVolumeClaimVolumeSource(in *PersistentVolumeClaimVolumeSource, out *api.PersistentVolumeClaimVolumeSource, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeClaimVolumeSource_To_api_PersistentVolumeClaimVolumeSource(in, out, s) +} + +func autoConvert_api_PersistentVolumeClaimVolumeSource_To_v1_PersistentVolumeClaimVolumeSource(in *api.PersistentVolumeClaimVolumeSource, out *PersistentVolumeClaimVolumeSource, s conversion.Scope) error { + out.ClaimName = in.ClaimName + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_PersistentVolumeClaimVolumeSource_To_v1_PersistentVolumeClaimVolumeSource(in *api.PersistentVolumeClaimVolumeSource, out *PersistentVolumeClaimVolumeSource, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeClaimVolumeSource_To_v1_PersistentVolumeClaimVolumeSource(in, out, s) +} + +func autoConvert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in *PersistentVolumeList, out *api.PersistentVolumeList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.PersistentVolume, len(*in)) + for i := range *in { + if err := Convert_v1_PersistentVolume_To_api_PersistentVolume(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in *PersistentVolumeList, out *api.PersistentVolumeList, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in, out, s) +} + +func autoConvert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in *api.PersistentVolumeList, out *PersistentVolumeList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolume, len(*in)) + for i := range *in { + if err := Convert_api_PersistentVolume_To_v1_PersistentVolume(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in *api.PersistentVolumeList, out *PersistentVolumeList, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in, out, s) +} + +func autoConvert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in *PersistentVolumeSource, out *api.PersistentVolumeSource, s conversion.Scope) error { + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(api.GCEPersistentDiskVolumeSource) + if err := Convert_v1_GCEPersistentDiskVolumeSource_To_api_GCEPersistentDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(api.AWSElasticBlockStoreVolumeSource) + if err := Convert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AWSElasticBlockStore = nil + } + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(api.HostPathVolumeSource) + if err := Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.HostPath = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(api.GlusterfsVolumeSource) + if err := Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Glusterfs = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(api.NFSVolumeSource) + if err := Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.NFS = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(api.RBDVolumeSource) + if err := Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(api.ISCSIVolumeSource) + if err := Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.ISCSI = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(api.CinderVolumeSource) + if err := Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(api.CephFSVolumeSource) + if err := Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(api.FCVolumeSource) + if err := Convert_v1_FCVolumeSource_To_api_FCVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FC = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(api.FlockerVolumeSource) + if err := Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Flocker = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(api.FlexVolumeSource) + if err := Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(api.AzureFileVolumeSource) + if err := Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureFile = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(api.VsphereVirtualDiskVolumeSource) + if err := Convert_v1_VsphereVirtualDiskVolumeSource_To_api_VsphereVirtualDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } 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 +} + +func Convert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in *PersistentVolumeSource, out *api.PersistentVolumeSource, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in, out, s) +} + +func autoConvert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api.PersistentVolumeSource, out *PersistentVolumeSource, s conversion.Scope) error { + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + if err := Convert_api_GCEPersistentDiskVolumeSource_To_v1_GCEPersistentDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + if err := Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AWSElasticBlockStore = nil + } + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + if err := Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.HostPath = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + if err := Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Glusterfs = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + if err := Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.NFS = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(*in, *out, s); err != nil { + return err + } + } 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) + if err := Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.ISCSI = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + if err := Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := Convert_api_FCVolumeSource_To_v1_FCVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FC = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + if err := Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Flocker = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + if err := Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureFile = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + if err := Convert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } 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 +} + +func Convert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api.PersistentVolumeSource, out *PersistentVolumeSource, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in, out, s) +} + +func autoConvert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in *PersistentVolumeSpec, out *api.PersistentVolumeSpec, s conversion.Scope) error { + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Capacity, &out.Capacity, s); err != nil { + return err + } + if err := Convert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, s); err != nil { + return err + } + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]api.PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = api.PersistentVolumeAccessMode((*in)[i]) + } + } else { + out.AccessModes = nil + } + if in.ClaimRef != nil { + in, out := &in.ClaimRef, &out.ClaimRef + *out = new(api.ObjectReference) + if err := Convert_v1_ObjectReference_To_api_ObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.ClaimRef = nil + } + out.PersistentVolumeReclaimPolicy = api.PersistentVolumeReclaimPolicy(in.PersistentVolumeReclaimPolicy) + return nil +} + +func Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in *PersistentVolumeSpec, out *api.PersistentVolumeSpec, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in, out, s) +} + +func autoConvert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in *api.PersistentVolumeSpec, out *PersistentVolumeSpec, s conversion.Scope) error { + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Capacity = nil + } + if err := Convert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, s); err != nil { + return err + } + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = PersistentVolumeAccessMode((*in)[i]) + } + } else { + out.AccessModes = nil + } + if in.ClaimRef != nil { + in, out := &in.ClaimRef, &out.ClaimRef + *out = new(ObjectReference) + if err := Convert_api_ObjectReference_To_v1_ObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.ClaimRef = nil + } + out.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(in.PersistentVolumeReclaimPolicy) + return nil +} + +func Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in *api.PersistentVolumeSpec, out *PersistentVolumeSpec, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec(in, out, s) +} + +func autoConvert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus(in *PersistentVolumeStatus, out *api.PersistentVolumeStatus, s conversion.Scope) error { + out.Phase = api.PersistentVolumePhase(in.Phase) + out.Message = in.Message + out.Reason = in.Reason + return nil +} + +func Convert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus(in *PersistentVolumeStatus, out *api.PersistentVolumeStatus, s conversion.Scope) error { + return autoConvert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus(in, out, s) +} + +func autoConvert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in *api.PersistentVolumeStatus, out *PersistentVolumeStatus, s conversion.Scope) error { + out.Phase = PersistentVolumePhase(in.Phase) + out.Message = in.Message + out.Reason = in.Reason + return nil +} + +func Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in *api.PersistentVolumeStatus, out *PersistentVolumeStatus, s conversion.Scope) error { + return autoConvert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in, out, s) +} + +func autoConvert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error { + SetDefaults_Pod(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_PodStatus_To_api_PodStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func autoConvert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_PodStatus_To_v1_PodStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func autoConvert_v1_PodAffinity_To_api_PodAffinity(in *PodAffinity, out *api.PodAffinity, s conversion.Scope) error { + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]api.PodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]api.WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil +} + +func Convert_v1_PodAffinity_To_api_PodAffinity(in *PodAffinity, out *api.PodAffinity, s conversion.Scope) error { + return autoConvert_v1_PodAffinity_To_api_PodAffinity(in, out, s) +} + +func autoConvert_api_PodAffinity_To_v1_PodAffinity(in *api.PodAffinity, out *PodAffinity, s conversion.Scope) error { + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil +} + +func Convert_api_PodAffinity_To_v1_PodAffinity(in *api.PodAffinity, out *PodAffinity, s conversion.Scope) error { + return autoConvert_api_PodAffinity_To_v1_PodAffinity(in, out, s) +} + +func autoConvert_v1_PodAffinityTerm_To_api_PodAffinityTerm(in *PodAffinityTerm, out *api.PodAffinityTerm, s conversion.Scope) error { + out.LabelSelector = in.LabelSelector + out.Namespaces = in.Namespaces + out.TopologyKey = in.TopologyKey + return nil +} + +func Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm(in *PodAffinityTerm, out *api.PodAffinityTerm, s conversion.Scope) error { + return autoConvert_v1_PodAffinityTerm_To_api_PodAffinityTerm(in, out, s) +} + +func autoConvert_api_PodAffinityTerm_To_v1_PodAffinityTerm(in *api.PodAffinityTerm, out *PodAffinityTerm, s conversion.Scope) error { + out.LabelSelector = in.LabelSelector + out.Namespaces = in.Namespaces + out.TopologyKey = in.TopologyKey + return nil +} + +func Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm(in *api.PodAffinityTerm, out *PodAffinityTerm, s conversion.Scope) error { + return autoConvert_api_PodAffinityTerm_To_v1_PodAffinityTerm(in, out, s) +} + +func autoConvert_v1_PodAntiAffinity_To_api_PodAntiAffinity(in *PodAntiAffinity, out *api.PodAntiAffinity, s conversion.Scope) error { + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]api.PodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]api.WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil +} + +func Convert_v1_PodAntiAffinity_To_api_PodAntiAffinity(in *PodAntiAffinity, out *api.PodAntiAffinity, s conversion.Scope) error { + return autoConvert_v1_PodAntiAffinity_To_api_PodAntiAffinity(in, out, s) +} + +func autoConvert_api_PodAntiAffinity_To_v1_PodAntiAffinity(in *api.PodAntiAffinity, out *PodAntiAffinity, s conversion.Scope) error { + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := Convert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil +} + +func Convert_api_PodAntiAffinity_To_v1_PodAntiAffinity(in *api.PodAntiAffinity, out *PodAntiAffinity, s conversion.Scope) error { + return autoConvert_api_PodAntiAffinity_To_v1_PodAntiAffinity(in, out, s) +} + +func autoConvert_v1_PodAttachOptions_To_api_PodAttachOptions(in *PodAttachOptions, out *api.PodAttachOptions, s conversion.Scope) error { + SetDefaults_PodAttachOptions(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + return nil +} + +func Convert_v1_PodAttachOptions_To_api_PodAttachOptions(in *PodAttachOptions, out *api.PodAttachOptions, s conversion.Scope) error { + return autoConvert_v1_PodAttachOptions_To_api_PodAttachOptions(in, out, s) +} + +func autoConvert_api_PodAttachOptions_To_v1_PodAttachOptions(in *api.PodAttachOptions, out *PodAttachOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + return nil +} + +func Convert_api_PodAttachOptions_To_v1_PodAttachOptions(in *api.PodAttachOptions, out *PodAttachOptions, s conversion.Scope) error { + return autoConvert_api_PodAttachOptions_To_v1_PodAttachOptions(in, out, s) +} + +func autoConvert_v1_PodCondition_To_api_PodCondition(in *PodCondition, out *api.PodCondition, s conversion.Scope) error { + out.Type = api.PodConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastProbeTime, &out.LastProbeTime, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_PodCondition_To_api_PodCondition(in *PodCondition, out *api.PodCondition, s conversion.Scope) error { + return autoConvert_v1_PodCondition_To_api_PodCondition(in, out, s) +} + +func autoConvert_api_PodCondition_To_v1_PodCondition(in *api.PodCondition, out *PodCondition, s conversion.Scope) error { + out.Type = PodConditionType(in.Type) + out.Status = ConditionStatus(in.Status) + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastProbeTime, &out.LastProbeTime, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastTransitionTime, &out.LastTransitionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_api_PodCondition_To_v1_PodCondition(in *api.PodCondition, out *PodCondition, s conversion.Scope) error { + return autoConvert_api_PodCondition_To_v1_PodCondition(in, out, s) +} + +func autoConvert_v1_PodExecOptions_To_api_PodExecOptions(in *PodExecOptions, out *api.PodExecOptions, s conversion.Scope) error { + SetDefaults_PodExecOptions(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + out.Command = in.Command + return nil +} + +func Convert_v1_PodExecOptions_To_api_PodExecOptions(in *PodExecOptions, out *api.PodExecOptions, s conversion.Scope) error { + return autoConvert_v1_PodExecOptions_To_api_PodExecOptions(in, out, s) +} + +func autoConvert_api_PodExecOptions_To_v1_PodExecOptions(in *api.PodExecOptions, out *PodExecOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + out.Command = in.Command + return nil +} + +func Convert_api_PodExecOptions_To_v1_PodExecOptions(in *api.PodExecOptions, out *PodExecOptions, s conversion.Scope) error { + return autoConvert_api_PodExecOptions_To_v1_PodExecOptions(in, out, s) +} + +func autoConvert_v1_PodList_To_api_PodList(in *PodList, out *api.PodList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Pod, len(*in)) + for i := range *in { + if err := Convert_v1_Pod_To_api_Pod(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_PodList_To_api_PodList(in *PodList, out *api.PodList, s conversion.Scope) error { + return autoConvert_v1_PodList_To_api_PodList(in, out, s) +} + +func autoConvert_api_PodList_To_v1_PodList(in *api.PodList, out *PodList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Pod, len(*in)) + for i := range *in { + if err := Convert_api_Pod_To_v1_Pod(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_PodList_To_v1_PodList(in *api.PodList, out *PodList, s conversion.Scope) error { + return autoConvert_api_PodList_To_v1_PodList(in, out, s) +} + +func autoConvert_v1_PodLogOptions_To_api_PodLogOptions(in *PodLogOptions, out *api.PodLogOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + out.SinceSeconds = in.SinceSeconds + out.SinceTime = in.SinceTime + out.Timestamps = in.Timestamps + out.TailLines = in.TailLines + out.LimitBytes = in.LimitBytes + return nil +} + +func Convert_v1_PodLogOptions_To_api_PodLogOptions(in *PodLogOptions, out *api.PodLogOptions, s conversion.Scope) error { + return autoConvert_v1_PodLogOptions_To_api_PodLogOptions(in, out, s) +} + +func autoConvert_api_PodLogOptions_To_v1_PodLogOptions(in *api.PodLogOptions, out *PodLogOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + out.SinceSeconds = in.SinceSeconds + out.SinceTime = in.SinceTime + out.Timestamps = in.Timestamps + out.TailLines = in.TailLines + out.LimitBytes = in.LimitBytes + return nil +} + +func Convert_api_PodLogOptions_To_v1_PodLogOptions(in *api.PodLogOptions, out *PodLogOptions, s conversion.Scope) error { + return autoConvert_api_PodLogOptions_To_v1_PodLogOptions(in, out, s) +} + +func autoConvert_v1_PodProxyOptions_To_api_PodProxyOptions(in *PodProxyOptions, out *api.PodProxyOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Path = in.Path + return nil +} + +func Convert_v1_PodProxyOptions_To_api_PodProxyOptions(in *PodProxyOptions, out *api.PodProxyOptions, s conversion.Scope) error { + return autoConvert_v1_PodProxyOptions_To_api_PodProxyOptions(in, out, s) +} + +func autoConvert_api_PodProxyOptions_To_v1_PodProxyOptions(in *api.PodProxyOptions, out *PodProxyOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Path = in.Path + return nil +} + +func Convert_api_PodProxyOptions_To_v1_PodProxyOptions(in *api.PodProxyOptions, out *PodProxyOptions, s conversion.Scope) error { + return autoConvert_api_PodProxyOptions_To_v1_PodProxyOptions(in, out, s) +} + +func autoConvert_v1_PodSecurityContext_To_api_PodSecurityContext(in *PodSecurityContext, out *api.PodSecurityContext, s conversion.Scope) error { + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(api.SELinuxOptions) + if err := Convert_v1_SELinuxOptions_To_api_SELinuxOptions(*in, *out, s); err != nil { + return err + } + } else { + out.SELinuxOptions = nil + } + out.RunAsUser = in.RunAsUser + out.RunAsNonRoot = in.RunAsNonRoot + out.SupplementalGroups = in.SupplementalGroups + out.FSGroup = in.FSGroup + return nil +} + +func autoConvert_api_PodSecurityContext_To_v1_PodSecurityContext(in *api.PodSecurityContext, out *PodSecurityContext, s conversion.Scope) error { + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + if err := Convert_api_SELinuxOptions_To_v1_SELinuxOptions(*in, *out, s); err != nil { + return err + } + } else { + out.SELinuxOptions = nil + } + out.RunAsUser = in.RunAsUser + out.RunAsNonRoot = in.RunAsNonRoot + out.SupplementalGroups = in.SupplementalGroups + out.FSGroup = in.FSGroup + return nil +} + +func autoConvert_v1_PodSignature_To_api_PodSignature(in *PodSignature, out *api.PodSignature, s conversion.Scope) error { + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(api.OwnerReference) + if err := Convert_v1_OwnerReference_To_api_OwnerReference(*in, *out, s); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil +} + +func Convert_v1_PodSignature_To_api_PodSignature(in *PodSignature, out *api.PodSignature, s conversion.Scope) error { + return autoConvert_v1_PodSignature_To_api_PodSignature(in, out, s) +} + +func autoConvert_api_PodSignature_To_v1_PodSignature(in *api.PodSignature, out *PodSignature, s conversion.Scope) error { + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(OwnerReference) + if err := Convert_api_OwnerReference_To_v1_OwnerReference(*in, *out, s); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil +} + +func Convert_api_PodSignature_To_v1_PodSignature(in *api.PodSignature, out *PodSignature, s conversion.Scope) error { + return autoConvert_api_PodSignature_To_v1_PodSignature(in, out, s) +} + +func autoConvert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conversion.Scope) error { + SetDefaults_PodSpec(in) + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]api.Volume, len(*in)) + for i := range *in { + if err := Convert_v1_Volume_To_api_Volume(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Volumes = nil + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]api.Container, len(*in)) + for i := range *in { + if err := Convert_v1_Container_To_api_Container(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.InitContainers = nil + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]api.Container, len(*in)) + for i := range *in { + if err := Convert_v1_Container_To_api_Container(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.RestartPolicy = api.RestartPolicy(in.RestartPolicy) + out.TerminationGracePeriodSeconds = in.TerminationGracePeriodSeconds + out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds + out.DNSPolicy = api.DNSPolicy(in.DNSPolicy) + out.NodeSelector = in.NodeSelector + out.ServiceAccountName = in.ServiceAccountName + out.NodeName = in.NodeName + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(api.PodSecurityContext) + if err := Convert_v1_PodSecurityContext_To_api_PodSecurityContext(*in, *out, s); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]api.LocalObjectReference, len(*in)) + for i := range *in { + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.ImagePullSecrets = nil + } + out.Hostname = in.Hostname + out.Subdomain = in.Subdomain + return nil +} + +func autoConvert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conversion.Scope) error { + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]Volume, len(*in)) + for i := range *in { + if err := Convert_api_Volume_To_v1_Volume(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Volumes = nil + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]Container, len(*in)) + for i := range *in { + if err := Convert_api_Container_To_v1_Container(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.InitContainers = nil + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]Container, len(*in)) + for i := range *in { + if err := Convert_api_Container_To_v1_Container(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.RestartPolicy = RestartPolicy(in.RestartPolicy) + out.TerminationGracePeriodSeconds = in.TerminationGracePeriodSeconds + out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds + out.DNSPolicy = DNSPolicy(in.DNSPolicy) + out.NodeSelector = in.NodeSelector + out.ServiceAccountName = in.ServiceAccountName + out.NodeName = in.NodeName + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(PodSecurityContext) + if err := Convert_api_PodSecurityContext_To_v1_PodSecurityContext(*in, *out, s); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.ImagePullSecrets = nil + } + out.Hostname = in.Hostname + out.Subdomain = in.Subdomain + return nil +} + +func autoConvert_v1_PodStatus_To_api_PodStatus(in *PodStatus, out *api.PodStatus, s conversion.Scope) error { + out.Phase = api.PodPhase(in.Phase) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]api.PodCondition, len(*in)) + for i := range *in { + if err := Convert_v1_PodCondition_To_api_PodCondition(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + out.Message = in.Message + out.Reason = in.Reason + out.HostIP = in.HostIP + out.PodIP = in.PodIP + out.StartTime = in.StartTime + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]api.ContainerStatus, len(*in)) + for i := range *in { + if err := Convert_v1_ContainerStatus_To_api_ContainerStatus(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.InitContainerStatuses = nil + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]api.ContainerStatus, len(*in)) + for i := range *in { + if err := Convert_v1_ContainerStatus_To_api_ContainerStatus(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.ContainerStatuses = nil + } + return nil +} + +func Convert_v1_PodStatus_To_api_PodStatus(in *PodStatus, out *api.PodStatus, s conversion.Scope) error { + return autoConvert_v1_PodStatus_To_api_PodStatus(in, out, s) +} + +func autoConvert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus, s conversion.Scope) error { + out.Phase = PodPhase(in.Phase) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]PodCondition, len(*in)) + for i := range *in { + if err := Convert_api_PodCondition_To_v1_PodCondition(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + out.Message = in.Message + out.Reason = in.Reason + out.HostIP = in.HostIP + out.PodIP = in.PodIP + out.StartTime = in.StartTime + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := Convert_api_ContainerStatus_To_v1_ContainerStatus(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.InitContainerStatuses = nil + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := Convert_api_ContainerStatus_To_v1_ContainerStatus(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.ContainerStatuses = nil + } + return nil +} + +func Convert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus, s conversion.Scope) error { + return autoConvert_api_PodStatus_To_v1_PodStatus(in, out, s) +} + +func autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, out *api.PodStatusResult, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_PodStatus_To_api_PodStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, out *PodStatusResult, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_PodStatus_To_v1_PodStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func autoConvert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemplate, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func Convert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemplate, s conversion.Scope) error { + return autoConvert_v1_PodTemplate_To_api_PodTemplate(in, out, s) +} + +func autoConvert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemplate, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func Convert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemplate, s conversion.Scope) error { + return autoConvert_api_PodTemplate_To_v1_PodTemplate(in, out, s) +} + +func autoConvert_v1_PodTemplateList_To_api_PodTemplateList(in *PodTemplateList, out *api.PodTemplateList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.PodTemplate, len(*in)) + for i := range *in { + if err := Convert_v1_PodTemplate_To_api_PodTemplate(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_PodTemplateList_To_api_PodTemplateList(in *PodTemplateList, out *api.PodTemplateList, s conversion.Scope) error { + return autoConvert_v1_PodTemplateList_To_api_PodTemplateList(in, out, s) +} + +func autoConvert_api_PodTemplateList_To_v1_PodTemplateList(in *api.PodTemplateList, out *PodTemplateList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodTemplate, len(*in)) + for i := range *in { + if err := Convert_api_PodTemplate_To_v1_PodTemplate(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_PodTemplateList_To_v1_PodTemplateList(in *api.PodTemplateList, out *PodTemplateList, s conversion.Scope) error { + return autoConvert_api_PodTemplateList_To_v1_PodTemplateList(in, out, s) +} + +func autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out *api.PodTemplateSpec, s conversion.Scope) error { + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_PodSpec_To_api_PodSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +func autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error { + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_PodSpec_To_v1_PodSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +func autoConvert_v1_Preconditions_To_api_Preconditions(in *Preconditions, out *api.Preconditions, s conversion.Scope) error { + out.UID = in.UID + return nil +} + +func Convert_v1_Preconditions_To_api_Preconditions(in *Preconditions, out *api.Preconditions, s conversion.Scope) error { + return autoConvert_v1_Preconditions_To_api_Preconditions(in, out, s) +} + +func autoConvert_api_Preconditions_To_v1_Preconditions(in *api.Preconditions, out *Preconditions, s conversion.Scope) error { + out.UID = in.UID + return nil +} + +func Convert_api_Preconditions_To_v1_Preconditions(in *api.Preconditions, out *Preconditions, s conversion.Scope) error { + return autoConvert_api_Preconditions_To_v1_Preconditions(in, out, s) +} + +func autoConvert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in *PreferAvoidPodsEntry, out *api.PreferAvoidPodsEntry, s conversion.Scope) error { + if err := Convert_v1_PodSignature_To_api_PodSignature(&in.PodSignature, &out.PodSignature, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.EvictionTime, &out.EvictionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in *PreferAvoidPodsEntry, out *api.PreferAvoidPodsEntry, s conversion.Scope) error { + return autoConvert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in, out, s) +} + +func autoConvert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in *api.PreferAvoidPodsEntry, out *PreferAvoidPodsEntry, s conversion.Scope) error { + if err := Convert_api_PodSignature_To_v1_PodSignature(&in.PodSignature, &out.PodSignature, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.EvictionTime, &out.EvictionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in *api.PreferAvoidPodsEntry, out *PreferAvoidPodsEntry, s conversion.Scope) error { + return autoConvert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in, out, s) +} + +func autoConvert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm(in *PreferredSchedulingTerm, out *api.PreferredSchedulingTerm, s conversion.Scope) error { + out.Weight = in.Weight + if err := Convert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(&in.Preference, &out.Preference, s); err != nil { + return err + } + return nil +} + +func Convert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm(in *PreferredSchedulingTerm, out *api.PreferredSchedulingTerm, s conversion.Scope) error { + return autoConvert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm(in, out, s) +} + +func autoConvert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm(in *api.PreferredSchedulingTerm, out *PreferredSchedulingTerm, s conversion.Scope) error { + out.Weight = in.Weight + if err := Convert_api_NodeSelectorTerm_To_v1_NodeSelectorTerm(&in.Preference, &out.Preference, s); err != nil { + return err + } + return nil +} + +func Convert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm(in *api.PreferredSchedulingTerm, out *PreferredSchedulingTerm, s conversion.Scope) error { + return autoConvert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm(in, out, s) +} + +func autoConvert_v1_Probe_To_api_Probe(in *Probe, out *api.Probe, s conversion.Scope) error { + SetDefaults_Probe(in) + if err := Convert_v1_Handler_To_api_Handler(&in.Handler, &out.Handler, s); err != nil { + return err + } + out.InitialDelaySeconds = in.InitialDelaySeconds + out.TimeoutSeconds = in.TimeoutSeconds + out.PeriodSeconds = in.PeriodSeconds + out.SuccessThreshold = in.SuccessThreshold + out.FailureThreshold = in.FailureThreshold + return nil +} + +func Convert_v1_Probe_To_api_Probe(in *Probe, out *api.Probe, s conversion.Scope) error { + return autoConvert_v1_Probe_To_api_Probe(in, out, s) +} + +func autoConvert_api_Probe_To_v1_Probe(in *api.Probe, out *Probe, s conversion.Scope) error { + if err := Convert_api_Handler_To_v1_Handler(&in.Handler, &out.Handler, s); err != nil { + return err + } + out.InitialDelaySeconds = in.InitialDelaySeconds + out.TimeoutSeconds = in.TimeoutSeconds + out.PeriodSeconds = in.PeriodSeconds + out.SuccessThreshold = in.SuccessThreshold + out.FailureThreshold = in.FailureThreshold + return nil +} + +func Convert_api_Probe_To_v1_Probe(in *api.Probe, out *Probe, s conversion.Scope) error { + 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 + out.RBDImage = in.RBDImage + out.FSType = in.FSType + out.RBDPool = in.RBDPool + out.RadosUser = in.RadosUser + out.Keyring = in.Keyring + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(api.LocalObjectReference) + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in *RBDVolumeSource, out *api.RBDVolumeSource, s conversion.Scope) error { + return autoConvert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in, out, s) +} + +func autoConvert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource, out *RBDVolumeSource, s conversion.Scope) error { + out.CephMonitors = in.CephMonitors + out.RBDImage = in.RBDImage + out.FSType = in.FSType + out.RBDPool = in.RBDPool + out.RadosUser = in.RadosUser + out.Keyring = in.Keyring + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(*in, *out, s); err != nil { + return err + } + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource, out *RBDVolumeSource, s conversion.Scope) error { + return autoConvert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in, out, s) +} + +func autoConvert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out *api.RangeAllocation, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + out.Range = in.Range + if err := conversion.Convert_Slice_byte_To_Slice_byte(&in.Data, &out.Data, s); err != nil { + return err + } + return nil +} + +func Convert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out *api.RangeAllocation, s conversion.Scope) error { + return autoConvert_v1_RangeAllocation_To_api_RangeAllocation(in, out, s) +} + +func autoConvert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, out *RangeAllocation, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + out.Range = in.Range + if err := conversion.Convert_Slice_byte_To_Slice_byte(&in.Data, &out.Data, s); err != nil { + return err + } + return nil +} + +func Convert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, out *RangeAllocation, s conversion.Scope) error { + return autoConvert_api_RangeAllocation_To_v1_RangeAllocation(in, out, s) +} + +func autoConvert_v1_ReplicationController_To_api_ReplicationController(in *ReplicationController, out *api.ReplicationController, s conversion.Scope) error { + SetDefaults_ReplicationController(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ReplicationController_To_api_ReplicationController(in *ReplicationController, out *api.ReplicationController, s conversion.Scope) error { + return autoConvert_v1_ReplicationController_To_api_ReplicationController(in, out, s) +} + +func autoConvert_api_ReplicationController_To_v1_ReplicationController(in *api.ReplicationController, out *ReplicationController, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_ReplicationController_To_v1_ReplicationController(in *api.ReplicationController, out *ReplicationController, s conversion.Scope) error { + return autoConvert_api_ReplicationController_To_v1_ReplicationController(in, out, s) +} + +func autoConvert_v1_ReplicationControllerList_To_api_ReplicationControllerList(in *ReplicationControllerList, out *api.ReplicationControllerList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.ReplicationController, len(*in)) + for i := range *in { + if err := Convert_v1_ReplicationController_To_api_ReplicationController(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_ReplicationControllerList_To_api_ReplicationControllerList(in *ReplicationControllerList, out *api.ReplicationControllerList, s conversion.Scope) error { + return autoConvert_v1_ReplicationControllerList_To_api_ReplicationControllerList(in, out, s) +} + +func autoConvert_api_ReplicationControllerList_To_v1_ReplicationControllerList(in *api.ReplicationControllerList, out *ReplicationControllerList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicationController, len(*in)) + for i := range *in { + if err := Convert_api_ReplicationController_To_v1_ReplicationController(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_ReplicationControllerList_To_v1_ReplicationControllerList(in *api.ReplicationControllerList, out *ReplicationControllerList, s conversion.Scope) error { + return autoConvert_api_ReplicationControllerList_To_v1_ReplicationControllerList(in, out, s) +} + +func autoConvert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(in *ReplicationControllerSpec, out *api.ReplicationControllerSpec, s conversion.Scope) error { + if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + out.Selector = in.Selector + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(api.PodTemplateSpec) + if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(*in, *out, s); err != nil { + return err + } + } else { + out.Template = nil + } + return nil +} + +func autoConvert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(in *api.ReplicationControllerSpec, out *ReplicationControllerSpec, s conversion.Scope) error { + if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + out.Selector = in.Selector + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(PodTemplateSpec) + if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(*in, *out, s); err != nil { + return err + } + } else { + out.Template = nil + } + return nil +} + +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 +} + +func Convert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus(in *ReplicationControllerStatus, out *api.ReplicationControllerStatus, s conversion.Scope) error { + return autoConvert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus(in, out, s) +} + +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 +} + +func Convert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStatus(in *api.ReplicationControllerStatus, out *ReplicationControllerStatus, s conversion.Scope) error { + return autoConvert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStatus(in, out, s) +} + +func autoConvert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector(in *ResourceFieldSelector, out *api.ResourceFieldSelector, s conversion.Scope) error { + out.ContainerName = in.ContainerName + out.Resource = in.Resource + if err := api.Convert_resource_Quantity_To_resource_Quantity(&in.Divisor, &out.Divisor, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector(in *ResourceFieldSelector, out *api.ResourceFieldSelector, s conversion.Scope) error { + return autoConvert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector(in, out, s) +} + +func autoConvert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(in *api.ResourceFieldSelector, out *ResourceFieldSelector, s conversion.Scope) error { + out.ContainerName = in.ContainerName + out.Resource = in.Resource + if err := api.Convert_resource_Quantity_To_resource_Quantity(&in.Divisor, &out.Divisor, s); err != nil { + return err + } + return nil +} + +func Convert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(in *api.ResourceFieldSelector, out *ResourceFieldSelector, s conversion.Scope) error { + return autoConvert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(in, out, s) +} + +func autoConvert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.ResourceQuota, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.ResourceQuota, s conversion.Scope) error { + return autoConvert_v1_ResourceQuota_To_api_ResourceQuota(in, out, s) +} + +func autoConvert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *ResourceQuota, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *ResourceQuota, s conversion.Scope) error { + return autoConvert_api_ResourceQuota_To_v1_ResourceQuota(in, out, s) +} + +func autoConvert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in *ResourceQuotaList, out *api.ResourceQuotaList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.ResourceQuota, len(*in)) + for i := range *in { + if err := Convert_v1_ResourceQuota_To_api_ResourceQuota(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in *ResourceQuotaList, out *api.ResourceQuotaList, s conversion.Scope) error { + return autoConvert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in, out, s) +} + +func autoConvert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in *api.ResourceQuotaList, out *ResourceQuotaList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceQuota, len(*in)) + for i := range *in { + if err := Convert_api_ResourceQuota_To_v1_ResourceQuota(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in *api.ResourceQuotaList, out *ResourceQuotaList, s conversion.Scope) error { + return autoConvert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in, out, s) +} + +func autoConvert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in *ResourceQuotaSpec, out *api.ResourceQuotaSpec, s conversion.Scope) error { + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Hard, &out.Hard, s); err != nil { + return err + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]api.ResourceQuotaScope, len(*in)) + for i := range *in { + (*out)[i] = api.ResourceQuotaScope((*in)[i]) + } + } else { + out.Scopes = nil + } + return nil +} + +func Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in *ResourceQuotaSpec, out *api.ResourceQuotaSpec, s conversion.Scope) error { + return autoConvert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in, out, s) +} + +func autoConvert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in *api.ResourceQuotaSpec, out *ResourceQuotaSpec, s conversion.Scope) error { + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Hard = nil + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]ResourceQuotaScope, len(*in)) + for i := range *in { + (*out)[i] = ResourceQuotaScope((*in)[i]) + } + } else { + out.Scopes = nil + } + return nil +} + +func Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in *api.ResourceQuotaSpec, out *ResourceQuotaSpec, s conversion.Scope) error { + return autoConvert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in, out, s) +} + +func autoConvert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuotaStatus, out *api.ResourceQuotaStatus, s conversion.Scope) error { + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Hard, &out.Hard, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Used, &out.Used, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuotaStatus, out *api.ResourceQuotaStatus, s conversion.Scope) error { + return autoConvert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in, out, s) +} + +func autoConvert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQuotaStatus, out *ResourceQuotaStatus, s conversion.Scope) error { + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Hard = nil + } + if in.Used != nil { + in, out := &in.Used, &out.Used + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Used = nil + } + return nil +} + +func Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQuotaStatus, out *ResourceQuotaStatus, s conversion.Scope) error { + return autoConvert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in, out, s) +} + +func autoConvert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceRequirements, out *api.ResourceRequirements, s conversion.Scope) error { + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Limits, &out.Limits, s); err != nil { + return err + } + if err := Convert_v1_ResourceList_To_api_ResourceList(&in.Requests, &out.Requests, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceRequirements, out *api.ResourceRequirements, s conversion.Scope) error { + return autoConvert_v1_ResourceRequirements_To_api_ResourceRequirements(in, out, s) +} + +func autoConvert_api_ResourceRequirements_To_v1_ResourceRequirements(in *api.ResourceRequirements, out *ResourceRequirements, s conversion.Scope) error { + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Limits = nil + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(ResourceList, len(*in)) + for key, val := range *in { + newVal := new(resource.Quantity) + if err := api.Convert_resource_Quantity_To_resource_Quantity(&val, newVal, s); err != nil { + return err + } + (*out)[ResourceName(key)] = *newVal + } + } else { + out.Requests = nil + } + return nil +} + +func Convert_api_ResourceRequirements_To_v1_ResourceRequirements(in *api.ResourceRequirements, out *ResourceRequirements, s conversion.Scope) error { + return autoConvert_api_ResourceRequirements_To_v1_ResourceRequirements(in, out, s) +} + +func autoConvert_v1_SELinuxOptions_To_api_SELinuxOptions(in *SELinuxOptions, out *api.SELinuxOptions, s conversion.Scope) error { + out.User = in.User + out.Role = in.Role + out.Type = in.Type + out.Level = in.Level + return nil +} + +func Convert_v1_SELinuxOptions_To_api_SELinuxOptions(in *SELinuxOptions, out *api.SELinuxOptions, s conversion.Scope) error { + return autoConvert_v1_SELinuxOptions_To_api_SELinuxOptions(in, out, s) +} + +func autoConvert_api_SELinuxOptions_To_v1_SELinuxOptions(in *api.SELinuxOptions, out *SELinuxOptions, s conversion.Scope) error { + out.User = in.User + out.Role = in.Role + out.Type = in.Type + out.Level = in.Level + return nil +} + +func Convert_api_SELinuxOptions_To_v1_SELinuxOptions(in *api.SELinuxOptions, out *SELinuxOptions, s conversion.Scope) error { + return autoConvert_api_SELinuxOptions_To_v1_SELinuxOptions(in, out, s) +} + +func autoConvert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversion.Scope) error { + SetDefaults_Secret(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + out.Data = in.Data + out.Type = api.SecretType(in.Type) + return nil +} + +func autoConvert_api_Secret_To_v1_Secret(in *api.Secret, out *Secret, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + out.Data = in.Data + out.Type = SecretType(in.Type) + return nil +} + +func Convert_api_Secret_To_v1_Secret(in *api.Secret, out *Secret, s conversion.Scope) error { + return autoConvert_api_Secret_To_v1_Secret(in, out, s) +} + +func autoConvert_v1_SecretKeySelector_To_api_SecretKeySelector(in *SecretKeySelector, out *api.SecretKeySelector, s conversion.Scope) error { + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { + return err + } + out.Key = in.Key + return nil +} + +func Convert_v1_SecretKeySelector_To_api_SecretKeySelector(in *SecretKeySelector, out *api.SecretKeySelector, s conversion.Scope) error { + return autoConvert_v1_SecretKeySelector_To_api_SecretKeySelector(in, out, s) +} + +func autoConvert_api_SecretKeySelector_To_v1_SecretKeySelector(in *api.SecretKeySelector, out *SecretKeySelector, s conversion.Scope) error { + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { + return err + } + out.Key = in.Key + return nil +} + +func Convert_api_SecretKeySelector_To_v1_SecretKeySelector(in *api.SecretKeySelector, out *SecretKeySelector, s conversion.Scope) error { + return autoConvert_api_SecretKeySelector_To_v1_SecretKeySelector(in, out, s) +} + +func autoConvert_v1_SecretList_To_api_SecretList(in *SecretList, out *api.SecretList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Secret, len(*in)) + for i := range *in { + if err := Convert_v1_Secret_To_api_Secret(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_SecretList_To_api_SecretList(in *SecretList, out *api.SecretList, s conversion.Scope) error { + return autoConvert_v1_SecretList_To_api_SecretList(in, out, s) +} + +func autoConvert_api_SecretList_To_v1_SecretList(in *api.SecretList, out *SecretList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Secret, len(*in)) + for i := range *in { + if err := Convert_api_Secret_To_v1_Secret(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_SecretList_To_v1_SecretList(in *api.SecretList, out *SecretList, s conversion.Scope) error { + return autoConvert_api_SecretList_To_v1_SecretList(in, out, s) +} + +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 + *out = make([]api.KeyToPath, len(*in)) + for i := range *in { + if err := Convert_v1_KeyToPath_To_api_KeyToPath(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + out.DefaultMode = in.DefaultMode + return nil +} + +func Convert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolumeSource, out *api.SecretVolumeSource, s conversion.Scope) error { + return autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in, out, s) +} + +func autoConvert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in *api.SecretVolumeSource, out *SecretVolumeSource, s conversion.Scope) error { + out.SecretName = in.SecretName + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + if err := Convert_api_KeyToPath_To_v1_KeyToPath(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + out.DefaultMode = in.DefaultMode + return nil +} + +func Convert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in *api.SecretVolumeSource, out *SecretVolumeSource, s conversion.Scope) error { + return autoConvert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in, out, s) +} + +func autoConvert_v1_SecurityContext_To_api_SecurityContext(in *SecurityContext, out *api.SecurityContext, s conversion.Scope) error { + if in.Capabilities != nil { + in, out := &in.Capabilities, &out.Capabilities + *out = new(api.Capabilities) + if err := Convert_v1_Capabilities_To_api_Capabilities(*in, *out, s); err != nil { + return err + } + } else { + out.Capabilities = nil + } + out.Privileged = in.Privileged + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(api.SELinuxOptions) + if err := Convert_v1_SELinuxOptions_To_api_SELinuxOptions(*in, *out, s); err != nil { + return err + } + } else { + out.SELinuxOptions = nil + } + out.RunAsUser = in.RunAsUser + out.RunAsNonRoot = in.RunAsNonRoot + out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem + return nil +} + +func Convert_v1_SecurityContext_To_api_SecurityContext(in *SecurityContext, out *api.SecurityContext, s conversion.Scope) error { + return autoConvert_v1_SecurityContext_To_api_SecurityContext(in, out, s) +} + +func autoConvert_api_SecurityContext_To_v1_SecurityContext(in *api.SecurityContext, out *SecurityContext, s conversion.Scope) error { + if in.Capabilities != nil { + in, out := &in.Capabilities, &out.Capabilities + *out = new(Capabilities) + if err := Convert_api_Capabilities_To_v1_Capabilities(*in, *out, s); err != nil { + return err + } + } else { + out.Capabilities = nil + } + out.Privileged = in.Privileged + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + if err := Convert_api_SELinuxOptions_To_v1_SELinuxOptions(*in, *out, s); err != nil { + return err + } + } else { + out.SELinuxOptions = nil + } + out.RunAsUser = in.RunAsUser + out.RunAsNonRoot = in.RunAsNonRoot + out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem + return nil +} + +func Convert_api_SecurityContext_To_v1_SecurityContext(in *api.SecurityContext, out *SecurityContext, s conversion.Scope) error { + return autoConvert_api_SecurityContext_To_v1_SecurityContext(in, out, s) +} + +func autoConvert_v1_SerializedReference_To_api_SerializedReference(in *SerializedReference, out *api.SerializedReference, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectReference_To_api_ObjectReference(&in.Reference, &out.Reference, s); err != nil { + return err + } + return nil +} + +func Convert_v1_SerializedReference_To_api_SerializedReference(in *SerializedReference, out *api.SerializedReference, s conversion.Scope) error { + return autoConvert_v1_SerializedReference_To_api_SerializedReference(in, out, s) +} + +func autoConvert_api_SerializedReference_To_v1_SerializedReference(in *api.SerializedReference, out *SerializedReference, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectReference_To_v1_ObjectReference(&in.Reference, &out.Reference, s); err != nil { + return err + } + return nil +} + +func Convert_api_SerializedReference_To_v1_SerializedReference(in *api.SerializedReference, out *SerializedReference, s conversion.Scope) error { + return autoConvert_api_SerializedReference_To_v1_SerializedReference(in, out, s) +} + +func autoConvert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ServiceSpec_To_api_ServiceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ServiceStatus_To_api_ServiceStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversion.Scope) error { + return autoConvert_v1_Service_To_api_Service(in, out, s) +} + +func autoConvert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_api_ServiceSpec_To_v1_ServiceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_api_ServiceStatus_To_v1_ServiceStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversion.Scope) error { + return autoConvert_api_Service_To_v1_Service(in, out, s) +} + +func autoConvert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *api.ServiceAccount, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = make([]api.ObjectReference, len(*in)) + for i := range *in { + if err := Convert_v1_ObjectReference_To_api_ObjectReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Secrets = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]api.LocalObjectReference, len(*in)) + for i := range *in { + if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.ImagePullSecrets = nil + } + return nil +} + +func Convert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *api.ServiceAccount, s conversion.Scope) error { + return autoConvert_v1_ServiceAccount_To_api_ServiceAccount(in, out, s) +} + +func autoConvert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out *ServiceAccount, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = make([]ObjectReference, len(*in)) + for i := range *in { + if err := Convert_api_ObjectReference_To_v1_ObjectReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Secrets = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + if err := Convert_api_LocalObjectReference_To_v1_LocalObjectReference(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.ImagePullSecrets = nil + } + return nil +} + +func Convert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out *ServiceAccount, s conversion.Scope) error { + return autoConvert_api_ServiceAccount_To_v1_ServiceAccount(in, out, s) +} + +func autoConvert_v1_ServiceAccountList_To_api_ServiceAccountList(in *ServiceAccountList, out *api.ServiceAccountList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.ServiceAccount, len(*in)) + for i := range *in { + if err := Convert_v1_ServiceAccount_To_api_ServiceAccount(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_ServiceAccountList_To_api_ServiceAccountList(in *ServiceAccountList, out *api.ServiceAccountList, s conversion.Scope) error { + return autoConvert_v1_ServiceAccountList_To_api_ServiceAccountList(in, out, s) +} + +func autoConvert_api_ServiceAccountList_To_v1_ServiceAccountList(in *api.ServiceAccountList, out *ServiceAccountList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ServiceAccount, len(*in)) + for i := range *in { + if err := Convert_api_ServiceAccount_To_v1_ServiceAccount(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_ServiceAccountList_To_v1_ServiceAccountList(in *api.ServiceAccountList, out *ServiceAccountList, s conversion.Scope) error { + return autoConvert_api_ServiceAccountList_To_v1_ServiceAccountList(in, out, s) +} + +func autoConvert_v1_ServiceList_To_api_ServiceList(in *ServiceList, out *api.ServiceList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]api.Service, len(*in)) + for i := range *in { + if err := Convert_v1_Service_To_api_Service(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_ServiceList_To_api_ServiceList(in *ServiceList, out *api.ServiceList, s conversion.Scope) error { + return autoConvert_v1_ServiceList_To_api_ServiceList(in, out, s) +} + +func autoConvert_api_ServiceList_To_v1_ServiceList(in *api.ServiceList, out *ServiceList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Service, len(*in)) + for i := range *in { + if err := Convert_api_Service_To_v1_Service(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_api_ServiceList_To_v1_ServiceList(in *api.ServiceList, out *ServiceList, s conversion.Scope) error { + return autoConvert_api_ServiceList_To_v1_ServiceList(in, out, s) +} + +func autoConvert_v1_ServicePort_To_api_ServicePort(in *ServicePort, out *api.ServicePort, s conversion.Scope) error { + out.Name = in.Name + out.Protocol = api.Protocol(in.Protocol) + out.Port = in.Port + if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.TargetPort, &out.TargetPort, s); err != nil { + return err + } + out.NodePort = in.NodePort + return nil +} + +func Convert_v1_ServicePort_To_api_ServicePort(in *ServicePort, out *api.ServicePort, s conversion.Scope) error { + return autoConvert_v1_ServicePort_To_api_ServicePort(in, out, s) +} + +func autoConvert_api_ServicePort_To_v1_ServicePort(in *api.ServicePort, out *ServicePort, s conversion.Scope) error { + out.Name = in.Name + out.Protocol = Protocol(in.Protocol) + out.Port = in.Port + if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.TargetPort, &out.TargetPort, s); err != nil { + return err + } + out.NodePort = in.NodePort + return nil +} + +func Convert_api_ServicePort_To_v1_ServicePort(in *api.ServicePort, out *ServicePort, s conversion.Scope) error { + return autoConvert_api_ServicePort_To_v1_ServicePort(in, out, s) +} + +func autoConvert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in *ServiceProxyOptions, out *api.ServiceProxyOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Path = in.Path + return nil +} + +func Convert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in *ServiceProxyOptions, out *api.ServiceProxyOptions, s conversion.Scope) error { + return autoConvert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in, out, s) +} + +func autoConvert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in *api.ServiceProxyOptions, out *ServiceProxyOptions, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Path = in.Path + return nil +} + +func Convert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in *api.ServiceProxyOptions, out *ServiceProxyOptions, s conversion.Scope) error { + return autoConvert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in, out, s) +} + +func autoConvert_v1_ServiceSpec_To_api_ServiceSpec(in *ServiceSpec, out *api.ServiceSpec, s conversion.Scope) error { + SetDefaults_ServiceSpec(in) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]api.ServicePort, len(*in)) + for i := range *in { + if err := Convert_v1_ServicePort_To_api_ServicePort(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ports = nil + } + out.Selector = in.Selector + out.ClusterIP = in.ClusterIP + out.Type = api.ServiceType(in.Type) + out.ExternalIPs = in.ExternalIPs + out.SessionAffinity = api.ServiceAffinity(in.SessionAffinity) + out.LoadBalancerIP = in.LoadBalancerIP + out.LoadBalancerSourceRanges = in.LoadBalancerSourceRanges + out.ExternalName = in.ExternalName + return nil +} + +func autoConvert_api_ServiceSpec_To_v1_ServiceSpec(in *api.ServiceSpec, out *ServiceSpec, s conversion.Scope) error { + out.Type = ServiceType(in.Type) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ServicePort, len(*in)) + for i := range *in { + if err := Convert_api_ServicePort_To_v1_ServicePort(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Ports = nil + } + 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) + out.LoadBalancerSourceRanges = in.LoadBalancerSourceRanges + return nil +} + +func autoConvert_v1_ServiceStatus_To_api_ServiceStatus(in *ServiceStatus, out *api.ServiceStatus, s conversion.Scope) error { + if err := Convert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ServiceStatus_To_api_ServiceStatus(in *ServiceStatus, out *api.ServiceStatus, s conversion.Scope) error { + return autoConvert_v1_ServiceStatus_To_api_ServiceStatus(in, out, s) +} + +func autoConvert_api_ServiceStatus_To_v1_ServiceStatus(in *api.ServiceStatus, out *ServiceStatus, s conversion.Scope) error { + if err := Convert_api_LoadBalancerStatus_To_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, s); err != nil { + return err + } + return nil +} + +func Convert_api_ServiceStatus_To_v1_ServiceStatus(in *api.ServiceStatus, out *ServiceStatus, s conversion.Scope) error { + return autoConvert_api_ServiceStatus_To_v1_ServiceStatus(in, out, s) +} + +func autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error { + if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil { + return err + } + return nil +} + +func Convert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error { + return autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in, out, s) +} + +func autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error { + if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.Port, &out.Port, s); err != nil { + return err + } + return nil +} + +func Convert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error { + return autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in, out, s) +} + +func autoConvert_v1_Taint_To_api_Taint(in *Taint, out *api.Taint, s conversion.Scope) error { + out.Key = in.Key + out.Value = in.Value + out.Effect = api.TaintEffect(in.Effect) + return nil +} + +func Convert_v1_Taint_To_api_Taint(in *Taint, out *api.Taint, s conversion.Scope) error { + return autoConvert_v1_Taint_To_api_Taint(in, out, s) +} + +func autoConvert_api_Taint_To_v1_Taint(in *api.Taint, out *Taint, s conversion.Scope) error { + out.Key = in.Key + out.Value = in.Value + out.Effect = TaintEffect(in.Effect) + return nil +} + +func Convert_api_Taint_To_v1_Taint(in *api.Taint, out *Taint, s conversion.Scope) error { + return autoConvert_api_Taint_To_v1_Taint(in, out, s) +} + +func autoConvert_v1_Toleration_To_api_Toleration(in *Toleration, out *api.Toleration, s conversion.Scope) error { + out.Key = in.Key + out.Operator = api.TolerationOperator(in.Operator) + out.Value = in.Value + out.Effect = api.TaintEffect(in.Effect) + return nil +} + +func Convert_v1_Toleration_To_api_Toleration(in *Toleration, out *api.Toleration, s conversion.Scope) error { + return autoConvert_v1_Toleration_To_api_Toleration(in, out, s) +} + +func autoConvert_api_Toleration_To_v1_Toleration(in *api.Toleration, out *Toleration, s conversion.Scope) error { + out.Key = in.Key + out.Operator = TolerationOperator(in.Operator) + out.Value = in.Value + out.Effect = TaintEffect(in.Effect) + return nil +} + +func Convert_api_Toleration_To_v1_Toleration(in *api.Toleration, out *Toleration, s conversion.Scope) error { + return autoConvert_api_Toleration_To_v1_Toleration(in, out, s) +} + +func autoConvert_v1_Volume_To_api_Volume(in *Volume, out *api.Volume, s conversion.Scope) error { + SetDefaults_Volume(in) + out.Name = in.Name + if err := Convert_v1_VolumeSource_To_api_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil { + return err + } + return nil +} + +func Convert_v1_Volume_To_api_Volume(in *Volume, out *api.Volume, s conversion.Scope) error { + return autoConvert_v1_Volume_To_api_Volume(in, out, s) +} + +func autoConvert_api_Volume_To_v1_Volume(in *api.Volume, out *Volume, s conversion.Scope) error { + out.Name = in.Name + if err := Convert_api_VolumeSource_To_v1_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil { + return err + } + return nil +} + +func Convert_api_Volume_To_v1_Volume(in *api.Volume, out *Volume, s conversion.Scope) error { + return autoConvert_api_Volume_To_v1_Volume(in, out, s) +} + +func autoConvert_v1_VolumeMount_To_api_VolumeMount(in *VolumeMount, out *api.VolumeMount, s conversion.Scope) error { + out.Name = in.Name + out.ReadOnly = in.ReadOnly + out.MountPath = in.MountPath + out.SubPath = in.SubPath + return nil +} + +func Convert_v1_VolumeMount_To_api_VolumeMount(in *VolumeMount, out *api.VolumeMount, s conversion.Scope) error { + return autoConvert_v1_VolumeMount_To_api_VolumeMount(in, out, s) +} + +func autoConvert_api_VolumeMount_To_v1_VolumeMount(in *api.VolumeMount, out *VolumeMount, s conversion.Scope) error { + out.Name = in.Name + out.ReadOnly = in.ReadOnly + out.MountPath = in.MountPath + out.SubPath = in.SubPath + return nil +} + +func Convert_api_VolumeMount_To_v1_VolumeMount(in *api.VolumeMount, out *VolumeMount, s conversion.Scope) error { + return autoConvert_api_VolumeMount_To_v1_VolumeMount(in, out, s) +} + +func autoConvert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.VolumeSource, s conversion.Scope) error { + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(api.HostPathVolumeSource) + if err := Convert_v1_HostPathVolumeSource_To_api_HostPathVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.HostPath = nil + } + if in.EmptyDir != nil { + in, out := &in.EmptyDir, &out.EmptyDir + *out = new(api.EmptyDirVolumeSource) + if err := Convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.EmptyDir = nil + } + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(api.GCEPersistentDiskVolumeSource) + if err := Convert_v1_GCEPersistentDiskVolumeSource_To_api_GCEPersistentDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(api.AWSElasticBlockStoreVolumeSource) + if err := Convert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AWSElasticBlockStore = nil + } + if in.GitRepo != nil { + in, out := &in.GitRepo, &out.GitRepo + *out = new(api.GitRepoVolumeSource) + if err := Convert_v1_GitRepoVolumeSource_To_api_GitRepoVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.GitRepo = nil + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = new(api.SecretVolumeSource) + if err := Convert_v1_SecretVolumeSource_To_api_SecretVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Secret = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(api.NFSVolumeSource) + if err := Convert_v1_NFSVolumeSource_To_api_NFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.NFS = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(api.ISCSIVolumeSource) + if err := Convert_v1_ISCSIVolumeSource_To_api_ISCSIVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.ISCSI = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(api.GlusterfsVolumeSource) + if err := Convert_v1_GlusterfsVolumeSource_To_api_GlusterfsVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Glusterfs = nil + } + if in.PersistentVolumeClaim != nil { + in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim + *out = new(api.PersistentVolumeClaimVolumeSource) + if err := Convert_v1_PersistentVolumeClaimVolumeSource_To_api_PersistentVolumeClaimVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.PersistentVolumeClaim = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(api.RBDVolumeSource) + if err := Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(api.FlexVolumeSource) + if err := Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(api.CinderVolumeSource) + if err := Convert_v1_CinderVolumeSource_To_api_CinderVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(api.CephFSVolumeSource) + if err := Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(api.FlockerVolumeSource) + if err := Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Flocker = nil + } + if in.DownwardAPI != nil { + in, out := &in.DownwardAPI, &out.DownwardAPI + *out = new(api.DownwardAPIVolumeSource) + if err := Convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.DownwardAPI = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(api.FCVolumeSource) + if err := Convert_v1_FCVolumeSource_To_api_FCVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FC = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(api.AzureFileVolumeSource) + if err := Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureFile = nil + } + if in.ConfigMap != nil { + in, out := &in.ConfigMap, &out.ConfigMap + *out = new(api.ConfigMapVolumeSource) + if err := Convert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.ConfigMap = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(api.VsphereVirtualDiskVolumeSource) + if err := Convert_v1_VsphereVirtualDiskVolumeSource_To_api_VsphereVirtualDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } 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 +} + +func Convert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.VolumeSource, s conversion.Scope) error { + return autoConvert_v1_VolumeSource_To_api_VolumeSource(in, out, s) +} + +func autoConvert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *VolumeSource, s conversion.Scope) error { + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + if err := Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.HostPath = nil + } + if in.EmptyDir != nil { + in, out := &in.EmptyDir, &out.EmptyDir + *out = new(EmptyDirVolumeSource) + if err := Convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.EmptyDir = nil + } + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + if err := Convert_api_GCEPersistentDiskVolumeSource_To_v1_GCEPersistentDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + if err := Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AWSElasticBlockStore = nil + } + if in.GitRepo != nil { + in, out := &in.GitRepo, &out.GitRepo + *out = new(GitRepoVolumeSource) + if err := Convert_api_GitRepoVolumeSource_To_v1_GitRepoVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.GitRepo = nil + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = new(SecretVolumeSource) + if err := Convert_api_SecretVolumeSource_To_v1_SecretVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Secret = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + if err := Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.NFS = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + if err := Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.ISCSI = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + if err := Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Glusterfs = nil + } + if in.PersistentVolumeClaim != nil { + in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim + *out = new(PersistentVolumeClaimVolumeSource) + if err := Convert_api_PersistentVolumeClaimVolumeSource_To_v1_PersistentVolumeClaimVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.PersistentVolumeClaim = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(*in, *out, s); err != nil { + return err + } + } 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) + if err := Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + if err := Convert_api_CinderVolumeSource_To_v1_CinderVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := Convert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + if err := Convert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Flocker = nil + } + if in.DownwardAPI != nil { + in, out := &in.DownwardAPI, &out.DownwardAPI + *out = new(DownwardAPIVolumeSource) + if err := Convert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.DownwardAPI = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := Convert_api_FCVolumeSource_To_v1_FCVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.FC = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + if err := Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureFile = nil + } + if in.ConfigMap != nil { + in, out := &in.ConfigMap, &out.ConfigMap + *out = new(ConfigMapVolumeSource) + if err := Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.ConfigMap = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + if err := Convert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } 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 +} + +func Convert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *VolumeSource, s conversion.Scope) error { + return autoConvert_api_VolumeSource_To_v1_VolumeSource(in, out, s) +} + +func autoConvert_v1_VsphereVirtualDiskVolumeSource_To_api_VsphereVirtualDiskVolumeSource(in *VsphereVirtualDiskVolumeSource, out *api.VsphereVirtualDiskVolumeSource, s conversion.Scope) error { + out.VolumePath = in.VolumePath + out.FSType = in.FSType + return nil +} + +func Convert_v1_VsphereVirtualDiskVolumeSource_To_api_VsphereVirtualDiskVolumeSource(in *VsphereVirtualDiskVolumeSource, out *api.VsphereVirtualDiskVolumeSource, s conversion.Scope) error { + return autoConvert_v1_VsphereVirtualDiskVolumeSource_To_api_VsphereVirtualDiskVolumeSource(in, out, s) +} + +func autoConvert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource(in *api.VsphereVirtualDiskVolumeSource, out *VsphereVirtualDiskVolumeSource, s conversion.Scope) error { + out.VolumePath = in.VolumePath + out.FSType = in.FSType + return nil +} + +func Convert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource(in *api.VsphereVirtualDiskVolumeSource, out *VsphereVirtualDiskVolumeSource, s conversion.Scope) error { + return autoConvert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource(in, out, s) +} + +func autoConvert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(in *WeightedPodAffinityTerm, out *api.WeightedPodAffinityTerm, s conversion.Scope) error { + out.Weight = int(in.Weight) + if err := Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, s); err != nil { + return err + } + return nil +} + +func Convert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(in *WeightedPodAffinityTerm, out *api.WeightedPodAffinityTerm, s conversion.Scope) error { + return autoConvert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(in, out, s) +} + +func autoConvert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm(in *api.WeightedPodAffinityTerm, out *WeightedPodAffinityTerm, s conversion.Scope) error { + out.Weight = int32(in.Weight) + if err := Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, s); err != nil { + return err + } + return nil +} + +func Convert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm(in *api.WeightedPodAffinityTerm, out *WeightedPodAffinityTerm, s conversion.Scope) error { + return autoConvert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm(in, out, s) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..c64868f562 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/zz_generated.deepcopy.go @@ -0,0 +1,3703 @@ +// +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 v1 + +import ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" + types "k8s.io/kubernetes/pkg/types" + 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_v1_AWSElasticBlockStoreVolumeSource, InType: reflect.TypeOf(&AWSElasticBlockStoreVolumeSource{})}, + 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_CephFSVolumeSource, InType: reflect.TypeOf(&CephFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_CinderVolumeSource, InType: reflect.TypeOf(&CinderVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ComponentCondition, InType: reflect.TypeOf(&ComponentCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ComponentStatus, InType: reflect.TypeOf(&ComponentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ComponentStatusList, InType: reflect.TypeOf(&ComponentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMap, InType: reflect.TypeOf(&ConfigMap{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMapKeySelector, InType: reflect.TypeOf(&ConfigMapKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMapList, InType: reflect.TypeOf(&ConfigMapList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMapVolumeSource, InType: reflect.TypeOf(&ConfigMapVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Container, InType: reflect.TypeOf(&Container{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerImage, InType: reflect.TypeOf(&ContainerImage{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerPort, InType: reflect.TypeOf(&ContainerPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerState, InType: reflect.TypeOf(&ContainerState{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStateRunning, InType: reflect.TypeOf(&ContainerStateRunning{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStateTerminated, InType: reflect.TypeOf(&ContainerStateTerminated{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStateWaiting, InType: reflect.TypeOf(&ContainerStateWaiting{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStatus, InType: reflect.TypeOf(&ContainerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DaemonEndpoint, InType: reflect.TypeOf(&DaemonEndpoint{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DeleteOptions, InType: reflect.TypeOf(&DeleteOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DownwardAPIVolumeFile, InType: reflect.TypeOf(&DownwardAPIVolumeFile{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DownwardAPIVolumeSource, InType: reflect.TypeOf(&DownwardAPIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EmptyDirVolumeSource, InType: reflect.TypeOf(&EmptyDirVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointAddress, InType: reflect.TypeOf(&EndpointAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointPort, InType: reflect.TypeOf(&EndpointPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointSubset, InType: reflect.TypeOf(&EndpointSubset{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Endpoints, InType: reflect.TypeOf(&Endpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointsList, InType: reflect.TypeOf(&EndpointsList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EnvVar, InType: reflect.TypeOf(&EnvVar{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EnvVarSource, InType: reflect.TypeOf(&EnvVarSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Event, InType: reflect.TypeOf(&Event{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EventList, InType: reflect.TypeOf(&EventList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EventSource, InType: reflect.TypeOf(&EventSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ExecAction, InType: reflect.TypeOf(&ExecAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_FCVolumeSource, InType: reflect.TypeOf(&FCVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_FlexVolumeSource, InType: reflect.TypeOf(&FlexVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_FlockerVolumeSource, InType: reflect.TypeOf(&FlockerVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_GCEPersistentDiskVolumeSource, InType: reflect.TypeOf(&GCEPersistentDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_GitRepoVolumeSource, InType: reflect.TypeOf(&GitRepoVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_GlusterfsVolumeSource, InType: reflect.TypeOf(&GlusterfsVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HTTPGetAction, InType: reflect.TypeOf(&HTTPGetAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HTTPHeader, InType: reflect.TypeOf(&HTTPHeader{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Handler, InType: reflect.TypeOf(&Handler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HostPathVolumeSource, InType: reflect.TypeOf(&HostPathVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ISCSIVolumeSource, InType: reflect.TypeOf(&ISCSIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_KeyToPath, InType: reflect.TypeOf(&KeyToPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Lifecycle, InType: reflect.TypeOf(&Lifecycle{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRange, InType: reflect.TypeOf(&LimitRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRangeItem, InType: reflect.TypeOf(&LimitRangeItem{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRangeList, InType: reflect.TypeOf(&LimitRangeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRangeSpec, InType: reflect.TypeOf(&LimitRangeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_List, InType: reflect.TypeOf(&List{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ListOptions, InType: reflect.TypeOf(&ListOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LoadBalancerIngress, InType: reflect.TypeOf(&LoadBalancerIngress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LoadBalancerStatus, InType: reflect.TypeOf(&LoadBalancerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LocalObjectReference, InType: reflect.TypeOf(&LocalObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NFSVolumeSource, InType: reflect.TypeOf(&NFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Namespace, InType: reflect.TypeOf(&Namespace{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NamespaceList, InType: reflect.TypeOf(&NamespaceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NamespaceSpec, InType: reflect.TypeOf(&NamespaceSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NamespaceStatus, InType: reflect.TypeOf(&NamespaceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Node, InType: reflect.TypeOf(&Node{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeAddress, InType: reflect.TypeOf(&NodeAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeAffinity, InType: reflect.TypeOf(&NodeAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeCondition, InType: reflect.TypeOf(&NodeCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeDaemonEndpoints, InType: reflect.TypeOf(&NodeDaemonEndpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeList, InType: reflect.TypeOf(&NodeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeProxyOptions, InType: reflect.TypeOf(&NodeProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSelector, InType: reflect.TypeOf(&NodeSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSelectorRequirement, InType: reflect.TypeOf(&NodeSelectorRequirement{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSelectorTerm, InType: reflect.TypeOf(&NodeSelectorTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSpec, InType: reflect.TypeOf(&NodeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeStatus, InType: reflect.TypeOf(&NodeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSystemInfo, InType: reflect.TypeOf(&NodeSystemInfo{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ObjectFieldSelector, InType: reflect.TypeOf(&ObjectFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ObjectMeta, InType: reflect.TypeOf(&ObjectMeta{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ObjectReference, InType: reflect.TypeOf(&ObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_OwnerReference, InType: reflect.TypeOf(&OwnerReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolume, InType: reflect.TypeOf(&PersistentVolume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaim, InType: reflect.TypeOf(&PersistentVolumeClaim{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimList, InType: reflect.TypeOf(&PersistentVolumeClaimList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimSpec, InType: reflect.TypeOf(&PersistentVolumeClaimSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimStatus, InType: reflect.TypeOf(&PersistentVolumeClaimStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimVolumeSource, InType: reflect.TypeOf(&PersistentVolumeClaimVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeList, InType: reflect.TypeOf(&PersistentVolumeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeSource, InType: reflect.TypeOf(&PersistentVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeSpec, InType: reflect.TypeOf(&PersistentVolumeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeStatus, InType: reflect.TypeOf(&PersistentVolumeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Pod, InType: reflect.TypeOf(&Pod{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAffinity, InType: reflect.TypeOf(&PodAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAffinityTerm, InType: reflect.TypeOf(&PodAffinityTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAntiAffinity, InType: reflect.TypeOf(&PodAntiAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAttachOptions, InType: reflect.TypeOf(&PodAttachOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodCondition, InType: reflect.TypeOf(&PodCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodExecOptions, InType: reflect.TypeOf(&PodExecOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodList, InType: reflect.TypeOf(&PodList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodLogOptions, InType: reflect.TypeOf(&PodLogOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodProxyOptions, InType: reflect.TypeOf(&PodProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSecurityContext, InType: reflect.TypeOf(&PodSecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSignature, InType: reflect.TypeOf(&PodSignature{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSpec, InType: reflect.TypeOf(&PodSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodStatus, InType: reflect.TypeOf(&PodStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodStatusResult, InType: reflect.TypeOf(&PodStatusResult{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodTemplate, InType: reflect.TypeOf(&PodTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodTemplateList, InType: reflect.TypeOf(&PodTemplateList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodTemplateSpec, InType: reflect.TypeOf(&PodTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Preconditions, InType: reflect.TypeOf(&Preconditions{})}, + 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationControllerList, InType: reflect.TypeOf(&ReplicationControllerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationControllerSpec, InType: reflect.TypeOf(&ReplicationControllerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationControllerStatus, InType: reflect.TypeOf(&ReplicationControllerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceFieldSelector, InType: reflect.TypeOf(&ResourceFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuota, InType: reflect.TypeOf(&ResourceQuota{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuotaList, InType: reflect.TypeOf(&ResourceQuotaList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuotaSpec, InType: reflect.TypeOf(&ResourceQuotaSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuotaStatus, InType: reflect.TypeOf(&ResourceQuotaStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceRequirements, InType: reflect.TypeOf(&ResourceRequirements{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SELinuxOptions, InType: reflect.TypeOf(&SELinuxOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Secret, InType: reflect.TypeOf(&Secret{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecretKeySelector, InType: reflect.TypeOf(&SecretKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecretList, InType: reflect.TypeOf(&SecretList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecretVolumeSource, InType: reflect.TypeOf(&SecretVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecurityContext, InType: reflect.TypeOf(&SecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SerializedReference, InType: reflect.TypeOf(&SerializedReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Service, InType: reflect.TypeOf(&Service{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceAccount, InType: reflect.TypeOf(&ServiceAccount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceAccountList, InType: reflect.TypeOf(&ServiceAccountList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceList, InType: reflect.TypeOf(&ServiceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServicePort, InType: reflect.TypeOf(&ServicePort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceProxyOptions, InType: reflect.TypeOf(&ServiceProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceSpec, InType: reflect.TypeOf(&ServiceSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceStatus, InType: reflect.TypeOf(&ServiceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_TCPSocketAction, InType: reflect.TypeOf(&TCPSocketAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Taint, InType: reflect.TypeOf(&Taint{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Toleration, InType: reflect.TypeOf(&Toleration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Volume, InType: reflect.TypeOf(&Volume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_VolumeMount, InType: reflect.TypeOf(&VolumeMount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_VolumeSource, InType: reflect.TypeOf(&VolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_VsphereVirtualDiskVolumeSource, InType: reflect.TypeOf(&VsphereVirtualDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_WeightedPodAffinityTerm, InType: reflect.TypeOf(&WeightedPodAffinityTerm{})}, + ) +} + +func DeepCopy_v1_AWSElasticBlockStoreVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AWSElasticBlockStoreVolumeSource) + out := out.(*AWSElasticBlockStoreVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_Affinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Affinity) + out := out.(*Affinity) + if in.NodeAffinity != nil { + in, out := &in.NodeAffinity, &out.NodeAffinity + *out = new(NodeAffinity) + if err := DeepCopy_v1_NodeAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.NodeAffinity = nil + } + if in.PodAffinity != nil { + in, out := &in.PodAffinity, &out.PodAffinity + *out = new(PodAffinity) + if err := DeepCopy_v1_PodAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAffinity = nil + } + if in.PodAntiAffinity != nil { + in, out := &in.PodAntiAffinity, &out.PodAntiAffinity + *out = new(PodAntiAffinity) + if err := DeepCopy_v1_PodAntiAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAntiAffinity = nil + } + return nil + } +} + +func DeepCopy_v1_AttachedVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AttachedVolume) + out := out.(*AttachedVolume) + out.Name = in.Name + out.DevicePath = in.DevicePath + return nil + } +} + +func DeepCopy_v1_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AvoidPods) + out := out.(*AvoidPods) + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil + } +} + +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) + out := out.(*AzureFileVolumeSource) + out.SecretName = in.SecretName + out.ShareName = in.ShareName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_Binding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Binding) + out := out.(*Binding) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Target = in.Target + return nil + } +} + +func DeepCopy_v1_Capabilities(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Capabilities) + out := out.(*Capabilities) + if in.Add != nil { + in, out := &in.Add, &out.Add + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Add = nil + } + if in.Drop != nil { + in, out := &in.Drop, &out.Drop + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Drop = nil + } + return nil + } +} + +func DeepCopy_v1_CephFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CephFSVolumeSource) + out := out.(*CephFSVolumeSource) + if in.Monitors != nil { + in, out := &in.Monitors, &out.Monitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Monitors = nil + } + out.Path = in.Path + out.User = in.User + out.SecretFile = in.SecretFile + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_CinderVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CinderVolumeSource) + out := out.(*CinderVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_ComponentCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentCondition) + out := out.(*ComponentCondition) + out.Type = in.Type + out.Status = in.Status + out.Message = in.Message + out.Error = in.Error + return nil + } +} + +func DeepCopy_v1_ComponentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatus) + out := out.(*ComponentStatus) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ComponentCondition, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Conditions = nil + } + return nil + } +} + +func DeepCopy_v1_ComponentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatusList) + out := out.(*ComponentStatusList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ComponentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ComponentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMap) + out := out.(*ConfigMap) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_v1_ConfigMapKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapKeySelector) + out := out.(*ConfigMapKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_v1_ConfigMapList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapList) + out := out.(*ConfigMapList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigMap, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ConfigMap(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ConfigMapVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapVolumeSource) + out := out.(*ConfigMapVolumeSource) + out.LocalObjectReference = in.LocalObjectReference + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + 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 + } +} + +func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Container) + out := out.(*Container) + out.Name = in.Name + out.Image = in.Image + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Args = nil + } + out.WorkingDir = in.WorkingDir + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ContainerPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]EnvVar, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Env = nil + } + if err := DeepCopy_v1_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]VolumeMount, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumeMounts = nil + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.LivenessProbe = nil + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.ReadinessProbe = nil + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(Lifecycle) + if err := DeepCopy_v1_Lifecycle(*in, *out, c); err != nil { + return err + } + } else { + out.Lifecycle = nil + } + out.TerminationMessagePath = in.TerminationMessagePath + out.ImagePullPolicy = in.ImagePullPolicy + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(SecurityContext) + if err := DeepCopy_v1_SecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + out.Stdin = in.Stdin + out.StdinOnce = in.StdinOnce + out.TTY = in.TTY + return nil + } +} + +func DeepCopy_v1_ContainerImage(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerImage) + out := out.(*ContainerImage) + if in.Names != nil { + in, out := &in.Names, &out.Names + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Names = nil + } + out.SizeBytes = in.SizeBytes + return nil + } +} + +func DeepCopy_v1_ContainerPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerPort) + out := out.(*ContainerPort) + out.Name = in.Name + out.HostPort = in.HostPort + out.ContainerPort = in.ContainerPort + out.Protocol = in.Protocol + out.HostIP = in.HostIP + return nil + } +} + +func DeepCopy_v1_ContainerState(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerState) + out := out.(*ContainerState) + if in.Waiting != nil { + in, out := &in.Waiting, &out.Waiting + *out = new(ContainerStateWaiting) + **out = **in + } else { + out.Waiting = nil + } + if in.Running != nil { + in, out := &in.Running, &out.Running + *out = new(ContainerStateRunning) + if err := DeepCopy_v1_ContainerStateRunning(*in, *out, c); err != nil { + return err + } + } else { + out.Running = nil + } + if in.Terminated != nil { + in, out := &in.Terminated, &out.Terminated + *out = new(ContainerStateTerminated) + if err := DeepCopy_v1_ContainerStateTerminated(*in, *out, c); err != nil { + return err + } + } else { + out.Terminated = nil + } + return nil + } +} + +func DeepCopy_v1_ContainerStateRunning(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateRunning) + out := out.(*ContainerStateRunning) + out.StartedAt = in.StartedAt.DeepCopy() + return nil + } +} + +func DeepCopy_v1_ContainerStateTerminated(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateTerminated) + out := out.(*ContainerStateTerminated) + out.ExitCode = in.ExitCode + out.Signal = in.Signal + out.Reason = in.Reason + out.Message = in.Message + out.StartedAt = in.StartedAt.DeepCopy() + out.FinishedAt = in.FinishedAt.DeepCopy() + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_v1_ContainerStateWaiting(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateWaiting) + out := out.(*ContainerStateWaiting) + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_ContainerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStatus) + out := out.(*ContainerStatus) + out.Name = in.Name + if err := DeepCopy_v1_ContainerState(&in.State, &out.State, c); err != nil { + return err + } + if err := DeepCopy_v1_ContainerState(&in.LastTerminationState, &out.LastTerminationState, c); err != nil { + return err + } + out.Ready = in.Ready + out.RestartCount = in.RestartCount + out.Image = in.Image + out.ImageID = in.ImageID + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_v1_DaemonEndpoint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonEndpoint) + out := out.(*DaemonEndpoint) + out.Port = in.Port + return nil + } +} + +func DeepCopy_v1_DeleteOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeleteOptions) + out := out.(*DeleteOptions) + out.TypeMeta = in.TypeMeta + if in.GracePeriodSeconds != nil { + in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.GracePeriodSeconds = nil + } + if in.Preconditions != nil { + in, out := &in.Preconditions, &out.Preconditions + *out = new(Preconditions) + if err := DeepCopy_v1_Preconditions(*in, *out, c); err != nil { + return err + } + } else { + out.Preconditions = nil + } + if in.OrphanDependents != nil { + in, out := &in.OrphanDependents, &out.OrphanDependents + *out = new(bool) + **out = **in + } else { + out.OrphanDependents = nil + } + return nil + } +} + +func DeepCopy_v1_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeFile) + out := out.(*DownwardAPIVolumeFile) + out.Path = in.Path + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } 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 + } +} + +func DeepCopy_v1_DownwardAPIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeSource) + out := out.(*DownwardAPIVolumeSource) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DownwardAPIVolumeFile, len(*in)) + for i := range *in { + if err := DeepCopy_v1_DownwardAPIVolumeFile(&(*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 + } +} + +func DeepCopy_v1_EmptyDirVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EmptyDirVolumeSource) + out := out.(*EmptyDirVolumeSource) + out.Medium = in.Medium + return nil + } +} + +func DeepCopy_v1_EndpointAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointAddress) + out := out.(*EndpointAddress) + out.IP = in.IP + out.Hostname = in.Hostname + if in.NodeName != nil { + in, out := &in.NodeName, &out.NodeName + *out = new(string) + **out = **in + } else { + out.NodeName = nil + } + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(ObjectReference) + **out = **in + } else { + out.TargetRef = nil + } + return nil + } +} + +func DeepCopy_v1_EndpointPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointPort) + out := out.(*EndpointPort) + out.Name = in.Name + out.Port = in.Port + out.Protocol = in.Protocol + return nil + } +} + +func DeepCopy_v1_EndpointSubset(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointSubset) + out := out.(*EndpointSubset) + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if in.NotReadyAddresses != nil { + in, out := &in.NotReadyAddresses, &out.NotReadyAddresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NotReadyAddresses = nil + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]EndpointPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + return nil + } +} + +func DeepCopy_v1_Endpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Endpoints) + out := out.(*Endpoints) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subsets != nil { + in, out := &in.Subsets, &out.Subsets + *out = make([]EndpointSubset, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EndpointSubset(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Subsets = nil + } + return nil + } +} + +func DeepCopy_v1_EndpointsList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointsList) + out := out.(*EndpointsList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Endpoints, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Endpoints(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_EnvVar(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVar) + out := out.(*EnvVar) + out.Name = in.Name + out.Value = in.Value + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(EnvVarSource) + if err := DeepCopy_v1_EnvVarSource(*in, *out, c); err != nil { + return err + } + } else { + out.ValueFrom = nil + } + return nil + } +} + +func DeepCopy_v1_EnvVarSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVarSource) + out := out.(*EnvVarSource) + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(ConfigMapKeySelector) + **out = **in + } else { + out.ConfigMapKeyRef = nil + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(SecretKeySelector) + **out = **in + } else { + out.SecretKeyRef = nil + } + return nil + } +} + +func DeepCopy_v1_Event(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Event) + out := out.(*Event) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.InvolvedObject = in.InvolvedObject + out.Reason = in.Reason + out.Message = in.Message + out.Source = in.Source + out.FirstTimestamp = in.FirstTimestamp.DeepCopy() + out.LastTimestamp = in.LastTimestamp.DeepCopy() + out.Count = in.Count + out.Type = in.Type + return nil + } +} + +func DeepCopy_v1_EventList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventList) + out := out.(*EventList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Event(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_EventSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventSource) + out := out.(*EventSource) + out.Component = in.Component + out.Host = in.Host + return nil + } +} + +func DeepCopy_v1_ExecAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExecAction) + out := out.(*ExecAction) + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_v1_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_v1_FCVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FCVolumeSource) + out := out.(*FCVolumeSource) + if in.TargetWWNs != nil { + in, out := &in.TargetWWNs, &out.TargetWWNs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.TargetWWNs = nil + } + if in.Lun != nil { + in, out := &in.Lun, &out.Lun + *out = new(int32) + **out = **in + } else { + out.Lun = nil + } + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_FlexVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlexVolumeSource) + out := out.(*FlexVolumeSource) + out.Driver = in.Driver + out.FSType = in.FSType + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + if in.Options != nil { + in, out := &in.Options, &out.Options + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Options = nil + } + return nil + } +} + +func DeepCopy_v1_FlockerVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlockerVolumeSource) + out := out.(*FlockerVolumeSource) + out.DatasetName = in.DatasetName + return nil + } +} + +func DeepCopy_v1_GCEPersistentDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GCEPersistentDiskVolumeSource) + out := out.(*GCEPersistentDiskVolumeSource) + out.PDName = in.PDName + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_GitRepoVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GitRepoVolumeSource) + out := out.(*GitRepoVolumeSource) + out.Repository = in.Repository + out.Revision = in.Revision + out.Directory = in.Directory + return nil + } +} + +func DeepCopy_v1_GlusterfsVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GlusterfsVolumeSource) + out := out.(*GlusterfsVolumeSource) + out.EndpointsName = in.EndpointsName + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_HTTPGetAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPGetAction) + out := out.(*HTTPGetAction) + out.Path = in.Path + out.Port = in.Port + out.Host = in.Host + out.Scheme = in.Scheme + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]HTTPHeader, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HTTPHeaders = nil + } + return nil + } +} + +func DeepCopy_v1_HTTPHeader(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPHeader) + out := out.(*HTTPHeader) + out.Name = in.Name + out.Value = in.Value + return nil + } +} + +func DeepCopy_v1_Handler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Handler) + out := out.(*Handler) + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(ExecAction) + if err := DeepCopy_v1_ExecAction(*in, *out, c); err != nil { + return err + } + } else { + out.Exec = nil + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(HTTPGetAction) + if err := DeepCopy_v1_HTTPGetAction(*in, *out, c); err != nil { + return err + } + } else { + out.HTTPGet = nil + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(TCPSocketAction) + **out = **in + } else { + out.TCPSocket = nil + } + return nil + } +} + +func DeepCopy_v1_HostPathVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPathVolumeSource) + out := out.(*HostPathVolumeSource) + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_ISCSIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ISCSIVolumeSource) + out := out.(*ISCSIVolumeSource) + out.TargetPortal = in.TargetPortal + out.IQN = in.IQN + out.Lun = in.Lun + out.ISCSIInterface = in.ISCSIInterface + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_KeyToPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KeyToPath) + 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 + } +} + +func DeepCopy_v1_Lifecycle(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Lifecycle) + out := out.(*Lifecycle) + if in.PostStart != nil { + in, out := &in.PostStart, &out.PostStart + *out = new(Handler) + if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PostStart = nil + } + if in.PreStop != nil { + in, out := &in.PreStop, &out.PreStop + *out = new(Handler) + if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PreStop = nil + } + return nil + } +} + +func DeepCopy_v1_LimitRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRange) + out := out.(*LimitRange) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeItem) + out := out.(*LimitRangeItem) + out.Type = in.Type + if in.Max != nil { + in, out := &in.Max, &out.Max + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Max = nil + } + if in.Min != nil { + in, out := &in.Min, &out.Min + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Min = nil + } + if in.Default != nil { + in, out := &in.Default, &out.Default + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Default = nil + } + if in.DefaultRequest != nil { + in, out := &in.DefaultRequest, &out.DefaultRequest + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.DefaultRequest = nil + } + if in.MaxLimitRequestRatio != nil { + in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.MaxLimitRequestRatio = nil + } + return nil + } +} + +func DeepCopy_v1_LimitRangeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeList) + out := out.(*LimitRangeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LimitRange, len(*in)) + for i := range *in { + if err := DeepCopy_v1_LimitRange(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_LimitRangeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeSpec) + out := out.(*LimitRangeSpec) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make([]LimitRangeItem, len(*in)) + for i := range *in { + if err := DeepCopy_v1_LimitRangeItem(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Limits = nil + } + return nil + } +} + +func DeepCopy_v1_List(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*List) + out := out.(*List) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]runtime.RawExtension, len(*in)) + for i := range *in { + if err := runtime.DeepCopy_runtime_RawExtension(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ListOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListOptions) + out := out.(*ListOptions) + out.TypeMeta = in.TypeMeta + out.LabelSelector = in.LabelSelector + out.FieldSelector = in.FieldSelector + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + if in.TimeoutSeconds != nil { + in, out := &in.TimeoutSeconds, &out.TimeoutSeconds + *out = new(int64) + **out = **in + } else { + out.TimeoutSeconds = nil + } + return nil + } +} + +func DeepCopy_v1_LoadBalancerIngress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerIngress) + out := out.(*LoadBalancerIngress) + out.IP = in.IP + out.Hostname = in.Hostname + return nil + } +} + +func DeepCopy_v1_LoadBalancerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerStatus) + out := out.(*LoadBalancerStatus) + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]LoadBalancerIngress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_v1_LocalObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LocalObjectReference) + out := out.(*LocalObjectReference) + out.Name = in.Name + return nil + } +} + +func DeepCopy_v1_NFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NFSVolumeSource) + out := out.(*NFSVolumeSource) + out.Server = in.Server + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_Namespace(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Namespace) + out := out.(*Namespace) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_NamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceList) + out := out.(*NamespaceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Namespace, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Namespace(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_NamespaceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceSpec) + out := out.(*NamespaceSpec) + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]FinalizerName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Finalizers = nil + } + return nil + } +} + +func DeepCopy_v1_NamespaceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceStatus) + out := out.(*NamespaceStatus) + out.Phase = in.Phase + return nil + } +} + +func DeepCopy_v1_Node(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Node) + out := out.(*Node) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_v1_NodeStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_NodeAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAddress) + out := out.(*NodeAddress) + out.Type = in.Type + out.Address = in.Address + return nil + } +} + +func DeepCopy_v1_NodeAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAffinity) + out := out.(*NodeAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = new(NodeSelector) + if err := DeepCopy_v1_NodeSelector(*in, *out, c); err != nil { + return err + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]PreferredSchedulingTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PreferredSchedulingTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_v1_NodeCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeCondition) + out := out.(*NodeCondition) + out.Type = in.Type + out.Status = in.Status + out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_NodeDaemonEndpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeDaemonEndpoints) + out := out.(*NodeDaemonEndpoints) + out.KubeletEndpoint = in.KubeletEndpoint + return nil + } +} + +func DeepCopy_v1_NodeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeList) + out := out.(*NodeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Node, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Node(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_NodeProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeProxyOptions) + out := out.(*NodeProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_NodeSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelector) + out := out.(*NodeSelector) + if in.NodeSelectorTerms != nil { + in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms + *out = make([]NodeSelectorTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_NodeSelectorTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NodeSelectorTerms = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorRequirement) + out := out.(*NodeSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSelectorTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorTerm) + out := out.(*NodeSelectorTerm) + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]NodeSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_v1_NodeSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSpec) + out := out.(*NodeSpec) + out.PodCIDR = in.PodCIDR + out.ExternalID = in.ExternalID + out.ProviderID = in.ProviderID + out.Unschedulable = in.Unschedulable + return nil + } +} + +func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeStatus) + out := out.(*NodeStatus) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if in.Allocatable != nil { + in, out := &in.Allocatable, &out.Allocatable + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Allocatable = nil + } + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]NodeCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1_NodeCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]NodeAddress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Addresses = nil + } + out.DaemonEndpoints = in.DaemonEndpoints + out.NodeInfo = in.NodeInfo + if in.Images != nil { + in, out := &in.Images, &out.Images + *out = make([]ContainerImage, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ContainerImage(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Images = nil + } + if in.VolumesInUse != nil { + in, out := &in.VolumesInUse, &out.VolumesInUse + *out = make([]UniqueVolumeName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesInUse = nil + } + if in.VolumesAttached != nil { + in, out := &in.VolumesAttached, &out.VolumesAttached + *out = make([]AttachedVolume, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesAttached = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSystemInfo(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSystemInfo) + out := out.(*NodeSystemInfo) + out.MachineID = in.MachineID + out.SystemUUID = in.SystemUUID + out.BootID = in.BootID + out.KernelVersion = in.KernelVersion + out.OSImage = in.OSImage + out.ContainerRuntimeVersion = in.ContainerRuntimeVersion + out.KubeletVersion = in.KubeletVersion + out.KubeProxyVersion = in.KubeProxyVersion + out.OperatingSystem = in.OperatingSystem + out.Architecture = in.Architecture + return nil + } +} + +func DeepCopy_v1_ObjectFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectFieldSelector) + out := out.(*ObjectFieldSelector) + out.APIVersion = in.APIVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectMeta) + out := out.(*ObjectMeta) + out.Name = in.Name + out.GenerateName = in.GenerateName + out.Namespace = in.Namespace + out.SelfLink = in.SelfLink + out.UID = in.UID + out.ResourceVersion = in.ResourceVersion + out.Generation = in.Generation + out.CreationTimestamp = in.CreationTimestamp.DeepCopy() + if in.DeletionTimestamp != nil { + in, out := &in.DeletionTimestamp, &out.DeletionTimestamp + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.DeletionTimestamp = nil + } + if in.DeletionGracePeriodSeconds != nil { + in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.DeletionGracePeriodSeconds = nil + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Labels = 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 + } + if in.OwnerReferences != nil { + in, out := &in.OwnerReferences, &out.OwnerReferences + *out = make([]OwnerReference, len(*in)) + for i := range *in { + if err := DeepCopy_v1_OwnerReference(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.OwnerReferences = nil + } + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Finalizers = nil + } + out.ClusterName = in.ClusterName + return nil + } +} + +func DeepCopy_v1_ObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectReference) + out := out.(*ObjectReference) + out.Kind = in.Kind + out.Namespace = in.Namespace + out.Name = in.Name + out.UID = in.UID + out.APIVersion = in.APIVersion + out.ResourceVersion = in.ResourceVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_v1_OwnerReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*OwnerReference) + out := out.(*OwnerReference) + out.APIVersion = in.APIVersion + out.Kind = in.Kind + out.Name = in.Name + out.UID = in.UID + if in.Controller != nil { + in, out := &in.Controller, &out.Controller + *out = new(bool) + **out = **in + } else { + out.Controller = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolume) + out := out.(*PersistentVolume) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaim(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaim) + out := out.(*PersistentVolumeClaim) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_PersistentVolumeClaimStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimList) + out := out.(*PersistentVolumeClaimList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimSpec) + out := out.(*PersistentVolumeClaimSpec) + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := DeepCopy_v1_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + out.VolumeName = in.VolumeName + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimStatus) + out := out.(*PersistentVolumeClaimStatus) + out.Phase = in.Phase + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimVolumeSource) + out := out.(*PersistentVolumeClaimVolumeSource) + out.ClaimName = in.ClaimName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_PersistentVolumeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeList) + out := out.(*PersistentVolumeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolume, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PersistentVolume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSource) + out := out.(*PersistentVolumeSource) + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } 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 + } +} + +func DeepCopy_v1_PersistentVolumeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSpec) + out := out.(*PersistentVolumeSpec) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if err := DeepCopy_v1_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { + return err + } + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.ClaimRef != nil { + in, out := &in.ClaimRef, &out.ClaimRef + *out = new(ObjectReference) + **out = **in + } else { + out.ClaimRef = nil + } + out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy + return nil + } +} + +func DeepCopy_v1_PersistentVolumeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeStatus) + out := out.(*PersistentVolumeStatus) + out.Phase = in.Phase + out.Message = in.Message + out.Reason = in.Reason + return nil + } +} + +func DeepCopy_v1_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Pod) + out := out.(*Pod) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PodAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinity) + out := out.(*PodAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_v1_PodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinityTerm) + out := out.(*PodAffinityTerm) + if in.LabelSelector != nil { + in, out := &in.LabelSelector, &out.LabelSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.LabelSelector = nil + } + if in.Namespaces != nil { + in, out := &in.Namespaces, &out.Namespaces + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Namespaces = nil + } + out.TopologyKey = in.TopologyKey + return nil + } +} + +func DeepCopy_v1_PodAntiAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAntiAffinity) + out := out.(*PodAntiAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_v1_PodAttachOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAttachOptions) + out := out.(*PodAttachOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + return nil + } +} + +func DeepCopy_v1_PodCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodCondition) + out := out.(*PodCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_PodExecOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodExecOptions) + out := out.(*PodExecOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_v1_PodList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodList) + out := out.(*PodList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Pod, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Pod(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PodLogOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodLogOptions) + out := out.(*PodLogOptions) + out.TypeMeta = in.TypeMeta + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } else { + out.SinceSeconds = nil + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.SinceTime = nil + } + out.Timestamps = in.Timestamps + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } else { + out.TailLines = nil + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in + } else { + out.LimitBytes = nil + } + return nil + } +} + +func DeepCopy_v1_PodProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodProxyOptions) + out := out.(*PodProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_PodSecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityContext) + out := out.(*PodSecurityContext) + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.SupplementalGroups != nil { + in, out := &in.SupplementalGroups, &out.SupplementalGroups + *out = make([]int64, len(*in)) + copy(*out, *in) + } else { + out.SupplementalGroups = nil + } + if in.FSGroup != nil { + in, out := &in.FSGroup, &out.FSGroup + *out = new(int64) + **out = **in + } else { + out.FSGroup = nil + } + return nil + } +} + +func DeepCopy_v1_PodSignature(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSignature) + out := out.(*PodSignature) + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(OwnerReference) + if err := DeepCopy_v1_OwnerReference(*in, *out, c); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil + } +} + +func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSpec) + out := out.(*PodSpec) + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]Volume, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Volume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Volumes = nil + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainers = nil + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.RestartPolicy = in.RestartPolicy + if in.TerminationGracePeriodSeconds != nil { + in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.TerminationGracePeriodSeconds = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + out.DNSPolicy = in.DNSPolicy + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.NodeSelector = nil + } + out.ServiceAccountName = in.ServiceAccountName + out.DeprecatedServiceAccount = in.DeprecatedServiceAccount + out.NodeName = in.NodeName + out.HostNetwork = in.HostNetwork + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(PodSecurityContext) + if err := DeepCopy_v1_PodSecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + out.Hostname = in.Hostname + out.Subdomain = in.Subdomain + return nil + } +} + +func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatus) + out := out.(*PodStatus) + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]PodCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + out.Message = in.Message + out.Reason = in.Reason + out.HostIP = in.HostIP + out.PodIP = in.PodIP + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainerStatuses = nil + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.ContainerStatuses = nil + } + return nil + } +} + +func DeepCopy_v1_PodStatusResult(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatusResult) + out := out.(*PodStatusResult) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PodTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplate) + out := out.(*PodTemplate) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PodTemplateList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateList) + out := out.(*PodTemplateList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodTemplate, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodTemplate(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PodTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateSpec) + out := out.(*PodTemplateSpec) + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_Preconditions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Preconditions) + out := out.(*Preconditions) + if in.UID != nil { + in, out := &in.UID, &out.UID + *out = new(types.UID) + **out = **in + } else { + out.UID = nil + } + return nil + } +} + +func DeepCopy_v1_PreferAvoidPodsEntry(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferAvoidPodsEntry) + out := out.(*PreferAvoidPodsEntry) + if err := DeepCopy_v1_PodSignature(&in.PodSignature, &out.PodSignature, c); err != nil { + return err + } + out.EvictionTime = in.EvictionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_PreferredSchedulingTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferredSchedulingTerm) + out := out.(*PreferredSchedulingTerm) + out.Weight = in.Weight + if err := DeepCopy_v1_NodeSelectorTerm(&in.Preference, &out.Preference, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_Probe(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Probe) + out := out.(*Probe) + if err := DeepCopy_v1_Handler(&in.Handler, &out.Handler, c); err != nil { + return err + } + out.InitialDelaySeconds = in.InitialDelaySeconds + out.TimeoutSeconds = in.TimeoutSeconds + out.PeriodSeconds = in.PeriodSeconds + out.SuccessThreshold = in.SuccessThreshold + out.FailureThreshold = in.FailureThreshold + return nil + } +} + +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) + out := out.(*RBDVolumeSource) + if in.CephMonitors != nil { + in, out := &in.CephMonitors, &out.CephMonitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.CephMonitors = nil + } + out.RBDImage = in.RBDImage + out.FSType = in.FSType + out.RBDPool = in.RBDPool + out.RadosUser = in.RadosUser + out.Keyring = in.Keyring + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_RangeAllocation(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RangeAllocation) + out := out.(*RangeAllocation) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Range = in.Range + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_v1_ReplicationController(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationController) + out := out.(*ReplicationController) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_ReplicationControllerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerList) + out := out.(*ReplicationControllerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicationController, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ReplicationController(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ReplicationControllerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerSpec) + out := out.(*ReplicationControllerSpec) + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } else { + out.Replicas = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(PodTemplateSpec) + if err := DeepCopy_v1_PodTemplateSpec(*in, *out, c); err != nil { + return err + } + } else { + out.Template = nil + } + return nil + } +} + +func DeepCopy_v1_ReplicationControllerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerStatus) + out := out.(*ReplicationControllerStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_v1_ResourceFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceFieldSelector) + out := out.(*ResourceFieldSelector) + out.ContainerName = in.ContainerName + out.Resource = in.Resource + out.Divisor = in.Divisor.DeepCopy() + return nil + } +} + +func DeepCopy_v1_ResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuota) + out := out.(*ResourceQuota) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_ResourceQuotaStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_ResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaList) + out := out.(*ResourceQuotaList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceQuota, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ResourceQuota(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ResourceQuotaSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaSpec) + out := out.(*ResourceQuotaSpec) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]ResourceQuotaScope, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Scopes = nil + } + return nil + } +} + +func DeepCopy_v1_ResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaStatus) + out := out.(*ResourceQuotaStatus) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Used != nil { + in, out := &in.Used, &out.Used + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Used = nil + } + return nil + } +} + +func DeepCopy_v1_ResourceRequirements(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceRequirements) + out := out.(*ResourceRequirements) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Limits = nil + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Requests = nil + } + return nil + } +} + +func DeepCopy_v1_SELinuxOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxOptions) + out := out.(*SELinuxOptions) + out.User = in.User + out.Role = in.Role + out.Type = in.Type + out.Level = in.Level + return nil + } +} + +func DeepCopy_v1_Secret(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Secret) + out := out.(*Secret) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string][]byte) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*[]byte) + } + } + } else { + out.Data = nil + } + if in.StringData != nil { + in, out := &in.StringData, &out.StringData + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.StringData = nil + } + out.Type = in.Type + return nil + } +} + +func DeepCopy_v1_SecretKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretKeySelector) + out := out.(*SecretKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_v1_SecretList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretList) + out := out.(*SecretList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Secret, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Secret(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_SecretVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretVolumeSource) + out := out.(*SecretVolumeSource) + out.SecretName = in.SecretName + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + 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 + } +} + +func DeepCopy_v1_SecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecurityContext) + out := out.(*SecurityContext) + if in.Capabilities != nil { + in, out := &in.Capabilities, &out.Capabilities + *out = new(Capabilities) + if err := DeepCopy_v1_Capabilities(*in, *out, c); err != nil { + return err + } + } else { + out.Capabilities = nil + } + if in.Privileged != nil { + in, out := &in.Privileged, &out.Privileged + *out = new(bool) + **out = **in + } else { + out.Privileged = nil + } + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.ReadOnlyRootFilesystem != nil { + in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem + *out = new(bool) + **out = **in + } else { + out.ReadOnlyRootFilesystem = nil + } + return nil + } +} + +func DeepCopy_v1_SerializedReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SerializedReference) + out := out.(*SerializedReference) + out.TypeMeta = in.TypeMeta + out.Reference = in.Reference + return nil + } +} + +func DeepCopy_v1_Service(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Service) + out := out.(*Service) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_ServiceStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_ServiceAccount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccount) + out := out.(*ServiceAccount) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = make([]ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Secrets = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + return nil + } +} + +func DeepCopy_v1_ServiceAccountList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccountList) + out := out.(*ServiceAccountList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ServiceAccount, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ServiceAccount(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ServiceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceList) + out := out.(*ServiceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Service, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Service(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ServicePort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServicePort) + out := out.(*ServicePort) + out.Name = in.Name + out.Protocol = in.Protocol + out.Port = in.Port + out.TargetPort = in.TargetPort + out.NodePort = in.NodePort + return nil + } +} + +func DeepCopy_v1_ServiceProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceProxyOptions) + out := out.(*ServiceProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_ServiceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceSpec) + out := out.(*ServiceSpec) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ServicePort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + out.ClusterIP = in.ClusterIP + out.Type = in.Type + if in.ExternalIPs != nil { + in, out := &in.ExternalIPs, &out.ExternalIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.ExternalIPs = nil + } + if in.DeprecatedPublicIPs != nil { + in, out := &in.DeprecatedPublicIPs, &out.DeprecatedPublicIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.DeprecatedPublicIPs = nil + } + out.SessionAffinity = in.SessionAffinity + out.LoadBalancerIP = in.LoadBalancerIP + if in.LoadBalancerSourceRanges != nil { + in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.LoadBalancerSourceRanges = nil + } + out.ExternalName = in.ExternalName + return nil + } +} + +func DeepCopy_v1_ServiceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceStatus) + out := out.(*ServiceStatus) + if err := DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_TCPSocketAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TCPSocketAction) + out := out.(*TCPSocketAction) + out.Port = in.Port + return nil + } +} + +func DeepCopy_v1_Taint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Taint) + out := out.(*Taint) + out.Key = in.Key + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_v1_Toleration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Toleration) + out := out.(*Toleration) + out.Key = in.Key + out.Operator = in.Operator + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_v1_Volume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Volume) + out := out.(*Volume) + out.Name = in.Name + if err := DeepCopy_v1_VolumeSource(&in.VolumeSource, &out.VolumeSource, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_VolumeMount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeMount) + out := out.(*VolumeMount) + out.Name = in.Name + out.ReadOnly = in.ReadOnly + out.MountPath = in.MountPath + out.SubPath = in.SubPath + return nil + } +} + +func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeSource) + out := out.(*VolumeSource) + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.EmptyDir != nil { + in, out := &in.EmptyDir, &out.EmptyDir + *out = new(EmptyDirVolumeSource) + **out = **in + } else { + out.EmptyDir = nil + } + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.GitRepo != nil { + in, out := &in.GitRepo, &out.GitRepo + *out = new(GitRepoVolumeSource) + **out = **in + } else { + out.GitRepo = nil + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = new(SecretVolumeSource) + if err := DeepCopy_v1_SecretVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.Secret = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.PersistentVolumeClaim != nil { + in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim + *out = new(PersistentVolumeClaimVolumeSource) + **out = **in + } else { + out.PersistentVolumeClaim = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.DownwardAPI != nil { + in, out := &in.DownwardAPI, &out.DownwardAPI + *out = new(DownwardAPIVolumeSource) + if err := DeepCopy_v1_DownwardAPIVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.DownwardAPI = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.ConfigMap != nil { + in, out := &in.ConfigMap, &out.ConfigMap + *out = new(ConfigMapVolumeSource) + if err := DeepCopy_v1_ConfigMapVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.ConfigMap = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } 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 + } +} + +func DeepCopy_v1_VsphereVirtualDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VsphereVirtualDiskVolumeSource) + out := out.(*VsphereVirtualDiskVolumeSource) + out.VolumePath = in.VolumePath + out.FSType = in.FSType + return nil + } +} + +func DeepCopy_v1_WeightedPodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*WeightedPodAffinityTerm) + out := out.(*WeightedPodAffinityTerm) + out.Weight = in.Weight + if err := DeepCopy_v1_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { + return err + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/events.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/events.go index 754cf88300..589fe919f2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/events.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/events.go @@ -17,7 +17,13 @@ limitations under the License. package validation import ( + "fmt" + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/api/unversioned" + apiutil "k8s.io/kubernetes/pkg/api/util" + "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/util/validation" "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/validation.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/validation.go index 3854004d8f..42a8e5f6b7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/validation.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/validation/validation.go @@ -23,6 +23,7 @@ import ( "os" "path" "reflect" + "regexp" "strings" "github.com/golang/glog" @@ -36,6 +37,7 @@ import ( "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/capabilities" "k8s.io/kubernetes/pkg/labels" + "k8s.io/kubernetes/pkg/security/apparmor" "k8s.io/kubernetes/pkg/util/intstr" "k8s.io/kubernetes/pkg/util/sets" "k8s.io/kubernetes/pkg/util/validation" @@ -52,6 +54,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 +103,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 +131,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 } @@ -204,7 +259,7 @@ var ValidateReplicationControllerName = NameIsDNSSubdomain // ValidateServiceName can be used to check whether the given service name is valid. // Prefix indicates this name will be used as part of generation, in which case // trailing dashes are allowed. -var ValidateServiceName = NameIsDNS952Label +var ValidateServiceName = NameIsDNS1035Label // ValidateNodeName can be used to check whether the given node name is valid. // Prefix indicates this name will be used as part of generation, in which case @@ -242,6 +297,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 { @@ -258,12 +316,12 @@ func NameIsDNSLabel(name string, prefix bool) []string { return validation.IsDNS1123Label(name) } -// NameIsDNS952Label is a ValidateNameFunc for names that must be a DNS 952 label. -func NameIsDNS952Label(name string, prefix bool) []string { +// NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label. +func NameIsDNS1035Label(name string, prefix bool) []string { if prefix { name = maskTrailingDash(name) } - return validation.IsDNS952Label(name) + return validation.IsDNS1035Label(name) } // Validates that given value is not negative. @@ -327,6 +385,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 +451,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 +597,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 +649,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")) } @@ -598,7 +675,7 @@ func validateGitRepoVolumeSource(gitRepo *api.GitRepoVolumeSource, fldPath *fiel allErrs = append(allErrs, field.Required(fldPath.Child("repository"), "")) } - pathErrs := validateVolumeSourcePath(gitRepo.Directory, fldPath.Child("directory")) + pathErrs := validateLocalDescendingPath(gitRepo.Directory, fldPath.Child("directory")) allErrs = append(allErrs, pathErrs...) return allErrs } @@ -660,6 +737,17 @@ 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) + allErrs = append(allErrs, validateKeyToPath(&kp, itemPath)...) + } return allErrs } @@ -668,6 +756,33 @@ 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) + allErrs = append(allErrs, validateKeyToPath(&kp, itemPath)...) + } + return allErrs +} + +func validateKeyToPath(kp *api.KeyToPath, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(kp.Key) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("key"), "")) + } + if len(kp.Path) == 0 { + 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 } @@ -693,6 +808,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 { @@ -715,69 +848,71 @@ func validateFlockerVolumeSource(flocker *api.FlockerVolumeSource, fldPath *fiel return allErrs } -var validDownwardAPIFieldPathExpressions = sets.NewString("metadata.name", "metadata.namespace", "metadata.labels", "metadata.annotations") +var validDownwardAPIFieldPathExpressions = sets.NewString( + "metadata.name", + "metadata.namespace", + "metadata.labels", + "metadata.annotations") func validateDownwardAPIVolumeSource(downwardAPIVolume *api.DownwardAPIVolumeSource, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} - for _, downwardAPIVolumeFile := range downwardAPIVolume.Items { - if len(downwardAPIVolumeFile.Path) == 0 { + + 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"), "")) } - allErrs = append(allErrs, validateVolumeSourcePath(downwardAPIVolumeFile.Path, fldPath.Child("path"))...) - if downwardAPIVolumeFile.FieldRef != nil { - allErrs = append(allErrs, validateObjectFieldSelector(downwardAPIVolumeFile.FieldRef, &validDownwardAPIFieldPathExpressions, fldPath.Child("fieldRef"))...) - if downwardAPIVolumeFile.ResourceFieldRef != nil { + allErrs = append(allErrs, validateLocalNonReservedPath(file.Path, fldPath.Child("path"))...) + if file.FieldRef != nil { + allErrs = append(allErrs, validateObjectFieldSelector(file.FieldRef, &validDownwardAPIFieldPathExpressions, fldPath.Child("fieldRef"))...) + if file.ResourceFieldRef != nil { allErrs = append(allErrs, field.Invalid(fldPath, "resource", "fieldRef and resourceFieldRef can not be specified simultaneously")) } - } else if downwardAPIVolumeFile.ResourceFieldRef != nil { - allErrs = append(allErrs, validateContainerResourceFieldSelector(downwardAPIVolumeFile.ResourceFieldRef, &validContainerResourceFieldPathExpressions, fldPath.Child("resourceFieldRef"), true)...) + } else if file.ResourceFieldRef != nil { + allErrs = append(allErrs, validateContainerResourceFieldSelector(file.ResourceFieldRef, &validContainerResourceFieldPathExpressions, fldPath.Child("resourceFieldRef"), true)...) } 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 } // This validate will make sure targetPath: // 1. is not abs path -// 2. does not start with '../' -// 3. does not contain '/../' -// 4. does not end with '/..' -func validateSubPath(targetPath string, fldPath *field.Path) field.ErrorList { +// 2. does not have any element which is ".." +func validateLocalDescendingPath(targetPath string, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if path.IsAbs(targetPath) { allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must be a relative path")) } - if strings.HasPrefix(targetPath, "../") { - allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not start with '../'")) - } - if strings.Contains(targetPath, "/../") { - allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not contain '/../'")) - } - if strings.HasSuffix(targetPath, "/..") { - allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not end with '/..'")) + + // TODO: this assumes the OS of apiserver & nodes are the same + parts := strings.Split(targetPath, string(os.PathSeparator)) + for _, item := range parts { + if item == ".." { + allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not contain '..'")) + break // even for `../../..`, one error is sufficient to make the point + } } return allErrs } // This validate will make sure targetPath: // 1. is not abs path -// 2. does not contain '..' +// 2. does not contain any '..' elements // 3. does not start with '..' -func validateVolumeSourcePath(targetPath string, fldPath *field.Path) field.ErrorList { +func validateLocalNonReservedPath(targetPath string, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} - if path.IsAbs(targetPath) { - allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must be a relative path")) - } - // TODO assume OS of api server & nodes are the same for now - items := strings.Split(targetPath, string(os.PathSeparator)) - - for _, item := range items { - if item == ".." { - allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not contain '..'")) - } - } - if strings.HasPrefix(items[0], "..") && len(items[0]) > 2 { + allErrs = append(allErrs, validateLocalDescendingPath(targetPath, fldPath)...) + // Don't report this error if the check for .. elements already caught it. + if strings.HasPrefix(targetPath, "..") && !strings.HasPrefix(targetPath, "../") { allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not start with '..'")) } return allErrs @@ -829,6 +964,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 { @@ -925,6 +1076,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")) @@ -973,6 +1132,11 @@ 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")) } @@ -999,26 +1163,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)...) @@ -1039,6 +1214,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 { @@ -1112,7 +1288,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 { @@ -1197,11 +1373,11 @@ func validateContainerResourceDivisor(rName string, divisor resource.Quantity, f switch rName { case "limits.cpu", "requests.cpu": if !validContainerResourceDivisorForCPU.Has(divisor.String()) { - allErrs = append(allErrs, field.Invalid(fldPath.Child("divisor"), rName, fmt.Sprintf("only divisor's values 1m and 1 are supported with the cpu resource"))) + allErrs = append(allErrs, field.Invalid(fldPath.Child("divisor"), rName, "only divisor's values 1m and 1 are supported with the cpu resource")) } case "limits.memory", "requests.memory": if !validContainerResourceDivisorForMemory.Has(divisor.String()) { - allErrs = append(allErrs, field.Invalid(fldPath.Child("divisor"), rName, fmt.Sprintf("only divisor's values 1, 1k, 1M, 1G, 1T, 1P, 1E, 1Ki, 1Mi, 1Gi, 1Ti, 1Pi, 1Ei are supported with the memory resource"))) + allErrs = append(allErrs, field.Invalid(fldPath.Child("divisor"), rName, "only divisor's values 1, 1k, 1M, 1G, 1T, 1P, 1E, 1Ki, 1Mi, 1Gi, 1Ti, 1Pi, 1Ei are supported with the memory resource")) } } return allErrs @@ -1262,7 +1438,7 @@ func validateVolumeMounts(mounts []api.VolumeMount, volumes sets.String, fldPath } mountpoints.Insert(mnt.MountPath) if len(mnt.SubPath) > 0 { - allErrs = append(allErrs, validateSubPath(mnt.SubPath, fldPath.Child("subPath"))...) + allErrs = append(allErrs, validateLocalDescendingPath(mnt.SubPath, fldPath.Child("subPath"))...) } } return allErrs @@ -1621,7 +1797,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 } @@ -1724,6 +1900,41 @@ func ValidateNodeSelector(nodeSelector *api.NodeSelector, fldPath *field.Path) f return allErrs } +// ValidateAvoidPodsInNodeAnnotations tests that the serialized AvoidPods in Node.Annotations has valid data +func ValidateAvoidPodsInNodeAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + avoids, err := api.GetAvoidPodsFromNodeAnnotations(annotations) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Child("AvoidPods"), api.PreferAvoidPodsAnnotationKey, err.Error())) + return allErrs + } + + if len(avoids.PreferAvoidPods) != 0 { + for i, pa := range avoids.PreferAvoidPods { + idxPath := fldPath.Child(api.PreferAvoidPodsAnnotationKey).Index(i) + allErrs = append(allErrs, validatePreferAvoidPodsEntry(pa, idxPath)...) + } + } + + return allErrs +} + +// validatePreferAvoidPodsEntry tests if given PreferAvoidPodsEntry has valid data. +func validatePreferAvoidPodsEntry(avoidPodEntry api.PreferAvoidPodsEntry, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + if avoidPodEntry.PodSignature.PodController == nil { + allErrors = append(allErrors, field.Required(fldPath.Child("PodSignature"), "")) + } else { + if *(avoidPodEntry.PodSignature.PodController.Controller) != true { + allErrors = append(allErrors, + field.Invalid(fldPath.Child("PodSignature").Child("PodController").Child("Controller"), + *(avoidPodEntry.PodSignature.PodController.Controller), "must point to a controller")) + } + } + return allErrors +} + // ValidatePreferredSchedulingTerms tests that the specified SoftNodeAffinity fields has valid data func ValidatePreferredSchedulingTerms(terms []api.PreferredSchedulingTerm, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} @@ -1828,6 +2039,9 @@ func ValidateAffinityInPodAnnotations(annotations map[string]string, fldPath *fi allErrs = append(allErrs, field.Invalid(fldPath, api.AffinityAnnotationKey, err.Error())) return allErrs } + if affinity == nil { + return allErrs + } affinityFldPath := fldPath.Child(api.AffinityAnnotationKey) if affinity.NodeAffinity != nil { @@ -1880,7 +2094,7 @@ func validateSeccompProfile(p string, fldPath *field.Path) field.ErrorList { return nil } if strings.HasPrefix(p, "localhost/") { - return validateSubPath(strings.TrimPrefix(p, "localhost/"), fldPath) + return validateLocalDescendingPath(strings.TrimPrefix(p, "localhost/"), fldPath) } return field.ErrorList{field.Invalid(fldPath, p, "must be a valid seccomp profile")} } @@ -1899,6 +2113,73 @@ 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 + } + containerName := strings.TrimPrefix(k, apparmor.ContainerAnnotationKeyPrefix) + if !podSpecHasContainer(spec, containerName) { + allErrs = append(allErrs, field.Invalid(fldPath.Child(k), containerName, "container not found")) + } + + if err := apparmor.ValidateProfileFormat(p); err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Child(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{} @@ -1925,28 +2206,45 @@ func ValidatePodSecurityContext(securityContext *api.PodSecurityContext, spec *a return allErrs } +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 + allErrs = append(allErrs, field.Forbidden(fldPath, "pod updates may not add or remove containers")) + return allErrs, true + } + + // validate updated container images + for i, ctr := range newContainers { + if len(ctr.Image) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Index(i).Child("image"), "")) + } + } + return allErrs, false +} + // ValidatePodUpdate tests to see if the update is legal for an end user to make. newPod is updated with fields // that cannot be changed. 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") - if len(newPod.Spec.Containers) != len(oldPod.Spec.Containers) { - //TODO: Pinpoint the specific container that causes the invalid error after we have strategic merge diff - allErrs = append(allErrs, field.Forbidden(specPath.Child("containers"), "pod updates may not add or remove containers")) - return allErrs - } // validate updateable fields: // 1. containers[*].image - // 2. spec.activeDeadlineSeconds + // 2. initContainers[*].image + // 3. spec.activeDeadlineSeconds - // validate updated container images - for i, ctr := range newPod.Spec.Containers { - if len(ctr.Image) == 0 { - allErrs = append(allErrs, field.Required(specPath.Child("containers").Index(i).Child("image"), "")) - } + 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")) + allErrs = append(allErrs, containerErrs...) + if stop { + return allErrs } // validate updated spec.activeDeadlineSeconds. two types of updates are allowed: @@ -1978,6 +2276,13 @@ func ValidatePodUpdate(newPod, oldPod *api.Pod) field.ErrorList { newContainers = append(newContainers, container) } mungedPod.Spec.Containers = newContainers + // munge initContainers[*].image + var newInitContainers []api.Container + for ix, container := range mungedPod.Spec.InitContainers { + container.Image = oldPod.Spec.InitContainers[ix].Image + newInitContainers = append(newInitContainers, container) + } + mungedPod.Spec.InitContainers = newInitContainers // munge spec.activeDeadlineSeconds mungedPod.Spec.ActiveDeadlineSeconds = nil if oldPod.Spec.ActiveDeadlineSeconds != nil { @@ -2041,17 +2346,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 @@ -2062,9 +2369,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 { @@ -2305,7 +2620,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 } @@ -2328,6 +2643,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 @@ -2338,6 +2656,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 } @@ -2359,10 +2691,14 @@ func ValidateTaintsInNodeAnnotations(annotations map[string]string, fldPath *fie } func ValidateNodeSpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if annotations[api.PreferAvoidPodsAnnotationKey] != "" { + allErrs = append(allErrs, ValidateAvoidPodsInNodeAnnotations(annotations, fldPath)...) + } if annotations[api.TaintsAnnotationKey] != "" { - return ValidateTaintsInNodeAnnotations(annotations, fldPath) + allErrs = append(allErrs, ValidateTaintsInNodeAnnotations(annotations, fldPath)...) } - return field.ErrorList{} + return allErrs } // ValidateNode tests if required fields in the node are set. @@ -2780,11 +3116,11 @@ func ValidateResourceRequirements(requirements *api.ResourceRequirements, fldPat // Check that request <= limit. requestQuantity, exists := requirements.Requests[resourceName] if exists { - // For GPUs, require that no request be set. - if resourceName == api.ResourceNvidiaGPU { - allErrs = append(allErrs, field.Invalid(reqPath, requestQuantity.String(), "cannot be set")) + // For GPUs, not only requests can't exceed limits, they also can't be lower, i.e. must be equal. + if resourceName == api.ResourceNvidiaGPU && quantity.Cmp(requestQuantity) != 0 { + allErrs = append(allErrs, field.Invalid(reqPath, requestQuantity.String(), fmt.Sprintf("must be equal to %s limit", api.ResourceNvidiaGPU))) } else if quantity.Cmp(requestQuantity) < 0 { - allErrs = append(allErrs, field.Invalid(fldPath, quantity.String(), "must be greater than or equal to request")) + allErrs = append(allErrs, field.Invalid(limPath, quantity.String(), fmt.Sprintf("must be greater than or equal to %s request", resourceName))) } } } @@ -2957,7 +3293,7 @@ func validateFinalizerName(stringValue string, fldPath *field.Path) field.ErrorL if len(strings.Split(stringValue, "/")) == 1 { if !api.IsStandardFinalizerName(stringValue) { - return append(allErrs, field.Invalid(fldPath, stringValue, fmt.Sprintf("name is neither a standard finalizer name nor is it fully qualified"))) + return append(allErrs, field.Invalid(fldPath, stringValue, "name is neither a standard finalizer name nor is it fully qualified")) } } @@ -3191,3 +3527,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/ingress/vendor/k8s.io/kubernetes/pkg/api/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/api/zz_generated.deepcopy.go new file mode 100644 index 0000000000..b4d69f1b2f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/api/zz_generated.deepcopy.go @@ -0,0 +1,3749 @@ +// +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 api + +import ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + fields "k8s.io/kubernetes/pkg/fields" + labels "k8s.io/kubernetes/pkg/labels" + runtime "k8s.io/kubernetes/pkg/runtime" + types "k8s.io/kubernetes/pkg/types" + 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_api_AWSElasticBlockStoreVolumeSource, InType: reflect.TypeOf(&AWSElasticBlockStoreVolumeSource{})}, + 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_CephFSVolumeSource, InType: reflect.TypeOf(&CephFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_CinderVolumeSource, InType: reflect.TypeOf(&CinderVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ComponentCondition, InType: reflect.TypeOf(&ComponentCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ComponentStatus, InType: reflect.TypeOf(&ComponentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ComponentStatusList, InType: reflect.TypeOf(&ComponentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMap, InType: reflect.TypeOf(&ConfigMap{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMapKeySelector, InType: reflect.TypeOf(&ConfigMapKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMapList, InType: reflect.TypeOf(&ConfigMapList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMapVolumeSource, InType: reflect.TypeOf(&ConfigMapVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Container, InType: reflect.TypeOf(&Container{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerImage, InType: reflect.TypeOf(&ContainerImage{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerPort, InType: reflect.TypeOf(&ContainerPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerState, InType: reflect.TypeOf(&ContainerState{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStateRunning, InType: reflect.TypeOf(&ContainerStateRunning{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStateTerminated, InType: reflect.TypeOf(&ContainerStateTerminated{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStateWaiting, InType: reflect.TypeOf(&ContainerStateWaiting{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStatus, InType: reflect.TypeOf(&ContainerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConversionError, InType: reflect.TypeOf(&ConversionError{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DaemonEndpoint, InType: reflect.TypeOf(&DaemonEndpoint{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DeleteOptions, InType: reflect.TypeOf(&DeleteOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DownwardAPIVolumeFile, InType: reflect.TypeOf(&DownwardAPIVolumeFile{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DownwardAPIVolumeSource, InType: reflect.TypeOf(&DownwardAPIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EmptyDirVolumeSource, InType: reflect.TypeOf(&EmptyDirVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointAddress, InType: reflect.TypeOf(&EndpointAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointPort, InType: reflect.TypeOf(&EndpointPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointSubset, InType: reflect.TypeOf(&EndpointSubset{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Endpoints, InType: reflect.TypeOf(&Endpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointsList, InType: reflect.TypeOf(&EndpointsList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EnvVar, InType: reflect.TypeOf(&EnvVar{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EnvVarSource, InType: reflect.TypeOf(&EnvVarSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Event, InType: reflect.TypeOf(&Event{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EventList, InType: reflect.TypeOf(&EventList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EventSource, InType: reflect.TypeOf(&EventSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ExecAction, InType: reflect.TypeOf(&ExecAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_FCVolumeSource, InType: reflect.TypeOf(&FCVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_FlexVolumeSource, InType: reflect.TypeOf(&FlexVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_FlockerVolumeSource, InType: reflect.TypeOf(&FlockerVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_GCEPersistentDiskVolumeSource, InType: reflect.TypeOf(&GCEPersistentDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_GitRepoVolumeSource, InType: reflect.TypeOf(&GitRepoVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_GlusterfsVolumeSource, InType: reflect.TypeOf(&GlusterfsVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_HTTPGetAction, InType: reflect.TypeOf(&HTTPGetAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_HTTPHeader, InType: reflect.TypeOf(&HTTPHeader{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Handler, InType: reflect.TypeOf(&Handler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_HostPathVolumeSource, InType: reflect.TypeOf(&HostPathVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ISCSIVolumeSource, InType: reflect.TypeOf(&ISCSIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_KeyToPath, InType: reflect.TypeOf(&KeyToPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Lifecycle, InType: reflect.TypeOf(&Lifecycle{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRange, InType: reflect.TypeOf(&LimitRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRangeItem, InType: reflect.TypeOf(&LimitRangeItem{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRangeList, InType: reflect.TypeOf(&LimitRangeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRangeSpec, InType: reflect.TypeOf(&LimitRangeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_List, InType: reflect.TypeOf(&List{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ListOptions, InType: reflect.TypeOf(&ListOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LoadBalancerIngress, InType: reflect.TypeOf(&LoadBalancerIngress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LoadBalancerStatus, InType: reflect.TypeOf(&LoadBalancerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LocalObjectReference, InType: reflect.TypeOf(&LocalObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NFSVolumeSource, InType: reflect.TypeOf(&NFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Namespace, InType: reflect.TypeOf(&Namespace{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NamespaceList, InType: reflect.TypeOf(&NamespaceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NamespaceSpec, InType: reflect.TypeOf(&NamespaceSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NamespaceStatus, InType: reflect.TypeOf(&NamespaceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Node, InType: reflect.TypeOf(&Node{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeAddress, InType: reflect.TypeOf(&NodeAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeAffinity, InType: reflect.TypeOf(&NodeAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeCondition, InType: reflect.TypeOf(&NodeCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeDaemonEndpoints, InType: reflect.TypeOf(&NodeDaemonEndpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeList, InType: reflect.TypeOf(&NodeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeProxyOptions, InType: reflect.TypeOf(&NodeProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeResources, InType: reflect.TypeOf(&NodeResources{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSelector, InType: reflect.TypeOf(&NodeSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSelectorRequirement, InType: reflect.TypeOf(&NodeSelectorRequirement{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSelectorTerm, InType: reflect.TypeOf(&NodeSelectorTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSpec, InType: reflect.TypeOf(&NodeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeStatus, InType: reflect.TypeOf(&NodeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSystemInfo, InType: reflect.TypeOf(&NodeSystemInfo{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ObjectFieldSelector, InType: reflect.TypeOf(&ObjectFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ObjectMeta, InType: reflect.TypeOf(&ObjectMeta{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ObjectReference, InType: reflect.TypeOf(&ObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_OwnerReference, InType: reflect.TypeOf(&OwnerReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolume, InType: reflect.TypeOf(&PersistentVolume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaim, InType: reflect.TypeOf(&PersistentVolumeClaim{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimList, InType: reflect.TypeOf(&PersistentVolumeClaimList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimSpec, InType: reflect.TypeOf(&PersistentVolumeClaimSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimStatus, InType: reflect.TypeOf(&PersistentVolumeClaimStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimVolumeSource, InType: reflect.TypeOf(&PersistentVolumeClaimVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeList, InType: reflect.TypeOf(&PersistentVolumeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeSource, InType: reflect.TypeOf(&PersistentVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeSpec, InType: reflect.TypeOf(&PersistentVolumeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeStatus, InType: reflect.TypeOf(&PersistentVolumeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Pod, InType: reflect.TypeOf(&Pod{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAffinity, InType: reflect.TypeOf(&PodAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAffinityTerm, InType: reflect.TypeOf(&PodAffinityTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAntiAffinity, InType: reflect.TypeOf(&PodAntiAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAttachOptions, InType: reflect.TypeOf(&PodAttachOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodCondition, InType: reflect.TypeOf(&PodCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodExecOptions, InType: reflect.TypeOf(&PodExecOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodList, InType: reflect.TypeOf(&PodList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodLogOptions, InType: reflect.TypeOf(&PodLogOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodProxyOptions, InType: reflect.TypeOf(&PodProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityContext, InType: reflect.TypeOf(&PodSecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSignature, InType: reflect.TypeOf(&PodSignature{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSpec, InType: reflect.TypeOf(&PodSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodStatus, InType: reflect.TypeOf(&PodStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodStatusResult, InType: reflect.TypeOf(&PodStatusResult{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodTemplate, InType: reflect.TypeOf(&PodTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodTemplateList, InType: reflect.TypeOf(&PodTemplateList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodTemplateSpec, InType: reflect.TypeOf(&PodTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Preconditions, InType: reflect.TypeOf(&Preconditions{})}, + 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationControllerList, InType: reflect.TypeOf(&ReplicationControllerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationControllerSpec, InType: reflect.TypeOf(&ReplicationControllerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationControllerStatus, InType: reflect.TypeOf(&ReplicationControllerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceFieldSelector, InType: reflect.TypeOf(&ResourceFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuota, InType: reflect.TypeOf(&ResourceQuota{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuotaList, InType: reflect.TypeOf(&ResourceQuotaList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuotaSpec, InType: reflect.TypeOf(&ResourceQuotaSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuotaStatus, InType: reflect.TypeOf(&ResourceQuotaStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceRequirements, InType: reflect.TypeOf(&ResourceRequirements{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SELinuxOptions, InType: reflect.TypeOf(&SELinuxOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Secret, InType: reflect.TypeOf(&Secret{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecretKeySelector, InType: reflect.TypeOf(&SecretKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecretList, InType: reflect.TypeOf(&SecretList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecretVolumeSource, InType: reflect.TypeOf(&SecretVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecurityContext, InType: reflect.TypeOf(&SecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SerializedReference, InType: reflect.TypeOf(&SerializedReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Service, InType: reflect.TypeOf(&Service{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceAccount, InType: reflect.TypeOf(&ServiceAccount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceAccountList, InType: reflect.TypeOf(&ServiceAccountList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceList, InType: reflect.TypeOf(&ServiceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServicePort, InType: reflect.TypeOf(&ServicePort{})}, + 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Volume, InType: reflect.TypeOf(&Volume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_VolumeMount, InType: reflect.TypeOf(&VolumeMount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_VolumeSource, InType: reflect.TypeOf(&VolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_VsphereVirtualDiskVolumeSource, InType: reflect.TypeOf(&VsphereVirtualDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_WeightedPodAffinityTerm, InType: reflect.TypeOf(&WeightedPodAffinityTerm{})}, + ) +} + +func DeepCopy_api_AWSElasticBlockStoreVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AWSElasticBlockStoreVolumeSource) + out := out.(*AWSElasticBlockStoreVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_Affinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Affinity) + out := out.(*Affinity) + if in.NodeAffinity != nil { + in, out := &in.NodeAffinity, &out.NodeAffinity + *out = new(NodeAffinity) + if err := DeepCopy_api_NodeAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.NodeAffinity = nil + } + if in.PodAffinity != nil { + in, out := &in.PodAffinity, &out.PodAffinity + *out = new(PodAffinity) + if err := DeepCopy_api_PodAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAffinity = nil + } + if in.PodAntiAffinity != nil { + in, out := &in.PodAntiAffinity, &out.PodAntiAffinity + *out = new(PodAntiAffinity) + if err := DeepCopy_api_PodAntiAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAntiAffinity = nil + } + return nil + } +} + +func DeepCopy_api_AttachedVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AttachedVolume) + out := out.(*AttachedVolume) + out.Name = in.Name + out.DevicePath = in.DevicePath + return nil + } +} + +func DeepCopy_api_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AvoidPods) + out := out.(*AvoidPods) + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := DeepCopy_api_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil + } +} + +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) + out := out.(*AzureFileVolumeSource) + out.SecretName = in.SecretName + out.ShareName = in.ShareName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_Binding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Binding) + out := out.(*Binding) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Target = in.Target + return nil + } +} + +func DeepCopy_api_Capabilities(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Capabilities) + out := out.(*Capabilities) + if in.Add != nil { + in, out := &in.Add, &out.Add + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Add = nil + } + if in.Drop != nil { + in, out := &in.Drop, &out.Drop + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Drop = nil + } + return nil + } +} + +func DeepCopy_api_CephFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CephFSVolumeSource) + out := out.(*CephFSVolumeSource) + if in.Monitors != nil { + in, out := &in.Monitors, &out.Monitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Monitors = nil + } + out.Path = in.Path + out.User = in.User + out.SecretFile = in.SecretFile + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_CinderVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CinderVolumeSource) + out := out.(*CinderVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_ComponentCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentCondition) + out := out.(*ComponentCondition) + out.Type = in.Type + out.Status = in.Status + out.Message = in.Message + out.Error = in.Error + return nil + } +} + +func DeepCopy_api_ComponentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatus) + out := out.(*ComponentStatus) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ComponentCondition, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Conditions = nil + } + return nil + } +} + +func DeepCopy_api_ComponentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatusList) + out := out.(*ComponentStatusList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ComponentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_api_ComponentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMap) + out := out.(*ConfigMap) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_api_ConfigMapKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapKeySelector) + out := out.(*ConfigMapKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_api_ConfigMapList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapList) + out := out.(*ConfigMapList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigMap, len(*in)) + for i := range *in { + if err := DeepCopy_api_ConfigMap(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ConfigMapVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapVolumeSource) + out := out.(*ConfigMapVolumeSource) + out.LocalObjectReference = in.LocalObjectReference + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + 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 + } +} + +func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Container) + out := out.(*Container) + out.Name = in.Name + out.Image = in.Image + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Args = nil + } + out.WorkingDir = in.WorkingDir + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ContainerPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]EnvVar, len(*in)) + for i := range *in { + if err := DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Env = nil + } + if err := DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]VolumeMount, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumeMounts = nil + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + if err := DeepCopy_api_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.LivenessProbe = nil + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + if err := DeepCopy_api_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.ReadinessProbe = nil + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(Lifecycle) + if err := DeepCopy_api_Lifecycle(*in, *out, c); err != nil { + return err + } + } else { + out.Lifecycle = nil + } + out.TerminationMessagePath = in.TerminationMessagePath + out.ImagePullPolicy = in.ImagePullPolicy + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(SecurityContext) + if err := DeepCopy_api_SecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + out.Stdin = in.Stdin + out.StdinOnce = in.StdinOnce + out.TTY = in.TTY + return nil + } +} + +func DeepCopy_api_ContainerImage(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerImage) + out := out.(*ContainerImage) + if in.Names != nil { + in, out := &in.Names, &out.Names + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Names = nil + } + out.SizeBytes = in.SizeBytes + return nil + } +} + +func DeepCopy_api_ContainerPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerPort) + out := out.(*ContainerPort) + out.Name = in.Name + out.HostPort = in.HostPort + out.ContainerPort = in.ContainerPort + out.Protocol = in.Protocol + out.HostIP = in.HostIP + return nil + } +} + +func DeepCopy_api_ContainerState(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerState) + out := out.(*ContainerState) + if in.Waiting != nil { + in, out := &in.Waiting, &out.Waiting + *out = new(ContainerStateWaiting) + **out = **in + } else { + out.Waiting = nil + } + if in.Running != nil { + in, out := &in.Running, &out.Running + *out = new(ContainerStateRunning) + if err := DeepCopy_api_ContainerStateRunning(*in, *out, c); err != nil { + return err + } + } else { + out.Running = nil + } + if in.Terminated != nil { + in, out := &in.Terminated, &out.Terminated + *out = new(ContainerStateTerminated) + if err := DeepCopy_api_ContainerStateTerminated(*in, *out, c); err != nil { + return err + } + } else { + out.Terminated = nil + } + return nil + } +} + +func DeepCopy_api_ContainerStateRunning(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateRunning) + out := out.(*ContainerStateRunning) + out.StartedAt = in.StartedAt.DeepCopy() + return nil + } +} + +func DeepCopy_api_ContainerStateTerminated(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateTerminated) + out := out.(*ContainerStateTerminated) + out.ExitCode = in.ExitCode + out.Signal = in.Signal + out.Reason = in.Reason + out.Message = in.Message + out.StartedAt = in.StartedAt.DeepCopy() + out.FinishedAt = in.FinishedAt.DeepCopy() + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_api_ContainerStateWaiting(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateWaiting) + out := out.(*ContainerStateWaiting) + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_ContainerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStatus) + out := out.(*ContainerStatus) + out.Name = in.Name + if err := DeepCopy_api_ContainerState(&in.State, &out.State, c); err != nil { + return err + } + if err := DeepCopy_api_ContainerState(&in.LastTerminationState, &out.LastTerminationState, c); err != nil { + return err + } + out.Ready = in.Ready + out.RestartCount = in.RestartCount + out.Image = in.Image + out.ImageID = in.ImageID + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_api_ConversionError(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConversionError) + out := out.(*ConversionError) + if in.In == nil { + out.In = nil + } else if newVal, err := c.DeepCopy(&in.In); err != nil { + return err + } else { + out.In = *newVal.(*interface{}) + } + if in.Out == nil { + out.Out = nil + } else if newVal, err := c.DeepCopy(&in.Out); err != nil { + return err + } else { + out.Out = *newVal.(*interface{}) + } + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_DaemonEndpoint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonEndpoint) + out := out.(*DaemonEndpoint) + out.Port = in.Port + return nil + } +} + +func DeepCopy_api_DeleteOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeleteOptions) + out := out.(*DeleteOptions) + out.TypeMeta = in.TypeMeta + if in.GracePeriodSeconds != nil { + in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.GracePeriodSeconds = nil + } + if in.Preconditions != nil { + in, out := &in.Preconditions, &out.Preconditions + *out = new(Preconditions) + if err := DeepCopy_api_Preconditions(*in, *out, c); err != nil { + return err + } + } else { + out.Preconditions = nil + } + if in.OrphanDependents != nil { + in, out := &in.OrphanDependents, &out.OrphanDependents + *out = new(bool) + **out = **in + } else { + out.OrphanDependents = nil + } + return nil + } +} + +func DeepCopy_api_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeFile) + out := out.(*DownwardAPIVolumeFile) + out.Path = in.Path + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } 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 + } +} + +func DeepCopy_api_DownwardAPIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeSource) + out := out.(*DownwardAPIVolumeSource) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DownwardAPIVolumeFile, len(*in)) + for i := range *in { + if err := DeepCopy_api_DownwardAPIVolumeFile(&(*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 + } +} + +func DeepCopy_api_EmptyDirVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EmptyDirVolumeSource) + out := out.(*EmptyDirVolumeSource) + out.Medium = in.Medium + return nil + } +} + +func DeepCopy_api_EndpointAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointAddress) + out := out.(*EndpointAddress) + out.IP = in.IP + out.Hostname = in.Hostname + if in.NodeName != nil { + in, out := &in.NodeName, &out.NodeName + *out = new(string) + **out = **in + } else { + out.NodeName = nil + } + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(ObjectReference) + **out = **in + } else { + out.TargetRef = nil + } + return nil + } +} + +func DeepCopy_api_EndpointPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointPort) + out := out.(*EndpointPort) + out.Name = in.Name + out.Port = in.Port + out.Protocol = in.Protocol + return nil + } +} + +func DeepCopy_api_EndpointSubset(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointSubset) + out := out.(*EndpointSubset) + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_api_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if in.NotReadyAddresses != nil { + in, out := &in.NotReadyAddresses, &out.NotReadyAddresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_api_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NotReadyAddresses = nil + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]EndpointPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + return nil + } +} + +func DeepCopy_api_Endpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Endpoints) + out := out.(*Endpoints) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subsets != nil { + in, out := &in.Subsets, &out.Subsets + *out = make([]EndpointSubset, len(*in)) + for i := range *in { + if err := DeepCopy_api_EndpointSubset(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Subsets = nil + } + return nil + } +} + +func DeepCopy_api_EndpointsList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointsList) + out := out.(*EndpointsList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Endpoints, len(*in)) + for i := range *in { + if err := DeepCopy_api_Endpoints(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_EnvVar(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVar) + out := out.(*EnvVar) + out.Name = in.Name + out.Value = in.Value + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(EnvVarSource) + if err := DeepCopy_api_EnvVarSource(*in, *out, c); err != nil { + return err + } + } else { + out.ValueFrom = nil + } + return nil + } +} + +func DeepCopy_api_EnvVarSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVarSource) + out := out.(*EnvVarSource) + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(ConfigMapKeySelector) + **out = **in + } else { + out.ConfigMapKeyRef = nil + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(SecretKeySelector) + **out = **in + } else { + out.SecretKeyRef = nil + } + return nil + } +} + +func DeepCopy_api_Event(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Event) + out := out.(*Event) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.InvolvedObject = in.InvolvedObject + out.Reason = in.Reason + out.Message = in.Message + out.Source = in.Source + out.FirstTimestamp = in.FirstTimestamp.DeepCopy() + out.LastTimestamp = in.LastTimestamp.DeepCopy() + out.Count = in.Count + out.Type = in.Type + return nil + } +} + +func DeepCopy_api_EventList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventList) + out := out.(*EventList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + if err := DeepCopy_api_Event(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_EventSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventSource) + out := out.(*EventSource) + out.Component = in.Component + out.Host = in.Host + return nil + } +} + +func DeepCopy_api_ExecAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExecAction) + out := out.(*ExecAction) + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_api_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_api_FCVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FCVolumeSource) + out := out.(*FCVolumeSource) + if in.TargetWWNs != nil { + in, out := &in.TargetWWNs, &out.TargetWWNs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.TargetWWNs = nil + } + if in.Lun != nil { + in, out := &in.Lun, &out.Lun + *out = new(int32) + **out = **in + } else { + out.Lun = nil + } + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_FlexVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlexVolumeSource) + out := out.(*FlexVolumeSource) + out.Driver = in.Driver + out.FSType = in.FSType + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + if in.Options != nil { + in, out := &in.Options, &out.Options + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Options = nil + } + return nil + } +} + +func DeepCopy_api_FlockerVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlockerVolumeSource) + out := out.(*FlockerVolumeSource) + out.DatasetName = in.DatasetName + return nil + } +} + +func DeepCopy_api_GCEPersistentDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GCEPersistentDiskVolumeSource) + out := out.(*GCEPersistentDiskVolumeSource) + out.PDName = in.PDName + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_GitRepoVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GitRepoVolumeSource) + out := out.(*GitRepoVolumeSource) + out.Repository = in.Repository + out.Revision = in.Revision + out.Directory = in.Directory + return nil + } +} + +func DeepCopy_api_GlusterfsVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GlusterfsVolumeSource) + out := out.(*GlusterfsVolumeSource) + out.EndpointsName = in.EndpointsName + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_HTTPGetAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPGetAction) + out := out.(*HTTPGetAction) + out.Path = in.Path + out.Port = in.Port + out.Host = in.Host + out.Scheme = in.Scheme + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]HTTPHeader, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HTTPHeaders = nil + } + return nil + } +} + +func DeepCopy_api_HTTPHeader(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPHeader) + out := out.(*HTTPHeader) + out.Name = in.Name + out.Value = in.Value + return nil + } +} + +func DeepCopy_api_Handler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Handler) + out := out.(*Handler) + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(ExecAction) + if err := DeepCopy_api_ExecAction(*in, *out, c); err != nil { + return err + } + } else { + out.Exec = nil + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(HTTPGetAction) + if err := DeepCopy_api_HTTPGetAction(*in, *out, c); err != nil { + return err + } + } else { + out.HTTPGet = nil + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(TCPSocketAction) + **out = **in + } else { + out.TCPSocket = nil + } + return nil + } +} + +func DeepCopy_api_HostPathVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPathVolumeSource) + out := out.(*HostPathVolumeSource) + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_ISCSIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ISCSIVolumeSource) + out := out.(*ISCSIVolumeSource) + out.TargetPortal = in.TargetPortal + out.IQN = in.IQN + out.Lun = in.Lun + out.ISCSIInterface = in.ISCSIInterface + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_KeyToPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KeyToPath) + 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 + } +} + +func DeepCopy_api_Lifecycle(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Lifecycle) + out := out.(*Lifecycle) + if in.PostStart != nil { + in, out := &in.PostStart, &out.PostStart + *out = new(Handler) + if err := DeepCopy_api_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PostStart = nil + } + if in.PreStop != nil { + in, out := &in.PreStop, &out.PreStop + *out = new(Handler) + if err := DeepCopy_api_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PreStop = nil + } + return nil + } +} + +func DeepCopy_api_LimitRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRange) + out := out.(*LimitRange) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeItem) + out := out.(*LimitRangeItem) + out.Type = in.Type + if in.Max != nil { + in, out := &in.Max, &out.Max + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Max = nil + } + if in.Min != nil { + in, out := &in.Min, &out.Min + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Min = nil + } + if in.Default != nil { + in, out := &in.Default, &out.Default + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Default = nil + } + if in.DefaultRequest != nil { + in, out := &in.DefaultRequest, &out.DefaultRequest + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.DefaultRequest = nil + } + if in.MaxLimitRequestRatio != nil { + in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.MaxLimitRequestRatio = nil + } + return nil + } +} + +func DeepCopy_api_LimitRangeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeList) + out := out.(*LimitRangeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LimitRange, len(*in)) + for i := range *in { + if err := DeepCopy_api_LimitRange(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_LimitRangeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeSpec) + out := out.(*LimitRangeSpec) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make([]LimitRangeItem, len(*in)) + for i := range *in { + if err := DeepCopy_api_LimitRangeItem(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Limits = nil + } + return nil + } +} + +func DeepCopy_api_List(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*List) + out := out.(*List) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]runtime.Object, len(*in)) + for i := range *in { + if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { + return err + } else { + (*out)[i] = *newVal.(*runtime.Object) + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ListOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListOptions) + out := out.(*ListOptions) + out.TypeMeta = in.TypeMeta + if in.LabelSelector == nil { + out.LabelSelector = nil + } else if newVal, err := c.DeepCopy(&in.LabelSelector); err != nil { + return err + } else { + out.LabelSelector = *newVal.(*labels.Selector) + } + if in.FieldSelector == nil { + out.FieldSelector = nil + } else if newVal, err := c.DeepCopy(&in.FieldSelector); err != nil { + return err + } else { + out.FieldSelector = *newVal.(*fields.Selector) + } + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + if in.TimeoutSeconds != nil { + in, out := &in.TimeoutSeconds, &out.TimeoutSeconds + *out = new(int64) + **out = **in + } else { + out.TimeoutSeconds = nil + } + return nil + } +} + +func DeepCopy_api_LoadBalancerIngress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerIngress) + out := out.(*LoadBalancerIngress) + out.IP = in.IP + out.Hostname = in.Hostname + return nil + } +} + +func DeepCopy_api_LoadBalancerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerStatus) + out := out.(*LoadBalancerStatus) + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]LoadBalancerIngress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_api_LocalObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LocalObjectReference) + out := out.(*LocalObjectReference) + out.Name = in.Name + return nil + } +} + +func DeepCopy_api_NFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NFSVolumeSource) + out := out.(*NFSVolumeSource) + out.Server = in.Server + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_Namespace(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Namespace) + out := out.(*Namespace) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_api_NamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceList) + out := out.(*NamespaceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Namespace, len(*in)) + for i := range *in { + if err := DeepCopy_api_Namespace(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_NamespaceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceSpec) + out := out.(*NamespaceSpec) + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]FinalizerName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Finalizers = nil + } + return nil + } +} + +func DeepCopy_api_NamespaceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceStatus) + out := out.(*NamespaceStatus) + out.Phase = in.Phase + return nil + } +} + +func DeepCopy_api_Node(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Node) + out := out.(*Node) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_NodeAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAddress) + out := out.(*NodeAddress) + out.Type = in.Type + out.Address = in.Address + return nil + } +} + +func DeepCopy_api_NodeAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAffinity) + out := out.(*NodeAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = new(NodeSelector) + if err := DeepCopy_api_NodeSelector(*in, *out, c); err != nil { + return err + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]PreferredSchedulingTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_PreferredSchedulingTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_api_NodeCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeCondition) + out := out.(*NodeCondition) + out.Type = in.Type + out.Status = in.Status + out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_NodeDaemonEndpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeDaemonEndpoints) + out := out.(*NodeDaemonEndpoints) + out.KubeletEndpoint = in.KubeletEndpoint + return nil + } +} + +func DeepCopy_api_NodeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeList) + out := out.(*NodeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Node, len(*in)) + for i := range *in { + if err := DeepCopy_api_Node(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_NodeProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeProxyOptions) + out := out.(*NodeProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_NodeResources(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeResources) + out := out.(*NodeResources) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + return nil + } +} + +func DeepCopy_api_NodeSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelector) + out := out.(*NodeSelector) + if in.NodeSelectorTerms != nil { + in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms + *out = make([]NodeSelectorTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_NodeSelectorTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NodeSelectorTerms = nil + } + return nil + } +} + +func DeepCopy_api_NodeSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorRequirement) + out := out.(*NodeSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_api_NodeSelectorTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorTerm) + out := out.(*NodeSelectorTerm) + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]NodeSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_api_NodeSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_api_NodeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSpec) + out := out.(*NodeSpec) + out.PodCIDR = in.PodCIDR + out.ExternalID = in.ExternalID + out.ProviderID = in.ProviderID + out.Unschedulable = in.Unschedulable + return nil + } +} + +func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeStatus) + out := out.(*NodeStatus) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if in.Allocatable != nil { + in, out := &in.Allocatable, &out.Allocatable + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Allocatable = nil + } + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]NodeCondition, len(*in)) + for i := range *in { + if err := DeepCopy_api_NodeCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]NodeAddress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Addresses = nil + } + out.DaemonEndpoints = in.DaemonEndpoints + out.NodeInfo = in.NodeInfo + if in.Images != nil { + in, out := &in.Images, &out.Images + *out = make([]ContainerImage, len(*in)) + for i := range *in { + if err := DeepCopy_api_ContainerImage(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Images = nil + } + if in.VolumesInUse != nil { + in, out := &in.VolumesInUse, &out.VolumesInUse + *out = make([]UniqueVolumeName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesInUse = nil + } + if in.VolumesAttached != nil { + in, out := &in.VolumesAttached, &out.VolumesAttached + *out = make([]AttachedVolume, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesAttached = nil + } + return nil + } +} + +func DeepCopy_api_NodeSystemInfo(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSystemInfo) + out := out.(*NodeSystemInfo) + out.MachineID = in.MachineID + out.SystemUUID = in.SystemUUID + out.BootID = in.BootID + out.KernelVersion = in.KernelVersion + out.OSImage = in.OSImage + out.ContainerRuntimeVersion = in.ContainerRuntimeVersion + out.KubeletVersion = in.KubeletVersion + out.KubeProxyVersion = in.KubeProxyVersion + out.OperatingSystem = in.OperatingSystem + out.Architecture = in.Architecture + return nil + } +} + +func DeepCopy_api_ObjectFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectFieldSelector) + out := out.(*ObjectFieldSelector) + out.APIVersion = in.APIVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectMeta) + out := out.(*ObjectMeta) + out.Name = in.Name + out.GenerateName = in.GenerateName + out.Namespace = in.Namespace + out.SelfLink = in.SelfLink + out.UID = in.UID + out.ResourceVersion = in.ResourceVersion + out.Generation = in.Generation + out.CreationTimestamp = in.CreationTimestamp.DeepCopy() + if in.DeletionTimestamp != nil { + in, out := &in.DeletionTimestamp, &out.DeletionTimestamp + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.DeletionTimestamp = nil + } + if in.DeletionGracePeriodSeconds != nil { + in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.DeletionGracePeriodSeconds = nil + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Labels = 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 + } + if in.OwnerReferences != nil { + in, out := &in.OwnerReferences, &out.OwnerReferences + *out = make([]OwnerReference, len(*in)) + for i := range *in { + if err := DeepCopy_api_OwnerReference(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.OwnerReferences = nil + } + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Finalizers = nil + } + out.ClusterName = in.ClusterName + return nil + } +} + +func DeepCopy_api_ObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectReference) + out := out.(*ObjectReference) + out.Kind = in.Kind + out.Namespace = in.Namespace + out.Name = in.Name + out.UID = in.UID + out.APIVersion = in.APIVersion + out.ResourceVersion = in.ResourceVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_api_OwnerReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*OwnerReference) + out := out.(*OwnerReference) + out.APIVersion = in.APIVersion + out.Kind = in.Kind + out.Name = in.Name + out.UID = in.UID + if in.Controller != nil { + in, out := &in.Controller, &out.Controller + *out = new(bool) + **out = **in + } else { + out.Controller = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolume) + out := out.(*PersistentVolume) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaim(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaim) + out := out.(*PersistentVolumeClaim) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_PersistentVolumeClaimStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimList) + out := out.(*PersistentVolumeClaimList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimSpec) + out := out.(*PersistentVolumeClaimSpec) + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + out.VolumeName = in.VolumeName + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimStatus) + out := out.(*PersistentVolumeClaimStatus) + out.Phase = in.Phase + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimVolumeSource) + out := out.(*PersistentVolumeClaimVolumeSource) + out.ClaimName = in.ClaimName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_PersistentVolumeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeList) + out := out.(*PersistentVolumeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolume, len(*in)) + for i := range *in { + if err := DeepCopy_api_PersistentVolume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSource) + out := out.(*PersistentVolumeSource) + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } 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) + **out = **in + } else { + out.ISCSI = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } 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 + } +} + +func DeepCopy_api_PersistentVolumeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSpec) + out := out.(*PersistentVolumeSpec) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if err := DeepCopy_api_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { + return err + } + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.ClaimRef != nil { + in, out := &in.ClaimRef, &out.ClaimRef + *out = new(ObjectReference) + **out = **in + } else { + out.ClaimRef = nil + } + out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy + return nil + } +} + +func DeepCopy_api_PersistentVolumeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeStatus) + out := out.(*PersistentVolumeStatus) + out.Phase = in.Phase + out.Message = in.Message + out.Reason = in.Reason + return nil + } +} + +func DeepCopy_api_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Pod) + out := out.(*Pod) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PodAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinity) + out := out.(*PodAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_api_PodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinityTerm) + out := out.(*PodAffinityTerm) + if in.LabelSelector != nil { + in, out := &in.LabelSelector, &out.LabelSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.LabelSelector = nil + } + if in.Namespaces != nil { + in, out := &in.Namespaces, &out.Namespaces + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Namespaces = nil + } + out.TopologyKey = in.TopologyKey + return nil + } +} + +func DeepCopy_api_PodAntiAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAntiAffinity) + out := out.(*PodAntiAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_api_PodAttachOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAttachOptions) + out := out.(*PodAttachOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + return nil + } +} + +func DeepCopy_api_PodCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodCondition) + out := out.(*PodCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_PodExecOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodExecOptions) + out := out.(*PodExecOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_api_PodList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodList) + out := out.(*PodList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Pod, len(*in)) + for i := range *in { + if err := DeepCopy_api_Pod(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PodLogOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodLogOptions) + out := out.(*PodLogOptions) + out.TypeMeta = in.TypeMeta + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } else { + out.SinceSeconds = nil + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.SinceTime = nil + } + out.Timestamps = in.Timestamps + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } else { + out.TailLines = nil + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in + } else { + out.LimitBytes = nil + } + return nil + } +} + +func DeepCopy_api_PodProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodProxyOptions) + out := out.(*PodProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_PodSecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityContext) + out := out.(*PodSecurityContext) + out.HostNetwork = in.HostNetwork + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.SupplementalGroups != nil { + in, out := &in.SupplementalGroups, &out.SupplementalGroups + *out = make([]int64, len(*in)) + copy(*out, *in) + } else { + out.SupplementalGroups = nil + } + if in.FSGroup != nil { + in, out := &in.FSGroup, &out.FSGroup + *out = new(int64) + **out = **in + } else { + out.FSGroup = nil + } + return nil + } +} + +func DeepCopy_api_PodSignature(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSignature) + out := out.(*PodSignature) + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(OwnerReference) + if err := DeepCopy_api_OwnerReference(*in, *out, c); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil + } +} + +func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSpec) + out := out.(*PodSpec) + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]Volume, len(*in)) + for i := range *in { + if err := DeepCopy_api_Volume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Volumes = nil + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_api_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainers = nil + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_api_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.RestartPolicy = in.RestartPolicy + if in.TerminationGracePeriodSeconds != nil { + in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.TerminationGracePeriodSeconds = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + out.DNSPolicy = in.DNSPolicy + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.NodeSelector = nil + } + out.ServiceAccountName = in.ServiceAccountName + out.NodeName = in.NodeName + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(PodSecurityContext) + if err := DeepCopy_api_PodSecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + out.Hostname = in.Hostname + out.Subdomain = in.Subdomain + return nil + } +} + +func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatus) + out := out.(*PodStatus) + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]PodCondition, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + out.Message = in.Message + out.Reason = in.Reason + out.HostIP = in.HostIP + out.PodIP = in.PodIP + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_api_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainerStatuses = nil + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_api_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.ContainerStatuses = nil + } + return nil + } +} + +func DeepCopy_api_PodStatusResult(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatusResult) + out := out.(*PodStatusResult) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PodTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplate) + out := out.(*PodTemplate) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PodTemplateList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateList) + out := out.(*PodTemplateList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodTemplate, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodTemplate(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PodTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateSpec) + out := out.(*PodTemplateSpec) + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_Preconditions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Preconditions) + out := out.(*Preconditions) + if in.UID != nil { + in, out := &in.UID, &out.UID + *out = new(types.UID) + **out = **in + } else { + out.UID = nil + } + return nil + } +} + +func DeepCopy_api_PreferAvoidPodsEntry(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferAvoidPodsEntry) + out := out.(*PreferAvoidPodsEntry) + if err := DeepCopy_api_PodSignature(&in.PodSignature, &out.PodSignature, c); err != nil { + return err + } + out.EvictionTime = in.EvictionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_PreferredSchedulingTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferredSchedulingTerm) + out := out.(*PreferredSchedulingTerm) + out.Weight = in.Weight + if err := DeepCopy_api_NodeSelectorTerm(&in.Preference, &out.Preference, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_Probe(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Probe) + out := out.(*Probe) + if err := DeepCopy_api_Handler(&in.Handler, &out.Handler, c); err != nil { + return err + } + out.InitialDelaySeconds = in.InitialDelaySeconds + out.TimeoutSeconds = in.TimeoutSeconds + out.PeriodSeconds = in.PeriodSeconds + out.SuccessThreshold = in.SuccessThreshold + out.FailureThreshold = in.FailureThreshold + return nil + } +} + +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) + out := out.(*RBDVolumeSource) + if in.CephMonitors != nil { + in, out := &in.CephMonitors, &out.CephMonitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.CephMonitors = nil + } + out.RBDImage = in.RBDImage + out.FSType = in.FSType + out.RBDPool = in.RBDPool + out.RadosUser = in.RadosUser + out.Keyring = in.Keyring + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_RangeAllocation(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RangeAllocation) + out := out.(*RangeAllocation) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Range = in.Range + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_api_ReplicationController(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationController) + out := out.(*ReplicationController) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_api_ReplicationControllerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerList) + out := out.(*ReplicationControllerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicationController, len(*in)) + for i := range *in { + if err := DeepCopy_api_ReplicationController(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ReplicationControllerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerSpec) + out := out.(*ReplicationControllerSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(PodTemplateSpec) + if err := DeepCopy_api_PodTemplateSpec(*in, *out, c); err != nil { + return err + } + } else { + out.Template = nil + } + return nil + } +} + +func DeepCopy_api_ReplicationControllerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerStatus) + out := out.(*ReplicationControllerStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_api_ResourceFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceFieldSelector) + out := out.(*ResourceFieldSelector) + out.ContainerName = in.ContainerName + out.Resource = in.Resource + out.Divisor = in.Divisor.DeepCopy() + return nil + } +} + +func DeepCopy_api_ResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuota) + out := out.(*ResourceQuota) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_ResourceQuotaStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_ResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaList) + out := out.(*ResourceQuotaList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceQuota, len(*in)) + for i := range *in { + if err := DeepCopy_api_ResourceQuota(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ResourceQuotaSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaSpec) + out := out.(*ResourceQuotaSpec) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]ResourceQuotaScope, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Scopes = nil + } + return nil + } +} + +func DeepCopy_api_ResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaStatus) + out := out.(*ResourceQuotaStatus) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Used != nil { + in, out := &in.Used, &out.Used + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Used = nil + } + return nil + } +} + +func DeepCopy_api_ResourceRequirements(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceRequirements) + out := out.(*ResourceRequirements) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Limits = nil + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Requests = nil + } + return nil + } +} + +func DeepCopy_api_SELinuxOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxOptions) + out := out.(*SELinuxOptions) + out.User = in.User + out.Role = in.Role + out.Type = in.Type + out.Level = in.Level + return nil + } +} + +func DeepCopy_api_Secret(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Secret) + out := out.(*Secret) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string][]byte) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*[]byte) + } + } + } else { + out.Data = nil + } + out.Type = in.Type + return nil + } +} + +func DeepCopy_api_SecretKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretKeySelector) + out := out.(*SecretKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_api_SecretList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretList) + out := out.(*SecretList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Secret, len(*in)) + for i := range *in { + if err := DeepCopy_api_Secret(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_SecretVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretVolumeSource) + out := out.(*SecretVolumeSource) + out.SecretName = in.SecretName + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + 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 + } +} + +func DeepCopy_api_SecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecurityContext) + out := out.(*SecurityContext) + if in.Capabilities != nil { + in, out := &in.Capabilities, &out.Capabilities + *out = new(Capabilities) + if err := DeepCopy_api_Capabilities(*in, *out, c); err != nil { + return err + } + } else { + out.Capabilities = nil + } + if in.Privileged != nil { + in, out := &in.Privileged, &out.Privileged + *out = new(bool) + **out = **in + } else { + out.Privileged = nil + } + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.ReadOnlyRootFilesystem != nil { + in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem + *out = new(bool) + **out = **in + } else { + out.ReadOnlyRootFilesystem = nil + } + return nil + } +} + +func DeepCopy_api_SerializedReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SerializedReference) + out := out.(*SerializedReference) + out.TypeMeta = in.TypeMeta + out.Reference = in.Reference + return nil + } +} + +func DeepCopy_api_Service(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Service) + out := out.(*Service) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_ServiceStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccount) + out := out.(*ServiceAccount) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = make([]ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Secrets = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + return nil + } +} + +func DeepCopy_api_ServiceAccountList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccountList) + out := out.(*ServiceAccountList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ServiceAccount, len(*in)) + for i := range *in { + if err := DeepCopy_api_ServiceAccount(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ServiceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceList) + out := out.(*ServiceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Service, len(*in)) + for i := range *in { + if err := DeepCopy_api_Service(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ServicePort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServicePort) + out := out.(*ServicePort) + out.Name = in.Name + out.Protocol = in.Protocol + out.Port = in.Port + out.TargetPort = in.TargetPort + out.NodePort = in.NodePort + return nil + } +} + +func DeepCopy_api_ServiceProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceProxyOptions) + out := out.(*ServiceProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_ServiceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceSpec) + out := out.(*ServiceSpec) + out.Type = in.Type + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ServicePort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + 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)) + copy(*out, *in) + } else { + out.ExternalIPs = nil + } + out.LoadBalancerIP = in.LoadBalancerIP + out.SessionAffinity = in.SessionAffinity + if in.LoadBalancerSourceRanges != nil { + in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.LoadBalancerSourceRanges = nil + } + return nil + } +} + +func DeepCopy_api_ServiceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceStatus) + out := out.(*ServiceStatus) + if err := DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +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) + out := out.(*TCPSocketAction) + out.Port = in.Port + return nil + } +} + +func DeepCopy_api_Taint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Taint) + out := out.(*Taint) + out.Key = in.Key + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_api_Toleration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Toleration) + out := out.(*Toleration) + out.Key = in.Key + out.Operator = in.Operator + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_api_Volume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Volume) + out := out.(*Volume) + out.Name = in.Name + if err := DeepCopy_api_VolumeSource(&in.VolumeSource, &out.VolumeSource, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_VolumeMount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeMount) + out := out.(*VolumeMount) + out.Name = in.Name + out.ReadOnly = in.ReadOnly + out.MountPath = in.MountPath + out.SubPath = in.SubPath + return nil + } +} + +func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeSource) + out := out.(*VolumeSource) + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.EmptyDir != nil { + in, out := &in.EmptyDir, &out.EmptyDir + *out = new(EmptyDirVolumeSource) + **out = **in + } else { + out.EmptyDir = nil + } + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.GitRepo != nil { + in, out := &in.GitRepo, &out.GitRepo + *out = new(GitRepoVolumeSource) + **out = **in + } else { + out.GitRepo = nil + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = new(SecretVolumeSource) + if err := DeepCopy_api_SecretVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.Secret = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.PersistentVolumeClaim != nil { + in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim + *out = new(PersistentVolumeClaimVolumeSource) + **out = **in + } else { + out.PersistentVolumeClaim = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } 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) + if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.DownwardAPI != nil { + in, out := &in.DownwardAPI, &out.DownwardAPI + *out = new(DownwardAPIVolumeSource) + if err := DeepCopy_api_DownwardAPIVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.DownwardAPI = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.ConfigMap != nil { + in, out := &in.ConfigMap, &out.ConfigMap + *out = new(ConfigMapVolumeSource) + if err := DeepCopy_api_ConfigMapVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.ConfigMap = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } 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 + } +} + +func DeepCopy_api_VsphereVirtualDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VsphereVirtualDiskVolumeSource) + out := out.(*VsphereVirtualDiskVolumeSource) + out.VolumePath = in.VolumePath + out.FSType = in.FSType + return nil + } +} + +func DeepCopy_api_WeightedPodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*WeightedPodAffinityTerm) + out := out.(*WeightedPodAffinityTerm) + out.Weight = in.Weight + if err := DeepCopy_api_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { + return err + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apimachinery/registered/registered.go b/ingress/vendor/k8s.io/kubernetes/pkg/apimachinery/registered/registered.go index 307f55da0a..16923a36d3 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apimachinery/registered/registered.go +++ b/ingress/vendor/k8s.io/kubernetes/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,61 +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{} -) + envRequestedVersions []unversioned.GroupVersion +} + +// 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{}, + } -func init() { - // 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") 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 +} + +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) @@ -107,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 } @@ -120,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{} } @@ -145,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) } @@ -157,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 } } @@ -191,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()) @@ -205,13 +248,9 @@ func AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversione if len(filteredGVs) == 0 { return skippedGVs } - RegisterVersions(filteredGVs) - EnableVersions(filteredGVs...) - next := make([]unversioned.GroupVersion, len(gvs)) - for ix := range filteredGVs { - next[ix] = filteredGVs[ix] - } - thirdPartyGroupVersions = next + m.RegisterVersions(filteredGVs) + m.EnableVersions(filteredGVs...) + m.thirdPartyGroupVersions = append(m.thirdPartyGroupVersions, filteredGVs...) return skippedGVs } @@ -219,8 +258,8 @@ func AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversione // 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.") @@ -237,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) } } @@ -259,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)) } @@ -272,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...) @@ -291,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)) @@ -312,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) @@ -326,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/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/deep_copy_generated.go deleted file mode 100644 index bdeb0b19c8..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/deep_copy_generated.go +++ /dev/null @@ -1,111 +0,0 @@ -// +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 apps - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_apps_PetSet, - DeepCopy_apps_PetSetList, - DeepCopy_apps_PetSetSpec, - DeepCopy_apps_PetSetStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_apps_PetSet(in PetSet, out *PetSet, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_apps_PetSetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_apps_PetSetStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_apps_PetSetList(in PetSetList, out *PetSetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PetSet, len(in)) - for i := range in { - if err := DeepCopy_apps_PetSet(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_apps_PetSetSpec(in PetSetSpec, out *PetSetSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := api.DeepCopy_api_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - if in.VolumeClaimTemplates != nil { - in, out := in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]api.PersistentVolumeClaim, len(in)) - for i := range in { - if err := api.DeepCopy_api_PersistentVolumeClaim(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.VolumeClaimTemplates = nil - } - out.ServiceName = in.ServiceName - return nil -} - -func DeepCopy_apps_PetSetStatus(in PetSetStatus, out *PetSetStatus, c *conversion.Cloner) error { - if in.ObservedGeneration != nil { - in, out := in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = *in - } else { - out.ObservedGeneration = nil - } - out.Replicas = in.Replicas - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/install/install.go index 346740e44a..b7139828fc 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/install/install.go @@ -110,7 +110,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - apps.AddToScheme(api.Scheme) + if err := apps.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -119,7 +122,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1alpha1.SchemeGroupVersion: - v1alpha1.AddToScheme(api.Scheme) + if err := v1alpha1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/register.go index 90acc12315..e920decfa6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/register.go @@ -22,10 +22,10 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // GroupName is the group name use in this package const GroupName = "apps" @@ -44,11 +44,12 @@ func Resource(resource string) unversioned.GroupResource { } // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { // TODO this will get cleaned up with the scheme types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &PetSet{}, &PetSetList{}, &api.ListOptions{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/types.generated.go index be8a54ad51..34fa712648 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/types.generated.go @@ -92,11 +92,11 @@ func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -113,102 +113,102 @@ func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -224,25 +224,25 @@ func (x *PetSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -254,12 +254,12 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -268,47 +268,47 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PetSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PetSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -316,104 +316,104 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PetSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PetSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -425,37 +425,37 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 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.Replicas != 0 - yyq2[1] = x.Selector != nil - yyq2[3] = len(x.VolumeClaimTemplates) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [5]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Replicas != 0 + yyq33[1] = x.Selector != nil + yyq33[3] = len(x.VolumeClaimTemplates) != 0 + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn33 = 2 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -464,26 +464,26 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeInt(int64(x.Replicas)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq33[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym38 := z.EncBinary() + _ = yym38 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -494,15 +494,15 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq33[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym39 := z.EncBinary() + _ = yym39 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -511,25 +511,25 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy10 := &x.Template - yy10.CodecEncodeSelf(e) + yy41 := &x.Template + yy41.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Template - yy12.CodecEncodeSelf(e) + yy42 := &x.Template + yy42.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq33[3] { if x.VolumeClaimTemplates == nil { r.EncodeNil() } else { - yym15 := z.EncBinary() - _ = yym15 + yym44 := z.EncBinary() + _ = yym44 if false { } else { h.encSliceapi_PersistentVolumeClaim(([]pkg2_api.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) @@ -539,15 +539,15 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq33[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeClaimTemplates")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeClaimTemplates == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + yym45 := z.EncBinary() + _ = yym45 if false { } else { h.encSliceapi_PersistentVolumeClaim(([]pkg2_api.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) @@ -555,10 +555,10 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym18 := z.EncBinary() - _ = yym18 + yym47 := z.EncBinary() + _ = yym47 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -567,14 +567,14 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 + yym48 := z.EncBinary() + _ = yym48 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -587,25 +587,25 @@ func (x *PetSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym49 := z.DecBinary() + _ = yym49 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct50 := r.ContainerType() + if yyct50 == codecSelferValueTypeMap1234 { + yyl50 := r.ReadMapStart() + if yyl50 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl50, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct50 == codecSelferValueTypeArray1234 { + yyl50 := r.ReadArrayStart() + if yyl50 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl50, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -617,12 +617,12 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys51Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys51Slc + var yyhl51 bool = l >= 0 + for yyj51 := 0; ; yyj51++ { + if yyhl51 { + if yyj51 >= l { break } } else { @@ -631,10 +631,10 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys51Slc = r.DecodeBytes(yys51Slc, true, true) + yys51 := string(yys51Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys51 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -650,8 +650,8 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym6 := z.DecBinary() - _ = yym6 + yym54 := z.DecBinary() + _ = yym54 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -662,19 +662,19 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv7 := &x.Template - yyv7.CodecDecodeSelf(d) + yyv55 := &x.Template + yyv55.CodecDecodeSelf(d) } case "volumeClaimTemplates": if r.TryDecodeAsNil() { x.VolumeClaimTemplates = nil } else { - yyv8 := &x.VolumeClaimTemplates - yym9 := z.DecBinary() - _ = yym9 + yyv56 := &x.VolumeClaimTemplates + yym57 := z.DecBinary() + _ = yym57 if false { } else { - h.decSliceapi_PersistentVolumeClaim((*[]pkg2_api.PersistentVolumeClaim)(yyv8), d) + h.decSliceapi_PersistentVolumeClaim((*[]pkg2_api.PersistentVolumeClaim)(yyv56), d) } } case "serviceName": @@ -684,9 +684,9 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ServiceName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys51) + } // end switch yys51 + } // end for yyj51 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -694,16 +694,16 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj59 int + var yyb59 bool + var yyhl59 bool = l >= 0 + yyj59++ + if yyhl59 { + yyb59 = yyj59 > l } else { - yyb11 = r.CheckBreak() + yyb59 = r.CheckBreak() } - if yyb11 { + if yyb59 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -713,13 +713,13 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj59++ + if yyhl59 { + yyb59 = yyj59 > l } else { - yyb11 = r.CheckBreak() + yyb59 = r.CheckBreak() } - if yyb11 { + if yyb59 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -732,21 +732,21 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym14 := z.DecBinary() - _ = yym14 + yym62 := z.DecBinary() + _ = yym62 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj59++ + if yyhl59 { + yyb59 = yyj59 > l } else { - yyb11 = r.CheckBreak() + yyb59 = r.CheckBreak() } - if yyb11 { + if yyb59 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -754,16 +754,16 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv15 := &x.Template - yyv15.CodecDecodeSelf(d) + yyv63 := &x.Template + yyv63.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj59++ + if yyhl59 { + yyb59 = yyj59 > l } else { - yyb11 = r.CheckBreak() + yyb59 = r.CheckBreak() } - if yyb11 { + if yyb59 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -771,21 +771,21 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumeClaimTemplates = nil } else { - yyv16 := &x.VolumeClaimTemplates - yym17 := z.DecBinary() - _ = yym17 + yyv64 := &x.VolumeClaimTemplates + yym65 := z.DecBinary() + _ = yym65 if false { } else { - h.decSliceapi_PersistentVolumeClaim((*[]pkg2_api.PersistentVolumeClaim)(yyv16), d) + h.decSliceapi_PersistentVolumeClaim((*[]pkg2_api.PersistentVolumeClaim)(yyv64), d) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj59++ + if yyhl59 { + yyb59 = yyj59 > l } else { - yyb11 = r.CheckBreak() + yyb59 = r.CheckBreak() } - if yyb11 { + if yyb59 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -796,17 +796,17 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ServiceName = string(r.DecodeString()) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj59++ + if yyhl59 { + yyb59 = yyj59 > l } else { - yyb11 = r.CheckBreak() + yyb59 = r.CheckBreak() } - if yyb11 { + if yyb59 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj59-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -818,69 +818,69 @@ func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym67 := z.EncBinary() + _ = yym67 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.ObservedGeneration != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep68 := !z.EncBinary() + yy2arr68 := z.EncBasicHandle().StructToArray + var yyq68 [2]bool + _, _, _ = yysep68, yyq68, yy2arr68 + const yyr68 bool = false + yyq68[0] = x.ObservedGeneration != nil + var yynn68 int + if yyr68 || yy2arr68 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn68 = 1 + for _, b := range yyq68 { if b { - yynn2++ + yynn68++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn68) + yynn68 = 0 } - if yyr2 || yy2arr2 { + if yyr68 || yy2arr68 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq68[0] { if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy4 := *x.ObservedGeneration - yym5 := z.EncBinary() - _ = yym5 + yy70 := *x.ObservedGeneration + yym71 := z.EncBinary() + _ = yym71 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy70)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq68[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy6 := *x.ObservedGeneration - yym7 := z.EncBinary() - _ = yym7 + yy72 := *x.ObservedGeneration + yym73 := z.EncBinary() + _ = yym73 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy72)) } } } } - if yyr2 || yy2arr2 { + if yyr68 || yy2arr68 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym9 := z.EncBinary() - _ = yym9 + yym75 := z.EncBinary() + _ = yym75 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -889,14 +889,14 @@ func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym76 := z.EncBinary() + _ = yym76 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr68 || yy2arr68 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -909,25 +909,25 @@ func (x *PetSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym77 := z.DecBinary() + _ = yym77 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct78 := r.ContainerType() + if yyct78 == codecSelferValueTypeMap1234 { + yyl78 := r.ReadMapStart() + if yyl78 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl78, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct78 == codecSelferValueTypeArray1234 { + yyl78 := r.ReadArrayStart() + if yyl78 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl78, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -939,12 +939,12 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys79Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys79Slc + var yyhl79 bool = l >= 0 + for yyj79 := 0; ; yyj79++ { + if yyhl79 { + if yyj79 >= l { break } } else { @@ -953,10 +953,10 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys79Slc = r.DecodeBytes(yys79Slc, true, true) + yys79 := string(yys79Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys79 { case "observedGeneration": if r.TryDecodeAsNil() { if x.ObservedGeneration != nil { @@ -966,8 +966,8 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym81 := z.DecBinary() + _ = yym81 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) @@ -980,9 +980,9 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys79) + } // end switch yys79 + } // end for yyj79 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -990,16 +990,16 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj83 int + var yyb83 bool + var yyhl83 bool = l >= 0 + yyj83++ + if yyhl83 { + yyb83 = yyj83 > l } else { - yyb7 = r.CheckBreak() + yyb83 = r.CheckBreak() } - if yyb7 { + if yyb83 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1012,20 +1012,20 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym85 := z.DecBinary() + _ = yym85 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj83++ + if yyhl83 { + yyb83 = yyj83 > l } else { - yyb7 = r.CheckBreak() + yyb83 = r.CheckBreak() } - if yyb7 { + if yyb83 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1036,17 +1036,17 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj83++ + if yyhl83 { + yyb83 = yyj83 > l } else { - yyb7 = r.CheckBreak() + yyb83 = r.CheckBreak() } - if yyb7 { + if yyb83 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj83-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1058,139 +1058,139 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym87 := z.EncBinary() + _ = yym87 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep88 := !z.EncBinary() + yy2arr88 := z.EncBasicHandle().StructToArray + var yyq88 [4]bool + _, _, _ = yysep88, yyq88, yy2arr88 + const yyr88 bool = false + yyq88[0] = x.Kind != "" + yyq88[1] = x.APIVersion != "" + yyq88[2] = true + var yynn88 int + if yyr88 || yy2arr88 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn88 = 1 + for _, b := range yyq88 { if b { - yynn2++ + yynn88++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn88) + yynn88 = 0 } - if yyr2 || yy2arr2 { + if yyr88 || yy2arr88 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq88[0] { + yym90 := z.EncBinary() + _ = yym90 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq88[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym91 := z.EncBinary() + _ = yym91 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr88 || yy2arr88 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq88[1] { + yym93 := z.EncBinary() + _ = yym93 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq88[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym94 := z.EncBinary() + _ = yym94 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr88 || yy2arr88 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq88[2] { + yy96 := &x.ListMeta + yym97 := z.EncBinary() + _ = yym97 if false { + } else if z.HasExtensions() && z.EncExt(yy96) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy96) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq88[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy98 := &x.ListMeta + yym99 := z.EncBinary() + _ = yym99 if false { + } else if z.HasExtensions() && z.EncExt(yy98) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy98) } } } - if yyr2 || yy2arr2 { + if yyr88 || yy2arr88 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym101 := z.EncBinary() + _ = yym101 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePetSet(([]PetSet)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym102 := z.EncBinary() + _ = yym102 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePetSet(([]PetSet)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr88 || yy2arr88 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1203,25 +1203,25 @@ func (x *PetSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym103 := z.DecBinary() + _ = yym103 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct104 := r.ContainerType() + if yyct104 == codecSelferValueTypeMap1234 { + yyl104 := r.ReadMapStart() + if yyl104 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl104, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct104 == codecSelferValueTypeArray1234 { + yyl104 := r.ReadArrayStart() + if yyl104 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl104, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1233,12 +1233,12 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys105Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys105Slc + var yyhl105 bool = l >= 0 + for yyj105 := 0; ; yyj105++ { + if yyhl105 { + if yyj105 >= l { break } } else { @@ -1247,51 +1247,51 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys105Slc = r.DecodeBytes(yys105Slc, true, true) + yys105 := string(yys105Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys105 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv108 := &x.ListMeta + yym109 := z.DecBinary() + _ = yym109 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv108) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv108, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv110 := &x.Items + yym111 := z.DecBinary() + _ = yym111 if false { } else { - h.decSlicePetSet((*[]PetSet)(yyv6), d) + h.decSlicePetSet((*[]PetSet)(yyv110), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys105) + } // end switch yys105 + } // end for yyj105 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1299,98 +1299,98 @@ func (x *PetSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj112 int + var yyb112 bool + var yyhl112 bool = l >= 0 + yyj112++ + if yyhl112 { + yyb112 = yyj112 > l } else { - yyb10 = r.CheckBreak() + yyb112 = r.CheckBreak() } - if yyb10 { + if yyb112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj112++ + if yyhl112 { + yyb112 = yyj112 > l } else { - yyb10 = r.CheckBreak() + yyb112 = r.CheckBreak() } - if yyb10 { + if yyb112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePetSet((*[]PetSet)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj112++ + if yyhl112 { + yyb112 = yyj112 > l } else { - yyb10 = r.CheckBreak() + yyb112 = r.CheckBreak() } - if yyb10 { + if yyb112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv115 := &x.ListMeta + yym116 := z.DecBinary() + _ = yym116 + if false { + } else if z.HasExtensions() && z.DecExt(yyv115) { + } else { + z.DecFallback(yyv115, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj112++ + if yyhl112 { + yyb112 = yyj112 > l } else { - yyb10 = r.CheckBreak() + yyb112 = r.CheckBreak() } - if yyb10 { + if yyb112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv117 := &x.Items + yym118 := z.DecBinary() + _ = yym118 + if false { + } else { + h.decSlicePetSet((*[]PetSet)(yyv117), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj112++ + if yyhl112 { + yyb112 = yyj112 > l } else { - yyb10 = r.CheckBreak() + yyb112 = r.CheckBreak() } - if yyb10 { + if yyb112 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj112-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1400,10 +1400,10 @@ func (x codecSelfer1234) encSliceapi_PersistentVolumeClaim(v []pkg2_api.Persiste z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv119 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy120 := &yyv119 + yy120.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1413,86 +1413,83 @@ func (x codecSelfer1234) decSliceapi_PersistentVolumeClaim(v *[]pkg2_api.Persist z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg2_api.PersistentVolumeClaim{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv121 := *v + yyh121, yyl121 := z.DecSliceHelperStart() + var yyc121 bool + if yyl121 == 0 { + if yyv121 == nil { + yyv121 = []pkg2_api.PersistentVolumeClaim{} + yyc121 = true + } else if len(yyv121) != 0 { + yyv121 = yyv121[:0] + yyc121 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl121 > 0 { + var yyrr121, yyrl121 int + var yyrt121 bool + if yyl121 > cap(yyv121) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg121 := len(yyv121) > 0 + yyv2121 := yyv121 + yyrl121, yyrt121 = z.DecInferLen(yyl121, z.DecBasicHandle().MaxInitLen, 368) + if yyrt121 { + if yyrl121 <= cap(yyv121) { + yyv121 = yyv121[:yyrl121] } else { - yyv1 = make([]pkg2_api.PersistentVolumeClaim, yyrl1) + yyv121 = make([]pkg2_api.PersistentVolumeClaim, yyrl121) } } else { - yyv1 = make([]pkg2_api.PersistentVolumeClaim, yyrl1) + yyv121 = make([]pkg2_api.PersistentVolumeClaim, yyrl121) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc121 = true + yyrr121 = len(yyv121) + if yyrg121 { + copy(yyv121, yyv2121) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl121 != len(yyv121) { + yyv121 = yyv121[:yyl121] + yyc121 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj121 := 0 + for ; yyj121 < yyrr121; yyj121++ { + yyh121.ElemContainerState(yyj121) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_api.PersistentVolumeClaim{} + yyv121[yyj121] = pkg2_api.PersistentVolumeClaim{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv122 := &yyv121[yyj121] + yyv122.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, pkg2_api.PersistentVolumeClaim{}) - yyh1.ElemContainerState(yyj1) + if yyrt121 { + for ; yyj121 < yyl121; yyj121++ { + yyv121 = append(yyv121, pkg2_api.PersistentVolumeClaim{}) + yyh121.ElemContainerState(yyj121) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_api.PersistentVolumeClaim{} + yyv121[yyj121] = pkg2_api.PersistentVolumeClaim{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv123 := &yyv121[yyj121] + yyv123.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj121 := 0 + for ; !r.CheckBreak(); yyj121++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, pkg2_api.PersistentVolumeClaim{}) // var yyz1 pkg2_api.PersistentVolumeClaim - yyc1 = true + if yyj121 >= len(yyv121) { + yyv121 = append(yyv121, pkg2_api.PersistentVolumeClaim{}) // var yyz121 pkg2_api.PersistentVolumeClaim + yyc121 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh121.ElemContainerState(yyj121) + if yyj121 < len(yyv121) { if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_api.PersistentVolumeClaim{} + yyv121[yyj121] = pkg2_api.PersistentVolumeClaim{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv124 := &yyv121[yyj121] + yyv124.CodecDecodeSelf(d) } } else { @@ -1500,17 +1497,17 @@ func (x codecSelfer1234) decSliceapi_PersistentVolumeClaim(v *[]pkg2_api.Persist } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg2_api.PersistentVolumeClaim{} - yyc1 = true + if yyj121 < len(yyv121) { + yyv121 = yyv121[:yyj121] + yyc121 = true + } else if yyj121 == 0 && yyv121 == nil { + yyv121 = []pkg2_api.PersistentVolumeClaim{} + yyc121 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh121.End() + if yyc121 { + *v = yyv121 } } @@ -1519,10 +1516,10 @@ func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv125 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy126 := &yyv125 + yy126.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1532,86 +1529,83 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PetSet{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv127 := *v + yyh127, yyl127 := z.DecSliceHelperStart() + var yyc127 bool + if yyl127 == 0 { + if yyv127 == nil { + yyv127 = []PetSet{} + yyc127 = true + } else if len(yyv127) != 0 { + yyv127 = yyv127[:0] + yyc127 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl127 > 0 { + var yyrr127, yyrl127 int + var yyrt127 bool + if yyl127 > cap(yyv127) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 744) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg127 := len(yyv127) > 0 + yyv2127 := yyv127 + yyrl127, yyrt127 = z.DecInferLen(yyl127, z.DecBasicHandle().MaxInitLen, 776) + if yyrt127 { + if yyrl127 <= cap(yyv127) { + yyv127 = yyv127[:yyrl127] } else { - yyv1 = make([]PetSet, yyrl1) + yyv127 = make([]PetSet, yyrl127) } } else { - yyv1 = make([]PetSet, yyrl1) + yyv127 = make([]PetSet, yyrl127) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc127 = true + yyrr127 = len(yyv127) + if yyrg127 { + copy(yyv127, yyv2127) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl127 != len(yyv127) { + yyv127 = yyv127[:yyl127] + yyc127 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj127 := 0 + for ; yyj127 < yyrr127; yyj127++ { + yyh127.ElemContainerState(yyj127) if r.TryDecodeAsNil() { - yyv1[yyj1] = PetSet{} + yyv127[yyj127] = PetSet{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv128 := &yyv127[yyj127] + yyv128.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PetSet{}) - yyh1.ElemContainerState(yyj1) + if yyrt127 { + for ; yyj127 < yyl127; yyj127++ { + yyv127 = append(yyv127, PetSet{}) + yyh127.ElemContainerState(yyj127) if r.TryDecodeAsNil() { - yyv1[yyj1] = PetSet{} + yyv127[yyj127] = PetSet{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv129 := &yyv127[yyj127] + yyv129.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj127 := 0 + for ; !r.CheckBreak(); yyj127++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PetSet{}) // var yyz1 PetSet - yyc1 = true + if yyj127 >= len(yyv127) { + yyv127 = append(yyv127, PetSet{}) // var yyz127 PetSet + yyc127 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh127.ElemContainerState(yyj127) + if yyj127 < len(yyv127) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PetSet{} + yyv127[yyj127] = PetSet{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv130 := &yyv127[yyj127] + yyv130.CodecDecodeSelf(d) } } else { @@ -1619,16 +1613,16 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PetSet{} - yyc1 = true + if yyj127 < len(yyv127) { + yyv127 = yyv127[:yyj127] + yyc127 = true + } else if yyj127 == 0 && yyv127 == nil { + yyv127 = []PetSet{} + yyc127 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh127.End() + if yyc127 { + *v = yyv127 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion.go index b2fb1be72f..5cecd95097 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion.go @@ -27,7 +27,7 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addConversionFuncs(scheme *runtime.Scheme) { +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions to handle the *int32 -> int // conversion. A pointer is useful in the versioned type so we can default // it, but a plain int32 is more convenient in the internal type. These @@ -37,11 +37,10 @@ func addConversionFuncs(scheme *runtime.Scheme) { Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec, ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } - err = api.Scheme.AddFieldLabelConversionFunc("apps/v1alpha1", "PetSet", + return api.Scheme.AddFieldLabelConversionFunc("apps/v1alpha1", "PetSet", func(label, value string) (string, string, error) { switch label { case "metadata.name", "metadata.namespace", "status.successful": @@ -49,11 +48,8 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + }, + ) } func Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(in *PetSetSpec, out *apps.PetSetSpec, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/deep_copy_generated.go deleted file mode 100644 index 871894214f..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/deep_copy_generated.go +++ /dev/null @@ -1,118 +0,0 @@ -// +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 ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1alpha1_PetSet, - DeepCopy_v1alpha1_PetSetList, - DeepCopy_v1alpha1_PetSetSpec, - DeepCopy_v1alpha1_PetSetStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1alpha1_PetSet(in PetSet, out *PetSet, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1alpha1_PetSetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1alpha1_PetSetStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1alpha1_PetSetList(in PetSetList, out *PetSetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PetSet, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_PetSet(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_PetSetSpec(in PetSetSpec, out *PetSetSpec, c *conversion.Cloner) error { - if in.Replicas != nil { - in, out := in.Replicas, &out.Replicas - *out = new(int32) - **out = *in - } else { - out.Replicas = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - if in.VolumeClaimTemplates != nil { - in, out := in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]v1.PersistentVolumeClaim, len(in)) - for i := range in { - if err := v1.DeepCopy_v1_PersistentVolumeClaim(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.VolumeClaimTemplates = nil - } - out.ServiceName = in.ServiceName - return nil -} - -func DeepCopy_v1alpha1_PetSetStatus(in PetSetStatus, out *PetSetStatus, c *conversion.Cloner) error { - if in.ObservedGeneration != nil { - in, out := in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = *in - } else { - out.ObservedGeneration = nil - } - out.Replicas = in.Replicas - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/defaults.go index e578e8c947..63a02c9c9b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/defaults.go @@ -21,8 +21,8 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_PetSet, ) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.pb.go index 7e76067e41..7c8e305b7c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.pb.go @@ -39,6 +39,9 @@ import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned" import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -46,21 +49,25 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *PetSet) Reset() { *m = PetSet{} } -func (m *PetSet) String() string { return proto.CompactTextString(m) } -func (*PetSet) ProtoMessage() {} +// 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 *PetSet) Reset() { *m = PetSet{} } +func (*PetSet) ProtoMessage() {} +func (*PetSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *PetSetList) Reset() { *m = PetSetList{} } -func (m *PetSetList) String() string { return proto.CompactTextString(m) } -func (*PetSetList) ProtoMessage() {} +func (m *PetSetList) Reset() { *m = PetSetList{} } +func (*PetSetList) ProtoMessage() {} +func (*PetSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *PetSetSpec) Reset() { *m = PetSetSpec{} } -func (m *PetSetSpec) String() string { return proto.CompactTextString(m) } -func (*PetSetSpec) ProtoMessage() {} +func (m *PetSetSpec) Reset() { *m = PetSetSpec{} } +func (*PetSetSpec) ProtoMessage() {} +func (*PetSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *PetSetStatus) Reset() { *m = PetSetStatus{} } -func (m *PetSetStatus) String() string { return proto.CompactTextString(m) } -func (*PetSetStatus) ProtoMessage() {} +func (m *PetSetStatus) Reset() { *m = PetSetStatus{} } +func (*PetSetStatus) ProtoMessage() {} +func (*PetSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } func init() { proto.RegisterType((*PetSet)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSet") @@ -330,6 +337,62 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *PetSet) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PetSet{`, + `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(), "PetSetSpec", "PetSetSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PetSetStatus", "PetSetStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PetSetList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PetSetList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PetSet", "PetSet", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PetSetSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PetSetSpec{`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `VolumeClaimTemplates:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeClaimTemplates), "PersistentVolumeClaim", "k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim", 1), `&`, ``, 1) + `,`, + `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, + `}`, + }, "") + return s +} +func (this *PetSetStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PetSetStatus{`, + `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `}`, + }, "") + 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 *PetSet) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -967,3 +1030,46 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 611 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6f, 0xd3, 0x4c, + 0x10, 0xc6, 0xeb, 0xa6, 0xa9, 0xfc, 0x6e, 0xf3, 0x22, 0xb4, 0x54, 0x28, 0x8a, 0x50, 0x8a, 0x72, + 0x8a, 0x50, 0xb3, 0x26, 0x85, 0xa2, 0x9e, 0x8d, 0x04, 0x42, 0x02, 0x5a, 0x39, 0x10, 0x21, 0x10, + 0x48, 0x6b, 0x67, 0x48, 0x97, 0xd8, 0x5e, 0xcb, 0xbb, 0xce, 0x99, 0x03, 0xdc, 0x39, 0xf3, 0x31, + 0xf8, 0x08, 0x9c, 0x72, 0xec, 0x91, 0x53, 0x05, 0xe5, 0x8b, 0xb0, 0x5e, 0xff, 0x49, 0xa8, 0x93, + 0x96, 0x1e, 0x36, 0xca, 0xee, 0xce, 0xf3, 0xdb, 0x99, 0x67, 0xc6, 0xe8, 0x60, 0x72, 0x20, 0x08, + 0xe3, 0xd6, 0x24, 0x71, 0x21, 0x0e, 0x41, 0x82, 0xb0, 0xa2, 0xc9, 0xd8, 0xa2, 0x11, 0x13, 0xea, + 0x27, 0x12, 0xd6, 0xb4, 0x4f, 0xfd, 0xe8, 0x98, 0xf6, 0xad, 0x31, 0x84, 0x10, 0x53, 0x09, 0x23, + 0x12, 0xc5, 0x5c, 0x72, 0xdc, 0xcd, 0x94, 0x64, 0xae, 0x24, 0x4a, 0x49, 0x52, 0x25, 0x49, 0x95, + 0xa4, 0x50, 0xb6, 0x7a, 0x63, 0x26, 0x8f, 0x13, 0x97, 0x78, 0x3c, 0xb0, 0xc6, 0x7c, 0xcc, 0x2d, + 0x0d, 0x70, 0x93, 0xf7, 0x7a, 0xa7, 0x37, 0xfa, 0x5f, 0x06, 0x6e, 0xed, 0xad, 0x4c, 0xc9, 0x8a, + 0x41, 0xf0, 0x24, 0xf6, 0xe0, 0x7c, 0x32, 0xad, 0xfd, 0xd5, 0x9a, 0x24, 0x9c, 0x42, 0x2c, 0x18, + 0x0f, 0x61, 0x54, 0x91, 0xed, 0xae, 0x96, 0x4d, 0x2b, 0x15, 0xb7, 0x7a, 0xcb, 0xa3, 0xe3, 0x24, + 0x94, 0x2c, 0xa8, 0xe6, 0xd4, 0x5f, 0x1e, 0x9e, 0x48, 0xe6, 0x5b, 0x2c, 0x94, 0x42, 0xc6, 0xe7, + 0x25, 0x9d, 0xaf, 0xeb, 0x68, 0xf3, 0x08, 0xe4, 0x00, 0x24, 0x7e, 0x85, 0xcc, 0x00, 0x24, 0x1d, + 0x51, 0x49, 0x9b, 0xc6, 0x6d, 0xa3, 0xbb, 0xb5, 0xd7, 0x25, 0x2b, 0x1d, 0x57, 0x5e, 0x93, 0x43, + 0xf7, 0x03, 0x78, 0xf2, 0x99, 0xd2, 0xd8, 0x78, 0x76, 0xba, 0xb3, 0x76, 0x76, 0xba, 0x83, 0xe6, + 0x67, 0x4e, 0x49, 0xc3, 0x43, 0xb4, 0x21, 0x22, 0xf0, 0x9a, 0xeb, 0x9a, 0x7a, 0x9f, 0xfc, 0x6b, + 0x1f, 0x49, 0x96, 0xd9, 0x40, 0x69, 0xed, 0x46, 0xfe, 0xc2, 0x46, 0xba, 0x73, 0x34, 0x0f, 0xbf, + 0x43, 0x9b, 0x42, 0x52, 0x99, 0x88, 0x66, 0x4d, 0x93, 0x1f, 0x5c, 0x99, 0xac, 0xd5, 0xf6, 0xb5, + 0x9c, 0xbd, 0x99, 0xed, 0x9d, 0x9c, 0xda, 0xf9, 0x6e, 0x20, 0x94, 0x05, 0x3e, 0x65, 0x42, 0xe2, + 0xb7, 0x15, 0x83, 0xac, 0x0b, 0x0c, 0x5a, 0x98, 0x02, 0x92, 0xca, 0xb5, 0x4f, 0xd7, 0xf3, 0x97, + 0xcc, 0xe2, 0x64, 0xc1, 0xa5, 0x97, 0xa8, 0xce, 0x24, 0x04, 0x42, 0xd9, 0x54, 0x53, 0xec, 0xbb, + 0x57, 0x2d, 0xc6, 0xfe, 0x3f, 0x87, 0xd7, 0x9f, 0xa4, 0x18, 0x27, 0xa3, 0x75, 0xbe, 0xd5, 0x8a, + 0x22, 0x52, 0xe7, 0x70, 0x17, 0x99, 0x31, 0x44, 0x3e, 0xf3, 0xa8, 0xd0, 0x45, 0xd4, 0xed, 0x46, + 0x9a, 0x8f, 0x93, 0x9f, 0x39, 0xe5, 0xad, 0x72, 0xd7, 0x14, 0xe0, 0xab, 0x6e, 0xf2, 0xf8, 0xf2, + 0xce, 0xfd, 0x5d, 0x2e, 0x75, 0xc1, 0x1f, 0xe4, 0xda, 0x8c, 0x5f, 0xec, 0x9c, 0x92, 0x89, 0xdf, + 0x20, 0x53, 0x25, 0x18, 0xf9, 0x6a, 0x1a, 0xf3, 0xfe, 0xf5, 0x2e, 0x9e, 0xb7, 0x23, 0x3e, 0x7a, + 0x91, 0x0b, 0xf4, 0x48, 0x94, 0x66, 0x16, 0xa7, 0x4e, 0x09, 0xc4, 0x9f, 0x0d, 0xb4, 0x3d, 0xe5, + 0x7e, 0x12, 0xc0, 0x43, 0x9f, 0xb2, 0xa0, 0x88, 0x10, 0xcd, 0x0d, 0x6d, 0xee, 0xbd, 0x4b, 0x5e, + 0x4a, 0x4b, 0x11, 0x12, 0x42, 0x39, 0x9c, 0x33, 0xec, 0x5b, 0xf9, 0x7b, 0xdb, 0xc3, 0x25, 0x60, + 0x67, 0xe9, 0x73, 0x78, 0x1f, 0x6d, 0x09, 0x88, 0xa7, 0xcc, 0x83, 0xe7, 0x34, 0x80, 0x66, 0x5d, + 0xd5, 0xf9, 0x9f, 0x7d, 0x23, 0x07, 0x6d, 0x0d, 0xe6, 0x57, 0xce, 0x62, 0x5c, 0xe7, 0x93, 0x81, + 0x1a, 0x8b, 0x23, 0x8a, 0x1f, 0x21, 0xcc, 0xdd, 0x34, 0x02, 0x46, 0x8f, 0xb3, 0x4f, 0x58, 0x59, + 0xad, 0x1b, 0x58, 0xb3, 0x6f, 0x2a, 0x14, 0x3e, 0xac, 0xdc, 0x3a, 0x4b, 0x14, 0x78, 0x77, 0xa1, + 0xfd, 0xeb, 0xba, 0xfd, 0xa5, 0x8b, 0xd5, 0x11, 0xb0, 0xef, 0xcc, 0x7e, 0xb5, 0xd7, 0x4e, 0xd4, + 0xfa, 0xa1, 0xd6, 0xc7, 0xb3, 0xb6, 0x31, 0x53, 0xeb, 0x44, 0xad, 0x9f, 0x6a, 0x7d, 0xf9, 0xdd, + 0x5e, 0x7b, 0x6d, 0x16, 0x43, 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0x14, 0xcf, 0x45, 0x01, 0xd8, + 0x05, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto index 92bdd6b31c..2338042bfd 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto @@ -24,6 +24,7 @@ package k8s.io.kubernetes.pkg.apis.apps.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". diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/register.go index 9fd138c4a2..90f9bd1c24 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/register.go @@ -29,14 +29,13 @@ const GroupName = "apps" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PetSet{}, &PetSetList{}, @@ -44,6 +43,7 @@ func addKnownTypes(scheme *runtime.Scheme) { &v1.DeleteOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } func (obj *PetSet) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/types.generated.go index d03639227a..cddfdaba2b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/types.generated.go @@ -92,11 +92,11 @@ func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -113,102 +113,102 @@ func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -224,25 +224,25 @@ func (x *PetSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -254,12 +254,12 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -268,47 +268,47 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PetSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PetSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -316,104 +316,104 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PetSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PetSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -425,75 +425,75 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 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.Replicas != nil - yyq2[1] = x.Selector != nil - yyq2[3] = len(x.VolumeClaimTemplates) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [5]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Replicas != nil + yyq33[1] = x.Selector != nil + yyq33[3] = len(x.VolumeClaimTemplates) != 0 + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn33 = 2 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq33[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy4 := *x.Replicas - yym5 := z.EncBinary() - _ = yym5 + yy35 := *x.Replicas + yym36 := z.EncBinary() + _ = yym36 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy35)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy6 := *x.Replicas - yym7 := z.EncBinary() - _ = yym7 + yy37 := *x.Replicas + yym38 := z.EncBinary() + _ = yym38 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy37)) } } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq33[1] { if x.Selector == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym40 := z.EncBinary() + _ = yym40 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -504,15 +504,15 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq33[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym41 := z.EncBinary() + _ = yym41 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -521,25 +521,25 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy12 := &x.Template - yy12.CodecEncodeSelf(e) + yy43 := &x.Template + yy43.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Template - yy14.CodecEncodeSelf(e) + yy44 := &x.Template + yy44.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq33[3] { if x.VolumeClaimTemplates == nil { r.EncodeNil() } else { - yym17 := z.EncBinary() - _ = yym17 + yym46 := z.EncBinary() + _ = yym46 if false { } else { h.encSlicev1_PersistentVolumeClaim(([]pkg2_v1.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) @@ -549,15 +549,15 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq33[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeClaimTemplates")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeClaimTemplates == nil { r.EncodeNil() } else { - yym18 := z.EncBinary() - _ = yym18 + yym47 := z.EncBinary() + _ = yym47 if false { } else { h.encSlicev1_PersistentVolumeClaim(([]pkg2_v1.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) @@ -565,10 +565,10 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym20 := z.EncBinary() - _ = yym20 + yym49 := z.EncBinary() + _ = yym49 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -577,14 +577,14 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym50 := z.EncBinary() + _ = yym50 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -597,25 +597,25 @@ func (x *PetSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym51 := z.DecBinary() + _ = yym51 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct52 := r.ContainerType() + if yyct52 == codecSelferValueTypeMap1234 { + yyl52 := r.ReadMapStart() + if yyl52 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl52, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct52 == codecSelferValueTypeArray1234 { + yyl52 := r.ReadArrayStart() + if yyl52 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl52, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -627,12 +627,12 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys53Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys53Slc + var yyhl53 bool = l >= 0 + for yyj53 := 0; ; yyj53++ { + if yyhl53 { + if yyj53 >= l { break } } else { @@ -641,10 +641,10 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys53Slc = r.DecodeBytes(yys53Slc, true, true) + yys53 := string(yys53Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys53 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -654,8 +654,8 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym55 := z.DecBinary() + _ = yym55 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -670,8 +670,8 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym7 := z.DecBinary() - _ = yym7 + yym57 := z.DecBinary() + _ = yym57 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -682,19 +682,19 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv8 := &x.Template - yyv8.CodecDecodeSelf(d) + yyv58 := &x.Template + yyv58.CodecDecodeSelf(d) } case "volumeClaimTemplates": if r.TryDecodeAsNil() { x.VolumeClaimTemplates = nil } else { - yyv9 := &x.VolumeClaimTemplates - yym10 := z.DecBinary() - _ = yym10 + yyv59 := &x.VolumeClaimTemplates + yym60 := z.DecBinary() + _ = yym60 if false { } else { - h.decSlicev1_PersistentVolumeClaim((*[]pkg2_v1.PersistentVolumeClaim)(yyv9), d) + h.decSlicev1_PersistentVolumeClaim((*[]pkg2_v1.PersistentVolumeClaim)(yyv59), d) } } case "serviceName": @@ -704,9 +704,9 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ServiceName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys53) + } // end switch yys53 + } // end for yyj53 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -714,16 +714,16 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj62 int + var yyb62 bool + var yyhl62 bool = l >= 0 + yyj62++ + if yyhl62 { + yyb62 = yyj62 > l } else { - yyb12 = r.CheckBreak() + yyb62 = r.CheckBreak() } - if yyb12 { + if yyb62 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -736,20 +736,20 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym14 := z.DecBinary() - _ = yym14 + yym64 := z.DecBinary() + _ = yym64 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj62++ + if yyhl62 { + yyb62 = yyj62 > l } else { - yyb12 = r.CheckBreak() + yyb62 = r.CheckBreak() } - if yyb12 { + if yyb62 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -762,21 +762,21 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym16 := z.DecBinary() - _ = yym16 + yym66 := z.DecBinary() + _ = yym66 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj62++ + if yyhl62 { + yyb62 = yyj62 > l } else { - yyb12 = r.CheckBreak() + yyb62 = r.CheckBreak() } - if yyb12 { + if yyb62 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -784,16 +784,16 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv17 := &x.Template - yyv17.CodecDecodeSelf(d) + yyv67 := &x.Template + yyv67.CodecDecodeSelf(d) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj62++ + if yyhl62 { + yyb62 = yyj62 > l } else { - yyb12 = r.CheckBreak() + yyb62 = r.CheckBreak() } - if yyb12 { + if yyb62 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -801,21 +801,21 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumeClaimTemplates = nil } else { - yyv18 := &x.VolumeClaimTemplates - yym19 := z.DecBinary() - _ = yym19 + yyv68 := &x.VolumeClaimTemplates + yym69 := z.DecBinary() + _ = yym69 if false { } else { - h.decSlicev1_PersistentVolumeClaim((*[]pkg2_v1.PersistentVolumeClaim)(yyv18), d) + h.decSlicev1_PersistentVolumeClaim((*[]pkg2_v1.PersistentVolumeClaim)(yyv68), d) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj62++ + if yyhl62 { + yyb62 = yyj62 > l } else { - yyb12 = r.CheckBreak() + yyb62 = r.CheckBreak() } - if yyb12 { + if yyb62 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -826,17 +826,17 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ServiceName = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj62++ + if yyhl62 { + yyb62 = yyj62 > l } else { - yyb12 = r.CheckBreak() + yyb62 = r.CheckBreak() } - if yyb12 { + if yyb62 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj62-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -848,69 +848,69 @@ func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym71 := z.EncBinary() + _ = yym71 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.ObservedGeneration != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep72 := !z.EncBinary() + yy2arr72 := z.EncBasicHandle().StructToArray + var yyq72 [2]bool + _, _, _ = yysep72, yyq72, yy2arr72 + const yyr72 bool = false + yyq72[0] = x.ObservedGeneration != nil + var yynn72 int + if yyr72 || yy2arr72 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn72 = 1 + for _, b := range yyq72 { if b { - yynn2++ + yynn72++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn72) + yynn72 = 0 } - if yyr2 || yy2arr2 { + if yyr72 || yy2arr72 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq72[0] { if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy4 := *x.ObservedGeneration - yym5 := z.EncBinary() - _ = yym5 + yy74 := *x.ObservedGeneration + yym75 := z.EncBinary() + _ = yym75 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy74)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq72[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy6 := *x.ObservedGeneration - yym7 := z.EncBinary() - _ = yym7 + yy76 := *x.ObservedGeneration + yym77 := z.EncBinary() + _ = yym77 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy76)) } } } } - if yyr2 || yy2arr2 { + if yyr72 || yy2arr72 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym9 := z.EncBinary() - _ = yym9 + yym79 := z.EncBinary() + _ = yym79 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -919,14 +919,14 @@ func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym80 := z.EncBinary() + _ = yym80 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr72 || yy2arr72 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -939,25 +939,25 @@ func (x *PetSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym81 := z.DecBinary() + _ = yym81 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct82 := r.ContainerType() + if yyct82 == codecSelferValueTypeMap1234 { + yyl82 := r.ReadMapStart() + if yyl82 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl82, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct82 == codecSelferValueTypeArray1234 { + yyl82 := r.ReadArrayStart() + if yyl82 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl82, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -969,12 +969,12 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys83Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys83Slc + var yyhl83 bool = l >= 0 + for yyj83 := 0; ; yyj83++ { + if yyhl83 { + if yyj83 >= l { break } } else { @@ -983,10 +983,10 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys83Slc = r.DecodeBytes(yys83Slc, true, true) + yys83 := string(yys83Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys83 { case "observedGeneration": if r.TryDecodeAsNil() { if x.ObservedGeneration != nil { @@ -996,8 +996,8 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym85 := z.DecBinary() + _ = yym85 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) @@ -1010,9 +1010,9 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys83) + } // end switch yys83 + } // end for yyj83 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1020,16 +1020,16 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj87 int + var yyb87 bool + var yyhl87 bool = l >= 0 + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb7 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb7 { + if yyb87 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1042,20 +1042,20 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym89 := z.DecBinary() + _ = yym89 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb7 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb7 { + if yyb87 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1066,17 +1066,17 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb7 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb7 { + if yyb87 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj87-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1088,139 +1088,139 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym91 := z.EncBinary() + _ = yym91 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep92 := !z.EncBinary() + yy2arr92 := z.EncBasicHandle().StructToArray + var yyq92 [4]bool + _, _, _ = yysep92, yyq92, yy2arr92 + const yyr92 bool = false + yyq92[0] = x.Kind != "" + yyq92[1] = x.APIVersion != "" + yyq92[2] = true + var yynn92 int + if yyr92 || yy2arr92 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn92 = 1 + for _, b := range yyq92 { if b { - yynn2++ + yynn92++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn92) + yynn92 = 0 } - if yyr2 || yy2arr2 { + if yyr92 || yy2arr92 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq92[0] { + yym94 := z.EncBinary() + _ = yym94 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq92[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym95 := z.EncBinary() + _ = yym95 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr92 || yy2arr92 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq92[1] { + yym97 := z.EncBinary() + _ = yym97 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq92[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym98 := z.EncBinary() + _ = yym98 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr92 || yy2arr92 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq92[2] { + yy100 := &x.ListMeta + yym101 := z.EncBinary() + _ = yym101 if false { + } else if z.HasExtensions() && z.EncExt(yy100) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy100) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq92[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy102 := &x.ListMeta + yym103 := z.EncBinary() + _ = yym103 if false { + } else if z.HasExtensions() && z.EncExt(yy102) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy102) } } } - if yyr2 || yy2arr2 { + if yyr92 || yy2arr92 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym105 := z.EncBinary() + _ = yym105 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePetSet(([]PetSet)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym106 := z.EncBinary() + _ = yym106 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePetSet(([]PetSet)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr92 || yy2arr92 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1233,25 +1233,25 @@ func (x *PetSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym107 := z.DecBinary() + _ = yym107 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct108 := r.ContainerType() + if yyct108 == codecSelferValueTypeMap1234 { + yyl108 := r.ReadMapStart() + if yyl108 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl108, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct108 == codecSelferValueTypeArray1234 { + yyl108 := r.ReadArrayStart() + if yyl108 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl108, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1263,12 +1263,12 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys109Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys109Slc + var yyhl109 bool = l >= 0 + for yyj109 := 0; ; yyj109++ { + if yyhl109 { + if yyj109 >= l { break } } else { @@ -1277,51 +1277,51 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys109Slc = r.DecodeBytes(yys109Slc, true, true) + yys109 := string(yys109Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys109 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv112 := &x.ListMeta + yym113 := z.DecBinary() + _ = yym113 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv112) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv112, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv114 := &x.Items + yym115 := z.DecBinary() + _ = yym115 if false { } else { - h.decSlicePetSet((*[]PetSet)(yyv6), d) + h.decSlicePetSet((*[]PetSet)(yyv114), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys109) + } // end switch yys109 + } // end for yyj109 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1329,98 +1329,98 @@ func (x *PetSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj116 int + var yyb116 bool + var yyhl116 bool = l >= 0 + yyj116++ + if yyhl116 { + yyb116 = yyj116 > l } else { - yyb10 = r.CheckBreak() + yyb116 = r.CheckBreak() } - if yyb10 { + if yyb116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj116++ + if yyhl116 { + yyb116 = yyj116 > l } else { - yyb10 = r.CheckBreak() + yyb116 = r.CheckBreak() } - if yyb10 { + if yyb116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePetSet((*[]PetSet)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj116++ + if yyhl116 { + yyb116 = yyj116 > l } else { - yyb10 = r.CheckBreak() + yyb116 = r.CheckBreak() } - if yyb10 { + if yyb116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv119 := &x.ListMeta + yym120 := z.DecBinary() + _ = yym120 + if false { + } else if z.HasExtensions() && z.DecExt(yyv119) { + } else { + z.DecFallback(yyv119, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj116++ + if yyhl116 { + yyb116 = yyj116 > l } else { - yyb10 = r.CheckBreak() + yyb116 = r.CheckBreak() } - if yyb10 { + if yyb116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv121 := &x.Items + yym122 := z.DecBinary() + _ = yym122 + if false { + } else { + h.decSlicePetSet((*[]PetSet)(yyv121), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj116++ + if yyhl116 { + yyb116 = yyj116 > l } else { - yyb10 = r.CheckBreak() + yyb116 = r.CheckBreak() } - if yyb10 { + if yyb116 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj116-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1430,10 +1430,10 @@ func (x codecSelfer1234) encSlicev1_PersistentVolumeClaim(v []pkg2_v1.Persistent z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv123 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy124 := &yyv123 + yy124.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1443,86 +1443,83 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg2_v1.PersistentVolumeClaim{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv125 := *v + yyh125, yyl125 := z.DecSliceHelperStart() + var yyc125 bool + if yyl125 == 0 { + if yyv125 == nil { + yyv125 = []pkg2_v1.PersistentVolumeClaim{} + yyc125 = true + } else if len(yyv125) != 0 { + yyv125 = yyv125[:0] + yyc125 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl125 > 0 { + var yyrr125, yyrl125 int + var yyrt125 bool + if yyl125 > cap(yyv125) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg125 := len(yyv125) > 0 + yyv2125 := yyv125 + yyrl125, yyrt125 = z.DecInferLen(yyl125, z.DecBasicHandle().MaxInitLen, 368) + if yyrt125 { + if yyrl125 <= cap(yyv125) { + yyv125 = yyv125[:yyrl125] } else { - yyv1 = make([]pkg2_v1.PersistentVolumeClaim, yyrl1) + yyv125 = make([]pkg2_v1.PersistentVolumeClaim, yyrl125) } } else { - yyv1 = make([]pkg2_v1.PersistentVolumeClaim, yyrl1) + yyv125 = make([]pkg2_v1.PersistentVolumeClaim, yyrl125) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc125 = true + yyrr125 = len(yyv125) + if yyrg125 { + copy(yyv125, yyv2125) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl125 != len(yyv125) { + yyv125 = yyv125[:yyl125] + yyc125 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj125 := 0 + for ; yyj125 < yyrr125; yyj125++ { + yyh125.ElemContainerState(yyj125) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_v1.PersistentVolumeClaim{} + yyv125[yyj125] = pkg2_v1.PersistentVolumeClaim{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv126 := &yyv125[yyj125] + yyv126.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, pkg2_v1.PersistentVolumeClaim{}) - yyh1.ElemContainerState(yyj1) + if yyrt125 { + for ; yyj125 < yyl125; yyj125++ { + yyv125 = append(yyv125, pkg2_v1.PersistentVolumeClaim{}) + yyh125.ElemContainerState(yyj125) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_v1.PersistentVolumeClaim{} + yyv125[yyj125] = pkg2_v1.PersistentVolumeClaim{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv127 := &yyv125[yyj125] + yyv127.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj125 := 0 + for ; !r.CheckBreak(); yyj125++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, pkg2_v1.PersistentVolumeClaim{}) // var yyz1 pkg2_v1.PersistentVolumeClaim - yyc1 = true + if yyj125 >= len(yyv125) { + yyv125 = append(yyv125, pkg2_v1.PersistentVolumeClaim{}) // var yyz125 pkg2_v1.PersistentVolumeClaim + yyc125 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh125.ElemContainerState(yyj125) + if yyj125 < len(yyv125) { if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_v1.PersistentVolumeClaim{} + yyv125[yyj125] = pkg2_v1.PersistentVolumeClaim{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv128 := &yyv125[yyj125] + yyv128.CodecDecodeSelf(d) } } else { @@ -1530,17 +1527,17 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg2_v1.PersistentVolumeClaim{} - yyc1 = true + if yyj125 < len(yyv125) { + yyv125 = yyv125[:yyj125] + yyc125 = true + } else if yyj125 == 0 && yyv125 == nil { + yyv125 = []pkg2_v1.PersistentVolumeClaim{} + yyc125 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh125.End() + if yyc125 { + *v = yyv125 } } @@ -1549,10 +1546,10 @@ func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv129 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy130 := &yyv129 + yy130.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1562,86 +1559,83 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PetSet{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv131 := *v + yyh131, yyl131 := z.DecSliceHelperStart() + var yyc131 bool + if yyl131 == 0 { + if yyv131 == nil { + yyv131 = []PetSet{} + yyc131 = true + } else if len(yyv131) != 0 { + yyv131 = yyv131[:0] + yyc131 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl131 > 0 { + var yyrr131, yyrl131 int + var yyrt131 bool + if yyl131 > cap(yyv131) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 768) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg131 := len(yyv131) > 0 + yyv2131 := yyv131 + yyrl131, yyrt131 = z.DecInferLen(yyl131, z.DecBasicHandle().MaxInitLen, 800) + if yyrt131 { + if yyrl131 <= cap(yyv131) { + yyv131 = yyv131[:yyrl131] } else { - yyv1 = make([]PetSet, yyrl1) + yyv131 = make([]PetSet, yyrl131) } } else { - yyv1 = make([]PetSet, yyrl1) + yyv131 = make([]PetSet, yyrl131) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc131 = true + yyrr131 = len(yyv131) + if yyrg131 { + copy(yyv131, yyv2131) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl131 != len(yyv131) { + yyv131 = yyv131[:yyl131] + yyc131 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj131 := 0 + for ; yyj131 < yyrr131; yyj131++ { + yyh131.ElemContainerState(yyj131) if r.TryDecodeAsNil() { - yyv1[yyj1] = PetSet{} + yyv131[yyj131] = PetSet{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv132 := &yyv131[yyj131] + yyv132.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PetSet{}) - yyh1.ElemContainerState(yyj1) + if yyrt131 { + for ; yyj131 < yyl131; yyj131++ { + yyv131 = append(yyv131, PetSet{}) + yyh131.ElemContainerState(yyj131) if r.TryDecodeAsNil() { - yyv1[yyj1] = PetSet{} + yyv131[yyj131] = PetSet{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv133 := &yyv131[yyj131] + yyv133.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj131 := 0 + for ; !r.CheckBreak(); yyj131++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PetSet{}) // var yyz1 PetSet - yyc1 = true + if yyj131 >= len(yyv131) { + yyv131 = append(yyv131, PetSet{}) // var yyz131 PetSet + yyc131 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh131.ElemContainerState(yyj131) + if yyj131 < len(yyv131) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PetSet{} + yyv131[yyj131] = PetSet{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv134 := &yyv131[yyj131] + yyv134.CodecDecodeSelf(d) } } else { @@ -1649,16 +1643,16 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PetSet{} - yyc1 = true + if yyj131 < len(yyv131) { + yyv131 = yyv131[:yyj131] + yyc131 = true + } else if yyj131 == 0 && yyv131 == nil { + yyv131 = []PetSet{} + yyc131 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh131.End() + if yyc131 { + *v = yyv131 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/zz_generated.conversion.go similarity index 94% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/zz_generated.conversion.go index 3cf4728102..767eff7286 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/zz_generated.conversion.go @@ -24,10 +24,17 @@ import ( api "k8s.io/kubernetes/pkg/api" apps "k8s.io/kubernetes/pkg/apis/apps" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_PetSet_To_apps_PetSet, Convert_apps_PetSet_To_v1alpha1_PetSet, Convert_v1alpha1_PetSetList_To_apps_PetSetList, @@ -36,10 +43,7 @@ func init() { Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec, Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus, Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1alpha1_PetSet_To_apps_PetSet(in *PetSet, out *apps.PetSet, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..3d80b7065f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,138 @@ +// +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 ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_PetSet, InType: reflect.TypeOf(&PetSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSetList, InType: reflect.TypeOf(&PetSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSetSpec, InType: reflect.TypeOf(&PetSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSetStatus, InType: reflect.TypeOf(&PetSetStatus{})}, + ) +} + +func DeepCopy_v1alpha1_PetSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSet) + out := out.(*PetSet) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1alpha1_PetSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1alpha1_PetSetStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1alpha1_PetSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSetList) + out := out.(*PetSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PetSet, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_PetSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSetSpec) + out := out.(*PetSetSpec) + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } else { + out.Replicas = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + if in.VolumeClaimTemplates != nil { + in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates + *out = make([]v1.PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := v1.DeepCopy_v1_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.VolumeClaimTemplates = nil + } + out.ServiceName = in.ServiceName + return nil + } +} + +func DeepCopy_v1alpha1_PetSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSetStatus) + out := out.(*PetSetStatus) + if in.ObservedGeneration != nil { + in, out := &in.ObservedGeneration, &out.ObservedGeneration + *out = new(int64) + **out = **in + } else { + out.ObservedGeneration = nil + } + out.Replicas = in.Replicas + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/zz_generated.deepcopy.go new file mode 100644 index 0000000000..ecd6db61e8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/apps/zz_generated.deepcopy.go @@ -0,0 +1,132 @@ +// +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 apps + +import ( + api "k8s.io/kubernetes/pkg/api" + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_apps_PetSet, InType: reflect.TypeOf(&PetSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSetList, InType: reflect.TypeOf(&PetSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSetSpec, InType: reflect.TypeOf(&PetSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSetStatus, InType: reflect.TypeOf(&PetSetStatus{})}, + ) +} + +func DeepCopy_apps_PetSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSet) + out := out.(*PetSet) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_apps_PetSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_apps_PetSetStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_apps_PetSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSetList) + out := out.(*PetSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PetSet, len(*in)) + for i := range *in { + if err := DeepCopy_apps_PetSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_apps_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSetSpec) + out := out.(*PetSetSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + if in.VolumeClaimTemplates != nil { + in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates + *out = make([]api.PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := api.DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.VolumeClaimTemplates = nil + } + out.ServiceName = in.ServiceName + return nil + } +} + +func DeepCopy_apps_PetSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PetSetStatus) + out := out.(*PetSetStatus) + if in.ObservedGeneration != nil { + in, out := &in.ObservedGeneration, &out.ObservedGeneration + *out = new(int64) + **out = **in + } else { + out.ObservedGeneration = nil + } + out.Replicas = in.Replicas + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/deep_copy_generated.go deleted file mode 100644 index 6424875d52..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/deep_copy_generated.go +++ /dev/null @@ -1,86 +0,0 @@ -// +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 authentication - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_authenticationk8sio_TokenReview, - DeepCopy_authenticationk8sio_TokenReviewSpec, - DeepCopy_authenticationk8sio_TokenReviewStatus, - DeepCopy_authenticationk8sio_UserInfo, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_authenticationk8sio_TokenReview(in TokenReview, out *TokenReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Spec = in.Spec - if err := DeepCopy_authenticationk8sio_TokenReviewStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_authenticationk8sio_TokenReviewSpec(in TokenReviewSpec, out *TokenReviewSpec, c *conversion.Cloner) error { - out.Token = in.Token - return nil -} - -func DeepCopy_authenticationk8sio_TokenReviewStatus(in TokenReviewStatus, out *TokenReviewStatus, c *conversion.Cloner) error { - out.Authenticated = in.Authenticated - if err := DeepCopy_authenticationk8sio_UserInfo(in.User, &out.User, c); err != nil { - return err - } - return nil -} - -func DeepCopy_authenticationk8sio_UserInfo(in UserInfo, out *UserInfo, c *conversion.Cloner) error { - out.Username = in.Username - out.UID = in.UID - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Groups = nil - } - if in.Extra != nil { - in, out := in.Extra, &out.Extra - *out = make(map[string][]string) - for key, val := range in { - if newVal, err := c.DeepCopy(val); err != nil { - return err - } else { - (*out)[key] = newVal.([]string) - } - } - } else { - out.Extra = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/types.generated.go deleted file mode 100644 index b666e8c182..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/types.generated.go +++ /dev/null @@ -1,1265 +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. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package authentication - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" - "reflect" - "runtime" -) - -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 - _ = v0 - } -} - -func (x *TokenReview) 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 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = TokenReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = TokenReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } - 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()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = TokenReviewSpec{} - } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = TokenReviewStatus{} - } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *TokenReviewSpec) 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 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Token)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Token)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Token": - if r.TryDecodeAsNil() { - x.Token = "" - } else { - x.Token = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Token = "" - } else { - x.Token = string(r.DecodeString()) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *TokenReviewStatus) 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 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Authenticated)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Authenticated")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Authenticated)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.User - yy7.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("User")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.User - yy9.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Authenticated": - if r.TryDecodeAsNil() { - x.Authenticated = false - } else { - x.Authenticated = bool(r.DecodeBool()) - } - case "User": - if r.TryDecodeAsNil() { - x.User = UserInfo{} - } else { - yyv5 := &x.User - yyv5.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Authenticated = false - } else { - x.Authenticated = bool(r.DecodeBool()) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.User = UserInfo{} - } else { - yyv8 := &x.User - yyv8.CodecDecodeSelf(d) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *UserInfo) 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 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Username)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Username")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Username)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("UID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Groups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Extra == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Extra")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Extra == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Username": - if r.TryDecodeAsNil() { - x.Username = "" - } else { - x.Username = string(r.DecodeString()) - } - case "UID": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = string(r.DecodeString()) - } - case "Groups": - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv6 := &x.Groups - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "Extra": - if r.TryDecodeAsNil() { - x.Extra = nil - } else { - yyv8 := &x.Extra - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - h.decMapstringSlicestring((*map[string][]string)(yyv8), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Username = "" - } else { - x.Username = string(r.DecodeString()) - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = string(r.DecodeString()) - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv13 := &x.Groups - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Extra = nil - } else { - yyv15 := &x.Extra - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decMapstringSlicestring((*map[string][]string)(yyv15), d) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv1 == nil { - r.EncodeNil() - } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - z.F.EncSliceStringV(yyv1, false, e) - } - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) - yyv1 = make(map[string][]string, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 []string - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yymk1 = string(r.DecodeString()) - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 - if false { - } else { - z.F.DecSliceStringX(yyv3, false, d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yymk1 = string(r.DecodeString()) - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encSlicestring(v []string, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []string{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]string, yyrl1) - } - } else { - yyv1 = make([]string, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = "" - } else { - yyv1[yyj1] = string(r.DecodeString()) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = "" - } else { - yyv1[yyj1] = string(r.DecodeString()) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 string - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = "" - } else { - yyv1[yyj1] = string(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []string{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/conversion_generated.go deleted file mode 100644 index d60db5ed9d..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/conversion_generated.go +++ /dev/null @@ -1,143 +0,0 @@ -// +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 v1beta1 - -import ( - api "k8s.io/kubernetes/pkg/api" - authentication_k8s_io "k8s.io/kubernetes/pkg/apis/authentication.k8s.io" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( - Convert_v1beta1_TokenReview_To_authenticationk8sio_TokenReview, - Convert_authenticationk8sio_TokenReview_To_v1beta1_TokenReview, - Convert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec, - Convert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec, - Convert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus, - Convert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus, - Convert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo, - Convert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } -} - -func autoConvert_v1beta1_TokenReview_To_authenticationk8sio_TokenReview(in *TokenReview, out *authentication_k8s_io.TokenReview, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - if err := Convert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v1beta1_TokenReview_To_authenticationk8sio_TokenReview(in *TokenReview, out *authentication_k8s_io.TokenReview, s conversion.Scope) error { - return autoConvert_v1beta1_TokenReview_To_authenticationk8sio_TokenReview(in, out, s) -} - -func autoConvert_authenticationk8sio_TokenReview_To_v1beta1_TokenReview(in *authentication_k8s_io.TokenReview, out *TokenReview, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - if err := Convert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_authenticationk8sio_TokenReview_To_v1beta1_TokenReview(in *authentication_k8s_io.TokenReview, out *TokenReview, s conversion.Scope) error { - return autoConvert_authenticationk8sio_TokenReview_To_v1beta1_TokenReview(in, out, s) -} - -func autoConvert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec(in *TokenReviewSpec, out *authentication_k8s_io.TokenReviewSpec, s conversion.Scope) error { - out.Token = in.Token - return nil -} - -func Convert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec(in *TokenReviewSpec, out *authentication_k8s_io.TokenReviewSpec, s conversion.Scope) error { - return autoConvert_v1beta1_TokenReviewSpec_To_authenticationk8sio_TokenReviewSpec(in, out, s) -} - -func autoConvert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication_k8s_io.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error { - out.Token = in.Token - return nil -} - -func Convert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication_k8s_io.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error { - return autoConvert_authenticationk8sio_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in, out, s) -} - -func autoConvert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus(in *TokenReviewStatus, out *authentication_k8s_io.TokenReviewStatus, s conversion.Scope) error { - out.Authenticated = in.Authenticated - if err := Convert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo(&in.User, &out.User, s); err != nil { - return err - } - return nil -} - -func Convert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus(in *TokenReviewStatus, out *authentication_k8s_io.TokenReviewStatus, s conversion.Scope) error { - return autoConvert_v1beta1_TokenReviewStatus_To_authenticationk8sio_TokenReviewStatus(in, out, s) -} - -func autoConvert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication_k8s_io.TokenReviewStatus, out *TokenReviewStatus, s conversion.Scope) error { - out.Authenticated = in.Authenticated - if err := Convert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo(&in.User, &out.User, s); err != nil { - return err - } - return nil -} - -func Convert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication_k8s_io.TokenReviewStatus, out *TokenReviewStatus, s conversion.Scope) error { - return autoConvert_authenticationk8sio_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in, out, s) -} - -func autoConvert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo(in *UserInfo, out *authentication_k8s_io.UserInfo, s conversion.Scope) error { - out.Username = in.Username - out.UID = in.UID - out.Groups = in.Groups - out.Extra = in.Extra - return nil -} - -func Convert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo(in *UserInfo, out *authentication_k8s_io.UserInfo, s conversion.Scope) error { - return autoConvert_v1beta1_UserInfo_To_authenticationk8sio_UserInfo(in, out, s) -} - -func autoConvert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo(in *authentication_k8s_io.UserInfo, out *UserInfo, s conversion.Scope) error { - out.Username = in.Username - out.UID = in.UID - out.Groups = in.Groups - out.Extra = in.Extra - return nil -} - -func Convert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo(in *authentication_k8s_io.UserInfo, out *UserInfo, s conversion.Scope) error { - return autoConvert_authenticationk8sio_UserInfo_To_v1beta1_UserInfo(in, out, s) -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/deep_copy_generated.go deleted file mode 100644 index d3294bfc8d..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/deep_copy_generated.go +++ /dev/null @@ -1,86 +0,0 @@ -// +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 v1beta1 - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1beta1_TokenReview, - DeepCopy_v1beta1_TokenReviewSpec, - DeepCopy_v1beta1_TokenReviewStatus, - DeepCopy_v1beta1_UserInfo, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1beta1_TokenReview(in TokenReview, out *TokenReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Spec = in.Spec - if err := DeepCopy_v1beta1_TokenReviewStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_TokenReviewSpec(in TokenReviewSpec, out *TokenReviewSpec, c *conversion.Cloner) error { - out.Token = in.Token - return nil -} - -func DeepCopy_v1beta1_TokenReviewStatus(in TokenReviewStatus, out *TokenReviewStatus, c *conversion.Cloner) error { - out.Authenticated = in.Authenticated - if err := DeepCopy_v1beta1_UserInfo(in.User, &out.User, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_UserInfo(in UserInfo, out *UserInfo, c *conversion.Cloner) error { - out.Username = in.Username - out.UID = in.UID - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Groups = nil - } - if in.Extra != nil { - in, out := in.Extra, &out.Extra - *out = make(map[string][]string) - for key, val := range in { - if newVal, err := c.DeepCopy(val); err != nil { - return err - } else { - (*out)[key] = newVal.([]string) - } - } - } else { - out.Extra = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/doc.go new file mode 100644 index 0000000000..7a8a65b77f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/doc.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. +*/ + +// +k8s:deepcopy-gen=package,register +// +groupName=authentication.k8s.io +package authentication diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/install/install.go similarity index 90% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/install/install.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/install/install.go index e021ea88f6..7ad9d3496e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/install/install.go @@ -28,13 +28,13 @@ import ( "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/apimachinery" "k8s.io/kubernetes/pkg/apimachinery/registered" - "k8s.io/kubernetes/pkg/apis/authentication.k8s.io" - "k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1" + "k8s.io/kubernetes/pkg/apis/authentication" + "k8s.io/kubernetes/pkg/apis/authentication/v1beta1" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/util/sets" ) -const importPrefix = "k8s.io/kubernetes/pkg/apis/authentication.k8s.io" +const importPrefix = "k8s.io/kubernetes/pkg/apis/authentication" var accessor = meta.NewAccessor() @@ -89,7 +89,10 @@ func enableVersions(externalVersions []unversioned.GroupVersion) error { func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - authentication.AddToScheme(api.Scheme) + if err := authentication.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -98,7 +101,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1beta1.SchemeGroupVersion: - v1beta1.AddToScheme(api.Scheme) + if err := v1beta1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/register.go similarity index 84% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/register.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/register.go index 57394fcbcc..dfe40b20c2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/register.go @@ -17,6 +17,7 @@ limitations under the License. package authentication import ( + "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/runtime" ) @@ -37,14 +38,18 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, + &api.ListOptions{}, + &api.DeleteOptions{}, + &api.ExportOptions{}, + &TokenReview{}, ) + return nil } - -func (obj *TokenReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/types.generated.go new file mode 100644 index 0000000000..ea0b8f0e32 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/types.generated.go @@ -0,0 +1,2394 @@ +/* +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 authentication + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg2_api "k8s.io/kubernetes/pkg/api" + pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" + pkg3_types "k8s.io/kubernetes/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 *TokenReview) 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 *TokenReview) 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 *TokenReview) 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 = TokenReviewSpec{} + } else { + yyv91 := &x.Spec + yyv91.CodecDecodeSelf(d) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = TokenReviewStatus{} + } else { + yyv92 := &x.Status + yyv92.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys66) + } // end switch yys66 + } // end for yyj66 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *TokenReview) 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 = TokenReviewSpec{} + } 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 = TokenReviewStatus{} + } 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 *TokenReviewSpec) 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 [1]bool + _, _, _ = yysep121, yyq121, yy2arr121 + const yyr121 bool = false + var yynn121 int + if yyr121 || yy2arr121 { + r.EncodeArrayStart(1) + } else { + yynn121 = 1 + for _, b := range yyq121 { + if b { + yynn121++ + } + } + r.EncodeMapStart(yynn121) + yynn121 = 0 + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym123 := z.EncBinary() + _ = yym123 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Token)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Token")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym124 := z.EncBinary() + _ = yym124 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Token)) + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym125 := z.DecBinary() + _ = yym125 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct126 := r.ContainerType() + if yyct126 == codecSelferValueTypeMap1234 { + yyl126 := r.ReadMapStart() + if yyl126 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl126, d) + } + } else if yyct126 == codecSelferValueTypeArray1234 { + yyl126 := r.ReadArrayStart() + if yyl126 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl126, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys127Slc = r.DecodeBytes(yys127Slc, true, true) + yys127 := string(yys127Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys127 { + case "Token": + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys127) + } // end switch yys127 + } // end for yyj127 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj129 int + var yyb129 bool + var yyhl129 bool = l >= 0 + yyj129++ + if yyhl129 { + yyb129 = yyj129 > l + } else { + yyb129 = r.CheckBreak() + } + if yyb129 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = string(r.DecodeString()) + } + for { + yyj129++ + if yyhl129 { + yyb129 = yyj129 > l + } else { + yyb129 = r.CheckBreak() + } + if yyb129 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj129-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym131 := z.EncBinary() + _ = yym131 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn132 = 3 + for _, b := range yyq132 { + if b { + yynn132++ + } + } + r.EncodeMapStart(yynn132) + yynn132 = 0 + } + if yyr132 || yy2arr132 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym134 := z.EncBinary() + _ = yym134 + if false { + } else { + r.EncodeBool(bool(x.Authenticated)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Authenticated")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym135 := z.EncBinary() + _ = yym135 + if false { + } else { + r.EncodeBool(bool(x.Authenticated)) + } + } + if yyr132 || yy2arr132 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy137 := &x.User + yy137.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("User")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy138 := &x.User + yy138.CodecEncodeSelf(e) + } + if yyr132 || yy2arr132 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym140 := z.EncBinary() + _ = yym140 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Error")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym141 := z.EncBinary() + _ = yym141 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } + if yyr132 || yy2arr132 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym142 := z.DecBinary() + _ = yym142 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct143 := r.ContainerType() + if yyct143 == codecSelferValueTypeMap1234 { + yyl143 := r.ReadMapStart() + if yyl143 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl143, d) + } + } else if yyct143 == codecSelferValueTypeArray1234 { + yyl143 := r.ReadArrayStart() + if yyl143 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl143, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys144Slc = r.DecodeBytes(yys144Slc, true, true) + yys144 := string(yys144Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys144 { + case "Authenticated": + if r.TryDecodeAsNil() { + x.Authenticated = false + } else { + x.Authenticated = bool(r.DecodeBool()) + } + case "User": + if r.TryDecodeAsNil() { + x.User = UserInfo{} + } else { + yyv146 := &x.User + yyv146.CodecDecodeSelf(d) + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys144) + } // end switch yys144 + } // end for yyj144 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj148 int + var yyb148 bool + var yyhl148 bool = l >= 0 + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Authenticated = false + } else { + x.Authenticated = bool(r.DecodeBool()) + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = UserInfo{} + } else { + yyv150 := &x.User + yyv150.CodecDecodeSelf(d) + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) + } + for { + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj148-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym152 := z.EncBinary() + _ = yym152 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn153 = 4 + for _, b := range yyq153 { + if b { + yynn153++ + } + } + r.EncodeMapStart(yynn153) + yynn153 = 0 + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym155 := z.EncBinary() + _ = yym155 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Username)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Username")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym156 := z.EncBinary() + _ = yym156 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Username)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym158 := z.EncBinary() + _ = yym158 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("UID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Groups == nil { + r.EncodeNil() + } else { + yym161 := z.EncBinary() + _ = yym161 + if false { + } else { + z.F.EncSliceStringV(x.Groups, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Groups")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Groups == nil { + r.EncodeNil() + } else { + yym162 := z.EncBinary() + _ = yym162 + if false { + } else { + z.F.EncSliceStringV(x.Groups, false, e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Extra == nil { + r.EncodeNil() + } else { + yym164 := z.EncBinary() + _ = yym164 + if false { + } else { + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Extra")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Extra == nil { + r.EncodeNil() + } else { + yym165 := z.EncBinary() + _ = yym165 + if false { + } else { + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym166 := z.DecBinary() + _ = yym166 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct167 := r.ContainerType() + if yyct167 == codecSelferValueTypeMap1234 { + yyl167 := r.ReadMapStart() + if yyl167 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl167, d) + } + } else if yyct167 == codecSelferValueTypeArray1234 { + yyl167 := r.ReadArrayStart() + if yyl167 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl167, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys168Slc = r.DecodeBytes(yys168Slc, true, true) + yys168 := string(yys168Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys168 { + case "Username": + if r.TryDecodeAsNil() { + x.Username = "" + } else { + x.Username = string(r.DecodeString()) + } + case "UID": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = string(r.DecodeString()) + } + case "Groups": + if r.TryDecodeAsNil() { + x.Groups = nil + } else { + yyv171 := &x.Groups + yym172 := z.DecBinary() + _ = yym172 + if false { + } else { + z.F.DecSliceStringX(yyv171, false, d) + } + } + case "Extra": + if r.TryDecodeAsNil() { + x.Extra = nil + } else { + yyv173 := &x.Extra + yym174 := z.DecBinary() + _ = yym174 + if false { + } else { + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv173), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys168) + } // end switch yys168 + } // end for yyj168 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj175 int + var yyb175 bool + var yyhl175 bool = l >= 0 + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l + } else { + yyb175 = r.CheckBreak() + } + if yyb175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Username = "" + } else { + x.Username = string(r.DecodeString()) + } + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l + } else { + yyb175 = r.CheckBreak() + } + if yyb175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = string(r.DecodeString()) + } + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l + } else { + yyb175 = r.CheckBreak() + } + if yyb175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Groups = nil + } else { + yyv178 := &x.Groups + yym179 := z.DecBinary() + _ = yym179 + if false { + } else { + z.F.DecSliceStringX(yyv178, false, d) + } + } + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l + } else { + yyb175 = r.CheckBreak() + } + if yyb175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Extra = nil + } else { + yyv180 := &x.Extra + yym181 := z.DecBinary() + _ = yym181 + if false { + } else { + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv180), d) + } + } + for { + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l + } else { + yyb175 = r.CheckBreak() + } + if yyb175 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj175-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym182 := z.EncBinary() + _ = yym182 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + h.encExtraValue((ExtraValue)(x), e) + } + } +} + +func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym183 := z.DecBinary() + _ = yym183 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decExtraValue((*ExtraValue)(x), d) + } +} + +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 _, yyv184 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy185 := &yyv184 + yy185.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 + + 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 yyl186 > 0 { + var yyrr186, yyrl186 int + var yyrt186 bool + if yyl186 > cap(yyv186) { + + 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 { + yyv186 = make([]pkg2_api.OwnerReference, yyrl186) + } + } else { + yyv186 = make([]pkg2_api.OwnerReference, yyrl186) + } + yyc186 = true + yyrr186 = len(yyv186) + if yyrg186 { + copy(yyv186, yyv2186) + } + } else if yyl186 != len(yyv186) { + yyv186 = yyv186[:yyl186] + yyc186 = true + } + yyj186 := 0 + for ; yyj186 < yyrr186; yyj186++ { + yyh186.ElemContainerState(yyj186) + if r.TryDecodeAsNil() { + yyv186[yyj186] = pkg2_api.OwnerReference{} + } else { + yyv187 := &yyv186[yyj186] + yyv187.CodecDecodeSelf(d) + } + + } + if yyrt186 { + for ; yyj186 < yyl186; yyj186++ { + yyv186 = append(yyv186, pkg2_api.OwnerReference{}) + yyh186.ElemContainerState(yyj186) + if r.TryDecodeAsNil() { + yyv186[yyj186] = pkg2_api.OwnerReference{} + } else { + yyv188 := &yyv186[yyj186] + yyv188.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj186 := 0 + for ; !r.CheckBreak(); yyj186++ { + + if yyj186 >= len(yyv186) { + yyv186 = append(yyv186, pkg2_api.OwnerReference{}) // var yyz186 pkg2_api.OwnerReference + yyc186 = true + } + yyh186.ElemContainerState(yyj186) + if yyj186 < len(yyv186) { + if r.TryDecodeAsNil() { + yyv186[yyj186] = pkg2_api.OwnerReference{} + } else { + yyv189 := &yyv186[yyj186] + yyv189.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj186 < len(yyv186) { + yyv186 = yyv186[:yyj186] + yyc186 = true + } else if yyj186 == 0 && yyv186 == nil { + yyv186 = []pkg2_api.OwnerReference{} + yyc186 = true + } + } + yyh186.End() + if yyc186 { + *v = yyv186 + } +} + +func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk190, yyv190 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym191 := z.EncBinary() + _ = yym191 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk190)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyv190 == nil { + r.EncodeNil() + } else { + yyv190.CodecEncodeSelf(e) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + 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 yymk192 string + var yymv192 ExtraValue + var yymg192 bool + if yybh192.MapValueReset { + yymg192 = true + } + if yyl192 > 0 { + for yyj192 := 0; yyj192 < yyl192; yyj192++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk192 = "" + } else { + yymk192 = string(r.DecodeString()) + } + + if yymg192 { + yymv192 = yyv192[yymk192] + } else { + yymv192 = nil + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv192 = nil + } else { + yyv194 := &yymv192 + yyv194.CodecDecodeSelf(d) + } + + if yyv192 != nil { + yyv192[yymk192] = yymv192 + } + } + } else if yyl192 < 0 { + for yyj192 := 0; !r.CheckBreak(); yyj192++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk192 = "" + } else { + yymk192 = string(r.DecodeString()) + } + + if yymg192 { + yymv192 = yyv192[yymk192] + } else { + yymv192 = nil + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv192 = nil + } else { + yyv196 := &yymv192 + yyv196.CodecDecodeSelf(d) + } + + if yyv192 != nil { + yyv192[yymk192] = yymv192 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv197 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym198 := z.EncBinary() + _ = yym198 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyv197)) + } + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + 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 yyl199 > 0 { + var yyrr199, yyrl199 int + var yyrt199 bool + if yyl199 > cap(yyv199) { + + yyrl199, yyrt199 = z.DecInferLen(yyl199, z.DecBasicHandle().MaxInitLen, 16) + if yyrt199 { + if yyrl199 <= cap(yyv199) { + yyv199 = yyv199[:yyrl199] + } else { + yyv199 = make([]string, yyrl199) + } + } else { + yyv199 = make([]string, yyrl199) + } + yyc199 = true + yyrr199 = len(yyv199) + } else if yyl199 != len(yyv199) { + yyv199 = yyv199[:yyl199] + yyc199 = true + } + yyj199 := 0 + for ; yyj199 < yyrr199; yyj199++ { + yyh199.ElemContainerState(yyj199) + if r.TryDecodeAsNil() { + yyv199[yyj199] = "" + } else { + yyv199[yyj199] = string(r.DecodeString()) + } + + } + if yyrt199 { + for ; yyj199 < yyl199; yyj199++ { + yyv199 = append(yyv199, "") + yyh199.ElemContainerState(yyj199) + if r.TryDecodeAsNil() { + yyv199[yyj199] = "" + } else { + yyv199[yyj199] = string(r.DecodeString()) + } + + } + } + + } else { + yyj199 := 0 + for ; !r.CheckBreak(); yyj199++ { + + if yyj199 >= len(yyv199) { + yyv199 = append(yyv199, "") // var yyz199 string + yyc199 = true + } + yyh199.ElemContainerState(yyj199) + if yyj199 < len(yyv199) { + if r.TryDecodeAsNil() { + yyv199[yyj199] = "" + } else { + yyv199[yyj199] = string(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj199 < len(yyv199) { + yyv199 = yyv199[:yyj199] + yyc199 = true + } else if yyj199 == 0 && yyv199 == nil { + yyv199 = []string{} + yyc199 = true + } + } + yyh199.End() + if yyc199 { + *v = yyv199 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/types.go similarity index 61% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/types.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/types.go index 20eac2bf75..480e8af012 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/types.go @@ -17,12 +17,35 @@ limitations under the License. package authentication import ( + "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/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 multipled 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 multipled 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 + // TokenReview attempts to authenticate a token to a known user. type TokenReview struct { unversioned.TypeMeta + // ObjectMeta fulfills the meta.ObjectMetaAccessor interface so that the stock + // REST handler paths work + api.ObjectMeta // Spec holds information about the request being evaluated Spec TokenReviewSpec @@ -38,11 +61,14 @@ type TokenReviewSpec struct { } // TokenReviewStatus is the result of the token authentication request. +// This type mirrors the authentication.Token interface type TokenReviewStatus struct { // Authenticated indicates that the token was associated with a known user. Authenticated bool // User is the UserInfo associated with the provided token. User UserInfo + // Error indicates that the token couldn't be checked + Error string } // UserInfo holds the information about the user needed to implement the @@ -57,5 +83,8 @@ type UserInfo struct { // The names of groups this user is a part of. Groups []string // Any additional information provided by the authenticator. - Extra map[string][]string + Extra map[string]ExtraValue } + +// ExtraValue masks the value so protobuf can generate +type ExtraValue []string diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/conversion.go similarity index 77% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/conversion.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/conversion.go index e360ee8a20..a0b7051c97 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/conversion.go @@ -20,11 +20,7 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addConversionFuncs(scheme *runtime.Scheme) { +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions - err := scheme.AddConversionFuncs() - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + return scheme.AddConversionFuncs() } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/defaults.go similarity index 87% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/defaults.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/defaults.go index 83794ff7b1..bcd5e07d9c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/defaults.go @@ -20,6 +20,6 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs() +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs() } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/doc.go similarity index 95% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/doc.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/doc.go index 25b76fd347..32e5b55263 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/doc.go @@ -15,6 +15,6 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/authentication.k8s.io - +// +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/authentication +// +groupName=authentication.k8s.io package v1beta1 diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.pb.go new file mode 100644 index 0000000000..cf235efccc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.pb.go @@ -0,0 +1,1280 @@ +/* +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/authentication/v1beta1/generated.proto +// DO NOT EDIT! + +/* + Package v1beta1 is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.proto + + It has these top-level messages: + ExtraValue + TokenReview + TokenReviewSpec + TokenReviewStatus + UserInfo +*/ +package v1beta1 + +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 *ExtraValue) Reset() { *m = ExtraValue{} } +func (*ExtraValue) ProtoMessage() {} +func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *TokenReview) Reset() { *m = TokenReview{} } +func (*TokenReview) ProtoMessage() {} +func (*TokenReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} } +func (*TokenReviewSpec) ProtoMessage() {} +func (*TokenReviewSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} } +func (*TokenReviewStatus) ProtoMessage() {} +func (*TokenReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *UserInfo) Reset() { *m = UserInfo{} } +func (*UserInfo) ProtoMessage() {} +func (*UserInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func init() { + proto.RegisterType((*ExtraValue)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.ExtraValue") + proto.RegisterType((*TokenReview)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.TokenReview") + proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.TokenReviewSpec") + proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.TokenReviewStatus") + proto.RegisterType((*UserInfo)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.UserInfo") +} +func (m ExtraValue) 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 ExtraValue) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m) > 0 { + for _, s := range m { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *TokenReview) 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 *TokenReview) 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 *TokenReviewSpec) 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 *TokenReviewSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Token))) + i += copy(data[i:], m.Token) + return i, nil +} + +func (m *TokenReviewStatus) 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 *TokenReviewStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + if m.Authenticated { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.User.Size())) + n4, err := m.User.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Error))) + i += copy(data[i:], m.Error) + return i, nil +} + +func (m *UserInfo) 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 *UserInfo) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Username))) + i += copy(data[i:], m.Username) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.UID))) + i += copy(data[i:], m.UID) + if len(m.Groups) > 0 { + for _, s := range m.Groups { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.Extra) > 0 { + for k := range m.Extra { + data[i] = 0x22 + i++ + v := m.Extra[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n5, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + } + 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 ExtraValue) Size() (n int) { + var l int + _ = l + if len(m) > 0 { + for _, s := range m { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *TokenReview) 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 *TokenReviewSpec) Size() (n int) { + var l int + _ = l + l = len(m.Token) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *TokenReviewStatus) Size() (n int) { + var l int + _ = l + n += 2 + l = m.User.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Error) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *UserInfo) Size() (n int) { + var l int + _ = l + l = len(m.Username) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.UID) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Groups) > 0 { + for _, s := range m.Groups { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Extra) > 0 { + for k, v := range m.Extra { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + 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 *TokenReview) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TokenReview{`, + `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(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TokenReviewSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TokenReviewSpec{`, + `Token:` + fmt.Sprintf("%v", this.Token) + `,`, + `}`, + }, "") + return s +} +func (this *TokenReviewStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TokenReviewStatus{`, + `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`, + `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, + `Error:` + fmt.Sprintf("%v", this.Error) + `,`, + `}`, + }, "") + return s +} +func (this *UserInfo) String() string { + if this == nil { + return "nil" + } + keysForExtra := make([]string, 0, len(this.Extra)) + for k := range this.Extra { + keysForExtra = append(keysForExtra, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) + mapStringForExtra := "map[string]ExtraValue{" + for _, k := range keysForExtra { + mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) + } + mapStringForExtra += "}" + s := strings.Join([]string{`&UserInfo{`, + `Username:` + fmt.Sprintf("%v", this.Username) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, + `Extra:` + mapStringForExtra + `,`, + `}`, + }, "") + 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 *ExtraValue) 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: ExtraValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", 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 = append(*m, 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 *TokenReview) 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: TokenReview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenReview: 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 *TokenReviewSpec) 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: TokenReviewSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", 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.Token = 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 *TokenReviewStatus) 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: TokenReviewStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", 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.Authenticated = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", 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.User.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", 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.Error = 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 *UserInfo) 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: UserInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", 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.Username = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", 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.UID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Groups", 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.Groups = append(m.Groups, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Extra", 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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &ExtraValue{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Extra == nil { + m.Extra = make(map[string]ExtraValue) + } + m.Extra[mapkey] = *mapvalue + 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{ + // 632 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x53, 0x4f, 0x4f, 0x13, 0x41, + 0x14, 0xef, 0x5f, 0x6c, 0xa7, 0xa2, 0x38, 0x89, 0x49, 0xd3, 0x44, 0x4a, 0xd6, 0x0b, 0x26, 0x30, + 0x9b, 0x92, 0xa8, 0x04, 0xe2, 0x81, 0x0d, 0x68, 0x38, 0x18, 0x93, 0x41, 0x8c, 0x31, 0xf1, 0xb0, + 0xed, 0x3e, 0x96, 0x75, 0xdb, 0x9d, 0x66, 0x76, 0xa6, 0xc8, 0x8d, 0x8f, 0xe0, 0xd1, 0xa3, 0xdf, + 0xc3, 0x2f, 0xd0, 0x23, 0x07, 0x0f, 0x1e, 0x0c, 0x11, 0xfc, 0x22, 0xce, 0xcc, 0x8e, 0xb4, 0xb4, + 0xf4, 0x20, 0x1c, 0x26, 0xd9, 0xf9, 0xcd, 0xfb, 0xfd, 0xde, 0xef, 0xbd, 0xb7, 0x0f, 0x6d, 0xc5, + 0xeb, 0x29, 0x89, 0x98, 0x1b, 0xcb, 0x36, 0xf0, 0x04, 0x04, 0xa4, 0x6e, 0x3f, 0x0e, 0x5d, 0xbf, + 0x1f, 0xa5, 0xae, 0x2f, 0xc5, 0x21, 0x24, 0x22, 0xea, 0xf8, 0x22, 0x62, 0x89, 0x3b, 0x68, 0xb5, + 0x41, 0xf8, 0x2d, 0x37, 0x84, 0x04, 0xb8, 0x2f, 0x20, 0x20, 0x7d, 0xce, 0x04, 0xc3, 0xad, 0x4c, + 0x82, 0x8c, 0x24, 0x88, 0x92, 0x20, 0x5a, 0x82, 0x5c, 0x95, 0x20, 0x56, 0xa2, 0xb1, 0x1a, 0x46, + 0xe2, 0x50, 0xb6, 0x49, 0x87, 0xf5, 0xdc, 0x90, 0x85, 0xcc, 0x35, 0x4a, 0x6d, 0x79, 0x60, 0x6e, + 0xe6, 0x62, 0xbe, 0xb2, 0x0c, 0x8d, 0xb5, 0x99, 0x26, 0x5d, 0x0e, 0x29, 0x93, 0xbc, 0x03, 0x93, + 0xae, 0x1a, 0x4f, 0x67, 0x73, 0x64, 0x32, 0x00, 0x9e, 0x2a, 0x3f, 0x10, 0x4c, 0xd1, 0x56, 0x66, + 0xd3, 0x06, 0x53, 0xa5, 0x37, 0x56, 0xaf, 0x8f, 0xe6, 0x52, 0x95, 0xdc, 0x9b, 0xf6, 0xd4, 0xba, + 0x3e, 0x5c, 0x8a, 0xa8, 0xeb, 0x46, 0x89, 0x48, 0x05, 0x9f, 0xa4, 0x38, 0xcf, 0x11, 0xda, 0xf9, + 0x2c, 0xb8, 0xff, 0xce, 0xef, 0x4a, 0xc0, 0x4d, 0x54, 0x8e, 0x04, 0xf4, 0xd2, 0x7a, 0x7e, 0xa9, + 0xb8, 0x5c, 0xf5, 0xaa, 0x17, 0x67, 0xcd, 0xf2, 0xae, 0x06, 0x68, 0x86, 0x6f, 0x54, 0xbe, 0x7e, + 0x6b, 0xe6, 0x4e, 0x7e, 0x2d, 0xe5, 0x9c, 0xef, 0x05, 0x54, 0x7b, 0xcb, 0x62, 0x48, 0x28, 0x0c, + 0x22, 0x38, 0xc2, 0xef, 0x51, 0xa5, 0xa7, 0x7a, 0x1f, 0xf8, 0xc2, 0x57, 0xec, 0xfc, 0x72, 0x6d, + 0x6d, 0x99, 0xcc, 0x1c, 0x9c, 0x1a, 0x14, 0x79, 0xd3, 0xfe, 0x04, 0x1d, 0xf1, 0x5a, 0x71, 0x3c, + 0x3c, 0x3c, 0x6b, 0xe6, 0x54, 0x2e, 0x34, 0xc2, 0xe8, 0xa5, 0x1a, 0x0e, 0x50, 0x29, 0xed, 0x43, + 0xa7, 0x5e, 0x30, 0xaa, 0x1e, 0xf9, 0xef, 0xdf, 0x81, 0x8c, 0xf9, 0xdc, 0x53, 0x4a, 0xde, 0x5d, + 0x9b, 0xaf, 0xa4, 0x6f, 0xd4, 0xa8, 0xe3, 0x2e, 0x9a, 0x4b, 0x85, 0x2f, 0x64, 0x5a, 0x2f, 0x9a, + 0x3c, 0xdb, 0xb7, 0xcc, 0x63, 0xb4, 0xbc, 0x7b, 0x36, 0xd3, 0x5c, 0x76, 0xa7, 0x36, 0x87, 0xf3, + 0x0c, 0xdd, 0x9f, 0x30, 0x85, 0x1f, 0xa3, 0xb2, 0xd0, 0x90, 0xe9, 0x5e, 0xd5, 0x9b, 0xb7, 0xcc, + 0x72, 0x16, 0x97, 0xbd, 0x39, 0x3f, 0xf2, 0xe8, 0xc1, 0x54, 0x16, 0xbc, 0x89, 0xe6, 0xc7, 0x1c, + 0x41, 0x60, 0x24, 0x2a, 0xde, 0x43, 0x2b, 0x31, 0xbf, 0x35, 0xfe, 0x48, 0xaf, 0xc6, 0xe2, 0x8f, + 0xa8, 0x24, 0x53, 0xe0, 0xb6, 0xbd, 0x9b, 0x37, 0x28, 0x7b, 0x5f, 0xd1, 0x77, 0x93, 0x03, 0x36, + 0xea, 0xab, 0x46, 0xa8, 0x91, 0xd5, 0x65, 0x01, 0xe7, 0x8c, 0x9b, 0xb6, 0x8e, 0x95, 0xb5, 0xa3, + 0x41, 0x9a, 0xbd, 0x39, 0xe7, 0x05, 0x54, 0xf9, 0xa7, 0x82, 0x57, 0x50, 0x45, 0x33, 0x13, 0xbf, + 0x07, 0xb6, 0x17, 0x0b, 0x96, 0x64, 0x62, 0x34, 0x4e, 0x2f, 0x23, 0xf0, 0x23, 0x54, 0x94, 0x51, + 0x60, 0xdc, 0x57, 0xbd, 0x9a, 0x0d, 0x2c, 0xee, 0xef, 0x6e, 0x53, 0x8d, 0x63, 0x07, 0xcd, 0x85, + 0x9c, 0xc9, 0xbe, 0x1e, 0xab, 0xfe, 0xa5, 0x91, 0x1e, 0xc6, 0x2b, 0x83, 0x50, 0xfb, 0x82, 0x63, + 0x65, 0x51, 0xef, 0x40, 0xbd, 0xa4, 0x42, 0x6a, 0x6b, 0x2f, 0x6f, 0xd1, 0x02, 0x62, 0x96, 0x69, + 0x27, 0x11, 0xfc, 0x78, 0xac, 0x54, 0x8d, 0xd1, 0x2c, 0x47, 0xe3, 0xc8, 0x2e, 0x9c, 0x89, 0xc1, + 0x0b, 0xa8, 0x18, 0xc3, 0x71, 0x56, 0x26, 0xd5, 0x9f, 0x78, 0x0f, 0x95, 0x07, 0x7a, 0x17, 0xed, + 0x3c, 0x5e, 0xdc, 0xc0, 0xcc, 0x68, 0xa1, 0x69, 0xa6, 0xb5, 0x51, 0x58, 0xcf, 0x7b, 0x4f, 0x86, + 0xe7, 0x8b, 0xb9, 0x53, 0x75, 0x7e, 0xaa, 0x73, 0x72, 0xb1, 0x98, 0x1f, 0xaa, 0x73, 0xaa, 0xce, + 0x6f, 0x75, 0xbe, 0xfc, 0x59, 0xcc, 0x7d, 0xb8, 0x63, 0x05, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, + 0xca, 0xd0, 0x35, 0x8c, 0xb5, 0x05, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.proto new file mode 100644 index 0000000000..ac148e207d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/generated.proto @@ -0,0 +1,90 @@ +/* +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.authentication.v1beta1; + +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 = "v1beta1"; + +// ExtraValue masks the value so protobuf can generate +// +protobuf.nullable=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +message ExtraValue { + // items, if empty, will result in an empty slice + + repeated string items = 1; +} + +// TokenReview attempts to authenticate a token to a known user. +// Note: TokenReview requests may be cached by the webhook token authenticator +// plugin in the kube-apiserver. +message TokenReview { + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // Spec holds information about the request being evaluated + optional TokenReviewSpec spec = 2; + + // Status is filled in by the server and indicates whether the request can be authenticated. + optional TokenReviewStatus status = 3; +} + +// TokenReviewSpec is a description of the token authentication request. +message TokenReviewSpec { + // Token is the opaque bearer token. + optional string token = 1; +} + +// TokenReviewStatus is the result of the token authentication request. +message TokenReviewStatus { + // Authenticated indicates that the token was associated with a known user. + optional bool authenticated = 1; + + // User is the UserInfo associated with the provided token. + optional UserInfo user = 2; + + // Error indicates that the token couldn't be checked + optional string error = 3; +} + +// UserInfo holds the information about the user needed to implement the +// user.Info interface. +message UserInfo { + // The name that uniquely identifies this user among all active users. + optional string username = 1; + + // A unique value that identifies this user across time. If this user is + // deleted and another user by the same name is added, they will have + // different UIDs. + optional string uid = 2; + + // The names of groups this user is a part of. + repeated string groups = 3; + + // Any additional information provided by the authenticator. + map extra = 4; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/register.go similarity index 77% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/register.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/register.go index 511793653a..53488da1fa 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/register.go @@ -18,6 +18,7 @@ package v1beta1 import ( "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/runtime" ) @@ -27,18 +28,19 @@ const GroupName = "authentication.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"} -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, + &v1.ListOptions{}, + &v1.DeleteOptions{}, + &v1.ExportOptions{}, + &TokenReview{}, ) + return nil } - -func (obj *TokenReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types.generated.go similarity index 58% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/types.generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types.generated.go index 60eeab9eb2..83982830b5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types.generated.go @@ -26,8 +26,11 @@ import ( "fmt" codec1978 "github.com/ugorji/go/codec" pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" + pkg2_v1 "k8s.io/kubernetes/pkg/api/v1" + pkg3_types "k8s.io/kubernetes/pkg/types" "reflect" "runtime" + time "time" ) const ( @@ -61,7 +64,10 @@ func init() { } if false { // reference the types, but skip this branch at build/run time var v0 pkg1_unversioned.TypeMeta - _ = v0 + var v1 pkg2_v1.ObjectMeta + var v2 pkg3_types.UID + var v3 time.Time + _, _, _, _ = v0, v1, v2, v3 } } @@ -79,15 +85,16 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool + var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" + yyq2[2] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(5) } else { yynn2 = 1 for _, b := range yyq2 { @@ -100,37 +107,9 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -139,12 +118,12 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym5 := z.EncBinary() + _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -153,9 +132,9 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -164,18 +143,63 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + 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 { @@ -189,25 +213,25 @@ func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -219,12 +243,12 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -233,24 +257,10 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "spec": - if r.TryDecodeAsNil() { - x.Spec = TokenReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = TokenReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys20 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -263,10 +273,31 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } 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 = TokenReviewSpec{} + } else { + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = TokenReviewStatus{} + } else { + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -274,87 +305,104 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = TokenReviewSpec{} + x.Kind = "" } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = TokenReviewStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = TokenReviewSpec{} } else { - x.APIVersion = string(r.DecodeString()) + 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 = TokenReviewStatus{} + } else { + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -366,35 +414,35 @@ func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Token != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [1]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Token != "" + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn33 = 0 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Token)) @@ -403,19 +451,19 @@ func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("token")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Token)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -428,25 +476,25 @@ func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym37 := z.DecBinary() + _ = yym37 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct38 := r.ContainerType() + if yyct38 == codecSelferValueTypeMap1234 { + yyl38 := r.ReadMapStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl38, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct38 == codecSelferValueTypeArray1234 { + yyl38 := r.ReadArrayStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl38, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -458,12 +506,12 @@ func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys39Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys39Slc + var yyhl39 bool = l >= 0 + for yyj39 := 0; ; yyj39++ { + if yyhl39 { + if yyj39 >= l { break } } else { @@ -472,10 +520,10 @@ func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys39Slc = r.DecodeBytes(yys39Slc, true, true) + yys39 := string(yys39Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys39 { case "token": if r.TryDecodeAsNil() { x.Token = "" @@ -483,9 +531,9 @@ func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Token = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys39) + } // end switch yys39 + } // end for yyj39 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -493,16 +541,16 @@ func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj41 int + var yyb41 bool + var yyhl41 bool = l >= 0 + yyj41++ + if yyhl41 { + yyb41 = yyj41 > l } else { - yyb5 = r.CheckBreak() + yyb41 = r.CheckBreak() } - if yyb5 { + if yyb41 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -513,17 +561,17 @@ func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Token = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj41++ + if yyhl41 { + yyb41 = yyj41 > l } else { - yyb5 = r.CheckBreak() + yyb41 = r.CheckBreak() } - if yyb5 { + if yyb41 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj41-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -535,36 +583,37 @@ func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym43 := z.EncBinary() + _ = yym43 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Authenticated != false - yyq2[1] = true - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) + yysep44 := !z.EncBinary() + yy2arr44 := z.EncBasicHandle().StructToArray + var yyq44 [3]bool + _, _, _ = yysep44, yyq44, yy2arr44 + const yyr44 bool = false + yyq44[0] = x.Authenticated != false + yyq44[1] = true + yyq44[2] = x.Error != "" + var yynn44 int + if yyr44 || yy2arr44 { + r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn44 = 0 + for _, b := range yyq44 { if b { - yynn2++ + yynn44++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn44) + yynn44 = 0 } - if yyr2 || yy2arr2 { + if yyr44 || yy2arr44 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq44[0] { + yym46 := z.EncBinary() + _ = yym46 if false { } else { r.EncodeBool(bool(x.Authenticated)) @@ -573,36 +622,61 @@ func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[0] { + if yyq44[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("authenticated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym47 := z.EncBinary() + _ = yym47 if false { } else { r.EncodeBool(bool(x.Authenticated)) } } } - if yyr2 || yy2arr2 { + if yyr44 || yy2arr44 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy7 := &x.User - yy7.CodecEncodeSelf(e) + if yyq44[1] { + yy49 := &x.User + yy49.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq44[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.User - yy9.CodecEncodeSelf(e) + yy50 := &x.User + yy50.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr44 || yy2arr44 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq44[2] { + yym52 := z.EncBinary() + _ = yym52 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq44[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("error")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym53 := z.EncBinary() + _ = yym53 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } + } + if yyr44 || yy2arr44 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -615,25 +689,25 @@ func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym54 := z.DecBinary() + _ = yym54 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct55 := r.ContainerType() + if yyct55 == codecSelferValueTypeMap1234 { + yyl55 := r.ReadMapStart() + if yyl55 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl55, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct55 == codecSelferValueTypeArray1234 { + yyl55 := r.ReadArrayStart() + if yyl55 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl55, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -645,12 +719,12 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys56Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys56Slc + var yyhl56 bool = l >= 0 + for yyj56 := 0; ; yyj56++ { + if yyhl56 { + if yyj56 >= l { break } } else { @@ -659,10 +733,10 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys56Slc = r.DecodeBytes(yys56Slc, true, true) + yys56 := string(yys56Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys56 { case "authenticated": if r.TryDecodeAsNil() { x.Authenticated = false @@ -673,13 +747,19 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.User = UserInfo{} } else { - yyv5 := &x.User - yyv5.CodecDecodeSelf(d) + yyv58 := &x.User + yyv58.CodecDecodeSelf(d) + } + case "error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys56) + } // end switch yys56 + } // end for yyj56 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -687,16 +767,16 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj60 int + var yyb60 bool + var yyhl60 bool = l >= 0 + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb6 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb6 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -706,13 +786,13 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Authenticated = bool(r.DecodeBool()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb6 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb6 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -720,21 +800,37 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.User = UserInfo{} } else { - yyv8 := &x.User - yyv8.CodecDecodeSelf(d) + yyv62 := &x.User + yyv62.CodecDecodeSelf(d) + } + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l + } else { + yyb60 = r.CheckBreak() + } + if yyb60 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb6 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb6 { + if yyb60 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj60-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -746,38 +842,38 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym64 := z.EncBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Username != "" - yyq2[1] = x.UID != "" - yyq2[2] = len(x.Groups) != 0 - yyq2[3] = len(x.Extra) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep65 := !z.EncBinary() + yy2arr65 := z.EncBasicHandle().StructToArray + var yyq65 [4]bool + _, _, _ = yysep65, yyq65, yy2arr65 + const yyr65 bool = false + yyq65[0] = x.Username != "" + yyq65[1] = x.UID != "" + yyq65[2] = len(x.Groups) != 0 + yyq65[3] = len(x.Extra) != 0 + var yynn65 int + if yyr65 || yy2arr65 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn65 = 0 + for _, b := range yyq65 { if b { - yynn2++ + yynn65++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn65) + yynn65 = 0 } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq65[0] { + yym67 := z.EncBinary() + _ = yym67 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) @@ -786,23 +882,23 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq65[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("username")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq65[1] { + yym70 := z.EncBinary() + _ = yym70 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) @@ -811,26 +907,26 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq65[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym71 := z.EncBinary() + _ = yym71 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq65[2] { if x.Groups == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym73 := z.EncBinary() + _ = yym73 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -840,15 +936,15 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq65[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("groups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Groups == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym74 := z.EncBinary() + _ = yym74 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -856,40 +952,40 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq65[3] { if x.Extra == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym76 := z.EncBinary() + _ = yym76 if false { } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq65[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("extra")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Extra == nil { r.EncodeNil() } else { - yym14 := z.EncBinary() - _ = yym14 + yym77 := z.EncBinary() + _ = yym77 if false { } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -902,25 +998,25 @@ func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym78 := z.DecBinary() + _ = yym78 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct79 := r.ContainerType() + if yyct79 == codecSelferValueTypeMap1234 { + yyl79 := r.ReadMapStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl79, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct79 == codecSelferValueTypeArray1234 { + yyl79 := r.ReadArrayStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl79, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -932,12 +1028,12 @@ func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys80Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys80Slc + var yyhl80 bool = l >= 0 + for yyj80 := 0; ; yyj80++ { + if yyhl80 { + if yyj80 >= l { break } } else { @@ -946,10 +1042,10 @@ func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys80Slc = r.DecodeBytes(yys80Slc, true, true) + yys80 := string(yys80Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys80 { case "username": if r.TryDecodeAsNil() { x.Username = "" @@ -966,30 +1062,30 @@ func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv6 := &x.Groups - yym7 := z.DecBinary() - _ = yym7 + yyv83 := &x.Groups + yym84 := z.DecBinary() + _ = yym84 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv83, false, d) } } case "extra": if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv8 := &x.Extra - yym9 := z.DecBinary() - _ = yym9 + yyv85 := &x.Extra + yym86 := z.DecBinary() + _ = yym86 if false { } else { - h.decMapstringSlicestring((*map[string][]string)(yyv8), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv85), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys80) + } // end switch yys80 + } // end for yyj80 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -997,16 +1093,16 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj87 int + var yyb87 bool + var yyhl87 bool = l >= 0 + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb10 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb10 { + if yyb87 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1016,13 +1112,13 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Username = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb10 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb10 { + if yyb87 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1032,13 +1128,13 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb10 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb10 { + if yyb87 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1046,21 +1142,21 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv13 := &x.Groups - yym14 := z.DecBinary() - _ = yym14 + yyv90 := &x.Groups + yym91 := z.DecBinary() + _ = yym91 if false { } else { - z.F.DecSliceStringX(yyv13, false, d) + z.F.DecSliceStringX(yyv90, false, d) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb10 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb10 { + if yyb87 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1068,237 +1164,249 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv15 := &x.Extra - yym16 := z.DecBinary() - _ = yym16 + yyv92 := &x.Extra + yym93 := z.DecBinary() + _ = yym93 if false { } else { - h.decMapstringSlicestring((*map[string][]string)(yyv15), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv92), d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj87++ + if yyhl87 { + yyb87 = yyj87 > l } else { - yyb10 = r.CheckBreak() + yyb87 = r.CheckBreak() } - if yyb10 { + if yyb87 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj87-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { +func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym94 := z.EncBinary() + _ = yym94 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + h.encExtraValue((ExtraValue)(x), e) + } + } +} + +func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym95 := z.DecBinary() + _ = yym95 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decExtraValue((*ExtraValue)(x), d) + } +} + +func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { + for yyk96, yyv96 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym2 := z.EncBinary() - _ = yym2 + yym97 := z.EncBinary() + _ = yym97 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1)) + r.EncodeString(codecSelferC_UTF81234, string(yyk96)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv1 == nil { + if yyv96 == nil { r.EncodeNil() } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - z.F.EncSliceStringV(yyv1, false, e) - } + yyv96.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { +func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) - yyv1 = make(map[string][]string, yyrl1) - *v = yyv1 + yyv98 := *v + yyl98 := r.ReadMapStart() + yybh98 := z.DecBasicHandle() + if yyv98 == nil { + yyrl98, _ := z.DecInferLen(yyl98, yybh98.MaxInitLen, 40) + yyv98 = make(map[string]ExtraValue, yyrl98) + *v = yyv98 } - var yymk1 string - var yymv1 []string - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true + var yymk98 string + var yymv98 ExtraValue + var yymg98 bool + if yybh98.MapValueReset { + yymg98 = true } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + if yyl98 > 0 { + for yyj98 := 0; yyj98 < yyl98; yyj98++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk98 = "" } else { - yymk1 = string(r.DecodeString()) + yymk98 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg98 { + yymv98 = yyv98[yymk98] } else { - yymv1 = nil + yymv98 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv98 = nil } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 - if false { - } else { - z.F.DecSliceStringX(yyv3, false, d) - } + yyv100 := &yymv98 + yyv100.CodecDecodeSelf(d) } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv98 != nil { + yyv98[yymk98] = yymv98 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl98 < 0 { + for yyj98 := 0; !r.CheckBreak(); yyj98++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk98 = "" } else { - yymk1 = string(r.DecodeString()) + yymk98 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg98 { + yymv98 = yyv98[yymk98] } else { - yymv1 = nil + yymv98 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv98 = nil } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } + yyv102 := &yymv98 + yyv102.CodecDecodeSelf(d) } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv98 != nil { + yyv98[yymk98] = yymv98 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) encSlicestring(v []string, e *codec1978.Encoder) { +func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv103 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2 := z.EncBinary() - _ = yym2 + yym104 := z.EncBinary() + _ = yym104 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1)) + r.EncodeString(codecSelferC_UTF81234, string(yyv103)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { +func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []string{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv105 := *v + yyh105, yyl105 := z.DecSliceHelperStart() + var yyc105 bool + if yyl105 == 0 { + if yyv105 == nil { + yyv105 = []string{} + yyc105 = true + } else if len(yyv105) != 0 { + yyv105 = yyv105[:0] + yyc105 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl105 > 0 { + var yyrr105, yyrl105 int + var yyrt105 bool + if yyl105 > cap(yyv105) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl105, yyrt105 = z.DecInferLen(yyl105, z.DecBasicHandle().MaxInitLen, 16) + if yyrt105 { + if yyrl105 <= cap(yyv105) { + yyv105 = yyv105[:yyrl105] } else { - yyv1 = make([]string, yyrl1) + yyv105 = make([]string, yyrl105) } } else { - yyv1 = make([]string, yyrl1) + yyv105 = make([]string, yyrl105) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc105 = true + yyrr105 = len(yyv105) + } else if yyl105 != len(yyv105) { + yyv105 = yyv105[:yyl105] + yyc105 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj105 := 0 + for ; yyj105 < yyrr105; yyj105++ { + yyh105.ElemContainerState(yyj105) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv105[yyj105] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv105[yyj105] = string(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt105 { + for ; yyj105 < yyl105; yyj105++ { + yyv105 = append(yyv105, "") + yyh105.ElemContainerState(yyj105) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv105[yyj105] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv105[yyj105] = string(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj105 := 0 + for ; !r.CheckBreak(); yyj105++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 string - yyc1 = true + if yyj105 >= len(yyv105) { + yyv105 = append(yyv105, "") // var yyz105 string + yyc105 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh105.ElemContainerState(yyj105) + if yyj105 < len(yyv105) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv105[yyj105] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv105[yyj105] = string(r.DecodeString()) } } else { @@ -1306,16 +1414,16 @@ func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []string{} - yyc1 = true + if yyj105 < len(yyv105) { + yyv105 = yyv105[:yyj105] + yyc105 = true + } else if yyj105 == 0 && yyv105 == nil { + yyv105 = []string{} + yyc105 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh105.End() + if yyc105 { + *v = yyv105 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types.go similarity index 59% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/types.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types.go index ee3220672b..fadd637abf 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/v1beta1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types.go @@ -17,47 +17,66 @@ limitations under the License. package v1beta1 import ( + "fmt" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/api/v1" ) +// +genclient=true +// +nonNamespaced=true +// +noMethods=true + // TokenReview attempts to authenticate a token to a known user. // Note: TokenReview requests may be cached by the webhook token authenticator // plugin in the kube-apiserver. type TokenReview struct { unversioned.TypeMeta `json:",inline"` + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated - Spec TokenReviewSpec `json:"spec"` + Spec TokenReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request can be authenticated. - Status TokenReviewStatus `json:"status,omitempty"` + Status TokenReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // TokenReviewSpec is a description of the token authentication request. type TokenReviewSpec struct { // Token is the opaque bearer token. - Token string `json:"token,omitempty"` + Token string `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"` } // TokenReviewStatus is the result of the token authentication request. type TokenReviewStatus struct { // Authenticated indicates that the token was associated with a known user. - Authenticated bool `json:"authenticated,omitempty"` + Authenticated bool `json:"authenticated,omitempty" protobuf:"varint,1,opt,name=authenticated"` // User is the UserInfo associated with the provided token. - User UserInfo `json:"user,omitempty"` + User UserInfo `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` + // Error indicates that the token couldn't be checked + Error string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` } // UserInfo holds the information about the user needed to implement the // user.Info interface. type UserInfo struct { // The name that uniquely identifies this user among all active users. - Username string `json:"username,omitempty"` + Username string `json:"username,omitempty" protobuf:"bytes,1,opt,name=username"` // A unique value that identifies this user across time. If this user is // deleted and another user by the same name is added, they will have // different UIDs. - UID string `json:"uid,omitempty"` + UID string `json:"uid,omitempty" protobuf:"bytes,2,opt,name=uid"` // The names of groups this user is a part of. - Groups []string `json:"groups,omitempty"` + Groups []string `json:"groups,omitempty" protobuf:"bytes,3,rep,name=groups"` // Any additional information provided by the authenticator. - Extra map[string][]string `json:"extra,omitempty"` + Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,4,rep,name=extra"` +} + +// ExtraValue masks the value so protobuf can generate +// +protobuf.nullable=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +type ExtraValue []string + +func (t ExtraValue) String() string { + return fmt.Sprintf("%v", []string(t)) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go new file mode 100644 index 0000000000..f910bea6fc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go @@ -0,0 +1,72 @@ +/* +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 + +// This file contains a collection of methods that can be used from go-restful to +// generate Swagger API documentation for its models. Please read this PR for more +// information on the implementation: https://github.com/emicklei/go-restful/pull/215 +// +// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if +// they are on one line! For multiple line or blocks that you want to ignore use ---. +// Any context after a --- is ignored. +// +// Those methods can be generated by using hack/update-generated-swagger-docs.sh + +// AUTO-GENERATED FUNCTIONS START HERE +var map_TokenReview = map[string]string{ + "": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "spec": "Spec holds information about the request being evaluated", + "status": "Status is filled in by the server and indicates whether the request can be authenticated.", +} + +func (TokenReview) SwaggerDoc() map[string]string { + return map_TokenReview +} + +var map_TokenReviewSpec = map[string]string{ + "": "TokenReviewSpec is a description of the token authentication request.", + "token": "Token is the opaque bearer token.", +} + +func (TokenReviewSpec) SwaggerDoc() map[string]string { + return map_TokenReviewSpec +} + +var map_TokenReviewStatus = map[string]string{ + "": "TokenReviewStatus is the result of the token authentication request.", + "authenticated": "Authenticated indicates that the token was associated with a known user.", + "user": "User is the UserInfo associated with the provided token.", + "error": "Error indicates that the token couldn't be checked", +} + +func (TokenReviewStatus) SwaggerDoc() map[string]string { + return map_TokenReviewStatus +} + +var map_UserInfo = map[string]string{ + "": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "username": "The name that uniquely identifies this user among all active users.", + "uid": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "groups": "The names of groups this user is a part of.", + "extra": "Any additional information provided by the authenticator.", +} + +func (UserInfo) SwaggerDoc() map[string]string { + return map_UserInfo +} + +// AUTO-GENERATED FUNCTIONS END HERE diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/zz_generated.conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/zz_generated.conversion.go new file mode 100644 index 0000000000..b3849d39ed --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/zz_generated.conversion.go @@ -0,0 +1,183 @@ +// +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 v1beta1 + +import ( + api "k8s.io/kubernetes/pkg/api" + authentication "k8s.io/kubernetes/pkg/apis/authentication" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v1beta1_TokenReview_To_authentication_TokenReview, + Convert_authentication_TokenReview_To_v1beta1_TokenReview, + Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec, + Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec, + Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus, + Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus, + Convert_v1beta1_UserInfo_To_authentication_UserInfo, + Convert_authentication_UserInfo_To_v1beta1_UserInfo, + ) +} + +func autoConvert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, out *authentication.TokenReview, 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_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, out *authentication.TokenReview, s conversion.Scope) error { + return autoConvert_v1beta1_TokenReview_To_authentication_TokenReview(in, out, s) +} + +func autoConvert_authentication_TokenReview_To_v1beta1_TokenReview(in *authentication.TokenReview, out *TokenReview, 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_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_authentication_TokenReview_To_v1beta1_TokenReview(in *authentication.TokenReview, out *TokenReview, s conversion.Scope) error { + return autoConvert_authentication_TokenReview_To_v1beta1_TokenReview(in, out, s) +} + +func autoConvert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(in *TokenReviewSpec, out *authentication.TokenReviewSpec, s conversion.Scope) error { + out.Token = in.Token + return nil +} + +func Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(in *TokenReviewSpec, out *authentication.TokenReviewSpec, s conversion.Scope) error { + return autoConvert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec(in, out, s) +} + +func autoConvert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error { + out.Token = in.Token + return nil +} + +func Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in *authentication.TokenReviewSpec, out *TokenReviewSpec, s conversion.Scope) error { + return autoConvert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec(in, out, s) +} + +func autoConvert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus(in *TokenReviewStatus, out *authentication.TokenReviewStatus, s conversion.Scope) error { + out.Authenticated = in.Authenticated + if err := Convert_v1beta1_UserInfo_To_authentication_UserInfo(&in.User, &out.User, s); err != nil { + return err + } + out.Error = in.Error + return nil +} + +func Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus(in *TokenReviewStatus, out *authentication.TokenReviewStatus, s conversion.Scope) error { + return autoConvert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus(in, out, s) +} + +func autoConvert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication.TokenReviewStatus, out *TokenReviewStatus, s conversion.Scope) error { + out.Authenticated = in.Authenticated + if err := Convert_authentication_UserInfo_To_v1beta1_UserInfo(&in.User, &out.User, s); err != nil { + return err + } + out.Error = in.Error + return nil +} + +func Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *authentication.TokenReviewStatus, out *TokenReviewStatus, s conversion.Scope) error { + return autoConvert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in, out, s) +} + +func autoConvert_v1beta1_UserInfo_To_authentication_UserInfo(in *UserInfo, out *authentication.UserInfo, s conversion.Scope) error { + out.Username = in.Username + out.UID = in.UID + out.Groups = in.Groups + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]authentication.ExtraValue, len(*in)) + for key, val := range *in { + newVal := new(authentication.ExtraValue) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&val, newVal, 0); err != nil { + return err + } + (*out)[key] = *newVal + } + } else { + out.Extra = nil + } + return nil +} + +func Convert_v1beta1_UserInfo_To_authentication_UserInfo(in *UserInfo, out *authentication.UserInfo, s conversion.Scope) error { + return autoConvert_v1beta1_UserInfo_To_authentication_UserInfo(in, out, s) +} + +func autoConvert_authentication_UserInfo_To_v1beta1_UserInfo(in *authentication.UserInfo, out *UserInfo, s conversion.Scope) error { + out.Username = in.Username + out.UID = in.UID + out.Groups = in.Groups + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]ExtraValue, len(*in)) + for key, val := range *in { + newVal := new(ExtraValue) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&val, newVal, 0); err != nil { + return err + } + (*out)[key] = *newVal + } + } else { + out.Extra = nil + } + return nil +} + +func Convert_authentication_UserInfo_To_v1beta1_UserInfo(in *authentication.UserInfo, out *UserInfo, s conversion.Scope) error { + return autoConvert_authentication_UserInfo_To_v1beta1_UserInfo(in, out, s) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..01cbc76e4c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,111 @@ +// +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 v1beta1 + +import ( + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v1beta1_TokenReview, InType: reflect.TypeOf(&TokenReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_TokenReviewSpec, InType: reflect.TypeOf(&TokenReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_TokenReviewStatus, InType: reflect.TypeOf(&TokenReviewStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_UserInfo, InType: reflect.TypeOf(&UserInfo{})}, + ) +} + +func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TokenReview) + out := out.(*TokenReview) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_v1beta1_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TokenReviewSpec) + out := out.(*TokenReviewSpec) + out.Token = in.Token + return nil + } +} + +func DeepCopy_v1beta1_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TokenReviewStatus) + out := out.(*TokenReviewStatus) + out.Authenticated = in.Authenticated + if err := DeepCopy_v1beta1_UserInfo(&in.User, &out.User, c); err != nil { + return err + } + out.Error = in.Error + return nil + } +} + +func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*UserInfo) + out := out.(*UserInfo) + out.Username = in.Username + out.UID = in.UID + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Groups = nil + } + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]ExtraValue) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*ExtraValue) + } + } + } else { + out.Extra = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/zz_generated.deepcopy.go new file mode 100644 index 0000000000..7caf7b0c48 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication/zz_generated.deepcopy.go @@ -0,0 +1,111 @@ +// +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 authentication + +import ( + api "k8s.io/kubernetes/pkg/api" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_authentication_TokenReview, InType: reflect.TypeOf(&TokenReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewSpec, InType: reflect.TypeOf(&TokenReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewStatus, InType: reflect.TypeOf(&TokenReviewStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_UserInfo, InType: reflect.TypeOf(&UserInfo{})}, + ) +} + +func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TokenReview) + out := out.(*TokenReview) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TokenReviewSpec) + out := out.(*TokenReviewSpec) + out.Token = in.Token + return nil + } +} + +func DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TokenReviewStatus) + out := out.(*TokenReviewStatus) + out.Authenticated = in.Authenticated + if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil { + return err + } + out.Error = in.Error + return nil + } +} + +func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*UserInfo) + out := out.(*UserInfo) + out.Username = in.Username + out.UID = in.UID + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Groups = nil + } + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]ExtraValue) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*ExtraValue) + } + } + } else { + out.Extra = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/deep_copy_generated.go deleted file mode 100644 index 5e92552c03..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/deep_copy_generated.go +++ /dev/null @@ -1,149 +0,0 @@ -// +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 authorization - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_authorization_LocalSubjectAccessReview, - DeepCopy_authorization_NonResourceAttributes, - DeepCopy_authorization_ResourceAttributes, - DeepCopy_authorization_SelfSubjectAccessReview, - DeepCopy_authorization_SelfSubjectAccessReviewSpec, - DeepCopy_authorization_SubjectAccessReview, - DeepCopy_authorization_SubjectAccessReviewSpec, - DeepCopy_authorization_SubjectAccessReviewStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_authorization_LocalSubjectAccessReview(in LocalSubjectAccessReview, out *LocalSubjectAccessReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_authorization_SubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_authorization_NonResourceAttributes(in NonResourceAttributes, out *NonResourceAttributes, c *conversion.Cloner) error { - out.Path = in.Path - out.Verb = in.Verb - return nil -} - -func DeepCopy_authorization_ResourceAttributes(in ResourceAttributes, out *ResourceAttributes, c *conversion.Cloner) error { - out.Namespace = in.Namespace - out.Verb = in.Verb - out.Group = in.Group - out.Version = in.Version - out.Resource = in.Resource - out.Subresource = in.Subresource - out.Name = in.Name - return nil -} - -func DeepCopy_authorization_SelfSubjectAccessReview(in SelfSubjectAccessReview, out *SelfSubjectAccessReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, c *conversion.Cloner) error { - if in.ResourceAttributes != nil { - in, out := in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = *in - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = *in - } else { - out.NonResourceAttributes = nil - } - return nil -} - -func DeepCopy_authorization_SubjectAccessReview(in SubjectAccessReview, out *SubjectAccessReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_authorization_SubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_authorization_SubjectAccessReviewSpec(in SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, c *conversion.Cloner) error { - if in.ResourceAttributes != nil { - in, out := in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = *in - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = *in - } else { - out.NonResourceAttributes = nil - } - out.User = in.User - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Groups = nil - } - if in.Extra != nil { - in, out := in.Extra, &out.Extra - *out = make(map[string][]string) - for key, val := range in { - if newVal, err := c.DeepCopy(val); err != nil { - return err - } else { - (*out)[key] = newVal.([]string) - } - } - } else { - out.Extra = nil - } - return nil -} - -func DeepCopy_authorization_SubjectAccessReviewStatus(in SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, c *conversion.Cloner) error { - out.Allowed = in.Allowed - out.Reason = in.Reason - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/doc.go index 9660e5eacf..477c9c7fae 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/doc.go @@ -16,4 +16,5 @@ limitations under the License. // +k8s:deepcopy-gen=package,register +// +groupName=authorization.k8s.io package authorization diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/install/install.go index 7899815598..2c474fde47 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/install/install.go @@ -89,7 +89,10 @@ func enableVersions(externalVersions []unversioned.GroupVersion) error { func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - authorization.AddToScheme(api.Scheme) + if err := authorization.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -98,7 +101,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1beta1.SchemeGroupVersion: - v1beta1.AddToScheme(api.Scheme) + if err := v1beta1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/register.go index b1cfa491bc..1c5f9066bc 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/register.go @@ -37,14 +37,16 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &SelfSubjectAccessReview{}, &SubjectAccessReview{}, &LocalSubjectAccessReview{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.generated.go index a0811c8a71..c3a10de56d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.generated.go @@ -25,9 +25,12 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" + pkg2_api "k8s.io/kubernetes/pkg/api" pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" + pkg3_types "k8s.io/kubernetes/pkg/types" "reflect" "runtime" + time "time" ) const ( @@ -60,8 +63,11 @@ func init() { panic(err) } if false { // reference the types, but skip this branch at build/run time - var v0 pkg1_unversioned.TypeMeta - _ = v0 + var v0 pkg2_api.ObjectMeta + var v1 pkg1_unversioned.TypeMeta + var v2 pkg3_types.UID + var v3 time.Time + _, _, _, _ = v0, v1, v2, v3 } } @@ -79,14 +85,29 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool + var yyq2 [19]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" + 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(4) + r.EncodeArrayStart(19) } else { yynn2 = 2 for _, b := range yyq2 { @@ -99,34 +120,62 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) + 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) - yy9 := &x.Status - yy9.CodecEncodeSelf(e) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) + 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] { - yym14 := z.EncBinary() - _ = yym14 + yym10 := z.EncBinary() + _ = yym10 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -134,24 +183,24 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym11 := z.EncBinary() + _ = yym11 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + yym13 := z.EncBinary() + _ = yym13 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -159,303 +208,465 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym14 := z.EncBinary() + _ = yym14 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } } if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } - 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()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SelfSubjectAccessReview) 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 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + 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 { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ + 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)) } } - r.EncodeMapStart(yynn2) - yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) + if yyq2[5] { + yym19 := z.EncBinary() + _ = yym19 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) + 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) - yy9 := &x.Status - yy9.CodecEncodeSelf(e) + 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 { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) + 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[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2[7] { + yym25 := z.EncBinary() + _ = yym25 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym26 := z.EncBinary() + _ = yym26 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2[8] { + yym28 := z.EncBinary() + _ = yym28 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeInt(int64(x.Generation)) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq2[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("generation")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym29 := z.EncBinary() + _ = yym29 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + 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 { @@ -465,29 +676,29 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *SelfSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *SubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym64 := z.DecBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct65 := r.ContainerType() + if yyct65 == codecSelferValueTypeMap1234 { + yyl65 := r.ReadMapStart() + if yyl65 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl65, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct65 == codecSelferValueTypeArray1234 { + yyl65 := r.ReadArrayStart() + if yyl65 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl65, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -495,16 +706,16 @@ func (x *SelfSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -513,24 +724,10 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys66Slc = r.DecodeBytes(yys66Slc, true, true) + yys66 := string(yys66Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = SelfSubjectAccessReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys66 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -543,161 +740,630 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec } 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 = SubjectAccessReviewSpec{} + } else { + yyv91 := &x.Spec + yyv91.CodecDecodeSelf(d) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv92 := &x.Status + yyv92.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys66) + } // end switch yys66 + } // end for yyj66 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj93 int + var yyb93 bool + var yyhl93 bool = l >= 0 + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb8 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb8 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = SelfSubjectAccessReviewSpec{} + x.Kind = "" } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb8 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb8 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb8 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb8 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Name = "" } else { - x.Kind = string(r.DecodeString()) + x.Name = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb8 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb8 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.GenerateName = "" } else { - x.APIVersion = string(r.DecodeString()) + x.GenerateName = string(r.DecodeString()) } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 + 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 = SubjectAccessReviewSpec{} + } 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 = SubjectAccessReviewStatus{} + } 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 *SelfSubjectAccessReview) 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 + yym120 := z.EncBinary() + _ = yym120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn121 = 2 + for _, b := range yyq121 { if b { - yynn2++ + yynn121++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) + r.EncodeMapStart(yynn121) + yynn121 = 0 } - if yyr2 || yy2arr2 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq121[0] { + yym123 := z.EncBinary() + _ = yym123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -706,23 +1372,23 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq121[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym124 := z.EncBinary() + _ = yym124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq121[1] { + yym126 := z.EncBinary() + _ = yym126 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -731,50 +1397,549 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq121[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym127 := z.EncBinary() + _ = yym127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + 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 { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) + if yyq121[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym130 := z.EncBinary() + _ = yym130 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } } - } - } -} - -func (x *LocalSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) + 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 { - x.codecDecodeSelfFromMap(yyl2, d) + if yyq121[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym133 := z.EncBinary() + _ = yym133 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2, d) + 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 yyq121[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym136 := z.EncBinary() + _ = yym136 + if false { + } else { + 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 yyq121[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + 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)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq121[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym145 := z.EncBinary() + _ = yym145 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[8] { + yym147 := z.EncBinary() + _ = yym147 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq121[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generation")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym148 := z.EncBinary() + _ = yym148 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[9] { + yy150 := &x.CreationTimestamp + yym151 := z.EncBinary() + _ = yym151 + if false { + } else if z.HasExtensions() && z.EncExt(yy150) { + } else if yym151 { + z.EncBinaryMarshal(yy150) + } else if !yym151 && z.IsJSONHandle() { + z.EncJSONMarshal(yy150) + } else { + z.EncFallback(yy150) + } + } else { + r.EncodeNil() + } + } else { + if yyq121[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy152 := &x.CreationTimestamp + yym153 := z.EncBinary() + _ = yym153 + if false { + } else if z.HasExtensions() && z.EncExt(yy152) { + } else if yym153 { + z.EncBinaryMarshal(yy152) + } else if !yym153 && z.IsJSONHandle() { + z.EncJSONMarshal(yy152) + } else { + z.EncFallback(yy152) + } + } + } + var yyn154 bool + if x.ObjectMeta.DeletionTimestamp == nil { + yyn154 = true + goto LABEL154 + } + LABEL154: + if yyr121 || yy2arr121 { + if yyn154 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[10] { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym155 := z.EncBinary() + _ = yym155 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym155 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym155 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } else { + r.EncodeNil() + } + } + } else { + if yyq121[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn154 { + r.EncodeNil() + } else { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym156 := z.EncBinary() + _ = yym156 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym156 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym156 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } + } + } + var yyn157 bool + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + yyn157 = true + goto LABEL157 + } + LABEL157: + if yyr121 || yy2arr121 { + if yyn157 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[11] { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy158 := *x.DeletionGracePeriodSeconds + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + r.EncodeInt(int64(yy158)) + } + } + } else { + r.EncodeNil() + } + } + } else { + if yyq121[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn157 { + r.EncodeNil() + } else { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy160 := *x.DeletionGracePeriodSeconds + yym161 := z.EncBinary() + _ = yym161 + if false { + } else { + r.EncodeInt(int64(yy160)) + } + } + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[12] { + if x.Labels == nil { + r.EncodeNil() + } else { + yym163 := z.EncBinary() + _ = yym163 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq121[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labels")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Labels == nil { + r.EncodeNil() + } else { + yym164 := z.EncBinary() + _ = yym164 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[13] { + if x.Annotations == nil { + r.EncodeNil() + } else { + yym166 := z.EncBinary() + _ = yym166 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq121[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym167 := z.EncBinary() + _ = yym167 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[14] { + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym169 := z.EncBinary() + _ = yym169 + if false { + } else { + h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq121[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym170 := z.EncBinary() + _ = yym170 + if false { + } else { + h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) + } + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[15] { + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym172 := z.EncBinary() + _ = yym172 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq121[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym173 := z.EncBinary() + _ = yym173 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + 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) + yy179 := &x.Spec + yy179.CodecEncodeSelf(e) + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy181 := &x.Status + yy181.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy182 := &x.Status + yy182.CodecEncodeSelf(e) + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SelfSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym183 := z.DecBinary() + _ = yym183 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct184 := r.ContainerType() + if yyct184 == codecSelferValueTypeMap1234 { + yyl184 := r.ReadMapStart() + if yyl184 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl184, d) + } + } else if yyct184 == codecSelferValueTypeArray1234 { + yyl184 := r.ReadArrayStart() + if yyl184 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl184, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -782,146 +1947,1849 @@ func (x *LocalSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { - if r.CheckBreak() { - break - } + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys185Slc = r.DecodeBytes(yys185Slc, true, true) + yys185 := string(yys185Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys185 { + 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 { + yyv195 := &x.CreationTimestamp + yym196 := z.DecBinary() + _ = yym196 + if false { + } else if z.HasExtensions() && z.DecExt(yyv195) { + } else if yym196 { + z.DecBinaryUnmarshal(yyv195) + } else if !yym196 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv195) + } else { + z.DecFallback(yyv195, 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) + } + yym198 := z.DecBinary() + _ = yym198 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym198 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym198 && 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) + } + yym200 := z.DecBinary() + _ = yym200 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "labels": + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv201 := &x.Labels + yym202 := z.DecBinary() + _ = yym202 + if false { + } else { + z.F.DecMapStringStringX(yyv201, false, d) + } + } + case "annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv203 := &x.Annotations + yym204 := z.DecBinary() + _ = yym204 + if false { + } else { + z.F.DecMapStringStringX(yyv203, false, d) + } + } + case "ownerReferences": + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv205 := &x.OwnerReferences + yym206 := z.DecBinary() + _ = yym206 + if false { + } else { + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv205), d) + } + } + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv207 := &x.Finalizers + yym208 := z.DecBinary() + _ = yym208 + if false { + } else { + 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 { + yyv210 := &x.Spec + yyv210.CodecDecodeSelf(d) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv211 := &x.Status + yyv211.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys185) + } // end switch yys185 + } // end for yyj185 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj212 int + var yyb212 bool + var yyhl212 bool = l >= 0 + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.GenerateName = "" + } else { + x.GenerateName = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SelfLink = "" + } else { + x.SelfLink = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg3_types.UID(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Generation = 0 + } else { + x.Generation = int64(r.DecodeInt(64)) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CreationTimestamp = pkg1_unversioned.Time{} + } else { + yyv222 := &x.CreationTimestamp + yym223 := z.DecBinary() + _ = yym223 + if false { + } else if z.HasExtensions() && z.DecExt(yyv222) { + } else if yym223 { + z.DecBinaryUnmarshal(yyv222) + } else if !yym223 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv222) + } else { + z.DecFallback(yyv222, false) + } + } + if x.ObjectMeta.DeletionTimestamp == nil { + x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + 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) + } + yym225 := z.DecBinary() + _ = yym225 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym225 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym225 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + 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) + } + yym227 := z.DecBinary() + _ = yym227 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv228 := &x.Labels + yym229 := z.DecBinary() + _ = yym229 + if false { + } else { + z.F.DecMapStringStringX(yyv228, false, d) + } + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv230 := &x.Annotations + yym231 := z.DecBinary() + _ = yym231 + if false { + } else { + z.F.DecMapStringStringX(yyv230, false, d) + } + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv232 := &x.OwnerReferences + yym233 := z.DecBinary() + _ = yym233 + if false { + } else { + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv232), d) + } + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv234 := &x.Finalizers + yym235 := z.DecBinary() + _ = yym235 + if false { + } else { + z.F.DecSliceStringX(yyv234, false, d) + } + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + 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 + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = SelfSubjectAccessReviewSpec{} + } else { + yyv237 := &x.Spec + yyv237.CodecDecodeSelf(d) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv238 := &x.Status + yyv238.CodecDecodeSelf(d) + } + for { + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj212-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym239 := z.EncBinary() + _ = yym239 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn240 = 2 + for _, b := range yyq240 { + if b { + yynn240++ + } + } + r.EncodeMapStart(yynn240) + yynn240 = 0 + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[0] { + yym242 := z.EncBinary() + _ = yym242 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + 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.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + 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.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + 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 { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + 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 yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[8] { + yym266 := z.EncBinary() + _ = yym266 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq240[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generation")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym267 := z.EncBinary() + _ = yym267 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[9] { + yy269 := &x.CreationTimestamp + yym270 := z.EncBinary() + _ = yym270 + if false { + } else if z.HasExtensions() && z.EncExt(yy269) { + } else if yym270 { + z.EncBinaryMarshal(yy269) + } else if !yym270 && z.IsJSONHandle() { + z.EncJSONMarshal(yy269) + } else { + z.EncFallback(yy269) + } + } else { + r.EncodeNil() + } + } else { + if yyq240[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy271 := &x.CreationTimestamp + yym272 := z.EncBinary() + _ = yym272 + if false { + } else if z.HasExtensions() && z.EncExt(yy271) { + } else if yym272 { + z.EncBinaryMarshal(yy271) + } else if !yym272 && z.IsJSONHandle() { + z.EncJSONMarshal(yy271) + } else { + z.EncFallback(yy271) + } + } + } + var yyn273 bool + if x.ObjectMeta.DeletionTimestamp == nil { + yyn273 = true + goto LABEL273 + } + LABEL273: + if yyr240 || yy2arr240 { + if yyn273 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[10] { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym274 := z.EncBinary() + _ = yym274 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym274 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym274 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } else { + r.EncodeNil() + } + } + } else { + if yyq240[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn273 { + r.EncodeNil() + } else { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym275 := z.EncBinary() + _ = yym275 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym275 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym275 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } + } + } + var yyn276 bool + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + yyn276 = true + goto LABEL276 + } + LABEL276: + if yyr240 || yy2arr240 { + if yyn276 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[11] { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy277 := *x.DeletionGracePeriodSeconds + yym278 := z.EncBinary() + _ = yym278 + if false { + } else { + r.EncodeInt(int64(yy277)) + } + } + } else { + r.EncodeNil() + } + } + } else { + if yyq240[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn276 { + r.EncodeNil() + } else { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy279 := *x.DeletionGracePeriodSeconds + yym280 := z.EncBinary() + _ = yym280 + if false { + } else { + r.EncodeInt(int64(yy279)) + } + } + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[12] { + if x.Labels == 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 yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + 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) + yy298 := &x.Spec + yy298.CodecEncodeSelf(e) + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy300 := &x.Status + yy300.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy301 := &x.Status + yy301.CodecEncodeSelf(e) + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LocalSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym302 := z.DecBinary() + _ = yym302 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct303 := r.ContainerType() + if yyct303 == codecSelferValueTypeMap1234 { + yyl303 := r.ReadMapStart() + if yyl303 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl303, d) + } + } else if yyct303 == codecSelferValueTypeArray1234 { + yyl303 := r.ReadArrayStart() + if yyl303 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl303, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys304Slc = r.DecodeBytes(yys304Slc, true, true) + yys304 := string(yys304Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys304 { + 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 { + yyv314 := &x.CreationTimestamp + yym315 := z.DecBinary() + _ = yym315 + if false { + } else if z.HasExtensions() && z.DecExt(yyv314) { + } else if yym315 { + z.DecBinaryUnmarshal(yyv314) + } else if !yym315 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv314) + } else { + z.DecFallback(yyv314, 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) + } + yym317 := z.DecBinary() + _ = yym317 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym317 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym317 && 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) + } + yym319 := z.DecBinary() + _ = yym319 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "labels": + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv320 := &x.Labels + yym321 := z.DecBinary() + _ = yym321 + if false { + } else { + z.F.DecMapStringStringX(yyv320, false, d) + } + } + case "annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv322 := &x.Annotations + yym323 := z.DecBinary() + _ = yym323 + if false { + } else { + z.F.DecMapStringStringX(yyv322, false, d) + } + } + case "ownerReferences": + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv324 := &x.OwnerReferences + yym325 := z.DecBinary() + _ = yym325 + if false { + } else { + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv324), d) + } + } + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv326 := &x.Finalizers + yym327 := z.DecBinary() + _ = yym327 + if false { + } else { + 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 { + yyv329 := &x.Spec + yyv329.CodecDecodeSelf(d) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv330 := &x.Status + yyv330.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys304) + } // end switch yys304 + } // end for yyj304 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj331 int + var yyb331 bool + var yyhl331 bool = l >= 0 + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.GenerateName = "" + } else { + x.GenerateName = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SelfLink = "" + } else { + x.SelfLink = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg3_types.UID(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Generation = 0 + } else { + x.Generation = int64(r.DecodeInt(64)) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CreationTimestamp = pkg1_unversioned.Time{} + } else { + yyv341 := &x.CreationTimestamp + yym342 := z.DecBinary() + _ = yym342 + if false { + } else if z.HasExtensions() && z.DecExt(yyv341) { + } else if yym342 { + z.DecBinaryUnmarshal(yyv341) + } else if !yym342 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv341) + } else { + z.DecFallback(yyv341, false) + } + } + if x.ObjectMeta.DeletionTimestamp == nil { + x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + 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) + } + yym344 := z.DecBinary() + _ = yym344 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym344 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym344 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + 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) + } + yym346 := z.DecBinary() + _ = yym346 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv347 := &x.Labels + yym348 := z.DecBinary() + _ = yym348 + if false { + } else { + z.F.DecMapStringStringX(yyv347, false, d) + } + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv349 := &x.Annotations + yym350 := z.DecBinary() + _ = yym350 + if false { + } else { + z.F.DecMapStringStringX(yyv349, false, d) + } + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv351 := &x.OwnerReferences + yym352 := z.DecBinary() + _ = yym352 + if false { + } else { + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv351), d) } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } - 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()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb8 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb8 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} + x.Finalizers = nil } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) + yyv353 := &x.Finalizers + yym354 := z.DecBinary() + _ = yym354 + if false { + } else { + z.F.DecSliceStringX(yyv353, false, d) + } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb8 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb8 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} + x.ClusterName = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.ClusterName = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb8 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb8 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = SubjectAccessReviewSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv356 := &x.Spec + yyv356.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb8 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb8 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = SubjectAccessReviewStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv357 := &x.Status + yyv357.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb8 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb8 { + if yyb331 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj331-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -933,33 +3801,33 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym358 := z.EncBinary() + _ = yym358 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 7 - for _, b := range yyq2 { + yynn359 = 7 + for _, b := range yyq359 { if b { - yynn2++ + yynn359++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn359) + yynn359 = 0 } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym361 := z.EncBinary() + _ = yym361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -968,17 +3836,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym362 := z.EncBinary() + _ = yym362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym364 := z.EncBinary() + _ = yym364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) @@ -987,17 +3855,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Verb")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym365 := z.EncBinary() + _ = yym365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym367 := z.EncBinary() + _ = yym367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) @@ -1006,17 +3874,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym368 := z.EncBinary() + _ = yym368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym370 := z.EncBinary() + _ = yym370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Version)) @@ -1025,17 +3893,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Version")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym371 := z.EncBinary() + _ = yym371 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Version)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym373 := z.EncBinary() + _ = yym373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -1044,17 +3912,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym374 := z.EncBinary() + _ = yym374 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 + yym376 := z.EncBinary() + _ = yym376 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) @@ -1063,17 +3931,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Subresource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym377 := z.EncBinary() + _ = yym377 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym379 := z.EncBinary() + _ = yym379 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1082,14 +3950,14 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym380 := z.EncBinary() + _ = yym380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1102,25 +3970,25 @@ func (x *ResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym381 := z.DecBinary() + _ = yym381 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct382 := r.ContainerType() + if yyct382 == codecSelferValueTypeMap1234 { + yyl382 := r.ReadMapStart() + if yyl382 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl382, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct382 == codecSelferValueTypeArray1234 { + yyl382 := r.ReadArrayStart() + if yyl382 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl382, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1132,12 +4000,12 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -1146,10 +4014,10 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys383Slc = r.DecodeBytes(yys383Slc, true, true) + yys383 := string(yys383Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys383 { case "Namespace": if r.TryDecodeAsNil() { x.Namespace = "" @@ -1193,9 +4061,9 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys383) + } // end switch yys383 + } // end for yyj383 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1203,16 +4071,16 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj391 int + var yyb391 bool + var yyhl391 bool = l >= 0 + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1222,13 +4090,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Namespace = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1238,13 +4106,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Verb = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1254,13 +4122,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Group = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1270,13 +4138,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Version = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1286,13 +4154,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Resource = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1302,13 +4170,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Subresource = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1319,17 +4187,17 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb11 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb11 { + if yyb391 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj391-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1341,33 +4209,33 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym399 := z.EncBinary() + _ = yym399 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn400 = 2 + for _, b := range yyq400 { if b { - yynn2++ + yynn400++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn400) + yynn400 = 0 } - if yyr2 || yy2arr2 { + if yyr400 || yy2arr400 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym402 := z.EncBinary() + _ = yym402 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -1376,17 +4244,17 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym403 := z.EncBinary() + _ = yym403 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr2 || yy2arr2 { + if yyr400 || yy2arr400 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym405 := z.EncBinary() + _ = yym405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) @@ -1395,14 +4263,14 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Verb")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym406 := z.EncBinary() + _ = yym406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) } } - if yyr2 || yy2arr2 { + if yyr400 || yy2arr400 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1415,25 +4283,25 @@ func (x *NonResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym407 := z.DecBinary() + _ = yym407 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct408 := r.ContainerType() + if yyct408 == codecSelferValueTypeMap1234 { + yyl408 := r.ReadMapStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl408, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct408 == codecSelferValueTypeArray1234 { + yyl408 := r.ReadArrayStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl408, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1445,12 +4313,12 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -1459,10 +4327,10 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys409Slc = r.DecodeBytes(yys409Slc, true, true) + yys409 := string(yys409Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys409 { case "Path": if r.TryDecodeAsNil() { x.Path = "" @@ -1476,9 +4344,9 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.Verb = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys409) + } // end switch yys409 + } // end for yyj409 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1486,16 +4354,16 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj412 int + var yyb412 bool + var yyhl412 bool = l >= 0 + yyj412++ + if yyhl412 { + yyb412 = yyj412 > l } else { - yyb6 = r.CheckBreak() + yyb412 = r.CheckBreak() } - if yyb6 { + if yyb412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1505,13 +4373,13 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj412++ + if yyhl412 { + yyb412 = yyj412 > l } else { - yyb6 = r.CheckBreak() + yyb412 = r.CheckBreak() } - if yyb6 { + if yyb412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1522,17 +4390,17 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.Verb = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj412++ + if yyhl412 { + yyb412 = yyj412 > l } else { - yyb6 = r.CheckBreak() + yyb412 = r.CheckBreak() } - if yyb6 { + if yyb412 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj412-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1544,30 +4412,30 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym415 := z.EncBinary() + _ = yym415 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 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 5 - for _, b := range yyq2 { + yynn416 = 5 + for _, b := range yyq416 { if b { - yynn2++ + yynn416++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn416) + yynn416 = 0 } - if yyr2 || yy2arr2 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.ResourceAttributes == nil { r.EncodeNil() @@ -1584,7 +4452,7 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.ResourceAttributes.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NonResourceAttributes == nil { r.EncodeNil() @@ -1601,10 +4469,10 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.NonResourceAttributes.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym420 := z.EncBinary() + _ = yym420 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -1613,20 +4481,20 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("User")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym421 := z.EncBinary() + _ = yym421 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } - if yyr2 || yy2arr2 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Groups == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym423 := z.EncBinary() + _ = yym423 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -1639,24 +4507,24 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Groups == nil { r.EncodeNil() } else { - yym14 := z.EncBinary() - _ = yym14 + yym424 := z.EncBinary() + _ = yym424 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } - if yyr2 || yy2arr2 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Extra == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + yym426 := z.EncBinary() + _ = yym426 if false { } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } else { @@ -1666,15 +4534,15 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Extra == nil { r.EncodeNil() } else { - yym17 := z.EncBinary() - _ = yym17 + yym427 := z.EncBinary() + _ = yym427 if false { } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } - if yyr2 || yy2arr2 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1687,25 +4555,25 @@ func (x *SubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym428 := z.DecBinary() + _ = yym428 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct429 := r.ContainerType() + if yyct429 == codecSelferValueTypeMap1234 { + yyl429 := r.ReadMapStart() + if yyl429 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl429, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct429 == codecSelferValueTypeArray1234 { + yyl429 := r.ReadArrayStart() + if yyl429 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl429, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1717,12 +4585,12 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -1731,10 +4599,10 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys430Slc = r.DecodeBytes(yys430Slc, true, true) + yys430 := string(yys430Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys430 { case "ResourceAttributes": if r.TryDecodeAsNil() { if x.ResourceAttributes != nil { @@ -1767,30 +4635,30 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv7 := &x.Groups - yym8 := z.DecBinary() - _ = yym8 + yyv434 := &x.Groups + yym435 := z.DecBinary() + _ = yym435 if false { } else { - z.F.DecSliceStringX(yyv7, false, d) + z.F.DecSliceStringX(yyv434, false, d) } } case "Extra": if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv9 := &x.Extra - yym10 := z.DecBinary() - _ = yym10 + yyv436 := &x.Extra + yym437 := z.DecBinary() + _ = yym437 if false { } else { - h.decMapstringSlicestring((*map[string][]string)(yyv9), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv436), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys430) + } // end switch yys430 + } // end for yyj430 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1798,16 +4666,16 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj438 int + var yyb438 bool + var yyhl438 bool = l >= 0 + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb11 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb11 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1822,13 +4690,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } x.ResourceAttributes.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb11 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb11 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1843,13 +4711,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } x.NonResourceAttributes.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb11 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb11 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1859,13 +4727,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.User = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb11 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb11 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1873,21 +4741,21 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv15 := &x.Groups - yym16 := z.DecBinary() - _ = yym16 + yyv442 := &x.Groups + yym443 := z.DecBinary() + _ = yym443 if false { } else { - z.F.DecSliceStringX(yyv15, false, d) + z.F.DecSliceStringX(yyv442, false, d) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb11 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb11 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1895,30 +4763,60 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv17 := &x.Extra - yym18 := z.DecBinary() - _ = yym18 + yyv444 := &x.Extra + yym445 := z.DecBinary() + _ = yym445 if false { } else { - h.decMapstringSlicestring((*map[string][]string)(yyv17), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv444), d) } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb11 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb11 { + if yyb438 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj438-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym446 := z.EncBinary() + _ = yym446 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + h.encExtraValue((ExtraValue)(x), e) + } + } +} + +func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym447 := z.DecBinary() + _ = yym447 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decExtraValue((*ExtraValue)(x), d) + } +} + func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -1926,30 +4824,30 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym448 := z.EncBinary() + _ = yym448 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn449 = 2 + for _, b := range yyq449 { if b { - yynn2++ + yynn449++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn449) + yynn449 = 0 } - if yyr2 || yy2arr2 { + if yyr449 || yy2arr449 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.ResourceAttributes == nil { r.EncodeNil() @@ -1966,7 +4864,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.ResourceAttributes.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr449 || yy2arr449 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NonResourceAttributes == nil { r.EncodeNil() @@ -1983,7 +4881,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.NonResourceAttributes.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr449 || yy2arr449 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1996,25 +4894,25 @@ func (x *SelfSubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym452 := z.DecBinary() + _ = yym452 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct453 := r.ContainerType() + if yyct453 == codecSelferValueTypeMap1234 { + yyl453 := r.ReadMapStart() + if yyl453 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl453, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct453 == codecSelferValueTypeArray1234 { + yyl453 := r.ReadArrayStart() + if yyl453 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl453, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2026,12 +4924,12 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -2040,10 +4938,10 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys454Slc = r.DecodeBytes(yys454Slc, true, true) + yys454 := string(yys454Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys454 { case "ResourceAttributes": if r.TryDecodeAsNil() { if x.ResourceAttributes != nil { @@ -2067,9 +4965,9 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 x.NonResourceAttributes.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys454) + } // end switch yys454 + } // end for yyj454 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2077,16 +4975,16 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj457 int + var yyb457 bool + var yyhl457 bool = l >= 0 + yyj457++ + if yyhl457 { + yyb457 = yyj457 > l } else { - yyb6 = r.CheckBreak() + yyb457 = r.CheckBreak() } - if yyb6 { + if yyb457 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2101,13 +4999,13 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 } x.ResourceAttributes.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj457++ + if yyhl457 { + yyb457 = yyj457 > l } else { - yyb6 = r.CheckBreak() + yyb457 = r.CheckBreak() } - if yyb6 { + if yyb457 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2123,17 +5021,17 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 x.NonResourceAttributes.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj457++ + if yyhl457 { + yyb457 = yyj457 > l } else { - yyb6 = r.CheckBreak() + yyb457 = r.CheckBreak() } - if yyb6 { + if yyb457 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj457-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2145,33 +5043,33 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym460 := z.EncBinary() + _ = yym460 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn461 = 3 + for _, b := range yyq461 { if b { - yynn2++ + yynn461++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn461) + yynn461 = 0 } - if yyr2 || yy2arr2 { + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym463 := z.EncBinary() + _ = yym463 if false { } else { r.EncodeBool(bool(x.Allowed)) @@ -2180,17 +5078,17 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Allowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym464 := z.EncBinary() + _ = yym464 if false { } else { r.EncodeBool(bool(x.Allowed)) } } - if yyr2 || yy2arr2 { + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym466 := z.EncBinary() + _ = yym466 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -2199,14 +5097,33 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym467 := z.EncBinary() + _ = yym467 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } - if yyr2 || yy2arr2 { + if yyr461 || yy2arr461 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym469 := z.EncBinary() + _ = yym469 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("EvaluationError")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym470 := z.EncBinary() + _ = yym470 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) + } + } + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2219,25 +5136,25 @@ func (x *SubjectAccessReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym471 := z.DecBinary() + _ = yym471 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct472 := r.ContainerType() + if yyct472 == codecSelferValueTypeMap1234 { + yyl472 := r.ReadMapStart() + if yyl472 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl472, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct472 == codecSelferValueTypeArray1234 { + yyl472 := r.ReadArrayStart() + if yyl472 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl472, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2249,12 +5166,12 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -2263,10 +5180,10 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys473Slc = r.DecodeBytes(yys473Slc, true, true) + yys473 := string(yys473Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys473 { case "Allowed": if r.TryDecodeAsNil() { x.Allowed = false @@ -2279,10 +5196,16 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } else { x.Reason = string(r.DecodeString()) } + case "EvaluationError": + if r.TryDecodeAsNil() { + x.EvaluationError = "" + } else { + x.EvaluationError = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys473) + } // end switch yys473 + } // end for yyj473 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2290,16 +5213,16 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj477 int + var yyb477 bool + var yyhl477 bool = l >= 0 + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb6 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb6 { + if yyb477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2309,13 +5232,13 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Allowed = bool(r.DecodeBool()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb6 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb6 { + if yyb477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2325,229 +5248,343 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Reason = string(r.DecodeString()) } + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l + } else { + yyb477 = r.CheckBreak() + } + if yyb477 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvaluationError = "" + } else { + x.EvaluationError = string(r.DecodeString()) + } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb6 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb6 { + if yyb477 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj477-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { +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 _, yyv481 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy482 := &yyv481 + yy482.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 + + 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 yyl483 > 0 { + var yyrr483, yyrl483 int + var yyrt483 bool + if yyl483 > cap(yyv483) { + + 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 { + yyv483 = make([]pkg2_api.OwnerReference, yyrl483) + } + } else { + yyv483 = make([]pkg2_api.OwnerReference, yyrl483) + } + yyc483 = true + yyrr483 = len(yyv483) + if yyrg483 { + copy(yyv483, yyv2483) + } + } else if yyl483 != len(yyv483) { + yyv483 = yyv483[:yyl483] + yyc483 = true + } + yyj483 := 0 + for ; yyj483 < yyrr483; yyj483++ { + yyh483.ElemContainerState(yyj483) + if r.TryDecodeAsNil() { + yyv483[yyj483] = pkg2_api.OwnerReference{} + } else { + yyv484 := &yyv483[yyj483] + yyv484.CodecDecodeSelf(d) + } + + } + if yyrt483 { + for ; yyj483 < yyl483; yyj483++ { + yyv483 = append(yyv483, pkg2_api.OwnerReference{}) + yyh483.ElemContainerState(yyj483) + if r.TryDecodeAsNil() { + yyv483[yyj483] = pkg2_api.OwnerReference{} + } else { + yyv485 := &yyv483[yyj483] + yyv485.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj483 := 0 + for ; !r.CheckBreak(); yyj483++ { + + if yyj483 >= len(yyv483) { + yyv483 = append(yyv483, pkg2_api.OwnerReference{}) // var yyz483 pkg2_api.OwnerReference + yyc483 = true + } + yyh483.ElemContainerState(yyj483) + if yyj483 < len(yyv483) { + if r.TryDecodeAsNil() { + yyv483[yyj483] = pkg2_api.OwnerReference{} + } else { + yyv486 := &yyv483[yyj483] + yyv486.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj483 < len(yyv483) { + yyv483 = yyv483[:yyj483] + yyc483 = true + } else if yyj483 == 0 && yyv483 == nil { + yyv483 = []pkg2_api.OwnerReference{} + yyc483 = true + } + } + yyh483.End() + if yyc483 { + *v = yyv483 + } +} + +func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { + for yyk487, yyv487 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym2 := z.EncBinary() - _ = yym2 + yym488 := z.EncBinary() + _ = yym488 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1)) + r.EncodeString(codecSelferC_UTF81234, string(yyk487)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv1 == nil { + if yyv487 == nil { r.EncodeNil() } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - z.F.EncSliceStringV(yyv1, false, e) - } + yyv487.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { +func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) - yyv1 = make(map[string][]string, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 []string - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + 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 yymk489 string + var yymv489 ExtraValue + var yymg489 bool + if yybh489.MapValueReset { + yymg489 = true + } + if yyl489 > 0 { + for yyj489 := 0; yyj489 < yyl489; yyj489++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk489 = "" } else { - yymk1 = string(r.DecodeString()) + yymk489 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg489 { + yymv489 = yyv489[yymk489] } else { - yymv1 = nil + yymv489 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv489 = nil } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 - if false { - } else { - z.F.DecSliceStringX(yyv3, false, d) - } + yyv491 := &yymv489 + yyv491.CodecDecodeSelf(d) } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv489 != nil { + yyv489[yymk489] = yymv489 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl489 < 0 { + for yyj489 := 0; !r.CheckBreak(); yyj489++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk489 = "" } else { - yymk1 = string(r.DecodeString()) + yymk489 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg489 { + yymv489 = yyv489[yymk489] } else { - yymv1 = nil + yymv489 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv489 = nil } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } + yyv493 := &yymv489 + yyv493.CodecDecodeSelf(d) } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv489 != nil { + yyv489[yymk489] = yymv489 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) encSlicestring(v []string, e *codec1978.Encoder) { +func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv494 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2 := z.EncBinary() - _ = yym2 + yym495 := z.EncBinary() + _ = yym495 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1)) + r.EncodeString(codecSelferC_UTF81234, string(yyv494)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { +func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []string{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl496 > 0 { + var yyrr496, yyrl496 int + var yyrt496 bool + if yyl496 > cap(yyv496) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl496, yyrt496 = z.DecInferLen(yyl496, z.DecBasicHandle().MaxInitLen, 16) + if yyrt496 { + if yyrl496 <= cap(yyv496) { + yyv496 = yyv496[:yyrl496] } else { - yyv1 = make([]string, yyrl1) + yyv496 = make([]string, yyrl496) } } else { - yyv1 = make([]string, yyrl1) + yyv496 = make([]string, yyrl496) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc496 = true + yyrr496 = len(yyv496) + } else if yyl496 != len(yyv496) { + yyv496 = yyv496[:yyl496] + yyc496 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj496 := 0 + for ; yyj496 < yyrr496; yyj496++ { + yyh496.ElemContainerState(yyj496) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv496[yyj496] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv496[yyj496] = string(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt496 { + for ; yyj496 < yyl496; yyj496++ { + yyv496 = append(yyv496, "") + yyh496.ElemContainerState(yyj496) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv496[yyj496] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv496[yyj496] = string(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj496 := 0 + for ; !r.CheckBreak(); yyj496++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 string - yyc1 = true + if yyj496 >= len(yyv496) { + yyv496 = append(yyv496, "") // var yyz496 string + yyc496 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh496.ElemContainerState(yyj496) + if yyj496 < len(yyv496) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv496[yyj496] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv496[yyj496] = string(r.DecodeString()) } } else { @@ -2555,16 +5592,16 @@ func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []string{} - yyc1 = true + if yyj496 < len(yyv496) { + yyv496 = yyv496[:yyj496] + yyc496 = true + } else if yyj496 == 0 && yyv496 == nil { + yyv496 = []string{} + yyc496 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh496.End() + if yyc496 { + *v = yyv496 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.go index afa2c4273c..33ad58c353 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/types.go @@ -17,13 +17,19 @@ limitations under the License. package authorization import ( + "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/unversioned" ) +// +genclient=true +// +nonNamespaced=true +// +noMethods=true + // SubjectAccessReview checks whether or not a user or group can perform an action. Not filling in a // spec.namespace means "in all namespaces". type SubjectAccessReview struct { unversioned.TypeMeta + api.ObjectMeta // Spec holds information about the request being evaluated Spec SubjectAccessReviewSpec @@ -37,6 +43,7 @@ type SubjectAccessReview struct { // to check whether they can perform an action type SelfSubjectAccessReview struct { unversioned.TypeMeta + api.ObjectMeta // Spec holds information about the request being evaluated. Spec SelfSubjectAccessReviewSpec @@ -50,6 +57,7 @@ type SelfSubjectAccessReview struct { // checking. type LocalSubjectAccessReview struct { unversioned.TypeMeta + api.ObjectMeta // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace // you made the request against. If empty, it is defaulted. @@ -103,9 +111,13 @@ type SubjectAccessReviewSpec struct { Groups []string // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer // it needs a reflection here. - Extra map[string][]string + Extra map[string]ExtraValue } +// ExtraValue masks the value so protobuf can generate +// +protobuf.nullable=true +type ExtraValue []string + // SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAttributes // and NonResourceAttributes must be set type SelfSubjectAccessReviewSpec struct { @@ -121,4 +133,8 @@ type SubjectAccessReviewStatus struct { Allowed bool // Reason is optional. It indicates why a request was allowed or denied. Reason string + // EvaluationError is an indication that some error occurred during the authorization check. + // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. + // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + EvaluationError string } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion.go index cd03e61b07..fa88791257 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion.go @@ -20,11 +20,7 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addConversionFuncs(scheme *runtime.Scheme) { +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions - err := scheme.AddConversionFuncs() - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + return scheme.AddConversionFuncs() } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/deep_copy_generated.go deleted file mode 100644 index 23d2edf03d..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/deep_copy_generated.go +++ /dev/null @@ -1,149 +0,0 @@ -// +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 v1beta1 - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1beta1_LocalSubjectAccessReview, - DeepCopy_v1beta1_NonResourceAttributes, - DeepCopy_v1beta1_ResourceAttributes, - DeepCopy_v1beta1_SelfSubjectAccessReview, - DeepCopy_v1beta1_SelfSubjectAccessReviewSpec, - DeepCopy_v1beta1_SubjectAccessReview, - DeepCopy_v1beta1_SubjectAccessReviewSpec, - DeepCopy_v1beta1_SubjectAccessReviewStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1beta1_LocalSubjectAccessReview(in LocalSubjectAccessReview, out *LocalSubjectAccessReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1beta1_NonResourceAttributes(in NonResourceAttributes, out *NonResourceAttributes, c *conversion.Cloner) error { - out.Path = in.Path - out.Verb = in.Verb - return nil -} - -func DeepCopy_v1beta1_ResourceAttributes(in ResourceAttributes, out *ResourceAttributes, c *conversion.Cloner) error { - out.Namespace = in.Namespace - out.Verb = in.Verb - out.Group = in.Group - out.Version = in.Version - out.Resource = in.Resource - out.Subresource = in.Subresource - out.Name = in.Name - return nil -} - -func DeepCopy_v1beta1_SelfSubjectAccessReview(in SelfSubjectAccessReview, out *SelfSubjectAccessReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, c *conversion.Cloner) error { - if in.ResourceAttributes != nil { - in, out := in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = *in - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = *in - } else { - out.NonResourceAttributes = nil - } - return nil -} - -func DeepCopy_v1beta1_SubjectAccessReview(in SubjectAccessReview, out *SubjectAccessReview, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1beta1_SubjectAccessReviewSpec(in SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, c *conversion.Cloner) error { - if in.ResourceAttributes != nil { - in, out := in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = *in - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = *in - } else { - out.NonResourceAttributes = nil - } - out.User = in.User - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Groups = nil - } - if in.Extra != nil { - in, out := in.Extra, &out.Extra - *out = make(map[string][]string) - for key, val := range in { - if newVal, err := c.DeepCopy(val); err != nil { - return err - } else { - (*out)[key] = newVal.([]string) - } - } - } else { - out.Extra = nil - } - return nil -} - -func DeepCopy_v1beta1_SubjectAccessReviewStatus(in SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, c *conversion.Cloner) error { - out.Allowed = in.Allowed - out.Reason = in.Reason - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/defaults.go index f9dda995e3..57dd337dac 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/defaults.go @@ -20,6 +20,6 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs() +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs() } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/doc.go index a6f2c27b10..3b756551e1 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/doc.go @@ -17,4 +17,5 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/authorization +// +groupName=authorization.k8s.io package v1beta1 diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.pb.go new file mode 100644 index 0000000000..180bbbd144 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.pb.go @@ -0,0 +1,2341 @@ +/* +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/authorization/v1beta1/generated.proto +// DO NOT EDIT! + +/* + Package v1beta1 is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.proto + + It has these top-level messages: + ExtraValue + LocalSubjectAccessReview + NonResourceAttributes + ResourceAttributes + SelfSubjectAccessReview + SelfSubjectAccessReviewSpec + SubjectAccessReview + SubjectAccessReviewSpec + SubjectAccessReviewStatus +*/ +package v1beta1 + +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 *ExtraValue) Reset() { *m = ExtraValue{} } +func (*ExtraValue) ProtoMessage() {} +func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *LocalSubjectAccessReview) Reset() { *m = LocalSubjectAccessReview{} } +func (*LocalSubjectAccessReview) ProtoMessage() {} +func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{1} +} + +func (m *NonResourceAttributes) Reset() { *m = NonResourceAttributes{} } +func (*NonResourceAttributes) ProtoMessage() {} +func (*NonResourceAttributes) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *ResourceAttributes) Reset() { *m = ResourceAttributes{} } +func (*ResourceAttributes) ProtoMessage() {} +func (*ResourceAttributes) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *SelfSubjectAccessReview) Reset() { *m = SelfSubjectAccessReview{} } +func (*SelfSubjectAccessReview) ProtoMessage() {} +func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *SelfSubjectAccessReviewSpec) Reset() { *m = SelfSubjectAccessReviewSpec{} } +func (*SelfSubjectAccessReviewSpec) ProtoMessage() {} +func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{5} +} + +func (m *SubjectAccessReview) Reset() { *m = SubjectAccessReview{} } +func (*SubjectAccessReview) ProtoMessage() {} +func (*SubjectAccessReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *SubjectAccessReviewSpec) Reset() { *m = SubjectAccessReviewSpec{} } +func (*SubjectAccessReviewSpec) ProtoMessage() {} +func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *SubjectAccessReviewStatus) Reset() { *m = SubjectAccessReviewStatus{} } +func (*SubjectAccessReviewStatus) ProtoMessage() {} +func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{8} +} + +func init() { + proto.RegisterType((*ExtraValue)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.ExtraValue") + proto.RegisterType((*LocalSubjectAccessReview)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.LocalSubjectAccessReview") + proto.RegisterType((*NonResourceAttributes)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.NonResourceAttributes") + proto.RegisterType((*ResourceAttributes)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.ResourceAttributes") + proto.RegisterType((*SelfSubjectAccessReview)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.SelfSubjectAccessReview") + proto.RegisterType((*SelfSubjectAccessReviewSpec)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.SelfSubjectAccessReviewSpec") + proto.RegisterType((*SubjectAccessReview)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.SubjectAccessReview") + proto.RegisterType((*SubjectAccessReviewSpec)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.SubjectAccessReviewSpec") + proto.RegisterType((*SubjectAccessReviewStatus)(nil), "k8s.io.kubernetes.pkg.apis.authorization.v1beta1.SubjectAccessReviewStatus") +} +func (m ExtraValue) 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 ExtraValue) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m) > 0 { + for _, s := range m { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *LocalSubjectAccessReview) 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 *LocalSubjectAccessReview) 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 *NonResourceAttributes) 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 *NonResourceAttributes) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Verb))) + i += copy(data[i:], m.Verb) + return i, nil +} + +func (m *ResourceAttributes) 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 *ResourceAttributes) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Namespace))) + i += copy(data[i:], m.Namespace) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Verb))) + i += copy(data[i:], m.Verb) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Version))) + i += copy(data[i:], m.Version) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Resource))) + i += copy(data[i:], m.Resource) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Subresource))) + i += copy(data[i:], m.Subresource) + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + return i, nil +} + +func (m *SelfSubjectAccessReview) 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 *SelfSubjectAccessReview) 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())) + n4, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n5, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n6, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + return i, nil +} + +func (m *SelfSubjectAccessReviewSpec) 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 *SelfSubjectAccessReviewSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ResourceAttributes != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ResourceAttributes.Size())) + n7, err := m.ResourceAttributes.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.NonResourceAttributes != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.NonResourceAttributes.Size())) + n8, err := m.NonResourceAttributes.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + } + return i, nil +} + +func (m *SubjectAccessReview) 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 *SubjectAccessReview) 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())) + n9, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n10, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n10 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n11, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n11 + return i, nil +} + +func (m *SubjectAccessReviewSpec) 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 *SubjectAccessReviewSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ResourceAttributes != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ResourceAttributes.Size())) + n12, err := m.ResourceAttributes.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.NonResourceAttributes != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.NonResourceAttributes.Size())) + n13, err := m.NonResourceAttributes.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.User))) + i += copy(data[i:], m.User) + if len(m.Groups) > 0 { + for _, s := range m.Groups { + data[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.Extra) > 0 { + for k := range m.Extra { + data[i] = 0x2a + i++ + v := m.Extra[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n14, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n14 + } + } + return i, nil +} + +func (m *SubjectAccessReviewStatus) 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 *SubjectAccessReviewStatus) 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) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.EvaluationError))) + i += copy(data[i:], m.EvaluationError) + 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 ExtraValue) Size() (n int) { + var l int + _ = l + if len(m) > 0 { + for _, s := range m { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *LocalSubjectAccessReview) 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 *NonResourceAttributes) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Verb) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceAttributes) Size() (n int) { + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Verb) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Resource) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Subresource) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SelfSubjectAccessReview) 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 *SelfSubjectAccessReviewSpec) Size() (n int) { + var l int + _ = l + if m.ResourceAttributes != nil { + l = m.ResourceAttributes.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NonResourceAttributes != nil { + l = m.NonResourceAttributes.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *SubjectAccessReview) 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 *SubjectAccessReviewSpec) Size() (n int) { + var l int + _ = l + if m.ResourceAttributes != nil { + l = m.ResourceAttributes.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NonResourceAttributes != nil { + l = m.NonResourceAttributes.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.User) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Groups) > 0 { + for _, s := range m.Groups { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Extra) > 0 { + for k, v := range m.Extra { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *SubjectAccessReviewStatus) Size() (n int) { + var l int + _ = l + n += 2 + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.EvaluationError) + 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 *LocalSubjectAccessReview) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LocalSubjectAccessReview{`, + `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(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NonResourceAttributes) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NonResourceAttributes{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceAttributes) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceAttributes{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, + `Group:` + fmt.Sprintf("%v", this.Group) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, + `Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *SelfSubjectAccessReview) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SelfSubjectAccessReview{`, + `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(), "SelfSubjectAccessReviewSpec", "SelfSubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SelfSubjectAccessReviewSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SelfSubjectAccessReviewSpec{`, + `ResourceAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ResourceAttributes), "ResourceAttributes", "ResourceAttributes", 1) + `,`, + `NonResourceAttributes:` + strings.Replace(fmt.Sprintf("%v", this.NonResourceAttributes), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, + `}`, + }, "") + return s +} +func (this *SubjectAccessReview) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SubjectAccessReview{`, + `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(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SubjectAccessReviewSpec) String() string { + if this == nil { + return "nil" + } + keysForExtra := make([]string, 0, len(this.Extra)) + for k := range this.Extra { + keysForExtra = append(keysForExtra, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) + mapStringForExtra := "map[string]ExtraValue{" + for _, k := range keysForExtra { + mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) + } + mapStringForExtra += "}" + s := strings.Join([]string{`&SubjectAccessReviewSpec{`, + `ResourceAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ResourceAttributes), "ResourceAttributes", "ResourceAttributes", 1) + `,`, + `NonResourceAttributes:` + strings.Replace(fmt.Sprintf("%v", this.NonResourceAttributes), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, + `User:` + fmt.Sprintf("%v", this.User) + `,`, + `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, + `Extra:` + mapStringForExtra + `,`, + `}`, + }, "") + return s +} +func (this *SubjectAccessReviewStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SubjectAccessReviewStatus{`, + `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, + `}`, + }, "") + 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 *ExtraValue) 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: ExtraValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", 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 = append(*m, 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 *LocalSubjectAccessReview) 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: LocalSubjectAccessReview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocalSubjectAccessReview: 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 *NonResourceAttributes) 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: NonResourceAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NonResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Verb", 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.Verb = 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 *ResourceAttributes) 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: ResourceAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Verb", 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.Verb = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", 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.Resource = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subresource", 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.Subresource = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = 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 *SelfSubjectAccessReview) 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: SelfSubjectAccessReview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SelfSubjectAccessReview: 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 *SelfSubjectAccessReviewSpec) 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: SelfSubjectAccessReviewSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", 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.ResourceAttributes == nil { + m.ResourceAttributes = &ResourceAttributes{} + } + if err := m.ResourceAttributes.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", 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.NonResourceAttributes == nil { + m.NonResourceAttributes = &NonResourceAttributes{} + } + if err := m.NonResourceAttributes.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 *SubjectAccessReview) 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: SubjectAccessReview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubjectAccessReview: 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 *SubjectAccessReviewSpec) 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: SubjectAccessReviewSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", 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.ResourceAttributes == nil { + m.ResourceAttributes = &ResourceAttributes{} + } + if err := m.ResourceAttributes.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", 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.NonResourceAttributes == nil { + m.NonResourceAttributes = &NonResourceAttributes{} + } + if err := m.NonResourceAttributes.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Groups", 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.Groups = append(m.Groups, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Extra", 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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &ExtraValue{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Extra == nil { + m.Extra = make(map[string]ExtraValue) + } + m.Extra[mapkey] = *mapvalue + 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 *SubjectAccessReviewStatus) 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: SubjectAccessReviewStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubjectAccessReviewStatus: 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 + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", 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.EvaluationError = 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{ + // 864 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x56, 0x4d, 0x4f, 0x1b, 0x47, + 0x18, 0xf6, 0xf7, 0xc7, 0xd0, 0x16, 0x3a, 0x88, 0x62, 0x5c, 0x09, 0x5b, 0xae, 0x54, 0x81, 0x04, + 0xbb, 0x05, 0x09, 0x15, 0xa1, 0x1e, 0xea, 0x55, 0x2d, 0x84, 0x5a, 0x68, 0x35, 0x6e, 0x51, 0xd5, + 0x9e, 0x66, 0xd7, 0x83, 0xd9, 0xd8, 0xde, 0xb5, 0x66, 0x66, 0x4d, 0xc8, 0x89, 0x1f, 0x90, 0x43, + 0x8e, 0x1c, 0xf3, 0x17, 0xf2, 0x07, 0x72, 0x0d, 0x47, 0x72, 0x89, 0x12, 0x29, 0x42, 0x09, 0xf9, + 0x17, 0x39, 0x65, 0x76, 0x76, 0xec, 0xc5, 0x78, 0x9d, 0xc8, 0x09, 0x8a, 0x72, 0xe0, 0x30, 0xd2, + 0xce, 0xfb, 0xf1, 0xbc, 0xcf, 0xcc, 0x3c, 0xb3, 0xef, 0x80, 0x5f, 0x5b, 0x9b, 0x4c, 0xb3, 0x5d, + 0xbd, 0xe5, 0x99, 0x84, 0x3a, 0x84, 0x13, 0xa6, 0x77, 0x5b, 0x4d, 0x1d, 0x77, 0x6d, 0xa6, 0x63, + 0x8f, 0x1f, 0xba, 0xd4, 0xbe, 0x87, 0xb9, 0xed, 0x3a, 0x7a, 0x6f, 0xcd, 0x24, 0x1c, 0xaf, 0xe9, + 0x4d, 0xe2, 0x10, 0x8a, 0x39, 0x69, 0x68, 0x5d, 0xea, 0x72, 0x17, 0xfe, 0x14, 0x20, 0x68, 0x21, + 0x82, 0x26, 0x10, 0x34, 0x1f, 0x41, 0x1b, 0x42, 0xd0, 0x14, 0x42, 0x71, 0xb5, 0x69, 0xf3, 0x43, + 0xcf, 0xd4, 0x2c, 0xb7, 0xa3, 0x37, 0xdd, 0xa6, 0xab, 0x4b, 0x20, 0xd3, 0x3b, 0x90, 0x33, 0x39, + 0x91, 0x5f, 0x41, 0x81, 0xe2, 0xfa, 0x58, 0x8a, 0x3a, 0x25, 0xcc, 0xf5, 0xa8, 0x45, 0xae, 0x93, + 0x2a, 0x6e, 0x8c, 0xcf, 0xf1, 0x9c, 0x1e, 0xa1, 0x4c, 0xf0, 0x21, 0x8d, 0x91, 0xb4, 0x95, 0xf1, + 0x69, 0xbd, 0x91, 0x95, 0x17, 0x57, 0xa3, 0xa3, 0xa9, 0xe7, 0x70, 0xbb, 0x33, 0xca, 0x69, 0x2d, + 0x3a, 0xdc, 0xe3, 0x76, 0x5b, 0xb7, 0x1d, 0xce, 0x38, 0xbd, 0x9e, 0x52, 0xf9, 0x19, 0x80, 0xda, + 0x5d, 0x4e, 0xf1, 0x3e, 0x6e, 0x7b, 0x04, 0x96, 0x40, 0xda, 0xe6, 0xa4, 0xc3, 0x0a, 0xf1, 0x72, + 0x72, 0x29, 0x6f, 0xe4, 0x2f, 0x2f, 0x4a, 0xe9, 0x1d, 0xdf, 0x80, 0x02, 0xfb, 0x56, 0xee, 0xf4, + 0x61, 0x29, 0x76, 0xf2, 0xb2, 0x1c, 0xab, 0x3c, 0x4b, 0x80, 0xc2, 0x1f, 0xae, 0x85, 0xdb, 0x75, + 0xcf, 0xbc, 0x43, 0x2c, 0x5e, 0xb5, 0x2c, 0xc2, 0x18, 0x22, 0x3d, 0x9b, 0x1c, 0xc1, 0x7f, 0x41, + 0xae, 0x23, 0x0e, 0xa2, 0x81, 0x39, 0x16, 0x50, 0xf1, 0xa5, 0xa9, 0xf5, 0x25, 0x6d, 0xec, 0x21, + 0x8a, 0x53, 0xd3, 0xfe, 0x94, 0x18, 0xbb, 0x22, 0xc7, 0x80, 0x67, 0x17, 0xa5, 0x98, 0x28, 0x0c, + 0x42, 0x1b, 0x1a, 0xa0, 0xc1, 0x16, 0x48, 0xb1, 0x2e, 0xb1, 0x0a, 0x09, 0x89, 0xba, 0xa3, 0x4d, + 0x2a, 0x0d, 0x2d, 0x82, 0x6e, 0x5d, 0x00, 0x1a, 0x5f, 0xa9, 0xb2, 0x29, 0x7f, 0x86, 0x64, 0x11, + 0xc8, 0x40, 0x86, 0x71, 0xcc, 0x3d, 0x56, 0x48, 0xca, 0x72, 0xbf, 0xdf, 0x4c, 0x39, 0x09, 0x69, + 0x7c, 0xa3, 0x0a, 0x66, 0x82, 0x39, 0x52, 0xa5, 0x2a, 0xff, 0x83, 0xb9, 0x3d, 0xd7, 0x41, 0x4a, + 0x77, 0x55, 0xce, 0xa9, 0x6d, 0x7a, 0xa2, 0x12, 0x2c, 0x83, 0x54, 0x17, 0xf3, 0x43, 0xb9, 0xa1, + 0xf9, 0x90, 0xef, 0x5f, 0xc2, 0x86, 0xa4, 0xc7, 0x8f, 0x10, 0xca, 0x33, 0xe5, 0xe6, 0x5c, 0x89, + 0xd8, 0x17, 0x36, 0x24, 0x3d, 0x95, 0xc7, 0x09, 0x00, 0x23, 0xa0, 0x75, 0x90, 0x77, 0x70, 0x87, + 0xb0, 0x2e, 0xb6, 0x88, 0xc2, 0xff, 0x56, 0x65, 0xe7, 0xf7, 0xfa, 0x0e, 0x14, 0xc6, 0x7c, 0xb8, + 0x12, 0xfc, 0x01, 0xa4, 0x9b, 0xd4, 0xf5, 0xba, 0x72, 0xeb, 0xf2, 0xc6, 0xd7, 0x2a, 0x24, 0xbd, + 0xed, 0x1b, 0x51, 0xe0, 0x83, 0xcb, 0x20, 0xab, 0xae, 0x4a, 0x21, 0x25, 0xc3, 0xa6, 0x55, 0x58, + 0x76, 0x3f, 0x30, 0xa3, 0xbe, 0x1f, 0xae, 0x80, 0x5c, 0xff, 0x2e, 0x16, 0xd2, 0x32, 0x76, 0x46, + 0xc5, 0xe6, 0xfa, 0x0b, 0x42, 0x83, 0x08, 0xb8, 0x01, 0xa6, 0x98, 0x67, 0x0e, 0x12, 0x32, 0x32, + 0x61, 0x56, 0x25, 0x4c, 0xd5, 0x43, 0x17, 0xba, 0x1a, 0xe7, 0x2f, 0xcb, 0x5f, 0x63, 0x21, 0x3b, + 0xbc, 0x2c, 0x7f, 0x0b, 0x90, 0xf4, 0x54, 0x5e, 0x24, 0xc0, 0x7c, 0x9d, 0xb4, 0x0f, 0x3e, 0xaf, + 0xea, 0xdd, 0x21, 0xd5, 0xef, 0x7e, 0x84, 0x0c, 0xa3, 0x29, 0x7f, 0x59, 0xca, 0x7f, 0x92, 0x00, + 0xdf, 0xbf, 0x87, 0x28, 0xbc, 0x1f, 0x07, 0x90, 0x8e, 0x88, 0x57, 0x6d, 0xf5, 0x6f, 0x93, 0x33, + 0x1c, 0xbd, 0x08, 0xc6, 0x77, 0x82, 0x56, 0xc4, 0x05, 0x41, 0x11, 0x75, 0xe1, 0x69, 0x1c, 0xcc, + 0x39, 0x51, 0x37, 0x55, 0x1d, 0xd3, 0xf6, 0xe4, 0x8c, 0x22, 0x2f, 0xbe, 0xb1, 0x20, 0x48, 0x45, + 0xff, 0x13, 0x50, 0x34, 0x81, 0xca, 0xd3, 0x04, 0x98, 0xbd, 0xfd, 0x2f, 0xdf, 0xac, 0x3a, 0xdf, + 0xa6, 0xc4, 0xcd, 0xbf, 0x55, 0xe6, 0xa7, 0x29, 0x73, 0xd0, 0x38, 0x92, 0xc3, 0x7f, 0xd8, 0x7f, + 0x18, 0xa1, 0xaa, 0x71, 0x94, 0xfb, 0x8d, 0x23, 0x25, 0xdf, 0x20, 0xc0, 0x3f, 0x0a, 0xd9, 0x34, + 0x58, 0xbf, 0x6b, 0x1c, 0x83, 0x34, 0xf1, 0xdf, 0x2c, 0xa2, 0x0f, 0x24, 0xc5, 0x6a, 0xfe, 0xbe, + 0x31, 0xb1, 0x69, 0xf2, 0x29, 0x54, 0x73, 0x38, 0x3d, 0x0e, 0x1b, 0x96, 0xb4, 0xa1, 0xa0, 0x62, + 0xb1, 0xa7, 0x9e, 0x4b, 0x32, 0x06, 0xce, 0x80, 0x64, 0x8b, 0x1c, 0x07, 0x0d, 0x13, 0xf9, 0x9f, + 0x10, 0x81, 0x74, 0xcf, 0x7f, 0x49, 0xa9, 0x8d, 0xfe, 0x65, 0x72, 0x6a, 0xe1, 0x6b, 0x0c, 0x05, + 0x50, 0x5b, 0x89, 0xcd, 0x78, 0xe5, 0x51, 0x1c, 0x2c, 0x8c, 0x95, 0xac, 0xdf, 0x46, 0x71, 0xbb, + 0xed, 0x1e, 0x91, 0x86, 0xe4, 0x92, 0x0b, 0xdb, 0x68, 0x35, 0x30, 0xa3, 0xbe, 0x1f, 0xfe, 0x08, + 0x32, 0x94, 0x60, 0x26, 0x1a, 0x6e, 0xd0, 0xba, 0x07, 0x6a, 0x47, 0xd2, 0x8a, 0x94, 0x17, 0x56, + 0xc1, 0x34, 0xf1, 0xcb, 0x4b, 0x72, 0x35, 0x4a, 0x5d, 0xaa, 0x8e, 0x6c, 0x5e, 0x25, 0x4c, 0xd7, + 0x86, 0xdd, 0xe8, 0x7a, 0xbc, 0xb1, 0x7c, 0xf6, 0x7a, 0x31, 0x76, 0x2e, 0xc6, 0x73, 0x31, 0x4e, + 0x2e, 0x17, 0xe3, 0x67, 0x62, 0x9c, 0x8b, 0xf1, 0x4a, 0x8c, 0x07, 0x6f, 0x16, 0x63, 0xff, 0x65, + 0xd5, 0xa2, 0xdf, 0x05, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xa4, 0x8c, 0xef, 0x24, 0x0c, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.proto new file mode 100644 index 0000000000..bd98cee070 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/generated.proto @@ -0,0 +1,160 @@ +/* +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.authorization.v1beta1; + +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 = "v1beta1"; + +// ExtraValue masks the value so protobuf can generate +// +protobuf.nullable=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +message ExtraValue { + // items, if empty, will result in an empty slice + + repeated string items = 1; +} + +// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. +// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions +// checking. +message LocalSubjectAccessReview { + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace + // you made the request against. If empty, it is defaulted. + optional SubjectAccessReviewSpec spec = 2; + + // Status is filled in by the server and indicates whether the request is allowed or not + optional SubjectAccessReviewStatus status = 3; +} + +// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface +message NonResourceAttributes { + // Path is the URL path of the request + optional string path = 1; + + // Verb is the standard HTTP verb + optional string verb = 2; +} + +// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface +message ResourceAttributes { + // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces + // "" (empty) is defaulted for LocalSubjectAccessReviews + // "" (empty) is empty for cluster-scoped resources + // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + optional string namespace = 1; + + // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + optional string verb = 2; + + // Group is the API Group of the Resource. "*" means all. + optional string group = 3; + + // Version is the API Version of the Resource. "*" means all. + optional string version = 4; + + // Resource is one of the existing resource types. "*" means all. + optional string resource = 5; + + // Subresource is one of the existing resource types. "" means none. + optional string subresource = 6; + + // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + optional string name = 7; +} + +// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a +// spec.namespace means "in all namespaces". Self is a special case, because users should always be able +// to check whether they can perform an action +message SelfSubjectAccessReview { + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // Spec holds information about the request being evaluated. user and groups must be empty + optional SelfSubjectAccessReviewSpec spec = 2; + + // Status is filled in by the server and indicates whether the request is allowed or not + optional SubjectAccessReviewStatus status = 3; +} + +// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes +// and NonResourceAuthorizationAttributes must be set +message SelfSubjectAccessReviewSpec { + // ResourceAuthorizationAttributes describes information for a resource access request + optional ResourceAttributes resourceAttributes = 1; + + // NonResourceAttributes describes information for a non-resource access request + optional NonResourceAttributes nonResourceAttributes = 2; +} + +// SubjectAccessReview checks whether or not a user or group can perform an action. +message SubjectAccessReview { + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // Spec holds information about the request being evaluated + optional SubjectAccessReviewSpec spec = 2; + + // Status is filled in by the server and indicates whether the request is allowed or not + optional SubjectAccessReviewStatus status = 3; +} + +// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes +// and NonResourceAuthorizationAttributes must be set +message SubjectAccessReviewSpec { + // ResourceAuthorizationAttributes describes information for a resource access request + optional ResourceAttributes resourceAttributes = 1; + + // NonResourceAttributes describes information for a non-resource access request + optional NonResourceAttributes nonResourceAttributes = 2; + + // User is the user you're testing for. + // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups + optional string verb = 3; + + // Groups is the groups you're testing for. + repeated string group = 4; + + // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer + // it needs a reflection here. + map extra = 5; +} + +// SubjectAccessReviewStatus +message SubjectAccessReviewStatus { + // Allowed is required. True if the action would be allowed, false otherwise. + optional bool allowed = 1; + + // Reason is optional. It indicates why a request was allowed or denied. + optional string reason = 2; + + // EvaluationError is an indication that some error occurred during the authorization check. + // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. + // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + optional string evaluationError = 3; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/register.go index fe99bee3fa..1b072d6152 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/register.go @@ -18,7 +18,9 @@ package v1beta1 import ( "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/runtime" + versionedwatch "k8s.io/kubernetes/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -27,20 +29,24 @@ const GroupName = "authorization.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"} -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, + &v1.ListOptions{}, + &v1.DeleteOptions{}, + &SelfSubjectAccessReview{}, &SubjectAccessReview{}, &LocalSubjectAccessReview{}, ) + + versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } func (obj *LocalSubjectAccessReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.generated.go index 0bd74a1bb4..0e640dea72 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.generated.go @@ -26,8 +26,11 @@ import ( "fmt" codec1978 "github.com/ugorji/go/codec" pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" + pkg2_v1 "k8s.io/kubernetes/pkg/api/v1" + pkg3_types "k8s.io/kubernetes/pkg/types" "reflect" "runtime" + time "time" ) const ( @@ -61,7 +64,10 @@ func init() { } if false { // reference the types, but skip this branch at build/run time var v0 pkg1_unversioned.TypeMeta - _ = v0 + var v1 pkg2_v1.ObjectMeta + var v2 pkg3_types.UID + var v3 time.Time + _, _, _, _ = v0, v1, v2, v3 } } @@ -79,15 +85,16 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool + var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" + yyq2[2] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(5) } else { yynn2 = 1 for _, b := range yyq2 { @@ -100,37 +107,9 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -139,12 +118,12 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym5 := z.EncBinary() + _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -153,9 +132,9 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -164,18 +143,63 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + 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 { @@ -189,25 +213,25 @@ func (x *SubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -219,12 +243,12 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -233,24 +257,10 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "spec": - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys20 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -263,10 +273,31 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } 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 = SubjectAccessReviewSpec{} + } else { + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -274,87 +305,104 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} + x.Kind = "" } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = SubjectAccessReviewSpec{} } else { - x.APIVersion = string(r.DecodeString()) + 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 = SubjectAccessReviewStatus{} + } else { + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb8 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb8 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -366,65 +414,38 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [5]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Kind != "" + yyq33[1] = x.APIVersion != "" + yyq33[2] = true + yyq33[4] = true + var yynn33 int + if yyr33 || yy2arr33 { + r.EncodeArrayStart(5) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn33 = 1 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Status - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -433,23 +454,23 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -458,19 +479,64 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq33[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym39 := z.EncBinary() + _ = yym39 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[2] { + yy41 := &x.ObjectMeta + yy41.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq33[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy42 := &x.ObjectMeta + yy42.CodecEncodeSelf(e) + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy44 := &x.Spec + yy44.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy45 := &x.Spec + yy45.CodecEncodeSelf(e) + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[4] { + yy47 := &x.Status + yy47.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq33[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy48 := &x.Status + yy48.CodecEncodeSelf(e) + } + } + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -483,25 +549,25 @@ func (x *SelfSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym49 := z.DecBinary() + _ = yym49 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct50 := r.ContainerType() + if yyct50 == codecSelferValueTypeMap1234 { + yyl50 := r.ReadMapStart() + if yyl50 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl50, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct50 == codecSelferValueTypeArray1234 { + yyl50 := r.ReadArrayStart() + if yyl50 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl50, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -513,12 +579,12 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys51Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys51Slc + var yyhl51 bool = l >= 0 + for yyj51 := 0; ; yyj51++ { + if yyhl51 { + if yyj51 >= l { break } } else { @@ -527,24 +593,10 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys51Slc = r.DecodeBytes(yys51Slc, true, true) + yys51 := string(yys51Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "spec": - if r.TryDecodeAsNil() { - x.Spec = SelfSubjectAccessReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys51 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -557,10 +609,31 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv54 := &x.ObjectMeta + yyv54.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = SelfSubjectAccessReviewSpec{} + } else { + yyv55 := &x.Spec + yyv55.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv56 := &x.Status + yyv56.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys51) + } // end switch yys51 + } // end for yyj51 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -568,87 +641,104 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj57 int + var yyb57 bool + var yyhl57 bool = l >= 0 + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb8 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb8 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = SelfSubjectAccessReviewSpec{} + x.Kind = "" } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb8 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb8 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb8 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb8 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv60 := &x.ObjectMeta + yyv60.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb8 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb8 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = SelfSubjectAccessReviewSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv61 := &x.Spec + yyv61.CodecDecodeSelf(d) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv62 := &x.Status + yyv62.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb8 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb8 { + if yyb57 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj57-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -660,111 +750,129 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym63 := z.EncBinary() + _ = yym63 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + yysep64 := !z.EncBinary() + yy2arr64 := z.EncBasicHandle().StructToArray + var yyq64 [5]bool + _, _, _ = yysep64, yyq64, yy2arr64 + const yyr64 bool = false + yyq64[0] = x.Kind != "" + yyq64[1] = x.APIVersion != "" + yyq64[2] = true + yyq64[4] = true + var yynn64 int + if yyr64 || yy2arr64 { + r.EncodeArrayStart(5) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn64 = 1 + for _, b := range yyq64 { if b { - yynn2++ + yynn64++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn64) + yynn64 = 0 } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.Spec - yy4.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.Spec - yy6.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { + if yyr64 || yy2arr64 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Status - yy9.CodecEncodeSelf(e) + if yyq64[0] { + yym66 := z.EncBinary() + _ = yym66 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq64[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Status - yy11.CodecEncodeSelf(e) + yym67 := z.EncBinary() + _ = yym67 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr64 || yy2arr64 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq64[1] { + yym69 := z.EncBinary() + _ = yym69 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq64[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym70 := z.EncBinary() + _ = yym70 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr64 || yy2arr64 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq64[2] { + yy72 := &x.ObjectMeta + yy72.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq64[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy73 := &x.ObjectMeta + yy73.CodecEncodeSelf(e) + } + } + if yyr64 || yy2arr64 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy75 := &x.Spec + yy75.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy76 := &x.Spec + yy76.CodecEncodeSelf(e) + } + if yyr64 || yy2arr64 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq64[4] { + yy78 := &x.Status + yy78.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq64[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy79 := &x.Status + yy79.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr64 || yy2arr64 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -777,25 +885,25 @@ func (x *LocalSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym80 := z.DecBinary() + _ = yym80 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct81 := r.ContainerType() + if yyct81 == codecSelferValueTypeMap1234 { + yyl81 := r.ReadMapStart() + if yyl81 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl81, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct81 == codecSelferValueTypeArray1234 { + yyl81 := r.ReadArrayStart() + if yyl81 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl81, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -807,12 +915,12 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys82Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys82Slc + var yyhl82 bool = l >= 0 + for yyj82 := 0; ; yyj82++ { + if yyhl82 { + if yyj82 >= l { break } } else { @@ -821,24 +929,10 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys82Slc = r.DecodeBytes(yys82Slc, true, true) + yys82 := string(yys82Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "spec": - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv4 := &x.Spec - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } + switch yys82 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -851,10 +945,31 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv85 := &x.ObjectMeta + yyv85.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = SubjectAccessReviewSpec{} + } else { + yyv86 := &x.Spec + yyv86.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv87 := &x.Status + yyv87.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys82) + } // end switch yys82 + } // end for yyj82 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -862,87 +977,104 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj88 int + var yyb88 bool + var yyhl88 bool = l >= 0 + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb8 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb8 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} + x.Kind = "" } else { - yyv9 := &x.Spec - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb8 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb8 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} + x.APIVersion = "" } else { - yyv10 := &x.Status - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb8 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb8 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv91 := &x.ObjectMeta + yyv91.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb8 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb8 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = SubjectAccessReviewSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv92 := &x.Spec + yyv92.CodecDecodeSelf(d) + } + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l + } else { + yyb88 = r.CheckBreak() + } + if yyb88 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = SubjectAccessReviewStatus{} + } else { + yyv93 := &x.Status + yyv93.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb8 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb8 { + if yyb88 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj88-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -954,41 +1086,41 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym94 := z.EncBinary() + _ = yym94 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Namespace != "" - yyq2[1] = x.Verb != "" - yyq2[2] = x.Group != "" - yyq2[3] = x.Version != "" - yyq2[4] = x.Resource != "" - yyq2[5] = x.Subresource != "" - yyq2[6] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep95 := !z.EncBinary() + yy2arr95 := z.EncBasicHandle().StructToArray + var yyq95 [7]bool + _, _, _ = yysep95, yyq95, yy2arr95 + const yyr95 bool = false + yyq95[0] = x.Namespace != "" + yyq95[1] = x.Verb != "" + yyq95[2] = x.Group != "" + yyq95[3] = x.Version != "" + yyq95[4] = x.Resource != "" + yyq95[5] = x.Subresource != "" + yyq95[6] = x.Name != "" + var yynn95 int + if yyr95 || yy2arr95 { r.EncodeArrayStart(7) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn95 = 0 + for _, b := range yyq95 { if b { - yynn2++ + yynn95++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn95) + yynn95 = 0 } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq95[0] { + yym97 := z.EncBinary() + _ = yym97 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -997,23 +1129,23 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq95[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym98 := z.EncBinary() + _ = yym98 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq95[1] { + yym100 := z.EncBinary() + _ = yym100 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) @@ -1022,23 +1154,23 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq95[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("verb")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym101 := z.EncBinary() + _ = yym101 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq95[2] { + yym103 := z.EncBinary() + _ = yym103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) @@ -1047,23 +1179,23 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq95[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym104 := z.EncBinary() + _ = yym104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq95[3] { + yym106 := z.EncBinary() + _ = yym106 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Version)) @@ -1072,23 +1204,23 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq95[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("version")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym107 := z.EncBinary() + _ = yym107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Version)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq95[4] { + yym109 := z.EncBinary() + _ = yym109 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -1097,23 +1229,23 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq95[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym110 := z.EncBinary() + _ = yym110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq95[5] { + yym112 := z.EncBinary() + _ = yym112 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) @@ -1122,23 +1254,23 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq95[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subresource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym113 := z.EncBinary() + _ = yym113 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 + if yyq95[6] { + yym115 := z.EncBinary() + _ = yym115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1147,19 +1279,19 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[6] { + if yyq95[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym116 := z.EncBinary() + _ = yym116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr95 || yy2arr95 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1172,25 +1304,25 @@ func (x *ResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym117 := z.DecBinary() + _ = yym117 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct118 := r.ContainerType() + if yyct118 == codecSelferValueTypeMap1234 { + yyl118 := r.ReadMapStart() + if yyl118 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl118, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct118 == codecSelferValueTypeArray1234 { + yyl118 := r.ReadArrayStart() + if yyl118 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl118, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1202,12 +1334,12 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys119Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys119Slc + var yyhl119 bool = l >= 0 + for yyj119 := 0; ; yyj119++ { + if yyhl119 { + if yyj119 >= l { break } } else { @@ -1216,10 +1348,10 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys119Slc = r.DecodeBytes(yys119Slc, true, true) + yys119 := string(yys119Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys119 { case "namespace": if r.TryDecodeAsNil() { x.Namespace = "" @@ -1263,9 +1395,9 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys119) + } // end switch yys119 + } // end for yyj119 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1273,16 +1405,16 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj127 int + var yyb127 bool + var yyhl127 bool = l >= 0 + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1292,13 +1424,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Namespace = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1308,13 +1440,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Verb = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1324,13 +1456,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Group = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1340,13 +1472,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Version = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1356,13 +1488,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Resource = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1372,13 +1504,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Subresource = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1389,17 +1521,17 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj127++ + if yyhl127 { + yyb127 = yyj127 > l } else { - yyb11 = r.CheckBreak() + yyb127 = r.CheckBreak() } - if yyb11 { + if yyb127 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj127-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1411,36 +1543,36 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym135 := z.EncBinary() + _ = yym135 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Path != "" - yyq2[1] = x.Verb != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep136 := !z.EncBinary() + yy2arr136 := z.EncBasicHandle().StructToArray + var yyq136 [2]bool + _, _, _ = yysep136, yyq136, yy2arr136 + const yyr136 bool = false + yyq136[0] = x.Path != "" + yyq136[1] = x.Verb != "" + var yynn136 int + if yyr136 || yy2arr136 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn136 = 0 + for _, b := range yyq136 { if b { - yynn2++ + yynn136++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn136) + yynn136 = 0 } - if yyr2 || yy2arr2 { + if yyr136 || yy2arr136 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq136[0] { + yym138 := z.EncBinary() + _ = yym138 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -1449,23 +1581,23 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq136[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym139 := z.EncBinary() + _ = yym139 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr136 || yy2arr136 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq136[1] { + yym141 := z.EncBinary() + _ = yym141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) @@ -1474,19 +1606,19 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq136[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("verb")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym142 := z.EncBinary() + _ = yym142 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) } } } - if yyr2 || yy2arr2 { + if yyr136 || yy2arr136 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1499,25 +1631,25 @@ func (x *NonResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym143 := z.DecBinary() + _ = yym143 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct144 := r.ContainerType() + if yyct144 == codecSelferValueTypeMap1234 { + yyl144 := r.ReadMapStart() + if yyl144 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl144, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct144 == codecSelferValueTypeArray1234 { + yyl144 := r.ReadArrayStart() + if yyl144 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl144, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1529,12 +1661,12 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys145Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys145Slc + var yyhl145 bool = l >= 0 + for yyj145 := 0; ; yyj145++ { + if yyhl145 { + if yyj145 >= l { break } } else { @@ -1543,10 +1675,10 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys145Slc = r.DecodeBytes(yys145Slc, true, true) + yys145 := string(yys145Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys145 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -1560,9 +1692,9 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.Verb = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys145) + } // end switch yys145 + } // end for yyj145 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1570,16 +1702,16 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj148 int + var yyb148 bool + var yyhl148 bool = l >= 0 + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb6 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb6 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1589,13 +1721,13 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb6 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb6 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1606,17 +1738,17 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.Verb = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb6 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb6 { + if yyb148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1628,37 +1760,37 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym151 := z.EncBinary() + _ = yym151 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.ResourceAttributes != nil - yyq2[1] = x.NonResourceAttributes != nil - yyq2[2] = x.User != "" - yyq2[3] = len(x.Groups) != 0 - yyq2[4] = len(x.Extra) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep152 := !z.EncBinary() + yy2arr152 := z.EncBasicHandle().StructToArray + var yyq152 [5]bool + _, _, _ = yysep152, yyq152, yy2arr152 + const yyr152 bool = false + yyq152[0] = x.ResourceAttributes != nil + yyq152[1] = x.NonResourceAttributes != nil + yyq152[2] = x.User != "" + yyq152[3] = len(x.Groups) != 0 + yyq152[4] = len(x.Extra) != 0 + var yynn152 int + if yyr152 || yy2arr152 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn152 = 0 + for _, b := range yyq152 { if b { - yynn2++ + yynn152++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn152) + yynn152 = 0 } - if yyr2 || yy2arr2 { + if yyr152 || yy2arr152 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq152[0] { if x.ResourceAttributes == nil { r.EncodeNil() } else { @@ -1668,7 +1800,7 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq152[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceAttributes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -1679,9 +1811,9 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr152 || yy2arr152 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq152[1] { if x.NonResourceAttributes == nil { r.EncodeNil() } else { @@ -1691,7 +1823,7 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq152[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nonResourceAttributes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -1702,11 +1834,11 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr152 || yy2arr152 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq152[2] { + yym156 := z.EncBinary() + _ = yym156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -1715,26 +1847,26 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq152[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym157 := z.EncBinary() + _ = yym157 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr2 || yy2arr2 { + if yyr152 || yy2arr152 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq152[3] { if x.Groups == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym159 := z.EncBinary() + _ = yym159 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -1744,15 +1876,15 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq152[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Groups == nil { r.EncodeNil() } else { - yym14 := z.EncBinary() - _ = yym14 + yym160 := z.EncBinary() + _ = yym160 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -1760,40 +1892,40 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr152 || yy2arr152 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq152[4] { if x.Extra == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + yym162 := z.EncBinary() + _ = yym162 if false { } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq152[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("extra")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Extra == nil { r.EncodeNil() } else { - yym17 := z.EncBinary() - _ = yym17 + yym163 := z.EncBinary() + _ = yym163 if false { } else { - h.encMapstringSlicestring((map[string][]string)(x.Extra), e) + h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } } - if yyr2 || yy2arr2 { + if yyr152 || yy2arr152 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1806,25 +1938,25 @@ func (x *SubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym164 := z.DecBinary() + _ = yym164 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct165 := r.ContainerType() + if yyct165 == codecSelferValueTypeMap1234 { + yyl165 := r.ReadMapStart() + if yyl165 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl165, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct165 == codecSelferValueTypeArray1234 { + yyl165 := r.ReadArrayStart() + if yyl165 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl165, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1836,12 +1968,12 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -1850,10 +1982,10 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys166Slc = r.DecodeBytes(yys166Slc, true, true) + yys166 := string(yys166Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys166 { case "resourceAttributes": if r.TryDecodeAsNil() { if x.ResourceAttributes != nil { @@ -1886,30 +2018,30 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv7 := &x.Groups - yym8 := z.DecBinary() - _ = yym8 + yyv170 := &x.Groups + yym171 := z.DecBinary() + _ = yym171 if false { } else { - z.F.DecSliceStringX(yyv7, false, d) + z.F.DecSliceStringX(yyv170, false, d) } } case "extra": if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv9 := &x.Extra - yym10 := z.DecBinary() - _ = yym10 + yyv172 := &x.Extra + yym173 := z.DecBinary() + _ = yym173 if false { } else { - h.decMapstringSlicestring((*map[string][]string)(yyv9), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv172), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys166) + } // end switch yys166 + } // end for yyj166 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1917,16 +2049,16 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj174 int + var yyb174 bool + var yyhl174 bool = l >= 0 + yyj174++ + if yyhl174 { + yyb174 = yyj174 > l } else { - yyb11 = r.CheckBreak() + yyb174 = r.CheckBreak() } - if yyb11 { + if yyb174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1941,13 +2073,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } x.ResourceAttributes.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj174++ + if yyhl174 { + yyb174 = yyj174 > l } else { - yyb11 = r.CheckBreak() + yyb174 = r.CheckBreak() } - if yyb11 { + if yyb174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1962,13 +2094,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } x.NonResourceAttributes.CodecDecodeSelf(d) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj174++ + if yyhl174 { + yyb174 = yyj174 > l } else { - yyb11 = r.CheckBreak() + yyb174 = r.CheckBreak() } - if yyb11 { + if yyb174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1978,13 +2110,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.User = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj174++ + if yyhl174 { + yyb174 = yyj174 > l } else { - yyb11 = r.CheckBreak() + yyb174 = r.CheckBreak() } - if yyb11 { + if yyb174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1992,21 +2124,21 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv15 := &x.Groups - yym16 := z.DecBinary() - _ = yym16 + yyv178 := &x.Groups + yym179 := z.DecBinary() + _ = yym179 if false { } else { - z.F.DecSliceStringX(yyv15, false, d) + z.F.DecSliceStringX(yyv178, false, d) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj174++ + if yyhl174 { + yyb174 = yyj174 > l } else { - yyb11 = r.CheckBreak() + yyb174 = r.CheckBreak() } - if yyb11 { + if yyb174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2014,30 +2146,60 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv17 := &x.Extra - yym18 := z.DecBinary() - _ = yym18 + yyv180 := &x.Extra + yym181 := z.DecBinary() + _ = yym181 if false { } else { - h.decMapstringSlicestring((*map[string][]string)(yyv17), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv180), d) } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj174++ + if yyhl174 { + yyb174 = yyj174 > l } else { - yyb11 = r.CheckBreak() + yyb174 = r.CheckBreak() } - if yyb11 { + if yyb174 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj174-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym182 := z.EncBinary() + _ = yym182 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + h.encExtraValue((ExtraValue)(x), e) + } + } +} + +func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym183 := z.DecBinary() + _ = yym183 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decExtraValue((*ExtraValue)(x), d) + } +} + func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -2045,34 +2207,34 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym184 := z.EncBinary() + _ = yym184 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.ResourceAttributes != nil - yyq2[1] = x.NonResourceAttributes != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep185 := !z.EncBinary() + yy2arr185 := z.EncBasicHandle().StructToArray + var yyq185 [2]bool + _, _, _ = yysep185, yyq185, yy2arr185 + const yyr185 bool = false + yyq185[0] = x.ResourceAttributes != nil + yyq185[1] = x.NonResourceAttributes != nil + var yynn185 int + if yyr185 || yy2arr185 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn185 = 0 + for _, b := range yyq185 { if b { - yynn2++ + yynn185++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn185) + yynn185 = 0 } - if yyr2 || yy2arr2 { + if yyr185 || yy2arr185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq185[0] { if x.ResourceAttributes == nil { r.EncodeNil() } else { @@ -2082,7 +2244,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq185[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceAttributes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2093,9 +2255,9 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr185 || yy2arr185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq185[1] { if x.NonResourceAttributes == nil { r.EncodeNil() } else { @@ -2105,7 +2267,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq185[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nonResourceAttributes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2116,7 +2278,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr185 || yy2arr185 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2129,25 +2291,25 @@ func (x *SelfSubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym188 := z.DecBinary() + _ = yym188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct189 := r.ContainerType() + if yyct189 == codecSelferValueTypeMap1234 { + yyl189 := r.ReadMapStart() + if yyl189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl189, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct189 == codecSelferValueTypeArray1234 { + yyl189 := r.ReadArrayStart() + if yyl189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl189, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2159,12 +2321,12 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys190Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys190Slc + var yyhl190 bool = l >= 0 + for yyj190 := 0; ; yyj190++ { + if yyhl190 { + if yyj190 >= l { break } } else { @@ -2173,10 +2335,10 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys190Slc = r.DecodeBytes(yys190Slc, true, true) + yys190 := string(yys190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys190 { case "resourceAttributes": if r.TryDecodeAsNil() { if x.ResourceAttributes != nil { @@ -2200,9 +2362,9 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 x.NonResourceAttributes.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys190) + } // end switch yys190 + } // end for yyj190 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2210,16 +2372,16 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj193 int + var yyb193 bool + var yyhl193 bool = l >= 0 + yyj193++ + if yyhl193 { + yyb193 = yyj193 > l } else { - yyb6 = r.CheckBreak() + yyb193 = r.CheckBreak() } - if yyb6 { + if yyb193 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2234,13 +2396,13 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 } x.ResourceAttributes.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj193++ + if yyhl193 { + yyb193 = yyj193 > l } else { - yyb6 = r.CheckBreak() + yyb193 = r.CheckBreak() } - if yyb6 { + if yyb193 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2256,17 +2418,17 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 x.NonResourceAttributes.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj193++ + if yyhl193 { + yyb193 = yyj193 > l } else { - yyb6 = r.CheckBreak() + yyb193 = r.CheckBreak() } - if yyb6 { + if yyb193 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj193-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2278,34 +2440,35 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym196 := z.EncBinary() + _ = yym196 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Reason != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 1 - for _, b := range yyq2 { + yysep197 := !z.EncBinary() + yy2arr197 := z.EncBasicHandle().StructToArray + var yyq197 [3]bool + _, _, _ = yysep197, yyq197, yy2arr197 + const yyr197 bool = false + yyq197[1] = x.Reason != "" + yyq197[2] = x.EvaluationError != "" + var yynn197 int + if yyr197 || yy2arr197 { + r.EncodeArrayStart(3) + } else { + yynn197 = 1 + for _, b := range yyq197 { if b { - yynn2++ + yynn197++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn197) + yynn197 = 0 } - if yyr2 || yy2arr2 { + if yyr197 || yy2arr197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym199 := z.EncBinary() + _ = yym199 if false { } else { r.EncodeBool(bool(x.Allowed)) @@ -2314,18 +2477,18 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym200 := z.EncBinary() + _ = yym200 if false { } else { r.EncodeBool(bool(x.Allowed)) } } - if yyr2 || yy2arr2 { + if yyr197 || yy2arr197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq197[1] { + yym202 := z.EncBinary() + _ = yym202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -2334,19 +2497,44 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq197[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym203 := z.EncBinary() + _ = yym203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr197 || yy2arr197 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq197[2] { + yym205 := z.EncBinary() + _ = yym205 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq197[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evaluationError")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym206 := z.EncBinary() + _ = yym206 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) + } + } + } + if yyr197 || yy2arr197 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2359,25 +2547,25 @@ func (x *SubjectAccessReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym207 := z.DecBinary() + _ = yym207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct208 := r.ContainerType() + if yyct208 == codecSelferValueTypeMap1234 { + yyl208 := r.ReadMapStart() + if yyl208 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl208, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct208 == codecSelferValueTypeArray1234 { + yyl208 := r.ReadArrayStart() + if yyl208 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl208, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2389,12 +2577,12 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys209Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys209Slc + var yyhl209 bool = l >= 0 + for yyj209 := 0; ; yyj209++ { + if yyhl209 { + if yyj209 >= l { break } } else { @@ -2403,10 +2591,10 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys209Slc = r.DecodeBytes(yys209Slc, true, true) + yys209 := string(yys209Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys209 { case "allowed": if r.TryDecodeAsNil() { x.Allowed = false @@ -2419,10 +2607,16 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } else { x.Reason = string(r.DecodeString()) } + case "evaluationError": + if r.TryDecodeAsNil() { + x.EvaluationError = "" + } else { + x.EvaluationError = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys209) + } // end switch yys209 + } // end for yyj209 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2430,16 +2624,16 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj213 int + var yyb213 bool + var yyhl213 bool = l >= 0 + yyj213++ + if yyhl213 { + yyb213 = yyj213 > l } else { - yyb6 = r.CheckBreak() + yyb213 = r.CheckBreak() } - if yyb6 { + if yyb213 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2449,13 +2643,13 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Allowed = bool(r.DecodeBool()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj213++ + if yyhl213 { + yyb213 = yyj213 > l } else { - yyb6 = r.CheckBreak() + yyb213 = r.CheckBreak() } - if yyb6 { + if yyb213 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2465,229 +2659,227 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Reason = string(r.DecodeString()) } + yyj213++ + if yyhl213 { + yyb213 = yyj213 > l + } else { + yyb213 = r.CheckBreak() + } + if yyb213 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvaluationError = "" + } else { + x.EvaluationError = string(r.DecodeString()) + } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj213++ + if yyhl213 { + yyb213 = yyj213 > l } else { - yyb6 = r.CheckBreak() + yyb213 = r.CheckBreak() } - if yyb6 { + if yyb213 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj213-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { +func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { + for yyk217, yyv217 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym2 := z.EncBinary() - _ = yym2 + yym218 := z.EncBinary() + _ = yym218 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1)) + r.EncodeString(codecSelferC_UTF81234, string(yyk217)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv1 == nil { + if yyv217 == nil { r.EncodeNil() } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - z.F.EncSliceStringV(yyv1, false, e) - } + yyv217.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { +func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) - yyv1 = make(map[string][]string, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 []string - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { + yyv219 := *v + yyl219 := r.ReadMapStart() + yybh219 := z.DecBasicHandle() + if yyv219 == nil { + yyrl219, _ := z.DecInferLen(yyl219, yybh219.MaxInitLen, 40) + yyv219 = make(map[string]ExtraValue, yyrl219) + *v = yyv219 + } + var yymk219 string + var yymv219 ExtraValue + var yymg219 bool + if yybh219.MapValueReset { + yymg219 = true + } + if yyl219 > 0 { + for yyj219 := 0; yyj219 < yyl219; yyj219++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk219 = "" } else { - yymk1 = string(r.DecodeString()) + yymk219 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg219 { + yymv219 = yyv219[yymk219] } else { - yymv1 = nil + yymv219 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv219 = nil } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 - if false { - } else { - z.F.DecSliceStringX(yyv3, false, d) - } + yyv221 := &yymv219 + yyv221.CodecDecodeSelf(d) } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv219 != nil { + yyv219[yymk219] = yymv219 } } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { + } else if yyl219 < 0 { + for yyj219 := 0; !r.CheckBreak(); yyj219++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1 = "" + yymk219 = "" } else { - yymk1 = string(r.DecodeString()) + yymk219 = string(r.DecodeString()) } - if yymg1 { - yymv1 = yyv1[yymk1] + if yymg219 { + yymv219 = yyv219[yymk219] } else { - yymv1 = nil + yymv219 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1 = nil + yymv219 = nil } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } + yyv223 := &yymv219 + yyv223.CodecDecodeSelf(d) } - if yyv1 != nil { - yyv1[yymk1] = yymv1 + if yyv219 != nil { + yyv219[yymk219] = yymv219 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) encSlicestring(v []string, e *codec1978.Encoder) { +func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv224 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2 := z.EncBinary() - _ = yym2 + yym225 := z.EncBinary() + _ = yym225 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1)) + r.EncodeString(codecSelferC_UTF81234, string(yyv224)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { +func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []string{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv226 := *v + yyh226, yyl226 := z.DecSliceHelperStart() + var yyc226 bool + if yyl226 == 0 { + if yyv226 == nil { + yyv226 = []string{} + yyc226 = true + } else if len(yyv226) != 0 { + yyv226 = yyv226[:0] + yyc226 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl226 > 0 { + var yyrr226, yyrl226 int + var yyrt226 bool + if yyl226 > cap(yyv226) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl226, yyrt226 = z.DecInferLen(yyl226, z.DecBasicHandle().MaxInitLen, 16) + if yyrt226 { + if yyrl226 <= cap(yyv226) { + yyv226 = yyv226[:yyrl226] } else { - yyv1 = make([]string, yyrl1) + yyv226 = make([]string, yyrl226) } } else { - yyv1 = make([]string, yyrl1) + yyv226 = make([]string, yyrl226) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc226 = true + yyrr226 = len(yyv226) + } else if yyl226 != len(yyv226) { + yyv226 = yyv226[:yyl226] + yyc226 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj226 := 0 + for ; yyj226 < yyrr226; yyj226++ { + yyh226.ElemContainerState(yyj226) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv226[yyj226] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv226[yyj226] = string(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt226 { + for ; yyj226 < yyl226; yyj226++ { + yyv226 = append(yyv226, "") + yyh226.ElemContainerState(yyj226) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv226[yyj226] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv226[yyj226] = string(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj226 := 0 + for ; !r.CheckBreak(); yyj226++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 string - yyc1 = true + if yyj226 >= len(yyv226) { + yyv226 = append(yyv226, "") // var yyz226 string + yyc226 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh226.ElemContainerState(yyj226) + if yyj226 < len(yyv226) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv226[yyj226] = "" } else { - yyv1[yyj1] = string(r.DecodeString()) + yyv226[yyj226] = string(r.DecodeString()) } } else { @@ -2695,16 +2887,16 @@ func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []string{} - yyc1 = true + if yyj226 < len(yyv226) { + yyv226 = yyv226[:yyj226] + yyc226 = true + } else if yyj226 == 0 && yyv226 == nil { + yyv226 = []string{} + yyc226 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh226.End() + if yyc226 { + *v = yyv226 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.go index 70c1282a75..558a1e5750 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types.go @@ -17,18 +17,26 @@ limitations under the License. package v1beta1 import ( + "fmt" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/api/v1" ) +// +genclient=true +// +nonNamespaced=true +// +noMethods=true + // SubjectAccessReview checks whether or not a user or group can perform an action. type SubjectAccessReview struct { unversioned.TypeMeta `json:",inline"` + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated - Spec SubjectAccessReviewSpec `json:"spec"` + Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not - Status SubjectAccessReviewStatus `json:"status,omitempty"` + Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a @@ -36,12 +44,13 @@ type SubjectAccessReview struct { // to check whether they can perform an action type SelfSubjectAccessReview struct { unversioned.TypeMeta `json:",inline"` + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated. user and groups must be empty - Spec SelfSubjectAccessReviewSpec `json:"spec"` + Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not - Status SubjectAccessReviewStatus `json:"status,omitempty"` + Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. @@ -49,13 +58,14 @@ type SelfSubjectAccessReview struct { // checking. type LocalSubjectAccessReview struct { unversioned.TypeMeta `json:",inline"` + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace // you made the request against. If empty, it is defaulted. - Spec SubjectAccessReviewSpec `json:"spec"` + Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not - Status SubjectAccessReviewStatus `json:"status,omitempty"` + Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface @@ -64,60 +74,73 @@ type ResourceAttributes struct { // "" (empty) is defaulted for LocalSubjectAccessReviews // "" (empty) is empty for cluster-scoped resources // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - Namespace string `json:"namespace,omitempty"` + Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - Verb string `json:"verb,omitempty"` + Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` // Group is the API Group of the Resource. "*" means all. - Group string `json:"group,omitempty"` + Group string `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // Version is the API Version of the Resource. "*" means all. - Version string `json:"version,omitempty"` + Version string `json:"version,omitempty" protobuf:"bytes,4,opt,name=version"` // Resource is one of the existing resource types. "*" means all. - Resource string `json:"resource,omitempty"` + Resource string `json:"resource,omitempty" protobuf:"bytes,5,opt,name=resource"` // Subresource is one of the existing resource types. "" means none. - Subresource string `json:"subresource,omitempty"` + Subresource string `json:"subresource,omitempty" protobuf:"bytes,6,opt,name=subresource"` // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,7,opt,name=name"` } // NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface type NonResourceAttributes struct { // Path is the URL path of the request - Path string `json:"path,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // Verb is the standard HTTP verb - Verb string `json:"verb,omitempty"` + Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` } // SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes // and NonResourceAuthorizationAttributes must be set type SubjectAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request - ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty"` + ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` // NonResourceAttributes describes information for a non-resource access request - NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty"` + NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` // User is the user you're testing for. // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups - User string `json:"user,omitempty"` + User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=verb"` // Groups is the groups you're testing for. - Groups []string `json:"group,omitempty"` + Groups []string `json:"group,omitempty" protobuf:"bytes,4,rep,name=group"` // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer // it needs a reflection here. - Extra map[string][]string `json:"extra,omitempty"` + Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,5,rep,name=extra"` +} + +// ExtraValue masks the value so protobuf can generate +// +protobuf.nullable=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +type ExtraValue []string + +func (t ExtraValue) String() string { + return fmt.Sprintf("%v", []string(t)) } // SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes // and NonResourceAuthorizationAttributes must be set type SelfSubjectAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request - ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty"` + ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` // NonResourceAttributes describes information for a non-resource access request - NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty"` + NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` } // SubjectAccessReviewStatus type SubjectAccessReviewStatus struct { // Allowed is required. True if the action would be allowed, false otherwise. - Allowed bool `json:"allowed"` + Allowed bool `json:"allowed" protobuf:"varint,1,opt,name=allowed"` // Reason is optional. It indicates why a request was allowed or denied. - Reason string `json:"reason,omitempty"` + Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` + // EvaluationError is an indication that some error occurred during the authorization check. + // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. + // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + EvaluationError string `json:"evaluationError,omitempty" protobuf:"bytes,3,opt,name=evaluationError"` } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go index dc934768d8..8e521ba16f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go @@ -106,9 +106,10 @@ func (SubjectAccessReviewSpec) SwaggerDoc() map[string]string { } var map_SubjectAccessReviewStatus = map[string]string{ - "": "SubjectAccessReviewStatus", - "allowed": "Allowed is required. True if the action would be allowed, false otherwise.", - "reason": "Reason is optional. It indicates why a request was allowed or denied.", + "": "SubjectAccessReviewStatus", + "allowed": "Allowed is required. True if the action would be allowed, false otherwise.", + "reason": "Reason is optional. It indicates why a request was allowed or denied.", + "evaluationError": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", } func (SubjectAccessReviewStatus) SwaggerDoc() map[string]string { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/zz_generated.conversion.go similarity index 88% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/zz_generated.conversion.go index 18d11380bf..03e19637a9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/zz_generated.conversion.go @@ -24,10 +24,17 @@ import ( api "k8s.io/kubernetes/pkg/api" authorization "k8s.io/kubernetes/pkg/apis/authorization" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAccessReview, Convert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectAccessReview, Convert_v1beta1_NonResourceAttributes_To_authorization_NonResourceAttributes, @@ -44,16 +51,17 @@ func init() { Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec, Convert_v1beta1_SubjectAccessReviewStatus_To_authorization_SubjectAccessReviewStatus, Convert_authorization_SubjectAccessReviewStatus_To_v1beta1_SubjectAccessReviewStatus, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAccessReview(in *LocalSubjectAccessReview, out *authorization.LocalSubjectAccessReview, 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_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } @@ -71,6 +79,10 @@ func autoConvert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectA 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_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } @@ -138,6 +150,10 @@ func autoConvert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAcc 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_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } @@ -155,6 +171,10 @@ func autoConvert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAcc 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_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } @@ -224,6 +244,10 @@ func autoConvert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessRevie 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_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } @@ -241,6 +265,10 @@ func autoConvert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessRevie 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_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } @@ -275,7 +303,20 @@ func autoConvert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessR } out.User = in.User out.Groups = in.Groups - out.Extra = in.Extra + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]authorization.ExtraValue, len(*in)) + for key, val := range *in { + newVal := new(authorization.ExtraValue) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&val, newVal, 0); err != nil { + return err + } + (*out)[key] = *newVal + } + } else { + out.Extra = nil + } return nil } @@ -304,7 +345,20 @@ func autoConvert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessR } out.User = in.User out.Groups = in.Groups - out.Extra = in.Extra + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]ExtraValue, len(*in)) + for key, val := range *in { + newVal := new(ExtraValue) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&val, newVal, 0); err != nil { + return err + } + (*out)[key] = *newVal + } + } else { + out.Extra = nil + } return nil } @@ -315,6 +369,7 @@ func Convert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessRevie func autoConvert_v1beta1_SubjectAccessReviewStatus_To_authorization_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *authorization.SubjectAccessReviewStatus, s conversion.Scope) error { out.Allowed = in.Allowed out.Reason = in.Reason + out.EvaluationError = in.EvaluationError return nil } @@ -325,6 +380,7 @@ func Convert_v1beta1_SubjectAccessReviewStatus_To_authorization_SubjectAccessRev func autoConvert_authorization_SubjectAccessReviewStatus_To_v1beta1_SubjectAccessReviewStatus(in *authorization.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { out.Allowed = in.Allowed out.Reason = in.Reason + out.EvaluationError = in.EvaluationError return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..c365c8db0a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,196 @@ +// +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 v1beta1 + +import ( + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v1beta1_LocalSubjectAccessReview, InType: reflect.TypeOf(&LocalSubjectAccessReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NonResourceAttributes, InType: reflect.TypeOf(&NonResourceAttributes{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ResourceAttributes, InType: reflect.TypeOf(&ResourceAttributes{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SelfSubjectAccessReview, InType: reflect.TypeOf(&SelfSubjectAccessReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SelfSubjectAccessReviewSpec, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SubjectAccessReview, InType: reflect.TypeOf(&SubjectAccessReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SubjectAccessReviewSpec, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SubjectAccessReviewStatus, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})}, + ) +} + +func DeepCopy_v1beta1_LocalSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LocalSubjectAccessReview) + out := out.(*LocalSubjectAccessReview) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1beta1_NonResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NonResourceAttributes) + out := out.(*NonResourceAttributes) + out.Path = in.Path + out.Verb = in.Verb + return nil + } +} + +func DeepCopy_v1beta1_ResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceAttributes) + out := out.(*ResourceAttributes) + out.Namespace = in.Namespace + out.Verb = in.Verb + out.Group = in.Group + out.Version = in.Version + out.Resource = in.Resource + out.Subresource = in.Subresource + out.Name = in.Name + return nil + } +} + +func DeepCopy_v1beta1_SelfSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SelfSubjectAccessReview) + out := out.(*SelfSubjectAccessReview) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SelfSubjectAccessReviewSpec) + out := out.(*SelfSubjectAccessReviewSpec) + if in.ResourceAttributes != nil { + in, out := &in.ResourceAttributes, &out.ResourceAttributes + *out = new(ResourceAttributes) + **out = **in + } else { + out.ResourceAttributes = nil + } + if in.NonResourceAttributes != nil { + in, out := &in.NonResourceAttributes, &out.NonResourceAttributes + *out = new(NonResourceAttributes) + **out = **in + } else { + out.NonResourceAttributes = nil + } + return nil + } +} + +func DeepCopy_v1beta1_SubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubjectAccessReview) + out := out.(*SubjectAccessReview) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1beta1_SubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubjectAccessReviewSpec) + out := out.(*SubjectAccessReviewSpec) + if in.ResourceAttributes != nil { + in, out := &in.ResourceAttributes, &out.ResourceAttributes + *out = new(ResourceAttributes) + **out = **in + } else { + out.ResourceAttributes = nil + } + if in.NonResourceAttributes != nil { + in, out := &in.NonResourceAttributes, &out.NonResourceAttributes + *out = new(NonResourceAttributes) + **out = **in + } else { + out.NonResourceAttributes = nil + } + out.User = in.User + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Groups = nil + } + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]ExtraValue) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*ExtraValue) + } + } + } else { + out.Extra = nil + } + return nil + } +} + +func DeepCopy_v1beta1_SubjectAccessReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubjectAccessReviewStatus) + out := out.(*SubjectAccessReviewStatus) + out.Allowed = in.Allowed + out.Reason = in.Reason + out.EvaluationError = in.EvaluationError + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/zz_generated.deepcopy.go new file mode 100644 index 0000000000..bf80861467 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/authorization/zz_generated.deepcopy.go @@ -0,0 +1,196 @@ +// +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 authorization + +import ( + api "k8s.io/kubernetes/pkg/api" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_authorization_LocalSubjectAccessReview, InType: reflect.TypeOf(&LocalSubjectAccessReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_NonResourceAttributes, InType: reflect.TypeOf(&NonResourceAttributes{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_ResourceAttributes, InType: reflect.TypeOf(&ResourceAttributes{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReview, InType: reflect.TypeOf(&SelfSubjectAccessReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReviewSpec, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReview, InType: reflect.TypeOf(&SubjectAccessReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewSpec, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewStatus, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})}, + ) +} + +func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LocalSubjectAccessReview) + out := out.(*LocalSubjectAccessReview) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_authorization_NonResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NonResourceAttributes) + out := out.(*NonResourceAttributes) + out.Path = in.Path + out.Verb = in.Verb + return nil + } +} + +func DeepCopy_authorization_ResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceAttributes) + out := out.(*ResourceAttributes) + out.Namespace = in.Namespace + out.Verb = in.Verb + out.Group = in.Group + out.Version = in.Version + out.Resource = in.Resource + out.Subresource = in.Subresource + out.Name = in.Name + return nil + } +} + +func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SelfSubjectAccessReview) + out := out.(*SelfSubjectAccessReview) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SelfSubjectAccessReviewSpec) + out := out.(*SelfSubjectAccessReviewSpec) + if in.ResourceAttributes != nil { + in, out := &in.ResourceAttributes, &out.ResourceAttributes + *out = new(ResourceAttributes) + **out = **in + } else { + out.ResourceAttributes = nil + } + if in.NonResourceAttributes != nil { + in, out := &in.NonResourceAttributes, &out.NonResourceAttributes + *out = new(NonResourceAttributes) + **out = **in + } else { + out.NonResourceAttributes = nil + } + return nil + } +} + +func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubjectAccessReview) + out := out.(*SubjectAccessReview) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubjectAccessReviewSpec) + out := out.(*SubjectAccessReviewSpec) + if in.ResourceAttributes != nil { + in, out := &in.ResourceAttributes, &out.ResourceAttributes + *out = new(ResourceAttributes) + **out = **in + } else { + out.ResourceAttributes = nil + } + if in.NonResourceAttributes != nil { + in, out := &in.NonResourceAttributes, &out.NonResourceAttributes + *out = new(NonResourceAttributes) + **out = **in + } else { + out.NonResourceAttributes = nil + } + out.User = in.User + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Groups = nil + } + if in.Extra != nil { + in, out := &in.Extra, &out.Extra + *out = make(map[string]ExtraValue) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*ExtraValue) + } + } + } else { + out.Extra = nil + } + return nil + } +} + +func DeepCopy_authorization_SubjectAccessReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubjectAccessReviewStatus) + out := out.(*SubjectAccessReviewStatus) + out.Allowed = in.Allowed + out.Reason = in.Reason + out.EvaluationError = in.EvaluationError + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/deep_copy_generated.go deleted file mode 100644 index 1ddcc135b0..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/deep_copy_generated.go +++ /dev/null @@ -1,149 +0,0 @@ -// +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 autoscaling - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_autoscaling_CrossVersionObjectReference, - DeepCopy_autoscaling_HorizontalPodAutoscaler, - DeepCopy_autoscaling_HorizontalPodAutoscalerList, - DeepCopy_autoscaling_HorizontalPodAutoscalerSpec, - DeepCopy_autoscaling_HorizontalPodAutoscalerStatus, - DeepCopy_autoscaling_Scale, - DeepCopy_autoscaling_ScaleSpec, - DeepCopy_autoscaling_ScaleStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_autoscaling_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, c *conversion.Cloner) error { - out.Kind = in.Kind - out.Name = in.Name - out.APIVersion = in.APIVersion - return nil -} - -func DeepCopy_autoscaling_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]HorizontalPodAutoscaler, len(in)) - for i := range in { - if err := DeepCopy_autoscaling_HorizontalPodAutoscaler(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, c *conversion.Cloner) error { - out.ScaleTargetRef = in.ScaleTargetRef - if in.MinReplicas != nil { - in, out := in.MinReplicas, &out.MinReplicas - *out = new(int32) - **out = *in - } else { - out.MinReplicas = nil - } - out.MaxReplicas = in.MaxReplicas - if in.TargetCPUUtilizationPercentage != nil { - in, out := in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage - *out = new(int32) - **out = *in - } else { - out.TargetCPUUtilizationPercentage = nil - } - return nil -} - -func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error { - if in.ObservedGeneration != nil { - in, out := in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = *in - } else { - out.ObservedGeneration = nil - } - if in.LastScaleTime != nil { - in, out := in.LastScaleTime, &out.LastScaleTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.LastScaleTime = nil - } - out.CurrentReplicas = in.CurrentReplicas - out.DesiredReplicas = in.DesiredReplicas - if in.CurrentCPUUtilizationPercentage != nil { - in, out := in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage - *out = new(int32) - **out = *in - } else { - out.CurrentCPUUtilizationPercentage = nil - } - return nil -} - -func DeepCopy_autoscaling_Scale(in Scale, out *Scale, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Spec = in.Spec - out.Status = in.Status - return nil -} - -func DeepCopy_autoscaling_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - return nil -} - -func DeepCopy_autoscaling_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - out.Selector = in.Selector - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/install/install.go index be236ff0e4..7cb61126b7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/install/install.go @@ -114,7 +114,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - autoscaling.AddToScheme(api.Scheme) + if err := autoscaling.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -123,7 +126,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1.SchemeGroupVersion: - v1.AddToScheme(api.Scheme) + if err := v1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/register.go index ee0d3c75bd..7be0e64e8c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/register.go @@ -38,17 +38,18 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Scale{}, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, &api.ListOptions{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/types.generated.go index ded7227842..ecca35d7f2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/types.generated.go @@ -88,11 +88,11 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -109,102 +109,102 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -220,25 +220,25 @@ func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -250,12 +250,12 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -264,47 +264,47 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -312,104 +312,104 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -421,35 +421,35 @@ func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [1]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Replicas != 0 + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn33 = 0 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -458,19 +458,19 @@ func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeInt(int64(x.Replicas)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -483,25 +483,25 @@ func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym37 := z.DecBinary() + _ = yym37 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct38 := r.ContainerType() + if yyct38 == codecSelferValueTypeMap1234 { + yyl38 := r.ReadMapStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl38, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct38 == codecSelferValueTypeArray1234 { + yyl38 := r.ReadArrayStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl38, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -513,12 +513,12 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys39Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys39Slc + var yyhl39 bool = l >= 0 + for yyj39 := 0; ; yyj39++ { + if yyhl39 { + if yyj39 >= l { break } } else { @@ -527,10 +527,10 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys39Slc = r.DecodeBytes(yys39Slc, true, true) + yys39 := string(yys39Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys39 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -538,9 +538,9 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys39) + } // end switch yys39 + } // end for yyj39 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -548,16 +548,16 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj41 int + var yyb41 bool + var yyhl41 bool = l >= 0 + yyj41++ + if yyhl41 { + yyb41 = yyj41 > l } else { - yyb5 = r.CheckBreak() + yyb41 = r.CheckBreak() } - if yyb5 { + if yyb41 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -568,17 +568,17 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj41++ + if yyhl41 { + yyb41 = yyj41 > l } else { - yyb5 = r.CheckBreak() + yyb41 = r.CheckBreak() } - if yyb5 { + if yyb41 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj41-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -590,34 +590,34 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym43 := z.EncBinary() + _ = yym43 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Selector != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep44 := !z.EncBinary() + yy2arr44 := z.EncBasicHandle().StructToArray + var yyq44 [2]bool + _, _, _ = yysep44, yyq44, yy2arr44 + const yyr44 bool = false + yyq44[1] = x.Selector != "" + var yynn44 int + if yyr44 || yy2arr44 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn44 = 1 + for _, b := range yyq44 { if b { - yynn2++ + yynn44++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn44) + yynn44 = 0 } - if yyr2 || yy2arr2 { + if yyr44 || yy2arr44 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym46 := z.EncBinary() + _ = yym46 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -626,18 +626,18 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym47 := z.EncBinary() + _ = yym47 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr44 || yy2arr44 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq44[1] { + yym49 := z.EncBinary() + _ = yym49 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) @@ -646,19 +646,19 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq44[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym50 := z.EncBinary() + _ = yym50 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) } } } - if yyr2 || yy2arr2 { + if yyr44 || yy2arr44 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -671,25 +671,25 @@ func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym51 := z.DecBinary() + _ = yym51 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct52 := r.ContainerType() + if yyct52 == codecSelferValueTypeMap1234 { + yyl52 := r.ReadMapStart() + if yyl52 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl52, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct52 == codecSelferValueTypeArray1234 { + yyl52 := r.ReadArrayStart() + if yyl52 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl52, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -701,12 +701,12 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys53Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys53Slc + var yyhl53 bool = l >= 0 + for yyj53 := 0; ; yyj53++ { + if yyhl53 { + if yyj53 >= l { break } } else { @@ -715,10 +715,10 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys53Slc = r.DecodeBytes(yys53Slc, true, true) + yys53 := string(yys53Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys53 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -732,9 +732,9 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Selector = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys53) + } // end switch yys53 + } // end for yyj53 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -742,16 +742,16 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj56 int + var yyb56 bool + var yyhl56 bool = l >= 0 + yyj56++ + if yyhl56 { + yyb56 = yyj56 > l } else { - yyb6 = r.CheckBreak() + yyb56 = r.CheckBreak() } - if yyb6 { + if yyb56 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -761,13 +761,13 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj56++ + if yyhl56 { + yyb56 = yyj56 > l } else { - yyb6 = r.CheckBreak() + yyb56 = r.CheckBreak() } - if yyb6 { + if yyb56 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -778,17 +778,17 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Selector = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj56++ + if yyhl56 { + yyb56 = yyj56 > l } else { - yyb6 = r.CheckBreak() + yyb56 = r.CheckBreak() } - if yyb6 { + if yyb56 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj56-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -800,34 +800,34 @@ func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym59 := z.EncBinary() + _ = yym59 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep60 := !z.EncBinary() + yy2arr60 := z.EncBasicHandle().StructToArray + var yyq60 [3]bool + _, _, _ = yysep60, yyq60, yy2arr60 + const yyr60 bool = false + yyq60[2] = x.APIVersion != "" + var yynn60 int + if yyr60 || yy2arr60 { r.EncodeArrayStart(3) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn60 = 2 + for _, b := range yyq60 { if b { - yynn2++ + yynn60++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn60) + yynn60 = 0 } - if yyr2 || yy2arr2 { + if yyr60 || yy2arr60 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym62 := z.EncBinary() + _ = yym62 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -836,17 +836,17 @@ func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym63 := z.EncBinary() + _ = yym63 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr2 || yy2arr2 { + if yyr60 || yy2arr60 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym65 := z.EncBinary() + _ = yym65 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -855,18 +855,18 @@ func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym66 := z.EncBinary() + _ = yym66 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr60 || yy2arr60 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq60[2] { + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -875,19 +875,19 @@ func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq60[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym69 := z.EncBinary() + _ = yym69 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr60 || yy2arr60 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -900,25 +900,25 @@ func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym70 := z.DecBinary() + _ = yym70 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct71 := r.ContainerType() + if yyct71 == codecSelferValueTypeMap1234 { + yyl71 := r.ReadMapStart() + if yyl71 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl71, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct71 == codecSelferValueTypeArray1234 { + yyl71 := r.ReadArrayStart() + if yyl71 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl71, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -930,12 +930,12 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys72Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys72Slc + var yyhl72 bool = l >= 0 + for yyj72 := 0; ; yyj72++ { + if yyhl72 { + if yyj72 >= l { break } } else { @@ -944,10 +944,10 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys72Slc = r.DecodeBytes(yys72Slc, true, true) + yys72 := string(yys72Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys72 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -967,9 +967,9 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978 x.APIVersion = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys72) + } // end switch yys72 + } // end for yyj72 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -977,16 +977,16 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj76 int + var yyb76 bool + var yyhl76 bool = l >= 0 + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l } else { - yyb7 = r.CheckBreak() + yyb76 = r.CheckBreak() } - if yyb7 { + if yyb76 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -996,13 +996,13 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l } else { - yyb7 = r.CheckBreak() + yyb76 = r.CheckBreak() } - if yyb7 { + if yyb76 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1012,13 +1012,13 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l } else { - yyb7 = r.CheckBreak() + yyb76 = r.CheckBreak() } - if yyb7 { + if yyb76 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1029,17 +1029,17 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 x.APIVersion = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l } else { - yyb7 = r.CheckBreak() + yyb76 = r.CheckBreak() } - if yyb7 { + if yyb76 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj76-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1051,81 +1051,81 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym80 := z.EncBinary() + _ = yym80 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.MinReplicas != nil - yyq2[3] = x.TargetCPUUtilizationPercentage != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep81 := !z.EncBinary() + yy2arr81 := z.EncBasicHandle().StructToArray + var yyq81 [4]bool + _, _, _ = yysep81, yyq81, yy2arr81 + const yyr81 bool = false + yyq81[1] = x.MinReplicas != nil + yyq81[3] = x.TargetCPUUtilizationPercentage != nil + var yynn81 int + if yyr81 || yy2arr81 { r.EncodeArrayStart(4) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn81 = 2 + for _, b := range yyq81 { if b { - yynn2++ + yynn81++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn81) + yynn81 = 0 } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.ScaleTargetRef - yy4.CodecEncodeSelf(e) + yy83 := &x.ScaleTargetRef + yy83.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scaleTargetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ScaleTargetRef - yy6.CodecEncodeSelf(e) + yy84 := &x.ScaleTargetRef + yy84.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq81[1] { if x.MinReplicas == nil { r.EncodeNil() } else { - yy9 := *x.MinReplicas - yym10 := z.EncBinary() - _ = yym10 + yy86 := *x.MinReplicas + yym87 := z.EncBinary() + _ = yym87 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy86)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq81[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MinReplicas == nil { r.EncodeNil() } else { - yy11 := *x.MinReplicas - yym12 := z.EncBinary() - _ = yym12 + yy88 := *x.MinReplicas + yym89 := z.EncBinary() + _ = yym89 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy88)) } } } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym14 := z.EncBinary() - _ = yym14 + yym91 := z.EncBinary() + _ = yym91 if false { } else { r.EncodeInt(int64(x.MaxReplicas)) @@ -1134,49 +1134,49 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym92 := z.EncBinary() + _ = yym92 if false { } else { r.EncodeInt(int64(x.MaxReplicas)) } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq81[3] { if x.TargetCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy17 := *x.TargetCPUUtilizationPercentage - yym18 := z.EncBinary() - _ = yym18 + yy94 := *x.TargetCPUUtilizationPercentage + yym95 := z.EncBinary() + _ = yym95 if false { } else { - r.EncodeInt(int64(yy17)) + r.EncodeInt(int64(yy94)) } } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq81[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetCPUUtilizationPercentage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TargetCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy19 := *x.TargetCPUUtilizationPercentage - yym20 := z.EncBinary() - _ = yym20 + yy96 := *x.TargetCPUUtilizationPercentage + yym97 := z.EncBinary() + _ = yym97 if false { } else { - r.EncodeInt(int64(yy19)) + r.EncodeInt(int64(yy96)) } } } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1189,25 +1189,25 @@ func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym98 := z.DecBinary() + _ = yym98 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl99, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl99, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1219,12 +1219,12 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { break } } else { @@ -1233,16 +1233,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys100 { case "scaleTargetRef": if r.TryDecodeAsNil() { x.ScaleTargetRef = CrossVersionObjectReference{} } else { - yyv4 := &x.ScaleTargetRef - yyv4.CodecDecodeSelf(d) + yyv101 := &x.ScaleTargetRef + yyv101.CodecDecodeSelf(d) } case "minReplicas": if r.TryDecodeAsNil() { @@ -1253,8 +1253,8 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 if x.MinReplicas == nil { x.MinReplicas = new(int32) } - yym6 := z.DecBinary() - _ = yym6 + yym103 := z.DecBinary() + _ = yym103 if false { } else { *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) @@ -1275,17 +1275,17 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 if x.TargetCPUUtilizationPercentage == nil { x.TargetCPUUtilizationPercentage = new(int32) } - yym9 := z.DecBinary() - _ = yym9 + yym106 := z.DecBinary() + _ = yym106 if false { } else { *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1293,16 +1293,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj107 int + var yyb107 bool + var yyhl107 bool = l >= 0 + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb10 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb10 { + if yyb107 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1310,16 +1310,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.ScaleTargetRef = CrossVersionObjectReference{} } else { - yyv11 := &x.ScaleTargetRef - yyv11.CodecDecodeSelf(d) + yyv108 := &x.ScaleTargetRef + yyv108.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb10 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb10 { + if yyb107 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1332,20 +1332,20 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if x.MinReplicas == nil { x.MinReplicas = new(int32) } - yym13 := z.DecBinary() - _ = yym13 + yym110 := z.DecBinary() + _ = yym110 if false { } else { *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb10 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb10 { + if yyb107 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1355,13 +1355,13 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 } else { x.MaxReplicas = int32(r.DecodeInt(32)) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb10 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb10 { + if yyb107 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1374,25 +1374,25 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if x.TargetCPUUtilizationPercentage == nil { x.TargetCPUUtilizationPercentage = new(int32) } - yym16 := z.DecBinary() - _ = yym16 + yym113 := z.DecBinary() + _ = yym113 if false { } else { *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb10 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb10 { + if yyb107 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj107-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1404,80 +1404,80 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym114 := z.EncBinary() + _ = yym114 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.ObservedGeneration != nil - yyq2[1] = x.LastScaleTime != nil - yyq2[4] = x.CurrentCPUUtilizationPercentage != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep115 := !z.EncBinary() + yy2arr115 := z.EncBasicHandle().StructToArray + var yyq115 [5]bool + _, _, _ = yysep115, yyq115, yy2arr115 + const yyr115 bool = false + yyq115[0] = x.ObservedGeneration != nil + yyq115[1] = x.LastScaleTime != nil + yyq115[4] = x.CurrentCPUUtilizationPercentage != nil + var yynn115 int + if yyr115 || yy2arr115 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn115 = 2 + for _, b := range yyq115 { if b { - yynn2++ + yynn115++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn115) + yynn115 = 0 } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq115[0] { if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy4 := *x.ObservedGeneration - yym5 := z.EncBinary() - _ = yym5 + yy117 := *x.ObservedGeneration + yym118 := z.EncBinary() + _ = yym118 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy117)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq115[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy6 := *x.ObservedGeneration - yym7 := z.EncBinary() - _ = yym7 + yy119 := *x.ObservedGeneration + yym120 := z.EncBinary() + _ = yym120 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy119)) } } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq115[1] { if x.LastScaleTime == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym122 := z.EncBinary() + _ = yym122 if false { } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym9 { + } else if yym122 { z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym122 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScaleTime) } else { z.EncFallback(x.LastScaleTime) @@ -1487,20 +1487,20 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq115[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastScaleTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LastScaleTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym123 := z.EncBinary() + _ = yym123 if false { } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym10 { + } else if yym123 { z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym123 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScaleTime) } else { z.EncFallback(x.LastScaleTime) @@ -1508,10 +1508,10 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym12 := z.EncBinary() - _ = yym12 + yym125 := z.EncBinary() + _ = yym125 if false { } else { r.EncodeInt(int64(x.CurrentReplicas)) @@ -1520,17 +1520,17 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym126 := z.EncBinary() + _ = yym126 if false { } else { r.EncodeInt(int64(x.CurrentReplicas)) } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym15 := z.EncBinary() - _ = yym15 + yym128 := z.EncBinary() + _ = yym128 if false { } else { r.EncodeInt(int64(x.DesiredReplicas)) @@ -1539,49 +1539,49 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym129 := z.EncBinary() + _ = yym129 if false { } else { r.EncodeInt(int64(x.DesiredReplicas)) } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq115[4] { if x.CurrentCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy18 := *x.CurrentCPUUtilizationPercentage - yym19 := z.EncBinary() - _ = yym19 + yy131 := *x.CurrentCPUUtilizationPercentage + yym132 := z.EncBinary() + _ = yym132 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy131)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq115[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentCPUUtilizationPercentage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CurrentCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy20 := *x.CurrentCPUUtilizationPercentage - yym21 := z.EncBinary() - _ = yym21 + yy133 := *x.CurrentCPUUtilizationPercentage + yym134 := z.EncBinary() + _ = yym134 if false { } else { - r.EncodeInt(int64(yy20)) + r.EncodeInt(int64(yy133)) } } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1594,25 +1594,25 @@ func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym135 := z.DecBinary() + _ = yym135 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct136 := r.ContainerType() + if yyct136 == codecSelferValueTypeMap1234 { + yyl136 := r.ReadMapStart() + if yyl136 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl136, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct136 == codecSelferValueTypeArray1234 { + yyl136 := r.ReadArrayStart() + if yyl136 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl136, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1624,12 +1624,12 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys137Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys137Slc + var yyhl137 bool = l >= 0 + for yyj137 := 0; ; yyj137++ { + if yyhl137 { + if yyj137 >= l { break } } else { @@ -1638,10 +1638,10 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys137Slc = r.DecodeBytes(yys137Slc, true, true) + yys137 := string(yys137Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys137 { case "observedGeneration": if r.TryDecodeAsNil() { if x.ObservedGeneration != nil { @@ -1651,8 +1651,8 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym139 := z.DecBinary() + _ = yym139 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) @@ -1667,13 +1667,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.LastScaleTime == nil { x.LastScaleTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym141 := z.DecBinary() + _ = yym141 if false { } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym7 { + } else if yym141 { z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym141 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScaleTime) } else { z.DecFallback(x.LastScaleTime, false) @@ -1700,17 +1700,17 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.CurrentCPUUtilizationPercentage == nil { x.CurrentCPUUtilizationPercentage = new(int32) } - yym11 := z.DecBinary() - _ = yym11 + yym145 := z.DecBinary() + _ = yym145 if false { } else { *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys137) + } // end switch yys137 + } // end for yyj137 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1718,16 +1718,16 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj146 int + var yyb146 bool + var yyhl146 bool = l >= 0 + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb12 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb12 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1740,20 +1740,20 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym14 := z.DecBinary() - _ = yym14 + yym148 := z.DecBinary() + _ = yym148 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb12 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb12 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1766,25 +1766,25 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.LastScaleTime == nil { x.LastScaleTime = new(pkg1_unversioned.Time) } - yym16 := z.DecBinary() - _ = yym16 + yym150 := z.DecBinary() + _ = yym150 if false { } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym16 { + } else if yym150 { z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym16 && z.IsJSONHandle() { + } else if !yym150 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScaleTime) } else { z.DecFallback(x.LastScaleTime, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb12 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb12 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1794,13 +1794,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec } else { x.CurrentReplicas = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb12 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb12 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1810,13 +1810,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec } else { x.DesiredReplicas = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb12 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb12 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1829,25 +1829,25 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.CurrentCPUUtilizationPercentage == nil { x.CurrentCPUUtilizationPercentage = new(int32) } - yym20 := z.DecBinary() - _ = yym20 + yym154 := z.DecBinary() + _ = yym154 if false { } else { *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb12 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb12 { + if yyb146 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj146-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1859,136 +1859,136 @@ func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym155 := z.EncBinary() + _ = yym155 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep156 := !z.EncBinary() + yy2arr156 := z.EncBasicHandle().StructToArray + var yyq156 [5]bool + _, _, _ = yysep156, yyq156, yy2arr156 + const yyr156 bool = false + yyq156[0] = x.Kind != "" + yyq156[1] = x.APIVersion != "" + yyq156[2] = true + yyq156[3] = true + yyq156[4] = true + var yynn156 int + if yyr156 || yy2arr156 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn156 = 0 + for _, b := range yyq156 { if b { - yynn2++ + yynn156++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn156) + yynn156 = 0 } - if yyr2 || yy2arr2 { + if yyr156 || yy2arr156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq156[0] { + yym158 := z.EncBinary() + _ = yym158 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq156[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr156 || yy2arr156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq156[1] { + yym161 := z.EncBinary() + _ = yym161 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq156[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym162 := z.EncBinary() + _ = yym162 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr156 || yy2arr156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq156[2] { + yy164 := &x.ObjectMeta + yy164.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq156[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy165 := &x.ObjectMeta + yy165.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr156 || yy2arr156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq156[3] { + yy167 := &x.Spec + yy167.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq156[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy168 := &x.Spec + yy168.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr156 || yy2arr156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq156[4] { + yy170 := &x.Status + yy170.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq156[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy171 := &x.Status + yy171.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr156 || yy2arr156 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2001,25 +2001,25 @@ func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym172 := z.DecBinary() + _ = yym172 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct173 := r.ContainerType() + if yyct173 == codecSelferValueTypeMap1234 { + yyl173 := r.ReadMapStart() + if yyl173 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl173, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct173 == codecSelferValueTypeArray1234 { + yyl173 := r.ReadArrayStart() + if yyl173 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl173, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2031,12 +2031,12 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys174Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys174Slc + var yyhl174 bool = l >= 0 + for yyj174 := 0; ; yyj174++ { + if yyhl174 { + if yyj174 >= l { break } } else { @@ -2045,47 +2045,47 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys174Slc = r.DecodeBytes(yys174Slc, true, true) + yys174 := string(yys174Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys174 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv177 := &x.ObjectMeta + yyv177.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = HorizontalPodAutoscalerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv178 := &x.Spec + yyv178.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = HorizontalPodAutoscalerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv179 := &x.Status + yyv179.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys174) + } // end switch yys174 + } // end for yyj174 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2093,104 +2093,104 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj180 int + var yyb180 bool + var yyhl180 bool = l >= 0 + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l } else { - yyb9 = r.CheckBreak() + yyb180 = r.CheckBreak() } - if yyb9 { + if yyb180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l } else { - yyb9 = r.CheckBreak() + yyb180 = r.CheckBreak() } - if yyb9 { + if yyb180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l } else { - yyb9 = r.CheckBreak() + yyb180 = r.CheckBreak() } - if yyb9 { + if yyb180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv183 := &x.ObjectMeta + yyv183.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l } else { - yyb9 = r.CheckBreak() + yyb180 = r.CheckBreak() } - if yyb9 { + if yyb180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = HorizontalPodAutoscalerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv184 := &x.Spec + yyv184.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l } else { - yyb9 = r.CheckBreak() + yyb180 = r.CheckBreak() } - if yyb9 { + if yyb180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = HorizontalPodAutoscalerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv185 := &x.Status + yyv185.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l } else { - yyb9 = r.CheckBreak() + yyb180 = r.CheckBreak() } - if yyb9 { + if yyb180 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj180-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2202,139 +2202,139 @@ func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym186 := z.EncBinary() + _ = yym186 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep187 := !z.EncBinary() + yy2arr187 := z.EncBasicHandle().StructToArray + var yyq187 [4]bool + _, _, _ = yysep187, yyq187, yy2arr187 + const yyr187 bool = false + yyq187[0] = x.Kind != "" + yyq187[1] = x.APIVersion != "" + yyq187[2] = true + var yynn187 int + if yyr187 || yy2arr187 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn187 = 1 + for _, b := range yyq187 { if b { - yynn2++ + yynn187++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn187) + yynn187 = 0 } - if yyr2 || yy2arr2 { + if yyr187 || yy2arr187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq187[0] { + yym189 := z.EncBinary() + _ = yym189 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq187[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym190 := z.EncBinary() + _ = yym190 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr187 || yy2arr187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq187[1] { + yym192 := z.EncBinary() + _ = yym192 if false { } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq187[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym193 := z.EncBinary() + _ = yym193 if false { } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr187 || yy2arr187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq187[2] { + yy195 := &x.ListMeta + yym196 := z.EncBinary() + _ = yym196 if false { + } else if z.HasExtensions() && z.EncExt(yy195) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy195) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq187[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy197 := &x.ListMeta + yym198 := z.EncBinary() + _ = yym198 if false { + } else if z.HasExtensions() && z.EncExt(yy197) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy197) } } } - if yyr2 || yy2arr2 { + if yyr187 || yy2arr187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym200 := z.EncBinary() + _ = yym200 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym201 := z.EncBinary() + _ = yym201 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr187 || yy2arr187 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2347,25 +2347,25 @@ func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym202 := z.DecBinary() + _ = yym202 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct203 := r.ContainerType() + if yyct203 == codecSelferValueTypeMap1234 { + yyl203 := r.ReadMapStart() + if yyl203 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl203, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct203 == codecSelferValueTypeArray1234 { + yyl203 := r.ReadArrayStart() + if yyl203 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl203, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2377,12 +2377,12 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys204Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys204Slc + var yyhl204 bool = l >= 0 + for yyj204 := 0; ; yyj204++ { + if yyhl204 { + if yyj204 >= l { break } } else { @@ -2391,51 +2391,51 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys204Slc = r.DecodeBytes(yys204Slc, true, true) + yys204 := string(yys204Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys204 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv207 := &x.ListMeta + yym208 := z.DecBinary() + _ = yym208 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv207) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv207, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv209 := &x.Items + yym210 := z.DecBinary() + _ = yym210 if false { } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv6), d) + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv209), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys204) + } // end switch yys204 + } // end for yyj204 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2443,98 +2443,98 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj211 int + var yyb211 bool + var yyhl211 bool = l >= 0 + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l } else { - yyb10 = r.CheckBreak() + yyb211 = r.CheckBreak() } - if yyb10 { + if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l } else { - yyb10 = r.CheckBreak() + yyb211 = r.CheckBreak() } - if yyb10 { + if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l } else { - yyb10 = r.CheckBreak() + yyb211 = r.CheckBreak() } - if yyb10 { + if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv214 := &x.ListMeta + yym215 := z.DecBinary() + _ = yym215 + if false { + } else if z.HasExtensions() && z.DecExt(yyv214) { + } else { + z.DecFallback(yyv214, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l } else { - yyb10 = r.CheckBreak() + yyb211 = r.CheckBreak() } - if yyb10 { + if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv216 := &x.Items + yym217 := z.DecBinary() + _ = yym217 + if false { + } else { + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv216), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l } else { - yyb10 = r.CheckBreak() + yyb211 = r.CheckBreak() } - if yyb10 { + if yyb211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2544,10 +2544,10 @@ func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutosc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv218 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy219 := &yyv218 + yy219.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2557,86 +2557,83 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HorizontalPodAutoscaler{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv220 := *v + yyh220, yyl220 := z.DecSliceHelperStart() + var yyc220 bool + if yyl220 == 0 { + if yyv220 == nil { + yyv220 = []HorizontalPodAutoscaler{} + yyc220 = true + } else if len(yyv220) != 0 { + yyv220 = yyv220[:0] + yyc220 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl220 > 0 { + var yyrr220, yyrl220 int + var yyrt220 bool + if yyl220 > cap(yyv220) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 344) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg220 := len(yyv220) > 0 + yyv2220 := yyv220 + yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 360) + if yyrt220 { + if yyrl220 <= cap(yyv220) { + yyv220 = yyv220[:yyrl220] } else { - yyv1 = make([]HorizontalPodAutoscaler, yyrl1) + yyv220 = make([]HorizontalPodAutoscaler, yyrl220) } } else { - yyv1 = make([]HorizontalPodAutoscaler, yyrl1) + yyv220 = make([]HorizontalPodAutoscaler, yyrl220) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc220 = true + yyrr220 = len(yyv220) + if yyrg220 { + copy(yyv220, yyv2220) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl220 != len(yyv220) { + yyv220 = yyv220[:yyl220] + yyc220 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj220 := 0 + for ; yyj220 < yyrr220; yyj220++ { + yyh220.ElemContainerState(yyj220) if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv220[yyj220] = HorizontalPodAutoscaler{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv221 := &yyv220[yyj220] + yyv221.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HorizontalPodAutoscaler{}) - yyh1.ElemContainerState(yyj1) + if yyrt220 { + for ; yyj220 < yyl220; yyj220++ { + yyv220 = append(yyv220, HorizontalPodAutoscaler{}) + yyh220.ElemContainerState(yyj220) if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv220[yyj220] = HorizontalPodAutoscaler{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv222 := &yyv220[yyj220] + yyv222.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj220 := 0 + for ; !r.CheckBreak(); yyj220++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HorizontalPodAutoscaler{}) // var yyz1 HorizontalPodAutoscaler - yyc1 = true + if yyj220 >= len(yyv220) { + yyv220 = append(yyv220, HorizontalPodAutoscaler{}) // var yyz220 HorizontalPodAutoscaler + yyc220 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh220.ElemContainerState(yyj220) + if yyj220 < len(yyv220) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv220[yyj220] = HorizontalPodAutoscaler{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv223 := &yyv220[yyj220] + yyv223.CodecDecodeSelf(d) } } else { @@ -2644,16 +2641,16 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HorizontalPodAutoscaler{} - yyc1 = true + if yyj220 < len(yyv220) { + yyv220 = yyv220[:yyj220] + yyc220 = true + } else if yyj220 == 0 && yyv220 == nil { + yyv220 = []HorizontalPodAutoscaler{} + yyc220 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh220.End() + if yyc220 { + *v = yyv220 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/deep_copy_generated.go deleted file mode 100644 index af0245eb31..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/deep_copy_generated.go +++ /dev/null @@ -1,150 +0,0 @@ -// +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 v1 - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - api_v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1_CrossVersionObjectReference, - DeepCopy_v1_HorizontalPodAutoscaler, - DeepCopy_v1_HorizontalPodAutoscalerList, - DeepCopy_v1_HorizontalPodAutoscalerSpec, - DeepCopy_v1_HorizontalPodAutoscalerStatus, - DeepCopy_v1_Scale, - DeepCopy_v1_ScaleSpec, - DeepCopy_v1_ScaleStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, c *conversion.Cloner) error { - out.Kind = in.Kind - out.Name = in.Name - out.APIVersion = in.APIVersion - return nil -} - -func DeepCopy_v1_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api_v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_HorizontalPodAutoscalerSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1_HorizontalPodAutoscalerStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]HorizontalPodAutoscaler, len(in)) - for i := range in { - if err := DeepCopy_v1_HorizontalPodAutoscaler(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, c *conversion.Cloner) error { - out.ScaleTargetRef = in.ScaleTargetRef - if in.MinReplicas != nil { - in, out := in.MinReplicas, &out.MinReplicas - *out = new(int32) - **out = *in - } else { - out.MinReplicas = nil - } - out.MaxReplicas = in.MaxReplicas - if in.TargetCPUUtilizationPercentage != nil { - in, out := in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage - *out = new(int32) - **out = *in - } else { - out.TargetCPUUtilizationPercentage = nil - } - return nil -} - -func DeepCopy_v1_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error { - if in.ObservedGeneration != nil { - in, out := in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = *in - } else { - out.ObservedGeneration = nil - } - if in.LastScaleTime != nil { - in, out := in.LastScaleTime, &out.LastScaleTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.LastScaleTime = nil - } - out.CurrentReplicas = in.CurrentReplicas - out.DesiredReplicas = in.DesiredReplicas - if in.CurrentCPUUtilizationPercentage != nil { - in, out := in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage - *out = new(int32) - **out = *in - } else { - out.CurrentCPUUtilizationPercentage = nil - } - return nil -} - -func DeepCopy_v1_Scale(in Scale, out *Scale, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api_v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Spec = in.Spec - out.Status = in.Status - return nil -} - -func DeepCopy_v1_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - return nil -} - -func DeepCopy_v1_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - out.Selector = in.Selector - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/defaults.go index aacf552fca..e374add3ba 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/defaults.go @@ -20,8 +20,8 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_HorizontalPodAutoscaler, ) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.pb.go index f44b843b90..769f01b5e3 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.pb.go @@ -42,6 +42,9 @@ import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -49,37 +52,49 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } -func (m *CrossVersionObjectReference) String() string { return proto.CompactTextString(m) } -func (*CrossVersionObjectReference) ProtoMessage() {} +// 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 *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } -func (m *HorizontalPodAutoscaler) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscaler) ProtoMessage() {} +func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } +func (*CrossVersionObjectReference) ProtoMessage() {} +func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{0} +} -func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } -func (m *HorizontalPodAutoscalerList) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscalerList) ProtoMessage() {} +func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } +func (*HorizontalPodAutoscaler) ProtoMessage() {} +func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } -func (m *HorizontalPodAutoscalerSpec) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} +func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } +func (*HorizontalPodAutoscalerList) ProtoMessage() {} +func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{2} +} -func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } -func (m *HorizontalPodAutoscalerStatus) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} +func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } +func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} +func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{3} +} -func (m *Scale) Reset() { *m = Scale{} } -func (m *Scale) String() string { return proto.CompactTextString(m) } -func (*Scale) ProtoMessage() {} +func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } +func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} +func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{4} +} + +func (m *Scale) Reset() { *m = Scale{} } +func (*Scale) ProtoMessage() {} +func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } -func (m *ScaleSpec) String() string { return proto.CompactTextString(m) } -func (*ScaleSpec) ProtoMessage() {} +func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } +func (*ScaleSpec) ProtoMessage() {} +func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } -func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } -func (m *ScaleStatus) String() string { return proto.CompactTextString(m) } -func (*ScaleStatus) ProtoMessage() {} +func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } +func (*ScaleStatus) ProtoMessage() {} +func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } func init() { proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v1.CrossVersionObjectReference") @@ -511,6 +526,109 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CrossVersionObjectReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CrossVersionObjectReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscaler) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscaler{`, + `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(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscalerList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscalerList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscalerSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`, + `ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, + `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`, + `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`, + `TargetCPUUtilizationPercentage:` + valueToStringGenerated(this.TargetCPUUtilizationPercentage) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscalerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`, + `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, + `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, + `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`, + `CurrentCPUUtilizationPercentage:` + valueToStringGenerated(this.CurrentCPUUtilizationPercentage) + `,`, + `}`, + }, "") + return s +} +func (this *Scale) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Scale{`, + `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(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ScaleSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScaleSpec{`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `}`, + }, "") + return s +} +func (this *ScaleStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScaleStatus{`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `Selector:` + fmt.Sprintf("%v", this.Selector) + `,`, + `}`, + }, "") + 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 *CrossVersionObjectReference) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -1610,3 +1728,59 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 823 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x4f, 0xe3, 0x46, + 0x14, 0x26, 0xbf, 0x10, 0x8c, 0x0b, 0xb4, 0x53, 0x09, 0xa2, 0x54, 0x4d, 0x90, 0xdb, 0x03, 0x55, + 0xc1, 0x56, 0xa2, 0x52, 0x95, 0x23, 0x4e, 0x45, 0x41, 0x85, 0x12, 0x0d, 0x3f, 0x54, 0x55, 0x6a, + 0x25, 0xc7, 0x1e, 0xcc, 0x90, 0xc4, 0x8e, 0x66, 0xc6, 0x51, 0xc5, 0xa9, 0xa7, 0x9e, 0x7b, 0xe9, + 0xa1, 0xff, 0x4e, 0x4f, 0xdc, 0xca, 0xb1, 0x27, 0xb4, 0xcb, 0x6a, 0xff, 0x8b, 0x3d, 0xec, 0x78, + 0x3c, 0x38, 0x4e, 0x82, 0x03, 0xd1, 0xee, 0x1e, 0x46, 0xca, 0xcc, 0x7c, 0xdf, 0xf7, 0xde, 0x7c, + 0xef, 0xf9, 0x05, 0xec, 0x74, 0xbe, 0x63, 0x06, 0x09, 0xcc, 0x4e, 0xd8, 0xc6, 0xd4, 0xc7, 0x1c, + 0x33, 0xb3, 0xdf, 0xf1, 0x4c, 0xbb, 0x4f, 0x98, 0x69, 0x87, 0x3c, 0x60, 0x8e, 0xdd, 0x25, 0xbe, + 0x67, 0x0e, 0xea, 0xa6, 0x87, 0x7d, 0x4c, 0x6d, 0x8e, 0x5d, 0xa3, 0x4f, 0x03, 0x1e, 0xc0, 0xaf, + 0x62, 0xaa, 0x31, 0xa4, 0x1a, 0x82, 0x6a, 0x44, 0x54, 0x23, 0x45, 0x35, 0x06, 0xf5, 0xca, 0x96, + 0x47, 0xf8, 0x65, 0xd8, 0x36, 0x9c, 0xa0, 0x67, 0x7a, 0x81, 0x17, 0x98, 0x52, 0xa1, 0x1d, 0x5e, + 0xc8, 0x9d, 0xdc, 0xc8, 0x5f, 0xb1, 0x72, 0xa5, 0x91, 0x99, 0x94, 0x49, 0x31, 0x0b, 0x42, 0xea, + 0xe0, 0xf1, 0x6c, 0x2a, 0xdb, 0xd9, 0x9c, 0xd0, 0x1f, 0x60, 0xca, 0x48, 0xe0, 0x63, 0x77, 0x82, + 0xb6, 0x99, 0x4d, 0x9b, 0x7c, 0x72, 0x65, 0xeb, 0x71, 0x34, 0x0d, 0x7d, 0x4e, 0x7a, 0x93, 0x39, + 0xd5, 0x1f, 0x87, 0x87, 0x9c, 0x74, 0x4d, 0xe2, 0x73, 0xc6, 0xe9, 0x38, 0x45, 0xff, 0x3b, 0x07, + 0x3e, 0x6b, 0xd2, 0x80, 0xb1, 0xf3, 0x38, 0xe5, 0xe3, 0xf6, 0x15, 0x76, 0x38, 0xc2, 0x17, 0x98, + 0x62, 0xdf, 0xc1, 0x70, 0x1d, 0x14, 0x3b, 0xc4, 0x77, 0xcb, 0xb9, 0xf5, 0xdc, 0xc6, 0xa2, 0xf5, + 0xd1, 0xcd, 0x5d, 0x6d, 0xee, 0xfe, 0xae, 0x56, 0xfc, 0x51, 0x9c, 0x21, 0x79, 0x13, 0x21, 0x7c, + 0xbb, 0x87, 0xcb, 0xf9, 0x51, 0xc4, 0x4f, 0xe2, 0x0c, 0xc9, 0x1b, 0xd8, 0x00, 0x40, 0xbc, 0x4f, + 0x05, 0x28, 0x17, 0x24, 0x0e, 0x2a, 0x1c, 0xd8, 0x6d, 0x1d, 0xa8, 0x1b, 0x94, 0x42, 0xe9, 0xff, + 0xe5, 0xc1, 0xda, 0x7e, 0x40, 0xc9, 0x75, 0xe0, 0x73, 0xbb, 0xdb, 0x0a, 0xdc, 0x5d, 0x55, 0x61, + 0x4c, 0xe1, 0xcf, 0x60, 0xa1, 0x87, 0xb9, 0xed, 0xda, 0xdc, 0x96, 0x79, 0x69, 0x8d, 0x0d, 0x23, + 0xb3, 0x37, 0x44, 0x3b, 0x18, 0xf1, 0xa3, 0x8e, 0x04, 0x67, 0x18, 0x77, 0x78, 0x86, 0x12, 0x35, + 0x78, 0x09, 0x8a, 0xac, 0x8f, 0x1d, 0xf9, 0x16, 0xad, 0xb1, 0x67, 0x3c, 0xbb, 0xe3, 0x8c, 0x8c, + 0x5c, 0x4f, 0x84, 0xda, 0xd0, 0x93, 0x68, 0x87, 0x64, 0x04, 0xd8, 0x07, 0xf3, 0x8c, 0xdb, 0x3c, + 0x64, 0xd2, 0x0f, 0xad, 0xb1, 0xff, 0x1e, 0x62, 0x49, 0x3d, 0x6b, 0x59, 0x45, 0x9b, 0x8f, 0xf7, + 0x48, 0xc5, 0xd1, 0x5f, 0x8b, 0x4a, 0x67, 0x30, 0x0f, 0x09, 0xe3, 0xf0, 0xd7, 0x09, 0x57, 0xcd, + 0x29, 0xae, 0xa6, 0x7a, 0xdc, 0x88, 0xe8, 0xd2, 0xdc, 0x8f, 0x55, 0xe8, 0x85, 0x87, 0x93, 0x94, + 0xb5, 0x1e, 0x28, 0x11, 0x8e, 0x7b, 0x4c, 0x78, 0x5b, 0x10, 0xda, 0xd6, 0xbb, 0xbf, 0xd7, 0x5a, + 0x52, 0xe1, 0x4a, 0x07, 0x91, 0x30, 0x8a, 0xf5, 0xf5, 0x37, 0xf9, 0xcc, 0x77, 0x46, 0xfe, 0xc3, + 0x3f, 0x73, 0x60, 0x59, 0x6e, 0x4f, 0x6d, 0xea, 0xe1, 0xa8, 0xd5, 0xd5, 0x73, 0x67, 0x29, 0xf7, + 0x94, 0x4f, 0xc6, 0x5a, 0x55, 0x69, 0x2d, 0x9f, 0x8c, 0x44, 0x41, 0x63, 0x51, 0x61, 0x1d, 0x68, + 0x3d, 0xe2, 0x23, 0xdc, 0xef, 0x12, 0xc7, 0x66, 0xb2, 0xe7, 0x4a, 0xd6, 0x8a, 0x20, 0x6a, 0x47, + 0xc3, 0x63, 0x94, 0xc6, 0xc0, 0x6d, 0x41, 0xb1, 0x7f, 0x4f, 0x28, 0x05, 0x49, 0xf9, 0x54, 0xc5, + 0xd3, 0x8e, 0x86, 0x57, 0x28, 0x8d, 0x83, 0x57, 0xa0, 0xca, 0x65, 0xd8, 0x66, 0xeb, 0xec, 0x4c, + 0x0c, 0x03, 0x72, 0x6d, 0x73, 0x91, 0x78, 0x0b, 0x8b, 0xc1, 0x26, 0x4c, 0xf2, 0x70, 0xb9, 0x28, + 0x95, 0x74, 0xa1, 0x52, 0x3d, 0x9d, 0x8a, 0x44, 0x4f, 0x28, 0xe9, 0xff, 0x16, 0xc0, 0xe7, 0x53, + 0x1b, 0x14, 0xee, 0x01, 0x18, 0xb4, 0x19, 0xa6, 0x03, 0xec, 0xfe, 0x10, 0x4f, 0xa3, 0x68, 0x2c, + 0x44, 0x35, 0x28, 0x58, 0xab, 0x22, 0x03, 0x78, 0x3c, 0x71, 0x8b, 0x1e, 0x61, 0x40, 0x17, 0x2c, + 0x75, 0x6d, 0xc6, 0x63, 0x97, 0x89, 0x9a, 0x40, 0x5a, 0xe3, 0xeb, 0x67, 0x76, 0x6d, 0x44, 0xb1, + 0x3e, 0x11, 0xf1, 0x96, 0x0e, 0xd3, 0x2a, 0x68, 0x54, 0x14, 0xee, 0x82, 0x15, 0x27, 0xa4, 0xa2, + 0xb2, 0x7c, 0xcc, 0xf6, 0x35, 0x65, 0xfb, 0x4a, 0x73, 0xf4, 0x1a, 0x8d, 0xe3, 0x23, 0x09, 0x17, + 0x33, 0x42, 0xb1, 0x9b, 0x48, 0x14, 0x47, 0x25, 0xbe, 0x1f, 0xbd, 0x46, 0xe3, 0x78, 0xd8, 0x03, + 0x35, 0xa5, 0x9a, 0x59, 0xc2, 0x92, 0x94, 0xfc, 0x42, 0xc8, 0xd5, 0x9a, 0xd3, 0xa1, 0xe8, 0x29, + 0x2d, 0xfd, 0x9f, 0x3c, 0x28, 0x49, 0x0b, 0x3e, 0xe0, 0xac, 0x3d, 0x1f, 0x99, 0xb5, 0xdf, 0xcc, + 0xf0, 0xf1, 0xc9, 0xcc, 0x32, 0x27, 0xeb, 0x6f, 0x63, 0x93, 0xf5, 0xdb, 0x99, 0x95, 0xa7, 0xcf, + 0xd1, 0x1d, 0xb0, 0x98, 0x24, 0x00, 0x37, 0xc1, 0x02, 0x7d, 0xa8, 0x69, 0x4e, 0x16, 0x20, 0x99, + 0x81, 0x49, 0x31, 0x13, 0x84, 0x4e, 0x80, 0x96, 0x8a, 0x30, 0x1b, 0x39, 0x42, 0x33, 0xdc, 0x15, + 0x3e, 0x06, 0x54, 0xfd, 0xd7, 0x26, 0xe8, 0x13, 0x75, 0x8e, 0x12, 0x84, 0xf5, 0xe5, 0xcd, 0xcb, + 0xea, 0xdc, 0xad, 0x58, 0xff, 0x8b, 0xf5, 0xc7, 0x7d, 0x35, 0x77, 0x23, 0xd6, 0xad, 0x58, 0x2f, + 0xc4, 0xfa, 0xeb, 0x55, 0x75, 0xee, 0x97, 0xfc, 0xa0, 0xfe, 0x36, 0x00, 0x00, 0xff, 0xff, 0x45, + 0xec, 0x9a, 0x15, 0x8e, 0x09, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto index 7730d6e910..891aff3b52 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto @@ -24,6 +24,7 @@ package k8s.io.kubernetes.pkg.apis.autoscaling.v1; 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". diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/register.go index 93d9535e4a..d7b7df928f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/register.go @@ -29,13 +29,13 @@ const GroupName = "autoscaling" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, @@ -44,4 +44,5 @@ func addKnownTypes(scheme *runtime.Scheme) { &v1.DeleteOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/types.generated.go index ab9ebc5120..9b03510f5f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/types.generated.go @@ -178,25 +178,25 @@ func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym12 := z.DecBinary() + _ = yym12 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct13 := r.ContainerType() + if yyct13 == codecSelferValueTypeMap1234 { + yyl13 := r.ReadMapStart() + if yyl13 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl13, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct13 == codecSelferValueTypeArray1234 { + yyl13 := r.ReadArrayStart() + if yyl13 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl13, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -208,12 +208,12 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys14Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys14Slc + var yyhl14 bool = l >= 0 + for yyj14 := 0; ; yyj14++ { + if yyhl14 { + if yyj14 >= l { break } } else { @@ -222,10 +222,10 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys14Slc = r.DecodeBytes(yys14Slc, true, true) + yys14 := string(yys14Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys14 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -245,9 +245,9 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978 x.APIVersion = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys14) + } // end switch yys14 + } // end for yyj14 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -255,16 +255,16 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb7 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb7 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -274,13 +274,13 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Kind = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb7 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb7 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -290,13 +290,13 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb7 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb7 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -307,17 +307,17 @@ func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec19 x.APIVersion = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb7 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb7 { + if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -329,81 +329,81 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym22 := z.EncBinary() + _ = yym22 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.MinReplicas != nil - yyq2[3] = x.TargetCPUUtilizationPercentage != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep23 := !z.EncBinary() + yy2arr23 := z.EncBasicHandle().StructToArray + var yyq23 [4]bool + _, _, _ = yysep23, yyq23, yy2arr23 + const yyr23 bool = false + yyq23[1] = x.MinReplicas != nil + yyq23[3] = x.TargetCPUUtilizationPercentage != nil + var yynn23 int + if yyr23 || yy2arr23 { r.EncodeArrayStart(4) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn23 = 2 + for _, b := range yyq23 { if b { - yynn2++ + yynn23++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn23) + yynn23 = 0 } - if yyr2 || yy2arr2 { + if yyr23 || yy2arr23 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.ScaleTargetRef - yy4.CodecEncodeSelf(e) + yy25 := &x.ScaleTargetRef + yy25.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scaleTargetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ScaleTargetRef - yy6.CodecEncodeSelf(e) + yy26 := &x.ScaleTargetRef + yy26.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr23 || yy2arr23 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq23[1] { if x.MinReplicas == nil { r.EncodeNil() } else { - yy9 := *x.MinReplicas - yym10 := z.EncBinary() - _ = yym10 + yy28 := *x.MinReplicas + yym29 := z.EncBinary() + _ = yym29 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy28)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq23[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MinReplicas == nil { r.EncodeNil() } else { - yy11 := *x.MinReplicas - yym12 := z.EncBinary() - _ = yym12 + yy30 := *x.MinReplicas + yym31 := z.EncBinary() + _ = yym31 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy30)) } } } } - if yyr2 || yy2arr2 { + if yyr23 || yy2arr23 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym14 := z.EncBinary() - _ = yym14 + yym33 := z.EncBinary() + _ = yym33 if false { } else { r.EncodeInt(int64(x.MaxReplicas)) @@ -412,49 +412,49 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym34 := z.EncBinary() + _ = yym34 if false { } else { r.EncodeInt(int64(x.MaxReplicas)) } } - if yyr2 || yy2arr2 { + if yyr23 || yy2arr23 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq23[3] { if x.TargetCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy17 := *x.TargetCPUUtilizationPercentage - yym18 := z.EncBinary() - _ = yym18 + yy36 := *x.TargetCPUUtilizationPercentage + yym37 := z.EncBinary() + _ = yym37 if false { } else { - r.EncodeInt(int64(yy17)) + r.EncodeInt(int64(yy36)) } } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq23[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetCPUUtilizationPercentage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TargetCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy19 := *x.TargetCPUUtilizationPercentage - yym20 := z.EncBinary() - _ = yym20 + yy38 := *x.TargetCPUUtilizationPercentage + yym39 := z.EncBinary() + _ = yym39 if false { } else { - r.EncodeInt(int64(yy19)) + r.EncodeInt(int64(yy38)) } } } } - if yyr2 || yy2arr2 { + if yyr23 || yy2arr23 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -467,25 +467,25 @@ func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym40 := z.DecBinary() + _ = yym40 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct41 := r.ContainerType() + if yyct41 == codecSelferValueTypeMap1234 { + yyl41 := r.ReadMapStart() + if yyl41 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl41, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct41 == codecSelferValueTypeArray1234 { + yyl41 := r.ReadArrayStart() + if yyl41 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl41, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -497,12 +497,12 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys42Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys42Slc + var yyhl42 bool = l >= 0 + for yyj42 := 0; ; yyj42++ { + if yyhl42 { + if yyj42 >= l { break } } else { @@ -511,16 +511,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys42Slc = r.DecodeBytes(yys42Slc, true, true) + yys42 := string(yys42Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys42 { case "scaleTargetRef": if r.TryDecodeAsNil() { x.ScaleTargetRef = CrossVersionObjectReference{} } else { - yyv4 := &x.ScaleTargetRef - yyv4.CodecDecodeSelf(d) + yyv43 := &x.ScaleTargetRef + yyv43.CodecDecodeSelf(d) } case "minReplicas": if r.TryDecodeAsNil() { @@ -531,8 +531,8 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 if x.MinReplicas == nil { x.MinReplicas = new(int32) } - yym6 := z.DecBinary() - _ = yym6 + yym45 := z.DecBinary() + _ = yym45 if false { } else { *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) @@ -553,17 +553,17 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 if x.TargetCPUUtilizationPercentage == nil { x.TargetCPUUtilizationPercentage = new(int32) } - yym9 := z.DecBinary() - _ = yym9 + yym48 := z.DecBinary() + _ = yym48 if false { } else { *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys42) + } // end switch yys42 + } // end for yyj42 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -571,16 +571,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj49 int + var yyb49 bool + var yyhl49 bool = l >= 0 + yyj49++ + if yyhl49 { + yyb49 = yyj49 > l } else { - yyb10 = r.CheckBreak() + yyb49 = r.CheckBreak() } - if yyb10 { + if yyb49 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -588,16 +588,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.ScaleTargetRef = CrossVersionObjectReference{} } else { - yyv11 := &x.ScaleTargetRef - yyv11.CodecDecodeSelf(d) + yyv50 := &x.ScaleTargetRef + yyv50.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj49++ + if yyhl49 { + yyb49 = yyj49 > l } else { - yyb10 = r.CheckBreak() + yyb49 = r.CheckBreak() } - if yyb10 { + if yyb49 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -610,20 +610,20 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if x.MinReplicas == nil { x.MinReplicas = new(int32) } - yym13 := z.DecBinary() - _ = yym13 + yym52 := z.DecBinary() + _ = yym52 if false { } else { *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj49++ + if yyhl49 { + yyb49 = yyj49 > l } else { - yyb10 = r.CheckBreak() + yyb49 = r.CheckBreak() } - if yyb10 { + if yyb49 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -633,13 +633,13 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 } else { x.MaxReplicas = int32(r.DecodeInt(32)) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj49++ + if yyhl49 { + yyb49 = yyj49 > l } else { - yyb10 = r.CheckBreak() + yyb49 = r.CheckBreak() } - if yyb10 { + if yyb49 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -652,25 +652,25 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if x.TargetCPUUtilizationPercentage == nil { x.TargetCPUUtilizationPercentage = new(int32) } - yym16 := z.DecBinary() - _ = yym16 + yym55 := z.DecBinary() + _ = yym55 if false { } else { *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj49++ + if yyhl49 { + yyb49 = yyj49 > l } else { - yyb10 = r.CheckBreak() + yyb49 = r.CheckBreak() } - if yyb10 { + if yyb49 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj49-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -682,80 +682,80 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym56 := z.EncBinary() + _ = yym56 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.ObservedGeneration != nil - yyq2[1] = x.LastScaleTime != nil - yyq2[4] = x.CurrentCPUUtilizationPercentage != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep57 := !z.EncBinary() + yy2arr57 := z.EncBasicHandle().StructToArray + var yyq57 [5]bool + _, _, _ = yysep57, yyq57, yy2arr57 + const yyr57 bool = false + yyq57[0] = x.ObservedGeneration != nil + yyq57[1] = x.LastScaleTime != nil + yyq57[4] = x.CurrentCPUUtilizationPercentage != nil + var yynn57 int + if yyr57 || yy2arr57 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn57 = 2 + for _, b := range yyq57 { if b { - yynn2++ + yynn57++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn57) + yynn57 = 0 } - if yyr2 || yy2arr2 { + if yyr57 || yy2arr57 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq57[0] { if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy4 := *x.ObservedGeneration - yym5 := z.EncBinary() - _ = yym5 + yy59 := *x.ObservedGeneration + yym60 := z.EncBinary() + _ = yym60 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy59)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq57[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy6 := *x.ObservedGeneration - yym7 := z.EncBinary() - _ = yym7 + yy61 := *x.ObservedGeneration + yym62 := z.EncBinary() + _ = yym62 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy61)) } } } } - if yyr2 || yy2arr2 { + if yyr57 || yy2arr57 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq57[1] { if x.LastScaleTime == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym64 := z.EncBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym9 { + } else if yym64 { z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym64 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScaleTime) } else { z.EncFallback(x.LastScaleTime) @@ -765,20 +765,20 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq57[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastScaleTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LastScaleTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym65 := z.EncBinary() + _ = yym65 if false { } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym10 { + } else if yym65 { z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym65 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScaleTime) } else { z.EncFallback(x.LastScaleTime) @@ -786,10 +786,10 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr57 || yy2arr57 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym12 := z.EncBinary() - _ = yym12 + yym67 := z.EncBinary() + _ = yym67 if false { } else { r.EncodeInt(int64(x.CurrentReplicas)) @@ -798,17 +798,17 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeInt(int64(x.CurrentReplicas)) } } - if yyr2 || yy2arr2 { + if yyr57 || yy2arr57 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym15 := z.EncBinary() - _ = yym15 + yym70 := z.EncBinary() + _ = yym70 if false { } else { r.EncodeInt(int64(x.DesiredReplicas)) @@ -817,49 +817,49 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym71 := z.EncBinary() + _ = yym71 if false { } else { r.EncodeInt(int64(x.DesiredReplicas)) } } - if yyr2 || yy2arr2 { + if yyr57 || yy2arr57 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq57[4] { if x.CurrentCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy18 := *x.CurrentCPUUtilizationPercentage - yym19 := z.EncBinary() - _ = yym19 + yy73 := *x.CurrentCPUUtilizationPercentage + yym74 := z.EncBinary() + _ = yym74 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy73)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq57[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentCPUUtilizationPercentage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CurrentCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy20 := *x.CurrentCPUUtilizationPercentage - yym21 := z.EncBinary() - _ = yym21 + yy75 := *x.CurrentCPUUtilizationPercentage + yym76 := z.EncBinary() + _ = yym76 if false { } else { - r.EncodeInt(int64(yy20)) + r.EncodeInt(int64(yy75)) } } } } - if yyr2 || yy2arr2 { + if yyr57 || yy2arr57 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -872,25 +872,25 @@ func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym77 := z.DecBinary() + _ = yym77 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct78 := r.ContainerType() + if yyct78 == codecSelferValueTypeMap1234 { + yyl78 := r.ReadMapStart() + if yyl78 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl78, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct78 == codecSelferValueTypeArray1234 { + yyl78 := r.ReadArrayStart() + if yyl78 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl78, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -902,12 +902,12 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys79Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys79Slc + var yyhl79 bool = l >= 0 + for yyj79 := 0; ; yyj79++ { + if yyhl79 { + if yyj79 >= l { break } } else { @@ -916,10 +916,10 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys79Slc = r.DecodeBytes(yys79Slc, true, true) + yys79 := string(yys79Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys79 { case "observedGeneration": if r.TryDecodeAsNil() { if x.ObservedGeneration != nil { @@ -929,8 +929,8 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym81 := z.DecBinary() + _ = yym81 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) @@ -945,13 +945,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.LastScaleTime == nil { x.LastScaleTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym83 := z.DecBinary() + _ = yym83 if false { } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym7 { + } else if yym83 { z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym83 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScaleTime) } else { z.DecFallback(x.LastScaleTime, false) @@ -978,17 +978,17 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.CurrentCPUUtilizationPercentage == nil { x.CurrentCPUUtilizationPercentage = new(int32) } - yym11 := z.DecBinary() - _ = yym11 + yym87 := z.DecBinary() + _ = yym87 if false { } else { *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys79) + } // end switch yys79 + } // end for yyj79 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -996,16 +996,16 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj88 int + var yyb88 bool + var yyhl88 bool = l >= 0 + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb12 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb12 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1018,20 +1018,20 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym14 := z.DecBinary() - _ = yym14 + yym90 := z.DecBinary() + _ = yym90 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb12 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb12 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1044,25 +1044,25 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.LastScaleTime == nil { x.LastScaleTime = new(pkg1_unversioned.Time) } - yym16 := z.DecBinary() - _ = yym16 + yym92 := z.DecBinary() + _ = yym92 if false { } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym16 { + } else if yym92 { z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym16 && z.IsJSONHandle() { + } else if !yym92 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScaleTime) } else { z.DecFallback(x.LastScaleTime, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb12 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb12 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1072,13 +1072,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec } else { x.CurrentReplicas = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb12 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb12 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1088,13 +1088,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec } else { x.DesiredReplicas = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb12 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb12 { + if yyb88 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1107,25 +1107,25 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.CurrentCPUUtilizationPercentage == nil { x.CurrentCPUUtilizationPercentage = new(int32) } - yym20 := z.DecBinary() - _ = yym20 + yym96 := z.DecBinary() + _ = yym96 if false { } else { *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj88++ + if yyhl88 { + yyb88 = yyj88 > l } else { - yyb12 = r.CheckBreak() + yyb88 = r.CheckBreak() } - if yyb12 { + if yyb88 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj88-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1137,136 +1137,136 @@ func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym97 := z.EncBinary() + _ = yym97 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep98 := !z.EncBinary() + yy2arr98 := z.EncBasicHandle().StructToArray + var yyq98 [5]bool + _, _, _ = yysep98, yyq98, yy2arr98 + const yyr98 bool = false + yyq98[0] = x.Kind != "" + yyq98[1] = x.APIVersion != "" + yyq98[2] = true + yyq98[3] = true + yyq98[4] = true + var yynn98 int + if yyr98 || yy2arr98 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn98 = 0 + for _, b := range yyq98 { if b { - yynn2++ + yynn98++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn98) + yynn98 = 0 } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq98[0] { + yym100 := z.EncBinary() + _ = yym100 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq98[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym101 := z.EncBinary() + _ = yym101 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq98[1] { + yym103 := z.EncBinary() + _ = yym103 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq98[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym104 := z.EncBinary() + _ = yym104 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq98[2] { + yy106 := &x.ObjectMeta + yy106.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq98[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy107 := &x.ObjectMeta + yy107.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq98[3] { + yy109 := &x.Spec + yy109.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq98[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy110 := &x.Spec + yy110.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq98[4] { + yy112 := &x.Status + yy112.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq98[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy113 := &x.Status + yy113.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1279,25 +1279,25 @@ func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym114 := z.DecBinary() + _ = yym114 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct115 := r.ContainerType() + if yyct115 == codecSelferValueTypeMap1234 { + yyl115 := r.ReadMapStart() + if yyl115 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl115, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct115 == codecSelferValueTypeArray1234 { + yyl115 := r.ReadArrayStart() + if yyl115 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl115, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1309,12 +1309,12 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys116Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys116Slc + var yyhl116 bool = l >= 0 + for yyj116 := 0; ; yyj116++ { + if yyhl116 { + if yyj116 >= l { break } } else { @@ -1323,47 +1323,47 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys116Slc = r.DecodeBytes(yys116Slc, true, true) + yys116 := string(yys116Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys116 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv119 := &x.ObjectMeta + yyv119.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = HorizontalPodAutoscalerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv120 := &x.Spec + yyv120.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = HorizontalPodAutoscalerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv121 := &x.Status + yyv121.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys116) + } // end switch yys116 + } // end for yyj116 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1371,104 +1371,104 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj122 int + var yyb122 bool + var yyhl122 bool = l >= 0 + yyj122++ + if yyhl122 { + yyb122 = yyj122 > l } else { - yyb9 = r.CheckBreak() + yyb122 = r.CheckBreak() } - if yyb9 { + if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj122++ + if yyhl122 { + yyb122 = yyj122 > l } else { - yyb9 = r.CheckBreak() + yyb122 = r.CheckBreak() } - if yyb9 { + if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj122++ + if yyhl122 { + yyb122 = yyj122 > l } else { - yyb9 = r.CheckBreak() + yyb122 = r.CheckBreak() } - if yyb9 { + if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv125 := &x.ObjectMeta + yyv125.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj122++ + if yyhl122 { + yyb122 = yyj122 > l } else { - yyb9 = r.CheckBreak() + yyb122 = r.CheckBreak() } - if yyb9 { + if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = HorizontalPodAutoscalerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv126 := &x.Spec + yyv126.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj122++ + if yyhl122 { + yyb122 = yyj122 > l } else { - yyb9 = r.CheckBreak() + yyb122 = r.CheckBreak() } - if yyb9 { + if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = HorizontalPodAutoscalerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv127 := &x.Status + yyv127.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj122++ + if yyhl122 { + yyb122 = yyj122 > l } else { - yyb9 = r.CheckBreak() + yyb122 = r.CheckBreak() } - if yyb9 { + if yyb122 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj122-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1480,139 +1480,139 @@ func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym128 := z.EncBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep129 := !z.EncBinary() + yy2arr129 := z.EncBasicHandle().StructToArray + var yyq129 [4]bool + _, _, _ = yysep129, yyq129, yy2arr129 + const yyr129 bool = false + yyq129[0] = x.Kind != "" + yyq129[1] = x.APIVersion != "" + yyq129[2] = true + var yynn129 int + if yyr129 || yy2arr129 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn129 = 1 + for _, b := range yyq129 { if b { - yynn2++ + yynn129++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn129) + yynn129 = 0 } - if yyr2 || yy2arr2 { + if yyr129 || yy2arr129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq129[0] { + yym131 := z.EncBinary() + _ = yym131 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq129[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym132 := z.EncBinary() + _ = yym132 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr129 || yy2arr129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq129[1] { + yym134 := z.EncBinary() + _ = yym134 if false { } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq129[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym135 := z.EncBinary() + _ = yym135 if false { } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr129 || yy2arr129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq129[2] { + yy137 := &x.ListMeta + yym138 := z.EncBinary() + _ = yym138 if false { + } else if z.HasExtensions() && z.EncExt(yy137) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy137) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq129[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy139 := &x.ListMeta + yym140 := z.EncBinary() + _ = yym140 if false { + } else if z.HasExtensions() && z.EncExt(yy139) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy139) } } } - if yyr2 || yy2arr2 { + if yyr129 || yy2arr129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym142 := z.EncBinary() + _ = yym142 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym143 := z.EncBinary() + _ = yym143 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr129 || yy2arr129 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1625,25 +1625,25 @@ func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym144 := z.DecBinary() + _ = yym144 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct145 := r.ContainerType() + if yyct145 == codecSelferValueTypeMap1234 { + yyl145 := r.ReadMapStart() + if yyl145 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl145, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct145 == codecSelferValueTypeArray1234 { + yyl145 := r.ReadArrayStart() + if yyl145 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl145, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1655,12 +1655,12 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys146Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys146Slc + var yyhl146 bool = l >= 0 + for yyj146 := 0; ; yyj146++ { + if yyhl146 { + if yyj146 >= l { break } } else { @@ -1669,51 +1669,51 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys146Slc = r.DecodeBytes(yys146Slc, true, true) + yys146 := string(yys146Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys146 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv149 := &x.ListMeta + yym150 := z.DecBinary() + _ = yym150 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv149) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv149, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv151 := &x.Items + yym152 := z.DecBinary() + _ = yym152 if false { } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv6), d) + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv151), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys146) + } // end switch yys146 + } // end for yyj146 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1721,98 +1721,98 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj153 int + var yyb153 bool + var yyhl153 bool = l >= 0 + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb10 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb10 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb10 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb10 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb10 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb10 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv156 := &x.ListMeta + yym157 := z.DecBinary() + _ = yym157 + if false { + } else if z.HasExtensions() && z.DecExt(yyv156) { + } else { + z.DecFallback(yyv156, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb10 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb10 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv158 := &x.Items + yym159 := z.DecBinary() + _ = yym159 + if false { + } else { + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv158), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb10 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb10 { + if yyb153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj153-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1824,136 +1824,136 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym160 := z.EncBinary() + _ = yym160 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep161 := !z.EncBinary() + yy2arr161 := z.EncBasicHandle().StructToArray + var yyq161 [5]bool + _, _, _ = yysep161, yyq161, yy2arr161 + const yyr161 bool = false + yyq161[0] = x.Kind != "" + yyq161[1] = x.APIVersion != "" + yyq161[2] = true + yyq161[3] = true + yyq161[4] = true + var yynn161 int + if yyr161 || yy2arr161 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn161 = 0 + for _, b := range yyq161 { if b { - yynn2++ + yynn161++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn161) + yynn161 = 0 } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq161[0] { + yym163 := z.EncBinary() + _ = yym163 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq161[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym164 := z.EncBinary() + _ = yym164 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq161[1] { + yym166 := z.EncBinary() + _ = yym166 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq161[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym167 := z.EncBinary() + _ = yym167 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq161[2] { + yy169 := &x.ObjectMeta + yy169.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq161[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy170 := &x.ObjectMeta + yy170.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq161[3] { + yy172 := &x.Spec + yy172.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq161[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy173 := &x.Spec + yy173.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq161[4] { + yy175 := &x.Status + yy175.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq161[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy176 := &x.Status + yy176.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1966,25 +1966,25 @@ func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym177 := z.DecBinary() + _ = yym177 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct178 := r.ContainerType() + if yyct178 == codecSelferValueTypeMap1234 { + yyl178 := r.ReadMapStart() + if yyl178 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl178, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct178 == codecSelferValueTypeArray1234 { + yyl178 := r.ReadArrayStart() + if yyl178 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl178, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1996,12 +1996,12 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys179Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys179Slc + var yyhl179 bool = l >= 0 + for yyj179 := 0; ; yyj179++ { + if yyhl179 { + if yyj179 >= l { break } } else { @@ -2010,47 +2010,47 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys179Slc = r.DecodeBytes(yys179Slc, true, true) + yys179 := string(yys179Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys179 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv182 := &x.ObjectMeta + yyv182.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv183 := &x.Spec + yyv183.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv184 := &x.Status + yyv184.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys179) + } // end switch yys179 + } // end for yyj179 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2058,104 +2058,104 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj185 int + var yyb185 bool + var yyhl185 bool = l >= 0 + yyj185++ + if yyhl185 { + yyb185 = yyj185 > l } else { - yyb9 = r.CheckBreak() + yyb185 = r.CheckBreak() } - if yyb9 { + if yyb185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj185++ + if yyhl185 { + yyb185 = yyj185 > l } else { - yyb9 = r.CheckBreak() + yyb185 = r.CheckBreak() } - if yyb9 { + if yyb185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj185++ + if yyhl185 { + yyb185 = yyj185 > l } else { - yyb9 = r.CheckBreak() + yyb185 = r.CheckBreak() } - if yyb9 { + if yyb185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv188 := &x.ObjectMeta + yyv188.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj185++ + if yyhl185 { + yyb185 = yyj185 > l } else { - yyb9 = r.CheckBreak() + yyb185 = r.CheckBreak() } - if yyb9 { + if yyb185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv189 := &x.Spec + yyv189.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj185++ + if yyhl185 { + yyb185 = yyj185 > l } else { - yyb9 = r.CheckBreak() + yyb185 = r.CheckBreak() } - if yyb9 { + if yyb185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv190 := &x.Status + yyv190.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj185++ + if yyhl185 { + yyb185 = yyj185 > l } else { - yyb9 = r.CheckBreak() + yyb185 = r.CheckBreak() } - if yyb9 { + if yyb185 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj185-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2167,35 +2167,35 @@ func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym191 := z.EncBinary() + _ = yym191 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep192 := !z.EncBinary() + yy2arr192 := z.EncBasicHandle().StructToArray + var yyq192 [1]bool + _, _, _ = yysep192, yyq192, yy2arr192 + const yyr192 bool = false + yyq192[0] = x.Replicas != 0 + var yynn192 int + if yyr192 || yy2arr192 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn192 = 0 + for _, b := range yyq192 { if b { - yynn2++ + yynn192++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn192) + yynn192 = 0 } - if yyr2 || yy2arr2 { + if yyr192 || yy2arr192 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq192[0] { + yym194 := z.EncBinary() + _ = yym194 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -2204,19 +2204,19 @@ func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq192[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym195 := z.EncBinary() + _ = yym195 if false { } else { r.EncodeInt(int64(x.Replicas)) } } } - if yyr2 || yy2arr2 { + if yyr192 || yy2arr192 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2229,25 +2229,25 @@ func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym196 := z.DecBinary() + _ = yym196 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct197 := r.ContainerType() + if yyct197 == codecSelferValueTypeMap1234 { + yyl197 := r.ReadMapStart() + if yyl197 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl197, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct197 == codecSelferValueTypeArray1234 { + yyl197 := r.ReadArrayStart() + if yyl197 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl197, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2259,12 +2259,12 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys198Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys198Slc + var yyhl198 bool = l >= 0 + for yyj198 := 0; ; yyj198++ { + if yyhl198 { + if yyj198 >= l { break } } else { @@ -2273,10 +2273,10 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys198Slc = r.DecodeBytes(yys198Slc, true, true) + yys198 := string(yys198Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys198 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -2284,9 +2284,9 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys198) + } // end switch yys198 + } // end for yyj198 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2294,16 +2294,16 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj200 int + var yyb200 bool + var yyhl200 bool = l >= 0 + yyj200++ + if yyhl200 { + yyb200 = yyj200 > l } else { - yyb5 = r.CheckBreak() + yyb200 = r.CheckBreak() } - if yyb5 { + if yyb200 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2314,17 +2314,17 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj200++ + if yyhl200 { + yyb200 = yyj200 > l } else { - yyb5 = r.CheckBreak() + yyb200 = r.CheckBreak() } - if yyb5 { + if yyb200 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj200-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2336,34 +2336,34 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym202 := z.EncBinary() + _ = yym202 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Selector != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep203 := !z.EncBinary() + yy2arr203 := z.EncBasicHandle().StructToArray + var yyq203 [2]bool + _, _, _ = yysep203, yyq203, yy2arr203 + const yyr203 bool = false + yyq203[1] = x.Selector != "" + var yynn203 int + if yyr203 || yy2arr203 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn203 = 1 + for _, b := range yyq203 { if b { - yynn2++ + yynn203++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn203) + yynn203 = 0 } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym205 := z.EncBinary() + _ = yym205 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -2372,18 +2372,18 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym206 := z.EncBinary() + _ = yym206 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq203[1] { + yym208 := z.EncBinary() + _ = yym208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) @@ -2392,19 +2392,19 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq203[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym209 := z.EncBinary() + _ = yym209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) } } } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2417,25 +2417,25 @@ func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym210 := z.DecBinary() + _ = yym210 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct211 := r.ContainerType() + if yyct211 == codecSelferValueTypeMap1234 { + yyl211 := r.ReadMapStart() + if yyl211 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl211, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct211 == codecSelferValueTypeArray1234 { + yyl211 := r.ReadArrayStart() + if yyl211 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl211, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2447,12 +2447,12 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys212Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys212Slc + var yyhl212 bool = l >= 0 + for yyj212 := 0; ; yyj212++ { + if yyhl212 { + if yyj212 >= l { break } } else { @@ -2461,10 +2461,10 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys212Slc = r.DecodeBytes(yys212Slc, true, true) + yys212 := string(yys212Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys212 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -2478,9 +2478,9 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Selector = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys212) + } // end switch yys212 + } // end for yyj212 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2488,16 +2488,16 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj215 int + var yyb215 bool + var yyhl215 bool = l >= 0 + yyj215++ + if yyhl215 { + yyb215 = yyj215 > l } else { - yyb6 = r.CheckBreak() + yyb215 = r.CheckBreak() } - if yyb6 { + if yyb215 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2507,13 +2507,13 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj215++ + if yyhl215 { + yyb215 = yyj215 > l } else { - yyb6 = r.CheckBreak() + yyb215 = r.CheckBreak() } - if yyb6 { + if yyb215 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2524,17 +2524,17 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Selector = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj215++ + if yyhl215 { + yyb215 = yyj215 > l } else { - yyb6 = r.CheckBreak() + yyb215 = r.CheckBreak() } - if yyb6 { + if yyb215 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj215-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2544,10 +2544,10 @@ func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutosc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv218 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy219 := &yyv218 + yy219.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2557,86 +2557,83 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HorizontalPodAutoscaler{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv220 := *v + yyh220, yyl220 := z.DecSliceHelperStart() + var yyc220 bool + if yyl220 == 0 { + if yyv220 == nil { + yyv220 = []HorizontalPodAutoscaler{} + yyc220 = true + } else if len(yyv220) != 0 { + yyv220 = yyv220[:0] + yyc220 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl220 > 0 { + var yyrr220, yyrl220 int + var yyrt220 bool + if yyl220 > cap(yyv220) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 344) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg220 := len(yyv220) > 0 + yyv2220 := yyv220 + yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 360) + if yyrt220 { + if yyrl220 <= cap(yyv220) { + yyv220 = yyv220[:yyrl220] } else { - yyv1 = make([]HorizontalPodAutoscaler, yyrl1) + yyv220 = make([]HorizontalPodAutoscaler, yyrl220) } } else { - yyv1 = make([]HorizontalPodAutoscaler, yyrl1) + yyv220 = make([]HorizontalPodAutoscaler, yyrl220) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc220 = true + yyrr220 = len(yyv220) + if yyrg220 { + copy(yyv220, yyv2220) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl220 != len(yyv220) { + yyv220 = yyv220[:yyl220] + yyc220 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj220 := 0 + for ; yyj220 < yyrr220; yyj220++ { + yyh220.ElemContainerState(yyj220) if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv220[yyj220] = HorizontalPodAutoscaler{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv221 := &yyv220[yyj220] + yyv221.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HorizontalPodAutoscaler{}) - yyh1.ElemContainerState(yyj1) + if yyrt220 { + for ; yyj220 < yyl220; yyj220++ { + yyv220 = append(yyv220, HorizontalPodAutoscaler{}) + yyh220.ElemContainerState(yyj220) if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv220[yyj220] = HorizontalPodAutoscaler{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv222 := &yyv220[yyj220] + yyv222.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj220 := 0 + for ; !r.CheckBreak(); yyj220++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HorizontalPodAutoscaler{}) // var yyz1 HorizontalPodAutoscaler - yyc1 = true + if yyj220 >= len(yyv220) { + yyv220 = append(yyv220, HorizontalPodAutoscaler{}) // var yyz220 HorizontalPodAutoscaler + yyc220 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh220.ElemContainerState(yyj220) + if yyj220 < len(yyv220) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv220[yyj220] = HorizontalPodAutoscaler{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv223 := &yyv220[yyj220] + yyv223.CodecDecodeSelf(d) } } else { @@ -2644,16 +2641,16 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HorizontalPodAutoscaler{} - yyc1 = true + if yyj220 < len(yyv220) { + yyv220 = yyv220[:yyj220] + yyc220 = true + } else if yyj220 == 0 && yyv220 == nil { + yyv220 = []HorizontalPodAutoscaler{} + yyc220 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh220.End() + if yyc220 { + *v = yyv220 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/zz_generated.conversion.go similarity index 97% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/zz_generated.conversion.go index 3d56992838..8a6c6c2e6c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/zz_generated.conversion.go @@ -24,10 +24,17 @@ import ( api "k8s.io/kubernetes/pkg/api" autoscaling "k8s.io/kubernetes/pkg/apis/autoscaling" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference, Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference, Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler, @@ -44,10 +51,7 @@ func init() { Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec, Convert_v1_ScaleStatus_To_autoscaling_ScaleStatus, Convert_autoscaling_ScaleStatus_To_v1_ScaleStatus, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(in *CrossVersionObjectReference, out *autoscaling.CrossVersionObjectReference, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..70ed6d0279 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go @@ -0,0 +1,186 @@ +// +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 v1 + +import ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + api_v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v1_CrossVersionObjectReference, InType: reflect.TypeOf(&CrossVersionObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HorizontalPodAutoscaler, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HorizontalPodAutoscalerList, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HorizontalPodAutoscalerSpec, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HorizontalPodAutoscalerStatus, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Scale, InType: reflect.TypeOf(&Scale{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, + ) +} + +func DeepCopy_v1_CrossVersionObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CrossVersionObjectReference) + out := out.(*CrossVersionObjectReference) + out.Kind = in.Kind + out.Name = in.Name + out.APIVersion = in.APIVersion + return nil + } +} + +func DeepCopy_v1_HorizontalPodAutoscaler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscaler) + out := out.(*HorizontalPodAutoscaler) + out.TypeMeta = in.TypeMeta + if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_HorizontalPodAutoscalerStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_HorizontalPodAutoscalerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerList) + out := out.(*HorizontalPodAutoscalerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HorizontalPodAutoscaler, len(*in)) + for i := range *in { + if err := DeepCopy_v1_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerSpec) + out := out.(*HorizontalPodAutoscalerSpec) + out.ScaleTargetRef = in.ScaleTargetRef + if in.MinReplicas != nil { + in, out := &in.MinReplicas, &out.MinReplicas + *out = new(int32) + **out = **in + } else { + out.MinReplicas = nil + } + out.MaxReplicas = in.MaxReplicas + if in.TargetCPUUtilizationPercentage != nil { + in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.TargetCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_v1_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerStatus) + out := out.(*HorizontalPodAutoscalerStatus) + if in.ObservedGeneration != nil { + in, out := &in.ObservedGeneration, &out.ObservedGeneration + *out = new(int64) + **out = **in + } else { + out.ObservedGeneration = nil + } + if in.LastScaleTime != nil { + in, out := &in.LastScaleTime, &out.LastScaleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScaleTime = nil + } + out.CurrentReplicas = in.CurrentReplicas + out.DesiredReplicas = in.DesiredReplicas + if in.CurrentCPUUtilizationPercentage != nil { + in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.CurrentCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_v1_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Scale) + out := out.(*Scale) + out.TypeMeta = in.TypeMeta + if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleSpec) + out := out.(*ScaleSpec) + out.Replicas = in.Replicas + return nil + } +} + +func DeepCopy_v1_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleStatus) + out := out.(*ScaleStatus) + out.Replicas = in.Replicas + out.Selector = in.Selector + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/zz_generated.deepcopy.go new file mode 100644 index 0000000000..dde5db7e46 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/autoscaling/zz_generated.deepcopy.go @@ -0,0 +1,186 @@ +// +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 autoscaling + +import ( + api "k8s.io/kubernetes/pkg/api" + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_autoscaling_CrossVersionObjectReference, InType: reflect.TypeOf(&CrossVersionObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscaler, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerList, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerSpec, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerStatus, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_Scale, InType: reflect.TypeOf(&Scale{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, + ) +} + +func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CrossVersionObjectReference) + out := out.(*CrossVersionObjectReference) + out.Kind = in.Kind + out.Name = in.Name + out.APIVersion = in.APIVersion + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscaler) + out := out.(*HorizontalPodAutoscaler) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerList) + out := out.(*HorizontalPodAutoscalerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HorizontalPodAutoscaler, len(*in)) + for i := range *in { + if err := DeepCopy_autoscaling_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerSpec) + out := out.(*HorizontalPodAutoscalerSpec) + out.ScaleTargetRef = in.ScaleTargetRef + if in.MinReplicas != nil { + in, out := &in.MinReplicas, &out.MinReplicas + *out = new(int32) + **out = **in + } else { + out.MinReplicas = nil + } + out.MaxReplicas = in.MaxReplicas + if in.TargetCPUUtilizationPercentage != nil { + in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.TargetCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerStatus) + out := out.(*HorizontalPodAutoscalerStatus) + if in.ObservedGeneration != nil { + in, out := &in.ObservedGeneration, &out.ObservedGeneration + *out = new(int64) + **out = **in + } else { + out.ObservedGeneration = nil + } + if in.LastScaleTime != nil { + in, out := &in.LastScaleTime, &out.LastScaleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScaleTime = nil + } + out.CurrentReplicas = in.CurrentReplicas + out.DesiredReplicas = in.DesiredReplicas + if in.CurrentCPUUtilizationPercentage != nil { + in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.CurrentCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Scale) + out := out.(*Scale) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + out.Status = in.Status + return nil + } +} + +func DeepCopy_autoscaling_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleSpec) + out := out.(*ScaleSpec) + out.Replicas = in.Replicas + return nil + } +} + +func DeepCopy_autoscaling_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleStatus) + out := out.(*ScaleStatus) + out.Replicas = in.Replicas + out.Selector = in.Selector + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/deep_copy_generated.go deleted file mode 100644 index a6adac4670..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/deep_copy_generated.go +++ /dev/null @@ -1,258 +0,0 @@ -// +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 batch - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_batch_Job, - DeepCopy_batch_JobCondition, - DeepCopy_batch_JobList, - DeepCopy_batch_JobSpec, - DeepCopy_batch_JobStatus, - DeepCopy_batch_JobTemplate, - DeepCopy_batch_JobTemplateSpec, - DeepCopy_batch_ScheduledJob, - DeepCopy_batch_ScheduledJobList, - DeepCopy_batch_ScheduledJobSpec, - DeepCopy_batch_ScheduledJobStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_batch_Job(in Job, out *Job, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_batch_JobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_batch_JobStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_batch_JobCondition(in JobCondition, out *JobCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_batch_JobList(in JobList, out *JobList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Job, len(in)) - for i := range in { - if err := DeepCopy_batch_Job(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_batch_JobSpec(in JobSpec, out *JobSpec, c *conversion.Cloner) error { - if in.Parallelism != nil { - in, out := in.Parallelism, &out.Parallelism - *out = new(int32) - **out = *in - } else { - out.Parallelism = nil - } - if in.Completions != nil { - in, out := in.Completions, &out.Completions - *out = new(int32) - **out = *in - } else { - out.Completions = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.ActiveDeadlineSeconds = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if in.ManualSelector != nil { - in, out := in.ManualSelector, &out.ManualSelector - *out = new(bool) - **out = *in - } else { - out.ManualSelector = nil - } - if err := api.DeepCopy_api_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_batch_JobStatus(in JobStatus, out *JobStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]JobCondition, len(in)) - for i := range in { - if err := DeepCopy_batch_JobCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.StartTime != nil { - in, out := in.StartTime, &out.StartTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.StartTime = nil - } - if in.CompletionTime != nil { - in, out := in.CompletionTime, &out.CompletionTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.CompletionTime = nil - } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func DeepCopy_batch_JobTemplate(in JobTemplate, out *JobTemplate, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_batch_JobTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_batch_JobTemplateSpec(in JobTemplateSpec, out *JobTemplateSpec, c *conversion.Cloner) error { - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_batch_JobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_batch_ScheduledJob(in ScheduledJob, out *ScheduledJob, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_batch_ScheduledJobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_batch_ScheduledJobStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_batch_ScheduledJobList(in ScheduledJobList, out *ScheduledJobList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ScheduledJob, len(in)) - for i := range in { - if err := DeepCopy_batch_ScheduledJob(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_batch_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSpec, c *conversion.Cloner) error { - out.Schedule = in.Schedule - if in.StartingDeadlineSeconds != nil { - in, out := in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.StartingDeadlineSeconds = nil - } - out.ConcurrencyPolicy = in.ConcurrencyPolicy - if in.Suspend != nil { - in, out := in.Suspend, &out.Suspend - *out = new(bool) - **out = *in - } else { - out.Suspend = nil - } - if err := DeepCopy_batch_JobTemplateSpec(in.JobTemplate, &out.JobTemplate, c); err != nil { - return err - } - return nil -} - -func DeepCopy_batch_ScheduledJobStatus(in ScheduledJobStatus, out *ScheduledJobStatus, c *conversion.Cloner) error { - if in.Active != nil { - in, out := in.Active, &out.Active - *out = make([]api.ObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Active = nil - } - if in.LastScheduleTime != nil { - in, out := in.LastScheduleTime, &out.LastScheduleTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.LastScheduleTime = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/install/install.go index 22f92b708c..9d327b175d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/install/install.go @@ -120,7 +120,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - batch.AddToScheme(api.Scheme) + if err := batch.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -129,9 +132,15 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1.SchemeGroupVersion: - v1.AddToScheme(api.Scheme) + if err := v1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } case v2alpha1.SchemeGroupVersion: - v2alpha1.AddToScheme(api.Scheme) + if err := v2alpha1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/register.go index 641df5f391..9718a51d54 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/register.go @@ -38,13 +38,13 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, @@ -53,4 +53,5 @@ func addKnownTypes(scheme *runtime.Scheme) { &ScheduledJobList{}, &api.ListOptions{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.generated.go index 03f0d248c6..081498cd31 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.generated.go @@ -92,11 +92,11 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -113,102 +113,102 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -224,25 +224,25 @@ func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -254,12 +254,12 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -268,47 +268,47 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -316,104 +316,104 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -425,139 +425,139 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [4]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Kind != "" + yyq33[1] = x.APIVersion != "" + yyq33[2] = true + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn33 = 1 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym36 := z.EncBinary() + _ = yym36 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq33[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym39 := z.EncBinary() + _ = yym39 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq33[2] { + yy41 := &x.ListMeta + yym42 := z.EncBinary() + _ = yym42 if false { + } else if z.HasExtensions() && z.EncExt(yy41) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy41) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq33[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy43 := &x.ListMeta + yym44 := z.EncBinary() + _ = yym44 if false { + } else if z.HasExtensions() && z.EncExt(yy43) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy43) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym46 := z.EncBinary() + _ = yym46 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym47 := z.EncBinary() + _ = yym47 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -570,25 +570,25 @@ func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym48 := z.DecBinary() + _ = yym48 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct49 := r.ContainerType() + if yyct49 == codecSelferValueTypeMap1234 { + yyl49 := r.ReadMapStart() + if yyl49 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl49, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct49 == codecSelferValueTypeArray1234 { + yyl49 := r.ReadArrayStart() + if yyl49 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl49, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -600,12 +600,12 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys50Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys50Slc + var yyhl50 bool = l >= 0 + for yyj50 := 0; ; yyj50++ { + if yyhl50 { + if yyj50 >= l { break } } else { @@ -614,51 +614,51 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys50Slc = r.DecodeBytes(yys50Slc, true, true) + yys50 := string(yys50Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys50 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv53 := &x.ListMeta + yym54 := z.DecBinary() + _ = yym54 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv53) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv53, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv55 := &x.Items + yym56 := z.DecBinary() + _ = yym56 if false { } else { - h.decSliceJob((*[]Job)(yyv6), d) + h.decSliceJob((*[]Job)(yyv55), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys50) + } // end switch yys50 + } // end for yyj50 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -666,98 +666,98 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj57 int + var yyb57 bool + var yyhl57 bool = l >= 0 + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceJob((*[]Job)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv60 := &x.ListMeta + yym61 := z.DecBinary() + _ = yym61 + if false { + } else if z.HasExtensions() && z.DecExt(yyv60) { + } else { + z.DecFallback(yyv60, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv62 := &x.Items + yym63 := z.DecBinary() + _ = yym63 + if false { + } else { + h.decSliceJob((*[]Job)(yyv62), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj57-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -769,72 +769,38 @@ func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym64 := z.EncBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep65 := !z.EncBinary() + yy2arr65 := z.EncBasicHandle().StructToArray + var yyq65 [4]bool + _, _, _ = yysep65, yyq65, yy2arr65 + const yyr65 bool = false + yyq65[0] = x.Kind != "" + yyq65[1] = x.APIVersion != "" + yyq65[2] = true + yyq65[3] = true + var yynn65 int + if yyr65 || yy2arr65 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn65 = 0 + for _, b := range yyq65 { if b { - yynn2++ + yynn65++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn65) + yynn65 = 0 } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Template - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Template - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq65[0] { + yym67 := z.EncBinary() + _ = yym67 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -843,23 +809,23 @@ func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq65[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq65[1] { + yym70 := z.EncBinary() + _ = yym70 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -868,19 +834,53 @@ func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq65[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym71 := z.EncBinary() + _ = yym71 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[2] { + yy73 := &x.ObjectMeta + yy73.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq65[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy74 := &x.ObjectMeta + yy74.CodecEncodeSelf(e) + } + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[3] { + yy76 := &x.Template + yy76.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq65[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy77 := &x.Template + yy77.CodecEncodeSelf(e) + } + } + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -893,25 +893,25 @@ func (x *JobTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym78 := z.DecBinary() + _ = yym78 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct79 := r.ContainerType() + if yyct79 == codecSelferValueTypeMap1234 { + yyl79 := r.ReadMapStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl79, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct79 == codecSelferValueTypeArray1234 { + yyl79 := r.ReadArrayStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl79, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -923,12 +923,12 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys80Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys80Slc + var yyhl80 bool = l >= 0 + for yyj80 := 0; ; yyj80++ { + if yyhl80 { + if yyj80 >= l { break } } else { @@ -937,24 +937,10 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys80Slc = r.DecodeBytes(yys80Slc, true, true) + yys80 := string(yys80Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "template": - if r.TryDecodeAsNil() { - x.Template = JobTemplateSpec{} - } else { - yyv5 := &x.Template - yyv5.CodecDecodeSelf(d) - } + switch yys80 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -967,10 +953,24 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv83 := &x.ObjectMeta + yyv83.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = JobTemplateSpec{} + } else { + yyv84 := &x.Template + yyv84.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys80) + } // end switch yys80 + } // end for yyj80 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -978,87 +978,87 @@ func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj85 int + var yyb85 bool + var yyhl85 bool = l >= 0 + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Template = JobTemplateSpec{} + x.APIVersion = "" } else { - yyv10 := &x.Template - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv88 := &x.ObjectMeta + yyv88.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Template = JobTemplateSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv89 := &x.Template + yyv89.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj85-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1070,66 +1070,66 @@ func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym90 := z.EncBinary() + _ = yym90 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep91 := !z.EncBinary() + yy2arr91 := z.EncBasicHandle().StructToArray + var yyq91 [2]bool + _, _, _ = yysep91, yyq91, yy2arr91 + const yyr91 bool = false + yyq91[0] = true + yyq91[1] = true + var yynn91 int + if yyr91 || yy2arr91 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn91 = 0 + for _, b := range yyq91 { if b { - yynn2++ + yynn91++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn91) + yynn91 = 0 } - if yyr2 || yy2arr2 { + if yyr91 || yy2arr91 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq91[0] { + yy93 := &x.ObjectMeta + yy93.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq91[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy94 := &x.ObjectMeta + yy94.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr91 || yy2arr91 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq91[1] { + yy96 := &x.Spec + yy96.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq91[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yy97 := &x.Spec + yy97.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr91 || yy2arr91 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1142,25 +1142,25 @@ func (x *JobTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym98 := z.DecBinary() + _ = yym98 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl99, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl99, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1172,12 +1172,12 @@ func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { break } } else { @@ -1186,28 +1186,28 @@ func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys100 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv101 := &x.ObjectMeta + yyv101.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = JobSpec{} } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + yyv102 := &x.Spec + yyv102.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1215,16 +1215,16 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj103 int + var yyb103 bool + var yyhl103 bool = l >= 0 + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb6 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb6 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1232,16 +1232,16 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv7 := &x.ObjectMeta - yyv7.CodecDecodeSelf(d) + yyv104 := &x.ObjectMeta + yyv104.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb6 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb6 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1249,21 +1249,21 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = JobSpec{} } else { - yyv8 := &x.Spec - yyv8.CodecDecodeSelf(d) + yyv105 := &x.Spec + yyv105.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb6 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb6 { + if yyb103 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj103-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1275,147 +1275,147 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym106 := z.EncBinary() + _ = yym106 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Parallelism != nil - yyq2[1] = x.Completions != nil - yyq2[2] = x.ActiveDeadlineSeconds != nil - yyq2[3] = x.Selector != nil - yyq2[4] = x.ManualSelector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep107 := !z.EncBinary() + yy2arr107 := z.EncBasicHandle().StructToArray + var yyq107 [6]bool + _, _, _ = yysep107, yyq107, yy2arr107 + const yyr107 bool = false + yyq107[0] = x.Parallelism != nil + yyq107[1] = x.Completions != nil + yyq107[2] = x.ActiveDeadlineSeconds != nil + yyq107[3] = x.Selector != nil + yyq107[4] = x.ManualSelector != nil + var yynn107 int + if yyr107 || yy2arr107 { r.EncodeArrayStart(6) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn107 = 1 + for _, b := range yyq107 { if b { - yynn2++ + yynn107++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn107) + yynn107 = 0 } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq107[0] { if x.Parallelism == nil { r.EncodeNil() } else { - yy4 := *x.Parallelism - yym5 := z.EncBinary() - _ = yym5 + yy109 := *x.Parallelism + yym110 := z.EncBinary() + _ = yym110 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy109)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq107[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parallelism")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parallelism == nil { r.EncodeNil() } else { - yy6 := *x.Parallelism - yym7 := z.EncBinary() - _ = yym7 + yy111 := *x.Parallelism + yym112 := z.EncBinary() + _ = yym112 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy111)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq107[1] { if x.Completions == nil { r.EncodeNil() } else { - yy9 := *x.Completions - yym10 := z.EncBinary() - _ = yym10 + yy114 := *x.Completions + yym115 := z.EncBinary() + _ = yym115 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy114)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq107[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Completions == nil { r.EncodeNil() } else { - yy11 := *x.Completions - yym12 := z.EncBinary() - _ = yym12 + yy116 := *x.Completions + yym117 := z.EncBinary() + _ = yym117 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy116)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq107[2] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy14 := *x.ActiveDeadlineSeconds - yym15 := z.EncBinary() - _ = yym15 + yy119 := *x.ActiveDeadlineSeconds + yym120 := z.EncBinary() + _ = yym120 if false { } else { - r.EncodeInt(int64(yy14)) + r.EncodeInt(int64(yy119)) } } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq107[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy16 := *x.ActiveDeadlineSeconds - yym17 := z.EncBinary() - _ = yym17 + yy121 := *x.ActiveDeadlineSeconds + yym122 := z.EncBinary() + _ = yym122 if false { } else { - r.EncodeInt(int64(yy16)) + r.EncodeInt(int64(yy121)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq107[3] { if x.Selector == nil { r.EncodeNil() } else { - yym19 := z.EncBinary() - _ = yym19 + yym124 := z.EncBinary() + _ = yym124 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -1426,15 +1426,15 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq107[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym20 := z.EncBinary() - _ = yym20 + yym125 := z.EncBinary() + _ = yym125 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -1443,53 +1443,53 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq107[4] { if x.ManualSelector == nil { r.EncodeNil() } else { - yy22 := *x.ManualSelector - yym23 := z.EncBinary() - _ = yym23 + yy127 := *x.ManualSelector + yym128 := z.EncBinary() + _ = yym128 if false { } else { - r.EncodeBool(bool(yy22)) + r.EncodeBool(bool(yy127)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq107[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("manualSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ManualSelector == nil { r.EncodeNil() } else { - yy24 := *x.ManualSelector - yym25 := z.EncBinary() - _ = yym25 + yy129 := *x.ManualSelector + yym130 := z.EncBinary() + _ = yym130 if false { } else { - r.EncodeBool(bool(yy24)) + r.EncodeBool(bool(yy129)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy27 := &x.Template - yy27.CodecEncodeSelf(e) + yy132 := &x.Template + yy132.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy29 := &x.Template - yy29.CodecEncodeSelf(e) + yy133 := &x.Template + yy133.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1502,25 +1502,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym134 := z.DecBinary() + _ = yym134 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct135 := r.ContainerType() + if yyct135 == codecSelferValueTypeMap1234 { + yyl135 := r.ReadMapStart() + if yyl135 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl135, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct135 == codecSelferValueTypeArray1234 { + yyl135 := r.ReadArrayStart() + if yyl135 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl135, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1532,12 +1532,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys136Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys136Slc + var yyhl136 bool = l >= 0 + for yyj136 := 0; ; yyj136++ { + if yyhl136 { + if yyj136 >= l { break } } else { @@ -1546,10 +1546,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys136Slc = r.DecodeBytes(yys136Slc, true, true) + yys136 := string(yys136Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys136 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -1559,8 +1559,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym138 := z.DecBinary() + _ = yym138 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -1575,8 +1575,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym7 := z.DecBinary() - _ = yym7 + yym140 := z.DecBinary() + _ = yym140 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -1591,8 +1591,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym142 := z.DecBinary() + _ = yym142 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -1607,8 +1607,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym11 := z.DecBinary() - _ = yym11 + yym144 := z.DecBinary() + _ = yym144 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -1624,8 +1624,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym13 := z.DecBinary() - _ = yym13 + yym146 := z.DecBinary() + _ = yym146 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() @@ -1635,13 +1635,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv14 := &x.Template - yyv14.CodecDecodeSelf(d) + yyv147 := &x.Template + yyv147.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys136) + } // end switch yys136 + } // end for yyj136 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1649,16 +1649,16 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj15 int - var yyb15 bool - var yyhl15 bool = l >= 0 - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + var yyj148 int + var yyb148 bool + var yyhl148 bool = l >= 0 + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1671,20 +1671,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym17 := z.DecBinary() - _ = yym17 + yym150 := z.DecBinary() + _ = yym150 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1697,20 +1697,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym19 := z.DecBinary() - _ = yym19 + yym152 := z.DecBinary() + _ = yym152 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1723,20 +1723,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym21 := z.DecBinary() - _ = yym21 + yym154 := z.DecBinary() + _ = yym154 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1749,21 +1749,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym23 := z.DecBinary() - _ = yym23 + yym156 := z.DecBinary() + _ = yym156 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1776,20 +1776,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym25 := z.DecBinary() - _ = yym25 + yym158 := z.DecBinary() + _ = yym158 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() } } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1797,21 +1797,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv26 := &x.Template - yyv26.CodecDecodeSelf(d) + yyv159 := &x.Template + yyv159.CodecDecodeSelf(d) } for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb15 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb15 { + if yyb148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj15-1, "") + z.DecStructFieldNotFound(yyj148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1823,43 +1823,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym160 := z.EncBinary() + _ = yym160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = x.StartTime != nil - yyq2[2] = x.CompletionTime != nil - yyq2[3] = x.Active != 0 - yyq2[4] = x.Succeeded != 0 - yyq2[5] = x.Failed != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep161 := !z.EncBinary() + yy2arr161 := z.EncBasicHandle().StructToArray + var yyq161 [6]bool + _, _, _ = yysep161, yyq161, yy2arr161 + const yyr161 bool = false + yyq161[0] = len(x.Conditions) != 0 + yyq161[1] = x.StartTime != nil + yyq161[2] = x.CompletionTime != nil + yyq161[3] = x.Active != 0 + yyq161[4] = x.Succeeded != 0 + yyq161[5] = x.Failed != 0 + var yynn161 int + if yyr161 || yy2arr161 { r.EncodeArrayStart(6) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn161 = 0 + for _, b := range yyq161 { if b { - yynn2++ + yynn161++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn161) + yynn161 = 0 } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq161[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym163 := z.EncBinary() + _ = yym163 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1869,15 +1869,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq161[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym164 := z.EncBinary() + _ = yym164 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1885,19 +1885,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq161[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym166 := z.EncBinary() + _ = yym166 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym7 { + } else if yym166 { z.EncBinaryMarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym166 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1907,20 +1907,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq161[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym167 := z.EncBinary() + _ = yym167 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym8 { + } else if yym167 { z.EncBinaryMarshal(x.StartTime) - } else if !yym8 && z.IsJSONHandle() { + } else if !yym167 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1928,19 +1928,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq161[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym169 := z.EncBinary() + _ = yym169 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym10 { + } else if yym169 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym169 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1950,20 +1950,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq161[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CompletionTime == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym170 := z.EncBinary() + _ = yym170 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym11 { + } else if yym170 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym11 && z.IsJSONHandle() { + } else if !yym170 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1971,11 +1971,11 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq161[3] { + yym172 := z.EncBinary() + _ = yym172 if false { } else { r.EncodeInt(int64(x.Active)) @@ -1984,23 +1984,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq161[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym173 := z.EncBinary() + _ = yym173 if false { } else { r.EncodeInt(int64(x.Active)) } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq161[4] { + yym175 := z.EncBinary() + _ = yym175 if false { } else { r.EncodeInt(int64(x.Succeeded)) @@ -2009,23 +2009,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq161[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("succeeded")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym176 := z.EncBinary() + _ = yym176 if false { } else { r.EncodeInt(int64(x.Succeeded)) } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq161[5] { + yym178 := z.EncBinary() + _ = yym178 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -2034,19 +2034,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[5] { + if yyq161[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym179 := z.EncBinary() + _ = yym179 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr2 || yy2arr2 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2059,25 +2059,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym180 := z.DecBinary() + _ = yym180 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct181 := r.ContainerType() + if yyct181 == codecSelferValueTypeMap1234 { + yyl181 := r.ReadMapStart() + if yyl181 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl181, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct181 == codecSelferValueTypeArray1234 { + yyl181 := r.ReadArrayStart() + if yyl181 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl181, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2089,12 +2089,12 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys182Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys182Slc + var yyhl182 bool = l >= 0 + for yyj182 := 0; ; yyj182++ { + if yyhl182 { + if yyj182 >= l { break } } else { @@ -2103,20 +2103,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys182Slc = r.DecodeBytes(yys182Slc, true, true) + yys182 := string(yys182Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys182 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv183 := &x.Conditions + yym184 := z.DecBinary() + _ = yym184 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv4), d) + h.decSliceJobCondition((*[]JobCondition)(yyv183), d) } } case "startTime": @@ -2128,13 +2128,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym186 := z.DecBinary() + _ = yym186 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym7 { + } else if yym186 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym186 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -2149,13 +2149,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym9 := z.DecBinary() - _ = yym9 + yym188 := z.DecBinary() + _ = yym188 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym9 { + } else if yym188 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym188 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -2180,9 +2180,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys182) + } // end switch yys182 + } // end for yyj182 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2190,16 +2190,16 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj192 int + var yyb192 bool + var yyhl192 bool = l >= 0 + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2207,21 +2207,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv14 := &x.Conditions - yym15 := z.DecBinary() - _ = yym15 + yyv193 := &x.Conditions + yym194 := z.DecBinary() + _ = yym194 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv14), d) + h.decSliceJobCondition((*[]JobCondition)(yyv193), d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2234,25 +2234,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym17 := z.DecBinary() - _ = yym17 + yym196 := z.DecBinary() + _ = yym196 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym17 { + } else if yym196 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym17 && z.IsJSONHandle() { + } else if !yym196 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2265,25 +2265,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym19 := z.DecBinary() - _ = yym19 + yym198 := z.DecBinary() + _ = yym198 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym19 { + } else if yym198 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym19 && z.IsJSONHandle() { + } else if !yym198 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2293,13 +2293,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2309,13 +2309,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2326,17 +2326,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb13 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb13 { + if yyb192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-1, "") + z.DecStructFieldNotFound(yyj192-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2345,8 +2345,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym202 := z.EncBinary() + _ = yym202 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -2358,8 +2358,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym203 := z.DecBinary() + _ = yym203 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -2374,34 +2374,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym204 := z.EncBinary() + _ = yym204 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep205 := !z.EncBinary() + yy2arr205 := z.EncBasicHandle().StructToArray + var yyq205 [6]bool + _, _, _ = yysep205, yyq205, yy2arr205 + const yyr205 bool = false + yyq205[2] = true + yyq205[3] = true + yyq205[4] = x.Reason != "" + yyq205[5] = x.Message != "" + var yynn205 int + if yyr205 || yy2arr205 { r.EncodeArrayStart(6) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn205 = 2 + for _, b := range yyq205 { if b { - yynn2++ + yynn205++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn205) + yynn205 = 0 } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -2410,96 +2410,106 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf7 := &x.Status - yysf7.CodecEncodeSelf(e) + yym208 := z.EncBinary() + _ = yym208 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yysf8 := &x.Status - yysf8.CodecEncodeSelf(e) + yym209 := z.EncBinary() + _ = yym209 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq205[2] { + yy211 := &x.LastProbeTime + yym212 := z.EncBinary() + _ = yym212 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy211) { + } else if yym212 { + z.EncBinaryMarshal(yy211) + } else if !yym212 && z.IsJSONHandle() { + z.EncJSONMarshal(yy211) } else { - z.EncFallback(yy10) + z.EncFallback(yy211) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq205[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy213 := &x.LastProbeTime + yym214 := z.EncBinary() + _ = yym214 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy213) { + } else if yym214 { + z.EncBinaryMarshal(yy213) + } else if !yym214 && z.IsJSONHandle() { + z.EncJSONMarshal(yy213) } else { - z.EncFallback(yy12) + z.EncFallback(yy213) } } } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq205[3] { + yy216 := &x.LastTransitionTime + yym217 := z.EncBinary() + _ = yym217 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy216) { + } else if yym217 { + z.EncBinaryMarshal(yy216) + } else if !yym217 && z.IsJSONHandle() { + z.EncJSONMarshal(yy216) } else { - z.EncFallback(yy15) + z.EncFallback(yy216) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq205[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy218 := &x.LastTransitionTime + yym219 := z.EncBinary() + _ = yym219 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy218) { + } else if yym219 { + z.EncBinaryMarshal(yy218) + } else if !yym219 && z.IsJSONHandle() { + z.EncJSONMarshal(yy218) } else { - z.EncFallback(yy17) + z.EncFallback(yy218) } } } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq205[4] { + yym221 := z.EncBinary() + _ = yym221 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -2508,23 +2518,23 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq205[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym222 := z.EncBinary() + _ = yym222 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq205[5] { + yym224 := z.EncBinary() + _ = yym224 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -2533,19 +2543,19 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq205[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym225 := z.EncBinary() + _ = yym225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2558,25 +2568,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym226 := z.DecBinary() + _ = yym226 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct227 := r.ContainerType() + if yyct227 == codecSelferValueTypeMap1234 { + yyl227 := r.ReadMapStart() + if yyl227 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl227, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct227 == codecSelferValueTypeArray1234 { + yyl227 := r.ReadArrayStart() + if yyl227 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl227, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2588,12 +2598,12 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys228Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys228Slc + var yyhl228 bool = l >= 0 + for yyj228 := 0; ; yyj228++ { + if yyhl228 { + if yyj228 >= l { break } } else { @@ -2602,10 +2612,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys228Slc = r.DecodeBytes(yys228Slc, true, true) + yys228 := string(yys228Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys228 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -2622,34 +2632,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv231 := &x.LastProbeTime + yym232 := z.DecBinary() + _ = yym232 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv231) { + } else if yym232 { + z.DecBinaryUnmarshal(yyv231) + } else if !yym232 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv231) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv231, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv233 := &x.LastTransitionTime + yym234 := z.DecBinary() + _ = yym234 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv233) { + } else if yym234 { + z.DecBinaryUnmarshal(yyv233) + } else if !yym234 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv233) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv233, false) } } case "reason": @@ -2665,9 +2675,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys228) + } // end switch yys228 + } // end for yyj228 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2675,16 +2685,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj237 int + var yyb237 bool + var yyhl237 bool = l >= 0 + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2694,13 +2704,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2710,13 +2720,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_api.ConditionStatus(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2724,26 +2734,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv240 := &x.LastProbeTime + yym241 := z.DecBinary() + _ = yym241 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv240) { + } else if yym241 { + z.DecBinaryUnmarshal(yyv240) + } else if !yym241 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv240) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv240, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2751,26 +2761,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv242 := &x.LastTransitionTime + yym243 := z.DecBinary() + _ = yym243 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv242) { + } else if yym243 { + z.DecBinaryUnmarshal(yyv242) + } else if !yym243 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv242) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv242, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2780,13 +2790,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2797,17 +2807,17 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb12 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb12 { + if yyb237 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj237-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2819,136 +2829,136 @@ func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym246 := z.EncBinary() + _ = yym246 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep247 := !z.EncBinary() + yy2arr247 := z.EncBasicHandle().StructToArray + var yyq247 [5]bool + _, _, _ = yysep247, yyq247, yy2arr247 + const yyr247 bool = false + yyq247[0] = x.Kind != "" + yyq247[1] = x.APIVersion != "" + yyq247[2] = true + yyq247[3] = true + yyq247[4] = true + var yynn247 int + if yyr247 || yy2arr247 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn247 = 0 + for _, b := range yyq247 { if b { - yynn2++ + yynn247++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn247) + yynn247 = 0 } - if yyr2 || yy2arr2 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq247[0] { + yym249 := z.EncBinary() + _ = yym249 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq247[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym250 := z.EncBinary() + _ = yym250 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq247[1] { + yym252 := z.EncBinary() + _ = yym252 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq247[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym253 := z.EncBinary() + _ = yym253 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq247[2] { + yy255 := &x.ObjectMeta + yy255.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq247[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy256 := &x.ObjectMeta + yy256.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq247[3] { + yy258 := &x.Spec + yy258.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq247[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy259 := &x.Spec + yy259.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq247[4] { + yy261 := &x.Status + yy261.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq247[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy262 := &x.Status + yy262.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2961,25 +2971,25 @@ func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym263 := z.DecBinary() + _ = yym263 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct264 := r.ContainerType() + if yyct264 == codecSelferValueTypeMap1234 { + yyl264 := r.ReadMapStart() + if yyl264 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl264, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct264 == codecSelferValueTypeArray1234 { + yyl264 := r.ReadArrayStart() + if yyl264 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl264, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2991,12 +3001,12 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys265Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys265Slc + var yyhl265 bool = l >= 0 + for yyj265 := 0; ; yyj265++ { + if yyhl265 { + if yyj265 >= l { break } } else { @@ -3005,47 +3015,47 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys265Slc = r.DecodeBytes(yys265Slc, true, true) + yys265 := string(yys265Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys265 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv268 := &x.ObjectMeta + yyv268.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScheduledJobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv269 := &x.Spec + yyv269.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScheduledJobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv270 := &x.Status + yyv270.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys265) + } // end switch yys265 + } // end for yyj265 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3053,104 +3063,104 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj271 int + var yyb271 bool + var yyhl271 bool = l >= 0 + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb9 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb9 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb9 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb9 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb9 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb9 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv274 := &x.ObjectMeta + yyv274.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb9 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb9 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScheduledJobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv275 := &x.Spec + yyv275.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb9 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb9 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScheduledJobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv276 := &x.Status + yyv276.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb9 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb9 { + if yyb271 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj271-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3162,139 +3172,139 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym277 := z.EncBinary() + _ = yym277 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep278 := !z.EncBinary() + yy2arr278 := z.EncBasicHandle().StructToArray + var yyq278 [4]bool + _, _, _ = yysep278, yyq278, yy2arr278 + const yyr278 bool = false + yyq278[0] = x.Kind != "" + yyq278[1] = x.APIVersion != "" + yyq278[2] = true + var yynn278 int + if yyr278 || yy2arr278 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn278 = 1 + for _, b := range yyq278 { if b { - yynn2++ + yynn278++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn278) + yynn278 = 0 } - if yyr2 || yy2arr2 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq278[0] { + yym280 := z.EncBinary() + _ = yym280 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq278[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym281 := z.EncBinary() + _ = yym281 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq278[1] { + yym283 := z.EncBinary() + _ = yym283 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq278[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym284 := z.EncBinary() + _ = yym284 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq278[2] { + yy286 := &x.ListMeta + yym287 := z.EncBinary() + _ = yym287 if false { + } else if z.HasExtensions() && z.EncExt(yy286) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy286) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq278[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy288 := &x.ListMeta + yym289 := z.EncBinary() + _ = yym289 if false { + } else if z.HasExtensions() && z.EncExt(yy288) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy288) } } } - if yyr2 || yy2arr2 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym291 := z.EncBinary() + _ = yym291 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym292 := z.EncBinary() + _ = yym292 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3307,25 +3317,25 @@ func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym293 := z.DecBinary() + _ = yym293 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct294 := r.ContainerType() + if yyct294 == codecSelferValueTypeMap1234 { + yyl294 := r.ReadMapStart() + if yyl294 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl294, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct294 == codecSelferValueTypeArray1234 { + yyl294 := r.ReadArrayStart() + if yyl294 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl294, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3337,12 +3347,12 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys295Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys295Slc + var yyhl295 bool = l >= 0 + for yyj295 := 0; ; yyj295++ { + if yyhl295 { + if yyj295 >= l { break } } else { @@ -3351,51 +3361,51 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys295Slc = r.DecodeBytes(yys295Slc, true, true) + yys295 := string(yys295Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys295 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv298 := &x.ListMeta + yym299 := z.DecBinary() + _ = yym299 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv298) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv298, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv300 := &x.Items + yym301 := z.DecBinary() + _ = yym301 if false { } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv6), d) + h.decSliceScheduledJob((*[]ScheduledJob)(yyv300), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys295) + } // end switch yys295 + } // end for yyj295 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3403,98 +3413,98 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj302 int + var yyb302 bool + var yyhl302 bool = l >= 0 + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb10 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb10 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb10 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb10 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb10 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb10 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv305 := &x.ListMeta + yym306 := z.DecBinary() + _ = yym306 + if false { + } else if z.HasExtensions() && z.DecExt(yyv305) { + } else { + z.DecFallback(yyv305, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb10 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb10 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv307 := &x.Items + yym308 := z.DecBinary() + _ = yym308 + if false { + } else { + h.decSliceScheduledJob((*[]ScheduledJob)(yyv307), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb10 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb10 { + if yyb302 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj302-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3506,35 +3516,36 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym309 := z.EncBinary() + _ = yym309 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[1] = x.StartingDeadlineSeconds != nil - yyq2[2] = x.ConcurrencyPolicy != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep310 := !z.EncBinary() + yy2arr310 := z.EncBasicHandle().StructToArray + var yyq310 [5]bool + _, _, _ = yysep310, yyq310, yy2arr310 + const yyr310 bool = false + yyq310[1] = x.StartingDeadlineSeconds != nil + yyq310[2] = x.ConcurrencyPolicy != "" + yyq310[3] = x.Suspend != nil + var yynn310 int + if yyr310 || yy2arr310 { r.EncodeArrayStart(5) } else { - yynn2 = 3 - for _, b := range yyq2 { + yynn310 = 2 + for _, b := range yyq310 { if b { - yynn2++ + yynn310++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn310) + yynn310 = 0 } - if yyr2 || yy2arr2 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym312 := z.EncBinary() + _ = yym312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) @@ -3543,104 +3554,110 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("schedule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym313 := z.EncBinary() + _ = yym313 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) } } - if yyr2 || yy2arr2 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq310[1] { if x.StartingDeadlineSeconds == nil { r.EncodeNil() } else { - yy7 := *x.StartingDeadlineSeconds - yym8 := z.EncBinary() - _ = yym8 + yy315 := *x.StartingDeadlineSeconds + yym316 := z.EncBinary() + _ = yym316 if false { } else { - r.EncodeInt(int64(yy7)) + r.EncodeInt(int64(yy315)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq310[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startingDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartingDeadlineSeconds == nil { r.EncodeNil() } else { - yy9 := *x.StartingDeadlineSeconds - yym10 := z.EncBinary() - _ = yym10 + yy317 := *x.StartingDeadlineSeconds + yym318 := z.EncBinary() + _ = yym318 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy317)) } } } } - if yyr2 || yy2arr2 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq310[2] { x.ConcurrencyPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq310[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrencyPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ConcurrencyPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Suspend == nil { - r.EncodeNil() - } else { - yy15 := *x.Suspend - yym16 := z.EncBinary() - _ = yym16 - if false { + if yyq310[3] { + if x.Suspend == nil { + r.EncodeNil() } else { - r.EncodeBool(bool(yy15)) + yy321 := *x.Suspend + yym322 := z.EncBinary() + _ = yym322 + if false { + } else { + r.EncodeBool(bool(yy321)) + } } + } else { + r.EncodeNil() } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("suspend")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Suspend == nil { - r.EncodeNil() - } else { - yy17 := *x.Suspend - yym18 := z.EncBinary() - _ = yym18 - if false { + if yyq310[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("suspend")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Suspend == nil { + r.EncodeNil() } else { - r.EncodeBool(bool(yy17)) + yy323 := *x.Suspend + yym324 := z.EncBinary() + _ = yym324 + if false { + } else { + r.EncodeBool(bool(yy323)) + } } } } - if yyr2 || yy2arr2 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy20 := &x.JobTemplate - yy20.CodecEncodeSelf(e) + yy326 := &x.JobTemplate + yy326.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("jobTemplate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy22 := &x.JobTemplate - yy22.CodecEncodeSelf(e) + yy327 := &x.JobTemplate + yy327.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3653,25 +3670,25 @@ func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym328 := z.DecBinary() + _ = yym328 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct329 := r.ContainerType() + if yyct329 == codecSelferValueTypeMap1234 { + yyl329 := r.ReadMapStart() + if yyl329 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl329, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct329 == codecSelferValueTypeArray1234 { + yyl329 := r.ReadArrayStart() + if yyl329 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl329, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3683,12 +3700,12 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys330Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys330Slc + var yyhl330 bool = l >= 0 + for yyj330 := 0; ; yyj330++ { + if yyhl330 { + if yyj330 >= l { break } } else { @@ -3697,10 +3714,10 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys330Slc = r.DecodeBytes(yys330Slc, true, true) + yys330 := string(yys330Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys330 { case "schedule": if r.TryDecodeAsNil() { x.Schedule = "" @@ -3716,8 +3733,8 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartingDeadlineSeconds == nil { x.StartingDeadlineSeconds = new(int64) } - yym6 := z.DecBinary() - _ = yym6 + yym333 := z.DecBinary() + _ = yym333 if false { } else { *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -3738,8 +3755,8 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Suspend == nil { x.Suspend = new(bool) } - yym9 := z.DecBinary() - _ = yym9 + yym336 := z.DecBinary() + _ = yym336 if false { } else { *((*bool)(x.Suspend)) = r.DecodeBool() @@ -3749,13 +3766,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.JobTemplate = JobTemplateSpec{} } else { - yyv10 := &x.JobTemplate - yyv10.CodecDecodeSelf(d) + yyv337 := &x.JobTemplate + yyv337.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys330) + } // end switch yys330 + } // end for yyj330 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3763,16 +3780,16 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj338 int + var yyb338 bool + var yyhl338 bool = l >= 0 + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb11 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb11 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3782,13 +3799,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Schedule = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb11 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb11 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3801,20 +3818,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.StartingDeadlineSeconds == nil { x.StartingDeadlineSeconds = new(int64) } - yym14 := z.DecBinary() - _ = yym14 + yym341 := z.DecBinary() + _ = yym341 if false { } else { *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb11 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb11 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3824,13 +3841,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb11 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb11 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3843,20 +3860,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Suspend == nil { x.Suspend = new(bool) } - yym17 := z.DecBinary() - _ = yym17 + yym344 := z.DecBinary() + _ = yym344 if false { } else { *((*bool)(x.Suspend)) = r.DecodeBool() } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb11 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb11 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3864,21 +3881,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.JobTemplate = JobTemplateSpec{} } else { - yyv18 := &x.JobTemplate - yyv18.CodecDecodeSelf(d) + yyv345 := &x.JobTemplate + yyv345.CodecDecodeSelf(d) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb11 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb11 { + if yyb338 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj338-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3887,8 +3904,8 @@ func (x ConcurrencyPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym346 := z.EncBinary() + _ = yym346 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -3900,8 +3917,8 @@ func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym347 := z.DecBinary() + _ = yym347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -3916,39 +3933,39 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym348 := z.EncBinary() + _ = yym348 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Active) != 0 - yyq2[1] = x.LastScheduleTime != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep349 := !z.EncBinary() + yy2arr349 := z.EncBasicHandle().StructToArray + var yyq349 [2]bool + _, _, _ = yysep349, yyq349, yy2arr349 + const yyr349 bool = false + yyq349[0] = len(x.Active) != 0 + yyq349[1] = x.LastScheduleTime != nil + var yynn349 int + if yyr349 || yy2arr349 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn349 = 0 + for _, b := range yyq349 { if b { - yynn2++ + yynn349++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn349) + yynn349 = 0 } - if yyr2 || yy2arr2 { + if yyr349 || yy2arr349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq349[0] { if x.Active == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym351 := z.EncBinary() + _ = yym351 if false { } else { h.encSliceapi_ObjectReference(([]pkg2_api.ObjectReference)(x.Active), e) @@ -3958,15 +3975,15 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq349[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Active == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym352 := z.EncBinary() + _ = yym352 if false { } else { h.encSliceapi_ObjectReference(([]pkg2_api.ObjectReference)(x.Active), e) @@ -3974,19 +3991,19 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr349 || yy2arr349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq349[1] { if x.LastScheduleTime == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym354 := z.EncBinary() + _ = yym354 if false { } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym7 { + } else if yym354 { z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym354 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScheduleTime) } else { z.EncFallback(x.LastScheduleTime) @@ -3996,20 +4013,20 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq349[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastScheduleTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LastScheduleTime == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym355 := z.EncBinary() + _ = yym355 if false { } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym8 { + } else if yym355 { z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym8 && z.IsJSONHandle() { + } else if !yym355 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScheduleTime) } else { z.EncFallback(x.LastScheduleTime) @@ -4017,7 +4034,7 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr349 || yy2arr349 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4030,25 +4047,25 @@ func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym356 := z.DecBinary() + _ = yym356 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct357 := r.ContainerType() + if yyct357 == codecSelferValueTypeMap1234 { + yyl357 := r.ReadMapStart() + if yyl357 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl357, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct357 == codecSelferValueTypeArray1234 { + yyl357 := r.ReadArrayStart() + if yyl357 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl357, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4060,12 +4077,12 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys358Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys358Slc + var yyhl358 bool = l >= 0 + for yyj358 := 0; ; yyj358++ { + if yyhl358 { + if yyj358 >= l { break } } else { @@ -4074,20 +4091,20 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys358Slc = r.DecodeBytes(yys358Slc, true, true) + yys358 := string(yys358Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys358 { case "active": if r.TryDecodeAsNil() { x.Active = nil } else { - yyv4 := &x.Active - yym5 := z.DecBinary() - _ = yym5 + yyv359 := &x.Active + yym360 := z.DecBinary() + _ = yym360 if false { } else { - h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv4), d) + h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv359), d) } } case "lastScheduleTime": @@ -4099,22 +4116,22 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.LastScheduleTime == nil { x.LastScheduleTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym362 := z.DecBinary() + _ = yym362 if false { } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym7 { + } else if yym362 { z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym362 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScheduleTime) } else { z.DecFallback(x.LastScheduleTime, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys358) + } // end switch yys358 + } // end for yyj358 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4122,16 +4139,16 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj363 int + var yyb363 bool + var yyhl363 bool = l >= 0 + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb8 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb8 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4139,21 +4156,21 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Active = nil } else { - yyv9 := &x.Active - yym10 := z.DecBinary() - _ = yym10 + yyv364 := &x.Active + yym365 := z.DecBinary() + _ = yym365 if false { } else { - h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv9), d) + h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv364), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb8 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb8 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4166,30 +4183,30 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.LastScheduleTime == nil { x.LastScheduleTime = new(pkg1_unversioned.Time) } - yym12 := z.DecBinary() - _ = yym12 + yym367 := z.DecBinary() + _ = yym367 if false { } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym12 { + } else if yym367 { z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym12 && z.IsJSONHandle() { + } else if !yym367 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScheduleTime) } else { z.DecFallback(x.LastScheduleTime, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb8 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb8 { + if yyb363 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj363-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4199,10 +4216,10 @@ func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv368 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy369 := &yyv368 + yy369.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4212,86 +4229,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Job{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv370 := *v + yyh370, yyl370 := z.DecSliceHelperStart() + var yyc370 bool + if yyl370 == 0 { + if yyv370 == nil { + yyv370 = []Job{} + yyc370 = true + } else if len(yyv370) != 0 { + yyv370 = yyv370[:0] + yyc370 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl370 > 0 { + var yyrr370, yyrl370 int + var yyrt370 bool + if yyl370 > cap(yyv370) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 768) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg370 := len(yyv370) > 0 + yyv2370 := yyv370 + yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 800) + if yyrt370 { + if yyrl370 <= cap(yyv370) { + yyv370 = yyv370[:yyrl370] } else { - yyv1 = make([]Job, yyrl1) + yyv370 = make([]Job, yyrl370) } } else { - yyv1 = make([]Job, yyrl1) + yyv370 = make([]Job, yyrl370) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc370 = true + yyrr370 = len(yyv370) + if yyrg370 { + copy(yyv370, yyv2370) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl370 != len(yyv370) { + yyv370 = yyv370[:yyl370] + yyc370 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj370 := 0 + for ; yyj370 < yyrr370; yyj370++ { + yyh370.ElemContainerState(yyj370) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv370[yyj370] = Job{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv371 := &yyv370[yyj370] + yyv371.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Job{}) - yyh1.ElemContainerState(yyj1) + if yyrt370 { + for ; yyj370 < yyl370; yyj370++ { + yyv370 = append(yyv370, Job{}) + yyh370.ElemContainerState(yyj370) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv370[yyj370] = Job{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv372 := &yyv370[yyj370] + yyv372.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj370 := 0 + for ; !r.CheckBreak(); yyj370++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Job{}) // var yyz1 Job - yyc1 = true + if yyj370 >= len(yyv370) { + yyv370 = append(yyv370, Job{}) // var yyz370 Job + yyc370 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh370.ElemContainerState(yyj370) + if yyj370 < len(yyv370) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv370[yyj370] = Job{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv373 := &yyv370[yyj370] + yyv373.CodecDecodeSelf(d) } } else { @@ -4299,17 +4313,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Job{} - yyc1 = true + if yyj370 < len(yyv370) { + yyv370 = yyv370[:yyj370] + yyc370 = true + } else if yyj370 == 0 && yyv370 == nil { + yyv370 = []Job{} + yyc370 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh370.End() + if yyc370 { + *v = yyv370 } } @@ -4318,10 +4332,10 @@ func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv374 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy375 := &yyv374 + yy375.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4331,86 +4345,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv376 := *v + yyh376, yyl376 := z.DecSliceHelperStart() + var yyc376 bool + if yyl376 == 0 { + if yyv376 == nil { + yyv376 = []JobCondition{} + yyc376 = true + } else if len(yyv376) != 0 { + yyv376 = yyv376[:0] + yyc376 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl376 > 0 { + var yyrr376, yyrl376 int + var yyrt376 bool + if yyl376 > cap(yyv376) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg376 := len(yyv376) > 0 + yyv2376 := yyv376 + yyrl376, yyrt376 = z.DecInferLen(yyl376, z.DecBasicHandle().MaxInitLen, 112) + if yyrt376 { + if yyrl376 <= cap(yyv376) { + yyv376 = yyv376[:yyrl376] } else { - yyv1 = make([]JobCondition, yyrl1) + yyv376 = make([]JobCondition, yyrl376) } } else { - yyv1 = make([]JobCondition, yyrl1) + yyv376 = make([]JobCondition, yyrl376) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc376 = true + yyrr376 = len(yyv376) + if yyrg376 { + copy(yyv376, yyv2376) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl376 != len(yyv376) { + yyv376 = yyv376[:yyl376] + yyc376 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj376 := 0 + for ; yyj376 < yyrr376; yyj376++ { + yyh376.ElemContainerState(yyj376) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv376[yyj376] = JobCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv377 := &yyv376[yyj376] + yyv377.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, JobCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt376 { + for ; yyj376 < yyl376; yyj376++ { + yyv376 = append(yyv376, JobCondition{}) + yyh376.ElemContainerState(yyj376) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv376[yyj376] = JobCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv378 := &yyv376[yyj376] + yyv378.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj376 := 0 + for ; !r.CheckBreak(); yyj376++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, JobCondition{}) // var yyz1 JobCondition - yyc1 = true + if yyj376 >= len(yyv376) { + yyv376 = append(yyv376, JobCondition{}) // var yyz376 JobCondition + yyc376 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh376.ElemContainerState(yyj376) + if yyj376 < len(yyv376) { if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv376[yyj376] = JobCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv379 := &yyv376[yyj376] + yyv379.CodecDecodeSelf(d) } } else { @@ -4418,17 +4429,17 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true + if yyj376 < len(yyv376) { + yyv376 = yyv376[:yyj376] + yyc376 = true + } else if yyj376 == 0 && yyv376 == nil { + yyv376 = []JobCondition{} + yyc376 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh376.End() + if yyc376 { + *v = yyv376 } } @@ -4437,10 +4448,10 @@ func (x codecSelfer1234) encSliceScheduledJob(v []ScheduledJob, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv380 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy381 := &yyv380 + yy381.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4450,86 +4461,83 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ScheduledJob{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv382 := *v + yyh382, yyl382 := z.DecSliceHelperStart() + var yyc382 bool + if yyl382 == 0 { + if yyv382 == nil { + yyv382 = []ScheduledJob{} + yyc382 = true + } else if len(yyv382) != 0 { + yyv382 = yyv382[:0] + yyc382 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl382 > 0 { + var yyrr382, yyrl382 int + var yyrt382 bool + if yyl382 > cap(yyv382) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1000) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg382 := len(yyv382) > 0 + yyv2382 := yyv382 + yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1048) + if yyrt382 { + if yyrl382 <= cap(yyv382) { + yyv382 = yyv382[:yyrl382] } else { - yyv1 = make([]ScheduledJob, yyrl1) + yyv382 = make([]ScheduledJob, yyrl382) } } else { - yyv1 = make([]ScheduledJob, yyrl1) + yyv382 = make([]ScheduledJob, yyrl382) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc382 = true + yyrr382 = len(yyv382) + if yyrg382 { + copy(yyv382, yyv2382) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl382 != len(yyv382) { + yyv382 = yyv382[:yyl382] + yyc382 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj382 := 0 + for ; yyj382 < yyrr382; yyj382++ { + yyh382.ElemContainerState(yyj382) if r.TryDecodeAsNil() { - yyv1[yyj1] = ScheduledJob{} + yyv382[yyj382] = ScheduledJob{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv383 := &yyv382[yyj382] + yyv383.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ScheduledJob{}) - yyh1.ElemContainerState(yyj1) + if yyrt382 { + for ; yyj382 < yyl382; yyj382++ { + yyv382 = append(yyv382, ScheduledJob{}) + yyh382.ElemContainerState(yyj382) if r.TryDecodeAsNil() { - yyv1[yyj1] = ScheduledJob{} + yyv382[yyj382] = ScheduledJob{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv384 := &yyv382[yyj382] + yyv384.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj382 := 0 + for ; !r.CheckBreak(); yyj382++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ScheduledJob{}) // var yyz1 ScheduledJob - yyc1 = true + if yyj382 >= len(yyv382) { + yyv382 = append(yyv382, ScheduledJob{}) // var yyz382 ScheduledJob + yyc382 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh382.ElemContainerState(yyj382) + if yyj382 < len(yyv382) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ScheduledJob{} + yyv382[yyj382] = ScheduledJob{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv385 := &yyv382[yyj382] + yyv385.CodecDecodeSelf(d) } } else { @@ -4537,17 +4545,17 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ScheduledJob{} - yyc1 = true + if yyj382 < len(yyv382) { + yyv382 = yyv382[:yyj382] + yyc382 = true + } else if yyj382 == 0 && yyv382 == nil { + yyv382 = []ScheduledJob{} + yyc382 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh382.End() + if yyc382 { + *v = yyv382 } } @@ -4556,10 +4564,10 @@ func (x codecSelfer1234) encSliceapi_ObjectReference(v []pkg2_api.ObjectReferenc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv386 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy387 := &yyv386 + yy387.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4569,86 +4577,83 @@ func (x codecSelfer1234) decSliceapi_ObjectReference(v *[]pkg2_api.ObjectReferen z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg2_api.ObjectReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv388 := *v + yyh388, yyl388 := z.DecSliceHelperStart() + var yyc388 bool + if yyl388 == 0 { + if yyv388 == nil { + yyv388 = []pkg2_api.ObjectReference{} + yyc388 = true + } else if len(yyv388) != 0 { + yyv388 = yyv388[:0] + yyc388 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl388 > 0 { + var yyrr388, yyrl388 int + var yyrt388 bool + if yyl388 > cap(yyv388) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg388 := len(yyv388) > 0 + yyv2388 := yyv388 + yyrl388, yyrt388 = z.DecInferLen(yyl388, z.DecBasicHandle().MaxInitLen, 112) + if yyrt388 { + if yyrl388 <= cap(yyv388) { + yyv388 = yyv388[:yyrl388] } else { - yyv1 = make([]pkg2_api.ObjectReference, yyrl1) + yyv388 = make([]pkg2_api.ObjectReference, yyrl388) } } else { - yyv1 = make([]pkg2_api.ObjectReference, yyrl1) + yyv388 = make([]pkg2_api.ObjectReference, yyrl388) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc388 = true + yyrr388 = len(yyv388) + if yyrg388 { + copy(yyv388, yyv2388) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl388 != len(yyv388) { + yyv388 = yyv388[:yyl388] + yyc388 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj388 := 0 + for ; yyj388 < yyrr388; yyj388++ { + yyh388.ElemContainerState(yyj388) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_api.ObjectReference{} + yyv388[yyj388] = pkg2_api.ObjectReference{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv389 := &yyv388[yyj388] + yyv389.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, pkg2_api.ObjectReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt388 { + for ; yyj388 < yyl388; yyj388++ { + yyv388 = append(yyv388, pkg2_api.ObjectReference{}) + yyh388.ElemContainerState(yyj388) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_api.ObjectReference{} + yyv388[yyj388] = pkg2_api.ObjectReference{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv390 := &yyv388[yyj388] + yyv390.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj388 := 0 + for ; !r.CheckBreak(); yyj388++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, pkg2_api.ObjectReference{}) // var yyz1 pkg2_api.ObjectReference - yyc1 = true + if yyj388 >= len(yyv388) { + yyv388 = append(yyv388, pkg2_api.ObjectReference{}) // var yyz388 pkg2_api.ObjectReference + yyc388 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh388.ElemContainerState(yyj388) + if yyj388 < len(yyv388) { if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_api.ObjectReference{} + yyv388[yyj388] = pkg2_api.ObjectReference{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv391 := &yyv388[yyj388] + yyv391.CodecDecodeSelf(d) } } else { @@ -4656,16 +4661,16 @@ func (x codecSelfer1234) decSliceapi_ObjectReference(v *[]pkg2_api.ObjectReferen } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg2_api.ObjectReference{} - yyc1 = true + if yyj388 < len(yyv388) { + yyv388 = yyv388[:yyj388] + yyc388 = true + } else if yyj388 == 0 && yyv388 == nil { + yyv388 = []pkg2_api.ObjectReference{} + yyc388 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh388.End() + if yyc388 { + *v = yyv388 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.go index 61a35d47fa..7db3057beb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/types.go @@ -209,7 +209,7 @@ type ScheduledJobSpec struct { // Suspend flag tells the controller to suspend subsequent executions, it does // not apply to already started executions. Defaults to false. - Suspend *bool `json:"suspend"` + Suspend *bool `json:"suspend,omitempty"` // JobTemplate is the object that describes the job that will be created when // executing a ScheduledJob. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion.go index 8846af1ed5..01dfe02970 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion.go @@ -27,18 +27,17 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addConversionFuncs(scheme *runtime.Scheme) { +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions err := scheme.AddConversionFuncs( Convert_batch_JobSpec_To_v1_JobSpec, Convert_v1_JobSpec_To_batch_JobSpec, ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } - err = api.Scheme.AddFieldLabelConversionFunc("batch/v1", "Job", + return api.Scheme.AddFieldLabelConversionFunc("batch/v1", "Job", func(label, value string) (string, string, error) { switch label { case "metadata.name", "metadata.namespace", "status.successful": @@ -46,11 +45,8 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + }, + ) } func Convert_batch_JobSpec_To_v1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/deep_copy_generated.go deleted file mode 100644 index 53d4eab004..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/deep_copy_generated.go +++ /dev/null @@ -1,197 +0,0 @@ -// +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 v1 - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - api_v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1_Job, - DeepCopy_v1_JobCondition, - DeepCopy_v1_JobList, - DeepCopy_v1_JobSpec, - DeepCopy_v1_JobStatus, - DeepCopy_v1_LabelSelector, - DeepCopy_v1_LabelSelectorRequirement, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1_Job(in Job, out *Job, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api_v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1_JobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1_JobStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_JobCondition(in JobCondition, out *JobCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v1_JobList(in JobList, out *JobList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Job, len(in)) - for i := range in { - if err := DeepCopy_v1_Job(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1_JobSpec(in JobSpec, out *JobSpec, c *conversion.Cloner) error { - if in.Parallelism != nil { - in, out := in.Parallelism, &out.Parallelism - *out = new(int32) - **out = *in - } else { - out.Parallelism = nil - } - if in.Completions != nil { - in, out := in.Completions, &out.Completions - *out = new(int32) - **out = *in - } else { - out.Completions = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.ActiveDeadlineSeconds = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if in.ManualSelector != nil { - in, out := in.ManualSelector, &out.ManualSelector - *out = new(bool) - **out = *in - } else { - out.ManualSelector = nil - } - if err := api_v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1_JobStatus(in JobStatus, out *JobStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]JobCondition, len(in)) - for i := range in { - if err := DeepCopy_v1_JobCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.StartTime != nil { - in, out := in.StartTime, &out.StartTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.StartTime = nil - } - if in.CompletionTime != nil { - in, out := in.CompletionTime, &out.CompletionTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.CompletionTime = nil - } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func DeepCopy_v1_LabelSelector(in LabelSelector, out *LabelSelector, c *conversion.Cloner) error { - if in.MatchLabels != nil { - in, out := in.MatchLabels, &out.MatchLabels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.MatchLabels = nil - } - if in.MatchExpressions != nil { - in, out := in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(in)) - for i := range in { - if err := DeepCopy_v1_LabelSelectorRequirement(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func DeepCopy_v1_LabelSelectorRequirement(in LabelSelectorRequirement, out *LabelSelectorRequirement, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - if in.Values != nil { - in, out := in.Values, &out.Values - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Values = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/defaults.go index 571d2c524f..5b029d09a0 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/defaults.go @@ -20,8 +20,8 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_Job, ) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.pb.go index d3649ef667..ec4755f782 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.pb.go @@ -42,6 +42,10 @@ import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned" import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" +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. @@ -49,33 +53,39 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *Job) Reset() { *m = Job{} } -func (m *Job) String() string { return proto.CompactTextString(m) } -func (*Job) ProtoMessage() {} +// 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 *Job) Reset() { *m = Job{} } +func (*Job) ProtoMessage() {} +func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *JobCondition) Reset() { *m = JobCondition{} } -func (m *JobCondition) String() string { return proto.CompactTextString(m) } -func (*JobCondition) ProtoMessage() {} +func (m *JobCondition) Reset() { *m = JobCondition{} } +func (*JobCondition) ProtoMessage() {} +func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *JobList) Reset() { *m = JobList{} } -func (m *JobList) String() string { return proto.CompactTextString(m) } -func (*JobList) ProtoMessage() {} +func (m *JobList) Reset() { *m = JobList{} } +func (*JobList) ProtoMessage() {} +func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *JobSpec) Reset() { *m = JobSpec{} } -func (m *JobSpec) String() string { return proto.CompactTextString(m) } -func (*JobSpec) ProtoMessage() {} +func (m *JobSpec) Reset() { *m = JobSpec{} } +func (*JobSpec) ProtoMessage() {} +func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *JobStatus) Reset() { *m = JobStatus{} } -func (m *JobStatus) String() string { return proto.CompactTextString(m) } -func (*JobStatus) ProtoMessage() {} +func (m *JobStatus) Reset() { *m = JobStatus{} } +func (*JobStatus) ProtoMessage() {} +func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *LabelSelector) Reset() { *m = LabelSelector{} } -func (m *LabelSelector) String() string { return proto.CompactTextString(m) } -func (*LabelSelector) ProtoMessage() {} +func (m *LabelSelector) Reset() { *m = LabelSelector{} } +func (*LabelSelector) ProtoMessage() {} +func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) } -func (*LabelSelectorRequirement) ProtoMessage() {} +func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } +func (*LabelSelectorRequirement) ProtoMessage() {} +func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{6} +} func init() { proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.Job") @@ -591,6 +601,115 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Job) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Job{`, + `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(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *JobList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Job", "Job", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobSpec{`, + `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, + `Completions:` + valueToStringGenerated(this.Completions) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobStatus{`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "JobCondition", "JobCondition", 1), `&`, ``, 1) + `,`, + `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `Active:` + fmt.Sprintf("%v", this.Active) + `,`, + `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`, + `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelector) String() string { + if this == nil { + return "nil" + } + keysForMatchLabels := make([]string, 0, len(this.MatchLabels)) + for k := range this.MatchLabels { + keysForMatchLabels = append(keysForMatchLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) + mapStringForMatchLabels := "map[string]string{" + for _, k := range keysForMatchLabels { + mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k]) + } + mapStringForMatchLabels += "}" + s := strings.Join([]string{`&LabelSelector{`, + `MatchLabels:` + mapStringForMatchLabels + `,`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LabelSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + 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 *Job) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -1899,3 +2018,72 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 1027 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0x23, 0x45, + 0x10, 0x8e, 0x3d, 0xb1, 0x63, 0xb7, 0x93, 0xac, 0x69, 0x88, 0x64, 0x2c, 0x91, 0xac, 0x0c, 0x42, + 0xbb, 0x62, 0x33, 0x23, 0x07, 0x90, 0x56, 0x2b, 0xb1, 0x12, 0x13, 0x82, 0x04, 0xc4, 0x24, 0x6a, + 0x47, 0x2b, 0xc4, 0xcf, 0xa1, 0x3d, 0xae, 0x75, 0x86, 0x8c, 0x67, 0x86, 0xe9, 0x1e, 0x43, 0x38, + 0x21, 0x71, 0xe0, 0xca, 0x43, 0xf0, 0x0c, 0xec, 0x2b, 0xe4, 0xb8, 0x70, 0xe2, 0x14, 0xc1, 0xf2, + 0x16, 0x9c, 0xe8, 0xee, 0xe9, 0xf9, 0xf1, 0x5f, 0xe4, 0xec, 0xa1, 0x25, 0x77, 0x75, 0x7d, 0x5f, + 0x55, 0x77, 0x7d, 0x55, 0x63, 0xf4, 0xee, 0xc5, 0x43, 0x66, 0xba, 0x81, 0x75, 0x11, 0x0f, 0x20, + 0xf2, 0x81, 0x03, 0xb3, 0xc2, 0x8b, 0x91, 0x45, 0x43, 0x97, 0x59, 0x03, 0xca, 0x9d, 0x73, 0x6b, + 0xd2, 0xb5, 0x46, 0xe0, 0x43, 0x44, 0x39, 0x0c, 0xcd, 0x30, 0x0a, 0x78, 0x80, 0xdf, 0x4c, 0x40, + 0x66, 0x0e, 0x32, 0x05, 0xc8, 0x94, 0x20, 0x53, 0x81, 0xcc, 0x49, 0xb7, 0xbd, 0x3f, 0x72, 0xf9, + 0x79, 0x3c, 0x30, 0x9d, 0x60, 0x6c, 0x8d, 0x82, 0x51, 0x60, 0x29, 0xec, 0x20, 0x7e, 0xaa, 0x76, + 0x6a, 0xa3, 0x7e, 0x25, 0x9c, 0xed, 0x83, 0xa5, 0x89, 0x58, 0x11, 0xb0, 0x20, 0x8e, 0x1c, 0x98, + 0xcd, 0xa3, 0xfd, 0xfe, 0x72, 0x4c, 0xec, 0x4f, 0x20, 0x62, 0x6e, 0xe0, 0xc3, 0x70, 0x0e, 0xf6, + 0x60, 0x39, 0x6c, 0xfe, 0xb2, 0xed, 0xfd, 0xc5, 0xde, 0x51, 0xec, 0x73, 0x77, 0x3c, 0x9f, 0x53, + 0x77, 0xb1, 0x7b, 0xcc, 0x5d, 0xcf, 0x72, 0x7d, 0xce, 0x78, 0x34, 0x0b, 0xe9, 0xfc, 0x52, 0x46, + 0xc6, 0xa7, 0xc1, 0x00, 0x7f, 0x81, 0x6a, 0x63, 0xe0, 0x74, 0x48, 0x39, 0x6d, 0x95, 0xee, 0x96, + 0xee, 0x35, 0x0e, 0xee, 0x99, 0x4b, 0x5f, 0x5a, 0x3c, 0xb1, 0x79, 0x32, 0xf8, 0x16, 0x1c, 0xde, + 0x13, 0x18, 0x1b, 0x5f, 0x5d, 0xef, 0xad, 0xbd, 0xb8, 0xde, 0x43, 0xb9, 0x8d, 0x64, 0x6c, 0xf8, + 0x73, 0xb4, 0xce, 0x42, 0x70, 0x5a, 0x65, 0xc5, 0xfa, 0xc0, 0x5c, 0xa1, 0x7e, 0xa6, 0xc8, 0xa8, + 0x2f, 0x30, 0xf6, 0xa6, 0x66, 0x5e, 0x97, 0x3b, 0xa2, 0x78, 0xf0, 0x13, 0x54, 0x65, 0x9c, 0xf2, + 0x98, 0xb5, 0x0c, 0xc5, 0x68, 0xae, 0xcc, 0xa8, 0x50, 0xf6, 0xb6, 0xe6, 0xac, 0x26, 0x7b, 0xa2, + 0xd9, 0x3a, 0x7f, 0x1a, 0x68, 0x53, 0x78, 0x1d, 0x06, 0xfe, 0xd0, 0xe5, 0xa2, 0x78, 0xf8, 0x3d, + 0xb4, 0xce, 0x2f, 0x43, 0x50, 0xcf, 0x51, 0xb7, 0xef, 0xa6, 0xa9, 0x9c, 0x09, 0xdb, 0x7f, 0xd7, + 0x7b, 0xcd, 0xa2, 0xaf, 0xb4, 0x11, 0xe5, 0x5d, 0x48, 0xaf, 0xac, 0x70, 0x8f, 0xa7, 0xc3, 0x09, + 0xe4, 0x8d, 0x12, 0x30, 0x33, 0xce, 0xe9, 0xf4, 0xf0, 0x39, 0xda, 0xf2, 0x28, 0xe3, 0xa7, 0x51, + 0x30, 0x80, 0x33, 0x51, 0x7c, 0x7d, 0xfb, 0x77, 0x6e, 0xa8, 0x52, 0x41, 0x87, 0xa6, 0x84, 0xd8, + 0x3b, 0x3a, 0x97, 0xad, 0xe3, 0x22, 0x13, 0x99, 0x26, 0xc6, 0xdf, 0x23, 0x2c, 0x0d, 0x67, 0x11, + 0xf5, 0x59, 0x72, 0x3b, 0x19, 0x6e, 0xfd, 0xf6, 0xe1, 0xda, 0x3a, 0x1c, 0x3e, 0x9e, 0xa3, 0x23, + 0x0b, 0x42, 0xe0, 0xb7, 0x51, 0x35, 0x02, 0xca, 0x02, 0xbf, 0x55, 0x51, 0x4f, 0x97, 0x55, 0x8a, + 0x28, 0x2b, 0xd1, 0xa7, 0xf8, 0x3e, 0xda, 0x18, 0x03, 0x63, 0x74, 0x04, 0xad, 0xaa, 0x72, 0xbc, + 0xa3, 0x1d, 0x37, 0x7a, 0x89, 0x99, 0xa4, 0xe7, 0x9d, 0x67, 0x25, 0xb4, 0x21, 0x0a, 0x75, 0xec, + 0x32, 0x8e, 0xbf, 0x99, 0x93, 0xb8, 0xb5, 0xe2, 0x6d, 0x24, 0x5c, 0x29, 0xbd, 0xa9, 0x03, 0xd5, + 0x52, 0x4b, 0x41, 0xe7, 0x3d, 0x54, 0x71, 0x39, 0x8c, 0x65, 0xdd, 0x8d, 0x9b, 0xdb, 0x67, 0x5a, + 0x96, 0xf6, 0x96, 0x26, 0xad, 0x7c, 0x22, 0xe1, 0x24, 0x61, 0xe9, 0x3c, 0x33, 0x54, 0xe6, 0x52, + 0xf8, 0xb8, 0x8b, 0x1a, 0x21, 0x8d, 0xa8, 0xe7, 0x81, 0xe7, 0xb2, 0xb1, 0x4a, 0xbe, 0x62, 0xdf, + 0x11, 0x90, 0xc6, 0x69, 0x6e, 0x26, 0x45, 0x1f, 0x09, 0x11, 0xc3, 0x2f, 0xf4, 0x40, 0xbe, 0x6e, + 0xa2, 0x45, 0x0d, 0x39, 0xcc, 0xcd, 0xa4, 0xe8, 0x83, 0x4f, 0xd0, 0x0e, 0x75, 0xb8, 0x3b, 0x81, + 0x8f, 0x80, 0x0e, 0x3d, 0xd7, 0x87, 0x3e, 0x38, 0x42, 0x8c, 0x49, 0x9f, 0x19, 0xf6, 0xeb, 0x02, + 0xbc, 0xf3, 0xe1, 0x22, 0x07, 0xb2, 0x18, 0x87, 0xbf, 0x46, 0x35, 0x06, 0x9e, 0x98, 0x08, 0x41, + 0xa4, 0xe5, 0x73, 0xb0, 0xd2, 0xa3, 0x1c, 0xd3, 0x01, 0x78, 0x7d, 0x8d, 0xb4, 0x37, 0xe5, 0x7b, + 0xa7, 0x3b, 0x92, 0x31, 0xe2, 0x47, 0x68, 0x7b, 0x4c, 0xfd, 0x98, 0x66, 0x9e, 0x4a, 0x35, 0x35, + 0x1b, 0x0b, 0xff, 0xed, 0xde, 0xd4, 0x09, 0x99, 0xf1, 0xc4, 0x5f, 0xa1, 0x9a, 0x78, 0xe4, 0xd0, + 0x13, 0x83, 0x50, 0x49, 0xa8, 0x71, 0xb0, 0x7f, 0xf3, 0xb4, 0x3b, 0x0d, 0x86, 0x67, 0x1a, 0xa0, + 0x06, 0x53, 0x26, 0x84, 0xd4, 0x4a, 0x32, 0xc2, 0xce, 0xef, 0x06, 0xaa, 0x67, 0xe3, 0x06, 0x03, + 0x42, 0x4e, 0xda, 0xd2, 0x4c, 0x94, 0x4e, 0x6a, 0xa3, 0xbb, 0xaa, 0x36, 0xb2, 0x61, 0x90, 0xcf, + 0xd8, 0xcc, 0xc4, 0x48, 0x81, 0x58, 0xcc, 0xef, 0xba, 0x18, 0x14, 0x11, 0x57, 0xbd, 0x5a, 0xbe, + 0x7d, 0xaf, 0x6e, 0x09, 0xee, 0x7a, 0x3f, 0x65, 0x20, 0x39, 0x19, 0x1e, 0xa1, 0xed, 0x5c, 0x25, + 0x2f, 0x3b, 0x79, 0x54, 0x51, 0x0e, 0xa7, 0x68, 0xc8, 0x0c, 0xad, 0x6c, 0xff, 0x44, 0x47, 0x4a, + 0x2c, 0x95, 0xbc, 0xfd, 0x13, 0xd1, 0x11, 0x7d, 0x8a, 0x2d, 0x71, 0xd5, 0xd8, 0x71, 0x00, 0x86, + 0x30, 0x54, 0x35, 0xaf, 0xd8, 0xaf, 0x68, 0xd7, 0x7a, 0x3f, 0x3d, 0x20, 0xb9, 0x8f, 0x24, 0x7e, + 0x4a, 0x5d, 0x4f, 0x78, 0x57, 0xa7, 0x89, 0x3f, 0x56, 0x56, 0xa2, 0x4f, 0x3b, 0x7f, 0x94, 0xd1, + 0xd6, 0x94, 0xf6, 0xf0, 0x8f, 0xa8, 0x31, 0x96, 0xe5, 0x50, 0xd6, 0xb4, 0x7a, 0x87, 0xb7, 0x17, + 0xb1, 0xd9, 0xcb, 0x59, 0x8e, 0x7c, 0x1e, 0x5d, 0xda, 0xaf, 0xea, 0x1c, 0x1a, 0x85, 0x13, 0x52, + 0x0c, 0x86, 0x7f, 0x2e, 0xa1, 0xa6, 0xda, 0x1f, 0xfd, 0x10, 0x8a, 0x7f, 0x21, 0x4c, 0xf7, 0xb1, + 0xcc, 0xe0, 0x83, 0xdb, 0x67, 0x40, 0xe0, 0xbb, 0xd8, 0x8d, 0x60, 0x0c, 0x3e, 0xb7, 0x5b, 0x3a, + 0x76, 0xb3, 0x37, 0x43, 0x4f, 0xe6, 0x02, 0xb6, 0x1f, 0xa3, 0xe6, 0x6c, 0xee, 0xb8, 0x89, 0x8c, + 0x0b, 0xb8, 0x4c, 0xbe, 0x8b, 0x44, 0xfe, 0xc4, 0xaf, 0xa1, 0xca, 0x84, 0x7a, 0x71, 0xa2, 0xbc, + 0x3a, 0x49, 0x36, 0x8f, 0xca, 0x0f, 0x4b, 0x9d, 0xdf, 0x4a, 0xa8, 0xb5, 0x2c, 0x11, 0xfc, 0x46, + 0x81, 0xc8, 0x6e, 0xe8, 0xac, 0x8c, 0xcf, 0xe0, 0x32, 0x61, 0x3d, 0x42, 0xb5, 0x20, 0x94, 0xff, + 0x56, 0x44, 0x6f, 0x27, 0x1f, 0xd3, 0xfb, 0x69, 0xdb, 0x9d, 0x68, 0xbb, 0xf8, 0x9c, 0xee, 0x4c, + 0xd1, 0xa7, 0x07, 0x24, 0x83, 0xe2, 0x0e, 0xaa, 0xaa, 0x7c, 0xe4, 0x20, 0x33, 0x04, 0x09, 0x92, + 0xa5, 0x7f, 0xa2, 0x2c, 0x44, 0x9f, 0xd8, 0x6f, 0x5d, 0xfd, 0xb3, 0xbb, 0xf6, 0x5c, 0xac, 0xbf, + 0xc4, 0xfa, 0xe9, 0xc5, 0x6e, 0xe9, 0x4a, 0xac, 0xe7, 0x62, 0xfd, 0x2d, 0xd6, 0xaf, 0xff, 0xee, + 0xae, 0x7d, 0x59, 0x9e, 0x74, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x8b, 0x10, 0xf1, 0xb1, + 0x0a, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.proto index 75840ed787..264959e4f8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/generated.proto @@ -24,6 +24,7 @@ package k8s.io.kubernetes.pkg.apis.batch.v1; 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". diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/register.go index 3631c02d12..aa97b0eafb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/register.go @@ -29,14 +29,13 @@ const GroupName = "batch" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, @@ -44,4 +43,5 @@ func addKnownTypes(scheme *runtime.Scheme) { &v1.DeleteOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/types.generated.go index a44952c7af..09ac15efc8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/types.generated.go @@ -92,11 +92,11 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -113,102 +113,102 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -224,25 +224,25 @@ func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -254,12 +254,12 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -268,47 +268,47 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -316,104 +316,104 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -425,139 +425,139 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [4]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Kind != "" + yyq33[1] = x.APIVersion != "" + yyq33[2] = true + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn33 = 1 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym36 := z.EncBinary() + _ = yym36 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq33[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym39 := z.EncBinary() + _ = yym39 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq33[2] { + yy41 := &x.ListMeta + yym42 := z.EncBinary() + _ = yym42 if false { + } else if z.HasExtensions() && z.EncExt(yy41) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy41) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq33[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy43 := &x.ListMeta + yym44 := z.EncBinary() + _ = yym44 if false { + } else if z.HasExtensions() && z.EncExt(yy43) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy43) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym46 := z.EncBinary() + _ = yym46 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym47 := z.EncBinary() + _ = yym47 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -570,25 +570,25 @@ func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym48 := z.DecBinary() + _ = yym48 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct49 := r.ContainerType() + if yyct49 == codecSelferValueTypeMap1234 { + yyl49 := r.ReadMapStart() + if yyl49 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl49, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct49 == codecSelferValueTypeArray1234 { + yyl49 := r.ReadArrayStart() + if yyl49 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl49, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -600,12 +600,12 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys50Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys50Slc + var yyhl50 bool = l >= 0 + for yyj50 := 0; ; yyj50++ { + if yyhl50 { + if yyj50 >= l { break } } else { @@ -614,51 +614,51 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys50Slc = r.DecodeBytes(yys50Slc, true, true) + yys50 := string(yys50Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys50 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv53 := &x.ListMeta + yym54 := z.DecBinary() + _ = yym54 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv53) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv53, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv55 := &x.Items + yym56 := z.DecBinary() + _ = yym56 if false { } else { - h.decSliceJob((*[]Job)(yyv6), d) + h.decSliceJob((*[]Job)(yyv55), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys50) + } // end switch yys50 + } // end for yyj50 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -666,98 +666,98 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj57 int + var yyb57 bool + var yyhl57 bool = l >= 0 + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceJob((*[]Job)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv60 := &x.ListMeta + yym61 := z.DecBinary() + _ = yym61 + if false { + } else if z.HasExtensions() && z.DecExt(yyv60) { + } else { + z.DecFallback(yyv60, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv62 := &x.Items + yym63 := z.DecBinary() + _ = yym63 + if false { + } else { + h.decSliceJob((*[]Job)(yyv62), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj57-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -769,142 +769,142 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym64 := z.EncBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Parallelism != nil - yyq2[1] = x.Completions != nil - yyq2[2] = x.ActiveDeadlineSeconds != nil - yyq2[3] = x.Selector != nil - yyq2[4] = x.ManualSelector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep65 := !z.EncBinary() + yy2arr65 := z.EncBasicHandle().StructToArray + var yyq65 [6]bool + _, _, _ = yysep65, yyq65, yy2arr65 + const yyr65 bool = false + yyq65[0] = x.Parallelism != nil + yyq65[1] = x.Completions != nil + yyq65[2] = x.ActiveDeadlineSeconds != nil + yyq65[3] = x.Selector != nil + yyq65[4] = x.ManualSelector != nil + var yynn65 int + if yyr65 || yy2arr65 { r.EncodeArrayStart(6) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn65 = 1 + for _, b := range yyq65 { if b { - yynn2++ + yynn65++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn65) + yynn65 = 0 } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq65[0] { if x.Parallelism == nil { r.EncodeNil() } else { - yy4 := *x.Parallelism - yym5 := z.EncBinary() - _ = yym5 + yy67 := *x.Parallelism + yym68 := z.EncBinary() + _ = yym68 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy67)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq65[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parallelism")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parallelism == nil { r.EncodeNil() } else { - yy6 := *x.Parallelism - yym7 := z.EncBinary() - _ = yym7 + yy69 := *x.Parallelism + yym70 := z.EncBinary() + _ = yym70 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy69)) } } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq65[1] { if x.Completions == nil { r.EncodeNil() } else { - yy9 := *x.Completions - yym10 := z.EncBinary() - _ = yym10 + yy72 := *x.Completions + yym73 := z.EncBinary() + _ = yym73 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy72)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq65[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Completions == nil { r.EncodeNil() } else { - yy11 := *x.Completions - yym12 := z.EncBinary() - _ = yym12 + yy74 := *x.Completions + yym75 := z.EncBinary() + _ = yym75 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy74)) } } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq65[2] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy14 := *x.ActiveDeadlineSeconds - yym15 := z.EncBinary() - _ = yym15 + yy77 := *x.ActiveDeadlineSeconds + yym78 := z.EncBinary() + _ = yym78 if false { } else { - r.EncodeInt(int64(yy14)) + r.EncodeInt(int64(yy77)) } } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq65[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy16 := *x.ActiveDeadlineSeconds - yym17 := z.EncBinary() - _ = yym17 + yy79 := *x.ActiveDeadlineSeconds + yym80 := z.EncBinary() + _ = yym80 if false { } else { - r.EncodeInt(int64(yy16)) + r.EncodeInt(int64(yy79)) } } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq65[3] { if x.Selector == nil { r.EncodeNil() } else { @@ -914,7 +914,7 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq65[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -925,53 +925,53 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq65[4] { if x.ManualSelector == nil { r.EncodeNil() } else { - yy22 := *x.ManualSelector - yym23 := z.EncBinary() - _ = yym23 + yy83 := *x.ManualSelector + yym84 := z.EncBinary() + _ = yym84 if false { } else { - r.EncodeBool(bool(yy22)) + r.EncodeBool(bool(yy83)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq65[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("manualSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ManualSelector == nil { r.EncodeNil() } else { - yy24 := *x.ManualSelector - yym25 := z.EncBinary() - _ = yym25 + yy85 := *x.ManualSelector + yym86 := z.EncBinary() + _ = yym86 if false { } else { - r.EncodeBool(bool(yy24)) + r.EncodeBool(bool(yy85)) } } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy27 := &x.Template - yy27.CodecEncodeSelf(e) + yy88 := &x.Template + yy88.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy29 := &x.Template - yy29.CodecEncodeSelf(e) + yy89 := &x.Template + yy89.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -984,25 +984,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym90 := z.DecBinary() + _ = yym90 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct91 := r.ContainerType() + if yyct91 == codecSelferValueTypeMap1234 { + yyl91 := r.ReadMapStart() + if yyl91 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl91, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct91 == codecSelferValueTypeArray1234 { + yyl91 := r.ReadArrayStart() + if yyl91 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl91, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1014,12 +1014,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys92Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys92Slc + var yyhl92 bool = l >= 0 + for yyj92 := 0; ; yyj92++ { + if yyhl92 { + if yyj92 >= l { break } } else { @@ -1028,10 +1028,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys92Slc = r.DecodeBytes(yys92Slc, true, true) + yys92 := string(yys92Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys92 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -1041,8 +1041,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym94 := z.DecBinary() + _ = yym94 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -1057,8 +1057,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym7 := z.DecBinary() - _ = yym7 + yym96 := z.DecBinary() + _ = yym96 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -1073,8 +1073,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym98 := z.DecBinary() + _ = yym98 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -1100,8 +1100,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym12 := z.DecBinary() - _ = yym12 + yym101 := z.DecBinary() + _ = yym101 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() @@ -1111,13 +1111,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv13 := &x.Template - yyv13.CodecDecodeSelf(d) + yyv102 := &x.Template + yyv102.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys92) + } // end switch yys92 + } // end for yyj92 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1125,16 +1125,16 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj103 int + var yyb103 bool + var yyhl103 bool = l >= 0 + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1147,20 +1147,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym16 := z.DecBinary() - _ = yym16 + yym105 := z.DecBinary() + _ = yym105 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1173,20 +1173,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym18 := z.DecBinary() - _ = yym18 + yym107 := z.DecBinary() + _ = yym107 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1199,20 +1199,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym20 := z.DecBinary() - _ = yym20 + yym109 := z.DecBinary() + _ = yym109 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1227,13 +1227,13 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Selector.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1246,20 +1246,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym23 := z.DecBinary() - _ = yym23 + yym112 := z.DecBinary() + _ = yym112 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1267,21 +1267,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv24 := &x.Template - yyv24.CodecDecodeSelf(d) + yyv113 := &x.Template + yyv113.CodecDecodeSelf(d) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb14 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb14 { + if yyb103 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj103-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1293,43 +1293,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym114 := z.EncBinary() + _ = yym114 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = x.StartTime != nil - yyq2[2] = x.CompletionTime != nil - yyq2[3] = x.Active != 0 - yyq2[4] = x.Succeeded != 0 - yyq2[5] = x.Failed != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep115 := !z.EncBinary() + yy2arr115 := z.EncBasicHandle().StructToArray + var yyq115 [6]bool + _, _, _ = yysep115, yyq115, yy2arr115 + const yyr115 bool = false + yyq115[0] = len(x.Conditions) != 0 + yyq115[1] = x.StartTime != nil + yyq115[2] = x.CompletionTime != nil + yyq115[3] = x.Active != 0 + yyq115[4] = x.Succeeded != 0 + yyq115[5] = x.Failed != 0 + var yynn115 int + if yyr115 || yy2arr115 { r.EncodeArrayStart(6) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn115 = 0 + for _, b := range yyq115 { if b { - yynn2++ + yynn115++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn115) + yynn115 = 0 } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq115[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym117 := z.EncBinary() + _ = yym117 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1339,15 +1339,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq115[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym118 := z.EncBinary() + _ = yym118 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1355,19 +1355,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq115[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym120 := z.EncBinary() + _ = yym120 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym7 { + } else if yym120 { z.EncBinaryMarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym120 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1377,20 +1377,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq115[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym121 := z.EncBinary() + _ = yym121 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym8 { + } else if yym121 { z.EncBinaryMarshal(x.StartTime) - } else if !yym8 && z.IsJSONHandle() { + } else if !yym121 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1398,19 +1398,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq115[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym123 := z.EncBinary() + _ = yym123 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym10 { + } else if yym123 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym123 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1420,20 +1420,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq115[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CompletionTime == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym124 := z.EncBinary() + _ = yym124 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym11 { + } else if yym124 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym11 && z.IsJSONHandle() { + } else if !yym124 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1441,11 +1441,11 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq115[3] { + yym126 := z.EncBinary() + _ = yym126 if false { } else { r.EncodeInt(int64(x.Active)) @@ -1454,23 +1454,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq115[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym127 := z.EncBinary() + _ = yym127 if false { } else { r.EncodeInt(int64(x.Active)) } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq115[4] { + yym129 := z.EncBinary() + _ = yym129 if false { } else { r.EncodeInt(int64(x.Succeeded)) @@ -1479,23 +1479,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq115[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("succeeded")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym130 := z.EncBinary() + _ = yym130 if false { } else { r.EncodeInt(int64(x.Succeeded)) } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq115[5] { + yym132 := z.EncBinary() + _ = yym132 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -1504,19 +1504,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[5] { + if yyq115[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym133 := z.EncBinary() + _ = yym133 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr2 || yy2arr2 { + if yyr115 || yy2arr115 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1529,25 +1529,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym134 := z.DecBinary() + _ = yym134 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct135 := r.ContainerType() + if yyct135 == codecSelferValueTypeMap1234 { + yyl135 := r.ReadMapStart() + if yyl135 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl135, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct135 == codecSelferValueTypeArray1234 { + yyl135 := r.ReadArrayStart() + if yyl135 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl135, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1559,12 +1559,12 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys136Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys136Slc + var yyhl136 bool = l >= 0 + for yyj136 := 0; ; yyj136++ { + if yyhl136 { + if yyj136 >= l { break } } else { @@ -1573,20 +1573,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys136Slc = r.DecodeBytes(yys136Slc, true, true) + yys136 := string(yys136Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys136 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv137 := &x.Conditions + yym138 := z.DecBinary() + _ = yym138 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv4), d) + h.decSliceJobCondition((*[]JobCondition)(yyv137), d) } } case "startTime": @@ -1598,13 +1598,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym140 := z.DecBinary() + _ = yym140 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym7 { + } else if yym140 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym140 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -1619,13 +1619,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym9 := z.DecBinary() - _ = yym9 + yym142 := z.DecBinary() + _ = yym142 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym9 { + } else if yym142 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym142 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -1650,9 +1650,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys136) + } // end switch yys136 + } // end for yyj136 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1660,16 +1660,16 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj146 int + var yyb146 bool + var yyhl146 bool = l >= 0 + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1677,21 +1677,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv14 := &x.Conditions - yym15 := z.DecBinary() - _ = yym15 + yyv147 := &x.Conditions + yym148 := z.DecBinary() + _ = yym148 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv14), d) + h.decSliceJobCondition((*[]JobCondition)(yyv147), d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1704,25 +1704,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym17 := z.DecBinary() - _ = yym17 + yym150 := z.DecBinary() + _ = yym150 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym17 { + } else if yym150 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym17 && z.IsJSONHandle() { + } else if !yym150 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1735,25 +1735,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym19 := z.DecBinary() - _ = yym19 + yym152 := z.DecBinary() + _ = yym152 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym19 { + } else if yym152 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym19 && z.IsJSONHandle() { + } else if !yym152 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1763,13 +1763,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1779,13 +1779,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1796,17 +1796,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l } else { - yyb13 = r.CheckBreak() + yyb146 = r.CheckBreak() } - if yyb13 { + if yyb146 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-1, "") + z.DecStructFieldNotFound(yyj146-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1815,8 +1815,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym156 := z.EncBinary() + _ = yym156 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -1828,8 +1828,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym157 := z.DecBinary() + _ = yym157 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -1844,34 +1844,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym158 := z.EncBinary() + _ = yym158 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep159 := !z.EncBinary() + yy2arr159 := z.EncBasicHandle().StructToArray + var yyq159 [6]bool + _, _, _ = yysep159, yyq159, yy2arr159 + const yyr159 bool = false + yyq159[2] = true + yyq159[3] = true + yyq159[4] = x.Reason != "" + yyq159[5] = x.Message != "" + var yynn159 int + if yyr159 || yy2arr159 { r.EncodeArrayStart(6) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn159 = 2 + for _, b := range yyq159 { if b { - yynn2++ + yynn159++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn159) + yynn159 = 0 } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -1880,96 +1880,106 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf7 := &x.Status - yysf7.CodecEncodeSelf(e) + yym162 := z.EncBinary() + _ = yym162 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yysf8 := &x.Status - yysf8.CodecEncodeSelf(e) + yym163 := z.EncBinary() + _ = yym163 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq159[2] { + yy165 := &x.LastProbeTime + yym166 := z.EncBinary() + _ = yym166 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy165) { + } else if yym166 { + z.EncBinaryMarshal(yy165) + } else if !yym166 && z.IsJSONHandle() { + z.EncJSONMarshal(yy165) } else { - z.EncFallback(yy10) + z.EncFallback(yy165) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq159[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy167 := &x.LastProbeTime + yym168 := z.EncBinary() + _ = yym168 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy167) { + } else if yym168 { + z.EncBinaryMarshal(yy167) + } else if !yym168 && z.IsJSONHandle() { + z.EncJSONMarshal(yy167) } else { - z.EncFallback(yy12) + z.EncFallback(yy167) } } } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq159[3] { + yy170 := &x.LastTransitionTime + yym171 := z.EncBinary() + _ = yym171 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy170) { + } else if yym171 { + z.EncBinaryMarshal(yy170) + } else if !yym171 && z.IsJSONHandle() { + z.EncJSONMarshal(yy170) } else { - z.EncFallback(yy15) + z.EncFallback(yy170) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq159[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy172 := &x.LastTransitionTime + yym173 := z.EncBinary() + _ = yym173 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy172) { + } else if yym173 { + z.EncBinaryMarshal(yy172) + } else if !yym173 && z.IsJSONHandle() { + z.EncJSONMarshal(yy172) } else { - z.EncFallback(yy17) + z.EncFallback(yy172) } } } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq159[4] { + yym175 := z.EncBinary() + _ = yym175 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -1978,23 +1988,23 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq159[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym176 := z.EncBinary() + _ = yym176 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq159[5] { + yym178 := z.EncBinary() + _ = yym178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -2003,19 +2013,19 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq159[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym179 := z.EncBinary() + _ = yym179 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr159 || yy2arr159 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2028,25 +2038,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym180 := z.DecBinary() + _ = yym180 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct181 := r.ContainerType() + if yyct181 == codecSelferValueTypeMap1234 { + yyl181 := r.ReadMapStart() + if yyl181 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl181, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct181 == codecSelferValueTypeArray1234 { + yyl181 := r.ReadArrayStart() + if yyl181 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl181, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2058,12 +2068,12 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys182Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys182Slc + var yyhl182 bool = l >= 0 + for yyj182 := 0; ; yyj182++ { + if yyhl182 { + if yyj182 >= l { break } } else { @@ -2072,10 +2082,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys182Slc = r.DecodeBytes(yys182Slc, true, true) + yys182 := string(yys182Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys182 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -2092,34 +2102,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv185 := &x.LastProbeTime + yym186 := z.DecBinary() + _ = yym186 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv185) { + } else if yym186 { + z.DecBinaryUnmarshal(yyv185) + } else if !yym186 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv185) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv185, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv187 := &x.LastTransitionTime + yym188 := z.DecBinary() + _ = yym188 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv187) { + } else if yym188 { + z.DecBinaryUnmarshal(yyv187) + } else if !yym188 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv187) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv187, false) } } case "reason": @@ -2135,9 +2145,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys182) + } // end switch yys182 + } // end for yyj182 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2145,16 +2155,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj191 int + var yyb191 bool + var yyhl191 bool = l >= 0 + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2164,13 +2174,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2180,13 +2190,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2194,26 +2204,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv194 := &x.LastProbeTime + yym195 := z.DecBinary() + _ = yym195 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv194) { + } else if yym195 { + z.DecBinaryUnmarshal(yyv194) + } else if !yym195 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv194) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv194, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2221,26 +2231,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv196 := &x.LastTransitionTime + yym197 := z.DecBinary() + _ = yym197 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv196) { + } else if yym197 { + z.DecBinaryUnmarshal(yyv196) + } else if !yym197 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv196) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv196, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2250,13 +2260,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2267,17 +2277,17 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj191++ + if yyhl191 { + yyb191 = yyj191 > l } else { - yyb12 = r.CheckBreak() + yyb191 = r.CheckBreak() } - if yyb12 { + if yyb191 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj191-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2289,39 +2299,39 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym200 := z.EncBinary() + _ = yym200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.MatchLabels) != 0 - yyq2[1] = len(x.MatchExpressions) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep201 := !z.EncBinary() + yy2arr201 := z.EncBasicHandle().StructToArray + var yyq201 [2]bool + _, _, _ = yysep201, yyq201, yy2arr201 + const yyr201 bool = false + yyq201[0] = len(x.MatchLabels) != 0 + yyq201[1] = len(x.MatchExpressions) != 0 + var yynn201 int + if yyr201 || yy2arr201 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn201 = 0 + for _, b := range yyq201 { if b { - yynn2++ + yynn201++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn201) + yynn201 = 0 } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq201[0] { if x.MatchLabels == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym203 := z.EncBinary() + _ = yym203 if false { } else { z.F.EncMapStringStringV(x.MatchLabels, false, e) @@ -2331,15 +2341,15 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq201[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchLabels")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchLabels == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym204 := z.EncBinary() + _ = yym204 if false { } else { z.F.EncMapStringStringV(x.MatchLabels, false, e) @@ -2347,14 +2357,14 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq201[1] { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym206 := z.EncBinary() + _ = yym206 if false { } else { h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) @@ -2364,15 +2374,15 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq201[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym207 := z.EncBinary() + _ = yym207 if false { } else { h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) @@ -2380,7 +2390,7 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2393,25 +2403,25 @@ func (x *LabelSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym208 := z.DecBinary() + _ = yym208 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct209 := r.ContainerType() + if yyct209 == codecSelferValueTypeMap1234 { + yyl209 := r.ReadMapStart() + if yyl209 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl209, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct209 == codecSelferValueTypeArray1234 { + yyl209 := r.ReadArrayStart() + if yyl209 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl209, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2423,12 +2433,12 @@ func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys210Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys210Slc + var yyhl210 bool = l >= 0 + for yyj210 := 0; ; yyj210++ { + if yyhl210 { + if yyj210 >= l { break } } else { @@ -2437,38 +2447,38 @@ func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys210Slc = r.DecodeBytes(yys210Slc, true, true) + yys210 := string(yys210Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys210 { case "matchLabels": if r.TryDecodeAsNil() { x.MatchLabels = nil } else { - yyv4 := &x.MatchLabels - yym5 := z.DecBinary() - _ = yym5 + yyv211 := &x.MatchLabels + yym212 := z.DecBinary() + _ = yym212 if false { } else { - z.F.DecMapStringStringX(yyv4, false, d) + z.F.DecMapStringStringX(yyv211, false, d) } } case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv6 := &x.MatchExpressions - yym7 := z.DecBinary() - _ = yym7 + yyv213 := &x.MatchExpressions + yym214 := z.DecBinary() + _ = yym214 if false { } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv6), d) + h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv213), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys210) + } // end switch yys210 + } // end for yyj210 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2476,16 +2486,16 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj215 int + var yyb215 bool + var yyhl215 bool = l >= 0 + yyj215++ + if yyhl215 { + yyb215 = yyj215 > l } else { - yyb8 = r.CheckBreak() + yyb215 = r.CheckBreak() } - if yyb8 { + if yyb215 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2493,21 +2503,21 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MatchLabels = nil } else { - yyv9 := &x.MatchLabels - yym10 := z.DecBinary() - _ = yym10 + yyv216 := &x.MatchLabels + yym217 := z.DecBinary() + _ = yym217 if false { } else { - z.F.DecMapStringStringX(yyv9, false, d) + z.F.DecMapStringStringX(yyv216, false, d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj215++ + if yyhl215 { + yyb215 = yyj215 > l } else { - yyb8 = r.CheckBreak() + yyb215 = r.CheckBreak() } - if yyb8 { + if yyb215 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2515,26 +2525,26 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv11 := &x.MatchExpressions - yym12 := z.DecBinary() - _ = yym12 + yyv218 := &x.MatchExpressions + yym219 := z.DecBinary() + _ = yym219 if false { } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv11), d) + h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv218), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj215++ + if yyhl215 { + yyb215 = yyj215 > l } else { - yyb8 = r.CheckBreak() + yyb215 = r.CheckBreak() } - if yyb8 { + if yyb215 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj215-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2546,34 +2556,34 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym220 := z.EncBinary() + _ = yym220 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = len(x.Values) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep221 := !z.EncBinary() + yy2arr221 := z.EncBasicHandle().StructToArray + var yyq221 [3]bool + _, _, _ = yysep221, yyq221, yy2arr221 + const yyr221 bool = false + yyq221[2] = len(x.Values) != 0 + var yynn221 int + if yyr221 || yy2arr221 { r.EncodeArrayStart(3) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn221 = 2 + for _, b := range yyq221 { if b { - yynn2++ + yynn221++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn221) + yynn221 = 0 } - if yyr2 || yy2arr2 { + if yyr221 || yy2arr221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym223 := z.EncBinary() + _ = yym223 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -2582,14 +2592,14 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym224 := z.EncBinary() + _ = yym224 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr221 || yy2arr221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -2598,14 +2608,14 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr221 || yy2arr221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq221[2] { if x.Values == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym227 := z.EncBinary() + _ = yym227 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -2615,15 +2625,15 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq221[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym228 := z.EncBinary() + _ = yym228 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -2631,7 +2641,7 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr221 || yy2arr221 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2644,25 +2654,25 @@ func (x *LabelSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym229 := z.DecBinary() + _ = yym229 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct230 := r.ContainerType() + if yyct230 == codecSelferValueTypeMap1234 { + yyl230 := r.ReadMapStart() + if yyl230 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl230, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct230 == codecSelferValueTypeArray1234 { + yyl230 := r.ReadArrayStart() + if yyl230 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl230, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2674,12 +2684,12 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys231Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys231Slc + var yyhl231 bool = l >= 0 + for yyj231 := 0; ; yyj231++ { + if yyhl231 { + if yyj231 >= l { break } } else { @@ -2688,10 +2698,10 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys231Slc = r.DecodeBytes(yys231Slc, true, true) + yys231 := string(yys231Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys231 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -2708,18 +2718,18 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Values = nil } else { - yyv6 := &x.Values - yym7 := z.DecBinary() - _ = yym7 + yyv234 := &x.Values + yym235 := z.DecBinary() + _ = yym235 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv234, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys231) + } // end switch yys231 + } // end for yyj231 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2727,16 +2737,16 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj236 int + var yyb236 bool + var yyhl236 bool = l >= 0 + yyj236++ + if yyhl236 { + yyb236 = yyj236 > l } else { - yyb8 = r.CheckBreak() + yyb236 = r.CheckBreak() } - if yyb8 { + if yyb236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2746,13 +2756,13 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Key = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj236++ + if yyhl236 { + yyb236 = yyj236 > l } else { - yyb8 = r.CheckBreak() + yyb236 = r.CheckBreak() } - if yyb8 { + if yyb236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2762,13 +2772,13 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Operator = LabelSelectorOperator(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj236++ + if yyhl236 { + yyb236 = yyj236 > l } else { - yyb8 = r.CheckBreak() + yyb236 = r.CheckBreak() } - if yyb8 { + if yyb236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2776,26 +2786,26 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Values = nil } else { - yyv11 := &x.Values - yym12 := z.DecBinary() - _ = yym12 + yyv239 := &x.Values + yym240 := z.DecBinary() + _ = yym240 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv239, false, d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj236++ + if yyhl236 { + yyb236 = yyj236 > l } else { - yyb8 = r.CheckBreak() + yyb236 = r.CheckBreak() } - if yyb8 { + if yyb236 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj236-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2804,8 +2814,8 @@ func (x LabelSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym241 := z.EncBinary() + _ = yym241 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -2817,8 +2827,8 @@ func (x *LabelSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym242 := z.DecBinary() + _ = yym242 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -2831,10 +2841,10 @@ func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv243 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy244 := &yyv243 + yy244.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2844,86 +2854,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Job{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 792) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyv245 := *v + yyh245, yyl245 := z.DecSliceHelperStart() + var yyc245 bool + if yyl245 == 0 { + if yyv245 == nil { + yyv245 = []Job{} + yyc245 = true + } else if len(yyv245) != 0 { + yyv245 = yyv245[:0] + yyc245 = true + } + } else if yyl245 > 0 { + var yyrr245, yyrl245 int + var yyrt245 bool + if yyl245 > cap(yyv245) { + + yyrg245 := len(yyv245) > 0 + yyv2245 := yyv245 + yyrl245, yyrt245 = z.DecInferLen(yyl245, z.DecBasicHandle().MaxInitLen, 824) + if yyrt245 { + if yyrl245 <= cap(yyv245) { + yyv245 = yyv245[:yyrl245] } else { - yyv1 = make([]Job, yyrl1) + yyv245 = make([]Job, yyrl245) } } else { - yyv1 = make([]Job, yyrl1) + yyv245 = make([]Job, yyrl245) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc245 = true + yyrr245 = len(yyv245) + if yyrg245 { + copy(yyv245, yyv2245) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl245 != len(yyv245) { + yyv245 = yyv245[:yyl245] + yyc245 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj245 := 0 + for ; yyj245 < yyrr245; yyj245++ { + yyh245.ElemContainerState(yyj245) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv245[yyj245] = Job{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv246 := &yyv245[yyj245] + yyv246.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Job{}) - yyh1.ElemContainerState(yyj1) + if yyrt245 { + for ; yyj245 < yyl245; yyj245++ { + yyv245 = append(yyv245, Job{}) + yyh245.ElemContainerState(yyj245) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv245[yyj245] = Job{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv247 := &yyv245[yyj245] + yyv247.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj245 := 0 + for ; !r.CheckBreak(); yyj245++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Job{}) // var yyz1 Job - yyc1 = true + if yyj245 >= len(yyv245) { + yyv245 = append(yyv245, Job{}) // var yyz245 Job + yyc245 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh245.ElemContainerState(yyj245) + if yyj245 < len(yyv245) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv245[yyj245] = Job{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv248 := &yyv245[yyj245] + yyv248.CodecDecodeSelf(d) } } else { @@ -2931,17 +2938,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Job{} - yyc1 = true + if yyj245 < len(yyv245) { + yyv245 = yyv245[:yyj245] + yyc245 = true + } else if yyj245 == 0 && yyv245 == nil { + yyv245 = []Job{} + yyc245 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh245.End() + if yyc245 { + *v = yyv245 } } @@ -2950,10 +2957,10 @@ func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv249 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy250 := &yyv249 + yy250.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2963,86 +2970,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyv251 := *v + yyh251, yyl251 := z.DecSliceHelperStart() + var yyc251 bool + if yyl251 == 0 { + if yyv251 == nil { + yyv251 = []JobCondition{} + yyc251 = true + } else if len(yyv251) != 0 { + yyv251 = yyv251[:0] + yyc251 = true + } + } else if yyl251 > 0 { + var yyrr251, yyrl251 int + var yyrt251 bool + if yyl251 > cap(yyv251) { + + yyrg251 := len(yyv251) > 0 + yyv2251 := yyv251 + yyrl251, yyrt251 = z.DecInferLen(yyl251, z.DecBasicHandle().MaxInitLen, 112) + if yyrt251 { + if yyrl251 <= cap(yyv251) { + yyv251 = yyv251[:yyrl251] } else { - yyv1 = make([]JobCondition, yyrl1) + yyv251 = make([]JobCondition, yyrl251) } } else { - yyv1 = make([]JobCondition, yyrl1) + yyv251 = make([]JobCondition, yyrl251) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc251 = true + yyrr251 = len(yyv251) + if yyrg251 { + copy(yyv251, yyv2251) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl251 != len(yyv251) { + yyv251 = yyv251[:yyl251] + yyc251 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj251 := 0 + for ; yyj251 < yyrr251; yyj251++ { + yyh251.ElemContainerState(yyj251) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv251[yyj251] = JobCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv252 := &yyv251[yyj251] + yyv252.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, JobCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt251 { + for ; yyj251 < yyl251; yyj251++ { + yyv251 = append(yyv251, JobCondition{}) + yyh251.ElemContainerState(yyj251) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv251[yyj251] = JobCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv253 := &yyv251[yyj251] + yyv253.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj251 := 0 + for ; !r.CheckBreak(); yyj251++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, JobCondition{}) // var yyz1 JobCondition - yyc1 = true + if yyj251 >= len(yyv251) { + yyv251 = append(yyv251, JobCondition{}) // var yyz251 JobCondition + yyc251 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh251.ElemContainerState(yyj251) + if yyj251 < len(yyv251) { if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv251[yyj251] = JobCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv254 := &yyv251[yyj251] + yyv254.CodecDecodeSelf(d) } } else { @@ -3050,17 +3054,17 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true + if yyj251 < len(yyv251) { + yyv251 = yyv251[:yyj251] + yyc251 = true + } else if yyj251 == 0 && yyv251 == nil { + yyv251 = []JobCondition{} + yyc251 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh251.End() + if yyc251 { + *v = yyv251 } } @@ -3069,10 +3073,10 @@ func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequi z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv255 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy256 := &yyv255 + yy256.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3082,86 +3086,83 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LabelSelectorRequirement{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyv257 := *v + yyh257, yyl257 := z.DecSliceHelperStart() + var yyc257 bool + if yyl257 == 0 { + if yyv257 == nil { + yyv257 = []LabelSelectorRequirement{} + yyc257 = true + } else if len(yyv257) != 0 { + yyv257 = yyv257[:0] + yyc257 = true + } + } else if yyl257 > 0 { + var yyrr257, yyrl257 int + var yyrt257 bool + if yyl257 > cap(yyv257) { + + yyrg257 := len(yyv257) > 0 + yyv2257 := yyv257 + yyrl257, yyrt257 = z.DecInferLen(yyl257, z.DecBasicHandle().MaxInitLen, 56) + if yyrt257 { + if yyrl257 <= cap(yyv257) { + yyv257 = yyv257[:yyrl257] } else { - yyv1 = make([]LabelSelectorRequirement, yyrl1) + yyv257 = make([]LabelSelectorRequirement, yyrl257) } } else { - yyv1 = make([]LabelSelectorRequirement, yyrl1) + yyv257 = make([]LabelSelectorRequirement, yyrl257) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc257 = true + yyrr257 = len(yyv257) + if yyrg257 { + copy(yyv257, yyv2257) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl257 != len(yyv257) { + yyv257 = yyv257[:yyl257] + yyc257 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj257 := 0 + for ; yyj257 < yyrr257; yyj257++ { + yyh257.ElemContainerState(yyj257) if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv257[yyj257] = LabelSelectorRequirement{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv258 := &yyv257[yyj257] + yyv258.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LabelSelectorRequirement{}) - yyh1.ElemContainerState(yyj1) + if yyrt257 { + for ; yyj257 < yyl257; yyj257++ { + yyv257 = append(yyv257, LabelSelectorRequirement{}) + yyh257.ElemContainerState(yyj257) if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv257[yyj257] = LabelSelectorRequirement{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv259 := &yyv257[yyj257] + yyv259.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj257 := 0 + for ; !r.CheckBreak(); yyj257++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LabelSelectorRequirement{}) // var yyz1 LabelSelectorRequirement - yyc1 = true + if yyj257 >= len(yyv257) { + yyv257 = append(yyv257, LabelSelectorRequirement{}) // var yyz257 LabelSelectorRequirement + yyc257 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh257.ElemContainerState(yyj257) + if yyj257 < len(yyv257) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv257[yyj257] = LabelSelectorRequirement{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv260 := &yyv257[yyj257] + yyv260.CodecDecodeSelf(d) } } else { @@ -3169,16 +3170,16 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LabelSelectorRequirement{} - yyc1 = true + if yyj257 < len(yyv257) { + yyv257 = yyv257[:yyj257] + yyc257 = true + } else if yyj257 == 0 && yyv257 == nil { + yyv257 = []LabelSelectorRequirement{} + yyc257 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh257.End() + if yyc257 { + *v = yyv257 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/zz_generated.conversion.go similarity index 97% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/zz_generated.conversion.go index 88e6d961ff..3dc90d0666 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/zz_generated.conversion.go @@ -26,10 +26,17 @@ import ( api_v1 "k8s.io/kubernetes/pkg/api/v1" batch "k8s.io/kubernetes/pkg/apis/batch" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v1_Job_To_batch_Job, Convert_batch_Job_To_v1_Job, Convert_v1_JobCondition_To_batch_JobCondition, @@ -44,10 +51,7 @@ func init() { Convert_unversioned_LabelSelector_To_v1_LabelSelector, Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement, Convert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..9163e830bc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v1/zz_generated.deepcopy.go @@ -0,0 +1,229 @@ +// +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 v1 + +import ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + api_v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v1_Job, InType: reflect.TypeOf(&Job{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_JobList, InType: reflect.TypeOf(&JobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LabelSelector, InType: reflect.TypeOf(&LabelSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LabelSelectorRequirement, InType: reflect.TypeOf(&LabelSelectorRequirement{})}, + ) +} + +func DeepCopy_v1_Job(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Job) + out := out.(*Job) + out.TypeMeta = in.TypeMeta + if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_JobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobCondition) + out := out.(*JobCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobList) + out := out.(*JobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Job, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Job(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobSpec) + out := out.(*JobSpec) + if in.Parallelism != nil { + in, out := &in.Parallelism, &out.Parallelism + *out = new(int32) + **out = **in + } else { + out.Parallelism = nil + } + if in.Completions != nil { + in, out := &in.Completions, &out.Completions + *out = new(int32) + **out = **in + } else { + out.Completions = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if in.ManualSelector != nil { + in, out := &in.ManualSelector, &out.ManualSelector + *out = new(bool) + **out = **in + } else { + out.ManualSelector = nil + } + if err := api_v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobStatus) + out := out.(*JobStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]JobCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.CompletionTime != nil { + in, out := &in.CompletionTime, &out.CompletionTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.CompletionTime = nil + } + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil + } +} + +func DeepCopy_v1_LabelSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelector) + out := out.(*LabelSelector) + if in.MatchLabels != nil { + in, out := &in.MatchLabels, &out.MatchLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.MatchLabels = nil + } + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]LabelSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_v1_LabelSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_v1_LabelSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelectorRequirement) + out := out.(*LabelSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion.go index 2d5710a231..0ac589de88 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion.go @@ -28,15 +28,14 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addConversionFuncs(scheme *runtime.Scheme) { +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions err := scheme.AddConversionFuncs( Convert_batch_JobSpec_To_v2alpha1_JobSpec, Convert_v2alpha1_JobSpec_To_batch_JobSpec, ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } // Add field label conversions for kinds having selectable nothing but ObjectMeta fields. @@ -50,11 +49,11 @@ func addConversionFuncs(scheme *runtime.Scheme) { return "", "", fmt.Errorf("field label not supported: %s", label) } }) + if err != nil { + return err + } } - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + return nil } func Convert_batch_JobSpec_To_v2alpha1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/deep_copy_generated.go deleted file mode 100644 index baa1b59646..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/deep_copy_generated.go +++ /dev/null @@ -1,298 +0,0 @@ -// +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 v2alpha1 - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v2alpha1_Job, - DeepCopy_v2alpha1_JobCondition, - DeepCopy_v2alpha1_JobList, - DeepCopy_v2alpha1_JobSpec, - DeepCopy_v2alpha1_JobStatus, - DeepCopy_v2alpha1_JobTemplate, - DeepCopy_v2alpha1_JobTemplateSpec, - DeepCopy_v2alpha1_LabelSelector, - DeepCopy_v2alpha1_LabelSelectorRequirement, - DeepCopy_v2alpha1_ScheduledJob, - DeepCopy_v2alpha1_ScheduledJobList, - DeepCopy_v2alpha1_ScheduledJobSpec, - DeepCopy_v2alpha1_ScheduledJobStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v2alpha1_Job(in Job, out *Job, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v2alpha1_JobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v2alpha1_JobStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v2alpha1_JobCondition(in JobCondition, out *JobCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v2alpha1_JobList(in JobList, out *JobList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Job, len(in)) - for i := range in { - if err := DeepCopy_v2alpha1_Job(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v2alpha1_JobSpec(in JobSpec, out *JobSpec, c *conversion.Cloner) error { - if in.Parallelism != nil { - in, out := in.Parallelism, &out.Parallelism - *out = new(int32) - **out = *in - } else { - out.Parallelism = nil - } - if in.Completions != nil { - in, out := in.Completions, &out.Completions - *out = new(int32) - **out = *in - } else { - out.Completions = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.ActiveDeadlineSeconds = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v2alpha1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if in.ManualSelector != nil { - in, out := in.ManualSelector, &out.ManualSelector - *out = new(bool) - **out = *in - } else { - out.ManualSelector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v2alpha1_JobStatus(in JobStatus, out *JobStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]JobCondition, len(in)) - for i := range in { - if err := DeepCopy_v2alpha1_JobCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.StartTime != nil { - in, out := in.StartTime, &out.StartTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.StartTime = nil - } - if in.CompletionTime != nil { - in, out := in.CompletionTime, &out.CompletionTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.CompletionTime = nil - } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func DeepCopy_v2alpha1_JobTemplate(in JobTemplate, out *JobTemplate, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v2alpha1_JobTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v2alpha1_JobTemplateSpec(in JobTemplateSpec, out *JobTemplateSpec, c *conversion.Cloner) error { - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v2alpha1_JobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v2alpha1_LabelSelector(in LabelSelector, out *LabelSelector, c *conversion.Cloner) error { - if in.MatchLabels != nil { - in, out := in.MatchLabels, &out.MatchLabels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.MatchLabels = nil - } - if in.MatchExpressions != nil { - in, out := in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(in)) - for i := range in { - if err := DeepCopy_v2alpha1_LabelSelectorRequirement(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func DeepCopy_v2alpha1_LabelSelectorRequirement(in LabelSelectorRequirement, out *LabelSelectorRequirement, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - if in.Values != nil { - in, out := in.Values, &out.Values - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Values = nil - } - return nil -} - -func DeepCopy_v2alpha1_ScheduledJob(in ScheduledJob, out *ScheduledJob, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v2alpha1_ScheduledJobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v2alpha1_ScheduledJobStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v2alpha1_ScheduledJobList(in ScheduledJobList, out *ScheduledJobList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ScheduledJob, len(in)) - for i := range in { - if err := DeepCopy_v2alpha1_ScheduledJob(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v2alpha1_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSpec, c *conversion.Cloner) error { - out.Schedule = in.Schedule - if in.StartingDeadlineSeconds != nil { - in, out := in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.StartingDeadlineSeconds = nil - } - out.ConcurrencyPolicy = in.ConcurrencyPolicy - if in.Suspend != nil { - in, out := in.Suspend, &out.Suspend - *out = new(bool) - **out = *in - } else { - out.Suspend = nil - } - if err := DeepCopy_v2alpha1_JobTemplateSpec(in.JobTemplate, &out.JobTemplate, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v2alpha1_ScheduledJobStatus(in ScheduledJobStatus, out *ScheduledJobStatus, c *conversion.Cloner) error { - if in.Active != nil { - in, out := in.Active, &out.Active - *out = make([]v1.ObjectReference, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Active = nil - } - if in.LastScheduleTime != nil { - in, out := in.LastScheduleTime, &out.LastScheduleTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.LastScheduleTime = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/defaults.go index a7d24ceac9..9a594f16fd 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/defaults.go @@ -20,8 +20,8 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_Job, SetDefaults_ScheduledJob, ) @@ -46,4 +46,7 @@ func SetDefaults_ScheduledJob(obj *ScheduledJob) { if obj.Spec.ConcurrencyPolicy == "" { obj.Spec.ConcurrencyPolicy = AllowConcurrent } + if obj.Spec.Suspend == nil { + obj.Spec.Suspend = new(bool) + } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.pb.go index a461a47eb9..e22805505f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.pb.go @@ -48,6 +48,10 @@ import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned" import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" +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. @@ -55,57 +59,63 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *Job) Reset() { *m = Job{} } -func (m *Job) String() string { return proto.CompactTextString(m) } -func (*Job) ProtoMessage() {} +// 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 *Job) Reset() { *m = Job{} } +func (*Job) ProtoMessage() {} +func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *JobCondition) Reset() { *m = JobCondition{} } -func (m *JobCondition) String() string { return proto.CompactTextString(m) } -func (*JobCondition) ProtoMessage() {} +func (m *JobCondition) Reset() { *m = JobCondition{} } +func (*JobCondition) ProtoMessage() {} +func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *JobList) Reset() { *m = JobList{} } -func (m *JobList) String() string { return proto.CompactTextString(m) } -func (*JobList) ProtoMessage() {} +func (m *JobList) Reset() { *m = JobList{} } +func (*JobList) ProtoMessage() {} +func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *JobSpec) Reset() { *m = JobSpec{} } -func (m *JobSpec) String() string { return proto.CompactTextString(m) } -func (*JobSpec) ProtoMessage() {} +func (m *JobSpec) Reset() { *m = JobSpec{} } +func (*JobSpec) ProtoMessage() {} +func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *JobStatus) Reset() { *m = JobStatus{} } -func (m *JobStatus) String() string { return proto.CompactTextString(m) } -func (*JobStatus) ProtoMessage() {} +func (m *JobStatus) Reset() { *m = JobStatus{} } +func (*JobStatus) ProtoMessage() {} +func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *JobTemplate) Reset() { *m = JobTemplate{} } -func (m *JobTemplate) String() string { return proto.CompactTextString(m) } -func (*JobTemplate) ProtoMessage() {} +func (m *JobTemplate) Reset() { *m = JobTemplate{} } +func (*JobTemplate) ProtoMessage() {} +func (*JobTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} } -func (m *JobTemplateSpec) String() string { return proto.CompactTextString(m) } -func (*JobTemplateSpec) ProtoMessage() {} +func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} } +func (*JobTemplateSpec) ProtoMessage() {} +func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } -func (m *LabelSelector) Reset() { *m = LabelSelector{} } -func (m *LabelSelector) String() string { return proto.CompactTextString(m) } -func (*LabelSelector) ProtoMessage() {} +func (m *LabelSelector) Reset() { *m = LabelSelector{} } +func (*LabelSelector) ProtoMessage() {} +func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) } -func (*LabelSelectorRequirement) ProtoMessage() {} +func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } +func (*LabelSelectorRequirement) ProtoMessage() {} +func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{8} +} -func (m *ScheduledJob) Reset() { *m = ScheduledJob{} } -func (m *ScheduledJob) String() string { return proto.CompactTextString(m) } -func (*ScheduledJob) ProtoMessage() {} +func (m *ScheduledJob) Reset() { *m = ScheduledJob{} } +func (*ScheduledJob) ProtoMessage() {} +func (*ScheduledJob) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } -func (m *ScheduledJobList) Reset() { *m = ScheduledJobList{} } -func (m *ScheduledJobList) String() string { return proto.CompactTextString(m) } -func (*ScheduledJobList) ProtoMessage() {} +func (m *ScheduledJobList) Reset() { *m = ScheduledJobList{} } +func (*ScheduledJobList) ProtoMessage() {} +func (*ScheduledJobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } -func (m *ScheduledJobSpec) Reset() { *m = ScheduledJobSpec{} } -func (m *ScheduledJobSpec) String() string { return proto.CompactTextString(m) } -func (*ScheduledJobSpec) ProtoMessage() {} +func (m *ScheduledJobSpec) Reset() { *m = ScheduledJobSpec{} } +func (*ScheduledJobSpec) ProtoMessage() {} +func (*ScheduledJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } -func (m *ScheduledJobStatus) Reset() { *m = ScheduledJobStatus{} } -func (m *ScheduledJobStatus) String() string { return proto.CompactTextString(m) } -func (*ScheduledJobStatus) ProtoMessage() {} +func (m *ScheduledJobStatus) Reset() { *m = ScheduledJobStatus{} } +func (*ScheduledJobStatus) ProtoMessage() {} +func (*ScheduledJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } func init() { proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.Job") @@ -944,6 +954,185 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Job) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Job{`, + `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(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *JobList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Job", "Job", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobSpec{`, + `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, + `Completions:` + valueToStringGenerated(this.Completions) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobStatus{`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "JobCondition", "JobCondition", 1), `&`, ``, 1) + `,`, + `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `Active:` + fmt.Sprintf("%v", this.Active) + `,`, + `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`, + `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`, + `}`, + }, "") + return s +} +func (this *JobTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobTemplate{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobTemplateSpec{`, + `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(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelector) String() string { + if this == nil { + return "nil" + } + keysForMatchLabels := make([]string, 0, len(this.MatchLabels)) + for k := range this.MatchLabels { + keysForMatchLabels = append(keysForMatchLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) + mapStringForMatchLabels := "map[string]string{" + for _, k := range keysForMatchLabels { + mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k]) + } + mapStringForMatchLabels += "}" + s := strings.Join([]string{`&LabelSelector{`, + `MatchLabels:` + mapStringForMatchLabels + `,`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LabelSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func (this *ScheduledJob) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScheduledJob{`, + `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(), "ScheduledJobSpec", "ScheduledJobSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScheduledJobStatus", "ScheduledJobStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ScheduledJobList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScheduledJobList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ScheduledJob", "ScheduledJob", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ScheduledJobSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScheduledJobSpec{`, + `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, + `StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`, + `ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`, + `Suspend:` + valueToStringGenerated(this.Suspend) + `,`, + `JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ScheduledJobStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScheduledJobStatus{`, + `Active:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Active), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, + `LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `}`, + }, "") + 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 *Job) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -3016,3 +3205,89 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 1300 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xaf, 0xed, 0xd8, 0xb1, 0xc7, 0xf9, 0xe1, 0xcc, 0xb7, 0x51, 0xfd, 0x35, 0x22, 0xa9, 0x2c, + 0x81, 0x1a, 0x68, 0x76, 0x95, 0xa8, 0xa8, 0x21, 0x88, 0x4a, 0x6c, 0x08, 0x52, 0x21, 0x51, 0xa2, + 0x71, 0xa8, 0x10, 0xb4, 0x87, 0xf1, 0x7a, 0x62, 0x6f, 0xb3, 0xde, 0x75, 0x77, 0x67, 0x0d, 0xbe, + 0xf5, 0xca, 0x09, 0x24, 0xfe, 0x05, 0xce, 0xfc, 0x05, 0xf4, 0xc0, 0x2d, 0x37, 0x0a, 0x27, 0xc4, + 0x21, 0x82, 0xf2, 0x5f, 0xf4, 0xc4, 0x9b, 0xd9, 0xd9, 0xf5, 0xfa, 0x57, 0x14, 0x1b, 0x15, 0x89, + 0xc3, 0x4a, 0x9e, 0x37, 0xef, 0xf3, 0x99, 0x37, 0xf3, 0x3e, 0xf3, 0xe6, 0x19, 0xbd, 0x7b, 0xb6, + 0xe3, 0x6b, 0x96, 0xab, 0x9f, 0x05, 0x75, 0xe6, 0x39, 0x8c, 0x33, 0x5f, 0xef, 0x9c, 0x35, 0x75, + 0xda, 0xb1, 0x7c, 0xbd, 0x4e, 0xb9, 0xd9, 0xd2, 0xbb, 0xdb, 0xd4, 0xee, 0xb4, 0xe8, 0x96, 0xde, + 0x64, 0x0e, 0xf3, 0x28, 0x67, 0x0d, 0xad, 0xe3, 0xb9, 0xdc, 0xc5, 0x1b, 0x21, 0x54, 0xeb, 0x43, + 0x35, 0x80, 0x6a, 0x02, 0xaa, 0x49, 0xa8, 0x16, 0x41, 0x2b, 0x9b, 0x4d, 0x8b, 0xb7, 0x82, 0xba, + 0x66, 0xba, 0x6d, 0xbd, 0xe9, 0x36, 0x5d, 0x5d, 0x32, 0xd4, 0x83, 0x53, 0x39, 0x92, 0x03, 0xf9, + 0x2b, 0x64, 0xae, 0x6c, 0x4f, 0x0c, 0x4a, 0xf7, 0x98, 0xef, 0x06, 0x9e, 0xc9, 0x86, 0xa3, 0xa9, + 0xbc, 0x33, 0x19, 0x13, 0x38, 0x5d, 0xe6, 0xf9, 0x96, 0xeb, 0xb0, 0xc6, 0x08, 0xec, 0xf6, 0x64, + 0x58, 0x77, 0x64, 0xcb, 0x95, 0xcd, 0xf1, 0xde, 0x5e, 0xe0, 0x70, 0xab, 0x3d, 0x1a, 0xd3, 0xd6, + 0x78, 0xf7, 0x80, 0x5b, 0xb6, 0x6e, 0x39, 0xdc, 0xe7, 0xde, 0x30, 0xa4, 0xfa, 0x5d, 0x1a, 0x65, + 0x3e, 0x76, 0xeb, 0xf8, 0x33, 0x94, 0x6f, 0x33, 0x4e, 0x1b, 0x94, 0xd3, 0x72, 0xea, 0x66, 0xea, + 0x56, 0x71, 0xfb, 0x96, 0x36, 0xf1, 0xbc, 0xb5, 0xee, 0x96, 0x76, 0x54, 0x7f, 0xcc, 0x4c, 0x7e, + 0x08, 0x18, 0x03, 0x9f, 0x5f, 0xac, 0x5f, 0x7b, 0x71, 0xb1, 0x8e, 0xfa, 0x36, 0x12, 0xb3, 0xe1, + 0x13, 0x34, 0xe7, 0x77, 0x98, 0x59, 0x4e, 0x4b, 0xd6, 0x6d, 0xed, 0xca, 0x59, 0xd4, 0x20, 0xae, + 0x1a, 0x20, 0x8d, 0x05, 0xc5, 0x3f, 0x27, 0x46, 0x44, 0xb2, 0xe1, 0x87, 0x28, 0xe7, 0x73, 0xca, + 0x03, 0xbf, 0x9c, 0x91, 0xbc, 0x77, 0xa6, 0xe4, 0x95, 0x58, 0x63, 0x49, 0x31, 0xe7, 0xc2, 0x31, + 0x51, 0x9c, 0xd5, 0x5f, 0x33, 0x68, 0x01, 0xbc, 0xf6, 0x5c, 0xa7, 0x61, 0x71, 0x48, 0x24, 0xbe, + 0x83, 0xe6, 0x78, 0xaf, 0xc3, 0xe4, 0xd1, 0x14, 0x8c, 0x9b, 0x51, 0x40, 0x27, 0x60, 0x7b, 0x79, + 0xb1, 0x5e, 0x4a, 0xfa, 0x0a, 0x1b, 0x91, 0xde, 0xf8, 0x41, 0x1c, 0x64, 0x5a, 0xe2, 0xee, 0x0d, + 0x2e, 0x07, 0xc8, 0x4b, 0xe5, 0xa0, 0xc5, 0x9c, 0x83, 0xe1, 0xe1, 0x16, 0x5a, 0xb4, 0xa9, 0xcf, + 0x8f, 0x3d, 0xb7, 0xce, 0x4e, 0x40, 0x08, 0xea, 0x0c, 0xde, 0xbe, 0x24, 0x63, 0x09, 0x4d, 0x6a, + 0x02, 0x62, 0xac, 0xaa, 0x58, 0x16, 0x0f, 0x92, 0x4c, 0x64, 0x90, 0x18, 0x7f, 0x89, 0xb0, 0x30, + 0x9c, 0x78, 0xd4, 0xf1, 0xc3, 0xdd, 0x89, 0xe5, 0xe6, 0xa6, 0x5f, 0xae, 0xa2, 0x96, 0xc3, 0x07, + 0x23, 0x74, 0x64, 0xcc, 0x12, 0xf8, 0x4d, 0x94, 0xf3, 0x18, 0xf5, 0x5d, 0xa7, 0x9c, 0x95, 0x47, + 0x17, 0x67, 0x8a, 0x48, 0x2b, 0x51, 0xb3, 0x78, 0x03, 0xcd, 0xb7, 0x99, 0xef, 0xd3, 0x26, 0x2b, + 0xe7, 0xa4, 0xe3, 0xb2, 0x72, 0x9c, 0x3f, 0x0c, 0xcd, 0x24, 0x9a, 0xaf, 0x3e, 0x4b, 0xa1, 0x79, + 0x48, 0xd4, 0x81, 0xe5, 0x73, 0xfc, 0x68, 0x44, 0xee, 0xfa, 0x15, 0x77, 0x23, 0xe0, 0x52, 0xf5, + 0x25, 0xb5, 0x50, 0x3e, 0xb2, 0x24, 0x34, 0x5f, 0x43, 0x59, 0x8b, 0xb3, 0xb6, 0xc8, 0x7b, 0x06, + 0xb8, 0xb5, 0xe9, 0xc4, 0x69, 0x2c, 0x2a, 0xea, 0xec, 0x7d, 0x41, 0x42, 0x42, 0xae, 0xea, 0xb3, + 0x8c, 0x8c, 0x5f, 0x5c, 0x02, 0xbc, 0x85, 0x8a, 0x1d, 0xea, 0x51, 0xdb, 0x66, 0xb6, 0xe5, 0xb7, + 0xe5, 0x16, 0xb2, 0xc6, 0x32, 0x40, 0x8a, 0xc7, 0x7d, 0x33, 0x49, 0xfa, 0x08, 0x08, 0x94, 0xc3, + 0x8e, 0xcd, 0xc4, 0x19, 0x87, 0x8a, 0x54, 0x90, 0xbd, 0xbe, 0x99, 0x24, 0x7d, 0xf0, 0x11, 0x5a, + 0xa5, 0x26, 0xb7, 0xba, 0xec, 0x43, 0x46, 0x1b, 0xb6, 0xe5, 0xb0, 0x1a, 0x33, 0x41, 0x92, 0xe1, + 0x9d, 0xcb, 0x18, 0xff, 0x07, 0xf0, 0xea, 0x07, 0xe3, 0x1c, 0xc8, 0x78, 0x1c, 0xae, 0xa3, 0xbc, + 0xcf, 0x6c, 0xa8, 0x11, 0xae, 0xa7, 0x44, 0xb4, 0x33, 0xc5, 0xd1, 0x1c, 0xd0, 0x3a, 0xb3, 0x6b, + 0x0a, 0x6f, 0x2c, 0x88, 0xb3, 0x8f, 0x46, 0x24, 0xe6, 0xc5, 0xbb, 0x68, 0xa9, 0x4d, 0x9d, 0x80, + 0xc6, 0x9e, 0x52, 0x41, 0x79, 0x03, 0x83, 0xff, 0xd2, 0xe1, 0xc0, 0x0c, 0x19, 0xf2, 0xc4, 0x5f, + 0xa0, 0x3c, 0x1c, 0x75, 0xc7, 0x86, 0x02, 0x29, 0xe5, 0x54, 0xdc, 0xde, 0xbc, 0xbc, 0x0a, 0x1e, + 0xbb, 0x8d, 0x13, 0x05, 0x90, 0xa5, 0x2a, 0x16, 0x45, 0x64, 0x25, 0x31, 0x61, 0xf5, 0xc7, 0x0c, + 0x2a, 0xc4, 0xa5, 0x07, 0x9f, 0x21, 0x64, 0x46, 0xd7, 0xdb, 0x87, 0x04, 0x0a, 0x9d, 0xdc, 0x9d, + 0x4e, 0x27, 0x71, 0x79, 0xe8, 0x57, 0xe0, 0xd8, 0xe4, 0x93, 0x04, 0x3d, 0x54, 0xf7, 0x02, 0x94, + 0x0e, 0x8f, 0xcb, 0xdb, 0x9b, 0x9e, 0xfe, 0xf6, 0x2e, 0x02, 0x77, 0xa1, 0x16, 0x31, 0x90, 0x3e, + 0x19, 0x6e, 0xa2, 0xa5, 0xbe, 0x62, 0x66, 0xad, 0x45, 0x32, 0x35, 0x7b, 0x03, 0x34, 0x64, 0x88, + 0x56, 0x14, 0x84, 0x50, 0x53, 0x52, 0x38, 0xd9, 0x7e, 0x41, 0x08, 0x05, 0x48, 0xd4, 0x2c, 0xd6, + 0x61, 0xab, 0x81, 0x69, 0x32, 0xd6, 0x60, 0x0d, 0x99, 0xf9, 0xac, 0xb1, 0xa2, 0x5c, 0x0b, 0xb5, + 0x68, 0x82, 0xf4, 0x7d, 0x04, 0xf1, 0x29, 0xb5, 0x6c, 0xf0, 0xce, 0x0d, 0x12, 0x7f, 0x24, 0xad, + 0x44, 0xcd, 0x56, 0x7f, 0x49, 0xa1, 0x22, 0x1c, 0x7a, 0x94, 0xd8, 0x57, 0xf8, 0x62, 0xb6, 0x12, + 0x2a, 0x0c, 0x93, 0xb5, 0x3b, 0x9d, 0x30, 0xae, 0x2c, 0xc9, 0x9f, 0x52, 0x68, 0x79, 0xc8, 0xff, + 0xbf, 0xd6, 0x09, 0x54, 0x2f, 0xd2, 0x68, 0x71, 0xa0, 0x32, 0xe0, 0xa7, 0x90, 0xa9, 0xb6, 0x20, + 0x90, 0xe6, 0xe8, 0x72, 0xdd, 0x9f, 0xb5, 0xd2, 0x68, 0x87, 0x7d, 0xae, 0x7d, 0x87, 0x7b, 0x3d, + 0xe3, 0x7f, 0x2a, 0x8c, 0x62, 0x62, 0x86, 0x24, 0x97, 0xc4, 0x5f, 0xa7, 0x50, 0x49, 0x8e, 0xf7, + 0xbf, 0xea, 0x40, 0x0b, 0xe9, 0xab, 0x92, 0x2b, 0xe2, 0xd8, 0x9b, 0x35, 0x0e, 0xc2, 0x9e, 0x04, + 0x96, 0xc7, 0xda, 0xcc, 0xe1, 0x46, 0x59, 0x45, 0x50, 0x3a, 0x1c, 0x5a, 0x84, 0x8c, 0x2c, 0x5b, + 0xb9, 0x87, 0x4a, 0xc3, 0x3b, 0xc0, 0x25, 0x94, 0x39, 0x63, 0xbd, 0xb0, 0x9d, 0x21, 0xe2, 0x27, + 0xbe, 0x8e, 0xb2, 0x5d, 0x6a, 0x07, 0xa1, 0xe2, 0x0a, 0x24, 0x1c, 0xec, 0xa6, 0x77, 0x52, 0xd5, + 0xef, 0x53, 0xa8, 0x3c, 0x29, 0x10, 0xfc, 0x7a, 0x82, 0xc8, 0x28, 0xaa, 0xa8, 0x32, 0x9f, 0xb0, + 0x5e, 0xc8, 0xba, 0x8f, 0xf2, 0x6e, 0x47, 0x34, 0x9c, 0x50, 0x86, 0xc3, 0x1e, 0x68, 0x23, 0x92, + 0xe3, 0x91, 0xb2, 0x43, 0x17, 0xb4, 0x3a, 0x40, 0x1f, 0x4d, 0x90, 0x18, 0x8a, 0xab, 0x28, 0x27, + 0xe3, 0x11, 0x2f, 0x4f, 0x06, 0x48, 0x90, 0xb8, 0x9f, 0x0f, 0xa4, 0x85, 0xa8, 0x99, 0xea, 0x0f, + 0x69, 0xb4, 0x50, 0x33, 0x5b, 0xac, 0x11, 0xc0, 0x6d, 0x7d, 0xb5, 0x2d, 0xed, 0xa3, 0x01, 0x21, + 0xbf, 0x37, 0x45, 0x42, 0x93, 0x01, 0x4e, 0xec, 0x6d, 0xd9, 0x50, 0x6f, 0xfb, 0xfe, 0xac, 0x0b, + 0x5c, 0xde, 0xe4, 0xfe, 0x0c, 0x1a, 0x4d, 0xba, 0xff, 0x1b, 0x8d, 0xd1, 0xc3, 0xc1, 0xc6, 0xe8, + 0xee, 0x8c, 0x3b, 0x9b, 0xd0, 0x21, 0x7d, 0x93, 0x19, 0xdc, 0x91, 0xac, 0x67, 0xb7, 0xa1, 0xe7, + 0x50, 0x36, 0x25, 0xd3, 0x38, 0xc0, 0xc8, 0x97, 0xc4, 0x1e, 0xf8, 0x53, 0x74, 0x43, 0x3e, 0x6e, + 0x96, 0xd3, 0x1c, 0x6e, 0x7a, 0xd2, 0xb2, 0xe9, 0x79, 0x0d, 0x80, 0x37, 0x6a, 0xe3, 0x5d, 0xc8, + 0x24, 0x2c, 0xec, 0x7b, 0x05, 0x7e, 0x98, 0x81, 0xe7, 0x31, 0xc7, 0xec, 0x1d, 0xbb, 0xb6, 0x65, + 0xf6, 0x64, 0x76, 0x0b, 0x86, 0xa6, 0xa2, 0x59, 0xd9, 0x1b, 0x76, 0x78, 0x39, 0xce, 0x48, 0x46, + 0x89, 0xf0, 0x1b, 0x68, 0xde, 0x0f, 0x40, 0x3a, 0x4e, 0x43, 0x3e, 0x8e, 0x79, 0xa3, 0x28, 0x1a, + 0xe0, 0x5a, 0x68, 0x22, 0xd1, 0x1c, 0x7e, 0x82, 0x8a, 0x8f, 0xfb, 0xc5, 0x5e, 0x3e, 0x8e, 0xff, + 0xec, 0x69, 0x89, 0xeb, 0x60, 0x62, 0x82, 0x24, 0xd7, 0xa8, 0xfe, 0x9e, 0x42, 0x78, 0x54, 0x92, + 0x70, 0xca, 0xd1, 0x63, 0x1e, 0xd6, 0xe6, 0xcd, 0xab, 0x5c, 0x4c, 0xc2, 0x4e, 0x99, 0xd8, 0x35, + 0x9b, 0xf8, 0xf6, 0xb7, 0x51, 0x49, 0xfc, 0x95, 0x88, 0x16, 0x9c, 0xf5, 0xbf, 0xca, 0x75, 0x51, + 0x58, 0x0f, 0x86, 0x88, 0xc8, 0x08, 0xb5, 0xf1, 0xd6, 0xf9, 0x9f, 0x6b, 0xd7, 0x9e, 0xc3, 0xf7, + 0x1b, 0x7c, 0x4f, 0x5f, 0xac, 0xa5, 0xce, 0xe1, 0x7b, 0x0e, 0xdf, 0x1f, 0xf0, 0x7d, 0xfb, 0xd7, + 0xda, 0xb5, 0xcf, 0xf3, 0xd1, 0xd1, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x67, 0x5d, 0xb9, 0x32, + 0xf8, 0x10, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto index 41e2001770..95e371e2f7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto @@ -24,6 +24,7 @@ package k8s.io.kubernetes.pkg.apis.batch.v2alpha1; 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". diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/register.go index 54f0d6290a..07bd276f20 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/register.go @@ -29,14 +29,13 @@ const GroupName = "batch" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v2alpha1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, @@ -47,4 +46,5 @@ func addKnownTypes(scheme *runtime.Scheme) { &v1.DeleteOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.generated.go index bd48550ca7..b2d4e8f28e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.generated.go @@ -92,11 +92,11 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -113,102 +113,102 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -224,25 +224,25 @@ func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -254,12 +254,12 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -268,47 +268,47 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -316,104 +316,104 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -425,139 +425,139 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [4]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Kind != "" + yyq33[1] = x.APIVersion != "" + yyq33[2] = true + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn33 = 1 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq33[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym36 := z.EncBinary() + _ = yym36 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq33[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym39 := z.EncBinary() + _ = yym39 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq33[2] { + yy41 := &x.ListMeta + yym42 := z.EncBinary() + _ = yym42 if false { + } else if z.HasExtensions() && z.EncExt(yy41) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy41) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq33[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy43 := &x.ListMeta + yym44 := z.EncBinary() + _ = yym44 if false { + } else if z.HasExtensions() && z.EncExt(yy43) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy43) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym46 := z.EncBinary() + _ = yym46 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym47 := z.EncBinary() + _ = yym47 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -570,25 +570,25 @@ func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym48 := z.DecBinary() + _ = yym48 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct49 := r.ContainerType() + if yyct49 == codecSelferValueTypeMap1234 { + yyl49 := r.ReadMapStart() + if yyl49 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl49, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct49 == codecSelferValueTypeArray1234 { + yyl49 := r.ReadArrayStart() + if yyl49 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl49, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -600,12 +600,12 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys50Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys50Slc + var yyhl50 bool = l >= 0 + for yyj50 := 0; ; yyj50++ { + if yyhl50 { + if yyj50 >= l { break } } else { @@ -614,51 +614,51 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys50Slc = r.DecodeBytes(yys50Slc, true, true) + yys50 := string(yys50Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys50 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv53 := &x.ListMeta + yym54 := z.DecBinary() + _ = yym54 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv53) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv53, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv55 := &x.Items + yym56 := z.DecBinary() + _ = yym56 if false { } else { - h.decSliceJob((*[]Job)(yyv6), d) + h.decSliceJob((*[]Job)(yyv55), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys50) + } // end switch yys50 + } // end for yyj50 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -666,98 +666,98 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj57 int + var yyb57 bool + var yyhl57 bool = l >= 0 + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceJob((*[]Job)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv60 := &x.ListMeta + yym61 := z.DecBinary() + _ = yym61 + if false { + } else if z.HasExtensions() && z.DecExt(yyv60) { + } else { + z.DecFallback(yyv60, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv62 := &x.Items + yym63 := z.DecBinary() + _ = yym63 + if false { + } else { + h.decSliceJob((*[]Job)(yyv62), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l } else { - yyb10 = r.CheckBreak() + yyb57 = r.CheckBreak() } - if yyb10 { + if yyb57 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj57-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -769,118 +769,118 @@ func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym64 := z.EncBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep65 := !z.EncBinary() + yy2arr65 := z.EncBasicHandle().StructToArray + var yyq65 [4]bool + _, _, _ = yysep65, yyq65, yy2arr65 + const yyr65 bool = false + yyq65[0] = x.Kind != "" + yyq65[1] = x.APIVersion != "" + yyq65[2] = true + yyq65[3] = true + var yynn65 int + if yyr65 || yy2arr65 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn65 = 0 + for _, b := range yyq65 { if b { - yynn2++ + yynn65++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn65) + yynn65 = 0 } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Template - yy9.CodecEncodeSelf(e) + if yyq65[0] { + yym67 := z.EncBinary() + _ = yym67 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq65[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Template - yy11.CodecEncodeSelf(e) + yym68 := z.EncBinary() + _ = yym68 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq65[1] { + yym70 := z.EncBinary() + _ = yym70 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq65[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym71 := z.EncBinary() + _ = yym71 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq65[2] { + yy73 := &x.ObjectMeta + yy73.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq65[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy74 := &x.ObjectMeta + yy74.CodecEncodeSelf(e) + } + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[3] { + yy76 := &x.Template + yy76.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq65[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy77 := &x.Template + yy77.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -893,25 +893,25 @@ func (x *JobTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym78 := z.DecBinary() + _ = yym78 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct79 := r.ContainerType() + if yyct79 == codecSelferValueTypeMap1234 { + yyl79 := r.ReadMapStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl79, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct79 == codecSelferValueTypeArray1234 { + yyl79 := r.ReadArrayStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl79, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -923,12 +923,12 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys80Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys80Slc + var yyhl80 bool = l >= 0 + for yyj80 := 0; ; yyj80++ { + if yyhl80 { + if yyj80 >= l { break } } else { @@ -937,24 +937,10 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys80Slc = r.DecodeBytes(yys80Slc, true, true) + yys80 := string(yys80Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "template": - if r.TryDecodeAsNil() { - x.Template = JobTemplateSpec{} - } else { - yyv5 := &x.Template - yyv5.CodecDecodeSelf(d) - } + switch yys80 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -967,10 +953,24 @@ func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv83 := &x.ObjectMeta + yyv83.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = JobTemplateSpec{} + } else { + yyv84 := &x.Template + yyv84.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys80) + } // end switch yys80 + } // end for yyj80 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -978,87 +978,87 @@ func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj85 int + var yyb85 bool + var yyhl85 bool = l >= 0 + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Template = JobTemplateSpec{} + x.APIVersion = "" } else { - yyv10 := &x.Template - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv88 := &x.ObjectMeta + yyv88.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Template = JobTemplateSpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv89 := &x.Template + yyv89.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l } else { - yyb8 = r.CheckBreak() + yyb85 = r.CheckBreak() } - if yyb8 { + if yyb85 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj85-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1070,66 +1070,66 @@ func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym90 := z.EncBinary() + _ = yym90 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep91 := !z.EncBinary() + yy2arr91 := z.EncBasicHandle().StructToArray + var yyq91 [2]bool + _, _, _ = yysep91, yyq91, yy2arr91 + const yyr91 bool = false + yyq91[0] = true + yyq91[1] = true + var yynn91 int + if yyr91 || yy2arr91 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn91 = 0 + for _, b := range yyq91 { if b { - yynn2++ + yynn91++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn91) + yynn91 = 0 } - if yyr2 || yy2arr2 { + if yyr91 || yy2arr91 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq91[0] { + yy93 := &x.ObjectMeta + yy93.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq91[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy94 := &x.ObjectMeta + yy94.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr91 || yy2arr91 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq91[1] { + yy96 := &x.Spec + yy96.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq91[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yy97 := &x.Spec + yy97.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr91 || yy2arr91 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1142,25 +1142,25 @@ func (x *JobTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym98 := z.DecBinary() + _ = yym98 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl99, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl99, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1172,12 +1172,12 @@ func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { break } } else { @@ -1186,28 +1186,28 @@ func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys100 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv101 := &x.ObjectMeta + yyv101.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = JobSpec{} } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + yyv102 := &x.Spec + yyv102.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1215,16 +1215,16 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj103 int + var yyb103 bool + var yyhl103 bool = l >= 0 + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb6 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb6 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1232,16 +1232,16 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv7 := &x.ObjectMeta - yyv7.CodecDecodeSelf(d) + yyv104 := &x.ObjectMeta + yyv104.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb6 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb6 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1249,21 +1249,21 @@ func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = JobSpec{} } else { - yyv8 := &x.Spec - yyv8.CodecDecodeSelf(d) + yyv105 := &x.Spec + yyv105.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb6 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb6 { + if yyb103 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj103-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1275,142 +1275,142 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym106 := z.EncBinary() + _ = yym106 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Parallelism != nil - yyq2[1] = x.Completions != nil - yyq2[2] = x.ActiveDeadlineSeconds != nil - yyq2[3] = x.Selector != nil - yyq2[4] = x.ManualSelector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep107 := !z.EncBinary() + yy2arr107 := z.EncBasicHandle().StructToArray + var yyq107 [6]bool + _, _, _ = yysep107, yyq107, yy2arr107 + const yyr107 bool = false + yyq107[0] = x.Parallelism != nil + yyq107[1] = x.Completions != nil + yyq107[2] = x.ActiveDeadlineSeconds != nil + yyq107[3] = x.Selector != nil + yyq107[4] = x.ManualSelector != nil + var yynn107 int + if yyr107 || yy2arr107 { r.EncodeArrayStart(6) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn107 = 1 + for _, b := range yyq107 { if b { - yynn2++ + yynn107++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn107) + yynn107 = 0 } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq107[0] { if x.Parallelism == nil { r.EncodeNil() } else { - yy4 := *x.Parallelism - yym5 := z.EncBinary() - _ = yym5 + yy109 := *x.Parallelism + yym110 := z.EncBinary() + _ = yym110 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy109)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq107[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parallelism")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parallelism == nil { r.EncodeNil() } else { - yy6 := *x.Parallelism - yym7 := z.EncBinary() - _ = yym7 + yy111 := *x.Parallelism + yym112 := z.EncBinary() + _ = yym112 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy111)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq107[1] { if x.Completions == nil { r.EncodeNil() } else { - yy9 := *x.Completions - yym10 := z.EncBinary() - _ = yym10 + yy114 := *x.Completions + yym115 := z.EncBinary() + _ = yym115 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy114)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq107[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Completions == nil { r.EncodeNil() } else { - yy11 := *x.Completions - yym12 := z.EncBinary() - _ = yym12 + yy116 := *x.Completions + yym117 := z.EncBinary() + _ = yym117 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy116)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq107[2] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy14 := *x.ActiveDeadlineSeconds - yym15 := z.EncBinary() - _ = yym15 + yy119 := *x.ActiveDeadlineSeconds + yym120 := z.EncBinary() + _ = yym120 if false { } else { - r.EncodeInt(int64(yy14)) + r.EncodeInt(int64(yy119)) } } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq107[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy16 := *x.ActiveDeadlineSeconds - yym17 := z.EncBinary() - _ = yym17 + yy121 := *x.ActiveDeadlineSeconds + yym122 := z.EncBinary() + _ = yym122 if false { } else { - r.EncodeInt(int64(yy16)) + r.EncodeInt(int64(yy121)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq107[3] { if x.Selector == nil { r.EncodeNil() } else { @@ -1420,7 +1420,7 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq107[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -1431,53 +1431,53 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq107[4] { if x.ManualSelector == nil { r.EncodeNil() } else { - yy22 := *x.ManualSelector - yym23 := z.EncBinary() - _ = yym23 + yy125 := *x.ManualSelector + yym126 := z.EncBinary() + _ = yym126 if false { } else { - r.EncodeBool(bool(yy22)) + r.EncodeBool(bool(yy125)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq107[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("manualSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ManualSelector == nil { r.EncodeNil() } else { - yy24 := *x.ManualSelector - yym25 := z.EncBinary() - _ = yym25 + yy127 := *x.ManualSelector + yym128 := z.EncBinary() + _ = yym128 if false { } else { - r.EncodeBool(bool(yy24)) + r.EncodeBool(bool(yy127)) } } } } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy27 := &x.Template - yy27.CodecEncodeSelf(e) + yy130 := &x.Template + yy130.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy29 := &x.Template - yy29.CodecEncodeSelf(e) + yy131 := &x.Template + yy131.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1490,25 +1490,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym132 := z.DecBinary() + _ = yym132 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct133 := r.ContainerType() + if yyct133 == codecSelferValueTypeMap1234 { + yyl133 := r.ReadMapStart() + if yyl133 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl133, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct133 == codecSelferValueTypeArray1234 { + yyl133 := r.ReadArrayStart() + if yyl133 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl133, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1520,12 +1520,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys134Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys134Slc + var yyhl134 bool = l >= 0 + for yyj134 := 0; ; yyj134++ { + if yyhl134 { + if yyj134 >= l { break } } else { @@ -1534,10 +1534,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys134Slc = r.DecodeBytes(yys134Slc, true, true) + yys134 := string(yys134Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys134 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -1547,8 +1547,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym136 := z.DecBinary() + _ = yym136 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -1563,8 +1563,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym7 := z.DecBinary() - _ = yym7 + yym138 := z.DecBinary() + _ = yym138 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -1579,8 +1579,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym140 := z.DecBinary() + _ = yym140 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -1606,8 +1606,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym12 := z.DecBinary() - _ = yym12 + yym143 := z.DecBinary() + _ = yym143 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() @@ -1617,13 +1617,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv13 := &x.Template - yyv13.CodecDecodeSelf(d) + yyv144 := &x.Template + yyv144.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys134) + } // end switch yys134 + } // end for yyj134 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1631,16 +1631,16 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj145 int + var yyb145 bool + var yyhl145 bool = l >= 0 + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1653,20 +1653,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym16 := z.DecBinary() - _ = yym16 + yym147 := z.DecBinary() + _ = yym147 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1679,20 +1679,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym18 := z.DecBinary() - _ = yym18 + yym149 := z.DecBinary() + _ = yym149 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1705,20 +1705,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym20 := z.DecBinary() - _ = yym20 + yym151 := z.DecBinary() + _ = yym151 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1733,13 +1733,13 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Selector.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1752,20 +1752,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym23 := z.DecBinary() - _ = yym23 + yym154 := z.DecBinary() + _ = yym154 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1773,21 +1773,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv24 := &x.Template - yyv24.CodecDecodeSelf(d) + yyv155 := &x.Template + yyv155.CodecDecodeSelf(d) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj145++ + if yyhl145 { + yyb145 = yyj145 > l } else { - yyb14 = r.CheckBreak() + yyb145 = r.CheckBreak() } - if yyb14 { + if yyb145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1799,43 +1799,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym156 := z.EncBinary() + _ = yym156 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = x.StartTime != nil - yyq2[2] = x.CompletionTime != nil - yyq2[3] = x.Active != 0 - yyq2[4] = x.Succeeded != 0 - yyq2[5] = x.Failed != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep157 := !z.EncBinary() + yy2arr157 := z.EncBasicHandle().StructToArray + var yyq157 [6]bool + _, _, _ = yysep157, yyq157, yy2arr157 + const yyr157 bool = false + yyq157[0] = len(x.Conditions) != 0 + yyq157[1] = x.StartTime != nil + yyq157[2] = x.CompletionTime != nil + yyq157[3] = x.Active != 0 + yyq157[4] = x.Succeeded != 0 + yyq157[5] = x.Failed != 0 + var yynn157 int + if yyr157 || yy2arr157 { r.EncodeArrayStart(6) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn157 = 0 + for _, b := range yyq157 { if b { - yynn2++ + yynn157++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn157) + yynn157 = 0 } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq157[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym159 := z.EncBinary() + _ = yym159 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1845,15 +1845,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq157[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym160 := z.EncBinary() + _ = yym160 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1861,19 +1861,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq157[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym162 := z.EncBinary() + _ = yym162 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym7 { + } else if yym162 { z.EncBinaryMarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym162 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1883,20 +1883,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq157[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym163 := z.EncBinary() + _ = yym163 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym8 { + } else if yym163 { z.EncBinaryMarshal(x.StartTime) - } else if !yym8 && z.IsJSONHandle() { + } else if !yym163 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1904,19 +1904,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq157[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym165 := z.EncBinary() + _ = yym165 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym10 { + } else if yym165 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym165 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1926,20 +1926,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq157[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CompletionTime == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym166 := z.EncBinary() + _ = yym166 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym11 { + } else if yym166 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym11 && z.IsJSONHandle() { + } else if !yym166 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1947,11 +1947,11 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq157[3] { + yym168 := z.EncBinary() + _ = yym168 if false { } else { r.EncodeInt(int64(x.Active)) @@ -1960,23 +1960,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq157[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym169 := z.EncBinary() + _ = yym169 if false { } else { r.EncodeInt(int64(x.Active)) } } } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq157[4] { + yym171 := z.EncBinary() + _ = yym171 if false { } else { r.EncodeInt(int64(x.Succeeded)) @@ -1985,23 +1985,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq157[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("succeeded")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym172 := z.EncBinary() + _ = yym172 if false { } else { r.EncodeInt(int64(x.Succeeded)) } } } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq157[5] { + yym174 := z.EncBinary() + _ = yym174 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -2010,19 +2010,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[5] { + if yyq157[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym175 := z.EncBinary() + _ = yym175 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr2 || yy2arr2 { + if yyr157 || yy2arr157 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2035,25 +2035,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym176 := z.DecBinary() + _ = yym176 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct177 := r.ContainerType() + if yyct177 == codecSelferValueTypeMap1234 { + yyl177 := r.ReadMapStart() + if yyl177 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl177, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct177 == codecSelferValueTypeArray1234 { + yyl177 := r.ReadArrayStart() + if yyl177 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl177, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2065,12 +2065,12 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys178Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys178Slc + var yyhl178 bool = l >= 0 + for yyj178 := 0; ; yyj178++ { + if yyhl178 { + if yyj178 >= l { break } } else { @@ -2079,20 +2079,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys178Slc = r.DecodeBytes(yys178Slc, true, true) + yys178 := string(yys178Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys178 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv179 := &x.Conditions + yym180 := z.DecBinary() + _ = yym180 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv4), d) + h.decSliceJobCondition((*[]JobCondition)(yyv179), d) } } case "startTime": @@ -2104,13 +2104,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym182 := z.DecBinary() + _ = yym182 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym7 { + } else if yym182 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym182 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -2125,13 +2125,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym9 := z.DecBinary() - _ = yym9 + yym184 := z.DecBinary() + _ = yym184 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym9 { + } else if yym184 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym184 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -2156,9 +2156,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys178) + } // end switch yys178 + } // end for yyj178 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2166,16 +2166,16 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj188 int + var yyb188 bool + var yyhl188 bool = l >= 0 + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2183,21 +2183,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv14 := &x.Conditions - yym15 := z.DecBinary() - _ = yym15 + yyv189 := &x.Conditions + yym190 := z.DecBinary() + _ = yym190 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv14), d) + h.decSliceJobCondition((*[]JobCondition)(yyv189), d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2210,25 +2210,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym17 := z.DecBinary() - _ = yym17 + yym192 := z.DecBinary() + _ = yym192 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym17 { + } else if yym192 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym17 && z.IsJSONHandle() { + } else if !yym192 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2241,25 +2241,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym19 := z.DecBinary() - _ = yym19 + yym194 := z.DecBinary() + _ = yym194 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym19 { + } else if yym194 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym19 && z.IsJSONHandle() { + } else if !yym194 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2269,13 +2269,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2285,13 +2285,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2302,17 +2302,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj188++ + if yyhl188 { + yyb188 = yyj188 > l } else { - yyb13 = r.CheckBreak() + yyb188 = r.CheckBreak() } - if yyb13 { + if yyb188 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-1, "") + z.DecStructFieldNotFound(yyj188-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2321,8 +2321,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym198 := z.EncBinary() + _ = yym198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -2334,8 +2334,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym199 := z.DecBinary() + _ = yym199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -2350,34 +2350,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym200 := z.EncBinary() + _ = yym200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep201 := !z.EncBinary() + yy2arr201 := z.EncBasicHandle().StructToArray + var yyq201 [6]bool + _, _, _ = yysep201, yyq201, yy2arr201 + const yyr201 bool = false + yyq201[2] = true + yyq201[3] = true + yyq201[4] = x.Reason != "" + yyq201[5] = x.Message != "" + var yynn201 int + if yyr201 || yy2arr201 { r.EncodeArrayStart(6) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn201 = 2 + for _, b := range yyq201 { if b { - yynn2++ + yynn201++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn201) + yynn201 = 0 } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -2386,96 +2386,106 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf7 := &x.Status - yysf7.CodecEncodeSelf(e) + yym204 := z.EncBinary() + _ = yym204 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yysf8 := &x.Status - yysf8.CodecEncodeSelf(e) + yym205 := z.EncBinary() + _ = yym205 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq201[2] { + yy207 := &x.LastProbeTime + yym208 := z.EncBinary() + _ = yym208 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy207) { + } else if yym208 { + z.EncBinaryMarshal(yy207) + } else if !yym208 && z.IsJSONHandle() { + z.EncJSONMarshal(yy207) } else { - z.EncFallback(yy10) + z.EncFallback(yy207) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq201[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy209 := &x.LastProbeTime + yym210 := z.EncBinary() + _ = yym210 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy209) { + } else if yym210 { + z.EncBinaryMarshal(yy209) + } else if !yym210 && z.IsJSONHandle() { + z.EncJSONMarshal(yy209) } else { - z.EncFallback(yy12) + z.EncFallback(yy209) } } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq201[3] { + yy212 := &x.LastTransitionTime + yym213 := z.EncBinary() + _ = yym213 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy212) { + } else if yym213 { + z.EncBinaryMarshal(yy212) + } else if !yym213 && z.IsJSONHandle() { + z.EncJSONMarshal(yy212) } else { - z.EncFallback(yy15) + z.EncFallback(yy212) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq201[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy214 := &x.LastTransitionTime + yym215 := z.EncBinary() + _ = yym215 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy214) { + } else if yym215 { + z.EncBinaryMarshal(yy214) + } else if !yym215 && z.IsJSONHandle() { + z.EncJSONMarshal(yy214) } else { - z.EncFallback(yy17) + z.EncFallback(yy214) } } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq201[4] { + yym217 := z.EncBinary() + _ = yym217 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -2484,23 +2494,23 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq201[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym218 := z.EncBinary() + _ = yym218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq201[5] { + yym220 := z.EncBinary() + _ = yym220 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -2509,19 +2519,19 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq201[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym221 := z.EncBinary() + _ = yym221 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2534,25 +2544,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym222 := z.DecBinary() + _ = yym222 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct223 := r.ContainerType() + if yyct223 == codecSelferValueTypeMap1234 { + yyl223 := r.ReadMapStart() + if yyl223 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl223, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct223 == codecSelferValueTypeArray1234 { + yyl223 := r.ReadArrayStart() + if yyl223 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl223, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2564,12 +2574,12 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys224Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys224Slc + var yyhl224 bool = l >= 0 + for yyj224 := 0; ; yyj224++ { + if yyhl224 { + if yyj224 >= l { break } } else { @@ -2578,10 +2588,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys224Slc = r.DecodeBytes(yys224Slc, true, true) + yys224 := string(yys224Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys224 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -2598,34 +2608,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv227 := &x.LastProbeTime + yym228 := z.DecBinary() + _ = yym228 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv227) { + } else if yym228 { + z.DecBinaryUnmarshal(yyv227) + } else if !yym228 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv227) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv227, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv229 := &x.LastTransitionTime + yym230 := z.DecBinary() + _ = yym230 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv229) { + } else if yym230 { + z.DecBinaryUnmarshal(yyv229) + } else if !yym230 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv229) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv229, false) } } case "reason": @@ -2641,9 +2651,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys224) + } // end switch yys224 + } // end for yyj224 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2651,16 +2661,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj233 int + var yyb233 bool + var yyhl233 bool = l >= 0 + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2670,13 +2680,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2686,13 +2696,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2700,26 +2710,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv236 := &x.LastProbeTime + yym237 := z.DecBinary() + _ = yym237 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv236) { + } else if yym237 { + z.DecBinaryUnmarshal(yyv236) + } else if !yym237 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv236) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv236, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2727,26 +2737,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv238 := &x.LastTransitionTime + yym239 := z.DecBinary() + _ = yym239 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv238) { + } else if yym239 { + z.DecBinaryUnmarshal(yyv238) + } else if !yym239 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv238) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv238, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2756,13 +2766,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2773,17 +2783,17 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj233++ + if yyhl233 { + yyb233 = yyj233 > l } else { - yyb12 = r.CheckBreak() + yyb233 = r.CheckBreak() } - if yyb12 { + if yyb233 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj233-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2795,136 +2805,136 @@ func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym242 := z.EncBinary() + _ = yym242 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep243 := !z.EncBinary() + yy2arr243 := z.EncBasicHandle().StructToArray + var yyq243 [5]bool + _, _, _ = yysep243, yyq243, yy2arr243 + const yyr243 bool = false + yyq243[0] = x.Kind != "" + yyq243[1] = x.APIVersion != "" + yyq243[2] = true + yyq243[3] = true + yyq243[4] = true + var yynn243 int + if yyr243 || yy2arr243 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn243 = 0 + for _, b := range yyq243 { if b { - yynn2++ + yynn243++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn243) + yynn243 = 0 } - if yyr2 || yy2arr2 { + if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq243[0] { + yym245 := z.EncBinary() + _ = yym245 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq243[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym246 := z.EncBinary() + _ = yym246 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq243[1] { + yym248 := z.EncBinary() + _ = yym248 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq243[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym249 := z.EncBinary() + _ = yym249 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq243[2] { + yy251 := &x.ObjectMeta + yy251.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq243[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy252 := &x.ObjectMeta + yy252.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq243[3] { + yy254 := &x.Spec + yy254.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq243[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy255 := &x.Spec + yy255.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq243[4] { + yy257 := &x.Status + yy257.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq243[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy258 := &x.Status + yy258.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2937,25 +2947,25 @@ func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym259 := z.DecBinary() + _ = yym259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct260 := r.ContainerType() + if yyct260 == codecSelferValueTypeMap1234 { + yyl260 := r.ReadMapStart() + if yyl260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl260, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct260 == codecSelferValueTypeArray1234 { + yyl260 := r.ReadArrayStart() + if yyl260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl260, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2967,61 +2977,61 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys261Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys261Slc + var yyhl261 bool = l >= 0 + for yyj261 := 0; ; yyj261++ { + if yyhl261 { + if yyj261 >= l { break } } else { if r.CheckBreak() { break } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys261Slc = r.DecodeBytes(yys261Slc, true, true) + yys261 := string(yys261Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys261 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv264 := &x.ObjectMeta + yyv264.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ScheduledJobSpec{} } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + yyv265 := &x.Spec + yyv265.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ScheduledJobStatus{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) - } - 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()) + yyv266 := &x.Status + yyv266.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys261) + } // end switch yys261 + } // end for yyj261 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3029,104 +3039,104 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj267 int + var yyb267 bool + var yyhl267 bool = l >= 0 + yyj267++ + if yyhl267 { + yyb267 = yyj267 > l } else { - yyb9 = r.CheckBreak() + yyb267 = r.CheckBreak() } - if yyb9 { + if yyb267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj267++ + if yyhl267 { + yyb267 = yyj267 > l } else { - yyb9 = r.CheckBreak() + yyb267 = r.CheckBreak() } - if yyb9 { + if yyb267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj267++ + if yyhl267 { + yyb267 = yyj267 > l } else { - yyb9 = r.CheckBreak() + yyb267 = r.CheckBreak() } - if yyb9 { + if yyb267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv270 := &x.ObjectMeta + yyv270.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj267++ + if yyhl267 { + yyb267 = yyj267 > l } else { - yyb9 = r.CheckBreak() + yyb267 = r.CheckBreak() } - if yyb9 { + if yyb267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScheduledJobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv271 := &x.Spec + yyv271.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj267++ + if yyhl267 { + yyb267 = yyj267 > l } else { - yyb9 = r.CheckBreak() + yyb267 = r.CheckBreak() } - if yyb9 { + if yyb267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScheduledJobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv272 := &x.Status + yyv272.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj267++ + if yyhl267 { + yyb267 = yyj267 > l } else { - yyb9 = r.CheckBreak() + yyb267 = r.CheckBreak() } - if yyb9 { + if yyb267 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj267-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3138,139 +3148,139 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym273 := z.EncBinary() + _ = yym273 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep274 := !z.EncBinary() + yy2arr274 := z.EncBasicHandle().StructToArray + var yyq274 [4]bool + _, _, _ = yysep274, yyq274, yy2arr274 + const yyr274 bool = false + yyq274[0] = x.Kind != "" + yyq274[1] = x.APIVersion != "" + yyq274[2] = true + var yynn274 int + if yyr274 || yy2arr274 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn274 = 1 + for _, b := range yyq274 { if b { - yynn2++ + yynn274++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn274) + yynn274 = 0 } - if yyr2 || yy2arr2 { + if yyr274 || yy2arr274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq274[0] { + yym276 := z.EncBinary() + _ = yym276 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq274[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym277 := z.EncBinary() + _ = yym277 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr274 || yy2arr274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq274[1] { + yym279 := z.EncBinary() + _ = yym279 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq274[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym280 := z.EncBinary() + _ = yym280 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr274 || yy2arr274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq274[2] { + yy282 := &x.ListMeta + yym283 := z.EncBinary() + _ = yym283 if false { + } else if z.HasExtensions() && z.EncExt(yy282) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy282) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq274[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy284 := &x.ListMeta + yym285 := z.EncBinary() + _ = yym285 if false { + } else if z.HasExtensions() && z.EncExt(yy284) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy284) } } } - if yyr2 || yy2arr2 { + if yyr274 || yy2arr274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym287 := z.EncBinary() + _ = yym287 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym288 := z.EncBinary() + _ = yym288 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr274 || yy2arr274 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3283,25 +3293,25 @@ func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym289 := z.DecBinary() + _ = yym289 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct290 := r.ContainerType() + if yyct290 == codecSelferValueTypeMap1234 { + yyl290 := r.ReadMapStart() + if yyl290 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl290, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct290 == codecSelferValueTypeArray1234 { + yyl290 := r.ReadArrayStart() + if yyl290 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl290, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3313,12 +3323,12 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys291Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys291Slc + var yyhl291 bool = l >= 0 + for yyj291 := 0; ; yyj291++ { + if yyhl291 { + if yyj291 >= l { break } } else { @@ -3327,51 +3337,51 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys291Slc = r.DecodeBytes(yys291Slc, true, true) + yys291 := string(yys291Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys291 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv294 := &x.ListMeta + yym295 := z.DecBinary() + _ = yym295 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv294) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv294, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv296 := &x.Items + yym297 := z.DecBinary() + _ = yym297 if false { } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv6), d) + h.decSliceScheduledJob((*[]ScheduledJob)(yyv296), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys291) + } // end switch yys291 + } // end for yyj291 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3379,98 +3389,98 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj298 int + var yyb298 bool + var yyhl298 bool = l >= 0 + yyj298++ + if yyhl298 { + yyb298 = yyj298 > l } else { - yyb10 = r.CheckBreak() + yyb298 = r.CheckBreak() } - if yyb10 { + if yyb298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj298++ + if yyhl298 { + yyb298 = yyj298 > l } else { - yyb10 = r.CheckBreak() + yyb298 = r.CheckBreak() } - if yyb10 { + if yyb298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj298++ + if yyhl298 { + yyb298 = yyj298 > l } else { - yyb10 = r.CheckBreak() + yyb298 = r.CheckBreak() } - if yyb10 { + if yyb298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv301 := &x.ListMeta + yym302 := z.DecBinary() + _ = yym302 + if false { + } else if z.HasExtensions() && z.DecExt(yyv301) { + } else { + z.DecFallback(yyv301, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj298++ + if yyhl298 { + yyb298 = yyj298 > l } else { - yyb10 = r.CheckBreak() + yyb298 = r.CheckBreak() } - if yyb10 { + if yyb298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv303 := &x.Items + yym304 := z.DecBinary() + _ = yym304 + if false { + } else { + h.decSliceScheduledJob((*[]ScheduledJob)(yyv303), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj298++ + if yyhl298 { + yyb298 = yyj298 > l } else { - yyb10 = r.CheckBreak() + yyb298 = r.CheckBreak() } - if yyb10 { + if yyb298 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj298-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3482,35 +3492,36 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym305 := z.EncBinary() + _ = yym305 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[1] = x.StartingDeadlineSeconds != nil - yyq2[2] = x.ConcurrencyPolicy != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep306 := !z.EncBinary() + yy2arr306 := z.EncBasicHandle().StructToArray + var yyq306 [5]bool + _, _, _ = yysep306, yyq306, yy2arr306 + const yyr306 bool = false + yyq306[1] = x.StartingDeadlineSeconds != nil + yyq306[2] = x.ConcurrencyPolicy != "" + yyq306[3] = x.Suspend != nil + var yynn306 int + if yyr306 || yy2arr306 { r.EncodeArrayStart(5) } else { - yynn2 = 3 - for _, b := range yyq2 { + yynn306 = 2 + for _, b := range yyq306 { if b { - yynn2++ + yynn306++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn306) + yynn306 = 0 } - if yyr2 || yy2arr2 { + if yyr306 || yy2arr306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym308 := z.EncBinary() + _ = yym308 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) @@ -3519,104 +3530,110 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("schedule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym309 := z.EncBinary() + _ = yym309 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) } } - if yyr2 || yy2arr2 { + if yyr306 || yy2arr306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq306[1] { if x.StartingDeadlineSeconds == nil { r.EncodeNil() } else { - yy7 := *x.StartingDeadlineSeconds - yym8 := z.EncBinary() - _ = yym8 + yy311 := *x.StartingDeadlineSeconds + yym312 := z.EncBinary() + _ = yym312 if false { } else { - r.EncodeInt(int64(yy7)) + r.EncodeInt(int64(yy311)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq306[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startingDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartingDeadlineSeconds == nil { r.EncodeNil() } else { - yy9 := *x.StartingDeadlineSeconds - yym10 := z.EncBinary() - _ = yym10 + yy313 := *x.StartingDeadlineSeconds + yym314 := z.EncBinary() + _ = yym314 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy313)) } } } } - if yyr2 || yy2arr2 { + if yyr306 || yy2arr306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq306[2] { x.ConcurrencyPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq306[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrencyPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ConcurrencyPolicy.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr306 || yy2arr306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Suspend == nil { - r.EncodeNil() - } else { - yy15 := *x.Suspend - yym16 := z.EncBinary() - _ = yym16 - if false { + if yyq306[3] { + if x.Suspend == nil { + r.EncodeNil() } else { - r.EncodeBool(bool(yy15)) + yy317 := *x.Suspend + yym318 := z.EncBinary() + _ = yym318 + if false { + } else { + r.EncodeBool(bool(yy317)) + } } + } else { + r.EncodeNil() } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("suspend")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Suspend == nil { - r.EncodeNil() - } else { - yy17 := *x.Suspend - yym18 := z.EncBinary() - _ = yym18 - if false { + if yyq306[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("suspend")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Suspend == nil { + r.EncodeNil() } else { - r.EncodeBool(bool(yy17)) + yy319 := *x.Suspend + yym320 := z.EncBinary() + _ = yym320 + if false { + } else { + r.EncodeBool(bool(yy319)) + } } } } - if yyr2 || yy2arr2 { + if yyr306 || yy2arr306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy20 := &x.JobTemplate - yy20.CodecEncodeSelf(e) + yy322 := &x.JobTemplate + yy322.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("jobTemplate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy22 := &x.JobTemplate - yy22.CodecEncodeSelf(e) + yy323 := &x.JobTemplate + yy323.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr306 || yy2arr306 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3629,25 +3646,25 @@ func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym324 := z.DecBinary() + _ = yym324 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct325 := r.ContainerType() + if yyct325 == codecSelferValueTypeMap1234 { + yyl325 := r.ReadMapStart() + if yyl325 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl325, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct325 == codecSelferValueTypeArray1234 { + yyl325 := r.ReadArrayStart() + if yyl325 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl325, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3659,12 +3676,12 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys326Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys326Slc + var yyhl326 bool = l >= 0 + for yyj326 := 0; ; yyj326++ { + if yyhl326 { + if yyj326 >= l { break } } else { @@ -3673,10 +3690,10 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys326Slc = r.DecodeBytes(yys326Slc, true, true) + yys326 := string(yys326Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys326 { case "schedule": if r.TryDecodeAsNil() { x.Schedule = "" @@ -3692,8 +3709,8 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartingDeadlineSeconds == nil { x.StartingDeadlineSeconds = new(int64) } - yym6 := z.DecBinary() - _ = yym6 + yym329 := z.DecBinary() + _ = yym329 if false { } else { *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -3714,8 +3731,8 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Suspend == nil { x.Suspend = new(bool) } - yym9 := z.DecBinary() - _ = yym9 + yym332 := z.DecBinary() + _ = yym332 if false { } else { *((*bool)(x.Suspend)) = r.DecodeBool() @@ -3725,13 +3742,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.JobTemplate = JobTemplateSpec{} } else { - yyv10 := &x.JobTemplate - yyv10.CodecDecodeSelf(d) + yyv333 := &x.JobTemplate + yyv333.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys326) + } // end switch yys326 + } // end for yyj326 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3739,16 +3756,16 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj334 int + var yyb334 bool + var yyhl334 bool = l >= 0 + yyj334++ + if yyhl334 { + yyb334 = yyj334 > l } else { - yyb11 = r.CheckBreak() + yyb334 = r.CheckBreak() } - if yyb11 { + if yyb334 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3758,13 +3775,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Schedule = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj334++ + if yyhl334 { + yyb334 = yyj334 > l } else { - yyb11 = r.CheckBreak() + yyb334 = r.CheckBreak() } - if yyb11 { + if yyb334 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3777,20 +3794,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.StartingDeadlineSeconds == nil { x.StartingDeadlineSeconds = new(int64) } - yym14 := z.DecBinary() - _ = yym14 + yym337 := z.DecBinary() + _ = yym337 if false { } else { *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj334++ + if yyhl334 { + yyb334 = yyj334 > l } else { - yyb11 = r.CheckBreak() + yyb334 = r.CheckBreak() } - if yyb11 { + if yyb334 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3800,13 +3817,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj334++ + if yyhl334 { + yyb334 = yyj334 > l } else { - yyb11 = r.CheckBreak() + yyb334 = r.CheckBreak() } - if yyb11 { + if yyb334 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3819,20 +3836,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Suspend == nil { x.Suspend = new(bool) } - yym17 := z.DecBinary() - _ = yym17 + yym340 := z.DecBinary() + _ = yym340 if false { } else { *((*bool)(x.Suspend)) = r.DecodeBool() } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj334++ + if yyhl334 { + yyb334 = yyj334 > l } else { - yyb11 = r.CheckBreak() + yyb334 = r.CheckBreak() } - if yyb11 { + if yyb334 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3840,21 +3857,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.JobTemplate = JobTemplateSpec{} } else { - yyv18 := &x.JobTemplate - yyv18.CodecDecodeSelf(d) + yyv341 := &x.JobTemplate + yyv341.CodecDecodeSelf(d) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj334++ + if yyhl334 { + yyb334 = yyj334 > l } else { - yyb11 = r.CheckBreak() + yyb334 = r.CheckBreak() } - if yyb11 { + if yyb334 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj334-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3863,8 +3880,8 @@ func (x ConcurrencyPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym342 := z.EncBinary() + _ = yym342 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -3876,8 +3893,8 @@ func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym343 := z.DecBinary() + _ = yym343 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -3892,39 +3909,39 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym344 := z.EncBinary() + _ = yym344 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Active) != 0 - yyq2[1] = x.LastScheduleTime != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep345 := !z.EncBinary() + yy2arr345 := z.EncBasicHandle().StructToArray + var yyq345 [2]bool + _, _, _ = yysep345, yyq345, yy2arr345 + const yyr345 bool = false + yyq345[0] = len(x.Active) != 0 + yyq345[1] = x.LastScheduleTime != nil + var yynn345 int + if yyr345 || yy2arr345 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn345 = 0 + for _, b := range yyq345 { if b { - yynn2++ + yynn345++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn345) + yynn345 = 0 } - if yyr2 || yy2arr2 { + if yyr345 || yy2arr345 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq345[0] { if x.Active == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym347 := z.EncBinary() + _ = yym347 if false { } else { h.encSlicev1_ObjectReference(([]pkg2_v1.ObjectReference)(x.Active), e) @@ -3934,15 +3951,15 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq345[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Active == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym348 := z.EncBinary() + _ = yym348 if false { } else { h.encSlicev1_ObjectReference(([]pkg2_v1.ObjectReference)(x.Active), e) @@ -3950,19 +3967,19 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr345 || yy2arr345 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq345[1] { if x.LastScheduleTime == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym350 := z.EncBinary() + _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym7 { + } else if yym350 { z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym350 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScheduleTime) } else { z.EncFallback(x.LastScheduleTime) @@ -3972,20 +3989,20 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq345[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastScheduleTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LastScheduleTime == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym351 := z.EncBinary() + _ = yym351 if false { } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym8 { + } else if yym351 { z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym8 && z.IsJSONHandle() { + } else if !yym351 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScheduleTime) } else { z.EncFallback(x.LastScheduleTime) @@ -3993,7 +4010,7 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr345 || yy2arr345 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4006,25 +4023,25 @@ func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym352 := z.DecBinary() + _ = yym352 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct353 := r.ContainerType() + if yyct353 == codecSelferValueTypeMap1234 { + yyl353 := r.ReadMapStart() + if yyl353 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl353, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct353 == codecSelferValueTypeArray1234 { + yyl353 := r.ReadArrayStart() + if yyl353 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl353, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4036,12 +4053,12 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys354Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys354Slc + var yyhl354 bool = l >= 0 + for yyj354 := 0; ; yyj354++ { + if yyhl354 { + if yyj354 >= l { break } } else { @@ -4050,20 +4067,20 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys354Slc = r.DecodeBytes(yys354Slc, true, true) + yys354 := string(yys354Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys354 { case "active": if r.TryDecodeAsNil() { x.Active = nil } else { - yyv4 := &x.Active - yym5 := z.DecBinary() - _ = yym5 + yyv355 := &x.Active + yym356 := z.DecBinary() + _ = yym356 if false { } else { - h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv4), d) + h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv355), d) } } case "lastScheduleTime": @@ -4075,22 +4092,22 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.LastScheduleTime == nil { x.LastScheduleTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym358 := z.DecBinary() + _ = yym358 if false { } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym7 { + } else if yym358 { z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym358 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScheduleTime) } else { z.DecFallback(x.LastScheduleTime, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys354) + } // end switch yys354 + } // end for yyj354 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4098,16 +4115,16 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj359 int + var yyb359 bool + var yyhl359 bool = l >= 0 + yyj359++ + if yyhl359 { + yyb359 = yyj359 > l } else { - yyb8 = r.CheckBreak() + yyb359 = r.CheckBreak() } - if yyb8 { + if yyb359 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4115,21 +4132,21 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Active = nil } else { - yyv9 := &x.Active - yym10 := z.DecBinary() - _ = yym10 + yyv360 := &x.Active + yym361 := z.DecBinary() + _ = yym361 if false { } else { - h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv9), d) + h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv360), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj359++ + if yyhl359 { + yyb359 = yyj359 > l } else { - yyb8 = r.CheckBreak() + yyb359 = r.CheckBreak() } - if yyb8 { + if yyb359 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4142,30 +4159,30 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.LastScheduleTime == nil { x.LastScheduleTime = new(pkg1_unversioned.Time) } - yym12 := z.DecBinary() - _ = yym12 + yym363 := z.DecBinary() + _ = yym363 if false { } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym12 { + } else if yym363 { z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym12 && z.IsJSONHandle() { + } else if !yym363 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScheduleTime) } else { z.DecFallback(x.LastScheduleTime, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj359++ + if yyhl359 { + yyb359 = yyj359 > l } else { - yyb8 = r.CheckBreak() + yyb359 = r.CheckBreak() } - if yyb8 { + if yyb359 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj359-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4177,39 +4194,39 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym364 := z.EncBinary() + _ = yym364 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.MatchLabels) != 0 - yyq2[1] = len(x.MatchExpressions) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep365 := !z.EncBinary() + yy2arr365 := z.EncBasicHandle().StructToArray + var yyq365 [2]bool + _, _, _ = yysep365, yyq365, yy2arr365 + const yyr365 bool = false + yyq365[0] = len(x.MatchLabels) != 0 + yyq365[1] = len(x.MatchExpressions) != 0 + var yynn365 int + if yyr365 || yy2arr365 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn365 = 0 + for _, b := range yyq365 { if b { - yynn2++ + yynn365++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn365) + yynn365 = 0 } - if yyr2 || yy2arr2 { + if yyr365 || yy2arr365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq365[0] { if x.MatchLabels == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym367 := z.EncBinary() + _ = yym367 if false { } else { z.F.EncMapStringStringV(x.MatchLabels, false, e) @@ -4219,15 +4236,15 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq365[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchLabels")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchLabels == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym368 := z.EncBinary() + _ = yym368 if false { } else { z.F.EncMapStringStringV(x.MatchLabels, false, e) @@ -4235,14 +4252,14 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr365 || yy2arr365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq365[1] { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym370 := z.EncBinary() + _ = yym370 if false { } else { h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) @@ -4252,15 +4269,15 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq365[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym371 := z.EncBinary() + _ = yym371 if false { } else { h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) @@ -4268,7 +4285,7 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr365 || yy2arr365 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4281,25 +4298,25 @@ func (x *LabelSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym372 := z.DecBinary() + _ = yym372 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct373 := r.ContainerType() + if yyct373 == codecSelferValueTypeMap1234 { + yyl373 := r.ReadMapStart() + if yyl373 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl373, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct373 == codecSelferValueTypeArray1234 { + yyl373 := r.ReadArrayStart() + if yyl373 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl373, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4311,12 +4328,12 @@ func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys374Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys374Slc + var yyhl374 bool = l >= 0 + for yyj374 := 0; ; yyj374++ { + if yyhl374 { + if yyj374 >= l { break } } else { @@ -4325,38 +4342,38 @@ func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys374Slc = r.DecodeBytes(yys374Slc, true, true) + yys374 := string(yys374Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys374 { case "matchLabels": if r.TryDecodeAsNil() { x.MatchLabels = nil } else { - yyv4 := &x.MatchLabels - yym5 := z.DecBinary() - _ = yym5 + yyv375 := &x.MatchLabels + yym376 := z.DecBinary() + _ = yym376 if false { } else { - z.F.DecMapStringStringX(yyv4, false, d) + z.F.DecMapStringStringX(yyv375, false, d) } } case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv6 := &x.MatchExpressions - yym7 := z.DecBinary() - _ = yym7 + yyv377 := &x.MatchExpressions + yym378 := z.DecBinary() + _ = yym378 if false { } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv6), d) + h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv377), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys374) + } // end switch yys374 + } // end for yyj374 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4364,16 +4381,16 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj379 int + var yyb379 bool + var yyhl379 bool = l >= 0 + yyj379++ + if yyhl379 { + yyb379 = yyj379 > l } else { - yyb8 = r.CheckBreak() + yyb379 = r.CheckBreak() } - if yyb8 { + if yyb379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4381,21 +4398,21 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MatchLabels = nil } else { - yyv9 := &x.MatchLabels - yym10 := z.DecBinary() - _ = yym10 + yyv380 := &x.MatchLabels + yym381 := z.DecBinary() + _ = yym381 if false { } else { - z.F.DecMapStringStringX(yyv9, false, d) + z.F.DecMapStringStringX(yyv380, false, d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj379++ + if yyhl379 { + yyb379 = yyj379 > l } else { - yyb8 = r.CheckBreak() + yyb379 = r.CheckBreak() } - if yyb8 { + if yyb379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4403,26 +4420,26 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv11 := &x.MatchExpressions - yym12 := z.DecBinary() - _ = yym12 + yyv382 := &x.MatchExpressions + yym383 := z.DecBinary() + _ = yym383 if false { } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv11), d) + h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv382), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj379++ + if yyhl379 { + yyb379 = yyj379 > l } else { - yyb8 = r.CheckBreak() + yyb379 = r.CheckBreak() } - if yyb8 { + if yyb379 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj379-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4434,34 +4451,34 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym384 := z.EncBinary() + _ = yym384 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = len(x.Values) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep385 := !z.EncBinary() + yy2arr385 := z.EncBasicHandle().StructToArray + var yyq385 [3]bool + _, _, _ = yysep385, yyq385, yy2arr385 + const yyr385 bool = false + yyq385[2] = len(x.Values) != 0 + var yynn385 int + if yyr385 || yy2arr385 { r.EncodeArrayStart(3) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn385 = 2 + for _, b := range yyq385 { if b { - yynn2++ + yynn385++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn385) + yynn385 = 0 } - if yyr2 || yy2arr2 { + if yyr385 || yy2arr385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym387 := z.EncBinary() + _ = yym387 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -4470,14 +4487,14 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym388 := z.EncBinary() + _ = yym388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr385 || yy2arr385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -4486,14 +4503,14 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr385 || yy2arr385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq385[2] { if x.Values == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym391 := z.EncBinary() + _ = yym391 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -4503,15 +4520,15 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq385[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym392 := z.EncBinary() + _ = yym392 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -4519,7 +4536,7 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr385 || yy2arr385 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4532,25 +4549,25 @@ func (x *LabelSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym393 := z.DecBinary() + _ = yym393 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct394 := r.ContainerType() + if yyct394 == codecSelferValueTypeMap1234 { + yyl394 := r.ReadMapStart() + if yyl394 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl394, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct394 == codecSelferValueTypeArray1234 { + yyl394 := r.ReadArrayStart() + if yyl394 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl394, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4562,12 +4579,12 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys395Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys395Slc + var yyhl395 bool = l >= 0 + for yyj395 := 0; ; yyj395++ { + if yyhl395 { + if yyj395 >= l { break } } else { @@ -4576,10 +4593,10 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys395Slc = r.DecodeBytes(yys395Slc, true, true) + yys395 := string(yys395Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys395 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -4596,18 +4613,18 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Values = nil } else { - yyv6 := &x.Values - yym7 := z.DecBinary() - _ = yym7 + yyv398 := &x.Values + yym399 := z.DecBinary() + _ = yym399 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv398, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys395) + } // end switch yys395 + } // end for yyj395 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4615,16 +4632,16 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj400 int + var yyb400 bool + var yyhl400 bool = l >= 0 + yyj400++ + if yyhl400 { + yyb400 = yyj400 > l } else { - yyb8 = r.CheckBreak() + yyb400 = r.CheckBreak() } - if yyb8 { + if yyb400 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4634,13 +4651,13 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Key = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj400++ + if yyhl400 { + yyb400 = yyj400 > l } else { - yyb8 = r.CheckBreak() + yyb400 = r.CheckBreak() } - if yyb8 { + if yyb400 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4650,13 +4667,13 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Operator = LabelSelectorOperator(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj400++ + if yyhl400 { + yyb400 = yyj400 > l } else { - yyb8 = r.CheckBreak() + yyb400 = r.CheckBreak() } - if yyb8 { + if yyb400 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4664,26 +4681,26 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Values = nil } else { - yyv11 := &x.Values - yym12 := z.DecBinary() - _ = yym12 + yyv403 := &x.Values + yym404 := z.DecBinary() + _ = yym404 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv403, false, d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj400++ + if yyhl400 { + yyb400 = yyj400 > l } else { - yyb8 = r.CheckBreak() + yyb400 = r.CheckBreak() } - if yyb8 { + if yyb400 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj400-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4692,8 +4709,8 @@ func (x LabelSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym405 := z.EncBinary() + _ = yym405 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -4705,8 +4722,8 @@ func (x *LabelSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym406 := z.DecBinary() + _ = yym406 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -4719,10 +4736,10 @@ func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv407 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy408 := &yyv407 + yy408.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4732,86 +4749,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Job{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + yyv409 := *v + yyh409, yyl409 := z.DecSliceHelperStart() + var yyc409 bool + if yyl409 == 0 { + if yyv409 == nil { + yyv409 = []Job{} + yyc409 = true + } else if len(yyv409) != 0 { + yyv409 = yyv409[:0] + yyc409 = true + } + } else if yyl409 > 0 { + var yyrr409, yyrl409 int + var yyrt409 bool + if yyl409 > cap(yyv409) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 792) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg409 := len(yyv409) > 0 + yyv2409 := yyv409 + yyrl409, yyrt409 = z.DecInferLen(yyl409, z.DecBasicHandle().MaxInitLen, 824) + if yyrt409 { + if yyrl409 <= cap(yyv409) { + yyv409 = yyv409[:yyrl409] } else { - yyv1 = make([]Job, yyrl1) + yyv409 = make([]Job, yyrl409) } } else { - yyv1 = make([]Job, yyrl1) + yyv409 = make([]Job, yyrl409) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc409 = true + yyrr409 = len(yyv409) + if yyrg409 { + copy(yyv409, yyv2409) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl409 != len(yyv409) { + yyv409 = yyv409[:yyl409] + yyc409 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj409 := 0 + for ; yyj409 < yyrr409; yyj409++ { + yyh409.ElemContainerState(yyj409) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv409[yyj409] = Job{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv410 := &yyv409[yyj409] + yyv410.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Job{}) - yyh1.ElemContainerState(yyj1) + if yyrt409 { + for ; yyj409 < yyl409; yyj409++ { + yyv409 = append(yyv409, Job{}) + yyh409.ElemContainerState(yyj409) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv409[yyj409] = Job{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv411 := &yyv409[yyj409] + yyv411.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj409 := 0 + for ; !r.CheckBreak(); yyj409++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Job{}) // var yyz1 Job - yyc1 = true + if yyj409 >= len(yyv409) { + yyv409 = append(yyv409, Job{}) // var yyz409 Job + yyc409 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh409.ElemContainerState(yyj409) + if yyj409 < len(yyv409) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv409[yyj409] = Job{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv412 := &yyv409[yyj409] + yyv412.CodecDecodeSelf(d) } } else { @@ -4819,17 +4833,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Job{} - yyc1 = true + if yyj409 < len(yyv409) { + yyv409 = yyv409[:yyj409] + yyc409 = true + } else if yyj409 == 0 && yyv409 == nil { + yyv409 = []Job{} + yyc409 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh409.End() + if yyc409 { + *v = yyv409 } } @@ -4838,10 +4852,10 @@ func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv413 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy414 := &yyv413 + yy414.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4851,86 +4865,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + yyv415 := *v + yyh415, yyl415 := z.DecSliceHelperStart() + var yyc415 bool + if yyl415 == 0 { + if yyv415 == nil { + yyv415 = []JobCondition{} + yyc415 = true + } else if len(yyv415) != 0 { + yyv415 = yyv415[:0] + yyc415 = true + } + } else if yyl415 > 0 { + var yyrr415, yyrl415 int + var yyrt415 bool + if yyl415 > cap(yyv415) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg415 := len(yyv415) > 0 + yyv2415 := yyv415 + yyrl415, yyrt415 = z.DecInferLen(yyl415, z.DecBasicHandle().MaxInitLen, 112) + if yyrt415 { + if yyrl415 <= cap(yyv415) { + yyv415 = yyv415[:yyrl415] } else { - yyv1 = make([]JobCondition, yyrl1) + yyv415 = make([]JobCondition, yyrl415) } } else { - yyv1 = make([]JobCondition, yyrl1) + yyv415 = make([]JobCondition, yyrl415) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc415 = true + yyrr415 = len(yyv415) + if yyrg415 { + copy(yyv415, yyv2415) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl415 != len(yyv415) { + yyv415 = yyv415[:yyl415] + yyc415 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj415 := 0 + for ; yyj415 < yyrr415; yyj415++ { + yyh415.ElemContainerState(yyj415) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv415[yyj415] = JobCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv416 := &yyv415[yyj415] + yyv416.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, JobCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt415 { + for ; yyj415 < yyl415; yyj415++ { + yyv415 = append(yyv415, JobCondition{}) + yyh415.ElemContainerState(yyj415) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv415[yyj415] = JobCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv417 := &yyv415[yyj415] + yyv417.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj415 := 0 + for ; !r.CheckBreak(); yyj415++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, JobCondition{}) // var yyz1 JobCondition - yyc1 = true + if yyj415 >= len(yyv415) { + yyv415 = append(yyv415, JobCondition{}) // var yyz415 JobCondition + yyc415 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh415.ElemContainerState(yyj415) + if yyj415 < len(yyv415) { if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv415[yyj415] = JobCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv418 := &yyv415[yyj415] + yyv418.CodecDecodeSelf(d) } } else { @@ -4938,17 +4949,17 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true + if yyj415 < len(yyv415) { + yyv415 = yyv415[:yyj415] + yyc415 = true + } else if yyj415 == 0 && yyv415 == nil { + yyv415 = []JobCondition{} + yyc415 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh415.End() + if yyc415 { + *v = yyv415 } } @@ -4957,10 +4968,10 @@ func (x codecSelfer1234) encSliceScheduledJob(v []ScheduledJob, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv419 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy420 := &yyv419 + yy420.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4970,86 +4981,83 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ScheduledJob{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + yyv421 := *v + yyh421, yyl421 := z.DecSliceHelperStart() + var yyc421 bool + if yyl421 == 0 { + if yyv421 == nil { + yyv421 = []ScheduledJob{} + yyc421 = true + } else if len(yyv421) != 0 { + yyv421 = yyv421[:0] + yyc421 = true + } + } else if yyl421 > 0 { + var yyrr421, yyrl421 int + var yyrt421 bool + if yyl421 > cap(yyv421) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1024) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg421 := len(yyv421) > 0 + yyv2421 := yyv421 + yyrl421, yyrt421 = z.DecInferLen(yyl421, z.DecBasicHandle().MaxInitLen, 1072) + if yyrt421 { + if yyrl421 <= cap(yyv421) { + yyv421 = yyv421[:yyrl421] } else { - yyv1 = make([]ScheduledJob, yyrl1) + yyv421 = make([]ScheduledJob, yyrl421) } } else { - yyv1 = make([]ScheduledJob, yyrl1) + yyv421 = make([]ScheduledJob, yyrl421) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc421 = true + yyrr421 = len(yyv421) + if yyrg421 { + copy(yyv421, yyv2421) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl421 != len(yyv421) { + yyv421 = yyv421[:yyl421] + yyc421 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj421 := 0 + for ; yyj421 < yyrr421; yyj421++ { + yyh421.ElemContainerState(yyj421) if r.TryDecodeAsNil() { - yyv1[yyj1] = ScheduledJob{} + yyv421[yyj421] = ScheduledJob{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv422 := &yyv421[yyj421] + yyv422.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ScheduledJob{}) - yyh1.ElemContainerState(yyj1) + if yyrt421 { + for ; yyj421 < yyl421; yyj421++ { + yyv421 = append(yyv421, ScheduledJob{}) + yyh421.ElemContainerState(yyj421) if r.TryDecodeAsNil() { - yyv1[yyj1] = ScheduledJob{} + yyv421[yyj421] = ScheduledJob{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv423 := &yyv421[yyj421] + yyv423.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj421 := 0 + for ; !r.CheckBreak(); yyj421++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ScheduledJob{}) // var yyz1 ScheduledJob - yyc1 = true + if yyj421 >= len(yyv421) { + yyv421 = append(yyv421, ScheduledJob{}) // var yyz421 ScheduledJob + yyc421 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh421.ElemContainerState(yyj421) + if yyj421 < len(yyv421) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ScheduledJob{} + yyv421[yyj421] = ScheduledJob{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv424 := &yyv421[yyj421] + yyv424.CodecDecodeSelf(d) } } else { @@ -5057,17 +5065,17 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ScheduledJob{} - yyc1 = true + if yyj421 < len(yyv421) { + yyv421 = yyv421[:yyj421] + yyc421 = true + } else if yyj421 == 0 && yyv421 == nil { + yyv421 = []ScheduledJob{} + yyc421 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh421.End() + if yyc421 { + *v = yyv421 } } @@ -5076,10 +5084,10 @@ func (x codecSelfer1234) encSlicev1_ObjectReference(v []pkg2_v1.ObjectReference, z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv425 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy426 := &yyv425 + yy426.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5089,86 +5097,83 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg2_v1.ObjectReference{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + yyv427 := *v + yyh427, yyl427 := z.DecSliceHelperStart() + var yyc427 bool + if yyl427 == 0 { + if yyv427 == nil { + yyv427 = []pkg2_v1.ObjectReference{} + yyc427 = true + } else if len(yyv427) != 0 { + yyv427 = yyv427[:0] + yyc427 = true + } + } else if yyl427 > 0 { + var yyrr427, yyrl427 int + var yyrt427 bool + if yyl427 > cap(yyv427) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg427 := len(yyv427) > 0 + yyv2427 := yyv427 + yyrl427, yyrt427 = z.DecInferLen(yyl427, z.DecBasicHandle().MaxInitLen, 112) + if yyrt427 { + if yyrl427 <= cap(yyv427) { + yyv427 = yyv427[:yyrl427] } else { - yyv1 = make([]pkg2_v1.ObjectReference, yyrl1) + yyv427 = make([]pkg2_v1.ObjectReference, yyrl427) } } else { - yyv1 = make([]pkg2_v1.ObjectReference, yyrl1) + yyv427 = make([]pkg2_v1.ObjectReference, yyrl427) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc427 = true + yyrr427 = len(yyv427) + if yyrg427 { + copy(yyv427, yyv2427) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl427 != len(yyv427) { + yyv427 = yyv427[:yyl427] + yyc427 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj427 := 0 + for ; yyj427 < yyrr427; yyj427++ { + yyh427.ElemContainerState(yyj427) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_v1.ObjectReference{} + yyv427[yyj427] = pkg2_v1.ObjectReference{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv428 := &yyv427[yyj427] + yyv428.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, pkg2_v1.ObjectReference{}) - yyh1.ElemContainerState(yyj1) + if yyrt427 { + for ; yyj427 < yyl427; yyj427++ { + yyv427 = append(yyv427, pkg2_v1.ObjectReference{}) + yyh427.ElemContainerState(yyj427) if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_v1.ObjectReference{} + yyv427[yyj427] = pkg2_v1.ObjectReference{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv429 := &yyv427[yyj427] + yyv429.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj427 := 0 + for ; !r.CheckBreak(); yyj427++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, pkg2_v1.ObjectReference{}) // var yyz1 pkg2_v1.ObjectReference - yyc1 = true + if yyj427 >= len(yyv427) { + yyv427 = append(yyv427, pkg2_v1.ObjectReference{}) // var yyz427 pkg2_v1.ObjectReference + yyc427 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh427.ElemContainerState(yyj427) + if yyj427 < len(yyv427) { if r.TryDecodeAsNil() { - yyv1[yyj1] = pkg2_v1.ObjectReference{} + yyv427[yyj427] = pkg2_v1.ObjectReference{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv430 := &yyv427[yyj427] + yyv430.CodecDecodeSelf(d) } } else { @@ -5176,17 +5181,17 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg2_v1.ObjectReference{} - yyc1 = true + if yyj427 < len(yyv427) { + yyv427 = yyv427[:yyj427] + yyc427 = true + } else if yyj427 == 0 && yyv427 == nil { + yyv427 = []pkg2_v1.ObjectReference{} + yyc427 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh427.End() + if yyc427 { + *v = yyv427 } } @@ -5195,10 +5200,10 @@ func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequi z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv431 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy432 := &yyv431 + yy432.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5208,86 +5213,83 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LabelSelectorRequirement{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + yyv433 := *v + yyh433, yyl433 := z.DecSliceHelperStart() + var yyc433 bool + if yyl433 == 0 { + if yyv433 == nil { + yyv433 = []LabelSelectorRequirement{} + yyc433 = true + } else if len(yyv433) != 0 { + yyv433 = yyv433[:0] + yyc433 = true + } + } else if yyl433 > 0 { + var yyrr433, yyrl433 int + var yyrt433 bool + if yyl433 > cap(yyv433) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg433 := len(yyv433) > 0 + yyv2433 := yyv433 + yyrl433, yyrt433 = z.DecInferLen(yyl433, z.DecBasicHandle().MaxInitLen, 56) + if yyrt433 { + if yyrl433 <= cap(yyv433) { + yyv433 = yyv433[:yyrl433] } else { - yyv1 = make([]LabelSelectorRequirement, yyrl1) + yyv433 = make([]LabelSelectorRequirement, yyrl433) } } else { - yyv1 = make([]LabelSelectorRequirement, yyrl1) + yyv433 = make([]LabelSelectorRequirement, yyrl433) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc433 = true + yyrr433 = len(yyv433) + if yyrg433 { + copy(yyv433, yyv2433) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl433 != len(yyv433) { + yyv433 = yyv433[:yyl433] + yyc433 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj433 := 0 + for ; yyj433 < yyrr433; yyj433++ { + yyh433.ElemContainerState(yyj433) if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv433[yyj433] = LabelSelectorRequirement{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv434 := &yyv433[yyj433] + yyv434.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LabelSelectorRequirement{}) - yyh1.ElemContainerState(yyj1) + if yyrt433 { + for ; yyj433 < yyl433; yyj433++ { + yyv433 = append(yyv433, LabelSelectorRequirement{}) + yyh433.ElemContainerState(yyj433) if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv433[yyj433] = LabelSelectorRequirement{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv435 := &yyv433[yyj433] + yyv435.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj433 := 0 + for ; !r.CheckBreak(); yyj433++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LabelSelectorRequirement{}) // var yyz1 LabelSelectorRequirement - yyc1 = true + if yyj433 >= len(yyv433) { + yyv433 = append(yyv433, LabelSelectorRequirement{}) // var yyz433 LabelSelectorRequirement + yyc433 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh433.ElemContainerState(yyj433) + if yyj433 < len(yyv433) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv433[yyj433] = LabelSelectorRequirement{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv436 := &yyv433[yyj433] + yyv436.CodecDecodeSelf(d) } } else { @@ -5295,16 +5297,16 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LabelSelectorRequirement{} - yyc1 = true + if yyj433 < len(yyv433) { + yyv433 = yyv433[:yyj433] + yyc433 = true + } else if yyj433 == 0 && yyv433 == nil { + yyv433 = []LabelSelectorRequirement{} + yyc433 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh433.End() + if yyc433 { + *v = yyv433 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.go index 0402df2e81..ce44235f2d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/types.go @@ -211,7 +211,7 @@ type ScheduledJobSpec struct { // Suspend flag tells the controller to suspend subsequent executions, it does // not apply to already started executions. Defaults to false. - Suspend *bool `json:"suspend" protobuf:"varint,4,opt,name=suspend"` + Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"` // JobTemplate is the object that describes the job that will be created when // executing a ScheduledJob. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/zz_generated.conversion.go similarity index 98% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/zz_generated.conversion.go index 3265269bdf..862b2921f4 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/zz_generated.conversion.go @@ -26,10 +26,17 @@ import ( v1 "k8s.io/kubernetes/pkg/api/v1" batch "k8s.io/kubernetes/pkg/apis/batch" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v2alpha1_Job_To_batch_Job, Convert_batch_Job_To_v2alpha1_Job, Convert_v2alpha1_JobCondition_To_batch_JobCondition, @@ -56,10 +63,7 @@ func init() { Convert_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec, Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus, Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..2980bac9d3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go @@ -0,0 +1,354 @@ +// +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 v2alpha1 + +import ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_v2alpha1_Job, InType: reflect.TypeOf(&Job{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_JobList, InType: reflect.TypeOf(&JobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_JobTemplate, InType: reflect.TypeOf(&JobTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_JobTemplateSpec, InType: reflect.TypeOf(&JobTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_LabelSelector, InType: reflect.TypeOf(&LabelSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_LabelSelectorRequirement, InType: reflect.TypeOf(&LabelSelectorRequirement{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_ScheduledJob, InType: reflect.TypeOf(&ScheduledJob{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_ScheduledJobList, InType: reflect.TypeOf(&ScheduledJobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_ScheduledJobSpec, InType: reflect.TypeOf(&ScheduledJobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_ScheduledJobStatus, InType: reflect.TypeOf(&ScheduledJobStatus{})}, + ) +} + +func DeepCopy_v2alpha1_Job(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Job) + out := out.(*Job) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_JobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobCondition) + out := out.(*JobCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v2alpha1_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobList) + out := out.(*JobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Job, len(*in)) + for i := range *in { + if err := DeepCopy_v2alpha1_Job(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobSpec) + out := out.(*JobSpec) + if in.Parallelism != nil { + in, out := &in.Parallelism, &out.Parallelism + *out = new(int32) + **out = **in + } else { + out.Parallelism = nil + } + if in.Completions != nil { + in, out := &in.Completions, &out.Completions + *out = new(int32) + **out = **in + } else { + out.Completions = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := DeepCopy_v2alpha1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if in.ManualSelector != nil { + in, out := &in.ManualSelector, &out.ManualSelector + *out = new(bool) + **out = **in + } else { + out.ManualSelector = nil + } + if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobStatus) + out := out.(*JobStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]JobCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v2alpha1_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.CompletionTime != nil { + in, out := &in.CompletionTime, &out.CompletionTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.CompletionTime = nil + } + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil + } +} + +func DeepCopy_v2alpha1_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobTemplate) + out := out.(*JobTemplate) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobTemplateSpec) + out := out.(*JobTemplateSpec) + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_LabelSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelector) + out := out.(*LabelSelector) + if in.MatchLabels != nil { + in, out := &in.MatchLabels, &out.MatchLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.MatchLabels = nil + } + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]LabelSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_v2alpha1_LabelSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_v2alpha1_LabelSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelectorRequirement) + out := out.(*LabelSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_v2alpha1_ScheduledJob(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJob) + out := out.(*ScheduledJob) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_ScheduledJobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_ScheduledJobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_ScheduledJobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobList) + out := out.(*ScheduledJobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ScheduledJob, len(*in)) + for i := range *in { + if err := DeepCopy_v2alpha1_ScheduledJob(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v2alpha1_ScheduledJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobSpec) + out := out.(*ScheduledJobSpec) + out.Schedule = in.Schedule + if in.StartingDeadlineSeconds != nil { + in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.StartingDeadlineSeconds = nil + } + out.ConcurrencyPolicy = in.ConcurrencyPolicy + if in.Suspend != nil { + in, out := &in.Suspend, &out.Suspend + *out = new(bool) + **out = **in + } else { + out.Suspend = nil + } + if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_ScheduledJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobStatus) + out := out.(*ScheduledJobStatus) + if in.Active != nil { + in, out := &in.Active, &out.Active + *out = make([]v1.ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Active = nil + } + if in.LastScheduleTime != nil { + in, out := &in.LastScheduleTime, &out.LastScheduleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScheduleTime = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/zz_generated.deepcopy.go new file mode 100644 index 0000000000..7a834641b0 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/batch/zz_generated.deepcopy.go @@ -0,0 +1,307 @@ +// +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 batch + +import ( + api "k8s.io/kubernetes/pkg/api" + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_batch_Job, InType: reflect.TypeOf(&Job{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobList, InType: reflect.TypeOf(&JobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplate, InType: reflect.TypeOf(&JobTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplateSpec, InType: reflect.TypeOf(&JobTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJob, InType: reflect.TypeOf(&ScheduledJob{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJobList, InType: reflect.TypeOf(&ScheduledJobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJobSpec, InType: reflect.TypeOf(&ScheduledJobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJobStatus, InType: reflect.TypeOf(&ScheduledJobStatus{})}, + ) +} + +func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Job) + out := out.(*Job) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_batch_JobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobCondition) + out := out.(*JobCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobList) + out := out.(*JobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Job, len(*in)) + for i := range *in { + if err := DeepCopy_batch_Job(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobSpec) + out := out.(*JobSpec) + if in.Parallelism != nil { + in, out := &in.Parallelism, &out.Parallelism + *out = new(int32) + **out = **in + } else { + out.Parallelism = nil + } + if in.Completions != nil { + in, out := &in.Completions, &out.Completions + *out = new(int32) + **out = **in + } else { + out.Completions = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if in.ManualSelector != nil { + in, out := &in.ManualSelector, &out.ManualSelector + *out = new(bool) + **out = **in + } else { + out.ManualSelector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobStatus) + out := out.(*JobStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]JobCondition, len(*in)) + for i := range *in { + if err := DeepCopy_batch_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.CompletionTime != nil { + in, out := &in.CompletionTime, &out.CompletionTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.CompletionTime = nil + } + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil + } +} + +func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobTemplate) + out := out.(*JobTemplate) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobTemplateSpec) + out := out.(*JobTemplateSpec) + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_ScheduledJob(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJob) + out := out.(*ScheduledJob) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_ScheduledJobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_batch_ScheduledJobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_ScheduledJobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobList) + out := out.(*ScheduledJobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ScheduledJob, len(*in)) + for i := range *in { + if err := DeepCopy_batch_ScheduledJob(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_batch_ScheduledJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobSpec) + out := out.(*ScheduledJobSpec) + out.Schedule = in.Schedule + if in.StartingDeadlineSeconds != nil { + in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.StartingDeadlineSeconds = nil + } + out.ConcurrencyPolicy = in.ConcurrencyPolicy + if in.Suspend != nil { + in, out := &in.Suspend, &out.Suspend + *out = new(bool) + **out = **in + } else { + out.Suspend = nil + } + if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_ScheduledJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobStatus) + out := out.(*ScheduledJobStatus) + if in.Active != nil { + in, out := &in.Active, &out.Active + *out = make([]api.ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Active = nil + } + if in.LastScheduleTime != nil { + in, out := &in.LastScheduleTime, &out.LastScheduleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScheduleTime = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/deep_copy_generated.go deleted file mode 100644 index 07b1b2d4d9..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/deep_copy_generated.go +++ /dev/null @@ -1,120 +0,0 @@ -// +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 certificates - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_certificates_CertificateSigningRequest, - DeepCopy_certificates_CertificateSigningRequestCondition, - DeepCopy_certificates_CertificateSigningRequestList, - DeepCopy_certificates_CertificateSigningRequestSpec, - DeepCopy_certificates_CertificateSigningRequestStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_certificates_CertificateSigningRequest(in CertificateSigningRequest, out *CertificateSigningRequest, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_certificates_CertificateSigningRequestSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_certificates_CertificateSigningRequestStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_certificates_CertificateSigningRequestCondition(in CertificateSigningRequestCondition, out *CertificateSigningRequestCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Reason = in.Reason - out.Message = in.Message - out.LastUpdateTime = in.LastUpdateTime.DeepCopy() - return nil -} - -func DeepCopy_certificates_CertificateSigningRequestList(in CertificateSigningRequestList, out *CertificateSigningRequestList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]CertificateSigningRequest, len(in)) - for i := range in { - if err := DeepCopy_certificates_CertificateSigningRequest(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_certificates_CertificateSigningRequestSpec(in CertificateSigningRequestSpec, out *CertificateSigningRequestSpec, c *conversion.Cloner) error { - if in.Request != nil { - in, out := in.Request, &out.Request - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Request = nil - } - out.Username = in.Username - out.UID = in.UID - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Groups = nil - } - return nil -} - -func DeepCopy_certificates_CertificateSigningRequestStatus(in CertificateSigningRequestStatus, out *CertificateSigningRequestStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]CertificateSigningRequestCondition, len(in)) - for i := range in { - if err := DeepCopy_certificates_CertificateSigningRequestCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.Certificate != nil { - in, out := in.Certificate, &out.Certificate - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Certificate = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/install/install.go index cf54da430e..7fb22de411 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/install/install.go @@ -116,7 +116,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - certificates.AddToScheme(api.Scheme) + if err := certificates.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -125,7 +128,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1alpha1.SchemeGroupVersion: - v1alpha1.AddToScheme(api.Scheme) + if err := v1alpha1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/register.go index d232b3c861..1b24cc754b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/register.go @@ -22,6 +22,11 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + // GroupName is the group name use in this package const GroupName = "certificates" @@ -38,19 +43,15 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} - // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &CertificateSigningRequest{}, &CertificateSigningRequestList{}, &api.ListOptions{}, &api.DeleteOptions{}, ) + return nil } func (obj *CertificateSigningRequest) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/types.generated.go index 21798df3c3..6f5c513bc0 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/types.generated.go @@ -88,11 +88,11 @@ func (x *CertificateSigningRequest) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -109,102 +109,102 @@ func (x *CertificateSigningRequest) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -220,25 +220,25 @@ func (x *CertificateSigningRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -250,12 +250,12 @@ func (x *CertificateSigningRequest) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -264,47 +264,47 @@ func (x *CertificateSigningRequest) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = CertificateSigningRequestSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = CertificateSigningRequestStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = CertificateSigningRequestSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = CertificateSigningRequestStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -312,104 +312,104 @@ func (x *CertificateSigningRequest) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = CertificateSigningRequestSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = CertificateSigningRequestStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = CertificateSigningRequestSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = CertificateSigningRequestStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -421,39 +421,39 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Username != "" - yyq2[2] = x.UID != "" - yyq2[3] = len(x.Groups) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [4]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[1] = x.Username != "" + yyq33[2] = x.UID != "" + yyq33[3] = len(x.Groups) != 0 + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn33 = 1 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Request == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Request)) @@ -466,19 +466,19 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Request == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Request)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) @@ -487,23 +487,23 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq33[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("username")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym39 := z.EncBinary() + _ = yym39 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq33[2] { + yym41 := z.EncBinary() + _ = yym41 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) @@ -512,26 +512,26 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq33[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym42 := z.EncBinary() + _ = yym42 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq33[3] { if x.Groups == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym44 := z.EncBinary() + _ = yym44 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -541,15 +541,15 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq33[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("groups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Groups == nil { r.EncodeNil() } else { - yym14 := z.EncBinary() - _ = yym14 + yym45 := z.EncBinary() + _ = yym45 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -557,7 +557,7 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -570,25 +570,25 @@ func (x *CertificateSigningRequestSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym46 := z.DecBinary() + _ = yym46 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct47 := r.ContainerType() + if yyct47 == codecSelferValueTypeMap1234 { + yyl47 := r.ReadMapStart() + if yyl47 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl47, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct47 == codecSelferValueTypeArray1234 { + yyl47 := r.ReadArrayStart() + if yyl47 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl47, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -600,12 +600,12 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys48Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys48Slc + var yyhl48 bool = l >= 0 + for yyj48 := 0; ; yyj48++ { + if yyhl48 { + if yyj48 >= l { break } } else { @@ -614,20 +614,20 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys48Slc = r.DecodeBytes(yys48Slc, true, true) + yys48 := string(yys48Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys48 { case "request": if r.TryDecodeAsNil() { x.Request = nil } else { - yyv4 := &x.Request - yym5 := z.DecBinary() - _ = yym5 + yyv49 := &x.Request + yym50 := z.DecBinary() + _ = yym50 if false { } else { - *yyv4 = r.DecodeBytes(*(*[]byte)(yyv4), false, false) + *yyv49 = r.DecodeBytes(*(*[]byte)(yyv49), false, false) } } case "username": @@ -646,18 +646,18 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec19 if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv8 := &x.Groups - yym9 := z.DecBinary() - _ = yym9 + yyv53 := &x.Groups + yym54 := z.DecBinary() + _ = yym54 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + z.F.DecSliceStringX(yyv53, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys48) + } // end switch yys48 + } // end for yyj48 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -665,16 +665,16 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj55 int + var yyb55 bool + var yyhl55 bool = l >= 0 + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -682,21 +682,21 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec if r.TryDecodeAsNil() { x.Request = nil } else { - yyv11 := &x.Request - yym12 := z.DecBinary() - _ = yym12 + yyv56 := &x.Request + yym57 := z.DecBinary() + _ = yym57 if false { } else { - *yyv11 = r.DecodeBytes(*(*[]byte)(yyv11), false, false) + *yyv56 = r.DecodeBytes(*(*[]byte)(yyv56), false, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -706,13 +706,13 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec } else { x.Username = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -722,13 +722,13 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec } else { x.UID = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -736,26 +736,26 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv15 := &x.Groups - yym16 := z.DecBinary() - _ = yym16 + yyv60 := &x.Groups + yym61 := z.DecBinary() + _ = yym61 if false { } else { - z.F.DecSliceStringX(yyv15, false, d) + z.F.DecSliceStringX(yyv60, false, d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj55-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -767,39 +767,39 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym62 := z.EncBinary() + _ = yym62 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = len(x.Certificate) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep63 := !z.EncBinary() + yy2arr63 := z.EncBasicHandle().StructToArray + var yyq63 [2]bool + _, _, _ = yysep63, yyq63, yy2arr63 + const yyr63 bool = false + yyq63[0] = len(x.Conditions) != 0 + yyq63[1] = len(x.Certificate) != 0 + var yynn63 int + if yyr63 || yy2arr63 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn63 = 0 + for _, b := range yyq63 { if b { - yynn2++ + yynn63++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn63) + yynn63 = 0 } - if yyr2 || yy2arr2 { + if yyr63 || yy2arr63 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq63[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym65 := z.EncBinary() + _ = yym65 if false { } else { h.encSliceCertificateSigningRequestCondition(([]CertificateSigningRequestCondition)(x.Conditions), e) @@ -809,15 +809,15 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeNil() } } else { - if yyq2[0] { + if yyq63[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym66 := z.EncBinary() + _ = yym66 if false { } else { h.encSliceCertificateSigningRequestCondition(([]CertificateSigningRequestCondition)(x.Conditions), e) @@ -825,14 +825,14 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) } } } - if yyr2 || yy2arr2 { + if yyr63 || yy2arr63 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq63[1] { if x.Certificate == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Certificate)) @@ -842,15 +842,15 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeNil() } } else { - if yyq2[1] { + if yyq63[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("certificate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Certificate == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym69 := z.EncBinary() + _ = yym69 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Certificate)) @@ -858,7 +858,7 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) } } } - if yyr2 || yy2arr2 { + if yyr63 || yy2arr63 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -871,25 +871,25 @@ func (x *CertificateSigningRequestStatus) CodecDecodeSelf(d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym70 := z.DecBinary() + _ = yym70 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct71 := r.ContainerType() + if yyct71 == codecSelferValueTypeMap1234 { + yyl71 := r.ReadMapStart() + if yyl71 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl71, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct71 == codecSelferValueTypeArray1234 { + yyl71 := r.ReadArrayStart() + if yyl71 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl71, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -901,12 +901,12 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromMap(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys72Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys72Slc + var yyhl72 bool = l >= 0 + for yyj72 := 0; ; yyj72++ { + if yyhl72 { + if yyj72 >= l { break } } else { @@ -915,38 +915,38 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromMap(l int, d *codec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys72Slc = r.DecodeBytes(yys72Slc, true, true) + yys72 := string(yys72Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys72 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv73 := &x.Conditions + yym74 := z.DecBinary() + _ = yym74 if false { } else { - h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv4), d) + h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv73), d) } } case "certificate": if r.TryDecodeAsNil() { x.Certificate = nil } else { - yyv6 := &x.Certificate - yym7 := z.DecBinary() - _ = yym7 + yyv75 := &x.Certificate + yym76 := z.DecBinary() + _ = yym76 if false { } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) + *yyv75 = r.DecodeBytes(*(*[]byte)(yyv75), false, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys72) + } // end switch yys72 + } // end for yyj72 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -954,16 +954,16 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj77 int + var yyb77 bool + var yyhl77 bool = l >= 0 + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb8 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb8 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -971,21 +971,21 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *cod if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv9 := &x.Conditions - yym10 := z.DecBinary() - _ = yym10 + yyv78 := &x.Conditions + yym79 := z.DecBinary() + _ = yym79 if false { } else { - h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv9), d) + h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv78), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb8 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb8 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -993,26 +993,26 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *cod if r.TryDecodeAsNil() { x.Certificate = nil } else { - yyv11 := &x.Certificate - yym12 := z.DecBinary() - _ = yym12 + yyv80 := &x.Certificate + yym81 := z.DecBinary() + _ = yym81 if false { } else { - *yyv11 = r.DecodeBytes(*(*[]byte)(yyv11), false, false) + *yyv80 = r.DecodeBytes(*(*[]byte)(yyv80), false, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb8 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb8 { + if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj77-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1021,8 +1021,8 @@ func (x RequestConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym82 := z.EncBinary() + _ = yym82 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -1034,8 +1034,8 @@ func (x *RequestConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym83 := z.DecBinary() + _ = yym83 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -1050,33 +1050,33 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym84 := z.EncBinary() + _ = yym84 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Reason != "" - yyq2[2] = x.Message != "" - yyq2[3] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep85 := !z.EncBinary() + yy2arr85 := z.EncBasicHandle().StructToArray + var yyq85 [4]bool + _, _, _ = yysep85, yyq85, yy2arr85 + const yyr85 bool = false + yyq85[1] = x.Reason != "" + yyq85[2] = x.Message != "" + yyq85[3] = true + var yynn85 int + if yyr85 || yy2arr85 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn85 = 1 + for _, b := range yyq85 { if b { - yynn2++ + yynn85++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn85) + yynn85 = 0 } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -1085,11 +1085,11 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq85[1] { + yym88 := z.EncBinary() + _ = yym88 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -1098,23 +1098,23 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq85[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym89 := z.EncBinary() + _ = yym89 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq85[2] { + yym91 := z.EncBinary() + _ = yym91 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -1123,56 +1123,56 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq85[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym92 := z.EncBinary() + _ = yym92 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.LastUpdateTime - yym14 := z.EncBinary() - _ = yym14 + if yyq85[3] { + yy94 := &x.LastUpdateTime + yym95 := z.EncBinary() + _ = yym95 if false { - } else if z.HasExtensions() && z.EncExt(yy13) { - } else if yym14 { - z.EncBinaryMarshal(yy13) - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(yy13) + } else if z.HasExtensions() && z.EncExt(yy94) { + } else if yym95 { + z.EncBinaryMarshal(yy94) + } else if !yym95 && z.IsJSONHandle() { + z.EncJSONMarshal(yy94) } else { - z.EncFallback(yy13) + z.EncFallback(yy94) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq85[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy15 := &x.LastUpdateTime - yym16 := z.EncBinary() - _ = yym16 + yy96 := &x.LastUpdateTime + yym97 := z.EncBinary() + _ = yym97 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy96) { + } else if yym97 { + z.EncBinaryMarshal(yy96) + } else if !yym97 && z.IsJSONHandle() { + z.EncJSONMarshal(yy96) } else { - z.EncFallback(yy15) + z.EncFallback(yy96) } } } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1185,25 +1185,25 @@ func (x *CertificateSigningRequestCondition) CodecDecodeSelf(d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym98 := z.DecBinary() + _ = yym98 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl99, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl99, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1215,12 +1215,12 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { break } } else { @@ -1229,10 +1229,10 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *co } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys100 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -1255,23 +1255,23 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.LastUpdateTime = pkg1_unversioned.Time{} } else { - yyv7 := &x.LastUpdateTime - yym8 := z.DecBinary() - _ = yym8 + yyv104 := &x.LastUpdateTime + yym105 := z.DecBinary() + _ = yym105 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if yym8 { - z.DecBinaryUnmarshal(yyv7) - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv104) { + } else if yym105 { + z.DecBinaryUnmarshal(yyv104) + } else if !yym105 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv104) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv104, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1279,16 +1279,16 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj106 int + var yyb106 bool + var yyhl106 bool = l >= 0 + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1298,13 +1298,13 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * } else { x.Type = RequestConditionType(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1314,13 +1314,13 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * } else { x.Reason = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1330,13 +1330,13 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * } else { x.Message = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1344,31 +1344,31 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.LastUpdateTime = pkg1_unversioned.Time{} } else { - yyv13 := &x.LastUpdateTime - yym14 := z.DecBinary() - _ = yym14 + yyv110 := &x.LastUpdateTime + yym111 := z.DecBinary() + _ = yym111 if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if yym14 { - z.DecBinaryUnmarshal(yyv13) - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) + } else if z.HasExtensions() && z.DecExt(yyv110) { + } else if yym111 { + z.DecBinaryUnmarshal(yyv110) + } else if !yym111 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv110) } else { - z.DecFallback(yyv13, false) + z.DecFallback(yyv110, false) } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj106-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1380,146 +1380,146 @@ func (x *CertificateSigningRequestList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym112 := z.EncBinary() + _ = yym112 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Items) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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] = len(x.Items) != 0 + var yynn113 int + if yyr113 || yy2arr113 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn113 = 0 + for _, b := range yyq113 { if b { - yynn2++ + yynn113++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn113) + yynn113 = 0 } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq113[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym116 := z.EncBinary() + _ = yym116 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Items == nil { - r.EncodeNil() + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq113[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() + yym119 := z.EncBinary() + _ = yym119 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq113[2] { + yy121 := &x.ListMeta + yym122 := z.EncBinary() + _ = yym122 if false { + } else if z.HasExtensions() && z.EncExt(yy121) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy121) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq113[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy123 := &x.ListMeta + yym124 := z.EncBinary() + _ = yym124 if false { + } else if z.HasExtensions() && z.EncExt(yy123) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy123) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq113[3] { + if x.Items == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym126 := z.EncBinary() + _ = yym126 + if false { + } else { + h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq113[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Items == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym127 := z.EncBinary() + _ = yym127 + if false { + } else { + h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) + } } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1532,25 +1532,25 @@ func (x *CertificateSigningRequestList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym128 := z.DecBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct129 := r.ContainerType() + if yyct129 == codecSelferValueTypeMap1234 { + yyl129 := r.ReadMapStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl129, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct129 == codecSelferValueTypeArray1234 { + yyl129 := r.ReadArrayStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl129, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1562,12 +1562,12 @@ func (x *CertificateSigningRequestList) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys130Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys130Slc + var yyhl130 bool = l >= 0 + for yyj130 := 0; ; yyj130++ { + if yyhl130 { + if yyj130 >= l { break } } else { @@ -1576,51 +1576,51 @@ func (x *CertificateSigningRequestList) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys130Slc = r.DecodeBytes(yys130Slc, true, true) + yys130 := string(yys130Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys130 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv133 := &x.ListMeta + yym134 := z.DecBinary() + _ = yym134 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv133) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv133, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv135 := &x.Items + yym136 := z.DecBinary() + _ = yym136 if false { } else { - h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv6), d) + h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv135), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys130) + } // end switch yys130 + } // end for yyj130 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1628,98 +1628,98 @@ func (x *CertificateSigningRequestList) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj137 int + var yyb137 bool + var yyhl137 bool = l >= 0 + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv140 := &x.ListMeta + yym141 := z.DecBinary() + _ = yym141 + if false { + } else if z.HasExtensions() && z.DecExt(yyv140) { + } else { + z.DecFallback(yyv140, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv142 := &x.Items + yym143 := z.DecBinary() + _ = yym143 + if false { + } else { + h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv142), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj137-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1729,10 +1729,10 @@ func (x codecSelfer1234) encSliceCertificateSigningRequestCondition(v []Certific z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv144 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy145 := &yyv144 + yy145.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1742,86 +1742,83 @@ func (x codecSelfer1234) decSliceCertificateSigningRequestCondition(v *[]Certifi z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CertificateSigningRequestCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv146 := *v + yyh146, yyl146 := z.DecSliceHelperStart() + var yyc146 bool + if yyl146 == 0 { + if yyv146 == nil { + yyv146 = []CertificateSigningRequestCondition{} + yyc146 = true + } else if len(yyv146) != 0 { + yyv146 = yyv146[:0] + yyc146 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl146 > 0 { + var yyrr146, yyrl146 int + var yyrt146 bool + if yyl146 > cap(yyv146) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg146 := len(yyv146) > 0 + yyv2146 := yyv146 + yyrl146, yyrt146 = z.DecInferLen(yyl146, z.DecBasicHandle().MaxInitLen, 72) + if yyrt146 { + if yyrl146 <= cap(yyv146) { + yyv146 = yyv146[:yyrl146] } else { - yyv1 = make([]CertificateSigningRequestCondition, yyrl1) + yyv146 = make([]CertificateSigningRequestCondition, yyrl146) } } else { - yyv1 = make([]CertificateSigningRequestCondition, yyrl1) + yyv146 = make([]CertificateSigningRequestCondition, yyrl146) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc146 = true + yyrr146 = len(yyv146) + if yyrg146 { + copy(yyv146, yyv2146) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl146 != len(yyv146) { + yyv146 = yyv146[:yyl146] + yyc146 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj146 := 0 + for ; yyj146 < yyrr146; yyj146++ { + yyh146.ElemContainerState(yyj146) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequestCondition{} + yyv146[yyj146] = CertificateSigningRequestCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv147 := &yyv146[yyj146] + yyv147.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CertificateSigningRequestCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt146 { + for ; yyj146 < yyl146; yyj146++ { + yyv146 = append(yyv146, CertificateSigningRequestCondition{}) + yyh146.ElemContainerState(yyj146) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequestCondition{} + yyv146[yyj146] = CertificateSigningRequestCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv148 := &yyv146[yyj146] + yyv148.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj146 := 0 + for ; !r.CheckBreak(); yyj146++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CertificateSigningRequestCondition{}) // var yyz1 CertificateSigningRequestCondition - yyc1 = true + if yyj146 >= len(yyv146) { + yyv146 = append(yyv146, CertificateSigningRequestCondition{}) // var yyz146 CertificateSigningRequestCondition + yyc146 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh146.ElemContainerState(yyj146) + if yyj146 < len(yyv146) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequestCondition{} + yyv146[yyj146] = CertificateSigningRequestCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv149 := &yyv146[yyj146] + yyv149.CodecDecodeSelf(d) } } else { @@ -1829,17 +1826,17 @@ func (x codecSelfer1234) decSliceCertificateSigningRequestCondition(v *[]Certifi } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CertificateSigningRequestCondition{} - yyc1 = true + if yyj146 < len(yyv146) { + yyv146 = yyv146[:yyj146] + yyc146 = true + } else if yyj146 == 0 && yyv146 == nil { + yyv146 = []CertificateSigningRequestCondition{} + yyc146 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh146.End() + if yyc146 { + *v = yyv146 } } @@ -1848,10 +1845,10 @@ func (x codecSelfer1234) encSliceCertificateSigningRequest(v []CertificateSignin z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv150 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy151 := &yyv150 + yy151.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1861,86 +1858,83 @@ func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigni z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CertificateSigningRequest{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv152 := *v + yyh152, yyl152 := z.DecSliceHelperStart() + var yyc152 bool + if yyl152 == 0 { + if yyv152 == nil { + yyv152 = []CertificateSigningRequest{} + yyc152 = true + } else if len(yyv152) != 0 { + yyv152 = yyv152[:0] + yyc152 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl152 > 0 { + var yyrr152, yyrl152 int + var yyrt152 bool + if yyl152 > cap(yyv152) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 368) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg152 := len(yyv152) > 0 + yyv2152 := yyv152 + yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 384) + if yyrt152 { + if yyrl152 <= cap(yyv152) { + yyv152 = yyv152[:yyrl152] } else { - yyv1 = make([]CertificateSigningRequest, yyrl1) + yyv152 = make([]CertificateSigningRequest, yyrl152) } } else { - yyv1 = make([]CertificateSigningRequest, yyrl1) + yyv152 = make([]CertificateSigningRequest, yyrl152) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc152 = true + yyrr152 = len(yyv152) + if yyrg152 { + copy(yyv152, yyv2152) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl152 != len(yyv152) { + yyv152 = yyv152[:yyl152] + yyc152 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj152 := 0 + for ; yyj152 < yyrr152; yyj152++ { + yyh152.ElemContainerState(yyj152) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequest{} + yyv152[yyj152] = CertificateSigningRequest{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv153 := &yyv152[yyj152] + yyv153.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CertificateSigningRequest{}) - yyh1.ElemContainerState(yyj1) + if yyrt152 { + for ; yyj152 < yyl152; yyj152++ { + yyv152 = append(yyv152, CertificateSigningRequest{}) + yyh152.ElemContainerState(yyj152) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequest{} + yyv152[yyj152] = CertificateSigningRequest{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv154 := &yyv152[yyj152] + yyv154.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj152 := 0 + for ; !r.CheckBreak(); yyj152++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CertificateSigningRequest{}) // var yyz1 CertificateSigningRequest - yyc1 = true + if yyj152 >= len(yyv152) { + yyv152 = append(yyv152, CertificateSigningRequest{}) // var yyz152 CertificateSigningRequest + yyc152 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh152.ElemContainerState(yyj152) + if yyj152 < len(yyv152) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequest{} + yyv152[yyj152] = CertificateSigningRequest{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv155 := &yyv152[yyj152] + yyv155.CodecDecodeSelf(d) } } else { @@ -1948,16 +1942,16 @@ func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigni } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CertificateSigningRequest{} - yyc1 = true + if yyj152 < len(yyv152) { + yyv152 = yyv152[:yyj152] + yyc152 = true + } else if yyj152 == 0 && yyv152 == nil { + yyv152 = []CertificateSigningRequest{} + yyc152 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh152.End() + if yyc152 { + *v = yyv152 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion.go index 0b933b2599..5275811b88 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion.go @@ -16,8 +16,24 @@ limitations under the License. package v1alpha1 -import "k8s.io/kubernetes/pkg/runtime" +import ( + "fmt" -func addConversionFuncs(scheme *runtime.Scheme) { + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/runtime" +) + +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions here. Currently there are none. + + 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/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/deep_copy_generated.go deleted file mode 100644 index 5b4a3ad220..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/deep_copy_generated.go +++ /dev/null @@ -1,121 +0,0 @@ -// +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 ( - api "k8s.io/kubernetes/pkg/api" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1alpha1_CertificateSigningRequest, - DeepCopy_v1alpha1_CertificateSigningRequestCondition, - DeepCopy_v1alpha1_CertificateSigningRequestList, - DeepCopy_v1alpha1_CertificateSigningRequestSpec, - DeepCopy_v1alpha1_CertificateSigningRequestStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1alpha1_CertificateSigningRequest(in CertificateSigningRequest, out *CertificateSigningRequest, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1alpha1_CertificateSigningRequestSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1alpha1_CertificateSigningRequestStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in CertificateSigningRequestCondition, out *CertificateSigningRequestCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Reason = in.Reason - out.Message = in.Message - out.LastUpdateTime = in.LastUpdateTime.DeepCopy() - return nil -} - -func DeepCopy_v1alpha1_CertificateSigningRequestList(in CertificateSigningRequestList, out *CertificateSigningRequestList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]CertificateSigningRequest, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_CertificateSigningRequest(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_CertificateSigningRequestSpec(in CertificateSigningRequestSpec, out *CertificateSigningRequestSpec, c *conversion.Cloner) error { - if in.Request != nil { - in, out := in.Request, &out.Request - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Request = nil - } - out.Username = in.Username - out.UID = in.UID - if in.Groups != nil { - in, out := in.Groups, &out.Groups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Groups = nil - } - return nil -} - -func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in CertificateSigningRequestStatus, out *CertificateSigningRequestStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]CertificateSigningRequestCondition, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_CertificateSigningRequestCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.Certificate != nil { - in, out := in.Certificate, &out.Certificate - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Certificate = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.pb.go index 174d7ef0c8..866edbe8b5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.pb.go @@ -37,6 +37,9 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -44,25 +47,39 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} } -func (m *CertificateSigningRequest) String() string { return proto.CompactTextString(m) } -func (*CertificateSigningRequest) ProtoMessage() {} +// 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 *CertificateSigningRequestCondition) Reset() { *m = CertificateSigningRequestCondition{} } -func (m *CertificateSigningRequestCondition) String() string { return proto.CompactTextString(m) } -func (*CertificateSigningRequestCondition) ProtoMessage() {} +func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} } +func (*CertificateSigningRequest) ProtoMessage() {} +func (*CertificateSigningRequest) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{0} +} -func (m *CertificateSigningRequestList) Reset() { *m = CertificateSigningRequestList{} } -func (m *CertificateSigningRequestList) String() string { return proto.CompactTextString(m) } -func (*CertificateSigningRequestList) ProtoMessage() {} +func (m *CertificateSigningRequestCondition) Reset() { *m = CertificateSigningRequestCondition{} } +func (*CertificateSigningRequestCondition) ProtoMessage() {} +func (*CertificateSigningRequestCondition) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{1} +} -func (m *CertificateSigningRequestSpec) Reset() { *m = CertificateSigningRequestSpec{} } -func (m *CertificateSigningRequestSpec) String() string { return proto.CompactTextString(m) } -func (*CertificateSigningRequestSpec) ProtoMessage() {} +func (m *CertificateSigningRequestList) Reset() { *m = CertificateSigningRequestList{} } +func (*CertificateSigningRequestList) ProtoMessage() {} +func (*CertificateSigningRequestList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{2} +} -func (m *CertificateSigningRequestStatus) Reset() { *m = CertificateSigningRequestStatus{} } -func (m *CertificateSigningRequestStatus) String() string { return proto.CompactTextString(m) } -func (*CertificateSigningRequestStatus) ProtoMessage() {} +func (m *CertificateSigningRequestSpec) Reset() { *m = CertificateSigningRequestSpec{} } +func (*CertificateSigningRequestSpec) ProtoMessage() {} +func (*CertificateSigningRequestSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{3} +} + +func (m *CertificateSigningRequestStatus) Reset() { *m = CertificateSigningRequestStatus{} } +func (*CertificateSigningRequestStatus) ProtoMessage() {} +func (*CertificateSigningRequestStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{4} +} func init() { proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.kubernetes.pkg.apis.certificates.v1alpha1.CertificateSigningRequest") @@ -388,6 +405,74 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CertificateSigningRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CertificateSigningRequest{`, + `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(), "CertificateSigningRequestSpec", "CertificateSigningRequestSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CertificateSigningRequestStatus", "CertificateSigningRequestStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CertificateSigningRequestCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CertificateSigningRequestCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `LastUpdateTime:` + strings.Replace(strings.Replace(this.LastUpdateTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CertificateSigningRequestList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CertificateSigningRequestList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CertificateSigningRequest", "CertificateSigningRequest", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CertificateSigningRequestSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CertificateSigningRequestSpec{`, + `Request:` + valueToStringGenerated(this.Request) + `,`, + `Username:` + fmt.Sprintf("%v", this.Username) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, + `}`, + }, "") + return s +} +func (this *CertificateSigningRequestStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CertificateSigningRequestStatus{`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "CertificateSigningRequestCondition", "CertificateSigningRequestCondition", 1), `&`, ``, 1) + `,`, + `Certificate:` + valueToStringGenerated(this.Certificate) + `,`, + `}`, + }, "") + 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 *CertificateSigningRequest) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -1190,3 +1275,50 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 681 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x54, 0x4f, 0x4f, 0x13, 0x4f, + 0x18, 0xa6, 0xb4, 0x94, 0x32, 0xe5, 0x07, 0xbf, 0x4c, 0x8c, 0xa9, 0x4d, 0xa0, 0x66, 0xa3, 0x06, + 0x15, 0x66, 0x2d, 0x89, 0x09, 0x47, 0xb3, 0x98, 0x18, 0x22, 0x84, 0x38, 0x40, 0x62, 0x4c, 0x3c, + 0x6c, 0xb7, 0xc3, 0x32, 0x96, 0xee, 0x2e, 0xf3, 0x87, 0x84, 0x9b, 0x47, 0x8f, 0x7e, 0x02, 0xbf, + 0x86, 0x5f, 0x81, 0x23, 0x47, 0x4f, 0xa8, 0xf0, 0x05, 0x3c, 0x7b, 0x72, 0x66, 0x76, 0xb6, 0x5d, + 0x5b, 0x16, 0x35, 0xe1, 0x30, 0x49, 0xe7, 0x99, 0xf7, 0x7d, 0xde, 0xf7, 0x7d, 0xde, 0x67, 0x0b, + 0x9e, 0xf5, 0xd6, 0x38, 0xa2, 0xb1, 0xdb, 0x93, 0x1d, 0xc2, 0x22, 0x22, 0x08, 0x77, 0x93, 0x5e, + 0xe8, 0xfa, 0x09, 0xe5, 0x6e, 0x40, 0x98, 0xa0, 0xfb, 0x34, 0xf0, 0x35, 0x7a, 0xdc, 0xf6, 0x0f, + 0x93, 0x03, 0xbf, 0xed, 0x86, 0x24, 0x22, 0x4c, 0x41, 0x5d, 0x94, 0xb0, 0x58, 0xc4, 0xf0, 0x49, + 0xca, 0x80, 0x86, 0x0c, 0x48, 0x31, 0x20, 0xcd, 0x80, 0xf2, 0x0c, 0x28, 0x63, 0x68, 0xae, 0x84, + 0x54, 0x1c, 0xc8, 0x0e, 0x0a, 0xe2, 0xbe, 0x1b, 0xc6, 0x61, 0xec, 0x1a, 0xa2, 0x8e, 0xdc, 0x37, + 0x37, 0x73, 0x31, 0xbf, 0xd2, 0x02, 0xcd, 0xd5, 0xc2, 0x16, 0x5d, 0x46, 0x78, 0x2c, 0x59, 0x40, + 0x46, 0x9b, 0x6a, 0x3e, 0x2d, 0xce, 0x91, 0xd1, 0x31, 0x61, 0x9c, 0xc6, 0x11, 0xe9, 0x8e, 0xa5, + 0x2d, 0x17, 0xa7, 0x1d, 0x8f, 0x4d, 0xde, 0x5c, 0xb9, 0x3a, 0x9a, 0xc9, 0x48, 0xd0, 0xfe, 0x78, + 0x4f, 0xed, 0xab, 0xc3, 0xa5, 0xa0, 0x87, 0x2e, 0x8d, 0x04, 0x17, 0x6c, 0x34, 0xc5, 0xb9, 0x9c, + 0x04, 0x77, 0xd6, 0x87, 0x1a, 0xee, 0xd0, 0x30, 0xa2, 0x51, 0x88, 0xc9, 0x91, 0x24, 0x5c, 0xc0, + 0xd7, 0xa0, 0xd6, 0x27, 0xc2, 0xef, 0xfa, 0xc2, 0x6f, 0x94, 0xee, 0x96, 0x96, 0xea, 0xab, 0x4b, + 0xa8, 0x70, 0x19, 0x4a, 0x7e, 0xb4, 0xdd, 0x79, 0x47, 0x02, 0xb1, 0xa5, 0x72, 0x3c, 0x78, 0x7a, + 0xde, 0x9a, 0xb8, 0x38, 0x6f, 0x81, 0x21, 0x86, 0x07, 0x6c, 0xf0, 0x08, 0x54, 0x78, 0x42, 0x82, + 0xc6, 0xa4, 0x61, 0xdd, 0x46, 0xff, 0xba, 0x62, 0x54, 0xd8, 0xf4, 0x8e, 0xa2, 0xf5, 0x66, 0x6d, + 0xf1, 0x8a, 0xbe, 0x61, 0x53, 0x0a, 0x9e, 0x80, 0x2a, 0x17, 0xbe, 0x90, 0xbc, 0x51, 0x36, 0x45, + 0x5f, 0xdd, 0x64, 0x51, 0x43, 0xec, 0xcd, 0xd9, 0xb2, 0xd5, 0xf4, 0x8e, 0x6d, 0x41, 0xe7, 0xd3, + 0x24, 0x70, 0x0a, 0x73, 0xd7, 0xe3, 0xa8, 0x4b, 0x85, 0xb2, 0x0b, 0x5c, 0x03, 0x15, 0x71, 0x92, + 0x10, 0x23, 0xf5, 0x8c, 0x77, 0x2f, 0x9b, 0x61, 0x57, 0x61, 0x3f, 0xcf, 0x5b, 0xb7, 0x46, 0xe3, + 0x35, 0x8e, 0x4d, 0x06, 0x7c, 0x00, 0xaa, 0x8c, 0xf8, 0x3c, 0x8e, 0x8c, 0xa0, 0x33, 0xc3, 0x46, + 0xb0, 0x41, 0xb1, 0x7d, 0x85, 0x0f, 0xc1, 0x74, 0x9f, 0x70, 0xee, 0x87, 0xc4, 0x88, 0x30, 0xe3, + 0xcd, 0xdb, 0xc0, 0xe9, 0xad, 0x14, 0xc6, 0xd9, 0x3b, 0xec, 0x81, 0xb9, 0x43, 0x9f, 0x8b, 0xbd, + 0x44, 0xed, 0x8b, 0xec, 0x2a, 0xbb, 0x35, 0x2a, 0x46, 0xb6, 0xc7, 0xd7, 0x38, 0x20, 0xe7, 0x7c, + 0xa4, 0x53, 0xbc, 0xdb, 0x96, 0x7e, 0x6e, 0xf3, 0x37, 0x2a, 0x3c, 0x42, 0xed, 0xfc, 0x28, 0x81, + 0x85, 0x42, 0x81, 0x36, 0xa9, 0xb2, 0xe2, 0xdb, 0x31, 0x2b, 0xba, 0x7f, 0xd9, 0x88, 0x4e, 0x37, + 0x8e, 0xfc, 0xdf, 0x36, 0x53, 0xcb, 0x90, 0x9c, 0x1f, 0x13, 0x30, 0x45, 0x05, 0xe9, 0x73, 0xa5, + 0x5f, 0x59, 0x71, 0xbf, 0xbc, 0x41, 0x6f, 0x78, 0xff, 0xd9, 0xba, 0x53, 0x1b, 0xba, 0x02, 0x4e, + 0x0b, 0x39, 0x9f, 0xaf, 0x1b, 0x59, 0xdb, 0x16, 0xde, 0x07, 0xd3, 0x2c, 0xbd, 0x9a, 0x89, 0x67, + 0xbd, 0xba, 0x5e, 0x94, 0x8d, 0xc0, 0xd9, 0x1b, 0x5c, 0x06, 0x35, 0xc9, 0x55, 0x93, 0xbe, 0x5a, + 0x51, 0xba, 0xfd, 0xc1, 0xa0, 0x7b, 0x16, 0xc7, 0x83, 0x08, 0xb8, 0x00, 0xca, 0x92, 0x76, 0xed, + 0xf6, 0xeb, 0x36, 0xb0, 0xbc, 0xb7, 0xf1, 0x1c, 0x6b, 0x1c, 0x3a, 0xa0, 0x1a, 0xb2, 0x58, 0x26, + 0x5c, 0x6d, 0xbb, 0xac, 0x22, 0x80, 0x36, 0xd1, 0x0b, 0x83, 0x60, 0xfb, 0xe2, 0x7c, 0x2d, 0x81, + 0xd6, 0x1f, 0xbe, 0x04, 0xf8, 0xa1, 0x04, 0x40, 0x90, 0x19, 0x95, 0xab, 0xfe, 0xb5, 0xaa, 0xbb, + 0x37, 0xa8, 0xea, 0xe0, 0x2b, 0x18, 0xfe, 0xd1, 0x0c, 0x20, 0x8e, 0x73, 0xb5, 0x61, 0x1b, 0xd4, + 0x73, 0xdc, 0x46, 0xa2, 0x59, 0x6f, 0x5e, 0x25, 0xd4, 0x73, 0xe4, 0x38, 0x1f, 0xe3, 0x3d, 0x3a, + 0xfd, 0xbe, 0x38, 0x71, 0xa6, 0xce, 0x17, 0x75, 0xde, 0x5f, 0x2c, 0x96, 0x4e, 0xd5, 0x39, 0x53, + 0xe7, 0x9b, 0x3a, 0x1f, 0x2f, 0x17, 0x27, 0xde, 0xd4, 0xb2, 0x0e, 0x7f, 0x05, 0x00, 0x00, 0xff, + 0xff, 0x29, 0x0b, 0xef, 0x6d, 0xe0, 0x06, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.proto index 450b374a19..5e8250b139 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/generated.proto @@ -24,6 +24,7 @@ package k8s.io.kubernetes.pkg.apis.certificates.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". diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/register.go index 7b841c0b54..da2180c9bb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/register.go @@ -39,14 +39,13 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - // addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &CertificateSigningRequest{}, &CertificateSigningRequestList{}, @@ -56,6 +55,7 @@ func addKnownTypes(scheme *runtime.Scheme) { // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } func (obj *CertificateSigningRequest) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.generated.go index 74d67657f7..5c6832b702 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.generated.go @@ -88,11 +88,11 @@ func (x *CertificateSigningRequest) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" + yyq2[3] = true + yyq2[4] = true var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) @@ -109,102 +109,102 @@ func (x *CertificateSigningRequest) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy16 := &x.Status + yy16.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy17 := &x.Status + yy17.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { @@ -220,25 +220,25 @@ func (x *CertificateSigningRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym18 := z.DecBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl19, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl19, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -250,12 +250,12 @@ func (x *CertificateSigningRequest) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -264,47 +264,47 @@ func (x *CertificateSigningRequest) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys20 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = CertificateSigningRequestSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = CertificateSigningRequestStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = CertificateSigningRequestSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = CertificateSigningRequestStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -312,104 +312,104 @@ func (x *CertificateSigningRequest) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = CertificateSigningRequestSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = CertificateSigningRequestStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = CertificateSigningRequestSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = CertificateSigningRequestStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb9 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb9 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -421,39 +421,39 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym32 := z.EncBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Username != "" - yyq2[2] = x.UID != "" - yyq2[3] = len(x.Groups) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [4]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[1] = x.Username != "" + yyq33[2] = x.UID != "" + yyq33[3] = len(x.Groups) != 0 + var yynn33 int + if yyr33 || yy2arr33 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn33 = 1 + for _, b := range yyq33 { if b { - yynn2++ + yynn33++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn33) + yynn33 = 0 } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Request == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Request)) @@ -466,19 +466,19 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Request == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Request)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) @@ -487,23 +487,23 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq33[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("username")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym39 := z.EncBinary() + _ = yym39 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq33[2] { + yym41 := z.EncBinary() + _ = yym41 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) @@ -512,26 +512,26 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq33[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym42 := z.EncBinary() + _ = yym42 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq33[3] { if x.Groups == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym44 := z.EncBinary() + _ = yym44 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -541,15 +541,15 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq33[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("groups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Groups == nil { r.EncodeNil() } else { - yym14 := z.EncBinary() - _ = yym14 + yym45 := z.EncBinary() + _ = yym45 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -557,7 +557,7 @@ func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr33 || yy2arr33 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -570,25 +570,25 @@ func (x *CertificateSigningRequestSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym46 := z.DecBinary() + _ = yym46 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct47 := r.ContainerType() + if yyct47 == codecSelferValueTypeMap1234 { + yyl47 := r.ReadMapStart() + if yyl47 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl47, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct47 == codecSelferValueTypeArray1234 { + yyl47 := r.ReadArrayStart() + if yyl47 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl47, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -600,12 +600,12 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys48Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys48Slc + var yyhl48 bool = l >= 0 + for yyj48 := 0; ; yyj48++ { + if yyhl48 { + if yyj48 >= l { break } } else { @@ -614,20 +614,20 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys48Slc = r.DecodeBytes(yys48Slc, true, true) + yys48 := string(yys48Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys48 { case "request": if r.TryDecodeAsNil() { x.Request = nil } else { - yyv4 := &x.Request - yym5 := z.DecBinary() - _ = yym5 + yyv49 := &x.Request + yym50 := z.DecBinary() + _ = yym50 if false { } else { - *yyv4 = r.DecodeBytes(*(*[]byte)(yyv4), false, false) + *yyv49 = r.DecodeBytes(*(*[]byte)(yyv49), false, false) } } case "username": @@ -646,18 +646,18 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec19 if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv8 := &x.Groups - yym9 := z.DecBinary() - _ = yym9 + yyv53 := &x.Groups + yym54 := z.DecBinary() + _ = yym54 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + z.F.DecSliceStringX(yyv53, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys48) + } // end switch yys48 + } // end for yyj48 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -665,16 +665,16 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj55 int + var yyb55 bool + var yyhl55 bool = l >= 0 + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -682,21 +682,21 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec if r.TryDecodeAsNil() { x.Request = nil } else { - yyv11 := &x.Request - yym12 := z.DecBinary() - _ = yym12 + yyv56 := &x.Request + yym57 := z.DecBinary() + _ = yym57 if false { } else { - *yyv11 = r.DecodeBytes(*(*[]byte)(yyv11), false, false) + *yyv56 = r.DecodeBytes(*(*[]byte)(yyv56), false, false) } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -706,13 +706,13 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec } else { x.Username = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -722,13 +722,13 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec } else { x.UID = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -736,26 +736,26 @@ func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv15 := &x.Groups - yym16 := z.DecBinary() - _ = yym16 + yyv60 := &x.Groups + yym61 := z.DecBinary() + _ = yym61 if false { } else { - z.F.DecSliceStringX(yyv15, false, d) + z.F.DecSliceStringX(yyv60, false, d) } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb10 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb10 { + if yyb55 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj55-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -767,39 +767,39 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym62 := z.EncBinary() + _ = yym62 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = len(x.Certificate) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep63 := !z.EncBinary() + yy2arr63 := z.EncBasicHandle().StructToArray + var yyq63 [2]bool + _, _, _ = yysep63, yyq63, yy2arr63 + const yyr63 bool = false + yyq63[0] = len(x.Conditions) != 0 + yyq63[1] = len(x.Certificate) != 0 + var yynn63 int + if yyr63 || yy2arr63 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn63 = 0 + for _, b := range yyq63 { if b { - yynn2++ + yynn63++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn63) + yynn63 = 0 } - if yyr2 || yy2arr2 { + if yyr63 || yy2arr63 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq63[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym65 := z.EncBinary() + _ = yym65 if false { } else { h.encSliceCertificateSigningRequestCondition(([]CertificateSigningRequestCondition)(x.Conditions), e) @@ -809,15 +809,15 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeNil() } } else { - if yyq2[0] { + if yyq63[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym66 := z.EncBinary() + _ = yym66 if false { } else { h.encSliceCertificateSigningRequestCondition(([]CertificateSigningRequestCondition)(x.Conditions), e) @@ -825,14 +825,14 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) } } } - if yyr2 || yy2arr2 { + if yyr63 || yy2arr63 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq63[1] { if x.Certificate == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Certificate)) @@ -842,15 +842,15 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeNil() } } else { - if yyq2[1] { + if yyq63[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("certificate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Certificate == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym69 := z.EncBinary() + _ = yym69 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Certificate)) @@ -858,7 +858,7 @@ func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) } } } - if yyr2 || yy2arr2 { + if yyr63 || yy2arr63 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -871,25 +871,25 @@ func (x *CertificateSigningRequestStatus) CodecDecodeSelf(d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym70 := z.DecBinary() + _ = yym70 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct71 := r.ContainerType() + if yyct71 == codecSelferValueTypeMap1234 { + yyl71 := r.ReadMapStart() + if yyl71 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl71, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct71 == codecSelferValueTypeArray1234 { + yyl71 := r.ReadArrayStart() + if yyl71 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl71, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -901,12 +901,12 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromMap(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys72Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys72Slc + var yyhl72 bool = l >= 0 + for yyj72 := 0; ; yyj72++ { + if yyhl72 { + if yyj72 >= l { break } } else { @@ -915,38 +915,38 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromMap(l int, d *codec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys72Slc = r.DecodeBytes(yys72Slc, true, true) + yys72 := string(yys72Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys72 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv73 := &x.Conditions + yym74 := z.DecBinary() + _ = yym74 if false { } else { - h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv4), d) + h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv73), d) } } case "certificate": if r.TryDecodeAsNil() { x.Certificate = nil } else { - yyv6 := &x.Certificate - yym7 := z.DecBinary() - _ = yym7 + yyv75 := &x.Certificate + yym76 := z.DecBinary() + _ = yym76 if false { } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) + *yyv75 = r.DecodeBytes(*(*[]byte)(yyv75), false, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys72) + } // end switch yys72 + } // end for yyj72 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -954,16 +954,16 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj77 int + var yyb77 bool + var yyhl77 bool = l >= 0 + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb8 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb8 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -971,21 +971,21 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *cod if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv9 := &x.Conditions - yym10 := z.DecBinary() - _ = yym10 + yyv78 := &x.Conditions + yym79 := z.DecBinary() + _ = yym79 if false { } else { - h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv9), d) + h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv78), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb8 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb8 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -993,26 +993,26 @@ func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *cod if r.TryDecodeAsNil() { x.Certificate = nil } else { - yyv11 := &x.Certificate - yym12 := z.DecBinary() - _ = yym12 + yyv80 := &x.Certificate + yym81 := z.DecBinary() + _ = yym81 if false { } else { - *yyv11 = r.DecodeBytes(*(*[]byte)(yyv11), false, false) + *yyv80 = r.DecodeBytes(*(*[]byte)(yyv80), false, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb8 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb8 { + if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj77-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1021,8 +1021,8 @@ func (x RequestConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym82 := z.EncBinary() + _ = yym82 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -1034,8 +1034,8 @@ func (x *RequestConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym83 := z.DecBinary() + _ = yym83 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -1050,33 +1050,33 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym84 := z.EncBinary() + _ = yym84 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Reason != "" - yyq2[2] = x.Message != "" - yyq2[3] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep85 := !z.EncBinary() + yy2arr85 := z.EncBasicHandle().StructToArray + var yyq85 [4]bool + _, _, _ = yysep85, yyq85, yy2arr85 + const yyr85 bool = false + yyq85[1] = x.Reason != "" + yyq85[2] = x.Message != "" + yyq85[3] = true + var yynn85 int + if yyr85 || yy2arr85 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn85 = 1 + for _, b := range yyq85 { if b { - yynn2++ + yynn85++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn85) + yynn85 = 0 } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -1085,11 +1085,11 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq85[1] { + yym88 := z.EncBinary() + _ = yym88 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -1098,23 +1098,23 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq85[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym89 := z.EncBinary() + _ = yym89 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq85[2] { + yym91 := z.EncBinary() + _ = yym91 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -1123,56 +1123,56 @@ func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encode r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq85[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym92 := z.EncBinary() + _ = yym92 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.LastUpdateTime - yym14 := z.EncBinary() - _ = yym14 + if yyq85[3] { + yy94 := &x.LastUpdateTime + yym95 := z.EncBinary() + _ = yym95 if false { - } else if z.HasExtensions() && z.EncExt(yy13) { - } else if yym14 { - z.EncBinaryMarshal(yy13) - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(yy13) + } else if z.HasExtensions() && z.EncExt(yy94) { + } else if yym95 { + z.EncBinaryMarshal(yy94) + } else if !yym95 && z.IsJSONHandle() { + z.EncJSONMarshal(yy94) } else { - z.EncFallback(yy13) + z.EncFallback(yy94) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq85[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy15 := &x.LastUpdateTime - yym16 := z.EncBinary() - _ = yym16 + yy96 := &x.LastUpdateTime + yym97 := z.EncBinary() + _ = yym97 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy96) { + } else if yym97 { + z.EncBinaryMarshal(yy96) + } else if !yym97 && z.IsJSONHandle() { + z.EncJSONMarshal(yy96) } else { - z.EncFallback(yy15) + z.EncFallback(yy96) } } } - if yyr2 || yy2arr2 { + if yyr85 || yy2arr85 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1185,25 +1185,25 @@ func (x *CertificateSigningRequestCondition) CodecDecodeSelf(d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym98 := z.DecBinary() + _ = yym98 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl99, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl99, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1215,12 +1215,12 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { break } } else { @@ -1229,10 +1229,10 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *co } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys100 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -1255,23 +1255,23 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.LastUpdateTime = pkg1_unversioned.Time{} } else { - yyv7 := &x.LastUpdateTime - yym8 := z.DecBinary() - _ = yym8 + yyv104 := &x.LastUpdateTime + yym105 := z.DecBinary() + _ = yym105 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if yym8 { - z.DecBinaryUnmarshal(yyv7) - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv104) { + } else if yym105 { + z.DecBinaryUnmarshal(yyv104) + } else if !yym105 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv104) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv104, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1279,16 +1279,16 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj106 int + var yyb106 bool + var yyhl106 bool = l >= 0 + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1298,13 +1298,13 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * } else { x.Type = RequestConditionType(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1314,13 +1314,13 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * } else { x.Reason = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1330,13 +1330,13 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * } else { x.Message = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1344,31 +1344,31 @@ func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.LastUpdateTime = pkg1_unversioned.Time{} } else { - yyv13 := &x.LastUpdateTime - yym14 := z.DecBinary() - _ = yym14 + yyv110 := &x.LastUpdateTime + yym111 := z.DecBinary() + _ = yym111 if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if yym14 { - z.DecBinaryUnmarshal(yyv13) - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) + } else if z.HasExtensions() && z.DecExt(yyv110) { + } else if yym111 { + z.DecBinaryUnmarshal(yyv110) + } else if !yym111 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv110) } else { - z.DecFallback(yyv13, false) + z.DecFallback(yyv110, false) } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb9 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb9 { + if yyb106 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj106-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1380,146 +1380,139 @@ func (x *CertificateSigningRequestList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym112 := z.EncBinary() + _ = yym112 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Items) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 + var yynn113 int + if yyr113 || yy2arr113 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn113 = 1 + for _, b := range yyq113 { if b { - yynn2++ + yynn113++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn113) + yynn113 = 0 } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq113[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym116 := z.EncBinary() + _ = yym116 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Items == nil { - r.EncodeNil() + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq113[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() + yym119 := z.EncBinary() + _ = yym119 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq113[2] { + yy121 := &x.ListMeta + yym122 := z.EncBinary() + _ = yym122 if false { + } else if z.HasExtensions() && z.EncExt(yy121) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy121) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq113[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy123 := &x.ListMeta + yym124 := z.EncBinary() + _ = yym124 if false { + } else if z.HasExtensions() && z.EncExt(yy123) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy123) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym126 := z.EncBinary() + _ = yym126 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym127 := z.EncBinary() + _ = yym127 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1532,25 +1525,25 @@ func (x *CertificateSigningRequestList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym128 := z.DecBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct129 := r.ContainerType() + if yyct129 == codecSelferValueTypeMap1234 { + yyl129 := r.ReadMapStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl129, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct129 == codecSelferValueTypeArray1234 { + yyl129 := r.ReadArrayStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl129, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1562,12 +1555,12 @@ func (x *CertificateSigningRequestList) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys130Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys130Slc + var yyhl130 bool = l >= 0 + for yyj130 := 0; ; yyj130++ { + if yyhl130 { + if yyj130 >= l { break } } else { @@ -1576,51 +1569,51 @@ func (x *CertificateSigningRequestList) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys130Slc = r.DecodeBytes(yys130Slc, true, true) + yys130 := string(yys130Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys130 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv133 := &x.ListMeta + yym134 := z.DecBinary() + _ = yym134 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv133) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv133, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv135 := &x.Items + yym136 := z.DecBinary() + _ = yym136 if false { } else { - h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv6), d) + h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv135), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys130) + } // end switch yys130 + } // end for yyj130 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1628,98 +1621,98 @@ func (x *CertificateSigningRequestList) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj137 int + var yyb137 bool + var yyhl137 bool = l >= 0 + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv140 := &x.ListMeta + yym141 := z.DecBinary() + _ = yym141 + if false { + } else if z.HasExtensions() && z.DecExt(yyv140) { + } else { + z.DecFallback(yyv140, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv142 := &x.Items + yym143 := z.DecBinary() + _ = yym143 + if false { + } else { + h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv142), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj137++ + if yyhl137 { + yyb137 = yyj137 > l } else { - yyb10 = r.CheckBreak() + yyb137 = r.CheckBreak() } - if yyb10 { + if yyb137 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj137-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1729,10 +1722,10 @@ func (x codecSelfer1234) encSliceCertificateSigningRequestCondition(v []Certific z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv144 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy145 := &yyv144 + yy145.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1742,86 +1735,83 @@ func (x codecSelfer1234) decSliceCertificateSigningRequestCondition(v *[]Certifi z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CertificateSigningRequestCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv146 := *v + yyh146, yyl146 := z.DecSliceHelperStart() + var yyc146 bool + if yyl146 == 0 { + if yyv146 == nil { + yyv146 = []CertificateSigningRequestCondition{} + yyc146 = true + } else if len(yyv146) != 0 { + yyv146 = yyv146[:0] + yyc146 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl146 > 0 { + var yyrr146, yyrl146 int + var yyrt146 bool + if yyl146 > cap(yyv146) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg146 := len(yyv146) > 0 + yyv2146 := yyv146 + yyrl146, yyrt146 = z.DecInferLen(yyl146, z.DecBasicHandle().MaxInitLen, 72) + if yyrt146 { + if yyrl146 <= cap(yyv146) { + yyv146 = yyv146[:yyrl146] } else { - yyv1 = make([]CertificateSigningRequestCondition, yyrl1) + yyv146 = make([]CertificateSigningRequestCondition, yyrl146) } } else { - yyv1 = make([]CertificateSigningRequestCondition, yyrl1) + yyv146 = make([]CertificateSigningRequestCondition, yyrl146) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc146 = true + yyrr146 = len(yyv146) + if yyrg146 { + copy(yyv146, yyv2146) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl146 != len(yyv146) { + yyv146 = yyv146[:yyl146] + yyc146 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj146 := 0 + for ; yyj146 < yyrr146; yyj146++ { + yyh146.ElemContainerState(yyj146) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequestCondition{} + yyv146[yyj146] = CertificateSigningRequestCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv147 := &yyv146[yyj146] + yyv147.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CertificateSigningRequestCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt146 { + for ; yyj146 < yyl146; yyj146++ { + yyv146 = append(yyv146, CertificateSigningRequestCondition{}) + yyh146.ElemContainerState(yyj146) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequestCondition{} + yyv146[yyj146] = CertificateSigningRequestCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv148 := &yyv146[yyj146] + yyv148.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj146 := 0 + for ; !r.CheckBreak(); yyj146++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CertificateSigningRequestCondition{}) // var yyz1 CertificateSigningRequestCondition - yyc1 = true + if yyj146 >= len(yyv146) { + yyv146 = append(yyv146, CertificateSigningRequestCondition{}) // var yyz146 CertificateSigningRequestCondition + yyc146 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh146.ElemContainerState(yyj146) + if yyj146 < len(yyv146) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequestCondition{} + yyv146[yyj146] = CertificateSigningRequestCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv149 := &yyv146[yyj146] + yyv149.CodecDecodeSelf(d) } } else { @@ -1829,17 +1819,17 @@ func (x codecSelfer1234) decSliceCertificateSigningRequestCondition(v *[]Certifi } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CertificateSigningRequestCondition{} - yyc1 = true + if yyj146 < len(yyv146) { + yyv146 = yyv146[:yyj146] + yyc146 = true + } else if yyj146 == 0 && yyv146 == nil { + yyv146 = []CertificateSigningRequestCondition{} + yyc146 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh146.End() + if yyc146 { + *v = yyv146 } } @@ -1848,10 +1838,10 @@ func (x codecSelfer1234) encSliceCertificateSigningRequest(v []CertificateSignin z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv150 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy151 := &yyv150 + yy151.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1861,86 +1851,83 @@ func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigni z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CertificateSigningRequest{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv152 := *v + yyh152, yyl152 := z.DecSliceHelperStart() + var yyc152 bool + if yyl152 == 0 { + if yyv152 == nil { + yyv152 = []CertificateSigningRequest{} + yyc152 = true + } else if len(yyv152) != 0 { + yyv152 = yyv152[:0] + yyc152 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl152 > 0 { + var yyrr152, yyrl152 int + var yyrt152 bool + if yyl152 > cap(yyv152) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 368) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg152 := len(yyv152) > 0 + yyv2152 := yyv152 + yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 384) + if yyrt152 { + if yyrl152 <= cap(yyv152) { + yyv152 = yyv152[:yyrl152] } else { - yyv1 = make([]CertificateSigningRequest, yyrl1) + yyv152 = make([]CertificateSigningRequest, yyrl152) } } else { - yyv1 = make([]CertificateSigningRequest, yyrl1) + yyv152 = make([]CertificateSigningRequest, yyrl152) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc152 = true + yyrr152 = len(yyv152) + if yyrg152 { + copy(yyv152, yyv2152) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl152 != len(yyv152) { + yyv152 = yyv152[:yyl152] + yyc152 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj152 := 0 + for ; yyj152 < yyrr152; yyj152++ { + yyh152.ElemContainerState(yyj152) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequest{} + yyv152[yyj152] = CertificateSigningRequest{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv153 := &yyv152[yyj152] + yyv153.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CertificateSigningRequest{}) - yyh1.ElemContainerState(yyj1) + if yyrt152 { + for ; yyj152 < yyl152; yyj152++ { + yyv152 = append(yyv152, CertificateSigningRequest{}) + yyh152.ElemContainerState(yyj152) if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequest{} + yyv152[yyj152] = CertificateSigningRequest{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv154 := &yyv152[yyj152] + yyv154.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj152 := 0 + for ; !r.CheckBreak(); yyj152++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CertificateSigningRequest{}) // var yyz1 CertificateSigningRequest - yyc1 = true + if yyj152 >= len(yyv152) { + yyv152 = append(yyv152, CertificateSigningRequest{}) // var yyz152 CertificateSigningRequest + yyc152 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh152.ElemContainerState(yyj152) + if yyj152 < len(yyv152) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CertificateSigningRequest{} + yyv152[yyj152] = CertificateSigningRequest{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv155 := &yyv152[yyj152] + yyv155.CodecDecodeSelf(d) } } else { @@ -1948,16 +1935,16 @@ func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigni } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CertificateSigningRequest{} - yyc1 = true + if yyj152 < len(yyv152) { + yyv152 = yyv152[:yyj152] + yyc152 = true + } else if yyj152 == 0 && yyv152 == nil { + yyv152 = []CertificateSigningRequest{} + yyc152 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh152.End() + if yyc152 { + *v = yyv152 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.go index 5f046ba85e..b882f1e2c6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/types.go @@ -81,5 +81,5 @@ type CertificateSigningRequestList struct { unversioned.TypeMeta `json:",inline"` unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []CertificateSigningRequest `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` + Items []CertificateSigningRequest `json:"items" protobuf:"bytes,2,rep,name=items"` } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go similarity index 97% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go index 454a98bf3b..76c51d5466 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go @@ -24,10 +24,17 @@ import ( api "k8s.io/kubernetes/pkg/api" certificates "k8s.io/kubernetes/pkg/apis/certificates" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_CertificateSigningRequest_To_certificates_CertificateSigningRequest, Convert_certificates_CertificateSigningRequest_To_v1alpha1_CertificateSigningRequest, Convert_v1alpha1_CertificateSigningRequestCondition_To_certificates_CertificateSigningRequestCondition, @@ -38,10 +45,7 @@ func init() { Convert_certificates_CertificateSigningRequestSpec_To_v1alpha1_CertificateSigningRequestSpec, Convert_v1alpha1_CertificateSigningRequestStatus_To_certificates_CertificateSigningRequestStatus, Convert_certificates_CertificateSigningRequestStatus_To_v1alpha1_CertificateSigningRequestStatus, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1alpha1_CertificateSigningRequest_To_certificates_CertificateSigningRequest(in *CertificateSigningRequest, out *certificates.CertificateSigningRequest, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..ce2e16969e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,145 @@ +// +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/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_CertificateSigningRequest, InType: reflect.TypeOf(&CertificateSigningRequest{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_CertificateSigningRequestCondition, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_CertificateSigningRequestList, InType: reflect.TypeOf(&CertificateSigningRequestList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_CertificateSigningRequestSpec, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_CertificateSigningRequestStatus, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})}, + ) +} + +func DeepCopy_v1alpha1_CertificateSigningRequest(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequest) + out := out.(*CertificateSigningRequest) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1alpha1_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1alpha1_CertificateSigningRequestStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestCondition) + out := out.(*CertificateSigningRequestCondition) + out.Type = in.Type + out.Reason = in.Reason + out.Message = in.Message + out.LastUpdateTime = in.LastUpdateTime.DeepCopy() + return nil + } +} + +func DeepCopy_v1alpha1_CertificateSigningRequestList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestList) + out := out.(*CertificateSigningRequestList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CertificateSigningRequest, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_CertificateSigningRequest(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_CertificateSigningRequestSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestSpec) + out := out.(*CertificateSigningRequestSpec) + if in.Request != nil { + in, out := &in.Request, &out.Request + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Request = nil + } + out.Username = in.Username + out.UID = in.UID + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Groups = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestStatus) + out := out.(*CertificateSigningRequestStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]CertificateSigningRequestCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Certificate != nil { + in, out := &in.Certificate, &out.Certificate + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Certificate = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/zz_generated.deepcopy.go new file mode 100644 index 0000000000..764271bfa5 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/certificates/zz_generated.deepcopy.go @@ -0,0 +1,145 @@ +// +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 certificates + +import ( + api "k8s.io/kubernetes/pkg/api" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_certificates_CertificateSigningRequest, InType: reflect.TypeOf(&CertificateSigningRequest{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestCondition, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestList, InType: reflect.TypeOf(&CertificateSigningRequestList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestSpec, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestStatus, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})}, + ) +} + +func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequest) + out := out.(*CertificateSigningRequest) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_certificates_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_certificates_CertificateSigningRequestStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_certificates_CertificateSigningRequestCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestCondition) + out := out.(*CertificateSigningRequestCondition) + out.Type = in.Type + out.Reason = in.Reason + out.Message = in.Message + out.LastUpdateTime = in.LastUpdateTime.DeepCopy() + return nil + } +} + +func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestList) + out := out.(*CertificateSigningRequestList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CertificateSigningRequest, len(*in)) + for i := range *in { + if err := DeepCopy_certificates_CertificateSigningRequest(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestSpec) + out := out.(*CertificateSigningRequestSpec) + if in.Request != nil { + in, out := &in.Request, &out.Request + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Request = nil + } + out.Username = in.Username + out.UID = in.UID + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Groups = nil + } + return nil + } +} + +func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CertificateSigningRequestStatus) + out := out.(*CertificateSigningRequestStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]CertificateSigningRequestCondition, len(*in)) + for i := range *in { + if err := DeepCopy_certificates_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Certificate != nil { + in, out := &in.Certificate, &out.Certificate + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Certificate = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go deleted file mode 100644 index 37615c4da5..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go +++ /dev/null @@ -1,299 +0,0 @@ -// +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 componentconfig - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_componentconfig_IPVar, - DeepCopy_componentconfig_KubeControllerManagerConfiguration, - DeepCopy_componentconfig_KubeProxyConfiguration, - DeepCopy_componentconfig_KubeSchedulerConfiguration, - DeepCopy_componentconfig_KubeletConfiguration, - DeepCopy_componentconfig_LeaderElectionConfiguration, - DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration, - DeepCopy_componentconfig_PortRangeVar, - DeepCopy_componentconfig_VolumeConfiguration, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_componentconfig_IPVar(in IPVar, out *IPVar, c *conversion.Cloner) error { - if in.Val != nil { - in, out := in.Val, &out.Val - *out = new(string) - **out = *in - } else { - out.Val = nil - } - return nil -} - -func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in KubeControllerManagerConfiguration, out *KubeControllerManagerConfiguration, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Port = in.Port - out.Address = in.Address - out.CloudProvider = in.CloudProvider - out.CloudConfigFile = in.CloudConfigFile - out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs - out.ConcurrentRSSyncs = in.ConcurrentRSSyncs - out.ConcurrentRCSyncs = in.ConcurrentRCSyncs - out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs - out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs - out.ConcurrentDaemonSetSyncs = in.ConcurrentDaemonSetSyncs - out.ConcurrentJobSyncs = in.ConcurrentJobSyncs - out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs - out.ConcurrentSATokenSyncs = in.ConcurrentSATokenSyncs - out.LookupCacheSizeForRC = in.LookupCacheSizeForRC - out.LookupCacheSizeForRS = in.LookupCacheSizeForRS - out.LookupCacheSizeForDaemonSet = in.LookupCacheSizeForDaemonSet - out.ServiceSyncPeriod = in.ServiceSyncPeriod - out.NodeSyncPeriod = in.NodeSyncPeriod - out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod - out.NamespaceSyncPeriod = in.NamespaceSyncPeriod - out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod - out.MinResyncPeriod = in.MinResyncPeriod - out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold - out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod - out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod - out.PodEvictionTimeout = in.PodEvictionTimeout - out.DeletingPodsQps = in.DeletingPodsQps - out.DeletingPodsBurst = in.DeletingPodsBurst - out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod - out.RegisterRetryCount = in.RegisterRetryCount - out.NodeStartupGracePeriod = in.NodeStartupGracePeriod - out.NodeMonitorPeriod = in.NodeMonitorPeriod - out.ServiceAccountKeyFile = in.ServiceAccountKeyFile - out.EnableProfiling = in.EnableProfiling - out.ClusterName = in.ClusterName - out.ClusterCIDR = in.ClusterCIDR - out.ServiceCIDR = in.ServiceCIDR - out.NodeCIDRMaskSize = in.NodeCIDRMaskSize - out.AllocateNodeCIDRs = in.AllocateNodeCIDRs - out.ConfigureCloudRoutes = in.ConfigureCloudRoutes - out.RootCAFile = in.RootCAFile - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.LeaderElection = in.LeaderElection - out.VolumeConfiguration = in.VolumeConfiguration - out.ControllerStartInterval = in.ControllerStartInterval - out.EnableGarbageCollector = in.EnableGarbageCollector - return nil -} - -func DeepCopy_componentconfig_KubeProxyConfiguration(in KubeProxyConfiguration, out *KubeProxyConfiguration, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.BindAddress = in.BindAddress - out.ClusterCIDR = in.ClusterCIDR - out.HealthzBindAddress = in.HealthzBindAddress - out.HealthzPort = in.HealthzPort - out.HostnameOverride = in.HostnameOverride - if in.IPTablesMasqueradeBit != nil { - in, out := in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit - *out = new(int32) - **out = *in - } else { - out.IPTablesMasqueradeBit = nil - } - out.IPTablesSyncPeriod = in.IPTablesSyncPeriod - out.KubeconfigPath = in.KubeconfigPath - out.MasqueradeAll = in.MasqueradeAll - out.Master = in.Master - if in.OOMScoreAdj != nil { - in, out := in.OOMScoreAdj, &out.OOMScoreAdj - *out = new(int32) - **out = *in - } else { - out.OOMScoreAdj = nil - } - out.Mode = in.Mode - out.PortRange = in.PortRange - out.ResourceContainer = in.ResourceContainer - out.UDPIdleTimeout = in.UDPIdleTimeout - out.ConntrackMax = in.ConntrackMax - out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout - return nil -} - -func DeepCopy_componentconfig_KubeSchedulerConfiguration(in KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Port = in.Port - out.Address = in.Address - out.AlgorithmProvider = in.AlgorithmProvider - out.PolicyConfigFile = in.PolicyConfigFile - out.EnableProfiling = in.EnableProfiling - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.SchedulerName = in.SchedulerName - out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight - out.FailureDomains = in.FailureDomains - out.LeaderElection = in.LeaderElection - return nil -} - -func DeepCopy_componentconfig_KubeletConfiguration(in KubeletConfiguration, out *KubeletConfiguration, c *conversion.Cloner) error { - out.Config = in.Config - out.SyncFrequency = in.SyncFrequency - out.FileCheckFrequency = in.FileCheckFrequency - out.HTTPCheckFrequency = in.HTTPCheckFrequency - out.ManifestURL = in.ManifestURL - out.ManifestURLHeader = in.ManifestURLHeader - out.EnableServer = in.EnableServer - out.Address = in.Address - out.Port = in.Port - out.ReadOnlyPort = in.ReadOnlyPort - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.CertDirectory = in.CertDirectory - out.HostnameOverride = in.HostnameOverride - out.PodInfraContainerImage = in.PodInfraContainerImage - out.DockerEndpoint = in.DockerEndpoint - out.RootDirectory = in.RootDirectory - out.SeccompProfileRoot = in.SeccompProfileRoot - out.AllowPrivileged = in.AllowPrivileged - out.HostNetworkSources = in.HostNetworkSources - out.HostPIDSources = in.HostPIDSources - out.HostIPCSources = in.HostIPCSources - out.RegistryPullQPS = in.RegistryPullQPS - out.RegistryBurst = in.RegistryBurst - out.EventRecordQPS = in.EventRecordQPS - out.EventBurst = in.EventBurst - out.EnableDebuggingHandlers = in.EnableDebuggingHandlers - out.MinimumGCAge = in.MinimumGCAge - out.MaxPerPodContainerCount = in.MaxPerPodContainerCount - out.MaxContainerCount = in.MaxContainerCount - out.CAdvisorPort = in.CAdvisorPort - out.HealthzPort = in.HealthzPort - out.HealthzBindAddress = in.HealthzBindAddress - out.OOMScoreAdj = in.OOMScoreAdj - out.RegisterNode = in.RegisterNode - out.ClusterDomain = in.ClusterDomain - out.MasterServiceNamespace = in.MasterServiceNamespace - out.ClusterDNS = in.ClusterDNS - out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout - out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency - out.ImageMinimumGCAge = in.ImageMinimumGCAge - out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent - out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent - out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB - out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod - out.NetworkPluginName = in.NetworkPluginName - out.NetworkPluginDir = in.NetworkPluginDir - out.VolumePluginDir = in.VolumePluginDir - out.CloudProvider = in.CloudProvider - out.CloudConfigFile = in.CloudConfigFile - out.KubeletCgroups = in.KubeletCgroups - out.RuntimeCgroups = in.RuntimeCgroups - out.SystemCgroups = in.SystemCgroups - out.CgroupRoot = in.CgroupRoot - out.ContainerRuntime = in.ContainerRuntime - out.RuntimeRequestTimeout = in.RuntimeRequestTimeout - out.RktPath = in.RktPath - out.RktAPIEndpoint = in.RktAPIEndpoint - out.RktStage1Image = in.RktStage1Image - out.LockFilePath = in.LockFilePath - out.ExitOnLockContention = in.ExitOnLockContention - out.ConfigureCBR0 = in.ConfigureCBR0 - out.HairpinMode = in.HairpinMode - out.BabysitDaemons = in.BabysitDaemons - out.MaxPods = in.MaxPods - out.NvidiaGPUs = in.NvidiaGPUs - out.DockerExecHandlerName = in.DockerExecHandlerName - out.PodCIDR = in.PodCIDR - out.ResolverConfig = in.ResolverConfig - out.CPUCFSQuota = in.CPUCFSQuota - out.Containerized = in.Containerized - out.MaxOpenFiles = in.MaxOpenFiles - out.ReconcileCIDR = in.ReconcileCIDR - out.RegisterSchedulable = in.RegisterSchedulable - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.SerializeImagePulls = in.SerializeImagePulls - out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay - out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency - out.NodeIP = in.NodeIP - if in.NodeLabels != nil { - in, out := in.NodeLabels, &out.NodeLabels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.NodeLabels = nil - } - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - out.EnableCustomMetrics = in.EnableCustomMetrics - out.EvictionHard = in.EvictionHard - out.EvictionSoft = in.EvictionSoft - out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod - out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod - out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod - out.PodsPerCore = in.PodsPerCore - out.EnableControllerAttachDetach = in.EnableControllerAttachDetach - return nil -} - -func DeepCopy_componentconfig_LeaderElectionConfiguration(in LeaderElectionConfiguration, out *LeaderElectionConfiguration, c *conversion.Cloner) error { - out.LeaderElect = in.LeaderElect - out.LeaseDuration = in.LeaseDuration - out.RenewDeadline = in.RenewDeadline - out.RetryPeriod = in.RetryPeriod - return nil -} - -func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in PersistentVolumeRecyclerConfiguration, out *PersistentVolumeRecyclerConfiguration, c *conversion.Cloner) error { - out.MaximumRetry = in.MaximumRetry - out.MinimumTimeoutNFS = in.MinimumTimeoutNFS - out.PodTemplateFilePathNFS = in.PodTemplateFilePathNFS - out.IncrementTimeoutNFS = in.IncrementTimeoutNFS - out.PodTemplateFilePathHostPath = in.PodTemplateFilePathHostPath - out.MinimumTimeoutHostPath = in.MinimumTimeoutHostPath - out.IncrementTimeoutHostPath = in.IncrementTimeoutHostPath - return nil -} - -func DeepCopy_componentconfig_PortRangeVar(in PortRangeVar, out *PortRangeVar, c *conversion.Cloner) error { - if in.Val != nil { - in, out := in.Val, &out.Val - *out = new(string) - **out = *in - } else { - out.Val = nil - } - return nil -} - -func DeepCopy_componentconfig_VolumeConfiguration(in VolumeConfiguration, out *VolumeConfiguration, c *conversion.Cloner) error { - out.EnableHostPathProvisioning = in.EnableHostPathProvisioning - out.EnableDynamicProvisioning = in.EnableDynamicProvisioning - out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration - out.FlexVolumePluginDir = in.FlexVolumePluginDir - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go index 1a8b0cd126..ea591afadf 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go @@ -114,7 +114,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - componentconfig.AddToScheme(api.Scheme) + if err := componentconfig.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -123,7 +126,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1alpha1.SchemeGroupVersion: - v1alpha1.AddToScheme(api.Scheme) + if err := v1alpha1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go index 599a44eb1f..199f5b5d7c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go @@ -21,9 +21,10 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // GroupName is the group name use in this package const GroupName = "componentconfig" @@ -41,10 +42,16 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { // TODO this will get cleaned up with the scheme types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &KubeProxyConfiguration{}, &KubeSchedulerConfiguration{}, + &KubeletConfiguration{}, ) + return nil } + +func (obj *KubeProxyConfiguration) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } +func (obj *KubeSchedulerConfiguration) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } +func (obj *KubeletConfiguration) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go index c9fd4848f0..093ad58b4b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go @@ -26,6 +26,7 @@ import ( "fmt" codec1978 "github.com/ugorji/go/codec" pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" + pkg2_config "k8s.io/kubernetes/pkg/util/config" "reflect" "runtime" time "time" @@ -62,8 +63,9 @@ func init() { } if false { // reference the types, but skip this branch at build/run time var v0 pkg1_unversioned.TypeMeta - var v1 time.Duration - _, _ = v0, v1 + var v1 pkg2_config.ConfigurationMap + var v2 time.Duration + _, _, _ = v0, v1, v2 } } @@ -81,16 +83,16 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [19]bool + var yyq2 [20]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[17] = x.Kind != "" - yyq2[18] = x.APIVersion != "" + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(19) + r.EncodeArrayStart(20) } else { - yynn2 = 17 + yynn2 = 18 for _, b := range yyq2 { if b { yynn2++ @@ -101,8 +103,58 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) + yym10 := z.EncBinary() + _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress)) @@ -111,8 +163,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bindAddress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym11 := z.EncBinary() + _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress)) @@ -120,8 +172,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym13 := z.EncBinary() + _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) @@ -130,8 +182,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym14 := z.EncBinary() + _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) @@ -139,8 +191,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym16 := z.EncBinary() + _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) @@ -149,8 +201,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("healthzBindAddress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym17 := z.EncBinary() + _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) @@ -158,8 +210,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym19 := z.EncBinary() + _ = yym19 if false { } else { r.EncodeInt(int64(x.HealthzPort)) @@ -168,8 +220,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym20 := z.EncBinary() + _ = yym20 if false { } else { r.EncodeInt(int64(x.HealthzPort)) @@ -177,8 +229,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym22 := z.EncBinary() + _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) @@ -187,8 +239,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostnameOverride")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym23 := z.EncBinary() + _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) @@ -199,12 +251,12 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.IPTablesMasqueradeBit == nil { r.EncodeNil() } else { - yy19 := *x.IPTablesMasqueradeBit - yym20 := z.EncBinary() - _ = yym20 + yy25 := *x.IPTablesMasqueradeBit + yym26 := z.EncBinary() + _ = yym26 if false { } else { - r.EncodeInt(int64(yy19)) + r.EncodeInt(int64(yy25)) } } } else { @@ -214,46 +266,46 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.IPTablesMasqueradeBit == nil { r.EncodeNil() } else { - yy21 := *x.IPTablesMasqueradeBit - yym22 := z.EncBinary() - _ = yym22 + yy27 := *x.IPTablesMasqueradeBit + yym28 := z.EncBinary() + _ = yym28 if false { } else { - r.EncodeInt(int64(yy21)) + r.EncodeInt(int64(yy27)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy24 := &x.IPTablesSyncPeriod - yym25 := z.EncBinary() - _ = yym25 + yy30 := &x.IPTablesSyncPeriod + yym31 := z.EncBinary() + _ = yym31 if false { - } else if z.HasExtensions() && z.EncExt(yy24) { - } else if !yym25 && z.IsJSONHandle() { - z.EncJSONMarshal(yy24) + } else if z.HasExtensions() && z.EncExt(yy30) { + } else if !yym31 && z.IsJSONHandle() { + z.EncJSONMarshal(yy30) } else { - z.EncFallback(yy24) + z.EncFallback(yy30) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iptablesSyncPeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy26 := &x.IPTablesSyncPeriod - yym27 := z.EncBinary() - _ = yym27 + yy32 := &x.IPTablesSyncPeriod + yym33 := z.EncBinary() + _ = yym33 if false { - } else if z.HasExtensions() && z.EncExt(yy26) { - } else if !yym27 && z.IsJSONHandle() { - z.EncJSONMarshal(yy26) + } else if z.HasExtensions() && z.EncExt(yy32) { + } else if !yym33 && z.IsJSONHandle() { + z.EncJSONMarshal(yy32) } else { - z.EncFallback(yy26) + z.EncFallback(yy32) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym29 := z.EncBinary() - _ = yym29 + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) @@ -262,8 +314,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeconfigPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym30 := z.EncBinary() - _ = yym30 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) @@ -271,8 +323,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym32 := z.EncBinary() - _ = yym32 + yym38 := z.EncBinary() + _ = yym38 if false { } else { r.EncodeBool(bool(x.MasqueradeAll)) @@ -281,8 +333,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("masqueradeAll")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym33 := z.EncBinary() - _ = yym33 + yym39 := z.EncBinary() + _ = yym39 if false { } else { r.EncodeBool(bool(x.MasqueradeAll)) @@ -290,8 +342,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym35 := z.EncBinary() - _ = yym35 + yym41 := z.EncBinary() + _ = yym41 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Master)) @@ -300,8 +352,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("master")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 + yym42 := z.EncBinary() + _ = yym42 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Master)) @@ -312,12 +364,12 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.OOMScoreAdj == nil { r.EncodeNil() } else { - yy38 := *x.OOMScoreAdj - yym39 := z.EncBinary() - _ = yym39 + yy44 := *x.OOMScoreAdj + yym45 := z.EncBinary() + _ = yym45 if false { } else { - r.EncodeInt(int64(yy38)) + r.EncodeInt(int64(yy44)) } } } else { @@ -327,12 +379,12 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.OOMScoreAdj == nil { r.EncodeNil() } else { - yy40 := *x.OOMScoreAdj - yym41 := z.EncBinary() - _ = yym41 + yy46 := *x.OOMScoreAdj + yym47 := z.EncBinary() + _ = yym47 if false { } else { - r.EncodeInt(int64(yy40)) + r.EncodeInt(int64(yy46)) } } } @@ -347,8 +399,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym46 := z.EncBinary() - _ = yym46 + yym50 := z.EncBinary() + _ = yym50 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) @@ -357,8 +409,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("portRange")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym47 := z.EncBinary() - _ = yym47 + yym51 := z.EncBinary() + _ = yym51 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) @@ -366,18 +418,18 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym49 := z.EncBinary() - _ = yym49 + yym53 := z.EncBinary() + _ = yym53 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) + r.EncodeString(codecSelferC_UTF81234, string("resourceContainer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym50 := z.EncBinary() - _ = yym50 + yym54 := z.EncBinary() + _ = yym54 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) @@ -385,35 +437,35 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy52 := &x.UDPIdleTimeout - yym53 := z.EncBinary() - _ = yym53 + yy56 := &x.UDPIdleTimeout + yym57 := z.EncBinary() + _ = yym57 if false { - } else if z.HasExtensions() && z.EncExt(yy52) { - } else if !yym53 && z.IsJSONHandle() { - z.EncJSONMarshal(yy52) + } else if z.HasExtensions() && z.EncExt(yy56) { + } else if !yym57 && z.IsJSONHandle() { + z.EncJSONMarshal(yy56) } else { - z.EncFallback(yy52) + z.EncFallback(yy56) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("udpTimeoutMilliseconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy54 := &x.UDPIdleTimeout - yym55 := z.EncBinary() - _ = yym55 + yy58 := &x.UDPIdleTimeout + yym59 := z.EncBinary() + _ = yym59 if false { - } else if z.HasExtensions() && z.EncExt(yy54) { - } else if !yym55 && z.IsJSONHandle() { - z.EncJSONMarshal(yy54) + } else if z.HasExtensions() && z.EncExt(yy58) { + } else if !yym59 && z.IsJSONHandle() { + z.EncJSONMarshal(yy58) } else { - z.EncFallback(yy54) + z.EncFallback(yy58) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym57 := z.EncBinary() - _ = yym57 + yym61 := z.EncBinary() + _ = yym61 if false { } else { r.EncodeInt(int64(x.ConntrackMax)) @@ -422,8 +474,8 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conntrackMax")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym58 := z.EncBinary() - _ = yym58 + yym62 := z.EncBinary() + _ = yym62 if false { } else { r.EncodeInt(int64(x.ConntrackMax)) @@ -431,79 +483,48 @@ func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy60 := &x.ConntrackTCPEstablishedTimeout - yym61 := z.EncBinary() - _ = yym61 + yym64 := z.EncBinary() + _ = yym64 if false { - } else if z.HasExtensions() && z.EncExt(yy60) { - } else if !yym61 && z.IsJSONHandle() { - z.EncJSONMarshal(yy60) } else { - z.EncFallback(yy60) + r.EncodeInt(int64(x.ConntrackMaxPerCore)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPEstablishedTimeout")) + r.EncodeString(codecSelferC_UTF81234, string("conntrackMaxPerCore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy62 := &x.ConntrackTCPEstablishedTimeout - yym63 := z.EncBinary() - _ = yym63 + yym65 := z.EncBinary() + _ = yym65 if false { - } else if z.HasExtensions() && z.EncExt(yy62) { - } else if !yym63 && z.IsJSONHandle() { - z.EncJSONMarshal(yy62) } else { - z.EncFallback(yy62) + r.EncodeInt(int64(x.ConntrackMaxPerCore)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[17] { - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy67 := &x.ConntrackTCPEstablishedTimeout + yym68 := z.EncBinary() + _ = yym68 + if false { + } else if z.HasExtensions() && z.EncExt(yy67) { + } else if !yym68 && z.IsJSONHandle() { + z.EncJSONMarshal(yy67) } else { - r.EncodeString(codecSelferC_UTF81234, "") + z.EncFallback(yy67) } } else { - if yyq2[17] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym66 := z.EncBinary() - _ = yym66 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[18] { - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPEstablishedTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy69 := &x.ConntrackTCPEstablishedTimeout + yym70 := z.EncBinary() + _ = yym70 + if false { + } else if z.HasExtensions() && z.EncExt(yy69) { + } else if !yym70 && z.IsJSONHandle() { + z.EncJSONMarshal(yy69) } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[18] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym69 := z.EncBinary() - _ = yym69 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + z.EncFallback(yy69) } } if yyr2 || yy2arr2 { @@ -519,25 +540,25 @@ func (x *KubeProxyConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym71 := z.DecBinary() + _ = yym71 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct72 := r.ContainerType() + if yyct72 == codecSelferValueTypeMap1234 { + yyl72 := r.ReadMapStart() + if yyl72 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl72, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct72 == codecSelferValueTypeArray1234 { + yyl72 := r.ReadArrayStart() + if yyl72 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl72, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -549,12 +570,12 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys73Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys73Slc + var yyhl73 bool = l >= 0 + for yyj73 := 0; ; yyj73++ { + if yyhl73 { + if yyj73 >= l { break } } else { @@ -563,10 +584,22 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys73Slc = r.DecodeBytes(yys73Slc, true, true) + yys73 := string(yys73Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys73 { + 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 "bindAddress": if r.TryDecodeAsNil() { x.BindAddress = "" @@ -606,8 +639,8 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco if x.IPTablesMasqueradeBit == nil { x.IPTablesMasqueradeBit = new(int32) } - yym10 := z.DecBinary() - _ = yym10 + yym82 := z.DecBinary() + _ = yym82 if false { } else { *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) @@ -617,15 +650,15 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.IPTablesSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv11 := &x.IPTablesSyncPeriod - yym12 := z.DecBinary() - _ = yym12 + yyv83 := &x.IPTablesSyncPeriod + yym84 := z.DecBinary() + _ = yym84 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv83) { + } else if !yym84 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv83) } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv83, false) } } case "kubeconfigPath": @@ -655,8 +688,8 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco if x.OOMScoreAdj == nil { x.OOMScoreAdj = new(int32) } - yym17 := z.DecBinary() - _ = yym17 + yym89 := z.DecBinary() + _ = yym89 if false { } else { *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) @@ -674,7 +707,7 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco } else { x.PortRange = string(r.DecodeString()) } - case "kubeletCgroups": + case "resourceContainer": if r.TryDecodeAsNil() { x.ResourceContainer = "" } else { @@ -684,15 +717,15 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.UDPIdleTimeout = pkg1_unversioned.Duration{} } else { - yyv21 := &x.UDPIdleTimeout - yym22 := z.DecBinary() - _ = yym22 + yyv93 := &x.UDPIdleTimeout + yym94 := z.DecBinary() + _ = yym94 if false { - } else if z.HasExtensions() && z.DecExt(yyv21) { - } else if !yym22 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv21) + } else if z.HasExtensions() && z.DecExt(yyv93) { + } else if !yym94 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv93) } else { - z.DecFallback(yyv21, false) + z.DecFallback(yyv93, false) } } case "conntrackMax": @@ -701,37 +734,31 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Deco } else { x.ConntrackMax = int32(r.DecodeInt(32)) } + case "conntrackMaxPerCore": + if r.TryDecodeAsNil() { + x.ConntrackMaxPerCore = 0 + } else { + x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) + } case "conntrackTCPEstablishedTimeout": if r.TryDecodeAsNil() { x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{} } else { - yyv24 := &x.ConntrackTCPEstablishedTimeout - yym25 := z.DecBinary() - _ = yym25 + yyv97 := &x.ConntrackTCPEstablishedTimeout + yym98 := z.DecBinary() + _ = yym98 if false { - } else if z.HasExtensions() && z.DecExt(yyv24) { - } else if !yym25 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv24) + } else if z.HasExtensions() && z.DecExt(yyv97) { + } else if !yym98 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv97) } else { - z.DecFallback(yyv24, false) + z.DecFallback(yyv97, false) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys73) + } // end switch yys73 + } // end for yyj73 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -739,16 +766,48 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj28 int - var yyb28 bool - var yyhl28 bool = l >= 0 - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + var yyj99 int + var yyb99 bool + var yyhl99 bool = l >= 0 + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l + } else { + yyb99 = r.CheckBreak() + } + if yyb99 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l + } else { + yyb99 = r.CheckBreak() + } + if yyb99 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -758,13 +817,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.BindAddress = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -774,13 +833,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.ClusterCIDR = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -790,13 +849,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.HealthzBindAddress = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -806,13 +865,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.HealthzPort = int32(r.DecodeInt(32)) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -822,13 +881,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.HostnameOverride = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -841,20 +900,20 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De if x.IPTablesMasqueradeBit == nil { x.IPTablesMasqueradeBit = new(int32) } - yym35 := z.DecBinary() - _ = yym35 + yym108 := z.DecBinary() + _ = yym108 if false { } else { *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) } } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -862,24 +921,24 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.IPTablesSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv36 := &x.IPTablesSyncPeriod - yym37 := z.DecBinary() - _ = yym37 + yyv109 := &x.IPTablesSyncPeriod + yym110 := z.DecBinary() + _ = yym110 if false { - } else if z.HasExtensions() && z.DecExt(yyv36) { - } else if !yym37 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv36) + } else if z.HasExtensions() && z.DecExt(yyv109) { + } else if !yym110 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv109) } else { - z.DecFallback(yyv36, false) + z.DecFallback(yyv109, false) } } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -889,13 +948,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.KubeconfigPath = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -905,13 +964,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.MasqueradeAll = bool(r.DecodeBool()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -921,13 +980,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Master = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -940,20 +999,20 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De if x.OOMScoreAdj == nil { x.OOMScoreAdj = new(int32) } - yym42 := z.DecBinary() - _ = yym42 + yym115 := z.DecBinary() + _ = yym115 if false { } else { *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) } } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -963,13 +1022,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Mode = ProxyMode(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -979,13 +1038,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.PortRange = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -995,13 +1054,13 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.ResourceContainer = string(r.DecodeString()) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1009,24 +1068,24 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.UDPIdleTimeout = pkg1_unversioned.Duration{} } else { - yyv46 := &x.UDPIdleTimeout - yym47 := z.DecBinary() - _ = yym47 + yyv119 := &x.UDPIdleTimeout + yym120 := z.DecBinary() + _ = yym120 if false { - } else if z.HasExtensions() && z.DecExt(yyv46) { - } else if !yym47 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv46) + } else if z.HasExtensions() && z.DecExt(yyv119) { + } else if !yym120 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv119) } else { - z.DecFallback(yyv46, false) + z.DecFallback(yyv119, false) } } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1036,75 +1095,59 @@ func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.ConntrackMax = int32(r.DecodeInt(32)) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{} - } else { - yyv49 := &x.ConntrackTCPEstablishedTimeout - yym50 := z.DecBinary() - _ = yym50 - if false { - } else if z.HasExtensions() && z.DecExt(yyv49) { - } else if !yym50 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv49) - } else { - z.DecFallback(yyv49, false) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ConntrackMaxPerCore = 0 } else { - x.Kind = string(r.DecodeString()) + x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{} } else { - x.APIVersion = string(r.DecodeString()) + yyv123 := &x.ConntrackTCPEstablishedTimeout + yym124 := z.DecBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.DecExt(yyv123) { + } else if !yym124 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv123) + } else { + z.DecFallback(yyv123, false) + } } for { - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb28 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb28 { + if yyb99 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj28-1, "") + z.DecStructFieldNotFound(yyj99-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1113,8 +1156,8 @@ func (x ProxyMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym125 := z.EncBinary() + _ = yym125 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -1126,8 +1169,8 @@ func (x *ProxyMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym126 := z.DecBinary() + _ = yym126 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -1139,8 +1182,8 @@ func (x HairpinMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym127 := z.EncBinary() + _ = yym127 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -1152,8 +1195,8 @@ func (x *HairpinMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym128 := z.DecBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -1168,150 +1211,205 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym129 := z.EncBinary() + _ = yym129 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [91]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[48] = x.CloudProvider != "" - yyq2[49] = x.CloudConfigFile != "" - yyq2[50] = x.KubeletCgroups != "" - yyq2[51] = x.RuntimeCgroups != "" - yyq2[52] = x.SystemCgroups != "" - yyq2[53] = x.CgroupRoot != "" - yyq2[55] = true - yyq2[56] = x.RktPath != "" - yyq2[57] = x.RktAPIEndpoint != "" - yyq2[58] = x.RktStage1Image != "" - yyq2[79] = true - yyq2[80] = x.NodeIP != "" - yyq2[84] = x.EvictionHard != "" - yyq2[85] = x.EvictionSoft != "" - yyq2[86] = x.EvictionSoftGracePeriod != "" - yyq2[87] = true - yyq2[88] = x.EvictionMaxPodGracePeriod != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(91) - } else { - yynn2 = 74 - for _, b := range yyq2 { + yysep130 := !z.EncBinary() + yy2arr130 := z.EncBasicHandle().StructToArray + var yyq130 [105]bool + _, _, _ = yysep130, yyq130, yy2arr130 + const yyr130 bool = false + yyq130[0] = x.Kind != "" + yyq130[1] = x.APIVersion != "" + 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(105) + } else { + yynn130 = 83 + for _, b := range yyq130 { if b { - yynn2++ + yynn130++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn130) + yynn130 = 0 } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[0] { + yym132 := z.EncBinary() + _ = yym132 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq130[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym133 := z.EncBinary() + _ = yym133 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[1] { + yym135 := z.EncBinary() + _ = yym135 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq130[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym136 := z.EncBinary() + _ = yym136 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym138 := z.EncBinary() + _ = yym138 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Config)) + r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("config")) + r.EncodeString(codecSelferC_UTF81234, string("podManifestPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym139 := z.EncBinary() + _ = yym139 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Config)) + r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.SyncFrequency - yym8 := z.EncBinary() - _ = yym8 + yy141 := &x.SyncFrequency + yym142 := z.EncBinary() + _ = yym142 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy141) { + } else if !yym142 && z.IsJSONHandle() { + z.EncJSONMarshal(yy141) } else { - z.EncFallback(yy7) + z.EncFallback(yy141) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("syncFrequency")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.SyncFrequency - yym10 := z.EncBinary() - _ = yym10 + yy143 := &x.SyncFrequency + yym144 := z.EncBinary() + _ = yym144 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy143) { + } else if !yym144 && z.IsJSONHandle() { + z.EncJSONMarshal(yy143) } else { - z.EncFallback(yy9) + z.EncFallback(yy143) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy12 := &x.FileCheckFrequency - yym13 := z.EncBinary() - _ = yym13 + yy146 := &x.FileCheckFrequency + yym147 := z.EncBinary() + _ = yym147 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy146) { + } else if !yym147 && z.IsJSONHandle() { + z.EncJSONMarshal(yy146) } else { - z.EncFallback(yy12) + z.EncFallback(yy146) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fileCheckFrequency")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.FileCheckFrequency - yym15 := z.EncBinary() - _ = yym15 + yy148 := &x.FileCheckFrequency + yym149 := z.EncBinary() + _ = yym149 if false { - } else if z.HasExtensions() && z.EncExt(yy14) { - } else if !yym15 && z.IsJSONHandle() { - z.EncJSONMarshal(yy14) + } else if z.HasExtensions() && z.EncExt(yy148) { + } else if !yym149 && z.IsJSONHandle() { + z.EncJSONMarshal(yy148) } else { - z.EncFallback(yy14) + z.EncFallback(yy148) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy17 := &x.HTTPCheckFrequency - yym18 := z.EncBinary() - _ = yym18 + yy151 := &x.HTTPCheckFrequency + yym152 := z.EncBinary() + _ = yym152 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy151) { + } else if !yym152 && z.IsJSONHandle() { + z.EncJSONMarshal(yy151) } else { - z.EncFallback(yy17) + z.EncFallback(yy151) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpCheckFrequency")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy19 := &x.HTTPCheckFrequency - yym20 := z.EncBinary() - _ = yym20 + yy153 := &x.HTTPCheckFrequency + yym154 := z.EncBinary() + _ = yym154 if false { - } else if z.HasExtensions() && z.EncExt(yy19) { - } else if !yym20 && z.IsJSONHandle() { - z.EncJSONMarshal(yy19) + } else if z.HasExtensions() && z.EncExt(yy153) { + } else if !yym154 && z.IsJSONHandle() { + z.EncJSONMarshal(yy153) } else { - z.EncFallback(yy19) + z.EncFallback(yy153) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym156 := z.EncBinary() + _ = yym156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) @@ -1320,17 +1418,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("manifestURL")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym157 := z.EncBinary() + _ = yym157 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym25 := z.EncBinary() - _ = yym25 + yym159 := z.EncBinary() + _ = yym159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) @@ -1339,17 +1437,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("manifestURLHeader")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym160 := z.EncBinary() + _ = yym160 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym28 := z.EncBinary() - _ = yym28 + yym162 := z.EncBinary() + _ = yym162 if false { } else { r.EncodeBool(bool(x.EnableServer)) @@ -1358,17 +1456,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableServer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym163 := z.EncBinary() + _ = yym163 if false { } else { r.EncodeBool(bool(x.EnableServer)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym31 := z.EncBinary() - _ = yym31 + yym165 := z.EncBinary() + _ = yym165 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -1377,93 +1475,93 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym32 := z.EncBinary() - _ = yym32 + yym166 := z.EncBinary() + _ = yym166 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym34 := z.EncBinary() - _ = yym34 + yym168 := z.EncBinary() + _ = yym168 if false { } else { - r.EncodeUint(uint64(x.Port)) + r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym35 := z.EncBinary() - _ = yym35 + yym169 := z.EncBinary() + _ = yym169 if false { } else { - r.EncodeUint(uint64(x.Port)) + r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym37 := z.EncBinary() - _ = yym37 + yym171 := z.EncBinary() + _ = yym171 if false { } else { - r.EncodeUint(uint64(x.ReadOnlyPort)) + r.EncodeInt(int64(x.ReadOnlyPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym38 := z.EncBinary() - _ = yym38 + yym172 := z.EncBinary() + _ = yym172 if false { } else { - r.EncodeUint(uint64(x.ReadOnlyPort)) + r.EncodeInt(int64(x.ReadOnlyPort)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym40 := z.EncBinary() - _ = yym40 + yym174 := z.EncBinary() + _ = yym174 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tLSCertFile")) + r.EncodeString(codecSelferC_UTF81234, string("tlsCertFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym41 := z.EncBinary() - _ = yym41 + yym175 := z.EncBinary() + _ = yym175 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym43 := z.EncBinary() - _ = yym43 + yym177 := z.EncBinary() + _ = yym177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tLSPrivateKeyFile")) + r.EncodeString(codecSelferC_UTF81234, string("tlsPrivateKeyFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym44 := z.EncBinary() - _ = yym44 + yym178 := z.EncBinary() + _ = yym178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym46 := z.EncBinary() - _ = yym46 + yym180 := z.EncBinary() + _ = yym180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) @@ -1472,17 +1570,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("certDirectory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym47 := z.EncBinary() - _ = yym47 + yym181 := z.EncBinary() + _ = yym181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym49 := z.EncBinary() - _ = yym49 + yym183 := z.EncBinary() + _ = yym183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) @@ -1491,17 +1589,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostnameOverride")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym50 := z.EncBinary() - _ = yym50 + yym184 := z.EncBinary() + _ = yym184 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym52 := z.EncBinary() - _ = yym52 + yym186 := z.EncBinary() + _ = yym186 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) @@ -1510,17 +1608,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podInfraContainerImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym53 := z.EncBinary() - _ = yym53 + yym187 := z.EncBinary() + _ = yym187 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym55 := z.EncBinary() - _ = yym55 + yym189 := z.EncBinary() + _ = yym189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) @@ -1529,17 +1627,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dockerEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym56 := z.EncBinary() - _ = yym56 + yym190 := z.EncBinary() + _ = yym190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym58 := z.EncBinary() - _ = yym58 + yym192 := z.EncBinary() + _ = yym192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) @@ -1548,17 +1646,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rootDirectory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym59 := z.EncBinary() - _ = yym59 + yym193 := z.EncBinary() + _ = yym193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym61 := z.EncBinary() - _ = yym61 + yym195 := z.EncBinary() + _ = yym195 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) @@ -1567,17 +1665,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seccompProfileRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym62 := z.EncBinary() - _ = yym62 + yym196 := z.EncBinary() + _ = yym196 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym64 := z.EncBinary() - _ = yym64 + yym198 := z.EncBinary() + _ = yym198 if false { } else { r.EncodeBool(bool(x.AllowPrivileged)) @@ -1586,93 +1684,117 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowPrivileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym65 := z.EncBinary() - _ = yym65 + yym199 := z.EncBinary() + _ = yym199 if false { } else { r.EncodeBool(bool(x.AllowPrivileged)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym67 := z.EncBinary() - _ = yym67 - if false { + if x.HostNetworkSources == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostNetworkSources)) + yym201 := z.EncBinary() + _ = yym201 + if false { + } else { + z.F.EncSliceStringV(x.HostNetworkSources, false, e) + } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetworkSources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym68 := z.EncBinary() - _ = yym68 - if false { + if x.HostNetworkSources == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostNetworkSources)) + yym202 := z.EncBinary() + _ = yym202 + if false { + } else { + z.F.EncSliceStringV(x.HostNetworkSources, false, e) + } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym70 := z.EncBinary() - _ = yym70 - if false { + if x.HostPIDSources == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostPIDSources)) + yym204 := z.EncBinary() + _ = yym204 + if false { + } else { + z.F.EncSliceStringV(x.HostPIDSources, false, e) + } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPIDSources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym71 := z.EncBinary() - _ = yym71 - if false { + if x.HostPIDSources == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostPIDSources)) + yym205 := z.EncBinary() + _ = yym205 + if false { + } else { + z.F.EncSliceStringV(x.HostPIDSources, false, e) + } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym73 := z.EncBinary() - _ = yym73 - if false { + if x.HostIPCSources == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIPCSources)) + yym207 := z.EncBinary() + _ = yym207 + if false { + } else { + z.F.EncSliceStringV(x.HostIPCSources, false, e) + } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPCSources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym74 := z.EncBinary() - _ = yym74 - if false { + if x.HostIPCSources == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIPCSources)) + yym208 := z.EncBinary() + _ = yym208 + if false { + } else { + z.F.EncSliceStringV(x.HostIPCSources, false, e) + } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym76 := z.EncBinary() - _ = yym76 + yym210 := z.EncBinary() + _ = yym210 if false { } else { - r.EncodeFloat64(float64(x.RegistryPullQPS)) + r.EncodeInt(int64(x.RegistryPullQPS)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registryPullQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym77 := z.EncBinary() - _ = yym77 + yym211 := z.EncBinary() + _ = yym211 if false { } else { - r.EncodeFloat64(float64(x.RegistryPullQPS)) + r.EncodeInt(int64(x.RegistryPullQPS)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym79 := z.EncBinary() - _ = yym79 + yym213 := z.EncBinary() + _ = yym213 if false { } else { r.EncodeInt(int64(x.RegistryBurst)) @@ -1681,36 +1803,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registryBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym80 := z.EncBinary() - _ = yym80 + yym214 := z.EncBinary() + _ = yym214 if false { } else { r.EncodeInt(int64(x.RegistryBurst)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym82 := z.EncBinary() - _ = yym82 + yym216 := z.EncBinary() + _ = yym216 if false { } else { - r.EncodeFloat32(float32(x.EventRecordQPS)) + r.EncodeInt(int64(x.EventRecordQPS)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("eventRecordQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym83 := z.EncBinary() - _ = yym83 + yym217 := z.EncBinary() + _ = yym217 if false { } else { - r.EncodeFloat32(float32(x.EventRecordQPS)) + r.EncodeInt(int64(x.EventRecordQPS)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym85 := z.EncBinary() - _ = yym85 + yym219 := z.EncBinary() + _ = yym219 if false { } else { r.EncodeInt(int64(x.EventBurst)) @@ -1719,17 +1841,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("eventBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym86 := z.EncBinary() - _ = yym86 + yym220 := z.EncBinary() + _ = yym220 if false { } else { r.EncodeInt(int64(x.EventBurst)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym88 := z.EncBinary() - _ = yym88 + yym222 := z.EncBinary() + _ = yym222 if false { } else { r.EncodeBool(bool(x.EnableDebuggingHandlers)) @@ -1738,44 +1860,44 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableDebuggingHandlers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym89 := z.EncBinary() - _ = yym89 + yym223 := z.EncBinary() + _ = yym223 if false { } else { r.EncodeBool(bool(x.EnableDebuggingHandlers)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy91 := &x.MinimumGCAge - yym92 := z.EncBinary() - _ = yym92 + yy225 := &x.MinimumGCAge + yym226 := z.EncBinary() + _ = yym226 if false { - } else if z.HasExtensions() && z.EncExt(yy91) { - } else if !yym92 && z.IsJSONHandle() { - z.EncJSONMarshal(yy91) + } else if z.HasExtensions() && z.EncExt(yy225) { + } else if !yym226 && z.IsJSONHandle() { + z.EncJSONMarshal(yy225) } else { - z.EncFallback(yy91) + z.EncFallback(yy225) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minimumGCAge")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy93 := &x.MinimumGCAge - yym94 := z.EncBinary() - _ = yym94 + yy227 := &x.MinimumGCAge + yym228 := z.EncBinary() + _ = yym228 if false { - } else if z.HasExtensions() && z.EncExt(yy93) { - } else if !yym94 && z.IsJSONHandle() { - z.EncJSONMarshal(yy93) + } else if z.HasExtensions() && z.EncExt(yy227) { + } else if !yym228 && z.IsJSONHandle() { + z.EncJSONMarshal(yy227) } else { - z.EncFallback(yy93) + z.EncFallback(yy227) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym96 := z.EncBinary() - _ = yym96 + yym230 := z.EncBinary() + _ = yym230 if false { } else { r.EncodeInt(int64(x.MaxPerPodContainerCount)) @@ -1784,17 +1906,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxPerPodContainerCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym97 := z.EncBinary() - _ = yym97 + yym231 := z.EncBinary() + _ = yym231 if false { } else { r.EncodeInt(int64(x.MaxPerPodContainerCount)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym99 := z.EncBinary() - _ = yym99 + yym233 := z.EncBinary() + _ = yym233 if false { } else { r.EncodeInt(int64(x.MaxContainerCount)) @@ -1803,36 +1925,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxContainerCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym100 := z.EncBinary() - _ = yym100 + yym234 := z.EncBinary() + _ = yym234 if false { } else { r.EncodeInt(int64(x.MaxContainerCount)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym102 := z.EncBinary() - _ = yym102 + yym236 := z.EncBinary() + _ = yym236 if false { } else { - r.EncodeUint(uint64(x.CAdvisorPort)) + r.EncodeInt(int64(x.CAdvisorPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cAdvisorPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym103 := z.EncBinary() - _ = yym103 + yym237 := z.EncBinary() + _ = yym237 if false { } else { - r.EncodeUint(uint64(x.CAdvisorPort)) + r.EncodeInt(int64(x.CAdvisorPort)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym105 := z.EncBinary() - _ = yym105 + yym239 := z.EncBinary() + _ = yym239 if false { } else { r.EncodeInt(int64(x.HealthzPort)) @@ -1841,17 +1963,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym106 := z.EncBinary() - _ = yym106 + yym240 := z.EncBinary() + _ = yym240 if false { } else { r.EncodeInt(int64(x.HealthzPort)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym108 := z.EncBinary() - _ = yym108 + yym242 := z.EncBinary() + _ = yym242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) @@ -1860,17 +1982,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("healthzBindAddress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym109 := z.EncBinary() - _ = yym109 + yym243 := z.EncBinary() + _ = yym243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym111 := z.EncBinary() - _ = yym111 + yym245 := z.EncBinary() + _ = yym245 if false { } else { r.EncodeInt(int64(x.OOMScoreAdj)) @@ -1879,17 +2001,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym112 := z.EncBinary() - _ = yym112 + yym246 := z.EncBinary() + _ = yym246 if false { } else { r.EncodeInt(int64(x.OOMScoreAdj)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym114 := z.EncBinary() - _ = yym114 + yym248 := z.EncBinary() + _ = yym248 if false { } else { r.EncodeBool(bool(x.RegisterNode)) @@ -1898,17 +2020,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registerNode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym115 := z.EncBinary() - _ = yym115 + yym249 := z.EncBinary() + _ = yym249 if false { } else { r.EncodeBool(bool(x.RegisterNode)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym117 := z.EncBinary() - _ = yym117 + yym251 := z.EncBinary() + _ = yym251 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) @@ -1917,17 +2039,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterDomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym118 := z.EncBinary() - _ = yym118 + yym252 := z.EncBinary() + _ = yym252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym120 := z.EncBinary() - _ = yym120 + yym254 := z.EncBinary() + _ = yym254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) @@ -1936,17 +2058,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("masterServiceNamespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym121 := z.EncBinary() - _ = yym121 + yym255 := z.EncBinary() + _ = yym255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym123 := z.EncBinary() - _ = yym123 + yym257 := z.EncBinary() + _ = yym257 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) @@ -1955,98 +2077,98 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterDNS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym124 := z.EncBinary() - _ = yym124 + yym258 := z.EncBinary() + _ = yym258 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy126 := &x.StreamingConnectionIdleTimeout - yym127 := z.EncBinary() - _ = yym127 + yy260 := &x.StreamingConnectionIdleTimeout + yym261 := z.EncBinary() + _ = yym261 if false { - } else if z.HasExtensions() && z.EncExt(yy126) { - } else if !yym127 && z.IsJSONHandle() { - z.EncJSONMarshal(yy126) + } else if z.HasExtensions() && z.EncExt(yy260) { + } else if !yym261 && z.IsJSONHandle() { + z.EncJSONMarshal(yy260) } else { - z.EncFallback(yy126) + z.EncFallback(yy260) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("streamingConnectionIdleTimeout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy128 := &x.StreamingConnectionIdleTimeout - yym129 := z.EncBinary() - _ = yym129 + yy262 := &x.StreamingConnectionIdleTimeout + yym263 := z.EncBinary() + _ = yym263 if false { - } else if z.HasExtensions() && z.EncExt(yy128) { - } else if !yym129 && z.IsJSONHandle() { - z.EncJSONMarshal(yy128) + } else if z.HasExtensions() && z.EncExt(yy262) { + } else if !yym263 && z.IsJSONHandle() { + z.EncJSONMarshal(yy262) } else { - z.EncFallback(yy128) + z.EncFallback(yy262) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy131 := &x.NodeStatusUpdateFrequency - yym132 := z.EncBinary() - _ = yym132 + yy265 := &x.NodeStatusUpdateFrequency + yym266 := z.EncBinary() + _ = yym266 if false { - } else if z.HasExtensions() && z.EncExt(yy131) { - } else if !yym132 && z.IsJSONHandle() { - z.EncJSONMarshal(yy131) + } else if z.HasExtensions() && z.EncExt(yy265) { + } else if !yym266 && z.IsJSONHandle() { + z.EncJSONMarshal(yy265) } else { - z.EncFallback(yy131) + z.EncFallback(yy265) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeStatusUpdateFrequency")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy133 := &x.NodeStatusUpdateFrequency - yym134 := z.EncBinary() - _ = yym134 + yy267 := &x.NodeStatusUpdateFrequency + yym268 := z.EncBinary() + _ = yym268 if false { - } else if z.HasExtensions() && z.EncExt(yy133) { - } else if !yym134 && z.IsJSONHandle() { - z.EncJSONMarshal(yy133) + } else if z.HasExtensions() && z.EncExt(yy267) { + } else if !yym268 && z.IsJSONHandle() { + z.EncJSONMarshal(yy267) } else { - z.EncFallback(yy133) + z.EncFallback(yy267) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy136 := &x.ImageMinimumGCAge - yym137 := z.EncBinary() - _ = yym137 + yy270 := &x.ImageMinimumGCAge + yym271 := z.EncBinary() + _ = yym271 if false { - } else if z.HasExtensions() && z.EncExt(yy136) { - } else if !yym137 && z.IsJSONHandle() { - z.EncJSONMarshal(yy136) + } else if z.HasExtensions() && z.EncExt(yy270) { + } else if !yym271 && z.IsJSONHandle() { + z.EncJSONMarshal(yy270) } else { - z.EncFallback(yy136) + z.EncFallback(yy270) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageMinimumGCAge")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy138 := &x.ImageMinimumGCAge - yym139 := z.EncBinary() - _ = yym139 + yy272 := &x.ImageMinimumGCAge + yym273 := z.EncBinary() + _ = yym273 if false { - } else if z.HasExtensions() && z.EncExt(yy138) { - } else if !yym139 && z.IsJSONHandle() { - z.EncJSONMarshal(yy138) + } else if z.HasExtensions() && z.EncExt(yy272) { + } else if !yym273 && z.IsJSONHandle() { + z.EncJSONMarshal(yy272) } else { - z.EncFallback(yy138) + z.EncFallback(yy272) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym141 := z.EncBinary() - _ = yym141 + yym275 := z.EncBinary() + _ = yym275 if false { } else { r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) @@ -2055,17 +2177,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageGCHighThresholdPercent")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym142 := z.EncBinary() - _ = yym142 + yym276 := z.EncBinary() + _ = yym276 if false { } else { r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym144 := z.EncBinary() - _ = yym144 + yym278 := z.EncBinary() + _ = yym278 if false { } else { r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) @@ -2074,17 +2196,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageGCLowThresholdPercent")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym145 := z.EncBinary() - _ = yym145 + yym279 := z.EncBinary() + _ = yym279 if false { } else { r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym147 := z.EncBinary() - _ = yym147 + yym281 := z.EncBinary() + _ = yym281 if false { } else { r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) @@ -2093,44 +2215,44 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lowDiskSpaceThresholdMB")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym148 := z.EncBinary() - _ = yym148 + yym282 := z.EncBinary() + _ = yym282 if false { } else { r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy150 := &x.VolumeStatsAggPeriod - yym151 := z.EncBinary() - _ = yym151 + yy284 := &x.VolumeStatsAggPeriod + yym285 := z.EncBinary() + _ = yym285 if false { - } else if z.HasExtensions() && z.EncExt(yy150) { - } else if !yym151 && z.IsJSONHandle() { - z.EncJSONMarshal(yy150) + } else if z.HasExtensions() && z.EncExt(yy284) { + } else if !yym285 && z.IsJSONHandle() { + z.EncJSONMarshal(yy284) } else { - z.EncFallback(yy150) + z.EncFallback(yy284) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeStatsAggPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy152 := &x.VolumeStatsAggPeriod - yym153 := z.EncBinary() - _ = yym153 + yy286 := &x.VolumeStatsAggPeriod + yym287 := z.EncBinary() + _ = yym287 if false { - } else if z.HasExtensions() && z.EncExt(yy152) { - } else if !yym153 && z.IsJSONHandle() { - z.EncJSONMarshal(yy152) + } else if z.HasExtensions() && z.EncExt(yy286) { + } else if !yym287 && z.IsJSONHandle() { + z.EncJSONMarshal(yy286) } else { - z.EncFallback(yy152) + z.EncFallback(yy286) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym155 := z.EncBinary() - _ = yym155 + yym289 := z.EncBinary() + _ = yym289 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) @@ -2139,17 +2261,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("networkPluginName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym156 := z.EncBinary() - _ = yym156 + yym290 := z.EncBinary() + _ = yym290 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym158 := z.EncBinary() - _ = yym158 + yym292 := z.EncBinary() + _ = yym292 + if false { + } else { + r.EncodeInt(int64(x.NetworkPluginMTU)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("networkPluginMTU")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym293 := z.EncBinary() + _ = yym293 + if false { + } else { + r.EncodeInt(int64(x.NetworkPluginMTU)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym295 := z.EncBinary() + _ = yym295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) @@ -2158,17 +2299,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("networkPluginDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym159 := z.EncBinary() - _ = yym159 + yym296 := z.EncBinary() + _ = yym296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym161 := z.EncBinary() - _ = yym161 + yym298 := z.EncBinary() + _ = yym298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) @@ -2177,18 +2318,18 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumePluginDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym162 := z.EncBinary() - _ = yym162 + yym299 := z.EncBinary() + _ = yym299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[48] { - yym164 := z.EncBinary() - _ = yym164 + if yyq130[51] { + yym301 := z.EncBinary() + _ = yym301 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) @@ -2197,23 +2338,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[48] { + if yyq130[51] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym165 := z.EncBinary() - _ = yym165 + yym302 := z.EncBinary() + _ = yym302 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[49] { - yym167 := z.EncBinary() - _ = yym167 + if yyq130[52] { + yym304 := z.EncBinary() + _ = yym304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) @@ -2222,23 +2363,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[49] { + if yyq130[52] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym168 := z.EncBinary() - _ = yym168 + yym305 := z.EncBinary() + _ = yym305 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[50] { - yym170 := z.EncBinary() - _ = yym170 + if yyq130[53] { + yym307 := z.EncBinary() + _ = yym307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) @@ -2247,23 +2388,48 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[50] { + if yyq130[53] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym171 := z.EncBinary() - _ = yym171 + yym308 := z.EncBinary() + _ = yym308 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[54] { + yym310 := z.EncBinary() + _ = yym310 + if false { + } else { + r.EncodeBool(bool(x.CgroupsPerQOS)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq130[54] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("CgroupsPerQOS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym311 := z.EncBinary() + _ = yym311 + if false { + } else { + r.EncodeBool(bool(x.CgroupsPerQOS)) + } + } + } + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[51] { - yym173 := z.EncBinary() - _ = yym173 + if yyq130[55] { + yym313 := z.EncBinary() + _ = yym313 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) @@ -2272,23 +2438,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[51] { + if yyq130[55] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym174 := z.EncBinary() - _ = yym174 + yym314 := z.EncBinary() + _ = yym314 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[52] { - yym176 := z.EncBinary() - _ = yym176 + if yyq130[56] { + yym316 := z.EncBinary() + _ = yym316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) @@ -2297,23 +2463,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[52] { + if yyq130[56] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemContainer")) + r.EncodeString(codecSelferC_UTF81234, string("systemCgroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym177 := z.EncBinary() - _ = yym177 + yym317 := z.EncBinary() + _ = yym317 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[53] { - yym179 := z.EncBinary() - _ = yym179 + if yyq130[57] { + yym319 := z.EncBinary() + _ = yym319 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) @@ -2322,22 +2488,22 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[53] { + if yyq130[57] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym180 := z.EncBinary() - _ = yym180 + yym320 := z.EncBinary() + _ = yym320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym182 := z.EncBinary() - _ = yym182 + yym322 := z.EncBinary() + _ = yym322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) @@ -2346,51 +2512,89 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym183 := z.EncBinary() - _ = yym183 + yym323 := z.EncBinary() + _ = yym323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + 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 yyq2[55] { - yy185 := &x.RuntimeRequestTimeout - yym186 := z.EncBinary() - _ = yym186 + if yyq130[61] { + yy331 := &x.RuntimeRequestTimeout + yym332 := z.EncBinary() + _ = yym332 if false { - } else if z.HasExtensions() && z.EncExt(yy185) { - } else if !yym186 && z.IsJSONHandle() { - z.EncJSONMarshal(yy185) + } else if z.HasExtensions() && z.EncExt(yy331) { + } else if !yym332 && z.IsJSONHandle() { + z.EncJSONMarshal(yy331) } else { - z.EncFallback(yy185) + z.EncFallback(yy331) } } else { r.EncodeNil() } } else { - if yyq2[55] { + if yyq130[61] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runtimeRequestTimeout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy187 := &x.RuntimeRequestTimeout - yym188 := z.EncBinary() - _ = yym188 + yy333 := &x.RuntimeRequestTimeout + yym334 := z.EncBinary() + _ = yym334 if false { - } else if z.HasExtensions() && z.EncExt(yy187) { - } else if !yym188 && z.IsJSONHandle() { - z.EncJSONMarshal(yy187) + } else if z.HasExtensions() && z.EncExt(yy333) { + } else if !yym334 && z.IsJSONHandle() { + z.EncJSONMarshal(yy333) } else { - z.EncFallback(yy187) + z.EncFallback(yy333) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[56] { - yym190 := z.EncBinary() - _ = yym190 + if yyq130[62] { + yym336 := z.EncBinary() + _ = yym336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) @@ -2399,23 +2603,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[56] { + if yyq130[62] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rktPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym191 := z.EncBinary() - _ = yym191 + yym337 := z.EncBinary() + _ = yym337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[57] { - yym193 := z.EncBinary() - _ = yym193 + if yyq130[63] { + yym339 := z.EncBinary() + _ = yym339 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) @@ -2424,23 +2628,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[57] { + if yyq130[63] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym194 := z.EncBinary() - _ = yym194 + yym340 := z.EncBinary() + _ = yym340 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[58] { - yym196 := z.EncBinary() - _ = yym196 + if yyq130[64] { + yym342 := z.EncBinary() + _ = yym342 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) @@ -2449,22 +2653,22 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[58] { + if yyq130[64] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym197 := z.EncBinary() - _ = yym197 + yym343 := z.EncBinary() + _ = yym343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym199 := z.EncBinary() - _ = yym199 + yym345 := z.EncBinary() + _ = yym345 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) @@ -2473,17 +2677,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lockFilePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym200 := z.EncBinary() - _ = yym200 + yym346 := z.EncBinary() + _ = yym346 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym202 := z.EncBinary() - _ = yym202 + yym348 := z.EncBinary() + _ = yym348 if false { } else { r.EncodeBool(bool(x.ExitOnLockContention)) @@ -2492,17 +2696,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym203 := z.EncBinary() - _ = yym203 + yym349 := z.EncBinary() + _ = yym349 if false { } else { r.EncodeBool(bool(x.ExitOnLockContention)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym205 := z.EncBinary() - _ = yym205 + yym351 := z.EncBinary() + _ = yym351 if false { } else { r.EncodeBool(bool(x.ConfigureCBR0)) @@ -2511,17 +2715,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configureCbr0")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym206 := z.EncBinary() - _ = yym206 + yym352 := z.EncBinary() + _ = yym352 if false { } else { r.EncodeBool(bool(x.ConfigureCBR0)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym208 := z.EncBinary() - _ = yym208 + yym354 := z.EncBinary() + _ = yym354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) @@ -2530,17 +2734,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hairpinMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym209 := z.EncBinary() - _ = yym209 + yym355 := z.EncBinary() + _ = yym355 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym211 := z.EncBinary() - _ = yym211 + yym357 := z.EncBinary() + _ = yym357 if false { } else { r.EncodeBool(bool(x.BabysitDaemons)) @@ -2549,17 +2753,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym212 := z.EncBinary() - _ = yym212 + yym358 := z.EncBinary() + _ = yym358 if false { } else { r.EncodeBool(bool(x.BabysitDaemons)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym214 := z.EncBinary() - _ = yym214 + yym360 := z.EncBinary() + _ = yym360 if false { } else { r.EncodeInt(int64(x.MaxPods)) @@ -2568,17 +2772,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym215 := z.EncBinary() - _ = yym215 + yym361 := z.EncBinary() + _ = yym361 if false { } else { r.EncodeInt(int64(x.MaxPods)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym217 := z.EncBinary() - _ = yym217 + yym363 := z.EncBinary() + _ = yym363 if false { } else { r.EncodeInt(int64(x.NvidiaGPUs)) @@ -2587,17 +2791,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym218 := z.EncBinary() - _ = yym218 + yym364 := z.EncBinary() + _ = yym364 if false { } else { r.EncodeInt(int64(x.NvidiaGPUs)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym220 := z.EncBinary() - _ = yym220 + yym366 := z.EncBinary() + _ = yym366 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) @@ -2606,17 +2810,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dockerExecHandlerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym221 := z.EncBinary() - _ = yym221 + yym367 := z.EncBinary() + _ = yym367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym223 := z.EncBinary() - _ = yym223 + yym369 := z.EncBinary() + _ = yym369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -2625,17 +2829,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym224 := z.EncBinary() - _ = yym224 + yym370 := z.EncBinary() + _ = yym370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym226 := z.EncBinary() - _ = yym226 + yym372 := z.EncBinary() + _ = yym372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) @@ -2644,17 +2848,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resolvConf")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym227 := z.EncBinary() - _ = yym227 + yym373 := z.EncBinary() + _ = yym373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym229 := z.EncBinary() - _ = yym229 + yym375 := z.EncBinary() + _ = yym375 if false { } else { r.EncodeBool(bool(x.CPUCFSQuota)) @@ -2663,17 +2867,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym230 := z.EncBinary() - _ = yym230 + yym376 := z.EncBinary() + _ = yym376 if false { } else { r.EncodeBool(bool(x.CPUCFSQuota)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym232 := z.EncBinary() - _ = yym232 + yym378 := z.EncBinary() + _ = yym378 if false { } else { r.EncodeBool(bool(x.Containerized)) @@ -2682,36 +2886,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerized")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym233 := z.EncBinary() - _ = yym233 + yym379 := z.EncBinary() + _ = yym379 if false { } else { r.EncodeBool(bool(x.Containerized)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym235 := z.EncBinary() - _ = yym235 + yym381 := z.EncBinary() + _ = yym381 if false { } else { - r.EncodeUint(uint64(x.MaxOpenFiles)) + r.EncodeInt(int64(x.MaxOpenFiles)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym236 := z.EncBinary() - _ = yym236 + yym382 := z.EncBinary() + _ = yym382 if false { } else { - r.EncodeUint(uint64(x.MaxOpenFiles)) + r.EncodeInt(int64(x.MaxOpenFiles)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym238 := z.EncBinary() - _ = yym238 + yym384 := z.EncBinary() + _ = yym384 if false { } else { r.EncodeBool(bool(x.ReconcileCIDR)) @@ -2720,17 +2924,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym239 := z.EncBinary() - _ = yym239 + yym385 := z.EncBinary() + _ = yym385 if false { } else { r.EncodeBool(bool(x.ReconcileCIDR)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym241 := z.EncBinary() - _ = yym241 + yym387 := z.EncBinary() + _ = yym387 if false { } else { r.EncodeBool(bool(x.RegisterSchedulable)) @@ -2739,17 +2943,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym242 := z.EncBinary() - _ = yym242 + yym388 := z.EncBinary() + _ = yym388 if false { } else { r.EncodeBool(bool(x.RegisterSchedulable)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym244 := z.EncBinary() - _ = yym244 + yym390 := z.EncBinary() + _ = yym390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) @@ -2758,36 +2962,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("contentType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym245 := z.EncBinary() - _ = yym245 + yym391 := z.EncBinary() + _ = yym391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym247 := z.EncBinary() - _ = yym247 + yym393 := z.EncBinary() + _ = yym393 if false { } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) + r.EncodeInt(int64(x.KubeAPIQPS)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym248 := z.EncBinary() - _ = yym248 + yym394 := z.EncBinary() + _ = yym394 if false { } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) + r.EncodeInt(int64(x.KubeAPIQPS)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym250 := z.EncBinary() - _ = yym250 + yym396 := z.EncBinary() + _ = yym396 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) @@ -2796,17 +3000,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym251 := z.EncBinary() - _ = yym251 + yym397 := z.EncBinary() + _ = yym397 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym253 := z.EncBinary() - _ = yym253 + yym399 := z.EncBinary() + _ = yym399 if false { } else { r.EncodeBool(bool(x.SerializeImagePulls)) @@ -2815,17 +3019,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym254 := z.EncBinary() - _ = yym254 + yym400 := z.EncBinary() + _ = yym400 if false { } else { r.EncodeBool(bool(x.SerializeImagePulls)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym256 := z.EncBinary() - _ = yym256 + yym402 := z.EncBinary() + _ = yym402 if false { } else { r.EncodeBool(bool(x.ExperimentalFlannelOverlay)) @@ -2834,51 +3038,51 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("experimentalFlannelOverlay")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym257 := z.EncBinary() - _ = yym257 + yym403 := z.EncBinary() + _ = yym403 if false { } else { r.EncodeBool(bool(x.ExperimentalFlannelOverlay)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[79] { - yy259 := &x.OutOfDiskTransitionFrequency - yym260 := z.EncBinary() - _ = yym260 + if yyq130[85] { + yy405 := &x.OutOfDiskTransitionFrequency + yym406 := z.EncBinary() + _ = yym406 if false { - } else if z.HasExtensions() && z.EncExt(yy259) { - } else if !yym260 && z.IsJSONHandle() { - z.EncJSONMarshal(yy259) + } else if z.HasExtensions() && z.EncExt(yy405) { + } else if !yym406 && z.IsJSONHandle() { + z.EncJSONMarshal(yy405) } else { - z.EncFallback(yy259) + z.EncFallback(yy405) } } else { r.EncodeNil() } } else { - if yyq2[79] { + if yyq130[85] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("outOfDiskTransitionFrequency")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy261 := &x.OutOfDiskTransitionFrequency - yym262 := z.EncBinary() - _ = yym262 + yy407 := &x.OutOfDiskTransitionFrequency + yym408 := z.EncBinary() + _ = yym408 if false { - } else if z.HasExtensions() && z.EncExt(yy261) { - } else if !yym262 && z.IsJSONHandle() { - z.EncJSONMarshal(yy261) + } else if z.HasExtensions() && z.EncExt(yy407) { + } else if !yym408 && z.IsJSONHandle() { + z.EncJSONMarshal(yy407) } else { - z.EncFallback(yy261) + z.EncFallback(yy407) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[80] { - yym264 := z.EncBinary() - _ = yym264 + if yyq130[86] { + yym410 := z.EncBinary() + _ = yym410 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) @@ -2887,25 +3091,25 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[80] { + if yyq130[86] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym265 := z.EncBinary() - _ = yym265 + yym411 := z.EncBinary() + _ = yym411 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeLabels == nil { r.EncodeNil() } else { - yym267 := z.EncBinary() - _ = yym267 + yym413 := z.EncBinary() + _ = yym413 if false { } else { z.F.EncMapStringStringV(x.NodeLabels, false, e) @@ -2918,18 +3122,18 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeLabels == nil { r.EncodeNil() } else { - yym268 := z.EncBinary() - _ = yym268 + yym414 := z.EncBinary() + _ = yym414 if false { } else { z.F.EncMapStringStringV(x.NodeLabels, false, e) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym270 := z.EncBinary() - _ = yym270 + yym416 := z.EncBinary() + _ = yym416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) @@ -2938,17 +3142,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nonMasqueradeCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym271 := z.EncBinary() - _ = yym271 + yym417 := z.EncBinary() + _ = yym417 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym273 := z.EncBinary() - _ = yym273 + yym419 := z.EncBinary() + _ = yym419 if false { } else { r.EncodeBool(bool(x.EnableCustomMetrics)) @@ -2957,18 +3161,18 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableCustomMetrics")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym274 := z.EncBinary() - _ = yym274 + yym420 := z.EncBinary() + _ = yym420 if false { } else { r.EncodeBool(bool(x.EnableCustomMetrics)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[84] { - yym276 := z.EncBinary() - _ = yym276 + if yyq130[90] { + yym422 := z.EncBinary() + _ = yym422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) @@ -2977,23 +3181,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[84] { + if yyq130[90] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionHard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym277 := z.EncBinary() - _ = yym277 + yym423 := z.EncBinary() + _ = yym423 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[85] { - yym279 := z.EncBinary() - _ = yym279 + if yyq130[91] { + yym425 := z.EncBinary() + _ = yym425 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) @@ -3002,23 +3206,23 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[85] { + if yyq130[91] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionSoft")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym280 := z.EncBinary() - _ = yym280 + yym426 := z.EncBinary() + _ = yym426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[86] { - yym282 := z.EncBinary() - _ = yym282 + if yyq130[92] { + yym428 := z.EncBinary() + _ = yym428 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) @@ -3027,56 +3231,56 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[86] { + if yyq130[92] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym283 := z.EncBinary() - _ = yym283 + yym429 := z.EncBinary() + _ = yym429 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[87] { - yy285 := &x.EvictionPressureTransitionPeriod - yym286 := z.EncBinary() - _ = yym286 + if yyq130[93] { + yy431 := &x.EvictionPressureTransitionPeriod + yym432 := z.EncBinary() + _ = yym432 if false { - } else if z.HasExtensions() && z.EncExt(yy285) { - } else if !yym286 && z.IsJSONHandle() { - z.EncJSONMarshal(yy285) + } else if z.HasExtensions() && z.EncExt(yy431) { + } else if !yym432 && z.IsJSONHandle() { + z.EncJSONMarshal(yy431) } else { - z.EncFallback(yy285) + z.EncFallback(yy431) } } else { r.EncodeNil() } } else { - if yyq2[87] { + if yyq130[93] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy287 := &x.EvictionPressureTransitionPeriod - yym288 := z.EncBinary() - _ = yym288 + yy433 := &x.EvictionPressureTransitionPeriod + yym434 := z.EncBinary() + _ = yym434 if false { - } else if z.HasExtensions() && z.EncExt(yy287) { - } else if !yym288 && z.IsJSONHandle() { - z.EncJSONMarshal(yy287) + } else if z.HasExtensions() && z.EncExt(yy433) { + } else if !yym434 && z.IsJSONHandle() { + z.EncJSONMarshal(yy433) } else { - z.EncFallback(yy287) + z.EncFallback(yy433) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[88] { - yym290 := z.EncBinary() - _ = yym290 + if yyq130[94] { + yym436 := z.EncBinary() + _ = yym436 if false { } else { r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) @@ -3085,22 +3289,47 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[88] { + if yyq130[94] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionMaxPodGracePeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym291 := z.EncBinary() - _ = yym291 + yym437 := z.EncBinary() + _ = yym437 if false { } else { r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) } } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym293 := z.EncBinary() - _ = yym293 + if yyq130[95] { + yym439 := z.EncBinary() + _ = yym439 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq130[95] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionMinimumReclaim")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym440 := z.EncBinary() + _ = yym440 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym442 := z.EncBinary() + _ = yym442 if false { } else { r.EncodeInt(int64(x.PodsPerCore)) @@ -3109,17 +3338,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podsPerCore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym294 := z.EncBinary() - _ = yym294 + yym443 := z.EncBinary() + _ = yym443 if false { } else { r.EncodeInt(int64(x.PodsPerCore)) } } - if yyr2 || yy2arr2 { + if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym296 := z.EncBinary() - _ = yym296 + yym445 := z.EncBinary() + _ = yym445 if false { } else { r.EncodeBool(bool(x.EnableControllerAttachDetach)) @@ -3128,14 +3357,181 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableControllerAttachDetach")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym297 := z.EncBinary() - _ = yym297 + yym446 := z.EncBinary() + _ = yym446 + if false { + } else { + r.EncodeBool(bool(x.EnableControllerAttachDetach)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.SystemReserved == nil { + r.EncodeNil() + } else { + yym448 := z.EncBinary() + _ = yym448 + if false { + } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { + } else { + h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.SystemReserved), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("systemReserved")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SystemReserved == nil { + r.EncodeNil() + } else { + yym449 := z.EncBinary() + _ = yym449 + if false { + } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { + } else { + h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.SystemReserved), e) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.KubeReserved == nil { + r.EncodeNil() + } else { + yym451 := z.EncBinary() + _ = yym451 + if false { + } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { + } else { + h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.KubeReserved), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeReserved")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.KubeReserved == nil { + r.EncodeNil() + } else { + yym452 := z.EncBinary() + _ = yym452 + if false { + } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { + } else { + h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.KubeReserved), e) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym454 := z.EncBinary() + _ = yym454 + if false { + } else { + r.EncodeBool(bool(x.ProtectKernelDefaults)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protectKernelDefaults")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + 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.EncodeBool(bool(x.EnableControllerAttachDetach)) + r.EncodeInt(int64(x.IPTablesDropBit)) } } - if yyr2 || yy2arr2 { + 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 { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3148,25 +3544,25 @@ func (x *KubeletConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym468 := z.DecBinary() + _ = yym468 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct469 := r.ContainerType() + if yyct469 == codecSelferValueTypeMap1234 { + yyl469 := r.ReadMapStart() + if yyl469 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl469, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct469 == codecSelferValueTypeArray1234 { + yyl469 := r.ReadArrayStart() + if yyl469 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl469, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3178,12 +3574,12 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -3192,59 +3588,71 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys470Slc = r.DecodeBytes(yys470Slc, true, true) + yys470 := string(yys470Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "config": + switch yys470 { + case "kind": if r.TryDecodeAsNil() { - x.Config = "" + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "podManifestPath": + if r.TryDecodeAsNil() { + x.PodManifestPath = "" } else { - x.Config = string(r.DecodeString()) + x.PodManifestPath = string(r.DecodeString()) } case "syncFrequency": if r.TryDecodeAsNil() { x.SyncFrequency = pkg1_unversioned.Duration{} } else { - yyv5 := &x.SyncFrequency - yym6 := z.DecBinary() - _ = yym6 + yyv474 := &x.SyncFrequency + yym475 := z.DecBinary() + _ = yym475 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv474) { + } else if !yym475 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv474) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv474, false) } } case "fileCheckFrequency": if r.TryDecodeAsNil() { x.FileCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv7 := &x.FileCheckFrequency - yym8 := z.DecBinary() - _ = yym8 + yyv476 := &x.FileCheckFrequency + yym477 := z.DecBinary() + _ = yym477 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv476) { + } else if !yym477 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv476) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv476, false) } } case "httpCheckFrequency": if r.TryDecodeAsNil() { x.HTTPCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv9 := &x.HTTPCheckFrequency - yym10 := z.DecBinary() - _ = yym10 + yyv478 := &x.HTTPCheckFrequency + yym479 := z.DecBinary() + _ = yym479 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv478) { + } else if !yym479 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv478) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv478, false) } } case "manifestURL": @@ -3275,21 +3683,21 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Port = 0 } else { - x.Port = uint(r.DecodeUint(codecSelferBitsize1234)) + x.Port = int32(r.DecodeInt(32)) } case "readOnlyPort": if r.TryDecodeAsNil() { x.ReadOnlyPort = 0 } else { - x.ReadOnlyPort = uint(r.DecodeUint(codecSelferBitsize1234)) + x.ReadOnlyPort = int32(r.DecodeInt(32)) } - case "tLSCertFile": + case "tlsCertFile": if r.TryDecodeAsNil() { x.TLSCertFile = "" } else { x.TLSCertFile = string(r.DecodeString()) } - case "tLSPrivateKeyFile": + case "tlsPrivateKeyFile": if r.TryDecodeAsNil() { x.TLSPrivateKeyFile = "" } else { @@ -3339,27 +3747,45 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } case "hostNetworkSources": if r.TryDecodeAsNil() { - x.HostNetworkSources = "" + x.HostNetworkSources = nil } else { - x.HostNetworkSources = string(r.DecodeString()) + yyv495 := &x.HostNetworkSources + yym496 := z.DecBinary() + _ = yym496 + if false { + } else { + z.F.DecSliceStringX(yyv495, false, d) + } } case "hostPIDSources": if r.TryDecodeAsNil() { - x.HostPIDSources = "" + x.HostPIDSources = nil } else { - x.HostPIDSources = string(r.DecodeString()) + yyv497 := &x.HostPIDSources + yym498 := z.DecBinary() + _ = yym498 + if false { + } else { + z.F.DecSliceStringX(yyv497, false, d) + } } case "hostIPCSources": if r.TryDecodeAsNil() { - x.HostIPCSources = "" + x.HostIPCSources = nil } else { - x.HostIPCSources = string(r.DecodeString()) + yyv499 := &x.HostIPCSources + yym500 := z.DecBinary() + _ = yym500 + if false { + } else { + z.F.DecSliceStringX(yyv499, false, d) + } } case "registryPullQPS": if r.TryDecodeAsNil() { x.RegistryPullQPS = 0 } else { - x.RegistryPullQPS = float64(r.DecodeFloat(false)) + x.RegistryPullQPS = int32(r.DecodeInt(32)) } case "registryBurst": if r.TryDecodeAsNil() { @@ -3371,7 +3797,7 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.EventRecordQPS = 0 } else { - x.EventRecordQPS = float32(r.DecodeFloat(true)) + x.EventRecordQPS = int32(r.DecodeInt(32)) } case "eventBurst": if r.TryDecodeAsNil() { @@ -3389,15 +3815,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.MinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv34 := &x.MinimumGCAge - yym35 := z.DecBinary() - _ = yym35 + yyv506 := &x.MinimumGCAge + yym507 := z.DecBinary() + _ = yym507 if false { - } else if z.HasExtensions() && z.DecExt(yyv34) { - } else if !yym35 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv34) + } else if z.HasExtensions() && z.DecExt(yyv506) { + } else if !yym507 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv506) } else { - z.DecFallback(yyv34, false) + z.DecFallback(yyv506, false) } } case "maxPerPodContainerCount": @@ -3416,7 +3842,7 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.CAdvisorPort = 0 } else { - x.CAdvisorPort = uint(r.DecodeUint(codecSelferBitsize1234)) + x.CAdvisorPort = int32(r.DecodeInt(32)) } case "healthzPort": if r.TryDecodeAsNil() { @@ -3464,45 +3890,45 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{} } else { - yyv46 := &x.StreamingConnectionIdleTimeout - yym47 := z.DecBinary() - _ = yym47 + yyv518 := &x.StreamingConnectionIdleTimeout + yym519 := z.DecBinary() + _ = yym519 if false { - } else if z.HasExtensions() && z.DecExt(yyv46) { - } else if !yym47 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv46) + } else if z.HasExtensions() && z.DecExt(yyv518) { + } else if !yym519 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv518) } else { - z.DecFallback(yyv46, false) + z.DecFallback(yyv518, false) } } case "nodeStatusUpdateFrequency": if r.TryDecodeAsNil() { x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} } else { - yyv48 := &x.NodeStatusUpdateFrequency - yym49 := z.DecBinary() - _ = yym49 + yyv520 := &x.NodeStatusUpdateFrequency + yym521 := z.DecBinary() + _ = yym521 if false { - } else if z.HasExtensions() && z.DecExt(yyv48) { - } else if !yym49 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv48) + } else if z.HasExtensions() && z.DecExt(yyv520) { + } else if !yym521 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv520) } else { - z.DecFallback(yyv48, false) + z.DecFallback(yyv520, false) } } case "imageMinimumGCAge": if r.TryDecodeAsNil() { x.ImageMinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv50 := &x.ImageMinimumGCAge - yym51 := z.DecBinary() - _ = yym51 + yyv522 := &x.ImageMinimumGCAge + yym523 := z.DecBinary() + _ = yym523 if false { - } else if z.HasExtensions() && z.DecExt(yyv50) { - } else if !yym51 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv50) + } else if z.HasExtensions() && z.DecExt(yyv522) { + } else if !yym523 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv522) } else { - z.DecFallback(yyv50, false) + z.DecFallback(yyv522, false) } } case "imageGCHighThresholdPercent": @@ -3527,15 +3953,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{} } else { - yyv55 := &x.VolumeStatsAggPeriod - yym56 := z.DecBinary() - _ = yym56 + yyv527 := &x.VolumeStatsAggPeriod + yym528 := z.DecBinary() + _ = yym528 if false { - } else if z.HasExtensions() && z.DecExt(yyv55) { - } else if !yym56 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv55) + } else if z.HasExtensions() && z.DecExt(yyv527) { + } else if !yym528 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv527) } else { - z.DecFallback(yyv55, false) + z.DecFallback(yyv527, false) } } case "networkPluginName": @@ -3544,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 = "" @@ -3574,13 +4006,19 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } else { x.KubeletCgroups = string(r.DecodeString()) } + case "CgroupsPerQOS": + if r.TryDecodeAsNil() { + x.CgroupsPerQOS = false + } else { + x.CgroupsPerQOS = bool(r.DecodeBool()) + } case "runtimeCgroups": if r.TryDecodeAsNil() { x.RuntimeCgroups = "" } else { x.RuntimeCgroups = string(r.DecodeString()) } - case "systemContainer": + case "systemCgroups": if r.TryDecodeAsNil() { x.SystemCgroups = "" } else { @@ -3598,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 { - yyv67 := &x.RuntimeRequestTimeout - yym68 := z.DecBinary() - _ = yym68 + yyv543 := &x.RuntimeRequestTimeout + yym544 := z.DecBinary() + _ = yym544 if false { - } else if z.HasExtensions() && z.DecExt(yyv67) { - } else if !yym68 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv67) + } else if z.HasExtensions() && z.DecExt(yyv543) { + } else if !yym544 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv543) } else { - z.DecFallback(yyv67, false) + z.DecFallback(yyv543, false) } } case "rktPath": @@ -3707,7 +4157,7 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.MaxOpenFiles = 0 } else { - x.MaxOpenFiles = uint64(r.DecodeUint(64)) + x.MaxOpenFiles = int64(r.DecodeInt(64)) } case "reconcileCIDR": if r.TryDecodeAsNil() { @@ -3731,7 +4181,7 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.KubeAPIQPS = 0 } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) + x.KubeAPIQPS = int32(r.DecodeInt(32)) } case "kubeAPIBurst": if r.TryDecodeAsNil() { @@ -3755,15 +4205,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{} } else { - yyv92 := &x.OutOfDiskTransitionFrequency - yym93 := z.DecBinary() - _ = yym93 + yyv568 := &x.OutOfDiskTransitionFrequency + yym569 := z.DecBinary() + _ = yym569 if false { - } else if z.HasExtensions() && z.DecExt(yyv92) { - } else if !yym93 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv92) + } else if z.HasExtensions() && z.DecExt(yyv568) { + } else if !yym569 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv568) } else { - z.DecFallback(yyv92, false) + z.DecFallback(yyv568, false) } } case "nodeIP": @@ -3776,12 +4226,12 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.NodeLabels = nil } else { - yyv95 := &x.NodeLabels - yym96 := z.DecBinary() - _ = yym96 + yyv571 := &x.NodeLabels + yym572 := z.DecBinary() + _ = yym572 if false { } else { - z.F.DecMapStringStringX(yyv95, false, d) + z.F.DecMapStringStringX(yyv571, false, d) } } case "nonMasqueradeCIDR": @@ -3818,15 +4268,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} } else { - yyv102 := &x.EvictionPressureTransitionPeriod - yym103 := z.DecBinary() - _ = yym103 + yyv578 := &x.EvictionPressureTransitionPeriod + yym579 := z.DecBinary() + _ = yym579 if false { - } else if z.HasExtensions() && z.DecExt(yyv102) { - } else if !yym103 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv102) + } else if z.HasExtensions() && z.DecExt(yyv578) { + } else if !yym579 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv578) } else { - z.DecFallback(yyv102, false) + z.DecFallback(yyv578, false) } } case "evictionMaxPodGracePeriod": @@ -3835,6 +4285,12 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } else { x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) } + case "evictionMinimumReclaim": + if r.TryDecodeAsNil() { + x.EvictionMinimumReclaim = "" + } else { + x.EvictionMinimumReclaim = string(r.DecodeString()) + } case "podsPerCore": if r.TryDecodeAsNil() { x.PodsPerCore = 0 @@ -3847,10 +4303,72 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } else { x.EnableControllerAttachDetach = bool(r.DecodeBool()) } + case "systemReserved": + if r.TryDecodeAsNil() { + x.SystemReserved = nil + } else { + yyv584 := &x.SystemReserved + yym585 := z.DecBinary() + _ = yym585 + if false { + } else if z.HasExtensions() && z.DecExt(yyv584) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv584), d) + } + } + case "kubeReserved": + if r.TryDecodeAsNil() { + x.KubeReserved = nil + } else { + yyv586 := &x.KubeReserved + yym587 := z.DecBinary() + _ = yym587 + if false { + } else if z.HasExtensions() && z.DecExt(yyv586) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv586), d) + } + } + case "protectKernelDefaults": + if r.TryDecodeAsNil() { + x.ProtectKernelDefaults = false + } 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys470) + } // end switch yys470 + } // end for yyj470 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3858,32 +4376,64 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj107 int - var yyb107 bool - var yyhl107 bool = l >= 0 - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + var yyj594 int + var yyb594 bool + var yyhl594 bool = l >= 0 + 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.Kind = "" + } else { + x.Kind = 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.APIVersion = "" } else { - yyb107 = r.CheckBreak() + x.APIVersion = string(r.DecodeString()) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Config = "" + x.PodManifestPath = "" } else { - x.Config = string(r.DecodeString()) + x.PodManifestPath = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3891,24 +4441,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.SyncFrequency = pkg1_unversioned.Duration{} } else { - yyv109 := &x.SyncFrequency - yym110 := z.DecBinary() - _ = yym110 + yyv598 := &x.SyncFrequency + yym599 := z.DecBinary() + _ = yym599 if false { - } else if z.HasExtensions() && z.DecExt(yyv109) { - } else if !yym110 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv109) + } else if z.HasExtensions() && z.DecExt(yyv598) { + } else if !yym599 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv598) } else { - z.DecFallback(yyv109, false) + z.DecFallback(yyv598, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3916,24 +4466,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.FileCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv111 := &x.FileCheckFrequency - yym112 := z.DecBinary() - _ = yym112 + yyv600 := &x.FileCheckFrequency + yym601 := z.DecBinary() + _ = yym601 if false { - } else if z.HasExtensions() && z.DecExt(yyv111) { - } else if !yym112 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv111) + } else if z.HasExtensions() && z.DecExt(yyv600) { + } else if !yym601 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv600) } else { - z.DecFallback(yyv111, false) + z.DecFallback(yyv600, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3941,24 +4491,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.HTTPCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv113 := &x.HTTPCheckFrequency - yym114 := z.DecBinary() - _ = yym114 + yyv602 := &x.HTTPCheckFrequency + yym603 := z.DecBinary() + _ = yym603 if false { - } else if z.HasExtensions() && z.DecExt(yyv113) { - } else if !yym114 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv113) + } else if z.HasExtensions() && z.DecExt(yyv602) { + } else if !yym603 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv602) } else { - z.DecFallback(yyv113, false) + z.DecFallback(yyv602, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3968,13 +4518,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ManifestURL = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3984,13 +4534,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ManifestURLHeader = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4000,13 +4550,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EnableServer = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4016,13 +4566,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Address = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4030,15 +4580,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Port = 0 } else { - x.Port = uint(r.DecodeUint(codecSelferBitsize1234)) + x.Port = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4046,15 +4596,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.ReadOnlyPort = 0 } else { - x.ReadOnlyPort = uint(r.DecodeUint(codecSelferBitsize1234)) + x.ReadOnlyPort = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4064,13 +4614,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.TLSCertFile = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4080,13 +4630,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.TLSPrivateKeyFile = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4096,13 +4646,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CertDirectory = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4112,13 +4662,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HostnameOverride = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4128,13 +4678,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.PodInfraContainerImage = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4144,13 +4694,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.DockerEndpoint = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4160,13 +4710,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RootDirectory = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4176,13 +4726,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.SeccompProfileRoot = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4192,61 +4742,79 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.AllowPrivileged = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.HostNetworkSources = "" + x.HostNetworkSources = nil } else { - x.HostNetworkSources = string(r.DecodeString()) + yyv619 := &x.HostNetworkSources + yym620 := z.DecBinary() + _ = yym620 + if false { + } else { + z.F.DecSliceStringX(yyv619, false, d) + } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.HostPIDSources = "" + x.HostPIDSources = nil } else { - x.HostPIDSources = string(r.DecodeString()) + yyv621 := &x.HostPIDSources + yym622 := z.DecBinary() + _ = yym622 + if false { + } else { + z.F.DecSliceStringX(yyv621, false, d) + } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.HostIPCSources = "" + x.HostIPCSources = nil } else { - x.HostIPCSources = string(r.DecodeString()) + yyv623 := &x.HostIPCSources + yym624 := z.DecBinary() + _ = yym624 + if false { + } else { + z.F.DecSliceStringX(yyv623, false, d) + } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4254,15 +4822,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.RegistryPullQPS = 0 } else { - x.RegistryPullQPS = float64(r.DecodeFloat(false)) + x.RegistryPullQPS = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4272,13 +4840,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegistryBurst = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4286,15 +4854,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.EventRecordQPS = 0 } else { - x.EventRecordQPS = float32(r.DecodeFloat(true)) + x.EventRecordQPS = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4304,13 +4872,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EventBurst = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4320,13 +4888,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EnableDebuggingHandlers = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4334,24 +4902,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.MinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv138 := &x.MinimumGCAge - yym139 := z.DecBinary() - _ = yym139 + yyv630 := &x.MinimumGCAge + yym631 := z.DecBinary() + _ = yym631 if false { - } else if z.HasExtensions() && z.DecExt(yyv138) { - } else if !yym139 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv138) + } else if z.HasExtensions() && z.DecExt(yyv630) { + } else if !yym631 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv630) } else { - z.DecFallback(yyv138, false) + z.DecFallback(yyv630, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4361,13 +4929,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxPerPodContainerCount = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4377,13 +4945,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxContainerCount = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4391,15 +4959,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.CAdvisorPort = 0 } else { - x.CAdvisorPort = uint(r.DecodeUint(codecSelferBitsize1234)) + x.CAdvisorPort = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4409,13 +4977,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HealthzPort = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4425,13 +4993,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HealthzBindAddress = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4441,13 +5009,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.OOMScoreAdj = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4457,13 +5025,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegisterNode = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4473,13 +5041,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ClusterDomain = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4489,13 +5057,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MasterServiceNamespace = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4505,13 +5073,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ClusterDNS = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4519,24 +5087,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{} } else { - yyv150 := &x.StreamingConnectionIdleTimeout - yym151 := z.DecBinary() - _ = yym151 + yyv642 := &x.StreamingConnectionIdleTimeout + yym643 := z.DecBinary() + _ = yym643 if false { - } else if z.HasExtensions() && z.DecExt(yyv150) { - } else if !yym151 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv150) + } else if z.HasExtensions() && z.DecExt(yyv642) { + } else if !yym643 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv642) } else { - z.DecFallback(yyv150, false) + z.DecFallback(yyv642, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4544,24 +5112,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} } else { - yyv152 := &x.NodeStatusUpdateFrequency - yym153 := z.DecBinary() - _ = yym153 + yyv644 := &x.NodeStatusUpdateFrequency + yym645 := z.DecBinary() + _ = yym645 if false { - } else if z.HasExtensions() && z.DecExt(yyv152) { - } else if !yym153 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv152) + } else if z.HasExtensions() && z.DecExt(yyv644) { + } else if !yym645 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv644) } else { - z.DecFallback(yyv152, false) + z.DecFallback(yyv644, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4569,24 +5137,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.ImageMinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv154 := &x.ImageMinimumGCAge - yym155 := z.DecBinary() - _ = yym155 + yyv646 := &x.ImageMinimumGCAge + yym647 := z.DecBinary() + _ = yym647 if false { - } else if z.HasExtensions() && z.DecExt(yyv154) { - } else if !yym155 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv154) + } else if z.HasExtensions() && z.DecExt(yyv646) { + } else if !yym647 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv646) } else { - z.DecFallback(yyv154, false) + z.DecFallback(yyv646, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4596,13 +5164,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4612,13 +5180,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4628,13 +5196,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4642,24 +5210,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{} } else { - yyv159 := &x.VolumeStatsAggPeriod - yym160 := z.DecBinary() - _ = yym160 + yyv651 := &x.VolumeStatsAggPeriod + yym652 := z.DecBinary() + _ = yym652 if false { - } else if z.HasExtensions() && z.DecExt(yyv159) { - } else if !yym160 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv159) + } else if z.HasExtensions() && z.DecExt(yyv651) { + } else if !yym652 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv651) } else { - z.DecFallback(yyv159, false) + z.DecFallback(yyv651, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4669,13 +5237,29 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NetworkPluginName = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > 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.NetworkPluginMTU = 0 + } else { + x.NetworkPluginMTU = int32(r.DecodeInt(32)) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4685,13 +5269,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NetworkPluginDir = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4701,13 +5285,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.VolumePluginDir = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4717,13 +5301,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CloudProvider = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4733,13 +5317,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CloudConfigFile = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4749,13 +5333,29 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.KubeletCgroups = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > 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.CgroupsPerQOS = false + } else { + x.CgroupsPerQOS = bool(r.DecodeBool()) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4765,13 +5365,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RuntimeCgroups = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4781,13 +5381,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.SystemCgroups = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4797,13 +5397,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CgroupRoot = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4813,13 +5413,45 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ContainerRuntime = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > 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.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 { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4827,24 +5459,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.RuntimeRequestTimeout = pkg1_unversioned.Duration{} } else { - yyv171 := &x.RuntimeRequestTimeout - yym172 := z.DecBinary() - _ = yym172 + yyv667 := &x.RuntimeRequestTimeout + yym668 := z.DecBinary() + _ = yym668 if false { - } else if z.HasExtensions() && z.DecExt(yyv171) { - } else if !yym172 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv171) + } else if z.HasExtensions() && z.DecExt(yyv667) { + } else if !yym668 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv667) } else { - z.DecFallback(yyv171, false) + z.DecFallback(yyv667, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4854,13 +5486,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RktPath = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4870,13 +5502,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RktAPIEndpoint = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4886,13 +5518,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RktStage1Image = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4902,13 +5534,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.LockFilePath = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4918,13 +5550,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ExitOnLockContention = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4934,13 +5566,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ConfigureCBR0 = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4950,13 +5582,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HairpinMode = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4966,13 +5598,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.BabysitDaemons = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4982,13 +5614,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxPods = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4998,13 +5630,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NvidiaGPUs = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5014,13 +5646,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.DockerExecHandlerName = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5030,13 +5662,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.PodCIDR = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5046,13 +5678,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ResolverConfig = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5062,13 +5694,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CPUCFSQuota = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5078,13 +5710,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Containerized = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5092,15 +5724,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.MaxOpenFiles = 0 } else { - x.MaxOpenFiles = uint64(r.DecodeUint(64)) + x.MaxOpenFiles = int64(r.DecodeInt(64)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5110,13 +5742,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ReconcileCIDR = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5126,13 +5758,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegisterSchedulable = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5142,13 +5774,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ContentType = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5156,15 +5788,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.KubeAPIQPS = 0 } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) + x.KubeAPIQPS = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5174,13 +5806,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.KubeAPIBurst = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5190,13 +5822,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.SerializeImagePulls = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5206,13 +5838,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ExperimentalFlannelOverlay = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5220,24 +5852,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{} } else { - yyv196 := &x.OutOfDiskTransitionFrequency - yym197 := z.DecBinary() - _ = yym197 + yyv692 := &x.OutOfDiskTransitionFrequency + yym693 := z.DecBinary() + _ = yym693 if false { - } else if z.HasExtensions() && z.DecExt(yyv196) { - } else if !yym197 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv196) + } else if z.HasExtensions() && z.DecExt(yyv692) { + } else if !yym693 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv692) } else { - z.DecFallback(yyv196, false) + z.DecFallback(yyv692, false) } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5245,195 +5877,343 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.NodeIP = "" } else { - x.NodeIP = string(r.DecodeString()) + x.NodeIP = 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.NodeLabels = nil + } else { + yyv695 := &x.NodeLabels + yym696 := z.DecBinary() + _ = yym696 + if false { + } else { + z.F.DecMapStringStringX(yyv695, false, d) + } + } + 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.NonMasqueradeCIDR = "" + } else { + x.NonMasqueradeCIDR = 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.EnableCustomMetrics = false + } else { + x.EnableCustomMetrics = 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.EvictionHard = "" + } else { + x.EvictionHard = 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.EvictionSoft = "" + } else { + x.EvictionSoft = 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.EvictionSoftGracePeriod = "" + } else { + x.EvictionSoftGracePeriod = 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.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} + } else { + yyv702 := &x.EvictionPressureTransitionPeriod + yym703 := z.DecBinary() + _ = yym703 + if false { + } else if z.HasExtensions() && z.DecExt(yyv702) { + } else if !yym703 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv702) + } else { + z.DecFallback(yyv702, false) + } + } + 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.EvictionMaxPodGracePeriod = 0 + } else { + x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.NodeLabels = nil + x.EvictionMinimumReclaim = "" } else { - yyv199 := &x.NodeLabels - yym200 := z.DecBinary() - _ = yym200 - if false { - } else { - z.F.DecMapStringStringX(yyv199, false, d) - } + x.EvictionMinimumReclaim = string(r.DecodeString()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.NonMasqueradeCIDR = "" + x.PodsPerCore = 0 } else { - x.NonMasqueradeCIDR = string(r.DecodeString()) + x.PodsPerCore = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EnableCustomMetrics = false + x.EnableControllerAttachDetach = false } else { - x.EnableCustomMetrics = bool(r.DecodeBool()) + x.EnableControllerAttachDetach = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EvictionHard = "" + x.SystemReserved = nil } else { - x.EvictionHard = string(r.DecodeString()) + yyv708 := &x.SystemReserved + yym709 := z.DecBinary() + _ = yym709 + if false { + } else if z.HasExtensions() && z.DecExt(yyv708) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv708), d) + } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EvictionSoft = "" + x.KubeReserved = nil } else { - x.EvictionSoft = string(r.DecodeString()) + yyv710 := &x.KubeReserved + yym711 := z.DecBinary() + _ = yym711 + if false { + } else if z.HasExtensions() && z.DecExt(yyv710) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv710), d) + } } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EvictionSoftGracePeriod = "" + x.ProtectKernelDefaults = false } else { - x.EvictionSoftGracePeriod = string(r.DecodeString()) + x.ProtectKernelDefaults = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} + x.MakeIPTablesUtilChains = false } else { - yyv206 := &x.EvictionPressureTransitionPeriod - yym207 := z.DecBinary() - _ = yym207 - if false { - } else if z.HasExtensions() && z.DecExt(yyv206) { - } else if !yym207 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv206) - } else { - z.DecFallback(yyv206, false) - } + x.MakeIPTablesUtilChains = bool(r.DecodeBool()) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EvictionMaxPodGracePeriod = 0 + x.IPTablesMasqueradeBit = 0 } else { - x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) + x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.PodsPerCore = 0 + x.IPTablesDropBit = 0 } else { - x.PodsPerCore = int32(r.DecodeInt(32)) + x.IPTablesDropBit = int32(r.DecodeInt(32)) } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.EnableControllerAttachDetach = false + x.AllowedUnsafeSysctls = nil } else { - x.EnableControllerAttachDetach = bool(r.DecodeBool()) + yyv716 := &x.AllowedUnsafeSysctls + yym717 := z.DecBinary() + _ = yym717 + if false { + } else { + z.F.DecSliceStringX(yyv716, false, d) + } } for { - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb107 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb107 { + if yyb594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj107-1, "") + z.DecStructFieldNotFound(yyj594-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5445,35 +6225,85 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym718 := z.EncBinary() + _ = yym718 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[12] = x.Kind != "" - yyq2[13] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 12 - for _, b := range yyq2 { + yynn719 = 12 + for _, b := range yyq719 { if b { - yynn2++ + yynn719++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn719) + yynn719 = 0 } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq719[0] { + yym721 := z.EncBinary() + _ = yym721 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq719[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym722 := z.EncBinary() + _ = yym722 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr719 || yy2arr719 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq719[1] { + yym724 := z.EncBinary() + _ = yym724 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq719[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym725 := z.EncBinary() + _ = yym725 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym727 := z.EncBinary() + _ = yym727 if false { } else { r.EncodeInt(int64(x.Port)) @@ -5482,17 +6312,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym728 := z.EncBinary() + _ = yym728 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym730 := z.EncBinary() + _ = yym730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -5501,17 +6331,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym731 := z.EncBinary() + _ = yym731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym733 := z.EncBinary() + _ = yym733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) @@ -5520,17 +6350,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("algorithmProvider")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym734 := z.EncBinary() + _ = yym734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym736 := z.EncBinary() + _ = yym736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) @@ -5539,17 +6369,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("policyConfigFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym737 := z.EncBinary() + _ = yym737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym739 := z.EncBinary() + _ = yym739 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) @@ -5558,17 +6388,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym740 := z.EncBinary() + _ = yym740 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 + yym742 := z.EncBinary() + _ = yym742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) @@ -5577,17 +6407,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("contentType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym743 := z.EncBinary() + _ = yym743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym745 := z.EncBinary() + _ = yym745 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) @@ -5596,17 +6426,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym746 := z.EncBinary() + _ = yym746 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym25 := z.EncBinary() - _ = yym25 + yym748 := z.EncBinary() + _ = yym748 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) @@ -5615,17 +6445,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym749 := z.EncBinary() + _ = yym749 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym28 := z.EncBinary() - _ = yym28 + yym751 := z.EncBinary() + _ = yym751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) @@ -5634,17 +6464,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("schedulerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym752 := z.EncBinary() + _ = yym752 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym31 := z.EncBinary() - _ = yym31 + yym754 := z.EncBinary() + _ = yym754 if false { } else { r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) @@ -5653,17 +6483,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hardPodAffinitySymmetricWeight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym32 := z.EncBinary() - _ = yym32 + yym755 := z.EncBinary() + _ = yym755 if false { } else { r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym34 := z.EncBinary() - _ = yym34 + yym757 := z.EncBinary() + _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) @@ -5672,75 +6502,25 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureDomains")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym35 := z.EncBinary() - _ = yym35 + yym758 := z.EncBinary() + _ = yym758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) } } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy37 := &x.LeaderElection - yy37.CodecEncodeSelf(e) + yy760 := &x.LeaderElection + yy760.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy39 := &x.LeaderElection - yy39.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } + yy761 := &x.LeaderElection + yy761.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5753,25 +6533,25 @@ func (x *KubeSchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym762 := z.DecBinary() + _ = yym762 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct763 := r.ContainerType() + if yyct763 == codecSelferValueTypeMap1234 { + yyl763 := r.ReadMapStart() + if yyl763 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl763, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct763 == codecSelferValueTypeArray1234 { + yyl763 := r.ReadArrayStart() + if yyl763 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl763, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5783,12 +6563,12 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -5797,10 +6577,22 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys764Slc = r.DecodeBytes(yys764Slc, true, true) + yys764 := string(yys764Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys764 { + 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 "port": if r.TryDecodeAsNil() { x.Port = 0 @@ -5871,25 +6663,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978. if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv15 := &x.LeaderElection - yyv15.CodecDecodeSelf(d) - } - 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()) + yyv778 := &x.LeaderElection + yyv778.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys764) + } // end switch yys764 + } // end for yyj764 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5897,16 +6677,48 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + var yyj779 int + var yyb779 bool + var yyhl779 bool = l >= 0 + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l + } else { + yyb779 = r.CheckBreak() + } + if yyb779 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l + } else { + yyb779 = r.CheckBreak() + } + if yyb779 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5916,13 +6728,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Port = int32(r.DecodeInt(32)) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5932,13 +6744,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Address = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5948,13 +6760,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.AlgorithmProvider = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5964,13 +6776,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.PolicyConfigFile = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5980,13 +6792,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.EnableProfiling = bool(r.DecodeBool()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5996,13 +6808,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.ContentType = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6012,13 +6824,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.KubeAPIQPS = float32(r.DecodeFloat(true)) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6028,13 +6840,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.KubeAPIBurst = int32(r.DecodeInt(32)) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6044,13 +6856,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.SchedulerName = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6060,13 +6872,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234)) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6076,13 +6888,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.FailureDomains = string(r.DecodeString()) } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6090,53 +6902,21 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv30 := &x.LeaderElection - yyv30.CodecDecodeSelf(d) - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) + yyv793 := &x.LeaderElection + yyv793.CodecDecodeSelf(d) } for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb18 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb18 { + if yyb779 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-1, "") + z.DecStructFieldNotFound(yyj779-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6148,33 +6928,33 @@ func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym794 := z.EncBinary() + _ = yym794 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 4 - for _, b := range yyq2 { + yynn795 = 4 + for _, b := range yyq795 { if b { - yynn2++ + yynn795++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn795) + yynn795 = 0 } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym797 := z.EncBinary() + _ = yym797 if false { } else { r.EncodeBool(bool(x.LeaderElect)) @@ -6183,95 +6963,95 @@ func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaderElect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym798 := z.EncBinary() + _ = yym798 if false { } else { r.EncodeBool(bool(x.LeaderElect)) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.LeaseDuration - yym8 := z.EncBinary() - _ = yym8 + yy800 := &x.LeaseDuration + yym801 := z.EncBinary() + _ = yym801 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy800) { + } else if !yym801 && z.IsJSONHandle() { + z.EncJSONMarshal(yy800) } else { - z.EncFallback(yy7) + z.EncFallback(yy800) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaseDuration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.LeaseDuration - yym10 := z.EncBinary() - _ = yym10 + yy802 := &x.LeaseDuration + yym803 := z.EncBinary() + _ = yym803 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy802) { + } else if !yym803 && z.IsJSONHandle() { + z.EncJSONMarshal(yy802) } else { - z.EncFallback(yy9) + z.EncFallback(yy802) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy12 := &x.RenewDeadline - yym13 := z.EncBinary() - _ = yym13 + yy805 := &x.RenewDeadline + yym806 := z.EncBinary() + _ = yym806 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy805) { + } else if !yym806 && z.IsJSONHandle() { + z.EncJSONMarshal(yy805) } else { - z.EncFallback(yy12) + z.EncFallback(yy805) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("renewDeadline")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.RenewDeadline - yym15 := z.EncBinary() - _ = yym15 + yy807 := &x.RenewDeadline + yym808 := z.EncBinary() + _ = yym808 if false { - } else if z.HasExtensions() && z.EncExt(yy14) { - } else if !yym15 && z.IsJSONHandle() { - z.EncJSONMarshal(yy14) + } else if z.HasExtensions() && z.EncExt(yy807) { + } else if !yym808 && z.IsJSONHandle() { + z.EncJSONMarshal(yy807) } else { - z.EncFallback(yy14) + z.EncFallback(yy807) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy17 := &x.RetryPeriod - yym18 := z.EncBinary() - _ = yym18 + yy810 := &x.RetryPeriod + yym811 := z.EncBinary() + _ = yym811 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy810) { + } else if !yym811 && z.IsJSONHandle() { + z.EncJSONMarshal(yy810) } else { - z.EncFallback(yy17) + z.EncFallback(yy810) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("retryPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy19 := &x.RetryPeriod - yym20 := z.EncBinary() - _ = yym20 + yy812 := &x.RetryPeriod + yym813 := z.EncBinary() + _ = yym813 if false { - } else if z.HasExtensions() && z.EncExt(yy19) { - } else if !yym20 && z.IsJSONHandle() { - z.EncJSONMarshal(yy19) + } else if z.HasExtensions() && z.EncExt(yy812) { + } else if !yym813 && z.IsJSONHandle() { + z.EncJSONMarshal(yy812) } else { - z.EncFallback(yy19) + z.EncFallback(yy812) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6284,25 +7064,25 @@ func (x *LeaderElectionConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym814 := z.DecBinary() + _ = yym814 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct815 := r.ContainerType() + if yyct815 == codecSelferValueTypeMap1234 { + yyl815 := r.ReadMapStart() + if yyl815 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl815, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct815 == codecSelferValueTypeArray1234 { + yyl815 := r.ReadArrayStart() + if yyl815 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl815, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6314,12 +7094,12 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -6328,10 +7108,10 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys816Slc = r.DecodeBytes(yys816Slc, true, true) + yys816 := string(yys816Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys816 { case "leaderElect": if r.TryDecodeAsNil() { x.LeaderElect = false @@ -6342,51 +7122,51 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.LeaseDuration = pkg1_unversioned.Duration{} } else { - yyv5 := &x.LeaseDuration - yym6 := z.DecBinary() - _ = yym6 + yyv818 := &x.LeaseDuration + yym819 := z.DecBinary() + _ = yym819 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv818) { + } else if !yym819 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv818) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv818, false) } } case "renewDeadline": if r.TryDecodeAsNil() { x.RenewDeadline = pkg1_unversioned.Duration{} } else { - yyv7 := &x.RenewDeadline - yym8 := z.DecBinary() - _ = yym8 + yyv820 := &x.RenewDeadline + yym821 := z.DecBinary() + _ = yym821 if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else if !yym8 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv7) + } else if z.HasExtensions() && z.DecExt(yyv820) { + } else if !yym821 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv820) } else { - z.DecFallback(yyv7, false) + z.DecFallback(yyv820, false) } } case "retryPeriod": if r.TryDecodeAsNil() { x.RetryPeriod = pkg1_unversioned.Duration{} } else { - yyv9 := &x.RetryPeriod - yym10 := z.DecBinary() - _ = yym10 + yyv822 := &x.RetryPeriod + yym823 := z.DecBinary() + _ = yym823 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv822) { + } else if !yym823 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv822) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv822, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys816) + } // end switch yys816 + } // end for yyj816 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6394,16 +7174,16 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj824 int + var yyb824 bool + var yyhl824 bool = l >= 0 + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb11 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb11 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6413,13 +7193,13 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 } else { x.LeaderElect = bool(r.DecodeBool()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb11 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb11 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6427,24 +7207,24 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.LeaseDuration = pkg1_unversioned.Duration{} } else { - yyv13 := &x.LeaseDuration - yym14 := z.DecBinary() - _ = yym14 + yyv826 := &x.LeaseDuration + yym827 := z.DecBinary() + _ = yym827 if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) + } else if z.HasExtensions() && z.DecExt(yyv826) { + } else if !yym827 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv826) } else { - z.DecFallback(yyv13, false) + z.DecFallback(yyv826, false) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb11 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb11 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6452,24 +7232,24 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.RenewDeadline = pkg1_unversioned.Duration{} } else { - yyv15 := &x.RenewDeadline - yym16 := z.DecBinary() - _ = yym16 + yyv828 := &x.RenewDeadline + yym829 := z.DecBinary() + _ = yym829 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv828) { + } else if !yym829 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv828) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv828, false) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb11 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb11 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6477,29 +7257,29 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.RetryPeriod = pkg1_unversioned.Duration{} } else { - yyv17 := &x.RetryPeriod - yym18 := z.DecBinary() - _ = yym18 + yyv830 := &x.RetryPeriod + yym831 := z.DecBinary() + _ = yym831 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv830) { + } else if !yym831 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv830) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv830, false) } } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb11 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb11 { + if yyb824 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj824-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6511,35 +7291,85 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym832 := z.EncBinary() + _ = yym832 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [50]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[48] = x.Kind != "" - yyq2[49] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(50) - } else { - yynn2 = 48 - for _, b := range yyq2 { + 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 { + yynn833 = 57 + for _, b := range yyq833 { if b { - yynn2++ + yynn833++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn833) + yynn833 = 0 } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq833[0] { + yym835 := z.EncBinary() + _ = yym835 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq833[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym836 := z.EncBinary() + _ = yym836 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + if yyq833[1] { + yym838 := z.EncBinary() + _ = yym838 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq833[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym839 := z.EncBinary() + _ = yym839 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym841 := z.EncBinary() + _ = yym841 if false { } else { r.EncodeInt(int64(x.Port)) @@ -6548,17 +7378,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym842 := z.EncBinary() + _ = yym842 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym844 := z.EncBinary() + _ = yym844 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -6567,17 +7397,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym845 := z.EncBinary() + _ = yym845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym847 := z.EncBinary() + _ = yym847 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) @@ -6586,17 +7416,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym848 := z.EncBinary() + _ = yym848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym850 := z.EncBinary() + _ = yym850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) @@ -6605,17 +7435,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym851 := z.EncBinary() + _ = yym851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym853 := z.EncBinary() + _ = yym853 if false { } else { r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) @@ -6624,17 +7454,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentEndpointSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym854 := z.EncBinary() + _ = yym854 if false { } else { r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 + yym856 := z.EncBinary() + _ = yym856 if false { } else { r.EncodeInt(int64(x.ConcurrentRSSyncs)) @@ -6643,17 +7473,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentRSSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym857 := z.EncBinary() + _ = yym857 if false { } else { r.EncodeInt(int64(x.ConcurrentRSSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym859 := z.EncBinary() + _ = yym859 if false { } else { r.EncodeInt(int64(x.ConcurrentRCSyncs)) @@ -6662,17 +7492,36 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentRCSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym860 := z.EncBinary() + _ = yym860 if false { } else { r.EncodeInt(int64(x.ConcurrentRCSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym862 := z.EncBinary() + _ = yym862 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentServiceSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentServiceSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym863 := z.EncBinary() + _ = yym863 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentServiceSyncs)) + } + } + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym25 := z.EncBinary() - _ = yym25 + yym865 := z.EncBinary() + _ = yym865 if false { } else { r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) @@ -6681,17 +7530,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentResourceQuotaSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym866 := z.EncBinary() + _ = yym866 if false { } else { r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym28 := z.EncBinary() - _ = yym28 + yym868 := z.EncBinary() + _ = yym868 if false { } else { r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) @@ -6700,17 +7549,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentDeploymentSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym869 := z.EncBinary() + _ = yym869 if false { } else { r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym31 := z.EncBinary() - _ = yym31 + yym871 := z.EncBinary() + _ = yym871 if false { } else { r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) @@ -6719,17 +7568,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentDaemonSetSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym32 := z.EncBinary() - _ = yym32 + yym872 := z.EncBinary() + _ = yym872 if false { } else { r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym34 := z.EncBinary() - _ = yym34 + yym874 := z.EncBinary() + _ = yym874 if false { } else { r.EncodeInt(int64(x.ConcurrentJobSyncs)) @@ -6738,17 +7587,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentJobSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym35 := z.EncBinary() - _ = yym35 + yym875 := z.EncBinary() + _ = yym875 if false { } else { r.EncodeInt(int64(x.ConcurrentJobSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym37 := z.EncBinary() - _ = yym37 + yym877 := z.EncBinary() + _ = yym877 if false { } else { r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) @@ -6757,17 +7606,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentNamespaceSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym38 := z.EncBinary() - _ = yym38 + yym878 := z.EncBinary() + _ = yym878 if false { } else { r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym40 := z.EncBinary() - _ = yym40 + yym880 := z.EncBinary() + _ = yym880 if false { } else { r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) @@ -6776,17 +7625,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentSATokenSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym41 := z.EncBinary() - _ = yym41 + yym881 := z.EncBinary() + _ = yym881 if false { } else { r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym43 := z.EncBinary() - _ = yym43 + yym883 := z.EncBinary() + _ = yym883 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRC)) @@ -6795,17 +7644,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym44 := z.EncBinary() - _ = yym44 + yym884 := z.EncBinary() + _ = yym884 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRC)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym46 := z.EncBinary() - _ = yym46 + yym886 := z.EncBinary() + _ = yym886 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRS)) @@ -6814,17 +7663,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym47 := z.EncBinary() - _ = yym47 + yym887 := z.EncBinary() + _ = yym887 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRS)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym49 := z.EncBinary() - _ = yym49 + yym889 := z.EncBinary() + _ = yym889 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) @@ -6833,179 +7682,179 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForDaemonSet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym50 := z.EncBinary() - _ = yym50 + yym890 := z.EncBinary() + _ = yym890 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy52 := &x.ServiceSyncPeriod - yym53 := z.EncBinary() - _ = yym53 + yy892 := &x.ServiceSyncPeriod + yym893 := z.EncBinary() + _ = yym893 if false { - } else if z.HasExtensions() && z.EncExt(yy52) { - } else if !yym53 && z.IsJSONHandle() { - z.EncJSONMarshal(yy52) + } else if z.HasExtensions() && z.EncExt(yy892) { + } else if !yym893 && z.IsJSONHandle() { + z.EncJSONMarshal(yy892) } else { - z.EncFallback(yy52) + z.EncFallback(yy892) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy54 := &x.ServiceSyncPeriod - yym55 := z.EncBinary() - _ = yym55 + yy894 := &x.ServiceSyncPeriod + yym895 := z.EncBinary() + _ = yym895 if false { - } else if z.HasExtensions() && z.EncExt(yy54) { - } else if !yym55 && z.IsJSONHandle() { - z.EncJSONMarshal(yy54) + } else if z.HasExtensions() && z.EncExt(yy894) { + } else if !yym895 && z.IsJSONHandle() { + z.EncJSONMarshal(yy894) } else { - z.EncFallback(yy54) + z.EncFallback(yy894) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy57 := &x.NodeSyncPeriod - yym58 := z.EncBinary() - _ = yym58 + yy897 := &x.NodeSyncPeriod + yym898 := z.EncBinary() + _ = yym898 if false { - } else if z.HasExtensions() && z.EncExt(yy57) { - } else if !yym58 && z.IsJSONHandle() { - z.EncJSONMarshal(yy57) + } else if z.HasExtensions() && z.EncExt(yy897) { + } else if !yym898 && z.IsJSONHandle() { + z.EncJSONMarshal(yy897) } else { - z.EncFallback(yy57) + z.EncFallback(yy897) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy59 := &x.NodeSyncPeriod - yym60 := z.EncBinary() - _ = yym60 + yy899 := &x.NodeSyncPeriod + yym900 := z.EncBinary() + _ = yym900 if false { - } else if z.HasExtensions() && z.EncExt(yy59) { - } else if !yym60 && z.IsJSONHandle() { - z.EncJSONMarshal(yy59) + } else if z.HasExtensions() && z.EncExt(yy899) { + } else if !yym900 && z.IsJSONHandle() { + z.EncJSONMarshal(yy899) } else { - z.EncFallback(yy59) + z.EncFallback(yy899) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy62 := &x.ResourceQuotaSyncPeriod - yym63 := z.EncBinary() - _ = yym63 + yy902 := &x.ResourceQuotaSyncPeriod + yym903 := z.EncBinary() + _ = yym903 if false { - } else if z.HasExtensions() && z.EncExt(yy62) { - } else if !yym63 && z.IsJSONHandle() { - z.EncJSONMarshal(yy62) + } else if z.HasExtensions() && z.EncExt(yy902) { + } else if !yym903 && z.IsJSONHandle() { + z.EncJSONMarshal(yy902) } else { - z.EncFallback(yy62) + z.EncFallback(yy902) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy64 := &x.ResourceQuotaSyncPeriod - yym65 := z.EncBinary() - _ = yym65 + yy904 := &x.ResourceQuotaSyncPeriod + yym905 := z.EncBinary() + _ = yym905 if false { - } else if z.HasExtensions() && z.EncExt(yy64) { - } else if !yym65 && z.IsJSONHandle() { - z.EncJSONMarshal(yy64) + } else if z.HasExtensions() && z.EncExt(yy904) { + } else if !yym905 && z.IsJSONHandle() { + z.EncJSONMarshal(yy904) } else { - z.EncFallback(yy64) + z.EncFallback(yy904) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy67 := &x.NamespaceSyncPeriod - yym68 := z.EncBinary() - _ = yym68 + yy907 := &x.NamespaceSyncPeriod + yym908 := z.EncBinary() + _ = yym908 if false { - } else if z.HasExtensions() && z.EncExt(yy67) { - } else if !yym68 && z.IsJSONHandle() { - z.EncJSONMarshal(yy67) + } else if z.HasExtensions() && z.EncExt(yy907) { + } else if !yym908 && z.IsJSONHandle() { + z.EncJSONMarshal(yy907) } else { - z.EncFallback(yy67) + z.EncFallback(yy907) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy69 := &x.NamespaceSyncPeriod - yym70 := z.EncBinary() - _ = yym70 + yy909 := &x.NamespaceSyncPeriod + yym910 := z.EncBinary() + _ = yym910 if false { - } else if z.HasExtensions() && z.EncExt(yy69) { - } else if !yym70 && z.IsJSONHandle() { - z.EncJSONMarshal(yy69) + } else if z.HasExtensions() && z.EncExt(yy909) { + } else if !yym910 && z.IsJSONHandle() { + z.EncJSONMarshal(yy909) } else { - z.EncFallback(yy69) + z.EncFallback(yy909) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy72 := &x.PVClaimBinderSyncPeriod - yym73 := z.EncBinary() - _ = yym73 + yy912 := &x.PVClaimBinderSyncPeriod + yym913 := z.EncBinary() + _ = yym913 if false { - } else if z.HasExtensions() && z.EncExt(yy72) { - } else if !yym73 && z.IsJSONHandle() { - z.EncJSONMarshal(yy72) + } else if z.HasExtensions() && z.EncExt(yy912) { + } else if !yym913 && z.IsJSONHandle() { + z.EncJSONMarshal(yy912) } else { - z.EncFallback(yy72) + z.EncFallback(yy912) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy74 := &x.PVClaimBinderSyncPeriod - yym75 := z.EncBinary() - _ = yym75 + yy914 := &x.PVClaimBinderSyncPeriod + yym915 := z.EncBinary() + _ = yym915 if false { - } else if z.HasExtensions() && z.EncExt(yy74) { - } else if !yym75 && z.IsJSONHandle() { - z.EncJSONMarshal(yy74) + } else if z.HasExtensions() && z.EncExt(yy914) { + } else if !yym915 && z.IsJSONHandle() { + z.EncJSONMarshal(yy914) } else { - z.EncFallback(yy74) + z.EncFallback(yy914) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy77 := &x.MinResyncPeriod - yym78 := z.EncBinary() - _ = yym78 + yy917 := &x.MinResyncPeriod + yym918 := z.EncBinary() + _ = yym918 if false { - } else if z.HasExtensions() && z.EncExt(yy77) { - } else if !yym78 && z.IsJSONHandle() { - z.EncJSONMarshal(yy77) + } else if z.HasExtensions() && z.EncExt(yy917) { + } else if !yym918 && z.IsJSONHandle() { + z.EncJSONMarshal(yy917) } else { - z.EncFallback(yy77) + z.EncFallback(yy917) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy79 := &x.MinResyncPeriod - yym80 := z.EncBinary() - _ = yym80 + yy919 := &x.MinResyncPeriod + yym920 := z.EncBinary() + _ = yym920 if false { - } else if z.HasExtensions() && z.EncExt(yy79) { - } else if !yym80 && z.IsJSONHandle() { - z.EncJSONMarshal(yy79) + } else if z.HasExtensions() && z.EncExt(yy919) { + } else if !yym920 && z.IsJSONHandle() { + z.EncJSONMarshal(yy919) } else { - z.EncFallback(yy79) + z.EncFallback(yy919) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym82 := z.EncBinary() - _ = yym82 + yym922 := z.EncBinary() + _ = yym922 if false { } else { r.EncodeInt(int64(x.TerminatedPodGCThreshold)) @@ -7014,98 +7863,98 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym83 := z.EncBinary() - _ = yym83 + yym923 := z.EncBinary() + _ = yym923 if false { } else { r.EncodeInt(int64(x.TerminatedPodGCThreshold)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy85 := &x.HorizontalPodAutoscalerSyncPeriod - yym86 := z.EncBinary() - _ = yym86 + yy925 := &x.HorizontalPodAutoscalerSyncPeriod + yym926 := z.EncBinary() + _ = yym926 if false { - } else if z.HasExtensions() && z.EncExt(yy85) { - } else if !yym86 && z.IsJSONHandle() { - z.EncJSONMarshal(yy85) + } else if z.HasExtensions() && z.EncExt(yy925) { + } else if !yym926 && z.IsJSONHandle() { + z.EncJSONMarshal(yy925) } else { - z.EncFallback(yy85) + z.EncFallback(yy925) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy87 := &x.HorizontalPodAutoscalerSyncPeriod - yym88 := z.EncBinary() - _ = yym88 + yy927 := &x.HorizontalPodAutoscalerSyncPeriod + yym928 := z.EncBinary() + _ = yym928 if false { - } else if z.HasExtensions() && z.EncExt(yy87) { - } else if !yym88 && z.IsJSONHandle() { - z.EncJSONMarshal(yy87) + } else if z.HasExtensions() && z.EncExt(yy927) { + } else if !yym928 && z.IsJSONHandle() { + z.EncJSONMarshal(yy927) } else { - z.EncFallback(yy87) + z.EncFallback(yy927) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy90 := &x.DeploymentControllerSyncPeriod - yym91 := z.EncBinary() - _ = yym91 + yy930 := &x.DeploymentControllerSyncPeriod + yym931 := z.EncBinary() + _ = yym931 if false { - } else if z.HasExtensions() && z.EncExt(yy90) { - } else if !yym91 && z.IsJSONHandle() { - z.EncJSONMarshal(yy90) + } else if z.HasExtensions() && z.EncExt(yy930) { + } else if !yym931 && z.IsJSONHandle() { + z.EncJSONMarshal(yy930) } else { - z.EncFallback(yy90) + z.EncFallback(yy930) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy92 := &x.DeploymentControllerSyncPeriod - yym93 := z.EncBinary() - _ = yym93 + yy932 := &x.DeploymentControllerSyncPeriod + yym933 := z.EncBinary() + _ = yym933 if false { - } else if z.HasExtensions() && z.EncExt(yy92) { - } else if !yym93 && z.IsJSONHandle() { - z.EncJSONMarshal(yy92) + } else if z.HasExtensions() && z.EncExt(yy932) { + } else if !yym933 && z.IsJSONHandle() { + z.EncJSONMarshal(yy932) } else { - z.EncFallback(yy92) + z.EncFallback(yy932) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy95 := &x.PodEvictionTimeout - yym96 := z.EncBinary() - _ = yym96 + yy935 := &x.PodEvictionTimeout + yym936 := z.EncBinary() + _ = yym936 if false { - } else if z.HasExtensions() && z.EncExt(yy95) { - } else if !yym96 && z.IsJSONHandle() { - z.EncJSONMarshal(yy95) + } else if z.HasExtensions() && z.EncExt(yy935) { + } else if !yym936 && z.IsJSONHandle() { + z.EncJSONMarshal(yy935) } else { - z.EncFallback(yy95) + z.EncFallback(yy935) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy97 := &x.PodEvictionTimeout - yym98 := z.EncBinary() - _ = yym98 + yy937 := &x.PodEvictionTimeout + yym938 := z.EncBinary() + _ = yym938 if false { - } else if z.HasExtensions() && z.EncExt(yy97) { - } else if !yym98 && z.IsJSONHandle() { - z.EncJSONMarshal(yy97) + } else if z.HasExtensions() && z.EncExt(yy937) { + } else if !yym938 && z.IsJSONHandle() { + z.EncJSONMarshal(yy937) } else { - z.EncFallback(yy97) + z.EncFallback(yy937) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym100 := z.EncBinary() - _ = yym100 + yym940 := z.EncBinary() + _ = yym940 if false { } else { r.EncodeFloat32(float32(x.DeletingPodsQps)) @@ -7114,17 +7963,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym101 := z.EncBinary() - _ = yym101 + yym941 := z.EncBinary() + _ = yym941 if false { } else { r.EncodeFloat32(float32(x.DeletingPodsQps)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym103 := z.EncBinary() - _ = yym103 + yym943 := z.EncBinary() + _ = yym943 if false { } else { r.EncodeInt(int64(x.DeletingPodsBurst)) @@ -7133,44 +7982,44 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym104 := z.EncBinary() - _ = yym104 + yym944 := z.EncBinary() + _ = yym944 if false { } else { r.EncodeInt(int64(x.DeletingPodsBurst)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy106 := &x.NodeMonitorGracePeriod - yym107 := z.EncBinary() - _ = yym107 + yy946 := &x.NodeMonitorGracePeriod + yym947 := z.EncBinary() + _ = yym947 if false { - } else if z.HasExtensions() && z.EncExt(yy106) { - } else if !yym107 && z.IsJSONHandle() { - z.EncJSONMarshal(yy106) + } else if z.HasExtensions() && z.EncExt(yy946) { + } else if !yym947 && z.IsJSONHandle() { + z.EncJSONMarshal(yy946) } else { - z.EncFallback(yy106) + z.EncFallback(yy946) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy108 := &x.NodeMonitorGracePeriod - yym109 := z.EncBinary() - _ = yym109 + yy948 := &x.NodeMonitorGracePeriod + yym949 := z.EncBinary() + _ = yym949 if false { - } else if z.HasExtensions() && z.EncExt(yy108) { - } else if !yym109 && z.IsJSONHandle() { - z.EncJSONMarshal(yy108) + } else if z.HasExtensions() && z.EncExt(yy948) { + } else if !yym949 && z.IsJSONHandle() { + z.EncJSONMarshal(yy948) } else { - z.EncFallback(yy108) + z.EncFallback(yy948) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym111 := z.EncBinary() - _ = yym111 + yym951 := z.EncBinary() + _ = yym951 if false { } else { r.EncodeInt(int64(x.RegisterRetryCount)) @@ -7179,71 +8028,71 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym112 := z.EncBinary() - _ = yym112 + yym952 := z.EncBinary() + _ = yym952 if false { } else { r.EncodeInt(int64(x.RegisterRetryCount)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy114 := &x.NodeStartupGracePeriod - yym115 := z.EncBinary() - _ = yym115 + yy954 := &x.NodeStartupGracePeriod + yym955 := z.EncBinary() + _ = yym955 if false { - } else if z.HasExtensions() && z.EncExt(yy114) { - } else if !yym115 && z.IsJSONHandle() { - z.EncJSONMarshal(yy114) + } else if z.HasExtensions() && z.EncExt(yy954) { + } else if !yym955 && z.IsJSONHandle() { + z.EncJSONMarshal(yy954) } else { - z.EncFallback(yy114) + z.EncFallback(yy954) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy116 := &x.NodeStartupGracePeriod - yym117 := z.EncBinary() - _ = yym117 + yy956 := &x.NodeStartupGracePeriod + yym957 := z.EncBinary() + _ = yym957 if false { - } else if z.HasExtensions() && z.EncExt(yy116) { - } else if !yym117 && z.IsJSONHandle() { - z.EncJSONMarshal(yy116) + } else if z.HasExtensions() && z.EncExt(yy956) { + } else if !yym957 && z.IsJSONHandle() { + z.EncJSONMarshal(yy956) } else { - z.EncFallback(yy116) + z.EncFallback(yy956) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy119 := &x.NodeMonitorPeriod - yym120 := z.EncBinary() - _ = yym120 + yy959 := &x.NodeMonitorPeriod + yym960 := z.EncBinary() + _ = yym960 if false { - } else if z.HasExtensions() && z.EncExt(yy119) { - } else if !yym120 && z.IsJSONHandle() { - z.EncJSONMarshal(yy119) + } else if z.HasExtensions() && z.EncExt(yy959) { + } else if !yym960 && z.IsJSONHandle() { + z.EncJSONMarshal(yy959) } else { - z.EncFallback(yy119) + z.EncFallback(yy959) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy121 := &x.NodeMonitorPeriod - yym122 := z.EncBinary() - _ = yym122 + yy961 := &x.NodeMonitorPeriod + yym962 := z.EncBinary() + _ = yym962 if false { - } else if z.HasExtensions() && z.EncExt(yy121) { - } else if !yym122 && z.IsJSONHandle() { - z.EncJSONMarshal(yy121) + } else if z.HasExtensions() && z.EncExt(yy961) { + } else if !yym962 && z.IsJSONHandle() { + z.EncJSONMarshal(yy961) } else { - z.EncFallback(yy121) + z.EncFallback(yy961) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym124 := z.EncBinary() - _ = yym124 + yym964 := z.EncBinary() + _ = yym964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) @@ -7252,17 +8101,74 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountKeyFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym125 := z.EncBinary() - _ = yym125 + yym965 := z.EncBinary() + _ = yym965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym967 := z.EncBinary() + _ = yym967 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterSigningCertFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym968 := z.EncBinary() + _ = yym968 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym970 := z.EncBinary() + _ = yym970 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterSigningKeyFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym971 := z.EncBinary() + _ = yym971 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + 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) - yym127 := z.EncBinary() - _ = yym127 + yym976 := z.EncBinary() + _ = yym976 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) @@ -7271,17 +8177,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym128 := z.EncBinary() - _ = yym128 + yym977 := z.EncBinary() + _ = yym977 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym130 := z.EncBinary() - _ = yym130 + yym979 := z.EncBinary() + _ = yym979 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) @@ -7290,17 +8196,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym131 := z.EncBinary() - _ = yym131 + yym980 := z.EncBinary() + _ = yym980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym133 := z.EncBinary() - _ = yym133 + yym982 := z.EncBinary() + _ = yym982 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) @@ -7309,17 +8215,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym134 := z.EncBinary() - _ = yym134 + yym983 := z.EncBinary() + _ = yym983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym136 := z.EncBinary() - _ = yym136 + yym985 := z.EncBinary() + _ = yym985 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) @@ -7328,17 +8234,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym137 := z.EncBinary() - _ = yym137 + yym986 := z.EncBinary() + _ = yym986 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym139 := z.EncBinary() - _ = yym139 + yym988 := z.EncBinary() + _ = yym988 if false { } else { r.EncodeInt(int64(x.NodeCIDRMaskSize)) @@ -7347,17 +8253,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeCIDRMaskSize")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym140 := z.EncBinary() - _ = yym140 + yym989 := z.EncBinary() + _ = yym989 if false { } else { r.EncodeInt(int64(x.NodeCIDRMaskSize)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym142 := z.EncBinary() - _ = yym142 + yym991 := z.EncBinary() + _ = yym991 if false { } else { r.EncodeBool(bool(x.AllocateNodeCIDRs)) @@ -7366,17 +8272,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym143 := z.EncBinary() - _ = yym143 + yym992 := z.EncBinary() + _ = yym992 if false { } else { r.EncodeBool(bool(x.AllocateNodeCIDRs)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym145 := z.EncBinary() - _ = yym145 + yym994 := z.EncBinary() + _ = yym994 if false { } else { r.EncodeBool(bool(x.ConfigureCloudRoutes)) @@ -7385,17 +8291,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configureCloudRoutes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym146 := z.EncBinary() - _ = yym146 + yym995 := z.EncBinary() + _ = yym995 if false { } else { r.EncodeBool(bool(x.ConfigureCloudRoutes)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym148 := z.EncBinary() - _ = yym148 + yym997 := z.EncBinary() + _ = yym997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) @@ -7404,17 +8310,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rootCAFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym149 := z.EncBinary() - _ = yym149 + yym998 := z.EncBinary() + _ = yym998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym151 := z.EncBinary() - _ = yym151 + yym1000 := z.EncBinary() + _ = yym1000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) @@ -7423,17 +8329,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("contentType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym152 := z.EncBinary() - _ = yym152 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym154 := z.EncBinary() - _ = yym154 + yym1003 := z.EncBinary() + _ = yym1003 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) @@ -7442,17 +8348,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym155 := z.EncBinary() - _ = yym155 + yym1004 := z.EncBinary() + _ = yym1004 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym157 := z.EncBinary() - _ = yym157 + yym1006 := z.EncBinary() + _ = yym1006 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) @@ -7461,66 +8367,66 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym158 := z.EncBinary() - _ = yym158 + yym1007 := z.EncBinary() + _ = yym1007 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy160 := &x.LeaderElection - yy160.CodecEncodeSelf(e) + yy1009 := &x.LeaderElection + yy1009.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy162 := &x.LeaderElection - yy162.CodecEncodeSelf(e) + yy1010 := &x.LeaderElection + yy1010.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy165 := &x.VolumeConfiguration - yy165.CodecEncodeSelf(e) + yy1012 := &x.VolumeConfiguration + yy1012.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy167 := &x.VolumeConfiguration - yy167.CodecEncodeSelf(e) + yy1013 := &x.VolumeConfiguration + yy1013.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy170 := &x.ControllerStartInterval - yym171 := z.EncBinary() - _ = yym171 + yy1015 := &x.ControllerStartInterval + yym1016 := z.EncBinary() + _ = yym1016 if false { - } else if z.HasExtensions() && z.EncExt(yy170) { - } else if !yym171 && z.IsJSONHandle() { - z.EncJSONMarshal(yy170) + } else if z.HasExtensions() && z.EncExt(yy1015) { + } else if !yym1016 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1015) } else { - z.EncFallback(yy170) + z.EncFallback(yy1015) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controllerStartInterval")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy172 := &x.ControllerStartInterval - yym173 := z.EncBinary() - _ = yym173 + yy1017 := &x.ControllerStartInterval + yym1018 := z.EncBinary() + _ = yym1018 if false { - } else if z.HasExtensions() && z.EncExt(yy172) { - } else if !yym173 && z.IsJSONHandle() { - z.EncJSONMarshal(yy172) + } else if z.HasExtensions() && z.EncExt(yy1017) { + } else if !yym1018 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1017) } else { - z.EncFallback(yy172) + z.EncFallback(yy1017) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym175 := z.EncBinary() - _ = yym175 + yym1020 := z.EncBinary() + _ = yym1020 if false { } else { r.EncodeBool(bool(x.EnableGarbageCollector)) @@ -7529,64 +8435,109 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableGarbageCollector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym176 := z.EncBinary() - _ = yym176 + yym1021 := z.EncBinary() + _ = yym1021 if false { } else { r.EncodeBool(bool(x.EnableGarbageCollector)) } } - if yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[48] { - yym178 := z.EncBinary() - _ = yym178 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yym1023 := z.EncBinary() + _ = yym1023 + if false { } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeInt(int64(x.ConcurrentGCSyncs)) } } else { - if yyq2[48] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym179 := z.EncBinary() - _ = yym179 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentGCSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1024 := z.EncBinary() + _ = yym1024 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentGCSyncs)) + } + } + 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 yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[49] { - yym181 := z.EncBinary() - _ = yym181 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yym1035 := z.EncBinary() + _ = yym1035 + if false { } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) } } else { - if yyq2[49] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym182 := z.EncBinary() - _ = yym182 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + 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 yyr2 || yy2arr2 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7599,25 +8550,25 @@ func (x *KubeControllerManagerConfiguration) CodecDecodeSelf(d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1037 := z.DecBinary() + _ = yym1037 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1038 := r.ContainerType() + if yyct1038 == codecSelferValueTypeMap1234 { + yyl1038 := r.ReadMapStart() + if yyl1038 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1038, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1038 == codecSelferValueTypeArray1234 { + yyl1038 := r.ReadArrayStart() + if yyl1038 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1038, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7629,12 +8580,12 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -7643,10 +8594,22 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1039Slc = r.DecodeBytes(yys1039Slc, true, true) + yys1039 := string(yys1039Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1039 { + 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 "port": if r.TryDecodeAsNil() { x.Port = 0 @@ -7689,6 +8652,12 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } else { x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) } + case "concurrentServiceSyncs": + if r.TryDecodeAsNil() { + x.ConcurrentServiceSyncs = 0 + } else { + x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) + } case "concurrentResourceQuotaSyncs": if r.TryDecodeAsNil() { x.ConcurrentResourceQuotaSyncs = 0 @@ -7747,90 +8716,90 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.ServiceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv20 := &x.ServiceSyncPeriod - yym21 := z.DecBinary() - _ = yym21 + yyv1059 := &x.ServiceSyncPeriod + yym1060 := z.DecBinary() + _ = yym1060 if false { - } else if z.HasExtensions() && z.DecExt(yyv20) { - } else if !yym21 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv20) + } else if z.HasExtensions() && z.DecExt(yyv1059) { + } else if !yym1060 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1059) } else { - z.DecFallback(yyv20, false) + z.DecFallback(yyv1059, false) } } case "nodeSyncPeriod": if r.TryDecodeAsNil() { x.NodeSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv22 := &x.NodeSyncPeriod - yym23 := z.DecBinary() - _ = yym23 + yyv1061 := &x.NodeSyncPeriod + yym1062 := z.DecBinary() + _ = yym1062 if false { - } else if z.HasExtensions() && z.DecExt(yyv22) { - } else if !yym23 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv22) + } else if z.HasExtensions() && z.DecExt(yyv1061) { + } else if !yym1062 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1061) } else { - z.DecFallback(yyv22, false) + z.DecFallback(yyv1061, false) } } case "resourceQuotaSyncPeriod": if r.TryDecodeAsNil() { x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv24 := &x.ResourceQuotaSyncPeriod - yym25 := z.DecBinary() - _ = yym25 + yyv1063 := &x.ResourceQuotaSyncPeriod + yym1064 := z.DecBinary() + _ = yym1064 if false { - } else if z.HasExtensions() && z.DecExt(yyv24) { - } else if !yym25 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv24) + } else if z.HasExtensions() && z.DecExt(yyv1063) { + } else if !yym1064 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1063) } else { - z.DecFallback(yyv24, false) + z.DecFallback(yyv1063, false) } } case "namespaceSyncPeriod": if r.TryDecodeAsNil() { x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv26 := &x.NamespaceSyncPeriod - yym27 := z.DecBinary() - _ = yym27 + yyv1065 := &x.NamespaceSyncPeriod + yym1066 := z.DecBinary() + _ = yym1066 if false { - } else if z.HasExtensions() && z.DecExt(yyv26) { - } else if !yym27 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv26) + } else if z.HasExtensions() && z.DecExt(yyv1065) { + } else if !yym1066 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1065) } else { - z.DecFallback(yyv26, false) + z.DecFallback(yyv1065, false) } } case "pvClaimBinderSyncPeriod": if r.TryDecodeAsNil() { x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv28 := &x.PVClaimBinderSyncPeriod - yym29 := z.DecBinary() - _ = yym29 + yyv1067 := &x.PVClaimBinderSyncPeriod + yym1068 := z.DecBinary() + _ = yym1068 if false { - } else if z.HasExtensions() && z.DecExt(yyv28) { - } else if !yym29 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv28) + } else if z.HasExtensions() && z.DecExt(yyv1067) { + } else if !yym1068 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1067) } else { - z.DecFallback(yyv28, false) + z.DecFallback(yyv1067, false) } } case "minResyncPeriod": if r.TryDecodeAsNil() { x.MinResyncPeriod = pkg1_unversioned.Duration{} } else { - yyv30 := &x.MinResyncPeriod - yym31 := z.DecBinary() - _ = yym31 + yyv1069 := &x.MinResyncPeriod + yym1070 := z.DecBinary() + _ = yym1070 if false { - } else if z.HasExtensions() && z.DecExt(yyv30) { - } else if !yym31 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv30) + } else if z.HasExtensions() && z.DecExt(yyv1069) { + } else if !yym1070 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1069) } else { - z.DecFallback(yyv30, false) + z.DecFallback(yyv1069, false) } } case "terminatedPodGCThreshold": @@ -7843,45 +8812,45 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv33 := &x.HorizontalPodAutoscalerSyncPeriod - yym34 := z.DecBinary() - _ = yym34 + yyv1072 := &x.HorizontalPodAutoscalerSyncPeriod + yym1073 := z.DecBinary() + _ = yym1073 if false { - } else if z.HasExtensions() && z.DecExt(yyv33) { - } else if !yym34 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv33) + } else if z.HasExtensions() && z.DecExt(yyv1072) { + } else if !yym1073 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1072) } else { - z.DecFallback(yyv33, false) + z.DecFallback(yyv1072, false) } } case "deploymentControllerSyncPeriod": if r.TryDecodeAsNil() { x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv35 := &x.DeploymentControllerSyncPeriod - yym36 := z.DecBinary() - _ = yym36 + yyv1074 := &x.DeploymentControllerSyncPeriod + yym1075 := z.DecBinary() + _ = yym1075 if false { - } else if z.HasExtensions() && z.DecExt(yyv35) { - } else if !yym36 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv35) + } else if z.HasExtensions() && z.DecExt(yyv1074) { + } else if !yym1075 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1074) } else { - z.DecFallback(yyv35, false) + z.DecFallback(yyv1074, false) } } case "podEvictionTimeout": if r.TryDecodeAsNil() { x.PodEvictionTimeout = pkg1_unversioned.Duration{} } else { - yyv37 := &x.PodEvictionTimeout - yym38 := z.DecBinary() - _ = yym38 + yyv1076 := &x.PodEvictionTimeout + yym1077 := z.DecBinary() + _ = yym1077 if false { - } else if z.HasExtensions() && z.DecExt(yyv37) { - } else if !yym38 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv37) + } else if z.HasExtensions() && z.DecExt(yyv1076) { + } else if !yym1077 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1076) } else { - z.DecFallback(yyv37, false) + z.DecFallback(yyv1076, false) } } case "deletingPodsQps": @@ -7900,15 +8869,15 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} } else { - yyv41 := &x.NodeMonitorGracePeriod - yym42 := z.DecBinary() - _ = yym42 + yyv1080 := &x.NodeMonitorGracePeriod + yym1081 := z.DecBinary() + _ = yym1081 if false { - } else if z.HasExtensions() && z.DecExt(yyv41) { - } else if !yym42 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv41) + } else if z.HasExtensions() && z.DecExt(yyv1080) { + } else if !yym1081 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1080) } else { - z.DecFallback(yyv41, false) + z.DecFallback(yyv1080, false) } } case "registerRetryCount": @@ -7921,30 +8890,30 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} } else { - yyv44 := &x.NodeStartupGracePeriod - yym45 := z.DecBinary() - _ = yym45 + yyv1083 := &x.NodeStartupGracePeriod + yym1084 := z.DecBinary() + _ = yym1084 if false { - } else if z.HasExtensions() && z.DecExt(yyv44) { - } else if !yym45 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv44) + } else if z.HasExtensions() && z.DecExt(yyv1083) { + } else if !yym1084 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1083) } else { - z.DecFallback(yyv44, false) + z.DecFallback(yyv1083, false) } } case "nodeMonitorPeriod": if r.TryDecodeAsNil() { x.NodeMonitorPeriod = pkg1_unversioned.Duration{} } else { - yyv46 := &x.NodeMonitorPeriod - yym47 := z.DecBinary() - _ = yym47 + yyv1085 := &x.NodeMonitorPeriod + yym1086 := z.DecBinary() + _ = yym1086 if false { - } else if z.HasExtensions() && z.DecExt(yyv46) { - } else if !yym47 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv46) + } else if z.HasExtensions() && z.DecExt(yyv1085) { + } else if !yym1086 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1085) } else { - z.DecFallback(yyv46, false) + z.DecFallback(yyv1085, false) } } case "serviceAccountKeyFile": @@ -7953,6 +8922,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } else { x.ServiceAccountKeyFile = string(r.DecodeString()) } + case "clusterSigningCertFile": + if r.TryDecodeAsNil() { + x.ClusterSigningCertFile = "" + } else { + x.ClusterSigningCertFile = string(r.DecodeString()) + } + case "clusterSigningKeyFile": + if r.TryDecodeAsNil() { + x.ClusterSigningKeyFile = "" + } 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 @@ -8023,29 +9010,29 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv60 := &x.LeaderElection - yyv60.CodecDecodeSelf(d) + yyv1102 := &x.LeaderElection + yyv1102.CodecDecodeSelf(d) } case "volumeConfiguration": if r.TryDecodeAsNil() { x.VolumeConfiguration = VolumeConfiguration{} } else { - yyv61 := &x.VolumeConfiguration - yyv61.CodecDecodeSelf(d) + yyv1103 := &x.VolumeConfiguration + yyv1103.CodecDecodeSelf(d) } case "controllerStartInterval": if r.TryDecodeAsNil() { x.ControllerStartInterval = pkg1_unversioned.Duration{} } else { - yyv62 := &x.ControllerStartInterval - yym63 := z.DecBinary() - _ = yym63 + yyv1104 := &x.ControllerStartInterval + yym1105 := z.DecBinary() + _ = yym1105 if false { - } else if z.HasExtensions() && z.DecExt(yyv62) { - } else if !yym63 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv62) + } else if z.HasExtensions() && z.DecExt(yyv1104) { + } else if !yym1105 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1104) } else { - z.DecFallback(yyv62, false) + z.DecFallback(yyv1104, false) } } case "enableGarbageCollector": @@ -8054,22 +9041,40 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } else { x.EnableGarbageCollector = bool(r.DecodeBool()) } - case "kind": + case "concurrentGCSyncs": if r.TryDecodeAsNil() { - x.Kind = "" + x.ConcurrentGCSyncs = 0 } else { - x.Kind = string(r.DecodeString()) + x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) } - case "apiVersion": + case "nodeEvictionRate": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.NodeEvictionRate = 0 } else { - x.APIVersion = string(r.DecodeString()) + 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1039) + } // end switch yys1039 + } // end for yyj1039 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8077,16 +9082,48 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj67 int - var yyb67 bool - var yyhl67 bool = l >= 0 - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + var yyj1112 int + var yyb1112 bool + var yyhl1112 bool = l >= 0 + 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" } else { - yyb67 = r.CheckBreak() + x.APIVersion = string(r.DecodeString()) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8096,13 +9133,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.Port = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8112,13 +9149,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.Address = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8128,13 +9165,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.CloudProvider = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8144,13 +9181,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.CloudConfigFile = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8160,13 +9197,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8176,13 +9213,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentRSSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8192,13 +9229,29 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + 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.ConcurrentServiceSyncs = 0 + } else { + x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8208,13 +9261,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8224,13 +9277,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8240,13 +9293,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8256,13 +9309,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentJobSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8272,13 +9325,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8288,13 +9341,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8304,13 +9357,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.LookupCacheSizeForRC = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8320,13 +9373,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.LookupCacheSizeForRS = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8336,13 +9389,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8350,24 +9403,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.ServiceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv84 := &x.ServiceSyncPeriod - yym85 := z.DecBinary() - _ = yym85 + yyv1132 := &x.ServiceSyncPeriod + yym1133 := z.DecBinary() + _ = yym1133 if false { - } else if z.HasExtensions() && z.DecExt(yyv84) { - } else if !yym85 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv84) + } else if z.HasExtensions() && z.DecExt(yyv1132) { + } else if !yym1133 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1132) } else { - z.DecFallback(yyv84, false) + z.DecFallback(yyv1132, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8375,24 +9428,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv86 := &x.NodeSyncPeriod - yym87 := z.DecBinary() - _ = yym87 + yyv1134 := &x.NodeSyncPeriod + yym1135 := z.DecBinary() + _ = yym1135 if false { - } else if z.HasExtensions() && z.DecExt(yyv86) { - } else if !yym87 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv86) + } else if z.HasExtensions() && z.DecExt(yyv1134) { + } else if !yym1135 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1134) } else { - z.DecFallback(yyv86, false) + z.DecFallback(yyv1134, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8400,24 +9453,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv88 := &x.ResourceQuotaSyncPeriod - yym89 := z.DecBinary() - _ = yym89 + yyv1136 := &x.ResourceQuotaSyncPeriod + yym1137 := z.DecBinary() + _ = yym1137 if false { - } else if z.HasExtensions() && z.DecExt(yyv88) { - } else if !yym89 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv88) + } else if z.HasExtensions() && z.DecExt(yyv1136) { + } else if !yym1137 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1136) } else { - z.DecFallback(yyv88, false) + z.DecFallback(yyv1136, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8425,24 +9478,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv90 := &x.NamespaceSyncPeriod - yym91 := z.DecBinary() - _ = yym91 + yyv1138 := &x.NamespaceSyncPeriod + yym1139 := z.DecBinary() + _ = yym1139 if false { - } else if z.HasExtensions() && z.DecExt(yyv90) { - } else if !yym91 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv90) + } else if z.HasExtensions() && z.DecExt(yyv1138) { + } else if !yym1139 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1138) } else { - z.DecFallback(yyv90, false) + z.DecFallback(yyv1138, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8450,24 +9503,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv92 := &x.PVClaimBinderSyncPeriod - yym93 := z.DecBinary() - _ = yym93 + yyv1140 := &x.PVClaimBinderSyncPeriod + yym1141 := z.DecBinary() + _ = yym1141 if false { - } else if z.HasExtensions() && z.DecExt(yyv92) { - } else if !yym93 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv92) + } else if z.HasExtensions() && z.DecExt(yyv1140) { + } else if !yym1141 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1140) } else { - z.DecFallback(yyv92, false) + z.DecFallback(yyv1140, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8475,24 +9528,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.MinResyncPeriod = pkg1_unversioned.Duration{} } else { - yyv94 := &x.MinResyncPeriod - yym95 := z.DecBinary() - _ = yym95 + yyv1142 := &x.MinResyncPeriod + yym1143 := z.DecBinary() + _ = yym1143 if false { - } else if z.HasExtensions() && z.DecExt(yyv94) { - } else if !yym95 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv94) + } else if z.HasExtensions() && z.DecExt(yyv1142) { + } else if !yym1143 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1142) } else { - z.DecFallback(yyv94, false) + z.DecFallback(yyv1142, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8502,13 +9555,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8516,24 +9569,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv97 := &x.HorizontalPodAutoscalerSyncPeriod - yym98 := z.DecBinary() - _ = yym98 + yyv1145 := &x.HorizontalPodAutoscalerSyncPeriod + yym1146 := z.DecBinary() + _ = yym1146 if false { - } else if z.HasExtensions() && z.DecExt(yyv97) { - } else if !yym98 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv97) + } else if z.HasExtensions() && z.DecExt(yyv1145) { + } else if !yym1146 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1145) } else { - z.DecFallback(yyv97, false) + z.DecFallback(yyv1145, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8541,24 +9594,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv99 := &x.DeploymentControllerSyncPeriod - yym100 := z.DecBinary() - _ = yym100 + yyv1147 := &x.DeploymentControllerSyncPeriod + yym1148 := z.DecBinary() + _ = yym1148 if false { - } else if z.HasExtensions() && z.DecExt(yyv99) { - } else if !yym100 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv99) + } else if z.HasExtensions() && z.DecExt(yyv1147) { + } else if !yym1148 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1147) } else { - z.DecFallback(yyv99, false) + z.DecFallback(yyv1147, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8566,24 +9619,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.PodEvictionTimeout = pkg1_unversioned.Duration{} } else { - yyv101 := &x.PodEvictionTimeout - yym102 := z.DecBinary() - _ = yym102 + yyv1149 := &x.PodEvictionTimeout + yym1150 := z.DecBinary() + _ = yym1150 if false { - } else if z.HasExtensions() && z.DecExt(yyv101) { - } else if !yym102 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv101) + } else if z.HasExtensions() && z.DecExt(yyv1149) { + } else if !yym1150 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1149) } else { - z.DecFallback(yyv101, false) + z.DecFallback(yyv1149, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8593,13 +9646,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.DeletingPodsQps = float32(r.DecodeFloat(true)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8609,13 +9662,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.DeletingPodsBurst = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8623,24 +9676,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} } else { - yyv105 := &x.NodeMonitorGracePeriod - yym106 := z.DecBinary() - _ = yym106 + yyv1153 := &x.NodeMonitorGracePeriod + yym1154 := z.DecBinary() + _ = yym1154 if false { - } else if z.HasExtensions() && z.DecExt(yyv105) { - } else if !yym106 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv105) + } else if z.HasExtensions() && z.DecExt(yyv1153) { + } else if !yym1154 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1153) } else { - z.DecFallback(yyv105, false) + z.DecFallback(yyv1153, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8650,13 +9703,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.RegisterRetryCount = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8664,24 +9717,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} } else { - yyv108 := &x.NodeStartupGracePeriod - yym109 := z.DecBinary() - _ = yym109 + yyv1156 := &x.NodeStartupGracePeriod + yym1157 := z.DecBinary() + _ = yym1157 if false { - } else if z.HasExtensions() && z.DecExt(yyv108) { - } else if !yym109 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv108) + } else if z.HasExtensions() && z.DecExt(yyv1156) { + } else if !yym1157 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1156) } else { - z.DecFallback(yyv108, false) + z.DecFallback(yyv1156, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8689,24 +9742,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeMonitorPeriod = pkg1_unversioned.Duration{} } else { - yyv110 := &x.NodeMonitorPeriod - yym111 := z.DecBinary() - _ = yym111 + yyv1158 := &x.NodeMonitorPeriod + yym1159 := z.DecBinary() + _ = yym1159 if false { - } else if z.HasExtensions() && z.DecExt(yyv110) { - } else if !yym111 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv110) + } else if z.HasExtensions() && z.DecExt(yyv1158) { + } else if !yym1159 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1158) } else { - z.DecFallback(yyv110, false) + z.DecFallback(yyv1158, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8716,13 +9769,61 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ServiceAccountKeyFile = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterSigningCertFile = "" + } else { + x.ClusterSigningCertFile = string(r.DecodeString()) + } + 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.ClusterSigningKeyFile = "" + } else { + x.ClusterSigningKeyFile = string(r.DecodeString()) + } + 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.ApproveAllKubeletCSRsForGroup = "" + } else { + x.ApproveAllKubeletCSRsForGroup = string(r.DecodeString()) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() + } + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8732,13 +9833,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.EnableProfiling = bool(r.DecodeBool()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8748,13 +9849,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ClusterName = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8764,13 +9865,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ClusterCIDR = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8780,13 +9881,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ServiceCIDR = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8796,13 +9897,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.NodeCIDRMaskSize = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8812,13 +9913,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.AllocateNodeCIDRs = bool(r.DecodeBool()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8828,13 +9929,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConfigureCloudRoutes = bool(r.DecodeBool()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8844,13 +9945,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.RootCAFile = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8860,13 +9961,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ContentType = string(r.DecodeString()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8876,13 +9977,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.KubeAPIQPS = float32(r.DecodeFloat(true)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8892,13 +9993,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.KubeAPIBurst = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8906,16 +10007,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv124 := &x.LeaderElection - yyv124.CodecDecodeSelf(d) + yyv1175 := &x.LeaderElection + yyv1175.CodecDecodeSelf(d) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8923,16 +10024,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.VolumeConfiguration = VolumeConfiguration{} } else { - yyv125 := &x.VolumeConfiguration - yyv125.CodecDecodeSelf(d) + yyv1176 := &x.VolumeConfiguration + yyv1176.CodecDecodeSelf(d) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8940,24 +10041,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.ControllerStartInterval = pkg1_unversioned.Duration{} } else { - yyv126 := &x.ControllerStartInterval - yym127 := z.DecBinary() - _ = yym127 + yyv1177 := &x.ControllerStartInterval + yym1178 := z.DecBinary() + _ = yym1178 if false { - } else if z.HasExtensions() && z.DecExt(yyv126) { - } else if !yym127 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv126) + } else if z.HasExtensions() && z.DecExt(yyv1177) { + } else if !yym1178 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1177) } else { - z.DecFallback(yyv126, false) + z.DecFallback(yyv1177, false) } } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8967,50 +10068,98 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.EnableGarbageCollector = bool(r.DecodeBool()) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ConcurrentGCSyncs = 0 } else { - x.Kind = string(r.DecodeString()) + x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) } - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.NodeEvictionRate = 0 } else { - x.APIVersion = string(r.DecodeString()) + 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 { - yyj67++ - if yyhl67 { - yyb67 = yyj67 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb67 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb67 { + if yyb1112 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj67-1, "") + z.DecStructFieldNotFound(yyj1112-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9022,33 +10171,33 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1185 := z.EncBinary() + _ = yym1185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 4 - for _, b := range yyq2 { + yynn1186 = 4 + for _, b := range yyq1186 { if b { - yynn2++ + yynn1186++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1186) + yynn1186 = 0 } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1188 := z.EncBinary() + _ = yym1188 if false { } else { r.EncodeBool(bool(x.EnableHostPathProvisioning)) @@ -9057,17 +10206,17 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableHostPathProvisioning")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { r.EncodeBool(bool(x.EnableHostPathProvisioning)) } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym1191 := z.EncBinary() + _ = yym1191 if false { } else { r.EncodeBool(bool(x.EnableDynamicProvisioning)) @@ -9076,28 +10225,28 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableDynamicProvisioning")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1192 := z.EncBinary() + _ = yym1192 if false { } else { r.EncodeBool(bool(x.EnableDynamicProvisioning)) } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy10 := &x.PersistentVolumeRecyclerConfiguration - yy10.CodecEncodeSelf(e) + yy1194 := &x.PersistentVolumeRecyclerConfiguration + yy1194.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persitentVolumeRecyclerConfiguration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.PersistentVolumeRecyclerConfiguration - yy12.CodecEncodeSelf(e) + yy1195 := &x.PersistentVolumeRecyclerConfiguration + yy1195.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym15 := z.EncBinary() - _ = yym15 + yym1197 := z.EncBinary() + _ = yym1197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) @@ -9106,14 +10255,14 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolumePluginDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym1198 := z.EncBinary() + _ = yym1198 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9126,25 +10275,25 @@ func (x *VolumeConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1199 := z.DecBinary() + _ = yym1199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1200 := r.ContainerType() + if yyct1200 == codecSelferValueTypeMap1234 { + yyl1200 := r.ReadMapStart() + if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1200, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1200 == codecSelferValueTypeArray1234 { + yyl1200 := r.ReadArrayStart() + if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1200, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9156,12 +10305,12 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -9170,10 +10319,10 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1201Slc = r.DecodeBytes(yys1201Slc, true, true) + yys1201 := string(yys1201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1201 { case "enableHostPathProvisioning": if r.TryDecodeAsNil() { x.EnableHostPathProvisioning = false @@ -9190,8 +10339,8 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} } else { - yyv6 := &x.PersistentVolumeRecyclerConfiguration - yyv6.CodecDecodeSelf(d) + yyv1204 := &x.PersistentVolumeRecyclerConfiguration + yyv1204.CodecDecodeSelf(d) } case "flexVolumePluginDir": if r.TryDecodeAsNil() { @@ -9200,9 +10349,9 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.FlexVolumePluginDir = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1201) + } // end switch yys1201 + } // end for yyj1201 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9210,16 +10359,16 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1206 int + var yyb1206 bool + var yyhl1206 bool = l >= 0 + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb8 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb8 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9229,13 +10378,13 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.EnableHostPathProvisioning = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb8 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb8 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9245,13 +10394,13 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.EnableDynamicProvisioning = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb8 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb8 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9259,16 +10408,16 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} } else { - yyv11 := &x.PersistentVolumeRecyclerConfiguration - yyv11.CodecDecodeSelf(d) + yyv1209 := &x.PersistentVolumeRecyclerConfiguration + yyv1209.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb8 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb8 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9279,17 +10428,17 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.FlexVolumePluginDir = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb8 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb8 { + if yyb1206 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1206-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9301,33 +10450,33 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1211 := z.EncBinary() + _ = yym1211 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 7 - for _, b := range yyq2 { + yynn1212 = 7 + for _, b := range yyq1212 { if b { - yynn2++ + yynn1212++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1212) + yynn1212 = 0 } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1214 := z.EncBinary() + _ = yym1214 if false { } else { r.EncodeInt(int64(x.MaximumRetry)) @@ -9336,17 +10485,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maximumRetry")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1215 := z.EncBinary() + _ = yym1215 if false { } else { r.EncodeInt(int64(x.MaximumRetry)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym1217 := z.EncBinary() + _ = yym1217 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutNFS)) @@ -9355,17 +10504,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutNFS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1218 := z.EncBinary() + _ = yym1218 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutNFS)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym1220 := z.EncBinary() + _ = yym1220 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) @@ -9374,17 +10523,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podTemplateFilePathNFS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1221 := z.EncBinary() + _ = yym1221 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym1223 := z.EncBinary() + _ = yym1223 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutNFS)) @@ -9393,17 +10542,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutNFS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1224 := z.EncBinary() + _ = yym1224 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutNFS)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 + yym1226 := z.EncBinary() + _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) @@ -9412,17 +10561,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podTemplateFilePathHostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym1227 := z.EncBinary() + _ = yym1227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 + yym1229 := z.EncBinary() + _ = yym1229 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutHostPath)) @@ -9431,17 +10580,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutHostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym1230 := z.EncBinary() + _ = yym1230 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutHostPath)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 + yym1232 := z.EncBinary() + _ = yym1232 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutHostPath)) @@ -9450,14 +10599,14 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutHostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym1233 := z.EncBinary() + _ = yym1233 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutHostPath)) } } - if yyr2 || yy2arr2 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9470,25 +10619,25 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecDecodeSelf(d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1234 := z.DecBinary() + _ = yym1234 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1235 := r.ContainerType() + if yyct1235 == codecSelferValueTypeMap1234 { + yyl1235 := r.ReadMapStart() + if yyl1235 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1235, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1235 == codecSelferValueTypeArray1234 { + yyl1235 := r.ReadArrayStart() + if yyl1235 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1235, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9500,12 +10649,12 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -9514,10 +10663,10 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1236Slc = r.DecodeBytes(yys1236Slc, true, true) + yys1236 := string(yys1236Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1236 { case "maximumRetry": if r.TryDecodeAsNil() { x.MaximumRetry = 0 @@ -9561,9 +10710,9 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1236) + } // end switch yys1236 + } // end for yyj1236 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9571,16 +10720,16 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj1244 int + var yyb1244 bool + var yyhl1244 bool = l >= 0 + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9590,13 +10739,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.MaximumRetry = int32(r.DecodeInt(32)) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9606,13 +10755,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.MinimumTimeoutNFS = int32(r.DecodeInt(32)) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9622,13 +10771,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.PodTemplateFilePathNFS = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9638,13 +10787,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.IncrementTimeoutNFS = int32(r.DecodeInt(32)) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9654,13 +10803,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.PodTemplateFilePathHostPath = string(r.DecodeString()) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9670,13 +10819,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.MinimumTimeoutHostPath = int32(r.DecodeInt(32)) } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9687,17 +10836,109 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb11 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb11 { + if yyb1244 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj1244-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } + +func (x codecSelfer1234) encconfig_ConfigurationMap(v pkg2_config.ConfigurationMap, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk1252, yyv1252 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym1253 := z.EncBinary() + _ = yym1253 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk1252)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1254 := z.EncBinary() + _ = yym1254 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyv1252)) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decconfig_ConfigurationMap(v *pkg2_config.ConfigurationMap, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + 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 yymk1255 string + var yymv1255 string + var yymg1255 bool + if yybh1255.MapValueReset { + } + if yyl1255 > 0 { + for yyj1255 := 0; yyj1255 < yyl1255; yyj1255++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk1255 = "" + } else { + yymk1255 = string(r.DecodeString()) + } + + if yymg1255 { + yymv1255 = yyv1255[yymk1255] + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv1255 = "" + } else { + yymv1255 = string(r.DecodeString()) + } + + if yyv1255 != nil { + yyv1255[yymk1255] = yymv1255 + } + } + } else if yyl1255 < 0 { + for yyj1255 := 0; !r.CheckBreak(); yyj1255++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk1255 = "" + } else { + yymk1255 = string(r.DecodeString()) + } + + if yymg1255 { + yymv1255 = yyv1255[yymk1255] + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv1255 = "" + } else { + yymv1255 = string(r.DecodeString()) + } + + if yyv1255 != nil { + yyv1255[yymk1255] = yymv1255 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go index 97e9233372..71fa473150 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go @@ -16,7 +16,10 @@ limitations under the License. package componentconfig -import "k8s.io/kubernetes/pkg/api/unversioned" +import ( + "k8s.io/kubernetes/pkg/api/unversioned" + utilconfig "k8s.io/kubernetes/pkg/util/config" +) type KubeProxyConfiguration struct { unversioned.TypeMeta @@ -58,14 +61,19 @@ type KubeProxyConfiguration struct { PortRange string `json:"portRange"` // resourceContainer is the absolute name of the resource-only container to create and run // the Kube-proxy in (Default: /kube-proxy). - ResourceContainer string `json:"kubeletCgroups"` + ResourceContainer string `json:"resourceContainer"` // udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s'). // 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)") + // conntrackMax is the maximum number of NAT connections to track (0 to + // leave as-is). This takes precendence over conntrackMaxPerCore. ConntrackMax int32 `json:"conntrackMax"` - // conntrackTCPEstablishedTimeout is how long an idle UDP connection will be kept open - // (e.g. '250ms', '2s'). Must be greater than 0. Only applicable for proxyMode is Userspace + // conntrackMaxPerCore is the maximum number of NAT connections to track + // per CPU core (0 to leave as-is). This value is only considered if + // conntrackMax == 0. + ConntrackMaxPerCore int32 `json:"conntrackMaxPerCore"` + // conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open + // (e.g. '250ms', '2s'). Must be greater than 0. ConntrackTCPEstablishedTimeout unversioned.Duration `json:"conntrackTCPEstablishedTimeout"` } @@ -102,8 +110,11 @@ const ( // TODO: curate the ordering and structure of this config object type KubeletConfiguration struct { - // config is the path to the config file or directory of files - Config string `json:"config"` + unversioned.TypeMeta + + // podManifestPath is the path to the directory containing pod manifests to + // run, or the path to a single manifest file + PodManifestPath string `json:"podManifestPath"` // syncFrequency is the max period between synchronizing running // containers and config SyncFrequency unversioned.Duration `json:"syncFrequency"` @@ -123,19 +134,19 @@ type KubeletConfiguration struct { // for all interfaces) Address string `json:"address"` // port is the port for the Kubelet to serve on. - Port uint `json:"port"` + Port int32 `json:"port"` // readOnlyPort is the read-only port for the Kubelet to serve on with // no authentication/authorization (set to 0 to disable) - ReadOnlyPort uint `json:"readOnlyPort"` - // tLSCertFile is the file containing x509 Certificate for HTTPS. (CA cert, + ReadOnlyPort int32 `json:"readOnlyPort"` + // tlsCertFile is the file containing x509 Certificate for HTTPS. (CA cert, // if any, concatenated after server cert). If tlsCertFile and // tlsPrivateKeyFile are not provided, a self-signed certificate // and key are generated for the public address and saved to the directory // passed to certDir. - TLSCertFile string `json:"tLSCertFile"` - // tLSPrivateKeyFile is the ile containing x509 private key matching + TLSCertFile string `json:"tlsCertFile"` + // tlsPrivateKeyFile is the ile containing x509 private key matching // tlsCertFile. - TLSPrivateKeyFile string `json:"tLSPrivateKeyFile"` + TLSPrivateKeyFile string `json:"tlsPrivateKeyFile"` // certDirectory is the directory where the TLS certs are located (by // default /var/run/kubernetes). If tlsCertFile and tlsPrivateKeyFile // are provided, this flag will be ignored. @@ -157,24 +168,25 @@ type KubeletConfiguration struct { // Defaults to false. AllowPrivileged bool `json:"allowPrivileged"` // hostNetworkSources is a comma-separated list of sources from which the - // Kubelet allows pods to use of host network. Defaults to "*". - HostNetworkSources string `json:"hostNetworkSources"` + // Kubelet allows pods to use of host network. Defaults to "*". Valid + // options are "file", "http", "api", and "*" (all sources). + HostNetworkSources []string `json:"hostNetworkSources"` // hostPIDSources is a comma-separated list of sources from which the // Kubelet allows pods to use the host pid namespace. Defaults to "*". - HostPIDSources string `json:"hostPIDSources"` + HostPIDSources []string `json:"hostPIDSources"` // hostIPCSources is a comma-separated list of sources from which the // Kubelet allows pods to use the host ipc namespace. Defaults to "*". - HostIPCSources string `json:"hostIPCSources"` + HostIPCSources []string `json:"hostIPCSources"` // registryPullQPS is the limit of registry pulls per second. If 0, // unlimited. Set to 0 for no limit. Defaults to 5.0. - RegistryPullQPS float64 `json:"registryPullQPS"` + RegistryPullQPS int32 `json:"registryPullQPS"` // registryBurst is the maximum size of a bursty pulls, temporarily allows // pulls to burst to this number, while still not exceeding registryQps. - // Only used if registryQps > 0. + // Only used if registryQPS > 0. RegistryBurst int32 `json:"registryBurst"` // eventRecordQPS is the maximum event creations per second. If 0, there // is no limit enforced. - EventRecordQPS float32 `json:"eventRecordQPS"` + EventRecordQPS int32 `json:"eventRecordQPS"` // eventBurst is the maximum size of a bursty event records, temporarily // allows event records to burst to this number, while still not exceeding // event-qps. Only used if eventQps > 0 @@ -192,7 +204,7 @@ type KubeletConfiguration struct { // to retain globally. Each container takes up some disk space. MaxContainerCount int32 `json:"maxContainerCount"` // cAdvisorPort is the port of the localhost cAdvisor endpoint - CAdvisorPort uint `json:"cAdvisorPort"` + CAdvisorPort int32 `json:"cAdvisorPort"` // healthzPort is the port of the localhost healthz endpoint HealthzPort int32 `json:"healthzPort"` // healthzBindAddress is the IP address for the healthz server to serve @@ -221,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"` - // minimumGCAge is the minimum age for a unused image before it is + // imageMinimumGCAge is the minimum age for a unused image before it is // garbage collected. ImageMinimumGCAge unversioned.Duration `json:"imageMinimumGCAge"` // imageGCHighThresholdPercent is the percent of disk usage after which @@ -240,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"` @@ -252,17 +268,25 @@ type KubeletConfiguration struct { CloudConfigFile string `json:"cloudConfigFile,omitempty"` // KubeletCgroups is the absolute name of cgroups to isolate the kubelet in. KubeletCgroups string `json:"kubeletCgroups,omitempty"` + // Enable QoS based Cgroup hierarchy: top level cgroups for QoS Classes + // And all Burstable and BestEffort pods are brought up under their + // specific top level QoS cgroup. + CgroupsPerQOS bool `json:"CgroupsPerQOS,omitempty"` // Cgroups that container runtime is expected to be isolated in. RuntimeCgroups string `json:"runtimeCgroups,omitempty"` // SystemCgroups is absolute name of cgroups in which to place // all non-kernel processes that are not already in a container. Empty // for no container. Rolling back the flag requires a reboot. - SystemCgroups string `json:"systemContainer,omitempty"` - // cgroupRoot is the root cgroup to use for pods. This is handled by the - // container runtime on a best effort basis. + SystemCgroups string `json:"systemCgroups,omitempty"` + // CgroupRoot is the root cgroup to use for pods. + // If CgroupsPerQOS is enabled, this is the root of the QoS cgroup hierarchy. 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"` @@ -318,7 +342,7 @@ type KubeletConfiguration struct { // containerized should be set to true if kubelet is running in a container. Containerized bool `json:"containerized"` // maxOpenFiles is Number of files that can be opened by Kubelet process. - MaxOpenFiles uint64 `json:"maxOpenFiles"` + MaxOpenFiles int64 `json:"maxOpenFiles"` // reconcileCIDR is Reconcile node CIDR with the CIDR specified by the // API server. No-op if register-node or configure-cbr0 is false. ReconcileCIDR bool `json:"reconcileCIDR"` @@ -328,7 +352,7 @@ type KubeletConfiguration struct { // contentType is contentType of requests sent to apiserver. ContentType string `json:"contentType"` // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver - KubeAPIQPS float32 `json:"kubeAPIQPS"` + KubeAPIQPS int32 `json:"kubeAPIQPS"` // kubeAPIBurst is the burst to allow while talking with kubernetes // apiserver KubeAPIBurst int32 `json:"kubeAPIBurst"` @@ -363,12 +387,40 @@ type KubeletConfiguration struct { EvictionPressureTransitionPeriod unversioned.Duration `json:"evictionPressureTransitionPeriod,omitempty"` // Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. EvictionMaxPodGracePeriod int32 `json:"evictionMaxPodGracePeriod,omitempty"` + // Comma-delimited list of minimum reclaims (e.g. imagefs.available=2Gi) that describes the minimum amount of resource the kubelet will reclaim when performing a pod eviction if that resource is under pressure. + EvictionMinimumReclaim string `json:"evictionMinimumReclaim,omitempty"` // Maximum number of pods per core. Cannot exceed MaxPods PodsPerCore int32 `json:"podsPerCore"` // enableControllerAttachDetach enables the Attach/Detach controller to // manage attachment/detachment of volumes scheduled to this node, and // disables kubelet from executing any attach/detach operations EnableControllerAttachDetach bool `json:"enableControllerAttachDetach"` + // A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=150G) pairs + // that describe resources reserved for non-kubernetes components. + // Currently only cpu and memory are supported. [default=none] + // See http://releases.k8s.io/HEAD/docs/user-guide/compute-resources.md for more detail. + SystemReserved utilconfig.ConfigurationMap `json:"systemReserved"` + // A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=150G) pairs + // that describe resources reserved for kubernetes system components. + // Currently only cpu and memory are supported. [default=none] + // See http://releases.k8s.io/HEAD/docs/user-guide/compute-resources.md for more detail. + 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 { @@ -452,6 +504,10 @@ type KubeControllerManagerConfiguration struct { // allowed to sync concurrently. Larger number = more responsive replica // management, but more CPU (and network) load. ConcurrentRCSyncs int32 `json:"concurrentRCSyncs"` + // concurrentServiceSyncs is the number of services that are + // allowed to sync concurrently. Larger number = more responsive service + // management, but more CPU (and network) load. + ConcurrentServiceSyncs int32 `json:"concurrentServiceSyncs"` // concurrentResourceQuotaSyncs is the number of resource quotas that are // allowed to sync concurrently. Larger number = more responsive quota // management, but more CPU (and network) load. @@ -513,14 +569,14 @@ 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"` - // deletingPodsBurst is the number of nodes on which pods are bursty deleted in + // DEPRECATED: deletingPodsBurst is the number of nodes on which pods are bursty deleted in // case of node failure. For more details look into RateLimiter. DeletingPodsBurst int32 `json:"deletingPodsBurst"` // nodeMontiorGracePeriod is the amount of time which we allow a running node to be - // unresponsive before marking it unhealty. Must be N times more than kubelet's + // unresponsive before marking it unhealthy. Must be N times more than kubelet's // nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet // to post node status. NodeMonitorGracePeriod unversioned.Duration `json:"nodeMonitorGracePeriod"` @@ -528,13 +584,25 @@ type KubeControllerManagerConfiguration struct { // Retry interval equals node-sync-period. RegisterRetryCount int32 `json:"registerRetryCount"` // nodeStartupGracePeriod is the amount of time which we allow starting a node to - // be unresponsive before marking it unhealty. + // be unresponsive before marking it unhealthy. NodeStartupGracePeriod unversioned.Duration `json:"nodeStartupGracePeriod"` // nodeMonitorPeriod is the period for syncing NodeStatus in NodeController. NodeMonitorPeriod unversioned.Duration `json:"nodeMonitorPeriod"` // serviceAccountKeyFile is the filename containing a PEM-encoded private RSA key // used to sign service account tokens. ServiceAccountKeyFile string `json:"serviceAccountKeyFile"` + // clusterSigningCertFile is the filename containing a PEM-encoded + // X509 CA certificate used to issue cluster-scoped certificates + ClusterSigningCertFile string `json:"clusterSigningCertFile"` + // 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. @@ -570,6 +638,18 @@ type KubeControllerManagerConfiguration struct { // corresponding flag of the kube-apiserver. WARNING: the generic garbage // collector is an alpha feature. EnableGarbageCollector bool `json:"enableGarbageCollector"` + // 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/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go deleted file mode 100644 index 160b0f9183..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go +++ /dev/null @@ -1,182 +0,0 @@ -// +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/kubernetes/pkg/api" - componentconfig "k8s.io/kubernetes/pkg/apis/componentconfig" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( - Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration, - Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration, - Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration, - Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration, - Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration, - Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } -} - -func autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in *KubeProxyConfiguration, out *componentconfig.KubeProxyConfiguration, s conversion.Scope) error { - SetDefaults_KubeProxyConfiguration(in) - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - out.BindAddress = in.BindAddress - out.ClusterCIDR = in.ClusterCIDR - out.HealthzBindAddress = in.HealthzBindAddress - out.HealthzPort = in.HealthzPort - out.HostnameOverride = in.HostnameOverride - out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit - out.IPTablesSyncPeriod = in.IPTablesSyncPeriod - out.KubeconfigPath = in.KubeconfigPath - out.MasqueradeAll = in.MasqueradeAll - out.Master = in.Master - out.OOMScoreAdj = in.OOMScoreAdj - out.Mode = componentconfig.ProxyMode(in.Mode) - out.PortRange = in.PortRange - out.ResourceContainer = in.ResourceContainer - out.UDPIdleTimeout = in.UDPIdleTimeout - out.ConntrackMax = in.ConntrackMax - out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout - return nil -} - -func Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in *KubeProxyConfiguration, out *componentconfig.KubeProxyConfiguration, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in, out, s) -} - -func autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in *componentconfig.KubeProxyConfiguration, out *KubeProxyConfiguration, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - out.BindAddress = in.BindAddress - out.ClusterCIDR = in.ClusterCIDR - out.HealthzBindAddress = in.HealthzBindAddress - out.HealthzPort = in.HealthzPort - out.HostnameOverride = in.HostnameOverride - out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit - out.IPTablesSyncPeriod = in.IPTablesSyncPeriod - out.KubeconfigPath = in.KubeconfigPath - out.MasqueradeAll = in.MasqueradeAll - out.Master = in.Master - out.OOMScoreAdj = in.OOMScoreAdj - out.Mode = ProxyMode(in.Mode) - out.PortRange = in.PortRange - out.ResourceContainer = in.ResourceContainer - out.UDPIdleTimeout = in.UDPIdleTimeout - out.ConntrackMax = in.ConntrackMax - out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout - return nil -} - -func Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in *componentconfig.KubeProxyConfiguration, out *KubeProxyConfiguration, s conversion.Scope) error { - return autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in, out, s) -} - -func autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration, out *componentconfig.KubeSchedulerConfiguration, s conversion.Scope) error { - SetDefaults_KubeSchedulerConfiguration(in) - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - out.Port = int32(in.Port) - out.Address = in.Address - out.AlgorithmProvider = in.AlgorithmProvider - out.PolicyConfigFile = in.PolicyConfigFile - if err := api.Convert_Pointer_bool_To_bool(&in.EnableProfiling, &out.EnableProfiling, s); err != nil { - return err - } - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = int32(in.KubeAPIBurst) - out.SchedulerName = in.SchedulerName - out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight - out.FailureDomains = in.FailureDomains - if err := Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, s); err != nil { - return err - } - return nil -} - -func Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration, out *componentconfig.KubeSchedulerConfiguration, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in, out, s) -} - -func autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in *componentconfig.KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - out.Port = int(in.Port) - out.Address = in.Address - out.AlgorithmProvider = in.AlgorithmProvider - out.PolicyConfigFile = in.PolicyConfigFile - if err := api.Convert_bool_To_Pointer_bool(&in.EnableProfiling, &out.EnableProfiling, s); err != nil { - return err - } - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = int(in.KubeAPIBurst) - out.SchedulerName = in.SchedulerName - out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight - out.FailureDomains = in.FailureDomains - if err := Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, s); err != nil { - return err - } - return nil -} - -func Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in *componentconfig.KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, s conversion.Scope) error { - return autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in, out, s) -} - -func autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error { - SetDefaults_LeaderElectionConfiguration(in) - if err := api.Convert_Pointer_bool_To_bool(&in.LeaderElect, &out.LeaderElect, s); err != nil { - return err - } - out.LeaseDuration = in.LeaseDuration - out.RenewDeadline = in.RenewDeadline - out.RetryPeriod = in.RetryPeriod - return nil -} - -func Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error { - return autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in, out, s) -} - -func autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error { - if err := api.Convert_bool_To_Pointer_bool(&in.LeaderElect, &out.LeaderElect, s); err != nil { - return err - } - out.LeaseDuration = in.LeaseDuration - out.RenewDeadline = in.RenewDeadline - out.RetryPeriod = in.RetryPeriod - return nil -} - -func Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error { - return autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in, out, s) -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go deleted file mode 100644 index 04d9ab09b9..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go +++ /dev/null @@ -1,110 +0,0 @@ -// +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 ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1alpha1_KubeProxyConfiguration, - DeepCopy_v1alpha1_KubeSchedulerConfiguration, - DeepCopy_v1alpha1_LeaderElectionConfiguration, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1alpha1_KubeProxyConfiguration(in KubeProxyConfiguration, out *KubeProxyConfiguration, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.BindAddress = in.BindAddress - out.ClusterCIDR = in.ClusterCIDR - out.HealthzBindAddress = in.HealthzBindAddress - out.HealthzPort = in.HealthzPort - out.HostnameOverride = in.HostnameOverride - if in.IPTablesMasqueradeBit != nil { - in, out := in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit - *out = new(int32) - **out = *in - } else { - out.IPTablesMasqueradeBit = nil - } - out.IPTablesSyncPeriod = in.IPTablesSyncPeriod - out.KubeconfigPath = in.KubeconfigPath - out.MasqueradeAll = in.MasqueradeAll - out.Master = in.Master - if in.OOMScoreAdj != nil { - in, out := in.OOMScoreAdj, &out.OOMScoreAdj - *out = new(int32) - **out = *in - } else { - out.OOMScoreAdj = nil - } - out.Mode = in.Mode - out.PortRange = in.PortRange - out.ResourceContainer = in.ResourceContainer - out.UDPIdleTimeout = in.UDPIdleTimeout - out.ConntrackMax = in.ConntrackMax - out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout - return nil -} - -func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Port = in.Port - out.Address = in.Address - out.AlgorithmProvider = in.AlgorithmProvider - out.PolicyConfigFile = in.PolicyConfigFile - if in.EnableProfiling != nil { - in, out := in.EnableProfiling, &out.EnableProfiling - *out = new(bool) - **out = *in - } else { - out.EnableProfiling = nil - } - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.SchedulerName = in.SchedulerName - out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight - out.FailureDomains = in.FailureDomains - if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(in.LeaderElection, &out.LeaderElection, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1alpha1_LeaderElectionConfiguration(in LeaderElectionConfiguration, out *LeaderElectionConfiguration, c *conversion.Cloner) error { - if in.LeaderElect != nil { - in, out := in.LeaderElect, &out.LeaderElect - *out = new(bool) - **out = *in - } else { - out.LeaderElect = nil - } - out.LeaseDuration = in.LeaseDuration - out.RenewDeadline = in.RenewDeadline - out.RetryPeriod = in.RetryPeriod - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go index b40b3e4636..16031a1b75 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go @@ -17,20 +17,45 @@ limitations under the License. package v1alpha1 import ( + "path/filepath" + "runtime" "time" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/kubelet/qos" + kubetypes "k8s.io/kubernetes/pkg/kubelet/types" "k8s.io/kubernetes/pkg/master/ports" - "k8s.io/kubernetes/pkg/runtime" + kruntime "k8s.io/kubernetes/pkg/runtime" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +const ( + defaultRootDir = "/var/lib/kubelet" + + // When these values are updated, also update test/e2e/framework/util.go + defaultPodInfraContainerImageName = "gcr.io/google_containers/pause" + defaultPodInfraContainerImageVersion = "3.0" + defaultPodInfraContainerImage = defaultPodInfraContainerImageName + + "-" + runtime.GOARCH + ":" + + defaultPodInfraContainerImageVersion + + // From pkg/kubelet/rkt/rkt.go to avoid circular import + defaultRktAPIServiceEndpoint = "localhost:15441" + + AutoDetectCloudProvider = "auto-detect" + + defaultIPTablesMasqueradeBit = 14 + defaultIPTablesDropBit = 15 +) + +var zeroDuration = unversioned.Duration{} + +func addDefaultingFuncs(scheme *kruntime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_KubeProxyConfiguration, SetDefaults_KubeSchedulerConfiguration, SetDefaults_LeaderElectionConfiguration, + SetDefaults_KubeletConfiguration, ) } @@ -58,8 +83,12 @@ func SetDefaults_KubeProxyConfiguration(obj *KubeProxyConfiguration) { if obj.UDPIdleTimeout == zero { obj.UDPIdleTimeout = unversioned.Duration{Duration: 250 * time.Millisecond} } + // If ConntrackMax is set, respect it. if obj.ConntrackMax == 0 { - obj.ConntrackMax = 256 * 1024 // 4x default (64k) + // If ConntrackMax is *not* set, use per-core scaling. + if obj.ConntrackMaxPerCore == 0 { + obj.ConntrackMaxPerCore = 32 * 1024 + } } if obj.IPTablesMasqueradeBit == nil { temp := int32(14) @@ -112,3 +141,222 @@ func SetDefaults_LeaderElectionConfiguration(obj *LeaderElectionConfiguration) { obj.RetryPeriod = unversioned.Duration{Duration: 2 * time.Second} } } + +func SetDefaults_KubeletConfiguration(obj *KubeletConfiguration) { + if obj.Address == "" { + obj.Address = "0.0.0.0" + } + if obj.CloudProvider == "" { + obj.CloudProvider = AutoDetectCloudProvider + } + if obj.CAdvisorPort == 0 { + obj.CAdvisorPort = 4194 + } + if obj.VolumeStatsAggPeriod == zeroDuration { + obj.VolumeStatsAggPeriod = unversioned.Duration{Duration: time.Minute} + } + if obj.CertDirectory == "" { + obj.CertDirectory = "/var/run/kubernetes" + } + if obj.ConfigureCBR0 == nil { + obj.ConfigureCBR0 = boolVar(false) + } + if obj.CgroupsPerQOS == nil { + obj.CgroupsPerQOS = boolVar(false) + } + if obj.ContainerRuntime == "" { + obj.ContainerRuntime = "docker" + } + if obj.RuntimeRequestTimeout == zeroDuration { + obj.RuntimeRequestTimeout = unversioned.Duration{Duration: 2 * time.Minute} + } + if obj.CPUCFSQuota == nil { + obj.CPUCFSQuota = boolVar(true) + } + if obj.DockerExecHandlerName == "" { + obj.DockerExecHandlerName = "native" + } + if obj.DockerEndpoint == "" { + obj.DockerEndpoint = "unix:///var/run/docker.sock" + } + if obj.EventBurst == 0 { + obj.EventBurst = 10 + } + if obj.EventRecordQPS == nil { + temp := int32(5) + obj.EventRecordQPS = &temp + } + if obj.EnableControllerAttachDetach == nil { + obj.EnableControllerAttachDetach = boolVar(true) + } + if obj.EnableDebuggingHandlers == nil { + obj.EnableDebuggingHandlers = boolVar(true) + } + if obj.EnableServer == nil { + obj.EnableServer = boolVar(true) + } + if obj.FileCheckFrequency == zeroDuration { + obj.FileCheckFrequency = unversioned.Duration{Duration: 20 * time.Second} + } + if obj.HealthzBindAddress == "" { + obj.HealthzBindAddress = "127.0.0.1" + } + if obj.HealthzPort == 0 { + obj.HealthzPort = 10248 + } + if obj.HostNetworkSources == nil { + obj.HostNetworkSources = []string{kubetypes.AllSource} + } + if obj.HostPIDSources == nil { + obj.HostPIDSources = []string{kubetypes.AllSource} + } + if obj.HostIPCSources == nil { + obj.HostIPCSources = []string{kubetypes.AllSource} + } + if obj.HTTPCheckFrequency == zeroDuration { + obj.HTTPCheckFrequency = unversioned.Duration{Duration: 20 * time.Second} + } + if obj.ImageMinimumGCAge == zeroDuration { + obj.ImageMinimumGCAge = unversioned.Duration{Duration: 2 * time.Minute} + } + if obj.ImageGCHighThresholdPercent == nil { + temp := int32(90) + obj.ImageGCHighThresholdPercent = &temp + } + if obj.ImageGCLowThresholdPercent == nil { + temp := int32(80) + obj.ImageGCLowThresholdPercent = &temp + } + if obj.LowDiskSpaceThresholdMB == 0 { + obj.LowDiskSpaceThresholdMB = 256 + } + if obj.MasterServiceNamespace == "" { + obj.MasterServiceNamespace = api.NamespaceDefault + } + if obj.MaxContainerCount == nil { + temp := int32(-1) + obj.MaxContainerCount = &temp + } + if obj.MaxPerPodContainerCount == 0 { + obj.MaxPerPodContainerCount = 1 + } + if obj.MaxOpenFiles == 0 { + obj.MaxOpenFiles = 1000000 + } + if obj.MaxPods == 0 { + obj.MaxPods = 110 + } + if obj.MinimumGCAge == zeroDuration { + obj.MinimumGCAge = unversioned.Duration{Duration: 0} + } + if obj.NetworkPluginDir == "" { + obj.NetworkPluginDir = "/usr/libexec/kubernetes/kubelet-plugins/net/exec/" + } + if obj.NonMasqueradeCIDR == "" { + obj.NonMasqueradeCIDR = "10.0.0.0/8" + } + if obj.VolumePluginDir == "" { + obj.VolumePluginDir = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/" + } + if obj.NodeStatusUpdateFrequency == zeroDuration { + obj.NodeStatusUpdateFrequency = unversioned.Duration{Duration: 10 * time.Second} + } + if obj.OOMScoreAdj == nil { + temp := int32(qos.KubeletOOMScoreAdj) + obj.OOMScoreAdj = &temp + } + if obj.PodInfraContainerImage == "" { + obj.PodInfraContainerImage = defaultPodInfraContainerImage + } + if obj.Port == 0 { + obj.Port = ports.KubeletPort + } + if obj.ReadOnlyPort == 0 { + obj.ReadOnlyPort = ports.KubeletReadOnlyPort + } + if obj.RegisterNode == nil { + obj.RegisterNode = boolVar(true) + } + if obj.RegisterSchedulable == nil { + obj.RegisterSchedulable = boolVar(true) + } + if obj.RegistryBurst == 0 { + obj.RegistryBurst = 10 + } + if obj.RegistryPullQPS == nil { + temp := int32(5) + obj.RegistryPullQPS = &temp + } + if obj.ResolverConfig == "" { + obj.ResolverConfig = kubetypes.ResolvConfDefault + } + if obj.RktAPIEndpoint == "" { + obj.RktAPIEndpoint = defaultRktAPIServiceEndpoint + } + if obj.RootDirectory == "" { + obj.RootDirectory = defaultRootDir + } + if obj.SerializeImagePulls == nil { + obj.SerializeImagePulls = boolVar(true) + } + if obj.SeccompProfileRoot == "" { + filepath.Join(defaultRootDir, "seccomp") + } + if obj.StreamingConnectionIdleTimeout == zeroDuration { + obj.StreamingConnectionIdleTimeout = unversioned.Duration{Duration: 4 * time.Hour} + } + if obj.SyncFrequency == zeroDuration { + obj.SyncFrequency = unversioned.Duration{Duration: 1 * time.Minute} + } + if obj.ReconcileCIDR == nil { + obj.ReconcileCIDR = boolVar(true) + } + if obj.ContentType == "" { + obj.ContentType = "application/vnd.kubernetes.protobuf" + } + if obj.KubeAPIQPS == nil { + temp := int32(5) + obj.KubeAPIQPS = &temp + } + if obj.KubeAPIBurst == 0 { + obj.KubeAPIBurst = 10 + } + if obj.OutOfDiskTransitionFrequency == zeroDuration { + obj.OutOfDiskTransitionFrequency = unversioned.Duration{Duration: 5 * time.Minute} + } + if string(obj.HairpinMode) == "" { + obj.HairpinMode = PromiscuousBridge + } + if obj.EvictionHard == nil { + temp := "memory.available<100Mi" + obj.EvictionHard = &temp + } + if obj.EvictionPressureTransitionPeriod == zeroDuration { + obj.EvictionPressureTransitionPeriod = unversioned.Duration{Duration: 5 * time.Minute} + } + if obj.SystemReserved == nil { + obj.SystemReserved = make(map[string]string) + } + 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 { + return &b +} + +var ( + defaultCfg = KubeletConfiguration{} +) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go index 17fb52a10f..7017d9e98b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go @@ -27,14 +27,20 @@ const GroupName = "componentconfig" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &KubeProxyConfiguration{}, &KubeSchedulerConfiguration{}, + &KubeletConfiguration{}, ) + return nil } + +func (obj *KubeProxyConfiguration) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } +func (obj *KubeSchedulerConfiguration) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } +func (obj *KubeletConfiguration) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go index 817468a70c..8b0227dc26 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go @@ -62,10 +62,15 @@ type KubeProxyConfiguration struct { // udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s'). // 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)") + // conntrackMax is the maximum number of NAT connections to track (0 to + // leave as-is). This takes precendence over conntrackMaxPerCore. ConntrackMax int32 `json:"conntrackMax"` - // conntrackTCPEstablishedTimeout is how long an idle UDP connection will be kept open - // (e.g. '250ms', '2s'). Must be greater than 0. Only applicable for proxyMode is Userspace + // conntrackMaxPerCore is the maximum number of NAT connections to track + // per CPU core (0 to leave as-is). This value is only considered if + // conntrackMax == 0. + ConntrackMaxPerCore int32 `json:"conntrackMaxPerCore"` + // conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open + // (e.g. '250ms', '2s'). Must be greater than 0. ConntrackTCPEstablishedTimeout unversioned.Duration `json:"conntrackTCPEstablishedTimeout"` } @@ -115,6 +120,24 @@ type KubeSchedulerConfiguration struct { LeaderElection LeaderElectionConfiguration `json:"leaderElection"` } +// HairpinMode denotes how the kubelet should configure networking to handle +// hairpin packets. +type HairpinMode string + +// Enum settings for different ways to handle hairpin packets. +const ( + // Set the hairpin flag on the veth of containers in the respective + // container runtime. + HairpinVeth = "hairpin-veth" + // Make the container bridge promiscuous. This will force it to accept + // hairpin packets, even if the flag isn't set on ports of the bridge. + PromiscuousBridge = "promiscuous-bridge" + // Neither of the above. If the kubelet is started in this hairpin mode + // and kube-proxy is running in iptables mode, hairpin packets will be + // dropped by the container bridge. + HairpinNone = "none" +) + // LeaderElectionConfiguration defines the configuration of leader election // clients for components that can run with leader election enabled. type LeaderElectionConfiguration struct { @@ -139,3 +162,319 @@ type LeaderElectionConfiguration struct { // leader election is enabled. RetryPeriod unversioned.Duration `json:"retryPeriod"` } + +type KubeletConfiguration struct { + unversioned.TypeMeta + + // podManifestPath is the path to the directory containing pod manifests to + // run, or the path to a single manifest file + PodManifestPath string `json:"podManifestPath"` + // syncFrequency is the max period between synchronizing running + // containers and config + SyncFrequency unversioned.Duration `json:"syncFrequency"` + // fileCheckFrequency is the duration between checking config files for + // new data + FileCheckFrequency unversioned.Duration `json:"fileCheckFrequency"` + // httpCheckFrequency is the duration between checking http for new data + HTTPCheckFrequency unversioned.Duration `json:"httpCheckFrequency"` + // manifestURL is the URL for accessing the container manifest + ManifestURL string `json:"manifestURL"` + // manifestURLHeader is the HTTP header to use when accessing the manifest + // URL, with the key separated from the value with a ':', as in 'key:value' + ManifestURLHeader string `json:"manifestURLHeader"` + // enableServer enables the Kubelet's server + EnableServer *bool `json:"enableServer"` + // address is the IP address for the Kubelet to serve on (set to 0.0.0.0 + // for all interfaces) + Address string `json:"address"` + // port is the port for the Kubelet to serve on. + Port int32 `json:"port"` + // readOnlyPort is the read-only port for the Kubelet to serve on with + // no authentication/authorization (set to 0 to disable) + ReadOnlyPort int32 `json:"readOnlyPort"` + // tlsCertFile is the file containing x509 Certificate for HTTPS. (CA cert, + // if any, concatenated after server cert). If tlsCertFile and + // tlsPrivateKeyFile are not provided, a self-signed certificate + // and key are generated for the public address and saved to the directory + // passed to certDir. + TLSCertFile string `json:"tlsCertFile"` + // tlsPrivateKeyFile is the ile containing x509 private key matching + // tlsCertFile. + TLSPrivateKeyFile string `json:"tlsPrivateKeyFile"` + // certDirectory is the directory where the TLS certs are located (by + // default /var/run/kubernetes). If tlsCertFile and tlsPrivateKeyFile + // are provided, this flag will be ignored. + CertDirectory string `json:"certDirectory"` + // hostnameOverride is the hostname used to identify the kubelet instead + // of the actual hostname. + HostnameOverride string `json:"hostnameOverride"` + // podInfraContainerImage is the image whose network/ipc namespaces + // containers in each pod will use. + PodInfraContainerImage string `json:"podInfraContainerImage"` + // dockerEndpoint is the path to the docker endpoint to communicate with. + DockerEndpoint string `json:"dockerEndpoint"` + // rootDirectory is the directory path to place kubelet files (volume + // mounts,etc). + RootDirectory string `json:"rootDirectory"` + // seccompProfileRoot is the directory path for seccomp profiles. + SeccompProfileRoot string `json:"seccompProfileRoot"` + // allowPrivileged enables containers to request privileged mode. + // Defaults to false. + AllowPrivileged *bool `json:"allowPrivileged"` + // hostNetworkSources is a comma-separated list of sources from which the + // Kubelet allows pods to use of host network. Defaults to "*". Valid + // options are "file", "http", "api", and "*" (all sources). + HostNetworkSources []string `json:"hostNetworkSources"` + // hostPIDSources is a comma-separated list of sources from which the + // Kubelet allows pods to use the host pid namespace. Defaults to "*". + HostPIDSources []string `json:"hostPIDSources"` + // hostIPCSources is a comma-separated list of sources from which the + // Kubelet allows pods to use the host ipc namespace. Defaults to "*". + HostIPCSources []string `json:"hostIPCSources"` + // registryPullQPS is the limit of registry pulls per second. If 0, + // unlimited. Set to 0 for no limit. Defaults to 5.0. + RegistryPullQPS *int32 `json:"registryPullQPS"` + // registryBurst is the maximum size of a bursty pulls, temporarily allows + // pulls to burst to this number, while still not exceeding registryQps. + // Only used if registryQPS > 0. + RegistryBurst int32 `json:"registryBurst"` + // eventRecordQPS is the maximum event creations per second. If 0, there + // is no limit enforced. + EventRecordQPS *int32 `json:"eventRecordQPS"` + // eventBurst is the maximum size of a bursty event records, temporarily + // allows event records to burst to this number, while still not exceeding + // event-qps. Only used if eventQps > 0 + EventBurst int32 `json:"eventBurst"` + // enableDebuggingHandlers enables server endpoints for log collection + // and local running of containers and commands + EnableDebuggingHandlers *bool `json:"enableDebuggingHandlers"` + // minimumGCAge is the minimum age for a finished container before it is + // garbage collected. + MinimumGCAge unversioned.Duration `json:"minimumGCAge"` + // maxPerPodContainerCount is the maximum number of old instances to + // retain per container. Each container takes up some disk space. + MaxPerPodContainerCount int32 `json:"maxPerPodContainerCount"` + // maxContainerCount is the maximum number of old instances of containers + // to retain globally. Each container takes up some disk space. + MaxContainerCount *int32 `json:"maxContainerCount"` + // cAdvisorPort is the port of the localhost cAdvisor endpoint + CAdvisorPort int32 `json:"cAdvisorPort"` + // healthzPort is the port of the localhost healthz endpoint + HealthzPort int32 `json:"healthzPort"` + // healthzBindAddress is the IP address for the healthz server to serve + // on. + HealthzBindAddress string `json:"healthzBindAddress"` + // oomScoreAdj is The oom-score-adj value for kubelet process. Values + // must be within the range [-1000, 1000]. + OOMScoreAdj *int32 `json:"oomScoreAdj"` + // registerNode enables automatic registration with the apiserver. + RegisterNode *bool `json:"registerNode"` + // clusterDomain is the DNS domain for this cluster. If set, kubelet will + // configure all containers to search this domain in addition to the + // host's search domains. + ClusterDomain string `json:"clusterDomain"` + // masterServiceNamespace is The namespace from which the kubernetes + // master services should be injected into pods. + MasterServiceNamespace string `json:"masterServiceNamespace"` + // clusterDNS is the IP address for a cluster DNS server. If set, kubelet + // will configure all containers to use this for DNS resolution in + // addition to the host's DNS servers + ClusterDNS string `json:"clusterDNS"` + // streamingConnectionIdleTimeout is the maximum time a streaming connection + // can be idle before the connection is automatically closed. + StreamingConnectionIdleTimeout unversioned.Duration `json:"streamingConnectionIdleTimeout"` + // nodeStatusUpdateFrequency is the frequency that kubelet posts node + // 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 + // garbage collected. + ImageMinimumGCAge unversioned.Duration `json:"imageMinimumGCAge"` + // imageGCHighThresholdPercent is the percent of disk usage after which + // image garbage collection is always run. The percent is calculated as + // this field value out of 100. + ImageGCHighThresholdPercent *int32 `json:"imageGCHighThresholdPercent"` + // imageGCLowThresholdPercent is the percent of disk usage before which + // image garbage collection is never run. Lowest disk usage to garbage + // collect to. The percent is calculated as this field value out of 100. + ImageGCLowThresholdPercent *int32 `json:"imageGCLowThresholdPercent"` + // lowDiskSpaceThresholdMB is the absolute free disk space, in MB, to + // maintain. When disk space falls below this threshold, new pods would + // be rejected. + LowDiskSpaceThresholdMB int32 `json:"lowDiskSpaceThresholdMB"` + // How frequently to calculate and cache volume disk usage for all pods + VolumeStatsAggPeriod unversioned.Duration `json:"volumeStatsAggPeriod"` + // networkPluginName is the name of the network plugin to be invoked for + // various events in kubelet/pod lifecycle + NetworkPluginName string `json:"networkPluginName"` + // 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"` + // cloudProvider is the provider for cloud services. + CloudProvider string `json:"cloudProvider"` + // cloudConfigFile is the path to the cloud provider configuration file. + CloudConfigFile string `json:"cloudConfigFile"` + // kubeletCgroups is the absolute name of cgroups to isolate the kubelet in. + KubeletCgroups string `json:"kubeletCgroups"` + // runtimeCgroups are cgroups that container runtime is expected to be isolated in. + RuntimeCgroups string `json:"runtimeCgroups"` + // systemCgroups is absolute name of cgroups in which to place + // all non-kernel processes that are not already in a container. Empty + // for no container. Rolling back the flag requires a reboot. + SystemCgroups string `json:"systemCgroups"` + // cgroupRoot is the root cgroup to use for pods. This is handled by the + // container runtime on a best effort basis. + CgroupRoot string `json:"cgroupRoot"` + // Enable QoS based Cgroup hierarchy: top level cgroups for QoS Classes + // And all Burstable and BestEffort pods are brought up under their + // specific top level QoS cgroup. + 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"` + // rktPath is the path of rkt binary. Leave empty to use the first rkt in + // $PATH. + RktPath string `json:"rktPath"` + // rktApiEndpoint is the endpoint of the rkt API service to communicate with. + RktAPIEndpoint string `json:"rktAPIEndpoint"` + // rktStage1Image is the image to use as stage1. Local paths and + // http/https URLs are supported. + RktStage1Image string `json:"rktStage1Image"` + // lockFilePath is the path that kubelet will use to as a lock file. + // It uses this file as a lock to synchronize with other kubelet processes + // that may be running. + LockFilePath *string `json:"lockFilePath"` + // ExitOnLockContention is a flag that signifies to the kubelet that it is running + // in "bootstrap" mode. This requires that 'LockFilePath' has been set. + // This will cause the kubelet to listen to inotify events on the lock file, + // releasing it and exiting when another process tries to open that file. + ExitOnLockContention bool `json:"exitOnLockContention"` + // configureCBR0 enables the kublet to configure cbr0 based on + // Node.Spec.PodCIDR. + ConfigureCBR0 *bool `json:"configureCbr0"` + // How should the kubelet configure the container bridge for hairpin packets. + // Setting this flag allows endpoints in a Service to loadbalance back to + // themselves if they should try to access their own Service. Values: + // "promiscuous-bridge": make the container bridge promiscuous. + // "hairpin-veth": set the hairpin flag on container veth interfaces. + // "none": do nothing. + // Setting --configure-cbr0 to false implies that to achieve hairpin NAT + // one must set --hairpin-mode=veth-flag, because bridge assumes the + // existence of a container bridge named cbr0. + HairpinMode string `json:"hairpinMode"` + // The node has babysitter process monitoring docker and kubelet. + BabysitDaemons bool `json:"babysitDaemons"` + // maxPods is the number of pods that can run on this Kubelet. + MaxPods int32 `json:"maxPods"` + // nvidiaGPUs is the number of NVIDIA GPU devices on this node. + NvidiaGPUs int32 `json:"nvidiaGPUs"` + // dockerExecHandlerName is the handler to use when executing a command + // in a container. Valid values are 'native' and 'nsenter'. Defaults to + // 'native'. + DockerExecHandlerName string `json:"dockerExecHandlerName"` + // The CIDR to use for pod IP addresses, only used in standalone mode. + // In cluster mode, this is obtained from the master. + PodCIDR string `json:"podCIDR"` + // ResolverConfig is the resolver configuration file used as the basis + // for the container DNS resolution configuration."), [] + ResolverConfig string `json:"resolvConf"` + // cpuCFSQuota is Enable CPU CFS quota enforcement for containers that + // specify CPU limits + CPUCFSQuota *bool `json:"cpuCFSQuota"` + // containerized should be set to true if kubelet is running in a container. + Containerized *bool `json:"containerized"` + // maxOpenFiles is Number of files that can be opened by Kubelet process. + MaxOpenFiles int64 `json:"maxOpenFiles"` + // reconcileCIDR is Reconcile node CIDR with the CIDR specified by the + // API server. No-op if register-node or configure-cbr0 is false. + ReconcileCIDR *bool `json:"reconcileCIDR"` + // registerSchedulable tells the kubelet to register the node as + // schedulable. No-op if register-node is false. + RegisterSchedulable *bool `json:"registerSchedulable"` + // contentType is contentType of requests sent to apiserver. + ContentType string `json:"contentType"` + // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver + KubeAPIQPS *int32 `json:"kubeAPIQPS"` + // kubeAPIBurst is the burst to allow while talking with kubernetes + // apiserver + KubeAPIBurst int32 `json:"kubeAPIBurst"` + // serializeImagePulls when enabled, tells the Kubelet to pull images one + // at a time. We recommend *not* changing the default value on nodes that + // run docker daemon with version < 1.9 or an Aufs storage backend. + // Issue #10959 has more details. + SerializeImagePulls *bool `json:"serializeImagePulls"` + // experimentalFlannelOverlay enables experimental support for starting the + // kubelet with the default overlay network (flannel). Assumes flanneld + // is already running in client mode. + ExperimentalFlannelOverlay bool `json:"experimentalFlannelOverlay"` + // outOfDiskTransitionFrequency is duration for which the kubelet has to + // wait before transitioning out of out-of-disk node condition status. + OutOfDiskTransitionFrequency unversioned.Duration `json:"outOfDiskTransitionFrequency"` + // nodeIP is IP address of the node. If set, kubelet will use this IP + // address for the node. + NodeIP string `json:"nodeIP"` + // nodeLabels to add when registering the node in the cluster. + NodeLabels map[string]string `json:"nodeLabels"` + // nonMasqueradeCIDR configures masquerading: traffic to IPs outside this range will use IP masquerade. + NonMasqueradeCIDR string `json:"nonMasqueradeCIDR"` + // enable gathering custom metrics. + EnableCustomMetrics bool `json:"enableCustomMetrics"` + // Comma-delimited list of hard eviction expressions. For example, 'memory.available<300Mi'. + EvictionHard *string `json:"evictionHard"` + // Comma-delimited list of soft eviction expressions. For example, 'memory.available<300Mi'. + EvictionSoft string `json:"evictionSoft"` + // Comma-delimeted list of grace periods for each soft eviction signal. For example, 'memory.available=30s'. + EvictionSoftGracePeriod string `json:"evictionSoftGracePeriod"` + // Duration for which the kubelet has to wait before transitioning out of an eviction pressure condition. + EvictionPressureTransitionPeriod unversioned.Duration `json:"evictionPressureTransitionPeriod"` + // Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. + EvictionMaxPodGracePeriod int32 `json:"evictionMaxPodGracePeriod"` + // Comma-delimited list of minimum reclaims (e.g. imagefs.available=2Gi) that describes the minimum amount of resource the kubelet will reclaim when performing a pod eviction if that resource is under pressure. + EvictionMinimumReclaim string `json:"evictionMinimumReclaim"` + // Maximum number of pods per core. Cannot exceed MaxPods + PodsPerCore int32 `json:"podsPerCore"` + // enableControllerAttachDetach enables the Attach/Detach controller to + // manage attachment/detachment of volumes scheduled to this node, and + // disables kubelet from executing any attach/detach operations + EnableControllerAttachDetach *bool `json:"enableControllerAttachDetach"` + // A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=150G) pairs + // that describe resources reserved for non-kubernetes components. + // Currently only cpu and memory are supported. [default=none] + // See http://releases.k8s.io/HEAD/docs/user-guide/compute-resources.md for more detail. + SystemReserved map[string]string `json:"systemReserved"` + // A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=150G) pairs + // that describe resources reserved for kubernetes system components. + // Currently only cpu and memory are supported. [default=none] + // See http://releases.k8s.io/HEAD/docs/user-guide/compute-resources.md for more detail. + 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/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go new file mode 100644 index 0000000000..d5dc36acec --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go @@ -0,0 +1,548 @@ +// +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/kubernetes/pkg/api" + componentconfig "k8s.io/kubernetes/pkg/apis/componentconfig" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" + config "k8s.io/kubernetes/pkg/util/config" +) + +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_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration, + Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration, + Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration, + Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration, + Convert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfiguration, + Convert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfiguration, + Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration, + Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration, + ) +} + +func autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in *KubeProxyConfiguration, out *componentconfig.KubeProxyConfiguration, s conversion.Scope) error { + SetDefaults_KubeProxyConfiguration(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.BindAddress = in.BindAddress + out.ClusterCIDR = in.ClusterCIDR + out.HealthzBindAddress = in.HealthzBindAddress + out.HealthzPort = in.HealthzPort + out.HostnameOverride = in.HostnameOverride + out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit + out.IPTablesSyncPeriod = in.IPTablesSyncPeriod + out.KubeconfigPath = in.KubeconfigPath + out.MasqueradeAll = in.MasqueradeAll + out.Master = in.Master + out.OOMScoreAdj = in.OOMScoreAdj + out.Mode = componentconfig.ProxyMode(in.Mode) + out.PortRange = in.PortRange + out.ResourceContainer = in.ResourceContainer + out.UDPIdleTimeout = in.UDPIdleTimeout + out.ConntrackMax = in.ConntrackMax + out.ConntrackMaxPerCore = in.ConntrackMaxPerCore + out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + return nil +} + +func Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in *KubeProxyConfiguration, out *componentconfig.KubeProxyConfiguration, s conversion.Scope) error { + return autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in, out, s) +} + +func autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in *componentconfig.KubeProxyConfiguration, out *KubeProxyConfiguration, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.BindAddress = in.BindAddress + out.ClusterCIDR = in.ClusterCIDR + out.HealthzBindAddress = in.HealthzBindAddress + out.HealthzPort = in.HealthzPort + out.HostnameOverride = in.HostnameOverride + out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit + out.IPTablesSyncPeriod = in.IPTablesSyncPeriod + out.KubeconfigPath = in.KubeconfigPath + out.MasqueradeAll = in.MasqueradeAll + out.Master = in.Master + out.OOMScoreAdj = in.OOMScoreAdj + out.Mode = ProxyMode(in.Mode) + out.PortRange = in.PortRange + out.ResourceContainer = in.ResourceContainer + out.UDPIdleTimeout = in.UDPIdleTimeout + out.ConntrackMax = in.ConntrackMax + out.ConntrackMaxPerCore = in.ConntrackMaxPerCore + out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + return nil +} + +func Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in *componentconfig.KubeProxyConfiguration, out *KubeProxyConfiguration, s conversion.Scope) error { + return autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in, out, s) +} + +func autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration, out *componentconfig.KubeSchedulerConfiguration, s conversion.Scope) error { + SetDefaults_KubeSchedulerConfiguration(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Port = int32(in.Port) + out.Address = in.Address + out.AlgorithmProvider = in.AlgorithmProvider + out.PolicyConfigFile = in.PolicyConfigFile + if err := api.Convert_Pointer_bool_To_bool(&in.EnableProfiling, &out.EnableProfiling, s); err != nil { + return err + } + out.ContentType = in.ContentType + out.KubeAPIQPS = in.KubeAPIQPS + out.KubeAPIBurst = int32(in.KubeAPIBurst) + out.SchedulerName = in.SchedulerName + out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight + out.FailureDomains = in.FailureDomains + if err := Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, s); err != nil { + return err + } + return nil +} + +func Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration, out *componentconfig.KubeSchedulerConfiguration, s conversion.Scope) error { + return autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in, out, s) +} + +func autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in *componentconfig.KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.Port = int(in.Port) + out.Address = in.Address + out.AlgorithmProvider = in.AlgorithmProvider + out.PolicyConfigFile = in.PolicyConfigFile + if err := api.Convert_bool_To_Pointer_bool(&in.EnableProfiling, &out.EnableProfiling, s); err != nil { + return err + } + out.ContentType = in.ContentType + out.KubeAPIQPS = in.KubeAPIQPS + out.KubeAPIBurst = int(in.KubeAPIBurst) + out.SchedulerName = in.SchedulerName + out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight + out.FailureDomains = in.FailureDomains + if err := Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, s); err != nil { + return err + } + return nil +} + +func Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in *componentconfig.KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, s conversion.Scope) error { + return autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in, out, s) +} + +func autoConvert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfiguration(in *KubeletConfiguration, out *componentconfig.KubeletConfiguration, s conversion.Scope) error { + SetDefaults_KubeletConfiguration(in) + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.PodManifestPath = in.PodManifestPath + out.SyncFrequency = in.SyncFrequency + out.FileCheckFrequency = in.FileCheckFrequency + out.HTTPCheckFrequency = in.HTTPCheckFrequency + out.ManifestURL = in.ManifestURL + out.ManifestURLHeader = in.ManifestURLHeader + if err := api.Convert_Pointer_bool_To_bool(&in.EnableServer, &out.EnableServer, s); err != nil { + return err + } + out.Address = in.Address + out.Port = in.Port + out.ReadOnlyPort = in.ReadOnlyPort + out.TLSCertFile = in.TLSCertFile + out.TLSPrivateKeyFile = in.TLSPrivateKeyFile + out.CertDirectory = in.CertDirectory + out.HostnameOverride = in.HostnameOverride + out.PodInfraContainerImage = in.PodInfraContainerImage + out.DockerEndpoint = in.DockerEndpoint + out.RootDirectory = in.RootDirectory + out.SeccompProfileRoot = in.SeccompProfileRoot + if err := api.Convert_Pointer_bool_To_bool(&in.AllowPrivileged, &out.AllowPrivileged, s); err != nil { + return err + } + out.HostNetworkSources = in.HostNetworkSources + out.HostPIDSources = in.HostPIDSources + out.HostIPCSources = in.HostIPCSources + if err := api.Convert_Pointer_int32_To_int32(&in.RegistryPullQPS, &out.RegistryPullQPS, s); err != nil { + return err + } + out.RegistryBurst = in.RegistryBurst + if err := api.Convert_Pointer_int32_To_int32(&in.EventRecordQPS, &out.EventRecordQPS, s); err != nil { + return err + } + out.EventBurst = in.EventBurst + if err := api.Convert_Pointer_bool_To_bool(&in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers, s); err != nil { + return err + } + out.MinimumGCAge = in.MinimumGCAge + out.MaxPerPodContainerCount = in.MaxPerPodContainerCount + if err := api.Convert_Pointer_int32_To_int32(&in.MaxContainerCount, &out.MaxContainerCount, s); err != nil { + return err + } + out.CAdvisorPort = in.CAdvisorPort + out.HealthzPort = in.HealthzPort + out.HealthzBindAddress = in.HealthzBindAddress + if err := api.Convert_Pointer_int32_To_int32(&in.OOMScoreAdj, &out.OOMScoreAdj, s); err != nil { + return err + } + if err := api.Convert_Pointer_bool_To_bool(&in.RegisterNode, &out.RegisterNode, s); err != nil { + return err + } + out.ClusterDomain = in.ClusterDomain + out.MasterServiceNamespace = in.MasterServiceNamespace + out.ClusterDNS = in.ClusterDNS + out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout + out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency + out.ImageMinimumGCAge = in.ImageMinimumGCAge + if err := api.Convert_Pointer_int32_To_int32(&in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent, s); err != nil { + return err + } + if err := api.Convert_Pointer_int32_To_int32(&in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent, s); err != nil { + return err + } + out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB + 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 + out.KubeletCgroups = in.KubeletCgroups + out.RuntimeCgroups = in.RuntimeCgroups + out.SystemCgroups = in.SystemCgroups + out.CgroupRoot = in.CgroupRoot + if err := api.Convert_Pointer_bool_To_bool(&in.CgroupsPerQOS, &out.CgroupsPerQOS, s); err != nil { + 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 + out.RktStage1Image = in.RktStage1Image + if err := api.Convert_Pointer_string_To_string(&in.LockFilePath, &out.LockFilePath, s); err != nil { + return err + } + out.ExitOnLockContention = in.ExitOnLockContention + if err := api.Convert_Pointer_bool_To_bool(&in.ConfigureCBR0, &out.ConfigureCBR0, s); err != nil { + return err + } + out.HairpinMode = in.HairpinMode + out.BabysitDaemons = in.BabysitDaemons + out.MaxPods = in.MaxPods + out.NvidiaGPUs = in.NvidiaGPUs + out.DockerExecHandlerName = in.DockerExecHandlerName + out.PodCIDR = in.PodCIDR + out.ResolverConfig = in.ResolverConfig + if err := api.Convert_Pointer_bool_To_bool(&in.CPUCFSQuota, &out.CPUCFSQuota, s); err != nil { + return err + } + if err := api.Convert_Pointer_bool_To_bool(&in.Containerized, &out.Containerized, s); err != nil { + return err + } + out.MaxOpenFiles = in.MaxOpenFiles + if err := api.Convert_Pointer_bool_To_bool(&in.ReconcileCIDR, &out.ReconcileCIDR, s); err != nil { + return err + } + if err := api.Convert_Pointer_bool_To_bool(&in.RegisterSchedulable, &out.RegisterSchedulable, s); err != nil { + return err + } + out.ContentType = in.ContentType + if err := api.Convert_Pointer_int32_To_int32(&in.KubeAPIQPS, &out.KubeAPIQPS, s); err != nil { + return err + } + out.KubeAPIBurst = in.KubeAPIBurst + if err := api.Convert_Pointer_bool_To_bool(&in.SerializeImagePulls, &out.SerializeImagePulls, s); err != nil { + return err + } + out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay + out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency + out.NodeIP = in.NodeIP + out.NodeLabels = in.NodeLabels + out.NonMasqueradeCIDR = in.NonMasqueradeCIDR + out.EnableCustomMetrics = in.EnableCustomMetrics + if err := api.Convert_Pointer_string_To_string(&in.EvictionHard, &out.EvictionHard, s); err != nil { + return err + } + out.EvictionSoft = in.EvictionSoft + out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod + out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod + out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod + out.EvictionMinimumReclaim = in.EvictionMinimumReclaim + out.PodsPerCore = in.PodsPerCore + if err := api.Convert_Pointer_bool_To_bool(&in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach, s); err != nil { + return err + } + if in.SystemReserved != nil { + in, out := &in.SystemReserved, &out.SystemReserved + *out = make(config.ConfigurationMap, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.SystemReserved = nil + } + if in.KubeReserved != nil { + in, out := &in.KubeReserved, &out.KubeReserved + *out = make(config.ConfigurationMap, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } else { + 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 +} + +func Convert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfiguration(in *KubeletConfiguration, out *componentconfig.KubeletConfiguration, s conversion.Scope) error { + return autoConvert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfiguration(in, out, s) +} + +func autoConvert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfiguration(in *componentconfig.KubeletConfiguration, out *KubeletConfiguration, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + out.PodManifestPath = in.PodManifestPath + out.SyncFrequency = in.SyncFrequency + out.FileCheckFrequency = in.FileCheckFrequency + out.HTTPCheckFrequency = in.HTTPCheckFrequency + out.ManifestURL = in.ManifestURL + out.ManifestURLHeader = in.ManifestURLHeader + if err := api.Convert_bool_To_Pointer_bool(&in.EnableServer, &out.EnableServer, s); err != nil { + return err + } + out.Address = in.Address + out.Port = in.Port + out.ReadOnlyPort = in.ReadOnlyPort + out.TLSCertFile = in.TLSCertFile + out.TLSPrivateKeyFile = in.TLSPrivateKeyFile + out.CertDirectory = in.CertDirectory + out.HostnameOverride = in.HostnameOverride + out.PodInfraContainerImage = in.PodInfraContainerImage + out.DockerEndpoint = in.DockerEndpoint + out.RootDirectory = in.RootDirectory + out.SeccompProfileRoot = in.SeccompProfileRoot + if err := api.Convert_bool_To_Pointer_bool(&in.AllowPrivileged, &out.AllowPrivileged, s); err != nil { + return err + } + out.HostNetworkSources = in.HostNetworkSources + out.HostPIDSources = in.HostPIDSources + out.HostIPCSources = in.HostIPCSources + if err := api.Convert_int32_To_Pointer_int32(&in.RegistryPullQPS, &out.RegistryPullQPS, s); err != nil { + return err + } + out.RegistryBurst = in.RegistryBurst + if err := api.Convert_int32_To_Pointer_int32(&in.EventRecordQPS, &out.EventRecordQPS, s); err != nil { + return err + } + out.EventBurst = in.EventBurst + if err := api.Convert_bool_To_Pointer_bool(&in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers, s); err != nil { + return err + } + out.MinimumGCAge = in.MinimumGCAge + out.MaxPerPodContainerCount = in.MaxPerPodContainerCount + if err := api.Convert_int32_To_Pointer_int32(&in.MaxContainerCount, &out.MaxContainerCount, s); err != nil { + return err + } + out.CAdvisorPort = in.CAdvisorPort + out.HealthzPort = in.HealthzPort + out.HealthzBindAddress = in.HealthzBindAddress + if err := api.Convert_int32_To_Pointer_int32(&in.OOMScoreAdj, &out.OOMScoreAdj, s); err != nil { + return err + } + if err := api.Convert_bool_To_Pointer_bool(&in.RegisterNode, &out.RegisterNode, s); err != nil { + return err + } + out.ClusterDomain = in.ClusterDomain + out.MasterServiceNamespace = in.MasterServiceNamespace + out.ClusterDNS = in.ClusterDNS + out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout + out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency + out.ImageMinimumGCAge = in.ImageMinimumGCAge + if err := api.Convert_int32_To_Pointer_int32(&in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent, s); err != nil { + return err + } + if err := api.Convert_int32_To_Pointer_int32(&in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent, s); err != nil { + return err + } + 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 + out.CloudConfigFile = in.CloudConfigFile + out.KubeletCgroups = in.KubeletCgroups + if err := api.Convert_bool_To_Pointer_bool(&in.CgroupsPerQOS, &out.CgroupsPerQOS, s); err != nil { + return err + } + out.RuntimeCgroups = in.RuntimeCgroups + 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 + out.RktStage1Image = in.RktStage1Image + if err := api.Convert_string_To_Pointer_string(&in.LockFilePath, &out.LockFilePath, s); err != nil { + return err + } + out.ExitOnLockContention = in.ExitOnLockContention + if err := api.Convert_bool_To_Pointer_bool(&in.ConfigureCBR0, &out.ConfigureCBR0, s); err != nil { + return err + } + out.HairpinMode = in.HairpinMode + out.BabysitDaemons = in.BabysitDaemons + out.MaxPods = in.MaxPods + out.NvidiaGPUs = in.NvidiaGPUs + out.DockerExecHandlerName = in.DockerExecHandlerName + out.PodCIDR = in.PodCIDR + out.ResolverConfig = in.ResolverConfig + if err := api.Convert_bool_To_Pointer_bool(&in.CPUCFSQuota, &out.CPUCFSQuota, s); err != nil { + return err + } + if err := api.Convert_bool_To_Pointer_bool(&in.Containerized, &out.Containerized, s); err != nil { + return err + } + out.MaxOpenFiles = in.MaxOpenFiles + if err := api.Convert_bool_To_Pointer_bool(&in.ReconcileCIDR, &out.ReconcileCIDR, s); err != nil { + return err + } + if err := api.Convert_bool_To_Pointer_bool(&in.RegisterSchedulable, &out.RegisterSchedulable, s); err != nil { + return err + } + out.ContentType = in.ContentType + if err := api.Convert_int32_To_Pointer_int32(&in.KubeAPIQPS, &out.KubeAPIQPS, s); err != nil { + return err + } + out.KubeAPIBurst = in.KubeAPIBurst + if err := api.Convert_bool_To_Pointer_bool(&in.SerializeImagePulls, &out.SerializeImagePulls, s); err != nil { + return err + } + out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay + out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency + out.NodeIP = in.NodeIP + out.NodeLabels = in.NodeLabels + out.NonMasqueradeCIDR = in.NonMasqueradeCIDR + out.EnableCustomMetrics = in.EnableCustomMetrics + if err := api.Convert_string_To_Pointer_string(&in.EvictionHard, &out.EvictionHard, s); err != nil { + return err + } + out.EvictionSoft = in.EvictionSoft + out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod + out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod + out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod + out.EvictionMinimumReclaim = in.EvictionMinimumReclaim + out.PodsPerCore = in.PodsPerCore + if err := api.Convert_bool_To_Pointer_bool(&in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach, s); err != nil { + return err + } + if in.SystemReserved != nil { + in, out := &in.SystemReserved, &out.SystemReserved + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.SystemReserved = nil + } + if in.KubeReserved != nil { + in, out := &in.KubeReserved, &out.KubeReserved + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } else { + 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 +} + +func Convert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfiguration(in *componentconfig.KubeletConfiguration, out *KubeletConfiguration, s conversion.Scope) error { + return autoConvert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfiguration(in, out, s) +} + +func autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error { + SetDefaults_LeaderElectionConfiguration(in) + if err := api.Convert_Pointer_bool_To_bool(&in.LeaderElect, &out.LeaderElect, s); err != nil { + return err + } + out.LeaseDuration = in.LeaseDuration + out.RenewDeadline = in.RenewDeadline + out.RetryPeriod = in.RetryPeriod + return nil +} + +func Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error { + return autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in, out, s) +} + +func autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error { + if err := api.Convert_bool_To_Pointer_bool(&in.LeaderElect, &out.LeaderElect, s); err != nil { + return err + } + out.LeaseDuration = in.LeaseDuration + out.RenewDeadline = in.RenewDeadline + out.RetryPeriod = in.RetryPeriod + return nil +} + +func Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error { + return autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in, out, s) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..952ce0de60 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,432 @@ +// +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 ( + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, + ) +} + +func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeProxyConfiguration) + out := out.(*KubeProxyConfiguration) + out.TypeMeta = in.TypeMeta + out.BindAddress = in.BindAddress + out.ClusterCIDR = in.ClusterCIDR + out.HealthzBindAddress = in.HealthzBindAddress + out.HealthzPort = in.HealthzPort + out.HostnameOverride = in.HostnameOverride + if in.IPTablesMasqueradeBit != nil { + in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit + *out = new(int32) + **out = **in + } else { + out.IPTablesMasqueradeBit = nil + } + out.IPTablesSyncPeriod = in.IPTablesSyncPeriod + out.KubeconfigPath = in.KubeconfigPath + out.MasqueradeAll = in.MasqueradeAll + out.Master = in.Master + if in.OOMScoreAdj != nil { + in, out := &in.OOMScoreAdj, &out.OOMScoreAdj + *out = new(int32) + **out = **in + } else { + out.OOMScoreAdj = nil + } + out.Mode = in.Mode + out.PortRange = in.PortRange + out.ResourceContainer = in.ResourceContainer + out.UDPIdleTimeout = in.UDPIdleTimeout + out.ConntrackMax = in.ConntrackMax + out.ConntrackMaxPerCore = in.ConntrackMaxPerCore + out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + return nil + } +} + +func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeSchedulerConfiguration) + out := out.(*KubeSchedulerConfiguration) + out.TypeMeta = in.TypeMeta + out.Port = in.Port + out.Address = in.Address + out.AlgorithmProvider = in.AlgorithmProvider + out.PolicyConfigFile = in.PolicyConfigFile + if in.EnableProfiling != nil { + in, out := &in.EnableProfiling, &out.EnableProfiling + *out = new(bool) + **out = **in + } else { + out.EnableProfiling = nil + } + out.ContentType = in.ContentType + out.KubeAPIQPS = in.KubeAPIQPS + out.KubeAPIBurst = in.KubeAPIBurst + out.SchedulerName = in.SchedulerName + out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight + out.FailureDomains = in.FailureDomains + if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeletConfiguration) + out := out.(*KubeletConfiguration) + out.TypeMeta = in.TypeMeta + out.PodManifestPath = in.PodManifestPath + out.SyncFrequency = in.SyncFrequency + out.FileCheckFrequency = in.FileCheckFrequency + out.HTTPCheckFrequency = in.HTTPCheckFrequency + out.ManifestURL = in.ManifestURL + out.ManifestURLHeader = in.ManifestURLHeader + if in.EnableServer != nil { + in, out := &in.EnableServer, &out.EnableServer + *out = new(bool) + **out = **in + } else { + out.EnableServer = nil + } + out.Address = in.Address + out.Port = in.Port + out.ReadOnlyPort = in.ReadOnlyPort + out.TLSCertFile = in.TLSCertFile + out.TLSPrivateKeyFile = in.TLSPrivateKeyFile + out.CertDirectory = in.CertDirectory + out.HostnameOverride = in.HostnameOverride + out.PodInfraContainerImage = in.PodInfraContainerImage + out.DockerEndpoint = in.DockerEndpoint + out.RootDirectory = in.RootDirectory + out.SeccompProfileRoot = in.SeccompProfileRoot + if in.AllowPrivileged != nil { + in, out := &in.AllowPrivileged, &out.AllowPrivileged + *out = new(bool) + **out = **in + } else { + out.AllowPrivileged = nil + } + if in.HostNetworkSources != nil { + in, out := &in.HostNetworkSources, &out.HostNetworkSources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.HostNetworkSources = nil + } + if in.HostPIDSources != nil { + in, out := &in.HostPIDSources, &out.HostPIDSources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.HostPIDSources = nil + } + if in.HostIPCSources != nil { + in, out := &in.HostIPCSources, &out.HostIPCSources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.HostIPCSources = nil + } + if in.RegistryPullQPS != nil { + in, out := &in.RegistryPullQPS, &out.RegistryPullQPS + *out = new(int32) + **out = **in + } else { + out.RegistryPullQPS = nil + } + out.RegistryBurst = in.RegistryBurst + if in.EventRecordQPS != nil { + in, out := &in.EventRecordQPS, &out.EventRecordQPS + *out = new(int32) + **out = **in + } else { + out.EventRecordQPS = nil + } + out.EventBurst = in.EventBurst + if in.EnableDebuggingHandlers != nil { + in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers + *out = new(bool) + **out = **in + } else { + out.EnableDebuggingHandlers = nil + } + out.MinimumGCAge = in.MinimumGCAge + out.MaxPerPodContainerCount = in.MaxPerPodContainerCount + if in.MaxContainerCount != nil { + in, out := &in.MaxContainerCount, &out.MaxContainerCount + *out = new(int32) + **out = **in + } else { + out.MaxContainerCount = nil + } + out.CAdvisorPort = in.CAdvisorPort + out.HealthzPort = in.HealthzPort + out.HealthzBindAddress = in.HealthzBindAddress + if in.OOMScoreAdj != nil { + in, out := &in.OOMScoreAdj, &out.OOMScoreAdj + *out = new(int32) + **out = **in + } else { + out.OOMScoreAdj = nil + } + if in.RegisterNode != nil { + in, out := &in.RegisterNode, &out.RegisterNode + *out = new(bool) + **out = **in + } else { + out.RegisterNode = nil + } + out.ClusterDomain = in.ClusterDomain + out.MasterServiceNamespace = in.MasterServiceNamespace + out.ClusterDNS = in.ClusterDNS + out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout + out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency + out.ImageMinimumGCAge = in.ImageMinimumGCAge + if in.ImageGCHighThresholdPercent != nil { + in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent + *out = new(int32) + **out = **in + } else { + out.ImageGCHighThresholdPercent = nil + } + if in.ImageGCLowThresholdPercent != nil { + in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent + *out = new(int32) + **out = **in + } else { + out.ImageGCLowThresholdPercent = nil + } + out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB + 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 + out.KubeletCgroups = in.KubeletCgroups + out.RuntimeCgroups = in.RuntimeCgroups + out.SystemCgroups = in.SystemCgroups + out.CgroupRoot = in.CgroupRoot + if in.CgroupsPerQOS != nil { + in, out := &in.CgroupsPerQOS, &out.CgroupsPerQOS + *out = new(bool) + **out = **in + } else { + 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 + out.RktStage1Image = in.RktStage1Image + if in.LockFilePath != nil { + in, out := &in.LockFilePath, &out.LockFilePath + *out = new(string) + **out = **in + } else { + out.LockFilePath = nil + } + out.ExitOnLockContention = in.ExitOnLockContention + if in.ConfigureCBR0 != nil { + in, out := &in.ConfigureCBR0, &out.ConfigureCBR0 + *out = new(bool) + **out = **in + } else { + out.ConfigureCBR0 = nil + } + out.HairpinMode = in.HairpinMode + out.BabysitDaemons = in.BabysitDaemons + out.MaxPods = in.MaxPods + out.NvidiaGPUs = in.NvidiaGPUs + out.DockerExecHandlerName = in.DockerExecHandlerName + out.PodCIDR = in.PodCIDR + out.ResolverConfig = in.ResolverConfig + if in.CPUCFSQuota != nil { + in, out := &in.CPUCFSQuota, &out.CPUCFSQuota + *out = new(bool) + **out = **in + } else { + out.CPUCFSQuota = nil + } + if in.Containerized != nil { + in, out := &in.Containerized, &out.Containerized + *out = new(bool) + **out = **in + } else { + out.Containerized = nil + } + out.MaxOpenFiles = in.MaxOpenFiles + if in.ReconcileCIDR != nil { + in, out := &in.ReconcileCIDR, &out.ReconcileCIDR + *out = new(bool) + **out = **in + } else { + out.ReconcileCIDR = nil + } + if in.RegisterSchedulable != nil { + in, out := &in.RegisterSchedulable, &out.RegisterSchedulable + *out = new(bool) + **out = **in + } else { + out.RegisterSchedulable = nil + } + out.ContentType = in.ContentType + if in.KubeAPIQPS != nil { + in, out := &in.KubeAPIQPS, &out.KubeAPIQPS + *out = new(int32) + **out = **in + } else { + out.KubeAPIQPS = nil + } + out.KubeAPIBurst = in.KubeAPIBurst + if in.SerializeImagePulls != nil { + in, out := &in.SerializeImagePulls, &out.SerializeImagePulls + *out = new(bool) + **out = **in + } else { + out.SerializeImagePulls = nil + } + out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay + out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency + out.NodeIP = in.NodeIP + if in.NodeLabels != nil { + in, out := &in.NodeLabels, &out.NodeLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.NodeLabels = nil + } + out.NonMasqueradeCIDR = in.NonMasqueradeCIDR + out.EnableCustomMetrics = in.EnableCustomMetrics + if in.EvictionHard != nil { + in, out := &in.EvictionHard, &out.EvictionHard + *out = new(string) + **out = **in + } else { + out.EvictionHard = nil + } + out.EvictionSoft = in.EvictionSoft + out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod + out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod + out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod + out.EvictionMinimumReclaim = in.EvictionMinimumReclaim + out.PodsPerCore = in.PodsPerCore + if in.EnableControllerAttachDetach != nil { + in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach + *out = new(bool) + **out = **in + } else { + out.EnableControllerAttachDetach = nil + } + if in.SystemReserved != nil { + in, out := &in.SystemReserved, &out.SystemReserved + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.SystemReserved = nil + } + if in.KubeReserved != nil { + in, out := &in.KubeReserved, &out.KubeReserved + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + 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 + } +} + +func DeepCopy_v1alpha1_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LeaderElectionConfiguration) + out := out.(*LeaderElectionConfiguration) + if in.LeaderElect != nil { + in, out := &in.LeaderElect, &out.LeaderElect + *out = new(bool) + **out = **in + } else { + out.LeaderElect = nil + } + out.LeaseDuration = in.LeaseDuration + out.RenewDeadline = in.RenewDeadline + out.RetryPeriod = in.RetryPeriod + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/zz_generated.deepcopy.go new file mode 100644 index 0000000000..7f3dd1b15f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/zz_generated.deepcopy.go @@ -0,0 +1,403 @@ +// +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 componentconfig + +import ( + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" + config "k8s.io/kubernetes/pkg/util/config" + 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_componentconfig_IPVar, InType: reflect.TypeOf(&IPVar{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeControllerManagerConfiguration, InType: reflect.TypeOf(&KubeControllerManagerConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration, InType: reflect.TypeOf(&PersistentVolumeRecyclerConfiguration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_PortRangeVar, InType: reflect.TypeOf(&PortRangeVar{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_VolumeConfiguration, InType: reflect.TypeOf(&VolumeConfiguration{})}, + ) +} + +func DeepCopy_componentconfig_IPVar(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IPVar) + out := out.(*IPVar) + if in.Val != nil { + in, out := &in.Val, &out.Val + *out = new(string) + **out = **in + } else { + out.Val = nil + } + return nil + } +} + +func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeControllerManagerConfiguration) + out := out.(*KubeControllerManagerConfiguration) + out.TypeMeta = in.TypeMeta + out.Port = in.Port + out.Address = in.Address + out.CloudProvider = in.CloudProvider + out.CloudConfigFile = in.CloudConfigFile + out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs + out.ConcurrentRSSyncs = in.ConcurrentRSSyncs + out.ConcurrentRCSyncs = in.ConcurrentRCSyncs + out.ConcurrentServiceSyncs = in.ConcurrentServiceSyncs + out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs + out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs + out.ConcurrentDaemonSetSyncs = in.ConcurrentDaemonSetSyncs + out.ConcurrentJobSyncs = in.ConcurrentJobSyncs + out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs + out.ConcurrentSATokenSyncs = in.ConcurrentSATokenSyncs + out.LookupCacheSizeForRC = in.LookupCacheSizeForRC + out.LookupCacheSizeForRS = in.LookupCacheSizeForRS + out.LookupCacheSizeForDaemonSet = in.LookupCacheSizeForDaemonSet + out.ServiceSyncPeriod = in.ServiceSyncPeriod + out.NodeSyncPeriod = in.NodeSyncPeriod + out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod + out.NamespaceSyncPeriod = in.NamespaceSyncPeriod + out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod + out.MinResyncPeriod = in.MinResyncPeriod + out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold + out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod + out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod + out.PodEvictionTimeout = in.PodEvictionTimeout + out.DeletingPodsQps = in.DeletingPodsQps + out.DeletingPodsBurst = in.DeletingPodsBurst + out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod + out.RegisterRetryCount = in.RegisterRetryCount + out.NodeStartupGracePeriod = in.NodeStartupGracePeriod + out.NodeMonitorPeriod = in.NodeMonitorPeriod + 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 + out.ServiceCIDR = in.ServiceCIDR + out.NodeCIDRMaskSize = in.NodeCIDRMaskSize + out.AllocateNodeCIDRs = in.AllocateNodeCIDRs + out.ConfigureCloudRoutes = in.ConfigureCloudRoutes + out.RootCAFile = in.RootCAFile + out.ContentType = in.ContentType + out.KubeAPIQPS = in.KubeAPIQPS + out.KubeAPIBurst = in.KubeAPIBurst + out.LeaderElection = in.LeaderElection + out.VolumeConfiguration = in.VolumeConfiguration + 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 + } +} + +func DeepCopy_componentconfig_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeProxyConfiguration) + out := out.(*KubeProxyConfiguration) + out.TypeMeta = in.TypeMeta + out.BindAddress = in.BindAddress + out.ClusterCIDR = in.ClusterCIDR + out.HealthzBindAddress = in.HealthzBindAddress + out.HealthzPort = in.HealthzPort + out.HostnameOverride = in.HostnameOverride + if in.IPTablesMasqueradeBit != nil { + in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit + *out = new(int32) + **out = **in + } else { + out.IPTablesMasqueradeBit = nil + } + out.IPTablesSyncPeriod = in.IPTablesSyncPeriod + out.KubeconfigPath = in.KubeconfigPath + out.MasqueradeAll = in.MasqueradeAll + out.Master = in.Master + if in.OOMScoreAdj != nil { + in, out := &in.OOMScoreAdj, &out.OOMScoreAdj + *out = new(int32) + **out = **in + } else { + out.OOMScoreAdj = nil + } + out.Mode = in.Mode + out.PortRange = in.PortRange + out.ResourceContainer = in.ResourceContainer + out.UDPIdleTimeout = in.UDPIdleTimeout + out.ConntrackMax = in.ConntrackMax + out.ConntrackMaxPerCore = in.ConntrackMaxPerCore + out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + return nil + } +} + +func DeepCopy_componentconfig_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeSchedulerConfiguration) + out := out.(*KubeSchedulerConfiguration) + out.TypeMeta = in.TypeMeta + out.Port = in.Port + out.Address = in.Address + out.AlgorithmProvider = in.AlgorithmProvider + out.PolicyConfigFile = in.PolicyConfigFile + out.EnableProfiling = in.EnableProfiling + out.ContentType = in.ContentType + out.KubeAPIQPS = in.KubeAPIQPS + out.KubeAPIBurst = in.KubeAPIBurst + out.SchedulerName = in.SchedulerName + out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight + out.FailureDomains = in.FailureDomains + out.LeaderElection = in.LeaderElection + return nil + } +} + +func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KubeletConfiguration) + out := out.(*KubeletConfiguration) + out.TypeMeta = in.TypeMeta + out.PodManifestPath = in.PodManifestPath + out.SyncFrequency = in.SyncFrequency + out.FileCheckFrequency = in.FileCheckFrequency + out.HTTPCheckFrequency = in.HTTPCheckFrequency + out.ManifestURL = in.ManifestURL + out.ManifestURLHeader = in.ManifestURLHeader + out.EnableServer = in.EnableServer + out.Address = in.Address + out.Port = in.Port + out.ReadOnlyPort = in.ReadOnlyPort + out.TLSCertFile = in.TLSCertFile + out.TLSPrivateKeyFile = in.TLSPrivateKeyFile + out.CertDirectory = in.CertDirectory + out.HostnameOverride = in.HostnameOverride + out.PodInfraContainerImage = in.PodInfraContainerImage + out.DockerEndpoint = in.DockerEndpoint + out.RootDirectory = in.RootDirectory + out.SeccompProfileRoot = in.SeccompProfileRoot + out.AllowPrivileged = in.AllowPrivileged + if in.HostNetworkSources != nil { + in, out := &in.HostNetworkSources, &out.HostNetworkSources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.HostNetworkSources = nil + } + if in.HostPIDSources != nil { + in, out := &in.HostPIDSources, &out.HostPIDSources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.HostPIDSources = nil + } + if in.HostIPCSources != nil { + in, out := &in.HostIPCSources, &out.HostIPCSources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.HostIPCSources = nil + } + out.RegistryPullQPS = in.RegistryPullQPS + out.RegistryBurst = in.RegistryBurst + out.EventRecordQPS = in.EventRecordQPS + out.EventBurst = in.EventBurst + out.EnableDebuggingHandlers = in.EnableDebuggingHandlers + out.MinimumGCAge = in.MinimumGCAge + out.MaxPerPodContainerCount = in.MaxPerPodContainerCount + out.MaxContainerCount = in.MaxContainerCount + out.CAdvisorPort = in.CAdvisorPort + out.HealthzPort = in.HealthzPort + out.HealthzBindAddress = in.HealthzBindAddress + out.OOMScoreAdj = in.OOMScoreAdj + out.RegisterNode = in.RegisterNode + out.ClusterDomain = in.ClusterDomain + out.MasterServiceNamespace = in.MasterServiceNamespace + out.ClusterDNS = in.ClusterDNS + out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout + out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency + out.ImageMinimumGCAge = in.ImageMinimumGCAge + out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent + out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent + 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 + out.CloudConfigFile = in.CloudConfigFile + out.KubeletCgroups = in.KubeletCgroups + out.CgroupsPerQOS = in.CgroupsPerQOS + out.RuntimeCgroups = in.RuntimeCgroups + 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 + out.RktStage1Image = in.RktStage1Image + out.LockFilePath = in.LockFilePath + out.ExitOnLockContention = in.ExitOnLockContention + out.ConfigureCBR0 = in.ConfigureCBR0 + out.HairpinMode = in.HairpinMode + out.BabysitDaemons = in.BabysitDaemons + out.MaxPods = in.MaxPods + out.NvidiaGPUs = in.NvidiaGPUs + out.DockerExecHandlerName = in.DockerExecHandlerName + out.PodCIDR = in.PodCIDR + out.ResolverConfig = in.ResolverConfig + out.CPUCFSQuota = in.CPUCFSQuota + out.Containerized = in.Containerized + out.MaxOpenFiles = in.MaxOpenFiles + out.ReconcileCIDR = in.ReconcileCIDR + out.RegisterSchedulable = in.RegisterSchedulable + out.ContentType = in.ContentType + out.KubeAPIQPS = in.KubeAPIQPS + out.KubeAPIBurst = in.KubeAPIBurst + out.SerializeImagePulls = in.SerializeImagePulls + out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay + out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency + out.NodeIP = in.NodeIP + if in.NodeLabels != nil { + in, out := &in.NodeLabels, &out.NodeLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.NodeLabels = nil + } + out.NonMasqueradeCIDR = in.NonMasqueradeCIDR + out.EnableCustomMetrics = in.EnableCustomMetrics + out.EvictionHard = in.EvictionHard + out.EvictionSoft = in.EvictionSoft + out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod + out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod + out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod + out.EvictionMinimumReclaim = in.EvictionMinimumReclaim + out.PodsPerCore = in.PodsPerCore + out.EnableControllerAttachDetach = in.EnableControllerAttachDetach + if in.SystemReserved != nil { + in, out := &in.SystemReserved, &out.SystemReserved + *out = make(config.ConfigurationMap) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.SystemReserved = nil + } + if in.KubeReserved != nil { + in, out := &in.KubeReserved, &out.KubeReserved + *out = make(config.ConfigurationMap) + for key, val := range *in { + (*out)[key] = val + } + } else { + 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 + } +} + +func DeepCopy_componentconfig_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LeaderElectionConfiguration) + out := out.(*LeaderElectionConfiguration) + out.LeaderElect = in.LeaderElect + out.LeaseDuration = in.LeaseDuration + out.RenewDeadline = in.RenewDeadline + out.RetryPeriod = in.RetryPeriod + return nil + } +} + +func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeRecyclerConfiguration) + out := out.(*PersistentVolumeRecyclerConfiguration) + out.MaximumRetry = in.MaximumRetry + out.MinimumTimeoutNFS = in.MinimumTimeoutNFS + out.PodTemplateFilePathNFS = in.PodTemplateFilePathNFS + out.IncrementTimeoutNFS = in.IncrementTimeoutNFS + out.PodTemplateFilePathHostPath = in.PodTemplateFilePathHostPath + out.MinimumTimeoutHostPath = in.MinimumTimeoutHostPath + out.IncrementTimeoutHostPath = in.IncrementTimeoutHostPath + return nil + } +} + +func DeepCopy_componentconfig_PortRangeVar(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PortRangeVar) + out := out.(*PortRangeVar) + if in.Val != nil { + in, out := &in.Val, &out.Val + *out = new(string) + **out = **in + } else { + out.Val = nil + } + return nil + } +} + +func DeepCopy_componentconfig_VolumeConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeConfiguration) + out := out.(*VolumeConfiguration) + out.EnableHostPathProvisioning = in.EnableHostPathProvisioning + out.EnableDynamicProvisioning = in.EnableDynamicProvisioning + out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration + out.FlexVolumePluginDir = in.FlexVolumePluginDir + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/deep_copy_generated.go deleted file mode 100644 index d7bbf3bbac..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/deep_copy_generated.go +++ /dev/null @@ -1,859 +0,0 @@ -// +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 extensions - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" - intstr "k8s.io/kubernetes/pkg/util/intstr" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_extensions_APIVersion, - DeepCopy_extensions_CustomMetricCurrentStatus, - DeepCopy_extensions_CustomMetricCurrentStatusList, - DeepCopy_extensions_CustomMetricTarget, - DeepCopy_extensions_CustomMetricTargetList, - DeepCopy_extensions_DaemonSet, - DeepCopy_extensions_DaemonSetList, - DeepCopy_extensions_DaemonSetSpec, - DeepCopy_extensions_DaemonSetStatus, - DeepCopy_extensions_Deployment, - DeepCopy_extensions_DeploymentList, - DeepCopy_extensions_DeploymentRollback, - DeepCopy_extensions_DeploymentSpec, - DeepCopy_extensions_DeploymentStatus, - DeepCopy_extensions_DeploymentStrategy, - DeepCopy_extensions_FSGroupStrategyOptions, - DeepCopy_extensions_HTTPIngressPath, - DeepCopy_extensions_HTTPIngressRuleValue, - DeepCopy_extensions_HostPortRange, - DeepCopy_extensions_IDRange, - DeepCopy_extensions_Ingress, - DeepCopy_extensions_IngressBackend, - DeepCopy_extensions_IngressList, - DeepCopy_extensions_IngressRule, - DeepCopy_extensions_IngressRuleValue, - DeepCopy_extensions_IngressSpec, - DeepCopy_extensions_IngressStatus, - DeepCopy_extensions_IngressTLS, - DeepCopy_extensions_NetworkPolicy, - DeepCopy_extensions_NetworkPolicyIngressRule, - DeepCopy_extensions_NetworkPolicyList, - DeepCopy_extensions_NetworkPolicyPeer, - DeepCopy_extensions_NetworkPolicyPort, - DeepCopy_extensions_NetworkPolicySpec, - DeepCopy_extensions_PodSecurityPolicy, - DeepCopy_extensions_PodSecurityPolicyList, - DeepCopy_extensions_PodSecurityPolicySpec, - DeepCopy_extensions_ReplicaSet, - DeepCopy_extensions_ReplicaSetList, - DeepCopy_extensions_ReplicaSetSpec, - DeepCopy_extensions_ReplicaSetStatus, - DeepCopy_extensions_ReplicationControllerDummy, - DeepCopy_extensions_RollbackConfig, - DeepCopy_extensions_RollingUpdateDeployment, - DeepCopy_extensions_RunAsUserStrategyOptions, - DeepCopy_extensions_SELinuxStrategyOptions, - DeepCopy_extensions_Scale, - DeepCopy_extensions_ScaleSpec, - DeepCopy_extensions_ScaleStatus, - DeepCopy_extensions_SupplementalGroupsStrategyOptions, - DeepCopy_extensions_ThirdPartyResource, - DeepCopy_extensions_ThirdPartyResourceData, - DeepCopy_extensions_ThirdPartyResourceDataList, - DeepCopy_extensions_ThirdPartyResourceList, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_extensions_APIVersion(in APIVersion, out *APIVersion, c *conversion.Cloner) error { - out.Name = in.Name - return nil -} - -func DeepCopy_extensions_CustomMetricCurrentStatus(in CustomMetricCurrentStatus, out *CustomMetricCurrentStatus, c *conversion.Cloner) error { - out.Name = in.Name - out.CurrentValue = in.CurrentValue.DeepCopy() - return nil -} - -func DeepCopy_extensions_CustomMetricCurrentStatusList(in CustomMetricCurrentStatusList, out *CustomMetricCurrentStatusList, c *conversion.Cloner) error { - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]CustomMetricCurrentStatus, len(in)) - for i := range in { - if err := DeepCopy_extensions_CustomMetricCurrentStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_CustomMetricTarget(in CustomMetricTarget, out *CustomMetricTarget, c *conversion.Cloner) error { - out.Name = in.Name - out.TargetValue = in.TargetValue.DeepCopy() - return nil -} - -func DeepCopy_extensions_CustomMetricTargetList(in CustomMetricTargetList, out *CustomMetricTargetList, c *conversion.Cloner) error { - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]CustomMetricTarget, len(in)) - for i := range in { - if err := DeepCopy_extensions_CustomMetricTarget(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_DaemonSet(in DaemonSet, out *DaemonSet, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_extensions_DaemonSetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_extensions_DaemonSetList(in DaemonSetList, out *DaemonSetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]DaemonSet, len(in)) - for i := range in { - if err := DeepCopy_extensions_DaemonSet(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_DaemonSetSpec(in DaemonSetSpec, out *DaemonSetSpec, c *conversion.Cloner) error { - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := api.DeepCopy_api_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_DaemonSetStatus(in DaemonSetStatus, out *DaemonSetStatus, c *conversion.Cloner) error { - out.CurrentNumberScheduled = in.CurrentNumberScheduled - out.NumberMisscheduled = in.NumberMisscheduled - out.DesiredNumberScheduled = in.DesiredNumberScheduled - return nil -} - -func DeepCopy_extensions_Deployment(in Deployment, out *Deployment, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_extensions_DeploymentSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_extensions_DeploymentList(in DeploymentList, out *DeploymentList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Deployment, len(in)) - for i := range in { - if err := DeepCopy_extensions_Deployment(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_DeploymentRollback(in DeploymentRollback, out *DeploymentRollback, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Name = in.Name - if in.UpdatedAnnotations != nil { - in, out := in.UpdatedAnnotations, &out.UpdatedAnnotations - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.UpdatedAnnotations = nil - } - out.RollbackTo = in.RollbackTo - return nil -} - -func DeepCopy_extensions_DeploymentSpec(in DeploymentSpec, out *DeploymentSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := api.DeepCopy_api_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - if err := DeepCopy_extensions_DeploymentStrategy(in.Strategy, &out.Strategy, c); err != nil { - return err - } - out.MinReadySeconds = in.MinReadySeconds - if in.RevisionHistoryLimit != nil { - in, out := in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = *in - } else { - out.RevisionHistoryLimit = nil - } - out.Paused = in.Paused - if in.RollbackTo != nil { - in, out := in.RollbackTo, &out.RollbackTo - *out = new(RollbackConfig) - **out = *in - } else { - out.RollbackTo = nil - } - return nil -} - -func DeepCopy_extensions_DeploymentStatus(in DeploymentStatus, out *DeploymentStatus, c *conversion.Cloner) error { - out.ObservedGeneration = in.ObservedGeneration - out.Replicas = in.Replicas - out.UpdatedReplicas = in.UpdatedReplicas - out.AvailableReplicas = in.AvailableReplicas - out.UnavailableReplicas = in.UnavailableReplicas - return nil -} - -func DeepCopy_extensions_DeploymentStrategy(in DeploymentStrategy, out *DeploymentStrategy, c *conversion.Cloner) error { - out.Type = in.Type - if in.RollingUpdate != nil { - in, out := in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDeployment) - **out = *in - } else { - out.RollingUpdate = nil - } - return nil -} - -func DeepCopy_extensions_FSGroupStrategyOptions(in FSGroupStrategyOptions, out *FSGroupStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.Ranges != nil { - in, out := in.Ranges, &out.Ranges - *out = make([]IDRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ranges = nil - } - return nil -} - -func DeepCopy_extensions_HTTPIngressPath(in HTTPIngressPath, out *HTTPIngressPath, c *conversion.Cloner) error { - out.Path = in.Path - out.Backend = in.Backend - return nil -} - -func DeepCopy_extensions_HTTPIngressRuleValue(in HTTPIngressRuleValue, out *HTTPIngressRuleValue, c *conversion.Cloner) error { - if in.Paths != nil { - in, out := in.Paths, &out.Paths - *out = make([]HTTPIngressPath, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Paths = nil - } - return nil -} - -func DeepCopy_extensions_HostPortRange(in HostPortRange, out *HostPortRange, c *conversion.Cloner) error { - out.Min = in.Min - out.Max = in.Max - return nil -} - -func DeepCopy_extensions_IDRange(in IDRange, out *IDRange, c *conversion.Cloner) error { - out.Min = in.Min - out.Max = in.Max - return nil -} - -func DeepCopy_extensions_Ingress(in Ingress, out *Ingress, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_extensions_IngressSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_extensions_IngressStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_IngressBackend(in IngressBackend, out *IngressBackend, c *conversion.Cloner) error { - out.ServiceName = in.ServiceName - out.ServicePort = in.ServicePort - return nil -} - -func DeepCopy_extensions_IngressList(in IngressList, out *IngressList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Ingress, len(in)) - for i := range in { - if err := DeepCopy_extensions_Ingress(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_IngressRule(in IngressRule, out *IngressRule, c *conversion.Cloner) error { - out.Host = in.Host - if err := DeepCopy_extensions_IngressRuleValue(in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_IngressRuleValue(in IngressRuleValue, out *IngressRuleValue, c *conversion.Cloner) error { - if in.HTTP != nil { - in, out := in.HTTP, &out.HTTP - *out = new(HTTPIngressRuleValue) - if err := DeepCopy_extensions_HTTPIngressRuleValue(*in, *out, c); err != nil { - return err - } - } else { - out.HTTP = nil - } - return nil -} - -func DeepCopy_extensions_IngressSpec(in IngressSpec, out *IngressSpec, c *conversion.Cloner) error { - if in.Backend != nil { - in, out := in.Backend, &out.Backend - *out = new(IngressBackend) - **out = *in - } else { - out.Backend = nil - } - if in.TLS != nil { - in, out := in.TLS, &out.TLS - *out = make([]IngressTLS, len(in)) - for i := range in { - if err := DeepCopy_extensions_IngressTLS(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.TLS = nil - } - if in.Rules != nil { - in, out := in.Rules, &out.Rules - *out = make([]IngressRule, len(in)) - for i := range in { - if err := DeepCopy_extensions_IngressRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Rules = nil - } - return nil -} - -func DeepCopy_extensions_IngressStatus(in IngressStatus, out *IngressStatus, c *conversion.Cloner) error { - if err := api.DeepCopy_api_LoadBalancerStatus(in.LoadBalancer, &out.LoadBalancer, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_IngressTLS(in IngressTLS, out *IngressTLS, c *conversion.Cloner) error { - if in.Hosts != nil { - in, out := in.Hosts, &out.Hosts - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Hosts = nil - } - out.SecretName = in.SecretName - return nil -} - -func DeepCopy_extensions_NetworkPolicy(in NetworkPolicy, out *NetworkPolicy, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_extensions_NetworkPolicySpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_NetworkPolicyIngressRule(in NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, c *conversion.Cloner) error { - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(in)) - for i := range in { - if err := DeepCopy_extensions_NetworkPolicyPort(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Ports = nil - } - if in.From != nil { - in, out := in.From, &out.From - *out = make([]NetworkPolicyPeer, len(in)) - for i := range in { - if err := DeepCopy_extensions_NetworkPolicyPeer(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.From = nil - } - return nil -} - -func DeepCopy_extensions_NetworkPolicyList(in NetworkPolicyList, out *NetworkPolicyList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]NetworkPolicy, len(in)) - for i := range in { - if err := DeepCopy_extensions_NetworkPolicy(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_NetworkPolicyPeer(in NetworkPolicyPeer, out *NetworkPolicyPeer, c *conversion.Cloner) error { - if in.PodSelector != nil { - in, out := in.PodSelector, &out.PodSelector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.PodSelector = nil - } - if in.NamespaceSelector != nil { - in, out := in.NamespaceSelector, &out.NamespaceSelector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.NamespaceSelector = nil - } - return nil -} - -func DeepCopy_extensions_NetworkPolicyPort(in NetworkPolicyPort, out *NetworkPolicyPort, c *conversion.Cloner) error { - if in.Protocol != nil { - in, out := in.Protocol, &out.Protocol - *out = new(api.Protocol) - **out = *in - } else { - out.Protocol = nil - } - if in.Port != nil { - in, out := in.Port, &out.Port - *out = new(intstr.IntOrString) - **out = *in - } else { - out.Port = nil - } - return nil -} - -func DeepCopy_extensions_NetworkPolicySpec(in NetworkPolicySpec, out *NetworkPolicySpec, c *conversion.Cloner) error { - if err := unversioned.DeepCopy_unversioned_LabelSelector(in.PodSelector, &out.PodSelector, c); err != nil { - return err - } - if in.Ingress != nil { - in, out := in.Ingress, &out.Ingress - *out = make([]NetworkPolicyIngressRule, len(in)) - for i := range in { - if err := DeepCopy_extensions_NetworkPolicyIngressRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Ingress = nil - } - return nil -} - -func DeepCopy_extensions_PodSecurityPolicy(in PodSecurityPolicy, out *PodSecurityPolicy, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_extensions_PodSecurityPolicySpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_PodSecurityPolicyList(in PodSecurityPolicyList, out *PodSecurityPolicyList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PodSecurityPolicy, len(in)) - for i := range in { - if err := DeepCopy_extensions_PodSecurityPolicy(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_PodSecurityPolicySpec(in PodSecurityPolicySpec, out *PodSecurityPolicySpec, c *conversion.Cloner) error { - out.Privileged = in.Privileged - if in.DefaultAddCapabilities != nil { - in, out := in.DefaultAddCapabilities, &out.DefaultAddCapabilities - *out = make([]api.Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.DefaultAddCapabilities = nil - } - if in.RequiredDropCapabilities != nil { - in, out := in.RequiredDropCapabilities, &out.RequiredDropCapabilities - *out = make([]api.Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.RequiredDropCapabilities = nil - } - if in.AllowedCapabilities != nil { - in, out := in.AllowedCapabilities, &out.AllowedCapabilities - *out = make([]api.Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AllowedCapabilities = nil - } - if in.Volumes != nil { - in, out := in.Volumes, &out.Volumes - *out = make([]FSType, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Volumes = nil - } - out.HostNetwork = in.HostNetwork - if in.HostPorts != nil { - in, out := in.HostPorts, &out.HostPorts - *out = make([]HostPortRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.HostPorts = nil - } - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC - if err := DeepCopy_extensions_SELinuxStrategyOptions(in.SELinux, &out.SELinux, c); err != nil { - return err - } - if err := DeepCopy_extensions_RunAsUserStrategyOptions(in.RunAsUser, &out.RunAsUser, c); err != nil { - return err - } - if err := DeepCopy_extensions_SupplementalGroupsStrategyOptions(in.SupplementalGroups, &out.SupplementalGroups, c); err != nil { - return err - } - if err := DeepCopy_extensions_FSGroupStrategyOptions(in.FSGroup, &out.FSGroup, c); err != nil { - return err - } - out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem - return nil -} - -func DeepCopy_extensions_ReplicaSet(in ReplicaSet, out *ReplicaSet, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_extensions_ReplicaSetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_extensions_ReplicaSetList(in ReplicaSetList, out *ReplicaSetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ReplicaSet, len(in)) - for i := range in { - if err := DeepCopy_extensions_ReplicaSet(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_ReplicaSetSpec(in ReplicaSetSpec, out *ReplicaSetSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := api.DeepCopy_api_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_ReplicaSetStatus(in ReplicaSetStatus, out *ReplicaSetStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ObservedGeneration = in.ObservedGeneration - return nil -} - -func DeepCopy_extensions_ReplicationControllerDummy(in ReplicationControllerDummy, out *ReplicationControllerDummy, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - return nil -} - -func DeepCopy_extensions_RollbackConfig(in RollbackConfig, out *RollbackConfig, c *conversion.Cloner) error { - out.Revision = in.Revision - return nil -} - -func DeepCopy_extensions_RollingUpdateDeployment(in RollingUpdateDeployment, out *RollingUpdateDeployment, c *conversion.Cloner) error { - out.MaxUnavailable = in.MaxUnavailable - out.MaxSurge = in.MaxSurge - return nil -} - -func DeepCopy_extensions_RunAsUserStrategyOptions(in RunAsUserStrategyOptions, out *RunAsUserStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.Ranges != nil { - in, out := in.Ranges, &out.Ranges - *out = make([]IDRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ranges = nil - } - return nil -} - -func DeepCopy_extensions_SELinuxStrategyOptions(in SELinuxStrategyOptions, out *SELinuxStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.SELinuxOptions != nil { - in, out := in.SELinuxOptions, &out.SELinuxOptions - *out = new(api.SELinuxOptions) - **out = *in - } else { - out.SELinuxOptions = nil - } - return nil -} - -func DeepCopy_extensions_Scale(in Scale, out *Scale, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Spec = in.Spec - if err := DeepCopy_extensions_ScaleStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_extensions_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - return nil -} - -func DeepCopy_extensions_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - return nil -} - -func DeepCopy_extensions_SupplementalGroupsStrategyOptions(in SupplementalGroupsStrategyOptions, out *SupplementalGroupsStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.Ranges != nil { - in, out := in.Ranges, &out.Ranges - *out = make([]IDRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ranges = nil - } - return nil -} - -func DeepCopy_extensions_ThirdPartyResource(in ThirdPartyResource, out *ThirdPartyResource, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Description = in.Description - if in.Versions != nil { - in, out := in.Versions, &out.Versions - *out = make([]APIVersion, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Versions = nil - } - return nil -} - -func DeepCopy_extensions_ThirdPartyResourceData(in ThirdPartyResourceData, out *ThirdPartyResourceData, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Data = nil - } - return nil -} - -func DeepCopy_extensions_ThirdPartyResourceDataList(in ThirdPartyResourceDataList, out *ThirdPartyResourceDataList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ThirdPartyResourceData, len(in)) - for i := range in { - if err := DeepCopy_extensions_ThirdPartyResourceData(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_extensions_ThirdPartyResourceList(in ThirdPartyResourceList, out *ThirdPartyResourceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ThirdPartyResource, len(in)) - for i := range in { - if err := DeepCopy_extensions_ThirdPartyResource(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/helpers.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/helpers.go new file mode 100644 index 0000000000..27d3e23add --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/install/install.go index 1279dfb1f7..50bbf7fdff 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/install/install.go @@ -93,6 +93,7 @@ func newRESTMapper(externalVersions []unversioned.GroupVersion) meta.RESTMapper rootScoped := sets.NewString( "PodSecurityPolicy", "ThirdPartyResource", + "StorageClass", ) ignoredKinds := sets.NewString() @@ -117,7 +118,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - extensions.AddToScheme(api.Scheme) + if err := extensions.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -126,7 +130,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1beta1.SchemeGroupVersion: - v1beta1.AddToScheme(api.Scheme) + if err := v1beta1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/register.go index 48ba33d466..d4168eefae 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/register.go @@ -40,13 +40,13 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &Deployment{}, @@ -68,6 +68,7 @@ func addKnownTypes(scheme *runtime.Scheme) { &Ingress{}, &IngressList{}, &api.ListOptions{}, + &api.DeleteOptions{}, &ReplicaSet{}, &ReplicaSetList{}, &api.ExportOptions{}, @@ -75,5 +76,8 @@ func addKnownTypes(scheme *runtime.Scheme) { &PodSecurityPolicyList{}, &NetworkPolicy{}, &NetworkPolicyList{}, + &StorageClass{}, + &StorageClassList{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go index fd982347ae..7bbbe202ed 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go @@ -144,25 +144,25 @@ func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym6 := z.DecBinary() + _ = yym6 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct7 := r.ContainerType() + if yyct7 == codecSelferValueTypeMap1234 { + yyl7 := r.ReadMapStart() + if yyl7 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl7, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct7 == codecSelferValueTypeArray1234 { + yyl7 := r.ReadArrayStart() + if yyl7 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl7, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -174,12 +174,12 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys8Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys8Slc + var yyhl8 bool = l >= 0 + for yyj8 := 0; ; yyj8++ { + if yyhl8 { + if yyj8 >= l { break } } else { @@ -188,10 +188,10 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys8Slc = r.DecodeBytes(yys8Slc, true, true) + yys8 := string(yys8Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys8 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -199,9 +199,9 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys8) + } // end switch yys8 + } // end for yyj8 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -209,16 +209,16 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l } else { - yyb5 = r.CheckBreak() + yyb10 = r.CheckBreak() } - if yyb5 { + if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -229,17 +229,17 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l } else { - yyb5 = r.CheckBreak() + yyb10 = r.CheckBreak() } - if yyb5 { + if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -251,34 +251,34 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym12 := z.EncBinary() + _ = yym12 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Selector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep13 := !z.EncBinary() + yy2arr13 := z.EncBasicHandle().StructToArray + var yyq13 [2]bool + _, _, _ = yysep13, yyq13, yy2arr13 + const yyr13 bool = false + yyq13[1] = x.Selector != nil + var yynn13 int + if yyr13 || yy2arr13 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn13 = 1 + for _, b := range yyq13 { if b { - yynn2++ + yynn13++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn13) + yynn13 = 0 } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym15 := z.EncBinary() + _ = yym15 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -287,21 +287,21 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym16 := z.EncBinary() + _ = yym16 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq13[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym18 := z.EncBinary() + _ = yym18 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -312,15 +312,15 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq13[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym19 := z.EncBinary() + _ = yym19 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -329,7 +329,7 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -342,25 +342,25 @@ func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym20 := z.DecBinary() + _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct21 := r.ContainerType() + if yyct21 == codecSelferValueTypeMap1234 { + yyl21 := r.ReadMapStart() + if yyl21 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl21, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct21 == codecSelferValueTypeArray1234 { + yyl21 := r.ReadArrayStart() + if yyl21 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl21, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -372,12 +372,12 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys22Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys22Slc + var yyhl22 bool = l >= 0 + for yyj22 := 0; ; yyj22++ { + if yyhl22 { + if yyj22 >= l { break } } else { @@ -386,10 +386,10 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys22Slc = r.DecodeBytes(yys22Slc, true, true) + yys22 := string(yys22Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys22 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -405,8 +405,8 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym6 := z.DecBinary() - _ = yym6 + yym25 := z.DecBinary() + _ = yym25 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -414,9 +414,9 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys22) + } // end switch yys22 + } // end for yyj22 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -424,16 +424,16 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb7 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb7 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -443,13 +443,13 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb7 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb7 { + if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -462,8 +462,8 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym10 := z.DecBinary() - _ = yym10 + yym29 := z.DecBinary() + _ = yym29 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -471,17 +471,17 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l } else { - yyb7 = r.CheckBreak() + yyb26 = r.CheckBreak() } - if yyb7 { + if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -493,136 +493,136 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym30 := z.EncBinary() + _ = yym30 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep31 := !z.EncBinary() + yy2arr31 := z.EncBasicHandle().StructToArray + var yyq31 [5]bool + _, _, _ = yysep31, yyq31, yy2arr31 + const yyr31 bool = false + yyq31[0] = x.Kind != "" + yyq31[1] = x.APIVersion != "" + yyq31[2] = true + yyq31[3] = true + yyq31[4] = true + var yynn31 int + if yyr31 || yy2arr31 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn31 = 0 + for _, b := range yyq31 { if b { - yynn2++ + yynn31++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn31) + yynn31 = 0 } - if yyr2 || yy2arr2 { + if yyr31 || yy2arr31 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq31[0] { + yym33 := z.EncBinary() + _ = yym33 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq31[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym34 := z.EncBinary() + _ = yym34 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr31 || yy2arr31 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq31[1] { + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq31[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym37 := z.EncBinary() + _ = yym37 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr31 || yy2arr31 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq31[2] { + yy39 := &x.ObjectMeta + yy39.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq31[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy40 := &x.ObjectMeta + yy40.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr31 || yy2arr31 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq31[3] { + yy42 := &x.Spec + yy42.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq31[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy43 := &x.Spec + yy43.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr31 || yy2arr31 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq31[4] { + yy45 := &x.Status + yy45.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq31[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy46 := &x.Status + yy46.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr31 || yy2arr31 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -635,25 +635,25 @@ func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym47 := z.DecBinary() + _ = yym47 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct48 := r.ContainerType() + if yyct48 == codecSelferValueTypeMap1234 { + yyl48 := r.ReadMapStart() + if yyl48 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl48, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct48 == codecSelferValueTypeArray1234 { + yyl48 := r.ReadArrayStart() + if yyl48 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl48, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -665,12 +665,12 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys49Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys49Slc + var yyhl49 bool = l >= 0 + for yyj49 := 0; ; yyj49++ { + if yyhl49 { + if yyj49 >= l { break } } else { @@ -679,47 +679,47 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys49Slc = r.DecodeBytes(yys49Slc, true, true) + yys49 := string(yys49Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys49 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv52 := &x.ObjectMeta + yyv52.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv53 := &x.Spec + yyv53.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv54 := &x.Status + yyv54.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys49) + } // end switch yys49 + } // end for yyj49 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -727,104 +727,104 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj55 int + var yyb55 bool + var yyhl55 bool = l >= 0 + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb9 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb9 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb9 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb9 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb9 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb9 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv58 := &x.ObjectMeta + yyv58.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb9 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb9 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv59 := &x.Spec + yyv59.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb9 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb9 { + if yyb55 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv60 := &x.Status + yyv60.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l } else { - yyb9 = r.CheckBreak() + yyb55 = r.CheckBreak() } - if yyb9 { + if yyb55 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj55-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -836,36 +836,36 @@ func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym61 := z.EncBinary() + _ = yym61 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep62 := !z.EncBinary() + yy2arr62 := z.EncBasicHandle().StructToArray + var yyq62 [2]bool + _, _, _ = yysep62, yyq62, yy2arr62 + const yyr62 bool = false + yyq62[0] = x.Kind != "" + yyq62[1] = x.APIVersion != "" + var yynn62 int + if yyr62 || yy2arr62 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn62 = 0 + for _, b := range yyq62 { if b { - yynn2++ + yynn62++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn62) + yynn62 = 0 } - if yyr2 || yy2arr2 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq62[0] { + yym64 := z.EncBinary() + _ = yym64 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -874,23 +874,23 @@ func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq62[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym65 := z.EncBinary() + _ = yym65 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq62[1] { + yym67 := z.EncBinary() + _ = yym67 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -899,19 +899,19 @@ func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq62[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -924,25 +924,25 @@ func (x *ReplicationControllerDummy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym69 := z.DecBinary() + _ = yym69 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct70 := r.ContainerType() + if yyct70 == codecSelferValueTypeMap1234 { + yyl70 := r.ReadMapStart() + if yyl70 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl70, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct70 == codecSelferValueTypeArray1234 { + yyl70 := r.ReadArrayStart() + if yyl70 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl70, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -954,12 +954,12 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys71Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys71Slc + var yyhl71 bool = l >= 0 + for yyj71 := 0; ; yyj71++ { + if yyhl71 { + if yyj71 >= l { break } } else { @@ -968,10 +968,10 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys71Slc = r.DecodeBytes(yys71Slc, true, true) + yys71 := string(yys71Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys71 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -985,9 +985,9 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978. x.APIVersion = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys71) + } // end switch yys71 + } // end for yyj71 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -995,16 +995,16 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj74 int + var yyb74 bool + var yyhl74 bool = l >= 0 + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb6 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb6 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1014,13 +1014,13 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Kind = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb6 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb6 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1031,17 +1031,17 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec197 x.APIVersion = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb6 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb6 { + if yyb74 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj74-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1053,33 +1053,33 @@ func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym77 := z.EncBinary() + _ = yym77 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep78 := !z.EncBinary() + yy2arr78 := z.EncBasicHandle().StructToArray + var yyq78 [2]bool + _, _, _ = yysep78, yyq78, yy2arr78 + const yyr78 bool = false + var yynn78 int + if yyr78 || yy2arr78 { r.EncodeArrayStart(2) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn78 = 2 + for _, b := range yyq78 { if b { - yynn2++ + yynn78++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn78) + yynn78 = 0 } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym80 := z.EncBinary() + _ = yym80 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1088,41 +1088,41 @@ func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym81 := z.EncBinary() + _ = yym81 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.TargetValue - yym8 := z.EncBinary() - _ = yym8 + yy83 := &x.TargetValue + yym84 := z.EncBinary() + _ = yym84 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy83) { + } else if !yym84 && z.IsJSONHandle() { + z.EncJSONMarshal(yy83) } else { - z.EncFallback(yy7) + z.EncFallback(yy83) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.TargetValue - yym10 := z.EncBinary() - _ = yym10 + yy85 := &x.TargetValue + yym86 := z.EncBinary() + _ = yym86 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy85) { + } else if !yym86 && z.IsJSONHandle() { + z.EncJSONMarshal(yy85) } else { - z.EncFallback(yy9) + z.EncFallback(yy85) } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1135,25 +1135,25 @@ func (x *CustomMetricTarget) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym87 := z.DecBinary() + _ = yym87 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct88 := r.ContainerType() + if yyct88 == codecSelferValueTypeMap1234 { + yyl88 := r.ReadMapStart() + if yyl88 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl88, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct88 == codecSelferValueTypeArray1234 { + yyl88 := r.ReadArrayStart() + if yyl88 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl88, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1165,12 +1165,12 @@ func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys89Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys89Slc + var yyhl89 bool = l >= 0 + for yyj89 := 0; ; yyj89++ { + if yyhl89 { + if yyj89 >= l { break } } else { @@ -1179,10 +1179,10 @@ func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys89Slc = r.DecodeBytes(yys89Slc, true, true) + yys89 := string(yys89Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys89 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -1193,21 +1193,21 @@ func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.TargetValue = pkg4_resource.Quantity{} } else { - yyv5 := &x.TargetValue - yym6 := z.DecBinary() - _ = yym6 + yyv91 := &x.TargetValue + yym92 := z.DecBinary() + _ = yym92 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv91) { + } else if !yym92 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv91) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv91, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys89) + } // end switch yys89 + } // end for yyj89 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1215,16 +1215,16 @@ func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj93 int + var yyb93 bool + var yyhl93 bool = l >= 0 + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb7 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb7 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1234,13 +1234,13 @@ func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb7 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb7 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1248,29 +1248,29 @@ func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.TargetValue = pkg4_resource.Quantity{} } else { - yyv9 := &x.TargetValue - yym10 := z.DecBinary() - _ = yym10 + yyv95 := &x.TargetValue + yym96 := z.DecBinary() + _ = yym96 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv95) { + } else if !yym96 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv95) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv95, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb7 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb7 { + if yyb93 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj93-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1282,36 +1282,36 @@ func (x *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym97 := z.EncBinary() + _ = yym97 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep98 := !z.EncBinary() + yy2arr98 := z.EncBasicHandle().StructToArray + var yyq98 [1]bool + _, _, _ = yysep98, yyq98, yy2arr98 + const yyr98 bool = false + var yynn98 int + if yyr98 || yy2arr98 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn98 = 1 + for _, b := range yyq98 { if b { - yynn2++ + yynn98++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn98) + yynn98 = 0 } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym100 := z.EncBinary() + _ = yym100 if false { } else { h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) @@ -1324,15 +1324,15 @@ func (x *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym101 := z.EncBinary() + _ = yym101 if false { } else { h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr98 || yy2arr98 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1345,25 +1345,25 @@ func (x *CustomMetricTargetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym102 := z.DecBinary() + _ = yym102 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct103 := r.ContainerType() + if yyct103 == codecSelferValueTypeMap1234 { + yyl103 := r.ReadMapStart() + if yyl103 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl103, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct103 == codecSelferValueTypeArray1234 { + yyl103 := r.ReadArrayStart() + if yyl103 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl103, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1375,12 +1375,12 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys104Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys104Slc + var yyhl104 bool = l >= 0 + for yyj104 := 0; ; yyj104++ { + if yyhl104 { + if yyj104 >= l { break } } else { @@ -1389,26 +1389,26 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys104Slc = r.DecodeBytes(yys104Slc, true, true) + yys104 := string(yys104Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys104 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv105 := &x.Items + yym106 := z.DecBinary() + _ = yym106 if false { } else { - h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv4), d) + h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv105), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys104) + } // end switch yys104 + } // end for yyj104 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1416,16 +1416,16 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj107 int + var yyb107 bool + var yyhl107 bool = l >= 0 + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb6 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb6 { + if yyb107 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1433,26 +1433,26 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Items = nil } else { - yyv7 := &x.Items - yym8 := z.DecBinary() - _ = yym8 + yyv108 := &x.Items + yym109 := z.DecBinary() + _ = yym109 if false { } else { - h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv7), d) + h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv108), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l } else { - yyb6 = r.CheckBreak() + yyb107 = r.CheckBreak() } - if yyb6 { + if yyb107 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj107-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1464,33 +1464,33 @@ func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym110 := z.EncBinary() + _ = yym110 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep111 := !z.EncBinary() + yy2arr111 := z.EncBasicHandle().StructToArray + var yyq111 [2]bool + _, _, _ = yysep111, yyq111, yy2arr111 + const yyr111 bool = false + var yynn111 int + if yyr111 || yy2arr111 { r.EncodeArrayStart(2) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn111 = 2 + for _, b := range yyq111 { if b { - yynn2++ + yynn111++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn111) + yynn111 = 0 } - if yyr2 || yy2arr2 { + if yyr111 || yy2arr111 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym113 := z.EncBinary() + _ = yym113 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1499,41 +1499,41 @@ func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym114 := z.EncBinary() + _ = yym114 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr111 || yy2arr111 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.CurrentValue - yym8 := z.EncBinary() - _ = yym8 + yy116 := &x.CurrentValue + yym117 := z.EncBinary() + _ = yym117 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy116) { + } else if !yym117 && z.IsJSONHandle() { + z.EncJSONMarshal(yy116) } else { - z.EncFallback(yy7) + z.EncFallback(yy116) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.CurrentValue - yym10 := z.EncBinary() - _ = yym10 + yy118 := &x.CurrentValue + yym119 := z.EncBinary() + _ = yym119 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy118) { + } else if !yym119 && z.IsJSONHandle() { + z.EncJSONMarshal(yy118) } else { - z.EncFallback(yy9) + z.EncFallback(yy118) } } - if yyr2 || yy2arr2 { + if yyr111 || yy2arr111 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1546,25 +1546,25 @@ func (x *CustomMetricCurrentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym120 := z.DecBinary() + _ = yym120 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct121 := r.ContainerType() + if yyct121 == codecSelferValueTypeMap1234 { + yyl121 := r.ReadMapStart() + if yyl121 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl121, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct121 == codecSelferValueTypeArray1234 { + yyl121 := r.ReadArrayStart() + if yyl121 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl121, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1576,12 +1576,12 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys122Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys122Slc + var yyhl122 bool = l >= 0 + for yyj122 := 0; ; yyj122++ { + if yyhl122 { + if yyj122 >= l { break } } else { @@ -1590,10 +1590,10 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys122Slc = r.DecodeBytes(yys122Slc, true, true) + yys122 := string(yys122Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys122 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -1604,21 +1604,21 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.CurrentValue = pkg4_resource.Quantity{} } else { - yyv5 := &x.CurrentValue - yym6 := z.DecBinary() - _ = yym6 + yyv124 := &x.CurrentValue + yym125 := z.DecBinary() + _ = yym125 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv124) { + } else if !yym125 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv124) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv124, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys122) + } // end switch yys122 + } // end for yyj122 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1626,16 +1626,16 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj126 int + var yyb126 bool + var yyhl126 bool = l >= 0 + yyj126++ + if yyhl126 { + yyb126 = yyj126 > l } else { - yyb7 = r.CheckBreak() + yyb126 = r.CheckBreak() } - if yyb7 { + if yyb126 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1645,13 +1645,13 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj126++ + if yyhl126 { + yyb126 = yyj126 > l } else { - yyb7 = r.CheckBreak() + yyb126 = r.CheckBreak() } - if yyb7 { + if yyb126 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1659,29 +1659,29 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.CurrentValue = pkg4_resource.Quantity{} } else { - yyv9 := &x.CurrentValue - yym10 := z.DecBinary() - _ = yym10 + yyv128 := &x.CurrentValue + yym129 := z.DecBinary() + _ = yym129 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv128) { + } else if !yym129 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv128) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv128, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj126++ + if yyhl126 { + yyb126 = yyj126 > l } else { - yyb7 = r.CheckBreak() + yyb126 = r.CheckBreak() } - if yyb7 { + if yyb126 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj126-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1693,36 +1693,36 @@ func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym130 := z.EncBinary() + _ = yym130 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep131 := !z.EncBinary() + yy2arr131 := z.EncBasicHandle().StructToArray + var yyq131 [1]bool + _, _, _ = yysep131, yyq131, yy2arr131 + const yyr131 bool = false + var yynn131 int + if yyr131 || yy2arr131 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn131 = 1 + for _, b := range yyq131 { if b { - yynn2++ + yynn131++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn131) + yynn131 = 0 } - if yyr2 || yy2arr2 { + if yyr131 || yy2arr131 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym133 := z.EncBinary() + _ = yym133 if false { } else { h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) @@ -1735,15 +1735,15 @@ func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym134 := z.EncBinary() + _ = yym134 if false { } else { h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr131 || yy2arr131 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1756,25 +1756,25 @@ func (x *CustomMetricCurrentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym135 := z.DecBinary() + _ = yym135 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct136 := r.ContainerType() + if yyct136 == codecSelferValueTypeMap1234 { + yyl136 := r.ReadMapStart() + if yyl136 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl136, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct136 == codecSelferValueTypeArray1234 { + yyl136 := r.ReadArrayStart() + if yyl136 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl136, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1786,12 +1786,12 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys137Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys137Slc + var yyhl137 bool = l >= 0 + for yyj137 := 0; ; yyj137++ { + if yyhl137 { + if yyj137 >= l { break } } else { @@ -1800,26 +1800,26 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys137Slc = r.DecodeBytes(yys137Slc, true, true) + yys137 := string(yys137Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys137 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv138 := &x.Items + yym139 := z.DecBinary() + _ = yym139 if false { } else { - h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv4), d) + h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv138), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys137) + } // end switch yys137 + } // end for yyj137 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1827,16 +1827,16 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj140 int + var yyb140 bool + var yyhl140 bool = l >= 0 + yyj140++ + if yyhl140 { + yyb140 = yyj140 > l } else { - yyb6 = r.CheckBreak() + yyb140 = r.CheckBreak() } - if yyb6 { + if yyb140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1844,26 +1844,26 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv7 := &x.Items - yym8 := z.DecBinary() - _ = yym8 + yyv141 := &x.Items + yym142 := z.DecBinary() + _ = yym142 if false { } else { - h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv7), d) + h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv141), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj140++ + if yyhl140 { + yyb140 = yyj140 > l } else { - yyb6 = r.CheckBreak() + yyb140 = r.CheckBreak() } - if yyb6 { + if yyb140 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj140-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1875,160 +1875,160 @@ func (x *ThirdPartyResource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym143 := z.EncBinary() + _ = yym143 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] = true - yyq2[1] = x.Description != "" - yyq2[2] = len(x.Versions) != 0 - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep144 := !z.EncBinary() + yy2arr144 := z.EncBasicHandle().StructToArray + var yyq144 [5]bool + _, _, _ = yysep144, yyq144, yy2arr144 + const yyr144 bool = false + yyq144[0] = x.Kind != "" + yyq144[1] = x.APIVersion != "" + yyq144[2] = true + yyq144[3] = x.Description != "" + yyq144[4] = len(x.Versions) != 0 + var yynn144 int + if yyr144 || yy2arr144 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn144 = 0 + for _, b := range yyq144 { if b { - yynn2++ + yynn144++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn144) + yynn144 = 0 } - if yyr2 || yy2arr2 { + if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq144[0] { + yym146 := z.EncBinary() + _ = yym146 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq144[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym147 := z.EncBinary() + _ = yym147 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym9 := z.EncBinary() - _ = yym9 + if yyq144[1] { + yym149 := z.EncBinary() + _ = yym149 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Description)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq144[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("description")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym150 := z.EncBinary() + _ = yym150 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Description)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - if x.Versions == nil { - r.EncodeNil() - } else { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) - } - } + if yyq144[2] { + yy152 := &x.ObjectMeta + yy152.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq144[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("versions")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Versions == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) - } - } + yy153 := &x.ObjectMeta + yy153.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if yyq144[3] { + yym155 := z.EncBinary() + _ = yym155 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Description)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq144[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("description")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym156 := z.EncBinary() + _ = yym156 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Description)) } } } - if yyr2 || yy2arr2 { + if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { + if yyq144[4] { + if x.Versions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym158 := z.EncBinary() + _ = yym158 + if false { + } else { + h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq144[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("versions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { + if x.Versions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) + } } } } - if yyr2 || yy2arr2 { + if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2041,25 +2041,25 @@ func (x *ThirdPartyResource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym160 := z.DecBinary() + _ = yym160 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct161 := r.ContainerType() + if yyct161 == codecSelferValueTypeMap1234 { + yyl161 := r.ReadMapStart() + if yyl161 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl161, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct161 == codecSelferValueTypeArray1234 { + yyl161 := r.ReadArrayStart() + if yyl161 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl161, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2071,12 +2071,12 @@ func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys162Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys162Slc + var yyhl162 bool = l >= 0 + for yyj162 := 0; ; yyj162++ { + if yyhl162 { + if yyj162 >= l { break } } else { @@ -2085,16 +2085,28 @@ func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys162Slc = r.DecodeBytes(yys162Slc, true, true) + yys162 := string(yys162Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys162 { + 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_api.ObjectMeta{} } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv165 := &x.ObjectMeta + yyv165.CodecDecodeSelf(d) } case "description": if r.TryDecodeAsNil() { @@ -2106,30 +2118,18 @@ func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Versions = nil } else { - yyv6 := &x.Versions - yym7 := z.DecBinary() - _ = yym7 + yyv167 := &x.Versions + yym168 := z.DecBinary() + _ = yym168 if false { } else { - h.decSliceAPIVersion((*[]APIVersion)(yyv6), d) + h.decSliceAPIVersion((*[]APIVersion)(yyv167), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys162) + } // end switch yys162 + } // end for yyj162 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2137,108 +2137,108 @@ func (x *ThirdPartyResource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj169 int + var yyb169 bool + var yyhl169 bool = l >= 0 + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l } else { - yyb10 = r.CheckBreak() + yyb169 = r.CheckBreak() } - if yyb10 { + if yyb169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l } else { - yyb10 = r.CheckBreak() + yyb169 = r.CheckBreak() } - if yyb10 { + if yyb169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Description = "" + x.APIVersion = "" } else { - x.Description = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l } else { - yyb10 = r.CheckBreak() + yyb169 = r.CheckBreak() } - if yyb10 { + if yyb169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Versions = nil + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv13 := &x.Versions - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceAPIVersion((*[]APIVersion)(yyv13), d) - } + yyv172 := &x.ObjectMeta + yyv172.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l } else { - yyb10 = r.CheckBreak() + yyb169 = r.CheckBreak() } - if yyb10 { + if yyb169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Description = "" } else { - x.Kind = string(r.DecodeString()) + x.Description = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l } else { - yyb10 = r.CheckBreak() + yyb169 = r.CheckBreak() } - if yyb10 { + if yyb169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Versions = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv174 := &x.Versions + yym175 := z.DecBinary() + _ = yym175 + if false { + } else { + h.decSliceAPIVersion((*[]APIVersion)(yyv174), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l } else { - yyb10 = r.CheckBreak() + yyb169 = r.CheckBreak() } - if yyb10 { + if yyb169 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj169-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2250,139 +2250,139 @@ func (x *ThirdPartyResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym176 := z.EncBinary() + _ = yym176 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep177 := !z.EncBinary() + yy2arr177 := z.EncBasicHandle().StructToArray + var yyq177 [4]bool + _, _, _ = yysep177, yyq177, yy2arr177 + const yyr177 bool = false + yyq177[0] = x.Kind != "" + yyq177[1] = x.APIVersion != "" + yyq177[2] = true + var yynn177 int + if yyr177 || yy2arr177 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn177 = 1 + for _, b := range yyq177 { if b { - yynn2++ + yynn177++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn177) + yynn177 = 0 } - if yyr2 || yy2arr2 { + if yyr177 || yy2arr177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq177[0] { + yym179 := z.EncBinary() + _ = yym179 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq177[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym180 := z.EncBinary() + _ = yym180 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr177 || yy2arr177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq177[1] { + yym182 := z.EncBinary() + _ = yym182 if false { } else { - h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq177[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym183 := z.EncBinary() + _ = yym183 if false { } else { - h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr177 || yy2arr177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq177[2] { + yy185 := &x.ListMeta + yym186 := z.EncBinary() + _ = yym186 if false { + } else if z.HasExtensions() && z.EncExt(yy185) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy185) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq177[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy187 := &x.ListMeta + yym188 := z.EncBinary() + _ = yym188 if false { + } else if z.HasExtensions() && z.EncExt(yy187) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy187) } } } - if yyr2 || yy2arr2 { + if yyr177 || yy2arr177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym190 := z.EncBinary() + _ = yym190 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym191 := z.EncBinary() + _ = yym191 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr177 || yy2arr177 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2395,25 +2395,25 @@ func (x *ThirdPartyResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym192 := z.DecBinary() + _ = yym192 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct193 := r.ContainerType() + if yyct193 == codecSelferValueTypeMap1234 { + yyl193 := r.ReadMapStart() + if yyl193 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl193, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct193 == codecSelferValueTypeArray1234 { + yyl193 := r.ReadArrayStart() + if yyl193 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl193, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2425,12 +2425,12 @@ func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys194Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys194Slc + var yyhl194 bool = l >= 0 + for yyj194 := 0; ; yyj194++ { + if yyhl194 { + if yyj194 >= l { break } } else { @@ -2439,51 +2439,51 @@ func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys194Slc = r.DecodeBytes(yys194Slc, true, true) + yys194 := string(yys194Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys194 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv197 := &x.ListMeta + yym198 := z.DecBinary() + _ = yym198 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv197) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv197, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv199 := &x.Items + yym200 := z.DecBinary() + _ = yym200 if false { } else { - h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv6), d) + h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv199), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys194) + } // end switch yys194 + } // end for yyj194 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2491,98 +2491,98 @@ func (x *ThirdPartyResourceList) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj201 int + var yyb201 bool + var yyhl201 bool = l >= 0 + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l } else { - yyb10 = r.CheckBreak() + yyb201 = r.CheckBreak() } - if yyb10 { + if yyb201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l } else { - yyb10 = r.CheckBreak() + yyb201 = r.CheckBreak() } - if yyb10 { + if yyb201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l } else { - yyb10 = r.CheckBreak() + yyb201 = r.CheckBreak() } - if yyb10 { + if yyb201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv204 := &x.ListMeta + yym205 := z.DecBinary() + _ = yym205 + if false { + } else if z.HasExtensions() && z.DecExt(yyv204) { + } else { + z.DecFallback(yyv204, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l } else { - yyb10 = r.CheckBreak() + yyb201 = r.CheckBreak() } - if yyb10 { + if yyb201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv206 := &x.Items + yym207 := z.DecBinary() + _ = yym207 + if false { + } else { + h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv206), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l } else { - yyb10 = r.CheckBreak() + yyb201 = r.CheckBreak() } - if yyb10 { + if yyb201 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj201-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2594,35 +2594,35 @@ func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym208 := z.EncBinary() + _ = yym208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep209 := !z.EncBinary() + yy2arr209 := z.EncBasicHandle().StructToArray + var yyq209 [1]bool + _, _, _ = yysep209, yyq209, yy2arr209 + const yyr209 bool = false + yyq209[0] = x.Name != "" + var yynn209 int + if yyr209 || yy2arr209 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn209 = 0 + for _, b := range yyq209 { if b { - yynn2++ + yynn209++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn209) + yynn209 = 0 } - if yyr2 || yy2arr2 { + if yyr209 || yy2arr209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq209[0] { + yym211 := z.EncBinary() + _ = yym211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -2631,19 +2631,19 @@ func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq209[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym212 := z.EncBinary() + _ = yym212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr209 || yy2arr209 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2656,25 +2656,25 @@ func (x *APIVersion) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym213 := z.DecBinary() + _ = yym213 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct214 := r.ContainerType() + if yyct214 == codecSelferValueTypeMap1234 { + yyl214 := r.ReadMapStart() + if yyl214 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl214, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct214 == codecSelferValueTypeArray1234 { + yyl214 := r.ReadArrayStart() + if yyl214 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl214, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2686,12 +2686,12 @@ func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys215Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys215Slc + var yyhl215 bool = l >= 0 + for yyj215 := 0; ; yyj215++ { + if yyhl215 { + if yyj215 >= l { break } } else { @@ -2700,10 +2700,10 @@ func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys215Slc = r.DecodeBytes(yys215Slc, true, true) + yys215 := string(yys215Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys215 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -2711,9 +2711,9 @@ func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys215) + } // end switch yys215 + } // end for yyj215 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2721,16 +2721,16 @@ func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj217 int + var yyb217 bool + var yyhl217 bool = l >= 0 + yyj217++ + if yyhl217 { + yyb217 = yyj217 > l } else { - yyb5 = r.CheckBreak() + yyb217 = r.CheckBreak() } - if yyb5 { + if yyb217 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2741,17 +2741,17 @@ func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Name = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj217++ + if yyhl217 { + yyb217 = yyj217 > l } else { - yyb5 = r.CheckBreak() + yyb217 = r.CheckBreak() } - if yyb5 { + if yyb217 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj217-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2763,134 +2763,134 @@ func (x *ThirdPartyResourceData) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym219 := z.EncBinary() + _ = yym219 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Data) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep220 := !z.EncBinary() + yy2arr220 := z.EncBasicHandle().StructToArray + var yyq220 [4]bool + _, _, _ = yysep220, yyq220, yy2arr220 + const yyr220 bool = false + yyq220[0] = x.Kind != "" + yyq220[1] = x.APIVersion != "" + yyq220[2] = true + yyq220[3] = len(x.Data) != 0 + var yynn220 int + if yyr220 || yy2arr220 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn220 = 0 + for _, b := range yyq220 { if b { - yynn2++ + yynn220++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn220) + yynn220 = 0 } - if yyr2 || yy2arr2 { + if yyr220 || yy2arr220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq220[0] { + yym222 := z.EncBinary() + _ = yym222 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq220[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym223 := z.EncBinary() + _ = yym223 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr220 || yy2arr220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Data == nil { - r.EncodeNil() + if yyq220[1] { + yym225 := z.EncBinary() + _ = yym225 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq220[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() + yym226 := z.EncBinary() + _ = yym226 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr220 || yy2arr220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq220[2] { + yy228 := &x.ObjectMeta + yy228.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq220[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy229 := &x.ObjectMeta + yy229.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr220 || yy2arr220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq220[3] { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym231 := z.EncBinary() + _ = yym231 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq220[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym232 := z.EncBinary() + _ = yym232 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } } } } - if yyr2 || yy2arr2 { + if yyr220 || yy2arr220 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2903,25 +2903,25 @@ func (x *ThirdPartyResourceData) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym233 := z.DecBinary() + _ = yym233 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct234 := r.ContainerType() + if yyct234 == codecSelferValueTypeMap1234 { + yyl234 := r.ReadMapStart() + if yyl234 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl234, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct234 == codecSelferValueTypeArray1234 { + yyl234 := r.ReadArrayStart() + if yyl234 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl234, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2933,12 +2933,12 @@ func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys235Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys235Slc + var yyhl235 bool = l >= 0 + for yyj235 := 0; ; yyj235++ { + if yyhl235 { + if yyj235 >= l { break } } else { @@ -2947,45 +2947,45 @@ func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys235Slc = r.DecodeBytes(yys235Slc, true, true) + yys235 := string(yys235Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys235 { + 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_api.ObjectMeta{} } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv238 := &x.ObjectMeta + yyv238.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv5 := &x.Data - yym6 := z.DecBinary() - _ = yym6 + yyv239 := &x.Data + yym240 := z.DecBinary() + _ = yym240 if false { } else { - *yyv5 = r.DecodeBytes(*(*[]byte)(yyv5), false, false) + *yyv239 = r.DecodeBytes(*(*[]byte)(yyv239), false, false) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys235) + } // end switch yys235 + } // end for yyj235 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2993,92 +2993,92 @@ func (x *ThirdPartyResourceData) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj241 int + var yyb241 bool + var yyhl241 bool = l >= 0 + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l } else { - yyb9 = r.CheckBreak() + yyb241 = r.CheckBreak() } - if yyb9 { + if yyb241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l } else { - yyb9 = r.CheckBreak() + yyb241 = r.CheckBreak() } - if yyb9 { + if yyb241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.APIVersion = "" } else { - yyv11 := &x.Data - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *yyv11 = r.DecodeBytes(*(*[]byte)(yyv11), false, false) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l } else { - yyb9 = r.CheckBreak() + yyb241 = r.CheckBreak() } - if yyb9 { + if yyb241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv244 := &x.ObjectMeta + yyv244.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l } else { - yyb9 = r.CheckBreak() + yyb241 = r.CheckBreak() } - if yyb9 { + if yyb241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Data = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv245 := &x.Data + yym246 := z.DecBinary() + _ = yym246 + if false { + } else { + *yyv245 = r.DecodeBytes(*(*[]byte)(yyv245), false, false) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l } else { - yyb9 = r.CheckBreak() + yyb241 = r.CheckBreak() } - if yyb9 { + if yyb241 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj241-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3090,136 +3090,136 @@ func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym247 := z.EncBinary() + _ = yym247 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep248 := !z.EncBinary() + yy2arr248 := z.EncBasicHandle().StructToArray + var yyq248 [5]bool + _, _, _ = yysep248, yyq248, yy2arr248 + const yyr248 bool = false + yyq248[0] = x.Kind != "" + yyq248[1] = x.APIVersion != "" + yyq248[2] = true + yyq248[3] = true + yyq248[4] = true + var yynn248 int + if yyr248 || yy2arr248 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn248 = 0 + for _, b := range yyq248 { if b { - yynn2++ + yynn248++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn248) + yynn248 = 0 } - if yyr2 || yy2arr2 { + if yyr248 || yy2arr248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq248[0] { + yym250 := z.EncBinary() + _ = yym250 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq248[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym251 := z.EncBinary() + _ = yym251 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr248 || yy2arr248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq248[1] { + yym253 := z.EncBinary() + _ = yym253 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq248[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym254 := z.EncBinary() + _ = yym254 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr248 || yy2arr248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq248[2] { + yy256 := &x.ObjectMeta + yy256.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq248[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy257 := &x.ObjectMeta + yy257.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr248 || yy2arr248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq248[3] { + yy259 := &x.Spec + yy259.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq248[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy260 := &x.Spec + yy260.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr248 || yy2arr248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq248[4] { + yy262 := &x.Status + yy262.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq248[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy263 := &x.Status + yy263.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr248 || yy2arr248 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3232,25 +3232,25 @@ func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym264 := z.DecBinary() + _ = yym264 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct265 := r.ContainerType() + if yyct265 == codecSelferValueTypeMap1234 { + yyl265 := r.ReadMapStart() + if yyl265 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl265, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct265 == codecSelferValueTypeArray1234 { + yyl265 := r.ReadArrayStart() + if yyl265 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl265, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3262,12 +3262,12 @@ func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys266Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys266Slc + var yyhl266 bool = l >= 0 + for yyj266 := 0; ; yyj266++ { + if yyhl266 { + if yyj266 >= l { break } } else { @@ -3276,47 +3276,47 @@ func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys266Slc = r.DecodeBytes(yys266Slc, true, true) + yys266 := string(yys266Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys266 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = DeploymentSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = DeploymentStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv269 := &x.ObjectMeta + yyv269.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DeploymentSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv270 := &x.Spec + yyv270.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DeploymentStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv271 := &x.Status + yyv271.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys266) + } // end switch yys266 + } // end for yyj266 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3324,104 +3324,104 @@ func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj272 int + var yyb272 bool + var yyhl272 bool = l >= 0 + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l } else { - yyb9 = r.CheckBreak() + yyb272 = r.CheckBreak() } - if yyb9 { + if yyb272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l } else { - yyb9 = r.CheckBreak() + yyb272 = r.CheckBreak() } - if yyb9 { + if yyb272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = DeploymentSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l } else { - yyb9 = r.CheckBreak() + yyb272 = r.CheckBreak() } - if yyb9 { + if yyb272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = DeploymentStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv275 := &x.ObjectMeta + yyv275.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l } else { - yyb9 = r.CheckBreak() + yyb272 = r.CheckBreak() } - if yyb9 { + if yyb272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DeploymentSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv276 := &x.Spec + yyv276.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l } else { - yyb9 = r.CheckBreak() + yyb272 = r.CheckBreak() } - if yyb9 { + if yyb272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DeploymentStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv277 := &x.Status + yyv277.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l } else { - yyb9 = r.CheckBreak() + yyb272 = r.CheckBreak() } - if yyb9 { + if yyb272 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj272-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3433,41 +3433,41 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym278 := z.EncBinary() + _ = yym278 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != 0 - yyq2[1] = x.Selector != nil - yyq2[3] = true - yyq2[4] = x.MinReadySeconds != 0 - yyq2[5] = x.RevisionHistoryLimit != nil - yyq2[6] = x.Paused != false - yyq2[7] = x.RollbackTo != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep279 := !z.EncBinary() + yy2arr279 := z.EncBasicHandle().StructToArray + var yyq279 [8]bool + _, _, _ = yysep279, yyq279, yy2arr279 + const yyr279 bool = false + yyq279[0] = x.Replicas != 0 + yyq279[1] = x.Selector != nil + yyq279[3] = true + yyq279[4] = x.MinReadySeconds != 0 + yyq279[5] = x.RevisionHistoryLimit != nil + yyq279[6] = x.Paused != false + yyq279[7] = x.RollbackTo != nil + var yynn279 int + if yyr279 || yy2arr279 { r.EncodeArrayStart(8) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn279 = 1 + for _, b := range yyq279 { if b { - yynn2++ + yynn279++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn279) + yynn279 = 0 } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq279[0] { + yym281 := z.EncBinary() + _ = yym281 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -3476,26 +3476,26 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq279[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym282 := z.EncBinary() + _ = yym282 if false { } else { r.EncodeInt(int64(x.Replicas)) } } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq279[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym284 := z.EncBinary() + _ = yym284 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -3506,15 +3506,15 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq279[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym285 := z.EncBinary() + _ = yym285 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -3523,39 +3523,39 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy10 := &x.Template - yy10.CodecEncodeSelf(e) + yy287 := &x.Template + yy287.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Template - yy12.CodecEncodeSelf(e) + yy288 := &x.Template + yy288.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.Strategy - yy15.CodecEncodeSelf(e) + if yyq279[3] { + yy290 := &x.Strategy + yy290.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq279[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("strategy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.Strategy - yy17.CodecEncodeSelf(e) + yy291 := &x.Strategy + yy291.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq279[4] { + yym293 := z.EncBinary() + _ = yym293 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) @@ -3564,58 +3564,58 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq279[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym294 := z.EncBinary() + _ = yym294 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) } } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq279[5] { if x.RevisionHistoryLimit == nil { r.EncodeNil() } else { - yy23 := *x.RevisionHistoryLimit - yym24 := z.EncBinary() - _ = yym24 + yy296 := *x.RevisionHistoryLimit + yym297 := z.EncBinary() + _ = yym297 if false { } else { - r.EncodeInt(int64(yy23)) + r.EncodeInt(int64(yy296)) } } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq279[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revisionHistoryLimit")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RevisionHistoryLimit == nil { r.EncodeNil() } else { - yy25 := *x.RevisionHistoryLimit - yym26 := z.EncBinary() - _ = yym26 + yy298 := *x.RevisionHistoryLimit + yym299 := z.EncBinary() + _ = yym299 if false { } else { - r.EncodeInt(int64(yy25)) + r.EncodeInt(int64(yy298)) } } } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym28 := z.EncBinary() - _ = yym28 + if yyq279[6] { + yym301 := z.EncBinary() + _ = yym301 if false { } else { r.EncodeBool(bool(x.Paused)) @@ -3624,21 +3624,21 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[6] { + if yyq279[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("paused")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym302 := z.EncBinary() + _ = yym302 if false { } else { r.EncodeBool(bool(x.Paused)) } } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq279[7] { if x.RollbackTo == nil { r.EncodeNil() } else { @@ -3648,7 +3648,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[7] { + if yyq279[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3659,7 +3659,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3672,25 +3672,25 @@ func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym304 := z.DecBinary() + _ = yym304 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct305 := r.ContainerType() + if yyct305 == codecSelferValueTypeMap1234 { + yyl305 := r.ReadMapStart() + if yyl305 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl305, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct305 == codecSelferValueTypeArray1234 { + yyl305 := r.ReadArrayStart() + if yyl305 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl305, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3702,12 +3702,12 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys306Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys306Slc + var yyhl306 bool = l >= 0 + for yyj306 := 0; ; yyj306++ { + if yyhl306 { + if yyj306 >= l { break } } else { @@ -3716,10 +3716,10 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys306Slc = r.DecodeBytes(yys306Slc, true, true) + yys306 := string(yys306Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys306 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -3735,8 +3735,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym6 := z.DecBinary() - _ = yym6 + yym309 := z.DecBinary() + _ = yym309 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -3747,15 +3747,15 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv7 := &x.Template - yyv7.CodecDecodeSelf(d) + yyv310 := &x.Template + yyv310.CodecDecodeSelf(d) } case "strategy": if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv8 := &x.Strategy - yyv8.CodecDecodeSelf(d) + yyv311 := &x.Strategy + yyv311.CodecDecodeSelf(d) } case "minReadySeconds": if r.TryDecodeAsNil() { @@ -3772,8 +3772,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym11 := z.DecBinary() - _ = yym11 + yym314 := z.DecBinary() + _ = yym314 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) @@ -3797,9 +3797,9 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.RollbackTo.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys306) + } // end switch yys306 + } // end for yyj306 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3807,16 +3807,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj317 int + var yyb317 bool + var yyhl317 bool = l >= 0 + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3826,13 +3826,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3845,21 +3845,21 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym17 := z.DecBinary() - _ = yym17 + yym320 := z.DecBinary() + _ = yym320 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3867,16 +3867,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv18 := &x.Template - yyv18.CodecDecodeSelf(d) + yyv321 := &x.Template + yyv321.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3884,16 +3884,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv19 := &x.Strategy - yyv19.CodecDecodeSelf(d) + yyv322 := &x.Strategy + yyv322.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3903,13 +3903,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3922,20 +3922,20 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym22 := z.DecBinary() - _ = yym22 + yym325 := z.DecBinary() + _ = yym325 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3945,13 +3945,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Paused = bool(r.DecodeBool()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3967,17 +3967,17 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.RollbackTo.CodecDecodeSelf(d) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l } else { - yyb14 = r.CheckBreak() + yyb317 = r.CheckBreak() } - if yyb14 { + if yyb317 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj317-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3989,36 +3989,86 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym328 := z.EncBinary() + _ = yym328 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[1] = len(x.UpdatedAnnotations) != 0 - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep329 := !z.EncBinary() + yy2arr329 := z.EncBasicHandle().StructToArray + var yyq329 [5]bool + _, _, _ = yysep329, yyq329, yy2arr329 + const yyr329 bool = false + yyq329[0] = x.Kind != "" + yyq329[1] = x.APIVersion != "" + yyq329[3] = len(x.UpdatedAnnotations) != 0 + var yynn329 int + if yyr329 || yy2arr329 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn329 = 2 + for _, b := range yyq329 { if b { - yynn2++ + yynn329++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn329) + yynn329 = 0 } - if yyr2 || yy2arr2 { + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq329[0] { + yym331 := z.EncBinary() + _ = yym331 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq329[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym332 := z.EncBinary() + _ = yym332 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq329[1] { + yym334 := z.EncBinary() + _ = yym334 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq329[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym335 := z.EncBinary() + _ = yym335 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym337 := z.EncBinary() + _ = yym337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -4027,21 +4077,21 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym338 := z.EncBinary() + _ = yym338 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq329[3] { if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym340 := z.EncBinary() + _ = yym340 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -4051,15 +4101,15 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq329[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("updatedAnnotations")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym341 := z.EncBinary() + _ = yym341 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -4067,68 +4117,18 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy10 := &x.RollbackTo - yy10.CodecEncodeSelf(e) + yy343 := &x.RollbackTo + yy343.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.RollbackTo - yy12.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } + yy344 := &x.RollbackTo + yy344.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4141,25 +4141,25 @@ func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym345 := z.DecBinary() + _ = yym345 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct346 := r.ContainerType() + if yyct346 == codecSelferValueTypeMap1234 { + yyl346 := r.ReadMapStart() + if yyl346 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl346, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct346 == codecSelferValueTypeArray1234 { + yyl346 := r.ReadArrayStart() + if yyl346 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl346, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4171,12 +4171,12 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys347Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys347Slc + var yyhl347 bool = l >= 0 + for yyj347 := 0; ; yyj347++ { + if yyhl347 { + if yyj347 >= l { break } } else { @@ -4185,10 +4185,22 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys347Slc = r.DecodeBytes(yys347Slc, true, true) + yys347 := string(yys347Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys347 { + 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 = "" @@ -4199,37 +4211,25 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.UpdatedAnnotations = nil } else { - yyv5 := &x.UpdatedAnnotations - yym6 := z.DecBinary() - _ = yym6 + yyv351 := &x.UpdatedAnnotations + yym352 := z.DecBinary() + _ = yym352 if false { } else { - z.F.DecMapStringStringX(yyv5, false, d) + z.F.DecMapStringStringX(yyv351, false, d) } } case "rollbackTo": if r.TryDecodeAsNil() { x.RollbackTo = RollbackConfig{} } else { - yyv7 := &x.RollbackTo - yyv7.CodecDecodeSelf(d) - } - 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()) + yyv353 := &x.RollbackTo + yyv353.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys347) + } // end switch yys347 + } // end for yyj347 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4237,108 +4237,108 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj354 int + var yyb354 bool + var yyhl354 bool = l >= 0 + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l } else { - yyb10 = r.CheckBreak() + yyb354 = r.CheckBreak() } - if yyb10 { + if yyb354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + x.Kind = "" } else { - x.Name = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l } else { - yyb10 = r.CheckBreak() + yyb354 = r.CheckBreak() } - if yyb10 { + if yyb354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.UpdatedAnnotations = nil + x.APIVersion = "" } else { - yyv12 := &x.UpdatedAnnotations - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - z.F.DecMapStringStringX(yyv12, false, d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l } else { - yyb10 = r.CheckBreak() + yyb354 = r.CheckBreak() } - if yyb10 { + if yyb354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.RollbackTo = RollbackConfig{} + x.Name = "" } else { - yyv14 := &x.RollbackTo - yyv14.CodecDecodeSelf(d) + x.Name = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l } else { - yyb10 = r.CheckBreak() + yyb354 = r.CheckBreak() } - if yyb10 { + if yyb354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.UpdatedAnnotations = nil } else { - x.Kind = string(r.DecodeString()) + yyv358 := &x.UpdatedAnnotations + yym359 := z.DecBinary() + _ = yym359 + if false { + } else { + z.F.DecMapStringStringX(yyv358, false, d) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l } else { - yyb10 = r.CheckBreak() + yyb354 = r.CheckBreak() } - if yyb10 { + if yyb354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.RollbackTo = RollbackConfig{} } else { - x.APIVersion = string(r.DecodeString()) + yyv360 := &x.RollbackTo + yyv360.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l } else { - yyb10 = r.CheckBreak() + yyb354 = r.CheckBreak() } - if yyb10 { + if yyb354 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj354-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4350,35 +4350,35 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym361 := z.EncBinary() + _ = yym361 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Revision != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep362 := !z.EncBinary() + yy2arr362 := z.EncBasicHandle().StructToArray + var yyq362 [1]bool + _, _, _ = yysep362, yyq362, yy2arr362 + const yyr362 bool = false + yyq362[0] = x.Revision != 0 + var yynn362 int + if yyr362 || yy2arr362 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn362 = 0 + for _, b := range yyq362 { if b { - yynn2++ + yynn362++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn362) + yynn362 = 0 } - if yyr2 || yy2arr2 { + if yyr362 || yy2arr362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq362[0] { + yym364 := z.EncBinary() + _ = yym364 if false { } else { r.EncodeInt(int64(x.Revision)) @@ -4387,19 +4387,19 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq362[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym365 := z.EncBinary() + _ = yym365 if false { } else { r.EncodeInt(int64(x.Revision)) } } } - if yyr2 || yy2arr2 { + if yyr362 || yy2arr362 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4412,25 +4412,25 @@ func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym366 := z.DecBinary() + _ = yym366 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct367 := r.ContainerType() + if yyct367 == codecSelferValueTypeMap1234 { + yyl367 := r.ReadMapStart() + if yyl367 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl367, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct367 == codecSelferValueTypeArray1234 { + yyl367 := r.ReadArrayStart() + if yyl367 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl367, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4442,12 +4442,12 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys368Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys368Slc + var yyhl368 bool = l >= 0 + for yyj368 := 0; ; yyj368++ { + if yyhl368 { + if yyj368 >= l { break } } else { @@ -4456,10 +4456,10 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys368Slc = r.DecodeBytes(yys368Slc, true, true) + yys368 := string(yys368Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys368 { case "revision": if r.TryDecodeAsNil() { x.Revision = 0 @@ -4467,9 +4467,9 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys368) + } // end switch yys368 + } // end for yyj368 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4477,16 +4477,16 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj370 int + var yyb370 bool + var yyhl370 bool = l >= 0 + yyj370++ + if yyhl370 { + yyb370 = yyj370 > l } else { - yyb5 = r.CheckBreak() + yyb370 = r.CheckBreak() } - if yyb5 { + if yyb370 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4497,17 +4497,17 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj370++ + if yyhl370 { + yyb370 = yyj370 > l } else { - yyb5 = r.CheckBreak() + yyb370 = r.CheckBreak() } - if yyb5 { + if yyb370 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj370-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4519,49 +4519,49 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym372 := z.EncBinary() + _ = yym372 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Type != "" - yyq2[1] = x.RollingUpdate != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep373 := !z.EncBinary() + yy2arr373 := z.EncBasicHandle().StructToArray + var yyq373 [2]bool + _, _, _ = yysep373, yyq373, yy2arr373 + const yyr373 bool = false + yyq373[0] = x.Type != "" + yyq373[1] = x.RollingUpdate != nil + var yynn373 int + if yyr373 || yy2arr373 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn373 = 0 + for _, b := range yyq373 { if b { - yynn2++ + yynn373++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn373) + yynn373 = 0 } - if yyr2 || yy2arr2 { + if yyr373 || yy2arr373 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq373[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq373[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr373 || yy2arr373 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq373[1] { if x.RollingUpdate == nil { r.EncodeNil() } else { @@ -4571,7 +4571,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq373[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4582,7 +4582,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr373 || yy2arr373 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4595,25 +4595,25 @@ func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym376 := z.DecBinary() + _ = yym376 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct377 := r.ContainerType() + if yyct377 == codecSelferValueTypeMap1234 { + yyl377 := r.ReadMapStart() + if yyl377 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl377, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct377 == codecSelferValueTypeArray1234 { + yyl377 := r.ReadArrayStart() + if yyl377 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl377, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4625,12 +4625,12 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys378Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys378Slc + var yyhl378 bool = l >= 0 + for yyj378 := 0; ; yyj378++ { + if yyhl378 { + if yyj378 >= l { break } } else { @@ -4639,10 +4639,10 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys378Slc = r.DecodeBytes(yys378Slc, true, true) + yys378 := string(yys378Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys378 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -4661,9 +4661,9 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.RollingUpdate.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys378) + } // end switch yys378 + } // end for yyj378 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4671,16 +4671,16 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj381 int + var yyb381 bool + var yyhl381 bool = l >= 0 + yyj381++ + if yyhl381 { + yyb381 = yyj381 > l } else { - yyb6 = r.CheckBreak() + yyb381 = r.CheckBreak() } - if yyb6 { + if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4690,13 +4690,13 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = DeploymentStrategyType(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj381++ + if yyhl381 { + yyb381 = yyj381 > l } else { - yyb6 = r.CheckBreak() + yyb381 = r.CheckBreak() } - if yyb6 { + if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4712,17 +4712,17 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.RollingUpdate.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj381++ + if yyhl381 { + yyb381 = yyj381 > l } else { - yyb6 = r.CheckBreak() + yyb381 = r.CheckBreak() } - if yyb6 { + if yyb381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj381-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4731,8 +4731,8 @@ func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym384 := z.EncBinary() + _ = yym384 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -4744,8 +4744,8 @@ func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym385 := z.DecBinary() + _ = yym385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -4760,98 +4760,98 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym386 := z.EncBinary() + _ = yym386 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep387 := !z.EncBinary() + yy2arr387 := z.EncBasicHandle().StructToArray + var yyq387 [2]bool + _, _, _ = yysep387, yyq387, yy2arr387 + const yyr387 bool = false + yyq387[0] = true + yyq387[1] = true + var yynn387 int + if yyr387 || yy2arr387 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn387 = 0 + for _, b := range yyq387 { if b { - yynn2++ + yynn387++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn387) + yynn387 = 0 } - if yyr2 || yy2arr2 { + if yyr387 || yy2arr387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.MaxUnavailable - yym5 := z.EncBinary() - _ = yym5 + if yyq387[0] { + yy389 := &x.MaxUnavailable + yym390 := z.EncBinary() + _ = yym390 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { - } else if !yym5 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4) + } else if z.HasExtensions() && z.EncExt(yy389) { + } else if !yym390 && z.IsJSONHandle() { + z.EncJSONMarshal(yy389) } else { - z.EncFallback(yy4) + z.EncFallback(yy389) } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq387[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.MaxUnavailable - yym7 := z.EncBinary() - _ = yym7 + yy391 := &x.MaxUnavailable + yym392 := z.EncBinary() + _ = yym392 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { - } else if !yym7 && z.IsJSONHandle() { - z.EncJSONMarshal(yy6) + } else if z.HasExtensions() && z.EncExt(yy391) { + } else if !yym392 && z.IsJSONHandle() { + z.EncJSONMarshal(yy391) } else { - z.EncFallback(yy6) + z.EncFallback(yy391) } } } - if yyr2 || yy2arr2 { + if yyr387 || yy2arr387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.MaxSurge - yym10 := z.EncBinary() - _ = yym10 + if yyq387[1] { + yy394 := &x.MaxSurge + yym395 := z.EncBinary() + _ = yym395 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy394) { + } else if !yym395 && z.IsJSONHandle() { + z.EncJSONMarshal(yy394) } else { - z.EncFallback(yy9) + z.EncFallback(yy394) } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq387[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxSurge")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.MaxSurge - yym12 := z.EncBinary() - _ = yym12 + yy396 := &x.MaxSurge + yym397 := z.EncBinary() + _ = yym397 if false { - } else if z.HasExtensions() && z.EncExt(yy11) { - } else if !yym12 && z.IsJSONHandle() { - z.EncJSONMarshal(yy11) + } else if z.HasExtensions() && z.EncExt(yy396) { + } else if !yym397 && z.IsJSONHandle() { + z.EncJSONMarshal(yy396) } else { - z.EncFallback(yy11) + z.EncFallback(yy396) } } } - if yyr2 || yy2arr2 { + if yyr387 || yy2arr387 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4864,25 +4864,25 @@ func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym398 := z.DecBinary() + _ = yym398 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct399 := r.ContainerType() + if yyct399 == codecSelferValueTypeMap1234 { + yyl399 := r.ReadMapStart() + if yyl399 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl399, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct399 == codecSelferValueTypeArray1234 { + yyl399 := r.ReadArrayStart() + if yyl399 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl399, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4894,12 +4894,12 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys400Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys400Slc + var yyhl400 bool = l >= 0 + for yyj400 := 0; ; yyj400++ { + if yyhl400 { + if yyj400 >= l { break } } else { @@ -4908,44 +4908,44 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys400Slc = r.DecodeBytes(yys400Slc, true, true) + yys400 := string(yys400Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys400 { case "maxUnavailable": if r.TryDecodeAsNil() { x.MaxUnavailable = pkg5_intstr.IntOrString{} } else { - yyv4 := &x.MaxUnavailable - yym5 := z.DecBinary() - _ = yym5 + yyv401 := &x.MaxUnavailable + yym402 := z.DecBinary() + _ = yym402 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv401) { + } else if !yym402 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv401) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv401, false) } } case "maxSurge": if r.TryDecodeAsNil() { x.MaxSurge = pkg5_intstr.IntOrString{} } else { - yyv6 := &x.MaxSurge - yym7 := z.DecBinary() - _ = yym7 + yyv403 := &x.MaxSurge + yym404 := z.DecBinary() + _ = yym404 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv403) { + } else if !yym404 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv403) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv403, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys400) + } // end switch yys400 + } // end for yyj400 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4953,16 +4953,16 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj405 int + var yyb405 bool + var yyhl405 bool = l >= 0 + yyj405++ + if yyhl405 { + yyb405 = yyj405 > l } else { - yyb8 = r.CheckBreak() + yyb405 = r.CheckBreak() } - if yyb8 { + if yyb405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4970,24 +4970,24 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.MaxUnavailable = pkg5_intstr.IntOrString{} } else { - yyv9 := &x.MaxUnavailable - yym10 := z.DecBinary() - _ = yym10 + yyv406 := &x.MaxUnavailable + yym407 := z.DecBinary() + _ = yym407 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv406) { + } else if !yym407 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv406) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv406, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj405++ + if yyhl405 { + yyb405 = yyj405 > l } else { - yyb8 = r.CheckBreak() + yyb405 = r.CheckBreak() } - if yyb8 { + if yyb405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4995,29 +4995,29 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.MaxSurge = pkg5_intstr.IntOrString{} } else { - yyv11 := &x.MaxSurge - yym12 := z.DecBinary() - _ = yym12 + yyv408 := &x.MaxSurge + yym409 := z.DecBinary() + _ = yym409 if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else if !yym12 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv11) + } else if z.HasExtensions() && z.DecExt(yyv408) { + } else if !yym409 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv408) } else { - z.DecFallback(yyv11, false) + z.DecFallback(yyv408, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj405++ + if yyhl405 { + yyb405 = yyj405 > l } else { - yyb8 = r.CheckBreak() + yyb405 = r.CheckBreak() } - if yyb8 { + if yyb405 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj405-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5029,39 +5029,39 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym410 := z.EncBinary() + _ = yym410 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.ObservedGeneration != 0 - yyq2[1] = x.Replicas != 0 - yyq2[2] = x.UpdatedReplicas != 0 - yyq2[3] = x.AvailableReplicas != 0 - yyq2[4] = x.UnavailableReplicas != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep411 := !z.EncBinary() + yy2arr411 := z.EncBasicHandle().StructToArray + var yyq411 [5]bool + _, _, _ = yysep411, yyq411, yy2arr411 + const yyr411 bool = false + yyq411[0] = x.ObservedGeneration != 0 + yyq411[1] = x.Replicas != 0 + yyq411[2] = x.UpdatedReplicas != 0 + yyq411[3] = x.AvailableReplicas != 0 + yyq411[4] = x.UnavailableReplicas != 0 + var yynn411 int + if yyr411 || yy2arr411 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn411 = 0 + for _, b := range yyq411 { if b { - yynn2++ + yynn411++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn411) + yynn411 = 0 } - if yyr2 || yy2arr2 { + if yyr411 || yy2arr411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq411[0] { + yym413 := z.EncBinary() + _ = yym413 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -5070,23 +5070,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq411[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym414 := z.EncBinary() + _ = yym414 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2 || yy2arr2 { + if yyr411 || yy2arr411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq411[1] { + yym416 := z.EncBinary() + _ = yym416 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -5095,23 +5095,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq411[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym417 := z.EncBinary() + _ = yym417 if false { } else { r.EncodeInt(int64(x.Replicas)) } } } - if yyr2 || yy2arr2 { + if yyr411 || yy2arr411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq411[2] { + yym419 := z.EncBinary() + _ = yym419 if false { } else { r.EncodeInt(int64(x.UpdatedReplicas)) @@ -5120,23 +5120,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq411[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym420 := z.EncBinary() + _ = yym420 if false { } else { r.EncodeInt(int64(x.UpdatedReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr411 || yy2arr411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq411[3] { + yym422 := z.EncBinary() + _ = yym422 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) @@ -5145,23 +5145,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq411[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym423 := z.EncBinary() + _ = yym423 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr411 || yy2arr411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq411[4] { + yym425 := z.EncBinary() + _ = yym425 if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) @@ -5170,19 +5170,19 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq411[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym426 := z.EncBinary() + _ = yym426 if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr411 || yy2arr411 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5195,25 +5195,25 @@ func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym427 := z.DecBinary() + _ = yym427 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct428 := r.ContainerType() + if yyct428 == codecSelferValueTypeMap1234 { + yyl428 := r.ReadMapStart() + if yyl428 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl428, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct428 == codecSelferValueTypeArray1234 { + yyl428 := r.ReadArrayStart() + if yyl428 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl428, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5225,12 +5225,12 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys429Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys429Slc + var yyhl429 bool = l >= 0 + for yyj429 := 0; ; yyj429++ { + if yyhl429 { + if yyj429 >= l { break } } else { @@ -5239,10 +5239,10 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys429Slc = r.DecodeBytes(yys429Slc, true, true) + yys429 := string(yys429Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys429 { case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -5274,9 +5274,9 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.UnavailableReplicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys429) + } // end switch yys429 + } // end for yyj429 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5284,16 +5284,16 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj435 int + var yyb435 bool + var yyhl435 bool = l >= 0 + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l } else { - yyb9 = r.CheckBreak() + yyb435 = r.CheckBreak() } - if yyb9 { + if yyb435 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5303,13 +5303,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l } else { - yyb9 = r.CheckBreak() + yyb435 = r.CheckBreak() } - if yyb9 { + if yyb435 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5319,13 +5319,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l } else { - yyb9 = r.CheckBreak() + yyb435 = r.CheckBreak() } - if yyb9 { + if yyb435 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5335,13 +5335,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UpdatedReplicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l } else { - yyb9 = r.CheckBreak() + yyb435 = r.CheckBreak() } - if yyb9 { + if yyb435 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5351,13 +5351,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l } else { - yyb9 = r.CheckBreak() + yyb435 = r.CheckBreak() } - if yyb9 { + if yyb435 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5368,17 +5368,17 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.UnavailableReplicas = int32(r.DecodeInt(32)) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l } else { - yyb9 = r.CheckBreak() + yyb435 = r.CheckBreak() } - if yyb9 { + if yyb435 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj435-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5390,139 +5390,139 @@ func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym441 := z.EncBinary() + _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn442 = 1 + for _, b := range yyq442 { if b { - yynn2++ + yynn442++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn442) + yynn442 = 0 } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq442[0] { + yym444 := z.EncBinary() + _ = yym444 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym445 := z.EncBinary() + _ = yym445 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq442[1] { + yym447 := z.EncBinary() + _ = yym447 if false { } else { - h.encSliceDeployment(([]Deployment)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq442[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym448 := z.EncBinary() + _ = yym448 if false { } else { - h.encSliceDeployment(([]Deployment)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + 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.Kind)) + z.EncFallback(yy450) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq442[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy452 := &x.ListMeta + yym453 := z.EncBinary() + _ = yym453 if false { + } else if z.HasExtensions() && z.EncExt(yy452) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy452) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym455 := z.EncBinary() + _ = yym455 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDeployment(([]Deployment)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym456 := z.EncBinary() + _ = yym456 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDeployment(([]Deployment)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5535,25 +5535,25 @@ func (x *DeploymentList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym457 := z.DecBinary() + _ = yym457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct458 := r.ContainerType() + if yyct458 == codecSelferValueTypeMap1234 { + yyl458 := r.ReadMapStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl458, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct458 == codecSelferValueTypeArray1234 { + yyl458 := r.ReadArrayStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl458, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5565,12 +5565,12 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -5579,51 +5579,51 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys459Slc = r.DecodeBytes(yys459Slc, true, true) + yys459 := string(yys459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys459 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv462 := &x.ListMeta + yym463 := z.DecBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv462) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv464 := &x.Items + yym465 := z.DecBinary() + _ = yym465 if false { } else { - h.decSliceDeployment((*[]Deployment)(yyv6), d) + h.decSliceDeployment((*[]Deployment)(yyv464), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys459) + } // end switch yys459 + } // end for yyj459 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5631,98 +5631,98 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj466 int + var yyb466 bool + var yyhl466 bool = l >= 0 + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceDeployment((*[]Deployment)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv469 := &x.ListMeta + yym470 := z.DecBinary() + _ = yym470 + if false { + } else if z.HasExtensions() && z.DecExt(yyv469) { + } else { + z.DecFallback(yyv469, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv471 := &x.Items + yym472 := z.DecBinary() + _ = yym472 + if false { + } else { + h.decSliceDeployment((*[]Deployment)(yyv471), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb10 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb10 { + if yyb466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj466-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5734,38 +5734,38 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym473 := z.EncBinary() + _ = yym473 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Selector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep474 := !z.EncBinary() + yy2arr474 := z.EncBasicHandle().StructToArray + var yyq474 [2]bool + _, _, _ = yysep474, yyq474, yy2arr474 + const yyr474 bool = false + yyq474[0] = x.Selector != nil + var yynn474 int + if yyr474 || yy2arr474 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn474 = 1 + for _, b := range yyq474 { if b { - yynn2++ + yynn474++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn474) + yynn474 = 0 } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq474[0] { if x.Selector == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym476 := z.EncBinary() + _ = yym476 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -5776,15 +5776,15 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq474[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym477 := z.EncBinary() + _ = yym477 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -5793,18 +5793,18 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Template - yy7.CodecEncodeSelf(e) + yy479 := &x.Template + yy479.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Template - yy9.CodecEncodeSelf(e) + yy480 := &x.Template + yy480.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5817,25 +5817,25 @@ func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym481 := z.DecBinary() + _ = yym481 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct482 := r.ContainerType() + if yyct482 == codecSelferValueTypeMap1234 { + yyl482 := r.ReadMapStart() + if yyl482 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl482, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct482 == codecSelferValueTypeArray1234 { + yyl482 := r.ReadArrayStart() + if yyl482 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl482, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5847,12 +5847,12 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys483Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys483Slc + var yyhl483 bool = l >= 0 + for yyj483 := 0; ; yyj483++ { + if yyhl483 { + if yyj483 >= l { break } } else { @@ -5861,10 +5861,10 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys483Slc = r.DecodeBytes(yys483Slc, true, true) + yys483 := string(yys483Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys483 { case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { @@ -5874,8 +5874,8 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym5 := z.DecBinary() - _ = yym5 + yym485 := z.DecBinary() + _ = yym485 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -5886,13 +5886,13 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv6 := &x.Template - yyv6.CodecDecodeSelf(d) + yyv486 := &x.Template + yyv486.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys483) + } // end switch yys483 + } // end for yyj483 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5900,16 +5900,16 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj487 int + var yyb487 bool + var yyhl487 bool = l >= 0 + yyj487++ + if yyhl487 { + yyb487 = yyj487 > l } else { - yyb7 = r.CheckBreak() + yyb487 = r.CheckBreak() } - if yyb7 { + if yyb487 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5922,21 +5922,21 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym9 := z.DecBinary() - _ = yym9 + yym489 := z.DecBinary() + _ = yym489 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj487++ + if yyhl487 { + yyb487 = yyj487 > l } else { - yyb7 = r.CheckBreak() + yyb487 = r.CheckBreak() } - if yyb7 { + if yyb487 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5944,21 +5944,21 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv10 := &x.Template - yyv10.CodecDecodeSelf(d) + yyv490 := &x.Template + yyv490.CodecDecodeSelf(d) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj487++ + if yyhl487 { + yyb487 = yyj487 > l } else { - yyb7 = r.CheckBreak() + yyb487 = r.CheckBreak() } - if yyb7 { + if yyb487 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj487-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5970,33 +5970,33 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym491 := z.EncBinary() + _ = yym491 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep492 := !z.EncBinary() + yy2arr492 := z.EncBasicHandle().StructToArray + var yyq492 [3]bool + _, _, _ = yysep492, yyq492, yy2arr492 + const yyr492 bool = false + var yynn492 int + if yyr492 || yy2arr492 { r.EncodeArrayStart(3) } else { - yynn2 = 3 - for _, b := range yyq2 { + yynn492 = 3 + for _, b := range yyq492 { if b { - yynn2++ + yynn492++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn492) + yynn492 = 0 } - if yyr2 || yy2arr2 { + if yyr492 || yy2arr492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym494 := z.EncBinary() + _ = yym494 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) @@ -6005,17 +6005,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym495 := z.EncBinary() + _ = yym495 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) } } - if yyr2 || yy2arr2 { + if yyr492 || yy2arr492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym497 := z.EncBinary() + _ = yym497 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) @@ -6024,17 +6024,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym498 := z.EncBinary() + _ = yym498 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) } } - if yyr2 || yy2arr2 { + if yyr492 || yy2arr492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym500 := z.EncBinary() + _ = yym500 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) @@ -6043,14 +6043,14 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym501 := z.EncBinary() + _ = yym501 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) } } - if yyr2 || yy2arr2 { + if yyr492 || yy2arr492 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6063,25 +6063,25 @@ func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym502 := z.DecBinary() + _ = yym502 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct503 := r.ContainerType() + if yyct503 == codecSelferValueTypeMap1234 { + yyl503 := r.ReadMapStart() + if yyl503 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl503, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct503 == codecSelferValueTypeArray1234 { + yyl503 := r.ReadArrayStart() + if yyl503 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl503, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6093,12 +6093,12 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys504Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys504Slc + var yyhl504 bool = l >= 0 + for yyj504 := 0; ; yyj504++ { + if yyhl504 { + if yyj504 >= l { break } } else { @@ -6107,10 +6107,10 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys504Slc = r.DecodeBytes(yys504Slc, true, true) + yys504 := string(yys504Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys504 { case "currentNumberScheduled": if r.TryDecodeAsNil() { x.CurrentNumberScheduled = 0 @@ -6130,9 +6130,9 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys504) + } // end switch yys504 + } // end for yyj504 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6140,16 +6140,16 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj508 int + var yyb508 bool + var yyhl508 bool = l >= 0 + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l } else { - yyb7 = r.CheckBreak() + yyb508 = r.CheckBreak() } - if yyb7 { + if yyb508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6159,13 +6159,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.CurrentNumberScheduled = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l } else { - yyb7 = r.CheckBreak() + yyb508 = r.CheckBreak() } - if yyb7 { + if yyb508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6175,13 +6175,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.NumberMisscheduled = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l } else { - yyb7 = r.CheckBreak() + yyb508 = r.CheckBreak() } - if yyb7 { + if yyb508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6192,17 +6192,17 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l } else { - yyb7 = r.CheckBreak() + yyb508 = r.CheckBreak() } - if yyb7 { + if yyb508 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj508-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6214,136 +6214,136 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym512 := z.EncBinary() + _ = yym512 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep513 := !z.EncBinary() + yy2arr513 := z.EncBasicHandle().StructToArray + var yyq513 [5]bool + _, _, _ = yysep513, yyq513, yy2arr513 + const yyr513 bool = false + yyq513[0] = x.Kind != "" + yyq513[1] = x.APIVersion != "" + yyq513[2] = true + yyq513[3] = true + yyq513[4] = true + var yynn513 int + if yyr513 || yy2arr513 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn513 = 0 + for _, b := range yyq513 { if b { - yynn2++ + yynn513++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn513) + yynn513 = 0 } - if yyr2 || yy2arr2 { + if yyr513 || yy2arr513 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq513[0] { + yym515 := z.EncBinary() + _ = yym515 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq513[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym516 := z.EncBinary() + _ = yym516 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr513 || yy2arr513 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq513[1] { + yym518 := z.EncBinary() + _ = yym518 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq513[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym519 := z.EncBinary() + _ = yym519 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr513 || yy2arr513 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq513[2] { + yy521 := &x.ObjectMeta + yy521.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq513[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy522 := &x.ObjectMeta + yy522.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr513 || yy2arr513 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq513[3] { + yy524 := &x.Spec + yy524.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq513[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy525 := &x.Spec + yy525.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr513 || yy2arr513 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq513[4] { + yy527 := &x.Status + yy527.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq513[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy528 := &x.Status + yy528.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr513 || yy2arr513 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6356,25 +6356,25 @@ func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym529 := z.DecBinary() + _ = yym529 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct530 := r.ContainerType() + if yyct530 == codecSelferValueTypeMap1234 { + yyl530 := r.ReadMapStart() + if yyl530 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl530, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct530 == codecSelferValueTypeArray1234 { + yyl530 := r.ReadArrayStart() + if yyl530 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl530, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6386,12 +6386,12 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys531Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys531Slc + var yyhl531 bool = l >= 0 + for yyj531 := 0; ; yyj531++ { + if yyhl531 { + if yyj531 >= l { break } } else { @@ -6400,47 +6400,47 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys531Slc = r.DecodeBytes(yys531Slc, true, true) + yys531 := string(yys531Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys531 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = DaemonSetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = DaemonSetStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv534 := &x.ObjectMeta + yyv534.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DaemonSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv535 := &x.Spec + yyv535.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DaemonSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv536 := &x.Status + yyv536.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys531) + } // end switch yys531 + } // end for yyj531 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6448,104 +6448,104 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj537 int + var yyb537 bool + var yyhl537 bool = l >= 0 + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l } else { - yyb9 = r.CheckBreak() + yyb537 = r.CheckBreak() } - if yyb9 { + if yyb537 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l } else { - yyb9 = r.CheckBreak() + yyb537 = r.CheckBreak() } - if yyb9 { + if yyb537 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = DaemonSetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l } else { - yyb9 = r.CheckBreak() + yyb537 = r.CheckBreak() } - if yyb9 { + if yyb537 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = DaemonSetStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv540 := &x.ObjectMeta + yyv540.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l } else { - yyb9 = r.CheckBreak() + yyb537 = r.CheckBreak() } - if yyb9 { + if yyb537 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DaemonSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv541 := &x.Spec + yyv541.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l } else { - yyb9 = r.CheckBreak() + yyb537 = r.CheckBreak() } - if yyb9 { + if yyb537 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DaemonSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv542 := &x.Status + yyv542.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l } else { - yyb9 = r.CheckBreak() + yyb537 = r.CheckBreak() } - if yyb9 { + if yyb537 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj537-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6557,139 +6557,139 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym543 := z.EncBinary() + _ = yym543 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep544 := !z.EncBinary() + yy2arr544 := z.EncBasicHandle().StructToArray + var yyq544 [4]bool + _, _, _ = yysep544, yyq544, yy2arr544 + const yyr544 bool = false + yyq544[0] = x.Kind != "" + yyq544[1] = x.APIVersion != "" + yyq544[2] = true + var yynn544 int + if yyr544 || yy2arr544 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn544 = 1 + for _, b := range yyq544 { if b { - yynn2++ + yynn544++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn544) + yynn544 = 0 } - if yyr2 || yy2arr2 { + if yyr544 || yy2arr544 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq544[0] { + yym546 := z.EncBinary() + _ = yym546 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq544[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym547 := z.EncBinary() + _ = yym547 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr544 || yy2arr544 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq544[1] { + yym549 := z.EncBinary() + _ = yym549 if false { } else { - h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq544[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym550 := z.EncBinary() + _ = yym550 if false { } else { - h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr544 || yy2arr544 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq544[2] { + yy552 := &x.ListMeta + yym553 := z.EncBinary() + _ = yym553 if false { + } else if z.HasExtensions() && z.EncExt(yy552) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy552) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq544[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy554 := &x.ListMeta + yym555 := z.EncBinary() + _ = yym555 if false { + } else if z.HasExtensions() && z.EncExt(yy554) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy554) } } } - if yyr2 || yy2arr2 { + if yyr544 || yy2arr544 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym557 := z.EncBinary() + _ = yym557 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym558 := z.EncBinary() + _ = yym558 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr544 || yy2arr544 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6702,25 +6702,25 @@ func (x *DaemonSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym559 := z.DecBinary() + _ = yym559 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct560 := r.ContainerType() + if yyct560 == codecSelferValueTypeMap1234 { + yyl560 := r.ReadMapStart() + if yyl560 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl560, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct560 == codecSelferValueTypeArray1234 { + yyl560 := r.ReadArrayStart() + if yyl560 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl560, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6732,12 +6732,12 @@ func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys561Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys561Slc + var yyhl561 bool = l >= 0 + for yyj561 := 0; ; yyj561++ { + if yyhl561 { + if yyj561 >= l { break } } else { @@ -6746,51 +6746,51 @@ func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys561Slc = r.DecodeBytes(yys561Slc, true, true) + yys561 := string(yys561Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys561 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv564 := &x.ListMeta + yym565 := z.DecBinary() + _ = yym565 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv564) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv564, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv566 := &x.Items + yym567 := z.DecBinary() + _ = yym567 if false { } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv6), d) + h.decSliceDaemonSet((*[]DaemonSet)(yyv566), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys561) + } // end switch yys561 + } // end for yyj561 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6798,98 +6798,98 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj568 int + var yyb568 bool + var yyhl568 bool = l >= 0 + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb10 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb10 { + if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb10 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb10 { + if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb10 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb10 { + if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv571 := &x.ListMeta + yym572 := z.DecBinary() + _ = yym572 + if false { + } else if z.HasExtensions() && z.DecExt(yyv571) { + } else { + z.DecFallback(yyv571, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb10 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb10 { + if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv573 := &x.Items + yym574 := z.DecBinary() + _ = yym574 + if false { + } else { + h.decSliceDaemonSet((*[]DaemonSet)(yyv573), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb10 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb10 { + if yyb568 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj568-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6901,139 +6901,139 @@ func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym575 := z.EncBinary() + _ = yym575 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep576 := !z.EncBinary() + yy2arr576 := z.EncBasicHandle().StructToArray + var yyq576 [4]bool + _, _, _ = yysep576, yyq576, yy2arr576 + const yyr576 bool = false + yyq576[0] = x.Kind != "" + yyq576[1] = x.APIVersion != "" + yyq576[2] = true + var yynn576 int + if yyr576 || yy2arr576 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn576 = 1 + for _, b := range yyq576 { if b { - yynn2++ + yynn576++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn576) + yynn576 = 0 } - if yyr2 || yy2arr2 { + if yyr576 || yy2arr576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq576[0] { + yym578 := z.EncBinary() + _ = yym578 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq576[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym579 := z.EncBinary() + _ = yym579 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr576 || yy2arr576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq576[1] { + yym581 := z.EncBinary() + _ = yym581 if false { } else { - h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq576[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym582 := z.EncBinary() + _ = yym582 if false { } else { - h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr576 || yy2arr576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq576[2] { + yy584 := &x.ListMeta + yym585 := z.EncBinary() + _ = yym585 if false { + } else if z.HasExtensions() && z.EncExt(yy584) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy584) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq576[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy586 := &x.ListMeta + yym587 := z.EncBinary() + _ = yym587 if false { + } else if z.HasExtensions() && z.EncExt(yy586) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy586) } } } - if yyr2 || yy2arr2 { + if yyr576 || yy2arr576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym589 := z.EncBinary() + _ = yym589 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym590 := z.EncBinary() + _ = yym590 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr576 || yy2arr576 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7046,25 +7046,25 @@ func (x *ThirdPartyResourceDataList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym591 := z.DecBinary() + _ = yym591 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct592 := r.ContainerType() + if yyct592 == codecSelferValueTypeMap1234 { + yyl592 := r.ReadMapStart() + if yyl592 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl592, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct592 == codecSelferValueTypeArray1234 { + yyl592 := r.ReadArrayStart() + if yyl592 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl592, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7076,12 +7076,12 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys593Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys593Slc + var yyhl593 bool = l >= 0 + for yyj593 := 0; ; yyj593++ { + if yyhl593 { + if yyj593 >= l { break } } else { @@ -7090,51 +7090,51 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys593Slc = r.DecodeBytes(yys593Slc, true, true) + yys593 := string(yys593Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys593 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv596 := &x.ListMeta + yym597 := z.DecBinary() + _ = yym597 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv596) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv596, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv598 := &x.Items + yym599 := z.DecBinary() + _ = yym599 if false { } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv6), d) + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv598), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys593) + } // end switch yys593 + } // end for yyj593 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7142,98 +7142,98 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj600 int + var yyb600 bool + var yyhl600 bool = l >= 0 + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb10 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb10 { + if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb10 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb10 { + if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb10 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb10 { + if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv603 := &x.ListMeta + yym604 := z.DecBinary() + _ = yym604 + if false { + } else if z.HasExtensions() && z.DecExt(yyv603) { + } else { + z.DecFallback(yyv603, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb10 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb10 { + if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv605 := &x.Items + yym606 := z.DecBinary() + _ = yym606 + if false { + } else { + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv605), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l } else { - yyb10 = r.CheckBreak() + yyb600 = r.CheckBreak() } - if yyb10 { + if yyb600 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj600-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7245,136 +7245,136 @@ func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym607 := z.EncBinary() + _ = yym607 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep608 := !z.EncBinary() + yy2arr608 := z.EncBasicHandle().StructToArray + var yyq608 [5]bool + _, _, _ = yysep608, yyq608, yy2arr608 + const yyr608 bool = false + yyq608[0] = x.Kind != "" + yyq608[1] = x.APIVersion != "" + yyq608[2] = true + yyq608[3] = true + yyq608[4] = true + var yynn608 int + if yyr608 || yy2arr608 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn608 = 0 + for _, b := range yyq608 { if b { - yynn2++ + yynn608++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn608) + yynn608 = 0 } - if yyr2 || yy2arr2 { + if yyr608 || yy2arr608 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq608[0] { + yym610 := z.EncBinary() + _ = yym610 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq608[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym611 := z.EncBinary() + _ = yym611 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr608 || yy2arr608 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq608[1] { + yym613 := z.EncBinary() + _ = yym613 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq608[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym614 := z.EncBinary() + _ = yym614 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr608 || yy2arr608 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq608[2] { + yy616 := &x.ObjectMeta + yy616.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq608[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy617 := &x.ObjectMeta + yy617.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr608 || yy2arr608 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq608[3] { + yy619 := &x.Spec + yy619.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq608[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy620 := &x.Spec + yy620.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr608 || yy2arr608 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq608[4] { + yy622 := &x.Status + yy622.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq608[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy623 := &x.Status + yy623.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr608 || yy2arr608 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7387,25 +7387,25 @@ func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym624 := z.DecBinary() + _ = yym624 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct625 := r.ContainerType() + if yyct625 == codecSelferValueTypeMap1234 { + yyl625 := r.ReadMapStart() + if yyl625 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl625, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct625 == codecSelferValueTypeArray1234 { + yyl625 := r.ReadArrayStart() + if yyl625 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl625, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7417,12 +7417,12 @@ func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys626Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys626Slc + var yyhl626 bool = l >= 0 + for yyj626 := 0; ; yyj626++ { + if yyhl626 { + if yyj626 >= l { break } } else { @@ -7431,47 +7431,47 @@ func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys626Slc = r.DecodeBytes(yys626Slc, true, true) + yys626 := string(yys626Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys626 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = IngressStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv629 := &x.ObjectMeta + yyv629.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = IngressSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv630 := &x.Spec + yyv630.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = IngressStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv631 := &x.Status + yyv631.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys626) + } // end switch yys626 + } // end for yyj626 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7479,104 +7479,104 @@ func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj632 int + var yyb632 bool + var yyhl632 bool = l >= 0 + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l } else { - yyb9 = r.CheckBreak() + yyb632 = r.CheckBreak() } - if yyb9 { + if yyb632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l } else { - yyb9 = r.CheckBreak() + yyb632 = r.CheckBreak() } - if yyb9 { + if yyb632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l } else { - yyb9 = r.CheckBreak() + yyb632 = r.CheckBreak() } - if yyb9 { + if yyb632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = IngressStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv635 := &x.ObjectMeta + yyv635.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l } else { - yyb9 = r.CheckBreak() + yyb632 = r.CheckBreak() } - if yyb9 { + if yyb632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = IngressSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv636 := &x.Spec + yyv636.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l } else { - yyb9 = r.CheckBreak() + yyb632 = r.CheckBreak() } - if yyb9 { + if yyb632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = IngressStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv637 := &x.Status + yyv637.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l } else { - yyb9 = r.CheckBreak() + yyb632 = r.CheckBreak() } - if yyb9 { + if yyb632 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj632-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7588,139 +7588,139 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym638 := z.EncBinary() + _ = yym638 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep639 := !z.EncBinary() + yy2arr639 := z.EncBasicHandle().StructToArray + var yyq639 [4]bool + _, _, _ = yysep639, yyq639, yy2arr639 + const yyr639 bool = false + yyq639[0] = x.Kind != "" + yyq639[1] = x.APIVersion != "" + yyq639[2] = true + var yynn639 int + if yyr639 || yy2arr639 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn639 = 1 + for _, b := range yyq639 { if b { - yynn2++ + yynn639++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn639) + yynn639 = 0 } - if yyr2 || yy2arr2 { + if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq639[0] { + yym641 := z.EncBinary() + _ = yym641 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq639[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym642 := z.EncBinary() + _ = yym642 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq639[1] { + yym644 := z.EncBinary() + _ = yym644 if false { } else { - h.encSliceIngress(([]Ingress)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq639[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym645 := z.EncBinary() + _ = yym645 if false { } else { - h.encSliceIngress(([]Ingress)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq639[2] { + yy647 := &x.ListMeta + yym648 := z.EncBinary() + _ = yym648 if false { + } else if z.HasExtensions() && z.EncExt(yy647) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy647) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq639[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy649 := &x.ListMeta + yym650 := z.EncBinary() + _ = yym650 if false { + } else if z.HasExtensions() && z.EncExt(yy649) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy649) } } } - if yyr2 || yy2arr2 { + if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym652 := z.EncBinary() + _ = yym652 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceIngress(([]Ingress)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym653 := z.EncBinary() + _ = yym653 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceIngress(([]Ingress)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7733,25 +7733,25 @@ func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym654 := z.DecBinary() + _ = yym654 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct655 := r.ContainerType() + if yyct655 == codecSelferValueTypeMap1234 { + yyl655 := r.ReadMapStart() + if yyl655 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl655, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct655 == codecSelferValueTypeArray1234 { + yyl655 := r.ReadArrayStart() + if yyl655 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl655, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7763,12 +7763,12 @@ func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys656Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys656Slc + var yyhl656 bool = l >= 0 + for yyj656 := 0; ; yyj656++ { + if yyhl656 { + if yyj656 >= l { break } } else { @@ -7777,51 +7777,51 @@ func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys656Slc = r.DecodeBytes(yys656Slc, true, true) + yys656 := string(yys656Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys656 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv659 := &x.ListMeta + yym660 := z.DecBinary() + _ = yym660 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv659) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv659, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv661 := &x.Items + yym662 := z.DecBinary() + _ = yym662 if false { } else { - h.decSliceIngress((*[]Ingress)(yyv6), d) + h.decSliceIngress((*[]Ingress)(yyv661), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys656) + } // end switch yys656 + } // end for yyj656 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7829,98 +7829,98 @@ func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj663 int + var yyb663 bool + var yyhl663 bool = l >= 0 + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l } else { - yyb10 = r.CheckBreak() + yyb663 = r.CheckBreak() } - if yyb10 { + if yyb663 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l } else { - yyb10 = r.CheckBreak() + yyb663 = r.CheckBreak() } - if yyb10 { + if yyb663 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceIngress((*[]Ingress)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l } else { - yyb10 = r.CheckBreak() + yyb663 = r.CheckBreak() } - if yyb10 { + if yyb663 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv666 := &x.ListMeta + yym667 := z.DecBinary() + _ = yym667 + if false { + } else if z.HasExtensions() && z.DecExt(yyv666) { + } else { + z.DecFallback(yyv666, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l } else { - yyb10 = r.CheckBreak() + yyb663 = r.CheckBreak() } - if yyb10 { + if yyb663 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv668 := &x.Items + yym669 := z.DecBinary() + _ = yym669 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv668), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l } else { - yyb10 = r.CheckBreak() + yyb663 = r.CheckBreak() } - if yyb10 { + if yyb663 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj663-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7932,35 +7932,35 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym670 := z.EncBinary() + _ = yym670 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Backend != nil - yyq2[1] = len(x.TLS) != 0 - yyq2[2] = len(x.Rules) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep671 := !z.EncBinary() + yy2arr671 := z.EncBasicHandle().StructToArray + var yyq671 [3]bool + _, _, _ = yysep671, yyq671, yy2arr671 + const yyr671 bool = false + yyq671[0] = x.Backend != nil + yyq671[1] = len(x.TLS) != 0 + yyq671[2] = len(x.Rules) != 0 + var yynn671 int + if yyr671 || yy2arr671 { r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn671 = 0 + for _, b := range yyq671 { if b { - yynn2++ + yynn671++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn671) + yynn671 = 0 } - if yyr2 || yy2arr2 { + if yyr671 || yy2arr671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq671[0] { if x.Backend == nil { r.EncodeNil() } else { @@ -7970,7 +7970,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq671[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -7981,14 +7981,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr671 || yy2arr671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq671[1] { if x.TLS == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym674 := z.EncBinary() + _ = yym674 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -7998,15 +7998,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq671[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tls")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TLS == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym675 := z.EncBinary() + _ = yym675 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -8014,14 +8014,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr671 || yy2arr671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq671[2] { if x.Rules == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym677 := z.EncBinary() + _ = yym677 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -8031,15 +8031,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq671[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rules")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Rules == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym678 := z.EncBinary() + _ = yym678 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -8047,7 +8047,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr671 || yy2arr671 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8060,25 +8060,25 @@ func (x *IngressSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym679 := z.DecBinary() + _ = yym679 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct680 := r.ContainerType() + if yyct680 == codecSelferValueTypeMap1234 { + yyl680 := r.ReadMapStart() + if yyl680 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl680, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct680 == codecSelferValueTypeArray1234 { + yyl680 := r.ReadArrayStart() + if yyl680 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl680, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8090,12 +8090,12 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys681Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys681Slc + var yyhl681 bool = l >= 0 + for yyj681 := 0; ; yyj681++ { + if yyhl681 { + if yyj681 >= l { break } } else { @@ -8104,10 +8104,10 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys681Slc = r.DecodeBytes(yys681Slc, true, true) + yys681 := string(yys681Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys681 { case "backend": if r.TryDecodeAsNil() { if x.Backend != nil { @@ -8123,30 +8123,30 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv5 := &x.TLS - yym6 := z.DecBinary() - _ = yym6 + yyv683 := &x.TLS + yym684 := z.DecBinary() + _ = yym684 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv5), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv683), d) } } case "rules": if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv7 := &x.Rules - yym8 := z.DecBinary() - _ = yym8 + yyv685 := &x.Rules + yym686 := z.DecBinary() + _ = yym686 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv7), d) + h.decSliceIngressRule((*[]IngressRule)(yyv685), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys681) + } // end switch yys681 + } // end for yyj681 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8154,16 +8154,16 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj687 int + var yyb687 bool + var yyhl687 bool = l >= 0 + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l } else { - yyb9 = r.CheckBreak() + yyb687 = r.CheckBreak() } - if yyb9 { + if yyb687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8178,13 +8178,13 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Backend.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l } else { - yyb9 = r.CheckBreak() + yyb687 = r.CheckBreak() } - if yyb9 { + if yyb687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8192,21 +8192,21 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv11 := &x.TLS - yym12 := z.DecBinary() - _ = yym12 + yyv689 := &x.TLS + yym690 := z.DecBinary() + _ = yym690 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv11), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv689), d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l } else { - yyb9 = r.CheckBreak() + yyb687 = r.CheckBreak() } - if yyb9 { + if yyb687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8214,26 +8214,26 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv13 := &x.Rules - yym14 := z.DecBinary() - _ = yym14 + yyv691 := &x.Rules + yym692 := z.DecBinary() + _ = yym692 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv13), d) + h.decSliceIngressRule((*[]IngressRule)(yyv691), d) } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l } else { - yyb9 = r.CheckBreak() + yyb687 = r.CheckBreak() } - if yyb9 { + if yyb687 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj687-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8245,39 +8245,39 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym693 := z.EncBinary() + _ = yym693 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Hosts) != 0 - yyq2[1] = x.SecretName != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep694 := !z.EncBinary() + yy2arr694 := z.EncBasicHandle().StructToArray + var yyq694 [2]bool + _, _, _ = yysep694, yyq694, yy2arr694 + const yyr694 bool = false + yyq694[0] = len(x.Hosts) != 0 + yyq694[1] = x.SecretName != "" + var yynn694 int + if yyr694 || yy2arr694 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn694 = 0 + for _, b := range yyq694 { if b { - yynn2++ + yynn694++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn694) + yynn694 = 0 } - if yyr2 || yy2arr2 { + if yyr694 || yy2arr694 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq694[0] { if x.Hosts == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym696 := z.EncBinary() + _ = yym696 if false { } else { z.F.EncSliceStringV(x.Hosts, false, e) @@ -8287,15 +8287,15 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq694[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hosts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Hosts == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym697 := z.EncBinary() + _ = yym697 if false { } else { z.F.EncSliceStringV(x.Hosts, false, e) @@ -8303,11 +8303,11 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr694 || yy2arr694 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq694[1] { + yym699 := z.EncBinary() + _ = yym699 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -8316,19 +8316,19 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq694[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym700 := z.EncBinary() + _ = yym700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr2 || yy2arr2 { + if yyr694 || yy2arr694 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8341,25 +8341,25 @@ func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym701 := z.DecBinary() + _ = yym701 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct702 := r.ContainerType() + if yyct702 == codecSelferValueTypeMap1234 { + yyl702 := r.ReadMapStart() + if yyl702 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl702, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct702 == codecSelferValueTypeArray1234 { + yyl702 := r.ReadArrayStart() + if yyl702 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl702, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8371,12 +8371,12 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys703Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys703Slc + var yyhl703 bool = l >= 0 + for yyj703 := 0; ; yyj703++ { + if yyhl703 { + if yyj703 >= l { break } } else { @@ -8385,20 +8385,20 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys703Slc = r.DecodeBytes(yys703Slc, true, true) + yys703 := string(yys703Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys703 { case "hosts": if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv4 := &x.Hosts - yym5 := z.DecBinary() - _ = yym5 + yyv704 := &x.Hosts + yym705 := z.DecBinary() + _ = yym705 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + z.F.DecSliceStringX(yyv704, false, d) } } case "secretName": @@ -8408,9 +8408,9 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys703) + } // end switch yys703 + } // end for yyj703 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8418,16 +8418,16 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj707 int + var yyb707 bool + var yyhl707 bool = l >= 0 + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb7 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb7 { + if yyb707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8435,21 +8435,21 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv8 := &x.Hosts - yym9 := z.DecBinary() - _ = yym9 + yyv708 := &x.Hosts + yym709 := z.DecBinary() + _ = yym709 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + z.F.DecSliceStringX(yyv708, false, d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb7 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb7 { + if yyb707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8460,17 +8460,17 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb7 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb7 { + if yyb707 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj707-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8482,48 +8482,48 @@ func (x *IngressStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym711 := z.EncBinary() + _ = yym711 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep712 := !z.EncBinary() + yy2arr712 := z.EncBasicHandle().StructToArray + var yyq712 [1]bool + _, _, _ = yysep712, yyq712, yy2arr712 + const yyr712 bool = false + yyq712[0] = true + var yynn712 int + if yyr712 || yy2arr712 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn712 = 0 + for _, b := range yyq712 { if b { - yynn2++ + yynn712++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn712) + yynn712 = 0 } - if yyr2 || yy2arr2 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.LoadBalancer - yy4.CodecEncodeSelf(e) + if yyq712[0] { + yy714 := &x.LoadBalancer + yy714.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq712[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.LoadBalancer - yy6.CodecEncodeSelf(e) + yy715 := &x.LoadBalancer + yy715.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8536,25 +8536,25 @@ func (x *IngressStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym716 := z.DecBinary() + _ = yym716 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct717 := r.ContainerType() + if yyct717 == codecSelferValueTypeMap1234 { + yyl717 := r.ReadMapStart() + if yyl717 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl717, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct717 == codecSelferValueTypeArray1234 { + yyl717 := r.ReadArrayStart() + if yyl717 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl717, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8566,12 +8566,12 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys718Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys718Slc + var yyhl718 bool = l >= 0 + for yyj718 := 0; ; yyj718++ { + if yyhl718 { + if yyj718 >= l { break } } else { @@ -8580,21 +8580,21 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys718Slc = r.DecodeBytes(yys718Slc, true, true) + yys718 := string(yys718Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys718 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_api.LoadBalancerStatus{} } else { - yyv4 := &x.LoadBalancer - yyv4.CodecDecodeSelf(d) + yyv719 := &x.LoadBalancer + yyv719.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys718) + } // end switch yys718 + } // end for yyj718 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8602,16 +8602,16 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj720 int + var yyb720 bool + var yyhl720 bool = l >= 0 + yyj720++ + if yyhl720 { + yyb720 = yyj720 > l } else { - yyb5 = r.CheckBreak() + yyb720 = r.CheckBreak() } - if yyb5 { + if yyb720 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8619,21 +8619,21 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_api.LoadBalancerStatus{} } else { - yyv6 := &x.LoadBalancer - yyv6.CodecDecodeSelf(d) + yyv721 := &x.LoadBalancer + yyv721.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj720++ + if yyhl720 { + yyb720 = yyj720 > l } else { - yyb5 = r.CheckBreak() + yyb720 = r.CheckBreak() } - if yyb5 { + if yyb720 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj720-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8645,36 +8645,36 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym722 := z.EncBinary() + _ = yym722 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Host != "" - yyq2[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep723 := !z.EncBinary() + yy2arr723 := z.EncBasicHandle().StructToArray + var yyq723 [2]bool + _, _, _ = yysep723, yyq723, yy2arr723 + const yyr723 bool = false + yyq723[0] = x.Host != "" + yyq723[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil + var yynn723 int + if yyr723 || yy2arr723 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn723 = 0 + for _, b := range yyq723 { if b { - yynn2++ + yynn723++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn723) + yynn723 = 0 } - if yyr2 || yy2arr2 { + if yyr723 || yy2arr723 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq723[0] { + yym725 := z.EncBinary() + _ = yym725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -8683,30 +8683,30 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq723[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym726 := z.EncBinary() + _ = yym726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - var yyn6 bool + var yyn727 bool if x.IngressRuleValue.HTTP == nil { - yyn6 = true - goto LABEL6 + yyn727 = true + goto LABEL727 } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { + LABEL727: + if yyr723 || yy2arr723 { + if yyn727 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq723[1] { if x.HTTP == nil { r.EncodeNil() } else { @@ -8717,11 +8717,11 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[1] { + if yyq723[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn6 { + if yyn727 { r.EncodeNil() } else { if x.HTTP == nil { @@ -8732,7 +8732,7 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr723 || yy2arr723 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8745,25 +8745,25 @@ func (x *IngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym728 := z.DecBinary() + _ = yym728 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct729 := r.ContainerType() + if yyct729 == codecSelferValueTypeMap1234 { + yyl729 := r.ReadMapStart() + if yyl729 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl729, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct729 == codecSelferValueTypeArray1234 { + yyl729 := r.ReadArrayStart() + if yyl729 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl729, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8775,12 +8775,12 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys730Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys730Slc + var yyhl730 bool = l >= 0 + for yyj730 := 0; ; yyj730++ { + if yyhl730 { + if yyj730 >= l { break } } else { @@ -8789,10 +8789,10 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys730Slc = r.DecodeBytes(yys730Slc, true, true) + yys730 := string(yys730Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys730 { case "host": if r.TryDecodeAsNil() { x.Host = "" @@ -8814,9 +8814,9 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys730) + } // end switch yys730 + } // end for yyj730 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8824,16 +8824,16 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj733 int + var yyb733 bool + var yyhl733 bool = l >= 0 + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb6 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb6 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8846,13 +8846,13 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.IngressRuleValue.HTTP == nil { x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb6 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb6 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8868,17 +8868,17 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb6 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb6 { + if yyb733 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj733-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8890,33 +8890,33 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym736 := z.EncBinary() + _ = yym736 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.HTTP != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep737 := !z.EncBinary() + yy2arr737 := z.EncBasicHandle().StructToArray + var yyq737 [1]bool + _, _, _ = yysep737, yyq737, yy2arr737 + const yyr737 bool = false + yyq737[0] = x.HTTP != nil + var yynn737 int + if yyr737 || yy2arr737 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn737 = 0 + for _, b := range yyq737 { if b { - yynn2++ + yynn737++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn737) + yynn737 = 0 } - if yyr2 || yy2arr2 { + if yyr737 || yy2arr737 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq737[0] { if x.HTTP == nil { r.EncodeNil() } else { @@ -8926,7 +8926,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq737[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -8937,7 +8937,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr737 || yy2arr737 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8950,25 +8950,25 @@ func (x *IngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym739 := z.DecBinary() + _ = yym739 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct740 := r.ContainerType() + if yyct740 == codecSelferValueTypeMap1234 { + yyl740 := r.ReadMapStart() + if yyl740 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl740, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct740 == codecSelferValueTypeArray1234 { + yyl740 := r.ReadArrayStart() + if yyl740 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl740, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8980,12 +8980,12 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys741Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys741Slc + var yyhl741 bool = l >= 0 + for yyj741 := 0; ; yyj741++ { + if yyhl741 { + if yyj741 >= l { break } } else { @@ -8994,10 +8994,10 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys741Slc = r.DecodeBytes(yys741Slc, true, true) + yys741 := string(yys741Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys741 { case "http": if r.TryDecodeAsNil() { if x.HTTP != nil { @@ -9010,9 +9010,9 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys741) + } // end switch yys741 + } // end for yyj741 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9020,16 +9020,16 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj743 int + var yyb743 bool + var yyhl743 bool = l >= 0 + yyj743++ + if yyhl743 { + yyb743 = yyj743 > l } else { - yyb5 = r.CheckBreak() + yyb743 = r.CheckBreak() } - if yyb5 { + if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9045,17 +9045,17 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.HTTP.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj743++ + if yyhl743 { + yyb743 = yyj743 > l } else { - yyb5 = r.CheckBreak() + yyb743 = r.CheckBreak() } - if yyb5 { + if yyb743 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj743-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9067,36 +9067,36 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym745 := z.EncBinary() + _ = yym745 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep746 := !z.EncBinary() + yy2arr746 := z.EncBasicHandle().StructToArray + var yyq746 [1]bool + _, _, _ = yysep746, yyq746, yy2arr746 + const yyr746 bool = false + var yynn746 int + if yyr746 || yy2arr746 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn746 = 1 + for _, b := range yyq746 { if b { - yynn2++ + yynn746++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn746) + yynn746 = 0 } - if yyr2 || yy2arr2 { + if yyr746 || yy2arr746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Paths == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym748 := z.EncBinary() + _ = yym748 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) @@ -9109,15 +9109,15 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x.Paths == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym749 := z.EncBinary() + _ = yym749 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) } } } - if yyr2 || yy2arr2 { + if yyr746 || yy2arr746 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9130,25 +9130,25 @@ func (x *HTTPIngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym750 := z.DecBinary() + _ = yym750 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct751 := r.ContainerType() + if yyct751 == codecSelferValueTypeMap1234 { + yyl751 := r.ReadMapStart() + if yyl751 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl751, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct751 == codecSelferValueTypeArray1234 { + yyl751 := r.ReadArrayStart() + if yyl751 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl751, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9160,12 +9160,12 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys752Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys752Slc + var yyhl752 bool = l >= 0 + for yyj752 := 0; ; yyj752++ { + if yyhl752 { + if yyj752 >= l { break } } else { @@ -9174,26 +9174,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys752Slc = r.DecodeBytes(yys752Slc, true, true) + yys752 := string(yys752Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys752 { case "paths": if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv4 := &x.Paths - yym5 := z.DecBinary() - _ = yym5 + yyv753 := &x.Paths + yym754 := z.DecBinary() + _ = yym754 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv4), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv753), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys752) + } // end switch yys752 + } // end for yyj752 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9201,16 +9201,16 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj755 int + var yyb755 bool + var yyhl755 bool = l >= 0 + yyj755++ + if yyhl755 { + yyb755 = yyj755 > l } else { - yyb6 = r.CheckBreak() + yyb755 = r.CheckBreak() } - if yyb6 { + if yyb755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9218,26 +9218,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv7 := &x.Paths - yym8 := z.DecBinary() - _ = yym8 + yyv756 := &x.Paths + yym757 := z.DecBinary() + _ = yym757 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv7), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv756), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj755++ + if yyhl755 { + yyb755 = yyj755 > l } else { - yyb6 = r.CheckBreak() + yyb755 = r.CheckBreak() } - if yyb6 { + if yyb755 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj755-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9249,35 +9249,35 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym758 := z.EncBinary() + _ = yym758 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Path != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep759 := !z.EncBinary() + yy2arr759 := z.EncBasicHandle().StructToArray + var yyq759 [2]bool + _, _, _ = yysep759, yyq759, yy2arr759 + const yyr759 bool = false + yyq759[0] = x.Path != "" + var yynn759 int + if yyr759 || yy2arr759 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn759 = 1 + for _, b := range yyq759 { if b { - yynn2++ + yynn759++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn759) + yynn759 = 0 } - if yyr2 || yy2arr2 { + if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq759[0] { + yym761 := z.EncBinary() + _ = yym761 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -9286,30 +9286,30 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq759[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym762 := z.EncBinary() + _ = yym762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Backend - yy7.CodecEncodeSelf(e) + yy764 := &x.Backend + yy764.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Backend - yy9.CodecEncodeSelf(e) + yy765 := &x.Backend + yy765.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9322,25 +9322,25 @@ func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym766 := z.DecBinary() + _ = yym766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct767 := r.ContainerType() + if yyct767 == codecSelferValueTypeMap1234 { + yyl767 := r.ReadMapStart() + if yyl767 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl767, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct767 == codecSelferValueTypeArray1234 { + yyl767 := r.ReadArrayStart() + if yyl767 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl767, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9352,12 +9352,12 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys768Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys768Slc + var yyhl768 bool = l >= 0 + for yyj768 := 0; ; yyj768++ { + if yyhl768 { + if yyj768 >= l { break } } else { @@ -9366,10 +9366,10 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys768Slc = r.DecodeBytes(yys768Slc, true, true) + yys768 := string(yys768Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys768 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -9380,13 +9380,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv5 := &x.Backend - yyv5.CodecDecodeSelf(d) + yyv770 := &x.Backend + yyv770.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys768) + } // end switch yys768 + } // end for yyj768 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9394,16 +9394,16 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj771 int + var yyb771 bool + var yyhl771 bool = l >= 0 + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb6 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb6 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9413,13 +9413,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb6 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb6 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9427,21 +9427,21 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv8 := &x.Backend - yyv8.CodecDecodeSelf(d) + yyv773 := &x.Backend + yyv773.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb6 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb6 { + if yyb771 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj771-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9453,33 +9453,33 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym774 := z.EncBinary() + _ = yym774 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep775 := !z.EncBinary() + yy2arr775 := z.EncBasicHandle().StructToArray + var yyq775 [2]bool + _, _, _ = yysep775, yyq775, yy2arr775 + const yyr775 bool = false + var yynn775 int + if yyr775 || yy2arr775 { r.EncodeArrayStart(2) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn775 = 2 + for _, b := range yyq775 { if b { - yynn2++ + yynn775++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn775) + yynn775 = 0 } - if yyr2 || yy2arr2 { + if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym777 := z.EncBinary() + _ = yym777 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -9488,41 +9488,41 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym778 := z.EncBinary() + _ = yym778 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr2 || yy2arr2 { + if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.ServicePort - yym8 := z.EncBinary() - _ = yym8 + yy780 := &x.ServicePort + yym781 := z.EncBinary() + _ = yym781 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy780) { + } else if !yym781 && z.IsJSONHandle() { + z.EncJSONMarshal(yy780) } else { - z.EncFallback(yy7) + z.EncFallback(yy780) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("servicePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.ServicePort - yym10 := z.EncBinary() - _ = yym10 + yy782 := &x.ServicePort + yym783 := z.EncBinary() + _ = yym783 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy782) { + } else if !yym783 && z.IsJSONHandle() { + z.EncJSONMarshal(yy782) } else { - z.EncFallback(yy9) + z.EncFallback(yy782) } } - if yyr2 || yy2arr2 { + if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9535,25 +9535,25 @@ func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym784 := z.DecBinary() + _ = yym784 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct785 := r.ContainerType() + if yyct785 == codecSelferValueTypeMap1234 { + yyl785 := r.ReadMapStart() + if yyl785 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl785, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct785 == codecSelferValueTypeArray1234 { + yyl785 := r.ReadArrayStart() + if yyl785 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl785, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9565,12 +9565,12 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys786Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys786Slc + var yyhl786 bool = l >= 0 + for yyj786 := 0; ; yyj786++ { + if yyhl786 { + if yyj786 >= l { break } } else { @@ -9579,10 +9579,10 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys786Slc = r.DecodeBytes(yys786Slc, true, true) + yys786 := string(yys786Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys786 { case "serviceName": if r.TryDecodeAsNil() { x.ServiceName = "" @@ -9593,21 +9593,21 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv5 := &x.ServicePort - yym6 := z.DecBinary() - _ = yym6 + yyv788 := &x.ServicePort + yym789 := z.DecBinary() + _ = yym789 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv788) { + } else if !yym789 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv788) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv788, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys786) + } // end switch yys786 + } // end for yyj786 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9615,16 +9615,16 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj790 int + var yyb790 bool + var yyhl790 bool = l >= 0 + yyj790++ + if yyhl790 { + yyb790 = yyj790 > l } else { - yyb7 = r.CheckBreak() + yyb790 = r.CheckBreak() } - if yyb7 { + if yyb790 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9634,13 +9634,13 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceName = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj790++ + if yyhl790 { + yyb790 = yyj790 > l } else { - yyb7 = r.CheckBreak() + yyb790 = r.CheckBreak() } - if yyb7 { + if yyb790 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9648,29 +9648,29 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv9 := &x.ServicePort - yym10 := z.DecBinary() - _ = yym10 + yyv792 := &x.ServicePort + yym793 := z.DecBinary() + _ = yym793 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv792) { + } else if !yym793 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv792) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv792, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj790++ + if yyhl790 { + yyb790 = yyj790 > l } else { - yyb7 = r.CheckBreak() + yyb790 = r.CheckBreak() } - if yyb7 { + if yyb790 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj790-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9682,136 +9682,136 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym794 := z.EncBinary() + _ = yym794 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep795 := !z.EncBinary() + yy2arr795 := z.EncBasicHandle().StructToArray + var yyq795 [5]bool + _, _, _ = yysep795, yyq795, yy2arr795 + const yyr795 bool = false + yyq795[0] = x.Kind != "" + yyq795[1] = x.APIVersion != "" + yyq795[2] = true + yyq795[3] = true + yyq795[4] = true + var yynn795 int + if yyr795 || yy2arr795 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn795 = 0 + for _, b := range yyq795 { if b { - yynn2++ + yynn795++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn795) + yynn795 = 0 } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq795[0] { + yym797 := z.EncBinary() + _ = yym797 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq795[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym798 := z.EncBinary() + _ = yym798 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq795[1] { + yym800 := z.EncBinary() + _ = yym800 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq795[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym801 := z.EncBinary() + _ = yym801 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq795[2] { + yy803 := &x.ObjectMeta + yy803.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq795[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy804 := &x.ObjectMeta + yy804.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq795[3] { + yy806 := &x.Spec + yy806.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq795[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy807 := &x.Spec + yy807.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq795[4] { + yy809 := &x.Status + yy809.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq795[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy810 := &x.Status + yy810.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9824,25 +9824,25 @@ func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym811 := z.DecBinary() + _ = yym811 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct812 := r.ContainerType() + if yyct812 == codecSelferValueTypeMap1234 { + yyl812 := r.ReadMapStart() + if yyl812 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl812, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct812 == codecSelferValueTypeArray1234 { + yyl812 := r.ReadArrayStart() + if yyl812 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl812, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9854,12 +9854,12 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys813Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys813Slc + var yyhl813 bool = l >= 0 + for yyj813 := 0; ; yyj813++ { + if yyhl813 { + if yyj813 >= l { break } } else { @@ -9868,47 +9868,47 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys813Slc = r.DecodeBytes(yys813Slc, true, true) + yys813 := string(yys813Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys813 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ReplicaSetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ReplicaSetStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv816 := &x.ObjectMeta + yyv816.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicaSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv817 := &x.Spec + yyv817.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicaSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv818 := &x.Status + yyv818.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys813) + } // end switch yys813 + } // end for yyj813 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9916,104 +9916,104 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj819 int + var yyb819 bool + var yyhl819 bool = l >= 0 + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l } else { - yyb9 = r.CheckBreak() + yyb819 = r.CheckBreak() } - if yyb9 { + if yyb819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l } else { - yyb9 = r.CheckBreak() + yyb819 = r.CheckBreak() } - if yyb9 { + if yyb819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ReplicaSetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l } else { - yyb9 = r.CheckBreak() + yyb819 = r.CheckBreak() } - if yyb9 { + if yyb819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ReplicaSetStatus{} + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv822 := &x.ObjectMeta + yyv822.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l } else { - yyb9 = r.CheckBreak() + yyb819 = r.CheckBreak() } - if yyb9 { + if yyb819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicaSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv823 := &x.Spec + yyv823.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l } else { - yyb9 = r.CheckBreak() + yyb819 = r.CheckBreak() } - if yyb9 { + if yyb819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicaSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv824 := &x.Status + yyv824.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l } else { - yyb9 = r.CheckBreak() + yyb819 = r.CheckBreak() } - if yyb9 { + if yyb819 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj819-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10025,139 +10025,139 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym825 := z.EncBinary() + _ = yym825 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep826 := !z.EncBinary() + yy2arr826 := z.EncBasicHandle().StructToArray + var yyq826 [4]bool + _, _, _ = yysep826, yyq826, yy2arr826 + const yyr826 bool = false + yyq826[0] = x.Kind != "" + yyq826[1] = x.APIVersion != "" + yyq826[2] = true + var yynn826 int + if yyr826 || yy2arr826 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn826 = 1 + for _, b := range yyq826 { if b { - yynn2++ + yynn826++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn826) + yynn826 = 0 } - if yyr2 || yy2arr2 { + if yyr826 || yy2arr826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq826[0] { + yym828 := z.EncBinary() + _ = yym828 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq826[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym829 := z.EncBinary() + _ = yym829 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr826 || yy2arr826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq826[1] { + yym831 := z.EncBinary() + _ = yym831 if false { } else { - h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq826[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym832 := z.EncBinary() + _ = yym832 if false { } else { - h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr826 || yy2arr826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq826[2] { + yy834 := &x.ListMeta + yym835 := z.EncBinary() + _ = yym835 if false { + } else if z.HasExtensions() && z.EncExt(yy834) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy834) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq826[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy836 := &x.ListMeta + yym837 := z.EncBinary() + _ = yym837 if false { + } else if z.HasExtensions() && z.EncExt(yy836) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy836) } } } - if yyr2 || yy2arr2 { + if yyr826 || yy2arr826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym839 := z.EncBinary() + _ = yym839 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym840 := z.EncBinary() + _ = yym840 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr826 || yy2arr826 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10170,25 +10170,25 @@ func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym841 := z.DecBinary() + _ = yym841 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct842 := r.ContainerType() + if yyct842 == codecSelferValueTypeMap1234 { + yyl842 := r.ReadMapStart() + if yyl842 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl842, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct842 == codecSelferValueTypeArray1234 { + yyl842 := r.ReadArrayStart() + if yyl842 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl842, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10200,12 +10200,12 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys843Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys843Slc + var yyhl843 bool = l >= 0 + for yyj843 := 0; ; yyj843++ { + if yyhl843 { + if yyj843 >= l { break } } else { @@ -10214,51 +10214,51 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys843Slc = r.DecodeBytes(yys843Slc, true, true) + yys843 := string(yys843Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys843 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv846 := &x.ListMeta + yym847 := z.DecBinary() + _ = yym847 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv846) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv846, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv848 := &x.Items + yym849 := z.DecBinary() + _ = yym849 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv6), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv848), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys843) + } // end switch yys843 + } // end for yyj843 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10266,98 +10266,98 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj850 int + var yyb850 bool + var yyhl850 bool = l >= 0 + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l } else { - yyb10 = r.CheckBreak() + yyb850 = r.CheckBreak() } - if yyb10 { + if yyb850 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l } else { - yyb10 = r.CheckBreak() + yyb850 = r.CheckBreak() } - if yyb10 { + if yyb850 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l } else { - yyb10 = r.CheckBreak() + yyb850 = r.CheckBreak() } - if yyb10 { + if yyb850 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv853 := &x.ListMeta + yym854 := z.DecBinary() + _ = yym854 + if false { + } else if z.HasExtensions() && z.DecExt(yyv853) { + } else { + z.DecFallback(yyv853, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l } else { - yyb10 = r.CheckBreak() + yyb850 = r.CheckBreak() } - if yyb10 { + if yyb850 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv855 := &x.Items + yym856 := z.DecBinary() + _ = yym856 + if false { + } else { + h.decSliceReplicaSet((*[]ReplicaSet)(yyv855), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l } else { - yyb10 = r.CheckBreak() + yyb850 = r.CheckBreak() } - if yyb10 { + if yyb850 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj850-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10369,35 +10369,35 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym857 := z.EncBinary() + _ = yym857 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.Selector != nil - yyq2[2] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep858 := !z.EncBinary() + yy2arr858 := z.EncBasicHandle().StructToArray + var yyq858 [3]bool + _, _, _ = yysep858, yyq858, yy2arr858 + const yyr858 bool = false + yyq858[1] = x.Selector != nil + yyq858[2] = true + var yynn858 int + if yyr858 || yy2arr858 { r.EncodeArrayStart(3) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn858 = 1 + for _, b := range yyq858 { if b { - yynn2++ + yynn858++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn858) + yynn858 = 0 } - if yyr2 || yy2arr2 { + if yyr858 || yy2arr858 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym860 := z.EncBinary() + _ = yym860 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -10406,21 +10406,21 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym861 := z.EncBinary() + _ = yym861 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr858 || yy2arr858 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq858[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym863 := z.EncBinary() + _ = yym863 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -10431,15 +10431,15 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq858[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym864 := z.EncBinary() + _ = yym864 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -10448,24 +10448,24 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr858 || yy2arr858 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.Template - yy10.CodecEncodeSelf(e) + if yyq858[2] { + yy866 := &x.Template + yy866.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq858[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.Template - yy12.CodecEncodeSelf(e) + yy867 := &x.Template + yy867.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr858 || yy2arr858 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10478,25 +10478,25 @@ func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym868 := z.DecBinary() + _ = yym868 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct869 := r.ContainerType() + if yyct869 == codecSelferValueTypeMap1234 { + yyl869 := r.ReadMapStart() + if yyl869 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl869, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct869 == codecSelferValueTypeArray1234 { + yyl869 := r.ReadArrayStart() + if yyl869 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl869, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10508,12 +10508,12 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys870Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys870Slc + var yyhl870 bool = l >= 0 + for yyj870 := 0; ; yyj870++ { + if yyhl870 { + if yyj870 >= l { break } } else { @@ -10522,10 +10522,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys870Slc = r.DecodeBytes(yys870Slc, true, true) + yys870 := string(yys870Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys870 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -10541,8 +10541,8 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym6 := z.DecBinary() - _ = yym6 + yym873 := z.DecBinary() + _ = yym873 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -10553,13 +10553,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv7 := &x.Template - yyv7.CodecDecodeSelf(d) + yyv874 := &x.Template + yyv874.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys870) + } // end switch yys870 + } // end for yyj870 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10567,16 +10567,16 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj875 int + var yyb875 bool + var yyhl875 bool = l >= 0 + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb8 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb8 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10586,13 +10586,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb8 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb8 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10605,21 +10605,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym11 := z.DecBinary() - _ = yym11 + yym878 := z.DecBinary() + _ = yym878 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb8 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb8 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10627,21 +10627,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv12 := &x.Template - yyv12.CodecDecodeSelf(d) + yyv879 := &x.Template + yyv879.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb8 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb8 { + if yyb875 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj875-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10653,35 +10653,36 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym880 := z.EncBinary() + _ = yym880 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FullyLabeledReplicas != 0 - yyq2[2] = x.ObservedGeneration != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) + yysep881 := !z.EncBinary() + yy2arr881 := z.EncBasicHandle().StructToArray + var yyq881 [4]bool + _, _, _ = yysep881, yyq881, yy2arr881 + const yyr881 bool = false + yyq881[1] = x.FullyLabeledReplicas != 0 + yyq881[2] = x.ReadyReplicas != 0 + yyq881[3] = x.ObservedGeneration != 0 + var yynn881 int + if yyr881 || yy2arr881 { + r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn881 = 1 + for _, b := range yyq881 { if b { - yynn2++ + yynn881++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn881) + yynn881 = 0 } - if yyr2 || yy2arr2 { + if yyr881 || yy2arr881 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym883 := z.EncBinary() + _ = yym883 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -10690,18 +10691,18 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym884 := z.EncBinary() + _ = yym884 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr881 || yy2arr881 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq881[1] { + yym886 := z.EncBinary() + _ = yym886 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -10710,23 +10711,48 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq881[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym887 := z.EncBinary() + _ = yym887 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr881 || yy2arr881 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq881[2] { + yym889 := z.EncBinary() + _ = yym889 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq881[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + 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)) @@ -10735,19 +10761,19 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq881[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym893 := z.EncBinary() + _ = yym893 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2 || yy2arr2 { + if yyr881 || yy2arr881 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10760,25 +10786,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym894 := z.DecBinary() + _ = yym894 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct895 := r.ContainerType() + if yyct895 == codecSelferValueTypeMap1234 { + yyl895 := r.ReadMapStart() + if yyl895 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl895, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct895 == codecSelferValueTypeArray1234 { + yyl895 := r.ReadArrayStart() + if yyl895 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys896Slc = r.DecodeBytes(yys896Slc, true, true) + yys896 := string(yys896Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj901 int + var yyb901 bool + var yyhl901 bool = l >= 0 + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb7 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb7 { + 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)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb7 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb7 { + 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)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l + } else { + yyb901 = r.CheckBreak() + } + 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 { - yyb7 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb7 { + 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 { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb7 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb7 { + if yyb901 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj901-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10911,72 +10959,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym906 := z.EncBinary() + _ = yym906 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn907 = 0 + for _, b := range yyq907 { if b { - yynn2++ + yynn907++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn907) + yynn907 = 0 } - if yyr2 || yy2arr2 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq907[0] { + yym909 := z.EncBinary() + _ = yym909 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -10985,23 +10999,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq907[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym910 := z.EncBinary() + _ = yym910 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq907[1] { + yym912 := z.EncBinary() + _ = yym912 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -11010,19 +11024,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq907[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym913 := z.EncBinary() + _ = yym913 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr907 || yy2arr907 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq907[2] { + yy915 := &x.ObjectMeta + yy915.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq907[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy916 := &x.ObjectMeta + yy916.CodecEncodeSelf(e) + } + } + if yyr907 || yy2arr907 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq907[3] { + yy918 := &x.Spec + yy918.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq907[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy919 := &x.Spec + yy919.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym920 := z.DecBinary() + _ = yym920 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct921 := r.ContainerType() + if yyct921 == codecSelferValueTypeMap1234 { + yyl921 := r.ReadMapStart() + if yyl921 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl921, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct921 == codecSelferValueTypeArray1234 { + yyl921 := r.ReadArrayStart() + if yyl921 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,24 +11127,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys922Slc = r.DecodeBytes(yys922Slc, true, true) + yys922 := string(yys922Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PodSecurityPolicySpec{} - } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) - } + switch yys922 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -11109,10 +11143,24 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv925 := &x.ObjectMeta + yyv925.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSecurityPolicySpec{} + } else { + yyv926 := &x.Spec + yyv926.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys922) + } // end switch yys922 + } // end for yyj922 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11120,87 +11168,87 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj927 int + var yyb927 bool + var yyhl927 bool = l >= 0 + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb8 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb8 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb8 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb8 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PodSecurityPolicySpec{} + x.APIVersion = "" } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb8 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb8 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv930 := &x.ObjectMeta + yyv930.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb8 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb8 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = PodSecurityPolicySpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv931 := &x.Spec + yyv931.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb8 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb8 { + if yyb927 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym932 := z.EncBinary() + _ = yym932 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Privileged != false - yyq2[1] = len(x.DefaultAddCapabilities) != 0 - yyq2[2] = len(x.RequiredDropCapabilities) != 0 - yyq2[3] = len(x.AllowedCapabilities) != 0 - yyq2[4] = len(x.Volumes) != 0 - yyq2[5] = x.HostNetwork != false - yyq2[6] = len(x.HostPorts) != 0 - yyq2[7] = x.HostPID != false - yyq2[8] = x.HostIPC != false - yyq2[13] = x.ReadOnlyRootFilesystem != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 4 - for _, b := range yyq2 { + yynn933 = 4 + for _, b := range yyq933 { if b { - yynn2++ + yynn933++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn933) + yynn933 = 0 } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[0] { + if yyq933[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym936 := z.EncBinary() + _ = yym936 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq933[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq933[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + 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 yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + 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 yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq933[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + 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 yyq2[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 { - yym14 := z.EncBinary() - _ = yym14 + 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 yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq933[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + 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 yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + 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 yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + 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 yyq2[5] { + if yyq933[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym951 := z.EncBinary() + _ = yym951 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq933[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym22 := z.EncBinary() - _ = yym22 + 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 yyq2[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 { - yym23 := z.EncBinary() - _ = yym23 + 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 yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 + 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 yyq2[7] { + if yyq933[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym957 := z.EncBinary() + _ = yym957 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym28 := z.EncBinary() - _ = yym28 + 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 yyq2[8] { + if yyq933[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym960 := z.EncBinary() + _ = yym960 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy31 := &x.SELinux - yy31.CodecEncodeSelf(e) + yy962 := &x.SELinux + yy962.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy33 := &x.SELinux - yy33.CodecEncodeSelf(e) + yy963 := &x.SELinux + yy963.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy36 := &x.RunAsUser - yy36.CodecEncodeSelf(e) + yy965 := &x.RunAsUser + yy965.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy38 := &x.RunAsUser - yy38.CodecEncodeSelf(e) + yy966 := &x.RunAsUser + yy966.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy41 := &x.SupplementalGroups - yy41.CodecEncodeSelf(e) + yy968 := &x.SupplementalGroups + yy968.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy43 := &x.SupplementalGroups - yy43.CodecEncodeSelf(e) + yy969 := &x.SupplementalGroups + yy969.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy46 := &x.FSGroup - yy46.CodecEncodeSelf(e) + yy971 := &x.FSGroup + yy971.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy48 := &x.FSGroup - yy48.CodecEncodeSelf(e) + yy972 := &x.FSGroup + yy972.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - yym51 := z.EncBinary() - _ = yym51 + 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 yyq2[13] { + if yyq933[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym52 := z.EncBinary() - _ = yym52 + yym975 := z.EncBinary() + _ = yym975 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym976 := z.DecBinary() + _ = yym976 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct977 := r.ContainerType() + if yyct977 == codecSelferValueTypeMap1234 { + yyl977 := r.ReadMapStart() + if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl977, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct977 == codecSelferValueTypeArray1234 { + yyl977 := r.ReadArrayStart() + if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys978Slc = r.DecodeBytes(yys978Slc, true, true) + yys978 := string(yys978Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.DefaultAddCapabilities - yym6 := z.DecBinary() - _ = yym6 + yyv980 := &x.DefaultAddCapabilities + yym981 := z.DecBinary() + _ = yym981 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv5), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv980), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv7 := &x.RequiredDropCapabilities - yym8 := z.DecBinary() - _ = yym8 + yyv982 := &x.RequiredDropCapabilities + yym983 := z.DecBinary() + _ = yym983 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv7), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv982), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv9 := &x.AllowedCapabilities - yym10 := z.DecBinary() - _ = yym10 + yyv984 := &x.AllowedCapabilities + yym985 := z.DecBinary() + _ = yym985 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv9), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv984), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv11 := &x.Volumes - yym12 := z.DecBinary() - _ = yym12 + yyv986 := &x.Volumes + yym987 := z.DecBinary() + _ = yym987 if false { } else { - h.decSliceFSType((*[]FSType)(yyv11), 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 { - yyv14 := &x.HostPorts - yym15 := z.DecBinary() - _ = yym15 + yyv989 := &x.HostPorts + yym990 := z.DecBinary() + _ = yym990 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv14), 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 { - yyv18 := &x.SELinux - yyv18.CodecDecodeSelf(d) + yyv993 := &x.SELinux + yyv993.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv19 := &x.RunAsUser - yyv19.CodecDecodeSelf(d) + yyv994 := &x.RunAsUser + yyv994.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv20 := &x.SupplementalGroups - yyv20.CodecDecodeSelf(d) + yyv995 := &x.SupplementalGroups + yyv995.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv21 := &x.FSGroup - yyv21.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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj23 int - var yyb23 bool - var yyhl23 bool = l >= 0 - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + var yyj998 int + var yyb998 bool + var yyhl998 bool = l >= 0 + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv25 := &x.DefaultAddCapabilities - yym26 := z.DecBinary() - _ = yym26 + yyv1000 := &x.DefaultAddCapabilities + yym1001 := z.DecBinary() + _ = yym1001 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv25), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1000), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv27 := &x.RequiredDropCapabilities - yym28 := z.DecBinary() - _ = yym28 + yyv1002 := &x.RequiredDropCapabilities + yym1003 := z.DecBinary() + _ = yym1003 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv27), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1002), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv29 := &x.AllowedCapabilities - yym30 := z.DecBinary() - _ = yym30 + yyv1004 := &x.AllowedCapabilities + yym1005 := z.DecBinary() + _ = yym1005 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv29), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1004), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv31 := &x.Volumes - yym32 := z.DecBinary() - _ = yym32 + yyv1006 := &x.Volumes + yym1007 := z.DecBinary() + _ = yym1007 if false { } else { - h.decSliceFSType((*[]FSType)(yyv31), d) + h.decSliceFSType((*[]FSType)(yyv1006), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv34 := &x.HostPorts - yym35 := z.DecBinary() - _ = yym35 + yyv1009 := &x.HostPorts + yym1010 := z.DecBinary() + _ = yym1010 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv34), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1009), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv38 := &x.SELinux - yyv38.CodecDecodeSelf(d) + yyv1013 := &x.SELinux + yyv1013.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv39 := &x.RunAsUser - yyv39.CodecDecodeSelf(d) + yyv1014 := &x.RunAsUser + yyv1014.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv40 := &x.SupplementalGroups - yyv40.CodecDecodeSelf(d) + yyv1015 := &x.SupplementalGroups + yyv1015.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyv41 := &x.FSGroup - yyv41.CodecDecodeSelf(d) + yyv1016 := &x.FSGroup + yyv1016.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + 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 { - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb23 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb23 { + if yyb998 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj23-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1018 := z.EncBinary() + _ = yym1018 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1019 = 2 + for _, b := range yyq1019 { if b { - yynn2++ + yynn1019++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1019) + yynn1019 = 0 } - if yyr2 || yy2arr2 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1022 := z.EncBinary() + _ = yym1022 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr2 || yy2arr2 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1025 := z.EncBinary() + _ = yym1025 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1026 := z.DecBinary() + _ = yym1026 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1027 := r.ContainerType() + if yyct1027 == codecSelferValueTypeMap1234 { + yyl1027 := r.ReadMapStart() + if yyl1027 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1027, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1027 == codecSelferValueTypeArray1234 { + yyl1027 := r.ReadArrayStart() + if yyl1027 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1028Slc = r.DecodeBytes(yys1028Slc, true, true) + yys1028 := string(yys1028Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1031 int + var yyb1031 bool + var yyhl1031 bool = l >= 0 + yyj1031++ + if yyhl1031 { + yyb1031 = yyj1031 > l } else { - yyb6 = r.CheckBreak() + yyb1031 = r.CheckBreak() } - if yyb6 { + 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)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1031++ + if yyhl1031 { + yyb1031 = yyj1031 > l } else { - yyb6 = r.CheckBreak() + yyb1031 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1031++ + if yyhl1031 { + yyb1031 = yyj1031 > l } else { - yyb6 = r.CheckBreak() + yyb1031 = r.CheckBreak() } - if yyb6 { + if yyb1031 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1036 := z.EncBinary() + _ = yym1036 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.SELinuxOptions != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1037 = 1 + for _, b := range yyq1037 { if b { - yynn2++ + yynn1037++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1037) + yynn1037 = 0 } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1037 || yy2arr1037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[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 yyq2[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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1040 := z.DecBinary() + _ = yym1040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1041 := r.ContainerType() + if yyct1041 == codecSelferValueTypeMap1234 { + yyl1041 := r.ReadMapStart() + if yyl1041 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1041, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1041 == codecSelferValueTypeArray1234 { + yyl1041 := r.ReadArrayStart() + if yyl1041 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1042Slc = r.DecodeBytes(yys1042Slc, true, true) + yys1042 := string(yys1042Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1045 int + var yyb1045 bool + var yyhl1045 bool = l >= 0 + yyj1045++ + if yyhl1045 { + yyb1045 = yyj1045 > l } else { - yyb6 = r.CheckBreak() + yyb1045 = r.CheckBreak() } - if yyb6 { + 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()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1045++ + if yyhl1045 { + yyb1045 = yyj1045 > l } else { - yyb6 = r.CheckBreak() + yyb1045 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1045++ + if yyhl1045 { + yyb1045 = yyj1045 > l } else { - yyb6 = r.CheckBreak() + yyb1045 = r.CheckBreak() } - if yyb6 { + if yyb1045 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1050 := z.EncBinary() + _ = yym1050 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.Ranges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1051 = 1 + for _, b := range yyq1051 { if b { - yynn2++ + yynn1051++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1051) + yynn1051 = 0 } - if yyr2 || yy2arr2 { + 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 yyr2 || yy2arr2 { + if yyr1051 || yy2arr1051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1051[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1056 := z.DecBinary() + _ = yym1056 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1057 := r.ContainerType() + if yyct1057 == codecSelferValueTypeMap1234 { + yyl1057 := r.ReadMapStart() + if yyl1057 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1057, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1057 == codecSelferValueTypeArray1234 { + yyl1057 := r.ReadArrayStart() + if yyl1057 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1058Slc = r.DecodeBytes(yys1058Slc, true, true) + yys1058 := string(yys1058Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Ranges - yym6 := z.DecBinary() - _ = yym6 + yyv1060 := &x.Ranges + yym1061 := z.DecBinary() + _ = yym1061 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv5), d) + h.decSliceIDRange((*[]IDRange)(yyv1060), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1062 int + var yyb1062 bool + var yyhl1062 bool = l >= 0 + yyj1062++ + if yyhl1062 { + yyb1062 = yyj1062 > l } else { - yyb7 = r.CheckBreak() + yyb1062 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1062++ + if yyhl1062 { + yyb1062 = yyj1062 > l } else { - yyb7 = r.CheckBreak() + yyb1062 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.Ranges - yym10 := z.DecBinary() - _ = yym10 + yyv1064 := &x.Ranges + yym1065 := z.DecBinary() + _ = yym1065 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv9), d) + h.decSliceIDRange((*[]IDRange)(yyv1064), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1062++ + if yyhl1062 { + yyb1062 = yyj1062 > l } else { - yyb7 = r.CheckBreak() + yyb1062 = r.CheckBreak() } - if yyb7 { + if yyb1062 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1066 := z.EncBinary() + _ = yym1066 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1067 = 2 + for _, b := range yyq1067 { if b { - yynn2++ + yynn1067++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1067) + yynn1067 = 0 } - if yyr2 || yy2arr2 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + 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) - yym5 := z.EncBinary() - _ = yym5 + yym1070 := z.EncBinary() + _ = yym1070 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr2 || yy2arr2 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + 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) - yym8 := z.EncBinary() - _ = yym8 + yym1073 := z.EncBinary() + _ = yym1073 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1074 := z.DecBinary() + _ = yym1074 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1075 := r.ContainerType() + if yyct1075 == codecSelferValueTypeMap1234 { + yyl1075 := r.ReadMapStart() + if yyl1075 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1075, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1075 == codecSelferValueTypeArray1234 { + yyl1075 := r.ReadArrayStart() + if yyl1075 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1076Slc = r.DecodeBytes(yys1076Slc, true, true) + yys1076 := string(yys1076Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1079 int + var yyb1079 bool + var yyhl1079 bool = l >= 0 + yyj1079++ + if yyhl1079 { + yyb1079 = yyj1079 > l } else { - yyb6 = r.CheckBreak() + yyb1079 = r.CheckBreak() } - if yyb6 { + 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)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1079++ + if yyhl1079 { + yyb1079 = yyj1079 > l } else { - yyb6 = r.CheckBreak() + yyb1079 = r.CheckBreak() } - if yyb6 { + 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 { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1079++ + if yyhl1079 { + yyb1079 = yyj1079 > l } else { - yyb6 = r.CheckBreak() + yyb1079 = r.CheckBreak() } - if yyb6 { + if yyb1079 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1084 := z.EncBinary() + _ = yym1084 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Rule != "" - yyq2[1] = len(x.Ranges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1085 = 0 + for _, b := range yyq1085 { if b { - yynn2++ + yynn1085++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1085) + yynn1085 = 0 } - if yyr2 || yy2arr2 { + if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1085[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1085[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1085[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1090 := z.DecBinary() + _ = yym1090 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1091 := r.ContainerType() + if yyct1091 == codecSelferValueTypeMap1234 { + yyl1091 := r.ReadMapStart() + if yyl1091 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1091, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1091 == codecSelferValueTypeArray1234 { + yyl1091 := r.ReadArrayStart() + if yyl1091 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1092Slc = r.DecodeBytes(yys1092Slc, true, true) + yys1092 := string(yys1092Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Ranges - yym6 := z.DecBinary() - _ = yym6 + yyv1094 := &x.Ranges + yym1095 := z.DecBinary() + _ = yym1095 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv5), d) + h.decSliceIDRange((*[]IDRange)(yyv1094), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1096 int + var yyb1096 bool + var yyhl1096 bool = l >= 0 + yyj1096++ + if yyhl1096 { + yyb1096 = yyj1096 > l } else { - yyb7 = r.CheckBreak() + yyb1096 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1096++ + if yyhl1096 { + yyb1096 = yyj1096 > l } else { - yyb7 = r.CheckBreak() + yyb1096 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.Ranges - yym10 := z.DecBinary() - _ = yym10 + yyv1098 := &x.Ranges + yym1099 := z.DecBinary() + _ = yym1099 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv9), d) + h.decSliceIDRange((*[]IDRange)(yyv1098), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1096++ + if yyhl1096 { + yyb1096 = yyj1096 > l } else { - yyb7 = r.CheckBreak() + yyb1096 = r.CheckBreak() } - if yyb7 { + if yyb1096 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + 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 { - yym1 := z.EncBinary() - _ = yym1 + yym1102 := z.EncBinary() + _ = yym1102 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Rule != "" - yyq2[1] = len(x.Ranges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1103 = 0 + for _, b := range yyq1103 { if b { - yynn2++ + yynn1103++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1103) + yynn1103 = 0 } - if yyr2 || yy2arr2 { + if yyr1103 || yy2arr1103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1103[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1103[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1103 || yy2arr1103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1103[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1108 := z.DecBinary() + _ = yym1108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1109 := r.ContainerType() + if yyct1109 == codecSelferValueTypeMap1234 { + yyl1109 := r.ReadMapStart() + if yyl1109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1109, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1109 == codecSelferValueTypeArray1234 { + yyl1109 := r.ReadArrayStart() + if yyl1109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1110Slc = r.DecodeBytes(yys1110Slc, true, true) + yys1110 := string(yys1110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + 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 { - yyv5 := &x.Ranges - yym6 := z.DecBinary() - _ = yym6 + yyv1112 := &x.Ranges + yym1113 := z.DecBinary() + _ = yym1113 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv5), d) + h.decSliceIDRange((*[]IDRange)(yyv1112), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1114 int + var yyb1114 bool + var yyhl1114 bool = l >= 0 + yyj1114++ + if yyhl1114 { + yyb1114 = yyj1114 > l } else { - yyb7 = r.CheckBreak() + yyb1114 = r.CheckBreak() } - if yyb7 { + 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()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1114++ + if yyhl1114 { + yyb1114 = yyj1114 > l } else { - yyb7 = r.CheckBreak() + yyb1114 = r.CheckBreak() } - if yyb7 { + 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 { - yyv9 := &x.Ranges - yym10 := z.DecBinary() - _ = yym10 + yyv1116 := &x.Ranges + yym1117 := z.DecBinary() + _ = yym1117 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv9), d) + h.decSliceIDRange((*[]IDRange)(yyv1116), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1114++ + if yyhl1114 { + yyb1114 = yyj1114 > l } else { - yyb7 = r.CheckBreak() + yyb1114 = r.CheckBreak() } - if yyb7 { + if yyb1114 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-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 - yym1 := z.EncBinary() - _ = yym1 + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1119 := z.DecBinary() + _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -13471,139 +13519,139 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1120 := z.EncBinary() + _ = yym1120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1121 = 1 + for _, b := range yyq1121 { if b { - yynn2++ + yynn1121++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1121) + yynn1121 = 0 } - if yyr2 || yy2arr2 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1121[0] { + yym1123 := z.EncBinary() + _ = yym1123 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1121[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1124 := z.EncBinary() + _ = yym1124 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1121[1] { + yym1126 := z.EncBinary() + _ = yym1126 if false { } else { - h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1121[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1127 := z.EncBinary() + _ = yym1127 if false { } else { - h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1121[2] { + yy1129 := &x.ListMeta + yym1130 := z.EncBinary() + _ = yym1130 if false { + } else if z.HasExtensions() && z.EncExt(yy1129) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1129) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1121[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1131 := &x.ListMeta + yym1132 := z.EncBinary() + _ = yym1132 if false { + } else if z.HasExtensions() && z.EncExt(yy1131) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1131) } } } - if yyr2 || yy2arr2 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1134 := z.EncBinary() + _ = yym1134 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1135 := z.EncBinary() + _ = yym1135 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1136 := z.DecBinary() + _ = yym1136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1137 := r.ContainerType() + if yyct1137 == codecSelferValueTypeMap1234 { + yyl1137 := r.ReadMapStart() + if yyl1137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1137, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1137 == codecSelferValueTypeArray1234 { + yyl1137 := r.ReadArrayStart() + if yyl1137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,51 +13708,51 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1138Slc = r.DecodeBytes(yys1138Slc, true, true) + yys1138 := string(yys1138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1138 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1141 := &x.ListMeta + yym1142 := z.DecBinary() + _ = yym1142 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1141) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1141, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1143 := &x.Items + yym1144 := z.DecBinary() + _ = yym1144 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv6), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1143), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1138) + } // end switch yys1138 + } // end for yyj1138 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13712,98 +13760,98 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1145 int + var yyb1145 bool + var yyhl1145 bool = l >= 0 + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb10 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb10 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb10 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb10 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb10 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb10 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1148 := &x.ListMeta + yym1149 := z.DecBinary() + _ = yym1149 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1148) { + } else { + z.DecFallback(yyv1148, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb10 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb10 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1150 := &x.Items + yym1151 := z.DecBinary() + _ = yym1151 + if false { + } else { + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1150), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb10 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb10 { + if yyb1145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj1145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13815,72 +13863,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1152 := z.EncBinary() + _ = yym1152 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1153 = 0 + for _, b := range yyq1153 { if b { - yynn2++ + yynn1153++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn1153) + yynn1153 = 0 } - if yyr2 || yy2arr2 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq1153[0] { + yym1155 := z.EncBinary() + _ = yym1155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13889,23 +13903,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq1153[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym1156 := z.EncBinary() + _ = yym1156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq1153[1] { + yym1158 := z.EncBinary() + _ = yym1158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13914,24 +13928,58 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1153[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym1159 := z.EncBinary() + _ = yym1159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + if yyr1153 || yy2arr1153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1153[2] { + yy1161 := &x.ObjectMeta + yy1161.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } + if yyq1153[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1162 := &x.ObjectMeta + yy1162.CodecEncodeSelf(e) + } + } + if yyr1153 || yy2arr1153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1153[3] { + yy1164 := &x.Spec + yy1164.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1153[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1165 := &x.Spec + yy1165.CodecEncodeSelf(e) + } + } + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1166 := z.DecBinary() + _ = yym1166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1167 := r.ContainerType() + if yyct1167 == codecSelferValueTypeMap1234 { + yyl1167 := r.ReadMapStart() + if yyl1167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1167, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1167 == codecSelferValueTypeArray1234 { + yyl1167 := r.ReadArrayStart() + if yyl1167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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,24 +14031,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1168Slc = r.DecodeBytes(yys1168Slc, true, true) + yys1168 := string(yys1168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = NetworkPolicySpec{} - } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) - } + switch yys1168 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -14013,10 +14047,24 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv1171 := &x.ObjectMeta + yyv1171.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NetworkPolicySpec{} + } else { + yyv1172 := &x.Spec + yyv1172.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1168) + } // end switch yys1168 + } // end for yyj1168 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14024,87 +14072,87 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1173 int + var yyb1173 bool + var yyhl1173 bool = l >= 0 + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb8 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb8 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb8 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb8 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = NetworkPolicySpec{} + x.APIVersion = "" } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb8 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb8 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1176 := &x.ObjectMeta + yyv1176.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb8 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb8 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = NetworkPolicySpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv1177 := &x.Spec + yyv1177.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb8 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb8 { + if yyb1173 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1178 := z.EncBinary() + _ = yym1178 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.Ingress) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1179 = 1 + for _, b := range yyq1179 { if b { - yynn2++ + yynn1179++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1179) + yynn1179 = 0 } - if yyr2 || yy2arr2 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.PodSelector - yym5 := z.EncBinary() - _ = yym5 + yy1181 := &x.PodSelector + yym1182 := z.EncBinary() + _ = yym1182 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { + } else if z.HasExtensions() && z.EncExt(yy1181) { } else { - z.EncFallback(yy4) + z.EncFallback(yy1181) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.PodSelector - yym7 := z.EncBinary() - _ = yym7 + yy1183 := &x.PodSelector + yym1184 := z.EncBinary() + _ = yym1184 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { + } else if z.HasExtensions() && z.EncExt(yy1183) { } else { - z.EncFallback(yy6) + z.EncFallback(yy1183) } } - if yyr2 || yy2arr2 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1179[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + 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 yyq2[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 { - yym10 := z.EncBinary() - _ = yym10 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1188 := z.DecBinary() + _ = yym1188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1189 := r.ContainerType() + if yyct1189 == codecSelferValueTypeMap1234 { + yyl1189 := r.ReadMapStart() + if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1189, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1189 == codecSelferValueTypeArray1234 { + yyl1189 := r.ReadArrayStart() + if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1190Slc = r.DecodeBytes(yys1190Slc, true, true) + yys1190 := string(yys1190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1190 { case "podSelector": if r.TryDecodeAsNil() { x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv4 := &x.PodSelector - yym5 := z.DecBinary() - _ = yym5 + yyv1191 := &x.PodSelector + yym1192 := z.DecBinary() + _ = yym1192 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1191) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1191, false) } } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv6 := &x.Ingress - yym7 := z.DecBinary() - _ = yym7 + yyv1193 := &x.Ingress + yym1194 := z.DecBinary() + _ = yym1194 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv6), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1193), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1195 int + var yyb1195 bool + var yyhl1195 bool = l >= 0 + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l } else { - yyb8 = r.CheckBreak() + yyb1195 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.PodSelector - yym10 := z.DecBinary() - _ = yym10 + yyv1196 := &x.PodSelector + yym1197 := z.DecBinary() + _ = yym1197 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { + } else if z.HasExtensions() && z.DecExt(yyv1196) { } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv1196, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l } else { - yyb8 = r.CheckBreak() + yyb1195 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.Ingress - yym12 := z.DecBinary() - _ = yym12 + yyv1198 := &x.Ingress + yym1199 := z.DecBinary() + _ = yym1199 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv11), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1198), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l } else { - yyb8 = r.CheckBreak() + yyb1195 = r.CheckBreak() } - if yyb8 { + if yyb1195 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-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 { - yym1 := z.EncBinary() - _ = yym1 + yym1200 := z.EncBinary() + _ = yym1200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Ports) != 0 - yyq2[1] = len(x.From) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1201 = 0 + for _, b := range yyq1201 { if b { - yynn2++ + yynn1201++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1201) + yynn1201 = 0 } - if yyr2 || yy2arr2 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1201[0] { if x.Ports == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + 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 yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + 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 yyr2 || yy2arr2 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1201[1] { if x.From == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + 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 yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + 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 yyr2 || yy2arr2 { + 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 - yym1 := z.DecBinary() - _ = yym1 + yym1208 := z.DecBinary() + _ = yym1208 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1209 := r.ContainerType() + if yyct1209 == codecSelferValueTypeMap1234 { + yyl1209 := r.ReadMapStart() + if yyl1209 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1209, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1209 == codecSelferValueTypeArray1234 { + yyl1209 := r.ReadArrayStart() + if yyl1209 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, 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 yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1210Slc = r.DecodeBytes(yys1210Slc, true, true) + yys1210 := string(yys1210Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1210 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv4 := &x.Ports - yym5 := z.DecBinary() - _ = yym5 + yyv1211 := &x.Ports + yym1212 := z.DecBinary() + _ = yym1212 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv4), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1211), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv6 := &x.From - yym7 := z.DecBinary() - _ = yym7 + yyv1213 := &x.From + yym1214 := z.DecBinary() + _ = yym1214 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv6), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1213), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + 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 yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1215 int + var yyb1215 bool + var yyhl1215 bool = l >= 0 + yyj1215++ + if yyhl1215 { + yyb1215 = yyj1215 > l } else { - yyb8 = r.CheckBreak() + yyb1215 = r.CheckBreak() } - if yyb8 { + 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 { - yyv9 := &x.Ports - yym10 := z.DecBinary() - _ = yym10 + yyv1216 := &x.Ports + yym1217 := z.DecBinary() + _ = yym1217 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv9), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1216), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1215++ + if yyhl1215 { + yyb1215 = yyj1215 > l } else { - yyb8 = r.CheckBreak() + yyb1215 = r.CheckBreak() } - if yyb8 { + 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 { - yyv11 := &x.From - yym12 := z.DecBinary() - _ = yym12 + yyv1218 := &x.From + yym1219 := z.DecBinary() + _ = yym1219 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv11), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1218), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1215++ + if yyhl1215 { + yyb1215 = yyj1215 > l } else { - yyb8 = r.CheckBreak() + yyb1215 = r.CheckBreak() } - if yyb8 { + if yyb1215 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1215-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14621,69 +14669,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1220 := z.EncBinary() + _ = yym1220 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Protocol != nil - yyq2[1] = x.Port != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1221 = 0 + for _, b := range yyq1221 { if b { - yynn2++ + yynn1221++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1221) + yynn1221 = 0 } - if yyr2 || yy2arr2 { + if yyr1221 || yy2arr1221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1221[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy4 := *x.Protocol - yysf5 := &yy4 - yysf5.CodecEncodeSelf(e) + yy1223 := *x.Protocol + yym1224 := z.EncBinary() + _ = yym1224 + if false { + } else if z.HasExtensions() && z.EncExt(yy1223) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1223)) + } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy6 := *x.Protocol - yysf7 := &yy6 - yysf7.CodecEncodeSelf(e) + yy1225 := *x.Protocol + yym1226 := z.EncBinary() + _ = yym1226 + if false { + } else if z.HasExtensions() && z.EncExt(yy1225) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1225)) + } } } } - if yyr2 || yy2arr2 { + if yyr1221 || yy2arr1221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1221[1] { if x.Port == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym1228 := z.EncBinary() + _ = yym1228 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym9 && z.IsJSONHandle() { + } else if !yym1228 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -14693,18 +14751,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym10 := z.EncBinary() - _ = yym10 + yym1229 := z.EncBinary() + _ = yym1229 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym10 && z.IsJSONHandle() { + } else if !yym1229 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -14712,7 +14770,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1221 || yy2arr1221 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14725,25 +14783,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1230 := z.DecBinary() + _ = yym1230 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1231 := r.ContainerType() + if yyct1231 == codecSelferValueTypeMap1234 { + yyl1231 := r.ReadMapStart() + if yyl1231 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1231, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1231 == codecSelferValueTypeArray1234 { + yyl1231 := r.ReadArrayStart() + if yyl1231 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1231, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14755,12 +14813,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -14769,10 +14827,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1232Slc = r.DecodeBytes(yys1232Slc, true, true) + yys1232 := string(yys1232Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1232 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -14793,20 +14851,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym6 := z.DecBinary() - _ = yym6 + yym1235 := z.DecBinary() + _ = yym1235 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym6 && z.IsJSONHandle() { + } else if !yym1235 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1232) + } // end switch yys1232 + } // end for yyj1232 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14814,16 +14872,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1236 int + var yyb1236 bool + var yyhl1236 bool = l >= 0 + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb7 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb7 { + if yyb1236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14838,13 +14896,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb7 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb7 { + if yyb1236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14857,28 +14915,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym10 := z.DecBinary() - _ = yym10 + yym1239 := z.DecBinary() + _ = yym1239 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym10 && z.IsJSONHandle() { + } else if !yym1239 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb7 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb7 { + if yyb1236 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1236-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14890,39 +14948,39 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1240 := z.EncBinary() + _ = yym1240 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.PodSelector != nil - yyq2[1] = x.NamespaceSelector != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1241 = 0 + for _, b := range yyq1241 { if b { - yynn2++ + yynn1241++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1241) + yynn1241 = 0 } - if yyr2 || yy2arr2 { + if yyr1241 || yy2arr1241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1241[0] { if x.PodSelector == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym1243 := z.EncBinary() + _ = yym1243 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -14933,15 +14991,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + yym1244 := z.EncBinary() + _ = yym1244 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -14950,14 +15008,14 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1241 || yy2arr1241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1241[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1246 := z.EncBinary() + _ = yym1246 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -14968,15 +15026,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym1247 := z.EncBinary() + _ = yym1247 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -14985,7 +15043,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1241 || yy2arr1241 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14998,25 +15056,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1248 := z.DecBinary() + _ = yym1248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1249 := r.ContainerType() + if yyct1249 == codecSelferValueTypeMap1234 { + yyl1249 := r.ReadMapStart() + if yyl1249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1249, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1249 == codecSelferValueTypeArray1234 { + yyl1249 := r.ReadArrayStart() + if yyl1249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1249, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15028,12 +15086,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -15042,10 +15100,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1250Slc = r.DecodeBytes(yys1250Slc, true, true) + yys1250 := string(yys1250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1250 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -15055,8 +15113,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.PodSelector == nil { x.PodSelector = new(pkg1_unversioned.LabelSelector) } - yym5 := z.DecBinary() - _ = yym5 + yym1252 := z.DecBinary() + _ = yym1252 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { @@ -15072,8 +15130,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) } - yym7 := z.DecBinary() - _ = yym7 + yym1254 := z.DecBinary() + _ = yym1254 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -15081,9 +15139,9 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1250) + } // end switch yys1250 + } // end for yyj1250 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15091,16 +15149,16 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1255 int + var yyb1255 bool + var yyhl1255 bool = l >= 0 + yyj1255++ + if yyhl1255 { + yyb1255 = yyj1255 > l } else { - yyb8 = r.CheckBreak() + yyb1255 = r.CheckBreak() } - if yyb8 { + if yyb1255 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15113,21 +15171,21 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.PodSelector == nil { x.PodSelector = new(pkg1_unversioned.LabelSelector) } - yym10 := z.DecBinary() - _ = yym10 + yym1257 := z.DecBinary() + _ = yym1257 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { z.DecFallback(x.PodSelector, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1255++ + if yyhl1255 { + yyb1255 = yyj1255 > l } else { - yyb8 = r.CheckBreak() + yyb1255 = r.CheckBreak() } - if yyb8 { + if yyb1255 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15140,8 +15198,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) } - yym12 := z.DecBinary() - _ = yym12 + yym1259 := z.DecBinary() + _ = yym1259 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -15149,17 +15207,17 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1255++ + if yyhl1255 { + yyb1255 = yyj1255 > l } else { - yyb8 = r.CheckBreak() + yyb1255 = r.CheckBreak() } - if yyb8 { + if yyb1255 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1255-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15171,139 +15229,139 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1260 := z.EncBinary() + _ = yym1260 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1261 = 1 + for _, b := range yyq1261 { if b { - yynn2++ + yynn1261++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1261) + yynn1261 = 0 } - if yyr2 || yy2arr2 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1261[0] { + yym1263 := z.EncBinary() + _ = yym1263 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1261[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1264 := z.EncBinary() + _ = yym1264 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1261[1] { + yym1266 := z.EncBinary() + _ = yym1266 if false { } else { - h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1261[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1267 := z.EncBinary() + _ = yym1267 if false { } else { - h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1261[2] { + yy1269 := &x.ListMeta + yym1270 := z.EncBinary() + _ = yym1270 if false { + } else if z.HasExtensions() && z.EncExt(yy1269) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1269) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1261[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1271 := &x.ListMeta + yym1272 := z.EncBinary() + _ = yym1272 if false { + } else if z.HasExtensions() && z.EncExt(yy1271) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1271) } } } - if yyr2 || yy2arr2 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1274 := z.EncBinary() + _ = yym1274 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1275 := z.EncBinary() + _ = yym1275 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15316,25 +15374,25 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1276 := z.DecBinary() + _ = yym1276 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1277 := r.ContainerType() + if yyct1277 == codecSelferValueTypeMap1234 { + yyl1277 := r.ReadMapStart() + if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1277, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1277 == codecSelferValueTypeArray1234 { + yyl1277 := r.ReadArrayStart() + if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1277, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15346,12 +15404,12 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -15360,51 +15418,51 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1278Slc = r.DecodeBytes(yys1278Slc, true, true) + yys1278 := string(yys1278Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1278 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1281 := &x.ListMeta + yym1282 := z.DecBinary() + _ = yym1282 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1281) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1281, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1283 := &x.Items + yym1284 := z.DecBinary() + _ = yym1284 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv6), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1283), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1278) + } // end switch yys1278 + } // end for yyj1278 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15412,98 +15470,810 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1285 int + var yyb1285 bool + var yyhl1285 bool = l >= 0 + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l } else { - yyb10 = r.CheckBreak() + yyb1285 = r.CheckBreak() } - if yyb10 { + if yyb1285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l + } else { + yyb1285 = r.CheckBreak() + } + if yyb1285 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l + } else { + yyb1285 = r.CheckBreak() + } + if yyb1285 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv1288 := &x.ListMeta + yym1289 := z.DecBinary() + _ = yym1289 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1288) { + } else { + z.DecFallback(yyv1288, false) + } + } + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l + } else { + yyb1285 = r.CheckBreak() + } + if yyb1285 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1290 := &x.Items + yym1291 := z.DecBinary() + _ = yym1291 + if false { + } else { + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1290), d) + } + } + for { + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l + } else { + yyb1285 = r.CheckBreak() + } + if yyb1285 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1285-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1292 := z.EncBinary() + _ = yym1292 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1293 = 1 + for _, b := range yyq1293 { + if b { + yynn1293++ + } + } + r.EncodeMapStart(yynn1293) + yynn1293 = 0 + } + if yyr1293 || yy2arr1293 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1293[0] { + yym1295 := z.EncBinary() + _ = yym1295 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1293[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1296 := z.EncBinary() + _ = yym1296 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1293 || yy2arr1293 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1293[1] { + yym1298 := z.EncBinary() + _ = yym1298 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1293[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1299 := z.EncBinary() + _ = yym1299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1293 || yy2arr1293 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1293[2] { + yy1301 := &x.ObjectMeta + yy1301.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1293[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1302 := &x.ObjectMeta + yy1302.CodecEncodeSelf(e) + } + } + if yyr1293 || yy2arr1293 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1304 := z.EncBinary() + _ = yym1304 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("provisioner")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1305 := z.EncBinary() + _ = yym1305 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) + } + } + if yyr1293 || yy2arr1293 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1293[4] { + if x.Parameters == nil { + r.EncodeNil() + } else { + yym1307 := z.EncBinary() + _ = yym1307 + if false { + } else { + z.F.EncMapStringStringV(x.Parameters, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1293[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parameters")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Parameters == nil { + r.EncodeNil() + } else { + yym1308 := z.EncBinary() + _ = yym1308 + if false { + } else { + z.F.EncMapStringStringV(x.Parameters, false, e) + } + } + } + } + if yyr1293 || yy2arr1293 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1309 := z.DecBinary() + _ = yym1309 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1310 := r.ContainerType() + if yyct1310 == codecSelferValueTypeMap1234 { + yyl1310 := r.ReadMapStart() + if yyl1310 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1310, d) + } + } else if yyct1310 == codecSelferValueTypeArray1234 { + yyl1310 := r.ReadArrayStart() + if yyl1310 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1310, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1311Slc = r.DecodeBytes(yys1311Slc, true, true) + yys1311 := string(yys1311Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1311 { + 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_api.ObjectMeta{} + } else { + yyv1314 := &x.ObjectMeta + yyv1314.CodecDecodeSelf(d) + } + case "provisioner": + if r.TryDecodeAsNil() { + x.Provisioner = "" + } else { + x.Provisioner = string(r.DecodeString()) + } + case "parameters": + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + yyv1316 := &x.Parameters + yym1317 := z.DecBinary() + _ = yym1317 + if false { + } else { + z.F.DecMapStringStringX(yyv1316, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1311) + } // end switch yys1311 + } // end for yyj1311 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1318 int + var yyb1318 bool + var yyhl1318 bool = l >= 0 + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l + } else { + yyb1318 = r.CheckBreak() + } + if yyb1318 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l + } else { + yyb1318 = r.CheckBreak() + } + if yyb1318 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l + } else { + yyb1318 = r.CheckBreak() + } + if yyb1318 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv1321 := &x.ObjectMeta + yyv1321.CodecDecodeSelf(d) + } + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l + } else { + yyb1318 = r.CheckBreak() + } + if yyb1318 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Provisioner = "" + } else { + x.Provisioner = string(r.DecodeString()) + } + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l + } else { + yyb1318 = r.CheckBreak() + } + if yyb1318 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + yyv1323 := &x.Parameters + yym1324 := z.DecBinary() + _ = yym1324 + if false { + } else { + z.F.DecMapStringStringX(yyv1323, false, d) + } + } + for { + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l + } else { + yyb1318 = r.CheckBreak() + } + if yyb1318 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1318-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1325 := z.EncBinary() + _ = yym1325 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1326 = 1 + for _, b := range yyq1326 { + if b { + yynn1326++ + } + } + r.EncodeMapStart(yynn1326) + yynn1326 = 0 + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[0] { + yym1328 := z.EncBinary() + _ = yym1328 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1326[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1329 := z.EncBinary() + _ = yym1329 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[1] { + yym1331 := z.EncBinary() + _ = yym1331 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1326[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1332 := z.EncBinary() + _ = yym1332 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[2] { + yy1334 := &x.ListMeta + yym1335 := z.EncBinary() + _ = yym1335 + if false { + } else if z.HasExtensions() && z.EncExt(yy1334) { + } else { + z.EncFallback(yy1334) + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1336 := &x.ListMeta + yym1337 := z.EncBinary() + _ = yym1337 + if false { + } else if z.HasExtensions() && z.EncExt(yy1336) { + } else { + z.EncFallback(yy1336) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1339 := z.EncBinary() + _ = yym1339 + if false { + } else { + h.encSliceStorageClass(([]StorageClass)(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 { + yym1340 := z.EncBinary() + _ = yym1340 + if false { + } else { + h.encSliceStorageClass(([]StorageClass)(x.Items), e) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1341 := z.DecBinary() + _ = yym1341 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1342 := r.ContainerType() + if yyct1342 == codecSelferValueTypeMap1234 { + yyl1342 := r.ReadMapStart() + if yyl1342 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1342, d) + } + } else if yyct1342 == codecSelferValueTypeArray1234 { + yyl1342 := r.ReadArrayStart() + if yyl1342 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1342, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1343Slc = r.DecodeBytes(yys1343Slc, true, true) + yys1343 := string(yys1343Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1343 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv1346 := &x.ListMeta + yym1347 := z.DecBinary() + _ = yym1347 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1346) { + } else { + z.DecFallback(yyv1346, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1348 := &x.Items + yym1349 := z.DecBinary() + _ = yym1349 + if false { + } else { + h.decSliceStorageClass((*[]StorageClass)(yyv1348), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1343) + } // end switch yys1343 + } // end for yyj1343 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1350 int + var yyb1350 bool + var yyhl1350 bool = l >= 0 + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l + } else { + yyb1350 = r.CheckBreak() + } + if yyb1350 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb10 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb10 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb10 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb10 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1353 := &x.ListMeta + yym1354 := z.DecBinary() + _ = yym1354 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1353) { + } else { + z.DecFallback(yyv1353, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb10 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb10 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1355 := &x.Items + yym1356 := z.DecBinary() + _ = yym1356 + if false { + } else { + h.decSliceStorageClass((*[]StorageClass)(yyv1355), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb10 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb10 { + if yyb1350 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj1350-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15513,10 +16283,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1357 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1358 := &yyv1357 + yy1358.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15526,86 +16296,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CustomMetricTarget{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]CustomMetricTarget, yyrl1) - } - } else { - yyv1 = make([]CustomMetricTarget, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1359 > 0 { + var yyrr1359, yyrl1359 int + var yyrt1359 bool + if yyl1359 > cap(yyv1359) { + + 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 { + yyv1359 = make([]CustomMetricTarget, yyrl1359) + } + } else { + yyv1359 = make([]CustomMetricTarget, yyrl1359) + } + yyc1359 = true + yyrr1359 = len(yyv1359) + if yyrg1359 { + copy(yyv1359, yyv21359) + } + } else if yyl1359 != len(yyv1359) { + yyv1359 = yyv1359[:yyl1359] + yyc1359 = true + } + yyj1359 := 0 + for ; yyj1359 < yyrr1359; yyj1359++ { + yyh1359.ElemContainerState(yyj1359) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricTarget{} + yyv1359[yyj1359] = CustomMetricTarget{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1360 := &yyv1359[yyj1359] + yyv1360.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CustomMetricTarget{}) - yyh1.ElemContainerState(yyj1) + if yyrt1359 { + for ; yyj1359 < yyl1359; yyj1359++ { + yyv1359 = append(yyv1359, CustomMetricTarget{}) + yyh1359.ElemContainerState(yyj1359) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricTarget{} + yyv1359[yyj1359] = CustomMetricTarget{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1361 := &yyv1359[yyj1359] + yyv1361.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1359 := 0 + for ; !r.CheckBreak(); yyj1359++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CustomMetricTarget{}) // var yyz1 CustomMetricTarget - yyc1 = true + if yyj1359 >= len(yyv1359) { + yyv1359 = append(yyv1359, CustomMetricTarget{}) // var yyz1359 CustomMetricTarget + yyc1359 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1359.ElemContainerState(yyj1359) + if yyj1359 < len(yyv1359) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricTarget{} + yyv1359[yyj1359] = CustomMetricTarget{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1362 := &yyv1359[yyj1359] + yyv1362.CodecDecodeSelf(d) } } else { @@ -15613,17 +16380,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CustomMetricTarget{} - yyc1 = true + if yyj1359 < len(yyv1359) { + yyv1359 = yyv1359[:yyj1359] + yyc1359 = true + } else if yyj1359 == 0 && yyv1359 == nil { + yyv1359 = []CustomMetricTarget{} + yyc1359 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1359.End() + if yyc1359 { + *v = yyv1359 } } @@ -15632,10 +16399,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1363 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1364 := &yyv1363 + yy1364.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15645,86 +16412,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CustomMetricCurrentStatus{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]CustomMetricCurrentStatus, yyrl1) - } - } else { - yyv1 = make([]CustomMetricCurrentStatus, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1365 > 0 { + var yyrr1365, yyrl1365 int + var yyrt1365 bool + if yyl1365 > cap(yyv1365) { + + 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 { + yyv1365 = make([]CustomMetricCurrentStatus, yyrl1365) + } + } else { + yyv1365 = make([]CustomMetricCurrentStatus, yyrl1365) + } + yyc1365 = true + yyrr1365 = len(yyv1365) + if yyrg1365 { + copy(yyv1365, yyv21365) + } + } else if yyl1365 != len(yyv1365) { + yyv1365 = yyv1365[:yyl1365] + yyc1365 = true + } + yyj1365 := 0 + for ; yyj1365 < yyrr1365; yyj1365++ { + yyh1365.ElemContainerState(yyj1365) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricCurrentStatus{} + yyv1365[yyj1365] = CustomMetricCurrentStatus{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1366 := &yyv1365[yyj1365] + yyv1366.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CustomMetricCurrentStatus{}) - yyh1.ElemContainerState(yyj1) + if yyrt1365 { + for ; yyj1365 < yyl1365; yyj1365++ { + yyv1365 = append(yyv1365, CustomMetricCurrentStatus{}) + yyh1365.ElemContainerState(yyj1365) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricCurrentStatus{} + yyv1365[yyj1365] = CustomMetricCurrentStatus{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1367 := &yyv1365[yyj1365] + yyv1367.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1365 := 0 + for ; !r.CheckBreak(); yyj1365++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CustomMetricCurrentStatus{}) // var yyz1 CustomMetricCurrentStatus - yyc1 = true + if yyj1365 >= len(yyv1365) { + yyv1365 = append(yyv1365, CustomMetricCurrentStatus{}) // var yyz1365 CustomMetricCurrentStatus + yyc1365 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1365.ElemContainerState(yyj1365) + if yyj1365 < len(yyv1365) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricCurrentStatus{} + yyv1365[yyj1365] = CustomMetricCurrentStatus{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1368 := &yyv1365[yyj1365] + yyv1368.CodecDecodeSelf(d) } } else { @@ -15732,17 +16496,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CustomMetricCurrentStatus{} - yyc1 = true + if yyj1365 < len(yyv1365) { + yyv1365 = yyv1365[:yyj1365] + yyc1365 = true + } else if yyj1365 == 0 && yyv1365 == nil { + yyv1365 = []CustomMetricCurrentStatus{} + yyc1365 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1365.End() + if yyc1365 { + *v = yyv1365 } } @@ -15751,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 _, yyv1 := range v { + for _, yyv1369 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1370 := &yyv1369 + yy1370.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15764,86 +16528,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []APIVersion{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]APIVersion, yyrl1) - } - } else { - yyv1 = make([]APIVersion, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1371 > 0 { + var yyrr1371, yyrl1371 int + var yyrt1371 bool + if yyl1371 > cap(yyv1371) { + + 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 { + yyv1371 = make([]APIVersion, yyrl1371) + } + } else { + yyv1371 = make([]APIVersion, yyrl1371) + } + yyc1371 = true + yyrr1371 = len(yyv1371) + if yyrg1371 { + copy(yyv1371, yyv21371) + } + } else if yyl1371 != len(yyv1371) { + yyv1371 = yyv1371[:yyl1371] + yyc1371 = true + } + yyj1371 := 0 + for ; yyj1371 < yyrr1371; yyj1371++ { + yyh1371.ElemContainerState(yyj1371) if r.TryDecodeAsNil() { - yyv1[yyj1] = APIVersion{} + yyv1371[yyj1371] = APIVersion{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1372 := &yyv1371[yyj1371] + yyv1372.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, APIVersion{}) - yyh1.ElemContainerState(yyj1) + if yyrt1371 { + for ; yyj1371 < yyl1371; yyj1371++ { + yyv1371 = append(yyv1371, APIVersion{}) + yyh1371.ElemContainerState(yyj1371) if r.TryDecodeAsNil() { - yyv1[yyj1] = APIVersion{} + yyv1371[yyj1371] = APIVersion{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1373 := &yyv1371[yyj1371] + yyv1373.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1371 := 0 + for ; !r.CheckBreak(); yyj1371++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, APIVersion{}) // var yyz1 APIVersion - yyc1 = true + if yyj1371 >= len(yyv1371) { + yyv1371 = append(yyv1371, APIVersion{}) // var yyz1371 APIVersion + yyc1371 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1371.ElemContainerState(yyj1371) + if yyj1371 < len(yyv1371) { if r.TryDecodeAsNil() { - yyv1[yyj1] = APIVersion{} + yyv1371[yyj1371] = APIVersion{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1374 := &yyv1371[yyj1371] + yyv1374.CodecDecodeSelf(d) } } else { @@ -15851,17 +16612,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []APIVersion{} - yyc1 = true + if yyj1371 < len(yyv1371) { + yyv1371 = yyv1371[:yyj1371] + yyc1371 = true + } else if yyj1371 == 0 && yyv1371 == nil { + yyv1371 = []APIVersion{} + yyc1371 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1371.End() + if yyc1371 { + *v = yyv1371 } } @@ -15870,10 +16631,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1375 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1376 := &yyv1375 + yy1376.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15883,86 +16644,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ThirdPartyResource{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]ThirdPartyResource, yyrl1) - } - } else { - yyv1 = make([]ThirdPartyResource, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1377 > 0 { + var yyrr1377, yyrl1377 int + var yyrt1377 bool + if yyl1377 > cap(yyv1377) { + + 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 { + yyv1377 = make([]ThirdPartyResource, yyrl1377) + } + } else { + yyv1377 = make([]ThirdPartyResource, yyrl1377) + } + yyc1377 = true + yyrr1377 = len(yyv1377) + if yyrg1377 { + copy(yyv1377, yyv21377) + } + } else if yyl1377 != len(yyv1377) { + yyv1377 = yyv1377[:yyl1377] + yyc1377 = true + } + yyj1377 := 0 + for ; yyj1377 < yyrr1377; yyj1377++ { + yyh1377.ElemContainerState(yyj1377) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResource{} + yyv1377[yyj1377] = ThirdPartyResource{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1378 := &yyv1377[yyj1377] + yyv1378.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ThirdPartyResource{}) - yyh1.ElemContainerState(yyj1) + if yyrt1377 { + for ; yyj1377 < yyl1377; yyj1377++ { + yyv1377 = append(yyv1377, ThirdPartyResource{}) + yyh1377.ElemContainerState(yyj1377) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResource{} + yyv1377[yyj1377] = ThirdPartyResource{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1379 := &yyv1377[yyj1377] + yyv1379.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1377 := 0 + for ; !r.CheckBreak(); yyj1377++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ThirdPartyResource{}) // var yyz1 ThirdPartyResource - yyc1 = true + if yyj1377 >= len(yyv1377) { + yyv1377 = append(yyv1377, ThirdPartyResource{}) // var yyz1377 ThirdPartyResource + yyc1377 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1377.ElemContainerState(yyj1377) + if yyj1377 < len(yyv1377) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResource{} + yyv1377[yyj1377] = ThirdPartyResource{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1380 := &yyv1377[yyj1377] + yyv1380.CodecDecodeSelf(d) } } else { @@ -15970,17 +16728,17 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ThirdPartyResource{} - yyc1 = true + if yyj1377 < len(yyv1377) { + yyv1377 = yyv1377[:yyj1377] + yyc1377 = true + } else if yyj1377 == 0 && yyv1377 == nil { + yyv1377 = []ThirdPartyResource{} + yyc1377 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1377.End() + if yyc1377 { + *v = yyv1377 } } @@ -15989,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 _, yyv1 := range v { + for _, yyv1381 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1382 := &yyv1381 + yy1382.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16002,86 +16760,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Deployment{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 768) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]Deployment, yyrl1) - } - } else { - yyv1 = make([]Deployment, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1383 > 0 { + var yyrr1383, yyrl1383 int + var yyrt1383 bool + if yyl1383 > cap(yyv1383) { + + 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 { + yyv1383 = make([]Deployment, yyrl1383) + } + } else { + yyv1383 = make([]Deployment, yyrl1383) + } + yyc1383 = true + yyrr1383 = len(yyv1383) + if yyrg1383 { + copy(yyv1383, yyv21383) + } + } else if yyl1383 != len(yyv1383) { + yyv1383 = yyv1383[:yyl1383] + yyc1383 = true + } + yyj1383 := 0 + for ; yyj1383 < yyrr1383; yyj1383++ { + yyh1383.ElemContainerState(yyj1383) if r.TryDecodeAsNil() { - yyv1[yyj1] = Deployment{} + yyv1383[yyj1383] = Deployment{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1384 := &yyv1383[yyj1383] + yyv1384.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Deployment{}) - yyh1.ElemContainerState(yyj1) + if yyrt1383 { + for ; yyj1383 < yyl1383; yyj1383++ { + yyv1383 = append(yyv1383, Deployment{}) + yyh1383.ElemContainerState(yyj1383) if r.TryDecodeAsNil() { - yyv1[yyj1] = Deployment{} + yyv1383[yyj1383] = Deployment{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1385 := &yyv1383[yyj1383] + yyv1385.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1383 := 0 + for ; !r.CheckBreak(); yyj1383++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Deployment{}) // var yyz1 Deployment - yyc1 = true + if yyj1383 >= len(yyv1383) { + yyv1383 = append(yyv1383, Deployment{}) // var yyz1383 Deployment + yyc1383 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1383.ElemContainerState(yyj1383) + if yyj1383 < len(yyv1383) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Deployment{} + yyv1383[yyj1383] = Deployment{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1386 := &yyv1383[yyj1383] + yyv1386.CodecDecodeSelf(d) } } else { @@ -16089,17 +16844,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Deployment{} - yyc1 = true + if yyj1383 < len(yyv1383) { + yyv1383 = yyv1383[:yyj1383] + yyc1383 = true + } else if yyj1383 == 0 && yyv1383 == nil { + yyv1383 = []Deployment{} + yyc1383 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1383.End() + if yyc1383 { + *v = yyv1383 } } @@ -16108,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 _, yyv1 := range v { + for _, yyv1387 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1388 := &yyv1387 + yy1388.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16121,86 +16876,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []DaemonSet{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 696) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]DaemonSet, yyrl1) - } - } else { - yyv1 = make([]DaemonSet, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1389 > 0 { + var yyrr1389, yyrl1389 int + var yyrt1389 bool + if yyl1389 > cap(yyv1389) { + + 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 { + yyv1389 = make([]DaemonSet, yyrl1389) + } + } else { + yyv1389 = make([]DaemonSet, yyrl1389) + } + yyc1389 = true + yyrr1389 = len(yyv1389) + if yyrg1389 { + copy(yyv1389, yyv21389) + } + } else if yyl1389 != len(yyv1389) { + yyv1389 = yyv1389[:yyl1389] + yyc1389 = true + } + yyj1389 := 0 + for ; yyj1389 < yyrr1389; yyj1389++ { + yyh1389.ElemContainerState(yyj1389) if r.TryDecodeAsNil() { - yyv1[yyj1] = DaemonSet{} + yyv1389[yyj1389] = DaemonSet{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1390 := &yyv1389[yyj1389] + yyv1390.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, DaemonSet{}) - yyh1.ElemContainerState(yyj1) + if yyrt1389 { + for ; yyj1389 < yyl1389; yyj1389++ { + yyv1389 = append(yyv1389, DaemonSet{}) + yyh1389.ElemContainerState(yyj1389) if r.TryDecodeAsNil() { - yyv1[yyj1] = DaemonSet{} + yyv1389[yyj1389] = DaemonSet{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1391 := &yyv1389[yyj1389] + yyv1391.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1389 := 0 + for ; !r.CheckBreak(); yyj1389++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, DaemonSet{}) // var yyz1 DaemonSet - yyc1 = true + if yyj1389 >= len(yyv1389) { + yyv1389 = append(yyv1389, DaemonSet{}) // var yyz1389 DaemonSet + yyc1389 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1389.ElemContainerState(yyj1389) + if yyj1389 < len(yyv1389) { if r.TryDecodeAsNil() { - yyv1[yyj1] = DaemonSet{} + yyv1389[yyj1389] = DaemonSet{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1392 := &yyv1389[yyj1389] + yyv1392.CodecDecodeSelf(d) } } else { @@ -16208,17 +16960,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []DaemonSet{} - yyc1 = true + if yyj1389 < len(yyv1389) { + yyv1389 = yyv1389[:yyj1389] + yyc1389 = true + } else if yyj1389 == 0 && yyv1389 == nil { + yyv1389 = []DaemonSet{} + yyc1389 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1389.End() + if yyc1389 { + *v = yyv1389 } } @@ -16227,10 +16979,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1393 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1394 := &yyv1393 + yy1394.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16240,86 +16992,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ThirdPartyResourceData{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]ThirdPartyResourceData, yyrl1) - } - } else { - yyv1 = make([]ThirdPartyResourceData, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1395 > 0 { + var yyrr1395, yyrl1395 int + var yyrt1395 bool + if yyl1395 > cap(yyv1395) { + + 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 { + yyv1395 = make([]ThirdPartyResourceData, yyrl1395) + } + } else { + yyv1395 = make([]ThirdPartyResourceData, yyrl1395) + } + yyc1395 = true + yyrr1395 = len(yyv1395) + if yyrg1395 { + copy(yyv1395, yyv21395) + } + } else if yyl1395 != len(yyv1395) { + yyv1395 = yyv1395[:yyl1395] + yyc1395 = true + } + yyj1395 := 0 + for ; yyj1395 < yyrr1395; yyj1395++ { + yyh1395.ElemContainerState(yyj1395) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResourceData{} + yyv1395[yyj1395] = ThirdPartyResourceData{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1396 := &yyv1395[yyj1395] + yyv1396.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ThirdPartyResourceData{}) - yyh1.ElemContainerState(yyj1) + if yyrt1395 { + for ; yyj1395 < yyl1395; yyj1395++ { + yyv1395 = append(yyv1395, ThirdPartyResourceData{}) + yyh1395.ElemContainerState(yyj1395) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResourceData{} + yyv1395[yyj1395] = ThirdPartyResourceData{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1397 := &yyv1395[yyj1395] + yyv1397.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1395 := 0 + for ; !r.CheckBreak(); yyj1395++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ThirdPartyResourceData{}) // var yyz1 ThirdPartyResourceData - yyc1 = true + if yyj1395 >= len(yyv1395) { + yyv1395 = append(yyv1395, ThirdPartyResourceData{}) // var yyz1395 ThirdPartyResourceData + yyc1395 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1395.ElemContainerState(yyj1395) + if yyj1395 < len(yyv1395) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResourceData{} + yyv1395[yyj1395] = ThirdPartyResourceData{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1398 := &yyv1395[yyj1395] + yyv1398.CodecDecodeSelf(d) } } else { @@ -16327,17 +17076,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ThirdPartyResourceData{} - yyc1 = true + if yyj1395 < len(yyv1395) { + yyv1395 = yyv1395[:yyj1395] + yyc1395 = true + } else if yyj1395 == 0 && yyv1395 == nil { + yyv1395 = []ThirdPartyResourceData{} + yyc1395 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1395.End() + if yyc1395 { + *v = yyv1395 } } @@ -16346,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 _, yyv1 := range v { + for _, yyv1399 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1400 := &yyv1399 + yy1400.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16359,86 +17108,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Ingress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 320) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]Ingress, yyrl1) - } - } else { - yyv1 = make([]Ingress, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1401 > 0 { + var yyrr1401, yyrl1401 int + var yyrt1401 bool + if yyl1401 > cap(yyv1401) { + + 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 { + yyv1401 = make([]Ingress, yyrl1401) + } + } else { + yyv1401 = make([]Ingress, yyrl1401) + } + yyc1401 = true + yyrr1401 = len(yyv1401) + if yyrg1401 { + copy(yyv1401, yyv21401) + } + } else if yyl1401 != len(yyv1401) { + yyv1401 = yyv1401[:yyl1401] + yyc1401 = true + } + yyj1401 := 0 + for ; yyj1401 < yyrr1401; yyj1401++ { + yyh1401.ElemContainerState(yyj1401) if r.TryDecodeAsNil() { - yyv1[yyj1] = Ingress{} + yyv1401[yyj1401] = Ingress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1402 := &yyv1401[yyj1401] + yyv1402.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Ingress{}) - yyh1.ElemContainerState(yyj1) + if yyrt1401 { + for ; yyj1401 < yyl1401; yyj1401++ { + yyv1401 = append(yyv1401, Ingress{}) + yyh1401.ElemContainerState(yyj1401) if r.TryDecodeAsNil() { - yyv1[yyj1] = Ingress{} + yyv1401[yyj1401] = Ingress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1403 := &yyv1401[yyj1401] + yyv1403.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1401 := 0 + for ; !r.CheckBreak(); yyj1401++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Ingress{}) // var yyz1 Ingress - yyc1 = true + if yyj1401 >= len(yyv1401) { + yyv1401 = append(yyv1401, Ingress{}) // var yyz1401 Ingress + yyc1401 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1401.ElemContainerState(yyj1401) + if yyj1401 < len(yyv1401) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Ingress{} + yyv1401[yyj1401] = Ingress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1404 := &yyv1401[yyj1401] + yyv1404.CodecDecodeSelf(d) } } else { @@ -16446,17 +17192,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Ingress{} - yyc1 = true + if yyj1401 < len(yyv1401) { + yyv1401 = yyv1401[:yyj1401] + yyc1401 = true + } else if yyj1401 == 0 && yyv1401 == nil { + yyv1401 = []Ingress{} + yyc1401 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1401.End() + if yyc1401 { + *v = yyv1401 } } @@ -16465,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 _, yyv1 := range v { + for _, yyv1405 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1406 := &yyv1405 + yy1406.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16478,86 +17224,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []IngressTLS{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]IngressTLS, yyrl1) - } - } else { - yyv1 = make([]IngressTLS, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1407 > 0 { + var yyrr1407, yyrl1407 int + var yyrt1407 bool + if yyl1407 > cap(yyv1407) { + + 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 { + yyv1407 = make([]IngressTLS, yyrl1407) + } + } else { + yyv1407 = make([]IngressTLS, yyrl1407) + } + yyc1407 = true + yyrr1407 = len(yyv1407) + if yyrg1407 { + copy(yyv1407, yyv21407) + } + } else if yyl1407 != len(yyv1407) { + yyv1407 = yyv1407[:yyl1407] + yyc1407 = true + } + yyj1407 := 0 + for ; yyj1407 < yyrr1407; yyj1407++ { + yyh1407.ElemContainerState(yyj1407) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressTLS{} + yyv1407[yyj1407] = IngressTLS{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1408 := &yyv1407[yyj1407] + yyv1408.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, IngressTLS{}) - yyh1.ElemContainerState(yyj1) + if yyrt1407 { + for ; yyj1407 < yyl1407; yyj1407++ { + yyv1407 = append(yyv1407, IngressTLS{}) + yyh1407.ElemContainerState(yyj1407) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressTLS{} + yyv1407[yyj1407] = IngressTLS{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1409 := &yyv1407[yyj1407] + yyv1409.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1407 := 0 + for ; !r.CheckBreak(); yyj1407++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, IngressTLS{}) // var yyz1 IngressTLS - yyc1 = true + if yyj1407 >= len(yyv1407) { + yyv1407 = append(yyv1407, IngressTLS{}) // var yyz1407 IngressTLS + yyc1407 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1407.ElemContainerState(yyj1407) + if yyj1407 < len(yyv1407) { if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressTLS{} + yyv1407[yyj1407] = IngressTLS{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1410 := &yyv1407[yyj1407] + yyv1410.CodecDecodeSelf(d) } } else { @@ -16565,17 +17308,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []IngressTLS{} - yyc1 = true + if yyj1407 < len(yyv1407) { + yyv1407 = yyv1407[:yyj1407] + yyc1407 = true + } else if yyj1407 == 0 && yyv1407 == nil { + yyv1407 = []IngressTLS{} + yyc1407 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1407.End() + if yyc1407 { + *v = yyv1407 } } @@ -16584,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 _, yyv1 := range v { + for _, yyv1411 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1412 := &yyv1411 + yy1412.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16597,86 +17340,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []IngressRule{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]IngressRule, yyrl1) - } - } else { - yyv1 = make([]IngressRule, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1413 > 0 { + var yyrr1413, yyrl1413 int + var yyrt1413 bool + if yyl1413 > cap(yyv1413) { + + 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 { + yyv1413 = make([]IngressRule, yyrl1413) + } + } else { + yyv1413 = make([]IngressRule, yyrl1413) + } + yyc1413 = true + yyrr1413 = len(yyv1413) + if yyrg1413 { + copy(yyv1413, yyv21413) + } + } else if yyl1413 != len(yyv1413) { + yyv1413 = yyv1413[:yyl1413] + yyc1413 = true + } + yyj1413 := 0 + for ; yyj1413 < yyrr1413; yyj1413++ { + yyh1413.ElemContainerState(yyj1413) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressRule{} + yyv1413[yyj1413] = IngressRule{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1414 := &yyv1413[yyj1413] + yyv1414.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, IngressRule{}) - yyh1.ElemContainerState(yyj1) + if yyrt1413 { + for ; yyj1413 < yyl1413; yyj1413++ { + yyv1413 = append(yyv1413, IngressRule{}) + yyh1413.ElemContainerState(yyj1413) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressRule{} + yyv1413[yyj1413] = IngressRule{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1415 := &yyv1413[yyj1413] + yyv1415.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1413 := 0 + for ; !r.CheckBreak(); yyj1413++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, IngressRule{}) // var yyz1 IngressRule - yyc1 = true + if yyj1413 >= len(yyv1413) { + yyv1413 = append(yyv1413, IngressRule{}) // var yyz1413 IngressRule + yyc1413 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1413.ElemContainerState(yyj1413) + if yyj1413 < len(yyv1413) { if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressRule{} + yyv1413[yyj1413] = IngressRule{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1416 := &yyv1413[yyj1413] + yyv1416.CodecDecodeSelf(d) } } else { @@ -16684,17 +17424,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []IngressRule{} - yyc1 = true + if yyj1413 < len(yyv1413) { + yyv1413 = yyv1413[:yyj1413] + yyc1413 = true + } else if yyj1413 == 0 && yyv1413 == nil { + yyv1413 = []IngressRule{} + yyc1413 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1413.End() + if yyc1413 { + *v = yyv1413 } } @@ -16703,10 +17443,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1417 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1418 := &yyv1417 + yy1418.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16716,86 +17456,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HTTPIngressPath{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]HTTPIngressPath, yyrl1) - } - } else { - yyv1 = make([]HTTPIngressPath, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1419 > 0 { + var yyrr1419, yyrl1419 int + var yyrt1419 bool + if yyl1419 > cap(yyv1419) { + + 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 { + yyv1419 = make([]HTTPIngressPath, yyrl1419) + } + } else { + yyv1419 = make([]HTTPIngressPath, yyrl1419) + } + yyc1419 = true + yyrr1419 = len(yyv1419) + if yyrg1419 { + copy(yyv1419, yyv21419) + } + } else if yyl1419 != len(yyv1419) { + yyv1419 = yyv1419[:yyl1419] + yyc1419 = true + } + yyj1419 := 0 + for ; yyj1419 < yyrr1419; yyj1419++ { + yyh1419.ElemContainerState(yyj1419) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPIngressPath{} + yyv1419[yyj1419] = HTTPIngressPath{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1420 := &yyv1419[yyj1419] + yyv1420.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HTTPIngressPath{}) - yyh1.ElemContainerState(yyj1) + if yyrt1419 { + for ; yyj1419 < yyl1419; yyj1419++ { + yyv1419 = append(yyv1419, HTTPIngressPath{}) + yyh1419.ElemContainerState(yyj1419) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPIngressPath{} + yyv1419[yyj1419] = HTTPIngressPath{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1421 := &yyv1419[yyj1419] + yyv1421.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1419 := 0 + for ; !r.CheckBreak(); yyj1419++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HTTPIngressPath{}) // var yyz1 HTTPIngressPath - yyc1 = true + if yyj1419 >= len(yyv1419) { + yyv1419 = append(yyv1419, HTTPIngressPath{}) // var yyz1419 HTTPIngressPath + yyc1419 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1419.ElemContainerState(yyj1419) + if yyj1419 < len(yyv1419) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPIngressPath{} + yyv1419[yyj1419] = HTTPIngressPath{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1422 := &yyv1419[yyj1419] + yyv1422.CodecDecodeSelf(d) } } else { @@ -16803,17 +17540,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HTTPIngressPath{} - yyc1 = true + if yyj1419 < len(yyv1419) { + yyv1419 = yyv1419[:yyj1419] + yyc1419 = true + } else if yyj1419 == 0 && yyv1419 == nil { + yyv1419 = []HTTPIngressPath{} + yyc1419 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1419.End() + if yyc1419 { + *v = yyv1419 } } @@ -16822,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 _, yyv1 := range v { + for _, yyv1423 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1424 := &yyv1423 + yy1424.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16835,86 +17572,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ReplicaSet{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 704) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]ReplicaSet, yyrl1) - } - } else { - yyv1 = make([]ReplicaSet, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1425 > 0 { + var yyrr1425, yyrl1425 int + var yyrt1425 bool + if yyl1425 > cap(yyv1425) { + + 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 { + yyv1425 = make([]ReplicaSet, yyrl1425) + } + } else { + yyv1425 = make([]ReplicaSet, yyrl1425) + } + yyc1425 = true + yyrr1425 = len(yyv1425) + if yyrg1425 { + copy(yyv1425, yyv21425) + } + } else if yyl1425 != len(yyv1425) { + yyv1425 = yyv1425[:yyl1425] + yyc1425 = true + } + yyj1425 := 0 + for ; yyj1425 < yyrr1425; yyj1425++ { + yyh1425.ElemContainerState(yyj1425) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicaSet{} + yyv1425[yyj1425] = ReplicaSet{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1426 := &yyv1425[yyj1425] + yyv1426.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ReplicaSet{}) - yyh1.ElemContainerState(yyj1) + if yyrt1425 { + for ; yyj1425 < yyl1425; yyj1425++ { + yyv1425 = append(yyv1425, ReplicaSet{}) + yyh1425.ElemContainerState(yyj1425) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicaSet{} + yyv1425[yyj1425] = ReplicaSet{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1427 := &yyv1425[yyj1425] + yyv1427.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1425 := 0 + for ; !r.CheckBreak(); yyj1425++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ReplicaSet{}) // var yyz1 ReplicaSet - yyc1 = true + if yyj1425 >= len(yyv1425) { + yyv1425 = append(yyv1425, ReplicaSet{}) // var yyz1425 ReplicaSet + yyc1425 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1425.ElemContainerState(yyj1425) + if yyj1425 < len(yyv1425) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicaSet{} + yyv1425[yyj1425] = ReplicaSet{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1428 := &yyv1425[yyj1425] + yyv1428.CodecDecodeSelf(d) } } else { @@ -16922,17 +17656,17 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ReplicaSet{} - yyc1 = true + if yyj1425 < len(yyv1425) { + yyv1425 = yyv1425[:yyj1425] + yyc1425 = true + } else if yyj1425 == 0 && yyv1425 == nil { + yyv1425 = []ReplicaSet{} + yyc1425 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1425.End() + if yyc1425 { + *v = yyv1425 } } @@ -16941,10 +17675,15 @@ func (x codecSelfer1234) encSliceapi_Capability(v []pkg2_api.Capability, e *code z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1429 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf2 := &yyv1 - yysf2.CodecEncodeSelf(e) + yym1430 := z.EncBinary() + _ = yym1430 + if false { + } else if z.HasExtensions() && z.EncExt(yyv1429) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyv1429)) + } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16954,78 +17693,75 @@ func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *cod z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg2_api.Capability{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]pkg2_api.Capability, yyrl1) - } - } else { - yyv1 = make([]pkg2_api.Capability, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyv1431 := *v + yyh1431, yyl1431 := z.DecSliceHelperStart() + var yyc1431 bool + if yyl1431 == 0 { + if yyv1431 == nil { + yyv1431 = []pkg2_api.Capability{} + yyc1431 = true + } else if len(yyv1431) != 0 { + yyv1431 = yyv1431[:0] + yyc1431 = true + } + } else if yyl1431 > 0 { + var yyrr1431, yyrl1431 int + var yyrt1431 bool + if yyl1431 > cap(yyv1431) { + + yyrl1431, yyrt1431 = z.DecInferLen(yyl1431, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1431 { + if yyrl1431 <= cap(yyv1431) { + yyv1431 = yyv1431[:yyrl1431] + } else { + yyv1431 = make([]pkg2_api.Capability, yyrl1431) + } + } else { + yyv1431 = make([]pkg2_api.Capability, yyrl1431) + } + yyc1431 = true + yyrr1431 = len(yyv1431) + } else if yyl1431 != len(yyv1431) { + yyv1431 = yyv1431[:yyl1431] + yyc1431 = true + } + yyj1431 := 0 + for ; yyj1431 < yyrr1431; yyj1431++ { + yyh1431.ElemContainerState(yyj1431) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1431[yyj1431] = "" } else { - yyv1[yyj1] = pkg2_api.Capability(r.DecodeString()) + yyv1431[yyj1431] = pkg2_api.Capability(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt1431 { + for ; yyj1431 < yyl1431; yyj1431++ { + yyv1431 = append(yyv1431, "") + yyh1431.ElemContainerState(yyj1431) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1431[yyj1431] = "" } else { - yyv1[yyj1] = pkg2_api.Capability(r.DecodeString()) + yyv1431[yyj1431] = pkg2_api.Capability(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1431 := 0 + for ; !r.CheckBreak(); yyj1431++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 pkg2_api.Capability - yyc1 = true + if yyj1431 >= len(yyv1431) { + yyv1431 = append(yyv1431, "") // var yyz1431 pkg2_api.Capability + yyc1431 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1431.ElemContainerState(yyj1431) + if yyj1431 < len(yyv1431) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1431[yyj1431] = "" } else { - yyv1[yyj1] = pkg2_api.Capability(r.DecodeString()) + yyv1431[yyj1431] = pkg2_api.Capability(r.DecodeString()) } } else { @@ -17033,17 +17769,17 @@ func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *cod } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg2_api.Capability{} - yyc1 = true + if yyj1431 < len(yyv1431) { + yyv1431 = yyv1431[:yyj1431] + yyc1431 = true + } else if yyj1431 == 0 && yyv1431 == nil { + yyv1431 = []pkg2_api.Capability{} + yyc1431 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1431.End() + if yyc1431 { + *v = yyv1431 } } @@ -17052,9 +17788,9 @@ func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1435 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv1435.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17064,78 +17800,75 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []FSType{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]FSType, yyrl1) - } - } else { - yyv1 = make([]FSType, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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() { - yyv1[yyj1] = "" + yyv1436[yyj1436] = "" } else { - yyv1[yyj1] = FSType(r.DecodeString()) + yyv1436[yyj1436] = FSType(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt1436 { + for ; yyj1436 < yyl1436; yyj1436++ { + yyv1436 = append(yyv1436, "") + yyh1436.ElemContainerState(yyj1436) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1436[yyj1436] = "" } else { - yyv1[yyj1] = FSType(r.DecodeString()) + yyv1436[yyj1436] = FSType(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1436 := 0 + for ; !r.CheckBreak(); yyj1436++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 FSType - yyc1 = true + if yyj1436 >= len(yyv1436) { + yyv1436 = append(yyv1436, "") // var yyz1436 FSType + yyc1436 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1436.ElemContainerState(yyj1436) + if yyj1436 < len(yyv1436) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1436[yyj1436] = "" } else { - yyv1[yyj1] = FSType(r.DecodeString()) + yyv1436[yyj1436] = FSType(r.DecodeString()) } } else { @@ -17143,17 +17876,17 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []FSType{} - yyc1 = true + if yyj1436 < len(yyv1436) { + yyv1436 = yyv1436[:yyj1436] + yyc1436 = true + } else if yyj1436 == 0 && yyv1436 == nil { + yyv1436 = []FSType{} + yyc1436 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1436.End() + if yyc1436 { + *v = yyv1436 } } @@ -17162,10 +17895,10 @@ func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1440 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1441 := &yyv1440 + yy1441.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17175,86 +17908,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HostPortRange{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]HostPortRange, yyrl1) - } - } else { - yyv1 = make([]HostPortRange, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1442 > 0 { + var yyrr1442, yyrl1442 int + var yyrt1442 bool + if yyl1442 > cap(yyv1442) { + + 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 { + yyv1442 = make([]HostPortRange, yyrl1442) + } + } else { + yyv1442 = make([]HostPortRange, yyrl1442) + } + yyc1442 = true + yyrr1442 = len(yyv1442) + if yyrg1442 { + copy(yyv1442, yyv21442) + } + } else if yyl1442 != len(yyv1442) { + yyv1442 = yyv1442[:yyl1442] + yyc1442 = true + } + yyj1442 := 0 + for ; yyj1442 < yyrr1442; yyj1442++ { + yyh1442.ElemContainerState(yyj1442) if r.TryDecodeAsNil() { - yyv1[yyj1] = HostPortRange{} + yyv1442[yyj1442] = HostPortRange{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1443 := &yyv1442[yyj1442] + yyv1443.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HostPortRange{}) - yyh1.ElemContainerState(yyj1) + if yyrt1442 { + for ; yyj1442 < yyl1442; yyj1442++ { + yyv1442 = append(yyv1442, HostPortRange{}) + yyh1442.ElemContainerState(yyj1442) if r.TryDecodeAsNil() { - yyv1[yyj1] = HostPortRange{} + yyv1442[yyj1442] = HostPortRange{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1444 := &yyv1442[yyj1442] + yyv1444.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1442 := 0 + for ; !r.CheckBreak(); yyj1442++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HostPortRange{}) // var yyz1 HostPortRange - yyc1 = true + if yyj1442 >= len(yyv1442) { + yyv1442 = append(yyv1442, HostPortRange{}) // var yyz1442 HostPortRange + yyc1442 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1442.ElemContainerState(yyj1442) + if yyj1442 < len(yyv1442) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HostPortRange{} + yyv1442[yyj1442] = HostPortRange{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1445 := &yyv1442[yyj1442] + yyv1445.CodecDecodeSelf(d) } } else { @@ -17262,17 +17992,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HostPortRange{} - yyc1 = true + if yyj1442 < len(yyv1442) { + yyv1442 = yyv1442[:yyj1442] + yyc1442 = true + } else if yyj1442 == 0 && yyv1442 == nil { + yyv1442 = []HostPortRange{} + yyc1442 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1442.End() + if yyc1442 { + *v = yyv1442 } } @@ -17281,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 _, yyv1 := range v { + for _, yyv1446 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1447 := &yyv1446 + yy1447.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17294,86 +18024,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []IDRange{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]IDRange, yyrl1) - } - } else { - yyv1 = make([]IDRange, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1448 > 0 { + var yyrr1448, yyrl1448 int + var yyrt1448 bool + if yyl1448 > cap(yyv1448) { + + 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 { + yyv1448 = make([]IDRange, yyrl1448) + } + } else { + yyv1448 = make([]IDRange, yyrl1448) + } + yyc1448 = true + yyrr1448 = len(yyv1448) + if yyrg1448 { + copy(yyv1448, yyv21448) + } + } else if yyl1448 != len(yyv1448) { + yyv1448 = yyv1448[:yyl1448] + yyc1448 = true + } + yyj1448 := 0 + for ; yyj1448 < yyrr1448; yyj1448++ { + yyh1448.ElemContainerState(yyj1448) if r.TryDecodeAsNil() { - yyv1[yyj1] = IDRange{} + yyv1448[yyj1448] = IDRange{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1449 := &yyv1448[yyj1448] + yyv1449.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, IDRange{}) - yyh1.ElemContainerState(yyj1) + if yyrt1448 { + for ; yyj1448 < yyl1448; yyj1448++ { + yyv1448 = append(yyv1448, IDRange{}) + yyh1448.ElemContainerState(yyj1448) if r.TryDecodeAsNil() { - yyv1[yyj1] = IDRange{} + yyv1448[yyj1448] = IDRange{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1450 := &yyv1448[yyj1448] + yyv1450.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1448 := 0 + for ; !r.CheckBreak(); yyj1448++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, IDRange{}) // var yyz1 IDRange - yyc1 = true + if yyj1448 >= len(yyv1448) { + yyv1448 = append(yyv1448, IDRange{}) // var yyz1448 IDRange + yyc1448 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1448.ElemContainerState(yyj1448) + if yyj1448 < len(yyv1448) { if r.TryDecodeAsNil() { - yyv1[yyj1] = IDRange{} + yyv1448[yyj1448] = IDRange{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1451 := &yyv1448[yyj1448] + yyv1451.CodecDecodeSelf(d) } } else { @@ -17381,17 +18108,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []IDRange{} - yyc1 = true + if yyj1448 < len(yyv1448) { + yyv1448 = yyv1448[:yyj1448] + yyc1448 = true + } else if yyj1448 == 0 && yyv1448 == nil { + yyv1448 = []IDRange{} + yyc1448 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1448.End() + if yyc1448 { + *v = yyv1448 } } @@ -17400,10 +18127,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1452 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1453 := &yyv1452 + yy1453.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17413,86 +18140,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodSecurityPolicy{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 536) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]PodSecurityPolicy, yyrl1) - } - } else { - yyv1 = make([]PodSecurityPolicy, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1454 > 0 { + var yyrr1454, yyrl1454 int + var yyrt1454 bool + if yyl1454 > cap(yyv1454) { + + 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 { + yyv1454 = make([]PodSecurityPolicy, yyrl1454) + } + } else { + yyv1454 = make([]PodSecurityPolicy, yyrl1454) + } + yyc1454 = true + yyrr1454 = len(yyv1454) + if yyrg1454 { + copy(yyv1454, yyv21454) + } + } else if yyl1454 != len(yyv1454) { + yyv1454 = yyv1454[:yyl1454] + yyc1454 = true + } + yyj1454 := 0 + for ; yyj1454 < yyrr1454; yyj1454++ { + yyh1454.ElemContainerState(yyj1454) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodSecurityPolicy{} + yyv1454[yyj1454] = PodSecurityPolicy{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1455 := &yyv1454[yyj1454] + yyv1455.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodSecurityPolicy{}) - yyh1.ElemContainerState(yyj1) + if yyrt1454 { + for ; yyj1454 < yyl1454; yyj1454++ { + yyv1454 = append(yyv1454, PodSecurityPolicy{}) + yyh1454.ElemContainerState(yyj1454) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodSecurityPolicy{} + yyv1454[yyj1454] = PodSecurityPolicy{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1456 := &yyv1454[yyj1454] + yyv1456.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1454 := 0 + for ; !r.CheckBreak(); yyj1454++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodSecurityPolicy{}) // var yyz1 PodSecurityPolicy - yyc1 = true + if yyj1454 >= len(yyv1454) { + yyv1454 = append(yyv1454, PodSecurityPolicy{}) // var yyz1454 PodSecurityPolicy + yyc1454 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1454.ElemContainerState(yyj1454) + if yyj1454 < len(yyv1454) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodSecurityPolicy{} + yyv1454[yyj1454] = PodSecurityPolicy{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1457 := &yyv1454[yyj1454] + yyv1457.CodecDecodeSelf(d) } } else { @@ -17500,17 +18224,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodSecurityPolicy{} - yyc1 = true + if yyj1454 < len(yyv1454) { + yyv1454 = yyv1454[:yyj1454] + yyc1454 = true + } else if yyj1454 == 0 && yyv1454 == nil { + yyv1454 = []PodSecurityPolicy{} + yyc1454 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1454.End() + if yyc1454 { + *v = yyv1454 } } @@ -17519,10 +18243,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1458 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1459 := &yyv1458 + yy1459.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17532,86 +18256,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicyIngressRule{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]NetworkPolicyIngressRule, yyrl1) - } - } else { - yyv1 = make([]NetworkPolicyIngressRule, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1460 > 0 { + var yyrr1460, yyrl1460 int + var yyrt1460 bool + if yyl1460 > cap(yyv1460) { + + 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 { + yyv1460 = make([]NetworkPolicyIngressRule, yyrl1460) + } + } else { + yyv1460 = make([]NetworkPolicyIngressRule, yyrl1460) + } + yyc1460 = true + yyrr1460 = len(yyv1460) + if yyrg1460 { + copy(yyv1460, yyv21460) + } + } else if yyl1460 != len(yyv1460) { + yyv1460 = yyv1460[:yyl1460] + yyc1460 = true + } + yyj1460 := 0 + for ; yyj1460 < yyrr1460; yyj1460++ { + yyh1460.ElemContainerState(yyj1460) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyIngressRule{} + yyv1460[yyj1460] = NetworkPolicyIngressRule{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1461 := &yyv1460[yyj1460] + yyv1461.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicyIngressRule{}) - yyh1.ElemContainerState(yyj1) + if yyrt1460 { + for ; yyj1460 < yyl1460; yyj1460++ { + yyv1460 = append(yyv1460, NetworkPolicyIngressRule{}) + yyh1460.ElemContainerState(yyj1460) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyIngressRule{} + yyv1460[yyj1460] = NetworkPolicyIngressRule{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1462 := &yyv1460[yyj1460] + yyv1462.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1460 := 0 + for ; !r.CheckBreak(); yyj1460++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicyIngressRule{}) // var yyz1 NetworkPolicyIngressRule - yyc1 = true + if yyj1460 >= len(yyv1460) { + yyv1460 = append(yyv1460, NetworkPolicyIngressRule{}) // var yyz1460 NetworkPolicyIngressRule + yyc1460 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1460.ElemContainerState(yyj1460) + if yyj1460 < len(yyv1460) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyIngressRule{} + yyv1460[yyj1460] = NetworkPolicyIngressRule{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1463 := &yyv1460[yyj1460] + yyv1463.CodecDecodeSelf(d) } } else { @@ -17619,17 +18340,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicyIngressRule{} - yyc1 = true + if yyj1460 < len(yyv1460) { + yyv1460 = yyv1460[:yyj1460] + yyc1460 = true + } else if yyj1460 == 0 && yyv1460 == nil { + yyv1460 = []NetworkPolicyIngressRule{} + yyc1460 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1460.End() + if yyc1460 { + *v = yyv1460 } } @@ -17638,10 +18359,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1464 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1465 := &yyv1464 + yy1465.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17651,86 +18372,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicyPort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]NetworkPolicyPort, yyrl1) - } - } else { - yyv1 = make([]NetworkPolicyPort, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1466 > 0 { + var yyrr1466, yyrl1466 int + var yyrt1466 bool + if yyl1466 > cap(yyv1466) { + + 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 { + yyv1466 = make([]NetworkPolicyPort, yyrl1466) + } + } else { + yyv1466 = make([]NetworkPolicyPort, yyrl1466) + } + yyc1466 = true + yyrr1466 = len(yyv1466) + if yyrg1466 { + copy(yyv1466, yyv21466) + } + } else if yyl1466 != len(yyv1466) { + yyv1466 = yyv1466[:yyl1466] + yyc1466 = true + } + yyj1466 := 0 + for ; yyj1466 < yyrr1466; yyj1466++ { + yyh1466.ElemContainerState(yyj1466) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPort{} + yyv1466[yyj1466] = NetworkPolicyPort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1467 := &yyv1466[yyj1466] + yyv1467.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicyPort{}) - yyh1.ElemContainerState(yyj1) + if yyrt1466 { + for ; yyj1466 < yyl1466; yyj1466++ { + yyv1466 = append(yyv1466, NetworkPolicyPort{}) + yyh1466.ElemContainerState(yyj1466) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPort{} + yyv1466[yyj1466] = NetworkPolicyPort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1468 := &yyv1466[yyj1466] + yyv1468.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1466 := 0 + for ; !r.CheckBreak(); yyj1466++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicyPort{}) // var yyz1 NetworkPolicyPort - yyc1 = true + if yyj1466 >= len(yyv1466) { + yyv1466 = append(yyv1466, NetworkPolicyPort{}) // var yyz1466 NetworkPolicyPort + yyc1466 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1466.ElemContainerState(yyj1466) + if yyj1466 < len(yyv1466) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPort{} + yyv1466[yyj1466] = NetworkPolicyPort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1469 := &yyv1466[yyj1466] + yyv1469.CodecDecodeSelf(d) } } else { @@ -17738,17 +18456,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicyPort{} - yyc1 = true + if yyj1466 < len(yyv1466) { + yyv1466 = yyv1466[:yyj1466] + yyc1466 = true + } else if yyj1466 == 0 && yyv1466 == nil { + yyv1466 = []NetworkPolicyPort{} + yyc1466 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1466.End() + if yyc1466 { + *v = yyv1466 } } @@ -17757,10 +18475,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1470 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1471 := &yyv1470 + yy1471.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17770,86 +18488,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicyPeer{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]NetworkPolicyPeer, yyrl1) - } - } else { - yyv1 = make([]NetworkPolicyPeer, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1472 > 0 { + var yyrr1472, yyrl1472 int + var yyrt1472 bool + if yyl1472 > cap(yyv1472) { + + 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 { + yyv1472 = make([]NetworkPolicyPeer, yyrl1472) + } + } else { + yyv1472 = make([]NetworkPolicyPeer, yyrl1472) + } + yyc1472 = true + yyrr1472 = len(yyv1472) + if yyrg1472 { + copy(yyv1472, yyv21472) + } + } else if yyl1472 != len(yyv1472) { + yyv1472 = yyv1472[:yyl1472] + yyc1472 = true + } + yyj1472 := 0 + for ; yyj1472 < yyrr1472; yyj1472++ { + yyh1472.ElemContainerState(yyj1472) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPeer{} + yyv1472[yyj1472] = NetworkPolicyPeer{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1473 := &yyv1472[yyj1472] + yyv1473.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicyPeer{}) - yyh1.ElemContainerState(yyj1) + if yyrt1472 { + for ; yyj1472 < yyl1472; yyj1472++ { + yyv1472 = append(yyv1472, NetworkPolicyPeer{}) + yyh1472.ElemContainerState(yyj1472) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPeer{} + yyv1472[yyj1472] = NetworkPolicyPeer{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1474 := &yyv1472[yyj1472] + yyv1474.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1472 := 0 + for ; !r.CheckBreak(); yyj1472++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicyPeer{}) // var yyz1 NetworkPolicyPeer - yyc1 = true + if yyj1472 >= len(yyv1472) { + yyv1472 = append(yyv1472, NetworkPolicyPeer{}) // var yyz1472 NetworkPolicyPeer + yyc1472 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1472.ElemContainerState(yyj1472) + if yyj1472 < len(yyv1472) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPeer{} + yyv1472[yyj1472] = NetworkPolicyPeer{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1475 := &yyv1472[yyj1472] + yyv1475.CodecDecodeSelf(d) } } else { @@ -17857,17 +18572,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicyPeer{} - yyc1 = true + if yyj1472 < len(yyv1472) { + yyv1472 = yyv1472[:yyj1472] + yyc1472 = true + } else if yyj1472 == 0 && yyv1472 == nil { + yyv1472 = []NetworkPolicyPeer{} + yyc1472 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1472.End() + if yyc1472 { + *v = yyv1472 } } @@ -17876,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 _, yyv1 := range v { + for _, yyv1476 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1477 := &yyv1476 + yy1477.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17889,86 +18604,199 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicy{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]NetworkPolicy, yyrl1) - } - } else { - yyv1 = make([]NetworkPolicy, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + 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 yyl1478 > 0 { + var yyrr1478, yyrl1478 int + var yyrt1478 bool + if yyl1478 > cap(yyv1478) { + + 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 { + yyv1478 = make([]NetworkPolicy, yyrl1478) + } + } else { + yyv1478 = make([]NetworkPolicy, yyrl1478) + } + yyc1478 = true + yyrr1478 = len(yyv1478) + if yyrg1478 { + copy(yyv1478, yyv21478) + } + } else if yyl1478 != len(yyv1478) { + yyv1478 = yyv1478[:yyl1478] + yyc1478 = true + } + yyj1478 := 0 + for ; yyj1478 < yyrr1478; yyj1478++ { + yyh1478.ElemContainerState(yyj1478) + if r.TryDecodeAsNil() { + yyv1478[yyj1478] = NetworkPolicy{} + } else { + yyv1479 := &yyv1478[yyj1478] + yyv1479.CodecDecodeSelf(d) + } + + } + if yyrt1478 { + for ; yyj1478 < yyl1478; yyj1478++ { + yyv1478 = append(yyv1478, NetworkPolicy{}) + yyh1478.ElemContainerState(yyj1478) + if r.TryDecodeAsNil() { + yyv1478[yyj1478] = NetworkPolicy{} + } else { + yyv1480 := &yyv1478[yyj1478] + yyv1480.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1478 := 0 + for ; !r.CheckBreak(); yyj1478++ { + + if yyj1478 >= len(yyv1478) { + yyv1478 = append(yyv1478, NetworkPolicy{}) // var yyz1478 NetworkPolicy + yyc1478 = true + } + yyh1478.ElemContainerState(yyj1478) + if yyj1478 < len(yyv1478) { + if r.TryDecodeAsNil() { + yyv1478[yyj1478] = NetworkPolicy{} + } else { + yyv1481 := &yyv1478[yyj1478] + yyv1481.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1478 < len(yyv1478) { + yyv1478 = yyv1478[:yyj1478] + yyc1478 = true + } else if yyj1478 == 0 && yyv1478 == nil { + yyv1478 = []NetworkPolicy{} + yyc1478 = true + } + } + yyh1478.End() + if yyc1478 { + *v = yyv1478 + } +} + +func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1482 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1483 := &yyv1482 + yy1483.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + 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 yyl1484 > 0 { + var yyrr1484, yyrl1484 int + var yyrt1484 bool + if yyl1484 > cap(yyv1484) { + + 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 { + yyv1484 = make([]StorageClass, yyrl1484) + } + } else { + yyv1484 = make([]StorageClass, yyrl1484) + } + yyc1484 = true + yyrr1484 = len(yyv1484) + if yyrg1484 { + copy(yyv1484, yyv21484) + } + } else if yyl1484 != len(yyv1484) { + yyv1484 = yyv1484[:yyl1484] + yyc1484 = true + } + yyj1484 := 0 + for ; yyj1484 < yyrr1484; yyj1484++ { + yyh1484.ElemContainerState(yyj1484) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicy{} + yyv1484[yyj1484] = StorageClass{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1485 := &yyv1484[yyj1484] + yyv1485.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicy{}) - yyh1.ElemContainerState(yyj1) + if yyrt1484 { + for ; yyj1484 < yyl1484; yyj1484++ { + yyv1484 = append(yyv1484, StorageClass{}) + yyh1484.ElemContainerState(yyj1484) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicy{} + yyv1484[yyj1484] = StorageClass{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1486 := &yyv1484[yyj1484] + yyv1486.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1484 := 0 + for ; !r.CheckBreak(); yyj1484++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicy{}) // var yyz1 NetworkPolicy - yyc1 = true + if yyj1484 >= len(yyv1484) { + yyv1484 = append(yyv1484, StorageClass{}) // var yyz1484 StorageClass + yyc1484 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1484.ElemContainerState(yyj1484) + if yyj1484 < len(yyv1484) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicy{} + yyv1484[yyj1484] = StorageClass{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1487 := &yyv1484[yyj1484] + yyv1487.CodecDecodeSelf(d) } } else { @@ -17976,16 +18804,16 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicy{} - yyc1 = true + if yyj1484 < len(yyv1484) { + yyv1484 = yyv1484[:yyj1484] + yyc1484 = true + } else if yyj1484 == 0 && yyv1484 == nil { + yyv1484 = []StorageClass{} + yyc1484 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1484.End() + if yyc1484 { + *v = yyv1484 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.go index 8c73db72ea..f98a10ebdd 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.go @@ -35,6 +35,13 @@ import ( "k8s.io/kubernetes/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. @@ -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 = "*" ) @@ -899,3 +911,41 @@ type NetworkPolicyList struct { Items []NetworkPolicy `json:"items"` } + +// +genclient=true +// +nonNamespaced=true + +// StorageClass describes a named "class" of storage offered in a cluster. +// Different classes might map to quality-of-service levels, or to backup policies, +// or to arbitrary policies determined by the cluster administrators. Kubernetes +// itself is unopinionated about what classes represent. This concept is sometimes +// called "profiles" in other storage systems. +// The name of a StorageClass object is significant, and is how users can request a particular class. +type StorageClass struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // provisioner is the driver expected to handle this StorageClass. + // This is an optionally-prefixed name, like a label key. + // For example: "kubernetes.io/gce-pd" or "kubernetes.io/aws-ebs". + // This value may not be empty. + Provisioner string `json:"provisioner"` + + // parameters holds parameters for the provisioner. + // These values are opaque to the system and are passed directly + // to the provisioner. The only validation done on keys is that they are + // not empty. The maximum number of parameters is + // 512, with a cumulative max size of 256K + Parameters map[string]string `json:"parameters,omitempty"` +} + +// StorageClassList is a collection of storage classes. +type StorageClassList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of StorageClasses + Items []StorageClass `json:"items"` +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go index d685ebfee5..e9d2391489 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go @@ -30,7 +30,7 @@ import ( "k8s.io/kubernetes/pkg/util/intstr" ) -func addConversionFuncs(scheme *runtime.Scheme) { +func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions err := scheme.AddConversionFuncs( Convert_extensions_ScaleStatus_To_v1beta1_ScaleStatus, @@ -53,12 +53,12 @@ func addConversionFuncs(scheme *runtime.Scheme) { Convert_v1beta1_JobSpec_To_batch_JobSpec, ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } // 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 { @@ -67,14 +67,14 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label %q not supported for %q", label, kind) } - }) + }, + ) if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) + return err } } - err = api.Scheme.AddFieldLabelConversionFunc("extensions/v1beta1", "Job", + return api.Scheme.AddFieldLabelConversionFunc("extensions/v1beta1", "Job", func(label, value string) (string, string, error) { switch label { case "metadata.name", "metadata.namespace", "status.successful": @@ -82,11 +82,8 @@ func addConversionFuncs(scheme *runtime.Scheme) { default: return "", "", fmt.Errorf("field label not supported: %s", label) } - }) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } + }, + ) } func Convert_extensions_ScaleStatus_To_v1beta1_ScaleStatus(in *extensions.ScaleStatus, out *ScaleStatus, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/deep_copy_generated.go deleted file mode 100644 index b7e43ed882..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/deep_copy_generated.go +++ /dev/null @@ -1,1170 +0,0 @@ -// +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 v1beta1 - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" - intstr "k8s.io/kubernetes/pkg/util/intstr" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1beta1_APIVersion, - DeepCopy_v1beta1_CPUTargetUtilization, - DeepCopy_v1beta1_CustomMetricCurrentStatus, - DeepCopy_v1beta1_CustomMetricCurrentStatusList, - DeepCopy_v1beta1_CustomMetricTarget, - DeepCopy_v1beta1_CustomMetricTargetList, - DeepCopy_v1beta1_DaemonSet, - DeepCopy_v1beta1_DaemonSetList, - DeepCopy_v1beta1_DaemonSetSpec, - DeepCopy_v1beta1_DaemonSetStatus, - DeepCopy_v1beta1_Deployment, - DeepCopy_v1beta1_DeploymentList, - DeepCopy_v1beta1_DeploymentRollback, - DeepCopy_v1beta1_DeploymentSpec, - DeepCopy_v1beta1_DeploymentStatus, - DeepCopy_v1beta1_DeploymentStrategy, - DeepCopy_v1beta1_ExportOptions, - DeepCopy_v1beta1_FSGroupStrategyOptions, - DeepCopy_v1beta1_HTTPIngressPath, - DeepCopy_v1beta1_HTTPIngressRuleValue, - DeepCopy_v1beta1_HorizontalPodAutoscaler, - DeepCopy_v1beta1_HorizontalPodAutoscalerList, - DeepCopy_v1beta1_HorizontalPodAutoscalerSpec, - DeepCopy_v1beta1_HorizontalPodAutoscalerStatus, - DeepCopy_v1beta1_HostPortRange, - DeepCopy_v1beta1_IDRange, - DeepCopy_v1beta1_Ingress, - DeepCopy_v1beta1_IngressBackend, - DeepCopy_v1beta1_IngressList, - DeepCopy_v1beta1_IngressRule, - DeepCopy_v1beta1_IngressRuleValue, - DeepCopy_v1beta1_IngressSpec, - DeepCopy_v1beta1_IngressStatus, - DeepCopy_v1beta1_IngressTLS, - DeepCopy_v1beta1_Job, - DeepCopy_v1beta1_JobCondition, - DeepCopy_v1beta1_JobList, - DeepCopy_v1beta1_JobSpec, - DeepCopy_v1beta1_JobStatus, - DeepCopy_v1beta1_LabelSelector, - DeepCopy_v1beta1_LabelSelectorRequirement, - DeepCopy_v1beta1_ListOptions, - DeepCopy_v1beta1_NetworkPolicy, - DeepCopy_v1beta1_NetworkPolicyIngressRule, - DeepCopy_v1beta1_NetworkPolicyList, - DeepCopy_v1beta1_NetworkPolicyPeer, - DeepCopy_v1beta1_NetworkPolicyPort, - DeepCopy_v1beta1_NetworkPolicySpec, - DeepCopy_v1beta1_PodSecurityPolicy, - DeepCopy_v1beta1_PodSecurityPolicyList, - DeepCopy_v1beta1_PodSecurityPolicySpec, - DeepCopy_v1beta1_ReplicaSet, - DeepCopy_v1beta1_ReplicaSetList, - DeepCopy_v1beta1_ReplicaSetSpec, - DeepCopy_v1beta1_ReplicaSetStatus, - DeepCopy_v1beta1_ReplicationControllerDummy, - DeepCopy_v1beta1_RollbackConfig, - DeepCopy_v1beta1_RollingUpdateDeployment, - DeepCopy_v1beta1_RunAsUserStrategyOptions, - DeepCopy_v1beta1_SELinuxStrategyOptions, - DeepCopy_v1beta1_Scale, - DeepCopy_v1beta1_ScaleSpec, - DeepCopy_v1beta1_ScaleStatus, - DeepCopy_v1beta1_SubresourceReference, - DeepCopy_v1beta1_SupplementalGroupsStrategyOptions, - DeepCopy_v1beta1_ThirdPartyResource, - DeepCopy_v1beta1_ThirdPartyResourceData, - DeepCopy_v1beta1_ThirdPartyResourceDataList, - DeepCopy_v1beta1_ThirdPartyResourceList, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1beta1_APIVersion(in APIVersion, out *APIVersion, c *conversion.Cloner) error { - out.Name = in.Name - return nil -} - -func DeepCopy_v1beta1_CPUTargetUtilization(in CPUTargetUtilization, out *CPUTargetUtilization, c *conversion.Cloner) error { - out.TargetPercentage = in.TargetPercentage - return nil -} - -func DeepCopy_v1beta1_CustomMetricCurrentStatus(in CustomMetricCurrentStatus, out *CustomMetricCurrentStatus, c *conversion.Cloner) error { - out.Name = in.Name - out.CurrentValue = in.CurrentValue.DeepCopy() - return nil -} - -func DeepCopy_v1beta1_CustomMetricCurrentStatusList(in CustomMetricCurrentStatusList, out *CustomMetricCurrentStatusList, c *conversion.Cloner) error { - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]CustomMetricCurrentStatus, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_CustomMetricCurrentStatus(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_CustomMetricTarget(in CustomMetricTarget, out *CustomMetricTarget, c *conversion.Cloner) error { - out.Name = in.Name - out.TargetValue = in.TargetValue.DeepCopy() - return nil -} - -func DeepCopy_v1beta1_CustomMetricTargetList(in CustomMetricTargetList, out *CustomMetricTargetList, c *conversion.Cloner) error { - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]CustomMetricTarget, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_CustomMetricTarget(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_DaemonSet(in DaemonSet, out *DaemonSet, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_DaemonSetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1beta1_DaemonSetList(in DaemonSetList, out *DaemonSetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]DaemonSet, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_DaemonSet(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_DaemonSetSpec(in DaemonSetSpec, out *DaemonSetSpec, c *conversion.Cloner) error { - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_DaemonSetStatus(in DaemonSetStatus, out *DaemonSetStatus, c *conversion.Cloner) error { - out.CurrentNumberScheduled = in.CurrentNumberScheduled - out.NumberMisscheduled = in.NumberMisscheduled - out.DesiredNumberScheduled = in.DesiredNumberScheduled - return nil -} - -func DeepCopy_v1beta1_Deployment(in Deployment, out *Deployment, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_DeploymentSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1beta1_DeploymentList(in DeploymentList, out *DeploymentList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Deployment, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_Deployment(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_DeploymentRollback(in DeploymentRollback, out *DeploymentRollback, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Name = in.Name - if in.UpdatedAnnotations != nil { - in, out := in.UpdatedAnnotations, &out.UpdatedAnnotations - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.UpdatedAnnotations = nil - } - out.RollbackTo = in.RollbackTo - return nil -} - -func DeepCopy_v1beta1_DeploymentSpec(in DeploymentSpec, out *DeploymentSpec, c *conversion.Cloner) error { - if in.Replicas != nil { - in, out := in.Replicas, &out.Replicas - *out = new(int32) - **out = *in - } else { - out.Replicas = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_DeploymentStrategy(in.Strategy, &out.Strategy, c); err != nil { - return err - } - out.MinReadySeconds = in.MinReadySeconds - if in.RevisionHistoryLimit != nil { - in, out := in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = *in - } else { - out.RevisionHistoryLimit = nil - } - out.Paused = in.Paused - if in.RollbackTo != nil { - in, out := in.RollbackTo, &out.RollbackTo - *out = new(RollbackConfig) - **out = *in - } else { - out.RollbackTo = nil - } - return nil -} - -func DeepCopy_v1beta1_DeploymentStatus(in DeploymentStatus, out *DeploymentStatus, c *conversion.Cloner) error { - out.ObservedGeneration = in.ObservedGeneration - out.Replicas = in.Replicas - out.UpdatedReplicas = in.UpdatedReplicas - out.AvailableReplicas = in.AvailableReplicas - out.UnavailableReplicas = in.UnavailableReplicas - return nil -} - -func DeepCopy_v1beta1_DeploymentStrategy(in DeploymentStrategy, out *DeploymentStrategy, c *conversion.Cloner) error { - out.Type = in.Type - if in.RollingUpdate != nil { - in, out := in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDeployment) - if err := DeepCopy_v1beta1_RollingUpdateDeployment(*in, *out, c); err != nil { - return err - } - } else { - out.RollingUpdate = nil - } - return nil -} - -func DeepCopy_v1beta1_ExportOptions(in ExportOptions, out *ExportOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.Export = in.Export - out.Exact = in.Exact - return nil -} - -func DeepCopy_v1beta1_FSGroupStrategyOptions(in FSGroupStrategyOptions, out *FSGroupStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.Ranges != nil { - in, out := in.Ranges, &out.Ranges - *out = make([]IDRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ranges = nil - } - return nil -} - -func DeepCopy_v1beta1_HTTPIngressPath(in HTTPIngressPath, out *HTTPIngressPath, c *conversion.Cloner) error { - out.Path = in.Path - out.Backend = in.Backend - return nil -} - -func DeepCopy_v1beta1_HTTPIngressRuleValue(in HTTPIngressRuleValue, out *HTTPIngressRuleValue, c *conversion.Cloner) error { - if in.Paths != nil { - in, out := in.Paths, &out.Paths - *out = make([]HTTPIngressPath, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Paths = nil - } - return nil -} - -func DeepCopy_v1beta1_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_HorizontalPodAutoscalerSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]HorizontalPodAutoscaler, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_HorizontalPodAutoscaler(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, c *conversion.Cloner) error { - out.ScaleRef = in.ScaleRef - if in.MinReplicas != nil { - in, out := in.MinReplicas, &out.MinReplicas - *out = new(int32) - **out = *in - } else { - out.MinReplicas = nil - } - out.MaxReplicas = in.MaxReplicas - if in.CPUUtilization != nil { - in, out := in.CPUUtilization, &out.CPUUtilization - *out = new(CPUTargetUtilization) - **out = *in - } else { - out.CPUUtilization = nil - } - return nil -} - -func DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error { - if in.ObservedGeneration != nil { - in, out := in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = *in - } else { - out.ObservedGeneration = nil - } - if in.LastScaleTime != nil { - in, out := in.LastScaleTime, &out.LastScaleTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.LastScaleTime = nil - } - out.CurrentReplicas = in.CurrentReplicas - out.DesiredReplicas = in.DesiredReplicas - if in.CurrentCPUUtilizationPercentage != nil { - in, out := in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage - *out = new(int32) - **out = *in - } else { - out.CurrentCPUUtilizationPercentage = nil - } - return nil -} - -func DeepCopy_v1beta1_HostPortRange(in HostPortRange, out *HostPortRange, c *conversion.Cloner) error { - out.Min = in.Min - out.Max = in.Max - return nil -} - -func DeepCopy_v1beta1_IDRange(in IDRange, out *IDRange, c *conversion.Cloner) error { - out.Min = in.Min - out.Max = in.Max - return nil -} - -func DeepCopy_v1beta1_Ingress(in Ingress, out *Ingress, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_IngressSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_IngressStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_IngressBackend(in IngressBackend, out *IngressBackend, c *conversion.Cloner) error { - out.ServiceName = in.ServiceName - out.ServicePort = in.ServicePort - return nil -} - -func DeepCopy_v1beta1_IngressList(in IngressList, out *IngressList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Ingress, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_Ingress(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_IngressRule(in IngressRule, out *IngressRule, c *conversion.Cloner) error { - out.Host = in.Host - if err := DeepCopy_v1beta1_IngressRuleValue(in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_IngressRuleValue(in IngressRuleValue, out *IngressRuleValue, c *conversion.Cloner) error { - if in.HTTP != nil { - in, out := in.HTTP, &out.HTTP - *out = new(HTTPIngressRuleValue) - if err := DeepCopy_v1beta1_HTTPIngressRuleValue(*in, *out, c); err != nil { - return err - } - } else { - out.HTTP = nil - } - return nil -} - -func DeepCopy_v1beta1_IngressSpec(in IngressSpec, out *IngressSpec, c *conversion.Cloner) error { - if in.Backend != nil { - in, out := in.Backend, &out.Backend - *out = new(IngressBackend) - **out = *in - } else { - out.Backend = nil - } - if in.TLS != nil { - in, out := in.TLS, &out.TLS - *out = make([]IngressTLS, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_IngressTLS(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.TLS = nil - } - if in.Rules != nil { - in, out := in.Rules, &out.Rules - *out = make([]IngressRule, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_IngressRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Rules = nil - } - return nil -} - -func DeepCopy_v1beta1_IngressStatus(in IngressStatus, out *IngressStatus, c *conversion.Cloner) error { - if err := v1.DeepCopy_v1_LoadBalancerStatus(in.LoadBalancer, &out.LoadBalancer, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_IngressTLS(in IngressTLS, out *IngressTLS, c *conversion.Cloner) error { - if in.Hosts != nil { - in, out := in.Hosts, &out.Hosts - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Hosts = nil - } - out.SecretName = in.SecretName - return nil -} - -func DeepCopy_v1beta1_Job(in Job, out *Job, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_JobSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_JobStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_JobCondition(in JobCondition, out *JobCondition, c *conversion.Cloner) error { - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func DeepCopy_v1beta1_JobList(in JobList, out *JobList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Job, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_Job(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_JobSpec(in JobSpec, out *JobSpec, c *conversion.Cloner) error { - if in.Parallelism != nil { - in, out := in.Parallelism, &out.Parallelism - *out = new(int32) - **out = *in - } else { - out.Parallelism = nil - } - if in.Completions != nil { - in, out := in.Completions, &out.Completions - *out = new(int32) - **out = *in - } else { - out.Completions = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = *in - } else { - out.ActiveDeadlineSeconds = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if in.AutoSelector != nil { - in, out := in.AutoSelector, &out.AutoSelector - *out = new(bool) - **out = *in - } else { - out.AutoSelector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_JobStatus(in JobStatus, out *JobStatus, c *conversion.Cloner) error { - if in.Conditions != nil { - in, out := in.Conditions, &out.Conditions - *out = make([]JobCondition, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_JobCondition(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.StartTime != nil { - in, out := in.StartTime, &out.StartTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.StartTime = nil - } - if in.CompletionTime != nil { - in, out := in.CompletionTime, &out.CompletionTime - *out = new(unversioned.Time) - **out = in.DeepCopy() - } else { - out.CompletionTime = nil - } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func DeepCopy_v1beta1_LabelSelector(in LabelSelector, out *LabelSelector, c *conversion.Cloner) error { - if in.MatchLabels != nil { - in, out := in.MatchLabels, &out.MatchLabels - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.MatchLabels = nil - } - if in.MatchExpressions != nil { - in, out := in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_LabelSelectorRequirement(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func DeepCopy_v1beta1_LabelSelectorRequirement(in LabelSelectorRequirement, out *LabelSelectorRequirement, c *conversion.Cloner) error { - out.Key = in.Key - out.Operator = in.Operator - if in.Values != nil { - in, out := in.Values, &out.Values - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Values = nil - } - return nil -} - -func DeepCopy_v1beta1_ListOptions(in ListOptions, out *ListOptions, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.LabelSelector = in.LabelSelector - out.FieldSelector = in.FieldSelector - out.Watch = in.Watch - out.ResourceVersion = in.ResourceVersion - if in.TimeoutSeconds != nil { - in, out := in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int64) - **out = *in - } else { - out.TimeoutSeconds = nil - } - return nil -} - -func DeepCopy_v1beta1_NetworkPolicy(in NetworkPolicy, out *NetworkPolicy, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_NetworkPolicySpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_NetworkPolicyIngressRule(in NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, c *conversion.Cloner) error { - if in.Ports != nil { - in, out := in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_NetworkPolicyPort(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Ports = nil - } - if in.From != nil { - in, out := in.From, &out.From - *out = make([]NetworkPolicyPeer, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_NetworkPolicyPeer(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.From = nil - } - return nil -} - -func DeepCopy_v1beta1_NetworkPolicyList(in NetworkPolicyList, out *NetworkPolicyList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]NetworkPolicy, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_NetworkPolicy(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_NetworkPolicyPeer(in NetworkPolicyPeer, out *NetworkPolicyPeer, c *conversion.Cloner) error { - if in.PodSelector != nil { - in, out := in.PodSelector, &out.PodSelector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.PodSelector = nil - } - if in.NamespaceSelector != nil { - in, out := in.NamespaceSelector, &out.NamespaceSelector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.NamespaceSelector = nil - } - return nil -} - -func DeepCopy_v1beta1_NetworkPolicyPort(in NetworkPolicyPort, out *NetworkPolicyPort, c *conversion.Cloner) error { - if in.Protocol != nil { - in, out := in.Protocol, &out.Protocol - *out = new(v1.Protocol) - **out = *in - } else { - out.Protocol = nil - } - if in.Port != nil { - in, out := in.Port, &out.Port - *out = new(intstr.IntOrString) - **out = *in - } else { - out.Port = nil - } - return nil -} - -func DeepCopy_v1beta1_NetworkPolicySpec(in NetworkPolicySpec, out *NetworkPolicySpec, c *conversion.Cloner) error { - if err := DeepCopy_v1beta1_LabelSelector(in.PodSelector, &out.PodSelector, c); err != nil { - return err - } - if in.Ingress != nil { - in, out := in.Ingress, &out.Ingress - *out = make([]NetworkPolicyIngressRule, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_NetworkPolicyIngressRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Ingress = nil - } - return nil -} - -func DeepCopy_v1beta1_PodSecurityPolicy(in PodSecurityPolicy, out *PodSecurityPolicy, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_PodSecurityPolicySpec(in.Spec, &out.Spec, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_PodSecurityPolicyList(in PodSecurityPolicyList, out *PodSecurityPolicyList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PodSecurityPolicy, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_PodSecurityPolicy(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_PodSecurityPolicySpec(in PodSecurityPolicySpec, out *PodSecurityPolicySpec, c *conversion.Cloner) error { - out.Privileged = in.Privileged - if in.DefaultAddCapabilities != nil { - in, out := in.DefaultAddCapabilities, &out.DefaultAddCapabilities - *out = make([]v1.Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.DefaultAddCapabilities = nil - } - if in.RequiredDropCapabilities != nil { - in, out := in.RequiredDropCapabilities, &out.RequiredDropCapabilities - *out = make([]v1.Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.RequiredDropCapabilities = nil - } - if in.AllowedCapabilities != nil { - in, out := in.AllowedCapabilities, &out.AllowedCapabilities - *out = make([]v1.Capability, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.AllowedCapabilities = nil - } - if in.Volumes != nil { - in, out := in.Volumes, &out.Volumes - *out = make([]FSType, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Volumes = nil - } - out.HostNetwork = in.HostNetwork - if in.HostPorts != nil { - in, out := in.HostPorts, &out.HostPorts - *out = make([]HostPortRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.HostPorts = nil - } - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC - if err := DeepCopy_v1beta1_SELinuxStrategyOptions(in.SELinux, &out.SELinux, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_RunAsUserStrategyOptions(in.RunAsUser, &out.RunAsUser, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_SupplementalGroupsStrategyOptions(in.SupplementalGroups, &out.SupplementalGroups, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_FSGroupStrategyOptions(in.FSGroup, &out.FSGroup, c); err != nil { - return err - } - out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem - return nil -} - -func DeepCopy_v1beta1_ReplicaSet(in ReplicaSet, out *ReplicaSet, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_ReplicaSetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1beta1_ReplicaSetList(in ReplicaSetList, out *ReplicaSetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ReplicaSet, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_ReplicaSet(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_ReplicaSetSpec(in ReplicaSetSpec, out *ReplicaSetSpec, c *conversion.Cloner) error { - if in.Replicas != nil { - in, out := in.Replicas, &out.Replicas - *out = new(int32) - **out = *in - } else { - out.Replicas = nil - } - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_ReplicaSetStatus(in ReplicaSetStatus, out *ReplicaSetStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ObservedGeneration = in.ObservedGeneration - return nil -} - -func DeepCopy_v1beta1_ReplicationControllerDummy(in ReplicationControllerDummy, out *ReplicationControllerDummy, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - return nil -} - -func DeepCopy_v1beta1_RollbackConfig(in RollbackConfig, out *RollbackConfig, c *conversion.Cloner) error { - out.Revision = in.Revision - return nil -} - -func DeepCopy_v1beta1_RollingUpdateDeployment(in RollingUpdateDeployment, out *RollingUpdateDeployment, c *conversion.Cloner) error { - if in.MaxUnavailable != nil { - in, out := in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = *in - } else { - out.MaxUnavailable = nil - } - if in.MaxSurge != nil { - in, out := in.MaxSurge, &out.MaxSurge - *out = new(intstr.IntOrString) - **out = *in - } else { - out.MaxSurge = nil - } - return nil -} - -func DeepCopy_v1beta1_RunAsUserStrategyOptions(in RunAsUserStrategyOptions, out *RunAsUserStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.Ranges != nil { - in, out := in.Ranges, &out.Ranges - *out = make([]IDRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ranges = nil - } - return nil -} - -func DeepCopy_v1beta1_SELinuxStrategyOptions(in SELinuxStrategyOptions, out *SELinuxStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.SELinuxOptions != nil { - in, out := in.SELinuxOptions, &out.SELinuxOptions - *out = new(v1.SELinuxOptions) - **out = *in - } else { - out.SELinuxOptions = nil - } - return nil -} - -func DeepCopy_v1beta1_Scale(in Scale, out *Scale, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Spec = in.Spec - if err := DeepCopy_v1beta1_ScaleStatus(in.Status, &out.Status, c); err != nil { - return err - } - return nil -} - -func DeepCopy_v1beta1_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error { - out.Replicas = in.Replicas - return nil -} - -func DeepCopy_v1beta1_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error { - out.Replicas = in.Replicas - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = make(map[string]string) - for key, val := range in { - (*out)[key] = val - } - } else { - out.Selector = nil - } - out.TargetSelector = in.TargetSelector - return nil -} - -func DeepCopy_v1beta1_SubresourceReference(in SubresourceReference, out *SubresourceReference, c *conversion.Cloner) error { - out.Kind = in.Kind - out.Name = in.Name - out.APIVersion = in.APIVersion - out.Subresource = in.Subresource - return nil -} - -func DeepCopy_v1beta1_SupplementalGroupsStrategyOptions(in SupplementalGroupsStrategyOptions, out *SupplementalGroupsStrategyOptions, c *conversion.Cloner) error { - out.Rule = in.Rule - if in.Ranges != nil { - in, out := in.Ranges, &out.Ranges - *out = make([]IDRange, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Ranges = nil - } - return nil -} - -func DeepCopy_v1beta1_ThirdPartyResource(in ThirdPartyResource, out *ThirdPartyResource, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - out.Description = in.Description - if in.Versions != nil { - in, out := in.Versions, &out.Versions - *out = make([]APIVersion, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Versions = nil - } - return nil -} - -func DeepCopy_v1beta1_ThirdPartyResourceData(in ThirdPartyResourceData, out *ThirdPartyResourceData, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Data != nil { - in, out := in.Data, &out.Data - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Data = nil - } - return nil -} - -func DeepCopy_v1beta1_ThirdPartyResourceDataList(in ThirdPartyResourceDataList, out *ThirdPartyResourceDataList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ThirdPartyResourceData, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_ThirdPartyResourceData(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1beta1_ThirdPartyResourceList(in ThirdPartyResourceList, out *ThirdPartyResourceList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ThirdPartyResource, len(in)) - for i := range in { - if err := DeepCopy_v1beta1_ThirdPartyResource(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/defaults.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/defaults.go index ab6a202c37..0708b11e1a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/defaults.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/defaults.go @@ -22,8 +22,8 @@ import ( "k8s.io/kubernetes/pkg/util/intstr" ) -func addDefaultingFuncs(scheme *runtime.Scheme) { - scheme.AddDefaultingFuncs( +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( SetDefaults_DaemonSet, SetDefaults_Deployment, SetDefaults_Job, diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.pb.go index b585533207..90b78b4eb1 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.pb.go @@ -88,6 +88,8 @@ limitations under the License. Scale ScaleSpec ScaleStatus + StorageClass + StorageClassList SubresourceReference SupplementalGroupsStrategyOptions ThirdPartyResource @@ -106,6 +108,10 @@ import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" import k8s_io_kubernetes_pkg_util_intstr "k8s.io/kubernetes/pkg/util/intstr" +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. @@ -113,281 +119,319 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *APIVersion) Reset() { *m = APIVersion{} } -func (m *APIVersion) String() string { return proto.CompactTextString(m) } -func (*APIVersion) ProtoMessage() {} +// 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 *CPUTargetUtilization) Reset() { *m = CPUTargetUtilization{} } -func (m *CPUTargetUtilization) String() string { return proto.CompactTextString(m) } -func (*CPUTargetUtilization) ProtoMessage() {} +func (m *APIVersion) Reset() { *m = APIVersion{} } +func (*APIVersion) ProtoMessage() {} +func (*APIVersion) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *CustomMetricCurrentStatus) Reset() { *m = CustomMetricCurrentStatus{} } -func (m *CustomMetricCurrentStatus) String() string { return proto.CompactTextString(m) } -func (*CustomMetricCurrentStatus) ProtoMessage() {} +func (m *CPUTargetUtilization) Reset() { *m = CPUTargetUtilization{} } +func (*CPUTargetUtilization) ProtoMessage() {} +func (*CPUTargetUtilization) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *CustomMetricCurrentStatusList) Reset() { *m = CustomMetricCurrentStatusList{} } -func (m *CustomMetricCurrentStatusList) String() string { return proto.CompactTextString(m) } -func (*CustomMetricCurrentStatusList) ProtoMessage() {} +func (m *CustomMetricCurrentStatus) Reset() { *m = CustomMetricCurrentStatus{} } +func (*CustomMetricCurrentStatus) ProtoMessage() {} +func (*CustomMetricCurrentStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{2} +} -func (m *CustomMetricTarget) Reset() { *m = CustomMetricTarget{} } -func (m *CustomMetricTarget) String() string { return proto.CompactTextString(m) } -func (*CustomMetricTarget) ProtoMessage() {} +func (m *CustomMetricCurrentStatusList) Reset() { *m = CustomMetricCurrentStatusList{} } +func (*CustomMetricCurrentStatusList) ProtoMessage() {} +func (*CustomMetricCurrentStatusList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{3} +} -func (m *CustomMetricTargetList) Reset() { *m = CustomMetricTargetList{} } -func (m *CustomMetricTargetList) String() string { return proto.CompactTextString(m) } -func (*CustomMetricTargetList) ProtoMessage() {} +func (m *CustomMetricTarget) Reset() { *m = CustomMetricTarget{} } +func (*CustomMetricTarget) ProtoMessage() {} +func (*CustomMetricTarget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *DaemonSet) Reset() { *m = DaemonSet{} } -func (m *DaemonSet) String() string { return proto.CompactTextString(m) } -func (*DaemonSet) ProtoMessage() {} +func (m *CustomMetricTargetList) Reset() { *m = CustomMetricTargetList{} } +func (*CustomMetricTargetList) ProtoMessage() {} +func (*CustomMetricTargetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *DaemonSetList) Reset() { *m = DaemonSetList{} } -func (m *DaemonSetList) String() string { return proto.CompactTextString(m) } -func (*DaemonSetList) ProtoMessage() {} +func (m *DaemonSet) Reset() { *m = DaemonSet{} } +func (*DaemonSet) ProtoMessage() {} +func (*DaemonSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } -func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} } -func (m *DaemonSetSpec) String() string { return proto.CompactTextString(m) } -func (*DaemonSetSpec) ProtoMessage() {} +func (m *DaemonSetList) Reset() { *m = DaemonSetList{} } +func (*DaemonSetList) ProtoMessage() {} +func (*DaemonSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } -func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} } -func (m *DaemonSetStatus) String() string { return proto.CompactTextString(m) } -func (*DaemonSetStatus) ProtoMessage() {} +func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} } +func (*DaemonSetSpec) ProtoMessage() {} +func (*DaemonSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } -func (m *Deployment) Reset() { *m = Deployment{} } -func (m *Deployment) String() string { return proto.CompactTextString(m) } -func (*Deployment) ProtoMessage() {} +func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} } +func (*DaemonSetStatus) ProtoMessage() {} +func (*DaemonSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } -func (m *DeploymentList) Reset() { *m = DeploymentList{} } -func (m *DeploymentList) String() string { return proto.CompactTextString(m) } -func (*DeploymentList) ProtoMessage() {} +func (m *Deployment) Reset() { *m = Deployment{} } +func (*Deployment) ProtoMessage() {} +func (*Deployment) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } -func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} } -func (m *DeploymentRollback) String() string { return proto.CompactTextString(m) } -func (*DeploymentRollback) ProtoMessage() {} +func (m *DeploymentList) Reset() { *m = DeploymentList{} } +func (*DeploymentList) ProtoMessage() {} +func (*DeploymentList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } -func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } -func (m *DeploymentSpec) String() string { return proto.CompactTextString(m) } -func (*DeploymentSpec) ProtoMessage() {} +func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} } +func (*DeploymentRollback) ProtoMessage() {} +func (*DeploymentRollback) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } -func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } -func (m *DeploymentStatus) String() string { return proto.CompactTextString(m) } -func (*DeploymentStatus) ProtoMessage() {} +func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } +func (*DeploymentSpec) ProtoMessage() {} +func (*DeploymentSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } -func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } -func (m *DeploymentStrategy) String() string { return proto.CompactTextString(m) } -func (*DeploymentStrategy) ProtoMessage() {} +func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } +func (*DeploymentStatus) ProtoMessage() {} +func (*DeploymentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } -func (m *ExportOptions) Reset() { *m = ExportOptions{} } -func (m *ExportOptions) String() string { return proto.CompactTextString(m) } -func (*ExportOptions) ProtoMessage() {} +func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } +func (*DeploymentStrategy) ProtoMessage() {} +func (*DeploymentStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } -func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} } -func (m *FSGroupStrategyOptions) String() string { return proto.CompactTextString(m) } -func (*FSGroupStrategyOptions) ProtoMessage() {} +func (m *ExportOptions) Reset() { *m = ExportOptions{} } +func (*ExportOptions) ProtoMessage() {} +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } -func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } -func (m *HTTPIngressPath) String() string { return proto.CompactTextString(m) } -func (*HTTPIngressPath) ProtoMessage() {} +func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} } +func (*FSGroupStrategyOptions) ProtoMessage() {} +func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } -func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } -func (m *HTTPIngressRuleValue) String() string { return proto.CompactTextString(m) } -func (*HTTPIngressRuleValue) ProtoMessage() {} +func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } +func (*HTTPIngressPath) ProtoMessage() {} +func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } -func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } -func (m *HorizontalPodAutoscaler) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscaler) ProtoMessage() {} +func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } +func (*HTTPIngressRuleValue) ProtoMessage() {} +func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } -func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } -func (m *HorizontalPodAutoscalerList) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscalerList) ProtoMessage() {} +func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } +func (*HorizontalPodAutoscaler) ProtoMessage() {} +func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{20} +} -func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } -func (m *HorizontalPodAutoscalerSpec) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} +func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } +func (*HorizontalPodAutoscalerList) ProtoMessage() {} +func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{21} +} -func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } -func (m *HorizontalPodAutoscalerStatus) String() string { return proto.CompactTextString(m) } -func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} +func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } +func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} +func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{22} +} -func (m *HostPortRange) Reset() { *m = HostPortRange{} } -func (m *HostPortRange) String() string { return proto.CompactTextString(m) } -func (*HostPortRange) ProtoMessage() {} +func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } +func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} +func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{23} +} -func (m *IDRange) Reset() { *m = IDRange{} } -func (m *IDRange) String() string { return proto.CompactTextString(m) } -func (*IDRange) ProtoMessage() {} +func (m *HostPortRange) Reset() { *m = HostPortRange{} } +func (*HostPortRange) ProtoMessage() {} +func (*HostPortRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } -func (m *Ingress) Reset() { *m = Ingress{} } -func (m *Ingress) String() string { return proto.CompactTextString(m) } -func (*Ingress) ProtoMessage() {} +func (m *IDRange) Reset() { *m = IDRange{} } +func (*IDRange) ProtoMessage() {} +func (*IDRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } -func (m *IngressBackend) Reset() { *m = IngressBackend{} } -func (m *IngressBackend) String() string { return proto.CompactTextString(m) } -func (*IngressBackend) ProtoMessage() {} +func (m *Ingress) Reset() { *m = Ingress{} } +func (*Ingress) ProtoMessage() {} +func (*Ingress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } -func (m *IngressList) Reset() { *m = IngressList{} } -func (m *IngressList) String() string { return proto.CompactTextString(m) } -func (*IngressList) ProtoMessage() {} +func (m *IngressBackend) Reset() { *m = IngressBackend{} } +func (*IngressBackend) ProtoMessage() {} +func (*IngressBackend) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } -func (m *IngressRule) Reset() { *m = IngressRule{} } -func (m *IngressRule) String() string { return proto.CompactTextString(m) } -func (*IngressRule) ProtoMessage() {} +func (m *IngressList) Reset() { *m = IngressList{} } +func (*IngressList) ProtoMessage() {} +func (*IngressList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } -func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } -func (m *IngressRuleValue) String() string { return proto.CompactTextString(m) } -func (*IngressRuleValue) ProtoMessage() {} +func (m *IngressRule) Reset() { *m = IngressRule{} } +func (*IngressRule) ProtoMessage() {} +func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } -func (m *IngressSpec) Reset() { *m = IngressSpec{} } -func (m *IngressSpec) String() string { return proto.CompactTextString(m) } -func (*IngressSpec) ProtoMessage() {} +func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } +func (*IngressRuleValue) ProtoMessage() {} +func (*IngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } -func (m *IngressStatus) Reset() { *m = IngressStatus{} } -func (m *IngressStatus) String() string { return proto.CompactTextString(m) } -func (*IngressStatus) ProtoMessage() {} +func (m *IngressSpec) Reset() { *m = IngressSpec{} } +func (*IngressSpec) ProtoMessage() {} +func (*IngressSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } -func (m *IngressTLS) Reset() { *m = IngressTLS{} } -func (m *IngressTLS) String() string { return proto.CompactTextString(m) } -func (*IngressTLS) ProtoMessage() {} +func (m *IngressStatus) Reset() { *m = IngressStatus{} } +func (*IngressStatus) ProtoMessage() {} +func (*IngressStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } -func (m *Job) Reset() { *m = Job{} } -func (m *Job) String() string { return proto.CompactTextString(m) } -func (*Job) ProtoMessage() {} +func (m *IngressTLS) Reset() { *m = IngressTLS{} } +func (*IngressTLS) ProtoMessage() {} +func (*IngressTLS) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } -func (m *JobCondition) Reset() { *m = JobCondition{} } -func (m *JobCondition) String() string { return proto.CompactTextString(m) } -func (*JobCondition) ProtoMessage() {} +func (m *Job) Reset() { *m = Job{} } +func (*Job) ProtoMessage() {} +func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } -func (m *JobList) Reset() { *m = JobList{} } -func (m *JobList) String() string { return proto.CompactTextString(m) } -func (*JobList) ProtoMessage() {} +func (m *JobCondition) Reset() { *m = JobCondition{} } +func (*JobCondition) ProtoMessage() {} +func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } -func (m *JobSpec) Reset() { *m = JobSpec{} } -func (m *JobSpec) String() string { return proto.CompactTextString(m) } -func (*JobSpec) ProtoMessage() {} +func (m *JobList) Reset() { *m = JobList{} } +func (*JobList) ProtoMessage() {} +func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } -func (m *JobStatus) Reset() { *m = JobStatus{} } -func (m *JobStatus) String() string { return proto.CompactTextString(m) } -func (*JobStatus) ProtoMessage() {} +func (m *JobSpec) Reset() { *m = JobSpec{} } +func (*JobSpec) ProtoMessage() {} +func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } -func (m *LabelSelector) Reset() { *m = LabelSelector{} } -func (m *LabelSelector) String() string { return proto.CompactTextString(m) } -func (*LabelSelector) ProtoMessage() {} +func (m *JobStatus) Reset() { *m = JobStatus{} } +func (*JobStatus) ProtoMessage() {} +func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) } -func (*LabelSelectorRequirement) ProtoMessage() {} +func (m *LabelSelector) Reset() { *m = LabelSelector{} } +func (*LabelSelector) ProtoMessage() {} +func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } -func (m *ListOptions) Reset() { *m = ListOptions{} } -func (m *ListOptions) String() string { return proto.CompactTextString(m) } -func (*ListOptions) ProtoMessage() {} +func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } +func (*LabelSelectorRequirement) ProtoMessage() {} +func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{40} +} -func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } -func (m *NetworkPolicy) String() string { return proto.CompactTextString(m) } -func (*NetworkPolicy) ProtoMessage() {} +func (m *ListOptions) Reset() { *m = ListOptions{} } +func (*ListOptions) ProtoMessage() {} +func (*ListOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } -func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } -func (m *NetworkPolicyIngressRule) String() string { return proto.CompactTextString(m) } -func (*NetworkPolicyIngressRule) ProtoMessage() {} +func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } +func (*NetworkPolicy) ProtoMessage() {} +func (*NetworkPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } -func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } -func (m *NetworkPolicyList) String() string { return proto.CompactTextString(m) } -func (*NetworkPolicyList) ProtoMessage() {} +func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } +func (*NetworkPolicyIngressRule) ProtoMessage() {} +func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{43} +} + +func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } +func (*NetworkPolicyList) ProtoMessage() {} +func (*NetworkPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } -func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } -func (m *NetworkPolicyPeer) String() string { return proto.CompactTextString(m) } -func (*NetworkPolicyPeer) ProtoMessage() {} +func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } +func (*NetworkPolicyPeer) ProtoMessage() {} +func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } -func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } -func (m *NetworkPolicyPort) String() string { return proto.CompactTextString(m) } -func (*NetworkPolicyPort) ProtoMessage() {} +func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } +func (*NetworkPolicyPort) ProtoMessage() {} +func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } -func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } -func (m *NetworkPolicySpec) String() string { return proto.CompactTextString(m) } -func (*NetworkPolicySpec) ProtoMessage() {} +func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } +func (*NetworkPolicySpec) ProtoMessage() {} +func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } -func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} } -func (m *PodSecurityPolicy) String() string { return proto.CompactTextString(m) } -func (*PodSecurityPolicy) ProtoMessage() {} +func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} } +func (*PodSecurityPolicy) ProtoMessage() {} +func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } -func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} } -func (m *PodSecurityPolicyList) String() string { return proto.CompactTextString(m) } -func (*PodSecurityPolicyList) ProtoMessage() {} +func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} } +func (*PodSecurityPolicyList) ProtoMessage() {} +func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } -func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} } -func (m *PodSecurityPolicySpec) String() string { return proto.CompactTextString(m) } -func (*PodSecurityPolicySpec) ProtoMessage() {} +func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} } +func (*PodSecurityPolicySpec) ProtoMessage() {} +func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } -func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } -func (m *ReplicaSet) String() string { return proto.CompactTextString(m) } -func (*ReplicaSet) ProtoMessage() {} +func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } +func (*ReplicaSet) ProtoMessage() {} +func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } -func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } -func (m *ReplicaSetList) String() string { return proto.CompactTextString(m) } -func (*ReplicaSetList) ProtoMessage() {} +func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } +func (*ReplicaSetList) ProtoMessage() {} +func (*ReplicaSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } -func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } -func (m *ReplicaSetSpec) String() string { return proto.CompactTextString(m) } -func (*ReplicaSetSpec) ProtoMessage() {} +func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } +func (*ReplicaSetSpec) ProtoMessage() {} +func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } -func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } -func (m *ReplicaSetStatus) String() string { return proto.CompactTextString(m) } -func (*ReplicaSetStatus) ProtoMessage() {} +func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } +func (*ReplicaSetStatus) ProtoMessage() {} +func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } + +func (m *ReplicationControllerDummy) Reset() { *m = ReplicationControllerDummy{} } +func (*ReplicationControllerDummy) ProtoMessage() {} +func (*ReplicationControllerDummy) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{55} +} -func (m *ReplicationControllerDummy) Reset() { *m = ReplicationControllerDummy{} } -func (m *ReplicationControllerDummy) String() string { return proto.CompactTextString(m) } -func (*ReplicationControllerDummy) ProtoMessage() {} +func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } +func (*RollbackConfig) ProtoMessage() {} +func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } -func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } -func (m *RollbackConfig) String() string { return proto.CompactTextString(m) } -func (*RollbackConfig) ProtoMessage() {} +func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } +func (*RollingUpdateDeployment) ProtoMessage() {} +func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{57} +} + +func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } +func (*RunAsUserStrategyOptions) ProtoMessage() {} +func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{58} +} -func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } -func (m *RollingUpdateDeployment) String() string { return proto.CompactTextString(m) } -func (*RollingUpdateDeployment) ProtoMessage() {} +func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} } +func (*SELinuxStrategyOptions) ProtoMessage() {} +func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } -func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } -func (m *RunAsUserStrategyOptions) String() string { return proto.CompactTextString(m) } -func (*RunAsUserStrategyOptions) ProtoMessage() {} +func (m *Scale) Reset() { *m = Scale{} } +func (*Scale) ProtoMessage() {} +func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } -func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} } -func (m *SELinuxStrategyOptions) String() string { return proto.CompactTextString(m) } -func (*SELinuxStrategyOptions) ProtoMessage() {} +func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } +func (*ScaleSpec) ProtoMessage() {} +func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } -func (m *Scale) Reset() { *m = Scale{} } -func (m *Scale) String() string { return proto.CompactTextString(m) } -func (*Scale) ProtoMessage() {} +func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } +func (*ScaleStatus) ProtoMessage() {} +func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } -func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } -func (m *ScaleSpec) String() string { return proto.CompactTextString(m) } -func (*ScaleSpec) ProtoMessage() {} +func (m *StorageClass) Reset() { *m = StorageClass{} } +func (*StorageClass) ProtoMessage() {} +func (*StorageClass) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } -func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } -func (m *ScaleStatus) String() string { return proto.CompactTextString(m) } -func (*ScaleStatus) ProtoMessage() {} +func (m *StorageClassList) Reset() { *m = StorageClassList{} } +func (*StorageClassList) ProtoMessage() {} +func (*StorageClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } -func (m *SubresourceReference) Reset() { *m = SubresourceReference{} } -func (m *SubresourceReference) String() string { return proto.CompactTextString(m) } -func (*SubresourceReference) ProtoMessage() {} +func (m *SubresourceReference) Reset() { *m = SubresourceReference{} } +func (*SubresourceReference) ProtoMessage() {} +func (*SubresourceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } -func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } -func (m *SupplementalGroupsStrategyOptions) String() string { return proto.CompactTextString(m) } -func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} +func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } +func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} +func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{66} +} -func (m *ThirdPartyResource) Reset() { *m = ThirdPartyResource{} } -func (m *ThirdPartyResource) String() string { return proto.CompactTextString(m) } -func (*ThirdPartyResource) ProtoMessage() {} +func (m *ThirdPartyResource) Reset() { *m = ThirdPartyResource{} } +func (*ThirdPartyResource) ProtoMessage() {} +func (*ThirdPartyResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{67} } -func (m *ThirdPartyResourceData) Reset() { *m = ThirdPartyResourceData{} } -func (m *ThirdPartyResourceData) String() string { return proto.CompactTextString(m) } -func (*ThirdPartyResourceData) ProtoMessage() {} +func (m *ThirdPartyResourceData) Reset() { *m = ThirdPartyResourceData{} } +func (*ThirdPartyResourceData) ProtoMessage() {} +func (*ThirdPartyResourceData) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{68} } -func (m *ThirdPartyResourceDataList) Reset() { *m = ThirdPartyResourceDataList{} } -func (m *ThirdPartyResourceDataList) String() string { return proto.CompactTextString(m) } -func (*ThirdPartyResourceDataList) ProtoMessage() {} +func (m *ThirdPartyResourceDataList) Reset() { *m = ThirdPartyResourceDataList{} } +func (*ThirdPartyResourceDataList) ProtoMessage() {} +func (*ThirdPartyResourceDataList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{69} +} -func (m *ThirdPartyResourceList) Reset() { *m = ThirdPartyResourceList{} } -func (m *ThirdPartyResourceList) String() string { return proto.CompactTextString(m) } -func (*ThirdPartyResourceList) ProtoMessage() {} +func (m *ThirdPartyResourceList) Reset() { *m = ThirdPartyResourceList{} } +func (*ThirdPartyResourceList) ProtoMessage() {} +func (*ThirdPartyResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{70} } func init() { proto.RegisterType((*APIVersion)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.APIVersion") @@ -453,6 +497,8 @@ func init() { proto.RegisterType((*Scale)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.Scale") proto.RegisterType((*ScaleSpec)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.ScaleSpec") proto.RegisterType((*ScaleStatus)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.ScaleStatus") + proto.RegisterType((*StorageClass)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.StorageClass") + proto.RegisterType((*StorageClassList)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.StorageClassList") proto.RegisterType((*SubresourceReference)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.SubresourceReference") proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.SupplementalGroupsStrategyOptions") proto.RegisterType((*ThirdPartyResource)(nil), "k8s.io.kubernetes.pkg.apis.extensions.v1beta1.ThirdPartyResource") @@ -2644,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 } @@ -2895,6 +2944,91 @@ func (m *ScaleStatus) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *StorageClass) 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 *StorageClass) 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())) + n72, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n72 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Provisioner))) + i += copy(data[i:], m.Provisioner) + if len(m.Parameters) > 0 { + for k := range m.Parameters { + data[i] = 0x1a + i++ + v := m.Parameters[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) + } + } + return i, nil +} + +func (m *StorageClassList) 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 *StorageClassList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n73, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n73 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + func (m *SubresourceReference) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -2981,11 +3115,11 @@ func (m *ThirdPartyResource) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n72, err := m.ObjectMeta.MarshalTo(data[i:]) + n74, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n72 + i += n74 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Description))) @@ -3023,11 +3157,11 @@ func (m *ThirdPartyResourceData) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n73, err := m.ObjectMeta.MarshalTo(data[i:]) + n75, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n73 + i += n75 if m.Data != nil { data[i] = 0x12 i++ @@ -3055,11 +3189,11 @@ func (m *ThirdPartyResourceDataList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n74, err := m.ListMeta.MarshalTo(data[i:]) + n76, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n74 + i += n76 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -3093,11 +3227,11 @@ func (m *ThirdPartyResourceList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n75, err := m.ListMeta.MarshalTo(data[i:]) + n77, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n75 + i += n77 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -3906,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 } @@ -3998,6 +4133,38 @@ func (m *ScaleStatus) Size() (n int) { return n } +func (m *StorageClass) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Provisioner) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Parameters) > 0 { + for k, v := range m.Parameters { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *StorageClassList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + func (m *SubresourceReference) Size() (n int) { var l int _ = l @@ -4095,6 +4262,884 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *APIVersion) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIVersion{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *CPUTargetUtilization) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CPUTargetUtilization{`, + `TargetPercentage:` + fmt.Sprintf("%v", this.TargetPercentage) + `,`, + `}`, + }, "") + return s +} +func (this *CustomMetricCurrentStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CustomMetricCurrentStatus{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `CurrentValue:` + strings.Replace(strings.Replace(this.CurrentValue.String(), "Quantity", "k8s_io_kubernetes_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CustomMetricCurrentStatusList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CustomMetricCurrentStatusList{`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CustomMetricCurrentStatus", "CustomMetricCurrentStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CustomMetricTarget) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CustomMetricTarget{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `TargetValue:` + strings.Replace(strings.Replace(this.TargetValue.String(), "Quantity", "k8s_io_kubernetes_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CustomMetricTargetList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CustomMetricTargetList{`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CustomMetricTarget", "CustomMetricTarget", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DaemonSet) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DaemonSet{`, + `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(), "DaemonSetSpec", "DaemonSetSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DaemonSetStatus", "DaemonSetStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DaemonSetList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DaemonSetList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "DaemonSet", "DaemonSet", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DaemonSetSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DaemonSetSpec{`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DaemonSetStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DaemonSetStatus{`, + `CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`, + `NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`, + `DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`, + `}`, + }, "") + return s +} +func (this *Deployment) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Deployment{`, + `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(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeploymentList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeploymentList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Deployment", "Deployment", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeploymentRollback) String() string { + if this == nil { + return "nil" + } + keysForUpdatedAnnotations := make([]string, 0, len(this.UpdatedAnnotations)) + for k := range this.UpdatedAnnotations { + keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) + mapStringForUpdatedAnnotations := "map[string]string{" + for _, k := range keysForUpdatedAnnotations { + mapStringForUpdatedAnnotations += fmt.Sprintf("%v: %v,", k, this.UpdatedAnnotations[k]) + } + mapStringForUpdatedAnnotations += "}" + s := strings.Join([]string{`&DeploymentRollback{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `UpdatedAnnotations:` + mapStringForUpdatedAnnotations + `,`, + `RollbackTo:` + strings.Replace(strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeploymentSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeploymentSpec{`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, + `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, + `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, + `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, + `RollbackTo:` + strings.Replace(fmt.Sprintf("%v", this.RollbackTo), "RollbackConfig", "RollbackConfig", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeploymentStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeploymentStatus{`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, + `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, + `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, + `}`, + }, "") + return s +} +func (this *DeploymentStrategy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeploymentStrategy{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `RollingUpdate:` + strings.Replace(fmt.Sprintf("%v", this.RollingUpdate), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ExportOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportOptions{`, + `Export:` + fmt.Sprintf("%v", this.Export) + `,`, + `Exact:` + fmt.Sprintf("%v", this.Exact) + `,`, + `}`, + }, "") + return s +} +func (this *FSGroupStrategyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FSGroupStrategyOptions{`, + `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, + `Ranges:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ranges), "IDRange", "IDRange", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPIngressPath) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPIngressPath{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPIngressRuleValue) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPIngressRuleValue{`, + `Paths:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Paths), "HTTPIngressPath", "HTTPIngressPath", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscaler) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscaler{`, + `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(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscalerList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscalerList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscalerSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`, + `ScaleRef:` + strings.Replace(strings.Replace(this.ScaleRef.String(), "SubresourceReference", "SubresourceReference", 1), `&`, ``, 1) + `,`, + `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`, + `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`, + `CPUUtilization:` + strings.Replace(fmt.Sprintf("%v", this.CPUUtilization), "CPUTargetUtilization", "CPUTargetUtilization", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HorizontalPodAutoscalerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`, + `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, + `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, + `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`, + `CurrentCPUUtilizationPercentage:` + valueToStringGenerated(this.CurrentCPUUtilizationPercentage) + `,`, + `}`, + }, "") + return s +} +func (this *HostPortRange) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HostPortRange{`, + `Min:` + fmt.Sprintf("%v", this.Min) + `,`, + `Max:` + fmt.Sprintf("%v", this.Max) + `,`, + `}`, + }, "") + return s +} +func (this *IDRange) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IDRange{`, + `Min:` + fmt.Sprintf("%v", this.Min) + `,`, + `Max:` + fmt.Sprintf("%v", this.Max) + `,`, + `}`, + }, "") + return s +} +func (this *Ingress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Ingress{`, + `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(), "IngressSpec", "IngressSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "IngressStatus", "IngressStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressBackend) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressBackend{`, + `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, + `ServicePort:` + strings.Replace(strings.Replace(this.ServicePort.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Ingress", "Ingress", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressRule{`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `IngressRuleValue:` + strings.Replace(strings.Replace(this.IngressRuleValue.String(), "IngressRuleValue", "IngressRuleValue", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressRuleValue) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressRuleValue{`, + `HTTP:` + strings.Replace(fmt.Sprintf("%v", this.HTTP), "HTTPIngressRuleValue", "HTTPIngressRuleValue", 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressSpec{`, + `Backend:` + strings.Replace(fmt.Sprintf("%v", this.Backend), "IngressBackend", "IngressBackend", 1) + `,`, + `TLS:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TLS), "IngressTLS", "IngressTLS", 1), `&`, ``, 1) + `,`, + `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "IngressRule", "IngressRule", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressStatus{`, + `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "LoadBalancerStatus", "k8s_io_kubernetes_pkg_api_v1.LoadBalancerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressTLS) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressTLS{`, + `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`, + `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, + `}`, + }, "") + return s +} +func (this *Job) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Job{`, + `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(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *JobList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Job", "Job", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobSpec{`, + `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, + `Completions:` + valueToStringGenerated(this.Completions) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `AutoSelector:` + valueToStringGenerated(this.AutoSelector) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *JobStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&JobStatus{`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "JobCondition", "JobCondition", 1), `&`, ``, 1) + `,`, + `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `Active:` + fmt.Sprintf("%v", this.Active) + `,`, + `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`, + `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelector) String() string { + if this == nil { + return "nil" + } + keysForMatchLabels := make([]string, 0, len(this.MatchLabels)) + for k := range this.MatchLabels { + keysForMatchLabels = append(keysForMatchLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) + mapStringForMatchLabels := "map[string]string{" + for _, k := range keysForMatchLabels { + mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k]) + } + mapStringForMatchLabels += "}" + s := strings.Join([]string{`&LabelSelector{`, + `MatchLabels:` + mapStringForMatchLabels + `,`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LabelSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func (this *ListOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListOptions{`, + `LabelSelector:` + fmt.Sprintf("%v", this.LabelSelector) + `,`, + `FieldSelector:` + fmt.Sprintf("%v", this.FieldSelector) + `,`, + `Watch:` + fmt.Sprintf("%v", this.Watch) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicy{`, + `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(), "NetworkPolicySpec", "NetworkPolicySpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyIngressRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicyIngressRule{`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + `,`, + `From:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.From), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicyList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyPeer) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicyPeer{`, + `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "LabelSelector", 1) + `,`, + `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "LabelSelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicyPort{`, + `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, + `Port:` + strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicySpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicySpec{`, + `PodSelector:` + strings.Replace(strings.Replace(this.PodSelector.String(), "LabelSelector", "LabelSelector", 1), `&`, ``, 1) + `,`, + `Ingress:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ingress), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodSecurityPolicy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSecurityPolicy{`, + `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(), "PodSecurityPolicySpec", "PodSecurityPolicySpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodSecurityPolicyList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSecurityPolicyList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PodSecurityPolicy", "PodSecurityPolicy", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodSecurityPolicySpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSecurityPolicySpec{`, + `Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`, + `DefaultAddCapabilities:` + fmt.Sprintf("%v", this.DefaultAddCapabilities) + `,`, + `RequiredDropCapabilities:` + fmt.Sprintf("%v", this.RequiredDropCapabilities) + `,`, + `AllowedCapabilities:` + fmt.Sprintf("%v", this.AllowedCapabilities) + `,`, + `Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`, + `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, + `HostPorts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.HostPorts), "HostPortRange", "HostPortRange", 1), `&`, ``, 1) + `,`, + `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, + `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, + `SELinux:` + strings.Replace(strings.Replace(this.SELinux.String(), "SELinuxStrategyOptions", "SELinuxStrategyOptions", 1), `&`, ``, 1) + `,`, + `RunAsUser:` + strings.Replace(strings.Replace(this.RunAsUser.String(), "RunAsUserStrategyOptions", "RunAsUserStrategyOptions", 1), `&`, ``, 1) + `,`, + `SupplementalGroups:` + strings.Replace(strings.Replace(this.SupplementalGroups.String(), "SupplementalGroupsStrategyOptions", "SupplementalGroupsStrategyOptions", 1), `&`, ``, 1) + `,`, + `FSGroup:` + strings.Replace(strings.Replace(this.FSGroup.String(), "FSGroupStrategyOptions", "FSGroupStrategyOptions", 1), `&`, ``, 1) + `,`, + `ReadOnlyRootFilesystem:` + fmt.Sprintf("%v", this.ReadOnlyRootFilesystem) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicaSet) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicaSet{`, + `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(), "ReplicaSetSpec", "ReplicaSetSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicaSetStatus", "ReplicaSetStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicaSetList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicaSetList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ReplicaSet", "ReplicaSet", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicaSetSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicaSetSpec{`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicaSetStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicaSetStatus{`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerDummy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationControllerDummy{`, + `}`, + }, "") + return s +} +func (this *RollbackConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RollbackConfig{`, + `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, + `}`, + }, "") + return s +} +func (this *RollingUpdateDeployment) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RollingUpdateDeployment{`, + `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1) + `,`, + `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1) + `,`, + `}`, + }, "") + return s +} +func (this *RunAsUserStrategyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RunAsUserStrategyOptions{`, + `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, + `Ranges:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ranges), "IDRange", "IDRange", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SELinuxStrategyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SELinuxStrategyOptions{`, + `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, + `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "k8s_io_kubernetes_pkg_api_v1.SELinuxOptions", 1) + `,`, + `}`, + }, "") + return s +} +func (this *Scale) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Scale{`, + `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(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ScaleSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScaleSpec{`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `}`, + }, "") + return s +} +func (this *ScaleStatus) String() string { + if this == nil { + return "nil" + } + keysForSelector := make([]string, 0, len(this.Selector)) + for k := range this.Selector { + keysForSelector = append(keysForSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) + mapStringForSelector := "map[string]string{" + for _, k := range keysForSelector { + mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) + } + mapStringForSelector += "}" + s := strings.Join([]string{`&ScaleStatus{`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `Selector:` + mapStringForSelector + `,`, + `TargetSelector:` + fmt.Sprintf("%v", this.TargetSelector) + `,`, + `}`, + }, "") + return s +} +func (this *StorageClass) String() string { + if this == nil { + return "nil" + } + keysForParameters := make([]string, 0, len(this.Parameters)) + for k := range this.Parameters { + keysForParameters = append(keysForParameters, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForParameters) + mapStringForParameters := "map[string]string{" + for _, k := range keysForParameters { + mapStringForParameters += fmt.Sprintf("%v: %v,", k, this.Parameters[k]) + } + mapStringForParameters += "}" + s := strings.Join([]string{`&StorageClass{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Provisioner:` + fmt.Sprintf("%v", this.Provisioner) + `,`, + `Parameters:` + mapStringForParameters + `,`, + `}`, + }, "") + return s +} +func (this *StorageClassList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StorageClassList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "StorageClass", "StorageClass", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SubresourceReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SubresourceReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, + `}`, + }, "") + return s +} +func (this *SupplementalGroupsStrategyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SupplementalGroupsStrategyOptions{`, + `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, + `Ranges:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ranges), "IDRange", "IDRange", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ThirdPartyResource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ThirdPartyResource{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Description:` + fmt.Sprintf("%v", this.Description) + `,`, + `Versions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Versions), "APIVersion", "APIVersion", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ThirdPartyResourceData) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ThirdPartyResourceData{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Data:` + valueToStringGenerated(this.Data) + `,`, + `}`, + }, "") + return s +} +func (this *ThirdPartyResourceDataList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ThirdPartyResourceDataList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ThirdPartyResourceData", "ThirdPartyResourceData", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ThirdPartyResourceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ThirdPartyResourceList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ThirdPartyResource", "ThirdPartyResource", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + 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 *APIVersion) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -11254,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:]) @@ -12150,6 +13214,337 @@ func (m *ScaleStatus) Unmarshal(data []byte) error { } return nil } +func (m *StorageClass) 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: StorageClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StorageClass: 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 Provisioner", 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.Provisioner = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", 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.Parameters == nil { + m.Parameters = make(map[string]string) + } + m.Parameters[mapkey] = mapvalue + 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 *StorageClassList) 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: StorageClassList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StorageClassList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, StorageClass{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *SubresourceReference) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -13003,3 +14398,258 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 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, + 0x52, 0xb3, 0x76, 0x42, 0xee, 0xbd, 0x33, 0xb5, 0xb3, 0xed, 0xed, 0x99, 0x9e, 0xf4, 0x65, 0xbd, + 0x13, 0x84, 0x12, 0x04, 0x48, 0xbc, 0x24, 0xe4, 0x8d, 0x48, 0xc0, 0x03, 0x12, 0x88, 0x07, 0x44, + 0x04, 0x12, 0x52, 0x1e, 0x78, 0x01, 0x24, 0x84, 0x79, 0x40, 0x84, 0x9b, 0xe0, 0x85, 0x04, 0x82, + 0x20, 0xfa, 0xfe, 0x85, 0x7c, 0x9f, 0xf4, 0x7d, 0xa7, 0xaa, 0xab, 0xbb, 0xab, 0x7a, 0xba, 0xc7, + 0xee, 0xd9, 0x8b, 0xf4, 0xe9, 0x7b, 0x58, 0xc5, 0x5d, 0xe7, 0x9c, 0xdf, 0x39, 0x55, 0x75, 0xea, + 0x9c, 0x53, 0x97, 0x09, 0x7a, 0x71, 0xe7, 0x82, 0x53, 0x31, 0xac, 0x85, 0x1d, 0x6f, 0x93, 0xda, + 0x1d, 0xea, 0x52, 0x67, 0xa1, 0xbb, 0xd3, 0x5a, 0xd0, 0xbb, 0x86, 0xb3, 0x40, 0xf7, 0x5c, 0xda, + 0x71, 0x0c, 0xab, 0xe3, 0x2c, 0xec, 0x9e, 0xdb, 0xa4, 0xae, 0x7e, 0x6e, 0xa1, 0x45, 0x3b, 0xd4, + 0xd6, 0x5d, 0xda, 0xac, 0x74, 0x6d, 0xcb, 0xb5, 0xf0, 0x59, 0x5f, 0xbc, 0x12, 0x89, 0x57, 0x40, + 0xbc, 0xc2, 0xc4, 0x2b, 0x91, 0x78, 0x45, 0x88, 0xcf, 0x9f, 0x6d, 0x19, 0xee, 0xb6, 0xb7, 0x59, + 0x69, 0x58, 0xed, 0x85, 0x96, 0xd5, 0xb2, 0x16, 0x38, 0xca, 0xa6, 0xb7, 0xc5, 0xbf, 0xf8, 0x07, + 0xff, 0x97, 0x8f, 0x3e, 0x7f, 0x3e, 0xd5, 0xb8, 0x05, 0x9b, 0x3a, 0x96, 0x67, 0x37, 0x68, 0xdc, + 0xa2, 0xf9, 0x67, 0xd3, 0x65, 0xbc, 0xce, 0x2e, 0xb5, 0x99, 0x41, 0xb4, 0xd9, 0x27, 0xf6, 0x74, + 0xba, 0xd8, 0x6e, 0x5f, 0xb7, 0xe7, 0xcf, 0x26, 0x73, 0xdb, 0x5e, 0xc7, 0x35, 0xda, 0xfd, 0x36, + 0x9d, 0x4b, 0x66, 0xf7, 0x5c, 0xc3, 0x5c, 0x30, 0x3a, 0xae, 0xe3, 0xda, 0x71, 0x11, 0xad, 0x82, + 0xd0, 0x62, 0xed, 0xda, 0x2d, 0xdf, 0x5e, 0xfc, 0x28, 0x1a, 0xe9, 0xe8, 0x6d, 0x5a, 0xce, 0x3d, + 0x9a, 0x7b, 0xb2, 0x54, 0x9d, 0xbc, 0xfb, 0xf5, 0x99, 0x07, 0xbe, 0xfd, 0xfa, 0xcc, 0xc8, 0x75, + 0x68, 0x23, 0x9c, 0xa2, 0xbd, 0x8d, 0xe6, 0x96, 0x6a, 0x37, 0x37, 0x74, 0xbb, 0x45, 0xdd, 0x9b, + 0x80, 0x6b, 0x7c, 0xa8, 0xbb, 0x4c, 0x72, 0x19, 0xcd, 0xba, 0xbc, 0xb1, 0x46, 0x61, 0xb4, 0x3a, + 0xae, 0xde, 0xf2, 0x51, 0x46, 0xab, 0x65, 0x81, 0x32, 0xbb, 0x11, 0xa3, 0x93, 0x3e, 0x09, 0xed, + 0x77, 0x73, 0xe8, 0xc1, 0x25, 0xcf, 0x71, 0xad, 0xf6, 0x3a, 0x75, 0x6d, 0xa3, 0xb1, 0xe4, 0xd9, + 0x36, 0x90, 0xea, 0xae, 0xee, 0x7a, 0xce, 0xbd, 0xad, 0xc3, 0x6f, 0xa0, 0xd1, 0x5d, 0xdd, 0xf4, + 0x68, 0x39, 0x0f, 0x2c, 0x13, 0xe7, 0x9f, 0xae, 0xa4, 0xba, 0x4d, 0x25, 0x98, 0xd8, 0xca, 0x6b, + 0x9e, 0x0e, 0xa3, 0xe9, 0xf6, 0xaa, 0x73, 0x02, 0x70, 0x52, 0x68, 0xbd, 0xc5, 0x90, 0x88, 0x0f, + 0xa8, 0x7d, 0x9a, 0x43, 0x8f, 0xa4, 0x5a, 0xb6, 0x66, 0x38, 0x2e, 0x6e, 0xa3, 0x51, 0xc3, 0xa5, + 0x6d, 0x07, 0xcc, 0x2b, 0x80, 0xee, 0xab, 0x95, 0x4c, 0x2e, 0x5b, 0x49, 0x05, 0xaf, 0x4e, 0x09, + 0xbb, 0x46, 0xaf, 0x31, 0x78, 0xe2, 0x6b, 0xd1, 0x7e, 0x27, 0x87, 0xb0, 0x2c, 0xe3, 0x8f, 0xee, + 0x7d, 0x8c, 0xd1, 0xeb, 0xfb, 0x19, 0xa3, 0xe3, 0x02, 0x70, 0xc2, 0x57, 0xa7, 0x0c, 0xd1, 0xc7, + 0x39, 0x74, 0xb2, 0xdf, 0x22, 0x3e, 0x36, 0x5b, 0xea, 0xd8, 0x2c, 0xee, 0x63, 0x6c, 0x7c, 0xd4, + 0x94, 0x41, 0xf9, 0xb3, 0x3c, 0x2a, 0x2d, 0xeb, 0xb4, 0x6d, 0x75, 0xea, 0x30, 0x16, 0x6f, 0xa0, + 0x62, 0x1b, 0xe4, 0x9b, 0xba, 0xab, 0xf3, 0xf1, 0x98, 0x38, 0xff, 0xe4, 0x80, 0xce, 0xee, 0x9e, + 0xab, 0xdc, 0xd8, 0xbc, 0x4d, 0x1b, 0x2e, 0xe8, 0xd1, 0xab, 0x58, 0xe0, 0xa3, 0xa8, 0x8d, 0x84, + 0x68, 0xf8, 0x5d, 0x34, 0xe2, 0x74, 0x69, 0x43, 0x0c, 0xe1, 0x0b, 0x19, 0xbb, 0x13, 0x5a, 0x58, + 0x07, 0x8c, 0x68, 0x8e, 0xd8, 0x17, 0xe1, 0xb8, 0x30, 0x5e, 0x63, 0x0e, 0x9f, 0xfc, 0x72, 0x81, + 0x6b, 0xb8, 0x3c, 0xb4, 0x06, 0xdf, 0x85, 0xa6, 0x85, 0x8e, 0x31, 0xff, 0x9b, 0x08, 0x74, 0xed, + 0x1f, 0x73, 0x68, 0x2a, 0xe4, 0xe5, 0x33, 0xf5, 0x4e, 0xdf, 0x98, 0x2d, 0x0c, 0x18, 0x33, 0x29, + 0xd2, 0x55, 0x98, 0x38, 0x1f, 0xba, 0x59, 0xa1, 0xac, 0x18, 0xb4, 0x48, 0x03, 0xf7, 0x4e, 0xe0, + 0x08, 0x79, 0xee, 0x08, 0x17, 0x86, 0xed, 0x57, 0xca, 0xfc, 0xff, 0x9b, 0xdc, 0x9f, 0xba, 0x3f, + 0x92, 0x45, 0x87, 0x9a, 0x30, 0x83, 0x96, 0x2d, 0xfa, 0x93, 0x75, 0xb6, 0xd6, 0xf4, 0x4d, 0x6a, + 0xd6, 0x05, 0x46, 0x75, 0x92, 0x75, 0x2c, 0xf8, 0x22, 0x21, 0x36, 0x7e, 0x0b, 0x15, 0xc1, 0x82, + 0xae, 0x09, 0xa1, 0x55, 0x78, 0xc5, 0xd9, 0xc1, 0xbe, 0x56, 0xb3, 0x9a, 0x1b, 0x42, 0x80, 0xbb, + 0x41, 0x38, 0x6a, 0x41, 0x2b, 0x09, 0x01, 0xb5, 0x4f, 0xf2, 0x68, 0x26, 0x36, 0xa5, 0xf8, 0x16, + 0x3a, 0xd9, 0xf0, 0xc3, 0xc4, 0x75, 0xaf, 0x0d, 0x0a, 0xea, 0x8d, 0x6d, 0xda, 0xf4, 0x4c, 0xda, + 0x14, 0x61, 0xf7, 0xb4, 0xc0, 0x3b, 0xb9, 0x94, 0xc8, 0x45, 0x52, 0xa4, 0xf1, 0x2b, 0x08, 0x77, + 0x78, 0xd3, 0xba, 0xe1, 0x38, 0x21, 0x66, 0x9e, 0x63, 0xce, 0x0b, 0x4c, 0x7c, 0xbd, 0x8f, 0x83, + 0x24, 0x48, 0x31, 0x1b, 0x9b, 0xd4, 0x31, 0x6c, 0xda, 0x8c, 0xdb, 0x58, 0x50, 0x6d, 0x5c, 0x4e, + 0xe4, 0x22, 0x29, 0xd2, 0xda, 0x9f, 0xe7, 0x11, 0x5a, 0xa6, 0x5d, 0xd3, 0xea, 0xb5, 0xa1, 0x07, + 0x87, 0xb8, 0xce, 0xdf, 0x53, 0xd6, 0xf9, 0x8b, 0x59, 0xbd, 0x35, 0x34, 0x31, 0x75, 0xa1, 0xb7, + 0x62, 0x0b, 0xfd, 0xa5, 0xe1, 0x55, 0x0c, 0x5e, 0xe9, 0xff, 0x94, 0x43, 0xd3, 0x11, 0xf3, 0x51, + 0x2c, 0xf5, 0x77, 0xd5, 0xa5, 0xfe, 0xfc, 0xd0, 0x3d, 0x4b, 0x59, 0xeb, 0x9f, 0x17, 0x10, 0x8e, + 0x98, 0x88, 0x65, 0x9a, 0x9b, 0x7a, 0x63, 0xe7, 0x3e, 0x12, 0xe0, 0x1f, 0x43, 0xe6, 0xf4, 0xba, + 0x4d, 0x56, 0x04, 0x2d, 0x76, 0x3a, 0x96, 0xcb, 0x0b, 0x98, 0xc0, 0xcc, 0x5f, 0x19, 0xda, 0xcc, + 0xc0, 0x82, 0xca, 0xcd, 0x3e, 0xec, 0x95, 0x8e, 0x6b, 0xf7, 0xa2, 0xd5, 0xd3, 0xcf, 0x40, 0x12, + 0x0c, 0xc2, 0x1f, 0x20, 0x64, 0x0b, 0xcc, 0x0d, 0x4b, 0xf8, 0x47, 0x56, 0x17, 0x0c, 0x8c, 0x5a, + 0xb2, 0x3a, 0x5b, 0x46, 0x2b, 0xf2, 0x76, 0x12, 0x02, 0x13, 0x49, 0xc9, 0xfc, 0x0a, 0x3a, 0x95, + 0x62, 0x3d, 0x9e, 0x45, 0x85, 0x1d, 0xda, 0xf3, 0x87, 0x95, 0xb0, 0x7f, 0xe2, 0x39, 0xb9, 0x90, + 0x28, 0x89, 0x2a, 0xe0, 0x62, 0xfe, 0x42, 0x4e, 0xfb, 0x7c, 0x54, 0x76, 0x36, 0x1e, 0x87, 0x9f, + 0x44, 0x45, 0x1b, 0x5a, 0x8c, 0x86, 0xee, 0x88, 0x00, 0xc5, 0x23, 0x29, 0x11, 0x6d, 0x24, 0xa4, + 0x2a, 0x11, 0x3b, 0x7f, 0x44, 0x11, 0xbb, 0x70, 0xc0, 0x11, 0x1b, 0x5b, 0xd0, 0x09, 0x97, 0xd5, + 0xd9, 0xad, 0x5e, 0x79, 0x84, 0x83, 0x2f, 0xee, 0x63, 0x65, 0xfb, 0x40, 0x91, 0xc2, 0xa0, 0x85, + 0x84, 0x4a, 0xf0, 0x22, 0x9a, 0x69, 0x1b, 0x1d, 0x42, 0xf5, 0x66, 0xaf, 0x4e, 0x1b, 0x56, 0xa7, + 0xe9, 0x94, 0x47, 0xf9, 0x30, 0x9f, 0x12, 0x42, 0x33, 0xeb, 0x2a, 0x99, 0xc4, 0xf9, 0xf1, 0x1a, + 0x9a, 0xb3, 0xe9, 0xae, 0xc1, 0xcc, 0xb8, 0x0a, 0xcb, 0xd9, 0xb2, 0x7b, 0x6b, 0x46, 0xdb, 0x70, + 0xcb, 0x63, 0x7e, 0x19, 0x0f, 0x18, 0x73, 0x24, 0x81, 0x4e, 0x12, 0xa5, 0xf0, 0x13, 0x68, 0xac, + 0xab, 0x7b, 0x0e, 0xc4, 0xfa, 0x71, 0x90, 0x2f, 0x46, 0x81, 0xa9, 0xc6, 0x5b, 0x89, 0xa0, 0x42, + 0xd9, 0x2c, 0x7b, 0x79, 0xf1, 0x20, 0xbc, 0x7c, 0x3a, 0xdd, 0xc3, 0xb5, 0xef, 0xf2, 0x68, 0x36, + 0x1e, 0x34, 0x59, 0xce, 0xb3, 0x36, 0x1d, 0x6a, 0xef, 0xd2, 0xe6, 0x15, 0x7f, 0x7f, 0x04, 0xf0, + 0xdc, 0x4d, 0x0b, 0xd1, 0xaa, 0xbd, 0xd1, 0xc7, 0x41, 0x12, 0xa4, 0xf0, 0xd3, 0x92, 0xa3, 0xfb, + 0x59, 0x33, 0x9c, 0xb6, 0x04, 0x67, 0x87, 0x69, 0x13, 0x2b, 0x3f, 0x20, 0x8a, 0xd4, 0x18, 0x4e, + 0xdb, 0x4d, 0x95, 0x4c, 0xe2, 0xfc, 0xf8, 0x0a, 0x3a, 0xa6, 0xef, 0xea, 0x86, 0xa9, 0x6f, 0x9a, + 0x34, 0x04, 0x19, 0xe1, 0x20, 0x0f, 0x0a, 0x90, 0x63, 0x8b, 0x71, 0x06, 0xd2, 0x2f, 0x83, 0xd7, + 0xd1, 0x71, 0xaf, 0xd3, 0x0f, 0xe5, 0xbb, 0xd1, 0x43, 0x02, 0xea, 0xf8, 0xcd, 0x7e, 0x16, 0x92, + 0x24, 0xa7, 0xfd, 0x73, 0x4e, 0x8e, 0xcf, 0x81, 0xcb, 0xe2, 0x8b, 0x68, 0xc4, 0xed, 0x75, 0x83, + 0xf8, 0xfc, 0x44, 0x10, 0x9f, 0x37, 0xa0, 0xed, 0x7b, 0x5e, 0x09, 0xc4, 0x25, 0x18, 0x85, 0x70, + 0x19, 0xfc, 0x11, 0x9a, 0x62, 0x53, 0x69, 0x74, 0x5a, 0xfe, 0xa8, 0x88, 0xf8, 0xb0, 0x3a, 0x84, + 0xbb, 0x84, 0x18, 0x52, 0x9e, 0x39, 0x06, 0x86, 0x4c, 0x29, 0x44, 0xa2, 0xea, 0x83, 0xdd, 0xef, + 0xd4, 0xca, 0x5e, 0xd7, 0xb2, 0xdd, 0x1b, 0x5d, 0x3f, 0x46, 0x83, 0x97, 0x53, 0xde, 0xc0, 0xfb, + 0x23, 0x79, 0xb9, 0xcf, 0x46, 0x04, 0x15, 0x3f, 0x8e, 0x46, 0xe9, 0x9e, 0xde, 0x70, 0xb9, 0xc5, + 0xc5, 0x28, 0xa3, 0xad, 0xb0, 0x46, 0xe2, 0xd3, 0xb4, 0xbf, 0x80, 0x0d, 0xd4, 0x6a, 0xfd, 0x8a, + 0x6d, 0x79, 0xdd, 0xa0, 0xf3, 0x81, 0x9e, 0x5f, 0x46, 0x23, 0x36, 0x94, 0x3e, 0x62, 0xd4, 0x1e, + 0x0f, 0x46, 0x8d, 0x40, 0x1b, 0x8c, 0xda, 0xf1, 0x98, 0x94, 0x3f, 0x64, 0x4c, 0x00, 0xb2, 0xf0, + 0x98, 0xad, 0x77, 0x5a, 0x34, 0xc8, 0x6f, 0xcf, 0x65, 0x1c, 0xab, 0x6b, 0xcb, 0x84, 0x89, 0x47, + 0x1d, 0xe3, 0x9f, 0x50, 0x57, 0xf8, 0xa8, 0xda, 0x1f, 0xe4, 0xd0, 0xcc, 0xd5, 0x8d, 0x8d, 0xda, + 0xb5, 0x4e, 0x0b, 0x76, 0x8b, 0x4e, 0x4d, 0x77, 0xb7, 0x59, 0x0a, 0xee, 0xc2, 0x7f, 0xe3, 0x29, + 0x98, 0xd1, 0x08, 0xa7, 0xe0, 0x6d, 0x34, 0xce, 0xd6, 0x23, 0xed, 0x34, 0x87, 0x2c, 0xad, 0x84, + 0xba, 0xaa, 0x0f, 0x52, 0x9d, 0x11, 0x3a, 0xc6, 0x45, 0x03, 0x09, 0xe0, 0xb5, 0x5f, 0x45, 0x73, + 0x92, 0x79, 0x6c, 0xbc, 0xf8, 0x9e, 0x15, 0x37, 0xd0, 0x28, 0xb3, 0x24, 0xd8, 0x91, 0x66, 0xdd, + 0x60, 0xc5, 0xba, 0x1c, 0x4d, 0x28, 0xfb, 0x82, 0x12, 0x85, 0x63, 0x6b, 0xff, 0x91, 0x47, 0xa7, + 0xae, 0x5a, 0xb6, 0xf1, 0xa1, 0xd5, 0x71, 0x75, 0x13, 0xf2, 0xc7, 0xa2, 0xe7, 0x5a, 0x4e, 0x43, + 0x37, 0xa9, 0x7d, 0x88, 0x45, 0xab, 0xa9, 0x14, 0xad, 0xaf, 0x64, 0xed, 0x59, 0xb2, 0xbd, 0xa9, + 0x15, 0xac, 0x1b, 0xab, 0x60, 0xd7, 0x0e, 0x48, 0xdf, 0xe0, 0x72, 0xf6, 0x07, 0x39, 0xf4, 0x50, + 0x8a, 0xe4, 0x51, 0xd4, 0xb6, 0x3b, 0x6a, 0x6d, 0xbb, 0x7a, 0x30, 0x7d, 0x4e, 0x29, 0x74, 0x7f, + 0x98, 0x4f, 0xed, 0x2b, 0x2f, 0xad, 0x3e, 0x80, 0x5a, 0x83, 0x7d, 0x11, 0xba, 0x25, 0xfa, 0xba, + 0x94, 0xd1, 0x9e, 0xba, 0xb7, 0x19, 0x1c, 0xf5, 0x00, 0x08, 0x85, 0x6d, 0x61, 0x83, 0x4a, 0xd5, + 0x86, 0x00, 0x27, 0xa1, 0x1a, 0x7c, 0x0e, 0x4d, 0xf0, 0xea, 0x41, 0xc9, 0x73, 0x33, 0xec, 0x5c, + 0x68, 0x3d, 0x6a, 0x26, 0x32, 0x0f, 0x7e, 0x16, 0x44, 0xf4, 0xbd, 0x58, 0x96, 0x0b, 0x8f, 0x93, + 0xd6, 0x23, 0x12, 0x91, 0xf9, 0x20, 0xe4, 0x4f, 0x37, 0xba, 0x9e, 0x74, 0xd2, 0x28, 0xca, 0xa9, + 0xac, 0x5d, 0x4c, 0x3a, 0xb4, 0xac, 0x62, 0x50, 0x3d, 0x0d, 0x14, 0xa9, 0x8d, 0xc4, 0xd4, 0x69, + 0x7f, 0x5b, 0x40, 0x8f, 0x0c, 0xf4, 0x51, 0xbc, 0x3a, 0xa0, 0x7a, 0x38, 0x99, 0xa1, 0x72, 0x68, + 0xa2, 0x29, 0x53, 0x77, 0x5c, 0x3e, 0xdc, 0x1b, 0x46, 0x3b, 0xc8, 0x6e, 0xbf, 0x70, 0x9f, 0x8e, + 0xcb, 0x44, 0xfc, 0x14, 0xb6, 0x26, 0xa3, 0x10, 0x15, 0x94, 0x55, 0x1c, 0x62, 0xe7, 0x9f, 0x56, + 0x71, 0x2c, 0xa9, 0x64, 0x12, 0xe7, 0x67, 0x10, 0x62, 0x63, 0x1e, 0xab, 0x37, 0x42, 0x88, 0x65, + 0x95, 0x4c, 0xe2, 0xfc, 0x50, 0xf5, 0x9d, 0x11, 0xa8, 0xea, 0xf0, 0x4b, 0xa7, 0xc7, 0x7e, 0xdd, + 0xf1, 0x38, 0xc0, 0x9d, 0x59, 0x1a, 0xcc, 0x4a, 0xee, 0x85, 0xa5, 0xad, 0xa3, 0xa9, 0xab, 0x96, + 0xe3, 0xd6, 0x58, 0x4a, 0x66, 0x79, 0x0b, 0x3f, 0x82, 0x0a, 0xe0, 0x9c, 0x62, 0x27, 0x32, 0x21, + 0xcc, 0x2e, 0x30, 0xe7, 0x65, 0xed, 0x9c, 0xac, 0xef, 0x09, 0xbf, 0x8e, 0xc8, 0xe0, 0x97, 0xac, + 0x5d, 0xbb, 0x82, 0xc6, 0x45, 0x5e, 0x94, 0x81, 0x0a, 0x83, 0x81, 0x0a, 0x09, 0x40, 0x7f, 0x92, + 0x07, 0x24, 0x3f, 0x8d, 0x1c, 0x62, 0x42, 0x78, 0x5b, 0x49, 0x08, 0x17, 0x87, 0x4b, 0xb5, 0xa9, + 0x09, 0xa0, 0x19, 0x4b, 0x00, 0x2f, 0x0c, 0x89, 0x3f, 0x38, 0xe0, 0x7f, 0x91, 0x43, 0xd3, 0x6a, + 0xd2, 0x67, 0x11, 0x85, 0xad, 0x21, 0xa3, 0x41, 0xaf, 0x47, 0x1b, 0xfe, 0x30, 0xa2, 0xd4, 0x23, + 0x12, 0x91, 0xf9, 0x30, 0x0d, 0xc5, 0x98, 0x3b, 0x88, 0x41, 0xa9, 0xa4, 0x18, 0xcd, 0xae, 0x4e, + 0x2a, 0xfe, 0xd5, 0x09, 0x18, 0xea, 0xde, 0x80, 0x35, 0x6f, 0x43, 0x39, 0xd8, 0xa7, 0x86, 0x7b, + 0x96, 0x8c, 0xab, 0xfd, 0x43, 0x0e, 0x4d, 0x08, 0x83, 0x8f, 0x22, 0x23, 0xbd, 0xa5, 0x66, 0xa4, + 0xe7, 0x86, 0xac, 0xa7, 0x92, 0x33, 0xd0, 0x97, 0x51, 0x5f, 0x58, 0x05, 0xc5, 0x0a, 0xbc, 0x6d, + 0x58, 0x4e, 0xf1, 0x02, 0x8f, 0x2d, 0x31, 0xc2, 0x29, 0xf8, 0xb7, 0x72, 0x68, 0xd6, 0x88, 0xd5, + 0x5c, 0x62, 0xa8, 0x5f, 0x1a, 0xce, 0xb4, 0x10, 0x26, 0xba, 0x50, 0x8a, 0x53, 0x48, 0x9f, 0x4a, + 0xcd, 0x43, 0x7d, 0x5c, 0x58, 0x07, 0xeb, 0x5d, 0xb7, 0x3b, 0x64, 0xae, 0x4c, 0xaa, 0x26, 0xab, + 0x45, 0xde, 0x7d, 0xa0, 0x10, 0x0e, 0xad, 0x7d, 0x91, 0x0f, 0x07, 0xac, 0xee, 0xaf, 0x91, 0xb0, + 0xde, 0xcd, 0x1d, 0x44, 0xbd, 0x3b, 0x91, 0x54, 0xeb, 0x42, 0x04, 0x29, 0xb8, 0xe6, 0xb0, 0xe7, + 0x6d, 0x42, 0xc3, 0xc6, 0x5a, 0x3d, 0x8a, 0x53, 0xf0, 0x41, 0x18, 0x24, 0x7e, 0x0f, 0x8d, 0xb2, + 0xdd, 0x04, 0x5b, 0xe2, 0x85, 0xe1, 0x43, 0x08, 0x1b, 0xaf, 0xc8, 0xc3, 0xd8, 0x17, 0x78, 0x18, + 0xc7, 0x85, 0x32, 0x7d, 0x4a, 0x89, 0x03, 0xf8, 0x36, 0x9a, 0x34, 0x2d, 0xbd, 0x59, 0xd5, 0x4d, + 0x1d, 0x8a, 0x91, 0xe0, 0xec, 0xfe, 0x17, 0x07, 0x47, 0xc4, 0x35, 0x49, 0x42, 0xc4, 0x93, 0xf0, + 0x52, 0x4f, 0xa6, 0x11, 0x05, 0x5b, 0xd3, 0x11, 0x8a, 0x7a, 0x8f, 0xcf, 0xa0, 0x51, 0xe6, 0xc2, + 0xfe, 0xce, 0xa0, 0x54, 0x2d, 0x31, 0x5b, 0x99, 0x67, 0x83, 0xad, 0xbc, 0x1d, 0x9f, 0x47, 0xc8, + 0xa1, 0x0d, 0x9b, 0xba, 0x3c, 0xec, 0xf0, 0xc3, 0xaf, 0x28, 0x00, 0xd7, 0x43, 0x0a, 0x91, 0xb8, + 0xb4, 0xdf, 0xcb, 0xa3, 0xc2, 0x2b, 0xd6, 0xe6, 0x21, 0x06, 0xf9, 0x37, 0x94, 0x20, 0x9f, 0x75, + 0xfd, 0x83, 0x6d, 0xa9, 0x01, 0xfe, 0xfd, 0x58, 0x80, 0xbf, 0x30, 0x04, 0xf6, 0xe0, 0xe0, 0xfe, + 0x2f, 0x05, 0x34, 0x09, 0x5c, 0x4b, 0x56, 0xa7, 0x69, 0xf0, 0x52, 0xe8, 0x19, 0xe5, 0x90, 0xe0, + 0xd1, 0xd8, 0x21, 0xc1, 0xac, 0xcc, 0x2b, 0x1d, 0x0f, 0xdc, 0x0a, 0x0d, 0xf5, 0x27, 0xe5, 0xb2, + 0xaa, 0x0e, 0x24, 0x07, 0xde, 0xbe, 0x57, 0x42, 0x4c, 0xd5, 0x3c, 0xd8, 0xad, 0xf2, 0x1a, 0xaa, + 0x66, 0x5b, 0x9b, 0x7e, 0x61, 0x56, 0xc8, 0x5e, 0x98, 0x9d, 0x10, 0xb6, 0xf0, 0xe2, 0x2c, 0x44, + 0x22, 0x2a, 0x30, 0xbe, 0x83, 0x30, 0x6b, 0xd8, 0x80, 0xcd, 0xb5, 0xe3, 0xf7, 0x8e, 0xa9, 0x1b, + 0xc9, 0xae, 0x2e, 0x3c, 0xb5, 0x5a, 0xeb, 0x83, 0x23, 0x09, 0x2a, 0xd8, 0x39, 0x86, 0x4d, 0x75, + 0x07, 0xea, 0xd6, 0x51, 0x3e, 0x74, 0xd1, 0x76, 0x9f, 0xb7, 0x12, 0x41, 0xc5, 0x4f, 0xa1, 0xf1, + 0x36, 0xac, 0x13, 0x56, 0x9f, 0x8d, 0x71, 0xc6, 0x70, 0xe7, 0xbd, 0xee, 0x37, 0x93, 0x80, 0xae, + 0xfd, 0x4d, 0x0e, 0x8d, 0xc3, 0x44, 0x1d, 0x45, 0xf2, 0x7b, 0x5d, 0x4d, 0x7e, 0xe7, 0xb3, 0x3b, + 0x68, 0x4a, 0xe2, 0xfb, 0xab, 0x02, 0xef, 0x03, 0x8f, 0xe1, 0xb0, 0xe7, 0xe9, 0xea, 0xb6, 0x6e, + 0x9a, 0xd4, 0x34, 0x9c, 0xb6, 0x28, 0x1d, 0xf9, 0x9e, 0xa7, 0x16, 0x35, 0x13, 0x99, 0x87, 0x89, + 0x34, 0xac, 0x76, 0xd7, 0xa4, 0xc1, 0x0d, 0x43, 0x28, 0xb2, 0x14, 0x35, 0x13, 0x99, 0x07, 0xdf, + 0x40, 0x27, 0xf4, 0x86, 0x6b, 0xec, 0xd2, 0x65, 0xaa, 0x37, 0x4d, 0xa3, 0x43, 0x83, 0xd3, 0xdc, + 0x02, 0x2f, 0x21, 0x1f, 0x04, 0xe1, 0x13, 0x8b, 0x49, 0x0c, 0x24, 0x59, 0x4e, 0x39, 0x4e, 0x1f, + 0x39, 0xc4, 0xe3, 0xf4, 0x67, 0xd0, 0xa4, 0x0e, 0x3b, 0xa3, 0x80, 0xc2, 0xfd, 0xa8, 0x58, 0x9d, + 0x65, 0xa1, 0x77, 0x51, 0x6a, 0x27, 0x0a, 0x97, 0x72, 0x08, 0x3f, 0x76, 0xd0, 0xd7, 0xa6, 0x7f, + 0x5d, 0x40, 0xa5, 0x30, 0xf8, 0x60, 0x0b, 0xa1, 0x46, 0xb0, 0xc0, 0x83, 0x63, 0x9f, 0x4b, 0xd9, + 0x3d, 0x25, 0x0c, 0x12, 0x51, 0x3c, 0x0e, 0x9b, 0x1c, 0x22, 0xa9, 0x80, 0x88, 0x5c, 0x82, 0x00, + 0x62, 0xbb, 0xc3, 0xee, 0xe5, 0xa6, 0x00, 0xbb, 0x54, 0x0f, 0x10, 0x48, 0x04, 0x86, 0x5b, 0xb0, + 0x29, 0x0e, 0x7d, 0x66, 0xd8, 0x88, 0xe4, 0x6f, 0x7e, 0x15, 0x18, 0x12, 0x83, 0x65, 0x61, 0xc1, + 0xf7, 0x2a, 0xb1, 0xc1, 0x0b, 0xc3, 0x82, 0xef, 0x82, 0x44, 0x50, 0xf1, 0x02, 0x74, 0xd5, 0x6b, + 0x34, 0x28, 0x6d, 0xd2, 0xa6, 0xd8, 0xb8, 0x1d, 0x13, 0xac, 0xa5, 0x7a, 0x40, 0x20, 0x11, 0x0f, + 0x03, 0xde, 0xd2, 0x0d, 0x76, 0x13, 0x3c, 0xa6, 0x02, 0xaf, 0xf2, 0x56, 0x22, 0xa8, 0xda, 0xff, + 0xe7, 0xd1, 0x94, 0xe2, 0x7f, 0xf8, 0x37, 0x73, 0xec, 0x20, 0xc1, 0x6d, 0x6c, 0xf3, 0xe6, 0x60, + 0x22, 0xd7, 0xf7, 0xe3, 0xd3, 0x95, 0xf5, 0x08, 0xcf, 0xbf, 0xaa, 0x93, 0xce, 0x25, 0x42, 0x0a, + 0x91, 0xd5, 0xe2, 0x4f, 0xa0, 0xc0, 0xe5, 0xdf, 0x2b, 0x7b, 0x5d, 0x56, 0x39, 0x48, 0x57, 0x88, + 0x57, 0xf6, 0x63, 0x0b, 0xa1, 0x1f, 0x78, 0xb0, 0x53, 0xe6, 0xe7, 0xd1, 0x61, 0xa1, 0xbb, 0x1e, + 0x53, 0x44, 0xfa, 0x54, 0xcf, 0x5f, 0x46, 0xb3, 0xf1, 0x5e, 0x64, 0xba, 0xb2, 0xfb, 0xa3, 0x1c, + 0x2a, 0xa7, 0x19, 0xc2, 0x76, 0xb1, 0x21, 0x50, 0x54, 0x1d, 0xbe, 0x4a, 0x7b, 0x3e, 0xea, 0x0a, + 0x2a, 0x5a, 0x5d, 0x76, 0x8a, 0x21, 0x6e, 0xec, 0x4a, 0xd5, 0xa7, 0x82, 0x55, 0x79, 0x43, 0xb4, + 0x43, 0xee, 0x3d, 0xa1, 0xc0, 0x07, 0x04, 0x12, 0x8a, 0x62, 0x0d, 0x8d, 0x71, 0x7b, 0xfc, 0x2a, + 0xb3, 0x54, 0x45, 0xcc, 0x1f, 0x78, 0x7d, 0x0d, 0xa9, 0xd8, 0xa7, 0x68, 0x7f, 0x0a, 0x85, 0x35, + 0x4b, 0x00, 0xc1, 0xb9, 0xf8, 0x25, 0x96, 0x9a, 0x25, 0x58, 0x61, 0xa3, 0x94, 0x6d, 0xe5, 0x2e, + 0xa9, 0xbc, 0x4c, 0x78, 0xcb, 0xa0, 0x66, 0xb3, 0x2e, 0x5f, 0x37, 0x4a, 0xc2, 0xab, 0x32, 0x91, + 0xa8, 0xbc, 0xec, 0x44, 0xff, 0x0e, 0x1b, 0x70, 0xbe, 0xf4, 0xa4, 0x13, 0xfd, 0xd7, 0x59, 0x23, + 0xf1, 0x69, 0xec, 0xa4, 0x24, 0x38, 0x58, 0x13, 0x4f, 0xec, 0xf8, 0x42, 0x2a, 0x45, 0x27, 0x25, + 0x44, 0x25, 0x93, 0x38, 0x3f, 0xbe, 0x88, 0xa6, 0xd9, 0x5b, 0x3f, 0xcb, 0x73, 0xe5, 0x7b, 0xbd, + 0x82, 0xbf, 0x7c, 0x37, 0x14, 0x0a, 0x89, 0x71, 0xf2, 0xe7, 0x3d, 0xd7, 0xa9, 0x7b, 0xc7, 0xb2, + 0x77, 0x6a, 0x96, 0x69, 0x34, 0x7a, 0x87, 0x58, 0x7f, 0x6e, 0x2a, 0xf5, 0xe7, 0xcb, 0x19, 0xd7, + 0x80, 0x62, 0x65, 0x5a, 0x25, 0xaa, 0xfd, 0x1f, 0x38, 0xa9, 0xc2, 0x29, 0x6f, 0x4a, 0x29, 0x1a, + 0x65, 0x57, 0x2d, 0x41, 0x44, 0xd8, 0x97, 0x05, 0x6c, 0x07, 0x2f, 0x9d, 0xe9, 0x33, 0x58, 0xe2, + 0xa3, 0xb3, 0x7e, 0x6e, 0xd9, 0x56, 0x5b, 0xac, 0xf5, 0xfd, 0x69, 0xa1, 0xd4, 0x8e, 0xfa, 0xb9, + 0x0a, 0xa8, 0x84, 0x63, 0x6b, 0xff, 0x9e, 0x43, 0xc7, 0x14, 0xce, 0xa3, 0x28, 0xa2, 0x74, 0xb5, + 0x88, 0x7a, 0x61, 0x3f, 0x3d, 0x4b, 0x29, 0xa7, 0x7e, 0x3b, 0x1f, 0xeb, 0x17, 0x1b, 0x01, 0x48, + 0xcc, 0x13, 0x5d, 0xab, 0x59, 0x3f, 0xc8, 0x57, 0x5a, 0x7e, 0x59, 0x16, 0x81, 0x12, 0x59, 0x03, + 0xfe, 0x75, 0x18, 0x5e, 0xf6, 0x12, 0xc4, 0xe9, 0xea, 0x0d, 0x5a, 0x3f, 0xc8, 0xb7, 0x06, 0x27, + 0xd8, 0x65, 0xeb, 0xf5, 0x38, 0x34, 0xe9, 0xd7, 0xa6, 0xfd, 0x65, 0x7c, 0x8a, 0x99, 0x93, 0xe1, + 0xd7, 0x50, 0x91, 0x3f, 0xcb, 0x6d, 0x58, 0xa6, 0x88, 0x64, 0xcf, 0xb2, 0xd9, 0xaa, 0x89, 0x36, + 0x88, 0xa2, 0x3f, 0x37, 0x70, 0x07, 0x13, 0x30, 0x92, 0x10, 0x06, 0xaf, 0xa1, 0x91, 0xee, 0xf0, + 0xe7, 0x5c, 0xfc, 0x60, 0x83, 0x1f, 0x6e, 0x71, 0x14, 0xed, 0x47, 0x71, 0xb3, 0x79, 0x69, 0xec, + 0x1c, 0xfc, 0x0c, 0x86, 0x19, 0x38, 0x75, 0x16, 0x6d, 0x34, 0x2e, 0x8e, 0x7b, 0x86, 0xcc, 0xbb, + 0x69, 0x91, 0x24, 0xda, 0xd3, 0x04, 0x8d, 0x81, 0x22, 0xbe, 0x30, 0xb9, 0x41, 0x0d, 0xcf, 0x36, + 0xdc, 0xde, 0xa1, 0x07, 0xd5, 0x2d, 0x25, 0xa8, 0x2e, 0x67, 0xec, 0x60, 0x9f, 0xa5, 0xa9, 0x81, + 0xf5, 0xbf, 0x72, 0xe8, 0x44, 0x1f, 0xf7, 0x51, 0x04, 0x1d, 0xaa, 0x06, 0x9d, 0x97, 0xf7, 0xdb, + 0xc3, 0x94, 0xc0, 0x73, 0x17, 0x25, 0xf4, 0x8f, 0xbb, 0xee, 0x79, 0x84, 0xba, 0xb6, 0xb1, 0x0b, + 0xc5, 0x66, 0x4b, 0x3c, 0x9d, 0x2c, 0x46, 0x73, 0x52, 0x0b, 0x29, 0x44, 0xe2, 0xc2, 0xbf, 0xc6, + 0x9e, 0x35, 0x6e, 0xe9, 0x9e, 0xe9, 0x2e, 0x36, 0x9b, 0x4b, 0x7a, 0x57, 0xdf, 0x34, 0x4c, 0xa8, + 0xf9, 0xc5, 0x1d, 0x7b, 0xa9, 0xba, 0xe2, 0x3f, 0x69, 0x4c, 0xe2, 0x80, 0x15, 0xfc, 0xf3, 0x83, + 0xcf, 0x20, 0x02, 0xe6, 0x1e, 0x49, 0x51, 0x82, 0x7f, 0x03, 0xb2, 0xa0, 0xed, 0x57, 0x67, 0xcd, + 0x65, 0xdb, 0xea, 0x2a, 0x16, 0xf8, 0xa5, 0xd3, 0x15, 0xb0, 0xa0, 0x4c, 0x52, 0x78, 0xb2, 0xd8, + 0x90, 0xaa, 0x08, 0xbb, 0xe8, 0x38, 0xec, 0x73, 0xad, 0x3b, 0x54, 0x1d, 0x81, 0x11, 0xae, 0xbf, + 0xca, 0x5e, 0x8a, 0x2c, 0xf6, 0x93, 0xb3, 0xa8, 0x4e, 0x82, 0x87, 0x8d, 0xc6, 0xf8, 0xae, 0x65, + 0x7a, 0x10, 0x4d, 0xa1, 0x0c, 0x62, 0x9a, 0x58, 0xc4, 0x1d, 0xbf, 0xe5, 0x37, 0x7d, 0xcf, 0xf6, + 0x0f, 0x75, 0x7e, 0x20, 0x14, 0x70, 0xb1, 0x4b, 0x02, 0x76, 0x6a, 0x27, 0xd6, 0x3a, 0xdf, 0x6d, + 0x14, 0xa3, 0xe0, 0x72, 0x35, 0x22, 0x11, 0x99, 0x0f, 0xb7, 0x51, 0x69, 0x5b, 0x5c, 0x18, 0x39, + 0xe5, 0xf1, 0xa1, 0x12, 0xa2, 0x72, 0xe1, 0x14, 0x6d, 0x87, 0x82, 0x66, 0x87, 0x44, 0x1a, 0xd8, + 0xb1, 0x0a, 0xff, 0xb8, 0xb6, 0xcc, 0x5f, 0x40, 0x15, 0xa3, 0x10, 0x74, 0xd5, 0x6f, 0x26, 0x01, + 0x3d, 0x60, 0xbd, 0x56, 0x5b, 0x2a, 0x97, 0xfa, 0x59, 0xa1, 0x99, 0x04, 0x74, 0xdc, 0x45, 0xe3, + 0x0e, 0x5d, 0x33, 0x3a, 0xde, 0x5e, 0x19, 0xf1, 0xa5, 0xbb, 0x92, 0xf5, 0x5e, 0x78, 0x85, 0x4b, + 0xc7, 0x1e, 0xa3, 0x44, 0x1a, 0x05, 0x9d, 0x04, 0x6a, 0xf0, 0x1e, 0x2a, 0xd9, 0x5e, 0x67, 0xd1, + 0xb9, 0xe9, 0x50, 0xbb, 0x3c, 0xc1, 0x75, 0x66, 0x8d, 0xca, 0x24, 0x90, 0x8f, 0x6b, 0x0d, 0x47, + 0x30, 0xe4, 0x20, 0x91, 0x32, 0xfc, 0xfb, 0x39, 0x84, 0x1d, 0xaf, 0x0b, 0x9b, 0x57, 0xb6, 0x63, + 0xd1, 0x4d, 0xfe, 0x1e, 0xc6, 0x29, 0x4f, 0x72, 0x1b, 0x6a, 0x99, 0xef, 0xc3, 0xe3, 0x40, 0x71, + 0x63, 0xc2, 0xf3, 0xb5, 0x7e, 0x56, 0x92, 0x60, 0x07, 0x9b, 0x8a, 0x2d, 0x87, 0xff, 0xbb, 0x3c, + 0x35, 0xd4, 0x54, 0x24, 0xbf, 0x0b, 0x8a, 0xa6, 0x42, 0xd0, 0x49, 0xa0, 0x86, 0xbd, 0xbd, 0xb6, + 0xa9, 0xde, 0xbc, 0xd1, 0x31, 0x7b, 0xc4, 0xb2, 0xdc, 0x55, 0x88, 0x5d, 0x4e, 0xcf, 0x81, 0x68, + 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, 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/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto index 46df0d6be0..996567875d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto @@ -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; } @@ -942,6 +945,34 @@ message ScaleStatus { optional string targetSelector = 3; } +// StorageClass describes the parameters for a class of storage for +// which PersistentVolumes can be dynamically provisioned. +// +// StorageClasses are non-namespaced; the name of the storage class +// according to etcd is in ObjectMeta.Name. +message StorageClass { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // Provisioner indicates the type of the provisioner. + optional string provisioner = 2; + + // Parameters holds the parameters for the provisioner that should + // create volumes of this storage class. + map parameters = 3; +} + +// StorageClassList is a collection of storage classes. +message StorageClassList { + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // Items is the list of StorageClasses + repeated StorageClass items = 2; +} + // SubresourceReference contains enough information to let you inspect or modify the referred subresource. message SubresourceReference { // Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/register.go index 91c1c48687..bc67a7f212 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/register.go @@ -29,14 +29,13 @@ const GroupName = "extensions" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Deployment{}, &DeploymentList{}, @@ -63,7 +62,10 @@ func addKnownTypes(scheme *runtime.Scheme) { &PodSecurityPolicyList{}, &NetworkPolicy{}, &NetworkPolicyList{}, + &StorageClass{}, + &StorageClassList{}, ) // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.generated.go index a0220de07c..576aad7bd7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.generated.go @@ -144,25 +144,25 @@ func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym6 := z.DecBinary() + _ = yym6 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct7 := r.ContainerType() + if yyct7 == codecSelferValueTypeMap1234 { + yyl7 := r.ReadMapStart() + if yyl7 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl7, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct7 == codecSelferValueTypeArray1234 { + yyl7 := r.ReadArrayStart() + if yyl7 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl7, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -174,12 +174,12 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys8Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys8Slc + var yyhl8 bool = l >= 0 + for yyj8 := 0; ; yyj8++ { + if yyhl8 { + if yyj8 >= l { break } } else { @@ -188,10 +188,10 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys8Slc = r.DecodeBytes(yys8Slc, true, true) + yys8 := string(yys8Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys8 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -199,9 +199,9 @@ func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys8) + } // end switch yys8 + } // end for yyj8 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -209,16 +209,16 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l } else { - yyb5 = r.CheckBreak() + yyb10 = r.CheckBreak() } - if yyb5 { + if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -229,17 +229,17 @@ func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Replicas = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l } else { - yyb5 = r.CheckBreak() + yyb10 = r.CheckBreak() } - if yyb5 { + if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -251,35 +251,35 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym12 := z.EncBinary() + _ = yym12 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.Selector) != 0 - yyq2[2] = x.TargetSelector != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep13 := !z.EncBinary() + yy2arr13 := z.EncBasicHandle().StructToArray + var yyq13 [3]bool + _, _, _ = yysep13, yyq13, yy2arr13 + const yyr13 bool = false + yyq13[1] = len(x.Selector) != 0 + yyq13[2] = x.TargetSelector != "" + var yynn13 int + if yyr13 || yy2arr13 { r.EncodeArrayStart(3) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn13 = 1 + for _, b := range yyq13 { if b { - yynn2++ + yynn13++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn13) + yynn13 = 0 } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym15 := z.EncBinary() + _ = yym15 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -288,21 +288,21 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym16 := z.EncBinary() + _ = yym16 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq13[1] { if x.Selector == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym18 := z.EncBinary() + _ = yym18 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -312,15 +312,15 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq13[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym19 := z.EncBinary() + _ = yym19 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -328,11 +328,11 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq13[2] { + yym21 := z.EncBinary() + _ = yym21 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetSelector)) @@ -341,19 +341,19 @@ func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq13[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym22 := z.EncBinary() + _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetSelector)) } } } - if yyr2 || yy2arr2 { + if yyr13 || yy2arr13 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -366,25 +366,25 @@ func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym23 := z.DecBinary() + _ = yym23 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct24 := r.ContainerType() + if yyct24 == codecSelferValueTypeMap1234 { + yyl24 := r.ReadMapStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl24, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct24 == codecSelferValueTypeArray1234 { + yyl24 := r.ReadArrayStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl24, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -396,12 +396,12 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys25Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys25Slc + var yyhl25 bool = l >= 0 + for yyj25 := 0; ; yyj25++ { + if yyhl25 { + if yyj25 >= l { break } } else { @@ -410,10 +410,10 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys25Slc = r.DecodeBytes(yys25Slc, true, true) + yys25 := string(yys25Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys25 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -424,12 +424,12 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv5 := &x.Selector - yym6 := z.DecBinary() - _ = yym6 + yyv27 := &x.Selector + yym28 := z.DecBinary() + _ = yym28 if false { } else { - z.F.DecMapStringStringX(yyv5, false, d) + z.F.DecMapStringStringX(yyv27, false, d) } } case "targetSelector": @@ -439,9 +439,9 @@ func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetSelector = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys25) + } // end switch yys25 + } // end for yyj25 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -449,16 +449,16 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj30 int + var yyb30 bool + var yyhl30 bool = l >= 0 + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l } else { - yyb8 = r.CheckBreak() + yyb30 = r.CheckBreak() } - if yyb8 { + if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -468,13 +468,13 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l } else { - yyb8 = r.CheckBreak() + yyb30 = r.CheckBreak() } - if yyb8 { + if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -482,21 +482,21 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv10 := &x.Selector - yym11 := z.DecBinary() - _ = yym11 + yyv32 := &x.Selector + yym33 := z.DecBinary() + _ = yym33 if false { } else { - z.F.DecMapStringStringX(yyv10, false, d) + z.F.DecMapStringStringX(yyv32, false, d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l } else { - yyb8 = r.CheckBreak() + yyb30 = r.CheckBreak() } - if yyb8 { + if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -507,17 +507,17 @@ func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TargetSelector = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l } else { - yyb8 = r.CheckBreak() + yyb30 = r.CheckBreak() } - if yyb8 { + if yyb30 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj30-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -529,136 +529,136 @@ func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym35 := z.EncBinary() + _ = yym35 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep36 := !z.EncBinary() + yy2arr36 := z.EncBasicHandle().StructToArray + var yyq36 [5]bool + _, _, _ = yysep36, yyq36, yy2arr36 + const yyr36 bool = false + yyq36[0] = x.Kind != "" + yyq36[1] = x.APIVersion != "" + yyq36[2] = true + yyq36[3] = true + yyq36[4] = true + var yynn36 int + if yyr36 || yy2arr36 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn36 = 0 + for _, b := range yyq36 { if b { - yynn2++ + yynn36++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn36) + yynn36 = 0 } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq36[0] { + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq36[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq36[1] { + yym41 := z.EncBinary() + _ = yym41 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq36[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym42 := z.EncBinary() + _ = yym42 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq36[2] { + yy44 := &x.ObjectMeta + yy44.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq36[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy45 := &x.ObjectMeta + yy45.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq36[3] { + yy47 := &x.Spec + yy47.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq36[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy48 := &x.Spec + yy48.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq36[4] { + yy50 := &x.Status + yy50.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq36[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy51 := &x.Status + yy51.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr36 || yy2arr36 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -671,25 +671,25 @@ func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym52 := z.DecBinary() + _ = yym52 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct53 := r.ContainerType() + if yyct53 == codecSelferValueTypeMap1234 { + yyl53 := r.ReadMapStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl53, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct53 == codecSelferValueTypeArray1234 { + yyl53 := r.ReadArrayStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl53, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -701,12 +701,12 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -715,47 +715,47 @@ func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys54Slc = r.DecodeBytes(yys54Slc, true, true) + yys54 := string(yys54Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys54 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv57 := &x.ObjectMeta + yyv57.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv58 := &x.Spec + yyv58.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv59 := &x.Status + yyv59.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys54) + } // end switch yys54 + } // end for yyj54 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -763,104 +763,104 @@ func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj60 int + var yyb60 bool + var yyhl60 bool = l >= 0 + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb9 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb9 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb9 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb9 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb9 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb9 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv63 := &x.ObjectMeta + yyv63.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb9 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb9 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ScaleSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv64 := &x.Spec + yyv64.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb9 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb9 { + if yyb60 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ScaleStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv65 := &x.Status + yyv65.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj60++ + if yyhl60 { + yyb60 = yyj60 > l } else { - yyb9 = r.CheckBreak() + yyb60 = r.CheckBreak() } - if yyb9 { + if yyb60 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj60-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -872,36 +872,36 @@ func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym66 := z.EncBinary() + _ = yym66 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep67 := !z.EncBinary() + yy2arr67 := z.EncBasicHandle().StructToArray + var yyq67 [2]bool + _, _, _ = yysep67, yyq67, yy2arr67 + const yyr67 bool = false + yyq67[0] = x.Kind != "" + yyq67[1] = x.APIVersion != "" + var yynn67 int + if yyr67 || yy2arr67 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn67 = 0 + for _, b := range yyq67 { if b { - yynn2++ + yynn67++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn67) + yynn67 = 0 } - if yyr2 || yy2arr2 { + if yyr67 || yy2arr67 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq67[0] { + yym69 := z.EncBinary() + _ = yym69 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -910,23 +910,23 @@ func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq67[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym70 := z.EncBinary() + _ = yym70 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr67 || yy2arr67 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq67[1] { + yym72 := z.EncBinary() + _ = yym72 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -935,19 +935,19 @@ func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq67[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym73 := z.EncBinary() + _ = yym73 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr67 || yy2arr67 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -960,25 +960,25 @@ func (x *ReplicationControllerDummy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym74 := z.DecBinary() + _ = yym74 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct75 := r.ContainerType() + if yyct75 == codecSelferValueTypeMap1234 { + yyl75 := r.ReadMapStart() + if yyl75 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl75, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct75 == codecSelferValueTypeArray1234 { + yyl75 := r.ReadArrayStart() + if yyl75 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl75, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -990,12 +990,12 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys76Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys76Slc + var yyhl76 bool = l >= 0 + for yyj76 := 0; ; yyj76++ { + if yyhl76 { + if yyj76 >= l { break } } else { @@ -1004,10 +1004,10 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys76Slc = r.DecodeBytes(yys76Slc, true, true) + yys76 := string(yys76Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys76 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1021,9 +1021,9 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978. x.APIVersion = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys76) + } // end switch yys76 + } // end for yyj76 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1031,16 +1031,16 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj79 int + var yyb79 bool + var yyhl79 bool = l >= 0 + yyj79++ + if yyhl79 { + yyb79 = yyj79 > l } else { - yyb6 = r.CheckBreak() + yyb79 = r.CheckBreak() } - if yyb6 { + if yyb79 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1050,13 +1050,13 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Kind = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj79++ + if yyhl79 { + yyb79 = yyj79 > l } else { - yyb6 = r.CheckBreak() + yyb79 = r.CheckBreak() } - if yyb6 { + if yyb79 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1067,17 +1067,17 @@ func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec197 x.APIVersion = string(r.DecodeString()) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj79++ + if yyhl79 { + yyb79 = yyj79 > l } else { - yyb6 = r.CheckBreak() + yyb79 = r.CheckBreak() } - if yyb6 { + if yyb79 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj79-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1089,38 +1089,38 @@ func (x *SubresourceReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym82 := z.EncBinary() + _ = yym82 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.Name != "" - yyq2[2] = x.APIVersion != "" - yyq2[3] = x.Subresource != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep83 := !z.EncBinary() + yy2arr83 := z.EncBasicHandle().StructToArray + var yyq83 [4]bool + _, _, _ = yysep83, yyq83, yy2arr83 + const yyr83 bool = false + yyq83[0] = x.Kind != "" + yyq83[1] = x.Name != "" + yyq83[2] = x.APIVersion != "" + yyq83[3] = x.Subresource != "" + var yynn83 int + if yyr83 || yy2arr83 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn83 = 0 + for _, b := range yyq83 { if b { - yynn2++ + yynn83++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn83) + yynn83 = 0 } - if yyr2 || yy2arr2 { + if yyr83 || yy2arr83 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq83[0] { + yym85 := z.EncBinary() + _ = yym85 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1129,23 +1129,23 @@ func (x *SubresourceReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq83[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym86 := z.EncBinary() + _ = yym86 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr83 || yy2arr83 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq83[1] { + yym88 := z.EncBinary() + _ = yym88 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1154,23 +1154,23 @@ func (x *SubresourceReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq83[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym89 := z.EncBinary() + _ = yym89 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr83 || yy2arr83 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq83[2] { + yym91 := z.EncBinary() + _ = yym91 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1179,23 +1179,23 @@ func (x *SubresourceReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq83[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym92 := z.EncBinary() + _ = yym92 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr83 || yy2arr83 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq83[3] { + yym94 := z.EncBinary() + _ = yym94 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) @@ -1204,19 +1204,19 @@ func (x *SubresourceReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq83[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subresource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym95 := z.EncBinary() + _ = yym95 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) } } } - if yyr2 || yy2arr2 { + if yyr83 || yy2arr83 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1229,25 +1229,25 @@ func (x *SubresourceReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym96 := z.DecBinary() + _ = yym96 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct97 := r.ContainerType() + if yyct97 == codecSelferValueTypeMap1234 { + yyl97 := r.ReadMapStart() + if yyl97 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl97, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct97 == codecSelferValueTypeArray1234 { + yyl97 := r.ReadArrayStart() + if yyl97 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl97, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1259,12 +1259,12 @@ func (x *SubresourceReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys98Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys98Slc + var yyhl98 bool = l >= 0 + for yyj98 := 0; ; yyj98++ { + if yyhl98 { + if yyj98 >= l { break } } else { @@ -1273,10 +1273,10 @@ func (x *SubresourceReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys98Slc = r.DecodeBytes(yys98Slc, true, true) + yys98 := string(yys98Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys98 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1302,9 +1302,9 @@ func (x *SubresourceReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Subresource = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys98) + } // end switch yys98 + } // end for yyj98 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1312,16 +1312,16 @@ func (x *SubresourceReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj103 int + var yyb103 bool + var yyhl103 bool = l >= 0 + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb8 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb8 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1331,13 +1331,13 @@ func (x *SubresourceReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb8 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb8 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1347,13 +1347,13 @@ func (x *SubresourceReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Name = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb8 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb8 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1363,13 +1363,13 @@ func (x *SubresourceReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb8 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb8 { + if yyb103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1380,17 +1380,17 @@ func (x *SubresourceReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Subresource = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l } else { - yyb8 = r.CheckBreak() + yyb103 = r.CheckBreak() } - if yyb8 { + if yyb103 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj103-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1402,33 +1402,33 @@ func (x *CPUTargetUtilization) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym108 := z.EncBinary() + _ = yym108 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep109 := !z.EncBinary() + yy2arr109 := z.EncBasicHandle().StructToArray + var yyq109 [1]bool + _, _, _ = yysep109, yyq109, yy2arr109 + const yyr109 bool = false + var yynn109 int + if yyr109 || yy2arr109 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn109 = 1 + for _, b := range yyq109 { if b { - yynn2++ + yynn109++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn109) + yynn109 = 0 } - if yyr2 || yy2arr2 { + if yyr109 || yy2arr109 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym111 := z.EncBinary() + _ = yym111 if false { } else { r.EncodeInt(int64(x.TargetPercentage)) @@ -1437,14 +1437,14 @@ func (x *CPUTargetUtilization) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPercentage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym112 := z.EncBinary() + _ = yym112 if false { } else { r.EncodeInt(int64(x.TargetPercentage)) } } - if yyr2 || yy2arr2 { + if yyr109 || yy2arr109 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1457,25 +1457,25 @@ func (x *CPUTargetUtilization) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym113 := z.DecBinary() + _ = yym113 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct114 := r.ContainerType() + if yyct114 == codecSelferValueTypeMap1234 { + yyl114 := r.ReadMapStart() + if yyl114 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl114, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct114 == codecSelferValueTypeArray1234 { + yyl114 := r.ReadArrayStart() + if yyl114 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl114, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1487,12 +1487,12 @@ func (x *CPUTargetUtilization) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys115Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys115Slc + var yyhl115 bool = l >= 0 + for yyj115 := 0; ; yyj115++ { + if yyhl115 { + if yyj115 >= l { break } } else { @@ -1501,10 +1501,10 @@ func (x *CPUTargetUtilization) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys115Slc = r.DecodeBytes(yys115Slc, true, true) + yys115 := string(yys115Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys115 { case "targetPercentage": if r.TryDecodeAsNil() { x.TargetPercentage = 0 @@ -1512,9 +1512,9 @@ func (x *CPUTargetUtilization) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.TargetPercentage = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys115) + } // end switch yys115 + } // end for yyj115 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1522,16 +1522,16 @@ func (x *CPUTargetUtilization) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj117 int + var yyb117 bool + var yyhl117 bool = l >= 0 + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb5 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb5 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1542,17 +1542,17 @@ func (x *CPUTargetUtilization) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.TargetPercentage = int32(r.DecodeInt(32)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb5 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb5 { + if yyb117 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj117-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1564,33 +1564,33 @@ func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym119 := z.EncBinary() + _ = yym119 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep120 := !z.EncBinary() + yy2arr120 := z.EncBasicHandle().StructToArray + var yyq120 [2]bool + _, _, _ = yysep120, yyq120, yy2arr120 + const yyr120 bool = false + var yynn120 int + if yyr120 || yy2arr120 { r.EncodeArrayStart(2) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn120 = 2 + for _, b := range yyq120 { if b { - yynn2++ + yynn120++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn120) + yynn120 = 0 } - if yyr2 || yy2arr2 { + if yyr120 || yy2arr120 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym122 := z.EncBinary() + _ = yym122 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1599,41 +1599,41 @@ func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym123 := z.EncBinary() + _ = yym123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr120 || yy2arr120 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.TargetValue - yym8 := z.EncBinary() - _ = yym8 + yy125 := &x.TargetValue + yym126 := z.EncBinary() + _ = yym126 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy125) { + } else if !yym126 && z.IsJSONHandle() { + z.EncJSONMarshal(yy125) } else { - z.EncFallback(yy7) + z.EncFallback(yy125) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.TargetValue - yym10 := z.EncBinary() - _ = yym10 + yy127 := &x.TargetValue + yym128 := z.EncBinary() + _ = yym128 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy127) { + } else if !yym128 && z.IsJSONHandle() { + z.EncJSONMarshal(yy127) } else { - z.EncFallback(yy9) + z.EncFallback(yy127) } } - if yyr2 || yy2arr2 { + if yyr120 || yy2arr120 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1646,25 +1646,25 @@ func (x *CustomMetricTarget) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym129 := z.DecBinary() + _ = yym129 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct130 := r.ContainerType() + if yyct130 == codecSelferValueTypeMap1234 { + yyl130 := r.ReadMapStart() + if yyl130 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl130, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct130 == codecSelferValueTypeArray1234 { + yyl130 := r.ReadArrayStart() + if yyl130 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl130, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1676,12 +1676,12 @@ func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys131Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys131Slc + var yyhl131 bool = l >= 0 + for yyj131 := 0; ; yyj131++ { + if yyhl131 { + if yyj131 >= l { break } } else { @@ -1690,10 +1690,10 @@ func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys131Slc = r.DecodeBytes(yys131Slc, true, true) + yys131 := string(yys131Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys131 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -1704,21 +1704,21 @@ func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.TargetValue = pkg4_resource.Quantity{} } else { - yyv5 := &x.TargetValue - yym6 := z.DecBinary() - _ = yym6 + yyv133 := &x.TargetValue + yym134 := z.DecBinary() + _ = yym134 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv133) { + } else if !yym134 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv133) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv133, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys131) + } // end switch yys131 + } // end for yyj131 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1726,16 +1726,16 @@ func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj135 int + var yyb135 bool + var yyhl135 bool = l >= 0 + yyj135++ + if yyhl135 { + yyb135 = yyj135 > l } else { - yyb7 = r.CheckBreak() + yyb135 = r.CheckBreak() } - if yyb7 { + if yyb135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1745,13 +1745,13 @@ func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj135++ + if yyhl135 { + yyb135 = yyj135 > l } else { - yyb7 = r.CheckBreak() + yyb135 = r.CheckBreak() } - if yyb7 { + if yyb135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1759,29 +1759,29 @@ func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.TargetValue = pkg4_resource.Quantity{} } else { - yyv9 := &x.TargetValue - yym10 := z.DecBinary() - _ = yym10 + yyv137 := &x.TargetValue + yym138 := z.DecBinary() + _ = yym138 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv137) { + } else if !yym138 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv137) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv137, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj135++ + if yyhl135 { + yyb135 = yyj135 > l } else { - yyb7 = r.CheckBreak() + yyb135 = r.CheckBreak() } - if yyb7 { + if yyb135 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj135-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1793,36 +1793,36 @@ func (x *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym139 := z.EncBinary() + _ = yym139 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep140 := !z.EncBinary() + yy2arr140 := z.EncBasicHandle().StructToArray + var yyq140 [1]bool + _, _, _ = yysep140, yyq140, yy2arr140 + const yyr140 bool = false + var yynn140 int + if yyr140 || yy2arr140 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn140 = 1 + for _, b := range yyq140 { if b { - yynn2++ + yynn140++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn140) + yynn140 = 0 } - if yyr2 || yy2arr2 { + if yyr140 || yy2arr140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym142 := z.EncBinary() + _ = yym142 if false { } else { h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) @@ -1835,15 +1835,15 @@ func (x *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym143 := z.EncBinary() + _ = yym143 if false { } else { h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr140 || yy2arr140 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1856,25 +1856,25 @@ func (x *CustomMetricTargetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym144 := z.DecBinary() + _ = yym144 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct145 := r.ContainerType() + if yyct145 == codecSelferValueTypeMap1234 { + yyl145 := r.ReadMapStart() + if yyl145 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl145, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct145 == codecSelferValueTypeArray1234 { + yyl145 := r.ReadArrayStart() + if yyl145 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl145, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1886,12 +1886,12 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys146Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys146Slc + var yyhl146 bool = l >= 0 + for yyj146 := 0; ; yyj146++ { + if yyhl146 { + if yyj146 >= l { break } } else { @@ -1900,26 +1900,26 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys146Slc = r.DecodeBytes(yys146Slc, true, true) + yys146 := string(yys146Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys146 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv147 := &x.Items + yym148 := z.DecBinary() + _ = yym148 if false { } else { - h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv4), d) + h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv147), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys146) + } // end switch yys146 + } // end for yyj146 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1927,16 +1927,16 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj149 int + var yyb149 bool + var yyhl149 bool = l >= 0 + yyj149++ + if yyhl149 { + yyb149 = yyj149 > l } else { - yyb6 = r.CheckBreak() + yyb149 = r.CheckBreak() } - if yyb6 { + if yyb149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1944,26 +1944,26 @@ func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Items = nil } else { - yyv7 := &x.Items - yym8 := z.DecBinary() - _ = yym8 + yyv150 := &x.Items + yym151 := z.DecBinary() + _ = yym151 if false { } else { - h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv7), d) + h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv150), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj149++ + if yyhl149 { + yyb149 = yyj149 > l } else { - yyb6 = r.CheckBreak() + yyb149 = r.CheckBreak() } - if yyb6 { + if yyb149 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj149-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1975,33 +1975,33 @@ func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym152 := z.EncBinary() + _ = yym152 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep153 := !z.EncBinary() + yy2arr153 := z.EncBasicHandle().StructToArray + var yyq153 [2]bool + _, _, _ = yysep153, yyq153, yy2arr153 + const yyr153 bool = false + var yynn153 int + if yyr153 || yy2arr153 { r.EncodeArrayStart(2) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn153 = 2 + for _, b := range yyq153 { if b { - yynn2++ + yynn153++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn153) + yynn153 = 0 } - if yyr2 || yy2arr2 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym155 := z.EncBinary() + _ = yym155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -2010,41 +2010,41 @@ func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym156 := z.EncBinary() + _ = yym156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.CurrentValue - yym8 := z.EncBinary() - _ = yym8 + yy158 := &x.CurrentValue + yym159 := z.EncBinary() + _ = yym159 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy158) { + } else if !yym159 && z.IsJSONHandle() { + z.EncJSONMarshal(yy158) } else { - z.EncFallback(yy7) + z.EncFallback(yy158) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.CurrentValue - yym10 := z.EncBinary() - _ = yym10 + yy160 := &x.CurrentValue + yym161 := z.EncBinary() + _ = yym161 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy160) { + } else if !yym161 && z.IsJSONHandle() { + z.EncJSONMarshal(yy160) } else { - z.EncFallback(yy9) + z.EncFallback(yy160) } } - if yyr2 || yy2arr2 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2057,25 +2057,25 @@ func (x *CustomMetricCurrentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym162 := z.DecBinary() + _ = yym162 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct163 := r.ContainerType() + if yyct163 == codecSelferValueTypeMap1234 { + yyl163 := r.ReadMapStart() + if yyl163 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl163, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct163 == codecSelferValueTypeArray1234 { + yyl163 := r.ReadArrayStart() + if yyl163 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl163, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2087,12 +2087,12 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys164Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys164Slc + var yyhl164 bool = l >= 0 + for yyj164 := 0; ; yyj164++ { + if yyhl164 { + if yyj164 >= l { break } } else { @@ -2101,10 +2101,10 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys164Slc = r.DecodeBytes(yys164Slc, true, true) + yys164 := string(yys164Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys164 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -2115,21 +2115,21 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.CurrentValue = pkg4_resource.Quantity{} } else { - yyv5 := &x.CurrentValue - yym6 := z.DecBinary() - _ = yym6 + yyv166 := &x.CurrentValue + yym167 := z.DecBinary() + _ = yym167 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv166) { + } else if !yym167 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv166) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv166, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys164) + } // end switch yys164 + } // end for yyj164 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2137,16 +2137,16 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj168 int + var yyb168 bool + var yyhl168 bool = l >= 0 + yyj168++ + if yyhl168 { + yyb168 = yyj168 > l } else { - yyb7 = r.CheckBreak() + yyb168 = r.CheckBreak() } - if yyb7 { + if yyb168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2156,13 +2156,13 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Name = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj168++ + if yyhl168 { + yyb168 = yyj168 > l } else { - yyb7 = r.CheckBreak() + yyb168 = r.CheckBreak() } - if yyb7 { + if yyb168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2170,29 +2170,29 @@ func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.CurrentValue = pkg4_resource.Quantity{} } else { - yyv9 := &x.CurrentValue - yym10 := z.DecBinary() - _ = yym10 + yyv170 := &x.CurrentValue + yym171 := z.DecBinary() + _ = yym171 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv170) { + } else if !yym171 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv170) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv170, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj168++ + if yyhl168 { + yyb168 = yyj168 > l } else { - yyb7 = r.CheckBreak() + yyb168 = r.CheckBreak() } - if yyb7 { + if yyb168 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj168-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2204,36 +2204,36 @@ func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym172 := z.EncBinary() + _ = yym172 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep173 := !z.EncBinary() + yy2arr173 := z.EncBasicHandle().StructToArray + var yyq173 [1]bool + _, _, _ = yysep173, yyq173, yy2arr173 + const yyr173 bool = false + var yynn173 int + if yyr173 || yy2arr173 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn173 = 1 + for _, b := range yyq173 { if b { - yynn2++ + yynn173++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn173) + yynn173 = 0 } - if yyr2 || yy2arr2 { + if yyr173 || yy2arr173 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym175 := z.EncBinary() + _ = yym175 if false { } else { h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) @@ -2246,15 +2246,15 @@ func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym176 := z.EncBinary() + _ = yym176 if false { } else { h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr173 || yy2arr173 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2267,25 +2267,25 @@ func (x *CustomMetricCurrentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym177 := z.DecBinary() + _ = yym177 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct178 := r.ContainerType() + if yyct178 == codecSelferValueTypeMap1234 { + yyl178 := r.ReadMapStart() + if yyl178 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl178, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct178 == codecSelferValueTypeArray1234 { + yyl178 := r.ReadArrayStart() + if yyl178 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl178, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2297,12 +2297,12 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys179Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys179Slc + var yyhl179 bool = l >= 0 + for yyj179 := 0; ; yyj179++ { + if yyhl179 { + if yyj179 >= l { break } } else { @@ -2311,26 +2311,26 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys179Slc = r.DecodeBytes(yys179Slc, true, true) + yys179 := string(yys179Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys179 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4 := &x.Items - yym5 := z.DecBinary() - _ = yym5 + yyv180 := &x.Items + yym181 := z.DecBinary() + _ = yym181 if false { } else { - h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv4), d) + h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv180), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys179) + } // end switch yys179 + } // end for yyj179 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2338,16 +2338,16 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj182 int + var yyb182 bool + var yyhl182 bool = l >= 0 + yyj182++ + if yyhl182 { + yyb182 = yyj182 > l } else { - yyb6 = r.CheckBreak() + yyb182 = r.CheckBreak() } - if yyb6 { + if yyb182 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2355,26 +2355,26 @@ func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv7 := &x.Items - yym8 := z.DecBinary() - _ = yym8 + yyv183 := &x.Items + yym184 := z.DecBinary() + _ = yym184 if false { } else { - h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv7), d) + h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv183), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj182++ + if yyhl182 { + yyb182 = yyj182 > l } else { - yyb6 = r.CheckBreak() + yyb182 = r.CheckBreak() } - if yyb6 { + if yyb182 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj182-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2386,81 +2386,81 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym185 := z.EncBinary() + _ = yym185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.MinReplicas != nil - yyq2[3] = x.CPUUtilization != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep186 := !z.EncBinary() + yy2arr186 := z.EncBasicHandle().StructToArray + var yyq186 [4]bool + _, _, _ = yysep186, yyq186, yy2arr186 + const yyr186 bool = false + yyq186[1] = x.MinReplicas != nil + yyq186[3] = x.CPUUtilization != nil + var yynn186 int + if yyr186 || yy2arr186 { r.EncodeArrayStart(4) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn186 = 2 + for _, b := range yyq186 { if b { - yynn2++ + yynn186++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn186) + yynn186 = 0 } - if yyr2 || yy2arr2 { + if yyr186 || yy2arr186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.ScaleRef - yy4.CodecEncodeSelf(e) + yy188 := &x.ScaleRef + yy188.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scaleRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ScaleRef - yy6.CodecEncodeSelf(e) + yy189 := &x.ScaleRef + yy189.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr186 || yy2arr186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq186[1] { if x.MinReplicas == nil { r.EncodeNil() } else { - yy9 := *x.MinReplicas - yym10 := z.EncBinary() - _ = yym10 + yy191 := *x.MinReplicas + yym192 := z.EncBinary() + _ = yym192 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy191)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq186[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MinReplicas == nil { r.EncodeNil() } else { - yy11 := *x.MinReplicas - yym12 := z.EncBinary() - _ = yym12 + yy193 := *x.MinReplicas + yym194 := z.EncBinary() + _ = yym194 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy193)) } } } } - if yyr2 || yy2arr2 { + if yyr186 || yy2arr186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym14 := z.EncBinary() - _ = yym14 + yym196 := z.EncBinary() + _ = yym196 if false { } else { r.EncodeInt(int64(x.MaxReplicas)) @@ -2469,16 +2469,16 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym197 := z.EncBinary() + _ = yym197 if false { } else { r.EncodeInt(int64(x.MaxReplicas)) } } - if yyr2 || yy2arr2 { + if yyr186 || yy2arr186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq186[3] { if x.CPUUtilization == nil { r.EncodeNil() } else { @@ -2488,7 +2488,7 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq186[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cpuUtilization")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2499,7 +2499,7 @@ func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr186 || yy2arr186 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2512,25 +2512,25 @@ func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym199 := z.DecBinary() + _ = yym199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct200 := r.ContainerType() + if yyct200 == codecSelferValueTypeMap1234 { + yyl200 := r.ReadMapStart() + if yyl200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl200, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct200 == codecSelferValueTypeArray1234 { + yyl200 := r.ReadArrayStart() + if yyl200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl200, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2542,12 +2542,12 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys201Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys201Slc + var yyhl201 bool = l >= 0 + for yyj201 := 0; ; yyj201++ { + if yyhl201 { + if yyj201 >= l { break } } else { @@ -2556,16 +2556,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys201Slc = r.DecodeBytes(yys201Slc, true, true) + yys201 := string(yys201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys201 { case "scaleRef": if r.TryDecodeAsNil() { x.ScaleRef = SubresourceReference{} } else { - yyv4 := &x.ScaleRef - yyv4.CodecDecodeSelf(d) + yyv202 := &x.ScaleRef + yyv202.CodecDecodeSelf(d) } case "minReplicas": if r.TryDecodeAsNil() { @@ -2576,8 +2576,8 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 if x.MinReplicas == nil { x.MinReplicas = new(int32) } - yym6 := z.DecBinary() - _ = yym6 + yym204 := z.DecBinary() + _ = yym204 if false { } else { *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) @@ -2601,9 +2601,9 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978 x.CPUUtilization.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys201) + } // end switch yys201 + } // end for yyj201 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2611,16 +2611,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj207 int + var yyb207 bool + var yyhl207 bool = l >= 0 + yyj207++ + if yyhl207 { + yyb207 = yyj207 > l } else { - yyb9 = r.CheckBreak() + yyb207 = r.CheckBreak() } - if yyb9 { + if yyb207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2628,16 +2628,16 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.ScaleRef = SubresourceReference{} } else { - yyv10 := &x.ScaleRef - yyv10.CodecDecodeSelf(d) + yyv208 := &x.ScaleRef + yyv208.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj207++ + if yyhl207 { + yyb207 = yyj207 > l } else { - yyb9 = r.CheckBreak() + yyb207 = r.CheckBreak() } - if yyb9 { + if yyb207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2650,20 +2650,20 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 if x.MinReplicas == nil { x.MinReplicas = new(int32) } - yym12 := z.DecBinary() - _ = yym12 + yym210 := z.DecBinary() + _ = yym210 if false { } else { *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj207++ + if yyhl207 { + yyb207 = yyj207 > l } else { - yyb9 = r.CheckBreak() + yyb207 = r.CheckBreak() } - if yyb9 { + if yyb207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2673,13 +2673,13 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 } else { x.MaxReplicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj207++ + if yyhl207 { + yyb207 = yyj207 > l } else { - yyb9 = r.CheckBreak() + yyb207 = r.CheckBreak() } - if yyb9 { + if yyb207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2695,17 +2695,17 @@ func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec19 x.CPUUtilization.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj207++ + if yyhl207 { + yyb207 = yyj207 > l } else { - yyb9 = r.CheckBreak() + yyb207 = r.CheckBreak() } - if yyb9 { + if yyb207 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj207-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2717,80 +2717,80 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym213 := z.EncBinary() + _ = yym213 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.ObservedGeneration != nil - yyq2[1] = x.LastScaleTime != nil - yyq2[4] = x.CurrentCPUUtilizationPercentage != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep214 := !z.EncBinary() + yy2arr214 := z.EncBasicHandle().StructToArray + var yyq214 [5]bool + _, _, _ = yysep214, yyq214, yy2arr214 + const yyr214 bool = false + yyq214[0] = x.ObservedGeneration != nil + yyq214[1] = x.LastScaleTime != nil + yyq214[4] = x.CurrentCPUUtilizationPercentage != nil + var yynn214 int + if yyr214 || yy2arr214 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn214 = 2 + for _, b := range yyq214 { if b { - yynn2++ + yynn214++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn214) + yynn214 = 0 } - if yyr2 || yy2arr2 { + if yyr214 || yy2arr214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq214[0] { if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy4 := *x.ObservedGeneration - yym5 := z.EncBinary() - _ = yym5 + yy216 := *x.ObservedGeneration + yym217 := z.EncBinary() + _ = yym217 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy216)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq214[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ObservedGeneration == nil { r.EncodeNil() } else { - yy6 := *x.ObservedGeneration - yym7 := z.EncBinary() - _ = yym7 + yy218 := *x.ObservedGeneration + yym219 := z.EncBinary() + _ = yym219 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy218)) } } } } - if yyr2 || yy2arr2 { + if yyr214 || yy2arr214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq214[1] { if x.LastScaleTime == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym221 := z.EncBinary() + _ = yym221 if false { } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym9 { + } else if yym221 { z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym221 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScaleTime) } else { z.EncFallback(x.LastScaleTime) @@ -2800,20 +2800,20 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq214[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastScaleTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LastScaleTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym222 := z.EncBinary() + _ = yym222 if false { } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym10 { + } else if yym222 { z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym222 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScaleTime) } else { z.EncFallback(x.LastScaleTime) @@ -2821,10 +2821,10 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr214 || yy2arr214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym12 := z.EncBinary() - _ = yym12 + yym224 := z.EncBinary() + _ = yym224 if false { } else { r.EncodeInt(int64(x.CurrentReplicas)) @@ -2833,17 +2833,17 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym225 := z.EncBinary() + _ = yym225 if false { } else { r.EncodeInt(int64(x.CurrentReplicas)) } } - if yyr2 || yy2arr2 { + if yyr214 || yy2arr214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym15 := z.EncBinary() - _ = yym15 + yym227 := z.EncBinary() + _ = yym227 if false { } else { r.EncodeInt(int64(x.DesiredReplicas)) @@ -2852,49 +2852,49 @@ func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym228 := z.EncBinary() + _ = yym228 if false { } else { r.EncodeInt(int64(x.DesiredReplicas)) } } - if yyr2 || yy2arr2 { + if yyr214 || yy2arr214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq214[4] { if x.CurrentCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy18 := *x.CurrentCPUUtilizationPercentage - yym19 := z.EncBinary() - _ = yym19 + yy230 := *x.CurrentCPUUtilizationPercentage + yym231 := z.EncBinary() + _ = yym231 if false { } else { - r.EncodeInt(int64(yy18)) + r.EncodeInt(int64(yy230)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq214[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentCPUUtilizationPercentage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CurrentCPUUtilizationPercentage == nil { r.EncodeNil() } else { - yy20 := *x.CurrentCPUUtilizationPercentage - yym21 := z.EncBinary() - _ = yym21 + yy232 := *x.CurrentCPUUtilizationPercentage + yym233 := z.EncBinary() + _ = yym233 if false { } else { - r.EncodeInt(int64(yy20)) + r.EncodeInt(int64(yy232)) } } } } - if yyr2 || yy2arr2 { + if yyr214 || yy2arr214 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2907,25 +2907,25 @@ func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym234 := z.DecBinary() + _ = yym234 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct235 := r.ContainerType() + if yyct235 == codecSelferValueTypeMap1234 { + yyl235 := r.ReadMapStart() + if yyl235 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl235, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct235 == codecSelferValueTypeArray1234 { + yyl235 := r.ReadArrayStart() + if yyl235 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl235, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2937,12 +2937,12 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys236Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys236Slc + var yyhl236 bool = l >= 0 + for yyj236 := 0; ; yyj236++ { + if yyhl236 { + if yyj236 >= l { break } } else { @@ -2951,10 +2951,10 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys236Slc = r.DecodeBytes(yys236Slc, true, true) + yys236 := string(yys236Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys236 { case "observedGeneration": if r.TryDecodeAsNil() { if x.ObservedGeneration != nil { @@ -2964,8 +2964,8 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym5 := z.DecBinary() - _ = yym5 + yym238 := z.DecBinary() + _ = yym238 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) @@ -2980,13 +2980,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.LastScaleTime == nil { x.LastScaleTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym240 := z.DecBinary() + _ = yym240 if false { } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym7 { + } else if yym240 { z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym240 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScaleTime) } else { z.DecFallback(x.LastScaleTime, false) @@ -3013,17 +3013,17 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec19 if x.CurrentCPUUtilizationPercentage == nil { x.CurrentCPUUtilizationPercentage = new(int32) } - yym11 := z.DecBinary() - _ = yym11 + yym244 := z.DecBinary() + _ = yym244 if false { } else { *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys236) + } // end switch yys236 + } // end for yyj236 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3031,16 +3031,16 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj245 int + var yyb245 bool + var yyhl245 bool = l >= 0 + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l } else { - yyb12 = r.CheckBreak() + yyb245 = r.CheckBreak() } - if yyb12 { + if yyb245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3053,20 +3053,20 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.ObservedGeneration == nil { x.ObservedGeneration = new(int64) } - yym14 := z.DecBinary() - _ = yym14 + yym247 := z.DecBinary() + _ = yym247 if false { } else { *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l } else { - yyb12 = r.CheckBreak() + yyb245 = r.CheckBreak() } - if yyb12 { + if yyb245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3079,25 +3079,25 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.LastScaleTime == nil { x.LastScaleTime = new(pkg1_unversioned.Time) } - yym16 := z.DecBinary() - _ = yym16 + yym249 := z.DecBinary() + _ = yym249 if false { } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym16 { + } else if yym249 { z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym16 && z.IsJSONHandle() { + } else if !yym249 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScaleTime) } else { z.DecFallback(x.LastScaleTime, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l } else { - yyb12 = r.CheckBreak() + yyb245 = r.CheckBreak() } - if yyb12 { + if yyb245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3107,13 +3107,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec } else { x.CurrentReplicas = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l } else { - yyb12 = r.CheckBreak() + yyb245 = r.CheckBreak() } - if yyb12 { + if yyb245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3123,13 +3123,13 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec } else { x.DesiredReplicas = int32(r.DecodeInt(32)) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l } else { - yyb12 = r.CheckBreak() + yyb245 = r.CheckBreak() } - if yyb12 { + if yyb245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3142,25 +3142,25 @@ func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec if x.CurrentCPUUtilizationPercentage == nil { x.CurrentCPUUtilizationPercentage = new(int32) } - yym20 := z.DecBinary() - _ = yym20 + yym253 := z.DecBinary() + _ = yym253 if false { } else { *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) } } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l } else { - yyb12 = r.CheckBreak() + yyb245 = r.CheckBreak() } - if yyb12 { + if yyb245 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj245-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3172,136 +3172,136 @@ func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym254 := z.EncBinary() + _ = yym254 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep255 := !z.EncBinary() + yy2arr255 := z.EncBasicHandle().StructToArray + var yyq255 [5]bool + _, _, _ = yysep255, yyq255, yy2arr255 + const yyr255 bool = false + yyq255[0] = x.Kind != "" + yyq255[1] = x.APIVersion != "" + yyq255[2] = true + yyq255[3] = true + yyq255[4] = true + var yynn255 int + if yyr255 || yy2arr255 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn255 = 0 + for _, b := range yyq255 { if b { - yynn2++ + yynn255++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn255) + yynn255 = 0 } - if yyr2 || yy2arr2 { + if yyr255 || yy2arr255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq255[0] { + yym257 := z.EncBinary() + _ = yym257 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq255[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym258 := z.EncBinary() + _ = yym258 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr255 || yy2arr255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq255[1] { + yym260 := z.EncBinary() + _ = yym260 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq255[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym261 := z.EncBinary() + _ = yym261 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr255 || yy2arr255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq255[2] { + yy263 := &x.ObjectMeta + yy263.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq255[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy264 := &x.ObjectMeta + yy264.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr255 || yy2arr255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq255[3] { + yy266 := &x.Spec + yy266.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq255[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy267 := &x.Spec + yy267.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr255 || yy2arr255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq255[4] { + yy269 := &x.Status + yy269.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq255[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy270 := &x.Status + yy270.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr255 || yy2arr255 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3314,25 +3314,25 @@ func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym271 := z.DecBinary() + _ = yym271 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct272 := r.ContainerType() + if yyct272 == codecSelferValueTypeMap1234 { + yyl272 := r.ReadMapStart() + if yyl272 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl272, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct272 == codecSelferValueTypeArray1234 { + yyl272 := r.ReadArrayStart() + if yyl272 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl272, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3344,12 +3344,12 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys273Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys273Slc + var yyhl273 bool = l >= 0 + for yyj273 := 0; ; yyj273++ { + if yyhl273 { + if yyj273 >= l { break } } else { @@ -3358,47 +3358,47 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys273Slc = r.DecodeBytes(yys273Slc, true, true) + yys273 := string(yys273Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys273 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv276 := &x.ObjectMeta + yyv276.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = HorizontalPodAutoscalerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv277 := &x.Spec + yyv277.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = HorizontalPodAutoscalerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv278 := &x.Status + yyv278.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys273) + } // end switch yys273 + } // end for yyj273 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3406,104 +3406,104 @@ func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj279 int + var yyb279 bool + var yyhl279 bool = l >= 0 + yyj279++ + if yyhl279 { + yyb279 = yyj279 > l } else { - yyb9 = r.CheckBreak() + yyb279 = r.CheckBreak() } - if yyb9 { + if yyb279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj279++ + if yyhl279 { + yyb279 = yyj279 > l } else { - yyb9 = r.CheckBreak() + yyb279 = r.CheckBreak() } - if yyb9 { + if yyb279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj279++ + if yyhl279 { + yyb279 = yyj279 > l } else { - yyb9 = r.CheckBreak() + yyb279 = r.CheckBreak() } - if yyb9 { + if yyb279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv282 := &x.ObjectMeta + yyv282.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj279++ + if yyhl279 { + yyb279 = yyj279 > l } else { - yyb9 = r.CheckBreak() + yyb279 = r.CheckBreak() } - if yyb9 { + if yyb279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = HorizontalPodAutoscalerSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv283 := &x.Spec + yyv283.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj279++ + if yyhl279 { + yyb279 = yyj279 > l } else { - yyb9 = r.CheckBreak() + yyb279 = r.CheckBreak() } - if yyb9 { + if yyb279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = HorizontalPodAutoscalerStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv284 := &x.Status + yyv284.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj279++ + if yyhl279 { + yyb279 = yyj279 > l } else { - yyb9 = r.CheckBreak() + yyb279 = r.CheckBreak() } - if yyb9 { + if yyb279 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj279-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3515,139 +3515,139 @@ func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym285 := z.EncBinary() + _ = yym285 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep286 := !z.EncBinary() + yy2arr286 := z.EncBasicHandle().StructToArray + var yyq286 [4]bool + _, _, _ = yysep286, yyq286, yy2arr286 + const yyr286 bool = false + yyq286[0] = x.Kind != "" + yyq286[1] = x.APIVersion != "" + yyq286[2] = true + var yynn286 int + if yyr286 || yy2arr286 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn286 = 1 + for _, b := range yyq286 { if b { - yynn2++ + yynn286++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn286) + yynn286 = 0 } - if yyr2 || yy2arr2 { + if yyr286 || yy2arr286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq286[0] { + yym288 := z.EncBinary() + _ = yym288 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq286[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym289 := z.EncBinary() + _ = yym289 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr286 || yy2arr286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq286[1] { + yym291 := z.EncBinary() + _ = yym291 if false { } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq286[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym292 := z.EncBinary() + _ = yym292 if false { } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr286 || yy2arr286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq286[2] { + yy294 := &x.ListMeta + yym295 := z.EncBinary() + _ = yym295 if false { + } else if z.HasExtensions() && z.EncExt(yy294) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy294) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq286[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy296 := &x.ListMeta + yym297 := z.EncBinary() + _ = yym297 if false { + } else if z.HasExtensions() && z.EncExt(yy296) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy296) } } } - if yyr2 || yy2arr2 { + if yyr286 || yy2arr286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym299 := z.EncBinary() + _ = yym299 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym300 := z.EncBinary() + _ = yym300 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr286 || yy2arr286 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3660,25 +3660,25 @@ func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym301 := z.DecBinary() + _ = yym301 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct302 := r.ContainerType() + if yyct302 == codecSelferValueTypeMap1234 { + yyl302 := r.ReadMapStart() + if yyl302 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl302, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct302 == codecSelferValueTypeArray1234 { + yyl302 := r.ReadArrayStart() + if yyl302 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl302, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3690,12 +3690,12 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys303Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys303Slc + var yyhl303 bool = l >= 0 + for yyj303 := 0; ; yyj303++ { + if yyhl303 { + if yyj303 >= l { break } } else { @@ -3704,51 +3704,51 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys303Slc = r.DecodeBytes(yys303Slc, true, true) + yys303 := string(yys303Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys303 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv306 := &x.ListMeta + yym307 := z.DecBinary() + _ = yym307 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv306) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv306, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv308 := &x.Items + yym309 := z.DecBinary() + _ = yym309 if false { } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv6), d) + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv308), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys303) + } // end switch yys303 + } // end for yyj303 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3756,98 +3756,98 @@ func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj310 int + var yyb310 bool + var yyhl310 bool = l >= 0 + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb10 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb10 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb10 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb10 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb10 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb10 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv313 := &x.ListMeta + yym314 := z.DecBinary() + _ = yym314 + if false { + } else if z.HasExtensions() && z.DecExt(yyv313) { + } else { + z.DecFallback(yyv313, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb10 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb10 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv315 := &x.Items + yym316 := z.DecBinary() + _ = yym316 + if false { + } else { + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv315), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb10 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb10 { + if yyb310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj310-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3859,160 +3859,160 @@ func (x *ThirdPartyResource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym317 := z.EncBinary() + _ = yym317 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] = true - yyq2[1] = x.Description != "" - yyq2[2] = len(x.Versions) != 0 - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep318 := !z.EncBinary() + yy2arr318 := z.EncBasicHandle().StructToArray + var yyq318 [5]bool + _, _, _ = yysep318, yyq318, yy2arr318 + const yyr318 bool = false + yyq318[0] = x.Kind != "" + yyq318[1] = x.APIVersion != "" + yyq318[2] = true + yyq318[3] = x.Description != "" + yyq318[4] = len(x.Versions) != 0 + var yynn318 int + if yyr318 || yy2arr318 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn318 = 0 + for _, b := range yyq318 { if b { - yynn2++ + yynn318++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn318) + yynn318 = 0 } - if yyr2 || yy2arr2 { + if yyr318 || yy2arr318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq318[0] { + yym320 := z.EncBinary() + _ = yym320 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq318[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym321 := z.EncBinary() + _ = yym321 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr318 || yy2arr318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym9 := z.EncBinary() - _ = yym9 + if yyq318[1] { + yym323 := z.EncBinary() + _ = yym323 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Description)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq318[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("description")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym10 := z.EncBinary() - _ = yym10 + yym324 := z.EncBinary() + _ = yym324 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Description)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr318 || yy2arr318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - if x.Versions == nil { - r.EncodeNil() - } else { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) - } - } + if yyq318[2] { + yy326 := &x.ObjectMeta + yy326.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq318[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("versions")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Versions == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) - } - } + yy327 := &x.ObjectMeta + yy327.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr318 || yy2arr318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if yyq318[3] { + yym329 := z.EncBinary() + _ = yym329 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Description)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq318[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("description")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym330 := z.EncBinary() + _ = yym330 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Description)) } } } - if yyr2 || yy2arr2 { + if yyr318 || yy2arr318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { + if yyq318[4] { + if x.Versions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym332 := z.EncBinary() + _ = yym332 + if false { + } else { + h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq318[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("versions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { + if x.Versions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym333 := z.EncBinary() + _ = yym333 + if false { + } else { + h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) + } } } } - if yyr2 || yy2arr2 { + if yyr318 || yy2arr318 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4025,25 +4025,25 @@ func (x *ThirdPartyResource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym334 := z.DecBinary() + _ = yym334 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct335 := r.ContainerType() + if yyct335 == codecSelferValueTypeMap1234 { + yyl335 := r.ReadMapStart() + if yyl335 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl335, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct335 == codecSelferValueTypeArray1234 { + yyl335 := r.ReadArrayStart() + if yyl335 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl335, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4055,12 +4055,12 @@ func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys336Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys336Slc + var yyhl336 bool = l >= 0 + for yyj336 := 0; ; yyj336++ { + if yyhl336 { + if yyj336 >= l { break } } else { @@ -4069,16 +4069,28 @@ func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys336Slc = r.DecodeBytes(yys336Slc, true, true) + yys336 := string(yys336Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys336 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv339 := &x.ObjectMeta + yyv339.CodecDecodeSelf(d) } case "description": if r.TryDecodeAsNil() { @@ -4090,30 +4102,18 @@ func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Versions = nil } else { - yyv6 := &x.Versions - yym7 := z.DecBinary() - _ = yym7 + yyv341 := &x.Versions + yym342 := z.DecBinary() + _ = yym342 if false { } else { - h.decSliceAPIVersion((*[]APIVersion)(yyv6), d) + h.decSliceAPIVersion((*[]APIVersion)(yyv341), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys336) + } // end switch yys336 + } // end for yyj336 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4121,108 +4121,108 @@ func (x *ThirdPartyResource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj343 int + var yyb343 bool + var yyhl343 bool = l >= 0 + yyj343++ + if yyhl343 { + yyb343 = yyj343 > l } else { - yyb10 = r.CheckBreak() + yyb343 = r.CheckBreak() } - if yyb10 { + if yyb343 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj343++ + if yyhl343 { + yyb343 = yyj343 > l } else { - yyb10 = r.CheckBreak() + yyb343 = r.CheckBreak() } - if yyb10 { + if yyb343 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Description = "" + x.APIVersion = "" } else { - x.Description = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj343++ + if yyhl343 { + yyb343 = yyj343 > l } else { - yyb10 = r.CheckBreak() + yyb343 = r.CheckBreak() } - if yyb10 { + if yyb343 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Versions = nil + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv13 := &x.Versions - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceAPIVersion((*[]APIVersion)(yyv13), d) - } + yyv346 := &x.ObjectMeta + yyv346.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj343++ + if yyhl343 { + yyb343 = yyj343 > l } else { - yyb10 = r.CheckBreak() + yyb343 = r.CheckBreak() } - if yyb10 { + if yyb343 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Description = "" } else { - x.Kind = string(r.DecodeString()) + x.Description = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj343++ + if yyhl343 { + yyb343 = yyj343 > l } else { - yyb10 = r.CheckBreak() + yyb343 = r.CheckBreak() } - if yyb10 { + if yyb343 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Versions = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv348 := &x.Versions + yym349 := z.DecBinary() + _ = yym349 + if false { + } else { + h.decSliceAPIVersion((*[]APIVersion)(yyv348), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj343++ + if yyhl343 { + yyb343 = yyj343 > l } else { - yyb10 = r.CheckBreak() + yyb343 = r.CheckBreak() } - if yyb10 { + if yyb343 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj343-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4234,139 +4234,139 @@ func (x *ThirdPartyResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym350 := z.EncBinary() + _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep351 := !z.EncBinary() + yy2arr351 := z.EncBasicHandle().StructToArray + var yyq351 [4]bool + _, _, _ = yysep351, yyq351, yy2arr351 + const yyr351 bool = false + yyq351[0] = x.Kind != "" + yyq351[1] = x.APIVersion != "" + yyq351[2] = true + var yynn351 int + if yyr351 || yy2arr351 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn351 = 1 + for _, b := range yyq351 { if b { - yynn2++ + yynn351++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn351) + yynn351 = 0 } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq351[0] { + yym353 := z.EncBinary() + _ = yym353 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq351[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym354 := z.EncBinary() + _ = yym354 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq351[1] { + yym356 := z.EncBinary() + _ = yym356 if false { } else { - h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq351[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym357 := z.EncBinary() + _ = yym357 if false { } else { - h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq351[2] { + yy359 := &x.ListMeta + yym360 := z.EncBinary() + _ = yym360 if false { + } else if z.HasExtensions() && z.EncExt(yy359) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy359) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq351[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy361 := &x.ListMeta + yym362 := z.EncBinary() + _ = yym362 if false { + } else if z.HasExtensions() && z.EncExt(yy361) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy361) } } } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym364 := z.EncBinary() + _ = yym364 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym365 := z.EncBinary() + _ = yym365 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4379,25 +4379,25 @@ func (x *ThirdPartyResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym366 := z.DecBinary() + _ = yym366 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct367 := r.ContainerType() + if yyct367 == codecSelferValueTypeMap1234 { + yyl367 := r.ReadMapStart() + if yyl367 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl367, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct367 == codecSelferValueTypeArray1234 { + yyl367 := r.ReadArrayStart() + if yyl367 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl367, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4409,12 +4409,12 @@ func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys368Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys368Slc + var yyhl368 bool = l >= 0 + for yyj368 := 0; ; yyj368++ { + if yyhl368 { + if yyj368 >= l { break } } else { @@ -4423,51 +4423,51 @@ func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys368Slc = r.DecodeBytes(yys368Slc, true, true) + yys368 := string(yys368Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys368 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv371 := &x.ListMeta + yym372 := z.DecBinary() + _ = yym372 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv371) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv371, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv373 := &x.Items + yym374 := z.DecBinary() + _ = yym374 if false { } else { - h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv6), d) + h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv373), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys368) + } // end switch yys368 + } // end for yyj368 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4475,98 +4475,98 @@ func (x *ThirdPartyResourceList) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj375 int + var yyb375 bool + var yyhl375 bool = l >= 0 + yyj375++ + if yyhl375 { + yyb375 = yyj375 > l } else { - yyb10 = r.CheckBreak() + yyb375 = r.CheckBreak() } - if yyb10 { + if yyb375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj375++ + if yyhl375 { + yyb375 = yyj375 > l } else { - yyb10 = r.CheckBreak() + yyb375 = r.CheckBreak() } - if yyb10 { + if yyb375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj375++ + if yyhl375 { + yyb375 = yyj375 > l } else { - yyb10 = r.CheckBreak() + yyb375 = r.CheckBreak() } - if yyb10 { + if yyb375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv378 := &x.ListMeta + yym379 := z.DecBinary() + _ = yym379 + if false { + } else if z.HasExtensions() && z.DecExt(yyv378) { + } else { + z.DecFallback(yyv378, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj375++ + if yyhl375 { + yyb375 = yyj375 > l } else { - yyb10 = r.CheckBreak() + yyb375 = r.CheckBreak() } - if yyb10 { + if yyb375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv380 := &x.Items + yym381 := z.DecBinary() + _ = yym381 + if false { + } else { + h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv380), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj375++ + if yyhl375 { + yyb375 = yyj375 > l } else { - yyb10 = r.CheckBreak() + yyb375 = r.CheckBreak() } - if yyb10 { + if yyb375 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj375-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4578,35 +4578,35 @@ func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym382 := z.EncBinary() + _ = yym382 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Name != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep383 := !z.EncBinary() + yy2arr383 := z.EncBasicHandle().StructToArray + var yyq383 [1]bool + _, _, _ = yysep383, yyq383, yy2arr383 + const yyr383 bool = false + yyq383[0] = x.Name != "" + var yynn383 int + if yyr383 || yy2arr383 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn383 = 0 + for _, b := range yyq383 { if b { - yynn2++ + yynn383++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn383) + yynn383 = 0 } - if yyr2 || yy2arr2 { + if yyr383 || yy2arr383 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq383[0] { + yym385 := z.EncBinary() + _ = yym385 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -4615,19 +4615,19 @@ func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq383[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym386 := z.EncBinary() + _ = yym386 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2 || yy2arr2 { + if yyr383 || yy2arr383 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4640,25 +4640,25 @@ func (x *APIVersion) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym387 := z.DecBinary() + _ = yym387 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct388 := r.ContainerType() + if yyct388 == codecSelferValueTypeMap1234 { + yyl388 := r.ReadMapStart() + if yyl388 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl388, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct388 == codecSelferValueTypeArray1234 { + yyl388 := r.ReadArrayStart() + if yyl388 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl388, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4670,12 +4670,12 @@ func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys389Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys389Slc + var yyhl389 bool = l >= 0 + for yyj389 := 0; ; yyj389++ { + if yyhl389 { + if yyj389 >= l { break } } else { @@ -4684,10 +4684,10 @@ func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys389Slc = r.DecodeBytes(yys389Slc, true, true) + yys389 := string(yys389Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys389 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -4695,9 +4695,9 @@ func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys389) + } // end switch yys389 + } // end for yyj389 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4705,16 +4705,16 @@ func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj391 int + var yyb391 bool + var yyhl391 bool = l >= 0 + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb5 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb5 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4725,17 +4725,17 @@ func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Name = string(r.DecodeString()) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb5 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb5 { + if yyb391 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj391-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4747,134 +4747,134 @@ func (x *ThirdPartyResourceData) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym393 := z.EncBinary() + _ = yym393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = len(x.Data) != 0 - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep394 := !z.EncBinary() + yy2arr394 := z.EncBasicHandle().StructToArray + var yyq394 [4]bool + _, _, _ = yysep394, yyq394, yy2arr394 + const yyr394 bool = false + yyq394[0] = x.Kind != "" + yyq394[1] = x.APIVersion != "" + yyq394[2] = true + yyq394[3] = len(x.Data) != 0 + var yynn394 int + if yyr394 || yy2arr394 { r.EncodeArrayStart(4) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn394 = 0 + for _, b := range yyq394 { if b { - yynn2++ + yynn394++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn394) + yynn394 = 0 } - if yyr2 || yy2arr2 { + if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq394[0] { + yym396 := z.EncBinary() + _ = yym396 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq394[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym397 := z.EncBinary() + _ = yym397 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Data == nil { - r.EncodeNil() + if yyq394[1] { + yym399 := z.EncBinary() + _ = yym399 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq394[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() + yym400 := z.EncBinary() + _ = yym400 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq394[2] { + yy402 := &x.ObjectMeta + yy402.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq394[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy403 := &x.ObjectMeta + yy403.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq394[3] { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym405 := z.EncBinary() + _ = yym405 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq394[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { + if x.Data == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym406 := z.EncBinary() + _ = yym406 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } } } } - if yyr2 || yy2arr2 { + if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4887,25 +4887,25 @@ func (x *ThirdPartyResourceData) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym407 := z.DecBinary() + _ = yym407 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct408 := r.ContainerType() + if yyct408 == codecSelferValueTypeMap1234 { + yyl408 := r.ReadMapStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl408, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct408 == codecSelferValueTypeArray1234 { + yyl408 := r.ReadArrayStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl408, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4917,12 +4917,12 @@ func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -4931,45 +4931,45 @@ func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys409Slc = r.DecodeBytes(yys409Slc, true, true) + yys409 := string(yys409Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys409 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv412 := &x.ObjectMeta + yyv412.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv5 := &x.Data - yym6 := z.DecBinary() - _ = yym6 + yyv413 := &x.Data + yym414 := z.DecBinary() + _ = yym414 if false { } else { - *yyv5 = r.DecodeBytes(*(*[]byte)(yyv5), false, false) + *yyv413 = r.DecodeBytes(*(*[]byte)(yyv413), false, false) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys409) + } // end switch yys409 + } // end for yyj409 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4977,92 +4977,92 @@ func (x *ThirdPartyResourceData) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj415 int + var yyb415 bool + var yyhl415 bool = l >= 0 + yyj415++ + if yyhl415 { + yyb415 = yyj415 > l } else { - yyb9 = r.CheckBreak() + yyb415 = r.CheckBreak() } - if yyb9 { + if yyb415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj415++ + if yyhl415 { + yyb415 = yyj415 > l } else { - yyb9 = r.CheckBreak() + yyb415 = r.CheckBreak() } - if yyb9 { + if yyb415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Data = nil + x.APIVersion = "" } else { - yyv11 := &x.Data - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *yyv11 = r.DecodeBytes(*(*[]byte)(yyv11), false, false) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj415++ + if yyhl415 { + yyb415 = yyj415 > l } else { - yyb9 = r.CheckBreak() + yyb415 = r.CheckBreak() } - if yyb9 { + if yyb415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv418 := &x.ObjectMeta + yyv418.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj415++ + if yyhl415 { + yyb415 = yyj415 > l } else { - yyb9 = r.CheckBreak() + yyb415 = r.CheckBreak() } - if yyb9 { + if yyb415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Data = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv419 := &x.Data + yym420 := z.DecBinary() + _ = yym420 + if false { + } else { + *yyv419 = r.DecodeBytes(*(*[]byte)(yyv419), false, false) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj415++ + if yyhl415 { + yyb415 = yyj415 > l } else { - yyb9 = r.CheckBreak() + yyb415 = r.CheckBreak() } - if yyb9 { + if yyb415 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj415-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5074,136 +5074,136 @@ func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym421 := z.EncBinary() + _ = yym421 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep422 := !z.EncBinary() + yy2arr422 := z.EncBasicHandle().StructToArray + var yyq422 [5]bool + _, _, _ = yysep422, yyq422, yy2arr422 + const yyr422 bool = false + yyq422[0] = x.Kind != "" + yyq422[1] = x.APIVersion != "" + yyq422[2] = true + yyq422[3] = true + yyq422[4] = true + var yynn422 int + if yyr422 || yy2arr422 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn422 = 0 + for _, b := range yyq422 { if b { - yynn2++ + yynn422++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn422) + yynn422 = 0 } - if yyr2 || yy2arr2 { + if yyr422 || yy2arr422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq422[0] { + yym424 := z.EncBinary() + _ = yym424 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq422[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym425 := z.EncBinary() + _ = yym425 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr422 || yy2arr422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq422[1] { + yym427 := z.EncBinary() + _ = yym427 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq422[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym428 := z.EncBinary() + _ = yym428 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr422 || yy2arr422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq422[2] { + yy430 := &x.ObjectMeta + yy430.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq422[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy431 := &x.ObjectMeta + yy431.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr422 || yy2arr422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq422[3] { + yy433 := &x.Spec + yy433.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq422[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy434 := &x.Spec + yy434.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr422 || yy2arr422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq422[4] { + yy436 := &x.Status + yy436.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq422[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy437 := &x.Status + yy437.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr422 || yy2arr422 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5216,25 +5216,25 @@ func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym438 := z.DecBinary() + _ = yym438 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct439 := r.ContainerType() + if yyct439 == codecSelferValueTypeMap1234 { + yyl439 := r.ReadMapStart() + if yyl439 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl439, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct439 == codecSelferValueTypeArray1234 { + yyl439 := r.ReadArrayStart() + if yyl439 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl439, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5246,12 +5246,12 @@ func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys440Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys440Slc + var yyhl440 bool = l >= 0 + for yyj440 := 0; ; yyj440++ { + if yyhl440 { + if yyj440 >= l { break } } else { @@ -5260,47 +5260,47 @@ func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys440Slc = r.DecodeBytes(yys440Slc, true, true) + yys440 := string(yys440Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys440 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = DeploymentSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = DeploymentStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv443 := &x.ObjectMeta + yyv443.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DeploymentSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv444 := &x.Spec + yyv444.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DeploymentStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv445 := &x.Status + yyv445.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys440) + } // end switch yys440 + } // end for yyj440 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5308,104 +5308,104 @@ func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj446 int + var yyb446 bool + var yyhl446 bool = l >= 0 + yyj446++ + if yyhl446 { + yyb446 = yyj446 > l } else { - yyb9 = r.CheckBreak() + yyb446 = r.CheckBreak() } - if yyb9 { + if yyb446 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj446++ + if yyhl446 { + yyb446 = yyj446 > l } else { - yyb9 = r.CheckBreak() + yyb446 = r.CheckBreak() } - if yyb9 { + if yyb446 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = DeploymentSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj446++ + if yyhl446 { + yyb446 = yyj446 > l } else { - yyb9 = r.CheckBreak() + yyb446 = r.CheckBreak() } - if yyb9 { + if yyb446 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = DeploymentStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv449 := &x.ObjectMeta + yyv449.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj446++ + if yyhl446 { + yyb446 = yyj446 > l } else { - yyb9 = r.CheckBreak() + yyb446 = r.CheckBreak() } - if yyb9 { + if yyb446 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DeploymentSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv450 := &x.Spec + yyv450.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj446++ + if yyhl446 { + yyb446 = yyj446 > l } else { - yyb9 = r.CheckBreak() + yyb446 = r.CheckBreak() } - if yyb9 { + if yyb446 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DeploymentStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv451 := &x.Status + yyv451.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj446++ + if yyhl446 { + yyb446 = yyj446 > l } else { - yyb9 = r.CheckBreak() + yyb446 = r.CheckBreak() } - if yyb9 { + if yyb446 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj446-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5417,74 +5417,74 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym452 := z.EncBinary() + _ = yym452 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != nil - yyq2[1] = x.Selector != nil - yyq2[3] = true - yyq2[4] = x.MinReadySeconds != 0 - yyq2[5] = x.RevisionHistoryLimit != nil - yyq2[6] = x.Paused != false - yyq2[7] = x.RollbackTo != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep453 := !z.EncBinary() + yy2arr453 := z.EncBasicHandle().StructToArray + var yyq453 [8]bool + _, _, _ = yysep453, yyq453, yy2arr453 + const yyr453 bool = false + yyq453[0] = x.Replicas != nil + yyq453[1] = x.Selector != nil + yyq453[3] = true + yyq453[4] = x.MinReadySeconds != 0 + yyq453[5] = x.RevisionHistoryLimit != nil + yyq453[6] = x.Paused != false + yyq453[7] = x.RollbackTo != nil + var yynn453 int + if yyr453 || yy2arr453 { r.EncodeArrayStart(8) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn453 = 1 + for _, b := range yyq453 { if b { - yynn2++ + yynn453++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn453) + yynn453 = 0 } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq453[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy4 := *x.Replicas - yym5 := z.EncBinary() - _ = yym5 + yy455 := *x.Replicas + yym456 := z.EncBinary() + _ = yym456 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy455)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq453[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy6 := *x.Replicas - yym7 := z.EncBinary() - _ = yym7 + yy457 := *x.Replicas + yym458 := z.EncBinary() + _ = yym458 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy457)) } } } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq453[1] { if x.Selector == nil { r.EncodeNil() } else { @@ -5494,7 +5494,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq453[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -5505,39 +5505,39 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy12 := &x.Template - yy12.CodecEncodeSelf(e) + yy461 := &x.Template + yy461.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Template - yy14.CodecEncodeSelf(e) + yy462 := &x.Template + yy462.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy17 := &x.Strategy - yy17.CodecEncodeSelf(e) + if yyq453[3] { + yy464 := &x.Strategy + yy464.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq453[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("strategy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy19 := &x.Strategy - yy19.CodecEncodeSelf(e) + yy465 := &x.Strategy + yy465.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 + if yyq453[4] { + yym467 := z.EncBinary() + _ = yym467 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) @@ -5546,58 +5546,58 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq453[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 + yym468 := z.EncBinary() + _ = yym468 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) } } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { + if yyq453[5] { if x.RevisionHistoryLimit == nil { r.EncodeNil() } else { - yy25 := *x.RevisionHistoryLimit - yym26 := z.EncBinary() - _ = yym26 + yy470 := *x.RevisionHistoryLimit + yym471 := z.EncBinary() + _ = yym471 if false { } else { - r.EncodeInt(int64(yy25)) + r.EncodeInt(int64(yy470)) } } } else { r.EncodeNil() } } else { - if yyq2[5] { + if yyq453[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revisionHistoryLimit")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RevisionHistoryLimit == nil { r.EncodeNil() } else { - yy27 := *x.RevisionHistoryLimit - yym28 := z.EncBinary() - _ = yym28 + yy472 := *x.RevisionHistoryLimit + yym473 := z.EncBinary() + _ = yym473 if false { } else { - r.EncodeInt(int64(yy27)) + r.EncodeInt(int64(yy472)) } } } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym30 := z.EncBinary() - _ = yym30 + if yyq453[6] { + yym475 := z.EncBinary() + _ = yym475 if false { } else { r.EncodeBool(bool(x.Paused)) @@ -5606,21 +5606,21 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[6] { + if yyq453[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("paused")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym31 := z.EncBinary() - _ = yym31 + yym476 := z.EncBinary() + _ = yym476 if false { } else { r.EncodeBool(bool(x.Paused)) } } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { + if yyq453[7] { if x.RollbackTo == nil { r.EncodeNil() } else { @@ -5630,7 +5630,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[7] { + if yyq453[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -5641,7 +5641,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5654,25 +5654,25 @@ func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym478 := z.DecBinary() + _ = yym478 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct479 := r.ContainerType() + if yyct479 == codecSelferValueTypeMap1234 { + yyl479 := r.ReadMapStart() + if yyl479 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl479, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct479 == codecSelferValueTypeArray1234 { + yyl479 := r.ReadArrayStart() + if yyl479 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl479, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5684,12 +5684,12 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys480Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys480Slc + var yyhl480 bool = l >= 0 + for yyj480 := 0; ; yyj480++ { + if yyhl480 { + if yyj480 >= l { break } } else { @@ -5698,10 +5698,10 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys480Slc = r.DecodeBytes(yys480Slc, true, true) + yys480 := string(yys480Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys480 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -5711,8 +5711,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym482 := z.DecBinary() + _ = yym482 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -5733,15 +5733,15 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv7 := &x.Template - yyv7.CodecDecodeSelf(d) + yyv484 := &x.Template + yyv484.CodecDecodeSelf(d) } case "strategy": if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv8 := &x.Strategy - yyv8.CodecDecodeSelf(d) + yyv485 := &x.Strategy + yyv485.CodecDecodeSelf(d) } case "minReadySeconds": if r.TryDecodeAsNil() { @@ -5758,8 +5758,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym11 := z.DecBinary() - _ = yym11 + yym488 := z.DecBinary() + _ = yym488 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) @@ -5783,9 +5783,9 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.RollbackTo.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys480) + } // end switch yys480 + } // end for yyj480 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5793,16 +5793,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj491 int + var yyb491 bool + var yyhl491 bool = l >= 0 + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5815,20 +5815,20 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym16 := z.DecBinary() - _ = yym16 + yym493 := z.DecBinary() + _ = yym493 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5843,13 +5843,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Selector.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5857,16 +5857,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv18 := &x.Template - yyv18.CodecDecodeSelf(d) + yyv495 := &x.Template + yyv495.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5874,16 +5874,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv19 := &x.Strategy - yyv19.CodecDecodeSelf(d) + yyv496 := &x.Strategy + yyv496.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5893,13 +5893,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5912,20 +5912,20 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym22 := z.DecBinary() - _ = yym22 + yym499 := z.DecBinary() + _ = yym499 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5935,13 +5935,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Paused = bool(r.DecodeBool()) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5957,17 +5957,17 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.RollbackTo.CodecDecodeSelf(d) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj491++ + if yyhl491 { + yyb491 = yyj491 > l } else { - yyb14 = r.CheckBreak() + yyb491 = r.CheckBreak() } - if yyb14 { + if yyb491 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj491-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5979,36 +5979,86 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym502 := z.EncBinary() + _ = yym502 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[1] = len(x.UpdatedAnnotations) != 0 - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep503 := !z.EncBinary() + yy2arr503 := z.EncBasicHandle().StructToArray + var yyq503 [5]bool + _, _, _ = yysep503, yyq503, yy2arr503 + const yyr503 bool = false + yyq503[0] = x.Kind != "" + yyq503[1] = x.APIVersion != "" + yyq503[3] = len(x.UpdatedAnnotations) != 0 + var yynn503 int + if yyr503 || yy2arr503 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn503 = 2 + for _, b := range yyq503 { if b { - yynn2++ + yynn503++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn503) + yynn503 = 0 } - if yyr2 || yy2arr2 { + if yyr503 || yy2arr503 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq503[0] { + yym505 := z.EncBinary() + _ = yym505 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq503[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym506 := z.EncBinary() + _ = yym506 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr503 || yy2arr503 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq503[1] { + yym508 := z.EncBinary() + _ = yym508 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq503[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym509 := z.EncBinary() + _ = yym509 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr503 || yy2arr503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym511 := z.EncBinary() + _ = yym511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -6017,21 +6067,21 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym512 := z.EncBinary() + _ = yym512 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr503 || yy2arr503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq503[3] { if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym514 := z.EncBinary() + _ = yym514 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -6041,15 +6091,15 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq503[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("updatedAnnotations")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym515 := z.EncBinary() + _ = yym515 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -6057,68 +6107,18 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr503 || yy2arr503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy10 := &x.RollbackTo - yy10.CodecEncodeSelf(e) + yy517 := &x.RollbackTo + yy517.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.RollbackTo - yy12.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } + yy518 := &x.RollbackTo + yy518.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr503 || yy2arr503 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6131,25 +6131,25 @@ func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym519 := z.DecBinary() + _ = yym519 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct520 := r.ContainerType() + if yyct520 == codecSelferValueTypeMap1234 { + yyl520 := r.ReadMapStart() + if yyl520 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl520, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct520 == codecSelferValueTypeArray1234 { + yyl520 := r.ReadArrayStart() + if yyl520 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl520, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6161,12 +6161,12 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys521Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys521Slc + var yyhl521 bool = l >= 0 + for yyj521 := 0; ; yyj521++ { + if yyhl521 { + if yyj521 >= l { break } } else { @@ -6175,13 +6175,25 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys521Slc = r.DecodeBytes(yys521Slc, true, true) + yys521 := string(yys521Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "name": + switch yys521 { + case "kind": if r.TryDecodeAsNil() { - x.Name = "" + 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()) } @@ -6189,37 +6201,25 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.UpdatedAnnotations = nil } else { - yyv5 := &x.UpdatedAnnotations - yym6 := z.DecBinary() - _ = yym6 + yyv525 := &x.UpdatedAnnotations + yym526 := z.DecBinary() + _ = yym526 if false { } else { - z.F.DecMapStringStringX(yyv5, false, d) + z.F.DecMapStringStringX(yyv525, false, d) } } case "rollbackTo": if r.TryDecodeAsNil() { x.RollbackTo = RollbackConfig{} } else { - yyv7 := &x.RollbackTo - yyv7.CodecDecodeSelf(d) - } - 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()) + yyv527 := &x.RollbackTo + yyv527.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys521) + } // end switch yys521 + } // end for yyj521 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6227,108 +6227,108 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj528 int + var yyb528 bool + var yyhl528 bool = l >= 0 + yyj528++ + if yyhl528 { + yyb528 = yyj528 > l } else { - yyb10 = r.CheckBreak() + yyb528 = r.CheckBreak() } - if yyb10 { + if yyb528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + x.Kind = "" } else { - x.Name = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj528++ + if yyhl528 { + yyb528 = yyj528 > l } else { - yyb10 = r.CheckBreak() + yyb528 = r.CheckBreak() } - if yyb10 { + if yyb528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.UpdatedAnnotations = nil + x.APIVersion = "" } else { - yyv12 := &x.UpdatedAnnotations - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - z.F.DecMapStringStringX(yyv12, false, d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj528++ + if yyhl528 { + yyb528 = yyj528 > l } else { - yyb10 = r.CheckBreak() + yyb528 = r.CheckBreak() } - if yyb10 { + if yyb528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.RollbackTo = RollbackConfig{} + x.Name = "" } else { - yyv14 := &x.RollbackTo - yyv14.CodecDecodeSelf(d) + x.Name = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj528++ + if yyhl528 { + yyb528 = yyj528 > l } else { - yyb10 = r.CheckBreak() + yyb528 = r.CheckBreak() } - if yyb10 { + if yyb528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.UpdatedAnnotations = nil } else { - x.Kind = string(r.DecodeString()) + yyv532 := &x.UpdatedAnnotations + yym533 := z.DecBinary() + _ = yym533 + if false { + } else { + z.F.DecMapStringStringX(yyv532, false, d) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj528++ + if yyhl528 { + yyb528 = yyj528 > l } else { - yyb10 = r.CheckBreak() + yyb528 = r.CheckBreak() } - if yyb10 { + if yyb528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.RollbackTo = RollbackConfig{} } else { - x.APIVersion = string(r.DecodeString()) + yyv534 := &x.RollbackTo + yyv534.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj528++ + if yyhl528 { + yyb528 = yyj528 > l } else { - yyb10 = r.CheckBreak() + yyb528 = r.CheckBreak() } - if yyb10 { + if yyb528 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj528-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6340,35 +6340,35 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym535 := z.EncBinary() + _ = yym535 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Revision != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep536 := !z.EncBinary() + yy2arr536 := z.EncBasicHandle().StructToArray + var yyq536 [1]bool + _, _, _ = yysep536, yyq536, yy2arr536 + const yyr536 bool = false + yyq536[0] = x.Revision != 0 + var yynn536 int + if yyr536 || yy2arr536 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn536 = 0 + for _, b := range yyq536 { if b { - yynn2++ + yynn536++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn536) + yynn536 = 0 } - if yyr2 || yy2arr2 { + if yyr536 || yy2arr536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq536[0] { + yym538 := z.EncBinary() + _ = yym538 if false { } else { r.EncodeInt(int64(x.Revision)) @@ -6377,19 +6377,19 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq536[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym539 := z.EncBinary() + _ = yym539 if false { } else { r.EncodeInt(int64(x.Revision)) } } } - if yyr2 || yy2arr2 { + if yyr536 || yy2arr536 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6402,25 +6402,25 @@ func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym540 := z.DecBinary() + _ = yym540 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct541 := r.ContainerType() + if yyct541 == codecSelferValueTypeMap1234 { + yyl541 := r.ReadMapStart() + if yyl541 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl541, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct541 == codecSelferValueTypeArray1234 { + yyl541 := r.ReadArrayStart() + if yyl541 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl541, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6432,12 +6432,12 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys542Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys542Slc + var yyhl542 bool = l >= 0 + for yyj542 := 0; ; yyj542++ { + if yyhl542 { + if yyj542 >= l { break } } else { @@ -6446,10 +6446,10 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys542Slc = r.DecodeBytes(yys542Slc, true, true) + yys542 := string(yys542Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys542 { case "revision": if r.TryDecodeAsNil() { x.Revision = 0 @@ -6457,9 +6457,9 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys542) + } // end switch yys542 + } // end for yyj542 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6467,16 +6467,16 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj544 int + var yyb544 bool + var yyhl544 bool = l >= 0 + yyj544++ + if yyhl544 { + yyb544 = yyj544 > l } else { - yyb5 = r.CheckBreak() + yyb544 = r.CheckBreak() } - if yyb5 { + if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6487,17 +6487,17 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj544++ + if yyhl544 { + yyb544 = yyj544 > l } else { - yyb5 = r.CheckBreak() + yyb544 = r.CheckBreak() } - if yyb5 { + if yyb544 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj544-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6509,49 +6509,49 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym546 := z.EncBinary() + _ = yym546 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Type != "" - yyq2[1] = x.RollingUpdate != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep547 := !z.EncBinary() + yy2arr547 := z.EncBasicHandle().StructToArray + var yyq547 [2]bool + _, _, _ = yysep547, yyq547, yy2arr547 + const yyr547 bool = false + yyq547[0] = x.Type != "" + yyq547[1] = x.RollingUpdate != nil + var yynn547 int + if yyr547 || yy2arr547 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn547 = 0 + for _, b := range yyq547 { if b { - yynn2++ + yynn547++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn547) + yynn547 = 0 } - if yyr2 || yy2arr2 { + if yyr547 || yy2arr547 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq547[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq547[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr547 || yy2arr547 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq547[1] { if x.RollingUpdate == nil { r.EncodeNil() } else { @@ -6561,7 +6561,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq547[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -6572,7 +6572,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr547 || yy2arr547 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6585,25 +6585,25 @@ func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym550 := z.DecBinary() + _ = yym550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct551 := r.ContainerType() + if yyct551 == codecSelferValueTypeMap1234 { + yyl551 := r.ReadMapStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl551, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct551 == codecSelferValueTypeArray1234 { + yyl551 := r.ReadArrayStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl551, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6615,12 +6615,12 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -6629,10 +6629,10 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys552Slc = r.DecodeBytes(yys552Slc, true, true) + yys552 := string(yys552Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys552 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -6651,9 +6651,9 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.RollingUpdate.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys552) + } // end switch yys552 + } // end for yyj552 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6661,16 +6661,16 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj555 int + var yyb555 bool + var yyhl555 bool = l >= 0 + yyj555++ + if yyhl555 { + yyb555 = yyj555 > l } else { - yyb6 = r.CheckBreak() + yyb555 = r.CheckBreak() } - if yyb6 { + if yyb555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6680,13 +6680,13 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = DeploymentStrategyType(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj555++ + if yyhl555 { + yyb555 = yyj555 > l } else { - yyb6 = r.CheckBreak() + yyb555 = r.CheckBreak() } - if yyb6 { + if yyb555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6702,17 +6702,17 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.RollingUpdate.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj555++ + if yyhl555 { + yyb555 = yyj555 > l } else { - yyb6 = r.CheckBreak() + yyb555 = r.CheckBreak() } - if yyb6 { + if yyb555 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj555-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6721,8 +6721,8 @@ func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym558 := z.EncBinary() + _ = yym558 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -6734,8 +6734,8 @@ func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym559 := z.DecBinary() + _ = yym559 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -6750,42 +6750,42 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym560 := z.EncBinary() + _ = yym560 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.MaxUnavailable != nil - yyq2[1] = x.MaxSurge != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep561 := !z.EncBinary() + yy2arr561 := z.EncBasicHandle().StructToArray + var yyq561 [2]bool + _, _, _ = yysep561, yyq561, yy2arr561 + const yyr561 bool = false + yyq561[0] = x.MaxUnavailable != nil + yyq561[1] = x.MaxSurge != nil + var yynn561 int + if yyr561 || yy2arr561 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn561 = 0 + for _, b := range yyq561 { if b { - yynn2++ + yynn561++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn561) + yynn561 = 0 } - if yyr2 || yy2arr2 { + if yyr561 || yy2arr561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq561[0] { if x.MaxUnavailable == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym563 := z.EncBinary() + _ = yym563 if false { } else if z.HasExtensions() && z.EncExt(x.MaxUnavailable) { - } else if !yym4 && z.IsJSONHandle() { + } else if !yym563 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxUnavailable) } else { z.EncFallback(x.MaxUnavailable) @@ -6795,18 +6795,18 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq561[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MaxUnavailable == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym564 := z.EncBinary() + _ = yym564 if false { } else if z.HasExtensions() && z.EncExt(x.MaxUnavailable) { - } else if !yym5 && z.IsJSONHandle() { + } else if !yym564 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxUnavailable) } else { z.EncFallback(x.MaxUnavailable) @@ -6814,17 +6814,17 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr561 || yy2arr561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq561[1] { if x.MaxSurge == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym566 := z.EncBinary() + _ = yym566 if false { } else if z.HasExtensions() && z.EncExt(x.MaxSurge) { - } else if !yym7 && z.IsJSONHandle() { + } else if !yym566 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxSurge) } else { z.EncFallback(x.MaxSurge) @@ -6834,18 +6834,18 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq561[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxSurge")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MaxSurge == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym567 := z.EncBinary() + _ = yym567 if false { } else if z.HasExtensions() && z.EncExt(x.MaxSurge) { - } else if !yym8 && z.IsJSONHandle() { + } else if !yym567 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxSurge) } else { z.EncFallback(x.MaxSurge) @@ -6853,7 +6853,7 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr561 || yy2arr561 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6866,25 +6866,25 @@ func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym568 := z.DecBinary() + _ = yym568 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct569 := r.ContainerType() + if yyct569 == codecSelferValueTypeMap1234 { + yyl569 := r.ReadMapStart() + if yyl569 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl569, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct569 == codecSelferValueTypeArray1234 { + yyl569 := r.ReadArrayStart() + if yyl569 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl569, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6896,12 +6896,12 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys570Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys570Slc + var yyhl570 bool = l >= 0 + for yyj570 := 0; ; yyj570++ { + if yyhl570 { + if yyj570 >= l { break } } else { @@ -6910,10 +6910,10 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys570Slc = r.DecodeBytes(yys570Slc, true, true) + yys570 := string(yys570Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys570 { case "maxUnavailable": if r.TryDecodeAsNil() { if x.MaxUnavailable != nil { @@ -6923,11 +6923,11 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.MaxUnavailable == nil { x.MaxUnavailable = new(pkg5_intstr.IntOrString) } - yym5 := z.DecBinary() - _ = yym5 + yym572 := z.DecBinary() + _ = yym572 if false { } else if z.HasExtensions() && z.DecExt(x.MaxUnavailable) { - } else if !yym5 && z.IsJSONHandle() { + } else if !yym572 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxUnavailable) } else { z.DecFallback(x.MaxUnavailable, false) @@ -6942,20 +6942,20 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.MaxSurge == nil { x.MaxSurge = new(pkg5_intstr.IntOrString) } - yym7 := z.DecBinary() - _ = yym7 + yym574 := z.DecBinary() + _ = yym574 if false { } else if z.HasExtensions() && z.DecExt(x.MaxSurge) { - } else if !yym7 && z.IsJSONHandle() { + } else if !yym574 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxSurge) } else { z.DecFallback(x.MaxSurge, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys570) + } // end switch yys570 + } // end for yyj570 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6963,16 +6963,16 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj575 int + var yyb575 bool + var yyhl575 bool = l >= 0 + yyj575++ + if yyhl575 { + yyb575 = yyj575 > l } else { - yyb8 = r.CheckBreak() + yyb575 = r.CheckBreak() } - if yyb8 { + if yyb575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6985,23 +6985,23 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if x.MaxUnavailable == nil { x.MaxUnavailable = new(pkg5_intstr.IntOrString) } - yym10 := z.DecBinary() - _ = yym10 + yym577 := z.DecBinary() + _ = yym577 if false { } else if z.HasExtensions() && z.DecExt(x.MaxUnavailable) { - } else if !yym10 && z.IsJSONHandle() { + } else if !yym577 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxUnavailable) } else { z.DecFallback(x.MaxUnavailable, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj575++ + if yyhl575 { + yyb575 = yyj575 > l } else { - yyb8 = r.CheckBreak() + yyb575 = r.CheckBreak() } - if yyb8 { + if yyb575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7014,28 +7014,28 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if x.MaxSurge == nil { x.MaxSurge = new(pkg5_intstr.IntOrString) } - yym12 := z.DecBinary() - _ = yym12 + yym579 := z.DecBinary() + _ = yym579 if false { } else if z.HasExtensions() && z.DecExt(x.MaxSurge) { - } else if !yym12 && z.IsJSONHandle() { + } else if !yym579 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxSurge) } else { z.DecFallback(x.MaxSurge, false) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj575++ + if yyhl575 { + yyb575 = yyj575 > l } else { - yyb8 = r.CheckBreak() + yyb575 = r.CheckBreak() } - if yyb8 { + if yyb575 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj575-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7047,39 +7047,39 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym580 := z.EncBinary() + _ = yym580 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.ObservedGeneration != 0 - yyq2[1] = x.Replicas != 0 - yyq2[2] = x.UpdatedReplicas != 0 - yyq2[3] = x.AvailableReplicas != 0 - yyq2[4] = x.UnavailableReplicas != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep581 := !z.EncBinary() + yy2arr581 := z.EncBasicHandle().StructToArray + var yyq581 [5]bool + _, _, _ = yysep581, yyq581, yy2arr581 + const yyr581 bool = false + yyq581[0] = x.ObservedGeneration != 0 + yyq581[1] = x.Replicas != 0 + yyq581[2] = x.UpdatedReplicas != 0 + yyq581[3] = x.AvailableReplicas != 0 + yyq581[4] = x.UnavailableReplicas != 0 + var yynn581 int + if yyr581 || yy2arr581 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn581 = 0 + for _, b := range yyq581 { if b { - yynn2++ + yynn581++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn581) + yynn581 = 0 } - if yyr2 || yy2arr2 { + if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq581[0] { + yym583 := z.EncBinary() + _ = yym583 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -7088,23 +7088,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[0] { + if yyq581[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym584 := z.EncBinary() + _ = yym584 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2 || yy2arr2 { + if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq581[1] { + yym586 := z.EncBinary() + _ = yym586 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -7113,23 +7113,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq581[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym587 := z.EncBinary() + _ = yym587 if false { } else { r.EncodeInt(int64(x.Replicas)) } } } - if yyr2 || yy2arr2 { + if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq581[2] { + yym589 := z.EncBinary() + _ = yym589 if false { } else { r.EncodeInt(int64(x.UpdatedReplicas)) @@ -7138,23 +7138,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq581[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym590 := z.EncBinary() + _ = yym590 if false { } else { r.EncodeInt(int64(x.UpdatedReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq581[3] { + yym592 := z.EncBinary() + _ = yym592 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) @@ -7163,23 +7163,23 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq581[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym593 := z.EncBinary() + _ = yym593 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq581[4] { + yym595 := z.EncBinary() + _ = yym595 if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) @@ -7188,19 +7188,19 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq581[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym596 := z.EncBinary() + _ = yym596 if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7213,25 +7213,25 @@ func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym597 := z.DecBinary() + _ = yym597 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct598 := r.ContainerType() + if yyct598 == codecSelferValueTypeMap1234 { + yyl598 := r.ReadMapStart() + if yyl598 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl598, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct598 == codecSelferValueTypeArray1234 { + yyl598 := r.ReadArrayStart() + if yyl598 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl598, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7243,12 +7243,12 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys599Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys599Slc + var yyhl599 bool = l >= 0 + for yyj599 := 0; ; yyj599++ { + if yyhl599 { + if yyj599 >= l { break } } else { @@ -7257,10 +7257,10 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys599Slc = r.DecodeBytes(yys599Slc, true, true) + yys599 := string(yys599Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys599 { case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -7292,9 +7292,9 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.UnavailableReplicas = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys599) + } // end switch yys599 + } // end for yyj599 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7302,16 +7302,16 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj605 int + var yyb605 bool + var yyhl605 bool = l >= 0 + yyj605++ + if yyhl605 { + yyb605 = yyj605 > l } else { - yyb9 = r.CheckBreak() + yyb605 = r.CheckBreak() } - if yyb9 { + if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7321,13 +7321,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj605++ + if yyhl605 { + yyb605 = yyj605 > l } else { - yyb9 = r.CheckBreak() + yyb605 = r.CheckBreak() } - if yyb9 { + if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7337,13 +7337,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj605++ + if yyhl605 { + yyb605 = yyj605 > l } else { - yyb9 = r.CheckBreak() + yyb605 = r.CheckBreak() } - if yyb9 { + if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7353,13 +7353,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UpdatedReplicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj605++ + if yyhl605 { + yyb605 = yyj605 > l } else { - yyb9 = r.CheckBreak() + yyb605 = r.CheckBreak() } - if yyb9 { + if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7369,13 +7369,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj605++ + if yyhl605 { + yyb605 = yyj605 > l } else { - yyb9 = r.CheckBreak() + yyb605 = r.CheckBreak() } - if yyb9 { + if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7386,17 +7386,17 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.UnavailableReplicas = int32(r.DecodeInt(32)) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj605++ + if yyhl605 { + yyb605 = yyj605 > l } else { - yyb9 = r.CheckBreak() + yyb605 = r.CheckBreak() } - if yyb9 { + if yyb605 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj605-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7408,139 +7408,139 @@ func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym611 := z.EncBinary() + _ = yym611 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep612 := !z.EncBinary() + yy2arr612 := z.EncBasicHandle().StructToArray + var yyq612 [4]bool + _, _, _ = yysep612, yyq612, yy2arr612 + const yyr612 bool = false + yyq612[0] = x.Kind != "" + yyq612[1] = x.APIVersion != "" + yyq612[2] = true + var yynn612 int + if yyr612 || yy2arr612 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn612 = 1 + for _, b := range yyq612 { if b { - yynn2++ + yynn612++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn612) + yynn612 = 0 } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq612[0] { + yym614 := z.EncBinary() + _ = yym614 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq612[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym615 := z.EncBinary() + _ = yym615 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq612[1] { + yym617 := z.EncBinary() + _ = yym617 if false { } else { - h.encSliceDeployment(([]Deployment)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq612[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym618 := z.EncBinary() + _ = yym618 if false { } else { - h.encSliceDeployment(([]Deployment)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq612[2] { + yy620 := &x.ListMeta + yym621 := z.EncBinary() + _ = yym621 if false { + } else if z.HasExtensions() && z.EncExt(yy620) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy620) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq612[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy622 := &x.ListMeta + yym623 := z.EncBinary() + _ = yym623 if false { + } else if z.HasExtensions() && z.EncExt(yy622) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy622) } } } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym625 := z.EncBinary() + _ = yym625 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDeployment(([]Deployment)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym626 := z.EncBinary() + _ = yym626 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDeployment(([]Deployment)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7553,25 +7553,25 @@ func (x *DeploymentList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym627 := z.DecBinary() + _ = yym627 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct628 := r.ContainerType() + if yyct628 == codecSelferValueTypeMap1234 { + yyl628 := r.ReadMapStart() + if yyl628 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl628, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct628 == codecSelferValueTypeArray1234 { + yyl628 := r.ReadArrayStart() + if yyl628 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl628, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7583,12 +7583,12 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys629Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys629Slc + var yyhl629 bool = l >= 0 + for yyj629 := 0; ; yyj629++ { + if yyhl629 { + if yyj629 >= l { break } } else { @@ -7597,51 +7597,51 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys629Slc = r.DecodeBytes(yys629Slc, true, true) + yys629 := string(yys629Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys629 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv632 := &x.ListMeta + yym633 := z.DecBinary() + _ = yym633 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv632) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv632, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv634 := &x.Items + yym635 := z.DecBinary() + _ = yym635 if false { } else { - h.decSliceDeployment((*[]Deployment)(yyv6), d) + h.decSliceDeployment((*[]Deployment)(yyv634), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys629) + } // end switch yys629 + } // end for yyj629 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7649,98 +7649,98 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj636 int + var yyb636 bool + var yyhl636 bool = l >= 0 + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb10 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb10 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb10 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb10 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceDeployment((*[]Deployment)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb10 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb10 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv639 := &x.ListMeta + yym640 := z.DecBinary() + _ = yym640 + if false { + } else if z.HasExtensions() && z.DecExt(yyv639) { + } else { + z.DecFallback(yyv639, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb10 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb10 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv641 := &x.Items + yym642 := z.DecBinary() + _ = yym642 + if false { + } else { + h.decSliceDeployment((*[]Deployment)(yyv641), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb10 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb10 { + if yyb636 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj636-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7752,33 +7752,33 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym643 := z.EncBinary() + _ = yym643 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Selector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep644 := !z.EncBinary() + yy2arr644 := z.EncBasicHandle().StructToArray + var yyq644 [2]bool + _, _, _ = yysep644, yyq644, yy2arr644 + const yyr644 bool = false + yyq644[0] = x.Selector != nil + var yynn644 int + if yyr644 || yy2arr644 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn644 = 1 + for _, b := range yyq644 { if b { - yynn2++ + yynn644++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn644) + yynn644 = 0 } - if yyr2 || yy2arr2 { + if yyr644 || yy2arr644 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq644[0] { if x.Selector == nil { r.EncodeNil() } else { @@ -7788,7 +7788,7 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq644[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -7799,18 +7799,18 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr644 || yy2arr644 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Template - yy7.CodecEncodeSelf(e) + yy647 := &x.Template + yy647.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Template - yy9.CodecEncodeSelf(e) + yy648 := &x.Template + yy648.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr644 || yy2arr644 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7823,25 +7823,25 @@ func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym649 := z.DecBinary() + _ = yym649 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct650 := r.ContainerType() + if yyct650 == codecSelferValueTypeMap1234 { + yyl650 := r.ReadMapStart() + if yyl650 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl650, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct650 == codecSelferValueTypeArray1234 { + yyl650 := r.ReadArrayStart() + if yyl650 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl650, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7853,12 +7853,12 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys651Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys651Slc + var yyhl651 bool = l >= 0 + for yyj651 := 0; ; yyj651++ { + if yyhl651 { + if yyj651 >= l { break } } else { @@ -7867,10 +7867,10 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys651Slc = r.DecodeBytes(yys651Slc, true, true) + yys651 := string(yys651Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys651 { case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { @@ -7886,13 +7886,13 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv5 := &x.Template - yyv5.CodecDecodeSelf(d) + yyv653 := &x.Template + yyv653.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys651) + } // end switch yys651 + } // end for yyj651 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7900,16 +7900,16 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj654 int + var yyb654 bool + var yyhl654 bool = l >= 0 + yyj654++ + if yyhl654 { + yyb654 = yyj654 > l } else { - yyb6 = r.CheckBreak() + yyb654 = r.CheckBreak() } - if yyb6 { + if yyb654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7924,13 +7924,13 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Selector.CodecDecodeSelf(d) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj654++ + if yyhl654 { + yyb654 = yyj654 > l } else { - yyb6 = r.CheckBreak() + yyb654 = r.CheckBreak() } - if yyb6 { + if yyb654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7938,21 +7938,21 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv8 := &x.Template - yyv8.CodecDecodeSelf(d) + yyv656 := &x.Template + yyv656.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj654++ + if yyhl654 { + yyb654 = yyj654 > l } else { - yyb6 = r.CheckBreak() + yyb654 = r.CheckBreak() } - if yyb6 { + if yyb654 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj654-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7964,33 +7964,33 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym657 := z.EncBinary() + _ = yym657 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep658 := !z.EncBinary() + yy2arr658 := z.EncBasicHandle().StructToArray + var yyq658 [3]bool + _, _, _ = yysep658, yyq658, yy2arr658 + const yyr658 bool = false + var yynn658 int + if yyr658 || yy2arr658 { r.EncodeArrayStart(3) } else { - yynn2 = 3 - for _, b := range yyq2 { + yynn658 = 3 + for _, b := range yyq658 { if b { - yynn2++ + yynn658++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn658) + yynn658 = 0 } - if yyr2 || yy2arr2 { + if yyr658 || yy2arr658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym660 := z.EncBinary() + _ = yym660 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) @@ -7999,17 +7999,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym661 := z.EncBinary() + _ = yym661 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) } } - if yyr2 || yy2arr2 { + if yyr658 || yy2arr658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym663 := z.EncBinary() + _ = yym663 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) @@ -8018,17 +8018,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym664 := z.EncBinary() + _ = yym664 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) } } - if yyr2 || yy2arr2 { + if yyr658 || yy2arr658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym666 := z.EncBinary() + _ = yym666 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) @@ -8037,14 +8037,14 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym667 := z.EncBinary() + _ = yym667 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) } } - if yyr2 || yy2arr2 { + if yyr658 || yy2arr658 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8057,25 +8057,25 @@ func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym668 := z.DecBinary() + _ = yym668 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct669 := r.ContainerType() + if yyct669 == codecSelferValueTypeMap1234 { + yyl669 := r.ReadMapStart() + if yyl669 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl669, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct669 == codecSelferValueTypeArray1234 { + yyl669 := r.ReadArrayStart() + if yyl669 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl669, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8087,12 +8087,12 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys670Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys670Slc + var yyhl670 bool = l >= 0 + for yyj670 := 0; ; yyj670++ { + if yyhl670 { + if yyj670 >= l { break } } else { @@ -8101,10 +8101,10 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys670Slc = r.DecodeBytes(yys670Slc, true, true) + yys670 := string(yys670Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys670 { case "currentNumberScheduled": if r.TryDecodeAsNil() { x.CurrentNumberScheduled = 0 @@ -8124,9 +8124,9 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys670) + } // end switch yys670 + } // end for yyj670 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8134,16 +8134,16 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj674 int + var yyb674 bool + var yyhl674 bool = l >= 0 + yyj674++ + if yyhl674 { + yyb674 = yyj674 > l } else { - yyb7 = r.CheckBreak() + yyb674 = r.CheckBreak() } - if yyb7 { + if yyb674 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8153,13 +8153,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.CurrentNumberScheduled = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj674++ + if yyhl674 { + yyb674 = yyj674 > l } else { - yyb7 = r.CheckBreak() + yyb674 = r.CheckBreak() } - if yyb7 { + if yyb674 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8169,13 +8169,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.NumberMisscheduled = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj674++ + if yyhl674 { + yyb674 = yyj674 > l } else { - yyb7 = r.CheckBreak() + yyb674 = r.CheckBreak() } - if yyb7 { + if yyb674 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8186,17 +8186,17 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj674++ + if yyhl674 { + yyb674 = yyj674 > l } else { - yyb7 = r.CheckBreak() + yyb674 = r.CheckBreak() } - if yyb7 { + if yyb674 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj674-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8208,136 +8208,136 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym678 := z.EncBinary() + _ = yym678 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep679 := !z.EncBinary() + yy2arr679 := z.EncBasicHandle().StructToArray + var yyq679 [5]bool + _, _, _ = yysep679, yyq679, yy2arr679 + const yyr679 bool = false + yyq679[0] = x.Kind != "" + yyq679[1] = x.APIVersion != "" + yyq679[2] = true + yyq679[3] = true + yyq679[4] = true + var yynn679 int + if yyr679 || yy2arr679 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn679 = 0 + for _, b := range yyq679 { if b { - yynn2++ + yynn679++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn679) + yynn679 = 0 } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq679[0] { + yym681 := z.EncBinary() + _ = yym681 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq679[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym682 := z.EncBinary() + _ = yym682 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq679[1] { + yym684 := z.EncBinary() + _ = yym684 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq679[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym685 := z.EncBinary() + _ = yym685 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq679[2] { + yy687 := &x.ObjectMeta + yy687.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq679[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy688 := &x.ObjectMeta + yy688.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq679[3] { + yy690 := &x.Spec + yy690.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq679[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy691 := &x.Spec + yy691.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq679[4] { + yy693 := &x.Status + yy693.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq679[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy694 := &x.Status + yy694.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8350,25 +8350,25 @@ func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym695 := z.DecBinary() + _ = yym695 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct696 := r.ContainerType() + if yyct696 == codecSelferValueTypeMap1234 { + yyl696 := r.ReadMapStart() + if yyl696 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl696, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct696 == codecSelferValueTypeArray1234 { + yyl696 := r.ReadArrayStart() + if yyl696 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl696, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8380,12 +8380,12 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys697Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys697Slc + var yyhl697 bool = l >= 0 + for yyj697 := 0; ; yyj697++ { + if yyhl697 { + if yyj697 >= l { break } } else { @@ -8394,47 +8394,47 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys697Slc = r.DecodeBytes(yys697Slc, true, true) + yys697 := string(yys697Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys697 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = DaemonSetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = DaemonSetStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv700 := &x.ObjectMeta + yyv700.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DaemonSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv701 := &x.Spec + yyv701.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DaemonSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv702 := &x.Status + yyv702.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys697) + } // end switch yys697 + } // end for yyj697 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8442,104 +8442,104 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj703 int + var yyb703 bool + var yyhl703 bool = l >= 0 + yyj703++ + if yyhl703 { + yyb703 = yyj703 > l } else { - yyb9 = r.CheckBreak() + yyb703 = r.CheckBreak() } - if yyb9 { + if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj703++ + if yyhl703 { + yyb703 = yyj703 > l } else { - yyb9 = r.CheckBreak() + yyb703 = r.CheckBreak() } - if yyb9 { + if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = DaemonSetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj703++ + if yyhl703 { + yyb703 = yyj703 > l } else { - yyb9 = r.CheckBreak() + yyb703 = r.CheckBreak() } - if yyb9 { + if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = DaemonSetStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv706 := &x.ObjectMeta + yyv706.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj703++ + if yyhl703 { + yyb703 = yyj703 > l } else { - yyb9 = r.CheckBreak() + yyb703 = r.CheckBreak() } - if yyb9 { + if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = DaemonSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv707 := &x.Spec + yyv707.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj703++ + if yyhl703 { + yyb703 = yyj703 > l } else { - yyb9 = r.CheckBreak() + yyb703 = r.CheckBreak() } - if yyb9 { + if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = DaemonSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv708 := &x.Status + yyv708.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj703++ + if yyhl703 { + yyb703 = yyj703 > l } else { - yyb9 = r.CheckBreak() + yyb703 = r.CheckBreak() } - if yyb9 { + if yyb703 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj703-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8551,139 +8551,139 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym709 := z.EncBinary() + _ = yym709 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep710 := !z.EncBinary() + yy2arr710 := z.EncBasicHandle().StructToArray + var yyq710 [4]bool + _, _, _ = yysep710, yyq710, yy2arr710 + const yyr710 bool = false + yyq710[0] = x.Kind != "" + yyq710[1] = x.APIVersion != "" + yyq710[2] = true + var yynn710 int + if yyr710 || yy2arr710 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn710 = 1 + for _, b := range yyq710 { if b { - yynn2++ + yynn710++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn710) + yynn710 = 0 } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq710[0] { + yym712 := z.EncBinary() + _ = yym712 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq710[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym713 := z.EncBinary() + _ = yym713 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq710[1] { + yym715 := z.EncBinary() + _ = yym715 if false { } else { - h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq710[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym716 := z.EncBinary() + _ = yym716 if false { } else { - h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq710[2] { + yy718 := &x.ListMeta + yym719 := z.EncBinary() + _ = yym719 if false { + } else if z.HasExtensions() && z.EncExt(yy718) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy718) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq710[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy720 := &x.ListMeta + yym721 := z.EncBinary() + _ = yym721 if false { + } else if z.HasExtensions() && z.EncExt(yy720) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy720) } } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym723 := z.EncBinary() + _ = yym723 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym724 := z.EncBinary() + _ = yym724 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8696,25 +8696,25 @@ func (x *DaemonSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym725 := z.DecBinary() + _ = yym725 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct726 := r.ContainerType() + if yyct726 == codecSelferValueTypeMap1234 { + yyl726 := r.ReadMapStart() + if yyl726 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl726, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct726 == codecSelferValueTypeArray1234 { + yyl726 := r.ReadArrayStart() + if yyl726 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl726, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8726,12 +8726,12 @@ func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys727Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys727Slc + var yyhl727 bool = l >= 0 + for yyj727 := 0; ; yyj727++ { + if yyhl727 { + if yyj727 >= l { break } } else { @@ -8740,51 +8740,51 @@ func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys727Slc = r.DecodeBytes(yys727Slc, true, true) + yys727 := string(yys727Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys727 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv730 := &x.ListMeta + yym731 := z.DecBinary() + _ = yym731 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv730) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv730, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv732 := &x.Items + yym733 := z.DecBinary() + _ = yym733 if false { } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv6), d) + h.decSliceDaemonSet((*[]DaemonSet)(yyv732), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys727) + } // end switch yys727 + } // end for yyj727 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8792,98 +8792,98 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj734 int + var yyb734 bool + var yyhl734 bool = l >= 0 + yyj734++ + if yyhl734 { + yyb734 = yyj734 > l } else { - yyb10 = r.CheckBreak() + yyb734 = r.CheckBreak() } - if yyb10 { + if yyb734 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj734++ + if yyhl734 { + yyb734 = yyj734 > l } else { - yyb10 = r.CheckBreak() + yyb734 = r.CheckBreak() } - if yyb10 { + if yyb734 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj734++ + if yyhl734 { + yyb734 = yyj734 > l } else { - yyb10 = r.CheckBreak() + yyb734 = r.CheckBreak() } - if yyb10 { + if yyb734 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv737 := &x.ListMeta + yym738 := z.DecBinary() + _ = yym738 + if false { + } else if z.HasExtensions() && z.DecExt(yyv737) { + } else { + z.DecFallback(yyv737, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj734++ + if yyhl734 { + yyb734 = yyj734 > l } else { - yyb10 = r.CheckBreak() + yyb734 = r.CheckBreak() } - if yyb10 { + if yyb734 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv739 := &x.Items + yym740 := z.DecBinary() + _ = yym740 + if false { + } else { + h.decSliceDaemonSet((*[]DaemonSet)(yyv739), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj734++ + if yyhl734 { + yyb734 = yyj734 > l } else { - yyb10 = r.CheckBreak() + yyb734 = r.CheckBreak() } - if yyb10 { + if yyb734 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj734-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8895,139 +8895,139 @@ func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym741 := z.EncBinary() + _ = yym741 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep742 := !z.EncBinary() + yy2arr742 := z.EncBasicHandle().StructToArray + var yyq742 [4]bool + _, _, _ = yysep742, yyq742, yy2arr742 + const yyr742 bool = false + yyq742[0] = x.Kind != "" + yyq742[1] = x.APIVersion != "" + yyq742[2] = true + var yynn742 int + if yyr742 || yy2arr742 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn742 = 1 + for _, b := range yyq742 { if b { - yynn2++ + yynn742++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn742) + yynn742 = 0 } - if yyr2 || yy2arr2 { + if yyr742 || yy2arr742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq742[0] { + yym744 := z.EncBinary() + _ = yym744 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq742[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym745 := z.EncBinary() + _ = yym745 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr742 || yy2arr742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq742[1] { + yym747 := z.EncBinary() + _ = yym747 if false { } else { - h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq742[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym748 := z.EncBinary() + _ = yym748 if false { } else { - h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr742 || yy2arr742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq742[2] { + yy750 := &x.ListMeta + yym751 := z.EncBinary() + _ = yym751 if false { + } else if z.HasExtensions() && z.EncExt(yy750) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy750) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq742[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy752 := &x.ListMeta + yym753 := z.EncBinary() + _ = yym753 if false { + } else if z.HasExtensions() && z.EncExt(yy752) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy752) } } } - if yyr2 || yy2arr2 { + if yyr742 || yy2arr742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym755 := z.EncBinary() + _ = yym755 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym756 := z.EncBinary() + _ = yym756 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr742 || yy2arr742 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9040,25 +9040,25 @@ func (x *ThirdPartyResourceDataList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym757 := z.DecBinary() + _ = yym757 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct758 := r.ContainerType() + if yyct758 == codecSelferValueTypeMap1234 { + yyl758 := r.ReadMapStart() + if yyl758 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl758, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct758 == codecSelferValueTypeArray1234 { + yyl758 := r.ReadArrayStart() + if yyl758 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl758, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9070,12 +9070,12 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys759Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys759Slc + var yyhl759 bool = l >= 0 + for yyj759 := 0; ; yyj759++ { + if yyhl759 { + if yyj759 >= l { break } } else { @@ -9084,51 +9084,51 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys759Slc = r.DecodeBytes(yys759Slc, true, true) + yys759 := string(yys759Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys759 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv762 := &x.ListMeta + yym763 := z.DecBinary() + _ = yym763 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv762) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv762, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv764 := &x.Items + yym765 := z.DecBinary() + _ = yym765 if false { } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv6), d) + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv764), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys759) + } // end switch yys759 + } // end for yyj759 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9136,98 +9136,98 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj766 int + var yyb766 bool + var yyhl766 bool = l >= 0 + yyj766++ + if yyhl766 { + yyb766 = yyj766 > l } else { - yyb10 = r.CheckBreak() + yyb766 = r.CheckBreak() } - if yyb10 { + if yyb766 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj766++ + if yyhl766 { + yyb766 = yyj766 > l } else { - yyb10 = r.CheckBreak() + yyb766 = r.CheckBreak() } - if yyb10 { + if yyb766 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj766++ + if yyhl766 { + yyb766 = yyj766 > l } else { - yyb10 = r.CheckBreak() + yyb766 = r.CheckBreak() } - if yyb10 { + if yyb766 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv769 := &x.ListMeta + yym770 := z.DecBinary() + _ = yym770 + if false { + } else if z.HasExtensions() && z.DecExt(yyv769) { + } else { + z.DecFallback(yyv769, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj766++ + if yyhl766 { + yyb766 = yyj766 > l } else { - yyb10 = r.CheckBreak() + yyb766 = r.CheckBreak() } - if yyb10 { + if yyb766 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv771 := &x.Items + yym772 := z.DecBinary() + _ = yym772 + if false { + } else { + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv771), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj766++ + if yyhl766 { + yyb766 = yyj766 > l } else { - yyb10 = r.CheckBreak() + yyb766 = r.CheckBreak() } - if yyb10 { + if yyb766 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj766-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9239,136 +9239,136 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym773 := z.EncBinary() + _ = yym773 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep774 := !z.EncBinary() + yy2arr774 := z.EncBasicHandle().StructToArray + var yyq774 [5]bool + _, _, _ = yysep774, yyq774, yy2arr774 + const yyr774 bool = false + yyq774[0] = x.Kind != "" + yyq774[1] = x.APIVersion != "" + yyq774[2] = true + yyq774[3] = true + yyq774[4] = true + var yynn774 int + if yyr774 || yy2arr774 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn774 = 0 + for _, b := range yyq774 { if b { - yynn2++ + yynn774++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn774) + yynn774 = 0 } - if yyr2 || yy2arr2 { + if yyr774 || yy2arr774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() + if yyq774[0] { + yym776 := z.EncBinary() + _ = yym776 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq774[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym777 := z.EncBinary() + _ = yym777 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr774 || yy2arr774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq774[1] { + yym779 := z.EncBinary() + _ = yym779 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq774[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym780 := z.EncBinary() + _ = yym780 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr774 || yy2arr774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq774[2] { + yy782 := &x.ObjectMeta + yy782.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq774[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy783 := &x.ObjectMeta + yy783.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr774 || yy2arr774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq774[3] { + yy785 := &x.Spec + yy785.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq774[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy786 := &x.Spec + yy786.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr774 || yy2arr774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq774[4] { + yy788 := &x.Status + yy788.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq774[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy789 := &x.Status + yy789.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr774 || yy2arr774 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9381,25 +9381,25 @@ func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym790 := z.DecBinary() + _ = yym790 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct791 := r.ContainerType() + if yyct791 == codecSelferValueTypeMap1234 { + yyl791 := r.ReadMapStart() + if yyl791 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl791, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct791 == codecSelferValueTypeArray1234 { + yyl791 := r.ReadArrayStart() + if yyl791 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl791, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9411,12 +9411,12 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys792Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys792Slc + var yyhl792 bool = l >= 0 + for yyj792 := 0; ; yyj792++ { + if yyhl792 { + if yyj792 >= l { break } } else { @@ -9425,47 +9425,47 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys792Slc = r.DecodeBytes(yys792Slc, true, true) + yys792 := string(yys792Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys792 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv795 := &x.ObjectMeta + yyv795.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv796 := &x.Spec + yyv796.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv797 := &x.Status + yyv797.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys792) + } // end switch yys792 + } // end for yyj792 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9473,104 +9473,104 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj798 int + var yyb798 bool + var yyhl798 bool = l >= 0 + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l } else { - yyb9 = r.CheckBreak() + yyb798 = r.CheckBreak() } - if yyb9 { + if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l } else { - yyb9 = r.CheckBreak() + yyb798 = r.CheckBreak() } - if yyb9 { + if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l } else { - yyb9 = r.CheckBreak() + yyb798 = r.CheckBreak() } - if yyb9 { + if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv801 := &x.ObjectMeta + yyv801.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l } else { - yyb9 = r.CheckBreak() + yyb798 = r.CheckBreak() } - if yyb9 { + if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = JobSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv802 := &x.Spec + yyv802.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l } else { - yyb9 = r.CheckBreak() + yyb798 = r.CheckBreak() } - if yyb9 { + if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = JobStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv803 := &x.Status + yyv803.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l } else { - yyb9 = r.CheckBreak() + yyb798 = r.CheckBreak() } - if yyb9 { + if yyb798 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj798-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9582,139 +9582,139 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym804 := z.EncBinary() + _ = yym804 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep805 := !z.EncBinary() + yy2arr805 := z.EncBasicHandle().StructToArray + var yyq805 [4]bool + _, _, _ = yysep805, yyq805, yy2arr805 + const yyr805 bool = false + yyq805[0] = x.Kind != "" + yyq805[1] = x.APIVersion != "" + yyq805[2] = true + var yynn805 int + if yyr805 || yy2arr805 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn805 = 1 + for _, b := range yyq805 { if b { - yynn2++ + yynn805++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn805) + yynn805 = 0 } - if yyr2 || yy2arr2 { + if yyr805 || yy2arr805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq805[0] { + yym807 := z.EncBinary() + _ = yym807 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq805[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym808 := z.EncBinary() + _ = yym808 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr805 || yy2arr805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq805[1] { + yym810 := z.EncBinary() + _ = yym810 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq805[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym811 := z.EncBinary() + _ = yym811 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr805 || yy2arr805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq805[2] { + yy813 := &x.ListMeta + yym814 := z.EncBinary() + _ = yym814 if false { + } else if z.HasExtensions() && z.EncExt(yy813) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy813) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq805[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy815 := &x.ListMeta + yym816 := z.EncBinary() + _ = yym816 if false { + } else if z.HasExtensions() && z.EncExt(yy815) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy815) } } } - if yyr2 || yy2arr2 { + if yyr805 || yy2arr805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym818 := z.EncBinary() + _ = yym818 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym819 := z.EncBinary() + _ = yym819 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceJob(([]Job)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr805 || yy2arr805 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9727,25 +9727,25 @@ func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym820 := z.DecBinary() + _ = yym820 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct821 := r.ContainerType() + if yyct821 == codecSelferValueTypeMap1234 { + yyl821 := r.ReadMapStart() + if yyl821 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl821, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct821 == codecSelferValueTypeArray1234 { + yyl821 := r.ReadArrayStart() + if yyl821 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl821, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9757,12 +9757,12 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys822Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys822Slc + var yyhl822 bool = l >= 0 + for yyj822 := 0; ; yyj822++ { + if yyhl822 { + if yyj822 >= l { break } } else { @@ -9771,51 +9771,51 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys822Slc = r.DecodeBytes(yys822Slc, true, true) + yys822 := string(yys822Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys822 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv825 := &x.ListMeta + yym826 := z.DecBinary() + _ = yym826 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv825) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv825, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv827 := &x.Items + yym828 := z.DecBinary() + _ = yym828 if false { } else { - h.decSliceJob((*[]Job)(yyv6), d) + h.decSliceJob((*[]Job)(yyv827), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys822) + } // end switch yys822 + } // end for yyj822 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9823,98 +9823,98 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj829 int + var yyb829 bool + var yyhl829 bool = l >= 0 + yyj829++ + if yyhl829 { + yyb829 = yyj829 > l } else { - yyb10 = r.CheckBreak() + yyb829 = r.CheckBreak() } - if yyb10 { + if yyb829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj829++ + if yyhl829 { + yyb829 = yyj829 > l } else { - yyb10 = r.CheckBreak() + yyb829 = r.CheckBreak() } - if yyb10 { + if yyb829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceJob((*[]Job)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj829++ + if yyhl829 { + yyb829 = yyj829 > l } else { - yyb10 = r.CheckBreak() + yyb829 = r.CheckBreak() } - if yyb10 { + if yyb829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv832 := &x.ListMeta + yym833 := z.DecBinary() + _ = yym833 + if false { + } else if z.HasExtensions() && z.DecExt(yyv832) { + } else { + z.DecFallback(yyv832, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj829++ + if yyhl829 { + yyb829 = yyj829 > l } else { - yyb10 = r.CheckBreak() + yyb829 = r.CheckBreak() } - if yyb10 { + if yyb829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv834 := &x.Items + yym835 := z.DecBinary() + _ = yym835 + if false { + } else { + h.decSliceJob((*[]Job)(yyv834), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj829++ + if yyhl829 { + yyb829 = yyj829 > l } else { - yyb10 = r.CheckBreak() + yyb829 = r.CheckBreak() } - if yyb10 { + if yyb829 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj829-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9926,142 +9926,142 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym836 := z.EncBinary() + _ = yym836 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Parallelism != nil - yyq2[1] = x.Completions != nil - yyq2[2] = x.ActiveDeadlineSeconds != nil - yyq2[3] = x.Selector != nil - yyq2[4] = x.AutoSelector != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep837 := !z.EncBinary() + yy2arr837 := z.EncBasicHandle().StructToArray + var yyq837 [6]bool + _, _, _ = yysep837, yyq837, yy2arr837 + const yyr837 bool = false + yyq837[0] = x.Parallelism != nil + yyq837[1] = x.Completions != nil + yyq837[2] = x.ActiveDeadlineSeconds != nil + yyq837[3] = x.Selector != nil + yyq837[4] = x.AutoSelector != nil + var yynn837 int + if yyr837 || yy2arr837 { r.EncodeArrayStart(6) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn837 = 1 + for _, b := range yyq837 { if b { - yynn2++ + yynn837++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn837) + yynn837 = 0 } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq837[0] { if x.Parallelism == nil { r.EncodeNil() } else { - yy4 := *x.Parallelism - yym5 := z.EncBinary() - _ = yym5 + yy839 := *x.Parallelism + yym840 := z.EncBinary() + _ = yym840 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy839)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq837[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parallelism")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parallelism == nil { r.EncodeNil() } else { - yy6 := *x.Parallelism - yym7 := z.EncBinary() - _ = yym7 + yy841 := *x.Parallelism + yym842 := z.EncBinary() + _ = yym842 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy841)) } } } } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq837[1] { if x.Completions == nil { r.EncodeNil() } else { - yy9 := *x.Completions - yym10 := z.EncBinary() - _ = yym10 + yy844 := *x.Completions + yym845 := z.EncBinary() + _ = yym845 if false { } else { - r.EncodeInt(int64(yy9)) + r.EncodeInt(int64(yy844)) } } } else { r.EncodeNil() } } else { - if yyq2[1] { + if yyq837[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Completions == nil { r.EncodeNil() } else { - yy11 := *x.Completions - yym12 := z.EncBinary() - _ = yym12 + yy846 := *x.Completions + yym847 := z.EncBinary() + _ = yym847 if false { } else { - r.EncodeInt(int64(yy11)) + r.EncodeInt(int64(yy846)) } } } } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq837[2] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy14 := *x.ActiveDeadlineSeconds - yym15 := z.EncBinary() - _ = yym15 + yy849 := *x.ActiveDeadlineSeconds + yym850 := z.EncBinary() + _ = yym850 if false { } else { - r.EncodeInt(int64(yy14)) + r.EncodeInt(int64(yy849)) } } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq837[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy16 := *x.ActiveDeadlineSeconds - yym17 := z.EncBinary() - _ = yym17 + yy851 := *x.ActiveDeadlineSeconds + yym852 := z.EncBinary() + _ = yym852 if false { } else { - r.EncodeInt(int64(yy16)) + r.EncodeInt(int64(yy851)) } } } } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq837[3] { if x.Selector == nil { r.EncodeNil() } else { @@ -10071,7 +10071,7 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[3] { + if yyq837[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -10082,53 +10082,53 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq837[4] { if x.AutoSelector == nil { r.EncodeNil() } else { - yy22 := *x.AutoSelector - yym23 := z.EncBinary() - _ = yym23 + yy855 := *x.AutoSelector + yym856 := z.EncBinary() + _ = yym856 if false { } else { - r.EncodeBool(bool(yy22)) + r.EncodeBool(bool(yy855)) } } } else { r.EncodeNil() } } else { - if yyq2[4] { + if yyq837[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("autoSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AutoSelector == nil { r.EncodeNil() } else { - yy24 := *x.AutoSelector - yym25 := z.EncBinary() - _ = yym25 + yy857 := *x.AutoSelector + yym858 := z.EncBinary() + _ = yym858 if false { } else { - r.EncodeBool(bool(yy24)) + r.EncodeBool(bool(yy857)) } } } } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy27 := &x.Template - yy27.CodecEncodeSelf(e) + yy860 := &x.Template + yy860.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy29 := &x.Template - yy29.CodecEncodeSelf(e) + yy861 := &x.Template + yy861.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr837 || yy2arr837 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10141,25 +10141,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym862 := z.DecBinary() + _ = yym862 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct863 := r.ContainerType() + if yyct863 == codecSelferValueTypeMap1234 { + yyl863 := r.ReadMapStart() + if yyl863 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl863, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct863 == codecSelferValueTypeArray1234 { + yyl863 := r.ReadArrayStart() + if yyl863 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl863, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10171,12 +10171,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys864Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys864Slc + var yyhl864 bool = l >= 0 + for yyj864 := 0; ; yyj864++ { + if yyhl864 { + if yyj864 >= l { break } } else { @@ -10185,10 +10185,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys864Slc = r.DecodeBytes(yys864Slc, true, true) + yys864 := string(yys864Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys864 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -10198,8 +10198,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym866 := z.DecBinary() + _ = yym866 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -10214,8 +10214,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym7 := z.DecBinary() - _ = yym7 + yym868 := z.DecBinary() + _ = yym868 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -10230,8 +10230,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym870 := z.DecBinary() + _ = yym870 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -10257,8 +10257,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.AutoSelector == nil { x.AutoSelector = new(bool) } - yym12 := z.DecBinary() - _ = yym12 + yym873 := z.DecBinary() + _ = yym873 if false { } else { *((*bool)(x.AutoSelector)) = r.DecodeBool() @@ -10268,13 +10268,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv13 := &x.Template - yyv13.CodecDecodeSelf(d) + yyv874 := &x.Template + yyv874.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys864) + } // end switch yys864 + } // end for yyj864 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10282,16 +10282,16 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj875 int + var yyb875 bool + var yyhl875 bool = l >= 0 + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10304,20 +10304,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym16 := z.DecBinary() - _ = yym16 + yym877 := z.DecBinary() + _ = yym877 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10330,20 +10330,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym18 := z.DecBinary() - _ = yym18 + yym879 := z.DecBinary() + _ = yym879 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10356,20 +10356,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym20 := z.DecBinary() - _ = yym20 + yym881 := z.DecBinary() + _ = yym881 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10384,13 +10384,13 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Selector.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10403,20 +10403,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.AutoSelector == nil { x.AutoSelector = new(bool) } - yym23 := z.DecBinary() - _ = yym23 + yym884 := z.DecBinary() + _ = yym884 if false { } else { *((*bool)(x.AutoSelector)) = r.DecodeBool() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10424,21 +10424,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv24 := &x.Template - yyv24.CodecDecodeSelf(d) + yyv885 := &x.Template + yyv885.CodecDecodeSelf(d) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l } else { - yyb14 = r.CheckBreak() + yyb875 = r.CheckBreak() } - if yyb14 { + if yyb875 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj875-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10450,43 +10450,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym886 := z.EncBinary() + _ = yym886 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Conditions) != 0 - yyq2[1] = x.StartTime != nil - yyq2[2] = x.CompletionTime != nil - yyq2[3] = x.Active != 0 - yyq2[4] = x.Succeeded != 0 - yyq2[5] = x.Failed != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep887 := !z.EncBinary() + yy2arr887 := z.EncBasicHandle().StructToArray + var yyq887 [6]bool + _, _, _ = yysep887, yyq887, yy2arr887 + const yyr887 bool = false + yyq887[0] = len(x.Conditions) != 0 + yyq887[1] = x.StartTime != nil + yyq887[2] = x.CompletionTime != nil + yyq887[3] = x.Active != 0 + yyq887[4] = x.Succeeded != 0 + yyq887[5] = x.Failed != 0 + var yynn887 int + if yyr887 || yy2arr887 { r.EncodeArrayStart(6) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn887 = 0 + for _, b := range yyq887 { if b { - yynn2++ + yynn887++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn887) + yynn887 = 0 } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq887[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym889 := z.EncBinary() + _ = yym889 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -10496,15 +10496,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq887[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym890 := z.EncBinary() + _ = yym890 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -10512,19 +10512,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq887[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym892 := z.EncBinary() + _ = yym892 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym7 { + } else if yym892 { z.EncBinaryMarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym892 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -10534,20 +10534,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq887[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym893 := z.EncBinary() + _ = yym893 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym8 { + } else if yym893 { z.EncBinaryMarshal(x.StartTime) - } else if !yym8 && z.IsJSONHandle() { + } else if !yym893 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -10555,19 +10555,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq887[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym895 := z.EncBinary() + _ = yym895 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym10 { + } else if yym895 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym10 && z.IsJSONHandle() { + } else if !yym895 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -10577,20 +10577,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq887[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CompletionTime == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym896 := z.EncBinary() + _ = yym896 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym11 { + } else if yym896 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym11 && z.IsJSONHandle() { + } else if !yym896 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -10598,11 +10598,11 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq887[3] { + yym898 := z.EncBinary() + _ = yym898 if false { } else { r.EncodeInt(int64(x.Active)) @@ -10611,23 +10611,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[3] { + if yyq887[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym899 := z.EncBinary() + _ = yym899 if false { } else { r.EncodeInt(int64(x.Active)) } } } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 + if yyq887[4] { + yym901 := z.EncBinary() + _ = yym901 if false { } else { r.EncodeInt(int64(x.Succeeded)) @@ -10636,23 +10636,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[4] { + if yyq887[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("succeeded")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 + yym902 := z.EncBinary() + _ = yym902 if false { } else { r.EncodeInt(int64(x.Succeeded)) } } } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq887[5] { + yym904 := z.EncBinary() + _ = yym904 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -10661,19 +10661,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[5] { + if yyq887[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym905 := z.EncBinary() + _ = yym905 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr2 || yy2arr2 { + if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10686,25 +10686,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym906 := z.DecBinary() + _ = yym906 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct907 := r.ContainerType() + if yyct907 == codecSelferValueTypeMap1234 { + yyl907 := r.ReadMapStart() + if yyl907 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl907, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct907 == codecSelferValueTypeArray1234 { + yyl907 := r.ReadArrayStart() + if yyl907 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl907, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10716,12 +10716,12 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys908Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys908Slc + var yyhl908 bool = l >= 0 + for yyj908 := 0; ; yyj908++ { + if yyhl908 { + if yyj908 >= l { break } } else { @@ -10730,20 +10730,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys908Slc = r.DecodeBytes(yys908Slc, true, true) + yys908 := string(yys908Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys908 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 + yyv909 := &x.Conditions + yym910 := z.DecBinary() + _ = yym910 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv4), d) + h.decSliceJobCondition((*[]JobCondition)(yyv909), d) } } case "startTime": @@ -10755,13 +10755,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym7 := z.DecBinary() - _ = yym7 + yym912 := z.DecBinary() + _ = yym912 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym7 { + } else if yym912 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym7 && z.IsJSONHandle() { + } else if !yym912 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -10776,13 +10776,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym9 := z.DecBinary() - _ = yym9 + yym914 := z.DecBinary() + _ = yym914 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym9 { + } else if yym914 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym9 && z.IsJSONHandle() { + } else if !yym914 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -10807,9 +10807,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys908) + } // end switch yys908 + } // end for yyj908 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10817,16 +10817,16 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + var yyj918 int + var yyb918 bool + var yyhl918 bool = l >= 0 + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10834,21 +10834,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv14 := &x.Conditions - yym15 := z.DecBinary() - _ = yym15 + yyv919 := &x.Conditions + yym920 := z.DecBinary() + _ = yym920 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv14), d) + h.decSliceJobCondition((*[]JobCondition)(yyv919), d) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10861,25 +10861,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym17 := z.DecBinary() - _ = yym17 + yym922 := z.DecBinary() + _ = yym922 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym17 { + } else if yym922 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym17 && z.IsJSONHandle() { + } else if !yym922 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10892,25 +10892,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym19 := z.DecBinary() - _ = yym19 + yym924 := z.DecBinary() + _ = yym924 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym19 { + } else if yym924 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym19 && z.IsJSONHandle() { + } else if !yym924 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10920,13 +10920,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10936,13 +10936,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10953,17 +10953,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l + yyj918++ + if yyhl918 { + yyb918 = yyj918 > l } else { - yyb13 = r.CheckBreak() + yyb918 = r.CheckBreak() } - if yyb13 { + if yyb918 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj13-1, "") + z.DecStructFieldNotFound(yyj918-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10972,8 +10972,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym928 := z.EncBinary() + _ = yym928 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -10985,8 +10985,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym929 := z.DecBinary() + _ = yym929 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -11001,34 +11001,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym930 := z.EncBinary() + _ = yym930 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = true - yyq2[3] = true - yyq2[4] = x.Reason != "" - yyq2[5] = x.Message != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep931 := !z.EncBinary() + yy2arr931 := z.EncBasicHandle().StructToArray + var yyq931 [6]bool + _, _, _ = yysep931, yyq931, yy2arr931 + const yyr931 bool = false + yyq931[2] = true + yyq931[3] = true + yyq931[4] = x.Reason != "" + yyq931[5] = x.Message != "" + var yynn931 int + if yyr931 || yy2arr931 { r.EncodeArrayStart(6) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn931 = 2 + for _, b := range yyq931 { if b { - yynn2++ + yynn931++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn931) + yynn931 = 0 } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -11037,96 +11037,106 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf7 := &x.Status - yysf7.CodecEncodeSelf(e) + yym934 := z.EncBinary() + _ = yym934 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yysf8 := &x.Status - yysf8.CodecEncodeSelf(e) + yym935 := z.EncBinary() + _ = yym935 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.LastProbeTime - yym11 := z.EncBinary() - _ = yym11 + if yyq931[2] { + yy937 := &x.LastProbeTime + yym938 := z.EncBinary() + _ = yym938 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) + } else if z.HasExtensions() && z.EncExt(yy937) { + } else if yym938 { + z.EncBinaryMarshal(yy937) + } else if !yym938 && z.IsJSONHandle() { + z.EncJSONMarshal(yy937) } else { - z.EncFallback(yy10) + z.EncFallback(yy937) } } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq931[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastProbeTime - yym13 := z.EncBinary() - _ = yym13 + yy939 := &x.LastProbeTime + yym940 := z.EncBinary() + _ = yym940 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + } else if z.HasExtensions() && z.EncExt(yy939) { + } else if yym940 { + z.EncBinaryMarshal(yy939) + } else if !yym940 && z.IsJSONHandle() { + z.EncJSONMarshal(yy939) } else { - z.EncFallback(yy12) + z.EncFallback(yy939) } } } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy15 := &x.LastTransitionTime - yym16 := z.EncBinary() - _ = yym16 + if yyq931[3] { + yy942 := &x.LastTransitionTime + yym943 := z.EncBinary() + _ = yym943 if false { - } else if z.HasExtensions() && z.EncExt(yy15) { - } else if yym16 { - z.EncBinaryMarshal(yy15) - } else if !yym16 && z.IsJSONHandle() { - z.EncJSONMarshal(yy15) + } else if z.HasExtensions() && z.EncExt(yy942) { + } else if yym943 { + z.EncBinaryMarshal(yy942) + } else if !yym943 && z.IsJSONHandle() { + z.EncJSONMarshal(yy942) } else { - z.EncFallback(yy15) + z.EncFallback(yy942) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq931[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.LastTransitionTime - yym18 := z.EncBinary() - _ = yym18 + yy944 := &x.LastTransitionTime + yym945 := z.EncBinary() + _ = yym945 if false { - } else if z.HasExtensions() && z.EncExt(yy17) { - } else if yym18 { - z.EncBinaryMarshal(yy17) - } else if !yym18 && z.IsJSONHandle() { - z.EncJSONMarshal(yy17) + } else if z.HasExtensions() && z.EncExt(yy944) { + } else if yym945 { + z.EncBinaryMarshal(yy944) + } else if !yym945 && z.IsJSONHandle() { + z.EncJSONMarshal(yy944) } else { - z.EncFallback(yy17) + z.EncFallback(yy944) } } } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if yyq931[4] { + yym947 := z.EncBinary() + _ = yym947 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -11135,23 +11145,23 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { + if yyq931[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + yym948 := z.EncBinary() + _ = yym948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym23 := z.EncBinary() - _ = yym23 + if yyq931[5] { + yym950 := z.EncBinary() + _ = yym950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -11160,19 +11170,19 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq931[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym24 := z.EncBinary() - _ = yym24 + yym951 := z.EncBinary() + _ = yym951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2 || yy2arr2 { + if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11185,25 +11195,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym952 := z.DecBinary() + _ = yym952 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct953 := r.ContainerType() + if yyct953 == codecSelferValueTypeMap1234 { + yyl953 := r.ReadMapStart() + if yyl953 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl953, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct953 == codecSelferValueTypeArray1234 { + yyl953 := r.ReadArrayStart() + if yyl953 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl953, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11215,12 +11225,12 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys954Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys954Slc + var yyhl954 bool = l >= 0 + for yyj954 := 0; ; yyj954++ { + if yyhl954 { + if yyj954 >= l { break } } else { @@ -11229,10 +11239,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys954Slc = r.DecodeBytes(yys954Slc, true, true) + yys954 := string(yys954Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys954 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -11249,34 +11259,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv6 := &x.LastProbeTime - yym7 := z.DecBinary() - _ = yym7 + yyv957 := &x.LastProbeTime + yym958 := z.DecBinary() + _ = yym958 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv957) { + } else if yym958 { + z.DecBinaryUnmarshal(yyv957) + } else if !yym958 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv957) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv957, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv8 := &x.LastTransitionTime - yym9 := z.DecBinary() - _ = yym9 + yyv959 := &x.LastTransitionTime + yym960 := z.DecBinary() + _ = yym960 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) + } else if z.HasExtensions() && z.DecExt(yyv959) { + } else if yym960 { + z.DecBinaryUnmarshal(yyv959) + } else if !yym960 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv959) } else { - z.DecFallback(yyv8, false) + z.DecFallback(yyv959, false) } } case "reason": @@ -11292,9 +11302,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys954) + } // end switch yys954 + } // end for yyj954 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11302,16 +11312,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj963 int + var yyb963 bool + var yyhl963 bool = l >= 0 + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11321,13 +11331,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11337,13 +11347,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11351,26 +11361,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv15 := &x.LastProbeTime - yym16 := z.DecBinary() - _ = yym16 + yyv966 := &x.LastProbeTime + yym967 := z.DecBinary() + _ = yym967 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(yyv966) { + } else if yym967 { + z.DecBinaryUnmarshal(yyv966) + } else if !yym967 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv966) } else { - z.DecFallback(yyv15, false) + z.DecFallback(yyv966, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11378,26 +11388,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv17 := &x.LastTransitionTime - yym18 := z.DecBinary() - _ = yym18 + yyv968 := &x.LastTransitionTime + yym969 := z.DecBinary() + _ = yym969 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else if yym18 { - z.DecBinaryUnmarshal(yyv17) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv17) + } else if z.HasExtensions() && z.DecExt(yyv968) { + } else if yym969 { + z.DecBinaryUnmarshal(yyv968) + } else if !yym969 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv968) } else { - z.DecFallback(yyv17, false) + z.DecFallback(yyv968, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11407,13 +11417,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11424,17 +11434,17 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj963++ + if yyhl963 { + yyb963 = yyj963 > l } else { - yyb12 = r.CheckBreak() + yyb963 = r.CheckBreak() } - if yyb12 { + if yyb963 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj963-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11446,136 +11456,136 @@ func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym972 := z.EncBinary() + _ = yym972 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep973 := !z.EncBinary() + yy2arr973 := z.EncBasicHandle().StructToArray + var yyq973 [5]bool + _, _, _ = yysep973, yyq973, yy2arr973 + const yyr973 bool = false + yyq973[0] = x.Kind != "" + yyq973[1] = x.APIVersion != "" + yyq973[2] = true + yyq973[3] = true + yyq973[4] = true + var yynn973 int + if yyr973 || yy2arr973 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn973 = 0 + for _, b := range yyq973 { if b { - yynn2++ + yynn973++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn973) + yynn973 = 0 } - if yyr2 || yy2arr2 { + if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq973[0] { + yym975 := z.EncBinary() + _ = yym975 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq973[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym976 := z.EncBinary() + _ = yym976 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq973[1] { + yym978 := z.EncBinary() + _ = yym978 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq973[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym979 := z.EncBinary() + _ = yym979 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq973[2] { + yy981 := &x.ObjectMeta + yy981.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq973[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy982 := &x.ObjectMeta + yy982.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq973[3] { + yy984 := &x.Spec + yy984.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq973[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy985 := &x.Spec + yy985.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq973[4] { + yy987 := &x.Status + yy987.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq973[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy988 := &x.Status + yy988.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11588,25 +11598,25 @@ func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym989 := z.DecBinary() + _ = yym989 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct990 := r.ContainerType() + if yyct990 == codecSelferValueTypeMap1234 { + yyl990 := r.ReadMapStart() + if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl990, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct990 == codecSelferValueTypeArray1234 { + yyl990 := r.ReadArrayStart() + if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl990, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11618,12 +11628,12 @@ func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys991Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys991Slc + var yyhl991 bool = l >= 0 + for yyj991 := 0; ; yyj991++ { + if yyhl991 { + if yyj991 >= l { break } } else { @@ -11632,47 +11642,47 @@ func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys991Slc = r.DecodeBytes(yys991Slc, true, true) + yys991 := string(yys991Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys991 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = IngressStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv994 := &x.ObjectMeta + yyv994.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = IngressSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv995 := &x.Spec + yyv995.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = IngressStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv996 := &x.Status + yyv996.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys991) + } // end switch yys991 + } // end for yyj991 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11680,104 +11690,104 @@ func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj997 int + var yyb997 bool + var yyhl997 bool = l >= 0 + yyj997++ + if yyhl997 { + yyb997 = yyj997 > l } else { - yyb9 = r.CheckBreak() + yyb997 = r.CheckBreak() } - if yyb9 { + if yyb997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj997++ + if yyhl997 { + yyb997 = yyj997 > l } else { - yyb9 = r.CheckBreak() + yyb997 = r.CheckBreak() } - if yyb9 { + if yyb997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj997++ + if yyhl997 { + yyb997 = yyj997 > l } else { - yyb9 = r.CheckBreak() + yyb997 = r.CheckBreak() } - if yyb9 { + if yyb997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = IngressStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv1000 := &x.ObjectMeta + yyv1000.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj997++ + if yyhl997 { + yyb997 = yyj997 > l } else { - yyb9 = r.CheckBreak() + yyb997 = r.CheckBreak() } - if yyb9 { + if yyb997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = IngressSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv1001 := &x.Spec + yyv1001.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj997++ + if yyhl997 { + yyb997 = yyj997 > l } else { - yyb9 = r.CheckBreak() + yyb997 = r.CheckBreak() } - if yyb9 { + if yyb997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = IngressStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv1002 := &x.Status + yyv1002.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj997++ + if yyhl997 { + yyb997 = yyj997 > l } else { - yyb9 = r.CheckBreak() + yyb997 = r.CheckBreak() } - if yyb9 { + if yyb997 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj997-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11789,139 +11799,139 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1003 := z.EncBinary() + _ = yym1003 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1004 := !z.EncBinary() + yy2arr1004 := z.EncBasicHandle().StructToArray + var yyq1004 [4]bool + _, _, _ = yysep1004, yyq1004, yy2arr1004 + const yyr1004 bool = false + yyq1004[0] = x.Kind != "" + yyq1004[1] = x.APIVersion != "" + yyq1004[2] = true + var yynn1004 int + if yyr1004 || yy2arr1004 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn1004 = 1 + for _, b := range yyq1004 { if b { - yynn2++ + yynn1004++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1004) + yynn1004 = 0 } - if yyr2 || yy2arr2 { + if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1004[0] { + yym1006 := z.EncBinary() + _ = yym1006 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1004[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1007 := z.EncBinary() + _ = yym1007 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1004[1] { + yym1009 := z.EncBinary() + _ = yym1009 if false { } else { - h.encSliceIngress(([]Ingress)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1004[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1010 := z.EncBinary() + _ = yym1010 if false { } else { - h.encSliceIngress(([]Ingress)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1004[2] { + yy1012 := &x.ListMeta + yym1013 := z.EncBinary() + _ = yym1013 if false { + } else if z.HasExtensions() && z.EncExt(yy1012) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1012) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1004[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1014 := &x.ListMeta + yym1015 := z.EncBinary() + _ = yym1015 if false { + } else if z.HasExtensions() && z.EncExt(yy1014) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1014) } } } - if yyr2 || yy2arr2 { + if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1017 := z.EncBinary() + _ = yym1017 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceIngress(([]Ingress)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1018 := z.EncBinary() + _ = yym1018 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceIngress(([]Ingress)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11934,25 +11944,25 @@ func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1019 := z.DecBinary() + _ = yym1019 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1020 := r.ContainerType() + if yyct1020 == codecSelferValueTypeMap1234 { + yyl1020 := r.ReadMapStart() + if yyl1020 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1020, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1020 == codecSelferValueTypeArray1234 { + yyl1020 := r.ReadArrayStart() + if yyl1020 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1020, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11964,12 +11974,12 @@ func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1021Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1021Slc + var yyhl1021 bool = l >= 0 + for yyj1021 := 0; ; yyj1021++ { + if yyhl1021 { + if yyj1021 >= l { break } } else { @@ -11978,51 +11988,51 @@ func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1021Slc = r.DecodeBytes(yys1021Slc, true, true) + yys1021 := string(yys1021Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1021 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1024 := &x.ListMeta + yym1025 := z.DecBinary() + _ = yym1025 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1024) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1024, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1026 := &x.Items + yym1027 := z.DecBinary() + _ = yym1027 if false { } else { - h.decSliceIngress((*[]Ingress)(yyv6), d) + h.decSliceIngress((*[]Ingress)(yyv1026), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1021) + } // end switch yys1021 + } // end for yyj1021 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12030,98 +12040,98 @@ func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1028 int + var yyb1028 bool + var yyhl1028 bool = l >= 0 + yyj1028++ + if yyhl1028 { + yyb1028 = yyj1028 > l } else { - yyb10 = r.CheckBreak() + yyb1028 = r.CheckBreak() } - if yyb10 { + if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1028++ + if yyhl1028 { + yyb1028 = yyj1028 > l } else { - yyb10 = r.CheckBreak() + yyb1028 = r.CheckBreak() } - if yyb10 { + if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceIngress((*[]Ingress)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1028++ + if yyhl1028 { + yyb1028 = yyj1028 > l } else { - yyb10 = r.CheckBreak() + yyb1028 = r.CheckBreak() } - if yyb10 { + if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1031 := &x.ListMeta + yym1032 := z.DecBinary() + _ = yym1032 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1031) { + } else { + z.DecFallback(yyv1031, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1028++ + if yyhl1028 { + yyb1028 = yyj1028 > l } else { - yyb10 = r.CheckBreak() + yyb1028 = r.CheckBreak() } - if yyb10 { + if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1033 := &x.Items + yym1034 := z.DecBinary() + _ = yym1034 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv1033), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1028++ + if yyhl1028 { + yyb1028 = yyj1028 > l } else { - yyb10 = r.CheckBreak() + yyb1028 = r.CheckBreak() } - if yyb10 { + if yyb1028 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj1028-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12133,35 +12143,35 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1035 := z.EncBinary() + _ = yym1035 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Backend != nil - yyq2[1] = len(x.TLS) != 0 - yyq2[2] = len(x.Rules) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep1036 := !z.EncBinary() + yy2arr1036 := z.EncBasicHandle().StructToArray + var yyq1036 [3]bool + _, _, _ = yysep1036, yyq1036, yy2arr1036 + const yyr1036 bool = false + yyq1036[0] = x.Backend != nil + yyq1036[1] = len(x.TLS) != 0 + yyq1036[2] = len(x.Rules) != 0 + var yynn1036 int + if yyr1036 || yy2arr1036 { r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1036 = 0 + for _, b := range yyq1036 { if b { - yynn2++ + yynn1036++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1036) + yynn1036 = 0 } - if yyr2 || yy2arr2 { + if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1036[0] { if x.Backend == nil { r.EncodeNil() } else { @@ -12171,7 +12181,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1036[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12182,14 +12192,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1036[1] { if x.TLS == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1039 := z.EncBinary() + _ = yym1039 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -12199,15 +12209,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1036[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tls")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TLS == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym1040 := z.EncBinary() + _ = yym1040 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -12215,14 +12225,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1036[2] { if x.Rules == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym1042 := z.EncBinary() + _ = yym1042 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -12232,15 +12242,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1036[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rules")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Rules == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym1043 := z.EncBinary() + _ = yym1043 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -12248,7 +12258,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12261,25 +12271,25 @@ func (x *IngressSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1044 := z.DecBinary() + _ = yym1044 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1045 := r.ContainerType() + if yyct1045 == codecSelferValueTypeMap1234 { + yyl1045 := r.ReadMapStart() + if yyl1045 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1045, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1045 == codecSelferValueTypeArray1234 { + yyl1045 := r.ReadArrayStart() + if yyl1045 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1045, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12291,12 +12301,12 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1046Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1046Slc + var yyhl1046 bool = l >= 0 + for yyj1046 := 0; ; yyj1046++ { + if yyhl1046 { + if yyj1046 >= l { break } } else { @@ -12305,10 +12315,10 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1046Slc = r.DecodeBytes(yys1046Slc, true, true) + yys1046 := string(yys1046Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1046 { case "backend": if r.TryDecodeAsNil() { if x.Backend != nil { @@ -12324,30 +12334,30 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv5 := &x.TLS - yym6 := z.DecBinary() - _ = yym6 + yyv1048 := &x.TLS + yym1049 := z.DecBinary() + _ = yym1049 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv5), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv1048), d) } } case "rules": if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv7 := &x.Rules - yym8 := z.DecBinary() - _ = yym8 + yyv1050 := &x.Rules + yym1051 := z.DecBinary() + _ = yym1051 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv7), d) + h.decSliceIngressRule((*[]IngressRule)(yyv1050), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1046) + } // end switch yys1046 + } // end for yyj1046 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12355,16 +12365,16 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj1052 int + var yyb1052 bool + var yyhl1052 bool = l >= 0 + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l } else { - yyb9 = r.CheckBreak() + yyb1052 = r.CheckBreak() } - if yyb9 { + if yyb1052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12379,13 +12389,13 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Backend.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l } else { - yyb9 = r.CheckBreak() + yyb1052 = r.CheckBreak() } - if yyb9 { + if yyb1052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12393,21 +12403,21 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv11 := &x.TLS - yym12 := z.DecBinary() - _ = yym12 + yyv1054 := &x.TLS + yym1055 := z.DecBinary() + _ = yym1055 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv11), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv1054), d) } } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l } else { - yyb9 = r.CheckBreak() + yyb1052 = r.CheckBreak() } - if yyb9 { + if yyb1052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12415,26 +12425,26 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv13 := &x.Rules - yym14 := z.DecBinary() - _ = yym14 + yyv1056 := &x.Rules + yym1057 := z.DecBinary() + _ = yym1057 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv13), d) + h.decSliceIngressRule((*[]IngressRule)(yyv1056), d) } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l } else { - yyb9 = r.CheckBreak() + yyb1052 = r.CheckBreak() } - if yyb9 { + if yyb1052 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj1052-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12446,39 +12456,39 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1058 := z.EncBinary() + _ = yym1058 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Hosts) != 0 - yyq2[1] = x.SecretName != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1059 := !z.EncBinary() + yy2arr1059 := z.EncBasicHandle().StructToArray + var yyq1059 [2]bool + _, _, _ = yysep1059, yyq1059, yy2arr1059 + const yyr1059 bool = false + yyq1059[0] = len(x.Hosts) != 0 + yyq1059[1] = x.SecretName != "" + var yynn1059 int + if yyr1059 || yy2arr1059 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1059 = 0 + for _, b := range yyq1059 { if b { - yynn2++ + yynn1059++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1059) + yynn1059 = 0 } - if yyr2 || yy2arr2 { + if yyr1059 || yy2arr1059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1059[0] { if x.Hosts == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym1061 := z.EncBinary() + _ = yym1061 if false { } else { z.F.EncSliceStringV(x.Hosts, false, e) @@ -12488,15 +12498,15 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1059[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hosts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Hosts == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym1062 := z.EncBinary() + _ = yym1062 if false { } else { z.F.EncSliceStringV(x.Hosts, false, e) @@ -12504,11 +12514,11 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1059 || yy2arr1059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq1059[1] { + yym1064 := z.EncBinary() + _ = yym1064 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -12517,19 +12527,19 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1059[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1065 := z.EncBinary() + _ = yym1065 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr2 || yy2arr2 { + if yyr1059 || yy2arr1059 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12542,25 +12552,25 @@ func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1066 := z.DecBinary() + _ = yym1066 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1067 := r.ContainerType() + if yyct1067 == codecSelferValueTypeMap1234 { + yyl1067 := r.ReadMapStart() + if yyl1067 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1067, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1067 == codecSelferValueTypeArray1234 { + yyl1067 := r.ReadArrayStart() + if yyl1067 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1067, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12572,12 +12582,12 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1068Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1068Slc + var yyhl1068 bool = l >= 0 + for yyj1068 := 0; ; yyj1068++ { + if yyhl1068 { + if yyj1068 >= l { break } } else { @@ -12586,20 +12596,20 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1068Slc = r.DecodeBytes(yys1068Slc, true, true) + yys1068 := string(yys1068Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1068 { case "hosts": if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv4 := &x.Hosts - yym5 := z.DecBinary() - _ = yym5 + yyv1069 := &x.Hosts + yym1070 := z.DecBinary() + _ = yym1070 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + z.F.DecSliceStringX(yyv1069, false, d) } } case "secretName": @@ -12609,9 +12619,9 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1068) + } // end switch yys1068 + } // end for yyj1068 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12619,16 +12629,16 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1072 int + var yyb1072 bool + var yyhl1072 bool = l >= 0 + yyj1072++ + if yyhl1072 { + yyb1072 = yyj1072 > l } else { - yyb7 = r.CheckBreak() + yyb1072 = r.CheckBreak() } - if yyb7 { + if yyb1072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12636,21 +12646,21 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv8 := &x.Hosts - yym9 := z.DecBinary() - _ = yym9 + yyv1073 := &x.Hosts + yym1074 := z.DecBinary() + _ = yym1074 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + z.F.DecSliceStringX(yyv1073, false, d) } } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1072++ + if yyhl1072 { + yyb1072 = yyj1072 > l } else { - yyb7 = r.CheckBreak() + yyb1072 = r.CheckBreak() } - if yyb7 { + if yyb1072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12661,17 +12671,17 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1072++ + if yyhl1072 { + yyb1072 = yyj1072 > l } else { - yyb7 = r.CheckBreak() + yyb1072 = r.CheckBreak() } - if yyb7 { + if yyb1072 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1072-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12683,48 +12693,48 @@ func (x *IngressStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1076 := z.EncBinary() + _ = yym1076 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep1077 := !z.EncBinary() + yy2arr1077 := z.EncBasicHandle().StructToArray + var yyq1077 [1]bool + _, _, _ = yysep1077, yyq1077, yy2arr1077 + const yyr1077 bool = false + yyq1077[0] = true + var yynn1077 int + if yyr1077 || yy2arr1077 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1077 = 0 + for _, b := range yyq1077 { if b { - yynn2++ + yynn1077++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1077) + yynn1077 = 0 } - if yyr2 || yy2arr2 { + if yyr1077 || yy2arr1077 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.LoadBalancer - yy4.CodecEncodeSelf(e) + if yyq1077[0] { + yy1079 := &x.LoadBalancer + yy1079.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1077[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.LoadBalancer - yy6.CodecEncodeSelf(e) + yy1080 := &x.LoadBalancer + yy1080.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1077 || yy2arr1077 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12737,25 +12747,25 @@ func (x *IngressStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1081 := z.DecBinary() + _ = yym1081 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1082 := r.ContainerType() + if yyct1082 == codecSelferValueTypeMap1234 { + yyl1082 := r.ReadMapStart() + if yyl1082 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1082, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1082 == codecSelferValueTypeArray1234 { + yyl1082 := r.ReadArrayStart() + if yyl1082 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1082, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12767,12 +12777,12 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1083Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1083Slc + var yyhl1083 bool = l >= 0 + for yyj1083 := 0; ; yyj1083++ { + if yyhl1083 { + if yyj1083 >= l { break } } else { @@ -12781,21 +12791,21 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1083Slc = r.DecodeBytes(yys1083Slc, true, true) + yys1083 := string(yys1083Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1083 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_v1.LoadBalancerStatus{} } else { - yyv4 := &x.LoadBalancer - yyv4.CodecDecodeSelf(d) + yyv1084 := &x.LoadBalancer + yyv1084.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1083) + } // end switch yys1083 + } // end for yyj1083 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12803,16 +12813,16 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj1085 int + var yyb1085 bool + var yyhl1085 bool = l >= 0 + yyj1085++ + if yyhl1085 { + yyb1085 = yyj1085 > l } else { - yyb5 = r.CheckBreak() + yyb1085 = r.CheckBreak() } - if yyb5 { + if yyb1085 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12820,21 +12830,21 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_v1.LoadBalancerStatus{} } else { - yyv6 := &x.LoadBalancer - yyv6.CodecDecodeSelf(d) + yyv1086 := &x.LoadBalancer + yyv1086.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj1085++ + if yyhl1085 { + yyb1085 = yyj1085 > l } else { - yyb5 = r.CheckBreak() + yyb1085 = r.CheckBreak() } - if yyb5 { + if yyb1085 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj1085-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12846,36 +12856,36 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1087 := z.EncBinary() + _ = yym1087 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Host != "" - yyq2[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep1088 := !z.EncBinary() + yy2arr1088 := z.EncBasicHandle().StructToArray + var yyq1088 [2]bool + _, _, _ = yysep1088, yyq1088, yy2arr1088 + const yyr1088 bool = false + yyq1088[0] = x.Host != "" + yyq1088[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil + var yynn1088 int + if yyr1088 || yy2arr1088 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1088 = 0 + for _, b := range yyq1088 { if b { - yynn2++ + yynn1088++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1088) + yynn1088 = 0 } - if yyr2 || yy2arr2 { + if yyr1088 || yy2arr1088 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq1088[0] { + yym1090 := z.EncBinary() + _ = yym1090 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -12884,30 +12894,30 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1088[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1091 := z.EncBinary() + _ = yym1091 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - var yyn6 bool + var yyn1092 bool if x.IngressRuleValue.HTTP == nil { - yyn6 = true - goto LABEL6 + yyn1092 = true + goto LABEL1092 } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { + LABEL1092: + if yyr1088 || yy2arr1088 { + if yyn1092 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1088[1] { if x.HTTP == nil { r.EncodeNil() } else { @@ -12918,11 +12928,11 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq2[1] { + if yyq1088[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn6 { + if yyn1092 { r.EncodeNil() } else { if x.HTTP == nil { @@ -12933,7 +12943,7 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1088 || yy2arr1088 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12946,25 +12956,25 @@ func (x *IngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1093 := z.DecBinary() + _ = yym1093 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1094 := r.ContainerType() + if yyct1094 == codecSelferValueTypeMap1234 { + yyl1094 := r.ReadMapStart() + if yyl1094 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1094, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1094 == codecSelferValueTypeArray1234 { + yyl1094 := r.ReadArrayStart() + if yyl1094 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1094, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12976,12 +12986,12 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1095Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1095Slc + var yyhl1095 bool = l >= 0 + for yyj1095 := 0; ; yyj1095++ { + if yyhl1095 { + if yyj1095 >= l { break } } else { @@ -12990,10 +13000,10 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1095Slc = r.DecodeBytes(yys1095Slc, true, true) + yys1095 := string(yys1095Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1095 { case "host": if r.TryDecodeAsNil() { x.Host = "" @@ -13015,9 +13025,9 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1095) + } // end switch yys1095 + } // end for yyj1095 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13025,16 +13035,16 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1098 int + var yyb1098 bool + var yyhl1098 bool = l >= 0 + yyj1098++ + if yyhl1098 { + yyb1098 = yyj1098 > l } else { - yyb6 = r.CheckBreak() + yyb1098 = r.CheckBreak() } - if yyb6 { + if yyb1098 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13047,13 +13057,13 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.IngressRuleValue.HTTP == nil { x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1098++ + if yyhl1098 { + yyb1098 = yyj1098 > l } else { - yyb6 = r.CheckBreak() + yyb1098 = r.CheckBreak() } - if yyb6 { + if yyb1098 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13069,17 +13079,17 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1098++ + if yyhl1098 { + yyb1098 = yyj1098 > l } else { - yyb6 = r.CheckBreak() + yyb1098 = r.CheckBreak() } - if yyb6 { + if yyb1098 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1098-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13091,33 +13101,33 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1101 := z.EncBinary() + _ = yym1101 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.HTTP != nil - var yynn2 int - if yyr2 || yy2arr2 { + yysep1102 := !z.EncBinary() + yy2arr1102 := z.EncBasicHandle().StructToArray + var yyq1102 [1]bool + _, _, _ = yysep1102, yyq1102, yy2arr1102 + const yyr1102 bool = false + yyq1102[0] = x.HTTP != nil + var yynn1102 int + if yyr1102 || yy2arr1102 { r.EncodeArrayStart(1) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1102 = 0 + for _, b := range yyq1102 { if b { - yynn2++ + yynn1102++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1102) + yynn1102 = 0 } - if yyr2 || yy2arr2 { + if yyr1102 || yy2arr1102 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1102[0] { if x.HTTP == nil { r.EncodeNil() } else { @@ -13127,7 +13137,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1102[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13138,7 +13148,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1102 || yy2arr1102 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13151,25 +13161,25 @@ func (x *IngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1104 := z.DecBinary() + _ = yym1104 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1105 := r.ContainerType() + if yyct1105 == codecSelferValueTypeMap1234 { + yyl1105 := r.ReadMapStart() + if yyl1105 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1105, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1105 == codecSelferValueTypeArray1234 { + yyl1105 := r.ReadArrayStart() + if yyl1105 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1105, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13181,12 +13191,12 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1106Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1106Slc + var yyhl1106 bool = l >= 0 + for yyj1106 := 0; ; yyj1106++ { + if yyhl1106 { + if yyj1106 >= l { break } } else { @@ -13195,10 +13205,10 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1106Slc = r.DecodeBytes(yys1106Slc, true, true) + yys1106 := string(yys1106Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1106 { case "http": if r.TryDecodeAsNil() { if x.HTTP != nil { @@ -13211,9 +13221,9 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1106) + } // end switch yys1106 + } // end for yyj1106 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13221,16 +13231,16 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj1108 int + var yyb1108 bool + var yyhl1108 bool = l >= 0 + yyj1108++ + if yyhl1108 { + yyb1108 = yyj1108 > l } else { - yyb5 = r.CheckBreak() + yyb1108 = r.CheckBreak() } - if yyb5 { + if yyb1108 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13246,17 +13256,17 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.HTTP.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj1108++ + if yyhl1108 { + yyb1108 = yyj1108 > l } else { - yyb5 = r.CheckBreak() + yyb1108 = r.CheckBreak() } - if yyb5 { + if yyb1108 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj5-1, "") + z.DecStructFieldNotFound(yyj1108-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13268,36 +13278,36 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1110 := z.EncBinary() + _ = yym1110 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep1111 := !z.EncBinary() + yy2arr1111 := z.EncBasicHandle().StructToArray + var yyq1111 [1]bool + _, _, _ = yysep1111, yyq1111, yy2arr1111 + const yyr1111 bool = false + var yynn1111 int + if yyr1111 || yy2arr1111 { r.EncodeArrayStart(1) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn1111 = 1 + for _, b := range yyq1111 { if b { - yynn2++ + yynn1111++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1111) + yynn1111 = 0 } - if yyr2 || yy2arr2 { + if yyr1111 || yy2arr1111 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Paths == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym1113 := z.EncBinary() + _ = yym1113 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) @@ -13310,15 +13320,15 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x.Paths == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym1114 := z.EncBinary() + _ = yym1114 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) } } } - if yyr2 || yy2arr2 { + if yyr1111 || yy2arr1111 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13331,25 +13341,25 @@ func (x *HTTPIngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1115 := z.DecBinary() + _ = yym1115 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1116 := r.ContainerType() + if yyct1116 == codecSelferValueTypeMap1234 { + yyl1116 := r.ReadMapStart() + if yyl1116 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1116, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1116 == codecSelferValueTypeArray1234 { + yyl1116 := r.ReadArrayStart() + if yyl1116 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1116, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13361,12 +13371,12 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1117Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1117Slc + var yyhl1117 bool = l >= 0 + for yyj1117 := 0; ; yyj1117++ { + if yyhl1117 { + if yyj1117 >= l { break } } else { @@ -13375,26 +13385,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1117Slc = r.DecodeBytes(yys1117Slc, true, true) + yys1117 := string(yys1117Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1117 { case "paths": if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv4 := &x.Paths - yym5 := z.DecBinary() - _ = yym5 + yyv1118 := &x.Paths + yym1119 := z.DecBinary() + _ = yym1119 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv4), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1118), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1117) + } // end switch yys1117 + } // end for yyj1117 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13402,16 +13412,16 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1120 int + var yyb1120 bool + var yyhl1120 bool = l >= 0 + yyj1120++ + if yyhl1120 { + yyb1120 = yyj1120 > l } else { - yyb6 = r.CheckBreak() + yyb1120 = r.CheckBreak() } - if yyb6 { + if yyb1120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13419,26 +13429,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv7 := &x.Paths - yym8 := z.DecBinary() - _ = yym8 + yyv1121 := &x.Paths + yym1122 := z.DecBinary() + _ = yym1122 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv7), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1121), d) } } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1120++ + if yyhl1120 { + yyb1120 = yyj1120 > l } else { - yyb6 = r.CheckBreak() + yyb1120 = r.CheckBreak() } - if yyb6 { + if yyb1120 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1120-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13450,35 +13460,35 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1123 := z.EncBinary() + _ = yym1123 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Path != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1124 := !z.EncBinary() + yy2arr1124 := z.EncBasicHandle().StructToArray + var yyq1124 [2]bool + _, _, _ = yysep1124, yyq1124, yy2arr1124 + const yyr1124 bool = false + yyq1124[0] = x.Path != "" + var yynn1124 int + if yyr1124 || yy2arr1124 { r.EncodeArrayStart(2) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn1124 = 1 + for _, b := range yyq1124 { if b { - yynn2++ + yynn1124++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1124) + yynn1124 = 0 } - if yyr2 || yy2arr2 { + if yyr1124 || yy2arr1124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq1124[0] { + yym1126 := z.EncBinary() + _ = yym1126 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -13487,30 +13497,30 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1124[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1127 := z.EncBinary() + _ = yym1127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr2 || yy2arr2 { + if yyr1124 || yy2arr1124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.Backend - yy7.CodecEncodeSelf(e) + yy1129 := &x.Backend + yy1129.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.Backend - yy9.CodecEncodeSelf(e) + yy1130 := &x.Backend + yy1130.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1124 || yy2arr1124 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13523,25 +13533,25 @@ func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1131 := z.DecBinary() + _ = yym1131 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1132 := r.ContainerType() + if yyct1132 == codecSelferValueTypeMap1234 { + yyl1132 := r.ReadMapStart() + if yyl1132 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1132, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1132 == codecSelferValueTypeArray1234 { + yyl1132 := r.ReadArrayStart() + if yyl1132 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1132, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13553,12 +13563,12 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1133Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1133Slc + var yyhl1133 bool = l >= 0 + for yyj1133 := 0; ; yyj1133++ { + if yyhl1133 { + if yyj1133 >= l { break } } else { @@ -13567,10 +13577,10 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1133Slc = r.DecodeBytes(yys1133Slc, true, true) + yys1133 := string(yys1133Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1133 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -13581,13 +13591,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv5 := &x.Backend - yyv5.CodecDecodeSelf(d) + yyv1135 := &x.Backend + yyv1135.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1133) + } // end switch yys1133 + } // end for yyj1133 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13595,16 +13605,16 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1136 int + var yyb1136 bool + var yyhl1136 bool = l >= 0 + yyj1136++ + if yyhl1136 { + yyb1136 = yyj1136 > l } else { - yyb6 = r.CheckBreak() + yyb1136 = r.CheckBreak() } - if yyb6 { + if yyb1136 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13614,13 +13624,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1136++ + if yyhl1136 { + yyb1136 = yyj1136 > l } else { - yyb6 = r.CheckBreak() + yyb1136 = r.CheckBreak() } - if yyb6 { + if yyb1136 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13628,21 +13638,21 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv8 := &x.Backend - yyv8.CodecDecodeSelf(d) + yyv1138 := &x.Backend + yyv1138.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1136++ + if yyhl1136 { + yyb1136 = yyj1136 > l } else { - yyb6 = r.CheckBreak() + yyb1136 = r.CheckBreak() } - if yyb6 { + if yyb1136 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1136-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13654,33 +13664,33 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1139 := z.EncBinary() + _ = yym1139 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep1140 := !z.EncBinary() + yy2arr1140 := z.EncBasicHandle().StructToArray + var yyq1140 [2]bool + _, _, _ = yysep1140, yyq1140, yy2arr1140 + const yyr1140 bool = false + var yynn1140 int + if yyr1140 || yy2arr1140 { r.EncodeArrayStart(2) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn1140 = 2 + for _, b := range yyq1140 { if b { - yynn2++ + yynn1140++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1140) + yynn1140 = 0 } - if yyr2 || yy2arr2 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1142 := z.EncBinary() + _ = yym1142 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -13689,41 +13699,41 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1143 := z.EncBinary() + _ = yym1143 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr2 || yy2arr2 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy7 := &x.ServicePort - yym8 := z.EncBinary() - _ = yym8 + yy1145 := &x.ServicePort + yym1146 := z.EncBinary() + _ = yym1146 if false { - } else if z.HasExtensions() && z.EncExt(yy7) { - } else if !yym8 && z.IsJSONHandle() { - z.EncJSONMarshal(yy7) + } else if z.HasExtensions() && z.EncExt(yy1145) { + } else if !yym1146 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1145) } else { - z.EncFallback(yy7) + z.EncFallback(yy1145) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("servicePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy9 := &x.ServicePort - yym10 := z.EncBinary() - _ = yym10 + yy1147 := &x.ServicePort + yym1148 := z.EncBinary() + _ = yym1148 if false { - } else if z.HasExtensions() && z.EncExt(yy9) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(yy9) + } else if z.HasExtensions() && z.EncExt(yy1147) { + } else if !yym1148 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1147) } else { - z.EncFallback(yy9) + z.EncFallback(yy1147) } } - if yyr2 || yy2arr2 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13736,25 +13746,25 @@ func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1149 := z.DecBinary() + _ = yym1149 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1150 := r.ContainerType() + if yyct1150 == codecSelferValueTypeMap1234 { + yyl1150 := r.ReadMapStart() + if yyl1150 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1150, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1150 == codecSelferValueTypeArray1234 { + yyl1150 := r.ReadArrayStart() + if yyl1150 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1150, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13766,12 +13776,12 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1151Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1151Slc + var yyhl1151 bool = l >= 0 + for yyj1151 := 0; ; yyj1151++ { + if yyhl1151 { + if yyj1151 >= l { break } } else { @@ -13780,10 +13790,10 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1151Slc = r.DecodeBytes(yys1151Slc, true, true) + yys1151 := string(yys1151Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1151 { case "serviceName": if r.TryDecodeAsNil() { x.ServiceName = "" @@ -13794,21 +13804,21 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv5 := &x.ServicePort - yym6 := z.DecBinary() - _ = yym6 + yyv1153 := &x.ServicePort + yym1154 := z.DecBinary() + _ = yym1154 if false { - } else if z.HasExtensions() && z.DecExt(yyv5) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv5) + } else if z.HasExtensions() && z.DecExt(yyv1153) { + } else if !yym1154 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1153) } else { - z.DecFallback(yyv5, false) + z.DecFallback(yyv1153, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1151) + } // end switch yys1151 + } // end for yyj1151 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13816,16 +13826,16 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1155 int + var yyb1155 bool + var yyhl1155 bool = l >= 0 + yyj1155++ + if yyhl1155 { + yyb1155 = yyj1155 > l } else { - yyb7 = r.CheckBreak() + yyb1155 = r.CheckBreak() } - if yyb7 { + if yyb1155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13835,13 +13845,13 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceName = string(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1155++ + if yyhl1155 { + yyb1155 = yyj1155 > l } else { - yyb7 = r.CheckBreak() + yyb1155 = r.CheckBreak() } - if yyb7 { + if yyb1155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13849,29 +13859,29 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv9 := &x.ServicePort - yym10 := z.DecBinary() - _ = yym10 + yyv1157 := &x.ServicePort + yym1158 := z.DecBinary() + _ = yym1158 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv1157) { + } else if !yym1158 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1157) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv1157, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1155++ + if yyhl1155 { + yyb1155 = yyj1155 > l } else { - yyb7 = r.CheckBreak() + yyb1155 = r.CheckBreak() } - if yyb7 { + if yyb1155 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1155-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13883,74 +13893,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1159 := z.EncBinary() + _ = yym1159 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1160 := !z.EncBinary() + yy2arr1160 := z.EncBasicHandle().StructToArray + var yyq1160 [4]bool + _, _, _ = yysep1160, yyq1160, yy2arr1160 + const yyr1160 bool = false + yyq1160[0] = x.Kind != "" + yyq1160[1] = x.APIVersion != "" + var yynn1160 int + if yyr1160 || yy2arr1160 { r.EncodeArrayStart(4) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn1160 = 2 + for _, b := range yyq1160 { if b { - yynn2++ + yynn1160++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("export")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exact")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } + r.EncodeMapStart(yynn1160) + yynn1160 = 0 } - if yyr2 || yy2arr2 { + if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq1160[0] { + yym1162 := z.EncBinary() + _ = yym1162 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13959,23 +13931,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq1160[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1163 := z.EncBinary() + _ = yym1163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq1160[1] { + yym1165 := z.EncBinary() + _ = yym1165 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13984,19 +13956,57 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1160[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1166 := z.EncBinary() + _ = yym1166 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1160 || yy2arr1160 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1168 := z.EncBinary() + _ = yym1168 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("export")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1169 := z.EncBinary() + _ = yym1169 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } + if yyr1160 || yy2arr1160 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1171 := z.EncBinary() + _ = yym1171 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exact")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1172 := z.EncBinary() + _ = yym1172 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } + if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14009,25 +14019,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1173 := z.DecBinary() + _ = yym1173 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1174 := r.ContainerType() + if yyct1174 == codecSelferValueTypeMap1234 { + yyl1174 := r.ReadMapStart() + if yyl1174 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1174, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1174 == codecSelferValueTypeArray1234 { + yyl1174 := r.ReadArrayStart() + if yyl1174 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1174, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14039,12 +14049,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1175Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1175Slc + var yyhl1175 bool = l >= 0 + for yyj1175 := 0; ; yyj1175++ { + if yyhl1175 { + if yyj1175 >= l { break } } else { @@ -14053,22 +14063,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1175Slc = r.DecodeBytes(yys1175Slc, true, true) + yys1175 := string(yys1175Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "export": - if r.TryDecodeAsNil() { - x.Export = false - } else { - x.Export = bool(r.DecodeBool()) - } - case "exact": - if r.TryDecodeAsNil() { - x.Exact = false - } else { - x.Exact = bool(r.DecodeBool()) - } + switch yys1175 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -14081,10 +14079,22 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "export": + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + case "exact": + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1175) + } // end switch yys1175 + } // end for yyj1175 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14092,85 +14102,85 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1180 int + var yyb1180 bool + var yyhl1180 bool = l >= 0 + yyj1180++ + if yyhl1180 { + yyb1180 = yyj1180 > l } else { - yyb8 = r.CheckBreak() + yyb1180 = r.CheckBreak() } - if yyb8 { + if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Export = false + x.Kind = "" } else { - x.Export = bool(r.DecodeBool()) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1180++ + if yyhl1180 { + yyb1180 = yyj1180 > l } else { - yyb8 = r.CheckBreak() + yyb1180 = r.CheckBreak() } - if yyb8 { + if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Exact = false + x.APIVersion = "" } else { - x.Exact = bool(r.DecodeBool()) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1180++ + if yyhl1180 { + yyb1180 = yyj1180 > l } else { - yyb8 = r.CheckBreak() + yyb1180 = r.CheckBreak() } - if yyb8 { + if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Export = false } else { - x.Kind = string(r.DecodeString()) + x.Export = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1180++ + if yyhl1180 { + yyb1180 = yyj1180 > l } else { - yyb8 = r.CheckBreak() + yyb1180 = r.CheckBreak() } - if yyb8 { + if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Exact = false } else { - x.APIVersion = string(r.DecodeString()) + x.Exact = bool(r.DecodeBool()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1180++ + if yyhl1180 { + yyb1180 = yyj1180 > l } else { - yyb8 = r.CheckBreak() + yyb1180 = r.CheckBreak() } - if yyb8 { + if yyb1180 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1180-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14182,222 +14192,222 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1185 := z.EncBinary() + _ = yym1185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.LabelSelector != "" - yyq2[1] = x.FieldSelector != "" - yyq2[2] = x.Watch != false - yyq2[3] = x.ResourceVersion != "" - yyq2[4] = x.TimeoutSeconds != nil - yyq2[5] = x.Kind != "" - yyq2[6] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1186 := !z.EncBinary() + yy2arr1186 := z.EncBasicHandle().StructToArray + var yyq1186 [7]bool + _, _, _ = yysep1186, yyq1186, yy2arr1186 + const yyr1186 bool = false + yyq1186[0] = x.Kind != "" + yyq1186[1] = x.APIVersion != "" + yyq1186[2] = x.LabelSelector != "" + yyq1186[3] = x.FieldSelector != "" + yyq1186[4] = x.Watch != false + yyq1186[5] = x.ResourceVersion != "" + yyq1186[6] = x.TimeoutSeconds != nil + var yynn1186 int + if yyr1186 || yy2arr1186 { r.EncodeArrayStart(7) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1186 = 0 + for _, b := range yyq1186 { if b { - yynn2++ + yynn1186++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1186) + yynn1186 = 0 } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq1186[0] { + yym1188 := z.EncBinary() + _ = yym1188 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1186[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq1186[1] { + yym1191 := z.EncBinary() + _ = yym1191 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1186[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1192 := z.EncBinary() + _ = yym1192 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq1186[2] { + yym1194 := z.EncBinary() + _ = yym1194 if false { } else { - r.EncodeBool(bool(x.Watch)) + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq1186[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("watch")) + r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1195 := z.EncBinary() + _ = yym1195 if false { } else { - r.EncodeBool(bool(x.Watch)) + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq1186[3] { + yym1197 := z.EncBinary() + _ = yym1197 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1186[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym1198 := z.EncBinary() + _ = yym1198 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - if x.TimeoutSeconds == nil { - r.EncodeNil() + if yyq1186[4] { + yym1200 := z.EncBinary() + _ = yym1200 + if false { } else { - yy16 := *x.TimeoutSeconds - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeInt(int64(yy16)) - } + r.EncodeBool(bool(x.Watch)) } } else { - r.EncodeNil() + r.EncodeBool(false) } } else { - if yyq2[4] { + if yyq1186[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + r.EncodeString(codecSelferC_UTF81234, string("watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TimeoutSeconds == nil { - r.EncodeNil() + yym1201 := z.EncBinary() + _ = yym1201 + if false { } else { - yy18 := *x.TimeoutSeconds - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(yy18)) - } + r.EncodeBool(bool(x.Watch)) } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym21 := z.EncBinary() - _ = yym21 + if yyq1186[5] { + yym1203 := z.EncBinary() + _ = yym1203 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[5] { + if yyq1186[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym22 := z.EncBinary() - _ = yym22 + yym1204 := z.EncBinary() + _ = yym1204 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym24 := z.EncBinary() - _ = yym24 - if false { + if yyq1186[6] { + if x.TimeoutSeconds == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy1206 := *x.TimeoutSeconds + yym1207 := z.EncBinary() + _ = yym1207 + if false { + } else { + r.EncodeInt(int64(yy1206)) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[6] { + if yyq1186[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym25 := z.EncBinary() - _ = yym25 - if false { + if x.TimeoutSeconds == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yy1208 := *x.TimeoutSeconds + yym1209 := z.EncBinary() + _ = yym1209 + if false { + } else { + r.EncodeInt(int64(yy1208)) + } } } } - if yyr2 || yy2arr2 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14410,25 +14420,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1210 := z.DecBinary() + _ = yym1210 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1211 := r.ContainerType() + if yyct1211 == codecSelferValueTypeMap1234 { + yyl1211 := r.ReadMapStart() + if yyl1211 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1211, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1211 == codecSelferValueTypeArray1234 { + yyl1211 := r.ReadArrayStart() + if yyl1211 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1211, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14440,12 +14450,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1212Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1212Slc + var yyhl1212 bool = l >= 0 + for yyj1212 := 0; ; yyj1212++ { + if yyhl1212 { + if yyj1212 >= l { break } } else { @@ -14454,10 +14464,22 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1212Slc = r.DecodeBytes(yys1212Slc, true, true) + yys1212 := string(yys1212Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1212 { + 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 "labelSelector": if r.TryDecodeAsNil() { x.LabelSelector = "" @@ -14491,29 +14513,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym9 := z.DecBinary() - _ = yym9 + yym1220 := z.DecBinary() + _ = yym1220 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1212) + } // end switch yys1212 + } // end for yyj1212 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14521,143 +14531,143 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj1221 int + var yyb1221 bool + var yyhl1221 bool = l >= 0 + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LabelSelector = "" + x.Kind = "" } else { - x.LabelSelector = string(r.DecodeString()) + x.Kind = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.FieldSelector = "" + x.APIVersion = "" } else { - x.FieldSelector = string(r.DecodeString()) + x.APIVersion = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Watch = false + x.LabelSelector = "" } else { - x.Watch = bool(r.DecodeBool()) + x.LabelSelector = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ResourceVersion = "" + x.FieldSelector = "" } else { - x.ResourceVersion = string(r.DecodeString()) + x.FieldSelector = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.TimeoutSeconds != nil { - x.TimeoutSeconds = nil - } + x.Watch = false } else { - if x.TimeoutSeconds == nil { - x.TimeoutSeconds = new(int64) - } - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) - } + x.Watch = bool(r.DecodeBool()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ResourceVersion = "" } else { - x.Kind = string(r.DecodeString()) + x.ResourceVersion = string(r.DecodeString()) } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + if x.TimeoutSeconds != nil { + x.TimeoutSeconds = nil + } } else { - x.APIVersion = string(r.DecodeString()) + if x.TimeoutSeconds == nil { + x.TimeoutSeconds = new(int64) + } + yym1229 := z.DecBinary() + _ = yym1229 + if false { + } else { + *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) + } } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj1221++ + if yyhl1221 { + yyb1221 = yyj1221 > l } else { - yyb12 = r.CheckBreak() + yyb1221 = r.CheckBreak() } - if yyb12 { + if yyb1221 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj1221-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14669,39 +14679,39 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1230 := z.EncBinary() + _ = yym1230 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.MatchLabels) != 0 - yyq2[1] = len(x.MatchExpressions) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep1231 := !z.EncBinary() + yy2arr1231 := z.EncBasicHandle().StructToArray + var yyq1231 [2]bool + _, _, _ = yysep1231, yyq1231, yy2arr1231 + const yyr1231 bool = false + yyq1231[0] = len(x.MatchLabels) != 0 + yyq1231[1] = len(x.MatchExpressions) != 0 + var yynn1231 int + if yyr1231 || yy2arr1231 { r.EncodeArrayStart(2) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1231 = 0 + for _, b := range yyq1231 { if b { - yynn2++ + yynn1231++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1231) + yynn1231 = 0 } - if yyr2 || yy2arr2 { + if yyr1231 || yy2arr1231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1231[0] { if x.MatchLabels == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym1233 := z.EncBinary() + _ = yym1233 if false { } else { z.F.EncMapStringStringV(x.MatchLabels, false, e) @@ -14711,15 +14721,15 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1231[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchLabels")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchLabels == nil { r.EncodeNil() } else { - yym5 := z.EncBinary() - _ = yym5 + yym1234 := z.EncBinary() + _ = yym1234 if false { } else { z.F.EncMapStringStringV(x.MatchLabels, false, e) @@ -14727,14 +14737,14 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1231 || yy2arr1231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1231[1] { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1236 := z.EncBinary() + _ = yym1236 if false { } else { h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) @@ -14744,15 +14754,15 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1231[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym8 := z.EncBinary() - _ = yym8 + yym1237 := z.EncBinary() + _ = yym1237 if false { } else { h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) @@ -14760,7 +14770,7 @@ func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1231 || yy2arr1231 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14773,25 +14783,25 @@ func (x *LabelSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1238 := z.DecBinary() + _ = yym1238 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1239 := r.ContainerType() + if yyct1239 == codecSelferValueTypeMap1234 { + yyl1239 := r.ReadMapStart() + if yyl1239 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1239, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1239 == codecSelferValueTypeArray1234 { + yyl1239 := r.ReadArrayStart() + if yyl1239 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1239, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14803,12 +14813,12 @@ func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1240Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1240Slc + var yyhl1240 bool = l >= 0 + for yyj1240 := 0; ; yyj1240++ { + if yyhl1240 { + if yyj1240 >= l { break } } else { @@ -14817,38 +14827,38 @@ func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1240Slc = r.DecodeBytes(yys1240Slc, true, true) + yys1240 := string(yys1240Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1240 { case "matchLabels": if r.TryDecodeAsNil() { x.MatchLabels = nil } else { - yyv4 := &x.MatchLabels - yym5 := z.DecBinary() - _ = yym5 + yyv1241 := &x.MatchLabels + yym1242 := z.DecBinary() + _ = yym1242 if false { } else { - z.F.DecMapStringStringX(yyv4, false, d) + z.F.DecMapStringStringX(yyv1241, false, d) } } case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv6 := &x.MatchExpressions - yym7 := z.DecBinary() - _ = yym7 + yyv1243 := &x.MatchExpressions + yym1244 := z.DecBinary() + _ = yym1244 if false { } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv6), d) + h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv1243), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1240) + } // end switch yys1240 + } // end for yyj1240 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14856,16 +14866,16 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1245 int + var yyb1245 bool + var yyhl1245 bool = l >= 0 + yyj1245++ + if yyhl1245 { + yyb1245 = yyj1245 > l } else { - yyb8 = r.CheckBreak() + yyb1245 = r.CheckBreak() } - if yyb8 { + if yyb1245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14873,21 +14883,21 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MatchLabels = nil } else { - yyv9 := &x.MatchLabels - yym10 := z.DecBinary() - _ = yym10 + yyv1246 := &x.MatchLabels + yym1247 := z.DecBinary() + _ = yym1247 if false { } else { - z.F.DecMapStringStringX(yyv9, false, d) + z.F.DecMapStringStringX(yyv1246, false, d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1245++ + if yyhl1245 { + yyb1245 = yyj1245 > l } else { - yyb8 = r.CheckBreak() + yyb1245 = r.CheckBreak() } - if yyb8 { + if yyb1245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14895,26 +14905,26 @@ func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv11 := &x.MatchExpressions - yym12 := z.DecBinary() - _ = yym12 + yyv1248 := &x.MatchExpressions + yym1249 := z.DecBinary() + _ = yym1249 if false { } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv11), d) + h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv1248), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1245++ + if yyhl1245 { + yyb1245 = yyj1245 > l } else { - yyb8 = r.CheckBreak() + yyb1245 = r.CheckBreak() } - if yyb8 { + if yyb1245 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1245-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14926,34 +14936,34 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1250 := z.EncBinary() + _ = yym1250 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[2] = len(x.Values) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + yysep1251 := !z.EncBinary() + yy2arr1251 := z.EncBasicHandle().StructToArray + var yyq1251 [3]bool + _, _, _ = yysep1251, yyq1251, yy2arr1251 + const yyr1251 bool = false + yyq1251[2] = len(x.Values) != 0 + var yynn1251 int + if yyr1251 || yy2arr1251 { r.EncodeArrayStart(3) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn1251 = 2 + for _, b := range yyq1251 { if b { - yynn2++ + yynn1251++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1251) + yynn1251 = 0 } - if yyr2 || yy2arr2 { + if yyr1251 || yy2arr1251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1253 := z.EncBinary() + _ = yym1253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -14962,14 +14972,14 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1254 := z.EncBinary() + _ = yym1254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2 || yy2arr2 { + if yyr1251 || yy2arr1251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -14978,14 +14988,14 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1251 || yy2arr1251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1251[2] { if x.Values == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym1257 := z.EncBinary() + _ = yym1257 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -14995,15 +15005,15 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1251[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym11 := z.EncBinary() - _ = yym11 + yym1258 := z.EncBinary() + _ = yym1258 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -15011,7 +15021,7 @@ func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1251 || yy2arr1251 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15024,25 +15034,25 @@ func (x *LabelSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1259 := z.DecBinary() + _ = yym1259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1260 := r.ContainerType() + if yyct1260 == codecSelferValueTypeMap1234 { + yyl1260 := r.ReadMapStart() + if yyl1260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1260, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1260 == codecSelferValueTypeArray1234 { + yyl1260 := r.ReadArrayStart() + if yyl1260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1260, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15054,12 +15064,12 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -15068,10 +15078,10 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1261Slc = r.DecodeBytes(yys1261Slc, true, true) + yys1261 := string(yys1261Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1261 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -15088,18 +15098,18 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Values = nil } else { - yyv6 := &x.Values - yym7 := z.DecBinary() - _ = yym7 + yyv1264 := &x.Values + yym1265 := z.DecBinary() + _ = yym1265 if false { } else { - z.F.DecSliceStringX(yyv6, false, d) + z.F.DecSliceStringX(yyv1264, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1261) + } // end switch yys1261 + } // end for yyj1261 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15107,16 +15117,16 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1266 int + var yyb1266 bool + var yyhl1266 bool = l >= 0 + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15126,13 +15136,13 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Key = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15142,13 +15152,13 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Operator = LabelSelectorOperator(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15156,26 +15166,26 @@ func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Values = nil } else { - yyv11 := &x.Values - yym12 := z.DecBinary() - _ = yym12 + yyv1269 := &x.Values + yym1270 := z.DecBinary() + _ = yym1270 if false { } else { - z.F.DecSliceStringX(yyv11, false, d) + z.F.DecSliceStringX(yyv1269, false, d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb8 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb8 { + if yyb1266 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1266-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15184,8 +15194,8 @@ func (x LabelSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym1271 := z.EncBinary() + _ = yym1271 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -15197,8 +15207,8 @@ func (x *LabelSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1272 := z.DecBinary() + _ = yym1272 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -15213,136 +15223,136 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1273 := z.EncBinary() + _ = yym1273 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1274 := !z.EncBinary() + yy2arr1274 := z.EncBasicHandle().StructToArray + var yyq1274 [5]bool + _, _, _ = yysep1274, yyq1274, yy2arr1274 + const yyr1274 bool = false + yyq1274[0] = x.Kind != "" + yyq1274[1] = x.APIVersion != "" + yyq1274[2] = true + yyq1274[3] = true + yyq1274[4] = true + var yynn1274 int + if yyr1274 || yy2arr1274 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1274 = 0 + for _, b := range yyq1274 { if b { - yynn2++ + yynn1274++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1274) + yynn1274 = 0 } - if yyr2 || yy2arr2 { + if yyr1274 || yy2arr1274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq1274[0] { + yym1276 := z.EncBinary() + _ = yym1276 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1274[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym1277 := z.EncBinary() + _ = yym1277 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr1274 || yy2arr1274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq1274[1] { + yym1279 := z.EncBinary() + _ = yym1279 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq1274[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym1280 := z.EncBinary() + _ = yym1280 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr1274 || yy2arr1274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq1274[2] { + yy1282 := &x.ObjectMeta + yy1282.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1274[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy1283 := &x.ObjectMeta + yy1283.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1274 || yy2arr1274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq1274[3] { + yy1285 := &x.Spec + yy1285.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq1274[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy1286 := &x.Spec + yy1286.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1274 || yy2arr1274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq1274[4] { + yy1288 := &x.Status + yy1288.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq1274[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy1289 := &x.Status + yy1289.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1274 || yy2arr1274 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15355,25 +15365,25 @@ func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1290 := z.DecBinary() + _ = yym1290 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1291 := r.ContainerType() + if yyct1291 == codecSelferValueTypeMap1234 { + yyl1291 := r.ReadMapStart() + if yyl1291 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1291, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1291 == codecSelferValueTypeArray1234 { + yyl1291 := r.ReadArrayStart() + if yyl1291 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1291, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15385,12 +15395,12 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1292Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1292Slc + var yyhl1292 bool = l >= 0 + for yyj1292 := 0; ; yyj1292++ { + if yyhl1292 { + if yyj1292 >= l { break } } else { @@ -15399,47 +15409,47 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1292Slc = r.DecodeBytes(yys1292Slc, true, true) + yys1292 := string(yys1292Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys1292 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = ReplicaSetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = ReplicaSetStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv1295 := &x.ObjectMeta + yyv1295.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicaSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv1296 := &x.Spec + yyv1296.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicaSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv1297 := &x.Status + yyv1297.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1292) + } // end switch yys1292 + } // end for yyj1292 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15447,104 +15457,104 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj1298 int + var yyb1298 bool + var yyhl1298 bool = l >= 0 + yyj1298++ + if yyhl1298 { + yyb1298 = yyj1298 > l } else { - yyb9 = r.CheckBreak() + yyb1298 = r.CheckBreak() } - if yyb9 { + if yyb1298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1298++ + if yyhl1298 { + yyb1298 = yyj1298 > l } else { - yyb9 = r.CheckBreak() + yyb1298 = r.CheckBreak() } - if yyb9 { + if yyb1298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ReplicaSetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1298++ + if yyhl1298 { + yyb1298 = yyj1298 > l } else { - yyb9 = r.CheckBreak() + yyb1298 = r.CheckBreak() } - if yyb9 { + if yyb1298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ReplicaSetStatus{} + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv1301 := &x.ObjectMeta + yyv1301.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1298++ + if yyhl1298 { + yyb1298 = yyj1298 > l } else { - yyb9 = r.CheckBreak() + yyb1298 = r.CheckBreak() } - if yyb9 { + if yyb1298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = ReplicaSetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv1302 := &x.Spec + yyv1302.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1298++ + if yyhl1298 { + yyb1298 = yyj1298 > l } else { - yyb9 = r.CheckBreak() + yyb1298 = r.CheckBreak() } - if yyb9 { + if yyb1298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = ReplicaSetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv1303 := &x.Status + yyv1303.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj1298++ + if yyhl1298 { + yyb1298 = yyj1298 > l } else { - yyb9 = r.CheckBreak() + yyb1298 = r.CheckBreak() } - if yyb9 { + if yyb1298 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj1298-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15556,139 +15566,139 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1304 := z.EncBinary() + _ = yym1304 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep1305 := !z.EncBinary() + yy2arr1305 := z.EncBasicHandle().StructToArray + var yyq1305 [4]bool + _, _, _ = yysep1305, yyq1305, yy2arr1305 + const yyr1305 bool = false + yyq1305[0] = x.Kind != "" + yyq1305[1] = x.APIVersion != "" + yyq1305[2] = true + var yynn1305 int + if yyr1305 || yy2arr1305 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn1305 = 1 + for _, b := range yyq1305 { if b { - yynn2++ + yynn1305++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1305) + yynn1305 = 0 } - if yyr2 || yy2arr2 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1305[0] { + yym1307 := z.EncBinary() + _ = yym1307 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1305[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1308 := z.EncBinary() + _ = yym1308 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1305[1] { + yym1310 := z.EncBinary() + _ = yym1310 if false { } else { - h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1305[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1311 := z.EncBinary() + _ = yym1311 if false { } else { - h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1305[2] { + yy1313 := &x.ListMeta + yym1314 := z.EncBinary() + _ = yym1314 if false { + } else if z.HasExtensions() && z.EncExt(yy1313) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1313) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1305[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1315 := &x.ListMeta + yym1316 := z.EncBinary() + _ = yym1316 if false { + } else if z.HasExtensions() && z.EncExt(yy1315) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1315) } } } - if yyr2 || yy2arr2 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1318 := z.EncBinary() + _ = yym1318 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1319 := z.EncBinary() + _ = yym1319 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15701,25 +15711,25 @@ func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1320 := z.DecBinary() + _ = yym1320 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1321 := r.ContainerType() + if yyct1321 == codecSelferValueTypeMap1234 { + yyl1321 := r.ReadMapStart() + if yyl1321 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1321, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1321 == codecSelferValueTypeArray1234 { + yyl1321 := r.ReadArrayStart() + if yyl1321 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1321, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15731,12 +15741,12 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -15745,51 +15755,51 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1322Slc = r.DecodeBytes(yys1322Slc, true, true) + yys1322 := string(yys1322Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1322 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1325 := &x.ListMeta + yym1326 := z.DecBinary() + _ = yym1326 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1325) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1325, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1327 := &x.Items + yym1328 := z.DecBinary() + _ = yym1328 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv6), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv1327), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1322) + } // end switch yys1322 + } // end for yyj1322 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15797,98 +15807,98 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1329 int + var yyb1329 bool + var yyhl1329 bool = l >= 0 + yyj1329++ + if yyhl1329 { + yyb1329 = yyj1329 > l } else { - yyb10 = r.CheckBreak() + yyb1329 = r.CheckBreak() } - if yyb10 { + if yyb1329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1329++ + if yyhl1329 { + yyb1329 = yyj1329 > l } else { - yyb10 = r.CheckBreak() + yyb1329 = r.CheckBreak() } - if yyb10 { + if yyb1329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1329++ + if yyhl1329 { + yyb1329 = yyj1329 > l } else { - yyb10 = r.CheckBreak() + yyb1329 = r.CheckBreak() } - if yyb10 { + if yyb1329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1332 := &x.ListMeta + yym1333 := z.DecBinary() + _ = yym1333 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1332) { + } else { + z.DecFallback(yyv1332, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1329++ + if yyhl1329 { + yyb1329 = yyj1329 > l } else { - yyb10 = r.CheckBreak() + yyb1329 = r.CheckBreak() } - if yyb10 { + if yyb1329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1334 := &x.Items + yym1335 := z.DecBinary() + _ = yym1335 + if false { + } else { + h.decSliceReplicaSet((*[]ReplicaSet)(yyv1334), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1329++ + if yyhl1329 { + yyb1329 = yyj1329 > l } else { - yyb10 = r.CheckBreak() + yyb1329 = r.CheckBreak() } - if yyb10 { + if yyb1329 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj1329-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15900,70 +15910,70 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1336 := z.EncBinary() + _ = yym1336 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != nil - yyq2[1] = x.Selector != nil - yyq2[2] = true - var yynn2 int - if yyr2 || yy2arr2 { + yysep1337 := !z.EncBinary() + yy2arr1337 := z.EncBasicHandle().StructToArray + var yyq1337 [3]bool + _, _, _ = yysep1337, yyq1337, yy2arr1337 + const yyr1337 bool = false + yyq1337[0] = x.Replicas != nil + yyq1337[1] = x.Selector != nil + yyq1337[2] = true + var yynn1337 int + if yyr1337 || yy2arr1337 { r.EncodeArrayStart(3) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn1337 = 0 + for _, b := range yyq1337 { if b { - yynn2++ + yynn1337++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1337) + yynn1337 = 0 } - if yyr2 || yy2arr2 { + if yyr1337 || yy2arr1337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1337[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy4 := *x.Replicas - yym5 := z.EncBinary() - _ = yym5 + yy1339 := *x.Replicas + yym1340 := z.EncBinary() + _ = yym1340 if false { } else { - r.EncodeInt(int64(yy4)) + r.EncodeInt(int64(yy1339)) } } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1337[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy6 := *x.Replicas - yym7 := z.EncBinary() - _ = yym7 + yy1341 := *x.Replicas + yym1342 := z.EncBinary() + _ = yym1342 if false { } else { - r.EncodeInt(int64(yy6)) + r.EncodeInt(int64(yy1341)) } } } } - if yyr2 || yy2arr2 { + if yyr1337 || yy2arr1337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1337[1] { if x.Selector == nil { r.EncodeNil() } else { @@ -15973,7 +15983,7 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1337[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15984,24 +15994,24 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1337 || yy2arr1337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy12 := &x.Template - yy12.CodecEncodeSelf(e) + if yyq1337[2] { + yy1345 := &x.Template + yy1345.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq1337[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Template - yy14.CodecEncodeSelf(e) + yy1346 := &x.Template + yy1346.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1337 || yy2arr1337 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16014,25 +16024,25 @@ func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1347 := z.DecBinary() + _ = yym1347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1348 := r.ContainerType() + if yyct1348 == codecSelferValueTypeMap1234 { + yyl1348 := r.ReadMapStart() + if yyl1348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1348, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1348 == codecSelferValueTypeArray1234 { + yyl1348 := r.ReadArrayStart() + if yyl1348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1348, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16044,12 +16054,12 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys1349Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1349Slc + var yyhl1349 bool = l >= 0 + for yyj1349 := 0; ; yyj1349++ { + if yyhl1349 { + if yyj1349 >= l { break } } else { @@ -16058,10 +16068,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) + yys1349 := string(yys1349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1349 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -16071,8 +16081,8 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym5 := z.DecBinary() - _ = yym5 + yym1351 := z.DecBinary() + _ = yym1351 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -16093,13 +16103,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv7 := &x.Template - yyv7.CodecDecodeSelf(d) + yyv1353 := &x.Template + yyv1353.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1349) + } // end switch yys1349 + } // end for yyj1349 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16107,16 +16117,16 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1354 int + var yyb1354 bool + var yyhl1354 bool = l >= 0 + yyj1354++ + if yyhl1354 { + yyb1354 = yyj1354 > l } else { - yyb8 = r.CheckBreak() + yyb1354 = r.CheckBreak() } - if yyb8 { + if yyb1354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16129,20 +16139,20 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym10 := z.DecBinary() - _ = yym10 + yym1356 := z.DecBinary() + _ = yym1356 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1354++ + if yyhl1354 { + yyb1354 = yyj1354 > l } else { - yyb8 = r.CheckBreak() + yyb1354 = r.CheckBreak() } - if yyb8 { + if yyb1354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16157,13 +16167,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Selector.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1354++ + if yyhl1354 { + yyb1354 = yyj1354 > l } else { - yyb8 = r.CheckBreak() + yyb1354 = r.CheckBreak() } - if yyb8 { + if yyb1354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16171,21 +16181,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv12 := &x.Template - yyv12.CodecDecodeSelf(d) + yyv1358 := &x.Template + yyv1358.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1354++ + if yyhl1354 { + yyb1354 = yyj1354 > l } else { - yyb8 = r.CheckBreak() + yyb1354 = r.CheckBreak() } - if yyb8 { + if yyb1354 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1354-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16197,35 +16207,36 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1359 := z.EncBinary() + _ = yym1359 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.FullyLabeledReplicas != 0 - yyq2[2] = x.ObservedGeneration != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) + yysep1360 := !z.EncBinary() + yy2arr1360 := z.EncBasicHandle().StructToArray + var yyq1360 [4]bool + _, _, _ = yysep1360, yyq1360, yy2arr1360 + const yyr1360 bool = false + yyq1360[1] = x.FullyLabeledReplicas != 0 + yyq1360[2] = x.ReadyReplicas != 0 + yyq1360[3] = x.ObservedGeneration != 0 + var yynn1360 int + if yyr1360 || yy2arr1360 { + r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn1360 = 1 + for _, b := range yyq1360 { if b { - yynn2++ + yynn1360++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1360) + yynn1360 = 0 } - if yyr2 || yy2arr2 { + if yyr1360 || yy2arr1360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1362 := z.EncBinary() + _ = yym1362 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -16234,18 +16245,18 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1363 := z.EncBinary() + _ = yym1363 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2 || yy2arr2 { + if yyr1360 || yy2arr1360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq1360[1] { + yym1365 := z.EncBinary() + _ = yym1365 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -16254,23 +16265,48 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[1] { + if yyq1360[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1366 := z.EncBinary() + _ = yym1366 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2 || yy2arr2 { + if yyr1360 || yy2arr1360 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1360[2] { + yym1368 := z.EncBinary() + _ = yym1368 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1360[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + 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 yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 + if yyq1360[3] { + yym1371 := z.EncBinary() + _ = yym1371 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -16279,19 +16315,19 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2[2] { + if yyq1360[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym1372 := z.EncBinary() + _ = yym1372 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2 || yy2arr2 { + if yyr1360 || yy2arr1360 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16304,25 +16340,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1373 := z.DecBinary() + _ = yym1373 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1374 := r.ContainerType() + if yyct1374 == codecSelferValueTypeMap1234 { + yyl1374 := r.ReadMapStart() + if yyl1374 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1374, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1374 == codecSelferValueTypeArray1234 { + yyl1374 := r.ReadArrayStart() + if yyl1374 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1374, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16334,12 +16370,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -16348,10 +16384,10 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1375Slc = r.DecodeBytes(yys1375Slc, true, true) + yys1375 := string(yys1375Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1375 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -16364,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 @@ -16371,9 +16413,9 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1375) + } // end switch yys1375 + } // end for yyj1375 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16381,16 +16423,16 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1380 int + var yyb1380 bool + var yyhl1380 bool = l >= 0 + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb7 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb7 { + if yyb1380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16400,13 +16442,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb7 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb7 { + if yyb1380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16416,13 +16458,29 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l + } else { + yyb1380 = r.CheckBreak() + } + 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 { - yyb7 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb7 { + if yyb1380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16433,17 +16491,17 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ObservedGeneration = int64(r.DecodeInt(64)) } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb7 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb7 { + if yyb1380 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1380-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16455,72 +16513,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1385 := z.EncBinary() + _ = yym1385 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1386 = 0 + for _, b := range yyq1386 { if b { - yynn2++ + yynn1386++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn1386) + yynn1386 = 0 } - if yyr2 || yy2arr2 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq1386[0] { + yym1388 := z.EncBinary() + _ = yym1388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -16529,23 +16553,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq1386[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym1389 := z.EncBinary() + _ = yym1389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq1386[1] { + yym1391 := z.EncBinary() + _ = yym1391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -16554,19 +16578,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1386[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym1392 := z.EncBinary() + _ = yym1392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1386 || yy2arr1386 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1386[2] { + yy1394 := &x.ObjectMeta + yy1394.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1386[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1395 := &x.ObjectMeta + yy1395.CodecEncodeSelf(e) + } + } + if yyr1386 || yy2arr1386 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1386[3] { + yy1397 := &x.Spec + yy1397.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1386[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1398 := &x.Spec + yy1398.CodecEncodeSelf(e) + } + } + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16579,25 +16637,25 @@ func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1399 := z.DecBinary() + _ = yym1399 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1400 := r.ContainerType() + if yyct1400 == codecSelferValueTypeMap1234 { + yyl1400 := r.ReadMapStart() + if yyl1400 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1400, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1400 == codecSelferValueTypeArray1234 { + yyl1400 := r.ReadArrayStart() + if yyl1400 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1400, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16609,12 +16667,12 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -16623,24 +16681,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1401Slc = r.DecodeBytes(yys1401Slc, true, true) + yys1401 := string(yys1401Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PodSecurityPolicySpec{} - } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) - } + switch yys1401 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -16653,10 +16697,24 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv1404 := &x.ObjectMeta + yyv1404.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSecurityPolicySpec{} + } else { + yyv1405 := &x.Spec + yyv1405.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1401) + } // end switch yys1401 + } // end for yyj1401 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16664,87 +16722,87 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1406 int + var yyb1406 bool + var yyhl1406 bool = l >= 0 + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb8 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb8 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb8 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb8 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PodSecurityPolicySpec{} + x.APIVersion = "" } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb8 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb8 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1409 := &x.ObjectMeta + yyv1409.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb8 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb8 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = PodSecurityPolicySpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv1410 := &x.Spec + yyv1410.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb8 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb8 { + if yyb1406 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1406-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16756,44 +16814,44 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1411 := z.EncBinary() + _ = yym1411 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Privileged != false - yyq2[1] = len(x.DefaultAddCapabilities) != 0 - yyq2[2] = len(x.RequiredDropCapabilities) != 0 - yyq2[3] = len(x.AllowedCapabilities) != 0 - yyq2[4] = len(x.Volumes) != 0 - yyq2[5] = x.HostNetwork != false - yyq2[6] = len(x.HostPorts) != 0 - yyq2[7] = x.HostPID != false - yyq2[8] = x.HostIPC != false - yyq2[13] = x.ReadOnlyRootFilesystem != false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 4 - for _, b := range yyq2 { + yynn1412 = 4 + for _, b := range yyq1412 { if b { - yynn2++ + yynn1412++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1412) + yynn1412 = 0 } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 + if yyq1412[0] { + yym1414 := z.EncBinary() + _ = yym1414 if false { } else { r.EncodeBool(bool(x.Privileged)) @@ -16802,26 +16860,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[0] { + if yyq1412[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1415 := z.EncBinary() + _ = yym1415 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1412[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1417 := z.EncBinary() + _ = yym1417 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16831,15 +16889,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym1418 := z.EncBinary() + _ = yym1418 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16847,14 +16905,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { + if yyq1412[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym1420 := z.EncBinary() + _ = yym1420 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16864,15 +16922,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym11 := z.EncBinary() - _ = yym11 + yym1421 := z.EncBinary() + _ = yym1421 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16880,14 +16938,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { + if yyq1412[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 + yym1423 := z.EncBinary() + _ = yym1423 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16897,15 +16955,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym14 := z.EncBinary() - _ = yym14 + yym1424 := z.EncBinary() + _ = yym1424 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16913,14 +16971,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { + if yyq1412[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym16 := z.EncBinary() - _ = yym16 + yym1426 := z.EncBinary() + _ = yym1426 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -16930,15 +16988,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym17 := z.EncBinary() - _ = yym17 + yym1427 := z.EncBinary() + _ = yym1427 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -16946,11 +17004,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 + if yyq1412[5] { + yym1429 := z.EncBinary() + _ = yym1429 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -16959,26 +17017,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[5] { + if yyq1412[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 + yym1430 := z.EncBinary() + _ = yym1430 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { + if yyq1412[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym22 := z.EncBinary() - _ = yym22 + yym1432 := z.EncBinary() + _ = yym1432 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -16988,15 +17046,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym23 := z.EncBinary() - _ = yym23 + yym1433 := z.EncBinary() + _ = yym1433 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -17004,11 +17062,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 + if yyq1412[7] { + yym1435 := z.EncBinary() + _ = yym1435 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -17017,23 +17075,23 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[7] { + if yyq1412[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 + yym1436 := z.EncBinary() + _ = yym1436 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym28 := z.EncBinary() - _ = yym28 + if yyq1412[8] { + yym1438 := z.EncBinary() + _ = yym1438 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -17042,67 +17100,67 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[8] { + if yyq1412[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 + yym1439 := z.EncBinary() + _ = yym1439 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy31 := &x.SELinux - yy31.CodecEncodeSelf(e) + yy1441 := &x.SELinux + yy1441.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy33 := &x.SELinux - yy33.CodecEncodeSelf(e) + yy1442 := &x.SELinux + yy1442.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy36 := &x.RunAsUser - yy36.CodecEncodeSelf(e) + yy1444 := &x.RunAsUser + yy1444.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy38 := &x.RunAsUser - yy38.CodecEncodeSelf(e) + yy1445 := &x.RunAsUser + yy1445.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy41 := &x.SupplementalGroups - yy41.CodecEncodeSelf(e) + yy1447 := &x.SupplementalGroups + yy1447.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy43 := &x.SupplementalGroups - yy43.CodecEncodeSelf(e) + yy1448 := &x.SupplementalGroups + yy1448.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy46 := &x.FSGroup - yy46.CodecEncodeSelf(e) + yy1450 := &x.FSGroup + yy1450.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy48 := &x.FSGroup - yy48.CodecEncodeSelf(e) + yy1451 := &x.FSGroup + yy1451.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - yym51 := z.EncBinary() - _ = yym51 + if yyq1412[13] { + yym1453 := z.EncBinary() + _ = yym1453 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) @@ -17111,19 +17169,19 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2[13] { + if yyq1412[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym52 := z.EncBinary() - _ = yym52 + yym1454 := z.EncBinary() + _ = yym1454 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr2 || yy2arr2 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17136,25 +17194,25 @@ func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1455 := z.DecBinary() + _ = yym1455 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1456 := r.ContainerType() + if yyct1456 == codecSelferValueTypeMap1234 { + yyl1456 := r.ReadMapStart() + if yyl1456 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1456, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1456 == codecSelferValueTypeArray1234 { + yyl1456 := r.ReadArrayStart() + if yyl1456 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1456, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17166,12 +17224,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -17180,10 +17238,10 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1457Slc = r.DecodeBytes(yys1457Slc, true, true) + yys1457 := string(yys1457Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1457 { case "privileged": if r.TryDecodeAsNil() { x.Privileged = false @@ -17194,48 +17252,48 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv5 := &x.DefaultAddCapabilities - yym6 := z.DecBinary() - _ = yym6 + yyv1459 := &x.DefaultAddCapabilities + yym1460 := z.DecBinary() + _ = yym1460 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv5), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1459), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv7 := &x.RequiredDropCapabilities - yym8 := z.DecBinary() - _ = yym8 + yyv1461 := &x.RequiredDropCapabilities + yym1462 := z.DecBinary() + _ = yym1462 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv7), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1461), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv9 := &x.AllowedCapabilities - yym10 := z.DecBinary() - _ = yym10 + yyv1463 := &x.AllowedCapabilities + yym1464 := z.DecBinary() + _ = yym1464 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv9), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1463), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv11 := &x.Volumes - yym12 := z.DecBinary() - _ = yym12 + yyv1465 := &x.Volumes + yym1466 := z.DecBinary() + _ = yym1466 if false { } else { - h.decSliceFSType((*[]FSType)(yyv11), d) + h.decSliceFSType((*[]FSType)(yyv1465), d) } } case "hostNetwork": @@ -17248,12 +17306,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv14 := &x.HostPorts - yym15 := z.DecBinary() - _ = yym15 + yyv1468 := &x.HostPorts + yym1469 := z.DecBinary() + _ = yym1469 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv14), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1468), d) } } case "hostPID": @@ -17272,29 +17330,29 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv18 := &x.SELinux - yyv18.CodecDecodeSelf(d) + yyv1472 := &x.SELinux + yyv1472.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv19 := &x.RunAsUser - yyv19.CodecDecodeSelf(d) + yyv1473 := &x.RunAsUser + yyv1473.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv20 := &x.SupplementalGroups - yyv20.CodecDecodeSelf(d) + yyv1474 := &x.SupplementalGroups + yyv1474.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv21 := &x.FSGroup - yyv21.CodecDecodeSelf(d) + yyv1475 := &x.FSGroup + yyv1475.CodecDecodeSelf(d) } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { @@ -17303,9 +17361,9 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1457) + } // end switch yys1457 + } // end for yyj1457 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17313,16 +17371,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj23 int - var yyb23 bool - var yyhl23 bool = l >= 0 - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + var yyj1477 int + var yyb1477 bool + var yyhl1477 bool = l >= 0 + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17332,13 +17390,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Privileged = bool(r.DecodeBool()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17346,21 +17404,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv25 := &x.DefaultAddCapabilities - yym26 := z.DecBinary() - _ = yym26 + yyv1479 := &x.DefaultAddCapabilities + yym1480 := z.DecBinary() + _ = yym1480 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv25), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1479), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17368,21 +17426,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv27 := &x.RequiredDropCapabilities - yym28 := z.DecBinary() - _ = yym28 + yyv1481 := &x.RequiredDropCapabilities + yym1482 := z.DecBinary() + _ = yym1482 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv27), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1481), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17390,21 +17448,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv29 := &x.AllowedCapabilities - yym30 := z.DecBinary() - _ = yym30 + yyv1483 := &x.AllowedCapabilities + yym1484 := z.DecBinary() + _ = yym1484 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv29), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1483), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17412,21 +17470,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv31 := &x.Volumes - yym32 := z.DecBinary() - _ = yym32 + yyv1485 := &x.Volumes + yym1486 := z.DecBinary() + _ = yym1486 if false { } else { - h.decSliceFSType((*[]FSType)(yyv31), d) + h.decSliceFSType((*[]FSType)(yyv1485), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17436,13 +17494,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17450,21 +17508,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv34 := &x.HostPorts - yym35 := z.DecBinary() - _ = yym35 + yyv1488 := &x.HostPorts + yym1489 := z.DecBinary() + _ = yym1489 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv34), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1488), d) } } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17474,13 +17532,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostPID = bool(r.DecodeBool()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17490,13 +17548,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostIPC = bool(r.DecodeBool()) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17504,16 +17562,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv38 := &x.SELinux - yyv38.CodecDecodeSelf(d) + yyv1492 := &x.SELinux + yyv1492.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17521,16 +17579,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv39 := &x.RunAsUser - yyv39.CodecDecodeSelf(d) + yyv1493 := &x.RunAsUser + yyv1493.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17538,16 +17596,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv40 := &x.SupplementalGroups - yyv40.CodecDecodeSelf(d) + yyv1494 := &x.SupplementalGroups + yyv1494.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17555,16 +17613,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv41 := &x.FSGroup - yyv41.CodecDecodeSelf(d) + yyv1495 := &x.FSGroup + yyv1495.CodecDecodeSelf(d) } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17575,17 +17633,17 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } for { - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb23 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb23 { + if yyb1477 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj23-1, "") + z.DecStructFieldNotFound(yyj1477-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17594,8 +17652,8 @@ func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym1497 := z.EncBinary() + _ = yym1497 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -17607,8 +17665,8 @@ func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1498 := z.DecBinary() + _ = yym1498 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -17623,33 +17681,33 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1499 := z.EncBinary() + _ = yym1499 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1500 = 2 + for _, b := range yyq1500 { if b { - yynn2++ + yynn1500++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1500) + yynn1500 = 0 } - if yyr2 || yy2arr2 { + if yyr1500 || yy2arr1500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1502 := z.EncBinary() + _ = yym1502 if false { } else { r.EncodeInt(int64(x.Min)) @@ -17658,17 +17716,17 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1503 := z.EncBinary() + _ = yym1503 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr2 || yy2arr2 { + if yyr1500 || yy2arr1500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym1505 := z.EncBinary() + _ = yym1505 if false { } else { r.EncodeInt(int64(x.Max)) @@ -17677,14 +17735,14 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1506 := z.EncBinary() + _ = yym1506 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr2 || yy2arr2 { + if yyr1500 || yy2arr1500 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17697,25 +17755,25 @@ func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1507 := z.DecBinary() + _ = yym1507 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1508 := r.ContainerType() + if yyct1508 == codecSelferValueTypeMap1234 { + yyl1508 := r.ReadMapStart() + if yyl1508 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1508, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1508 == codecSelferValueTypeArray1234 { + yyl1508 := r.ReadArrayStart() + if yyl1508 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1508, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17727,12 +17785,12 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -17741,10 +17799,10 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1509Slc = r.DecodeBytes(yys1509Slc, true, true) + yys1509 := string(yys1509Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1509 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -17758,9 +17816,9 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1509) + } // end switch yys1509 + } // end for yyj1509 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17768,16 +17826,16 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1512 int + var yyb1512 bool + var yyhl1512 bool = l >= 0 + yyj1512++ + if yyhl1512 { + yyb1512 = yyj1512 > l } else { - yyb6 = r.CheckBreak() + yyb1512 = r.CheckBreak() } - if yyb6 { + if yyb1512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17787,13 +17845,13 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int32(r.DecodeInt(32)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1512++ + if yyhl1512 { + yyb1512 = yyj1512 > l } else { - yyb6 = r.CheckBreak() + yyb1512 = r.CheckBreak() } - if yyb6 { + if yyb1512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17804,17 +17862,17 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1512++ + if yyhl1512 { + yyb1512 = yyj1512 > l } else { - yyb6 = r.CheckBreak() + yyb1512 = r.CheckBreak() } - if yyb6 { + if yyb1512 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1512-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17826,31 +17884,31 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1515 := z.EncBinary() + _ = yym1515 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.SELinuxOptions != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1516 = 1 + for _, b := range yyq1516 { if b { - yynn2++ + yynn1516++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1516) + yynn1516 = 0 } - if yyr2 || yy2arr2 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -17859,9 +17917,9 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1516[1] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -17871,7 +17929,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1516[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17882,7 +17940,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17895,25 +17953,25 @@ func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1519 := z.DecBinary() + _ = yym1519 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1520 := r.ContainerType() + if yyct1520 == codecSelferValueTypeMap1234 { + yyl1520 := r.ReadMapStart() + if yyl1520 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1520, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1520 == codecSelferValueTypeArray1234 { + yyl1520 := r.ReadArrayStart() + if yyl1520 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1520, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17925,12 +17983,12 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -17939,10 +17997,10 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1521Slc = r.DecodeBytes(yys1521Slc, true, true) + yys1521 := string(yys1521Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1521 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -17961,9 +18019,9 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.SELinuxOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1521) + } // end switch yys1521 + } // end for yyj1521 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17971,16 +18029,16 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1524 int + var yyb1524 bool + var yyhl1524 bool = l >= 0 + yyj1524++ + if yyhl1524 { + yyb1524 = yyj1524 > l } else { - yyb6 = r.CheckBreak() + yyb1524 = r.CheckBreak() } - if yyb6 { + if yyb1524 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17990,13 +18048,13 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = SELinuxStrategy(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1524++ + if yyhl1524 { + yyb1524 = yyj1524 > l } else { - yyb6 = r.CheckBreak() + yyb1524 = r.CheckBreak() } - if yyb6 { + if yyb1524 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18012,17 +18070,17 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De x.SELinuxOptions.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1524++ + if yyhl1524 { + yyb1524 = yyj1524 > l } else { - yyb6 = r.CheckBreak() + yyb1524 = r.CheckBreak() } - if yyb6 { + if yyb1524 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1524-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18031,8 +18089,8 @@ func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym1527 := z.EncBinary() + _ = yym1527 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18044,8 +18102,8 @@ func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1528 := z.DecBinary() + _ = yym1528 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18060,31 +18118,31 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1529 := z.EncBinary() + _ = yym1529 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.Ranges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1530 = 1 + for _, b := range yyq1530 { if b { - yynn2++ + yynn1530++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1530) + yynn1530 = 0 } - if yyr2 || yy2arr2 { + if yyr1530 || yy2arr1530 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -18093,14 +18151,14 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1530 || yy2arr1530 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1530[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1533 := z.EncBinary() + _ = yym1533 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18110,15 +18168,15 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym1534 := z.EncBinary() + _ = yym1534 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18126,7 +18184,7 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1530 || yy2arr1530 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18139,25 +18197,25 @@ func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1535 := z.DecBinary() + _ = yym1535 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1536 := r.ContainerType() + if yyct1536 == codecSelferValueTypeMap1234 { + yyl1536 := r.ReadMapStart() + if yyl1536 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1536, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1536 == codecSelferValueTypeArray1234 { + yyl1536 := r.ReadArrayStart() + if yyl1536 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1536, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18169,12 +18227,12 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -18183,10 +18241,10 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1537Slc = r.DecodeBytes(yys1537Slc, true, true) + yys1537 := string(yys1537Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1537 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18197,18 +18255,18 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv5 := &x.Ranges - yym6 := z.DecBinary() - _ = yym6 + yyv1539 := &x.Ranges + yym1540 := z.DecBinary() + _ = yym1540 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv5), d) + h.decSliceIDRange((*[]IDRange)(yyv1539), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1537) + } // end switch yys1537 + } // end for yyj1537 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18216,16 +18274,16 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1541 int + var yyb1541 bool + var yyhl1541 bool = l >= 0 + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l } else { - yyb7 = r.CheckBreak() + yyb1541 = r.CheckBreak() } - if yyb7 { + if yyb1541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18235,13 +18293,13 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Rule = RunAsUserStrategy(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l } else { - yyb7 = r.CheckBreak() + yyb1541 = r.CheckBreak() } - if yyb7 { + if yyb1541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18249,26 +18307,26 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv9 := &x.Ranges - yym10 := z.DecBinary() - _ = yym10 + yyv1543 := &x.Ranges + yym1544 := z.DecBinary() + _ = yym1544 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv9), d) + h.decSliceIDRange((*[]IDRange)(yyv1543), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l } else { - yyb7 = r.CheckBreak() + yyb1541 = r.CheckBreak() } - if yyb7 { + if yyb1541 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1541-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18280,33 +18338,33 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1545 := z.EncBinary() + _ = yym1545 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 2 - for _, b := range yyq2 { + yynn1546 = 2 + for _, b := range yyq1546 { if b { - yynn2++ + yynn1546++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1546) + yynn1546 = 0 } - if yyr2 || yy2arr2 { + if yyr1546 || yy2arr1546 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym1548 := z.EncBinary() + _ = yym1548 if false { } else { r.EncodeInt(int64(x.Min)) @@ -18315,17 +18373,17 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym1549 := z.EncBinary() + _ = yym1549 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr2 || yy2arr2 { + if yyr1546 || yy2arr1546 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym1551 := z.EncBinary() + _ = yym1551 if false { } else { r.EncodeInt(int64(x.Max)) @@ -18334,14 +18392,14 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym1552 := z.EncBinary() + _ = yym1552 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr2 || yy2arr2 { + if yyr1546 || yy2arr1546 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18354,25 +18412,25 @@ func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1553 := z.DecBinary() + _ = yym1553 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1554 := r.ContainerType() + if yyct1554 == codecSelferValueTypeMap1234 { + yyl1554 := r.ReadMapStart() + if yyl1554 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1554, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1554 == codecSelferValueTypeArray1234 { + yyl1554 := r.ReadArrayStart() + if yyl1554 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1554, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18384,12 +18442,12 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -18398,10 +18456,10 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1555Slc = r.DecodeBytes(yys1555Slc, true, true) + yys1555 := string(yys1555Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1555 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -18415,9 +18473,9 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1555) + } // end switch yys1555 + } // end for yyj1555 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18425,16 +18483,16 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1558 int + var yyb1558 bool + var yyhl1558 bool = l >= 0 + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb6 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb6 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18444,13 +18502,13 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int64(r.DecodeInt(64)) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb6 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb6 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18461,17 +18519,17 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb6 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb6 { + if yyb1558 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1558-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18480,8 +18538,8 @@ func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym1561 := z.EncBinary() + _ = yym1561 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18493,8 +18551,8 @@ func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1562 := z.DecBinary() + _ = yym1562 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18509,54 +18567,54 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1563 := z.EncBinary() + _ = yym1563 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Rule != "" - yyq2[1] = len(x.Ranges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1564 = 0 + for _, b := range yyq1564 { if b { - yynn2++ + yynn1564++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1564) + yynn1564 = 0 } - if yyr2 || yy2arr2 { + if yyr1564 || yy2arr1564 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1564[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1564[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1564 || yy2arr1564 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1564[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1567 := z.EncBinary() + _ = yym1567 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18566,15 +18624,15 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym1568 := z.EncBinary() + _ = yym1568 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18582,7 +18640,7 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1564 || yy2arr1564 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18595,25 +18653,25 @@ func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1569 := z.DecBinary() + _ = yym1569 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1570 := r.ContainerType() + if yyct1570 == codecSelferValueTypeMap1234 { + yyl1570 := r.ReadMapStart() + if yyl1570 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1570, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1570 == codecSelferValueTypeArray1234 { + yyl1570 := r.ReadArrayStart() + if yyl1570 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1570, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18625,12 +18683,12 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -18639,10 +18697,10 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1571Slc = r.DecodeBytes(yys1571Slc, true, true) + yys1571 := string(yys1571Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1571 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18653,18 +18711,18 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv5 := &x.Ranges - yym6 := z.DecBinary() - _ = yym6 + yyv1573 := &x.Ranges + yym1574 := z.DecBinary() + _ = yym1574 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv5), d) + h.decSliceIDRange((*[]IDRange)(yyv1573), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1571) + } // end switch yys1571 + } // end for yyj1571 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18672,16 +18730,16 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1575 int + var yyb1575 bool + var yyhl1575 bool = l >= 0 + yyj1575++ + if yyhl1575 { + yyb1575 = yyj1575 > l } else { - yyb7 = r.CheckBreak() + yyb1575 = r.CheckBreak() } - if yyb7 { + if yyb1575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18691,13 +18749,13 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = FSGroupStrategyType(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1575++ + if yyhl1575 { + yyb1575 = yyj1575 > l } else { - yyb7 = r.CheckBreak() + yyb1575 = r.CheckBreak() } - if yyb7 { + if yyb1575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18705,26 +18763,26 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv9 := &x.Ranges - yym10 := z.DecBinary() - _ = yym10 + yyv1577 := &x.Ranges + yym1578 := z.DecBinary() + _ = yym1578 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv9), d) + h.decSliceIDRange((*[]IDRange)(yyv1577), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1575++ + if yyhl1575 { + yyb1575 = yyj1575 > l } else { - yyb7 = r.CheckBreak() + yyb1575 = r.CheckBreak() } - if yyb7 { + if yyb1575 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1575-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18733,8 +18791,8 @@ func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym1579 := z.EncBinary() + _ = yym1579 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18746,8 +18804,8 @@ func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1580 := z.DecBinary() + _ = yym1580 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18762,54 +18820,54 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1581 := z.EncBinary() + _ = yym1581 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Rule != "" - yyq2[1] = len(x.Ranges) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1582 = 0 + for _, b := range yyq1582 { if b { - yynn2++ + yynn1582++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1582) + yynn1582 = 0 } - if yyr2 || yy2arr2 { + if yyr1582 || yy2arr1582 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1582[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1582[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr1582 || yy2arr1582 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1582[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1585 := z.EncBinary() + _ = yym1585 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18819,15 +18877,15 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym1586 := z.EncBinary() + _ = yym1586 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18835,7 +18893,7 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder } } } - if yyr2 || yy2arr2 { + if yyr1582 || yy2arr1582 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18848,25 +18906,25 @@ func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1587 := z.DecBinary() + _ = yym1587 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1588 := r.ContainerType() + if yyct1588 == codecSelferValueTypeMap1234 { + yyl1588 := r.ReadMapStart() + if yyl1588 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1588, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1588 == codecSelferValueTypeArray1234 { + yyl1588 := r.ReadArrayStart() + if yyl1588 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1588, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18878,12 +18936,12 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -18892,10 +18950,10 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1589Slc = r.DecodeBytes(yys1589Slc, true, true) + yys1589 := string(yys1589Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1589 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18906,18 +18964,18 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv5 := &x.Ranges - yym6 := z.DecBinary() - _ = yym6 + yyv1591 := &x.Ranges + yym1592 := z.DecBinary() + _ = yym1592 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv5), d) + h.decSliceIDRange((*[]IDRange)(yyv1591), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1589) + } // end switch yys1589 + } // end for yyj1589 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18925,16 +18983,16 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1593 int + var yyb1593 bool + var yyhl1593 bool = l >= 0 + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb7 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb7 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18944,13 +19002,13 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c } else { x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb7 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb7 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18958,26 +19016,26 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv9 := &x.Ranges - yym10 := z.DecBinary() - _ = yym10 + yyv1595 := &x.Ranges + yym1596 := z.DecBinary() + _ = yym1596 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv9), d) + h.decSliceIDRange((*[]IDRange)(yyv1595), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb7 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb7 { + if yyb1593 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1593-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18986,8 +19044,8 @@ func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 + yym1597 := z.EncBinary() + _ = yym1597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18999,8 +19057,8 @@ func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1598 := z.DecBinary() + _ = yym1598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19015,139 +19073,139 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1599 := z.EncBinary() + _ = yym1599 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1600 = 1 + for _, b := range yyq1600 { if b { - yynn2++ + yynn1600++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1600) + yynn1600 = 0 } - if yyr2 || yy2arr2 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1600[0] { + yym1602 := z.EncBinary() + _ = yym1602 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1600[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1603 := z.EncBinary() + _ = yym1603 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1600[1] { + yym1605 := z.EncBinary() + _ = yym1605 if false { } else { - h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1600[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1606 := z.EncBinary() + _ = yym1606 if false { } else { - h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1600[2] { + yy1608 := &x.ListMeta + yym1609 := z.EncBinary() + _ = yym1609 if false { + } else if z.HasExtensions() && z.EncExt(yy1608) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1608) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1600[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1610 := &x.ListMeta + yym1611 := z.EncBinary() + _ = yym1611 if false { + } else if z.HasExtensions() && z.EncExt(yy1610) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1610) } } } - if yyr2 || yy2arr2 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1613 := z.EncBinary() + _ = yym1613 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1614 := z.EncBinary() + _ = yym1614 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19160,25 +19218,25 @@ func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1615 := z.DecBinary() + _ = yym1615 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1616 := r.ContainerType() + if yyct1616 == codecSelferValueTypeMap1234 { + yyl1616 := r.ReadMapStart() + if yyl1616 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1616, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1616 == codecSelferValueTypeArray1234 { + yyl1616 := r.ReadArrayStart() + if yyl1616 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1616, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19190,12 +19248,12 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -19204,51 +19262,51 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1617Slc = r.DecodeBytes(yys1617Slc, true, true) + yys1617 := string(yys1617Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1617 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1620 := &x.ListMeta + yym1621 := z.DecBinary() + _ = yym1621 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1620) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1620, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1622 := &x.Items + yym1623 := z.DecBinary() + _ = yym1623 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv6), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1622), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1617) + } // end switch yys1617 + } // end for yyj1617 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19256,98 +19314,98 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1624 int + var yyb1624 bool + var yyhl1624 bool = l >= 0 + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb10 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb10 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb10 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb10 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb10 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb10 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1627 := &x.ListMeta + yym1628 := z.DecBinary() + _ = yym1628 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1627) { + } else { + z.DecFallback(yyv1627, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb10 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb10 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1629 := &x.Items + yym1630 := z.DecBinary() + _ = yym1630 + if false { + } else { + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1629), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb10 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb10 { + if yyb1624 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj1624-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19359,72 +19417,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1631 := z.EncBinary() + _ = yym1631 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1632 = 0 + for _, b := range yyq1632 { if b { - yynn2++ + yynn1632++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) - } + r.EncodeMapStart(yynn1632) + yynn1632 = 0 } - if yyr2 || yy2arr2 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym14 := z.EncBinary() - _ = yym14 + if yyq1632[0] { + yym1634 := z.EncBinary() + _ = yym1634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19433,23 +19457,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq1632[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym15 := z.EncBinary() - _ = yym15 + yym1635 := z.EncBinary() + _ = yym1635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 + if yyq1632[1] { + yym1637 := z.EncBinary() + _ = yym1637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19458,50 +19482,84 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq1632[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 + yym1638 := z.EncBinary() + _ = yym1638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + if yyr1632 || yy2arr1632 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1632[2] { + yy1640 := &x.ObjectMeta + yy1640.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } + if yyq1632[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1641 := &x.ObjectMeta + yy1641.CodecEncodeSelf(e) + } + } + if yyr1632 || yy2arr1632 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1632[3] { + yy1643 := &x.Spec + yy1643.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1632[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1644 := &x.Spec + yy1644.CodecEncodeSelf(e) + } + } + if yyr1632 || yy2arr1632 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } } func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1645 := z.DecBinary() + _ = yym1645 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1646 := r.ContainerType() + if yyct1646 == codecSelferValueTypeMap1234 { + yyl1646 := r.ReadMapStart() + if yyl1646 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1646, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1646 == codecSelferValueTypeArray1234 { + yyl1646 := r.ReadArrayStart() + if yyl1646 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1646, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19513,12 +19571,12 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -19527,24 +19585,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1647Slc = r.DecodeBytes(yys1647Slc, true, true) + yys1647 := string(yys1647Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} - } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = NetworkPolicySpec{} - } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) - } + switch yys1647 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19557,10 +19601,24 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv1650 := &x.ObjectMeta + yyv1650.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NetworkPolicySpec{} + } else { + yyv1651 := &x.Spec + yyv1651.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1647) + } // end switch yys1647 + } // end for yyj1647 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19568,87 +19626,87 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1652 int + var yyb1652 bool + var yyhl1652 bool = l >= 0 + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb8 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb8 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} + x.Kind = "" } else { - yyv9 := &x.ObjectMeta - yyv9.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb8 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb8 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = NetworkPolicySpec{} + x.APIVersion = "" } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb8 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb8 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1655 := &x.ObjectMeta + yyv1655.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb8 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb8 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Spec = NetworkPolicySpec{} } else { - x.APIVersion = string(r.DecodeString()) + yyv1656 := &x.Spec + yyv1656.CodecDecodeSelf(d) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb8 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb8 { + if yyb1652 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1652-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19660,49 +19718,49 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1657 := z.EncBinary() + _ = yym1657 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = len(x.Ingress) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1658 = 1 + for _, b := range yyq1658 { if b { - yynn2++ + yynn1658++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1658) + yynn1658 = 0 } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.PodSelector - yy4.CodecEncodeSelf(e) + yy1660 := &x.PodSelector + yy1660.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.PodSelector - yy6.CodecEncodeSelf(e) + yy1661 := &x.PodSelector + yy1661.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1658[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym1663 := z.EncBinary() + _ = yym1663 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19712,15 +19770,15 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym10 := z.EncBinary() - _ = yym10 + yym1664 := z.EncBinary() + _ = yym1664 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19728,7 +19786,7 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19741,25 +19799,25 @@ func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1665 := z.DecBinary() + _ = yym1665 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1666 := r.ContainerType() + if yyct1666 == codecSelferValueTypeMap1234 { + yyl1666 := r.ReadMapStart() + if yyl1666 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1666, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1666 == codecSelferValueTypeArray1234 { + yyl1666 := r.ReadArrayStart() + if yyl1666 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1666, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19771,12 +19829,12 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -19785,33 +19843,33 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1667Slc = r.DecodeBytes(yys1667Slc, true, true) + yys1667 := string(yys1667Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1667 { case "podSelector": if r.TryDecodeAsNil() { x.PodSelector = LabelSelector{} } else { - yyv4 := &x.PodSelector - yyv4.CodecDecodeSelf(d) + yyv1668 := &x.PodSelector + yyv1668.CodecDecodeSelf(d) } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv5 := &x.Ingress - yym6 := z.DecBinary() - _ = yym6 + yyv1669 := &x.Ingress + yym1670 := z.DecBinary() + _ = yym1670 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv5), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1669), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1667) + } // end switch yys1667 + } // end for yyj1667 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19819,16 +19877,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1671 int + var yyb1671 bool + var yyhl1671 bool = l >= 0 + yyj1671++ + if yyhl1671 { + yyb1671 = yyj1671 > l } else { - yyb7 = r.CheckBreak() + yyb1671 = r.CheckBreak() } - if yyb7 { + if yyb1671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19836,16 +19894,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PodSelector = LabelSelector{} } else { - yyv8 := &x.PodSelector - yyv8.CodecDecodeSelf(d) + yyv1672 := &x.PodSelector + yyv1672.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1671++ + if yyhl1671 { + yyb1671 = yyj1671 > l } else { - yyb7 = r.CheckBreak() + yyb1671 = r.CheckBreak() } - if yyb7 { + if yyb1671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19853,26 +19911,26 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv9 := &x.Ingress - yym10 := z.DecBinary() - _ = yym10 + yyv1673 := &x.Ingress + yym1674 := z.DecBinary() + _ = yym1674 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv9), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1673), d) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1671++ + if yyhl1671 { + yyb1671 = yyj1671 > l } else { - yyb7 = r.CheckBreak() + yyb1671 = r.CheckBreak() } - if yyb7 { + if yyb1671 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1671-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19884,39 +19942,39 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1675 := z.EncBinary() + _ = yym1675 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = len(x.Ports) != 0 - yyq2[1] = len(x.From) != 0 - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1676 = 0 + for _, b := range yyq1676 { if b { - yynn2++ + yynn1676++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1676) + yynn1676 = 0 } - if yyr2 || yy2arr2 { + if yyr1676 || yy2arr1676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1676[0] { if x.Ports == nil { r.EncodeNil() } else { - yym4 := z.EncBinary() - _ = yym4 + yym1678 := z.EncBinary() + _ = yym1678 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -19926,15 +19984,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym5 := z.EncBinary() - _ = yym5 + yym1679 := z.EncBinary() + _ = yym1679 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -19942,14 +20000,14 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1676 || yy2arr1676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1676[1] { if x.From == nil { r.EncodeNil() } else { - yym7 := z.EncBinary() - _ = yym7 + yym1681 := z.EncBinary() + _ = yym1681 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -19959,15 +20017,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym8 := z.EncBinary() - _ = yym8 + yym1682 := z.EncBinary() + _ = yym1682 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -19975,7 +20033,7 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1676 || yy2arr1676 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19988,25 +20046,25 @@ func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1683 := z.DecBinary() + _ = yym1683 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1684 := r.ContainerType() + if yyct1684 == codecSelferValueTypeMap1234 { + yyl1684 := r.ReadMapStart() + if yyl1684 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1684, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1684 == codecSelferValueTypeArray1234 { + yyl1684 := r.ReadArrayStart() + if yyl1684 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1684, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20018,12 +20076,12 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -20032,38 +20090,38 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1685Slc = r.DecodeBytes(yys1685Slc, true, true) + yys1685 := string(yys1685Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1685 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv4 := &x.Ports - yym5 := z.DecBinary() - _ = yym5 + yyv1686 := &x.Ports + yym1687 := z.DecBinary() + _ = yym1687 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv4), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1686), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv6 := &x.From - yym7 := z.DecBinary() - _ = yym7 + yyv1688 := &x.From + yym1689 := z.DecBinary() + _ = yym1689 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv6), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1688), d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1685) + } // end switch yys1685 + } // end for yyj1685 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20071,16 +20129,16 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj1690 int + var yyb1690 bool + var yyhl1690 bool = l >= 0 + yyj1690++ + if yyhl1690 { + yyb1690 = yyj1690 > l } else { - yyb8 = r.CheckBreak() + yyb1690 = r.CheckBreak() } - if yyb8 { + if yyb1690 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20088,21 +20146,21 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv9 := &x.Ports - yym10 := z.DecBinary() - _ = yym10 + yyv1691 := &x.Ports + yym1692 := z.DecBinary() + _ = yym1692 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv9), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1691), d) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1690++ + if yyhl1690 { + yyb1690 = yyj1690 > l } else { - yyb8 = r.CheckBreak() + yyb1690 = r.CheckBreak() } - if yyb8 { + if yyb1690 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20110,26 +20168,26 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.From = nil } else { - yyv11 := &x.From - yym12 := z.DecBinary() - _ = yym12 + yyv1693 := &x.From + yym1694 := z.DecBinary() + _ = yym1694 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv11), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1693), d) } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj1690++ + if yyhl1690 { + yyb1690 = yyj1690 > l } else { - yyb8 = r.CheckBreak() + yyb1690 = r.CheckBreak() } - if yyb8 { + if yyb1690 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj1690-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20141,69 +20199,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1695 := z.EncBinary() + _ = yym1695 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Protocol != nil - yyq2[1] = x.Port != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1696 = 0 + for _, b := range yyq1696 { if b { - yynn2++ + yynn1696++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1696) + yynn1696 = 0 } - if yyr2 || yy2arr2 { + if yyr1696 || yy2arr1696 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1696[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy4 := *x.Protocol - yysf5 := &yy4 - yysf5.CodecEncodeSelf(e) + yy1698 := *x.Protocol + yym1699 := z.EncBinary() + _ = yym1699 + if false { + } else if z.HasExtensions() && z.EncExt(yy1698) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1698)) + } } } else { r.EncodeNil() } } else { - if yyq2[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 { - yy6 := *x.Protocol - yysf7 := &yy6 - yysf7.CodecEncodeSelf(e) + yy1700 := *x.Protocol + yym1701 := z.EncBinary() + _ = yym1701 + if false { + } else if z.HasExtensions() && z.EncExt(yy1700) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1700)) + } } } } - if yyr2 || yy2arr2 { + if yyr1696 || yy2arr1696 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1696[1] { if x.Port == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym1703 := z.EncBinary() + _ = yym1703 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym9 && z.IsJSONHandle() { + } else if !yym1703 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20213,18 +20281,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[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 { - yym10 := z.EncBinary() - _ = yym10 + yym1704 := z.EncBinary() + _ = yym1704 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym10 && z.IsJSONHandle() { + } else if !yym1704 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20232,7 +20300,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1696 || yy2arr1696 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20245,25 +20313,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1705 := z.DecBinary() + _ = yym1705 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1706 := r.ContainerType() + if yyct1706 == codecSelferValueTypeMap1234 { + yyl1706 := r.ReadMapStart() + if yyl1706 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1706, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1706 == codecSelferValueTypeArray1234 { + yyl1706 := r.ReadArrayStart() + if yyl1706 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1706, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20275,12 +20343,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -20289,10 +20357,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1707Slc = r.DecodeBytes(yys1707Slc, true, true) + yys1707 := string(yys1707Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1707 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -20313,20 +20381,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym6 := z.DecBinary() - _ = yym6 + yym1710 := z.DecBinary() + _ = yym1710 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym6 && z.IsJSONHandle() { + } else if !yym1710 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1707) + } // end switch yys1707 + } // end for yyj1707 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20334,16 +20402,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + var yyj1711 int + var yyb1711 bool + var yyhl1711 bool = l >= 0 + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l } else { - yyb7 = r.CheckBreak() + yyb1711 = r.CheckBreak() } - if yyb7 { + if yyb1711 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20358,13 +20426,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l } else { - yyb7 = r.CheckBreak() + yyb1711 = r.CheckBreak() } - if yyb7 { + if yyb1711 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20377,28 +20445,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym10 := z.DecBinary() - _ = yym10 + yym1714 := z.DecBinary() + _ = yym1714 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym10 && z.IsJSONHandle() { + } else if !yym1714 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l } else { - yyb7 = r.CheckBreak() + yyb1711 = r.CheckBreak() } - if yyb7 { + if yyb1711 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj7-1, "") + z.DecStructFieldNotFound(yyj1711-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20410,34 +20478,34 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym1715 := z.EncBinary() + _ = yym1715 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.PodSelector != nil - yyq2[1] = x.NamespaceSelector != nil - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 0 - for _, b := range yyq2 { + yynn1716 = 0 + for _, b := range yyq1716 { if b { - yynn2++ + yynn1716++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1716) + yynn1716 = 0 } - if yyr2 || yy2arr2 { + if yyr1716 || yy2arr1716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { + if yyq1716[0] { if x.PodSelector == nil { r.EncodeNil() } else { @@ -20447,7 +20515,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[0] { + if yyq1716[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20458,9 +20526,9 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1716 || yy2arr1716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { + if yyq1716[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { @@ -20470,7 +20538,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2[1] { + if yyq1716[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20481,7 +20549,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2 || yy2arr2 { + if yyr1716 || yy2arr1716 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20494,25 +20562,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1719 := z.DecBinary() + _ = yym1719 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1720 := r.ContainerType() + if yyct1720 == codecSelferValueTypeMap1234 { + yyl1720 := r.ReadMapStart() + if yyl1720 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1720, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1720 == codecSelferValueTypeArray1234 { + yyl1720 := r.ReadArrayStart() + if yyl1720 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1720, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20524,12 +20592,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -20538,10 +20606,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1721Slc = r.DecodeBytes(yys1721Slc, true, true) + yys1721 := string(yys1721Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1721 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -20559,223 +20627,935 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.NamespaceSelector = nil } } else { - if x.NamespaceSelector == nil { - x.NamespaceSelector = new(LabelSelector) + if x.NamespaceSelector == nil { + x.NamespaceSelector = new(LabelSelector) + } + x.NamespaceSelector.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1721) + } // end switch yys1721 + } // end for yyj1721 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NetworkPolicyPeer) 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 + } else { + yyb1724 = r.CheckBreak() + } + if yyb1724 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodSelector != nil { + x.PodSelector = nil + } + } else { + if x.PodSelector == nil { + x.PodSelector = new(LabelSelector) + } + x.PodSelector.CodecDecodeSelf(d) + } + yyj1724++ + if yyhl1724 { + yyb1724 = yyj1724 > l + } else { + yyb1724 = r.CheckBreak() + } + if yyb1724 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NamespaceSelector != nil { + x.NamespaceSelector = nil + } + } else { + if x.NamespaceSelector == nil { + x.NamespaceSelector = new(LabelSelector) + } + x.NamespaceSelector.CodecDecodeSelf(d) + } + for { + yyj1724++ + if yyhl1724 { + yyb1724 = yyj1724 > l + } else { + yyb1724 = r.CheckBreak() + } + if yyb1724 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1724-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1727 := z.EncBinary() + _ = yym1727 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1728 = 1 + for _, b := range yyq1728 { + if b { + yynn1728++ + } + } + r.EncodeMapStart(yynn1728) + yynn1728 = 0 + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1728[0] { + yym1730 := z.EncBinary() + _ = yym1730 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1728[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1731 := z.EncBinary() + _ = yym1731 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1728[1] { + yym1733 := z.EncBinary() + _ = yym1733 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1728[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1734 := z.EncBinary() + _ = yym1734 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1728[2] { + yy1736 := &x.ListMeta + yym1737 := z.EncBinary() + _ = yym1737 + if false { + } else if z.HasExtensions() && z.EncExt(yy1736) { + } else { + z.EncFallback(yy1736) + } + } else { + r.EncodeNil() + } + } else { + if yyq1728[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1738 := &x.ListMeta + yym1739 := z.EncBinary() + _ = yym1739 + if false { + } else if z.HasExtensions() && z.EncExt(yy1738) { + } else { + z.EncFallback(yy1738) + } + } + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1741 := z.EncBinary() + _ = yym1741 + if false { + } else { + h.encSliceNetworkPolicy(([]NetworkPolicy)(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 { + yym1742 := z.EncBinary() + _ = yym1742 + if false { + } else { + h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) + } + } + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1743 := z.DecBinary() + _ = yym1743 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1744 := r.ContainerType() + if yyct1744 == codecSelferValueTypeMap1234 { + yyl1744 := r.ReadMapStart() + if yyl1744 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1744, d) + } + } else if yyct1744 == codecSelferValueTypeArray1234 { + yyl1744 := r.ReadArrayStart() + if yyl1744 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1744, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1745Slc = r.DecodeBytes(yys1745Slc, true, true) + yys1745 := string(yys1745Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1745 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv1748 := &x.ListMeta + yym1749 := z.DecBinary() + _ = yym1749 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1748) { + } else { + z.DecFallback(yyv1748, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1750 := &x.Items + yym1751 := z.DecBinary() + _ = yym1751 + if false { + } else { + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1750), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1745) + } // end switch yys1745 + } // end for yyj1745 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1752 int + var yyb1752 bool + var yyhl1752 bool = l >= 0 + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l + } else { + yyb1752 = r.CheckBreak() + } + if yyb1752 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l + } else { + yyb1752 = r.CheckBreak() + } + if yyb1752 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l + } else { + yyb1752 = r.CheckBreak() + } + if yyb1752 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv1755 := &x.ListMeta + yym1756 := z.DecBinary() + _ = yym1756 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1755) { + } else { + z.DecFallback(yyv1755, false) + } + } + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l + } else { + yyb1752 = r.CheckBreak() + } + if yyb1752 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1757 := &x.Items + yym1758 := z.DecBinary() + _ = yym1758 + if false { + } else { + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1757), d) + } + } + for { + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l + } else { + yyb1752 = r.CheckBreak() + } + if yyb1752 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1752-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1759 := z.EncBinary() + _ = yym1759 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn1760 = 1 + for _, b := range yyq1760 { + if b { + yynn1760++ + } + } + r.EncodeMapStart(yynn1760) + yynn1760 = 0 + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1760[0] { + yym1762 := z.EncBinary() + _ = yym1762 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1760[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1763 := z.EncBinary() + _ = yym1763 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1760[1] { + yym1765 := z.EncBinary() + _ = yym1765 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1760[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1766 := z.EncBinary() + _ = yym1766 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1760[2] { + yy1768 := &x.ObjectMeta + yy1768.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1760[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1769 := &x.ObjectMeta + yy1769.CodecEncodeSelf(e) + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1771 := z.EncBinary() + _ = yym1771 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("provisioner")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1772 := z.EncBinary() + _ = yym1772 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1760[4] { + if x.Parameters == nil { + r.EncodeNil() + } else { + yym1774 := z.EncBinary() + _ = yym1774 + if false { + } else { + z.F.EncMapStringStringV(x.Parameters, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1760[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parameters")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Parameters == nil { + r.EncodeNil() + } else { + yym1775 := z.EncBinary() + _ = yym1775 + if false { + } else { + z.F.EncMapStringStringV(x.Parameters, false, e) + } + } + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1776 := z.DecBinary() + _ = yym1776 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1777 := r.ContainerType() + if yyct1777 == codecSelferValueTypeMap1234 { + yyl1777 := r.ReadMapStart() + if yyl1777 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1777, d) + } + } else if yyct1777 == codecSelferValueTypeArray1234 { + yyl1777 := r.ReadArrayStart() + if yyl1777 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1777, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1778Slc = r.DecodeBytes(yys1778Slc, true, true) + yys1778 := string(yys1778Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1778 { + 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 { + yyv1781 := &x.ObjectMeta + yyv1781.CodecDecodeSelf(d) + } + case "provisioner": + if r.TryDecodeAsNil() { + x.Provisioner = "" + } else { + x.Provisioner = string(r.DecodeString()) + } + case "parameters": + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + yyv1783 := &x.Parameters + yym1784 := z.DecBinary() + _ = yym1784 + if false { + } else { + z.F.DecMapStringStringX(yyv1783, false, d) } - x.NamespaceSelector.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1778) + } // end switch yys1778 + } // end for yyj1778 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj1785 int + var yyb1785 bool + var yyhl1785 bool = l >= 0 + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb6 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb6 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.PodSelector != nil { - x.PodSelector = nil - } + x.Kind = "" } else { - if x.PodSelector == nil { - x.PodSelector = new(LabelSelector) - } - x.PodSelector.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb6 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb6 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.NamespaceSelector != nil { - x.NamespaceSelector = nil - } + x.APIVersion = "" } else { - if x.NamespaceSelector == nil { - x.NamespaceSelector = new(LabelSelector) + x.APIVersion = string(r.DecodeString()) + } + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l + } else { + yyb1785 = r.CheckBreak() + } + if yyb1785 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv1788 := &x.ObjectMeta + yyv1788.CodecDecodeSelf(d) + } + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l + } else { + yyb1785 = r.CheckBreak() + } + if yyb1785 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Provisioner = "" + } else { + x.Provisioner = string(r.DecodeString()) + } + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l + } else { + yyb1785 = r.CheckBreak() + } + if yyb1785 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + yyv1790 := &x.Parameters + yym1791 := z.DecBinary() + _ = yym1791 + if false { + } else { + z.F.DecMapStringStringX(yyv1790, false, d) } - x.NamespaceSelector.CodecDecodeSelf(d) } for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb6 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb6 { + if yyb1785 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj6-1, "") + z.DecStructFieldNotFound(yyj1785-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StorageClassList) 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 + yym1792 := z.EncBinary() + _ = yym1792 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + 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 { - yynn2 = 1 - for _, b := range yyq2 { + yynn1793 = 1 + for _, b := range yyq1793 { if b { - yynn2++ + yynn1793++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn1793) + yynn1793 = 0 } - if yyr2 || yy2arr2 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq1793[0] { + yym1795 := z.EncBinary() + _ = yym1795 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq1793[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym1796 := z.EncBinary() + _ = yym1796 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq1793[1] { + yym1798 := z.EncBinary() + _ = yym1798 if false { } else { - h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq1793[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1799 := z.EncBinary() + _ = yym1799 if false { } else { - h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq1793[2] { + yy1801 := &x.ListMeta + yym1802 := z.EncBinary() + _ = yym1802 if false { + } else if z.HasExtensions() && z.EncExt(yy1801) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1801) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq1793[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy1803 := &x.ListMeta + yym1804 := z.EncBinary() + _ = yym1804 if false { + } else if z.HasExtensions() && z.EncExt(yy1803) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy1803) } } } - if yyr2 || yy2arr2 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym1806 := z.EncBinary() + _ = yym1806 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceStorageClass(([]StorageClass)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1807 := z.EncBinary() + _ = yym1807 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceStorageClass(([]StorageClass)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20784,29 +21564,29 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym1808 := z.DecBinary() + _ = yym1808 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct1809 := r.ContainerType() + if yyct1809 == codecSelferValueTypeMap1234 { + yyl1809 := r.ReadMapStart() + if yyl1809 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl1809, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct1809 == codecSelferValueTypeArray1234 { + yyl1809 := r.ReadArrayStart() + if yyl1809 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl1809, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20814,16 +21594,16 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -20832,150 +21612,150 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys1810Slc = r.DecodeBytes(yys1810Slc, true, true) + yys1810 := string(yys1810Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys1810 { + 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 = pkg1_unversioned.ListMeta{} } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv1813 := &x.ListMeta + yym1814 := z.DecBinary() + _ = yym1814 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv1813) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv1813, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv1815 := &x.Items + yym1816 := z.DecBinary() + _ = yym1816 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv6), d) + h.decSliceStorageClass((*[]StorageClass)(yyv1815), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys1810) + } // end switch yys1810 + } // end for yyj1810 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj1817 int + var yyb1817 bool + var yyhl1817 bool = l >= 0 + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb10 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb10 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb10 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb10 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb10 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb10 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv1820 := &x.ListMeta + yym1821 := z.DecBinary() + _ = yym1821 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1820) { + } else { + z.DecFallback(yyv1820, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb10 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb10 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv1822 := &x.Items + yym1823 := z.DecBinary() + _ = yym1823 + if false { + } else { + h.decSliceStorageClass((*[]StorageClass)(yyv1822), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb10 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb10 { + if yyb1817 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj1817-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20985,10 +21765,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1824 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1825 := &yyv1824 + yy1825.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20998,86 +21778,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CustomMetricTarget{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1826 > 0 { + var yyrr1826, yyrl1826 int + var yyrt1826 bool + if yyl1826 > cap(yyv1826) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]CustomMetricTarget, yyrl1) + yyv1826 = make([]CustomMetricTarget, yyrl1826) } } else { - yyv1 = make([]CustomMetricTarget, yyrl1) + yyv1826 = make([]CustomMetricTarget, yyrl1826) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1826 = true + yyrr1826 = len(yyv1826) + if yyrg1826 { + copy(yyv1826, yyv21826) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1826 != len(yyv1826) { + yyv1826 = yyv1826[:yyl1826] + yyc1826 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1826 := 0 + for ; yyj1826 < yyrr1826; yyj1826++ { + yyh1826.ElemContainerState(yyj1826) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricTarget{} + yyv1826[yyj1826] = CustomMetricTarget{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1827 := &yyv1826[yyj1826] + yyv1827.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CustomMetricTarget{}) - yyh1.ElemContainerState(yyj1) + if yyrt1826 { + for ; yyj1826 < yyl1826; yyj1826++ { + yyv1826 = append(yyv1826, CustomMetricTarget{}) + yyh1826.ElemContainerState(yyj1826) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricTarget{} + yyv1826[yyj1826] = CustomMetricTarget{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1828 := &yyv1826[yyj1826] + yyv1828.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1826 := 0 + for ; !r.CheckBreak(); yyj1826++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CustomMetricTarget{}) // var yyz1 CustomMetricTarget - yyc1 = true + if yyj1826 >= len(yyv1826) { + yyv1826 = append(yyv1826, CustomMetricTarget{}) // var yyz1826 CustomMetricTarget + yyc1826 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1826.ElemContainerState(yyj1826) + if yyj1826 < len(yyv1826) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricTarget{} + yyv1826[yyj1826] = CustomMetricTarget{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1829 := &yyv1826[yyj1826] + yyv1829.CodecDecodeSelf(d) } } else { @@ -21085,17 +21862,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CustomMetricTarget{} - yyc1 = true + if yyj1826 < len(yyv1826) { + yyv1826 = yyv1826[:yyj1826] + yyc1826 = true + } else if yyj1826 == 0 && yyv1826 == nil { + yyv1826 = []CustomMetricTarget{} + yyc1826 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1826.End() + if yyc1826 { + *v = yyv1826 } } @@ -21104,10 +21881,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1830 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1831 := &yyv1830 + yy1831.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21117,86 +21894,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []CustomMetricCurrentStatus{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1832 > 0 { + var yyrr1832, yyrl1832 int + var yyrt1832 bool + if yyl1832 > cap(yyv1832) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]CustomMetricCurrentStatus, yyrl1) + yyv1832 = make([]CustomMetricCurrentStatus, yyrl1832) } } else { - yyv1 = make([]CustomMetricCurrentStatus, yyrl1) + yyv1832 = make([]CustomMetricCurrentStatus, yyrl1832) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1832 = true + yyrr1832 = len(yyv1832) + if yyrg1832 { + copy(yyv1832, yyv21832) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1832 != len(yyv1832) { + yyv1832 = yyv1832[:yyl1832] + yyc1832 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1832 := 0 + for ; yyj1832 < yyrr1832; yyj1832++ { + yyh1832.ElemContainerState(yyj1832) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricCurrentStatus{} + yyv1832[yyj1832] = CustomMetricCurrentStatus{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1833 := &yyv1832[yyj1832] + yyv1833.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, CustomMetricCurrentStatus{}) - yyh1.ElemContainerState(yyj1) + if yyrt1832 { + for ; yyj1832 < yyl1832; yyj1832++ { + yyv1832 = append(yyv1832, CustomMetricCurrentStatus{}) + yyh1832.ElemContainerState(yyj1832) if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricCurrentStatus{} + yyv1832[yyj1832] = CustomMetricCurrentStatus{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1834 := &yyv1832[yyj1832] + yyv1834.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1832 := 0 + for ; !r.CheckBreak(); yyj1832++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, CustomMetricCurrentStatus{}) // var yyz1 CustomMetricCurrentStatus - yyc1 = true + if yyj1832 >= len(yyv1832) { + yyv1832 = append(yyv1832, CustomMetricCurrentStatus{}) // var yyz1832 CustomMetricCurrentStatus + yyc1832 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1832.ElemContainerState(yyj1832) + if yyj1832 < len(yyv1832) { if r.TryDecodeAsNil() { - yyv1[yyj1] = CustomMetricCurrentStatus{} + yyv1832[yyj1832] = CustomMetricCurrentStatus{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1835 := &yyv1832[yyj1832] + yyv1835.CodecDecodeSelf(d) } } else { @@ -21204,17 +21978,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []CustomMetricCurrentStatus{} - yyc1 = true + if yyj1832 < len(yyv1832) { + yyv1832 = yyv1832[:yyj1832] + yyc1832 = true + } else if yyj1832 == 0 && yyv1832 == nil { + yyv1832 = []CustomMetricCurrentStatus{} + yyc1832 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1832.End() + if yyc1832 { + *v = yyv1832 } } @@ -21223,10 +21997,10 @@ func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutosc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1836 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1837 := &yyv1836 + yy1837.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21236,86 +22010,83 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HorizontalPodAutoscaler{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1838 > 0 { + var yyrr1838, yyrl1838 int + var yyrt1838 bool + if yyl1838 > cap(yyv1838) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 360) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]HorizontalPodAutoscaler, yyrl1) + yyv1838 = make([]HorizontalPodAutoscaler, yyrl1838) } } else { - yyv1 = make([]HorizontalPodAutoscaler, yyrl1) + yyv1838 = make([]HorizontalPodAutoscaler, yyrl1838) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1838 = true + yyrr1838 = len(yyv1838) + if yyrg1838 { + copy(yyv1838, yyv21838) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1838 != len(yyv1838) { + yyv1838 = yyv1838[:yyl1838] + yyc1838 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1838 := 0 + for ; yyj1838 < yyrr1838; yyj1838++ { + yyh1838.ElemContainerState(yyj1838) if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv1838[yyj1838] = HorizontalPodAutoscaler{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1839 := &yyv1838[yyj1838] + yyv1839.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HorizontalPodAutoscaler{}) - yyh1.ElemContainerState(yyj1) + if yyrt1838 { + for ; yyj1838 < yyl1838; yyj1838++ { + yyv1838 = append(yyv1838, HorizontalPodAutoscaler{}) + yyh1838.ElemContainerState(yyj1838) if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv1838[yyj1838] = HorizontalPodAutoscaler{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1840 := &yyv1838[yyj1838] + yyv1840.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1838 := 0 + for ; !r.CheckBreak(); yyj1838++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HorizontalPodAutoscaler{}) // var yyz1 HorizontalPodAutoscaler - yyc1 = true + if yyj1838 >= len(yyv1838) { + yyv1838 = append(yyv1838, HorizontalPodAutoscaler{}) // var yyz1838 HorizontalPodAutoscaler + yyc1838 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1838.ElemContainerState(yyj1838) + if yyj1838 < len(yyv1838) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HorizontalPodAutoscaler{} + yyv1838[yyj1838] = HorizontalPodAutoscaler{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1841 := &yyv1838[yyj1838] + yyv1841.CodecDecodeSelf(d) } } else { @@ -21323,17 +22094,17 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HorizontalPodAutoscaler{} - yyc1 = true + if yyj1838 < len(yyv1838) { + yyv1838 = yyv1838[:yyj1838] + yyc1838 = true + } else if yyj1838 == 0 && yyv1838 == nil { + yyv1838 = []HorizontalPodAutoscaler{} + yyc1838 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1838.End() + if yyc1838 { + *v = yyv1838 } } @@ -21342,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 _, yyv1 := range v { + for _, yyv1842 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1843 := &yyv1842 + yy1843.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21355,86 +22126,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []APIVersion{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1844 > 0 { + var yyrr1844, yyrl1844 int + var yyrt1844 bool + if yyl1844 > cap(yyv1844) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]APIVersion, yyrl1) + yyv1844 = make([]APIVersion, yyrl1844) } } else { - yyv1 = make([]APIVersion, yyrl1) + yyv1844 = make([]APIVersion, yyrl1844) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1844 = true + yyrr1844 = len(yyv1844) + if yyrg1844 { + copy(yyv1844, yyv21844) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1844 != len(yyv1844) { + yyv1844 = yyv1844[:yyl1844] + yyc1844 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1844 := 0 + for ; yyj1844 < yyrr1844; yyj1844++ { + yyh1844.ElemContainerState(yyj1844) if r.TryDecodeAsNil() { - yyv1[yyj1] = APIVersion{} + yyv1844[yyj1844] = APIVersion{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1845 := &yyv1844[yyj1844] + yyv1845.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, APIVersion{}) - yyh1.ElemContainerState(yyj1) + if yyrt1844 { + for ; yyj1844 < yyl1844; yyj1844++ { + yyv1844 = append(yyv1844, APIVersion{}) + yyh1844.ElemContainerState(yyj1844) if r.TryDecodeAsNil() { - yyv1[yyj1] = APIVersion{} + yyv1844[yyj1844] = APIVersion{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1846 := &yyv1844[yyj1844] + yyv1846.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1844 := 0 + for ; !r.CheckBreak(); yyj1844++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, APIVersion{}) // var yyz1 APIVersion - yyc1 = true + if yyj1844 >= len(yyv1844) { + yyv1844 = append(yyv1844, APIVersion{}) // var yyz1844 APIVersion + yyc1844 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1844.ElemContainerState(yyj1844) + if yyj1844 < len(yyv1844) { if r.TryDecodeAsNil() { - yyv1[yyj1] = APIVersion{} + yyv1844[yyj1844] = APIVersion{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1847 := &yyv1844[yyj1844] + yyv1847.CodecDecodeSelf(d) } } else { @@ -21442,17 +22210,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []APIVersion{} - yyc1 = true + if yyj1844 < len(yyv1844) { + yyv1844 = yyv1844[:yyj1844] + yyc1844 = true + } else if yyj1844 == 0 && yyv1844 == nil { + yyv1844 = []APIVersion{} + yyc1844 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1844.End() + if yyc1844 { + *v = yyv1844 } } @@ -21461,10 +22229,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1848 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1849 := &yyv1848 + yy1849.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21474,86 +22242,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ThirdPartyResource{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1850 > 0 { + var yyrr1850, yyrl1850 int + var yyrt1850 bool + if yyl1850 > cap(yyv1850) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ThirdPartyResource, yyrl1) + yyv1850 = make([]ThirdPartyResource, yyrl1850) } } else { - yyv1 = make([]ThirdPartyResource, yyrl1) + yyv1850 = make([]ThirdPartyResource, yyrl1850) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1850 = true + yyrr1850 = len(yyv1850) + if yyrg1850 { + copy(yyv1850, yyv21850) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1850 != len(yyv1850) { + yyv1850 = yyv1850[:yyl1850] + yyc1850 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1850 := 0 + for ; yyj1850 < yyrr1850; yyj1850++ { + yyh1850.ElemContainerState(yyj1850) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResource{} + yyv1850[yyj1850] = ThirdPartyResource{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1851 := &yyv1850[yyj1850] + yyv1851.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ThirdPartyResource{}) - yyh1.ElemContainerState(yyj1) + if yyrt1850 { + for ; yyj1850 < yyl1850; yyj1850++ { + yyv1850 = append(yyv1850, ThirdPartyResource{}) + yyh1850.ElemContainerState(yyj1850) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResource{} + yyv1850[yyj1850] = ThirdPartyResource{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1852 := &yyv1850[yyj1850] + yyv1852.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1850 := 0 + for ; !r.CheckBreak(); yyj1850++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ThirdPartyResource{}) // var yyz1 ThirdPartyResource - yyc1 = true + if yyj1850 >= len(yyv1850) { + yyv1850 = append(yyv1850, ThirdPartyResource{}) // var yyz1850 ThirdPartyResource + yyc1850 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1850.ElemContainerState(yyj1850) + if yyj1850 < len(yyv1850) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResource{} + yyv1850[yyj1850] = ThirdPartyResource{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1853 := &yyv1850[yyj1850] + yyv1853.CodecDecodeSelf(d) } } else { @@ -21561,17 +22326,17 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ThirdPartyResource{} - yyc1 = true + if yyj1850 < len(yyv1850) { + yyv1850 = yyv1850[:yyj1850] + yyc1850 = true + } else if yyj1850 == 0 && yyv1850 == nil { + yyv1850 = []ThirdPartyResource{} + yyc1850 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1850.End() + if yyc1850 { + *v = yyv1850 } } @@ -21580,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 _, yyv1 := range v { + for _, yyv1854 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1855 := &yyv1854 + yy1855.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21593,86 +22358,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Deployment{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1856 > 0 { + var yyrr1856, yyrl1856 int + var yyrt1856 bool + if yyl1856 > cap(yyv1856) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 792) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Deployment, yyrl1) + yyv1856 = make([]Deployment, yyrl1856) } } else { - yyv1 = make([]Deployment, yyrl1) + yyv1856 = make([]Deployment, yyrl1856) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1856 = true + yyrr1856 = len(yyv1856) + if yyrg1856 { + copy(yyv1856, yyv21856) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1856 != len(yyv1856) { + yyv1856 = yyv1856[:yyl1856] + yyc1856 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1856 := 0 + for ; yyj1856 < yyrr1856; yyj1856++ { + yyh1856.ElemContainerState(yyj1856) if r.TryDecodeAsNil() { - yyv1[yyj1] = Deployment{} + yyv1856[yyj1856] = Deployment{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1857 := &yyv1856[yyj1856] + yyv1857.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Deployment{}) - yyh1.ElemContainerState(yyj1) + if yyrt1856 { + for ; yyj1856 < yyl1856; yyj1856++ { + yyv1856 = append(yyv1856, Deployment{}) + yyh1856.ElemContainerState(yyj1856) if r.TryDecodeAsNil() { - yyv1[yyj1] = Deployment{} + yyv1856[yyj1856] = Deployment{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1858 := &yyv1856[yyj1856] + yyv1858.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1856 := 0 + for ; !r.CheckBreak(); yyj1856++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Deployment{}) // var yyz1 Deployment - yyc1 = true + if yyj1856 >= len(yyv1856) { + yyv1856 = append(yyv1856, Deployment{}) // var yyz1856 Deployment + yyc1856 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1856.ElemContainerState(yyj1856) + if yyj1856 < len(yyv1856) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Deployment{} + yyv1856[yyj1856] = Deployment{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1859 := &yyv1856[yyj1856] + yyv1859.CodecDecodeSelf(d) } } else { @@ -21680,17 +22442,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Deployment{} - yyc1 = true + if yyj1856 < len(yyv1856) { + yyv1856 = yyv1856[:yyj1856] + yyc1856 = true + } else if yyj1856 == 0 && yyv1856 == nil { + yyv1856 = []Deployment{} + yyc1856 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1856.End() + if yyc1856 { + *v = yyv1856 } } @@ -21699,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 _, yyv1 := range v { + for _, yyv1860 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1861 := &yyv1860 + yy1861.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21712,86 +22474,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []DaemonSet{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1862 > 0 { + var yyrr1862, yyrl1862 int + var yyrt1862 bool + if yyl1862 > cap(yyv1862) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 720) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]DaemonSet, yyrl1) + yyv1862 = make([]DaemonSet, yyrl1862) } } else { - yyv1 = make([]DaemonSet, yyrl1) + yyv1862 = make([]DaemonSet, yyrl1862) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1862 = true + yyrr1862 = len(yyv1862) + if yyrg1862 { + copy(yyv1862, yyv21862) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1862 != len(yyv1862) { + yyv1862 = yyv1862[:yyl1862] + yyc1862 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1862 := 0 + for ; yyj1862 < yyrr1862; yyj1862++ { + yyh1862.ElemContainerState(yyj1862) if r.TryDecodeAsNil() { - yyv1[yyj1] = DaemonSet{} + yyv1862[yyj1862] = DaemonSet{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1863 := &yyv1862[yyj1862] + yyv1863.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, DaemonSet{}) - yyh1.ElemContainerState(yyj1) + if yyrt1862 { + for ; yyj1862 < yyl1862; yyj1862++ { + yyv1862 = append(yyv1862, DaemonSet{}) + yyh1862.ElemContainerState(yyj1862) if r.TryDecodeAsNil() { - yyv1[yyj1] = DaemonSet{} + yyv1862[yyj1862] = DaemonSet{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1864 := &yyv1862[yyj1862] + yyv1864.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1862 := 0 + for ; !r.CheckBreak(); yyj1862++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, DaemonSet{}) // var yyz1 DaemonSet - yyc1 = true + if yyj1862 >= len(yyv1862) { + yyv1862 = append(yyv1862, DaemonSet{}) // var yyz1862 DaemonSet + yyc1862 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1862.ElemContainerState(yyj1862) + if yyj1862 < len(yyv1862) { if r.TryDecodeAsNil() { - yyv1[yyj1] = DaemonSet{} + yyv1862[yyj1862] = DaemonSet{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1865 := &yyv1862[yyj1862] + yyv1865.CodecDecodeSelf(d) } } else { @@ -21799,17 +22558,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []DaemonSet{} - yyc1 = true + if yyj1862 < len(yyv1862) { + yyv1862 = yyv1862[:yyj1862] + yyc1862 = true + } else if yyj1862 == 0 && yyv1862 == nil { + yyv1862 = []DaemonSet{} + yyc1862 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1862.End() + if yyc1862 { + *v = yyv1862 } } @@ -21818,10 +22577,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1866 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1867 := &yyv1866 + yy1867.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21831,86 +22590,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ThirdPartyResourceData{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1868 > 0 { + var yyrr1868, yyrl1868 int + var yyrt1868 bool + if yyl1868 > cap(yyv1868) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ThirdPartyResourceData, yyrl1) + yyv1868 = make([]ThirdPartyResourceData, yyrl1868) } } else { - yyv1 = make([]ThirdPartyResourceData, yyrl1) + yyv1868 = make([]ThirdPartyResourceData, yyrl1868) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1868 = true + yyrr1868 = len(yyv1868) + if yyrg1868 { + copy(yyv1868, yyv21868) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1868 != len(yyv1868) { + yyv1868 = yyv1868[:yyl1868] + yyc1868 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1868 := 0 + for ; yyj1868 < yyrr1868; yyj1868++ { + yyh1868.ElemContainerState(yyj1868) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResourceData{} + yyv1868[yyj1868] = ThirdPartyResourceData{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1869 := &yyv1868[yyj1868] + yyv1869.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ThirdPartyResourceData{}) - yyh1.ElemContainerState(yyj1) + if yyrt1868 { + for ; yyj1868 < yyl1868; yyj1868++ { + yyv1868 = append(yyv1868, ThirdPartyResourceData{}) + yyh1868.ElemContainerState(yyj1868) if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResourceData{} + yyv1868[yyj1868] = ThirdPartyResourceData{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1870 := &yyv1868[yyj1868] + yyv1870.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1868 := 0 + for ; !r.CheckBreak(); yyj1868++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ThirdPartyResourceData{}) // var yyz1 ThirdPartyResourceData - yyc1 = true + if yyj1868 >= len(yyv1868) { + yyv1868 = append(yyv1868, ThirdPartyResourceData{}) // var yyz1868 ThirdPartyResourceData + yyc1868 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1868.ElemContainerState(yyj1868) + if yyj1868 < len(yyv1868) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ThirdPartyResourceData{} + yyv1868[yyj1868] = ThirdPartyResourceData{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1871 := &yyv1868[yyj1868] + yyv1871.CodecDecodeSelf(d) } } else { @@ -21918,17 +22674,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ThirdPartyResourceData{} - yyc1 = true + if yyj1868 < len(yyv1868) { + yyv1868 = yyv1868[:yyj1868] + yyc1868 = true + } else if yyj1868 == 0 && yyv1868 == nil { + yyv1868 = []ThirdPartyResourceData{} + yyc1868 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1868.End() + if yyc1868 { + *v = yyv1868 } } @@ -21937,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 _, yyv1 := range v { + for _, yyv1872 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1873 := &yyv1872 + yy1873.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21950,86 +22706,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Job{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1874 > 0 { + var yyrr1874, yyrl1874 int + var yyrt1874 bool + if yyl1874 > cap(yyv1874) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 792) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Job, yyrl1) + yyv1874 = make([]Job, yyrl1874) } } else { - yyv1 = make([]Job, yyrl1) + yyv1874 = make([]Job, yyrl1874) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1874 = true + yyrr1874 = len(yyv1874) + if yyrg1874 { + copy(yyv1874, yyv21874) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1874 != len(yyv1874) { + yyv1874 = yyv1874[:yyl1874] + yyc1874 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1874 := 0 + for ; yyj1874 < yyrr1874; yyj1874++ { + yyh1874.ElemContainerState(yyj1874) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv1874[yyj1874] = Job{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1875 := &yyv1874[yyj1874] + yyv1875.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Job{}) - yyh1.ElemContainerState(yyj1) + if yyrt1874 { + for ; yyj1874 < yyl1874; yyj1874++ { + yyv1874 = append(yyv1874, Job{}) + yyh1874.ElemContainerState(yyj1874) if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv1874[yyj1874] = Job{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1876 := &yyv1874[yyj1874] + yyv1876.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1874 := 0 + for ; !r.CheckBreak(); yyj1874++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Job{}) // var yyz1 Job - yyc1 = true + if yyj1874 >= len(yyv1874) { + yyv1874 = append(yyv1874, Job{}) // var yyz1874 Job + yyc1874 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1874.ElemContainerState(yyj1874) + if yyj1874 < len(yyv1874) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Job{} + yyv1874[yyj1874] = Job{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1877 := &yyv1874[yyj1874] + yyv1877.CodecDecodeSelf(d) } } else { @@ -22037,17 +22790,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Job{} - yyc1 = true + if yyj1874 < len(yyv1874) { + yyv1874 = yyv1874[:yyj1874] + yyc1874 = true + } else if yyj1874 == 0 && yyv1874 == nil { + yyv1874 = []Job{} + yyc1874 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1874.End() + if yyc1874 { + *v = yyv1874 } } @@ -22056,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 _, yyv1 := range v { + for _, yyv1878 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1879 := &yyv1878 + yy1879.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22069,86 +22822,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1880 > 0 { + var yyrr1880, yyrl1880 int + var yyrt1880 bool + if yyl1880 > cap(yyv1880) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]JobCondition, yyrl1) + yyv1880 = make([]JobCondition, yyrl1880) } } else { - yyv1 = make([]JobCondition, yyrl1) + yyv1880 = make([]JobCondition, yyrl1880) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1880 = true + yyrr1880 = len(yyv1880) + if yyrg1880 { + copy(yyv1880, yyv21880) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1880 != len(yyv1880) { + yyv1880 = yyv1880[:yyl1880] + yyc1880 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1880 := 0 + for ; yyj1880 < yyrr1880; yyj1880++ { + yyh1880.ElemContainerState(yyj1880) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv1880[yyj1880] = JobCondition{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1881 := &yyv1880[yyj1880] + yyv1881.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, JobCondition{}) - yyh1.ElemContainerState(yyj1) + if yyrt1880 { + for ; yyj1880 < yyl1880; yyj1880++ { + yyv1880 = append(yyv1880, JobCondition{}) + yyh1880.ElemContainerState(yyj1880) if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv1880[yyj1880] = JobCondition{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1882 := &yyv1880[yyj1880] + yyv1882.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1880 := 0 + for ; !r.CheckBreak(); yyj1880++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, JobCondition{}) // var yyz1 JobCondition - yyc1 = true + if yyj1880 >= len(yyv1880) { + yyv1880 = append(yyv1880, JobCondition{}) // var yyz1880 JobCondition + yyc1880 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1880.ElemContainerState(yyj1880) + if yyj1880 < len(yyv1880) { if r.TryDecodeAsNil() { - yyv1[yyj1] = JobCondition{} + yyv1880[yyj1880] = JobCondition{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1883 := &yyv1880[yyj1880] + yyv1883.CodecDecodeSelf(d) } } else { @@ -22156,17 +22906,17 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []JobCondition{} - yyc1 = true + if yyj1880 < len(yyv1880) { + yyv1880 = yyv1880[:yyj1880] + yyc1880 = true + } else if yyj1880 == 0 && yyv1880 == nil { + yyv1880 = []JobCondition{} + yyc1880 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1880.End() + if yyc1880 { + *v = yyv1880 } } @@ -22175,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 _, yyv1 := range v { + for _, yyv1884 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1885 := &yyv1884 + yy1885.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22188,86 +22938,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Ingress{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1886 > 0 { + var yyrr1886, yyrl1886 int + var yyrt1886 bool + if yyl1886 > cap(yyv1886) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 320) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]Ingress, yyrl1) + yyv1886 = make([]Ingress, yyrl1886) } } else { - yyv1 = make([]Ingress, yyrl1) + yyv1886 = make([]Ingress, yyrl1886) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1886 = true + yyrr1886 = len(yyv1886) + if yyrg1886 { + copy(yyv1886, yyv21886) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1886 != len(yyv1886) { + yyv1886 = yyv1886[:yyl1886] + yyc1886 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1886 := 0 + for ; yyj1886 < yyrr1886; yyj1886++ { + yyh1886.ElemContainerState(yyj1886) if r.TryDecodeAsNil() { - yyv1[yyj1] = Ingress{} + yyv1886[yyj1886] = Ingress{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1887 := &yyv1886[yyj1886] + yyv1887.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Ingress{}) - yyh1.ElemContainerState(yyj1) + if yyrt1886 { + for ; yyj1886 < yyl1886; yyj1886++ { + yyv1886 = append(yyv1886, Ingress{}) + yyh1886.ElemContainerState(yyj1886) if r.TryDecodeAsNil() { - yyv1[yyj1] = Ingress{} + yyv1886[yyj1886] = Ingress{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1888 := &yyv1886[yyj1886] + yyv1888.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1886 := 0 + for ; !r.CheckBreak(); yyj1886++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Ingress{}) // var yyz1 Ingress - yyc1 = true + if yyj1886 >= len(yyv1886) { + yyv1886 = append(yyv1886, Ingress{}) // var yyz1886 Ingress + yyc1886 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1886.ElemContainerState(yyj1886) + if yyj1886 < len(yyv1886) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Ingress{} + yyv1886[yyj1886] = Ingress{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1889 := &yyv1886[yyj1886] + yyv1889.CodecDecodeSelf(d) } } else { @@ -22275,17 +23022,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Ingress{} - yyc1 = true + if yyj1886 < len(yyv1886) { + yyv1886 = yyv1886[:yyj1886] + yyc1886 = true + } else if yyj1886 == 0 && yyv1886 == nil { + yyv1886 = []Ingress{} + yyc1886 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1886.End() + if yyc1886 { + *v = yyv1886 } } @@ -22294,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 _, yyv1 := range v { + for _, yyv1890 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1891 := &yyv1890 + yy1891.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22307,86 +23054,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []IngressTLS{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1892 > 0 { + var yyrr1892, yyrl1892 int + var yyrt1892 bool + if yyl1892 > cap(yyv1892) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]IngressTLS, yyrl1) + yyv1892 = make([]IngressTLS, yyrl1892) } } else { - yyv1 = make([]IngressTLS, yyrl1) + yyv1892 = make([]IngressTLS, yyrl1892) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1892 = true + yyrr1892 = len(yyv1892) + if yyrg1892 { + copy(yyv1892, yyv21892) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1892 != len(yyv1892) { + yyv1892 = yyv1892[:yyl1892] + yyc1892 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1892 := 0 + for ; yyj1892 < yyrr1892; yyj1892++ { + yyh1892.ElemContainerState(yyj1892) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressTLS{} + yyv1892[yyj1892] = IngressTLS{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1893 := &yyv1892[yyj1892] + yyv1893.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, IngressTLS{}) - yyh1.ElemContainerState(yyj1) + if yyrt1892 { + for ; yyj1892 < yyl1892; yyj1892++ { + yyv1892 = append(yyv1892, IngressTLS{}) + yyh1892.ElemContainerState(yyj1892) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressTLS{} + yyv1892[yyj1892] = IngressTLS{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1894 := &yyv1892[yyj1892] + yyv1894.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1892 := 0 + for ; !r.CheckBreak(); yyj1892++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, IngressTLS{}) // var yyz1 IngressTLS - yyc1 = true + if yyj1892 >= len(yyv1892) { + yyv1892 = append(yyv1892, IngressTLS{}) // var yyz1892 IngressTLS + yyc1892 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1892.ElemContainerState(yyj1892) + if yyj1892 < len(yyv1892) { if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressTLS{} + yyv1892[yyj1892] = IngressTLS{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1895 := &yyv1892[yyj1892] + yyv1895.CodecDecodeSelf(d) } } else { @@ -22394,17 +23138,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []IngressTLS{} - yyc1 = true + if yyj1892 < len(yyv1892) { + yyv1892 = yyv1892[:yyj1892] + yyc1892 = true + } else if yyj1892 == 0 && yyv1892 == nil { + yyv1892 = []IngressTLS{} + yyc1892 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1892.End() + if yyc1892 { + *v = yyv1892 } } @@ -22413,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 _, yyv1 := range v { + for _, yyv1896 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1897 := &yyv1896 + yy1897.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22426,86 +23170,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []IngressRule{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1898 > 0 { + var yyrr1898, yyrl1898 int + var yyrt1898 bool + if yyl1898 > cap(yyv1898) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]IngressRule, yyrl1) + yyv1898 = make([]IngressRule, yyrl1898) } } else { - yyv1 = make([]IngressRule, yyrl1) + yyv1898 = make([]IngressRule, yyrl1898) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1898 = true + yyrr1898 = len(yyv1898) + if yyrg1898 { + copy(yyv1898, yyv21898) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1898 != len(yyv1898) { + yyv1898 = yyv1898[:yyl1898] + yyc1898 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1898 := 0 + for ; yyj1898 < yyrr1898; yyj1898++ { + yyh1898.ElemContainerState(yyj1898) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressRule{} + yyv1898[yyj1898] = IngressRule{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1899 := &yyv1898[yyj1898] + yyv1899.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, IngressRule{}) - yyh1.ElemContainerState(yyj1) + if yyrt1898 { + for ; yyj1898 < yyl1898; yyj1898++ { + yyv1898 = append(yyv1898, IngressRule{}) + yyh1898.ElemContainerState(yyj1898) if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressRule{} + yyv1898[yyj1898] = IngressRule{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1900 := &yyv1898[yyj1898] + yyv1900.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1898 := 0 + for ; !r.CheckBreak(); yyj1898++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, IngressRule{}) // var yyz1 IngressRule - yyc1 = true + if yyj1898 >= len(yyv1898) { + yyv1898 = append(yyv1898, IngressRule{}) // var yyz1898 IngressRule + yyc1898 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1898.ElemContainerState(yyj1898) + if yyj1898 < len(yyv1898) { if r.TryDecodeAsNil() { - yyv1[yyj1] = IngressRule{} + yyv1898[yyj1898] = IngressRule{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1901 := &yyv1898[yyj1898] + yyv1901.CodecDecodeSelf(d) } } else { @@ -22513,17 +23254,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []IngressRule{} - yyc1 = true + if yyj1898 < len(yyv1898) { + yyv1898 = yyv1898[:yyj1898] + yyc1898 = true + } else if yyj1898 == 0 && yyv1898 == nil { + yyv1898 = []IngressRule{} + yyc1898 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1898.End() + if yyc1898 { + *v = yyv1898 } } @@ -22532,10 +23273,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1902 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1903 := &yyv1902 + yy1903.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22545,86 +23286,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HTTPIngressPath{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1904 > 0 { + var yyrr1904, yyrl1904 int + var yyrt1904 bool + if yyl1904 > cap(yyv1904) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]HTTPIngressPath, yyrl1) + yyv1904 = make([]HTTPIngressPath, yyrl1904) } } else { - yyv1 = make([]HTTPIngressPath, yyrl1) + yyv1904 = make([]HTTPIngressPath, yyrl1904) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1904 = true + yyrr1904 = len(yyv1904) + if yyrg1904 { + copy(yyv1904, yyv21904) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1904 != len(yyv1904) { + yyv1904 = yyv1904[:yyl1904] + yyc1904 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1904 := 0 + for ; yyj1904 < yyrr1904; yyj1904++ { + yyh1904.ElemContainerState(yyj1904) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPIngressPath{} + yyv1904[yyj1904] = HTTPIngressPath{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1905 := &yyv1904[yyj1904] + yyv1905.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HTTPIngressPath{}) - yyh1.ElemContainerState(yyj1) + if yyrt1904 { + for ; yyj1904 < yyl1904; yyj1904++ { + yyv1904 = append(yyv1904, HTTPIngressPath{}) + yyh1904.ElemContainerState(yyj1904) if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPIngressPath{} + yyv1904[yyj1904] = HTTPIngressPath{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1906 := &yyv1904[yyj1904] + yyv1906.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1904 := 0 + for ; !r.CheckBreak(); yyj1904++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HTTPIngressPath{}) // var yyz1 HTTPIngressPath - yyc1 = true + if yyj1904 >= len(yyv1904) { + yyv1904 = append(yyv1904, HTTPIngressPath{}) // var yyz1904 HTTPIngressPath + yyc1904 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1904.ElemContainerState(yyj1904) + if yyj1904 < len(yyv1904) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HTTPIngressPath{} + yyv1904[yyj1904] = HTTPIngressPath{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1907 := &yyv1904[yyj1904] + yyv1907.CodecDecodeSelf(d) } } else { @@ -22632,17 +23370,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HTTPIngressPath{} - yyc1 = true + if yyj1904 < len(yyv1904) { + yyv1904 = yyv1904[:yyj1904] + yyc1904 = true + } else if yyj1904 == 0 && yyv1904 == nil { + yyv1904 = []HTTPIngressPath{} + yyc1904 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1904.End() + if yyc1904 { + *v = yyv1904 } } @@ -22651,10 +23389,10 @@ func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequi z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1908 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1909 := &yyv1908 + yy1909.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22664,86 +23402,83 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []LabelSelectorRequirement{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1910 > 0 { + var yyrr1910, yyrl1910 int + var yyrt1910 bool + if yyl1910 > cap(yyv1910) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]LabelSelectorRequirement, yyrl1) + yyv1910 = make([]LabelSelectorRequirement, yyrl1910) } } else { - yyv1 = make([]LabelSelectorRequirement, yyrl1) + yyv1910 = make([]LabelSelectorRequirement, yyrl1910) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1910 = true + yyrr1910 = len(yyv1910) + if yyrg1910 { + copy(yyv1910, yyv21910) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1910 != len(yyv1910) { + yyv1910 = yyv1910[:yyl1910] + yyc1910 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1910 := 0 + for ; yyj1910 < yyrr1910; yyj1910++ { + yyh1910.ElemContainerState(yyj1910) if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv1910[yyj1910] = LabelSelectorRequirement{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1911 := &yyv1910[yyj1910] + yyv1911.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, LabelSelectorRequirement{}) - yyh1.ElemContainerState(yyj1) + if yyrt1910 { + for ; yyj1910 < yyl1910; yyj1910++ { + yyv1910 = append(yyv1910, LabelSelectorRequirement{}) + yyh1910.ElemContainerState(yyj1910) if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv1910[yyj1910] = LabelSelectorRequirement{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1912 := &yyv1910[yyj1910] + yyv1912.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1910 := 0 + for ; !r.CheckBreak(); yyj1910++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, LabelSelectorRequirement{}) // var yyz1 LabelSelectorRequirement - yyc1 = true + if yyj1910 >= len(yyv1910) { + yyv1910 = append(yyv1910, LabelSelectorRequirement{}) // var yyz1910 LabelSelectorRequirement + yyc1910 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1910.ElemContainerState(yyj1910) + if yyj1910 < len(yyv1910) { if r.TryDecodeAsNil() { - yyv1[yyj1] = LabelSelectorRequirement{} + yyv1910[yyj1910] = LabelSelectorRequirement{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1913 := &yyv1910[yyj1910] + yyv1913.CodecDecodeSelf(d) } } else { @@ -22751,17 +23486,17 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []LabelSelectorRequirement{} - yyc1 = true + if yyj1910 < len(yyv1910) { + yyv1910 = yyv1910[:yyj1910] + yyc1910 = true + } else if yyj1910 == 0 && yyv1910 == nil { + yyv1910 = []LabelSelectorRequirement{} + yyc1910 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1910.End() + if yyc1910 { + *v = yyv1910 } } @@ -22770,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 _, yyv1 := range v { + for _, yyv1914 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1915 := &yyv1914 + yy1915.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22783,86 +23518,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ReplicaSet{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1916 > 0 { + var yyrr1916, yyrl1916 int + var yyrt1916 bool + if yyl1916 > cap(yyv1916) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 728) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]ReplicaSet, yyrl1) + yyv1916 = make([]ReplicaSet, yyrl1916) } } else { - yyv1 = make([]ReplicaSet, yyrl1) + yyv1916 = make([]ReplicaSet, yyrl1916) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1916 = true + yyrr1916 = len(yyv1916) + if yyrg1916 { + copy(yyv1916, yyv21916) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1916 != len(yyv1916) { + yyv1916 = yyv1916[:yyl1916] + yyc1916 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1916 := 0 + for ; yyj1916 < yyrr1916; yyj1916++ { + yyh1916.ElemContainerState(yyj1916) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicaSet{} + yyv1916[yyj1916] = ReplicaSet{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1917 := &yyv1916[yyj1916] + yyv1917.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ReplicaSet{}) - yyh1.ElemContainerState(yyj1) + if yyrt1916 { + for ; yyj1916 < yyl1916; yyj1916++ { + yyv1916 = append(yyv1916, ReplicaSet{}) + yyh1916.ElemContainerState(yyj1916) if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicaSet{} + yyv1916[yyj1916] = ReplicaSet{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1918 := &yyv1916[yyj1916] + yyv1918.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1916 := 0 + for ; !r.CheckBreak(); yyj1916++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ReplicaSet{}) // var yyz1 ReplicaSet - yyc1 = true + if yyj1916 >= len(yyv1916) { + yyv1916 = append(yyv1916, ReplicaSet{}) // var yyz1916 ReplicaSet + yyc1916 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1916.ElemContainerState(yyj1916) + if yyj1916 < len(yyv1916) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ReplicaSet{} + yyv1916[yyj1916] = ReplicaSet{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1919 := &yyv1916[yyj1916] + yyv1919.CodecDecodeSelf(d) } } else { @@ -22870,17 +23602,17 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ReplicaSet{} - yyc1 = true + if yyj1916 < len(yyv1916) { + yyv1916 = yyv1916[:yyj1916] + yyc1916 = true + } else if yyj1916 == 0 && yyv1916 == nil { + yyv1916 = []ReplicaSet{} + yyc1916 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1916.End() + if yyc1916 { + *v = yyv1916 } } @@ -22889,10 +23621,15 @@ func (x codecSelfer1234) encSlicev1_Capability(v []pkg2_v1.Capability, e *codec1 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1920 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yysf2 := &yyv1 - yysf2.CodecEncodeSelf(e) + yym1921 := z.EncBinary() + _ = yym1921 + if false { + } else if z.HasExtensions() && z.EncExt(yyv1920) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyv1920)) + } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22902,78 +23639,75 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []pkg2_v1.Capability{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv1922 := *v + yyh1922, yyl1922 := z.DecSliceHelperStart() + var yyc1922 bool + if yyl1922 == 0 { + if yyv1922 == nil { + yyv1922 = []pkg2_v1.Capability{} + yyc1922 = true + } else if len(yyv1922) != 0 { + yyv1922 = yyv1922[:0] + yyc1922 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1922 > 0 { + var yyrr1922, yyrl1922 int + var yyrt1922 bool + if yyl1922 > cap(yyv1922) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl1922, yyrt1922 = z.DecInferLen(yyl1922, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1922 { + if yyrl1922 <= cap(yyv1922) { + yyv1922 = yyv1922[:yyrl1922] } else { - yyv1 = make([]pkg2_v1.Capability, yyrl1) + yyv1922 = make([]pkg2_v1.Capability, yyrl1922) } } else { - yyv1 = make([]pkg2_v1.Capability, yyrl1) + yyv1922 = make([]pkg2_v1.Capability, yyrl1922) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc1922 = true + yyrr1922 = len(yyv1922) + } else if yyl1922 != len(yyv1922) { + yyv1922 = yyv1922[:yyl1922] + yyc1922 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1922 := 0 + for ; yyj1922 < yyrr1922; yyj1922++ { + yyh1922.ElemContainerState(yyj1922) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1922[yyj1922] = "" } else { - yyv1[yyj1] = pkg2_v1.Capability(r.DecodeString()) + yyv1922[yyj1922] = pkg2_v1.Capability(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt1922 { + for ; yyj1922 < yyl1922; yyj1922++ { + yyv1922 = append(yyv1922, "") + yyh1922.ElemContainerState(yyj1922) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1922[yyj1922] = "" } else { - yyv1[yyj1] = pkg2_v1.Capability(r.DecodeString()) + yyv1922[yyj1922] = pkg2_v1.Capability(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1922 := 0 + for ; !r.CheckBreak(); yyj1922++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 pkg2_v1.Capability - yyc1 = true + if yyj1922 >= len(yyv1922) { + yyv1922 = append(yyv1922, "") // var yyz1922 pkg2_v1.Capability + yyc1922 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1922.ElemContainerState(yyj1922) + if yyj1922 < len(yyv1922) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1922[yyj1922] = "" } else { - yyv1[yyj1] = pkg2_v1.Capability(r.DecodeString()) + yyv1922[yyj1922] = pkg2_v1.Capability(r.DecodeString()) } } else { @@ -22981,17 +23715,17 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []pkg2_v1.Capability{} - yyc1 = true + if yyj1922 < len(yyv1922) { + yyv1922 = yyv1922[:yyj1922] + yyc1922 = true + } else if yyj1922 == 0 && yyv1922 == nil { + yyv1922 = []pkg2_v1.Capability{} + yyc1922 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1922.End() + if yyc1922 { + *v = yyv1922 } } @@ -23000,9 +23734,9 @@ func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1926 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1.CodecEncodeSelf(e) + yyv1926.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23012,78 +23746,75 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []FSType{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1927 > 0 { + var yyrr1927, yyrl1927 int + var yyrt1927 bool + if yyl1927 > cap(yyv1927) { - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrl1927, yyrt1927 = z.DecInferLen(yyl1927, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1927 { + if yyrl1927 <= cap(yyv1927) { + yyv1927 = yyv1927[:yyrl1927] } else { - yyv1 = make([]FSType, yyrl1) + yyv1927 = make([]FSType, yyrl1927) } } else { - yyv1 = make([]FSType, yyrl1) + yyv1927 = make([]FSType, yyrl1927) } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + yyc1927 = true + yyrr1927 = len(yyv1927) + } else if yyl1927 != len(yyv1927) { + yyv1927 = yyv1927[:yyl1927] + yyc1927 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1927 := 0 + for ; yyj1927 < yyrr1927; yyj1927++ { + yyh1927.ElemContainerState(yyj1927) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1927[yyj1927] = "" } else { - yyv1[yyj1] = FSType(r.DecodeString()) + yyv1927[yyj1927] = FSType(r.DecodeString()) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) + if yyrt1927 { + for ; yyj1927 < yyl1927; yyj1927++ { + yyv1927 = append(yyv1927, "") + yyh1927.ElemContainerState(yyj1927) if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1927[yyj1927] = "" } else { - yyv1[yyj1] = FSType(r.DecodeString()) + yyv1927[yyj1927] = FSType(r.DecodeString()) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1927 := 0 + for ; !r.CheckBreak(); yyj1927++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 FSType - yyc1 = true + if yyj1927 >= len(yyv1927) { + yyv1927 = append(yyv1927, "") // var yyz1927 FSType + yyc1927 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1927.ElemContainerState(yyj1927) + if yyj1927 < len(yyv1927) { if r.TryDecodeAsNil() { - yyv1[yyj1] = "" + yyv1927[yyj1927] = "" } else { - yyv1[yyj1] = FSType(r.DecodeString()) + yyv1927[yyj1927] = FSType(r.DecodeString()) } } else { @@ -23091,17 +23822,17 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []FSType{} - yyc1 = true + if yyj1927 < len(yyv1927) { + yyv1927 = yyv1927[:yyj1927] + yyc1927 = true + } else if yyj1927 == 0 && yyv1927 == nil { + yyv1927 = []FSType{} + yyc1927 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1927.End() + if yyc1927 { + *v = yyv1927 } } @@ -23110,10 +23841,10 @@ func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1931 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1932 := &yyv1931 + yy1932.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23123,86 +23854,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []HostPortRange{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1933 > 0 { + var yyrr1933, yyrl1933 int + var yyrt1933 bool + if yyl1933 > cap(yyv1933) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]HostPortRange, yyrl1) + yyv1933 = make([]HostPortRange, yyrl1933) } } else { - yyv1 = make([]HostPortRange, yyrl1) + yyv1933 = make([]HostPortRange, yyrl1933) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1933 = true + yyrr1933 = len(yyv1933) + if yyrg1933 { + copy(yyv1933, yyv21933) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1933 != len(yyv1933) { + yyv1933 = yyv1933[:yyl1933] + yyc1933 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1933 := 0 + for ; yyj1933 < yyrr1933; yyj1933++ { + yyh1933.ElemContainerState(yyj1933) if r.TryDecodeAsNil() { - yyv1[yyj1] = HostPortRange{} + yyv1933[yyj1933] = HostPortRange{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1934 := &yyv1933[yyj1933] + yyv1934.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, HostPortRange{}) - yyh1.ElemContainerState(yyj1) + if yyrt1933 { + for ; yyj1933 < yyl1933; yyj1933++ { + yyv1933 = append(yyv1933, HostPortRange{}) + yyh1933.ElemContainerState(yyj1933) if r.TryDecodeAsNil() { - yyv1[yyj1] = HostPortRange{} + yyv1933[yyj1933] = HostPortRange{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1935 := &yyv1933[yyj1933] + yyv1935.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1933 := 0 + for ; !r.CheckBreak(); yyj1933++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, HostPortRange{}) // var yyz1 HostPortRange - yyc1 = true + if yyj1933 >= len(yyv1933) { + yyv1933 = append(yyv1933, HostPortRange{}) // var yyz1933 HostPortRange + yyc1933 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1933.ElemContainerState(yyj1933) + if yyj1933 < len(yyv1933) { if r.TryDecodeAsNil() { - yyv1[yyj1] = HostPortRange{} + yyv1933[yyj1933] = HostPortRange{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1936 := &yyv1933[yyj1933] + yyv1936.CodecDecodeSelf(d) } } else { @@ -23210,17 +23938,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []HostPortRange{} - yyc1 = true + if yyj1933 < len(yyv1933) { + yyv1933 = yyv1933[:yyj1933] + yyc1933 = true + } else if yyj1933 == 0 && yyv1933 == nil { + yyv1933 = []HostPortRange{} + yyc1933 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1933.End() + if yyc1933 { + *v = yyv1933 } } @@ -23229,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 _, yyv1 := range v { + for _, yyv1937 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1938 := &yyv1937 + yy1938.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23242,86 +23970,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []IDRange{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1939 > 0 { + var yyrr1939, yyrl1939 int + var yyrt1939 bool + if yyl1939 > cap(yyv1939) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]IDRange, yyrl1) + yyv1939 = make([]IDRange, yyrl1939) } } else { - yyv1 = make([]IDRange, yyrl1) + yyv1939 = make([]IDRange, yyrl1939) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1939 = true + yyrr1939 = len(yyv1939) + if yyrg1939 { + copy(yyv1939, yyv21939) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1939 != len(yyv1939) { + yyv1939 = yyv1939[:yyl1939] + yyc1939 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1939 := 0 + for ; yyj1939 < yyrr1939; yyj1939++ { + yyh1939.ElemContainerState(yyj1939) if r.TryDecodeAsNil() { - yyv1[yyj1] = IDRange{} + yyv1939[yyj1939] = IDRange{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1940 := &yyv1939[yyj1939] + yyv1940.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, IDRange{}) - yyh1.ElemContainerState(yyj1) + if yyrt1939 { + for ; yyj1939 < yyl1939; yyj1939++ { + yyv1939 = append(yyv1939, IDRange{}) + yyh1939.ElemContainerState(yyj1939) if r.TryDecodeAsNil() { - yyv1[yyj1] = IDRange{} + yyv1939[yyj1939] = IDRange{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1941 := &yyv1939[yyj1939] + yyv1941.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1939 := 0 + for ; !r.CheckBreak(); yyj1939++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, IDRange{}) // var yyz1 IDRange - yyc1 = true + if yyj1939 >= len(yyv1939) { + yyv1939 = append(yyv1939, IDRange{}) // var yyz1939 IDRange + yyc1939 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1939.ElemContainerState(yyj1939) + if yyj1939 < len(yyv1939) { if r.TryDecodeAsNil() { - yyv1[yyj1] = IDRange{} + yyv1939[yyj1939] = IDRange{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1942 := &yyv1939[yyj1939] + yyv1942.CodecDecodeSelf(d) } } else { @@ -23329,17 +24054,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []IDRange{} - yyc1 = true + if yyj1939 < len(yyv1939) { + yyv1939 = yyv1939[:yyj1939] + yyc1939 = true + } else if yyj1939 == 0 && yyv1939 == nil { + yyv1939 = []IDRange{} + yyc1939 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1939.End() + if yyc1939 { + *v = yyv1939 } } @@ -23348,10 +24073,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1943 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1944 := &yyv1943 + yy1944.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23361,86 +24086,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodSecurityPolicy{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1945 > 0 { + var yyrr1945, yyrl1945 int + var yyrt1945 bool + if yyl1945 > cap(yyv1945) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 536) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodSecurityPolicy, yyrl1) + yyv1945 = make([]PodSecurityPolicy, yyrl1945) } } else { - yyv1 = make([]PodSecurityPolicy, yyrl1) + yyv1945 = make([]PodSecurityPolicy, yyrl1945) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1945 = true + yyrr1945 = len(yyv1945) + if yyrg1945 { + copy(yyv1945, yyv21945) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1945 != len(yyv1945) { + yyv1945 = yyv1945[:yyl1945] + yyc1945 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1945 := 0 + for ; yyj1945 < yyrr1945; yyj1945++ { + yyh1945.ElemContainerState(yyj1945) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodSecurityPolicy{} + yyv1945[yyj1945] = PodSecurityPolicy{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1946 := &yyv1945[yyj1945] + yyv1946.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodSecurityPolicy{}) - yyh1.ElemContainerState(yyj1) + if yyrt1945 { + for ; yyj1945 < yyl1945; yyj1945++ { + yyv1945 = append(yyv1945, PodSecurityPolicy{}) + yyh1945.ElemContainerState(yyj1945) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodSecurityPolicy{} + yyv1945[yyj1945] = PodSecurityPolicy{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1947 := &yyv1945[yyj1945] + yyv1947.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1945 := 0 + for ; !r.CheckBreak(); yyj1945++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodSecurityPolicy{}) // var yyz1 PodSecurityPolicy - yyc1 = true + if yyj1945 >= len(yyv1945) { + yyv1945 = append(yyv1945, PodSecurityPolicy{}) // var yyz1945 PodSecurityPolicy + yyc1945 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1945.ElemContainerState(yyj1945) + if yyj1945 < len(yyv1945) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodSecurityPolicy{} + yyv1945[yyj1945] = PodSecurityPolicy{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1948 := &yyv1945[yyj1945] + yyv1948.CodecDecodeSelf(d) } } else { @@ -23448,17 +24170,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodSecurityPolicy{} - yyc1 = true + if yyj1945 < len(yyv1945) { + yyv1945 = yyv1945[:yyj1945] + yyc1945 = true + } else if yyj1945 == 0 && yyv1945 == nil { + yyv1945 = []PodSecurityPolicy{} + yyc1945 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1945.End() + if yyc1945 { + *v = yyv1945 } } @@ -23467,10 +24189,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1949 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1950 := &yyv1949 + yy1950.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23480,86 +24202,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicyIngressRule{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1951 > 0 { + var yyrr1951, yyrl1951 int + var yyrt1951 bool + if yyl1951 > cap(yyv1951) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NetworkPolicyIngressRule, yyrl1) + yyv1951 = make([]NetworkPolicyIngressRule, yyrl1951) } } else { - yyv1 = make([]NetworkPolicyIngressRule, yyrl1) + yyv1951 = make([]NetworkPolicyIngressRule, yyrl1951) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1951 = true + yyrr1951 = len(yyv1951) + if yyrg1951 { + copy(yyv1951, yyv21951) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1951 != len(yyv1951) { + yyv1951 = yyv1951[:yyl1951] + yyc1951 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1951 := 0 + for ; yyj1951 < yyrr1951; yyj1951++ { + yyh1951.ElemContainerState(yyj1951) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyIngressRule{} + yyv1951[yyj1951] = NetworkPolicyIngressRule{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1952 := &yyv1951[yyj1951] + yyv1952.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicyIngressRule{}) - yyh1.ElemContainerState(yyj1) + if yyrt1951 { + for ; yyj1951 < yyl1951; yyj1951++ { + yyv1951 = append(yyv1951, NetworkPolicyIngressRule{}) + yyh1951.ElemContainerState(yyj1951) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyIngressRule{} + yyv1951[yyj1951] = NetworkPolicyIngressRule{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1953 := &yyv1951[yyj1951] + yyv1953.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1951 := 0 + for ; !r.CheckBreak(); yyj1951++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicyIngressRule{}) // var yyz1 NetworkPolicyIngressRule - yyc1 = true + if yyj1951 >= len(yyv1951) { + yyv1951 = append(yyv1951, NetworkPolicyIngressRule{}) // var yyz1951 NetworkPolicyIngressRule + yyc1951 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1951.ElemContainerState(yyj1951) + if yyj1951 < len(yyv1951) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyIngressRule{} + yyv1951[yyj1951] = NetworkPolicyIngressRule{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1954 := &yyv1951[yyj1951] + yyv1954.CodecDecodeSelf(d) } } else { @@ -23567,17 +24286,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicyIngressRule{} - yyc1 = true + if yyj1951 < len(yyv1951) { + yyv1951 = yyv1951[:yyj1951] + yyc1951 = true + } else if yyj1951 == 0 && yyv1951 == nil { + yyv1951 = []NetworkPolicyIngressRule{} + yyc1951 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1951.End() + if yyc1951 { + *v = yyv1951 } } @@ -23586,10 +24305,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1955 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1956 := &yyv1955 + yy1956.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23599,86 +24318,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicyPort{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1957 > 0 { + var yyrr1957, yyrl1957 int + var yyrt1957 bool + if yyl1957 > cap(yyv1957) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NetworkPolicyPort, yyrl1) + yyv1957 = make([]NetworkPolicyPort, yyrl1957) } } else { - yyv1 = make([]NetworkPolicyPort, yyrl1) + yyv1957 = make([]NetworkPolicyPort, yyrl1957) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1957 = true + yyrr1957 = len(yyv1957) + if yyrg1957 { + copy(yyv1957, yyv21957) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1957 != len(yyv1957) { + yyv1957 = yyv1957[:yyl1957] + yyc1957 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1957 := 0 + for ; yyj1957 < yyrr1957; yyj1957++ { + yyh1957.ElemContainerState(yyj1957) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPort{} + yyv1957[yyj1957] = NetworkPolicyPort{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1958 := &yyv1957[yyj1957] + yyv1958.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicyPort{}) - yyh1.ElemContainerState(yyj1) + if yyrt1957 { + for ; yyj1957 < yyl1957; yyj1957++ { + yyv1957 = append(yyv1957, NetworkPolicyPort{}) + yyh1957.ElemContainerState(yyj1957) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPort{} + yyv1957[yyj1957] = NetworkPolicyPort{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1959 := &yyv1957[yyj1957] + yyv1959.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1957 := 0 + for ; !r.CheckBreak(); yyj1957++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicyPort{}) // var yyz1 NetworkPolicyPort - yyc1 = true + if yyj1957 >= len(yyv1957) { + yyv1957 = append(yyv1957, NetworkPolicyPort{}) // var yyz1957 NetworkPolicyPort + yyc1957 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1957.ElemContainerState(yyj1957) + if yyj1957 < len(yyv1957) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPort{} + yyv1957[yyj1957] = NetworkPolicyPort{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1960 := &yyv1957[yyj1957] + yyv1960.CodecDecodeSelf(d) } } else { @@ -23686,17 +24402,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicyPort{} - yyc1 = true + if yyj1957 < len(yyv1957) { + yyv1957 = yyv1957[:yyj1957] + yyc1957 = true + } else if yyj1957 == 0 && yyv1957 == nil { + yyv1957 = []NetworkPolicyPort{} + yyc1957 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1957.End() + if yyc1957 { + *v = yyv1957 } } @@ -23705,10 +24421,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv1961 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1962 := &yyv1961 + yy1962.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23718,86 +24434,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicyPeer{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1963 > 0 { + var yyrr1963, yyrl1963 int + var yyrt1963 bool + if yyl1963 > cap(yyv1963) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NetworkPolicyPeer, yyrl1) + yyv1963 = make([]NetworkPolicyPeer, yyrl1963) } } else { - yyv1 = make([]NetworkPolicyPeer, yyrl1) + yyv1963 = make([]NetworkPolicyPeer, yyrl1963) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1963 = true + yyrr1963 = len(yyv1963) + if yyrg1963 { + copy(yyv1963, yyv21963) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1963 != len(yyv1963) { + yyv1963 = yyv1963[:yyl1963] + yyc1963 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1963 := 0 + for ; yyj1963 < yyrr1963; yyj1963++ { + yyh1963.ElemContainerState(yyj1963) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPeer{} + yyv1963[yyj1963] = NetworkPolicyPeer{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1964 := &yyv1963[yyj1963] + yyv1964.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicyPeer{}) - yyh1.ElemContainerState(yyj1) + if yyrt1963 { + for ; yyj1963 < yyl1963; yyj1963++ { + yyv1963 = append(yyv1963, NetworkPolicyPeer{}) + yyh1963.ElemContainerState(yyj1963) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPeer{} + yyv1963[yyj1963] = NetworkPolicyPeer{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1965 := &yyv1963[yyj1963] + yyv1965.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1963 := 0 + for ; !r.CheckBreak(); yyj1963++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicyPeer{}) // var yyz1 NetworkPolicyPeer - yyc1 = true + if yyj1963 >= len(yyv1963) { + yyv1963 = append(yyv1963, NetworkPolicyPeer{}) // var yyz1963 NetworkPolicyPeer + yyc1963 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1963.ElemContainerState(yyj1963) + if yyj1963 < len(yyv1963) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicyPeer{} + yyv1963[yyj1963] = NetworkPolicyPeer{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1966 := &yyv1963[yyj1963] + yyv1966.CodecDecodeSelf(d) } } else { @@ -23805,17 +24518,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicyPeer{} - yyc1 = true + if yyj1963 < len(yyv1963) { + yyv1963 = yyv1963[:yyj1963] + yyc1963 = true + } else if yyj1963 == 0 && yyv1963 == nil { + yyv1963 = []NetworkPolicyPeer{} + yyc1963 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1963.End() + if yyc1963 { + *v = yyv1963 } } @@ -23824,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 _, yyv1 := range v { + for _, yyv1967 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy1968 := &yyv1967 + yy1968.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23837,86 +24550,199 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []NetworkPolicy{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1969 > 0 { + var yyrr1969, yyrl1969 int + var yyrt1969 bool + if yyl1969 > cap(yyv1969) { + + 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 { + yyv1969 = make([]NetworkPolicy, yyrl1969) + } + } else { + yyv1969 = make([]NetworkPolicy, yyrl1969) + } + yyc1969 = true + yyrr1969 = len(yyv1969) + if yyrg1969 { + copy(yyv1969, yyv21969) + } + } else if yyl1969 != len(yyv1969) { + yyv1969 = yyv1969[:yyl1969] + yyc1969 = true + } + yyj1969 := 0 + for ; yyj1969 < yyrr1969; yyj1969++ { + yyh1969.ElemContainerState(yyj1969) + if r.TryDecodeAsNil() { + yyv1969[yyj1969] = NetworkPolicy{} + } else { + yyv1970 := &yyv1969[yyj1969] + yyv1970.CodecDecodeSelf(d) + } + + } + if yyrt1969 { + for ; yyj1969 < yyl1969; yyj1969++ { + yyv1969 = append(yyv1969, NetworkPolicy{}) + yyh1969.ElemContainerState(yyj1969) + if r.TryDecodeAsNil() { + yyv1969[yyj1969] = NetworkPolicy{} + } else { + yyv1971 := &yyv1969[yyj1969] + yyv1971.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1969 := 0 + for ; !r.CheckBreak(); yyj1969++ { + + if yyj1969 >= len(yyv1969) { + yyv1969 = append(yyv1969, NetworkPolicy{}) // var yyz1969 NetworkPolicy + yyc1969 = true + } + yyh1969.ElemContainerState(yyj1969) + if yyj1969 < len(yyv1969) { + if r.TryDecodeAsNil() { + yyv1969[yyj1969] = NetworkPolicy{} + } else { + yyv1972 := &yyv1969[yyj1969] + yyv1972.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1969 < len(yyv1969) { + yyv1969 = yyv1969[:yyj1969] + yyc1969 = true + } else if yyj1969 == 0 && yyv1969 == nil { + yyv1969 = []NetworkPolicy{} + yyc1969 = true + } + } + yyh1969.End() + if yyc1969 { + *v = yyv1969 + } +} + +func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1973 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1974 := &yyv1973 + yy1974.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl1975 > 0 { + var yyrr1975, yyrl1975 int + var yyrt1975 bool + if yyl1975 > cap(yyv1975) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]NetworkPolicy, yyrl1) + yyv1975 = make([]StorageClass, yyrl1975) } } else { - yyv1 = make([]NetworkPolicy, yyrl1) + yyv1975 = make([]StorageClass, yyrl1975) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc1975 = true + yyrr1975 = len(yyv1975) + if yyrg1975 { + copy(yyv1975, yyv21975) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl1975 != len(yyv1975) { + yyv1975 = yyv1975[:yyl1975] + yyc1975 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj1975 := 0 + for ; yyj1975 < yyrr1975; yyj1975++ { + yyh1975.ElemContainerState(yyj1975) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicy{} + yyv1975[yyj1975] = StorageClass{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv1976 := &yyv1975[yyj1975] + yyv1976.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, NetworkPolicy{}) - yyh1.ElemContainerState(yyj1) + if yyrt1975 { + for ; yyj1975 < yyl1975; yyj1975++ { + yyv1975 = append(yyv1975, StorageClass{}) + yyh1975.ElemContainerState(yyj1975) if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicy{} + yyv1975[yyj1975] = StorageClass{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv1977 := &yyv1975[yyj1975] + yyv1977.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj1975 := 0 + for ; !r.CheckBreak(); yyj1975++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, NetworkPolicy{}) // var yyz1 NetworkPolicy - yyc1 = true + if yyj1975 >= len(yyv1975) { + yyv1975 = append(yyv1975, StorageClass{}) // var yyz1975 StorageClass + yyc1975 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh1975.ElemContainerState(yyj1975) + if yyj1975 < len(yyv1975) { if r.TryDecodeAsNil() { - yyv1[yyj1] = NetworkPolicy{} + yyv1975[yyj1975] = StorageClass{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv1978 := &yyv1975[yyj1975] + yyv1978.CodecDecodeSelf(d) } } else { @@ -23924,16 +24750,16 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []NetworkPolicy{} - yyc1 = true + if yyj1975 < len(yyv1975) { + yyv1975 = yyv1975[:yyj1975] + yyc1975 = true + } else if yyj1975 == 0 && yyv1975 == nil { + yyv1975 = []StorageClass{} + yyc1975 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh1975.End() + if yyc1975 { + *v = yyv1975 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.go index 55719fdbae..e6aa71a559 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/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"` @@ -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 = "*" ) @@ -1196,3 +1199,36 @@ type NetworkPolicyList struct { // Items is a list of schema objects. Items []NetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` } + +// +genclient=true +// +nonNamespaced=true + +// StorageClass describes the parameters for a class of storage for +// which PersistentVolumes can be dynamically provisioned. +// +// StorageClasses are non-namespaced; the name of the storage class +// according to etcd is in ObjectMeta.Name. +type StorageClass struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Provisioner indicates the type of the provisioner. + Provisioner string `json:"provisioner" protobuf:"bytes,2,opt,name=provisioner"` + + // Parameters holds the parameters for the provisioner that should + // create volumes of this storage class. + Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` +} + +// StorageClassList is a collection of storage classes. +type StorageClassList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is the list of StorageClasses + Items []StorageClass `json:"items" protobuf:"bytes,2,rep,name=items"` +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go index 182ff78c62..11307c32fe 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go @@ -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.", } @@ -674,6 +675,27 @@ func (ScaleStatus) SwaggerDoc() map[string]string { return map_ScaleStatus } +var map_StorageClass = map[string]string{ + "": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "provisioner": "Provisioner indicates the type of the provisioner.", + "parameters": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", +} + +func (StorageClass) SwaggerDoc() map[string]string { + return map_StorageClass +} + +var map_StorageClassList = map[string]string{ + "": "StorageClassList is a collection of storage classes.", + "metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "items": "Items is the list of StorageClasses", +} + +func (StorageClassList) SwaggerDoc() map[string]string { + return map_StorageClassList +} + var map_SubresourceReference = map[string]string{ "": "SubresourceReference contains enough information to let you inspect or modify the referred subresource.", "kind": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/zz_generated.conversion.go similarity index 93% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/zz_generated.conversion.go index 6f4ff538bf..e8f960c76c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/zz_generated.conversion.go @@ -28,10 +28,17 @@ import ( batch "k8s.io/kubernetes/pkg/apis/batch" extensions "k8s.io/kubernetes/pkg/apis/extensions" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v1beta1_APIVersion_To_extensions_APIVersion, Convert_extensions_APIVersion_To_v1beta1_APIVersion, Convert_v1beta1_CustomMetricCurrentStatus_To_extensions_CustomMetricCurrentStatus, @@ -156,6 +163,10 @@ func init() { Convert_extensions_ScaleSpec_To_v1beta1_ScaleSpec, Convert_v1beta1_ScaleStatus_To_extensions_ScaleStatus, Convert_extensions_ScaleStatus_To_v1beta1_ScaleStatus, + Convert_v1beta1_StorageClass_To_extensions_StorageClass, + Convert_extensions_StorageClass_To_v1beta1_StorageClass, + Convert_v1beta1_StorageClassList_To_extensions_StorageClassList, + Convert_extensions_StorageClassList_To_v1beta1_StorageClassList, Convert_v1beta1_SupplementalGroupsStrategyOptions_To_extensions_SupplementalGroupsStrategyOptions, Convert_extensions_SupplementalGroupsStrategyOptions_To_v1beta1_SupplementalGroupsStrategyOptions, Convert_v1beta1_ThirdPartyResource_To_extensions_ThirdPartyResource, @@ -166,10 +177,7 @@ func init() { Convert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResourceDataList, Convert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList, Convert_extensions_ThirdPartyResourceList_To_v1beta1_ThirdPartyResourceList, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1beta1_APIVersion_To_extensions_APIVersion(in *APIVersion, out *extensions.APIVersion, s conversion.Scope) error { @@ -594,6 +602,74 @@ func Convert_extensions_DeploymentRollback_To_v1beta1_DeploymentRollback(in *ext return autoConvert_extensions_DeploymentRollback_To_v1beta1_DeploymentRollback(in, out, s) } +func autoConvert_v1beta1_DeploymentSpec_To_extensions_DeploymentSpec(in *DeploymentSpec, out *extensions.DeploymentSpec, s conversion.Scope) error { + if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(*in, *out, s); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + if err := Convert_v1beta1_DeploymentStrategy_To_extensions_DeploymentStrategy(&in.Strategy, &out.Strategy, s); err != nil { + return err + } + out.MinReadySeconds = in.MinReadySeconds + out.RevisionHistoryLimit = in.RevisionHistoryLimit + out.Paused = in.Paused + if in.RollbackTo != nil { + in, out := &in.RollbackTo, &out.RollbackTo + *out = new(extensions.RollbackConfig) + if err := Convert_v1beta1_RollbackConfig_To_extensions_RollbackConfig(*in, *out, s); err != nil { + return err + } + } else { + out.RollbackTo = nil + } + return nil +} + +func autoConvert_extensions_DeploymentSpec_To_v1beta1_DeploymentSpec(in *extensions.DeploymentSpec, out *DeploymentSpec, s conversion.Scope) error { + if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(*in, *out, s); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + if err := Convert_extensions_DeploymentStrategy_To_v1beta1_DeploymentStrategy(&in.Strategy, &out.Strategy, s); err != nil { + return err + } + out.MinReadySeconds = in.MinReadySeconds + out.RevisionHistoryLimit = in.RevisionHistoryLimit + out.Paused = in.Paused + if in.RollbackTo != nil { + in, out := &in.RollbackTo, &out.RollbackTo + *out = new(RollbackConfig) + if err := Convert_extensions_RollbackConfig_To_v1beta1_RollbackConfig(*in, *out, s); err != nil { + return err + } + } else { + out.RollbackTo = nil + } + return nil +} + func autoConvert_v1beta1_DeploymentStatus_To_extensions_DeploymentStatus(in *DeploymentStatus, out *extensions.DeploymentStatus, s conversion.Scope) error { out.ObservedGeneration = in.ObservedGeneration out.Replicas = in.Replicas @@ -2108,9 +2184,48 @@ func Convert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList(in *extensions. return autoConvert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList(in, out, s) } +func autoConvert_v1beta1_ReplicaSetSpec_To_extensions_ReplicaSetSpec(in *ReplicaSetSpec, out *extensions.ReplicaSetSpec, s conversion.Scope) error { + if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(*in, *out, s); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func autoConvert_extensions_ReplicaSetSpec_To_v1beta1_ReplicaSetSpec(in *extensions.ReplicaSetSpec, out *ReplicaSetSpec, s conversion.Scope) error { + if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(*in, *out, s); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + 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 } @@ -2122,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 } @@ -2308,6 +2424,90 @@ func Convert_extensions_ScaleSpec_To_v1beta1_ScaleSpec(in *extensions.ScaleSpec, return autoConvert_extensions_ScaleSpec_To_v1beta1_ScaleSpec(in, out, s) } +func autoConvert_v1beta1_StorageClass_To_extensions_StorageClass(in *StorageClass, out *extensions.StorageClass, 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 + } + out.Provisioner = in.Provisioner + out.Parameters = in.Parameters + return nil +} + +func Convert_v1beta1_StorageClass_To_extensions_StorageClass(in *StorageClass, out *extensions.StorageClass, s conversion.Scope) error { + return autoConvert_v1beta1_StorageClass_To_extensions_StorageClass(in, out, s) +} + +func autoConvert_extensions_StorageClass_To_v1beta1_StorageClass(in *extensions.StorageClass, out *StorageClass, 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 + } + out.Provisioner = in.Provisioner + out.Parameters = in.Parameters + return nil +} + +func Convert_extensions_StorageClass_To_v1beta1_StorageClass(in *extensions.StorageClass, out *StorageClass, s conversion.Scope) error { + return autoConvert_extensions_StorageClass_To_v1beta1_StorageClass(in, out, s) +} + +func autoConvert_v1beta1_StorageClassList_To_extensions_StorageClassList(in *StorageClassList, out *extensions.StorageClassList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]extensions.StorageClass, len(*in)) + for i := range *in { + if err := Convert_v1beta1_StorageClass_To_extensions_StorageClass(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1beta1_StorageClassList_To_extensions_StorageClassList(in *StorageClassList, out *extensions.StorageClassList, s conversion.Scope) error { + return autoConvert_v1beta1_StorageClassList_To_extensions_StorageClassList(in, out, s) +} + +func autoConvert_extensions_StorageClassList_To_v1beta1_StorageClassList(in *extensions.StorageClassList, out *StorageClassList, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { + return err + } + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]StorageClass, len(*in)) + for i := range *in { + if err := Convert_extensions_StorageClass_To_v1beta1_StorageClass(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_extensions_StorageClassList_To_v1beta1_StorageClassList(in *extensions.StorageClassList, out *StorageClassList, s conversion.Scope) error { + return autoConvert_extensions_StorageClassList_To_v1beta1_StorageClassList(in, out, s) +} + func autoConvert_v1beta1_SupplementalGroupsStrategyOptions_To_extensions_SupplementalGroupsStrategyOptions(in *SupplementalGroupsStrategyOptions, out *extensions.SupplementalGroupsStrategyOptions, s conversion.Scope) error { out.Rule = extensions.SupplementalGroupsStrategyType(in.Rule) if in.Ranges != nil { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..9185262e18 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,1496 @@ +// +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 v1beta1 + +import ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" + intstr "k8s.io/kubernetes/pkg/util/intstr" + 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_v1beta1_APIVersion, InType: reflect.TypeOf(&APIVersion{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CPUTargetUtilization, InType: reflect.TypeOf(&CPUTargetUtilization{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CustomMetricCurrentStatus, InType: reflect.TypeOf(&CustomMetricCurrentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CustomMetricCurrentStatusList, InType: reflect.TypeOf(&CustomMetricCurrentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CustomMetricTarget, InType: reflect.TypeOf(&CustomMetricTarget{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CustomMetricTargetList, InType: reflect.TypeOf(&CustomMetricTargetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DaemonSet, InType: reflect.TypeOf(&DaemonSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DaemonSetList, InType: reflect.TypeOf(&DaemonSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DaemonSetSpec, InType: reflect.TypeOf(&DaemonSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DaemonSetStatus, InType: reflect.TypeOf(&DaemonSetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Deployment, InType: reflect.TypeOf(&Deployment{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DeploymentList, InType: reflect.TypeOf(&DeploymentList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DeploymentRollback, InType: reflect.TypeOf(&DeploymentRollback{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DeploymentSpec, InType: reflect.TypeOf(&DeploymentSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DeploymentStatus, InType: reflect.TypeOf(&DeploymentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_DeploymentStrategy, InType: reflect.TypeOf(&DeploymentStrategy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_FSGroupStrategyOptions, InType: reflect.TypeOf(&FSGroupStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HTTPIngressPath, InType: reflect.TypeOf(&HTTPIngressPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HTTPIngressRuleValue, InType: reflect.TypeOf(&HTTPIngressRuleValue{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HorizontalPodAutoscaler, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HorizontalPodAutoscalerList, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HorizontalPodAutoscalerSpec, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HorizontalPodAutoscalerStatus, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_HostPortRange, InType: reflect.TypeOf(&HostPortRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IDRange, InType: reflect.TypeOf(&IDRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Ingress, InType: reflect.TypeOf(&Ingress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressBackend, InType: reflect.TypeOf(&IngressBackend{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressList, InType: reflect.TypeOf(&IngressList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressRule, InType: reflect.TypeOf(&IngressRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressRuleValue, InType: reflect.TypeOf(&IngressRuleValue{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressSpec, InType: reflect.TypeOf(&IngressSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressStatus, InType: reflect.TypeOf(&IngressStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressTLS, InType: reflect.TypeOf(&IngressTLS{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Job, InType: reflect.TypeOf(&Job{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobList, InType: reflect.TypeOf(&JobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_LabelSelector, InType: reflect.TypeOf(&LabelSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_LabelSelectorRequirement, InType: reflect.TypeOf(&LabelSelectorRequirement{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ListOptions, InType: reflect.TypeOf(&ListOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyPeer, InType: reflect.TypeOf(&NetworkPolicyPeer{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyPort, InType: reflect.TypeOf(&NetworkPolicyPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicySpec, InType: reflect.TypeOf(&NetworkPolicySpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodSecurityPolicy, InType: reflect.TypeOf(&PodSecurityPolicy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodSecurityPolicyList, InType: reflect.TypeOf(&PodSecurityPolicyList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodSecurityPolicySpec, InType: reflect.TypeOf(&PodSecurityPolicySpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ReplicaSet, InType: reflect.TypeOf(&ReplicaSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ReplicaSetList, InType: reflect.TypeOf(&ReplicaSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ReplicaSetSpec, InType: reflect.TypeOf(&ReplicaSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ReplicaSetStatus, InType: reflect.TypeOf(&ReplicaSetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ReplicationControllerDummy, InType: reflect.TypeOf(&ReplicationControllerDummy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_RollbackConfig, InType: reflect.TypeOf(&RollbackConfig{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_RollingUpdateDeployment, InType: reflect.TypeOf(&RollingUpdateDeployment{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_RunAsUserStrategyOptions, InType: reflect.TypeOf(&RunAsUserStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SELinuxStrategyOptions, InType: reflect.TypeOf(&SELinuxStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Scale, InType: reflect.TypeOf(&Scale{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_StorageClass, InType: reflect.TypeOf(&StorageClass{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_StorageClassList, InType: reflect.TypeOf(&StorageClassList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SubresourceReference, InType: reflect.TypeOf(&SubresourceReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_SupplementalGroupsStrategyOptions, InType: reflect.TypeOf(&SupplementalGroupsStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ThirdPartyResource, InType: reflect.TypeOf(&ThirdPartyResource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ThirdPartyResourceData, InType: reflect.TypeOf(&ThirdPartyResourceData{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ThirdPartyResourceDataList, InType: reflect.TypeOf(&ThirdPartyResourceDataList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ThirdPartyResourceList, InType: reflect.TypeOf(&ThirdPartyResourceList{})}, + ) +} + +func DeepCopy_v1beta1_APIVersion(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIVersion) + out := out.(*APIVersion) + out.Name = in.Name + return nil + } +} + +func DeepCopy_v1beta1_CPUTargetUtilization(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CPUTargetUtilization) + out := out.(*CPUTargetUtilization) + out.TargetPercentage = in.TargetPercentage + return nil + } +} + +func DeepCopy_v1beta1_CustomMetricCurrentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricCurrentStatus) + out := out.(*CustomMetricCurrentStatus) + out.Name = in.Name + out.CurrentValue = in.CurrentValue.DeepCopy() + return nil + } +} + +func DeepCopy_v1beta1_CustomMetricCurrentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricCurrentStatusList) + out := out.(*CustomMetricCurrentStatusList) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomMetricCurrentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_CustomMetricCurrentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_CustomMetricTarget(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricTarget) + out := out.(*CustomMetricTarget) + out.Name = in.Name + out.TargetValue = in.TargetValue.DeepCopy() + return nil + } +} + +func DeepCopy_v1beta1_CustomMetricTargetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricTargetList) + out := out.(*CustomMetricTargetList) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomMetricTarget, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_CustomMetricTarget(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_DaemonSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSet) + out := out.(*DaemonSet) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1beta1_DaemonSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetList) + out := out.(*DaemonSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DaemonSet, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_DaemonSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_DaemonSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetSpec) + out := out.(*DaemonSetSpec) + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_DaemonSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetStatus) + out := out.(*DaemonSetStatus) + out.CurrentNumberScheduled = in.CurrentNumberScheduled + out.NumberMisscheduled = in.NumberMisscheduled + out.DesiredNumberScheduled = in.DesiredNumberScheduled + return nil + } +} + +func DeepCopy_v1beta1_Deployment(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Deployment) + out := out.(*Deployment) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1beta1_DeploymentList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentList) + out := out.(*DeploymentList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Deployment, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_Deployment(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_DeploymentRollback(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentRollback) + out := out.(*DeploymentRollback) + out.TypeMeta = in.TypeMeta + out.Name = in.Name + if in.UpdatedAnnotations != nil { + in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.UpdatedAnnotations = nil + } + out.RollbackTo = in.RollbackTo + return nil + } +} + +func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentSpec) + out := out.(*DeploymentSpec) + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } else { + out.Replicas = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { + return err + } + out.MinReadySeconds = in.MinReadySeconds + if in.RevisionHistoryLimit != nil { + in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit + *out = new(int32) + **out = **in + } else { + out.RevisionHistoryLimit = nil + } + out.Paused = in.Paused + if in.RollbackTo != nil { + in, out := &in.RollbackTo, &out.RollbackTo + *out = new(RollbackConfig) + **out = **in + } else { + out.RollbackTo = nil + } + return nil + } +} + +func DeepCopy_v1beta1_DeploymentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentStatus) + out := out.(*DeploymentStatus) + out.ObservedGeneration = in.ObservedGeneration + out.Replicas = in.Replicas + out.UpdatedReplicas = in.UpdatedReplicas + out.AvailableReplicas = in.AvailableReplicas + out.UnavailableReplicas = in.UnavailableReplicas + return nil + } +} + +func DeepCopy_v1beta1_DeploymentStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentStrategy) + out := out.(*DeploymentStrategy) + out.Type = in.Type + if in.RollingUpdate != nil { + in, out := &in.RollingUpdate, &out.RollingUpdate + *out = new(RollingUpdateDeployment) + if err := DeepCopy_v1beta1_RollingUpdateDeployment(*in, *out, c); err != nil { + return err + } + } else { + out.RollingUpdate = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_v1beta1_FSGroupStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FSGroupStrategyOptions) + out := out.(*FSGroupStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_v1beta1_HTTPIngressPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPIngressPath) + out := out.(*HTTPIngressPath) + out.Path = in.Path + out.Backend = in.Backend + return nil + } +} + +func DeepCopy_v1beta1_HTTPIngressRuleValue(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPIngressRuleValue) + out := out.(*HTTPIngressRuleValue) + if in.Paths != nil { + in, out := &in.Paths, &out.Paths + *out = make([]HTTPIngressPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Paths = nil + } + return nil + } +} + +func DeepCopy_v1beta1_HorizontalPodAutoscaler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscaler) + out := out.(*HorizontalPodAutoscaler) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_HorizontalPodAutoscalerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerList) + out := out.(*HorizontalPodAutoscalerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HorizontalPodAutoscaler, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerSpec) + out := out.(*HorizontalPodAutoscalerSpec) + out.ScaleRef = in.ScaleRef + if in.MinReplicas != nil { + in, out := &in.MinReplicas, &out.MinReplicas + *out = new(int32) + **out = **in + } else { + out.MinReplicas = nil + } + out.MaxReplicas = in.MaxReplicas + if in.CPUUtilization != nil { + in, out := &in.CPUUtilization, &out.CPUUtilization + *out = new(CPUTargetUtilization) + **out = **in + } else { + out.CPUUtilization = nil + } + return nil + } +} + +func DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerStatus) + out := out.(*HorizontalPodAutoscalerStatus) + if in.ObservedGeneration != nil { + in, out := &in.ObservedGeneration, &out.ObservedGeneration + *out = new(int64) + **out = **in + } else { + out.ObservedGeneration = nil + } + if in.LastScaleTime != nil { + in, out := &in.LastScaleTime, &out.LastScaleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScaleTime = nil + } + out.CurrentReplicas = in.CurrentReplicas + out.DesiredReplicas = in.DesiredReplicas + if in.CurrentCPUUtilizationPercentage != nil { + in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.CurrentCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_v1beta1_HostPortRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPortRange) + out := out.(*HostPortRange) + out.Min = in.Min + out.Max = in.Max + return nil + } +} + +func DeepCopy_v1beta1_IDRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IDRange) + out := out.(*IDRange) + out.Min = in.Min + out.Max = in.Max + return nil + } +} + +func DeepCopy_v1beta1_Ingress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Ingress) + out := out.(*Ingress) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_IngressSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_IngressStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_IngressBackend(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressBackend) + out := out.(*IngressBackend) + out.ServiceName = in.ServiceName + out.ServicePort = in.ServicePort + return nil + } +} + +func DeepCopy_v1beta1_IngressList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressList) + out := out.(*IngressList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Ingress, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_Ingress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_IngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressRule) + out := out.(*IngressRule) + out.Host = in.Host + if err := DeepCopy_v1beta1_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_IngressRuleValue(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressRuleValue) + out := out.(*IngressRuleValue) + if in.HTTP != nil { + in, out := &in.HTTP, &out.HTTP + *out = new(HTTPIngressRuleValue) + if err := DeepCopy_v1beta1_HTTPIngressRuleValue(*in, *out, c); err != nil { + return err + } + } else { + out.HTTP = nil + } + return nil + } +} + +func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressSpec) + out := out.(*IngressSpec) + if in.Backend != nil { + in, out := &in.Backend, &out.Backend + *out = new(IngressBackend) + **out = **in + } else { + out.Backend = nil + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = make([]IngressTLS, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_IngressTLS(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.TLS = nil + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]IngressRule, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_IngressRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_v1beta1_IngressStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressStatus) + out := out.(*IngressStatus) + if err := v1.DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_IngressTLS(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressTLS) + out := out.(*IngressTLS) + if in.Hosts != nil { + in, out := &in.Hosts, &out.Hosts + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Hosts = nil + } + out.SecretName = in.SecretName + return nil + } +} + +func DeepCopy_v1beta1_Job(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Job) + out := out.(*Job) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_JobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobCondition) + out := out.(*JobCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1beta1_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobList) + out := out.(*JobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Job, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_Job(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobSpec) + out := out.(*JobSpec) + if in.Parallelism != nil { + in, out := &in.Parallelism, &out.Parallelism + *out = new(int32) + **out = **in + } else { + out.Parallelism = nil + } + if in.Completions != nil { + in, out := &in.Completions, &out.Completions + *out = new(int32) + **out = **in + } else { + out.Completions = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if in.AutoSelector != nil { + in, out := &in.AutoSelector, &out.AutoSelector + *out = new(bool) + **out = **in + } else { + out.AutoSelector = nil + } + if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobStatus) + out := out.(*JobStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]JobCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.CompletionTime != nil { + in, out := &in.CompletionTime, &out.CompletionTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.CompletionTime = nil + } + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil + } +} + +func DeepCopy_v1beta1_LabelSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelector) + out := out.(*LabelSelector) + if in.MatchLabels != nil { + in, out := &in.MatchLabels, &out.MatchLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.MatchLabels = nil + } + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]LabelSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_LabelSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_v1beta1_LabelSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelectorRequirement) + out := out.(*LabelSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ListOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListOptions) + out := out.(*ListOptions) + out.TypeMeta = in.TypeMeta + out.LabelSelector = in.LabelSelector + out.FieldSelector = in.FieldSelector + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + if in.TimeoutSeconds != nil { + in, out := &in.TimeoutSeconds, &out.TimeoutSeconds + *out = new(int64) + **out = **in + } else { + out.TimeoutSeconds = nil + } + return nil + } +} + +func DeepCopy_v1beta1_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicy) + out := out.(*NetworkPolicy) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyIngressRule) + out := out.(*NetworkPolicyIngressRule) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]NetworkPolicyPort, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_NetworkPolicyPort(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Ports = nil + } + if in.From != nil { + in, out := &in.From, &out.From + *out = make([]NetworkPolicyPeer, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_NetworkPolicyPeer(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.From = nil + } + return nil + } +} + +func DeepCopy_v1beta1_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyList) + out := out.(*NetworkPolicyList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NetworkPolicy, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_NetworkPolicy(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyPeer) + out := out.(*NetworkPolicyPeer) + if in.PodSelector != nil { + in, out := &in.PodSelector, &out.PodSelector + *out = new(LabelSelector) + if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.PodSelector = nil + } + if in.NamespaceSelector != nil { + in, out := &in.NamespaceSelector, &out.NamespaceSelector + *out = new(LabelSelector) + if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.NamespaceSelector = nil + } + return nil + } +} + +func DeepCopy_v1beta1_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyPort) + out := out.(*NetworkPolicyPort) + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol + *out = new(v1.Protocol) + **out = **in + } else { + out.Protocol = nil + } + if in.Port != nil { + in, out := &in.Port, &out.Port + *out = new(intstr.IntOrString) + **out = **in + } else { + out.Port = nil + } + return nil + } +} + +func DeepCopy_v1beta1_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicySpec) + out := out.(*NetworkPolicySpec) + if err := DeepCopy_v1beta1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { + return err + } + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]NetworkPolicyIngressRule, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_v1beta1_PodSecurityPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicy) + out := out.(*PodSecurityPolicy) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_PodSecurityPolicySpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_PodSecurityPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicyList) + out := out.(*PodSecurityPolicyList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodSecurityPolicy, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_PodSecurityPolicy(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicySpec) + out := out.(*PodSecurityPolicySpec) + out.Privileged = in.Privileged + if in.DefaultAddCapabilities != nil { + in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities + *out = make([]v1.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.DefaultAddCapabilities = nil + } + if in.RequiredDropCapabilities != nil { + in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities + *out = make([]v1.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.RequiredDropCapabilities = nil + } + if in.AllowedCapabilities != nil { + in, out := &in.AllowedCapabilities, &out.AllowedCapabilities + *out = make([]v1.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AllowedCapabilities = nil + } + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]FSType, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Volumes = nil + } + out.HostNetwork = in.HostNetwork + if in.HostPorts != nil { + in, out := &in.HostPorts, &out.HostPorts + *out = make([]HostPortRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HostPorts = nil + } + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if err := DeepCopy_v1beta1_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_RunAsUserStrategyOptions(&in.RunAsUser, &out.RunAsUser, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_SupplementalGroupsStrategyOptions(&in.SupplementalGroups, &out.SupplementalGroups, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { + return err + } + out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem + return nil + } +} + +func DeepCopy_v1beta1_ReplicaSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSet) + out := out.(*ReplicaSet) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1beta1_ReplicaSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetList) + out := out.(*ReplicaSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicaSet, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_ReplicaSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ReplicaSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetSpec) + out := out.(*ReplicaSetSpec) + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } else { + out.Replicas = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(LabelSelector) + if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetStatus) + out := out.(*ReplicaSetStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_v1beta1_ReplicationControllerDummy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerDummy) + out := out.(*ReplicationControllerDummy) + out.TypeMeta = in.TypeMeta + return nil + } +} + +func DeepCopy_v1beta1_RollbackConfig(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RollbackConfig) + out := out.(*RollbackConfig) + out.Revision = in.Revision + return nil + } +} + +func DeepCopy_v1beta1_RollingUpdateDeployment(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RollingUpdateDeployment) + out := out.(*RollingUpdateDeployment) + if in.MaxUnavailable != nil { + in, out := &in.MaxUnavailable, &out.MaxUnavailable + *out = new(intstr.IntOrString) + **out = **in + } else { + out.MaxUnavailable = nil + } + if in.MaxSurge != nil { + in, out := &in.MaxSurge, &out.MaxSurge + *out = new(intstr.IntOrString) + **out = **in + } else { + out.MaxSurge = nil + } + return nil + } +} + +func DeepCopy_v1beta1_RunAsUserStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RunAsUserStrategyOptions) + out := out.(*RunAsUserStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_v1beta1_SELinuxStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxStrategyOptions) + out := out.(*SELinuxStrategyOptions) + out.Rule = in.Rule + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(v1.SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + return nil + } +} + +func DeepCopy_v1beta1_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Scale) + out := out.(*Scale) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_v1beta1_ScaleStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleSpec) + out := out.(*ScaleSpec) + out.Replicas = in.Replicas + return nil + } +} + +func DeepCopy_v1beta1_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleStatus) + out := out.(*ScaleStatus) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + out.TargetSelector = in.TargetSelector + return nil + } +} + +func DeepCopy_v1beta1_StorageClass(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StorageClass) + out := out.(*StorageClass) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Provisioner = in.Provisioner + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Parameters = nil + } + return nil + } +} + +func DeepCopy_v1beta1_StorageClassList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StorageClassList) + out := out.(*StorageClassList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]StorageClass, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_StorageClass(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_SubresourceReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SubresourceReference) + out := out.(*SubresourceReference) + out.Kind = in.Kind + out.Name = in.Name + out.APIVersion = in.APIVersion + out.Subresource = in.Subresource + return nil + } +} + +func DeepCopy_v1beta1_SupplementalGroupsStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SupplementalGroupsStrategyOptions) + out := out.(*SupplementalGroupsStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ThirdPartyResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResource) + out := out.(*ThirdPartyResource) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Description = in.Description + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]APIVersion, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Versions = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ThirdPartyResourceData(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceData) + out := out.(*ThirdPartyResourceData) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ThirdPartyResourceDataList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceDataList) + out := out.(*ThirdPartyResourceDataList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ThirdPartyResourceData, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_ThirdPartyResourceData(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1beta1_ThirdPartyResourceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceList) + out := out.(*ThirdPartyResourceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ThirdPartyResource, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_ThirdPartyResource(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/validation/validation.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/validation/validation.go index c13d747c8d..bb2526d667 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/validation/validation.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/validation/validation.go @@ -30,6 +30,7 @@ import ( apivalidation "k8s.io/kubernetes/pkg/api/validation" "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/labels" + "k8s.io/kubernetes/pkg/security/apparmor" psputil "k8s.io/kubernetes/pkg/security/podsecuritypolicy/util" "k8s.io/kubernetes/pkg/util/intstr" "k8s.io/kubernetes/pkg/util/sets" @@ -323,6 +324,20 @@ func validateIngressTLS(spec *extensions.IngressSpec, fldPath *field.Path) field allErrs := field.ErrorList{} // TODO: Perform a more thorough validation of spec.TLS.Hosts that takes // the wildcard spec from RFC 6125 into account. + for _, itls := range spec.TLS { + for i, host := range itls.Hosts { + if strings.Contains(host, "*") { + for _, msg := range validation.IsWildcardDNS1123Subdomain(host) { + allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("hosts"), host, msg)) + } + continue + } + for _, msg := range validation.IsDNS1123Subdomain(host) { + allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("hosts"), host, msg)) + } + } + } + return allErrs } @@ -358,21 +373,27 @@ func ValidateIngressStatusUpdate(ingress, oldIngress *extensions.Ingress) field. return allErrs } -func validateIngressRules(IngressRules []extensions.IngressRule, fldPath *field.Path) field.ErrorList { +func validateIngressRules(ingressRules []extensions.IngressRule, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} - if len(IngressRules) == 0 { + if len(ingressRules) == 0 { return append(allErrs, field.Required(fldPath, "")) } - for i, ih := range IngressRules { + for i, ih := range ingressRules { if len(ih.Host) > 0 { + if isIP := (net.ParseIP(ih.Host) != nil); isIP { + allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("host"), ih.Host, "must be a DNS name, not an IP address")) + } // TODO: Ports and ips are allowed in the host part of a url // according to RFC 3986, consider allowing them. + if strings.Contains(ih.Host, "*") { + for _, msg := range validation.IsWildcardDNS1123Subdomain(ih.Host) { + allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("host"), ih.Host, msg)) + } + continue + } for _, msg := range validation.IsDNS1123Subdomain(ih.Host) { allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("host"), ih.Host, msg)) } - if isIP := (net.ParseIP(ih.Host) != nil); isIP { - allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("host"), ih.Host, "must be a DNS name, not an IP address")) - } } allErrs = append(allErrs, validateIngressRuleValue(&ih.IngressRuleValue, fldPath.Index(0))...) } @@ -532,6 +553,7 @@ var ValidatePodSecurityPolicyName = apivalidation.NameIsDNSSubdomain func ValidatePodSecurityPolicy(psp *extensions.PodSecurityPolicy) field.ErrorList { allErrs := field.ErrorList{} allErrs = append(allErrs, apivalidation.ValidateObjectMeta(&psp.ObjectMeta, false, ValidatePodSecurityPolicyName, field.NewPath("metadata"))...) + allErrs = append(allErrs, ValidatePodSecurityPolicySpecificAnnotations(psp.Annotations, field.NewPath("metadata").Child("annotations"))...) allErrs = append(allErrs, ValidatePodSecurityPolicySpec(&psp.Spec, field.NewPath("spec"))...) return allErrs } @@ -550,6 +572,34 @@ func ValidatePodSecurityPolicySpec(spec *extensions.PodSecurityPolicySpec, fldPa return allErrs } +func ValidatePodSecurityPolicySpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if p := annotations[apparmor.DefaultProfileAnnotationKey]; p != "" { + if err := apparmor.ValidateProfileFormat(p); err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Key(apparmor.DefaultProfileAnnotationKey), p, err.Error())) + } + } + if allowed := annotations[apparmor.AllowedProfilesAnnotationKey]; allowed != "" { + for _, p := range strings.Split(allowed, ",") { + if err := apparmor.ValidateProfileFormat(p); err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Key(apparmor.AllowedProfilesAnnotationKey), allowed, err.Error())) + } + } + } + + sysctlAnnotation := annotations[extensions.SysctlsPodSecurityPolicyAnnotationKey] + sysctlFldPath := fldPath.Key(extensions.SysctlsPodSecurityPolicyAnnotationKey) + sysctls, err := extensions.SysctlsFromPodSecurityPolicyAnnotation(sysctlAnnotation) + if err != nil { + allErrs = append(allErrs, field.Invalid(sysctlFldPath, sysctlAnnotation, err.Error())) + } else { + allErrs = append(allErrs, validatePodSecurityPolicySysctls(sysctlFldPath, sysctls)...) + } + + return allErrs +} + // validatePSPSELinux validates the SELinux fields of PodSecurityPolicy. func validatePSPSELinux(fldPath *field.Path, seLinux *extensions.SELinuxStrategyOptions) field.ErrorList { allErrs := field.ErrorList{} @@ -635,6 +685,36 @@ func validatePodSecurityPolicyVolumes(fldPath *field.Path, volumes []extensions. return allErrs } +const sysctlPatternSegmentFmt string = "([a-z0-9][-_a-z0-9]*)?[a-z0-9*]" +const SysctlPatternFmt string = "(" + apivalidation.SysctlSegmentFmt + "\\.)*" + sysctlPatternSegmentFmt + +var sysctlPatternRegexp = regexp.MustCompile("^" + SysctlPatternFmt + "$") + +func IsValidSysctlPattern(name string) bool { + if len(name) > apivalidation.SysctlMaxLength { + return false + } + return sysctlPatternRegexp.MatchString(name) +} + +// validatePodSecurityPolicySysctls validates the sysctls fields of PodSecurityPolicy. +func validatePodSecurityPolicySysctls(fldPath *field.Path, sysctls []string) field.ErrorList { + allErrs := field.ErrorList{} + for i, s := range sysctls { + if !IsValidSysctlPattern(string(s)) { + allErrs = append( + allErrs, + field.Invalid(fldPath.Index(i), sysctls[i], fmt.Sprintf("must have at most %d characters and match regex %s", + apivalidation.SysctlMaxLength, + SysctlPatternFmt, + )), + ) + } + } + + return allErrs +} + // validateIDRanges ensures the range is valid. func validateIDRanges(fldPath *field.Path, rng extensions.IDRange) field.ErrorList { allErrs := field.ErrorList{} @@ -741,3 +821,65 @@ func ValidateNetworkPolicyUpdate(update, old *extensions.NetworkPolicy) field.Er } return allErrs } + +// ValidateStorageClass validates a StorageClass. +func ValidateStorageClass(storageClass *extensions.StorageClass) field.ErrorList { + allErrs := apivalidation.ValidateObjectMeta(&storageClass.ObjectMeta, false, apivalidation.NameIsDNSSubdomain, field.NewPath("metadata")) + allErrs = append(allErrs, validateProvisioner(storageClass.Provisioner, field.NewPath("provisioner"))...) + allErrs = append(allErrs, validateParameters(storageClass.Parameters, field.NewPath("parameters"))...) + + return allErrs +} + +// ValidateStorageClassUpdate tests if an update to StorageClass is valid. +func ValidateStorageClassUpdate(storageClass, oldStorageClass *extensions.StorageClass) field.ErrorList { + allErrs := apivalidation.ValidateObjectMetaUpdate(&storageClass.ObjectMeta, &oldStorageClass.ObjectMeta, field.NewPath("metadata")) + if !reflect.DeepEqual(oldStorageClass.Parameters, storageClass.Parameters) { + allErrs = append(allErrs, field.Forbidden(field.NewPath("parameters"), "updates to parameters are forbidden.")) + } + + if strings.Compare(storageClass.Provisioner, oldStorageClass.Provisioner) != 0 { + allErrs = append(allErrs, field.Forbidden(field.NewPath("provisioner"), "updates to provisioner are forbidden.")) + } + return allErrs +} + +// validateProvisioner tests if provisioner is a valid qualified name. +func validateProvisioner(provisioner string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(provisioner) == 0 { + allErrs = append(allErrs, field.Required(fldPath, provisioner)) + } + if len(provisioner) > 0 { + for _, msg := range validation.IsQualifiedName(strings.ToLower(provisioner)) { + allErrs = append(allErrs, field.Invalid(fldPath, provisioner, msg)) + } + } + return allErrs +} + +const maxProvisionerParameterSize = 256 * (1 << 10) // 256 kB +const maxProvisionerParameterLen = 512 + +// validateParameters tests that keys are qualified names and that provisionerParameter are < 256kB. +func validateParameters(params map[string]string, fldPath *field.Path) field.ErrorList { + var totalSize int64 + allErrs := field.ErrorList{} + + if len(params) > maxProvisionerParameterLen { + allErrs = append(allErrs, field.TooLong(fldPath, "Provisioner Parameters exceeded max allowed", maxProvisionerParameterLen)) + return allErrs + } + + for k, v := range params { + if len(k) < 1 { + allErrs = append(allErrs, field.Invalid(fldPath, k, "field can not be empty.")) + } + totalSize += (int64)(len(k)) + (int64)(len(v)) + } + + if totalSize > maxProvisionerParameterSize { + allErrs = append(allErrs, field.TooLong(fldPath, "", maxProvisionerParameterSize)) + } + return allErrs +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/zz_generated.deepcopy.go new file mode 100644 index 0000000000..151c2c0f7b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/extensions/zz_generated.deepcopy.go @@ -0,0 +1,1126 @@ +// +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 extensions + +import ( + api "k8s.io/kubernetes/pkg/api" + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" + intstr "k8s.io/kubernetes/pkg/util/intstr" + 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_extensions_APIVersion, InType: reflect.TypeOf(&APIVersion{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricCurrentStatus, InType: reflect.TypeOf(&CustomMetricCurrentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricCurrentStatusList, InType: reflect.TypeOf(&CustomMetricCurrentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricTarget, InType: reflect.TypeOf(&CustomMetricTarget{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricTargetList, InType: reflect.TypeOf(&CustomMetricTargetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSet, InType: reflect.TypeOf(&DaemonSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSetList, InType: reflect.TypeOf(&DaemonSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSetSpec, InType: reflect.TypeOf(&DaemonSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSetStatus, InType: reflect.TypeOf(&DaemonSetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_Deployment, InType: reflect.TypeOf(&Deployment{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentList, InType: reflect.TypeOf(&DeploymentList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentRollback, InType: reflect.TypeOf(&DeploymentRollback{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentSpec, InType: reflect.TypeOf(&DeploymentSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentStatus, InType: reflect.TypeOf(&DeploymentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentStrategy, InType: reflect.TypeOf(&DeploymentStrategy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_FSGroupStrategyOptions, InType: reflect.TypeOf(&FSGroupStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_HTTPIngressPath, InType: reflect.TypeOf(&HTTPIngressPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_HTTPIngressRuleValue, InType: reflect.TypeOf(&HTTPIngressRuleValue{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_HostPortRange, InType: reflect.TypeOf(&HostPortRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IDRange, InType: reflect.TypeOf(&IDRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_Ingress, InType: reflect.TypeOf(&Ingress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressBackend, InType: reflect.TypeOf(&IngressBackend{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressList, InType: reflect.TypeOf(&IngressList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressRule, InType: reflect.TypeOf(&IngressRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressRuleValue, InType: reflect.TypeOf(&IngressRuleValue{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressSpec, InType: reflect.TypeOf(&IngressSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressStatus, InType: reflect.TypeOf(&IngressStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressTLS, InType: reflect.TypeOf(&IngressTLS{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyPeer, InType: reflect.TypeOf(&NetworkPolicyPeer{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyPort, InType: reflect.TypeOf(&NetworkPolicyPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicySpec, InType: reflect.TypeOf(&NetworkPolicySpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_PodSecurityPolicy, InType: reflect.TypeOf(&PodSecurityPolicy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_PodSecurityPolicyList, InType: reflect.TypeOf(&PodSecurityPolicyList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_PodSecurityPolicySpec, InType: reflect.TypeOf(&PodSecurityPolicySpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSet, InType: reflect.TypeOf(&ReplicaSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSetList, InType: reflect.TypeOf(&ReplicaSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSetSpec, InType: reflect.TypeOf(&ReplicaSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSetStatus, InType: reflect.TypeOf(&ReplicaSetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicationControllerDummy, InType: reflect.TypeOf(&ReplicationControllerDummy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_RollbackConfig, InType: reflect.TypeOf(&RollbackConfig{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_RollingUpdateDeployment, InType: reflect.TypeOf(&RollingUpdateDeployment{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_RunAsUserStrategyOptions, InType: reflect.TypeOf(&RunAsUserStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_SELinuxStrategyOptions, InType: reflect.TypeOf(&SELinuxStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_Scale, InType: reflect.TypeOf(&Scale{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_StorageClass, InType: reflect.TypeOf(&StorageClass{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_StorageClassList, InType: reflect.TypeOf(&StorageClassList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_SupplementalGroupsStrategyOptions, InType: reflect.TypeOf(&SupplementalGroupsStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResource, InType: reflect.TypeOf(&ThirdPartyResource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResourceData, InType: reflect.TypeOf(&ThirdPartyResourceData{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResourceDataList, InType: reflect.TypeOf(&ThirdPartyResourceDataList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResourceList, InType: reflect.TypeOf(&ThirdPartyResourceList{})}, + ) +} + +func DeepCopy_extensions_APIVersion(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIVersion) + out := out.(*APIVersion) + out.Name = in.Name + return nil + } +} + +func DeepCopy_extensions_CustomMetricCurrentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricCurrentStatus) + out := out.(*CustomMetricCurrentStatus) + out.Name = in.Name + out.CurrentValue = in.CurrentValue.DeepCopy() + return nil + } +} + +func DeepCopy_extensions_CustomMetricCurrentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricCurrentStatusList) + out := out.(*CustomMetricCurrentStatusList) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomMetricCurrentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_CustomMetricCurrentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_CustomMetricTarget(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricTarget) + out := out.(*CustomMetricTarget) + out.Name = in.Name + out.TargetValue = in.TargetValue.DeepCopy() + return nil + } +} + +func DeepCopy_extensions_CustomMetricTargetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricTargetList) + out := out.(*CustomMetricTargetList) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomMetricTarget, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_CustomMetricTarget(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_DaemonSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSet) + out := out.(*DaemonSet) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_extensions_DaemonSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetList) + out := out.(*DaemonSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DaemonSet, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_DaemonSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_DaemonSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetSpec) + out := out.(*DaemonSetSpec) + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_DaemonSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetStatus) + out := out.(*DaemonSetStatus) + out.CurrentNumberScheduled = in.CurrentNumberScheduled + out.NumberMisscheduled = in.NumberMisscheduled + out.DesiredNumberScheduled = in.DesiredNumberScheduled + return nil + } +} + +func DeepCopy_extensions_Deployment(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Deployment) + out := out.(*Deployment) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_extensions_DeploymentList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentList) + out := out.(*DeploymentList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Deployment, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_Deployment(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_DeploymentRollback(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentRollback) + out := out.(*DeploymentRollback) + out.TypeMeta = in.TypeMeta + out.Name = in.Name + if in.UpdatedAnnotations != nil { + in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.UpdatedAnnotations = nil + } + out.RollbackTo = in.RollbackTo + return nil + } +} + +func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentSpec) + out := out.(*DeploymentSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + if err := DeepCopy_extensions_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { + return err + } + out.MinReadySeconds = in.MinReadySeconds + if in.RevisionHistoryLimit != nil { + in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit + *out = new(int32) + **out = **in + } else { + out.RevisionHistoryLimit = nil + } + out.Paused = in.Paused + if in.RollbackTo != nil { + in, out := &in.RollbackTo, &out.RollbackTo + *out = new(RollbackConfig) + **out = **in + } else { + out.RollbackTo = nil + } + return nil + } +} + +func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentStatus) + out := out.(*DeploymentStatus) + out.ObservedGeneration = in.ObservedGeneration + out.Replicas = in.Replicas + out.UpdatedReplicas = in.UpdatedReplicas + out.AvailableReplicas = in.AvailableReplicas + out.UnavailableReplicas = in.UnavailableReplicas + return nil + } +} + +func DeepCopy_extensions_DeploymentStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentStrategy) + out := out.(*DeploymentStrategy) + out.Type = in.Type + if in.RollingUpdate != nil { + in, out := &in.RollingUpdate, &out.RollingUpdate + *out = new(RollingUpdateDeployment) + **out = **in + } else { + out.RollingUpdate = nil + } + return nil + } +} + +func DeepCopy_extensions_FSGroupStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FSGroupStrategyOptions) + out := out.(*FSGroupStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_extensions_HTTPIngressPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPIngressPath) + out := out.(*HTTPIngressPath) + out.Path = in.Path + out.Backend = in.Backend + return nil + } +} + +func DeepCopy_extensions_HTTPIngressRuleValue(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPIngressRuleValue) + out := out.(*HTTPIngressRuleValue) + if in.Paths != nil { + in, out := &in.Paths, &out.Paths + *out = make([]HTTPIngressPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Paths = nil + } + return nil + } +} + +func DeepCopy_extensions_HostPortRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPortRange) + out := out.(*HostPortRange) + out.Min = in.Min + out.Max = in.Max + return nil + } +} + +func DeepCopy_extensions_IDRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IDRange) + out := out.(*IDRange) + out.Min = in.Min + out.Max = in.Max + return nil + } +} + +func DeepCopy_extensions_Ingress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Ingress) + out := out.(*Ingress) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_IngressSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_extensions_IngressStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_IngressBackend(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressBackend) + out := out.(*IngressBackend) + out.ServiceName = in.ServiceName + out.ServicePort = in.ServicePort + return nil + } +} + +func DeepCopy_extensions_IngressList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressList) + out := out.(*IngressList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Ingress, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_Ingress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_IngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressRule) + out := out.(*IngressRule) + out.Host = in.Host + if err := DeepCopy_extensions_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_IngressRuleValue(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressRuleValue) + out := out.(*IngressRuleValue) + if in.HTTP != nil { + in, out := &in.HTTP, &out.HTTP + *out = new(HTTPIngressRuleValue) + if err := DeepCopy_extensions_HTTPIngressRuleValue(*in, *out, c); err != nil { + return err + } + } else { + out.HTTP = nil + } + return nil + } +} + +func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressSpec) + out := out.(*IngressSpec) + if in.Backend != nil { + in, out := &in.Backend, &out.Backend + *out = new(IngressBackend) + **out = **in + } else { + out.Backend = nil + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = make([]IngressTLS, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_IngressTLS(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.TLS = nil + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]IngressRule, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_IngressRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_extensions_IngressStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressStatus) + out := out.(*IngressStatus) + if err := api.DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_IngressTLS(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressTLS) + out := out.(*IngressTLS) + if in.Hosts != nil { + in, out := &in.Hosts, &out.Hosts + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Hosts = nil + } + out.SecretName = in.SecretName + return nil + } +} + +func DeepCopy_extensions_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicy) + out := out.(*NetworkPolicy) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyIngressRule) + out := out.(*NetworkPolicyIngressRule) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]NetworkPolicyPort, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicyPort(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Ports = nil + } + if in.From != nil { + in, out := &in.From, &out.From + *out = make([]NetworkPolicyPeer, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicyPeer(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.From = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyList) + out := out.(*NetworkPolicyList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NetworkPolicy, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicy(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyPeer) + out := out.(*NetworkPolicyPeer) + if in.PodSelector != nil { + in, out := &in.PodSelector, &out.PodSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.PodSelector = nil + } + if in.NamespaceSelector != nil { + in, out := &in.NamespaceSelector, &out.NamespaceSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.NamespaceSelector = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyPort) + out := out.(*NetworkPolicyPort) + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol + *out = new(api.Protocol) + **out = **in + } else { + out.Protocol = nil + } + if in.Port != nil { + in, out := &in.Port, &out.Port + *out = new(intstr.IntOrString) + **out = **in + } else { + out.Port = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicySpec) + out := out.(*NetworkPolicySpec) + if err := unversioned.DeepCopy_unversioned_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { + return err + } + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]NetworkPolicyIngressRule, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_extensions_PodSecurityPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicy) + out := out.(*PodSecurityPolicy) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_PodSecurityPolicySpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_PodSecurityPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicyList) + out := out.(*PodSecurityPolicyList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodSecurityPolicy, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_PodSecurityPolicy(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicySpec) + out := out.(*PodSecurityPolicySpec) + out.Privileged = in.Privileged + if in.DefaultAddCapabilities != nil { + in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.DefaultAddCapabilities = nil + } + if in.RequiredDropCapabilities != nil { + in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.RequiredDropCapabilities = nil + } + if in.AllowedCapabilities != nil { + in, out := &in.AllowedCapabilities, &out.AllowedCapabilities + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AllowedCapabilities = nil + } + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]FSType, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Volumes = nil + } + out.HostNetwork = in.HostNetwork + if in.HostPorts != nil { + in, out := &in.HostPorts, &out.HostPorts + *out = make([]HostPortRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HostPorts = nil + } + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if err := DeepCopy_extensions_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { + return err + } + if err := DeepCopy_extensions_RunAsUserStrategyOptions(&in.RunAsUser, &out.RunAsUser, c); err != nil { + return err + } + if err := DeepCopy_extensions_SupplementalGroupsStrategyOptions(&in.SupplementalGroups, &out.SupplementalGroups, c); err != nil { + return err + } + if err := DeepCopy_extensions_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { + return err + } + out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem + return nil + } +} + +func DeepCopy_extensions_ReplicaSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSet) + out := out.(*ReplicaSet) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_extensions_ReplicaSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetList) + out := out.(*ReplicaSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicaSet, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ReplicaSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_ReplicaSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetSpec) + out := out.(*ReplicaSetSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetStatus) + out := out.(*ReplicaSetStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_extensions_ReplicationControllerDummy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerDummy) + out := out.(*ReplicationControllerDummy) + out.TypeMeta = in.TypeMeta + return nil + } +} + +func DeepCopy_extensions_RollbackConfig(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RollbackConfig) + out := out.(*RollbackConfig) + out.Revision = in.Revision + return nil + } +} + +func DeepCopy_extensions_RollingUpdateDeployment(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RollingUpdateDeployment) + out := out.(*RollingUpdateDeployment) + out.MaxUnavailable = in.MaxUnavailable + out.MaxSurge = in.MaxSurge + return nil + } +} + +func DeepCopy_extensions_RunAsUserStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RunAsUserStrategyOptions) + out := out.(*RunAsUserStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_extensions_SELinuxStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxStrategyOptions) + out := out.(*SELinuxStrategyOptions) + out.Rule = in.Rule + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(api.SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + return nil + } +} + +func DeepCopy_extensions_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Scale) + out := out.(*Scale) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleSpec) + out := out.(*ScaleSpec) + out.Replicas = in.Replicas + return nil + } +} + +func DeepCopy_extensions_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleStatus) + out := out.(*ScaleStatus) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + return nil + } +} + +func DeepCopy_extensions_StorageClass(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StorageClass) + out := out.(*StorageClass) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Provisioner = in.Provisioner + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Parameters = nil + } + return nil + } +} + +func DeepCopy_extensions_StorageClassList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StorageClassList) + out := out.(*StorageClassList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]StorageClass, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_StorageClass(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_SupplementalGroupsStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SupplementalGroupsStrategyOptions) + out := out.(*SupplementalGroupsStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResource) + out := out.(*ThirdPartyResource) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Description = in.Description + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]APIVersion, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Versions = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceData) + out := out.(*ThirdPartyResourceData) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResourceDataList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceDataList) + out := out.(*ThirdPartyResourceDataList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ThirdPartyResourceData, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ThirdPartyResourceData(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResourceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceList) + out := out.(*ThirdPartyResourceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ThirdPartyResource, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ThirdPartyResource(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/doc.go new file mode 100644 index 0000000000..cc53ad80d1 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/install/install.go new file mode 100644 index 0000000000..29a0b7ae2d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/apimachinery" + "k8s.io/kubernetes/pkg/apimachinery/registered" + "k8s.io/kubernetes/pkg/apis/imagepolicy" + "k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/util/sets" +) + +const importPrefix = "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/register.go new file mode 100644 index 0000000000..8f35a3eb88 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/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 back 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 +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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/types.generated.go new file mode 100644 index 0000000000..450f19f4d7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api" + pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" + pkg3_types "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/types.go new file mode 100644 index 0000000000..0be81f38b9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api" + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/doc.go new file mode 100644 index 0000000000..e52d15c7b6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/generated.pb.go new file mode 100644 index 0000000000..19ad750202 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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.kubernetes.pkg.apis.imagepolicy.v1alpha1.ImageReview") + proto.RegisterType((*ImageReviewContainerSpec)(nil), "k8s.io.kubernetes.pkg.apis.imagepolicy.v1alpha1.ImageReviewContainerSpec") + proto.RegisterType((*ImageReviewSpec)(nil), "k8s.io.kubernetes.pkg.apis.imagepolicy.v1alpha1.ImageReviewSpec") + proto.RegisterType((*ImageReviewStatus)(nil), "k8s.io.kubernetes.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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/generated.proto new file mode 100644 index 0000000000..a0797d5762 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/register.go new file mode 100644 index 0000000000..88848b8ac8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/api/v1" + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/types.generated.go new file mode 100644 index 0000000000..1363b20f0a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api/unversioned" + pkg2_v1 "k8s.io/kubernetes/pkg/api/v1" + pkg3_types "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/types.go new file mode 100644 index 0000000000..ef9fc544d3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/zz_generated.conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/zz_generated.conversion.go new file mode 100644 index 0000000000..8a98c0a10a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api" + imagepolicy "k8s.io/kubernetes/pkg/apis/imagepolicy" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..88192e5009 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/imagepolicy/zz_generated.deepcopy.go new file mode 100644 index 0000000000..a8748f5f17 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/pkg/api" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/deep_copy_generated.go deleted file mode 100644 index 098a0eed86..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/deep_copy_generated.go +++ /dev/null @@ -1,90 +0,0 @@ -// +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 policy - -import ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_policy_PodDisruptionBudget, - DeepCopy_policy_PodDisruptionBudgetList, - DeepCopy_policy_PodDisruptionBudgetSpec, - DeepCopy_policy_PodDisruptionBudgetStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_policy_PodDisruptionBudget(in PodDisruptionBudget, out *PodDisruptionBudget, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_policy_PodDisruptionBudgetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_policy_PodDisruptionBudgetList(in PodDisruptionBudgetList, out *PodDisruptionBudgetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PodDisruptionBudget, len(in)) - for i := range in { - if err := DeepCopy_policy_PodDisruptionBudget(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_policy_PodDisruptionBudgetSpec(in PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, c *conversion.Cloner) error { - out.MinAvailable = in.MinAvailable - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - return nil -} - -func DeepCopy_policy_PodDisruptionBudgetStatus(in PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, c *conversion.Cloner) error { - out.PodDisruptionAllowed = in.PodDisruptionAllowed - out.CurrentHealthy = in.CurrentHealthy - out.DesiredHealthy = in.DesiredHealthy - out.ExpectedPods = in.ExpectedPods - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/install/install.go index 90489a7441..4ac0ccbdc5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/install/install.go @@ -114,7 +114,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - policy.AddToScheme(api.Scheme) + if err := policy.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -123,7 +126,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1alpha1.SchemeGroupVersion: - v1alpha1.AddToScheme(api.Scheme) + if err := v1alpha1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/register.go index e61c82b287..f6f223221b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/register.go @@ -17,6 +17,7 @@ limitations under the License. package policy import ( + "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/runtime" ) @@ -37,16 +38,19 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, + &api.ListOptions{}, + &Eviction{}, ) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.generated.go index 06652687a2..93ca803e51 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.generated.go @@ -186,25 +186,25 @@ func (x *PodDisruptionBudgetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym11 := z.DecBinary() + _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct12 := r.ContainerType() + if yyct12 == codecSelferValueTypeMap1234 { + yyl12 := r.ReadMapStart() + if yyl12 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl12, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct12 == codecSelferValueTypeArray1234 { + yyl12 := r.ReadArrayStart() + if yyl12 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl12, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -216,12 +216,12 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys13Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys13Slc + var yyhl13 bool = l >= 0 + for yyj13 := 0; ; yyj13++ { + if yyhl13 { + if yyj13 >= l { break } } else { @@ -230,23 +230,23 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys13Slc = r.DecodeBytes(yys13Slc, true, true) + yys13 := string(yys13Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys13 { case "minAvailable": if r.TryDecodeAsNil() { x.MinAvailable = pkg1_intstr.IntOrString{} } else { - yyv4 := &x.MinAvailable - yym5 := z.DecBinary() - _ = yym5 + yyv14 := &x.MinAvailable + yym15 := z.DecBinary() + _ = yym15 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv14) { + } else if !yym15 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv14) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv14, false) } } case "selector": @@ -258,8 +258,8 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym7 := z.DecBinary() - _ = yym7 + yym17 := z.DecBinary() + _ = yym17 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -267,9 +267,9 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys13) + } // end switch yys13 + } // end for yyj13 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -277,16 +277,16 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb8 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb8 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -294,24 +294,24 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.MinAvailable = pkg1_intstr.IntOrString{} } else { - yyv9 := &x.MinAvailable - yym10 := z.DecBinary() - _ = yym10 + yyv19 := &x.MinAvailable + yym20 := z.DecBinary() + _ = yym20 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv19) { + } else if !yym20 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv19) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv19, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb8 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb8 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -324,8 +324,8 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym12 := z.DecBinary() - _ = yym12 + yym22 := z.DecBinary() + _ = yym22 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -333,17 +333,17 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb8 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb8 { + if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -355,33 +355,33 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym23 := z.EncBinary() + _ = yym23 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep24 := !z.EncBinary() + yy2arr24 := z.EncBasicHandle().StructToArray + var yyq24 [4]bool + _, _, _ = yysep24, yyq24, yy2arr24 + const yyr24 bool = false + var yynn24 int + if yyr24 || yy2arr24 { r.EncodeArrayStart(4) } else { - yynn2 = 4 - for _, b := range yyq2 { + yynn24 = 4 + for _, b := range yyq24 { if b { - yynn2++ + yynn24++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn24) + yynn24 = 0 } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym26 := z.EncBinary() + _ = yym26 if false { } else { r.EncodeBool(bool(x.PodDisruptionAllowed)) @@ -390,17 +390,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("disruptionAllowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym27 := z.EncBinary() + _ = yym27 if false { } else { r.EncodeBool(bool(x.PodDisruptionAllowed)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym29 := z.EncBinary() + _ = yym29 if false { } else { r.EncodeInt(int64(x.CurrentHealthy)) @@ -409,17 +409,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym30 := z.EncBinary() + _ = yym30 if false { } else { r.EncodeInt(int64(x.CurrentHealthy)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym32 := z.EncBinary() + _ = yym32 if false { } else { r.EncodeInt(int64(x.DesiredHealthy)) @@ -428,17 +428,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym33 := z.EncBinary() + _ = yym33 if false { } else { r.EncodeInt(int64(x.DesiredHealthy)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeInt(int64(x.ExpectedPods)) @@ -447,14 +447,14 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeInt(int64(x.ExpectedPods)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -467,25 +467,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym37 := z.DecBinary() + _ = yym37 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct38 := r.ContainerType() + if yyct38 == codecSelferValueTypeMap1234 { + yyl38 := r.ReadMapStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl38, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct38 == codecSelferValueTypeArray1234 { + yyl38 := r.ReadArrayStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl38, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -497,12 +497,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys39Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys39Slc + var yyhl39 bool = l >= 0 + for yyj39 := 0; ; yyj39++ { + if yyhl39 { + if yyj39 >= l { break } } else { @@ -511,10 +511,10 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys39Slc = r.DecodeBytes(yys39Slc, true, true) + yys39 := string(yys39Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys39 { case "disruptionAllowed": if r.TryDecodeAsNil() { x.PodDisruptionAllowed = false @@ -540,9 +540,9 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D x.ExpectedPods = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys39) + } // end switch yys39 + } // end for yyj39 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -550,16 +550,16 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj44 int + var yyb44 bool + var yyhl44 bool = l >= 0 + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -569,13 +569,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.PodDisruptionAllowed = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -585,13 +585,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.CurrentHealthy = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -601,13 +601,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.DesiredHealthy = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -618,17 +618,17 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 x.ExpectedPods = int32(r.DecodeInt(32)) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj44-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -640,136 +640,136 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym49 := z.EncBinary() + _ = yym49 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep50 := !z.EncBinary() + yy2arr50 := z.EncBasicHandle().StructToArray + var yyq50 [5]bool + _, _, _ = yysep50, yyq50, yy2arr50 + const yyr50 bool = false + yyq50[0] = x.Kind != "" + yyq50[1] = x.APIVersion != "" + yyq50[2] = true + yyq50[3] = true + yyq50[4] = true + var yynn50 int + if yyr50 || yy2arr50 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn50 = 0 + for _, b := range yyq50 { if b { - yynn2++ + yynn50++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn50) + yynn50 = 0 } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq50[0] { + yym52 := z.EncBinary() + _ = yym52 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq50[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym53 := z.EncBinary() + _ = yym53 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq50[1] { + yym55 := z.EncBinary() + _ = yym55 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq50[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym56 := z.EncBinary() + _ = yym56 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq50[2] { + yy58 := &x.ObjectMeta + yy58.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq50[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy59 := &x.ObjectMeta + yy59.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq50[3] { + yy61 := &x.Spec + yy61.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq50[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy62 := &x.Spec + yy62.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq50[4] { + yy64 := &x.Status + yy64.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq50[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy65 := &x.Status + yy65.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -782,25 +782,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym66 := z.DecBinary() + _ = yym66 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct67 := r.ContainerType() + if yyct67 == codecSelferValueTypeMap1234 { + yyl67 := r.ReadMapStart() + if yyl67 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl67, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct67 == codecSelferValueTypeArray1234 { + yyl67 := r.ReadArrayStart() + if yyl67 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl67, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -812,12 +812,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys68Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys68Slc + var yyhl68 bool = l >= 0 + for yyj68 := 0; ; yyj68++ { + if yyhl68 { + if yyj68 >= l { break } } else { @@ -826,47 +826,47 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys68Slc = r.DecodeBytes(yys68Slc, true, true) + yys68 := string(yys68Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys68 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_api.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PodDisruptionBudgetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PodDisruptionBudgetStatus{} + x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv71 := &x.ObjectMeta + yyv71.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodDisruptionBudgetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv72 := &x.Spec + yyv72.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodDisruptionBudgetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv73 := &x.Status + yyv73.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys68) + } // end switch yys68 + } // end for yyj68 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -874,104 +874,104 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj74 int + var yyb74 bool + var yyhl74 bool = l >= 0 + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_api.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PodDisruptionBudgetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodDisruptionBudgetStatus{} + x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv77 := &x.ObjectMeta + yyv77.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodDisruptionBudgetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv78 := &x.Spec + yyv78.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodDisruptionBudgetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv79 := &x.Status + yyv79.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj74-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -983,68 +983,118 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym80 := z.EncBinary() + _ = yym80 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep81 := !z.EncBinary() + yy2arr81 := z.EncBasicHandle().StructToArray + var yyq81 [4]bool + _, _, _ = yysep81, yyq81, yy2arr81 + const yyr81 bool = false + yyq81[0] = x.Kind != "" + yyq81[1] = x.APIVersion != "" + yyq81[2] = true + var yynn81 int + if yyr81 || yy2arr81 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn81 = 1 + for _, b := range yyq81 { if b { - yynn2++ + yynn81++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn81) + yynn81 = 0 } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq81[0] { + yym83 := z.EncBinary() + _ = yym83 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq81[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym84 := z.EncBinary() + _ = yym84 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq81[1] { + yym86 := z.EncBinary() + _ = yym86 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq81[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym87 := z.EncBinary() + _ = yym87 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq81[2] { + yy89 := &x.ListMeta + yym90 := z.EncBinary() + _ = yym90 + if false { + } else if z.HasExtensions() && z.EncExt(yy89) { + } else { + z.EncFallback(yy89) } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq81[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yy91 := &x.ListMeta + yym92 := z.EncBinary() + _ = yym92 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { + } else if z.HasExtensions() && z.EncExt(yy91) { } else { - z.EncFallback(yy6) + z.EncFallback(yy91) } } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym94 := z.EncBinary() + _ = yym94 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) @@ -1057,19 +1107,258 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym95 := z.EncBinary() + _ = yym95 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym96 := z.DecBinary() + _ = yym96 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct97 := r.ContainerType() + if yyct97 == codecSelferValueTypeMap1234 { + yyl97 := r.ReadMapStart() + if yyl97 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl97, d) + } + } else if yyct97 == codecSelferValueTypeArray1234 { + yyl97 := r.ReadArrayStart() + if yyl97 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl97, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys98Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys98Slc + var yyhl98 bool = l >= 0 + for yyj98 := 0; ; yyj98++ { + if yyhl98 { + if yyj98 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys98Slc = r.DecodeBytes(yys98Slc, true, true) + yys98 := string(yys98Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys98 { + 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 { + yyv101 := &x.ListMeta + yym102 := z.DecBinary() + _ = yym102 + if false { + } else if z.HasExtensions() && z.DecExt(yyv101) { + } else { + z.DecFallback(yyv101, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv103 := &x.Items + yym104 := z.DecBinary() + _ = yym104 + if false { + } else { + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv103), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys98) + } // end switch yys98 + } // end for yyj98 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj105 int + var yyb105 bool + var yyhl105 bool = l >= 0 + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv108 := &x.ListMeta + yym109 := z.DecBinary() + _ = yym109 + if false { + } else if z.HasExtensions() && z.DecExt(yyv108) { + } else { + z.DecFallback(yyv108, false) + } + } + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv110 := &x.Items + yym111 := z.DecBinary() + _ = yym111 + if false { + } else { + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv110), d) + } + } + for { + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj105-1, "") + } + 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 yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1078,23 +1367,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq113[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym116 := z.EncBinary() + _ = yym116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1103,19 +1392,59 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq113[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym119 := z.EncBinary() + _ = yym119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + 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) @@ -1124,29 +1453,29 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym124 := z.DecBinary() + _ = yym124 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct125 := r.ContainerType() + if yyct125 == codecSelferValueTypeMap1234 { + yyl125 := r.ReadMapStart() + if yyl125 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl125, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct125 == codecSelferValueTypeArray1234 { + yyl125 := r.ReadArrayStart() + if yyl125 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl125, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1154,16 +1483,16 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -1172,35 +1501,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys126Slc = r.DecodeBytes(yys126Slc, true, true) + yys126 := string(yys126Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else { - z.DecFallback(yyv4, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv6), d) - } - } + switch yys126 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1213,109 +1517,120 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec } 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys126) + } // end switch yys126 + } // end for yyj126 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } } else { - x.APIVersion = string(r.DecodeString()) + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_api.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj131-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1325,10 +1640,10 @@ func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv136 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy137 := &yyv136 + yy137.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1338,86 +1653,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodDisruptionBudget{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl138 > 0 { + var yyrr138, yyrl138 int + var yyrt138 bool + if yyl138 > cap(yyv138) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodDisruptionBudget, yyrl1) + yyv138 = make([]PodDisruptionBudget, yyrl138) } } else { - yyv1 = make([]PodDisruptionBudget, yyrl1) + yyv138 = make([]PodDisruptionBudget, yyrl138) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc138 = true + yyrr138 = len(yyv138) + if yyrg138 { + copy(yyv138, yyv2138) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl138 != len(yyv138) { + yyv138 = yyv138[:yyl138] + yyc138 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj138 := 0 + for ; yyj138 < yyrr138; yyj138++ { + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv139 := &yyv138[yyj138] + yyv139.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodDisruptionBudget{}) - yyh1.ElemContainerState(yyj1) + if yyrt138 { + for ; yyj138 < yyl138; yyj138++ { + yyv138 = append(yyv138, PodDisruptionBudget{}) + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv140 := &yyv138[yyj138] + yyv140.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj138 := 0 + for ; !r.CheckBreak(); yyj138++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodDisruptionBudget{}) // var yyz1 PodDisruptionBudget - yyc1 = true + if yyj138 >= len(yyv138) { + yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget + yyc138 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh138.ElemContainerState(yyj138) + if yyj138 < len(yyv138) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv141 := &yyv138[yyj138] + yyv141.CodecDecodeSelf(d) } } else { @@ -1425,16 +1737,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodDisruptionBudget{} - yyc1 = true + if yyj138 < len(yyv138) { + yyv138 = yyv138[:yyj138] + yyc138 = true + } else if yyj138 == 0 && yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh138.End() + if yyc138 { + *v = yyv138 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.go index adc31e59f1..d7c7e86151 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/types.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/deep_copy_generated.go deleted file mode 100644 index 05f286d09b..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/deep_copy_generated.go +++ /dev/null @@ -1,91 +0,0 @@ -// +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 ( - api "k8s.io/kubernetes/pkg/api" - unversioned "k8s.io/kubernetes/pkg/api/unversioned" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1alpha1_PodDisruptionBudget, - DeepCopy_v1alpha1_PodDisruptionBudgetList, - DeepCopy_v1alpha1_PodDisruptionBudgetSpec, - DeepCopy_v1alpha1_PodDisruptionBudgetStatus, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1alpha1_PodDisruptionBudget(in PodDisruptionBudget, out *PodDisruptionBudget, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in.Spec, &out.Spec, c); err != nil { - return err - } - out.Status = in.Status - return nil -} - -func DeepCopy_v1alpha1_PodDisruptionBudgetList(in PodDisruptionBudgetList, out *PodDisruptionBudgetList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]PodDisruptionBudget, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_PodDisruptionBudget(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, c *conversion.Cloner) error { - out.MinAvailable = in.MinAvailable - if in.Selector != nil { - in, out := in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - return nil -} - -func DeepCopy_v1alpha1_PodDisruptionBudgetStatus(in PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, c *conversion.Cloner) error { - out.PodDisruptionAllowed = in.PodDisruptionAllowed - out.CurrentHealthy = in.CurrentHealthy - out.DesiredHealthy = in.DesiredHealthy - out.ExpectedPods = in.ExpectedPods - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.pb.go index 7a4c999011..3f3daf97ec 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/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,10 @@ import fmt "fmt" import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" + +import strings "strings" +import reflect "reflect" import io "io" @@ -45,29 +50,40 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} } -func (m *PodDisruptionBudget) String() string { return proto.CompactTextString(m) } -func (*PodDisruptionBudget) ProtoMessage() {} +// 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 *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{1} } -func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} } -func (m *PodDisruptionBudgetList) String() string { return proto.CompactTextString(m) } -func (*PodDisruptionBudgetList) ProtoMessage() {} +func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} } +func (*PodDisruptionBudgetList) ProtoMessage() {} +func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} } -func (m *PodDisruptionBudgetSpec) String() string { return proto.CompactTextString(m) } -func (*PodDisruptionBudgetSpec) ProtoMessage() {} +func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} } +func (*PodDisruptionBudgetSpec) ProtoMessage() {} +func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} } -func (m *PodDisruptionBudgetStatus) String() string { return proto.CompactTextString(m) } -func (*PodDisruptionBudgetStatus) ProtoMessage() {} +func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} } +func (*PodDisruptionBudgetStatus) ProtoMessage() {} +func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{4} +} func init() { + proto.RegisterType((*Eviction)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.Eviction") proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudget") proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetList") proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetSpec") proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetStatus") } -func (m *PodDisruptionBudget) Marshal() (data []byte, err error) { +func (m *Eviction) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -77,7 +93,7 @@ func (m *PodDisruptionBudget) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *PodDisruptionBudget) MarshalTo(data []byte) (int, error) { +func (m *Eviction) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -90,22 +106,58 @@ func (m *PodDisruptionBudget) MarshalTo(data []byte) (int, error) { 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) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *PodDisruptionBudget) 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())) + 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())) - n2, err := m.Spec.MarshalTo(data[i:]) + n4, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n2 + i += n4 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n3, err := m.Status.MarshalTo(data[i:]) + n5, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n3 + i += n5 return i, nil } @@ -127,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 @@ -165,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 } @@ -245,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 @@ -306,6 +370,185 @@ 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" + } + s := strings.Join([]string{`&PodDisruptionBudget{`, + `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(), "PodDisruptionBudgetSpec", "PodDisruptionBudgetSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodDisruptionBudgetStatus", "PodDisruptionBudgetStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodDisruptionBudgetList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodDisruptionBudgetList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PodDisruptionBudget", "PodDisruptionBudget", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodDisruptionBudgetSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodDisruptionBudgetSpec{`, + `MinAvailable:` + strings.Replace(strings.Replace(this.MinAvailable.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodDisruptionBudgetStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodDisruptionBudgetStatus{`, + `PodDisruptionAllowed:` + fmt.Sprintf("%v", this.PodDisruptionAllowed) + `,`, + `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`, + `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`, + `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`, + `}`, + }, "") + 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 *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 @@ -901,3 +1144,48 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 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/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto index d04a0af8cd..2bc3b524b8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/register.go index 6a82e3f9ce..8fcb0be023 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/register.go @@ -29,22 +29,21 @@ const GroupName = "policy" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) - /* - addDefaultingFuncs(scheme) - addConversionFuncs(scheme) - */ -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, + &Eviction{}, &v1.ListOptions{}, &v1.DeleteOptions{}, ) // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.generated.go index 6592c9c311..b131cdcf58 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.generated.go @@ -186,25 +186,25 @@ func (x *PodDisruptionBudgetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym11 := z.DecBinary() + _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct12 := r.ContainerType() + if yyct12 == codecSelferValueTypeMap1234 { + yyl12 := r.ReadMapStart() + if yyl12 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl12, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct12 == codecSelferValueTypeArray1234 { + yyl12 := r.ReadArrayStart() + if yyl12 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl12, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -216,12 +216,12 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys13Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys13Slc + var yyhl13 bool = l >= 0 + for yyj13 := 0; ; yyj13++ { + if yyhl13 { + if yyj13 >= l { break } } else { @@ -230,23 +230,23 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys13Slc = r.DecodeBytes(yys13Slc, true, true) + yys13 := string(yys13Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys13 { case "minAvailable": if r.TryDecodeAsNil() { x.MinAvailable = pkg1_intstr.IntOrString{} } else { - yyv4 := &x.MinAvailable - yym5 := z.DecBinary() - _ = yym5 + yyv14 := &x.MinAvailable + yym15 := z.DecBinary() + _ = yym15 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else if !yym5 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4) + } else if z.HasExtensions() && z.DecExt(yyv14) { + } else if !yym15 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv14) } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv14, false) } } case "selector": @@ -258,8 +258,8 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym7 := z.DecBinary() - _ = yym7 + yym17 := z.DecBinary() + _ = yym17 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -267,9 +267,9 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys13) + } // end switch yys13 + } // end for yyj13 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -277,16 +277,16 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb8 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb8 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -294,24 +294,24 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.MinAvailable = pkg1_intstr.IntOrString{} } else { - yyv9 := &x.MinAvailable - yym10 := z.DecBinary() - _ = yym10 + yyv19 := &x.MinAvailable + yym20 := z.DecBinary() + _ = yym20 if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv9) + } else if z.HasExtensions() && z.DecExt(yyv19) { + } else if !yym20 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv19) } else { - z.DecFallback(yyv9, false) + z.DecFallback(yyv19, false) } } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb8 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb8 { + if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -324,8 +324,8 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym12 := z.DecBinary() - _ = yym12 + yym22 := z.DecBinary() + _ = yym22 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -333,17 +333,17 @@ func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l } else { - yyb8 = r.CheckBreak() + yyb18 = r.CheckBreak() } - if yyb8 { + if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -355,33 +355,33 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym23 := z.EncBinary() + _ = yym23 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { + yysep24 := !z.EncBinary() + yy2arr24 := z.EncBasicHandle().StructToArray + var yyq24 [4]bool + _, _, _ = yysep24, yyq24, yy2arr24 + const yyr24 bool = false + var yynn24 int + if yyr24 || yy2arr24 { r.EncodeArrayStart(4) } else { - yynn2 = 4 - for _, b := range yyq2 { + yynn24 = 4 + for _, b := range yyq24 { if b { - yynn2++ + yynn24++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn24) + yynn24 = 0 } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym26 := z.EncBinary() + _ = yym26 if false { } else { r.EncodeBool(bool(x.PodDisruptionAllowed)) @@ -390,17 +390,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("disruptionAllowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym27 := z.EncBinary() + _ = yym27 if false { } else { r.EncodeBool(bool(x.PodDisruptionAllowed)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 + yym29 := z.EncBinary() + _ = yym29 if false { } else { r.EncodeInt(int64(x.CurrentHealthy)) @@ -409,17 +409,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym30 := z.EncBinary() + _ = yym30 if false { } else { r.EncodeInt(int64(x.CurrentHealthy)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym32 := z.EncBinary() + _ = yym32 if false { } else { r.EncodeInt(int64(x.DesiredHealthy)) @@ -428,17 +428,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym33 := z.EncBinary() + _ = yym33 if false { } else { r.EncodeInt(int64(x.DesiredHealthy)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 + yym35 := z.EncBinary() + _ = yym35 if false { } else { r.EncodeInt(int64(x.ExpectedPods)) @@ -447,14 +447,14 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym36 := z.EncBinary() + _ = yym36 if false { } else { r.EncodeInt(int64(x.ExpectedPods)) } } - if yyr2 || yy2arr2 { + if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -467,25 +467,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym37 := z.DecBinary() + _ = yym37 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct38 := r.ContainerType() + if yyct38 == codecSelferValueTypeMap1234 { + yyl38 := r.ReadMapStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl38, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct38 == codecSelferValueTypeArray1234 { + yyl38 := r.ReadArrayStart() + if yyl38 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl38, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -497,12 +497,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys39Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys39Slc + var yyhl39 bool = l >= 0 + for yyj39 := 0; ; yyj39++ { + if yyhl39 { + if yyj39 >= l { break } } else { @@ -511,10 +511,10 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys39Slc = r.DecodeBytes(yys39Slc, true, true) + yys39 := string(yys39Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys39 { case "disruptionAllowed": if r.TryDecodeAsNil() { x.PodDisruptionAllowed = false @@ -540,9 +540,9 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D x.ExpectedPods = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys39) + } // end switch yys39 + } // end for yyj39 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -550,16 +550,16 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj44 int + var yyb44 bool + var yyhl44 bool = l >= 0 + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -569,13 +569,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.PodDisruptionAllowed = bool(r.DecodeBool()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -585,13 +585,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.CurrentHealthy = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -601,13 +601,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.DesiredHealthy = int32(r.DecodeInt(32)) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -618,17 +618,17 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 x.ExpectedPods = int32(r.DecodeInt(32)) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj44++ + if yyhl44 { + yyb44 = yyj44 > l } else { - yyb8 = r.CheckBreak() + yyb44 = r.CheckBreak() } - if yyb8 { + if yyb44 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj44-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -640,136 +640,136 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym49 := z.EncBinary() + _ = yym49 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] = true - yyq2[1] = true - yyq2[2] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep50 := !z.EncBinary() + yy2arr50 := z.EncBasicHandle().StructToArray + var yyq50 [5]bool + _, _, _ = yysep50, yyq50, yy2arr50 + const yyr50 bool = false + yyq50[0] = x.Kind != "" + yyq50[1] = x.APIVersion != "" + yyq50[2] = true + yyq50[3] = true + yyq50[4] = true + var yynn50 int + if yyr50 || yy2arr50 { r.EncodeArrayStart(5) } else { - yynn2 = 0 - for _, b := range yyq2 { + yynn50 = 0 + for _, b := range yyq50 { if b { - yynn2++ + yynn50++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn50) + yynn50 = 0 } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq50[0] { + yym52 := z.EncBinary() + _ = yym52 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq50[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym53 := z.EncBinary() + _ = yym53 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yy9 := &x.Spec - yy9.CodecEncodeSelf(e) + if yyq50[1] { + yym55 := z.EncBinary() + _ = yym55 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq50[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.Spec - yy11.CodecEncodeSelf(e) + yym56 := z.EncBinary() + _ = yym56 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy14 := &x.Status - yy14.CodecEncodeSelf(e) + if yyq50[2] { + yy58 := &x.ObjectMeta + yy58.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[2] { + if yyq50[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy16 := &x.Status - yy16.CodecEncodeSelf(e) + yy59 := &x.ObjectMeta + yy59.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq50[3] { + yy61 := &x.Spec + yy61.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq50[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy62 := &x.Spec + yy62.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if yyq50[4] { + yy64 := &x.Status + yy64.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[4] { + if yyq50[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + yy65 := &x.Status + yy65.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr50 || yy2arr50 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -782,25 +782,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym66 := z.DecBinary() + _ = yym66 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct67 := r.ContainerType() + if yyct67 == codecSelferValueTypeMap1234 { + yyl67 := r.ReadMapStart() + if yyl67 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl67, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct67 == codecSelferValueTypeArray1234 { + yyl67 := r.ReadArrayStart() + if yyl67 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl67, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -812,12 +812,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys68Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys68Slc + var yyhl68 bool = l >= 0 + for yyj68 := 0; ; yyj68++ { + if yyhl68 { + if yyj68 >= l { break } } else { @@ -826,47 +826,47 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys68Slc = r.DecodeBytes(yys68Slc, true, true) + yys68 := string(yys68Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": + switch yys68 { + case "kind": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_v1.ObjectMeta{} + x.Kind = "" } else { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - case "spec": + case "apiVersion": if r.TryDecodeAsNil() { - x.Spec = PodDisruptionBudgetSpec{} + x.APIVersion = "" } else { - yyv5 := &x.Spec - yyv5.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - case "status": + case "metadata": if r.TryDecodeAsNil() { - x.Status = PodDisruptionBudgetStatus{} + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv6 := &x.Status - yyv6.CodecDecodeSelf(d) + yyv71 := &x.ObjectMeta + yyv71.CodecDecodeSelf(d) } - case "kind": + case "spec": if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodDisruptionBudgetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv72 := &x.Spec + yyv72.CodecDecodeSelf(d) } - case "apiVersion": + case "status": if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodDisruptionBudgetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv73 := &x.Status + yyv73.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys68) + } // end switch yys68 + } // end for yyj68 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -874,104 +874,104 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj74 int + var yyb74 bool + var yyhl74 bool = l >= 0 + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PodDisruptionBudgetSpec{} + x.APIVersion = "" } else { - yyv11 := &x.Spec - yyv11.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodDisruptionBudgetStatus{} + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv12 := &x.Status - yyv12.CodecDecodeSelf(d) + yyv77 := &x.ObjectMeta + yyv77.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Spec = PodDisruptionBudgetSpec{} } else { - x.Kind = string(r.DecodeString()) + yyv78 := &x.Spec + yyv78.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Status = PodDisruptionBudgetStatus{} } else { - x.APIVersion = string(r.DecodeString()) + yyv79 := &x.Status + yyv79.CodecDecodeSelf(d) } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l } else { - yyb9 = r.CheckBreak() + yyb74 = r.CheckBreak() } - if yyb9 { + if yyb74 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj74-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -983,68 +983,118 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym80 := z.EncBinary() + _ = yym80 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep81 := !z.EncBinary() + yy2arr81 := z.EncBasicHandle().StructToArray + var yyq81 [4]bool + _, _, _ = yysep81, yyq81, yy2arr81 + const yyr81 bool = false + yyq81[0] = x.Kind != "" + yyq81[1] = x.APIVersion != "" + yyq81[2] = true + var yynn81 int + if yyr81 || yy2arr81 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn81 = 1 + for _, b := range yyq81 { if b { - yynn2++ + yynn81++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn81) + yynn81 = 0 } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq81[0] { + yym83 := z.EncBinary() + _ = yym83 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq81[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym84 := z.EncBinary() + _ = yym84 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq81[1] { + yym86 := z.EncBinary() + _ = yym86 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq81[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym87 := z.EncBinary() + _ = yym87 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq81[2] { + yy89 := &x.ListMeta + yym90 := z.EncBinary() + _ = yym90 + if false { + } else if z.HasExtensions() && z.EncExt(yy89) { + } else { + z.EncFallback(yy89) } } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq81[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yy91 := &x.ListMeta + yym92 := z.EncBinary() + _ = yym92 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { + } else if z.HasExtensions() && z.EncExt(yy91) { } else { - z.EncFallback(yy6) + z.EncFallback(yy91) } } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym94 := z.EncBinary() + _ = yym94 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) @@ -1057,19 +1107,258 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym95 := z.EncBinary() + _ = yym95 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym96 := z.DecBinary() + _ = yym96 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct97 := r.ContainerType() + if yyct97 == codecSelferValueTypeMap1234 { + yyl97 := r.ReadMapStart() + if yyl97 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl97, d) + } + } else if yyct97 == codecSelferValueTypeArray1234 { + yyl97 := r.ReadArrayStart() + if yyl97 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl97, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys98Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys98Slc + var yyhl98 bool = l >= 0 + for yyj98 := 0; ; yyj98++ { + if yyhl98 { + if yyj98 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys98Slc = r.DecodeBytes(yys98Slc, true, true) + yys98 := string(yys98Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys98 { + 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 { + yyv101 := &x.ListMeta + yym102 := z.DecBinary() + _ = yym102 + if false { + } else if z.HasExtensions() && z.DecExt(yyv101) { + } else { + z.DecFallback(yyv101, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv103 := &x.Items + yym104 := z.DecBinary() + _ = yym104 + if false { + } else { + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv103), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys98) + } // end switch yys98 + } // end for yyj98 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj105 int + var yyb105 bool + var yyhl105 bool = l >= 0 + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv108 := &x.ListMeta + yym109 := z.DecBinary() + _ = yym109 + if false { + } else if z.HasExtensions() && z.DecExt(yyv108) { + } else { + z.DecFallback(yyv108, false) + } + } + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv110 := &x.Items + yym111 := z.DecBinary() + _ = yym111 + if false { + } else { + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv110), d) + } + } + for { + yyj105++ + if yyhl105 { + yyb105 = yyj105 > l + } else { + yyb105 = r.CheckBreak() + } + if yyb105 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj105-1, "") + } + 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 yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1078,23 +1367,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[2] { + if yyq113[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yym116 := z.EncBinary() + _ = yym116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr113 || yy2arr113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1103,19 +1392,59 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq113[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yym119 := z.EncBinary() + _ = yym119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + 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) @@ -1124,29 +1453,29 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym124 := z.DecBinary() + _ = yym124 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct125 := r.ContainerType() + if yyct125 == codecSelferValueTypeMap1234 { + yyl125 := r.ReadMapStart() + if yyl125 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl125, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct125 == codecSelferValueTypeArray1234 { + yyl125 := r.ReadArrayStart() + if yyl125 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl125, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1154,16 +1483,16 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + 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 { @@ -1172,35 +1501,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys126Slc = r.DecodeBytes(yys126Slc, true, true) + yys126 := string(yys126Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else { - z.DecFallback(yyv4, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv6), d) - } - } + switch yys126 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1213,109 +1517,120 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec } 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, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys126) + } // end switch yys126 + } // end for yyj126 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } } else { - x.APIVersion = string(r.DecodeString()) + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_v1.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj131-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1325,10 +1640,10 @@ func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv136 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy137 := &yyv136 + yy137.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1338,86 +1653,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PodDisruptionBudget{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = 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 yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl138 > 0 { + var yyrr138, yyrl138 int + var yyrt138 bool + if yyl138 > cap(yyv138) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + 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 { - yyv1 = make([]PodDisruptionBudget, yyrl1) + yyv138 = make([]PodDisruptionBudget, yyrl138) } } else { - yyv1 = make([]PodDisruptionBudget, yyrl1) + yyv138 = make([]PodDisruptionBudget, yyrl138) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc138 = true + yyrr138 = len(yyv138) + if yyrg138 { + copy(yyv138, yyv2138) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl138 != len(yyv138) { + yyv138 = yyv138[:yyl138] + yyc138 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj138 := 0 + for ; yyj138 < yyrr138; yyj138++ { + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv139 := &yyv138[yyj138] + yyv139.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PodDisruptionBudget{}) - yyh1.ElemContainerState(yyj1) + if yyrt138 { + for ; yyj138 < yyl138; yyj138++ { + yyv138 = append(yyv138, PodDisruptionBudget{}) + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv1[yyj1] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv140 := &yyv138[yyj138] + yyv140.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj138 := 0 + for ; !r.CheckBreak(); yyj138++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PodDisruptionBudget{}) // var yyz1 PodDisruptionBudget - yyc1 = true + if yyj138 >= len(yyv138) { + yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget + yyc138 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh138.ElemContainerState(yyj138) + if yyj138 < len(yyv138) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv141 := &yyv138[yyj138] + yyv141.CodecDecodeSelf(d) } } else { @@ -1425,16 +1737,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PodDisruptionBudget{} - yyc1 = true + if yyj138 < len(yyv138) { + yyv138 = yyv138[:yyj138] + yyc138 = true + } else if yyj138 == 0 && yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh138.End() + if yyc138 { + *v = yyv138 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.go index efe136fda2..0b9e1b3871 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types.go @@ -18,7 +18,6 @@ package v1alpha1 import ( "k8s.io/kubernetes/pkg/api/unversioned" - "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/util/intstr" ) @@ -70,3 +69,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/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go index b12ce0fd26..4711780e33 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/zz_generated.conversion.go similarity index 78% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/zz_generated.conversion.go index c524ca24a3..9a59f8ea29 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/zz_generated.conversion.go @@ -22,12 +22,22 @@ package v1alpha1 import ( api "k8s.io/kubernetes/pkg/api" + v1 "k8s.io/kubernetes/pkg/api/v1" policy "k8s.io/kubernetes/pkg/apis/policy" conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/pkg/runtime" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_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, @@ -36,10 +46,57 @@ func init() { Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec, Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus, Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) + ) +} + +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 { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..c5a4ee22a5 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,133 @@ +// +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 ( + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + v1 "k8s.io/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, + ) +} + +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) + out := out.(*PodDisruptionBudget) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1alpha1_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1alpha1_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodDisruptionBudgetList) + out := out.(*PodDisruptionBudgetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodDisruptionBudget, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_PodDisruptionBudget(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodDisruptionBudgetSpec) + out := out.(*PodDisruptionBudgetSpec) + out.MinAvailable = in.MinAvailable + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodDisruptionBudgetStatus) + out := out.(*PodDisruptionBudgetStatus) + out.PodDisruptionAllowed = in.PodDisruptionAllowed + out.CurrentHealthy = in.CurrentHealthy + out.DesiredHealthy = in.DesiredHealthy + out.ExpectedPods = in.ExpectedPods + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/zz_generated.deepcopy.go new file mode 100644 index 0000000000..ed2db3be69 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/policy/zz_generated.deepcopy.go @@ -0,0 +1,133 @@ +// +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 policy + +import ( + api "k8s.io/kubernetes/pkg/api" + unversioned "k8s.io/kubernetes/pkg/api/unversioned" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, + ) +} + +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) + out := out.(*PodDisruptionBudget) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodDisruptionBudgetList) + out := out.(*PodDisruptionBudgetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodDisruptionBudget, len(*in)) + for i := range *in { + if err := DeepCopy_policy_PodDisruptionBudget(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_policy_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodDisruptionBudgetSpec) + out := out.(*PodDisruptionBudgetSpec) + out.MinAvailable = in.MinAvailable + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + return nil + } +} + +func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodDisruptionBudgetStatus) + out := out.(*PodDisruptionBudgetStatus) + out.PodDisruptionAllowed = in.PodDisruptionAllowed + out.CurrentHealthy = in.CurrentHealthy + out.DesiredHealthy = in.DesiredHealthy + out.ExpectedPods = in.ExpectedPods + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/deep_copy_generated.go deleted file mode 100644 index 10d8c40f61..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/deep_copy_generated.go +++ /dev/null @@ -1,241 +0,0 @@ -// +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 rbac - -import ( - api "k8s.io/kubernetes/pkg/api" - conversion "k8s.io/kubernetes/pkg/conversion" - runtime "k8s.io/kubernetes/pkg/runtime" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_rbac_ClusterRole, - DeepCopy_rbac_ClusterRoleBinding, - DeepCopy_rbac_ClusterRoleBindingList, - DeepCopy_rbac_ClusterRoleList, - DeepCopy_rbac_PolicyRule, - DeepCopy_rbac_Role, - DeepCopy_rbac_RoleBinding, - DeepCopy_rbac_RoleBindingList, - DeepCopy_rbac_RoleList, - DeepCopy_rbac_Subject, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_rbac_ClusterRole(in ClusterRole, out *ClusterRole, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Rules != nil { - in, out := in.Rules, &out.Rules - *out = make([]PolicyRule, len(in)) - for i := range in { - if err := DeepCopy_rbac_PolicyRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Rules = nil - } - return nil -} - -func DeepCopy_rbac_ClusterRoleBinding(in ClusterRoleBinding, out *ClusterRoleBinding, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Subjects != nil { - in, out := in.Subjects, &out.Subjects - *out = make([]Subject, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Subjects = nil - } - out.RoleRef = in.RoleRef - return nil -} - -func DeepCopy_rbac_ClusterRoleBindingList(in ClusterRoleBindingList, out *ClusterRoleBindingList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ClusterRoleBinding, len(in)) - for i := range in { - if err := DeepCopy_rbac_ClusterRoleBinding(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_rbac_ClusterRoleList(in ClusterRoleList, out *ClusterRoleList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ClusterRole, len(in)) - for i := range in { - if err := DeepCopy_rbac_ClusterRole(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_rbac_PolicyRule(in PolicyRule, out *PolicyRule, c *conversion.Cloner) error { - if in.Verbs != nil { - in, out := in.Verbs, &out.Verbs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Verbs = nil - } - if in.AttributeRestrictions == nil { - out.AttributeRestrictions = nil - } else if newVal, err := c.DeepCopy(in.AttributeRestrictions); err != nil { - return err - } else { - out.AttributeRestrictions = newVal.(runtime.Object) - } - if in.APIGroups != nil { - in, out := in.APIGroups, &out.APIGroups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.APIGroups = nil - } - if in.Resources != nil { - in, out := in.Resources, &out.Resources - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Resources = nil - } - if in.ResourceNames != nil { - in, out := in.ResourceNames, &out.ResourceNames - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.ResourceNames = nil - } - if in.NonResourceURLs != nil { - in, out := in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.NonResourceURLs = nil - } - return nil -} - -func DeepCopy_rbac_Role(in Role, out *Role, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Rules != nil { - in, out := in.Rules, &out.Rules - *out = make([]PolicyRule, len(in)) - for i := range in { - if err := DeepCopy_rbac_PolicyRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Rules = nil - } - return nil -} - -func DeepCopy_rbac_RoleBinding(in RoleBinding, out *RoleBinding, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Subjects != nil { - in, out := in.Subjects, &out.Subjects - *out = make([]Subject, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Subjects = nil - } - out.RoleRef = in.RoleRef - return nil -} - -func DeepCopy_rbac_RoleBindingList(in RoleBindingList, out *RoleBindingList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]RoleBinding, len(in)) - for i := range in { - if err := DeepCopy_rbac_RoleBinding(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_rbac_RoleList(in RoleList, out *RoleList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Role, len(in)) - for i := range in { - if err := DeepCopy_rbac_Role(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_rbac_Subject(in Subject, out *Subject, c *conversion.Cloner) error { - out.Kind = in.Kind - out.APIVersion = in.APIVersion - out.Name = in.Name - out.Namespace = in.Namespace - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/install/install.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/install/install.go index 0f6dc91b9b..bfa9eea3ff 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/install/install.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/install/install.go @@ -115,7 +115,10 @@ func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, e func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { // add the internal version to Scheme - rbac.AddToScheme(api.Scheme) + if err := rbac.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } // add the enabled external versions to Scheme for _, v := range externalVersions { if !registered.IsEnabledVersion(v) { @@ -124,7 +127,10 @@ func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { } switch v { case v1alpha1.SchemeGroupVersion: - v1alpha1.AddToScheme(api.Scheme) + if err := v1alpha1.AddToScheme(api.Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } } } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/register.go index 5d89656e5a..101156b98d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/register.go @@ -38,13 +38,13 @@ func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } -func AddToScheme(scheme *runtime.Scheme) { - // Add the API to Scheme. - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Role{}, &RoleBinding{}, @@ -61,4 +61,5 @@ func addKnownTypes(scheme *runtime.Scheme) { &api.ExportOptions{}, ) versioned.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/types.go index 44a38971b4..9e971b4f8d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/types.go @@ -50,14 +50,17 @@ type PolicyRule struct { AttributeRestrictions runtime.Object // APIGroups is the name of the APIGroup that contains the resources. // If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + APIGroups []string // Resources is a list of resources this rule applies to. ResourceAll represents all resources. Resources []string // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string + // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path // If an action is not a resource API request, then the URL is split on '/' and is checked against the NonResourceURLs to look for a match. // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. + // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. NonResourceURLs []string } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/deep_copy_generated.go deleted file mode 100644 index 3f0e1eb360..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/deep_copy_generated.go +++ /dev/null @@ -1,238 +0,0 @@ -// +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 ( - api "k8s.io/kubernetes/pkg/api" - v1 "k8s.io/kubernetes/pkg/api/v1" - conversion "k8s.io/kubernetes/pkg/conversion" - runtime "k8s.io/kubernetes/pkg/runtime" -) - -func init() { - if err := api.Scheme.AddGeneratedDeepCopyFuncs( - DeepCopy_v1alpha1_ClusterRole, - DeepCopy_v1alpha1_ClusterRoleBinding, - DeepCopy_v1alpha1_ClusterRoleBindingList, - DeepCopy_v1alpha1_ClusterRoleList, - DeepCopy_v1alpha1_PolicyRule, - DeepCopy_v1alpha1_Role, - DeepCopy_v1alpha1_RoleBinding, - DeepCopy_v1alpha1_RoleBindingList, - DeepCopy_v1alpha1_RoleList, - DeepCopy_v1alpha1_Subject, - ); err != nil { - // if one of the deep copy functions is malformed, detect it immediately. - panic(err) - } -} - -func DeepCopy_v1alpha1_ClusterRole(in ClusterRole, out *ClusterRole, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Rules != nil { - in, out := in.Rules, &out.Rules - *out = make([]PolicyRule, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_PolicyRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Rules = nil - } - return nil -} - -func DeepCopy_v1alpha1_ClusterRoleBinding(in ClusterRoleBinding, out *ClusterRoleBinding, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Subjects != nil { - in, out := in.Subjects, &out.Subjects - *out = make([]Subject, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Subjects = nil - } - out.RoleRef = in.RoleRef - return nil -} - -func DeepCopy_v1alpha1_ClusterRoleBindingList(in ClusterRoleBindingList, out *ClusterRoleBindingList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ClusterRoleBinding, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_ClusterRoleBinding(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_ClusterRoleList(in ClusterRoleList, out *ClusterRoleList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]ClusterRole, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_ClusterRole(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_PolicyRule(in PolicyRule, out *PolicyRule, c *conversion.Cloner) error { - if in.Verbs != nil { - in, out := in.Verbs, &out.Verbs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Verbs = nil - } - if err := runtime.DeepCopy_runtime_RawExtension(in.AttributeRestrictions, &out.AttributeRestrictions, c); err != nil { - return err - } - if in.APIGroups != nil { - in, out := in.APIGroups, &out.APIGroups - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.APIGroups = nil - } - if in.Resources != nil { - in, out := in.Resources, &out.Resources - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.Resources = nil - } - if in.ResourceNames != nil { - in, out := in.ResourceNames, &out.ResourceNames - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.ResourceNames = nil - } - if in.NonResourceURLs != nil { - in, out := in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(in)) - copy(*out, in) - } else { - out.NonResourceURLs = nil - } - return nil -} - -func DeepCopy_v1alpha1_Role(in Role, out *Role, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Rules != nil { - in, out := in.Rules, &out.Rules - *out = make([]PolicyRule, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_PolicyRule(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Rules = nil - } - return nil -} - -func DeepCopy_v1alpha1_RoleBinding(in RoleBinding, out *RoleBinding, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if in.Subjects != nil { - in, out := in.Subjects, &out.Subjects - *out = make([]Subject, len(in)) - for i := range in { - (*out)[i] = in[i] - } - } else { - out.Subjects = nil - } - out.RoleRef = in.RoleRef - return nil -} - -func DeepCopy_v1alpha1_RoleBindingList(in RoleBindingList, out *RoleBindingList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]RoleBinding, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_RoleBinding(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_RoleList(in RoleList, out *RoleList, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := in.Items, &out.Items - *out = make([]Role, len(in)) - for i := range in { - if err := DeepCopy_v1alpha1_Role(in[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func DeepCopy_v1alpha1_Subject(in Subject, out *Subject, c *conversion.Cloner) error { - out.Kind = in.Kind - out.APIVersion = in.APIVersion - out.Name = in.Name - out.Namespace = in.Namespace - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.pb.go index fb917c356d..96e2fb3d63 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.pb.go @@ -42,6 +42,9 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -49,45 +52,49 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *ClusterRole) Reset() { *m = ClusterRole{} } -func (m *ClusterRole) String() string { return proto.CompactTextString(m) } -func (*ClusterRole) ProtoMessage() {} +// 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 *ClusterRole) Reset() { *m = ClusterRole{} } +func (*ClusterRole) ProtoMessage() {} +func (*ClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } -func (m *ClusterRoleBinding) String() string { return proto.CompactTextString(m) } -func (*ClusterRoleBinding) ProtoMessage() {} +func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } +func (*ClusterRoleBinding) ProtoMessage() {} +func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} } -func (m *ClusterRoleBindingList) String() string { return proto.CompactTextString(m) } -func (*ClusterRoleBindingList) ProtoMessage() {} +func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} } +func (*ClusterRoleBindingList) ProtoMessage() {} +func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} } -func (m *ClusterRoleList) String() string { return proto.CompactTextString(m) } -func (*ClusterRoleList) ProtoMessage() {} +func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} } +func (*ClusterRoleList) ProtoMessage() {} +func (*ClusterRoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } -func (m *PolicyRule) Reset() { *m = PolicyRule{} } -func (m *PolicyRule) String() string { return proto.CompactTextString(m) } -func (*PolicyRule) ProtoMessage() {} +func (m *PolicyRule) Reset() { *m = PolicyRule{} } +func (*PolicyRule) ProtoMessage() {} +func (*PolicyRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } -func (m *Role) Reset() { *m = Role{} } -func (m *Role) String() string { return proto.CompactTextString(m) } -func (*Role) ProtoMessage() {} +func (m *Role) Reset() { *m = Role{} } +func (*Role) ProtoMessage() {} +func (*Role) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } -func (m *RoleBinding) Reset() { *m = RoleBinding{} } -func (m *RoleBinding) String() string { return proto.CompactTextString(m) } -func (*RoleBinding) ProtoMessage() {} +func (m *RoleBinding) Reset() { *m = RoleBinding{} } +func (*RoleBinding) ProtoMessage() {} +func (*RoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } -func (m *RoleBindingList) Reset() { *m = RoleBindingList{} } -func (m *RoleBindingList) String() string { return proto.CompactTextString(m) } -func (*RoleBindingList) ProtoMessage() {} +func (m *RoleBindingList) Reset() { *m = RoleBindingList{} } +func (*RoleBindingList) ProtoMessage() {} +func (*RoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } -func (m *RoleList) Reset() { *m = RoleList{} } -func (m *RoleList) String() string { return proto.CompactTextString(m) } -func (*RoleList) ProtoMessage() {} +func (m *RoleList) Reset() { *m = RoleList{} } +func (*RoleList) ProtoMessage() {} +func (*RoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } -func (m *Subject) Reset() { *m = Subject{} } -func (m *Subject) String() string { return proto.CompactTextString(m) } -func (*Subject) ProtoMessage() {} +func (m *Subject) Reset() { *m = Subject{} } +func (*Subject) ProtoMessage() {} +func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } func init() { proto.RegisterType((*ClusterRole)(nil), "k8s.io.kubernetes.pkg.apis.rbac.v1alpha1.ClusterRole") @@ -764,6 +771,132 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *ClusterRole) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterRole{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterRoleBinding) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterRoleBinding{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "Subject", "Subject", 1), `&`, ``, 1) + `,`, + `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterRoleBindingList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterRoleBindingList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterRoleList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterRoleList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PolicyRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PolicyRule{`, + `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, + `AttributeRestrictions:` + strings.Replace(strings.Replace(this.AttributeRestrictions.String(), "RawExtension", "k8s_io_kubernetes_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, + `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, + `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, + `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, + `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, + `}`, + }, "") + return s +} +func (this *Role) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Role{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RoleBinding) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RoleBinding{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "Subject", "Subject", 1), `&`, ``, 1) + `,`, + `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RoleBindingList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RoleBindingList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RoleList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RoleList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Role", "Role", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Subject) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Subject{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `}`, + }, "") + 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 *ClusterRole) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -2207,3 +2340,56 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 775 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x54, 0xc1, 0x4f, 0x13, 0x4f, + 0x14, 0x66, 0x69, 0xfb, 0xa3, 0x3b, 0xfc, 0x9a, 0xca, 0x1a, 0x4c, 0xd3, 0x44, 0x20, 0x3d, 0x35, + 0x22, 0xb3, 0x29, 0x91, 0xc8, 0x41, 0x0f, 0xac, 0x31, 0x86, 0x88, 0x48, 0x86, 0x48, 0x94, 0xc4, + 0x98, 0xed, 0x76, 0x28, 0x6b, 0xdb, 0xdd, 0x66, 0x66, 0x16, 0xf5, 0x46, 0xfc, 0x0b, 0xfc, 0x1b, + 0xbc, 0x79, 0xf5, 0x6a, 0xe2, 0xc1, 0x13, 0x07, 0x0f, 0x1c, 0x8d, 0x07, 0xa2, 0xf8, 0x8f, 0xf8, + 0x66, 0x76, 0x97, 0xdd, 0xd2, 0x56, 0x2a, 0x89, 0x24, 0x26, 0x1e, 0x26, 0xb0, 0xef, 0x7d, 0xdf, + 0xb7, 0xef, 0x7b, 0x3b, 0xfd, 0xd0, 0x72, 0x6b, 0x99, 0x63, 0xd7, 0x37, 0x5b, 0x41, 0x9d, 0x32, + 0x8f, 0x0a, 0xca, 0xcd, 0x6e, 0xab, 0x69, 0xda, 0x5d, 0x97, 0x9b, 0xac, 0x6e, 0x3b, 0xe6, 0x5e, + 0xcd, 0x6e, 0x77, 0x77, 0xed, 0x9a, 0xd9, 0xa4, 0x1e, 0x65, 0xb6, 0xa0, 0x0d, 0xdc, 0x65, 0xbe, + 0xf0, 0x8d, 0x6a, 0xc8, 0xc4, 0x09, 0x13, 0x03, 0x13, 0x4b, 0x26, 0x96, 0x4c, 0x1c, 0x33, 0xcb, + 0x0b, 0x4d, 0x57, 0xec, 0x06, 0x75, 0xec, 0xf8, 0x1d, 0xb3, 0xe9, 0x37, 0x7d, 0x53, 0x09, 0xd4, + 0x83, 0x1d, 0xf5, 0xa4, 0x1e, 0xd4, 0x7f, 0xa1, 0x70, 0x79, 0x71, 0xe8, 0x48, 0x26, 0xa3, 0xdc, + 0x0f, 0x98, 0x43, 0x4f, 0x0f, 0x53, 0x5e, 0x1a, 0xce, 0x09, 0xbc, 0x3d, 0xca, 0xb8, 0xeb, 0x7b, + 0xb4, 0xd1, 0x47, 0xbb, 0x3e, 0x9c, 0xb6, 0xd7, 0xe7, 0xb8, 0xbc, 0x30, 0x18, 0xcd, 0x02, 0x4f, + 0xb8, 0x9d, 0xfe, 0x99, 0x6a, 0x83, 0xe1, 0x81, 0x70, 0xdb, 0xa6, 0xeb, 0x09, 0x2e, 0xd8, 0x69, + 0x4a, 0xe5, 0x93, 0x86, 0x26, 0xef, 0xb4, 0x03, 0x2e, 0x28, 0x23, 0x7e, 0x9b, 0x1a, 0x8f, 0x51, + 0xbe, 0x43, 0x85, 0xdd, 0xb0, 0x85, 0x5d, 0xd2, 0xe6, 0xb4, 0xea, 0xe4, 0x62, 0x15, 0x0f, 0x5d, + 0x3b, 0x2c, 0x1c, 0x3f, 0xac, 0x3f, 0xa7, 0x8e, 0x78, 0x00, 0x1c, 0xcb, 0x38, 0x38, 0x9a, 0x1d, + 0x3b, 0x3e, 0x9a, 0x45, 0x49, 0x8d, 0x9c, 0xa8, 0x19, 0x4f, 0x50, 0x8e, 0x05, 0x6d, 0xca, 0x4b, + 0xe3, 0x73, 0x19, 0x90, 0xbd, 0x81, 0x47, 0xfd, 0x9a, 0x78, 0xc3, 0x6f, 0xbb, 0xce, 0x2b, 0x02, + 0x64, 0xab, 0x10, 0xbd, 0x22, 0x27, 0x9f, 0x38, 0x09, 0x15, 0x2b, 0xef, 0xc6, 0x91, 0x91, 0x32, + 0x61, 0xb9, 0x5e, 0xc3, 0xf5, 0x9a, 0x7f, 0xd0, 0xcb, 0x33, 0x94, 0xe7, 0x81, 0x6a, 0xc4, 0x76, + 0x6a, 0xa3, 0xdb, 0xd9, 0x0c, 0x99, 0xd6, 0xa5, 0xe8, 0x15, 0xf9, 0xa8, 0xc0, 0xc9, 0x89, 0x28, + 0x8c, 0x3e, 0xc1, 0xc0, 0x09, 0xa1, 0x3b, 0xa5, 0x8c, 0x9a, 0x7c, 0x61, 0x94, 0xc9, 0x01, 0x4e, + 0x19, 0xf5, 0x1c, 0x6a, 0x15, 0x23, 0xed, 0x09, 0x12, 0xaa, 0x90, 0x58, 0xae, 0xf2, 0x55, 0x43, + 0x57, 0xfa, 0x77, 0xb5, 0xe6, 0x72, 0x61, 0x3c, 0xed, 0xdb, 0x97, 0xf9, 0x8b, 0xb7, 0xa6, 0x6e, + 0x39, 0x96, 0x74, 0xb5, 0xb6, 0x13, 0x4f, 0x71, 0x25, 0xb5, 0x34, 0x1b, 0xe5, 0x5c, 0x41, 0x3b, + 0xf1, 0xc6, 0x6e, 0x8d, 0xbe, 0xb1, 0xfe, 0x79, 0x93, 0x8b, 0xb0, 0x2a, 0x25, 0x49, 0xa8, 0x5c, + 0xf9, 0xac, 0xa1, 0x62, 0x0a, 0x7c, 0x11, 0xae, 0xb6, 0x7b, 0x5d, 0x2d, 0x9d, 0xcf, 0xd5, 0x60, + 0x3b, 0xaf, 0x33, 0x08, 0x25, 0x97, 0xdf, 0x98, 0x45, 0x39, 0x18, 0xae, 0xce, 0xc1, 0x46, 0xa6, + 0xaa, 0x5b, 0xba, 0xc4, 0x6f, 0xc9, 0x02, 0x09, 0xeb, 0xc6, 0xbe, 0x86, 0xa6, 0x6d, 0x21, 0x98, + 0x5b, 0x0f, 0x04, 0x7c, 0x6c, 0xf8, 0xbd, 0xbb, 0x8e, 0x00, 0x2f, 0x72, 0x38, 0x69, 0x7c, 0x7e, + 0xc8, 0x70, 0x51, 0x9e, 0x60, 0x62, 0xbf, 0xb8, 0xfb, 0x52, 0x50, 0x4f, 0xfa, 0xb7, 0xae, 0x46, + 0x23, 0x4d, 0xaf, 0x0c, 0x52, 0x24, 0x83, 0x5f, 0x64, 0xcc, 0x23, 0x1d, 0xac, 0xde, 0x63, 0x7e, + 0xd0, 0xe5, 0x70, 0x75, 0xe5, 0x9c, 0x05, 0x10, 0xd1, 0x57, 0x36, 0x56, 0xc3, 0x22, 0x49, 0xfa, + 0x12, 0x1c, 0xe7, 0x2b, 0x2f, 0x65, 0x13, 0x30, 0x89, 0x8b, 0x24, 0xe9, 0x1b, 0x37, 0x51, 0x21, + 0x7e, 0x58, 0xb7, 0x3b, 0x40, 0xc8, 0x29, 0xc2, 0x14, 0x10, 0x0a, 0x24, 0xdd, 0x20, 0xbd, 0x38, + 0xe3, 0x36, 0x2a, 0x7a, 0xbe, 0x17, 0x43, 0x1e, 0x91, 0x35, 0x5e, 0xfa, 0x4f, 0x51, 0x2f, 0x03, + 0xb5, 0xb8, 0xde, 0xdb, 0x22, 0xa7, 0xb1, 0x95, 0x0f, 0x1a, 0xca, 0xfe, 0xbd, 0xd1, 0xf8, 0x76, + 0x1c, 0x4d, 0xfe, 0xcb, 0xc4, 0x33, 0x32, 0x51, 0xc6, 0xc6, 0x05, 0x87, 0xe1, 0xf9, 0x63, 0xe3, + 0xec, 0x14, 0xfc, 0xa8, 0xa1, 0xfc, 0x45, 0xc5, 0xdf, 0x66, 0xaf, 0x0f, 0xfc, 0x9b, 0x3e, 0x06, + 0x1b, 0x78, 0xaf, 0xa1, 0x89, 0xe8, 0x02, 0x18, 0x73, 0x28, 0xdb, 0x02, 0xb7, 0x6a, 0x76, 0xdd, + 0xfa, 0x3f, 0xc2, 0x67, 0xef, 0x43, 0x8d, 0xa8, 0x8e, 0xb1, 0x88, 0x10, 0xc8, 0x6f, 0x85, 0x73, + 0xab, 0xa4, 0xd3, 0x93, 0xab, 0x0a, 0xb9, 0x13, 0x75, 0x48, 0x0a, 0x25, 0x55, 0x3d, 0x08, 0x07, + 0x75, 0x91, 0x52, 0xaa, 0x32, 0x30, 0x88, 0xea, 0x18, 0x26, 0xd2, 0xe5, 0x5f, 0xde, 0xb5, 0x1d, + 0x0a, 0xd9, 0x24, 0x61, 0x53, 0x11, 0x4c, 0x5f, 0x8f, 0x1b, 0x24, 0xc1, 0x58, 0xd7, 0x0e, 0xbe, + 0xcf, 0x8c, 0x1d, 0xc2, 0xf9, 0x02, 0x67, 0xff, 0x78, 0x46, 0x3b, 0x80, 0x73, 0x08, 0xe7, 0x1b, + 0x9c, 0x37, 0x3f, 0x66, 0xc6, 0xb6, 0xf3, 0xb1, 0xf7, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf2, + 0x51, 0x62, 0x4c, 0x04, 0x0b, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.proto b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.proto index 062f815b81..4973e07657 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.proto +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.proto @@ -91,9 +91,10 @@ message PolicyRule { // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. repeated string resourceNames = 5; - // NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path + // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. + // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. repeated string nonResourceURLs = 6; } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/register.go index cff47206bb..f3a6b5b762 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/register.go @@ -27,12 +27,13 @@ import ( // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: rbac.GroupName, Version: "v1alpha1"} -func AddToScheme(scheme *runtime.Scheme) { - addKnownTypes(scheme) -} +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) // Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) { +func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Role{}, &RoleBinding{}, @@ -49,4 +50,5 @@ func addKnownTypes(scheme *runtime.Scheme) { &v1.ExportOptions{}, ) versioned.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.generated.go index bf7b3db2bf..1bc332d2d6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.generated.go @@ -91,13 +91,15 @@ func (x *PolicyRule) CodecEncodeSelf(e *codec1978.Encoder) { _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[1] = true + yyq2[2] = len(x.APIGroups) != 0 + yyq2[3] = len(x.Resources) != 0 yyq2[4] = len(x.ResourceNames) != 0 yyq2[5] = len(x.NonResourceURLs) != 0 var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { - yynn2 = 3 + yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ @@ -168,55 +170,67 @@ func (x *PolicyRule) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.APIGroups == nil { - r.EncodeNil() - } else { - yym12 := z.EncBinary() - _ = yym12 - if false { + if yyq2[2] { + if x.APIGroups == nil { + r.EncodeNil() } else { - z.F.EncSliceStringV(x.APIGroups, false, e) + yym12 := z.EncBinary() + _ = yym12 + if false { + } else { + z.F.EncSliceStringV(x.APIGroups, false, e) + } } + } else { + r.EncodeNil() } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiGroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.APIGroups == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiGroups")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.APIGroups == nil { + r.EncodeNil() } else { - z.F.EncSliceStringV(x.APIGroups, false, e) + yym13 := z.EncBinary() + _ = yym13 + if false { + } else { + z.F.EncSliceStringV(x.APIGroups, false, e) + } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Resources == nil { - r.EncodeNil() - } else { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq2[3] { + if x.Resources == nil { + r.EncodeNil() } else { - z.F.EncSliceStringV(x.Resources, false, e) + yym15 := z.EncBinary() + _ = yym15 + if false { + } else { + z.F.EncSliceStringV(x.Resources, false, e) + } } + } else { + r.EncodeNil() } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resources")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Resources == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { + if yyq2[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Resources == nil { + r.EncodeNil() } else { - z.F.EncSliceStringV(x.Resources, false, e) + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + z.F.EncSliceStringV(x.Resources, false, e) + } } } } @@ -299,25 +313,25 @@ func (x *PolicyRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym23 := z.DecBinary() + _ = yym23 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct24 := r.ContainerType() + if yyct24 == codecSelferValueTypeMap1234 { + yyl24 := r.ReadMapStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl24, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct24 == codecSelferValueTypeArray1234 { + yyl24 := r.ReadArrayStart() + if yyl24 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl24, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -329,12 +343,12 @@ func (x *PolicyRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys25Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys25Slc + var yyhl25 bool = l >= 0 + for yyj25 := 0; ; yyj25++ { + if yyhl25 { + if yyj25 >= l { break } } else { @@ -343,89 +357,89 @@ func (x *PolicyRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys25Slc = r.DecodeBytes(yys25Slc, true, true) + yys25 := string(yys25Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys25 { case "verbs": if r.TryDecodeAsNil() { x.Verbs = nil } else { - yyv4 := &x.Verbs - yym5 := z.DecBinary() - _ = yym5 + yyv26 := &x.Verbs + yym27 := z.DecBinary() + _ = yym27 if false { } else { - z.F.DecSliceStringX(yyv4, false, d) + z.F.DecSliceStringX(yyv26, false, d) } } case "attributeRestrictions": if r.TryDecodeAsNil() { x.AttributeRestrictions = pkg1_runtime.RawExtension{} } else { - yyv6 := &x.AttributeRestrictions - yym7 := z.DecBinary() - _ = yym7 + yyv28 := &x.AttributeRestrictions + yym29 := z.DecBinary() + _ = yym29 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(yyv28) { + } else if !yym29 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv28) } else { - z.DecFallback(yyv6, false) + z.DecFallback(yyv28, false) } } case "apiGroups": if r.TryDecodeAsNil() { x.APIGroups = nil } else { - yyv8 := &x.APIGroups - yym9 := z.DecBinary() - _ = yym9 + yyv30 := &x.APIGroups + yym31 := z.DecBinary() + _ = yym31 if false { } else { - z.F.DecSliceStringX(yyv8, false, d) + z.F.DecSliceStringX(yyv30, false, d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = nil } else { - yyv10 := &x.Resources - yym11 := z.DecBinary() - _ = yym11 + yyv32 := &x.Resources + yym33 := z.DecBinary() + _ = yym33 if false { } else { - z.F.DecSliceStringX(yyv10, false, d) + z.F.DecSliceStringX(yyv32, false, d) } } case "resourceNames": if r.TryDecodeAsNil() { x.ResourceNames = nil } else { - yyv12 := &x.ResourceNames - yym13 := z.DecBinary() - _ = yym13 + yyv34 := &x.ResourceNames + yym35 := z.DecBinary() + _ = yym35 if false { } else { - z.F.DecSliceStringX(yyv12, false, d) + z.F.DecSliceStringX(yyv34, false, d) } } case "nonResourceURLs": if r.TryDecodeAsNil() { x.NonResourceURLs = nil } else { - yyv14 := &x.NonResourceURLs - yym15 := z.DecBinary() - _ = yym15 + yyv36 := &x.NonResourceURLs + yym37 := z.DecBinary() + _ = yym37 if false { } else { - z.F.DecSliceStringX(yyv14, false, d) + z.F.DecSliceStringX(yyv36, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys25) + } // end switch yys25 + } // end for yyj25 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -433,16 +447,16 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj16 int - var yyb16 bool - var yyhl16 bool = l >= 0 - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + var yyj38 int + var yyb38 bool + var yyhl38 bool = l >= 0 + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -450,21 +464,21 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Verbs = nil } else { - yyv17 := &x.Verbs - yym18 := z.DecBinary() - _ = yym18 + yyv39 := &x.Verbs + yym40 := z.DecBinary() + _ = yym40 if false { } else { - z.F.DecSliceStringX(yyv17, false, d) + z.F.DecSliceStringX(yyv39, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -472,24 +486,24 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.AttributeRestrictions = pkg1_runtime.RawExtension{} } else { - yyv19 := &x.AttributeRestrictions - yym20 := z.DecBinary() - _ = yym20 + yyv41 := &x.AttributeRestrictions + yym42 := z.DecBinary() + _ = yym42 if false { - } else if z.HasExtensions() && z.DecExt(yyv19) { - } else if !yym20 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv19) + } else if z.HasExtensions() && z.DecExt(yyv41) { + } else if !yym42 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv41) } else { - z.DecFallback(yyv19, false) + z.DecFallback(yyv41, false) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -497,21 +511,21 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.APIGroups = nil } else { - yyv21 := &x.APIGroups - yym22 := z.DecBinary() - _ = yym22 + yyv43 := &x.APIGroups + yym44 := z.DecBinary() + _ = yym44 if false { } else { - z.F.DecSliceStringX(yyv21, false, d) + z.F.DecSliceStringX(yyv43, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -519,21 +533,21 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Resources = nil } else { - yyv23 := &x.Resources - yym24 := z.DecBinary() - _ = yym24 + yyv45 := &x.Resources + yym46 := z.DecBinary() + _ = yym46 if false { } else { - z.F.DecSliceStringX(yyv23, false, d) + z.F.DecSliceStringX(yyv45, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -541,21 +555,21 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ResourceNames = nil } else { - yyv25 := &x.ResourceNames - yym26 := z.DecBinary() - _ = yym26 + yyv47 := &x.ResourceNames + yym48 := z.DecBinary() + _ = yym48 if false { } else { - z.F.DecSliceStringX(yyv25, false, d) + z.F.DecSliceStringX(yyv47, false, d) } } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -563,26 +577,26 @@ func (x *PolicyRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NonResourceURLs = nil } else { - yyv27 := &x.NonResourceURLs - yym28 := z.DecBinary() - _ = yym28 + yyv49 := &x.NonResourceURLs + yym50 := z.DecBinary() + _ = yym50 if false { } else { - z.F.DecSliceStringX(yyv27, false, d) + z.F.DecSliceStringX(yyv49, false, d) } } for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l } else { - yyb16 = r.CheckBreak() + yyb38 = r.CheckBreak() } - if yyb16 { + if yyb38 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj16-1, "") + z.DecStructFieldNotFound(yyj38-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -594,35 +608,35 @@ func (x *Subject) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym51 := z.EncBinary() + _ = yym51 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[1] = x.APIVersion != "" - yyq2[3] = x.Namespace != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep52 := !z.EncBinary() + yy2arr52 := z.EncBasicHandle().StructToArray + var yyq52 [4]bool + _, _, _ = yysep52, yyq52, yy2arr52 + const yyr52 bool = false + yyq52[1] = x.APIVersion != "" + yyq52[3] = x.Namespace != "" + var yynn52 int + if yyr52 || yy2arr52 { r.EncodeArrayStart(4) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn52 = 2 + for _, b := range yyq52 { if b { - yynn2++ + yynn52++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn52) + yynn52 = 0 } - if yyr2 || yy2arr2 { + if yyr52 || yy2arr52 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 + yym54 := z.EncBinary() + _ = yym54 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -631,18 +645,18 @@ func (x *Subject) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 + yym55 := z.EncBinary() + _ = yym55 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr2 || yy2arr2 { + if yyr52 || yy2arr52 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 + if yyq52[1] { + yym57 := z.EncBinary() + _ = yym57 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -651,22 +665,22 @@ func (x *Subject) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq52[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 + yym58 := z.EncBinary() + _ = yym58 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr52 || yy2arr52 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym60 := z.EncBinary() + _ = yym60 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -675,18 +689,18 @@ func (x *Subject) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym61 := z.EncBinary() + _ = yym61 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2 || yy2arr2 { + if yyr52 || yy2arr52 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 + if yyq52[3] { + yym63 := z.EncBinary() + _ = yym63 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -695,19 +709,19 @@ func (x *Subject) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { + if yyq52[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 + yym64 := z.EncBinary() + _ = yym64 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr2 || yy2arr2 { + if yyr52 || yy2arr52 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -720,25 +734,25 @@ func (x *Subject) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym65 := z.DecBinary() + _ = yym65 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct66 := r.ContainerType() + if yyct66 == codecSelferValueTypeMap1234 { + yyl66 := r.ReadMapStart() + if yyl66 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl66, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct66 == codecSelferValueTypeArray1234 { + yyl66 := r.ReadArrayStart() + if yyl66 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl66, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -750,12 +764,12 @@ func (x *Subject) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys67Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys67Slc + var yyhl67 bool = l >= 0 + for yyj67 := 0; ; yyj67++ { + if yyhl67 { + if yyj67 >= l { break } } else { @@ -764,10 +778,10 @@ func (x *Subject) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys67Slc = r.DecodeBytes(yys67Slc, true, true) + yys67 := string(yys67Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys67 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -793,9 +807,9 @@ func (x *Subject) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Namespace = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys67) + } // end switch yys67 + } // end for yyj67 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -803,16 +817,16 @@ func (x *Subject) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj72 int + var yyb72 bool + var yyhl72 bool = l >= 0 + yyj72++ + if yyhl72 { + yyb72 = yyj72 > l } else { - yyb8 = r.CheckBreak() + yyb72 = r.CheckBreak() } - if yyb8 { + if yyb72 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -822,13 +836,13 @@ func (x *Subject) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj72++ + if yyhl72 { + yyb72 = yyj72 > l } else { - yyb8 = r.CheckBreak() + yyb72 = r.CheckBreak() } - if yyb8 { + if yyb72 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -838,13 +852,13 @@ func (x *Subject) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj72++ + if yyhl72 { + yyb72 = yyj72 > l } else { - yyb8 = r.CheckBreak() + yyb72 = r.CheckBreak() } - if yyb8 { + if yyb72 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -854,13 +868,13 @@ func (x *Subject) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj72++ + if yyhl72 { + yyb72 = yyj72 > l } else { - yyb8 = r.CheckBreak() + yyb72 = r.CheckBreak() } - if yyb8 { + if yyb72 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -871,17 +885,17 @@ func (x *Subject) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Namespace = string(r.DecodeString()) } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj72++ + if yyhl72 { + yyb72 = yyj72 > l } else { - yyb8 = r.CheckBreak() + yyb72 = r.CheckBreak() } - if yyb8 { + if yyb72 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj8-1, "") + z.DecStructFieldNotFound(yyj72-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -893,127 +907,127 @@ func (x *Role) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym77 := z.EncBinary() + _ = yym77 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep78 := !z.EncBinary() + yy2arr78 := z.EncBasicHandle().StructToArray + var yyq78 [4]bool + _, _, _ = yysep78, yyq78, yy2arr78 + const yyr78 bool = false + yyq78[0] = x.Kind != "" + yyq78[1] = x.APIVersion != "" + yyq78[2] = true + var yynn78 int + if yyr78 || yy2arr78 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn78 = 1 + for _, b := range yyq78 { if b { - yynn2++ + yynn78++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn78) + yynn78 = 0 } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq78[0] { + yym80 := z.EncBinary() + _ = yym80 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq78[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym81 := z.EncBinary() + _ = yym81 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Rules == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq78[1] { + yym83 := z.EncBinary() + _ = yym83 if false { } else { - h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rules")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Rules == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq78[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym84 := z.EncBinary() + _ = yym84 if false { } else { - h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq78[2] { + yy86 := &x.ObjectMeta + yy86.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq78[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy87 := &x.ObjectMeta + yy87.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Rules == nil { + r.EncodeNil() + } else { + yym89 := z.EncBinary() + _ = yym89 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rules")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Rules == nil { + r.EncodeNil() + } else { + yym90 := z.EncBinary() + _ = yym90 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) } } } - if yyr2 || yy2arr2 { + if yyr78 || yy2arr78 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1026,25 +1040,25 @@ func (x *Role) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym91 := z.DecBinary() + _ = yym91 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct92 := r.ContainerType() + if yyct92 == codecSelferValueTypeMap1234 { + yyl92 := r.ReadMapStart() + if yyl92 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl92, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct92 == codecSelferValueTypeArray1234 { + yyl92 := r.ReadArrayStart() + if yyl92 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl92, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1056,12 +1070,12 @@ func (x *Role) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys93Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys93Slc + var yyhl93 bool = l >= 0 + for yyj93 := 0; ; yyj93++ { + if yyhl93 { + if yyj93 >= l { break } } else { @@ -1070,45 +1084,45 @@ func (x *Role) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys93Slc = r.DecodeBytes(yys93Slc, true, true) + yys93 := string(yys93Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys93 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv96 := &x.ObjectMeta + yyv96.CodecDecodeSelf(d) } case "rules": if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv5 := &x.Rules - yym6 := z.DecBinary() - _ = yym6 + yyv97 := &x.Rules + yym98 := z.DecBinary() + _ = yym98 if false { } else { - h.decSlicePolicyRule((*[]PolicyRule)(yyv5), d) + h.decSlicePolicyRule((*[]PolicyRule)(yyv97), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys93) + } // end switch yys93 + } // end for yyj93 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1116,92 +1130,92 @@ func (x *Role) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj99 int + var yyb99 bool + var yyhl99 bool = l >= 0 + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb9 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb9 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb9 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb9 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Rules = nil + x.APIVersion = "" } else { - yyv11 := &x.Rules - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - h.decSlicePolicyRule((*[]PolicyRule)(yyv11), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb9 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb9 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv102 := &x.ObjectMeta + yyv102.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb9 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb9 { + if yyb99 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Rules = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv103 := &x.Rules + yym104 := z.DecBinary() + _ = yym104 + if false { + } else { + h.decSlicePolicyRule((*[]PolicyRule)(yyv103), d) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj99++ + if yyhl99 { + yyb99 = yyj99 > l } else { - yyb9 = r.CheckBreak() + yyb99 = r.CheckBreak() } - if yyb9 { + if yyb99 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj99-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1213,56 +1227,106 @@ func (x *RoleBinding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym105 := z.EncBinary() + _ = yym105 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] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep106 := !z.EncBinary() + yy2arr106 := z.EncBasicHandle().StructToArray + var yyq106 [5]bool + _, _, _ = yysep106, yyq106, yy2arr106 + const yyr106 bool = false + yyq106[0] = x.Kind != "" + yyq106[1] = x.APIVersion != "" + yyq106[2] = true + var yynn106 int + if yyr106 || yy2arr106 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn106 = 2 + for _, b := range yyq106 { if b { - yynn2++ + yynn106++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn106) + yynn106 = 0 } - if yyr2 || yy2arr2 { + if yyr106 || yy2arr106 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq106[0] { + yym108 := z.EncBinary() + _ = yym108 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq106[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym109 := z.EncBinary() + _ = yym109 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr106 || yy2arr106 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq106[1] { + yym111 := z.EncBinary() + _ = yym111 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq106[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym112 := z.EncBinary() + _ = yym112 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr106 || yy2arr106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq106[2] { + yy114 := &x.ObjectMeta + yy114.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2[0] { + if yyq106[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yy115 := &x.ObjectMeta + yy115.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr106 || yy2arr106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subjects == nil { r.EncodeNil() } else { - yym9 := z.EncBinary() - _ = yym9 + yym117 := z.EncBinary() + _ = yym117 if false { } else { h.encSliceSubject(([]Subject)(x.Subjects), e) @@ -1275,76 +1339,26 @@ func (x *RoleBinding) CodecEncodeSelf(e *codec1978.Encoder) { if x.Subjects == nil { r.EncodeNil() } else { - yym10 := z.EncBinary() - _ = yym10 + yym118 := z.EncBinary() + _ = yym118 if false { } else { h.encSliceSubject(([]Subject)(x.Subjects), e) } } } - if yyr2 || yy2arr2 { + if yyr106 || yy2arr106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy12 := &x.RoleRef - yy12.CodecEncodeSelf(e) + yy120 := &x.RoleRef + yy120.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("roleRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.RoleRef - yy14.CodecEncodeSelf(e) + yy121 := &x.RoleRef + yy121.CodecEncodeSelf(e) } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { + if yyr106 || yy2arr106 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1357,25 +1371,25 @@ func (x *RoleBinding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym122 := z.DecBinary() + _ = yym122 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct123 := r.ContainerType() + if yyct123 == codecSelferValueTypeMap1234 { + yyl123 := r.ReadMapStart() + if yyl123 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl123, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct123 == codecSelferValueTypeArray1234 { + yyl123 := r.ReadArrayStart() + if yyl123 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl123, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1387,12 +1401,12 @@ func (x *RoleBinding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys124Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys124Slc + var yyhl124 bool = l >= 0 + for yyj124 := 0; ; yyj124++ { + if yyhl124 { + if yyj124 >= l { break } } else { @@ -1401,52 +1415,52 @@ func (x *RoleBinding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys124Slc = r.DecodeBytes(yys124Slc, true, true) + yys124 := string(yys124Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys124 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv127 := &x.ObjectMeta + yyv127.CodecDecodeSelf(d) } case "subjects": if r.TryDecodeAsNil() { x.Subjects = nil } else { - yyv5 := &x.Subjects - yym6 := z.DecBinary() - _ = yym6 + yyv128 := &x.Subjects + yym129 := z.DecBinary() + _ = yym129 if false { } else { - h.decSliceSubject((*[]Subject)(yyv5), d) + h.decSliceSubject((*[]Subject)(yyv128), d) } } case "roleRef": if r.TryDecodeAsNil() { x.RoleRef = pkg3_v1.ObjectReference{} } else { - yyv7 := &x.RoleRef - yyv7.CodecDecodeSelf(d) - } - 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()) + yyv130 := &x.RoleRef + yyv130.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys124) + } // end switch yys124 + } // end for yyj124 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1454,109 +1468,109 @@ func (x *RoleBinding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_v1.ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Subjects = nil + x.APIVersion = "" } else { - yyv12 := &x.Subjects - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - h.decSliceSubject((*[]Subject)(yyv12), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.RoleRef = pkg3_v1.ObjectReference{} + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv14 := &x.RoleRef - yyv14.CodecDecodeSelf(d) + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Subjects = nil } else { - x.Kind = string(r.DecodeString()) + yyv135 := &x.Subjects + yym136 := z.DecBinary() + _ = yym136 + if false { + } else { + h.decSliceSubject((*[]Subject)(yyv135), d) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.RoleRef = pkg3_v1.ObjectReference{} } else { - x.APIVersion = string(r.DecodeString()) + yyv137 := &x.RoleRef + yyv137.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l } else { - yyb10 = r.CheckBreak() + yyb131 = r.CheckBreak() } - if yyb10 { + if yyb131 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj131-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1568,139 +1582,139 @@ func (x *RoleBindingList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym138 := z.EncBinary() + _ = yym138 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep139 := !z.EncBinary() + yy2arr139 := z.EncBasicHandle().StructToArray + var yyq139 [4]bool + _, _, _ = yysep139, yyq139, yy2arr139 + const yyr139 bool = false + yyq139[0] = x.Kind != "" + yyq139[1] = x.APIVersion != "" + yyq139[2] = true + var yynn139 int + if yyr139 || yy2arr139 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn139 = 1 + for _, b := range yyq139 { if b { - yynn2++ + yynn139++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn139) + yynn139 = 0 } - if yyr2 || yy2arr2 { + if yyr139 || yy2arr139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq139[0] { + yym141 := z.EncBinary() + _ = yym141 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq139[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym142 := z.EncBinary() + _ = yym142 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr139 || yy2arr139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq139[1] { + yym144 := z.EncBinary() + _ = yym144 if false { } else { - h.encSliceRoleBinding(([]RoleBinding)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq139[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym145 := z.EncBinary() + _ = yym145 if false { } else { - h.encSliceRoleBinding(([]RoleBinding)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr139 || yy2arr139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq139[2] { + yy147 := &x.ListMeta + yym148 := z.EncBinary() + _ = yym148 if false { + } else if z.HasExtensions() && z.EncExt(yy147) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy147) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq139[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy149 := &x.ListMeta + yym150 := z.EncBinary() + _ = yym150 if false { + } else if z.HasExtensions() && z.EncExt(yy149) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy149) } } } - if yyr2 || yy2arr2 { + if yyr139 || yy2arr139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym152 := z.EncBinary() + _ = yym152 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceRoleBinding(([]RoleBinding)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym153 := z.EncBinary() + _ = yym153 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceRoleBinding(([]RoleBinding)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr139 || yy2arr139 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1713,25 +1727,25 @@ func (x *RoleBindingList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym154 := z.DecBinary() + _ = yym154 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct155 := r.ContainerType() + if yyct155 == codecSelferValueTypeMap1234 { + yyl155 := r.ReadMapStart() + if yyl155 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl155, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct155 == codecSelferValueTypeArray1234 { + yyl155 := r.ReadArrayStart() + if yyl155 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl155, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1743,12 +1757,12 @@ func (x *RoleBindingList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys156Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys156Slc + var yyhl156 bool = l >= 0 + for yyj156 := 0; ; yyj156++ { + if yyhl156 { + if yyj156 >= l { break } } else { @@ -1757,51 +1771,51 @@ func (x *RoleBindingList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys156Slc = r.DecodeBytes(yys156Slc, true, true) + yys156 := string(yys156Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys156 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv159 := &x.ListMeta + yym160 := z.DecBinary() + _ = yym160 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv159) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv159, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv161 := &x.Items + yym162 := z.DecBinary() + _ = yym162 if false { } else { - h.decSliceRoleBinding((*[]RoleBinding)(yyv6), d) + h.decSliceRoleBinding((*[]RoleBinding)(yyv161), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys156) + } // end switch yys156 + } // end for yyj156 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1809,98 +1823,98 @@ func (x *RoleBindingList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj163 int + var yyb163 bool + var yyhl163 bool = l >= 0 + yyj163++ + if yyhl163 { + yyb163 = yyj163 > l } else { - yyb10 = r.CheckBreak() + yyb163 = r.CheckBreak() } - if yyb10 { + if yyb163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj163++ + if yyhl163 { + yyb163 = yyj163 > l } else { - yyb10 = r.CheckBreak() + yyb163 = r.CheckBreak() } - if yyb10 { + if yyb163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceRoleBinding((*[]RoleBinding)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj163++ + if yyhl163 { + yyb163 = yyj163 > l } else { - yyb10 = r.CheckBreak() + yyb163 = r.CheckBreak() } - if yyb10 { + if yyb163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv166 := &x.ListMeta + yym167 := z.DecBinary() + _ = yym167 + if false { + } else if z.HasExtensions() && z.DecExt(yyv166) { + } else { + z.DecFallback(yyv166, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj163++ + if yyhl163 { + yyb163 = yyj163 > l } else { - yyb10 = r.CheckBreak() + yyb163 = r.CheckBreak() } - if yyb10 { + if yyb163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv168 := &x.Items + yym169 := z.DecBinary() + _ = yym169 + if false { + } else { + h.decSliceRoleBinding((*[]RoleBinding)(yyv168), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj163++ + if yyhl163 { + yyb163 = yyj163 > l } else { - yyb10 = r.CheckBreak() + yyb163 = r.CheckBreak() } - if yyb10 { + if yyb163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj163-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1912,139 +1926,139 @@ func (x *RoleList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym170 := z.EncBinary() + _ = yym170 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep171 := !z.EncBinary() + yy2arr171 := z.EncBasicHandle().StructToArray + var yyq171 [4]bool + _, _, _ = yysep171, yyq171, yy2arr171 + const yyr171 bool = false + yyq171[0] = x.Kind != "" + yyq171[1] = x.APIVersion != "" + yyq171[2] = true + var yynn171 int + if yyr171 || yy2arr171 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn171 = 1 + for _, b := range yyq171 { if b { - yynn2++ + yynn171++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn171) + yynn171 = 0 } - if yyr2 || yy2arr2 { + if yyr171 || yy2arr171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq171[0] { + yym173 := z.EncBinary() + _ = yym173 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq171[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym174 := z.EncBinary() + _ = yym174 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr171 || yy2arr171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq171[1] { + yym176 := z.EncBinary() + _ = yym176 if false { } else { - h.encSliceRole(([]Role)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq171[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym177 := z.EncBinary() + _ = yym177 if false { } else { - h.encSliceRole(([]Role)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr171 || yy2arr171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq171[2] { + yy179 := &x.ListMeta + yym180 := z.EncBinary() + _ = yym180 if false { + } else if z.HasExtensions() && z.EncExt(yy179) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy179) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq171[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy181 := &x.ListMeta + yym182 := z.EncBinary() + _ = yym182 if false { + } else if z.HasExtensions() && z.EncExt(yy181) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy181) } } } - if yyr2 || yy2arr2 { + if yyr171 || yy2arr171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } + if x.Items == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, "") + yym184 := z.EncBinary() + _ = yym184 + if false { + } else { + h.encSliceRole(([]Role)(x.Items), e) + } } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym185 := z.EncBinary() + _ = yym185 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceRole(([]Role)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr171 || yy2arr171 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2057,25 +2071,25 @@ func (x *RoleList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym186 := z.DecBinary() + _ = yym186 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct187 := r.ContainerType() + if yyct187 == codecSelferValueTypeMap1234 { + yyl187 := r.ReadMapStart() + if yyl187 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl187, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct187 == codecSelferValueTypeArray1234 { + yyl187 := r.ReadArrayStart() + if yyl187 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl187, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2087,12 +2101,12 @@ func (x *RoleList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys188Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys188Slc + var yyhl188 bool = l >= 0 + for yyj188 := 0; ; yyj188++ { + if yyhl188 { + if yyj188 >= l { break } } else { @@ -2101,51 +2115,51 @@ func (x *RoleList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys188Slc = r.DecodeBytes(yys188Slc, true, true) + yys188 := string(yys188Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys188 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv191 := &x.ListMeta + yym192 := z.DecBinary() + _ = yym192 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv191) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv191, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv193 := &x.Items + yym194 := z.DecBinary() + _ = yym194 if false { } else { - h.decSliceRole((*[]Role)(yyv6), d) + h.decSliceRole((*[]Role)(yyv193), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys188) + } // end switch yys188 + } // end for yyj188 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2153,98 +2167,98 @@ func (x *RoleList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj195 int + var yyb195 bool + var yyhl195 bool = l >= 0 + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb10 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb10 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb10 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb10 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceRole((*[]Role)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb10 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb10 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv198 := &x.ListMeta + yym199 := z.DecBinary() + _ = yym199 + if false { + } else if z.HasExtensions() && z.DecExt(yyv198) { + } else { + z.DecFallback(yyv198, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb10 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb10 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv200 := &x.Items + yym201 := z.DecBinary() + _ = yym201 + if false { + } else { + h.decSliceRole((*[]Role)(yyv200), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb10 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb10 { + if yyb195 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj195-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2256,127 +2270,127 @@ func (x *ClusterRole) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym202 := z.EncBinary() + _ = yym202 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep203 := !z.EncBinary() + yy2arr203 := z.EncBasicHandle().StructToArray + var yyq203 [4]bool + _, _, _ = yysep203, yyq203, yy2arr203 + const yyr203 bool = false + yyq203[0] = x.Kind != "" + yyq203[1] = x.APIVersion != "" + yyq203[2] = true + var yynn203 int + if yyr203 || yy2arr203 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn203 = 1 + for _, b := range yyq203 { if b { - yynn2++ + yynn203++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn203) + yynn203 = 0 } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq203[0] { + yym205 := z.EncBinary() + _ = yym205 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq203[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym206 := z.EncBinary() + _ = yym206 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Rules == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq203[1] { + yym208 := z.EncBinary() + _ = yym208 if false { } else { - h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rules")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Rules == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq203[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym209 := z.EncBinary() + _ = yym209 if false { } else { - h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq203[2] { + yy211 := &x.ObjectMeta + yy211.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq203[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy212 := &x.ObjectMeta + yy212.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Rules == nil { + r.EncodeNil() + } else { + yym214 := z.EncBinary() + _ = yym214 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rules")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Rules == nil { + r.EncodeNil() + } else { + yym215 := z.EncBinary() + _ = yym215 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSlicePolicyRule(([]PolicyRule)(x.Rules), e) } } } - if yyr2 || yy2arr2 { + if yyr203 || yy2arr203 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2389,25 +2403,25 @@ func (x *ClusterRole) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym216 := z.DecBinary() + _ = yym216 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct217 := r.ContainerType() + if yyct217 == codecSelferValueTypeMap1234 { + yyl217 := r.ReadMapStart() + if yyl217 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl217, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct217 == codecSelferValueTypeArray1234 { + yyl217 := r.ReadArrayStart() + if yyl217 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl217, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2419,12 +2433,12 @@ func (x *ClusterRole) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys218Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys218Slc + var yyhl218 bool = l >= 0 + for yyj218 := 0; ; yyj218++ { + if yyhl218 { + if yyj218 >= l { break } } else { @@ -2433,45 +2447,45 @@ func (x *ClusterRole) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys218Slc = r.DecodeBytes(yys218Slc, true, true) + yys218 := string(yys218Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys218 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv221 := &x.ObjectMeta + yyv221.CodecDecodeSelf(d) } case "rules": if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv5 := &x.Rules - yym6 := z.DecBinary() - _ = yym6 + yyv222 := &x.Rules + yym223 := z.DecBinary() + _ = yym223 if false { } else { - h.decSlicePolicyRule((*[]PolicyRule)(yyv5), d) + h.decSlicePolicyRule((*[]PolicyRule)(yyv222), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys218) + } // end switch yys218 + } // end for yyj218 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2479,92 +2493,92 @@ func (x *ClusterRole) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + var yyj224 int + var yyb224 bool + var yyhl224 bool = l >= 0 + yyj224++ + if yyhl224 { + yyb224 = yyj224 > l } else { - yyb9 = r.CheckBreak() + yyb224 = r.CheckBreak() } - if yyb9 { + if yyb224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_v1.ObjectMeta{} + x.Kind = "" } else { - yyv10 := &x.ObjectMeta - yyv10.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj224++ + if yyhl224 { + yyb224 = yyj224 > l } else { - yyb9 = r.CheckBreak() + yyb224 = r.CheckBreak() } - if yyb9 { + if yyb224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Rules = nil + x.APIVersion = "" } else { - yyv11 := &x.Rules - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - h.decSlicePolicyRule((*[]PolicyRule)(yyv11), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj224++ + if yyhl224 { + yyb224 = yyj224 > l } else { - yyb9 = r.CheckBreak() + yyb224 = r.CheckBreak() } - if yyb9 { + if yyb224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv227 := &x.ObjectMeta + yyv227.CodecDecodeSelf(d) } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj224++ + if yyhl224 { + yyb224 = yyj224 > l } else { - yyb9 = r.CheckBreak() + yyb224 = r.CheckBreak() } - if yyb9 { + if yyb224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Rules = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv228 := &x.Rules + yym229 := z.DecBinary() + _ = yym229 + if false { + } else { + h.decSlicePolicyRule((*[]PolicyRule)(yyv228), d) + } } for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l + yyj224++ + if yyhl224 { + yyb224 = yyj224 > l } else { - yyb9 = r.CheckBreak() + yyb224 = r.CheckBreak() } - if yyb9 { + if yyb224 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj9-1, "") + z.DecStructFieldNotFound(yyj224-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2576,138 +2590,138 @@ func (x *ClusterRoleBinding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym230 := z.EncBinary() + _ = yym230 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] = true - yyq2[3] = x.Kind != "" - yyq2[4] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep231 := !z.EncBinary() + yy2arr231 := z.EncBasicHandle().StructToArray + var yyq231 [5]bool + _, _, _ = yysep231, yyq231, yy2arr231 + const yyr231 bool = false + yyq231[0] = x.Kind != "" + yyq231[1] = x.APIVersion != "" + yyq231[2] = true + var yynn231 int + if yyr231 || yy2arr231 { r.EncodeArrayStart(5) } else { - yynn2 = 2 - for _, b := range yyq2 { + yynn231 = 2 + for _, b := range yyq231 { if b { - yynn2++ + yynn231++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn231) + yynn231 = 0 } - if yyr2 || yy2arr2 { + if yyr231 || yy2arr231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ObjectMeta - yy4.CodecEncodeSelf(e) + if yyq231[0] { + yym233 := z.EncBinary() + _ = yym233 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq231[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ObjectMeta - yy6.CodecEncodeSelf(e) + yym234 := z.EncBinary() + _ = yym234 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } } } - if yyr2 || yy2arr2 { + if yyr231 || yy2arr231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Subjects == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq231[1] { + yym236 := z.EncBinary() + _ = yym236 if false { } else { - h.encSliceSubject(([]Subject)(x.Subjects), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("subjects")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Subjects == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq231[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym237 := z.EncBinary() + _ = yym237 if false { } else { - h.encSliceSubject(([]Subject)(x.Subjects), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy12 := &x.RoleRef - yy12.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("roleRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.RoleRef - yy14.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { + if yyr231 || yy2arr231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + if yyq231[2] { + yy239 := &x.ObjectMeta + yy239.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[3] { + if yyq231[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yy240 := &x.ObjectMeta + yy240.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { + if yyr231 || yy2arr231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym20 := z.EncBinary() - _ = yym20 + if x.Subjects == nil { + r.EncodeNil() + } else { + yym242 := z.EncBinary() + _ = yym242 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceSubject(([]Subject)(x.Subjects), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym21 := z.EncBinary() - _ = yym21 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subjects")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Subjects == nil { + r.EncodeNil() + } else { + yym243 := z.EncBinary() + _ = yym243 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceSubject(([]Subject)(x.Subjects), e) } } } - if yyr2 || yy2arr2 { + if yyr231 || yy2arr231 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy245 := &x.RoleRef + yy245.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("roleRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy246 := &x.RoleRef + yy246.CodecEncodeSelf(e) + } + if yyr231 || yy2arr231 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2720,25 +2734,25 @@ func (x *ClusterRoleBinding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym247 := z.DecBinary() + _ = yym247 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct248 := r.ContainerType() + if yyct248 == codecSelferValueTypeMap1234 { + yyl248 := r.ReadMapStart() + if yyl248 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl248, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct248 == codecSelferValueTypeArray1234 { + yyl248 := r.ReadArrayStart() + if yyl248 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl248, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2750,12 +2764,12 @@ func (x *ClusterRoleBinding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys249Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys249Slc + var yyhl249 bool = l >= 0 + for yyj249 := 0; ; yyj249++ { + if yyhl249 { + if yyj249 >= l { break } } else { @@ -2764,52 +2778,52 @@ func (x *ClusterRoleBinding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys249Slc = r.DecodeBytes(yys249Slc, true, true) + yys249 := string(yys249Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys249 { + 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 { - yyv4 := &x.ObjectMeta - yyv4.CodecDecodeSelf(d) + yyv252 := &x.ObjectMeta + yyv252.CodecDecodeSelf(d) } case "subjects": if r.TryDecodeAsNil() { x.Subjects = nil } else { - yyv5 := &x.Subjects - yym6 := z.DecBinary() - _ = yym6 + yyv253 := &x.Subjects + yym254 := z.DecBinary() + _ = yym254 if false { } else { - h.decSliceSubject((*[]Subject)(yyv5), d) + h.decSliceSubject((*[]Subject)(yyv253), d) } } case "roleRef": if r.TryDecodeAsNil() { x.RoleRef = pkg3_v1.ObjectReference{} } else { - yyv7 := &x.RoleRef - yyv7.CodecDecodeSelf(d) - } - 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()) + yyv255 := &x.RoleRef + yyv255.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys249) + } // end switch yys249 + } // end for yyj249 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2817,109 +2831,109 @@ func (x *ClusterRoleBinding) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj256 int + var yyb256 bool + var yyhl256 bool = l >= 0 + yyj256++ + if yyhl256 { + yyb256 = yyj256 > l } else { - yyb10 = r.CheckBreak() + yyb256 = r.CheckBreak() } - if yyb10 { + if yyb256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_v1.ObjectMeta{} + x.Kind = "" } else { - yyv11 := &x.ObjectMeta - yyv11.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj256++ + if yyhl256 { + yyb256 = yyj256 > l } else { - yyb10 = r.CheckBreak() + yyb256 = r.CheckBreak() } - if yyb10 { + if yyb256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Subjects = nil + x.APIVersion = "" } else { - yyv12 := &x.Subjects - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - h.decSliceSubject((*[]Subject)(yyv12), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj256++ + if yyhl256 { + yyb256 = yyj256 > l } else { - yyb10 = r.CheckBreak() + yyb256 = r.CheckBreak() } - if yyb10 { + if yyb256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.RoleRef = pkg3_v1.ObjectReference{} + x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv14 := &x.RoleRef - yyv14.CodecDecodeSelf(d) + yyv259 := &x.ObjectMeta + yyv259.CodecDecodeSelf(d) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj256++ + if yyhl256 { + yyb256 = yyj256 > l } else { - yyb10 = r.CheckBreak() + yyb256 = r.CheckBreak() } - if yyb10 { + if yyb256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Subjects = nil } else { - x.Kind = string(r.DecodeString()) + yyv260 := &x.Subjects + yym261 := z.DecBinary() + _ = yym261 + if false { + } else { + h.decSliceSubject((*[]Subject)(yyv260), d) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj256++ + if yyhl256 { + yyb256 = yyj256 > l } else { - yyb10 = r.CheckBreak() + yyb256 = r.CheckBreak() } - if yyb10 { + if yyb256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.RoleRef = pkg3_v1.ObjectReference{} } else { - x.APIVersion = string(r.DecodeString()) + yyv262 := &x.RoleRef + yyv262.CodecDecodeSelf(d) } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj256++ + if yyhl256 { + yyb256 = yyj256 > l } else { - yyb10 = r.CheckBreak() + yyb256 = r.CheckBreak() } - if yyb10 { + if yyb256 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj256-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2931,139 +2945,139 @@ func (x *ClusterRoleBindingList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym263 := z.EncBinary() + _ = yym263 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep264 := !z.EncBinary() + yy2arr264 := z.EncBasicHandle().StructToArray + var yyq264 [4]bool + _, _, _ = yysep264, yyq264, yy2arr264 + const yyr264 bool = false + yyq264[0] = x.Kind != "" + yyq264[1] = x.APIVersion != "" + yyq264[2] = true + var yynn264 int + if yyr264 || yy2arr264 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn264 = 1 + for _, b := range yyq264 { if b { - yynn2++ + yynn264++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn264) + yynn264 = 0 } - if yyr2 || yy2arr2 { + if yyr264 || yy2arr264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq264[0] { + yym266 := z.EncBinary() + _ = yym266 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq264[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym267 := z.EncBinary() + _ = yym267 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr264 || yy2arr264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq264[1] { + yym269 := z.EncBinary() + _ = yym269 if false { } else { - h.encSliceClusterRoleBinding(([]ClusterRoleBinding)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq264[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym270 := z.EncBinary() + _ = yym270 if false { } else { - h.encSliceClusterRoleBinding(([]ClusterRoleBinding)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr264 || yy2arr264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq264[2] { + yy272 := &x.ListMeta + yym273 := z.EncBinary() + _ = yym273 if false { + } else if z.HasExtensions() && z.EncExt(yy272) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy272) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq264[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy274 := &x.ListMeta + yym275 := z.EncBinary() + _ = yym275 if false { + } else if z.HasExtensions() && z.EncExt(yy274) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy274) } } } - if yyr2 || yy2arr2 { + if yyr264 || yy2arr264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym277 := z.EncBinary() + _ = yym277 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceClusterRoleBinding(([]ClusterRoleBinding)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym278 := z.EncBinary() + _ = yym278 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceClusterRoleBinding(([]ClusterRoleBinding)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr264 || yy2arr264 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3076,25 +3090,25 @@ func (x *ClusterRoleBindingList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym279 := z.DecBinary() + _ = yym279 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct280 := r.ContainerType() + if yyct280 == codecSelferValueTypeMap1234 { + yyl280 := r.ReadMapStart() + if yyl280 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl280, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct280 == codecSelferValueTypeArray1234 { + yyl280 := r.ReadArrayStart() + if yyl280 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl280, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3106,12 +3120,12 @@ func (x *ClusterRoleBindingList) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { + var yys281Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys281Slc + var yyhl281 bool = l >= 0 + for yyj281 := 0; ; yyj281++ { + if yyhl281 { + if yyj281 >= l { break } } else { @@ -3120,51 +3134,51 @@ func (x *ClusterRoleBindingList) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys281Slc = r.DecodeBytes(yys281Slc, true, true) + yys281 := string(yys281Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys281 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv284 := &x.ListMeta + yym285 := z.DecBinary() + _ = yym285 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv284) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv284, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv286 := &x.Items + yym287 := z.DecBinary() + _ = yym287 if false { } else { - h.decSliceClusterRoleBinding((*[]ClusterRoleBinding)(yyv6), d) + h.decSliceClusterRoleBinding((*[]ClusterRoleBinding)(yyv286), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys281) + } // end switch yys281 + } // end for yyj281 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3172,98 +3186,98 @@ func (x *ClusterRoleBindingList) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj288 int + var yyb288 bool + var yyhl288 bool = l >= 0 + yyj288++ + if yyhl288 { + yyb288 = yyj288 > l } else { - yyb10 = r.CheckBreak() + yyb288 = r.CheckBreak() } - if yyb10 { + if yyb288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj288++ + if yyhl288 { + yyb288 = yyj288 > l } else { - yyb10 = r.CheckBreak() + yyb288 = r.CheckBreak() } - if yyb10 { + if yyb288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceClusterRoleBinding((*[]ClusterRoleBinding)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj288++ + if yyhl288 { + yyb288 = yyj288 > l } else { - yyb10 = r.CheckBreak() + yyb288 = r.CheckBreak() } - if yyb10 { + if yyb288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv291 := &x.ListMeta + yym292 := z.DecBinary() + _ = yym292 + if false { + } else if z.HasExtensions() && z.DecExt(yyv291) { + } else { + z.DecFallback(yyv291, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj288++ + if yyhl288 { + yyb288 = yyj288 > l } else { - yyb10 = r.CheckBreak() + yyb288 = r.CheckBreak() } - if yyb10 { + if yyb288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv293 := &x.Items + yym294 := z.DecBinary() + _ = yym294 + if false { + } else { + h.decSliceClusterRoleBinding((*[]ClusterRoleBinding)(yyv293), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj288++ + if yyhl288 { + yyb288 = yyj288 > l } else { - yyb10 = r.CheckBreak() + yyb288 = r.CheckBreak() } - if yyb10 { + if yyb288 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj288-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3275,139 +3289,139 @@ func (x *ClusterRoleList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1 := z.EncBinary() - _ = yym1 + yym295 := z.EncBinary() + _ = yym295 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[2] = x.Kind != "" - yyq2[3] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { + yysep296 := !z.EncBinary() + yy2arr296 := z.EncBasicHandle().StructToArray + var yyq296 [4]bool + _, _, _ = yysep296, yyq296, yy2arr296 + const yyr296 bool = false + yyq296[0] = x.Kind != "" + yyq296[1] = x.APIVersion != "" + yyq296[2] = true + var yynn296 int + if yyr296 || yy2arr296 { r.EncodeArrayStart(4) } else { - yynn2 = 1 - for _, b := range yyq2 { + yynn296 = 1 + for _, b := range yyq296 { if b { - yynn2++ + yynn296++ } } - r.EncodeMapStart(yynn2) - yynn2 = 0 + r.EncodeMapStart(yynn296) + yynn296 = 0 } - if yyr2 || yy2arr2 { + if yyr296 || yy2arr296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.ListMeta - yym5 := z.EncBinary() - _ = yym5 + if yyq296[0] { + yym298 := z.EncBinary() + _ = yym298 if false { - } else if z.HasExtensions() && z.EncExt(yy4) { } else { - z.EncFallback(yy4) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[0] { + if yyq296[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ListMeta - yym7 := z.EncBinary() - _ = yym7 + yym299 := z.EncBinary() + _ = yym299 if false { - } else if z.HasExtensions() && z.EncExt(yy6) { } else { - z.EncFallback(yy6) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2 || yy2arr2 { + if yyr296 || yy2arr296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 + if yyq296[1] { + yym301 := z.EncBinary() + _ = yym301 if false { } else { - h.encSliceClusterRole(([]ClusterRole)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 + if yyq296[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym302 := z.EncBinary() + _ = yym302 if false { } else { - h.encSliceClusterRole(([]ClusterRole)(x.Items), e) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2 || yy2arr2 { + if yyr296 || yy2arr296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym12 := z.EncBinary() - _ = yym12 + if yyq296[2] { + yy304 := &x.ListMeta + yym305 := z.EncBinary() + _ = yym305 if false { + } else if z.HasExtensions() && z.EncExt(yy304) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy304) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq2[2] { + if yyq296[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym13 := z.EncBinary() - _ = yym13 + yy306 := &x.ListMeta + yym307 := z.EncBinary() + _ = yym307 if false { + } else if z.HasExtensions() && z.EncExt(yy306) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy306) } } } - if yyr2 || yy2arr2 { + if yyr296 || yy2arr296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 + if x.Items == nil { + r.EncodeNil() + } else { + yym309 := z.EncBinary() + _ = yym309 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceClusterRole(([]ClusterRole)(x.Items), e) } - } else { - r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym310 := z.EncBinary() + _ = yym310 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + h.encSliceClusterRole(([]ClusterRole)(x.Items), e) } } } - if yyr2 || yy2arr2 { + if yyr296 || yy2arr296 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3420,25 +3434,25 @@ func (x *ClusterRoleList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 + yym311 := z.DecBinary() + _ = yym311 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap1234 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { + yyct312 := r.ContainerType() + if yyct312 == codecSelferValueTypeMap1234 { + yyl312 := r.ReadMapStart() + if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2, d) + x.codecDecodeSelfFromMap(yyl312, d) } - } else if yyct2 == codecSelferValueTypeArray1234 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { + } else if yyct312 == codecSelferValueTypeArray1234 { + yyl312 := r.ReadArrayStart() + if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2, d) + x.codecDecodeSelfFromArray(yyl312, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3450,12 +3464,12 @@ func (x *ClusterRoleList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= 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 { @@ -3464,51 +3478,51 @@ func (x *ClusterRoleList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) + yys313Slc = r.DecodeBytes(yys313Slc, true, true) + yys313 := string(yys313Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3 { + switch yys313 { + 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 { - yyv4 := &x.ListMeta - yym5 := z.DecBinary() - _ = yym5 + yyv316 := &x.ListMeta + yym317 := z.DecBinary() + _ = yym317 if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { + } else if z.HasExtensions() && z.DecExt(yyv316) { } else { - z.DecFallback(yyv4, false) + z.DecFallback(yyv316, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv6 := &x.Items - yym7 := z.DecBinary() - _ = yym7 + yyv318 := &x.Items + yym319 := z.DecBinary() + _ = yym319 if false { } else { - h.decSliceClusterRole((*[]ClusterRole)(yyv6), d) + h.decSliceClusterRole((*[]ClusterRole)(yyv318), d) } } - 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()) - } default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 + z.DecStructFieldNotFound(-1, yys313) + } // end switch yys313 + } // end for yyj313 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3516,98 +3530,98 @@ func (x *ClusterRoleList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + var yyj320 int + var yyb320 bool + var yyhl320 bool = l >= 0 + yyj320++ + if yyhl320 { + yyb320 = yyj320 > l } else { - yyb10 = r.CheckBreak() + yyb320 = r.CheckBreak() } - if yyb10 { + if yyb320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Kind = "" } else { - yyv11 := &x.ListMeta - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - z.DecFallback(yyv11, false) - } + x.Kind = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj320++ + if yyhl320 { + yyb320 = yyj320 > l } else { - yyb10 = r.CheckBreak() + yyb320 = r.CheckBreak() } - if yyb10 { + if yyb320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + x.APIVersion = "" } else { - yyv13 := &x.Items - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSliceClusterRole((*[]ClusterRole)(yyv13), d) - } + x.APIVersion = string(r.DecodeString()) } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj320++ + if yyhl320 { + yyb320 = yyj320 > l } else { - yyb10 = r.CheckBreak() + yyb320 = r.CheckBreak() } - if yyb10 { + if yyb320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - x.Kind = string(r.DecodeString()) + yyv323 := &x.ListMeta + yym324 := z.DecBinary() + _ = yym324 + if false { + } else if z.HasExtensions() && z.DecExt(yyv323) { + } else { + z.DecFallback(yyv323, false) + } } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj320++ + if yyhl320 { + yyb320 = yyj320 > l } else { - yyb10 = r.CheckBreak() + yyb320 = r.CheckBreak() } - if yyb10 { + if yyb320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Items = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv325 := &x.Items + yym326 := z.DecBinary() + _ = yym326 + if false { + } else { + h.decSliceClusterRole((*[]ClusterRole)(yyv325), d) + } } for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + yyj320++ + if yyhl320 { + yyb320 = yyj320 > l } else { - yyb10 = r.CheckBreak() + yyb320 = r.CheckBreak() } - if yyb10 { + if yyb320 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") + z.DecStructFieldNotFound(yyj320-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3617,10 +3631,10 @@ func (x codecSelfer1234) encSlicePolicyRule(v []PolicyRule, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv327 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy328 := &yyv327 + yy328.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3630,86 +3644,83 @@ func (x codecSelfer1234) decSlicePolicyRule(v *[]PolicyRule, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []PolicyRule{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv329 := *v + yyh329, yyl329 := z.DecSliceHelperStart() + var yyc329 bool + if yyl329 == 0 { + if yyv329 == nil { + yyv329 = []PolicyRule{} + yyc329 = true + } else if len(yyv329) != 0 { + yyv329 = yyv329[:0] + yyc329 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl329 > 0 { + var yyrr329, yyrl329 int + var yyrt329 bool + if yyl329 > cap(yyv329) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 160) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg329 := len(yyv329) > 0 + yyv2329 := yyv329 + yyrl329, yyrt329 = z.DecInferLen(yyl329, z.DecBasicHandle().MaxInitLen, 160) + if yyrt329 { + if yyrl329 <= cap(yyv329) { + yyv329 = yyv329[:yyrl329] } else { - yyv1 = make([]PolicyRule, yyrl1) + yyv329 = make([]PolicyRule, yyrl329) } } else { - yyv1 = make([]PolicyRule, yyrl1) + yyv329 = make([]PolicyRule, yyrl329) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc329 = true + yyrr329 = len(yyv329) + if yyrg329 { + copy(yyv329, yyv2329) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl329 != len(yyv329) { + yyv329 = yyv329[:yyl329] + yyc329 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj329 := 0 + for ; yyj329 < yyrr329; yyj329++ { + yyh329.ElemContainerState(yyj329) if r.TryDecodeAsNil() { - yyv1[yyj1] = PolicyRule{} + yyv329[yyj329] = PolicyRule{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv330 := &yyv329[yyj329] + yyv330.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, PolicyRule{}) - yyh1.ElemContainerState(yyj1) + if yyrt329 { + for ; yyj329 < yyl329; yyj329++ { + yyv329 = append(yyv329, PolicyRule{}) + yyh329.ElemContainerState(yyj329) if r.TryDecodeAsNil() { - yyv1[yyj1] = PolicyRule{} + yyv329[yyj329] = PolicyRule{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv331 := &yyv329[yyj329] + yyv331.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj329 := 0 + for ; !r.CheckBreak(); yyj329++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, PolicyRule{}) // var yyz1 PolicyRule - yyc1 = true + if yyj329 >= len(yyv329) { + yyv329 = append(yyv329, PolicyRule{}) // var yyz329 PolicyRule + yyc329 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh329.ElemContainerState(yyj329) + if yyj329 < len(yyv329) { if r.TryDecodeAsNil() { - yyv1[yyj1] = PolicyRule{} + yyv329[yyj329] = PolicyRule{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv332 := &yyv329[yyj329] + yyv332.CodecDecodeSelf(d) } } else { @@ -3717,17 +3728,17 @@ func (x codecSelfer1234) decSlicePolicyRule(v *[]PolicyRule, d *codec1978.Decode } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []PolicyRule{} - yyc1 = true + if yyj329 < len(yyv329) { + yyv329 = yyv329[:yyj329] + yyc329 = true + } else if yyj329 == 0 && yyv329 == nil { + yyv329 = []PolicyRule{} + yyc329 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh329.End() + if yyc329 { + *v = yyv329 } } @@ -3736,10 +3747,10 @@ func (x codecSelfer1234) encSliceSubject(v []Subject, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv333 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy334 := &yyv333 + yy334.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3749,86 +3760,83 @@ func (x codecSelfer1234) decSliceSubject(v *[]Subject, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Subject{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv335 := *v + yyh335, yyl335 := z.DecSliceHelperStart() + var yyc335 bool + if yyl335 == 0 { + if yyv335 == nil { + yyv335 = []Subject{} + yyc335 = true + } else if len(yyv335) != 0 { + yyv335 = yyv335[:0] + yyc335 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl335 > 0 { + var yyrr335, yyrl335 int + var yyrt335 bool + if yyl335 > cap(yyv335) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg335 := len(yyv335) > 0 + yyv2335 := yyv335 + yyrl335, yyrt335 = z.DecInferLen(yyl335, z.DecBasicHandle().MaxInitLen, 64) + if yyrt335 { + if yyrl335 <= cap(yyv335) { + yyv335 = yyv335[:yyrl335] } else { - yyv1 = make([]Subject, yyrl1) + yyv335 = make([]Subject, yyrl335) } } else { - yyv1 = make([]Subject, yyrl1) + yyv335 = make([]Subject, yyrl335) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc335 = true + yyrr335 = len(yyv335) + if yyrg335 { + copy(yyv335, yyv2335) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl335 != len(yyv335) { + yyv335 = yyv335[:yyl335] + yyc335 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj335 := 0 + for ; yyj335 < yyrr335; yyj335++ { + yyh335.ElemContainerState(yyj335) if r.TryDecodeAsNil() { - yyv1[yyj1] = Subject{} + yyv335[yyj335] = Subject{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv336 := &yyv335[yyj335] + yyv336.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Subject{}) - yyh1.ElemContainerState(yyj1) + if yyrt335 { + for ; yyj335 < yyl335; yyj335++ { + yyv335 = append(yyv335, Subject{}) + yyh335.ElemContainerState(yyj335) if r.TryDecodeAsNil() { - yyv1[yyj1] = Subject{} + yyv335[yyj335] = Subject{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv337 := &yyv335[yyj335] + yyv337.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj335 := 0 + for ; !r.CheckBreak(); yyj335++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Subject{}) // var yyz1 Subject - yyc1 = true + if yyj335 >= len(yyv335) { + yyv335 = append(yyv335, Subject{}) // var yyz335 Subject + yyc335 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh335.ElemContainerState(yyj335) + if yyj335 < len(yyv335) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Subject{} + yyv335[yyj335] = Subject{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv338 := &yyv335[yyj335] + yyv338.CodecDecodeSelf(d) } } else { @@ -3836,17 +3844,17 @@ func (x codecSelfer1234) decSliceSubject(v *[]Subject, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Subject{} - yyc1 = true + if yyj335 < len(yyv335) { + yyv335 = yyv335[:yyj335] + yyc335 = true + } else if yyj335 == 0 && yyv335 == nil { + yyv335 = []Subject{} + yyc335 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh335.End() + if yyc335 { + *v = yyv335 } } @@ -3855,10 +3863,10 @@ func (x codecSelfer1234) encSliceRoleBinding(v []RoleBinding, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv339 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy340 := &yyv339 + yy340.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3868,86 +3876,83 @@ func (x codecSelfer1234) decSliceRoleBinding(v *[]RoleBinding, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []RoleBinding{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv341 := *v + yyh341, yyl341 := z.DecSliceHelperStart() + var yyc341 bool + if yyl341 == 0 { + if yyv341 == nil { + yyv341 = []RoleBinding{} + yyc341 = true + } else if len(yyv341) != 0 { + yyv341 = yyv341[:0] + yyc341 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl341 > 0 { + var yyrr341, yyrl341 int + var yyrt341 bool + if yyl341 > cap(yyv341) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 376) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg341 := len(yyv341) > 0 + yyv2341 := yyv341 + yyrl341, yyrt341 = z.DecInferLen(yyl341, z.DecBasicHandle().MaxInitLen, 392) + if yyrt341 { + if yyrl341 <= cap(yyv341) { + yyv341 = yyv341[:yyrl341] } else { - yyv1 = make([]RoleBinding, yyrl1) + yyv341 = make([]RoleBinding, yyrl341) } } else { - yyv1 = make([]RoleBinding, yyrl1) + yyv341 = make([]RoleBinding, yyrl341) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc341 = true + yyrr341 = len(yyv341) + if yyrg341 { + copy(yyv341, yyv2341) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl341 != len(yyv341) { + yyv341 = yyv341[:yyl341] + yyc341 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj341 := 0 + for ; yyj341 < yyrr341; yyj341++ { + yyh341.ElemContainerState(yyj341) if r.TryDecodeAsNil() { - yyv1[yyj1] = RoleBinding{} + yyv341[yyj341] = RoleBinding{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv342 := &yyv341[yyj341] + yyv342.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, RoleBinding{}) - yyh1.ElemContainerState(yyj1) + if yyrt341 { + for ; yyj341 < yyl341; yyj341++ { + yyv341 = append(yyv341, RoleBinding{}) + yyh341.ElemContainerState(yyj341) if r.TryDecodeAsNil() { - yyv1[yyj1] = RoleBinding{} + yyv341[yyj341] = RoleBinding{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv343 := &yyv341[yyj341] + yyv343.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj341 := 0 + for ; !r.CheckBreak(); yyj341++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, RoleBinding{}) // var yyz1 RoleBinding - yyc1 = true + if yyj341 >= len(yyv341) { + yyv341 = append(yyv341, RoleBinding{}) // var yyz341 RoleBinding + yyc341 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh341.ElemContainerState(yyj341) + if yyj341 < len(yyv341) { if r.TryDecodeAsNil() { - yyv1[yyj1] = RoleBinding{} + yyv341[yyj341] = RoleBinding{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv344 := &yyv341[yyj341] + yyv344.CodecDecodeSelf(d) } } else { @@ -3955,17 +3960,17 @@ func (x codecSelfer1234) decSliceRoleBinding(v *[]RoleBinding, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []RoleBinding{} - yyc1 = true + if yyj341 < len(yyv341) { + yyv341 = yyv341[:yyj341] + yyc341 = true + } else if yyj341 == 0 && yyv341 == nil { + yyv341 = []RoleBinding{} + yyc341 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh341.End() + if yyc341 { + *v = yyv341 } } @@ -3974,10 +3979,10 @@ func (x codecSelfer1234) encSliceRole(v []Role, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv345 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy346 := &yyv345 + yy346.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3987,86 +3992,83 @@ func (x codecSelfer1234) decSliceRole(v *[]Role, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []Role{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv347 := *v + yyh347, yyl347 := z.DecSliceHelperStart() + var yyc347 bool + if yyl347 == 0 { + if yyv347 == nil { + yyv347 = []Role{} + yyc347 = true + } else if len(yyv347) != 0 { + yyv347 = yyv347[:0] + yyc347 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl347 > 0 { + var yyrr347, yyrl347 int + var yyrt347 bool + if yyl347 > cap(yyv347) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg347 := len(yyv347) > 0 + yyv2347 := yyv347 + yyrl347, yyrt347 = z.DecInferLen(yyl347, z.DecBasicHandle().MaxInitLen, 280) + if yyrt347 { + if yyrl347 <= cap(yyv347) { + yyv347 = yyv347[:yyrl347] } else { - yyv1 = make([]Role, yyrl1) + yyv347 = make([]Role, yyrl347) } } else { - yyv1 = make([]Role, yyrl1) + yyv347 = make([]Role, yyrl347) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc347 = true + yyrr347 = len(yyv347) + if yyrg347 { + copy(yyv347, yyv2347) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl347 != len(yyv347) { + yyv347 = yyv347[:yyl347] + yyc347 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj347 := 0 + for ; yyj347 < yyrr347; yyj347++ { + yyh347.ElemContainerState(yyj347) if r.TryDecodeAsNil() { - yyv1[yyj1] = Role{} + yyv347[yyj347] = Role{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv348 := &yyv347[yyj347] + yyv348.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Role{}) - yyh1.ElemContainerState(yyj1) + if yyrt347 { + for ; yyj347 < yyl347; yyj347++ { + yyv347 = append(yyv347, Role{}) + yyh347.ElemContainerState(yyj347) if r.TryDecodeAsNil() { - yyv1[yyj1] = Role{} + yyv347[yyj347] = Role{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv349 := &yyv347[yyj347] + yyv349.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj347 := 0 + for ; !r.CheckBreak(); yyj347++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Role{}) // var yyz1 Role - yyc1 = true + if yyj347 >= len(yyv347) { + yyv347 = append(yyv347, Role{}) // var yyz347 Role + yyc347 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh347.ElemContainerState(yyj347) + if yyj347 < len(yyv347) { if r.TryDecodeAsNil() { - yyv1[yyj1] = Role{} + yyv347[yyj347] = Role{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv350 := &yyv347[yyj347] + yyv350.CodecDecodeSelf(d) } } else { @@ -4074,17 +4076,17 @@ func (x codecSelfer1234) decSliceRole(v *[]Role, d *codec1978.Decoder) { } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Role{} - yyc1 = true + if yyj347 < len(yyv347) { + yyv347 = yyv347[:yyj347] + yyc347 = true + } else if yyj347 == 0 && yyv347 == nil { + yyv347 = []Role{} + yyc347 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh347.End() + if yyc347 { + *v = yyv347 } } @@ -4093,10 +4095,10 @@ func (x codecSelfer1234) encSliceClusterRoleBinding(v []ClusterRoleBinding, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv351 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy352 := &yyv351 + yy352.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4106,86 +4108,83 @@ func (x codecSelfer1234) decSliceClusterRoleBinding(v *[]ClusterRoleBinding, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ClusterRoleBinding{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv353 := *v + yyh353, yyl353 := z.DecSliceHelperStart() + var yyc353 bool + if yyl353 == 0 { + if yyv353 == nil { + yyv353 = []ClusterRoleBinding{} + yyc353 = true + } else if len(yyv353) != 0 { + yyv353 = yyv353[:0] + yyc353 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl353 > 0 { + var yyrr353, yyrl353 int + var yyrt353 bool + if yyl353 > cap(yyv353) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 376) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg353 := len(yyv353) > 0 + yyv2353 := yyv353 + yyrl353, yyrt353 = z.DecInferLen(yyl353, z.DecBasicHandle().MaxInitLen, 392) + if yyrt353 { + if yyrl353 <= cap(yyv353) { + yyv353 = yyv353[:yyrl353] } else { - yyv1 = make([]ClusterRoleBinding, yyrl1) + yyv353 = make([]ClusterRoleBinding, yyrl353) } } else { - yyv1 = make([]ClusterRoleBinding, yyrl1) + yyv353 = make([]ClusterRoleBinding, yyrl353) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc353 = true + yyrr353 = len(yyv353) + if yyrg353 { + copy(yyv353, yyv2353) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl353 != len(yyv353) { + yyv353 = yyv353[:yyl353] + yyc353 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj353 := 0 + for ; yyj353 < yyrr353; yyj353++ { + yyh353.ElemContainerState(yyj353) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterRoleBinding{} + yyv353[yyj353] = ClusterRoleBinding{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv354 := &yyv353[yyj353] + yyv354.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ClusterRoleBinding{}) - yyh1.ElemContainerState(yyj1) + if yyrt353 { + for ; yyj353 < yyl353; yyj353++ { + yyv353 = append(yyv353, ClusterRoleBinding{}) + yyh353.ElemContainerState(yyj353) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterRoleBinding{} + yyv353[yyj353] = ClusterRoleBinding{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv355 := &yyv353[yyj353] + yyv355.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj353 := 0 + for ; !r.CheckBreak(); yyj353++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ClusterRoleBinding{}) // var yyz1 ClusterRoleBinding - yyc1 = true + if yyj353 >= len(yyv353) { + yyv353 = append(yyv353, ClusterRoleBinding{}) // var yyz353 ClusterRoleBinding + yyc353 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh353.ElemContainerState(yyj353) + if yyj353 < len(yyv353) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterRoleBinding{} + yyv353[yyj353] = ClusterRoleBinding{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv356 := &yyv353[yyj353] + yyv356.CodecDecodeSelf(d) } } else { @@ -4193,17 +4192,17 @@ func (x codecSelfer1234) decSliceClusterRoleBinding(v *[]ClusterRoleBinding, d * } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ClusterRoleBinding{} - yyc1 = true + if yyj353 < len(yyv353) { + yyv353 = yyv353[:yyj353] + yyc353 = true + } else if yyj353 == 0 && yyv353 == nil { + yyv353 = []ClusterRoleBinding{} + yyc353 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh353.End() + if yyc353 { + *v = yyv353 } } @@ -4212,10 +4211,10 @@ func (x codecSelfer1234) encSliceClusterRole(v []ClusterRole, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { + for _, yyv357 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) + yy358 := &yyv357 + yy358.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4225,86 +4224,83 @@ func (x codecSelfer1234) decSliceClusterRole(v *[]ClusterRole, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1 := *v - yyh1, yyl1 := z.DecSliceHelperStart() - var yyc1 bool - _ = yyc1 - if yyl1 == 0 { - if yyv1 == nil { - yyv1 = []ClusterRole{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true + yyv359 := *v + yyh359, yyl359 := z.DecSliceHelperStart() + var yyc359 bool + if yyl359 == 0 { + if yyv359 == nil { + yyv359 = []ClusterRole{} + yyc359 = true + } else if len(yyv359) != 0 { + yyv359 = yyv359[:0] + yyc359 = true } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { + } else if yyl359 > 0 { + var yyrr359, yyrl359 int + var yyrt359 bool + if yyl359 > cap(yyv359) { - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] + yyrg359 := len(yyv359) > 0 + yyv2359 := yyv359 + yyrl359, yyrt359 = z.DecInferLen(yyl359, z.DecBasicHandle().MaxInitLen, 280) + if yyrt359 { + if yyrl359 <= cap(yyv359) { + yyv359 = yyv359[:yyrl359] } else { - yyv1 = make([]ClusterRole, yyrl1) + yyv359 = make([]ClusterRole, yyrl359) } } else { - yyv1 = make([]ClusterRole, yyrl1) + yyv359 = make([]ClusterRole, yyrl359) } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) + yyc359 = true + yyrr359 = len(yyv359) + if yyrg359 { + copy(yyv359, yyv2359) } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true + } else if yyl359 != len(yyv359) { + yyv359 = yyv359[:yyl359] + yyc359 = true } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) + yyj359 := 0 + for ; yyj359 < yyrr359; yyj359++ { + yyh359.ElemContainerState(yyj359) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterRole{} + yyv359[yyj359] = ClusterRole{} } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) + yyv360 := &yyv359[yyj359] + yyv360.CodecDecodeSelf(d) } } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, ClusterRole{}) - yyh1.ElemContainerState(yyj1) + if yyrt359 { + for ; yyj359 < yyl359; yyj359++ { + yyv359 = append(yyv359, ClusterRole{}) + yyh359.ElemContainerState(yyj359) if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterRole{} + yyv359[yyj359] = ClusterRole{} } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) + yyv361 := &yyv359[yyj359] + yyv361.CodecDecodeSelf(d) } } } } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { + yyj359 := 0 + for ; !r.CheckBreak(); yyj359++ { - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, ClusterRole{}) // var yyz1 ClusterRole - yyc1 = true + if yyj359 >= len(yyv359) { + yyv359 = append(yyv359, ClusterRole{}) // var yyz359 ClusterRole + yyc359 = true } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { + yyh359.ElemContainerState(yyj359) + if yyj359 < len(yyv359) { if r.TryDecodeAsNil() { - yyv1[yyj1] = ClusterRole{} + yyv359[yyj359] = ClusterRole{} } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) + yyv362 := &yyv359[yyj359] + yyv362.CodecDecodeSelf(d) } } else { @@ -4312,16 +4308,16 @@ func (x codecSelfer1234) decSliceClusterRole(v *[]ClusterRole, d *codec1978.Deco } } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []ClusterRole{} - yyc1 = true + if yyj359 < len(yyv359) { + yyv359 = yyv359[:yyj359] + yyc359 = true + } else if yyj359 == 0 && yyv359 == nil { + yyv359 = []ClusterRole{} + yyc359 = true } } - yyh1.End() - if yyc1 { - *v = yyv1 + yyh359.End() + if yyc359 { + *v = yyv359 } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.go index a260facea9..e8a815ee67 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types.go @@ -35,16 +35,19 @@ type PolicyRule struct { // AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. // If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. AttributeRestrictions runtime.RawExtension `json:"attributeRestrictions,omitempty" protobuf:"bytes,2,opt,name=attributeRestrictions"` + // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of // the enumerated resources in any API group will be allowed. - APIGroups []string `json:"apiGroups" protobuf:"bytes,3,rep,name=apiGroups"` + APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,3,rep,name=apiGroups"` // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - Resources []string `json:"resources" protobuf:"bytes,4,rep,name=resources"` + Resources []string `json:"resources,omitempty" protobuf:"bytes,4,rep,name=resources"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,5,rep,name=resourceNames"` - // NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path + + // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. + // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,6,rep,name=nonResourceURLs"` } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go index f1c6fdbdf6..6d1c4bc9d3 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go @@ -75,7 +75,7 @@ var map_PolicyRule = map[string]string{ "apiGroups": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", "resources": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "nonResourceURLs": "NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.", + "nonResourceURLs": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", } func (PolicyRule) SwaggerDoc() map[string]string { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go similarity index 98% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go index 5588146771..6e7ef9be8c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go @@ -28,7 +28,13 @@ import ( ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_ClusterRole_To_rbac_ClusterRole, Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole, Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding, @@ -49,10 +55,7 @@ func init() { Convert_rbac_RoleList_To_v1alpha1_RoleList, Convert_v1alpha1_Subject_To_rbac_Subject, Convert_rbac_Subject_To_v1alpha1_Subject, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac.ClusterRole, s conversion.Scope) error { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..50c15fd07d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,281 @@ +// +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/kubernetes/pkg/api/v1" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_ClusterRole, InType: reflect.TypeOf(&ClusterRole{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ClusterRoleBinding, InType: reflect.TypeOf(&ClusterRoleBinding{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ClusterRoleBindingList, InType: reflect.TypeOf(&ClusterRoleBindingList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ClusterRoleList, InType: reflect.TypeOf(&ClusterRoleList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PolicyRule, InType: reflect.TypeOf(&PolicyRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Role, InType: reflect.TypeOf(&Role{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_RoleBinding, InType: reflect.TypeOf(&RoleBinding{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_RoleBindingList, InType: reflect.TypeOf(&RoleBindingList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_RoleList, InType: reflect.TypeOf(&RoleList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Subject, InType: reflect.TypeOf(&Subject{})}, + ) +} + +func DeepCopy_v1alpha1_ClusterRole(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRole) + out := out.(*ClusterRole) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]PolicyRule, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_ClusterRoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRoleBinding) + out := out.(*ClusterRoleBinding) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subjects != nil { + in, out := &in.Subjects, &out.Subjects + *out = make([]Subject, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Subjects = nil + } + out.RoleRef = in.RoleRef + return nil + } +} + +func DeepCopy_v1alpha1_ClusterRoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRoleBindingList) + out := out.(*ClusterRoleBindingList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterRoleBinding, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_ClusterRoleBinding(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_ClusterRoleList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRoleList) + out := out.(*ClusterRoleList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterRole, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_ClusterRole(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PolicyRule) + out := out.(*PolicyRule) + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Verbs = nil + } + if err := runtime.DeepCopy_runtime_RawExtension(&in.AttributeRestrictions, &out.AttributeRestrictions, c); err != nil { + return err + } + if in.APIGroups != nil { + in, out := &in.APIGroups, &out.APIGroups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.APIGroups = nil + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Resources = nil + } + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.ResourceNames = nil + } + if in.NonResourceURLs != nil { + in, out := &in.NonResourceURLs, &out.NonResourceURLs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.NonResourceURLs = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_Role(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Role) + out := out.(*Role) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]PolicyRule, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_RoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RoleBinding) + out := out.(*RoleBinding) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subjects != nil { + in, out := &in.Subjects, &out.Subjects + *out = make([]Subject, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Subjects = nil + } + out.RoleRef = in.RoleRef + return nil + } +} + +func DeepCopy_v1alpha1_RoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RoleBindingList) + out := out.(*RoleBindingList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RoleBinding, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_RoleBinding(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_RoleList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RoleList) + out := out.(*RoleList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Role, len(*in)) + for i := range *in { + if err := DeepCopy_v1alpha1_Role(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1alpha1_Subject(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Subject) + out := out.(*Subject) + out.Kind = in.Kind + out.APIVersion = in.APIVersion + out.Name = in.Name + out.Namespace = in.Namespace + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/zz_generated.deepcopy.go new file mode 100644 index 0000000000..98812c5413 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/apis/rbac/zz_generated.deepcopy.go @@ -0,0 +1,285 @@ +// +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 rbac + +import ( + api "k8s.io/kubernetes/pkg/api" + conversion "k8s.io/kubernetes/pkg/conversion" + runtime "k8s.io/kubernetes/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_rbac_ClusterRole, InType: reflect.TypeOf(&ClusterRole{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleBinding, InType: reflect.TypeOf(&ClusterRoleBinding{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleBindingList, InType: reflect.TypeOf(&ClusterRoleBindingList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleList, InType: reflect.TypeOf(&ClusterRoleList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_PolicyRule, InType: reflect.TypeOf(&PolicyRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_Role, InType: reflect.TypeOf(&Role{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleBinding, InType: reflect.TypeOf(&RoleBinding{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleBindingList, InType: reflect.TypeOf(&RoleBindingList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleList, InType: reflect.TypeOf(&RoleList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_Subject, InType: reflect.TypeOf(&Subject{})}, + ) +} + +func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRole) + out := out.(*ClusterRole) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]PolicyRule, len(*in)) + for i := range *in { + if err := DeepCopy_rbac_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRoleBinding) + out := out.(*ClusterRoleBinding) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subjects != nil { + in, out := &in.Subjects, &out.Subjects + *out = make([]Subject, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Subjects = nil + } + out.RoleRef = in.RoleRef + return nil + } +} + +func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRoleBindingList) + out := out.(*ClusterRoleBindingList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterRoleBinding, len(*in)) + for i := range *in { + if err := DeepCopy_rbac_ClusterRoleBinding(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ClusterRoleList) + out := out.(*ClusterRoleList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterRole, len(*in)) + for i := range *in { + if err := DeepCopy_rbac_ClusterRole(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_rbac_PolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PolicyRule) + out := out.(*PolicyRule) + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Verbs = nil + } + if in.AttributeRestrictions == nil { + out.AttributeRestrictions = nil + } else if newVal, err := c.DeepCopy(&in.AttributeRestrictions); err != nil { + return err + } else { + out.AttributeRestrictions = *newVal.(*runtime.Object) + } + if in.APIGroups != nil { + in, out := &in.APIGroups, &out.APIGroups + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.APIGroups = nil + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Resources = nil + } + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.ResourceNames = nil + } + if in.NonResourceURLs != nil { + in, out := &in.NonResourceURLs, &out.NonResourceURLs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.NonResourceURLs = nil + } + return nil + } +} + +func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Role) + out := out.(*Role) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]PolicyRule, len(*in)) + for i := range *in { + if err := DeepCopy_rbac_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RoleBinding) + out := out.(*RoleBinding) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subjects != nil { + in, out := &in.Subjects, &out.Subjects + *out = make([]Subject, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Subjects = nil + } + out.RoleRef = in.RoleRef + return nil + } +} + +func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RoleBindingList) + out := out.(*RoleBindingList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RoleBinding, len(*in)) + for i := range *in { + if err := DeepCopy_rbac_RoleBinding(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RoleList) + out := out.(*RoleList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Role, len(*in)) + for i := range *in { + if err := DeepCopy_rbac_Role(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_rbac_Subject(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Subject) + out := out.(*Subject) + out.Kind = in.Kind + out.APIVersion = in.APIVersion + out.Name = in.Name + out.Namespace = in.Namespace + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/auth/user/user.go b/ingress/vendor/k8s.io/kubernetes/pkg/auth/user/user.go index 99261965d8..7e7cc16f68 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/auth/user/user.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/capabilities/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/capabilities/doc.go index b7fa14baad..e2042a881e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/capabilities/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/capabilities/doc.go @@ -14,5 +14,5 @@ See the License for the specific language governing permissions and limitations under the License. */ -// package capbabilities manages system level capabilities +// package capabilities manages system level capabilities package capabilities diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go index 5a7f4a90f6..aa2a9fc4a7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/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/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache.go index 8c5c4709d7..88ef89b3ee 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache.go @@ -21,7 +21,7 @@ import ( "time" "github.com/golang/glog" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" ) // ExpirationCache implements the store interface @@ -38,7 +38,7 @@ import ( type ExpirationCache struct { cacheStorage ThreadSafeStore keyFunc KeyFunc - clock util.Clock + clock clock.Clock expirationPolicy ExpirationPolicy // expirationLock is a write lock used to guarantee that we don't clobber // newly inserted objects because of a stale expiration timestamp comparison @@ -58,7 +58,7 @@ type TTLPolicy struct { Ttl time.Duration // Clock used to calculate ttl expiration - Clock util.Clock + Clock clock.Clock } // IsExpired returns true if the given object is older than the ttl, or it can't @@ -73,7 +73,7 @@ type timestampedEntry struct { timestamp time.Time } -// getTimestampedEntry returnes the timestampedEntry stored under the given key. +// getTimestampedEntry returns the timestampedEntry stored under the given key. func (c *ExpirationCache) getTimestampedEntry(key string) (*timestampedEntry, bool) { item, _ := c.cacheStorage.Get(key) if tsEntry, ok := item.(*timestampedEntry); ok { @@ -202,7 +202,7 @@ func NewTTLStore(keyFunc KeyFunc, ttl time.Duration) Store { return &ExpirationCache{ cacheStorage: NewThreadSafeStore(Indexers{}, Indices{}), keyFunc: keyFunc, - clock: util.RealClock{}, - expirationPolicy: &TTLPolicy{ttl, util.RealClock{}}, + clock: clock.RealClock{}, + expirationPolicy: &TTLPolicy{ttl, clock.RealClock{}}, } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache_fakes.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache_fakes.go index eb1d5353af..da180b77f1 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache_fakes.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/expiration_cache_fakes.go @@ -17,7 +17,7 @@ limitations under the License. package cache import ( - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" "k8s.io/kubernetes/pkg/util/sets" ) @@ -43,7 +43,7 @@ func (p *FakeExpirationPolicy) IsExpired(obj *timestampedEntry) bool { return !p.NeverExpire.Has(key) } -func NewFakeExpirationStore(keyFunc KeyFunc, deletedKeys chan<- string, expirationPolicy ExpirationPolicy, cacheClock util.Clock) Store { +func NewFakeExpirationStore(keyFunc KeyFunc, deletedKeys chan<- string, expirationPolicy ExpirationPolicy, cacheClock clock.Clock) Store { cacheStorage := NewThreadSafeStore(Indexers{}, Indices{}) return &ExpirationCache{ cacheStorage: &fakeThreadSafeMap{cacheStorage, deletedKeys}, diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/index.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/index.go index 437988050a..218f3c8a53 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/index.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/index.go @@ -55,6 +55,9 @@ func IndexFuncToKeyFuncAdapter(indexFunc IndexFunc) KeyFunc { if len(indexKeys) > 1 { return "", fmt.Errorf("too many keys: %v", indexKeys) } + if len(indexKeys) == 0 { + return "", fmt.Errorf("unexpected empty indexKeys") + } return indexKeys[0], nil } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/listers.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/listers.go index 29e58597c2..6041744477 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/listers.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/listers.go @@ -21,10 +21,13 @@ import ( "github.com/golang/glog" "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/apis/batch" + "k8s.io/kubernetes/pkg/apis/certificates" "k8s.io/kubernetes/pkg/apis/extensions" + "k8s.io/kubernetes/pkg/apis/policy" "k8s.io/kubernetes/pkg/labels" ) @@ -47,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)) { @@ -76,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 @@ -97,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 @@ -105,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) @@ -151,11 +161,11 @@ type storeToNodeConditionLister struct { } // List returns a list of nodes that match the conditions defined by the predicate functions in the storeToNodeConditionLister. -func (s storeToNodeConditionLister) List() (nodes api.NodeList, err error) { +func (s storeToNodeConditionLister) List() (nodes []*api.Node, err error) { for _, m := range s.store.List() { node := m.(*api.Node) if s.predicate(node) { - nodes.Items = append(nodes.Items, *node) + nodes = append(nodes, node) } else { glog.V(5).Infof("Node %s matches none of the conditions", node.Name) } @@ -230,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 @@ -248,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) @@ -358,6 +378,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} } @@ -481,7 +512,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) } @@ -670,3 +701,83 @@ func (s *StoreToPetSetLister) GetPodPetSets(pod *api.Pod) (psList []apps.PetSet, } return } + +// StoreToCertificateRequestLister gives a store List and Exists methods. The store must contain only CertificateRequests. +type StoreToCertificateRequestLister struct { + Store +} + +// Exists checks if the given csr exists in the store. +func (s *StoreToCertificateRequestLister) Exists(csr *certificates.CertificateSigningRequest) (bool, error) { + _, exists, err := s.Store.Get(csr) + if err != nil { + return false, err + } + return exists, nil +} + +// StoreToCertificateRequestLister lists all csrs in the store. +func (s *StoreToCertificateRequestLister) List() (csrs certificates.CertificateSigningRequestList, err error) { + for _, c := range s.Store.List() { + csrs.Items = append(csrs.Items, *(c.(*certificates.CertificateSigningRequest))) + } + return csrs, nil +} + +// IndexerToNamespaceLister gives an Indexer List method +type IndexerToNamespaceLister struct { + Indexer +} + +// List returns a list of namespaces +func (i *IndexerToNamespaceLister) List(selector labels.Selector) (namespaces []*api.Namespace, err error) { + for _, m := range i.Indexer.List() { + namespace := m.(*api.Namespace) + if selector.Matches(labels.Set(namespace.Labels)) { + namespaces = append(namespaces, namespace) + } + } + + 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/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/reflector.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/reflector.go index e1af63e05c..0f6e3681f9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/reflector.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/reflector.go @@ -69,8 +69,6 @@ type Reflector struct { resyncPeriod time.Duration // now() returns current time - exposed for testing purposes now func() time.Time - // nextResync is approximate time of next resync (0 if not scheduled) - nextResync time.Time // lastSyncResourceVersion is the resource version token last // observed when doing a sync with the underlying store // it is thread safe, but not synchronized with the underlying store @@ -164,7 +162,7 @@ func hasPackage(file string, ignoredPackages []string) bool { return false } -// trimPackagePrefix reduces dulpicate values off the front of a package name. +// trimPackagePrefix reduces duplicate values off the front of a package name. func trimPackagePrefix(file string) string { if l := strings.LastIndex(file, "k8s.io/kubernetes/pkg/"); l >= 0 { return file[l+len("k8s.io/kubernetes/"):] @@ -234,14 +232,12 @@ var ( // required, and a cleanup function. func (r *Reflector) resyncChan() (<-chan time.Time, func() bool) { if r.resyncPeriod == 0 { - r.nextResync = time.Time{} return neverExitWatch, func() bool { return false } } // The cleanup function is required: imagine the scenario where watches // always fail so we end up listing frequently. Then, if we don't // manually stop the timer, we could end up with many timers active // concurrently. - r.nextResync = r.now().Add(r.resyncPeriod) t := time.NewTimer(r.resyncPeriod) return t.C, t.Stop } @@ -285,7 +281,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error { case <-stopCh: return } - glog.V(4).Infof("%s: next resync planned for %#v, forcing now", r.name, r.nextResync) + glog.V(4).Infof("%s: forcing resync", r.name) if err := r.store.Resync(); err != nil { resyncerrc <- err return diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/thread_safe_store.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/thread_safe_store.go index 9d88ce33df..74fe03807f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/cache/thread_safe_store.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/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/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/clientset.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/clientset.go index 010dd53036..df75ef10fa 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/clientset.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/clientset.go @@ -18,6 +18,8 @@ package internalclientset import ( "github.com/golang/glog" + unversionedauthentication "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned" + unversionedauthorization "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned" unversionedautoscaling "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned" unversionedbatch "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned" unversionedcertificates "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned" @@ -32,11 +34,13 @@ import ( type Interface interface { Discovery() discovery.DiscoveryInterface Core() unversionedcore.CoreInterface - Extensions() unversionedextensions.ExtensionsInterface + Authentication() unversionedauthentication.AuthenticationInterface + Authorization() unversionedauthorization.AuthorizationInterface Autoscaling() unversionedautoscaling.AutoscalingInterface Batch() unversionedbatch.BatchInterface - Rbac() unversionedrbac.RbacInterface Certificates() unversionedcertificates.CertificatesInterface + Extensions() unversionedextensions.ExtensionsInterface + Rbac() unversionedrbac.RbacInterface } // Clientset contains the clients for groups. Each group has exactly one @@ -44,11 +48,13 @@ type Interface interface { type Clientset struct { *discovery.DiscoveryClient *unversionedcore.CoreClient - *unversionedextensions.ExtensionsClient + *unversionedauthentication.AuthenticationClient + *unversionedauthorization.AuthorizationClient *unversionedautoscaling.AutoscalingClient *unversionedbatch.BatchClient - *unversionedrbac.RbacClient *unversionedcertificates.CertificatesClient + *unversionedextensions.ExtensionsClient + *unversionedrbac.RbacClient } // Core retrieves the CoreClient @@ -59,12 +65,20 @@ func (c *Clientset) Core() unversionedcore.CoreInterface { return c.CoreClient } -// Extensions retrieves the ExtensionsClient -func (c *Clientset) Extensions() unversionedextensions.ExtensionsInterface { +// Authentication retrieves the AuthenticationClient +func (c *Clientset) Authentication() unversionedauthentication.AuthenticationInterface { if c == nil { return nil } - return c.ExtensionsClient + return c.AuthenticationClient +} + +// Authorization retrieves the AuthorizationClient +func (c *Clientset) Authorization() unversionedauthorization.AuthorizationInterface { + if c == nil { + return nil + } + return c.AuthorizationClient } // Autoscaling retrieves the AutoscalingClient @@ -83,20 +97,28 @@ func (c *Clientset) Batch() unversionedbatch.BatchInterface { return c.BatchClient } -// Rbac retrieves the RbacClient -func (c *Clientset) Rbac() unversionedrbac.RbacInterface { +// Certificates retrieves the CertificatesClient +func (c *Clientset) Certificates() unversionedcertificates.CertificatesInterface { if c == nil { return nil } - return c.RbacClient + return c.CertificatesClient } -// Certificates retrieves the CertificatesClient -func (c *Clientset) Certificates() unversionedcertificates.CertificatesInterface { +// Extensions retrieves the ExtensionsClient +func (c *Clientset) Extensions() unversionedextensions.ExtensionsInterface { if c == nil { return nil } - return c.CertificatesClient + return c.ExtensionsClient +} + +// Rbac retrieves the RbacClient +func (c *Clientset) Rbac() unversionedrbac.RbacInterface { + if c == nil { + return nil + } + return c.RbacClient } // Discovery retrieves the DiscoveryClient @@ -116,7 +138,11 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) { if err != nil { return nil, err } - clientset.ExtensionsClient, err = unversionedextensions.NewForConfig(&configShallowCopy) + clientset.AuthenticationClient, err = unversionedauthentication.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.AuthorizationClient, err = unversionedauthorization.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -128,11 +154,15 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) { if err != nil { return nil, err } - clientset.RbacClient, err = unversionedrbac.NewForConfig(&configShallowCopy) + clientset.CertificatesClient, err = unversionedcertificates.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.CertificatesClient, err = unversionedcertificates.NewForConfig(&configShallowCopy) + clientset.ExtensionsClient, err = unversionedextensions.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.RbacClient, err = unversionedrbac.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -150,11 +180,13 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) { func NewForConfigOrDie(c *restclient.Config) *Clientset { var clientset Clientset clientset.CoreClient = unversionedcore.NewForConfigOrDie(c) - clientset.ExtensionsClient = unversionedextensions.NewForConfigOrDie(c) + clientset.AuthenticationClient = unversionedauthentication.NewForConfigOrDie(c) + clientset.AuthorizationClient = unversionedauthorization.NewForConfigOrDie(c) clientset.AutoscalingClient = unversionedautoscaling.NewForConfigOrDie(c) clientset.BatchClient = unversionedbatch.NewForConfigOrDie(c) - clientset.RbacClient = unversionedrbac.NewForConfigOrDie(c) clientset.CertificatesClient = unversionedcertificates.NewForConfigOrDie(c) + clientset.ExtensionsClient = unversionedextensions.NewForConfigOrDie(c) + clientset.RbacClient = unversionedrbac.NewForConfigOrDie(c) clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &clientset @@ -164,11 +196,13 @@ func NewForConfigOrDie(c *restclient.Config) *Clientset { func New(c *restclient.RESTClient) *Clientset { var clientset Clientset clientset.CoreClient = unversionedcore.New(c) - clientset.ExtensionsClient = unversionedextensions.New(c) + clientset.AuthenticationClient = unversionedauthentication.New(c) + clientset.AuthorizationClient = unversionedauthorization.New(c) clientset.AutoscalingClient = unversionedautoscaling.New(c) clientset.BatchClient = unversionedbatch.New(c) - clientset.RbacClient = unversionedrbac.New(c) clientset.CertificatesClient = unversionedcertificates.New(c) + clientset.ExtensionsClient = unversionedextensions.New(c) + clientset.RbacClient = unversionedrbac.New(c) clientset.DiscoveryClient = discovery.NewDiscoveryClient(c) return &clientset diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/import_known_versions.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/import_known_versions.go index 4a922df8ad..40ce7958f7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/import_known_versions.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/import_known_versions.go @@ -23,6 +23,7 @@ import ( _ "k8s.io/kubernetes/pkg/api/install" "k8s.io/kubernetes/pkg/apimachinery/registered" _ "k8s.io/kubernetes/pkg/apis/apps/install" + _ "k8s.io/kubernetes/pkg/apis/authentication/install" _ "k8s.io/kubernetes/pkg/apis/authorization/install" _ "k8s.io/kubernetes/pkg/apis/autoscaling/install" _ "k8s.io/kubernetes/pkg/apis/batch/install" diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/authentication_client.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/authentication_client.go new file mode 100644 index 0000000000..3606fdb935 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/authentication_client.go @@ -0,0 +1,101 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + registered "k8s.io/kubernetes/pkg/apimachinery/registered" + restclient "k8s.io/kubernetes/pkg/client/restclient" +) + +type AuthenticationInterface interface { + GetRESTClient() *restclient.RESTClient + TokenReviewsGetter +} + +// AuthenticationClient is used to interact with features provided by the Authentication group. +type AuthenticationClient struct { + *restclient.RESTClient +} + +func (c *AuthenticationClient) TokenReviews() TokenReviewInterface { + return newTokenReviews(c) +} + +// NewForConfig creates a new AuthenticationClient for the given config. +func NewForConfig(c *restclient.Config) (*AuthenticationClient, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := restclient.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AuthenticationClient{client}, nil +} + +// NewForConfigOrDie creates a new AuthenticationClient for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *restclient.Config) *AuthenticationClient { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new AuthenticationClient for the given RESTClient. +func New(c *restclient.RESTClient) *AuthenticationClient { + return &AuthenticationClient{c} +} + +func setConfigDefaults(config *restclient.Config) error { + // if authentication group is not registered, return an error + g, err := registered.Group("authentication.k8s.io") + if err != nil { + return err + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = restclient.DefaultKubernetesUserAgent() + } + // TODO: Unconditionally set the config.Version, until we fix the config. + //if config.Version == "" { + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + //} + + config.NegotiatedSerializer = api.Codecs + + if config.QPS == 0 { + config.QPS = 5 + } + if config.Burst == 0 { + config.Burst = 10 + } + return nil +} + +// GetRESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *AuthenticationClient) GetRESTClient() *restclient.RESTClient { + if c == nil { + return nil + } + return c.RESTClient +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/doc.go new file mode 100644 index 0000000000..1e6a8ff827 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/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 the default arguments. + +// This package has the automatically generated typed clients. +package unversioned diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/generated_expansion.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/generated_expansion.go new file mode 100644 index 0000000000..1137e52046 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/generated_expansion.go @@ -0,0 +1,35 @@ +/* +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 unversioned + +import ( + authenticationapi "k8s.io/kubernetes/pkg/apis/authentication" +) + +type TokenReviewExpansion interface { + Create(tokenReview *authenticationapi.TokenReview) (result *authenticationapi.TokenReview, err error) +} + +func (c *tokenReviews) Create(tokenReview *authenticationapi.TokenReview) (result *authenticationapi.TokenReview, err error) { + result = &authenticationapi.TokenReview{} + err = c.client.Post(). + Resource("tokenreviews"). + Body(tokenReview). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/tokenreview.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/tokenreview.go new file mode 100644 index 0000000000..d7ab94b635 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned/tokenreview.go @@ -0,0 +1,40 @@ +/* +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 unversioned + +// TokenReviewsGetter has a method to return a TokenReviewInterface. +// A group's client should implement this interface. +type TokenReviewsGetter interface { + TokenReviews() TokenReviewInterface +} + +// TokenReviewInterface has methods to work with TokenReview resources. +type TokenReviewInterface interface { + TokenReviewExpansion +} + +// tokenReviews implements TokenReviewInterface +type tokenReviews struct { + client *AuthenticationClient +} + +// newTokenReviews returns a TokenReviews +func newTokenReviews(c *AuthenticationClient) *tokenReviews { + return &tokenReviews{ + client: c, + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/authorization_client.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/authorization_client.go new file mode 100644 index 0000000000..5b63753ea6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/authorization_client.go @@ -0,0 +1,101 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + registered "k8s.io/kubernetes/pkg/apimachinery/registered" + restclient "k8s.io/kubernetes/pkg/client/restclient" +) + +type AuthorizationInterface interface { + GetRESTClient() *restclient.RESTClient + SubjectAccessReviewsGetter +} + +// AuthorizationClient is used to interact with features provided by the Authorization group. +type AuthorizationClient struct { + *restclient.RESTClient +} + +func (c *AuthorizationClient) SubjectAccessReviews() SubjectAccessReviewInterface { + return newSubjectAccessReviews(c) +} + +// NewForConfig creates a new AuthorizationClient for the given config. +func NewForConfig(c *restclient.Config) (*AuthorizationClient, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := restclient.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AuthorizationClient{client}, nil +} + +// NewForConfigOrDie creates a new AuthorizationClient for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *restclient.Config) *AuthorizationClient { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new AuthorizationClient for the given RESTClient. +func New(c *restclient.RESTClient) *AuthorizationClient { + return &AuthorizationClient{c} +} + +func setConfigDefaults(config *restclient.Config) error { + // if authorization group is not registered, return an error + g, err := registered.Group("authorization.k8s.io") + if err != nil { + return err + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = restclient.DefaultKubernetesUserAgent() + } + // TODO: Unconditionally set the config.Version, until we fix the config. + //if config.Version == "" { + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + //} + + config.NegotiatedSerializer = api.Codecs + + if config.QPS == 0 { + config.QPS = 5 + } + if config.Burst == 0 { + config.Burst = 10 + } + return nil +} + +// GetRESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *AuthorizationClient) GetRESTClient() *restclient.RESTClient { + if c == nil { + return nil + } + return c.RESTClient +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/doc.go new file mode 100644 index 0000000000..1e6a8ff827 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/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 the default arguments. + +// This package has the automatically generated typed clients. +package unversioned diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/generated_expansion.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/generated_expansion.go new file mode 100644 index 0000000000..16a170ece2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/generated_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 unversioned + +import ( + authorizationapi "k8s.io/kubernetes/pkg/apis/authorization" +) + +// 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/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/subjectaccessreview.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/subjectaccessreview.go new file mode 100644 index 0000000000..cab6471b6a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned/subjectaccessreview.go @@ -0,0 +1,40 @@ +/* +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 unversioned + +// SubjectAccessReviewsGetter has a method to return a SubjectAccessReviewInterface. +// A group's client should implement this interface. +type SubjectAccessReviewsGetter interface { + SubjectAccessReviews() SubjectAccessReviewInterface +} + +// SubjectAccessReviewInterface has methods to work with SubjectAccessReview resources. +type SubjectAccessReviewInterface interface { + SubjectAccessReviewExpansion +} + +// subjectAccessReviews implements SubjectAccessReviewInterface +type subjectAccessReviews struct { + client *AuthorizationClient +} + +// newSubjectAccessReviews returns a SubjectAccessReviews +func newSubjectAccessReviews(c *AuthorizationClient) *subjectAccessReviews { + return &subjectAccessReviews{ + client: c, + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned/horizontalpodautoscaler.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned/horizontalpodautoscaler.go index 747afc67ae..515be142ed 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned/horizontalpodautoscaler.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned/horizontalpodautoscaler.go @@ -38,7 +38,7 @@ type HorizontalPodAutoscalerInterface interface { Get(name string) (*autoscaling.HorizontalPodAutoscaler, error) List(opts api.ListOptions) (*autoscaling.HorizontalPodAutoscalerList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *autoscaling.HorizontalPodAutoscaler, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) HorizontalPodAutoscalerExpansion } @@ -151,11 +151,12 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, } // Patch applies the patch and returns the patched horizontalPodAutoscaler. -func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte) (result *autoscaling.HorizontalPodAutoscaler, err error) { +func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) { result = &autoscaling.HorizontalPodAutoscaler{} err = c.client.Patch(pt). Namespace(c.ns). Resource("horizontalpodautoscalers"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/job.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/job.go index b7031c28f3..8d209fb8d6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/job.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/job.go @@ -38,7 +38,7 @@ type JobInterface interface { Get(name string) (*batch.Job, error) List(opts api.ListOptions) (*batch.JobList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) JobExpansion } @@ -151,11 +151,12 @@ func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched job. -func (c *jobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error) { +func (c *jobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) { result = &batch.Job{} err = c.client.Patch(pt). Namespace(c.ns). Resource("jobs"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/scheduledjob.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/scheduledjob.go index 9c6e598329..3c3f32ef50 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/scheduledjob.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned/scheduledjob.go @@ -38,7 +38,7 @@ type ScheduledJobInterface interface { Get(name string) (*batch.ScheduledJob, error) List(opts api.ListOptions) (*batch.ScheduledJobList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *batch.ScheduledJob, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.ScheduledJob, err error) ScheduledJobExpansion } @@ -151,11 +151,12 @@ func (c *scheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched scheduledJob. -func (c *scheduledJobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.ScheduledJob, err error) { +func (c *scheduledJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.ScheduledJob, err error) { result = &batch.ScheduledJob{} err = c.client.Patch(pt). Namespace(c.ns). Resource("scheduledjobs"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest.go index 6ed157cc3c..e199acf2f6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest.go @@ -38,7 +38,7 @@ type CertificateSigningRequestInterface interface { Get(name string) (*certificates.CertificateSigningRequest, error) List(opts api.ListOptions) (*certificates.CertificateSigningRequestList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *certificates.CertificateSigningRequest, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error) CertificateSigningRequestExpansion } @@ -141,10 +141,11 @@ func (c *certificateSigningRequests) Watch(opts api.ListOptions) (watch.Interfac } // Patch applies the patch and returns the patched certificateSigningRequest. -func (c *certificateSigningRequests) Patch(name string, pt api.PatchType, data []byte) (result *certificates.CertificateSigningRequest, err error) { +func (c *certificateSigningRequests) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error) { result = &certificates.CertificateSigningRequest{} err = c.client.Patch(pt). Resource("certificatesigningrequests"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest_expansion.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest_expansion.go new file mode 100644 index 0000000000..b4f015b86b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/certificatesigningrequest_expansion.go @@ -0,0 +1,35 @@ +/* +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 unversioned + +import "k8s.io/kubernetes/pkg/apis/certificates" + +type CertificateSigningRequestExpansion interface { + UpdateApproval(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) +} + +func (c *certificateSigningRequests) UpdateApproval(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) { + result = &certificates.CertificateSigningRequest{} + err = c.client.Put(). + Resource("certificatesigningrequests"). + Name(certificateSigningRequest.Name). + Body(certificateSigningRequest). + SubResource("approval"). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/generated_expansion.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/generated_expansion.go index fa61c9dbe1..6cdbfc5bcd 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/generated_expansion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/certificates/unversioned/generated_expansion.go @@ -15,5 +15,3 @@ limitations under the License. */ package unversioned - -type CertificateSigningRequestExpansion interface{} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/componentstatus.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/componentstatus.go index 014fd80b13..ffdaeb49f0 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/componentstatus.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/componentstatus.go @@ -36,7 +36,7 @@ type ComponentStatusInterface interface { Get(name string) (*api.ComponentStatus, error) List(opts api.ListOptions) (*api.ComponentStatusList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.ComponentStatus, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error) ComponentStatusExpansion } @@ -127,10 +127,11 @@ func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error) } // Patch applies the patch and returns the patched componentStatus. -func (c *componentStatuses) Patch(name string, pt api.PatchType, data []byte) (result *api.ComponentStatus, err error) { +func (c *componentStatuses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error) { result = &api.ComponentStatus{} err = c.client.Patch(pt). Resource("componentstatuses"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/configmap.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/configmap.go index 9b24f8490c..c937328dcf 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/configmap.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/configmap.go @@ -36,7 +36,7 @@ type ConfigMapInterface interface { Get(name string) (*api.ConfigMap, error) List(opts api.ListOptions) (*api.ConfigMapList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) ConfigMapExpansion } @@ -136,11 +136,12 @@ func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched configMap. -func (c *configMaps) Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error) { +func (c *configMaps) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) { result = &api.ConfigMap{} err = c.client.Patch(pt). Namespace(c.ns). Resource("configmaps"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/endpoints.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/endpoints.go index ee96600c2f..d5f383d151 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/endpoints.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/endpoints.go @@ -36,7 +36,7 @@ type EndpointsInterface interface { Get(name string) (*api.Endpoints, error) List(opts api.ListOptions) (*api.EndpointsList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Endpoints, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error) EndpointsExpansion } @@ -136,11 +136,12 @@ func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched endpoints. -func (c *endpoints) Patch(name string, pt api.PatchType, data []byte) (result *api.Endpoints, err error) { +func (c *endpoints) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error) { result = &api.Endpoints{} err = c.client.Patch(pt). Namespace(c.ns). Resource("endpoints"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/event.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/event.go index f50a491d96..d4edcd37a8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/event.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/event.go @@ -36,7 +36,7 @@ type EventInterface interface { Get(name string) (*api.Event, error) List(opts api.ListOptions) (*api.EventList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Event, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error) EventExpansion } @@ -136,11 +136,12 @@ func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched event. -func (c *events) Patch(name string, pt api.PatchType, data []byte) (result *api.Event, err error) { +func (c *events) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Event, err error) { result = &api.Event{} err = c.client.Patch(pt). Namespace(c.ns). Resource("events"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/limitrange.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/limitrange.go index 7c65b06685..70cd4fb3e2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/limitrange.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/limitrange.go @@ -36,7 +36,7 @@ type LimitRangeInterface interface { Get(name string) (*api.LimitRange, error) List(opts api.ListOptions) (*api.LimitRangeList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error) LimitRangeExpansion } @@ -136,11 +136,12 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched limitRange. -func (c *limitRanges) Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error) { +func (c *limitRanges) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error) { result = &api.LimitRange{} err = c.client.Patch(pt). Namespace(c.ns). Resource("limitranges"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/namespace.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/namespace.go index 0f84a5a3e4..7b39f2b864 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/namespace.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/namespace.go @@ -37,7 +37,7 @@ type NamespaceInterface interface { Get(name string) (*api.Namespace, error) List(opts api.ListOptions) (*api.NamespaceList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Namespace, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) NamespaceExpansion } @@ -140,10 +140,11 @@ func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched namespace. -func (c *namespaces) Patch(name string, pt api.PatchType, data []byte) (result *api.Namespace, err error) { +func (c *namespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) { result = &api.Namespace{} err = c.client.Patch(pt). Resource("namespaces"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/node.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/node.go index 7f2ea15919..8f4ffcd481 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/node.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/node.go @@ -37,7 +37,7 @@ type NodeInterface interface { Get(name string) (*api.Node, error) List(opts api.ListOptions) (*api.NodeList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Node, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Node, err error) NodeExpansion } @@ -140,10 +140,11 @@ func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched node. -func (c *nodes) Patch(name string, pt api.PatchType, data []byte) (result *api.Node, err error) { +func (c *nodes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Node, err error) { result = &api.Node{} err = c.client.Patch(pt). Resource("nodes"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolume.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolume.go index 065df7c914..ecca7a375e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolume.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolume.go @@ -37,7 +37,7 @@ type PersistentVolumeInterface interface { Get(name string) (*api.PersistentVolume, error) List(opts api.ListOptions) (*api.PersistentVolumeList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolume, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error) PersistentVolumeExpansion } @@ -140,10 +140,11 @@ func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error) } // Patch applies the patch and returns the patched persistentVolume. -func (c *persistentVolumes) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolume, err error) { +func (c *persistentVolumes) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error) { result = &api.PersistentVolume{} err = c.client.Patch(pt). Resource("persistentvolumes"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolumeclaim.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolumeclaim.go index d63402358e..45d22eb43f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolumeclaim.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/persistentvolumeclaim.go @@ -37,7 +37,7 @@ type PersistentVolumeClaimInterface interface { Get(name string) (*api.PersistentVolumeClaim, error) List(opts api.ListOptions) (*api.PersistentVolumeClaimList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error) PersistentVolumeClaimExpansion } @@ -150,11 +150,12 @@ func (c *persistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, e } // Patch applies the patch and returns the patched persistentVolumeClaim. -func (c *persistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error) { +func (c *persistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error) { result = &api.PersistentVolumeClaim{} err = c.client.Patch(pt). Namespace(c.ns). Resource("persistentvolumeclaims"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/pod.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/pod.go index 630d3d4f56..595462a0c8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/pod.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/pod.go @@ -37,7 +37,7 @@ type PodInterface interface { Get(name string) (*api.Pod, error) List(opts api.ListOptions) (*api.PodList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Pod, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Pod, err error) PodExpansion } @@ -150,11 +150,12 @@ func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched pod. -func (c *pods) Patch(name string, pt api.PatchType, data []byte) (result *api.Pod, err error) { +func (c *pods) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Pod, err error) { result = &api.Pod{} err = c.client.Patch(pt). Namespace(c.ns). Resource("pods"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/podtemplate.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/podtemplate.go index 1999c4069d..4494bd34f5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/podtemplate.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/podtemplate.go @@ -36,7 +36,7 @@ type PodTemplateInterface interface { Get(name string) (*api.PodTemplate, error) List(opts api.ListOptions) (*api.PodTemplateList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.PodTemplate, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error) PodTemplateExpansion } @@ -136,11 +136,12 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched podTemplate. -func (c *podTemplates) Patch(name string, pt api.PatchType, data []byte) (result *api.PodTemplate, err error) { +func (c *podTemplates) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error) { result = &api.PodTemplate{} err = c.client.Patch(pt). Namespace(c.ns). Resource("podtemplates"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/replicationcontroller.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/replicationcontroller.go index fad85eb488..a1b1757665 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/replicationcontroller.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/replicationcontroller.go @@ -37,7 +37,7 @@ type ReplicationControllerInterface interface { Get(name string) (*api.ReplicationController, error) List(opts api.ListOptions) (*api.ReplicationControllerList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.ReplicationController, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error) ReplicationControllerExpansion } @@ -150,11 +150,12 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e } // Patch applies the patch and returns the patched replicationController. -func (c *replicationControllers) Patch(name string, pt api.PatchType, data []byte) (result *api.ReplicationController, err error) { +func (c *replicationControllers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error) { result = &api.ReplicationController{} err = c.client.Patch(pt). Namespace(c.ns). Resource("replicationcontrollers"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/resourcequota.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/resourcequota.go index d6a3fc5810..1aa175b926 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/resourcequota.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/resourcequota.go @@ -37,7 +37,7 @@ type ResourceQuotaInterface interface { Get(name string) (*api.ResourceQuota, error) List(opts api.ListOptions) (*api.ResourceQuotaList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.ResourceQuota, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error) ResourceQuotaExpansion } @@ -150,11 +150,12 @@ func (c *resourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched resourceQuota. -func (c *resourceQuotas) Patch(name string, pt api.PatchType, data []byte) (result *api.ResourceQuota, err error) { +func (c *resourceQuotas) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error) { result = &api.ResourceQuota{} err = c.client.Patch(pt). Namespace(c.ns). Resource("resourcequotas"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/secret.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/secret.go index e7a1f295b6..f87263cbbb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/secret.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/secret.go @@ -36,7 +36,7 @@ type SecretInterface interface { Get(name string) (*api.Secret, error) List(opts api.ListOptions) (*api.SecretList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) SecretExpansion } @@ -136,11 +136,12 @@ func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched secret. -func (c *secrets) Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error) { +func (c *secrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) { result = &api.Secret{} err = c.client.Patch(pt). Namespace(c.ns). Resource("secrets"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/service.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/service.go index 1d7b071e85..86fa3b2296 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/service.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/service.go @@ -37,7 +37,7 @@ type ServiceInterface interface { Get(name string) (*api.Service, error) List(opts api.ListOptions) (*api.ServiceList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) ServiceExpansion } @@ -150,11 +150,12 @@ func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched service. -func (c *services) Patch(name string, pt api.PatchType, data []byte) (result *api.Service, err error) { +func (c *services) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Service, err error) { result = &api.Service{} err = c.client.Patch(pt). Namespace(c.ns). Resource("services"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/serviceaccount.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/serviceaccount.go index 43e1626d50..14c56b2f4a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/serviceaccount.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned/serviceaccount.go @@ -36,7 +36,7 @@ type ServiceAccountInterface interface { Get(name string) (*api.ServiceAccount, error) List(opts api.ListOptions) (*api.ServiceAccountList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *api.ServiceAccount, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error) ServiceAccountExpansion } @@ -136,11 +136,12 @@ func (c *serviceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched serviceAccount. -func (c *serviceAccounts) Patch(name string, pt api.PatchType, data []byte) (result *api.ServiceAccount, err error) { +func (c *serviceAccounts) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error) { result = &api.ServiceAccount{} err = c.client.Patch(pt). Namespace(c.ns). Resource("serviceaccounts"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/daemonset.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/daemonset.go index 8cc2e2e022..827677d9d8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/daemonset.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/daemonset.go @@ -38,7 +38,7 @@ type DaemonSetInterface interface { Get(name string) (*extensions.DaemonSet, error) List(opts api.ListOptions) (*extensions.DaemonSetList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *extensions.DaemonSet, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) DaemonSetExpansion } @@ -151,11 +151,12 @@ func (c *daemonSets) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched daemonSet. -func (c *daemonSets) Patch(name string, pt api.PatchType, data []byte) (result *extensions.DaemonSet, err error) { +func (c *daemonSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) { result = &extensions.DaemonSet{} err = c.client.Patch(pt). Namespace(c.ns). Resource("daemonsets"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/deployment.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/deployment.go index 66ac29a606..894a7d397c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/deployment.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/deployment.go @@ -38,7 +38,7 @@ type DeploymentInterface interface { Get(name string) (*extensions.Deployment, error) List(opts api.ListOptions) (*extensions.DeploymentList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) DeploymentExpansion } @@ -151,11 +151,12 @@ func (c *deployments) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched deployment. -func (c *deployments) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error) { +func (c *deployments) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) { result = &extensions.Deployment{} err = c.client.Patch(pt). Namespace(c.ns). Resource("deployments"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/extensions_client.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/extensions_client.go index 5454ea783e..7ad44194f9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/extensions_client.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/extensions_client.go @@ -30,6 +30,7 @@ type ExtensionsInterface interface { PodSecurityPoliciesGetter ReplicaSetsGetter ScalesGetter + StorageClassesGetter ThirdPartyResourcesGetter } @@ -62,6 +63,10 @@ func (c *ExtensionsClient) Scales(namespace string) ScaleInterface { return newScales(c, namespace) } +func (c *ExtensionsClient) StorageClasses() StorageClassInterface { + return newStorageClasses(c) +} + func (c *ExtensionsClient) ThirdPartyResources() ThirdPartyResourceInterface { return newThirdPartyResources(c) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/generated_expansion.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/generated_expansion.go index dd1ed2903e..b795deed19 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/generated_expansion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/generated_expansion.go @@ -29,3 +29,5 @@ type PodSecurityPolicyExpansion interface{} type ThirdPartyResourceExpansion interface{} type ReplicaSetExpansion interface{} + +type StorageClassExpansion interface{} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/ingress.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/ingress.go index 48f52996dc..7d941ac870 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/ingress.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/ingress.go @@ -38,7 +38,7 @@ type IngressInterface interface { Get(name string) (*extensions.Ingress, error) List(opts api.ListOptions) (*extensions.IngressList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *extensions.Ingress, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) IngressExpansion } @@ -151,11 +151,12 @@ func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched ingress. -func (c *ingresses) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Ingress, err error) { +func (c *ingresses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) { result = &extensions.Ingress{} err = c.client.Patch(pt). Namespace(c.ns). Resource("ingresses"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/podsecuritypolicy.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/podsecuritypolicy.go index 1ad64afe52..e59ba014bb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/podsecuritypolicy.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/podsecuritypolicy.go @@ -37,7 +37,7 @@ type PodSecurityPolicyInterface interface { Get(name string) (*extensions.PodSecurityPolicy, error) List(opts api.ListOptions) (*extensions.PodSecurityPolicyList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *extensions.PodSecurityPolicy, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.PodSecurityPolicy, err error) PodSecurityPolicyExpansion } @@ -128,10 +128,11 @@ func (c *podSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface, erro } // Patch applies the patch and returns the patched podSecurityPolicy. -func (c *podSecurityPolicies) Patch(name string, pt api.PatchType, data []byte) (result *extensions.PodSecurityPolicy, err error) { +func (c *podSecurityPolicies) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.PodSecurityPolicy, err error) { result = &extensions.PodSecurityPolicy{} err = c.client.Patch(pt). Resource("podsecuritypolicies"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/replicaset.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/replicaset.go index c8f47f9e7d..fc6987b5ba 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/replicaset.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/replicaset.go @@ -38,7 +38,7 @@ type ReplicaSetInterface interface { Get(name string) (*extensions.ReplicaSet, error) List(opts api.ListOptions) (*extensions.ReplicaSetList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *extensions.ReplicaSet, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) ReplicaSetExpansion } @@ -151,11 +151,12 @@ func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched replicaSet. -func (c *replicaSets) Patch(name string, pt api.PatchType, data []byte) (result *extensions.ReplicaSet, err error) { +func (c *replicaSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) { result = &extensions.ReplicaSet{} err = c.client.Patch(pt). Namespace(c.ns). Resource("replicasets"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/storageclass.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/storageclass.go new file mode 100644 index 0000000000..0a145b0fde --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/storageclass.go @@ -0,0 +1,141 @@ +/* +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 unversioned + +import ( + api "k8s.io/kubernetes/pkg/api" + extensions "k8s.io/kubernetes/pkg/apis/extensions" + watch "k8s.io/kubernetes/pkg/watch" +) + +// StorageClassesGetter has a method to return a StorageClassInterface. +// A group's client should implement this interface. +type StorageClassesGetter interface { + StorageClasses() StorageClassInterface +} + +// StorageClassInterface has methods to work with StorageClass resources. +type StorageClassInterface interface { + Create(*extensions.StorageClass) (*extensions.StorageClass, error) + Update(*extensions.StorageClass) (*extensions.StorageClass, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*extensions.StorageClass, error) + List(opts api.ListOptions) (*extensions.StorageClassList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.StorageClass, err error) + StorageClassExpansion +} + +// storageClasses implements StorageClassInterface +type storageClasses struct { + client *ExtensionsClient +} + +// newStorageClasses returns a StorageClasses +func newStorageClasses(c *ExtensionsClient) *storageClasses { + return &storageClasses{ + client: c, + } +} + +// Create takes the representation of a storageClass and creates it. Returns the server's representation of the storageClass, and an error, if there is any. +func (c *storageClasses) Create(storageClass *extensions.StorageClass) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Post(). + Resource("storageclasses"). + Body(storageClass). + Do(). + Into(result) + return +} + +// Update takes the representation of a storageClass and updates it. Returns the server's representation of the storageClass, and an error, if there is any. +func (c *storageClasses) Update(storageClass *extensions.StorageClass) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Put(). + Resource("storageclasses"). + Name(storageClass.Name). + Body(storageClass). + Do(). + Into(result) + return +} + +// Delete takes name of the storageClass and deletes it. Returns an error if one occurs. +func (c *storageClasses) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Resource("storageclasses"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *storageClasses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Resource("storageclasses"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the storageClass, and returns the corresponding storageClass object, and an error if there is any. +func (c *storageClasses) Get(name string) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Get(). + Resource("storageclasses"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of StorageClasses that match those selectors. +func (c *storageClasses) List(opts api.ListOptions) (result *extensions.StorageClassList, err error) { + result = &extensions.StorageClassList{} + err = c.client.Get(). + Resource("storageclasses"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested storageClasses. +func (c *storageClasses) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Resource("storageclasses"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched storageClass. +func (c *storageClasses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Patch(pt). + Resource("storageclasses"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/thirdpartyresource.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/thirdpartyresource.go index 4539d15dda..914ae24035 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/thirdpartyresource.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/extensions/unversioned/thirdpartyresource.go @@ -37,7 +37,7 @@ type ThirdPartyResourceInterface interface { Get(name string) (*extensions.ThirdPartyResource, error) List(opts api.ListOptions) (*extensions.ThirdPartyResourceList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *extensions.ThirdPartyResource, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ThirdPartyResource, err error) ThirdPartyResourceExpansion } @@ -128,10 +128,11 @@ func (c *thirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, erro } // Patch applies the patch and returns the patched thirdPartyResource. -func (c *thirdPartyResources) Patch(name string, pt api.PatchType, data []byte) (result *extensions.ThirdPartyResource, err error) { +func (c *thirdPartyResources) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *extensions.ThirdPartyResource, err error) { result = &extensions.ThirdPartyResource{} err = c.client.Patch(pt). Resource("thirdpartyresources"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrole.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrole.go index e8261651c5..2ad8d75c5e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrole.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrole.go @@ -37,7 +37,7 @@ type ClusterRoleInterface interface { Get(name string) (*rbac.ClusterRole, error) List(opts api.ListOptions) (*rbac.ClusterRoleList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRole, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRole, err error) ClusterRoleExpansion } @@ -128,10 +128,11 @@ func (c *clusterRoles) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched clusterRole. -func (c *clusterRoles) Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRole, err error) { +func (c *clusterRoles) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRole, err error) { result = &rbac.ClusterRole{} err = c.client.Patch(pt). Resource("clusterroles"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrolebinding.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrolebinding.go index 389464aee7..1f88d7edbc 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrolebinding.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/clusterrolebinding.go @@ -37,7 +37,7 @@ type ClusterRoleBindingInterface interface { Get(name string) (*rbac.ClusterRoleBinding, error) List(opts api.ListOptions) (*rbac.ClusterRoleBindingList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRoleBinding, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRoleBinding, err error) ClusterRoleBindingExpansion } @@ -128,10 +128,11 @@ func (c *clusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, erro } // Patch applies the patch and returns the patched clusterRoleBinding. -func (c *clusterRoleBindings) Patch(name string, pt api.PatchType, data []byte) (result *rbac.ClusterRoleBinding, err error) { +func (c *clusterRoleBindings) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.ClusterRoleBinding, err error) { result = &rbac.ClusterRoleBinding{} err = c.client.Patch(pt). Resource("clusterrolebindings"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/role.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/role.go index 030244b110..76dafee01e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/role.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/role.go @@ -37,7 +37,7 @@ type RoleInterface interface { Get(name string) (*rbac.Role, error) List(opts api.ListOptions) (*rbac.RoleList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *rbac.Role, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.Role, err error) RoleExpansion } @@ -137,11 +137,12 @@ func (c *roles) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched role. -func (c *roles) Patch(name string, pt api.PatchType, data []byte) (result *rbac.Role, err error) { +func (c *roles) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.Role, err error) { result = &rbac.Role{} err = c.client.Patch(pt). Namespace(c.ns). Resource("roles"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/rolebinding.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/rolebinding.go index a91beb5922..e62fe2105c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/rolebinding.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/rbac/unversioned/rolebinding.go @@ -37,7 +37,7 @@ type RoleBindingInterface interface { Get(name string) (*rbac.RoleBinding, error) List(opts api.ListOptions) (*rbac.RoleBindingList, error) Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte) (result *rbac.RoleBinding, err error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.RoleBinding, err error) RoleBindingExpansion } @@ -137,11 +137,12 @@ func (c *roleBindings) Watch(opts api.ListOptions) (watch.Interface, error) { } // Patch applies the patch and returns the patched roleBinding. -func (c *roleBindings) Patch(name string, pt api.PatchType, data []byte) (result *rbac.RoleBinding, err error) { +func (c *roleBindings) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *rbac.RoleBinding, err error) { result = &rbac.RoleBinding{} err = c.client.Patch(pt). Namespace(c.ns). Resource("rolebindings"). + SubResource(subresources...). Name(name). Body(data). Do(). diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/metrics/metrics.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/metrics/metrics.go index 53029b53e9..a01306c65d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/metrics/metrics.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/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 registerMetrics sync.Once -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", - Help: "Request latency in microseconds. Broken down by verb and URL", - MaxAge: time.Hour, - }, - []string{"verb", "url"}, - ) +// LatencyMetric observes client latency partitioned by verb and url. +type LatencyMetric interface { + Observe(verb string, u url.URL, latency time.Duration) +} - RequestResult = prometheus.NewCounterVec( - prometheus.CounterOpts{ - Subsystem: restClientSubsystem, - Name: "request_status_codes", - Help: "Number of http requests, partitioned by metadata", - }, - []string{"code", "method", "host"}, - ) -) +// ResultMetric counts response codes partitioned by method and host. +type ResultMetric interface { + Increment(code string, method string, host string) +} -var registerMetrics sync.Once +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 all metrics to Prometheus with -// respect to the RequestLatency. -func Register() { - // Register the metrics. +// 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/ingress/vendor/k8s.io/kubernetes/pkg/client/record/event.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/record/event.go index 903da6352f..55873a73d9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/record/event.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/record/event.go @@ -26,12 +26,13 @@ import ( "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/client/restclient" "k8s.io/kubernetes/pkg/runtime" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" utilruntime "k8s.io/kubernetes/pkg/util/runtime" "k8s.io/kubernetes/pkg/watch" - "github.com/golang/glog" "net/http" + + "github.com/golang/glog" ) const maxTriesPerEvent = 12 @@ -113,7 +114,7 @@ func (eventBroadcaster *eventBroadcasterImpl) StartRecordingToSink(sink EventSin // The default math/rand package functions aren't thread safe, so create a // new Rand object for each StartRecording call. randGen := rand.New(rand.NewSource(time.Now().UnixNano())) - eventCorrelator := NewEventCorrelator(util.RealClock{}) + eventCorrelator := NewEventCorrelator(clock.RealClock{}) return eventBroadcaster.StartEventWatcher( func(event *api.Event) { recordToSink(sink, event, eventCorrelator, randGen, eventBroadcaster.sleepDuration) @@ -242,13 +243,13 @@ func (eventBroadcaster *eventBroadcasterImpl) StartEventWatcher(eventHandler fun // NewRecorder returns an EventRecorder that records events with the given event source. func (eventBroadcaster *eventBroadcasterImpl) NewRecorder(source api.EventSource) EventRecorder { - return &recorderImpl{source, eventBroadcaster.Broadcaster, util.RealClock{}} + return &recorderImpl{source, eventBroadcaster.Broadcaster, clock.RealClock{}} } type recorderImpl struct { source api.EventSource *watch.Broadcaster - clock util.Clock + clock clock.Clock } func (recorder *recorderImpl) generateEvent(object runtime.Object, timestamp unversioned.Time, eventtype, reason, message string) { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/record/events_cache.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/record/events_cache.go index 3b08655a80..8ff65776cb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/record/events_cache.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/record/events_cache.go @@ -27,7 +27,7 @@ import ( "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/unversioned" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" "k8s.io/kubernetes/pkg/util/sets" "k8s.io/kubernetes/pkg/util/strategicpatch" ) @@ -116,12 +116,12 @@ type EventAggregator struct { maxIntervalInSeconds int // clock is used to allow for testing over a time interval - clock util.Clock + clock clock.Clock } // NewEventAggregator returns a new instance of an EventAggregator func NewEventAggregator(lruCacheSize int, keyFunc EventAggregatorKeyFunc, messageFunc EventAggregatorMessageFunc, - maxEvents int, maxIntervalInSeconds int, clock util.Clock) *EventAggregator { + maxEvents int, maxIntervalInSeconds int, clock clock.Clock) *EventAggregator { return &EventAggregator{ cache: lru.New(lruCacheSize), keyFunc: keyFunc, @@ -207,11 +207,11 @@ type eventLog struct { type eventLogger struct { sync.RWMutex cache *lru.Cache - clock util.Clock + clock clock.Clock } // newEventLogger observes events and counts their frequencies -func newEventLogger(lruCacheEntries int, clock util.Clock) *eventLogger { +func newEventLogger(lruCacheEntries int, clock clock.Clock) *eventLogger { return &eventLogger{cache: lru.New(lruCacheEntries), clock: clock} } @@ -326,7 +326,7 @@ type EventCorrelateResult struct { // the same reason. // * Events are incrementally counted if the exact same event is encountered multiple // times. -func NewEventCorrelator(clock util.Clock) *EventCorrelator { +func NewEventCorrelator(clock clock.Clock) *EventCorrelator { cacheSize := maxLruCacheEntries return &EventCorrelator{ filterFunc: DefaultEventFilterFunc, diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/config.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/config.go index fec5f49a42..82c1ac2cf9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/config.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/config.go @@ -108,6 +108,10 @@ type Config struct { // Rate limiter for limiting connections to the master from this client. If present overwrites QPS/Burst RateLimiter flowcontrol.RateLimiter + + // Version forces a specific version to be used (if registered) + // Do we need this? + // Version string } // TLSClientConfig contains settings to enable transport layer security @@ -131,6 +135,9 @@ type TLSClientConfig struct { } type ContentConfig struct { + // AcceptContentTypes specifies the types the client will accept and is optional. + // If not set, ContentType will be used to define the Accept header + AcceptContentTypes string // ContentType specifies the wire format used to communicate with the server. // This value will be set as the Accept header on requests made to the server, and // as the default content type on any object sent to the server. If not set, @@ -240,7 +247,7 @@ func DefaultKubernetesUserAgent() string { // InClusterConfig returns a config object which uses the service account // kubernetes gives to pods. It's intended for clients that expect to be -// running inside a pod running on kuberenetes. It will return an error if +// running inside a pod running on kubernetes. It will return an error if // called from a process not running in a kubernetes environment. func InClusterConfig() (*Config, error) { host, port := os.Getenv("KUBERNETES_SERVICE_HOST"), os.Getenv("KUBERNETES_SERVICE_PORT") diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/request.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/request.go index 51fac6bc92..b57f5558e4 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/request.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/restclient/request.go @@ -18,6 +18,7 @@ package restclient import ( "bytes" + "encoding/hex" "fmt" "io" "io/ioutil" @@ -57,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) @@ -143,7 +140,10 @@ func NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPa backoffMgr: backoff, throttle: throttle, } - if len(content.ContentType) > 0 { + switch { + case len(content.AcceptContentTypes) > 0: + r.SetHeader("Accept", content.AcceptContentTypes) + case len(content.ContentType) > 0: r.SetHeader("Accept", content.ContentType+", */*") } return r @@ -335,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 @@ -538,10 +538,10 @@ func (r *Request) Body(obj interface{}) *Request { r.err = err return r } - glog.V(8).Infof("Request Body: %s", string(data)) + glog.V(8).Infof("Request Body: %#v", string(data)) r.body = bytes.NewReader(data) case []byte: - glog.V(8).Infof("Request Body: %s", string(t)) + glog.V(8).Infof("Request Body: %#v", string(t)) r.body = bytes.NewReader(t) case io.Reader: r.body = t @@ -555,7 +555,7 @@ func (r *Request) Body(obj interface{}) *Request { r.err = err return r } - glog.V(8).Infof("Request Body: %s", string(data)) + glog.V(8).Infof("Request Body: %#v", string(data)) r.body = bytes.NewReader(data) r.SetHeader("Content-Type", r.content.ContentType) default: @@ -605,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}" } @@ -618,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() { @@ -693,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) } } @@ -771,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 { @@ -817,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 { @@ -873,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 @@ -888,16 +899,49 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu body = data } } - glog.V(8).Infof("Response Body: %s", string(body)) + + if glog.V(8) { + switch { + case bytes.IndexFunc(body, func(r rune) bool { return r < 0x0a }) != -1: + glog.Infof("Response Body:\n%s", hex.Dump(body)) + default: + glog.Infof("Response Body: %s", string(body)) + } + } + + // verify the content type is accurate + contentType := resp.Header.Get("Content-Type") + decoder := r.serializers.Decoder + if len(contentType) > 0 && (decoder == nil || (len(r.content.ContentType) > 0 && contentType != r.content.ContentType)) { + mediaType, params, err := mime.ParseMediaType(contentType) + if err != nil { + return Result{err: errors.NewInternalError(err)} + } + decoder, err = r.serializers.RenegotiatedDecoder(mediaType, params) + if err != nil { + // if we fail to negotiate a decoder, treat this as an unstructured error + switch { + case resp.StatusCode == http.StatusSwitchingProtocols: + // no-op, we've been upgraded + case resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent: + return Result{err: r.transformUnstructuredResponseError(resp, req, body)} + } + return Result{ + body: body, + contentType: contentType, + statusCode: resp.StatusCode, + } + } + } // Did the server give us a status response? isStatusResponse := false + status := &unversioned.Status{} // Because release-1.1 server returns Status with empty APIVersion at paths // to the Extensions resources, we need to use DecodeInto here to provide // default groupVersion, otherwise a status response won't be correctly // decoded. - status := &unversioned.Status{} - err := runtime.DecodeInto(r.serializers.Decoder, body, status) + err := runtime.DecodeInto(decoder, body, status) if err == nil && len(status.Status) > 0 { isStatusResponse = true } @@ -919,25 +963,6 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu return Result{err: errors.FromObject(status)} } - contentType := resp.Header.Get("Content-Type") - var decoder runtime.Decoder - if contentType == r.content.ContentType { - decoder = r.serializers.Decoder - } else { - mediaType, params, err := mime.ParseMediaType(contentType) - if err != nil { - return Result{err: errors.NewInternalError(err)} - } - decoder, err = r.serializers.RenegotiatedDecoder(mediaType, params) - if err != nil { - return Result{ - body: body, - contentType: contentType, - statusCode: resp.StatusCode, - } - } - } - return Result{ body: body, contentType: contentType, @@ -970,7 +995,7 @@ func (r *Request) transformUnstructuredResponseError(resp *http.Response, req *h body = data } } - glog.V(8).Infof("Response Body: %s", string(body)) + glog.V(8).Infof("Response Body: %#v", string(body)) message := "unknown" if isTextResponse(resp) { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/discovery_client.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/discovery_client.go index 1bd18b9548..bded981f03 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/discovery_client.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/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/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/restmapper.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/restmapper.go new file mode 100644 index 0000000000..7f6a0d1f40 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/restmapper.go @@ -0,0 +1,263 @@ +/* +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 ( + "sync" + + "k8s.io/kubernetes/pkg/api/errors" + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/api/unversioned" +) + +// APIGroupResources is an API group with a mapping of versions to +// resources. +type APIGroupResources struct { + Group unversioned.APIGroup + // A mapping of version string to a slice of APIResources for + // that version. + VersionedResources map[string][]unversioned.APIResource +} + +// NewRESTMapper returns a PriorityRESTMapper based on the discovered +// groups and resourced passed in. +func NewRESTMapper(groupResources []*APIGroupResources, versionInterfaces meta.VersionInterfacesFunc) meta.RESTMapper { + unionMapper := meta.MultiRESTMapper{} + + var groupPriority []string + var resourcePriority []unversioned.GroupVersionResource + var kindPriority []unversioned.GroupVersionKind + + for _, group := range groupResources { + groupPriority = append(groupPriority, group.Group.Name) + + if len(group.Group.PreferredVersion.Version) != 0 { + preffered := group.Group.PreferredVersion.Version + if _, ok := group.VersionedResources[preffered]; ok { + resourcePriority = append(resourcePriority, unversioned.GroupVersionResource{ + Group: group.Group.Name, + Version: group.Group.PreferredVersion.Version, + Resource: meta.AnyResource, + }) + + kindPriority = append(kindPriority, unversioned.GroupVersionKind{ + Group: group.Group.Name, + Version: group.Group.PreferredVersion.Version, + Kind: meta.AnyKind, + }) + } + } + + 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} + versionMapper := meta.NewDefaultRESTMapper([]unversioned.GroupVersion{gv}, versionInterfaces) + + for _, resource := range resources { + scope := meta.RESTScopeNamespace + if !resource.Namespaced { + scope = meta.RESTScopeRoot + } + versionMapper.Add(gv.WithKind(resource.Kind), scope) + // 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) + } + } + + for _, group := range groupPriority { + resourcePriority = append(resourcePriority, unversioned.GroupVersionResource{ + Group: group, + Version: meta.AnyVersion, + Resource: meta.AnyResource, + }) + kindPriority = append(kindPriority, unversioned.GroupVersionKind{ + Group: group, + Version: meta.AnyVersion, + Kind: meta.AnyKind, + }) + } + + return meta.PriorityRESTMapper{ + Delegate: unionMapper, + ResourcePriority: resourcePriority, + KindPriority: kindPriority, + } +} + +// GetAPIGroupResources uses the provided discovery client to gather +// discovery information and populate a slice of APIGroupResources. +func GetAPIGroupResources(cl DiscoveryInterface) ([]*APIGroupResources, error) { + apiGroups, err := cl.ServerGroups() + if err != nil { + return nil, err + } + var result []*APIGroupResources + for _, group := range apiGroups.Groups { + groupResources := &APIGroupResources{ + Group: group, + VersionedResources: make(map[string][]unversioned.APIResource), + } + for _, version := range group.Versions { + resources, err := cl.ServerResourcesForGroupVersion(version.GroupVersion) + if err != nil { + if errors.IsNotFound(err) { + continue // ignore as this can race with deletion of 3rd party APIs + } + return nil, err + } + groupResources.VersionedResources[version.Version] = resources.APIResources + } + result = append(result, groupResources) + } + return result, nil +} + +// DeferredDiscoveryRESTMapper is a RESTMapper that will defer +// initialization of the RESTMapper until the first mapping is +// requested. +type DeferredDiscoveryRESTMapper struct { + initMu sync.Mutex + delegate meta.RESTMapper + cl DiscoveryInterface + versionInterface meta.VersionInterfacesFunc +} + +// NewDeferredDiscoveryRESTMapper returns a +// DeferredDiscoveryRESTMapper that will lazily query the provided +// client for discovery information to do REST mappings. +func NewDeferredDiscoveryRESTMapper(cl DiscoveryInterface, versionInterface meta.VersionInterfacesFunc) *DeferredDiscoveryRESTMapper { + return &DeferredDiscoveryRESTMapper{ + cl: cl, + versionInterface: versionInterface, + } +} + +func (d *DeferredDiscoveryRESTMapper) getDelegate() (meta.RESTMapper, error) { + d.initMu.Lock() + defer d.initMu.Unlock() + + if d.delegate != nil { + return d.delegate, nil + } + + groupResources, err := GetAPIGroupResources(d.cl) + if err != nil { + return nil, err + } + + d.delegate = NewRESTMapper(groupResources, d.versionInterface) + return d.delegate, err +} + +// Reset resets the internally cached Discovery information and will +// cause the next mapping request to re-discover. +func (d *DeferredDiscoveryRESTMapper) Reset() { + d.initMu.Lock() + d.delegate = nil + d.initMu.Unlock() +} + +// KindFor takes a partial resource and returns back the single match. +// It returns an error if there are multiple matches. +func (d *DeferredDiscoveryRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) { + del, err := d.getDelegate() + if err != nil { + return unversioned.GroupVersionKind{}, err + } + return del.KindFor(resource) +} + +// KindsFor takes a partial resource and returns back the list of +// potential kinds in priority order. +func (d *DeferredDiscoveryRESTMapper) KindsFor(resource unversioned.GroupVersionResource) ([]unversioned.GroupVersionKind, error) { + del, err := d.getDelegate() + if err != nil { + return nil, err + } + return del.KindsFor(resource) +} + +// ResourceFor takes a partial resource and returns back the single +// match. It returns an error if there are multiple matches. +func (d *DeferredDiscoveryRESTMapper) ResourceFor(input unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) { + del, err := d.getDelegate() + if err != nil { + return unversioned.GroupVersionResource{}, err + } + return del.ResourceFor(input) +} + +// ResourcesFor takes a partial resource and returns back the list of +// potential resource in priority order. +func (d *DeferredDiscoveryRESTMapper) ResourcesFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) { + del, err := d.getDelegate() + if err != nil { + return nil, err + } + return del.ResourcesFor(input) +} + +// RESTMapping identifies a preferred resource mapping for the +// provided group kind. +func (d *DeferredDiscoveryRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*meta.RESTMapping, error) { + del, err := d.getDelegate() + if err != nil { + return nil, err + } + return del.RESTMapping(gk, versions...) +} + +// RESTMappings returns the RESTMappings for the provided group kind +// in a rough internal preferred order. If no kind is found, it will +// return a NoResourceMatchError. +func (d *DeferredDiscoveryRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*meta.RESTMapping, error) { + del, err := d.getDelegate() + if err != nil { + return nil, err + } + return del.RESTMappings(gk) +} + +// AliasesForResource returns whether a resource has an alias or not. +func (d *DeferredDiscoveryRESTMapper) AliasesForResource(resource string) ([]string, bool) { + del, err := d.getDelegate() + if err != nil { + return nil, false + } + return del.AliasesForResource(resource) +} + +// ResourceSingularizer converts a resource name from plural to +// singular (e.g., from pods to pod). +func (d *DeferredDiscoveryRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { + del, err := d.getDelegate() + if err != nil { + return resource, err + } + return del.ResourceSingularizer(resource) +} + +// Make sure it satisfies the interface +var _ meta.RESTMapper = &DeferredDiscoveryRESTMapper{} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/unstructured.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/discovery/unstructured.go new file mode 100644 index 0000000000..afa74e7dee --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/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/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/client.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/client.go new file mode 100644 index 0000000000..1565261c5e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/client.go @@ -0,0 +1,289 @@ +/* +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 dynamic provides a client interface to arbitrary Kubernetes +// APIs that exposes common high level operations and exposes common +// metadata. +package dynamic + +import ( + "encoding/json" + "errors" + "io" + "net/url" + "strings" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/api/v1" + "k8s.io/kubernetes/pkg/client/restclient" + "k8s.io/kubernetes/pkg/conversion/queryparams" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/runtime/serializer" + "k8s.io/kubernetes/pkg/util/flowcontrol" + "k8s.io/kubernetes/pkg/watch" +) + +// Client is a Kubernetes client that allows you to access metadata +// and manipulate metadata of a Kubernetes API group. +type Client struct { + cl *restclient.RESTClient + parameterCodec runtime.ParameterCodec +} + +// NewClient returns a new client based on the passed in config. The +// codec is ignored, as the dynamic client uses it's own codec. +func NewClient(conf *restclient.Config) (*Client, error) { + // avoid changing the original config + confCopy := *conf + conf = &confCopy + + contentConfig := ContentConfig() + contentConfig.GroupVersion = conf.GroupVersion + if conf.NegotiatedSerializer != nil { + contentConfig.NegotiatedSerializer = conf.NegotiatedSerializer + } + conf.ContentConfig = contentConfig + + if conf.APIPath == "" { + conf.APIPath = "/api" + } + + if len(conf.UserAgent) == 0 { + conf.UserAgent = restclient.DefaultKubernetesUserAgent() + } + + cl, err := restclient.RESTClientFor(conf) + if err != nil { + return nil, err + } + + return &Client{cl: cl}, nil +} + +// GetRateLimiter returns rate limier. +func (c *Client) GetRateLimiter() flowcontrol.RateLimiter { + return c.cl.GetRateLimiter() +} + +// 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 *Client) Resource(resource *unversioned.APIResource, namespace string) *ResourceClient { + return &ResourceClient{ + 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 { + cl *restclient.RESTClient + resource *unversioned.APIResource + ns string + parameterCodec runtime.ParameterCodec +} + +// List returns a list of objects for this resource. +func (rc *ResourceClient) List(opts runtime.Object) (runtime.Object, error) { + parameterEncoder := rc.parameterCodec + if parameterEncoder == nil { + parameterEncoder = defaultParameterEncoder + } + return rc.cl.Get(). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + VersionedParams(opts, parameterEncoder). + Do(). + Get() +} + +// Get gets the resource with the specified name. +func (rc *ResourceClient) Get(name string) (*runtime.Unstructured, error) { + result := new(runtime.Unstructured) + err := rc.cl.Get(). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + Name(name). + Do(). + Into(result) + return result, err +} + +// Delete deletes the resource with the specified name. +func (rc *ResourceClient) Delete(name string, opts *v1.DeleteOptions) error { + return rc.cl.Delete(). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + Name(name). + Body(opts). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (rc *ResourceClient) DeleteCollection(deleteOptions *v1.DeleteOptions, listOptions runtime.Object) error { + parameterEncoder := rc.parameterCodec + if parameterEncoder == nil { + parameterEncoder = defaultParameterEncoder + } + return rc.cl.Delete(). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + VersionedParams(listOptions, parameterEncoder). + Body(deleteOptions). + Do(). + Error() +} + +// Create creates the provided resource. +func (rc *ResourceClient) Create(obj *runtime.Unstructured) (*runtime.Unstructured, error) { + result := new(runtime.Unstructured) + err := rc.cl.Post(). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + Body(obj). + Do(). + Into(result) + return result, err +} + +// Update updates the provided resource. +func (rc *ResourceClient) Update(obj *runtime.Unstructured) (*runtime.Unstructured, error) { + result := new(runtime.Unstructured) + if len(obj.GetName()) == 0 { + return result, errors.New("object missing name") + } + err := rc.cl.Put(). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + Name(obj.GetName()). + Body(obj). + Do(). + Into(result) + return result, err +} + +// Watch returns a watch.Interface that watches the resource. +func (rc *ResourceClient) Watch(opts runtime.Object) (watch.Interface, error) { + parameterEncoder := rc.parameterCodec + if parameterEncoder == nil { + parameterEncoder = defaultParameterEncoder + } + return rc.cl.Get(). + Prefix("watch"). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + VersionedParams(opts, parameterEncoder). + Watch() +} + +func (rc *ResourceClient) Patch(name string, pt api.PatchType, data []byte) (*runtime.Unstructured, error) { + result := new(runtime.Unstructured) + err := rc.cl.Patch(pt). + NamespaceIfScoped(rc.ns, rc.resource.Namespaced). + Resource(rc.resource.Name). + Name(name). + Body(data). + Do(). + Into(result) + return result, err +} + +// dynamicCodec is a codec that wraps the standard unstructured codec +// with special handling for Status objects. +type dynamicCodec struct{} + +func (dynamicCodec) Decode(data []byte, gvk *unversioned.GroupVersionKind, obj runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + obj, gvk, err := runtime.UnstructuredJSONScheme.Decode(data, gvk, obj) + if err != nil { + return nil, nil, err + } + + if _, ok := obj.(*unversioned.Status); !ok && strings.ToLower(gvk.Kind) == "status" { + obj = &unversioned.Status{} + err := json.Unmarshal(data, obj) + if err != nil { + return nil, nil, err + } + } + + return obj, gvk, nil +} + +func (dynamicCodec) Encode(obj runtime.Object, w io.Writer) error { + return runtime.UnstructuredJSONScheme.Encode(obj, w) +} + +// ContentConfig returns a restclient.ContentConfig for dynamic types. +func ContentConfig() restclient.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 restclient.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{} + +func (parameterCodec) EncodeParameters(obj runtime.Object, to unversioned.GroupVersion) (url.Values, error) { + return queryparams.Convert(obj) +} + +func (parameterCodec) DecodeParameters(parameters url.Values, from unversioned.GroupVersion, into runtime.Object) error { + return errors.New("DecodeParameters not implemented on dynamic parameterCodec") +} + +var defaultParameterEncoder runtime.ParameterCodec = parameterCodec{} + +type versionedParameterEncoderWithV1Fallback struct{} + +func (versionedParameterEncoderWithV1Fallback) EncodeParameters(obj runtime.Object, to unversioned.GroupVersion) (url.Values, error) { + ret, err := api.ParameterCodec.EncodeParameters(obj, to) + if err != nil && runtime.IsNotRegisteredError(err) { + // fallback to v1 + return api.ParameterCodec.EncodeParameters(obj, v1.SchemeGroupVersion) + } + return ret, err +} + +func (versionedParameterEncoderWithV1Fallback) DecodeParameters(parameters url.Values, from unversioned.GroupVersion, into runtime.Object) error { + return errors.New("DecodeParameters not implemented on versionedParameterEncoderWithV1Fallback") +} + +// VersionedParameterEncoderWithV1Fallback is useful for encoding query +// parameters for thirdparty resources. It tries to convert object to the +// specified version before converting it to query parameters, and falls back to +// converting to v1 if the object is not registered in the specified version. +// For the record, currently API server always treats query parameters sent to a +// thirdparty resource endpoint as v1. +var VersionedParameterEncoderWithV1Fallback runtime.ParameterCodec = versionedParameterEncoderWithV1Fallback{} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/client_pool.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/client_pool.go new file mode 100644 index 0000000000..66a50e0bbd --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/client_pool.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 dynamic + +import ( + "sync" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/client/restclient" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/runtime/serializer" +) + +// ClientPool manages a pool of dynamic clients. +type ClientPool interface { + // ClientForGroupVersion returns a client configured for the specified groupVersion. + ClientForGroupVersion(groupVersion unversioned.GroupVersion) (*Client, error) +} + +// APIPathResolverFunc knows how to convert a groupVersion to its API path. +type APIPathResolverFunc func(groupVersion unversioned.GroupVersion) string + +// LegacyAPIPathResolverFunc can resolve paths properly with the legacy API. +func LegacyAPIPathResolverFunc(groupVersion unversioned.GroupVersion) string { + if len(groupVersion.Group) == 0 { + return "/api" + } + return "/apis" +} + +// clientPoolImpl implements Factory +type clientPoolImpl struct { + lock sync.RWMutex + config *restclient.Config + clients map[unversioned.GroupVersion]*Client + apiPathResolverFunc APIPathResolverFunc +} + +// NewClientPool returns a ClientPool from the specified config +func NewClientPool(config *restclient.Config, apiPathResolverFunc APIPathResolverFunc) ClientPool { + confCopy := *config + return &clientPoolImpl{ + config: &confCopy, + clients: map[unversioned.GroupVersion]*Client{}, + apiPathResolverFunc: apiPathResolverFunc, + } +} + +// ClientForGroupVersion returns a client for the specified groupVersion, creates one if none exists +func (c *clientPoolImpl) ClientForGroupVersion(groupVersion unversioned.GroupVersion) (*Client, error) { + c.lock.Lock() + defer c.lock.Unlock() + + // do we have a client already configured? + if existingClient, found := c.clients[groupVersion]; found { + return existingClient, nil + } + + // avoid changing the original config + confCopy := *c.config + conf := &confCopy + + // we need to set the api path based on group version, if no group, default to legacy path + conf.APIPath = c.apiPathResolverFunc(groupVersion) + + // we need to make a client + conf.GroupVersion = &groupVersion + + if conf.NegotiatedSerializer == nil { + streamingInfo, _ := api.Codecs.StreamingSerializerForMediaType("application/json;stream=watch", nil) + conf.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: dynamicCodec{}}, streamingInfo) + } + + dynamicClient, err := NewClient(conf) + if err != nil { + return nil, err + } + c.clients[groupVersion] = dynamicClient + return dynamicClient, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/dynamic_util.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/dynamic_util.go new file mode 100644 index 0000000000..4ffe313e61 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/typed/dynamic/dynamic_util.go @@ -0,0 +1,94 @@ +/* +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 dynamic + +import ( + "fmt" + + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/runtime" +) + +// VersionInterfaces provides an object converter and metadata +// accessor appropriate for use with unstructured objects. +func VersionInterfaces(unversioned.GroupVersion) (*meta.VersionInterfaces, error) { + return &meta.VersionInterfaces{ + ObjectConvertor: &runtime.UnstructuredObjectConverter{}, + MetadataAccessor: meta.NewAccessor(), + }, nil +} + +// NewDiscoveryRESTMapper returns a RESTMapper based on discovery information. +func NewDiscoveryRESTMapper(resources []*unversioned.APIResourceList, versionFunc meta.VersionInterfacesFunc) (*meta.DefaultRESTMapper, error) { + rm := meta.NewDefaultRESTMapper(nil, versionFunc) + for _, resourceList := range resources { + gv, err := unversioned.ParseGroupVersion(resourceList.GroupVersion) + if err != nil { + return nil, err + } + + for _, resource := range resourceList.APIResources { + gvk := gv.WithKind(resource.Kind) + scope := meta.RESTScopeRoot + if resource.Namespaced { + scope = meta.RESTScopeNamespace + } + rm.Add(gvk, scope) + } + } + return rm, nil +} + +// ObjectTyper provides an ObjectTyper implementation for +// runtime.Unstructured object based on discovery information. +type ObjectTyper struct { + registered map[unversioned.GroupVersionKind]bool +} + +// NewObjectTyper constructs an ObjectTyper from discovery information. +func NewObjectTyper(resources []*unversioned.APIResourceList) (runtime.ObjectTyper, error) { + ot := &ObjectTyper{registered: make(map[unversioned.GroupVersionKind]bool)} + for _, resourceList := range resources { + gv, err := unversioned.ParseGroupVersion(resourceList.GroupVersion) + if err != nil { + return nil, err + } + + for _, resource := range resourceList.APIResources { + ot.registered[gv.WithKind(resource.Kind)] = true + } + } + return ot, 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. +func (ot *ObjectTyper) ObjectKinds(obj runtime.Object) ([]unversioned.GroupVersionKind, bool, error) { + if _, ok := obj.(*runtime.Unstructured); !ok { + return nil, false, fmt.Errorf("type %T is invalid for dynamic object typer", obj) + } + return []unversioned.GroupVersionKind{obj.GetObjectKind().GroupVersionKind()}, false, nil +} + +// Recognizes returns true if the provided group,version,kind was in +// the discovery information. +func (ot *ObjectTyper) Recognizes(gvk unversioned.GroupVersionKind) bool { + return ot.registered[gvk] +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/adapters/internalclientset/clientset_adaption.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/adapters/internalclientset/clientset_adaption.go index 7e8f40a9b5..5b01b4c053 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/adapters/internalclientset/clientset_adaption.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/adapters/internalclientset/clientset_adaption.go @@ -18,6 +18,8 @@ package internalclientset import ( "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset" + unversionedauthentication "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authentication/unversioned" + unversionedauthorization "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/authorization/unversioned" unversionedautoscaling "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/autoscaling/unversioned" unversionedbatch "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/unversioned" unversionedcore "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/unversioned" @@ -46,11 +48,21 @@ func FromUnversionedClient(c *unversioned.Client) *internalclientset.Clientset { } else { clientset.BatchClient = unversionedbatch.New(nil) } + if c != nil && c.AuthorizationClient != nil { + clientset.AuthorizationClient = unversionedauthorization.New(c.AuthorizationClient.RESTClient) + } else { + clientset.AuthorizationClient = unversionedauthorization.New(nil) + } if c != nil && c.AutoscalingClient != nil { clientset.AutoscalingClient = unversionedautoscaling.New(c.AutoscalingClient.RESTClient) } else { clientset.AutoscalingClient = unversionedautoscaling.New(nil) } + if c != nil && c.AuthenticationClient != nil { + clientset.AuthenticationClient = unversionedauthentication.New(c.AuthenticationClient.RESTClient) + } else { + clientset.AuthenticationClient = unversionedauthentication.New(nil) + } if c != nil && c.DiscoveryClient != nil { clientset.DiscoveryClient = discovery.NewDiscoveryClient(c.DiscoveryClient.RESTClient) } else { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/apps.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/apps.go index f2498cbb56..413c2a4491 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/apps.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/apps.go @@ -17,8 +17,6 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -38,7 +36,7 @@ func (c *AppsClient) PetSets(namespace string) PetSetInterface { func NewApps(c *restclient.Config) (*AppsClient, error) { config := *c - if err := setAppsDefaults(&config); err != nil { + if err := setGroupDefaults(apps.GroupName, &config); err != nil { return nil, err } client, err := restclient.RESTClientFor(&config) @@ -55,22 +53,3 @@ func NewAppsOrDie(c *restclient.Config) *AppsClient { } return client } - -func setAppsDefaults(config *restclient.Config) error { - g, err := registered.Group(apps.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/authentication.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/authentication.go new file mode 100644 index 0000000000..6ac7f949fe --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/authentication.go @@ -0,0 +1,77 @@ +/* +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 unversioned + +import ( + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/apimachinery/registered" + "k8s.io/kubernetes/pkg/apis/authentication" + "k8s.io/kubernetes/pkg/client/restclient" +) + +type AuthenticationInterface interface { + TokenReviewsInterface +} + +// AuthenticationClient is used to interact with Kubernetes authentication features. +type AuthenticationClient struct { + *restclient.RESTClient +} + +func (c *AuthenticationClient) TokenReviews() TokenReviewInterface { + return newTokenReviews(c) +} + +func NewAuthentication(c *restclient.Config) (*AuthenticationClient, error) { + config := *c + if err := setAuthenticationDefaults(&config); err != nil { + return nil, err + } + client, err := restclient.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AuthenticationClient{client}, nil +} + +func NewAuthenticationOrDie(c *restclient.Config) *AuthenticationClient { + client, err := NewAuthentication(c) + if err != nil { + panic(err) + } + return client +} + +func setAuthenticationDefaults(config *restclient.Config) error { + // if authentication group is not registered, return an error + g, err := registered.Group(authentication.GroupName) + if err != nil { + return err + } + config.APIPath = defaultAPIPath + if config.UserAgent == "" { + config.UserAgent = restclient.DefaultKubernetesUserAgent() + } + // TODO: Unconditionally set the config.Version, until we fix the config. + //if config.Version == "" { + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + //} + + config.NegotiatedSerializer = api.Codecs + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/authorization.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/authorization.go new file mode 100644 index 0000000000..beba40dca7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/authorization.go @@ -0,0 +1,77 @@ +/* +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 unversioned + +import ( + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/apimachinery/registered" + "k8s.io/kubernetes/pkg/apis/authorization" + "k8s.io/kubernetes/pkg/client/restclient" +) + +type AuthorizationInterface interface { + SubjectAccessReviewsInterface +} + +// AuthorizationClient is used to interact with Kubernetes authorization features. +type AuthorizationClient struct { + *restclient.RESTClient +} + +func (c *AuthorizationClient) SubjectAccessReviews() SubjectAccessReviewInterface { + return newSubjectAccessReviews(c) +} + +func NewAuthorization(c *restclient.Config) (*AuthorizationClient, error) { + config := *c + if err := setAuthorizationDefaults(&config); err != nil { + return nil, err + } + client, err := restclient.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AuthorizationClient{client}, nil +} + +func NewAuthorizationOrDie(c *restclient.Config) *AuthorizationClient { + client, err := NewAuthorization(c) + if err != nil { + panic(err) + } + return client +} + +func setAuthorizationDefaults(config *restclient.Config) error { + // if authorization group is not registered, return an error + g, err := registered.Group(authorization.GroupName) + if err != nil { + return err + } + config.APIPath = defaultAPIPath + if config.UserAgent == "" { + config.UserAgent = restclient.DefaultKubernetesUserAgent() + } + // TODO: Unconditionally set the config.Version, until we fix the config. + //if config.Version == "" { + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + //} + + config.NegotiatedSerializer = api.Codecs + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/autoscaling.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/autoscaling.go index 188a5ea78d..e53d23d8b2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/autoscaling.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/autoscaling.go @@ -17,8 +17,6 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/autoscaling" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -38,7 +36,7 @@ func (c *AutoscalingClient) HorizontalPodAutoscalers(namespace string) Horizonta func NewAutoscaling(c *restclient.Config) (*AutoscalingClient, error) { config := *c - if err := setAutoscalingDefaults(&config); err != nil { + if err := setGroupDefaults(autoscaling.GroupName, &config); err != nil { return nil, err } client, err := restclient.RESTClientFor(&config) @@ -55,23 +53,3 @@ func NewAutoscalingOrDie(c *restclient.Config) *AutoscalingClient { } return client } - -func setAutoscalingDefaults(config *restclient.Config) error { - // if autoscaling group is not registered, return an error - g, err := registered.Group(autoscaling.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/batch.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/batch.go index c31652f41d..0957424a64 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/batch.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/batch.go @@ -17,11 +17,7 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/api/unversioned" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/batch" - "k8s.io/kubernetes/pkg/apis/batch/v2alpha1" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -45,19 +41,7 @@ func (c *BatchClient) ScheduledJobs(namespace string) ScheduledJobInterface { func NewBatch(c *restclient.Config) (*BatchClient, error) { config := *c - if err := setBatchDefaults(&config, nil); err != nil { - return nil, err - } - client, err := restclient.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &BatchClient{client}, nil -} - -func NewBatchV2Alpha1(c *restclient.Config) (*BatchClient, error) { - config := *c - if err := setBatchDefaults(&config, &v2alpha1.SchemeGroupVersion); err != nil { + if err := setGroupDefaults(batch.GroupName, &config); err != nil { return nil, err } client, err := restclient.RESTClientFor(&config) @@ -68,40 +52,9 @@ func NewBatchV2Alpha1(c *restclient.Config) (*BatchClient, error) { } func NewBatchOrDie(c *restclient.Config) *BatchClient { - var ( - client *BatchClient - err error - ) - if c.ContentConfig.GroupVersion != nil && *c.ContentConfig.GroupVersion == v2alpha1.SchemeGroupVersion { - client, err = NewBatchV2Alpha1(c) - } else { - client, err = NewBatch(c) - } + client, err := NewBatch(c) if err != nil { panic(err) } return client } - -func setBatchDefaults(config *restclient.Config, gv *unversioned.GroupVersion) error { - // if batch group is not registered, return an error - g, err := registered.Group(batch.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - if gv != nil { - copyGroupVersion = *gv - } - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/certificates.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/certificates.go index 29b15c45ef..273b957f5e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/certificates.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/certificates.go @@ -17,8 +17,6 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/certificates" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -60,22 +58,7 @@ func NewCertificatesOrDie(c *restclient.Config) *CertificatesClient { } func setCertificatesDefaults(config *restclient.Config) error { - // if certificates group is not registered, return an error - g, err := registered.Group(certificates.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs + setGroupDefaults(certificates.GroupName, config) if config.QPS == 0 { config.QPS = 5 } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/client.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/client.go index 5474e966f0..d70c644a52 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/client.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/client.go @@ -44,7 +44,10 @@ type Interface interface { PersistentVolumeClaimsNamespacer ComponentStatusesInterface ConfigMapsNamespacer + Apps() AppsInterface + Authorization() AuthorizationInterface Autoscaling() AutoscalingInterface + Authentication() AuthenticationInterface Batch() BatchInterface Extensions() ExtensionsInterface Rbac() RbacInterface @@ -118,7 +121,9 @@ func (c *Client) ConfigMaps(namespace string) ConfigMapsInterface { // Client is the implementation of a Kubernetes client. type Client struct { *restclient.RESTClient + *AuthorizationClient *AutoscalingClient + *AuthenticationClient *BatchClient *ExtensionsClient *AppsClient @@ -150,10 +155,18 @@ func IsTimeout(err error) bool { return false } +func (c *Client) Authorization() AuthorizationInterface { + return c.AuthorizationClient +} + func (c *Client) Autoscaling() AutoscalingInterface { return c.AutoscalingClient } +func (c *Client) Authentication() AuthenticationInterface { + return c.AuthenticationClient +} + func (c *Client) Batch() BatchInterface { return c.BatchClient } @@ -170,6 +183,10 @@ func (c *Client) Rbac() RbacInterface { return c.RbacClient } +func (c *Client) Policy() PolicyInterface { + return c.PolicyClient +} + func (c *Client) Discovery() discovery.DiscoveryInterface { return c.DiscoveryClient } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/latest/latest.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/latest/latest.go index 0b9a4270c0..a32b251c77 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/latest/latest.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/latest/latest.go @@ -19,7 +19,7 @@ package latest import ( "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api" - _ "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1" + "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/runtime/serializer/json" "k8s.io/kubernetes/pkg/runtime/serializer/versioning" @@ -40,15 +40,27 @@ const OldestVersion = "v1" // with a set of versions to choose. var Versions = []string{"v1"} -var Codec runtime.Codec +var ( + Codec runtime.Codec + Scheme *runtime.Scheme +) func init() { - yamlSerializer := json.NewYAMLSerializer(json.DefaultMetaFactory, api.Scheme, api.Scheme) + Scheme = runtime.NewScheme() + if err := api.AddToScheme(Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } + if err := v1.AddToScheme(Scheme); err != nil { + // Programmer error, detect immediately + panic(err) + } + yamlSerializer := json.NewYAMLSerializer(json.DefaultMetaFactory, Scheme, Scheme) Codec = versioning.NewCodecForScheme( - api.Scheme, + Scheme, yamlSerializer, yamlSerializer, - []unversioned.GroupVersion{{Version: Version}}, - []unversioned.GroupVersion{{Version: runtime.APIVersionInternal}}, + unversioned.GroupVersion{Version: Version}, + runtime.InternalGroupVersioner, ) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/register.go index 5426e7fef4..9c4c0f1db4 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/register.go @@ -21,17 +21,20 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -// Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered. -var Scheme = runtime.NewScheme() - // SchemeGroupVersion is group version used to register these objects // TODO this should be in the "kubeconfig" group var SchemeGroupVersion = unversioned.GroupVersion{Group: "", Version: runtime.APIVersionInternal} -func init() { - Scheme.AddKnownTypes(SchemeGroupVersion, +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, &Config{}, ) + return nil } func (obj *Config) GetObjectKind() unversioned.ObjectKind { return obj } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/types.go index 95b5289f46..9fd52e44c8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/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/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/conversion.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/conversion.go index e22e5f81ec..f21072e35d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/conversion.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/conversion.go @@ -24,8 +24,8 @@ import ( "k8s.io/kubernetes/pkg/runtime" ) -func init() { - err := api.Scheme.AddConversionFuncs( +func addConversionFuncs(scheme *runtime.Scheme) error { + return scheme.AddConversionFuncs( func(in *Cluster, out *api.Cluster, s conversion.Scope) error { return s.DefaultConvert(in, out, conversion.IgnoreMissingFields) }, @@ -224,8 +224,4 @@ func init() { return nil }, ) - if err != nil { - // If one of the conversion functions is malformed, detect it immediately. - panic(err) - } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/register.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/register.go index dcdb533c0d..015901d2a1 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/register.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/register.go @@ -18,17 +18,23 @@ package v1 import ( "k8s.io/kubernetes/pkg/api/unversioned" - "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api" + "k8s.io/kubernetes/pkg/runtime" ) // SchemeGroupVersion is group version used to register these objects // TODO this should be in the "kubeconfig" group var SchemeGroupVersion = unversioned.GroupVersion{Group: "", Version: "v1"} -func init() { - api.Scheme.AddKnownTypes(SchemeGroupVersion, +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, &Config{}, ) + return nil } func (obj *Config) GetObjectKind() unversioned.ObjectKind { return obj } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/types.go index 77bce80a3b..bcb82aa982 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1/types.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/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/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/client_config.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/client_config.go index 47b14e215a..3be1d77c66 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/client_config.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/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/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/loader.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/loader.go index 1009406227..c93f51aa3f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/loader.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/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/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/overrides.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/overrides.go index 40a35e65d6..afb8e71699 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/clientcmd/overrides.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/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/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/conditions.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/conditions.go index 5c284292bf..cd913de61a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/conditions.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/conditions.go @@ -22,6 +22,7 @@ import ( "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/apis/batch" "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/util/wait" @@ -72,6 +73,17 @@ func ReplicaSetHasDesiredReplicas(c ExtensionsInterface, replicaSet *extensions. } } +func PetSetHasDesiredPets(c AppsInterface, petset *apps.PetSet) wait.ConditionFunc { + // TODO: Differentiate between 0 pets and a really quick scale down using generation. + return func() (bool, error) { + ps, err := c.PetSets(petset.Namespace).Get(petset.Name) + if err != nil { + return false, err + } + return ps.Status.Replicas == ps.Spec.Replicas, nil + } +} + // JobHasDesiredParallelism returns a condition that will be true if the desired parallelism count // for a job equals the current active counts or is less by an appropriate successful/unsuccessful count. func JobHasDesiredParallelism(c BatchInterface, job *batch.Job) wait.ConditionFunc { @@ -121,6 +133,10 @@ func DeploymentHasDesiredReplicas(c ExtensionsInterface, deployment *extensions. // the pod has already reached completed state. var ErrPodCompleted = fmt.Errorf("pod ran to completion") +// ErrContainerTerminated is returned by PodContainerRunning in the intermediate +// state where the pod indicates it's still running, but its container is already terminated +var ErrContainerTerminated = fmt.Errorf("container terminated") + // PodRunning returns true if the pod is running, false if the pod has not yet reached running state, // returns ErrPodCompleted if the pod has run to completion, or an error in any other case. func PodRunning(event watch.Event) (bool, error) { @@ -217,6 +233,9 @@ func PodContainerRunning(containerName string) watch.ConditionFunc { if s.Name != containerName { continue } + if s.State.Terminated != nil { + return false, ErrContainerTerminated + } return s.State.Running != nil, nil } return false, nil diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/extensions.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/extensions.go index 39b3408776..231ef29301 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/extensions.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/extensions.go @@ -17,8 +17,6 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -37,6 +35,7 @@ type ExtensionsInterface interface { ThirdPartyResourceNamespacer ReplicaSetsNamespacer PodSecurityPoliciesInterface + StorageClassesInterface } // ExtensionsClient is used to interact with experimental Kubernetes features. @@ -82,13 +81,17 @@ func (c *ExtensionsClient) ReplicaSets(namespace string) ReplicaSetInterface { return newReplicaSets(c, namespace) } +func (c *ExtensionsClient) StorageClasses() StorageClassInterface { + return newStorageClasses(c) +} + // NewExtensions creates a new ExtensionsClient for the given config. This client // provides access to experimental Kubernetes features. // Features of Extensions group are not supported and may be changed or removed in // incompatible ways at any time. func NewExtensions(c *restclient.Config) (*ExtensionsClient, error) { config := *c - if err := setExtensionsDefaults(&config); err != nil { + if err := setGroupDefaults(extensions.GroupName, &config); err != nil { return nil, err } client, err := restclient.RESTClientFor(&config) @@ -109,23 +112,3 @@ func NewExtensionsOrDie(c *restclient.Config) *ExtensionsClient { } return client } - -func setExtensionsDefaults(config *restclient.Config) error { - // if experimental group is not registered, return an error - g, err := registered.Group(extensions.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/helper.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/helper.go index 84757692df..2d5caf3220 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/helper.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/helper.go @@ -23,6 +23,8 @@ import ( "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/apps" + "k8s.io/kubernetes/pkg/apis/authentication" + "k8s.io/kubernetes/pkg/apis/authorization" "k8s.io/kubernetes/pkg/apis/autoscaling" "k8s.io/kubernetes/pkg/apis/batch" "k8s.io/kubernetes/pkg/apis/certificates" @@ -62,6 +64,15 @@ func New(c *restclient.Config) (*Client, error) { return nil, err } + var authorizationClient *AuthorizationClient + if registered.IsRegistered(authorization.GroupName) { + authorizationConfig := *c + authorizationClient, err = NewAuthorization(&authorizationConfig) + if err != nil { + return nil, err + } + } + var autoscalingClient *AutoscalingClient if registered.IsRegistered(autoscaling.GroupName) { autoscalingConfig := *c @@ -71,6 +82,15 @@ func New(c *restclient.Config) (*Client, error) { } } + var authenticationClient *AuthenticationClient + if registered.IsRegistered(authentication.GroupName) { + authenticationConfig := *c + authenticationClient, err = NewAuthentication(&authenticationConfig) + if err != nil { + return nil, err + } + } + var batchClient *BatchClient if registered.IsRegistered(batch.GroupName) { batchConfig := *c @@ -123,7 +143,19 @@ func New(c *restclient.Config) (*Client, error) { } } - return &Client{RESTClient: client, AutoscalingClient: autoscalingClient, BatchClient: batchClient, CertificatesClient: certsClient, ExtensionsClient: extensionsClient, DiscoveryClient: discoveryClient, AppsClient: appsClient, PolicyClient: policyClient, RbacClient: rbacClient}, nil + return &Client{ + RESTClient: client, + AppsClient: appsClient, + AuthenticationClient: authenticationClient, + AuthorizationClient: authorizationClient, + AutoscalingClient: autoscalingClient, + BatchClient: batchClient, + CertificatesClient: certsClient, + DiscoveryClient: discoveryClient, + ExtensionsClient: extensionsClient, + PolicyClient: policyClient, + RbacClient: rbacClient, + }, nil } // MatchesServerVersion queries the server to compares the build version @@ -258,16 +290,35 @@ func SetKubernetesDefaults(config *restclient.Config) error { if config.APIPath == "" { config.APIPath = legacyAPIPath } - g, err := registered.Group(api.GroupName) - if err != nil { - return err + if config.GroupVersion == nil || config.GroupVersion.Group != api.GroupName { + g, err := registered.Group(api.GroupName) + if err != nil { + return err + } + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion } - // TODO: Unconditionally set the config.Version, until we fix the config. - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion if config.NegotiatedSerializer == nil { config.NegotiatedSerializer = api.Codecs } - return restclient.SetKubernetesDefaults(config) } + +func setGroupDefaults(groupName string, config *restclient.Config) error { + config.APIPath = defaultAPIPath + if config.UserAgent == "" { + config.UserAgent = restclient.DefaultKubernetesUserAgent() + } + if config.GroupVersion == nil || config.GroupVersion.Group != groupName { + g, err := registered.Group(groupName) + if err != nil { + return err + } + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + } + if config.NegotiatedSerializer == nil { + config.NegotiatedSerializer = api.Codecs + } + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/import_known_versions.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/import_known_versions.go index 8508573c0a..2dee333b07 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/import_known_versions.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/import_known_versions.go @@ -23,7 +23,7 @@ import ( _ "k8s.io/kubernetes/pkg/api/install" "k8s.io/kubernetes/pkg/apimachinery/registered" _ "k8s.io/kubernetes/pkg/apis/apps/install" - _ "k8s.io/kubernetes/pkg/apis/authentication.k8s.io/install" + _ "k8s.io/kubernetes/pkg/apis/authentication/install" _ "k8s.io/kubernetes/pkg/apis/authorization/install" _ "k8s.io/kubernetes/pkg/apis/autoscaling/install" _ "k8s.io/kubernetes/pkg/apis/batch/install" diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/policy.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/policy.go index 9a47d79173..e602795ba5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/policy.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/policy.go @@ -17,8 +17,6 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/policy" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -38,7 +36,7 @@ func (c *PolicyClient) PodDisruptionBudgets(namespace string) PodDisruptionBudge func NewPolicy(c *restclient.Config) (*PolicyClient, error) { config := *c - if err := setPolicyDefaults(&config); err != nil { + if err := setGroupDefaults(policy.GroupName, &config); err != nil { return nil, err } client, err := restclient.RESTClientFor(&config) @@ -55,22 +53,3 @@ func NewPolicyOrDie(c *restclient.Config) *PolicyClient { } return client } - -func setPolicyDefaults(config *restclient.Config) error { - g, err := registered.Group(policy.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/rbac.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/rbac.go index 09b2b4073e..c95887da12 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/rbac.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/rbac.go @@ -17,8 +17,6 @@ limitations under the License. package unversioned import ( - "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apis/rbac" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -54,7 +52,7 @@ func (c *RbacClient) ClusterRoles() ClusterRoleInterface { // NewRbac creates a new RbacClient for the given config. func NewRbac(c *restclient.Config) (*RbacClient, error) { config := *c - if err := setRbacDefaults(&config); err != nil { + if err := setGroupDefaults(rbac.GroupName, &config); err != nil { return nil, err } client, err := restclient.RESTClientFor(&config) @@ -73,24 +71,3 @@ func NewRbacOrDie(c *restclient.Config) *RbacClient { } return client } - -func setRbacDefaults(config *restclient.Config) error { - // if rbac group is not registered, return an error - g, err := registered.Group(rbac.GroupName) - if err != nil { - return err - } - config.APIPath = defaultAPIPath - if config.UserAgent == "" { - config.UserAgent = restclient.DefaultKubernetesUserAgent() - } - - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = api.Codecs - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/replication_controllers.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/replication_controllers.go index e4b9e2d992..5c3b2c305e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/replication_controllers.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/replication_controllers.go @@ -33,7 +33,7 @@ type ReplicationControllerInterface interface { Create(ctrl *api.ReplicationController) (*api.ReplicationController, error) Update(ctrl *api.ReplicationController) (*api.ReplicationController, error) UpdateStatus(ctrl *api.ReplicationController) (*api.ReplicationController, error) - Delete(name string) error + Delete(name string, options *api.DeleteOptions) error Watch(opts api.ListOptions) (watch.Interface, error) } @@ -84,8 +84,8 @@ func (c *replicationControllers) UpdateStatus(controller *api.ReplicationControl } // Delete deletes an existing replication controller. -func (c *replicationControllers) Delete(name string) error { - return c.r.Delete().Namespace(c.ns).Resource("replicationControllers").Name(name).Do().Error() +func (c *replicationControllers) Delete(name string, options *api.DeleteOptions) error { + return c.r.Delete().Namespace(c.ns).Resource("replicationControllers").Name(name).Body(options).Do().Error() } // Watch returns a watch.Interface that watches the requested controllers. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/scheduledjobs.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/scheduledjobs.go index de07a7e5de..5c9222cf02 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/scheduledjobs.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/scheduledjobs.go @@ -55,34 +55,34 @@ var _ ScheduledJobInterface = &scheduledJobs{} // List returns a list of scheduled jobs that match the label and field selectors. func (c *scheduledJobs) List(opts api.ListOptions) (result *batch.ScheduledJobList, err error) { result = &batch.ScheduledJobList{} - err = c.r.Get().Namespace(c.ns).Resource("scheduledJobs").VersionedParams(&opts, api.ParameterCodec).Do().Into(result) + err = c.r.Get().Namespace(c.ns).Resource("scheduledjobs").VersionedParams(&opts, api.ParameterCodec).Do().Into(result) return } // Get returns information about a particular scheduled job. func (c *scheduledJobs) Get(name string) (result *batch.ScheduledJob, err error) { result = &batch.ScheduledJob{} - err = c.r.Get().Namespace(c.ns).Resource("scheduledJobs").Name(name).Do().Into(result) + err = c.r.Get().Namespace(c.ns).Resource("scheduledjobs").Name(name).Do().Into(result) return } // Create creates a new scheduled job. func (c *scheduledJobs) Create(job *batch.ScheduledJob) (result *batch.ScheduledJob, err error) { result = &batch.ScheduledJob{} - err = c.r.Post().Namespace(c.ns).Resource("scheduledJobs").Body(job).Do().Into(result) + err = c.r.Post().Namespace(c.ns).Resource("scheduledjobs").Body(job).Do().Into(result) return } // Update updates an existing scheduled job. func (c *scheduledJobs) Update(job *batch.ScheduledJob) (result *batch.ScheduledJob, err error) { result = &batch.ScheduledJob{} - err = c.r.Put().Namespace(c.ns).Resource("scheduledJobs").Name(job.Name).Body(job).Do().Into(result) + err = c.r.Put().Namespace(c.ns).Resource("scheduledjobs").Name(job.Name).Body(job).Do().Into(result) return } // Delete deletes a scheduled job, returns error if one occurs. func (c *scheduledJobs) Delete(name string, options *api.DeleteOptions) (err error) { - return c.r.Delete().Namespace(c.ns).Resource("scheduledJobs").Name(name).Body(options).Do().Error() + return c.r.Delete().Namespace(c.ns).Resource("scheduledjobs").Name(name).Body(options).Do().Error() } // Watch returns a watch.Interface that watches the requested scheduled jobs. @@ -90,7 +90,7 @@ func (c *scheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) { return c.r.Get(). Prefix("watch"). Namespace(c.ns). - Resource("scheduledJobs"). + Resource("scheduledjobs"). VersionedParams(&opts, api.ParameterCodec). Watch() } @@ -98,6 +98,6 @@ func (c *scheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error) { // UpdateStatus takes the name of the scheduled job and the new status. Returns the server's representation of the scheduled job, and an error, if it occurs. func (c *scheduledJobs) UpdateStatus(job *batch.ScheduledJob) (result *batch.ScheduledJob, err error) { result = &batch.ScheduledJob{} - err = c.r.Put().Namespace(c.ns).Resource("scheduledJobs").Name(job.Name).SubResource("status").Body(job).Do().Into(result) + err = c.r.Put().Namespace(c.ns).Resource("scheduledjobs").Name(job.Name).SubResource("status").Body(job).Do().Into(result) return } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/storageclasses.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/storageclasses.go new file mode 100644 index 0000000000..7c5c0b4e72 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/storageclasses.go @@ -0,0 +1,87 @@ +/* +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 unversioned + +import ( + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/apis/extensions" + "k8s.io/kubernetes/pkg/watch" +) + +type StorageClassesInterface interface { + StorageClasses() StorageClassInterface +} + +// StorageClassInterface has methods to work with StorageClass resources. +type StorageClassInterface interface { + List(opts api.ListOptions) (*extensions.StorageClassList, error) + Get(name string) (*extensions.StorageClass, error) + Create(storageClass *extensions.StorageClass) (*extensions.StorageClass, error) + Update(storageClass *extensions.StorageClass) (*extensions.StorageClass, error) + Delete(name string) error + Watch(opts api.ListOptions) (watch.Interface, error) +} + +// storageClasses implements StorageClassInterface +type storageClasses struct { + client *ExtensionsClient +} + +func newStorageClasses(c *ExtensionsClient) *storageClasses { + return &storageClasses{c} +} + +func (c *storageClasses) List(opts api.ListOptions) (result *extensions.StorageClassList, err error) { + result = &extensions.StorageClassList{} + err = c.client.Get(). + Resource("storageclasses"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + + return result, err +} + +func (c *storageClasses) Get(name string) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Get().Resource("storageClasses").Name(name).Do().Into(result) + return +} + +func (c *storageClasses) Create(storageClass *extensions.StorageClass) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Post().Resource("storageClasses").Body(storageClass).Do().Into(result) + return +} + +func (c *storageClasses) Update(storageClass *extensions.StorageClass) (result *extensions.StorageClass, err error) { + result = &extensions.StorageClass{} + err = c.client.Put().Resource("storageClasses").Name(storageClass.Name).Body(storageClass).Do().Into(result) + return +} + +func (c *storageClasses) Delete(name string) error { + return c.client.Delete().Resource("storageClasses").Name(name).Do().Error() +} + +func (c *storageClasses) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Resource("storageClasses"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/subjectaccessreview.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/subjectaccessreview.go new file mode 100644 index 0000000000..b7a2c59e67 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/subjectaccessreview.go @@ -0,0 +1,45 @@ +/* +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 unversioned + +import ( + "k8s.io/kubernetes/pkg/apis/authorization" +) + +type SubjectAccessReviewsInterface interface { + SubjectAccessReviews() SubjectAccessReviewInterface +} + +type SubjectAccessReviewInterface interface { + Create(subjectAccessReview *authorization.SubjectAccessReview) (*authorization.SubjectAccessReview, error) +} + +type subjectAccessReviews struct { + client *AuthorizationClient +} + +func newSubjectAccessReviews(c *AuthorizationClient) *subjectAccessReviews { + return &subjectAccessReviews{ + client: c, + } +} + +func (c *subjectAccessReviews) Create(subjectAccessReview *authorization.SubjectAccessReview) (result *authorization.SubjectAccessReview, err error) { + result = &authorization.SubjectAccessReview{} + err = c.client.Post().Resource("subjectAccessReviews").Body(subjectAccessReview).Do().Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_petsets.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_petsets.go new file mode 100644 index 0000000000..192ffba2b2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_petsets.go @@ -0,0 +1,83 @@ +/* +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 testclient + +import ( + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/apis/apps" + "k8s.io/kubernetes/pkg/watch" +) + +// FakePetSets implements PetSetsInterface. Meant to be embedded into a struct to get a default +// implementation. This makes faking out just the method you want to test easier. +type FakePetSets struct { + Fake *FakeApps + Namespace string +} + +func (c *FakePetSets) Get(name string) (*apps.PetSet, error) { + obj, err := c.Fake.Invokes(NewGetAction("petsets", c.Namespace, name), &apps.PetSet{}) + if obj == nil { + return nil, err + } + + return obj.(*apps.PetSet), err +} + +func (c *FakePetSets) List(opts api.ListOptions) (*apps.PetSetList, error) { + obj, err := c.Fake.Invokes(NewListAction("petsets", c.Namespace, opts), &apps.PetSetList{}) + if obj == nil { + return nil, err + } + return obj.(*apps.PetSetList), err +} + +func (c *FakePetSets) Create(rs *apps.PetSet) (*apps.PetSet, error) { + obj, err := c.Fake.Invokes(NewCreateAction("petsets", c.Namespace, rs), rs) + if obj == nil { + return nil, err + } + + return obj.(*apps.PetSet), err +} + +func (c *FakePetSets) Update(rs *apps.PetSet) (*apps.PetSet, error) { + obj, err := c.Fake.Invokes(NewUpdateAction("petsets", c.Namespace, rs), rs) + if obj == nil { + return nil, err + } + + return obj.(*apps.PetSet), err +} + +func (c *FakePetSets) Delete(name string, options *api.DeleteOptions) error { + _, err := c.Fake.Invokes(NewDeleteAction("petsets", c.Namespace, name), &apps.PetSet{}) + return err +} + +func (c *FakePetSets) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.Fake.InvokesWatch(NewWatchAction("petsets", c.Namespace, opts)) +} + +func (c *FakePetSets) UpdateStatus(rs *apps.PetSet) (result *apps.PetSet, err error) { + obj, err := c.Fake.Invokes(NewUpdateSubresourceAction("petsets", "status", c.Namespace, rs), rs) + if obj == nil { + return nil, err + } + + return obj.(*apps.PetSet), err +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_replication_controllers.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_replication_controllers.go index 2d3d7d9ef8..d56e4fcb30 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_replication_controllers.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_replication_controllers.go @@ -72,7 +72,7 @@ func (c *FakeReplicationControllers) UpdateStatus(controller *api.ReplicationCon return obj.(*api.ReplicationController), err } -func (c *FakeReplicationControllers) Delete(name string) error { +func (c *FakeReplicationControllers) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake.Invokes(NewDeleteAction("replicationcontrollers", c.Namespace, name), &api.ReplicationController{}) return err } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_storage_classes.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_storage_classes.go new file mode 100644 index 0000000000..0a6bb65f4b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_storage_classes.go @@ -0,0 +1,74 @@ +/* +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 testclient + +import ( + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/apis/extensions" + kclientlib "k8s.io/kubernetes/pkg/client/unversioned" + "k8s.io/kubernetes/pkg/watch" +) + +// FakeStorageClasses implements StorageClassInterface. Meant to be embedded into a struct to get a default +// implementation. This makes faking out just the method you want to test easier. +type FakeStorageClasses struct { + Fake *FakeExperimental +} + +// Ensure statically that FakeStorageClasses implements StorageClassInterface. +var _ kclientlib.StorageClassInterface = &FakeStorageClasses{} + +func (c *FakeStorageClasses) Get(name string) (*extensions.StorageClass, error) { + obj, err := c.Fake.Invokes(NewGetAction("storageclasses", "", name), &extensions.StorageClass{}) + if obj == nil { + return nil, err + } + return obj.(*extensions.StorageClass), err +} + +func (c *FakeStorageClasses) List(opts api.ListOptions) (*extensions.StorageClassList, error) { + obj, err := c.Fake.Invokes(NewListAction("storageclasses", "", opts), &extensions.StorageClassList{}) + if obj == nil { + return nil, err + } + return obj.(*extensions.StorageClassList), err +} + +func (c *FakeStorageClasses) Create(np *extensions.StorageClass) (*extensions.StorageClass, error) { + obj, err := c.Fake.Invokes(NewCreateAction("storageclasses", "", np), &extensions.StorageClass{}) + if obj == nil { + return nil, err + } + return obj.(*extensions.StorageClass), err +} + +func (c *FakeStorageClasses) Update(np *extensions.StorageClass) (*extensions.StorageClass, error) { + obj, err := c.Fake.Invokes(NewUpdateAction("storageclasses", "", np), &extensions.StorageClass{}) + if obj == nil { + return nil, err + } + return obj.(*extensions.StorageClass), err +} + +func (c *FakeStorageClasses) Delete(name string) error { + _, err := c.Fake.Invokes(NewDeleteAction("storageclasses", "", name), &extensions.StorageClass{}) + return err +} + +func (c *FakeStorageClasses) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.Fake.InvokesWatch(NewWatchAction("storageclasses", "", opts)) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_subjectaccessreviews.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_subjectaccessreviews.go new file mode 100644 index 0000000000..54f779dbda --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_subjectaccessreviews.go @@ -0,0 +1,36 @@ +/* +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 testclient + +import ( + "k8s.io/kubernetes/pkg/apis/authorization" +) + +// FakeSubjectAccessReviews implements SubjectAccessReviewInterface. Meant to be embedded into a struct to get a default +// implementation. This makes faking out just the methods you want to test easier. +type FakeSubjectAccessReviews struct { + Fake *FakeAuthorization +} + +func (c *FakeSubjectAccessReviews) Create(a *authorization.SubjectAccessReview) (*authorization.SubjectAccessReview, error) { + obj, err := c.Fake.Invokes(NewRootCreateAction("subjectaccessreviews", a), a) + if obj == nil { + return nil, err + } + + return obj.(*authorization.SubjectAccessReview), err +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_tokenreviews.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_tokenreviews.go new file mode 100644 index 0000000000..c0e6c91041 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/fake_tokenreviews.go @@ -0,0 +1,35 @@ +/* +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 testclient + +import ( + "k8s.io/kubernetes/pkg/apis/authentication" +) + +// FakeTokenReviews implements ClusterRoleInterface +type FakeTokenReviews struct { + Fake *FakeAuthentication +} + +func (c *FakeTokenReviews) Create(review *authentication.TokenReview) (*authentication.TokenReview, error) { + obj, err := c.Fake.Invokes(NewRootCreateAction("tokenreviews", review), review) + if obj == nil { + return nil, err + } + + return obj.(*authentication.TokenReview), err +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/testclient.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/testclient.go index d4f1eb70c5..418a726b7e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/testclient.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/testclient/testclient.go @@ -203,7 +203,7 @@ func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper { // ClearActions clears the history of actions called on the fake client func (c *Fake) ClearActions() { c.Lock() - c.Unlock() + defer c.Unlock() c.actions = make([]Action, 0) } @@ -277,6 +277,14 @@ func (c *Fake) Namespaces() client.NamespaceInterface { return &FakeNamespaces{Fake: c} } +func (c *Fake) Apps() client.AppsInterface { + return &FakeApps{c} +} + +func (c *Fake) Authorization() client.AuthorizationInterface { + return &FakeAuthorization{c} +} + func (c *Fake) Autoscaling() client.AutoscalingInterface { return &FakeAutoscaling{c} } @@ -309,6 +317,10 @@ func (c *Fake) Rbac() client.RbacInterface { return &FakeRbac{Fake: c} } +func (c *Fake) Authentication() client.AuthenticationInterface { + return &FakeAuthentication{Fake: c} +} + // SwaggerSchema returns an empty swagger.ApiDeclaration for testing func (c *Fake) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error) { action := ActionImpl{} @@ -323,6 +335,32 @@ func (c *Fake) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDecl return &swagger.ApiDeclaration{}, nil } +// NewSimpleFakeApps returns a client that will respond with the provided objects +func NewSimpleFakeApps(objects ...runtime.Object) *FakeApps { + return &FakeApps{Fake: NewSimpleFake(objects...)} +} + +type FakeApps struct { + *Fake +} + +func (c *FakeApps) PetSets(namespace string) client.PetSetInterface { + return &FakePetSets{Fake: c, Namespace: namespace} +} + +// NewSimpleFakeAuthorization returns a client that will respond with the provided objects +func NewSimpleFakeAuthorization(objects ...runtime.Object) *FakeAuthorization { + return &FakeAuthorization{Fake: NewSimpleFake(objects...)} +} + +type FakeAuthorization struct { + *Fake +} + +func (c *FakeAuthorization) SubjectAccessReviews() client.SubjectAccessReviewInterface { + return &FakeSubjectAccessReviews{Fake: c} +} + // NewSimpleFakeAutoscaling returns a client that will respond with the provided objects func NewSimpleFakeAutoscaling(objects ...runtime.Object) *FakeAutoscaling { return &FakeAutoscaling{Fake: NewSimpleFake(objects...)} @@ -336,6 +374,18 @@ func (c *FakeAutoscaling) HorizontalPodAutoscalers(namespace string) client.Hori return &FakeHorizontalPodAutoscalers{Fake: c, Namespace: namespace} } +func NewSimpleFakeAuthentication(objects ...runtime.Object) *FakeAuthentication { + return &FakeAuthentication{Fake: NewSimpleFake(objects...)} +} + +type FakeAuthentication struct { + *Fake +} + +func (c *FakeAuthentication) TokenReviews() client.TokenReviewInterface { + return &FakeTokenReviews{Fake: c} +} + // NewSimpleFakeBatch returns a client that will respond with the provided objects func NewSimpleFakeBatch(objects ...runtime.Object) *FakeBatch { return &FakeBatch{Fake: NewSimpleFake(objects...)} @@ -394,6 +444,10 @@ func (c *FakeExperimental) NetworkPolicies(namespace string) client.NetworkPolic return &FakeNetworkPolicies{Fake: c, Namespace: namespace} } +func (c *FakeExperimental) StorageClasses() client.StorageClassInterface { + return &FakeStorageClasses{Fake: c} +} + func NewSimpleFakeRbac(objects ...runtime.Object) *FakeRbac { return &FakeRbac{Fake: NewSimpleFake(objects...)} } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/tokenreviews.go b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/tokenreviews.go new file mode 100644 index 0000000000..91c6bb6003 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/client/unversioned/tokenreviews.go @@ -0,0 +1,49 @@ +/* +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 unversioned + +import ( + "k8s.io/kubernetes/pkg/apis/authentication" +) + +// TokenReviews has methods to work with TokenReview resources in a namespace +type TokenReviewsInterface interface { + TokenReviews() TokenReviewInterface +} + +// TokenReviewInterface has methods to work with TokenReview resources. +type TokenReviewInterface interface { + Create(tokenReview *authentication.TokenReview) (*authentication.TokenReview, error) +} + +// tokenReviews implements TokenReviewsNamespacer interface +type tokenReviews struct { + client *AuthenticationClient +} + +// newTokenReviews returns a tokenReviews +func newTokenReviews(c *AuthenticationClient) *tokenReviews { + return &tokenReviews{ + client: c, + } +} + +func (c *tokenReviews) Create(obj *authentication.TokenReview) (result *authentication.TokenReview, err error) { + result = &authentication.TokenReview{} + err = c.client.Post().Resource("tokenreviews").Body(obj).Do().Into(result) + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/cloud.go b/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/cloud.go index 59cd18fa40..cb5b681891 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/cloud.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/cloud.go @@ -81,13 +81,16 @@ type LoadBalancer interface { // GetLoadBalancer returns whether the specified load balancer exists, and // if so, what its status is. // Implementations must treat the *api.Service parameter as read-only and not modify it. - GetLoadBalancer(service *api.Service) (status *api.LoadBalancerStatus, exists bool, err error) + // Parameter 'clusterName' is the name of the cluster as presented to kube-controller-manager + GetLoadBalancer(clusterName string, service *api.Service) (status *api.LoadBalancerStatus, exists bool, err error) // EnsureLoadBalancer creates a new load balancer 'name', or updates the existing one. Returns the status of the balancer // Implementations must treat the *api.Service parameter as read-only and not modify it. - EnsureLoadBalancer(service *api.Service, hosts []string) (*api.LoadBalancerStatus, error) + // Parameter 'clusterName' is the name of the cluster as presented to kube-controller-manager + EnsureLoadBalancer(clusterName string, service *api.Service, hosts []string) (*api.LoadBalancerStatus, error) // UpdateLoadBalancer updates hosts under the specified load balancer. // Implementations must treat the *api.Service parameter as read-only and not modify it. - UpdateLoadBalancer(service *api.Service, hosts []string) error + // Parameter 'clusterName' is the name of the cluster as presented to kube-controller-manager + UpdateLoadBalancer(clusterName string, service *api.Service, hosts []string) error // EnsureLoadBalancerDeleted deletes the specified load balancer if it // exists, returning nil if the load balancer specified either didn't exist or // was successfully deleted. @@ -95,7 +98,8 @@ type LoadBalancer interface { // have multiple underlying components, meaning a Get could say that the LB // doesn't exist even if some part of it is still laying around. // Implementations must treat the *api.Service parameter as read-only and not modify it. - EnsureLoadBalancerDeleted(service *api.Service) error + // Parameter 'clusterName' is the name of the cluster as presented to kube-controller-manager + EnsureLoadBalancerDeleted(clusterName string, service *api.Service) error } // Instances is an abstract, pluggable interface for sets of instances. @@ -106,12 +110,11 @@ type Instances interface { // make this clearer. NodeAddresses(name string) ([]api.NodeAddress, error) // ExternalID returns the cloud provider ID of the specified instance (deprecated). + // Note that if the instance does not exist or is no longer running, we must return ("", cloudprovider.InstanceNotFound) ExternalID(name string) (string, error) // InstanceID returns the cloud provider ID of the specified instance. - // Note that if the instance does not exist or is no longer running, we must return ("", cloudprovider.InstanceNotFound) InstanceID(name string) (string, error) // InstanceType returns the type of the specified instance. - // Note that if the instance does not exist or is no longer running, we must return ("", cloudprovider.InstanceNotFound) InstanceType(name string) (string, error) // List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn) List(filter string) ([]string, error) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/gce/gce.go b/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/gce/gce.go index 589f2e001f..be4b5bf04e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/gce/gce.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/gce/gce.go @@ -31,7 +31,7 @@ import ( "gopkg.in/gcfg.v1" "k8s.io/kubernetes/pkg/api" - "k8s.io/kubernetes/pkg/api/service" + apiservice "k8s.io/kubernetes/pkg/api/service" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/cloudprovider" "k8s.io/kubernetes/pkg/types" @@ -70,8 +70,16 @@ const ( // were to continuously return a nextPageToken. maxPages = 25 - // Target Pool creation is limited to 200 instances. maxTargetPoolCreateInstances = 200 + + // HTTP Load Balancer parameters + // Configure 2 second period for external health checks. + gceHcCheckIntervalSeconds = int64(2) + gceHcTimeoutSeconds = int64(1) + // Start sending requests as soon as a pod is found on the node. + gceHcHealthyThreshold = int64(1) + // Defaults to 5 * 2 = 10 seconds before the LB will steer traffic away + gceHcUnhealthyThreshold = int64(5) ) // GCECloud is an implementation of Interface, LoadBalancer and Instances for Google Compute Engine. @@ -81,7 +89,7 @@ type GCECloud struct { projectID string region string localZone string // The zone in which we are running - managedZones []string // List of zones we are spanning (for Ubernetes-Lite, primarily when running on master) + managedZones []string // List of zones we are spanning (for multi-AZ clusters, primarily when running on master) networkURL string nodeTags []string // List of tags to use on firewall rules for load balancers nodeInstancePrefix string // If non-"", an advisory prefix for all nodes in the cluster @@ -101,6 +109,16 @@ type Config struct { } } +type DiskType string + +const ( + DiskTypeSSD = "pd-ssd" + DiskTypeStandard = "pd-standard" + + diskTypeDefault = DiskTypeStandard + diskTypeUriTemplate = "https://www.googleapis.com/compute/v1/projects/%s/zones/%s/diskTypes/%s" +) + // Disks is interface for manipulation with GCE PDs. type Disks interface { // AttachDisk attaches given disk to given instance. Current instance @@ -116,7 +134,7 @@ type Disks interface { // CreateDisk creates a new PD with given properties. Tags are serialized // as JSON into Description field. - CreateDisk(name string, zone string, sizeGb int64, tags map[string]string) error + CreateDisk(name string, diskType string, zone string, sizeGb int64, tags map[string]string) error // DeleteDisk deletes PD. DeleteDisk(diskToDelete string) error @@ -494,7 +512,7 @@ func (gce *GCECloud) waitForZoneOp(op *compute.Operation, zone string) error { } // GetLoadBalancer is an implementation of LoadBalancer.GetLoadBalancer -func (gce *GCECloud) GetLoadBalancer(service *api.Service) (*api.LoadBalancerStatus, bool, error) { +func (gce *GCECloud) GetLoadBalancer(clusterName string, service *api.Service) (*api.LoadBalancerStatus, bool, error) { loadBalancerName := cloudprovider.GetLoadBalancerName(service) fwd, err := gce.service.ForwardingRules.Get(gce.projectID, gce.region, loadBalancerName).Do() if err == nil { @@ -521,7 +539,7 @@ func isHTTPErrorCode(err error, code int) bool { // Due to an interesting series of design decisions, this handles both creating // new load balancers and updating existing load balancers, recognizing when // each is needed. -func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []string) (*api.LoadBalancerStatus, error) { +func (gce *GCECloud) EnsureLoadBalancer(clusterName string, apiService *api.Service, hostNames []string) (*api.LoadBalancerStatus, error) { if len(hostNames) == 0 { return nil, fmt.Errorf("Cannot EnsureLoadBalancer() with no hosts") } @@ -549,6 +567,9 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str if err != nil { return nil, err } + if !fwdRuleExists { + glog.Infof("Forwarding rule %v for Service %v/%v doesn't exist", loadBalancerName, apiService.Namespace, apiService.Name) + } // Make sure we know which IP address will be used and have properly reserved // it as static before moving forward with the rest of our operations. @@ -652,7 +673,7 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str // is because the forwarding rule is used as the indicator that the load // balancer is fully created - it's what getLoadBalancer checks for. // Check if user specified the allow source range - sourceRanges, err := service.GetLoadBalancerSourceRanges(apiService) + sourceRanges, err := apiservice.GetLoadBalancerSourceRanges(apiService) if err != nil { return nil, err } @@ -667,15 +688,17 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str // Unlike forwarding rules and target pools, firewalls can be updated // without needing to be deleted and recreated. if firewallExists { + glog.Infof("EnsureLoadBalancer(%v(%v)): updating firewall", loadBalancerName, serviceName) if err := gce.updateFirewall(loadBalancerName, gce.region, desc, sourceRanges, ports, hosts); err != nil { return nil, err } - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): updated firewall", loadBalancerName, serviceName) + glog.Infof("EnsureLoadBalancer(%v(%v)): updated firewall", loadBalancerName, serviceName) } else { + glog.Infof("EnsureLoadBalancer(%v(%v)): creating firewall", loadBalancerName, serviceName) if err := gce.createFirewall(loadBalancerName, gce.region, desc, sourceRanges, ports, hosts); err != nil { return nil, err } - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): created firewall", loadBalancerName, serviceName) + glog.Infof("EnsureLoadBalancer(%v(%v)): created firewall", loadBalancerName, serviceName) } } @@ -683,6 +706,9 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str if err != nil { return nil, err } + if !tpExists { + glog.Infof("Target pool %v for Service %v/%v doesn't exist", loadBalancerName, apiService.Namespace, apiService.Name) + } // Now we get to some slightly more interesting logic. // First, neither target pools nor forwarding rules can be updated in place - @@ -699,13 +725,24 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str if err := gce.deleteForwardingRule(loadBalancerName, gce.region); err != nil { return nil, fmt.Errorf("failed to delete existing forwarding rule %s for load balancer update: %v", loadBalancerName, err) } - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): deleted forwarding rule", loadBalancerName, serviceName) + glog.Infof("EnsureLoadBalancer(%v(%v)): deleted forwarding rule", loadBalancerName, serviceName) } if tpExists && tpNeedsUpdate { - if err := gce.deleteTargetPool(loadBalancerName, gce.region); err != nil { + // Generate the list of health checks for this target pool to pass to deleteTargetPool + var hc *compute.HttpHealthCheck + if path, _ := apiservice.GetServiceHealthCheckPathPort(apiService); path != "" { + var err error + hc, err = gce.GetHttpHealthCheck(loadBalancerName) + if err != nil && !isHTTPErrorCode(err, http.StatusNotFound) { + glog.Infof("Failed to retrieve health check %v:%v", loadBalancerName, err) + } + } + + // Pass healthchecks to deleteTargetPool to cleanup health checks prior to cleaning up the target pool itself. + if err := gce.deleteTargetPool(loadBalancerName, gce.region, hc); err != nil { return nil, fmt.Errorf("failed to delete existing target pool %s for load balancer update: %v", loadBalancerName, err) } - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): deleted target pool", loadBalancerName, serviceName) + glog.Infof("EnsureLoadBalancer(%v(%v)): deleted target pool", loadBalancerName, serviceName) } // Once we've deleted the resources (if necessary), build them back up (or for @@ -716,13 +753,24 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str createInstances = createInstances[:maxTargetPoolCreateInstances] } - if err := gce.createTargetPool(loadBalancerName, serviceName.String(), gce.region, createInstances, affinityType); err != nil { + // Create health checks for this target pool to pass to createTargetPool for health check links + var hc *compute.HttpHealthCheck + if path, healthCheckNodePort := apiservice.GetServiceHealthCheckPathPort(apiService); path != "" { + glog.Infof("service %v needs health checks on :%d/%s)", apiService.Name, healthCheckNodePort, path) + var err error + hc, err = gce.ensureHttpHealthCheck(loadBalancerName, path, healthCheckNodePort) + if err != nil { + return nil, fmt.Errorf("Failed to create health check for localized service %v on node port %v: %v", loadBalancerName, healthCheckNodePort, err) + } + } + // Pass healthchecks to createTargetPool which needs them as health check links in the target pool + if err := gce.createTargetPool(loadBalancerName, serviceName.String(), gce.region, createInstances, affinityType, hc); err != nil { return nil, fmt.Errorf("failed to create target pool %s: %v", loadBalancerName, err) } if len(hosts) <= maxTargetPoolCreateInstances { - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): created target pool", loadBalancerName, serviceName) + glog.Infof("EnsureLoadBalancer(%v(%v)): created target pool", loadBalancerName, serviceName) } else { - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): created initial target pool (now updating with %d hosts)", loadBalancerName, serviceName, len(hosts)-maxTargetPoolCreateInstances) + glog.Infof("EnsureLoadBalancer(%v(%v)): created initial target pool (now updating with %d hosts)", loadBalancerName, serviceName, len(hosts)-maxTargetPoolCreateInstances) created := sets.NewString() for _, host := range createInstances { @@ -731,9 +779,11 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str if err := gce.updateTargetPool(loadBalancerName, created, hosts); err != nil { return nil, fmt.Errorf("failed to update target pool %s: %v", loadBalancerName, err) } + glog.Infof("EnsureLoadBalancer(%v(%v)): updated target pool (with %d hosts)", loadBalancerName, serviceName, len(hosts)-maxTargetPoolCreateInstances) } } if tpNeedsUpdate || fwdRuleNeedsUpdate { + glog.Infof("EnsureLoadBalancer(%v(%v)): creating forwarding rule, IP %s", loadBalancerName, serviceName, ipAddress) if err := gce.createForwardingRule(loadBalancerName, serviceName.String(), gce.region, ipAddress, ports); err != nil { return nil, fmt.Errorf("failed to create forwarding rule %s: %v", loadBalancerName, err) } @@ -742,14 +792,58 @@ func (gce *GCECloud) EnsureLoadBalancer(apiService *api.Service, hostNames []str // of a user-requested IP, the "is user-owned" flag will be set, // preventing it from actually being released. isSafeToReleaseIP = true - glog.V(4).Infof("EnsureLoadBalancer(%v(%v)): created forwarding rule, IP %s", loadBalancerName, serviceName, ipAddress) + glog.Infof("EnsureLoadBalancer(%v(%v)): created forwarding rule, IP %s", loadBalancerName, serviceName, ipAddress) } status := &api.LoadBalancerStatus{} status.Ingress = []api.LoadBalancerIngress{{IP: ipAddress}} + return status, nil } +func makeHealthCheckDescription(serviceName string) string { + return fmt.Sprintf(`{"kubernetes.io/service-name":"%s"}`, serviceName) +} + +func (gce *GCECloud) ensureHttpHealthCheck(name, path string, port int32) (hc *compute.HttpHealthCheck, err error) { + newHC := &compute.HttpHealthCheck{ + Name: name, + Port: int64(port), + RequestPath: path, + Host: "", + Description: makeHealthCheckDescription(name), + CheckIntervalSec: gceHcCheckIntervalSeconds, + TimeoutSec: gceHcTimeoutSeconds, + HealthyThreshold: gceHcHealthyThreshold, + UnhealthyThreshold: gceHcUnhealthyThreshold, + } + + hc, err = gce.GetHttpHealthCheck(name) + if hc == nil || err != nil && isHTTPErrorCode(err, http.StatusNotFound) { + glog.Infof("Did not find health check %v, creating port %v path %v", name, port, path) + if err = gce.CreateHttpHealthCheck(newHC); err != nil { + return nil, err + } + hc, err = gce.GetHttpHealthCheck(name) + if err != nil { + glog.Errorf("Failed to get http health check %v", err) + return nil, err + } + return hc, nil + } + // Validate health check fields + drift := hc.Port != int64(port) || hc.RequestPath != path || hc.Description != makeHealthCheckDescription(name) + drift = drift || hc.CheckIntervalSec != gceHcCheckIntervalSeconds || hc.TimeoutSec != gceHcTimeoutSeconds + drift = drift || hc.UnhealthyThreshold != gceHcUnhealthyThreshold || hc.HealthyThreshold != gceHcHealthyThreshold + if drift { + glog.Infof("Health check %v exists but parameters have drifted - updating", name) + if err := gce.UpdateHttpHealthCheck(newHC); err != nil { + return nil, err + } + } + return hc, nil +} + // Passing nil for requested IP is perfectly fine - it just means that no specific // IP is being requested. // Returns whether the forwarding rule exists, whether it needs to be updated, @@ -760,20 +854,31 @@ func (gce *GCECloud) forwardingRuleNeedsUpdate(name, region string, loadBalancer if isHTTPErrorCode(err, http.StatusNotFound) { return false, true, "", nil } - return false, false, "", fmt.Errorf("error getting load balancer's forwarding rule: %v", err) + // Err on the side of caution in case of errors. Caller should notice the error and retry. + // We never want to end up recreating resources because gce api flaked. + return true, false, "", fmt.Errorf("error getting load balancer's forwarding rule: %v", err) } - if loadBalancerIP != fwd.IPAddress { + // If the user asks for a specific static ip through the Service spec, + // check that we're actually using it. + // TODO: we report loadbalancer IP through status, so we want to verify if + // that matches the forwarding rule as well. + if loadBalancerIP != "" && loadBalancerIP != fwd.IPAddress { + glog.Infof("LoadBalancer ip for forwarding rule %v was expected to be %v, but was actually %v", fwd.Name, fwd.IPAddress, loadBalancerIP) return true, true, fwd.IPAddress, nil } portRange, err := loadBalancerPortRange(ports) if err != nil { - return false, false, "", err + // Err on the side of caution in case of errors. Caller should notice the error and retry. + // We never want to end up recreating resources because gce api flaked. + return true, false, "", err } if portRange != fwd.PortRange { + glog.Infof("LoadBalancer port range for forwarding rule %v was expected to be %v, but was actually %v", fwd.Name, fwd.PortRange, portRange) return true, true, fwd.IPAddress, nil } // The service controller verified all the protocols match on the ports, just check the first one if string(ports[0].Protocol) != fwd.IPProtocol { + glog.Infof("LoadBalancer protocol for forwarding rule %v was expected to be %v, but was actually %v", fwd.Name, fwd.IPProtocol, string(ports[0].Protocol)) return true, true, fwd.IPAddress, nil } @@ -811,9 +916,20 @@ func (gce *GCECloud) targetPoolNeedsUpdate(name, region string, affinityType api if isHTTPErrorCode(err, http.StatusNotFound) { return false, true, nil } - return false, false, fmt.Errorf("error getting load balancer's target pool: %v", err) - } - if translateAffinityType(affinityType) != tp.SessionAffinity { + // Err on the side of caution in case of errors. Caller should notice the error and retry. + // We never want to end up recreating resources because gce api flaked. + return true, false, fmt.Errorf("error getting load balancer's target pool: %v", err) + } + // TODO: If the user modifies their Service's session affinity, it *should* + // reflect in the associated target pool. However, currently not setting the + // session affinity on a target pool defaults it to the empty string while + // not setting in on a Service defaults it to None. There is a lack of + // documentation around the default setting for the target pool, so if we + // find it's the undocumented empty string, don't blindly recreate the + // target pool (which results in downtime). Fix this when we have formally + // defined the defaults on either side. + if tp.SessionAffinity != "" && translateAffinityType(affinityType) != tp.SessionAffinity { + glog.Infof("LoadBalancer target pool %v changed affinity from %v to %v", name, tp.SessionAffinity, affinityType) return true, true, nil } return true, false, nil @@ -920,16 +1036,24 @@ func (gce *GCECloud) createForwardingRule(name, serviceName, region, ipAddress s return nil } -func (gce *GCECloud) createTargetPool(name, serviceName, region string, hosts []*gceInstance, affinityType api.ServiceAffinity) error { +func (gce *GCECloud) createTargetPool(name, serviceName, region string, hosts []*gceInstance, affinityType api.ServiceAffinity, hc *compute.HttpHealthCheck) error { var instances []string for _, host := range hosts { instances = append(instances, makeHostURL(gce.projectID, host.Zone, host.Name)) } + hcLinks := []string{} + if hc != nil { + hcLinks = append(hcLinks, hc.SelfLink) + } + if len(hcLinks) > 0 { + glog.Infof("Creating targetpool %v with healthchecking", name) + } pool := &compute.TargetPool{ Name: name, Description: fmt.Sprintf(`{"kubernetes.io/service-name":"%s"}`, serviceName), Instances: instances, SessionAffinity: translateAffinityType(affinityType), + HealthChecks: hcLinks, } op, err := gce.service.TargetPools.Insert(gce.projectID, region, pool).Do() if err != nil && !isHTTPErrorCode(err, http.StatusConflict) { @@ -1161,7 +1285,7 @@ func (gce *GCECloud) ensureStaticIP(name, serviceName, region, existingIP string } // UpdateLoadBalancer is an implementation of LoadBalancer.UpdateLoadBalancer. -func (gce *GCECloud) UpdateLoadBalancer(service *api.Service, hostNames []string) error { +func (gce *GCECloud) UpdateLoadBalancer(clusterName string, service *api.Service, hostNames []string) error { hosts, err := gce.getInstancesByNames(hostNames) if err != nil { return err @@ -1232,11 +1356,21 @@ func (gce *GCECloud) updateTargetPool(loadBalancerName string, existing sets.Str } // EnsureLoadBalancerDeleted is an implementation of LoadBalancer.EnsureLoadBalancerDeleted. -func (gce *GCECloud) EnsureLoadBalancerDeleted(service *api.Service) error { +func (gce *GCECloud) EnsureLoadBalancerDeleted(clusterName string, service *api.Service) error { loadBalancerName := cloudprovider.GetLoadBalancerName(service) - glog.V(2).Infof("EnsureLoadBalancerDeleted(%v, %v, %v, %v)", service.Namespace, service.Name, loadBalancerName, + glog.V(2).Infof("EnsureLoadBalancerDeleted(%v, %v, %v, %v, %v)", clusterName, service.Namespace, service.Name, loadBalancerName, gce.region) + var hc *compute.HttpHealthCheck + if path, _ := apiservice.GetServiceHealthCheckPathPort(service); path != "" { + var err error + hc, err = gce.GetHttpHealthCheck(loadBalancerName) + if err != nil && !isHTTPErrorCode(err, http.StatusNotFound) { + glog.Infof("Failed to retrieve health check %v:%v", loadBalancerName, err) + return err + } + } + errs := utilerrors.AggregateGoroutines( func() error { return gce.deleteFirewall(loadBalancerName, gce.region) }, // Even though we don't hold on to static IPs for load balancers, it's @@ -1249,7 +1383,7 @@ func (gce *GCECloud) EnsureLoadBalancerDeleted(service *api.Service) error { if err := gce.deleteForwardingRule(loadBalancerName, gce.region); err != nil { return err } - if err := gce.deleteTargetPool(loadBalancerName, gce.region); err != nil { + if err := gce.deleteTargetPool(loadBalancerName, gce.region, hc); err != nil { return err } return nil @@ -1277,7 +1411,14 @@ func (gce *GCECloud) deleteForwardingRule(name, region string) error { return nil } -func (gce *GCECloud) deleteTargetPool(name, region string) error { +func (gce *GCECloud) deleteTargetPool(name, region string, hc *compute.HttpHealthCheck) error { + if hc != nil { + glog.Infof("Deleting health check %v", hc.Name) + if err := gce.DeleteHttpHealthCheck(hc.Name); err != nil { + glog.Warningf("Failed to delete health check %v: %v", hc, err) + return err + } + } op, err := gce.service.TargetPools.Delete(gce.projectID, region, name).Do() if err != nil && isHTTPErrorCode(err, http.StatusNotFound) { glog.Infof("Target pool %s already deleted. Continuing to delete other resources.", name) @@ -2226,18 +2367,29 @@ func (gce *GCECloud) encodeDiskTags(tags map[string]string) (string, error) { } // CreateDisk creates a new Persistent Disk, with the specified name & size, in -// the specified zone. It stores specified tags endoced in JSON in Description +// the specified zone. It stores specified tags encoded in JSON in Description // field. -func (gce *GCECloud) CreateDisk(name string, zone string, sizeGb int64, tags map[string]string) error { +func (gce *GCECloud) CreateDisk(name string, diskType string, zone string, sizeGb int64, tags map[string]string) error { tagsStr, err := gce.encodeDiskTags(tags) if err != nil { return err } + switch diskType { + case DiskTypeSSD, DiskTypeStandard: + // noop + case "": + diskType = diskTypeDefault + default: + return fmt.Errorf("invalid GCE disk type %q", diskType) + } + diskTypeUri := fmt.Sprintf(diskTypeUriTemplate, gce.projectID, zone, diskType) + diskToCreate := &compute.Disk{ Name: name, SizeGb: sizeGb, Description: tagsStr, + Type: diskTypeUri, } createOp, err := gce.service.Disks.Insert(gce.projectID, zone, diskToCreate).Do() @@ -2335,6 +2487,15 @@ func (gce *GCECloud) AttachDisk(diskName, instanceID string, readOnly bool) erro func (gce *GCECloud) DetachDisk(devicePath, instanceID string) error { inst, err := gce.getInstanceByName(instanceID) if err != nil { + if err == cloudprovider.InstanceNotFound { + // If instance no longer exists, safe to assume volume is not attached. + glog.Warningf( + "Instance %q does not exist. DetachDisk will assume PD %q is not attached to it.", + instanceID, + devicePath) + return nil + } + return fmt.Errorf("error getting instance %q", instanceID) } @@ -2349,6 +2510,15 @@ func (gce *GCECloud) DetachDisk(devicePath, instanceID string) error { func (gce *GCECloud) DiskIsAttached(diskName, instanceID string) (bool, error) { instance, err := gce.getInstanceByName(instanceID) if err != nil { + if err == cloudprovider.InstanceNotFound { + // If instance no longer exists, safe to assume volume is not attached. + glog.Warningf( + "Instance %q does not exist. DiskIsAttached will assume PD %q is not attached to it.", + instanceID, + diskName) + return false, nil + } + return false, err } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_ref_manager.go b/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_ref_manager.go new file mode 100644 index 0000000000..52a8667f20 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_ref_manager.go @@ -0,0 +1,144 @@ +/* +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 controller + +import ( + "fmt" + "strings" + + "github.com/golang/glog" + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/errors" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/labels" +) + +type PodControllerRefManager struct { + podControl PodControlInterface + controllerObject api.ObjectMeta + controllerSelector labels.Selector + controllerKind unversioned.GroupVersionKind +} + +// NewPodControllerRefManager returns a PodControllerRefManager that exposes +// methods to manage the controllerRef of pods. +func NewPodControllerRefManager( + podControl PodControlInterface, + controllerObject api.ObjectMeta, + controllerSelector labels.Selector, + controllerKind unversioned.GroupVersionKind, +) *PodControllerRefManager { + return &PodControllerRefManager{podControl, controllerObject, controllerSelector, controllerKind} +} + +// Classify first filters out inactive pods, then it classify the remaining pods +// into three categories: 1. matchesAndControlled are the pods whose labels +// match the selector of the RC, and have a controllerRef pointing to the +// controller 2. matchesNeedsController are the pods whose labels match the RC, +// but don't have a controllerRef. (Pods with matching labels but with a +// controllerRef pointing to other object are ignored) 3. controlledDoesNotMatch +// are the pods that have a controllerRef pointing to the controller, but their +// labels no longer match the selector. +func (m *PodControllerRefManager) Classify(pods []*api.Pod) ( + matchesAndControlled []*api.Pod, + matchesNeedsController []*api.Pod, + controlledDoesNotMatch []*api.Pod) { + for i := range pods { + pod := pods[i] + if !IsPodActive(pod) { + glog.V(4).Infof("Ignoring inactive pod %v/%v in state %v, deletion time %v", + pod.Namespace, pod.Name, pod.Status.Phase, pod.DeletionTimestamp) + continue + } + controllerRef := getControllerOf(pod.ObjectMeta) + if controllerRef != nil { + if controllerRef.UID == m.controllerObject.UID { + // already controlled + if m.controllerSelector.Matches(labels.Set(pod.Labels)) { + matchesAndControlled = append(matchesAndControlled, pod) + } else { + controlledDoesNotMatch = append(controlledDoesNotMatch, pod) + } + } else { + // ignoring the pod controlled by other controller + glog.V(4).Infof("Ignoring pod %v/%v, it's owned by [%s/%s, name: %s, uid: %s]", + pod.Namespace, pod.Name, controllerRef.APIVersion, controllerRef.Kind, controllerRef.Name, controllerRef.UID) + continue + } + } else { + if !m.controllerSelector.Matches(labels.Set(pod.Labels)) { + continue + } + matchesNeedsController = append(matchesNeedsController, pod) + } + } + return matchesAndControlled, matchesNeedsController, controlledDoesNotMatch +} + +// getControllerOf returns the controllerRef if controllee has a controller, +// otherwise returns nil. +func getControllerOf(controllee api.ObjectMeta) *api.OwnerReference { + for _, owner := range controllee.OwnerReferences { + // controlled by other controller + if owner.Controller != nil && *owner.Controller == true { + return &owner + } + } + return nil +} + +// AdoptPod sends a patch to take control of the pod. It returns the error if +// the patching fails. +func (m *PodControllerRefManager) AdoptPod(pod *api.Pod) error { + // we should not adopt any pods if the controller is about to be deleted + if m.controllerObject.DeletionTimestamp != nil { + return fmt.Errorf("cancel the adopt attempt for pod %s because the controlller is being deleted", + strings.Join([]string{pod.Namespace, pod.Name, string(pod.UID)}, "_")) + } + addControllerPatch := fmt.Sprintf( + `{"metadata":{"ownerReferences":[{"apiVersion":"%s","kind":"%s","name":"%s","uid":"%s","controller":true}],"uid":"%s"}}`, + m.controllerKind.GroupVersion(), m.controllerKind.Kind, + m.controllerObject.Name, m.controllerObject.UID, pod.UID) + return m.podControl.PatchPod(pod.Namespace, pod.Name, []byte(addControllerPatch)) +} + +// ReleasePod sends a patch to free the pod from the control of the controller. +// It returns the error if the patching fails. 404 and 422 errors are ignored. +func (m *PodControllerRefManager) ReleasePod(pod *api.Pod) error { + glog.V(2).Infof("patching pod %s_%s to remove its controllerRef to %s/%s:%s", + pod.Namespace, pod.Name, m.controllerKind.GroupVersion(), m.controllerKind.Kind, m.controllerObject.Name) + deleteOwnerRefPatch := fmt.Sprintf(`{"metadata":{"ownerReferences":[{"$patch":"delete","uid":"%s"}],"uid":"%s"}}`, m.controllerObject.UID, pod.UID) + err := m.podControl.PatchPod(pod.Namespace, pod.Name, []byte(deleteOwnerRefPatch)) + if err != nil { + if errors.IsNotFound(err) { + // If the pod no longer exists, ignore it. + return nil + } + if errors.IsInvalid(err) { + // Invalid error will be returned in two cases: 1. the pod + // has no owner reference, 2. the uid of the pod doesn't + // match, which means the pod is deleted and then recreated. + // In both cases, the error can be ignored. + + // TODO: If the pod has owner references, but none of them + // has the owner.UID, server will silently ignore the patch. + // Investigate why. + return nil + } + } + return err +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_utils.go b/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_utils.go index c4f5c2894f..0baa16e71e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_utils.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/controller/controller_utils.go @@ -34,7 +34,7 @@ import ( "k8s.io/kubernetes/pkg/controller/framework" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/runtime" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" "k8s.io/kubernetes/pkg/util/integer" "k8s.io/kubernetes/pkg/util/sets" ) @@ -167,12 +167,12 @@ func (r *ControllerExpectations) SatisfiedExpectations(controllerKey string) boo // TODO: Make this possible to disable in tests. // TODO: Support injection of clock. func (exp *ControlleeExpectations) isExpired() bool { - return util.RealClock{}.Since(exp.timestamp) > ExpectationsTimeout + return clock.RealClock{}.Since(exp.timestamp) > ExpectationsTimeout } // SetExpectations registers new expectations for the given controller. Forgets existing expectations. func (r *ControllerExpectations) SetExpectations(controllerKey string, add, del int) error { - exp := &ControlleeExpectations{add: int64(add), del: int64(del), key: controllerKey, timestamp: util.RealClock{}.Now()} + exp := &ControlleeExpectations{add: int64(add), del: int64(del), key: controllerKey, timestamp: clock.RealClock{}.Now()} glog.V(4).Infof("Setting expectations %#v", exp) return r.Add(exp) } @@ -190,7 +190,7 @@ func (r *ControllerExpectations) LowerExpectations(controllerKey string, add, de if exp, exists, err := r.GetExpectations(controllerKey); err == nil && exists { exp.Add(int64(-add), int64(-del)) // The expectations might've been modified since the update on the previous line. - glog.V(4).Infof("Lowered expectations %+v", exp) + glog.V(4).Infof("Lowered expectations %#v", exp) } } @@ -199,11 +199,11 @@ func (r *ControllerExpectations) RaiseExpectations(controllerKey string, add, de if exp, exists, err := r.GetExpectations(controllerKey); err == nil && exists { exp.Add(int64(add), int64(del)) // The expectations might've been modified since the update on the previous line. - glog.V(4).Infof("Raised expectations %+v", exp) + glog.V(4).Infof("Raised expectations %#v", exp) } } -// CreationObserved atomically decrements the `add` expecation count of the given controller. +// CreationObserved atomically decrements the `add` expectation count of the given controller. func (r *ControllerExpectations) CreationObserved(controllerKey string) { r.LowerExpectations(controllerKey, 1, 0) } @@ -349,8 +349,12 @@ type PodControlInterface interface { CreatePods(namespace string, template *api.PodTemplateSpec, object runtime.Object) error // CreatePodsOnNode creates a new pod accorting to the spec on the specified node. CreatePodsOnNode(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error + // CreatePodsWithControllerRef creates new pods according to the spec, and sets object as the pod's controller. + CreatePodsWithControllerRef(namespace string, template *api.PodTemplateSpec, object runtime.Object, controllerRef *api.OwnerReference) error // DeletePod deletes the pod identified by podID. DeletePod(namespace string, podID string, object runtime.Object) error + // PatchPod patches the pod. + PatchPod(namespace, name string, data []byte) error } // RealPodControl is the default implementation of PodControlInterface. @@ -404,14 +408,35 @@ func getPodsPrefix(controllerName string) string { } func (r RealPodControl) CreatePods(namespace string, template *api.PodTemplateSpec, object runtime.Object) error { - return r.createPods("", namespace, template, object) + return r.createPods("", namespace, template, object, nil) +} + +func (r RealPodControl) CreatePodsWithControllerRef(namespace string, template *api.PodTemplateSpec, controllerObject runtime.Object, controllerRef *api.OwnerReference) error { + if controllerRef == nil { + return fmt.Errorf("controllerRef is nil") + } + if len(controllerRef.APIVersion) == 0 { + return fmt.Errorf("controllerRef has empty APIVersion") + } + if len(controllerRef.Kind) == 0 { + return fmt.Errorf("controllerRef has empty Kind") + } + if controllerRef.Controller == nil || *controllerRef.Controller != true { + return fmt.Errorf("controllerRef.Controller is not set") + } + return r.createPods("", namespace, template, controllerObject, controllerRef) } func (r RealPodControl) CreatePodsOnNode(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error { - return r.createPods(nodeName, namespace, template, object) + return r.createPods(nodeName, namespace, template, object, nil) +} + +func (r RealPodControl) PatchPod(namespace, name string, data []byte) error { + _, err := r.KubeClient.Core().Pods(namespace).Patch(name, api.StrategicMergePatchType, data) + return err } -func GetPodFromTemplate(template *api.PodTemplateSpec, parentObject runtime.Object) (*api.Pod, error) { +func GetPodFromTemplate(template *api.PodTemplateSpec, parentObject runtime.Object, controllerRef *api.OwnerReference) (*api.Pod, error) { desiredLabels := getPodsLabelSet(template) desiredAnnotations, err := getPodsAnnotationSet(template, parentObject) if err != nil { @@ -430,21 +455,24 @@ func GetPodFromTemplate(template *api.PodTemplateSpec, parentObject runtime.Obje GenerateName: prefix, }, } - if err := api.Scheme.Convert(&template.Spec, &pod.Spec); err != nil { + if controllerRef != nil { + pod.OwnerReferences = append(pod.OwnerReferences, *controllerRef) + } + if err := api.Scheme.Convert(&template.Spec, &pod.Spec, nil); err != nil { return nil, fmt.Errorf("unable to convert pod template: %v", err) } return pod, nil } -func (r RealPodControl) createPods(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error { - pod, err := GetPodFromTemplate(template, object) +func (r RealPodControl) createPods(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object, controllerRef *api.OwnerReference) error { + pod, err := GetPodFromTemplate(template, object, controllerRef) if err != nil { return err } if len(nodeName) != 0 { pod.Spec.NodeName = nodeName } - if labels.Set(pod.Labels).AsSelector().Empty() { + if labels.Set(pod.Labels).AsSelectorPreValidated().Empty() { return fmt.Errorf("unable to create pods, no labels") } if newPod, err := r.KubeClient.Core().Pods(namespace).Create(pod); err != nil { @@ -479,40 +507,63 @@ func (r RealPodControl) DeletePod(namespace string, podID string, object runtime type FakePodControl struct { sync.Mutex - Templates []api.PodTemplateSpec - DeletePodName []string - Err error + Templates []api.PodTemplateSpec + ControllerRefs []api.OwnerReference + DeletePodName []string + Patches [][]byte + Err error } var _ PodControlInterface = &FakePodControl{} +func (f *FakePodControl) PatchPod(namespace, name string, data []byte) error { + f.Lock() + defer f.Unlock() + f.Patches = append(f.Patches, data) + if f.Err != nil { + return f.Err + } + return nil +} + func (f *FakePodControl) CreatePods(namespace string, spec *api.PodTemplateSpec, object runtime.Object) error { f.Lock() defer f.Unlock() + f.Templates = append(f.Templates, *spec) if f.Err != nil { return f.Err } + return nil +} + +func (f *FakePodControl) CreatePodsWithControllerRef(namespace string, spec *api.PodTemplateSpec, object runtime.Object, controllerRef *api.OwnerReference) error { + f.Lock() + defer f.Unlock() f.Templates = append(f.Templates, *spec) + f.ControllerRefs = append(f.ControllerRefs, *controllerRef) + if f.Err != nil { + return f.Err + } return nil } func (f *FakePodControl) CreatePodsOnNode(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error { f.Lock() defer f.Unlock() + f.Templates = append(f.Templates, *template) if f.Err != nil { return f.Err } - f.Templates = append(f.Templates, *template) return nil } func (f *FakePodControl) DeletePod(namespace string, podID string, object runtime.Object) error { f.Lock() defer f.Unlock() + f.DeletePodName = append(f.DeletePodName, podID) if f.Err != nil { return f.Err } - f.DeletePodName = append(f.DeletePodName, podID) return nil } @@ -521,6 +572,8 @@ func (f *FakePodControl) Clear() { defer f.Unlock() f.DeletePodName = []string{} f.Templates = []api.PodTemplateSpec{} + f.ControllerRefs = []api.OwnerReference{} + f.Patches = [][]byte{} } // ByLogging allows custom sorting of pods so the best one can be picked for getting its logs. @@ -630,12 +683,11 @@ func maxContainerRestarts(pod *api.Pod) int { } // FilterActivePods returns pods that have not terminated. -func FilterActivePods(pods []api.Pod) []*api.Pod { +func FilterActivePods(pods []*api.Pod) []*api.Pod { var result []*api.Pod - for i := range pods { - p := pods[i] + for _, p := range pods { if IsPodActive(p) { - result = append(result, &p) + result = append(result, p) } else { glog.V(4).Infof("Ignoring inactive pod %v/%v in state %v, deletion time %v", p.Namespace, p.Name, p.Status.Phase, p.DeletionTimestamp) @@ -644,7 +696,7 @@ func FilterActivePods(pods []api.Pod) []*api.Pod { return result } -func IsPodActive(p api.Pod) bool { +func IsPodActive(p *api.Pod) bool { return api.PodSucceeded != p.Status.Phase && api.PodFailed != p.Status.Phase && p.DeletionTimestamp == nil @@ -666,7 +718,7 @@ func FilterActiveReplicaSets(replicaSets []*extensions.ReplicaSet) []*extensions // PodKey returns a key unique to the given pod within a cluster. // It's used so we consistently use the same key scheme in this module. // It does exactly what cache.MetaNamespaceKeyFunc would have done -// expcept there's not possibility for error since we know the exact type. +// except there's not possibility for error since we know the exact type. func PodKey(pod *api.Pod) string { return fmt.Sprintf("%v/%v", pod.Namespace, pod.Name) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/controller/deployment/util/deployment_util.go b/ingress/vendor/k8s.io/kubernetes/pkg/controller/deployment/util/deployment_util.go index 16eb42b249..d7e43508f3 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/controller/deployment/util/deployment_util.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/controller/deployment/util/deployment_util.go @@ -247,6 +247,14 @@ func MaxUnavailable(deployment extensions.Deployment) int32 { return maxUnavailable } +// MinAvailable returns the minimum vailable pods of a given deployment +func MinAvailable(deployment *extensions.Deployment) int32 { + if !IsRollingUpdate(deployment) { + return int32(0) + } + return deployment.Spec.Replicas - MaxUnavailable(*deployment) +} + // MaxSurge returns the maximum surge pods a rolling deployment can take. func MaxSurge(deployment extensions.Deployment) int32 { if !IsRollingUpdate(&deployment) { @@ -402,17 +410,26 @@ func ListPods(deployment *extensions.Deployment, getPodList podListFunc) (*api.P // (e.g. the addition of a new field will cause the hash code to change) // Note that we assume input podTemplateSpecs contain non-empty labels func equalIgnoreHash(template1, template2 api.PodTemplateSpec) (bool, error) { + // First, compare template.Labels (ignoring hash) + labels1, labels2 := template1.Labels, template2.Labels // The podTemplateSpec must have a non-empty label so that label selectors can find them. // This is checked by validation (of resources contain a podTemplateSpec). - if len(template1.Labels) == 0 || len(template2.Labels) == 0 { + if len(labels1) == 0 || len(labels2) == 0 { return false, fmt.Errorf("Unexpected empty labels found in given template") } - hash1 := template1.Labels[extensions.DefaultDeploymentUniqueLabelKey] - hash2 := template2.Labels[extensions.DefaultDeploymentUniqueLabelKey] - // compare equality ignoring pod-template-hash - template1.Labels[extensions.DefaultDeploymentUniqueLabelKey] = hash2 + if len(labels1) > len(labels2) { + labels1, labels2 = labels2, labels1 + } + // We make sure len(labels2) >= len(labels1) + for k, v := range labels2 { + if labels1[k] != v && k != extensions.DefaultDeploymentUniqueLabelKey { + return false, nil + } + } + + // Then, compare the templates without comparing their labels + template1.Labels, template2.Labels = nil, nil result := api.Semantic.DeepEqual(template1, template2) - template1.Labels[extensions.DefaultDeploymentUniqueLabelKey] = hash1 return result, nil } @@ -585,7 +602,7 @@ func GetAvailablePodsForReplicaSets(c clientset.Interface, deployment *extension // CountAvailablePodsForReplicaSets returns the number of available pods corresponding to the given pod list and replica sets. // Note that the input pod list should be the pods targeted by the deployment of input replica sets. func CountAvailablePodsForReplicaSets(podList *api.PodList, rss []*extensions.ReplicaSet, minReadySeconds int32) (int32, error) { - rsPods, err := filterPodsMatchingReplicaSets(rss, podList) + rsPods, err := filterPodsMatchingReplicaSets(rss, podList, minReadySeconds) if err != nil { return 0, err } @@ -593,18 +610,19 @@ func CountAvailablePodsForReplicaSets(podList *api.PodList, rss []*extensions.Re } // GetAvailablePodsForDeployment returns the number of available pods (listed from clientset) corresponding to the given deployment. -func GetAvailablePodsForDeployment(c clientset.Interface, deployment *extensions.Deployment, minReadySeconds int32) (int32, error) { +func GetAvailablePodsForDeployment(c clientset.Interface, deployment *extensions.Deployment) (int32, error) { podList, err := listPods(deployment, c) if err != nil { return 0, err } - return countAvailablePods(podList.Items, minReadySeconds), nil + return countAvailablePods(podList.Items, deployment.Spec.MinReadySeconds), nil } func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 { availablePodCount := int32(0) for _, pod := range pods { // TODO: Make the time.Now() as argument to allow unit test this. + // FIXME: avoid using time.Now if IsPodAvailable(&pod, minReadySeconds, time.Now()) { glog.V(4).Infof("Pod %s/%s is available.", pod.Namespace, pod.Name) availablePodCount++ @@ -615,7 +633,7 @@ func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 { // IsPodAvailable return true if the pod is available. func IsPodAvailable(pod *api.Pod, minReadySeconds int32, now time.Time) bool { - if !controller.IsPodActive(*pod) { + if !controller.IsPodActive(pod) { return false } // Check if we've passed minReadySeconds since LastTransitionTime @@ -623,6 +641,7 @@ func IsPodAvailable(pod *api.Pod, minReadySeconds int32, now time.Time) bool { for _, c := range pod.Status.Conditions { // we only care about pod ready conditions if c.Type == api.PodReady && c.Status == api.ConditionTrue { + glog.V(4).Infof("Comparing pod %s/%s ready condition last transition time %s + minReadySeconds %d with now %s.", pod.Namespace, pod.Name, c.LastTransitionTime.String(), minReadySeconds, now.String()) // 2 cases that this ready condition is valid (passed minReadySeconds, i.e. the pod is available): // 1. minReadySeconds == 0, or // 2. LastTransitionTime (is set) + minReadySeconds (>0) < current time @@ -636,8 +655,8 @@ func IsPodAvailable(pod *api.Pod, minReadySeconds int32, now time.Time) bool { } // filterPodsMatchingReplicaSets filters the given pod list and only return the ones targeted by the input replicasets -func filterPodsMatchingReplicaSets(replicaSets []*extensions.ReplicaSet, podList *api.PodList) ([]api.Pod, error) { - rsPods := []api.Pod{} +func filterPodsMatchingReplicaSets(replicaSets []*extensions.ReplicaSet, podList *api.PodList, minReadySeconds int32) ([]api.Pod, error) { + allRSPods := []api.Pod{} for _, rs := range replicaSets { matchingFunc, err := rsutil.MatchingPodsFunc(rs) if err != nil { @@ -646,9 +665,16 @@ func filterPodsMatchingReplicaSets(replicaSets []*extensions.ReplicaSet, podList if matchingFunc == nil { continue } - rsPods = append(rsPods, podutil.Filter(podList, matchingFunc)...) + rsPods := podutil.Filter(podList, matchingFunc) + avaPodsCount := countAvailablePods(rsPods, minReadySeconds) + if avaPodsCount > rs.Spec.Replicas { + msg := fmt.Sprintf("Found %s/%s with %d available pods, more than its spec replicas %d", rs.Namespace, rs.Name, avaPodsCount, rs.Spec.Replicas) + glog.Errorf("ERROR: %s", msg) + return nil, fmt.Errorf(msg) + } + allRSPods = append(allRSPods, podutil.Filter(podList, matchingFunc)...) } - return rsPods, nil + return allRSPods, nil } // Revision returns the revision number of the input replica set diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/conversion/cloner.go b/ingress/vendor/k8s.io/kubernetes/pkg/conversion/cloner.go index e4e74f6362..c5dec1f31e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/conversion/cloner.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/conversion/cloner.go @@ -25,14 +25,14 @@ import ( type Cloner struct { // Map from the type to a function which can do the deep copy. deepCopyFuncs map[reflect.Type]reflect.Value - generatedDeepCopyFuncs map[reflect.Type]reflect.Value + generatedDeepCopyFuncs map[reflect.Type]func(in interface{}, out interface{}, c *Cloner) error } // NewCloner creates a new Cloner object. func NewCloner() *Cloner { c := &Cloner{ deepCopyFuncs: map[reflect.Type]reflect.Value{}, - generatedDeepCopyFuncs: map[reflect.Type]reflect.Value{}, + generatedDeepCopyFuncs: map[reflect.Type]func(in interface{}, out interface{}, c *Cloner) error{}, } if err := c.RegisterDeepCopyFunc(byteSliceDeepCopy); err != nil { // If one of the deep-copy functions is malformed, detect it immediately. @@ -42,10 +42,10 @@ func NewCloner() *Cloner { } // Prevent recursing into every byte... -func byteSliceDeepCopy(in []byte, out *[]byte, c *Cloner) error { - if in != nil { - *out = make([]byte, len(in)) - copy(*out, in) +func byteSliceDeepCopy(in *[]byte, out *[]byte, c *Cloner) error { + if *in != nil { + *out = make([]byte, len(*in)) + copy(*out, *in) } else { *out = nil } @@ -63,10 +63,10 @@ func verifyDeepCopyFunctionSignature(ft reflect.Type) error { if ft.NumOut() != 1 { return fmt.Errorf("expected one 'out' param, got %v", ft) } - if ft.In(1).Kind() != reflect.Ptr { - return fmt.Errorf("expected pointer arg for 'in' param 1, got: %v", ft) + if ft.In(0).Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'in' param 0, got: %v", ft) } - if ft.In(1).Elem() != ft.In(0) { + if ft.In(1) != ft.In(0) { return fmt.Errorf("expected 'in' param 0 the same as param 1, got: %v", ft) } var forClonerType Cloner @@ -103,15 +103,17 @@ func (c *Cloner) RegisterDeepCopyFunc(deepCopyFunc interface{}) error { return nil } +// GeneratedDeepCopyFunc bundles an untyped generated deep-copy function of a type +// with a reflection type object used as a key to lookup the deep-copy function. +type GeneratedDeepCopyFunc struct { + Fn func(in interface{}, out interface{}, c *Cloner) error + InType reflect.Type +} + // Similar to RegisterDeepCopyFunc, but registers deep copy function that were // automatically generated. -func (c *Cloner) RegisterGeneratedDeepCopyFunc(deepCopyFunc interface{}) error { - fv := reflect.ValueOf(deepCopyFunc) - ft := fv.Type() - if err := verifyDeepCopyFunctionSignature(ft); err != nil { - return err - } - c.generatedDeepCopyFuncs[ft.In(0)] = fv +func (c *Cloner) RegisterGeneratedDeepCopyFunc(fn GeneratedDeepCopyFunc) error { + c.generatedDeepCopyFuncs[fn.InType] = fn.Fn return nil } @@ -135,25 +137,35 @@ func (c *Cloner) DeepCopy(in interface{}) (interface{}, error) { func (c *Cloner) deepCopy(src reflect.Value) (reflect.Value, error) { inType := src.Type() + switch src.Kind() { + case reflect.Interface, reflect.Ptr, reflect.Map, reflect.Slice: + if src.IsNil() { + return src, nil + } + } + if fv, ok := c.deepCopyFuncs[inType]; ok { return c.customDeepCopy(src, fv) } if fv, ok := c.generatedDeepCopyFuncs[inType]; ok { - return c.customDeepCopy(src, fv) + var outValue reflect.Value + outValue = reflect.New(inType.Elem()) + err := fv(src.Interface(), outValue.Interface(), c) + return outValue, err } return c.defaultDeepCopy(src) } func (c *Cloner) customDeepCopy(src, fv reflect.Value) (reflect.Value, error) { - outValue := reflect.New(src.Type()) + outValue := reflect.New(src.Type().Elem()) args := []reflect.Value{src, outValue, reflect.ValueOf(c)} result := fv.Call(args)[0].Interface() // This convolution is necessary because nil interfaces won't convert // to error. if result == nil { - return outValue.Elem(), nil + return outValue, nil } - return outValue.Elem(), result.(error) + return outValue, result.(error) } func (c *Cloner) defaultDeepCopy(src reflect.Value) (reflect.Value, error) { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/conversion/converter.go b/ingress/vendor/k8s.io/kubernetes/pkg/conversion/converter.go index 7a18d6360f..8941b18aef 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/conversion/converter.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/credentialprovider/provider.go b/ingress/vendor/k8s.io/kubernetes/pkg/credentialprovider/provider.go index 52f4045b81..cb93bd7fb2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/credentialprovider/provider.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/credentialprovider/provider.go @@ -29,7 +29,11 @@ import ( // DockerConfigProvider is the interface that registered extensions implement // to materialize 'dockercfg' credentials. type DockerConfigProvider interface { + // Enabled returns true if the config provider is enabled. + // Implementations can be blocking - e.g. metadata server unavailable. Enabled() bool + // Provide returns docker configuration. + // Implementations can be blocking - e.g. metadata server unavailable. Provide() DockerConfig // LazyProvide() gets called after URL matches have been performed, so the // location used as the key in DockerConfig would be redundant. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/fieldpath/fieldpath.go b/ingress/vendor/k8s.io/kubernetes/pkg/fieldpath/fieldpath.go index 4de70460bc..08460c00ee 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/fieldpath/fieldpath.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/fieldpath/fieldpath.go @@ -75,6 +75,29 @@ func ExtractResourceValueByContainerName(fs *api.ResourceFieldSelector, pod *api return ExtractContainerResourceValue(fs, container) } +// ExtractResourceValueByContainerNameAndNodeAllocatable extracts the value of a resource +// by providing container name and node allocatable +func ExtractResourceValueByContainerNameAndNodeAllocatable(fs *api.ResourceFieldSelector, pod *api.Pod, containerName string, nodeAllocatable api.ResourceList) (string, error) { + realContainer, err := findContainerInPod(pod, containerName) + if err != nil { + return "", err + } + + containerCopy, err := api.Scheme.DeepCopy(realContainer) + if err != nil { + return "", fmt.Errorf("failed to perform a deep copy of container object: %v", err) + } + + container, ok := containerCopy.(*api.Container) + if !ok { + return "", fmt.Errorf("unexpected type returned from deep copy of container object") + } + + MergeContainerResourceLimits(container, nodeAllocatable) + + return ExtractContainerResourceValue(fs, container) +} + // ExtractContainerResourceValue extracts the value of a resource // in an already known container func ExtractContainerResourceValue(fs *api.ResourceFieldSelector, container *api.Container) (string, error) { @@ -122,3 +145,19 @@ func convertResourceMemoryToString(memory *resource.Quantity, divisor resource.Q m := int64(math.Ceil(float64(memory.Value()) / float64(divisor.Value()))) return strconv.FormatInt(m, 10), nil } + +// MergeContainerResourceLimits checks if a limit is applied for +// the container, and if not, it sets the limit to the passed resource list. +func MergeContainerResourceLimits(container *api.Container, + allocatable api.ResourceList) { + if container.Resources.Limits == nil { + container.Resources.Limits = make(api.ResourceList) + } + for _, resource := range []api.ResourceName{api.ResourceCPU, api.ResourceMemory} { + if quantity, exists := container.Resources.Limits[resource]; !exists || quantity.IsZero() { + if cap, exists := allocatable[resource]; exists { + container.Resources.Limits[resource] = *cap.Copy() + } + } + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/fields/requirements.go b/ingress/vendor/k8s.io/kubernetes/pkg/fields/requirements.go new file mode 100644 index 0000000000..33c6e4e1a8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/fields/selector.go b/ingress/vendor/k8s.io/kubernetes/pkg/fields/selector.go index eef44d3563..75161daf1d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/fields/selector.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/fields/selector.go @@ -20,6 +20,8 @@ import ( "fmt" "sort" "strings" + + "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/healthz/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/healthz/doc.go index a70a0eaafc..28980e5d96 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/healthz/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/healthz/doc.go @@ -16,5 +16,6 @@ limitations under the License. // Package healthz implements basic http server health checking. // Usage: -// import _ "healthz" registers a handler on the path '/healthz', that serves 200s +// import "k8s.io/kubernetes/pkg/healthz" +// healthz.DefaultHealthz() package healthz diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/clientcache.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/clientcache.go index 039f5048cf..81476cabaf 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/clientcache.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/clientcache.go @@ -76,19 +76,19 @@ func (c *ClientCache) ClientConfigForVersion(version *unversioned.GroupVersion) preferredGV = &versionCopy } + client.SetKubernetesDefaults(&config) negotiatedVersion, err := client.NegotiateVersion(c.defaultClient, &config, preferredGV, registered.EnabledVersions()) if err != nil { return nil, err } config.GroupVersion = negotiatedVersion - client.SetKubernetesDefaults(&config) if version != nil { c.configs[*version] = &config } // `version` does not necessarily equal `config.Version`. However, we know that we call this method again with - // `config.Version`, we should get the the config we've just built. + // `config.Version`, we should get the config we've just built. configCopy := config c.configs[*config.GroupVersion] = &configCopy diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go index 2c22149519..13db3b4572 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go @@ -53,6 +53,8 @@ import ( "k8s.io/kubernetes/pkg/apis/policy" "k8s.io/kubernetes/pkg/apis/rbac" "k8s.io/kubernetes/pkg/client/restclient" + "k8s.io/kubernetes/pkg/client/typed/discovery" + "k8s.io/kubernetes/pkg/client/typed/dynamic" client "k8s.io/kubernetes/pkg/client/unversioned" clientset "k8s.io/kubernetes/pkg/client/unversioned/adapters/internalclientset" "k8s.io/kubernetes/pkg/client/unversioned/clientcmd" @@ -83,6 +85,9 @@ type Factory struct { // Returns interfaces for dealing with arbitrary runtime.Objects. If thirdPartyDiscovery is true, performs API calls // to discovery dynamic API objects registered by third parties. Object func(thirdPartyDiscovery bool) (meta.RESTMapper, runtime.ObjectTyper) + // Returns interfaces for dealing with arbitrary + // runtime.Unstructured. This performs API calls to discover types. + UnstructuredObject func() (meta.RESTMapper, runtime.ObjectTyper, error) // Returns interfaces for decoding objects - if toInternal is set, decoded objects will be converted // into their internal form (if possible). Eventually the internal form will be removed as an option, // and only versioned objects will be returned. @@ -96,10 +101,12 @@ type Factory struct { // Returns a RESTClient for working with the specified RESTMapping or an error. This is intended // for working with arbitrary resources and is not guaranteed to point to a Kubernetes APIServer. ClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) + // Returns a RESTClient for working with Unstructured objects. + UnstructuredClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) // Returns a Describer for displaying the specified RESTMapping type or an error. Describer func(mapping *meta.RESTMapping) (kubectl.Describer, error) // Returns a Printer for formatting objects of the given type or an error. - Printer func(mapping *meta.RESTMapping, noHeaders, withNamespace bool, wide bool, showAll bool, showLabels bool, absoluteTimestamps bool, columnLabels []string) (kubectl.ResourcePrinter, error) + Printer func(mapping *meta.RESTMapping, options kubectl.PrintOptions) (kubectl.ResourcePrinter, error) // Returns a Scaler for changing the size of the specified RESTMapping type or an error Scaler func(mapping *meta.RESTMapping) (kubectl.Scaler, error) // Returns a Reaper for gracefully shutting down resources. @@ -158,13 +165,19 @@ const ( RunPodV1GeneratorName = "run-pod/v1" ServiceV1GeneratorName = "service/v1" ServiceV2GeneratorName = "service/v2" + ServiceNodePortGeneratorV1Name = "service-nodeport/v1" + ServiceClusterIPGeneratorV1Name = "service-clusterip/v1" + ServiceLoadBalancerGeneratorV1Name = "service-loadbalancer/v1" ServiceAccountV1GeneratorName = "serviceaccount/v1" HorizontalPodAutoscalerV1Beta1GeneratorName = "horizontalpodautoscaler/v1beta1" HorizontalPodAutoscalerV1GeneratorName = "horizontalpodautoscaler/v1" DeploymentV1Beta1GeneratorName = "deployment/v1beta1" + DeploymentBasicV1Beta1GeneratorName = "deployment-basic/v1beta1" JobV1Beta1GeneratorName = "job/v1beta1" JobV1GeneratorName = "job/v1" + ScheduledJobV2Alpha1GeneratorName = "scheduledjob/v2alpha1" NamespaceV1GeneratorName = "namespace/v1" + ResourceQuotaV1GeneratorName = "resourcequotas/v1" SecretV1GeneratorName = "secret/v1" SecretForDockerRegistryV1GeneratorName = "secret-for-docker-registry/v1" SecretForTLSV1GeneratorName = "secret-for-tls/v1" @@ -178,12 +191,25 @@ func DefaultGenerators(cmdName string) map[string]kubectl.Generator { ServiceV1GeneratorName: kubectl.ServiceGeneratorV1{}, ServiceV2GeneratorName: kubectl.ServiceGeneratorV2{}, } + generators["service-clusterip"] = map[string]kubectl.Generator{ + ServiceClusterIPGeneratorV1Name: kubectl.ServiceClusterIPGeneratorV1{}, + } + generators["service-nodeport"] = map[string]kubectl.Generator{ + ServiceNodePortGeneratorV1Name: kubectl.ServiceNodePortGeneratorV1{}, + } + generators["service-loadbalancer"] = map[string]kubectl.Generator{ + ServiceLoadBalancerGeneratorV1Name: kubectl.ServiceLoadBalancerGeneratorV1{}, + } + generators["deployment"] = map[string]kubectl.Generator{ + DeploymentBasicV1Beta1GeneratorName: kubectl.DeploymentBasicGeneratorV1{}, + } generators["run"] = map[string]kubectl.Generator{ - RunV1GeneratorName: kubectl.BasicReplicationController{}, - RunPodV1GeneratorName: kubectl.BasicPod{}, - DeploymentV1Beta1GeneratorName: kubectl.DeploymentV1Beta1{}, - JobV1Beta1GeneratorName: kubectl.JobV1Beta1{}, - JobV1GeneratorName: kubectl.JobV1{}, + RunV1GeneratorName: kubectl.BasicReplicationController{}, + RunPodV1GeneratorName: kubectl.BasicPod{}, + DeploymentV1Beta1GeneratorName: kubectl.DeploymentV1Beta1{}, + JobV1Beta1GeneratorName: kubectl.JobV1Beta1{}, + JobV1GeneratorName: kubectl.JobV1{}, + ScheduledJobV2Alpha1GeneratorName: kubectl.ScheduledJobV2Alpha1{}, } generators["autoscale"] = map[string]kubectl.Generator{ HorizontalPodAutoscalerV1Beta1GeneratorName: kubectl.HorizontalPodAutoscalerV1Beta1{}, @@ -192,6 +218,11 @@ func DefaultGenerators(cmdName string) map[string]kubectl.Generator { generators["namespace"] = map[string]kubectl.Generator{ NamespaceV1GeneratorName: kubectl.NamespaceGeneratorV1{}, } + + generators["quota"] = map[string]kubectl.Generator{ + ResourceQuotaV1GeneratorName: kubectl.ResourceQuotaGeneratorV1{}, + } + generators["secret"] = map[string]kubectl.Generator{ SecretV1GeneratorName: kubectl.SecretGeneratorV1{}, } @@ -310,29 +341,66 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory { multiMapper = append(meta.MultiRESTMapper{thirdPartyMapper}, multiMapper...) } priorityMapper.Delegate = multiMapper - // Re-assign to the RESTMapper here because priorityMapper is actually a copy, so if we - // don't re-assign, the above assignement won't actually update mapper.RESTMapper + // Reassign to the RESTMapper here because priorityMapper is actually a copy, so if we + // don't reassign, the above assignement won't actually update mapper.RESTMapper mapper.RESTMapper = priorityMapper } } outputRESTMapper := kubectl.OutputVersionMapper{RESTMapper: mapper, OutputVersions: []unversioned.GroupVersion{cmdApiVersion}} priorityRESTMapper := meta.PriorityRESTMapper{ Delegate: outputRESTMapper, - ResourcePriority: []unversioned.GroupVersionResource{ - {Group: api.GroupName, Version: meta.AnyVersion, Resource: meta.AnyResource}, - {Group: autoscaling.GroupName, Version: meta.AnyVersion, Resource: meta.AnyResource}, - {Group: extensions.GroupName, Version: meta.AnyVersion, Resource: meta.AnyResource}, - {Group: federation.GroupName, Version: meta.AnyVersion, Resource: meta.AnyResource}, - }, - KindPriority: []unversioned.GroupVersionKind{ - {Group: api.GroupName, Version: meta.AnyVersion, Kind: meta.AnyKind}, - {Group: autoscaling.GroupName, Version: meta.AnyVersion, Kind: meta.AnyKind}, - {Group: extensions.GroupName, Version: meta.AnyVersion, Kind: meta.AnyKind}, - {Group: federation.GroupName, Version: meta.AnyVersion, Kind: meta.AnyKind}, - }, + } + // TODO: this should come from registered versions + groups := []string{api.GroupName, autoscaling.GroupName, extensions.GroupName, federation.GroupName, batch.GroupName} + // set a preferred version + for _, group := range groups { + gvs := registered.EnabledVersionsForGroup(group) + if len(gvs) == 0 { + continue + } + priorityRESTMapper.ResourcePriority = append(priorityRESTMapper.ResourcePriority, unversioned.GroupVersionResource{Group: group, Version: gvs[0].Version, Resource: meta.AnyResource}) + priorityRESTMapper.KindPriority = append(priorityRESTMapper.KindPriority, unversioned.GroupVersionKind{Group: group, Version: gvs[0].Version, Kind: meta.AnyKind}) + } + for _, group := range groups { + priorityRESTMapper.ResourcePriority = append(priorityRESTMapper.ResourcePriority, unversioned.GroupVersionResource{Group: group, Version: meta.AnyVersion, Resource: meta.AnyResource}) + priorityRESTMapper.KindPriority = append(priorityRESTMapper.KindPriority, unversioned.GroupVersionKind{Group: group, Version: meta.AnyVersion, Kind: meta.AnyKind}) } return priorityRESTMapper, api.Scheme }, + UnstructuredObject: func() (meta.RESTMapper, runtime.ObjectTyper, error) { + cfg, err := clients.ClientConfigForVersion(nil) + if err != nil { + return nil, nil, err + } + + dc, err := discovery.NewDiscoveryClientForConfig(cfg) + if err != nil { + return nil, nil, err + } + + groupResources, err := discovery.GetAPIGroupResources(dc) + if err != nil { + return nil, nil, err + } + + // Register unknown APIs as third party for now to make + // validation happy. TODO perhaps make a dynamic schema + // validator to avoid this. + for _, group := range groupResources { + for _, version := range group.Group.Versions { + gv := unversioned.GroupVersion{Group: group.Group.Name, Version: version.Version} + if !registered.IsRegisteredVersion(gv) { + registered.AddThirdPartyAPIGroupVersions(gv) + } + } + } + + mapper := discovery.NewRESTMapper(groupResources, meta.InterfacesForUnstructured) + + typer := discovery.NewUnstructuredObjectTyper(groupResources) + + return kubectl.ShortcutExpander{RESTMapper: mapper}, typer, nil + }, Client: func() (*client.Client, error) { return clients.ClientForVersion(nil) }, @@ -340,49 +408,46 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory { return clients.ClientConfigForVersion(nil) }, ClientForMapping: func(mapping *meta.RESTMapping) (resource.RESTClient, error) { - gvk := mapping.GroupVersionKind - mappingVersion := mapping.GroupVersionKind.GroupVersion() - c, err := clients.ClientForVersion(&mappingVersion) + cfg, err := clientConfig.ClientConfig() if err != nil { return nil, err } + if err := client.SetKubernetesDefaults(cfg); err != nil { + return nil, err + } + gvk := mapping.GroupVersionKind switch gvk.Group { - case api.GroupName: - return c.RESTClient, nil - case autoscaling.GroupName: - return c.AutoscalingClient.RESTClient, nil - case batch.GroupName: - return c.BatchClient.RESTClient, nil - case policy.GroupName: - return c.PolicyClient.RESTClient, nil - case apps.GroupName: - return c.AppsClient.RESTClient, nil - case extensions.GroupName: - return c.ExtensionsClient.RESTClient, nil - case api.SchemeGroupVersion.Group: - return c.RESTClient, nil - case extensions.SchemeGroupVersion.Group: - return c.ExtensionsClient.RESTClient, nil case federation.GroupName: + mappingVersion := mapping.GroupVersionKind.GroupVersion() return clients.FederationClientForVersion(&mappingVersion) - case rbac.GroupName: - return c.RbacClient.RESTClient, nil - case certificates.GroupName: - return c.CertificatesClient.RESTClient, nil + case api.GroupName: + cfg.APIPath = "/api" default: - if !registered.IsThirdPartyAPIGroupVersion(gvk.GroupVersion()) { - return nil, fmt.Errorf("unknown api group/version: %s", gvk.String()) - } - cfg, err := clientConfig.ClientConfig() - if err != nil { - return nil, err - } - gv := gvk.GroupVersion() - cfg.GroupVersion = &gv cfg.APIPath = "/apis" + } + gv := gvk.GroupVersion() + cfg.GroupVersion = &gv + if registered.IsThirdPartyAPIGroupVersion(gvk.GroupVersion()) { cfg.NegotiatedSerializer = thirdpartyresourcedata.NewNegotiatedSerializer(api.Codecs, gvk.Kind, gv, gv) - return restclient.RESTClientFor(cfg) } + return restclient.RESTClientFor(cfg) + }, + UnstructuredClientForMapping: func(mapping *meta.RESTMapping) (resource.RESTClient, error) { + cfg, err := clientConfig.ClientConfig() + if err != nil { + return nil, err + } + if err := restclient.SetKubernetesDefaults(cfg); err != nil { + return nil, err + } + cfg.APIPath = "/apis" + if mapping.GroupVersionKind.Group == api.GroupName { + cfg.APIPath = "/api" + } + gv := mapping.GroupVersionKind.GroupVersion() + cfg.ContentConfig = dynamic.ContentConfig() + cfg.GroupVersion = &gv + return restclient.RESTClientFor(cfg) }, Describer: func(mapping *meta.RESTMapping) (kubectl.Describer, error) { mappingVersion := mapping.GroupVersionKind.GroupVersion() @@ -417,8 +482,8 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory { JSONEncoder: func() runtime.Encoder { return api.Codecs.LegacyCodec(registered.EnabledVersions()...) }, - Printer: func(mapping *meta.RESTMapping, noHeaders, withNamespace bool, wide bool, showAll bool, showLabels bool, absoluteTimestamps bool, columnLabels []string) (kubectl.ResourcePrinter, error) { - return kubectl.NewHumanReadablePrinter(noHeaders, withNamespace, wide, showAll, showLabels, absoluteTimestamps, columnLabels), nil + Printer: func(mapping *meta.RESTMapping, options kubectl.PrintOptions) (kubectl.ResourcePrinter, error) { + return kubectl.NewHumanReadablePrinter(options), nil }, MapBasedSelectorForObject: func(object runtime.Object) (string, error) { // TODO: replace with a swagger schema based approach (identify pod selector via schema introspection) @@ -1017,7 +1082,7 @@ func getSchemaAndValidate(c schemaClient, data []byte, prefix, groupVersion, cac } err = schema.ValidateBytes(data) if _, ok := err.(validation.TypeNotFoundError); ok && !firstSeen { - // As a temporay hack, kubectl would re-get the schema if validation + // As a temporary hack, kubectl would re-get the schema if validation // fails for type not found reason. // TODO: runtime-config settings needs to make into the file's name schemaData, err = downloadSchemaAndStore(c, cacheDir, fullDir, cacheFile, prefix, groupVersion) @@ -1059,32 +1124,28 @@ func (c *clientSwaggerSchema) ValidateBytes(data []byte) error { if ok := registered.IsEnabledVersion(gvk.GroupVersion()); !ok { return fmt.Errorf("API version %q isn't supported, only supports API versions %q", gvk.GroupVersion().String(), registered.EnabledVersions()) } - if gvk.Group == autoscaling.GroupName { + switch gvk.Group { + case autoscaling.GroupName: if c.c.AutoscalingClient == nil { return errors.New("unable to validate: no autoscaling client") } return getSchemaAndValidate(c.c.AutoscalingClient.RESTClient, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c) - } - if gvk.Group == policy.GroupName { + case policy.GroupName: if c.c.PolicyClient == nil { return errors.New("unable to validate: no policy client") } return getSchemaAndValidate(c.c.PolicyClient.RESTClient, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c) - } - if gvk.Group == apps.GroupName { + case apps.GroupName: if c.c.AppsClient == nil { - return errors.New("unable to validate: no autoscaling client") + return errors.New("unable to validate: no apps client") } return getSchemaAndValidate(c.c.AppsClient.RESTClient, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c) - } - - if gvk.Group == batch.GroupName { + case batch.GroupName: if c.c.BatchClient == nil { return errors.New("unable to validate: no batch client") } return getSchemaAndValidate(c.c.BatchClient.RESTClient, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c) - } - if gvk.Group == rbac.GroupName { + case rbac.GroupName: if c.c.RbacClient == nil { return errors.New("unable to validate: no rbac client") } @@ -1094,19 +1155,18 @@ func (c *clientSwaggerSchema) ValidateBytes(data []byte) error { // Don't attempt to validate third party objects return nil } - if gvk.Group == extensions.GroupName { + switch gvk.Group { + case extensions.GroupName: if c.c.ExtensionsClient == nil { return errors.New("unable to validate: no experimental client") } return getSchemaAndValidate(c.c.ExtensionsClient.RESTClient, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c) - } - if gvk.Group == federation.GroupName { + case federation.GroupName: if c.fedc == nil { return errors.New("unable to validate: no federation client") } return getSchemaAndValidate(c.fedc, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c) - } - if gvk.Group == certificates.GroupName { + case certificates.GroupName: if c.c.CertificatesClient == nil { return errors.New("unable to validate: no certificates client") } @@ -1117,7 +1177,7 @@ func (c *clientSwaggerSchema) ValidateBytes(data []byte) error { // DefaultClientConfig creates a clientcmd.ClientConfig with the following hierarchy: // 1. Use the kubeconfig builder. The number of merges and overrides here gets a little crazy. Stay with me. -// 1. Merge together the kubeconfig itself. This is done with the following hierarchy rules: +// 1. Merge the kubeconfig itself. This is done with the following hierarchy rules: // 1. CommandLineLocation - this parsed from the command line, so it must be late bound. If you specify this, // then no other kubeconfig files are merged. This file must exist. // 2. If $KUBECONFIG is set, then it is treated as a list of files that should be merged. @@ -1205,14 +1265,16 @@ func (f *Factory) PrinterForMapping(cmd *cobra.Command, mapping *meta.RESTMappin if err != nil { return nil, err } - if version.IsEmpty() { + if version.Empty() && mapping != nil { version = mapping.GroupVersionKind.GroupVersion() } - if version.IsEmpty() { + if version.Empty() { return nil, fmt.Errorf("you must specify an output-version when using this output format") } - printer = kubectl.NewVersionedPrinter(printer, mapping.ObjectConvertor, version, mapping.GroupVersionKind.GroupVersion()) + if mapping != nil { + printer = kubectl.NewVersionedPrinter(printer, mapping.ObjectConvertor, version, mapping.GroupVersionKind.GroupVersion()) + } } else { // Some callers do not have "label-columns" so we can't use the GetFlagStringSlice() helper @@ -1220,7 +1282,15 @@ func (f *Factory) PrinterForMapping(cmd *cobra.Command, mapping *meta.RESTMappin if err != nil { columnLabel = []string{} } - printer, err = f.Printer(mapping, GetFlagBool(cmd, "no-headers"), withNamespace, GetWideFlag(cmd), GetFlagBool(cmd, "show-all"), GetFlagBool(cmd, "show-labels"), isWatch(cmd), columnLabel) + printer, err = f.Printer(mapping, kubectl.PrintOptions{ + NoHeaders: GetFlagBool(cmd, "no-headers"), + WithNamespace: withNamespace, + Wide: GetWideFlag(cmd), + ShowAll: GetFlagBool(cmd, "show-all"), + ShowLabels: GetFlagBool(cmd, "show-labels"), + AbsoluteTimestamps: isWatch(cmd), + ColumnLabels: columnLabel, + }) if err != nil { return nil, err } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/helpers.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/helpers.go index b00b0d13db..dac0610e7a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/helpers.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/helpers.go @@ -19,6 +19,7 @@ package util import ( "bytes" "encoding/json" + "errors" "fmt" "io" "io/ioutil" @@ -27,7 +28,7 @@ import ( "strings" "time" - "k8s.io/kubernetes/pkg/api/errors" + kerrors "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/meta" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/apimachinery/registered" @@ -38,6 +39,8 @@ import ( "k8s.io/kubernetes/pkg/kubectl/resource" "k8s.io/kubernetes/pkg/runtime" utilerrors "k8s.io/kubernetes/pkg/util/errors" + utilexec "k8s.io/kubernetes/pkg/util/exec" + "k8s.io/kubernetes/pkg/util/sets" "k8s.io/kubernetes/pkg/util/strategicpatch" "github.com/evanphx/json-patch" @@ -48,6 +51,7 @@ import ( const ( ApplyAnnotationsFlag = "save-config" + DefaultErrorExitCode = 1 ) type debugError interface { @@ -59,10 +63,10 @@ type debugError interface { // souce is the filename or URL to the template file(*.json or *.yaml), or stdin to use to handle the resource. func AddSourceToErr(verb string, source string, err error) error { if source != "" { - if statusError, ok := err.(errors.APIStatus); ok { + if statusError, ok := err.(kerrors.APIStatus); ok { status := statusError.Status() status.Message = fmt.Sprintf("error when %s %q: %v", verb, source, status.Message) - return &errors.StatusError{ErrStatus: status} + return &kerrors.StatusError{ErrStatus: status} } return fmt.Errorf("error when %s %q: %v", verb, source, err) } @@ -72,9 +76,9 @@ func AddSourceToErr(verb string, source string, err error) error { var fatalErrHandler = fatal // BehaviorOnFatal allows you to override the default behavior when a fatal -// error occurs, which is call os.Exit(1). You can pass 'panic' as a function +// error occurs, which is to call os.Exit(code). You can pass 'panic' as a function // here if you prefer the panic() over os.Exit(1). -func BehaviorOnFatal(f func(string)) { +func BehaviorOnFatal(f func(string, int)) { fatalErrHandler = f } @@ -84,19 +88,21 @@ func DefaultBehaviorOnFatal() { fatalErrHandler = fatal } -// fatal prints the message and then exits. If V(2) or greater, glog.Fatal +// fatal prints the message if set and then exits. If V(2) or greater, glog.Fatal // is invoked for extended information. -func fatal(msg string) { - // add newline if needed - if !strings.HasSuffix(msg, "\n") { - msg += "\n" - } +func fatal(msg string, code int) { + if len(msg) > 0 { + // add newline if needed + if !strings.HasSuffix(msg, "\n") { + msg += "\n" + } - if glog.V(2) { - glog.FatalDepth(2, msg) + if glog.V(2) { + glog.FatalDepth(2, msg) + } + fmt.Fprint(os.Stderr, msg) } - fmt.Fprint(os.Stderr, msg) - os.Exit(1) + os.Exit(code) } // CheckErr prints a user friendly error to STDERR and exits with a non-zero @@ -113,56 +119,65 @@ func checkErrWithPrefix(prefix string, err error) { checkErr(prefix, err, fatalErrHandler) } -func checkErr(pref string, err error, handleErr func(string)) { - if err == nil { +// checkErr formats a given error as a string and calls the passed handleErr +// func with that string and an kubectl exit code. +func checkErr(prefix string, err error, handleErr func(string, int)) { + switch { + case err == nil: return - } - - if errors.IsInvalid(err) { - details := err.(*errors.StatusError).Status().Details - prefix := fmt.Sprintf("%sThe %s %q is invalid.\n", pref, details.Kind, details.Name) - errs := statusCausesToAggrError(details.Causes) - handleErr(MultilineError(prefix, errs)) - } - - if meta.IsNoResourceMatchError(err) { - noMatch := err.(*meta.NoResourceMatchError) - - switch { - case len(noMatch.PartialResource.Group) > 0 && len(noMatch.PartialResource.Version) > 0: - handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q in group %q and version %q", pref, noMatch.PartialResource.Resource, noMatch.PartialResource.Group, noMatch.PartialResource.Version)) - case len(noMatch.PartialResource.Group) > 0: - handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q in group %q", pref, noMatch.PartialResource.Resource, noMatch.PartialResource.Group)) - case len(noMatch.PartialResource.Version) > 0: - handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q in version %q", pref, noMatch.PartialResource.Resource, noMatch.PartialResource.Version)) - default: - handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q", pref, noMatch.PartialResource.Resource)) + case kerrors.IsInvalid(err): + details := err.(*kerrors.StatusError).Status().Details + s := fmt.Sprintf("%sThe %s %q is invalid", prefix, details.Kind, details.Name) + if len(details.Causes) > 0 { + errs := statusCausesToAggrError(details.Causes) + handleErr(MultilineError(s+": ", errs), DefaultErrorExitCode) + } else { + handleErr(s, DefaultErrorExitCode) } - return - } - - // handle multiline errors - if clientcmd.IsConfigurationInvalid(err) { - handleErr(MultilineError(fmt.Sprintf("%sError in configuration: ", pref), err)) - } - if agg, ok := err.(utilerrors.Aggregate); ok && len(agg.Errors()) > 0 { - handleErr(MultipleErrors(pref, agg.Errors())) - } - - msg, ok := StandardErrorMessage(err) - if !ok { - msg = err.Error() - if !strings.HasPrefix(msg, "error: ") { - msg = fmt.Sprintf("error: %s", msg) + case clientcmd.IsConfigurationInvalid(err): + handleErr(MultilineError(fmt.Sprintf("%sError in configuration: ", prefix), err), DefaultErrorExitCode) + default: + switch err := err.(type) { + case *meta.NoResourceMatchError: + switch { + case len(err.PartialResource.Group) > 0 && len(err.PartialResource.Version) > 0: + handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q in group %q and version %q", prefix, err.PartialResource.Resource, err.PartialResource.Group, err.PartialResource.Version), DefaultErrorExitCode) + case len(err.PartialResource.Group) > 0: + handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q in group %q", prefix, err.PartialResource.Resource, err.PartialResource.Group), DefaultErrorExitCode) + case len(err.PartialResource.Version) > 0: + handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q in version %q", prefix, err.PartialResource.Resource, err.PartialResource.Version), DefaultErrorExitCode) + default: + handleErr(fmt.Sprintf("%sthe server doesn't have a resource type %q", prefix, err.PartialResource.Resource), DefaultErrorExitCode) + } + case utilerrors.Aggregate: + handleErr(MultipleErrors(prefix, err.Errors()), DefaultErrorExitCode) + case utilexec.ExitError: + // do not print anything, only terminate with given error + handleErr("", err.ExitStatus()) + default: // for any other error type + msg, ok := StandardErrorMessage(err) + if !ok { + msg = err.Error() + if !strings.HasPrefix(msg, "error: ") { + msg = fmt.Sprintf("error: %s", msg) + } + } + handleErr(msg, DefaultErrorExitCode) } } - handleErr(fmt.Sprintf("%s%s", pref, msg)) } func statusCausesToAggrError(scs []unversioned.StatusCause) utilerrors.Aggregate { - errs := make([]error, len(scs)) - for i, sc := range scs { - errs[i] = fmt.Errorf("%s: %s", sc.Field, sc.Message) + errs := make([]error, 0, len(scs)) + errorMsgs := sets.NewString() + for _, sc := range scs { + // check for duplicate error messages and skip them + msg := fmt.Sprintf("%s: %s", sc.Field, sc.Message) + if errorMsgs.Has(msg) { + continue + } + errorMsgs.Insert(msg) + errs = append(errs, errors.New(msg)) } return utilerrors.NewAggregate(errs) } @@ -177,7 +192,7 @@ func StandardErrorMessage(err error) (string, bool) { if debugErr, ok := err.(debugError); ok { glog.V(4).Infof(debugErr.DebugError()) } - status, isStatus := err.(errors.APIStatus) + status, isStatus := err.(kerrors.APIStatus) switch { case isStatus: switch s := status.Status(); { @@ -186,7 +201,7 @@ func StandardErrorMessage(err error) (string, bool) { default: return fmt.Sprintf("Error from server: %s", err.Error()), true } - case errors.IsUnexpectedObjectError(err): + case kerrors.IsUnexpectedObjectError(err): return fmt.Sprintf("Server returned an unexpected response: %s", err.Error()), true } switch t := err.(type) { @@ -365,7 +380,7 @@ func ReadConfigDataFromReader(reader io.Reader, source string) ([]byte, error) { } if len(data) == 0 { - return nil, fmt.Errorf(`Read from %s but no data found`, source) + return nil, fmt.Errorf("Read from %s but no data found", source) } return data, nil @@ -437,7 +452,7 @@ func UpdateObject(info *resource.Info, codec runtime.Codec, updateFn func(runtim // AddCmdRecordFlag adds --record flag to command func AddRecordFlag(cmd *cobra.Command) { - cmd.Flags().Bool("record", false, "Record current kubectl command in the resource annotation.") + cmd.Flags().Bool("record", false, "Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.") } func GetRecordFlag(cmd *cobra.Command) bool { @@ -491,7 +506,7 @@ func ContainsChangeCause(info *resource.Info) bool { // ShouldRecord checks if we should record current change cause func ShouldRecord(cmd *cobra.Command, info *resource.Info) bool { - return GetRecordFlag(cmd) || ContainsChangeCause(info) + return GetRecordFlag(cmd) || (ContainsChangeCause(info) && !cmd.Flags().Changed("record")) } // GetThirdPartyGroupVersions returns the thirdparty "group/versions"s and @@ -505,7 +520,7 @@ func GetThirdPartyGroupVersions(discovery discovery.DiscoveryInterface) ([]unver groupList, err := discovery.ServerGroups() if err != nil { // On forbidden or not found, just return empty lists. - if errors.IsForbidden(err) || errors.IsNotFound(err) { + if kerrors.IsForbidden(err) || kerrors.IsNotFound(err) { return result, gvks, nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/printing.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/printing.go index e95e4ca687..c27cc29c26 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/printing.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/printing.go @@ -47,7 +47,7 @@ func AddOutputFlagsForMutation(cmd *cobra.Command) { // AddOutputFlags adds output related flags to a command. func AddOutputFlags(cmd *cobra.Command) { - cmd.Flags().StringP("output", "o", "", "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].") + cmd.Flags().StringP("output", "o", "", "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].") } // AddNoHeadersFlags adds no-headers flags to a command. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/custom_column_printer.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/custom_column_printer.go index 3d51f63cb3..379f463766 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/custom_column_printer.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/custom_column_printer.go @@ -105,7 +105,7 @@ func splitOnWhitespace(line string) []string { // NewCustomColumnsPrinterFromTemplate creates a custom columns printer from a template stream. The template is expected // to consist of two lines, whitespace separated. The first line is the header line, the second line is the jsonpath field spec -// For example the template below: +// For example, the template below: // NAME API_VERSION // {metadata.name} {apiVersion} func NewCustomColumnsPrinterFromTemplate(templateReader io.Reader, decoder runtime.Decoder) (*CustomColumnsPrinter, error) { @@ -155,6 +155,10 @@ type CustomColumnsPrinter struct { NoHeaders bool } +func (s *CustomColumnsPrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + func (s *CustomColumnsPrinter) PrintObj(obj runtime.Object, out io.Writer) error { w := tabwriter.NewWriter(out, columnwidth, tabwidth, padding, padding_character, flags) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/deployment.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/deployment.go new file mode 100644 index 0000000000..035366585c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/deployment.go @@ -0,0 +1,107 @@ +/* +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 kubectl + +import ( + "fmt" + "strings" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/apis/extensions" + "k8s.io/kubernetes/pkg/runtime" +) + +// DeploymentGeneratorV1 supports stable generation of a deployment +type DeploymentBasicGeneratorV1 struct { + Name string + Images []string +} + +// Ensure it supports the generator pattern that uses parameters specified during construction +var _ StructuredGenerator = &DeploymentBasicGeneratorV1{} + +func (DeploymentBasicGeneratorV1) ParamNames() []GeneratorParam { + return []GeneratorParam{ + {"name", true}, + {"image", true}, + } +} + +func (s DeploymentBasicGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) { + err := ValidateParams(s.ParamNames(), params) + if err != nil { + return nil, err + } + name, isString := params["name"].(string) + if !isString { + return nil, fmt.Errorf("expected string, saw %v for 'name'", name) + } + imageStrings, isArray := params["image"].([]string) + if !isArray { + return nil, fmt.Errorf("expected []string, found :%v", imageStrings) + } + delegate := &DeploymentBasicGeneratorV1{Name: name, Images: imageStrings} + return delegate.StructuredGenerate() +} + +// StructuredGenerate outputs a deployment object using the configured fields +func (s *DeploymentBasicGeneratorV1) StructuredGenerate() (runtime.Object, error) { + if err := s.validate(); err != nil { + return nil, err + } + + podSpec := api.PodSpec{Containers: []api.Container{}} + for _, imageString := range s.Images { + imageSplit := strings.Split(imageString, "/") + name := imageSplit[len(imageSplit)-1] + podSpec.Containers = append(podSpec.Containers, api.Container{Name: name, Image: imageString}) + } + + // setup default label and selector + labels := map[string]string{} + labels["app"] = s.Name + selector := unversioned.LabelSelector{MatchLabels: labels} + deployment := extensions.Deployment{ + ObjectMeta: api.ObjectMeta{ + Name: s.Name, + Labels: labels, + }, + Spec: extensions.DeploymentSpec{ + Replicas: 1, + Selector: &selector, + Template: api.PodTemplateSpec{ + ObjectMeta: api.ObjectMeta{ + Labels: labels, + }, + Spec: podSpec, + }, + }, + } + return &deployment, nil +} + +// validate validates required fields are set to support structured generation +func (s *DeploymentBasicGeneratorV1) validate() error { + if len(s.Name) == 0 { + return fmt.Errorf("name must be specified") + } + if len(s.Images) == 0 { + return fmt.Errorf("at least one image must be specified") + } + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/describe.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/describe.go index f67e949c8a..f0f3010540 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/describe.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/describe.go @@ -28,7 +28,6 @@ import ( "strings" "time" - "github.com/golang/glog" "k8s.io/kubernetes/federation/apis/federation" fed_clientset "k8s.io/kubernetes/federation/client/clientset_generated/federation_internalclientset" "k8s.io/kubernetes/pkg/api" @@ -38,6 +37,7 @@ import ( "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/apis/autoscaling" "k8s.io/kubernetes/pkg/apis/batch" + "k8s.io/kubernetes/pkg/apis/certificates" "k8s.io/kubernetes/pkg/apis/extensions" clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset" client "k8s.io/kubernetes/pkg/client/unversioned" @@ -48,8 +48,11 @@ import ( "k8s.io/kubernetes/pkg/kubelet/qos" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/types" + utilcertificates "k8s.io/kubernetes/pkg/util/certificates" "k8s.io/kubernetes/pkg/util/intstr" "k8s.io/kubernetes/pkg/util/sets" + + "github.com/golang/glog" ) // Describer generates output for the named resource or an error @@ -101,16 +104,18 @@ func describerMap(c *client.Client) map[unversioned.GroupKind]Describer { api.Kind("Endpoints"): &EndpointsDescriber{c}, api.Kind("ConfigMap"): &ConfigMapDescriber{c}, - extensions.Kind("ReplicaSet"): &ReplicaSetDescriber{c}, - extensions.Kind("HorizontalPodAutoscaler"): &HorizontalPodAutoscalerDescriber{c}, - extensions.Kind("NetworkPolicy"): &NetworkPolicyDescriber{c}, - autoscaling.Kind("HorizontalPodAutoscaler"): &HorizontalPodAutoscalerDescriber{c}, - extensions.Kind("DaemonSet"): &DaemonSetDescriber{c}, - extensions.Kind("Deployment"): &DeploymentDescriber{adapter.FromUnversionedClient(c)}, - extensions.Kind("Job"): &JobDescriber{c}, - batch.Kind("Job"): &JobDescriber{c}, - apps.Kind("PetSet"): &PetSetDescriber{c}, - extensions.Kind("Ingress"): &IngressDescriber{c}, + extensions.Kind("ReplicaSet"): &ReplicaSetDescriber{c}, + extensions.Kind("HorizontalPodAutoscaler"): &HorizontalPodAutoscalerDescriber{c}, + extensions.Kind("NetworkPolicy"): &NetworkPolicyDescriber{c}, + autoscaling.Kind("HorizontalPodAutoscaler"): &HorizontalPodAutoscalerDescriber{c}, + extensions.Kind("DaemonSet"): &DaemonSetDescriber{c}, + extensions.Kind("Deployment"): &DeploymentDescriber{adapter.FromUnversionedClient(c)}, + extensions.Kind("Job"): &JobDescriber{c}, + extensions.Kind("Ingress"): &IngressDescriber{c}, + batch.Kind("Job"): &JobDescriber{c}, + batch.Kind("ScheduledJob"): &ScheduledJobDescriber{adapter.FromUnversionedClient(c)}, + apps.Kind("PetSet"): &PetSetDescriber{c}, + certificates.Kind("CertificateSigningRequest"): &CertificateSigningRequestDescriber{c}, } return m @@ -541,6 +546,7 @@ func describePod(pod *api.Pod, events *api.EventList) (string, error) { } describeVolumes(pod.Spec.Volumes, out, "") fmt.Fprintf(out, "QoS Class:\t%s\n", qos.GetPodQOS(pod)) + printTolerationsInAnnotationMultiline(out, "Tolerations", pod.Annotations) if events != nil { DescribeEvents(events, out) } @@ -598,8 +604,12 @@ func describeVolumes(volumes []api.Volume, out io.Writer, space string) { printPersistentVolumeClaimVolumeSource(volume.VolumeSource.PersistentVolumeClaim, out) case volume.VolumeSource.RBD != nil: printRBDVolumeSource(volume.VolumeSource.RBD, out) + case volume.VolumeSource.Quobyte != nil: + printQuobyteVolumeSource(volume.VolumeSource.Quobyte, out) case volume.VolumeSource.DownwardAPI != nil: printDownwardAPIVolumeSource(volume.VolumeSource.DownwardAPI, out) + case volume.VolumeSource.AzureDisk != nil: + printAzureDiskVolumeSource(volume.VolumeSource.AzureDisk, out) default: fmt.Fprintf(out, " \n") } @@ -659,6 +669,14 @@ func printNFSVolumeSource(nfs *api.NFSVolumeSource, out io.Writer) { nfs.Server, nfs.Path, nfs.ReadOnly) } +func printQuobyteVolumeSource(quobyte *api.QuobyteVolumeSource, out io.Writer) { + fmt.Fprintf(out, " Type:\tQuobyte (a Quobyte mount on the host that shares a pod's lifetime)\n"+ + " Registry:\t%v\n"+ + " Volume:\t%v\n"+ + " ReadOnly:\t%v\n", + quobyte.Registry, quobyte.Volume, quobyte.ReadOnly) +} + func printISCSIVolumeSource(iscsi *api.ISCSIVolumeSource, out io.Writer) { fmt.Fprintf(out, " Type:\tISCSI (an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod)\n"+ " TargetPortal:\t%v\n"+ @@ -710,6 +728,16 @@ func printDownwardAPIVolumeSource(d *api.DownwardAPIVolumeSource, out io.Writer) } } +func printAzureDiskVolumeSource(d *api.AzureDiskVolumeSource, out io.Writer) { + fmt.Fprintf(out, " Type:\tAzureDisk (an Azure Data Disk mount on the host and bind mount to the pod)\n"+ + " DiskName:\t%v\n"+ + " DiskURI:\t%v\n"+ + " FSType:\t%v\n"+ + " CachingMode:\t%v\n"+ + " ReadOnly:\t%v\n", + d.DiskName, d.DataDiskURI, *d.FSType, *d.CachingMode, *d.ReadOnly) +} + type PersistentVolumeDescriber struct { client.Interface } @@ -759,6 +787,8 @@ func (d *PersistentVolumeDescriber) Describe(namespace, name string, describerSe printGlusterfsVolumeSource(pv.Spec.Glusterfs, out) case pv.Spec.RBD != nil: printRBDVolumeSource(pv.Spec.RBD, out) + case pv.Spec.Quobyte != nil: + printQuobyteVolumeSource(pv.Spec.Quobyte, out) } if events != nil { @@ -931,7 +961,11 @@ func describeContainers(label string, containers []api.Container, containerStatu if err != nil { valueFrom = "" } - fmt.Fprintf(out, " %s:\t%s (%s)\n", e.Name, valueFrom, e.ValueFrom.ResourceFieldRef.Resource) + resource := e.ValueFrom.ResourceFieldRef.Resource + if valueFrom == "0" && (resource == "limits.cpu" || resource == "limits.memory") { + valueFrom = "node allocatable" + } + fmt.Fprintf(out, " %s:\t%s (%s)\n", e.Name, valueFrom, resource) case e.ValueFrom.SecretKeyRef != nil: fmt.Fprintf(out, " %s:\t\n", e.Name, e.ValueFrom.SecretKeyRef.Key, e.ValueFrom.SecretKeyRef.Name) case e.ValueFrom.ConfigMapKeyRef != nil: @@ -1019,6 +1053,14 @@ func describeStatus(stateName string, state api.ContainerState, out io.Writer) { } } +func printBoolPtr(value *bool) string { + if value != nil { + return printBool(*value) + } + + return "" +} + func printBool(value bool) string { if value { return "True" @@ -1148,18 +1190,18 @@ func describeReplicaSet(rs *extensions.ReplicaSet, events *api.EventList, runnin // JobDescriber generates information about a job and the pods it has created. type JobDescriber struct { - client *client.Client + client.Interface } func (d *JobDescriber) Describe(namespace, name string, describerSettings DescriberSettings) (string, error) { - job, err := d.client.Extensions().Jobs(namespace).Get(name) + job, err := d.Batch().Jobs(namespace).Get(name) if err != nil { return "", err } var events *api.EventList if describerSettings.ShowEvents { - events, _ = d.client.Events(namespace).Search(job) + events, _ = d.Events(namespace).Search(job) } return describeJob(job, events) @@ -1194,6 +1236,92 @@ func describeJob(job *batch.Job, events *api.EventList) (string, error) { }) } +// ScheduledJobDescriber generates information about a scheduled job and the jobs it has created. +type ScheduledJobDescriber struct { + clientset.Interface +} + +func (d *ScheduledJobDescriber) Describe(namespace, name string, describerSettings DescriberSettings) (string, error) { + scheduledJob, err := d.Batch().ScheduledJobs(namespace).Get(name) + if err != nil { + return "", err + } + + var events *api.EventList + if describerSettings.ShowEvents { + events, _ = d.Core().Events(namespace).Search(scheduledJob) + } + + return describeScheduledJob(scheduledJob, events) +} + +func describeScheduledJob(scheduledJob *batch.ScheduledJob, events *api.EventList) (string, error) { + return tabbedString(func(out io.Writer) error { + fmt.Fprintf(out, "Name:\t%s\n", scheduledJob.Name) + fmt.Fprintf(out, "Namespace:\t%s\n", scheduledJob.Namespace) + fmt.Fprintf(out, "Schedule:\t%s\n", scheduledJob.Spec.Schedule) + fmt.Fprintf(out, "Concurrency Policy:\t%s\n", scheduledJob.Spec.ConcurrencyPolicy) + fmt.Fprintf(out, "Suspend:\t%s\n", printBoolPtr(scheduledJob.Spec.Suspend)) + if scheduledJob.Spec.StartingDeadlineSeconds != nil { + fmt.Fprintf(out, "Starting Deadline Seconds:\t%ds\n", *scheduledJob.Spec.StartingDeadlineSeconds) + } else { + fmt.Fprintf(out, "Starting Deadline Seconds:\t\n") + } + describeJobTemplate(scheduledJob.Spec.JobTemplate, out) + printLabelsMultiline(out, "Labels", scheduledJob.Labels) + if scheduledJob.Status.LastScheduleTime != nil { + fmt.Fprintf(out, "Last Schedule Time:\t%s\n", scheduledJob.Status.LastScheduleTime.Time.Format(time.RFC1123Z)) + } else { + fmt.Fprintf(out, "Last Schedule Time:\t\n") + } + printActiveJobs(out, "Active Jobs", scheduledJob.Status.Active) + if events != nil { + DescribeEvents(events, out) + } + return nil + }) +} + +func describeJobTemplate(jobTemplate batch.JobTemplateSpec, out io.Writer) { + fmt.Fprintf(out, "Image(s):\t%s\n", makeImageList(&jobTemplate.Spec.Template.Spec)) + if jobTemplate.Spec.Selector != nil { + selector, _ := unversioned.LabelSelectorAsSelector(jobTemplate.Spec.Selector) + fmt.Fprintf(out, "Selector:\t%s\n", selector) + } else { + fmt.Fprintf(out, "Selector:\t\n") + } + if jobTemplate.Spec.Parallelism != nil { + fmt.Fprintf(out, "Parallelism:\t%d\n", *jobTemplate.Spec.Parallelism) + } else { + fmt.Fprintf(out, "Parallelism:\t\n") + } + if jobTemplate.Spec.Completions != nil { + fmt.Fprintf(out, "Completions:\t%d\n", *jobTemplate.Spec.Completions) + } else { + fmt.Fprintf(out, "Completions:\t\n") + } + if jobTemplate.Spec.ActiveDeadlineSeconds != nil { + fmt.Fprintf(out, "Active Deadline Seconds:\t%ds\n", *jobTemplate.Spec.ActiveDeadlineSeconds) + } + describeVolumes(jobTemplate.Spec.Template.Spec.Volumes, out, "") +} + +func printActiveJobs(out io.Writer, title string, jobs []api.ObjectReference) { + fmt.Fprintf(out, "%s:\t", title) + if len(jobs) == 0 { + fmt.Fprintln(out, "") + return + } + + for i, job := range jobs { + if i != 0 { + fmt.Fprint(out, ", ") + } + fmt.Fprintf(out, "%s", job.Name) + } + fmt.Fprintln(out, "") +} + // DaemonSetDescriber generates information about a daemon set and the pods it has created. type DaemonSetDescriber struct { client.Interface @@ -1446,6 +1574,12 @@ func describeService(service *api.Service, endpoints *api.Endpoints, events *api fmt.Fprintf(out, "Selector:\t%s\n", labels.FormatLabels(service.Spec.Selector)) fmt.Fprintf(out, "Type:\t%s\n", service.Spec.Type) fmt.Fprintf(out, "IP:\t%s\n", service.Spec.ClusterIP) + if len(service.Spec.ExternalIPs) > 0 { + fmt.Fprintf(out, "External IPs:\t%v\n", strings.Join(service.Spec.ExternalIPs, ",")) + } + if service.Spec.ExternalName != "" { + fmt.Fprintf(out, "External Name:\t%s\n", service.Spec.ExternalName) + } if len(service.Status.LoadBalancer.Ingress) > 0 { list := buildIngressString(service.Status.LoadBalancer.Ingress) fmt.Fprintf(out, "LoadBalancer Ingress:\t%s\n", list) @@ -1787,6 +1921,74 @@ func (p *PetSetDescriber) Describe(namespace, name string, describerSettings Des }) } +type CertificateSigningRequestDescriber struct { + client *client.Client +} + +func (p *CertificateSigningRequestDescriber) Describe(namespace, name string, describerSettings DescriberSettings) (string, error) { + csr, err := p.client.Certificates().CertificateSigningRequests().Get(name) + if err != nil { + return "", err + } + + cr, err := utilcertificates.ParseCertificateRequestObject(csr) + if err != nil { + return "", fmt.Errorf("Error parsing CSR: %v", err) + } + status, err := extractCSRStatus(csr) + if err != nil { + return "", err + } + + printListHelper := func(out io.Writer, prefix, name string, values []string) { + if len(values) == 0 { + return + } + fmt.Fprintf(out, prefix+name+":\t") + fmt.Fprintf(out, strings.Join(values, "\n"+prefix+"\t")) + fmt.Fprintf(out, "\n") + } + + return tabbedString(func(out io.Writer) error { + fmt.Fprintf(out, "Name:\t%s\n", csr.Name) + fmt.Fprintf(out, "Labels:\t%s\n", labels.FormatLabels(csr.Labels)) + fmt.Fprintf(out, "Annotations:\t%s\n", labels.FormatLabels(csr.Annotations)) + fmt.Fprintf(out, "CreationTimestamp:\t%s\n", csr.CreationTimestamp.Time.Format(time.RFC1123Z)) + fmt.Fprintf(out, "Requesting User:\t%s\n", csr.Spec.Username) + fmt.Fprintf(out, "Status:\t%s\n", status) + + fmt.Fprintf(out, "Subject:\n") + fmt.Fprintf(out, "\tCommon Name:\t%s\n", cr.Subject.CommonName) + fmt.Fprintf(out, "\tSerial Number:\t%s\n", cr.Subject.SerialNumber) + printListHelper(out, "\t", "Organization", cr.Subject.Organization) + printListHelper(out, "\t", "Organizational Unit", cr.Subject.OrganizationalUnit) + printListHelper(out, "\t", "Country", cr.Subject.Country) + printListHelper(out, "\t", "Locality", cr.Subject.Locality) + printListHelper(out, "\t", "Province", cr.Subject.Province) + printListHelper(out, "\t", "StreetAddress", cr.Subject.StreetAddress) + printListHelper(out, "\t", "PostalCode", cr.Subject.PostalCode) + + if len(cr.DNSNames)+len(cr.EmailAddresses)+len(cr.IPAddresses) > 0 { + fmt.Fprintf(out, "Subject Alternative Names:\n") + printListHelper(out, "\t", "DNS Names", cr.DNSNames) + printListHelper(out, "\t", "Email Addresses", cr.EmailAddresses) + var ipaddrs []string + for _, ipaddr := range cr.IPAddresses { + ipaddrs = append(ipaddrs, ipaddr.String()) + } + printListHelper(out, "\t", "IP Addresses", ipaddrs) + } + + if describerSettings.ShowEvents { + events, _ := p.client.Events(namespace).Search(csr) + if events != nil { + DescribeEvents(events, out) + } + } + return nil + }) +} + // HorizontalPodAutoscalerDescriber generates information about a horizontal pod autoscaler. type HorizontalPodAutoscalerDescriber struct { client *client.Client @@ -2366,14 +2568,64 @@ func printTaintsMultilineWithIndent(out io.Writer, initialIndent, title, innerIn } sort.Strings(keys) + effects := []api.TaintEffect{api.TaintEffectNoSchedule, api.TaintEffectPreferNoSchedule} + for i, key := range keys { - for _, taint := range taints { - if taint.Key == key { + for _, effect := range effects { + for _, taint := range taints { + if taint.Key == key && taint.Effect == effect { + if i != 0 { + fmt.Fprint(out, initialIndent) + fmt.Fprint(out, innerIndent) + } + fmt.Fprintf(out, "%s=%s:%s\n", taint.Key, taint.Value, taint.Effect) + i++ + } + } + } + } +} + +// printTolerationsMultiline prints multiple tolerations with a proper alignment. +func printTolerationsInAnnotationMultiline(out io.Writer, title string, annotations map[string]string) { + tolerations, err := api.GetTolerationsFromPodAnnotations(annotations) + if err != nil { + tolerations = []api.Toleration{} + } + printTolerationsMultilineWithIndent(out, "", title, "\t", tolerations) +} + +// printTolerationsMultilineWithIndent prints multiple tolerations with a user-defined alignment. +func printTolerationsMultilineWithIndent(out io.Writer, initialIndent, title, innerIndent string, tolerations []api.Toleration) { + fmt.Fprintf(out, "%s%s:%s", initialIndent, title, innerIndent) + + if tolerations == nil || len(tolerations) == 0 { + fmt.Fprintln(out, "") + return + } + + // to print tolerations in the sorted order + keys := make([]string, 0, len(tolerations)) + for _, toleration := range tolerations { + keys = append(keys, toleration.Key) + } + sort.Strings(keys) + + for i, key := range keys { + for _, toleration := range tolerations { + if toleration.Key == key { if i != 0 { fmt.Fprint(out, initialIndent) fmt.Fprint(out, innerIndent) } - fmt.Fprintf(out, "%s=%s:%s\n", taint.Key, taint.Value, taint.Effect) + fmt.Fprintf(out, "%s=%s", toleration.Key, toleration.Value) + if len(toleration.Operator) != 0 { + fmt.Fprintf(out, ":%s", toleration.Operator) + } + if len(toleration.Effect) != 0 { + fmt.Fprintf(out, ":%s", toleration.Effect) + } + fmt.Fprintf(out, "\n") i++ } } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/history.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/history.go index 067eb2f430..8485139fe2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/history.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/history.go @@ -17,6 +17,7 @@ limitations under the License. package kubectl import ( + "bytes" "fmt" "io" @@ -34,9 +35,9 @@ const ( ChangeCauseAnnotation = "kubernetes.io/change-cause" ) -// HistoryViewer provides an interface for resources that can be rolled back. +// HistoryViewer provides an interface for resources have historical information. type HistoryViewer interface { - History(namespace, name string) (HistoryInfo, error) + ViewHistory(namespace, name string, revision int64) (string, error) } func HistoryViewerFor(kind unversioned.GroupKind, c clientset.Interface) (HistoryViewer, error) { @@ -47,68 +48,68 @@ func HistoryViewerFor(kind unversioned.GroupKind, c clientset.Interface) (Histor return nil, fmt.Errorf("no history viewer has been implemented for %q", kind) } -// HistoryInfo stores the mapping from revision to podTemplate; -// note that change-cause annotation should be copied to podTemplate -type HistoryInfo struct { - RevisionToTemplate map[int64]*api.PodTemplateSpec -} - type DeploymentHistoryViewer struct { c clientset.Interface } -// History returns a revision-to-replicaset map as the revision history of a deployment -func (h *DeploymentHistoryViewer) History(namespace, name string) (HistoryInfo, error) { - historyInfo := HistoryInfo{ - RevisionToTemplate: make(map[int64]*api.PodTemplateSpec), - } +// ViewHistory returns a revision-to-replicaset map as the revision history of a deployment +func (h *DeploymentHistoryViewer) ViewHistory(namespace, name string, revision int64) (string, error) { deployment, err := h.c.Extensions().Deployments(namespace).Get(name) if err != nil { - return historyInfo, fmt.Errorf("failed to retrieve deployment %s: %v", name, err) + return "", fmt.Errorf("failed to retrieve deployment %s: %v", name, err) } _, allOldRSs, newRS, err := deploymentutil.GetAllReplicaSets(deployment, h.c) if err != nil { - return historyInfo, fmt.Errorf("failed to retrieve replica sets from deployment %s: %v", name, err) + return "", fmt.Errorf("failed to retrieve replica sets from deployment %s: %v", name, err) } allRSs := allOldRSs if newRS != nil { allRSs = append(allRSs, newRS) } + + historyInfo := make(map[int64]*api.PodTemplateSpec) for _, rs := range allRSs { v, err := deploymentutil.Revision(rs) if err != nil { continue } - historyInfo.RevisionToTemplate[v] = &rs.Spec.Template + historyInfo[v] = &rs.Spec.Template changeCause := getChangeCause(rs) - if historyInfo.RevisionToTemplate[v].Annotations == nil { - historyInfo.RevisionToTemplate[v].Annotations = make(map[string]string) + if historyInfo[v].Annotations == nil { + historyInfo[v].Annotations = make(map[string]string) } if len(changeCause) > 0 { - historyInfo.RevisionToTemplate[v].Annotations[ChangeCauseAnnotation] = changeCause + historyInfo[v].Annotations[ChangeCauseAnnotation] = changeCause } } - return historyInfo, nil -} -// PrintRolloutHistory prints a formatted table of the input revision history of the deployment -func PrintRolloutHistory(historyInfo HistoryInfo, resource, name string) (string, error) { - if len(historyInfo.RevisionToTemplate) == 0 { - return fmt.Sprintf("No rollout history found in %s %q", resource, name), nil + if len(historyInfo) == 0 { + return "No rollout history found.", nil } + + if revision > 0 { + // Print details of a specific revision + template, ok := historyInfo[revision] + if !ok { + return "", fmt.Errorf("unable to find the specified revision") + } + buf := bytes.NewBuffer([]byte{}) + DescribePodTemplate(template, buf) + return buf.String(), nil + } + // Sort the revisionToChangeCause map by revision - revisions := make([]int64, 0, len(historyInfo.RevisionToTemplate)) - for r := range historyInfo.RevisionToTemplate { + revisions := make([]int64, 0, len(historyInfo)) + for r := range historyInfo { revisions = append(revisions, r) } sliceutil.SortInts64(revisions) return tabbedString(func(out io.Writer) error { - fmt.Fprintf(out, "%s %q:\n", resource, name) fmt.Fprintf(out, "REVISION\tCHANGE-CAUSE\n") for _, r := range revisions { // Find the change-cause of revision r - changeCause := historyInfo.RevisionToTemplate[r].Annotations[ChangeCauseAnnotation] + changeCause := historyInfo[r].Annotations[ChangeCauseAnnotation] if len(changeCause) == 0 { changeCause = "" } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/kubectl.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/kubectl.go index dfbc77c5dd..70e1a47d78 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/kubectl.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/kubectl.go @@ -30,12 +30,6 @@ import ( const ( kubectlAnnotationPrefix = "kubectl.kubernetes.io/" - // TODO: auto-generate this - PossibleResourceTypes = `Possible resource types include (case insensitive): pods (aka 'po'), services (aka 'svc'), deployments, -replicasets (aka 'rs'), replicationcontrollers (aka 'rc'), nodes (aka 'no'), events (aka 'ev'), limitranges (aka 'limits'), -persistentvolumes (aka 'pv'), persistentvolumeclaims (aka 'pvc'), resourcequotas (aka 'quota'), namespaces (aka 'ns'), -serviceaccounts (aka 'sa'), ingresses (aka 'ing'), horizontalpodautoscalers (aka 'hpa'), daemonsets (aka 'ds'), configmaps, -componentstatuses (aka 'cs), endpoints (aka 'ep'), petsets (alpha feature, may be unstable) and secrets.` ) type NamespaceInfo struct { @@ -127,14 +121,18 @@ func (e ShortcutExpander) ResourceFor(resource unversioned.GroupVersionResource) return e.RESTMapper.ResourceFor(expandResourceShortcut(resource)) } -func (e ShortcutExpander) ResourceSingularizer(resource string) (string, error) { - return e.RESTMapper.ResourceSingularizer(expandResourceShortcut(unversioned.GroupVersionResource{Resource: resource}).Resource) -} - func (e ShortcutExpander) RESTMapping(gk unversioned.GroupKind, versions ...string) (*meta.RESTMapping, error) { return e.RESTMapper.RESTMapping(gk, versions...) } +func (e ShortcutExpander) RESTMappings(gk unversioned.GroupKind) ([]*meta.RESTMapping, error) { + return e.RESTMapper.RESTMappings(gk) +} + +func (e ShortcutExpander) ResourceSingularizer(resource string) (string, error) { + return e.RESTMapper.ResourceSingularizer(expandResourceShortcut(unversioned.GroupVersionResource{Resource: resource}).Resource) +} + func (e ShortcutExpander) AliasesForResource(resource string) ([]string, bool) { return e.RESTMapper.AliasesForResource(expandResourceShortcut(unversioned.GroupVersionResource{Resource: resource}).Resource) } @@ -144,7 +142,10 @@ var shortForms = map[string]string{ // Please keep this alphabetized // If you add an entry here, please also take a look at pkg/kubectl/cmd/cmd.go // and add an entry to valid_resources when appropriate. + "cm": "configmaps", "cs": "componentstatuses", + "csr": "certificatesigningrequests", + "deploy": "deployments", "ds": "daemonsets", "ep": "endpoints", "ev": "events", diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/proxy_server.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/proxy_server.go index 733a3f90f3..b837fc4038 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/proxy_server.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/proxy_server.go @@ -35,7 +35,7 @@ import ( const ( DefaultHostAcceptRE = "^localhost$,^127\\.0\\.0\\.1$,^\\[::1\\]$" DefaultPathAcceptRE = "^/.*" - DefaultPathRejectRE = "^/api/.*/exec,^/api/.*/run,^/api/.*/attach" + DefaultPathRejectRE = "^/api/.*/pods/.*/exec,^/api/.*/pods/.*/attach" DefaultMethodRejectRE = "POST,PUT,PATCH" ) @@ -63,7 +63,7 @@ type FilterServer struct { delegate http.Handler } -// Splits a comma separated list of regexps into a array of Regexp objects. +// Splits a comma separated list of regexps into an array of Regexp objects. func MakeRegexpArray(str string) ([]*regexp.Regexp, error) { parts := strings.Split(str, ",") result := make([]*regexp.Regexp, len(parts)) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/quota.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/quota.go new file mode 100644 index 0000000000..1261aba20b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/quota.go @@ -0,0 +1,125 @@ +/* +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 kubectl + +import ( + "fmt" + "strings" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/runtime" +) + +// ResourceQuotaGeneratorV1 supports stable generation of a resource quota +type ResourceQuotaGeneratorV1 struct { + // The name of a quota object. + Name string + + // The hard resource limit string before parsing. + Hard string + + // The scopes of a quota object before parsing. + Scopes string +} + +// ParamNames returns the set of supported input parameters when using the parameter injection generator pattern +func (g ResourceQuotaGeneratorV1) ParamNames() []GeneratorParam { + return []GeneratorParam{ + {"name", true}, + {"hard", true}, + {"scopes", false}, + } +} + +// Ensure it supports the generator pattern that uses parameter injection +var _ Generator = &ResourceQuotaGeneratorV1{} + +// Ensure it supports the generator pattern that uses parameters specified during construction +var _ StructuredGenerator = &ResourceQuotaGeneratorV1{} + +func (g ResourceQuotaGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) { + err := ValidateParams(g.ParamNames(), genericParams) + if err != nil { + return nil, err + } + + params := map[string]string{} + for key, value := range genericParams { + strVal, isString := value.(string) + if !isString { + return nil, fmt.Errorf("expected string, saw %v for '%s'", value, key) + } + params[key] = strVal + } + + delegate := &ResourceQuotaGeneratorV1{} + delegate.Name = params["name"] + delegate.Hard = params["hard"] + delegate.Scopes = params["scopes"] + return delegate.StructuredGenerate() +} + +// StructuredGenerate outputs a ResourceQuota object using the configured fields +func (g *ResourceQuotaGeneratorV1) StructuredGenerate() (runtime.Object, error) { + if err := g.validate(); err != nil { + return nil, err + } + + resourceList, err := populateResourceList(g.Hard) + if err != nil { + return nil, err + } + + scopes, err := parseScopes(g.Scopes) + if err != nil { + return nil, err + } + + resourceQuota := &api.ResourceQuota{} + resourceQuota.Name = g.Name + resourceQuota.Spec.Hard = resourceList + resourceQuota.Spec.Scopes = scopes + return resourceQuota, nil +} + +// validate validates required fields are set to support structured generation +func (r *ResourceQuotaGeneratorV1) validate() error { + if len(r.Name) == 0 { + return fmt.Errorf("name must be specified") + } + return nil +} + +func parseScopes(spec string) ([]api.ResourceQuotaScope, error) { + // empty input gets a nil response to preserve generator test expected behaviors + if spec == "" { + return nil, nil + } + + scopes := strings.Split(spec, ",") + result := make([]api.ResourceQuotaScope, 0, len(scopes)) + for _, scope := range scopes { + // intentionally do not verify the scope against the valid scope list. This is done by the apiserver anyway. + + if scope == "" { + return nil, fmt.Errorf("invalid resource quota scope \"\"") + } + + result = append(result, api.ResourceQuotaScope(scope)) + } + return result, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/builder.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/builder.go index 9c32fc6a97..a5fadcfe9b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/builder.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/builder.go @@ -212,6 +212,10 @@ func (b *Builder) ResourceNames(resource string, names ...string) *Builder { b.resourceTuples = append(b.resourceTuples, tuple) continue } + if len(resource) == 0 { + b.errs = append(b.errs, fmt.Errorf("the argument %q must be RESOURCE/NAME", name)) + continue + } // Use the given default type to create a resource tuple b.resourceTuples = append(b.resourceTuples, resourceTuple{Resource: resource, Name: name}) @@ -333,7 +337,7 @@ func (b *Builder) ResourceTypeOrNameArgs(allowEmptySelector bool, args ...string } case len(args) == 0: default: - b.errs = append(b.errs, fmt.Errorf("when passing arguments, must be resource or resource and name")) + b.errs = append(b.errs, fmt.Errorf("arguments must consist of a resource or a resource and name")) } return b } @@ -362,7 +366,12 @@ func hasCombinedTypeArgs(args []string) (bool, error) { case hasSlash > 0 && hasSlash == len(args): return true, nil case hasSlash > 0 && hasSlash != len(args): - return true, fmt.Errorf("when passing arguments in resource/name form, all arguments must include the resource") + baseCmd := "cmd" + if len(os.Args) > 0 { + baseCmdSlice := strings.Split(os.Args[0], "/") + baseCmd = baseCmdSlice[len(baseCmdSlice)-1] + } + return true, fmt.Errorf("there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. '%s get resource/' instead of '%s get resource resource/'", baseCmd, baseCmd) default: return false, nil } @@ -449,7 +458,7 @@ func (b *Builder) mappingFor(resourceArg string) (*meta.RESTMapping, error) { if fullySpecifiedGVR != nil { gvk, _ = b.mapper.KindFor(*fullySpecifiedGVR) } - if gvk.IsEmpty() { + if gvk.Empty() { var err error gvk, err = b.mapper.KindFor(groupResource.WithVersion("")) if err != nil { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/mapper.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/mapper.go index fe0f315ab5..66f0da449f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/mapper.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/mapper.go @@ -22,7 +22,6 @@ import ( "k8s.io/kubernetes/pkg/api/meta" "k8s.io/kubernetes/pkg/api/unversioned" - "k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata" "k8s.io/kubernetes/pkg/runtime" ) @@ -54,20 +53,8 @@ func (m *Mapper) InfoForData(data []byte, source string) (*Info, error) { if err != nil { return nil, fmt.Errorf("unable to decode %q: %v", source, err) } - var obj runtime.Object - var versioned runtime.Object - if isThirdParty, gvkOut, err := thirdpartyresourcedata.IsThirdPartyObject(data, gvk); err != nil { - return nil, err - } else if isThirdParty { - obj, err = runtime.Decode(thirdpartyresourcedata.NewDecoder(nil, gvkOut.Kind), data) - versioned = obj - gvk = gvkOut - } else { - obj, versioned = versions.Last(), versions.First() - } - if err != nil { - return nil, fmt.Errorf("unable to decode %q: %v [%v]", source, err, gvk) - } + + obj, versioned := versions.Last(), versions.First() mapping, err := m.RESTMapping(gvk.GroupKind(), gvk.Version) if err != nil { return nil, fmt.Errorf("unable to recognize %q: %v", source, err) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/result.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/result.go index 7e73d75a28..892b30e947 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/result.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/result.go @@ -250,7 +250,7 @@ func AsVersionedObjects(infos []*Info, version unversioned.GroupVersion, encoder // objects that are not part of api.Scheme must be converted to JSON // TODO: convert to map[string]interface{}, attach to runtime.Unknown? - if !version.IsEmpty() { + if !version.Empty() { if _, _, err := api.Scheme.ObjectKinds(info.Object); runtime.IsNotRegisteredError(err) { // TODO: ideally this would encode to version, but we don't expose multiple codecs here. data, err := runtime.Encode(encoder, info.Object) @@ -274,13 +274,13 @@ func AsVersionedObjects(infos []*Info, version unversioned.GroupVersion, encoder // tryConvert attempts to convert the given object to the provided versions in order. This function assumes // the object is in internal version. -func tryConvert(convertor runtime.ObjectConvertor, object runtime.Object, versions ...unversioned.GroupVersion) (runtime.Object, error) { +func tryConvert(converter runtime.ObjectConvertor, object runtime.Object, versions ...unversioned.GroupVersion) (runtime.Object, error) { var last error for _, version := range versions { - if version.IsEmpty() { + if version.Empty() { return object, nil } - obj, err := convertor.ConvertToVersion(object, version) + obj, err := converter.ConvertToVersion(object, version) if err != nil { last = err continue diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go index a643925d32..365427c4ea 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go @@ -207,10 +207,6 @@ func ValidateSchema(data []byte, schema validation.Schema) error { if schema == nil { return nil } - data, err := yaml.ToJSON(data) - if err != nil { - return fmt.Errorf("error converting to YAML: %v", err) - } if err := schema.ValidateBytes(data); err != nil { return fmt.Errorf("error validating data: %v; %s", err, stopValidateMessage) } @@ -389,7 +385,7 @@ func (v FlattenListVisitor) Visit(fn VisitorFunc) error { // If we have a GroupVersionKind on the list, prioritize that when asking for info on the objects contained in the list var preferredGVKs []unversioned.GroupVersionKind - if info.Mapping != nil && !info.Mapping.GroupVersionKind.IsEmpty() { + if info.Mapping != nil && !info.Mapping.GroupVersionKind.Empty() { preferredGVKs = append(preferredGVKs, info.Mapping.GroupVersionKind) } @@ -431,7 +427,7 @@ func FileVisitorForSTDIN(mapper *Mapper, schema validation.Schema) Visitor { } // ExpandPathsToFileVisitors will return a slice of FileVisitors that will handle files from the provided path. -// After FileVisitors open the files, they will pass a io.Reader to a StreamVisitor to do the reading. (stdin +// After FileVisitors open the files, they will pass an io.Reader to a StreamVisitor to do the reading. (stdin // is also taken care of). Paths argument also accepts a single file, and will return a single visitor func ExpandPathsToFileVisitors(mapper *Mapper, paths string, recursive bool, extensions []string, schema validation.Schema) ([]Visitor, error) { var visitors []Visitor @@ -622,13 +618,7 @@ func RetrieveLatest(info *Info, err error) error { if info.Namespaced() && len(info.Namespace) == 0 { return fmt.Errorf("no namespace set on resource %s %q", info.Mapping.Resource, info.Name) } - obj, err := NewHelper(info.Client, info.Mapping).Get(info.Namespace, info.Name, info.Export) - if err != nil { - return err - } - info.Object = obj - info.ResourceVersion, _ = info.Mapping.MetadataAccessor.ResourceVersion(obj) - return nil + return info.Get() } // RetrieveLazy updates the object if it has not been loaded yet. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource_printer.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource_printer.go index 2e046f9e2b..53128d8697 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource_printer.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/resource_printer.go @@ -39,6 +39,7 @@ import ( "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/apis/autoscaling" "k8s.io/kubernetes/pkg/apis/batch" + "k8s.io/kubernetes/pkg/apis/certificates" "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/apis/rbac" "k8s.io/kubernetes/pkg/labels" @@ -127,6 +128,7 @@ func GetPrinter(format, formatArgument string, noHeaders bool) (ResourcePrinter, if err != nil { return nil, false, fmt.Errorf("error reading template %s, %v\n", formatArgument, err) } + defer file.Close() if printer, err = NewCustomColumnsPrinterFromTemplate(file, api.Codecs.UniversalDecoder()); err != nil { return nil, false, err } @@ -145,6 +147,9 @@ type ResourcePrinter interface { // Print receives a runtime object, formats it and prints it to a writer. PrintObj(runtime.Object, io.Writer) error HandledResources() []string + //Can be used to print out warning/clarifications if needed + //after all objects were printed + FinishPrint(io.Writer, string) error } // ResourcePrinterFunc is a function that can print objects @@ -160,42 +165,41 @@ func (fn ResourcePrinterFunc) HandledResources() []string { return []string{} } +func (fn ResourcePrinterFunc) FinishPrint(io.Writer, string) error { + return nil +} + // VersionedPrinter takes runtime objects and ensures they are converted to a given API version // prior to being passed to a nested printer. type VersionedPrinter struct { printer ResourcePrinter - convertor runtime.ObjectConvertor + converter runtime.ObjectConvertor versions []unversioned.GroupVersion } // NewVersionedPrinter wraps a printer to convert objects to a known API version prior to printing. -func NewVersionedPrinter(printer ResourcePrinter, convertor runtime.ObjectConvertor, versions ...unversioned.GroupVersion) ResourcePrinter { +func NewVersionedPrinter(printer ResourcePrinter, converter runtime.ObjectConvertor, versions ...unversioned.GroupVersion) ResourcePrinter { return &VersionedPrinter{ printer: printer, - convertor: convertor, + converter: converter, versions: versions, } } +func (p *VersionedPrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + // PrintObj implements ResourcePrinter func (p *VersionedPrinter) PrintObj(obj runtime.Object, w io.Writer) error { if len(p.versions) == 0 { return fmt.Errorf("no version specified, object cannot be converted") } - for _, version := range p.versions { - if version.IsEmpty() { - continue - } - converted, err := p.convertor.ConvertToVersion(obj, version) - if runtime.IsNotRegisteredError(err) { - continue - } - if err != nil { - return err - } - return p.printer.PrintObj(converted, w) + converted, err := p.converter.ConvertToVersion(obj, unversioned.GroupVersions(p.versions)) + if err != nil { + return err } - return fmt.Errorf("the object cannot be converted to any of the versions: %v", p.versions) + return p.printer.PrintObj(converted, w) } // TODO: implement HandledResources() @@ -209,6 +213,10 @@ type NamePrinter struct { Typer runtime.ObjectTyper } +func (p *NamePrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + // PrintObj is an implementation of ResourcePrinter.PrintObj which decodes the object // and print "resource/name" pair. If the object is a List, print all items in it. func (p *NamePrinter) PrintObj(obj runtime.Object, w io.Writer) error { @@ -257,6 +265,10 @@ func (p *NamePrinter) HandledResources() []string { type JSONPrinter struct { } +func (p *JSONPrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + // PrintObj is an implementation of ResourcePrinter.PrintObj which simply writes the object to the Writer. func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error { switch obj := obj.(type) { @@ -265,14 +277,12 @@ func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error { return err } - data, err := json.Marshal(obj) + data, err := json.MarshalIndent(obj, "", " ") if err != nil { return err } - dst := bytes.Buffer{} - err = json.Indent(&dst, data, "", " ") - dst.WriteByte('\n') - _, err = w.Write(dst.Bytes()) + data = append(data, '\n') + _, err = w.Write(data) return err } @@ -286,7 +296,11 @@ func (p *JSONPrinter) HandledResources() []string { // to the given version first. type YAMLPrinter struct { version string - convertor runtime.ObjectConvertor + converter runtime.ObjectConvertor +} + +func (p *YAMLPrinter) FinishPrint(w io.Writer, res string) error { + return nil } // PrintObj prints the data as YAML. @@ -317,6 +331,7 @@ func (p *YAMLPrinter) HandledResources() []string { type handlerEntry struct { columns []string printFunc reflect.Value + args []reflect.Value } type PrintOptions struct { @@ -327,7 +342,7 @@ type PrintOptions struct { ShowAll bool ShowLabels bool AbsoluteTimestamps bool - KindName string + Kind string ColumnLabels []string } @@ -336,31 +351,45 @@ type PrintOptions struct { // will only be printed if the object type changes. This makes it useful for printing items // received from watches. type HumanReadablePrinter struct { - handlerMap map[reflect.Type]*handlerEntry - Options PrintOptions - lastType reflect.Type + handlerMap map[reflect.Type]*handlerEntry + options PrintOptions + lastType reflect.Type + hiddenObjNum int } // NewHumanReadablePrinter creates a HumanReadablePrinter. -func NewHumanReadablePrinter(noHeaders, withNamespace bool, wide bool, showAll bool, showLabels bool, absoluteTimestamps bool, columnLabels []string) *HumanReadablePrinter { +func NewHumanReadablePrinter(options PrintOptions) *HumanReadablePrinter { printer := &HumanReadablePrinter{ handlerMap: make(map[reflect.Type]*handlerEntry), - Options: PrintOptions{ - NoHeaders: noHeaders, - WithNamespace: withNamespace, - WithKind: false, - KindName: "", - Wide: wide, - ShowAll: showAll, - ShowLabels: showLabels, - AbsoluteTimestamps: absoluteTimestamps, - ColumnLabels: columnLabels, - }, + options: options, } printer.addDefaultHandlers() return printer } +// formatResourceName receives a resource kind, name, and boolean specifying +// whether or not to update the current name to "kind/name" +func formatResourceName(kind, name string, withKind bool) string { + if !withKind || kind == "" { + return name + } + + return kind + "/" + name +} + +// GetResourceKind returns the type currently set for a resource +func (h *HumanReadablePrinter) GetResourceKind() string { + return h.options.Kind +} + +// EnsurePrintWithKind sets HumanReadablePrinter options "WithKind" to true +// and "Kind" to the string arg it receives, pre-pending this string +// to the "NAME" column in an output of resources. +func (h *HumanReadablePrinter) EnsurePrintWithKind(kind string) { + h.options.WithKind = true + h.options.Kind = kind +} + // Handler adds a print handler with a given set of columns to HumanReadablePrinter instance. // See validatePrintHandlerFunc for required method signature. func (h *HumanReadablePrinter) Handler(columns []string, printFunc interface{}) error { @@ -369,6 +398,7 @@ func (h *HumanReadablePrinter) Handler(columns []string, printFunc interface{}) glog.Errorf("Unable to add print handler: %v", err) return err } + objType := printFuncValue.Type().In(0) h.handlerMap[objType] = &handlerEntry{ columns: columns, @@ -416,13 +446,22 @@ func (h *HumanReadablePrinter) HandledResources() []string { return keys } +func (h *HumanReadablePrinter) FinishPrint(output io.Writer, res string) error { + if !h.options.NoHeaders && !h.options.ShowAll && h.hiddenObjNum > 0 { + _, err := fmt.Fprintf(output, " info: %d completed object(s) was(were) not shown in %s list. Pass --show-all to see all objects.\n\n", h.hiddenObjNum, res) + return err + } + return nil +} + // NOTE: When adding a new resource type here, please update the list // pkg/kubectl/cmd/get.go to reflect the new resource type. var podColumns = []string{"NAME", "READY", "STATUS", "RESTARTS", "AGE"} var podTemplateColumns = []string{"TEMPLATE", "CONTAINER(S)", "IMAGE(S)", "PODLABELS"} -var replicationControllerColumns = []string{"NAME", "DESIRED", "CURRENT", "AGE"} -var replicaSetColumns = []string{"NAME", "DESIRED", "CURRENT", "AGE"} +var replicationControllerColumns = []string{"NAME", "DESIRED", "CURRENT", "READY", "AGE"} +var replicaSetColumns = []string{"NAME", "DESIRED", "CURRENT", "READY", "AGE"} var jobColumns = []string{"NAME", "DESIRED", "SUCCESSFUL", "AGE"} +var scheduledJobColumns = []string{"NAME", "SCHEDULE", "SUSPEND", "ACTIVE", "LAST-SCHEDULE"} var serviceColumns = []string{"NAME", "CLUSTER-IP", "EXTERNAL-IP", "PORT(S)", "AGE"} var ingressColumns = []string{"NAME", "HOSTS", "ADDRESS", "PORTS", "AGE"} var petSetColumns = []string{"NAME", "DESIRED", "CURRENT", "AGE"} @@ -443,6 +482,7 @@ var roleColumns = []string{"NAME", "AGE"} var roleBindingColumns = []string{"NAME", "AGE"} var clusterRoleColumns = []string{"NAME", "AGE"} var clusterRoleBindingColumns = []string{"NAME", "AGE"} +var storageClassColumns = []string{"NAME", "TYPE"} // TODO: consider having 'KIND' for third party resource data var thirdPartyResourceDataColumns = []string{"NAME", "LABELS", "DATA"} @@ -451,13 +491,44 @@ var withNamespacePrefixColumns = []string{"NAMESPACE"} // TODO(erictune): print var deploymentColumns = []string{"NAME", "DESIRED", "CURRENT", "UP-TO-DATE", "AVAILABLE", "AGE"} var configMapColumns = []string{"NAME", "DATA", "AGE"} var podSecurityPolicyColumns = []string{"NAME", "PRIV", "CAPS", "VOLUMEPLUGINS", "SELINUX", "RUNASUSER"} -var clusterColumns = []string{"NAME", "STATUS", "VERSION", "AGE"} +var clusterColumns = []string{"NAME", "STATUS", "AGE"} var networkPolicyColumns = []string{"NAME", "POD-SELECTOR", "AGE"} +var certificateSigningRequestColumns = []string{"NAME", "AGE", "REQUESTOR", "CONDITION"} + +func (h *HumanReadablePrinter) printPod(pod *api.Pod, w io.Writer, options PrintOptions) error { + reason := string(pod.Status.Phase) + // if not printing all pods, skip terminated pods (default) + if !options.ShowAll && (reason == string(api.PodSucceeded) || reason == string(api.PodFailed)) { + h.hiddenObjNum++ + return nil + } + if err := printPodBase(pod, w, options); err != nil { + return err + } + + return nil +} + +func (h *HumanReadablePrinter) printPodList(podList *api.PodList, w io.Writer, options PrintOptions) error { + for _, pod := range podList.Items { + reason := string(pod.Status.Phase) + // if not printing all pods, skip terminated pods (default) + if !options.ShowAll && (reason == string(api.PodSucceeded) || reason == string(api.PodFailed)) { + h.hiddenObjNum++ + continue + } + + if err := printPodBase(&pod, w, options); err != nil { + return err + } + } + return nil +} // addDefaultHandlers adds print handlers for default Kubernetes types. func (h *HumanReadablePrinter) addDefaultHandlers() { - h.Handler(podColumns, printPod) - h.Handler(podColumns, printPodList) + h.Handler(podColumns, h.printPodList) + h.Handler(podColumns, h.printPod) h.Handler(podTemplateColumns, printPodTemplate) h.Handler(podTemplateColumns, printPodTemplateList) h.Handler(replicationControllerColumns, printReplicationController) @@ -468,6 +539,8 @@ func (h *HumanReadablePrinter) addDefaultHandlers() { h.Handler(daemonSetColumns, printDaemonSetList) h.Handler(jobColumns, printJob) h.Handler(jobColumns, printJobList) + h.Handler(scheduledJobColumns, printScheduledJob) + h.Handler(scheduledJobColumns, printScheduledJobList) h.Handler(serviceColumns, printService) h.Handler(serviceColumns, printServiceList) h.Handler(ingressColumns, printIngress) @@ -520,6 +593,10 @@ func (h *HumanReadablePrinter) addDefaultHandlers() { h.Handler(clusterRoleColumns, printClusterRoleList) h.Handler(clusterRoleBindingColumns, printClusterRoleBinding) h.Handler(clusterRoleBindingColumns, printClusterRoleBindingList) + h.Handler(certificateSigningRequestColumns, printCertificateSigningRequest) + h.Handler(certificateSigningRequestColumns, printCertificateSigningRequestList) + h.Handler(storageClassColumns, printStorageClass) + h.Handler(storageClassColumns, printStorageClassList) } func (h *HumanReadablePrinter) unknown(data []byte, w io.Writer) error { @@ -596,28 +673,15 @@ func translateTimestamp(timestamp unversioned.Time) string { return shortHumanDuration(time.Now().Sub(timestamp.Time)) } -func printPod(pod *api.Pod, w io.Writer, options PrintOptions) error { - return printPodBase(pod, w, options) -} - func printPodBase(pod *api.Pod, w io.Writer, options PrintOptions) error { - name := pod.Name + name := formatResourceName(options.Kind, pod.Name, options.WithKind) namespace := pod.Namespace - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } restarts := 0 totalContainers := len(pod.Spec.Containers) readyContainers := 0 reason := string(pod.Status.Phase) - // if not printing all pods, skip terminated pods (default) - if !options.ShowAll && (reason == string(api.PodSucceeded) || reason == string(api.PodFailed)) { - return nil - } if pod.Status.Reason != "" { reason = pod.Status.Reason } @@ -715,23 +779,10 @@ func printPodBase(pod *api.Pod, w io.Writer, options PrintOptions) error { return nil } -func printPodList(podList *api.PodList, w io.Writer, options PrintOptions) error { - for _, pod := range podList.Items { - if err := printPodBase(&pod, w, options); err != nil { - return err - } - } - return nil -} - func printPodTemplate(pod *api.PodTemplate, w io.Writer, options PrintOptions) error { - name := pod.Name - namespace := pod.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, pod.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := pod.Namespace containers := pod.Template.Spec.Containers @@ -770,14 +821,10 @@ func printPodTemplateList(podList *api.PodTemplateList, w io.Writer, options Pri // TODO(AdoHe): try to put wide output in a single method func printReplicationController(controller *api.ReplicationController, w io.Writer, options PrintOptions) error { - name := controller.Name + name := formatResourceName(options.Kind, controller.Name, options.WithKind) + namespace := controller.Namespace containers := controller.Spec.Template.Spec.Containers - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -787,10 +834,12 @@ func printReplicationController(controller *api.ReplicationController, w io.Writ desiredReplicas := controller.Spec.Replicas currentReplicas := controller.Status.Replicas - if _, err := fmt.Fprintf(w, "%s\t%d\t%d\t%s", + readyReplicas := controller.Status.ReadyReplicas + if _, err := fmt.Fprintf(w, "%s\t%d\t%d\t%d\t%s", name, desiredReplicas, currentReplicas, + readyReplicas, translateTimestamp(controller.CreationTimestamp), ); err != nil { return err @@ -824,14 +873,10 @@ func printReplicationControllerList(list *api.ReplicationControllerList, w io.Wr } func printReplicaSet(rs *extensions.ReplicaSet, w io.Writer, options PrintOptions) error { - name := rs.Name + name := formatResourceName(options.Kind, rs.Name, options.WithKind) + namespace := rs.Namespace containers := rs.Spec.Template.Spec.Containers - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -841,10 +886,12 @@ func printReplicaSet(rs *extensions.ReplicaSet, w io.Writer, options PrintOption desiredReplicas := rs.Spec.Replicas currentReplicas := rs.Status.Replicas - if _, err := fmt.Fprintf(w, "%s\t%d\t%d\t%s", + readyReplicas := rs.Status.ReadyReplicas + if _, err := fmt.Fprintf(w, "%s\t%d\t%d\t%d\t%s", name, desiredReplicas, currentReplicas, + readyReplicas, translateTimestamp(rs.CreationTimestamp), ); err != nil { return err @@ -877,11 +924,8 @@ func printReplicaSetList(list *extensions.ReplicaSetList, w io.Writer, options P } func printCluster(c *federation.Cluster, w io.Writer, options PrintOptions) error { - name := c.Name - kind := options.KindName - if options.WithKind { - name = kind + "/" + name - } + name := formatResourceName(options.Kind, c.Name, options.WithKind) + var statuses []string for _, condition := range c.Status.Conditions { if condition.Status == api.ConditionTrue { @@ -913,14 +957,10 @@ func printClusterList(list *federation.ClusterList, w io.Writer, options PrintOp } func printJob(job *batch.Job, w io.Writer, options PrintOptions) error { - name := job.Name + name := formatResourceName(options.Kind, job.Name, options.WithKind) + namespace := job.Namespace containers := job.Spec.Template.Spec.Containers - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -979,6 +1019,42 @@ func printJobList(list *batch.JobList, w io.Writer, options PrintOptions) error return nil } +func printScheduledJob(scheduledJob *batch.ScheduledJob, w io.Writer, options PrintOptions) error { + name := scheduledJob.Name + namespace := scheduledJob.Namespace + + if options.WithNamespace { + if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { + return err + } + } + + lastScheduleTime := "" + if scheduledJob.Status.LastScheduleTime != nil { + lastScheduleTime = scheduledJob.Status.LastScheduleTime.Time.Format(time.RFC1123Z) + } + if _, err := fmt.Fprintf(w, "%s\t%s\t%s\t%d\t%s\n", + name, + scheduledJob.Spec.Schedule, + printBoolPtr(scheduledJob.Spec.Suspend), + len(scheduledJob.Status.Active), + lastScheduleTime, + ); err != nil { + return err + } + + return nil +} + +func printScheduledJobList(list *batch.ScheduledJobList, w io.Writer, options PrintOptions) error { + for _, scheduledJob := range list.Items { + if err := printScheduledJob(&scheduledJob, w, options); err != nil { + return err + } + } + return nil +} + // loadBalancerStatusStringer behaves mostly like a string interface and converts the given status to a string. // `wide` indicates whether the returned value is meant for --o=wide output. If not, it's clipped to 16 bytes. func loadBalancerStatusStringer(s api.LoadBalancerStatus, wide bool) string { @@ -1020,6 +1096,8 @@ func getServiceExternalIP(svc *api.Service, wide bool) string { return lbIps } return "" + case api.ServiceTypeExternalName: + return svc.Spec.ExternalName } return "" } @@ -1034,16 +1112,12 @@ func makePortString(ports []api.ServicePort) string { } func printService(svc *api.Service, w io.Writer, options PrintOptions) error { - name := svc.Name + name := formatResourceName(options.Kind, svc.Name, options.WithKind) + namespace := svc.Namespace internalIP := svc.Spec.ClusterIP externalIP := getServiceExternalIP(svc, options.Wide) - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1118,13 +1192,9 @@ func formatPorts(tls []extensions.IngressTLS) string { } func printIngress(ingress *extensions.Ingress, w io.Writer, options PrintOptions) error { - name := ingress.Name - namespace := ingress.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, ingress.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := ingress.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1161,14 +1231,10 @@ func printIngressList(ingressList *extensions.IngressList, w io.Writer, options } func printPetSet(ps *apps.PetSet, w io.Writer, options PrintOptions) error { - name := ps.Name + name := formatResourceName(options.Kind, ps.Name, options.WithKind) + namespace := ps.Namespace containers := ps.Spec.Template.Spec.Containers - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1213,13 +1279,9 @@ func printPetSetList(petSetList *apps.PetSetList, w io.Writer, options PrintOpti } func printDaemonSet(ds *extensions.DaemonSet, w io.Writer, options PrintOptions) error { - name := ds.Name - namespace := ds.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, ds.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := ds.Namespace containers := ds.Spec.Template.Spec.Containers @@ -1273,13 +1335,9 @@ func printDaemonSetList(list *extensions.DaemonSetList, w io.Writer, options Pri } func printEndpoints(endpoints *api.Endpoints, w io.Writer, options PrintOptions) error { - name := endpoints.Name - namespace := endpoints.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, endpoints.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := endpoints.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1306,12 +1364,8 @@ func printEndpointsList(list *api.EndpointsList, w io.Writer, options PrintOptio } func printNamespace(item *api.Namespace, w io.Writer, options PrintOptions) error { - name := item.Name - kind := options.KindName + name := formatResourceName(options.Kind, item.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { return fmt.Errorf("namespace is not namespaced") } @@ -1336,13 +1390,9 @@ func printNamespaceList(list *api.NamespaceList, w io.Writer, options PrintOptio } func printSecret(item *api.Secret, w io.Writer, options PrintOptions) error { - name := item.Name - namespace := item.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, item.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := item.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1370,13 +1420,9 @@ func printSecretList(list *api.SecretList, w io.Writer, options PrintOptions) er } func printServiceAccount(item *api.ServiceAccount, w io.Writer, options PrintOptions) error { - name := item.Name - namespace := item.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, item.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := item.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1404,12 +1450,8 @@ func printServiceAccountList(list *api.ServiceAccountList, w io.Writer, options } func printNode(node *api.Node, w io.Writer, options PrintOptions) error { - name := node.Name - kind := options.KindName + name := formatResourceName(options.Kind, node.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { return fmt.Errorf("node is not namespaced") } @@ -1457,12 +1499,8 @@ func printNodeList(list *api.NodeList, w io.Writer, options PrintOptions) error } func printPersistentVolume(pv *api.PersistentVolume, w io.Writer, options PrintOptions) error { - name := pv.Name - kind := options.KindName + name := formatResourceName(options.Kind, pv.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { return fmt.Errorf("persistentVolume is not namespaced") } @@ -1506,13 +1544,9 @@ func printPersistentVolumeList(list *api.PersistentVolumeList, w io.Writer, opti } func printPersistentVolumeClaim(pvc *api.PersistentVolumeClaim, w io.Writer, options PrintOptions) error { - name := pvc.Name - namespace := pvc.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, pvc.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := pvc.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1550,13 +1584,9 @@ func printPersistentVolumeClaimList(list *api.PersistentVolumeClaimList, w io.Wr } func printEvent(event *api.Event, w io.Writer, options PrintOptions) error { - name := event.InvolvedObject.Name - namespace := event.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, event.InvolvedObject.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := event.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { return err @@ -1622,12 +1652,8 @@ func printLimitRangeList(list *api.LimitRangeList, w io.Writer, options PrintOpt // printObjectMeta prints the object metadata of a given resource. func printObjectMeta(meta api.ObjectMeta, w io.Writer, options PrintOptions, namespaced bool) error { - name := meta.Name - kind := options.KindName + name := formatResourceName(options.Kind, meta.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } if namespaced && options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", meta.Namespace); err != nil { return err @@ -1718,13 +1744,70 @@ func printClusterRoleBindingList(list *rbac.ClusterRoleBindingList, w io.Writer, return nil } -func printComponentStatus(item *api.ComponentStatus, w io.Writer, options PrintOptions) error { - name := item.Name - kind := options.KindName +func printCertificateSigningRequest(csr *certificates.CertificateSigningRequest, w io.Writer, options PrintOptions) error { + name := formatResourceName(options.Kind, csr.Name, options.WithKind) + meta := csr.ObjectMeta - if options.WithKind { - name = kind + "/" + name + status, err := extractCSRStatus(csr) + if err != nil { + return err } + + if _, err := fmt.Fprintf( + w, "%s\t%s\t%s\t%s", + name, + translateTimestamp(meta.CreationTimestamp), + csr.Spec.Username, + status, + ); err != nil { + return err + } + if _, err := fmt.Fprint(w, AppendLabels(meta.Labels, options.ColumnLabels)); err != nil { + return err + } + _, err = fmt.Fprint(w, AppendAllLabels(options.ShowLabels, meta.Labels)) + return err +} + +func extractCSRStatus(csr *certificates.CertificateSigningRequest) (string, error) { + var approved, denied bool + for _, c := range csr.Status.Conditions { + switch c.Type { + case certificates.CertificateApproved: + approved = true + case certificates.CertificateDenied: + denied = true + default: + return "", fmt.Errorf("unknown csr conditon %q", c) + } + } + var status string + // must be in order of presidence + if denied { + status += "Denied" + } else if approved { + status += "Approved" + } else { + status += "Pending" + } + if len(csr.Status.Certificate) > 0 { + status += ",Issued" + } + return status, nil +} + +func printCertificateSigningRequestList(list *certificates.CertificateSigningRequestList, w io.Writer, options PrintOptions) error { + for i := range list.Items { + if err := printCertificateSigningRequest(&list.Items[i], w, options); err != nil { + return err + } + } + return nil +} + +func printComponentStatus(item *api.ComponentStatus, w io.Writer, options PrintOptions) error { + name := formatResourceName(options.Kind, item.Name, options.WithKind) + if options.WithNamespace { return fmt.Errorf("componentStatus is not namespaced") } @@ -1765,12 +1848,7 @@ func printComponentStatusList(list *api.ComponentStatusList, w io.Writer, option } func printThirdPartyResource(rsrc *extensions.ThirdPartyResource, w io.Writer, options PrintOptions) error { - name := rsrc.Name - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } + name := formatResourceName(options.Kind, rsrc.Name, options.WithKind) versions := make([]string, len(rsrc.Versions)) for ix := range rsrc.Versions { @@ -1802,12 +1880,7 @@ func truncate(str string, maxLen int) string { } func printThirdPartyResourceData(rsrc *extensions.ThirdPartyResourceData, w io.Writer, options PrintOptions) error { - name := rsrc.Name - kind := options.KindName - - if options.WithKind { - name = kind + "/" + name - } + name := formatResourceName(options.Kind, rsrc.Name, options.WithKind) l := labels.FormatLabels(rsrc.Labels) truncateCols := 50 @@ -1831,12 +1904,8 @@ func printThirdPartyResourceDataList(list *extensions.ThirdPartyResourceDataList } func printDeployment(deployment *extensions.Deployment, w io.Writer, options PrintOptions) error { - name := deployment.Name - kind := options.KindName + name := formatResourceName(options.Kind, deployment.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", deployment.Namespace); err != nil { return err @@ -1869,12 +1938,8 @@ func printDeploymentList(list *extensions.DeploymentList, w io.Writer, options P func printHorizontalPodAutoscaler(hpa *autoscaling.HorizontalPodAutoscaler, w io.Writer, options PrintOptions) error { namespace := hpa.Namespace - name := hpa.Name - kind := options.KindName + name := formatResourceName(options.Kind, hpa.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } reference := fmt.Sprintf("%s/%s", hpa.Spec.ScaleTargetRef.Kind, hpa.Spec.ScaleTargetRef.Name) @@ -1926,13 +1991,9 @@ func printHorizontalPodAutoscalerList(list *autoscaling.HorizontalPodAutoscalerL } func printConfigMap(configMap *api.ConfigMap, w io.Writer, options PrintOptions) error { - name := configMap.Name - namespace := configMap.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, configMap.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := configMap.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -1959,12 +2020,8 @@ func printConfigMapList(list *api.ConfigMapList, w io.Writer, options PrintOptio } func printPodSecurityPolicy(item *extensions.PodSecurityPolicy, w io.Writer, options PrintOptions) error { - name := item.Name - kind := options.KindName + name := formatResourceName(options.Kind, item.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } _, err := fmt.Fprintf(w, "%s\t%t\t%v\t%s\t%s\t%s\t%s\t%t\t%v\n", name, item.Spec.Privileged, item.Spec.AllowedCapabilities, item.Spec.SELinux.Rule, item.Spec.RunAsUser.Rule, item.Spec.FSGroup.Rule, item.Spec.SupplementalGroups.Rule, item.Spec.ReadOnlyRootFilesystem, item.Spec.Volumes) @@ -1982,13 +2039,9 @@ func printPodSecurityPolicyList(list *extensions.PodSecurityPolicyList, w io.Wri } func printNetworkPolicy(networkPolicy *extensions.NetworkPolicy, w io.Writer, options PrintOptions) error { - name := networkPolicy.Name - namespace := networkPolicy.Namespace - kind := options.KindName + name := formatResourceName(options.Kind, networkPolicy.Name, options.WithKind) - if options.WithKind { - name = kind + "/" + name - } + namespace := networkPolicy.Namespace if options.WithNamespace { if _, err := fmt.Fprintf(w, "%s\t", namespace); err != nil { @@ -2014,6 +2067,32 @@ func printNetworkPolicyList(list *extensions.NetworkPolicyList, w io.Writer, opt return nil } +func printStorageClass(sc *extensions.StorageClass, w io.Writer, options PrintOptions) error { + name := sc.Name + provtype := sc.Provisioner + + if _, err := fmt.Fprintf(w, "%s\t%s\t", name, provtype); err != nil { + return err + } + if _, err := fmt.Fprint(w, AppendLabels(sc.Labels, options.ColumnLabels)); err != nil { + return err + } + if _, err := fmt.Fprint(w, AppendAllLabels(options.ShowLabels, sc.Labels)); err != nil { + return err + } + + return nil +} + +func printStorageClassList(scList *extensions.StorageClassList, w io.Writer, options PrintOptions) error { + for _, sc := range scList.Items { + if err := printStorageClass(&sc, w, options); err != nil { + return err + } + } + return nil +} + func AppendLabels(itemLabels map[string]string, columnLabels []string) string { var buffer bytes.Buffer @@ -2135,18 +2214,18 @@ func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) er } t := reflect.TypeOf(obj) if handler := h.handlerMap[t]; handler != nil { - if !h.Options.NoHeaders && t != h.lastType { - headers := append(handler.columns, formatWideHeaders(h.Options.Wide, t)...) - headers = append(headers, formatLabelHeaders(h.Options.ColumnLabels)...) + if !h.options.NoHeaders && t != h.lastType { + headers := append(handler.columns, formatWideHeaders(h.options.Wide, t)...) + headers = append(headers, formatLabelHeaders(h.options.ColumnLabels)...) // LABELS is always the last column. - headers = append(headers, formatShowLabelsHeader(h.Options.ShowLabels, t)...) - if h.Options.WithNamespace { + headers = append(headers, formatShowLabelsHeader(h.options.ShowLabels, t)...) + if h.options.WithNamespace { headers = append(withNamespacePrefixColumns, headers...) } h.printHeader(headers, w) h.lastType = t } - args := []reflect.Value{reflect.ValueOf(obj), reflect.ValueOf(w), reflect.ValueOf(h.Options)} + args := []reflect.Value{reflect.ValueOf(obj), reflect.ValueOf(w), reflect.ValueOf(h.options)} resultValue := handler.printFunc.Call(args)[0] if resultValue.IsNil() { return nil @@ -2175,6 +2254,10 @@ func NewTemplatePrinter(tmpl []byte) (*TemplatePrinter, error) { }, nil } +func (p *TemplatePrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + // PrintObj formats the obj with the Go Template. func (p *TemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error { data, err := json.Marshal(obj) @@ -2322,6 +2405,10 @@ func NewJSONPathPrinter(tmpl string) (*JSONPathPrinter, error) { return &JSONPathPrinter{tmpl, j}, nil } +func (j *JSONPathPrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + // PrintObj formats the obj with the JSONPath Template. func (j *JSONPathPrinter) PrintObj(obj runtime.Object, w io.Writer) error { var queryObj interface{} = obj diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/rolling_updater.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/rolling_updater.go index 2872b1ef6b..4468530891 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/rolling_updater.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/rolling_updater.go @@ -214,7 +214,7 @@ func (r *RollingUpdater) Update(config *RollingUpdaterConfig) error { if desired > 0 && maxUnavailable == 0 && maxSurge == 0 { return fmt.Errorf("one of maxSurge or maxUnavailable must be specified") } - // The minumum pods which must remain available througout the update + // The minimum pods which must remain available throughout the update // calculated for internal convenience. minAvailable := int32(integer.IntMax(0, int(desired-maxUnavailable))) // If the desired new scale is 0, then the max unavailable is necessarily @@ -513,14 +513,14 @@ func (r *RollingUpdater) cleanupWithClients(oldRc, newRc *api.ReplicationControl case DeleteRollingUpdateCleanupPolicy: // delete old rc fmt.Fprintf(config.Out, "Update succeeded. Deleting %s\n", oldRc.Name) - return r.c.ReplicationControllers(r.ns).Delete(oldRc.Name) + return r.c.ReplicationControllers(r.ns).Delete(oldRc.Name, nil) case RenameRollingUpdateCleanupPolicy: // delete old rc fmt.Fprintf(config.Out, "Update succeeded. Deleting old controller: %s\n", oldRc.Name) - if err := r.c.ReplicationControllers(r.ns).Delete(oldRc.Name); err != nil { + if err := r.c.ReplicationControllers(r.ns).Delete(oldRc.Name, nil); err != nil { return err } - fmt.Fprintf(config.Out, "Renaming %s to %s\n", newRc.Name, oldRc.Name) + fmt.Fprintf(config.Out, "Renaming %s to %s\n", oldRc.Name, newRc.Name) return Rename(r.c, newRc, oldRc.Name) case PreserveRollingUpdateCleanupPolicy: return nil @@ -533,13 +533,28 @@ func Rename(c client.ReplicationControllersNamespacer, rc *api.ReplicationContro oldName := rc.Name rc.Name = newName rc.ResourceVersion = "" - - _, err := c.ReplicationControllers(rc.Namespace).Create(rc) + // First delete the oldName RC and orphan its pods. + trueVar := true + err := c.ReplicationControllers(rc.Namespace).Delete(oldName, &api.DeleteOptions{OrphanDependents: &trueVar}) + if err != nil && !errors.IsNotFound(err) { + return err + } + err = wait.Poll(5*time.Second, 60*time.Second, func() (bool, error) { + _, err := c.ReplicationControllers(rc.Namespace).Get(oldName) + if err == nil { + return false, nil + } else if errors.IsNotFound(err) { + return true, nil + } else { + return false, err + } + }) if err != nil { return err } - err = c.ReplicationControllers(rc.Namespace).Delete(oldName) - if err != nil && !errors.IsNotFound(err) { + // Then create the same RC with the new name. + _, err = c.ReplicationControllers(rc.Namespace).Create(rc) + if err != nil { return err } return nil diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/run.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/run.go index 0b89b7814f..c6c3850925 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/run.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/run.go @@ -27,6 +27,7 @@ import ( "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/apis/batch" batchv1 "k8s.io/kubernetes/pkg/apis/batch/v1" + batchv2alpha1 "k8s.io/kubernetes/pkg/apis/batch/v2alpha1" "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/util/validation" @@ -41,6 +42,7 @@ func (DeploymentV1Beta1) ParamNames() []GeneratorParam { {"name", true}, {"replicas", true}, {"image", true}, + {"image-pull-policy", false}, {"port", false}, {"hostport", false}, {"stdin", false}, @@ -89,7 +91,8 @@ func (DeploymentV1Beta1) Generate(genericParams map[string]interface{}) (runtime return nil, err } - if err = updatePodContainers(params, args, envs, podSpec); err != nil { + imagePullPolicy := api.PullPolicy(params["image-pull-policy"]) + if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil { return nil, err } @@ -216,6 +219,7 @@ func (JobV1Beta1) ParamNames() []GeneratorParam { {"default-name", false}, {"name", true}, {"image", true}, + {"image-pull-policy", false}, {"port", false}, {"hostport", false}, {"stdin", false}, @@ -261,7 +265,8 @@ func (JobV1Beta1) Generate(genericParams map[string]interface{}) (runtime.Object return nil, err } - if err = updatePodContainers(params, args, envs, podSpec); err != nil { + imagePullPolicy := api.PullPolicy(params["image-pull-policy"]) + if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil { return nil, err } @@ -311,6 +316,7 @@ func (JobV1) ParamNames() []GeneratorParam { {"default-name", false}, {"name", true}, {"image", true}, + {"image-pull-policy", false}, {"port", false}, {"hostport", false}, {"stdin", false}, @@ -356,7 +362,8 @@ func (JobV1) Generate(genericParams map[string]interface{}) (runtime.Object, err return nil, err } - if err = updateV1PodContainers(params, args, envs, podSpec); err != nil { + imagePullPolicy := v1.PullPolicy(params["image-pull-policy"]) + if err = updateV1PodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil { return nil, err } @@ -394,6 +401,106 @@ func (JobV1) Generate(genericParams map[string]interface{}) (runtime.Object, err return &job, nil } +type ScheduledJobV2Alpha1 struct{} + +func (ScheduledJobV2Alpha1) ParamNames() []GeneratorParam { + return []GeneratorParam{ + {"labels", false}, + {"default-name", false}, + {"name", true}, + {"image", true}, + {"image-pull-policy", false}, + {"port", false}, + {"hostport", false}, + {"stdin", false}, + {"leave-stdin-open", false}, + {"tty", false}, + {"command", false}, + {"args", false}, + {"env", false}, + {"requests", false}, + {"limits", false}, + {"restart", false}, + {"schedule", true}, + } +} + +func (ScheduledJobV2Alpha1) Generate(genericParams map[string]interface{}) (runtime.Object, error) { + args, err := getArgs(genericParams) + if err != nil { + return nil, err + } + + envs, err := getV1Envs(genericParams) + if err != nil { + return nil, err + } + + params, err := getParams(genericParams) + if err != nil { + return nil, err + } + + name, err := getName(params) + if err != nil { + return nil, err + } + + labels, err := getLabels(params, true, name) + if err != nil { + return nil, err + } + + podSpec, err := makeV1PodSpec(params, name) + if err != nil { + return nil, err + } + + imagePullPolicy := v1.PullPolicy(params["image-pull-policy"]) + if err = updateV1PodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil { + return nil, err + } + + leaveStdinOpen, err := GetBool(params, "leave-stdin-open", false) + if err != nil { + return nil, err + } + podSpec.Containers[0].StdinOnce = !leaveStdinOpen && podSpec.Containers[0].Stdin + + if err := updateV1PodPorts(params, podSpec); err != nil { + return nil, err + } + + restartPolicy := v1.RestartPolicy(params["restart"]) + if len(restartPolicy) == 0 { + restartPolicy = v1.RestartPolicyNever + } + podSpec.RestartPolicy = restartPolicy + + scheduledJob := batchv2alpha1.ScheduledJob{ + ObjectMeta: v1.ObjectMeta{ + Name: name, + Labels: labels, + }, + Spec: batchv2alpha1.ScheduledJobSpec{ + Schedule: params["schedule"], + ConcurrencyPolicy: batchv2alpha1.AllowConcurrent, + JobTemplate: batchv2alpha1.JobTemplateSpec{ + Spec: batchv2alpha1.JobSpec{ + Template: v1.PodTemplateSpec{ + ObjectMeta: v1.ObjectMeta{ + Labels: labels, + }, + Spec: *podSpec, + }, + }, + }, + }, + } + + return &scheduledJob, nil +} + type BasicReplicationController struct{} func (BasicReplicationController) ParamNames() []GeneratorParam { @@ -403,6 +510,7 @@ func (BasicReplicationController) ParamNames() []GeneratorParam { {"name", true}, {"replicas", true}, {"image", true}, + {"image-pull-policy", false}, {"port", false}, {"hostport", false}, {"stdin", false}, @@ -591,7 +699,8 @@ func (BasicReplicationController) Generate(genericParams map[string]interface{}) return nil, err } - if err = updatePodContainers(params, args, envs, podSpec); err != nil { + imagePullPolicy := api.PullPolicy(params["image-pull-policy"]) + if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil { return nil, err } @@ -618,7 +727,7 @@ func (BasicReplicationController) Generate(genericParams map[string]interface{}) return &controller, nil } -func updatePodContainers(params map[string]string, args []string, envs []api.EnvVar, podSpec *api.PodSpec) error { +func updatePodContainers(params map[string]string, args []string, envs []api.EnvVar, imagePullPolicy api.PullPolicy, podSpec *api.PodSpec) error { if len(args) > 0 { command, err := GetBool(params, "command", false) if err != nil { @@ -634,10 +743,15 @@ func updatePodContainers(params map[string]string, args []string, envs []api.Env if len(envs) > 0 { podSpec.Containers[0].Env = envs } + + if len(imagePullPolicy) > 0 { + // imagePullPolicy should be valid here since we have verified it before. + podSpec.Containers[0].ImagePullPolicy = imagePullPolicy + } return nil } -func updateV1PodContainers(params map[string]string, args []string, envs []v1.EnvVar, podSpec *v1.PodSpec) error { +func updateV1PodContainers(params map[string]string, args []string, envs []v1.EnvVar, imagePullPolicy v1.PullPolicy, podSpec *v1.PodSpec) error { if len(args) > 0 { command, err := GetBool(params, "command", false) if err != nil { @@ -653,6 +767,11 @@ func updateV1PodContainers(params map[string]string, args []string, envs []v1.En if len(envs) > 0 { podSpec.Containers[0].Env = envs } + + if len(imagePullPolicy) > 0 { + // imagePullPolicy should be valid here since we have verified it before. + podSpec.Containers[0].ImagePullPolicy = imagePullPolicy + } return nil } @@ -732,6 +851,7 @@ func (BasicPod) ParamNames() []GeneratorParam { {"default-name", false}, {"name", true}, {"image", true}, + {"image-pull-policy", false}, {"port", false}, {"hostport", false}, {"stdin", false}, @@ -795,6 +915,8 @@ func (BasicPod) Generate(genericParams map[string]interface{}) (runtime.Object, if len(restartPolicy) == 0 { restartPolicy = api.RestartPolicyAlways } + // TODO: Figure out why we set ImagePullPolicy here, whether we can make it + // consistent with the other places imagePullPolicy is set using flag. pod := api.Pod{ ObjectMeta: api.ObjectMeta{ Name: name, @@ -816,7 +938,8 @@ func (BasicPod) Generate(genericParams map[string]interface{}) (runtime.Object, RestartPolicy: restartPolicy, }, } - if err = updatePodContainers(params, args, envs, &pod.Spec); err != nil { + imagePullPolicy := api.PullPolicy(params["image-pull-policy"]) + if err = updatePodContainers(params, args, envs, imagePullPolicy, &pod.Spec); err != nil { return nil, err } @@ -835,7 +958,7 @@ func parseEnvs(envArray []string) ([]api.EnvVar, error) { } name := env[:pos] value := env[pos+1:] - if len(name) == 0 || len(value) == 0 { + if len(name) == 0 { return nil, fmt.Errorf("invalid env: %v", env) } if len(validation.IsCIdentifier(name)) != 0 { @@ -856,7 +979,7 @@ func parseV1Envs(envArray []string) ([]v1.EnvVar, error) { } name := env[:pos] value := env[pos+1:] - if len(name) == 0 || len(validation.IsCIdentifier(name)) != 0 || len(value) == 0 { + if len(name) == 0 || len(validation.IsCIdentifier(name)) != 0 { return nil, fmt.Errorf("invalid env: %v", env) } envVar := v1.EnvVar{Name: name, Value: value} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/scale.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/scale.go index c2e0f3369a..044be5706f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/scale.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/scale.go @@ -24,10 +24,13 @@ import ( "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/apis/batch" "k8s.io/kubernetes/pkg/apis/extensions" client "k8s.io/kubernetes/pkg/client/unversioned" + "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/util/wait" + "k8s.io/kubernetes/pkg/watch" ) // Scaler provides an interface for resources that can be scaled. @@ -36,9 +39,9 @@ type Scaler interface { // retries in the event of resource version mismatch (if retry is not nil), // and optionally waits until the status of the resource matches newSize (if wait is not nil) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, retry, wait *RetryParams) error - // ScaleSimple does a simple one-shot attempt at scaling - not useful on it's own, but + // ScaleSimple does a simple one-shot attempt at scaling - not useful on its own, but // a necessary building block for Scale - ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) error + ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (updatedResourceVersion string, err error) } func ScalerFor(kind unversioned.GroupKind, c client.Interface) (Scaler, error) { @@ -49,6 +52,8 @@ func ScalerFor(kind unversioned.GroupKind, c client.Interface) (Scaler, error) { return &ReplicaSetScaler{c.Extensions()}, nil case extensions.Kind("Job"), batch.Kind("Job"): return &JobScaler{c.Batch()}, nil // Either kind of job can be scaled with Batch interface. + case apps.Kind("PetSet"): + return &PetSetScaler{c.Apps()}, nil case extensions.Kind("Deployment"): return &DeploymentScaler{c.Extensions()}, nil } @@ -108,9 +113,12 @@ func NewRetryParams(interval, timeout time.Duration) *RetryParams { } // ScaleCondition is a closure around Scale that facilitates retries via util.wait -func ScaleCondition(r Scaler, precondition *ScalePrecondition, namespace, name string, count uint) wait.ConditionFunc { +func ScaleCondition(r Scaler, precondition *ScalePrecondition, namespace, name string, count uint, updatedResourceVersion *string) wait.ConditionFunc { return func() (bool, error) { - err := r.ScaleSimple(namespace, name, precondition, count) + rv, err := r.ScaleSimple(namespace, name, precondition, count) + if updatedResourceVersion != nil { + *updatedResourceVersion = rv + } switch e, _ := err.(ScaleError); err.(type) { case nil: return true, nil @@ -124,6 +132,17 @@ func ScaleCondition(r Scaler, precondition *ScalePrecondition, namespace, name s } } +// ValidatePetSet ensures that the preconditions match. Returns nil if they are valid, an error otherwise. +func (precondition *ScalePrecondition) ValidatePetSet(ps *apps.PetSet) error { + if precondition.Size != -1 && int(ps.Spec.Replicas) != precondition.Size { + return PreconditionError{"replicas", strconv.Itoa(precondition.Size), strconv.Itoa(int(ps.Spec.Replicas))} + } + if len(precondition.ResourceVersion) != 0 && ps.ResourceVersion != precondition.ResourceVersion { + return PreconditionError{"resource version", precondition.ResourceVersion, ps.ResourceVersion} + } + return nil +} + // ValidateReplicationController ensures that the preconditions match. Returns nil if they are valid, an error otherwise func (precondition *ScalePrecondition) ValidateReplicationController(controller *api.ReplicationController) error { if precondition.Size != -1 && int(controller.Spec.Replicas) != precondition.Size { @@ -139,24 +158,27 @@ type ReplicationControllerScaler struct { c client.Interface } -func (scaler *ReplicationControllerScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) error { +// ScaleSimple does a simple one-shot attempt at scaling. It returns the +// resourceVersion of the replication controller if the update is successful. +func (scaler *ReplicationControllerScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) { controller, err := scaler.c.ReplicationControllers(namespace).Get(name) if err != nil { - return ScaleError{ScaleGetFailure, "Unknown", err} + return "", ScaleError{ScaleGetFailure, "Unknown", err} } if preconditions != nil { if err := preconditions.ValidateReplicationController(controller); err != nil { - return err + return "", err } } controller.Spec.Replicas = int32(newSize) - if _, err := scaler.c.ReplicationControllers(namespace).Update(controller); err != nil { + updatedRC, err := scaler.c.ReplicationControllers(namespace).Update(controller) + if err != nil { if errors.IsConflict(err) { - return ScaleError{ScaleUpdateConflictFailure, controller.ResourceVersion, err} + return "", ScaleError{ScaleUpdateConflictFailure, controller.ResourceVersion, err} } - return ScaleError{ScaleUpdateFailure, controller.ResourceVersion, err} + return "", ScaleError{ScaleUpdateFailure, controller.ResourceVersion, err} } - return nil + return updatedRC.ObjectMeta.ResourceVersion, nil } // Scale updates a ReplicationController to a new size, with optional precondition check (if preconditions is not nil), @@ -170,20 +192,51 @@ func (scaler *ReplicationControllerScaler) Scale(namespace, name string, newSize // Make it try only once, immediately retry = &RetryParams{Interval: time.Millisecond, Timeout: time.Millisecond} } - cond := ScaleCondition(scaler, preconditions, namespace, name, newSize) - if err := wait.Poll(retry.Interval, retry.Timeout, cond); err != nil { + var updatedResourceVersion string + cond := ScaleCondition(scaler, preconditions, namespace, name, newSize, &updatedResourceVersion) + if err := wait.PollImmediate(retry.Interval, retry.Timeout, cond); err != nil { return err } if waitForReplicas != nil { - rc, err := scaler.c.ReplicationControllers(namespace).Get(name) + checkRC := func(rc *api.ReplicationController) bool { + if uint(rc.Spec.Replicas) != newSize { + // the size is changed by other party. Don't need to wait for the new change to complete. + return true + } + return rc.Status.ObservedGeneration >= rc.Generation && rc.Status.Replicas == rc.Spec.Replicas + } + // If number of replicas doesn't change, then the update may not event + // be sent to underlying databse (we don't send no-op changes). + // In such case, will have value of the most + // recent update (which may be far in the past) so we may get "too old + // RV" error from watch or potentially no ReplicationController events + // will be deliver, since it may already be in the expected state. + // To protect from these two, we first issue Get() to ensure that we + // are not already in the expected state. + currentRC, err := scaler.c.ReplicationControllers(namespace).Get(name) if err != nil { return err } - err = wait.Poll(waitForReplicas.Interval, waitForReplicas.Timeout, client.ControllerHasDesiredReplicas(scaler.c, rc)) - if err == wait.ErrWaitTimeout { - return fmt.Errorf("timed out waiting for %q to be synced", name) + if !checkRC(currentRC) { + watchOptions := api.ListOptions{ + FieldSelector: fields.OneTermEqualSelector("metadata.name", name), + ResourceVersion: updatedResourceVersion, + } + watcher, err := scaler.c.ReplicationControllers(namespace).Watch(watchOptions) + if err != nil { + return err + } + _, err = watch.Until(waitForReplicas.Timeout, watcher, func(event watch.Event) (bool, error) { + if event.Type != watch.Added && event.Type != watch.Modified { + return false, nil + } + return checkRC(event.Object.(*api.ReplicationController)), nil + }) + if err == wait.ErrWaitTimeout { + return fmt.Errorf("timed out waiting for %q to be synced", name) + } + return err } - return err } return nil } @@ -203,24 +256,27 @@ type ReplicaSetScaler struct { c client.ExtensionsInterface } -func (scaler *ReplicaSetScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) error { +// ScaleSimple does a simple one-shot attempt at scaling. It returns the +// resourceVersion of the replicaset if the update is successful. +func (scaler *ReplicaSetScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) { rs, err := scaler.c.ReplicaSets(namespace).Get(name) if err != nil { - return ScaleError{ScaleGetFailure, "Unknown", err} + return "", ScaleError{ScaleGetFailure, "Unknown", err} } if preconditions != nil { if err := preconditions.ValidateReplicaSet(rs); err != nil { - return err + return "", err } } rs.Spec.Replicas = int32(newSize) - if _, err := scaler.c.ReplicaSets(namespace).Update(rs); err != nil { + updatedRS, err := scaler.c.ReplicaSets(namespace).Update(rs) + if err != nil { if errors.IsConflict(err) { - return ScaleError{ScaleUpdateConflictFailure, rs.ResourceVersion, err} + return "", ScaleError{ScaleUpdateConflictFailure, rs.ResourceVersion, err} } - return ScaleError{ScaleUpdateFailure, rs.ResourceVersion, err} + return "", ScaleError{ScaleUpdateFailure, rs.ResourceVersion, err} } - return nil + return updatedRS.ObjectMeta.ResourceVersion, nil } // Scale updates a ReplicaSet to a new size, with optional precondition check (if preconditions is @@ -234,7 +290,7 @@ func (scaler *ReplicaSetScaler) Scale(namespace, name string, newSize uint, prec // Make it try only once, immediately retry = &RetryParams{Interval: time.Millisecond, Timeout: time.Millisecond} } - cond := ScaleCondition(scaler, preconditions, namespace, name, newSize) + cond := ScaleCondition(scaler, preconditions, namespace, name, newSize, nil) if err := wait.Poll(retry.Interval, retry.Timeout, cond); err != nil { return err } @@ -244,6 +300,7 @@ func (scaler *ReplicaSetScaler) Scale(namespace, name string, newSize uint, prec return err } err = wait.Poll(waitForReplicas.Interval, waitForReplicas.Timeout, client.ReplicaSetHasDesiredReplicas(scaler.c, rs)) + if err == wait.ErrWaitTimeout { return fmt.Errorf("timed out waiting for %q to be synced", name) } @@ -266,30 +323,85 @@ func (precondition *ScalePrecondition) ValidateJob(job *batch.Job) error { return nil } +type PetSetScaler struct { + c client.AppsInterface +} + +// ScaleSimple does a simple one-shot attempt at scaling. It returns the +// resourceVersion of the petset if the update is successful. +func (scaler *PetSetScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) { + ps, err := scaler.c.PetSets(namespace).Get(name) + if err != nil { + return "", ScaleError{ScaleGetFailure, "Unknown", err} + } + if preconditions != nil { + if err := preconditions.ValidatePetSet(ps); err != nil { + return "", err + } + } + ps.Spec.Replicas = int(newSize) + updatedPetSet, err := scaler.c.PetSets(namespace).Update(ps) + if err != nil { + if errors.IsConflict(err) { + return "", ScaleError{ScaleUpdateConflictFailure, ps.ResourceVersion, err} + } + return "", ScaleError{ScaleUpdateFailure, ps.ResourceVersion, err} + } + return updatedPetSet.ResourceVersion, nil +} + +func (scaler *PetSetScaler) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, retry, waitForReplicas *RetryParams) error { + if preconditions == nil { + preconditions = &ScalePrecondition{-1, ""} + } + if retry == nil { + // Make it try only once, immediately + retry = &RetryParams{Interval: time.Millisecond, Timeout: time.Millisecond} + } + cond := ScaleCondition(scaler, preconditions, namespace, name, newSize, nil) + if err := wait.Poll(retry.Interval, retry.Timeout, cond); err != nil { + return err + } + if waitForReplicas != nil { + job, err := scaler.c.PetSets(namespace).Get(name) + if err != nil { + return err + } + err = wait.Poll(waitForReplicas.Interval, waitForReplicas.Timeout, client.PetSetHasDesiredPets(scaler.c, job)) + if err == wait.ErrWaitTimeout { + return fmt.Errorf("timed out waiting for %q to be synced", name) + } + return err + } + return nil +} + type JobScaler struct { c client.BatchInterface } -// ScaleSimple is responsible for updating job's parallelism. -func (scaler *JobScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) error { +// ScaleSimple is responsible for updating job's parallelism. It returns the +// resourceVersion of the job if the update is successful. +func (scaler *JobScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) { job, err := scaler.c.Jobs(namespace).Get(name) if err != nil { - return ScaleError{ScaleGetFailure, "Unknown", err} + return "", ScaleError{ScaleGetFailure, "Unknown", err} } if preconditions != nil { if err := preconditions.ValidateJob(job); err != nil { - return err + return "", err } } parallelism := int32(newSize) job.Spec.Parallelism = ¶llelism - if _, err := scaler.c.Jobs(namespace).Update(job); err != nil { + udpatedJob, err := scaler.c.Jobs(namespace).Update(job) + if err != nil { if errors.IsConflict(err) { - return ScaleError{ScaleUpdateConflictFailure, job.ResourceVersion, err} + return "", ScaleError{ScaleUpdateConflictFailure, job.ResourceVersion, err} } - return ScaleError{ScaleUpdateFailure, job.ResourceVersion, err} + return "", ScaleError{ScaleUpdateFailure, job.ResourceVersion, err} } - return nil + return udpatedJob.ObjectMeta.ResourceVersion, nil } // Scale updates a Job to a new size, with optional precondition check (if preconditions is not nil), @@ -303,7 +415,7 @@ func (scaler *JobScaler) Scale(namespace, name string, newSize uint, preconditio // Make it try only once, immediately retry = &RetryParams{Interval: time.Millisecond, Timeout: time.Millisecond} } - cond := ScaleCondition(scaler, preconditions, namespace, name, newSize) + cond := ScaleCondition(scaler, preconditions, namespace, name, newSize, nil) if err := wait.Poll(retry.Interval, retry.Timeout, cond); err != nil { return err } @@ -336,28 +448,31 @@ type DeploymentScaler struct { c client.ExtensionsInterface } -// ScaleSimple is responsible for updating a deployment's desired replicas count. -func (scaler *DeploymentScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) error { +// ScaleSimple is responsible for updating a deployment's desired replicas +// count. It returns the resourceVersion of the deployment if the update is +// successful. +func (scaler *DeploymentScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) { deployment, err := scaler.c.Deployments(namespace).Get(name) if err != nil { - return ScaleError{ScaleGetFailure, "Unknown", err} + return "", ScaleError{ScaleGetFailure, "Unknown", err} } if preconditions != nil { if err := preconditions.ValidateDeployment(deployment); err != nil { - return err + return "", err } } // TODO(madhusudancs): Fix this when Scale group issues are resolved (see issue #18528). // For now I'm falling back to regular Deployment update operation. deployment.Spec.Replicas = int32(newSize) - if _, err := scaler.c.Deployments(namespace).Update(deployment); err != nil { + updatedDeployment, err := scaler.c.Deployments(namespace).Update(deployment) + if err != nil { if errors.IsConflict(err) { - return ScaleError{ScaleUpdateConflictFailure, deployment.ResourceVersion, err} + return "", ScaleError{ScaleUpdateConflictFailure, deployment.ResourceVersion, err} } - return ScaleError{ScaleUpdateFailure, deployment.ResourceVersion, err} + return "", ScaleError{ScaleUpdateFailure, deployment.ResourceVersion, err} } - return nil + return updatedDeployment.ObjectMeta.ResourceVersion, nil } // Scale updates a deployment to a new size, with optional precondition check (if preconditions is not nil), @@ -370,7 +485,7 @@ func (scaler *DeploymentScaler) Scale(namespace, name string, newSize uint, prec // Make it try only once, immediately retry = &RetryParams{Interval: time.Millisecond, Timeout: time.Millisecond} } - cond := ScaleCondition(scaler, preconditions, namespace, name, newSize) + cond := ScaleCondition(scaler, preconditions, namespace, name, newSize, nil) if err := wait.Poll(retry.Interval, retry.Timeout, cond); err != nil { return err } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service.go index 891e9de834..604dbf327e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service.go @@ -72,6 +72,7 @@ func paramNames() []GeneratorParam { {"target-port", false}, {"port-name", false}, {"session-affinity", false}, + {"cluster-ip", false}, } } @@ -180,11 +181,11 @@ func generate(genericParams map[string]interface{}) (runtime.Object, error) { Ports: ports, }, } - targetPortString, found := params["target-port"] - if !found { - targetPortString, found = params["container-port"] + targetPortString := params["target-port"] + if len(targetPortString) == 0 { + targetPortString = params["container-port"] } - if found && len(targetPortString) > 0 { + if len(targetPortString) > 0 { var targetPort intstr.IntOrString if portNum, err := strconv.Atoi(targetPortString); err != nil { targetPort = intstr.FromString(targetPortString) @@ -225,5 +226,12 @@ func generate(genericParams map[string]interface{}) (runtime.Object, error) { return nil, fmt.Errorf("unknown session affinity: %s", params["session-affinity"]) } } + if len(params["cluster-ip"]) != 0 { + if params["cluster-ip"] == "None" { + service.Spec.ClusterIP = api.ClusterIPNone + } else { + service.Spec.ClusterIP = params["cluster-ip"] + } + } return &service, nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service_basic.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service_basic.go new file mode 100644 index 0000000000..ee080aae3a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/service_basic.go @@ -0,0 +1,207 @@ +/* +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 kubectl + +import ( + "fmt" + "strconv" + "strings" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/util/intstr" +) + +type ServiceCommonGeneratorV1 struct { + Name string + TCP []string + Type api.ServiceType + ClusterIP string +} + +type ServiceClusterIPGeneratorV1 struct { + ServiceCommonGeneratorV1 +} + +type ServiceNodePortGeneratorV1 struct { + ServiceCommonGeneratorV1 +} + +type ServiceLoadBalancerGeneratorV1 struct { + ServiceCommonGeneratorV1 +} + +func (ServiceClusterIPGeneratorV1) ParamNames() []GeneratorParam { + return []GeneratorParam{ + {"name", true}, + {"tcp", true}, + {"clusterip", false}, + } +} +func (ServiceNodePortGeneratorV1) ParamNames() []GeneratorParam { + return []GeneratorParam{ + {"name", true}, + {"tcp", true}, + } +} +func (ServiceLoadBalancerGeneratorV1) ParamNames() []GeneratorParam { + return []GeneratorParam{ + {"name", true}, + {"tcp", true}, + } +} + +func parsePorts(portString string) (int32, intstr.IntOrString, error) { + portStringSlice := strings.Split(portString, ":") + + port, err := strconv.Atoi(portStringSlice[0]) + if err != nil { + return 0, intstr.FromInt(0), err + } + if len(portStringSlice) == 1 { + return int32(port), intstr.FromInt(int(port)), nil + } + + var targetPort intstr.IntOrString + if portNum, err := strconv.Atoi(portStringSlice[1]); err != nil { + targetPort = intstr.FromString(portStringSlice[1]) + } else { + targetPort = intstr.FromInt(portNum) + } + return int32(port), targetPort, nil +} + +func (s ServiceCommonGeneratorV1) GenerateCommon(params map[string]interface{}) error { + name, isString := params["name"].(string) + if !isString { + return fmt.Errorf("expected string, saw %v for 'name'", name) + } + tcpStrings, isArray := params["tcp"].([]string) + if !isArray { + return fmt.Errorf("expected []string, found :%v", tcpStrings) + } + clusterip, isString := params["clusterip"].(string) + if !isString { + return fmt.Errorf("expected string, saw %v for 'clusterip'", clusterip) + } + s.Name = name + s.TCP = tcpStrings + s.ClusterIP = clusterip + return nil +} + +func (s ServiceLoadBalancerGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) { + err := ValidateParams(s.ParamNames(), params) + if err != nil { + return nil, err + } + delegate := &ServiceCommonGeneratorV1{Type: api.ServiceTypeLoadBalancer, ClusterIP: ""} + err = delegate.GenerateCommon(params) + if err != nil { + return nil, err + } + return delegate.StructuredGenerate() +} + +func (s ServiceNodePortGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) { + err := ValidateParams(s.ParamNames(), params) + if err != nil { + return nil, err + } + delegate := &ServiceCommonGeneratorV1{Type: api.ServiceTypeNodePort, ClusterIP: ""} + err = delegate.GenerateCommon(params) + if err != nil { + return nil, err + } + return delegate.StructuredGenerate() +} + +func (s ServiceClusterIPGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) { + err := ValidateParams(s.ParamNames(), params) + if err != nil { + return nil, err + } + delegate := &ServiceCommonGeneratorV1{Type: api.ServiceTypeClusterIP, ClusterIP: ""} + err = delegate.GenerateCommon(params) + if err != nil { + return nil, err + } + return delegate.StructuredGenerate() +} + +// validate validates required fields are set to support structured generation +func (s ServiceCommonGeneratorV1) validate() error { + if len(s.Name) == 0 { + return fmt.Errorf("name must be specified") + } + if len(s.Type) == 0 { + return fmt.Errorf("type must be specified") + } + if s.ClusterIP == api.ClusterIPNone && s.Type != api.ServiceTypeClusterIP { + return fmt.Errorf("ClusterIP=None can only be used with ClusterIP service type") + } + if s.ClusterIP == api.ClusterIPNone && len(s.TCP) > 0 { + return fmt.Errorf("can not map ports with clusterip=None") + } + if s.ClusterIP != api.ClusterIPNone && len(s.TCP) == 0 { + return fmt.Errorf("at least one tcp port specifier must be provided") + } + return nil +} + +func (s ServiceCommonGeneratorV1) StructuredGenerate() (runtime.Object, error) { + err := s.validate() + if err != nil { + return nil, err + } + ports := []api.ServicePort{} + for _, tcpString := range s.TCP { + port, targetPort, err := parsePorts(tcpString) + if err != nil { + return nil, err + } + portName := strings.Replace(tcpString, ":", "-", -1) + ports = append(ports, api.ServicePort{ + Name: portName, + Port: port, + TargetPort: targetPort, + Protocol: api.Protocol("TCP"), + }) + } + + // setup default label and selector + labels := map[string]string{} + labels["app"] = s.Name + selector := map[string]string{} + selector["app"] = s.Name + + service := api.Service{ + ObjectMeta: api.ObjectMeta{ + Name: s.Name, + Labels: labels, + }, + Spec: api.ServiceSpec{ + Type: api.ServiceType(s.Type), + Selector: selector, + Ports: ports, + }, + } + if len(s.ClusterIP) > 0 { + service.Spec.ClusterIP = s.ClusterIP + } + return &service, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/sorting_printer.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/sorting_printer.go index c2c97f37d7..3e797fa3c9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/sorting_printer.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/sorting_printer.go @@ -40,6 +40,10 @@ type SortingPrinter struct { Decoder runtime.Decoder } +func (s *SortingPrinter) FinishPrint(w io.Writer, res string) error { + return nil +} + func (s *SortingPrinter) PrintObj(obj runtime.Object, out io.Writer) error { if !meta.IsListType(obj) { return s.Delegate.PrintObj(obj, out) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/stop.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/stop.go index 1d3a891bb7..010edbf1e5 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/stop.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubectl/stop.go @@ -25,6 +25,7 @@ import ( "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/meta" "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/apis/apps" "k8s.io/kubernetes/pkg/apis/batch" "k8s.io/kubernetes/pkg/apis/extensions" client "k8s.io/kubernetes/pkg/client/unversioned" @@ -32,6 +33,7 @@ import ( "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/util" utilerrors "k8s.io/kubernetes/pkg/util/errors" + "k8s.io/kubernetes/pkg/util/uuid" "k8s.io/kubernetes/pkg/util/wait" ) @@ -81,6 +83,9 @@ func ReaperFor(kind unversioned.GroupKind, c client.Interface) (Reaper, error) { case extensions.Kind("Job"), batch.Kind("Job"): return &JobReaper{c, Interval, Timeout}, nil + case apps.Kind("PetSet"): + return &PetSetReaper{c, Interval, Timeout}, nil + case extensions.Kind("Deployment"): return &DeploymentReaper{c, Interval, Timeout}, nil @@ -118,6 +123,10 @@ type PodReaper struct { type ServiceReaper struct { client.Interface } +type PetSetReaper struct { + client.Interface + pollInterval, timeout time.Duration +} type objInterface interface { Delete(name string) error @@ -201,7 +210,9 @@ func (reaper *ReplicationControllerReaper) Stop(namespace, name string, timeout return err } } - return rc.Delete(name) + falseVar := false + deleteOptions := &api.DeleteOptions{OrphanDependents: &falseVar} + return rc.Delete(name, deleteOptions) } // TODO(madhusudancs): Implement it when controllerRef is implemented - https://github.com/kubernetes/kubernetes/issues/2210 @@ -273,10 +284,9 @@ func (reaper *ReplicaSetReaper) Stop(namespace, name string, timeout time.Durati } } - if err := rsc.Delete(name, nil); err != nil { - return err - } - return nil + falseVar := false + deleteOptions := &api.DeleteOptions{OrphanDependents: &falseVar} + return rsc.Delete(name, deleteOptions) } func (reaper *DaemonSetReaper) Stop(namespace, name string, timeout time.Duration, gracePeriod *api.DeleteOptions) error { @@ -290,7 +300,7 @@ func (reaper *DaemonSetReaper) Stop(namespace, name string, timeout time.Duratio // daemon pods. Once it's done deleting the daemon pods, it's safe to delete // the DaemonSet. ds.Spec.Template.Spec.NodeSelector = map[string]string{ - string(util.NewUUID()): string(util.NewUUID()), + string(uuid.NewUUID()): string(uuid.NewUUID()), } // force update to avoid version conflict ds.ResourceVersion = "" @@ -305,6 +315,7 @@ func (reaper *DaemonSetReaper) Stop(namespace, name string, timeout time.Duratio if err != nil { return false, nil } + return updatedDS.Status.CurrentNumberScheduled+updatedDS.Status.NumberMisscheduled == 0, nil }); err != nil { return err @@ -313,6 +324,53 @@ func (reaper *DaemonSetReaper) Stop(namespace, name string, timeout time.Duratio return reaper.Extensions().DaemonSets(namespace).Delete(name) } +func (reaper *PetSetReaper) Stop(namespace, name string, timeout time.Duration, gracePeriod *api.DeleteOptions) error { + petsets := reaper.Apps().PetSets(namespace) + scaler, err := ScalerFor(apps.Kind("PetSet"), *reaper) + if err != nil { + return err + } + ps, err := petsets.Get(name) + if err != nil { + return err + } + if timeout == 0 { + numPets := ps.Spec.Replicas + timeout = Timeout + time.Duration(10*numPets)*time.Second + } + retry := NewRetryParams(reaper.pollInterval, reaper.timeout) + waitForPetSet := NewRetryParams(reaper.pollInterval, reaper.timeout) + if err = scaler.Scale(namespace, name, 0, nil, retry, waitForPetSet); err != nil { + return err + } + + // TODO: This shouldn't be needed, see corresponding TODO in PetSetHasDesiredPets. + // PetSet should track generation number. + pods := reaper.Pods(namespace) + selector, _ := unversioned.LabelSelectorAsSelector(ps.Spec.Selector) + options := api.ListOptions{LabelSelector: selector} + podList, err := pods.List(options) + if err != nil { + return err + } + + errList := []error{} + for _, pod := range podList.Items { + if err := pods.Delete(pod.Name, gracePeriod); err != nil { + if !errors.IsNotFound(err) { + errList = append(errList, err) + } + } + } + if len(errList) > 0 { + return utilerrors.NewAggregate(errList) + } + + // TODO: Cleanup volumes? We don't want to accidentally delete volumes from + // stop, so just leave this up to the the petset. + return petsets.Delete(name, nil) +} + func (reaper *JobReaper) Stop(namespace, name string, timeout time.Duration, gracePeriod *api.DeleteOptions) error { jobs := reaper.Batch().Jobs(namespace) pods := reaper.Pods(namespace) @@ -397,9 +455,10 @@ func (reaper *DeploymentReaper) Stop(namespace, name string, timeout time.Durati for _, rc := range rsList.Items { if err := rsReaper.Stop(rc.Namespace, rc.Name, timeout, gracePeriod); err != nil { scaleGetErr, ok := err.(*ScaleError) - if !errors.IsNotFound(err) || ok && !errors.IsNotFound(scaleGetErr.ActualError) { - errList = append(errList, err) + if errors.IsNotFound(err) || (ok && errors.IsNotFound(scaleGetErr.ActualError)) { + continue } + errList = append(errList, err) } } if len(errList) > 0 { @@ -407,7 +466,7 @@ func (reaper *DeploymentReaper) Stop(namespace, name string, timeout time.Durati } // Delete deployment at the end. - // Note: We delete deployment at the end so that if removing RSs fails, we atleast have the deployment to retry. + // Note: We delete deployment at the end so that if removing RSs fails, we at least have the deployment to retry. return deployments.Delete(name, nil) } @@ -424,7 +483,11 @@ func (reaper *DeploymentReaper) updateDeploymentWithRetries(namespace, name stri if deployment, err = deployments.Update(deployment); err == nil { return true, nil } - return false, nil + // Retry only on update conflict. + if errors.IsConflict(err) { + return false, nil + } + return false, err }) return deployment, err } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/constants.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/constants.go new file mode 100644 index 0000000000..eeabba0174 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/constants.go @@ -0,0 +1,22 @@ +/* +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 types + +const ( + // system default DNS resolver configuration + ResolvConfDefault = "/etc/resolv.conf" +) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/doc.go new file mode 100644 index 0000000000..0d9efe50f0 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/doc.go @@ -0,0 +1,18 @@ +/* +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. +*/ + +// Common types in the Kubelet. +package types diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/labels.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/labels.go new file mode 100644 index 0000000000..c4dad6302e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/labels.go @@ -0,0 +1,40 @@ +/* +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 types + +const ( + KubernetesPodNameLabel = "io.kubernetes.pod.name" + KubernetesPodNamespaceLabel = "io.kubernetes.pod.namespace" + KubernetesPodUIDLabel = "io.kubernetes.pod.uid" + KubernetesContainerNameLabel = "io.kubernetes.container.name" +) + +func GetContainerName(labels map[string]string) string { + return labels[KubernetesContainerNameLabel] +} + +func GetPodName(labels map[string]string) string { + return labels[KubernetesPodNameLabel] +} + +func GetPodUID(labels map[string]string) string { + return labels[KubernetesPodUIDLabel] +} + +func GetPodNamespace(labels map[string]string) string { + return labels[KubernetesPodNamespaceLabel] +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/pod_update.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/pod_update.go new file mode 100644 index 0000000000..e98489df6b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/pod_update.go @@ -0,0 +1,133 @@ +/* +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 types + +import ( + "fmt" + + "k8s.io/kubernetes/pkg/api" +) + +const ConfigSourceAnnotationKey = "kubernetes.io/config.source" +const ConfigMirrorAnnotationKey = "kubernetes.io/config.mirror" +const ConfigFirstSeenAnnotationKey = "kubernetes.io/config.seen" +const ConfigHashAnnotationKey = "kubernetes.io/config.hash" + +// PodOperation defines what changes will be made on a pod configuration. +type PodOperation int + +const ( + // This is the current pod configuration + SET PodOperation = iota + // Pods with the given ids are new to this source + ADD + // Pods with the given ids are gracefully deleted from this source + DELETE + // Pods with the given ids have been removed from this source + REMOVE + // Pods with the given ids have been updated in this source + UPDATE + // Pods with the given ids have unexpected status in this source, + // kubelet should reconcile status with this source + RECONCILE + + // These constants identify the sources of pods + // Updates from a file + FileSource = "file" + // Updates from querying a web page + HTTPSource = "http" + // Updates from Kubernetes API Server + ApiserverSource = "api" + // Updates from all sources + AllSource = "*" + + NamespaceDefault = api.NamespaceDefault +) + +// PodUpdate defines an operation sent on the channel. You can add or remove single services by +// sending an array of size one and Op == ADD|REMOVE (with REMOVE, only the ID is required). +// For setting the state of the system to a given state for this source configuration, set +// Pods as desired and Op to SET, which will reset the system state to that specified in this +// operation for this source channel. To remove all pods, set Pods to empty object and Op to SET. +// +// Additionally, Pods should never be nil - it should always point to an empty slice. While +// functionally similar, this helps our unit tests properly check that the correct PodUpdates +// are generated. +type PodUpdate struct { + Pods []*api.Pod + Op PodOperation + Source string +} + +// Gets all validated sources from the specified sources. +func GetValidatedSources(sources []string) ([]string, error) { + validated := make([]string, 0, len(sources)) + for _, source := range sources { + switch source { + case AllSource: + return []string{FileSource, HTTPSource, ApiserverSource}, nil + case FileSource, HTTPSource, ApiserverSource: + validated = append(validated, source) + break + case "": + break + default: + return []string{}, fmt.Errorf("unknown pod source %q", source) + } + } + return validated, nil +} + +// GetPodSource returns the source of the pod based on the annotation. +func GetPodSource(pod *api.Pod) (string, error) { + if pod.Annotations != nil { + if source, ok := pod.Annotations[ConfigSourceAnnotationKey]; ok { + return source, nil + } + } + return "", fmt.Errorf("cannot get source of pod %q", pod.UID) +} + +// SyncPodType classifies pod updates, eg: create, update. +type SyncPodType int + +const ( + // SyncPodSync is when the pod is synced to ensure desired state + SyncPodSync SyncPodType = iota + // SyncPodUpdate is when the pod is updated from source + SyncPodUpdate + // SyncPodCreate is when the pod is created from source + SyncPodCreate + // SyncPodKill is when the pod is killed based on a trigger internal to the kubelet for eviction. + // If a SyncPodKill request is made to pod workers, the request is never dropped, and will always be processed. + SyncPodKill +) + +func (sp SyncPodType) String() string { + switch sp { + case SyncPodCreate: + return "create" + case SyncPodUpdate: + return "update" + case SyncPodSync: + return "sync" + case SyncPodKill: + return "kill" + default: + return "unknown" + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/types.go new file mode 100644 index 0000000000..017c3c8cb3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/kubelet/types/types.go @@ -0,0 +1,93 @@ +/* +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 types + +import ( + "net/http" + "time" + + "k8s.io/kubernetes/pkg/api" +) + +// TODO: Reconcile custom types in kubelet/types and this subpackage + +type HttpGetter interface { + Get(url string) (*http.Response, error) +} + +// Timestamp wraps around time.Time and offers utilities to format and parse +// the time using RFC3339Nano +type Timestamp struct { + time time.Time +} + +// NewTimestamp returns a Timestamp object using the current time. +func NewTimestamp() *Timestamp { + return &Timestamp{time.Now()} +} + +// ConvertToTimestamp takes a string, parses it using the RFC3339Nano layout, +// and converts it to a Timestamp object. +func ConvertToTimestamp(timeString string) *Timestamp { + parsed, _ := time.Parse(time.RFC3339Nano, timeString) + return &Timestamp{parsed} +} + +// Get returns the time as time.Time. +func (t *Timestamp) Get() time.Time { + return t.time +} + +// GetString returns the time in the string format using the RFC3339Nano +// layout. +func (t *Timestamp) GetString() string { + return t.time.Format(time.RFC3339Nano) +} + +// A type to help sort container statuses based on container names. +type SortedContainerStatuses []api.ContainerStatus + +func (s SortedContainerStatuses) Len() int { return len(s) } +func (s SortedContainerStatuses) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +func (s SortedContainerStatuses) Less(i, j int) bool { + return s[i].Name < s[j].Name +} + +// SortInitContainerStatuses ensures that statuses are in the order that their +// init container appears in the pod spec +func SortInitContainerStatuses(p *api.Pod, statuses []api.ContainerStatus) { + containers := p.Spec.InitContainers + current := 0 + for _, container := range containers { + for j := current; j < len(statuses); j++ { + if container.Name == statuses[j].Name { + statuses[current], statuses[j] = statuses[j], statuses[current] + current++ + break + } + } + } +} + +// Reservation represents reserved resources for non-pod components. +type Reservation struct { + // System represents resources reserved for non-kubernetes components. + System api.ResourceList + // Kubernetes represents resources reserved for kubernetes system components. + Kubernetes api.ResourceList +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/labels/labels.go b/ingress/vendor/k8s.io/kubernetes/pkg/labels/labels.go index 637a45fd38..822b137a9e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/labels/labels.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/labels/selector.go b/ingress/vendor/k8s.io/kubernetes/pkg/labels/selector.go index 861b6eab89..703cf7aa1b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/labels/selector.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/labels/selector.go @@ -24,10 +24,14 @@ import ( "strings" "github.com/golang/glog" + "k8s.io/kubernetes/pkg/selection" "k8s.io/kubernetes/pkg/util/sets" "k8s.io/kubernetes/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 } @@ -190,7 +184,7 @@ func (r *Requirement) Matches(ls Labels) bool { // There should be only one strValue in r.strValues, and can be converted to a integer. if len(r.strValues) != 1 { - glog.V(10).Infof("Invalid values count %+v of requirement %+v, for 'Gt', 'Lt' operators, exactly one value is required", len(r.strValues), r) + glog.V(10).Infof("Invalid values count %+v of requirement %#v, for 'Gt', 'Lt' operators, exactly one value is required", len(r.strValues), r) return false } @@ -198,11 +192,11 @@ func (r *Requirement) Matches(ls Labels) bool { for strValue := range r.strValues { rValue, err = strconv.ParseInt(strValue, 10, 64) if err != nil { - glog.V(10).Infof("ParseInt failed for value %+v in requirement %+v, for 'Gt', 'Lt' operators, the value must be an integer", strValue, r) + glog.V(10).Infof("ParseInt failed for value %+v in requirement %#v, for 'Gt', 'Lt' operators, the value must be an integer", strValue, r) 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/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/matcher.go b/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/matcher.go index a3ca2bddfa..16e5851b8f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/matcher.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/matcher.go @@ -21,13 +21,14 @@ import ( "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/storage" ) // AttrFunc returns label and field sets for List or Watch to compare against, or an error. type AttrFunc func(obj runtime.Object) (label labels.Set, field fields.Set, err error) -// ObjectMetaFieldsSet returns a fields set that represents the ObjectMeta. -func ObjectMetaFieldsSet(objectMeta api.ObjectMeta, hasNamespaceField bool) fields.Set { +// ObjectMetaFieldsSet returns a fields that represents the ObjectMeta. +func ObjectMetaFieldsSet(objectMeta *api.ObjectMeta, hasNamespaceField bool) fields.Set { if !hasNamespaceField { return fields.Set{ "metadata.name": objectMeta.Name, @@ -50,9 +51,10 @@ func MergeFieldsSets(source fields.Set, fragment fields.Set) fields.Set { // SelectionPredicate implements a generic predicate that can be passed to // GenericRegistry's List or Watch methods. Implements the Matcher interface. type SelectionPredicate struct { - Label labels.Selector - Field fields.Selector - GetAttrs AttrFunc + Label labels.Selector + Field fields.Selector + GetAttrs AttrFunc + IndexFields []string } // Matches returns true if the given object's labels and fields (as @@ -66,7 +68,11 @@ func (s *SelectionPredicate) Matches(obj runtime.Object) (bool, error) { if err != nil { return false, err } - return s.Label.Matches(labels) && s.Field.Matches(fields), nil + matched := s.Label.Matches(labels) + if s.Field != nil { + matched = (matched && s.Field.Matches(fields)) + } + return matched, nil } // MatchesSingle will return (name, true) if and only if s.Field matches on the object's @@ -79,6 +85,20 @@ func (s *SelectionPredicate) MatchesSingle() (string, bool) { return "", false } +// For any index defined by IndexFields, if a matcher can match only (a subset) +// of objects that return for a given index, a pair (, ) +// wil be returned. +// TODO: Consider supporting also labels. +func (s *SelectionPredicate) MatcherIndex() []storage.MatchValue { + var result []storage.MatchValue + for _, field := range s.IndexFields { + if value, ok := s.Field.RequiresExactMatch(field); ok { + result = append(result, storage.MatchValue{IndexName: field, Value: value}) + } + } + return result +} + // Matcher can return true if an object matches the Matcher's selection // criteria. If it is known that the matcher will match only a single object // then MatchesSingle should return the key of that object and true. This is an @@ -93,50 +113,13 @@ type Matcher interface { // include the object's namespace. MatchesSingle() (key string, matchesSingleObject bool) - // TODO: when we start indexing objects, add something like the below: - // MatchesIndices() (indexName []string, indexValue []string) - // where indexName/indexValue are the same length. -} - -// MatcherFunc makes a matcher from the provided function. For easy definition -// of matchers for testing. Note: use SelectionPredicate above for real code! -func MatcherFunc(f func(obj runtime.Object) (bool, error)) Matcher { - return matcherFunc(f) -} - -type matcherFunc func(obj runtime.Object) (bool, error) - -// Matches calls the embedded function. -func (m matcherFunc) Matches(obj runtime.Object) (bool, error) { - return m(obj) -} - -// MatchesSingle always returns "", false-- because this is a predicate -// implementation of Matcher. -func (m matcherFunc) MatchesSingle() (string, bool) { - return "", false -} - -// MatchOnKey returns a matcher that will send only the object matching key -// through the matching function f. For testing! -// Note: use SelectionPredicate above for real code! -func MatchOnKey(key string, f func(obj runtime.Object) (bool, error)) Matcher { - return matchKey{key, f} -} - -type matchKey struct { - key string - matcherFunc -} - -// MatchesSingle always returns its key, true. -func (m matchKey) MatchesSingle() (string, bool) { - return m.key, true + // For any known index, if a matcher can match only (a subset) of objects + // that return for a given index, a pair (, ) + // will be returned. + MatcherIndex() []storage.MatchValue } var ( // Assert implementations match the interface. - _ = Matcher(matchKey{}) _ = Matcher(&SelectionPredicate{}) - _ = Matcher(matcherFunc(nil)) ) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/options.go b/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/options.go index b67f3a06af..74e95e71fb 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/options.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/options.go @@ -16,13 +16,13 @@ limitations under the License. package generic -import ( - pkgstorage "k8s.io/kubernetes/pkg/storage" -) +import "k8s.io/kubernetes/pkg/storage/storagebackend" // RESTOptions is set of configuration options to generic registries. type RESTOptions struct { - Storage pkgstorage.Interface + StorageConfig *storagebackend.Config Decorator StorageDecorator DeleteCollectionWorkers int + + ResourcePrefix string } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/storage_decorator.go b/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/storage_decorator.go index 79198663a0..5d6f48ce30 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/storage_decorator.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/registry/generic/storage_decorator.go @@ -17,28 +17,44 @@ limitations under the License. package generic import ( + "github.com/golang/glog" "k8s.io/kubernetes/pkg/api/rest" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/storage/storagebackend" + "k8s.io/kubernetes/pkg/storage/storagebackend/factory" ) // StorageDecorator is a function signature for producing // a storage.Interface from given parameters. type StorageDecorator func( - storageInterface storage.Interface, + config *storagebackend.Config, capacity int, objectType runtime.Object, resourcePrefix string, scopeStrategy rest.NamespaceScopedStrategy, - newListFunc func() runtime.Object) storage.Interface + newListFunc func() runtime.Object, + trigger storage.TriggerPublisherFunc) storage.Interface // Returns given 'storageInterface' without any decoration. func UndecoratedStorage( - storageInterface storage.Interface, + config *storagebackend.Config, capacity int, objectType runtime.Object, resourcePrefix string, scopeStrategy rest.NamespaceScopedStrategy, - newListFunc func() runtime.Object) storage.Interface { - return storageInterface + newListFunc func() runtime.Object, + trigger storage.TriggerPublisherFunc) storage.Interface { + return NewRawStorage(config) +} + +// NewRawStorage creates the low level kv storage. This is a work-around for current +// two layer of same storage interface. +// TODO: Once cacher is enabled on all registries (event registry is special), we will remove this method. +func NewRawStorage(config *storagebackend.Config) storage.Interface { + s, err := factory.Create(*config) + if err != nil { + glog.Fatalf("Unable to create storage backend: config (%v), err (%v)", config, err) + } + return s } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go b/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go index c763067541..8999340019 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go @@ -42,7 +42,7 @@ type thirdPartyObjectConverter struct { converter runtime.ObjectConvertor } -func (t *thirdPartyObjectConverter) ConvertToVersion(in runtime.Object, outVersion unversioned.GroupVersion) (out runtime.Object, err error) { +func (t *thirdPartyObjectConverter) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (out runtime.Object, err error) { switch in.(type) { // This seems weird, but in this case the ThirdPartyResourceData is really just a wrapper on the raw 3rd party data. // The actual thing printed/sent to server is the actual raw third party resource data, which only has one version. @@ -53,8 +53,8 @@ func (t *thirdPartyObjectConverter) ConvertToVersion(in runtime.Object, outVersi } } -func (t *thirdPartyObjectConverter) Convert(in, out interface{}) error { - return t.converter.Convert(in, out) +func (t *thirdPartyObjectConverter) Convert(in, out, context interface{}) error { + return t.converter.Convert(in, out, context) } func (t *thirdPartyObjectConverter) ConvertFieldLabel(version, kind, label, value string) (string, string, error) { @@ -152,6 +152,27 @@ func (t *thirdPartyResourceDataMapper) RESTMapping(gk unversioned.GroupKind, ver return mapping, nil } +func (t *thirdPartyResourceDataMapper) RESTMappings(gk unversioned.GroupKind) ([]*meta.RESTMapping, error) { + if gk.Group != t.group { + return nil, fmt.Errorf("unknown group %q expected %s", gk.Group, t.group) + } + if gk.Kind != "ThirdPartyResourceData" { + return nil, fmt.Errorf("unknown kind %s expected %s", gk.Kind, t.kind) + } + + // TODO figure out why we're doing this rewriting + extensionGK := unversioned.GroupKind{Group: extensions.GroupName, Kind: "ThirdPartyResourceData"} + + mappings, err := t.mapper.RESTMappings(extensionGK) + if err != nil { + return nil, err + } + for _, m := range mappings { + m.ObjectConvertor = &thirdPartyObjectConverter{m.ObjectConvertor} + } + return mappings, nil +} + func (t *thirdPartyResourceDataMapper) AliasesForResource(resource string) ([]string, bool) { return t.mapper.AliasesForResource(resource) } @@ -213,11 +234,11 @@ func (t *thirdPartyResourceDataCodecFactory) StreamingSerializerForMediaType(med } } -func (t *thirdPartyResourceDataCodecFactory) EncoderForVersion(s runtime.Encoder, gv unversioned.GroupVersion) runtime.Encoder { - return &thirdPartyResourceDataEncoder{delegate: t.delegate.EncoderForVersion(s, gv), gvk: gv.WithKind(t.kind)} +func (t *thirdPartyResourceDataCodecFactory) EncoderForVersion(s runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { + return &thirdPartyResourceDataEncoder{delegate: t.delegate.EncoderForVersion(s, gv), gvk: t.encodeGV.WithKind(t.kind)} } -func (t *thirdPartyResourceDataCodecFactory) DecoderToVersion(s runtime.Decoder, gv unversioned.GroupVersion) runtime.Decoder { +func (t *thirdPartyResourceDataCodecFactory) DecoderToVersion(s runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { return NewDecoder(t.delegate.DecoderToVersion(s, gv), t.kind) } @@ -248,35 +269,42 @@ func parseObject(data []byte) (map[string]interface{}, error) { return mapObj, nil } -func (t *thirdPartyResourceDataDecoder) populate(data []byte) (runtime.Object, error) { +func (t *thirdPartyResourceDataDecoder) populate(data []byte) (runtime.Object, *unversioned.GroupVersionKind, error) { mapObj, err := parseObject(data) if err != nil { - return nil, err + return nil, nil, err } return t.populateFromObject(mapObj, data) } -func (t *thirdPartyResourceDataDecoder) populateFromObject(mapObj map[string]interface{}, data []byte) (runtime.Object, error) { +func (t *thirdPartyResourceDataDecoder) populateFromObject(mapObj map[string]interface{}, data []byte) (runtime.Object, *unversioned.GroupVersionKind, error) { typeMeta := unversioned.TypeMeta{} if err := json.Unmarshal(data, &typeMeta); err != nil { - return nil, err + return nil, nil, err } + + gv, err := unversioned.ParseGroupVersion(typeMeta.APIVersion) + if err != nil { + return nil, nil, err + } + gvk := gv.WithKind(typeMeta.Kind) + isList := strings.HasSuffix(typeMeta.Kind, "List") switch { case !isList && (len(t.kind) == 0 || typeMeta.Kind == t.kind): result := &extensions.ThirdPartyResourceData{} if err := t.populateResource(result, mapObj, data); err != nil { - return nil, err + return nil, nil, err } - return result, nil + return result, &gvk, nil case isList && (len(t.kind) == 0 || typeMeta.Kind == t.kind+"List"): list := &extensions.ThirdPartyResourceDataList{} if err := t.populateListResource(list, mapObj); err != nil { - return nil, err + return nil, nil, err } - return list, nil + return list, &gvk, nil default: - return nil, fmt.Errorf("unexpected kind: %s, expected %s", typeMeta.Kind, t.kind) + return nil, nil, fmt.Errorf("unexpected kind: %s, expected %s", typeMeta.Kind, t.kind) } } @@ -338,11 +366,7 @@ func (t *thirdPartyResourceDataDecoder) Decode(data []byte, gvk *unversioned.Gro return t.delegate.Decode(data, gvk, into) } } - obj, err := t.populate(data) - if err != nil { - return nil, nil, err - } - return obj, gvk, nil + return t.populate(data) } switch o := into.(type) { case *extensions.ThirdPartyResourceData: @@ -356,14 +380,14 @@ func (t *thirdPartyResourceDataDecoder) Decode(data []byte, gvk *unversioned.Gro return t.delegate.Decode(data, gvk, into) } } - obj, err := t.populate(data) + obj, outGVK, err := t.populate(data) if err != nil { return nil, nil, err } o.Objects = []runtime.Object{ obj, } - return o, gvk, nil + return o, outGVK, nil default: return t.delegate.Decode(data, gvk, into) } @@ -451,13 +475,6 @@ func (t *thirdPartyResourceDataDecoder) populateListResource(objIn *extensions.T return nil } -const template = `{ - "kind": "%s", - "apiVersion": "%s", - "metadata": {}, - "items": [ %s ] -}` - type thirdPartyResourceDataEncoder struct { delegate runtime.Encoder gvk unversioned.GroupVersionKind @@ -488,19 +505,41 @@ func (t *thirdPartyResourceDataEncoder) Encode(obj runtime.Object, stream io.Wri case *extensions.ThirdPartyResourceData: return encodeToJSON(obj, stream) case *extensions.ThirdPartyResourceDataList: - // TODO: There must be a better way to do this... - dataStrings := make([]string, len(obj.Items)) + // TODO: There are likely still better ways to do this... + listItems := make([]json.RawMessage, len(obj.Items)) + for ix := range obj.Items { buff := &bytes.Buffer{} err := encodeToJSON(&obj.Items[ix], buff) if err != nil { return err } - dataStrings[ix] = buff.String() + listItems[ix] = json.RawMessage(buff.Bytes()) } - gv := t.gvk.GroupVersion() - fmt.Fprintf(stream, template, t.gvk.Kind+"List", gv.String(), strings.Join(dataStrings, ",")) - return nil + + if t.gvk.Empty() { + return fmt.Errorf("thirdPartyResourceDataEncoder was not given a target version") + } + + encMap := struct { + Kind string `json:"kind,omitempty"` + Items []json.RawMessage `json:"items"` + Metadata unversioned.ListMeta `json:"metadata,omitempty"` + APIVersion string `json:"apiVersion,omitempty"` + }{ + Kind: t.gvk.Kind + "List", + Items: listItems, + Metadata: obj.ListMeta, + APIVersion: t.gvk.GroupVersion().String(), + } + + encBytes, err := json.Marshal(encMap) + if err != nil { + return err + } + + _, err = stream.Write(encBytes) + return err case *versioned.InternalEvent: event := &versioned.Event{} err := versioned.Convert_versioned_InternalEvent_to_versioned_Event(obj, event, nil) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/strategy.go b/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/strategy.go index 12108c39e4..5ed76ed45a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/strategy.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/strategy.go @@ -48,7 +48,7 @@ func (strategy) NamespaceScoped() bool { return true } -func (strategy) PrepareForCreate(obj runtime.Object) { +func (strategy) PrepareForCreate(ctx api.Context, obj runtime.Object) { } func (strategy) Validate(ctx api.Context, obj runtime.Object) field.ErrorList { @@ -63,7 +63,7 @@ func (strategy) AllowCreateOnUpdate() bool { return false } -func (strategy) PrepareForUpdate(obj, old runtime.Object) { +func (strategy) PrepareForUpdate(ctx api.Context, obj, old runtime.Object) { } func (strategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) field.ErrorList { @@ -75,18 +75,21 @@ func (strategy) AllowUnconditionalUpdate() bool { } // Matcher returns a generic matcher for a given label and field selector. -func Matcher(label labels.Selector, field fields.Selector) generic.Matcher { - return generic.MatcherFunc(func(obj runtime.Object) (bool, error) { - sa, ok := obj.(*extensions.ThirdPartyResourceData) - if !ok { - return false, fmt.Errorf("not a ThirdPartyResourceData") - } - fields := SelectableFields(sa) - return label.Matches(labels.Set(sa.Labels)) && field.Matches(fields), nil - }) +func Matcher(label labels.Selector, field fields.Selector) *generic.SelectionPredicate { + return &generic.SelectionPredicate{ + Label: label, + Field: field, + GetAttrs: func(obj runtime.Object) (labels.Set, fields.Set, error) { + tprd, ok := obj.(*extensions.ThirdPartyResourceData) + if !ok { + return nil, nil, fmt.Errorf("not a ThirdPartyResourceData") + } + return labels.Set(tprd.Labels), SelectableFields(tprd), nil + }, + } } -// SelectableFields returns a label set that can be used for filter selection -func SelectableFields(obj *extensions.ThirdPartyResourceData) labels.Set { - return labels.Set{} +// SelectableFields returns a field set that can be used for filter selection +func SelectableFields(obj *extensions.ThirdPartyResourceData) fields.Set { + return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/codec.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/codec.go index 3f7681c002..9077f0fcd7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/codec.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/codec.go @@ -80,12 +80,14 @@ func EncodeOrDie(e Encoder, obj Object) string { // invokes the ObjectCreator to instantiate a new gvk. Returns an error if the typer cannot find the object. func UseOrCreateObject(t ObjectTyper, c ObjectCreater, gvk unversioned.GroupVersionKind, obj Object) (Object, error) { if obj != nil { - into, _, err := t.ObjectKinds(obj) + kinds, _, err := t.ObjectKinds(obj) if err != nil { return nil, err } - if gvk == into[0] { - return obj, nil + for _, kind := range kinds { + if gvk == kind { + return obj, nil + } } } return c.New(gvk) @@ -143,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. @@ -196,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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/deep_copy_generated.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/deep_copy_generated.go deleted file mode 100644 index 6f5f613076..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/deep_copy_generated.go +++ /dev/null @@ -1,63 +0,0 @@ -// +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 runtime - -import ( - conversion "k8s.io/kubernetes/pkg/conversion" -) - -func DeepCopy_runtime_RawExtension(in RawExtension, out *RawExtension, c *conversion.Cloner) error { - if in.Raw != nil { - in, out := in.Raw, &out.Raw - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Raw = nil - } - if in.Object == nil { - out.Object = nil - } else if newVal, err := c.DeepCopy(in.Object); err != nil { - return err - } else { - out.Object = newVal.(Object) - } - return nil -} - -func DeepCopy_runtime_TypeMeta(in TypeMeta, out *TypeMeta, c *conversion.Cloner) error { - out.APIVersion = in.APIVersion - out.Kind = in.Kind - return nil -} - -func DeepCopy_runtime_Unknown(in Unknown, out *Unknown, c *conversion.Cloner) error { - out.TypeMeta = in.TypeMeta - if in.Raw != nil { - in, out := in.Raw, &out.Raw - *out = make([]byte, len(in)) - copy(*out, in) - } else { - out.Raw = nil - } - out.ContentEncoding = in.ContentEncoding - out.ContentType = in.ContentType - return nil -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/error.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/error.go index 4041b4d96c..2a1262c568 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/error.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/error.go @@ -84,7 +84,7 @@ type missingVersionErr struct { } // IsMissingVersion returns true if the error indicates that the provided object -// is missing a 'Versioj' field. +// is missing a 'Version' field. func NewMissingVersionErr(data string) error { return &missingVersionErr{data} } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/generated.pb.go index 889dbfb15b..4aeadcffe8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/generated.pb.go @@ -35,6 +35,9 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -42,17 +45,21 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *RawExtension) Reset() { *m = RawExtension{} } -func (m *RawExtension) String() string { return proto.CompactTextString(m) } -func (*RawExtension) ProtoMessage() {} +// 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 *RawExtension) Reset() { *m = RawExtension{} } +func (*RawExtension) ProtoMessage() {} +func (*RawExtension) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *TypeMeta) Reset() { *m = TypeMeta{} } -func (m *TypeMeta) String() string { return proto.CompactTextString(m) } -func (*TypeMeta) ProtoMessage() {} +func (m *TypeMeta) Reset() { *m = TypeMeta{} } +func (*TypeMeta) ProtoMessage() {} +func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *Unknown) Reset() { *m = Unknown{} } -func (m *Unknown) String() string { return proto.CompactTextString(m) } -func (*Unknown) ProtoMessage() {} +func (m *Unknown) Reset() { *m = Unknown{} } +func (*Unknown) ProtoMessage() {} +func (*Unknown) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } func init() { proto.RegisterType((*RawExtension)(nil), "k8s.io.kubernetes.pkg.runtime.RawExtension") @@ -225,6 +232,48 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *RawExtension) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RawExtension{`, + `Raw:` + valueToStringGenerated(this.Raw) + `,`, + `}`, + }, "") + return s +} +func (this *TypeMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TypeMeta{`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `}`, + }, "") + return s +} +func (this *Unknown) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Unknown{`, + `TypeMeta:` + strings.Replace(strings.Replace(this.TypeMeta.String(), "TypeMeta", "TypeMeta", 1), `&`, ``, 1) + `,`, + `Raw:` + valueToStringGenerated(this.Raw) + `,`, + `ContentEncoding:` + fmt.Sprintf("%v", this.ContentEncoding) + `,`, + `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`, + `}`, + }, "") + 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 *RawExtension) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -687,3 +736,31 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 380 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x90, 0xcf, 0x4e, 0x2a, 0x31, + 0x14, 0xc6, 0x19, 0x20, 0x81, 0x5b, 0x48, 0xb8, 0xe9, 0x5d, 0xdc, 0x91, 0x44, 0x20, 0x6c, 0x94, + 0x05, 0x6d, 0x24, 0x31, 0x71, 0xcb, 0x10, 0x16, 0xc6, 0x98, 0x98, 0x89, 0xb8, 0x70, 0xe5, 0x30, + 0xd4, 0xb1, 0x19, 0x69, 0x27, 0x9d, 0x4e, 0xd0, 0x9d, 0x8f, 0xe0, 0x63, 0xb1, 0x64, 0xe9, 0x8a, + 0x28, 0x3e, 0x83, 0x7b, 0x4b, 0x29, 0x7f, 0x04, 0xe2, 0xe2, 0x24, 0x33, 0xe7, 0xfc, 0xbe, 0xef, + 0x7c, 0xa7, 0xa0, 0x19, 0x9e, 0xc5, 0x88, 0x72, 0x1c, 0x26, 0x7d, 0x22, 0x18, 0x91, 0x24, 0xc6, + 0x51, 0x18, 0x60, 0x91, 0x30, 0x49, 0x87, 0x04, 0x07, 0x84, 0x11, 0xe1, 0x49, 0x32, 0x40, 0x91, + 0xe0, 0x92, 0xc3, 0xc3, 0x05, 0x8e, 0xd6, 0x38, 0x52, 0x38, 0x32, 0x78, 0xb9, 0x19, 0x50, 0xf9, + 0x90, 0xf4, 0x91, 0xcf, 0x87, 0x38, 0xe0, 0x01, 0xc7, 0x5a, 0xd5, 0x4f, 0xee, 0xf5, 0x9f, 0xfe, + 0xd1, 0x5f, 0x0b, 0xb7, 0x72, 0x6b, 0xff, 0x72, 0x2f, 0xa2, 0x58, 0x90, 0x98, 0x27, 0xc2, 0xdf, + 0x49, 0x50, 0x3e, 0xd9, 0xaf, 0x49, 0x24, 0x7d, 0xc4, 0x94, 0xc9, 0x58, 0x8a, 0x6d, 0x49, 0xbd, + 0x01, 0x8a, 0xae, 0x37, 0xea, 0x3e, 0x49, 0xc2, 0x62, 0xca, 0x19, 0x3c, 0x00, 0x19, 0xe1, 0x8d, + 0x6c, 0xab, 0x66, 0x1d, 0x17, 0x9d, 0xdc, 0x6c, 0x5a, 0xcd, 0xa8, 0xb1, 0x3b, 0xef, 0xd5, 0xef, + 0x40, 0xfe, 0xfa, 0x39, 0x22, 0x97, 0x44, 0x7a, 0xb0, 0x05, 0x80, 0x4a, 0x72, 0x43, 0xc4, 0x5c, + 0xa4, 0xe9, 0x3f, 0x0e, 0x1c, 0x4f, 0xab, 0x29, 0xa5, 0x00, 0xed, 0xab, 0x73, 0x33, 0x71, 0x37, + 0x28, 0x58, 0x03, 0xd9, 0x90, 0xb2, 0x81, 0x9d, 0xd6, 0x74, 0xd1, 0xd0, 0xd9, 0x0b, 0xd5, 0x73, + 0xf5, 0xa4, 0xfe, 0x65, 0x81, 0x5c, 0x8f, 0x85, 0x8c, 0x8f, 0x18, 0xec, 0x81, 0xbc, 0x34, 0xdb, + 0xb4, 0x7f, 0xa1, 0x75, 0x84, 0x7e, 0x7d, 0x60, 0xb4, 0x0c, 0xe7, 0xfc, 0x35, 0xd6, 0xab, 0xb8, + 0xee, 0xca, 0x6a, 0x79, 0x5f, 0x7a, 0xf7, 0x3e, 0xd8, 0x06, 0x25, 0x9f, 0x33, 0xf5, 0x10, 0xb2, + 0xcb, 0x7c, 0x3e, 0xa0, 0x2c, 0xb0, 0x33, 0x3a, 0xea, 0x7f, 0xe3, 0x57, 0xea, 0xfc, 0x1c, 0xbb, + 0xdb, 0x3c, 0x3c, 0x05, 0x05, 0xd3, 0x9a, 0xaf, 0xb6, 0xb3, 0x5a, 0xfe, 0xcf, 0xc8, 0x0b, 0x9d, + 0xf5, 0xc8, 0xdd, 0xe4, 0x9c, 0xc6, 0xf8, 0xa3, 0x92, 0x9a, 0xa8, 0x7a, 0x53, 0xf5, 0x32, 0xab, + 0x58, 0x63, 0x55, 0x13, 0x55, 0xef, 0xaa, 0x5e, 0x3f, 0x2b, 0xa9, 0xdb, 0x9c, 0x39, 0xf2, 0x3b, + 0x00, 0x00, 0xff, 0xff, 0x32, 0xc1, 0x73, 0x2d, 0x94, 0x02, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/helper.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/helper.go index 827cff1b84..2f8f161dde 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/helper.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/interfaces.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/interfaces.go index e46324608e..07f77ca1b9 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/interfaces.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme.go index f98ec54ab1..f5d3bd0829 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme.go @@ -211,6 +211,11 @@ func (s *Scheme) KnownTypes(gv unversioned.GroupVersion) map[string]reflect.Type return types } +// AllKnownTypes returns the all known types. +func (s *Scheme) AllKnownTypes() map[unversioned.GroupVersionKind]reflect.Type { + return s.gvkToType +} + // ObjectKind returns the group,version,kind of the go object and true if this object // is considered unversioned, or an error if it's not a pointer or is unregistered. func (s *Scheme) ObjectKind(obj Object) (unversioned.GroupVersionKind, bool, error) { @@ -232,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] @@ -270,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 @@ -357,9 +362,9 @@ func (s *Scheme) AddDeepCopyFuncs(deepCopyFuncs ...interface{}) error { // Similar to AddDeepCopyFuncs, but registers deep-copy functions that were // automatically generated. -func (s *Scheme) AddGeneratedDeepCopyFuncs(deepCopyFuncs ...interface{}) error { - for _, f := range deepCopyFuncs { - if err := s.cloner.RegisterGeneratedDeepCopyFunc(f); err != nil { +func (s *Scheme) AddGeneratedDeepCopyFuncs(deepCopyFuncs ...conversion.GeneratedDeepCopyFunc) error { + for _, fn := range deepCopyFuncs { + if err := s.cloner.RegisterGeneratedDeepCopyFunc(fn); err != nil { return err } } @@ -433,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 } @@ -473,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 { @@ -551,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) + } + + 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) } - // 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 + // 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 - } - - // 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) + if gvk, ok := target.KindForGroupVersionKinds([]unversioned.GroupVersionKind{unversionedKind}); ok { + return copyAndSetTargetKind(copy, s, in, gvk) + } + return copyAndSetTargetKind(copy, s, in, unversionedKind) + } + + 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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme_builder.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme_builder.go new file mode 100644 index 0000000000..944db48182 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/scheme_builder.go @@ -0,0 +1,48 @@ +/* +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 runtime + +// SchemeBuilder collects functions that add things to a scheme. It's to allow +// code to compile without explicitly referencing generated types. You should +// declare one in each package that will have generated deep copy or conversion +// functions. +type SchemeBuilder []func(*Scheme) error + +// AddToScheme applies all the stored functions to the scheme. A non-nil error +// indicates that one function failed and the attempt was abandoned. +func (sb *SchemeBuilder) AddToScheme(s *Scheme) error { + for _, f := range *sb { + if err := f(s); err != nil { + return err + } + } + return nil +} + +// Register adds a scheme setup function to the list. +func (sb *SchemeBuilder) Register(funcs ...func(*Scheme) error) { + for _, f := range funcs { + *sb = append(*sb, f) + } +} + +// NewSchemeBuilder calls Register for you. +func NewSchemeBuilder(funcs ...func(*Scheme) error) SchemeBuilder { + var sb SchemeBuilder + sb.Register(funcs...) + return sb +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/codec_factory.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/codec_factory.go index 758aa6b74a..afccae5a6e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/codec_factory.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/codec_factory.go @@ -17,8 +17,6 @@ limitations under the License. package serializer import ( - "io" - "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/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) } -// CodecFor creates a codec with the provided serializer. If an object is decoded and its group is not in the list, +// 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, - } -} - -// 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{}) +func (f DirectCodecFactory) DecoderToVersion(serializer runtime.Decoder, _ runtime.GroupVersioner) runtime.Decoder { + return versioning.DirectDecoder{ + Decoder: serializer, } - return obj, gvk, err } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/json/json.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/json/json.go index c26fa50d81..c83ed588e2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/json/json.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/json/json.go @@ -25,6 +25,7 @@ import ( "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/runtime/serializer/recognizer" "k8s.io/kubernetes/pkg/util/framer" utilyaml "k8s.io/kubernetes/pkg/util/yaml" ) @@ -63,6 +64,7 @@ type Serializer struct { // Serializer implements Serializer var _ runtime.Serializer = &Serializer{} +var _ recognizer.RecognizingDecoder = &Serializer{} // Decode attempts to convert the provided data into YAML or JSON, extract the stored schema kind, apply the provided default gvk, and then // load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, the raw data will be diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/negotiated_codec.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/negotiated_codec.go index 59b078ce8b..d89177259f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/negotiated_codec.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/negotiated_codec.go @@ -17,7 +17,6 @@ limitations under the License. package serializer import ( - "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/protobuf/protobuf.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/protobuf/protobuf.go index b9eb9e5db8..5a6a50de38 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/protobuf/protobuf.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/protobuf/protobuf.go @@ -26,6 +26,7 @@ import ( "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/runtime/serializer/recognizer" "k8s.io/kubernetes/pkg/util/framer" ) @@ -76,6 +77,7 @@ type Serializer struct { } var _ runtime.Serializer = &Serializer{} +var _ recognizer.RecognizingDecoder = &Serializer{} // Decode attempts to convert the provided data into a protobuf message, extract the stored schema kind, apply the provided default // gvk, and then load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, @@ -124,7 +126,7 @@ func (s *Serializer) Decode(originalData []byte, gvk *unversioned.GroupVersionKi if intoUnknown, ok := into.(*runtime.Unknown); ok && intoUnknown != nil { *intoUnknown = unk - if len(intoUnknown.ContentType) == 0 { + if ok, _, _ := s.RecognizesData(bytes.NewBuffer(unk.Raw)); ok { intoUnknown.ContentType = s.contentType } return intoUnknown, &actual, nil @@ -167,17 +169,30 @@ func (s *Serializer) Decode(originalData []byte, gvk *unversioned.GroupVersionKi // Encode serializes the provided object to the given writer. func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error { + prefixSize := uint64(len(s.prefix)) + var unk runtime.Unknown - kind := obj.GetObjectKind().GroupVersionKind() - unk = runtime.Unknown{ - TypeMeta: runtime.TypeMeta{ - Kind: kind.Kind, - APIVersion: kind.GroupVersion().String(), - }, + switch t := obj.(type) { + case *runtime.Unknown: + estimatedSize := prefixSize + uint64(t.Size()) + data := make([]byte, estimatedSize) + i, err := t.MarshalTo(data[prefixSize:]) + if err != nil { + return err + } + copy(data, s.prefix) + _, err = w.Write(data[:prefixSize+uint64(i)]) + return err + default: + kind := obj.GetObjectKind().GroupVersionKind() + unk = runtime.Unknown{ + TypeMeta: runtime.TypeMeta{ + Kind: kind.Kind, + APIVersion: kind.GroupVersion().String(), + }, + } } - prefixSize := uint64(len(s.prefix)) - switch t := obj.(type) { case bufferedMarshaller: // this path performs a single allocation during write but requires the caller to implement @@ -224,19 +239,19 @@ func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error { } // RecognizesData implements the RecognizingDecoder interface. -func (s *Serializer) RecognizesData(peek io.Reader) (bool, error) { +func (s *Serializer) RecognizesData(peek io.Reader) (bool, bool, error) { prefix := make([]byte, 4) n, err := peek.Read(prefix) if err != nil { if err == io.EOF { - return false, nil + return false, false, nil } - return false, err + return false, false, err } if n != 4 { - return false, nil + return false, false, nil } - return bytes.Equal(s.prefix, prefix), nil + return bytes.Equal(s.prefix, prefix), false, nil } // copyKindDefaults defaults dst to the value in src if dst does not have a value set. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/versioning/versioning.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/versioning/versioning.go index 6e67964b16..b3a165a537 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/versioning/versioning.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/serializer/versioning/versioning.go @@ -17,59 +17,20 @@ limitations under the License. package versioning import ( - "fmt" "io" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/types.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/types.go index 5033c0dc2c..960bbef92a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/types.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/unstructured.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/unstructured.go index 048e6dc148..e14c8840b6 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/runtime/unstructured.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/unstructured.go @@ -95,6 +95,7 @@ func (s unstructuredJSONScheme) decode(data []byte) (Object, error) { err := s.decodeToUnstructured(data, unstruct) return unstruct, err } + func (s unstructuredJSONScheme) decodeInto(data []byte, obj Object) error { switch x := obj.(type) { case *Unstructured: @@ -102,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: @@ -168,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) @@ -187,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/ingress/vendor/k8s.io/kubernetes/pkg/runtime/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/zz_generated.deepcopy.go new file mode 100644 index 0000000000..627c22b63a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/runtime/zz_generated.deepcopy.go @@ -0,0 +1,75 @@ +// +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 runtime + +import ( + conversion "k8s.io/kubernetes/pkg/conversion" +) + +func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RawExtension) + out := out.(*RawExtension) + if in.Raw != nil { + in, out := &in.Raw, &out.Raw + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Raw = nil + } + if in.Object == nil { + out.Object = nil + } else if newVal, err := c.DeepCopy(&in.Object); err != nil { + return err + } else { + out.Object = *newVal.(*Object) + } + return nil + } +} + +func DeepCopy_runtime_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TypeMeta) + out := out.(*TypeMeta) + out.APIVersion = in.APIVersion + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_runtime_Unknown(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Unknown) + out := out.(*Unknown) + out.TypeMeta = in.TypeMeta + if in.Raw != nil { + in, out := &in.Raw, &out.Raw + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Raw = nil + } + out.ContentEncoding = in.ContentEncoding + out.ContentType = in.ContentType + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/helpers.go b/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/helpers.go new file mode 100644 index 0000000000..4546aea4da --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/kubernetes/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.alpha.kubernetes.io/" + // The annotation key specifying the default AppArmor profile. + DefaultProfileAnnotationKey = "apparmor.security.alpha.kubernetes.io/defaultProfileName" + // The annotation key specifying the allowed AppArmor profiles. + AllowedProfilesAnnotationKey = "apparmor.security.alpha.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/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/validate.go b/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/validate.go new file mode 100644 index 0000000000..a34636caea --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/validate.go @@ -0,0 +1,216 @@ +/* +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/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/util" +) + +// 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 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/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/validate_disabled.go b/ingress/vendor/k8s.io/kubernetes/pkg/security/apparmor/validate_disabled.go new file mode 100644 index 0000000000..875054a941 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/doc.go new file mode 100644 index 0000000000..af407b58c6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/doc.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 util contains utility code shared amongst different parts of the +// pod security policy apparatus. +package util diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/util.go b/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/util.go index 0af4ad060b..0b423b948c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/util.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/security/podsecuritypolicy/util/util.go @@ -58,7 +58,9 @@ func GetAllFSTypesAsSet() sets.String { string(extensions.DownwardAPI), string(extensions.FC), string(extensions.ConfigMap), - string(extensions.VsphereVolume)) + string(extensions.VsphereVolume), + string(extensions.Quobyte), + string(extensions.AzureDisk)) return fstypes } @@ -105,6 +107,10 @@ func GetVolumeFSType(v api.Volume) (extensions.FSType, error) { return extensions.ConfigMap, nil case v.VsphereVolume != nil: return extensions.VsphereVolume, nil + case v.Quobyte != nil: + return extensions.Quobyte, nil + case v.AzureDisk != nil: + return extensions.AzureDisk, nil } return "", fmt.Errorf("unknown volume type for volume: %#v", v) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/selection/operator.go b/ingress/vendor/k8s.io/kubernetes/pkg/selection/operator.go new file mode 100644 index 0000000000..298f798c43 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/storage/cacher.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/cacher.go index e258e5f139..f0ed90011d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/storage/cacher.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/cacher.go @@ -21,7 +21,6 @@ import ( "net/http" "reflect" "strconv" - "strings" "sync" "time" @@ -59,9 +58,67 @@ type CacherConfig struct { // KeyFunc is used to get a key in the underyling storage for a given object. KeyFunc func(runtime.Object) (string, error) + // TriggerPublisherFunc is used for optimizing amount of watchers that + // needs to process an incoming event. + TriggerPublisherFunc TriggerPublisherFunc + // NewList is a function that creates new empty object storing a list of // objects of type Type. NewListFunc func() runtime.Object + + Codec runtime.Codec +} + +type watchersMap map[int]*cacheWatcher + +func (wm watchersMap) addWatcher(w *cacheWatcher, number int) { + wm[number] = w +} + +func (wm watchersMap) deleteWatcher(number int) { + delete(wm, number) +} + +func (wm watchersMap) terminateAll() { + for key, watcher := range wm { + delete(wm, key) + watcher.stop() + } +} + +type indexedWatchers struct { + allWatchers watchersMap + valueWatchers map[string]watchersMap +} + +func (i *indexedWatchers) addWatcher(w *cacheWatcher, number int, value string, supported bool) { + if supported { + if _, ok := i.valueWatchers[value]; !ok { + i.valueWatchers[value] = watchersMap{} + } + i.valueWatchers[value].addWatcher(w, number) + } else { + i.allWatchers.addWatcher(w, number) + } +} + +func (i *indexedWatchers) deleteWatcher(number int, value string, supported bool) { + if supported { + i.valueWatchers[value].deleteWatcher(number) + if len(i.valueWatchers[value]) == 0 { + delete(i.valueWatchers, value) + } + } else { + i.allWatchers.deleteWatcher(number) + } +} + +func (i *indexedWatchers) terminateAll() { + i.allWatchers.terminateAll() + for index, watchers := range i.valueWatchers { + watchers.terminateAll() + delete(i.valueWatchers, index) + } } // Cacher is responsible for serving WATCH and LIST requests for a given @@ -83,20 +140,27 @@ type Cacher struct { // Underlying storage.Interface. storage Interface + // Expected type of objects in the underlying cache. + objectType reflect.Type + // "sliding window" of recent changes of objects and the current state. watchCache *watchCache reflector *cache.Reflector - // Registered watchers. - watcherIdx int - watchers map[int]*cacheWatcher - // Versioner is used to handle resource versions. versioner Versioner // keyFunc is used to get a key in the underyling storage for a given object. keyFunc func(runtime.Object) (string, error) + // triggerFunc is used for optimizing amount of watchers that needs to process + // an incoming event. + triggerFunc TriggerPublisherFunc + // watchers is mapping from the value of trigger function that a + // watcher is interested into the watchers + watcherIdx int + watchers indexedWatchers + // Handling graceful termination. stopLock sync.RWMutex stopped bool @@ -114,19 +178,25 @@ func NewCacherFromConfig(config CacherConfig) *Cacher { // Give this error when it is constructed rather than when you get the // first watch item, because it's much easier to track down that way. if obj, ok := config.Type.(runtime.Object); ok { - if err := runtime.CheckCodec(config.Storage.Codec(), obj); err != nil { + if err := runtime.CheckCodec(config.Codec, obj); err != nil { panic("storage codec doesn't seem to match given type: " + err.Error()) } } cacher := &Cacher{ - ready: newReady(), - storage: config.Storage, - watchCache: watchCache, - reflector: cache.NewReflector(listerWatcher, config.Type, watchCache, 0), - watchers: make(map[int]*cacheWatcher), - versioner: config.Versioner, - keyFunc: config.KeyFunc, + ready: newReady(), + storage: config.Storage, + objectType: reflect.TypeOf(config.Type), + watchCache: watchCache, + reflector: cache.NewReflector(listerWatcher, config.Type, watchCache, 0), + versioner: config.Versioner, + keyFunc: config.KeyFunc, + triggerFunc: config.TriggerPublisherFunc, + watcherIdx: 0, + watchers: indexedWatchers{ + allWatchers: make(map[int]*cacheWatcher), + valueWatchers: make(map[string]watchersMap), + }, // We need to (potentially) stop both: // - wait.Until go-routine // - reflector.ListAndWatch @@ -179,11 +249,6 @@ func (c *Cacher) startCaching(stopChannel <-chan struct{}) { } } -// Implements storage.Interface. -func (c *Cacher) Backends(ctx context.Context) []string { - return c.storage.Backends(ctx) -} - // Implements storage.Interface. func (c *Cacher) Versioner() Versioner { return c.storage.Versioner() @@ -200,7 +265,7 @@ func (c *Cacher) Delete(ctx context.Context, key string, out runtime.Object, pre } // Implements storage.Interface. -func (c *Cacher) Watch(ctx context.Context, key string, resourceVersion string, filter FilterFunc) (watch.Interface, error) { +func (c *Cacher) Watch(ctx context.Context, key string, resourceVersion string, filter Filter) (watch.Interface, error) { watchRV, err := ParseWatchResourceVersion(resourceVersion) if err != nil { return nil, err @@ -223,16 +288,26 @@ func (c *Cacher) Watch(ctx context.Context, key string, resourceVersion string, return newErrWatcher(err), nil } + triggerValue, triggerSupported := "", false + // TODO: Currently we assume that in a given Cacher object, any that is + // passed here is aware of exactly the same trigger (at most one). + // Thus, either 0 or 1 values will be returned. + if matchValues := filter.Trigger(); len(matchValues) > 0 { + triggerValue, triggerSupported = matchValues[0].Value, true + } + c.Lock() defer c.Unlock() - watcher := newCacheWatcher(watchRV, initEvents, filterFunction(key, c.keyFunc, filter), forgetWatcher(c, c.watcherIdx)) - c.watchers[c.watcherIdx] = watcher + forget := forgetWatcher(c, c.watcherIdx, triggerValue, triggerSupported) + watcher := newCacheWatcher(watchRV, initEvents, filterFunction(key, c.keyFunc, filter), forget) + + c.watchers.addWatcher(watcher, c.watcherIdx, triggerValue, triggerSupported) c.watcherIdx++ return watcher, nil } // Implements storage.Interface. -func (c *Cacher) WatchList(ctx context.Context, key string, resourceVersion string, filter FilterFunc) (watch.Interface, error) { +func (c *Cacher) WatchList(ctx context.Context, key string, resourceVersion string, filter Filter) (watch.Interface, error) { return c.Watch(ctx, key, resourceVersion, filter) } @@ -242,12 +317,12 @@ func (c *Cacher) Get(ctx context.Context, key string, objPtr runtime.Object, ign } // Implements storage.Interface. -func (c *Cacher) GetToList(ctx context.Context, key string, filter FilterFunc, listObj runtime.Object) error { +func (c *Cacher) GetToList(ctx context.Context, key string, filter Filter, listObj runtime.Object) error { return c.storage.GetToList(ctx, key, filter, listObj) } // Implements storage.Interface. -func (c *Cacher) List(ctx context.Context, key string, resourceVersion string, filter FilterFunc, listObj runtime.Object) error { +func (c *Cacher) List(ctx context.Context, key string, resourceVersion string, filter Filter, listObj runtime.Object) error { if resourceVersion == "" { // If resourceVersion is not specified, serve it from underlying // storage (for backward compatibility). @@ -285,7 +360,7 @@ func (c *Cacher) List(ctx context.Context, key string, resourceVersion string, f if !ok { return fmt.Errorf("non runtime.Object returned from storage: %v", obj) } - if filterFunc(object) { + if filterFunc.Filter(object) { listVal.Set(reflect.Append(listVal, reflect.ValueOf(object).Elem())) } } @@ -302,26 +377,69 @@ func (c *Cacher) GuaranteedUpdate(ctx context.Context, key string, ptrToType run return c.storage.GuaranteedUpdate(ctx, key, ptrToType, ignoreNotFound, preconditions, tryUpdate) } -// Implements storage.Interface. -func (c *Cacher) Codec() runtime.Codec { - return c.storage.Codec() +func (c *Cacher) triggerValues(event *watchCacheEvent) ([]string, bool) { + // TODO: Currently we assume that in a given Cacher object, its + // is aware of exactly the same trigger (at most one). Thus calling: + // c.triggerFunc() + // can return only 0 or 1 values. + // That means, that triggerValues itself may return up to 2 different values. + if c.triggerFunc == nil { + return nil, false + } + result := make([]string, 0, 2) + matchValues := c.triggerFunc(event.Object) + if len(matchValues) > 0 { + result = append(result, matchValues[0].Value) + } + if event.PrevObject == nil { + return result, len(result) > 0 + } + prevMatchValues := c.triggerFunc(event.PrevObject) + if len(prevMatchValues) > 0 { + if len(result) == 0 || result[0] != prevMatchValues[0].Value { + result = append(result, prevMatchValues[0].Value) + } + } + return result, len(result) > 0 } func (c *Cacher) processEvent(event watchCacheEvent) { + triggerValues, supported := c.triggerValues(&event) + c.Lock() defer c.Unlock() - for _, watcher := range c.watchers { + // Iterate over "allWatchers" no matter what the trigger function is. + for _, watcher := range c.watchers.allWatchers { watcher.add(event) } + if supported { + // Iterate over watchers interested in the given values of the trigger. + for _, triggerValue := range triggerValues { + for _, watcher := range c.watchers.valueWatchers[triggerValue] { + watcher.add(event) + } + } + } else { + // supported equal to false generally means that trigger function + // is not defined (or not aware of any indexes). In this case, + // watchers filters should generally also don't generate any + // trigger values, but can cause problems in case of some + // misconfiguration. Thus we paranoidly leave this branch. + + // Iterate over watchers interested in exact values for all values. + for _, watchers := range c.watchers.valueWatchers { + for _, watcher := range watchers { + watcher.add(event) + } + } + } } func (c *Cacher) terminateAllWatchers() { + glog.Warningf("Terminating all watchers from cacher %v", c.objectType) c.Lock() defer c.Unlock() - for key, watcher := range c.watchers { - delete(c.watchers, key) - watcher.stop() - } + c.watchers.terminateAll() } func (c *Cacher) isStopped() bool { @@ -338,30 +456,31 @@ func (c *Cacher) Stop() { c.stopWg.Wait() } -func forgetWatcher(c *Cacher, index int) func(bool) { +func forgetWatcher(c *Cacher, index int, triggerValue string, triggerSupported bool) func(bool) { return func(lock bool) { if lock { c.Lock() defer c.Unlock() } - // It's possible that the watcher is already not in the map (e.g. in case of + // It's possible that the watcher is already not in the structure (e.g. in case of // simulaneous Stop() and terminateAllWatchers(), but it doesn't break anything. - delete(c.watchers, index) + c.watchers.deleteWatcher(index, triggerValue, triggerSupported) } } -func filterFunction(key string, keyFunc func(runtime.Object) (string, error), filter FilterFunc) FilterFunc { - return func(obj runtime.Object) bool { +func filterFunction(key string, keyFunc func(runtime.Object) (string, error), filter Filter) Filter { + filterFunc := func(obj runtime.Object) bool { objKey, err := keyFunc(obj) if err != nil { glog.Errorf("invalid object for filter: %v", obj) return false } - if !strings.HasPrefix(objKey, key) { + if !hasPathPrefix(objKey, key) { return false } - return filter(obj) + return filter.Filter(obj) } + return NewSimpleFilter(filterFunc, filter.Trigger) } // Returns resource version to which the underlying cache is synced. @@ -450,12 +569,12 @@ type cacheWatcher struct { sync.Mutex input chan watchCacheEvent result chan watch.Event - filter FilterFunc + filter Filter stopped bool forget func(bool) } -func newCacheWatcher(resourceVersion uint64, initEvents []watchCacheEvent, filter FilterFunc, forget func(bool)) *cacheWatcher { +func newCacheWatcher(resourceVersion uint64, initEvents []watchCacheEvent, filter Filter, forget func(bool)) *cacheWatcher { watcher := &cacheWatcher{ input: make(chan watchCacheEvent, 10), result: make(chan watch.Event, 10), @@ -527,10 +646,10 @@ func (c *cacheWatcher) add(event watchCacheEvent) { } func (c *cacheWatcher) sendWatchCacheEvent(event watchCacheEvent) { - curObjPasses := event.Type != watch.Deleted && c.filter(event.Object) + curObjPasses := event.Type != watch.Deleted && c.filter.Filter(event.Object) oldObjPasses := false if event.PrevObject != nil { - oldObjPasses = c.filter(event.PrevObject) + oldObjPasses = c.filter.Filter(event.PrevObject) } if !curObjPasses && !oldObjPasses { // Watcher is not interested in that object. diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/errors.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/errors.go index 26985fa073..7c1fbb507b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/storage/errors.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/errors.go @@ -107,24 +107,20 @@ func IsUnreachable(err error) bool { // IsTestFailed returns true if and only if err is a write conflict. func IsTestFailed(err error) bool { - return isErrCode(err, ErrCodeResourceVersionConflicts, ErrCodeInvalidObj) + return isErrCode(err, ErrCodeResourceVersionConflicts) } -// IsInvalidUID returns true if and only if err is invalid UID error +// IsInvalidObj returns true if and only if err is invalid error func IsInvalidObj(err error) bool { return isErrCode(err, ErrCodeInvalidObj) } -func isErrCode(err error, codes ...int) bool { +func isErrCode(err error, code int) bool { if err == nil { return false } if e, ok := err.(*StorageError); ok { - for _, code := range codes { - if e.Code == code { - return true - } - } + return e.Code == code } return false } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/api_object_versioner.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/api_object_versioner.go new file mode 100644 index 0000000000..59839b9367 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/api_object_versioner.go @@ -0,0 +1,98 @@ +/* +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 etcd + +import ( + "strconv" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/storage" +) + +// APIObjectVersioner implements versioning and extracting etcd node information +// for objects that have an embedded ObjectMeta or ListMeta field. +type APIObjectVersioner struct{} + +// UpdateObject implements Versioner +func (a APIObjectVersioner) UpdateObject(obj runtime.Object, resourceVersion uint64) error { + accessor, err := meta.Accessor(obj) + if err != nil { + return err + } + versionString := "" + if resourceVersion != 0 { + versionString = strconv.FormatUint(resourceVersion, 10) + } + accessor.SetResourceVersion(versionString) + return nil +} + +// UpdateList implements Versioner +func (a APIObjectVersioner) UpdateList(obj runtime.Object, resourceVersion uint64) error { + listMeta, err := api.ListMetaFor(obj) + if err != nil || listMeta == nil { + return err + } + versionString := "" + if resourceVersion != 0 { + versionString = strconv.FormatUint(resourceVersion, 10) + } + listMeta.ResourceVersion = versionString + return nil +} + +// ObjectResourceVersion implements Versioner +func (a APIObjectVersioner) ObjectResourceVersion(obj runtime.Object) (uint64, error) { + accessor, err := meta.Accessor(obj) + if err != nil { + return 0, err + } + version := accessor.GetResourceVersion() + if len(version) == 0 { + return 0, nil + } + return strconv.ParseUint(version, 10, 64) +} + +// APIObjectVersioner implements Versioner +var Versioner storage.Versioner = APIObjectVersioner{} + +// CompareResourceVersion compares etcd resource versions. Outside this API they are all strings, +// but etcd resource versions are special, they're actually ints, so we can easily compare them. +func (a APIObjectVersioner) CompareResourceVersion(lhs, rhs runtime.Object) int { + lhsVersion, err := Versioner.ObjectResourceVersion(lhs) + if err != nil { + // coder error + panic(err) + } + rhsVersion, err := Versioner.ObjectResourceVersion(rhs) + if err != nil { + // coder error + panic(err) + } + + if lhsVersion == rhsVersion { + return 0 + } + if lhsVersion < rhsVersion { + return -1 + } + + return 1 +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/doc.go new file mode 100644 index 0000000000..73e2f50c41 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/doc.go @@ -0,0 +1,17 @@ +/* +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 etcd diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go new file mode 100644 index 0000000000..523d50b18b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go @@ -0,0 +1,616 @@ +/* +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 etcd + +import ( + "errors" + "fmt" + "path" + "reflect" + "strings" + "time" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/conversion" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/storage/etcd/metrics" + etcdutil "k8s.io/kubernetes/pkg/storage/etcd/util" + "k8s.io/kubernetes/pkg/util" + utilcache "k8s.io/kubernetes/pkg/util/cache" + "k8s.io/kubernetes/pkg/watch" + + etcd "github.com/coreos/etcd/client" + "github.com/golang/glog" + "golang.org/x/net/context" +) + +// Creates a new storage interface from the client +// TODO: deprecate in favor of storage.Config abstraction over time +func NewEtcdStorage(client etcd.Client, codec runtime.Codec, prefix string, quorum bool, cacheSize int) storage.Interface { + return &etcdHelper{ + etcdMembersAPI: etcd.NewMembersAPI(client), + etcdKeysAPI: etcd.NewKeysAPI(client), + codec: codec, + versioner: APIObjectVersioner{}, + copier: api.Scheme, + pathPrefix: path.Join("/", prefix), + quorum: quorum, + cache: utilcache.NewCache(cacheSize), + } +} + +// etcdHelper is the reference implementation of storage.Interface. +type etcdHelper struct { + etcdMembersAPI etcd.MembersAPI + etcdKeysAPI etcd.KeysAPI + codec runtime.Codec + copier runtime.ObjectCopier + // Note that versioner is required for etcdHelper to work correctly. + // The public constructors (NewStorage & NewEtcdStorage) are setting it + // correctly, so be careful when manipulating with it manually. + // optional, has to be set to perform any atomic operations + versioner storage.Versioner + // prefix for all etcd keys + pathPrefix string + // if true, perform quorum read + quorum bool + + // We cache objects stored in etcd. For keys we use Node.ModifiedIndex which is equivalent + // to resourceVersion. + // This depends on etcd's indexes being globally unique across all objects/types. This will + // have to revisited if we decide to do things like multiple etcd clusters, or etcd will + // support multi-object transaction that will result in many objects with the same index. + // Number of entries stored in the cache is controlled by maxEtcdCacheEntries constant. + // TODO: Measure how much this cache helps after the conversion code is optimized. + cache utilcache.Cache +} + +func init() { + metrics.Register() +} + +// Implements storage.Interface. +func (h *etcdHelper) Versioner() storage.Versioner { + return h.versioner +} + +// Implements storage.Interface. +func (h *etcdHelper) Create(ctx context.Context, key string, obj, out runtime.Object, ttl uint64) error { + trace := util.NewTrace("etcdHelper::Create " + getTypeName(obj)) + defer trace.LogIfLong(250 * time.Millisecond) + if ctx == nil { + glog.Errorf("Context is nil") + } + key = h.prefixEtcdKey(key) + data, err := runtime.Encode(h.codec, obj) + trace.Step("Object encoded") + if err != nil { + return err + } + if version, err := h.versioner.ObjectResourceVersion(obj); err == nil && version != 0 { + return errors.New("resourceVersion may not be set on objects to be created") + } + trace.Step("Version checked") + + startTime := time.Now() + opts := etcd.SetOptions{ + TTL: time.Duration(ttl) * time.Second, + PrevExist: etcd.PrevNoExist, + } + response, err := h.etcdKeysAPI.Set(ctx, key, string(data), &opts) + trace.Step("Object created") + metrics.RecordEtcdRequestLatency("create", getTypeName(obj), startTime) + if err != nil { + return toStorageErr(err, key, 0) + } + if out != nil { + if _, err := conversion.EnforcePtr(out); err != nil { + panic("unable to convert output object to pointer") + } + _, _, err = h.extractObj(response, err, out, false, false) + } + return err +} + +func checkPreconditions(key string, preconditions *storage.Preconditions, out runtime.Object) error { + if preconditions == nil { + return nil + } + objMeta, err := api.ObjectMetaFor(out) + if err != nil { + return storage.NewInternalErrorf("can't enforce preconditions %v on un-introspectable object %v, got error: %v", *preconditions, out, err) + } + if preconditions.UID != nil && *preconditions.UID != objMeta.UID { + errMsg := fmt.Sprintf("Precondition failed: UID in precondition: %v, UID in object meta: %v", preconditions.UID, objMeta.UID) + return storage.NewInvalidObjError(key, errMsg) + } + return nil +} + +// Implements storage.Interface. +func (h *etcdHelper) Delete(ctx context.Context, key string, out runtime.Object, preconditions *storage.Preconditions) error { + if ctx == nil { + glog.Errorf("Context is nil") + } + key = h.prefixEtcdKey(key) + v, err := conversion.EnforcePtr(out) + if err != nil { + panic("unable to convert output object to pointer") + } + + if preconditions == nil { + startTime := time.Now() + response, err := h.etcdKeysAPI.Delete(ctx, key, nil) + metrics.RecordEtcdRequestLatency("delete", getTypeName(out), startTime) + if !etcdutil.IsEtcdNotFound(err) { + // if the object that existed prior to the delete is returned by etcd, update the out object. + if err != nil || response.PrevNode != nil { + _, _, err = h.extractObj(response, err, out, false, true) + } + } + return toStorageErr(err, key, 0) + } + + // Check the preconditions match. + obj := reflect.New(v.Type()).Interface().(runtime.Object) + for { + _, node, res, err := h.bodyAndExtractObj(ctx, key, obj, false) + if err != nil { + return toStorageErr(err, key, 0) + } + if err := checkPreconditions(key, preconditions, obj); err != nil { + return toStorageErr(err, key, 0) + } + index := uint64(0) + if node != nil { + index = node.ModifiedIndex + } else if res != nil { + index = res.Index + } + opt := etcd.DeleteOptions{PrevIndex: index} + startTime := time.Now() + response, err := h.etcdKeysAPI.Delete(ctx, key, &opt) + metrics.RecordEtcdRequestLatency("delete", getTypeName(out), startTime) + if etcdutil.IsEtcdTestFailed(err) { + glog.Infof("deletion of %s failed because of a conflict, going to retry", key) + } else { + if !etcdutil.IsEtcdNotFound(err) { + // if the object that existed prior to the delete is returned by etcd, update the out object. + if err != nil || response.PrevNode != nil { + _, _, err = h.extractObj(response, err, out, false, true) + } + } + return toStorageErr(err, key, 0) + } + } +} + +// Implements storage.Interface. +func (h *etcdHelper) Watch(ctx context.Context, key string, resourceVersion string, filter storage.Filter) (watch.Interface, error) { + if ctx == nil { + glog.Errorf("Context is nil") + } + watchRV, err := storage.ParseWatchResourceVersion(resourceVersion) + if err != nil { + return nil, err + } + key = h.prefixEtcdKey(key) + w := newEtcdWatcher(false, h.quorum, nil, filter, h.codec, h.versioner, nil, h) + go w.etcdWatch(ctx, h.etcdKeysAPI, key, watchRV) + return w, nil +} + +// Implements storage.Interface. +func (h *etcdHelper) WatchList(ctx context.Context, key string, resourceVersion string, filter storage.Filter) (watch.Interface, error) { + if ctx == nil { + glog.Errorf("Context is nil") + } + watchRV, err := storage.ParseWatchResourceVersion(resourceVersion) + if err != nil { + return nil, err + } + key = h.prefixEtcdKey(key) + w := newEtcdWatcher(true, h.quorum, exceptKey(key), filter, h.codec, h.versioner, nil, h) + go w.etcdWatch(ctx, h.etcdKeysAPI, key, watchRV) + return w, nil +} + +// Implements storage.Interface. +func (h *etcdHelper) Get(ctx context.Context, key string, objPtr runtime.Object, ignoreNotFound bool) error { + if ctx == nil { + glog.Errorf("Context is nil") + } + key = h.prefixEtcdKey(key) + _, _, _, err := h.bodyAndExtractObj(ctx, key, objPtr, ignoreNotFound) + return err +} + +// bodyAndExtractObj performs the normal Get path to etcd, returning the parsed node and response for additional information +// about the response, like the current etcd index and the ttl. +func (h *etcdHelper) bodyAndExtractObj(ctx context.Context, key string, objPtr runtime.Object, ignoreNotFound bool) (body string, node *etcd.Node, res *etcd.Response, err error) { + if ctx == nil { + glog.Errorf("Context is nil") + } + startTime := time.Now() + + opts := &etcd.GetOptions{ + Quorum: h.quorum, + } + + response, err := h.etcdKeysAPI.Get(ctx, key, opts) + metrics.RecordEtcdRequestLatency("get", getTypeName(objPtr), startTime) + if err != nil && !etcdutil.IsEtcdNotFound(err) { + return "", nil, nil, toStorageErr(err, key, 0) + } + body, node, err = h.extractObj(response, err, objPtr, ignoreNotFound, false) + return body, node, response, toStorageErr(err, key, 0) +} + +func (h *etcdHelper) extractObj(response *etcd.Response, inErr error, objPtr runtime.Object, ignoreNotFound, prevNode bool) (body string, node *etcd.Node, err error) { + if response != nil { + if prevNode { + node = response.PrevNode + } else { + node = response.Node + } + } + if inErr != nil || node == nil || len(node.Value) == 0 { + if ignoreNotFound { + v, err := conversion.EnforcePtr(objPtr) + if err != nil { + return "", nil, err + } + v.Set(reflect.Zero(v.Type())) + return "", nil, nil + } else if inErr != nil { + return "", nil, inErr + } + return "", nil, fmt.Errorf("unable to locate a value on the response: %#v", response) + } + body = node.Value + out, gvk, err := h.codec.Decode([]byte(body), nil, objPtr) + if err != nil { + return body, nil, err + } + if out != objPtr { + return body, nil, fmt.Errorf("unable to decode object %s into %v", gvk.String(), reflect.TypeOf(objPtr)) + } + // being unable to set the version does not prevent the object from being extracted + _ = h.versioner.UpdateObject(objPtr, node.ModifiedIndex) + return body, node, err +} + +// Implements storage.Interface. +func (h *etcdHelper) GetToList(ctx context.Context, key string, filter storage.Filter, listObj runtime.Object) error { + if ctx == nil { + glog.Errorf("Context is nil") + } + trace := util.NewTrace("GetToList " + getTypeName(listObj)) + listPtr, err := meta.GetItemsPtr(listObj) + if err != nil { + return err + } + key = h.prefixEtcdKey(key) + startTime := time.Now() + trace.Step("About to read etcd node") + + opts := &etcd.GetOptions{ + Quorum: h.quorum, + } + response, err := h.etcdKeysAPI.Get(ctx, key, opts) + trace.Step("Etcd node read") + metrics.RecordEtcdRequestLatency("get", getTypeName(listPtr), startTime) + if err != nil { + if etcdutil.IsEtcdNotFound(err) { + return nil + } + return toStorageErr(err, key, 0) + } + + nodes := make([]*etcd.Node, 0) + nodes = append(nodes, response.Node) + + if err := h.decodeNodeList(nodes, filter, listPtr); err != nil { + return err + } + trace.Step("Object decoded") + if err := h.versioner.UpdateList(listObj, response.Index); err != nil { + return err + } + return nil +} + +// decodeNodeList walks the tree of each node in the list and decodes into the specified object +func (h *etcdHelper) decodeNodeList(nodes []*etcd.Node, filter storage.Filter, slicePtr interface{}) error { + trace := util.NewTrace("decodeNodeList " + getTypeName(slicePtr)) + defer trace.LogIfLong(400 * time.Millisecond) + v, err := conversion.EnforcePtr(slicePtr) + if err != nil || v.Kind() != reflect.Slice { + // This should not happen at runtime. + panic("need ptr to slice") + } + for _, node := range nodes { + if node.Dir { + trace.Step("Decoding dir " + node.Key + " START") + if err := h.decodeNodeList(node.Nodes, filter, slicePtr); err != nil { + return err + } + trace.Step("Decoding dir " + node.Key + " END") + continue + } + if obj, found := h.getFromCache(node.ModifiedIndex, filter); found { + // obj != nil iff it matches the filter function. + if obj != nil { + v.Set(reflect.Append(v, reflect.ValueOf(obj).Elem())) + } + } else { + obj, _, err := h.codec.Decode([]byte(node.Value), nil, reflect.New(v.Type().Elem()).Interface().(runtime.Object)) + if err != nil { + return err + } + // being unable to set the version does not prevent the object from being extracted + _ = h.versioner.UpdateObject(obj, node.ModifiedIndex) + if filter.Filter(obj) { + v.Set(reflect.Append(v, reflect.ValueOf(obj).Elem())) + } + if node.ModifiedIndex != 0 { + h.addToCache(node.ModifiedIndex, obj) + } + } + } + trace.Step(fmt.Sprintf("Decoded %v nodes", len(nodes))) + return nil +} + +// Implements storage.Interface. +func (h *etcdHelper) List(ctx context.Context, key string, resourceVersion string, filter storage.Filter, listObj runtime.Object) error { + if ctx == nil { + glog.Errorf("Context is nil") + } + trace := util.NewTrace("List " + getTypeName(listObj)) + defer trace.LogIfLong(400 * time.Millisecond) + listPtr, err := meta.GetItemsPtr(listObj) + if err != nil { + return err + } + key = h.prefixEtcdKey(key) + startTime := time.Now() + trace.Step("About to list etcd node") + nodes, index, err := h.listEtcdNode(ctx, key) + trace.Step("Etcd node listed") + metrics.RecordEtcdRequestLatency("list", getTypeName(listPtr), startTime) + if err != nil { + return err + } + if err := h.decodeNodeList(nodes, filter, listPtr); err != nil { + return err + } + trace.Step("Node list decoded") + if err := h.versioner.UpdateList(listObj, index); err != nil { + return err + } + return nil +} + +func (h *etcdHelper) listEtcdNode(ctx context.Context, key string) ([]*etcd.Node, uint64, error) { + if ctx == nil { + glog.Errorf("Context is nil") + } + opts := etcd.GetOptions{ + Recursive: true, + Sort: true, + Quorum: h.quorum, + } + result, err := h.etcdKeysAPI.Get(ctx, key, &opts) + if err != nil { + var index uint64 + if etcdError, ok := err.(etcd.Error); ok { + index = etcdError.Index + } + nodes := make([]*etcd.Node, 0) + if etcdutil.IsEtcdNotFound(err) { + return nodes, index, nil + } else { + return nodes, index, toStorageErr(err, key, 0) + } + } + return result.Node.Nodes, result.Index, nil +} + +// Implements storage.Interface. +func (h *etcdHelper) GuaranteedUpdate(ctx context.Context, key string, ptrToType runtime.Object, ignoreNotFound bool, preconditions *storage.Preconditions, tryUpdate storage.UpdateFunc) error { + if ctx == nil { + glog.Errorf("Context is nil") + } + v, err := conversion.EnforcePtr(ptrToType) + if err != nil { + // Panic is appropriate, because this is a programming error. + panic("need ptr to type") + } + key = h.prefixEtcdKey(key) + for { + obj := reflect.New(v.Type()).Interface().(runtime.Object) + origBody, node, res, err := h.bodyAndExtractObj(ctx, key, obj, ignoreNotFound) + if err != nil { + return toStorageErr(err, key, 0) + } + if err := checkPreconditions(key, preconditions, obj); err != nil { + return toStorageErr(err, key, 0) + } + meta := storage.ResponseMeta{} + if node != nil { + meta.TTL = node.TTL + meta.ResourceVersion = node.ModifiedIndex + } + // Get the object to be written by calling tryUpdate. + ret, newTTL, err := tryUpdate(obj, meta) + if err != nil { + return toStorageErr(err, key, 0) + } + + index := uint64(0) + ttl := uint64(0) + if node != nil { + index = node.ModifiedIndex + if node.TTL != 0 { + ttl = uint64(node.TTL) + } + if node.Expiration != nil && ttl == 0 { + ttl = 1 + } + } else if res != nil { + index = res.Index + } + + if newTTL != nil { + if ttl != 0 && *newTTL == 0 { + // TODO: remove this after we have verified this is no longer an issue + glog.V(4).Infof("GuaranteedUpdate is clearing TTL for %q, may not be intentional", key) + } + ttl = *newTTL + } + + // Since update object may have a resourceVersion set, we need to clear it here. + if err := h.versioner.UpdateObject(ret, 0); err != nil { + return errors.New("resourceVersion cannot be set on objects store in etcd") + } + + data, err := runtime.Encode(h.codec, ret) + if err != nil { + return err + } + + // First time this key has been used, try creating new value. + if index == 0 { + startTime := time.Now() + opts := etcd.SetOptions{ + TTL: time.Duration(ttl) * time.Second, + PrevExist: etcd.PrevNoExist, + } + response, err := h.etcdKeysAPI.Set(ctx, key, string(data), &opts) + metrics.RecordEtcdRequestLatency("create", getTypeName(ptrToType), startTime) + if etcdutil.IsEtcdNodeExist(err) { + continue + } + _, _, err = h.extractObj(response, err, ptrToType, false, false) + return toStorageErr(err, key, 0) + } + + if string(data) == origBody { + // If we don't send an update, we simply return the currently existing + // version of the object. + _, _, err := h.extractObj(res, nil, ptrToType, ignoreNotFound, false) + return err + } + + startTime := time.Now() + // Swap origBody with data, if origBody is the latest etcd data. + opts := etcd.SetOptions{ + PrevValue: origBody, + PrevIndex: index, + TTL: time.Duration(ttl) * time.Second, + } + response, err := h.etcdKeysAPI.Set(ctx, key, string(data), &opts) + metrics.RecordEtcdRequestLatency("compareAndSwap", getTypeName(ptrToType), startTime) + if etcdutil.IsEtcdTestFailed(err) { + // Try again. + continue + } + _, _, err = h.extractObj(response, err, ptrToType, false, false) + return toStorageErr(err, key, int64(index)) + } +} + +func (h *etcdHelper) prefixEtcdKey(key string) string { + if strings.HasPrefix(key, h.pathPrefix) { + return key + } + return path.Join(h.pathPrefix, key) +} + +// etcdCache defines interface used for caching objects stored in etcd. Objects are keyed by +// their Node.ModifiedIndex, which is unique across all types. +// All implementations must be thread-safe. +type etcdCache interface { + getFromCache(index uint64, filter storage.Filter) (runtime.Object, bool) + addToCache(index uint64, obj runtime.Object) +} + +func getTypeName(obj interface{}) string { + return reflect.TypeOf(obj).String() +} + +func (h *etcdHelper) getFromCache(index uint64, filter storage.Filter) (runtime.Object, bool) { + startTime := time.Now() + defer func() { + metrics.ObserveGetCache(startTime) + }() + obj, found := h.cache.Get(index) + if found { + if !filter.Filter(obj.(runtime.Object)) { + return nil, true + } + // We should not return the object itself to avoid polluting the cache if someone + // modifies returned values. + objCopy, err := h.copier.Copy(obj.(runtime.Object)) + if err != nil { + glog.Errorf("Error during DeepCopy of cached object: %q", err) + // We can't return a copy, thus we report the object as not found. + return nil, false + } + metrics.ObserveCacheHit() + return objCopy.(runtime.Object), true + } + metrics.ObserveCacheMiss() + return nil, false +} + +func (h *etcdHelper) addToCache(index uint64, obj runtime.Object) { + startTime := time.Now() + defer func() { + metrics.ObserveAddCache(startTime) + }() + objCopy, err := h.copier.Copy(obj) + if err != nil { + glog.Errorf("Error during DeepCopy of cached object: %q", err) + return + } + isOverwrite := h.cache.Add(index, objCopy) + if !isOverwrite { + metrics.ObserveNewEntry() + } +} + +func toStorageErr(err error, key string, rv int64) error { + if err == nil { + return nil + } + switch { + case etcdutil.IsEtcdNotFound(err): + return storage.NewKeyNotFoundError(key, rv) + case etcdutil.IsEtcdNodeExist(err): + return storage.NewKeyExistsError(key, rv) + case etcdutil.IsEtcdTestFailed(err): + return storage.NewResourceVersionConflictsError(key, rv) + case etcdutil.IsEtcdUnreachable(err): + return storage.NewUnreachableError(key, rv) + default: + return err + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/etcd_watcher.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/etcd_watcher.go new file mode 100644 index 0000000000..66251a9159 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/etcd_watcher.go @@ -0,0 +1,499 @@ +/* +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 etcd + +import ( + "fmt" + "net/http" + "sync" + "sync/atomic" + "time" + + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/storage" + etcdutil "k8s.io/kubernetes/pkg/storage/etcd/util" + utilruntime "k8s.io/kubernetes/pkg/util/runtime" + "k8s.io/kubernetes/pkg/watch" + + etcd "github.com/coreos/etcd/client" + "github.com/golang/glog" + "golang.org/x/net/context" +) + +// Etcd watch event actions +const ( + EtcdCreate = "create" + EtcdGet = "get" + EtcdSet = "set" + EtcdCAS = "compareAndSwap" + EtcdDelete = "delete" + EtcdCAD = "compareAndDelete" + EtcdExpire = "expire" +) + +// HighWaterMark is a thread-safe object for tracking the maximum value seen +// for some quantity. +type HighWaterMark int64 + +// Update returns true if and only if 'current' is the highest value ever seen. +func (hwm *HighWaterMark) Update(current int64) bool { + for { + old := atomic.LoadInt64((*int64)(hwm)) + if current <= old { + return false + } + if atomic.CompareAndSwapInt64((*int64)(hwm), old, current) { + return true + } + } +} + +// TransformFunc attempts to convert an object to another object for use with a watcher. +type TransformFunc func(runtime.Object) (runtime.Object, error) + +// includeFunc returns true if the given key should be considered part of a watch +type includeFunc func(key string) bool + +// exceptKey is an includeFunc that returns false when the provided key matches the watched key +func exceptKey(except string) includeFunc { + return func(key string) bool { + return key != except + } +} + +// etcdWatcher converts a native etcd watch to a watch.Interface. +type etcdWatcher struct { + encoding runtime.Codec + // Note that versioner is required for etcdWatcher to work correctly. + // There is no public constructor of it, so be careful when manipulating + // with it manually. + versioner storage.Versioner + transform TransformFunc + + list bool // If we're doing a recursive watch, should be true. + quorum bool // If we enable quorum, shoule be true + include includeFunc + filter storage.Filter + + etcdIncoming chan *etcd.Response + etcdError chan error + ctx context.Context + cancel context.CancelFunc + etcdCallEnded chan struct{} + + outgoing chan watch.Event + userStop chan struct{} + stopped bool + stopLock sync.Mutex + // wg is used to avoid calls to etcd after Stop(), and to make sure + // that the translate goroutine is not leaked. + wg sync.WaitGroup + + // Injectable for testing. Send the event down the outgoing channel. + emit func(watch.Event) + + cache etcdCache +} + +// watchWaitDuration is the amount of time to wait for an error from watch. +const watchWaitDuration = 100 * time.Millisecond + +// newEtcdWatcher returns a new etcdWatcher; if list is true, watch sub-nodes. +// The versioner must be able to handle the objects that transform creates. +func newEtcdWatcher( + list bool, quorum bool, include includeFunc, filter storage.Filter, + encoding runtime.Codec, versioner storage.Versioner, transform TransformFunc, + cache etcdCache) *etcdWatcher { + w := &etcdWatcher{ + encoding: encoding, + versioner: versioner, + transform: transform, + list: list, + quorum: quorum, + include: include, + filter: filter, + // Buffer this channel, so that the etcd client is not forced + // to context switch with every object it gets, and so that a + // long time spent decoding an object won't block the *next* + // object. Basically, we see a lot of "401 window exceeded" + // errors from etcd, and that's due to the client not streaming + // results but rather getting them one at a time. So we really + // want to never block the etcd client, if possible. The 100 is + // mostly arbitrary--we know it goes as high as 50, though. + // There's a V(2) log message that prints the length so we can + // monitor how much of this buffer is actually used. + etcdIncoming: make(chan *etcd.Response, 100), + etcdError: make(chan error, 1), + // Similarly to etcdIncomming, we don't want to force context + // switch on every new incoming object. + outgoing: make(chan watch.Event, 100), + userStop: make(chan struct{}), + stopped: false, + wg: sync.WaitGroup{}, + cache: cache, + ctx: nil, + cancel: nil, + } + w.emit = func(e watch.Event) { + // Give up on user stop, without this we leak a lot of goroutines in tests. + select { + case w.outgoing <- e: + case <-w.userStop: + } + } + // translate will call done. We need to Add() here because otherwise, + // if Stop() gets called before translate gets started, there'd be a + // problem. + w.wg.Add(1) + go w.translate() + return w +} + +// etcdWatch calls etcd's Watch function, and handles any errors. Meant to be called +// as a goroutine. +func (w *etcdWatcher) etcdWatch(ctx context.Context, client etcd.KeysAPI, key string, resourceVersion uint64) { + defer utilruntime.HandleCrash() + defer close(w.etcdError) + defer close(w.etcdIncoming) + + // All calls to etcd are coming from this function - once it is finished + // no other call to etcd should be generated by this watcher. + done := func() {} + + // We need to be prepared, that Stop() can be called at any time. + // It can potentially also be called, even before this function is called. + // If that is the case, we simply skip all the code here. + // See #18928 for more details. + var watcher etcd.Watcher + returned := func() bool { + w.stopLock.Lock() + defer w.stopLock.Unlock() + if w.stopped { + // Watcher has already been stopped - don't event initiate it here. + return true + } + w.wg.Add(1) + done = w.wg.Done + // Perform initialization of watcher under lock - we want to avoid situation when + // Stop() is called in the meantime (which in tests can cause etcd termination and + // strange behavior here). + if resourceVersion == 0 { + latest, err := etcdGetInitialWatchState(ctx, client, key, w.list, w.quorum, w.etcdIncoming) + if err != nil { + w.etcdError <- err + return true + } + resourceVersion = latest + } + + opts := etcd.WatcherOptions{ + Recursive: w.list, + AfterIndex: resourceVersion, + } + watcher = client.Watcher(key, &opts) + w.ctx, w.cancel = context.WithCancel(ctx) + return false + }() + defer done() + if returned { + return + } + + for { + resp, err := watcher.Next(w.ctx) + if err != nil { + w.etcdError <- err + return + } + w.etcdIncoming <- resp + } +} + +// etcdGetInitialWatchState turns an etcd Get request into a watch equivalent +func etcdGetInitialWatchState(ctx context.Context, client etcd.KeysAPI, key string, recursive bool, quorum bool, incoming chan<- *etcd.Response) (resourceVersion uint64, err error) { + opts := etcd.GetOptions{ + Recursive: recursive, + Sort: false, + Quorum: quorum, + } + resp, err := client.Get(ctx, key, &opts) + if err != nil { + if !etcdutil.IsEtcdNotFound(err) { + utilruntime.HandleError(fmt.Errorf("watch was unable to retrieve the current index for the provided key (%q): %v", key, err)) + return resourceVersion, toStorageErr(err, key, 0) + } + if etcdError, ok := err.(etcd.Error); ok { + resourceVersion = etcdError.Index + } + return resourceVersion, nil + } + resourceVersion = resp.Index + convertRecursiveResponse(resp.Node, resp, incoming) + return +} + +// convertRecursiveResponse turns a recursive get response from etcd into individual response objects +// by copying the original response. This emulates the behavior of a recursive watch. +func convertRecursiveResponse(node *etcd.Node, response *etcd.Response, incoming chan<- *etcd.Response) { + if node.Dir { + for i := range node.Nodes { + convertRecursiveResponse(node.Nodes[i], response, incoming) + } + return + } + copied := *response + copied.Action = "get" + copied.Node = node + incoming <- &copied +} + +var ( + watchChannelHWM HighWaterMark +) + +// translate pulls stuff from etcd, converts, and pushes out the outgoing channel. Meant to be +// called as a goroutine. +func (w *etcdWatcher) translate() { + defer w.wg.Done() + defer close(w.outgoing) + defer utilruntime.HandleCrash() + + for { + select { + case err := <-w.etcdError: + if err != nil { + var status *unversioned.Status + switch { + case etcdutil.IsEtcdWatchExpired(err): + status = &unversioned.Status{ + Status: unversioned.StatusFailure, + Message: err.Error(), + Code: http.StatusGone, // Gone + Reason: unversioned.StatusReasonExpired, + } + // TODO: need to generate errors using api/errors which has a circular dependency on this package + // no other way to inject errors + // case etcdutil.IsEtcdUnreachable(err): + // status = errors.NewServerTimeout(...) + default: + status = &unversioned.Status{ + Status: unversioned.StatusFailure, + Message: err.Error(), + Code: http.StatusInternalServerError, + Reason: unversioned.StatusReasonInternalError, + } + } + w.emit(watch.Event{ + Type: watch.Error, + Object: status, + }) + } + return + case <-w.userStop: + return + case res, ok := <-w.etcdIncoming: + if ok { + if curLen := int64(len(w.etcdIncoming)); watchChannelHWM.Update(curLen) { + // Monitor if this gets backed up, and how much. + glog.V(2).Infof("watch: %v objects queued in channel.", curLen) + } + w.sendResult(res) + } + // If !ok, don't return here-- must wait for etcdError channel + // to give an error or be closed. + } + } +} + +func (w *etcdWatcher) decodeObject(node *etcd.Node) (runtime.Object, error) { + if obj, found := w.cache.getFromCache(node.ModifiedIndex, storage.Everything); found { + return obj, nil + } + + obj, err := runtime.Decode(w.encoding, []byte(node.Value)) + if err != nil { + return nil, err + } + + // ensure resource version is set on the object we load from etcd + if err := w.versioner.UpdateObject(obj, node.ModifiedIndex); err != nil { + utilruntime.HandleError(fmt.Errorf("failure to version api object (%d) %#v: %v", node.ModifiedIndex, obj, err)) + } + + // perform any necessary transformation + if w.transform != nil { + obj, err = w.transform(obj) + if err != nil { + utilruntime.HandleError(fmt.Errorf("failure to transform api object %#v: %v", obj, err)) + return nil, err + } + } + + if node.ModifiedIndex != 0 { + w.cache.addToCache(node.ModifiedIndex, obj) + } + return obj, nil +} + +func (w *etcdWatcher) sendAdd(res *etcd.Response) { + if res.Node == nil { + utilruntime.HandleError(fmt.Errorf("unexpected nil node: %#v", res)) + return + } + if w.include != nil && !w.include(res.Node.Key) { + return + } + obj, err := w.decodeObject(res.Node) + if err != nil { + utilruntime.HandleError(fmt.Errorf("failure to decode api object: %v\n'%v' from %#v %#v", err, string(res.Node.Value), res, res.Node)) + // TODO: expose an error through watch.Interface? + // Ignore this value. If we stop the watch on a bad value, a client that uses + // the resourceVersion to resume will never be able to get past a bad value. + return + } + if !w.filter.Filter(obj) { + return + } + action := watch.Added + if res.Node.ModifiedIndex != res.Node.CreatedIndex { + action = watch.Modified + } + w.emit(watch.Event{ + Type: action, + Object: obj, + }) +} + +func (w *etcdWatcher) sendModify(res *etcd.Response) { + if res.Node == nil { + glog.Errorf("unexpected nil node: %#v", res) + return + } + if w.include != nil && !w.include(res.Node.Key) { + return + } + curObj, err := w.decodeObject(res.Node) + if err != nil { + utilruntime.HandleError(fmt.Errorf("failure to decode api object: %v\n'%v' from %#v %#v", err, string(res.Node.Value), res, res.Node)) + // TODO: expose an error through watch.Interface? + // Ignore this value. If we stop the watch on a bad value, a client that uses + // the resourceVersion to resume will never be able to get past a bad value. + return + } + curObjPasses := w.filter.Filter(curObj) + oldObjPasses := false + var oldObj runtime.Object + if res.PrevNode != nil && res.PrevNode.Value != "" { + // Ignore problems reading the old object. + if oldObj, err = w.decodeObject(res.PrevNode); err == nil { + if err := w.versioner.UpdateObject(oldObj, res.Node.ModifiedIndex); err != nil { + utilruntime.HandleError(fmt.Errorf("failure to version api object (%d) %#v: %v", res.Node.ModifiedIndex, oldObj, err)) + } + oldObjPasses = w.filter.Filter(oldObj) + } + } + // Some changes to an object may cause it to start or stop matching a filter. + // We need to report those as adds/deletes. So we have to check both the previous + // and current value of the object. + switch { + case curObjPasses && oldObjPasses: + w.emit(watch.Event{ + Type: watch.Modified, + Object: curObj, + }) + case curObjPasses && !oldObjPasses: + w.emit(watch.Event{ + Type: watch.Added, + Object: curObj, + }) + case !curObjPasses && oldObjPasses: + w.emit(watch.Event{ + Type: watch.Deleted, + Object: oldObj, + }) + } + // Do nothing if neither new nor old object passed the filter. +} + +func (w *etcdWatcher) sendDelete(res *etcd.Response) { + if res.PrevNode == nil { + utilruntime.HandleError(fmt.Errorf("unexpected nil prev node: %#v", res)) + return + } + if w.include != nil && !w.include(res.PrevNode.Key) { + return + } + node := *res.PrevNode + if res.Node != nil { + // Note that this sends the *old* object with the etcd index for the time at + // which it gets deleted. This will allow users to restart the watch at the right + // index. + node.ModifiedIndex = res.Node.ModifiedIndex + } + obj, err := w.decodeObject(&node) + if err != nil { + utilruntime.HandleError(fmt.Errorf("failure to decode api object: %v\nfrom %#v %#v", err, res, res.Node)) + // TODO: expose an error through watch.Interface? + // Ignore this value. If we stop the watch on a bad value, a client that uses + // the resourceVersion to resume will never be able to get past a bad value. + return + } + if !w.filter.Filter(obj) { + return + } + w.emit(watch.Event{ + Type: watch.Deleted, + Object: obj, + }) +} + +func (w *etcdWatcher) sendResult(res *etcd.Response) { + switch res.Action { + case EtcdCreate, EtcdGet: + w.sendAdd(res) + case EtcdSet, EtcdCAS: + w.sendModify(res) + case EtcdDelete, EtcdExpire, EtcdCAD: + w.sendDelete(res) + default: + utilruntime.HandleError(fmt.Errorf("unknown action: %v", res.Action)) + } +} + +// ResultChan implements watch.Interface. +func (w *etcdWatcher) ResultChan() <-chan watch.Event { + return w.outgoing +} + +// Stop implements watch.Interface. +func (w *etcdWatcher) Stop() { + w.stopLock.Lock() + if w.cancel != nil { + w.cancel() + w.cancel = nil + } + if !w.stopped { + w.stopped = true + close(w.userStop) + } + w.stopLock.Unlock() + + // Wait until all calls to etcd are finished and no other + // will be issued. + w.wg.Wait() +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/metrics/metrics.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/metrics/metrics.go new file mode 100644 index 0000000000..119e2e8fc6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/metrics/metrics.go @@ -0,0 +1,113 @@ +/* +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 metrics + +import ( + "sync" + "time" + + "github.com/prometheus/client_golang/prometheus" +) + +var ( + cacheHitCounter = prometheus.NewCounter( + prometheus.CounterOpts{ + Name: "etcd_helper_cache_hit_count", + Help: "Counter of etcd helper cache hits.", + }, + ) + cacheMissCounter = prometheus.NewCounter( + prometheus.CounterOpts{ + Name: "etcd_helper_cache_miss_count", + Help: "Counter of etcd helper cache miss.", + }, + ) + cacheEntryCounter = prometheus.NewCounter( + prometheus.CounterOpts{ + Name: "etcd_helper_cache_entry_count", + Help: "Counter of etcd helper cache entries. This can be different from etcd_helper_cache_miss_count " + + "because two concurrent threads can miss the cache and generate the same entry twice.", + }, + ) + cacheGetLatency = prometheus.NewSummary( + prometheus.SummaryOpts{ + Name: "etcd_request_cache_get_latencies_summary", + Help: "Latency in microseconds of getting an object from etcd cache", + }, + ) + cacheAddLatency = prometheus.NewSummary( + prometheus.SummaryOpts{ + Name: "etcd_request_cache_add_latencies_summary", + Help: "Latency in microseconds of adding an object to etcd cache", + }, + ) + etcdRequestLatenciesSummary = prometheus.NewSummaryVec( + prometheus.SummaryOpts{ + Name: "etcd_request_latencies_summary", + Help: "Etcd request latency summary in microseconds for each operation and object type.", + }, + []string{"operation", "type"}, + ) +) + +var registerMetrics sync.Once + +// Register all metrics. +func Register() { + // Register the metrics. + registerMetrics.Do(func() { + prometheus.MustRegister(cacheHitCounter) + prometheus.MustRegister(cacheMissCounter) + prometheus.MustRegister(cacheEntryCounter) + prometheus.MustRegister(cacheAddLatency) + prometheus.MustRegister(cacheGetLatency) + prometheus.MustRegister(etcdRequestLatenciesSummary) + }) +} + +func RecordEtcdRequestLatency(verb, resource string, startTime time.Time) { + etcdRequestLatenciesSummary.WithLabelValues(verb, resource).Observe(float64(time.Since(startTime) / time.Microsecond)) +} + +func ObserveGetCache(startTime time.Time) { + cacheGetLatency.Observe(float64(time.Since(startTime) / time.Microsecond)) +} + +func ObserveAddCache(startTime time.Time) { + cacheAddLatency.Observe(float64(time.Since(startTime) / time.Microsecond)) +} + +func ObserveCacheHit() { + cacheHitCounter.Inc() +} + +func ObserveCacheMiss() { + cacheMissCounter.Inc() +} + +func ObserveNewEntry() { + cacheEntryCounter.Inc() +} + +func Reset() { + cacheHitCounter.Set(0) + cacheMissCounter.Set(0) + cacheEntryCounter.Set(0) + // TODO: Reset cacheAddLatency. + // TODO: Reset cacheGetLatency. + etcdRequestLatenciesSummary.Reset() +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/resource_container_unsupported.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/util/doc.go similarity index 66% rename from ingress/vendor/k8s.io/kubernetes/pkg/util/resource_container_unsupported.go rename to ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/util/doc.go index ba861b0dfe..48a70cb737 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/resource_container_unsupported.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/util/doc.go @@ -1,5 +1,3 @@ -// +build !linux - /* Copyright 2015 The Kubernetes Authors. @@ -16,16 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Package util holds generic etcd-related utility functions that any user of ectd might want to +// use, without pulling in kubernetes-specific code. package util - -import ( - "errors" -) - -func RunInResourceContainer(containerName string) error { - return errors.New("resource-only containers unsupported in this platform") -} - -func ApplyRLimitForSelf(maxOpenFiles uint64) error { - return errors.New("SetRLimit unsupported in this platform") -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/util/etcd_util.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/util/etcd_util.go new file mode 100644 index 0000000000..7c71fe24fc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd/util/etcd_util.go @@ -0,0 +1,99 @@ +/* +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 util + +import ( + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + + etcd "github.com/coreos/etcd/client" +) + +// IsEtcdNotFound returns true if and only if err is an etcd not found error. +func IsEtcdNotFound(err error) bool { + return isEtcdErrorNum(err, etcd.ErrorCodeKeyNotFound) +} + +// IsEtcdNodeExist returns true if and only if err is an etcd node already exist error. +func IsEtcdNodeExist(err error) bool { + return isEtcdErrorNum(err, etcd.ErrorCodeNodeExist) +} + +// IsEtcdTestFailed returns true if and only if err is an etcd write conflict. +func IsEtcdTestFailed(err error) bool { + return isEtcdErrorNum(err, etcd.ErrorCodeTestFailed) +} + +// IsEtcdWatchExpired returns true if and only if err indicates the watch has expired. +func IsEtcdWatchExpired(err error) bool { + // NOTE: This seems weird why it wouldn't be etcd.ErrorCodeWatcherCleared + // I'm using the previous matching value + return isEtcdErrorNum(err, etcd.ErrorCodeEventIndexCleared) +} + +// IsEtcdUnreachable returns true if and only if err indicates the server could not be reached. +func IsEtcdUnreachable(err error) bool { + // NOTE: The logic has changed previous error code no longer applies + return err == etcd.ErrClusterUnavailable +} + +// isEtcdErrorNum returns true if and only if err is an etcd error, whose errorCode matches errorCode +func isEtcdErrorNum(err error, errorCode int) bool { + if err != nil { + if etcdError, ok := err.(etcd.Error); ok { + return etcdError.Code == errorCode + } + // NOTE: There are other error types returned + } + return false +} + +// GetEtcdVersion performs a version check against the provided Etcd server, +// returning the string response, and error (if any). +func GetEtcdVersion(host string) (string, error) { + response, err := http.Get(host + "/version") + if err != nil { + return "", err + } + defer response.Body.Close() + if response.StatusCode != http.StatusOK { + return "", fmt.Errorf("unsuccessful response from etcd server %q: %v", host, err) + } + versionBytes, err := ioutil.ReadAll(response.Body) + if err != nil { + return "", err + } + return string(versionBytes), nil +} + +type etcdHealth struct { + // Note this has to be public so the json library can modify it. + Health string `json:"health"` +} + +func EtcdHealthCheck(data []byte) error { + obj := etcdHealth{} + if err := json.Unmarshal(data, &obj); err != nil { + return err + } + if obj.Health != "true" { + return fmt.Errorf("Unhealthy status: %s", obj.Health) + } + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/compact.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/compact.go new file mode 100644 index 0000000000..39b21c1c6e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/compact.go @@ -0,0 +1,161 @@ +/* +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 etcd3 + +import ( + "strconv" + "sync" + "time" + + "github.com/coreos/etcd/clientv3" + "github.com/golang/glog" + "golang.org/x/net/context" +) + +const ( + compactInterval = 10 * time.Minute + compactRevKey = "compact_rev_key" +) + +var ( + endpointsMapMu sync.Mutex + endpointsMap map[string]struct{} +) + +func init() { + endpointsMap = make(map[string]struct{}) +} + +// StartCompactor starts a compactor in the background to compact old version of keys that's not needed. +// By default, we save the most recent 10 minutes data and compact versions > 10minutes ago. +// It should be enough for slow watchers and to tolerate burst. +// TODO: We might keep a longer history (12h) in the future once storage API can take advantage of past version of keys. +func StartCompactor(ctx context.Context, client *clientv3.Client) { + endpointsMapMu.Lock() + defer endpointsMapMu.Unlock() + + // In one process, we can have only one compactor for one cluster. + // Currently we rely on endpoints to differentiate clusters. + for _, ep := range client.Endpoints() { + if _, ok := endpointsMap[ep]; ok { + glog.V(4).Infof("compactor already exists for endpoints %v", client.Endpoints()) + return + } + } + for _, ep := range client.Endpoints() { + endpointsMap[ep] = struct{}{} + } + + go compactor(ctx, client, compactInterval) +} + +// compactor periodically compacts historical versions of keys in etcd. +// It will compact keys with versions older than given interval. +// In other words, after compaction, it will only contain keys set during last interval. +// Any API call for the older versions of keys will return error. +// Interval is the time interval between each compaction. The first compaction happens after "interval". +func compactor(ctx context.Context, client *clientv3.Client, interval time.Duration) { + // Technical definitions: + // We have a special key in etcd defined as *compactRevKey*. + // compactRevKey's value will be set to the string of last compacted revision. + // compactRevKey's version will be used as logical time for comparison. THe version is referred as compact time. + // Initially, because the key doesn't exist, the compact time (version) is 0. + // + // Algorithm: + // - Compare to see if (local compact_time) = (remote compact_time). + // - If yes, increment both local and remote compact_time, and do a compaction. + // - If not, set local to remote compact_time. + // + // Technical details/insights: + // + // The protocol here is lease based. If one compactor CAS successfully, the others would know it when they fail in + // CAS later and would try again in 10 minutes. If an APIServer crashed, another one would "take over" the lease. + // + // For example, in the following diagram, we have a compactor C1 doing compaction in t1, t2. Another compactor C2 + // at t1' (t1 < t1' < t2) would CAS fail, set its known oldRev to rev at t1', and try again in t2' (t2' > t2). + // If C1 crashed and wouldn't compact at t2, C2 would CAS successfully at t2'. + // + // oldRev(t2) curRev(t2) + // + + // oldRev curRev | + // + + | + // | | | + // | | t1' | t2' + // +---v-------------v----^---------v------^----> + // t0 t1 t2 + // + // We have the guarantees: + // - in normal cases, the interval is 10 minutes. + // - in failover, the interval is >10m and <20m + // + // FAQ: + // - What if time is not accurate? We don't care as long as someone did the compaction. Atomicity is ensured using + // etcd API. + // - What happened under heavy load scenarios? Initially, each apiserver will do only one compaction + // every 10 minutes. This is very unlikely affecting or affected w.r.t. server load. + + var compactTime int64 + var rev int64 + var err error + for { + select { + case <-time.After(interval): + case <-ctx.Done(): + return + } + + compactTime, rev, err = compact(ctx, client, compactTime, rev) + if err != nil { + glog.Errorf("etcd: endpoint (%v) compact failed: %v", client.Endpoints(), err) + continue + } + } +} + +// compact compacts etcd store and returns current rev. +// It will return the current compact time and global revision if no error occurred. +// Note that CAS fail will not incur any error. +func compact(ctx context.Context, client *clientv3.Client, t, rev int64) (int64, int64, error) { + resp, err := client.KV.Txn(ctx).If( + clientv3.Compare(clientv3.Version(compactRevKey), "=", t), + ).Then( + clientv3.OpPut(compactRevKey, strconv.FormatInt(rev, 10)), // Expect side effect: increment Version + ).Else( + clientv3.OpGet(compactRevKey), + ).Commit() + if err != nil { + return t, rev, err + } + + curRev := resp.Header.Revision + + if !resp.Succeeded { + curTime := resp.Responses[0].GetResponseRange().Kvs[0].Version + return curTime, curRev, nil + } + curTime := t + 1 + + if rev == 0 { + // We don't compact on bootstrap. + return curTime, curRev, nil + } + if _, err = client.Compact(ctx, rev); err != nil { + return curTime, curRev, err + } + glog.Infof("etcd: compacted rev (%d), endpoints (%v)", rev, client.Endpoints()) + return curTime, curRev, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/event.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/event.go new file mode 100644 index 0000000000..585c371b5d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/event.go @@ -0,0 +1,50 @@ +/* +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 etcd3 + +import ( + "github.com/coreos/etcd/clientv3" + "github.com/coreos/etcd/mvcc/mvccpb" +) + +type event struct { + key string + value []byte + rev int64 + isDeleted bool + isCreated bool +} + +func parseKV(kv *mvccpb.KeyValue) *event { + return &event{ + key: string(kv.Key), + value: kv.Value, + rev: kv.ModRevision, + isDeleted: false, + isCreated: kv.ModRevision == kv.CreateRevision, + } +} + +func parseEvent(e *clientv3.Event) *event { + return &event{ + key: string(e.Kv.Key), + value: e.Kv.Value, + rev: e.Kv.ModRevision, + isDeleted: e.Type == clientv3.EventTypeDelete, + isCreated: e.IsCreate(), + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/store.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/store.go new file mode 100644 index 0000000000..83b74a5636 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/store.go @@ -0,0 +1,455 @@ +/* +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 etcd3 + +import ( + "bytes" + "errors" + "fmt" + "path" + "reflect" + "strings" + + "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/meta" + "k8s.io/kubernetes/pkg/conversion" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/storage/etcd" + "k8s.io/kubernetes/pkg/watch" + + "github.com/coreos/etcd/clientv3" + "github.com/golang/glog" + "golang.org/x/net/context" +) + +type store struct { + client *clientv3.Client + codec runtime.Codec + versioner storage.Versioner + pathPrefix string + watcher *watcher +} + +type elemForDecode struct { + data []byte + rev uint64 +} + +type objState struct { + obj runtime.Object + meta *storage.ResponseMeta + rev int64 + data []byte +} + +// New returns an etcd3 implementation of storage.Interface. +func New(c *clientv3.Client, codec runtime.Codec, prefix string) storage.Interface { + return newStore(c, codec, prefix) +} + +func newStore(c *clientv3.Client, codec runtime.Codec, prefix string) *store { + versioner := etcd.APIObjectVersioner{} + return &store{ + client: c, + versioner: versioner, + codec: codec, + pathPrefix: prefix, + watcher: newWatcher(c, codec, versioner), + } +} + +// Versioner implements storage.Interface.Versioner. +func (s *store) Versioner() storage.Versioner { + return s.versioner +} + +// Get implements storage.Interface.Get. +func (s *store) Get(ctx context.Context, key string, out runtime.Object, ignoreNotFound bool) error { + key = keyWithPrefix(s.pathPrefix, key) + getResp, err := s.client.KV.Get(ctx, key) + if err != nil { + return err + } + + if len(getResp.Kvs) == 0 { + if ignoreNotFound { + return runtime.SetZeroValue(out) + } + return storage.NewKeyNotFoundError(key, 0) + } + kv := getResp.Kvs[0] + return decode(s.codec, s.versioner, kv.Value, out, kv.ModRevision) +} + +// Create implements storage.Interface.Create. +func (s *store) Create(ctx context.Context, key string, obj, out runtime.Object, ttl uint64) error { + if version, err := s.versioner.ObjectResourceVersion(obj); err == nil && version != 0 { + return errors.New("resourceVersion should not be set on objects to be created") + } + data, err := runtime.Encode(s.codec, obj) + if err != nil { + return err + } + key = keyWithPrefix(s.pathPrefix, key) + + opts, err := s.ttlOpts(ctx, int64(ttl)) + if err != nil { + return err + } + + txnResp, err := s.client.KV.Txn(ctx).If( + notFound(key), + ).Then( + clientv3.OpPut(key, string(data), opts...), + ).Commit() + if err != nil { + return err + } + if !txnResp.Succeeded { + return storage.NewKeyExistsError(key, 0) + } + + if out != nil { + putResp := txnResp.Responses[0].GetResponsePut() + return decode(s.codec, s.versioner, data, out, putResp.Header.Revision) + } + return nil +} + +// Delete implements storage.Interface.Delete. +func (s *store) Delete(ctx context.Context, key string, out runtime.Object, precondtions *storage.Preconditions) error { + v, err := conversion.EnforcePtr(out) + if err != nil { + panic("unable to convert output object to pointer") + } + key = keyWithPrefix(s.pathPrefix, key) + if precondtions == nil { + return s.unconditionalDelete(ctx, key, out) + } + return s.conditionalDelete(ctx, key, out, v, precondtions) +} + +func (s *store) unconditionalDelete(ctx context.Context, key string, out runtime.Object) error { + // We need to do get and delete in single transaction in order to + // know the value and revision before deleting it. + txnResp, err := s.client.KV.Txn(ctx).If().Then( + clientv3.OpGet(key), + clientv3.OpDelete(key), + ).Commit() + if err != nil { + return err + } + getResp := txnResp.Responses[0].GetResponseRange() + if len(getResp.Kvs) == 0 { + return storage.NewKeyNotFoundError(key, 0) + } + + kv := getResp.Kvs[0] + return decode(s.codec, s.versioner, kv.Value, out, kv.ModRevision) +} + +func (s *store) conditionalDelete(ctx context.Context, key string, out runtime.Object, v reflect.Value, precondtions *storage.Preconditions) error { + getResp, err := s.client.KV.Get(ctx, key) + if err != nil { + return err + } + for { + origState, err := s.getState(getResp, key, v, false) + if err != nil { + return err + } + if err := checkPreconditions(key, precondtions, origState.obj); err != nil { + return err + } + txnResp, err := s.client.KV.Txn(ctx).If( + clientv3.Compare(clientv3.ModRevision(key), "=", origState.rev), + ).Then( + clientv3.OpDelete(key), + ).Else( + clientv3.OpGet(key), + ).Commit() + if err != nil { + return err + } + if !txnResp.Succeeded { + getResp = (*clientv3.GetResponse)(txnResp.Responses[0].GetResponseRange()) + glog.V(4).Infof("deletion of %s failed because of a conflict, going to retry", key) + continue + } + return decode(s.codec, s.versioner, origState.data, out, origState.rev) + } +} + +// GuaranteedUpdate implements storage.Interface.GuaranteedUpdate. +func (s *store) GuaranteedUpdate(ctx context.Context, key string, out runtime.Object, ignoreNotFound bool, precondtions *storage.Preconditions, tryUpdate storage.UpdateFunc) error { + v, err := conversion.EnforcePtr(out) + if err != nil { + panic("unable to convert output object to pointer") + } + key = keyWithPrefix(s.pathPrefix, key) + getResp, err := s.client.KV.Get(ctx, key) + if err != nil { + return err + } + for { + origState, err := s.getState(getResp, key, v, ignoreNotFound) + if err != nil { + return err + } + + if err := checkPreconditions(key, precondtions, origState.obj); err != nil { + return err + } + + ret, ttl, err := s.updateState(origState, tryUpdate) + if err != nil { + return err + } + + data, err := runtime.Encode(s.codec, ret) + if err != nil { + return err + } + if bytes.Equal(data, origState.data) { + return decode(s.codec, s.versioner, origState.data, out, origState.rev) + } + + opts, err := s.ttlOpts(ctx, int64(ttl)) + if err != nil { + return err + } + + txnResp, err := s.client.KV.Txn(ctx).If( + clientv3.Compare(clientv3.ModRevision(key), "=", origState.rev), + ).Then( + clientv3.OpPut(key, string(data), opts...), + ).Else( + clientv3.OpGet(key), + ).Commit() + if err != nil { + return err + } + if !txnResp.Succeeded { + getResp = (*clientv3.GetResponse)(txnResp.Responses[0].GetResponseRange()) + glog.V(4).Infof("GuaranteedUpdate of %s failed because of a conflict, going to retry", key) + continue + } + putResp := txnResp.Responses[0].GetResponsePut() + return decode(s.codec, s.versioner, data, out, putResp.Header.Revision) + } +} + +// GetToList implements storage.Interface.GetToList. +func (s *store) GetToList(ctx context.Context, key string, filter storage.Filter, listObj runtime.Object) error { + listPtr, err := meta.GetItemsPtr(listObj) + if err != nil { + return err + } + key = keyWithPrefix(s.pathPrefix, key) + + getResp, err := s.client.KV.Get(ctx, key) + if err != nil { + return err + } + if len(getResp.Kvs) == 0 { + return nil + } + elems := []*elemForDecode{{ + data: getResp.Kvs[0].Value, + rev: uint64(getResp.Kvs[0].ModRevision), + }} + if err := decodeList(elems, filter, listPtr, s.codec, s.versioner); err != nil { + return err + } + // update version with cluster level revision + return s.versioner.UpdateList(listObj, uint64(getResp.Header.Revision)) +} + +// List implements storage.Interface.List. +func (s *store) List(ctx context.Context, key, resourceVersion string, filter storage.Filter, listObj runtime.Object) error { + listPtr, err := meta.GetItemsPtr(listObj) + if err != nil { + return err + } + key = keyWithPrefix(s.pathPrefix, key) + // We need to make sure the key ended with "/" so that we only get children "directories". + // e.g. if we have key "/a", "/a/b", "/ab", getting keys with prefix "/a" will return all three, + // while with prefix "/a/" will return only "/a/b" which is the correct answer. + if !strings.HasSuffix(key, "/") { + key += "/" + } + getResp, err := s.client.KV.Get(ctx, key, clientv3.WithPrefix()) + if err != nil { + return err + } + + elems := make([]*elemForDecode, len(getResp.Kvs)) + for i, kv := range getResp.Kvs { + elems[i] = &elemForDecode{ + data: kv.Value, + rev: uint64(kv.ModRevision), + } + } + if err := decodeList(elems, filter, listPtr, s.codec, s.versioner); err != nil { + return err + } + // update version with cluster level revision + return s.versioner.UpdateList(listObj, uint64(getResp.Header.Revision)) +} + +// Watch implements storage.Interface.Watch. +func (s *store) Watch(ctx context.Context, key string, resourceVersion string, filter storage.Filter) (watch.Interface, error) { + return s.watch(ctx, key, resourceVersion, filter, false) +} + +// WatchList implements storage.Interface.WatchList. +func (s *store) WatchList(ctx context.Context, key string, resourceVersion string, filter storage.Filter) (watch.Interface, error) { + return s.watch(ctx, key, resourceVersion, filter, true) +} + +func (s *store) watch(ctx context.Context, key string, rv string, filter storage.Filter, recursive bool) (watch.Interface, error) { + rev, err := storage.ParseWatchResourceVersion(rv) + if err != nil { + return nil, err + } + key = keyWithPrefix(s.pathPrefix, key) + return s.watcher.Watch(ctx, key, int64(rev), recursive, filter) +} + +func (s *store) getState(getResp *clientv3.GetResponse, key string, v reflect.Value, ignoreNotFound bool) (*objState, error) { + state := &objState{ + obj: reflect.New(v.Type()).Interface().(runtime.Object), + meta: &storage.ResponseMeta{}, + } + if len(getResp.Kvs) == 0 { + if !ignoreNotFound { + return nil, storage.NewKeyNotFoundError(key, 0) + } + if err := runtime.SetZeroValue(state.obj); err != nil { + return nil, err + } + } else { + state.rev = getResp.Kvs[0].ModRevision + state.meta.ResourceVersion = uint64(state.rev) + state.data = getResp.Kvs[0].Value + if err := decode(s.codec, s.versioner, state.data, state.obj, state.rev); err != nil { + return nil, err + } + } + return state, nil +} + +func (s *store) updateState(st *objState, userUpdate storage.UpdateFunc) (runtime.Object, uint64, error) { + ret, ttlPtr, err := userUpdate(st.obj, *st.meta) + if err != nil { + return nil, 0, err + } + + version, err := s.versioner.ObjectResourceVersion(ret) + if err != nil { + return nil, 0, err + } + if version != 0 { + // We cannot store object with resourceVersion in etcd. We need to reset it. + if err := s.versioner.UpdateObject(ret, 0); err != nil { + return nil, 0, fmt.Errorf("UpdateObject failed: %v", err) + } + } + var ttl uint64 + if ttlPtr != nil { + ttl = *ttlPtr + } + return ret, ttl, nil +} + +// ttlOpts returns client options based on given ttl. +// ttl: if ttl is non-zero, it will attach the key to a lease with ttl of roughly the same length +func (s *store) ttlOpts(ctx context.Context, ttl int64) ([]clientv3.OpOption, error) { + if ttl == 0 { + return nil, nil + } + // TODO: one lease per ttl key is expensive. Based on current use case, we can have a long window to + // put keys within into same lease. We shall benchmark this and optimize the performance. + lcr, err := s.client.Lease.Grant(ctx, ttl) + if err != nil { + return nil, err + } + return []clientv3.OpOption{clientv3.WithLease(clientv3.LeaseID(lcr.ID))}, nil +} + +func keyWithPrefix(prefix, key string) string { + if strings.HasPrefix(key, prefix) { + return key + } + return path.Join(prefix, key) +} + +// decode decodes value of bytes into object. It will also set the object resource version to rev. +// On success, objPtr would be set to the object. +func decode(codec runtime.Codec, versioner storage.Versioner, value []byte, objPtr runtime.Object, rev int64) error { + if _, err := conversion.EnforcePtr(objPtr); err != nil { + panic("unable to convert output object to pointer") + } + _, _, err := codec.Decode(value, nil, objPtr) + if err != nil { + return err + } + // being unable to set the version does not prevent the object from being extracted + versioner.UpdateObject(objPtr, uint64(rev)) + return nil +} + +// decodeList decodes a list of values into a list of objects, with resource version set to corresponding rev. +// On success, ListPtr would be set to the list of objects. +func decodeList(elems []*elemForDecode, filter storage.Filter, ListPtr interface{}, codec runtime.Codec, versioner storage.Versioner) error { + v, err := conversion.EnforcePtr(ListPtr) + if err != nil || v.Kind() != reflect.Slice { + panic("need ptr to slice") + } + for _, elem := range elems { + obj, _, err := codec.Decode(elem.data, nil, reflect.New(v.Type().Elem()).Interface().(runtime.Object)) + if err != nil { + return err + } + // being unable to set the version does not prevent the object from being extracted + versioner.UpdateObject(obj, elem.rev) + if filter.Filter(obj) { + v.Set(reflect.Append(v, reflect.ValueOf(obj).Elem())) + } + } + return nil +} + +func checkPreconditions(key string, preconditions *storage.Preconditions, out runtime.Object) error { + if preconditions == nil { + return nil + } + objMeta, err := api.ObjectMetaFor(out) + if err != nil { + return storage.NewInternalErrorf("can't enforce preconditions %v on un-introspectable object %v, got error: %v", *preconditions, out, err) + } + if preconditions.UID != nil && *preconditions.UID != objMeta.UID { + errMsg := fmt.Sprintf("Precondition failed: UID in precondition: %v, UID in object meta: %v", preconditions.UID, objMeta.UID) + return storage.NewInvalidObjError(key, errMsg) + } + return nil +} + +func notFound(key string) clientv3.Cmp { + return clientv3.Compare(clientv3.ModRevision(key), "=", 0) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/watcher.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/watcher.go new file mode 100644 index 0000000000..02bc31437d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/etcd3/watcher.go @@ -0,0 +1,347 @@ +/* +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 etcd3 + +import ( + "fmt" + "net/http" + "strings" + "sync" + + "k8s.io/kubernetes/pkg/api/unversioned" + "k8s.io/kubernetes/pkg/runtime" + "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/watch" + + "github.com/coreos/etcd/clientv3" + etcdrpc "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" + "github.com/golang/glog" + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" +) + +const ( + // We have set a buffer in order to reduce times of context switches. + incomingBufSize = 100 + outgoingBufSize = 100 +) + +type watcher struct { + client *clientv3.Client + codec runtime.Codec + versioner storage.Versioner +} + +// watchChan implements watch.Interface. +type watchChan struct { + watcher *watcher + key string + initialRev int64 + recursive bool + filter storage.Filter + ctx context.Context + cancel context.CancelFunc + incomingEventChan chan *event + resultChan chan watch.Event + errChan chan error +} + +func newWatcher(client *clientv3.Client, codec runtime.Codec, versioner storage.Versioner) *watcher { + return &watcher{ + client: client, + codec: codec, + versioner: versioner, + } +} + +// Watch watches on a key and returns a watch.Interface that transfers relevant notifications. +// If rev is zero, it will return the existing object(s) and then start watching from +// the maximum revision+1 from returned objects. +// If rev is non-zero, it will watch events happened after given revision. +// If recursive is false, it watches on given key. +// If recursive is true, it watches any children and directories under the key, excluding the root key itself. +// filter must be non-nil. Only if filter returns true will the changes be returned. +func (w *watcher) Watch(ctx context.Context, key string, rev int64, recursive bool, filter storage.Filter) (watch.Interface, error) { + if recursive && !strings.HasSuffix(key, "/") { + key += "/" + } + wc := w.createWatchChan(ctx, key, rev, recursive, filter) + go wc.run() + return wc, nil +} + +func (w *watcher) createWatchChan(ctx context.Context, key string, rev int64, recursive bool, filter storage.Filter) *watchChan { + wc := &watchChan{ + watcher: w, + key: key, + initialRev: rev, + recursive: recursive, + filter: filter, + incomingEventChan: make(chan *event, incomingBufSize), + resultChan: make(chan watch.Event, outgoingBufSize), + errChan: make(chan error, 1), + } + wc.ctx, wc.cancel = context.WithCancel(ctx) + return wc +} + +func (wc *watchChan) run() { + go wc.startWatching() + + var resultChanWG sync.WaitGroup + resultChanWG.Add(1) + go wc.processEvent(&resultChanWG) + + select { + case err := <-wc.errChan: + errResult := parseError(err) + if errResult != nil { + // error result is guaranteed to be received by user before closing ResultChan. + select { + case wc.resultChan <- *errResult: + case <-wc.ctx.Done(): // user has given up all results + } + } + wc.cancel() + case <-wc.ctx.Done(): + } + // we need to wait until resultChan wouldn't be sent to anymore + resultChanWG.Wait() + close(wc.resultChan) +} + +func (wc *watchChan) Stop() { + wc.cancel() +} + +func (wc *watchChan) ResultChan() <-chan watch.Event { + return wc.resultChan +} + +// sync tries to retrieve existing data and send them to process. +// The revision to watch will be set to the revision in response. +func (wc *watchChan) sync() error { + opts := []clientv3.OpOption{} + if wc.recursive { + opts = append(opts, clientv3.WithPrefix()) + } + getResp, err := wc.watcher.client.Get(wc.ctx, wc.key, opts...) + if err != nil { + return err + } + wc.initialRev = getResp.Header.Revision + + for _, kv := range getResp.Kvs { + wc.sendEvent(parseKV(kv)) + } + return nil +} + +// startWatching does: +// - get current objects if initialRev=0; set initialRev to current rev +// - watch on given key and send events to process. +func (wc *watchChan) startWatching() { + if wc.initialRev == 0 { + if err := wc.sync(); err != nil { + wc.sendError(err) + return + } + } + opts := []clientv3.OpOption{clientv3.WithRev(wc.initialRev + 1)} + if wc.recursive { + opts = append(opts, clientv3.WithPrefix()) + } + wch := wc.watcher.client.Watch(wc.ctx, wc.key, opts...) + for wres := range wch { + if wres.Err() != nil { + // If there is an error on server (e.g. compaction), the channel will return it before closed. + wc.sendError(wres.Err()) + return + } + for _, e := range wres.Events { + wc.sendEvent(parseEvent(e)) + } + } +} + +// processEvent processes events from etcd watcher and sends results to resultChan. +func (wc *watchChan) processEvent(wg *sync.WaitGroup) { + defer wg.Done() + + for { + select { + case e := <-wc.incomingEventChan: + res := wc.transform(e) + if res == nil { + continue + } + // If user couldn't receive results fast enough, we also block incoming events from watcher. + // Because storing events in local will cause more memory usage. + // The worst case would be closing the fast watcher. + select { + case wc.resultChan <- *res: + case <-wc.ctx.Done(): + return + } + case <-wc.ctx.Done(): + return + } + } +} + +// transform transforms an event into a result for user if not filtered. +// TODO (Optimization): +// - Save remote round-trip. +// Currently, DELETE and PUT event don't contain the previous value. +// We need to do another Get() in order to get previous object and have logic upon it. +// We could potentially do some optimizations: +// - For PUT, we can save current and previous objects into the value. +// - For DELETE, See https://github.com/coreos/etcd/issues/4620 +func (wc *watchChan) transform(e *event) (res *watch.Event) { + curObj, oldObj, err := prepareObjs(wc.ctx, e, wc.watcher.client, wc.watcher.codec, wc.watcher.versioner) + if err != nil { + wc.sendError(err) + return nil + } + + switch { + case e.isDeleted: + if !wc.filter.Filter(oldObj) { + return nil + } + res = &watch.Event{ + Type: watch.Deleted, + Object: oldObj, + } + case e.isCreated: + if !wc.filter.Filter(curObj) { + return nil + } + res = &watch.Event{ + Type: watch.Added, + Object: curObj, + } + default: + curObjPasses := wc.filter.Filter(curObj) + oldObjPasses := wc.filter.Filter(oldObj) + switch { + case curObjPasses && oldObjPasses: + res = &watch.Event{ + Type: watch.Modified, + Object: curObj, + } + case curObjPasses && !oldObjPasses: + res = &watch.Event{ + Type: watch.Added, + Object: curObj, + } + case !curObjPasses && oldObjPasses: + res = &watch.Event{ + Type: watch.Deleted, + Object: oldObj, + } + } + } + return res +} + +func parseError(err error) *watch.Event { + var status *unversioned.Status + switch { + case err == etcdrpc.ErrCompacted: + status = &unversioned.Status{ + Status: unversioned.StatusFailure, + Message: err.Error(), + Code: http.StatusGone, + Reason: unversioned.StatusReasonExpired, + } + default: + status = &unversioned.Status{ + Status: unversioned.StatusFailure, + Message: err.Error(), + Code: http.StatusInternalServerError, + Reason: unversioned.StatusReasonInternalError, + } + } + + return &watch.Event{ + Type: watch.Error, + Object: status, + } +} + +func (wc *watchChan) sendError(err error) { + // Context.canceled is an expected behavior. + // We should just stop all goroutines in watchChan without returning error. + // TODO: etcd client should return context.Canceled instead of grpc specific error. + if grpc.Code(err) == codes.Canceled || err == context.Canceled { + return + } + select { + case wc.errChan <- err: + case <-wc.ctx.Done(): + } +} + +func (wc *watchChan) sendEvent(e *event) { + if len(wc.incomingEventChan) == incomingBufSize { + glog.V(2).Infof("Fast watcher, slow processing. Number of buffered events: %d."+ + "Probably caused by slow decoding, user not receiving fast, or other processing logic", + incomingBufSize) + } + select { + case wc.incomingEventChan <- e: + case <-wc.ctx.Done(): + } +} + +func prepareObjs(ctx context.Context, e *event, client *clientv3.Client, codec runtime.Codec, versioner storage.Versioner) (curObj runtime.Object, oldObj runtime.Object, err error) { + if !e.isDeleted { + curObj, err = decodeObj(codec, versioner, e.value, e.rev) + if err != nil { + return nil, nil, err + } + } + if e.isDeleted || !e.isCreated { + getResp, err := client.Get(ctx, e.key, clientv3.WithRev(e.rev-1)) + if err != nil { + return nil, nil, err + } + // Note that this sends the *old* object with the etcd revision for the time at + // which it gets deleted. + // We assume old object is returned only in Deleted event. Users (e.g. cacher) need + // to have larger than previous rev to tell the ordering. + oldObj, err = decodeObj(codec, versioner, getResp.Kvs[0].Value, e.rev) + if err != nil { + return nil, nil, err + } + } + return curObj, oldObj, nil +} + +func decodeObj(codec runtime.Codec, versioner storage.Versioner, data []byte, rev int64) (runtime.Object, error) { + obj, err := runtime.Decode(codec, []byte(data)) + if err != nil { + return nil, err + } + // ensure resource version is set on the object we load from etcd + if err := versioner.UpdateObject(obj, uint64(rev)); err != nil { + return nil, fmt.Errorf("failure to version api object (%d) %#v: %v", rev, obj, err) + } + return obj, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/interfaces.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/interfaces.go index 8673a101fb..900a4a2e27 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/storage/interfaces.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/interfaces.go @@ -51,15 +51,47 @@ type ResponseMeta struct { ResourceVersion uint64 } -// FilterFunc is a predicate which takes an API object and returns true -// if and only if the object should remain in the set. -type FilterFunc func(obj runtime.Object) bool +// MatchValue defines a pair (, ). +type MatchValue struct { + IndexName string + Value string +} + +// TriggerPublisherFunc is a function that takes an object, and returns a list of pairs +// (, ) for all indexes known +// to that function. +type TriggerPublisherFunc func(obj runtime.Object) []MatchValue + +// Filter is interface that is used to pass filtering mechanism. +type Filter interface { + // Filter is a predicate which takes an API object and returns true + // if and only if the object should remain in the set. + Filter(obj runtime.Object) bool + // For any triggers known to the Filter, if Filter() can return only + // (a subset of) objects for which indexing function returns , + // (, pair would be returned. + // + // This is optimization to avoid computing Filter() function (which are + // usually relatively expensive) in case we are sure they will return + // false anyway. + Trigger() []MatchValue +} + +// Everything is a Filter which accepts all objects. +var Everything Filter = everything{} + +// everything is implementation of Everything. +type everything struct { +} -// Everything is a FilterFunc which accepts all objects. -func Everything(runtime.Object) bool { +func (e everything) Filter(runtime.Object) bool { return true } +func (e everything) Trigger() []MatchValue { + return nil +} + // Pass an UpdateFunc to Interface.GuaranteedUpdate to make an update // that is guaranteed to succeed. // See the comment for GuaranteedUpdate for more details. @@ -77,14 +109,9 @@ func NewUIDPreconditions(uid string) *Preconditions { return &Preconditions{UID: &u} } -// Interface offers a common interface for object marshaling/unmarshling operations and +// Interface offers a common interface for object marshaling/unmarshaling operations and // hides all the storage-related operations behind it. type Interface interface { - // Returns list of servers addresses of the underyling database. - // TODO: This method is used only in a single place. Consider refactoring and getting rid - // of this method from the interface. - Backends(ctx context.Context) []string - // Returns Versioner associated with this interface. Versioner() Versioner @@ -102,14 +129,14 @@ type Interface interface { // resourceVersion may be used to specify what version to begin watching, // which should be the current resourceVersion, and no longer rv+1 // (e.g. reconnecting without missing any updates). - Watch(ctx context.Context, key string, resourceVersion string, filter FilterFunc) (watch.Interface, error) + Watch(ctx context.Context, key string, resourceVersion string, filter Filter) (watch.Interface, error) // WatchList begins watching the specified key's items. Items are decoded into API // objects and any item passing 'filter' are sent down to returned watch.Interface. // resourceVersion may be used to specify what version to begin watching, // which should be the current resourceVersion, and no longer rv+1 // (e.g. reconnecting without missing any updates). - WatchList(ctx context.Context, key string, resourceVersion string, filter FilterFunc) (watch.Interface, error) + WatchList(ctx context.Context, key string, resourceVersion string, filter Filter) (watch.Interface, error) // Get unmarshals json found at key into objPtr. On a not found error, will either // return a zero object of the requested type, or an error, depending on ignoreNotFound. @@ -118,13 +145,13 @@ type Interface interface { // GetToList unmarshals json found at key and opaque it into *List api object // (an object that satisfies the runtime.IsList definition). - GetToList(ctx context.Context, key string, filter FilterFunc, listObj runtime.Object) error + GetToList(ctx context.Context, key string, filter Filter, listObj runtime.Object) error // List unmarshalls jsons found at directory defined by key and opaque them // into *List api object (an object that satisfies runtime.IsList definition). // The returned contents may be delayed, but it is guaranteed that they will // be have at least 'resourceVersion'. - List(ctx context.Context, key string, resourceVersion string, filter FilterFunc, listObj runtime.Object) error + List(ctx context.Context, key string, resourceVersion string, filter Filter, listObj runtime.Object) error // GuaranteedUpdate keeps calling 'tryUpdate()' to update key 'key' (of type 'ptrToType') // retrying the update until success if there is index conflict. @@ -155,17 +182,4 @@ type Interface interface { // } // }) GuaranteedUpdate(ctx context.Context, key string, ptrToType runtime.Object, ignoreNotFound bool, precondtions *Preconditions, tryUpdate UpdateFunc) error - - // Codec provides access to the underlying codec being used by the implementation. - Codec() runtime.Codec -} - -// Config interface allows storage tiers to generate the proper storage.interface -// and reduce the dependencies to encapsulate storage. -type Config interface { - // Creates the Interface base on ConfigObject - NewStorage() (Interface, error) - - // This function is used to enforce membership, and return the underlying type - GetType() string } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/config.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/config.go new file mode 100644 index 0000000000..b62f0e2722 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/config.go @@ -0,0 +1,47 @@ +/* +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 storagebackend + +import "k8s.io/kubernetes/pkg/runtime" + +const ( + StorageTypeUnset = "" + StorageTypeETCD2 = "etcd2" + StorageTypeETCD3 = "etcd3" +) + +// Config is configuration for creating a storage backend. +type Config struct { + // Type defines the type of storage backend, e.g. "etcd2", etcd3". Default ("") is "etcd2". + Type string + // Prefix is the prefix to all keys passed to storage.Interface methods. + Prefix string + // ServerList is the list of storage servers to connect with. + ServerList []string + // TLS credentials + KeyFile string + CertFile string + CAFile string + // Quorum indicates that whether read operations should be quorum-level consistent. + Quorum bool + // DeserializationCacheSize is the size of cache of deserialized objects. + // Currently this is only supported in etcd2. + // We will drop the cache once using protobuf. + DeserializationCacheSize int + + Codec runtime.Codec +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/etcd2.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/etcd2.go new file mode 100644 index 0000000000..9452761a17 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/etcd2.go @@ -0,0 +1,80 @@ +/* +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 factory + +import ( + "net" + "net/http" + "time" + + etcd2client "github.com/coreos/etcd/client" + "github.com/coreos/etcd/pkg/transport" + + "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/storage/etcd" + "k8s.io/kubernetes/pkg/storage/storagebackend" + utilnet "k8s.io/kubernetes/pkg/util/net" +) + +func newETCD2Storage(c storagebackend.Config) (storage.Interface, error) { + tr, err := newTransportForETCD2(c.CertFile, c.KeyFile, c.CAFile) + if err != nil { + return nil, err + } + client, err := newETCD2Client(tr, c.ServerList) + if err != nil { + return nil, err + } + return etcd.NewEtcdStorage(client, c.Codec, c.Prefix, c.Quorum, c.DeserializationCacheSize), nil +} + +func newETCD2Client(tr *http.Transport, serverList []string) (etcd2client.Client, error) { + cli, err := etcd2client.New(etcd2client.Config{ + Endpoints: serverList, + Transport: tr, + }) + if err != nil { + return nil, err + } + + return cli, nil +} + +func newTransportForETCD2(certFile, keyFile, caFile string) (*http.Transport, error) { + info := transport.TLSInfo{ + CertFile: certFile, + KeyFile: keyFile, + CAFile: caFile, + } + cfg, err := info.ClientConfig() + if err != nil { + return nil, err + } + // Copied from etcd.DefaultTransport declaration. + // TODO: Determine if transport needs optimization + tr := utilnet.SetTransportDefaults(&http.Transport{ + Proxy: http.ProxyFromEnvironment, + Dial: (&net.Dialer{ + Timeout: 30 * time.Second, + KeepAlive: 30 * time.Second, + }).Dial, + TLSHandshakeTimeout: 10 * time.Second, + MaxIdleConnsPerHost: 500, + TLSClientConfig: cfg, + }) + return tr, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/etcd3.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/etcd3.go new file mode 100644 index 0000000000..9fea1785f5 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/etcd3.go @@ -0,0 +1,50 @@ +/* +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 factory + +import ( + "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/storage/etcd3" + "k8s.io/kubernetes/pkg/storage/storagebackend" + + "github.com/coreos/etcd/clientv3" + "github.com/coreos/etcd/pkg/transport" + "golang.org/x/net/context" +) + +func newETCD3Storage(c storagebackend.Config) (storage.Interface, error) { + tlsInfo := transport.TLSInfo{ + CertFile: c.CertFile, + KeyFile: c.KeyFile, + CAFile: c.CAFile, + } + tlsConfig, err := tlsInfo.ClientConfig() + if err != nil { + return nil, err + } + + cfg := clientv3.Config{ + Endpoints: c.ServerList, + TLS: tlsConfig, + } + client, err := clientv3.New(cfg) + if err != nil { + return nil, err + } + etcd3.StartCompactor(context.Background(), client) + return etcd3.New(client, c.Codec, c.Prefix), nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/factory.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/factory.go new file mode 100644 index 0000000000..de9d7734b2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/storagebackend/factory/factory.go @@ -0,0 +1,40 @@ +/* +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 factory + +import ( + "fmt" + + "k8s.io/kubernetes/pkg/storage" + "k8s.io/kubernetes/pkg/storage/storagebackend" +) + +// Create creates a storage backend based on given config. +func Create(c storagebackend.Config) (storage.Interface, error) { + switch c.Type { + case storagebackend.StorageTypeUnset, storagebackend.StorageTypeETCD2: + return newETCD2Storage(c) + case storagebackend.StorageTypeETCD3: + // TODO: We have the following features to implement: + // - Support secure connection by using key, cert, and CA files. + // - Honor "https" scheme to support secure connection in gRPC. + // - Support non-quorum read. + return newETCD3Storage(c) + default: + return nil, fmt.Errorf("unknown storage type: %s", c.Type) + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/util.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/util.go index 86ebc0e42e..571e104d93 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/storage/util.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/util.go @@ -19,6 +19,7 @@ package storage import ( "fmt" "strconv" + "strings" "k8s.io/kubernetes/pkg/api/meta" "k8s.io/kubernetes/pkg/api/validation" @@ -36,6 +37,41 @@ func SimpleUpdate(fn SimpleUpdateFunc) UpdateFunc { } } +// SimpleFilter implements Filter interface. +type SimpleFilter struct { + filterFunc func(runtime.Object) bool + triggerFunc func() []MatchValue +} + +func (s *SimpleFilter) Filter(obj runtime.Object) bool { + return s.filterFunc(obj) +} + +func (s *SimpleFilter) Trigger() []MatchValue { + return s.triggerFunc() +} + +func NewSimpleFilter( + filterFunc func(runtime.Object) bool, + triggerFunc func() []MatchValue) Filter { + return &SimpleFilter{ + filterFunc: filterFunc, + triggerFunc: triggerFunc, + } +} + +func EverythingFunc(runtime.Object) bool { + return true +} + +func NoTriggerFunc() []MatchValue { + return nil +} + +func NoTriggerPublisher(runtime.Object) []MatchValue { + return nil +} + // ParseWatchResourceVersion takes a resource version argument and converts it to // the etcd version we should pass to helper.Watch(). Because resourceVersion is // an opaque value, the default watch behavior for non-zero watch is to watch @@ -88,3 +124,28 @@ func NoNamespaceKeyFunc(prefix string, obj runtime.Object) (string, error) { } return prefix + "/" + name, nil } + +// hasPathPrefix returns true if the string matches pathPrefix exactly, or if is prefixed with pathPrefix at a path segment boundary +func hasPathPrefix(s, pathPrefix string) bool { + // Short circuit if s doesn't contain the prefix at all + if !strings.HasPrefix(s, pathPrefix) { + return false + } + + pathPrefixLength := len(pathPrefix) + + if len(s) == pathPrefixLength { + // Exact match + return true + } + if strings.HasSuffix(pathPrefix, "/") { + // pathPrefix already ensured a path segment boundary + return true + } + if s[pathPrefixLength:pathPrefixLength+1] == "/" { + // The next character in s is a path segment boundary + // Check this instead of normalizing pathPrefix to avoid allocating on every call + return true + } + return false +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/storage/watch_cache.go b/ingress/vendor/k8s.io/kubernetes/pkg/storage/watch_cache.go index 1fd43fc00b..b3f5e0371c 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/storage/watch_cache.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/storage/watch_cache.go @@ -27,7 +27,7 @@ import ( "k8s.io/kubernetes/pkg/api/meta" "k8s.io/kubernetes/pkg/client/cache" "k8s.io/kubernetes/pkg/runtime" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" "k8s.io/kubernetes/pkg/watch" ) @@ -96,7 +96,7 @@ type watchCache struct { onEvent func(watchCacheEvent) // for testing timeouts. - clock util.Clock + clock clock.Clock } func newWatchCache(capacity int) *watchCache { @@ -107,7 +107,7 @@ func newWatchCache(capacity int) *watchCache { endIndex: 0, store: cache.NewStore(cache.MetaNamespaceKeyFunc), resourceVersion: 0, - clock: util.RealClock{}, + clock: clock.RealClock{}, } wc.cond = sync.NewCond(wc.RLocker()) return wc diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/types/namespacedname.go b/ingress/vendor/k8s.io/kubernetes/pkg/types/namespacedname.go index 70a9ac3e24..1e2130da08 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/types/namespacedname.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/util/cache/cache.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/cache/cache.go new file mode 100644 index 0000000000..9a09fe54d6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/cache/cache.go @@ -0,0 +1,83 @@ +/* +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 cache + +import ( + "sync" +) + +const ( + shardsCount int = 32 +) + +type Cache []*cacheShard + +func NewCache(maxSize int) Cache { + if maxSize < shardsCount { + maxSize = shardsCount + } + cache := make(Cache, shardsCount) + for i := 0; i < shardsCount; i++ { + cache[i] = &cacheShard{ + items: make(map[uint64]interface{}), + maxSize: maxSize / shardsCount, + } + } + return cache +} + +func (c Cache) getShard(index uint64) *cacheShard { + return c[index%uint64(shardsCount)] +} + +// Returns true if object already existed, false otherwise. +func (c *Cache) Add(index uint64, obj interface{}) bool { + return c.getShard(index).add(index, obj) +} + +func (c *Cache) Get(index uint64) (obj interface{}, found bool) { + return c.getShard(index).get(index) +} + +type cacheShard struct { + items map[uint64]interface{} + sync.RWMutex + maxSize int +} + +// Returns true if object already existed, false otherwise. +func (s *cacheShard) add(index uint64, obj interface{}) bool { + s.Lock() + defer s.Unlock() + _, isOverwrite := s.items[index] + if !isOverwrite && len(s.items) >= s.maxSize { + var randomKey uint64 + for randomKey = range s.items { + break + } + delete(s.items, randomKey) + } + s.items[index] = obj + return isOverwrite +} + +func (s *cacheShard) get(index uint64) (obj interface{}, found bool) { + s.RLock() + defer s.RUnlock() + obj, found = s.items[index] + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/cache/lruexpirecache.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/cache/lruexpirecache.go new file mode 100644 index 0000000000..7e1bb65a87 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/cache/lruexpirecache.go @@ -0,0 +1,66 @@ +/* +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 cache + +import ( + "sync" + "time" + + "github.com/golang/groupcache/lru" +) + +type LRUExpireCache struct { + cache *lru.Cache + lock sync.RWMutex +} + +func NewLRUExpireCache(maxSize int) *LRUExpireCache { + return &LRUExpireCache{cache: lru.New(maxSize)} +} + +type cacheEntry struct { + value interface{} + expireTime time.Time +} + +func (c *LRUExpireCache) Add(key lru.Key, value interface{}, ttl time.Duration) { + c.lock.Lock() + defer c.lock.Unlock() + c.cache.Add(key, &cacheEntry{value, time.Now().Add(ttl)}) + // Remove entry from cache after ttl. + time.AfterFunc(ttl, func() { c.remove(key) }) +} + +func (c *LRUExpireCache) Get(key lru.Key) (interface{}, bool) { + c.lock.RLock() + defer c.lock.RUnlock() + e, ok := c.cache.Get(key) + if !ok { + return nil, false + } + if time.Now().After(e.(*cacheEntry).expireTime) { + go c.remove(key) + return nil, false + } + return e.(*cacheEntry).value, true +} + +func (c *LRUExpireCache) remove(key lru.Key) { + c.lock.Lock() + defer c.lock.Unlock() + c.cache.Remove(key) +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/certificates/csr.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/certificates/csr.go new file mode 100644 index 0000000000..6f5e78348f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/certificates/csr.go @@ -0,0 +1,138 @@ +/* +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 certificates + +import ( + "crypto/ecdsa" + "crypto/elliptic" + cryptorand "crypto/rand" + "crypto/rsa" + "crypto/x509" + "crypto/x509/pkix" + "encoding/pem" + "errors" + "fmt" + "net" + + "k8s.io/kubernetes/pkg/apis/certificates" +) + +// ParseCertificateRequestObject extracts the CSR from the API object and decodes it. +func ParseCertificateRequestObject(obj *certificates.CertificateSigningRequest) (*x509.CertificateRequest, error) { + // extract PEM from request object + pemBytes := obj.Spec.Request + block, _ := pem.Decode(pemBytes) + if block == nil || block.Type != "CERTIFICATE REQUEST" { + return nil, errors.New("PEM block type must be CERTIFICATE REQUEST") + } + csr, err := x509.ParseCertificateRequest(block.Bytes) + if err != nil { + return nil, err + } + return csr, nil +} + +// GeneratePrivateKey returns PEM data containing a generated ECDSA private key +func GeneratePrivateKey() ([]byte, error) { + privateKey, err := ecdsa.GenerateKey(elliptic.P256(), cryptorand.Reader) + if err != nil { + return nil, err + } + + derBytes, err := x509.MarshalECPrivateKey(privateKey) + if err != nil { + return nil, err + } + + privateKeyPemBlock := &pem.Block{ + Type: "EC PRIVATE KEY", + Bytes: derBytes, + } + return pem.EncodeToMemory(privateKeyPemBlock), nil +} + +// ParsePrivateKey returns a private key parsed from a PEM block in the supplied data. +// Recognizes PEM blocks for "EC PRIVATE KEY" and "RSA PRIVATE KEY" +func ParsePrivateKey(keyData []byte) (interface{}, error) { + for { + var privateKeyPemBlock *pem.Block + privateKeyPemBlock, keyData = pem.Decode(keyData) + if privateKeyPemBlock == nil { + // we read all the PEM blocks and didn't recognize one + return nil, fmt.Errorf("no private key PEM block found") + } + + switch privateKeyPemBlock.Type { + case "EC PRIVATE KEY": + return x509.ParseECPrivateKey(privateKeyPemBlock.Bytes) + case "RSA PRIVATE KEY": + return x509.ParsePKCS1PrivateKey(privateKeyPemBlock.Bytes) + } + } +} + +// NewCertificateRequest generates a PEM-encoded CSR using the supplied private key, subject, and SANs. +// privateKey must be a *ecdsa.PrivateKey or *rsa.PrivateKey. +func NewCertificateRequest(privateKey interface{}, subject *pkix.Name, dnsSANs []string, ipSANs []net.IP) (csr []byte, err error) { + var sigType x509.SignatureAlgorithm + + switch privateKey := privateKey.(type) { + case *ecdsa.PrivateKey: + switch privateKey.Curve { + case elliptic.P224(), elliptic.P256(): + sigType = x509.ECDSAWithSHA256 + case elliptic.P384(): + sigType = x509.ECDSAWithSHA384 + case elliptic.P521(): + sigType = x509.ECDSAWithSHA512 + default: + return nil, fmt.Errorf("unknown elliptic curve: %v", privateKey.Curve) + } + case *rsa.PrivateKey: + keySize := privateKey.N.BitLen() + switch { + case keySize >= 4096: + sigType = x509.SHA512WithRSA + case keySize >= 3072: + sigType = x509.SHA384WithRSA + default: + sigType = x509.SHA256WithRSA + } + + default: + return nil, fmt.Errorf("unsupported key type: %T", privateKey) + } + + template := &x509.CertificateRequest{ + Subject: *subject, + SignatureAlgorithm: sigType, + DNSNames: dnsSANs, + IPAddresses: ipSANs, + } + + csr, err = x509.CreateCertificateRequest(cryptorand.Reader, template, privateKey) + if err != nil { + return nil, err + } + + csrPemBlock := &pem.Block{ + Type: "CERTIFICATE REQUEST", + Bytes: csr, + } + + return pem.EncodeToMemory(csrPemBlock), nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/clock.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/clock/clock.go similarity index 99% rename from ingress/vendor/k8s.io/kubernetes/pkg/util/clock.go rename to ingress/vendor/k8s.io/kubernetes/pkg/util/clock/clock.go index 71aca9eda4..2ea1b53c1a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/clock.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/clock/clock.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package util +package clock import ( "sync" diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/config/config.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/config.go new file mode 100644 index 0000000000..30defee87d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/config.go @@ -0,0 +1,140 @@ +/* +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 config + +import ( + "sync" + + "k8s.io/kubernetes/pkg/util/wait" +) + +type Merger interface { + // Invoked when a change from a source is received. May also function as an incremental + // merger if you wish to consume changes incrementally. Must be reentrant when more than + // one source is defined. + Merge(source string, update interface{}) error +} + +// MergeFunc implements the Merger interface +type MergeFunc func(source string, update interface{}) error + +func (f MergeFunc) Merge(source string, update interface{}) error { + return f(source, update) +} + +// Mux is a class for merging configuration from multiple sources. Changes are +// pushed via channels and sent to the merge function. +type Mux struct { + // Invoked when an update is sent to a source. + merger Merger + + // Sources and their lock. + sourceLock sync.RWMutex + // Maps source names to channels + sources map[string]chan interface{} +} + +// NewMux creates a new mux that can merge changes from multiple sources. +func NewMux(merger Merger) *Mux { + mux := &Mux{ + sources: make(map[string]chan interface{}), + merger: merger, + } + return mux +} + +// Channel returns a channel where a configuration source +// can send updates of new configurations. Multiple calls with the same +// source will return the same channel. This allows change and state based sources +// to use the same channel. Different source names however will be treated as a +// union. +func (m *Mux) Channel(source string) chan interface{} { + if len(source) == 0 { + panic("Channel given an empty name") + } + m.sourceLock.Lock() + defer m.sourceLock.Unlock() + channel, exists := m.sources[source] + if exists { + return channel + } + newChannel := make(chan interface{}) + m.sources[source] = newChannel + go wait.Until(func() { m.listen(source, newChannel) }, 0, wait.NeverStop) + return newChannel +} + +func (m *Mux) listen(source string, listenChannel <-chan interface{}) { + for update := range listenChannel { + m.merger.Merge(source, update) + } +} + +// Accessor is an interface for retrieving the current merge state. +type Accessor interface { + // MergedState returns a representation of the current merge state. + // Must be reentrant when more than one source is defined. + MergedState() interface{} +} + +// AccessorFunc implements the Accessor interface. +type AccessorFunc func() interface{} + +func (f AccessorFunc) MergedState() interface{} { + return f() +} + +type Listener interface { + // OnUpdate is invoked when a change is made to an object. + OnUpdate(instance interface{}) +} + +// ListenerFunc receives a representation of the change or object. +type ListenerFunc func(instance interface{}) + +func (f ListenerFunc) OnUpdate(instance interface{}) { + f(instance) +} + +type Broadcaster struct { + // Listeners for changes and their lock. + listenerLock sync.RWMutex + listeners []Listener +} + +// NewBroadcaster registers a set of listeners that support the Listener interface +// and notifies them all on changes. +func NewBroadcaster() *Broadcaster { + return &Broadcaster{} +} + +// Add registers listener to receive updates of changes. +func (b *Broadcaster) Add(listener Listener) { + b.listenerLock.Lock() + defer b.listenerLock.Unlock() + b.listeners = append(b.listeners, listener) +} + +// Notify notifies all listeners. +func (b *Broadcaster) Notify(instance interface{}) { + b.listenerLock.RLock() + listeners := b.listeners + b.listenerLock.RUnlock() + for _, listener := range listeners { + listener.OnUpdate(instance) + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/config/configuration_map.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/configuration_map.go new file mode 100644 index 0000000000..0acbde56f8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/configuration_map.go @@ -0,0 +1,53 @@ +/* +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 config + +import ( + "fmt" + "sort" + "strings" +) + +type ConfigurationMap map[string]string + +func (m *ConfigurationMap) String() string { + pairs := []string{} + for k, v := range *m { + pairs = append(pairs, fmt.Sprintf("%s=%s", k, v)) + } + sort.Strings(pairs) + return strings.Join(pairs, ",") +} + +func (m *ConfigurationMap) Set(value string) error { + for _, s := range strings.Split(value, ",") { + if len(s) == 0 { + continue + } + arr := strings.SplitN(s, "=", 2) + if len(arr) == 2 { + (*m)[strings.TrimSpace(arr[0])] = strings.TrimSpace(arr[1]) + } else { + (*m)[strings.TrimSpace(arr[0])] = "" + } + } + return nil +} + +func (*ConfigurationMap) Type() string { + return "mapStringString" +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/config/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/doc.go new file mode 100644 index 0000000000..5dbb37d448 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/doc.go @@ -0,0 +1,20 @@ +/* +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 config provides utility objects for decoupling sources of configuration and the +// actual configuration state. Consumers must implement the Merger interface to unify +// the sources of change into an object. +package config diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/config/feature_gate.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/feature_gate.go new file mode 100644 index 0000000000..71e5e330fe --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/config/feature_gate.go @@ -0,0 +1,212 @@ +/* +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" + dynamicKubeletConfig = "DynamicKubeletConfig" + dynamicVolumeProvisioning = "DynamicVolumeProvisioning" + // TODO: Define gate/accessor for AppArmor +) + +var ( + // Default values for recorded features. Every new feature gate should be + // represented here. + knownFeatures = map[string]featureSpec{ + allAlphaGate: {false, alpha}, + externalTrafficLocalOnly: {false, 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: @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) +} + +// 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/ingress/vendor/k8s.io/kubernetes/pkg/util/crypto/crypto.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/crypto/crypto.go index b573c8a594..7e92645084 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/crypto/crypto.go +++ b/ingress/vendor/k8s.io/kubernetes/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,21 +109,43 @@ func GenerateSelfSignedCert(host, certPath, keyPath string, alternateIPs []net.I } // Write cert + if err := WriteCertToPath(certPath, certBuffer.Bytes()); err != nil { + return err + } + + // Write key + 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, certBuffer.Bytes(), os.FileMode(0644)); err != nil { + if err := ioutil.WriteFile(certPath, data, os.FileMode(0644)); err != nil { return err } + return nil +} - // Write key +// 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, keyBuffer.Bytes(), os.FileMode(0600)); err != nil { + if err := ioutil.WriteFile(keyPath, data, os.FileMode(0600)); err != nil { return err } - return nil } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/doc.go new file mode 100644 index 0000000000..8b824d2445 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/doc.go @@ -0,0 +1,18 @@ +/* +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 exec provides an injectable interface and implementations for running commands. +package exec diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/exec.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/exec.go new file mode 100644 index 0000000000..1aeba036f4 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/exec.go @@ -0,0 +1,167 @@ +/* +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 exec + +import ( + "io" + osexec "os/exec" + "syscall" +) + +// ErrExecutableNotFound is returned if the executable is not found. +var ErrExecutableNotFound = osexec.ErrNotFound + +// Interface is an interface that presents a subset of the os/exec API. Use this +// when you want to inject fakeable/mockable exec behavior. +type Interface interface { + // Command returns a Cmd instance which can be used to run a single command. + // This follows the pattern of package os/exec. + Command(cmd string, args ...string) Cmd + + // LookPath wraps os/exec.LookPath + LookPath(file string) (string, error) +} + +// Cmd is an interface that presents an API that is very similar to Cmd from os/exec. +// As more functionality is needed, this can grow. Since Cmd is a struct, we will have +// to replace fields with get/set method pairs. +type Cmd interface { + // CombinedOutput runs the command and returns its combined standard output + // and standard error. This follows the pattern of package os/exec. + CombinedOutput() ([]byte, error) + // Output runs the command and returns standard output, but not standard err + Output() ([]byte, error) + SetDir(dir string) + SetStdin(in io.Reader) + SetStdout(out io.Writer) +} + +// ExitError is an interface that presents an API similar to os.ProcessState, which is +// what ExitError from os/exec is. This is designed to make testing a bit easier and +// probably loses some of the cross-platform properties of the underlying library. +type ExitError interface { + String() string + Error() string + Exited() bool + ExitStatus() int +} + +// Implements Interface in terms of really exec()ing. +type executor struct{} + +// New returns a new Interface which will os/exec to run commands. +func New() Interface { + return &executor{} +} + +// Command is part of the Interface interface. +func (executor *executor) Command(cmd string, args ...string) Cmd { + return (*cmdWrapper)(osexec.Command(cmd, args...)) +} + +// LookPath is part of the Interface interface +func (executor *executor) LookPath(file string) (string, error) { + return osexec.LookPath(file) +} + +// Wraps exec.Cmd so we can capture errors. +type cmdWrapper osexec.Cmd + +func (cmd *cmdWrapper) SetDir(dir string) { + cmd.Dir = dir +} + +func (cmd *cmdWrapper) SetStdin(in io.Reader) { + cmd.Stdin = in +} + +func (cmd *cmdWrapper) SetStdout(out io.Writer) { + cmd.Stdout = out +} + +// CombinedOutput is part of the Cmd interface. +func (cmd *cmdWrapper) CombinedOutput() ([]byte, error) { + out, err := (*osexec.Cmd)(cmd).CombinedOutput() + if err != nil { + return out, handleError(err) + } + return out, nil +} + +func (cmd *cmdWrapper) Output() ([]byte, error) { + out, err := (*osexec.Cmd)(cmd).Output() + if err != nil { + return out, handleError(err) + } + return out, nil +} + +func handleError(err error) error { + if ee, ok := err.(*osexec.ExitError); ok { + // Force a compile fail if exitErrorWrapper can't convert to ExitError. + var x ExitError = &ExitErrorWrapper{ee} + return x + } + if ee, ok := err.(*osexec.Error); ok { + if ee.Err == osexec.ErrNotFound { + return ErrExecutableNotFound + } + } + return err +} + +// ExitErrorWrapper is an implementation of ExitError in terms of os/exec ExitError. +// Note: standard exec.ExitError is type *os.ProcessState, which already implements Exited(). +type ExitErrorWrapper struct { + *osexec.ExitError +} + +var _ ExitError = ExitErrorWrapper{} + +// ExitStatus is part of the ExitError interface. +func (eew ExitErrorWrapper) ExitStatus() int { + ws, ok := eew.Sys().(syscall.WaitStatus) + if !ok { + panic("can't call ExitStatus() on a non-WaitStatus exitErrorWrapper") + } + return ws.ExitStatus() +} + +// CodeExitError is an implementation of ExitError consisting of an error object +// and an exit code (the upper bits of os.exec.ExitStatus). +type CodeExitError struct { + Err error + Code int +} + +var _ ExitError = CodeExitError{} + +func (e CodeExitError) Error() string { + return e.Err.Error() +} + +func (e CodeExitError) String() string { + return e.Err.Error() +} + +func (e CodeExitError) Exited() bool { + return true +} + +func (e CodeExitError) ExitStatus() int { + return e.Code +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/fake_exec.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/fake_exec.go new file mode 100644 index 0000000000..bd26081968 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/exec/fake_exec.go @@ -0,0 +1,112 @@ +/* +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 exec + +import ( + "fmt" + "io" +) + +// A simple scripted Interface type. +type FakeExec struct { + CommandScript []FakeCommandAction + CommandCalls int + LookPathFunc func(string) (string, error) +} + +type FakeCommandAction func(cmd string, args ...string) Cmd + +func (fake *FakeExec) Command(cmd string, args ...string) Cmd { + if fake.CommandCalls > len(fake.CommandScript)-1 { + panic(fmt.Sprintf("ran out of Command() actions. Could not handle command [%d]: %s args: %v", fake.CommandCalls, cmd, args)) + } + i := fake.CommandCalls + fake.CommandCalls++ + return fake.CommandScript[i](cmd, args...) +} + +func (fake *FakeExec) LookPath(file string) (string, error) { + return fake.LookPathFunc(file) +} + +// A simple scripted Cmd type. +type FakeCmd struct { + Argv []string + CombinedOutputScript []FakeCombinedOutputAction + CombinedOutputCalls int + CombinedOutputLog [][]string + Dirs []string + Stdin io.Reader + Stdout io.Writer +} + +func InitFakeCmd(fake *FakeCmd, cmd string, args ...string) Cmd { + fake.Argv = append([]string{cmd}, args...) + return fake +} + +type FakeCombinedOutputAction func() ([]byte, error) + +func (fake *FakeCmd) SetDir(dir string) { + fake.Dirs = append(fake.Dirs, dir) +} + +func (fake *FakeCmd) SetStdin(in io.Reader) { + fake.Stdin = in +} + +func (fake *FakeCmd) SetStdout(out io.Writer) { + fake.Stdout = out +} + +func (fake *FakeCmd) CombinedOutput() ([]byte, error) { + if fake.CombinedOutputCalls > len(fake.CombinedOutputScript)-1 { + panic("ran out of CombinedOutput() actions") + } + if fake.CombinedOutputLog == nil { + fake.CombinedOutputLog = [][]string{} + } + i := fake.CombinedOutputCalls + fake.CombinedOutputLog = append(fake.CombinedOutputLog, append([]string{}, fake.Argv...)) + fake.CombinedOutputCalls++ + return fake.CombinedOutputScript[i]() +} + +func (fake *FakeCmd) Output() ([]byte, error) { + return nil, fmt.Errorf("unimplemented") +} + +// A simple fake ExitError type. +type FakeExitError struct { + Status int +} + +func (fake *FakeExitError) String() string { + return fmt.Sprintf("exit %d", fake.Status) +} + +func (fake *FakeExitError) Error() string { + return fake.String() +} + +func (fake *FakeExitError) Exited() bool { + return true +} + +func (fake *FakeExitError) ExitStatus() int { + return fake.Status +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/backoff.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/backoff.go index 59b9976f1a..2d91cc5e02 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/backoff.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/backoff.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" "k8s.io/kubernetes/pkg/util/integer" ) @@ -31,13 +31,13 @@ type backoffEntry struct { type Backoff struct { sync.Mutex - Clock util.Clock + Clock clock.Clock defaultDuration time.Duration maxDuration time.Duration perItemBackoff map[string]*backoffEntry } -func NewFakeBackOff(initial, max time.Duration, tc *util.FakeClock) *Backoff { +func NewFakeBackOff(initial, max time.Duration, tc *clock.FakeClock) *Backoff { return &Backoff{ perItemBackoff: map[string]*backoffEntry{}, Clock: tc, @@ -49,7 +49,7 @@ func NewFakeBackOff(initial, max time.Duration, tc *util.FakeClock) *Backoff { func NewBackOff(initial, max time.Duration) *Backoff { return &Backoff{ perItemBackoff: map[string]*backoffEntry{}, - Clock: util.RealClock{}, + Clock: clock.RealClock{}, defaultDuration: initial, maxDuration: max, } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/throttle.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/throttle.go index 482ba7d14a..881a2f57d7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/throttle.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/flowcontrol/throttle.go @@ -35,10 +35,13 @@ type RateLimiter interface { // Usually we use token bucket rate limiter. In that case, // 1.0 means no tokens are available; 0.0 means we have a full bucket of tokens to use. Saturation() float64 + // QPS returns QPS of this rate limiter + QPS() float32 } type tokenBucketRateLimiter struct { limiter *ratelimit.Bucket + qps float32 } // NewTokenBucketRateLimiter creates a rate limiter which implements a token bucket approach. @@ -48,7 +51,10 @@ type tokenBucketRateLimiter struct { // The maximum number of tokens in the bucket is capped at 'burst'. func NewTokenBucketRateLimiter(qps float32, burst int) RateLimiter { limiter := ratelimit.NewBucketWithRate(float64(qps), int64(burst)) - return &tokenBucketRateLimiter{limiter} + return &tokenBucketRateLimiter{ + limiter: limiter, + qps: qps, + } } func (t *tokenBucketRateLimiter) TryAccept() bool { @@ -69,6 +75,10 @@ func (t *tokenBucketRateLimiter) Accept() { func (t *tokenBucketRateLimiter) Stop() { } +func (t *tokenBucketRateLimiter) QPS() float32 { + return t.qps +} + type fakeAlwaysRateLimiter struct{} func NewFakeAlwaysRateLimiter() RateLimiter { @@ -87,16 +97,18 @@ func (t *fakeAlwaysRateLimiter) Stop() {} func (t *fakeAlwaysRateLimiter) Accept() {} +func (t *fakeAlwaysRateLimiter) QPS() float32 { + return 1 +} + type fakeNeverRateLimiter struct { wg sync.WaitGroup } func NewFakeNeverRateLimiter() RateLimiter { - wg := sync.WaitGroup{} - wg.Add(1) - return &fakeNeverRateLimiter{ - wg: wg, - } + rl := fakeNeverRateLimiter{} + rl.wg.Add(1) + return &rl } func (t *fakeNeverRateLimiter) TryAccept() bool { @@ -114,3 +126,7 @@ func (t *fakeNeverRateLimiter) Stop() { func (t *fakeNeverRateLimiter) Accept() { t.wg.Wait() } + +func (t *fakeNeverRateLimiter) QPS() float32 { + return 1 +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/intstr/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/intstr/generated.pb.go index 3c2bf4fb1c..bd2d93203b 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/intstr/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/intstr/generated.pb.go @@ -40,8 +40,13 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *IntOrString) Reset() { *m = IntOrString{} } -func (*IntOrString) ProtoMessage() {} +// 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 *IntOrString) Reset() { *m = IntOrString{} } +func (*IntOrString) ProtoMessage() {} +func (*IntOrString) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } func init() { proto.RegisterType((*IntOrString)(nil), "k8s.io.kubernetes.pkg.util.intstr.IntOrString") @@ -345,3 +350,23 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0xcc, 0xb6, 0x28, 0xd6, + 0xcb, 0xcc, 0xd7, 0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xca, 0x4b, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, 0xc8, + 0x4e, 0xd7, 0x2f, 0x2d, 0xc9, 0xcc, 0xd1, 0xcf, 0xcc, 0x2b, 0x29, 0x2e, 0x29, 0xd2, 0x4f, 0x4f, + 0xcd, 0x4b, 0x2d, 0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x84, + 0x68, 0xd1, 0x43, 0x68, 0xd1, 0x03, 0x6a, 0xd1, 0x03, 0x69, 0xd1, 0x83, 0x68, 0x91, 0xd2, 0x4d, + 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, + 0xeb, 0x4c, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0xa2, 0xd2, 0x44, 0x46, 0x2e, + 0x6e, 0xcf, 0xbc, 0x12, 0xff, 0xa2, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0x74, 0x21, 0x0d, 0x2e, 0x96, + 0x92, 0xca, 0x82, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x66, 0x27, 0x91, 0x13, 0xf7, 0xe4, 0x19, + 0x1e, 0xdd, 0x93, 0x67, 0x09, 0x01, 0x8a, 0xfd, 0x82, 0xd2, 0x41, 0x60, 0x15, 0x42, 0x6a, 0x5c, + 0x6c, 0x40, 0x2b, 0xc3, 0x12, 0x73, 0x24, 0x98, 0x80, 0x6a, 0x59, 0x9d, 0xf8, 0xa0, 0x6a, 0xd9, + 0x3c, 0xc1, 0xa2, 0x41, 0x50, 0x59, 0x90, 0x3a, 0xa0, 0xbb, 0x40, 0xea, 0x98, 0x81, 0xea, 0x38, + 0x11, 0xea, 0x82, 0xc1, 0xa2, 0x41, 0x50, 0x59, 0x2b, 0x8e, 0x19, 0x0b, 0xe4, 0x19, 0x1a, 0xee, + 0x28, 0x30, 0x38, 0x69, 0x9c, 0x78, 0x28, 0xc7, 0x70, 0x01, 0x88, 0x6f, 0x00, 0x71, 0xc3, 0x23, + 0x39, 0xc6, 0x13, 0x40, 0x7c, 0x01, 0x88, 0x1f, 0x00, 0xf1, 0x84, 0xc7, 0x72, 0x0c, 0x51, 0x6c, + 0x10, 0xcf, 0x02, 0x02, 0x00, 0x00, 0xff, 0xff, 0x68, 0x57, 0xfb, 0xfa, 0x43, 0x01, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/line_delimiter.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/line_delimiter.go deleted file mode 100644 index 9f64260c86..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/line_delimiter.go +++ /dev/null @@ -1,63 +0,0 @@ -/* -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 util - -import ( - "bytes" - "io" - "strings" -) - -// A Line Delimiter is a filter that will -type LineDelimiter struct { - output io.Writer - delimiter []byte - buf bytes.Buffer -} - -// NewLineDelimiter allocates a new io.Writer that will split input on lines -// and bracket each line with the delimiter string. This can be useful in -// output tests where it is difficult to see and test trailing whitespace. -func NewLineDelimiter(output io.Writer, delimiter string) *LineDelimiter { - return &LineDelimiter{output: output, delimiter: []byte(delimiter)} -} - -// Write writes buf to the LineDelimiter ld. The only errors returned are ones -// encountered while writing to the underlying output stream. -func (ld *LineDelimiter) Write(buf []byte) (n int, err error) { - return ld.buf.Write(buf) -} - -// Flush all lines up until now. This will assume insert a linebreak at the current point of the stream. -func (ld *LineDelimiter) Flush() (err error) { - lines := strings.Split(ld.buf.String(), "\n") - for _, line := range lines { - if _, err = ld.output.Write(ld.delimiter); err != nil { - return - } - if _, err = ld.output.Write([]byte(line)); err != nil { - return - } - if _, err = ld.output.Write(ld.delimiter); err != nil { - return - } - if _, err = ld.output.Write([]byte("\n")); err != nil { - return - } - } - return -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/logs.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/logs.go deleted file mode 100644 index ea27f484f0..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/logs.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -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 util - -import ( - "flag" - "log" - "time" - - "github.com/golang/glog" - "github.com/spf13/pflag" - "k8s.io/kubernetes/pkg/util/wait" -) - -var logFlushFreq = pflag.Duration("log-flush-frequency", 5*time.Second, "Maximum number of seconds between log flushes") - -// TODO(thockin): This is temporary until we agree on log dirs and put those into each cmd. -func init() { - flag.Set("logtostderr", "true") -} - -// GlogWriter serves as a bridge between the standard log package and the glog package. -type GlogWriter struct{} - -// Write implements the io.Writer interface. -func (writer GlogWriter) Write(data []byte) (n int, err error) { - glog.Info(string(data)) - return len(data), nil -} - -// InitLogs initializes logs the way we want for kubernetes. -func InitLogs() { - log.SetOutput(GlogWriter{}) - log.SetFlags(0) - // The default glog flush interval is 30 seconds, which is frighteningly long. - go wait.Until(glog.Flush, *logFlushFreq, wait.NeverStop) -} - -// FlushLogs flushes logs immediately. -func FlushLogs() { - glog.Flush() -} - -// NewLogger creates a new log.Logger which sends logs to glog.Info. -func NewLogger(prefix string) *log.Logger { - return log.New(GlogWriter{}, prefix, 0) -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/http.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/http.go index 582fb9a58f..53f28dfca2 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/http.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/http.go @@ -77,10 +77,8 @@ func SetOldTransportDefaults(t *http.Transport) *http.Transport { // for the Proxy, Dial, and TLSHandshakeTimeout fields if unset func SetTransportDefaults(t *http.Transport) *http.Transport { t = SetOldTransportDefaults(t) - // Allow clients to disable http2 if needed. - if s := os.Getenv("DISABLE_HTTP2"); len(s) > 0 { - glog.Infof("HTTP2 has been explicitly disabled") - } else { + // Allow HTTP2 clients but default off for now + if s := os.Getenv("ENABLE_HTTP2"); len(s) > 0 { if err := http2.ConfigureTransport(t); err != nil { glog.Warningf("Transport failed http2 configuration: %v", err) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/port_range.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/port_range.go index 6afdbf25fa..6a50e6186d 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/port_range.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/port_range.go @@ -71,12 +71,17 @@ func (pr *PortRange) Set(value string) error { high, err = strconv.Atoi(value[hyphenIndex+1:]) } if err != nil { - return fmt.Errorf("unable to parse port range: %s", value) + return fmt.Errorf("unable to parse port range: %s: %v", value, err) + } + + if low > 65535 || high > 65535 { + return fmt.Errorf("the port range cannot be greater than 65535: %s", value) } if high < low { return fmt.Errorf("end port cannot be less than start port: %s", value) } + pr.Base = low pr.Size = 1 + high - low return nil diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/sets/README.md b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/sets/README.md deleted file mode 100644 index b0f238a26f..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/sets/README.md +++ /dev/null @@ -1,17 +0,0 @@ -This package contains hand-coded set implementations that should be similar to -the autogenerated ones in `pkg/util/sets`. - -We can't simply use net.IPNet as a map-key in Go (because it contains a -`[]byte`). - -We could use the same workaround we use here (a string representation as the -key) to autogenerate sets. If we do that, or decide on an alternate approach, -we should replace the implementations in this package with the autogenerated -versions. - -It is expected that callers will alias this import as `netsets` -i.e. `import netsets "k8s.io/kubernetes/pkg/util/net/sets"` - - - -[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/pkg/util/net/sets/README.md?pixel)]() diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/net/sets/doc.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/sets/doc.go new file mode 100644 index 0000000000..8414f74ac5 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/net/sets/doc.go @@ -0,0 +1,28 @@ +/* +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 contains hand-coded set implementations that should be similar +// to the autogenerated ones in pkg/util/sets. +// We can't simply use net.IPNet as a map-key in Go (because it contains a +// []byte). +// We could use the same workaround we use here (a string representation as the +// key) to autogenerate sets. If we do that, or decide on an alternate +// approach, we should replace the implementations in this package with the +// autogenerated versions. +// It is expected that callers will alias this import as "netsets" i.e. import +// netsets "k8s.io/kubernetes/pkg/util/net/sets" + +package sets diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/pod/pod.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/pod/pod.go index e2286c7a02..06e48c5112 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/pod/pod.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/pod/pod.go @@ -70,7 +70,7 @@ func UpdatePodWithRetries(podClient unversionedcore.PodInterface, pod *api.Pod, // Handle returned error from wait poll if err == wait.ErrWaitTimeout { - err = fmt.Errorf("timed out trying to update pod: %+v", oldPod) + err = fmt.Errorf("timed out trying to update pod: %#v", oldPod) } // Ignore the pod not found error, but the pod isn't updated. if errors.IsNotFound(err) { diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/replicaset/replicaset.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/replicaset/replicaset.go index 206bba2dc1..388197276a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/replicaset/replicaset.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/replicaset/replicaset.go @@ -66,7 +66,7 @@ func UpdateRSWithRetries(rsClient unversionedextensions.ReplicaSetInterface, rs // Handle returned error from wait poll if err == wait.ErrWaitTimeout { - err = fmt.Errorf("timed out trying to update RS: %+v", oldRs) + err = fmt.Errorf("timed out trying to update RS: %#v", oldRs) } // Ignore the RS not found error, but the RS isn't updated. if errors.IsNotFound(err) { @@ -108,3 +108,25 @@ func MatchingPodsFunc(rs *extensions.ReplicaSet) (func(api.Pod) bool, error) { return selector.Matches(podLabelsSelector) }, nil } + +// ReplicaSetIsInactive returns a condition that will be true when a replica set is inactive ie. +// it has zero running replicas. +func ReplicaSetIsInactive(c unversionedextensions.ExtensionsInterface, replicaSet *extensions.ReplicaSet) wait.ConditionFunc { + + // If we're given a ReplicaSet where the status lags the spec, it either means that the + // ReplicaSet is stale, or that the ReplicaSet manager hasn't noticed the update yet. + // Polling status.Replicas is not safe in the latter case. + desiredGeneration := replicaSet.Generation + + return func() (bool, error) { + rs, err := c.ReplicaSets(replicaSet.Namespace).Get(replicaSet.Name) + if err != nil { + return false, err + } + + return rs.Status.ObservedGeneration >= desiredGeneration && + rs.Spec.Replicas == 0 && + rs.Status.Replicas == 0 && + rs.Status.FullyLabeledReplicas == 0, nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/resource_container_linux.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/resource_container_linux.go deleted file mode 100644 index a844e4c145..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/resource_container_linux.go +++ /dev/null @@ -1,49 +0,0 @@ -// +build linux - -/* -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 util - -import ( - "os" - "syscall" - - "github.com/opencontainers/runc/libcontainer/cgroups/fs" - "github.com/opencontainers/runc/libcontainer/configs" -) - -// Creates resource-only containerName if it does not already exist and moves -// the current process to it. -// -// containerName must be an absolute container name. -func RunInResourceContainer(containerName string) error { - manager := fs.Manager{ - Cgroups: &configs.Cgroup{ - Parent: "/", - Name: containerName, - Resources: &configs.Resources{ - AllowAllDevices: true, - }, - }, - } - - return manager.Apply(os.Getpid()) -} - -func ApplyRLimitForSelf(maxOpenFiles uint64) { - syscall.Setrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles}) -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/runner.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/runner.go deleted file mode 100644 index 9e977ee1e9..0000000000 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/runner.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -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 util - -import ( - "sync" -) - -// Runner is an abstraction to make it easy to start and stop groups of things that can be -// described by a single function which waits on a channel close to exit. -type Runner struct { - lock sync.Mutex - loopFuncs []func(stop chan struct{}) - stop *chan struct{} -} - -// NewRunner makes a runner for the given function(s). The function(s) should loop until -// the channel is closed. -func NewRunner(f ...func(stop chan struct{})) *Runner { - return &Runner{loopFuncs: f} -} - -// Start begins running. -func (r *Runner) Start() { - r.lock.Lock() - defer r.lock.Unlock() - if r.stop == nil { - c := make(chan struct{}) - r.stop = &c - for i := range r.loopFuncs { - go r.loopFuncs[i](*r.stop) - } - } -} - -// Stop stops running. -func (r *Runner) Stop() { - r.lock.Lock() - defer r.lock.Unlock() - if r.stop != nil { - close(*r.stop) - r.stop = nil - } -} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go index 464d3ee129..976de49d58 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go @@ -18,23 +18,32 @@ package runtime import ( "fmt" - "github.com/golang/glog" "runtime" + + "github.com/golang/glog" ) -// For testing, bypass HandleCrash. -var ReallyCrash bool +var ( + // ReallyCrash controls the behavior of HandleCrash and now defaults + // true. It's still exposed so components can optionally set to false + // to restore prior behavior. + ReallyCrash = true +) // PanicHandlers is a list of functions which will be invoked when a panic happens. var PanicHandlers = []func(interface{}){logPanic} -//TODO search the public functions -// HandleCrash simply catches a crash and logs an error. Meant to be called via defer. -// Additional context-specific handlers can be provided, and will be called in case of panic +// HandleCrash simply catches a crash and logs an error. Meant to be called via +// defer. Additional context-specific handlers can be provided, and will be +// called in case of panic. HandleCrash actually crashes, after calling the +// handlers and logging the panic message. +// +// TODO: remove this function. We are switching to a world where it's safe for +// apiserver to panic, since it will be restarted by kubelet. At the beginning +// of the Kubernetes project, nothing was going to restart apiserver and so +// catching panics was important. But it's actually much simpler for montoring +// software if we just exit when an unexpected panic happens. func HandleCrash(additionalHandlers ...func(interface{})) { - if ReallyCrash { - return - } if r := recover(); r != nil { for _, fn := range PanicHandlers { fn(r) @@ -42,11 +51,20 @@ func HandleCrash(additionalHandlers ...func(interface{})) { for _, fn := range additionalHandlers { fn(r) } + if ReallyCrash { + // Actually proceed to panic. + panic(r) + } } } // logPanic logs the caller tree when a panic occurs. func logPanic(r interface{}) { + callers := getCallers(r) + glog.Errorf("Observed a panic: %#v (%v)\n%v", r, r, callers) +} + +func getCallers(r interface{}) string { callers := "" for i := 0; true; i++ { _, file, line, ok := runtime.Caller(i) @@ -55,7 +73,8 @@ func logPanic(r interface{}) { } callers = callers + fmt.Sprintf("%v:%v\n", file, line) } - glog.Errorf("Recovered from panic: %#v (%v)\n%v", r, r, callers) + + return callers } // ErrorHandlers is a list of functions which will be invoked when an unreturnable @@ -92,3 +111,18 @@ func GetCaller() string { } return f.Name() } + +// RecoverFromPanic replaces the specified error with an error containing the +// original error, and the call tree when a panic occurs. This enables error +// handlers to handle errors and panics the same way. +func RecoverFromPanic(err *error) { + if r := recover(); r != nil { + callers := getCallers(r) + + *err = fmt.Errorf( + "recovered from panic %q. (err=%v) Call stack:\n%v", + r, + *err, + callers) + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/byte.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/byte.go index 45f5d4f67f..3d6d0dfe43 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/byte.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/int.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/int.go index 4b8c331b53..6d32f84c78 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/int.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/int64.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/int64.go index b6a97e70d8..1de18319b7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/int64.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/string.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/string.go index 2094b3205e..da66eaf8e7 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/sets/string.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/util/sysctl/sysctl.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/sysctl/sysctl.go index bbf52736c1..e58b99d301 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/sysctl/sysctl.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/sysctl/sysctl.go @@ -37,8 +37,25 @@ const ( KernelPanicRebootTimeout = 10 // seconds after a panic for the kernel to reboot ) +// An injectable interface for running sysctl commands. +type Interface interface { + // GetSysctl returns the value for the specified sysctl setting + GetSysctl(sysctl string) (int, error) + // SetSysctl modifies the specified sysctl flag to the new value + SetSysctl(sysctl string, newVal int) error +} + +// New returns a new Interface for accessing sysctl +func New() Interface { + return &procSysctl{} +} + +// procSysctl implements Interface by reading and writing files under /proc/sys +type procSysctl struct { +} + // GetSysctl returns the value for the specified sysctl setting -func GetSysctl(sysctl string) (int, error) { +func (_ *procSysctl) GetSysctl(sysctl string) (int, error) { data, err := ioutil.ReadFile(path.Join(sysctlBase, sysctl)) if err != nil { return -1, err @@ -51,6 +68,6 @@ func GetSysctl(sysctl string) (int, error) { } // SetSysctl modifies the specified sysctl flag to the new value -func SetSysctl(sysctl string, newVal int) error { +func (_ *procSysctl) SetSysctl(sysctl string, newVal int) error { return ioutil.WriteFile(path.Join(sysctlBase, sysctl), []byte(strconv.Itoa(newVal)), 0640) } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/uuid.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/uuid/uuid.go similarity index 98% rename from ingress/vendor/k8s.io/kubernetes/pkg/util/uuid.go rename to ingress/vendor/k8s.io/kubernetes/pkg/util/uuid/uuid.go index 23abe11569..51f2689a68 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/uuid.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/uuid/uuid.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package util +package uuid import ( "sync" diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/validation/validation.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/validation/validation.go index 6e6a0270ca..aac2357d74 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/validation/validation.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/validation/validation.go @@ -121,20 +121,41 @@ func IsDNS1123Subdomain(value string) []string { return errs } -const dns952LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?" -const DNS952LabelMaxLength int = 24 +const dns1035LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?" +const DNS1035LabelMaxLength int = 63 -var dns952LabelRegexp = regexp.MustCompile("^" + dns952LabelFmt + "$") +var dns1035LabelRegexp = regexp.MustCompile("^" + dns1035LabelFmt + "$") -// IsDNS952Label tests for a string that conforms to the definition of a label in -// DNS (RFC 952). -func IsDNS952Label(value string) []string { +// IsDNS1035Label tests for a string that conforms to the definition of a label in +// DNS (RFC 1035). +func IsDNS1035Label(value string) []string { var errs []string - if len(value) > DNS952LabelMaxLength { - errs = append(errs, MaxLenError(DNS952LabelMaxLength)) + if len(value) > DNS1035LabelMaxLength { + errs = append(errs, MaxLenError(DNS1035LabelMaxLength)) } - if !dns952LabelRegexp.MatchString(value) { - errs = append(errs, RegexError(dns952LabelFmt, "my-name", "abc-123")) + if !dns1035LabelRegexp.MatchString(value) { + errs = append(errs, RegexError(dns1035LabelFmt, "my-name", "abc-123")) + } + return errs +} + +// wildcard definition - RFC 1034 section 4.3.3. +// examples: +// - valid: *.bar.com, *.foo.bar.com +// - invalid: *.*.bar.com, *.foo.*.com, *bar.com, f*.bar.com, * +const wildcardDNF1123SubdomainFmt = "\\*\\." + dns1123SubdomainFmt + +// IsWildcardDNS1123Subdomain tests for a string that conforms to the definition of a +// wildcard subdomain in DNS (RFC 1034 section 4.3.3). +func IsWildcardDNS1123Subdomain(value string) []string { + wildcardDNS1123SubdomainRegexp := regexp.MustCompile("^\\*\\." + dns1123SubdomainFmt + "$") + + var errs []string + if len(value) > DNS1123SubdomainMaxLength { + errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength)) + } + if !wildcardDNS1123SubdomainRegexp.MatchString(value) { + errs = append(errs, RegexError(wildcardDNF1123SubdomainFmt, "*.example.com")) } return errs } @@ -247,19 +268,26 @@ func IsHTTPHeaderName(value string) []string { return nil } -const configMapKeyFmt = "\\.?" + dns1123SubdomainFmt +const configMapKeyFmt = `[-._a-zA-Z0-9]+` var configMapKeyRegexp = regexp.MustCompile("^" + configMapKeyFmt + "$") -// IsConfigMapKey tests for a string that conforms to the definition of a -// subdomain in DNS (RFC 1123), except that a leading dot is allowed +// IsConfigMapKey tests for a string that is a valid key for a ConfigMap or Secret func IsConfigMapKey(value string) []string { var errs []string if len(value) > DNS1123SubdomainMaxLength { errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength)) } if !configMapKeyRegexp.MatchString(value) { - errs = append(errs, RegexError(configMapKeyFmt, "key.name")) + errs = append(errs, RegexError(configMapKeyFmt, "key.name", "KEY_NAME", "key-name")) + } + if value == "." { + errs = append(errs, `must not be '.'`) + } + if value == ".." { + errs = append(errs, `must not be '..'`) + } else if strings.HasPrefix(value, "..") { + errs = append(errs, `must not start with '..'`) } return errs } diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go index bd4543eb1d..517577c8c8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go @@ -20,8 +20,6 @@ import ( "errors" "math/rand" "time" - - "k8s.io/kubernetes/pkg/util/runtime" ) // For any test of the style: @@ -64,13 +62,14 @@ func NonSlidingUntil(f func(), period time.Duration, stopCh <-chan struct{}) { // stop channel is already closed. Pass NeverStop to Until if you // don't want it stop. func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding bool, stopCh <-chan struct{}) { - select { - case <-stopCh: - return - default: - } - for { + + select { + case <-stopCh: + return + default: + } + jitteredPeriod := period if jitterFactor > 0.0 { jitteredPeriod = Jitter(period, jitterFactor) @@ -82,22 +81,18 @@ func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding b } func() { - defer runtime.HandleCrash() f() }() if sliding { t = time.NewTimer(jitteredPeriod) - } else { - // The timer we created could already have fired, so be - // careful and check stopCh first. - select { - case <-stopCh: - return - default: - } } + // NOTE: b/c there is no priority selection in golang + // it is possible for this to race, meaning we could + // trigger t.C and stopCh, and t.C select falls through. + // In order to mitigate we re-check stopCh at the beginning + // of every loop to prevent extra executions of f(). select { case <-stopCh: return diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/delaying_queue.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/delaying_queue.go index f24c881559..5a71b8181a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/delaying_queue.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/delaying_queue.go @@ -20,7 +20,7 @@ import ( "sort" "time" - "k8s.io/kubernetes/pkg/util" + "k8s.io/kubernetes/pkg/util/clock" utilruntime "k8s.io/kubernetes/pkg/util/runtime" ) @@ -34,17 +34,22 @@ type DelayingInterface interface { // NewDelayingQueue constructs a new workqueue with delayed queuing ability func NewDelayingQueue() DelayingInterface { - return newDelayingQueue(util.RealClock{}) + return newDelayingQueue(clock.RealClock{}, "") } -func newDelayingQueue(clock util.Clock) DelayingInterface { +func NewNamedDelayingQueue(name string) DelayingInterface { + return newDelayingQueue(clock.RealClock{}, name) +} + +func newDelayingQueue(clock clock.Clock, name string) DelayingInterface { ret := &delayingType{ - Interface: New(), + Interface: NewNamed(name), clock: clock, heartbeat: clock.Tick(maxWait), stopCh: make(chan struct{}), waitingTimeByEntry: map[t]time.Time{}, waitingForAddCh: make(chan waitFor, 1000), + metrics: newRetryMetrics(name), } go ret.waitingLoop() @@ -57,7 +62,7 @@ type delayingType struct { Interface // clock tracks time for delayed firing - clock util.Clock + clock clock.Clock // stopCh lets us signal a shutdown to the waiting loop stopCh chan struct{} @@ -71,6 +76,9 @@ type delayingType struct { waitingTimeByEntry map[t]time.Time // waitingForAddCh is a buffered channel that feeds waitingForAdd waitingForAddCh chan waitFor + + // metrics counts the number of retries + metrics retryMetrics } // waitFor holds the data to add and the time it should be added @@ -92,6 +100,8 @@ func (q *delayingType) AddAfter(item interface{}, duration time.Duration) { return } + q.metrics.retry() + // immediately add things with no delay if duration <= 0 { q.Add(item) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/metrics.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/metrics.go new file mode 100644 index 0000000000..8a37d2e701 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/metrics.go @@ -0,0 +1,153 @@ +/* +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 workqueue + +import ( + "time" + + "github.com/prometheus/client_golang/prometheus" +) + +type queueMetrics interface { + add(item t) + get(item t) + done(item t) +} + +type defaultQueueMetrics struct { + depth prometheus.Gauge + adds prometheus.Counter + latency prometheus.Summary + workDuration prometheus.Summary + addTimes map[t]time.Time + processingStartTimes map[t]time.Time +} + +func newQueueMetrics(name string) queueMetrics { + var ret *defaultQueueMetrics + if len(name) == 0 { + return ret + } + + ret = &defaultQueueMetrics{ + depth: prometheus.NewGauge(prometheus.GaugeOpts{ + Subsystem: name, + Name: "depth", + Help: "Current depth of workqueue: " + name, + }), + adds: prometheus.NewCounter(prometheus.CounterOpts{ + Subsystem: name, + Name: "adds", + Help: "Total number of adds handled by workqueue: " + name, + }), + latency: prometheus.NewSummary(prometheus.SummaryOpts{ + Subsystem: name, + Name: "queue_latency", + Help: "How long an item stays in workqueue" + name + " before being requested.", + }), + workDuration: prometheus.NewSummary(prometheus.SummaryOpts{ + Subsystem: name, + Name: "work_duration", + Help: "How long processing an item from workqueue" + name + " takes.", + }), + addTimes: map[t]time.Time{}, + processingStartTimes: map[t]time.Time{}, + } + + prometheus.Register(ret.depth) + prometheus.Register(ret.adds) + prometheus.Register(ret.latency) + prometheus.Register(ret.workDuration) + + return ret +} + +func (m *defaultQueueMetrics) add(item t) { + if m == nil { + return + } + + m.adds.Inc() + m.depth.Inc() + if _, exists := m.addTimes[item]; !exists { + m.addTimes[item] = time.Now() + } +} + +func (m *defaultQueueMetrics) get(item t) { + if m == nil { + return + } + + m.depth.Dec() + m.processingStartTimes[item] = time.Now() + if startTime, exists := m.addTimes[item]; exists { + m.latency.Observe(sinceInMicroseconds(startTime)) + delete(m.addTimes, item) + } +} + +func (m *defaultQueueMetrics) done(item t) { + if m == nil { + return + } + + if startTime, exists := m.processingStartTimes[item]; exists { + m.workDuration.Observe(sinceInMicroseconds(startTime)) + delete(m.processingStartTimes, item) + } +} + +// Gets the time since the specified start in microseconds. +func sinceInMicroseconds(start time.Time) float64 { + return float64(time.Since(start).Nanoseconds() / time.Microsecond.Nanoseconds()) +} + +type retryMetrics interface { + retry() +} + +type defaultRetryMetrics struct { + retries prometheus.Counter +} + +func newRetryMetrics(name string) retryMetrics { + var ret *defaultRetryMetrics + if len(name) == 0 { + return ret + } + + ret = &defaultRetryMetrics{ + retries: prometheus.NewCounter(prometheus.CounterOpts{ + Subsystem: name, + Name: "retries", + Help: "Total number of retries handled by workqueue: " + name, + }), + } + + prometheus.Register(ret.retries) + + return ret +} + +func (m *defaultRetryMetrics) retry() { + if m == nil { + return + } + + m.retries.Inc() +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/queue.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/queue.go index 63fdd81910..9a2ecad382 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/queue.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/queue.go @@ -31,10 +31,15 @@ type Interface interface { // New constructs a new workqueue (see the package comment). func New() *Type { + return NewNamed("") +} + +func NewNamed(name string) *Type { return &Type{ dirty: set{}, processing: set{}, cond: sync.NewCond(&sync.Mutex{}), + metrics: newQueueMetrics(name), } } @@ -57,6 +62,8 @@ type Type struct { cond *sync.Cond shuttingDown bool + + metrics queueMetrics } type empty struct{} @@ -86,10 +93,14 @@ func (q *Type) Add(item interface{}) { if q.dirty.has(item) { return } + + q.metrics.add(item) + q.dirty.insert(item) if q.processing.has(item) { return } + q.queue = append(q.queue, item) q.cond.Signal() } @@ -116,9 +127,14 @@ func (q *Type) Get() (item interface{}, shutdown bool) { // We must be shutting down. return nil, true } + item, q.queue = q.queue[0], q.queue[1:] + + q.metrics.get(item) + q.processing.insert(item) q.dirty.delete(item) + return item, false } @@ -128,6 +144,9 @@ func (q *Type) Get() (item interface{}, shutdown bool) { func (q *Type) Done(item interface{}) { q.cond.L.Lock() defer q.cond.L.Unlock() + + q.metrics.done(item) + q.processing.delete(item) if q.dirty.has(item) { q.queue = append(q.queue, item) diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/rate_limitting_queue.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/rate_limitting_queue.go index a4f86eb10a..9a2bfbb56a 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/rate_limitting_queue.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/rate_limitting_queue.go @@ -40,6 +40,13 @@ func NewRateLimitingQueue(rateLimiter RateLimiter) RateLimitingInterface { } } +func NewNamedRateLimitingQueue(rateLimiter RateLimiter, name string) RateLimitingInterface { + return &rateLimitingType{ + DelayingInterface: NewNamedDelayingQueue(name), + rateLimiter: rateLimiter, + } +} + // rateLimitingType wraps an Interface and provides rateLimited re-enquing type rateLimitingType struct { DelayingInterface diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/timed_queue.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/timed_queue.go new file mode 100644 index 0000000000..2ad90bfdfc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/pkg/util/workqueue/timed_queue.go @@ -0,0 +1,52 @@ +/* +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 workqueue + +import "time" + +type TimedWorkQueue struct { + *Type +} + +type TimedWorkQueueItem struct { + StartTime time.Time + Object interface{} +} + +func NewTimedWorkQueue() *TimedWorkQueue { + return &TimedWorkQueue{New()} +} + +// Add adds the obj along with the current timestamp to the queue. +func (q TimedWorkQueue) Add(timedItem *TimedWorkQueueItem) { + q.Type.Add(timedItem) +} + +// Get gets the obj along with its timestamp from the queue. +func (q TimedWorkQueue) Get() (timedItem *TimedWorkQueueItem, shutdown bool) { + origin, shutdown := q.Type.Get() + if origin == nil { + return nil, shutdown + } + timedItem, _ = origin.(*TimedWorkQueueItem) + return timedItem, shutdown +} + +func (q TimedWorkQueue) Done(timedItem *TimedWorkQueueItem) error { + q.Type.Done(timedItem) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/util/yaml/decoder.go b/ingress/vendor/k8s.io/kubernetes/pkg/util/yaml/decoder.go index 6a9f05a587..c65c2d6ba3 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/util/yaml/decoder.go +++ b/ingress/vendor/k8s.io/kubernetes/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/ingress/vendor/k8s.io/kubernetes/pkg/version/base.go b/ingress/vendor/k8s.io/kubernetes/pkg/version/base.go index 475bd0660c..c377705fe8 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/version/base.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/version/base.go @@ -42,7 +42,7 @@ var ( gitMajor string = "" // major version, always numeric gitMinor string = "" // minor version, numeric possibly followed by "+" - // semantic version, dervied by build scripts (see + // semantic version, derived by build scripts (see // https://github.com/kubernetes/kubernetes/blob/master/docs/design/versioning.md // for a detailed discussion of this field) // diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/watch/versioned/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/pkg/watch/versioned/generated.pb.go index d2576ebd25..108bfa5b9e 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/watch/versioned/generated.pb.go +++ b/ingress/vendor/k8s.io/kubernetes/pkg/watch/versioned/generated.pb.go @@ -33,6 +33,9 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" +import strings "strings" +import reflect "reflect" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -40,9 +43,13 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} +// 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 *Event) Reset() { *m = Event{} } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } func init() { proto.RegisterType((*Event)(nil), "k8s.io.kubernetes.pkg.watch.versioned.Event") @@ -127,6 +134,25 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Event) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Object:` + strings.Replace(strings.Replace(this.Object.String(), "RawExtension", "k8s_io_kubernetes_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + 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 *Event) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -340,3 +366,25 @@ var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ) + +var fileDescriptorGenerated = []byte{ + // 273 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0xcd, 0xb6, 0x28, 0xd6, + 0xcb, 0xcc, 0xd7, 0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xca, 0x4b, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, 0xc8, + 0x4e, 0xd7, 0x2f, 0x4f, 0x2c, 0x49, 0xce, 0xd0, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x4b, + 0x4d, 0xd1, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x52, 0x85, 0x68, 0xd3, 0x43, 0x68, 0xd3, 0x03, 0x6a, 0xd3, 0x03, 0x6b, 0xd3, 0x83, + 0x6b, 0x93, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, + 0x4f, 0xcf, 0xd7, 0x07, 0xeb, 0x4e, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0xaa, + 0x94, 0x2e, 0x76, 0xc7, 0x14, 0x95, 0xe6, 0x95, 0x64, 0xe6, 0xa6, 0xa2, 0x3b, 0x42, 0xca, 0x10, + 0xbb, 0xf2, 0xd2, 0x92, 0xcc, 0x1c, 0xfd, 0xcc, 0xbc, 0x92, 0xe2, 0x92, 0x22, 0x74, 0x2d, 0x4a, + 0x75, 0x5c, 0xac, 0xae, 0x65, 0xa9, 0x79, 0x25, 0x42, 0x0a, 0x5c, 0x2c, 0x25, 0x95, 0x05, 0xa9, + 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x3c, 0x27, 0xee, 0xc9, 0x33, 0x3c, 0xba, 0x27, 0xcf, + 0x12, 0x02, 0x14, 0x0b, 0x02, 0xcb, 0x08, 0x05, 0x73, 0xb1, 0xe5, 0x27, 0x65, 0xa5, 0x26, 0x97, + 0x48, 0x30, 0x01, 0xd5, 0x70, 0x1b, 0x69, 0xeb, 0x61, 0xf7, 0x33, 0xd4, 0x75, 0x7a, 0x41, 0x89, + 0xe5, 0xae, 0x15, 0x25, 0xa9, 0x79, 0x20, 0xaf, 0x3b, 0xf1, 0x41, 0x0d, 0x64, 0xf3, 0x07, 0x1b, + 0x11, 0x04, 0x35, 0xca, 0x49, 0xfb, 0xc4, 0x43, 0x39, 0x86, 0x0b, 0x40, 0x7c, 0x03, 0x88, 0x1b, + 0x1e, 0xc9, 0x31, 0x9e, 0x00, 0xe2, 0x0b, 0x40, 0xfc, 0x00, 0x88, 0x27, 0x3c, 0x96, 0x63, 0x88, + 0xe2, 0x84, 0x87, 0x1e, 0x20, 0x00, 0x00, 0xff, 0xff, 0x23, 0x3d, 0x7b, 0x7e, 0x9c, 0x01, 0x00, + 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/gcp/gcp.go b/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/gcp/gcp.go index 32cbb36255..fa5e079f6b 100644 --- a/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/gcp/gcp.go +++ b/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/gcp/gcp.go @@ -25,6 +25,7 @@ import ( "golang.org/x/oauth2" "golang.org/x/oauth2/google" + clientreporestclient "k8s.io/client-go/1.4/rest" "k8s.io/kubernetes/pkg/client/restclient" ) @@ -32,6 +33,9 @@ func init() { if err := restclient.RegisterAuthProviderPlugin("gcp", newGCPAuthProvider); err != nil { glog.Fatalf("Failed to register gcp auth plugin: %v", err) } + if err := clientreporestclient.RegisterAuthProviderPlugin("gcp", newGCPAuthProviderForClientRepo); err != nil { + glog.Fatalf("Failed to register gcp auth plugin: %v", err) + } } type gcpAuthProvider struct { @@ -47,6 +51,15 @@ func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister restcli return &gcpAuthProvider{ts, persister}, nil } +// newGCPAuthProviderForClientRepo is the same as newGCPAuthProvider, but is programmed against client-go's interface +func newGCPAuthProviderForClientRepo(_ string, gcpConfig map[string]string, persister clientreporestclient.AuthProviderConfigPersister) (clientreporestclient.AuthProvider, error) { + ts, err := newCachedTokenSource(gcpConfig["access-token"], gcpConfig["expiry"], persister) + if err != nil { + return nil, err + } + return &gcpAuthProvider{ts, persister}, nil +} + func (g *gcpAuthProvider) WrapTransport(rt http.RoundTripper) http.RoundTripper { return &oauth2.Transport{ Source: g.tokenSource, diff --git a/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/oidc/oidc.go b/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/oidc/oidc.go index 690a452307..155bb48673 100644 --- a/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/oidc/oidc.go +++ b/ingress/vendor/k8s.io/kubernetes/plugin/pkg/client/auth/oidc/oidc.go @@ -97,7 +97,7 @@ func newOIDCAuthProvider(_ string, cfg map[string]string, persister restclient.A } hc := &http.Client{Transport: trans} - providerCfg, err := oidc.FetchProviderConfig(hc, strings.TrimSuffix(issuer, "/")) + providerCfg, err := oidc.FetchProviderConfig(hc, issuer) if err != nil { return nil, fmt.Errorf("error fetching provider config: %v", err) } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/OWNERS b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/OWNERS new file mode 100644 index 0000000000..d28472e0fd --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/OWNERS @@ -0,0 +1,6 @@ +assignees: + - bgrant0607 + - erictune + - lavalamp + - smarterclayton + - thockin diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/context.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/context.go new file mode 100644 index 0000000000..df69975587 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/context.go @@ -0,0 +1,138 @@ +/* +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 api + +import ( + stderrs "errors" + "time" + + "golang.org/x/net/context" + "k8s.io/client-go/1.4/pkg/auth/user" + "k8s.io/client-go/1.4/pkg/types" +) + +// Context carries values across API boundaries. +// This context matches the context.Context interface +// (https://blog.golang.org/context), for the purposes +// of passing the api.Context through to the storage tier. +// TODO: Determine the extent that this abstraction+interface +// is used by the api, and whether we can remove. +type Context interface { + // Value returns the value associated with key or nil if none. + Value(key interface{}) interface{} + + // Deadline returns the time when this Context will be canceled, if any. + Deadline() (deadline time.Time, ok bool) + + // Done returns a channel that is closed when this Context is canceled + // or times out. + Done() <-chan struct{} + + // Err indicates why this context was canceled, after the Done channel + // is closed. + Err() error +} + +// The key type is unexported to prevent collisions +type key int + +const ( + // namespaceKey is the context key for the request namespace. + namespaceKey key = iota + + // userKey is the context key for the request user. + userKey + + // uidKey is the context key for the uid to assign to an object on create. + uidKey +) + +// NewContext instantiates a base context object for request flows. +func NewContext() Context { + return context.TODO() +} + +// NewDefaultContext instantiates a base context object for request flows in the default namespace +func NewDefaultContext() Context { + return WithNamespace(NewContext(), NamespaceDefault) +} + +// WithValue returns a copy of parent in which the value associated with key is val. +func WithValue(parent Context, key interface{}, val interface{}) Context { + internalCtx, ok := parent.(context.Context) + if !ok { + panic(stderrs.New("Invalid context type")) + } + return context.WithValue(internalCtx, key, val) +} + +// WithNamespace returns a copy of parent in which the namespace value is set +func WithNamespace(parent Context, namespace string) Context { + return WithValue(parent, namespaceKey, namespace) +} + +// NamespaceFrom returns the value of the namespace key on the ctx +func NamespaceFrom(ctx Context) (string, bool) { + namespace, ok := ctx.Value(namespaceKey).(string) + return namespace, ok +} + +// NamespaceValue returns the value of the namespace key on the ctx, or the empty string if none +func NamespaceValue(ctx Context) string { + namespace, _ := NamespaceFrom(ctx) + return namespace +} + +// ValidNamespace returns false if the namespace on the context differs from the resource. If the resource has no namespace, it is set to the value in the context. +func ValidNamespace(ctx Context, resource *ObjectMeta) bool { + ns, ok := NamespaceFrom(ctx) + if len(resource.Namespace) == 0 { + resource.Namespace = ns + } + return ns == resource.Namespace && ok +} + +// WithNamespaceDefaultIfNone returns a context whose namespace is the default if and only if the parent context has no namespace value +func WithNamespaceDefaultIfNone(parent Context) Context { + namespace, ok := NamespaceFrom(parent) + if !ok || len(namespace) == 0 { + return WithNamespace(parent, NamespaceDefault) + } + return parent +} + +// WithUser returns a copy of parent in which the user value is set +func WithUser(parent Context, user user.Info) Context { + return WithValue(parent, userKey, user) +} + +// UserFrom returns the value of the user key on the ctx +func UserFrom(ctx Context) (user.Info, bool) { + user, ok := ctx.Value(userKey).(user.Info) + return user, ok +} + +// WithUID returns a copy of parent in which the uid value is set +func WithUID(parent Context, uid types.UID) Context { + return WithValue(parent, uidKey, uid) +} + +// UIDFrom returns the value of the uid key on the ctx +func UIDFrom(ctx Context) (types.UID, bool) { + uid, ok := ctx.Value(uidKey).(types.UID) + return uid, ok +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/conversion.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/conversion.go new file mode 100644 index 0000000000..ff7960ed82 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/conversion.go @@ -0,0 +1,245 @@ +/* +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 api + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api/resource" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" + "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/util/intstr" + utillabels "k8s.io/client-go/1.4/pkg/util/labels" + "k8s.io/client-go/1.4/pkg/util/validation/field" +) + +func addConversionFuncs(scheme *runtime.Scheme) error { + return scheme.AddConversionFuncs( + Convert_unversioned_TypeMeta_To_unversioned_TypeMeta, + + Convert_unversioned_ListMeta_To_unversioned_ListMeta, + + Convert_intstr_IntOrString_To_intstr_IntOrString, + + Convert_unversioned_Time_To_unversioned_Time, + + Convert_Slice_string_To_unversioned_Time, + + Convert_resource_Quantity_To_resource_Quantity, + + Convert_string_To_labels_Selector, + Convert_labels_Selector_To_string, + + Convert_string_To_fields_Selector, + Convert_fields_Selector_To_string, + + Convert_Pointer_bool_To_bool, + Convert_bool_To_Pointer_bool, + + Convert_Pointer_string_To_string, + Convert_string_To_Pointer_string, + + Convert_Pointer_int64_To_int, + Convert_int_To_Pointer_int64, + + Convert_Pointer_int32_To_int32, + Convert_int32_To_Pointer_int32, + + Convert_Pointer_float64_To_float64, + Convert_float64_To_Pointer_float64, + + Convert_map_to_unversioned_LabelSelector, + Convert_unversioned_LabelSelector_to_map, + ) +} + +func Convert_Pointer_float64_To_float64(in **float64, out *float64, s conversion.Scope) error { + if *in == nil { + *out = 0 + return nil + } + *out = float64(**in) + return nil +} + +func Convert_float64_To_Pointer_float64(in *float64, out **float64, s conversion.Scope) error { + temp := float64(*in) + *out = &temp + return nil +} + +func Convert_Pointer_int32_To_int32(in **int32, out *int32, s conversion.Scope) error { + if *in == nil { + *out = 0 + return nil + } + *out = int32(**in) + return nil +} + +func Convert_int32_To_Pointer_int32(in *int32, out **int32, s conversion.Scope) error { + temp := int32(*in) + *out = &temp + return nil +} + +func Convert_Pointer_int64_To_int(in **int64, out *int, s conversion.Scope) error { + if *in == nil { + *out = 0 + return nil + } + *out = int(**in) + return nil +} + +func Convert_int_To_Pointer_int64(in *int, out **int64, s conversion.Scope) error { + temp := int64(*in) + *out = &temp + return nil +} + +func Convert_Pointer_string_To_string(in **string, out *string, s conversion.Scope) error { + if *in == nil { + *out = "" + return nil + } + *out = **in + return nil +} + +func Convert_string_To_Pointer_string(in *string, out **string, s conversion.Scope) error { + if in == nil { + stringVar := "" + *out = &stringVar + return nil + } + *out = in + return nil +} + +func Convert_Pointer_bool_To_bool(in **bool, out *bool, s conversion.Scope) error { + if *in == nil { + *out = false + return nil + } + *out = **in + return nil +} + +func Convert_bool_To_Pointer_bool(in *bool, out **bool, s conversion.Scope) error { + if in == nil { + boolVar := false + *out = &boolVar + return nil + } + *out = in + return nil +} + +func Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(in, out *unversioned.TypeMeta, s conversion.Scope) error { + // These values are explicitly not copied + //out.APIVersion = in.APIVersion + //out.Kind = in.Kind + return nil +} + +func Convert_unversioned_ListMeta_To_unversioned_ListMeta(in, out *unversioned.ListMeta, s conversion.Scope) error { + *out = *in + return nil +} + +func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error { + *out = *in + return nil +} + +func Convert_unversioned_Time_To_unversioned_Time(in *unversioned.Time, out *unversioned.Time, s conversion.Scope) error { + // Cannot deep copy these, because time.Time has unexported fields. + *out = *in + return nil +} + +// Convert_Slice_string_To_unversioned_Time allows converting a URL query parameter value +func Convert_Slice_string_To_unversioned_Time(input *[]string, out *unversioned.Time, s conversion.Scope) error { + str := "" + if len(*input) > 0 { + str = (*input)[0] + } + return out.UnmarshalQueryParameter(str) +} + +func Convert_string_To_labels_Selector(in *string, out *labels.Selector, s conversion.Scope) error { + selector, err := labels.Parse(*in) + if err != nil { + return err + } + *out = selector + return nil +} + +func Convert_string_To_fields_Selector(in *string, out *fields.Selector, s conversion.Scope) error { + selector, err := fields.ParseSelector(*in) + if err != nil { + return err + } + *out = selector + return nil +} + +func Convert_labels_Selector_To_string(in *labels.Selector, out *string, s conversion.Scope) error { + if *in == nil { + return nil + } + *out = (*in).String() + return nil +} + +func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conversion.Scope) error { + if *in == nil { + return nil + } + *out = (*in).String() + return nil +} + +func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error { + *out = *in + return nil +} + +func Convert_map_to_unversioned_LabelSelector(in *map[string]string, out *unversioned.LabelSelector, s conversion.Scope) error { + if in == nil { + return nil + } + out = new(unversioned.LabelSelector) + for labelKey, labelValue := range *in { + utillabels.AddLabelToSelector(out, labelKey, labelValue) + } + return nil +} + +func Convert_unversioned_LabelSelector_to_map(in *unversioned.LabelSelector, out *map[string]string, s conversion.Scope) error { + var err error + *out, err = unversioned.LabelSelectorAsMap(in) + if err != nil { + err = field.Invalid(field.NewPath("labelSelector"), *in, fmt.Sprintf("cannot convert to old selector: %v", err)) + } + return err +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/defaults.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/defaults.go new file mode 100644 index 0000000000..860c18d085 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/defaults.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 api + +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" +) + +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( + func(obj *ListOptions) { + if obj.LabelSelector == nil { + obj.LabelSelector = labels.Everything() + } + if obj.FieldSelector == nil { + obj.FieldSelector = fields.Everything() + } + }, + ) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/doc.go new file mode 100644 index 0000000000..1507a8823b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/doc.go @@ -0,0 +1,24 @@ +/* +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. +*/ + +// +k8s:deepcopy-gen=package,register + +// Package api contains the latest (or "internal") version of the +// Kubernetes API objects. This is the API objects as represented in memory. +// The contract presented to clients is located in the versioned packages, +// which are sub-directories. The first one is "v1". Those packages +// describe how a particular version is serialized to storage/network. +package api diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/endpoints/util.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/endpoints/util.go new file mode 100644 index 0000000000..5edacdd215 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/endpoints/util.go @@ -0,0 +1,238 @@ +/* +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 endpoints + +import ( + "bytes" + "crypto/md5" + "encoding/hex" + "hash" + "sort" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/types" + hashutil "k8s.io/client-go/1.4/pkg/util/hash" +) + +const ( + // TODO: to be deleted after v1.3 is released + // Its value is the json representation of map[string(IP)][HostRecord] + // example: '{"10.245.1.6":{"HostName":"my-webserver"}}' + PodHostnamesAnnotation = "endpoints.beta.kubernetes.io/hostnames-map" +) + +// TODO: to be deleted after v1.3 is released +type HostRecord struct { + HostName string +} + +// RepackSubsets takes a slice of EndpointSubset objects, expands it to the full +// representation, and then repacks that into the canonical layout. This +// ensures that code which operates on these objects can rely on the common +// form for things like comparison. The result is a newly allocated slice. +func RepackSubsets(subsets []api.EndpointSubset) []api.EndpointSubset { + // First map each unique port definition to the sets of hosts that + // offer it. + allAddrs := map[addressKey]*api.EndpointAddress{} + portToAddrReadyMap := map[api.EndpointPort]addressSet{} + for i := range subsets { + for _, port := range subsets[i].Ports { + for k := range subsets[i].Addresses { + mapAddressByPort(&subsets[i].Addresses[k], port, true, allAddrs, portToAddrReadyMap) + } + for k := range subsets[i].NotReadyAddresses { + mapAddressByPort(&subsets[i].NotReadyAddresses[k], port, false, allAddrs, portToAddrReadyMap) + } + } + } + + // Next, map the sets of hosts to the sets of ports they offer. + // Go does not allow maps or slices as keys to maps, so we have + // to synthesize an artificial key and do a sort of 2-part + // associative entity. + type keyString string + keyToAddrReadyMap := map[keyString]addressSet{} + addrReadyMapKeyToPorts := map[keyString][]api.EndpointPort{} + for port, addrs := range portToAddrReadyMap { + key := keyString(hashAddresses(addrs)) + keyToAddrReadyMap[key] = addrs + addrReadyMapKeyToPorts[key] = append(addrReadyMapKeyToPorts[key], port) + } + + // Next, build the N-to-M association the API wants. + final := []api.EndpointSubset{} + for key, ports := range addrReadyMapKeyToPorts { + var readyAddrs, notReadyAddrs []api.EndpointAddress + for addr, ready := range keyToAddrReadyMap[key] { + if ready { + readyAddrs = append(readyAddrs, *addr) + } else { + notReadyAddrs = append(notReadyAddrs, *addr) + } + } + final = append(final, api.EndpointSubset{Addresses: readyAddrs, NotReadyAddresses: notReadyAddrs, Ports: ports}) + } + + // Finally, sort it. + return SortSubsets(final) +} + +// The sets of hosts must be de-duped, using IP+UID as the key. +type addressKey struct { + ip string + uid types.UID +} + +// mapAddressByPort adds an address into a map by its ports, registering the address with a unique pointer, and preserving +// any existing ready state. +func mapAddressByPort(addr *api.EndpointAddress, port api.EndpointPort, ready bool, allAddrs map[addressKey]*api.EndpointAddress, portToAddrReadyMap map[api.EndpointPort]addressSet) *api.EndpointAddress { + // use addressKey to distinguish between two endpoints that are identical addresses + // but may have come from different hosts, for attribution. For instance, Mesos + // assigns pods the node IP, but the pods are distinct. + key := addressKey{ip: addr.IP} + if addr.TargetRef != nil { + key.uid = addr.TargetRef.UID + } + + // Accumulate the address. The full EndpointAddress structure is preserved for use when + // we rebuild the subsets so that the final TargetRef has all of the necessary data. + existingAddress := allAddrs[key] + if existingAddress == nil { + // Make a copy so we don't write to the + // input args of this function. + existingAddress = &api.EndpointAddress{} + *existingAddress = *addr + allAddrs[key] = existingAddress + } + + // Remember that this port maps to this address. + if _, found := portToAddrReadyMap[port]; !found { + portToAddrReadyMap[port] = addressSet{} + } + // if we have not yet recorded this port for this address, or if the previous + // state was ready, write the current ready state. not ready always trumps + // ready. + if wasReady, found := portToAddrReadyMap[port][existingAddress]; !found || wasReady { + portToAddrReadyMap[port][existingAddress] = ready + } + return existingAddress +} + +type addressSet map[*api.EndpointAddress]bool + +type addrReady struct { + addr *api.EndpointAddress + ready bool +} + +func hashAddresses(addrs addressSet) string { + // Flatten the list of addresses into a string so it can be used as a + // map key. Unfortunately, DeepHashObject is implemented in terms of + // spew, and spew does not handle non-primitive map keys well. So + // first we collapse it into a slice, sort the slice, then hash that. + slice := make([]addrReady, 0, len(addrs)) + for k, ready := range addrs { + slice = append(slice, addrReady{k, ready}) + } + sort.Sort(addrsReady(slice)) + hasher := md5.New() + hashutil.DeepHashObject(hasher, slice) + return hex.EncodeToString(hasher.Sum(nil)[0:]) +} + +func lessAddrReady(a, b addrReady) bool { + // ready is not significant to hashing since we can't have duplicate addresses + return LessEndpointAddress(a.addr, b.addr) +} + +type addrsReady []addrReady + +func (sl addrsReady) Len() int { return len(sl) } +func (sl addrsReady) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } +func (sl addrsReady) Less(i, j int) bool { + return lessAddrReady(sl[i], sl[j]) +} + +func LessEndpointAddress(a, b *api.EndpointAddress) bool { + ipComparison := bytes.Compare([]byte(a.IP), []byte(b.IP)) + if ipComparison != 0 { + return ipComparison < 0 + } + if b.TargetRef == nil { + return false + } + if a.TargetRef == nil { + return true + } + return a.TargetRef.UID < b.TargetRef.UID +} + +type addrPtrsByIpAndUID []*api.EndpointAddress + +func (sl addrPtrsByIpAndUID) Len() int { return len(sl) } +func (sl addrPtrsByIpAndUID) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } +func (sl addrPtrsByIpAndUID) Less(i, j int) bool { + return LessEndpointAddress(sl[i], sl[j]) +} + +// SortSubsets sorts an array of EndpointSubset objects in place. For ease of +// use it returns the input slice. +func SortSubsets(subsets []api.EndpointSubset) []api.EndpointSubset { + for i := range subsets { + ss := &subsets[i] + sort.Sort(addrsByIpAndUID(ss.Addresses)) + sort.Sort(addrsByIpAndUID(ss.NotReadyAddresses)) + sort.Sort(portsByHash(ss.Ports)) + } + sort.Sort(subsetsByHash(subsets)) + return subsets +} + +func hashObject(hasher hash.Hash, obj interface{}) []byte { + hashutil.DeepHashObject(hasher, obj) + return hasher.Sum(nil) +} + +type subsetsByHash []api.EndpointSubset + +func (sl subsetsByHash) Len() int { return len(sl) } +func (sl subsetsByHash) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } +func (sl subsetsByHash) Less(i, j int) bool { + hasher := md5.New() + h1 := hashObject(hasher, sl[i]) + h2 := hashObject(hasher, sl[j]) + return bytes.Compare(h1, h2) < 0 +} + +type addrsByIpAndUID []api.EndpointAddress + +func (sl addrsByIpAndUID) Len() int { return len(sl) } +func (sl addrsByIpAndUID) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } +func (sl addrsByIpAndUID) Less(i, j int) bool { + return LessEndpointAddress(&sl[i], &sl[j]) +} + +type portsByHash []api.EndpointPort + +func (sl portsByHash) Len() int { return len(sl) } +func (sl portsByHash) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } +func (sl portsByHash) Less(i, j int) bool { + hasher := md5.New() + h1 := hashObject(hasher, sl[i]) + h2 := hashObject(hasher, sl[j]) + return bytes.Compare(h1, h2) < 0 +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors/doc.go new file mode 100644 index 0000000000..58751ed0ec --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors/doc.go @@ -0,0 +1,18 @@ +/* +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 errors provides detailed error types for api field validation. +package errors diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors/errors.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors/errors.go new file mode 100644 index 0000000000..5f1abe3198 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/errors/errors.go @@ -0,0 +1,456 @@ +/* +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 errors + +import ( + "encoding/json" + "fmt" + "net/http" + "strings" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/util/validation/field" +) + +// HTTP Status codes not in the golang http package. +const ( + StatusUnprocessableEntity = 422 + StatusTooManyRequests = 429 + // HTTP recommendations are for servers to define 5xx error codes + // for scenarios not covered by behavior. In this case, ServerTimeout + // is an indication that a transient server error has occurred and the + // client *should* retry, with an optional Retry-After header to specify + // the back off window. + StatusServerTimeout = 504 +) + +// StatusError is an error intended for consumption by a REST API server; it can also be +// reconstructed by clients from a REST response. Public to allow easy type switches. +type StatusError struct { + ErrStatus unversioned.Status +} + +// APIStatus is exposed by errors that can be converted to an api.Status object +// for finer grained details. +type APIStatus interface { + Status() unversioned.Status +} + +var _ error = &StatusError{} + +// Error implements the Error interface. +func (e *StatusError) Error() string { + return e.ErrStatus.Message +} + +// Status allows access to e's status without having to know the detailed workings +// of StatusError. Used by pkg/apiserver. +func (e *StatusError) Status() unversioned.Status { + return e.ErrStatus +} + +// DebugError reports extended info about the error to debug output. +func (e *StatusError) DebugError() (string, []interface{}) { + if out, err := json.MarshalIndent(e.ErrStatus, "", " "); err == nil { + return "server response object: %s", []interface{}{string(out)} + } + return "server response object: %#v", []interface{}{e.ErrStatus} +} + +// UnexpectedObjectError can be returned by FromObject if it's passed a non-status object. +type UnexpectedObjectError struct { + Object runtime.Object +} + +// Error returns an error message describing 'u'. +func (u *UnexpectedObjectError) Error() string { + return fmt.Sprintf("unexpected object: %v", u.Object) +} + +// FromObject generates an StatusError from an unversioned.Status, if that is the type of obj; otherwise, +// returns an UnexpecteObjectError. +func FromObject(obj runtime.Object) error { + switch t := obj.(type) { + case *unversioned.Status: + return &StatusError{*t} + } + return &UnexpectedObjectError{obj} +} + +// NewNotFound returns a new error which indicates that the resource of the kind and the name was not found. +func NewNotFound(qualifiedResource unversioned.GroupResource, name string) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusNotFound, + Reason: unversioned.StatusReasonNotFound, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + Name: name, + }, + Message: fmt.Sprintf("%s %q not found", qualifiedResource.String(), name), + }} +} + +// NewAlreadyExists returns an error indicating the item requested exists by that identifier. +func NewAlreadyExists(qualifiedResource unversioned.GroupResource, name string) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusConflict, + Reason: unversioned.StatusReasonAlreadyExists, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + Name: name, + }, + Message: fmt.Sprintf("%s %q already exists", qualifiedResource.String(), name), + }} +} + +// NewUnauthorized returns an error indicating the client is not authorized to perform the requested +// action. +func NewUnauthorized(reason string) *StatusError { + message := reason + if len(message) == 0 { + message = "not authorized" + } + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusUnauthorized, + Reason: unversioned.StatusReasonUnauthorized, + Message: message, + }} +} + +// NewForbidden returns an error indicating the requested action was forbidden +func NewForbidden(qualifiedResource unversioned.GroupResource, name string, err error) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusForbidden, + Reason: unversioned.StatusReasonForbidden, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + Name: name, + }, + Message: fmt.Sprintf("%s %q is forbidden: %v", qualifiedResource.String(), name, err), + }} +} + +// NewConflict returns an error indicating the item can't be updated as provided. +func NewConflict(qualifiedResource unversioned.GroupResource, name string, err error) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusConflict, + Reason: unversioned.StatusReasonConflict, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + Name: name, + }, + Message: fmt.Sprintf("Operation cannot be fulfilled on %s %q: %v", qualifiedResource.String(), name, err), + }} +} + +// NewGone returns an error indicating the item no longer available at the server and no forwarding address is known. +func NewGone(message string) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusGone, + Reason: unversioned.StatusReasonGone, + Message: message, + }} +} + +// NewInvalid returns an error indicating the item is invalid and cannot be processed. +func NewInvalid(qualifiedKind unversioned.GroupKind, name string, errs field.ErrorList) *StatusError { + causes := make([]unversioned.StatusCause, 0, len(errs)) + for i := range errs { + err := errs[i] + causes = append(causes, unversioned.StatusCause{ + Type: unversioned.CauseType(err.Type), + Message: err.ErrorBody(), + Field: err.Field, + }) + } + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: StatusUnprocessableEntity, // RFC 4918: StatusUnprocessableEntity + Reason: unversioned.StatusReasonInvalid, + Details: &unversioned.StatusDetails{ + Group: qualifiedKind.Group, + Kind: qualifiedKind.Kind, + Name: name, + Causes: causes, + }, + Message: fmt.Sprintf("%s %q is invalid: %v", qualifiedKind.String(), name, errs.ToAggregate()), + }} +} + +// NewBadRequest creates an error that indicates that the request is invalid and can not be processed. +func NewBadRequest(reason string) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusBadRequest, + Reason: unversioned.StatusReasonBadRequest, + Message: reason, + }} +} + +// NewServiceUnavailable creates an error that indicates that the requested service is unavailable. +func NewServiceUnavailable(reason string) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusServiceUnavailable, + Reason: unversioned.StatusReasonServiceUnavailable, + Message: reason, + }} +} + +// NewMethodNotSupported returns an error indicating the requested action is not supported on this kind. +func NewMethodNotSupported(qualifiedResource unversioned.GroupResource, action string) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusMethodNotAllowed, + Reason: unversioned.StatusReasonMethodNotAllowed, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + }, + Message: fmt.Sprintf("%s is not supported on resources of kind %q", action, qualifiedResource.String()), + }} +} + +// NewServerTimeout returns an error indicating the requested action could not be completed due to a +// transient error, and the client should try again. +func NewServerTimeout(qualifiedResource unversioned.GroupResource, operation string, retryAfterSeconds int) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusInternalServerError, + Reason: unversioned.StatusReasonServerTimeout, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + Name: operation, + RetryAfterSeconds: int32(retryAfterSeconds), + }, + Message: fmt.Sprintf("The %s operation against %s could not be completed at this time, please try again.", operation, qualifiedResource.String()), + }} +} + +// NewServerTimeoutForKind should not exist. Server timeouts happen when accessing resources, the Kind is just what we +// happened to be looking at when the request failed. This delegates to keep code sane, but we should work towards removing this. +func NewServerTimeoutForKind(qualifiedKind unversioned.GroupKind, operation string, retryAfterSeconds int) *StatusError { + return NewServerTimeout(unversioned.GroupResource{Group: qualifiedKind.Group, Resource: qualifiedKind.Kind}, operation, retryAfterSeconds) +} + +// NewInternalError returns an error indicating the item is invalid and cannot be processed. +func NewInternalError(err error) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: http.StatusInternalServerError, + Reason: unversioned.StatusReasonInternalError, + Details: &unversioned.StatusDetails{ + Causes: []unversioned.StatusCause{{Message: err.Error()}}, + }, + Message: fmt.Sprintf("Internal error occurred: %v", err), + }} +} + +// NewTimeoutError returns an error indicating that a timeout occurred before the request +// could be completed. Clients may retry, but the operation may still complete. +func NewTimeoutError(message string, retryAfterSeconds int) *StatusError { + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: StatusServerTimeout, + Reason: unversioned.StatusReasonTimeout, + Message: fmt.Sprintf("Timeout: %s", message), + Details: &unversioned.StatusDetails{ + RetryAfterSeconds: int32(retryAfterSeconds), + }, + }} +} + +// NewGenericServerResponse returns a new error for server responses that are not in a recognizable form. +func NewGenericServerResponse(code int, verb string, qualifiedResource unversioned.GroupResource, name, serverMessage string, retryAfterSeconds int, isUnexpectedResponse bool) *StatusError { + reason := unversioned.StatusReasonUnknown + message := fmt.Sprintf("the server responded with the status code %d but did not return more information", code) + switch code { + case http.StatusConflict: + if verb == "POST" { + reason = unversioned.StatusReasonAlreadyExists + } else { + reason = unversioned.StatusReasonConflict + } + message = "the server reported a conflict" + case http.StatusNotFound: + reason = unversioned.StatusReasonNotFound + message = "the server could not find the requested resource" + case http.StatusBadRequest: + reason = unversioned.StatusReasonBadRequest + message = "the server rejected our request for an unknown reason" + case http.StatusUnauthorized: + reason = unversioned.StatusReasonUnauthorized + message = "the server has asked for the client to provide credentials" + case http.StatusForbidden: + reason = unversioned.StatusReasonForbidden + message = "the server does not allow access to the requested resource" + case http.StatusMethodNotAllowed: + reason = unversioned.StatusReasonMethodNotAllowed + message = "the server does not allow this method on the requested resource" + case StatusUnprocessableEntity: + reason = unversioned.StatusReasonInvalid + message = "the server rejected our request due to an error in our request" + case StatusServerTimeout: + reason = unversioned.StatusReasonServerTimeout + message = "the server cannot complete the requested operation at this time, try again later" + case StatusTooManyRequests: + reason = unversioned.StatusReasonTimeout + message = "the server has received too many requests and has asked us to try again later" + default: + if code >= 500 { + reason = unversioned.StatusReasonInternalError + message = "an error on the server has prevented the request from succeeding" + } + } + switch { + case !qualifiedResource.IsEmpty() && len(name) > 0: + message = fmt.Sprintf("%s (%s %s %s)", message, strings.ToLower(verb), qualifiedResource.String(), name) + case !qualifiedResource.IsEmpty(): + message = fmt.Sprintf("%s (%s %s)", message, strings.ToLower(verb), qualifiedResource.String()) + } + var causes []unversioned.StatusCause + if isUnexpectedResponse { + causes = []unversioned.StatusCause{ + { + Type: unversioned.CauseTypeUnexpectedServerResponse, + Message: serverMessage, + }, + } + } else { + causes = nil + } + return &StatusError{unversioned.Status{ + Status: unversioned.StatusFailure, + Code: int32(code), + Reason: reason, + Details: &unversioned.StatusDetails{ + Group: qualifiedResource.Group, + Kind: qualifiedResource.Resource, + Name: name, + + Causes: causes, + RetryAfterSeconds: int32(retryAfterSeconds), + }, + Message: message, + }} +} + +// IsNotFound returns true if the specified error was created by NewNotFound. +func IsNotFound(err error) bool { + return reasonForError(err) == unversioned.StatusReasonNotFound +} + +// IsAlreadyExists determines if the err is an error which indicates that a specified resource already exists. +func IsAlreadyExists(err error) bool { + return reasonForError(err) == unversioned.StatusReasonAlreadyExists +} + +// IsConflict determines if the err is an error which indicates the provided update conflicts. +func IsConflict(err error) bool { + return reasonForError(err) == unversioned.StatusReasonConflict +} + +// IsInvalid determines if the err is an error which indicates the provided resource is not valid. +func IsInvalid(err error) bool { + return reasonForError(err) == unversioned.StatusReasonInvalid +} + +// IsMethodNotSupported determines if the err is an error which indicates the provided action could not +// be performed because it is not supported by the server. +func IsMethodNotSupported(err error) bool { + return reasonForError(err) == unversioned.StatusReasonMethodNotAllowed +} + +// IsBadRequest determines if err is an error which indicates that the request is invalid. +func IsBadRequest(err error) bool { + return reasonForError(err) == unversioned.StatusReasonBadRequest +} + +// IsUnauthorized determines if err is an error which indicates that the request is unauthorized and +// requires authentication by the user. +func IsUnauthorized(err error) bool { + return reasonForError(err) == unversioned.StatusReasonUnauthorized +} + +// IsForbidden determines if err is an error which indicates that the request is forbidden and cannot +// be completed as requested. +func IsForbidden(err error) bool { + return reasonForError(err) == unversioned.StatusReasonForbidden +} + +// IsServerTimeout determines if err is an error which indicates that the request needs to be retried +// by the client. +func IsServerTimeout(err error) bool { + return reasonForError(err) == unversioned.StatusReasonServerTimeout +} + +// IsUnexpectedServerError returns true if the server response was not in the expected API format, +// and may be the result of another HTTP actor. +func IsUnexpectedServerError(err error) bool { + switch t := err.(type) { + case APIStatus: + if d := t.Status().Details; d != nil { + for _, cause := range d.Causes { + if cause.Type == unversioned.CauseTypeUnexpectedServerResponse { + return true + } + } + } + } + return false +} + +// IsUnexpectedObjectError determines if err is due to an unexpected object from the master. +func IsUnexpectedObjectError(err error) bool { + _, ok := err.(*UnexpectedObjectError) + return err != nil && ok +} + +// SuggestsClientDelay returns true if this error suggests a client delay as well as the +// suggested seconds to wait, or false if the error does not imply a wait. +func SuggestsClientDelay(err error) (int, bool) { + switch t := err.(type) { + case APIStatus: + if t.Status().Details != nil { + switch t.Status().Reason { + case unversioned.StatusReasonServerTimeout, unversioned.StatusReasonTimeout: + return int(t.Status().Details.RetryAfterSeconds), true + } + } + } + return 0, false +} + +func reasonForError(err error) unversioned.StatusReason { + switch t := err.(type) { + case APIStatus: + return t.Status().Reason + } + return unversioned.StatusReasonUnknown +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/field_constants.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/field_constants.go new file mode 100644 index 0000000000..5ead0f13fe --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/field_constants.go @@ -0,0 +1,38 @@ +/* +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 api + +// Field path constants that are specific to the internal API +// representation. +const ( + NodeUnschedulableField = "spec.unschedulable" + ObjectNameField = "metadata.name" + PodHostField = "spec.nodeName" + PodStatusField = "status.phase" + SecretTypeField = "type" + + EventReasonField = "reason" + EventSourceField = "source" + EventTypeField = "type" + EventInvolvedKindField = "involvedObject.kind" + EventInvolvedNamespaceField = "involvedObject.namespace" + EventInvolvedNameField = "involvedObject.name" + EventInvolvedUIDField = "involvedObject.uid" + EventInvolvedAPIVersionField = "involvedObject.apiVersion" + EventInvolvedResourceVersionField = "involvedObject.resourceVersion" + EventInvolvedFieldPathField = "involvedObject.fieldPath" +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/generate.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/generate.go new file mode 100644 index 0000000000..11cb6c9f4c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/generate.go @@ -0,0 +1,64 @@ +/* +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 api + +import ( + "fmt" + + utilrand "k8s.io/client-go/1.4/pkg/util/rand" +) + +// NameGenerator generates names for objects. Some backends may have more information +// available to guide selection of new names and this interface hides those details. +type NameGenerator interface { + // GenerateName generates a valid name from the base name, adding a random suffix to the + // the base. If base is valid, the returned name must also be valid. The generator is + // responsible for knowing the maximum valid name length. + GenerateName(base string) string +} + +// GenerateName will resolve the object name of the provided ObjectMeta to a generated version if +// necessary. It expects that validation for ObjectMeta has already completed (that Base is a +// valid name) and that the NameGenerator generates a name that is also valid. +func GenerateName(u NameGenerator, meta *ObjectMeta) { + if len(meta.GenerateName) == 0 || len(meta.Name) != 0 { + return + } + meta.Name = u.GenerateName(meta.GenerateName) +} + +// simpleNameGenerator generates random names. +type simpleNameGenerator struct{} + +// SimpleNameGenerator is a generator that returns the name plus a random suffix of five alphanumerics +// when a name is requested. The string is guaranteed to not exceed the length of a standard Kubernetes +// name (63 characters) +var SimpleNameGenerator NameGenerator = simpleNameGenerator{} + +const ( + // TODO: make this flexible for non-core resources with alternate naming rules. + maxNameLength = 63 + randomLength = 5 + maxGeneratedNameLength = maxNameLength - randomLength +) + +func (simpleNameGenerator) GenerateName(base string) string { + if len(base) > maxGeneratedNameLength { + base = base[:maxGeneratedNameLength] + } + return fmt.Sprintf("%s%s", base, utilrand.String(randomLength)) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/helpers.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/helpers.go new file mode 100644 index 0000000000..4192020294 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/helpers.go @@ -0,0 +1,519 @@ +/* +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 api + +import ( + "crypto/md5" + "encoding/json" + "fmt" + "reflect" + "strings" + "time" + + "k8s.io/client-go/1.4/pkg/api/resource" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" + "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/types" + "k8s.io/client-go/1.4/pkg/util/sets" + + "github.com/davecgh/go-spew/spew" +) + +// Conversion error conveniently packages up errors in conversions. +type ConversionError struct { + In, Out interface{} + Message string +} + +// Return a helpful string about the error +func (c *ConversionError) Error() string { + return spew.Sprintf( + "Conversion error: %s. (in: %v(%+v) out: %v)", + c.Message, reflect.TypeOf(c.In), c.In, reflect.TypeOf(c.Out), + ) +} + +// Semantic can do semantic deep equality checks for api objects. +// Example: api.Semantic.DeepEqual(aPod, aPodWithNonNilButEmptyMaps) == true +var Semantic = conversion.EqualitiesOrDie( + func(a, b resource.Quantity) bool { + // Ignore formatting, only care that numeric value stayed the same. + // TODO: if we decide it's important, it should be safe to start comparing the format. + // + // Uninitialized quantities are equivalent to 0 quantities. + return a.Cmp(b) == 0 + }, + func(a, b unversioned.Time) bool { + return a.UTC() == b.UTC() + }, + func(a, b labels.Selector) bool { + return a.String() == b.String() + }, + func(a, b fields.Selector) bool { + return a.String() == b.String() + }, +) + +var standardResourceQuotaScopes = sets.NewString( + string(ResourceQuotaScopeTerminating), + string(ResourceQuotaScopeNotTerminating), + string(ResourceQuotaScopeBestEffort), + string(ResourceQuotaScopeNotBestEffort), +) + +// IsStandardResourceQuotaScope returns true if the scope is a standard value +func IsStandardResourceQuotaScope(str string) bool { + return standardResourceQuotaScopes.Has(str) +} + +var podObjectCountQuotaResources = sets.NewString( + string(ResourcePods), +) + +var podComputeQuotaResources = sets.NewString( + string(ResourceCPU), + string(ResourceMemory), + string(ResourceLimitsCPU), + string(ResourceLimitsMemory), + string(ResourceRequestsCPU), + string(ResourceRequestsMemory), +) + +// IsResourceQuotaScopeValidForResource returns true if the resource applies to the specified scope +func IsResourceQuotaScopeValidForResource(scope ResourceQuotaScope, resource string) bool { + switch scope { + case ResourceQuotaScopeTerminating, ResourceQuotaScopeNotTerminating, ResourceQuotaScopeNotBestEffort: + return podObjectCountQuotaResources.Has(resource) || podComputeQuotaResources.Has(resource) + case ResourceQuotaScopeBestEffort: + return podObjectCountQuotaResources.Has(resource) + default: + return true + } +} + +var standardContainerResources = sets.NewString( + string(ResourceCPU), + string(ResourceMemory), +) + +// IsStandardContainerResourceName returns true if the container can make a resource request +// for the specified resource +func IsStandardContainerResourceName(str string) bool { + return standardContainerResources.Has(str) +} + +var standardLimitRangeTypes = sets.NewString( + string(LimitTypePod), + string(LimitTypeContainer), +) + +// IsStandardLimitRangeType returns true if the type is Pod or Container +func IsStandardLimitRangeType(str string) bool { + return standardLimitRangeTypes.Has(str) +} + +var standardQuotaResources = sets.NewString( + string(ResourceCPU), + string(ResourceMemory), + string(ResourceRequestsCPU), + string(ResourceRequestsMemory), + string(ResourceRequestsStorage), + string(ResourceLimitsCPU), + string(ResourceLimitsMemory), + string(ResourcePods), + string(ResourceQuotas), + string(ResourceServices), + string(ResourceReplicationControllers), + string(ResourceSecrets), + string(ResourcePersistentVolumeClaims), + string(ResourceConfigMaps), + string(ResourceServicesNodePorts), + string(ResourceServicesLoadBalancers), +) + +// IsStandardQuotaResourceName returns true if the resource is known to +// the quota tracking system +func IsStandardQuotaResourceName(str string) bool { + return standardQuotaResources.Has(str) +} + +var standardResources = sets.NewString( + string(ResourceCPU), + string(ResourceMemory), + string(ResourceRequestsCPU), + string(ResourceRequestsMemory), + string(ResourceLimitsCPU), + string(ResourceLimitsMemory), + string(ResourcePods), + string(ResourceQuotas), + string(ResourceServices), + string(ResourceReplicationControllers), + string(ResourceSecrets), + string(ResourceConfigMaps), + string(ResourcePersistentVolumeClaims), + string(ResourceStorage), +) + +// IsStandardResourceName returns true if the resource is known to the system +func IsStandardResourceName(str string) bool { + return standardResources.Has(str) +} + +var integerResources = sets.NewString( + string(ResourcePods), + string(ResourceQuotas), + string(ResourceServices), + string(ResourceReplicationControllers), + string(ResourceSecrets), + string(ResourceConfigMaps), + string(ResourcePersistentVolumeClaims), + string(ResourceServicesNodePorts), + string(ResourceServicesLoadBalancers), +) + +// IsIntegerResourceName returns true if the resource is measured in integer values +func IsIntegerResourceName(str string) bool { + return integerResources.Has(str) +} + +// NewDeleteOptions returns a DeleteOptions indicating the resource should +// be deleted within the specified grace period. Use zero to indicate +// immediate deletion. If you would prefer to use the default grace period, +// use &api.DeleteOptions{} directly. +func NewDeleteOptions(grace int64) *DeleteOptions { + return &DeleteOptions{GracePeriodSeconds: &grace} +} + +// NewPreconditionDeleteOptions returns a DeleteOptions with a UID precondition set. +func NewPreconditionDeleteOptions(uid string) *DeleteOptions { + u := types.UID(uid) + p := Preconditions{UID: &u} + return &DeleteOptions{Preconditions: &p} +} + +// NewUIDPreconditions returns a Preconditions with UID set. +func NewUIDPreconditions(uid string) *Preconditions { + u := types.UID(uid) + return &Preconditions{UID: &u} +} + +// this function aims to check if the service's ClusterIP is set or not +// the objective is not to perform validation here +func IsServiceIPSet(service *Service) bool { + return service.Spec.ClusterIP != ClusterIPNone && service.Spec.ClusterIP != "" +} + +// this function aims to check if the service's cluster IP is requested or not +func IsServiceIPRequested(service *Service) bool { + return service.Spec.ClusterIP == "" +} + +var standardFinalizers = sets.NewString( + string(FinalizerKubernetes), + FinalizerOrphan, +) + +func IsStandardFinalizerName(str string) bool { + return standardFinalizers.Has(str) +} + +// SingleObject returns a ListOptions for watching a single object. +func SingleObject(meta ObjectMeta) ListOptions { + return ListOptions{ + FieldSelector: fields.OneTermEqualSelector("metadata.name", meta.Name), + ResourceVersion: meta.ResourceVersion, + } +} + +// AddToNodeAddresses appends the NodeAddresses to the passed-by-pointer slice, +// only if they do not already exist +func AddToNodeAddresses(addresses *[]NodeAddress, addAddresses ...NodeAddress) { + for _, add := range addAddresses { + exists := false + for _, existing := range *addresses { + if existing.Address == add.Address && existing.Type == add.Type { + exists = true + break + } + } + if !exists { + *addresses = append(*addresses, add) + } + } +} + +func HashObject(obj runtime.Object, codec runtime.Codec) (string, error) { + data, err := runtime.Encode(codec, obj) + if err != nil { + return "", err + } + return fmt.Sprintf("%x", md5.Sum(data)), nil +} + +// TODO: make method on LoadBalancerStatus? +func LoadBalancerStatusEqual(l, r *LoadBalancerStatus) bool { + return ingressSliceEqual(l.Ingress, r.Ingress) +} + +func ingressSliceEqual(lhs, rhs []LoadBalancerIngress) bool { + if len(lhs) != len(rhs) { + return false + } + for i := range lhs { + if !ingressEqual(&lhs[i], &rhs[i]) { + return false + } + } + return true +} + +func ingressEqual(lhs, rhs *LoadBalancerIngress) bool { + if lhs.IP != rhs.IP { + return false + } + if lhs.Hostname != rhs.Hostname { + return false + } + return true +} + +// TODO: make method on LoadBalancerStatus? +func LoadBalancerStatusDeepCopy(lb *LoadBalancerStatus) *LoadBalancerStatus { + c := &LoadBalancerStatus{} + c.Ingress = make([]LoadBalancerIngress, len(lb.Ingress)) + for i := range lb.Ingress { + c.Ingress[i] = lb.Ingress[i] + } + return c +} + +// GetAccessModesAsString returns a string representation of an array of access modes. +// modes, when present, are always in the same order: RWO,ROX,RWX. +func GetAccessModesAsString(modes []PersistentVolumeAccessMode) string { + modes = removeDuplicateAccessModes(modes) + modesStr := []string{} + if containsAccessMode(modes, ReadWriteOnce) { + modesStr = append(modesStr, "RWO") + } + if containsAccessMode(modes, ReadOnlyMany) { + modesStr = append(modesStr, "ROX") + } + if containsAccessMode(modes, ReadWriteMany) { + modesStr = append(modesStr, "RWX") + } + return strings.Join(modesStr, ",") +} + +// GetAccessModesAsString returns an array of AccessModes from a string created by GetAccessModesAsString +func GetAccessModesFromString(modes string) []PersistentVolumeAccessMode { + strmodes := strings.Split(modes, ",") + accessModes := []PersistentVolumeAccessMode{} + for _, s := range strmodes { + s = strings.Trim(s, " ") + switch { + case s == "RWO": + accessModes = append(accessModes, ReadWriteOnce) + case s == "ROX": + accessModes = append(accessModes, ReadOnlyMany) + case s == "RWX": + accessModes = append(accessModes, ReadWriteMany) + } + } + return accessModes +} + +// removeDuplicateAccessModes returns an array of access modes without any duplicates +func removeDuplicateAccessModes(modes []PersistentVolumeAccessMode) []PersistentVolumeAccessMode { + accessModes := []PersistentVolumeAccessMode{} + for _, m := range modes { + if !containsAccessMode(accessModes, m) { + accessModes = append(accessModes, m) + } + } + return accessModes +} + +func containsAccessMode(modes []PersistentVolumeAccessMode, mode PersistentVolumeAccessMode) bool { + for _, m := range modes { + if m == mode { + return true + } + } + return false +} + +// ParseRFC3339 parses an RFC3339 date in either RFC3339Nano or RFC3339 format. +func ParseRFC3339(s string, nowFn func() unversioned.Time) (unversioned.Time, error) { + if t, timeErr := time.Parse(time.RFC3339Nano, s); timeErr == nil { + return unversioned.Time{Time: t}, nil + } + t, err := time.Parse(time.RFC3339, s) + if err != nil { + return unversioned.Time{}, err + } + return unversioned.Time{Time: t}, nil +} + +// NodeSelectorRequirementsAsSelector converts the []NodeSelectorRequirement api type into a struct that implements +// labels.Selector. +func NodeSelectorRequirementsAsSelector(nsm []NodeSelectorRequirement) (labels.Selector, error) { + if len(nsm) == 0 { + return labels.Nothing(), nil + } + selector := labels.NewSelector() + for _, expr := range nsm { + var op labels.Operator + switch expr.Operator { + case NodeSelectorOpIn: + op = labels.InOperator + case NodeSelectorOpNotIn: + op = labels.NotInOperator + case NodeSelectorOpExists: + op = labels.ExistsOperator + case NodeSelectorOpDoesNotExist: + op = labels.DoesNotExistOperator + case NodeSelectorOpGt: + op = labels.GreaterThanOperator + case NodeSelectorOpLt: + op = labels.LessThanOperator + default: + return nil, fmt.Errorf("%q is not a valid node selector operator", expr.Operator) + } + r, err := labels.NewRequirement(expr.Key, op, sets.NewString(expr.Values...)) + if err != nil { + return nil, err + } + selector = selector.Add(*r) + } + return selector, nil +} + +const ( + // AffinityAnnotationKey represents the key of affinity data (json serialized) + // in the Annotations of a Pod. + AffinityAnnotationKey string = "scheduler.alpha.kubernetes.io/affinity" + + // TolerationsAnnotationKey represents the key of tolerations data (json serialized) + // in the Annotations of a Pod. + TolerationsAnnotationKey string = "scheduler.alpha.kubernetes.io/tolerations" + + // TaintsAnnotationKey represents the key of taints data (json serialized) + // in the Annotations of a Node. + TaintsAnnotationKey string = "scheduler.alpha.kubernetes.io/taints" + + // SeccompPodAnnotationKey represents the key of a seccomp profile applied + // to all containers of a pod. + SeccompPodAnnotationKey string = "seccomp.security.alpha.kubernetes.io/pod" + + // SeccompContainerAnnotationKeyPrefix represents the key of a seccomp profile applied + // to one container of a pod. + SeccompContainerAnnotationKeyPrefix string = "container.seccomp.security.alpha.kubernetes.io/" + + // CreatedByAnnotation represents the key used to store the spec(json) + // used to create the resource. + CreatedByAnnotation = "kubernetes.io/created-by" + + // PreferAvoidPodsAnnotationKey represents the key of preferAvoidPods data (json serialized) + // in the Annotations of a Node. + PreferAvoidPodsAnnotationKey string = "scheduler.alpha.kubernetes.io/preferAvoidPods" +) + +// GetAffinityFromPod gets the json serialized affinity data from Pod.Annotations +// and converts it to the Affinity type in api. +func GetAffinityFromPodAnnotations(annotations map[string]string) (*Affinity, error) { + if len(annotations) > 0 && annotations[AffinityAnnotationKey] != "" { + var affinity Affinity + err := json.Unmarshal([]byte(annotations[AffinityAnnotationKey]), &affinity) + if err != nil { + return nil, err + } + return &affinity, nil + } + return nil, nil +} + +// GetTolerationsFromPodAnnotations gets the json serialized tolerations data from Pod.Annotations +// and converts it to the []Toleration type in api. +func GetTolerationsFromPodAnnotations(annotations map[string]string) ([]Toleration, error) { + var tolerations []Toleration + if len(annotations) > 0 && annotations[TolerationsAnnotationKey] != "" { + err := json.Unmarshal([]byte(annotations[TolerationsAnnotationKey]), &tolerations) + if err != nil { + return tolerations, err + } + } + return tolerations, nil +} + +// GetTaintsFromNodeAnnotations gets the json serialized taints data from Pod.Annotations +// and converts it to the []Taint type in api. +func GetTaintsFromNodeAnnotations(annotations map[string]string) ([]Taint, error) { + var taints []Taint + if len(annotations) > 0 && annotations[TaintsAnnotationKey] != "" { + err := json.Unmarshal([]byte(annotations[TaintsAnnotationKey]), &taints) + if err != nil { + return []Taint{}, err + } + } + return taints, nil +} + +// TolerationToleratesTaint checks if the toleration tolerates the taint. +func TolerationToleratesTaint(toleration *Toleration, taint *Taint) bool { + if len(toleration.Effect) != 0 && toleration.Effect != taint.Effect { + return false + } + + if toleration.Key != taint.Key { + return false + } + // TODO: Use proper defaulting when Toleration becomes a field of PodSpec + if (len(toleration.Operator) == 0 || toleration.Operator == TolerationOpEqual) && toleration.Value == taint.Value { + return true + } + if toleration.Operator == TolerationOpExists { + return true + } + return false + +} + +// TaintToleratedByTolerations checks if taint is tolerated by any of the tolerations. +func TaintToleratedByTolerations(taint *Taint, tolerations []Toleration) bool { + tolerated := false + for i := range tolerations { + if TolerationToleratesTaint(&tolerations[i], taint) { + tolerated = true + break + } + } + return tolerated +} + +func GetAvoidPodsFromNodeAnnotations(annotations map[string]string) (AvoidPods, error) { + var avoidPods AvoidPods + if len(annotations) > 0 && annotations[PreferAvoidPodsAnnotationKey] != "" { + err := json.Unmarshal([]byte(annotations[PreferAvoidPodsAnnotationKey]), &avoidPods) + if err != nil { + return avoidPods, err + } + } + return avoidPods, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/mapper.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/mapper.go new file mode 100644 index 0000000000..bc99438762 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/mapper.go @@ -0,0 +1,60 @@ +/* +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 api + +import ( + "strings" + + "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/util/sets" +) + +var RESTMapper meta.RESTMapper + +func init() { + RESTMapper = meta.MultiRESTMapper{} +} + +func RegisterRESTMapper(m meta.RESTMapper) { + RESTMapper = append(RESTMapper.(meta.MultiRESTMapper), m) +} + +func NewDefaultRESTMapper(defaultGroupVersions []unversioned.GroupVersion, interfacesFunc meta.VersionInterfacesFunc, + importPathPrefix string, ignoredKinds, rootScoped sets.String) *meta.DefaultRESTMapper { + + mapper := meta.NewDefaultRESTMapper(defaultGroupVersions, interfacesFunc) + // enumerate all supported versions, get the kinds, and register with the mapper how to address + // our resources. + for _, gv := range defaultGroupVersions { + for kind, oType := range Scheme.KnownTypes(gv) { + gvk := gv.WithKind(kind) + // TODO: Remove import path check. + // We check the import path because we currently stuff both "api" and "extensions" objects + // into the same group within Scheme since Scheme has no notion of groups yet. + if !strings.Contains(oType.PkgPath(), importPathPrefix) || ignoredKinds.Has(kind) { + continue + } + scope := meta.RESTScopeNamespace + if rootScoped.Has(kind) { + scope = meta.RESTScopeRoot + } + mapper.Add(gvk, scope) + } + } + return mapper +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta.go new file mode 100644 index 0000000000..85b2329cb8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta.go @@ -0,0 +1,133 @@ +/* +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 api + +import ( + "k8s.io/client-go/1.4/pkg/api/meta" + "k8s.io/client-go/1.4/pkg/api/meta/metatypes" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/types" + "k8s.io/client-go/1.4/pkg/util/uuid" +) + +// FillObjectMetaSystemFields populates fields that are managed by the system on ObjectMeta. +func FillObjectMetaSystemFields(ctx Context, meta *ObjectMeta) { + meta.CreationTimestamp = unversioned.Now() + // allows admission controllers to assign a UID earlier in the request processing + // to support tracking resources pending creation. + uid, found := UIDFrom(ctx) + if !found { + uid = uuid.NewUUID() + } + meta.UID = uid + meta.SelfLink = "" +} + +// HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values. +func HasObjectMetaSystemFieldValues(meta *ObjectMeta) bool { + return !meta.CreationTimestamp.Time.IsZero() || + len(meta.UID) != 0 +} + +// ObjectMetaFor returns a pointer to a provided object's ObjectMeta. +// TODO: allow runtime.Unknown to extract this object +// TODO: Remove this function and use meta.Accessor() instead. +func ObjectMetaFor(obj runtime.Object) (*ObjectMeta, error) { + v, err := conversion.EnforcePtr(obj) + if err != nil { + return nil, err + } + var meta *ObjectMeta + err = runtime.FieldPtr(v, "ObjectMeta", &meta) + return meta, err +} + +// ListMetaFor returns a pointer to a provided object's ListMeta, +// or an error if the object does not have that pointer. +// TODO: allow runtime.Unknown to extract this object +func ListMetaFor(obj runtime.Object) (*unversioned.ListMeta, error) { + v, err := conversion.EnforcePtr(obj) + if err != nil { + return nil, err + } + var meta *unversioned.ListMeta + err = runtime.FieldPtr(v, "ListMeta", &meta) + return meta, err +} + +func (obj *ObjectMeta) GetObjectMeta() meta.Object { return obj } + +// Namespace implements meta.Object for any object with an ObjectMeta typed field. Allows +// fast, direct access to metadata fields for API objects. +func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace } +func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace } +func (meta *ObjectMeta) GetName() string { return meta.Name } +func (meta *ObjectMeta) SetName(name string) { meta.Name = name } +func (meta *ObjectMeta) GetGenerateName() string { return meta.GenerateName } +func (meta *ObjectMeta) SetGenerateName(generateName string) { meta.GenerateName = generateName } +func (meta *ObjectMeta) GetUID() types.UID { return meta.UID } +func (meta *ObjectMeta) SetUID(uid types.UID) { meta.UID = uid } +func (meta *ObjectMeta) GetResourceVersion() string { return meta.ResourceVersion } +func (meta *ObjectMeta) SetResourceVersion(version string) { meta.ResourceVersion = version } +func (meta *ObjectMeta) GetSelfLink() string { return meta.SelfLink } +func (meta *ObjectMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink } +func (meta *ObjectMeta) GetCreationTimestamp() unversioned.Time { return meta.CreationTimestamp } +func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp unversioned.Time) { + meta.CreationTimestamp = creationTimestamp +} +func (meta *ObjectMeta) GetDeletionTimestamp() *unversioned.Time { return meta.DeletionTimestamp } +func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *unversioned.Time) { + meta.DeletionTimestamp = deletionTimestamp +} +func (meta *ObjectMeta) GetLabels() map[string]string { return meta.Labels } +func (meta *ObjectMeta) SetLabels(labels map[string]string) { meta.Labels = labels } +func (meta *ObjectMeta) GetAnnotations() map[string]string { return meta.Annotations } +func (meta *ObjectMeta) SetAnnotations(annotations map[string]string) { meta.Annotations = annotations } +func (meta *ObjectMeta) GetFinalizers() []string { return meta.Finalizers } +func (meta *ObjectMeta) SetFinalizers(finalizers []string) { meta.Finalizers = finalizers } + +func (meta *ObjectMeta) GetOwnerReferences() []metatypes.OwnerReference { + ret := make([]metatypes.OwnerReference, len(meta.OwnerReferences)) + for i := 0; i < len(meta.OwnerReferences); i++ { + ret[i].Kind = meta.OwnerReferences[i].Kind + ret[i].Name = meta.OwnerReferences[i].Name + ret[i].UID = meta.OwnerReferences[i].UID + ret[i].APIVersion = meta.OwnerReferences[i].APIVersion + if meta.OwnerReferences[i].Controller != nil { + value := *meta.OwnerReferences[i].Controller + ret[i].Controller = &value + } + } + return ret +} + +func (meta *ObjectMeta) SetOwnerReferences(references []metatypes.OwnerReference) { + newReferences := make([]OwnerReference, len(references)) + for i := 0; i < len(references); i++ { + newReferences[i].Kind = references[i].Kind + newReferences[i].Name = references[i].Name + newReferences[i].UID = references[i].UID + newReferences[i].APIVersion = references[i].APIVersion + if references[i].Controller != nil { + value := *references[i].Controller + newReferences[i].Controller = &value + } + } + meta.OwnerReferences = newReferences +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/doc.go new file mode 100644 index 0000000000..a3b18a5c9a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/doc.go @@ -0,0 +1,19 @@ +/* +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 meta provides functions for retrieving API metadata from objects +// belonging to the Kubernetes API +package meta diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/errors.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/errors.go new file mode 100644 index 0000000000..95679f16d7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/errors.go @@ -0,0 +1,105 @@ +/* +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 meta + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// AmbiguousResourceError is returned if the RESTMapper finds multiple matches for a resource +type AmbiguousResourceError struct { + PartialResource unversioned.GroupVersionResource + + MatchingResources []unversioned.GroupVersionResource + MatchingKinds []unversioned.GroupVersionKind +} + +func (e *AmbiguousResourceError) Error() string { + switch { + case len(e.MatchingKinds) > 0 && len(e.MatchingResources) > 0: + return fmt.Sprintf("%v matches multiple resources %v and kinds %v", e.PartialResource, e.MatchingResources, e.MatchingKinds) + case len(e.MatchingKinds) > 0: + return fmt.Sprintf("%v matches multiple kinds %v", e.PartialResource, e.MatchingKinds) + case len(e.MatchingResources) > 0: + return fmt.Sprintf("%v matches multiple resources %v", e.PartialResource, e.MatchingResources) + } + return fmt.Sprintf("%v matches multiple resources or kinds", e.PartialResource) +} + +// AmbiguousKindError is returned if the RESTMapper finds multiple matches for a kind +type AmbiguousKindError struct { + PartialKind unversioned.GroupVersionKind + + MatchingResources []unversioned.GroupVersionResource + MatchingKinds []unversioned.GroupVersionKind +} + +func (e *AmbiguousKindError) Error() string { + switch { + case len(e.MatchingKinds) > 0 && len(e.MatchingResources) > 0: + return fmt.Sprintf("%v matches multiple resources %v and kinds %v", e.PartialKind, e.MatchingResources, e.MatchingKinds) + case len(e.MatchingKinds) > 0: + return fmt.Sprintf("%v matches multiple kinds %v", e.PartialKind, e.MatchingKinds) + case len(e.MatchingResources) > 0: + return fmt.Sprintf("%v matches multiple resources %v", e.PartialKind, e.MatchingResources) + } + return fmt.Sprintf("%v matches multiple resources or kinds", e.PartialKind) +} + +func IsAmbiguousError(err error) bool { + if err == nil { + return false + } + switch err.(type) { + case *AmbiguousResourceError, *AmbiguousKindError: + return true + default: + return false + } +} + +// NoResourceMatchError is returned if the RESTMapper can't find any match for a resource +type NoResourceMatchError struct { + PartialResource unversioned.GroupVersionResource +} + +func (e *NoResourceMatchError) Error() string { + return fmt.Sprintf("no matches for %v", e.PartialResource) +} + +// NoKindMatchError is returned if the RESTMapper can't find any match for a kind +type NoKindMatchError struct { + PartialKind unversioned.GroupVersionKind +} + +func (e *NoKindMatchError) Error() string { + return fmt.Sprintf("no matches for %v", e.PartialKind) +} + +func IsNoMatchError(err error) bool { + if err == nil { + return false + } + switch err.(type) { + case *NoResourceMatchError, *NoKindMatchError: + return true + default: + return false + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/help.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/help.go new file mode 100644 index 0000000000..8fa91cf1f4 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/help.go @@ -0,0 +1,134 @@ +/* +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 meta + +import ( + "fmt" + "reflect" + + "k8s.io/client-go/1.4/pkg/conversion" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// IsListType returns true if the provided Object has a slice called Items +func IsListType(obj runtime.Object) bool { + _, err := GetItemsPtr(obj) + return err == nil +} + +// GetItemsPtr returns a pointer to the list object's Items member. +// If 'list' doesn't have an Items member, it's not really a list type +// and an error will be returned. +// This function will either return a pointer to a slice, or an error, but not both. +func GetItemsPtr(list runtime.Object) (interface{}, error) { + v, err := conversion.EnforcePtr(list) + if err != nil { + return nil, err + } + items := v.FieldByName("Items") + if !items.IsValid() { + return nil, fmt.Errorf("no Items field in %#v", list) + } + switch items.Kind() { + case reflect.Interface, reflect.Ptr: + target := reflect.TypeOf(items.Interface()).Elem() + if target.Kind() != reflect.Slice { + return nil, fmt.Errorf("items: Expected slice, got %s", target.Kind()) + } + return items.Interface(), nil + case reflect.Slice: + return items.Addr().Interface(), nil + default: + return nil, fmt.Errorf("items: Expected slice, got %s", items.Kind()) + } +} + +// ExtractList returns obj's Items element as an array of runtime.Objects. +// Returns an error if obj is not a List type (does not have an Items member). +func ExtractList(obj runtime.Object) ([]runtime.Object, error) { + itemsPtr, err := GetItemsPtr(obj) + if err != nil { + return nil, err + } + items, err := conversion.EnforcePtr(itemsPtr) + if err != nil { + return nil, err + } + list := make([]runtime.Object, items.Len()) + for i := range list { + raw := items.Index(i) + switch item := raw.Interface().(type) { + case runtime.RawExtension: + switch { + case item.Object != nil: + list[i] = item.Object + case item.Raw != nil: + // TODO: Set ContentEncoding and ContentType correctly. + list[i] = &runtime.Unknown{Raw: item.Raw} + default: + list[i] = nil + } + case runtime.Object: + list[i] = item + default: + var found bool + if list[i], found = raw.Addr().Interface().(runtime.Object); !found { + return nil, fmt.Errorf("%v: item[%v]: Expected object, got %#v(%s)", obj, i, raw.Interface(), raw.Kind()) + } + } + } + return list, nil +} + +// objectSliceType is the type of a slice of Objects +var objectSliceType = reflect.TypeOf([]runtime.Object{}) + +// SetList sets the given list object's Items member have the elements given in +// objects. +// Returns an error if list is not a List type (does not have an Items member), +// or if any of the objects are not of the right type. +func SetList(list runtime.Object, objects []runtime.Object) error { + itemsPtr, err := GetItemsPtr(list) + if err != nil { + return err + } + items, err := conversion.EnforcePtr(itemsPtr) + if err != nil { + return err + } + if items.Type() == objectSliceType { + items.Set(reflect.ValueOf(objects)) + return nil + } + slice := reflect.MakeSlice(items.Type(), len(objects), len(objects)) + for i := range objects { + dest := slice.Index(i) + src, err := conversion.EnforcePtr(objects[i]) + if err != nil { + return err + } + if src.Type().AssignableTo(dest.Type()) { + dest.Set(src) + } else if src.Type().ConvertibleTo(dest.Type()) { + dest.Set(src.Convert(dest.Type())) + } else { + return fmt.Errorf("item[%d]: can't assign or convert %v into %v", i, src.Type(), dest.Type()) + } + } + items.Set(slice) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/interfaces.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/interfaces.go new file mode 100644 index 0000000000..aed814a9c2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/interfaces.go @@ -0,0 +1,183 @@ +/* +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 meta + +import ( + "k8s.io/client-go/1.4/pkg/api/meta/metatypes" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/types" +) + +// VersionInterfaces contains the interfaces one should use for dealing with types of a particular version. +type VersionInterfaces struct { + runtime.ObjectConvertor + MetadataAccessor +} + +type ObjectMetaAccessor interface { + GetObjectMeta() Object +} + +// Object lets you work with object metadata from any of the versioned or +// internal API objects. Attempting to set or retrieve a field on an object that does +// not support that field (Name, UID, Namespace on lists) will be a no-op and return +// a default value. +type Object interface { + GetNamespace() string + SetNamespace(namespace string) + GetName() string + SetName(name string) + GetGenerateName() string + SetGenerateName(name string) + GetUID() types.UID + SetUID(uid types.UID) + GetResourceVersion() string + SetResourceVersion(version string) + GetSelfLink() string + SetSelfLink(selfLink string) + GetCreationTimestamp() unversioned.Time + SetCreationTimestamp(timestamp unversioned.Time) + GetDeletionTimestamp() *unversioned.Time + SetDeletionTimestamp(timestamp *unversioned.Time) + GetLabels() map[string]string + SetLabels(labels map[string]string) + GetAnnotations() map[string]string + SetAnnotations(annotations map[string]string) + GetFinalizers() []string + SetFinalizers(finalizers []string) + GetOwnerReferences() []metatypes.OwnerReference + SetOwnerReferences([]metatypes.OwnerReference) +} + +var _ Object = &runtime.Unstructured{} + +type ListMetaAccessor interface { + GetListMeta() List +} + +// List lets you work with list metadata from any of the versioned or +// internal API objects. Attempting to set or retrieve a field on an object that does +// not support that field will be a no-op and return a default value. +type List unversioned.List + +// Type exposes the type and APIVersion of versioned or internal API objects. +type Type unversioned.Type + +// MetadataAccessor lets you work with object and list metadata from any of the versioned or +// internal API objects. Attempting to set or retrieve a field on an object that does +// not support that field (Name, UID, Namespace on lists) will be a no-op and return +// a default value. +// +// MetadataAccessor exposes Interface in a way that can be used with multiple objects. +type MetadataAccessor interface { + APIVersion(obj runtime.Object) (string, error) + SetAPIVersion(obj runtime.Object, version string) error + + Kind(obj runtime.Object) (string, error) + SetKind(obj runtime.Object, kind string) error + + Namespace(obj runtime.Object) (string, error) + SetNamespace(obj runtime.Object, namespace string) error + + Name(obj runtime.Object) (string, error) + SetName(obj runtime.Object, name string) error + + GenerateName(obj runtime.Object) (string, error) + SetGenerateName(obj runtime.Object, name string) error + + UID(obj runtime.Object) (types.UID, error) + SetUID(obj runtime.Object, uid types.UID) error + + SelfLink(obj runtime.Object) (string, error) + SetSelfLink(obj runtime.Object, selfLink string) error + + Labels(obj runtime.Object) (map[string]string, error) + SetLabels(obj runtime.Object, labels map[string]string) error + + Annotations(obj runtime.Object) (map[string]string, error) + SetAnnotations(obj runtime.Object, annotations map[string]string) error + + runtime.ResourceVersioner +} + +type RESTScopeName string + +const ( + RESTScopeNameNamespace RESTScopeName = "namespace" + RESTScopeNameRoot RESTScopeName = "root" +) + +// RESTScope contains the information needed to deal with REST resources that are in a resource hierarchy +type RESTScope interface { + // Name of the scope + Name() RESTScopeName + // ParamName is the optional name of the parameter that should be inserted in the resource url + // If empty, no param will be inserted + ParamName() string + // ArgumentName is the optional name that should be used for the variable holding the value. + ArgumentName() string + // ParamDescription is the optional description to use to document the parameter in api documentation + ParamDescription() string +} + +// RESTMapping contains the information needed to deal with objects of a specific +// resource and kind in a RESTful manner. +type RESTMapping struct { + // Resource is a string representing the name of this resource as a REST client would see it + Resource string + + GroupVersionKind unversioned.GroupVersionKind + + // Scope contains the information needed to deal with REST Resources that are in a resource hierarchy + Scope RESTScope + + runtime.ObjectConvertor + MetadataAccessor +} + +// RESTMapper allows clients to map resources to kind, and map kind and version +// to interfaces for manipulating those objects. It is primarily intended for +// consumers of Kubernetes compatible REST APIs as defined in docs/devel/api-conventions.md. +// +// The Kubernetes API provides versioned resources and object kinds which are scoped +// to API groups. In other words, kinds and resources should not be assumed to be +// unique across groups. +// +// TODO(caesarxuchao): Add proper multi-group support so that kinds & resources are +// scoped to groups. See http://issues.k8s.io/12413 and http://issues.k8s.io/10009. +type RESTMapper interface { + // KindFor takes a partial resource and returns back the single match. Returns an error if there are multiple matches + KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + + // KindsFor takes a partial resource and returns back the list of potential kinds in priority order + KindsFor(resource unversioned.GroupVersionResource) ([]unversioned.GroupVersionKind, error) + + // ResourceFor takes a partial resource and returns back the single match. Returns an error if there are multiple matches + ResourceFor(input unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + + // ResourcesFor takes a partial resource and returns back the list of potential resource in priority order + ResourcesFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + + // RESTMapping identifies a preferred resource mapping for the provided group kind. + RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) + // RESTMappings returns all resource mappings for the provided group kind. + RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) + + AliasesForResource(resource string) ([]string, bool) + ResourceSingularizer(resource string) (singular string, err error) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/meta.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/meta.go new file mode 100644 index 0000000000..aa69818ff1 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/meta.go @@ -0,0 +1,567 @@ +/* +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 meta + +import ( + "fmt" + "reflect" + + "k8s.io/client-go/1.4/pkg/api/meta/metatypes" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/types" + + "github.com/golang/glog" +) + +// errNotList is returned when an object implements the Object style interfaces but not the List style +// interfaces. +var errNotList = fmt.Errorf("object does not implement the List interfaces") + +// ListAccessor returns a List interface for the provided object or an error if the object does +// not provide List. +// IMPORTANT: Objects are a superset of lists, so all Objects return List metadata. Do not use this +// check to determine whether an object *is* a List. +// TODO: return bool instead of error +func ListAccessor(obj interface{}) (List, error) { + switch t := obj.(type) { + case List: + return t, nil + case unversioned.List: + return t, nil + case ListMetaAccessor: + if m := t.GetListMeta(); m != nil { + return m, nil + } + return nil, errNotList + case unversioned.ListMetaAccessor: + if m := t.GetListMeta(); m != nil { + return m, nil + } + return nil, errNotList + case Object: + return t, nil + case ObjectMetaAccessor: + if m := t.GetObjectMeta(); m != nil { + return m, nil + } + return nil, errNotList + default: + return nil, errNotList + } +} + +// errNotObject is returned when an object implements the List style interfaces but not the Object style +// interfaces. +var errNotObject = fmt.Errorf("object does not implement the Object interfaces") + +// Accessor takes an arbitrary object pointer and returns meta.Interface. +// obj must be a pointer to an API type. An error is returned if the minimum +// required fields are missing. Fields that are not required return the default +// value and are a no-op if set. +// TODO: return bool instead of error +func Accessor(obj interface{}) (Object, error) { + switch t := obj.(type) { + case Object: + return t, nil + case ObjectMetaAccessor: + if m := t.GetObjectMeta(); m != nil { + return m, nil + } + return nil, errNotObject + case List, unversioned.List, ListMetaAccessor, unversioned.ListMetaAccessor: + return nil, errNotObject + default: + return nil, errNotObject + } +} + +// TypeAccessor returns an interface that allows retrieving and modifying the APIVersion +// and Kind of an in-memory internal object. +// TODO: this interface is used to test code that does not have ObjectMeta or ListMeta +// in round tripping (objects which can use apiVersion/kind, but do not fit the Kube +// api conventions). +func TypeAccessor(obj interface{}) (Type, error) { + if typed, ok := obj.(runtime.Object); ok { + return objectAccessor{typed}, nil + } + v, err := conversion.EnforcePtr(obj) + if err != nil { + return nil, err + } + t := v.Type() + if v.Kind() != reflect.Struct { + return nil, fmt.Errorf("expected struct, but got %v: %v (%#v)", v.Kind(), t, v.Interface()) + } + + typeMeta := v.FieldByName("TypeMeta") + if !typeMeta.IsValid() { + return nil, fmt.Errorf("struct %v lacks embedded TypeMeta type", t) + } + a := &genericAccessor{} + if err := extractFromTypeMeta(typeMeta, a); err != nil { + return nil, fmt.Errorf("unable to find type fields on %#v: %v", typeMeta, err) + } + return a, nil +} + +type objectAccessor struct { + runtime.Object +} + +func (obj objectAccessor) GetKind() string { + return obj.GetObjectKind().GroupVersionKind().Kind +} + +func (obj objectAccessor) SetKind(kind string) { + gvk := obj.GetObjectKind().GroupVersionKind() + gvk.Kind = kind + obj.GetObjectKind().SetGroupVersionKind(gvk) +} + +func (obj objectAccessor) GetAPIVersion() string { + return obj.GetObjectKind().GroupVersionKind().GroupVersion().String() +} + +func (obj objectAccessor) SetAPIVersion(version string) { + gvk := obj.GetObjectKind().GroupVersionKind() + gv, err := unversioned.ParseGroupVersion(version) + if err != nil { + gv = unversioned.GroupVersion{Version: version} + } + gvk.Group, gvk.Version = gv.Group, gv.Version + obj.GetObjectKind().SetGroupVersionKind(gvk) +} + +// NewAccessor returns a MetadataAccessor that can retrieve +// or manipulate resource version on objects derived from core API +// metadata concepts. +func NewAccessor() MetadataAccessor { + return resourceAccessor{} +} + +// resourceAccessor implements ResourceVersioner and SelfLinker. +type resourceAccessor struct{} + +func (resourceAccessor) Kind(obj runtime.Object) (string, error) { + return objectAccessor{obj}.GetKind(), nil +} + +func (resourceAccessor) SetKind(obj runtime.Object, kind string) error { + objectAccessor{obj}.SetKind(kind) + return nil +} + +func (resourceAccessor) APIVersion(obj runtime.Object) (string, error) { + return objectAccessor{obj}.GetAPIVersion(), nil +} + +func (resourceAccessor) SetAPIVersion(obj runtime.Object, version string) error { + objectAccessor{obj}.SetAPIVersion(version) + return nil +} + +func (resourceAccessor) Namespace(obj runtime.Object) (string, error) { + accessor, err := Accessor(obj) + if err != nil { + return "", err + } + return accessor.GetNamespace(), nil +} + +func (resourceAccessor) SetNamespace(obj runtime.Object, namespace string) error { + accessor, err := Accessor(obj) + if err != nil { + return err + } + accessor.SetNamespace(namespace) + return nil +} + +func (resourceAccessor) Name(obj runtime.Object) (string, error) { + accessor, err := Accessor(obj) + if err != nil { + return "", err + } + return accessor.GetName(), nil +} + +func (resourceAccessor) SetName(obj runtime.Object, name string) error { + accessor, err := Accessor(obj) + if err != nil { + return err + } + accessor.SetName(name) + return nil +} + +func (resourceAccessor) GenerateName(obj runtime.Object) (string, error) { + accessor, err := Accessor(obj) + if err != nil { + return "", err + } + return accessor.GetGenerateName(), nil +} + +func (resourceAccessor) SetGenerateName(obj runtime.Object, name string) error { + accessor, err := Accessor(obj) + if err != nil { + return err + } + accessor.SetGenerateName(name) + return nil +} + +func (resourceAccessor) UID(obj runtime.Object) (types.UID, error) { + accessor, err := Accessor(obj) + if err != nil { + return "", err + } + return accessor.GetUID(), nil +} + +func (resourceAccessor) SetUID(obj runtime.Object, uid types.UID) error { + accessor, err := Accessor(obj) + if err != nil { + return err + } + accessor.SetUID(uid) + return nil +} + +func (resourceAccessor) SelfLink(obj runtime.Object) (string, error) { + accessor, err := ListAccessor(obj) + if err != nil { + return "", err + } + return accessor.GetSelfLink(), nil +} + +func (resourceAccessor) SetSelfLink(obj runtime.Object, selfLink string) error { + accessor, err := ListAccessor(obj) + if err != nil { + return err + } + accessor.SetSelfLink(selfLink) + return nil +} + +func (resourceAccessor) Labels(obj runtime.Object) (map[string]string, error) { + accessor, err := Accessor(obj) + if err != nil { + return nil, err + } + return accessor.GetLabels(), nil +} + +func (resourceAccessor) SetLabels(obj runtime.Object, labels map[string]string) error { + accessor, err := Accessor(obj) + if err != nil { + return err + } + accessor.SetLabels(labels) + return nil +} + +func (resourceAccessor) Annotations(obj runtime.Object) (map[string]string, error) { + accessor, err := Accessor(obj) + if err != nil { + return nil, err + } + return accessor.GetAnnotations(), nil +} + +func (resourceAccessor) SetAnnotations(obj runtime.Object, annotations map[string]string) error { + accessor, err := Accessor(obj) + if err != nil { + return err + } + accessor.SetAnnotations(annotations) + return nil +} + +func (resourceAccessor) ResourceVersion(obj runtime.Object) (string, error) { + accessor, err := ListAccessor(obj) + if err != nil { + return "", err + } + return accessor.GetResourceVersion(), nil +} + +func (resourceAccessor) SetResourceVersion(obj runtime.Object, version string) error { + accessor, err := ListAccessor(obj) + if err != nil { + return err + } + accessor.SetResourceVersion(version) + return nil +} + +// extractFromOwnerReference extracts v to o. v is the OwnerReferences field of an object. +func extractFromOwnerReference(v reflect.Value, o *metatypes.OwnerReference) error { + if err := runtime.Field(v, "APIVersion", &o.APIVersion); err != nil { + return err + } + if err := runtime.Field(v, "Kind", &o.Kind); err != nil { + return err + } + if err := runtime.Field(v, "Name", &o.Name); err != nil { + return err + } + if err := runtime.Field(v, "UID", &o.UID); err != nil { + return err + } + var controllerPtr *bool + if err := runtime.Field(v, "Controller", &controllerPtr); err != nil { + return err + } + if controllerPtr != nil { + controller := *controllerPtr + o.Controller = &controller + } + return nil +} + +// setOwnerReference sets v to o. v is the OwnerReferences field of an object. +func setOwnerReference(v reflect.Value, o *metatypes.OwnerReference) error { + if err := runtime.SetField(o.APIVersion, v, "APIVersion"); err != nil { + return err + } + if err := runtime.SetField(o.Kind, v, "Kind"); err != nil { + return err + } + if err := runtime.SetField(o.Name, v, "Name"); err != nil { + return err + } + if err := runtime.SetField(o.UID, v, "UID"); err != nil { + return err + } + if o.Controller != nil { + controller := *(o.Controller) + if err := runtime.SetField(&controller, v, "Controller"); err != nil { + return err + } + } + return nil +} + +// genericAccessor contains pointers to strings that can modify an arbitrary +// struct and implements the Accessor interface. +type genericAccessor struct { + namespace *string + name *string + generateName *string + uid *types.UID + apiVersion *string + kind *string + resourceVersion *string + selfLink *string + creationTimestamp *unversioned.Time + deletionTimestamp **unversioned.Time + labels *map[string]string + annotations *map[string]string + ownerReferences reflect.Value + finalizers *[]string +} + +func (a genericAccessor) GetNamespace() string { + if a.namespace == nil { + return "" + } + return *a.namespace +} + +func (a genericAccessor) SetNamespace(namespace string) { + if a.namespace == nil { + return + } + *a.namespace = namespace +} + +func (a genericAccessor) GetName() string { + if a.name == nil { + return "" + } + return *a.name +} + +func (a genericAccessor) SetName(name string) { + if a.name == nil { + return + } + *a.name = name +} + +func (a genericAccessor) GetGenerateName() string { + if a.generateName == nil { + return "" + } + return *a.generateName +} + +func (a genericAccessor) SetGenerateName(generateName string) { + if a.generateName == nil { + return + } + *a.generateName = generateName +} + +func (a genericAccessor) GetUID() types.UID { + if a.uid == nil { + return "" + } + return *a.uid +} + +func (a genericAccessor) SetUID(uid types.UID) { + if a.uid == nil { + return + } + *a.uid = uid +} + +func (a genericAccessor) GetAPIVersion() string { + return *a.apiVersion +} + +func (a genericAccessor) SetAPIVersion(version string) { + *a.apiVersion = version +} + +func (a genericAccessor) GetKind() string { + return *a.kind +} + +func (a genericAccessor) SetKind(kind string) { + *a.kind = kind +} + +func (a genericAccessor) GetResourceVersion() string { + return *a.resourceVersion +} + +func (a genericAccessor) SetResourceVersion(version string) { + *a.resourceVersion = version +} + +func (a genericAccessor) GetSelfLink() string { + return *a.selfLink +} + +func (a genericAccessor) SetSelfLink(selfLink string) { + *a.selfLink = selfLink +} + +func (a genericAccessor) GetCreationTimestamp() unversioned.Time { + return *a.creationTimestamp +} + +func (a genericAccessor) SetCreationTimestamp(timestamp unversioned.Time) { + *a.creationTimestamp = timestamp +} + +func (a genericAccessor) GetDeletionTimestamp() *unversioned.Time { + return *a.deletionTimestamp +} + +func (a genericAccessor) SetDeletionTimestamp(timestamp *unversioned.Time) { + *a.deletionTimestamp = timestamp +} + +func (a genericAccessor) GetLabels() map[string]string { + if a.labels == nil { + return nil + } + return *a.labels +} + +func (a genericAccessor) SetLabels(labels map[string]string) { + *a.labels = labels +} + +func (a genericAccessor) GetAnnotations() map[string]string { + if a.annotations == nil { + return nil + } + return *a.annotations +} + +func (a genericAccessor) SetAnnotations(annotations map[string]string) { + if a.annotations == nil { + emptyAnnotations := make(map[string]string) + a.annotations = &emptyAnnotations + } + *a.annotations = annotations +} + +func (a genericAccessor) GetFinalizers() []string { + if a.finalizers == nil { + return nil + } + return *a.finalizers +} + +func (a genericAccessor) SetFinalizers(finalizers []string) { + *a.finalizers = finalizers +} + +func (a genericAccessor) GetOwnerReferences() []metatypes.OwnerReference { + var ret []metatypes.OwnerReference + s := a.ownerReferences + if s.Kind() != reflect.Ptr || s.Elem().Kind() != reflect.Slice { + glog.Errorf("expect %v to be a pointer to slice", s) + return ret + } + s = s.Elem() + // Set the capacity to one element greater to avoid copy if the caller later append an element. + ret = make([]metatypes.OwnerReference, s.Len(), s.Len()+1) + for i := 0; i < s.Len(); i++ { + if err := extractFromOwnerReference(s.Index(i), &ret[i]); err != nil { + glog.Errorf("extractFromOwnerReference failed: %v", err) + return ret + } + } + return ret +} + +func (a genericAccessor) SetOwnerReferences(references []metatypes.OwnerReference) { + s := a.ownerReferences + if s.Kind() != reflect.Ptr || s.Elem().Kind() != reflect.Slice { + glog.Errorf("expect %v to be a pointer to slice", s) + } + s = s.Elem() + newReferences := reflect.MakeSlice(s.Type(), len(references), len(references)) + for i := 0; i < len(references); i++ { + if err := setOwnerReference(newReferences.Index(i), &references[i]); err != nil { + glog.Errorf("setOwnerReference failed: %v", err) + return + } + } + s.Set(newReferences) +} + +// extractFromTypeMeta extracts pointers to version and kind fields from an object +func extractFromTypeMeta(v reflect.Value, a *genericAccessor) error { + if err := runtime.FieldPtr(v, "APIVersion", &a.apiVersion); err != nil { + return err + } + if err := runtime.FieldPtr(v, "Kind", &a.kind); err != nil { + return err + } + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/metatypes/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/metatypes/types.go new file mode 100644 index 0000000000..a7341cac13 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/metatypes/types.go @@ -0,0 +1,30 @@ +/* +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. +*/ + +// The types defined in this package are used by the meta package to represent +// the in-memory version of objects. We cannot reuse the __internal version of +// API objects because it causes import cycle. +package metatypes + +import "k8s.io/client-go/1.4/pkg/types" + +type OwnerReference struct { + APIVersion string + Kind string + UID types.UID + Name string + Controller *bool +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/multirestmapper.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/multirestmapper.go new file mode 100644 index 0000000000..aa94e53a01 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/multirestmapper.go @@ -0,0 +1,231 @@ +/* +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 meta + +import ( + "fmt" + "strings" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + utilerrors "k8s.io/client-go/1.4/pkg/util/errors" + "k8s.io/client-go/1.4/pkg/util/sets" +) + +// MultiRESTMapper is a wrapper for multiple RESTMappers. +type MultiRESTMapper []RESTMapper + +func (m MultiRESTMapper) String() string { + nested := []string{} + for _, t := range m { + currString := fmt.Sprintf("%v", t) + splitStrings := strings.Split(currString, "\n") + nested = append(nested, strings.Join(splitStrings, "\n\t")) + } + + return fmt.Sprintf("MultiRESTMapper{\n\t%s\n}", strings.Join(nested, "\n\t")) +} + +// ResourceSingularizer converts a REST resource name from plural to singular (e.g., from pods to pod) +// This implementation supports multiple REST schemas and return the first match. +func (m MultiRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { + for _, t := range m { + singular, err = t.ResourceSingularizer(resource) + if err == nil { + return + } + } + return +} + +func (m MultiRESTMapper) ResourcesFor(resource unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) { + allGVRs := []unversioned.GroupVersionResource{} + for _, t := range m { + gvrs, err := t.ResourcesFor(resource) + // ignore "no match" errors, but any other error percolates back up + if IsNoMatchError(err) { + continue + } + if err != nil { + return nil, err + } + + // walk the existing values to de-dup + for _, curr := range gvrs { + found := false + for _, existing := range allGVRs { + if curr == existing { + found = true + break + } + } + + if !found { + allGVRs = append(allGVRs, curr) + } + } + } + + if len(allGVRs) == 0 { + return nil, &NoResourceMatchError{PartialResource: resource} + } + + return allGVRs, nil +} + +func (m MultiRESTMapper) KindsFor(resource unversioned.GroupVersionResource) (gvk []unversioned.GroupVersionKind, err error) { + allGVKs := []unversioned.GroupVersionKind{} + for _, t := range m { + gvks, err := t.KindsFor(resource) + // ignore "no match" errors, but any other error percolates back up + if IsNoMatchError(err) { + continue + } + if err != nil { + return nil, err + } + + // walk the existing values to de-dup + for _, curr := range gvks { + found := false + for _, existing := range allGVKs { + if curr == existing { + found = true + break + } + } + + if !found { + allGVKs = append(allGVKs, curr) + } + } + } + + if len(allGVKs) == 0 { + return nil, &NoResourceMatchError{PartialResource: resource} + } + + return allGVKs, nil +} + +func (m MultiRESTMapper) ResourceFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) { + resources, err := m.ResourcesFor(resource) + if err != nil { + return unversioned.GroupVersionResource{}, err + } + if len(resources) == 1 { + return resources[0], nil + } + + return unversioned.GroupVersionResource{}, &AmbiguousResourceError{PartialResource: resource, MatchingResources: resources} +} + +func (m MultiRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) { + kinds, err := m.KindsFor(resource) + if err != nil { + return unversioned.GroupVersionKind{}, err + } + if len(kinds) == 1 { + return kinds[0], nil + } + + return unversioned.GroupVersionKind{}, &AmbiguousResourceError{PartialResource: resource, MatchingKinds: kinds} +} + +// RESTMapping provides the REST mapping for the resource based on the +// kind and version. This implementation supports multiple REST schemas and +// return the first match. +func (m MultiRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) { + allMappings := []*RESTMapping{} + errors := []error{} + + for _, t := range m { + currMapping, err := t.RESTMapping(gk, versions...) + // ignore "no match" errors, but any other error percolates back up + if IsNoMatchError(err) { + continue + } + if err != nil { + errors = append(errors, err) + continue + } + + allMappings = append(allMappings, currMapping) + } + + // if we got exactly one mapping, then use it even if other requested failed + if len(allMappings) == 1 { + return allMappings[0], nil + } + if len(allMappings) > 1 { + var kinds []unversioned.GroupVersionKind + for _, m := range allMappings { + kinds = append(kinds, m.GroupVersionKind) + } + return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} + } + if len(errors) > 0 { + return nil, utilerrors.NewAggregate(errors) + } + return nil, &NoKindMatchError{PartialKind: gk.WithVersion("")} +} + +// RESTMappings returns all possible RESTMappings for the provided group kind, or an error +// if the type is not recognized. +func (m MultiRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) { + var allMappings []*RESTMapping + var errors []error + + for _, t := range m { + currMappings, err := t.RESTMappings(gk) + // ignore "no match" errors, but any other error percolates back up + if IsNoMatchError(err) { + continue + } + if err != nil { + errors = append(errors, err) + continue + } + allMappings = append(allMappings, currMappings...) + } + if len(errors) > 0 { + return nil, utilerrors.NewAggregate(errors) + } + if len(allMappings) == 0 { + return nil, &NoKindMatchError{PartialKind: gk.WithVersion("")} + } + return allMappings, nil +} + +// AliasesForResource finds the first alias response for the provided mappers. +func (m MultiRESTMapper) AliasesForResource(alias string) ([]string, bool) { + seenAliases := sets.NewString() + allAliases := []string{} + handled := false + + for _, t := range m { + if currAliases, currOk := t.AliasesForResource(alias); currOk { + for _, currAlias := range currAliases { + if !seenAliases.Has(currAlias) { + allAliases = append(allAliases, currAlias) + seenAliases.Insert(currAlias) + } + } + handled = true + } + } + return allAliases, handled +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/priority.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/priority.go new file mode 100644 index 0000000000..0e8168b629 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/priority.go @@ -0,0 +1,226 @@ +/* +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 ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +const ( + AnyGroup = "*" + AnyVersion = "*" + AnyResource = "*" + AnyKind = "*" +) + +// PriorityRESTMapper is a wrapper for automatically choosing a particular Resource or Kind +// when multiple matches are possible +type PriorityRESTMapper struct { + // Delegate is the RESTMapper to use to locate all the Kind and Resource matches + Delegate RESTMapper + + // ResourcePriority is a list of priority patterns to apply to matching resources. + // The list of all matching resources is narrowed based on the patterns until only one remains. + // A pattern with no matches is skipped. A pattern with more than one match uses its + // matches as the list to continue matching against. + ResourcePriority []unversioned.GroupVersionResource + + // KindPriority is a list of priority patterns to apply to matching kinds. + // The list of all matching kinds is narrowed based on the patterns until only one remains. + // A pattern with no matches is skipped. A pattern with more than one match uses its + // matches as the list to continue matching against. + KindPriority []unversioned.GroupVersionKind +} + +func (m PriorityRESTMapper) String() string { + return fmt.Sprintf("PriorityRESTMapper{\n\t%v\n\t%v\n\t%v\n}", m.ResourcePriority, m.KindPriority, m.Delegate) +} + +// ResourceFor finds all resources, then passes them through the ResourcePriority patterns to find a single matching hit. +func (m PriorityRESTMapper) ResourceFor(partiallySpecifiedResource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) { + originalGVRs, err := m.Delegate.ResourcesFor(partiallySpecifiedResource) + if err != nil { + return unversioned.GroupVersionResource{}, err + } + if len(originalGVRs) == 1 { + return originalGVRs[0], nil + } + + remainingGVRs := append([]unversioned.GroupVersionResource{}, originalGVRs...) + for _, pattern := range m.ResourcePriority { + matchedGVRs := []unversioned.GroupVersionResource{} + for _, gvr := range remainingGVRs { + if resourceMatches(pattern, gvr) { + matchedGVRs = append(matchedGVRs, gvr) + } + } + + switch len(matchedGVRs) { + case 0: + // if you have no matches, then nothing matched this pattern just move to the next + continue + case 1: + // one match, return + return matchedGVRs[0], nil + default: + // more than one match, use the matched hits as the list moving to the next pattern. + // this way you can have a series of selection criteria + remainingGVRs = matchedGVRs + } + } + + return unversioned.GroupVersionResource{}, &AmbiguousResourceError{PartialResource: partiallySpecifiedResource, MatchingResources: originalGVRs} +} + +// KindFor finds all kinds, then passes them through the KindPriority patterns to find a single matching hit. +func (m PriorityRESTMapper) KindFor(partiallySpecifiedResource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) { + originalGVKs, err := m.Delegate.KindsFor(partiallySpecifiedResource) + if err != nil { + return unversioned.GroupVersionKind{}, err + } + if len(originalGVKs) == 1 { + return originalGVKs[0], nil + } + + remainingGVKs := append([]unversioned.GroupVersionKind{}, originalGVKs...) + for _, pattern := range m.KindPriority { + matchedGVKs := []unversioned.GroupVersionKind{} + for _, gvr := range remainingGVKs { + if kindMatches(pattern, gvr) { + matchedGVKs = append(matchedGVKs, gvr) + } + } + + switch len(matchedGVKs) { + case 0: + // if you have no matches, then nothing matched this pattern just move to the next + continue + case 1: + // one match, return + return matchedGVKs[0], nil + default: + // more than one match, use the matched hits as the list moving to the next pattern. + // this way you can have a series of selection criteria + remainingGVKs = matchedGVKs + } + } + + return unversioned.GroupVersionKind{}, &AmbiguousResourceError{PartialResource: partiallySpecifiedResource, MatchingKinds: originalGVKs} +} + +func resourceMatches(pattern unversioned.GroupVersionResource, resource unversioned.GroupVersionResource) bool { + if pattern.Group != AnyGroup && pattern.Group != resource.Group { + return false + } + if pattern.Version != AnyVersion && pattern.Version != resource.Version { + return false + } + if pattern.Resource != AnyResource && pattern.Resource != resource.Resource { + return false + } + + return true +} + +func kindMatches(pattern unversioned.GroupVersionKind, kind unversioned.GroupVersionKind) bool { + if pattern.Group != AnyGroup && pattern.Group != kind.Group { + return false + } + if pattern.Version != AnyVersion && pattern.Version != kind.Version { + return false + } + if pattern.Kind != AnyKind && pattern.Kind != kind.Kind { + return false + } + + return true +} + +func (m PriorityRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (mapping *RESTMapping, err error) { + mappings, err := m.Delegate.RESTMappings(gk) + if err != nil { + return nil, err + } + + // any versions the user provides take priority + priorities := m.KindPriority + if len(versions) > 0 { + priorities = make([]unversioned.GroupVersionKind, 0, len(m.KindPriority)+len(versions)) + for _, version := range versions { + gv, err := unversioned.ParseGroupVersion(version) + if err != nil { + return nil, err + } + priorities = append(priorities, gv.WithKind(AnyKind)) + } + priorities = append(priorities, m.KindPriority...) + } + + remaining := append([]*RESTMapping{}, mappings...) + for _, pattern := range priorities { + var matching []*RESTMapping + for _, m := range remaining { + if kindMatches(pattern, m.GroupVersionKind) { + matching = append(matching, m) + } + } + + switch len(matching) { + case 0: + // if you have no matches, then nothing matched this pattern just move to the next + continue + case 1: + // one match, return + return matching[0], nil + default: + // more than one match, use the matched hits as the list moving to the next pattern. + // this way you can have a series of selection criteria + remaining = matching + } + } + if len(remaining) == 1 { + return remaining[0], nil + } + + var kinds []unversioned.GroupVersionKind + for _, m := range mappings { + kinds = append(kinds, m.GroupVersionKind) + } + return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} +} + +func (m PriorityRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) { + return m.Delegate.RESTMappings(gk) +} + +func (m PriorityRESTMapper) AliasesForResource(alias string) (aliases []string, ok bool) { + return m.Delegate.AliasesForResource(alias) +} + +func (m PriorityRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { + return m.Delegate.ResourceSingularizer(resource) +} + +func (m PriorityRESTMapper) ResourcesFor(partiallySpecifiedResource unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) { + return m.Delegate.ResourcesFor(partiallySpecifiedResource) +} + +func (m PriorityRESTMapper) KindsFor(partiallySpecifiedResource unversioned.GroupVersionResource) (gvk []unversioned.GroupVersionKind, err error) { + return m.Delegate.KindsFor(partiallySpecifiedResource) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/restmapper.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/restmapper.go new file mode 100644 index 0000000000..148072c448 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/meta/restmapper.go @@ -0,0 +1,564 @@ +/* +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. +*/ + +// TODO: move everything in this file to pkg/api/rest +package meta + +import ( + "fmt" + "sort" + "strings" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// Implements RESTScope interface +type restScope struct { + name RESTScopeName + paramName string + argumentName string + paramDescription string +} + +func (r *restScope) Name() RESTScopeName { + return r.name +} +func (r *restScope) ParamName() string { + return r.paramName +} +func (r *restScope) ArgumentName() string { + return r.argumentName +} +func (r *restScope) ParamDescription() string { + return r.paramDescription +} + +var RESTScopeNamespace = &restScope{ + name: RESTScopeNameNamespace, + paramName: "namespaces", + argumentName: "namespace", + paramDescription: "object name and auth scope, such as for teams and projects", +} + +var RESTScopeRoot = &restScope{ + name: RESTScopeNameRoot, +} + +// DefaultRESTMapper exposes mappings between the types defined in a +// runtime.Scheme. It assumes that all types defined the provided scheme +// can be mapped with the provided MetadataAccessor and Codec interfaces. +// +// The resource name of a Kind is defined as the lowercase, +// English-plural version of the Kind string. +// When converting from resource to Kind, the singular version of the +// resource name is also accepted for convenience. +// +// TODO: Only accept plural for some operations for increased control? +// (`get pod bar` vs `get pods bar`) +type DefaultRESTMapper struct { + defaultGroupVersions []unversioned.GroupVersion + + resourceToKind map[unversioned.GroupVersionResource]unversioned.GroupVersionKind + kindToPluralResource map[unversioned.GroupVersionKind]unversioned.GroupVersionResource + kindToScope map[unversioned.GroupVersionKind]RESTScope + singularToPlural map[unversioned.GroupVersionResource]unversioned.GroupVersionResource + pluralToSingular map[unversioned.GroupVersionResource]unversioned.GroupVersionResource + + interfacesFunc VersionInterfacesFunc + + // aliasToResource is used for mapping aliases to resources + aliasToResource map[string][]string +} + +func (m *DefaultRESTMapper) String() string { + return fmt.Sprintf("DefaultRESTMapper{kindToPluralResource=%v}", m.kindToPluralResource) +} + +var _ RESTMapper = &DefaultRESTMapper{} + +// VersionInterfacesFunc returns the appropriate typer, and metadata accessor for a +// given api version, or an error if no such api version exists. +type VersionInterfacesFunc func(version unversioned.GroupVersion) (*VersionInterfaces, error) + +// NewDefaultRESTMapper initializes a mapping between Kind and APIVersion +// to a resource name and back based on the objects in a runtime.Scheme +// and the Kubernetes API conventions. Takes a group name, a priority list of the versions +// to search when an object has no default version (set empty to return an error), +// and a function that retrieves the correct metadata for a given version. +func NewDefaultRESTMapper(defaultGroupVersions []unversioned.GroupVersion, f VersionInterfacesFunc) *DefaultRESTMapper { + resourceToKind := make(map[unversioned.GroupVersionResource]unversioned.GroupVersionKind) + kindToPluralResource := make(map[unversioned.GroupVersionKind]unversioned.GroupVersionResource) + kindToScope := make(map[unversioned.GroupVersionKind]RESTScope) + singularToPlural := make(map[unversioned.GroupVersionResource]unversioned.GroupVersionResource) + pluralToSingular := make(map[unversioned.GroupVersionResource]unversioned.GroupVersionResource) + aliasToResource := make(map[string][]string) + // TODO: verify name mappings work correctly when versions differ + + return &DefaultRESTMapper{ + resourceToKind: resourceToKind, + kindToPluralResource: kindToPluralResource, + kindToScope: kindToScope, + defaultGroupVersions: defaultGroupVersions, + singularToPlural: singularToPlural, + pluralToSingular: pluralToSingular, + aliasToResource: aliasToResource, + interfacesFunc: f, + } +} + +func (m *DefaultRESTMapper) Add(kind unversioned.GroupVersionKind, scope RESTScope) { + plural, singular := KindToResource(kind) + + m.singularToPlural[singular] = plural + m.pluralToSingular[plural] = singular + + m.resourceToKind[singular] = kind + m.resourceToKind[plural] = kind + + m.kindToPluralResource[kind] = plural + m.kindToScope[kind] = scope +} + +// unpluralizedSuffixes is a list of resource suffixes that are the same plural and singular +// This is only is only necessary because some bits of code are lazy and don't actually use the RESTMapper like they should. +// TODO eliminate this so that different callers can correctly map to resources. This probably means updating all +// callers to use the RESTMapper they mean. +var unpluralizedSuffixes = []string{ + "endpoints", +} + +// KindToResource converts Kind to a resource name. +// Broken. This method only "sort of" works when used outside of this package. It assumes that Kinds and Resources match +// and they aren't guaranteed to do so. +func KindToResource(kind unversioned.GroupVersionKind) ( /*plural*/ unversioned.GroupVersionResource /*singular*/, unversioned.GroupVersionResource) { + kindName := kind.Kind + if len(kindName) == 0 { + return unversioned.GroupVersionResource{}, unversioned.GroupVersionResource{} + } + singularName := strings.ToLower(kindName) + singular := kind.GroupVersion().WithResource(singularName) + + for _, skip := range unpluralizedSuffixes { + if strings.HasSuffix(singularName, skip) { + return singular, singular + } + } + + switch string(singularName[len(singularName)-1]) { + case "s": + return kind.GroupVersion().WithResource(singularName + "es"), singular + case "y": + return kind.GroupVersion().WithResource(strings.TrimSuffix(singularName, "y") + "ies"), singular + } + + return kind.GroupVersion().WithResource(singularName + "s"), singular +} + +// ResourceSingularizer implements RESTMapper +// It converts a resource name from plural to singular (e.g., from pods to pod) +func (m *DefaultRESTMapper) ResourceSingularizer(resourceType string) (string, error) { + partialResource := unversioned.GroupVersionResource{Resource: resourceType} + resources, err := m.ResourcesFor(partialResource) + if err != nil { + return resourceType, err + } + + singular := unversioned.GroupVersionResource{} + for _, curr := range resources { + currSingular, ok := m.pluralToSingular[curr] + if !ok { + continue + } + if singular.IsEmpty() { + singular = currSingular + continue + } + + if currSingular.Resource != singular.Resource { + return resourceType, fmt.Errorf("multiple possibile singular resources (%v) found for %v", resources, resourceType) + } + } + + if singular.IsEmpty() { + return resourceType, fmt.Errorf("no singular of resource %v has been defined", resourceType) + } + + return singular.Resource, nil +} + +// coerceResourceForMatching makes the resource lower case and converts internal versions to unspecified (legacy behavior) +func coerceResourceForMatching(resource unversioned.GroupVersionResource) unversioned.GroupVersionResource { + resource.Resource = strings.ToLower(resource.Resource) + if resource.Version == runtime.APIVersionInternal { + resource.Version = "" + } + + return resource +} + +func (m *DefaultRESTMapper) ResourcesFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) { + resource := coerceResourceForMatching(input) + + hasResource := len(resource.Resource) > 0 + hasGroup := len(resource.Group) > 0 + hasVersion := len(resource.Version) > 0 + + if !hasResource { + return nil, fmt.Errorf("a resource must be present, got: %v", resource) + } + + ret := []unversioned.GroupVersionResource{} + switch { + // fully qualified. Find the exact match + case hasGroup && hasVersion: + for plural, singular := range m.pluralToSingular { + if singular == resource { + ret = append(ret, plural) + break + } + if plural == resource { + ret = append(ret, plural) + break + } + } + + case hasGroup: + requestedGroupResource := resource.GroupResource() + for plural, singular := range m.pluralToSingular { + if singular.GroupResource() == requestedGroupResource { + ret = append(ret, plural) + } + if plural.GroupResource() == requestedGroupResource { + ret = append(ret, plural) + } + } + + case hasVersion: + for plural, singular := range m.pluralToSingular { + if singular.Version == resource.Version && singular.Resource == resource.Resource { + ret = append(ret, plural) + } + if plural.Version == resource.Version && plural.Resource == resource.Resource { + ret = append(ret, plural) + } + } + + default: + for plural, singular := range m.pluralToSingular { + if singular.Resource == resource.Resource { + ret = append(ret, plural) + } + if plural.Resource == resource.Resource { + ret = append(ret, plural) + } + } + } + + if len(ret) == 0 { + return nil, &NoResourceMatchError{PartialResource: resource} + } + + sort.Sort(resourceByPreferredGroupVersion{ret, m.defaultGroupVersions}) + return ret, nil +} + +func (m *DefaultRESTMapper) ResourceFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) { + resources, err := m.ResourcesFor(resource) + if err != nil { + return unversioned.GroupVersionResource{}, err + } + if len(resources) == 1 { + return resources[0], nil + } + + return unversioned.GroupVersionResource{}, &AmbiguousResourceError{PartialResource: resource, MatchingResources: resources} +} + +func (m *DefaultRESTMapper) KindsFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionKind, error) { + resource := coerceResourceForMatching(input) + + hasResource := len(resource.Resource) > 0 + hasGroup := len(resource.Group) > 0 + hasVersion := len(resource.Version) > 0 + + if !hasResource { + return nil, fmt.Errorf("a resource must be present, got: %v", resource) + } + + ret := []unversioned.GroupVersionKind{} + switch { + // fully qualified. Find the exact match + case hasGroup && hasVersion: + kind, exists := m.resourceToKind[resource] + if exists { + ret = append(ret, kind) + } + + case hasGroup: + requestedGroupResource := resource.GroupResource() + for currResource, currKind := range m.resourceToKind { + if currResource.GroupResource() == requestedGroupResource { + ret = append(ret, currKind) + } + } + + case hasVersion: + for currResource, currKind := range m.resourceToKind { + if currResource.Version == resource.Version && currResource.Resource == resource.Resource { + ret = append(ret, currKind) + } + } + + default: + for currResource, currKind := range m.resourceToKind { + if currResource.Resource == resource.Resource { + ret = append(ret, currKind) + } + } + } + + if len(ret) == 0 { + return nil, &NoResourceMatchError{PartialResource: input} + } + + sort.Sort(kindByPreferredGroupVersion{ret, m.defaultGroupVersions}) + return ret, nil +} + +func (m *DefaultRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) { + kinds, err := m.KindsFor(resource) + if err != nil { + return unversioned.GroupVersionKind{}, err + } + if len(kinds) == 1 { + return kinds[0], nil + } + + return unversioned.GroupVersionKind{}, &AmbiguousResourceError{PartialResource: resource, MatchingKinds: kinds} +} + +type kindByPreferredGroupVersion struct { + list []unversioned.GroupVersionKind + sortOrder []unversioned.GroupVersion +} + +func (o kindByPreferredGroupVersion) Len() int { return len(o.list) } +func (o kindByPreferredGroupVersion) Swap(i, j int) { o.list[i], o.list[j] = o.list[j], o.list[i] } +func (o kindByPreferredGroupVersion) Less(i, j int) bool { + lhs := o.list[i] + rhs := o.list[j] + if lhs == rhs { + return false + } + + if lhs.GroupVersion() == rhs.GroupVersion() { + return lhs.Kind < rhs.Kind + } + + // otherwise, the difference is in the GroupVersion, so we need to sort with respect to the preferred order + lhsIndex := -1 + rhsIndex := -1 + + for i := range o.sortOrder { + if o.sortOrder[i] == lhs.GroupVersion() { + lhsIndex = i + } + if o.sortOrder[i] == rhs.GroupVersion() { + rhsIndex = i + } + } + + if rhsIndex == -1 { + return true + } + + return lhsIndex < rhsIndex +} + +type resourceByPreferredGroupVersion struct { + list []unversioned.GroupVersionResource + sortOrder []unversioned.GroupVersion +} + +func (o resourceByPreferredGroupVersion) Len() int { return len(o.list) } +func (o resourceByPreferredGroupVersion) Swap(i, j int) { o.list[i], o.list[j] = o.list[j], o.list[i] } +func (o resourceByPreferredGroupVersion) Less(i, j int) bool { + lhs := o.list[i] + rhs := o.list[j] + if lhs == rhs { + return false + } + + if lhs.GroupVersion() == rhs.GroupVersion() { + return lhs.Resource < rhs.Resource + } + + // otherwise, the difference is in the GroupVersion, so we need to sort with respect to the preferred order + lhsIndex := -1 + rhsIndex := -1 + + for i := range o.sortOrder { + if o.sortOrder[i] == lhs.GroupVersion() { + lhsIndex = i + } + if o.sortOrder[i] == rhs.GroupVersion() { + rhsIndex = i + } + } + + if rhsIndex == -1 { + return true + } + + return lhsIndex < rhsIndex +} + +// RESTMapping returns a struct representing the resource path and conversion interfaces a +// RESTClient should use to operate on the provided group/kind in order of versions. If a version search +// order is not provided, the search order provided to DefaultRESTMapper will be used to resolve which +// version should be used to access the named group/kind. +// TODO: consider refactoring to use RESTMappings in a way that preserves version ordering and preference +func (m *DefaultRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) { + // Pick an appropriate version + var gvk *unversioned.GroupVersionKind + hadVersion := false + for _, version := range versions { + if len(version) == 0 || version == runtime.APIVersionInternal { + continue + } + + currGVK := gk.WithVersion(version) + hadVersion = true + if _, ok := m.kindToPluralResource[currGVK]; ok { + gvk = &currGVK + break + } + } + // Use the default preferred versions + if !hadVersion && (gvk == nil) { + for _, gv := range m.defaultGroupVersions { + if gv.Group != gk.Group { + continue + } + + currGVK := gk.WithVersion(gv.Version) + if _, ok := m.kindToPluralResource[currGVK]; ok { + gvk = &currGVK + break + } + } + } + if gvk == nil { + return nil, &NoKindMatchError{PartialKind: gk.WithVersion("")} + } + + // Ensure we have a REST mapping + resource, ok := m.kindToPluralResource[*gvk] + if !ok { + found := []unversioned.GroupVersion{} + for _, gv := range m.defaultGroupVersions { + if _, ok := m.kindToPluralResource[*gvk]; ok { + found = append(found, gv) + } + } + if len(found) > 0 { + return nil, fmt.Errorf("object with kind %q exists in versions %v, not %v", gvk.Kind, found, gvk.GroupVersion().String()) + } + return nil, fmt.Errorf("the provided version %q and kind %q cannot be mapped to a supported object", gvk.GroupVersion().String(), gvk.Kind) + } + + // Ensure we have a REST scope + scope, ok := m.kindToScope[*gvk] + if !ok { + return nil, fmt.Errorf("the provided version %q and kind %q cannot be mapped to a supported scope", gvk.GroupVersion().String(), gvk.Kind) + } + + interfaces, err := m.interfacesFunc(gvk.GroupVersion()) + if err != nil { + return nil, fmt.Errorf("the provided version %q has no relevant versions", gvk.GroupVersion().String()) + } + + retVal := &RESTMapping{ + Resource: resource.Resource, + GroupVersionKind: *gvk, + Scope: scope, + + ObjectConvertor: interfaces.ObjectConvertor, + MetadataAccessor: interfaces.MetadataAccessor, + } + + return retVal, nil +} + +// RESTMappings returns the RESTMappings for the provided group kind in a rough internal preferred order. If no +// kind is found it will return a NoResourceMatchError. +func (m *DefaultRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) { + // Use the default preferred versions + var mappings []*RESTMapping + for _, gv := range m.defaultGroupVersions { + if gv.Group != gk.Group { + continue + } + + gvk := gk.WithVersion(gv.Version) + gvr, ok := m.kindToPluralResource[gvk] + if !ok { + continue + } + + // Ensure we have a REST scope + scope, ok := m.kindToScope[gvk] + if !ok { + return nil, fmt.Errorf("the provided version %q and kind %q cannot be mapped to a supported scope", gvk.GroupVersion(), gvk.Kind) + } + + interfaces, err := m.interfacesFunc(gvk.GroupVersion()) + if err != nil { + return nil, fmt.Errorf("the provided version %q has no relevant versions", gvk.GroupVersion().String()) + } + + mappings = append(mappings, &RESTMapping{ + Resource: gvr.Resource, + GroupVersionKind: gvk, + Scope: scope, + + ObjectConvertor: interfaces.ObjectConvertor, + MetadataAccessor: interfaces.MetadataAccessor, + }) + } + + if len(mappings) == 0 { + return nil, &NoResourceMatchError{PartialResource: unversioned.GroupVersionResource{Group: gk.Group, Resource: gk.Kind}} + } + return mappings, nil +} + +// AddResourceAlias maps aliases to resources +func (m *DefaultRESTMapper) AddResourceAlias(alias string, resources ...string) { + if len(resources) == 0 { + return + } + m.aliasToResource[alias] = resources +} + +// AliasesForResource returns whether a resource has an alias or not +func (m *DefaultRESTMapper) AliasesForResource(alias string) ([]string, bool) { + if res, ok := m.aliasToResource[alias]; ok { + return res, true + } + return nil, false +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/node_example.json b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/node_example.json new file mode 100644 index 0000000000..260183484f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/node_example.json @@ -0,0 +1,49 @@ +{ + "kind": "Node", + "apiVersion": "v1", + "metadata": { + "name": "e2e-test-wojtekt-minion-etd6", + "selfLink": "/api/v1/nodes/e2e-test-wojtekt-minion-etd6", + "uid": "a7e89222-e8e5-11e4-8fde-42010af09327", + "resourceVersion": "379", + "creationTimestamp": "2015-04-22T11:49:39Z" + }, + "spec": { + "externalID": "15488322946290398375" + }, + "status": { + "capacity": { + "cpu": "1", + "memory": "1745152Ki" + }, + "conditions": [ + { + "type": "Ready", + "status": "True", + "lastHeartbeatTime": "2015-04-22T11:58:17Z", + "lastTransitionTime": "2015-04-22T11:49:52Z", + "reason": "kubelet is posting ready status" + } + ], + "addresses": [ + { + "type": "ExternalIP", + "address": "104.197.49.213" + }, + { + "type": "LegacyHostIP", + "address": "104.197.20.11" + } + ], + "nodeInfo": { + "machineID": "", + "systemUUID": "D59FA3FA-7B5B-7287-5E1A-1D79F13CB577", + "bootID": "44a832f3-8cfb-4de5-b7d2-d66030b6cd95", + "kernelVersion": "3.16.0-0.bpo.4-amd64", + "osImage": "Debian GNU/Linux 7 (wheezy)", + "containerRuntimeVersion": "docker://1.5.0", + "kubeletVersion": "v0.15.0-484-g0c8ee980d705a3-dirty", + "kubeProxyVersion": "v0.15.0-484-g0c8ee980d705a3-dirty" + } + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/pod/util.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/pod/util.go new file mode 100644 index 0000000000..7c95398893 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/pod/util.go @@ -0,0 +1,61 @@ +/* +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 pod + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/util/intstr" +) + +const ( + // TODO: to be de!eted after v1.3 is released. PodSpec has a dedicated Hostname field. + // The annotation value is a string specifying the hostname to be used for the pod e.g 'my-webserver-1' + PodHostnameAnnotation = "pod.beta.kubernetes.io/hostname" + + // TODO: to be de!eted after v1.3 is released. PodSpec has a dedicated Subdomain field. + // The annotation value is a string specifying the subdomain e.g. "my-web-service" + // If specified, on the the pod itself, ".my-web-service..svc." would resolve to + // the pod's IP. + // If there is a headless service named "my-web-service" in the same namespace as the pod, then, + // .my-web-service..svc." would be resolved by the cluster DNS Server. + PodSubdomainAnnotation = "pod.beta.kubernetes.io/subdomain" +) + +// FindPort locates the container port for the given pod and portName. If the +// targetPort is a number, use that. If the targetPort is a string, look that +// string up in all named ports in all containers in the target pod. If no +// match is found, fail. +func FindPort(pod *api.Pod, svcPort *api.ServicePort) (int, error) { + portName := svcPort.TargetPort + switch portName.Type { + case intstr.String: + name := portName.StrVal + for _, container := range pod.Spec.Containers { + for _, port := range container.Ports { + if port.Name == name && port.Protocol == svcPort.Protocol { + return int(port.ContainerPort), nil + } + } + } + case intstr.Int: + return portName.IntValue(), nil + } + + return 0, fmt.Errorf("no suitable port for manifest: %s", pod.UID) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/ref.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/ref.go new file mode 100644 index 0000000000..3e49540a40 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/ref.go @@ -0,0 +1,132 @@ +/* +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 api + +import ( + "errors" + "fmt" + "net/url" + "strings" + + "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/runtime" +) + +var ( + // Errors that could be returned by GetReference. + ErrNilObject = errors.New("can't reference a nil object") + ErrNoSelfLink = errors.New("selfLink was empty, can't make reference") +) + +// GetReference returns an ObjectReference which refers to the given +// object, or an error if the object doesn't follow the conventions +// that would allow this. +// TODO: should take a meta.Interface see http://issue.k8s.io/7127 +func GetReference(obj runtime.Object) (*ObjectReference, error) { + if obj == nil { + return nil, ErrNilObject + } + if ref, ok := obj.(*ObjectReference); ok { + // Don't make a reference to a reference. + return ref, nil + } + + gvk := obj.GetObjectKind().GroupVersionKind() + + // if the object referenced is actually persisted, we can just get kind from meta + // if we are building an object reference to something not yet persisted, we should fallback to scheme + kind := gvk.Kind + if len(kind) == 0 { + // TODO: this is wrong + gvks, _, err := Scheme.ObjectKinds(obj) + if err != nil { + return nil, err + } + kind = gvks[0].Kind + } + + // An object that implements only List has enough metadata to build a reference + var listMeta meta.List + objectMeta, err := meta.Accessor(obj) + if err != nil { + listMeta, err = meta.ListAccessor(obj) + if err != nil { + return nil, err + } + } else { + listMeta = objectMeta + } + + // if the object referenced is actually persisted, we can also get version from meta + version := gvk.GroupVersion().String() + if len(version) == 0 { + selfLink := listMeta.GetSelfLink() + if len(selfLink) == 0 { + return nil, ErrNoSelfLink + } + selfLinkUrl, err := url.Parse(selfLink) + if err != nil { + return nil, err + } + // example paths: ///* + parts := strings.Split(selfLinkUrl.Path, "/") + if len(parts) < 3 { + return nil, fmt.Errorf("unexpected self link format: '%v'; got version '%v'", selfLink, version) + } + version = parts[2] + } + + // only has list metadata + if objectMeta == nil { + return &ObjectReference{ + Kind: kind, + APIVersion: version, + ResourceVersion: listMeta.GetResourceVersion(), + }, nil + } + + return &ObjectReference{ + Kind: kind, + APIVersion: version, + Name: objectMeta.GetName(), + Namespace: objectMeta.GetNamespace(), + UID: objectMeta.GetUID(), + ResourceVersion: objectMeta.GetResourceVersion(), + }, nil +} + +// GetPartialReference is exactly like GetReference, but allows you to set the FieldPath. +func GetPartialReference(obj runtime.Object, fieldPath string) (*ObjectReference, error) { + ref, err := GetReference(obj) + if err != nil { + return nil, err + } + ref.FieldPath = fieldPath + return ref, nil +} + +// IsAnAPIObject allows clients to preemptively get a reference to an API object and pass it to places that +// intend only to get a reference to that object. This simplifies the event recording interface. +func (obj *ObjectReference) SetGroupVersionKind(gvk unversioned.GroupVersionKind) { + obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() +} +func (obj *ObjectReference) GroupVersionKind() unversioned.GroupVersionKind { + return unversioned.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) +} + +func (obj *ObjectReference) GetObjectKind() unversioned.ObjectKind { return obj } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/register.go new file mode 100644 index 0000000000..00b9febd70 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/register.go @@ -0,0 +1,139 @@ +/* +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 api + +import ( + "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" +) + +// Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered. +// NOTE: If you are copying this file to start a new api group, STOP! Copy the +// extensions group instead. This Scheme is special and should appear ONLY in +// the api group, unless you really know what you're doing. +// TODO(lavalamp): make the above error impossible. +var Scheme = runtime.NewScheme() + +// Codecs provides access to encoding and decoding for the scheme +var Codecs = serializer.NewCodecFactory(Scheme) + +// GroupName is the group name use in this package +const GroupName = "" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} + +// Unversioned is group version for unversioned API objects +// TODO: this should be v1 probably +var Unversioned = unversioned.GroupVersion{Group: "", Version: "v1"} + +// ParameterCodec handles versioning of objects that are converted to query parameters. +var ParameterCodec = runtime.NewParameterCodec(Scheme) + +// Kind takes an unqualified kind and returns back 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 +func Resource(resource string) unversioned.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) + +func init() { + // TODO(lavalamp): move this call to scheme builder above. Can't + // remove it from here because lots of people inapropriately rely on it + // (specifically the unversioned time conversion). Can't have it in + // both places because then it gets double registered. Consequence of + // current state is that it only ever gets registered in the main + // api.Scheme, even though everyone that uses anything from unversioned + // needs these. + if err := addConversionFuncs(Scheme); err != nil { + // Programmer error. + panic(err) + } +} + +func addKnownTypes(scheme *runtime.Scheme) error { + if err := scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { + return err + } + scheme.AddKnownTypes(SchemeGroupVersion, + &Pod{}, + &PodList{}, + &PodStatusResult{}, + &PodTemplate{}, + &PodTemplateList{}, + &ReplicationControllerList{}, + &ReplicationController{}, + &ServiceList{}, + &Service{}, + &ServiceProxyOptions{}, + &NodeList{}, + &Node{}, + &NodeProxyOptions{}, + &Endpoints{}, + &EndpointsList{}, + &Binding{}, + &Event{}, + &EventList{}, + &List{}, + &LimitRange{}, + &LimitRangeList{}, + &ResourceQuota{}, + &ResourceQuotaList{}, + &Namespace{}, + &NamespaceList{}, + &ServiceAccount{}, + &ServiceAccountList{}, + &Secret{}, + &SecretList{}, + &PersistentVolume{}, + &PersistentVolumeList{}, + &PersistentVolumeClaim{}, + &PersistentVolumeClaimList{}, + &DeleteOptions{}, + &ListOptions{}, + &PodAttachOptions{}, + &PodLogOptions{}, + &PodExecOptions{}, + &PodProxyOptions{}, + &ComponentStatus{}, + &ComponentStatusList{}, + &SerializedReference{}, + &RangeAllocation{}, + &ConfigMap{}, + &ConfigMapList{}, + ) + + // Register Unversioned types under their own special group + scheme.AddUnversionedTypes(Unversioned, + &unversioned.ExportOptions{}, + &unversioned.Status{}, + &unversioned.APIVersions{}, + &unversioned.APIGroupList{}, + &unversioned.APIGroup{}, + &unversioned.APIResourceList{}, + ) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/replication_controller_example.json b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/replication_controller_example.json new file mode 100644 index 0000000000..5c3c4fe71c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/replication_controller_example.json @@ -0,0 +1,82 @@ +{ + "kind": "ReplicationController", + "apiVersion": "v1", + "metadata": { + "name": "elasticsearch-logging-controller", + "namespace": "default", + "selfLink": "/api/v1/namespaces/default/replicationcontrollers/elasticsearch-logging-controller", + "uid": "aa76f162-e8e5-11e4-8fde-42010af09327", + "resourceVersion": "98", + "creationTimestamp": "2015-04-22T11:49:43Z", + "labels": { + "kubernetes.io/cluster-service": "true", + "name": "elasticsearch-logging" + } + }, + "spec": { + "replicas": 1, + "selector": { + "name": "elasticsearch-logging" + }, + "template": { + "metadata": { + "creationTimestamp": null, + "labels": { + "kubernetes.io/cluster-service": "true", + "name": "elasticsearch-logging" + } + }, + "spec": { + "volumes": [ + { + "name": "es-persistent-storage", + "hostPath": null, + "emptyDir": { + "medium": "" + }, + "gcePersistentDisk": null, + "awsElasticBlockStore": null, + "gitRepo": null, + "secret": null, + "nfs": null, + "iscsi": null, + "glusterfs": null + } + ], + "containers": [ + { + "name": "elasticsearch-logging", + "image": "gcr.io/google_containers/elasticsearch:1.0", + "ports": [ + { + "name": "db", + "containerPort": 9200, + "protocol": "TCP" + }, + { + "name": "transport", + "containerPort": 9300, + "protocol": "TCP" + } + ], + "resources": {}, + "volumeMounts": [ + { + "name": "es-persistent-storage", + "mountPath": "/data" + } + ], + "terminationMessagePath": "/dev/termination-log", + "imagePullPolicy": "IfNotPresent", + "capabilities": {} + } + ], + "restartPolicy": "Always", + "dnsPolicy": "ClusterFirst" + } + } + }, + "status": { + "replicas": 1 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/requestcontext.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/requestcontext.go new file mode 100644 index 0000000000..14983b2d41 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/requestcontext.go @@ -0,0 +1,115 @@ +/* +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 api + +import ( + "errors" + "net/http" + "sync" +) + +// RequestContextMapper keeps track of the context associated with a particular request +type RequestContextMapper interface { + // Get returns the context associated with the given request (if any), and true if the request has an associated context, and false if it does not. + Get(req *http.Request) (Context, bool) + // Update maps the request to the given context. If no context was previously associated with the request, an error is returned. + // Update should only be called with a descendant context of the previously associated context. + // Updating to an unrelated context may return an error in the future. + // The context associated with a request should only be updated by a limited set of callers. + // Valid examples include the authentication layer, or an audit/tracing layer. + Update(req *http.Request, context Context) error +} + +type requestContextMap struct { + contexts map[*http.Request]Context + lock sync.Mutex +} + +// NewRequestContextMapper returns a new RequestContextMapper. +// The returned mapper must be added as a request filter using NewRequestContextFilter. +func NewRequestContextMapper() RequestContextMapper { + return &requestContextMap{ + contexts: make(map[*http.Request]Context), + } +} + +// Get returns the context associated with the given request (if any), and true if the request has an associated context, and false if it does not. +// Get will only return a valid context when called from inside the filter chain set up by NewRequestContextFilter() +func (c *requestContextMap) Get(req *http.Request) (Context, bool) { + c.lock.Lock() + defer c.lock.Unlock() + context, ok := c.contexts[req] + return context, ok +} + +// Update maps the request to the given context. +// If no context was previously associated with the request, an error is returned and the context is ignored. +func (c *requestContextMap) Update(req *http.Request, context Context) error { + c.lock.Lock() + defer c.lock.Unlock() + if _, ok := c.contexts[req]; !ok { + return errors.New("No context associated") + } + // TODO: ensure the new context is a descendant of the existing one + c.contexts[req] = context + return nil +} + +// init maps the request to the given context and returns true if there was no context associated with the request already. +// if a context was already associated with the request, it ignores the given context and returns false. +// init is intentionally unexported to ensure that all init calls are paired with a remove after a request is handled +func (c *requestContextMap) init(req *http.Request, context Context) bool { + c.lock.Lock() + defer c.lock.Unlock() + if _, exists := c.contexts[req]; exists { + return false + } + c.contexts[req] = context + return true +} + +// remove is intentionally unexported to ensure that the context is not removed until a request is handled +func (c *requestContextMap) remove(req *http.Request) { + c.lock.Lock() + defer c.lock.Unlock() + delete(c.contexts, req) +} + +// NewRequestContextFilter ensures there is a Context object associated with the request before calling the passed handler. +// After the passed handler runs, the context is cleaned up. +func NewRequestContextFilter(mapper RequestContextMapper, handler http.Handler) (http.Handler, error) { + if mapper, ok := mapper.(*requestContextMap); ok { + return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { + if mapper.init(req, NewContext()) { + // If we were the ones to successfully initialize, pair with a remove + defer mapper.remove(req) + } + handler.ServeHTTP(w, req) + }), nil + } else { + return handler, errors.New("Unknown RequestContextMapper implementation.") + } + +} + +// IsEmpty returns true if there are no contexts registered, or an error if it could not be determined. Intended for use by tests. +func IsEmpty(requestsToContexts RequestContextMapper) (bool, error) { + if requestsToContexts, ok := requestsToContexts.(*requestContextMap); ok { + return len(requestsToContexts.contexts) == 0, nil + } + return true, errors.New("Unknown RequestContextMapper implementation") +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/amount.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/amount.go new file mode 100644 index 0000000000..2d3012c875 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/amount.go @@ -0,0 +1,298 @@ +/* +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 resource + +import ( + "math/big" + "strconv" + + inf "gopkg.in/inf.v0" +) + +// Scale is used for getting and setting the base-10 scaled value. +// Base-2 scales are omitted for mathematical simplicity. +// See Quantity.ScaledValue for more details. +type Scale int32 + +// infScale adapts a Scale value to an inf.Scale value. +func (s Scale) infScale() inf.Scale { + return inf.Scale(-s) // inf.Scale is upside-down +} + +const ( + Nano Scale = -9 + Micro Scale = -6 + Milli Scale = -3 + Kilo Scale = 3 + Mega Scale = 6 + Giga Scale = 9 + Tera Scale = 12 + Peta Scale = 15 + Exa Scale = 18 +) + +var ( + Zero = int64Amount{} + + // Used by quantity strings - treat as read only + zeroBytes = []byte("0") +) + +// int64Amount represents a fixed precision numerator and arbitrary scale exponent. It is faster +// than operations on inf.Dec for values that can be represented as int64. +type int64Amount struct { + value int64 + scale Scale +} + +// Sign returns 0 if the value is zero, -1 if it is less than 0, or 1 if it is greater than 0. +func (a int64Amount) Sign() int { + switch { + case a.value == 0: + return 0 + case a.value > 0: + return 1 + default: + return -1 + } +} + +// AsInt64 returns the current amount as an int64 at scale 0, or false if the value cannot be +// represented in an int64 OR would result in a loss of precision. This method is intended as +// an optimization to avoid calling AsDec. +func (a int64Amount) AsInt64() (int64, bool) { + if a.scale == 0 { + return a.value, true + } + if a.scale < 0 { + // TODO: attempt to reduce factors, although it is assumed that factors are reduced prior + // to the int64Amount being created. + return 0, false + } + return positiveScaleInt64(a.value, a.scale) +} + +// AsScaledInt64 returns an int64 representing the value of this amount at the specified scale, +// rounding up, or false if that would result in overflow. (1e20).AsScaledInt64(1) would result +// in overflow because 1e19 is not representable as an int64. Note that setting a scale larger +// than the current value may result in loss of precision - i.e. (1e-6).AsScaledInt64(0) would +// return 1, because 0.000001 is rounded up to 1. +func (a int64Amount) AsScaledInt64(scale Scale) (result int64, ok bool) { + if a.scale < scale { + result, _ = negativeScaleInt64(a.value, scale-a.scale) + return result, true + } + return positiveScaleInt64(a.value, a.scale-scale) +} + +// AsDec returns an inf.Dec representation of this value. +func (a int64Amount) AsDec() *inf.Dec { + var base inf.Dec + base.SetUnscaled(a.value) + base.SetScale(inf.Scale(-a.scale)) + return &base +} + +// Cmp returns 0 if a and b are equal, 1 if a is greater than b, or -1 if a is less than b. +func (a int64Amount) Cmp(b int64Amount) int { + switch { + case a.scale == b.scale: + // compare only the unscaled portion + case a.scale > b.scale: + result, remainder, exact := divideByScaleInt64(b.value, a.scale-b.scale) + if !exact { + return a.AsDec().Cmp(b.AsDec()) + } + if result == a.value { + switch { + case remainder == 0: + return 0 + case remainder > 0: + return -1 + default: + return 1 + } + } + b.value = result + default: + result, remainder, exact := divideByScaleInt64(a.value, b.scale-a.scale) + if !exact { + return a.AsDec().Cmp(b.AsDec()) + } + if result == b.value { + switch { + case remainder == 0: + return 0 + case remainder > 0: + return 1 + default: + return -1 + } + } + a.value = result + } + + switch { + case a.value == b.value: + return 0 + case a.value < b.value: + return -1 + default: + return 1 + } +} + +// Add adds two int64Amounts together, matching scales. It will return false and not mutate +// a if overflow or underflow would result. +func (a *int64Amount) Add(b int64Amount) bool { + switch { + case b.value == 0: + return true + case a.value == 0: + a.value = b.value + a.scale = b.scale + return true + case a.scale == b.scale: + c, ok := int64Add(a.value, b.value) + if !ok { + return false + } + a.value = c + case a.scale > b.scale: + c, ok := positiveScaleInt64(a.value, a.scale-b.scale) + if !ok { + return false + } + c, ok = int64Add(c, b.value) + if !ok { + return false + } + a.scale = b.scale + a.value = c + default: + c, ok := positiveScaleInt64(b.value, b.scale-a.scale) + if !ok { + return false + } + c, ok = int64Add(a.value, c) + if !ok { + return false + } + a.value = c + } + return true +} + +// Sub removes the value of b from the current amount, or returns false if underflow would result. +func (a *int64Amount) Sub(b int64Amount) bool { + return a.Add(int64Amount{value: -b.value, scale: b.scale}) +} + +// AsScale adjusts this amount to set a minimum scale, rounding up, and returns true iff no precision +// was lost. (1.1e5).AsScale(5) would return 1.1e5, but (1.1e5).AsScale(6) would return 1e6. +func (a int64Amount) AsScale(scale Scale) (int64Amount, bool) { + if a.scale >= scale { + return a, true + } + result, exact := negativeScaleInt64(a.value, scale-a.scale) + return int64Amount{value: result, scale: scale}, exact +} + +// AsCanonicalBytes accepts a buffer to write the base-10 string value of this field to, and returns +// either that buffer or a larger buffer and the current exponent of the value. The value is adjusted +// until the exponent is a multiple of 3 - i.e. 1.1e5 would return "110", 3. +func (a int64Amount) AsCanonicalBytes(out []byte) (result []byte, exponent int32) { + mantissa := a.value + exponent = int32(a.scale) + + amount, times := removeInt64Factors(mantissa, 10) + exponent += int32(times) + + // make sure exponent is a multiple of 3 + var ok bool + switch exponent % 3 { + case 1, -2: + amount, ok = int64MultiplyScale10(amount) + if !ok { + return infDecAmount{a.AsDec()}.AsCanonicalBytes(out) + } + exponent = exponent - 1 + case 2, -1: + amount, ok = int64MultiplyScale100(amount) + if !ok { + return infDecAmount{a.AsDec()}.AsCanonicalBytes(out) + } + exponent = exponent - 2 + } + return strconv.AppendInt(out, amount, 10), exponent +} + +// AsCanonicalBase1024Bytes accepts a buffer to write the base-1024 string value of this field to, and returns +// either that buffer or a larger buffer and the current exponent of the value. 2048 is 2 * 1024 ^ 1 and would +// return []byte("2048"), 1. +func (a int64Amount) AsCanonicalBase1024Bytes(out []byte) (result []byte, exponent int32) { + value, ok := a.AsScaledInt64(0) + if !ok { + return infDecAmount{a.AsDec()}.AsCanonicalBase1024Bytes(out) + } + amount, exponent := removeInt64Factors(value, 1024) + return strconv.AppendInt(out, amount, 10), exponent +} + +// infDecAmount implements common operations over an inf.Dec that are specific to the quantity +// representation. +type infDecAmount struct { + *inf.Dec +} + +// AsScale adjusts this amount to set a minimum scale, rounding up, and returns true iff no precision +// was lost. (1.1e5).AsScale(5) would return 1.1e5, but (1.1e5).AsScale(6) would return 1e6. +func (a infDecAmount) AsScale(scale Scale) (infDecAmount, bool) { + tmp := &inf.Dec{} + tmp.Round(a.Dec, scale.infScale(), inf.RoundUp) + return infDecAmount{tmp}, tmp.Cmp(a.Dec) == 0 +} + +// AsCanonicalBytes accepts a buffer to write the base-10 string value of this field to, and returns +// either that buffer or a larger buffer and the current exponent of the value. The value is adjusted +// until the exponent is a multiple of 3 - i.e. 1.1e5 would return "110", 3. +func (a infDecAmount) AsCanonicalBytes(out []byte) (result []byte, exponent int32) { + mantissa := a.Dec.UnscaledBig() + exponent = int32(-a.Dec.Scale()) + amount := big.NewInt(0).Set(mantissa) + // move all factors of 10 into the exponent for easy reasoning + amount, times := removeBigIntFactors(amount, bigTen) + exponent += times + + // make sure exponent is a multiple of 3 + for exponent%3 != 0 { + amount.Mul(amount, bigTen) + exponent-- + } + + return append(out, amount.String()...), exponent +} + +// AsCanonicalBase1024Bytes accepts a buffer to write the base-1024 string value of this field to, and returns +// either that buffer or a larger buffer and the current exponent of the value. 2048 is 2 * 1024 ^ 1 and would +// return []byte("2048"), 1. +func (a infDecAmount) AsCanonicalBase1024Bytes(out []byte) (result []byte, exponent int32) { + tmp := &inf.Dec{} + tmp.Round(a.Dec, 0, inf.RoundUp) + amount, exponent := removeBigIntFactors(tmp.UnscaledBig(), big1024) + return append(out, amount.String()...), exponent +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/generated.pb.go new file mode 100644 index 0000000000..76f7204ea9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/generated.pb.go @@ -0,0 +1,69 @@ +/* +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/api/resource/generated.proto +// DO NOT EDIT! + +/* + Package resource is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/api/resource/generated.proto + + It has these top-level messages: + Quantity +*/ +package resource + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +// 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 *Quantity) Reset() { *m = Quantity{} } +func (*Quantity) ProtoMessage() {} +func (*Quantity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func init() { + proto.RegisterType((*Quantity)(nil), "k8s.io.client-go.1.4.pkg.api.resource.Quantity") +} + +var fileDescriptorGenerated = []byte{ + // 222 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0xca, 0xb6, 0x28, 0xd6, + 0xcb, 0xcc, 0xd7, 0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xca, 0x4b, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, 0xc8, + 0x4e, 0xd7, 0x4f, 0x2c, 0xc8, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x4f, + 0x4f, 0xcd, 0x4b, 0x2d, 0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x82, 0xe8, 0xd1, 0x43, 0xe8, 0xd1, 0x03, 0xea, 0xd1, 0x03, 0xea, 0xd1, 0x83, 0xe9, 0x91, 0xd2, + 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, + 0x07, 0x6b, 0x4d, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0xa4, 0x94, 0x21, 0x76, + 0x67, 0x94, 0x96, 0x64, 0xe6, 0xe8, 0x67, 0xe6, 0x95, 0x14, 0x97, 0x14, 0xa1, 0xbb, 0x42, 0xc9, + 0x82, 0x8b, 0x23, 0xb0, 0x34, 0x31, 0xaf, 0x24, 0xb3, 0xa4, 0x52, 0x48, 0x8c, 0x8b, 0x0d, 0xa8, + 0x24, 0x33, 0x2f, 0x5d, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xca, 0xb3, 0x12, 0x99, 0xb1, + 0x40, 0x9e, 0xa1, 0x63, 0xa1, 0x3c, 0xc3, 0x04, 0x20, 0x5e, 0x00, 0xc4, 0x0d, 0x77, 0x14, 0x18, + 0x9c, 0xb4, 0x4e, 0x3c, 0x94, 0x63, 0xb8, 0x00, 0xc4, 0x37, 0x80, 0xb8, 0xe1, 0x91, 0x1c, 0xe3, + 0x09, 0x20, 0xbe, 0x00, 0xc4, 0x0f, 0x80, 0x78, 0xc2, 0x63, 0x39, 0x86, 0x28, 0x0e, 0x98, 0x3f, + 0x00, 0x01, 0x00, 0x00, 0xff, 0xff, 0x90, 0x1c, 0x7f, 0xff, 0x20, 0x01, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/generated.proto b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/generated.proto new file mode 100644 index 0000000000..bdc091d98d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/generated.proto @@ -0,0 +1,93 @@ +/* +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.api.resource; + +import "k8s.io/kubernetes/pkg/util/intstr/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "resource"; + +// Quantity is a fixed-point representation of a number. +// It provides convenient marshaling/unmarshaling in JSON and YAML, +// in addition to String() and Int64() accessors. +// +// The serialization format is: +// +// ::= +// (Note that may be empty, from the "" case in .) +// ::= 0 | 1 | ... | 9 +// ::= | +// ::= | . | . | . +// ::= "+" | "-" +// ::= | +// ::= | | +// ::= Ki | Mi | Gi | Ti | Pi | Ei +// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) +// ::= m | "" | k | M | G | T | P | E +// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) +// ::= "e" | "E" +// +// No matter which of the three exponent forms is used, no quantity may represent +// a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal +// places. Numbers larger or more precise will be capped or rounded up. +// (E.g.: 0.1m will rounded up to 1m.) +// This may be extended in the future if we require larger or smaller quantities. +// +// When a Quantity is parsed from a string, it will remember the type of suffix +// it had, and will use the same type again when it is serialized. +// +// Before serializing, Quantity will be put in "canonical form". +// This means that Exponent/suffix will be adjusted up or down (with a +// corresponding increase or decrease in Mantissa) such that: +// a. No precision is lost +// b. No fractional digits will be emitted +// c. The exponent (or suffix) is as large as possible. +// The sign will be omitted unless the number is negative. +// +// Examples: +// 1.5 will be serialized as "1500m" +// 1.5Gi will be serialized as "1536Mi" +// +// NOTE: We reserve the right to amend this canonical format, perhaps to +// allow 1.5 to be canonical. +// TODO: Remove above disclaimer after all bikeshedding about format is over, +// or after March 2015. +// +// Note that the quantity will NEVER be internally represented by a +// floating point number. That is the whole point of this exercise. +// +// Non-canonical values will still parse as long as they are well formed, +// but will be re-emitted in their canonical form. (So always use canonical +// form, or don't diff.) +// +// This format is intended to make it difficult to use these numbers without +// writing some sort of special handling code in the hopes that that will +// cause implementors to also use a fixed point implementation. +// +// +protobuf=true +// +protobuf.embed=string +// +protobuf.options.marshal=false +// +protobuf.options.(gogoproto.goproto_stringer)=false +message Quantity { + optional string string = 1; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/math.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/math.go new file mode 100644 index 0000000000..887ac74c98 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/math.go @@ -0,0 +1,327 @@ +/* +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 resource + +import ( + "math/big" + + inf "gopkg.in/inf.v0" +) + +const ( + // maxInt64Factors is the highest value that will be checked when removing factors of 10 from an int64. + // It is also the maximum decimal digits that can be represented with an int64. + maxInt64Factors = 18 +) + +var ( + // Commonly needed big.Int values-- treat as read only! + bigTen = big.NewInt(10) + bigZero = big.NewInt(0) + bigOne = big.NewInt(1) + bigThousand = big.NewInt(1000) + big1024 = big.NewInt(1024) + + // Commonly needed inf.Dec values-- treat as read only! + decZero = inf.NewDec(0, 0) + decOne = inf.NewDec(1, 0) + decMinusOne = inf.NewDec(-1, 0) + decThousand = inf.NewDec(1000, 0) + dec1024 = inf.NewDec(1024, 0) + decMinus1024 = inf.NewDec(-1024, 0) + + // Largest (in magnitude) number allowed. + maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64 + + // The maximum value we can represent milli-units for. + // Compare with the return value of Quantity.Value() to + // see if it's safe to use Quantity.MilliValue(). + MaxMilliValue = int64(((1 << 63) - 1) / 1000) +) + +const mostNegative = -(mostPositive + 1) +const mostPositive = 1<<63 - 1 + +// int64Add returns a+b, or false if that would overflow int64. +func int64Add(a, b int64) (int64, bool) { + c := a + b + switch { + case a > 0 && b > 0: + if c < 0 { + return 0, false + } + case a < 0 && b < 0: + if c > 0 { + return 0, false + } + if a == mostNegative && b == mostNegative { + return 0, false + } + } + return c, true +} + +// int64Multiply returns a*b, or false if that would overflow or underflow int64. +func int64Multiply(a, b int64) (int64, bool) { + if a == 0 || b == 0 || a == 1 || b == 1 { + return a * b, true + } + if a == mostNegative || b == mostNegative { + return 0, false + } + c := a * b + return c, c/b == a +} + +// int64MultiplyScale returns a*b, assuming b is greater than one, or false if that would overflow or underflow int64. +// Use when b is known to be greater than one. +func int64MultiplyScale(a int64, b int64) (int64, bool) { + if a == 0 || a == 1 { + return a * b, true + } + if a == mostNegative && b != 1 { + return 0, false + } + c := a * b + return c, c/b == a +} + +// int64MultiplyScale10 multiplies a by 10, or returns false if that would overflow. This method is faster than +// int64Multiply(a, 10) because the compiler can optimize constant factor multiplication. +func int64MultiplyScale10(a int64) (int64, bool) { + if a == 0 || a == 1 { + return a * 10, true + } + if a == mostNegative { + return 0, false + } + c := a * 10 + return c, c/10 == a +} + +// int64MultiplyScale100 multiplies a by 100, or returns false if that would overflow. This method is faster than +// int64Multiply(a, 100) because the compiler can optimize constant factor multiplication. +func int64MultiplyScale100(a int64) (int64, bool) { + if a == 0 || a == 1 { + return a * 100, true + } + if a == mostNegative { + return 0, false + } + c := a * 100 + return c, c/100 == a +} + +// int64MultiplyScale1000 multiplies a by 1000, or returns false if that would overflow. This method is faster than +// int64Multiply(a, 1000) because the compiler can optimize constant factor multiplication. +func int64MultiplyScale1000(a int64) (int64, bool) { + if a == 0 || a == 1 { + return a * 1000, true + } + if a == mostNegative { + return 0, false + } + c := a * 1000 + return c, c/1000 == a +} + +// positiveScaleInt64 multiplies base by 10^scale, returning false if the +// value overflows. Passing a negative scale is undefined. +func positiveScaleInt64(base int64, scale Scale) (int64, bool) { + switch scale { + case 0: + return base, true + case 1: + return int64MultiplyScale10(base) + case 2: + return int64MultiplyScale100(base) + case 3: + return int64MultiplyScale1000(base) + case 6: + return int64MultiplyScale(base, 1000000) + case 9: + return int64MultiplyScale(base, 1000000000) + default: + value := base + var ok bool + for i := Scale(0); i < scale; i++ { + if value, ok = int64MultiplyScale(value, 10); !ok { + return 0, false + } + } + return value, true + } +} + +// negativeScaleInt64 reduces base by the provided scale, rounding up, until the +// value is zero or the scale is reached. Passing a negative scale is undefined. +// The value returned, if not exact, is rounded away from zero. +func negativeScaleInt64(base int64, scale Scale) (result int64, exact bool) { + if scale == 0 { + return base, true + } + + value := base + var fraction bool + for i := Scale(0); i < scale; i++ { + if !fraction && value%10 != 0 { + fraction = true + } + value = value / 10 + if value == 0 { + if fraction { + if base > 0 { + return 1, false + } + return -1, false + } + return 0, true + } + } + if fraction { + if base > 0 { + value += 1 + } else { + value += -1 + } + } + return value, !fraction +} + +func pow10Int64(b int64) int64 { + switch b { + case 0: + return 1 + case 1: + return 10 + case 2: + return 100 + case 3: + return 1000 + case 4: + return 10000 + case 5: + return 100000 + case 6: + return 1000000 + case 7: + return 10000000 + case 8: + return 100000000 + case 9: + return 1000000000 + case 10: + return 10000000000 + case 11: + return 100000000000 + case 12: + return 1000000000000 + case 13: + return 10000000000000 + case 14: + return 100000000000000 + case 15: + return 1000000000000000 + case 16: + return 10000000000000000 + case 17: + return 100000000000000000 + case 18: + return 1000000000000000000 + default: + return 0 + } +} + +// powInt64 raises a to the bth power. Is not overflow aware. +func powInt64(a, b int64) int64 { + p := int64(1) + for b > 0 { + if b&1 != 0 { + p *= a + } + b >>= 1 + a *= a + } + return p +} + +// negativeScaleInt64 returns the result of dividing base by scale * 10 and the remainder, or +// false if no such division is possible. Dividing by negative scales is undefined. +func divideByScaleInt64(base int64, scale Scale) (result, remainder int64, exact bool) { + if scale == 0 { + return base, 0, true + } + // the max scale representable in base 10 in an int64 is 18 decimal places + if scale >= 18 { + return 0, base, false + } + divisor := pow10Int64(int64(scale)) + return base / divisor, base % divisor, true +} + +// removeInt64Factors divides in a loop; the return values have the property that +// value == result * base ^ scale +func removeInt64Factors(value int64, base int64) (result int64, times int32) { + times = 0 + result = value + negative := result < 0 + if negative { + result = -result + } + switch base { + // allow the compiler to optimize the common cases + case 10: + for result >= 10 && result%10 == 0 { + times++ + result = result / 10 + } + // allow the compiler to optimize the common cases + case 1024: + for result >= 1024 && result%1024 == 0 { + times++ + result = result / 1024 + } + default: + for result >= base && result%base == 0 { + times++ + result = result / base + } + } + if negative { + result = -result + } + return result, times +} + +// removeBigIntFactors divides in a loop; the return values have the property that +// d == result * factor ^ times +// d may be modified in place. +// If d == 0, then the return values will be (0, 0) +func removeBigIntFactors(d, factor *big.Int) (result *big.Int, times int32) { + q := big.NewInt(0) + m := big.NewInt(0) + for d.Cmp(bigZero) != 0 { + q.DivMod(d, factor, m) + if m.Cmp(bigZero) != 0 { + break + } + times++ + d, q = q, d + } + return d, times +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/quantity.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/quantity.go new file mode 100644 index 0000000000..823dd5ef70 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/quantity.go @@ -0,0 +1,777 @@ +/* +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 resource + +import ( + "bytes" + "errors" + "fmt" + "math/big" + "regexp" + "strconv" + "strings" + + flag "github.com/spf13/pflag" + + inf "gopkg.in/inf.v0" +) + +// Quantity is a fixed-point representation of a number. +// It provides convenient marshaling/unmarshaling in JSON and YAML, +// in addition to String() and Int64() accessors. +// +// The serialization format is: +// +// ::= +// (Note that may be empty, from the "" case in .) +// ::= 0 | 1 | ... | 9 +// ::= | +// ::= | . | . | . +// ::= "+" | "-" +// ::= | +// ::= | | +// ::= Ki | Mi | Gi | Ti | Pi | Ei +// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) +// ::= m | "" | k | M | G | T | P | E +// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) +// ::= "e" | "E" +// +// No matter which of the three exponent forms is used, no quantity may represent +// a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal +// places. Numbers larger or more precise will be capped or rounded up. +// (E.g.: 0.1m will rounded up to 1m.) +// This may be extended in the future if we require larger or smaller quantities. +// +// When a Quantity is parsed from a string, it will remember the type of suffix +// it had, and will use the same type again when it is serialized. +// +// Before serializing, Quantity will be put in "canonical form". +// This means that Exponent/suffix will be adjusted up or down (with a +// corresponding increase or decrease in Mantissa) such that: +// a. No precision is lost +// b. No fractional digits will be emitted +// c. The exponent (or suffix) is as large as possible. +// The sign will be omitted unless the number is negative. +// +// Examples: +// 1.5 will be serialized as "1500m" +// 1.5Gi will be serialized as "1536Mi" +// +// NOTE: We reserve the right to amend this canonical format, perhaps to +// allow 1.5 to be canonical. +// TODO: Remove above disclaimer after all bikeshedding about format is over, +// or after March 2015. +// +// Note that the quantity will NEVER be internally represented by a +// floating point number. That is the whole point of this exercise. +// +// Non-canonical values will still parse as long as they are well formed, +// but will be re-emitted in their canonical form. (So always use canonical +// form, or don't diff.) +// +// This format is intended to make it difficult to use these numbers without +// writing some sort of special handling code in the hopes that that will +// cause implementors to also use a fixed point implementation. +// +// +protobuf=true +// +protobuf.embed=string +// +protobuf.options.marshal=false +// +protobuf.options.(gogoproto.goproto_stringer)=false +type Quantity struct { + // i is the quantity in int64 scaled form, if d.Dec == nil + i int64Amount + // d is the quantity in inf.Dec form if d.Dec != nil + d infDecAmount + // s is the generated value of this quantity to avoid recalculation + s string + + // Change Format at will. See the comment for Canonicalize for + // more details. + Format +} + +// CanonicalValue allows a quantity amount to be converted to a string. +type CanonicalValue interface { + // AsCanonicalBytes returns a byte array representing the string representation + // of the value mantissa and an int32 representing its exponent in base-10. Callers may + // pass a byte slice to the method to avoid allocations. + AsCanonicalBytes(out []byte) ([]byte, int32) + // AsCanonicalBase1024Bytes returns a byte array representing the string representation + // of the value mantissa and an int32 representing its exponent in base-1024. Callers + // may pass a byte slice to the method to avoid allocations. + AsCanonicalBase1024Bytes(out []byte) ([]byte, int32) +} + +// Format lists the three possible formattings of a quantity. +type Format string + +const ( + DecimalExponent = Format("DecimalExponent") // e.g., 12e6 + BinarySI = Format("BinarySI") // e.g., 12Mi (12 * 2^20) + DecimalSI = Format("DecimalSI") // e.g., 12M (12 * 10^6) +) + +// MustParse turns the given string into a quantity or panics; for tests +// or others cases where you know the string is valid. +func MustParse(str string) Quantity { + q, err := ParseQuantity(str) + if err != nil { + panic(fmt.Errorf("cannot parse '%v': %v", str, err)) + } + return q +} + +const ( + // splitREString is used to separate a number from its suffix; as such, + // this is overly permissive, but that's OK-- it will be checked later. + splitREString = "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" +) + +var ( + // splitRE is used to get the various parts of a number. + splitRE = regexp.MustCompile(splitREString) + + // Errors that could happen while parsing a string. + ErrFormatWrong = errors.New("quantities must match the regular expression '" + splitREString + "'") + ErrNumeric = errors.New("unable to parse numeric part of quantity") + ErrSuffix = errors.New("unable to parse quantity's suffix") +) + +// parseQuantityString is a fast scanner for quantity values. +func parseQuantityString(str string) (positive bool, value, num, denom, suffix string, err error) { + positive = true + pos := 0 + end := len(str) + + // handle leading sign + if pos < end { + switch str[0] { + case '-': + positive = false + pos++ + case '+': + pos++ + } + } + + // strip leading zeros +Zeroes: + for i := pos; ; i++ { + if i >= end { + num = "0" + value = num + return + } + switch str[i] { + case '0': + pos++ + default: + break Zeroes + } + } + + // extract the numerator +Num: + for i := pos; ; i++ { + if i >= end { + num = str[pos:end] + value = str[0:end] + return + } + switch str[i] { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + default: + num = str[pos:i] + pos = i + break Num + } + } + + // if we stripped all numerator positions, always return 0 + if len(num) == 0 { + num = "0" + } + + // handle a denominator + if pos < end && str[pos] == '.' { + pos++ + Denom: + for i := pos; ; i++ { + if i >= end { + denom = str[pos:end] + value = str[0:end] + return + } + switch str[i] { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + default: + denom = str[pos:i] + pos = i + break Denom + } + } + // TODO: we currently allow 1.G, but we may not want to in the future. + // if len(denom) == 0 { + // err = ErrFormatWrong + // return + // } + } + value = str[0:pos] + + // grab the elements of the suffix + suffixStart := pos + for i := pos; ; i++ { + if i >= end { + suffix = str[suffixStart:end] + return + } + if !strings.ContainsAny(str[i:i+1], "eEinumkKMGTP") { + pos = i + break + } + } + if pos < end { + switch str[pos] { + case '-', '+': + pos++ + } + } +Suffix: + for i := pos; ; i++ { + if i >= end { + suffix = str[suffixStart:end] + return + } + switch str[i] { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + default: + break Suffix + } + } + // we encountered a non decimal in the Suffix loop, but the last character + // was not a valid exponent + err = ErrFormatWrong + return +} + +// ParseQuantity turns str into a Quantity, or returns an error. +func ParseQuantity(str string) (Quantity, error) { + if len(str) == 0 { + return Quantity{}, ErrFormatWrong + } + if str == "0" { + return Quantity{Format: DecimalSI, s: str}, nil + } + + positive, value, num, denom, suf, err := parseQuantityString(str) + if err != nil { + return Quantity{}, err + } + + base, exponent, format, ok := quantitySuffixer.interpret(suffix(suf)) + if !ok { + return Quantity{}, ErrSuffix + } + + precision := int32(0) + scale := int32(0) + mantissa := int64(1) + switch format { + case DecimalExponent, DecimalSI: + scale = exponent + precision = maxInt64Factors - int32(len(num)+len(denom)) + case BinarySI: + scale = 0 + switch { + case exponent >= 0 && len(denom) == 0: + // only handle positive binary numbers with the fast path + mantissa = int64(int64(mantissa) << uint64(exponent)) + // 1Mi (2^20) has ~6 digits of decimal precision, so exponent*3/10 -1 is roughly the precision + precision = 15 - int32(len(num)) - int32(float32(exponent)*3/10) - 1 + default: + precision = -1 + } + } + + if precision >= 0 { + // if we have a denominator, shift the entire value to the left by the number of places in the + // denominator + scale -= int32(len(denom)) + if scale >= int32(Nano) { + shifted := num + denom + + var value int64 + value, err := strconv.ParseInt(shifted, 10, 64) + if err != nil { + return Quantity{}, ErrNumeric + } + if result, ok := int64Multiply(value, int64(mantissa)); ok { + if !positive { + result = -result + } + // if the number is in canonical form, reuse the string + switch format { + case BinarySI: + if exponent%10 == 0 && (value&0x07 != 0) { + return Quantity{i: int64Amount{value: result, scale: Scale(scale)}, Format: format, s: str}, nil + } + default: + if scale%3 == 0 && !strings.HasSuffix(shifted, "000") && shifted[0] != '0' { + return Quantity{i: int64Amount{value: result, scale: Scale(scale)}, Format: format, s: str}, nil + } + } + return Quantity{i: int64Amount{value: result, scale: Scale(scale)}, Format: format}, nil + } + } + } + + amount := new(inf.Dec) + if _, ok := amount.SetString(value); !ok { + return Quantity{}, ErrNumeric + } + + // So that no one but us has to think about suffixes, remove it. + if base == 10 { + amount.SetScale(amount.Scale() + Scale(exponent).infScale()) + } else if base == 2 { + // numericSuffix = 2 ** exponent + numericSuffix := big.NewInt(1).Lsh(bigOne, uint(exponent)) + ub := amount.UnscaledBig() + amount.SetUnscaledBig(ub.Mul(ub, numericSuffix)) + } + + // Cap at min/max bounds. + sign := amount.Sign() + if sign == -1 { + amount.Neg(amount) + } + + // This rounds non-zero values up to the minimum representable value, under the theory that + // if you want some resources, you should get some resources, even if you asked for way too small + // of an amount. Arguably, this should be inf.RoundHalfUp (normal rounding), but that would have + // the side effect of rounding values < .5n to zero. + if v, ok := amount.Unscaled(); v != int64(0) || !ok { + amount.Round(amount, Nano.infScale(), inf.RoundUp) + } + + // The max is just a simple cap. + // TODO: this prevents accumulating quantities greater than int64, for instance quota across a cluster + if format == BinarySI && amount.Cmp(maxAllowed.Dec) > 0 { + amount.Set(maxAllowed.Dec) + } + + if format == BinarySI && amount.Cmp(decOne) < 0 && amount.Cmp(decZero) > 0 { + // This avoids rounding and hopefully confusion, too. + format = DecimalSI + } + if sign == -1 { + amount.Neg(amount) + } + + return Quantity{d: infDecAmount{amount}, Format: format}, nil +} + +// DeepCopy returns a deep-copy of the Quantity value. Note that the method +// receiver is a value, so we can mutate it in-place and return it. +func (q Quantity) DeepCopy() Quantity { + if q.d.Dec != nil { + tmp := &inf.Dec{} + q.d.Dec = tmp.Set(q.d.Dec) + } + return q +} + +// CanonicalizeBytes returns the canonical form of q and its suffix (see comment on Quantity). +// +// Note about BinarySI: +// * If q.Format is set to BinarySI and q.Amount represents a non-zero value between +// -1 and +1, it will be emitted as if q.Format were DecimalSI. +// * Otherwise, if q.Format is set to BinarySI, frational parts of q.Amount will be +// rounded up. (1.1i becomes 2i.) +func (q *Quantity) CanonicalizeBytes(out []byte) (result, suffix []byte) { + if q.IsZero() { + return zeroBytes, nil + } + + var rounded CanonicalValue + format := q.Format + switch format { + case DecimalExponent, DecimalSI: + case BinarySI: + if q.CmpInt64(-1024) > 0 && q.CmpInt64(1024) < 0 { + // This avoids rounding and hopefully confusion, too. + format = DecimalSI + } else { + var exact bool + if rounded, exact = q.AsScale(0); !exact { + // Don't lose precision-- show as DecimalSI + format = DecimalSI + } + } + default: + format = DecimalExponent + } + + // TODO: If BinarySI formatting is requested but would cause rounding, upgrade to + // one of the other formats. + switch format { + case DecimalExponent, DecimalSI: + number, exponent := q.AsCanonicalBytes(out) + suffix, _ := quantitySuffixer.constructBytes(10, exponent, format) + return number, suffix + default: + // format must be BinarySI + number, exponent := rounded.AsCanonicalBase1024Bytes(out) + suffix, _ := quantitySuffixer.constructBytes(2, exponent*10, format) + return number, suffix + } +} + +// AsInt64 returns a representation of the current value as an int64 if a fast conversion +// is possible. If false is returned, callers must use the inf.Dec form of this quantity. +func (q *Quantity) AsInt64() (int64, bool) { + if q.d.Dec != nil { + return 0, false + } + return q.i.AsInt64() +} + +// ToDec promotes the quantity in place to use an inf.Dec representation and returns itself. +func (q *Quantity) ToDec() *Quantity { + if q.d.Dec == nil { + q.d.Dec = q.i.AsDec() + q.i = int64Amount{} + } + return q +} + +// AsDec returns the quantity as represented by a scaled inf.Dec. +func (q *Quantity) AsDec() *inf.Dec { + if q.d.Dec != nil { + return q.d.Dec + } + q.d.Dec = q.i.AsDec() + q.i = int64Amount{} + return q.d.Dec +} + +// AsCanonicalBytes returns the canonical byte representation of this quantity as a mantissa +// and base 10 exponent. The out byte slice may be passed to the method to avoid an extra +// allocation. +func (q *Quantity) AsCanonicalBytes(out []byte) (result []byte, exponent int32) { + if q.d.Dec != nil { + return q.d.AsCanonicalBytes(out) + } + return q.i.AsCanonicalBytes(out) +} + +// IsZero returns true if the quantity is equal to zero. +func (q *Quantity) IsZero() bool { + if q.d.Dec != nil { + return q.d.Dec.Sign() == 0 + } + return q.i.value == 0 +} + +// Sign returns 0 if the quantity is zero, -1 if the quantity is less than zero, or 1 if the +// quantity is greater than zero. +func (q *Quantity) Sign() int { + if q.d.Dec != nil { + return q.d.Dec.Sign() + } + return q.i.Sign() +} + +// AsScaled returns the current value, rounded up to the provided scale, and returns +// false if the scale resulted in a loss of precision. +func (q *Quantity) AsScale(scale Scale) (CanonicalValue, bool) { + if q.d.Dec != nil { + return q.d.AsScale(scale) + } + return q.i.AsScale(scale) +} + +// RoundUp updates the quantity to the provided scale, ensuring that the value is at +// least 1. False is returned if the rounding operation resulted in a loss of precision. +// Negative numbers are rounded away from zero (-9 scale 1 rounds to -10). +func (q *Quantity) RoundUp(scale Scale) bool { + if q.d.Dec != nil { + q.s = "" + d, exact := q.d.AsScale(scale) + q.d = d + return exact + } + // avoid clearing the string value if we have already calculated it + if q.i.scale >= scale { + return true + } + q.s = "" + i, exact := q.i.AsScale(scale) + q.i = i + return exact +} + +// Add adds the provide y quantity to the current value. If the current value is zero, +// the format of the quantity will be updated to the format of y. +func (q *Quantity) Add(y Quantity) { + q.s = "" + if q.d.Dec == nil && y.d.Dec == nil { + if q.i.value == 0 { + q.Format = y.Format + } + if q.i.Add(y.i) { + return + } + } else if q.IsZero() { + q.Format = y.Format + } + q.ToDec().d.Dec.Add(q.d.Dec, y.AsDec()) +} + +// Sub subtracts the provided quantity from the current value in place. If the current +// value is zero, the format of the quantity will be updated to the format of y. +func (q *Quantity) Sub(y Quantity) { + q.s = "" + if q.IsZero() { + q.Format = y.Format + } + if q.d.Dec == nil && y.d.Dec == nil && q.i.Sub(y.i) { + return + } + q.ToDec().d.Dec.Sub(q.d.Dec, y.AsDec()) +} + +// Cmp returns 0 if the quantity is equal to y, -1 if the quantity is less than y, or 1 if the +// quantity is greater than y. +func (q *Quantity) Cmp(y Quantity) int { + if q.d.Dec == nil && y.d.Dec == nil { + return q.i.Cmp(y.i) + } + return q.AsDec().Cmp(y.AsDec()) +} + +// CmpInt64 returns 0 if the quantity is equal to y, -1 if the quantity is less than y, or 1 if the +// quantity is greater than y. +func (q *Quantity) CmpInt64(y int64) int { + if q.d.Dec != nil { + return q.d.Dec.Cmp(inf.NewDec(y, inf.Scale(0))) + } + return q.i.Cmp(int64Amount{value: y}) +} + +// Neg sets quantity to be the negative value of itself. +func (q *Quantity) Neg() { + q.s = "" + if q.d.Dec == nil { + q.i.value = -q.i.value + return + } + q.d.Dec.Neg(q.d.Dec) +} + +// int64QuantityExpectedBytes is the expected width in bytes of the canonical string representation +// of most Quantity values. +const int64QuantityExpectedBytes = 18 + +// String formats the Quantity as a string, caching the result if not calculated. +// String is an expensive operation and caching this result significantly reduces the cost of +// normal parse / marshal operations on Quantity. +func (q *Quantity) String() string { + if len(q.s) == 0 { + result := make([]byte, 0, int64QuantityExpectedBytes) + number, suffix := q.CanonicalizeBytes(result) + number = append(number, suffix...) + q.s = string(number) + } + return q.s +} + +// MarshalJSON implements the json.Marshaller interface. +func (q Quantity) MarshalJSON() ([]byte, error) { + if len(q.s) > 0 { + out := make([]byte, len(q.s)+2) + out[0], out[len(out)-1] = '"', '"' + copy(out[1:], q.s) + return out, nil + } + result := make([]byte, int64QuantityExpectedBytes, int64QuantityExpectedBytes) + result[0] = '"' + number, suffix := q.CanonicalizeBytes(result[1:1]) + // if the same slice was returned to us that we passed in, avoid another allocation by copying number into + // the source slice and returning that + if len(number) > 0 && &number[0] == &result[1] && (len(number)+len(suffix)+2) <= int64QuantityExpectedBytes { + number = append(number, suffix...) + number = append(number, '"') + return result[:1+len(number)], nil + } + // if CanonicalizeBytes needed more space than our slice provided, we may need to allocate again so use + // append + result = result[:1] + result = append(result, number...) + result = append(result, suffix...) + result = append(result, '"') + return result, nil +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +// TODO: Remove support for leading/trailing whitespace +func (q *Quantity) UnmarshalJSON(value []byte) error { + l := len(value) + if l == 4 && bytes.Equal(value, []byte("null")) { + q.d.Dec = nil + q.i = int64Amount{} + return nil + } + if l >= 2 && value[0] == '"' && value[l-1] == '"' { + value = value[1 : l-1] + } + + parsed, err := ParseQuantity(strings.TrimSpace(string(value))) + if err != nil { + return err + } + + // This copy is safe because parsed will not be referred to again. + *q = parsed + return nil +} + +// NewQuantity returns a new Quantity representing the given +// value in the given format. +func NewQuantity(value int64, format Format) *Quantity { + return &Quantity{ + i: int64Amount{value: value}, + Format: format, + } +} + +// NewMilliQuantity returns a new Quantity representing the given +// value * 1/1000 in the given format. Note that BinarySI formatting +// will round fractional values, and will be changed to DecimalSI for +// values x where (-1 < x < 1) && (x != 0). +func NewMilliQuantity(value int64, format Format) *Quantity { + return &Quantity{ + i: int64Amount{value: value, scale: -3}, + Format: format, + } +} + +// NewScaledQuantity returns a new Quantity representing the given +// value * 10^scale in DecimalSI format. +func NewScaledQuantity(value int64, scale Scale) *Quantity { + return &Quantity{ + i: int64Amount{value: value, scale: scale}, + Format: DecimalSI, + } +} + +// Value returns the value of q; any fractional part will be lost. +func (q *Quantity) Value() int64 { + return q.ScaledValue(0) +} + +// MilliValue returns the value of ceil(q * 1000); this could overflow an int64; +// if that's a concern, call Value() first to verify the number is small enough. +func (q *Quantity) MilliValue() int64 { + return q.ScaledValue(Milli) +} + +// ScaledValue returns the value of ceil(q * 10^scale); this could overflow an int64. +// To detect overflow, call Value() first and verify the expected magnitude. +func (q *Quantity) ScaledValue(scale Scale) int64 { + if q.d.Dec == nil { + i, _ := q.i.AsScaledInt64(scale) + return i + } + dec := q.d.Dec + return scaledValue(dec.UnscaledBig(), int(dec.Scale()), int(scale.infScale())) +} + +// Set sets q's value to be value. +func (q *Quantity) Set(value int64) { + q.SetScaled(value, 0) +} + +// SetMilli sets q's value to be value * 1/1000. +func (q *Quantity) SetMilli(value int64) { + q.SetScaled(value, Milli) +} + +// SetScaled sets q's value to be value * 10^scale +func (q *Quantity) SetScaled(value int64, scale Scale) { + q.s = "" + q.d.Dec = nil + q.i = int64Amount{value: value, scale: scale} +} + +// Copy is a convenience function that makes a deep copy for you. Non-deep +// copies of quantities share pointers and you will regret that. +func (q *Quantity) Copy() *Quantity { + if q.d.Dec == nil { + return &Quantity{ + s: q.s, + i: q.i, + Format: q.Format, + } + } + tmp := &inf.Dec{} + return &Quantity{ + s: q.s, + d: infDecAmount{tmp.Set(q.d.Dec)}, + Format: q.Format, + } +} + +// qFlag is a helper type for the Flag function +type qFlag struct { + dest *Quantity +} + +// Sets the value of the internal Quantity. (used by flag & pflag) +func (qf qFlag) Set(val string) error { + q, err := ParseQuantity(val) + if err != nil { + return err + } + // This copy is OK because q will not be referenced again. + *qf.dest = q + return nil +} + +// Converts the value of the internal Quantity to a string. (used by flag & pflag) +func (qf qFlag) String() string { + return qf.dest.String() +} + +// States the type of flag this is (Quantity). (used by pflag) +func (qf qFlag) Type() string { + return "quantity" +} + +// QuantityFlag is a helper that makes a quantity flag (using standard flag package). +// Will panic if defaultValue is not a valid quantity. +func QuantityFlag(flagName, defaultValue, description string) *Quantity { + q := MustParse(defaultValue) + flag.Var(NewQuantityFlagValue(&q), flagName, description) + return &q +} + +// NewQuantityFlagValue returns an object that can be used to back a flag, +// pointing at the given Quantity variable. +func NewQuantityFlagValue(q *Quantity) flag.Value { + return qFlag{q} +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/quantity_proto.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/quantity_proto.go new file mode 100644 index 0000000000..74dfb4e4b7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/quantity_proto.go @@ -0,0 +1,284 @@ +/* +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 resource + +import ( + "fmt" + "io" + + "github.com/gogo/protobuf/proto" +) + +var _ proto.Sizer = &Quantity{} + +func (m *Quantity) 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 +} + +// MarshalTo is a customized version of the generated Protobuf unmarshaler for a struct +// with a single string field. +func (m *Quantity) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + + data[i] = 0xa + i++ + // BEGIN CUSTOM MARSHAL + out := m.String() + i = encodeVarintGenerated(data, i, uint64(len(out))) + i += copy(data[i:], out) + // END CUSTOM MARSHAL + + return i, nil +} + +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 *Quantity) Size() (n int) { + var l int + _ = l + + // BEGIN CUSTOM SIZE + l = len(m.String()) + // END CUSTOM SIZE + + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} + +// Unmarshal is a customized version of the generated Protobuf unmarshaler for a struct +// with a single string field. +func (m *Quantity) 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: Quantity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Quantity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field String_", 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]) + + // BEGIN CUSTOM DECODE + p, err := ParseQuantity(s) + if err != nil { + return err + } + *m = p + // END CUSTOM DECODE + + 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") +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/scale_int.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/scale_int.go new file mode 100644 index 0000000000..55e177b0e9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/scale_int.go @@ -0,0 +1,95 @@ +/* +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 resource + +import ( + "math" + "math/big" + "sync" +) + +var ( + // A sync pool to reduce allocation. + intPool sync.Pool + maxInt64 = big.NewInt(math.MaxInt64) +) + +func init() { + intPool.New = func() interface{} { + return &big.Int{} + } +} + +// scaledValue scales given unscaled value from scale to new Scale and returns +// an int64. It ALWAYS rounds up the result when scale down. The final result might +// overflow. +// +// scale, newScale represents the scale of the unscaled decimal. +// The mathematical value of the decimal is unscaled * 10**(-scale). +func scaledValue(unscaled *big.Int, scale, newScale int) int64 { + dif := scale - newScale + if dif == 0 { + return unscaled.Int64() + } + + // Handle scale up + // This is an easy case, we do not need to care about rounding and overflow. + // If any intermediate operation causes overflow, the result will overflow. + if dif < 0 { + return unscaled.Int64() * int64(math.Pow10(-dif)) + } + + // Handle scale down + // We have to be careful about the intermediate operations. + + // fast path when unscaled < max.Int64 and exp(10,dif) < max.Int64 + const log10MaxInt64 = 19 + if unscaled.Cmp(maxInt64) < 0 && dif < log10MaxInt64 { + divide := int64(math.Pow10(dif)) + result := unscaled.Int64() / divide + mod := unscaled.Int64() % divide + if mod != 0 { + return result + 1 + } + return result + } + + // We should only convert back to int64 when getting the result. + divisor := intPool.Get().(*big.Int) + exp := intPool.Get().(*big.Int) + result := intPool.Get().(*big.Int) + defer func() { + intPool.Put(divisor) + intPool.Put(exp) + intPool.Put(result) + }() + + // divisor = 10^(dif) + // TODO: create loop up table if exp costs too much. + divisor.Exp(bigTen, exp.SetInt64(int64(dif)), nil) + // reuse exp + remainder := exp + + // result = unscaled / divisor + // remainder = unscaled % divisor + result.DivMod(unscaled, divisor, remainder) + if remainder.Sign() != 0 { + return result.Int64() + 1 + } + + return result.Int64() +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/suffix.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/suffix.go new file mode 100644 index 0000000000..5ed7abe665 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource/suffix.go @@ -0,0 +1,198 @@ +/* +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 resource + +import ( + "strconv" +) + +type suffix string + +// suffixer can interpret and construct suffixes. +type suffixer interface { + interpret(suffix) (base, exponent int32, fmt Format, ok bool) + construct(base, exponent int32, fmt Format) (s suffix, ok bool) + constructBytes(base, exponent int32, fmt Format) (s []byte, ok bool) +} + +// quantitySuffixer handles suffixes for all three formats that quantity +// can handle. +var quantitySuffixer = newSuffixer() + +type bePair struct { + base, exponent int32 +} + +type listSuffixer struct { + suffixToBE map[suffix]bePair + beToSuffix map[bePair]suffix + beToSuffixBytes map[bePair][]byte +} + +func (ls *listSuffixer) addSuffix(s suffix, pair bePair) { + if ls.suffixToBE == nil { + ls.suffixToBE = map[suffix]bePair{} + } + if ls.beToSuffix == nil { + ls.beToSuffix = map[bePair]suffix{} + } + if ls.beToSuffixBytes == nil { + ls.beToSuffixBytes = map[bePair][]byte{} + } + ls.suffixToBE[s] = pair + ls.beToSuffix[pair] = s + ls.beToSuffixBytes[pair] = []byte(s) +} + +func (ls *listSuffixer) lookup(s suffix) (base, exponent int32, ok bool) { + pair, ok := ls.suffixToBE[s] + if !ok { + return 0, 0, false + } + return pair.base, pair.exponent, true +} + +func (ls *listSuffixer) construct(base, exponent int32) (s suffix, ok bool) { + s, ok = ls.beToSuffix[bePair{base, exponent}] + return +} + +func (ls *listSuffixer) constructBytes(base, exponent int32) (s []byte, ok bool) { + s, ok = ls.beToSuffixBytes[bePair{base, exponent}] + return +} + +type suffixHandler struct { + decSuffixes listSuffixer + binSuffixes listSuffixer +} + +type fastLookup struct { + *suffixHandler +} + +func (l fastLookup) interpret(s suffix) (base, exponent int32, format Format, ok bool) { + switch s { + case "": + return 10, 0, DecimalSI, true + case "n": + return 10, -9, DecimalSI, true + case "u": + return 10, -6, DecimalSI, true + case "m": + return 10, -3, DecimalSI, true + case "k": + return 10, 3, DecimalSI, true + case "M": + return 10, 6, DecimalSI, true + case "G": + return 10, 9, DecimalSI, true + } + return l.suffixHandler.interpret(s) +} + +func newSuffixer() suffixer { + sh := &suffixHandler{} + + // IMPORTANT: if you change this section you must change fastLookup + + sh.binSuffixes.addSuffix("Ki", bePair{2, 10}) + sh.binSuffixes.addSuffix("Mi", bePair{2, 20}) + sh.binSuffixes.addSuffix("Gi", bePair{2, 30}) + sh.binSuffixes.addSuffix("Ti", bePair{2, 40}) + sh.binSuffixes.addSuffix("Pi", bePair{2, 50}) + sh.binSuffixes.addSuffix("Ei", bePair{2, 60}) + // Don't emit an error when trying to produce + // a suffix for 2^0. + sh.decSuffixes.addSuffix("", bePair{2, 0}) + + sh.decSuffixes.addSuffix("n", bePair{10, -9}) + sh.decSuffixes.addSuffix("u", bePair{10, -6}) + sh.decSuffixes.addSuffix("m", bePair{10, -3}) + sh.decSuffixes.addSuffix("", bePair{10, 0}) + sh.decSuffixes.addSuffix("k", bePair{10, 3}) + sh.decSuffixes.addSuffix("M", bePair{10, 6}) + sh.decSuffixes.addSuffix("G", bePair{10, 9}) + sh.decSuffixes.addSuffix("T", bePair{10, 12}) + sh.decSuffixes.addSuffix("P", bePair{10, 15}) + sh.decSuffixes.addSuffix("E", bePair{10, 18}) + + return fastLookup{sh} +} + +func (sh *suffixHandler) construct(base, exponent int32, fmt Format) (s suffix, ok bool) { + switch fmt { + case DecimalSI: + return sh.decSuffixes.construct(base, exponent) + case BinarySI: + return sh.binSuffixes.construct(base, exponent) + case DecimalExponent: + if base != 10 { + return "", false + } + if exponent == 0 { + return "", true + } + return suffix("e" + strconv.FormatInt(int64(exponent), 10)), true + } + return "", false +} + +func (sh *suffixHandler) constructBytes(base, exponent int32, format Format) (s []byte, ok bool) { + switch format { + case DecimalSI: + return sh.decSuffixes.constructBytes(base, exponent) + case BinarySI: + return sh.binSuffixes.constructBytes(base, exponent) + case DecimalExponent: + if base != 10 { + return nil, false + } + if exponent == 0 { + return nil, true + } + result := make([]byte, 8, 8) + result[0] = 'e' + number := strconv.AppendInt(result[1:1], int64(exponent), 10) + if &result[1] == &number[0] { + return result[:1+len(number)], true + } + result = append(result[:1], number...) + return result, true + } + return nil, false +} + +func (sh *suffixHandler) interpret(suffix suffix) (base, exponent int32, fmt Format, ok bool) { + // Try lookup tables first + if b, e, ok := sh.decSuffixes.lookup(suffix); ok { + return b, e, DecimalSI, true + } + if b, e, ok := sh.binSuffixes.lookup(suffix); ok { + return b, e, BinarySI, true + } + + if len(suffix) > 1 && (suffix[0] == 'E' || suffix[0] == 'e') { + parsed, err := strconv.ParseInt(string(suffix[1:]), 10, 64) + if err != nil { + return 0, 0, DecimalExponent, false + } + return 10, int32(parsed), DecimalExponent, true + } + + return 0, 0, DecimalExponent, false +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource_helpers.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource_helpers.go new file mode 100644 index 0000000000..e53e3a8557 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/resource_helpers.go @@ -0,0 +1,209 @@ +/* +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 api + +import ( + "k8s.io/client-go/1.4/pkg/api/resource" + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// Returns string version of ResourceName. +func (self ResourceName) String() string { + return string(self) +} + +// Returns the CPU limit if specified. +func (self *ResourceList) Cpu() *resource.Quantity { + if val, ok := (*self)[ResourceCPU]; ok { + return &val + } + return &resource.Quantity{Format: resource.DecimalSI} +} + +// Returns the Memory limit if specified. +func (self *ResourceList) Memory() *resource.Quantity { + if val, ok := (*self)[ResourceMemory]; ok { + return &val + } + return &resource.Quantity{Format: resource.BinarySI} +} + +func (self *ResourceList) Pods() *resource.Quantity { + if val, ok := (*self)[ResourcePods]; ok { + return &val + } + return &resource.Quantity{} +} + +func (self *ResourceList) NvidiaGPU() *resource.Quantity { + if val, ok := (*self)[ResourceNvidiaGPU]; ok { + return &val + } + return &resource.Quantity{} +} + +func GetContainerStatus(statuses []ContainerStatus, name string) (ContainerStatus, bool) { + for i := range statuses { + if statuses[i].Name == name { + return statuses[i], true + } + } + return ContainerStatus{}, false +} + +func GetExistingContainerStatus(statuses []ContainerStatus, name string) ContainerStatus { + for i := range statuses { + if statuses[i].Name == name { + return statuses[i] + } + } + return ContainerStatus{} +} + +// IsPodReady returns true if a pod is ready; false otherwise. +func IsPodReady(pod *Pod) bool { + return IsPodReadyConditionTrue(pod.Status) +} + +// IsPodReady retruns true if a pod is ready; false otherwise. +func IsPodReadyConditionTrue(status PodStatus) bool { + condition := GetPodReadyCondition(status) + return condition != nil && condition.Status == ConditionTrue +} + +// Extracts the pod ready condition from the given status and returns that. +// Returns nil if the condition is not present. +func GetPodReadyCondition(status PodStatus) *PodCondition { + _, condition := GetPodCondition(&status, PodReady) + return condition +} + +// GetPodCondition extracts the provided condition from the given status and returns that. +// Returns nil and -1 if the condition is not present, and the the index of the located condition. +func GetPodCondition(status *PodStatus, conditionType PodConditionType) (int, *PodCondition) { + if status == nil { + return -1, nil + } + for i := range status.Conditions { + if status.Conditions[i].Type == conditionType { + return i, &status.Conditions[i] + } + } + return -1, nil +} + +// GetNodeCondition extracts the provided condition from the given status and returns that. +// Returns nil and -1 if the condition is not present, and the the index of the located condition. +func GetNodeCondition(status *NodeStatus, conditionType NodeConditionType) (int, *NodeCondition) { + if status == nil { + return -1, nil + } + for i := range status.Conditions { + if status.Conditions[i].Type == conditionType { + return i, &status.Conditions[i] + } + } + return -1, nil +} + +// Updates existing pod condition or creates a new one. Sets LastTransitionTime to now if the +// status has changed. +// Returns true if pod condition has changed or has been added. +func UpdatePodCondition(status *PodStatus, condition *PodCondition) bool { + condition.LastTransitionTime = unversioned.Now() + // Try to find this pod condition. + conditionIndex, oldCondition := GetPodCondition(status, condition.Type) + + if oldCondition == nil { + // We are adding new pod condition. + status.Conditions = append(status.Conditions, *condition) + return true + } else { + // We are updating an existing condition, so we need to check if it has changed. + if condition.Status == oldCondition.Status { + condition.LastTransitionTime = oldCondition.LastTransitionTime + } + + isEqual := condition.Status == oldCondition.Status && + condition.Reason == oldCondition.Reason && + condition.Message == oldCondition.Message && + condition.LastProbeTime.Equal(oldCondition.LastProbeTime) && + condition.LastTransitionTime.Equal(oldCondition.LastTransitionTime) + + status.Conditions[conditionIndex] = *condition + // Return true if one of the fields have changed. + return !isEqual + } +} + +// IsNodeReady returns true if a node is ready; false otherwise. +func IsNodeReady(node *Node) bool { + for _, c := range node.Status.Conditions { + if c.Type == NodeReady { + return c.Status == ConditionTrue + } + } + return false +} + +// PodRequestsAndLimits returns a dictionary of all defined resources summed up for all +// containers of the pod. +func PodRequestsAndLimits(pod *Pod) (reqs map[ResourceName]resource.Quantity, limits map[ResourceName]resource.Quantity, err error) { + reqs, limits = map[ResourceName]resource.Quantity{}, map[ResourceName]resource.Quantity{} + for _, container := range pod.Spec.Containers { + for name, quantity := range container.Resources.Requests { + if value, ok := reqs[name]; !ok { + reqs[name] = *quantity.Copy() + } else { + value.Add(quantity) + reqs[name] = value + } + } + for name, quantity := range container.Resources.Limits { + if value, ok := limits[name]; !ok { + limits[name] = *quantity.Copy() + } else { + value.Add(quantity) + limits[name] = value + } + } + } + // init containers define the minimum of any resource + for _, container := range pod.Spec.InitContainers { + for name, quantity := range container.Resources.Requests { + value, ok := reqs[name] + if !ok { + reqs[name] = *quantity.Copy() + continue + } + if quantity.Cmp(value) > 0 { + reqs[name] = *quantity.Copy() + } + } + for name, quantity := range container.Resources.Limits { + value, ok := limits[name] + if !ok { + limits[name] = *quantity.Copy() + continue + } + if quantity.Cmp(value) > 0 { + limits[name] = *quantity.Copy() + } + } + } + return +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service/annotations.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service/annotations.go new file mode 100644 index 0000000000..ee275d3c1e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service/annotations.go @@ -0,0 +1,28 @@ +/* +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 service + +const ( + // AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers + // + // It should be a comma-separated list of CIDRs, e.g. `0.0.0.0/0` to + // allow full access (the default) or `18.0.0.0/8,56.0.0.0/8` to allow + // access only from the CIDRs currently allocated to MIT & the USPS. + // + // Not all cloud providers support this annotation, though AWS & GCE do. + AnnotationLoadBalancerSourceRangesKey = "service.beta.kubernetes.io/load-balancer-source-ranges" +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service/util.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service/util.go new file mode 100644 index 0000000000..ef4d6fa0b2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/service/util.go @@ -0,0 +1,68 @@ +/* +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 service + +import ( + "fmt" + "strings" + + "k8s.io/client-go/1.4/pkg/api" + netsets "k8s.io/client-go/1.4/pkg/util/net/sets" +) + +const ( + defaultLoadBalancerSourceRanges = "0.0.0.0/0" +) + +// IsAllowAll checks whether the netsets.IPNet allows traffic from 0.0.0.0/0 +func IsAllowAll(ipnets netsets.IPNet) bool { + for _, s := range ipnets.StringSlice() { + if s == "0.0.0.0/0" { + return true + } + } + return false +} + +// GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service. +// If the field is not specified, turn to parse and verify the AnnotationLoadBalancerSourceRangesKey annotation from a service, +// extracting the source ranges to allow, and if not present returns a default (allow-all) value. +func GetLoadBalancerSourceRanges(service *api.Service) (netsets.IPNet, error) { + var ipnets netsets.IPNet + var err error + // if SourceRange field is specified, ignore sourceRange annotation + if len(service.Spec.LoadBalancerSourceRanges) > 0 { + specs := service.Spec.LoadBalancerSourceRanges + ipnets, err = netsets.ParseIPNets(specs...) + + if err != nil { + return nil, fmt.Errorf("service.Spec.LoadBalancerSourceRanges: %v is not valid. Expecting a list of IP ranges. For example, 10.0.0.0/24. Error msg: %v", specs, err) + } + } else { + val := service.Annotations[AnnotationLoadBalancerSourceRangesKey] + val = strings.TrimSpace(val) + if val == "" { + val = defaultLoadBalancerSourceRanges + } + specs := strings.Split(val, ",") + ipnets, err = netsets.ParseIPNets(specs...) + if err != nil { + return nil, fmt.Errorf("%s: %s is not valid. Expecting a comma-separated list of source IP ranges. For example, 10.0.0.0/24,192.168.2.0/24", AnnotationLoadBalancerSourceRangesKey, val) + } + } + return ipnets, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/types.generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/types.generated.go new file mode 100644 index 0000000000..ce1a66446b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/types.generated.go @@ -0,0 +1,60304 @@ +/* +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 api + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg3_resource "k8s.io/client-go/1.4/pkg/api/resource" + pkg2_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + pkg6_fields "k8s.io/client-go/1.4/pkg/fields" + pkg5_labels "k8s.io/client-go/1.4/pkg/labels" + pkg7_runtime "k8s.io/client-go/1.4/pkg/runtime" + pkg1_types "k8s.io/client-go/1.4/pkg/types" + pkg4_intstr "k8s.io/client-go/1.4/pkg/util/intstr" + "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 pkg3_resource.Quantity + var v1 pkg2_unversioned.Time + var v2 pkg6_fields.Selector + var v3 pkg5_labels.Selector + var v4 pkg7_runtime.Object + var v5 pkg1_types.UID + var v6 pkg4_intstr.IntOrString + var v7 time.Time + _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7 + } +} + +func (x *ObjectMeta) 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 [14]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Name != "" + yyq2[1] = x.GenerateName != "" + yyq2[2] = x.Namespace != "" + yyq2[3] = x.SelfLink != "" + yyq2[4] = x.UID != "" + yyq2[5] = x.ResourceVersion != "" + yyq2[6] = x.Generation != 0 + yyq2[7] = true + yyq2[8] = x.DeletionTimestamp != nil + yyq2[9] = x.DeletionGracePeriodSeconds != nil + yyq2[10] = len(x.Labels) != 0 + yyq2[11] = len(x.Annotations) != 0 + yyq2[12] = len(x.OwnerReferences) != 0 + yyq2[13] = len(x.Finalizers) != 0 + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(14) + } else { + yynn2 = 0 + 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.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[2] { + yym10 := z.EncBinary() + _ = yym10 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym11 := z.EncBinary() + _ = yym11 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[3] { + yym13 := z.EncBinary() + _ = yym13 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym14 := z.EncBinary() + _ = yym14 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[4] { + yym16 := z.EncBinary() + _ = yym16 + 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[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym17 := z.EncBinary() + _ = yym17 + 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[5] { + yym19 := z.EncBinary() + _ = yym19 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym20 := z.EncBinary() + _ = yym20 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[6] { + yym22 := z.EncBinary() + _ = yym22 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generation")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym23 := z.EncBinary() + _ = yym23 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[7] { + yy25 := &x.CreationTimestamp + yym26 := z.EncBinary() + _ = yym26 + if false { + } else if z.HasExtensions() && z.EncExt(yy25) { + } else if yym26 { + z.EncBinaryMarshal(yy25) + } else if !yym26 && z.IsJSONHandle() { + z.EncJSONMarshal(yy25) + } else { + z.EncFallback(yy25) + } + } else { + r.EncodeNil() + } + } else { + if yyq2[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy27 := &x.CreationTimestamp + yym28 := z.EncBinary() + _ = yym28 + if false { + } else if z.HasExtensions() && z.EncExt(yy27) { + } else if yym28 { + z.EncBinaryMarshal(yy27) + } else if !yym28 && z.IsJSONHandle() { + z.EncJSONMarshal(yy27) + } else { + z.EncFallback(yy27) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[8] { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym30 := z.EncBinary() + _ = yym30 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym30 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym30 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym31 := z.EncBinary() + _ = yym31 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym31 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym31 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[9] { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy33 := *x.DeletionGracePeriodSeconds + yym34 := z.EncBinary() + _ = yym34 + if false { + } else { + r.EncodeInt(int64(yy33)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy35 := *x.DeletionGracePeriodSeconds + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeInt(int64(yy35)) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[10] { + if x.Labels == nil { + r.EncodeNil() + } else { + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labels")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Labels == nil { + r.EncodeNil() + } else { + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[11] { + if x.Annotations == nil { + r.EncodeNil() + } else { + yym41 := z.EncBinary() + _ = yym41 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym42 := z.EncBinary() + _ = yym42 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[12] { + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym44 := z.EncBinary() + _ = yym44 + if false { + } else { + h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym45 := z.EncBinary() + _ = yym45 + if false { + } else { + h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[13] { + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym47 := z.EncBinary() + _ = yym47 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym48 := z.EncBinary() + _ = yym48 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym49 := z.DecBinary() + _ = yym49 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct50 := r.ContainerType() + if yyct50 == codecSelferValueTypeMap1234 { + yyl50 := r.ReadMapStart() + if yyl50 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl50, d) + } + } else if yyct50 == codecSelferValueTypeArray1234 { + yyl50 := r.ReadArrayStart() + if yyl50 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl50, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys51Slc = r.DecodeBytes(yys51Slc, true, true) + yys51 := string(yys51Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys51 { + 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 = pkg1_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 = pkg2_unversioned.Time{} + } else { + yyv59 := &x.CreationTimestamp + yym60 := z.DecBinary() + _ = yym60 + if false { + } else if z.HasExtensions() && z.DecExt(yyv59) { + } else if yym60 { + z.DecBinaryUnmarshal(yyv59) + } else if !yym60 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv59) + } else { + z.DecFallback(yyv59, false) + } + } + case "deletionTimestamp": + if r.TryDecodeAsNil() { + if x.DeletionTimestamp != nil { + x.DeletionTimestamp = nil + } + } else { + if x.DeletionTimestamp == nil { + x.DeletionTimestamp = new(pkg2_unversioned.Time) + } + yym62 := z.DecBinary() + _ = yym62 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym62 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym62 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + case "deletionGracePeriodSeconds": + if r.TryDecodeAsNil() { + if x.DeletionGracePeriodSeconds != nil { + x.DeletionGracePeriodSeconds = nil + } + } else { + if x.DeletionGracePeriodSeconds == nil { + x.DeletionGracePeriodSeconds = new(int64) + } + yym64 := z.DecBinary() + _ = yym64 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "labels": + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv65 := &x.Labels + yym66 := z.DecBinary() + _ = yym66 + if false { + } else { + z.F.DecMapStringStringX(yyv65, false, d) + } + } + case "annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv67 := &x.Annotations + yym68 := z.DecBinary() + _ = yym68 + if false { + } else { + z.F.DecMapStringStringX(yyv67, false, d) + } + } + case "ownerReferences": + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv69 := &x.OwnerReferences + yym70 := z.DecBinary() + _ = yym70 + if false { + } else { + h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d) + } + } + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv71 := &x.Finalizers + yym72 := z.DecBinary() + _ = yym72 + if false { + } else { + z.F.DecSliceStringX(yyv71, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys51) + } // end switch yys51 + } // end for yyj51 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.GenerateName = "" + } else { + x.GenerateName = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SelfLink = "" + } else { + x.SelfLink = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Generation = 0 + } else { + x.Generation = int64(r.DecodeInt(64)) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CreationTimestamp = pkg2_unversioned.Time{} + } else { + yyv81 := &x.CreationTimestamp + yym82 := z.DecBinary() + _ = yym82 + if false { + } else if z.HasExtensions() && z.DecExt(yyv81) { + } else if yym82 { + z.DecBinaryUnmarshal(yyv81) + } else if !yym82 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv81) + } else { + z.DecFallback(yyv81, false) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + 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(pkg2_unversioned.Time) + } + yym84 := z.DecBinary() + _ = yym84 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym84 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym84 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + 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) + } + yym86 := z.DecBinary() + _ = yym86 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv87 := &x.Labels + yym88 := z.DecBinary() + _ = yym88 + if false { + } else { + z.F.DecMapStringStringX(yyv87, false, d) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv89 := &x.Annotations + yym90 := z.DecBinary() + _ = yym90 + if false { + } else { + z.F.DecMapStringStringX(yyv89, false, d) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv91 := &x.OwnerReferences + yym92 := z.DecBinary() + _ = yym92 + if false { + } else { + h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv93 := &x.Finalizers + yym94 := z.DecBinary() + _ = yym94 + if false { + } else { + z.F.DecSliceStringX(yyv93, false, d) + } + } + for { + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj73-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym95 := z.EncBinary() + _ = yym95 + 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) + } else { + yynn96 = 1 + for _, b := range yyq96 { + if b { + yynn96++ + } + } + r.EncodeMapStart(yynn96) + yynn96 = 0 + } + if yyr96 || yy2arr96 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym98 := z.EncBinary() + _ = yym98 + 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) + yym99 := z.EncBinary() + _ = yym99 + 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 { + yyn105 = true + goto LABEL105 + } + LABEL105: + if yyr96 || yy2arr96 { + if yyn105 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[6] { + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secret")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn105 { + r.EncodeNil() + } else { + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } + } + } + var yyn106 bool + if x.VolumeSource.NFS == nil { + yyn106 = true + goto LABEL106 + } + LABEL106: + if yyr96 || yy2arr96 { + if yyn106 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[7] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn106 { + r.EncodeNil() + } else { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + } + var yyn107 bool + if x.VolumeSource.ISCSI == nil { + yyn107 = true + goto LABEL107 + } + LABEL107: + if yyr96 || yy2arr96 { + if yyn107 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[8] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn107 { + r.EncodeNil() + } else { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + } + var yyn108 bool + if x.VolumeSource.Glusterfs == nil { + yyn108 = true + goto LABEL108 + } + LABEL108: + if yyr96 || yy2arr96 { + if yyn108 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[9] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn108 { + r.EncodeNil() + } else { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + } + var yyn109 bool + if x.VolumeSource.PersistentVolumeClaim == nil { + yyn109 = true + goto LABEL109 + } + LABEL109: + if yyr96 || yy2arr96 { + if yyn109 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[10] { + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn109 { + r.EncodeNil() + } else { + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } + } + } + var yyn110 bool + if x.VolumeSource.RBD == nil { + yyn110 = true + goto LABEL110 + } + LABEL110: + if yyr96 || yy2arr96 { + if yyn110 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[11] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn110 { + r.EncodeNil() + } else { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + } + var yyn111 bool + if x.VolumeSource.FlexVolume == nil { + yyn111 = true + goto LABEL111 + } + LABEL111: + if yyr96 || yy2arr96 { + if yyn111 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[12] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn111 { + r.EncodeNil() + } else { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn112 bool + if x.VolumeSource.Cinder == nil { + yyn112 = true + goto LABEL112 + } + LABEL112: + if yyr96 || yy2arr96 { + if yyn112 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[13] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn112 { + r.EncodeNil() + } else { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + } + var yyn113 bool + if x.VolumeSource.CephFS == nil { + yyn113 = true + goto LABEL113 + } + LABEL113: + if yyr96 || yy2arr96 { + if yyn113 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[14] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn113 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn114 bool + if x.VolumeSource.Flocker == nil { + yyn114 = true + goto LABEL114 + } + LABEL114: + if yyr96 || yy2arr96 { + if yyn114 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[15] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn114 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn115 bool + if x.VolumeSource.DownwardAPI == nil { + yyn115 = true + goto LABEL115 + } + LABEL115: + if yyr96 || yy2arr96 { + if yyn115 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[16] { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn115 { + r.EncodeNil() + } else { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } + } + } + var yyn116 bool + if x.VolumeSource.FC == nil { + yyn116 = true + goto LABEL116 + } + LABEL116: + if yyr96 || yy2arr96 { + if yyn116 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[17] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn116 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn117 bool + if x.VolumeSource.AzureFile == nil { + yyn117 = true + goto LABEL117 + } + LABEL117: + if yyr96 || yy2arr96 { + if yyn117 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[18] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn117 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn118 bool + if x.VolumeSource.ConfigMap == nil { + yyn118 = true + goto LABEL118 + } + LABEL118: + if yyr96 || yy2arr96 { + if yyn118 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[19] { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMap")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn118 { + r.EncodeNil() + } else { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } + } + } + var yyn119 bool + if x.VolumeSource.VsphereVolume == nil { + yyn119 = true + goto LABEL119 + } + LABEL119: + if yyr96 || yy2arr96 { + if yyn119 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[20] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[20] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn119 { + r.EncodeNil() + } else { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + } + if yyr96 || yy2arr96 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym120 := z.DecBinary() + _ = yym120 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct121 := r.ContainerType() + if yyct121 == codecSelferValueTypeMap1234 { + yyl121 := r.ReadMapStart() + if yyl121 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl121, d) + } + } else if yyct121 == codecSelferValueTypeArray1234 { + yyl121 := r.ReadArrayStart() + if yyl121 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl121, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys122Slc = r.DecodeBytes(yys122Slc, true, true) + yys122 := string(yys122Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys122 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "hostPath": + if x.VolumeSource.HostPath == nil { + x.VolumeSource.HostPath = new(HostPathVolumeSource) + } + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "emptyDir": + if x.VolumeSource.EmptyDir == nil { + x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) + } + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + case "gcePersistentDisk": + if x.VolumeSource.GCEPersistentDisk == nil { + x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if x.VolumeSource.AWSElasticBlockStore == nil { + x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "gitRepo": + if x.VolumeSource.GitRepo == nil { + x.VolumeSource.GitRepo = new(GitRepoVolumeSource) + } + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + case "secret": + if x.VolumeSource.Secret == nil { + x.VolumeSource.Secret = new(SecretVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + case "nfs": + if x.VolumeSource.NFS == nil { + x.VolumeSource.NFS = new(NFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "iscsi": + if x.VolumeSource.ISCSI == nil { + x.VolumeSource.ISCSI = new(ISCSIVolumeSource) + } + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "glusterfs": + if x.VolumeSource.Glusterfs == nil { + x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "persistentVolumeClaim": + if x.VolumeSource.PersistentVolumeClaim == nil { + x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + case "rbd": + if x.VolumeSource.RBD == nil { + x.VolumeSource.RBD = new(RBDVolumeSource) + } + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "flexVolume": + if x.VolumeSource.FlexVolume == nil { + x.VolumeSource.FlexVolume = new(FlexVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "cinder": + if x.VolumeSource.Cinder == nil { + x.VolumeSource.Cinder = new(CinderVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if x.VolumeSource.CephFS == nil { + x.VolumeSource.CephFS = new(CephFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "flocker": + if x.VolumeSource.Flocker == nil { + x.VolumeSource.Flocker = new(FlockerVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "downwardAPI": + if x.VolumeSource.DownwardAPI == nil { + x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) + } + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + case "fc": + if x.VolumeSource.FC == nil { + x.VolumeSource.FC = new(FCVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "azureFile": + if x.VolumeSource.AzureFile == nil { + x.VolumeSource.AzureFile = new(AzureFileVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "configMap": + if x.VolumeSource.ConfigMap == nil { + x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) + } + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + case "vsphereVolume": + if x.VolumeSource.VsphereVolume == nil { + x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys122) + } // end switch yys122 + } // end for yyj122 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + if x.VolumeSource.HostPath == nil { + x.VolumeSource.HostPath = new(HostPathVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + if x.VolumeSource.EmptyDir == nil { + x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + if x.VolumeSource.GCEPersistentDisk == nil { + x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + if x.VolumeSource.AWSElasticBlockStore == nil { + x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + if x.VolumeSource.GitRepo == nil { + x.VolumeSource.GitRepo = new(GitRepoVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + if x.VolumeSource.Secret == nil { + x.VolumeSource.Secret = new(SecretVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + if x.VolumeSource.NFS == nil { + x.VolumeSource.NFS = new(NFSVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + if x.VolumeSource.ISCSI == nil { + x.VolumeSource.ISCSI = new(ISCSIVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + if x.VolumeSource.Glusterfs == nil { + x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + if x.VolumeSource.PersistentVolumeClaim == nil { + x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + if x.VolumeSource.RBD == nil { + x.VolumeSource.RBD = new(RBDVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + if x.VolumeSource.FlexVolume == nil { + x.VolumeSource.FlexVolume = new(FlexVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + if x.VolumeSource.Cinder == nil { + x.VolumeSource.Cinder = new(CinderVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + if x.VolumeSource.CephFS == nil { + x.VolumeSource.CephFS = new(CephFSVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + if x.VolumeSource.Flocker == nil { + x.VolumeSource.Flocker = new(FlockerVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + if x.VolumeSource.DownwardAPI == nil { + x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + if x.VolumeSource.FC == nil { + x.VolumeSource.FC = new(FCVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + if x.VolumeSource.AzureFile == nil { + x.VolumeSource.AzureFile = new(AzureFileVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + if x.VolumeSource.ConfigMap == nil { + x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + if x.VolumeSource.VsphereVolume == nil { + x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + for { + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj144-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym166 := z.EncBinary() + _ = yym166 + 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) + } else { + yynn167 = 0 + for _, b := range yyq167 { + if b { + yynn167++ + } + } + r.EncodeMapStart(yynn167) + yynn167 = 0 + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[0] { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[1] { + if x.EmptyDir == nil { + r.EncodeNil() + } else { + x.EmptyDir.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.EmptyDir == nil { + r.EncodeNil() + } else { + x.EmptyDir.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[2] { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[3] { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[4] { + if x.GitRepo == nil { + r.EncodeNil() + } else { + x.GitRepo.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GitRepo == nil { + r.EncodeNil() + } else { + x.GitRepo.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[5] { + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secret")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[6] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[7] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[8] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[9] { + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[10] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[11] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[12] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[13] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[14] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[15] { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[16] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[17] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[18] { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMap")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[19] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym188 := z.DecBinary() + _ = yym188 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct189 := r.ContainerType() + if yyct189 == codecSelferValueTypeMap1234 { + yyl189 := r.ReadMapStart() + if yyl189 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl189, d) + } + } else if yyct189 == codecSelferValueTypeArray1234 { + yyl189 := r.ReadArrayStart() + if yyl189 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl189, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys190Slc = r.DecodeBytes(yys190Slc, true, true) + yys190 := string(yys190Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys190 { + case "hostPath": + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "emptyDir": + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + case "gcePersistentDisk": + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "gitRepo": + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + case "secret": + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + case "nfs": + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "iscsi": + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "glusterfs": + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "persistentVolumeClaim": + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + case "rbd": + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "flexVolume": + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "cinder": + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "flocker": + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "downwardAPI": + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + case "fc": + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "azureFile": + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "configMap": + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + case "vsphereVolume": + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys190) + } // end switch yys190 + } // end for yyj190 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + for { + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj211-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym232 := z.EncBinary() + _ = yym232 + 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) + } else { + yynn233 = 0 + for _, b := range yyq233 { + if b { + yynn233++ + } + } + r.EncodeMapStart(yynn233) + yynn233 = 0 + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[0] { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[1] { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[2] { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[3] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[4] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[5] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[6] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[7] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[8] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[9] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[10] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[11] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[12] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[13] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq233[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym248 := z.DecBinary() + _ = yym248 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct249 := r.ContainerType() + if yyct249 == codecSelferValueTypeMap1234 { + yyl249 := r.ReadMapStart() + if yyl249 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl249, d) + } + } else if yyct249 == codecSelferValueTypeArray1234 { + yyl249 := r.ReadArrayStart() + if yyl249 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl249, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys250Slc = r.DecodeBytes(yys250Slc, true, true) + yys250 := string(yys250Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys250 { + case "gcePersistentDisk": + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "hostPath": + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "glusterfs": + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "nfs": + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "rbd": + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "iscsi": + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "flexVolume": + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "cinder": + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "fc": + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "flocker": + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "azureFile": + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "vsphereVolume": + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys250) + } // end switch yys250 + } // end for yyj250 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + for { + yyj265++ + if yyhl265 { + yyb265 = yyj265 > l + } else { + yyb265 = r.CheckBreak() + } + if yyb265 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj265-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym280 := z.EncBinary() + _ = yym280 + 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 { + r.EncodeArrayStart(2) + } else { + yynn281 = 1 + for _, b := range yyq281 { + if b { + yynn281++ + } + } + r.EncodeMapStart(yynn281) + yynn281 = 0 + } + if yyr281 || yy2arr281 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym283 := z.EncBinary() + _ = yym283 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("claimName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym284 := z.EncBinary() + _ = yym284 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) + } + } + if yyr281 || yy2arr281 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq281[1] { + yym286 := z.EncBinary() + _ = yym286 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq281[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym287 := z.EncBinary() + _ = yym287 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr281 || yy2arr281 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym288 := z.DecBinary() + _ = yym288 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct289 := r.ContainerType() + if yyct289 == codecSelferValueTypeMap1234 { + yyl289 := r.ReadMapStart() + if yyl289 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl289, d) + } + } else if yyct289 == codecSelferValueTypeArray1234 { + yyl289 := r.ReadArrayStart() + if yyl289 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl289, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys290Slc = r.DecodeBytes(yys290Slc, true, true) + yys290 := string(yys290Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys290 { + case "claimName": + if r.TryDecodeAsNil() { + x.ClaimName = "" + } else { + x.ClaimName = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys290) + } // end switch yys290 + } // end for yyj290 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb293 = r.CheckBreak() + } + if yyb293 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClaimName = "" + } else { + x.ClaimName = string(r.DecodeString()) + } + yyj293++ + if yyhl293 { + yyb293 = yyj293 > l + } else { + yyb293 = r.CheckBreak() + } + if yyb293 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj293++ + if yyhl293 { + yyb293 = yyj293 > l + } else { + yyb293 = r.CheckBreak() + } + if yyb293 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj293-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym296 := z.EncBinary() + _ = yym296 + 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 { + r.EncodeArrayStart(5) + } else { + yynn297 = 0 + for _, b := range yyq297 { + if b { + yynn297++ + } + } + r.EncodeMapStart(yynn297) + yynn297 = 0 + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[0] { + yym299 := z.EncBinary() + _ = yym299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq297[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym300 := z.EncBinary() + _ = yym300 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[1] { + yym302 := z.EncBinary() + _ = yym302 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq297[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym303 := z.EncBinary() + _ = yym303 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[2] { + yy305 := &x.ObjectMeta + yy305.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq297[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy306 := &x.ObjectMeta + yy306.CodecEncodeSelf(e) + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[3] { + yy308 := &x.Spec + yy308.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq297[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy309 := &x.Spec + yy309.CodecEncodeSelf(e) + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[4] { + yy311 := &x.Status + yy311.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq297[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy312 := &x.Status + yy312.CodecEncodeSelf(e) + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym313 := z.DecBinary() + _ = yym313 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct314 := r.ContainerType() + if yyct314 == codecSelferValueTypeMap1234 { + yyl314 := r.ReadMapStart() + if yyl314 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl314, d) + } + } else if yyct314 == codecSelferValueTypeArray1234 { + yyl314 := r.ReadArrayStart() + if yyl314 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl314, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys315Slc = r.DecodeBytes(yys315Slc, true, true) + yys315 := string(yys315Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys315 { + 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 { + yyv318 := &x.ObjectMeta + yyv318.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeSpec{} + } else { + yyv319 := &x.Spec + yyv319.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeStatus{} + } else { + yyv320 := &x.Status + yyv320.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys315) + } // end switch yys315 + } // end for yyj315 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv324 := &x.ObjectMeta + yyv324.CodecDecodeSelf(d) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeSpec{} + } else { + yyv325 := &x.Spec + yyv325.CodecDecodeSelf(d) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeStatus{} + } else { + yyv326 := &x.Status + yyv326.CodecDecodeSelf(d) + } + for { + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj321-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym327 := z.EncBinary() + _ = yym327 + 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) + } else { + yynn328 = 1 + for _, b := range yyq328 { + if b { + yynn328++ + } + } + r.EncodeMapStart(yynn328) + yynn328 = 0 + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + var yyn330 bool + if x.PersistentVolumeSource.GCEPersistentDisk == nil { + yyn330 = true + goto LABEL330 + } + LABEL330: + if yyr328 || yy2arr328 { + if yyn330 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[1] { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn330 { + r.EncodeNil() + } else { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } + } + } + var yyn331 bool + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { + yyn331 = true + goto LABEL331 + } + LABEL331: + if yyr328 || yy2arr328 { + if yyn331 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[2] { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn331 { + r.EncodeNil() + } else { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } + } + } + var yyn332 bool + if x.PersistentVolumeSource.HostPath == nil { + yyn332 = true + goto LABEL332 + } + LABEL332: + if yyr328 || yy2arr328 { + if yyn332 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[3] { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn332 { + r.EncodeNil() + } else { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } + } + } + var yyn333 bool + if x.PersistentVolumeSource.Glusterfs == nil { + yyn333 = true + goto LABEL333 + } + LABEL333: + if yyr328 || yy2arr328 { + if yyn333 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[4] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn333 { + r.EncodeNil() + } else { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + } + var yyn334 bool + if x.PersistentVolumeSource.NFS == nil { + yyn334 = true + goto LABEL334 + } + LABEL334: + if yyr328 || yy2arr328 { + if yyn334 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[5] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn334 { + r.EncodeNil() + } else { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + } + var yyn335 bool + if x.PersistentVolumeSource.RBD == nil { + yyn335 = true + goto LABEL335 + } + LABEL335: + if yyr328 || yy2arr328 { + if yyn335 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[6] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn335 { + r.EncodeNil() + } else { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + } + var yyn336 bool + if x.PersistentVolumeSource.ISCSI == nil { + yyn336 = true + goto LABEL336 + } + LABEL336: + if yyr328 || yy2arr328 { + if yyn336 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[7] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn336 { + r.EncodeNil() + } else { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + } + var yyn337 bool + if x.PersistentVolumeSource.FlexVolume == nil { + yyn337 = true + goto LABEL337 + } + LABEL337: + if yyr328 || yy2arr328 { + if yyn337 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[8] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn337 { + r.EncodeNil() + } else { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn338 bool + if x.PersistentVolumeSource.Cinder == nil { + yyn338 = true + goto LABEL338 + } + LABEL338: + if yyr328 || yy2arr328 { + if yyn338 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[9] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn338 { + r.EncodeNil() + } else { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + } + var yyn339 bool + if x.PersistentVolumeSource.CephFS == nil { + yyn339 = true + goto LABEL339 + } + LABEL339: + if yyr328 || yy2arr328 { + if yyn339 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[10] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn339 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn340 bool + if x.PersistentVolumeSource.FC == nil { + yyn340 = true + goto LABEL340 + } + LABEL340: + if yyr328 || yy2arr328 { + if yyn340 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[11] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn340 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn341 bool + if x.PersistentVolumeSource.Flocker == nil { + yyn341 = true + goto LABEL341 + } + LABEL341: + if yyr328 || yy2arr328 { + if yyn341 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[12] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn341 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn342 bool + if x.PersistentVolumeSource.AzureFile == nil { + yyn342 = true + goto LABEL342 + } + LABEL342: + if yyr328 || yy2arr328 { + if yyn342 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[13] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn342 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn343 bool + if x.PersistentVolumeSource.VsphereVolume == nil { + yyn343 = true + goto LABEL343 + } + LABEL343: + if yyr328 || yy2arr328 { + if yyn343 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[14] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn343 { + r.EncodeNil() + } else { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[15] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym345 := z.EncBinary() + _ = yym345 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq328[15] { + 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 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[16] { + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq328[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("claimRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[17] { + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq328[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym349 := z.DecBinary() + _ = yym349 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct350 := r.ContainerType() + if yyct350 == codecSelferValueTypeMap1234 { + yyl350 := r.ReadMapStart() + if yyl350 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl350, d) + } + } else if yyct350 == codecSelferValueTypeArray1234 { + yyl350 := r.ReadArrayStart() + if yyl350 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl350, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys351Slc = r.DecodeBytes(yys351Slc, true, true) + yys351 := string(yys351Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys351 { + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv352 := &x.Capacity + yyv352.CodecDecodeSelf(d) + } + case "gcePersistentDisk": + if x.PersistentVolumeSource.GCEPersistentDisk == nil { + x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { + x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "hostPath": + if x.PersistentVolumeSource.HostPath == nil { + x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) + } + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "glusterfs": + if x.PersistentVolumeSource.Glusterfs == nil { + x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "nfs": + if x.PersistentVolumeSource.NFS == nil { + x.PersistentVolumeSource.NFS = new(NFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "rbd": + if x.PersistentVolumeSource.RBD == nil { + x.PersistentVolumeSource.RBD = new(RBDVolumeSource) + } + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "iscsi": + if x.PersistentVolumeSource.ISCSI == nil { + x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) + } + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "flexVolume": + if x.PersistentVolumeSource.FlexVolume == nil { + x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "cinder": + if x.PersistentVolumeSource.Cinder == nil { + x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if x.PersistentVolumeSource.CephFS == nil { + x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "fc": + if x.PersistentVolumeSource.FC == nil { + x.PersistentVolumeSource.FC = new(FCVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "flocker": + if x.PersistentVolumeSource.Flocker == nil { + x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "azureFile": + if x.PersistentVolumeSource.AzureFile == nil { + x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "vsphereVolume": + if x.PersistentVolumeSource.VsphereVolume == nil { + x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + case "accessModes": + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv367 := &x.AccessModes + yym368 := z.DecBinary() + _ = yym368 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv367), d) + } + } + case "claimRef": + if r.TryDecodeAsNil() { + if x.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + case "persistentVolumeReclaimPolicy": + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys351) + } // end switch yys351 + } // end for yyj351 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv372 := &x.Capacity + yyv372.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.GCEPersistentDisk == nil { + x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { + x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.HostPath == nil { + x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.Glusterfs == nil { + x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.NFS == nil { + x.PersistentVolumeSource.NFS = new(NFSVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.RBD == nil { + x.PersistentVolumeSource.RBD = new(RBDVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.ISCSI == nil { + x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.FlexVolume == nil { + x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.Cinder == nil { + x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.CephFS == nil { + x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.FC == nil { + x.PersistentVolumeSource.FC = new(FCVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.Flocker == nil { + x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.AzureFile == nil { + x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.VsphereVolume == nil { + x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv387 := &x.AccessModes + yym388 := z.DecBinary() + _ = yym388 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv387), d) + } + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } + for { + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj371-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym391 := z.EncBinary() + _ = yym391 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym392 := z.DecBinary() + _ = yym392 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym393 := z.EncBinary() + _ = yym393 + 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 { + r.EncodeArrayStart(3) + } else { + yynn394 = 0 + for _, b := range yyq394 { + if b { + yynn394++ + } + } + r.EncodeMapStart(yynn394) + yynn394 = 0 + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq394[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq394[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq394[1] { + yym397 := z.EncBinary() + _ = yym397 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq394[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym398 := z.EncBinary() + _ = yym398 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq394[2] { + yym400 := z.EncBinary() + _ = yym400 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq394[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym401 := z.EncBinary() + _ = yym401 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym402 := z.DecBinary() + _ = yym402 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct403 := r.ContainerType() + if yyct403 == codecSelferValueTypeMap1234 { + yyl403 := r.ReadMapStart() + if yyl403 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl403, d) + } + } else if yyct403 == codecSelferValueTypeArray1234 { + yyl403 := r.ReadArrayStart() + if yyl403 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl403, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys404Slc = r.DecodeBytes(yys404Slc, true, true) + yys404 := string(yys404Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys404 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PersistentVolumePhase(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys404) + } // end switch yys404 + } // end for yyj404 + 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 + var yyj437 int + var yyb437 bool + var yyhl437 bool = l >= 0 + 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ListMeta = pkg2_unversioned.ListMeta{} + } 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) + } + } + for { + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l + } else { + yyb437 = r.CheckBreak() + } + if yyb437 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj437-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 { + yym444 := z.EncBinary() + _ = yym444 + 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) + } else { + yynn445 = 0 + for _, b := range yyq445 { + if b { + yynn445++ + } + } + r.EncodeMapStart(yynn445) + yynn445 = 0 + } + if yyr445 || yy2arr445 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq445[0] { + yym447 := z.EncBinary() + _ = yym447 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq445[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym448 := z.EncBinary() + _ = yym448 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr445 || yy2arr445 { + 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) + yym451 := z.EncBinary() + _ = yym451 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr445 || yy2arr445 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq445[2] { + yy453 := &x.ObjectMeta + yy453.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq445[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 + if false { + } 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)) + } + } + } + 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 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym489 := z.EncBinary() + _ = yym489 + 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 { + yym490 := z.EncBinary() + _ = yym490 + if false { + } else { + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + } + } + } + if yyr476 || yy2arr476 { + 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 + yym491 := z.DecBinary() + _ = yym491 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct492 := r.ContainerType() + if yyct492 == codecSelferValueTypeMap1234 { + yyl492 := r.ReadMapStart() + if yyl492 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl492, d) + } + } else if yyct492 == codecSelferValueTypeArray1234 { + yyl492 := r.ReadArrayStart() + if yyl492 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl492, 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 yys493Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys493Slc + var yyhl493 bool = l >= 0 + for yyj493 := 0; ; yyj493++ { + if yyhl493 { + if yyj493 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys493Slc = r.DecodeBytes(yys493Slc, true, true) + yys493 := string(yys493Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys493 { + 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 { + yyv496 := &x.ListMeta + yym497 := z.DecBinary() + _ = yym497 + if false { + } else if z.HasExtensions() && z.DecExt(yyv496) { + } else { + z.DecFallback(yyv496, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv498 := &x.Items + yym499 := z.DecBinary() + _ = yym499 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv498), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys493) + } // end switch yys493 + } // end for yyj493 + 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 yyj500 int + var yyb500 bool + var yyhl500 bool = l >= 0 + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv503 := &x.ListMeta + yym504 := z.DecBinary() + _ = yym504 + if false { + } else if z.HasExtensions() && z.DecExt(yyv503) { + } else { + z.DecFallback(yyv503, false) + } + } + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv505 := &x.Items + yym506 := z.DecBinary() + _ = yym506 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv505), d) + } + } + for { + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj500-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym507 := z.EncBinary() + _ = yym507 + 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 { + r.EncodeArrayStart(4) + } else { + yynn508 = 0 + for _, b := range yyq508 { + if b { + yynn508++ + } + } + r.EncodeMapStart(yynn508) + yynn508 = 0 + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[0] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym510 := z.EncBinary() + _ = yym510 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq508[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 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym513 := z.EncBinary() + _ = yym513 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq508[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[2] { + yy516 := &x.Resources + yy516.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq508[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy517 := &x.Resources + yy517.CodecEncodeSelf(e) + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[3] { + yym519 := z.EncBinary() + _ = yym519 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq508[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym520 := z.EncBinary() + _ = yym520 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) + } + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym521 := z.DecBinary() + _ = yym521 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct522 := r.ContainerType() + if yyct522 == codecSelferValueTypeMap1234 { + yyl522 := r.ReadMapStart() + if yyl522 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl522, d) + } + } else if yyct522 == codecSelferValueTypeArray1234 { + yyl522 := r.ReadArrayStart() + if yyl522 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl522, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys523Slc = r.DecodeBytes(yys523Slc, true, true) + yys523 := string(yys523Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys523 { + case "accessModes": + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv524 := &x.AccessModes + yym525 := z.DecBinary() + _ = yym525 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv524), d) + } + } + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg2_unversioned.LabelSelector) + } + yym527 := z.DecBinary() + _ = yym527 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + case "resources": + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv528 := &x.Resources + yyv528.CodecDecodeSelf(d) + } + case "volumeName": + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys523) + } // end switch yys523 + } // end for yyj523 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv531 := &x.AccessModes + yym532 := z.DecBinary() + _ = yym532 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv531), d) + } + } + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg2_unversioned.LabelSelector) + } + yym534 := z.DecBinary() + _ = yym534 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv535 := &x.Resources + yyv535.CodecDecodeSelf(d) + } + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = string(r.DecodeString()) + } + for { + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj530-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym537 := z.EncBinary() + _ = yym537 + 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 { + r.EncodeArrayStart(3) + } else { + yynn538 = 0 + for _, b := range yyq538 { + if b { + yynn538++ + } + } + r.EncodeMapStart(yynn538) + yynn538 = 0 + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq538[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq538[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq538[1] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym541 := z.EncBinary() + _ = yym541 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq538[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 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq538[2] { + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq538[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym544 := z.DecBinary() + _ = yym544 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct545 := r.ContainerType() + if yyct545 == codecSelferValueTypeMap1234 { + yyl545 := r.ReadMapStart() + if yyl545 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl545, d) + } + } else if yyct545 == codecSelferValueTypeArray1234 { + yyl545 := r.ReadArrayStart() + if yyl545 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl545, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys546Slc = r.DecodeBytes(yys546Slc, true, true) + yys546 := string(yys546Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys546 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) + } + case "accessModes": + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv548 := &x.AccessModes + yym549 := z.DecBinary() + _ = yym549 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv548), d) + } + } + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv550 := &x.Capacity + yyv550.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys546) + } // end switch yys546 + } // end for yyj546 + 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 + var yyj580 int + var yyb580 bool + var yyhl580 bool = l >= 0 + 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.Medium = "" + } else { + x.Medium = StorageMedium(r.DecodeString()) + } + for { + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l + } else { + yyb580 = r.CheckBreak() + } + if yyb580 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj580-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 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym583 := z.DecBinary() + _ = yym583 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym584 := z.EncBinary() + _ = yym584 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym585 := z.DecBinary() + _ = yym585 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym586 := z.EncBinary() + _ = yym586 + 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 { + r.EncodeArrayStart(4) + } else { + yynn587 = 1 + for _, b := range yyq587 { + if b { + yynn587++ + } + } + r.EncodeMapStart(yynn587) + yynn587 = 0 + } + if yyr587 || yy2arr587 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym589 := z.EncBinary() + _ = yym589 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("pdName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym590 := z.EncBinary() + _ = yym590 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) + } + } + if yyr587 || yy2arr587 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq587[1] { + yym592 := z.EncBinary() + _ = yym592 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq587[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym593 := z.EncBinary() + _ = yym593 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr587 || yy2arr587 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq587[2] { + yym595 := z.EncBinary() + _ = yym595 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq587[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("partition")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym596 := z.EncBinary() + _ = yym596 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } + } + if yyr587 || yy2arr587 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq587[3] { + yym598 := z.EncBinary() + _ = yym598 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq587[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym599 := z.EncBinary() + _ = yym599 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr587 || yy2arr587 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym600 := z.DecBinary() + _ = yym600 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct601 := r.ContainerType() + if yyct601 == codecSelferValueTypeMap1234 { + yyl601 := r.ReadMapStart() + if yyl601 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl601, d) + } + } else if yyct601 == codecSelferValueTypeArray1234 { + yyl601 := r.ReadArrayStart() + if yyl601 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl601, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys602Slc = r.DecodeBytes(yys602Slc, true, true) + yys602 := string(yys602Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys602 { + case "pdName": + if r.TryDecodeAsNil() { + x.PDName = "" + } else { + x.PDName = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "partition": + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys602) + } // end switch yys602 + } // end for yyj602 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb607 = r.CheckBreak() + } + if yyb607 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PDName = "" + } else { + x.PDName = string(r.DecodeString()) + } + yyj607++ + if yyhl607 { + yyb607 = yyj607 > l + } else { + yyb607 = r.CheckBreak() + } + if yyb607 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj607++ + if yyhl607 { + yyb607 = yyj607 > l + } else { + yyb607 = r.CheckBreak() + } + if yyb607 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + yyj607++ + if yyhl607 { + yyb607 = yyj607 > l + } else { + yyb607 = r.CheckBreak() + } + if yyb607 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj607++ + if yyhl607 { + yyb607 = yyj607 > l + } else { + yyb607 = r.CheckBreak() + } + if yyb607 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj607-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym612 := z.EncBinary() + _ = yym612 + 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 { + r.EncodeArrayStart(6) + } else { + yynn613 = 0 + for _, b := range yyq613 { + if b { + yynn613++ + } + } + r.EncodeMapStart(yynn613) + yynn613 = 0 + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq613[0] { + yym615 := z.EncBinary() + _ = yym615 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq613[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym616 := z.EncBinary() + _ = yym616 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) + } + } + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq613[1] { + yym618 := z.EncBinary() + _ = yym618 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq613[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iqn")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym619 := z.EncBinary() + _ = yym619 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) + } + } + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq613[2] { + yym621 := z.EncBinary() + _ = yym621 + if false { + } else { + r.EncodeInt(int64(x.Lun)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq613[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lun")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym622 := z.EncBinary() + _ = yym622 + if false { + } else { + r.EncodeInt(int64(x.Lun)) + } + } + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq613[3] { + yym624 := z.EncBinary() + _ = yym624 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq613[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym625 := z.EncBinary() + _ = yym625 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) + } + } + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq613[4] { + yym627 := z.EncBinary() + _ = yym627 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq613[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym628 := z.EncBinary() + _ = yym628 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq613[5] { + yym630 := z.EncBinary() + _ = yym630 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq613[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym631 := z.EncBinary() + _ = yym631 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr613 || yy2arr613 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym632 := z.DecBinary() + _ = yym632 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct633 := r.ContainerType() + if yyct633 == codecSelferValueTypeMap1234 { + yyl633 := r.ReadMapStart() + if yyl633 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl633, d) + } + } else if yyct633 == codecSelferValueTypeArray1234 { + yyl633 := r.ReadArrayStart() + if yyl633 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl633, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys634Slc = r.DecodeBytes(yys634Slc, true, true) + yys634 := string(yys634Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys634 { + case "targetPortal": + if r.TryDecodeAsNil() { + x.TargetPortal = "" + } else { + x.TargetPortal = string(r.DecodeString()) + } + case "iqn": + if r.TryDecodeAsNil() { + x.IQN = "" + } else { + x.IQN = string(r.DecodeString()) + } + case "lun": + if r.TryDecodeAsNil() { + x.Lun = 0 + } else { + x.Lun = int32(r.DecodeInt(32)) + } + case "iscsiInterface": + if r.TryDecodeAsNil() { + x.ISCSIInterface = "" + } else { + x.ISCSIInterface = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys634) + } // end switch yys634 + } // end for yyj634 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TargetPortal = "" + } else { + x.TargetPortal = string(r.DecodeString()) + } + yyj641++ + if yyhl641 { + yyb641 = yyj641 > l + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IQN = "" + } else { + x.IQN = string(r.DecodeString()) + } + yyj641++ + if yyhl641 { + yyb641 = yyj641 > l + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Lun = 0 + } else { + x.Lun = int32(r.DecodeInt(32)) + } + yyj641++ + if yyhl641 { + yyb641 = yyj641 > l + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ISCSIInterface = "" + } else { + x.ISCSIInterface = string(r.DecodeString()) + } + yyj641++ + if yyhl641 { + yyb641 = yyj641 > l + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj641++ + if yyhl641 { + yyb641 = yyj641 > l + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj641++ + if yyhl641 { + yyb641 = yyj641 > l + } else { + yyb641 = r.CheckBreak() + } + if yyb641 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj641-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym648 := z.EncBinary() + _ = yym648 + 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 { + r.EncodeArrayStart(4) + } else { + yynn649 = 2 + for _, b := range yyq649 { + if b { + yynn649++ + } + } + r.EncodeMapStart(yynn649) + yynn649 = 0 + } + if yyr649 || yy2arr649 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.TargetWWNs == nil { + r.EncodeNil() + } else { + yym651 := z.EncBinary() + _ = yym651 + if false { + } else { + z.F.EncSliceStringV(x.TargetWWNs, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetWWNs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TargetWWNs == nil { + r.EncodeNil() + } else { + yym652 := z.EncBinary() + _ = yym652 + if false { + } else { + z.F.EncSliceStringV(x.TargetWWNs, false, e) + } + } + } + if yyr649 || yy2arr649 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Lun == nil { + r.EncodeNil() + } else { + yy654 := *x.Lun + yym655 := z.EncBinary() + _ = yym655 + if false { + } else { + r.EncodeInt(int64(yy654)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lun")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Lun == nil { + r.EncodeNil() + } else { + yy656 := *x.Lun + yym657 := z.EncBinary() + _ = yym657 + if false { + } else { + r.EncodeInt(int64(yy656)) + } + } + } + if yyr649 || yy2arr649 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq649[2] { + yym659 := z.EncBinary() + _ = yym659 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq649[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym660 := z.EncBinary() + _ = yym660 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr649 || yy2arr649 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq649[3] { + yym662 := z.EncBinary() + _ = yym662 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq649[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym663 := z.EncBinary() + _ = yym663 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr649 || yy2arr649 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym664 := z.DecBinary() + _ = yym664 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct665 := r.ContainerType() + if yyct665 == codecSelferValueTypeMap1234 { + yyl665 := r.ReadMapStart() + if yyl665 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl665, d) + } + } else if yyct665 == codecSelferValueTypeArray1234 { + yyl665 := r.ReadArrayStart() + if yyl665 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl665, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys666Slc = r.DecodeBytes(yys666Slc, true, true) + yys666 := string(yys666Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys666 { + case "targetWWNs": + if r.TryDecodeAsNil() { + x.TargetWWNs = nil + } else { + yyv667 := &x.TargetWWNs + yym668 := z.DecBinary() + _ = yym668 + if false { + } else { + z.F.DecSliceStringX(yyv667, false, d) + } + } + case "lun": + if r.TryDecodeAsNil() { + if x.Lun != nil { + x.Lun = nil + } + } else { + if x.Lun == nil { + x.Lun = new(int32) + } + yym670 := z.DecBinary() + _ = yym670 + if false { + } else { + *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) + } + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys666) + } // end switch yys666 + } // end for yyj666 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb673 = r.CheckBreak() + } + if yyb673 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TargetWWNs = nil + } else { + yyv674 := &x.TargetWWNs + yym675 := z.DecBinary() + _ = yym675 + if false { + } else { + z.F.DecSliceStringX(yyv674, false, d) + } + } + yyj673++ + if yyhl673 { + yyb673 = yyj673 > l + } else { + yyb673 = r.CheckBreak() + } + if yyb673 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Lun != nil { + x.Lun = nil + } + } else { + if x.Lun == nil { + x.Lun = new(int32) + } + yym677 := z.DecBinary() + _ = yym677 + if false { + } else { + *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) + } + } + yyj673++ + if yyhl673 { + yyb673 = yyj673 > l + } else { + yyb673 = r.CheckBreak() + } + if yyb673 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj673++ + if yyhl673 { + yyb673 = yyj673 > l + } else { + yyb673 = r.CheckBreak() + } + if yyb673 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj673++ + if yyhl673 { + yyb673 = yyj673 > l + } else { + yyb673 = r.CheckBreak() + } + if yyb673 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj673-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym680 := z.EncBinary() + _ = yym680 + 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 { + r.EncodeArrayStart(5) + } else { + yynn681 = 1 + for _, b := range yyq681 { + if b { + yynn681++ + } + } + r.EncodeMapStart(yynn681) + yynn681 = 0 + } + if yyr681 || yy2arr681 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym683 := z.EncBinary() + _ = yym683 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("driver")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym684 := z.EncBinary() + _ = yym684 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) + } + } + if yyr681 || yy2arr681 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq681[1] { + yym686 := z.EncBinary() + _ = yym686 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq681[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym687 := z.EncBinary() + _ = yym687 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr681 || yy2arr681 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq681[2] { + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq681[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } + } + if yyr681 || yy2arr681 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq681[3] { + yym690 := z.EncBinary() + _ = yym690 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq681[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym691 := z.EncBinary() + _ = yym691 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr681 || yy2arr681 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq681[4] { + if x.Options == nil { + r.EncodeNil() + } else { + yym693 := z.EncBinary() + _ = yym693 + if false { + } else { + z.F.EncMapStringStringV(x.Options, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq681[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 + if false { + } else { + z.F.EncMapStringStringV(x.Options, false, e) + } + } + } + } + if yyr681 || yy2arr681 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym695 := z.DecBinary() + _ = yym695 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct696 := r.ContainerType() + if yyct696 == codecSelferValueTypeMap1234 { + yyl696 := r.ReadMapStart() + if yyl696 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl696, d) + } + } else if yyct696 == codecSelferValueTypeArray1234 { + yyl696 := r.ReadArrayStart() + if yyl696 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl696, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys697Slc = r.DecodeBytes(yys697Slc, true, true) + yys697 := string(yys697Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys697 { + case "driver": + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "secretRef": + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + case "options": + if r.TryDecodeAsNil() { + x.Options = nil + } else { + yyv702 := &x.Options + yym703 := z.DecBinary() + _ = yym703 + if false { + } else { + z.F.DecMapStringStringX(yyv702, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys697) + } // end switch yys697 + } // end for yyj697 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb704 = r.CheckBreak() + } + if yyb704 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = string(r.DecodeString()) + } + yyj704++ + if yyhl704 { + yyb704 = yyj704 > l + } else { + yyb704 = r.CheckBreak() + } + if yyb704 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj704++ + if yyhl704 { + yyb704 = yyj704 > l + } else { + yyb704 = r.CheckBreak() + } + if yyb704 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + yyj704++ + if yyhl704 { + yyb704 = yyj704 > l + } else { + yyb704 = r.CheckBreak() + } + if yyb704 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + yyj704++ + if yyhl704 { + yyb704 = yyj704 > l + } else { + yyb704 = r.CheckBreak() + } + if yyb704 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Options = nil + } else { + yyv709 := &x.Options + yym710 := z.DecBinary() + _ = yym710 + if false { + } else { + z.F.DecMapStringStringX(yyv709, false, d) + } + } + for { + yyj704++ + if yyhl704 { + yyb704 = yyj704 > l + } else { + yyb704 = r.CheckBreak() + } + if yyb704 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj704-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym711 := z.EncBinary() + _ = yym711 + 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 { + r.EncodeArrayStart(4) + } else { + yynn712 = 1 + for _, b := range yyq712 { + if b { + yynn712++ + } + } + r.EncodeMapStart(yynn712) + yynn712 = 0 + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym714 := z.EncBinary() + _ = yym714 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym715 := z.EncBinary() + _ = yym715 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq712[1] { + yym717 := z.EncBinary() + _ = yym717 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq712[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym718 := z.EncBinary() + _ = yym718 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq712[2] { + yym720 := z.EncBinary() + _ = yym720 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq712[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("partition")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym721 := z.EncBinary() + _ = yym721 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq712[3] { + yym723 := z.EncBinary() + _ = yym723 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq712[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym724 := z.EncBinary() + _ = yym724 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym725 := z.DecBinary() + _ = yym725 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct726 := r.ContainerType() + if yyct726 == codecSelferValueTypeMap1234 { + yyl726 := r.ReadMapStart() + if yyl726 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl726, d) + } + } else if yyct726 == codecSelferValueTypeArray1234 { + yyl726 := r.ReadArrayStart() + if yyl726 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl726, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys727Slc = r.DecodeBytes(yys727Slc, true, true) + yys727 := string(yys727Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys727 { + case "volumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "partition": + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys727) + } // end switch yys727 + } // end for yyj727 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb732 = r.CheckBreak() + } + if yyb732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + yyj732++ + if yyhl732 { + yyb732 = yyj732 > l + } else { + yyb732 = r.CheckBreak() + } + if yyb732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj732++ + if yyhl732 { + yyb732 = yyj732 > l + } else { + yyb732 = r.CheckBreak() + } + if yyb732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + yyj732++ + if yyhl732 { + yyb732 = yyj732 > l + } else { + yyb732 = r.CheckBreak() + } + if yyb732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj732++ + if yyhl732 { + yyb732 = yyj732 > l + } else { + yyb732 = r.CheckBreak() + } + if yyb732 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj732-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym737 := z.EncBinary() + _ = yym737 + 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 { + r.EncodeArrayStart(3) + } else { + yynn738 = 1 + for _, b := range yyq738 { + if b { + yynn738++ + } + } + r.EncodeMapStart(yynn738) + yynn738 = 0 + } + if yyr738 || yy2arr738 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym740 := z.EncBinary() + _ = yym740 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("repository")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym741 := z.EncBinary() + _ = yym741 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) + } + } + if yyr738 || yy2arr738 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq738[1] { + yym743 := z.EncBinary() + _ = yym743 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq738[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("revision")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym744 := z.EncBinary() + _ = yym744 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) + } + } + } + if yyr738 || yy2arr738 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq738[2] { + yym746 := z.EncBinary() + _ = yym746 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq738[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("directory")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym747 := z.EncBinary() + _ = yym747 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) + } + } + } + if yyr738 || yy2arr738 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym748 := z.DecBinary() + _ = yym748 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct749 := r.ContainerType() + if yyct749 == codecSelferValueTypeMap1234 { + yyl749 := r.ReadMapStart() + if yyl749 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl749, d) + } + } else if yyct749 == codecSelferValueTypeArray1234 { + yyl749 := r.ReadArrayStart() + if yyl749 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl749, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys750Slc = r.DecodeBytes(yys750Slc, true, true) + yys750 := string(yys750Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys750 { + case "repository": + if r.TryDecodeAsNil() { + x.Repository = "" + } else { + x.Repository = string(r.DecodeString()) + } + case "revision": + if r.TryDecodeAsNil() { + x.Revision = "" + } else { + x.Revision = string(r.DecodeString()) + } + case "directory": + if r.TryDecodeAsNil() { + x.Directory = "" + } else { + x.Directory = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys750) + } // end switch yys750 + } // end for yyj750 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb754 = r.CheckBreak() + } + if yyb754 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Repository = "" + } else { + x.Repository = string(r.DecodeString()) + } + yyj754++ + if yyhl754 { + yyb754 = yyj754 > l + } else { + yyb754 = r.CheckBreak() + } + if yyb754 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Revision = "" + } else { + x.Revision = string(r.DecodeString()) + } + yyj754++ + if yyhl754 { + yyb754 = yyj754 > l + } else { + yyb754 = r.CheckBreak() + } + if yyb754 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Directory = "" + } else { + x.Directory = string(r.DecodeString()) + } + for { + yyj754++ + if yyhl754 { + yyb754 = yyj754 > l + } else { + yyb754 = r.CheckBreak() + } + if yyb754 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj754-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym758 := z.EncBinary() + _ = yym758 + 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) + } else { + yynn759 = 0 + for _, b := range yyq759 { + if b { + yynn759++ + } + } + r.EncodeMapStart(yynn759) + yynn759 = 0 + } + if yyr759 || yy2arr759 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq759[0] { + yym761 := z.EncBinary() + _ = yym761 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq759[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym762 := z.EncBinary() + _ = yym762 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } + } + if yyr759 || yy2arr759 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq759[1] { + if x.Items == nil { + r.EncodeNil() + } else { + yym764 := z.EncBinary() + _ = yym764 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq759[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 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } + } + if yyr759 || yy2arr759 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym766 := z.DecBinary() + _ = yym766 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct767 := r.ContainerType() + if yyct767 == codecSelferValueTypeMap1234 { + yyl767 := r.ReadMapStart() + if yyl767 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl767, d) + } + } else if yyct767 == codecSelferValueTypeArray1234 { + yyl767 := r.ReadArrayStart() + if yyl767 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl767, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys768Slc = r.DecodeBytes(yys768Slc, true, true) + yys768 := string(yys768Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys768 { + case "secretName": + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv770 := &x.Items + yym771 := z.DecBinary() + _ = yym771 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv770), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys768) + } // end switch yys768 + } // end for yyj768 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb772 = r.CheckBreak() + } + if yyb772 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + yyj772++ + if yyhl772 { + yyb772 = yyj772 > l + } else { + yyb772 = r.CheckBreak() + } + if yyb772 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv774 := &x.Items + yym775 := z.DecBinary() + _ = yym775 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv774), d) + } + } + for { + yyj772++ + if yyhl772 { + yyb772 = yyj772 > l + } else { + yyb772 = r.CheckBreak() + } + if yyb772 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj772-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NFSVolumeSource) 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 [3]bool + _, _, _ = yysep777, yyq777, yy2arr777 + const yyr777 bool = false + yyq777[2] = x.ReadOnly != false + var yynn777 int + if yyr777 || yy2arr777 { + r.EncodeArrayStart(3) + } 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.Server)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("server")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym780 := z.EncBinary() + _ = yym780 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Server)) + } + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym782 := z.EncBinary() + _ = yym782 + 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) + yym783 := z.EncBinary() + _ = yym783 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + 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_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym787 := z.DecBinary() + _ = yym787 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct788 := r.ContainerType() + if yyct788 == codecSelferValueTypeMap1234 { + yyl788 := r.ReadMapStart() + if yyl788 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl788, d) + } + } else if yyct788 == codecSelferValueTypeArray1234 { + yyl788 := r.ReadArrayStart() + if yyl788 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl788, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys789Slc = r.DecodeBytes(yys789Slc, true, true) + yys789 := string(yys789Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys789 { + case "server": + if r.TryDecodeAsNil() { + x.Server = "" + } else { + x.Server = string(r.DecodeString()) + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys789) + } // end switch yys789 + } // end for yyj789 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb793 = r.CheckBreak() + } + if yyb793 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Server = "" + } else { + x.Server = string(r.DecodeString()) + } + yyj793++ + if yyhl793 { + yyb793 = yyj793 > l + } else { + yyb793 = r.CheckBreak() + } + if yyb793 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj793++ + if yyhl793 { + yyb793 = yyj793 > l + } else { + yyb793 = r.CheckBreak() + } + if yyb793 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj793++ + if yyhl793 { + yyb793 = yyj793 > l + } else { + yyb793 = r.CheckBreak() + } + if yyb793 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj793-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 { + yym797 := z.EncBinary() + _ = yym797 + 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 { + r.EncodeArrayStart(3) + } else { + yynn798 = 2 + for _, b := range yyq798 { + if b { + yynn798++ + } + } + r.EncodeMapStart(yynn798) + yynn798 = 0 + } + if yyr798 || yy2arr798 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym800 := z.EncBinary() + _ = yym800 + 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) + yym801 := z.EncBinary() + _ = yym801 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) + } + } + if yyr798 || yy2arr798 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym803 := z.EncBinary() + _ = yym803 + 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) + yym804 := z.EncBinary() + _ = yym804 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr798 || yy2arr798 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq798[2] { + yym806 := z.EncBinary() + _ = yym806 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq798[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym807 := z.EncBinary() + _ = yym807 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr798 || yy2arr798 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym808 := z.DecBinary() + _ = yym808 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct809 := r.ContainerType() + if yyct809 == codecSelferValueTypeMap1234 { + yyl809 := r.ReadMapStart() + if yyl809 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl809, d) + } + } else if yyct809 == codecSelferValueTypeArray1234 { + yyl809 := r.ReadArrayStart() + if yyl809 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl809, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys810Slc = r.DecodeBytes(yys810Slc, true, true) + yys810 := string(yys810Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys810 { + case "endpoints": + if r.TryDecodeAsNil() { + x.EndpointsName = "" + } else { + x.EndpointsName = string(r.DecodeString()) + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys810) + } // end switch yys810 + } // end for yyj810 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb814 = r.CheckBreak() + } + if yyb814 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EndpointsName = "" + } else { + x.EndpointsName = string(r.DecodeString()) + } + yyj814++ + if yyhl814 { + yyb814 = yyj814 > l + } else { + yyb814 = r.CheckBreak() + } + if yyb814 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj814++ + if yyhl814 { + yyb814 = yyj814 > l + } else { + yyb814 = r.CheckBreak() + } + if yyb814 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj814++ + if yyhl814 { + yyb814 = yyj814 > l + } else { + yyb814 = r.CheckBreak() + } + if yyb814 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj814-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym818 := z.EncBinary() + _ = yym818 + 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 { + r.EncodeArrayStart(8) + } else { + yynn819 = 2 + for _, b := range yyq819 { + if b { + yynn819++ + } + } + r.EncodeMapStart(yynn819) + yynn819 = 0 + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.CephMonitors == nil { + r.EncodeNil() + } else { + yym821 := z.EncBinary() + _ = yym821 + if false { + } else { + z.F.EncSliceStringV(x.CephMonitors, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("monitors")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CephMonitors == nil { + r.EncodeNil() + } else { + yym822 := z.EncBinary() + _ = yym822 + if false { + } else { + z.F.EncSliceStringV(x.CephMonitors, false, e) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym824 := z.EncBinary() + _ = yym824 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym825 := z.EncBinary() + _ = yym825 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq819[2] { + yym827 := z.EncBinary() + _ = yym827 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq819[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym828 := z.EncBinary() + _ = yym828 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq819[3] { + yym830 := z.EncBinary() + _ = yym830 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq819[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("pool")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym831 := z.EncBinary() + _ = yym831 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq819[4] { + yym833 := z.EncBinary() + _ = yym833 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq819[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym834 := z.EncBinary() + _ = yym834 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq819[5] { + yym836 := z.EncBinary() + _ = yym836 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq819[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("keyring")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym837 := z.EncBinary() + _ = yym837 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq819[6] { + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq819[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq819[7] { + yym840 := z.EncBinary() + _ = yym840 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq819[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym841 := z.EncBinary() + _ = yym841 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr819 || yy2arr819 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym842 := z.DecBinary() + _ = yym842 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct843 := r.ContainerType() + if yyct843 == codecSelferValueTypeMap1234 { + yyl843 := r.ReadMapStart() + if yyl843 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl843, d) + } + } else if yyct843 == codecSelferValueTypeArray1234 { + yyl843 := r.ReadArrayStart() + if yyl843 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl843, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys844Slc = r.DecodeBytes(yys844Slc, true, true) + yys844 := string(yys844Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys844 { + case "monitors": + if r.TryDecodeAsNil() { + x.CephMonitors = nil + } else { + yyv845 := &x.CephMonitors + yym846 := z.DecBinary() + _ = yym846 + if false { + } else { + z.F.DecSliceStringX(yyv845, false, d) + } + } + case "image": + if r.TryDecodeAsNil() { + x.RBDImage = "" + } else { + x.RBDImage = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "pool": + if r.TryDecodeAsNil() { + x.RBDPool = "" + } else { + x.RBDPool = string(r.DecodeString()) + } + case "user": + if r.TryDecodeAsNil() { + x.RadosUser = "" + } else { + x.RadosUser = string(r.DecodeString()) + } + case "keyring": + if r.TryDecodeAsNil() { + x.Keyring = "" + } else { + x.Keyring = string(r.DecodeString()) + } + case "secretRef": + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys844) + } // end switch yys844 + } // end for yyj844 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CephMonitors = nil + } else { + yyv855 := &x.CephMonitors + yym856 := z.DecBinary() + _ = yym856 + if false { + } else { + z.F.DecSliceStringX(yyv855, false, d) + } + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RBDImage = "" + } else { + x.RBDImage = string(r.DecodeString()) + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RBDPool = "" + } else { + x.RBDPool = string(r.DecodeString()) + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RadosUser = "" + } else { + x.RadosUser = string(r.DecodeString()) + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Keyring = "" + } else { + x.Keyring = string(r.DecodeString()) + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj854++ + if yyhl854 { + yyb854 = yyj854 > l + } else { + yyb854 = r.CheckBreak() + } + if yyb854 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj854-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym864 := z.EncBinary() + _ = yym864 + 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 { + r.EncodeArrayStart(3) + } else { + yynn865 = 1 + for _, b := range yyq865 { + if b { + yynn865++ + } + } + r.EncodeMapStart(yynn865) + yynn865 = 0 + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym867 := z.EncBinary() + _ = yym867 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym868 := z.EncBinary() + _ = yym868 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq865[1] { + yym870 := z.EncBinary() + _ = yym870 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq865[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym871 := z.EncBinary() + _ = yym871 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq865[2] { + yym873 := z.EncBinary() + _ = yym873 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq865[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym874 := z.EncBinary() + _ = yym874 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym875 := z.DecBinary() + _ = yym875 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct876 := r.ContainerType() + if yyct876 == codecSelferValueTypeMap1234 { + yyl876 := r.ReadMapStart() + if yyl876 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl876, d) + } + } else if yyct876 == codecSelferValueTypeArray1234 { + yyl876 := r.ReadArrayStart() + if yyl876 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl876, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys877Slc = r.DecodeBytes(yys877Slc, true, true) + yys877 := string(yys877Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys877 { + case "volumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys877) + } // end switch yys877 + } // end for yyj877 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb881 = r.CheckBreak() + } + if yyb881 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l + } else { + yyb881 = r.CheckBreak() + } + if yyb881 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l + } else { + yyb881 = r.CheckBreak() + } + if yyb881 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l + } else { + yyb881 = r.CheckBreak() + } + if yyb881 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj881-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym885 := z.EncBinary() + _ = yym885 + 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 { + r.EncodeArrayStart(6) + } else { + yynn886 = 1 + for _, b := range yyq886 { + if b { + yynn886++ + } + } + r.EncodeMapStart(yynn886) + yynn886 = 0 + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Monitors == nil { + r.EncodeNil() + } else { + yym888 := z.EncBinary() + _ = yym888 + if false { + } else { + z.F.EncSliceStringV(x.Monitors, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("monitors")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Monitors == nil { + r.EncodeNil() + } else { + yym889 := z.EncBinary() + _ = yym889 + if false { + } else { + z.F.EncSliceStringV(x.Monitors, false, e) + } + } + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq886[1] { + yym891 := z.EncBinary() + _ = yym891 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq886[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym892 := z.EncBinary() + _ = yym892 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq886[2] { + yym894 := z.EncBinary() + _ = yym894 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq886[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym895 := z.EncBinary() + _ = yym895 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq886[3] { + yym897 := z.EncBinary() + _ = yym897 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq886[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym898 := z.EncBinary() + _ = yym898 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) + } + } + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq886[4] { + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq886[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq886[5] { + yym901 := z.EncBinary() + _ = yym901 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq886[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym902 := z.EncBinary() + _ = yym902 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym903 := z.DecBinary() + _ = yym903 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct904 := r.ContainerType() + if yyct904 == codecSelferValueTypeMap1234 { + yyl904 := r.ReadMapStart() + if yyl904 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl904, d) + } + } else if yyct904 == codecSelferValueTypeArray1234 { + yyl904 := r.ReadArrayStart() + if yyl904 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl904, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys905Slc = r.DecodeBytes(yys905Slc, true, true) + yys905 := string(yys905Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys905 { + case "monitors": + if r.TryDecodeAsNil() { + x.Monitors = nil + } else { + yyv906 := &x.Monitors + yym907 := z.DecBinary() + _ = yym907 + if false { + } else { + z.F.DecSliceStringX(yyv906, false, d) + } + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "user": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + case "secretFile": + if r.TryDecodeAsNil() { + x.SecretFile = "" + } else { + x.SecretFile = string(r.DecodeString()) + } + case "secretRef": + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys905) + } // end switch yys905 + } // end for yyj905 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Monitors = nil + } else { + yyv914 := &x.Monitors + yym915 := z.DecBinary() + _ = yym915 + if false { + } else { + z.F.DecSliceStringX(yyv914, false, d) + } + } + yyj913++ + if yyhl913 { + yyb913 = yyj913 > l + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj913++ + if yyhl913 { + yyb913 = yyj913 > l + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + yyj913++ + if yyhl913 { + yyb913 = yyj913 > l + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretFile = "" + } else { + x.SecretFile = string(r.DecodeString()) + } + yyj913++ + if yyhl913 { + yyb913 = yyj913 > l + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + yyj913++ + if yyhl913 { + yyb913 = yyj913 > l + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj913++ + if yyhl913 { + yyb913 = yyj913 > l + } else { + yyb913 = r.CheckBreak() + } + if yyb913 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj913-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym921 := z.EncBinary() + _ = yym921 + 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 { + r.EncodeArrayStart(1) + } else { + yynn922 = 1 + for _, b := range yyq922 { + if b { + yynn922++ + } + } + r.EncodeMapStart(yynn922) + yynn922 = 0 + } + if yyr922 || yy2arr922 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym924 := z.EncBinary() + _ = yym924 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("datasetName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym925 := z.EncBinary() + _ = yym925 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } + } + if yyr922 || yy2arr922 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym926 := z.DecBinary() + _ = yym926 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct927 := r.ContainerType() + if yyct927 == codecSelferValueTypeMap1234 { + yyl927 := r.ReadMapStart() + if yyl927 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl927, d) + } + } else if yyct927 == codecSelferValueTypeArray1234 { + yyl927 := r.ReadArrayStart() + if yyl927 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl927, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys928Slc = r.DecodeBytes(yys928Slc, true, true) + yys928 := string(yys928Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys928 { + case "datasetName": + if r.TryDecodeAsNil() { + x.DatasetName = "" + } else { + x.DatasetName = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys928) + } // end switch yys928 + } // end for yyj928 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb930 = r.CheckBreak() + } + if yyb930 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DatasetName = "" + } else { + x.DatasetName = string(r.DecodeString()) + } + for { + yyj930++ + if yyhl930 { + yyb930 = yyj930 > l + } else { + yyb930 = r.CheckBreak() + } + if yyb930 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj930-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 { + yym932 := z.EncBinary() + _ = yym932 + 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) + } else { + yynn933 = 0 + for _, b := range yyq933 { + if b { + yynn933++ + } + } + r.EncodeMapStart(yynn933) + yynn933 = 0 + } + if yyr933 || yy2arr933 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq933[0] { + if x.Items == nil { + r.EncodeNil() + } else { + yym935 := z.EncBinary() + _ = yym935 + if false { + } else { + h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq933[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 + if false { + } else { + h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) + } + } + } + } + if yyr933 || yy2arr933 { + 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 + yym937 := z.DecBinary() + _ = yym937 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct938 := r.ContainerType() + if yyct938 == codecSelferValueTypeMap1234 { + yyl938 := r.ReadMapStart() + if yyl938 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl938, d) + } + } else if yyct938 == codecSelferValueTypeArray1234 { + yyl938 := r.ReadArrayStart() + if yyl938 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl938, 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 yys939Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys939Slc + var yyhl939 bool = l >= 0 + for yyj939 := 0; ; yyj939++ { + if yyhl939 { + if yyj939 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys939Slc = r.DecodeBytes(yys939Slc, true, true) + yys939 := string(yys939Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys939 { + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv940 := &x.Items + yym941 := z.DecBinary() + _ = yym941 + if false { + } else { + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv940), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys939) + } // end switch yys939 + } // end for yyj939 + 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 yyj942 int + var yyb942 bool + var yyhl942 bool = l >= 0 + yyj942++ + if yyhl942 { + yyb942 = yyj942 > l + } else { + yyb942 = r.CheckBreak() + } + if yyb942 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv943 := &x.Items + yym944 := z.DecBinary() + _ = yym944 + if false { + } else { + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv943), d) + } + } + for { + yyj942++ + if yyhl942 { + yyb942 = yyj942 > l + } else { + yyb942 = r.CheckBreak() + } + if yyb942 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj942-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 { + yym945 := z.EncBinary() + _ = yym945 + 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) + } else { + yynn946 = 1 + for _, b := range yyq946 { + if b { + yynn946++ + } + } + r.EncodeMapStart(yynn946) + yynn946 = 0 + } + if yyr946 || yy2arr946 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym948 := z.EncBinary() + _ = yym948 + 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) + yym949 := z.EncBinary() + _ = yym949 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr946 || yy2arr946 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq946[1] { + if x.FieldRef == nil { + r.EncodeNil() + } else { + x.FieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq946[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 yyr946 || yy2arr946 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq946[2] { + if x.ResourceFieldRef == nil { + r.EncodeNil() + } else { + x.ResourceFieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq946[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 yyr946 || yy2arr946 { + 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 + yym952 := z.DecBinary() + _ = yym952 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct953 := r.ContainerType() + if yyct953 == codecSelferValueTypeMap1234 { + yyl953 := r.ReadMapStart() + if yyl953 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl953, d) + } + } else if yyct953 == codecSelferValueTypeArray1234 { + yyl953 := r.ReadArrayStart() + if yyl953 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl953, 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 yys954Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys954Slc + var yyhl954 bool = l >= 0 + for yyj954 := 0; ; yyj954++ { + if yyhl954 { + if yyj954 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys954Slc = r.DecodeBytes(yys954Slc, true, true) + yys954 := string(yys954Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys954 { + 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, yys954) + } // end switch yys954 + } // end for yyj954 + 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 yyj958 int + var yyb958 bool + var yyhl958 bool = l >= 0 + yyj958++ + if yyhl958 { + yyb958 = yyj958 > l + } else { + yyb958 = r.CheckBreak() + } + if yyb958 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj958++ + if yyhl958 { + yyb958 = yyj958 > l + } else { + yyb958 = r.CheckBreak() + } + if yyb958 { + 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) + } + yyj958++ + if yyhl958 { + yyb958 = yyj958 > l + } else { + yyb958 = r.CheckBreak() + } + if yyb958 { + 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 { + yyj958++ + if yyhl958 { + yyb958 = yyj958 > l + } else { + yyb958 = r.CheckBreak() + } + if yyb958 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj958-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym962 := z.EncBinary() + _ = yym962 + 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 { + r.EncodeArrayStart(3) + } else { + yynn963 = 2 + for _, b := range yyq963 { + if b { + yynn963++ + } + } + r.EncodeMapStart(yynn963) + yynn963 = 0 + } + if yyr963 || yy2arr963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym965 := z.EncBinary() + _ = yym965 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym966 := z.EncBinary() + _ = yym966 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } + if yyr963 || yy2arr963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym968 := z.EncBinary() + _ = yym968 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("shareName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym969 := z.EncBinary() + _ = yym969 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) + } + } + if yyr963 || yy2arr963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq963[2] { + yym971 := z.EncBinary() + _ = yym971 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq963[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym972 := z.EncBinary() + _ = yym972 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr963 || yy2arr963 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym973 := z.DecBinary() + _ = yym973 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct974 := r.ContainerType() + if yyct974 == codecSelferValueTypeMap1234 { + yyl974 := r.ReadMapStart() + if yyl974 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl974, d) + } + } else if yyct974 == codecSelferValueTypeArray1234 { + yyl974 := r.ReadArrayStart() + if yyl974 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl974, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys975Slc = r.DecodeBytes(yys975Slc, true, true) + yys975 := string(yys975Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys975 { + case "secretName": + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + case "shareName": + if r.TryDecodeAsNil() { + x.ShareName = "" + } else { + x.ShareName = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys975) + } // end switch yys975 + } // end for yyj975 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb979 = r.CheckBreak() + } + if yyb979 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l + } else { + yyb979 = r.CheckBreak() + } + if yyb979 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ShareName = "" + } else { + x.ShareName = string(r.DecodeString()) + } + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l + } else { + yyb979 = r.CheckBreak() + } + if yyb979 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l + } else { + yyb979 = r.CheckBreak() + } + if yyb979 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj979-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym983 := z.EncBinary() + _ = yym983 + 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 { + r.EncodeArrayStart(2) + } else { + yynn984 = 1 + for _, b := range yyq984 { + if b { + yynn984++ + } + } + r.EncodeMapStart(yynn984) + yynn984 = 0 + } + if yyr984 || yy2arr984 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym986 := z.EncBinary() + _ = yym986 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumePath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym987 := z.EncBinary() + _ = yym987 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) + } + } + if yyr984 || yy2arr984 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq984[1] { + yym989 := z.EncBinary() + _ = yym989 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq984[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym990 := z.EncBinary() + _ = yym990 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr984 || yy2arr984 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym991 := z.DecBinary() + _ = yym991 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct992 := r.ContainerType() + if yyct992 == codecSelferValueTypeMap1234 { + yyl992 := r.ReadMapStart() + if yyl992 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl992, d) + } + } else if yyct992 == codecSelferValueTypeArray1234 { + yyl992 := r.ReadArrayStart() + if yyl992 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl992, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys993Slc = r.DecodeBytes(yys993Slc, true, true) + yys993 := string(yys993Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys993 { + case "volumePath": + if r.TryDecodeAsNil() { + x.VolumePath = "" + } else { + x.VolumePath = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys993) + } // end switch yys993 + } // end for yyj993 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb996 = r.CheckBreak() + } + if yyb996 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumePath = "" + } else { + x.VolumePath = string(r.DecodeString()) + } + yyj996++ + if yyhl996 { + yyb996 = yyj996 > l + } else { + yyb996 = r.CheckBreak() + } + if yyb996 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + for { + yyj996++ + if yyhl996 { + yyb996 = yyj996 > l + } else { + yyb996 = r.CheckBreak() + } + if yyb996 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj996-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym999 := z.EncBinary() + _ = yym999 + 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) + } else { + yynn1000 = 1 + for _, b := range yyq1000 { + if b { + yynn1000++ + } + } + r.EncodeMapStart(yynn1000) + yynn1000 = 0 + } + if yyr1000 || yy2arr1000 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1002 := z.EncBinary() + _ = yym1002 + 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) + yym1003 := z.EncBinary() + _ = yym1003 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1000 || yy2arr1000 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1000[1] { + if x.Items == nil { + r.EncodeNil() + } else { + yym1005 := z.EncBinary() + _ = yym1005 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1000[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 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } + } + if yyr1000 || yy2arr1000 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1007 := z.DecBinary() + _ = yym1007 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1008 := r.ContainerType() + if yyct1008 == codecSelferValueTypeMap1234 { + yyl1008 := r.ReadMapStart() + if yyl1008 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1008, d) + } + } else if yyct1008 == codecSelferValueTypeArray1234 { + yyl1008 := r.ReadArrayStart() + if yyl1008 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1008, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1009Slc = r.DecodeBytes(yys1009Slc, true, true) + yys1009 := string(yys1009Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1009 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1011 := &x.Items + yym1012 := z.DecBinary() + _ = yym1012 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv1011), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1009) + } // end switch yys1009 + } // end for yyj1009 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1013 = r.CheckBreak() + } + if yyb1013 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1013++ + if yyhl1013 { + yyb1013 = yyj1013 > l + } else { + yyb1013 = r.CheckBreak() + } + if yyb1013 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1015 := &x.Items + yym1016 := z.DecBinary() + _ = yym1016 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv1015), d) + } + } + for { + yyj1013++ + if yyhl1013 { + yyb1013 = yyj1013 > l + } else { + yyb1013 = r.CheckBreak() + } + if yyb1013 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1013-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1017 := z.EncBinary() + _ = yym1017 + 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) + } else { + yynn1018 = 2 + for _, b := range yyq1018 { + if b { + yynn1018++ + } + } + r.EncodeMapStart(yynn1018) + yynn1018 = 0 + } + if yyr1018 || yy2arr1018 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1020 := z.EncBinary() + _ = yym1020 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1021 := z.EncBinary() + _ = yym1021 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1018 || yy2arr1018 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1023 := z.EncBinary() + _ = yym1023 + 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) + yym1024 := z.EncBinary() + _ = yym1024 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr1018 || yy2arr1018 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1025 := z.DecBinary() + _ = yym1025 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1026 := r.ContainerType() + if yyct1026 == codecSelferValueTypeMap1234 { + yyl1026 := r.ReadMapStart() + if yyl1026 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1026, d) + } + } else if yyct1026 == codecSelferValueTypeArray1234 { + yyl1026 := r.ReadArrayStart() + if yyl1026 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1026, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1027Slc = r.DecodeBytes(yys1027Slc, true, true) + yys1027 := string(yys1027Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1027 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1027) + } // end switch yys1027 + } // end for yyj1027 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1030 = r.CheckBreak() + } + if yyb1030 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1030++ + if yyhl1030 { + yyb1030 = yyj1030 > l + } else { + yyb1030 = r.CheckBreak() + } + if yyb1030 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj1030++ + if yyhl1030 { + yyb1030 = yyj1030 > l + } else { + yyb1030 = r.CheckBreak() + } + if yyb1030 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1030-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1033 := z.EncBinary() + _ = yym1033 + 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 { + r.EncodeArrayStart(5) + } else { + yynn1034 = 1 + for _, b := range yyq1034 { + if b { + yynn1034++ + } + } + r.EncodeMapStart(yynn1034) + yynn1034 = 0 + } + if yyr1034 || yy2arr1034 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1034[0] { + yym1036 := z.EncBinary() + _ = yym1036 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1034[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1037 := z.EncBinary() + _ = yym1037 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr1034 || yy2arr1034 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1034[1] { + yym1039 := z.EncBinary() + _ = yym1039 + if false { + } else { + r.EncodeInt(int64(x.HostPort)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1034[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1040 := z.EncBinary() + _ = yym1040 + if false { + } else { + r.EncodeInt(int64(x.HostPort)) + } + } + } + if yyr1034 || yy2arr1034 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1042 := z.EncBinary() + _ = yym1042 + if false { + } else { + r.EncodeInt(int64(x.ContainerPort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1043 := z.EncBinary() + _ = yym1043 + if false { + } else { + r.EncodeInt(int64(x.ContainerPort)) + } + } + if yyr1034 || yy2arr1034 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1034[3] { + x.Protocol.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1034[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protocol")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Protocol.CodecEncodeSelf(e) + } + } + if yyr1034 || yy2arr1034 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1034[4] { + yym1046 := z.EncBinary() + _ = yym1046 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1034[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1047 := z.EncBinary() + _ = yym1047 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } + } + if yyr1034 || yy2arr1034 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1048 := z.DecBinary() + _ = yym1048 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1049 := r.ContainerType() + if yyct1049 == codecSelferValueTypeMap1234 { + yyl1049 := r.ReadMapStart() + if yyl1049 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1049, d) + } + } else if yyct1049 == codecSelferValueTypeArray1234 { + yyl1049 := r.ReadArrayStart() + if yyl1049 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1049, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1050Slc = r.DecodeBytes(yys1050Slc, true, true) + yys1050 := string(yys1050Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1050 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "hostPort": + if r.TryDecodeAsNil() { + x.HostPort = 0 + } else { + x.HostPort = int32(r.DecodeInt(32)) + } + case "containerPort": + if r.TryDecodeAsNil() { + x.ContainerPort = 0 + } else { + x.ContainerPort = int32(r.DecodeInt(32)) + } + case "protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + case "hostIP": + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1050) + } // end switch yys1050 + } // end for yyj1050 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1056 = r.CheckBreak() + } + if yyb1056 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1056++ + if yyhl1056 { + yyb1056 = yyj1056 > l + } else { + yyb1056 = r.CheckBreak() + } + if yyb1056 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPort = 0 + } else { + x.HostPort = int32(r.DecodeInt(32)) + } + yyj1056++ + if yyhl1056 { + yyb1056 = yyj1056 > l + } else { + yyb1056 = r.CheckBreak() + } + if yyb1056 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerPort = 0 + } else { + x.ContainerPort = int32(r.DecodeInt(32)) + } + yyj1056++ + if yyhl1056 { + yyb1056 = yyj1056 > l + } else { + yyb1056 = r.CheckBreak() + } + if yyb1056 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + yyj1056++ + if yyhl1056 { + yyb1056 = yyj1056 > l + } else { + yyb1056 = r.CheckBreak() + } + if yyb1056 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + for { + yyj1056++ + if yyhl1056 { + yyb1056 = yyj1056 > l + } else { + yyb1056 = r.CheckBreak() + } + if yyb1056 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1056-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1062 := z.EncBinary() + _ = yym1062 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1063 = 2 + for _, b := range yyq1063 { + if b { + yynn1063++ + } + } + r.EncodeMapStart(yynn1063) + yynn1063 = 0 + } + if yyr1063 || yy2arr1063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1065 := z.EncBinary() + _ = yym1065 + 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) + yym1066 := z.EncBinary() + _ = yym1066 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1063 || yy2arr1063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1063[1] { + yym1068 := z.EncBinary() + _ = yym1068 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1063[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1069 := z.EncBinary() + _ = yym1069 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr1063 || yy2arr1063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1071 := z.EncBinary() + _ = yym1071 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mountPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1072 := z.EncBinary() + _ = yym1072 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) + } + } + if yyr1063 || yy2arr1063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1063[3] { + yym1074 := z.EncBinary() + _ = yym1074 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1063[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1075 := z.EncBinary() + _ = yym1075 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) + } + } + } + if yyr1063 || yy2arr1063 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1076 := z.DecBinary() + _ = yym1076 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1077 := r.ContainerType() + if yyct1077 == codecSelferValueTypeMap1234 { + yyl1077 := r.ReadMapStart() + if yyl1077 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1077, d) + } + } else if yyct1077 == codecSelferValueTypeArray1234 { + yyl1077 := r.ReadArrayStart() + if yyl1077 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1077, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1078Slc = r.DecodeBytes(yys1078Slc, true, true) + yys1078 := string(yys1078Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1078 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + case "mountPath": + if r.TryDecodeAsNil() { + x.MountPath = "" + } else { + x.MountPath = string(r.DecodeString()) + } + case "subPath": + if r.TryDecodeAsNil() { + x.SubPath = "" + } else { + x.SubPath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1078) + } // end switch yys1078 + } // end for yyj1078 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1083 = r.CheckBreak() + } + if yyb1083 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l + } else { + yyb1083 = r.CheckBreak() + } + if yyb1083 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l + } else { + yyb1083 = r.CheckBreak() + } + if yyb1083 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MountPath = "" + } else { + x.MountPath = string(r.DecodeString()) + } + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l + } else { + yyb1083 = r.CheckBreak() + } + if yyb1083 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SubPath = "" + } else { + x.SubPath = string(r.DecodeString()) + } + for { + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l + } else { + yyb1083 = r.CheckBreak() + } + if yyb1083 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1083-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EnvVar) 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 [3]bool + _, _, _ = yysep1089, yyq1089, yy2arr1089 + const yyr1089 bool = false + yyq1089[1] = x.Value != "" + yyq1089[2] = x.ValueFrom != nil + var yynn1089 int + if yyr1089 || yy2arr1089 { + r.EncodeArrayStart(3) + } else { + yynn1089 = 1 + 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.Name)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1092 := z.EncBinary() + _ = yym1092 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1089[1] { + yym1094 := z.EncBinary() + _ = yym1094 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1089[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1095 := z.EncBinary() + _ = yym1095 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1089[2] { + if x.ValueFrom == nil { + r.EncodeNil() + } else { + x.ValueFrom.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1089[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ValueFrom == nil { + r.EncodeNil() + } else { + x.ValueFrom.CodecEncodeSelf(e) + } + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1097 := z.DecBinary() + _ = yym1097 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1098 := r.ContainerType() + if yyct1098 == codecSelferValueTypeMap1234 { + yyl1098 := r.ReadMapStart() + if yyl1098 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1098, d) + } + } else if yyct1098 == codecSelferValueTypeArray1234 { + yyl1098 := r.ReadArrayStart() + if yyl1098 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1098, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1099Slc = r.DecodeBytes(yys1099Slc, true, true) + yys1099 := string(yys1099Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1099 { + 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()) + } + case "valueFrom": + if r.TryDecodeAsNil() { + if x.ValueFrom != nil { + x.ValueFrom = nil + } + } else { + if x.ValueFrom == nil { + x.ValueFrom = new(EnvVarSource) + } + x.ValueFrom.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1099) + } // end switch yys1099 + } // end for yyj1099 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1103 = r.CheckBreak() + } + if yyb1103 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1103++ + if yyhl1103 { + yyb1103 = yyj1103 > l + } else { + yyb1103 = r.CheckBreak() + } + if yyb1103 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj1103++ + if yyhl1103 { + yyb1103 = yyj1103 > l + } else { + yyb1103 = r.CheckBreak() + } + if yyb1103 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ValueFrom != nil { + x.ValueFrom = nil + } + } else { + if x.ValueFrom == nil { + x.ValueFrom = new(EnvVarSource) + } + x.ValueFrom.CodecDecodeSelf(d) + } + for { + yyj1103++ + if yyhl1103 { + yyb1103 = yyj1103 > l + } else { + yyb1103 = r.CheckBreak() + } + if yyb1103 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1103-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1107 := z.EncBinary() + _ = yym1107 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1108 = 0 + for _, b := range yyq1108 { + if b { + yynn1108++ + } + } + r.EncodeMapStart(yynn1108) + yynn1108 = 0 + } + if yyr1108 || yy2arr1108 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1108[0] { + if x.FieldRef == nil { + r.EncodeNil() + } else { + x.FieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1108[0] { + 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 yyr1108 || yy2arr1108 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1108[1] { + if x.ResourceFieldRef == nil { + r.EncodeNil() + } else { + x.ResourceFieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1108[1] { + 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 yyr1108 || yy2arr1108 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1108[2] { + if x.ConfigMapKeyRef == nil { + r.EncodeNil() + } else { + x.ConfigMapKeyRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1108[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ConfigMapKeyRef == nil { + r.EncodeNil() + } else { + x.ConfigMapKeyRef.CodecEncodeSelf(e) + } + } + } + if yyr1108 || yy2arr1108 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1108[3] { + if x.SecretKeyRef == nil { + r.EncodeNil() + } else { + x.SecretKeyRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1108[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretKeyRef == nil { + r.EncodeNil() + } else { + x.SecretKeyRef.CodecEncodeSelf(e) + } + } + } + if yyr1108 || yy2arr1108 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1113 := z.DecBinary() + _ = yym1113 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1114 := r.ContainerType() + if yyct1114 == codecSelferValueTypeMap1234 { + yyl1114 := r.ReadMapStart() + if yyl1114 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1114, d) + } + } else if yyct1114 == codecSelferValueTypeArray1234 { + yyl1114 := r.ReadArrayStart() + if yyl1114 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1114, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1115Slc = r.DecodeBytes(yys1115Slc, true, true) + yys1115 := string(yys1115Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1115 { + 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 "configMapKeyRef": + if r.TryDecodeAsNil() { + if x.ConfigMapKeyRef != nil { + x.ConfigMapKeyRef = nil + } + } else { + if x.ConfigMapKeyRef == nil { + x.ConfigMapKeyRef = new(ConfigMapKeySelector) + } + x.ConfigMapKeyRef.CodecDecodeSelf(d) + } + case "secretKeyRef": + if r.TryDecodeAsNil() { + if x.SecretKeyRef != nil { + x.SecretKeyRef = nil + } + } else { + if x.SecretKeyRef == nil { + x.SecretKeyRef = new(SecretKeySelector) + } + x.SecretKeyRef.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1115) + } // end switch yys1115 + } // end for yyj1115 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1120 = r.CheckBreak() + } + if yyb1120 { + 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) + } + yyj1120++ + if yyhl1120 { + yyb1120 = yyj1120 > l + } else { + yyb1120 = r.CheckBreak() + } + if yyb1120 { + 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) + } + yyj1120++ + if yyhl1120 { + yyb1120 = yyj1120 > l + } else { + yyb1120 = r.CheckBreak() + } + if yyb1120 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ConfigMapKeyRef != nil { + x.ConfigMapKeyRef = nil + } + } else { + if x.ConfigMapKeyRef == nil { + x.ConfigMapKeyRef = new(ConfigMapKeySelector) + } + x.ConfigMapKeyRef.CodecDecodeSelf(d) + } + yyj1120++ + if yyhl1120 { + yyb1120 = yyj1120 > l + } else { + yyb1120 = r.CheckBreak() + } + if yyb1120 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretKeyRef != nil { + x.SecretKeyRef = nil + } + } else { + if x.SecretKeyRef == nil { + x.SecretKeyRef = new(SecretKeySelector) + } + x.SecretKeyRef.CodecDecodeSelf(d) + } + for { + yyj1120++ + if yyhl1120 { + yyb1120 = yyj1120 > l + } else { + yyb1120 = r.CheckBreak() + } + if yyb1120 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1120-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1125 := z.EncBinary() + _ = yym1125 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1126 = 2 + for _, b := range yyq1126 { + if b { + yynn1126++ + } + } + r.EncodeMapStart(yynn1126) + yynn1126 = 0 + } + if yyr1126 || yy2arr1126 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1128 := z.EncBinary() + _ = yym1128 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1129 := z.EncBinary() + _ = yym1129 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + if yyr1126 || yy2arr1126 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1131 := z.EncBinary() + _ = yym1131 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1132 := z.EncBinary() + _ = yym1132 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } + if yyr1126 || yy2arr1126 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1133 := z.DecBinary() + _ = yym1133 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1134 := r.ContainerType() + if yyct1134 == codecSelferValueTypeMap1234 { + yyl1134 := r.ReadMapStart() + if yyl1134 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1134, d) + } + } else if yyct1134 == codecSelferValueTypeArray1234 { + yyl1134 := r.ReadArrayStart() + if yyl1134 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1134, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1135Slc = r.DecodeBytes(yys1135Slc, true, true) + yys1135 := string(yys1135Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1135 { + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "fieldPath": + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1135) + } // end switch yys1135 + } // end for yyj1135 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1138 = r.CheckBreak() + } + if yyb1138 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1138++ + if yyhl1138 { + yyb1138 = yyj1138 > l + } else { + yyb1138 = r.CheckBreak() + } + if yyb1138 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + for { + yyj1138++ + if yyhl1138 { + yyb1138 = yyj1138 > l + } else { + yyb1138 = r.CheckBreak() + } + if yyb1138 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1138-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1141 := z.EncBinary() + _ = yym1141 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1142 = 1 + for _, b := range yyq1142 { + if b { + yynn1142++ + } + } + r.EncodeMapStart(yynn1142) + yynn1142 = 0 + } + if yyr1142 || yy2arr1142 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1142[0] { + yym1144 := z.EncBinary() + _ = yym1144 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1142[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1145 := z.EncBinary() + _ = yym1145 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) + } + } + } + if yyr1142 || yy2arr1142 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1147 := z.EncBinary() + _ = yym1147 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resource")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1148 := z.EncBinary() + _ = yym1148 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) + } + } + if yyr1142 || yy2arr1142 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1142[2] { + yy1150 := &x.Divisor + yym1151 := z.EncBinary() + _ = yym1151 + if false { + } else if z.HasExtensions() && z.EncExt(yy1150) { + } else if !yym1151 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1150) + } else { + z.EncFallback(yy1150) + } + } else { + r.EncodeNil() + } + } else { + if yyq1142[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("divisor")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1152 := &x.Divisor + yym1153 := z.EncBinary() + _ = yym1153 + if false { + } else if z.HasExtensions() && z.EncExt(yy1152) { + } else if !yym1153 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1152) + } else { + z.EncFallback(yy1152) + } + } + } + if yyr1142 || yy2arr1142 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1154 := z.DecBinary() + _ = yym1154 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1155 := r.ContainerType() + if yyct1155 == codecSelferValueTypeMap1234 { + yyl1155 := r.ReadMapStart() + if yyl1155 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1155, d) + } + } else if yyct1155 == codecSelferValueTypeArray1234 { + yyl1155 := r.ReadArrayStart() + if yyl1155 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1155, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1156Slc = r.DecodeBytes(yys1156Slc, true, true) + yys1156 := string(yys1156Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1156 { + case "containerName": + if r.TryDecodeAsNil() { + x.ContainerName = "" + } else { + x.ContainerName = string(r.DecodeString()) + } + case "resource": + if r.TryDecodeAsNil() { + x.Resource = "" + } else { + x.Resource = string(r.DecodeString()) + } + case "divisor": + if r.TryDecodeAsNil() { + x.Divisor = pkg3_resource.Quantity{} + } else { + yyv1159 := &x.Divisor + yym1160 := z.DecBinary() + _ = yym1160 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1159) { + } else if !yym1160 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1159) + } else { + z.DecFallback(yyv1159, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1156) + } // end switch yys1156 + } // end for yyj1156 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1161 = r.CheckBreak() + } + if yyb1161 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerName = "" + } else { + x.ContainerName = string(r.DecodeString()) + } + yyj1161++ + if yyhl1161 { + yyb1161 = yyj1161 > l + } else { + yyb1161 = r.CheckBreak() + } + if yyb1161 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Resource = "" + } else { + x.Resource = string(r.DecodeString()) + } + yyj1161++ + if yyhl1161 { + yyb1161 = yyj1161 > l + } else { + yyb1161 = r.CheckBreak() + } + if yyb1161 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Divisor = pkg3_resource.Quantity{} + } else { + yyv1164 := &x.Divisor + yym1165 := z.DecBinary() + _ = yym1165 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1164) { + } else if !yym1165 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1164) + } else { + z.DecFallback(yyv1164, false) + } + } + for { + yyj1161++ + if yyhl1161 { + yyb1161 = yyj1161 > l + } else { + yyb1161 = r.CheckBreak() + } + if yyb1161 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1161-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1166 := z.EncBinary() + _ = yym1166 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1167 = 2 + for _, b := range yyq1167 { + if b { + yynn1167++ + } + } + r.EncodeMapStart(yynn1167) + yynn1167 = 0 + } + if yyr1167 || yy2arr1167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1169 := z.EncBinary() + _ = yym1169 + 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) + yym1170 := z.EncBinary() + _ = yym1170 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1167 || yy2arr1167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1172 := z.EncBinary() + _ = yym1172 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1173 := z.EncBinary() + _ = yym1173 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1167 || yy2arr1167 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1174 := z.DecBinary() + _ = yym1174 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1175 := r.ContainerType() + if yyct1175 == codecSelferValueTypeMap1234 { + yyl1175 := r.ReadMapStart() + if yyl1175 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1175, d) + } + } else if yyct1175 == codecSelferValueTypeArray1234 { + yyl1175 := r.ReadArrayStart() + if yyl1175 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1175, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) + yys1176 := string(yys1176Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1176 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1176) + } // end switch yys1176 + } // end for yyj1176 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1179 = r.CheckBreak() + } + if yyb1179 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1179++ + if yyhl1179 { + yyb1179 = yyj1179 > l + } else { + yyb1179 = r.CheckBreak() + } + if yyb1179 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + for { + yyj1179++ + if yyhl1179 { + yyb1179 = yyj1179 > l + } else { + yyb1179 = r.CheckBreak() + } + if yyb1179 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1179-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1182 := z.EncBinary() + _ = yym1182 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1183 = 2 + for _, b := range yyq1183 { + if b { + yynn1183++ + } + } + r.EncodeMapStart(yynn1183) + yynn1183 = 0 + } + if yyr1183 || yy2arr1183 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1185 := z.EncBinary() + _ = yym1185 + 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) + yym1186 := z.EncBinary() + _ = yym1186 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1183 || yy2arr1183 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1188 := z.EncBinary() + _ = yym1188 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1189 := z.EncBinary() + _ = yym1189 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1183 || yy2arr1183 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1190 := z.DecBinary() + _ = yym1190 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1191 := r.ContainerType() + if yyct1191 == codecSelferValueTypeMap1234 { + yyl1191 := r.ReadMapStart() + if yyl1191 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1191, d) + } + } else if yyct1191 == codecSelferValueTypeArray1234 { + yyl1191 := r.ReadArrayStart() + if yyl1191 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1191, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1192Slc = r.DecodeBytes(yys1192Slc, true, true) + yys1192 := string(yys1192Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1192 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1192) + } // end switch yys1192 + } // end for yyj1192 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1195 = r.CheckBreak() + } + if yyb1195 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l + } else { + yyb1195 = r.CheckBreak() + } + if yyb1195 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + for { + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l + } else { + yyb1195 = r.CheckBreak() + } + if yyb1195 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1195-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1198 := z.EncBinary() + _ = yym1198 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1199 = 2 + for _, b := range yyq1199 { + if b { + yynn1199++ + } + } + r.EncodeMapStart(yynn1199) + yynn1199 = 0 + } + if yyr1199 || yy2arr1199 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1201 := z.EncBinary() + _ = yym1201 + 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) + yym1202 := z.EncBinary() + _ = yym1202 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1199 || yy2arr1199 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1204 := z.EncBinary() + _ = yym1204 + 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) + yym1205 := z.EncBinary() + _ = yym1205 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + if yyr1199 || yy2arr1199 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1206 := z.DecBinary() + _ = yym1206 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1207 := r.ContainerType() + if yyct1207 == codecSelferValueTypeMap1234 { + yyl1207 := r.ReadMapStart() + if yyl1207 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1207, d) + } + } else if yyct1207 == codecSelferValueTypeArray1234 { + yyl1207 := r.ReadArrayStart() + if yyl1207 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1207, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1208Slc = r.DecodeBytes(yys1208Slc, true, true) + yys1208 := string(yys1208Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1208 { + 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, yys1208) + } // end switch yys1208 + } // end for yyj1208 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + for { + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1211-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1214 := z.EncBinary() + _ = yym1214 + 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 { + r.EncodeArrayStart(5) + } else { + yynn1215 = 0 + for _, b := range yyq1215 { + if b { + yynn1215++ + } + } + r.EncodeMapStart(yynn1215) + yynn1215 = 0 + } + if yyr1215 || yy2arr1215 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1215[0] { + yym1217 := z.EncBinary() + _ = yym1217 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1215[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1218 := z.EncBinary() + _ = yym1218 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr1215 || yy2arr1215 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1215[1] { + yy1220 := &x.Port + yym1221 := z.EncBinary() + _ = yym1221 + if false { + } else if z.HasExtensions() && z.EncExt(yy1220) { + } else if !yym1221 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1220) + } else { + z.EncFallback(yy1220) + } + } else { + r.EncodeNil() + } + } else { + if yyq1215[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1222 := &x.Port + yym1223 := z.EncBinary() + _ = yym1223 + if false { + } else if z.HasExtensions() && z.EncExt(yy1222) { + } else if !yym1223 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1222) + } else { + z.EncFallback(yy1222) + } + } + } + if yyr1215 || yy2arr1215 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1215[2] { + yym1225 := z.EncBinary() + _ = yym1225 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1215[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1226 := z.EncBinary() + _ = yym1226 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } + } + if yyr1215 || yy2arr1215 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1215[3] { + x.Scheme.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1215[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("scheme")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Scheme.CodecEncodeSelf(e) + } + } + if yyr1215 || yy2arr1215 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1215[4] { + if x.HTTPHeaders == nil { + r.EncodeNil() + } else { + yym1229 := z.EncBinary() + _ = yym1229 + if false { + } else { + h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1215[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 + if false { + } else { + h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) + } + } + } + } + if yyr1215 || yy2arr1215 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1231 := z.DecBinary() + _ = yym1231 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1232 := r.ContainerType() + if yyct1232 == codecSelferValueTypeMap1234 { + yyl1232 := r.ReadMapStart() + if yyl1232 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1232, d) + } + } else if yyct1232 == codecSelferValueTypeArray1234 { + yyl1232 := r.ReadArrayStart() + if yyl1232 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1232, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1233Slc = r.DecodeBytes(yys1233Slc, true, true) + yys1233 := string(yys1233Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1233 { + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "port": + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1235 := &x.Port + yym1236 := z.DecBinary() + _ = yym1236 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1235) { + } else if !yym1236 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1235) + } else { + z.DecFallback(yyv1235, false) + } + } + case "host": + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + case "scheme": + if r.TryDecodeAsNil() { + x.Scheme = "" + } else { + x.Scheme = URIScheme(r.DecodeString()) + } + case "httpHeaders": + if r.TryDecodeAsNil() { + x.HTTPHeaders = nil + } else { + yyv1239 := &x.HTTPHeaders + yym1240 := z.DecBinary() + _ = yym1240 + if false { + } else { + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1239), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1233) + } // end switch yys1233 + } // end for yyj1233 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1241 = r.CheckBreak() + } + if yyb1241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj1241++ + if yyhl1241 { + yyb1241 = yyj1241 > l + } else { + yyb1241 = r.CheckBreak() + } + if yyb1241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1243 := &x.Port + yym1244 := z.DecBinary() + _ = yym1244 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1243) { + } else if !yym1244 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1243) + } else { + z.DecFallback(yyv1243, false) + } + } + yyj1241++ + if yyhl1241 { + yyb1241 = yyj1241 > l + } else { + yyb1241 = r.CheckBreak() + } + if yyb1241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + yyj1241++ + if yyhl1241 { + yyb1241 = yyj1241 > l + } else { + yyb1241 = r.CheckBreak() + } + if yyb1241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Scheme = "" + } else { + x.Scheme = URIScheme(r.DecodeString()) + } + yyj1241++ + if yyhl1241 { + yyb1241 = yyj1241 > l + } else { + yyb1241 = r.CheckBreak() + } + if yyb1241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HTTPHeaders = nil + } else { + yyv1247 := &x.HTTPHeaders + yym1248 := z.DecBinary() + _ = yym1248 + if false { + } else { + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1247), d) + } + } + for { + yyj1241++ + if yyhl1241 { + yyb1241 = yyj1241 > l + } else { + yyb1241 = r.CheckBreak() + } + if yyb1241 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1241-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1249 := z.EncBinary() + _ = yym1249 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1250 := z.DecBinary() + _ = yym1250 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1251 := z.EncBinary() + _ = yym1251 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1252 = 0 + for _, b := range yyq1252 { + if b { + yynn1252++ + } + } + r.EncodeMapStart(yynn1252) + yynn1252 = 0 + } + if yyr1252 || yy2arr1252 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1252[0] { + yy1254 := &x.Port + yym1255 := z.EncBinary() + _ = yym1255 + if false { + } else if z.HasExtensions() && z.EncExt(yy1254) { + } else if !yym1255 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1254) + } else { + z.EncFallback(yy1254) + } + } else { + r.EncodeNil() + } + } else { + if yyq1252[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1256 := &x.Port + yym1257 := z.EncBinary() + _ = yym1257 + if false { + } else if z.HasExtensions() && z.EncExt(yy1256) { + } else if !yym1257 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1256) + } else { + z.EncFallback(yy1256) + } + } + } + if yyr1252 || yy2arr1252 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1258 := z.DecBinary() + _ = yym1258 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1259 := r.ContainerType() + if yyct1259 == codecSelferValueTypeMap1234 { + yyl1259 := r.ReadMapStart() + if yyl1259 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1259, d) + } + } else if yyct1259 == codecSelferValueTypeArray1234 { + yyl1259 := r.ReadArrayStart() + if yyl1259 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1259, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1260Slc = r.DecodeBytes(yys1260Slc, true, true) + yys1260 := string(yys1260Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1260 { + case "port": + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1261 := &x.Port + yym1262 := z.DecBinary() + _ = yym1262 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1261) { + } else if !yym1262 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1261) + } else { + z.DecFallback(yyv1261, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1260) + } // end switch yys1260 + } // end for yyj1260 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1263 = r.CheckBreak() + } + if yyb1263 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1264 := &x.Port + yym1265 := z.DecBinary() + _ = yym1265 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1264) { + } else if !yym1265 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1264) + } else { + z.DecFallback(yyv1264, false) + } + } + for { + yyj1263++ + if yyhl1263 { + yyb1263 = yyj1263 > l + } else { + yyb1263 = r.CheckBreak() + } + if yyb1263 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1263-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1266 := z.EncBinary() + _ = yym1266 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1267 = 0 + for _, b := range yyq1267 { + if b { + yynn1267++ + } + } + r.EncodeMapStart(yynn1267) + yynn1267 = 0 + } + if yyr1267 || yy2arr1267 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1267[0] { + if x.Command == nil { + r.EncodeNil() + } else { + yym1269 := z.EncBinary() + _ = yym1269 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1267[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 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } + } + if yyr1267 || yy2arr1267 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1271 := z.DecBinary() + _ = yym1271 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1272 := r.ContainerType() + if yyct1272 == codecSelferValueTypeMap1234 { + yyl1272 := r.ReadMapStart() + if yyl1272 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1272, d) + } + } else if yyct1272 == codecSelferValueTypeArray1234 { + yyl1272 := r.ReadArrayStart() + if yyl1272 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1272, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1273Slc = r.DecodeBytes(yys1273Slc, true, true) + yys1273 := string(yys1273Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1273 { + case "command": + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1274 := &x.Command + yym1275 := z.DecBinary() + _ = yym1275 + if false { + } else { + z.F.DecSliceStringX(yyv1274, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1273) + } // end switch yys1273 + } // end for yyj1273 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1276 = r.CheckBreak() + } + if yyb1276 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1277 := &x.Command + yym1278 := z.DecBinary() + _ = yym1278 + if false { + } else { + z.F.DecSliceStringX(yyv1277, false, d) + } + } + for { + yyj1276++ + if yyhl1276 { + yyb1276 = yyj1276 > l + } else { + yyb1276 = r.CheckBreak() + } + if yyb1276 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1276-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1279 := z.EncBinary() + _ = yym1279 + 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 { + r.EncodeArrayStart(8) + } else { + yynn1280 = 0 + for _, b := range yyq1280 { + if b { + yynn1280++ + } + } + r.EncodeMapStart(yynn1280) + yynn1280 = 0 + } + var yyn1281 bool + if x.Handler.Exec == nil { + yyn1281 = true + goto LABEL1281 + } + LABEL1281: + if yyr1280 || yy2arr1280 { + if yyn1281 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[0] { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq1280[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn1281 { + r.EncodeNil() + } else { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } + } + } + var yyn1282 bool + if x.Handler.HTTPGet == nil { + yyn1282 = true + goto LABEL1282 + } + LABEL1282: + if yyr1280 || yy2arr1280 { + if yyn1282 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[1] { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq1280[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("httpGet")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn1282 { + r.EncodeNil() + } else { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } + } + } + var yyn1283 bool + if x.Handler.TCPSocket == nil { + yyn1283 = true + goto LABEL1283 + } + LABEL1283: + if yyr1280 || yy2arr1280 { + if yyn1283 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[2] { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq1280[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn1283 { + r.EncodeNil() + } else { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } + } + } + if yyr1280 || yy2arr1280 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[3] { + yym1285 := z.EncBinary() + _ = yym1285 + if false { + } else { + r.EncodeInt(int64(x.InitialDelaySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1280[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1286 := z.EncBinary() + _ = yym1286 + if false { + } else { + r.EncodeInt(int64(x.InitialDelaySeconds)) + } + } + } + if yyr1280 || yy2arr1280 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[4] { + yym1288 := z.EncBinary() + _ = yym1288 + if false { + } else { + r.EncodeInt(int64(x.TimeoutSeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1280[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1289 := z.EncBinary() + _ = yym1289 + if false { + } else { + r.EncodeInt(int64(x.TimeoutSeconds)) + } + } + } + if yyr1280 || yy2arr1280 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[5] { + yym1291 := z.EncBinary() + _ = yym1291 + if false { + } else { + r.EncodeInt(int64(x.PeriodSeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1280[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1292 := z.EncBinary() + _ = yym1292 + if false { + } else { + r.EncodeInt(int64(x.PeriodSeconds)) + } + } + } + if yyr1280 || yy2arr1280 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[6] { + yym1294 := z.EncBinary() + _ = yym1294 + if false { + } else { + r.EncodeInt(int64(x.SuccessThreshold)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1280[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1295 := z.EncBinary() + _ = yym1295 + if false { + } else { + r.EncodeInt(int64(x.SuccessThreshold)) + } + } + } + if yyr1280 || yy2arr1280 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1280[7] { + yym1297 := z.EncBinary() + _ = yym1297 + if false { + } else { + r.EncodeInt(int64(x.FailureThreshold)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1280[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1298 := z.EncBinary() + _ = yym1298 + if false { + } else { + r.EncodeInt(int64(x.FailureThreshold)) + } + } + } + if yyr1280 || yy2arr1280 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1299 := z.DecBinary() + _ = yym1299 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1300 := r.ContainerType() + if yyct1300 == codecSelferValueTypeMap1234 { + yyl1300 := r.ReadMapStart() + if yyl1300 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1300, d) + } + } else if yyct1300 == codecSelferValueTypeArray1234 { + yyl1300 := r.ReadArrayStart() + if yyl1300 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1300, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1301Slc = r.DecodeBytes(yys1301Slc, true, true) + yys1301 := string(yys1301Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1301 { + case "exec": + if x.Handler.Exec == nil { + x.Handler.Exec = new(ExecAction) + } + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + case "httpGet": + if x.Handler.HTTPGet == nil { + x.Handler.HTTPGet = new(HTTPGetAction) + } + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + case "tcpSocket": + if x.Handler.TCPSocket == nil { + x.Handler.TCPSocket = new(TCPSocketAction) + } + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + case "initialDelaySeconds": + if r.TryDecodeAsNil() { + x.InitialDelaySeconds = 0 + } else { + x.InitialDelaySeconds = int32(r.DecodeInt(32)) + } + case "timeoutSeconds": + if r.TryDecodeAsNil() { + x.TimeoutSeconds = 0 + } else { + x.TimeoutSeconds = int32(r.DecodeInt(32)) + } + case "periodSeconds": + if r.TryDecodeAsNil() { + x.PeriodSeconds = 0 + } else { + x.PeriodSeconds = int32(r.DecodeInt(32)) + } + case "successThreshold": + if r.TryDecodeAsNil() { + x.SuccessThreshold = 0 + } else { + x.SuccessThreshold = int32(r.DecodeInt(32)) + } + case "failureThreshold": + if r.TryDecodeAsNil() { + x.FailureThreshold = 0 + } else { + x.FailureThreshold = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys1301) + } // end switch yys1301 + } // end for yyj1301 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + if x.Handler.Exec == nil { + x.Handler.Exec = new(ExecAction) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + if x.Handler.HTTPGet == nil { + x.Handler.HTTPGet = new(HTTPGetAction) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + if x.Handler.TCPSocket == nil { + x.Handler.TCPSocket = new(TCPSocketAction) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.InitialDelaySeconds = 0 + } else { + x.InitialDelaySeconds = int32(r.DecodeInt(32)) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TimeoutSeconds = 0 + } else { + x.TimeoutSeconds = int32(r.DecodeInt(32)) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PeriodSeconds = 0 + } else { + x.PeriodSeconds = int32(r.DecodeInt(32)) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SuccessThreshold = 0 + } else { + x.SuccessThreshold = int32(r.DecodeInt(32)) + } + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FailureThreshold = 0 + } else { + x.FailureThreshold = int32(r.DecodeInt(32)) + } + for { + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l + } else { + yyb1310 = r.CheckBreak() + } + if yyb1310 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1310-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1319 := z.EncBinary() + _ = yym1319 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1320 := z.DecBinary() + _ = yym1320 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1321 := z.EncBinary() + _ = yym1321 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1322 := z.DecBinary() + _ = yym1322 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1323 := z.EncBinary() + _ = yym1323 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1324 = 0 + for _, b := range yyq1324 { + if b { + yynn1324++ + } + } + r.EncodeMapStart(yynn1324) + yynn1324 = 0 + } + if yyr1324 || yy2arr1324 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1324[0] { + if x.Add == nil { + r.EncodeNil() + } else { + yym1326 := z.EncBinary() + _ = yym1326 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Add), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1324[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 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Add), e) + } + } + } + } + if yyr1324 || yy2arr1324 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1324[1] { + if x.Drop == nil { + r.EncodeNil() + } else { + yym1329 := z.EncBinary() + _ = yym1329 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Drop), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1324[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 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Drop), e) + } + } + } + } + if yyr1324 || yy2arr1324 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1331 := z.DecBinary() + _ = yym1331 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1332 := r.ContainerType() + if yyct1332 == codecSelferValueTypeMap1234 { + yyl1332 := r.ReadMapStart() + if yyl1332 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1332, d) + } + } else if yyct1332 == codecSelferValueTypeArray1234 { + yyl1332 := r.ReadArrayStart() + if yyl1332 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1332, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1333Slc = r.DecodeBytes(yys1333Slc, true, true) + yys1333 := string(yys1333Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1333 { + case "add": + if r.TryDecodeAsNil() { + x.Add = nil + } else { + yyv1334 := &x.Add + yym1335 := z.DecBinary() + _ = yym1335 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1334), d) + } + } + case "drop": + if r.TryDecodeAsNil() { + x.Drop = nil + } else { + yyv1336 := &x.Drop + yym1337 := z.DecBinary() + _ = yym1337 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1336), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1333) + } // end switch yys1333 + } // end for yyj1333 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1338 = r.CheckBreak() + } + if yyb1338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Add = nil + } else { + yyv1339 := &x.Add + yym1340 := z.DecBinary() + _ = yym1340 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1339), d) + } + } + yyj1338++ + if yyhl1338 { + yyb1338 = yyj1338 > l + } else { + yyb1338 = r.CheckBreak() + } + if yyb1338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Drop = nil + } else { + yyv1341 := &x.Drop + yym1342 := z.DecBinary() + _ = yym1342 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1341), d) + } + } + for { + yyj1338++ + if yyhl1338 { + yyb1338 = yyj1338 > l + } else { + yyb1338 = r.CheckBreak() + } + if yyb1338 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1338-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1343 := z.EncBinary() + _ = yym1343 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1344 = 0 + for _, b := range yyq1344 { + if b { + yynn1344++ + } + } + r.EncodeMapStart(yynn1344) + yynn1344 = 0 + } + if yyr1344 || yy2arr1344 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1344[0] { + if x.Limits == nil { + r.EncodeNil() + } else { + x.Limits.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1344[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("limits")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Limits == nil { + r.EncodeNil() + } else { + x.Limits.CodecEncodeSelf(e) + } + } + } + if yyr1344 || yy2arr1344 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1344[1] { + if x.Requests == nil { + r.EncodeNil() + } else { + x.Requests.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1344[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("requests")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Requests == nil { + r.EncodeNil() + } else { + x.Requests.CodecEncodeSelf(e) + } + } + } + if yyr1344 || yy2arr1344 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1347 := z.DecBinary() + _ = yym1347 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1348 := r.ContainerType() + if yyct1348 == codecSelferValueTypeMap1234 { + yyl1348 := r.ReadMapStart() + if yyl1348 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1348, d) + } + } else if yyct1348 == codecSelferValueTypeArray1234 { + yyl1348 := r.ReadArrayStart() + if yyl1348 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1348, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) + yys1349 := string(yys1349Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1349 { + case "limits": + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv1350 := &x.Limits + yyv1350.CodecDecodeSelf(d) + } + case "requests": + if r.TryDecodeAsNil() { + x.Requests = nil + } else { + yyv1351 := &x.Requests + yyv1351.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1349) + } // end switch yys1349 + } // end for yyj1349 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1352 = r.CheckBreak() + } + if yyb1352 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv1353 := &x.Limits + yyv1353.CodecDecodeSelf(d) + } + yyj1352++ + if yyhl1352 { + yyb1352 = yyj1352 > l + } else { + yyb1352 = r.CheckBreak() + } + if yyb1352 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Requests = nil + } else { + yyv1354 := &x.Requests + yyv1354.CodecDecodeSelf(d) + } + for { + yyj1352++ + if yyhl1352 { + yyb1352 = yyj1352 > l + } else { + yyb1352 = r.CheckBreak() + } + if yyb1352 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1352-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1355 := z.EncBinary() + _ = yym1355 + 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 { + r.EncodeArrayStart(18) + } else { + yynn1356 = 3 + for _, b := range yyq1356 { + if b { + yynn1356++ + } + } + r.EncodeMapStart(yynn1356) + yynn1356 = 0 + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1358 := z.EncBinary() + _ = yym1358 + 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) + yym1359 := z.EncBinary() + _ = yym1359 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1361 := z.EncBinary() + _ = yym1361 + 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) + yym1362 := z.EncBinary() + _ = yym1362 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[2] { + if x.Command == nil { + r.EncodeNil() + } else { + yym1364 := z.EncBinary() + _ = yym1364 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[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 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[3] { + if x.Args == nil { + r.EncodeNil() + } else { + yym1367 := z.EncBinary() + _ = yym1367 + if false { + } else { + z.F.EncSliceStringV(x.Args, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[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 + if false { + } else { + z.F.EncSliceStringV(x.Args, false, e) + } + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[4] { + yym1370 := z.EncBinary() + _ = yym1370 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1356[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("workingDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1371 := z.EncBinary() + _ = yym1371 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[5] { + if x.Ports == nil { + r.EncodeNil() + } else { + yym1373 := z.EncBinary() + _ = yym1373 + if false { + } else { + h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[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 + if false { + } else { + h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) + } + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[6] { + if x.Env == nil { + r.EncodeNil() + } else { + yym1376 := z.EncBinary() + _ = yym1376 + if false { + } else { + h.encSliceEnvVar(([]EnvVar)(x.Env), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[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 + if false { + } else { + h.encSliceEnvVar(([]EnvVar)(x.Env), e) + } + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[7] { + yy1379 := &x.Resources + yy1379.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1356[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1380 := &x.Resources + yy1380.CodecEncodeSelf(e) + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[8] { + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + yym1382 := z.EncBinary() + _ = yym1382 + if false { + } else { + h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[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 + if false { + } else { + h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) + } + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[9] { + if x.LivenessProbe == nil { + r.EncodeNil() + } else { + x.LivenessProbe.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LivenessProbe == nil { + r.EncodeNil() + } else { + x.LivenessProbe.CodecEncodeSelf(e) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[10] { + if x.ReadinessProbe == nil { + r.EncodeNil() + } else { + x.ReadinessProbe.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadinessProbe == nil { + r.EncodeNil() + } else { + x.ReadinessProbe.CodecEncodeSelf(e) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[11] { + if x.Lifecycle == nil { + r.EncodeNil() + } else { + x.Lifecycle.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Lifecycle == nil { + r.EncodeNil() + } else { + x.Lifecycle.CodecEncodeSelf(e) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[12] { + yym1388 := z.EncBinary() + _ = yym1388 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1356[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1389 := z.EncBinary() + _ = yym1389 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.ImagePullPolicy.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.ImagePullPolicy.CodecEncodeSelf(e) + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[14] { + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1356[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("securityContext")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[15] { + yym1393 := z.EncBinary() + _ = yym1393 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1356[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1394 := z.EncBinary() + _ = yym1394 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[16] { + yym1396 := z.EncBinary() + _ = yym1396 + if false { + } else { + r.EncodeBool(bool(x.StdinOnce)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1356[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1397 := z.EncBinary() + _ = yym1397 + if false { + } else { + r.EncodeBool(bool(x.StdinOnce)) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1356[17] { + yym1399 := z.EncBinary() + _ = yym1399 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1356[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tty")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1400 := z.EncBinary() + _ = yym1400 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1401 := z.DecBinary() + _ = yym1401 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1402 := r.ContainerType() + if yyct1402 == codecSelferValueTypeMap1234 { + yyl1402 := r.ReadMapStart() + if yyl1402 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1402, d) + } + } else if yyct1402 == codecSelferValueTypeArray1234 { + yyl1402 := r.ReadArrayStart() + if yyl1402 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1402, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1403Slc = r.DecodeBytes(yys1403Slc, true, true) + yys1403 := string(yys1403Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1403 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "image": + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + case "command": + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1406 := &x.Command + yym1407 := z.DecBinary() + _ = yym1407 + if false { + } else { + z.F.DecSliceStringX(yyv1406, false, d) + } + } + case "args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + yyv1408 := &x.Args + yym1409 := z.DecBinary() + _ = yym1409 + if false { + } else { + z.F.DecSliceStringX(yyv1408, false, d) + } + } + case "workingDir": + if r.TryDecodeAsNil() { + x.WorkingDir = "" + } else { + x.WorkingDir = string(r.DecodeString()) + } + case "ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv1411 := &x.Ports + yym1412 := z.DecBinary() + _ = yym1412 + if false { + } else { + h.decSliceContainerPort((*[]ContainerPort)(yyv1411), d) + } + } + case "env": + if r.TryDecodeAsNil() { + x.Env = nil + } else { + yyv1413 := &x.Env + yym1414 := z.DecBinary() + _ = yym1414 + if false { + } else { + h.decSliceEnvVar((*[]EnvVar)(yyv1413), d) + } + } + case "resources": + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv1415 := &x.Resources + yyv1415.CodecDecodeSelf(d) + } + case "volumeMounts": + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + yyv1416 := &x.VolumeMounts + yym1417 := z.DecBinary() + _ = yym1417 + if false { + } else { + h.decSliceVolumeMount((*[]VolumeMount)(yyv1416), d) + } + } + case "livenessProbe": + if r.TryDecodeAsNil() { + if x.LivenessProbe != nil { + x.LivenessProbe = nil + } + } else { + if x.LivenessProbe == nil { + x.LivenessProbe = new(Probe) + } + x.LivenessProbe.CodecDecodeSelf(d) + } + case "readinessProbe": + if r.TryDecodeAsNil() { + if x.ReadinessProbe != nil { + x.ReadinessProbe = nil + } + } else { + if x.ReadinessProbe == nil { + x.ReadinessProbe = new(Probe) + } + x.ReadinessProbe.CodecDecodeSelf(d) + } + case "lifecycle": + if r.TryDecodeAsNil() { + if x.Lifecycle != nil { + x.Lifecycle = nil + } + } else { + if x.Lifecycle == nil { + x.Lifecycle = new(Lifecycle) + } + x.Lifecycle.CodecDecodeSelf(d) + } + case "terminationMessagePath": + if r.TryDecodeAsNil() { + x.TerminationMessagePath = "" + } else { + x.TerminationMessagePath = string(r.DecodeString()) + } + case "imagePullPolicy": + if r.TryDecodeAsNil() { + x.ImagePullPolicy = "" + } else { + x.ImagePullPolicy = PullPolicy(r.DecodeString()) + } + case "securityContext": + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(SecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + case "stdin": + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + case "stdinOnce": + if r.TryDecodeAsNil() { + x.StdinOnce = false + } else { + x.StdinOnce = bool(r.DecodeBool()) + } + case "tty": + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys1403) + } // end switch yys1403 + } // end for yyj1403 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1430 := &x.Command + yym1431 := z.DecBinary() + _ = yym1431 + if false { + } else { + z.F.DecSliceStringX(yyv1430, false, d) + } + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Args = nil + } else { + yyv1432 := &x.Args + yym1433 := z.DecBinary() + _ = yym1433 + if false { + } else { + z.F.DecSliceStringX(yyv1432, false, d) + } + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.WorkingDir = "" + } else { + x.WorkingDir = string(r.DecodeString()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv1435 := &x.Ports + yym1436 := z.DecBinary() + _ = yym1436 + if false { + } else { + h.decSliceContainerPort((*[]ContainerPort)(yyv1435), d) + } + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Env = nil + } else { + yyv1437 := &x.Env + yym1438 := z.DecBinary() + _ = yym1438 + if false { + } else { + h.decSliceEnvVar((*[]EnvVar)(yyv1437), d) + } + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv1439 := &x.Resources + yyv1439.CodecDecodeSelf(d) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + yyv1440 := &x.VolumeMounts + yym1441 := z.DecBinary() + _ = yym1441 + if false { + } else { + h.decSliceVolumeMount((*[]VolumeMount)(yyv1440), d) + } + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LivenessProbe != nil { + x.LivenessProbe = nil + } + } else { + if x.LivenessProbe == nil { + x.LivenessProbe = new(Probe) + } + x.LivenessProbe.CodecDecodeSelf(d) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ReadinessProbe != nil { + x.ReadinessProbe = nil + } + } else { + if x.ReadinessProbe == nil { + x.ReadinessProbe = new(Probe) + } + x.ReadinessProbe.CodecDecodeSelf(d) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Lifecycle != nil { + x.Lifecycle = nil + } + } else { + if x.Lifecycle == nil { + x.Lifecycle = new(Lifecycle) + } + x.Lifecycle.CodecDecodeSelf(d) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TerminationMessagePath = "" + } else { + x.TerminationMessagePath = string(r.DecodeString()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImagePullPolicy = "" + } else { + x.ImagePullPolicy = PullPolicy(r.DecodeString()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(SecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StdinOnce = false + } else { + x.StdinOnce = bool(r.DecodeBool()) + } + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + for { + yyj1427++ + if yyhl1427 { + yyb1427 = yyj1427 > l + } else { + yyb1427 = r.CheckBreak() + } + if yyb1427 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1427-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1451 := z.EncBinary() + _ = yym1451 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1452 = 0 + for _, b := range yyq1452 { + if b { + yynn1452++ + } + } + r.EncodeMapStart(yynn1452) + yynn1452 = 0 + } + if yyr1452 || yy2arr1452 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1452[0] { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1452[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } + } + if yyr1452 || yy2arr1452 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1452[1] { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1452[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("httpGet")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } + } + if yyr1452 || yy2arr1452 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1452[2] { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1452[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } + } + if yyr1452 || yy2arr1452 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1456 := z.DecBinary() + _ = yym1456 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1457 := r.ContainerType() + if yyct1457 == codecSelferValueTypeMap1234 { + yyl1457 := r.ReadMapStart() + if yyl1457 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1457, d) + } + } else if yyct1457 == codecSelferValueTypeArray1234 { + yyl1457 := r.ReadArrayStart() + if yyl1457 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1457, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1458Slc = r.DecodeBytes(yys1458Slc, true, true) + yys1458 := string(yys1458Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1458 { + case "exec": + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + case "httpGet": + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + case "tcpSocket": + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1458) + } // end switch yys1458 + } // end for yyj1458 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1462 = r.CheckBreak() + } + if yyb1462 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + yyj1462++ + if yyhl1462 { + yyb1462 = yyj1462 > l + } else { + yyb1462 = r.CheckBreak() + } + if yyb1462 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + yyj1462++ + if yyhl1462 { + yyb1462 = yyj1462 > l + } else { + yyb1462 = r.CheckBreak() + } + if yyb1462 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + for { + yyj1462++ + if yyhl1462 { + yyb1462 = yyj1462 > l + } else { + yyb1462 = r.CheckBreak() + } + if yyb1462 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1462-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1466 := z.EncBinary() + _ = yym1466 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1467 = 0 + for _, b := range yyq1467 { + if b { + yynn1467++ + } + } + r.EncodeMapStart(yynn1467) + yynn1467 = 0 + } + if yyr1467 || yy2arr1467 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1467[0] { + if x.PostStart == nil { + r.EncodeNil() + } else { + x.PostStart.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1467[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("postStart")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PostStart == nil { + r.EncodeNil() + } else { + x.PostStart.CodecEncodeSelf(e) + } + } + } + if yyr1467 || yy2arr1467 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1467[1] { + if x.PreStop == nil { + r.EncodeNil() + } else { + x.PreStop.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1467[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preStop")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PreStop == nil { + r.EncodeNil() + } else { + x.PreStop.CodecEncodeSelf(e) + } + } + } + if yyr1467 || yy2arr1467 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1470 := z.DecBinary() + _ = yym1470 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1471 := r.ContainerType() + if yyct1471 == codecSelferValueTypeMap1234 { + yyl1471 := r.ReadMapStart() + if yyl1471 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1471, d) + } + } else if yyct1471 == codecSelferValueTypeArray1234 { + yyl1471 := r.ReadArrayStart() + if yyl1471 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1471, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1472Slc = r.DecodeBytes(yys1472Slc, true, true) + yys1472 := string(yys1472Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1472 { + case "postStart": + if r.TryDecodeAsNil() { + if x.PostStart != nil { + x.PostStart = nil + } + } else { + if x.PostStart == nil { + x.PostStart = new(Handler) + } + x.PostStart.CodecDecodeSelf(d) + } + case "preStop": + if r.TryDecodeAsNil() { + if x.PreStop != nil { + x.PreStop = nil + } + } else { + if x.PreStop == nil { + x.PreStop = new(Handler) + } + x.PreStop.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1472) + } // end switch yys1472 + } // end for yyj1472 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1475 = r.CheckBreak() + } + if yyb1475 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PostStart != nil { + x.PostStart = nil + } + } else { + if x.PostStart == nil { + x.PostStart = new(Handler) + } + x.PostStart.CodecDecodeSelf(d) + } + yyj1475++ + if yyhl1475 { + yyb1475 = yyj1475 > l + } else { + yyb1475 = r.CheckBreak() + } + if yyb1475 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PreStop != nil { + x.PreStop = nil + } + } else { + if x.PreStop == nil { + x.PreStop = new(Handler) + } + x.PreStop.CodecDecodeSelf(d) + } + for { + yyj1475++ + if yyhl1475 { + yyb1475 = yyj1475 > l + } else { + yyb1475 = r.CheckBreak() + } + if yyb1475 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1475-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1478 := z.EncBinary() + _ = yym1478 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1479 := z.DecBinary() + _ = yym1479 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1480 := z.EncBinary() + _ = yym1480 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1481 = 0 + for _, b := range yyq1481 { + if b { + yynn1481++ + } + } + r.EncodeMapStart(yynn1481) + yynn1481 = 0 + } + if yyr1481 || yy2arr1481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1481[0] { + yym1483 := z.EncBinary() + _ = yym1483 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1481[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1484 := z.EncBinary() + _ = yym1484 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1481 || yy2arr1481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1481[1] { + yym1486 := z.EncBinary() + _ = yym1486 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1481[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1487 := z.EncBinary() + _ = yym1487 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1481 || yy2arr1481 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1488 := z.DecBinary() + _ = yym1488 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1489 := r.ContainerType() + if yyct1489 == codecSelferValueTypeMap1234 { + yyl1489 := r.ReadMapStart() + if yyl1489 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1489, d) + } + } else if yyct1489 == codecSelferValueTypeArray1234 { + yyl1489 := r.ReadArrayStart() + if yyl1489 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1489, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1490Slc = r.DecodeBytes(yys1490Slc, true, true) + yys1490 := string(yys1490Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1490 { + 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, yys1490) + } // end switch yys1490 + } // end for yyj1490 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1493 = r.CheckBreak() + } + if yyb1493 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1493++ + if yyhl1493 { + yyb1493 = yyj1493 > l + } else { + yyb1493 = r.CheckBreak() + } + if yyb1493 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1493++ + if yyhl1493 { + yyb1493 = yyj1493 > l + } else { + yyb1493 = r.CheckBreak() + } + if yyb1493 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1493-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1496 := z.EncBinary() + _ = yym1496 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1497 = 0 + for _, b := range yyq1497 { + if b { + yynn1497++ + } + } + r.EncodeMapStart(yynn1497) + yynn1497 = 0 + } + if yyr1497 || yy2arr1497 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1497[0] { + yy1499 := &x.StartedAt + yym1500 := z.EncBinary() + _ = yym1500 + if false { + } else if z.HasExtensions() && z.EncExt(yy1499) { + } else if yym1500 { + z.EncBinaryMarshal(yy1499) + } else if !yym1500 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1499) + } else { + z.EncFallback(yy1499) + } + } else { + r.EncodeNil() + } + } else { + if yyq1497[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1501 := &x.StartedAt + yym1502 := z.EncBinary() + _ = yym1502 + if false { + } else if z.HasExtensions() && z.EncExt(yy1501) { + } else if yym1502 { + z.EncBinaryMarshal(yy1501) + } else if !yym1502 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1501) + } else { + z.EncFallback(yy1501) + } + } + } + if yyr1497 || yy2arr1497 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1503 := z.DecBinary() + _ = yym1503 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1504 := r.ContainerType() + if yyct1504 == codecSelferValueTypeMap1234 { + yyl1504 := r.ReadMapStart() + if yyl1504 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1504, d) + } + } else if yyct1504 == codecSelferValueTypeArray1234 { + yyl1504 := r.ReadArrayStart() + if yyl1504 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1504, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1505Slc = r.DecodeBytes(yys1505Slc, true, true) + yys1505 := string(yys1505Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1505 { + case "startedAt": + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1506 := &x.StartedAt + yym1507 := z.DecBinary() + _ = yym1507 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1506) { + } else if yym1507 { + z.DecBinaryUnmarshal(yyv1506) + } else if !yym1507 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1506) + } else { + z.DecFallback(yyv1506, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1505) + } // end switch yys1505 + } // end for yyj1505 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1508 = r.CheckBreak() + } + if yyb1508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1509 := &x.StartedAt + yym1510 := z.DecBinary() + _ = yym1510 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1509) { + } else if yym1510 { + z.DecBinaryUnmarshal(yyv1509) + } else if !yym1510 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1509) + } else { + z.DecFallback(yyv1509, false) + } + } + for { + yyj1508++ + if yyhl1508 { + yyb1508 = yyj1508 > l + } else { + yyb1508 = r.CheckBreak() + } + if yyb1508 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1508-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1511 := z.EncBinary() + _ = yym1511 + 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 { + r.EncodeArrayStart(7) + } else { + yynn1512 = 1 + for _, b := range yyq1512 { + if b { + yynn1512++ + } + } + r.EncodeMapStart(yynn1512) + yynn1512 = 0 + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1514 := z.EncBinary() + _ = yym1514 + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exitCode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1515 := z.EncBinary() + _ = yym1515 + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1512[1] { + yym1517 := z.EncBinary() + _ = yym1517 + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1512[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("signal")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1518 := z.EncBinary() + _ = yym1518 + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1512[2] { + yym1520 := z.EncBinary() + _ = yym1520 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1512[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1521 := z.EncBinary() + _ = yym1521 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1512[3] { + yym1523 := z.EncBinary() + _ = yym1523 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1512[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1524 := z.EncBinary() + _ = yym1524 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1512[4] { + yy1526 := &x.StartedAt + yym1527 := z.EncBinary() + _ = yym1527 + if false { + } else if z.HasExtensions() && z.EncExt(yy1526) { + } else if yym1527 { + z.EncBinaryMarshal(yy1526) + } else if !yym1527 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1526) + } else { + z.EncFallback(yy1526) + } + } else { + r.EncodeNil() + } + } else { + if yyq1512[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1528 := &x.StartedAt + yym1529 := z.EncBinary() + _ = yym1529 + if false { + } else if z.HasExtensions() && z.EncExt(yy1528) { + } else if yym1529 { + z.EncBinaryMarshal(yy1528) + } else if !yym1529 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1528) + } else { + z.EncFallback(yy1528) + } + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1512[5] { + yy1531 := &x.FinishedAt + yym1532 := z.EncBinary() + _ = yym1532 + if false { + } else if z.HasExtensions() && z.EncExt(yy1531) { + } else if yym1532 { + z.EncBinaryMarshal(yy1531) + } else if !yym1532 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1531) + } else { + z.EncFallback(yy1531) + } + } else { + r.EncodeNil() + } + } else { + if yyq1512[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1533 := &x.FinishedAt + yym1534 := z.EncBinary() + _ = yym1534 + if false { + } else if z.HasExtensions() && z.EncExt(yy1533) { + } else if yym1534 { + z.EncBinaryMarshal(yy1533) + } else if !yym1534 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1533) + } else { + z.EncFallback(yy1533) + } + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1512[6] { + yym1536 := z.EncBinary() + _ = yym1536 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1512[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1537 := z.EncBinary() + _ = yym1537 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } + } + if yyr1512 || yy2arr1512 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1538 := z.DecBinary() + _ = yym1538 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1539 := r.ContainerType() + if yyct1539 == codecSelferValueTypeMap1234 { + yyl1539 := r.ReadMapStart() + if yyl1539 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1539, d) + } + } else if yyct1539 == codecSelferValueTypeArray1234 { + yyl1539 := r.ReadArrayStart() + if yyl1539 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1539, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1540Slc = r.DecodeBytes(yys1540Slc, true, true) + yys1540 := string(yys1540Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1540 { + case "exitCode": + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = int32(r.DecodeInt(32)) + } + case "signal": + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = int32(r.DecodeInt(32)) + } + 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 "startedAt": + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1545 := &x.StartedAt + yym1546 := z.DecBinary() + _ = yym1546 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1545) { + } else if yym1546 { + z.DecBinaryUnmarshal(yyv1545) + } else if !yym1546 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1545) + } else { + z.DecFallback(yyv1545, false) + } + } + case "finishedAt": + if r.TryDecodeAsNil() { + x.FinishedAt = pkg2_unversioned.Time{} + } else { + yyv1547 := &x.FinishedAt + yym1548 := z.DecBinary() + _ = yym1548 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1547) { + } else if yym1548 { + z.DecBinaryUnmarshal(yyv1547) + } else if !yym1548 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1547) + } else { + z.DecFallback(yyv1547, false) + } + } + case "containerID": + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1540) + } // end switch yys1540 + } // end for yyj1540 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = int32(r.DecodeInt(32)) + } + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = int32(r.DecodeInt(32)) + } + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1555 := &x.StartedAt + yym1556 := z.DecBinary() + _ = yym1556 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1555) { + } else if yym1556 { + z.DecBinaryUnmarshal(yyv1555) + } else if !yym1556 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1555) + } else { + z.DecFallback(yyv1555, false) + } + } + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FinishedAt = pkg2_unversioned.Time{} + } else { + yyv1557 := &x.FinishedAt + yym1558 := z.DecBinary() + _ = yym1558 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1557) { + } else if yym1558 { + z.DecBinaryUnmarshal(yyv1557) + } else if !yym1558 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1557) + } else { + z.DecFallback(yyv1557, false) + } + } + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + for { + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l + } else { + yyb1550 = r.CheckBreak() + } + if yyb1550 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1550-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1560 := z.EncBinary() + _ = yym1560 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1561 = 0 + for _, b := range yyq1561 { + if b { + yynn1561++ + } + } + r.EncodeMapStart(yynn1561) + yynn1561 = 0 + } + if yyr1561 || yy2arr1561 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1561[0] { + if x.Waiting == nil { + r.EncodeNil() + } else { + x.Waiting.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1561[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("waiting")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Waiting == nil { + r.EncodeNil() + } else { + x.Waiting.CodecEncodeSelf(e) + } + } + } + if yyr1561 || yy2arr1561 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1561[1] { + if x.Running == nil { + r.EncodeNil() + } else { + x.Running.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1561[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("running")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Running == nil { + r.EncodeNil() + } else { + x.Running.CodecEncodeSelf(e) + } + } + } + if yyr1561 || yy2arr1561 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1561[2] { + if x.Terminated == nil { + r.EncodeNil() + } else { + x.Terminated.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1561[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("terminated")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Terminated == nil { + r.EncodeNil() + } else { + x.Terminated.CodecEncodeSelf(e) + } + } + } + if yyr1561 || yy2arr1561 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1565 := z.DecBinary() + _ = yym1565 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1566 := r.ContainerType() + if yyct1566 == codecSelferValueTypeMap1234 { + yyl1566 := r.ReadMapStart() + if yyl1566 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1566, d) + } + } else if yyct1566 == codecSelferValueTypeArray1234 { + yyl1566 := r.ReadArrayStart() + if yyl1566 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1566, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1567Slc = r.DecodeBytes(yys1567Slc, true, true) + yys1567 := string(yys1567Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1567 { + case "waiting": + if r.TryDecodeAsNil() { + if x.Waiting != nil { + x.Waiting = nil + } + } else { + if x.Waiting == nil { + x.Waiting = new(ContainerStateWaiting) + } + x.Waiting.CodecDecodeSelf(d) + } + case "running": + if r.TryDecodeAsNil() { + if x.Running != nil { + x.Running = nil + } + } else { + if x.Running == nil { + x.Running = new(ContainerStateRunning) + } + x.Running.CodecDecodeSelf(d) + } + case "terminated": + if r.TryDecodeAsNil() { + if x.Terminated != nil { + x.Terminated = nil + } + } else { + if x.Terminated == nil { + x.Terminated = new(ContainerStateTerminated) + } + x.Terminated.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1567) + } // end switch yys1567 + } // end for yyj1567 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1571 = r.CheckBreak() + } + if yyb1571 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Waiting != nil { + x.Waiting = nil + } + } else { + if x.Waiting == nil { + x.Waiting = new(ContainerStateWaiting) + } + x.Waiting.CodecDecodeSelf(d) + } + yyj1571++ + if yyhl1571 { + yyb1571 = yyj1571 > l + } else { + yyb1571 = r.CheckBreak() + } + if yyb1571 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Running != nil { + x.Running = nil + } + } else { + if x.Running == nil { + x.Running = new(ContainerStateRunning) + } + x.Running.CodecDecodeSelf(d) + } + yyj1571++ + if yyhl1571 { + yyb1571 = yyj1571 > l + } else { + yyb1571 = r.CheckBreak() + } + if yyb1571 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Terminated != nil { + x.Terminated = nil + } + } else { + if x.Terminated == nil { + x.Terminated = new(ContainerStateTerminated) + } + x.Terminated.CodecDecodeSelf(d) + } + for { + yyj1571++ + if yyhl1571 { + yyb1571 = yyj1571 > l + } else { + yyb1571 = r.CheckBreak() + } + if yyb1571 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1571-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1575 := z.EncBinary() + _ = yym1575 + 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 { + r.EncodeArrayStart(8) + } else { + yynn1576 = 5 + for _, b := range yyq1576 { + if b { + yynn1576++ + } + } + r.EncodeMapStart(yynn1576) + yynn1576 = 0 + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1578 := z.EncBinary() + _ = yym1578 + 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) + yym1579 := z.EncBinary() + _ = yym1579 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1576[1] { + yy1581 := &x.State + yy1581.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1576[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("state")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1582 := &x.State + yy1582.CodecEncodeSelf(e) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1576[2] { + yy1584 := &x.LastTerminationState + yy1584.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1576[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastState")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1585 := &x.LastTerminationState + yy1585.CodecEncodeSelf(e) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1587 := z.EncBinary() + _ = yym1587 + if false { + } else { + r.EncodeBool(bool(x.Ready)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ready")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1588 := z.EncBinary() + _ = yym1588 + if false { + } else { + r.EncodeBool(bool(x.Ready)) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1590 := z.EncBinary() + _ = yym1590 + if false { + } else { + r.EncodeInt(int64(x.RestartCount)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("restartCount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1591 := z.EncBinary() + _ = yym1591 + if false { + } else { + r.EncodeInt(int64(x.RestartCount)) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1593 := z.EncBinary() + _ = yym1593 + 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) + yym1594 := z.EncBinary() + _ = yym1594 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1596 := z.EncBinary() + _ = yym1596 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imageID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1597 := z.EncBinary() + _ = yym1597 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1576[7] { + yym1599 := z.EncBinary() + _ = yym1599 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1576[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1600 := z.EncBinary() + _ = yym1600 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } + } + if yyr1576 || yy2arr1576 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1601 := z.DecBinary() + _ = yym1601 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1602 := r.ContainerType() + if yyct1602 == codecSelferValueTypeMap1234 { + yyl1602 := r.ReadMapStart() + if yyl1602 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1602, d) + } + } else if yyct1602 == codecSelferValueTypeArray1234 { + yyl1602 := r.ReadArrayStart() + if yyl1602 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1602, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1603Slc = r.DecodeBytes(yys1603Slc, true, true) + yys1603 := string(yys1603Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1603 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "state": + if r.TryDecodeAsNil() { + x.State = ContainerState{} + } else { + yyv1605 := &x.State + yyv1605.CodecDecodeSelf(d) + } + case "lastState": + if r.TryDecodeAsNil() { + x.LastTerminationState = ContainerState{} + } else { + yyv1606 := &x.LastTerminationState + yyv1606.CodecDecodeSelf(d) + } + case "ready": + if r.TryDecodeAsNil() { + x.Ready = false + } else { + x.Ready = bool(r.DecodeBool()) + } + case "restartCount": + if r.TryDecodeAsNil() { + x.RestartCount = 0 + } else { + x.RestartCount = int32(r.DecodeInt(32)) + } + case "image": + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + case "imageID": + if r.TryDecodeAsNil() { + x.ImageID = "" + } else { + x.ImageID = string(r.DecodeString()) + } + case "containerID": + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1603) + } // end switch yys1603 + } // end for yyj1603 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.State = ContainerState{} + } else { + yyv1614 := &x.State + yyv1614.CodecDecodeSelf(d) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTerminationState = ContainerState{} + } else { + yyv1615 := &x.LastTerminationState + yyv1615.CodecDecodeSelf(d) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ready = false + } else { + x.Ready = bool(r.DecodeBool()) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RestartCount = 0 + } else { + x.RestartCount = int32(r.DecodeInt(32)) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImageID = "" + } else { + x.ImageID = string(r.DecodeString()) + } + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + for { + yyj1612++ + if yyhl1612 { + yyb1612 = yyj1612 > l + } else { + yyb1612 = r.CheckBreak() + } + if yyb1612 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1612-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1621 := z.EncBinary() + _ = yym1621 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1622 := z.DecBinary() + _ = yym1622 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1623 := z.EncBinary() + _ = yym1623 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1624 := z.DecBinary() + _ = yym1624 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1625 := z.EncBinary() + _ = yym1625 + 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 { + r.EncodeArrayStart(6) + } else { + yynn1626 = 2 + for _, b := range yyq1626 { + if b { + yynn1626++ + } + } + r.EncodeMapStart(yynn1626) + yynn1626 = 0 + } + if yyr1626 || yy2arr1626 { + 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 yyr1626 || yy2arr1626 { + 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 yyr1626 || yy2arr1626 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1626[2] { + yy1630 := &x.LastProbeTime + yym1631 := z.EncBinary() + _ = yym1631 + if false { + } else if z.HasExtensions() && z.EncExt(yy1630) { + } else if yym1631 { + z.EncBinaryMarshal(yy1630) + } else if !yym1631 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1630) + } else { + z.EncFallback(yy1630) + } + } else { + r.EncodeNil() + } + } else { + if yyq1626[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1632 := &x.LastProbeTime + yym1633 := z.EncBinary() + _ = yym1633 + if false { + } else if z.HasExtensions() && z.EncExt(yy1632) { + } else if yym1633 { + z.EncBinaryMarshal(yy1632) + } else if !yym1633 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1632) + } else { + z.EncFallback(yy1632) + } + } + } + if yyr1626 || yy2arr1626 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1626[3] { + yy1635 := &x.LastTransitionTime + yym1636 := z.EncBinary() + _ = yym1636 + if false { + } else if z.HasExtensions() && z.EncExt(yy1635) { + } else if yym1636 { + z.EncBinaryMarshal(yy1635) + } else if !yym1636 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1635) + } else { + z.EncFallback(yy1635) + } + } else { + r.EncodeNil() + } + } else { + if yyq1626[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1637 := &x.LastTransitionTime + yym1638 := z.EncBinary() + _ = yym1638 + if false { + } else if z.HasExtensions() && z.EncExt(yy1637) { + } else if yym1638 { + z.EncBinaryMarshal(yy1637) + } else if !yym1638 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1637) + } else { + z.EncFallback(yy1637) + } + } + } + if yyr1626 || yy2arr1626 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1626[4] { + yym1640 := z.EncBinary() + _ = yym1640 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1626[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1641 := z.EncBinary() + _ = yym1641 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1626 || yy2arr1626 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1626[5] { + yym1643 := z.EncBinary() + _ = yym1643 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1626[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1644 := z.EncBinary() + _ = yym1644 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1626 || yy2arr1626 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1645 := z.DecBinary() + _ = yym1645 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1646 := r.ContainerType() + if yyct1646 == codecSelferValueTypeMap1234 { + yyl1646 := r.ReadMapStart() + if yyl1646 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1646, d) + } + } else if yyct1646 == codecSelferValueTypeArray1234 { + yyl1646 := r.ReadArrayStart() + if yyl1646 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1646, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1647Slc = r.DecodeBytes(yys1647Slc, true, true) + yys1647 := string(yys1647Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1647 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = PodConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + case "lastProbeTime": + if r.TryDecodeAsNil() { + x.LastProbeTime = pkg2_unversioned.Time{} + } else { + yyv1650 := &x.LastProbeTime + yym1651 := z.DecBinary() + _ = yym1651 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1650) { + } else if yym1651 { + z.DecBinaryUnmarshal(yyv1650) + } else if !yym1651 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1650) + } else { + z.DecFallback(yyv1650, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv1652 := &x.LastTransitionTime + yym1653 := z.DecBinary() + _ = yym1653 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1652) { + } else if yym1653 { + z.DecBinaryUnmarshal(yyv1652) + } else if !yym1653 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1652) + } else { + z.DecFallback(yyv1652, 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, yys1647) + } // end switch yys1647 + } // end for yyj1647 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = PodConditionType(r.DecodeString()) + } + yyj1656++ + if yyhl1656 { + yyb1656 = yyj1656 > l + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj1656++ + if yyhl1656 { + yyb1656 = yyj1656 > l + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastProbeTime = pkg2_unversioned.Time{} + } else { + yyv1659 := &x.LastProbeTime + yym1660 := z.DecBinary() + _ = yym1660 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1659) { + } else if yym1660 { + z.DecBinaryUnmarshal(yyv1659) + } else if !yym1660 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1659) + } else { + z.DecFallback(yyv1659, false) + } + } + yyj1656++ + if yyhl1656 { + yyb1656 = yyj1656 > l + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv1661 := &x.LastTransitionTime + yym1662 := z.DecBinary() + _ = yym1662 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1661) { + } else if yym1662 { + z.DecBinaryUnmarshal(yyv1661) + } else if !yym1662 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1661) + } else { + z.DecFallback(yyv1661, false) + } + } + yyj1656++ + if yyhl1656 { + yyb1656 = yyj1656 > l + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1656++ + if yyhl1656 { + yyb1656 = yyj1656 > l + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1656++ + if yyhl1656 { + yyb1656 = yyj1656 > l + } else { + yyb1656 = r.CheckBreak() + } + if yyb1656 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1656-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1665 := z.EncBinary() + _ = yym1665 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1666 := z.DecBinary() + _ = yym1666 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1667 := z.EncBinary() + _ = yym1667 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1668 = 1 + for _, b := range yyq1668 { + if b { + yynn1668++ + } + } + r.EncodeMapStart(yynn1668) + yynn1668 = 0 + } + if yyr1668 || yy2arr1668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1668[0] { + yym1670 := z.EncBinary() + _ = yym1670 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1668[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1671 := z.EncBinary() + _ = yym1671 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1668 || yy2arr1668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1668[1] { + yym1673 := z.EncBinary() + _ = yym1673 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1668[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1674 := z.EncBinary() + _ = yym1674 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1668 || yy2arr1668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1668[2] { + yy1676 := &x.ListMeta + yym1677 := z.EncBinary() + _ = yym1677 + if false { + } else if z.HasExtensions() && z.EncExt(yy1676) { + } else { + z.EncFallback(yy1676) + } + } else { + r.EncodeNil() + } + } else { + if yyq1668[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1678 := &x.ListMeta + yym1679 := z.EncBinary() + _ = yym1679 + if false { + } else if z.HasExtensions() && z.EncExt(yy1678) { + } else { + z.EncFallback(yy1678) + } + } + } + if yyr1668 || yy2arr1668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1681 := z.EncBinary() + _ = yym1681 + if false { + } else { + h.encSlicePod(([]Pod)(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 { + yym1682 := z.EncBinary() + _ = yym1682 + if false { + } else { + h.encSlicePod(([]Pod)(x.Items), e) + } + } + } + if yyr1668 || yy2arr1668 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1683 := z.DecBinary() + _ = yym1683 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1684 := r.ContainerType() + if yyct1684 == codecSelferValueTypeMap1234 { + yyl1684 := r.ReadMapStart() + if yyl1684 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1684, d) + } + } else if yyct1684 == codecSelferValueTypeArray1234 { + yyl1684 := r.ReadArrayStart() + if yyl1684 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1684, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1685Slc = r.DecodeBytes(yys1685Slc, true, true) + yys1685 := string(yys1685Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1685 { + 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 { + yyv1688 := &x.ListMeta + yym1689 := z.DecBinary() + _ = yym1689 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1688) { + } else { + z.DecFallback(yyv1688, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1690 := &x.Items + yym1691 := z.DecBinary() + _ = yym1691 + if false { + } else { + h.decSlicePod((*[]Pod)(yyv1690), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1685) + } // end switch yys1685 + } // end for yyj1685 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1692 = r.CheckBreak() + } + if yyb1692 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1692++ + if yyhl1692 { + yyb1692 = yyj1692 > l + } else { + yyb1692 = r.CheckBreak() + } + if yyb1692 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1692++ + if yyhl1692 { + yyb1692 = yyj1692 > l + } else { + yyb1692 = r.CheckBreak() + } + if yyb1692 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv1695 := &x.ListMeta + yym1696 := z.DecBinary() + _ = yym1696 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1695) { + } else { + z.DecFallback(yyv1695, false) + } + } + yyj1692++ + if yyhl1692 { + yyb1692 = yyj1692 > l + } else { + yyb1692 = r.CheckBreak() + } + if yyb1692 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1697 := &x.Items + yym1698 := z.DecBinary() + _ = yym1698 + if false { + } else { + h.decSlicePod((*[]Pod)(yyv1697), d) + } + } + for { + yyj1692++ + if yyhl1692 { + yyb1692 = yyj1692 > l + } else { + yyb1692 = r.CheckBreak() + } + if yyb1692 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1692-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1699 := z.EncBinary() + _ = yym1699 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1700 := z.DecBinary() + _ = yym1700 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1701 := z.EncBinary() + _ = yym1701 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1702 = 1 + for _, b := range yyq1702 { + if b { + yynn1702++ + } + } + r.EncodeMapStart(yynn1702) + yynn1702 = 0 + } + if yyr1702 || yy2arr1702 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.NodeSelectorTerms == nil { + r.EncodeNil() + } else { + yym1704 := z.EncBinary() + _ = yym1704 + if false { + } else { + h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NodeSelectorTerms == nil { + r.EncodeNil() + } else { + yym1705 := z.EncBinary() + _ = yym1705 + if false { + } else { + h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) + } + } + } + if yyr1702 || yy2arr1702 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1706 := z.DecBinary() + _ = yym1706 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1707 := r.ContainerType() + if yyct1707 == codecSelferValueTypeMap1234 { + yyl1707 := r.ReadMapStart() + if yyl1707 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1707, d) + } + } else if yyct1707 == codecSelferValueTypeArray1234 { + yyl1707 := r.ReadArrayStart() + if yyl1707 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1707, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1708Slc = r.DecodeBytes(yys1708Slc, true, true) + yys1708 := string(yys1708Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1708 { + case "nodeSelectorTerms": + if r.TryDecodeAsNil() { + x.NodeSelectorTerms = nil + } else { + yyv1709 := &x.NodeSelectorTerms + yym1710 := z.DecBinary() + _ = yym1710 + if false { + } else { + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1709), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1708) + } // end switch yys1708 + } // end for yyj1708 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1711 = r.CheckBreak() + } + if yyb1711 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeSelectorTerms = nil + } else { + yyv1712 := &x.NodeSelectorTerms + yym1713 := z.DecBinary() + _ = yym1713 + if false { + } else { + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1712), d) + } + } + for { + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l + } else { + yyb1711 = r.CheckBreak() + } + if yyb1711 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1711-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1714 := z.EncBinary() + _ = yym1714 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1715 = 1 + for _, b := range yyq1715 { + if b { + yynn1715++ + } + } + r.EncodeMapStart(yynn1715) + yynn1715 = 0 + } + if yyr1715 || yy2arr1715 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.MatchExpressions == nil { + r.EncodeNil() + } else { + yym1717 := z.EncBinary() + _ = yym1717 + if false { + } else { + h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.MatchExpressions == nil { + r.EncodeNil() + } else { + yym1718 := z.EncBinary() + _ = yym1718 + if false { + } else { + h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) + } + } + } + if yyr1715 || yy2arr1715 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1719 := z.DecBinary() + _ = yym1719 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1720 := r.ContainerType() + if yyct1720 == codecSelferValueTypeMap1234 { + yyl1720 := r.ReadMapStart() + if yyl1720 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1720, d) + } + } else if yyct1720 == codecSelferValueTypeArray1234 { + yyl1720 := r.ReadArrayStart() + if yyl1720 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1720, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1721Slc = r.DecodeBytes(yys1721Slc, true, true) + yys1721 := string(yys1721Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1721 { + case "matchExpressions": + if r.TryDecodeAsNil() { + x.MatchExpressions = nil + } else { + yyv1722 := &x.MatchExpressions + yym1723 := z.DecBinary() + _ = yym1723 + if false { + } else { + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1722), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1721) + } // end switch yys1721 + } // end for yyj1721 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1724 = r.CheckBreak() + } + if yyb1724 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MatchExpressions = nil + } else { + yyv1725 := &x.MatchExpressions + yym1726 := z.DecBinary() + _ = yym1726 + if false { + } else { + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1725), d) + } + } + for { + yyj1724++ + if yyhl1724 { + yyb1724 = yyj1724 > l + } else { + yyb1724 = r.CheckBreak() + } + if yyb1724 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1724-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1727 := z.EncBinary() + _ = yym1727 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1728 = 2 + for _, b := range yyq1728 { + if b { + yynn1728++ + } + } + r.EncodeMapStart(yynn1728) + yynn1728 = 0 + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1730 := z.EncBinary() + _ = yym1730 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1731 := z.EncBinary() + _ = yym1731 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Operator.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operator")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Operator.CodecEncodeSelf(e) + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1728[2] { + if x.Values == nil { + r.EncodeNil() + } else { + yym1734 := z.EncBinary() + _ = yym1734 + if false { + } else { + z.F.EncSliceStringV(x.Values, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1728[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 + if false { + } else { + z.F.EncSliceStringV(x.Values, false, e) + } + } + } + } + if yyr1728 || yy2arr1728 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1736 := z.DecBinary() + _ = yym1736 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1737 := r.ContainerType() + if yyct1737 == codecSelferValueTypeMap1234 { + yyl1737 := r.ReadMapStart() + if yyl1737 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1737, d) + } + } else if yyct1737 == codecSelferValueTypeArray1234 { + yyl1737 := r.ReadArrayStart() + if yyl1737 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1737, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1738Slc = r.DecodeBytes(yys1738Slc, true, true) + yys1738 := string(yys1738Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1738 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "operator": + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = NodeSelectorOperator(r.DecodeString()) + } + case "values": + if r.TryDecodeAsNil() { + x.Values = nil + } else { + yyv1741 := &x.Values + yym1742 := z.DecBinary() + _ = yym1742 + if false { + } else { + z.F.DecSliceStringX(yyv1741, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1738) + } // end switch yys1738 + } // end for yyj1738 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1743 = r.CheckBreak() + } + if yyb1743 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l + } else { + yyb1743 = r.CheckBreak() + } + if yyb1743 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = NodeSelectorOperator(r.DecodeString()) + } + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l + } else { + yyb1743 = r.CheckBreak() + } + if yyb1743 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Values = nil + } else { + yyv1746 := &x.Values + yym1747 := z.DecBinary() + _ = yym1747 + if false { + } else { + z.F.DecSliceStringX(yyv1746, false, d) + } + } + for { + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l + } else { + yyb1743 = r.CheckBreak() + } + if yyb1743 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1743-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1748 := z.EncBinary() + _ = yym1748 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1749 := z.DecBinary() + _ = yym1749 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1750 := z.EncBinary() + _ = yym1750 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1751 = 0 + for _, b := range yyq1751 { + if b { + yynn1751++ + } + } + r.EncodeMapStart(yynn1751) + yynn1751 = 0 + } + if yyr1751 || yy2arr1751 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1751[0] { + if x.NodeAffinity == nil { + r.EncodeNil() + } else { + x.NodeAffinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1751[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NodeAffinity == nil { + r.EncodeNil() + } else { + x.NodeAffinity.CodecEncodeSelf(e) + } + } + } + if yyr1751 || yy2arr1751 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1751[1] { + if x.PodAffinity == nil { + r.EncodeNil() + } else { + x.PodAffinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1751[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PodAffinity == nil { + r.EncodeNil() + } else { + x.PodAffinity.CodecEncodeSelf(e) + } + } + } + if yyr1751 || yy2arr1751 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1751[2] { + if x.PodAntiAffinity == nil { + r.EncodeNil() + } else { + x.PodAntiAffinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1751[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PodAntiAffinity == nil { + r.EncodeNil() + } else { + x.PodAntiAffinity.CodecEncodeSelf(e) + } + } + } + if yyr1751 || yy2arr1751 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1755 := z.DecBinary() + _ = yym1755 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1756 := r.ContainerType() + if yyct1756 == codecSelferValueTypeMap1234 { + yyl1756 := r.ReadMapStart() + if yyl1756 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1756, d) + } + } else if yyct1756 == codecSelferValueTypeArray1234 { + yyl1756 := r.ReadArrayStart() + if yyl1756 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1756, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1757Slc = r.DecodeBytes(yys1757Slc, true, true) + yys1757 := string(yys1757Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1757 { + case "nodeAffinity": + if r.TryDecodeAsNil() { + if x.NodeAffinity != nil { + x.NodeAffinity = nil + } + } else { + if x.NodeAffinity == nil { + x.NodeAffinity = new(NodeAffinity) + } + x.NodeAffinity.CodecDecodeSelf(d) + } + case "podAffinity": + if r.TryDecodeAsNil() { + if x.PodAffinity != nil { + x.PodAffinity = nil + } + } else { + if x.PodAffinity == nil { + x.PodAffinity = new(PodAffinity) + } + x.PodAffinity.CodecDecodeSelf(d) + } + case "podAntiAffinity": + if r.TryDecodeAsNil() { + if x.PodAntiAffinity != nil { + x.PodAntiAffinity = nil + } + } else { + if x.PodAntiAffinity == nil { + x.PodAntiAffinity = new(PodAntiAffinity) + } + x.PodAntiAffinity.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1757) + } // end switch yys1757 + } // end for yyj1757 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1761 = r.CheckBreak() + } + if yyb1761 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NodeAffinity != nil { + x.NodeAffinity = nil + } + } else { + if x.NodeAffinity == nil { + x.NodeAffinity = new(NodeAffinity) + } + x.NodeAffinity.CodecDecodeSelf(d) + } + yyj1761++ + if yyhl1761 { + yyb1761 = yyj1761 > l + } else { + yyb1761 = r.CheckBreak() + } + if yyb1761 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodAffinity != nil { + x.PodAffinity = nil + } + } else { + if x.PodAffinity == nil { + x.PodAffinity = new(PodAffinity) + } + x.PodAffinity.CodecDecodeSelf(d) + } + yyj1761++ + if yyhl1761 { + yyb1761 = yyj1761 > l + } else { + yyb1761 = r.CheckBreak() + } + if yyb1761 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodAntiAffinity != nil { + x.PodAntiAffinity = nil + } + } else { + if x.PodAntiAffinity == nil { + x.PodAntiAffinity = new(PodAntiAffinity) + } + x.PodAntiAffinity.CodecDecodeSelf(d) + } + for { + yyj1761++ + if yyhl1761 { + yyb1761 = yyj1761 > l + } else { + yyb1761 = r.CheckBreak() + } + if yyb1761 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1761-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1765 := z.EncBinary() + _ = yym1765 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1766 = 0 + for _, b := range yyq1766 { + if b { + yynn1766++ + } + } + r.EncodeMapStart(yynn1766) + yynn1766 = 0 + } + if yyr1766 || yy2arr1766 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1766[0] { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1768 := z.EncBinary() + _ = yym1768 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1766[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 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1766 || yy2arr1766 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1766[1] { + if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1771 := z.EncBinary() + _ = yym1771 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1766[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 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1766 || yy2arr1766 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1773 := z.DecBinary() + _ = yym1773 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1774 := r.ContainerType() + if yyct1774 == codecSelferValueTypeMap1234 { + yyl1774 := r.ReadMapStart() + if yyl1774 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1774, d) + } + } else if yyct1774 == codecSelferValueTypeArray1234 { + yyl1774 := r.ReadArrayStart() + if yyl1774 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1774, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1775Slc = r.DecodeBytes(yys1775Slc, true, true) + yys1775 := string(yys1775Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1775 { + case "requiredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1776 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1777 := z.DecBinary() + _ = yym1777 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1776), d) + } + } + case "preferredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1778 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1779 := z.DecBinary() + _ = yym1779 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1778), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1775) + } // end switch yys1775 + } // end for yyj1775 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1780 = r.CheckBreak() + } + if yyb1780 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1781 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1782 := z.DecBinary() + _ = yym1782 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1781), d) + } + } + yyj1780++ + if yyhl1780 { + yyb1780 = yyj1780 > l + } else { + yyb1780 = r.CheckBreak() + } + if yyb1780 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1783 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1784 := z.DecBinary() + _ = yym1784 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1783), d) + } + } + for { + yyj1780++ + if yyhl1780 { + yyb1780 = yyj1780 > l + } else { + yyb1780 = r.CheckBreak() + } + if yyb1780 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1780-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1785 := z.EncBinary() + _ = yym1785 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1786 = 0 + for _, b := range yyq1786 { + if b { + yynn1786++ + } + } + r.EncodeMapStart(yynn1786) + yynn1786 = 0 + } + if yyr1786 || yy2arr1786 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1786[0] { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1788 := z.EncBinary() + _ = yym1788 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1786[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 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1786 || yy2arr1786 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1786[1] { + if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1791 := z.EncBinary() + _ = yym1791 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1786[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 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1786 || yy2arr1786 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1793 := z.DecBinary() + _ = yym1793 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1794 := r.ContainerType() + if yyct1794 == codecSelferValueTypeMap1234 { + yyl1794 := r.ReadMapStart() + if yyl1794 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1794, d) + } + } else if yyct1794 == codecSelferValueTypeArray1234 { + yyl1794 := r.ReadArrayStart() + if yyl1794 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1794, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1795Slc = r.DecodeBytes(yys1795Slc, true, true) + yys1795 := string(yys1795Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1795 { + case "requiredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1796 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1797 := z.DecBinary() + _ = yym1797 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1796), d) + } + } + case "preferredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1798 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1799 := z.DecBinary() + _ = yym1799 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1798), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1795) + } // end switch yys1795 + } // end for yyj1795 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1800 = r.CheckBreak() + } + if yyb1800 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1801 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1802 := z.DecBinary() + _ = yym1802 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1801), d) + } + } + yyj1800++ + if yyhl1800 { + yyb1800 = yyj1800 > l + } else { + yyb1800 = r.CheckBreak() + } + if yyb1800 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1803 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1804 := z.DecBinary() + _ = yym1804 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1803), d) + } + } + for { + yyj1800++ + if yyhl1800 { + yyb1800 = yyj1800 > l + } else { + yyb1800 = r.CheckBreak() + } + if yyb1800 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1800-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1805 := z.EncBinary() + _ = yym1805 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1806 = 2 + for _, b := range yyq1806 { + if b { + yynn1806++ + } + } + r.EncodeMapStart(yynn1806) + yynn1806 = 0 + } + if yyr1806 || yy2arr1806 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1808 := z.EncBinary() + _ = yym1808 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("weight")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1809 := z.EncBinary() + _ = yym1809 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr1806 || yy2arr1806 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1811 := &x.PodAffinityTerm + yy1811.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1812 := &x.PodAffinityTerm + yy1812.CodecEncodeSelf(e) + } + if yyr1806 || yy2arr1806 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1813 := z.DecBinary() + _ = yym1813 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1814 := r.ContainerType() + if yyct1814 == codecSelferValueTypeMap1234 { + yyl1814 := r.ReadMapStart() + if yyl1814 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1814, d) + } + } else if yyct1814 == codecSelferValueTypeArray1234 { + yyl1814 := r.ReadArrayStart() + if yyl1814 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1814, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1815Slc = r.DecodeBytes(yys1815Slc, true, true) + yys1815 := string(yys1815Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1815 { + case "weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) + } + case "podAffinityTerm": + if r.TryDecodeAsNil() { + x.PodAffinityTerm = PodAffinityTerm{} + } else { + yyv1817 := &x.PodAffinityTerm + yyv1817.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1815) + } // end switch yys1815 + } // end for yyj1815 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1818 = r.CheckBreak() + } + if yyb1818 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) + } + yyj1818++ + if yyhl1818 { + yyb1818 = yyj1818 > l + } else { + yyb1818 = r.CheckBreak() + } + if yyb1818 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodAffinityTerm = PodAffinityTerm{} + } else { + yyv1820 := &x.PodAffinityTerm + yyv1820.CodecDecodeSelf(d) + } + for { + yyj1818++ + if yyhl1818 { + yyb1818 = yyj1818 > l + } else { + yyb1818 = r.CheckBreak() + } + if yyb1818 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1818-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1821 := z.EncBinary() + _ = yym1821 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1822 = 1 + for _, b := range yyq1822 { + if b { + yynn1822++ + } + } + r.EncodeMapStart(yynn1822) + yynn1822 = 0 + } + if yyr1822 || yy2arr1822 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1822[0] { + if x.LabelSelector == nil { + r.EncodeNil() + } else { + yym1824 := z.EncBinary() + _ = yym1824 + if false { + } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { + } else { + z.EncFallback(x.LabelSelector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1822[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { + } else { + z.EncFallback(x.LabelSelector) + } + } + } + } + if yyr1822 || yy2arr1822 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Namespaces == nil { + r.EncodeNil() + } else { + yym1827 := z.EncBinary() + _ = yym1827 + if false { + } else { + z.F.EncSliceStringV(x.Namespaces, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespaces")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Namespaces == nil { + r.EncodeNil() + } else { + yym1828 := z.EncBinary() + _ = yym1828 + if false { + } else { + z.F.EncSliceStringV(x.Namespaces, false, e) + } + } + } + if yyr1822 || yy2arr1822 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1822[2] { + yym1830 := z.EncBinary() + _ = yym1830 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1822[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1831 := z.EncBinary() + _ = yym1831 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) + } + } + } + if yyr1822 || yy2arr1822 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1832 := z.DecBinary() + _ = yym1832 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1833 := r.ContainerType() + if yyct1833 == codecSelferValueTypeMap1234 { + yyl1833 := r.ReadMapStart() + if yyl1833 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1833, d) + } + } else if yyct1833 == codecSelferValueTypeArray1234 { + yyl1833 := r.ReadArrayStart() + if yyl1833 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1833, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1834Slc = r.DecodeBytes(yys1834Slc, true, true) + yys1834 := string(yys1834Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1834 { + case "labelSelector": + if r.TryDecodeAsNil() { + if x.LabelSelector != nil { + x.LabelSelector = nil + } + } else { + if x.LabelSelector == nil { + x.LabelSelector = new(pkg2_unversioned.LabelSelector) + } + yym1836 := z.DecBinary() + _ = yym1836 + if false { + } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { + } else { + z.DecFallback(x.LabelSelector, false) + } + } + case "namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + yyv1837 := &x.Namespaces + yym1838 := z.DecBinary() + _ = yym1838 + if false { + } else { + z.F.DecSliceStringX(yyv1837, false, d) + } + } + case "topologyKey": + if r.TryDecodeAsNil() { + x.TopologyKey = "" + } else { + x.TopologyKey = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1834) + } // end switch yys1834 + } // end for yyj1834 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1840 = r.CheckBreak() + } + if yyb1840 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LabelSelector != nil { + x.LabelSelector = nil + } + } else { + if x.LabelSelector == nil { + x.LabelSelector = new(pkg2_unversioned.LabelSelector) + } + yym1842 := z.DecBinary() + _ = yym1842 + if false { + } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { + } else { + z.DecFallback(x.LabelSelector, false) + } + } + yyj1840++ + if yyhl1840 { + yyb1840 = yyj1840 > l + } else { + yyb1840 = r.CheckBreak() + } + if yyb1840 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + yyv1843 := &x.Namespaces + yym1844 := z.DecBinary() + _ = yym1844 + if false { + } else { + z.F.DecSliceStringX(yyv1843, false, d) + } + } + yyj1840++ + if yyhl1840 { + yyb1840 = yyj1840 > l + } else { + yyb1840 = r.CheckBreak() + } + if yyb1840 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TopologyKey = "" + } else { + x.TopologyKey = string(r.DecodeString()) + } + for { + yyj1840++ + if yyhl1840 { + yyb1840 = yyj1840 > l + } else { + yyb1840 = r.CheckBreak() + } + if yyb1840 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1840-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1846 := z.EncBinary() + _ = yym1846 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1847 = 0 + for _, b := range yyq1847 { + if b { + yynn1847++ + } + } + r.EncodeMapStart(yynn1847) + yynn1847 = 0 + } + if yyr1847 || yy2arr1847 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1847[0] { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1847[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) + } + } + } + if yyr1847 || yy2arr1847 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1847[1] { + if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1850 := z.EncBinary() + _ = yym1850 + if false { + } else { + h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1847[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 + if false { + } else { + h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1847 || yy2arr1847 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1852 := z.DecBinary() + _ = yym1852 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1853 := r.ContainerType() + if yyct1853 == codecSelferValueTypeMap1234 { + yyl1853 := r.ReadMapStart() + if yyl1853 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1853, d) + } + } else if yyct1853 == codecSelferValueTypeArray1234 { + yyl1853 := r.ReadArrayStart() + if yyl1853 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1853, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1854Slc = r.DecodeBytes(yys1854Slc, true, true) + yys1854 := string(yys1854Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1854 { + case "requiredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + } else { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) + } + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) + } + case "preferredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1856 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1857 := z.DecBinary() + _ = yym1857 + if false { + } else { + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1856), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1854) + } // end switch yys1854 + } // end for yyj1854 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1858 = r.CheckBreak() + } + if yyb1858 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + } else { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) + } + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) + } + yyj1858++ + if yyhl1858 { + yyb1858 = yyj1858 > l + } else { + yyb1858 = r.CheckBreak() + } + if yyb1858 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1860 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1861 := z.DecBinary() + _ = yym1861 + if false { + } else { + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1860), d) + } + } + for { + yyj1858++ + if yyhl1858 { + yyb1858 = yyj1858 > l + } else { + yyb1858 = r.CheckBreak() + } + if yyb1858 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1858-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1862 := z.EncBinary() + _ = yym1862 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1863 = 2 + for _, b := range yyq1863 { + if b { + yynn1863++ + } + } + r.EncodeMapStart(yynn1863) + yynn1863 = 0 + } + if yyr1863 || yy2arr1863 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1865 := z.EncBinary() + _ = yym1865 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("weight")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1866 := z.EncBinary() + _ = yym1866 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr1863 || yy2arr1863 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1868 := &x.Preference + yy1868.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preference")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1869 := &x.Preference + yy1869.CodecEncodeSelf(e) + } + if yyr1863 || yy2arr1863 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1870 := z.DecBinary() + _ = yym1870 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1871 := r.ContainerType() + if yyct1871 == codecSelferValueTypeMap1234 { + yyl1871 := r.ReadMapStart() + if yyl1871 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1871, d) + } + } else if yyct1871 == codecSelferValueTypeArray1234 { + yyl1871 := r.ReadArrayStart() + if yyl1871 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1871, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1872Slc = r.DecodeBytes(yys1872Slc, true, true) + yys1872 := string(yys1872Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1872 { + case "weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int32(r.DecodeInt(32)) + } + case "preference": + if r.TryDecodeAsNil() { + x.Preference = NodeSelectorTerm{} + } else { + yyv1874 := &x.Preference + yyv1874.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1872) + } // end switch yys1872 + } // end for yyj1872 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1875 = r.CheckBreak() + } + if yyb1875 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int32(r.DecodeInt(32)) + } + yyj1875++ + if yyhl1875 { + yyb1875 = yyj1875 > l + } else { + yyb1875 = r.CheckBreak() + } + if yyb1875 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Preference = NodeSelectorTerm{} + } else { + yyv1877 := &x.Preference + yyv1877.CodecDecodeSelf(d) + } + for { + yyj1875++ + if yyhl1875 { + yyb1875 = yyj1875 > l + } else { + yyb1875 = r.CheckBreak() + } + if yyb1875 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1875-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1878 := z.EncBinary() + _ = yym1878 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1879 = 2 + for _, b := range yyq1879 { + if b { + yynn1879++ + } + } + r.EncodeMapStart(yynn1879) + yynn1879 = 0 + } + if yyr1879 || yy2arr1879 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1881 := z.EncBinary() + _ = yym1881 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1882 := z.EncBinary() + _ = yym1882 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1879 || yy2arr1879 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1879[1] { + yym1884 := z.EncBinary() + _ = yym1884 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1879[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1885 := z.EncBinary() + _ = yym1885 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + } + if yyr1879 || yy2arr1879 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Effect.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("effect")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Effect.CodecEncodeSelf(e) + } + if yyr1879 || yy2arr1879 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1887 := z.DecBinary() + _ = yym1887 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1888 := r.ContainerType() + if yyct1888 == codecSelferValueTypeMap1234 { + yyl1888 := r.ReadMapStart() + if yyl1888 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1888, d) + } + } else if yyct1888 == codecSelferValueTypeArray1234 { + yyl1888 := r.ReadArrayStart() + if yyl1888 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1888, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1889Slc = r.DecodeBytes(yys1889Slc, true, true) + yys1889 := string(yys1889Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1889 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + case "effect": + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1889) + } // end switch yys1889 + } // end for yyj1889 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1893 = r.CheckBreak() + } + if yyb1893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1893++ + if yyhl1893 { + yyb1893 = yyj1893 > l + } else { + yyb1893 = r.CheckBreak() + } + if yyb1893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj1893++ + if yyhl1893 { + yyb1893 = yyj1893 > l + } else { + yyb1893 = r.CheckBreak() + } + if yyb1893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + for { + yyj1893++ + if yyhl1893 { + yyb1893 = yyj1893 > l + } else { + yyb1893 = r.CheckBreak() + } + if yyb1893 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1893-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1897 := z.EncBinary() + _ = yym1897 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1898 := z.DecBinary() + _ = yym1898 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1899 := z.EncBinary() + _ = yym1899 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1900 = 0 + for _, b := range yyq1900 { + if b { + yynn1900++ + } + } + r.EncodeMapStart(yynn1900) + yynn1900 = 0 + } + if yyr1900 || yy2arr1900 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1900[0] { + yym1902 := z.EncBinary() + _ = yym1902 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1900[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1903 := z.EncBinary() + _ = yym1903 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + } + if yyr1900 || yy2arr1900 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1900[1] { + x.Operator.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1900[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operator")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Operator.CodecEncodeSelf(e) + } + } + if yyr1900 || yy2arr1900 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1900[2] { + yym1906 := z.EncBinary() + _ = yym1906 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1900[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1907 := z.EncBinary() + _ = yym1907 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + } + if yyr1900 || yy2arr1900 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1900[3] { + x.Effect.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1900[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("effect")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Effect.CodecEncodeSelf(e) + } + } + if yyr1900 || yy2arr1900 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1909 := z.DecBinary() + _ = yym1909 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1910 := r.ContainerType() + if yyct1910 == codecSelferValueTypeMap1234 { + yyl1910 := r.ReadMapStart() + if yyl1910 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1910, d) + } + } else if yyct1910 == codecSelferValueTypeArray1234 { + yyl1910 := r.ReadArrayStart() + if yyl1910 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1910, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1911Slc = r.DecodeBytes(yys1911Slc, true, true) + yys1911 := string(yys1911Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1911 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "operator": + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = TolerationOperator(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + case "effect": + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1911) + } // end switch yys1911 + } // end for yyj1911 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1916 = r.CheckBreak() + } + if yyb1916 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1916++ + if yyhl1916 { + yyb1916 = yyj1916 > l + } else { + yyb1916 = r.CheckBreak() + } + if yyb1916 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = TolerationOperator(r.DecodeString()) + } + yyj1916++ + if yyhl1916 { + yyb1916 = yyj1916 > l + } else { + yyb1916 = r.CheckBreak() + } + if yyb1916 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj1916++ + if yyhl1916 { + yyb1916 = yyj1916 > l + } else { + yyb1916 = r.CheckBreak() + } + if yyb1916 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + for { + yyj1916++ + if yyhl1916 { + yyb1916 = yyj1916 > l + } else { + yyb1916 = r.CheckBreak() + } + if yyb1916 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1916-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1921 := z.EncBinary() + _ = yym1921 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1922 := z.DecBinary() + _ = yym1922 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1923 := z.EncBinary() + _ = yym1923 + 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 { + r.EncodeArrayStart(13) + } else { + yynn1924 = 3 + for _, b := range yyq1924 { + if b { + yynn1924++ + } + } + r.EncodeMapStart(yynn1924) + yynn1924 = 0 + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Volumes == nil { + r.EncodeNil() + } else { + yym1926 := z.EncBinary() + _ = yym1926 + if false { + } else { + h.encSliceVolume(([]Volume)(x.Volumes), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Volumes == nil { + r.EncodeNil() + } else { + yym1927 := z.EncBinary() + _ = yym1927 + if false { + } else { + h.encSliceVolume(([]Volume)(x.Volumes), e) + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Containers == nil { + r.EncodeNil() + } else { + yym1929 := z.EncBinary() + _ = yym1929 + if false { + } else { + h.encSliceContainer(([]Container)(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 { + yym1930 := z.EncBinary() + _ = yym1930 + if false { + } else { + h.encSliceContainer(([]Container)(x.Containers), e) + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[2] { + x.RestartPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1924[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.RestartPolicy.CodecEncodeSelf(e) + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[3] { + if x.TerminationGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy1933 := *x.TerminationGracePeriodSeconds + yym1934 := z.EncBinary() + _ = yym1934 + if false { + } else { + r.EncodeInt(int64(yy1933)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1924[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 + if false { + } else { + r.EncodeInt(int64(yy1935)) + } + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[4] { + if x.ActiveDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy1938 := *x.ActiveDeadlineSeconds + yym1939 := z.EncBinary() + _ = yym1939 + if false { + } else { + r.EncodeInt(int64(yy1938)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1924[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 + if false { + } else { + r.EncodeInt(int64(yy1940)) + } + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[5] { + x.DNSPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1924[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.DNSPolicy.CodecEncodeSelf(e) + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[6] { + if x.NodeSelector == nil { + r.EncodeNil() + } else { + yym1944 := z.EncBinary() + _ = yym1944 + if false { + } else { + z.F.EncMapStringStringV(x.NodeSelector, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1924[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 + if false { + } else { + z.F.EncMapStringStringV(x.NodeSelector, false, e) + } + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1947 := z.EncBinary() + _ = yym1947 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1948 := z.EncBinary() + _ = yym1948 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[8] { + yym1950 := z.EncBinary() + _ = yym1950 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1924[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1951 := z.EncBinary() + _ = yym1951 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[9] { + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1924[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("securityContext")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[10] { + if x.ImagePullSecrets == nil { + r.EncodeNil() + } else { + yym1954 := z.EncBinary() + _ = yym1954 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1924[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 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[11] { + yym1957 := z.EncBinary() + _ = yym1957 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1924[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostname")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1958 := z.EncBinary() + _ = yym1958 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1924[12] { + yym1960 := z.EncBinary() + _ = yym1960 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1924[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subdomain")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1961 := z.EncBinary() + _ = yym1961 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) + } + } + } + if yyr1924 || yy2arr1924 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1962 := z.DecBinary() + _ = yym1962 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1963 := r.ContainerType() + if yyct1963 == codecSelferValueTypeMap1234 { + yyl1963 := r.ReadMapStart() + if yyl1963 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1963, d) + } + } else if yyct1963 == codecSelferValueTypeArray1234 { + yyl1963 := r.ReadArrayStart() + if yyl1963 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1963, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1964Slc = r.DecodeBytes(yys1964Slc, true, true) + yys1964 := string(yys1964Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1964 { + case "volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + yyv1965 := &x.Volumes + yym1966 := z.DecBinary() + _ = yym1966 + if false { + } else { + h.decSliceVolume((*[]Volume)(yyv1965), d) + } + } + case "containers": + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv1967 := &x.Containers + yym1968 := z.DecBinary() + _ = yym1968 + if false { + } else { + h.decSliceContainer((*[]Container)(yyv1967), d) + } + } + case "restartPolicy": + if r.TryDecodeAsNil() { + x.RestartPolicy = "" + } else { + x.RestartPolicy = RestartPolicy(r.DecodeString()) + } + case "terminationGracePeriodSeconds": + if r.TryDecodeAsNil() { + if x.TerminationGracePeriodSeconds != nil { + x.TerminationGracePeriodSeconds = nil + } + } else { + if x.TerminationGracePeriodSeconds == nil { + x.TerminationGracePeriodSeconds = new(int64) + } + yym1971 := z.DecBinary() + _ = yym1971 + if false { + } else { + *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "activeDeadlineSeconds": + if r.TryDecodeAsNil() { + if x.ActiveDeadlineSeconds != nil { + x.ActiveDeadlineSeconds = nil + } + } else { + if x.ActiveDeadlineSeconds == nil { + x.ActiveDeadlineSeconds = new(int64) + } + yym1973 := z.DecBinary() + _ = yym1973 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + case "dnsPolicy": + if r.TryDecodeAsNil() { + x.DNSPolicy = "" + } else { + x.DNSPolicy = DNSPolicy(r.DecodeString()) + } + case "nodeSelector": + if r.TryDecodeAsNil() { + x.NodeSelector = nil + } else { + yyv1975 := &x.NodeSelector + yym1976 := z.DecBinary() + _ = yym1976 + if false { + } else { + z.F.DecMapStringStringX(yyv1975, false, d) + } + } + case "serviceAccountName": + if r.TryDecodeAsNil() { + x.ServiceAccountName = "" + } else { + x.ServiceAccountName = string(r.DecodeString()) + } + case "nodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = string(r.DecodeString()) + } + case "securityContext": + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(PodSecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + case "imagePullSecrets": + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv1980 := &x.ImagePullSecrets + yym1981 := z.DecBinary() + _ = yym1981 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1980), d) + } + } + case "hostname": + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + case "subdomain": + if r.TryDecodeAsNil() { + x.Subdomain = "" + } else { + x.Subdomain = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1964) + } // end switch yys1964 + } // end for yyj1964 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + yyv1985 := &x.Volumes + yym1986 := z.DecBinary() + _ = yym1986 + if false { + } else { + h.decSliceVolume((*[]Volume)(yyv1985), d) + } + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv1987 := &x.Containers + yym1988 := z.DecBinary() + _ = yym1988 + if false { + } else { + h.decSliceContainer((*[]Container)(yyv1987), d) + } + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RestartPolicy = "" + } else { + x.RestartPolicy = RestartPolicy(r.DecodeString()) + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TerminationGracePeriodSeconds != nil { + x.TerminationGracePeriodSeconds = nil + } + } else { + if x.TerminationGracePeriodSeconds == nil { + x.TerminationGracePeriodSeconds = new(int64) + } + yym1991 := z.DecBinary() + _ = yym1991 + if false { + } else { + *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ActiveDeadlineSeconds != nil { + x.ActiveDeadlineSeconds = nil + } + } else { + if x.ActiveDeadlineSeconds == nil { + x.ActiveDeadlineSeconds = new(int64) + } + yym1993 := z.DecBinary() + _ = yym1993 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DNSPolicy = "" + } else { + x.DNSPolicy = DNSPolicy(r.DecodeString()) + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeSelector = nil + } else { + yyv1995 := &x.NodeSelector + yym1996 := z.DecBinary() + _ = yym1996 + if false { + } else { + z.F.DecMapStringStringX(yyv1995, false, d) + } + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServiceAccountName = "" + } else { + x.ServiceAccountName = string(r.DecodeString()) + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = string(r.DecodeString()) + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(PodSecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv2000 := &x.ImagePullSecrets + yym2001 := z.DecBinary() + _ = yym2001 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2000), d) + } + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Subdomain = "" + } else { + x.Subdomain = string(r.DecodeString()) + } + for { + yyj1984++ + if yyhl1984 { + yyb1984 = yyj1984 > l + } else { + yyb1984 = r.CheckBreak() + } + if yyb1984 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1984-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2004 := z.EncBinary() + _ = yym2004 + 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 { + r.EncodeArrayStart(8) + } else { + yynn2005 = 0 + for _, b := range yyq2005 { + if b { + yynn2005++ + } + } + r.EncodeMapStart(yynn2005) + yynn2005 = 0 + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[0] { + yym2007 := z.EncBinary() + _ = yym2007 + if false { + } else { + r.EncodeBool(bool(x.HostNetwork)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2005[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2008 := z.EncBinary() + _ = yym2008 + if false { + } else { + r.EncodeBool(bool(x.HostNetwork)) + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[1] { + yym2010 := z.EncBinary() + _ = yym2010 + if false { + } else { + r.EncodeBool(bool(x.HostPID)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2005[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2011 := z.EncBinary() + _ = yym2011 + if false { + } else { + r.EncodeBool(bool(x.HostPID)) + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[2] { + yym2013 := z.EncBinary() + _ = yym2013 + if false { + } else { + r.EncodeBool(bool(x.HostIPC)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2005[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2014 := z.EncBinary() + _ = yym2014 + if false { + } else { + r.EncodeBool(bool(x.HostIPC)) + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[3] { + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2005[3] { + 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 yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[4] { + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy2017 := *x.RunAsUser + yym2018 := z.EncBinary() + _ = yym2018 + if false { + } else { + r.EncodeInt(int64(yy2017)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2005[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 + if false { + } else { + r.EncodeInt(int64(yy2019)) + } + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[5] { + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy2022 := *x.RunAsNonRoot + yym2023 := z.EncBinary() + _ = yym2023 + if false { + } else { + r.EncodeBool(bool(yy2022)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2005[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 + if false { + } else { + r.EncodeBool(bool(yy2024)) + } + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[6] { + if x.SupplementalGroups == nil { + r.EncodeNil() + } else { + yym2027 := z.EncBinary() + _ = yym2027 + if false { + } else { + z.F.EncSliceInt64V(x.SupplementalGroups, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2005[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 + if false { + } else { + z.F.EncSliceInt64V(x.SupplementalGroups, false, e) + } + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2005[7] { + if x.FSGroup == nil { + r.EncodeNil() + } else { + yy2030 := *x.FSGroup + yym2031 := z.EncBinary() + _ = yym2031 + if false { + } else { + r.EncodeInt(int64(yy2030)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2005[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 + if false { + } else { + r.EncodeInt(int64(yy2032)) + } + } + } + } + if yyr2005 || yy2arr2005 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2034 := z.DecBinary() + _ = yym2034 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2035 := r.ContainerType() + if yyct2035 == codecSelferValueTypeMap1234 { + yyl2035 := r.ReadMapStart() + if yyl2035 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2035, d) + } + } else if yyct2035 == codecSelferValueTypeArray1234 { + yyl2035 := r.ReadArrayStart() + if yyl2035 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2035, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2036Slc = r.DecodeBytes(yys2036Slc, true, true) + yys2036 := string(yys2036Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2036 { + case "hostNetwork": + if r.TryDecodeAsNil() { + x.HostNetwork = false + } else { + x.HostNetwork = bool(r.DecodeBool()) + } + case "hostPID": + if r.TryDecodeAsNil() { + x.HostPID = false + } else { + x.HostPID = bool(r.DecodeBool()) + } + case "hostIPC": + if r.TryDecodeAsNil() { + x.HostIPC = false + } else { + x.HostIPC = bool(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) + } + yym2042 := z.DecBinary() + _ = yym2042 + 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) + } + yym2044 := z.DecBinary() + _ = yym2044 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + case "supplementalGroups": + if r.TryDecodeAsNil() { + x.SupplementalGroups = nil + } else { + yyv2045 := &x.SupplementalGroups + yym2046 := z.DecBinary() + _ = yym2046 + if false { + } else { + z.F.DecSliceInt64X(yyv2045, false, d) + } + } + case "fsGroup": + if r.TryDecodeAsNil() { + if x.FSGroup != nil { + x.FSGroup = nil + } + } else { + if x.FSGroup == nil { + x.FSGroup = new(int64) + } + yym2048 := z.DecBinary() + _ = yym2048 + if false { + } else { + *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) + } + } + default: + z.DecStructFieldNotFound(-1, yys2036) + } // end switch yys2036 + } // end for yyj2036 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostNetwork = false + } else { + x.HostNetwork = bool(r.DecodeBool()) + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPID = false + } else { + x.HostPID = bool(r.DecodeBool()) + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIPC = false + } else { + x.HostIPC = bool(r.DecodeBool()) + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + 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) + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + 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) + } + yym2055 := z.DecBinary() + _ = yym2055 + if false { + } else { + *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) + } + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + 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) + } + yym2057 := z.DecBinary() + _ = yym2057 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SupplementalGroups = nil + } else { + yyv2058 := &x.SupplementalGroups + yym2059 := z.DecBinary() + _ = yym2059 + if false { + } else { + z.F.DecSliceInt64X(yyv2058, false, d) + } + } + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FSGroup != nil { + x.FSGroup = nil + } + } else { + if x.FSGroup == nil { + x.FSGroup = new(int64) + } + yym2061 := z.DecBinary() + _ = yym2061 + if false { + } else { + *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) + } + } + for { + yyj2049++ + if yyhl2049 { + yyb2049 = yyj2049 > l + } else { + yyb2049 = r.CheckBreak() + } + if yyb2049 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2049-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2062 := z.EncBinary() + _ = yym2062 + 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 { + r.EncodeArrayStart(8) + } else { + yynn2063 = 0 + for _, b := range yyq2063 { + if b { + yynn2063++ + } + } + r.EncodeMapStart(yynn2063) + yynn2063 = 0 + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2063[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[1] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2066 := z.EncBinary() + _ = yym2066 + if false { + } else { + h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2063[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 + if false { + } else { + h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) + } + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[2] { + yym2069 := z.EncBinary() + _ = yym2069 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2063[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2070 := z.EncBinary() + _ = yym2070 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[3] { + yym2072 := z.EncBinary() + _ = yym2072 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2063[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2073 := z.EncBinary() + _ = yym2073 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[4] { + yym2075 := z.EncBinary() + _ = yym2075 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2063[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2076 := z.EncBinary() + _ = yym2076 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[5] { + yym2078 := z.EncBinary() + _ = yym2078 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2063[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2079 := z.EncBinary() + _ = yym2079 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[6] { + if x.StartTime == nil { + r.EncodeNil() + } else { + yym2081 := z.EncBinary() + _ = yym2081 + if false { + } else if z.HasExtensions() && z.EncExt(x.StartTime) { + } else if yym2081 { + z.EncBinaryMarshal(x.StartTime) + } else if !yym2081 && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartTime) + } else { + z.EncFallback(x.StartTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2063[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.StartTime) { + } else if yym2082 { + z.EncBinaryMarshal(x.StartTime) + } else if !yym2082 && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartTime) + } else { + z.EncFallback(x.StartTime) + } + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2063[7] { + if x.ContainerStatuses == nil { + r.EncodeNil() + } else { + yym2084 := z.EncBinary() + _ = yym2084 + if false { + } else { + h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2063[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 + if false { + } else { + h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) + } + } + } + } + if yyr2063 || yy2arr2063 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2086 := z.DecBinary() + _ = yym2086 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2087 := r.ContainerType() + if yyct2087 == codecSelferValueTypeMap1234 { + yyl2087 := r.ReadMapStart() + if yyl2087 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2087, d) + } + } else if yyct2087 == codecSelferValueTypeArray1234 { + yyl2087 := r.ReadArrayStart() + if yyl2087 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2087, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2088Slc = r.DecodeBytes(yys2088Slc, true, true) + yys2088 := string(yys2088Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2088 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PodPhase(r.DecodeString()) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2090 := &x.Conditions + yym2091 := z.DecBinary() + _ = yym2091 + if false { + } else { + h.decSlicePodCondition((*[]PodCondition)(yyv2090), d) + } + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + case "hostIP": + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + case "podIP": + if r.TryDecodeAsNil() { + x.PodIP = "" + } else { + x.PodIP = string(r.DecodeString()) + } + case "startTime": + if r.TryDecodeAsNil() { + if x.StartTime != nil { + x.StartTime = nil + } + } else { + if x.StartTime == nil { + x.StartTime = new(pkg2_unversioned.Time) + } + yym2097 := z.DecBinary() + _ = yym2097 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym2097 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym2097 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + case "containerStatuses": + if r.TryDecodeAsNil() { + x.ContainerStatuses = nil + } else { + yyv2098 := &x.ContainerStatuses + yym2099 := z.DecBinary() + _ = yym2099 + if false { + } else { + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2098), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2088) + } // end switch yys2088 + } // end for yyj2088 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PodPhase(r.DecodeString()) + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2102 := &x.Conditions + yym2103 := z.DecBinary() + _ = yym2103 + if false { + } else { + h.decSlicePodCondition((*[]PodCondition)(yyv2102), d) + } + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodIP = "" + } else { + x.PodIP = string(r.DecodeString()) + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.StartTime != nil { + x.StartTime = nil + } + } else { + if x.StartTime == nil { + x.StartTime = new(pkg2_unversioned.Time) + } + yym2109 := z.DecBinary() + _ = yym2109 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym2109 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym2109 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerStatuses = nil + } else { + yyv2110 := &x.ContainerStatuses + yym2111 := z.DecBinary() + _ = yym2111 + if false { + } else { + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2110), d) + } + } + for { + yyj2100++ + if yyhl2100 { + yyb2100 = yyj2100 > l + } else { + yyb2100 = r.CheckBreak() + } + if yyb2100 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2100-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2112 := z.EncBinary() + _ = yym2112 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2113 = 0 + for _, b := range yyq2113 { + if b { + yynn2113++ + } + } + r.EncodeMapStart(yynn2113) + yynn2113 = 0 + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[0] { + yym2115 := z.EncBinary() + _ = yym2115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2113[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2116 := z.EncBinary() + _ = yym2116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[1] { + yym2118 := z.EncBinary() + _ = yym2118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2119 := z.EncBinary() + _ = yym2119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[2] { + yy2121 := &x.ObjectMeta + yy2121.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2122 := &x.ObjectMeta + yy2122.CodecEncodeSelf(e) + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[3] { + yy2124 := &x.Status + yy2124.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2113[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2125 := &x.Status + yy2125.CodecEncodeSelf(e) + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2126 := z.DecBinary() + _ = yym2126 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2127 := r.ContainerType() + if yyct2127 == codecSelferValueTypeMap1234 { + yyl2127 := r.ReadMapStart() + if yyl2127 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2127, d) + } + } else if yyct2127 == codecSelferValueTypeArray1234 { + yyl2127 := r.ReadArrayStart() + if yyl2127 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2127, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2128Slc = r.DecodeBytes(yys2128Slc, true, true) + yys2128 := string(yys2128Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2128 { + 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 { + yyv2131 := &x.ObjectMeta + yyv2131.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2132 := &x.Status + yyv2132.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2128) + } // end switch yys2128 + } // end for yyj2128 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2133 = r.CheckBreak() + } + if yyb2133 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2133++ + if yyhl2133 { + yyb2133 = yyj2133 > l + } else { + yyb2133 = r.CheckBreak() + } + if yyb2133 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2133++ + if yyhl2133 { + yyb2133 = yyj2133 > l + } else { + yyb2133 = r.CheckBreak() + } + if yyb2133 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2136 := &x.ObjectMeta + yyv2136.CodecDecodeSelf(d) + } + yyj2133++ + if yyhl2133 { + yyb2133 = yyj2133 > l + } else { + yyb2133 = r.CheckBreak() + } + if yyb2133 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2137 := &x.Status + yyv2137.CodecDecodeSelf(d) + } + for { + yyj2133++ + if yyhl2133 { + yyb2133 = yyj2133 > l + } else { + yyb2133 = r.CheckBreak() + } + if yyb2133 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2133-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2138 := z.EncBinary() + _ = yym2138 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2139 = 0 + for _, b := range yyq2139 { + if b { + yynn2139++ + } + } + r.EncodeMapStart(yynn2139) + yynn2139 = 0 + } + if yyr2139 || yy2arr2139 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2139[0] { + yym2141 := z.EncBinary() + _ = yym2141 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2139[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2142 := z.EncBinary() + _ = yym2142 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2139 || yy2arr2139 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2139[1] { + yym2144 := z.EncBinary() + _ = yym2144 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2139[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2145 := z.EncBinary() + _ = yym2145 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2139 || yy2arr2139 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2139[2] { + yy2147 := &x.ObjectMeta + yy2147.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2139[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2148 := &x.ObjectMeta + yy2148.CodecEncodeSelf(e) + } + } + if yyr2139 || yy2arr2139 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2139[3] { + yy2150 := &x.Spec + yy2150.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2139[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2151 := &x.Spec + yy2151.CodecEncodeSelf(e) + } + } + if yyr2139 || yy2arr2139 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2139[4] { + yy2153 := &x.Status + yy2153.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2139[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2154 := &x.Status + yy2154.CodecEncodeSelf(e) + } + } + if yyr2139 || yy2arr2139 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2155 := z.DecBinary() + _ = yym2155 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2156 := r.ContainerType() + if yyct2156 == codecSelferValueTypeMap1234 { + yyl2156 := r.ReadMapStart() + if yyl2156 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2156, d) + } + } else if yyct2156 == codecSelferValueTypeArray1234 { + yyl2156 := r.ReadArrayStart() + if yyl2156 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2156, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2157Slc = r.DecodeBytes(yys2157Slc, true, true) + yys2157 := string(yys2157Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2157 { + 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 { + yyv2160 := &x.ObjectMeta + yyv2160.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2161 := &x.Spec + yyv2161.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2162 := &x.Status + yyv2162.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2157) + } // end switch yys2157 + } // end for yyj2157 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2163 = r.CheckBreak() + } + if yyb2163 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = 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.APIVersion = "" + } else { + x.APIVersion = 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.ObjectMeta = ObjectMeta{} + } else { + yyv2166 := &x.ObjectMeta + yyv2166.CodecDecodeSelf(d) + } + 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.Spec = PodSpec{} + } else { + yyv2167 := &x.Spec + yyv2167.CodecDecodeSelf(d) + } + 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.Status = PodStatus{} + } else { + yyv2168 := &x.Status + yyv2168.CodecDecodeSelf(d) + } + 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) +} + +func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2169 := z.EncBinary() + _ = yym2169 + 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 { + r.EncodeArrayStart(2) + } else { + yynn2170 = 0 + for _, b := range yyq2170 { + if b { + yynn2170++ + } + } + r.EncodeMapStart(yynn2170) + yynn2170 = 0 + } + if yyr2170 || yy2arr2170 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2170[0] { + yy2172 := &x.ObjectMeta + yy2172.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2170[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2173 := &x.ObjectMeta + yy2173.CodecEncodeSelf(e) + } + } + if yyr2170 || yy2arr2170 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2170[1] { + yy2175 := &x.Spec + yy2175.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2170[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2176 := &x.Spec + yy2176.CodecEncodeSelf(e) + } + } + if yyr2170 || yy2arr2170 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2177 := z.DecBinary() + _ = yym2177 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2178 := r.ContainerType() + if yyct2178 == codecSelferValueTypeMap1234 { + yyl2178 := r.ReadMapStart() + if yyl2178 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2178, d) + } + } else if yyct2178 == codecSelferValueTypeArray1234 { + yyl2178 := r.ReadArrayStart() + if yyl2178 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2178, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2179Slc = r.DecodeBytes(yys2179Slc, true, true) + yys2179 := string(yys2179Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2179 { + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2180 := &x.ObjectMeta + yyv2180.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2181 := &x.Spec + yyv2181.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2179) + } // end switch yys2179 + } // end for yyj2179 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2182 = r.CheckBreak() + } + if yyb2182 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2183 := &x.ObjectMeta + yyv2183.CodecDecodeSelf(d) + } + yyj2182++ + if yyhl2182 { + yyb2182 = yyj2182 > l + } else { + yyb2182 = r.CheckBreak() + } + if yyb2182 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2184 := &x.Spec + yyv2184.CodecDecodeSelf(d) + } + for { + yyj2182++ + if yyhl2182 { + yyb2182 = yyj2182 > l + } else { + yyb2182 = r.CheckBreak() + } + if yyb2182 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2182-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2185 := z.EncBinary() + _ = yym2185 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2186 = 0 + for _, b := range yyq2186 { + if b { + yynn2186++ + } + } + r.EncodeMapStart(yynn2186) + yynn2186 = 0 + } + if yyr2186 || yy2arr2186 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2186[0] { + yym2188 := z.EncBinary() + _ = yym2188 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2186[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2189 := z.EncBinary() + _ = yym2189 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2186 || yy2arr2186 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2186[1] { + yym2191 := z.EncBinary() + _ = yym2191 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2186[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2192 := z.EncBinary() + _ = yym2192 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2186 || yy2arr2186 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2186[2] { + yy2194 := &x.ObjectMeta + yy2194.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2186[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2195 := &x.ObjectMeta + yy2195.CodecEncodeSelf(e) + } + } + if yyr2186 || yy2arr2186 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2186[3] { + yy2197 := &x.Template + yy2197.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2186[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2198 := &x.Template + yy2198.CodecEncodeSelf(e) + } + } + if yyr2186 || yy2arr2186 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2199 := z.DecBinary() + _ = yym2199 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2200 := r.ContainerType() + if yyct2200 == codecSelferValueTypeMap1234 { + yyl2200 := r.ReadMapStart() + if yyl2200 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2200, d) + } + } else if yyct2200 == codecSelferValueTypeArray1234 { + yyl2200 := r.ReadArrayStart() + if yyl2200 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2200, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2201Slc = r.DecodeBytes(yys2201Slc, true, true) + yys2201 := string(yys2201Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2201 { + 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 { + yyv2204 := &x.ObjectMeta + yyv2204.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = PodTemplateSpec{} + } else { + yyv2205 := &x.Template + yyv2205.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2201) + } // end switch yys2201 + } // end for yyj2201 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2206 = r.CheckBreak() + } + if yyb2206 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2206++ + if yyhl2206 { + yyb2206 = yyj2206 > l + } else { + yyb2206 = r.CheckBreak() + } + if yyb2206 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2206++ + if yyhl2206 { + yyb2206 = yyj2206 > l + } else { + yyb2206 = r.CheckBreak() + } + if yyb2206 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2209 := &x.ObjectMeta + yyv2209.CodecDecodeSelf(d) + } + yyj2206++ + if yyhl2206 { + yyb2206 = yyj2206 > l + } else { + yyb2206 = r.CheckBreak() + } + if yyb2206 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = PodTemplateSpec{} + } else { + yyv2210 := &x.Template + yyv2210.CodecDecodeSelf(d) + } + for { + yyj2206++ + if yyhl2206 { + yyb2206 = yyj2206 > l + } else { + yyb2206 = r.CheckBreak() + } + if yyb2206 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2206-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2211 := z.EncBinary() + _ = yym2211 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2212 = 1 + for _, b := range yyq2212 { + if b { + yynn2212++ + } + } + r.EncodeMapStart(yynn2212) + yynn2212 = 0 + } + if yyr2212 || yy2arr2212 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2212[0] { + yym2214 := z.EncBinary() + _ = yym2214 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2212[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2215 := z.EncBinary() + _ = yym2215 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2212 || yy2arr2212 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2212[1] { + yym2217 := z.EncBinary() + _ = yym2217 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2212[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2218 := z.EncBinary() + _ = yym2218 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2212 || yy2arr2212 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2212[2] { + yy2220 := &x.ListMeta + yym2221 := z.EncBinary() + _ = yym2221 + if false { + } else if z.HasExtensions() && z.EncExt(yy2220) { + } else { + z.EncFallback(yy2220) + } + } else { + r.EncodeNil() + } + } else { + if yyq2212[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2222 := &x.ListMeta + yym2223 := z.EncBinary() + _ = yym2223 + if false { + } else if z.HasExtensions() && z.EncExt(yy2222) { + } else { + z.EncFallback(yy2222) + } + } + } + if yyr2212 || yy2arr2212 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2225 := z.EncBinary() + _ = yym2225 + if false { + } else { + h.encSlicePodTemplate(([]PodTemplate)(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 { + yym2226 := z.EncBinary() + _ = yym2226 + if false { + } else { + h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) + } + } + } + if yyr2212 || yy2arr2212 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +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 + yym2389 := z.DecBinary() + _ = yym2389 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2390 := r.ContainerType() + if yyct2390 == codecSelferValueTypeMap1234 { + yyl2390 := r.ReadMapStart() + if yyl2390 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2390, d) + } + } else if yyct2390 == codecSelferValueTypeArray1234 { + yyl2390 := r.ReadArrayStart() + if yyl2390 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2390, 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 yys2391Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2391Slc + var yyhl2391 bool = l >= 0 + for yyj2391 := 0; ; yyj2391++ { + if yyhl2391 { + if yyj2391 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2391Slc = r.DecodeBytes(yys2391Slc, true, true) + yys2391 := string(yys2391Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2391 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2392 := &x.LoadBalancer + yyv2392.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2391) + } // end switch yys2391 + } // end for yyj2391 + 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 yyj2393 int + var yyb2393 bool + var yyhl2393 bool = l >= 0 + yyj2393++ + if yyhl2393 { + yyb2393 = yyj2393 > l + } else { + yyb2393 = r.CheckBreak() + } + if yyb2393 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2394 := &x.LoadBalancer + yyv2394.CodecDecodeSelf(d) + } + for { + yyj2393++ + if yyhl2393 { + yyb2393 = yyj2393 > l + } else { + yyb2393 = r.CheckBreak() + } + if yyb2393 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2393-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 { + yym2395 := z.EncBinary() + _ = yym2395 + 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) + } else { + yynn2396 = 0 + for _, b := range yyq2396 { + if b { + yynn2396++ + } + } + r.EncodeMapStart(yynn2396) + yynn2396 = 0 + } + if yyr2396 || yy2arr2396 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2396[0] { + if x.Ingress == nil { + r.EncodeNil() + } else { + yym2398 := z.EncBinary() + _ = yym2398 + if false { + } else { + h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2396[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ingress")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Ingress == nil { + r.EncodeNil() + } else { + yym2399 := z.EncBinary() + _ = yym2399 + if false { + } else { + h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) + } + } + } + } + if yyr2396 || yy2arr2396 { + 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 + yym2400 := z.DecBinary() + _ = yym2400 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2401 := r.ContainerType() + if yyct2401 == codecSelferValueTypeMap1234 { + yyl2401 := r.ReadMapStart() + if yyl2401 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2401, d) + } + } else if yyct2401 == codecSelferValueTypeArray1234 { + yyl2401 := r.ReadArrayStart() + if yyl2401 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2401, 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 yys2402Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2402Slc + var yyhl2402 bool = l >= 0 + for yyj2402 := 0; ; yyj2402++ { + if yyhl2402 { + if yyj2402 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2402Slc = r.DecodeBytes(yys2402Slc, true, true) + yys2402 := string(yys2402Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2402 { + case "ingress": + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv2403 := &x.Ingress + yym2404 := z.DecBinary() + _ = yym2404 + if false { + } else { + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2403), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2402) + } // end switch yys2402 + } // end for yyj2402 + 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) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2421 int + var yyb2421 bool + var yyhl2421 bool = l >= 0 + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l + } else { + yyb2421 = r.CheckBreak() + } + if yyb2421 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = string(r.DecodeString()) + } + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l + } else { + yyb2421 = r.CheckBreak() + } + if yyb2421 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + for { + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l + } else { + yyb2421 = r.CheckBreak() + } + if yyb2421 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2421-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2424 := z.EncBinary() + _ = yym2424 + 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) + } else { + yynn2425 = 2 + for _, b := range yyq2425 { + if b { + yynn2425++ + } + } + r.EncodeMapStart(yynn2425) + yynn2425 = 0 + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2425[0] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2425[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Ports == nil { + r.EncodeNil() + } else { + yym2428 := z.EncBinary() + _ = yym2428 + if false { + } else { + h.encSliceServicePort(([]ServicePort)(x.Ports), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ports")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Ports == nil { + r.EncodeNil() + } else { + yym2429 := z.EncBinary() + _ = yym2429 + if false { + } else { + h.encSliceServicePort(([]ServicePort)(x.Ports), e) + } + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym2431 := z.EncBinary() + _ = yym2431 + 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 { + yym2432 := z.EncBinary() + _ = yym2432 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2425[3] { + yym2434 := z.EncBinary() + _ = yym2434 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2425[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2435 := z.EncBinary() + _ = yym2435 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) + } + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2425[4] { + if x.ExternalIPs == nil { + r.EncodeNil() + } else { + yym2437 := z.EncBinary() + _ = yym2437 + if false { + } else { + z.F.EncSliceStringV(x.ExternalIPs, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2425[4] { + 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 + if false { + } else { + z.F.EncSliceStringV(x.ExternalIPs, false, e) + } + } + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2425[5] { + yym2440 := z.EncBinary() + _ = yym2440 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2425[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2441 := z.EncBinary() + _ = yym2441 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) + } + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2425[6] { + x.SessionAffinity.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2425[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.SessionAffinity.CodecEncodeSelf(e) + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2425[7] { + if x.LoadBalancerSourceRanges == nil { + r.EncodeNil() + } else { + yym2444 := z.EncBinary() + _ = yym2444 + if false { + } else { + z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2425[7] { + 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 + if false { + } else { + z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) + } + } + } + } + if yyr2425 || yy2arr2425 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2446 := z.DecBinary() + _ = yym2446 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2447 := r.ContainerType() + if yyct2447 == codecSelferValueTypeMap1234 { + yyl2447 := r.ReadMapStart() + if yyl2447 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2447, d) + } + } else if yyct2447 == codecSelferValueTypeArray1234 { + yyl2447 := r.ReadArrayStart() + if yyl2447 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2447, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2448Slc = r.DecodeBytes(yys2448Slc, true, true) + yys2448 := string(yys2448Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2448 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ServiceType(r.DecodeString()) + } + case "ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2450 := &x.Ports + yym2451 := z.DecBinary() + _ = yym2451 + if false { + } else { + h.decSliceServicePort((*[]ServicePort)(yyv2450), d) + } + } + case "selector": + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2452 := &x.Selector + yym2453 := z.DecBinary() + _ = yym2453 + if false { + } else { + z.F.DecMapStringStringX(yyv2452, false, d) + } + } + case "clusterIP": + if r.TryDecodeAsNil() { + x.ClusterIP = "" + } else { + x.ClusterIP = string(r.DecodeString()) + } + case "externalIPs": + if r.TryDecodeAsNil() { + x.ExternalIPs = nil + } else { + yyv2455 := &x.ExternalIPs + yym2456 := z.DecBinary() + _ = yym2456 + if false { + } else { + z.F.DecSliceStringX(yyv2455, false, d) + } + } + case "loadBalancerIP": + if r.TryDecodeAsNil() { + x.LoadBalancerIP = "" + } else { + x.LoadBalancerIP = string(r.DecodeString()) + } + case "sessionAffinity": + if r.TryDecodeAsNil() { + x.SessionAffinity = "" + } else { + x.SessionAffinity = ServiceAffinity(r.DecodeString()) + } + case "loadBalancerSourceRanges": + if r.TryDecodeAsNil() { + x.LoadBalancerSourceRanges = nil + } else { + yyv2459 := &x.LoadBalancerSourceRanges + yym2460 := z.DecBinary() + _ = yym2460 + if false { + } else { + z.F.DecSliceStringX(yyv2459, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2448) + } // end switch yys2448 + } // end for yyj2448 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ServiceType(r.DecodeString()) + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2463 := &x.Ports + yym2464 := z.DecBinary() + _ = yym2464 + if false { + } else { + h.decSliceServicePort((*[]ServicePort)(yyv2463), d) + } + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2465 := &x.Selector + yym2466 := z.DecBinary() + _ = yym2466 + if false { + } else { + z.F.DecMapStringStringX(yyv2465, false, d) + } + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterIP = "" + } else { + x.ClusterIP = string(r.DecodeString()) + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExternalIPs = nil + } else { + yyv2468 := &x.ExternalIPs + yym2469 := z.DecBinary() + _ = yym2469 + if false { + } else { + z.F.DecSliceStringX(yyv2468, false, d) + } + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancerIP = "" + } else { + x.LoadBalancerIP = string(r.DecodeString()) + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SessionAffinity = "" + } else { + x.SessionAffinity = ServiceAffinity(r.DecodeString()) + } + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancerSourceRanges = nil + } else { + yyv2472 := &x.LoadBalancerSourceRanges + yym2473 := z.DecBinary() + _ = yym2473 + if false { + } else { + z.F.DecSliceStringX(yyv2472, false, d) + } + } + for { + yyj2461++ + if yyhl2461 { + yyb2461 = yyj2461 > l + } else { + yyb2461 = r.CheckBreak() + } + if yyb2461 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2461-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2474 := z.EncBinary() + _ = yym2474 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2475 = 5 + for _, b := range yyq2475 { + if b { + yynn2475++ + } + } + r.EncodeMapStart(yynn2475) + yynn2475 = 0 + } + if yyr2475 || yy2arr2475 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2477 := z.EncBinary() + _ = yym2477 + 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) + yym2478 := z.EncBinary() + _ = yym2478 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr2475 || yy2arr2475 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Protocol.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protocol")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Protocol.CodecEncodeSelf(e) + } + if yyr2475 || yy2arr2475 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2481 := z.EncBinary() + _ = yym2481 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2482 := z.EncBinary() + _ = yym2482 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2475 || yy2arr2475 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy2484 := &x.TargetPort + yym2485 := z.EncBinary() + _ = yym2485 + if false { + } else if z.HasExtensions() && z.EncExt(yy2484) { + } else if !yym2485 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2484) + } else { + z.EncFallback(yy2484) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2486 := &x.TargetPort + yym2487 := z.EncBinary() + _ = yym2487 + if false { + } else if z.HasExtensions() && z.EncExt(yy2486) { + } else if !yym2487 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2486) + } else { + z.EncFallback(yy2486) + } + } + if yyr2475 || yy2arr2475 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2489 := z.EncBinary() + _ = yym2489 + if false { + } else { + r.EncodeInt(int64(x.NodePort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodePort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2490 := z.EncBinary() + _ = yym2490 + if false { + } else { + r.EncodeInt(int64(x.NodePort)) + } + } + if yyr2475 || yy2arr2475 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2491 := z.DecBinary() + _ = yym2491 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2492 := r.ContainerType() + if yyct2492 == codecSelferValueTypeMap1234 { + yyl2492 := r.ReadMapStart() + if yyl2492 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2492, d) + } + } else if yyct2492 == codecSelferValueTypeArray1234 { + yyl2492 := r.ReadArrayStart() + if yyl2492 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2492, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2493Slc = r.DecodeBytes(yys2493Slc, true, true) + yys2493 := string(yys2493Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2493 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + case "port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + case "targetPort": + if r.TryDecodeAsNil() { + x.TargetPort = pkg4_intstr.IntOrString{} + } else { + yyv2497 := &x.TargetPort + yym2498 := z.DecBinary() + _ = yym2498 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2497) { + } else if !yym2498 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2497) + } else { + z.DecFallback(yyv2497, false) + } + } + case "nodePort": + if r.TryDecodeAsNil() { + x.NodePort = 0 + } else { + x.NodePort = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys2493) + } // end switch yys2493 + } // end for yyj2493 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2500 = r.CheckBreak() + } + if yyb2500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj2500++ + if yyhl2500 { + yyb2500 = yyj2500 > l + } else { + yyb2500 = r.CheckBreak() + } + if yyb2500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + yyj2500++ + if yyhl2500 { + yyb2500 = yyj2500 > l + } else { + yyb2500 = r.CheckBreak() + } + if yyb2500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj2500++ + if yyhl2500 { + yyb2500 = yyj2500 > l + } else { + yyb2500 = r.CheckBreak() + } + if yyb2500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TargetPort = pkg4_intstr.IntOrString{} + } else { + yyv2504 := &x.TargetPort + yym2505 := z.DecBinary() + _ = yym2505 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2504) { + } else if !yym2505 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2504) + } else { + z.DecFallback(yyv2504, false) + } + } + yyj2500++ + if yyhl2500 { + yyb2500 = yyj2500 > l + } else { + yyb2500 = r.CheckBreak() + } + if yyb2500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodePort = 0 + } else { + x.NodePort = int32(r.DecodeInt(32)) + } + for { + yyj2500++ + if yyhl2500 { + yyb2500 = yyj2500 > l + } else { + yyb2500 = r.CheckBreak() + } + if yyb2500 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2500-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2507 := z.EncBinary() + _ = yym2507 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2508 = 0 + for _, b := range yyq2508 { + if b { + yynn2508++ + } + } + r.EncodeMapStart(yynn2508) + yynn2508 = 0 + } + if yyr2508 || yy2arr2508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2508[0] { + yym2510 := z.EncBinary() + _ = yym2510 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2508[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2511 := z.EncBinary() + _ = yym2511 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2508 || yy2arr2508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2508[1] { + yym2513 := z.EncBinary() + _ = yym2513 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2508[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2514 := z.EncBinary() + _ = yym2514 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2508 || yy2arr2508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2508[2] { + yy2516 := &x.ObjectMeta + yy2516.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2508[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2517 := &x.ObjectMeta + yy2517.CodecEncodeSelf(e) + } + } + if yyr2508 || yy2arr2508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2508[3] { + yy2519 := &x.Spec + yy2519.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2508[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2520 := &x.Spec + yy2520.CodecEncodeSelf(e) + } + } + if yyr2508 || yy2arr2508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2508[4] { + yy2522 := &x.Status + yy2522.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2508[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2523 := &x.Status + yy2523.CodecEncodeSelf(e) + } + } + if yyr2508 || yy2arr2508 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2524 := z.DecBinary() + _ = yym2524 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2525 := r.ContainerType() + if yyct2525 == codecSelferValueTypeMap1234 { + yyl2525 := r.ReadMapStart() + if yyl2525 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2525, d) + } + } else if yyct2525 == codecSelferValueTypeArray1234 { + yyl2525 := r.ReadArrayStart() + if yyl2525 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2525, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2526Slc = r.DecodeBytes(yys2526Slc, true, true) + yys2526 := string(yys2526Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2526 { + 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 { + yyv2529 := &x.ObjectMeta + yyv2529.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ServiceSpec{} + } else { + yyv2530 := &x.Spec + yyv2530.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ServiceStatus{} + } else { + yyv2531 := &x.Status + yyv2531.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2526) + } // end switch yys2526 + } // end for yyj2526 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2532 = r.CheckBreak() + } + if yyb2532 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2532++ + if yyhl2532 { + yyb2532 = yyj2532 > l + } else { + yyb2532 = r.CheckBreak() + } + if yyb2532 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2532++ + if yyhl2532 { + yyb2532 = yyj2532 > l + } else { + yyb2532 = r.CheckBreak() + } + if yyb2532 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2535 := &x.ObjectMeta + yyv2535.CodecDecodeSelf(d) + } + yyj2532++ + if yyhl2532 { + yyb2532 = yyj2532 > l + } else { + yyb2532 = r.CheckBreak() + } + if yyb2532 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ServiceSpec{} + } else { + yyv2536 := &x.Spec + yyv2536.CodecDecodeSelf(d) + } + yyj2532++ + if yyhl2532 { + yyb2532 = yyj2532 > l + } else { + yyb2532 = r.CheckBreak() + } + if yyb2532 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ServiceStatus{} + } else { + yyv2537 := &x.Status + yyv2537.CodecDecodeSelf(d) + } + for { + yyj2532++ + if yyhl2532 { + yyb2532 = yyj2532 > l + } else { + yyb2532 = r.CheckBreak() + } + if yyb2532 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2532-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2538 := z.EncBinary() + _ = yym2538 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2539 = 1 + for _, b := range yyq2539 { + if b { + yynn2539++ + } + } + r.EncodeMapStart(yynn2539) + yynn2539 = 0 + } + if yyr2539 || yy2arr2539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2539[0] { + yym2541 := z.EncBinary() + _ = yym2541 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2539[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2542 := z.EncBinary() + _ = yym2542 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2539 || yy2arr2539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2539[1] { + yym2544 := z.EncBinary() + _ = yym2544 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2539[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2545 := z.EncBinary() + _ = yym2545 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2539 || yy2arr2539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2539[2] { + yy2547 := &x.ObjectMeta + yy2547.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2539[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2548 := &x.ObjectMeta + yy2548.CodecEncodeSelf(e) + } + } + if yyr2539 || yy2arr2539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Secrets == nil { + r.EncodeNil() + } else { + yym2550 := z.EncBinary() + _ = yym2550 + if false { + } else { + h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secrets")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Secrets == nil { + r.EncodeNil() + } else { + yym2551 := z.EncBinary() + _ = yym2551 + if false { + } else { + h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) + } + } + } + if yyr2539 || yy2arr2539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2539[4] { + if x.ImagePullSecrets == nil { + r.EncodeNil() + } else { + yym2553 := z.EncBinary() + _ = yym2553 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2539[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 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } + } + if yyr2539 || yy2arr2539 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2555 := z.DecBinary() + _ = yym2555 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2556 := r.ContainerType() + if yyct2556 == codecSelferValueTypeMap1234 { + yyl2556 := r.ReadMapStart() + if yyl2556 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2556, d) + } + } else if yyct2556 == codecSelferValueTypeArray1234 { + yyl2556 := r.ReadArrayStart() + if yyl2556 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2556, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2557Slc = r.DecodeBytes(yys2557Slc, true, true) + yys2557 := string(yys2557Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2557 { + 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 { + yyv2560 := &x.ObjectMeta + yyv2560.CodecDecodeSelf(d) + } + case "secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + yyv2561 := &x.Secrets + yym2562 := z.DecBinary() + _ = yym2562 + if false { + } else { + h.decSliceObjectReference((*[]ObjectReference)(yyv2561), d) + } + } + case "imagePullSecrets": + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv2563 := &x.ImagePullSecrets + yym2564 := z.DecBinary() + _ = yym2564 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2563), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2557) + } // end switch yys2557 + } // end for yyj2557 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2565 = r.CheckBreak() + } + if yyb2565 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2565++ + if yyhl2565 { + yyb2565 = yyj2565 > l + } else { + yyb2565 = r.CheckBreak() + } + if yyb2565 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2565++ + if yyhl2565 { + yyb2565 = yyj2565 > l + } else { + yyb2565 = r.CheckBreak() + } + if yyb2565 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2568 := &x.ObjectMeta + yyv2568.CodecDecodeSelf(d) + } + yyj2565++ + if yyhl2565 { + yyb2565 = yyj2565 > l + } else { + yyb2565 = r.CheckBreak() + } + if yyb2565 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + yyv2569 := &x.Secrets + yym2570 := z.DecBinary() + _ = yym2570 + if false { + } else { + h.decSliceObjectReference((*[]ObjectReference)(yyv2569), d) + } + } + yyj2565++ + if yyhl2565 { + yyb2565 = yyj2565 > l + } else { + yyb2565 = r.CheckBreak() + } + if yyb2565 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv2571 := &x.ImagePullSecrets + yym2572 := z.DecBinary() + _ = yym2572 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2571), d) + } + } + for { + yyj2565++ + if yyhl2565 { + yyb2565 = yyj2565 > l + } else { + yyb2565 = r.CheckBreak() + } + if yyb2565 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2565-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2573 := z.EncBinary() + _ = yym2573 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2574 = 1 + for _, b := range yyq2574 { + if b { + yynn2574++ + } + } + r.EncodeMapStart(yynn2574) + yynn2574 = 0 + } + if yyr2574 || yy2arr2574 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2574[0] { + yym2576 := z.EncBinary() + _ = yym2576 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2574[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2577 := z.EncBinary() + _ = yym2577 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2574 || yy2arr2574 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2574[1] { + yym2579 := z.EncBinary() + _ = yym2579 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2574[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2580 := z.EncBinary() + _ = yym2580 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2574 || yy2arr2574 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2574[2] { + yy2582 := &x.ListMeta + yym2583 := z.EncBinary() + _ = yym2583 + if false { + } else if z.HasExtensions() && z.EncExt(yy2582) { + } else { + z.EncFallback(yy2582) + } + } else { + r.EncodeNil() + } + } else { + if yyq2574[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2584 := &x.ListMeta + yym2585 := z.EncBinary() + _ = yym2585 + if false { + } else if z.HasExtensions() && z.EncExt(yy2584) { + } else { + z.EncFallback(yy2584) + } + } + } + if yyr2574 || yy2arr2574 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2587 := z.EncBinary() + _ = yym2587 + if false { + } else { + h.encSliceServiceAccount(([]ServiceAccount)(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 { + yym2588 := z.EncBinary() + _ = yym2588 + if false { + } else { + h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) + } + } + } + if yyr2574 || yy2arr2574 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2589 := z.DecBinary() + _ = yym2589 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2590 := r.ContainerType() + if yyct2590 == codecSelferValueTypeMap1234 { + yyl2590 := r.ReadMapStart() + if yyl2590 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2590, d) + } + } else if yyct2590 == codecSelferValueTypeArray1234 { + yyl2590 := r.ReadArrayStart() + if yyl2590 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2590, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2591Slc = r.DecodeBytes(yys2591Slc, true, true) + yys2591 := string(yys2591Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2591 { + 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 { + yyv2594 := &x.ListMeta + yym2595 := z.DecBinary() + _ = yym2595 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2594) { + } else { + z.DecFallback(yyv2594, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2596 := &x.Items + yym2597 := z.DecBinary() + _ = yym2597 + if false { + } else { + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2596), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2591) + } // end switch yys2591 + } // end for yyj2591 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb2598 = r.CheckBreak() + } + if yyb2598 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2598++ + if yyhl2598 { + yyb2598 = yyj2598 > l + } else { + yyb2598 = r.CheckBreak() + } + if yyb2598 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2598++ + if yyhl2598 { + yyb2598 = yyj2598 > l + } else { + yyb2598 = r.CheckBreak() + } + if yyb2598 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2601 := &x.ListMeta + yym2602 := z.DecBinary() + _ = yym2602 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2601) { + } else { + z.DecFallback(yyv2601, false) + } + } + yyj2598++ + if yyhl2598 { + yyb2598 = yyj2598 > l + } else { + yyb2598 = r.CheckBreak() + } + if yyb2598 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2603 := &x.Items + yym2604 := z.DecBinary() + _ = yym2604 + if false { + } else { + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2603), d) + } + } + for { + yyj2598++ + if yyhl2598 { + yyb2598 = yyj2598 > l + } else { + yyb2598 = r.CheckBreak() + } + if yyb2598 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2598-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2605 := z.EncBinary() + _ = yym2605 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2606 = 1 + for _, b := range yyq2606 { + if b { + yynn2606++ + } + } + r.EncodeMapStart(yynn2606) + yynn2606 = 0 + } + if yyr2606 || yy2arr2606 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2606[0] { + yym2608 := z.EncBinary() + _ = yym2608 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2606[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2609 := z.EncBinary() + _ = yym2609 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2606 || yy2arr2606 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2606[1] { + yym2611 := z.EncBinary() + _ = yym2611 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2606[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2612 := z.EncBinary() + _ = yym2612 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2606 || yy2arr2606 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2606[2] { + yy2614 := &x.ObjectMeta + yy2614.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2606[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2615 := &x.ObjectMeta + yy2615.CodecEncodeSelf(e) + } + } + if yyr2606 || yy2arr2606 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2617 := z.EncBinary() + _ = yym2617 + if false { + } else { + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Subsets")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2618 := z.EncBinary() + _ = yym2618 + if false { + } else { + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + } + } + } + if yyr2606 || yy2arr2606 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2619 := z.DecBinary() + _ = yym2619 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2620 := r.ContainerType() + if yyct2620 == codecSelferValueTypeMap1234 { + yyl2620 := r.ReadMapStart() + if yyl2620 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2620, d) + } + } else if yyct2620 == codecSelferValueTypeArray1234 { + yyl2620 := r.ReadArrayStart() + if yyl2620 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2620, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2621Slc = r.DecodeBytes(yys2621Slc, true, true) + yys2621 := string(yys2621Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2621 { + 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 { + yyv2624 := &x.ObjectMeta + yyv2624.CodecDecodeSelf(d) + } + case "Subsets": + if r.TryDecodeAsNil() { + x.Subsets = nil + } else { + yyv2625 := &x.Subsets + yym2626 := z.DecBinary() + _ = yym2626 + if false { + } else { + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2625), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2621) + } // end switch yys2621 + } // end for yyj2621 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2627 = r.CheckBreak() + } + if yyb2627 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2627++ + if yyhl2627 { + yyb2627 = yyj2627 > l + } else { + yyb2627 = r.CheckBreak() + } + if yyb2627 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2627++ + if yyhl2627 { + yyb2627 = yyj2627 > l + } else { + yyb2627 = r.CheckBreak() + } + if yyb2627 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2630 := &x.ObjectMeta + yyv2630.CodecDecodeSelf(d) + } + yyj2627++ + if yyhl2627 { + yyb2627 = yyj2627 > l + } else { + yyb2627 = r.CheckBreak() + } + if yyb2627 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Subsets = nil + } else { + yyv2631 := &x.Subsets + yym2632 := z.DecBinary() + _ = yym2632 + if false { + } else { + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2631), d) + } + } + for { + yyj2627++ + if yyhl2627 { + yyb2627 = yyj2627 > l + } else { + yyb2627 = r.CheckBreak() + } + if yyb2627 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2627-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2633 := z.EncBinary() + _ = yym2633 + 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 { + r.EncodeArrayStart(3) + } else { + yynn2634 = 3 + for _, b := range yyq2634 { + if b { + yynn2634++ + } + } + r.EncodeMapStart(yynn2634) + yynn2634 = 0 + } + if yyr2634 || yy2arr2634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2636 := z.EncBinary() + _ = yym2636 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Addresses")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2637 := z.EncBinary() + _ = yym2637 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) + } + } + } + if yyr2634 || yy2arr2634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.NotReadyAddresses == nil { + r.EncodeNil() + } else { + yym2639 := z.EncBinary() + _ = yym2639 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("NotReadyAddresses")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NotReadyAddresses == nil { + r.EncodeNil() + } else { + yym2640 := z.EncBinary() + _ = yym2640 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) + } + } + } + if yyr2634 || yy2arr2634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Ports == nil { + r.EncodeNil() + } else { + yym2642 := z.EncBinary() + _ = yym2642 + if false { + } else { + h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Ports")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Ports == nil { + r.EncodeNil() + } else { + yym2643 := z.EncBinary() + _ = yym2643 + if false { + } else { + h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) + } + } + } + if yyr2634 || yy2arr2634 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2644 := z.DecBinary() + _ = yym2644 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2645 := r.ContainerType() + if yyct2645 == codecSelferValueTypeMap1234 { + yyl2645 := r.ReadMapStart() + if yyl2645 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2645, d) + } + } else if yyct2645 == codecSelferValueTypeArray1234 { + yyl2645 := r.ReadArrayStart() + if yyl2645 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2645, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2646Slc = r.DecodeBytes(yys2646Slc, true, true) + yys2646 := string(yys2646Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2646 { + case "Addresses": + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2647 := &x.Addresses + yym2648 := z.DecBinary() + _ = yym2648 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2647), d) + } + } + case "NotReadyAddresses": + if r.TryDecodeAsNil() { + x.NotReadyAddresses = nil + } else { + yyv2649 := &x.NotReadyAddresses + yym2650 := z.DecBinary() + _ = yym2650 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2649), d) + } + } + case "Ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2651 := &x.Ports + yym2652 := z.DecBinary() + _ = yym2652 + if false { + } else { + h.decSliceEndpointPort((*[]EndpointPort)(yyv2651), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2646) + } // end switch yys2646 + } // end for yyj2646 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2653 = r.CheckBreak() + } + if yyb2653 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2654 := &x.Addresses + yym2655 := z.DecBinary() + _ = yym2655 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2654), d) + } + } + yyj2653++ + if yyhl2653 { + yyb2653 = yyj2653 > l + } else { + yyb2653 = r.CheckBreak() + } + if yyb2653 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NotReadyAddresses = nil + } else { + yyv2656 := &x.NotReadyAddresses + yym2657 := z.DecBinary() + _ = yym2657 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2656), d) + } + } + yyj2653++ + if yyhl2653 { + yyb2653 = yyj2653 > l + } else { + yyb2653 = r.CheckBreak() + } + if yyb2653 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2658 := &x.Ports + yym2659 := z.DecBinary() + _ = yym2659 + if false { + } else { + h.decSliceEndpointPort((*[]EndpointPort)(yyv2658), d) + } + } + for { + yyj2653++ + if yyhl2653 { + yyb2653 = yyj2653 > l + } else { + yyb2653 = r.CheckBreak() + } + if yyb2653 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2653-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2660 := z.EncBinary() + _ = yym2660 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2661 := !z.EncBinary() + yy2arr2661 := z.EncBasicHandle().StructToArray + var yyq2661 [3]bool + _, _, _ = yysep2661, yyq2661, yy2arr2661 + const yyr2661 bool = false + yyq2661[1] = x.Hostname != "" + var yynn2661 int + if yyr2661 || yy2arr2661 { + r.EncodeArrayStart(3) + } else { + yynn2661 = 2 + for _, b := range yyq2661 { + if b { + yynn2661++ + } + } + r.EncodeMapStart(yynn2661) + yynn2661 = 0 + } + if yyr2661 || yy2arr2661 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2663 := z.EncBinary() + _ = yym2663 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("IP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2664 := z.EncBinary() + _ = yym2664 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } + if yyr2661 || yy2arr2661 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2661[1] { + yym2666 := z.EncBinary() + _ = yym2666 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2661[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostname")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2667 := z.EncBinary() + _ = yym2667 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } + } + if yyr2661 || yy2arr2661 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.TargetRef == nil { + r.EncodeNil() + } else { + x.TargetRef.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("TargetRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TargetRef == nil { + r.EncodeNil() + } else { + x.TargetRef.CodecEncodeSelf(e) + } + } + if yyr2661 || yy2arr2661 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2669 := z.DecBinary() + _ = yym2669 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2670 := r.ContainerType() + if yyct2670 == codecSelferValueTypeMap1234 { + yyl2670 := r.ReadMapStart() + if yyl2670 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2670, d) + } + } else if yyct2670 == codecSelferValueTypeArray1234 { + yyl2670 := r.ReadArrayStart() + if yyl2670 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2670, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2671Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2671Slc + var yyhl2671 bool = l >= 0 + for yyj2671 := 0; ; yyj2671++ { + if yyhl2671 { + if yyj2671 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2671Slc = r.DecodeBytes(yys2671Slc, true, true) + yys2671 := string(yys2671Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2671 { + 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()) + } + case "TargetRef": + if r.TryDecodeAsNil() { + if x.TargetRef != nil { + x.TargetRef = nil + } + } else { + if x.TargetRef == nil { + x.TargetRef = new(ObjectReference) + } + x.TargetRef.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2671) + } // end switch yys2671 + } // end for yyj2671 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2675 int + var yyb2675 bool + var yyhl2675 bool = l >= 0 + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l + } else { + yyb2675 = r.CheckBreak() + } + if yyb2675 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = string(r.DecodeString()) + } + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l + } else { + yyb2675 = r.CheckBreak() + } + if yyb2675 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l + } else { + yyb2675 = r.CheckBreak() + } + if yyb2675 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TargetRef != nil { + x.TargetRef = nil + } + } else { + if x.TargetRef == nil { + x.TargetRef = new(ObjectReference) + } + x.TargetRef.CodecDecodeSelf(d) + } + for { + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l + } else { + yyb2675 = r.CheckBreak() + } + if yyb2675 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2675-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2679 := z.EncBinary() + _ = yym2679 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2680 := !z.EncBinary() + yy2arr2680 := z.EncBasicHandle().StructToArray + var yyq2680 [3]bool + _, _, _ = yysep2680, yyq2680, yy2arr2680 + const yyr2680 bool = false + var yynn2680 int + if yyr2680 || yy2arr2680 { + r.EncodeArrayStart(3) + } else { + yynn2680 = 3 + for _, b := range yyq2680 { + if b { + yynn2680++ + } + } + r.EncodeMapStart(yynn2680) + yynn2680 = 0 + } + if yyr2680 || yy2arr2680 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2682 := z.EncBinary() + _ = yym2682 + 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) + yym2683 := z.EncBinary() + _ = yym2683 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr2680 || yy2arr2680 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2685 := z.EncBinary() + _ = yym2685 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2686 := z.EncBinary() + _ = yym2686 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2680 || yy2arr2680 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Protocol.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Protocol")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Protocol.CodecEncodeSelf(e) + } + if yyr2680 || yy2arr2680 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2688 := z.DecBinary() + _ = yym2688 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2689 := r.ContainerType() + if yyct2689 == codecSelferValueTypeMap1234 { + yyl2689 := r.ReadMapStart() + if yyl2689 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2689, d) + } + } else if yyct2689 == codecSelferValueTypeArray1234 { + yyl2689 := r.ReadArrayStart() + if yyl2689 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2689, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2690Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2690Slc + var yyhl2690 bool = l >= 0 + for yyj2690 := 0; ; yyj2690++ { + if yyhl2690 { + if yyj2690 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2690Slc = r.DecodeBytes(yys2690Slc, true, true) + yys2690 := string(yys2690Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2690 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + case "Protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys2690) + } // end switch yys2690 + } // end for yyj2690 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2694 int + var yyb2694 bool + var yyhl2694 bool = l >= 0 + yyj2694++ + if yyhl2694 { + yyb2694 = yyj2694 > l + } else { + yyb2694 = r.CheckBreak() + } + if yyb2694 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj2694++ + if yyhl2694 { + yyb2694 = yyj2694 > l + } else { + yyb2694 = r.CheckBreak() + } + if yyb2694 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj2694++ + if yyhl2694 { + yyb2694 = yyj2694 > l + } else { + yyb2694 = r.CheckBreak() + } + if yyb2694 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + for { + yyj2694++ + if yyhl2694 { + yyb2694 = yyj2694 > l + } else { + yyb2694 = r.CheckBreak() + } + if yyb2694 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2694-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2698 := z.EncBinary() + _ = yym2698 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2699 := !z.EncBinary() + yy2arr2699 := z.EncBasicHandle().StructToArray + var yyq2699 [4]bool + _, _, _ = yysep2699, yyq2699, yy2arr2699 + const yyr2699 bool = false + yyq2699[0] = x.Kind != "" + yyq2699[1] = x.APIVersion != "" + yyq2699[2] = true + var yynn2699 int + if yyr2699 || yy2arr2699 { + r.EncodeArrayStart(4) + } else { + yynn2699 = 1 + for _, b := range yyq2699 { + if b { + yynn2699++ + } + } + r.EncodeMapStart(yynn2699) + yynn2699 = 0 + } + if yyr2699 || yy2arr2699 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2699[0] { + yym2701 := z.EncBinary() + _ = yym2701 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2699[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2702 := z.EncBinary() + _ = yym2702 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2699 || yy2arr2699 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2699[1] { + yym2704 := z.EncBinary() + _ = yym2704 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2699[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2705 := z.EncBinary() + _ = yym2705 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2699 || yy2arr2699 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2699[2] { + yy2707 := &x.ListMeta + yym2708 := z.EncBinary() + _ = yym2708 + if false { + } else if z.HasExtensions() && z.EncExt(yy2707) { + } else { + z.EncFallback(yy2707) + } + } else { + r.EncodeNil() + } + } else { + if yyq2699[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2709 := &x.ListMeta + yym2710 := z.EncBinary() + _ = yym2710 + if false { + } else if z.HasExtensions() && z.EncExt(yy2709) { + } else { + z.EncFallback(yy2709) + } + } + } + if yyr2699 || yy2arr2699 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2712 := z.EncBinary() + _ = yym2712 + if false { + } else { + h.encSliceEndpoints(([]Endpoints)(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 { + yym2713 := z.EncBinary() + _ = yym2713 + if false { + } else { + h.encSliceEndpoints(([]Endpoints)(x.Items), e) + } + } + } + if yyr2699 || yy2arr2699 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2714 := z.DecBinary() + _ = yym2714 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2715 := r.ContainerType() + if yyct2715 == codecSelferValueTypeMap1234 { + yyl2715 := r.ReadMapStart() + if yyl2715 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2715, d) + } + } else if yyct2715 == codecSelferValueTypeArray1234 { + yyl2715 := r.ReadArrayStart() + if yyl2715 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2715, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2716Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2716Slc + var yyhl2716 bool = l >= 0 + for yyj2716 := 0; ; yyj2716++ { + if yyhl2716 { + if yyj2716 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2716Slc = r.DecodeBytes(yys2716Slc, true, true) + yys2716 := string(yys2716Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2716 { + 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 { + yyv2719 := &x.ListMeta + yym2720 := z.DecBinary() + _ = yym2720 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2719) { + } else { + z.DecFallback(yyv2719, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2721 := &x.Items + yym2722 := z.DecBinary() + _ = yym2722 + if false { + } else { + h.decSliceEndpoints((*[]Endpoints)(yyv2721), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2716) + } // end switch yys2716 + } // end for yyj2716 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2723 int + var yyb2723 bool + var yyhl2723 bool = l >= 0 + yyj2723++ + if yyhl2723 { + yyb2723 = yyj2723 > l + } else { + yyb2723 = r.CheckBreak() + } + if yyb2723 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2723++ + if yyhl2723 { + yyb2723 = yyj2723 > l + } else { + yyb2723 = r.CheckBreak() + } + if yyb2723 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2723++ + if yyhl2723 { + yyb2723 = yyj2723 > l + } else { + yyb2723 = r.CheckBreak() + } + if yyb2723 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2726 := &x.ListMeta + yym2727 := z.DecBinary() + _ = yym2727 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2726) { + } else { + z.DecFallback(yyv2726, false) + } + } + yyj2723++ + if yyhl2723 { + yyb2723 = yyj2723 > l + } else { + yyb2723 = r.CheckBreak() + } + if yyb2723 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2728 := &x.Items + yym2729 := z.DecBinary() + _ = yym2729 + if false { + } else { + h.decSliceEndpoints((*[]Endpoints)(yyv2728), d) + } + } + for { + yyj2723++ + if yyhl2723 { + yyb2723 = yyj2723 > l + } else { + yyb2723 = r.CheckBreak() + } + if yyb2723 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2723-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2730 := z.EncBinary() + _ = yym2730 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2731 := !z.EncBinary() + yy2arr2731 := z.EncBasicHandle().StructToArray + var yyq2731 [4]bool + _, _, _ = yysep2731, yyq2731, yy2arr2731 + const yyr2731 bool = false + yyq2731[0] = x.PodCIDR != "" + yyq2731[1] = x.ExternalID != "" + yyq2731[2] = x.ProviderID != "" + yyq2731[3] = x.Unschedulable != false + var yynn2731 int + if yyr2731 || yy2arr2731 { + r.EncodeArrayStart(4) + } else { + yynn2731 = 0 + for _, b := range yyq2731 { + if b { + yynn2731++ + } + } + r.EncodeMapStart(yynn2731) + yynn2731 = 0 + } + if yyr2731 || yy2arr2731 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2731[0] { + yym2733 := z.EncBinary() + _ = yym2733 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2731[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2734 := z.EncBinary() + _ = yym2734 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + } + } + } + if yyr2731 || yy2arr2731 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2731[1] { + yym2736 := z.EncBinary() + _ = yym2736 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2731[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("externalID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2737 := z.EncBinary() + _ = yym2737 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) + } + } + } + if yyr2731 || yy2arr2731 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2731[2] { + yym2739 := z.EncBinary() + _ = yym2739 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2731[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("providerID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2740 := z.EncBinary() + _ = yym2740 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) + } + } + } + if yyr2731 || yy2arr2731 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2731[3] { + yym2742 := z.EncBinary() + _ = yym2742 + if false { + } else { + r.EncodeBool(bool(x.Unschedulable)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2731[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2743 := z.EncBinary() + _ = yym2743 + if false { + } else { + r.EncodeBool(bool(x.Unschedulable)) + } + } + } + if yyr2731 || yy2arr2731 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2744 := z.DecBinary() + _ = yym2744 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2745 := r.ContainerType() + if yyct2745 == codecSelferValueTypeMap1234 { + yyl2745 := r.ReadMapStart() + if yyl2745 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2745, d) + } + } else if yyct2745 == codecSelferValueTypeArray1234 { + yyl2745 := r.ReadArrayStart() + if yyl2745 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2745, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2746Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2746Slc + var yyhl2746 bool = l >= 0 + for yyj2746 := 0; ; yyj2746++ { + if yyhl2746 { + if yyj2746 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2746Slc = r.DecodeBytes(yys2746Slc, true, true) + yys2746 := string(yys2746Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2746 { + case "podCIDR": + if r.TryDecodeAsNil() { + x.PodCIDR = "" + } else { + x.PodCIDR = string(r.DecodeString()) + } + case "externalID": + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = string(r.DecodeString()) + } + case "providerID": + if r.TryDecodeAsNil() { + x.ProviderID = "" + } else { + x.ProviderID = string(r.DecodeString()) + } + case "unschedulable": + if r.TryDecodeAsNil() { + x.Unschedulable = false + } else { + x.Unschedulable = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys2746) + } // end switch yys2746 + } // end for yyj2746 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2751 int + var yyb2751 bool + var yyhl2751 bool = l >= 0 + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodCIDR = "" + } else { + x.PodCIDR = string(r.DecodeString()) + } + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = string(r.DecodeString()) + } + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ProviderID = "" + } else { + x.ProviderID = string(r.DecodeString()) + } + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Unschedulable = false + } else { + x.Unschedulable = bool(r.DecodeBool()) + } + for { + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2751-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2756 := z.EncBinary() + _ = yym2756 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2757 := !z.EncBinary() + yy2arr2757 := z.EncBasicHandle().StructToArray + var yyq2757 [1]bool + _, _, _ = yysep2757, yyq2757, yy2arr2757 + const yyr2757 bool = false + var yynn2757 int + if yyr2757 || yy2arr2757 { + r.EncodeArrayStart(1) + } else { + yynn2757 = 1 + for _, b := range yyq2757 { + if b { + yynn2757++ + } + } + r.EncodeMapStart(yynn2757) + yynn2757 = 0 + } + if yyr2757 || yy2arr2757 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2759 := z.EncBinary() + _ = yym2759 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2760 := z.EncBinary() + _ = yym2760 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2757 || yy2arr2757 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2761 := z.DecBinary() + _ = yym2761 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2762 := r.ContainerType() + if yyct2762 == codecSelferValueTypeMap1234 { + yyl2762 := r.ReadMapStart() + if yyl2762 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2762, d) + } + } else if yyct2762 == codecSelferValueTypeArray1234 { + yyl2762 := r.ReadArrayStart() + if yyl2762 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2762, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2763Slc = r.DecodeBytes(yys2763Slc, true, true) + yys2763 := string(yys2763Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2763 { + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys2763) + } // end switch yys2763 + } // end for yyj2763 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2765 int + var yyb2765 bool + var yyhl2765 bool = l >= 0 + yyj2765++ + if yyhl2765 { + yyb2765 = yyj2765 > l + } else { + yyb2765 = r.CheckBreak() + } + if yyb2765 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + for { + yyj2765++ + if yyhl2765 { + yyb2765 = yyj2765 > l + } else { + yyb2765 = r.CheckBreak() + } + if yyb2765 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2765-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2767 := z.EncBinary() + _ = yym2767 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2768 := !z.EncBinary() + yy2arr2768 := z.EncBasicHandle().StructToArray + var yyq2768 [1]bool + _, _, _ = yysep2768, yyq2768, yy2arr2768 + const yyr2768 bool = false + yyq2768[0] = true + var yynn2768 int + if yyr2768 || yy2arr2768 { + r.EncodeArrayStart(1) + } else { + yynn2768 = 0 + for _, b := range yyq2768 { + if b { + yynn2768++ + } + } + r.EncodeMapStart(yynn2768) + yynn2768 = 0 + } + if yyr2768 || yy2arr2768 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2768[0] { + yy2770 := &x.KubeletEndpoint + yy2770.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2768[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2771 := &x.KubeletEndpoint + yy2771.CodecEncodeSelf(e) + } + } + if yyr2768 || yy2arr2768 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2772 := z.DecBinary() + _ = yym2772 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2773 := r.ContainerType() + if yyct2773 == codecSelferValueTypeMap1234 { + yyl2773 := r.ReadMapStart() + if yyl2773 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2773, d) + } + } else if yyct2773 == codecSelferValueTypeArray1234 { + yyl2773 := r.ReadArrayStart() + if yyl2773 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2773, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2774Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2774Slc + var yyhl2774 bool = l >= 0 + for yyj2774 := 0; ; yyj2774++ { + if yyhl2774 { + if yyj2774 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2774Slc = r.DecodeBytes(yys2774Slc, true, true) + yys2774 := string(yys2774Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2774 { + case "kubeletEndpoint": + if r.TryDecodeAsNil() { + x.KubeletEndpoint = DaemonEndpoint{} + } else { + yyv2775 := &x.KubeletEndpoint + yyv2775.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2774) + } // end switch yys2774 + } // end for yyj2774 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2776 int + var yyb2776 bool + var yyhl2776 bool = l >= 0 + yyj2776++ + if yyhl2776 { + yyb2776 = yyj2776 > l + } else { + yyb2776 = r.CheckBreak() + } + if yyb2776 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeletEndpoint = DaemonEndpoint{} + } else { + yyv2777 := &x.KubeletEndpoint + yyv2777.CodecDecodeSelf(d) + } + for { + yyj2776++ + if yyhl2776 { + yyb2776 = yyj2776 > l + } else { + yyb2776 = r.CheckBreak() + } + if yyb2776 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2776-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2778 := z.EncBinary() + _ = yym2778 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2779 := !z.EncBinary() + yy2arr2779 := z.EncBasicHandle().StructToArray + var yyq2779 [10]bool + _, _, _ = yysep2779, yyq2779, yy2arr2779 + const yyr2779 bool = false + var yynn2779 int + if yyr2779 || yy2arr2779 { + r.EncodeArrayStart(10) + } else { + yynn2779 = 10 + for _, b := range yyq2779 { + if b { + yynn2779++ + } + } + r.EncodeMapStart(yynn2779) + yynn2779 = 0 + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2781 := z.EncBinary() + _ = yym2781 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("machineID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2782 := z.EncBinary() + _ = yym2782 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2784 := z.EncBinary() + _ = yym2784 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2785 := z.EncBinary() + _ = yym2785 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2787 := z.EncBinary() + _ = yym2787 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("bootID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2788 := z.EncBinary() + _ = yym2788 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2790 := z.EncBinary() + _ = yym2790 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2791 := z.EncBinary() + _ = yym2791 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2793 := z.EncBinary() + _ = yym2793 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("osImage")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2794 := z.EncBinary() + _ = yym2794 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2796 := z.EncBinary() + _ = yym2796 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2797 := z.EncBinary() + _ = yym2797 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2799 := z.EncBinary() + _ = yym2799 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2800 := z.EncBinary() + _ = yym2800 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2802 := z.EncBinary() + _ = yym2802 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2803 := z.EncBinary() + _ = yym2803 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2805 := z.EncBinary() + _ = yym2805 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2806 := z.EncBinary() + _ = yym2806 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2808 := z.EncBinary() + _ = yym2808 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("architecture")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2809 := z.EncBinary() + _ = yym2809 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) + } + } + if yyr2779 || yy2arr2779 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2810 := z.DecBinary() + _ = yym2810 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2811 := r.ContainerType() + if yyct2811 == codecSelferValueTypeMap1234 { + yyl2811 := r.ReadMapStart() + if yyl2811 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2811, d) + } + } else if yyct2811 == codecSelferValueTypeArray1234 { + yyl2811 := r.ReadArrayStart() + if yyl2811 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2811, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2812Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2812Slc + var yyhl2812 bool = l >= 0 + for yyj2812 := 0; ; yyj2812++ { + if yyhl2812 { + if yyj2812 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2812Slc = r.DecodeBytes(yys2812Slc, true, true) + yys2812 := string(yys2812Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2812 { + case "machineID": + if r.TryDecodeAsNil() { + x.MachineID = "" + } else { + x.MachineID = string(r.DecodeString()) + } + case "systemUUID": + if r.TryDecodeAsNil() { + x.SystemUUID = "" + } else { + x.SystemUUID = string(r.DecodeString()) + } + case "bootID": + if r.TryDecodeAsNil() { + x.BootID = "" + } else { + x.BootID = string(r.DecodeString()) + } + case "kernelVersion": + if r.TryDecodeAsNil() { + x.KernelVersion = "" + } else { + x.KernelVersion = string(r.DecodeString()) + } + case "osImage": + if r.TryDecodeAsNil() { + x.OSImage = "" + } else { + x.OSImage = string(r.DecodeString()) + } + case "containerRuntimeVersion": + if r.TryDecodeAsNil() { + x.ContainerRuntimeVersion = "" + } else { + x.ContainerRuntimeVersion = string(r.DecodeString()) + } + case "kubeletVersion": + if r.TryDecodeAsNil() { + x.KubeletVersion = "" + } else { + x.KubeletVersion = string(r.DecodeString()) + } + case "kubeProxyVersion": + if r.TryDecodeAsNil() { + x.KubeProxyVersion = "" + } else { + x.KubeProxyVersion = string(r.DecodeString()) + } + case "operatingSystem": + if r.TryDecodeAsNil() { + x.OperatingSystem = "" + } else { + x.OperatingSystem = string(r.DecodeString()) + } + case "architecture": + if r.TryDecodeAsNil() { + x.Architecture = "" + } else { + x.Architecture = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys2812) + } // end switch yys2812 + } // end for yyj2812 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2823 int + var yyb2823 bool + var yyhl2823 bool = l >= 0 + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MachineID = "" + } else { + x.MachineID = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SystemUUID = "" + } else { + x.SystemUUID = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.BootID = "" + } else { + x.BootID = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KernelVersion = "" + } else { + x.KernelVersion = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OSImage = "" + } else { + x.OSImage = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerRuntimeVersion = "" + } else { + x.ContainerRuntimeVersion = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeletVersion = "" + } else { + x.KubeletVersion = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeProxyVersion = "" + } else { + x.KubeProxyVersion = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OperatingSystem = "" + } else { + x.OperatingSystem = string(r.DecodeString()) + } + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Architecture = "" + } else { + x.Architecture = string(r.DecodeString()) + } + for { + yyj2823++ + if yyhl2823 { + yyb2823 = yyj2823 > l + } else { + yyb2823 = r.CheckBreak() + } + if yyb2823 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2823-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2834 := z.EncBinary() + _ = yym2834 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2835 := !z.EncBinary() + yy2arr2835 := z.EncBasicHandle().StructToArray + var yyq2835 [10]bool + _, _, _ = yysep2835, yyq2835, yy2arr2835 + const yyr2835 bool = false + yyq2835[0] = len(x.Capacity) != 0 + yyq2835[1] = len(x.Allocatable) != 0 + yyq2835[2] = x.Phase != "" + yyq2835[3] = len(x.Conditions) != 0 + yyq2835[4] = len(x.Addresses) != 0 + yyq2835[5] = true + yyq2835[6] = true + yyq2835[7] = len(x.Images) != 0 + yyq2835[8] = len(x.VolumesInUse) != 0 + yyq2835[9] = len(x.VolumesAttached) != 0 + var yynn2835 int + if yyr2835 || yy2arr2835 { + r.EncodeArrayStart(10) + } else { + yynn2835 = 0 + for _, b := range yyq2835 { + if b { + yynn2835++ + } + } + r.EncodeMapStart(yynn2835) + yynn2835 = 0 + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[0] { + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[1] { + if x.Allocatable == nil { + r.EncodeNil() + } else { + x.Allocatable.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("allocatable")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Allocatable == nil { + r.EncodeNil() + } else { + x.Allocatable.CodecEncodeSelf(e) + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[2] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2835[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[3] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2840 := z.EncBinary() + _ = yym2840 + if false { + } else { + h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2841 := z.EncBinary() + _ = yym2841 + if false { + } else { + h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) + } + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[4] { + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2843 := z.EncBinary() + _ = yym2843 + if false { + } else { + h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("addresses")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2844 := z.EncBinary() + _ = yym2844 + if false { + } else { + h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) + } + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[5] { + yy2846 := &x.DaemonEndpoints + yy2846.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2835[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2847 := &x.DaemonEndpoints + yy2847.CodecEncodeSelf(e) + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[6] { + yy2849 := &x.NodeInfo + yy2849.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2835[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2850 := &x.NodeInfo + yy2850.CodecEncodeSelf(e) + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[7] { + if x.Images == nil { + r.EncodeNil() + } else { + yym2852 := z.EncBinary() + _ = yym2852 + if false { + } else { + h.encSliceContainerImage(([]ContainerImage)(x.Images), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("images")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Images == nil { + r.EncodeNil() + } else { + yym2853 := z.EncBinary() + _ = yym2853 + if false { + } else { + h.encSliceContainerImage(([]ContainerImage)(x.Images), e) + } + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[8] { + if x.VolumesInUse == nil { + r.EncodeNil() + } else { + yym2855 := z.EncBinary() + _ = yym2855 + if false { + } else { + h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VolumesInUse == nil { + r.EncodeNil() + } else { + yym2856 := z.EncBinary() + _ = yym2856 + if false { + } else { + h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) + } + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2835[9] { + if x.VolumesAttached == nil { + r.EncodeNil() + } else { + yym2858 := z.EncBinary() + _ = yym2858 + if false { + } else { + h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2835[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VolumesAttached == nil { + r.EncodeNil() + } else { + yym2859 := z.EncBinary() + _ = yym2859 + if false { + } else { + h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) + } + } + } + } + if yyr2835 || yy2arr2835 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2860 := z.DecBinary() + _ = yym2860 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2861 := r.ContainerType() + if yyct2861 == codecSelferValueTypeMap1234 { + yyl2861 := r.ReadMapStart() + if yyl2861 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2861, d) + } + } else if yyct2861 == codecSelferValueTypeArray1234 { + yyl2861 := r.ReadArrayStart() + if yyl2861 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2861, 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 yys2862Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2862Slc + var yyhl2862 bool = l >= 0 + for yyj2862 := 0; ; yyj2862++ { + if yyhl2862 { + if yyj2862 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2862Slc = r.DecodeBytes(yys2862Slc, true, true) + yys2862 := string(yys2862Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2862 { + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv2863 := &x.Capacity + yyv2863.CodecDecodeSelf(d) + } + case "allocatable": + if r.TryDecodeAsNil() { + x.Allocatable = nil + } else { + yyv2864 := &x.Allocatable + yyv2864.CodecDecodeSelf(d) + } + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NodePhase(r.DecodeString()) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2866 := &x.Conditions + yym2867 := z.DecBinary() + _ = yym2867 + if false { + } else { + h.decSliceNodeCondition((*[]NodeCondition)(yyv2866), d) + } + } + case "addresses": + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2868 := &x.Addresses + yym2869 := z.DecBinary() + _ = yym2869 + if false { + } else { + h.decSliceNodeAddress((*[]NodeAddress)(yyv2868), d) + } + } + case "daemonEndpoints": + if r.TryDecodeAsNil() { + x.DaemonEndpoints = NodeDaemonEndpoints{} + } else { + yyv2870 := &x.DaemonEndpoints + yyv2870.CodecDecodeSelf(d) + } + case "nodeInfo": + if r.TryDecodeAsNil() { + x.NodeInfo = NodeSystemInfo{} + } else { + yyv2871 := &x.NodeInfo + yyv2871.CodecDecodeSelf(d) + } + case "images": + if r.TryDecodeAsNil() { + x.Images = nil + } else { + yyv2872 := &x.Images + yym2873 := z.DecBinary() + _ = yym2873 + if false { + } else { + h.decSliceContainerImage((*[]ContainerImage)(yyv2872), d) + } + } + case "volumesInUse": + if r.TryDecodeAsNil() { + x.VolumesInUse = nil + } else { + yyv2874 := &x.VolumesInUse + yym2875 := z.DecBinary() + _ = yym2875 + if false { + } else { + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2874), d) + } + } + case "volumesAttached": + if r.TryDecodeAsNil() { + x.VolumesAttached = nil + } else { + yyv2876 := &x.VolumesAttached + yym2877 := z.DecBinary() + _ = yym2877 + if false { + } else { + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2876), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2862) + } // end switch yys2862 + } // end for yyj2862 + 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 yyj2878 int + var yyb2878 bool + var yyhl2878 bool = l >= 0 + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv2879 := &x.Capacity + yyv2879.CodecDecodeSelf(d) + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Allocatable = nil + } else { + yyv2880 := &x.Allocatable + yyv2880.CodecDecodeSelf(d) + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NodePhase(r.DecodeString()) + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2882 := &x.Conditions + yym2883 := z.DecBinary() + _ = yym2883 + if false { + } else { + h.decSliceNodeCondition((*[]NodeCondition)(yyv2882), d) + } + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2884 := &x.Addresses + yym2885 := z.DecBinary() + _ = yym2885 + if false { + } else { + h.decSliceNodeAddress((*[]NodeAddress)(yyv2884), d) + } + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DaemonEndpoints = NodeDaemonEndpoints{} + } else { + yyv2886 := &x.DaemonEndpoints + yyv2886.CodecDecodeSelf(d) + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeInfo = NodeSystemInfo{} + } else { + yyv2887 := &x.NodeInfo + yyv2887.CodecDecodeSelf(d) + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Images = nil + } else { + yyv2888 := &x.Images + yym2889 := z.DecBinary() + _ = yym2889 + if false { + } else { + h.decSliceContainerImage((*[]ContainerImage)(yyv2888), d) + } + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumesInUse = nil + } else { + yyv2890 := &x.VolumesInUse + yym2891 := z.DecBinary() + _ = yym2891 + if false { + } else { + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2890), d) + } + } + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumesAttached = nil + } else { + yyv2892 := &x.VolumesAttached + yym2893 := z.DecBinary() + _ = yym2893 + if false { + } else { + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2892), d) + } + } + for { + yyj2878++ + if yyhl2878 { + yyb2878 = yyj2878 > l + } else { + yyb2878 = r.CheckBreak() + } + if yyb2878 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2878-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2894 := z.EncBinary() + _ = yym2894 + 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 + yym2895 := z.DecBinary() + _ = yym2895 + 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 { + yym2896 := z.EncBinary() + _ = yym2896 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2897 := !z.EncBinary() + yy2arr2897 := z.EncBasicHandle().StructToArray + var yyq2897 [2]bool + _, _, _ = yysep2897, yyq2897, yy2arr2897 + const yyr2897 bool = false + var yynn2897 int + if yyr2897 || yy2arr2897 { + r.EncodeArrayStart(2) + } else { + yynn2897 = 2 + for _, b := range yyq2897 { + if b { + yynn2897++ + } + } + r.EncodeMapStart(yynn2897) + yynn2897 = 0 + } + if yyr2897 || yy2arr2897 { + 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 yyr2897 || yy2arr2897 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2900 := z.EncBinary() + _ = yym2900 + 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) + yym2901 := z.EncBinary() + _ = yym2901 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) + } + } + if yyr2897 || yy2arr2897 { + 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 + yym2902 := z.DecBinary() + _ = yym2902 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2903 := r.ContainerType() + if yyct2903 == codecSelferValueTypeMap1234 { + yyl2903 := r.ReadMapStart() + if yyl2903 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2903, d) + } + } else if yyct2903 == codecSelferValueTypeArray1234 { + yyl2903 := r.ReadArrayStart() + if yyl2903 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2903, 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 yys2904Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2904Slc + var yyhl2904 bool = l >= 0 + for yyj2904 := 0; ; yyj2904++ { + if yyhl2904 { + if yyj2904 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2904Slc = r.DecodeBytes(yys2904Slc, true, true) + yys2904 := string(yys2904Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2904 { + 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, yys2904) + } // end switch yys2904 + } // end for yyj2904 + 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 yyj2907 int + var yyb2907 bool + var yyhl2907 bool = l >= 0 + yyj2907++ + if yyhl2907 { + yyb2907 = yyj2907 > l + } else { + yyb2907 = r.CheckBreak() + } + if yyb2907 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = UniqueVolumeName(r.DecodeString()) + } + yyj2907++ + if yyhl2907 { + yyb2907 = yyj2907 > l + } else { + yyb2907 = r.CheckBreak() + } + if yyb2907 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DevicePath = "" + } else { + x.DevicePath = string(r.DecodeString()) + } + for { + yyj2907++ + if yyhl2907 { + yyb2907 = yyj2907 > l + } else { + yyb2907 = r.CheckBreak() + } + if yyb2907 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2907-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 { + yym2910 := z.EncBinary() + _ = yym2910 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2911 := !z.EncBinary() + yy2arr2911 := z.EncBasicHandle().StructToArray + var yyq2911 [1]bool + _, _, _ = yysep2911, yyq2911, yy2arr2911 + const yyr2911 bool = false + yyq2911[0] = len(x.PreferAvoidPods) != 0 + var yynn2911 int + if yyr2911 || yy2arr2911 { + r.EncodeArrayStart(1) + } else { + yynn2911 = 0 + for _, b := range yyq2911 { + if b { + yynn2911++ + } + } + r.EncodeMapStart(yynn2911) + yynn2911 = 0 + } + if yyr2911 || yy2arr2911 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2911[0] { + if x.PreferAvoidPods == nil { + r.EncodeNil() + } else { + yym2913 := z.EncBinary() + _ = yym2913 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2911[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PreferAvoidPods == nil { + r.EncodeNil() + } else { + yym2914 := z.EncBinary() + _ = yym2914 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } + } + } + } + if yyr2911 || yy2arr2911 { + 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 + yym2915 := z.DecBinary() + _ = yym2915 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2916 := r.ContainerType() + if yyct2916 == codecSelferValueTypeMap1234 { + yyl2916 := r.ReadMapStart() + if yyl2916 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2916, d) + } + } else if yyct2916 == codecSelferValueTypeArray1234 { + yyl2916 := r.ReadArrayStart() + if yyl2916 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2916, 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 yys2917Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2917Slc + var yyhl2917 bool = l >= 0 + for yyj2917 := 0; ; yyj2917++ { + if yyhl2917 { + if yyj2917 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2917Slc = r.DecodeBytes(yys2917Slc, true, true) + yys2917 := string(yys2917Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2917 { + case "preferAvoidPods": + if r.TryDecodeAsNil() { + x.PreferAvoidPods = nil + } else { + yyv2918 := &x.PreferAvoidPods + yym2919 := z.DecBinary() + _ = yym2919 + if false { + } else { + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2918), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2917) + } // end switch yys2917 + } // end for yyj2917 + 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 yyj2920 int + var yyb2920 bool + var yyhl2920 bool = l >= 0 + yyj2920++ + if yyhl2920 { + yyb2920 = yyj2920 > l + } else { + yyb2920 = r.CheckBreak() + } + if yyb2920 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferAvoidPods = nil + } else { + yyv2921 := &x.PreferAvoidPods + yym2922 := z.DecBinary() + _ = yym2922 + if false { + } else { + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2921), d) + } + } + for { + yyj2920++ + if yyhl2920 { + yyb2920 = yyj2920 > l + } else { + yyb2920 = r.CheckBreak() + } + if yyb2920 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2920-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 { + yym2923 := z.EncBinary() + _ = yym2923 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2924 := !z.EncBinary() + yy2arr2924 := z.EncBasicHandle().StructToArray + var yyq2924 [4]bool + _, _, _ = yysep2924, yyq2924, yy2arr2924 + const yyr2924 bool = false + yyq2924[1] = true + yyq2924[2] = x.Reason != "" + yyq2924[3] = x.Message != "" + var yynn2924 int + if yyr2924 || yy2arr2924 { + r.EncodeArrayStart(4) + } else { + yynn2924 = 1 + for _, b := range yyq2924 { + if b { + yynn2924++ + } + } + r.EncodeMapStart(yynn2924) + yynn2924 = 0 + } + if yyr2924 || yy2arr2924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy2926 := &x.PodSignature + yy2926.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podSignature")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2927 := &x.PodSignature + yy2927.CodecEncodeSelf(e) + } + if yyr2924 || yy2arr2924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2924[1] { + yy2929 := &x.EvictionTime + yym2930 := z.EncBinary() + _ = yym2930 + if false { + } else if z.HasExtensions() && z.EncExt(yy2929) { + } else if yym2930 { + z.EncBinaryMarshal(yy2929) + } else if !yym2930 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2929) + } else { + z.EncFallback(yy2929) + } + } else { + r.EncodeNil() + } + } else { + if yyq2924[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2931 := &x.EvictionTime + yym2932 := z.EncBinary() + _ = yym2932 + if false { + } else if z.HasExtensions() && z.EncExt(yy2931) { + } else if yym2932 { + z.EncBinaryMarshal(yy2931) + } else if !yym2932 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2931) + } else { + z.EncFallback(yy2931) + } + } + } + if yyr2924 || yy2arr2924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2924[2] { + yym2934 := z.EncBinary() + _ = yym2934 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2924[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2935 := z.EncBinary() + _ = yym2935 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2924 || yy2arr2924 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2924[3] { + yym2937 := z.EncBinary() + _ = yym2937 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2924[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2938 := z.EncBinary() + _ = yym2938 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2924 || yy2arr2924 { + 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 + yym2939 := z.DecBinary() + _ = yym2939 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2940 := r.ContainerType() + if yyct2940 == codecSelferValueTypeMap1234 { + yyl2940 := r.ReadMapStart() + if yyl2940 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2940, d) + } + } else if yyct2940 == codecSelferValueTypeArray1234 { + yyl2940 := r.ReadArrayStart() + if yyl2940 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2940, 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 yys2941Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2941Slc + var yyhl2941 bool = l >= 0 + for yyj2941 := 0; ; yyj2941++ { + if yyhl2941 { + if yyj2941 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2941Slc = r.DecodeBytes(yys2941Slc, true, true) + yys2941 := string(yys2941Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2941 { + case "podSignature": + if r.TryDecodeAsNil() { + x.PodSignature = PodSignature{} + } else { + yyv2942 := &x.PodSignature + yyv2942.CodecDecodeSelf(d) + } + case "evictionTime": + if r.TryDecodeAsNil() { + x.EvictionTime = pkg2_unversioned.Time{} + } else { + yyv2943 := &x.EvictionTime + yym2944 := z.DecBinary() + _ = yym2944 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2943) { + } else if yym2944 { + z.DecBinaryUnmarshal(yyv2943) + } else if !yym2944 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2943) + } else { + z.DecFallback(yyv2943, 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, yys2941) + } // end switch yys2941 + } // end for yyj2941 + 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 yyj2947 int + var yyb2947 bool + var yyhl2947 bool = l >= 0 + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l + } else { + yyb2947 = r.CheckBreak() + } + if yyb2947 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodSignature = PodSignature{} + } else { + yyv2948 := &x.PodSignature + yyv2948.CodecDecodeSelf(d) + } + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l + } else { + yyb2947 = r.CheckBreak() + } + if yyb2947 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionTime = pkg2_unversioned.Time{} + } else { + yyv2949 := &x.EvictionTime + yym2950 := z.DecBinary() + _ = yym2950 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2949) { + } else if yym2950 { + z.DecBinaryUnmarshal(yyv2949) + } else if !yym2950 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2949) + } else { + z.DecFallback(yyv2949, false) + } + } + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l + } else { + yyb2947 = r.CheckBreak() + } + if yyb2947 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l + } else { + yyb2947 = r.CheckBreak() + } + if yyb2947 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l + } else { + yyb2947 = r.CheckBreak() + } + if yyb2947 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2947-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 { + yym2953 := z.EncBinary() + _ = yym2953 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2954 := !z.EncBinary() + yy2arr2954 := z.EncBasicHandle().StructToArray + var yyq2954 [1]bool + _, _, _ = yysep2954, yyq2954, yy2arr2954 + const yyr2954 bool = false + yyq2954[0] = x.PodController != nil + var yynn2954 int + if yyr2954 || yy2arr2954 { + r.EncodeArrayStart(1) + } else { + yynn2954 = 0 + for _, b := range yyq2954 { + if b { + yynn2954++ + } + } + r.EncodeMapStart(yynn2954) + yynn2954 = 0 + } + if yyr2954 || yy2arr2954 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2954[0] { + if x.PodController == nil { + r.EncodeNil() + } else { + x.PodController.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2954[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 yyr2954 || yy2arr2954 { + 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 + yym2956 := z.DecBinary() + _ = yym2956 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2957 := r.ContainerType() + if yyct2957 == codecSelferValueTypeMap1234 { + yyl2957 := r.ReadMapStart() + if yyl2957 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2957, d) + } + } else if yyct2957 == codecSelferValueTypeArray1234 { + yyl2957 := r.ReadArrayStart() + if yyl2957 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2957, 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 yys2958Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2958Slc + var yyhl2958 bool = l >= 0 + for yyj2958 := 0; ; yyj2958++ { + if yyhl2958 { + if yyj2958 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2958Slc = r.DecodeBytes(yys2958Slc, true, true) + yys2958 := string(yys2958Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2958 { + 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, yys2958) + } // end switch yys2958 + } // end for yyj2958 + 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 yyj2960 int + var yyb2960 bool + var yyhl2960 bool = l >= 0 + yyj2960++ + if yyhl2960 { + yyb2960 = yyj2960 > l + } else { + yyb2960 = r.CheckBreak() + } + if yyb2960 { + 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 { + yyj2960++ + if yyhl2960 { + yyb2960 = yyj2960 > l + } else { + yyb2960 = r.CheckBreak() + } + if yyb2960 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2960-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 { + yym2962 := z.EncBinary() + _ = yym2962 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2963 := !z.EncBinary() + yy2arr2963 := z.EncBasicHandle().StructToArray + var yyq2963 [2]bool + _, _, _ = yysep2963, yyq2963, yy2arr2963 + const yyr2963 bool = false + yyq2963[1] = x.SizeBytes != 0 + var yynn2963 int + if yyr2963 || yy2arr2963 { + r.EncodeArrayStart(2) + } else { + yynn2963 = 1 + for _, b := range yyq2963 { + if b { + yynn2963++ + } + } + r.EncodeMapStart(yynn2963) + yynn2963 = 0 + } + if yyr2963 || yy2arr2963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Names == nil { + r.EncodeNil() + } else { + yym2965 := z.EncBinary() + _ = yym2965 + 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 { + yym2966 := z.EncBinary() + _ = yym2966 + if false { + } else { + z.F.EncSliceStringV(x.Names, false, e) + } + } + } + if yyr2963 || yy2arr2963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2963[1] { + yym2968 := z.EncBinary() + _ = yym2968 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2963[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2969 := z.EncBinary() + _ = yym2969 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } + } + if yyr2963 || yy2arr2963 { + 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 + yym2970 := z.DecBinary() + _ = yym2970 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2971 := r.ContainerType() + if yyct2971 == codecSelferValueTypeMap1234 { + yyl2971 := r.ReadMapStart() + if yyl2971 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2971, d) + } + } else if yyct2971 == codecSelferValueTypeArray1234 { + yyl2971 := r.ReadArrayStart() + if yyl2971 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2971, 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 yys2972Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2972Slc + var yyhl2972 bool = l >= 0 + for yyj2972 := 0; ; yyj2972++ { + if yyhl2972 { + if yyj2972 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2972Slc = r.DecodeBytes(yys2972Slc, true, true) + yys2972 := string(yys2972Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2972 { + case "names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv2973 := &x.Names + yym2974 := z.DecBinary() + _ = yym2974 + if false { + } else { + z.F.DecSliceStringX(yyv2973, false, d) + } + } + case "sizeBytes": + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys2972) + } // end switch yys2972 + } // end for yyj2972 + 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 yyj2976 int + var yyb2976 bool + var yyhl2976 bool = l >= 0 + yyj2976++ + if yyhl2976 { + yyb2976 = yyj2976 > l + } else { + yyb2976 = r.CheckBreak() + } + if yyb2976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv2977 := &x.Names + yym2978 := z.DecBinary() + _ = yym2978 + if false { + } else { + z.F.DecSliceStringX(yyv2977, false, d) + } + } + yyj2976++ + if yyhl2976 { + yyb2976 = yyj2976 > l + } else { + yyb2976 = r.CheckBreak() + } + if yyb2976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + for { + yyj2976++ + if yyhl2976 { + yyb2976 = yyj2976 > l + } else { + yyb2976 = r.CheckBreak() + } + if yyb2976 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2976-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2980 := z.EncBinary() + _ = yym2980 + 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 + yym2981 := z.DecBinary() + _ = yym2981 + 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 + yym2982 := z.EncBinary() + _ = yym2982 + 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 + yym2983 := z.DecBinary() + _ = yym2983 + 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 { + yym2984 := z.EncBinary() + _ = yym2984 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2985 := !z.EncBinary() + yy2arr2985 := z.EncBasicHandle().StructToArray + var yyq2985 [6]bool + _, _, _ = yysep2985, yyq2985, yy2arr2985 + const yyr2985 bool = false + yyq2985[2] = true + yyq2985[3] = true + yyq2985[4] = x.Reason != "" + yyq2985[5] = x.Message != "" + var yynn2985 int + if yyr2985 || yy2arr2985 { + r.EncodeArrayStart(6) + } else { + yynn2985 = 2 + for _, b := range yyq2985 { + if b { + yynn2985++ + } + } + r.EncodeMapStart(yynn2985) + yynn2985 = 0 + } + if yyr2985 || yy2arr2985 { + 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 yyr2985 || yy2arr2985 { + 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 yyr2985 || yy2arr2985 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2985[2] { + yy2989 := &x.LastHeartbeatTime + yym2990 := z.EncBinary() + _ = yym2990 + if false { + } else if z.HasExtensions() && z.EncExt(yy2989) { + } else if yym2990 { + z.EncBinaryMarshal(yy2989) + } else if !yym2990 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2989) + } else { + z.EncFallback(yy2989) + } + } else { + r.EncodeNil() + } + } else { + if yyq2985[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2991 := &x.LastHeartbeatTime + yym2992 := z.EncBinary() + _ = yym2992 + if false { + } else if z.HasExtensions() && z.EncExt(yy2991) { + } else if yym2992 { + z.EncBinaryMarshal(yy2991) + } else if !yym2992 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2991) + } else { + z.EncFallback(yy2991) + } + } + } + if yyr2985 || yy2arr2985 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2985[3] { + yy2994 := &x.LastTransitionTime + yym2995 := z.EncBinary() + _ = yym2995 + if false { + } else if z.HasExtensions() && z.EncExt(yy2994) { + } else if yym2995 { + z.EncBinaryMarshal(yy2994) + } else if !yym2995 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2994) + } else { + z.EncFallback(yy2994) + } + } else { + r.EncodeNil() + } + } else { + if yyq2985[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2996 := &x.LastTransitionTime + yym2997 := z.EncBinary() + _ = yym2997 + if false { + } else if z.HasExtensions() && z.EncExt(yy2996) { + } else if yym2997 { + z.EncBinaryMarshal(yy2996) + } else if !yym2997 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2996) + } else { + z.EncFallback(yy2996) + } + } + } + if yyr2985 || yy2arr2985 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2985[4] { + yym2999 := z.EncBinary() + _ = yym2999 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2985[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3000 := z.EncBinary() + _ = yym3000 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2985 || yy2arr2985 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2985[5] { + yym3002 := z.EncBinary() + _ = yym3002 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2985[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3003 := z.EncBinary() + _ = yym3003 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2985 || yy2arr2985 { + 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 + yym3004 := z.DecBinary() + _ = yym3004 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3005 := r.ContainerType() + if yyct3005 == codecSelferValueTypeMap1234 { + yyl3005 := r.ReadMapStart() + if yyl3005 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3005, d) + } + } else if yyct3005 == codecSelferValueTypeArray1234 { + yyl3005 := r.ReadArrayStart() + if yyl3005 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3005, 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 yys3006Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3006Slc + var yyhl3006 bool = l >= 0 + for yyj3006 := 0; ; yyj3006++ { + if yyhl3006 { + if yyj3006 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3006Slc = r.DecodeBytes(yys3006Slc, true, true) + yys3006 := string(yys3006Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3006 { + 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 { + yyv3009 := &x.LastHeartbeatTime + yym3010 := z.DecBinary() + _ = yym3010 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3009) { + } else if yym3010 { + z.DecBinaryUnmarshal(yyv3009) + } else if !yym3010 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3009) + } else { + z.DecFallback(yyv3009, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv3011 := &x.LastTransitionTime + yym3012 := z.DecBinary() + _ = yym3012 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3011) { + } else if yym3012 { + z.DecBinaryUnmarshal(yyv3011) + } else if !yym3012 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3011) + } else { + z.DecFallback(yyv3011, 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, yys3006) + } // end switch yys3006 + } // end for yyj3006 + 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 yyj3015 int + var yyb3015 bool + var yyhl3015 bool = l >= 0 + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeConditionType(r.DecodeString()) + } + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + 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) + } + } + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + 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) + } + } + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l + } else { + yyb3015 = r.CheckBreak() + } + if yyb3015 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3015-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3024 := z.EncBinary() + _ = yym3024 + 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 + yym3025 := z.DecBinary() + _ = yym3025 + 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 { + yym3026 := z.EncBinary() + _ = yym3026 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3027 := !z.EncBinary() + yy2arr3027 := z.EncBasicHandle().StructToArray + var yyq3027 [2]bool + _, _, _ = yysep3027, yyq3027, yy2arr3027 + const yyr3027 bool = false + var yynn3027 int + if yyr3027 || yy2arr3027 { + r.EncodeArrayStart(2) + } else { + yynn3027 = 2 + for _, b := range yyq3027 { + if b { + yynn3027++ + } + } + r.EncodeMapStart(yynn3027) + yynn3027 = 0 + } + if yyr3027 || yy2arr3027 { + 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 yyr3027 || yy2arr3027 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3030 := z.EncBinary() + _ = yym3030 + 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) + yym3031 := z.EncBinary() + _ = yym3031 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } + if yyr3027 || yy2arr3027 { + 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 + yym3032 := z.DecBinary() + _ = yym3032 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3033 := r.ContainerType() + if yyct3033 == codecSelferValueTypeMap1234 { + yyl3033 := r.ReadMapStart() + if yyl3033 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3033, d) + } + } else if yyct3033 == codecSelferValueTypeArray1234 { + yyl3033 := r.ReadArrayStart() + if yyl3033 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3033, 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 yys3034Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3034Slc + var yyhl3034 bool = l >= 0 + for yyj3034 := 0; ; yyj3034++ { + if yyhl3034 { + if yyj3034 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3034Slc = r.DecodeBytes(yys3034Slc, true, true) + yys3034 := string(yys3034Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3034 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeAddressType(r.DecodeString()) + } + case "address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3034) + } // end switch yys3034 + } // end for yyj3034 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3037 int + var yyb3037 bool + var yyhl3037 bool = l >= 0 + yyj3037++ + if yyhl3037 { + yyb3037 = yyj3037 > l + } else { + yyb3037 = r.CheckBreak() + } + if yyb3037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeAddressType(r.DecodeString()) + } + yyj3037++ + if yyhl3037 { + yyb3037 = yyj3037 > l + } else { + yyb3037 = r.CheckBreak() + } + if yyb3037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + for { + yyj3037++ + if yyhl3037 { + yyb3037 = yyj3037 > l + } else { + yyb3037 = r.CheckBreak() + } + if yyb3037 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3037-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3040 := z.EncBinary() + _ = yym3040 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3041 := !z.EncBinary() + yy2arr3041 := z.EncBasicHandle().StructToArray + var yyq3041 [1]bool + _, _, _ = yysep3041, yyq3041, yy2arr3041 + const yyr3041 bool = false + yyq3041[0] = len(x.Capacity) != 0 + var yynn3041 int + if yyr3041 || yy2arr3041 { + r.EncodeArrayStart(1) + } else { + yynn3041 = 0 + for _, b := range yyq3041 { + if b { + yynn3041++ + } + } + r.EncodeMapStart(yynn3041) + yynn3041 = 0 + } + if yyr3041 || yy2arr3041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3041[0] { + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3041[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + } + if yyr3041 || yy2arr3041 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3043 := z.DecBinary() + _ = yym3043 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3044 := r.ContainerType() + if yyct3044 == codecSelferValueTypeMap1234 { + yyl3044 := r.ReadMapStart() + if yyl3044 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3044, d) + } + } else if yyct3044 == codecSelferValueTypeArray1234 { + yyl3044 := r.ReadArrayStart() + if yyl3044 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3044, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3045Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3045Slc + var yyhl3045 bool = l >= 0 + for yyj3045 := 0; ; yyj3045++ { + if yyhl3045 { + if yyj3045 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3045Slc = r.DecodeBytes(yys3045Slc, true, true) + yys3045 := string(yys3045Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3045 { + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv3046 := &x.Capacity + yyv3046.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3045) + } // end switch yys3045 + } // end for yyj3045 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3047 int + var yyb3047 bool + var yyhl3047 bool = l >= 0 + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l + } else { + yyb3047 = r.CheckBreak() + } + if yyb3047 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv3048 := &x.Capacity + yyv3048.CodecDecodeSelf(d) + } + for { + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l + } else { + yyb3047 = r.CheckBreak() + } + if yyb3047 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3047-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3049 := z.EncBinary() + _ = yym3049 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3050 := z.DecBinary() + _ = yym3050 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3051 := z.EncBinary() + _ = yym3051 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + h.encResourceList((ResourceList)(x), e) + } + } +} + +func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3052 := z.DecBinary() + _ = yym3052 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decResourceList((*ResourceList)(x), d) + } +} + +func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3053 := z.EncBinary() + _ = yym3053 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3054 := !z.EncBinary() + yy2arr3054 := z.EncBasicHandle().StructToArray + var yyq3054 [5]bool + _, _, _ = yysep3054, yyq3054, yy2arr3054 + const yyr3054 bool = false + yyq3054[0] = x.Kind != "" + yyq3054[1] = x.APIVersion != "" + yyq3054[2] = true + yyq3054[3] = true + yyq3054[4] = true + var yynn3054 int + if yyr3054 || yy2arr3054 { + r.EncodeArrayStart(5) + } else { + yynn3054 = 0 + for _, b := range yyq3054 { + if b { + yynn3054++ + } + } + r.EncodeMapStart(yynn3054) + yynn3054 = 0 + } + if yyr3054 || yy2arr3054 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3054[0] { + yym3056 := z.EncBinary() + _ = yym3056 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3054[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3057 := z.EncBinary() + _ = yym3057 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3054 || yy2arr3054 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3054[1] { + yym3059 := z.EncBinary() + _ = yym3059 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3054[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3060 := z.EncBinary() + _ = yym3060 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3054 || yy2arr3054 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3054[2] { + yy3062 := &x.ObjectMeta + yy3062.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3054[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3063 := &x.ObjectMeta + yy3063.CodecEncodeSelf(e) + } + } + if yyr3054 || yy2arr3054 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3054[3] { + yy3065 := &x.Spec + yy3065.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3054[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3066 := &x.Spec + yy3066.CodecEncodeSelf(e) + } + } + if yyr3054 || yy2arr3054 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3054[4] { + yy3068 := &x.Status + yy3068.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3054[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3069 := &x.Status + yy3069.CodecEncodeSelf(e) + } + } + if yyr3054 || yy2arr3054 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3070 := z.DecBinary() + _ = yym3070 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3071 := r.ContainerType() + if yyct3071 == codecSelferValueTypeMap1234 { + yyl3071 := r.ReadMapStart() + if yyl3071 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3071, d) + } + } else if yyct3071 == codecSelferValueTypeArray1234 { + yyl3071 := r.ReadArrayStart() + if yyl3071 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3071, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3072Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3072Slc + var yyhl3072 bool = l >= 0 + for yyj3072 := 0; ; yyj3072++ { + if yyhl3072 { + if yyj3072 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3072Slc = r.DecodeBytes(yys3072Slc, true, true) + yys3072 := string(yys3072Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3072 { + 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 { + yyv3075 := &x.ObjectMeta + yyv3075.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NodeSpec{} + } else { + yyv3076 := &x.Spec + yyv3076.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = NodeStatus{} + } else { + yyv3077 := &x.Status + yyv3077.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3072) + } // end switch yys3072 + } // end for yyj3072 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3078 int + var yyb3078 bool + var yyhl3078 bool = l >= 0 + yyj3078++ + if yyhl3078 { + yyb3078 = yyj3078 > l + } else { + yyb3078 = r.CheckBreak() + } + if yyb3078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3078++ + if yyhl3078 { + yyb3078 = yyj3078 > l + } else { + yyb3078 = r.CheckBreak() + } + if yyb3078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3078++ + if yyhl3078 { + yyb3078 = yyj3078 > l + } else { + yyb3078 = r.CheckBreak() + } + if yyb3078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3081 := &x.ObjectMeta + yyv3081.CodecDecodeSelf(d) + } + yyj3078++ + if yyhl3078 { + yyb3078 = yyj3078 > l + } else { + yyb3078 = r.CheckBreak() + } + if yyb3078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = NodeSpec{} + } else { + yyv3082 := &x.Spec + yyv3082.CodecDecodeSelf(d) + } + yyj3078++ + if yyhl3078 { + yyb3078 = yyj3078 > l + } else { + yyb3078 = r.CheckBreak() + } + if yyb3078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = NodeStatus{} + } else { + yyv3083 := &x.Status + yyv3083.CodecDecodeSelf(d) + } + for { + yyj3078++ + if yyhl3078 { + yyb3078 = yyj3078 > l + } else { + yyb3078 = r.CheckBreak() + } + if yyb3078 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3078-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3084 := z.EncBinary() + _ = yym3084 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3085 := !z.EncBinary() + yy2arr3085 := z.EncBasicHandle().StructToArray + var yyq3085 [4]bool + _, _, _ = yysep3085, yyq3085, yy2arr3085 + const yyr3085 bool = false + yyq3085[0] = x.Kind != "" + yyq3085[1] = x.APIVersion != "" + yyq3085[2] = true + var yynn3085 int + if yyr3085 || yy2arr3085 { + r.EncodeArrayStart(4) + } else { + yynn3085 = 1 + for _, b := range yyq3085 { + if b { + yynn3085++ + } + } + r.EncodeMapStart(yynn3085) + yynn3085 = 0 + } + if yyr3085 || yy2arr3085 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3085[0] { + yym3087 := z.EncBinary() + _ = yym3087 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3085[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3088 := z.EncBinary() + _ = yym3088 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3085 || yy2arr3085 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3085[1] { + yym3090 := z.EncBinary() + _ = yym3090 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3085[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3091 := z.EncBinary() + _ = yym3091 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3085 || yy2arr3085 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3085[2] { + yy3093 := &x.ListMeta + yym3094 := z.EncBinary() + _ = yym3094 + if false { + } else if z.HasExtensions() && z.EncExt(yy3093) { + } else { + z.EncFallback(yy3093) + } + } else { + r.EncodeNil() + } + } else { + if yyq3085[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3095 := &x.ListMeta + yym3096 := z.EncBinary() + _ = yym3096 + if false { + } else if z.HasExtensions() && z.EncExt(yy3095) { + } else { + z.EncFallback(yy3095) + } + } + } + if yyr3085 || yy2arr3085 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3098 := z.EncBinary() + _ = yym3098 + if false { + } else { + h.encSliceNode(([]Node)(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 { + yym3099 := z.EncBinary() + _ = yym3099 + if false { + } else { + h.encSliceNode(([]Node)(x.Items), e) + } + } + } + if yyr3085 || yy2arr3085 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3100 := z.DecBinary() + _ = yym3100 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3101 := r.ContainerType() + if yyct3101 == codecSelferValueTypeMap1234 { + yyl3101 := r.ReadMapStart() + if yyl3101 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3101, d) + } + } else if yyct3101 == codecSelferValueTypeArray1234 { + yyl3101 := r.ReadArrayStart() + if yyl3101 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3101, 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 yys3102Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3102Slc + var yyhl3102 bool = l >= 0 + for yyj3102 := 0; ; yyj3102++ { + if yyhl3102 { + if yyj3102 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3102Slc = r.DecodeBytes(yys3102Slc, true, true) + yys3102 := string(yys3102Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3102 { + 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 { + yyv3105 := &x.ListMeta + yym3106 := z.DecBinary() + _ = yym3106 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3105) { + } else { + z.DecFallback(yyv3105, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3107 := &x.Items + yym3108 := z.DecBinary() + _ = yym3108 + if false { + } else { + h.decSliceNode((*[]Node)(yyv3107), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3102) + } // end switch yys3102 + } // end for yyj3102 + 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 yyj3109 int + var yyb3109 bool + var yyhl3109 bool = l >= 0 + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3112 := &x.ListMeta + yym3113 := z.DecBinary() + _ = yym3113 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3112) { + } else { + z.DecFallback(yyv3112, false) + } + } + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3114 := &x.Items + yym3115 := z.DecBinary() + _ = yym3115 + if false { + } else { + h.decSliceNode((*[]Node)(yyv3114), d) + } + } + for { + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l + } else { + yyb3109 = r.CheckBreak() + } + if yyb3109 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3109-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3116 := z.EncBinary() + _ = yym3116 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3117 := !z.EncBinary() + yy2arr3117 := z.EncBasicHandle().StructToArray + var yyq3117 [1]bool + _, _, _ = yysep3117, yyq3117, yy2arr3117 + const yyr3117 bool = false + var yynn3117 int + if yyr3117 || yy2arr3117 { + r.EncodeArrayStart(1) + } else { + yynn3117 = 1 + for _, b := range yyq3117 { + if b { + yynn3117++ + } + } + r.EncodeMapStart(yynn3117) + yynn3117 = 0 + } + if yyr3117 || yy2arr3117 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym3119 := z.EncBinary() + _ = yym3119 + if false { + } else { + h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym3120 := z.EncBinary() + _ = yym3120 + if false { + } else { + h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) + } + } + } + if yyr3117 || yy2arr3117 { + 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 + yym3121 := z.DecBinary() + _ = yym3121 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3122 := r.ContainerType() + if yyct3122 == codecSelferValueTypeMap1234 { + yyl3122 := r.ReadMapStart() + if yyl3122 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3122, d) + } + } else if yyct3122 == codecSelferValueTypeArray1234 { + yyl3122 := r.ReadArrayStart() + if yyl3122 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3122, 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 yys3123Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3123Slc + var yyhl3123 bool = l >= 0 + for yyj3123 := 0; ; yyj3123++ { + if yyhl3123 { + if yyj3123 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3123Slc = r.DecodeBytes(yys3123Slc, true, true) + yys3123 := string(yys3123Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3123 { + case "Finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv3124 := &x.Finalizers + yym3125 := z.DecBinary() + _ = yym3125 + if false { + } else { + h.decSliceFinalizerName((*[]FinalizerName)(yyv3124), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3123) + } // end switch yys3123 + } // end for yyj3123 + 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 yyj3126 int + var yyb3126 bool + var yyhl3126 bool = l >= 0 + yyj3126++ + if yyhl3126 { + yyb3126 = yyj3126 > l + } else { + yyb3126 = r.CheckBreak() + } + if yyb3126 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv3127 := &x.Finalizers + yym3128 := z.DecBinary() + _ = yym3128 + if false { + } else { + h.decSliceFinalizerName((*[]FinalizerName)(yyv3127), d) + } + } + for { + yyj3126++ + if yyhl3126 { + yyb3126 = yyj3126 > l + } else { + yyb3126 = r.CheckBreak() + } + if yyb3126 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3126-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3129 := z.EncBinary() + _ = yym3129 + 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 + yym3130 := z.DecBinary() + _ = yym3130 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3131 := z.EncBinary() + _ = yym3131 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3132 := !z.EncBinary() + yy2arr3132 := z.EncBasicHandle().StructToArray + var yyq3132 [1]bool + _, _, _ = yysep3132, yyq3132, yy2arr3132 + const yyr3132 bool = false + yyq3132[0] = x.Phase != "" + var yynn3132 int + if yyr3132 || yy2arr3132 { + r.EncodeArrayStart(1) + } else { + yynn3132 = 0 + for _, b := range yyq3132 { + if b { + yynn3132++ + } + } + r.EncodeMapStart(yynn3132) + yynn3132 = 0 + } + if yyr3132 || yy2arr3132 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3132[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3132[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr3132 || yy2arr3132 { + 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 + yym3134 := z.DecBinary() + _ = yym3134 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3135 := r.ContainerType() + if yyct3135 == codecSelferValueTypeMap1234 { + yyl3135 := r.ReadMapStart() + if yyl3135 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3135, d) + } + } else if yyct3135 == codecSelferValueTypeArray1234 { + yyl3135 := r.ReadArrayStart() + if yyl3135 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3135, 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 yys3136Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3136Slc + var yyhl3136 bool = l >= 0 + for yyj3136 := 0; ; yyj3136++ { + if yyhl3136 { + if yyj3136 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3136Slc = r.DecodeBytes(yys3136Slc, true, true) + yys3136 := string(yys3136Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3136 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NamespacePhase(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3136) + } // end switch yys3136 + } // end for yyj3136 + 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 yyj3138 int + var yyb3138 bool + var yyhl3138 bool = l >= 0 + yyj3138++ + if yyhl3138 { + yyb3138 = yyj3138 > l + } else { + yyb3138 = r.CheckBreak() + } + if yyb3138 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NamespacePhase(r.DecodeString()) + } + for { + yyj3138++ + if yyhl3138 { + yyb3138 = yyj3138 > l + } else { + yyb3138 = r.CheckBreak() + } + if yyb3138 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3138-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3140 := z.EncBinary() + _ = yym3140 + 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 + yym3141 := z.DecBinary() + _ = yym3141 + 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 { + yym3142 := z.EncBinary() + _ = yym3142 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3143 := !z.EncBinary() + yy2arr3143 := z.EncBasicHandle().StructToArray + var yyq3143 [5]bool + _, _, _ = yysep3143, yyq3143, yy2arr3143 + const yyr3143 bool = false + yyq3143[0] = x.Kind != "" + yyq3143[1] = x.APIVersion != "" + yyq3143[2] = true + yyq3143[3] = true + yyq3143[4] = true + var yynn3143 int + if yyr3143 || yy2arr3143 { + r.EncodeArrayStart(5) + } else { + yynn3143 = 0 + for _, b := range yyq3143 { + if b { + yynn3143++ + } + } + r.EncodeMapStart(yynn3143) + yynn3143 = 0 + } + if yyr3143 || yy2arr3143 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3143[0] { + yym3145 := z.EncBinary() + _ = yym3145 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3143[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3146 := z.EncBinary() + _ = yym3146 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3143 || yy2arr3143 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3143[1] { + yym3148 := z.EncBinary() + _ = yym3148 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3143[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3149 := z.EncBinary() + _ = yym3149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3143 || yy2arr3143 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3143[2] { + yy3151 := &x.ObjectMeta + yy3151.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3143[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3152 := &x.ObjectMeta + yy3152.CodecEncodeSelf(e) + } + } + if yyr3143 || yy2arr3143 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3143[3] { + yy3154 := &x.Spec + yy3154.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3143[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3155 := &x.Spec + yy3155.CodecEncodeSelf(e) + } + } + if yyr3143 || yy2arr3143 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3143[4] { + yy3157 := &x.Status + yy3157.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3143[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3158 := &x.Status + yy3158.CodecEncodeSelf(e) + } + } + if yyr3143 || yy2arr3143 { + 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 + yym3159 := z.DecBinary() + _ = yym3159 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3160 := r.ContainerType() + if yyct3160 == codecSelferValueTypeMap1234 { + yyl3160 := r.ReadMapStart() + if yyl3160 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3160, d) + } + } else if yyct3160 == codecSelferValueTypeArray1234 { + yyl3160 := r.ReadArrayStart() + if yyl3160 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3160, 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 yys3161Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3161Slc + var yyhl3161 bool = l >= 0 + for yyj3161 := 0; ; yyj3161++ { + if yyhl3161 { + if yyj3161 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3161Slc = r.DecodeBytes(yys3161Slc, true, true) + yys3161 := string(yys3161Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3161 { + 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 { + yyv3164 := &x.ObjectMeta + yyv3164.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NamespaceSpec{} + } else { + yyv3165 := &x.Spec + yyv3165.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = NamespaceStatus{} + } else { + yyv3166 := &x.Status + yyv3166.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3161) + } // end switch yys3161 + } // end for yyj3161 + 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 yyj3167 int + var yyb3167 bool + var yyhl3167 bool = l >= 0 + yyj3167++ + if yyhl3167 { + yyb3167 = yyj3167 > l + } else { + yyb3167 = r.CheckBreak() + } + if yyb3167 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3167++ + if yyhl3167 { + yyb3167 = yyj3167 > l + } else { + yyb3167 = r.CheckBreak() + } + if yyb3167 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3167++ + if yyhl3167 { + yyb3167 = yyj3167 > l + } else { + yyb3167 = r.CheckBreak() + } + if yyb3167 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3170 := &x.ObjectMeta + yyv3170.CodecDecodeSelf(d) + } + yyj3167++ + if yyhl3167 { + yyb3167 = yyj3167 > l + } else { + yyb3167 = r.CheckBreak() + } + if yyb3167 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = NamespaceSpec{} + } else { + yyv3171 := &x.Spec + yyv3171.CodecDecodeSelf(d) + } + yyj3167++ + if yyhl3167 { + yyb3167 = yyj3167 > l + } else { + yyb3167 = r.CheckBreak() + } + if yyb3167 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = NamespaceStatus{} + } else { + yyv3172 := &x.Status + yyv3172.CodecDecodeSelf(d) + } + for { + yyj3167++ + if yyhl3167 { + yyb3167 = yyj3167 > l + } else { + yyb3167 = r.CheckBreak() + } + if yyb3167 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3167-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 { + yym3173 := z.EncBinary() + _ = yym3173 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3174 := !z.EncBinary() + yy2arr3174 := z.EncBasicHandle().StructToArray + var yyq3174 [4]bool + _, _, _ = yysep3174, yyq3174, yy2arr3174 + const yyr3174 bool = false + yyq3174[0] = x.Kind != "" + yyq3174[1] = x.APIVersion != "" + yyq3174[2] = true + var yynn3174 int + if yyr3174 || yy2arr3174 { + r.EncodeArrayStart(4) + } else { + yynn3174 = 1 + for _, b := range yyq3174 { + if b { + yynn3174++ + } + } + r.EncodeMapStart(yynn3174) + yynn3174 = 0 + } + if yyr3174 || yy2arr3174 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3174[0] { + yym3176 := z.EncBinary() + _ = yym3176 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3174[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3177 := z.EncBinary() + _ = yym3177 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3174 || yy2arr3174 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3174[1] { + yym3179 := z.EncBinary() + _ = yym3179 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3174[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3180 := z.EncBinary() + _ = yym3180 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3174 || yy2arr3174 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3174[2] { + yy3182 := &x.ListMeta + yym3183 := z.EncBinary() + _ = yym3183 + if false { + } else if z.HasExtensions() && z.EncExt(yy3182) { + } else { + z.EncFallback(yy3182) + } + } else { + r.EncodeNil() + } + } else { + if yyq3174[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3184 := &x.ListMeta + yym3185 := z.EncBinary() + _ = yym3185 + if false { + } else if z.HasExtensions() && z.EncExt(yy3184) { + } else { + z.EncFallback(yy3184) + } + } + } + if yyr3174 || yy2arr3174 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3187 := z.EncBinary() + _ = yym3187 + 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 { + yym3188 := z.EncBinary() + _ = yym3188 + if false { + } else { + h.encSliceNamespace(([]Namespace)(x.Items), e) + } + } + } + if yyr3174 || yy2arr3174 { + 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 + yym3189 := z.DecBinary() + _ = yym3189 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3190 := r.ContainerType() + if yyct3190 == codecSelferValueTypeMap1234 { + yyl3190 := r.ReadMapStart() + if yyl3190 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3190, d) + } + } else if yyct3190 == codecSelferValueTypeArray1234 { + yyl3190 := r.ReadArrayStart() + if yyl3190 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3190, 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 yys3191Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3191Slc + var yyhl3191 bool = l >= 0 + for yyj3191 := 0; ; yyj3191++ { + if yyhl3191 { + if yyj3191 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3191Slc = r.DecodeBytes(yys3191Slc, true, true) + yys3191 := string(yys3191Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3191 { + 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 { + yyv3194 := &x.ListMeta + yym3195 := z.DecBinary() + _ = yym3195 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3194) { + } else { + z.DecFallback(yyv3194, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3196 := &x.Items + yym3197 := z.DecBinary() + _ = yym3197 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3196), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3191) + } // end switch yys3191 + } // end for yyj3191 + 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 yyj3198 int + var yyb3198 bool + var yyhl3198 bool = l >= 0 + yyj3198++ + if yyhl3198 { + yyb3198 = yyj3198 > l + } else { + yyb3198 = r.CheckBreak() + } + if yyb3198 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3198++ + if yyhl3198 { + yyb3198 = yyj3198 > l + } else { + yyb3198 = r.CheckBreak() + } + if yyb3198 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3198++ + if yyhl3198 { + yyb3198 = yyj3198 > l + } else { + yyb3198 = r.CheckBreak() + } + if yyb3198 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3201 := &x.ListMeta + yym3202 := z.DecBinary() + _ = yym3202 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3201) { + } else { + z.DecFallback(yyv3201, false) + } + } + yyj3198++ + if yyhl3198 { + yyb3198 = yyj3198 > l + } else { + yyb3198 = r.CheckBreak() + } + if yyb3198 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3203 := &x.Items + yym3204 := z.DecBinary() + _ = yym3204 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3203), d) + } + } + for { + yyj3198++ + if yyhl3198 { + yyb3198 = yyj3198 > l + } else { + yyb3198 = r.CheckBreak() + } + if yyb3198 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3198-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 { + yym3205 := z.EncBinary() + _ = yym3205 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3206 := !z.EncBinary() + yy2arr3206 := z.EncBasicHandle().StructToArray + var yyq3206 [4]bool + _, _, _ = yysep3206, yyq3206, yy2arr3206 + const yyr3206 bool = false + yyq3206[0] = x.Kind != "" + yyq3206[1] = x.APIVersion != "" + yyq3206[2] = true + var yynn3206 int + if yyr3206 || yy2arr3206 { + r.EncodeArrayStart(4) + } else { + yynn3206 = 1 + for _, b := range yyq3206 { + if b { + yynn3206++ + } + } + r.EncodeMapStart(yynn3206) + yynn3206 = 0 + } + if yyr3206 || yy2arr3206 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3206[0] { + yym3208 := z.EncBinary() + _ = yym3208 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3206[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3209 := z.EncBinary() + _ = yym3209 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3206 || yy2arr3206 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3206[1] { + yym3211 := z.EncBinary() + _ = yym3211 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3206[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3212 := z.EncBinary() + _ = yym3212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3206 || yy2arr3206 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3206[2] { + yy3214 := &x.ObjectMeta + yy3214.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3206[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3215 := &x.ObjectMeta + yy3215.CodecEncodeSelf(e) + } + } + if yyr3206 || yy2arr3206 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3217 := &x.Target + yy3217.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("target")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3218 := &x.Target + yy3218.CodecEncodeSelf(e) + } + if yyr3206 || yy2arr3206 { + 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 + yym3219 := z.DecBinary() + _ = yym3219 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3220 := r.ContainerType() + if yyct3220 == codecSelferValueTypeMap1234 { + yyl3220 := r.ReadMapStart() + if yyl3220 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3220, d) + } + } else if yyct3220 == codecSelferValueTypeArray1234 { + yyl3220 := r.ReadArrayStart() + if yyl3220 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3220, 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 yys3221Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3221Slc + var yyhl3221 bool = l >= 0 + for yyj3221 := 0; ; yyj3221++ { + if yyhl3221 { + if yyj3221 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3221Slc = r.DecodeBytes(yys3221Slc, true, true) + yys3221 := string(yys3221Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3221 { + 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 { + yyv3224 := &x.ObjectMeta + yyv3224.CodecDecodeSelf(d) + } + case "target": + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3225 := &x.Target + yyv3225.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3221) + } // end switch yys3221 + } // end for yyj3221 + 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 yyj3226 int + var yyb3226 bool + var yyhl3226 bool = l >= 0 + yyj3226++ + if yyhl3226 { + yyb3226 = yyj3226 > l + } else { + yyb3226 = r.CheckBreak() + } + if yyb3226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3226++ + if yyhl3226 { + yyb3226 = yyj3226 > l + } else { + yyb3226 = r.CheckBreak() + } + if yyb3226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3226++ + if yyhl3226 { + yyb3226 = yyj3226 > l + } else { + yyb3226 = r.CheckBreak() + } + if yyb3226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3229 := &x.ObjectMeta + yyv3229.CodecDecodeSelf(d) + } + yyj3226++ + if yyhl3226 { + yyb3226 = yyj3226 > l + } else { + yyb3226 = r.CheckBreak() + } + if yyb3226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3230 := &x.Target + yyv3230.CodecDecodeSelf(d) + } + for { + yyj3226++ + if yyhl3226 { + yyb3226 = yyj3226 > l + } else { + yyb3226 = r.CheckBreak() + } + if yyb3226 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3226-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 { + yym3231 := z.EncBinary() + _ = yym3231 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3232 := !z.EncBinary() + yy2arr3232 := z.EncBasicHandle().StructToArray + var yyq3232 [1]bool + _, _, _ = yysep3232, yyq3232, yy2arr3232 + const yyr3232 bool = false + yyq3232[0] = x.UID != nil + var yynn3232 int + if yyr3232 || yy2arr3232 { + r.EncodeArrayStart(1) + } else { + yynn3232 = 0 + for _, b := range yyq3232 { + if b { + yynn3232++ + } + } + r.EncodeMapStart(yynn3232) + yynn3232 = 0 + } + if yyr3232 || yy2arr3232 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3232[0] { + if x.UID == nil { + r.EncodeNil() + } else { + yy3234 := *x.UID + yym3235 := z.EncBinary() + _ = yym3235 + if false { + } else if z.HasExtensions() && z.EncExt(yy3234) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy3234)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3232[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.UID == nil { + r.EncodeNil() + } else { + yy3236 := *x.UID + yym3237 := z.EncBinary() + _ = yym3237 + if false { + } else if z.HasExtensions() && z.EncExt(yy3236) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy3236)) + } + } + } + } + if yyr3232 || yy2arr3232 { + 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 + yym3238 := z.DecBinary() + _ = yym3238 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3239 := r.ContainerType() + if yyct3239 == codecSelferValueTypeMap1234 { + yyl3239 := r.ReadMapStart() + if yyl3239 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3239, d) + } + } else if yyct3239 == codecSelferValueTypeArray1234 { + yyl3239 := r.ReadArrayStart() + if yyl3239 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3239, 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 yys3240Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3240Slc + var yyhl3240 bool = l >= 0 + for yyj3240 := 0; ; yyj3240++ { + if yyhl3240 { + if yyj3240 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3240Slc = r.DecodeBytes(yys3240Slc, true, true) + yys3240 := string(yys3240Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3240 { + case "uid": + if r.TryDecodeAsNil() { + if x.UID != nil { + x.UID = nil + } + } else { + if x.UID == nil { + x.UID = new(pkg1_types.UID) + } + yym3242 := z.DecBinary() + _ = yym3242 + if false { + } else if z.HasExtensions() && z.DecExt(x.UID) { + } else { + *((*string)(x.UID)) = r.DecodeString() + } + } + default: + z.DecStructFieldNotFound(-1, yys3240) + } // end switch yys3240 + } // end for yyj3240 + 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 yyj3243 int + var yyb3243 bool + var yyhl3243 bool = l >= 0 + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l + } else { + yyb3243 = r.CheckBreak() + } + if yyb3243 { + 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) + } + yym3245 := z.DecBinary() + _ = yym3245 + if false { + } else if z.HasExtensions() && z.DecExt(x.UID) { + } else { + *((*string)(x.UID)) = r.DecodeString() + } + } + for { + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l + } else { + yyb3243 = r.CheckBreak() + } + if yyb3243 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3243-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 { + yym3246 := z.EncBinary() + _ = yym3246 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3247 := !z.EncBinary() + yy2arr3247 := z.EncBasicHandle().StructToArray + var yyq3247 [5]bool + _, _, _ = yysep3247, yyq3247, yy2arr3247 + const yyr3247 bool = false + yyq3247[0] = x.Kind != "" + yyq3247[1] = x.APIVersion != "" + yyq3247[2] = x.GracePeriodSeconds != nil + yyq3247[3] = x.Preconditions != nil + yyq3247[4] = x.OrphanDependents != nil + var yynn3247 int + if yyr3247 || yy2arr3247 { + r.EncodeArrayStart(5) + } else { + yynn3247 = 0 + for _, b := range yyq3247 { + if b { + yynn3247++ + } + } + r.EncodeMapStart(yynn3247) + yynn3247 = 0 + } + if yyr3247 || yy2arr3247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3247[0] { + yym3249 := z.EncBinary() + _ = yym3249 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3247[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3250 := z.EncBinary() + _ = yym3250 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3247 || yy2arr3247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3247[1] { + yym3252 := z.EncBinary() + _ = yym3252 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3247[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3253 := z.EncBinary() + _ = yym3253 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3247 || yy2arr3247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3247[2] { + if x.GracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy3255 := *x.GracePeriodSeconds + yym3256 := z.EncBinary() + _ = yym3256 + if false { + } else { + r.EncodeInt(int64(yy3255)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3247[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy3257 := *x.GracePeriodSeconds + yym3258 := z.EncBinary() + _ = yym3258 + if false { + } else { + r.EncodeInt(int64(yy3257)) + } + } + } + } + if yyr3247 || yy2arr3247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3247[3] { + if x.Preconditions == nil { + r.EncodeNil() + } else { + x.Preconditions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3247[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 yyr3247 || yy2arr3247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3247[4] { + if x.OrphanDependents == nil { + r.EncodeNil() + } else { + yy3261 := *x.OrphanDependents + yym3262 := z.EncBinary() + _ = yym3262 + if false { + } else { + r.EncodeBool(bool(yy3261)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3247[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OrphanDependents == nil { + r.EncodeNil() + } else { + yy3263 := *x.OrphanDependents + yym3264 := z.EncBinary() + _ = yym3264 + if false { + } else { + r.EncodeBool(bool(yy3263)) + } + } + } + } + if yyr3247 || yy2arr3247 { + 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 + yym3265 := z.DecBinary() + _ = yym3265 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3266 := r.ContainerType() + if yyct3266 == codecSelferValueTypeMap1234 { + yyl3266 := r.ReadMapStart() + if yyl3266 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3266, d) + } + } else if yyct3266 == codecSelferValueTypeArray1234 { + yyl3266 := r.ReadArrayStart() + if yyl3266 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3266, 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 yys3267Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3267Slc + var yyhl3267 bool = l >= 0 + for yyj3267 := 0; ; yyj3267++ { + if yyhl3267 { + if yyj3267 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3267Slc = r.DecodeBytes(yys3267Slc, true, true) + yys3267 := string(yys3267Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3267 { + 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) + } + yym3271 := z.DecBinary() + _ = yym3271 + 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) + } + yym3274 := z.DecBinary() + _ = yym3274 + if false { + } else { + *((*bool)(x.OrphanDependents)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys3267) + } // end switch yys3267 + } // end for yyj3267 + 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 yyj3275 int + var yyb3275 bool + var yyhl3275 bool = l >= 0 + yyj3275++ + if yyhl3275 { + yyb3275 = yyj3275 > l + } else { + yyb3275 = r.CheckBreak() + } + if yyb3275 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3275++ + if yyhl3275 { + yyb3275 = yyj3275 > l + } else { + yyb3275 = r.CheckBreak() + } + if yyb3275 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3275++ + if yyhl3275 { + yyb3275 = yyj3275 > l + } else { + yyb3275 = r.CheckBreak() + } + if yyb3275 { + 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) + } + yym3279 := z.DecBinary() + _ = yym3279 + if false { + } else { + *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj3275++ + if yyhl3275 { + yyb3275 = yyj3275 > l + } else { + yyb3275 = r.CheckBreak() + } + if yyb3275 { + 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) + } + yyj3275++ + if yyhl3275 { + yyb3275 = yyj3275 > l + } else { + yyb3275 = r.CheckBreak() + } + if yyb3275 { + 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) + } + yym3282 := z.DecBinary() + _ = yym3282 + if false { + } else { + *((*bool)(x.OrphanDependents)) = r.DecodeBool() + } + } + for { + yyj3275++ + if yyhl3275 { + yyb3275 = yyj3275 > l + } else { + yyb3275 = r.CheckBreak() + } + if yyb3275 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3275-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 { + yym3283 := z.EncBinary() + _ = yym3283 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3284 := !z.EncBinary() + yy2arr3284 := z.EncBasicHandle().StructToArray + var yyq3284 [4]bool + _, _, _ = yysep3284, yyq3284, yy2arr3284 + const yyr3284 bool = false + yyq3284[0] = x.Kind != "" + yyq3284[1] = x.APIVersion != "" + var yynn3284 int + if yyr3284 || yy2arr3284 { + r.EncodeArrayStart(4) + } else { + yynn3284 = 2 + for _, b := range yyq3284 { + if b { + yynn3284++ + } + } + r.EncodeMapStart(yynn3284) + yynn3284 = 0 + } + if yyr3284 || yy2arr3284 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3284[0] { + yym3286 := z.EncBinary() + _ = yym3286 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3284[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3287 := z.EncBinary() + _ = yym3287 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3284 || yy2arr3284 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3284[1] { + yym3289 := z.EncBinary() + _ = yym3289 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3284[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3290 := z.EncBinary() + _ = yym3290 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3284 || yy2arr3284 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3292 := z.EncBinary() + _ = yym3292 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("export")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3293 := z.EncBinary() + _ = yym3293 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } + if yyr3284 || yy2arr3284 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3295 := z.EncBinary() + _ = yym3295 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exact")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3296 := z.EncBinary() + _ = yym3296 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } + if yyr3284 || yy2arr3284 { + 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 + yym3297 := z.DecBinary() + _ = yym3297 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3298 := r.ContainerType() + if yyct3298 == codecSelferValueTypeMap1234 { + yyl3298 := r.ReadMapStart() + if yyl3298 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3298, d) + } + } else if yyct3298 == codecSelferValueTypeArray1234 { + yyl3298 := r.ReadArrayStart() + if yyl3298 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3298, 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 yys3299Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3299Slc + var yyhl3299 bool = l >= 0 + for yyj3299 := 0; ; yyj3299++ { + if yyhl3299 { + if yyj3299 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3299Slc = r.DecodeBytes(yys3299Slc, true, true) + yys3299 := string(yys3299Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3299 { + 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 "export": + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + case "exact": + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3299) + } // end switch yys3299 + } // end for yyj3299 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3304 int + var yyb3304 bool + var yyhl3304 bool = l >= 0 + yyj3304++ + if yyhl3304 { + yyb3304 = yyj3304 > l + } else { + yyb3304 = r.CheckBreak() + } + if yyb3304 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3304++ + if yyhl3304 { + yyb3304 = yyj3304 > l + } else { + yyb3304 = r.CheckBreak() + } + if yyb3304 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3304++ + if yyhl3304 { + yyb3304 = yyj3304 > l + } else { + yyb3304 = r.CheckBreak() + } + if yyb3304 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + yyj3304++ + if yyhl3304 { + yyb3304 = yyj3304 > l + } else { + yyb3304 = r.CheckBreak() + } + if yyb3304 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } + for { + yyj3304++ + if yyhl3304 { + yyb3304 = yyj3304 > l + } else { + yyb3304 = r.CheckBreak() + } + if yyb3304 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3304-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3309 := z.EncBinary() + _ = yym3309 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3310 := !z.EncBinary() + yy2arr3310 := z.EncBasicHandle().StructToArray + var yyq3310 [7]bool + _, _, _ = yysep3310, yyq3310, yy2arr3310 + const yyr3310 bool = false + yyq3310[0] = x.Kind != "" + yyq3310[1] = x.APIVersion != "" + var yynn3310 int + if yyr3310 || yy2arr3310 { + r.EncodeArrayStart(7) + } else { + yynn3310 = 5 + for _, b := range yyq3310 { + if b { + yynn3310++ + } + } + r.EncodeMapStart(yynn3310) + yynn3310 = 0 + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3310[0] { + yym3312 := z.EncBinary() + _ = yym3312 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3310[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3313 := z.EncBinary() + _ = yym3313 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3310[1] { + yym3315 := z.EncBinary() + _ = yym3315 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3310[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3316 := z.EncBinary() + _ = yym3316 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.LabelSelector == nil { + r.EncodeNil() + } else { + yym3318 := z.EncBinary() + _ = yym3318 + if false { + } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { + } else { + z.EncFallback(x.LabelSelector) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("LabelSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LabelSelector == nil { + r.EncodeNil() + } else { + yym3319 := z.EncBinary() + _ = yym3319 + if false { + } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { + } else { + z.EncFallback(x.LabelSelector) + } + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.FieldSelector == nil { + r.EncodeNil() + } else { + yym3321 := z.EncBinary() + _ = yym3321 + if false { + } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { + } else { + z.EncFallback(x.FieldSelector) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("FieldSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FieldSelector == nil { + r.EncodeNil() + } else { + yym3322 := z.EncBinary() + _ = yym3322 + if false { + } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { + } else { + z.EncFallback(x.FieldSelector) + } + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3324 := z.EncBinary() + _ = yym3324 + if false { + } else { + r.EncodeBool(bool(x.Watch)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Watch")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3325 := z.EncBinary() + _ = yym3325 + if false { + } else { + r.EncodeBool(bool(x.Watch)) + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3327 := z.EncBinary() + _ = yym3327 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3328 := z.EncBinary() + _ = yym3328 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.TimeoutSeconds == nil { + r.EncodeNil() + } else { + yy3330 := *x.TimeoutSeconds + yym3331 := z.EncBinary() + _ = yym3331 + if false { + } else { + r.EncodeInt(int64(yy3330)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TimeoutSeconds == nil { + r.EncodeNil() + } else { + yy3332 := *x.TimeoutSeconds + yym3333 := z.EncBinary() + _ = yym3333 + if false { + } else { + r.EncodeInt(int64(yy3332)) + } + } + } + if yyr3310 || yy2arr3310 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3334 := z.DecBinary() + _ = yym3334 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3335 := r.ContainerType() + if yyct3335 == codecSelferValueTypeMap1234 { + yyl3335 := r.ReadMapStart() + if yyl3335 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3335, d) + } + } else if yyct3335 == codecSelferValueTypeArray1234 { + yyl3335 := r.ReadArrayStart() + if yyl3335 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3335, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3336Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3336Slc + var yyhl3336 bool = l >= 0 + for yyj3336 := 0; ; yyj3336++ { + if yyhl3336 { + if yyj3336 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3336Slc = r.DecodeBytes(yys3336Slc, true, true) + yys3336 := string(yys3336Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3336 { + 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 "LabelSelector": + if r.TryDecodeAsNil() { + x.LabelSelector = nil + } else { + yyv3339 := &x.LabelSelector + yym3340 := z.DecBinary() + _ = yym3340 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3339) { + } else { + z.DecFallback(yyv3339, true) + } + } + case "FieldSelector": + if r.TryDecodeAsNil() { + x.FieldSelector = nil + } else { + yyv3341 := &x.FieldSelector + yym3342 := z.DecBinary() + _ = yym3342 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3341) { + } else { + z.DecFallback(yyv3341, true) + } + } + case "Watch": + if r.TryDecodeAsNil() { + x.Watch = false + } else { + x.Watch = bool(r.DecodeBool()) + } + case "ResourceVersion": + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + case "TimeoutSeconds": + if r.TryDecodeAsNil() { + if x.TimeoutSeconds != nil { + x.TimeoutSeconds = nil + } + } else { + if x.TimeoutSeconds == nil { + x.TimeoutSeconds = new(int64) + } + yym3346 := z.DecBinary() + _ = yym3346 + if false { + } else { + *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) + } + } + default: + z.DecStructFieldNotFound(-1, yys3336) + } // end switch yys3336 + } // end for yyj3336 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3347 int + var yyb3347 bool + var yyhl3347 bool = l >= 0 + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LabelSelector = nil + } else { + yyv3350 := &x.LabelSelector + yym3351 := z.DecBinary() + _ = yym3351 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3350) { + } else { + z.DecFallback(yyv3350, true) + } + } + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FieldSelector = nil + } else { + yyv3352 := &x.FieldSelector + yym3353 := z.DecBinary() + _ = yym3353 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3352) { + } else { + z.DecFallback(yyv3352, true) + } + } + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Watch = false + } else { + x.Watch = bool(r.DecodeBool()) + } + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TimeoutSeconds != nil { + x.TimeoutSeconds = nil + } + } else { + if x.TimeoutSeconds == nil { + x.TimeoutSeconds = new(int64) + } + yym3357 := z.DecBinary() + _ = yym3357 + if false { + } else { + *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) + } + } + for { + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l + } else { + yyb3347 = r.CheckBreak() + } + if yyb3347 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3347-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3358 := z.EncBinary() + _ = yym3358 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3359 := !z.EncBinary() + yy2arr3359 := z.EncBasicHandle().StructToArray + var yyq3359 [10]bool + _, _, _ = yysep3359, yyq3359, yy2arr3359 + const yyr3359 bool = false + yyq3359[0] = x.Kind != "" + yyq3359[1] = x.APIVersion != "" + var yynn3359 int + if yyr3359 || yy2arr3359 { + r.EncodeArrayStart(10) + } else { + yynn3359 = 8 + for _, b := range yyq3359 { + if b { + yynn3359++ + } + } + r.EncodeMapStart(yynn3359) + yynn3359 = 0 + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3359[0] { + yym3361 := z.EncBinary() + _ = yym3361 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3359[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3362 := z.EncBinary() + _ = yym3362 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3359[1] { + yym3364 := z.EncBinary() + _ = yym3364 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3359[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3365 := z.EncBinary() + _ = yym3365 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3367 := z.EncBinary() + _ = yym3367 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3368 := z.EncBinary() + _ = yym3368 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3370 := z.EncBinary() + _ = yym3370 + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Follow")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3371 := z.EncBinary() + _ = yym3371 + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3373 := z.EncBinary() + _ = yym3373 + if false { + } else { + r.EncodeBool(bool(x.Previous)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Previous")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3374 := z.EncBinary() + _ = yym3374 + if false { + } else { + r.EncodeBool(bool(x.Previous)) + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.SinceSeconds == nil { + r.EncodeNil() + } else { + yy3376 := *x.SinceSeconds + yym3377 := z.EncBinary() + _ = yym3377 + if false { + } else { + r.EncodeInt(int64(yy3376)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SinceSeconds == nil { + r.EncodeNil() + } else { + yy3378 := *x.SinceSeconds + yym3379 := z.EncBinary() + _ = yym3379 + if false { + } else { + r.EncodeInt(int64(yy3378)) + } + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.SinceTime == nil { + r.EncodeNil() + } else { + yym3381 := z.EncBinary() + _ = yym3381 + if false { + } else if z.HasExtensions() && z.EncExt(x.SinceTime) { + } else if yym3381 { + z.EncBinaryMarshal(x.SinceTime) + } else if !yym3381 && z.IsJSONHandle() { + z.EncJSONMarshal(x.SinceTime) + } else { + z.EncFallback(x.SinceTime) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("SinceTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SinceTime == nil { + r.EncodeNil() + } else { + yym3382 := z.EncBinary() + _ = yym3382 + if false { + } else if z.HasExtensions() && z.EncExt(x.SinceTime) { + } else if yym3382 { + z.EncBinaryMarshal(x.SinceTime) + } else if !yym3382 && z.IsJSONHandle() { + z.EncJSONMarshal(x.SinceTime) + } else { + z.EncFallback(x.SinceTime) + } + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3384 := z.EncBinary() + _ = yym3384 + if false { + } else { + r.EncodeBool(bool(x.Timestamps)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3385 := z.EncBinary() + _ = yym3385 + if false { + } else { + r.EncodeBool(bool(x.Timestamps)) + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.TailLines == nil { + r.EncodeNil() + } else { + yy3387 := *x.TailLines + yym3388 := z.EncBinary() + _ = yym3388 + if false { + } else { + r.EncodeInt(int64(yy3387)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("TailLines")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TailLines == nil { + r.EncodeNil() + } else { + yy3389 := *x.TailLines + yym3390 := z.EncBinary() + _ = yym3390 + if false { + } else { + r.EncodeInt(int64(yy3389)) + } + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.LimitBytes == nil { + r.EncodeNil() + } else { + yy3392 := *x.LimitBytes + yym3393 := z.EncBinary() + _ = yym3393 + if false { + } else { + r.EncodeInt(int64(yy3392)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LimitBytes == nil { + r.EncodeNil() + } else { + yy3394 := *x.LimitBytes + yym3395 := z.EncBinary() + _ = yym3395 + if false { + } else { + r.EncodeInt(int64(yy3394)) + } + } + } + if yyr3359 || yy2arr3359 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3396 := z.DecBinary() + _ = yym3396 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3397 := r.ContainerType() + if yyct3397 == codecSelferValueTypeMap1234 { + yyl3397 := r.ReadMapStart() + if yyl3397 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3397, d) + } + } else if yyct3397 == codecSelferValueTypeArray1234 { + yyl3397 := r.ReadArrayStart() + if yyl3397 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3397, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3398Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3398Slc + var yyhl3398 bool = l >= 0 + for yyj3398 := 0; ; yyj3398++ { + if yyhl3398 { + if yyj3398 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3398Slc = r.DecodeBytes(yys3398Slc, true, true) + yys3398 := string(yys3398Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3398 { + 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 "Container": + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + case "Follow": + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = bool(r.DecodeBool()) + } + case "Previous": + if r.TryDecodeAsNil() { + x.Previous = false + } else { + x.Previous = bool(r.DecodeBool()) + } + case "SinceSeconds": + if r.TryDecodeAsNil() { + if x.SinceSeconds != nil { + x.SinceSeconds = nil + } + } else { + if x.SinceSeconds == nil { + x.SinceSeconds = new(int64) + } + yym3405 := z.DecBinary() + _ = yym3405 + if false { + } else { + *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) + } + } + case "SinceTime": + if r.TryDecodeAsNil() { + if x.SinceTime != nil { + x.SinceTime = nil + } + } else { + if x.SinceTime == nil { + x.SinceTime = new(pkg2_unversioned.Time) + } + yym3407 := z.DecBinary() + _ = yym3407 + if false { + } else if z.HasExtensions() && z.DecExt(x.SinceTime) { + } else if yym3407 { + z.DecBinaryUnmarshal(x.SinceTime) + } else if !yym3407 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.SinceTime) + } else { + z.DecFallback(x.SinceTime, false) + } + } + case "Timestamps": + if r.TryDecodeAsNil() { + x.Timestamps = false + } else { + x.Timestamps = bool(r.DecodeBool()) + } + case "TailLines": + if r.TryDecodeAsNil() { + if x.TailLines != nil { + x.TailLines = nil + } + } else { + if x.TailLines == nil { + x.TailLines = new(int64) + } + yym3410 := z.DecBinary() + _ = yym3410 + if false { + } else { + *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) + } + } + case "LimitBytes": + if r.TryDecodeAsNil() { + if x.LimitBytes != nil { + x.LimitBytes = nil + } + } else { + if x.LimitBytes == nil { + x.LimitBytes = new(int64) + } + yym3412 := z.DecBinary() + _ = yym3412 + if false { + } else { + *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) + } + } + default: + z.DecStructFieldNotFound(-1, yys3398) + } // end switch yys3398 + } // end for yyj3398 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3413 int + var yyb3413 bool + var yyhl3413 bool = l >= 0 + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = bool(r.DecodeBool()) + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Previous = false + } else { + x.Previous = bool(r.DecodeBool()) + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SinceSeconds != nil { + x.SinceSeconds = nil + } + } else { + if x.SinceSeconds == nil { + x.SinceSeconds = new(int64) + } + yym3420 := z.DecBinary() + _ = yym3420 + if false { + } else { + *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SinceTime != nil { + x.SinceTime = nil + } + } else { + if x.SinceTime == nil { + x.SinceTime = new(pkg2_unversioned.Time) + } + yym3422 := z.DecBinary() + _ = yym3422 + if false { + } else if z.HasExtensions() && z.DecExt(x.SinceTime) { + } else if yym3422 { + z.DecBinaryUnmarshal(x.SinceTime) + } else if !yym3422 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.SinceTime) + } else { + z.DecFallback(x.SinceTime, false) + } + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Timestamps = false + } else { + x.Timestamps = bool(r.DecodeBool()) + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TailLines != nil { + x.TailLines = nil + } + } else { + if x.TailLines == nil { + x.TailLines = new(int64) + } + yym3425 := z.DecBinary() + _ = yym3425 + if false { + } else { + *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) + } + } + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LimitBytes != nil { + x.LimitBytes = nil + } + } else { + if x.LimitBytes == nil { + x.LimitBytes = new(int64) + } + yym3427 := z.DecBinary() + _ = yym3427 + if false { + } else { + *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) + } + } + for { + yyj3413++ + if yyhl3413 { + yyb3413 = yyj3413 > l + } else { + yyb3413 = r.CheckBreak() + } + if yyb3413 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3413-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3428 := z.EncBinary() + _ = yym3428 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3429 := !z.EncBinary() + yy2arr3429 := z.EncBasicHandle().StructToArray + var yyq3429 [7]bool + _, _, _ = yysep3429, yyq3429, yy2arr3429 + const yyr3429 bool = false + yyq3429[0] = x.Kind != "" + yyq3429[1] = x.APIVersion != "" + yyq3429[2] = x.Stdin != false + yyq3429[3] = x.Stdout != false + yyq3429[4] = x.Stderr != false + yyq3429[5] = x.TTY != false + yyq3429[6] = x.Container != "" + var yynn3429 int + if yyr3429 || yy2arr3429 { + r.EncodeArrayStart(7) + } else { + yynn3429 = 0 + for _, b := range yyq3429 { + if b { + yynn3429++ + } + } + r.EncodeMapStart(yynn3429) + yynn3429 = 0 + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[0] { + yym3431 := z.EncBinary() + _ = yym3431 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3429[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3432 := z.EncBinary() + _ = yym3432 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[1] { + yym3434 := z.EncBinary() + _ = yym3434 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3429[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3435 := z.EncBinary() + _ = yym3435 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[2] { + yym3437 := z.EncBinary() + _ = yym3437 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3429[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3438 := z.EncBinary() + _ = yym3438 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[3] { + yym3440 := z.EncBinary() + _ = yym3440 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3429[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3441 := z.EncBinary() + _ = yym3441 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[4] { + yym3443 := z.EncBinary() + _ = yym3443 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3429[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3444 := z.EncBinary() + _ = yym3444 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[5] { + yym3446 := z.EncBinary() + _ = yym3446 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3429[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tty")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3447 := z.EncBinary() + _ = yym3447 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3429[6] { + yym3449 := z.EncBinary() + _ = yym3449 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3429[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3450 := z.EncBinary() + _ = yym3450 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + } + if yyr3429 || yy2arr3429 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3451 := z.DecBinary() + _ = yym3451 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3452 := r.ContainerType() + if yyct3452 == codecSelferValueTypeMap1234 { + yyl3452 := r.ReadMapStart() + if yyl3452 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3452, d) + } + } else if yyct3452 == codecSelferValueTypeArray1234 { + yyl3452 := r.ReadArrayStart() + if yyl3452 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3452, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3453Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3453Slc + var yyhl3453 bool = l >= 0 + for yyj3453 := 0; ; yyj3453++ { + if yyhl3453 { + if yyj3453 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3453Slc = r.DecodeBytes(yys3453Slc, true, true) + yys3453 := string(yys3453Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3453 { + 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 "stdin": + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + case "stdout": + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + case "stderr": + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + case "tty": + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + case "container": + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3453) + } // end switch yys3453 + } // end for yyj3453 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3461 int + var yyb3461 bool + var yyhl3461 bool = l >= 0 + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + for { + yyj3461++ + if yyhl3461 { + yyb3461 = yyj3461 > l + } else { + yyb3461 = r.CheckBreak() + } + if yyb3461 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3461-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3469 := z.EncBinary() + _ = yym3469 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3470 := !z.EncBinary() + yy2arr3470 := z.EncBasicHandle().StructToArray + var yyq3470 [8]bool + _, _, _ = yysep3470, yyq3470, yy2arr3470 + const yyr3470 bool = false + yyq3470[0] = x.Kind != "" + yyq3470[1] = x.APIVersion != "" + var yynn3470 int + if yyr3470 || yy2arr3470 { + r.EncodeArrayStart(8) + } else { + yynn3470 = 6 + for _, b := range yyq3470 { + if b { + yynn3470++ + } + } + r.EncodeMapStart(yynn3470) + yynn3470 = 0 + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3470[0] { + yym3472 := z.EncBinary() + _ = yym3472 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3470[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3473 := z.EncBinary() + _ = yym3473 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3470[1] { + yym3475 := z.EncBinary() + _ = yym3475 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3470[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3476 := z.EncBinary() + _ = yym3476 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3478 := z.EncBinary() + _ = yym3478 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Stdin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3479 := z.EncBinary() + _ = yym3479 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3481 := z.EncBinary() + _ = yym3481 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Stdout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3482 := z.EncBinary() + _ = yym3482 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3484 := z.EncBinary() + _ = yym3484 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Stderr")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3485 := z.EncBinary() + _ = yym3485 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3487 := z.EncBinary() + _ = yym3487 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("TTY")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3488 := z.EncBinary() + _ = yym3488 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3490 := z.EncBinary() + _ = yym3490 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3491 := z.EncBinary() + _ = yym3491 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Command == nil { + r.EncodeNil() + } else { + yym3493 := z.EncBinary() + _ = yym3493 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Command")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Command == nil { + r.EncodeNil() + } else { + yym3494 := z.EncBinary() + _ = yym3494 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } + if yyr3470 || yy2arr3470 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3495 := z.DecBinary() + _ = yym3495 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3496 := r.ContainerType() + if yyct3496 == codecSelferValueTypeMap1234 { + yyl3496 := r.ReadMapStart() + if yyl3496 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3496, d) + } + } else if yyct3496 == codecSelferValueTypeArray1234 { + yyl3496 := r.ReadArrayStart() + if yyl3496 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3496, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3497Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3497Slc + var yyhl3497 bool = l >= 0 + for yyj3497 := 0; ; yyj3497++ { + if yyhl3497 { + if yyj3497 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3497Slc = r.DecodeBytes(yys3497Slc, true, true) + yys3497 := string(yys3497Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3497 { + 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 "Stdin": + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + case "Stdout": + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + case "Stderr": + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + case "TTY": + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + case "Container": + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + case "Command": + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv3505 := &x.Command + yym3506 := z.DecBinary() + _ = yym3506 + if false { + } else { + z.F.DecSliceStringX(yyv3505, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3497) + } // end switch yys3497 + } // end for yyj3497 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3507 int + var yyb3507 bool + var yyhl3507 bool = l >= 0 + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv3515 := &x.Command + yym3516 := z.DecBinary() + _ = yym3516 + if false { + } else { + z.F.DecSliceStringX(yyv3515, false, d) + } + } + for { + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3507-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3517 := z.EncBinary() + _ = yym3517 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3518 := !z.EncBinary() + yy2arr3518 := z.EncBasicHandle().StructToArray + var yyq3518 [3]bool + _, _, _ = yysep3518, yyq3518, yy2arr3518 + const yyr3518 bool = false + yyq3518[0] = x.Kind != "" + yyq3518[1] = x.APIVersion != "" + var yynn3518 int + if yyr3518 || yy2arr3518 { + r.EncodeArrayStart(3) + } else { + yynn3518 = 1 + for _, b := range yyq3518 { + if b { + yynn3518++ + } + } + r.EncodeMapStart(yynn3518) + yynn3518 = 0 + } + if yyr3518 || yy2arr3518 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3518[0] { + yym3520 := z.EncBinary() + _ = yym3520 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3518[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3521 := z.EncBinary() + _ = yym3521 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3518 || yy2arr3518 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3518[1] { + yym3523 := z.EncBinary() + _ = yym3523 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3518[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3524 := z.EncBinary() + _ = yym3524 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3518 || yy2arr3518 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3526 := z.EncBinary() + _ = yym3526 + 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) + yym3527 := z.EncBinary() + _ = yym3527 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr3518 || yy2arr3518 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3528 := z.DecBinary() + _ = yym3528 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3529 := r.ContainerType() + if yyct3529 == codecSelferValueTypeMap1234 { + yyl3529 := r.ReadMapStart() + if yyl3529 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3529, d) + } + } else if yyct3529 == codecSelferValueTypeArray1234 { + yyl3529 := r.ReadArrayStart() + if yyl3529 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3529, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3530Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3530Slc + var yyhl3530 bool = l >= 0 + for yyj3530 := 0; ; yyj3530++ { + if yyhl3530 { + if yyj3530 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3530Slc = r.DecodeBytes(yys3530Slc, true, true) + yys3530 := string(yys3530Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3530 { + 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 "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3530) + } // end switch yys3530 + } // end for yyj3530 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3534 int + var yyb3534 bool + var yyhl3534 bool = l >= 0 + yyj3534++ + if yyhl3534 { + yyb3534 = yyj3534 > l + } else { + yyb3534 = r.CheckBreak() + } + if yyb3534 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3534++ + if yyhl3534 { + yyb3534 = yyj3534 > l + } else { + yyb3534 = r.CheckBreak() + } + if yyb3534 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3534++ + if yyhl3534 { + yyb3534 = yyj3534 > l + } else { + yyb3534 = r.CheckBreak() + } + if yyb3534 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj3534++ + if yyhl3534 { + yyb3534 = yyj3534 > l + } else { + yyb3534 = r.CheckBreak() + } + if yyb3534 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3534-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3538 := z.EncBinary() + _ = yym3538 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3539 := !z.EncBinary() + yy2arr3539 := z.EncBasicHandle().StructToArray + var yyq3539 [3]bool + _, _, _ = yysep3539, yyq3539, yy2arr3539 + const yyr3539 bool = false + yyq3539[0] = x.Kind != "" + yyq3539[1] = x.APIVersion != "" + var yynn3539 int + if yyr3539 || yy2arr3539 { + r.EncodeArrayStart(3) + } else { + yynn3539 = 1 + for _, b := range yyq3539 { + if b { + yynn3539++ + } + } + r.EncodeMapStart(yynn3539) + yynn3539 = 0 + } + if yyr3539 || yy2arr3539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3539[0] { + yym3541 := z.EncBinary() + _ = yym3541 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3539[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3542 := z.EncBinary() + _ = yym3542 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3539 || yy2arr3539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3539[1] { + yym3544 := z.EncBinary() + _ = yym3544 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3539[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3545 := z.EncBinary() + _ = yym3545 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3539 || yy2arr3539 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3547 := z.EncBinary() + _ = yym3547 + 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) + yym3548 := z.EncBinary() + _ = yym3548 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr3539 || yy2arr3539 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3549 := z.DecBinary() + _ = yym3549 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3550 := r.ContainerType() + if yyct3550 == codecSelferValueTypeMap1234 { + yyl3550 := r.ReadMapStart() + if yyl3550 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3550, d) + } + } else if yyct3550 == codecSelferValueTypeArray1234 { + yyl3550 := r.ReadArrayStart() + if yyl3550 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3550, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3551Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3551Slc + var yyhl3551 bool = l >= 0 + for yyj3551 := 0; ; yyj3551++ { + if yyhl3551 { + if yyj3551 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3551Slc = r.DecodeBytes(yys3551Slc, true, true) + yys3551 := string(yys3551Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3551 { + 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 "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3551) + } // end switch yys3551 + } // end for yyj3551 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3555 int + var yyb3555 bool + var yyhl3555 bool = l >= 0 + yyj3555++ + if yyhl3555 { + yyb3555 = yyj3555 > l + } else { + yyb3555 = r.CheckBreak() + } + if yyb3555 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3555++ + if yyhl3555 { + yyb3555 = yyj3555 > l + } else { + yyb3555 = r.CheckBreak() + } + if yyb3555 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3555++ + if yyhl3555 { + yyb3555 = yyj3555 > l + } else { + yyb3555 = r.CheckBreak() + } + if yyb3555 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj3555++ + if yyhl3555 { + yyb3555 = yyj3555 > l + } else { + yyb3555 = r.CheckBreak() + } + if yyb3555 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3555-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3559 := z.EncBinary() + _ = yym3559 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3560 := !z.EncBinary() + yy2arr3560 := z.EncBasicHandle().StructToArray + var yyq3560 [3]bool + _, _, _ = yysep3560, yyq3560, yy2arr3560 + const yyr3560 bool = false + yyq3560[0] = x.Kind != "" + yyq3560[1] = x.APIVersion != "" + var yynn3560 int + if yyr3560 || yy2arr3560 { + r.EncodeArrayStart(3) + } else { + yynn3560 = 1 + for _, b := range yyq3560 { + if b { + yynn3560++ + } + } + r.EncodeMapStart(yynn3560) + yynn3560 = 0 + } + if yyr3560 || yy2arr3560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3560[0] { + yym3562 := z.EncBinary() + _ = yym3562 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3560[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3563 := z.EncBinary() + _ = yym3563 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3560 || yy2arr3560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3560[1] { + yym3565 := z.EncBinary() + _ = yym3565 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3560[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3566 := z.EncBinary() + _ = yym3566 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3560 || yy2arr3560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3568 := z.EncBinary() + _ = yym3568 + 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) + yym3569 := z.EncBinary() + _ = yym3569 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr3560 || yy2arr3560 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3570 := z.DecBinary() + _ = yym3570 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3571 := r.ContainerType() + if yyct3571 == codecSelferValueTypeMap1234 { + yyl3571 := r.ReadMapStart() + if yyl3571 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3571, d) + } + } else if yyct3571 == codecSelferValueTypeArray1234 { + yyl3571 := r.ReadArrayStart() + if yyl3571 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3571, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3572Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3572Slc + var yyhl3572 bool = l >= 0 + for yyj3572 := 0; ; yyj3572++ { + if yyhl3572 { + if yyj3572 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3572Slc = r.DecodeBytes(yys3572Slc, true, true) + yys3572 := string(yys3572Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3572 { + 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 "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3572) + } // end switch yys3572 + } // end for yyj3572 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3576 int + var yyb3576 bool + var yyhl3576 bool = l >= 0 + yyj3576++ + if yyhl3576 { + yyb3576 = yyj3576 > l + } else { + yyb3576 = r.CheckBreak() + } + if yyb3576 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3576++ + if yyhl3576 { + yyb3576 = yyj3576 > l + } else { + yyb3576 = r.CheckBreak() + } + if yyb3576 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3576++ + if yyhl3576 { + yyb3576 = yyj3576 > l + } else { + yyb3576 = r.CheckBreak() + } + if yyb3576 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj3576++ + if yyhl3576 { + yyb3576 = yyj3576 > l + } else { + yyb3576 = r.CheckBreak() + } + if yyb3576 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3576-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3580 := z.EncBinary() + _ = yym3580 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3581 := !z.EncBinary() + yy2arr3581 := z.EncBasicHandle().StructToArray + var yyq3581 [5]bool + _, _, _ = yysep3581, yyq3581, yy2arr3581 + const yyr3581 bool = false + yyq3581[4] = x.Controller != nil + var yynn3581 int + if yyr3581 || yy2arr3581 { + r.EncodeArrayStart(5) + } else { + yynn3581 = 4 + for _, b := range yyq3581 { + if b { + yynn3581++ + } + } + r.EncodeMapStart(yynn3581) + yynn3581 = 0 + } + if yyr3581 || yy2arr3581 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3583 := z.EncBinary() + _ = yym3583 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3584 := z.EncBinary() + _ = yym3584 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + if yyr3581 || yy2arr3581 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3586 := z.EncBinary() + _ = yym3586 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3587 := z.EncBinary() + _ = yym3587 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + if yyr3581 || yy2arr3581 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3589 := z.EncBinary() + _ = yym3589 + 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) + yym3590 := z.EncBinary() + _ = yym3590 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr3581 || yy2arr3581 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3592 := z.EncBinary() + _ = yym3592 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3593 := z.EncBinary() + _ = yym3593 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + if yyr3581 || yy2arr3581 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3581[4] { + if x.Controller == nil { + r.EncodeNil() + } else { + yy3595 := *x.Controller + yym3596 := z.EncBinary() + _ = yym3596 + if false { + } else { + r.EncodeBool(bool(yy3595)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3581[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("controller")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Controller == nil { + r.EncodeNil() + } else { + yy3597 := *x.Controller + yym3598 := z.EncBinary() + _ = yym3598 + if false { + } else { + r.EncodeBool(bool(yy3597)) + } + } + } + } + if yyr3581 || yy2arr3581 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3599 := z.DecBinary() + _ = yym3599 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3600 := r.ContainerType() + if yyct3600 == codecSelferValueTypeMap1234 { + yyl3600 := r.ReadMapStart() + if yyl3600 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3600, d) + } + } else if yyct3600 == codecSelferValueTypeArray1234 { + yyl3600 := r.ReadArrayStart() + if yyl3600 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3600, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3601Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3601Slc + var yyhl3601 bool = l >= 0 + for yyj3601 := 0; ; yyj3601++ { + if yyhl3601 { + if yyj3601 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3601Slc = r.DecodeBytes(yys3601Slc, true, true) + yys3601 := string(yys3601Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3601 { + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "uid": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + case "controller": + if r.TryDecodeAsNil() { + if x.Controller != nil { + x.Controller = nil + } + } else { + if x.Controller == nil { + x.Controller = new(bool) + } + yym3607 := z.DecBinary() + _ = yym3607 + if false { + } else { + *((*bool)(x.Controller)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys3601) + } // end switch yys3601 + } // end for yyj3601 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3608 int + var yyb3608 bool + var yyhl3608 bool = l >= 0 + yyj3608++ + if yyhl3608 { + yyb3608 = yyj3608 > l + } else { + yyb3608 = r.CheckBreak() + } + if yyb3608 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3608++ + if yyhl3608 { + yyb3608 = yyj3608 > l + } else { + yyb3608 = r.CheckBreak() + } + if yyb3608 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3608++ + if yyhl3608 { + yyb3608 = yyj3608 > l + } else { + yyb3608 = r.CheckBreak() + } + if yyb3608 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj3608++ + if yyhl3608 { + yyb3608 = yyj3608 > l + } else { + yyb3608 = r.CheckBreak() + } + if yyb3608 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + yyj3608++ + if yyhl3608 { + yyb3608 = yyj3608 > l + } else { + yyb3608 = r.CheckBreak() + } + if yyb3608 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Controller != nil { + x.Controller = nil + } + } else { + if x.Controller == nil { + x.Controller = new(bool) + } + yym3614 := z.DecBinary() + _ = yym3614 + if false { + } else { + *((*bool)(x.Controller)) = r.DecodeBool() + } + } + for { + yyj3608++ + if yyhl3608 { + yyb3608 = yyj3608 > l + } else { + yyb3608 = r.CheckBreak() + } + if yyb3608 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3608-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3615 := z.EncBinary() + _ = yym3615 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3616 := !z.EncBinary() + yy2arr3616 := z.EncBasicHandle().StructToArray + var yyq3616 [7]bool + _, _, _ = yysep3616, yyq3616, yy2arr3616 + const yyr3616 bool = false + yyq3616[0] = x.Kind != "" + yyq3616[1] = x.Namespace != "" + yyq3616[2] = x.Name != "" + yyq3616[3] = x.UID != "" + yyq3616[4] = x.APIVersion != "" + yyq3616[5] = x.ResourceVersion != "" + yyq3616[6] = x.FieldPath != "" + var yynn3616 int + if yyr3616 || yy2arr3616 { + r.EncodeArrayStart(7) + } else { + yynn3616 = 0 + for _, b := range yyq3616 { + if b { + yynn3616++ + } + } + r.EncodeMapStart(yynn3616) + yynn3616 = 0 + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[0] { + yym3618 := z.EncBinary() + _ = yym3618 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3616[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3619 := z.EncBinary() + _ = yym3619 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[1] { + yym3621 := z.EncBinary() + _ = yym3621 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3616[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3622 := z.EncBinary() + _ = yym3622 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[2] { + yym3624 := z.EncBinary() + _ = yym3624 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3616[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3625 := z.EncBinary() + _ = yym3625 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[3] { + yym3627 := z.EncBinary() + _ = yym3627 + 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 yyq3616[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3628 := z.EncBinary() + _ = yym3628 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[4] { + yym3630 := z.EncBinary() + _ = yym3630 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3616[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3631 := z.EncBinary() + _ = yym3631 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[5] { + yym3633 := z.EncBinary() + _ = yym3633 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3616[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3634 := z.EncBinary() + _ = yym3634 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3616[6] { + yym3636 := z.EncBinary() + _ = yym3636 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3616[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3637 := z.EncBinary() + _ = yym3637 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } + } + if yyr3616 || yy2arr3616 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3638 := z.DecBinary() + _ = yym3638 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3639 := r.ContainerType() + if yyct3639 == codecSelferValueTypeMap1234 { + yyl3639 := r.ReadMapStart() + if yyl3639 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3639, d) + } + } else if yyct3639 == codecSelferValueTypeArray1234 { + yyl3639 := r.ReadArrayStart() + if yyl3639 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3639, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3640Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3640Slc + var yyhl3640 bool = l >= 0 + for yyj3640 := 0; ; yyj3640++ { + if yyhl3640 { + if yyj3640 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3640Slc = r.DecodeBytes(yys3640Slc, true, true) + yys3640 := string(yys3640Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3640 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "uid": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "resourceVersion": + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + case "fieldPath": + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3640) + } // end switch yys3640 + } // end for yyj3640 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3648 int + var yyb3648 bool + var yyhl3648 bool = l >= 0 + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + for { + yyj3648++ + if yyhl3648 { + yyb3648 = yyj3648 > l + } else { + yyb3648 = r.CheckBreak() + } + if yyb3648 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3648-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3656 := z.EncBinary() + _ = yym3656 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3657 := !z.EncBinary() + yy2arr3657 := z.EncBasicHandle().StructToArray + var yyq3657 [1]bool + _, _, _ = yysep3657, yyq3657, yy2arr3657 + const yyr3657 bool = false + var yynn3657 int + if yyr3657 || yy2arr3657 { + r.EncodeArrayStart(1) + } else { + yynn3657 = 1 + for _, b := range yyq3657 { + if b { + yynn3657++ + } + } + r.EncodeMapStart(yynn3657) + yynn3657 = 0 + } + if yyr3657 || yy2arr3657 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3659 := z.EncBinary() + _ = yym3659 + 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) + yym3660 := z.EncBinary() + _ = yym3660 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr3657 || yy2arr3657 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3661 := z.DecBinary() + _ = yym3661 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3662 := r.ContainerType() + if yyct3662 == codecSelferValueTypeMap1234 { + yyl3662 := r.ReadMapStart() + if yyl3662 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3662, d) + } + } else if yyct3662 == codecSelferValueTypeArray1234 { + yyl3662 := r.ReadArrayStart() + if yyl3662 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3662, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3663Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3663Slc + var yyhl3663 bool = l >= 0 + for yyj3663 := 0; ; yyj3663++ { + if yyhl3663 { + if yyj3663 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3663Slc = r.DecodeBytes(yys3663Slc, true, true) + yys3663 := string(yys3663Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3663 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3663) + } // end switch yys3663 + } // end for yyj3663 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3665 int + var yyb3665 bool + var yyhl3665 bool = l >= 0 + yyj3665++ + if yyhl3665 { + yyb3665 = yyj3665 > l + } else { + yyb3665 = r.CheckBreak() + } + if yyb3665 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + for { + yyj3665++ + if yyhl3665 { + yyb3665 = yyj3665 > l + } else { + yyb3665 = r.CheckBreak() + } + if yyb3665 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3665-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 { + yym3667 := z.EncBinary() + _ = yym3667 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3668 := !z.EncBinary() + yy2arr3668 := z.EncBasicHandle().StructToArray + var yyq3668 [3]bool + _, _, _ = yysep3668, yyq3668, yy2arr3668 + const yyr3668 bool = false + yyq3668[0] = x.Kind != "" + yyq3668[1] = x.APIVersion != "" + yyq3668[2] = true + var yynn3668 int + if yyr3668 || yy2arr3668 { + r.EncodeArrayStart(3) + } else { + yynn3668 = 0 + for _, b := range yyq3668 { + if b { + yynn3668++ + } + } + r.EncodeMapStart(yynn3668) + yynn3668 = 0 + } + if yyr3668 || yy2arr3668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3668[0] { + yym3670 := z.EncBinary() + _ = yym3670 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3668[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3671 := z.EncBinary() + _ = yym3671 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3668 || yy2arr3668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3668[1] { + yym3673 := z.EncBinary() + _ = yym3673 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3668[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3674 := z.EncBinary() + _ = yym3674 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3668 || yy2arr3668 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3668[2] { + yy3676 := &x.Reference + yy3676.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3668[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reference")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3677 := &x.Reference + yy3677.CodecEncodeSelf(e) + } + } + if yyr3668 || yy2arr3668 { + 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 + 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 *SerializedReference) 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 "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 { + yyv3683 := &x.Reference + yyv3683.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3680) + } // end switch yys3680 + } // end for yyj3680 + 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 yyj3684 int + var yyb3684 bool + var yyhl3684 bool = l >= 0 + yyj3684++ + if yyhl3684 { + yyb3684 = yyj3684 > l + } else { + yyb3684 = r.CheckBreak() + } + if yyb3684 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3684++ + if yyhl3684 { + yyb3684 = yyj3684 > l + } else { + yyb3684 = r.CheckBreak() + } + if yyb3684 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3684++ + if yyhl3684 { + yyb3684 = yyj3684 > l + } else { + yyb3684 = r.CheckBreak() + } + if yyb3684 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reference = ObjectReference{} + } else { + yyv3687 := &x.Reference + yyv3687.CodecDecodeSelf(d) + } + for { + yyj3684++ + if yyhl3684 { + yyb3684 = yyj3684 > l + } else { + yyb3684 = r.CheckBreak() + } + if yyb3684 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3684-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 { + yym3688 := z.EncBinary() + _ = yym3688 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3689 := !z.EncBinary() + yy2arr3689 := z.EncBasicHandle().StructToArray + var yyq3689 [2]bool + _, _, _ = yysep3689, yyq3689, yy2arr3689 + const yyr3689 bool = false + yyq3689[0] = x.Component != "" + yyq3689[1] = x.Host != "" + var yynn3689 int + if yyr3689 || yy2arr3689 { + r.EncodeArrayStart(2) + } else { + yynn3689 = 0 + for _, b := range yyq3689 { + if b { + yynn3689++ + } + } + r.EncodeMapStart(yynn3689) + yynn3689 = 0 + } + if yyr3689 || yy2arr3689 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3689[0] { + yym3691 := z.EncBinary() + _ = yym3691 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3689[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("component")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3692 := z.EncBinary() + _ = yym3692 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } + } + } + if yyr3689 || yy2arr3689 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3689[1] { + yym3694 := z.EncBinary() + _ = yym3694 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3689[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3695 := z.EncBinary() + _ = yym3695 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } + } + if yyr3689 || yy2arr3689 { + 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 + yym3696 := z.DecBinary() + _ = yym3696 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3697 := r.ContainerType() + if yyct3697 == codecSelferValueTypeMap1234 { + yyl3697 := r.ReadMapStart() + if yyl3697 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3697, d) + } + } else if yyct3697 == codecSelferValueTypeArray1234 { + yyl3697 := r.ReadArrayStart() + if yyl3697 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3697, 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 yys3698Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3698Slc + var yyhl3698 bool = l >= 0 + for yyj3698 := 0; ; yyj3698++ { + if yyhl3698 { + if yyj3698 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3698Slc = r.DecodeBytes(yys3698Slc, true, true) + yys3698 := string(yys3698Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3698 { + 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, yys3698) + } // end switch yys3698 + } // end for yyj3698 + 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 yyj3701 int + var yyb3701 bool + var yyhl3701 bool = l >= 0 + yyj3701++ + if yyhl3701 { + yyb3701 = yyj3701 > l + } else { + yyb3701 = r.CheckBreak() + } + if yyb3701 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Component = "" + } else { + x.Component = string(r.DecodeString()) + } + yyj3701++ + if yyhl3701 { + yyb3701 = yyj3701 > l + } else { + yyb3701 = r.CheckBreak() + } + if yyb3701 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + for { + yyj3701++ + if yyhl3701 { + yyb3701 = yyj3701 > l + } else { + yyb3701 = r.CheckBreak() + } + if yyb3701 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3701-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 { + yym3704 := z.EncBinary() + _ = yym3704 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3705 := !z.EncBinary() + yy2arr3705 := z.EncBasicHandle().StructToArray + var yyq3705 [11]bool + _, _, _ = yysep3705, yyq3705, yy2arr3705 + const yyr3705 bool = false + yyq3705[0] = x.Kind != "" + yyq3705[1] = x.APIVersion != "" + yyq3705[2] = true + yyq3705[3] = true + yyq3705[4] = x.Reason != "" + yyq3705[5] = x.Message != "" + yyq3705[6] = true + yyq3705[7] = true + yyq3705[8] = true + yyq3705[9] = x.Count != 0 + yyq3705[10] = x.Type != "" + var yynn3705 int + if yyr3705 || yy2arr3705 { + r.EncodeArrayStart(11) + } else { + yynn3705 = 0 + for _, b := range yyq3705 { + if b { + yynn3705++ + } + } + r.EncodeMapStart(yynn3705) + yynn3705 = 0 + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[0] { + yym3707 := z.EncBinary() + _ = yym3707 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3705[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3708 := z.EncBinary() + _ = yym3708 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[1] { + yym3710 := z.EncBinary() + _ = yym3710 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3705[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3711 := z.EncBinary() + _ = yym3711 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[2] { + yy3713 := &x.ObjectMeta + yy3713.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3705[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3714 := &x.ObjectMeta + yy3714.CodecEncodeSelf(e) + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[3] { + yy3716 := &x.InvolvedObject + yy3716.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3705[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3717 := &x.InvolvedObject + yy3717.CodecEncodeSelf(e) + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[4] { + yym3719 := z.EncBinary() + _ = yym3719 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3705[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3720 := z.EncBinary() + _ = yym3720 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[5] { + yym3722 := z.EncBinary() + _ = yym3722 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3705[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3723 := z.EncBinary() + _ = yym3723 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[6] { + yy3725 := &x.Source + yy3725.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3705[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("source")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3726 := &x.Source + yy3726.CodecEncodeSelf(e) + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[7] { + yy3728 := &x.FirstTimestamp + yym3729 := z.EncBinary() + _ = yym3729 + if false { + } else if z.HasExtensions() && z.EncExt(yy3728) { + } else if yym3729 { + z.EncBinaryMarshal(yy3728) + } else if !yym3729 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3728) + } else { + z.EncFallback(yy3728) + } + } else { + r.EncodeNil() + } + } else { + if yyq3705[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3730 := &x.FirstTimestamp + yym3731 := z.EncBinary() + _ = yym3731 + if false { + } else if z.HasExtensions() && z.EncExt(yy3730) { + } else if yym3731 { + z.EncBinaryMarshal(yy3730) + } else if !yym3731 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3730) + } else { + z.EncFallback(yy3730) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[8] { + yy3733 := &x.LastTimestamp + yym3734 := z.EncBinary() + _ = yym3734 + if false { + } else if z.HasExtensions() && z.EncExt(yy3733) { + } else if yym3734 { + z.EncBinaryMarshal(yy3733) + } else if !yym3734 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3733) + } else { + z.EncFallback(yy3733) + } + } else { + r.EncodeNil() + } + } else { + if yyq3705[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3735 := &x.LastTimestamp + yym3736 := z.EncBinary() + _ = yym3736 + if false { + } else if z.HasExtensions() && z.EncExt(yy3735) { + } else if yym3736 { + z.EncBinaryMarshal(yy3735) + } else if !yym3736 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3735) + } else { + z.EncFallback(yy3735) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[9] { + yym3738 := z.EncBinary() + _ = yym3738 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq3705[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("count")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3739 := z.EncBinary() + _ = yym3739 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + } + if yyr3705 || yy2arr3705 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3705[10] { + yym3741 := z.EncBinary() + _ = yym3741 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3705[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3742 := z.EncBinary() + _ = yym3742 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } + if yyr3705 || yy2arr3705 { + 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 + yym3743 := z.DecBinary() + _ = yym3743 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3744 := r.ContainerType() + if yyct3744 == codecSelferValueTypeMap1234 { + yyl3744 := r.ReadMapStart() + if yyl3744 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3744, d) + } + } else if yyct3744 == codecSelferValueTypeArray1234 { + yyl3744 := r.ReadArrayStart() + if yyl3744 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3744, 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 yys3745Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3745Slc + var yyhl3745 bool = l >= 0 + for yyj3745 := 0; ; yyj3745++ { + if yyhl3745 { + if yyj3745 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3745Slc = r.DecodeBytes(yys3745Slc, true, true) + yys3745 := string(yys3745Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3745 { + 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 { + yyv3748 := &x.ObjectMeta + yyv3748.CodecDecodeSelf(d) + } + case "involvedObject": + if r.TryDecodeAsNil() { + x.InvolvedObject = ObjectReference{} + } else { + yyv3749 := &x.InvolvedObject + yyv3749.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 { + yyv3752 := &x.Source + yyv3752.CodecDecodeSelf(d) + } + case "firstTimestamp": + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3753 := &x.FirstTimestamp + yym3754 := z.DecBinary() + _ = yym3754 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3753) { + } else if yym3754 { + z.DecBinaryUnmarshal(yyv3753) + } else if !yym3754 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3753) + } else { + z.DecFallback(yyv3753, false) + } + } + case "lastTimestamp": + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3755 := &x.LastTimestamp + yym3756 := z.DecBinary() + _ = yym3756 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3755) { + } else if yym3756 { + z.DecBinaryUnmarshal(yyv3755) + } else if !yym3756 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3755) + } else { + z.DecFallback(yyv3755, 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, yys3745) + } // end switch yys3745 + } // end for yyj3745 + 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 yyj3759 int + var yyb3759 bool + var yyhl3759 bool = l >= 0 + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3762 := &x.ObjectMeta + yyv3762.CodecDecodeSelf(d) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.InvolvedObject = ObjectReference{} + } else { + yyv3763 := &x.InvolvedObject + yyv3763.CodecDecodeSelf(d) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Source = EventSource{} + } else { + yyv3766 := &x.Source + yyv3766.CodecDecodeSelf(d) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3767 := &x.FirstTimestamp + yym3768 := z.DecBinary() + _ = yym3768 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3767) { + } else if yym3768 { + z.DecBinaryUnmarshal(yyv3767) + } else if !yym3768 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3767) + } else { + z.DecFallback(yyv3767, false) + } + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3769 := &x.LastTimestamp + yym3770 := z.DecBinary() + _ = yym3770 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3769) { + } else if yym3770 { + z.DecBinaryUnmarshal(yyv3769) + } else if !yym3770 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3769) + } else { + z.DecFallback(yyv3769, false) + } + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = int32(r.DecodeInt(32)) + } + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } + for { + yyj3759++ + if yyhl3759 { + yyb3759 = yyj3759 > l + } else { + yyb3759 = r.CheckBreak() + } + if yyb3759 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3759-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 { + yym3773 := z.EncBinary() + _ = yym3773 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3774 := !z.EncBinary() + yy2arr3774 := z.EncBasicHandle().StructToArray + var yyq3774 [4]bool + _, _, _ = yysep3774, yyq3774, yy2arr3774 + const yyr3774 bool = false + yyq3774[0] = x.Kind != "" + yyq3774[1] = x.APIVersion != "" + yyq3774[2] = true + var yynn3774 int + if yyr3774 || yy2arr3774 { + r.EncodeArrayStart(4) + } else { + yynn3774 = 1 + for _, b := range yyq3774 { + if b { + yynn3774++ + } + } + r.EncodeMapStart(yynn3774) + yynn3774 = 0 + } + if yyr3774 || yy2arr3774 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3774[0] { + yym3776 := z.EncBinary() + _ = yym3776 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3774[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3777 := z.EncBinary() + _ = yym3777 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3774 || yy2arr3774 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3774[1] { + yym3779 := z.EncBinary() + _ = yym3779 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3774[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3780 := z.EncBinary() + _ = yym3780 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3774 || yy2arr3774 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3774[2] { + yy3782 := &x.ListMeta + yym3783 := z.EncBinary() + _ = yym3783 + if false { + } else if z.HasExtensions() && z.EncExt(yy3782) { + } else { + z.EncFallback(yy3782) + } + } else { + r.EncodeNil() + } + } else { + if yyq3774[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3784 := &x.ListMeta + yym3785 := z.EncBinary() + _ = yym3785 + if false { + } else if z.HasExtensions() && z.EncExt(yy3784) { + } else { + z.EncFallback(yy3784) + } + } + } + if yyr3774 || yy2arr3774 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3787 := z.EncBinary() + _ = yym3787 + 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 { + yym3788 := z.EncBinary() + _ = yym3788 + if false { + } else { + h.encSliceEvent(([]Event)(x.Items), e) + } + } + } + if yyr3774 || yy2arr3774 { + 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 + yym3789 := z.DecBinary() + _ = yym3789 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3790 := r.ContainerType() + if yyct3790 == codecSelferValueTypeMap1234 { + yyl3790 := r.ReadMapStart() + if yyl3790 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3790, d) + } + } else if yyct3790 == codecSelferValueTypeArray1234 { + yyl3790 := r.ReadArrayStart() + if yyl3790 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3790, 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 yys3791Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3791Slc + var yyhl3791 bool = l >= 0 + for yyj3791 := 0; ; yyj3791++ { + if yyhl3791 { + if yyj3791 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3791Slc = r.DecodeBytes(yys3791Slc, true, true) + yys3791 := string(yys3791Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3791 { + 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 { + yyv3794 := &x.ListMeta + yym3795 := z.DecBinary() + _ = yym3795 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3794) { + } else { + z.DecFallback(yyv3794, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3796 := &x.Items + yym3797 := z.DecBinary() + _ = yym3797 + if false { + } else { + h.decSliceEvent((*[]Event)(yyv3796), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3791) + } // end switch yys3791 + } // end for yyj3791 + 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 yyj3798 int + var yyb3798 bool + var yyhl3798 bool = l >= 0 + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l + } else { + yyb3798 = r.CheckBreak() + } + if yyb3798 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l + } else { + yyb3798 = r.CheckBreak() + } + if yyb3798 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l + } else { + yyb3798 = r.CheckBreak() + } + if yyb3798 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3801 := &x.ListMeta + yym3802 := z.DecBinary() + _ = yym3802 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3801) { + } else { + z.DecFallback(yyv3801, false) + } + } + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l + } else { + yyb3798 = r.CheckBreak() + } + if yyb3798 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3803 := &x.Items + yym3804 := z.DecBinary() + _ = yym3804 + if false { + } else { + h.decSliceEvent((*[]Event)(yyv3803), d) + } + } + for { + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l + } else { + yyb3798 = r.CheckBreak() + } + if yyb3798 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3798-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 { + yym3805 := z.EncBinary() + _ = yym3805 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3806 := !z.EncBinary() + yy2arr3806 := z.EncBasicHandle().StructToArray + var yyq3806 [4]bool + _, _, _ = yysep3806, yyq3806, yy2arr3806 + const yyr3806 bool = false + yyq3806[0] = x.Kind != "" + yyq3806[1] = x.APIVersion != "" + yyq3806[2] = true + var yynn3806 int + if yyr3806 || yy2arr3806 { + r.EncodeArrayStart(4) + } else { + yynn3806 = 1 + for _, b := range yyq3806 { + if b { + yynn3806++ + } + } + r.EncodeMapStart(yynn3806) + yynn3806 = 0 + } + if yyr3806 || yy2arr3806 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3806[0] { + yym3808 := z.EncBinary() + _ = yym3808 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3806[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3809 := z.EncBinary() + _ = yym3809 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3806 || yy2arr3806 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3806[1] { + yym3811 := z.EncBinary() + _ = yym3811 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3806[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3812 := z.EncBinary() + _ = yym3812 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3806 || yy2arr3806 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3806[2] { + yy3814 := &x.ListMeta + yym3815 := z.EncBinary() + _ = yym3815 + if false { + } else if z.HasExtensions() && z.EncExt(yy3814) { + } else { + z.EncFallback(yy3814) + } + } else { + r.EncodeNil() + } + } else { + if yyq3806[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3816 := &x.ListMeta + yym3817 := z.EncBinary() + _ = yym3817 + if false { + } else if z.HasExtensions() && z.EncExt(yy3816) { + } else { + z.EncFallback(yy3816) + } + } + } + if yyr3806 || yy2arr3806 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3819 := z.EncBinary() + _ = yym3819 + 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 { + yym3820 := z.EncBinary() + _ = yym3820 + if false { + } else { + h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) + } + } + } + if yyr3806 || yy2arr3806 { + 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 + yym3821 := z.DecBinary() + _ = yym3821 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3822 := r.ContainerType() + if yyct3822 == codecSelferValueTypeMap1234 { + yyl3822 := r.ReadMapStart() + if yyl3822 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3822, d) + } + } else if yyct3822 == codecSelferValueTypeArray1234 { + yyl3822 := r.ReadArrayStart() + if yyl3822 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3822, 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 yys3823Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3823Slc + var yyhl3823 bool = l >= 0 + for yyj3823 := 0; ; yyj3823++ { + if yyhl3823 { + if yyj3823 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3823Slc = r.DecodeBytes(yys3823Slc, true, true) + yys3823 := string(yys3823Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3823 { + 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 { + yyv3826 := &x.ListMeta + yym3827 := z.DecBinary() + _ = yym3827 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3826) { + } else { + z.DecFallback(yyv3826, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3828 := &x.Items + yym3829 := z.DecBinary() + _ = yym3829 + if false { + } else { + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3828), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3823) + } // end switch yys3823 + } // end for yyj3823 + 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 yyj3830 int + var yyb3830 bool + var yyhl3830 bool = l >= 0 + yyj3830++ + if yyhl3830 { + yyb3830 = yyj3830 > l + } else { + yyb3830 = r.CheckBreak() + } + if yyb3830 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3830++ + if yyhl3830 { + yyb3830 = yyj3830 > l + } else { + yyb3830 = r.CheckBreak() + } + if yyb3830 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3830++ + if yyhl3830 { + yyb3830 = yyj3830 > l + } else { + yyb3830 = r.CheckBreak() + } + if yyb3830 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3833 := &x.ListMeta + yym3834 := z.DecBinary() + _ = yym3834 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3833) { + } else { + z.DecFallback(yyv3833, false) + } + } + yyj3830++ + if yyhl3830 { + yyb3830 = yyj3830 > l + } else { + yyb3830 = r.CheckBreak() + } + if yyb3830 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3835 := &x.Items + yym3836 := z.DecBinary() + _ = yym3836 + if false { + } else { + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3835), d) + } + } + for { + yyj3830++ + if yyhl3830 { + yyb3830 = yyj3830 > l + } else { + yyb3830 = r.CheckBreak() + } + if yyb3830 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3830-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3837 := z.EncBinary() + _ = yym3837 + 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 + yym3838 := z.DecBinary() + _ = yym3838 + 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 { + yym3839 := z.EncBinary() + _ = yym3839 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3840 := !z.EncBinary() + yy2arr3840 := z.EncBasicHandle().StructToArray + var yyq3840 [6]bool + _, _, _ = yysep3840, yyq3840, yy2arr3840 + const yyr3840 bool = false + yyq3840[0] = x.Type != "" + yyq3840[1] = len(x.Max) != 0 + yyq3840[2] = len(x.Min) != 0 + yyq3840[3] = len(x.Default) != 0 + yyq3840[4] = len(x.DefaultRequest) != 0 + yyq3840[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn3840 int + if yyr3840 || yy2arr3840 { + r.EncodeArrayStart(6) + } else { + yynn3840 = 0 + for _, b := range yyq3840 { + if b { + yynn3840++ + } + } + r.EncodeMapStart(yynn3840) + yynn3840 = 0 + } + if yyr3840 || yy2arr3840 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3840[0] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3840[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr3840 || yy2arr3840 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3840[1] { + if x.Max == nil { + r.EncodeNil() + } else { + x.Max.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3840[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 yyr3840 || yy2arr3840 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3840[2] { + if x.Min == nil { + r.EncodeNil() + } else { + x.Min.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3840[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 yyr3840 || yy2arr3840 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3840[3] { + if x.Default == nil { + r.EncodeNil() + } else { + x.Default.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3840[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 yyr3840 || yy2arr3840 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3840[4] { + if x.DefaultRequest == nil { + r.EncodeNil() + } else { + x.DefaultRequest.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3840[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 yyr3840 || yy2arr3840 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3840[5] { + if x.MaxLimitRequestRatio == nil { + r.EncodeNil() + } else { + x.MaxLimitRequestRatio.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3840[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 yyr3840 || yy2arr3840 { + 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 + yym3847 := z.DecBinary() + _ = yym3847 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3848 := r.ContainerType() + if yyct3848 == codecSelferValueTypeMap1234 { + yyl3848 := r.ReadMapStart() + if yyl3848 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3848, d) + } + } else if yyct3848 == codecSelferValueTypeArray1234 { + yyl3848 := r.ReadArrayStart() + if yyl3848 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3848, 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 yys3849Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3849Slc + var yyhl3849 bool = l >= 0 + for yyj3849 := 0; ; yyj3849++ { + if yyhl3849 { + if yyj3849 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3849Slc = r.DecodeBytes(yys3849Slc, true, true) + yys3849 := string(yys3849Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3849 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + case "max": + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv3851 := &x.Max + yyv3851.CodecDecodeSelf(d) + } + case "min": + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv3852 := &x.Min + yyv3852.CodecDecodeSelf(d) + } + case "default": + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv3853 := &x.Default + yyv3853.CodecDecodeSelf(d) + } + case "defaultRequest": + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv3854 := &x.DefaultRequest + yyv3854.CodecDecodeSelf(d) + } + case "maxLimitRequestRatio": + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv3855 := &x.MaxLimitRequestRatio + yyv3855.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3849) + } // end switch yys3849 + } // end for yyj3849 + 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 yyj3856 int + var yyb3856 bool + var yyhl3856 bool = l >= 0 + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv3858 := &x.Max + yyv3858.CodecDecodeSelf(d) + } + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv3859 := &x.Min + yyv3859.CodecDecodeSelf(d) + } + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv3860 := &x.Default + yyv3860.CodecDecodeSelf(d) + } + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv3861 := &x.DefaultRequest + yyv3861.CodecDecodeSelf(d) + } + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv3862 := &x.MaxLimitRequestRatio + yyv3862.CodecDecodeSelf(d) + } + for { + yyj3856++ + if yyhl3856 { + yyb3856 = yyj3856 > l + } else { + yyb3856 = r.CheckBreak() + } + if yyb3856 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3856-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 { + yym3863 := z.EncBinary() + _ = yym3863 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3864 := !z.EncBinary() + yy2arr3864 := z.EncBasicHandle().StructToArray + var yyq3864 [1]bool + _, _, _ = yysep3864, yyq3864, yy2arr3864 + const yyr3864 bool = false + var yynn3864 int + if yyr3864 || yy2arr3864 { + r.EncodeArrayStart(1) + } else { + yynn3864 = 1 + for _, b := range yyq3864 { + if b { + yynn3864++ + } + } + r.EncodeMapStart(yynn3864) + yynn3864 = 0 + } + if yyr3864 || yy2arr3864 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Limits == nil { + r.EncodeNil() + } else { + yym3866 := z.EncBinary() + _ = yym3866 + 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 { + yym3867 := z.EncBinary() + _ = yym3867 + if false { + } else { + h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + } + } + } + if yyr3864 || yy2arr3864 { + 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 + yym3868 := z.DecBinary() + _ = yym3868 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3869 := r.ContainerType() + if yyct3869 == codecSelferValueTypeMap1234 { + yyl3869 := r.ReadMapStart() + if yyl3869 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3869, d) + } + } else if yyct3869 == codecSelferValueTypeArray1234 { + yyl3869 := r.ReadArrayStart() + if yyl3869 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3869, 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 yys3870Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3870Slc + var yyhl3870 bool = l >= 0 + for yyj3870 := 0; ; yyj3870++ { + if yyhl3870 { + if yyj3870 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3870Slc = r.DecodeBytes(yys3870Slc, true, true) + yys3870 := string(yys3870Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3870 { + case "limits": + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv3871 := &x.Limits + yym3872 := z.DecBinary() + _ = yym3872 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3871), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3870) + } // end switch yys3870 + } // end for yyj3870 + 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 yyj3873 int + var yyb3873 bool + var yyhl3873 bool = l >= 0 + yyj3873++ + if yyhl3873 { + yyb3873 = yyj3873 > l + } else { + yyb3873 = r.CheckBreak() + } + if yyb3873 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv3874 := &x.Limits + yym3875 := z.DecBinary() + _ = yym3875 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3874), d) + } + } + for { + yyj3873++ + if yyhl3873 { + yyb3873 = yyj3873 > l + } else { + yyb3873 = r.CheckBreak() + } + if yyb3873 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3873-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 { + yym3876 := z.EncBinary() + _ = yym3876 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3877 := !z.EncBinary() + yy2arr3877 := z.EncBasicHandle().StructToArray + var yyq3877 [4]bool + _, _, _ = yysep3877, yyq3877, yy2arr3877 + const yyr3877 bool = false + yyq3877[0] = x.Kind != "" + yyq3877[1] = x.APIVersion != "" + yyq3877[2] = true + yyq3877[3] = true + var yynn3877 int + if yyr3877 || yy2arr3877 { + r.EncodeArrayStart(4) + } else { + yynn3877 = 0 + for _, b := range yyq3877 { + if b { + yynn3877++ + } + } + r.EncodeMapStart(yynn3877) + yynn3877 = 0 + } + if yyr3877 || yy2arr3877 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3877[0] { + yym3879 := z.EncBinary() + _ = yym3879 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3877[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3880 := z.EncBinary() + _ = yym3880 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3877 || yy2arr3877 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3877[1] { + yym3882 := z.EncBinary() + _ = yym3882 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3877[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3883 := z.EncBinary() + _ = yym3883 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3877 || yy2arr3877 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3877[2] { + yy3885 := &x.ObjectMeta + yy3885.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3877[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3886 := &x.ObjectMeta + yy3886.CodecEncodeSelf(e) + } + } + if yyr3877 || yy2arr3877 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3877[3] { + yy3888 := &x.Spec + yy3888.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3877[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3889 := &x.Spec + yy3889.CodecEncodeSelf(e) + } + } + if yyr3877 || yy2arr3877 { + 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 + yym3890 := z.DecBinary() + _ = yym3890 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3891 := r.ContainerType() + if yyct3891 == codecSelferValueTypeMap1234 { + yyl3891 := r.ReadMapStart() + if yyl3891 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3891, d) + } + } else if yyct3891 == codecSelferValueTypeArray1234 { + yyl3891 := r.ReadArrayStart() + if yyl3891 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3891, 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 yys3892Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3892Slc + var yyhl3892 bool = l >= 0 + for yyj3892 := 0; ; yyj3892++ { + if yyhl3892 { + if yyj3892 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3892Slc = r.DecodeBytes(yys3892Slc, true, true) + yys3892 := string(yys3892Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3892 { + 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 { + yyv3895 := &x.ObjectMeta + yyv3895.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv3896 := &x.Spec + yyv3896.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3892) + } // end switch yys3892 + } // end for yyj3892 + 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 yyj3897 int + var yyb3897 bool + var yyhl3897 bool = l >= 0 + yyj3897++ + if yyhl3897 { + yyb3897 = yyj3897 > l + } else { + yyb3897 = r.CheckBreak() + } + if yyb3897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3897++ + if yyhl3897 { + yyb3897 = yyj3897 > l + } else { + yyb3897 = r.CheckBreak() + } + if yyb3897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3897++ + if yyhl3897 { + yyb3897 = yyj3897 > l + } else { + yyb3897 = r.CheckBreak() + } + if yyb3897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3900 := &x.ObjectMeta + yyv3900.CodecDecodeSelf(d) + } + yyj3897++ + if yyhl3897 { + yyb3897 = yyj3897 > l + } else { + yyb3897 = r.CheckBreak() + } + if yyb3897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv3901 := &x.Spec + yyv3901.CodecDecodeSelf(d) + } + for { + yyj3897++ + if yyhl3897 { + yyb3897 = yyj3897 > l + } else { + yyb3897 = r.CheckBreak() + } + if yyb3897 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3897-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 { + yym3902 := z.EncBinary() + _ = yym3902 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3903 := !z.EncBinary() + yy2arr3903 := z.EncBasicHandle().StructToArray + var yyq3903 [4]bool + _, _, _ = yysep3903, yyq3903, yy2arr3903 + const yyr3903 bool = false + yyq3903[0] = x.Kind != "" + yyq3903[1] = x.APIVersion != "" + yyq3903[2] = true + var yynn3903 int + if yyr3903 || yy2arr3903 { + r.EncodeArrayStart(4) + } else { + yynn3903 = 1 + for _, b := range yyq3903 { + if b { + yynn3903++ + } + } + r.EncodeMapStart(yynn3903) + yynn3903 = 0 + } + if yyr3903 || yy2arr3903 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3903[0] { + yym3905 := z.EncBinary() + _ = yym3905 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3903[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3906 := z.EncBinary() + _ = yym3906 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3903 || yy2arr3903 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3903[1] { + yym3908 := z.EncBinary() + _ = yym3908 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3903[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3909 := z.EncBinary() + _ = yym3909 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3903 || yy2arr3903 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3903[2] { + yy3911 := &x.ListMeta + yym3912 := z.EncBinary() + _ = yym3912 + if false { + } else if z.HasExtensions() && z.EncExt(yy3911) { + } else { + z.EncFallback(yy3911) + } + } else { + r.EncodeNil() + } + } else { + if yyq3903[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3913 := &x.ListMeta + yym3914 := z.EncBinary() + _ = yym3914 + if false { + } else if z.HasExtensions() && z.EncExt(yy3913) { + } else { + z.EncFallback(yy3913) + } + } + } + if yyr3903 || yy2arr3903 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3916 := z.EncBinary() + _ = yym3916 + 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 { + yym3917 := z.EncBinary() + _ = yym3917 + if false { + } else { + h.encSliceLimitRange(([]LimitRange)(x.Items), e) + } + } + } + if yyr3903 || yy2arr3903 { + 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 + yym3918 := z.DecBinary() + _ = yym3918 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3919 := r.ContainerType() + if yyct3919 == codecSelferValueTypeMap1234 { + yyl3919 := r.ReadMapStart() + if yyl3919 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3919, d) + } + } else if yyct3919 == codecSelferValueTypeArray1234 { + yyl3919 := r.ReadArrayStart() + if yyl3919 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3919, 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 yys3920Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3920Slc + var yyhl3920 bool = l >= 0 + for yyj3920 := 0; ; yyj3920++ { + if yyhl3920 { + if yyj3920 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3920Slc = r.DecodeBytes(yys3920Slc, true, true) + yys3920 := string(yys3920Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3920 { + 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 { + yyv3923 := &x.ListMeta + yym3924 := z.DecBinary() + _ = yym3924 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3923) { + } else { + z.DecFallback(yyv3923, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3925 := &x.Items + yym3926 := z.DecBinary() + _ = yym3926 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv3925), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3920) + } // end switch yys3920 + } // end for yyj3920 + 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 yyj3927 int + var yyb3927 bool + var yyhl3927 bool = l >= 0 + yyj3927++ + if yyhl3927 { + yyb3927 = yyj3927 > l + } else { + yyb3927 = r.CheckBreak() + } + if yyb3927 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3927++ + if yyhl3927 { + yyb3927 = yyj3927 > l + } else { + yyb3927 = r.CheckBreak() + } + if yyb3927 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3927++ + if yyhl3927 { + yyb3927 = yyj3927 > l + } else { + yyb3927 = r.CheckBreak() + } + if yyb3927 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3930 := &x.ListMeta + yym3931 := z.DecBinary() + _ = yym3931 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3930) { + } else { + z.DecFallback(yyv3930, false) + } + } + yyj3927++ + if yyhl3927 { + yyb3927 = yyj3927 > l + } else { + yyb3927 = r.CheckBreak() + } + if yyb3927 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3932 := &x.Items + yym3933 := z.DecBinary() + _ = yym3933 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv3932), d) + } + } + for { + yyj3927++ + if yyhl3927 { + yyb3927 = yyj3927 > l + } else { + yyb3927 = r.CheckBreak() + } + if yyb3927 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3927-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3934 := z.EncBinary() + _ = yym3934 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3935 := z.DecBinary() + _ = yym3935 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3936 := z.EncBinary() + _ = yym3936 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3937 := !z.EncBinary() + yy2arr3937 := z.EncBasicHandle().StructToArray + var yyq3937 [2]bool + _, _, _ = yysep3937, yyq3937, yy2arr3937 + const yyr3937 bool = false + yyq3937[0] = len(x.Hard) != 0 + yyq3937[1] = len(x.Scopes) != 0 + var yynn3937 int + if yyr3937 || yy2arr3937 { + r.EncodeArrayStart(2) + } else { + yynn3937 = 0 + for _, b := range yyq3937 { + if b { + yynn3937++ + } + } + r.EncodeMapStart(yynn3937) + yynn3937 = 0 + } + if yyr3937 || yy2arr3937 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3937[0] { + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3937[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hard")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } + } + if yyr3937 || yy2arr3937 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3937[1] { + if x.Scopes == nil { + r.EncodeNil() + } else { + yym3940 := z.EncBinary() + _ = yym3940 + if false { + } else { + h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3937[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("scopes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Scopes == nil { + r.EncodeNil() + } else { + yym3941 := z.EncBinary() + _ = yym3941 + if false { + } else { + h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) + } + } + } + } + if yyr3937 || yy2arr3937 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3942 := z.DecBinary() + _ = yym3942 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3943 := r.ContainerType() + if yyct3943 == codecSelferValueTypeMap1234 { + yyl3943 := r.ReadMapStart() + if yyl3943 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3943, d) + } + } else if yyct3943 == codecSelferValueTypeArray1234 { + yyl3943 := r.ReadArrayStart() + if yyl3943 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3943, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3944Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3944Slc + var yyhl3944 bool = l >= 0 + for yyj3944 := 0; ; yyj3944++ { + if yyhl3944 { + if yyj3944 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3944Slc = r.DecodeBytes(yys3944Slc, true, true) + yys3944 := string(yys3944Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3944 { + case "hard": + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3945 := &x.Hard + yyv3945.CodecDecodeSelf(d) + } + case "scopes": + if r.TryDecodeAsNil() { + x.Scopes = nil + } else { + yyv3946 := &x.Scopes + yym3947 := z.DecBinary() + _ = yym3947 + if false { + } else { + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3946), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3944) + } // end switch yys3944 + } // end for yyj3944 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3948 int + var yyb3948 bool + var yyhl3948 bool = l >= 0 + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l + } else { + yyb3948 = r.CheckBreak() + } + if yyb3948 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3949 := &x.Hard + yyv3949.CodecDecodeSelf(d) + } + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l + } else { + yyb3948 = r.CheckBreak() + } + if yyb3948 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Scopes = nil + } else { + yyv3950 := &x.Scopes + yym3951 := z.DecBinary() + _ = yym3951 + if false { + } else { + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3950), d) + } + } + for { + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l + } else { + yyb3948 = r.CheckBreak() + } + if yyb3948 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3948-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3952 := z.EncBinary() + _ = yym3952 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3953 := !z.EncBinary() + yy2arr3953 := z.EncBasicHandle().StructToArray + var yyq3953 [2]bool + _, _, _ = yysep3953, yyq3953, yy2arr3953 + const yyr3953 bool = false + yyq3953[0] = len(x.Hard) != 0 + yyq3953[1] = len(x.Used) != 0 + var yynn3953 int + if yyr3953 || yy2arr3953 { + r.EncodeArrayStart(2) + } else { + yynn3953 = 0 + for _, b := range yyq3953 { + if b { + yynn3953++ + } + } + r.EncodeMapStart(yynn3953) + yynn3953 = 0 + } + if yyr3953 || yy2arr3953 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3953[0] { + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3953[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hard")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } + } + if yyr3953 || yy2arr3953 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3953[1] { + if x.Used == nil { + r.EncodeNil() + } else { + x.Used.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3953[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("used")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Used == nil { + r.EncodeNil() + } else { + x.Used.CodecEncodeSelf(e) + } + } + } + if yyr3953 || yy2arr3953 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3956 := z.DecBinary() + _ = yym3956 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3957 := r.ContainerType() + if yyct3957 == codecSelferValueTypeMap1234 { + yyl3957 := r.ReadMapStart() + if yyl3957 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3957, d) + } + } else if yyct3957 == codecSelferValueTypeArray1234 { + yyl3957 := r.ReadArrayStart() + if yyl3957 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3957, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3958Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3958Slc + var yyhl3958 bool = l >= 0 + for yyj3958 := 0; ; yyj3958++ { + if yyhl3958 { + if yyj3958 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3958Slc = r.DecodeBytes(yys3958Slc, true, true) + yys3958 := string(yys3958Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3958 { + case "hard": + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3959 := &x.Hard + yyv3959.CodecDecodeSelf(d) + } + case "used": + if r.TryDecodeAsNil() { + x.Used = nil + } else { + yyv3960 := &x.Used + yyv3960.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3958) + } // end switch yys3958 + } // end for yyj3958 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3961 int + var yyb3961 bool + var yyhl3961 bool = l >= 0 + yyj3961++ + if yyhl3961 { + yyb3961 = yyj3961 > l + } else { + yyb3961 = r.CheckBreak() + } + if yyb3961 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3962 := &x.Hard + yyv3962.CodecDecodeSelf(d) + } + yyj3961++ + if yyhl3961 { + yyb3961 = yyj3961 > l + } else { + yyb3961 = r.CheckBreak() + } + if yyb3961 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Used = nil + } else { + yyv3963 := &x.Used + yyv3963.CodecDecodeSelf(d) + } + for { + yyj3961++ + if yyhl3961 { + yyb3961 = yyj3961 > l + } else { + yyb3961 = r.CheckBreak() + } + if yyb3961 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3961-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3964 := z.EncBinary() + _ = yym3964 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3965 := !z.EncBinary() + yy2arr3965 := z.EncBasicHandle().StructToArray + var yyq3965 [5]bool + _, _, _ = yysep3965, yyq3965, yy2arr3965 + const yyr3965 bool = false + yyq3965[0] = x.Kind != "" + yyq3965[1] = x.APIVersion != "" + yyq3965[2] = true + yyq3965[3] = true + yyq3965[4] = true + var yynn3965 int + if yyr3965 || yy2arr3965 { + r.EncodeArrayStart(5) + } else { + yynn3965 = 0 + for _, b := range yyq3965 { + if b { + yynn3965++ + } + } + r.EncodeMapStart(yynn3965) + yynn3965 = 0 + } + if yyr3965 || yy2arr3965 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3965[0] { + yym3967 := z.EncBinary() + _ = yym3967 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3965[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3968 := z.EncBinary() + _ = yym3968 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3965 || yy2arr3965 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3965[1] { + yym3970 := z.EncBinary() + _ = yym3970 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3965[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3971 := z.EncBinary() + _ = yym3971 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3965 || yy2arr3965 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3965[2] { + yy3973 := &x.ObjectMeta + yy3973.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3965[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3974 := &x.ObjectMeta + yy3974.CodecEncodeSelf(e) + } + } + if yyr3965 || yy2arr3965 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3965[3] { + yy3976 := &x.Spec + yy3976.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3965[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3977 := &x.Spec + yy3977.CodecEncodeSelf(e) + } + } + if yyr3965 || yy2arr3965 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3965[4] { + yy3979 := &x.Status + yy3979.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3965[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3980 := &x.Status + yy3980.CodecEncodeSelf(e) + } + } + if yyr3965 || yy2arr3965 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3981 := z.DecBinary() + _ = yym3981 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3982 := r.ContainerType() + if yyct3982 == codecSelferValueTypeMap1234 { + yyl3982 := r.ReadMapStart() + if yyl3982 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3982, d) + } + } else if yyct3982 == codecSelferValueTypeArray1234 { + yyl3982 := r.ReadArrayStart() + if yyl3982 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3982, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3983Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3983Slc + var yyhl3983 bool = l >= 0 + for yyj3983 := 0; ; yyj3983++ { + if yyhl3983 { + if yyj3983 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3983Slc = r.DecodeBytes(yys3983Slc, true, true) + yys3983 := string(yys3983Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3983 { + 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 { + yyv3986 := &x.ObjectMeta + yyv3986.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ResourceQuotaSpec{} + } else { + yyv3987 := &x.Spec + yyv3987.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ResourceQuotaStatus{} + } else { + yyv3988 := &x.Status + yyv3988.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3983) + } // end switch yys3983 + } // end for yyj3983 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3989 int + var yyb3989 bool + var yyhl3989 bool = l >= 0 + yyj3989++ + if yyhl3989 { + yyb3989 = yyj3989 > l + } else { + yyb3989 = r.CheckBreak() + } + if yyb3989 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3989++ + if yyhl3989 { + yyb3989 = yyj3989 > l + } else { + yyb3989 = r.CheckBreak() + } + if yyb3989 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3989++ + if yyhl3989 { + yyb3989 = yyj3989 > l + } else { + yyb3989 = r.CheckBreak() + } + if yyb3989 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3992 := &x.ObjectMeta + yyv3992.CodecDecodeSelf(d) + } + yyj3989++ + if yyhl3989 { + yyb3989 = yyj3989 > l + } else { + yyb3989 = r.CheckBreak() + } + if yyb3989 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ResourceQuotaSpec{} + } else { + yyv3993 := &x.Spec + yyv3993.CodecDecodeSelf(d) + } + yyj3989++ + if yyhl3989 { + yyb3989 = yyj3989 > l + } else { + yyb3989 = r.CheckBreak() + } + if yyb3989 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ResourceQuotaStatus{} + } else { + yyv3994 := &x.Status + yyv3994.CodecDecodeSelf(d) + } + for { + yyj3989++ + if yyhl3989 { + yyb3989 = yyj3989 > l + } else { + yyb3989 = r.CheckBreak() + } + if yyb3989 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3989-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3995 := z.EncBinary() + _ = yym3995 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3996 := !z.EncBinary() + yy2arr3996 := z.EncBasicHandle().StructToArray + var yyq3996 [4]bool + _, _, _ = yysep3996, yyq3996, yy2arr3996 + const yyr3996 bool = false + yyq3996[0] = x.Kind != "" + yyq3996[1] = x.APIVersion != "" + yyq3996[2] = true + var yynn3996 int + if yyr3996 || yy2arr3996 { + r.EncodeArrayStart(4) + } else { + yynn3996 = 1 + for _, b := range yyq3996 { + if b { + yynn3996++ + } + } + r.EncodeMapStart(yynn3996) + yynn3996 = 0 + } + if yyr3996 || yy2arr3996 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3996[0] { + yym3998 := z.EncBinary() + _ = yym3998 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3996[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3999 := z.EncBinary() + _ = yym3999 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3996 || yy2arr3996 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3996[1] { + yym4001 := z.EncBinary() + _ = yym4001 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3996[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4002 := z.EncBinary() + _ = yym4002 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3996 || yy2arr3996 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3996[2] { + yy4004 := &x.ListMeta + yym4005 := z.EncBinary() + _ = yym4005 + if false { + } else if z.HasExtensions() && z.EncExt(yy4004) { + } else { + z.EncFallback(yy4004) + } + } else { + r.EncodeNil() + } + } else { + if yyq3996[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4006 := &x.ListMeta + yym4007 := z.EncBinary() + _ = yym4007 + if false { + } else if z.HasExtensions() && z.EncExt(yy4006) { + } else { + z.EncFallback(yy4006) + } + } + } + if yyr3996 || yy2arr3996 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4009 := z.EncBinary() + _ = yym4009 + if false { + } else { + h.encSliceResourceQuota(([]ResourceQuota)(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 { + yym4010 := z.EncBinary() + _ = yym4010 + if false { + } else { + h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) + } + } + } + if yyr3996 || yy2arr3996 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4011 := z.DecBinary() + _ = yym4011 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4012 := r.ContainerType() + if yyct4012 == codecSelferValueTypeMap1234 { + yyl4012 := r.ReadMapStart() + if yyl4012 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4012, d) + } + } else if yyct4012 == codecSelferValueTypeArray1234 { + yyl4012 := r.ReadArrayStart() + if yyl4012 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4012, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4013Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4013Slc + var yyhl4013 bool = l >= 0 + for yyj4013 := 0; ; yyj4013++ { + if yyhl4013 { + if yyj4013 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4013Slc = r.DecodeBytes(yys4013Slc, true, true) + yys4013 := string(yys4013Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4013 { + 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 { + yyv4016 := &x.ListMeta + yym4017 := z.DecBinary() + _ = yym4017 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4016) { + } else { + z.DecFallback(yyv4016, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4018 := &x.Items + yym4019 := z.DecBinary() + _ = yym4019 + if false { + } else { + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4018), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4013) + } // end switch yys4013 + } // end for yyj4013 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4020 int + var yyb4020 bool + var yyhl4020 bool = l >= 0 + yyj4020++ + if yyhl4020 { + yyb4020 = yyj4020 > l + } else { + yyb4020 = r.CheckBreak() + } + if yyb4020 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4020++ + if yyhl4020 { + yyb4020 = yyj4020 > l + } else { + yyb4020 = r.CheckBreak() + } + if yyb4020 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4020++ + if yyhl4020 { + yyb4020 = yyj4020 > l + } else { + yyb4020 = r.CheckBreak() + } + if yyb4020 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4023 := &x.ListMeta + yym4024 := z.DecBinary() + _ = yym4024 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4023) { + } else { + z.DecFallback(yyv4023, false) + } + } + yyj4020++ + if yyhl4020 { + yyb4020 = yyj4020 > l + } else { + yyb4020 = r.CheckBreak() + } + if yyb4020 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4025 := &x.Items + yym4026 := z.DecBinary() + _ = yym4026 + if false { + } else { + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4025), d) + } + } + for { + yyj4020++ + if yyhl4020 { + yyb4020 = yyj4020 > l + } else { + yyb4020 = r.CheckBreak() + } + if yyb4020 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4020-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4027 := z.EncBinary() + _ = yym4027 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4028 := !z.EncBinary() + yy2arr4028 := z.EncBasicHandle().StructToArray + var yyq4028 [5]bool + _, _, _ = yysep4028, yyq4028, yy2arr4028 + const yyr4028 bool = false + yyq4028[0] = x.Kind != "" + yyq4028[1] = x.APIVersion != "" + yyq4028[2] = true + yyq4028[3] = len(x.Data) != 0 + yyq4028[4] = x.Type != "" + var yynn4028 int + if yyr4028 || yy2arr4028 { + r.EncodeArrayStart(5) + } else { + yynn4028 = 0 + for _, b := range yyq4028 { + if b { + yynn4028++ + } + } + r.EncodeMapStart(yynn4028) + yynn4028 = 0 + } + if yyr4028 || yy2arr4028 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4028[0] { + yym4030 := z.EncBinary() + _ = yym4030 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4028[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4031 := z.EncBinary() + _ = yym4031 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4028 || yy2arr4028 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4028[1] { + yym4033 := z.EncBinary() + _ = yym4033 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4028[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4034 := z.EncBinary() + _ = yym4034 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4028 || yy2arr4028 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4028[2] { + yy4036 := &x.ObjectMeta + yy4036.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4028[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4037 := &x.ObjectMeta + yy4037.CodecEncodeSelf(e) + } + } + if yyr4028 || yy2arr4028 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4028[3] { + if x.Data == nil { + r.EncodeNil() + } else { + yym4039 := z.EncBinary() + _ = yym4039 + if false { + } else { + h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4028[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4040 := z.EncBinary() + _ = yym4040 + if false { + } else { + h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) + } + } + } + } + if yyr4028 || yy2arr4028 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4028[4] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4028[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr4028 || yy2arr4028 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4042 := z.DecBinary() + _ = yym4042 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4043 := r.ContainerType() + if yyct4043 == codecSelferValueTypeMap1234 { + yyl4043 := r.ReadMapStart() + if yyl4043 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4043, d) + } + } else if yyct4043 == codecSelferValueTypeArray1234 { + yyl4043 := r.ReadArrayStart() + if yyl4043 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4043, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4044Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4044Slc + var yyhl4044 bool = l >= 0 + for yyj4044 := 0; ; yyj4044++ { + if yyhl4044 { + if yyj4044 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4044Slc = r.DecodeBytes(yys4044Slc, true, true) + yys4044 := string(yys4044Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4044 { + 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 { + yyv4047 := &x.ObjectMeta + yyv4047.CodecDecodeSelf(d) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4048 := &x.Data + yym4049 := z.DecBinary() + _ = yym4049 + if false { + } else { + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4048), d) + } + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = SecretType(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys4044) + } // end switch yys4044 + } // end for yyj4044 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4051 int + var yyb4051 bool + var yyhl4051 bool = l >= 0 + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l + } else { + yyb4051 = r.CheckBreak() + } + if yyb4051 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l + } else { + yyb4051 = r.CheckBreak() + } + if yyb4051 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l + } else { + yyb4051 = r.CheckBreak() + } + if yyb4051 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4054 := &x.ObjectMeta + yyv4054.CodecDecodeSelf(d) + } + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l + } else { + yyb4051 = r.CheckBreak() + } + if yyb4051 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4055 := &x.Data + yym4056 := z.DecBinary() + _ = yym4056 + if false { + } else { + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4055), d) + } + } + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l + } else { + yyb4051 = r.CheckBreak() + } + if yyb4051 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = SecretType(r.DecodeString()) + } + for { + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l + } else { + yyb4051 = r.CheckBreak() + } + if yyb4051 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4051-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym4058 := z.EncBinary() + _ = yym4058 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4059 := z.DecBinary() + _ = yym4059 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4060 := z.EncBinary() + _ = yym4060 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4061 := !z.EncBinary() + yy2arr4061 := z.EncBasicHandle().StructToArray + var yyq4061 [4]bool + _, _, _ = yysep4061, yyq4061, yy2arr4061 + const yyr4061 bool = false + yyq4061[0] = x.Kind != "" + yyq4061[1] = x.APIVersion != "" + yyq4061[2] = true + var yynn4061 int + if yyr4061 || yy2arr4061 { + r.EncodeArrayStart(4) + } else { + yynn4061 = 1 + for _, b := range yyq4061 { + if b { + yynn4061++ + } + } + r.EncodeMapStart(yynn4061) + yynn4061 = 0 + } + if yyr4061 || yy2arr4061 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4061[0] { + yym4063 := z.EncBinary() + _ = yym4063 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4061[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4064 := z.EncBinary() + _ = yym4064 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4061 || yy2arr4061 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4061[1] { + yym4066 := z.EncBinary() + _ = yym4066 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4061[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4067 := z.EncBinary() + _ = yym4067 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4061 || yy2arr4061 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4061[2] { + yy4069 := &x.ListMeta + yym4070 := z.EncBinary() + _ = yym4070 + if false { + } else if z.HasExtensions() && z.EncExt(yy4069) { + } else { + z.EncFallback(yy4069) + } + } else { + r.EncodeNil() + } + } else { + if yyq4061[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4071 := &x.ListMeta + yym4072 := z.EncBinary() + _ = yym4072 + if false { + } else if z.HasExtensions() && z.EncExt(yy4071) { + } else { + z.EncFallback(yy4071) + } + } + } + if yyr4061 || yy2arr4061 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4074 := z.EncBinary() + _ = yym4074 + if false { + } else { + h.encSliceSecret(([]Secret)(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 { + yym4075 := z.EncBinary() + _ = yym4075 + if false { + } else { + h.encSliceSecret(([]Secret)(x.Items), e) + } + } + } + if yyr4061 || yy2arr4061 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4076 := z.DecBinary() + _ = yym4076 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4077 := r.ContainerType() + if yyct4077 == codecSelferValueTypeMap1234 { + yyl4077 := r.ReadMapStart() + if yyl4077 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4077, d) + } + } else if yyct4077 == codecSelferValueTypeArray1234 { + yyl4077 := r.ReadArrayStart() + if yyl4077 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4077, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4078Slc = r.DecodeBytes(yys4078Slc, true, true) + yys4078 := string(yys4078Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4078 { + 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 { + yyv4081 := &x.ListMeta + yym4082 := z.DecBinary() + _ = yym4082 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4081) { + } else { + z.DecFallback(yyv4081, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4083 := &x.Items + yym4084 := z.DecBinary() + _ = yym4084 + if false { + } else { + h.decSliceSecret((*[]Secret)(yyv4083), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4078) + } // end switch yys4078 + } // end for yyj4078 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4085 int + var yyb4085 bool + var yyhl4085 bool = l >= 0 + yyj4085++ + if yyhl4085 { + yyb4085 = yyj4085 > l + } else { + yyb4085 = r.CheckBreak() + } + if yyb4085 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4085++ + if yyhl4085 { + yyb4085 = yyj4085 > l + } else { + yyb4085 = r.CheckBreak() + } + if yyb4085 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4085++ + if yyhl4085 { + yyb4085 = yyj4085 > l + } else { + yyb4085 = r.CheckBreak() + } + if yyb4085 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4088 := &x.ListMeta + yym4089 := z.DecBinary() + _ = yym4089 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4088) { + } else { + z.DecFallback(yyv4088, false) + } + } + yyj4085++ + if yyhl4085 { + yyb4085 = yyj4085 > l + } else { + yyb4085 = r.CheckBreak() + } + if yyb4085 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4090 := &x.Items + yym4091 := z.DecBinary() + _ = yym4091 + if false { + } else { + h.decSliceSecret((*[]Secret)(yyv4090), d) + } + } + for { + yyj4085++ + if yyhl4085 { + yyb4085 = yyj4085 > l + } else { + yyb4085 = r.CheckBreak() + } + if yyb4085 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4085-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4092 := z.EncBinary() + _ = yym4092 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4093 := !z.EncBinary() + yy2arr4093 := z.EncBasicHandle().StructToArray + var yyq4093 [4]bool + _, _, _ = yysep4093, yyq4093, yy2arr4093 + const yyr4093 bool = false + yyq4093[0] = x.Kind != "" + yyq4093[1] = x.APIVersion != "" + yyq4093[2] = true + yyq4093[3] = len(x.Data) != 0 + var yynn4093 int + if yyr4093 || yy2arr4093 { + r.EncodeArrayStart(4) + } else { + yynn4093 = 0 + for _, b := range yyq4093 { + if b { + yynn4093++ + } + } + r.EncodeMapStart(yynn4093) + yynn4093 = 0 + } + if yyr4093 || yy2arr4093 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4093[0] { + yym4095 := z.EncBinary() + _ = yym4095 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4093[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4096 := z.EncBinary() + _ = yym4096 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4093 || yy2arr4093 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4093[1] { + yym4098 := z.EncBinary() + _ = yym4098 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4093[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4099 := z.EncBinary() + _ = yym4099 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4093 || yy2arr4093 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4093[2] { + yy4101 := &x.ObjectMeta + yy4101.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4093[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4102 := &x.ObjectMeta + yy4102.CodecEncodeSelf(e) + } + } + if yyr4093 || yy2arr4093 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4093[3] { + if x.Data == nil { + r.EncodeNil() + } else { + yym4104 := z.EncBinary() + _ = yym4104 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4093[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4105 := z.EncBinary() + _ = yym4105 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } + } + } + } + if yyr4093 || yy2arr4093 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4106 := z.DecBinary() + _ = yym4106 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4107 := r.ContainerType() + if yyct4107 == codecSelferValueTypeMap1234 { + yyl4107 := r.ReadMapStart() + if yyl4107 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4107, d) + } + } else if yyct4107 == codecSelferValueTypeArray1234 { + yyl4107 := r.ReadArrayStart() + if yyl4107 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4107, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4108Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4108Slc + var yyhl4108 bool = l >= 0 + for yyj4108 := 0; ; yyj4108++ { + if yyhl4108 { + if yyj4108 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4108Slc = r.DecodeBytes(yys4108Slc, true, true) + yys4108 := string(yys4108Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4108 { + 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 { + yyv4111 := &x.ObjectMeta + yyv4111.CodecDecodeSelf(d) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4112 := &x.Data + yym4113 := z.DecBinary() + _ = yym4113 + if false { + } else { + z.F.DecMapStringStringX(yyv4112, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4108) + } // end switch yys4108 + } // end for yyj4108 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4114 int + var yyb4114 bool + var yyhl4114 bool = l >= 0 + yyj4114++ + if yyhl4114 { + yyb4114 = yyj4114 > l + } else { + yyb4114 = r.CheckBreak() + } + if yyb4114 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4114++ + if yyhl4114 { + yyb4114 = yyj4114 > l + } else { + yyb4114 = r.CheckBreak() + } + if yyb4114 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4114++ + if yyhl4114 { + yyb4114 = yyj4114 > l + } else { + yyb4114 = r.CheckBreak() + } + if yyb4114 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4117 := &x.ObjectMeta + yyv4117.CodecDecodeSelf(d) + } + yyj4114++ + if yyhl4114 { + yyb4114 = yyj4114 > l + } else { + yyb4114 = r.CheckBreak() + } + if yyb4114 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4118 := &x.Data + yym4119 := z.DecBinary() + _ = yym4119 + if false { + } else { + z.F.DecMapStringStringX(yyv4118, false, d) + } + } + for { + yyj4114++ + if yyhl4114 { + yyb4114 = yyj4114 > l + } else { + yyb4114 = r.CheckBreak() + } + if yyb4114 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4114-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4120 := z.EncBinary() + _ = yym4120 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4121 := !z.EncBinary() + yy2arr4121 := z.EncBasicHandle().StructToArray + var yyq4121 [4]bool + _, _, _ = yysep4121, yyq4121, yy2arr4121 + const yyr4121 bool = false + yyq4121[0] = x.Kind != "" + yyq4121[1] = x.APIVersion != "" + yyq4121[2] = true + var yynn4121 int + if yyr4121 || yy2arr4121 { + r.EncodeArrayStart(4) + } else { + yynn4121 = 1 + for _, b := range yyq4121 { + if b { + yynn4121++ + } + } + r.EncodeMapStart(yynn4121) + yynn4121 = 0 + } + if yyr4121 || yy2arr4121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4121[0] { + yym4123 := z.EncBinary() + _ = yym4123 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4121[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4124 := z.EncBinary() + _ = yym4124 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4121 || yy2arr4121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4121[1] { + yym4126 := z.EncBinary() + _ = yym4126 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4121[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4127 := z.EncBinary() + _ = yym4127 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4121 || yy2arr4121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4121[2] { + yy4129 := &x.ListMeta + yym4130 := z.EncBinary() + _ = yym4130 + if false { + } else if z.HasExtensions() && z.EncExt(yy4129) { + } else { + z.EncFallback(yy4129) + } + } else { + r.EncodeNil() + } + } else { + if yyq4121[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4131 := &x.ListMeta + yym4132 := z.EncBinary() + _ = yym4132 + if false { + } else if z.HasExtensions() && z.EncExt(yy4131) { + } else { + z.EncFallback(yy4131) + } + } + } + if yyr4121 || yy2arr4121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4134 := z.EncBinary() + _ = yym4134 + if false { + } else { + h.encSliceConfigMap(([]ConfigMap)(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 { + yym4135 := z.EncBinary() + _ = yym4135 + if false { + } else { + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + } + } + } + if yyr4121 || yy2arr4121 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4136 := z.DecBinary() + _ = yym4136 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4137 := r.ContainerType() + if yyct4137 == codecSelferValueTypeMap1234 { + yyl4137 := r.ReadMapStart() + if yyl4137 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4137, d) + } + } else if yyct4137 == codecSelferValueTypeArray1234 { + yyl4137 := r.ReadArrayStart() + if yyl4137 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4137, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4138Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4138Slc + var yyhl4138 bool = l >= 0 + for yyj4138 := 0; ; yyj4138++ { + if yyhl4138 { + if yyj4138 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4138Slc = r.DecodeBytes(yys4138Slc, true, true) + yys4138 := string(yys4138Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4138 { + 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 { + yyv4141 := &x.ListMeta + yym4142 := z.DecBinary() + _ = yym4142 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4141) { + } else { + z.DecFallback(yyv4141, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4143 := &x.Items + yym4144 := z.DecBinary() + _ = yym4144 + if false { + } else { + h.decSliceConfigMap((*[]ConfigMap)(yyv4143), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4138) + } // end switch yys4138 + } // end for yyj4138 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4145 int + var yyb4145 bool + var yyhl4145 bool = l >= 0 + yyj4145++ + if yyhl4145 { + yyb4145 = yyj4145 > l + } else { + yyb4145 = r.CheckBreak() + } + if yyb4145 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4145++ + if yyhl4145 { + yyb4145 = yyj4145 > l + } else { + yyb4145 = r.CheckBreak() + } + if yyb4145 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4145++ + if yyhl4145 { + yyb4145 = yyj4145 > l + } else { + yyb4145 = r.CheckBreak() + } + if yyb4145 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4148 := &x.ListMeta + yym4149 := z.DecBinary() + _ = yym4149 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4148) { + } else { + z.DecFallback(yyv4148, false) + } + } + yyj4145++ + if yyhl4145 { + yyb4145 = yyj4145 > l + } else { + yyb4145 = r.CheckBreak() + } + if yyb4145 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4150 := &x.Items + yym4151 := z.DecBinary() + _ = yym4151 + if false { + } else { + h.decSliceConfigMap((*[]ConfigMap)(yyv4150), d) + } + } + for { + yyj4145++ + if yyhl4145 { + yyb4145 = yyj4145 > l + } else { + yyb4145 = r.CheckBreak() + } + if yyb4145 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4145-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym4152 := z.EncBinary() + _ = yym4152 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4153 := z.DecBinary() + _ = yym4153 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym4154 := z.EncBinary() + _ = yym4154 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4155 := z.DecBinary() + _ = yym4155 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4156 := z.EncBinary() + _ = yym4156 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4157 := !z.EncBinary() + yy2arr4157 := z.EncBasicHandle().StructToArray + var yyq4157 [4]bool + _, _, _ = yysep4157, yyq4157, yy2arr4157 + const yyr4157 bool = false + yyq4157[2] = x.Message != "" + yyq4157[3] = x.Error != "" + var yynn4157 int + if yyr4157 || yy2arr4157 { + r.EncodeArrayStart(4) + } else { + yynn4157 = 2 + for _, b := range yyq4157 { + if b { + yynn4157++ + } + } + r.EncodeMapStart(yynn4157) + yynn4157 = 0 + } + if yyr4157 || yy2arr4157 { + 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 yyr4157 || yy2arr4157 { + 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 yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4157[2] { + yym4161 := z.EncBinary() + _ = yym4161 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4157[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4162 := z.EncBinary() + _ = yym4162 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4157[3] { + yym4164 := z.EncBinary() + _ = yym4164 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4157[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("error")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4165 := z.EncBinary() + _ = yym4165 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } + } + if yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4166 := z.DecBinary() + _ = yym4166 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4167 := r.ContainerType() + if yyct4167 == codecSelferValueTypeMap1234 { + yyl4167 := r.ReadMapStart() + if yyl4167 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4167, d) + } + } else if yyct4167 == codecSelferValueTypeArray1234 { + yyl4167 := r.ReadArrayStart() + if yyl4167 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4167, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4168Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4168Slc + var yyhl4168 bool = l >= 0 + for yyj4168 := 0; ; yyj4168++ { + if yyhl4168 { + if yyj4168 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4168Slc = r.DecodeBytes(yys4168Slc, true, true) + yys4168 := string(yys4168Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4168 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ComponentConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys4168) + } // end switch yys4168 + } // end for yyj4168 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4173 int + var yyb4173 bool + var yyhl4173 bool = l >= 0 + yyj4173++ + if yyhl4173 { + yyb4173 = yyj4173 > l + } else { + yyb4173 = r.CheckBreak() + } + if yyb4173 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ComponentConditionType(r.DecodeString()) + } + yyj4173++ + if yyhl4173 { + yyb4173 = yyj4173 > l + } else { + yyb4173 = r.CheckBreak() + } + if yyb4173 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj4173++ + if yyhl4173 { + yyb4173 = yyj4173 > l + } else { + yyb4173 = r.CheckBreak() + } + if yyb4173 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj4173++ + if yyhl4173 { + yyb4173 = yyj4173 > l + } else { + yyb4173 = r.CheckBreak() + } + if yyb4173 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) + } + for { + yyj4173++ + if yyhl4173 { + yyb4173 = yyj4173 > l + } else { + yyb4173 = r.CheckBreak() + } + if yyb4173 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4173-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 { + yym4178 := z.EncBinary() + _ = yym4178 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4179 := !z.EncBinary() + yy2arr4179 := z.EncBasicHandle().StructToArray + var yyq4179 [4]bool + _, _, _ = yysep4179, yyq4179, yy2arr4179 + const yyr4179 bool = false + yyq4179[0] = x.Kind != "" + yyq4179[1] = x.APIVersion != "" + yyq4179[2] = true + yyq4179[3] = len(x.Conditions) != 0 + var yynn4179 int + if yyr4179 || yy2arr4179 { + r.EncodeArrayStart(4) + } else { + yynn4179 = 0 + for _, b := range yyq4179 { + if b { + yynn4179++ + } + } + r.EncodeMapStart(yynn4179) + yynn4179 = 0 + } + if yyr4179 || yy2arr4179 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4179[0] { + yym4181 := z.EncBinary() + _ = yym4181 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4179[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4182 := z.EncBinary() + _ = yym4182 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4179 || yy2arr4179 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4179[1] { + yym4184 := z.EncBinary() + _ = yym4184 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4179[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4185 := z.EncBinary() + _ = yym4185 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4179 || yy2arr4179 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4179[2] { + yy4187 := &x.ObjectMeta + yy4187.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4179[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4188 := &x.ObjectMeta + yy4188.CodecEncodeSelf(e) + } + } + if yyr4179 || yy2arr4179 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4179[3] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym4190 := z.EncBinary() + _ = yym4190 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4179[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym4191 := z.EncBinary() + _ = yym4191 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } + } + } + } + if yyr4179 || yy2arr4179 { + 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 + yym4192 := z.DecBinary() + _ = yym4192 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4193 := r.ContainerType() + if yyct4193 == codecSelferValueTypeMap1234 { + yyl4193 := r.ReadMapStart() + if yyl4193 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4193, d) + } + } else if yyct4193 == codecSelferValueTypeArray1234 { + yyl4193 := r.ReadArrayStart() + if yyl4193 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4193, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4194Slc = r.DecodeBytes(yys4194Slc, true, true) + yys4194 := string(yys4194Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4194 { + 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 { + yyv4197 := &x.ObjectMeta + yyv4197.CodecDecodeSelf(d) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4198 := &x.Conditions + yym4199 := z.DecBinary() + _ = yym4199 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4198), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4194) + } // end switch yys4194 + } // end for yyj4194 + 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 yyj4200 int + var yyb4200 bool + var yyhl4200 bool = l >= 0 + yyj4200++ + if yyhl4200 { + yyb4200 = yyj4200 > l + } else { + yyb4200 = r.CheckBreak() + } + if yyb4200 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4200++ + if yyhl4200 { + yyb4200 = yyj4200 > l + } else { + yyb4200 = r.CheckBreak() + } + if yyb4200 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4200++ + if yyhl4200 { + yyb4200 = yyj4200 > l + } else { + yyb4200 = r.CheckBreak() + } + if yyb4200 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4203 := &x.ObjectMeta + yyv4203.CodecDecodeSelf(d) + } + yyj4200++ + if yyhl4200 { + yyb4200 = yyj4200 > l + } else { + yyb4200 = r.CheckBreak() + } + if yyb4200 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4204 := &x.Conditions + yym4205 := z.DecBinary() + _ = yym4205 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4204), d) + } + } + for { + yyj4200++ + if yyhl4200 { + yyb4200 = yyj4200 > l + } else { + yyb4200 = r.CheckBreak() + } + if yyb4200 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4200-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 { + yym4206 := z.EncBinary() + _ = yym4206 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4207 := !z.EncBinary() + yy2arr4207 := z.EncBasicHandle().StructToArray + var yyq4207 [4]bool + _, _, _ = yysep4207, yyq4207, yy2arr4207 + const yyr4207 bool = false + yyq4207[0] = x.Kind != "" + yyq4207[1] = x.APIVersion != "" + yyq4207[2] = true + var yynn4207 int + if yyr4207 || yy2arr4207 { + r.EncodeArrayStart(4) + } else { + yynn4207 = 1 + for _, b := range yyq4207 { + if b { + yynn4207++ + } + } + r.EncodeMapStart(yynn4207) + yynn4207 = 0 + } + if yyr4207 || yy2arr4207 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4207[0] { + yym4209 := z.EncBinary() + _ = yym4209 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4207[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4210 := z.EncBinary() + _ = yym4210 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4207 || yy2arr4207 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4207[1] { + yym4212 := z.EncBinary() + _ = yym4212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4207[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4213 := z.EncBinary() + _ = yym4213 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4207 || yy2arr4207 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4207[2] { + yy4215 := &x.ListMeta + yym4216 := z.EncBinary() + _ = yym4216 + if false { + } else if z.HasExtensions() && z.EncExt(yy4215) { + } else { + z.EncFallback(yy4215) + } + } else { + r.EncodeNil() + } + } else { + if yyq4207[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4217 := &x.ListMeta + yym4218 := z.EncBinary() + _ = yym4218 + if false { + } else if z.HasExtensions() && z.EncExt(yy4217) { + } else { + z.EncFallback(yy4217) + } + } + } + if yyr4207 || yy2arr4207 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4220 := z.EncBinary() + _ = yym4220 + 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 { + yym4221 := z.EncBinary() + _ = yym4221 + if false { + } else { + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + } + } + } + if yyr4207 || yy2arr4207 { + 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 + yym4222 := z.DecBinary() + _ = yym4222 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4223 := r.ContainerType() + if yyct4223 == codecSelferValueTypeMap1234 { + yyl4223 := r.ReadMapStart() + if yyl4223 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4223, d) + } + } else if yyct4223 == codecSelferValueTypeArray1234 { + yyl4223 := r.ReadArrayStart() + if yyl4223 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4223, 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 yys4224Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4224Slc + var yyhl4224 bool = l >= 0 + for yyj4224 := 0; ; yyj4224++ { + if yyhl4224 { + if yyj4224 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4224Slc = r.DecodeBytes(yys4224Slc, true, true) + yys4224 := string(yys4224Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4224 { + 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 { + yyv4227 := &x.ListMeta + yym4228 := z.DecBinary() + _ = yym4228 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4227) { + } else { + z.DecFallback(yyv4227, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4229 := &x.Items + yym4230 := z.DecBinary() + _ = yym4230 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4229), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4224) + } // end switch yys4224 + } // end for yyj4224 + 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 yyj4231 int + var yyb4231 bool + var yyhl4231 bool = l >= 0 + yyj4231++ + if yyhl4231 { + yyb4231 = yyj4231 > l + } else { + yyb4231 = r.CheckBreak() + } + if yyb4231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4231++ + if yyhl4231 { + yyb4231 = yyj4231 > l + } else { + yyb4231 = r.CheckBreak() + } + if yyb4231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4231++ + if yyhl4231 { + yyb4231 = yyj4231 > l + } else { + yyb4231 = r.CheckBreak() + } + if yyb4231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4234 := &x.ListMeta + yym4235 := z.DecBinary() + _ = yym4235 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4234) { + } else { + z.DecFallback(yyv4234, false) + } + } + yyj4231++ + if yyhl4231 { + yyb4231 = yyj4231 > l + } else { + yyb4231 = r.CheckBreak() + } + if yyb4231 { + 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.decSliceComponentStatus((*[]ComponentStatus)(yyv4236), d) + } + } + for { + yyj4231++ + if yyhl4231 { + yyb4231 = yyj4231 > l + } else { + yyb4231 = r.CheckBreak() + } + if yyb4231 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4231-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 { + yym4238 := z.EncBinary() + _ = yym4238 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4239 := !z.EncBinary() + yy2arr4239 := z.EncBasicHandle().StructToArray + var yyq4239 [6]bool + _, _, _ = yysep4239, yyq4239, yy2arr4239 + const yyr4239 bool = false + yyq4239[0] = x.Capabilities != nil + yyq4239[1] = x.Privileged != nil + yyq4239[2] = x.SELinuxOptions != nil + yyq4239[3] = x.RunAsUser != nil + yyq4239[4] = x.RunAsNonRoot != nil + yyq4239[5] = x.ReadOnlyRootFilesystem != nil + var yynn4239 int + if yyr4239 || yy2arr4239 { + r.EncodeArrayStart(6) + } else { + yynn4239 = 0 + for _, b := range yyq4239 { + if b { + yynn4239++ + } + } + r.EncodeMapStart(yynn4239) + yynn4239 = 0 + } + if yyr4239 || yy2arr4239 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4239[0] { + if x.Capabilities == nil { + r.EncodeNil() + } else { + x.Capabilities.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4239[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 yyr4239 || yy2arr4239 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4239[1] { + if x.Privileged == nil { + r.EncodeNil() + } else { + yy4242 := *x.Privileged + yym4243 := z.EncBinary() + _ = yym4243 + if false { + } else { + r.EncodeBool(bool(yy4242)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4239[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("privileged")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Privileged == nil { + r.EncodeNil() + } else { + yy4244 := *x.Privileged + yym4245 := z.EncBinary() + _ = yym4245 + if false { + } else { + r.EncodeBool(bool(yy4244)) + } + } + } + } + if yyr4239 || yy2arr4239 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4239[2] { + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4239[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 yyr4239 || yy2arr4239 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4239[3] { + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy4248 := *x.RunAsUser + yym4249 := z.EncBinary() + _ = yym4249 + if false { + } else { + r.EncodeInt(int64(yy4248)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4239[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy4250 := *x.RunAsUser + yym4251 := z.EncBinary() + _ = yym4251 + if false { + } else { + r.EncodeInt(int64(yy4250)) + } + } + } + } + if yyr4239 || yy2arr4239 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4239[4] { + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy4253 := *x.RunAsNonRoot + yym4254 := z.EncBinary() + _ = yym4254 + if false { + } else { + r.EncodeBool(bool(yy4253)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4239[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy4255 := *x.RunAsNonRoot + yym4256 := z.EncBinary() + _ = yym4256 + if false { + } else { + r.EncodeBool(bool(yy4255)) + } + } + } + } + if yyr4239 || yy2arr4239 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4239[5] { + if x.ReadOnlyRootFilesystem == nil { + r.EncodeNil() + } else { + yy4258 := *x.ReadOnlyRootFilesystem + yym4259 := z.EncBinary() + _ = yym4259 + if false { + } else { + r.EncodeBool(bool(yy4258)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4239[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadOnlyRootFilesystem == nil { + r.EncodeNil() + } else { + yy4260 := *x.ReadOnlyRootFilesystem + yym4261 := z.EncBinary() + _ = yym4261 + if false { + } else { + r.EncodeBool(bool(yy4260)) + } + } + } + } + if yyr4239 || yy2arr4239 { + 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 + yym4262 := z.DecBinary() + _ = yym4262 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4263 := r.ContainerType() + if yyct4263 == codecSelferValueTypeMap1234 { + yyl4263 := r.ReadMapStart() + if yyl4263 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4263, d) + } + } else if yyct4263 == codecSelferValueTypeArray1234 { + yyl4263 := r.ReadArrayStart() + if yyl4263 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4263, 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 yys4264Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4264Slc + var yyhl4264 bool = l >= 0 + for yyj4264 := 0; ; yyj4264++ { + if yyhl4264 { + if yyj4264 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4264Slc = r.DecodeBytes(yys4264Slc, true, true) + yys4264 := string(yys4264Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4264 { + 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) + } + yym4267 := z.DecBinary() + _ = yym4267 + 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) + } + yym4270 := z.DecBinary() + _ = yym4270 + 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) + } + yym4272 := z.DecBinary() + _ = yym4272 + 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) + } + yym4274 := z.DecBinary() + _ = yym4274 + if false { + } else { + *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys4264) + } // end switch yys4264 + } // end for yyj4264 + 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 yyj4275 int + var yyb4275 bool + var yyhl4275 bool = l >= 0 + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + 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) + } + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + 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) + } + yym4278 := z.DecBinary() + _ = yym4278 + if false { + } else { + *((*bool)(x.Privileged)) = r.DecodeBool() + } + } + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + 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) + } + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + 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) + } + yym4281 := z.DecBinary() + _ = yym4281 + if false { + } else { + *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) + } + } + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + 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) + } + yym4283 := z.DecBinary() + _ = yym4283 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + 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) + } + yym4285 := z.DecBinary() + _ = yym4285 + if false { + } else { + *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() + } + } + for { + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l + } else { + yyb4275 = r.CheckBreak() + } + if yyb4275 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4275-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 { + yym4286 := z.EncBinary() + _ = yym4286 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4287 := !z.EncBinary() + yy2arr4287 := z.EncBasicHandle().StructToArray + var yyq4287 [4]bool + _, _, _ = yysep4287, yyq4287, yy2arr4287 + const yyr4287 bool = false + yyq4287[0] = x.User != "" + yyq4287[1] = x.Role != "" + yyq4287[2] = x.Type != "" + yyq4287[3] = x.Level != "" + var yynn4287 int + if yyr4287 || yy2arr4287 { + r.EncodeArrayStart(4) + } else { + yynn4287 = 0 + for _, b := range yyq4287 { + if b { + yynn4287++ + } + } + r.EncodeMapStart(yynn4287) + yynn4287 = 0 + } + if yyr4287 || yy2arr4287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4287[0] { + yym4289 := z.EncBinary() + _ = yym4289 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4287[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4290 := z.EncBinary() + _ = yym4290 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr4287 || yy2arr4287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4287[1] { + yym4292 := z.EncBinary() + _ = yym4292 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4287[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("role")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4293 := z.EncBinary() + _ = yym4293 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } + } + if yyr4287 || yy2arr4287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4287[2] { + yym4295 := z.EncBinary() + _ = yym4295 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4287[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4296 := z.EncBinary() + _ = yym4296 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } + if yyr4287 || yy2arr4287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4287[3] { + yym4298 := z.EncBinary() + _ = yym4298 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4287[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("level")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4299 := z.EncBinary() + _ = yym4299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + } + } + } + if yyr4287 || yy2arr4287 { + 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 + yym4300 := z.DecBinary() + _ = yym4300 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4301 := r.ContainerType() + if yyct4301 == codecSelferValueTypeMap1234 { + yyl4301 := r.ReadMapStart() + if yyl4301 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4301, d) + } + } else if yyct4301 == codecSelferValueTypeArray1234 { + yyl4301 := r.ReadArrayStart() + if yyl4301 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4301, 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 yys4302Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4302Slc + var yyhl4302 bool = l >= 0 + for yyj4302 := 0; ; yyj4302++ { + if yyhl4302 { + if yyj4302 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4302Slc = r.DecodeBytes(yys4302Slc, true, true) + yys4302 := string(yys4302Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4302 { + case "user": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + case "role": + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = string(r.DecodeString()) + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } + case "level": + if r.TryDecodeAsNil() { + x.Level = "" + } else { + x.Level = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys4302) + } // end switch yys4302 + } // end for yyj4302 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4307 int + var yyb4307 bool + var yyhl4307 bool = l >= 0 + yyj4307++ + if yyhl4307 { + yyb4307 = yyj4307 > l + } else { + yyb4307 = r.CheckBreak() + } + if yyb4307 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + yyj4307++ + if yyhl4307 { + yyb4307 = yyj4307 > l + } else { + yyb4307 = r.CheckBreak() + } + if yyb4307 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = string(r.DecodeString()) + } + yyj4307++ + if yyhl4307 { + yyb4307 = yyj4307 > l + } else { + yyb4307 = r.CheckBreak() + } + if yyb4307 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } + yyj4307++ + if yyhl4307 { + yyb4307 = yyj4307 > l + } else { + yyb4307 = r.CheckBreak() + } + if yyb4307 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Level = "" + } else { + x.Level = string(r.DecodeString()) + } + for { + yyj4307++ + if yyhl4307 { + yyb4307 = yyj4307 > l + } else { + yyb4307 = r.CheckBreak() + } + if yyb4307 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4307-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4312 := z.EncBinary() + _ = yym4312 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4313 := !z.EncBinary() + yy2arr4313 := z.EncBasicHandle().StructToArray + var yyq4313 [5]bool + _, _, _ = yysep4313, yyq4313, yy2arr4313 + const yyr4313 bool = false + yyq4313[0] = x.Kind != "" + yyq4313[1] = x.APIVersion != "" + yyq4313[2] = true + var yynn4313 int + if yyr4313 || yy2arr4313 { + r.EncodeArrayStart(5) + } else { + yynn4313 = 2 + for _, b := range yyq4313 { + if b { + yynn4313++ + } + } + r.EncodeMapStart(yynn4313) + yynn4313 = 0 + } + if yyr4313 || yy2arr4313 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4313[0] { + yym4315 := z.EncBinary() + _ = yym4315 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4313[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4316 := z.EncBinary() + _ = yym4316 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4313 || yy2arr4313 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4313[1] { + yym4318 := z.EncBinary() + _ = yym4318 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4313[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4319 := z.EncBinary() + _ = yym4319 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4313 || yy2arr4313 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4313[2] { + yy4321 := &x.ObjectMeta + yy4321.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4313[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4322 := &x.ObjectMeta + yy4322.CodecEncodeSelf(e) + } + } + if yyr4313 || yy2arr4313 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym4324 := z.EncBinary() + _ = yym4324 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Range)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("range")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4325 := z.EncBinary() + _ = yym4325 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Range)) + } + } + if yyr4313 || yy2arr4313 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4327 := z.EncBinary() + _ = yym4327 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4328 := z.EncBinary() + _ = yym4328 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } + } + } + if yyr4313 || yy2arr4313 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4329 := z.DecBinary() + _ = yym4329 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4330 := r.ContainerType() + if yyct4330 == codecSelferValueTypeMap1234 { + yyl4330 := r.ReadMapStart() + if yyl4330 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4330, d) + } + } else if yyct4330 == codecSelferValueTypeArray1234 { + yyl4330 := r.ReadArrayStart() + if yyl4330 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4330, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4331Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4331Slc + var yyhl4331 bool = l >= 0 + for yyj4331 := 0; ; yyj4331++ { + if yyhl4331 { + if yyj4331 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4331Slc = r.DecodeBytes(yys4331Slc, true, true) + yys4331 := string(yys4331Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4331 { + 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 { + yyv4334 := &x.ObjectMeta + yyv4334.CodecDecodeSelf(d) + } + case "range": + if r.TryDecodeAsNil() { + x.Range = "" + } else { + x.Range = string(r.DecodeString()) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4336 := &x.Data + yym4337 := z.DecBinary() + _ = yym4337 + if false { + } else { + *yyv4336 = r.DecodeBytes(*(*[]byte)(yyv4336), false, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys4331) + } // end switch yys4331 + } // end for yyj4331 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4338 int + var yyb4338 bool + var yyhl4338 bool = l >= 0 + yyj4338++ + if yyhl4338 { + yyb4338 = yyj4338 > l + } else { + yyb4338 = r.CheckBreak() + } + if yyb4338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4338++ + if yyhl4338 { + yyb4338 = yyj4338 > l + } else { + yyb4338 = r.CheckBreak() + } + if yyb4338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4338++ + if yyhl4338 { + yyb4338 = yyj4338 > l + } else { + yyb4338 = r.CheckBreak() + } + if yyb4338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4341 := &x.ObjectMeta + yyv4341.CodecDecodeSelf(d) + } + yyj4338++ + if yyhl4338 { + yyb4338 = yyj4338 > l + } else { + yyb4338 = r.CheckBreak() + } + if yyb4338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Range = "" + } else { + x.Range = string(r.DecodeString()) + } + yyj4338++ + if yyhl4338 { + yyb4338 = yyj4338 > l + } else { + yyb4338 = r.CheckBreak() + } + if yyb4338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4343 := &x.Data + yym4344 := z.DecBinary() + _ = yym4344 + if false { + } else { + *yyv4343 = r.DecodeBytes(*(*[]byte)(yyv4343), false, false) + } + } + for { + yyj4338++ + if yyhl4338 { + yyb4338 = yyj4338 > l + } else { + yyb4338 = r.CheckBreak() + } + if yyb4338 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4338-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 _, yyv4345 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4346 := &yyv4345 + yy4346.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 + + yyv4347 := *v + yyh4347, yyl4347 := z.DecSliceHelperStart() + var yyc4347 bool + if yyl4347 == 0 { + if yyv4347 == nil { + yyv4347 = []OwnerReference{} + yyc4347 = true + } else if len(yyv4347) != 0 { + yyv4347 = yyv4347[:0] + yyc4347 = true + } + } else if yyl4347 > 0 { + var yyrr4347, yyrl4347 int + var yyrt4347 bool + if yyl4347 > cap(yyv4347) { + + yyrg4347 := len(yyv4347) > 0 + yyv24347 := yyv4347 + yyrl4347, yyrt4347 = z.DecInferLen(yyl4347, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4347 { + if yyrl4347 <= cap(yyv4347) { + yyv4347 = yyv4347[:yyrl4347] + } else { + yyv4347 = make([]OwnerReference, yyrl4347) + } + } else { + yyv4347 = make([]OwnerReference, yyrl4347) + } + yyc4347 = true + yyrr4347 = len(yyv4347) + if yyrg4347 { + copy(yyv4347, yyv24347) + } + } else if yyl4347 != len(yyv4347) { + yyv4347 = yyv4347[:yyl4347] + yyc4347 = true + } + yyj4347 := 0 + for ; yyj4347 < yyrr4347; yyj4347++ { + yyh4347.ElemContainerState(yyj4347) + if r.TryDecodeAsNil() { + yyv4347[yyj4347] = OwnerReference{} + } else { + yyv4348 := &yyv4347[yyj4347] + yyv4348.CodecDecodeSelf(d) + } + + } + if yyrt4347 { + for ; yyj4347 < yyl4347; yyj4347++ { + yyv4347 = append(yyv4347, OwnerReference{}) + yyh4347.ElemContainerState(yyj4347) + if r.TryDecodeAsNil() { + yyv4347[yyj4347] = OwnerReference{} + } else { + yyv4349 := &yyv4347[yyj4347] + yyv4349.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4347 := 0 + for ; !r.CheckBreak(); yyj4347++ { + + if yyj4347 >= len(yyv4347) { + yyv4347 = append(yyv4347, OwnerReference{}) // var yyz4347 OwnerReference + yyc4347 = true + } + yyh4347.ElemContainerState(yyj4347) + if yyj4347 < len(yyv4347) { + if r.TryDecodeAsNil() { + yyv4347[yyj4347] = OwnerReference{} + } else { + yyv4350 := &yyv4347[yyj4347] + yyv4350.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4347 < len(yyv4347) { + yyv4347 = yyv4347[:yyj4347] + yyc4347 = true + } else if yyj4347 == 0 && yyv4347 == nil { + yyv4347 = []OwnerReference{} + yyc4347 = true + } + } + yyh4347.End() + if yyc4347 { + *v = yyv4347 + } +} + +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 _, yyv4351 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4351.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 + + yyv4352 := *v + yyh4352, yyl4352 := z.DecSliceHelperStart() + var yyc4352 bool + if yyl4352 == 0 { + if yyv4352 == nil { + yyv4352 = []PersistentVolumeAccessMode{} + yyc4352 = true + } else if len(yyv4352) != 0 { + yyv4352 = yyv4352[:0] + yyc4352 = true + } + } else if yyl4352 > 0 { + var yyrr4352, yyrl4352 int + var yyrt4352 bool + if yyl4352 > cap(yyv4352) { + + yyrl4352, yyrt4352 = z.DecInferLen(yyl4352, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4352 { + if yyrl4352 <= cap(yyv4352) { + yyv4352 = yyv4352[:yyrl4352] + } else { + yyv4352 = make([]PersistentVolumeAccessMode, yyrl4352) + } + } else { + yyv4352 = make([]PersistentVolumeAccessMode, yyrl4352) + } + yyc4352 = true + yyrr4352 = len(yyv4352) + } else if yyl4352 != len(yyv4352) { + yyv4352 = yyv4352[:yyl4352] + yyc4352 = true + } + yyj4352 := 0 + for ; yyj4352 < yyrr4352; yyj4352++ { + yyh4352.ElemContainerState(yyj4352) + if r.TryDecodeAsNil() { + yyv4352[yyj4352] = "" + } else { + yyv4352[yyj4352] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } + if yyrt4352 { + for ; yyj4352 < yyl4352; yyj4352++ { + yyv4352 = append(yyv4352, "") + yyh4352.ElemContainerState(yyj4352) + if r.TryDecodeAsNil() { + yyv4352[yyj4352] = "" + } else { + yyv4352[yyj4352] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } + } + + } else { + yyj4352 := 0 + for ; !r.CheckBreak(); yyj4352++ { + + if yyj4352 >= len(yyv4352) { + yyv4352 = append(yyv4352, "") // var yyz4352 PersistentVolumeAccessMode + yyc4352 = true + } + yyh4352.ElemContainerState(yyj4352) + if yyj4352 < len(yyv4352) { + if r.TryDecodeAsNil() { + yyv4352[yyj4352] = "" + } else { + yyv4352[yyj4352] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4352 < len(yyv4352) { + yyv4352 = yyv4352[:yyj4352] + yyc4352 = true + } else if yyj4352 == 0 && yyv4352 == nil { + yyv4352 = []PersistentVolumeAccessMode{} + yyc4352 = true + } + } + yyh4352.End() + if yyc4352 { + *v = yyv4352 + } +} + +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 _, yyv4356 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4357 := &yyv4356 + yy4357.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 + + yyv4358 := *v + yyh4358, yyl4358 := z.DecSliceHelperStart() + var yyc4358 bool + if yyl4358 == 0 { + if yyv4358 == nil { + yyv4358 = []PersistentVolume{} + yyc4358 = true + } else if len(yyv4358) != 0 { + yyv4358 = yyv4358[:0] + yyc4358 = true + } + } else if yyl4358 > 0 { + var yyrr4358, yyrl4358 int + var yyrt4358 bool + if yyl4358 > cap(yyv4358) { + + yyrg4358 := len(yyv4358) > 0 + yyv24358 := yyv4358 + yyrl4358, yyrt4358 = z.DecInferLen(yyl4358, z.DecBasicHandle().MaxInitLen, 456) + if yyrt4358 { + if yyrl4358 <= cap(yyv4358) { + yyv4358 = yyv4358[:yyrl4358] + } else { + yyv4358 = make([]PersistentVolume, yyrl4358) + } + } else { + yyv4358 = make([]PersistentVolume, yyrl4358) + } + yyc4358 = true + yyrr4358 = len(yyv4358) + if yyrg4358 { + copy(yyv4358, yyv24358) + } + } else if yyl4358 != len(yyv4358) { + yyv4358 = yyv4358[:yyl4358] + yyc4358 = true + } + yyj4358 := 0 + for ; yyj4358 < yyrr4358; yyj4358++ { + yyh4358.ElemContainerState(yyj4358) + if r.TryDecodeAsNil() { + yyv4358[yyj4358] = PersistentVolume{} + } else { + yyv4359 := &yyv4358[yyj4358] + yyv4359.CodecDecodeSelf(d) + } + + } + if yyrt4358 { + for ; yyj4358 < yyl4358; yyj4358++ { + yyv4358 = append(yyv4358, PersistentVolume{}) + yyh4358.ElemContainerState(yyj4358) + if r.TryDecodeAsNil() { + yyv4358[yyj4358] = PersistentVolume{} + } else { + yyv4360 := &yyv4358[yyj4358] + yyv4360.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4358 := 0 + for ; !r.CheckBreak(); yyj4358++ { + + if yyj4358 >= len(yyv4358) { + yyv4358 = append(yyv4358, PersistentVolume{}) // var yyz4358 PersistentVolume + yyc4358 = true + } + yyh4358.ElemContainerState(yyj4358) + if yyj4358 < len(yyv4358) { + if r.TryDecodeAsNil() { + yyv4358[yyj4358] = PersistentVolume{} + } else { + yyv4361 := &yyv4358[yyj4358] + yyv4361.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4358 < len(yyv4358) { + yyv4358 = yyv4358[:yyj4358] + yyc4358 = true + } else if yyj4358 == 0 && yyv4358 == nil { + yyv4358 = []PersistentVolume{} + yyc4358 = true + } + } + yyh4358.End() + if yyc4358 { + *v = yyv4358 + } +} + +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 _, yyv4362 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4363 := &yyv4362 + yy4363.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 + + yyv4364 := *v + yyh4364, yyl4364 := z.DecSliceHelperStart() + var yyc4364 bool + if yyl4364 == 0 { + if yyv4364 == nil { + yyv4364 = []PersistentVolumeClaim{} + yyc4364 = true + } else if len(yyv4364) != 0 { + yyv4364 = yyv4364[:0] + yyc4364 = true + } + } else if yyl4364 > 0 { + var yyrr4364, yyrl4364 int + var yyrt4364 bool + if yyl4364 > cap(yyv4364) { + + yyrg4364 := len(yyv4364) > 0 + yyv24364 := yyv4364 + yyrl4364, yyrt4364 = z.DecInferLen(yyl4364, z.DecBasicHandle().MaxInitLen, 352) + if yyrt4364 { + if yyrl4364 <= cap(yyv4364) { + yyv4364 = yyv4364[:yyrl4364] + } else { + yyv4364 = make([]PersistentVolumeClaim, yyrl4364) + } + } else { + yyv4364 = make([]PersistentVolumeClaim, yyrl4364) + } + yyc4364 = true + yyrr4364 = len(yyv4364) + if yyrg4364 { + copy(yyv4364, yyv24364) + } + } else if yyl4364 != len(yyv4364) { + yyv4364 = yyv4364[:yyl4364] + yyc4364 = true + } + yyj4364 := 0 + for ; yyj4364 < yyrr4364; yyj4364++ { + yyh4364.ElemContainerState(yyj4364) + if r.TryDecodeAsNil() { + yyv4364[yyj4364] = PersistentVolumeClaim{} + } else { + yyv4365 := &yyv4364[yyj4364] + yyv4365.CodecDecodeSelf(d) + } + + } + if yyrt4364 { + for ; yyj4364 < yyl4364; yyj4364++ { + yyv4364 = append(yyv4364, PersistentVolumeClaim{}) + yyh4364.ElemContainerState(yyj4364) + if r.TryDecodeAsNil() { + yyv4364[yyj4364] = PersistentVolumeClaim{} + } else { + yyv4366 := &yyv4364[yyj4364] + yyv4366.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4364 := 0 + for ; !r.CheckBreak(); yyj4364++ { + + if yyj4364 >= len(yyv4364) { + yyv4364 = append(yyv4364, PersistentVolumeClaim{}) // var yyz4364 PersistentVolumeClaim + yyc4364 = true + } + yyh4364.ElemContainerState(yyj4364) + if yyj4364 < len(yyv4364) { + if r.TryDecodeAsNil() { + yyv4364[yyj4364] = PersistentVolumeClaim{} + } else { + yyv4367 := &yyv4364[yyj4364] + yyv4367.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4364 < len(yyv4364) { + yyv4364 = yyv4364[:yyj4364] + yyc4364 = true + } else if yyj4364 == 0 && yyv4364 == nil { + yyv4364 = []PersistentVolumeClaim{} + yyc4364 = true + } + } + yyh4364.End() + if yyc4364 { + *v = yyv4364 + } +} + +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 _, yyv4368 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4369 := &yyv4368 + yy4369.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 + + yyv4370 := *v + yyh4370, yyl4370 := z.DecSliceHelperStart() + var yyc4370 bool + if yyl4370 == 0 { + if yyv4370 == nil { + yyv4370 = []KeyToPath{} + yyc4370 = true + } else if len(yyv4370) != 0 { + yyv4370 = yyv4370[:0] + yyc4370 = true + } + } else if yyl4370 > 0 { + var yyrr4370, yyrl4370 int + var yyrt4370 bool + if yyl4370 > cap(yyv4370) { + + yyrg4370 := len(yyv4370) > 0 + yyv24370 := yyv4370 + yyrl4370, yyrt4370 = z.DecInferLen(yyl4370, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4370 { + if yyrl4370 <= cap(yyv4370) { + yyv4370 = yyv4370[:yyrl4370] + } else { + yyv4370 = make([]KeyToPath, yyrl4370) + } + } else { + yyv4370 = make([]KeyToPath, yyrl4370) + } + yyc4370 = true + yyrr4370 = len(yyv4370) + if yyrg4370 { + copy(yyv4370, yyv24370) + } + } else if yyl4370 != len(yyv4370) { + yyv4370 = yyv4370[:yyl4370] + yyc4370 = true + } + yyj4370 := 0 + for ; yyj4370 < yyrr4370; yyj4370++ { + yyh4370.ElemContainerState(yyj4370) + if r.TryDecodeAsNil() { + yyv4370[yyj4370] = KeyToPath{} + } else { + yyv4371 := &yyv4370[yyj4370] + yyv4371.CodecDecodeSelf(d) + } + + } + if yyrt4370 { + for ; yyj4370 < yyl4370; yyj4370++ { + yyv4370 = append(yyv4370, KeyToPath{}) + yyh4370.ElemContainerState(yyj4370) + if r.TryDecodeAsNil() { + yyv4370[yyj4370] = KeyToPath{} + } else { + yyv4372 := &yyv4370[yyj4370] + yyv4372.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4370 := 0 + for ; !r.CheckBreak(); yyj4370++ { + + if yyj4370 >= len(yyv4370) { + yyv4370 = append(yyv4370, KeyToPath{}) // var yyz4370 KeyToPath + yyc4370 = true + } + yyh4370.ElemContainerState(yyj4370) + if yyj4370 < len(yyv4370) { + if r.TryDecodeAsNil() { + yyv4370[yyj4370] = KeyToPath{} + } else { + yyv4373 := &yyv4370[yyj4370] + yyv4373.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4370 < len(yyv4370) { + yyv4370 = yyv4370[:yyj4370] + yyc4370 = true + } else if yyj4370 == 0 && yyv4370 == nil { + yyv4370 = []KeyToPath{} + yyc4370 = true + } + } + yyh4370.End() + if yyc4370 { + *v = yyv4370 + } +} + +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 _, yyv4374 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4375 := &yyv4374 + yy4375.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 + + yyv4376 := *v + yyh4376, yyl4376 := z.DecSliceHelperStart() + var yyc4376 bool + if yyl4376 == 0 { + if yyv4376 == nil { + yyv4376 = []DownwardAPIVolumeFile{} + yyc4376 = true + } else if len(yyv4376) != 0 { + yyv4376 = yyv4376[:0] + yyc4376 = true + } + } else if yyl4376 > 0 { + var yyrr4376, yyrl4376 int + var yyrt4376 bool + if yyl4376 > cap(yyv4376) { + + yyrg4376 := len(yyv4376) > 0 + yyv24376 := yyv4376 + yyrl4376, yyrt4376 = z.DecInferLen(yyl4376, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4376 { + if yyrl4376 <= cap(yyv4376) { + yyv4376 = yyv4376[:yyrl4376] + } else { + yyv4376 = make([]DownwardAPIVolumeFile, yyrl4376) + } + } else { + yyv4376 = make([]DownwardAPIVolumeFile, yyrl4376) + } + yyc4376 = true + yyrr4376 = len(yyv4376) + if yyrg4376 { + copy(yyv4376, yyv24376) + } + } else if yyl4376 != len(yyv4376) { + yyv4376 = yyv4376[:yyl4376] + yyc4376 = true + } + yyj4376 := 0 + for ; yyj4376 < yyrr4376; yyj4376++ { + yyh4376.ElemContainerState(yyj4376) + if r.TryDecodeAsNil() { + yyv4376[yyj4376] = DownwardAPIVolumeFile{} + } else { + yyv4377 := &yyv4376[yyj4376] + yyv4377.CodecDecodeSelf(d) + } + + } + if yyrt4376 { + for ; yyj4376 < yyl4376; yyj4376++ { + yyv4376 = append(yyv4376, DownwardAPIVolumeFile{}) + yyh4376.ElemContainerState(yyj4376) + if r.TryDecodeAsNil() { + yyv4376[yyj4376] = DownwardAPIVolumeFile{} + } else { + yyv4378 := &yyv4376[yyj4376] + yyv4378.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4376 := 0 + for ; !r.CheckBreak(); yyj4376++ { + + if yyj4376 >= len(yyv4376) { + yyv4376 = append(yyv4376, DownwardAPIVolumeFile{}) // var yyz4376 DownwardAPIVolumeFile + yyc4376 = true + } + yyh4376.ElemContainerState(yyj4376) + if yyj4376 < len(yyv4376) { + if r.TryDecodeAsNil() { + yyv4376[yyj4376] = DownwardAPIVolumeFile{} + } else { + yyv4379 := &yyv4376[yyj4376] + yyv4379.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4376 < len(yyv4376) { + yyv4376 = yyv4376[:yyj4376] + yyc4376 = true + } else if yyj4376 == 0 && yyv4376 == nil { + yyv4376 = []DownwardAPIVolumeFile{} + yyc4376 = true + } + } + yyh4376.End() + if yyc4376 { + *v = yyv4376 + } +} + +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 _, yyv4380 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4381 := &yyv4380 + yy4381.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 + + yyv4382 := *v + yyh4382, yyl4382 := z.DecSliceHelperStart() + var yyc4382 bool + if yyl4382 == 0 { + if yyv4382 == nil { + yyv4382 = []HTTPHeader{} + yyc4382 = true + } else if len(yyv4382) != 0 { + yyv4382 = yyv4382[:0] + yyc4382 = true + } + } else if yyl4382 > 0 { + var yyrr4382, yyrl4382 int + var yyrt4382 bool + if yyl4382 > cap(yyv4382) { + + yyrg4382 := len(yyv4382) > 0 + yyv24382 := yyv4382 + yyrl4382, yyrt4382 = z.DecInferLen(yyl4382, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4382 { + if yyrl4382 <= cap(yyv4382) { + yyv4382 = yyv4382[:yyrl4382] + } else { + yyv4382 = make([]HTTPHeader, yyrl4382) + } + } else { + yyv4382 = make([]HTTPHeader, yyrl4382) + } + yyc4382 = true + yyrr4382 = len(yyv4382) + if yyrg4382 { + copy(yyv4382, yyv24382) + } + } else if yyl4382 != len(yyv4382) { + yyv4382 = yyv4382[:yyl4382] + yyc4382 = true + } + yyj4382 := 0 + for ; yyj4382 < yyrr4382; yyj4382++ { + yyh4382.ElemContainerState(yyj4382) + if r.TryDecodeAsNil() { + yyv4382[yyj4382] = HTTPHeader{} + } else { + yyv4383 := &yyv4382[yyj4382] + yyv4383.CodecDecodeSelf(d) + } + + } + if yyrt4382 { + for ; yyj4382 < yyl4382; yyj4382++ { + yyv4382 = append(yyv4382, HTTPHeader{}) + yyh4382.ElemContainerState(yyj4382) + if r.TryDecodeAsNil() { + yyv4382[yyj4382] = HTTPHeader{} + } else { + yyv4384 := &yyv4382[yyj4382] + yyv4384.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4382 := 0 + for ; !r.CheckBreak(); yyj4382++ { + + if yyj4382 >= len(yyv4382) { + yyv4382 = append(yyv4382, HTTPHeader{}) // var yyz4382 HTTPHeader + yyc4382 = true + } + yyh4382.ElemContainerState(yyj4382) + if yyj4382 < len(yyv4382) { + if r.TryDecodeAsNil() { + yyv4382[yyj4382] = HTTPHeader{} + } else { + yyv4385 := &yyv4382[yyj4382] + yyv4385.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4382 < len(yyv4382) { + yyv4382 = yyv4382[:yyj4382] + yyc4382 = true + } else if yyj4382 == 0 && yyv4382 == nil { + yyv4382 = []HTTPHeader{} + yyc4382 = true + } + } + yyh4382.End() + if yyc4382 { + *v = yyv4382 + } +} + +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 _, yyv4386 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4386.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 + + yyv4387 := *v + yyh4387, yyl4387 := z.DecSliceHelperStart() + var yyc4387 bool + if yyl4387 == 0 { + if yyv4387 == nil { + yyv4387 = []Capability{} + yyc4387 = true + } else if len(yyv4387) != 0 { + yyv4387 = yyv4387[:0] + yyc4387 = true + } + } else if yyl4387 > 0 { + var yyrr4387, yyrl4387 int + var yyrt4387 bool + if yyl4387 > cap(yyv4387) { + + yyrl4387, yyrt4387 = z.DecInferLen(yyl4387, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4387 { + if yyrl4387 <= cap(yyv4387) { + yyv4387 = yyv4387[:yyrl4387] + } else { + yyv4387 = make([]Capability, yyrl4387) + } + } else { + yyv4387 = make([]Capability, yyrl4387) + } + yyc4387 = true + yyrr4387 = len(yyv4387) + } else if yyl4387 != len(yyv4387) { + yyv4387 = yyv4387[:yyl4387] + yyc4387 = true + } + yyj4387 := 0 + for ; yyj4387 < yyrr4387; yyj4387++ { + yyh4387.ElemContainerState(yyj4387) + if r.TryDecodeAsNil() { + yyv4387[yyj4387] = "" + } else { + yyv4387[yyj4387] = Capability(r.DecodeString()) + } + + } + if yyrt4387 { + for ; yyj4387 < yyl4387; yyj4387++ { + yyv4387 = append(yyv4387, "") + yyh4387.ElemContainerState(yyj4387) + if r.TryDecodeAsNil() { + yyv4387[yyj4387] = "" + } else { + yyv4387[yyj4387] = Capability(r.DecodeString()) + } + + } + } + + } else { + yyj4387 := 0 + for ; !r.CheckBreak(); yyj4387++ { + + if yyj4387 >= len(yyv4387) { + yyv4387 = append(yyv4387, "") // var yyz4387 Capability + yyc4387 = true + } + yyh4387.ElemContainerState(yyj4387) + if yyj4387 < len(yyv4387) { + if r.TryDecodeAsNil() { + yyv4387[yyj4387] = "" + } else { + yyv4387[yyj4387] = Capability(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4387 < len(yyv4387) { + yyv4387 = yyv4387[:yyj4387] + yyc4387 = true + } else if yyj4387 == 0 && yyv4387 == nil { + yyv4387 = []Capability{} + yyc4387 = true + } + } + yyh4387.End() + if yyc4387 { + *v = yyv4387 + } +} + +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 _, yyv4391 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4392 := &yyv4391 + yy4392.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 + + yyv4393 := *v + yyh4393, yyl4393 := z.DecSliceHelperStart() + var yyc4393 bool + if yyl4393 == 0 { + if yyv4393 == nil { + yyv4393 = []ContainerPort{} + yyc4393 = true + } else if len(yyv4393) != 0 { + yyv4393 = yyv4393[:0] + yyc4393 = true + } + } else if yyl4393 > 0 { + var yyrr4393, yyrl4393 int + var yyrt4393 bool + if yyl4393 > cap(yyv4393) { + + yyrg4393 := len(yyv4393) > 0 + yyv24393 := yyv4393 + yyrl4393, yyrt4393 = z.DecInferLen(yyl4393, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4393 { + if yyrl4393 <= cap(yyv4393) { + yyv4393 = yyv4393[:yyrl4393] + } else { + yyv4393 = make([]ContainerPort, yyrl4393) + } + } else { + yyv4393 = make([]ContainerPort, yyrl4393) + } + yyc4393 = true + yyrr4393 = len(yyv4393) + if yyrg4393 { + copy(yyv4393, yyv24393) + } + } else if yyl4393 != len(yyv4393) { + yyv4393 = yyv4393[:yyl4393] + yyc4393 = true + } + yyj4393 := 0 + for ; yyj4393 < yyrr4393; yyj4393++ { + yyh4393.ElemContainerState(yyj4393) + if r.TryDecodeAsNil() { + yyv4393[yyj4393] = ContainerPort{} + } else { + yyv4394 := &yyv4393[yyj4393] + yyv4394.CodecDecodeSelf(d) + } + + } + if yyrt4393 { + for ; yyj4393 < yyl4393; yyj4393++ { + yyv4393 = append(yyv4393, ContainerPort{}) + yyh4393.ElemContainerState(yyj4393) + if r.TryDecodeAsNil() { + yyv4393[yyj4393] = ContainerPort{} + } else { + yyv4395 := &yyv4393[yyj4393] + yyv4395.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4393 := 0 + for ; !r.CheckBreak(); yyj4393++ { + + if yyj4393 >= len(yyv4393) { + yyv4393 = append(yyv4393, ContainerPort{}) // var yyz4393 ContainerPort + yyc4393 = true + } + yyh4393.ElemContainerState(yyj4393) + if yyj4393 < len(yyv4393) { + if r.TryDecodeAsNil() { + yyv4393[yyj4393] = ContainerPort{} + } else { + yyv4396 := &yyv4393[yyj4393] + yyv4396.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4393 < len(yyv4393) { + yyv4393 = yyv4393[:yyj4393] + yyc4393 = true + } else if yyj4393 == 0 && yyv4393 == nil { + yyv4393 = []ContainerPort{} + yyc4393 = true + } + } + yyh4393.End() + if yyc4393 { + *v = yyv4393 + } +} + +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 _, yyv4397 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4398 := &yyv4397 + yy4398.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 + + yyv4399 := *v + yyh4399, yyl4399 := z.DecSliceHelperStart() + var yyc4399 bool + if yyl4399 == 0 { + if yyv4399 == nil { + yyv4399 = []EnvVar{} + yyc4399 = true + } else if len(yyv4399) != 0 { + yyv4399 = yyv4399[:0] + yyc4399 = true + } + } else if yyl4399 > 0 { + var yyrr4399, yyrl4399 int + var yyrt4399 bool + if yyl4399 > cap(yyv4399) { + + yyrg4399 := len(yyv4399) > 0 + yyv24399 := yyv4399 + yyrl4399, yyrt4399 = z.DecInferLen(yyl4399, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4399 { + if yyrl4399 <= cap(yyv4399) { + yyv4399 = yyv4399[:yyrl4399] + } else { + yyv4399 = make([]EnvVar, yyrl4399) + } + } else { + yyv4399 = make([]EnvVar, yyrl4399) + } + yyc4399 = true + yyrr4399 = len(yyv4399) + if yyrg4399 { + copy(yyv4399, yyv24399) + } + } else if yyl4399 != len(yyv4399) { + yyv4399 = yyv4399[:yyl4399] + yyc4399 = true + } + yyj4399 := 0 + for ; yyj4399 < yyrr4399; yyj4399++ { + yyh4399.ElemContainerState(yyj4399) + if r.TryDecodeAsNil() { + yyv4399[yyj4399] = EnvVar{} + } else { + yyv4400 := &yyv4399[yyj4399] + yyv4400.CodecDecodeSelf(d) + } + + } + if yyrt4399 { + for ; yyj4399 < yyl4399; yyj4399++ { + yyv4399 = append(yyv4399, EnvVar{}) + yyh4399.ElemContainerState(yyj4399) + if r.TryDecodeAsNil() { + yyv4399[yyj4399] = EnvVar{} + } else { + yyv4401 := &yyv4399[yyj4399] + yyv4401.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4399 := 0 + for ; !r.CheckBreak(); yyj4399++ { + + if yyj4399 >= len(yyv4399) { + yyv4399 = append(yyv4399, EnvVar{}) // var yyz4399 EnvVar + yyc4399 = true + } + yyh4399.ElemContainerState(yyj4399) + if yyj4399 < len(yyv4399) { + if r.TryDecodeAsNil() { + yyv4399[yyj4399] = EnvVar{} + } else { + yyv4402 := &yyv4399[yyj4399] + yyv4402.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4399 < len(yyv4399) { + yyv4399 = yyv4399[:yyj4399] + yyc4399 = true + } else if yyj4399 == 0 && yyv4399 == nil { + yyv4399 = []EnvVar{} + yyc4399 = true + } + } + yyh4399.End() + if yyc4399 { + *v = yyv4399 + } +} + +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 _, yyv4403 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4404 := &yyv4403 + yy4404.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 + + yyv4405 := *v + yyh4405, yyl4405 := z.DecSliceHelperStart() + var yyc4405 bool + if yyl4405 == 0 { + if yyv4405 == nil { + yyv4405 = []VolumeMount{} + yyc4405 = true + } else if len(yyv4405) != 0 { + yyv4405 = yyv4405[:0] + yyc4405 = true + } + } else if yyl4405 > 0 { + var yyrr4405, yyrl4405 int + var yyrt4405 bool + if yyl4405 > cap(yyv4405) { + + yyrg4405 := len(yyv4405) > 0 + yyv24405 := yyv4405 + yyrl4405, yyrt4405 = z.DecInferLen(yyl4405, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4405 { + if yyrl4405 <= cap(yyv4405) { + yyv4405 = yyv4405[:yyrl4405] + } else { + yyv4405 = make([]VolumeMount, yyrl4405) + } + } else { + yyv4405 = make([]VolumeMount, yyrl4405) + } + yyc4405 = true + yyrr4405 = len(yyv4405) + if yyrg4405 { + copy(yyv4405, yyv24405) + } + } else if yyl4405 != len(yyv4405) { + yyv4405 = yyv4405[:yyl4405] + yyc4405 = true + } + yyj4405 := 0 + for ; yyj4405 < yyrr4405; yyj4405++ { + yyh4405.ElemContainerState(yyj4405) + if r.TryDecodeAsNil() { + yyv4405[yyj4405] = VolumeMount{} + } else { + yyv4406 := &yyv4405[yyj4405] + yyv4406.CodecDecodeSelf(d) + } + + } + if yyrt4405 { + for ; yyj4405 < yyl4405; yyj4405++ { + yyv4405 = append(yyv4405, VolumeMount{}) + yyh4405.ElemContainerState(yyj4405) + if r.TryDecodeAsNil() { + yyv4405[yyj4405] = VolumeMount{} + } else { + yyv4407 := &yyv4405[yyj4405] + yyv4407.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4405 := 0 + for ; !r.CheckBreak(); yyj4405++ { + + if yyj4405 >= len(yyv4405) { + yyv4405 = append(yyv4405, VolumeMount{}) // var yyz4405 VolumeMount + yyc4405 = true + } + yyh4405.ElemContainerState(yyj4405) + if yyj4405 < len(yyv4405) { + if r.TryDecodeAsNil() { + yyv4405[yyj4405] = VolumeMount{} + } else { + yyv4408 := &yyv4405[yyj4405] + yyv4408.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4405 < len(yyv4405) { + yyv4405 = yyv4405[:yyj4405] + yyc4405 = true + } else if yyj4405 == 0 && yyv4405 == nil { + yyv4405 = []VolumeMount{} + yyc4405 = true + } + } + yyh4405.End() + if yyc4405 { + *v = yyv4405 + } +} + +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 _, yyv4409 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4410 := &yyv4409 + yy4410.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 + + yyv4411 := *v + yyh4411, yyl4411 := z.DecSliceHelperStart() + var yyc4411 bool + if yyl4411 == 0 { + if yyv4411 == nil { + yyv4411 = []Pod{} + yyc4411 = true + } else if len(yyv4411) != 0 { + yyv4411 = yyv4411[:0] + yyc4411 = true + } + } else if yyl4411 > 0 { + var yyrr4411, yyrl4411 int + var yyrt4411 bool + if yyl4411 > cap(yyv4411) { + + yyrg4411 := len(yyv4411) > 0 + yyv24411 := yyv4411 + yyrl4411, yyrt4411 = z.DecInferLen(yyl4411, z.DecBasicHandle().MaxInitLen, 624) + if yyrt4411 { + if yyrl4411 <= cap(yyv4411) { + yyv4411 = yyv4411[:yyrl4411] + } else { + yyv4411 = make([]Pod, yyrl4411) + } + } else { + yyv4411 = make([]Pod, yyrl4411) + } + yyc4411 = true + yyrr4411 = len(yyv4411) + if yyrg4411 { + copy(yyv4411, yyv24411) + } + } else if yyl4411 != len(yyv4411) { + yyv4411 = yyv4411[:yyl4411] + yyc4411 = true + } + yyj4411 := 0 + for ; yyj4411 < yyrr4411; yyj4411++ { + yyh4411.ElemContainerState(yyj4411) + if r.TryDecodeAsNil() { + yyv4411[yyj4411] = Pod{} + } else { + yyv4412 := &yyv4411[yyj4411] + yyv4412.CodecDecodeSelf(d) + } + + } + if yyrt4411 { + for ; yyj4411 < yyl4411; yyj4411++ { + yyv4411 = append(yyv4411, Pod{}) + yyh4411.ElemContainerState(yyj4411) + if r.TryDecodeAsNil() { + yyv4411[yyj4411] = Pod{} + } else { + yyv4413 := &yyv4411[yyj4411] + yyv4413.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4411 := 0 + for ; !r.CheckBreak(); yyj4411++ { + + if yyj4411 >= len(yyv4411) { + yyv4411 = append(yyv4411, Pod{}) // var yyz4411 Pod + yyc4411 = true + } + yyh4411.ElemContainerState(yyj4411) + if yyj4411 < len(yyv4411) { + if r.TryDecodeAsNil() { + yyv4411[yyj4411] = Pod{} + } else { + yyv4414 := &yyv4411[yyj4411] + yyv4414.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4411 < len(yyv4411) { + yyv4411 = yyv4411[:yyj4411] + yyc4411 = true + } else if yyj4411 == 0 && yyv4411 == nil { + yyv4411 = []Pod{} + yyc4411 = true + } + } + yyh4411.End() + if yyc4411 { + *v = yyv4411 + } +} + +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 _, yyv4415 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4416 := &yyv4415 + yy4416.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 + + yyv4417 := *v + yyh4417, yyl4417 := z.DecSliceHelperStart() + var yyc4417 bool + if yyl4417 == 0 { + if yyv4417 == nil { + yyv4417 = []NodeSelectorTerm{} + yyc4417 = true + } else if len(yyv4417) != 0 { + yyv4417 = yyv4417[:0] + yyc4417 = true + } + } else if yyl4417 > 0 { + var yyrr4417, yyrl4417 int + var yyrt4417 bool + if yyl4417 > cap(yyv4417) { + + yyrg4417 := len(yyv4417) > 0 + yyv24417 := yyv4417 + yyrl4417, yyrt4417 = z.DecInferLen(yyl4417, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4417 { + if yyrl4417 <= cap(yyv4417) { + yyv4417 = yyv4417[:yyrl4417] + } else { + yyv4417 = make([]NodeSelectorTerm, yyrl4417) + } + } else { + yyv4417 = make([]NodeSelectorTerm, yyrl4417) + } + yyc4417 = true + yyrr4417 = len(yyv4417) + if yyrg4417 { + copy(yyv4417, yyv24417) + } + } else if yyl4417 != len(yyv4417) { + yyv4417 = yyv4417[:yyl4417] + yyc4417 = true + } + yyj4417 := 0 + for ; yyj4417 < yyrr4417; yyj4417++ { + yyh4417.ElemContainerState(yyj4417) + if r.TryDecodeAsNil() { + yyv4417[yyj4417] = NodeSelectorTerm{} + } else { + yyv4418 := &yyv4417[yyj4417] + yyv4418.CodecDecodeSelf(d) + } + + } + if yyrt4417 { + for ; yyj4417 < yyl4417; yyj4417++ { + yyv4417 = append(yyv4417, NodeSelectorTerm{}) + yyh4417.ElemContainerState(yyj4417) + if r.TryDecodeAsNil() { + yyv4417[yyj4417] = NodeSelectorTerm{} + } else { + yyv4419 := &yyv4417[yyj4417] + yyv4419.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4417 := 0 + for ; !r.CheckBreak(); yyj4417++ { + + if yyj4417 >= len(yyv4417) { + yyv4417 = append(yyv4417, NodeSelectorTerm{}) // var yyz4417 NodeSelectorTerm + yyc4417 = true + } + yyh4417.ElemContainerState(yyj4417) + if yyj4417 < len(yyv4417) { + if r.TryDecodeAsNil() { + yyv4417[yyj4417] = NodeSelectorTerm{} + } else { + yyv4420 := &yyv4417[yyj4417] + yyv4420.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4417 < len(yyv4417) { + yyv4417 = yyv4417[:yyj4417] + yyc4417 = true + } else if yyj4417 == 0 && yyv4417 == nil { + yyv4417 = []NodeSelectorTerm{} + yyc4417 = true + } + } + yyh4417.End() + if yyc4417 { + *v = yyv4417 + } +} + +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 _, yyv4421 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4422 := &yyv4421 + yy4422.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 + + yyv4423 := *v + yyh4423, yyl4423 := z.DecSliceHelperStart() + var yyc4423 bool + if yyl4423 == 0 { + if yyv4423 == nil { + yyv4423 = []NodeSelectorRequirement{} + yyc4423 = true + } else if len(yyv4423) != 0 { + yyv4423 = yyv4423[:0] + yyc4423 = true + } + } else if yyl4423 > 0 { + var yyrr4423, yyrl4423 int + var yyrt4423 bool + if yyl4423 > cap(yyv4423) { + + yyrg4423 := len(yyv4423) > 0 + yyv24423 := yyv4423 + yyrl4423, yyrt4423 = z.DecInferLen(yyl4423, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4423 { + if yyrl4423 <= cap(yyv4423) { + yyv4423 = yyv4423[:yyrl4423] + } else { + yyv4423 = make([]NodeSelectorRequirement, yyrl4423) + } + } else { + yyv4423 = make([]NodeSelectorRequirement, yyrl4423) + } + yyc4423 = true + yyrr4423 = len(yyv4423) + if yyrg4423 { + copy(yyv4423, yyv24423) + } + } else if yyl4423 != len(yyv4423) { + yyv4423 = yyv4423[:yyl4423] + yyc4423 = true + } + yyj4423 := 0 + for ; yyj4423 < yyrr4423; yyj4423++ { + yyh4423.ElemContainerState(yyj4423) + if r.TryDecodeAsNil() { + yyv4423[yyj4423] = NodeSelectorRequirement{} + } else { + yyv4424 := &yyv4423[yyj4423] + yyv4424.CodecDecodeSelf(d) + } + + } + if yyrt4423 { + for ; yyj4423 < yyl4423; yyj4423++ { + yyv4423 = append(yyv4423, NodeSelectorRequirement{}) + yyh4423.ElemContainerState(yyj4423) + if r.TryDecodeAsNil() { + yyv4423[yyj4423] = NodeSelectorRequirement{} + } else { + yyv4425 := &yyv4423[yyj4423] + yyv4425.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4423 := 0 + for ; !r.CheckBreak(); yyj4423++ { + + if yyj4423 >= len(yyv4423) { + yyv4423 = append(yyv4423, NodeSelectorRequirement{}) // var yyz4423 NodeSelectorRequirement + yyc4423 = true + } + yyh4423.ElemContainerState(yyj4423) + if yyj4423 < len(yyv4423) { + if r.TryDecodeAsNil() { + yyv4423[yyj4423] = NodeSelectorRequirement{} + } else { + yyv4426 := &yyv4423[yyj4423] + yyv4426.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4423 < len(yyv4423) { + yyv4423 = yyv4423[:yyj4423] + yyc4423 = true + } else if yyj4423 == 0 && yyv4423 == nil { + yyv4423 = []NodeSelectorRequirement{} + yyc4423 = true + } + } + yyh4423.End() + if yyc4423 { + *v = yyv4423 + } +} + +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 _, yyv4427 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4428 := &yyv4427 + yy4428.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 + + yyv4429 := *v + yyh4429, yyl4429 := z.DecSliceHelperStart() + var yyc4429 bool + if yyl4429 == 0 { + if yyv4429 == nil { + yyv4429 = []PodAffinityTerm{} + yyc4429 = true + } else if len(yyv4429) != 0 { + yyv4429 = yyv4429[:0] + yyc4429 = true + } + } else if yyl4429 > 0 { + var yyrr4429, yyrl4429 int + var yyrt4429 bool + if yyl4429 > cap(yyv4429) { + + yyrg4429 := len(yyv4429) > 0 + yyv24429 := yyv4429 + yyrl4429, yyrt4429 = z.DecInferLen(yyl4429, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4429 { + if yyrl4429 <= cap(yyv4429) { + yyv4429 = yyv4429[:yyrl4429] + } else { + yyv4429 = make([]PodAffinityTerm, yyrl4429) + } + } else { + yyv4429 = make([]PodAffinityTerm, yyrl4429) + } + yyc4429 = true + yyrr4429 = len(yyv4429) + if yyrg4429 { + copy(yyv4429, yyv24429) + } + } else if yyl4429 != len(yyv4429) { + yyv4429 = yyv4429[:yyl4429] + yyc4429 = true + } + yyj4429 := 0 + for ; yyj4429 < yyrr4429; yyj4429++ { + yyh4429.ElemContainerState(yyj4429) + if r.TryDecodeAsNil() { + yyv4429[yyj4429] = PodAffinityTerm{} + } else { + yyv4430 := &yyv4429[yyj4429] + yyv4430.CodecDecodeSelf(d) + } + + } + if yyrt4429 { + for ; yyj4429 < yyl4429; yyj4429++ { + yyv4429 = append(yyv4429, PodAffinityTerm{}) + yyh4429.ElemContainerState(yyj4429) + if r.TryDecodeAsNil() { + yyv4429[yyj4429] = PodAffinityTerm{} + } else { + yyv4431 := &yyv4429[yyj4429] + yyv4431.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4429 := 0 + for ; !r.CheckBreak(); yyj4429++ { + + if yyj4429 >= len(yyv4429) { + yyv4429 = append(yyv4429, PodAffinityTerm{}) // var yyz4429 PodAffinityTerm + yyc4429 = true + } + yyh4429.ElemContainerState(yyj4429) + if yyj4429 < len(yyv4429) { + if r.TryDecodeAsNil() { + yyv4429[yyj4429] = PodAffinityTerm{} + } else { + yyv4432 := &yyv4429[yyj4429] + yyv4432.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4429 < len(yyv4429) { + yyv4429 = yyv4429[:yyj4429] + yyc4429 = true + } else if yyj4429 == 0 && yyv4429 == nil { + yyv4429 = []PodAffinityTerm{} + yyc4429 = true + } + } + yyh4429.End() + if yyc4429 { + *v = yyv4429 + } +} + +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 _, yyv4433 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4434 := &yyv4433 + yy4434.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 + + yyv4435 := *v + yyh4435, yyl4435 := z.DecSliceHelperStart() + var yyc4435 bool + if yyl4435 == 0 { + if yyv4435 == nil { + yyv4435 = []WeightedPodAffinityTerm{} + yyc4435 = true + } else if len(yyv4435) != 0 { + yyv4435 = yyv4435[:0] + yyc4435 = true + } + } else if yyl4435 > 0 { + var yyrr4435, yyrl4435 int + var yyrt4435 bool + if yyl4435 > cap(yyv4435) { + + yyrg4435 := len(yyv4435) > 0 + yyv24435 := yyv4435 + yyrl4435, yyrt4435 = z.DecInferLen(yyl4435, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4435 { + if yyrl4435 <= cap(yyv4435) { + yyv4435 = yyv4435[:yyrl4435] + } else { + yyv4435 = make([]WeightedPodAffinityTerm, yyrl4435) + } + } else { + yyv4435 = make([]WeightedPodAffinityTerm, yyrl4435) + } + yyc4435 = true + yyrr4435 = len(yyv4435) + if yyrg4435 { + copy(yyv4435, yyv24435) + } + } else if yyl4435 != len(yyv4435) { + yyv4435 = yyv4435[:yyl4435] + yyc4435 = true + } + yyj4435 := 0 + for ; yyj4435 < yyrr4435; yyj4435++ { + yyh4435.ElemContainerState(yyj4435) + if r.TryDecodeAsNil() { + yyv4435[yyj4435] = WeightedPodAffinityTerm{} + } else { + yyv4436 := &yyv4435[yyj4435] + yyv4436.CodecDecodeSelf(d) + } + + } + if yyrt4435 { + for ; yyj4435 < yyl4435; yyj4435++ { + yyv4435 = append(yyv4435, WeightedPodAffinityTerm{}) + yyh4435.ElemContainerState(yyj4435) + if r.TryDecodeAsNil() { + yyv4435[yyj4435] = WeightedPodAffinityTerm{} + } else { + yyv4437 := &yyv4435[yyj4435] + yyv4437.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4435 := 0 + for ; !r.CheckBreak(); yyj4435++ { + + if yyj4435 >= len(yyv4435) { + yyv4435 = append(yyv4435, WeightedPodAffinityTerm{}) // var yyz4435 WeightedPodAffinityTerm + yyc4435 = true + } + yyh4435.ElemContainerState(yyj4435) + if yyj4435 < len(yyv4435) { + if r.TryDecodeAsNil() { + yyv4435[yyj4435] = WeightedPodAffinityTerm{} + } else { + yyv4438 := &yyv4435[yyj4435] + yyv4438.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4435 < len(yyv4435) { + yyv4435 = yyv4435[:yyj4435] + yyc4435 = true + } else if yyj4435 == 0 && yyv4435 == nil { + yyv4435 = []WeightedPodAffinityTerm{} + yyc4435 = true + } + } + yyh4435.End() + if yyc4435 { + *v = yyv4435 + } +} + +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 _, yyv4439 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4440 := &yyv4439 + yy4440.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 + + yyv4441 := *v + yyh4441, yyl4441 := z.DecSliceHelperStart() + var yyc4441 bool + if yyl4441 == 0 { + if yyv4441 == nil { + yyv4441 = []PreferredSchedulingTerm{} + yyc4441 = true + } else if len(yyv4441) != 0 { + yyv4441 = yyv4441[:0] + yyc4441 = true + } + } else if yyl4441 > 0 { + var yyrr4441, yyrl4441 int + var yyrt4441 bool + if yyl4441 > cap(yyv4441) { + + yyrg4441 := len(yyv4441) > 0 + yyv24441 := yyv4441 + yyrl4441, yyrt4441 = z.DecInferLen(yyl4441, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4441 { + if yyrl4441 <= cap(yyv4441) { + yyv4441 = yyv4441[:yyrl4441] + } else { + yyv4441 = make([]PreferredSchedulingTerm, yyrl4441) + } + } else { + yyv4441 = make([]PreferredSchedulingTerm, yyrl4441) + } + yyc4441 = true + yyrr4441 = len(yyv4441) + if yyrg4441 { + copy(yyv4441, yyv24441) + } + } else if yyl4441 != len(yyv4441) { + yyv4441 = yyv4441[:yyl4441] + yyc4441 = true + } + yyj4441 := 0 + for ; yyj4441 < yyrr4441; yyj4441++ { + yyh4441.ElemContainerState(yyj4441) + if r.TryDecodeAsNil() { + yyv4441[yyj4441] = PreferredSchedulingTerm{} + } else { + yyv4442 := &yyv4441[yyj4441] + yyv4442.CodecDecodeSelf(d) + } + + } + if yyrt4441 { + for ; yyj4441 < yyl4441; yyj4441++ { + yyv4441 = append(yyv4441, PreferredSchedulingTerm{}) + yyh4441.ElemContainerState(yyj4441) + if r.TryDecodeAsNil() { + yyv4441[yyj4441] = PreferredSchedulingTerm{} + } else { + yyv4443 := &yyv4441[yyj4441] + yyv4443.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4441 := 0 + for ; !r.CheckBreak(); yyj4441++ { + + if yyj4441 >= len(yyv4441) { + yyv4441 = append(yyv4441, PreferredSchedulingTerm{}) // var yyz4441 PreferredSchedulingTerm + yyc4441 = true + } + yyh4441.ElemContainerState(yyj4441) + if yyj4441 < len(yyv4441) { + if r.TryDecodeAsNil() { + yyv4441[yyj4441] = PreferredSchedulingTerm{} + } else { + yyv4444 := &yyv4441[yyj4441] + yyv4444.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4441 < len(yyv4441) { + yyv4441 = yyv4441[:yyj4441] + yyc4441 = true + } else if yyj4441 == 0 && yyv4441 == nil { + yyv4441 = []PreferredSchedulingTerm{} + yyc4441 = true + } + } + yyh4441.End() + if yyc4441 { + *v = yyv4441 + } +} + +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 _, yyv4445 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4446 := &yyv4445 + yy4446.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 + + yyv4447 := *v + yyh4447, yyl4447 := z.DecSliceHelperStart() + var yyc4447 bool + if yyl4447 == 0 { + if yyv4447 == nil { + yyv4447 = []Volume{} + yyc4447 = true + } else if len(yyv4447) != 0 { + yyv4447 = yyv4447[:0] + yyc4447 = true + } + } else if yyl4447 > 0 { + var yyrr4447, yyrl4447 int + var yyrt4447 bool + if yyl4447 > cap(yyv4447) { + + yyrg4447 := len(yyv4447) > 0 + yyv24447 := yyv4447 + yyrl4447, yyrt4447 = z.DecInferLen(yyl4447, z.DecBasicHandle().MaxInitLen, 176) + if yyrt4447 { + if yyrl4447 <= cap(yyv4447) { + yyv4447 = yyv4447[:yyrl4447] + } else { + yyv4447 = make([]Volume, yyrl4447) + } + } else { + yyv4447 = make([]Volume, yyrl4447) + } + yyc4447 = true + yyrr4447 = len(yyv4447) + if yyrg4447 { + copy(yyv4447, yyv24447) + } + } else if yyl4447 != len(yyv4447) { + yyv4447 = yyv4447[:yyl4447] + yyc4447 = true + } + yyj4447 := 0 + for ; yyj4447 < yyrr4447; yyj4447++ { + yyh4447.ElemContainerState(yyj4447) + if r.TryDecodeAsNil() { + yyv4447[yyj4447] = Volume{} + } else { + yyv4448 := &yyv4447[yyj4447] + yyv4448.CodecDecodeSelf(d) + } + + } + if yyrt4447 { + for ; yyj4447 < yyl4447; yyj4447++ { + yyv4447 = append(yyv4447, Volume{}) + yyh4447.ElemContainerState(yyj4447) + if r.TryDecodeAsNil() { + yyv4447[yyj4447] = Volume{} + } else { + yyv4449 := &yyv4447[yyj4447] + yyv4449.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4447 := 0 + for ; !r.CheckBreak(); yyj4447++ { + + if yyj4447 >= len(yyv4447) { + yyv4447 = append(yyv4447, Volume{}) // var yyz4447 Volume + yyc4447 = true + } + yyh4447.ElemContainerState(yyj4447) + if yyj4447 < len(yyv4447) { + if r.TryDecodeAsNil() { + yyv4447[yyj4447] = Volume{} + } else { + yyv4450 := &yyv4447[yyj4447] + yyv4450.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4447 < len(yyv4447) { + yyv4447 = yyv4447[:yyj4447] + yyc4447 = true + } else if yyj4447 == 0 && yyv4447 == nil { + yyv4447 = []Volume{} + yyc4447 = true + } + } + yyh4447.End() + if yyc4447 { + *v = yyv4447 + } +} + +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 _, yyv4451 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4452 := &yyv4451 + yy4452.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 + + yyv4453 := *v + yyh4453, yyl4453 := z.DecSliceHelperStart() + var yyc4453 bool + if yyl4453 == 0 { + if yyv4453 == nil { + yyv4453 = []Container{} + yyc4453 = true + } else if len(yyv4453) != 0 { + yyv4453 = yyv4453[:0] + yyc4453 = true + } + } else if yyl4453 > 0 { + var yyrr4453, yyrl4453 int + var yyrt4453 bool + if yyl4453 > cap(yyv4453) { + + yyrg4453 := len(yyv4453) > 0 + yyv24453 := yyv4453 + yyrl4453, yyrt4453 = z.DecInferLen(yyl4453, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4453 { + if yyrl4453 <= cap(yyv4453) { + yyv4453 = yyv4453[:yyrl4453] + } else { + yyv4453 = make([]Container, yyrl4453) + } + } else { + yyv4453 = make([]Container, yyrl4453) + } + yyc4453 = true + yyrr4453 = len(yyv4453) + if yyrg4453 { + copy(yyv4453, yyv24453) + } + } else if yyl4453 != len(yyv4453) { + yyv4453 = yyv4453[:yyl4453] + yyc4453 = true + } + yyj4453 := 0 + for ; yyj4453 < yyrr4453; yyj4453++ { + yyh4453.ElemContainerState(yyj4453) + if r.TryDecodeAsNil() { + yyv4453[yyj4453] = Container{} + } else { + yyv4454 := &yyv4453[yyj4453] + yyv4454.CodecDecodeSelf(d) + } + + } + if yyrt4453 { + for ; yyj4453 < yyl4453; yyj4453++ { + yyv4453 = append(yyv4453, Container{}) + yyh4453.ElemContainerState(yyj4453) + if r.TryDecodeAsNil() { + yyv4453[yyj4453] = Container{} + } else { + yyv4455 := &yyv4453[yyj4453] + yyv4455.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4453 := 0 + for ; !r.CheckBreak(); yyj4453++ { + + if yyj4453 >= len(yyv4453) { + yyv4453 = append(yyv4453, Container{}) // var yyz4453 Container + yyc4453 = true + } + yyh4453.ElemContainerState(yyj4453) + if yyj4453 < len(yyv4453) { + if r.TryDecodeAsNil() { + yyv4453[yyj4453] = Container{} + } else { + yyv4456 := &yyv4453[yyj4453] + yyv4456.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4453 < len(yyv4453) { + yyv4453 = yyv4453[:yyj4453] + yyc4453 = true + } else if yyj4453 == 0 && yyv4453 == nil { + yyv4453 = []Container{} + yyc4453 = true + } + } + yyh4453.End() + if yyc4453 { + *v = yyv4453 + } +} + +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 _, yyv4457 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4458 := &yyv4457 + yy4458.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 + + yyv4459 := *v + yyh4459, yyl4459 := z.DecSliceHelperStart() + var yyc4459 bool + if yyl4459 == 0 { + if yyv4459 == nil { + yyv4459 = []LocalObjectReference{} + yyc4459 = true + } else if len(yyv4459) != 0 { + yyv4459 = yyv4459[:0] + yyc4459 = true + } + } else if yyl4459 > 0 { + var yyrr4459, yyrl4459 int + var yyrt4459 bool + if yyl4459 > cap(yyv4459) { + + yyrg4459 := len(yyv4459) > 0 + yyv24459 := yyv4459 + yyrl4459, yyrt4459 = z.DecInferLen(yyl4459, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4459 { + if yyrl4459 <= cap(yyv4459) { + yyv4459 = yyv4459[:yyrl4459] + } else { + yyv4459 = make([]LocalObjectReference, yyrl4459) + } + } else { + yyv4459 = make([]LocalObjectReference, yyrl4459) + } + yyc4459 = true + yyrr4459 = len(yyv4459) + if yyrg4459 { + copy(yyv4459, yyv24459) + } + } else if yyl4459 != len(yyv4459) { + yyv4459 = yyv4459[:yyl4459] + yyc4459 = true + } + yyj4459 := 0 + for ; yyj4459 < yyrr4459; yyj4459++ { + yyh4459.ElemContainerState(yyj4459) + if r.TryDecodeAsNil() { + yyv4459[yyj4459] = LocalObjectReference{} + } else { + yyv4460 := &yyv4459[yyj4459] + yyv4460.CodecDecodeSelf(d) + } + + } + if yyrt4459 { + for ; yyj4459 < yyl4459; yyj4459++ { + yyv4459 = append(yyv4459, LocalObjectReference{}) + yyh4459.ElemContainerState(yyj4459) + if r.TryDecodeAsNil() { + yyv4459[yyj4459] = LocalObjectReference{} + } else { + yyv4461 := &yyv4459[yyj4459] + yyv4461.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4459 := 0 + for ; !r.CheckBreak(); yyj4459++ { + + if yyj4459 >= len(yyv4459) { + yyv4459 = append(yyv4459, LocalObjectReference{}) // var yyz4459 LocalObjectReference + yyc4459 = true + } + yyh4459.ElemContainerState(yyj4459) + if yyj4459 < len(yyv4459) { + if r.TryDecodeAsNil() { + yyv4459[yyj4459] = LocalObjectReference{} + } else { + yyv4462 := &yyv4459[yyj4459] + yyv4462.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4459 < len(yyv4459) { + yyv4459 = yyv4459[:yyj4459] + yyc4459 = true + } else if yyj4459 == 0 && yyv4459 == nil { + yyv4459 = []LocalObjectReference{} + yyc4459 = true + } + } + yyh4459.End() + if yyc4459 { + *v = yyv4459 + } +} + +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 _, yyv4463 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4464 := &yyv4463 + yy4464.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 + + yyv4465 := *v + yyh4465, yyl4465 := z.DecSliceHelperStart() + var yyc4465 bool + if yyl4465 == 0 { + if yyv4465 == nil { + yyv4465 = []PodCondition{} + yyc4465 = true + } else if len(yyv4465) != 0 { + yyv4465 = yyv4465[:0] + yyc4465 = true + } + } else if yyl4465 > 0 { + var yyrr4465, yyrl4465 int + var yyrt4465 bool + if yyl4465 > cap(yyv4465) { + + yyrg4465 := len(yyv4465) > 0 + yyv24465 := yyv4465 + yyrl4465, yyrt4465 = z.DecInferLen(yyl4465, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4465 { + if yyrl4465 <= cap(yyv4465) { + yyv4465 = yyv4465[:yyrl4465] + } else { + yyv4465 = make([]PodCondition, yyrl4465) + } + } else { + yyv4465 = make([]PodCondition, yyrl4465) + } + yyc4465 = true + yyrr4465 = len(yyv4465) + if yyrg4465 { + copy(yyv4465, yyv24465) + } + } else if yyl4465 != len(yyv4465) { + yyv4465 = yyv4465[:yyl4465] + yyc4465 = true + } + yyj4465 := 0 + for ; yyj4465 < yyrr4465; yyj4465++ { + yyh4465.ElemContainerState(yyj4465) + if r.TryDecodeAsNil() { + yyv4465[yyj4465] = PodCondition{} + } else { + yyv4466 := &yyv4465[yyj4465] + yyv4466.CodecDecodeSelf(d) + } + + } + if yyrt4465 { + for ; yyj4465 < yyl4465; yyj4465++ { + yyv4465 = append(yyv4465, PodCondition{}) + yyh4465.ElemContainerState(yyj4465) + if r.TryDecodeAsNil() { + yyv4465[yyj4465] = PodCondition{} + } else { + yyv4467 := &yyv4465[yyj4465] + yyv4467.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4465 := 0 + for ; !r.CheckBreak(); yyj4465++ { + + if yyj4465 >= len(yyv4465) { + yyv4465 = append(yyv4465, PodCondition{}) // var yyz4465 PodCondition + yyc4465 = true + } + yyh4465.ElemContainerState(yyj4465) + if yyj4465 < len(yyv4465) { + if r.TryDecodeAsNil() { + yyv4465[yyj4465] = PodCondition{} + } else { + yyv4468 := &yyv4465[yyj4465] + yyv4468.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4465 < len(yyv4465) { + yyv4465 = yyv4465[:yyj4465] + yyc4465 = true + } else if yyj4465 == 0 && yyv4465 == nil { + yyv4465 = []PodCondition{} + yyc4465 = true + } + } + yyh4465.End() + if yyc4465 { + *v = yyv4465 + } +} + +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 _, yyv4469 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4470 := &yyv4469 + yy4470.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 + + yyv4471 := *v + yyh4471, yyl4471 := z.DecSliceHelperStart() + var yyc4471 bool + if yyl4471 == 0 { + if yyv4471 == nil { + yyv4471 = []ContainerStatus{} + yyc4471 = true + } else if len(yyv4471) != 0 { + yyv4471 = yyv4471[:0] + yyc4471 = true + } + } else if yyl4471 > 0 { + var yyrr4471, yyrl4471 int + var yyrt4471 bool + if yyl4471 > cap(yyv4471) { + + yyrg4471 := len(yyv4471) > 0 + yyv24471 := yyv4471 + yyrl4471, yyrt4471 = z.DecInferLen(yyl4471, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4471 { + if yyrl4471 <= cap(yyv4471) { + yyv4471 = yyv4471[:yyrl4471] + } else { + yyv4471 = make([]ContainerStatus, yyrl4471) + } + } else { + yyv4471 = make([]ContainerStatus, yyrl4471) + } + yyc4471 = true + yyrr4471 = len(yyv4471) + if yyrg4471 { + copy(yyv4471, yyv24471) + } + } else if yyl4471 != len(yyv4471) { + yyv4471 = yyv4471[:yyl4471] + yyc4471 = true + } + yyj4471 := 0 + for ; yyj4471 < yyrr4471; yyj4471++ { + yyh4471.ElemContainerState(yyj4471) + if r.TryDecodeAsNil() { + yyv4471[yyj4471] = ContainerStatus{} + } else { + yyv4472 := &yyv4471[yyj4471] + yyv4472.CodecDecodeSelf(d) + } + + } + if yyrt4471 { + for ; yyj4471 < yyl4471; yyj4471++ { + yyv4471 = append(yyv4471, ContainerStatus{}) + yyh4471.ElemContainerState(yyj4471) + if r.TryDecodeAsNil() { + yyv4471[yyj4471] = ContainerStatus{} + } else { + yyv4473 := &yyv4471[yyj4471] + yyv4473.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4471 := 0 + for ; !r.CheckBreak(); yyj4471++ { + + if yyj4471 >= len(yyv4471) { + yyv4471 = append(yyv4471, ContainerStatus{}) // var yyz4471 ContainerStatus + yyc4471 = true + } + yyh4471.ElemContainerState(yyj4471) + if yyj4471 < len(yyv4471) { + if r.TryDecodeAsNil() { + yyv4471[yyj4471] = ContainerStatus{} + } else { + yyv4474 := &yyv4471[yyj4471] + yyv4474.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4471 < len(yyv4471) { + yyv4471 = yyv4471[:yyj4471] + yyc4471 = true + } else if yyj4471 == 0 && yyv4471 == nil { + yyv4471 = []ContainerStatus{} + yyc4471 = true + } + } + yyh4471.End() + if yyc4471 { + *v = yyv4471 + } +} + +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 _, yyv4475 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4476 := &yyv4475 + yy4476.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 + + yyv4477 := *v + yyh4477, yyl4477 := z.DecSliceHelperStart() + var yyc4477 bool + if yyl4477 == 0 { + if yyv4477 == nil { + yyv4477 = []PodTemplate{} + yyc4477 = true + } else if len(yyv4477) != 0 { + yyv4477 = yyv4477[:0] + yyc4477 = true + } + } else if yyl4477 > 0 { + var yyrr4477, yyrl4477 int + var yyrt4477 bool + if yyl4477 > cap(yyv4477) { + + yyrg4477 := len(yyv4477) > 0 + yyv24477 := yyv4477 + yyrl4477, yyrt4477 = z.DecInferLen(yyl4477, z.DecBasicHandle().MaxInitLen, 672) + if yyrt4477 { + if yyrl4477 <= cap(yyv4477) { + yyv4477 = yyv4477[:yyrl4477] + } else { + yyv4477 = make([]PodTemplate, yyrl4477) + } + } else { + yyv4477 = make([]PodTemplate, yyrl4477) + } + yyc4477 = true + yyrr4477 = len(yyv4477) + if yyrg4477 { + copy(yyv4477, yyv24477) + } + } else if yyl4477 != len(yyv4477) { + yyv4477 = yyv4477[:yyl4477] + yyc4477 = true + } + yyj4477 := 0 + for ; yyj4477 < yyrr4477; yyj4477++ { + yyh4477.ElemContainerState(yyj4477) + if r.TryDecodeAsNil() { + yyv4477[yyj4477] = PodTemplate{} + } else { + yyv4478 := &yyv4477[yyj4477] + yyv4478.CodecDecodeSelf(d) + } + + } + if yyrt4477 { + for ; yyj4477 < yyl4477; yyj4477++ { + yyv4477 = append(yyv4477, PodTemplate{}) + yyh4477.ElemContainerState(yyj4477) + if r.TryDecodeAsNil() { + yyv4477[yyj4477] = PodTemplate{} + } else { + yyv4479 := &yyv4477[yyj4477] + yyv4479.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4477 := 0 + for ; !r.CheckBreak(); yyj4477++ { + + if yyj4477 >= len(yyv4477) { + yyv4477 = append(yyv4477, PodTemplate{}) // var yyz4477 PodTemplate + yyc4477 = true + } + yyh4477.ElemContainerState(yyj4477) + if yyj4477 < len(yyv4477) { + if r.TryDecodeAsNil() { + yyv4477[yyj4477] = PodTemplate{} + } else { + yyv4480 := &yyv4477[yyj4477] + yyv4480.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4477 < len(yyv4477) { + yyv4477 = yyv4477[:yyj4477] + yyc4477 = true + } else if yyj4477 == 0 && yyv4477 == nil { + yyv4477 = []PodTemplate{} + yyc4477 = true + } + } + yyh4477.End() + if yyc4477 { + *v = yyv4477 + } +} + +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 _, yyv4481 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4482 := &yyv4481 + yy4482.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 + + yyv4483 := *v + yyh4483, yyl4483 := z.DecSliceHelperStart() + var yyc4483 bool + if yyl4483 == 0 { + if yyv4483 == nil { + yyv4483 = []ReplicationController{} + yyc4483 = true + } else if len(yyv4483) != 0 { + yyv4483 = yyv4483[:0] + yyc4483 = true + } + } else if yyl4483 > 0 { + var yyrr4483, yyrl4483 int + var yyrt4483 bool + if yyl4483 > cap(yyv4483) { + + yyrg4483 := len(yyv4483) > 0 + yyv24483 := yyv4483 + yyrl4483, yyrt4483 = z.DecInferLen(yyl4483, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4483 { + if yyrl4483 <= cap(yyv4483) { + yyv4483 = yyv4483[:yyrl4483] + } else { + yyv4483 = make([]ReplicationController, yyrl4483) + } + } else { + yyv4483 = make([]ReplicationController, yyrl4483) + } + yyc4483 = true + yyrr4483 = len(yyv4483) + if yyrg4483 { + copy(yyv4483, yyv24483) + } + } else if yyl4483 != len(yyv4483) { + yyv4483 = yyv4483[:yyl4483] + yyc4483 = true + } + yyj4483 := 0 + for ; yyj4483 < yyrr4483; yyj4483++ { + yyh4483.ElemContainerState(yyj4483) + if r.TryDecodeAsNil() { + yyv4483[yyj4483] = ReplicationController{} + } else { + yyv4484 := &yyv4483[yyj4483] + yyv4484.CodecDecodeSelf(d) + } + + } + if yyrt4483 { + for ; yyj4483 < yyl4483; yyj4483++ { + yyv4483 = append(yyv4483, ReplicationController{}) + yyh4483.ElemContainerState(yyj4483) + if r.TryDecodeAsNil() { + yyv4483[yyj4483] = ReplicationController{} + } else { + yyv4485 := &yyv4483[yyj4483] + yyv4485.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4483 := 0 + for ; !r.CheckBreak(); yyj4483++ { + + if yyj4483 >= len(yyv4483) { + yyv4483 = append(yyv4483, ReplicationController{}) // var yyz4483 ReplicationController + yyc4483 = true + } + yyh4483.ElemContainerState(yyj4483) + if yyj4483 < len(yyv4483) { + if r.TryDecodeAsNil() { + yyv4483[yyj4483] = ReplicationController{} + } else { + yyv4486 := &yyv4483[yyj4483] + yyv4486.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4483 < len(yyv4483) { + yyv4483 = yyv4483[:yyj4483] + yyc4483 = true + } else if yyj4483 == 0 && yyv4483 == nil { + yyv4483 = []ReplicationController{} + yyc4483 = true + } + } + yyh4483.End() + if yyc4483 { + *v = yyv4483 + } +} + +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 _, yyv4487 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4488 := &yyv4487 + yy4488.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 + + yyv4489 := *v + yyh4489, yyl4489 := z.DecSliceHelperStart() + var yyc4489 bool + if yyl4489 == 0 { + if yyv4489 == nil { + yyv4489 = []Service{} + yyc4489 = true + } else if len(yyv4489) != 0 { + yyv4489 = yyv4489[:0] + yyc4489 = true + } + } else if yyl4489 > 0 { + var yyrr4489, yyrl4489 int + var yyrt4489 bool + if yyl4489 > cap(yyv4489) { + + yyrg4489 := len(yyv4489) > 0 + yyv24489 := yyv4489 + yyrl4489, yyrt4489 = z.DecInferLen(yyl4489, z.DecBasicHandle().MaxInitLen, 408) + if yyrt4489 { + if yyrl4489 <= cap(yyv4489) { + yyv4489 = yyv4489[:yyrl4489] + } else { + yyv4489 = make([]Service, yyrl4489) + } + } else { + yyv4489 = make([]Service, yyrl4489) + } + yyc4489 = true + yyrr4489 = len(yyv4489) + if yyrg4489 { + copy(yyv4489, yyv24489) + } + } else if yyl4489 != len(yyv4489) { + yyv4489 = yyv4489[:yyl4489] + yyc4489 = true + } + yyj4489 := 0 + for ; yyj4489 < yyrr4489; yyj4489++ { + yyh4489.ElemContainerState(yyj4489) + if r.TryDecodeAsNil() { + yyv4489[yyj4489] = Service{} + } else { + yyv4490 := &yyv4489[yyj4489] + yyv4490.CodecDecodeSelf(d) + } + + } + if yyrt4489 { + for ; yyj4489 < yyl4489; yyj4489++ { + yyv4489 = append(yyv4489, Service{}) + yyh4489.ElemContainerState(yyj4489) + if r.TryDecodeAsNil() { + yyv4489[yyj4489] = Service{} + } else { + yyv4491 := &yyv4489[yyj4489] + yyv4491.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4489 := 0 + for ; !r.CheckBreak(); yyj4489++ { + + if yyj4489 >= len(yyv4489) { + yyv4489 = append(yyv4489, Service{}) // var yyz4489 Service + yyc4489 = true + } + yyh4489.ElemContainerState(yyj4489) + if yyj4489 < len(yyv4489) { + if r.TryDecodeAsNil() { + yyv4489[yyj4489] = Service{} + } else { + yyv4492 := &yyv4489[yyj4489] + yyv4492.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4489 < len(yyv4489) { + yyv4489 = yyv4489[:yyj4489] + yyc4489 = true + } else if yyj4489 == 0 && yyv4489 == nil { + yyv4489 = []Service{} + yyc4489 = true + } + } + yyh4489.End() + if yyc4489 { + *v = yyv4489 + } +} + +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 _, yyv4493 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4494 := &yyv4493 + yy4494.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 + + yyv4495 := *v + yyh4495, yyl4495 := z.DecSliceHelperStart() + var yyc4495 bool + if yyl4495 == 0 { + if yyv4495 == nil { + yyv4495 = []LoadBalancerIngress{} + yyc4495 = true + } else if len(yyv4495) != 0 { + yyv4495 = yyv4495[:0] + yyc4495 = true + } + } else if yyl4495 > 0 { + var yyrr4495, yyrl4495 int + var yyrt4495 bool + if yyl4495 > cap(yyv4495) { + + yyrg4495 := len(yyv4495) > 0 + yyv24495 := yyv4495 + yyrl4495, yyrt4495 = z.DecInferLen(yyl4495, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4495 { + if yyrl4495 <= cap(yyv4495) { + yyv4495 = yyv4495[:yyrl4495] + } else { + yyv4495 = make([]LoadBalancerIngress, yyrl4495) + } + } else { + yyv4495 = make([]LoadBalancerIngress, yyrl4495) + } + yyc4495 = true + yyrr4495 = len(yyv4495) + if yyrg4495 { + copy(yyv4495, yyv24495) + } + } else if yyl4495 != len(yyv4495) { + yyv4495 = yyv4495[:yyl4495] + yyc4495 = true + } + yyj4495 := 0 + for ; yyj4495 < yyrr4495; yyj4495++ { + yyh4495.ElemContainerState(yyj4495) + if r.TryDecodeAsNil() { + yyv4495[yyj4495] = LoadBalancerIngress{} + } else { + yyv4496 := &yyv4495[yyj4495] + yyv4496.CodecDecodeSelf(d) + } + + } + if yyrt4495 { + for ; yyj4495 < yyl4495; yyj4495++ { + yyv4495 = append(yyv4495, LoadBalancerIngress{}) + yyh4495.ElemContainerState(yyj4495) + if r.TryDecodeAsNil() { + yyv4495[yyj4495] = LoadBalancerIngress{} + } else { + yyv4497 := &yyv4495[yyj4495] + yyv4497.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4495 := 0 + for ; !r.CheckBreak(); yyj4495++ { + + if yyj4495 >= len(yyv4495) { + yyv4495 = append(yyv4495, LoadBalancerIngress{}) // var yyz4495 LoadBalancerIngress + yyc4495 = true + } + yyh4495.ElemContainerState(yyj4495) + if yyj4495 < len(yyv4495) { + if r.TryDecodeAsNil() { + yyv4495[yyj4495] = LoadBalancerIngress{} + } else { + yyv4498 := &yyv4495[yyj4495] + yyv4498.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4495 < len(yyv4495) { + yyv4495 = yyv4495[:yyj4495] + yyc4495 = true + } else if yyj4495 == 0 && yyv4495 == nil { + yyv4495 = []LoadBalancerIngress{} + yyc4495 = true + } + } + yyh4495.End() + if yyc4495 { + *v = yyv4495 + } +} + +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 _, yyv4499 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4500 := &yyv4499 + yy4500.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 + + yyv4501 := *v + yyh4501, yyl4501 := z.DecSliceHelperStart() + var yyc4501 bool + if yyl4501 == 0 { + if yyv4501 == nil { + yyv4501 = []ServicePort{} + yyc4501 = true + } else if len(yyv4501) != 0 { + yyv4501 = yyv4501[:0] + yyc4501 = true + } + } else if yyl4501 > 0 { + var yyrr4501, yyrl4501 int + var yyrt4501 bool + if yyl4501 > cap(yyv4501) { + + yyrg4501 := len(yyv4501) > 0 + yyv24501 := yyv4501 + yyrl4501, yyrt4501 = z.DecInferLen(yyl4501, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4501 { + if yyrl4501 <= cap(yyv4501) { + yyv4501 = yyv4501[:yyrl4501] + } else { + yyv4501 = make([]ServicePort, yyrl4501) + } + } else { + yyv4501 = make([]ServicePort, yyrl4501) + } + yyc4501 = true + yyrr4501 = len(yyv4501) + if yyrg4501 { + copy(yyv4501, yyv24501) + } + } else if yyl4501 != len(yyv4501) { + yyv4501 = yyv4501[:yyl4501] + yyc4501 = true + } + yyj4501 := 0 + for ; yyj4501 < yyrr4501; yyj4501++ { + yyh4501.ElemContainerState(yyj4501) + if r.TryDecodeAsNil() { + yyv4501[yyj4501] = ServicePort{} + } else { + yyv4502 := &yyv4501[yyj4501] + yyv4502.CodecDecodeSelf(d) + } + + } + if yyrt4501 { + for ; yyj4501 < yyl4501; yyj4501++ { + yyv4501 = append(yyv4501, ServicePort{}) + yyh4501.ElemContainerState(yyj4501) + if r.TryDecodeAsNil() { + yyv4501[yyj4501] = ServicePort{} + } else { + yyv4503 := &yyv4501[yyj4501] + yyv4503.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4501 := 0 + for ; !r.CheckBreak(); yyj4501++ { + + if yyj4501 >= len(yyv4501) { + yyv4501 = append(yyv4501, ServicePort{}) // var yyz4501 ServicePort + yyc4501 = true + } + yyh4501.ElemContainerState(yyj4501) + if yyj4501 < len(yyv4501) { + if r.TryDecodeAsNil() { + yyv4501[yyj4501] = ServicePort{} + } else { + yyv4504 := &yyv4501[yyj4501] + yyv4504.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4501 < len(yyv4501) { + yyv4501 = yyv4501[:yyj4501] + yyc4501 = true + } else if yyj4501 == 0 && yyv4501 == nil { + yyv4501 = []ServicePort{} + yyc4501 = true + } + } + yyh4501.End() + if yyc4501 { + *v = yyv4501 + } +} + +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 _, yyv4505 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4506 := &yyv4505 + yy4506.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 + + yyv4507 := *v + yyh4507, yyl4507 := z.DecSliceHelperStart() + var yyc4507 bool + if yyl4507 == 0 { + if yyv4507 == nil { + yyv4507 = []ObjectReference{} + yyc4507 = true + } else if len(yyv4507) != 0 { + yyv4507 = yyv4507[:0] + yyc4507 = true + } + } else if yyl4507 > 0 { + var yyrr4507, yyrl4507 int + var yyrt4507 bool + if yyl4507 > cap(yyv4507) { + + yyrg4507 := len(yyv4507) > 0 + yyv24507 := yyv4507 + yyrl4507, yyrt4507 = z.DecInferLen(yyl4507, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4507 { + if yyrl4507 <= cap(yyv4507) { + yyv4507 = yyv4507[:yyrl4507] + } else { + yyv4507 = make([]ObjectReference, yyrl4507) + } + } else { + yyv4507 = make([]ObjectReference, yyrl4507) + } + yyc4507 = true + yyrr4507 = len(yyv4507) + if yyrg4507 { + copy(yyv4507, yyv24507) + } + } else if yyl4507 != len(yyv4507) { + yyv4507 = yyv4507[:yyl4507] + yyc4507 = true + } + yyj4507 := 0 + for ; yyj4507 < yyrr4507; yyj4507++ { + yyh4507.ElemContainerState(yyj4507) + if r.TryDecodeAsNil() { + yyv4507[yyj4507] = ObjectReference{} + } else { + yyv4508 := &yyv4507[yyj4507] + yyv4508.CodecDecodeSelf(d) + } + + } + if yyrt4507 { + for ; yyj4507 < yyl4507; yyj4507++ { + yyv4507 = append(yyv4507, ObjectReference{}) + yyh4507.ElemContainerState(yyj4507) + if r.TryDecodeAsNil() { + yyv4507[yyj4507] = ObjectReference{} + } else { + yyv4509 := &yyv4507[yyj4507] + yyv4509.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4507 := 0 + for ; !r.CheckBreak(); yyj4507++ { + + if yyj4507 >= len(yyv4507) { + yyv4507 = append(yyv4507, ObjectReference{}) // var yyz4507 ObjectReference + yyc4507 = true + } + yyh4507.ElemContainerState(yyj4507) + if yyj4507 < len(yyv4507) { + if r.TryDecodeAsNil() { + yyv4507[yyj4507] = ObjectReference{} + } else { + yyv4510 := &yyv4507[yyj4507] + yyv4510.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4507 < len(yyv4507) { + yyv4507 = yyv4507[:yyj4507] + yyc4507 = true + } else if yyj4507 == 0 && yyv4507 == nil { + yyv4507 = []ObjectReference{} + yyc4507 = true + } + } + yyh4507.End() + if yyc4507 { + *v = yyv4507 + } +} + +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 _, yyv4511 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4512 := &yyv4511 + yy4512.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 + + yyv4513 := *v + yyh4513, yyl4513 := z.DecSliceHelperStart() + var yyc4513 bool + if yyl4513 == 0 { + if yyv4513 == nil { + yyv4513 = []ServiceAccount{} + yyc4513 = true + } else if len(yyv4513) != 0 { + yyv4513 = yyv4513[:0] + yyc4513 = true + } + } else if yyl4513 > 0 { + var yyrr4513, yyrl4513 int + var yyrt4513 bool + if yyl4513 > cap(yyv4513) { + + yyrg4513 := len(yyv4513) > 0 + yyv24513 := yyv4513 + yyrl4513, yyrt4513 = z.DecInferLen(yyl4513, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4513 { + if yyrl4513 <= cap(yyv4513) { + yyv4513 = yyv4513[:yyrl4513] + } else { + yyv4513 = make([]ServiceAccount, yyrl4513) + } + } else { + yyv4513 = make([]ServiceAccount, yyrl4513) + } + yyc4513 = true + yyrr4513 = len(yyv4513) + if yyrg4513 { + copy(yyv4513, yyv24513) + } + } else if yyl4513 != len(yyv4513) { + yyv4513 = yyv4513[:yyl4513] + yyc4513 = true + } + yyj4513 := 0 + for ; yyj4513 < yyrr4513; yyj4513++ { + yyh4513.ElemContainerState(yyj4513) + if r.TryDecodeAsNil() { + yyv4513[yyj4513] = ServiceAccount{} + } else { + yyv4514 := &yyv4513[yyj4513] + yyv4514.CodecDecodeSelf(d) + } + + } + if yyrt4513 { + for ; yyj4513 < yyl4513; yyj4513++ { + yyv4513 = append(yyv4513, ServiceAccount{}) + yyh4513.ElemContainerState(yyj4513) + if r.TryDecodeAsNil() { + yyv4513[yyj4513] = ServiceAccount{} + } else { + yyv4515 := &yyv4513[yyj4513] + yyv4515.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4513 := 0 + for ; !r.CheckBreak(); yyj4513++ { + + if yyj4513 >= len(yyv4513) { + yyv4513 = append(yyv4513, ServiceAccount{}) // var yyz4513 ServiceAccount + yyc4513 = true + } + yyh4513.ElemContainerState(yyj4513) + if yyj4513 < len(yyv4513) { + if r.TryDecodeAsNil() { + yyv4513[yyj4513] = ServiceAccount{} + } else { + yyv4516 := &yyv4513[yyj4513] + yyv4516.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4513 < len(yyv4513) { + yyv4513 = yyv4513[:yyj4513] + yyc4513 = true + } else if yyj4513 == 0 && yyv4513 == nil { + yyv4513 = []ServiceAccount{} + yyc4513 = true + } + } + yyh4513.End() + if yyc4513 { + *v = yyv4513 + } +} + +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 _, yyv4517 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4518 := &yyv4517 + yy4518.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 + + yyv4519 := *v + yyh4519, yyl4519 := z.DecSliceHelperStart() + var yyc4519 bool + if yyl4519 == 0 { + if yyv4519 == nil { + yyv4519 = []EndpointSubset{} + yyc4519 = true + } else if len(yyv4519) != 0 { + yyv4519 = yyv4519[:0] + yyc4519 = true + } + } else if yyl4519 > 0 { + var yyrr4519, yyrl4519 int + var yyrt4519 bool + if yyl4519 > cap(yyv4519) { + + yyrg4519 := len(yyv4519) > 0 + yyv24519 := yyv4519 + yyrl4519, yyrt4519 = z.DecInferLen(yyl4519, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4519 { + if yyrl4519 <= cap(yyv4519) { + yyv4519 = yyv4519[:yyrl4519] + } else { + yyv4519 = make([]EndpointSubset, yyrl4519) + } + } else { + yyv4519 = make([]EndpointSubset, yyrl4519) + } + yyc4519 = true + yyrr4519 = len(yyv4519) + if yyrg4519 { + copy(yyv4519, yyv24519) + } + } else if yyl4519 != len(yyv4519) { + yyv4519 = yyv4519[:yyl4519] + yyc4519 = true + } + yyj4519 := 0 + for ; yyj4519 < yyrr4519; yyj4519++ { + yyh4519.ElemContainerState(yyj4519) + if r.TryDecodeAsNil() { + yyv4519[yyj4519] = EndpointSubset{} + } else { + yyv4520 := &yyv4519[yyj4519] + yyv4520.CodecDecodeSelf(d) + } + + } + if yyrt4519 { + for ; yyj4519 < yyl4519; yyj4519++ { + yyv4519 = append(yyv4519, EndpointSubset{}) + yyh4519.ElemContainerState(yyj4519) + if r.TryDecodeAsNil() { + yyv4519[yyj4519] = EndpointSubset{} + } else { + yyv4521 := &yyv4519[yyj4519] + yyv4521.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4519 := 0 + for ; !r.CheckBreak(); yyj4519++ { + + if yyj4519 >= len(yyv4519) { + yyv4519 = append(yyv4519, EndpointSubset{}) // var yyz4519 EndpointSubset + yyc4519 = true + } + yyh4519.ElemContainerState(yyj4519) + if yyj4519 < len(yyv4519) { + if r.TryDecodeAsNil() { + yyv4519[yyj4519] = EndpointSubset{} + } else { + yyv4522 := &yyv4519[yyj4519] + yyv4522.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4519 < len(yyv4519) { + yyv4519 = yyv4519[:yyj4519] + yyc4519 = true + } else if yyj4519 == 0 && yyv4519 == nil { + yyv4519 = []EndpointSubset{} + yyc4519 = true + } + } + yyh4519.End() + if yyc4519 { + *v = yyv4519 + } +} + +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 _, yyv4523 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4524 := &yyv4523 + yy4524.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 + + yyv4525 := *v + yyh4525, yyl4525 := z.DecSliceHelperStart() + var yyc4525 bool + if yyl4525 == 0 { + if yyv4525 == nil { + yyv4525 = []EndpointAddress{} + yyc4525 = true + } else if len(yyv4525) != 0 { + yyv4525 = yyv4525[:0] + yyc4525 = true + } + } else if yyl4525 > 0 { + var yyrr4525, yyrl4525 int + var yyrt4525 bool + if yyl4525 > cap(yyv4525) { + + yyrg4525 := len(yyv4525) > 0 + yyv24525 := yyv4525 + yyrl4525, yyrt4525 = z.DecInferLen(yyl4525, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4525 { + if yyrl4525 <= cap(yyv4525) { + yyv4525 = yyv4525[:yyrl4525] + } else { + yyv4525 = make([]EndpointAddress, yyrl4525) + } + } else { + yyv4525 = make([]EndpointAddress, yyrl4525) + } + yyc4525 = true + yyrr4525 = len(yyv4525) + if yyrg4525 { + copy(yyv4525, yyv24525) + } + } else if yyl4525 != len(yyv4525) { + yyv4525 = yyv4525[:yyl4525] + yyc4525 = true + } + yyj4525 := 0 + for ; yyj4525 < yyrr4525; yyj4525++ { + yyh4525.ElemContainerState(yyj4525) + if r.TryDecodeAsNil() { + yyv4525[yyj4525] = EndpointAddress{} + } else { + yyv4526 := &yyv4525[yyj4525] + yyv4526.CodecDecodeSelf(d) + } + + } + if yyrt4525 { + for ; yyj4525 < yyl4525; yyj4525++ { + yyv4525 = append(yyv4525, EndpointAddress{}) + yyh4525.ElemContainerState(yyj4525) + if r.TryDecodeAsNil() { + yyv4525[yyj4525] = EndpointAddress{} + } else { + yyv4527 := &yyv4525[yyj4525] + yyv4527.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4525 := 0 + for ; !r.CheckBreak(); yyj4525++ { + + if yyj4525 >= len(yyv4525) { + yyv4525 = append(yyv4525, EndpointAddress{}) // var yyz4525 EndpointAddress + yyc4525 = true + } + yyh4525.ElemContainerState(yyj4525) + if yyj4525 < len(yyv4525) { + if r.TryDecodeAsNil() { + yyv4525[yyj4525] = EndpointAddress{} + } else { + yyv4528 := &yyv4525[yyj4525] + yyv4528.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4525 < len(yyv4525) { + yyv4525 = yyv4525[:yyj4525] + yyc4525 = true + } else if yyj4525 == 0 && yyv4525 == nil { + yyv4525 = []EndpointAddress{} + yyc4525 = true + } + } + yyh4525.End() + if yyc4525 { + *v = yyv4525 + } +} + +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 _, yyv4529 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4530 := &yyv4529 + yy4530.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 + + yyv4531 := *v + yyh4531, yyl4531 := z.DecSliceHelperStart() + var yyc4531 bool + if yyl4531 == 0 { + if yyv4531 == nil { + yyv4531 = []EndpointPort{} + yyc4531 = true + } else if len(yyv4531) != 0 { + yyv4531 = yyv4531[:0] + yyc4531 = true + } + } else if yyl4531 > 0 { + var yyrr4531, yyrl4531 int + var yyrt4531 bool + if yyl4531 > cap(yyv4531) { + + yyrg4531 := len(yyv4531) > 0 + yyv24531 := yyv4531 + yyrl4531, yyrt4531 = z.DecInferLen(yyl4531, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4531 { + if yyrl4531 <= cap(yyv4531) { + yyv4531 = yyv4531[:yyrl4531] + } else { + yyv4531 = make([]EndpointPort, yyrl4531) + } + } else { + yyv4531 = make([]EndpointPort, yyrl4531) + } + yyc4531 = true + yyrr4531 = len(yyv4531) + if yyrg4531 { + copy(yyv4531, yyv24531) + } + } else if yyl4531 != len(yyv4531) { + yyv4531 = yyv4531[:yyl4531] + yyc4531 = true + } + yyj4531 := 0 + for ; yyj4531 < yyrr4531; yyj4531++ { + yyh4531.ElemContainerState(yyj4531) + if r.TryDecodeAsNil() { + yyv4531[yyj4531] = EndpointPort{} + } else { + yyv4532 := &yyv4531[yyj4531] + yyv4532.CodecDecodeSelf(d) + } + + } + if yyrt4531 { + for ; yyj4531 < yyl4531; yyj4531++ { + yyv4531 = append(yyv4531, EndpointPort{}) + yyh4531.ElemContainerState(yyj4531) + if r.TryDecodeAsNil() { + yyv4531[yyj4531] = EndpointPort{} + } else { + yyv4533 := &yyv4531[yyj4531] + yyv4533.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4531 := 0 + for ; !r.CheckBreak(); yyj4531++ { + + if yyj4531 >= len(yyv4531) { + yyv4531 = append(yyv4531, EndpointPort{}) // var yyz4531 EndpointPort + yyc4531 = true + } + yyh4531.ElemContainerState(yyj4531) + if yyj4531 < len(yyv4531) { + if r.TryDecodeAsNil() { + yyv4531[yyj4531] = EndpointPort{} + } else { + yyv4534 := &yyv4531[yyj4531] + yyv4534.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4531 < len(yyv4531) { + yyv4531 = yyv4531[:yyj4531] + yyc4531 = true + } else if yyj4531 == 0 && yyv4531 == nil { + yyv4531 = []EndpointPort{} + yyc4531 = true + } + } + yyh4531.End() + if yyc4531 { + *v = yyv4531 + } +} + +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 _, yyv4535 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4536 := &yyv4535 + yy4536.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 + + yyv4537 := *v + yyh4537, yyl4537 := z.DecSliceHelperStart() + var yyc4537 bool + if yyl4537 == 0 { + if yyv4537 == nil { + yyv4537 = []Endpoints{} + yyc4537 = true + } else if len(yyv4537) != 0 { + yyv4537 = yyv4537[:0] + yyc4537 = true + } + } else if yyl4537 > 0 { + var yyrr4537, yyrl4537 int + var yyrt4537 bool + if yyl4537 > cap(yyv4537) { + + yyrg4537 := len(yyv4537) > 0 + yyv24537 := yyv4537 + yyrl4537, yyrt4537 = z.DecInferLen(yyl4537, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4537 { + if yyrl4537 <= cap(yyv4537) { + yyv4537 = yyv4537[:yyrl4537] + } else { + yyv4537 = make([]Endpoints, yyrl4537) + } + } else { + yyv4537 = make([]Endpoints, yyrl4537) + } + yyc4537 = true + yyrr4537 = len(yyv4537) + if yyrg4537 { + copy(yyv4537, yyv24537) + } + } else if yyl4537 != len(yyv4537) { + yyv4537 = yyv4537[:yyl4537] + yyc4537 = true + } + yyj4537 := 0 + for ; yyj4537 < yyrr4537; yyj4537++ { + yyh4537.ElemContainerState(yyj4537) + if r.TryDecodeAsNil() { + yyv4537[yyj4537] = Endpoints{} + } else { + yyv4538 := &yyv4537[yyj4537] + yyv4538.CodecDecodeSelf(d) + } + + } + if yyrt4537 { + for ; yyj4537 < yyl4537; yyj4537++ { + yyv4537 = append(yyv4537, Endpoints{}) + yyh4537.ElemContainerState(yyj4537) + if r.TryDecodeAsNil() { + yyv4537[yyj4537] = Endpoints{} + } else { + yyv4539 := &yyv4537[yyj4537] + yyv4539.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4537 := 0 + for ; !r.CheckBreak(); yyj4537++ { + + if yyj4537 >= len(yyv4537) { + yyv4537 = append(yyv4537, Endpoints{}) // var yyz4537 Endpoints + yyc4537 = true + } + yyh4537.ElemContainerState(yyj4537) + if yyj4537 < len(yyv4537) { + if r.TryDecodeAsNil() { + yyv4537[yyj4537] = Endpoints{} + } else { + yyv4540 := &yyv4537[yyj4537] + yyv4540.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4537 < len(yyv4537) { + yyv4537 = yyv4537[:yyj4537] + yyc4537 = true + } else if yyj4537 == 0 && yyv4537 == nil { + yyv4537 = []Endpoints{} + yyc4537 = true + } + } + yyh4537.End() + if yyc4537 { + *v = yyv4537 + } +} + +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 _, yyv4541 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4542 := &yyv4541 + yy4542.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 + + yyv4543 := *v + yyh4543, yyl4543 := z.DecSliceHelperStart() + var yyc4543 bool + if yyl4543 == 0 { + if yyv4543 == nil { + yyv4543 = []NodeCondition{} + yyc4543 = true + } else if len(yyv4543) != 0 { + yyv4543 = yyv4543[:0] + yyc4543 = true + } + } else if yyl4543 > 0 { + var yyrr4543, yyrl4543 int + var yyrt4543 bool + if yyl4543 > cap(yyv4543) { + + yyrg4543 := len(yyv4543) > 0 + yyv24543 := yyv4543 + yyrl4543, yyrt4543 = z.DecInferLen(yyl4543, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4543 { + if yyrl4543 <= cap(yyv4543) { + yyv4543 = yyv4543[:yyrl4543] + } else { + yyv4543 = make([]NodeCondition, yyrl4543) + } + } else { + yyv4543 = make([]NodeCondition, yyrl4543) + } + yyc4543 = true + yyrr4543 = len(yyv4543) + if yyrg4543 { + copy(yyv4543, yyv24543) + } + } else if yyl4543 != len(yyv4543) { + yyv4543 = yyv4543[:yyl4543] + yyc4543 = true + } + yyj4543 := 0 + for ; yyj4543 < yyrr4543; yyj4543++ { + yyh4543.ElemContainerState(yyj4543) + if r.TryDecodeAsNil() { + yyv4543[yyj4543] = NodeCondition{} + } else { + yyv4544 := &yyv4543[yyj4543] + yyv4544.CodecDecodeSelf(d) + } + + } + if yyrt4543 { + for ; yyj4543 < yyl4543; yyj4543++ { + yyv4543 = append(yyv4543, NodeCondition{}) + yyh4543.ElemContainerState(yyj4543) + if r.TryDecodeAsNil() { + yyv4543[yyj4543] = NodeCondition{} + } else { + yyv4545 := &yyv4543[yyj4543] + yyv4545.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4543 := 0 + for ; !r.CheckBreak(); yyj4543++ { + + if yyj4543 >= len(yyv4543) { + yyv4543 = append(yyv4543, NodeCondition{}) // var yyz4543 NodeCondition + yyc4543 = true + } + yyh4543.ElemContainerState(yyj4543) + if yyj4543 < len(yyv4543) { + if r.TryDecodeAsNil() { + yyv4543[yyj4543] = NodeCondition{} + } else { + yyv4546 := &yyv4543[yyj4543] + yyv4546.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4543 < len(yyv4543) { + yyv4543 = yyv4543[:yyj4543] + yyc4543 = true + } else if yyj4543 == 0 && yyv4543 == nil { + yyv4543 = []NodeCondition{} + yyc4543 = true + } + } + yyh4543.End() + if yyc4543 { + *v = yyv4543 + } +} + +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 _, yyv4547 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4548 := &yyv4547 + yy4548.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 + + yyv4549 := *v + yyh4549, yyl4549 := z.DecSliceHelperStart() + var yyc4549 bool + if yyl4549 == 0 { + if yyv4549 == nil { + yyv4549 = []NodeAddress{} + yyc4549 = true + } else if len(yyv4549) != 0 { + yyv4549 = yyv4549[:0] + yyc4549 = true + } + } else if yyl4549 > 0 { + var yyrr4549, yyrl4549 int + var yyrt4549 bool + if yyl4549 > cap(yyv4549) { + + 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 { + yyv4549 = make([]NodeAddress, yyrl4549) + } + } else { + yyv4549 = make([]NodeAddress, yyrl4549) + } + yyc4549 = true + yyrr4549 = len(yyv4549) + if yyrg4549 { + copy(yyv4549, yyv24549) + } + } else if yyl4549 != len(yyv4549) { + yyv4549 = yyv4549[:yyl4549] + yyc4549 = true + } + yyj4549 := 0 + for ; yyj4549 < yyrr4549; yyj4549++ { + yyh4549.ElemContainerState(yyj4549) + if r.TryDecodeAsNil() { + yyv4549[yyj4549] = NodeAddress{} + } else { + yyv4550 := &yyv4549[yyj4549] + yyv4550.CodecDecodeSelf(d) + } + + } + if yyrt4549 { + for ; yyj4549 < yyl4549; yyj4549++ { + yyv4549 = append(yyv4549, NodeAddress{}) + yyh4549.ElemContainerState(yyj4549) + if r.TryDecodeAsNil() { + yyv4549[yyj4549] = NodeAddress{} + } else { + yyv4551 := &yyv4549[yyj4549] + yyv4551.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4549 := 0 + for ; !r.CheckBreak(); yyj4549++ { + + if yyj4549 >= len(yyv4549) { + yyv4549 = append(yyv4549, NodeAddress{}) // var yyz4549 NodeAddress + yyc4549 = true + } + yyh4549.ElemContainerState(yyj4549) + if yyj4549 < len(yyv4549) { + if r.TryDecodeAsNil() { + yyv4549[yyj4549] = NodeAddress{} + } else { + yyv4552 := &yyv4549[yyj4549] + yyv4552.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4549 < len(yyv4549) { + yyv4549 = yyv4549[:yyj4549] + yyc4549 = true + } else if yyj4549 == 0 && yyv4549 == nil { + yyv4549 = []NodeAddress{} + yyc4549 = true + } + } + yyh4549.End() + if yyc4549 { + *v = yyv4549 + } +} + +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 _, yyv4553 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4554 := &yyv4553 + yy4554.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 + + yyv4555 := *v + yyh4555, yyl4555 := z.DecSliceHelperStart() + var yyc4555 bool + if yyl4555 == 0 { + if yyv4555 == nil { + yyv4555 = []ContainerImage{} + yyc4555 = true + } else if len(yyv4555) != 0 { + yyv4555 = yyv4555[:0] + yyc4555 = true + } + } else if yyl4555 > 0 { + var yyrr4555, yyrl4555 int + var yyrt4555 bool + if yyl4555 > cap(yyv4555) { + + yyrg4555 := len(yyv4555) > 0 + yyv24555 := yyv4555 + yyrl4555, yyrt4555 = z.DecInferLen(yyl4555, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4555 { + if yyrl4555 <= cap(yyv4555) { + yyv4555 = yyv4555[:yyrl4555] + } else { + yyv4555 = make([]ContainerImage, yyrl4555) + } + } else { + yyv4555 = make([]ContainerImage, yyrl4555) + } + yyc4555 = true + yyrr4555 = len(yyv4555) + if yyrg4555 { + copy(yyv4555, yyv24555) + } + } else if yyl4555 != len(yyv4555) { + yyv4555 = yyv4555[:yyl4555] + yyc4555 = true + } + yyj4555 := 0 + for ; yyj4555 < yyrr4555; yyj4555++ { + yyh4555.ElemContainerState(yyj4555) + if r.TryDecodeAsNil() { + yyv4555[yyj4555] = ContainerImage{} + } else { + yyv4556 := &yyv4555[yyj4555] + yyv4556.CodecDecodeSelf(d) + } + + } + if yyrt4555 { + for ; yyj4555 < yyl4555; yyj4555++ { + yyv4555 = append(yyv4555, ContainerImage{}) + yyh4555.ElemContainerState(yyj4555) + if r.TryDecodeAsNil() { + yyv4555[yyj4555] = ContainerImage{} + } else { + yyv4557 := &yyv4555[yyj4555] + yyv4557.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4555 := 0 + for ; !r.CheckBreak(); yyj4555++ { + + if yyj4555 >= len(yyv4555) { + yyv4555 = append(yyv4555, ContainerImage{}) // var yyz4555 ContainerImage + yyc4555 = true + } + yyh4555.ElemContainerState(yyj4555) + if yyj4555 < len(yyv4555) { + if r.TryDecodeAsNil() { + yyv4555[yyj4555] = ContainerImage{} + } else { + yyv4558 := &yyv4555[yyj4555] + yyv4558.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4555 < len(yyv4555) { + yyv4555 = yyv4555[:yyj4555] + yyc4555 = true + } else if yyj4555 == 0 && yyv4555 == nil { + yyv4555 = []ContainerImage{} + yyc4555 = true + } + } + yyh4555.End() + if yyc4555 { + *v = yyv4555 + } +} + +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 _, yyv4559 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4559.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 + + yyv4560 := *v + yyh4560, yyl4560 := z.DecSliceHelperStart() + var yyc4560 bool + if yyl4560 == 0 { + if yyv4560 == nil { + yyv4560 = []UniqueVolumeName{} + yyc4560 = true + } else if len(yyv4560) != 0 { + yyv4560 = yyv4560[:0] + yyc4560 = true + } + } else if yyl4560 > 0 { + var yyrr4560, yyrl4560 int + var yyrt4560 bool + if yyl4560 > cap(yyv4560) { + + yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4560 { + if yyrl4560 <= cap(yyv4560) { + yyv4560 = yyv4560[:yyrl4560] + } else { + yyv4560 = make([]UniqueVolumeName, yyrl4560) + } + } else { + yyv4560 = make([]UniqueVolumeName, yyrl4560) + } + yyc4560 = true + yyrr4560 = len(yyv4560) + } else if yyl4560 != len(yyv4560) { + yyv4560 = yyv4560[:yyl4560] + yyc4560 = true + } + yyj4560 := 0 + for ; yyj4560 < yyrr4560; yyj4560++ { + yyh4560.ElemContainerState(yyj4560) + if r.TryDecodeAsNil() { + yyv4560[yyj4560] = "" + } else { + yyv4560[yyj4560] = UniqueVolumeName(r.DecodeString()) + } + + } + if yyrt4560 { + for ; yyj4560 < yyl4560; yyj4560++ { + yyv4560 = append(yyv4560, "") + yyh4560.ElemContainerState(yyj4560) + if r.TryDecodeAsNil() { + yyv4560[yyj4560] = "" + } else { + yyv4560[yyj4560] = UniqueVolumeName(r.DecodeString()) + } + + } + } + + } else { + yyj4560 := 0 + for ; !r.CheckBreak(); yyj4560++ { + + if yyj4560 >= len(yyv4560) { + yyv4560 = append(yyv4560, "") // var yyz4560 UniqueVolumeName + yyc4560 = true + } + yyh4560.ElemContainerState(yyj4560) + if yyj4560 < len(yyv4560) { + if r.TryDecodeAsNil() { + yyv4560[yyj4560] = "" + } else { + yyv4560[yyj4560] = UniqueVolumeName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4560 < len(yyv4560) { + yyv4560 = yyv4560[:yyj4560] + yyc4560 = true + } else if yyj4560 == 0 && yyv4560 == nil { + yyv4560 = []UniqueVolumeName{} + yyc4560 = true + } + } + yyh4560.End() + if yyc4560 { + *v = yyv4560 + } +} + +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 _, yyv4564 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4565 := &yyv4564 + yy4565.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 + + yyv4566 := *v + yyh4566, yyl4566 := z.DecSliceHelperStart() + var yyc4566 bool + if yyl4566 == 0 { + if yyv4566 == nil { + yyv4566 = []AttachedVolume{} + yyc4566 = true + } else if len(yyv4566) != 0 { + yyv4566 = yyv4566[:0] + yyc4566 = true + } + } else if yyl4566 > 0 { + var yyrr4566, yyrl4566 int + var yyrt4566 bool + if yyl4566 > cap(yyv4566) { + + yyrg4566 := len(yyv4566) > 0 + yyv24566 := yyv4566 + yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4566 { + if yyrl4566 <= cap(yyv4566) { + yyv4566 = yyv4566[:yyrl4566] + } else { + yyv4566 = make([]AttachedVolume, yyrl4566) + } + } else { + yyv4566 = make([]AttachedVolume, yyrl4566) + } + yyc4566 = true + yyrr4566 = len(yyv4566) + if yyrg4566 { + copy(yyv4566, yyv24566) + } + } else if yyl4566 != len(yyv4566) { + yyv4566 = yyv4566[:yyl4566] + yyc4566 = true + } + yyj4566 := 0 + for ; yyj4566 < yyrr4566; yyj4566++ { + yyh4566.ElemContainerState(yyj4566) + if r.TryDecodeAsNil() { + yyv4566[yyj4566] = AttachedVolume{} + } else { + yyv4567 := &yyv4566[yyj4566] + yyv4567.CodecDecodeSelf(d) + } + + } + if yyrt4566 { + for ; yyj4566 < yyl4566; yyj4566++ { + yyv4566 = append(yyv4566, AttachedVolume{}) + yyh4566.ElemContainerState(yyj4566) + if r.TryDecodeAsNil() { + yyv4566[yyj4566] = AttachedVolume{} + } else { + yyv4568 := &yyv4566[yyj4566] + yyv4568.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4566 := 0 + for ; !r.CheckBreak(); yyj4566++ { + + if yyj4566 >= len(yyv4566) { + yyv4566 = append(yyv4566, AttachedVolume{}) // var yyz4566 AttachedVolume + yyc4566 = true + } + yyh4566.ElemContainerState(yyj4566) + if yyj4566 < len(yyv4566) { + if r.TryDecodeAsNil() { + yyv4566[yyj4566] = AttachedVolume{} + } else { + yyv4569 := &yyv4566[yyj4566] + yyv4569.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4566 < len(yyv4566) { + yyv4566 = yyv4566[:yyj4566] + yyc4566 = true + } else if yyj4566 == 0 && yyv4566 == nil { + yyv4566 = []AttachedVolume{} + yyc4566 = true + } + } + yyh4566.End() + if yyc4566 { + *v = yyv4566 + } +} + +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 _, yyv4570 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4571 := &yyv4570 + yy4571.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 + + yyv4572 := *v + yyh4572, yyl4572 := z.DecSliceHelperStart() + var yyc4572 bool + if yyl4572 == 0 { + if yyv4572 == nil { + yyv4572 = []PreferAvoidPodsEntry{} + yyc4572 = true + } else if len(yyv4572) != 0 { + yyv4572 = yyv4572[:0] + yyc4572 = true + } + } else if yyl4572 > 0 { + var yyrr4572, yyrl4572 int + var yyrt4572 bool + if yyl4572 > cap(yyv4572) { + + yyrg4572 := len(yyv4572) > 0 + yyv24572 := yyv4572 + yyrl4572, yyrt4572 = z.DecInferLen(yyl4572, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4572 { + if yyrl4572 <= cap(yyv4572) { + yyv4572 = yyv4572[:yyrl4572] + } else { + yyv4572 = make([]PreferAvoidPodsEntry, yyrl4572) + } + } else { + yyv4572 = make([]PreferAvoidPodsEntry, yyrl4572) + } + yyc4572 = true + yyrr4572 = len(yyv4572) + if yyrg4572 { + copy(yyv4572, yyv24572) + } + } else if yyl4572 != len(yyv4572) { + yyv4572 = yyv4572[:yyl4572] + yyc4572 = true + } + yyj4572 := 0 + for ; yyj4572 < yyrr4572; yyj4572++ { + yyh4572.ElemContainerState(yyj4572) + if r.TryDecodeAsNil() { + yyv4572[yyj4572] = PreferAvoidPodsEntry{} + } else { + yyv4573 := &yyv4572[yyj4572] + yyv4573.CodecDecodeSelf(d) + } + + } + if yyrt4572 { + for ; yyj4572 < yyl4572; yyj4572++ { + yyv4572 = append(yyv4572, PreferAvoidPodsEntry{}) + yyh4572.ElemContainerState(yyj4572) + if r.TryDecodeAsNil() { + yyv4572[yyj4572] = PreferAvoidPodsEntry{} + } else { + yyv4574 := &yyv4572[yyj4572] + yyv4574.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4572 := 0 + for ; !r.CheckBreak(); yyj4572++ { + + if yyj4572 >= len(yyv4572) { + yyv4572 = append(yyv4572, PreferAvoidPodsEntry{}) // var yyz4572 PreferAvoidPodsEntry + yyc4572 = true + } + yyh4572.ElemContainerState(yyj4572) + if yyj4572 < len(yyv4572) { + if r.TryDecodeAsNil() { + yyv4572[yyj4572] = PreferAvoidPodsEntry{} + } else { + yyv4575 := &yyv4572[yyj4572] + yyv4575.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4572 < len(yyv4572) { + yyv4572 = yyv4572[:yyj4572] + yyc4572 = true + } else if yyj4572 == 0 && yyv4572 == nil { + yyv4572 = []PreferAvoidPodsEntry{} + yyc4572 = true + } + } + yyh4572.End() + if yyc4572 { + *v = yyv4572 + } +} + +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 yyk4576, yyv4576 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yyk4576.CodecEncodeSelf(e) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4577 := &yyv4576 + yym4578 := z.EncBinary() + _ = yym4578 + if false { + } else if z.HasExtensions() && z.EncExt(yy4577) { + } else if !yym4578 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4577) + } else { + z.EncFallback(yy4577) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4579 := *v + yyl4579 := r.ReadMapStart() + yybh4579 := z.DecBasicHandle() + if yyv4579 == nil { + yyrl4579, _ := z.DecInferLen(yyl4579, yybh4579.MaxInitLen, 72) + yyv4579 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4579) + *v = yyv4579 + } + var yymk4579 ResourceName + var yymv4579 pkg3_resource.Quantity + var yymg4579 bool + if yybh4579.MapValueReset { + yymg4579 = true + } + if yyl4579 > 0 { + for yyj4579 := 0; yyj4579 < yyl4579; yyj4579++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4579 = "" + } else { + yymk4579 = ResourceName(r.DecodeString()) + } + + if yymg4579 { + yymv4579 = yyv4579[yymk4579] + } else { + yymv4579 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4579 = pkg3_resource.Quantity{} + } else { + yyv4581 := &yymv4579 + yym4582 := z.DecBinary() + _ = yym4582 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4581) { + } else if !yym4582 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4581) + } else { + z.DecFallback(yyv4581, false) + } + } + + if yyv4579 != nil { + yyv4579[yymk4579] = yymv4579 + } + } + } else if yyl4579 < 0 { + for yyj4579 := 0; !r.CheckBreak(); yyj4579++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4579 = "" + } else { + yymk4579 = ResourceName(r.DecodeString()) + } + + if yymg4579 { + yymv4579 = yyv4579[yymk4579] + } else { + yymv4579 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4579 = pkg3_resource.Quantity{} + } else { + yyv4584 := &yymv4579 + yym4585 := z.DecBinary() + _ = yym4585 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4584) { + } else if !yym4585 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4584) + } else { + z.DecFallback(yyv4584, false) + } + } + + if yyv4579 != nil { + yyv4579[yymk4579] = yymv4579 + } + } + } // 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 _, yyv4586 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4587 := &yyv4586 + yy4587.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 + + yyv4588 := *v + yyh4588, yyl4588 := z.DecSliceHelperStart() + var yyc4588 bool + if yyl4588 == 0 { + if yyv4588 == nil { + yyv4588 = []Node{} + yyc4588 = true + } else if len(yyv4588) != 0 { + yyv4588 = yyv4588[:0] + yyc4588 = true + } + } else if yyl4588 > 0 { + var yyrr4588, yyrl4588 int + var yyrt4588 bool + if yyl4588 > cap(yyv4588) { + + yyrg4588 := len(yyv4588) > 0 + yyv24588 := yyv4588 + yyrl4588, yyrt4588 = z.DecInferLen(yyl4588, z.DecBasicHandle().MaxInitLen, 616) + if yyrt4588 { + if yyrl4588 <= cap(yyv4588) { + yyv4588 = yyv4588[:yyrl4588] + } else { + yyv4588 = make([]Node, yyrl4588) + } + } else { + yyv4588 = make([]Node, yyrl4588) + } + yyc4588 = true + yyrr4588 = len(yyv4588) + if yyrg4588 { + copy(yyv4588, yyv24588) + } + } else if yyl4588 != len(yyv4588) { + yyv4588 = yyv4588[:yyl4588] + yyc4588 = true + } + yyj4588 := 0 + for ; yyj4588 < yyrr4588; yyj4588++ { + yyh4588.ElemContainerState(yyj4588) + if r.TryDecodeAsNil() { + yyv4588[yyj4588] = Node{} + } else { + yyv4589 := &yyv4588[yyj4588] + yyv4589.CodecDecodeSelf(d) + } + + } + if yyrt4588 { + for ; yyj4588 < yyl4588; yyj4588++ { + yyv4588 = append(yyv4588, Node{}) + yyh4588.ElemContainerState(yyj4588) + if r.TryDecodeAsNil() { + yyv4588[yyj4588] = Node{} + } else { + yyv4590 := &yyv4588[yyj4588] + yyv4590.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4588 := 0 + for ; !r.CheckBreak(); yyj4588++ { + + if yyj4588 >= len(yyv4588) { + yyv4588 = append(yyv4588, Node{}) // var yyz4588 Node + yyc4588 = true + } + yyh4588.ElemContainerState(yyj4588) + if yyj4588 < len(yyv4588) { + if r.TryDecodeAsNil() { + yyv4588[yyj4588] = Node{} + } else { + yyv4591 := &yyv4588[yyj4588] + yyv4591.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4588 < len(yyv4588) { + yyv4588 = yyv4588[:yyj4588] + yyc4588 = true + } else if yyj4588 == 0 && yyv4588 == nil { + yyv4588 = []Node{} + yyc4588 = true + } + } + yyh4588.End() + if yyc4588 { + *v = yyv4588 + } +} + +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 _, yyv4592 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4592.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 + + yyv4593 := *v + yyh4593, yyl4593 := z.DecSliceHelperStart() + var yyc4593 bool + if yyl4593 == 0 { + if yyv4593 == nil { + yyv4593 = []FinalizerName{} + yyc4593 = true + } else if len(yyv4593) != 0 { + yyv4593 = yyv4593[:0] + yyc4593 = true + } + } else if yyl4593 > 0 { + var yyrr4593, yyrl4593 int + var yyrt4593 bool + if yyl4593 > cap(yyv4593) { + + yyrl4593, yyrt4593 = z.DecInferLen(yyl4593, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4593 { + if yyrl4593 <= cap(yyv4593) { + yyv4593 = yyv4593[:yyrl4593] + } else { + yyv4593 = make([]FinalizerName, yyrl4593) + } + } else { + yyv4593 = make([]FinalizerName, yyrl4593) + } + yyc4593 = true + yyrr4593 = len(yyv4593) + } else if yyl4593 != len(yyv4593) { + yyv4593 = yyv4593[:yyl4593] + yyc4593 = true + } + yyj4593 := 0 + for ; yyj4593 < yyrr4593; yyj4593++ { + yyh4593.ElemContainerState(yyj4593) + if r.TryDecodeAsNil() { + yyv4593[yyj4593] = "" + } else { + yyv4593[yyj4593] = FinalizerName(r.DecodeString()) + } + + } + if yyrt4593 { + for ; yyj4593 < yyl4593; yyj4593++ { + yyv4593 = append(yyv4593, "") + yyh4593.ElemContainerState(yyj4593) + if r.TryDecodeAsNil() { + yyv4593[yyj4593] = "" + } else { + yyv4593[yyj4593] = FinalizerName(r.DecodeString()) + } + + } + } + + } else { + yyj4593 := 0 + for ; !r.CheckBreak(); yyj4593++ { + + if yyj4593 >= len(yyv4593) { + yyv4593 = append(yyv4593, "") // var yyz4593 FinalizerName + yyc4593 = true + } + yyh4593.ElemContainerState(yyj4593) + if yyj4593 < len(yyv4593) { + if r.TryDecodeAsNil() { + yyv4593[yyj4593] = "" + } else { + yyv4593[yyj4593] = FinalizerName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4593 < len(yyv4593) { + yyv4593 = yyv4593[:yyj4593] + yyc4593 = true + } else if yyj4593 == 0 && yyv4593 == nil { + yyv4593 = []FinalizerName{} + yyc4593 = true + } + } + yyh4593.End() + if yyc4593 { + *v = yyv4593 + } +} + +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 _, yyv4597 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4598 := &yyv4597 + yy4598.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 + + yyv4599 := *v + yyh4599, yyl4599 := z.DecSliceHelperStart() + var yyc4599 bool + if yyl4599 == 0 { + if yyv4599 == nil { + yyv4599 = []Namespace{} + yyc4599 = true + } else if len(yyv4599) != 0 { + yyv4599 = yyv4599[:0] + yyc4599 = true + } + } else if yyl4599 > 0 { + var yyrr4599, yyrl4599 int + var yyrt4599 bool + if yyl4599 > cap(yyv4599) { + + yyrg4599 := len(yyv4599) > 0 + yyv24599 := yyv4599 + yyrl4599, yyrt4599 = z.DecInferLen(yyl4599, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4599 { + if yyrl4599 <= cap(yyv4599) { + yyv4599 = yyv4599[:yyrl4599] + } else { + yyv4599 = make([]Namespace, yyrl4599) + } + } else { + yyv4599 = make([]Namespace, yyrl4599) + } + yyc4599 = true + yyrr4599 = len(yyv4599) + if yyrg4599 { + copy(yyv4599, yyv24599) + } + } else if yyl4599 != len(yyv4599) { + yyv4599 = yyv4599[:yyl4599] + yyc4599 = true + } + yyj4599 := 0 + for ; yyj4599 < yyrr4599; yyj4599++ { + yyh4599.ElemContainerState(yyj4599) + if r.TryDecodeAsNil() { + yyv4599[yyj4599] = Namespace{} + } else { + yyv4600 := &yyv4599[yyj4599] + yyv4600.CodecDecodeSelf(d) + } + + } + if yyrt4599 { + for ; yyj4599 < yyl4599; yyj4599++ { + yyv4599 = append(yyv4599, Namespace{}) + yyh4599.ElemContainerState(yyj4599) + if r.TryDecodeAsNil() { + yyv4599[yyj4599] = Namespace{} + } else { + yyv4601 := &yyv4599[yyj4599] + yyv4601.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4599 := 0 + for ; !r.CheckBreak(); yyj4599++ { + + if yyj4599 >= len(yyv4599) { + yyv4599 = append(yyv4599, Namespace{}) // var yyz4599 Namespace + yyc4599 = true + } + yyh4599.ElemContainerState(yyj4599) + if yyj4599 < len(yyv4599) { + if r.TryDecodeAsNil() { + yyv4599[yyj4599] = Namespace{} + } else { + yyv4602 := &yyv4599[yyj4599] + yyv4602.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4599 < len(yyv4599) { + yyv4599 = yyv4599[:yyj4599] + yyc4599 = true + } else if yyj4599 == 0 && yyv4599 == nil { + yyv4599 = []Namespace{} + yyc4599 = true + } + } + yyh4599.End() + if yyc4599 { + *v = yyv4599 + } +} + +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 _, yyv4603 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4604 := &yyv4603 + yy4604.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 + + yyv4605 := *v + yyh4605, yyl4605 := z.DecSliceHelperStart() + var yyc4605 bool + if yyl4605 == 0 { + if yyv4605 == nil { + yyv4605 = []Event{} + yyc4605 = true + } else if len(yyv4605) != 0 { + yyv4605 = yyv4605[:0] + yyc4605 = true + } + } else if yyl4605 > 0 { + var yyrr4605, yyrl4605 int + var yyrt4605 bool + if yyl4605 > cap(yyv4605) { + + yyrg4605 := len(yyv4605) > 0 + yyv24605 := yyv4605 + yyrl4605, yyrt4605 = z.DecInferLen(yyl4605, z.DecBasicHandle().MaxInitLen, 488) + if yyrt4605 { + if yyrl4605 <= cap(yyv4605) { + yyv4605 = yyv4605[:yyrl4605] + } else { + yyv4605 = make([]Event, yyrl4605) + } + } else { + yyv4605 = make([]Event, yyrl4605) + } + yyc4605 = true + yyrr4605 = len(yyv4605) + if yyrg4605 { + copy(yyv4605, yyv24605) + } + } else if yyl4605 != len(yyv4605) { + yyv4605 = yyv4605[:yyl4605] + yyc4605 = true + } + yyj4605 := 0 + for ; yyj4605 < yyrr4605; yyj4605++ { + yyh4605.ElemContainerState(yyj4605) + if r.TryDecodeAsNil() { + yyv4605[yyj4605] = Event{} + } else { + yyv4606 := &yyv4605[yyj4605] + yyv4606.CodecDecodeSelf(d) + } + + } + if yyrt4605 { + for ; yyj4605 < yyl4605; yyj4605++ { + yyv4605 = append(yyv4605, Event{}) + yyh4605.ElemContainerState(yyj4605) + if r.TryDecodeAsNil() { + yyv4605[yyj4605] = Event{} + } else { + yyv4607 := &yyv4605[yyj4605] + yyv4607.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4605 := 0 + for ; !r.CheckBreak(); yyj4605++ { + + if yyj4605 >= len(yyv4605) { + yyv4605 = append(yyv4605, Event{}) // var yyz4605 Event + yyc4605 = true + } + yyh4605.ElemContainerState(yyj4605) + if yyj4605 < len(yyv4605) { + if r.TryDecodeAsNil() { + yyv4605[yyj4605] = Event{} + } else { + yyv4608 := &yyv4605[yyj4605] + yyv4608.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4605 < len(yyv4605) { + yyv4605 = yyv4605[:yyj4605] + yyc4605 = true + } else if yyj4605 == 0 && yyv4605 == nil { + yyv4605 = []Event{} + yyc4605 = true + } + } + yyh4605.End() + if yyc4605 { + *v = yyv4605 + } +} + +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 _, yyv4609 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyv4609 == nil { + r.EncodeNil() + } else { + yym4610 := z.EncBinary() + _ = yym4610 + if false { + } else if z.HasExtensions() && z.EncExt(yyv4609) { + } else { + z.EncFallback(yyv4609) + } + } + } + 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 + + yyv4611 := *v + yyh4611, yyl4611 := z.DecSliceHelperStart() + var yyc4611 bool + if yyl4611 == 0 { + if yyv4611 == nil { + yyv4611 = []pkg7_runtime.Object{} + yyc4611 = true + } else if len(yyv4611) != 0 { + yyv4611 = yyv4611[:0] + yyc4611 = true + } + } else if yyl4611 > 0 { + var yyrr4611, yyrl4611 int + var yyrt4611 bool + if yyl4611 > cap(yyv4611) { + + yyrg4611 := len(yyv4611) > 0 + yyv24611 := yyv4611 + yyrl4611, yyrt4611 = z.DecInferLen(yyl4611, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4611 { + if yyrl4611 <= cap(yyv4611) { + yyv4611 = yyv4611[:yyrl4611] + } else { + yyv4611 = make([]pkg7_runtime.Object, yyrl4611) + } + } else { + yyv4611 = make([]pkg7_runtime.Object, yyrl4611) + } + yyc4611 = true + yyrr4611 = len(yyv4611) + if yyrg4611 { + copy(yyv4611, yyv24611) + } + } else if yyl4611 != len(yyv4611) { + yyv4611 = yyv4611[:yyl4611] + yyc4611 = true + } + yyj4611 := 0 + for ; yyj4611 < yyrr4611; yyj4611++ { + yyh4611.ElemContainerState(yyj4611) + if r.TryDecodeAsNil() { + yyv4611[yyj4611] = nil + } else { + yyv4612 := &yyv4611[yyj4611] + yym4613 := z.DecBinary() + _ = yym4613 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4612) { + } else { + z.DecFallback(yyv4612, true) + } + } + + } + if yyrt4611 { + for ; yyj4611 < yyl4611; yyj4611++ { + yyv4611 = append(yyv4611, nil) + yyh4611.ElemContainerState(yyj4611) + if r.TryDecodeAsNil() { + yyv4611[yyj4611] = nil + } else { + yyv4614 := &yyv4611[yyj4611] + yym4615 := z.DecBinary() + _ = yym4615 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4614) { + } else { + z.DecFallback(yyv4614, true) + } + } + + } + } + + } else { + yyj4611 := 0 + for ; !r.CheckBreak(); yyj4611++ { + + if yyj4611 >= len(yyv4611) { + yyv4611 = append(yyv4611, nil) // var yyz4611 pkg7_runtime.Object + yyc4611 = true + } + yyh4611.ElemContainerState(yyj4611) + if yyj4611 < len(yyv4611) { + if r.TryDecodeAsNil() { + yyv4611[yyj4611] = nil + } else { + yyv4616 := &yyv4611[yyj4611] + yym4617 := z.DecBinary() + _ = yym4617 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4616) { + } else { + z.DecFallback(yyv4616, true) + } + } + + } else { + z.DecSwallow() + } + + } + if yyj4611 < len(yyv4611) { + yyv4611 = yyv4611[:yyj4611] + yyc4611 = true + } else if yyj4611 == 0 && yyv4611 == nil { + yyv4611 = []pkg7_runtime.Object{} + yyc4611 = true + } + } + yyh4611.End() + if yyc4611 { + *v = yyv4611 + } +} + +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 _, yyv4618 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4619 := &yyv4618 + yy4619.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 + + yyv4620 := *v + yyh4620, yyl4620 := z.DecSliceHelperStart() + var yyc4620 bool + if yyl4620 == 0 { + if yyv4620 == nil { + yyv4620 = []LimitRangeItem{} + yyc4620 = true + } else if len(yyv4620) != 0 { + yyv4620 = yyv4620[:0] + yyc4620 = true + } + } else if yyl4620 > 0 { + var yyrr4620, yyrl4620 int + var yyrt4620 bool + if yyl4620 > cap(yyv4620) { + + yyrg4620 := len(yyv4620) > 0 + yyv24620 := yyv4620 + yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4620 { + if yyrl4620 <= cap(yyv4620) { + yyv4620 = yyv4620[:yyrl4620] + } else { + yyv4620 = make([]LimitRangeItem, yyrl4620) + } + } else { + yyv4620 = make([]LimitRangeItem, yyrl4620) + } + yyc4620 = true + yyrr4620 = len(yyv4620) + if yyrg4620 { + copy(yyv4620, yyv24620) + } + } else if yyl4620 != len(yyv4620) { + yyv4620 = yyv4620[:yyl4620] + yyc4620 = true + } + yyj4620 := 0 + for ; yyj4620 < yyrr4620; yyj4620++ { + yyh4620.ElemContainerState(yyj4620) + if r.TryDecodeAsNil() { + yyv4620[yyj4620] = LimitRangeItem{} + } else { + yyv4621 := &yyv4620[yyj4620] + yyv4621.CodecDecodeSelf(d) + } + + } + if yyrt4620 { + for ; yyj4620 < yyl4620; yyj4620++ { + yyv4620 = append(yyv4620, LimitRangeItem{}) + yyh4620.ElemContainerState(yyj4620) + if r.TryDecodeAsNil() { + yyv4620[yyj4620] = LimitRangeItem{} + } else { + yyv4622 := &yyv4620[yyj4620] + yyv4622.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4620 := 0 + for ; !r.CheckBreak(); yyj4620++ { + + if yyj4620 >= len(yyv4620) { + yyv4620 = append(yyv4620, LimitRangeItem{}) // var yyz4620 LimitRangeItem + yyc4620 = true + } + yyh4620.ElemContainerState(yyj4620) + if yyj4620 < len(yyv4620) { + if r.TryDecodeAsNil() { + yyv4620[yyj4620] = LimitRangeItem{} + } else { + yyv4623 := &yyv4620[yyj4620] + yyv4623.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4620 < len(yyv4620) { + yyv4620 = yyv4620[:yyj4620] + yyc4620 = true + } else if yyj4620 == 0 && yyv4620 == nil { + yyv4620 = []LimitRangeItem{} + yyc4620 = true + } + } + yyh4620.End() + if yyc4620 { + *v = yyv4620 + } +} + +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 _, yyv4624 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4625 := &yyv4624 + yy4625.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 + + yyv4626 := *v + yyh4626, yyl4626 := z.DecSliceHelperStart() + var yyc4626 bool + if yyl4626 == 0 { + if yyv4626 == nil { + yyv4626 = []LimitRange{} + 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, 264) + if yyrt4626 { + if yyrl4626 <= cap(yyv4626) { + yyv4626 = yyv4626[:yyrl4626] + } else { + yyv4626 = make([]LimitRange, yyrl4626) + } + } else { + yyv4626 = make([]LimitRange, 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] = LimitRange{} + } else { + yyv4627 := &yyv4626[yyj4626] + yyv4627.CodecDecodeSelf(d) + } + + } + if yyrt4626 { + for ; yyj4626 < yyl4626; yyj4626++ { + yyv4626 = append(yyv4626, LimitRange{}) + yyh4626.ElemContainerState(yyj4626) + if r.TryDecodeAsNil() { + yyv4626[yyj4626] = LimitRange{} + } else { + yyv4628 := &yyv4626[yyj4626] + yyv4628.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4626 := 0 + for ; !r.CheckBreak(); yyj4626++ { + + if yyj4626 >= len(yyv4626) { + yyv4626 = append(yyv4626, LimitRange{}) // var yyz4626 LimitRange + yyc4626 = true + } + yyh4626.ElemContainerState(yyj4626) + if yyj4626 < len(yyv4626) { + if r.TryDecodeAsNil() { + yyv4626[yyj4626] = LimitRange{} + } 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 = []LimitRange{} + yyc4626 = true + } + } + yyh4626.End() + if yyc4626 { + *v = yyv4626 + } +} + +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 _, yyv4630 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4630.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 + + yyv4631 := *v + yyh4631, yyl4631 := z.DecSliceHelperStart() + var yyc4631 bool + if yyl4631 == 0 { + if yyv4631 == nil { + yyv4631 = []ResourceQuotaScope{} + yyc4631 = true + } else if len(yyv4631) != 0 { + yyv4631 = yyv4631[:0] + yyc4631 = true + } + } else if yyl4631 > 0 { + var yyrr4631, yyrl4631 int + var yyrt4631 bool + if yyl4631 > cap(yyv4631) { + + yyrl4631, yyrt4631 = z.DecInferLen(yyl4631, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4631 { + if yyrl4631 <= cap(yyv4631) { + yyv4631 = yyv4631[:yyrl4631] + } else { + yyv4631 = make([]ResourceQuotaScope, yyrl4631) + } + } else { + yyv4631 = make([]ResourceQuotaScope, yyrl4631) + } + yyc4631 = true + yyrr4631 = len(yyv4631) + } else if yyl4631 != len(yyv4631) { + yyv4631 = yyv4631[:yyl4631] + yyc4631 = true + } + yyj4631 := 0 + for ; yyj4631 < yyrr4631; yyj4631++ { + yyh4631.ElemContainerState(yyj4631) + if r.TryDecodeAsNil() { + yyv4631[yyj4631] = "" + } else { + yyv4631[yyj4631] = ResourceQuotaScope(r.DecodeString()) + } + + } + if yyrt4631 { + for ; yyj4631 < yyl4631; yyj4631++ { + yyv4631 = append(yyv4631, "") + yyh4631.ElemContainerState(yyj4631) + if r.TryDecodeAsNil() { + yyv4631[yyj4631] = "" + } else { + yyv4631[yyj4631] = ResourceQuotaScope(r.DecodeString()) + } + + } + } + + } else { + yyj4631 := 0 + for ; !r.CheckBreak(); yyj4631++ { + + if yyj4631 >= len(yyv4631) { + yyv4631 = append(yyv4631, "") // var yyz4631 ResourceQuotaScope + yyc4631 = true + } + yyh4631.ElemContainerState(yyj4631) + if yyj4631 < len(yyv4631) { + if r.TryDecodeAsNil() { + yyv4631[yyj4631] = "" + } else { + yyv4631[yyj4631] = ResourceQuotaScope(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4631 < len(yyv4631) { + yyv4631 = yyv4631[:yyj4631] + yyc4631 = true + } else if yyj4631 == 0 && yyv4631 == nil { + yyv4631 = []ResourceQuotaScope{} + yyc4631 = true + } + } + yyh4631.End() + if yyc4631 { + *v = yyv4631 + } +} + +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 _, yyv4635 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4636 := &yyv4635 + yy4636.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 + + yyv4637 := *v + yyh4637, yyl4637 := z.DecSliceHelperStart() + var yyc4637 bool + if yyl4637 == 0 { + if yyv4637 == nil { + yyv4637 = []ResourceQuota{} + yyc4637 = true + } else if len(yyv4637) != 0 { + yyv4637 = yyv4637[:0] + yyc4637 = true + } + } else if yyl4637 > 0 { + var yyrr4637, yyrl4637 int + var yyrt4637 bool + if yyl4637 > cap(yyv4637) { + + yyrg4637 := len(yyv4637) > 0 + yyv24637 := yyv4637 + yyrl4637, yyrt4637 = z.DecInferLen(yyl4637, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4637 { + if yyrl4637 <= cap(yyv4637) { + yyv4637 = yyv4637[:yyrl4637] + } else { + yyv4637 = make([]ResourceQuota, yyrl4637) + } + } else { + yyv4637 = make([]ResourceQuota, yyrl4637) + } + yyc4637 = true + yyrr4637 = len(yyv4637) + if yyrg4637 { + copy(yyv4637, yyv24637) + } + } else if yyl4637 != len(yyv4637) { + yyv4637 = yyv4637[:yyl4637] + yyc4637 = true + } + yyj4637 := 0 + for ; yyj4637 < yyrr4637; yyj4637++ { + yyh4637.ElemContainerState(yyj4637) + if r.TryDecodeAsNil() { + yyv4637[yyj4637] = ResourceQuota{} + } else { + yyv4638 := &yyv4637[yyj4637] + yyv4638.CodecDecodeSelf(d) + } + + } + if yyrt4637 { + for ; yyj4637 < yyl4637; yyj4637++ { + yyv4637 = append(yyv4637, ResourceQuota{}) + yyh4637.ElemContainerState(yyj4637) + if r.TryDecodeAsNil() { + yyv4637[yyj4637] = ResourceQuota{} + } else { + yyv4639 := &yyv4637[yyj4637] + yyv4639.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4637 := 0 + for ; !r.CheckBreak(); yyj4637++ { + + if yyj4637 >= len(yyv4637) { + yyv4637 = append(yyv4637, ResourceQuota{}) // var yyz4637 ResourceQuota + yyc4637 = true + } + yyh4637.ElemContainerState(yyj4637) + if yyj4637 < len(yyv4637) { + if r.TryDecodeAsNil() { + yyv4637[yyj4637] = ResourceQuota{} + } else { + yyv4640 := &yyv4637[yyj4637] + yyv4640.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4637 < len(yyv4637) { + yyv4637 = yyv4637[:yyj4637] + yyc4637 = true + } else if yyj4637 == 0 && yyv4637 == nil { + yyv4637 = []ResourceQuota{} + yyc4637 = true + } + } + yyh4637.End() + if yyc4637 { + *v = yyv4637 + } +} + +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 yyk4641, yyv4641 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym4642 := z.EncBinary() + _ = yym4642 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk4641)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyv4641 == nil { + r.EncodeNil() + } else { + yym4643 := z.EncBinary() + _ = yym4643 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4641)) + } + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4644 := *v + yyl4644 := r.ReadMapStart() + yybh4644 := z.DecBasicHandle() + if yyv4644 == nil { + yyrl4644, _ := z.DecInferLen(yyl4644, yybh4644.MaxInitLen, 40) + yyv4644 = make(map[string][]uint8, yyrl4644) + *v = yyv4644 + } + var yymk4644 string + var yymv4644 []uint8 + var yymg4644 bool + if yybh4644.MapValueReset { + yymg4644 = true + } + if yyl4644 > 0 { + for yyj4644 := 0; yyj4644 < yyl4644; yyj4644++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4644 = "" + } else { + yymk4644 = string(r.DecodeString()) + } + + if yymg4644 { + yymv4644 = yyv4644[yymk4644] + } else { + yymv4644 = nil + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4644 = nil + } else { + yyv4646 := &yymv4644 + yym4647 := z.DecBinary() + _ = yym4647 + if false { + } else { + *yyv4646 = r.DecodeBytes(*(*[]byte)(yyv4646), false, false) + } + } + + if yyv4644 != nil { + yyv4644[yymk4644] = yymv4644 + } + } + } else if yyl4644 < 0 { + for yyj4644 := 0; !r.CheckBreak(); yyj4644++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4644 = "" + } else { + yymk4644 = string(r.DecodeString()) + } + + if yymg4644 { + yymv4644 = yyv4644[yymk4644] + } else { + yymv4644 = nil + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4644 = nil + } else { + yyv4649 := &yymv4644 + yym4650 := z.DecBinary() + _ = yym4650 + if false { + } else { + *yyv4649 = r.DecodeBytes(*(*[]byte)(yyv4649), false, false) + } + } + + if yyv4644 != nil { + yyv4644[yymk4644] = yymv4644 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4651 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4652 := &yyv4651 + yy4652.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4653 := *v + yyh4653, yyl4653 := z.DecSliceHelperStart() + var yyc4653 bool + if yyl4653 == 0 { + if yyv4653 == nil { + yyv4653 = []Secret{} + yyc4653 = true + } else if len(yyv4653) != 0 { + yyv4653 = yyv4653[:0] + yyc4653 = true + } + } else if yyl4653 > 0 { + var yyrr4653, yyrl4653 int + var yyrt4653 bool + if yyl4653 > cap(yyv4653) { + + yyrg4653 := len(yyv4653) > 0 + yyv24653 := yyv4653 + yyrl4653, yyrt4653 = z.DecInferLen(yyl4653, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4653 { + if yyrl4653 <= cap(yyv4653) { + yyv4653 = yyv4653[:yyrl4653] + } else { + yyv4653 = make([]Secret, yyrl4653) + } + } else { + yyv4653 = make([]Secret, yyrl4653) + } + yyc4653 = true + yyrr4653 = len(yyv4653) + if yyrg4653 { + copy(yyv4653, yyv24653) + } + } else if yyl4653 != len(yyv4653) { + yyv4653 = yyv4653[:yyl4653] + yyc4653 = true + } + yyj4653 := 0 + for ; yyj4653 < yyrr4653; yyj4653++ { + yyh4653.ElemContainerState(yyj4653) + if r.TryDecodeAsNil() { + yyv4653[yyj4653] = Secret{} + } else { + yyv4654 := &yyv4653[yyj4653] + yyv4654.CodecDecodeSelf(d) + } + + } + if yyrt4653 { + for ; yyj4653 < yyl4653; yyj4653++ { + yyv4653 = append(yyv4653, Secret{}) + yyh4653.ElemContainerState(yyj4653) + if r.TryDecodeAsNil() { + yyv4653[yyj4653] = Secret{} + } else { + yyv4655 := &yyv4653[yyj4653] + yyv4655.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4653 := 0 + for ; !r.CheckBreak(); yyj4653++ { + + if yyj4653 >= len(yyv4653) { + yyv4653 = append(yyv4653, Secret{}) // var yyz4653 Secret + yyc4653 = true + } + yyh4653.ElemContainerState(yyj4653) + if yyj4653 < len(yyv4653) { + if r.TryDecodeAsNil() { + yyv4653[yyj4653] = Secret{} + } else { + yyv4656 := &yyv4653[yyj4653] + yyv4656.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4653 < len(yyv4653) { + yyv4653 = yyv4653[:yyj4653] + yyc4653 = true + } else if yyj4653 == 0 && yyv4653 == nil { + yyv4653 = []Secret{} + yyc4653 = true + } + } + yyh4653.End() + if yyc4653 { + *v = yyv4653 + } +} + +func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4657 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4658 := &yyv4657 + yy4658.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4659 := *v + yyh4659, yyl4659 := z.DecSliceHelperStart() + var yyc4659 bool + if yyl4659 == 0 { + if yyv4659 == nil { + yyv4659 = []ConfigMap{} + yyc4659 = true + } else if len(yyv4659) != 0 { + yyv4659 = yyv4659[:0] + yyc4659 = true + } + } else if yyl4659 > 0 { + var yyrr4659, yyrl4659 int + var yyrt4659 bool + if yyl4659 > cap(yyv4659) { + + yyrg4659 := len(yyv4659) > 0 + yyv24659 := yyv4659 + yyrl4659, yyrt4659 = z.DecInferLen(yyl4659, z.DecBasicHandle().MaxInitLen, 248) + if yyrt4659 { + if yyrl4659 <= cap(yyv4659) { + yyv4659 = yyv4659[:yyrl4659] + } else { + yyv4659 = make([]ConfigMap, yyrl4659) + } + } else { + yyv4659 = make([]ConfigMap, yyrl4659) + } + yyc4659 = true + yyrr4659 = len(yyv4659) + if yyrg4659 { + copy(yyv4659, yyv24659) + } + } else if yyl4659 != len(yyv4659) { + yyv4659 = yyv4659[:yyl4659] + yyc4659 = true + } + yyj4659 := 0 + for ; yyj4659 < yyrr4659; yyj4659++ { + yyh4659.ElemContainerState(yyj4659) + if r.TryDecodeAsNil() { + yyv4659[yyj4659] = ConfigMap{} + } else { + yyv4660 := &yyv4659[yyj4659] + yyv4660.CodecDecodeSelf(d) + } + + } + if yyrt4659 { + for ; yyj4659 < yyl4659; yyj4659++ { + yyv4659 = append(yyv4659, ConfigMap{}) + yyh4659.ElemContainerState(yyj4659) + if r.TryDecodeAsNil() { + yyv4659[yyj4659] = ConfigMap{} + } else { + yyv4661 := &yyv4659[yyj4659] + yyv4661.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4659 := 0 + for ; !r.CheckBreak(); yyj4659++ { + + if yyj4659 >= len(yyv4659) { + yyv4659 = append(yyv4659, ConfigMap{}) // var yyz4659 ConfigMap + yyc4659 = true + } + yyh4659.ElemContainerState(yyj4659) + if yyj4659 < len(yyv4659) { + if r.TryDecodeAsNil() { + yyv4659[yyj4659] = ConfigMap{} + } else { + yyv4662 := &yyv4659[yyj4659] + yyv4662.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4659 < len(yyv4659) { + yyv4659 = yyv4659[:yyj4659] + yyc4659 = true + } else if yyj4659 == 0 && yyv4659 == nil { + yyv4659 = []ConfigMap{} + yyc4659 = true + } + } + yyh4659.End() + if yyc4659 { + *v = yyv4659 + } +} + +func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4663 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4664 := &yyv4663 + yy4664.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4665 := *v + yyh4665, yyl4665 := z.DecSliceHelperStart() + var yyc4665 bool + if yyl4665 == 0 { + if yyv4665 == nil { + yyv4665 = []ComponentCondition{} + yyc4665 = true + } else if len(yyv4665) != 0 { + yyv4665 = yyv4665[:0] + yyc4665 = true + } + } else if yyl4665 > 0 { + var yyrr4665, yyrl4665 int + var yyrt4665 bool + if yyl4665 > cap(yyv4665) { + + yyrg4665 := len(yyv4665) > 0 + yyv24665 := yyv4665 + yyrl4665, yyrt4665 = z.DecInferLen(yyl4665, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4665 { + if yyrl4665 <= cap(yyv4665) { + yyv4665 = yyv4665[:yyrl4665] + } else { + yyv4665 = make([]ComponentCondition, yyrl4665) + } + } else { + yyv4665 = make([]ComponentCondition, yyrl4665) + } + yyc4665 = true + yyrr4665 = len(yyv4665) + if yyrg4665 { + copy(yyv4665, yyv24665) + } + } else if yyl4665 != len(yyv4665) { + yyv4665 = yyv4665[:yyl4665] + yyc4665 = true + } + yyj4665 := 0 + for ; yyj4665 < yyrr4665; yyj4665++ { + yyh4665.ElemContainerState(yyj4665) + if r.TryDecodeAsNil() { + yyv4665[yyj4665] = ComponentCondition{} + } else { + yyv4666 := &yyv4665[yyj4665] + yyv4666.CodecDecodeSelf(d) + } + + } + if yyrt4665 { + for ; yyj4665 < yyl4665; yyj4665++ { + yyv4665 = append(yyv4665, ComponentCondition{}) + yyh4665.ElemContainerState(yyj4665) + if r.TryDecodeAsNil() { + yyv4665[yyj4665] = ComponentCondition{} + } else { + yyv4667 := &yyv4665[yyj4665] + yyv4667.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4665 := 0 + for ; !r.CheckBreak(); yyj4665++ { + + if yyj4665 >= len(yyv4665) { + yyv4665 = append(yyv4665, ComponentCondition{}) // var yyz4665 ComponentCondition + yyc4665 = true + } + yyh4665.ElemContainerState(yyj4665) + if yyj4665 < len(yyv4665) { + if r.TryDecodeAsNil() { + yyv4665[yyj4665] = ComponentCondition{} + } else { + yyv4668 := &yyv4665[yyj4665] + yyv4668.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4665 < len(yyv4665) { + yyv4665 = yyv4665[:yyj4665] + yyc4665 = true + } else if yyj4665 == 0 && yyv4665 == nil { + yyv4665 = []ComponentCondition{} + yyc4665 = true + } + } + yyh4665.End() + if yyc4665 { + *v = yyv4665 + } +} + +func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4669 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4670 := &yyv4669 + yy4670.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4671 := *v + yyh4671, yyl4671 := z.DecSliceHelperStart() + var yyc4671 bool + if yyl4671 == 0 { + if yyv4671 == nil { + yyv4671 = []ComponentStatus{} + yyc4671 = true + } else if len(yyv4671) != 0 { + yyv4671 = yyv4671[:0] + yyc4671 = true + } + } else if yyl4671 > 0 { + var yyrr4671, yyrl4671 int + var yyrt4671 bool + if yyl4671 > cap(yyv4671) { + + yyrg4671 := len(yyv4671) > 0 + yyv24671 := yyv4671 + yyrl4671, yyrt4671 = z.DecInferLen(yyl4671, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4671 { + if yyrl4671 <= cap(yyv4671) { + yyv4671 = yyv4671[:yyrl4671] + } else { + yyv4671 = make([]ComponentStatus, yyrl4671) + } + } else { + yyv4671 = make([]ComponentStatus, yyrl4671) + } + yyc4671 = true + yyrr4671 = len(yyv4671) + if yyrg4671 { + copy(yyv4671, yyv24671) + } + } else if yyl4671 != len(yyv4671) { + yyv4671 = yyv4671[:yyl4671] + yyc4671 = true + } + yyj4671 := 0 + for ; yyj4671 < yyrr4671; yyj4671++ { + yyh4671.ElemContainerState(yyj4671) + if r.TryDecodeAsNil() { + yyv4671[yyj4671] = ComponentStatus{} + } else { + yyv4672 := &yyv4671[yyj4671] + yyv4672.CodecDecodeSelf(d) + } + + } + if yyrt4671 { + for ; yyj4671 < yyl4671; yyj4671++ { + yyv4671 = append(yyv4671, ComponentStatus{}) + yyh4671.ElemContainerState(yyj4671) + if r.TryDecodeAsNil() { + yyv4671[yyj4671] = ComponentStatus{} + } else { + yyv4673 := &yyv4671[yyj4671] + yyv4673.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4671 := 0 + for ; !r.CheckBreak(); yyj4671++ { + + if yyj4671 >= len(yyv4671) { + yyv4671 = append(yyv4671, ComponentStatus{}) // var yyz4671 ComponentStatus + yyc4671 = true + } + yyh4671.ElemContainerState(yyj4671) + if yyj4671 < len(yyv4671) { + if r.TryDecodeAsNil() { + yyv4671[yyj4671] = ComponentStatus{} + } else { + yyv4674 := &yyv4671[yyj4671] + yyv4674.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4671 < len(yyv4671) { + yyv4671 = yyv4671[:yyj4671] + yyc4671 = true + } else if yyj4671 == 0 && yyv4671 == nil { + yyv4671 = []ComponentStatus{} + yyc4671 = true + } + } + yyh4671.End() + if yyc4671 { + *v = yyv4671 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/types.go new file mode 100644 index 0000000000..6c10d78275 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/types.go @@ -0,0 +1,2929 @@ +/* +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 api + +import ( + "k8s.io/client-go/1.4/pkg/api/resource" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "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/types" + "k8s.io/client-go/1.4/pkg/util/intstr" +) + +// Common string formats +// --------------------- +// Many fields in this API have formatting requirements. The commonly used +// formats are defined here. +// +// C_IDENTIFIER: This is a string that conforms to the definition of an "identifier" +// in the C language. This is captured by the following regex: +// [A-Za-z_][A-Za-z0-9_]* +// This defines the format, but not the length restriction, which should be +// specified at the definition of any field of this type. +// +// DNS_LABEL: This is a string, no more than 63 characters long, that conforms +// to the definition of a "label" in RFCs 1035 and 1123. This is captured +// by the following regex: +// [a-z0-9]([-a-z0-9]*[a-z0-9])? +// +// DNS_SUBDOMAIN: This is a string, no more than 253 characters long, that conforms +// to the definition of a "subdomain" in RFCs 1035 and 1123. This is captured +// by the following regex: +// [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* +// or more simply: +// DNS_LABEL(\.DNS_LABEL)* +// +// IANA_SVC_NAME: This is a string, no more than 15 characters long, that +// conforms to the definition of IANA service name in RFC 6335. +// It must contains at least one letter [a-z] and it must contains only [a-z0-9-]. +// Hypens ('-') cannot be leading or trailing character of the string +// and cannot be adjacent to other hyphens. + +// ObjectMeta is metadata that all persisted resources must have, which includes all objects +// users must create. +type ObjectMeta struct { + // Name is unique within a namespace. Name is required when creating resources, although + // some resources may allow a client to request the generation of an appropriate name + // automatically. Name is primarily intended for creation idempotence and configuration + // definition. + Name string `json:"name,omitempty"` + + // GenerateName indicates that the name should be made unique by the server prior to persisting + // it. A non-empty value for the field indicates the name will be made unique (and the name + // returned to the client will be different than the name passed). The value of this field will + // be combined with a unique suffix on the server if the Name field has not been provided. + // The provided value must be valid within the rules for Name, and may be truncated by the length + // of the suffix required to make the value unique on the server. + // + // If this field is specified, and Name is not present, the server will NOT return a 409 if the + // generated name exists - instead, it will either return 201 Created or 500 with Reason + // ServerTimeout indicating a unique name could not be found in the time allotted, and the client + // should retry (optionally after the time indicated in the Retry-After header). + GenerateName string `json:"generateName,omitempty"` + + // Namespace defines the space within which name must be unique. An empty namespace is + // equivalent to the "default" namespace, but "default" is the canonical representation. + // Not all objects are required to be scoped to a namespace - the value of this field for + // those objects will be empty. + Namespace string `json:"namespace,omitempty"` + + // SelfLink is a URL representing this object. + SelfLink string `json:"selfLink,omitempty"` + + // UID is the unique in time and space value for this object. It is typically generated by + // the server on successful creation of a resource and is not allowed to change on PUT + // operations. + UID types.UID `json:"uid,omitempty"` + + // An opaque value that represents the version of this resource. May be used for optimistic + // concurrency, change detection, and the watch operation on a resource or set of resources. + // Clients must treat these values as opaque and values may only be valid for a particular + // resource or set of resources. Only servers will generate resource versions. + ResourceVersion string `json:"resourceVersion,omitempty"` + + // A sequence number representing a specific generation of the desired state. + // Populated by the system. Read-only. + Generation int64 `json:"generation,omitempty"` + + // CreationTimestamp is a timestamp representing the server time when this object was + // created. It is not guaranteed to be set in happens-before order across separate operations. + // Clients may not set this value. It is represented in RFC3339 form and is in UTC. + CreationTimestamp unversioned.Time `json:"creationTimestamp,omitempty"` + + // DeletionTimestamp is the time after which this resource will be deleted. This + // field is set by the server when a graceful deletion is requested by the user, and is not + // directly settable by a client. The resource will be deleted (no longer visible from + // resource lists, and not reachable by name) after the time in this field. Once set, this + // value may not be unset or be set further into the future, although it may be shortened + // or the resource may be deleted prior to this time. For example, a user may request that + // a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + // signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet + // will send a hard termination signal to the container. + DeletionTimestamp *unversioned.Time `json:"deletionTimestamp,omitempty"` + + // DeletionGracePeriodSeconds records the graceful deletion value set when graceful deletion + // was requested. Represents the most recent grace period, and may only be shortened once set. + DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` + + // Labels are key value pairs that may be used to scope and select individual resources. + // Label keys are of the form: + // label-key ::= prefixed-name | name + // prefixed-name ::= prefix '/' name + // prefix ::= DNS_SUBDOMAIN + // name ::= DNS_LABEL + // 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 + // external tooling. They are not queryable and should be preserved when modifying + // objects. Annotation keys have the same formatting restrictions as Label keys. See the + // comments on Labels for details. + Annotations map[string]string `json:"annotations,omitempty"` + + // 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. + OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"` + + // 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. + Finalizers []string `json:"finalizers,omitempty"` +} + +const ( + // NamespaceDefault means the object is in the default namespace which is applied when not specified by clients + NamespaceDefault string = "default" + // NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces + NamespaceAll string = "" + // NamespaceNone is the argument for a context when there is no namespace. + NamespaceNone string = "" + // NamespaceSystem is the system namespace where we place system components. + NamespaceSystem string = "kube-system" + // TerminationMessagePathDefault means the default path to capture the application termination message running in a container + TerminationMessagePathDefault string = "/dev/termination-log" +) + +// Volume represents a named volume in a pod that may be accessed by any containers in the pod. +type Volume struct { + // Required: This must be a DNS_LABEL. Each volume in a pod must have + // a unique name. + Name string `json:"name"` + // The VolumeSource represents the location and type of a volume to mount. + // This is optional for now. If not specified, the Volume is implied to be an EmptyDir. + // This implied behavior is deprecated and will be removed in a future version. + VolumeSource `json:",inline,omitempty"` +} + +// VolumeSource represents the source location of a volume to mount. +// Only one of its members may be specified. +type VolumeSource struct { + // HostPath represents file or directory on the host machine that is + // directly exposed to the container. This is generally used for system + // agents or other privileged things that are allowed to see the host + // machine. Most containers will NOT need this. + // --- + // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not + // mount host directories as read/write. + HostPath *HostPathVolumeSource `json:"hostPath,omitempty"` + // EmptyDir represents a temporary directory that shares a pod's lifetime. + EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty"` + // GCEPersistentDisk represents a GCE Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"` + // AWSElasticBlockStore represents an AWS EBS disk that is attached to a + // kubelet's host machine and then exposed to the pod. + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` + // GitRepo represents a git repository at a particular revision. + GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty"` + // Secret represents a secret that should populate this volume. + Secret *SecretVolumeSource `json:"secret,omitempty"` + // NFS represents an NFS mount on the host that shares a pod's lifetime + NFS *NFSVolumeSource `json:"nfs,omitempty"` + // ISCSIVolumeSource represents an ISCSI Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"` + // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime + Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"` + // PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace + 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"` + // 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"` + + // Cinder represents a cinder volume attached and mounted on kubelets host machine + Cinder *CinderVolumeSource `json:"cinder,omitempty"` + + // CephFS represents a Cephfs mount on the host that shares a pod's lifetime + CephFS *CephFSVolumeSource `json:"cephfs,omitempty"` + + // 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"` + + // DownwardAPI represents metadata about the pod that should populate this volume + DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty"` + // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + FC *FCVolumeSource `json:"fc,omitempty"` + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` + // ConfigMap represents a configMap that should populate this volume + ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` + // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` +} + +// Similar to VolumeSource but meant for the administrator who creates PVs. +// Exactly one of its members must be set. +type PersistentVolumeSource struct { + // GCEPersistentDisk represents a GCE Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"` + // AWSElasticBlockStore represents an AWS EBS disk that is attached to a + // kubelet's host machine and then exposed to the pod. + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` + // HostPath represents a directory on the host. + // Provisioned by a developer or tester. + // This is useful for single-node development and testing only! + // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. + HostPath *HostPathVolumeSource `json:"hostPath,omitempty"` + // Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod + Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"` + // NFS represents an NFS mount on the host that shares a pod's lifetime + 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"` + // 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"` + // 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"` + // Cinder represents a cinder volume attached and mounted on kubelets host machine + Cinder *CinderVolumeSource `json:"cinder,omitempty"` + // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + CephFS *CephFSVolumeSource `json:"cephfs,omitempty"` + // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + FC *FCVolumeSource `json:"fc,omitempty"` + // 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"` + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` + // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` +} + +type PersistentVolumeClaimVolumeSource struct { + // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume + ClaimName string `json:"claimName"` + // Optional: Defaults to false (read/write). ReadOnly here + // will force the ReadOnly setting in VolumeMounts + ReadOnly bool `json:"readOnly,omitempty"` +} + +// +genclient=true +// +nonNamespaced=true + +type PersistentVolume struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + //Spec defines a persistent volume owned by the cluster + Spec PersistentVolumeSpec `json:"spec,omitempty"` + + // Status represents the current information about persistent volume. + Status PersistentVolumeStatus `json:"status,omitempty"` +} + +type PersistentVolumeSpec struct { + // Resources represents the actual resources of the volume + Capacity ResourceList `json:"capacity"` + // Source represents the location and type of a volume to mount. + PersistentVolumeSource `json:",inline"` + // AccessModes contains all ways the volume can be mounted + AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` + // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. + // ClaimRef is expected to be non-nil when bound. + // claim.VolumeName is the authoritative bind between PV and PVC. + // When set to non-nil value, PVC.Spec.Selector of the referenced PVC is + // ignored, i.e. labels of this PV do not need to match PVC selector. + ClaimRef *ObjectReference `json:"claimRef,omitempty"` + // Optional: what happens to a persistent volume when released from its claim. + PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"` +} + +// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes +type PersistentVolumeReclaimPolicy string + +const ( + // PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. + // The volume plugin must support Recycling. + PersistentVolumeReclaimRecycle PersistentVolumeReclaimPolicy = "Recycle" + // PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim. + // The volume plugin must support Deletion. + PersistentVolumeReclaimDelete PersistentVolumeReclaimPolicy = "Delete" + // PersistentVolumeReclaimRetain means the volume will be left in its current phase (Released) for manual reclamation by the administrator. + // The default policy is Retain. + PersistentVolumeReclaimRetain PersistentVolumeReclaimPolicy = "Retain" +) + +type PersistentVolumeStatus struct { + // Phase indicates if a volume is available, bound to a claim, or released by a claim + Phase PersistentVolumePhase `json:"phase,omitempty"` + // A human-readable message indicating details about why the volume is in this state. + Message string `json:"message,omitempty"` + // Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI + Reason string `json:"reason,omitempty"` +} + +type PersistentVolumeList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + Items []PersistentVolume `json:"items"` +} + +// +genclient=true + +// PersistentVolumeClaim is a user's request for and claim to a persistent volume +type PersistentVolumeClaim struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the volume requested by a pod author + Spec PersistentVolumeClaimSpec `json:"spec,omitempty"` + + // Status represents the current information about a claim + Status PersistentVolumeClaimStatus `json:"status,omitempty"` +} + +type PersistentVolumeClaimList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + Items []PersistentVolumeClaim `json:"items"` +} + +// PersistentVolumeClaimSpec describes the common attributes of storage devices +// and allows a Source for provider-specific attributes +type PersistentVolumeClaimSpec struct { + // Contains the types of access modes required + AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` + // A label query over volumes to consider for binding. This selector is + // ignored when VolumeName is set + Selector *unversioned.LabelSelector `json:"selector,omitempty"` + // Resources represents the minimum resources required + Resources ResourceRequirements `json:"resources,omitempty"` + // VolumeName is the binding reference to the PersistentVolume backing this + // claim. When set to non-empty value Selector is not evaluated + VolumeName string `json:"volumeName,omitempty"` +} + +type PersistentVolumeClaimStatus struct { + // Phase represents the current phase of PersistentVolumeClaim + Phase PersistentVolumeClaimPhase `json:"phase,omitempty"` + // AccessModes contains all ways the volume backing the PVC can be mounted + AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` + // Represents the actual resources of the underlying volume + Capacity ResourceList `json:"capacity,omitempty"` +} + +type PersistentVolumeAccessMode string + +const ( + // can be mounted read/write mode to exactly 1 host + ReadWriteOnce PersistentVolumeAccessMode = "ReadWriteOnce" + // can be mounted in read-only mode to many hosts + ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany" + // can be mounted in read/write mode to many hosts + ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany" +) + +type PersistentVolumePhase string + +const ( + // used for PersistentVolumes that are not available + VolumePending PersistentVolumePhase = "Pending" + // used for PersistentVolumes that are not yet bound + // Available volumes are held by the binder and matched to PersistentVolumeClaims + VolumeAvailable PersistentVolumePhase = "Available" + // used for PersistentVolumes that are bound + VolumeBound PersistentVolumePhase = "Bound" + // used for PersistentVolumes where the bound PersistentVolumeClaim was deleted + // released volumes must be recycled before becoming available again + // this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource + VolumeReleased PersistentVolumePhase = "Released" + // used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim + VolumeFailed PersistentVolumePhase = "Failed" +) + +type PersistentVolumeClaimPhase string + +const ( + // used for PersistentVolumeClaims that are not yet bound + ClaimPending PersistentVolumeClaimPhase = "Pending" + // used for PersistentVolumeClaims that are bound + ClaimBound PersistentVolumeClaimPhase = "Bound" + // used for PersistentVolumeClaims that lost their underlying + // PersistentVolume. The claim was bound to a PersistentVolume and this + // volume does not exist any longer and all data on it was lost. + ClaimLost PersistentVolumeClaimPhase = "Lost" +) + +// Represents a host path mapped into a pod. +// Host path volumes do not support ownership management or SELinux relabeling. +type HostPathVolumeSource struct { + Path string `json:"path"` +} + +// Represents an empty directory for a pod. +// Empty directory volumes support ownership management and SELinux relabeling. +type EmptyDirVolumeSource struct { + // TODO: Longer term we want to represent the selection of underlying + // media more like a scheduling problem - user says what traits they + // need, we give them a backing store that satisfies that. For now + // this will cover the most common needs. + // Optional: what type of storage medium should back this directory. + // The default is "" which means to use the node's default medium. + Medium StorageMedium `json:"medium,omitempty"` +} + +// StorageMedium defines ways that storage can be allocated to a volume. +type StorageMedium string + +const ( + StorageMediumDefault StorageMedium = "" // use whatever the default is for the node + StorageMediumMemory StorageMedium = "Memory" // use memory (tmpfs) +) + +// Protocol defines network protocols supported for things like container ports. +type Protocol string + +const ( + // ProtocolTCP is the TCP protocol. + ProtocolTCP Protocol = "TCP" + // ProtocolUDP is the UDP protocol. + ProtocolUDP Protocol = "UDP" +) + +// Represents a Persistent Disk resource in Google Compute Engine. +// +// A GCE PD must exist before mounting to a container. The disk must +// also be in the same GCE project and zone as the kubelet. A GCE PD +// can only be mounted as read/write once or read-only many times. GCE +// PDs support ownership management and SELinux relabeling. +type GCEPersistentDiskVolumeSource struct { + // Unique name of the PD resource. Used to identify the disk in GCE + PDName string `json:"pdName"` + // 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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty"` + // Optional: Partition on the disk to mount. + // If omitted, kubelet will attempt to mount the device name. + // Ex. For /dev/sda1, this field is "1", for /dev/sda, this field is 0 or empty. + Partition int32 `json:"partition,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents an ISCSI disk. +// ISCSI volumes can only be mounted as read/write once. +// ISCSI volumes support ownership management and SELinux relabeling. +type ISCSIVolumeSource struct { + // Required: iSCSI target portal + // the portal is either an IP or ip_addr:port if port is other than default (typically TCP ports 860 and 3260) + TargetPortal string `json:"targetPortal,omitempty"` + // Required: target iSCSI Qualified Name + IQN string `json:"iqn,omitempty"` + // Required: iSCSI target lun number + Lun int32 `json:"lun,omitempty"` + // Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + ISCSIInterface string `json:"iscsiInterface,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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a Fibre Channel volume. +// Fibre Channel volumes can only be mounted as read/write once. +// Fibre Channel volumes support ownership management and SELinux relabeling. +type FCVolumeSource struct { + // Required: FC target world wide names (WWNs) + TargetWWNs []string `json:"targetWWNs"` + // Required: FC target lun number + Lun *int32 `json:"lun"` + // 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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,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. +type FlexVolumeSource struct { + // Driver is the name of the driver to use for this volume. + Driver string `json:"driver"` + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + FSType string `json:"fsType,omitempty"` + // Optional: SecretRef is reference to the secret object containing + // sensitive information to pass to the plugin scripts. This may be + // empty if no secret object is specified. If the secret object + // contains more than one secret, all secrets are passed to the plugin + // scripts. + SecretRef *LocalObjectReference `json:"secretRef,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` + // Optional: Extra driver options if any. + Options map[string]string `json:"options,omitempty"` +} + +// Represents a Persistent Disk resource in AWS. +// +// An AWS EBS disk must exist before mounting to a container. The disk +// must also be in the same AWS zone as the kubelet. A AWS EBS disk +// can only be mounted as read/write once. AWS EBS volumes support +// ownership management and SELinux relabeling. +type AWSElasticBlockStoreVolumeSource struct { + // Unique id of the persistent disk resource. Used to identify the disk in AWS + VolumeID string `json:"volumeID"` + // 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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty"` + // Optional: Partition on the disk to mount. + // If omitted, kubelet will attempt to mount the device name. + // Ex. For /dev/sda1, this field is "1", for /dev/sda, this field is 0 or empty. + Partition int32 `json:"partition,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a volume that is populated with the contents of a git repository. +// Git repo volumes do not support ownership management. +// Git repo volumes support SELinux relabeling. +type GitRepoVolumeSource struct { + // Repository URL + Repository string `json:"repository"` + // Commit hash, this is optional + Revision string `json:"revision,omitempty"` + // Clone target, this is optional + // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the + // git repository. Otherwise, if specified, the volume will contain the git repository in + // the subdirectory with the given name. + Directory string `json:"directory,omitempty"` + // TODO: Consider credentials here. +} + +// Adapts a Secret into a volume. +// +// The 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. +type SecretVolumeSource struct { + // Name of the secret in the pod's namespace to use. + SecretName string `json:"secretName,omitempty"` + // 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 '..'. + Items []KeyToPath `json:"items,omitempty"` +} + +// Represents an NFS mount that lasts the lifetime of a pod. +// NFS volumes do not support ownership management or SELinux relabeling. +type NFSVolumeSource struct { + // Server is the hostname or IP address of the NFS server + Server string `json:"server"` + + // Path is the exported NFS share + Path string `json:"path"` + + // Optional: Defaults to false (read/write). ReadOnly here will force + // the NFS export to be mounted with read-only permissions + ReadOnly bool `json:"readOnly,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 { + // Required: EndpointsName is the endpoint name that details Glusterfs topology + EndpointsName string `json:"endpoints"` + + // Required: Path is the Glusterfs volume path + Path string `json:"path"` + + // Optional: Defaults to false (read/write). ReadOnly here will force + // the Glusterfs to be mounted with read-only permissions + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a Rados Block Device mount that lasts the lifetime of a pod. +// RBD volumes support ownership management and SELinux relabeling. +type RBDVolumeSource struct { + // Required: CephMonitors is a collection of Ceph monitors + CephMonitors []string `json:"monitors"` + // Required: RBDImage is the rados image name + RBDImage string `json:"image"` + // 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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty"` + // Optional: RadosPool is the rados pool name,default is rbd + RBDPool string `json:"pool,omitempty"` + // Optional: RBDUser is the rados user name, default is admin + RadosUser string `json:"user,omitempty"` + // Optional: Keyring is the path to key ring for RBDUser, default is /etc/ceph/keyring + Keyring string `json:"keyring,omitempty"` + // Optional: SecretRef is name of the authentication secret for RBDUser, default is nil. + SecretRef *LocalObjectReference `json:"secretRef,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a cinder volume resource in Openstack. A Cinder volume +// must exist before mounting to a container. The volume must also be +// in the same region as the kubelet. Cinder volumes support ownership +// management and SELinux relabeling. +type CinderVolumeSource struct { + // Unique id of the volume used to identify the cinder volume + VolumeID string `json:"volumeID"` + // 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"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a Ceph Filesystem mount that lasts the lifetime of a pod +// Cephfs volumes do not support ownership management or SELinux relabeling. +type CephFSVolumeSource struct { + // Required: Monitors is a collection of Ceph monitors + Monitors []string `json:"monitors"` + // Optional: Used as the mounted root, rather than the full Ceph tree, default is / + Path string `json:"path,omitempty"` + // Optional: User is the rados user name, default is admin + User string `json:"user,omitempty"` + // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + SecretFile string `json:"secretFile,omitempty"` + // Optional: SecretRef is reference to the authentication secret for User, default is empty. + SecretRef *LocalObjectReference `json:"secretRef,omitempty"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a Flocker volume mounted by the Flocker agent. +// Flocker volumes do not support ownership management or SELinux relabeling. +type FlockerVolumeSource struct { + // Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker + DatasetName string `json:"datasetName"` +} + +// Represents a volume containing downward API info. +// Downward API volumes support ownership management and SELinux relabeling. +type DownwardAPIVolumeSource struct { + // Items is a list of DownwardAPIVolume file + Items []DownwardAPIVolumeFile `json:"items,omitempty"` +} + +// Represents a single file containing information from the downward API +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 '..' + Path string `json:"path"` + // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + 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. + ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty"` +} + +// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. +type AzureFileVolumeSource struct { + // the name of secret that contains Azure Storage Account Name and Key + SecretName string `json:"secretName"` + // Share Name + ShareName string `json:"shareName"` + // Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty"` +} + +// Represents a vSphere volume resource. +type VsphereVirtualDiskVolumeSource struct { + // Path that identifies vSphere volume vmdk + VolumePath string `json:"volumePath"` + // 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"` +} + +// Adapts a ConfigMap into a volume. +// +// The 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. +type ConfigMapVolumeSource struct { + LocalObjectReference `json:",inline"` + // 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 '..'. + Items []KeyToPath `json:"items,omitempty"` +} + +// Maps a string key to a path within a volume. +type KeyToPath struct { + // The key to project. + Key string `json:"key"` + + // 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 '..'. + Path string `json:"path"` +} + +// ContainerPort represents a network port in a single container +type ContainerPort struct { + // Optional: If specified, this must be an IANA_SVC_NAME Each named port + // in a pod must have a unique name. + Name string `json:"name,omitempty"` + // Optional: If specified, this must be a valid port number, 0 < x < 65536. + // If HostNetwork is specified, this must match ContainerPort. + HostPort int32 `json:"hostPort,omitempty"` + // Required: This must be a valid port number, 0 < x < 65536. + ContainerPort int32 `json:"containerPort"` + // Required: Supports "TCP" and "UDP". + Protocol Protocol `json:"protocol,omitempty"` + // Optional: What host IP to bind the external port to. + HostIP string `json:"hostIP,omitempty"` +} + +// VolumeMount describes a mounting of a Volume within a container. +type VolumeMount struct { + // Required: This must match the Name of a Volume [above]. + Name string `json:"name"` + // Optional: Defaults to false (read-write). + ReadOnly bool `json:"readOnly,omitempty"` + // Required. Must not contain ':'. + MountPath string `json:"mountPath"` + // Path within the volume from which the container's volume should be mounted. + // Defaults to "" (volume's root). + SubPath string `json:"subPath,omitempty"` +} + +// EnvVar represents an environment variable present in a Container. +type EnvVar struct { + // Required: This must be a C_IDENTIFIER. + Name string `json:"name"` + // Optional: no more than one of the following may be specified. + // Optional: Defaults to ""; variable references $(VAR_NAME) are expanded + // using the previous defined environment variables in the container and + // any service environment variables. If a variable cannot be resolved, + // the reference in the input string will be unchanged. The $(VAR_NAME) + // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + // references will never be expanded, regardless of whether the variable + // exists or not. + Value string `json:"value,omitempty"` + // Optional: Specifies a source the value of this var should come from. + ValueFrom *EnvVarSource `json:"valueFrom,omitempty"` +} + +// 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. + 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. + ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty"` + // Selects a key of a ConfigMap. + ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` + // Selects a key of a secret in the pod's namespace. + SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"` +} + +// ObjectFieldSelector selects an APIVersioned field of an object. +type ObjectFieldSelector struct { + // Required: Version of the schema the FieldPath is written in terms of. + // If no value is specified, it will be defaulted to the APIVersion of the + // enclosing object. + APIVersion string `json:"apiVersion"` + // Required: Path of the field to select in the specified API version + FieldPath string `json:"fieldPath"` +} + +// ResourceFieldSelector represents container resources (cpu, memory) and their output format +type ResourceFieldSelector struct { + // Container name: required for volumes, optional for env vars + ContainerName string `json:"containerName,omitempty"` + // Required: resource to select + Resource string `json:"resource"` + // Specifies the output format of the exposed resources, defaults to "1" + Divisor resource.Quantity `json:"divisor,omitempty"` +} + +// Selects a key from a ConfigMap. +type ConfigMapKeySelector struct { + // The ConfigMap to select from. + LocalObjectReference `json:",inline"` + // The key to select. + Key string `json:"key"` +} + +// SecretKeySelector selects a key of a Secret. +type SecretKeySelector struct { + // The name of the secret in the pod's namespace to select from. + LocalObjectReference `json:",inline"` + // The key of the secret to select from. Must be a valid secret key. + Key string `json:"key"` +} + +// HTTPHeader describes a custom header to be used in HTTP probes +type HTTPHeader struct { + // The header field name + Name string `json:"name"` + // The header field value + Value string `json:"value"` +} + +// HTTPGetAction describes an action based on HTTP Get requests. +type HTTPGetAction struct { + // Optional: Path to access on the HTTP server. + Path string `json:"path,omitempty"` + // Required: Name or number of the port to access on the container. + Port intstr.IntOrString `json:"port,omitempty"` + // Optional: Host name to connect to, defaults to the pod IP. You + // probably want to set "Host" in httpHeaders instead. + Host string `json:"host,omitempty"` + // Optional: Scheme to use for connecting to the host, defaults to HTTP. + Scheme URIScheme `json:"scheme,omitempty"` + // Optional: Custom headers to set in the request. HTTP allows repeated headers. + HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"` +} + +// URIScheme identifies the scheme used for connection to a host for Get actions +type URIScheme string + +const ( + // URISchemeHTTP means that the scheme used will be http:// + URISchemeHTTP URIScheme = "HTTP" + // URISchemeHTTPS means that the scheme used will be https:// + URISchemeHTTPS URIScheme = "HTTPS" +) + +// TCPSocketAction describes an action based on opening a socket +type TCPSocketAction struct { + // Required: Port to connect to. + Port intstr.IntOrString `json:"port,omitempty"` +} + +// ExecAction describes a "run in container" action. +type ExecAction struct { + // Command is the command line to execute inside the container, the working directory for the + // command is root ('/') in the container's filesystem. The command is simply exec'd, it is + // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use + // a shell, you need to explicitly call out to that shell. + Command []string `json:"command,omitempty"` +} + +// Probe describes a health check to be performed against a container to determine whether it is +// alive or ready to receive traffic. +type Probe struct { + // The action taken to determine the health of a container + Handler `json:",inline"` + // Length of time before health checking is activated. In seconds. + InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"` + // Length of time before health checking times out. In seconds. + TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"` + // How often (in seconds) to perform the probe. + PeriodSeconds int32 `json:"periodSeconds,omitempty"` + // Minimum consecutive successes for the probe to be considered successful after having failed. + // Must be 1 for liveness. + SuccessThreshold int32 `json:"successThreshold,omitempty"` + // Minimum consecutive failures for the probe to be considered failed after having succeeded. + FailureThreshold int32 `json:"failureThreshold,omitempty"` +} + +// PullPolicy describes a policy for if/when to pull a container image +type PullPolicy string + +const ( + // PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + PullAlways PullPolicy = "Always" + // PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + PullNever PullPolicy = "Never" + // PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + PullIfNotPresent PullPolicy = "IfNotPresent" +) + +// Capability represent POSIX capabilities type +type Capability string + +// Capabilities represent POSIX capabilities that can be added or removed to a running container. +type Capabilities struct { + // Added capabilities + Add []Capability `json:"add,omitempty"` + // Removed capabilities + Drop []Capability `json:"drop,omitempty"` +} + +// ResourceRequirements describes the compute resource requirements. +type ResourceRequirements struct { + // Limits describes the maximum amount of compute resources allowed. + Limits ResourceList `json:"limits,omitempty"` + // Requests describes the minimum amount of compute resources required. + // If Request is omitted for a container, it defaults to Limits if that is explicitly specified, + // otherwise to an implementation-defined value + Requests ResourceList `json:"requests,omitempty"` +} + +// Container represents a single container that is expected to be run on the host. +type Container struct { + // Required: This must be a DNS_LABEL. Each container in a pod must + // have a unique name. + Name string `json:"name"` + // Required. + Image string `json:"image"` + // Optional: The docker image's entrypoint is used if this is not provided; cannot be updated. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + Command []string `json:"command,omitempty"` + // Optional: The docker image's cmd is used if this is not provided; cannot be updated. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + Args []string `json:"args,omitempty"` + // Optional: Defaults to Docker's default. + WorkingDir string `json:"workingDir,omitempty"` + Ports []ContainerPort `json:"ports,omitempty"` + Env []EnvVar `json:"env,omitempty"` + // Compute resource requirements. + Resources ResourceRequirements `json:"resources,omitempty"` + VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` + LivenessProbe *Probe `json:"livenessProbe,omitempty"` + ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + Lifecycle *Lifecycle `json:"lifecycle,omitempty"` + // Required. + TerminationMessagePath string `json:"terminationMessagePath,omitempty"` + // Required: Policy for pulling images for this container + ImagePullPolicy PullPolicy `json:"imagePullPolicy"` + // Optional: SecurityContext defines the security options the container should be run with. + // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. + SecurityContext *SecurityContext `json:"securityContext,omitempty"` + + // Variables for interactive containers, these have very specialized use-cases (e.g. debugging) + // and shouldn't be used for general purpose containers. + Stdin bool `json:"stdin,omitempty"` + StdinOnce bool `json:"stdinOnce,omitempty"` + TTY bool `json:"tty,omitempty"` +} + +// Handler defines a specific action that should be taken +// TODO: pass structured data to these actions, and document that data here. +type Handler struct { + // One and only one of the following should be specified. + // Exec specifies the action to take. + Exec *ExecAction `json:"exec,omitempty"` + // HTTPGet specifies the http request to perform. + HTTPGet *HTTPGetAction `json:"httpGet,omitempty"` + // TCPSocket specifies an action involving a TCP port. + // TODO: implement a realistic TCP lifecycle hook + TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"` +} + +// Lifecycle describes actions that the management system should take in response to container lifecycle +// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks +// until the action is complete, unless the container process fails, in which case the handler is aborted. +type Lifecycle struct { + // PostStart is called immediately after a container is created. If the handler fails, the container + // is terminated and restarted. + PostStart *Handler `json:"postStart,omitempty"` + // PreStop is called immediately before a container is terminated. The reason for termination is + // passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. + PreStop *Handler `json:"preStop,omitempty"` +} + +// The below types are used by kube_client and api_server. + +type ConditionStatus string + +// These are valid condition statuses. "ConditionTrue" means a resource is in the condition; +// "ConditionFalse" means a resource is not in the condition; "ConditionUnknown" means kubernetes +// can't decide if a resource is in the condition or not. In the future, we could add other +// intermediate conditions, e.g. ConditionDegraded. +const ( + ConditionTrue ConditionStatus = "True" + ConditionFalse ConditionStatus = "False" + ConditionUnknown ConditionStatus = "Unknown" +) + +type ContainerStateWaiting struct { + // A brief CamelCase string indicating details about why the container is in waiting state. + Reason string `json:"reason,omitempty"` + // A human-readable message indicating details about why the container is in waiting state. + Message string `json:"message,omitempty"` +} + +type ContainerStateRunning struct { + StartedAt unversioned.Time `json:"startedAt,omitempty"` +} + +type ContainerStateTerminated struct { + ExitCode int32 `json:"exitCode"` + Signal int32 `json:"signal,omitempty"` + Reason string `json:"reason,omitempty"` + Message string `json:"message,omitempty"` + StartedAt unversioned.Time `json:"startedAt,omitempty"` + FinishedAt unversioned.Time `json:"finishedAt,omitempty"` + ContainerID string `json:"containerID,omitempty"` +} + +// ContainerState holds a possible state of container. +// Only one of its members may be specified. +// If none of them is specified, the default one is ContainerStateWaiting. +type ContainerState struct { + Waiting *ContainerStateWaiting `json:"waiting,omitempty"` + Running *ContainerStateRunning `json:"running,omitempty"` + Terminated *ContainerStateTerminated `json:"terminated,omitempty"` +} + +type ContainerStatus struct { + // Each container in a pod must have a unique name. + Name string `json:"name"` + State ContainerState `json:"state,omitempty"` + LastTerminationState ContainerState `json:"lastState,omitempty"` + // Ready specifies whether the container has passed its readiness check. + Ready bool `json:"ready"` + // Note that this is calculated from dead containers. But those containers are subject to + // garbage collection. This value will get capped at 5 by GC. + RestartCount int32 `json:"restartCount"` + Image string `json:"image"` + ImageID string `json:"imageID"` + ContainerID string `json:"containerID,omitempty"` +} + +// PodPhase is a label for the condition of a pod at the current time. +type PodPhase string + +// These are the valid statuses of pods. +const ( + // PodPending means the pod has been accepted by the system, but one or more of the containers + // has not been started. This includes time before being bound to a node, as well as time spent + // pulling images onto the host. + PodPending PodPhase = "Pending" + // PodRunning means the pod has been bound to a node and all of the containers have been started. + // At least one container is still running or is in the process of being restarted. + PodRunning PodPhase = "Running" + // PodSucceeded means that all containers in the pod have voluntarily terminated + // with a container exit code of 0, and the system is not going to restart any of these containers. + PodSucceeded PodPhase = "Succeeded" + // PodFailed means that all containers in the pod have terminated, and at least one container has + // terminated in a failure (exited with a non-zero exit code or was stopped by the system). + PodFailed PodPhase = "Failed" + // PodUnknown means that for some reason the state of the pod could not be obtained, typically due + // to an error in communicating with the host of the pod. + PodUnknown PodPhase = "Unknown" +) + +type PodConditionType string + +// These are valid conditions of pod. +const ( + // PodScheduled represents status of the scheduling process for this pod. + PodScheduled PodConditionType = "PodScheduled" + // PodReady means the pod is able to service requests and should be added to the + // load balancing pools of all matching services. + PodReady PodConditionType = "Ready" + // PodInitialized means that all init containers in the pod have started successfully. + PodInitialized PodConditionType = "Initialized" +) + +type PodCondition struct { + Type PodConditionType `json:"type"` + Status ConditionStatus `json:"status"` + LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"` + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + Reason string `json:"reason,omitempty"` + Message string `json:"message,omitempty"` +} + +// RestartPolicy describes how the container should be restarted. +// Only one of the following restart policies may be specified. +// If none of the following policies is specified, the default one +// is RestartPolicyAlways. +type RestartPolicy string + +const ( + RestartPolicyAlways RestartPolicy = "Always" + RestartPolicyOnFailure RestartPolicy = "OnFailure" + RestartPolicyNever RestartPolicy = "Never" +) + +// PodList is a list of Pods. +type PodList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Pod `json:"items"` +} + +// DNSPolicy defines how a pod's DNS will be configured. +type DNSPolicy string + +const ( + // DNSClusterFirst indicates that the pod should use cluster DNS + // first, if it is available, then fall back on the default (as + // determined by kubelet) DNS settings. + DNSClusterFirst DNSPolicy = "ClusterFirst" + + // DNSDefault indicates that the pod should use the default (as + // determined by kubelet) DNS settings. + DNSDefault DNSPolicy = "Default" +) + +// A node selector represents the union of the results of one or more label queries +// over a set of nodes; that is, it represents the OR of the selectors represented +// by the node selector terms. +type NodeSelector struct { + //Required. A list of node selector terms. The terms are ORed. + NodeSelectorTerms []NodeSelectorTerm `json:"nodeSelectorTerms"` +} + +// A null or empty node selector term matches no objects. +type NodeSelectorTerm struct { + //Required. A list of node selector requirements. The requirements are ANDed. + MatchExpressions []NodeSelectorRequirement `json:"matchExpressions"` +} + +// A node selector requirement is a selector that contains values, a key, and an operator +// that relates the key and values. +type NodeSelectorRequirement struct { + // The label key that the selector applies to. + Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"` + // Represents a key's relationship to a set of values. + // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + Operator NodeSelectorOperator `json:"operator"` + // An array of string values. If the operator is In or NotIn, + // the values array must be non-empty. If the operator is Exists or DoesNotExist, + // the values array must be empty. If the operator is Gt or Lt, the values + // array must have a single element, which will be interpreted as an integer. + // This array is replaced during a strategic merge patch. + Values []string `json:"values,omitempty"` +} + +// A node selector operator is the set of operators that can be used in +// a node selector requirement. +type NodeSelectorOperator string + +const ( + NodeSelectorOpIn NodeSelectorOperator = "In" + NodeSelectorOpNotIn NodeSelectorOperator = "NotIn" + NodeSelectorOpExists NodeSelectorOperator = "Exists" + NodeSelectorOpDoesNotExist NodeSelectorOperator = "DoesNotExist" + NodeSelectorOpGt NodeSelectorOperator = "Gt" + NodeSelectorOpLt NodeSelectorOperator = "Lt" +) + +// Affinity is a group of affinity scheduling rules. +type Affinity struct { + // Describes node affinity scheduling rules for the pod. + NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"` + // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + PodAffinity *PodAffinity `json:"podAffinity,omitempty"` + // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"` +} + +// Pod affinity is a group of inter pod affinity scheduling rules. +type PodAffinity struct { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system will try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system may or may not try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + // The scheduler will prefer to schedule pods to nodes that satisfy + // the affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// Pod anti affinity is a group of inter pod anti affinity scheduling rules. +type PodAntiAffinity struct { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the anti-affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the anti-affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system will try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + // If the anti-affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the anti-affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system may or may not try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + // The scheduler will prefer to schedule pods to nodes that satisfy + // the anti-affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling anti-affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) +type WeightedPodAffinityTerm struct { + // weight associated with matching the corresponding podAffinityTerm, + // in the range 1-100. + Weight int `json:"weight"` + // Required. A pod affinity term, associated with the corresponding weight. + PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm"` +} + +// Defines a set of pods (namely those matching the labelSelector +// relative to the given namespace(s)) that this pod should be +// co-located (affinity) or not co-located (anti-affinity) with, +// where co-located is defined as running on a node whose value of +// the label with key matches that of any node on which +// a pod of the set of pods is running. +type PodAffinityTerm struct { + // A label query over a set of resources, in this case pods. + LabelSelector *unversioned.LabelSelector `json:"labelSelector,omitempty"` + // namespaces specifies which namespaces the labelSelector applies to (matches against); + // nil list means "this pod's namespace," empty list means "all namespaces" + // The json tag here is not "omitempty" since we need to distinguish nil and empty. + // See https://golang.org/pkg/encoding/json/#Marshal for more details. + Namespaces []string `json:"namespaces"` + // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + // the labelSelector in the specified namespaces, where co-located is defined as running on a node + // whose value of the label with key topologyKey matches that of any node on which any of the + // selected pods is running. + // For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies" + // ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); + // for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. + TopologyKey string `json:"topologyKey,omitempty"` +} + +// Node affinity is a group of node affinity scheduling rules. +type NodeAffinity struct { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to an update), the system + // will try to eventually evict the pod from its node. + // RequiredDuringSchedulingRequiredDuringExecution *NodeSelector `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to an update), the system + // may or may not try to eventually evict the pod from its node. + RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + // The scheduler will prefer to schedule pods to nodes that satisfy + // the affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node matches the corresponding matchExpressions; the + // node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// An empty preferred scheduling term matches all objects with implicit weight 0 +// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). +type PreferredSchedulingTerm struct { + // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + Weight int32 `json:"weight"` + // A node selector term, associated with the corresponding weight. + Preference NodeSelectorTerm `json:"preference"` +} + +// The node this Taint is attached to has the effect "effect" on +// any pod that that does not tolerate the Taint. +type Taint struct { + // Required. The taint key to be applied to a node. + Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"` + // Required. The taint value corresponding to the taint key. + Value string `json:"value,omitempty"` + // Required. The effect of the taint on pods + // that do not tolerate the taint. + // Valid effects are NoSchedule and PreferNoSchedule. + Effect TaintEffect `json:"effect"` +} + +type TaintEffect string + +const ( + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // but allow all pods submitted to Kubelet without going through the scheduler + // to start, and allow all already-running pods to continue running. + // Enforced by the scheduler. + TaintEffectNoSchedule TaintEffect = "NoSchedule" + // Like TaintEffectNoSchedule, but the scheduler tries not to schedule + // new pods onto the node, rather than prohibiting new pods from scheduling + // onto the node entirely. Enforced by the scheduler. + TaintEffectPreferNoSchedule TaintEffect = "PreferNoSchedule" + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // do not allow pods to start on Kubelet unless they tolerate the taint, + // but allow all already-running pods to continue running. + // Enforced by the scheduler and Kubelet. + // TaintEffectNoScheduleNoAdmit TaintEffect = "NoScheduleNoAdmit" + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // do not allow pods to start on Kubelet unless they tolerate the taint, + // and evict any already-running pods that do not tolerate the taint. + // Enforced by the scheduler and Kubelet. + // TaintEffectNoScheduleNoAdmitNoExecute = "NoScheduleNoAdmitNoExecute" +) + +// The pod this Toleration is attached to tolerates any taint that matches +// the triple using the matching operator . +type Toleration struct { + // Required. Key is the taint key that the toleration applies to. + Key string `json:"key,omitempty" patchStrategy:"merge" patchMergeKey:"key"` + // operator represents a key's relationship to the value. + // Valid operators are Exists and Equal. Defaults to Equal. + // Exists is equivalent to wildcard for value, so that a pod can + // tolerate all taints of a particular category. + Operator TolerationOperator `json:"operator,omitempty"` + // Value is the taint value the toleration matches to. + // If the operator is Exists, the value should be empty, otherwise just a regular string. + Value string `json:"value,omitempty"` + // Effect indicates the taint effect to match. Empty means match all taint effects. + // When specified, allowed values are NoSchedule and PreferNoSchedule. + Effect TaintEffect `json:"effect,omitempty"` + // TODO: For forgiveness (#1574), we'd eventually add at least a grace period + // here, and possibly an occurrence threshold and period. +} + +// A toleration operator is the set of operators that can be used in a toleration. +type TolerationOperator string + +const ( + TolerationOpExists TolerationOperator = "Exists" + TolerationOpEqual TolerationOperator = "Equal" +) + +// PodSpec is a description of a pod +type PodSpec struct { + Volumes []Volume `json:"volumes"` + // List of initialization containers belonging to the pod. + InitContainers []Container `json:"-"` + // List of containers belonging to the pod. + Containers []Container `json:"containers"` + RestartPolicy RestartPolicy `json:"restartPolicy,omitempty"` + // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. + // Value must be non-negative integer. The value zero indicates delete immediately. + // If this value is nil, the default grace period will be used instead. + // The grace period is the duration in seconds after the processes running in the pod are sent + // a termination signal and the time when the processes are forcibly halted with a kill signal. + // Set this value longer than the expected cleanup time for your process. + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + // Optional duration in seconds relative to the StartTime that the pod may be active on a node + // before the system actively tries to terminate the pod; value must be positive integer + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + // Required: Set DNS policy. + DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty"` + // NodeSelector is a selector which must be true for the pod to fit on a node + NodeSelector map[string]string `json:"nodeSelector,omitempty"` + + // ServiceAccountName is the name of the ServiceAccount to use to run this pod + // The pod will be allowed to use secrets referenced by the ServiceAccount + ServiceAccountName string `json:"serviceAccountName"` + + // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + // the scheduler simply schedules this pod onto that node, assuming that it fits resource + // requirements. + NodeName string `json:"nodeName,omitempty"` + // SecurityContext holds pod-level security attributes and common container settings. + // Optional: Defaults to empty. See type description for default values of each field. + SecurityContext *PodSecurityContext `json:"securityContext,omitempty"` + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // If specified, these secrets will be passed to individual puller implementations for them to use. For example, + // in the case of docker, only DockerConfig type secrets are honored. + ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"` + // Specifies the hostname of the Pod. + // If not specified, the pod's hostname will be set to a system-defined value. + Hostname string `json:"hostname,omitempty"` + // If specified, the fully qualified Pod hostname will be "...svc.". + // If not specified, the pod will not have a domainname at all. + Subdomain string `json:"subdomain,omitempty"` +} + +// 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. +type PodSecurityContext struct { + // Use the host's network namespace. If this option is set, the ports that will be + // used must be specified. + // Optional: Default to false + // +k8s:conversion-gen=false + HostNetwork bool `json:"hostNetwork,omitempty"` + // Use the host's pid namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + HostPID bool `json:"hostPID,omitempty"` + // Use the host's ipc namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + HostIPC bool `json:"hostIPC,omitempty"` + // The SELinux context to be applied to all containers. + // If unspecified, the container runtime will allocate a random SELinux context for each + // container. May also be set in SecurityContext. If set in + // both SecurityContext and PodSecurityContext, the value specified in SecurityContext + // takes precedence for that container. + SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"` + // The UID to run the entrypoint of the container process. + // Defaults to user specified in image metadata if unspecified. + // May also be set in SecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence + // for that container. + RunAsUser *int64 `json:"runAsUser,omitempty"` + // Indicates that the container must run as a non-root user. + // If true, the Kubelet will validate the image at runtime to ensure that it + // does not run as UID 0 (root) and fail to start the container if it does. + // If unset or false, no such validation will be performed. + // May also be set in SecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + // A list of groups applied to the first process run in each container, in addition + // to the container's primary GID. If unspecified, no groups will be added to + // any container. + SupplementalGroups []int64 `json:"supplementalGroups,omitempty"` + // A special supplemental group that applies to all containers in a pod. + // Some volume types allow the Kubelet to change the ownership of that volume + // to be owned by the pod: + // + // 1. The owning GID will be the FSGroup + // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + // 3. The permission bits are OR'd with rw-rw---- + // + // If unset, the Kubelet will not modify the ownership and permissions of any volume. + FSGroup *int64 `json:"fsGroup,omitempty"` +} + +// PodStatus represents information about the status of a pod. Status may trail the actual +// state of a system. +type PodStatus struct { + Phase PodPhase `json:"phase,omitempty"` + Conditions []PodCondition `json:"conditions,omitempty"` + // A human readable message indicating details about why the pod is in this state. + Message string `json:"message,omitempty"` + // A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' + Reason string `json:"reason,omitempty"` + + HostIP string `json:"hostIP,omitempty"` + PodIP string `json:"podIP,omitempty"` + + // Date and time at which the object was acknowledged by the Kubelet. + // This is before the Kubelet pulled the container image(s) for the pod. + StartTime *unversioned.Time `json:"startTime,omitempty"` + + // The list has one entry per init container in the manifest. The most recent successful + // init container will have ready = true, the most recently started container will have + // startTime set. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-statuses + InitContainerStatuses []ContainerStatus `json:"-"` + // The list has one entry per container in the manifest. Each entry is + // currently the output of `docker inspect`. This output format is *not* + // final and should not be relied upon. + // TODO: Make real decisions about what our info should look like. Re-enable fuzz test + // when we have done this. + ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty"` +} + +// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded +type PodStatusResult struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + // Status represents the current information about a pod. This data may not be up + // to date. + Status PodStatus `json:"status,omitempty"` +} + +// +genclient=true + +// Pod is a collection of containers, used as either input (create, update) or as output (list, get). +type Pod struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the behavior of a pod. + Spec PodSpec `json:"spec,omitempty"` + + // Status represents the current information about a pod. This data may not be up + // to date. + Status PodStatus `json:"status,omitempty"` +} + +// PodTemplateSpec describes the data a pod should have when created from a template +type PodTemplateSpec struct { + // Metadata of the pods created from this template. + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the behavior of a pod. + Spec PodSpec `json:"spec,omitempty"` +} + +// +genclient=true + +// PodTemplate describes a template for creating copies of a predefined pod. +type PodTemplate struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Template defines the pods that will be created from this pod template + Template PodTemplateSpec `json:"template,omitempty"` +} + +// PodTemplateList is a list of PodTemplates. +type PodTemplateList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []PodTemplate `json:"items"` +} + +// ReplicationControllerSpec is the specification of a replication controller. +// As the internal representation of a replication controller, it may have either +// a TemplateRef or a Template set. +type ReplicationControllerSpec struct { + // Replicas is the number of desired replicas. + Replicas int32 `json:"replicas"` + + // Selector is a label query over pods that should match the Replicas count. + Selector map[string]string `json:"selector"` + + // TemplateRef is a reference to an object that describes the pod that will be created if + // insufficient replicas are detected. This reference is ignored if a Template is set. + // Must be set before converting to a versioned API object + //TemplateRef *ObjectReference `json:"templateRef,omitempty"` + + // Template is the object that describes the pod that will be created if + // insufficient replicas are detected. Internally, this takes precedence over a + // TemplateRef. + Template *PodTemplateSpec `json:"template,omitempty"` +} + +// ReplicationControllerStatus represents the current status of a replication +// controller. +type ReplicationControllerStatus struct { + // Replicas is the number of actual replicas. + Replicas int32 `json:"replicas"` + + // The number of pods that have labels matching the labels of the pod template of the replication controller. + FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` + + // ObservedGeneration is the most recent generation observed by the controller. + ObservedGeneration int64 `json:"observedGeneration,omitempty"` +} + +// +genclient=true + +// ReplicationController represents the configuration of a replication controller. +type ReplicationController struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the desired behavior of this replication controller. + Spec ReplicationControllerSpec `json:"spec,omitempty"` + + // Status is the current status of this replication controller. This data may be + // out of date by some window of time. + Status ReplicationControllerStatus `json:"status,omitempty"` +} + +// ReplicationControllerList is a collection of replication controllers. +type ReplicationControllerList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []ReplicationController `json:"items"` +} + +const ( + // ClusterIPNone - do not assign a cluster IP + // no proxying required and no environment variables should be created for pods + ClusterIPNone = "None" +) + +// ServiceList holds a list of services. +type ServiceList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Service `json:"items"` +} + +// Session Affinity Type string +type ServiceAffinity string + +const ( + // ServiceAffinityClientIP is the Client IP based. + ServiceAffinityClientIP ServiceAffinity = "ClientIP" + + // ServiceAffinityNone - no session affinity. + ServiceAffinityNone ServiceAffinity = "None" +) + +// Service Type string describes ingress methods for a service +type ServiceType string + +const ( + // ServiceTypeClusterIP means a service will only be accessible inside the + // cluster, via the ClusterIP. + ServiceTypeClusterIP ServiceType = "ClusterIP" + + // ServiceTypeNodePort means a service will be exposed on one port of + // every node, in addition to 'ClusterIP' type. + ServiceTypeNodePort ServiceType = "NodePort" + + // ServiceTypeLoadBalancer means a service will be exposed via an + // external load balancer (if the cloud provider supports it), in addition + // to 'NodePort' type. + ServiceTypeLoadBalancer ServiceType = "LoadBalancer" +) + +// ServiceStatus represents the current status of a service +type ServiceStatus struct { + // LoadBalancer contains the current status of the load-balancer, + // if one is present. + LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty"` +} + +// LoadBalancerStatus represents the status of a load-balancer +type LoadBalancerStatus struct { + // Ingress is a list containing ingress points for the load-balancer; + // traffic intended for the service should be sent to these ingress points. + Ingress []LoadBalancerIngress `json:"ingress,omitempty"` +} + +// LoadBalancerIngress represents the status of a load-balancer ingress point: +// traffic intended for the service should be sent to an ingress point. +type LoadBalancerIngress struct { + // IP is set for load-balancer ingress points that are IP based + // (typically GCE or OpenStack load-balancers) + IP string `json:"ip,omitempty"` + + // Hostname is set for load-balancer ingress points that are DNS based + // (typically AWS load-balancers) + Hostname string `json:"hostname,omitempty"` +} + +// 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 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. + 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 string `json:"clusterIP,omitempty"` + + // 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"` + + // 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. + LoadBalancerIP string `json:"loadBalancerIP,omitempty"` + + // Optional: Supports "ClientIP" and "None". Used to maintain session affinity. + SessionAffinity ServiceAffinity `json:"sessionAffinity,omitempty"` + + // Optional: 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." + LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"` +} + +type ServicePort struct { + // Optional if only one ServicePort is defined on this service: The + // name of this port within the service. This must be a DNS_LABEL. + // All ports within a ServiceSpec must have unique names. This maps to + // the 'Name' field in EndpointPort objects. + Name string `json:"name"` + + // The IP protocol for this port. Supports "TCP" and "UDP". + Protocol Protocol `json:"protocol"` + + // The port that will be exposed on the service. + Port int32 `json:"port"` + + // Optional: The target port on pods selected by this service. If this + // is a string, it will be looked up as a named port in the target + // Pod's container ports. If this is not specified, the value + // of the 'port' field is used (an identity map). + // This field is ignored for services with clusterIP=None, and should be + // omitted or set equal to the 'port' field. + TargetPort intstr.IntOrString `json:"targetPort"` + + // The port on each node on which this service is exposed. + // Default is to auto-allocate a port if the ServiceType of this Service requires one. + NodePort int32 `json:"nodePort"` +} + +// +genclient=true + +// Service is a named abstraction of software service (for example, mysql) consisting of local port +// (for example 3306) that the proxy listens on, and the selector that determines which pods +// will answer requests sent through the proxy. +type Service struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the behavior of a service. + Spec ServiceSpec `json:"spec,omitempty"` + + // Status represents the current status of a service. + Status ServiceStatus `json:"status,omitempty"` +} + +// +genclient=true + +// ServiceAccount binds together: +// * a name, understood by users, and perhaps by peripheral systems, for an identity +// * a principal that can be authenticated and authorized +// * a set of secrets +type ServiceAccount struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount + Secrets []ObjectReference `json:"secrets"` + + // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images + // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets + // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. + ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"` +} + +// ServiceAccountList is a list of ServiceAccount objects +type ServiceAccountList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []ServiceAccount `json:"items"` +} + +// +genclient=true + +// Endpoints is a collection of endpoints that implement the actual service. Example: +// Name: "mysvc", +// Subsets: [ +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// }, +// { +// Addresses: [{"ip": "10.10.3.3"}], +// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] +// }, +// ] +type Endpoints struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // The set of all endpoints is the union of all subsets. + Subsets []EndpointSubset +} + +// EndpointSubset is a group of addresses with a common set of ports. The +// expanded set of endpoints is the Cartesian product of Addresses x Ports. +// For example, given: +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// } +// The resulting set of endpoints can be viewed as: +// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], +// b: [ 10.10.1.1:309, 10.10.2.2:309 ] +type EndpointSubset struct { + Addresses []EndpointAddress + NotReadyAddresses []EndpointAddress + Ports []EndpointPort +} + +// EndpointAddress is a tuple that describes single IP address. +type EndpointAddress struct { + // The IP of this endpoint. + // IPv6 is also accepted but not fully supported on all platforms. Also, certain + // kubernetes components, like kube-proxy, are not IPv6 ready. + // TODO: This should allow hostname or IP, see #4447. + IP string + // Optional: Hostname of this endpoint + // Meant to be used by DNS servers etc. + Hostname string `json:"hostname,omitempty"` + // Optional: The kubernetes object related to the entry point. + TargetRef *ObjectReference +} + +// EndpointPort is a tuple that describes a single port. +type EndpointPort struct { + // The name of this port (corresponds to ServicePort.Name). Optional + // if only one port is defined. Must be a DNS_LABEL. + Name string + + // The port number. + Port int32 + + // The IP protocol for this port. + Protocol Protocol +} + +// EndpointsList is a list of endpoints. +type EndpointsList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Endpoints `json:"items"` +} + +// NodeSpec describes the attributes that a node is created with. +type NodeSpec struct { + // PodCIDR represents the pod IP range assigned to the node + // Note: assigning IP ranges to nodes might need to be revisited when we support migratable IPs. + PodCIDR string `json:"podCIDR,omitempty"` + + // External ID of the node assigned by some machine database (e.g. a cloud provider) + ExternalID string `json:"externalID,omitempty"` + + // ID of the node assigned by the cloud provider + // Note: format is "://" + ProviderID string `json:"providerID,omitempty"` + + // Unschedulable controls node schedulability of new pods. By default node is schedulable. + Unschedulable bool `json:"unschedulable,omitempty"` +} + +// DaemonEndpoint contains information about a single Daemon endpoint. +type DaemonEndpoint struct { + /* + The port tag was not properly in quotes in earlier releases, so it must be + uppercased for backwards compat (since it was falling back to var name of + 'Port'). + */ + + // Port number of the given endpoint. + Port int32 `json:"Port"` +} + +// NodeDaemonEndpoints lists ports opened by daemons running on the Node. +type NodeDaemonEndpoints struct { + // Endpoint on which Kubelet is listening. + KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty"` +} + +// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. +type NodeSystemInfo struct { + // Machine ID reported by the node. + MachineID string `json:"machineID"` + // System UUID reported by the node. + SystemUUID string `json:"systemUUID"` + // Boot ID reported by the node. + BootID string `json:"bootID"` + // Kernel Version reported by the node. + KernelVersion string `json:"kernelVersion"` + // OS Image reported by the node. + OSImage string `json:"osImage"` + // ContainerRuntime Version reported by the node. + ContainerRuntimeVersion string `json:"containerRuntimeVersion"` + // Kubelet Version reported by the node. + KubeletVersion string `json:"kubeletVersion"` + // KubeProxy Version reported by the node. + KubeProxyVersion string `json:"kubeProxyVersion"` + // The Operating System reported by the node + OperatingSystem string `json:"operatingSystem"` + // The Architecture reported by the node + Architecture string `json:"architecture"` +} + +// NodeStatus is information about the current status of a node. +type NodeStatus struct { + // Capacity represents the total resources of a node. + Capacity ResourceList `json:"capacity,omitempty"` + // Allocatable represents the resources of a node that are available for scheduling. + Allocatable ResourceList `json:"allocatable,omitempty"` + // NodePhase is the current lifecycle phase of the node. + Phase NodePhase `json:"phase,omitempty"` + // Conditions is an array of current node conditions. + Conditions []NodeCondition `json:"conditions,omitempty"` + // Queried from cloud provider, if available. + Addresses []NodeAddress `json:"addresses,omitempty"` + // Endpoints of daemons running on the Node. + DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty"` + // Set of ids/uuids to uniquely identify the node. + NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"` + // List of container images on this node + Images []ContainerImage `json:"images,omitempty"` + // List of attachable volumes in use (mounted) by the node. + VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty"` + // List of volumes that are attached to the node. + VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty"` +} + +type UniqueVolumeName string + +// AttachedVolume describes a volume attached to a node +type AttachedVolume struct { + // Name of the attached volume + Name UniqueVolumeName `json:"name"` + + // DevicePath represents the device path where the volume should be available + DevicePath string `json:"devicePath"` +} + +// AvoidPods describes pods that should avoid this node. This is the value for a +// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +// will eventually become a field of NodeStatus. +type AvoidPods struct { + // Bounded-sized list of signatures of pods that should avoid this node, sorted + // in timestamp order from oldest to newest. Size of the slice is unspecified. + PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty"` +} + +// Describes a class of pods that should avoid this node. +type PreferAvoidPodsEntry struct { + // The class of pods. + PodSignature PodSignature `json:"podSignature"` + // Time at which this entry was added to the list. + EvictionTime unversioned.Time `json:"evictionTime,omitempty"` + // (brief) reason why this entry was added to the list. + Reason string `json:"reason,omitempty"` + // Human readable message indicating why this entry was added to the list. + Message string `json:"message,omitempty"` +} + +// Describes the class of pods that should avoid this node. +// Exactly one field should be set. +type PodSignature struct { + // Reference to controller whose pods should avoid this node. + PodController *OwnerReference `json:"podController,omitempty"` +} + +// Describe a container image +type ContainerImage struct { + // Names by which this image is known. + Names []string `json:"names"` + // The size of the image in bytes. + SizeBytes int64 `json:"sizeBytes,omitempty"` +} + +type NodePhase string + +// These are the valid phases of node. +const ( + // NodePending means the node has been created/added by the system, but not configured. + NodePending NodePhase = "Pending" + // NodeRunning means the node has been configured and has Kubernetes components running. + NodeRunning NodePhase = "Running" + // NodeTerminated means the node has been removed from the cluster. + NodeTerminated NodePhase = "Terminated" +) + +type NodeConditionType string + +// These are valid conditions of node. Currently, we don't have enough information to decide +// node condition. In the future, we will add more. The proposed set of conditions are: +// NodeReady, NodeReachable +const ( + // NodeReady means kubelet is healthy and ready to accept pods. + NodeReady NodeConditionType = "Ready" + // NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk + // space on the node. + NodeOutOfDisk NodeConditionType = "OutOfDisk" + // NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory. + NodeMemoryPressure NodeConditionType = "MemoryPressure" + // NodeDiskPressure means the kubelet is under pressure due to insufficient available disk. + NodeDiskPressure NodeConditionType = "DiskPressure" + // NodeNetworkUnavailable means that network for the node is not correctly configured. + NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable" +) + +type NodeCondition struct { + Type NodeConditionType `json:"type"` + Status ConditionStatus `json:"status"` + LastHeartbeatTime unversioned.Time `json:"lastHeartbeatTime,omitempty"` + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + Reason string `json:"reason,omitempty"` + Message string `json:"message,omitempty"` +} + +type NodeAddressType string + +// These are valid address types of node. NodeLegacyHostIP is used to transit +// from out-dated HostIP field to NodeAddress. +const ( + NodeLegacyHostIP NodeAddressType = "LegacyHostIP" + NodeHostName NodeAddressType = "Hostname" + NodeExternalIP NodeAddressType = "ExternalIP" + NodeInternalIP NodeAddressType = "InternalIP" +) + +type NodeAddress struct { + Type NodeAddressType `json:"type"` + Address string `json:"address"` +} + +// NodeResources is an object for conveying resource information about a node. +// see http://releases.k8s.io/HEAD/docs/design/resources.md for more details. +type NodeResources struct { + // Capacity represents the available resources of a node + Capacity ResourceList `json:"capacity,omitempty"` +} + +// ResourceName is the name identifying various resources in a ResourceList. +type ResourceName string + +// Resource names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters, +// with the -, _, and . characters allowed anywhere, except the first or last character. +// The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than +// camel case, separating compound words. +// Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name. +const ( + // CPU, in cores. (500m = .5 cores) + ResourceCPU ResourceName = "cpu" + // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) + ResourceMemory ResourceName = "memory" + // Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024) + ResourceStorage ResourceName = "storage" + // NVIDIA GPU, in devices. Alpha, might change: although fractional and allowing values >1, only one whole device per node is assigned. + ResourceNvidiaGPU ResourceName = "alpha.kubernetes.io/nvidia-gpu" + // Number of Pods that may be running on this Node: see ResourcePods +) + +// ResourceList is a set of (resource name, quantity) pairs. +type ResourceList map[ResourceName]resource.Quantity + +// +genclient=true +// +nonNamespaced=true + +// Node is a worker node in Kubernetes +// The name of the node according to etcd is in ObjectMeta.Name. +type Node struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the behavior of a node. + Spec NodeSpec `json:"spec,omitempty"` + + // Status describes the current status of a Node + Status NodeStatus `json:"status,omitempty"` +} + +// NodeList is a list of nodes. +type NodeList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Node `json:"items"` +} + +// NamespaceSpec describes the attributes on a Namespace +type NamespaceSpec struct { + // Finalizers is an opaque list of values that must be empty to permanently remove object from storage + Finalizers []FinalizerName +} + +type FinalizerName string + +// These are internal finalizer values to Kubernetes, must be qualified name unless defined here +const ( + FinalizerKubernetes FinalizerName = "kubernetes" + FinalizerOrphan string = "orphan" +) + +// NamespaceStatus is information about the current status of a Namespace. +type NamespaceStatus struct { + // Phase is the current lifecycle phase of the namespace. + Phase NamespacePhase `json:"phase,omitempty"` +} + +type NamespacePhase string + +// These are the valid phases of a namespace. +const ( + // NamespaceActive means the namespace is available for use in the system + NamespaceActive NamespacePhase = "Active" + // NamespaceTerminating means the namespace is undergoing graceful termination + NamespaceTerminating NamespacePhase = "Terminating" +) + +// +genclient=true +// +nonNamespaced=true + +// A namespace provides a scope for Names. +// Use of multiple namespaces is optional +type Namespace struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the behavior of the Namespace. + Spec NamespaceSpec `json:"spec,omitempty"` + + // Status describes the current status of a Namespace + Status NamespaceStatus `json:"status,omitempty"` +} + +// NamespaceList is a list of Namespaces. +type NamespaceList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Namespace `json:"items"` +} + +// Binding ties one object to another - for example, a pod is bound to a node by a scheduler. +type Binding struct { + unversioned.TypeMeta `json:",inline"` + // ObjectMeta describes the object that is being bound. + ObjectMeta `json:"metadata,omitempty"` + + // Target is the object to bind to. + Target ObjectReference `json:"target"` +} + +// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. +type Preconditions struct { + // Specifies the target UID. + UID *types.UID `json:"uid,omitempty"` +} + +// DeleteOptions may be provided when deleting an API object +type DeleteOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Optional duration in seconds before the object should be deleted. Value must be non-negative integer. + // The value zero indicates delete immediately. If this value is nil, the default grace period for the + // specified type will be used. + GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"` + + // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + // returned. + Preconditions *Preconditions `json:"preconditions,omitempty"` + + // Should the dependent objects be orphaned. If true/false, the "orphan" + // finalizer will be added to/removed from the object's finalizers list. + OrphanDependents *bool `json:"orphanDependents,omitempty"` +} + +// ExportOptions is the query options to the standard REST get call. +type ExportOptions struct { + unversioned.TypeMeta `json:",inline"` + // Should this value be exported. Export strips fields that a user can not specify. + Export bool `json:"export"` + // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + Exact bool `json:"exact"` +} + +// ListOptions is the query options to a standard REST list call, and has future support for +// watch calls. +type ListOptions struct { + unversioned.TypeMeta `json:",inline"` + + // A selector based on labels + LabelSelector labels.Selector + // A selector based on fields + FieldSelector fields.Selector + // If true, watch for changes to this list + Watch bool + // For watch, it's the resource version to watch. + // For list, + // - if unset, then the result is returned from remote storage based on quorum-read flag; + // - if it's 0, then we simply return what we currently have in cache, no guarantee; + // - if set to non zero, then the result is as fresh as given rv. + ResourceVersion string + // Timeout for the list/watch call. + TimeoutSeconds *int64 +} + +// PodLogOptions is the query options for a Pod's logs REST call +type PodLogOptions struct { + unversioned.TypeMeta + + // Container for which to return logs + Container string + // If true, follow the logs for the pod + Follow bool + // If true, return previous terminated container logs + Previous bool + // A relative time in seconds before the current time from which to show logs. If this value + // precedes the time a pod was started, only logs since the pod start will be returned. + // If this value is in the future, no logs will be returned. + // Only one of sinceSeconds or sinceTime may be specified. + SinceSeconds *int64 + // An RFC3339 timestamp from which to show logs. If this value + // precedes the time a pod was started, only logs since the pod start will be returned. + // If this value is in the future, no logs will be returned. + // Only one of sinceSeconds or sinceTime may be specified. + SinceTime *unversioned.Time + // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line + // of log output. + Timestamps bool + // If set, the number of lines from the end of the logs to show. If not specified, + // logs are shown from the creation of the container or sinceSeconds or sinceTime + TailLines *int64 + // If set, the number of bytes to read from the server before terminating the + // log output. This may not display a complete final line of logging, and may return + // slightly more or slightly less than the specified limit. + LimitBytes *int64 +} + +// PodAttachOptions is the query options to a Pod's remote attach call +// TODO: merge w/ PodExecOptions below for stdin, stdout, etc +type PodAttachOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Stdin if true indicates that stdin is to be redirected for the attach call + Stdin bool `json:"stdin,omitempty"` + + // Stdout if true indicates that stdout is to be redirected for the attach call + Stdout bool `json:"stdout,omitempty"` + + // Stderr if true indicates that stderr is to be redirected for the attach call + Stderr bool `json:"stderr,omitempty"` + + // TTY if true indicates that a tty will be allocated for the attach call + TTY bool `json:"tty,omitempty"` + + // Container to attach to. + Container string `json:"container,omitempty"` +} + +// PodExecOptions is the query options to a Pod's remote exec call +type PodExecOptions struct { + unversioned.TypeMeta + + // Stdin if true indicates that stdin is to be redirected for the exec call + Stdin bool + + // Stdout if true indicates that stdout is to be redirected for the exec call + Stdout bool + + // Stderr if true indicates that stderr is to be redirected for the exec call + Stderr bool + + // TTY if true indicates that a tty will be allocated for the exec call + TTY bool + + // Container in which to execute the command. + Container string + + // Command is the remote command to execute; argv array; not executed within a shell. + Command []string +} + +// PodProxyOptions is the query options to a Pod's proxy call +type PodProxyOptions struct { + unversioned.TypeMeta + + // Path is the URL path to use for the current proxy request + Path string +} + +// NodeProxyOptions is the query options to a Node's proxy call +type NodeProxyOptions struct { + unversioned.TypeMeta + + // Path is the URL path to use for the current proxy request + Path string +} + +// ServiceProxyOptions is the query options to a Service's proxy call. +type ServiceProxyOptions struct { + unversioned.TypeMeta + + // Path is the part of URLs that include service endpoints, suffixes, + // and parameters to use for the current proxy request to service. + // For example, the whole request URL is + // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. + // Path is _search?q=user:kimchy. + Path string +} + +// OwnerReference contains enough information to let you identify an owning +// object. Currently, an owning object must be in the same namespace, so there +// is no namespace field. +type OwnerReference struct { + // API version of the referent. + APIVersion string `json:"apiVersion"` + // Kind of the referent. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + Kind string `json:"kind"` + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + Name string `json:"name"` + // UID of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + UID types.UID `json:"uid"` + // If true, this reference points to the managing controller. + Controller *bool `json:"controller,omitempty"` +} + +// ObjectReference contains enough information to let you inspect or modify the referred object. +type ObjectReference struct { + Kind string `json:"kind,omitempty"` + Namespace string `json:"namespace,omitempty"` + Name string `json:"name,omitempty"` + UID types.UID `json:"uid,omitempty"` + APIVersion string `json:"apiVersion,omitempty"` + ResourceVersion string `json:"resourceVersion,omitempty"` + + // Optional. If referring to a piece of an object instead of an entire object, this string + // should contain information to identify the sub-object. For example, if the object + // reference is to a container within a pod, this would take on a value like: + // "spec.containers{name}" (where "name" refers to the name of the container that triggered + // the event) or if no container name is specified "spec.containers[2]" (container with + // index 2 in this pod). This syntax is chosen only to have some well-defined way of + // referencing a part of an object. + // TODO: this design is not final and this field is subject to change in the future. + FieldPath string `json:"fieldPath,omitempty"` +} + +// LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. +type LocalObjectReference struct { + //TODO: Add other useful fields. apiVersion, kind, uid? + Name string +} + +type SerializedReference struct { + unversioned.TypeMeta `json:",inline"` + Reference ObjectReference `json:"reference,omitempty"` +} + +type EventSource struct { + // Component from which the event is generated. + Component string `json:"component,omitempty"` + // Host name on which the event is generated. + Host string `json:"host,omitempty"` +} + +// Valid values for event types (new types could be added in future) +const ( + // Information only and will not cause any problems + EventTypeNormal string = "Normal" + // These events are to warn that something might go wrong + EventTypeWarning string = "Warning" +) + +// +genclient=true + +// Event is a report of an event somewhere in the cluster. +// TODO: Decide whether to store these separately or with the object they apply to. +type Event struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Required. The object that this event is about. + InvolvedObject ObjectReference `json:"involvedObject,omitempty"` + + // Optional; this should be a short, machine understandable string that gives the reason + // for this event being generated. For example, if the event is reporting that a container + // can't start, the Reason might be "ImageNotFound". + // TODO: provide exact specification for format. + Reason string `json:"reason,omitempty"` + + // Optional. A human-readable description of the status of this operation. + // TODO: decide on maximum length. + Message string `json:"message,omitempty"` + + // Optional. The component reporting this event. Should be a short machine understandable string. + Source EventSource `json:"source,omitempty"` + + // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + FirstTimestamp unversioned.Time `json:"firstTimestamp,omitempty"` + + // The time at which the most recent occurrence of this event was recorded. + LastTimestamp unversioned.Time `json:"lastTimestamp,omitempty"` + + // The number of times this event has occurred. + Count int32 `json:"count,omitempty"` + + // Type of this event (Normal, Warning), new types could be added in the future. + Type string `json:"type,omitempty"` +} + +// EventList is a list of events. +type EventList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Event `json:"items"` +} + +// List holds a list of objects, which may not be known by the server. +type List struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []runtime.Object `json:"items"` +} + +// A type of object that is limited +type LimitType string + +const ( + // Limit that applies to all pods in a namespace + LimitTypePod LimitType = "Pod" + // Limit that applies to all containers in a namespace + LimitTypeContainer LimitType = "Container" +) + +// LimitRangeItem defines a min/max usage limit for any resource that matches on kind +type LimitRangeItem struct { + // Type of resource that this limit applies to + Type LimitType `json:"type,omitempty"` + // Max usage constraints on this kind by resource name + Max ResourceList `json:"max,omitempty"` + // Min usage constraints on this kind by resource name + Min ResourceList `json:"min,omitempty"` + // Default resource requirement limit value by resource name. + Default ResourceList `json:"default,omitempty"` + // DefaultRequest resource requirement request value by resource name. + DefaultRequest ResourceList `json:"defaultRequest,omitempty"` + // MaxLimitRequestRatio represents the max burst value for the named resource + MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty"` +} + +// LimitRangeSpec defines a min/max usage limit for resources that match on kind +type LimitRangeSpec struct { + // Limits is the list of LimitRangeItem objects that are enforced + Limits []LimitRangeItem `json:"limits"` +} + +// +genclient=true + +// LimitRange sets resource usage limits for each kind of resource in a Namespace +type LimitRange struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the limits enforced + Spec LimitRangeSpec `json:"spec,omitempty"` +} + +// LimitRangeList is a list of LimitRange items. +type LimitRangeList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is a list of LimitRange objects + Items []LimitRange `json:"items"` +} + +// The following identify resource constants for Kubernetes object types +const ( + // Pods, number + ResourcePods ResourceName = "pods" + // Services, number + ResourceServices ResourceName = "services" + // ReplicationControllers, number + ResourceReplicationControllers ResourceName = "replicationcontrollers" + // ResourceQuotas, number + ResourceQuotas ResourceName = "resourcequotas" + // ResourceSecrets, number + ResourceSecrets ResourceName = "secrets" + // ResourceConfigMaps, number + ResourceConfigMaps ResourceName = "configmaps" + // ResourcePersistentVolumeClaims, number + ResourcePersistentVolumeClaims ResourceName = "persistentvolumeclaims" + // ResourceServicesNodePorts, number + ResourceServicesNodePorts ResourceName = "services.nodeports" + // ResourceServicesLoadBalancers, number + ResourceServicesLoadBalancers ResourceName = "services.loadbalancers" + // CPU request, in cores. (500m = .5 cores) + ResourceRequestsCPU ResourceName = "requests.cpu" + // Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) + ResourceRequestsMemory ResourceName = "requests.memory" + // Storage request, in bytes + ResourceRequestsStorage ResourceName = "requests.storage" + // CPU limit, in cores. (500m = .5 cores) + ResourceLimitsCPU ResourceName = "limits.cpu" + // Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) + ResourceLimitsMemory ResourceName = "limits.memory" +) + +// A ResourceQuotaScope defines a filter that must match each object tracked by a quota +type ResourceQuotaScope string + +const ( + // Match all pod objects where spec.activeDeadlineSeconds + ResourceQuotaScopeTerminating ResourceQuotaScope = "Terminating" + // Match all pod objects where !spec.activeDeadlineSeconds + ResourceQuotaScopeNotTerminating ResourceQuotaScope = "NotTerminating" + // Match all pod objects that have best effort quality of service + ResourceQuotaScopeBestEffort ResourceQuotaScope = "BestEffort" + // Match all pod objects that do not have best effort quality of service + ResourceQuotaScopeNotBestEffort ResourceQuotaScope = "NotBestEffort" +) + +// ResourceQuotaSpec defines the desired hard limits to enforce for Quota +type ResourceQuotaSpec struct { + // Hard is the set of desired hard limits for each named resource + Hard ResourceList `json:"hard,omitempty"` + // A collection of filters that must match each object tracked by a quota. + // If not specified, the quota matches all objects. + Scopes []ResourceQuotaScope `json:"scopes,omitempty"` +} + +// ResourceQuotaStatus defines the enforced hard limits and observed use +type ResourceQuotaStatus struct { + // Hard is the set of enforced hard limits for each named resource + Hard ResourceList `json:"hard,omitempty"` + // Used is the current observed total usage of the resource in the namespace + Used ResourceList `json:"used,omitempty"` +} + +// +genclient=true + +// ResourceQuota sets aggregate quota restrictions enforced per namespace +type ResourceQuota struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the desired quota + Spec ResourceQuotaSpec `json:"spec,omitempty"` + + // Status defines the actual enforced quota and its current usage + Status ResourceQuotaStatus `json:"status,omitempty"` +} + +// ResourceQuotaList is a list of ResourceQuota items +type ResourceQuotaList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is a list of ResourceQuota objects + Items []ResourceQuota `json:"items"` +} + +// +genclient=true + +// Secret holds secret data of a certain type. The total bytes of the values in +// the Data field must be less than MaxSecretSize bytes. +type Secret struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN + // or leading dot followed by valid DNS_SUBDOMAIN. + // The serialized form of the secret data is a base64 encoded string, + // representing the arbitrary (possibly non-string) data value here. + Data map[string][]byte `json:"data,omitempty"` + + // Used to facilitate programmatic handling of secret data. + Type SecretType `json:"type,omitempty"` +} + +const MaxSecretSize = 1 * 1024 * 1024 + +type SecretType string + +const ( + // SecretTypeOpaque is the default; arbitrary user-defined data + SecretTypeOpaque SecretType = "Opaque" + + // SecretTypeServiceAccountToken contains a token that identifies a service account to the API + // + // Required fields: + // - Secret.Annotations["kubernetes.io/service-account.name"] - the name of the ServiceAccount the token identifies + // - Secret.Annotations["kubernetes.io/service-account.uid"] - the UID of the ServiceAccount the token identifies + // - Secret.Data["token"] - a token that identifies the service account to the API + SecretTypeServiceAccountToken SecretType = "kubernetes.io/service-account-token" + + // ServiceAccountNameKey is the key of the required annotation for SecretTypeServiceAccountToken secrets + ServiceAccountNameKey = "kubernetes.io/service-account.name" + // ServiceAccountUIDKey is the key of the required annotation for SecretTypeServiceAccountToken secrets + ServiceAccountUIDKey = "kubernetes.io/service-account.uid" + // ServiceAccountTokenKey is the key of the required data for SecretTypeServiceAccountToken secrets + ServiceAccountTokenKey = "token" + // ServiceAccountKubeconfigKey is the key of the optional kubeconfig data for SecretTypeServiceAccountToken secrets + ServiceAccountKubeconfigKey = "kubernetes.kubeconfig" + // ServiceAccountRootCAKey is the key of the optional root certificate authority for SecretTypeServiceAccountToken secrets + ServiceAccountRootCAKey = "ca.crt" + // ServiceAccountNamespaceKey is the key of the optional namespace to use as the default for namespaced API calls + ServiceAccountNamespaceKey = "namespace" + + // SecretTypeDockercfg contains a dockercfg file that follows the same format rules as ~/.dockercfg + // + // Required fields: + // - Secret.Data[".dockercfg"] - a serialized ~/.dockercfg file + SecretTypeDockercfg SecretType = "kubernetes.io/dockercfg" + + // DockerConfigKey is the key of the required data for SecretTypeDockercfg secrets + DockerConfigKey = ".dockercfg" + + // SecretTypeDockerConfigJson contains a dockercfg file that follows the same format rules as ~/.docker/config.json + // + // Required fields: + // - Secret.Data[".dockerconfigjson"] - a serialized ~/.docker/config.json file + SecretTypeDockerConfigJson SecretType = "kubernetes.io/dockerconfigjson" + + // DockerConfigJsonKey is the key of the required data for SecretTypeDockerConfigJson secrets + DockerConfigJsonKey = ".dockerconfigjson" + + // SecretTypeBasicAuth contains data needed for basic authentication. + // + // Required at least one of fields: + // - Secret.Data["username"] - username used for authentication + // - Secret.Data["password"] - password or token needed for authentication + SecretTypeBasicAuth SecretType = "kubernetes.io/basic-auth" + + // BasicAuthUsernameKey is the key of the username for SecretTypeBasicAuth secrets + BasicAuthUsernameKey = "username" + // BasicAuthPasswordKey is the key of the password or token for SecretTypeBasicAuth secrets + BasicAuthPasswordKey = "password" + + // SecretTypeSSHAuth contains data needed for SSH authetication. + // + // Required field: + // - Secret.Data["ssh-privatekey"] - private SSH key needed for authentication + SecretTypeSSHAuth SecretType = "kubernetes.io/ssh-auth" + + // SSHAuthPrivateKey is the key of the required SSH private key for SecretTypeSSHAuth secrets + SSHAuthPrivateKey = "ssh-privatekey" + + // SecretTypeTLS contains information about a TLS client or server secret. It + // is primarily used with TLS termination of the Ingress resource, but may be + // used in other types. + // + // Required fields: + // - Secret.Data["tls.key"] - TLS private key. + // Secret.Data["tls.crt"] - TLS certificate. + // TODO: Consider supporting different formats, specifying CA/destinationCA. + SecretTypeTLS SecretType = "kubernetes.io/tls" + + // TLSCertKey is the key for tls certificates in a TLS secret. + TLSCertKey = "tls.crt" + // TLSPrivateKeyKey is the key for the private key field in a TLS secret. + TLSPrivateKeyKey = "tls.key" +) + +type SecretList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []Secret `json:"items"` +} + +// +genclient=true + +// ConfigMap holds configuration data for components or applications to consume. +type ConfigMap struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + // Data contains the configuration data. + // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + Data map[string]string `json:"data,omitempty"` +} + +// ConfigMapList is a resource containing a list of ConfigMap objects. +type ConfigMapList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of ConfigMaps. + Items []ConfigMap `json:"items"` +} + +// These constants are for remote command execution and port forwarding and are +// used by both the client side and server side components. +// +// This is probably not the ideal place for them, but it didn't seem worth it +// to create pkg/exec and pkg/portforward just to contain a single file with +// constants in it. Suggestions for more appropriate alternatives are +// definitely welcome! +const ( + // Enable stdin for remote command execution + ExecStdinParam = "input" + // Enable stdout for remote command execution + ExecStdoutParam = "output" + // Enable stderr for remote command execution + ExecStderrParam = "error" + // Enable TTY for remote command execution + ExecTTYParam = "tty" + // Command to run for remote command execution + ExecCommandParamm = "command" + + // Name of header that specifies stream type + StreamType = "streamType" + // Value for streamType header for stdin stream + StreamTypeStdin = "stdin" + // Value for streamType header for stdout stream + StreamTypeStdout = "stdout" + // Value for streamType header for stderr stream + StreamTypeStderr = "stderr" + // Value for streamType header for data stream + StreamTypeData = "data" + // Value for streamType header for error stream + StreamTypeError = "error" + // Value for streamType header for terminal resize stream + StreamTypeResize = "resize" + + // Name of header that specifies the port being forwarded + PortHeader = "port" + // Name of header that specifies a request ID used to associate the error + // and data streams for a single forwarded connection + PortForwardRequestIDHeader = "requestID" +) + +// Similarly to above, these are constants to support HTTP PATCH utilized by +// both the client and server that didn't make sense for a whole package to be +// dedicated to. +type PatchType string + +const ( + JSONPatchType PatchType = "application/json-patch+json" + MergePatchType PatchType = "application/merge-patch+json" + StrategicMergePatchType PatchType = "application/strategic-merge-patch+json" +) + +// Type and constants for component health validation. +type ComponentConditionType string + +// These are the valid conditions for the component. +const ( + ComponentHealthy ComponentConditionType = "Healthy" +) + +type ComponentCondition struct { + Type ComponentConditionType `json:"type"` + Status ConditionStatus `json:"status"` + Message string `json:"message,omitempty"` + Error string `json:"error,omitempty"` +} + +// +genclient=true +// +nonNamespaced=true + +// ComponentStatus (and ComponentStatusList) holds the cluster validation info. +type ComponentStatus struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + + Conditions []ComponentCondition `json:"conditions,omitempty"` +} + +type ComponentStatusList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []ComponentStatus `json:"items"` +} + +// SecurityContext holds security configuration that will be applied to a container. +// Some fields are present in both SecurityContext and PodSecurityContext. When both +// are set, the values in SecurityContext take precedence. +type SecurityContext struct { + // The capabilities to add/drop when running containers. + // Defaults to the default set of capabilities granted by the container runtime. + Capabilities *Capabilities `json:"capabilities,omitempty"` + // Run container in privileged mode. + // Processes in privileged containers are essentially equivalent to root on the host. + // Defaults to false. + Privileged *bool `json:"privileged,omitempty"` + // The SELinux context to be applied to the container. + // If unspecified, the container runtime will allocate a random SELinux context for each + // container. May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"` + // The UID to run the entrypoint of the container process. + // Defaults to user specified in image metadata if unspecified. + // May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + RunAsUser *int64 `json:"runAsUser,omitempty"` + // Indicates that the container must run as a non-root user. + // If true, the Kubelet will validate the image at runtime to ensure that it + // does not run as UID 0 (root) and fail to start the container if it does. + // If unset or false, no such validation will be performed. + // May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + // The read-only root filesystem allows you to restrict the locations that an application can write + // files to, ensuring the persistent data can only be written to mounts. + ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` +} + +// SELinuxOptions are the labels to be applied to the container. +type SELinuxOptions struct { + // SELinux user label + User string `json:"user,omitempty"` + // SELinux role label + Role string `json:"role,omitempty"` + // SELinux type label + Type string `json:"type,omitempty"` + // SELinux level label. + Level string `json:"level,omitempty"` +} + +// RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record +// the global allocation state of the cluster. The schema of Range and Data generic, in that Range +// should be a string representation of the inputs to a range (for instance, for IP allocation it +// might be a CIDR) and Data is an opaque blob understood by an allocator which is typically a +// binary range. Consumers should use annotations to record additional information (schema version, +// data encoding hints). A range allocation should *ALWAYS* be recreatable at any time by observation +// of the cluster, thus the object is less strongly typed than most. +type RangeAllocation struct { + unversioned.TypeMeta `json:",inline"` + ObjectMeta `json:"metadata,omitempty"` + // A string representing a unique label for a range of resources, such as a CIDR "10.0.0.0/8" or + // port range "10000-30000". Range is not strongly schema'd here. The Range is expected to define + // a start and end unless there is an implicit end. + Range string `json:"range"` + // A byte array representing the serialized state of a range allocation. Additional clarifiers on + // the type or format of data should be represented with annotations. For IP allocations, this is + // represented as a bit array starting at the base IP of the CIDR in Range, with each bit representing + // a single allocated address (the fifth bit on CIDR 10.0.0.0/8 is 10.0.0.4). + Data []byte `json:"data"` +} + +const ( + // "default-scheduler" is the name of default scheduler. + DefaultSchedulerName = "default-scheduler" + + // RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule + // corresponding to every RequiredDuringScheduling affinity rule. + // When the --hard-pod-affinity-weight scheduler flag is not specified, + // DefaultHardPodAffinityWeight defines the weight of the implicit PreferredDuringScheduling affinity rule. + DefaultHardPodAffinitySymmetricWeight int = 1 + + // When the --failure-domains scheduler flag is not specified, + // DefaultFailureDomains defines the set of label keys used when TopologyKey is empty in PreferredDuringScheduling anti-affinity. + DefaultFailureDomains string = unversioned.LabelHostname + "," + unversioned.LabelZoneFailureDomain + "," + unversioned.LabelZoneRegion +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/doc.go new file mode 100644 index 0000000000..d0ffc33275 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/doc.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. +*/ + +// +k8s:deepcopy-gen=package + +package unversioned diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/duration.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/duration.go new file mode 100644 index 0000000000..ed54e515da --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/duration.go @@ -0,0 +1,47 @@ +/* +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 unversioned + +import ( + "encoding/json" + "time" +) + +// Duration is a wrapper around time.Duration which supports correct +// marshaling to YAML and JSON. In particular, it marshals into strings, which +// can be used as map keys in json. +type Duration struct { + time.Duration `protobuf:"varint,1,opt,name=duration,casttype=time.Duration"` +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +func (d *Duration) UnmarshalJSON(b []byte) error { + var str string + json.Unmarshal(b, &str) + + pd, err := time.ParseDuration(str) + if err != nil { + return err + } + d.Duration = pd + return nil +} + +// MarshalJSON implements the json.Marshaler interface. +func (d Duration) MarshalJSON() ([]byte, error) { + return json.Marshal(d.Duration.String()) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/generated.pb.go new file mode 100644 index 0000000000..d33d510f02 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/generated.pb.go @@ -0,0 +1,4536 @@ +/* +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/api/unversioned/generated.proto +// DO NOT EDIT! + +/* + Package unversioned is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/api/unversioned/generated.proto + + It has these top-level messages: + APIGroup + APIGroupList + APIResource + APIResourceList + APIVersions + Duration + ExportOptions + GroupKind + GroupResource + GroupVersion + GroupVersionForDiscovery + GroupVersionKind + GroupVersionResource + LabelSelector + LabelSelectorRequirement + ListMeta + RootPaths + ServerAddressByClientCIDR + Status + StatusCause + StatusDetails + Time + Timestamp + TypeMeta +*/ +package unversioned + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +import time "time" + +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 *APIGroup) Reset() { *m = APIGroup{} } +func (*APIGroup) ProtoMessage() {} +func (*APIGroup) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *APIGroupList) Reset() { *m = APIGroupList{} } +func (*APIGroupList) ProtoMessage() {} +func (*APIGroupList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *APIResource) Reset() { *m = APIResource{} } +func (*APIResource) ProtoMessage() {} +func (*APIResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *APIResourceList) Reset() { *m = APIResourceList{} } +func (*APIResourceList) ProtoMessage() {} +func (*APIResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *APIVersions) Reset() { *m = APIVersions{} } +func (*APIVersions) ProtoMessage() {} +func (*APIVersions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *Duration) Reset() { *m = Duration{} } +func (*Duration) ProtoMessage() {} +func (*Duration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *ExportOptions) Reset() { *m = ExportOptions{} } +func (*ExportOptions) ProtoMessage() {} +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *GroupKind) Reset() { *m = GroupKind{} } +func (*GroupKind) ProtoMessage() {} +func (*GroupKind) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *GroupResource) Reset() { *m = GroupResource{} } +func (*GroupResource) ProtoMessage() {} +func (*GroupResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } + +func (m *GroupVersion) Reset() { *m = GroupVersion{} } +func (*GroupVersion) ProtoMessage() {} +func (*GroupVersion) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } + +func (m *GroupVersionForDiscovery) Reset() { *m = GroupVersionForDiscovery{} } +func (*GroupVersionForDiscovery) ProtoMessage() {} +func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{10} +} + +func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} } +func (*GroupVersionKind) ProtoMessage() {} +func (*GroupVersionKind) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } + +func (m *GroupVersionResource) Reset() { *m = GroupVersionResource{} } +func (*GroupVersionResource) ProtoMessage() {} +func (*GroupVersionResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } + +func (m *LabelSelector) Reset() { *m = LabelSelector{} } +func (*LabelSelector) ProtoMessage() {} +func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } + +func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } +func (*LabelSelectorRequirement) ProtoMessage() {} +func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{14} +} + +func (m *ListMeta) Reset() { *m = ListMeta{} } +func (*ListMeta) ProtoMessage() {} +func (*ListMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } + +func (m *RootPaths) Reset() { *m = RootPaths{} } +func (*RootPaths) ProtoMessage() {} +func (*RootPaths) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } + +func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} } +func (*ServerAddressByClientCIDR) ProtoMessage() {} +func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{17} +} + +func (m *Status) Reset() { *m = Status{} } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } + +func (m *StatusCause) Reset() { *m = StatusCause{} } +func (*StatusCause) ProtoMessage() {} +func (*StatusCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } + +func (m *StatusDetails) Reset() { *m = StatusDetails{} } +func (*StatusDetails) ProtoMessage() {} +func (*StatusDetails) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } + +func (m *Time) Reset() { *m = Time{} } +func (*Time) ProtoMessage() {} +func (*Time) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } + +func (m *Timestamp) Reset() { *m = Timestamp{} } +func (*Timestamp) ProtoMessage() {} +func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } + +func (m *TypeMeta) Reset() { *m = TypeMeta{} } +func (*TypeMeta) ProtoMessage() {} +func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } + +func init() { + proto.RegisterType((*APIGroup)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.APIGroup") + proto.RegisterType((*APIGroupList)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.APIGroupList") + proto.RegisterType((*APIResource)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.APIResource") + proto.RegisterType((*APIResourceList)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.APIResourceList") + proto.RegisterType((*APIVersions)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.APIVersions") + proto.RegisterType((*Duration)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.Duration") + proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.ExportOptions") + proto.RegisterType((*GroupKind)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.GroupKind") + proto.RegisterType((*GroupResource)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.GroupResource") + proto.RegisterType((*GroupVersion)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.GroupVersion") + proto.RegisterType((*GroupVersionForDiscovery)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.GroupVersionForDiscovery") + proto.RegisterType((*GroupVersionKind)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.GroupVersionKind") + proto.RegisterType((*GroupVersionResource)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.GroupVersionResource") + proto.RegisterType((*LabelSelector)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.LabelSelector") + proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.LabelSelectorRequirement") + proto.RegisterType((*ListMeta)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.ListMeta") + proto.RegisterType((*RootPaths)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.RootPaths") + proto.RegisterType((*ServerAddressByClientCIDR)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.ServerAddressByClientCIDR") + proto.RegisterType((*Status)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.Status") + proto.RegisterType((*StatusCause)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.StatusCause") + proto.RegisterType((*StatusDetails)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.StatusDetails") + proto.RegisterType((*Time)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.Time") + proto.RegisterType((*Timestamp)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.Timestamp") + proto.RegisterType((*TypeMeta)(nil), "k8s.io.client-go.1.4.pkg.api.unversioned.TypeMeta") +} +func (m *APIGroup) 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 *APIGroup) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + if len(m.Versions) > 0 { + for _, msg := range m.Versions { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.PreferredVersion.Size())) + n1, err := m.PreferredVersion.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + if len(m.ServerAddressByClientCIDRs) > 0 { + for _, msg := range m.ServerAddressByClientCIDRs { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *APIGroupList) 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 *APIGroupList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Groups) > 0 { + for _, msg := range m.Groups { + 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 + } + } + return i, nil +} + +func (m *APIResource) 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 *APIResource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x10 + i++ + if m.Namespaced { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + return i, nil +} + +func (m *APIResourceList) 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 *APIResourceList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.GroupVersion))) + i += copy(data[i:], m.GroupVersion) + if len(m.APIResources) > 0 { + for _, msg := range m.APIResources { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *APIVersions) 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 *APIVersions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Versions) > 0 { + for _, s := range m.Versions { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.ServerAddressByClientCIDRs) > 0 { + for _, msg := range m.ServerAddressByClientCIDRs { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *Duration) 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 *Duration) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Duration)) + return i, nil +} + +func (m *ExportOptions) 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 *ExportOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + if m.Export { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x10 + i++ + if m.Exact { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *GroupKind) 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 *GroupKind) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + return i, nil +} + +func (m *GroupResource) 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 *GroupResource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Resource))) + i += copy(data[i:], m.Resource) + return i, nil +} + +func (m *GroupVersion) 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 *GroupVersion) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Version))) + i += copy(data[i:], m.Version) + return i, nil +} + +func (m *GroupVersionForDiscovery) 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 *GroupVersionForDiscovery) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.GroupVersion))) + i += copy(data[i:], m.GroupVersion) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Version))) + i += copy(data[i:], m.Version) + return i, nil +} + +func (m *GroupVersionKind) 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 *GroupVersionKind) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Version))) + i += copy(data[i:], m.Version) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + return i, nil +} + +func (m *GroupVersionResource) 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 *GroupVersionResource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Version))) + i += copy(data[i:], m.Version) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Resource))) + i += copy(data[i:], m.Resource) + return i, nil +} + +func (m *LabelSelector) 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 *LabelSelector) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.MatchLabels) > 0 { + for k := range m.MatchLabels { + data[i] = 0xa + i++ + v := m.MatchLabels[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) + } + } + if len(m.MatchExpressions) > 0 { + for _, msg := range m.MatchExpressions { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *LabelSelectorRequirement) 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 *LabelSelectorRequirement) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Operator))) + i += copy(data[i:], m.Operator) + if len(m.Values) > 0 { + for _, s := range m.Values { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *ListMeta) 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 *ListMeta) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SelfLink))) + i += copy(data[i:], m.SelfLink) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ResourceVersion))) + i += copy(data[i:], m.ResourceVersion) + return i, nil +} + +func (m *RootPaths) 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 *RootPaths) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Paths) > 0 { + for _, s := range m.Paths { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *ServerAddressByClientCIDR) 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 *ServerAddressByClientCIDR) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ClientCIDR))) + i += copy(data[i:], m.ClientCIDR) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ServerAddress))) + i += copy(data[i:], m.ServerAddress) + return i, nil +} + +func (m *Status) 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 *Status) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n2, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Status))) + i += copy(data[i:], m.Status) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + if m.Details != nil { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Details.Size())) + n3, err := m.Details.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + data[i] = 0x30 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Code)) + return i, nil +} + +func (m *StatusCause) 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 *StatusCause) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Field))) + i += copy(data[i:], m.Field) + return i, nil +} + +func (m *StatusDetails) 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 *StatusDetails) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + if len(m.Causes) > 0 { + for _, msg := range m.Causes { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.RetryAfterSeconds)) + return i, nil +} + +func (m *Timestamp) 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 *Timestamp) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Seconds)) + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Nanos)) + return i, nil +} + +func (m *TypeMeta) 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 *TypeMeta) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.APIVersion))) + i += copy(data[i:], m.APIVersion) + 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 *APIGroup) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Versions) > 0 { + for _, e := range m.Versions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.PreferredVersion.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.ServerAddressByClientCIDRs) > 0 { + for _, e := range m.ServerAddressByClientCIDRs { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *APIGroupList) Size() (n int) { + var l int + _ = l + if len(m.Groups) > 0 { + for _, e := range m.Groups { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *APIResource) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *APIResourceList) Size() (n int) { + var l int + _ = l + l = len(m.GroupVersion) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.APIResources) > 0 { + for _, e := range m.APIResources { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *APIVersions) Size() (n int) { + var l int + _ = l + if len(m.Versions) > 0 { + for _, s := range m.Versions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ServerAddressByClientCIDRs) > 0 { + for _, e := range m.ServerAddressByClientCIDRs { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Duration) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Duration)) + return n +} + +func (m *ExportOptions) Size() (n int) { + var l int + _ = l + n += 2 + n += 2 + return n +} + +func (m *GroupKind) Size() (n int) { + var l int + _ = l + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GroupResource) Size() (n int) { + var l int + _ = l + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Resource) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GroupVersion) Size() (n int) { + var l int + _ = l + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GroupVersionForDiscovery) Size() (n int) { + var l int + _ = l + l = len(m.GroupVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GroupVersionKind) Size() (n int) { + var l int + _ = l + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GroupVersionResource) Size() (n int) { + var l int + _ = l + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Resource) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *LabelSelector) Size() (n int) { + var l int + _ = l + if len(m.MatchLabels) > 0 { + for k, v := range m.MatchLabels { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.MatchExpressions) > 0 { + for _, e := range m.MatchExpressions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *LabelSelectorRequirement) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Operator) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Values) > 0 { + for _, s := range m.Values { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ListMeta) Size() (n int) { + var l int + _ = l + l = len(m.SelfLink) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ResourceVersion) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RootPaths) Size() (n int) { + var l int + _ = l + if len(m.Paths) > 0 { + for _, s := range m.Paths { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ServerAddressByClientCIDR) Size() (n int) { + var l int + _ = l + l = len(m.ClientCIDR) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ServerAddress) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Status) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + if m.Details != nil { + l = m.Details.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 1 + sovGenerated(uint64(m.Code)) + return n +} + +func (m *StatusCause) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Field) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *StatusDetails) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Causes) > 0 { + for _, e := range m.Causes { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + n += 1 + sovGenerated(uint64(m.RetryAfterSeconds)) + return n +} + +func (m *Timestamp) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Seconds)) + n += 1 + sovGenerated(uint64(m.Nanos)) + return n +} + +func (m *TypeMeta) Size() (n int) { + var l int + _ = l + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIVersion) + 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 *APIGroup) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIGroup{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Versions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Versions), "GroupVersionForDiscovery", "GroupVersionForDiscovery", 1), `&`, ``, 1) + `,`, + `PreferredVersion:` + strings.Replace(strings.Replace(this.PreferredVersion.String(), "GroupVersionForDiscovery", "GroupVersionForDiscovery", 1), `&`, ``, 1) + `,`, + `ServerAddressByClientCIDRs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ServerAddressByClientCIDRs), "ServerAddressByClientCIDR", "ServerAddressByClientCIDR", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *APIGroupList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIGroupList{`, + `Groups:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Groups), "APIGroup", "APIGroup", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *APIResource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIResource{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Namespaced:` + fmt.Sprintf("%v", this.Namespaced) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `}`, + }, "") + return s +} +func (this *APIResourceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&APIResourceList{`, + `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, + `APIResources:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.APIResources), "APIResource", "APIResource", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Duration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Duration{`, + `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, + `}`, + }, "") + return s +} +func (this *ExportOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportOptions{`, + `Export:` + fmt.Sprintf("%v", this.Export) + `,`, + `Exact:` + fmt.Sprintf("%v", this.Exact) + `,`, + `}`, + }, "") + return s +} +func (this *GroupVersionForDiscovery) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GroupVersionForDiscovery{`, + `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelector) String() string { + if this == nil { + return "nil" + } + keysForMatchLabels := make([]string, 0, len(this.MatchLabels)) + for k := range this.MatchLabels { + keysForMatchLabels = append(keysForMatchLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) + mapStringForMatchLabels := "map[string]string{" + for _, k := range keysForMatchLabels { + mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k]) + } + mapStringForMatchLabels += "}" + s := strings.Join([]string{`&LabelSelector{`, + `MatchLabels:` + mapStringForMatchLabels + `,`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LabelSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LabelSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func (this *ListMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListMeta{`, + `SelfLink:` + fmt.Sprintf("%v", this.SelfLink) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `}`, + }, "") + return s +} +func (this *RootPaths) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RootPaths{`, + `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, + `}`, + }, "") + return s +} +func (this *ServerAddressByClientCIDR) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServerAddressByClientCIDR{`, + `ClientCIDR:` + fmt.Sprintf("%v", this.ClientCIDR) + `,`, + `ServerAddress:` + fmt.Sprintf("%v", this.ServerAddress) + `,`, + `}`, + }, "") + return s +} +func (this *Status) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Status{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "ListMeta", 1), `&`, ``, 1) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "StatusDetails", "StatusDetails", 1) + `,`, + `Code:` + fmt.Sprintf("%v", this.Code) + `,`, + `}`, + }, "") + return s +} +func (this *StatusCause) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusCause{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Field:` + fmt.Sprintf("%v", this.Field) + `,`, + `}`, + }, "") + return s +} +func (this *StatusDetails) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusDetails{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Group:` + fmt.Sprintf("%v", this.Group) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Causes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Causes), "StatusCause", "StatusCause", 1), `&`, ``, 1) + `,`, + `RetryAfterSeconds:` + fmt.Sprintf("%v", this.RetryAfterSeconds) + `,`, + `}`, + }, "") + return s +} +func (this *Timestamp) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Timestamp{`, + `Seconds:` + fmt.Sprintf("%v", this.Seconds) + `,`, + `Nanos:` + fmt.Sprintf("%v", this.Nanos) + `,`, + `}`, + }, "") + return s +} +func (this *TypeMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TypeMeta{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `}`, + }, "") + 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 *APIGroup) 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: APIGroup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: APIGroup: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Versions", 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.Versions = append(m.Versions, GroupVersionForDiscovery{}) + if err := m.Versions[len(m.Versions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreferredVersion", 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.PreferredVersion.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddressByClientCIDRs", 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.ServerAddressByClientCIDRs = append(m.ServerAddressByClientCIDRs, ServerAddressByClientCIDR{}) + if err := m.ServerAddressByClientCIDRs[len(m.ServerAddressByClientCIDRs)-1].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 *APIGroupList) 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: APIGroupList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: APIGroupList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Groups", 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.Groups = append(m.Groups, APIGroup{}) + if err := m.Groups[len(m.Groups)-1].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 *APIResource) 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: APIResource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: APIResource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespaced", 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.Namespaced = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = 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 *APIResourceList) 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: APIResourceList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: APIResourceList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupVersion", 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.GroupVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIResources", 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.APIResources = append(m.APIResources, APIResource{}) + if err := m.APIResources[len(m.APIResources)-1].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 *APIVersions) 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: APIVersions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: APIVersions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Versions", 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.Versions = append(m.Versions, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddressByClientCIDRs", 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.ServerAddressByClientCIDRs = append(m.ServerAddressByClientCIDRs, ServerAddressByClientCIDR{}) + if err := m.ServerAddressByClientCIDRs[len(m.ServerAddressByClientCIDRs)-1].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 *Duration) 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: Duration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Duration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + m.Duration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Duration |= (time.Duration(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *ExportOptions) 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: ExportOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExportOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Export", 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.Export = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Exact", 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.Exact = bool(v != 0) + 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 *GroupKind) 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: GroupKind: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupKind: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = 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 *GroupResource) 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: GroupResource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupResource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", 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.Resource = 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 *GroupVersion) 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: GroupVersion: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupVersion: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version = 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 *GroupVersionForDiscovery) 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: GroupVersionForDiscovery: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupVersionForDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupVersion", 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.GroupVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version = 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 *GroupVersionKind) 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: GroupVersionKind: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupVersionKind: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = 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 *GroupVersionResource) 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: GroupVersionResource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupVersionResource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", 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.Resource = 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 *LabelSelector) 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: LabelSelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelSelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchLabels", 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.MatchLabels == nil { + m.MatchLabels = make(map[string]string) + } + m.MatchLabels[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", 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.MatchExpressions = append(m.MatchExpressions, LabelSelectorRequirement{}) + if err := m.MatchExpressions[len(m.MatchExpressions)-1].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 *LabelSelectorRequirement) 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: LabelSelectorRequirement: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = LabelSelectorOperator(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", 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.Values = append(m.Values, 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 *ListMeta) 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: ListMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SelfLink", 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.SelfLink = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = 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 *RootPaths) 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: RootPaths: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RootPaths: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", 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.Paths = append(m.Paths, 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 *ServerAddressByClientCIDR) 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: ServerAddressByClientCIDR: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServerAddressByClientCIDR: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientCIDR", 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.ClientCIDR = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", 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.ServerAddress = 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 *Status) 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: Status: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Status = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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 = StatusReason(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { + m.Details = &StatusDetails{} + } + if err := m.Details.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Code |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *StatusCause) 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: StatusCause: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatusCause: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = CauseType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Field", 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.Field = 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 *StatusDetails) 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: StatusDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatusDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Causes", 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.Causes = append(m.Causes, StatusCause{}) + if err := m.Causes[len(m.Causes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RetryAfterSeconds", wireType) + } + m.RetryAfterSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.RetryAfterSeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *Timestamp) 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: Timestamp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Seconds", wireType) + } + m.Seconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Seconds |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nanos", wireType) + } + m.Nanos = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Nanos |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *TypeMeta) 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: TypeMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", 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.APIVersion = 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{ + // 1376 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0x47, 0xec, 0xae, 0x9f, 0x63, 0x92, 0x0e, 0xa9, 0x70, 0x2d, 0x11, 0x87, 0x45, 0xa0, + 0x54, 0x6a, 0x6d, 0x35, 0x02, 0x54, 0x15, 0xf1, 0x11, 0x27, 0x69, 0x15, 0x35, 0x49, 0xa3, 0x49, + 0x15, 0xa4, 0x16, 0x24, 0x36, 0xde, 0xb1, 0xb3, 0xb2, 0xbd, 0xbb, 0xec, 0xec, 0x56, 0x8d, 0x40, + 0xa2, 0x17, 0x24, 0x0e, 0x08, 0xe5, 0xc8, 0x05, 0xd4, 0x4a, 0xfc, 0x07, 0xfc, 0x13, 0x11, 0xa7, + 0x5e, 0x90, 0x38, 0xa0, 0x08, 0xca, 0x85, 0x2b, 0x57, 0x4e, 0xcc, 0xcc, 0xce, 0xec, 0x87, 0x53, + 0x93, 0x0d, 0xf4, 0xc0, 0x61, 0x15, 0xcf, 0xfb, 0x9e, 0xf7, 0x7e, 0xf3, 0xde, 0x0b, 0xbc, 0x39, + 0xb8, 0x46, 0x5b, 0x96, 0xd3, 0x1e, 0x04, 0x7b, 0xc4, 0xb3, 0x89, 0x4f, 0x68, 0xdb, 0x1d, 0xf4, + 0xdb, 0x86, 0x6b, 0xb5, 0x03, 0xfb, 0x3e, 0xf1, 0xa8, 0xe5, 0xd8, 0xc4, 0x6c, 0xf7, 0x89, 0x4d, + 0x3c, 0xc3, 0x27, 0x66, 0xcb, 0xf5, 0x1c, 0xdf, 0x41, 0xaf, 0x85, 0x6a, 0xad, 0x58, 0xad, 0xc5, + 0xd4, 0x5a, 0x4c, 0xad, 0x95, 0x50, 0x6b, 0x5c, 0xe9, 0x5b, 0xfe, 0x7e, 0xb0, 0xd7, 0xea, 0x3a, + 0xa3, 0x76, 0xdf, 0xe9, 0x3b, 0x6d, 0xa1, 0xbd, 0x17, 0xf4, 0xc4, 0x49, 0x1c, 0xc4, 0xaf, 0xd0, + 0x6a, 0xe3, 0xca, 0xb3, 0x83, 0xf1, 0x02, 0xdb, 0xb7, 0x46, 0x64, 0x3c, 0x88, 0xc6, 0xd5, 0x67, + 0x8b, 0x07, 0xbe, 0x35, 0x6c, 0x5b, 0xb6, 0x4f, 0x7d, 0x6f, 0x5c, 0x45, 0xff, 0xb1, 0x08, 0xda, + 0xf2, 0xf6, 0xfa, 0x4d, 0xcf, 0x09, 0x5c, 0xb4, 0x00, 0x53, 0xb6, 0x31, 0x22, 0xf5, 0xfc, 0x42, + 0x7e, 0xb1, 0xd2, 0x99, 0x3e, 0x3a, 0x6e, 0xe6, 0x9e, 0x1e, 0x37, 0xa7, 0xb6, 0x18, 0x0d, 0x0b, + 0x0e, 0x1a, 0x81, 0x26, 0x2f, 0x43, 0xeb, 0x85, 0x85, 0xe2, 0x62, 0x75, 0xe9, 0xbd, 0x56, 0xa6, + 0x9b, 0xb7, 0x84, 0x87, 0xdd, 0xf0, 0x78, 0xc3, 0xf1, 0x56, 0x2d, 0xda, 0x75, 0x18, 0xf7, 0xa0, + 0x33, 0x2b, 0xdd, 0x68, 0x92, 0x49, 0x71, 0xe4, 0x02, 0x7d, 0x91, 0x87, 0x59, 0xd7, 0x23, 0x3d, + 0xe2, 0x79, 0xc4, 0x94, 0xfc, 0x7a, 0x91, 0x45, 0xf7, 0x1c, 0xfc, 0xd6, 0xa5, 0xdf, 0xd9, 0xed, + 0x31, 0x07, 0xf8, 0x84, 0x4b, 0xf4, 0x7d, 0x1e, 0x1a, 0x94, 0x78, 0x4c, 0x6f, 0xd9, 0x34, 0x3d, + 0x42, 0x69, 0xe7, 0x60, 0x65, 0x68, 0x11, 0xdb, 0x5f, 0x59, 0x5f, 0xc5, 0xb4, 0x3e, 0x25, 0x32, + 0xf1, 0x7e, 0xc6, 0x88, 0x76, 0x26, 0x19, 0xea, 0xe8, 0x32, 0xa4, 0xc6, 0x44, 0x11, 0x8a, 0xff, + 0x21, 0x0e, 0xbd, 0x0f, 0xd3, 0xaa, 0x96, 0x1b, 0x16, 0xf5, 0xd1, 0x07, 0x50, 0xee, 0xf3, 0x03, + 0x65, 0x15, 0xe5, 0x11, 0xb6, 0x33, 0x46, 0xa8, 0x8c, 0x74, 0x5e, 0x90, 0x01, 0x95, 0xc5, 0x91, + 0x62, 0x69, 0x4e, 0x67, 0x75, 0xa9, 0x32, 0x21, 0x4c, 0xa8, 0x13, 0x78, 0x5d, 0x92, 0x01, 0x38, + 0x4b, 0x00, 0xfc, 0x2f, 0x75, 0x8d, 0x2e, 0x31, 0x19, 0x74, 0xf2, 0x8b, 0x5a, 0x07, 0x49, 0x39, + 0xd8, 0x8a, 0x38, 0x38, 0x21, 0xc5, 0xad, 0x0e, 0x2c, 0xdb, 0x14, 0x05, 0x4f, 0x58, 0xbd, 0xc5, + 0x68, 0x58, 0x70, 0xf4, 0x1f, 0xf2, 0x30, 0x93, 0x88, 0x43, 0x5c, 0xfa, 0x1a, 0x4c, 0xf7, 0x13, + 0x35, 0x97, 0x31, 0xcd, 0x49, 0xed, 0xe9, 0x24, 0x1e, 0x70, 0x4a, 0x12, 0xf5, 0xa0, 0xe2, 0x49, + 0x4b, 0x0a, 0xdd, 0x4b, 0xd9, 0x33, 0xa6, 0x82, 0x88, 0x5d, 0x25, 0x88, 0x14, 0xc7, 0xa6, 0xf5, + 0x3f, 0xc2, 0xec, 0x29, 0xbc, 0xa3, 0xc5, 0xc4, 0xa3, 0xe2, 0x85, 0x62, 0x77, 0x9d, 0xf0, 0x1e, + 0x4e, 0xc1, 0x61, 0xe1, 0xff, 0x81, 0xc3, 0xeb, 0xda, 0x37, 0x8f, 0x9a, 0xb9, 0x87, 0xbf, 0x2c, + 0xe4, 0xf4, 0x75, 0xd0, 0x56, 0x03, 0xd6, 0x6f, 0x78, 0x7a, 0xdf, 0x01, 0xcd, 0x94, 0xbf, 0x45, + 0x51, 0x8a, 0x9d, 0x57, 0xd4, 0xd3, 0x57, 0x32, 0x7f, 0x1d, 0x37, 0x6b, 0xbc, 0xb3, 0xb5, 0x14, + 0x01, 0x47, 0x2a, 0xfa, 0x87, 0x50, 0x5b, 0x7b, 0xe0, 0x3a, 0x9e, 0x7f, 0xdb, 0xf5, 0x45, 0x32, + 0x5e, 0x87, 0x32, 0x11, 0x04, 0x61, 0x4d, 0x8b, 0xc1, 0x1a, 0x8a, 0x61, 0xc9, 0x45, 0xaf, 0x42, + 0x89, 0x3c, 0x30, 0xba, 0xbe, 0x44, 0x5d, 0x4d, 0x8a, 0x95, 0xd6, 0x38, 0x11, 0x87, 0x3c, 0x66, + 0xbd, 0x22, 0x90, 0xc1, 0xc1, 0xc5, 0x35, 0x04, 0x30, 0x24, 0x76, 0x22, 0x0d, 0x21, 0x81, 0x43, + 0x5e, 0x84, 0xce, 0xc2, 0x24, 0x74, 0x26, 0xd2, 0x30, 0x84, 0x5a, 0xa8, 0xab, 0x1e, 0x4c, 0x26, + 0x0f, 0x97, 0x41, 0x53, 0xa0, 0x91, 0x5e, 0xa2, 0x5e, 0xa9, 0x0c, 0xe1, 0x48, 0x22, 0xe1, 0x6d, + 0x1f, 0x52, 0x28, 0xcf, 0xe6, 0xec, 0x12, 0x9c, 0x93, 0xd0, 0x90, 0xbe, 0x66, 0xa4, 0xd8, 0x39, + 0xf5, 0x58, 0x14, 0x3f, 0xe1, 0xe9, 0x73, 0xa8, 0x4f, 0xea, 0xaf, 0xff, 0xe1, 0x1d, 0x66, 0x0f, + 0x45, 0xff, 0x9a, 0x0d, 0x88, 0xa4, 0xa5, 0xec, 0xe5, 0xcb, 0xee, 0xe4, 0xf4, 0x3e, 0x94, 0xc8, + 0xc8, 0x77, 0x79, 0x98, 0x4b, 0x5d, 0xed, 0x4c, 0x15, 0x3f, 0x43, 0x50, 0x49, 0x70, 0x14, 0xcf, + 0x00, 0x8e, 0x9f, 0x0a, 0x50, 0xdb, 0x30, 0xf6, 0xc8, 0x70, 0x87, 0x0c, 0x49, 0xd7, 0x77, 0x3c, + 0xf4, 0x19, 0x54, 0x47, 0x86, 0xdf, 0xdd, 0x17, 0x54, 0x35, 0x2a, 0xd6, 0x32, 0x36, 0x91, 0x94, + 0xa9, 0xd6, 0x66, 0x6c, 0x67, 0xcd, 0xf6, 0xd9, 0x90, 0x7d, 0x51, 0xc6, 0x54, 0x4d, 0x70, 0x70, + 0xd2, 0x9d, 0x18, 0xf1, 0xe2, 0xcc, 0x5e, 0x2d, 0xef, 0x24, 0xff, 0x62, 0xb5, 0x48, 0xc5, 0x80, + 0xc9, 0x27, 0x81, 0xe5, 0x91, 0x11, 0x6b, 0x46, 0xf1, 0x88, 0xdf, 0x1c, 0x73, 0x80, 0x4f, 0xb8, + 0x6c, 0xbc, 0x0b, 0xb3, 0xe3, 0xd1, 0xa3, 0x59, 0x28, 0x0e, 0xc8, 0x41, 0x58, 0x31, 0xcc, 0x7f, + 0xa2, 0x39, 0x28, 0xdd, 0x37, 0x86, 0x81, 0x7c, 0x8f, 0x38, 0x3c, 0x5c, 0x2f, 0x5c, 0xcb, 0xeb, + 0xac, 0x35, 0xd7, 0x27, 0x05, 0x82, 0x5e, 0x4e, 0x18, 0xea, 0x54, 0x65, 0x54, 0xc5, 0x5b, 0xe4, + 0x20, 0xb4, 0xba, 0x06, 0x9a, 0xe3, 0xf2, 0xb5, 0xcc, 0xf1, 0x64, 0xdd, 0x2f, 0xa9, 0x5a, 0xde, + 0x96, 0x74, 0xd6, 0x19, 0x2f, 0xa4, 0xcc, 0x2b, 0x06, 0x8e, 0x54, 0x91, 0x0e, 0x65, 0x11, 0x0f, + 0x65, 0x80, 0xe0, 0x53, 0x04, 0x78, 0x33, 0xdc, 0x15, 0x14, 0x2c, 0x39, 0xfa, 0xa7, 0xa0, 0xf1, + 0x29, 0xb9, 0x49, 0x7c, 0x83, 0x43, 0x88, 0x92, 0x61, 0x6f, 0xc3, 0xb2, 0x07, 0x32, 0xb4, 0x08, + 0x42, 0x3b, 0x92, 0x8e, 0x23, 0x09, 0xb4, 0x0c, 0x33, 0x0a, 0x4e, 0xbb, 0x29, 0x8c, 0xbe, 0x24, + 0x95, 0x66, 0x70, 0x9a, 0x8d, 0xc7, 0xe5, 0xf5, 0xcb, 0x50, 0xc1, 0x8e, 0xe3, 0x6f, 0x1b, 0xfe, + 0x3e, 0x45, 0x4d, 0x28, 0xb9, 0xfc, 0x87, 0x1c, 0x79, 0x15, 0xfe, 0x18, 0x04, 0x07, 0x87, 0x74, + 0xfd, 0xab, 0x3c, 0x5c, 0x9c, 0x38, 0x80, 0xf8, 0x42, 0xd1, 0x8d, 0x4e, 0x32, 0xfc, 0x68, 0xa1, + 0x88, 0xe5, 0x70, 0x42, 0x0a, 0xbd, 0x0d, 0xb5, 0xd4, 0xd4, 0x92, 0x17, 0xb8, 0x20, 0xd5, 0x6a, + 0x29, 0x6f, 0x38, 0x2d, 0xab, 0xff, 0x59, 0x80, 0xf2, 0x8e, 0x6f, 0xf8, 0x01, 0x45, 0x1f, 0x81, + 0x36, 0x62, 0x09, 0x34, 0x0d, 0xdf, 0x10, 0x9e, 0xb3, 0x6f, 0x56, 0x2a, 0xf7, 0x71, 0xa6, 0x15, + 0x05, 0x47, 0x26, 0xf9, 0x60, 0xa3, 0xc2, 0x91, 0x8c, 0x2f, 0x1a, 0x6c, 0xa1, 0x7b, 0x2c, 0xb9, + 0xbc, 0x5b, 0xb0, 0x5d, 0x89, 0x1a, 0x7d, 0xd5, 0x01, 0xa2, 0x6e, 0xb1, 0x19, 0x92, 0xb1, 0xe2, + 0xa3, 0xb7, 0xa0, 0xec, 0x11, 0x83, 0xb2, 0x9a, 0x4d, 0x09, 0xc9, 0x79, 0x65, 0x12, 0x0b, 0x2a, + 0x43, 0xd7, 0xb4, 0x34, 0x2e, 0xce, 0x58, 0x4a, 0xa3, 0x7b, 0x70, 0xce, 0x64, 0x61, 0x59, 0xac, + 0x2f, 0x94, 0xc4, 0x45, 0xdf, 0xc8, 0xba, 0x5c, 0x08, 0x6b, 0xab, 0xa1, 0x6e, 0xa7, 0xca, 0x83, + 0x92, 0x07, 0xac, 0x2c, 0xf2, 0xbe, 0xda, 0x75, 0x4c, 0x52, 0x2f, 0x33, 0xcb, 0xa5, 0xb8, 0xaf, + 0xae, 0x30, 0x1a, 0x16, 0x1c, 0xfd, 0x90, 0x6d, 0x4a, 0xa1, 0xa5, 0x15, 0x23, 0xa0, 0x04, 0x5d, + 0x8d, 0xae, 0x11, 0x16, 0xfc, 0xa2, 0xd2, 0xb9, 0x73, 0xe0, 0x12, 0x76, 0x89, 0x8a, 0x10, 0xe3, + 0x87, 0xe8, 0x06, 0x89, 0x24, 0x15, 0x4e, 0x49, 0x12, 0x6b, 0xd1, 0x3d, 0x8b, 0x0c, 0x55, 0xa3, + 0x8f, 0x5a, 0xf4, 0x0d, 0x4e, 0xc4, 0x21, 0x4f, 0xff, 0x96, 0xf5, 0xcf, 0xd4, 0xe5, 0x32, 0x2c, + 0xbf, 0x51, 0xef, 0x2f, 0x64, 0xd8, 0x27, 0x26, 0x4e, 0x19, 0x74, 0x17, 0xca, 0x5d, 0x7e, 0x3f, + 0xf5, 0x0f, 0xc7, 0xd2, 0x99, 0x6a, 0x21, 0x52, 0x13, 0x63, 0x49, 0x1c, 0x19, 0x96, 0x42, 0x8b, + 0xe8, 0x26, 0x9c, 0xf7, 0x08, 0xeb, 0x79, 0xcb, 0x3d, 0x9f, 0x78, 0x3b, 0xa4, 0xeb, 0xd8, 0x66, + 0x58, 0xf2, 0x52, 0x94, 0xe4, 0xf3, 0x78, 0x5c, 0x00, 0x9f, 0xd4, 0x61, 0xab, 0xce, 0xd4, 0x1d, + 0xb6, 0xc1, 0xf1, 0xbc, 0x53, 0x69, 0x26, 0x5c, 0xf6, 0xa2, 0xbc, 0x2b, 0x65, 0xc5, 0xe7, 0xe9, + 0xb1, 0x0d, 0xdb, 0x09, 0xe1, 0x5e, 0x8a, 0xd3, 0xb3, 0xc5, 0x89, 0x38, 0xe4, 0x5d, 0x9f, 0xe3, + 0x13, 0xec, 0xcb, 0xc7, 0xcd, 0xdc, 0x21, 0xfb, 0x1e, 0x3d, 0x96, 0xd3, 0xec, 0x1e, 0x54, 0xb8, + 0x37, 0xf6, 0x20, 0x46, 0xee, 0xf3, 0x76, 0xa9, 0x7f, 0x0c, 0x1a, 0x87, 0x92, 0xe8, 0x95, 0xaa, + 0x3a, 0xf9, 0x89, 0xd5, 0x61, 0x0d, 0x89, 0x25, 0x3e, 0xdd, 0x1a, 0xa3, 0x86, 0x14, 0xaf, 0xfb, + 0x38, 0x21, 0xd5, 0xb9, 0x72, 0xf4, 0xdb, 0x7c, 0xee, 0x09, 0xfb, 0x7e, 0x66, 0xdf, 0xc3, 0xa7, + 0xf3, 0xf9, 0x23, 0xf6, 0x3d, 0x61, 0xdf, 0xaf, 0xec, 0x3b, 0xfc, 0x7d, 0x3e, 0x77, 0xb7, 0x9a, + 0x28, 0xe4, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x22, 0x00, 0xde, 0x9c, 0x10, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/generated.proto b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/generated.proto new file mode 100644 index 0000000000..cab7058aac --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/generated.proto @@ -0,0 +1,378 @@ +/* +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.api.unversioned; + +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 = "unversioned"; + +// APIGroup contains the name, the supported versions, and the preferred version +// of a group. +message APIGroup { + // name is the name of the group. + optional string name = 1; + + // versions are the versions supported in this group. + repeated GroupVersionForDiscovery versions = 2; + + // preferredVersion is the version preferred by the API server, which + // probably is the storage version. + optional GroupVersionForDiscovery preferredVersion = 3; + + // a map of client CIDR to server address that is serving this group. + // This is to help clients reach servers in the most network-efficient way possible. + // Clients can use the appropriate server address as per the CIDR that they match. + // In case of multiple matches, clients should use the longest matching CIDR. + // The server returns only those CIDRs that it thinks that the client can match. + // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 4; +} + +// APIGroupList is a list of APIGroup, to allow clients to discover the API at +// /apis. +message APIGroupList { + // groups is a list of APIGroup. + repeated APIGroup groups = 1; +} + +// APIResource specifies the name of a resource and whether it is namespaced. +message APIResource { + // name is the name of the resource. + optional string name = 1; + + // namespaced indicates if a resource is namespaced or not. + optional bool namespaced = 2; + + // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + optional string kind = 3; +} + +// APIResourceList is a list of APIResource, it is used to expose the name of the +// resources supported in a specific group and version, and if the resource +// is namespaced. +message APIResourceList { + // groupVersion is the group and version this APIResourceList is for. + optional string groupVersion = 1; + + // resources contains the name of the resources and if they are namespaced. + repeated APIResource resources = 2; +} + +// APIVersions lists the versions that are available, to allow clients to +// discover the API at /api, which is the root path of the legacy v1 API. +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message APIVersions { + // versions are the api versions that are available. + repeated string versions = 1; + + // a map of client CIDR to server address that is serving this group. + // This is to help clients reach servers in the most network-efficient way possible. + // Clients can use the appropriate server address as per the CIDR that they match. + // In case of multiple matches, clients should use the longest matching CIDR. + // The server returns only those CIDRs that it thinks that the client can match. + // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 2; +} + +// Duration is a wrapper around time.Duration which supports correct +// marshaling to YAML and JSON. In particular, it marshals into strings, which +// can be used as map keys in json. +message Duration { + optional int64 duration = 1; +} + +// ExportOptions is the query options to the standard REST get call. +message ExportOptions { + // Should this value be exported. Export strips fields that a user can not specify.` + optional bool export = 1; + + // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + optional bool exact = 2; +} + +// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying +// concepts during lookup stages without having partially valid types +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message GroupKind { + optional string group = 1; + + optional string kind = 2; +} + +// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying +// concepts during lookup stages without having partially valid types +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message GroupResource { + optional string group = 1; + + optional string resource = 2; +} + +// GroupVersion contains the "group" and the "version", which uniquely identifies the API. +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message GroupVersion { + optional string group = 1; + + optional string version = 2; +} + +// GroupVersion contains the "group/version" and "version" string of a version. +// It is made a struct to keep extensibility. +message GroupVersionForDiscovery { + // groupVersion specifies the API group and version in the form "group/version" + optional string groupVersion = 1; + + // version specifies the version in the form of "version". This is to save + // the clients the trouble of splitting the GroupVersion. + optional string version = 2; +} + +// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion +// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message GroupVersionKind { + optional string group = 1; + + optional string version = 2; + + optional string kind = 3; +} + +// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion +// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message GroupVersionResource { + optional string group = 1; + + optional string version = 2; + + optional string resource = 3; +} + +// A label selector is a label query over a set of resources. The result of matchLabels and +// matchExpressions are ANDed. An empty label selector matches all objects. A null +// label selector matches no objects. +message LabelSelector { + // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + // map is equivalent to an element of matchExpressions, whose key field is "key", the + // operator is "In", and the values array contains only "value". The requirements are ANDed. + map matchLabels = 1; + + // matchExpressions is a list of label selector requirements. The requirements are ANDed. + repeated LabelSelectorRequirement matchExpressions = 2; +} + +// A label selector requirement is a selector that contains values, a key, and an operator that +// relates the key and values. +message LabelSelectorRequirement { + // key is the label key that the selector applies to. + optional string key = 1; + + // operator represents a key's relationship to a set of values. + // Valid operators ard In, NotIn, Exists and DoesNotExist. + optional string operator = 2; + + // values is an array of string values. If the operator is In or NotIn, + // the values array must be non-empty. If the operator is Exists or DoesNotExist, + // the values array must be empty. This array is replaced during a strategic + // merge patch. + repeated string values = 3; +} + +// ListMeta describes metadata that synthetic resources must have, including lists and +// various status objects. A resource may have only one of {ObjectMeta, ListMeta}. +message ListMeta { + // SelfLink is a URL representing this object. + // Populated by the system. + // Read-only. + optional string selfLink = 1; + + // String that identifies the server's internal version of this object that + // can be used by clients to determine when objects have changed. + // Value must be treated as opaque by clients and passed unmodified back to the server. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + optional string resourceVersion = 2; +} + +// RootPaths lists the paths available at root. +// For example: "/healthz", "/apis". +message RootPaths { + // paths are the paths available at root. + repeated string paths = 1; +} + +// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. +message ServerAddressByClientCIDR { + // The CIDR with which clients can match their IP to figure out the server address that they should use. + optional string clientCIDR = 1; + + // Address of this server, suitable for a client that matches the above CIDR. + // This can be a hostname, hostname:port, IP or IP:port. + optional string serverAddress = 2; +} + +// Status is a return value for calls that don't return other objects. +message Status { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional ListMeta metadata = 1; + + // Status of the operation. + // One of: "Success" or "Failure". + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional string status = 2; + + // A human-readable description of the status of this operation. + optional string message = 3; + + // A machine-readable description of why this operation is in the + // "Failure" status. If this value is empty there + // is no information available. A Reason clarifies an HTTP status + // code but does not override it. + optional string reason = 4; + + // Extended data associated with the reason. Each reason may define its + // own extended details. This field is optional and the data returned + // is not guaranteed to conform to any schema except that defined by + // the reason type. + optional StatusDetails details = 5; + + // Suggested HTTP return code for this status, 0 if not set. + optional int32 code = 6; +} + +// StatusCause provides more information about an api.Status failure, including +// cases when multiple errors are encountered. +message StatusCause { + // A machine-readable description of the cause of the error. If this value is + // empty there is no information available. + optional string reason = 1; + + // A human-readable description of the cause of the error. This field may be + // presented as-is to a reader. + optional string message = 2; + + // The field of the resource that has caused this error, as named by its JSON + // serialization. May include dot and postfix notation for nested attributes. + // Arrays are zero-indexed. Fields may appear more than once in an array of + // causes due to fields having multiple errors. + // Optional. + // + // Examples: + // "name" - the field "name" on the current resource + // "items[0].name" - the field "name" on the first array entry in "items" + optional string field = 3; +} + +// StatusDetails is a set of additional properties that MAY be set by the +// server to provide additional information about a response. The Reason +// field of a Status object defines what attributes will be set. Clients +// must ignore fields that do not match the defined type of each attribute, +// and should assume that any attribute may be empty, invalid, or under +// defined. +message StatusDetails { + // The name attribute of the resource associated with the status StatusReason + // (when there is a single name which can be described). + optional string name = 1; + + // The group attribute of the resource associated with the status StatusReason. + optional string group = 2; + + // The kind attribute of the resource associated with the status StatusReason. + // On some operations may differ from the requested resource Kind. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional string kind = 3; + + // The Causes array includes more details associated with the StatusReason + // failure. Not all StatusReasons may provide detailed causes. + repeated StatusCause causes = 4; + + // If specified, the time in seconds before the operation should be retried. + optional int32 retryAfterSeconds = 5; +} + +// Time is a wrapper around time.Time which supports correct +// marshaling to YAML and JSON. Wrappers are provided for many +// of the factory methods that the time package offers. +// +// +protobuf.options.marshal=false +// +protobuf.as=Timestamp +// +protobuf.options.(gogoproto.goproto_stringer)=false +message Time { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + optional int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. This field may be limited in precision depending on context. + optional int32 nanos = 2; +} + +// Timestamp is a struct that is equivalent to Time, but intended for +// protobuf marshalling/unmarshalling. It is generated into a serialization +// that matches Time. Do not use in Go structs. +message Timestamp { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + optional int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. This field may be limited in precision depending on context. + optional int32 nanos = 2; +} + +// TypeMeta describes an individual object in an API response or request +// with strings representing the type of the object and its API schema version. +// Structures that are versioned or persisted should inline TypeMeta. +message TypeMeta { + // Kind is a string value representing the REST resource this object represents. + // Servers may infer this from the endpoint the client submits requests to. + // Cannot be updated. + // In CamelCase. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional string kind = 1; + + // APIVersion defines the versioned schema of this representation of an object. + // Servers should convert recognized schemas to the latest internal value, and + // may reject unrecognized values. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + optional string apiVersion = 2; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/group_version.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/group_version.go new file mode 100644 index 0000000000..8f74789217 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/group_version.go @@ -0,0 +1,287 @@ +/* +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 unversioned + +import ( + "encoding/json" + "fmt" + "strings" +) + +// ParseResourceArg takes the common style of string which may be either `resource.group.com` or `resource.version.group.com` +// and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended +// but with a knowledge of all GroupVersions, calling code can take a very good guess. If there are only two segments, then +// `*GroupVersionResource` is nil. +// `resource.group.com` -> `group=com, version=group, resource=resource` and `group=group.com, resource=resource` +func ParseResourceArg(arg string) (*GroupVersionResource, GroupResource) { + var gvr *GroupVersionResource + if strings.Count(arg, ".") >= 2 { + s := strings.SplitN(arg, ".", 3) + gvr = &GroupVersionResource{Group: s[2], Version: s[1], Resource: s[0]} + } + + return gvr, ParseGroupResource(arg) +} + +// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying +// concepts during lookup stages without having partially valid types +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +type GroupResource struct { + Group string `protobuf:"bytes,1,opt,name=group"` + Resource string `protobuf:"bytes,2,opt,name=resource"` +} + +func (gr GroupResource) WithVersion(version string) GroupVersionResource { + return GroupVersionResource{Group: gr.Group, Version: version, Resource: gr.Resource} +} + +func (gr GroupResource) IsEmpty() bool { + return len(gr.Group) == 0 && len(gr.Resource) == 0 +} + +func (gr *GroupResource) String() string { + if len(gr.Group) == 0 { + return gr.Resource + } + return gr.Resource + "." + gr.Group +} + +// ParseGroupResource turns "resource.group" string into a GroupResource struct. Empty strings are allowed +// for each field. +func ParseGroupResource(gr string) GroupResource { + if i := strings.Index(gr, "."); i == -1 { + return GroupResource{Resource: gr} + } else { + return GroupResource{Group: gr[i+1:], Resource: gr[:i]} + } +} + +// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion +// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +type GroupVersionResource struct { + Group string `protobuf:"bytes,1,opt,name=group"` + Version string `protobuf:"bytes,2,opt,name=version"` + Resource string `protobuf:"bytes,3,opt,name=resource"` +} + +func (gvr GroupVersionResource) IsEmpty() bool { + return len(gvr.Group) == 0 && len(gvr.Version) == 0 && len(gvr.Resource) == 0 +} + +func (gvr GroupVersionResource) GroupResource() GroupResource { + return GroupResource{Group: gvr.Group, Resource: gvr.Resource} +} + +func (gvr GroupVersionResource) GroupVersion() GroupVersion { + return GroupVersion{Group: gvr.Group, Version: gvr.Version} +} + +func (gvr *GroupVersionResource) String() string { + return strings.Join([]string{gvr.Group, "/", gvr.Version, ", Resource=", gvr.Resource}, "") +} + +// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying +// concepts during lookup stages without having partially valid types +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +type GroupKind struct { + Group string `protobuf:"bytes,1,opt,name=group"` + Kind string `protobuf:"bytes,2,opt,name=kind"` +} + +func (gk GroupKind) IsEmpty() bool { + return len(gk.Group) == 0 && len(gk.Kind) == 0 +} + +func (gk GroupKind) WithVersion(version string) GroupVersionKind { + return GroupVersionKind{Group: gk.Group, Version: version, Kind: gk.Kind} +} + +func (gk *GroupKind) String() string { + if len(gk.Group) == 0 { + return gk.Kind + } + return gk.Kind + "." + gk.Group +} + +// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion +// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +type GroupVersionKind struct { + Group string `protobuf:"bytes,1,opt,name=group"` + Version string `protobuf:"bytes,2,opt,name=version"` + Kind string `protobuf:"bytes,3,opt,name=kind"` +} + +// IsEmpty returns true if group, version, and kind are empty +func (gvk GroupVersionKind) IsEmpty() bool { + return len(gvk.Group) == 0 && len(gvk.Version) == 0 && len(gvk.Kind) == 0 +} + +func (gvk GroupVersionKind) GroupKind() GroupKind { + return GroupKind{Group: gvk.Group, Kind: gvk.Kind} +} + +func (gvk GroupVersionKind) GroupVersion() GroupVersion { + return GroupVersion{Group: gvk.Group, Version: gvk.Version} +} + +func (gvk GroupVersionKind) String() string { + return gvk.Group + "/" + gvk.Version + ", Kind=" + gvk.Kind +} + +// GroupVersion contains the "group" and the "version", which uniquely identifies the API. +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +type GroupVersion struct { + Group string `protobuf:"bytes,1,opt,name=group"` + Version string `protobuf:"bytes,2,opt,name=version"` +} + +// IsEmpty returns true if group and version are empty +func (gv GroupVersion) IsEmpty() bool { + return len(gv.Group) == 0 && len(gv.Version) == 0 +} + +// String puts "group" and "version" into a single "group/version" string. For the legacy v1 +// it returns "v1". +func (gv GroupVersion) String() string { + // special case the internal apiVersion for the legacy kube types + if gv.IsEmpty() { + return "" + } + + // special case of "v1" for backward compatibility + if len(gv.Group) == 0 && gv.Version == "v1" { + return gv.Version + } + if len(gv.Group) > 0 { + return gv.Group + "/" + gv.Version + } + return gv.Version +} + +// ParseGroupVersion turns "group/version" string into a GroupVersion struct. It reports error +// if it cannot parse the string. +func ParseGroupVersion(gv string) (GroupVersion, error) { + // this can be the internal version for the legacy kube types + // TODO once we've cleared the last uses as strings, this special case should be removed. + if (len(gv) == 0) || (gv == "/") { + return GroupVersion{}, nil + } + + switch strings.Count(gv, "/") { + case 0: + return GroupVersion{"", gv}, nil + case 1: + i := strings.Index(gv, "/") + return GroupVersion{gv[:i], gv[i+1:]}, nil + default: + return GroupVersion{}, fmt.Errorf("unexpected GroupVersion string: %v", gv) + } +} + +// WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind. +func (gv GroupVersion) WithKind(kind string) GroupVersionKind { + return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind} +} + +// WithResource creates a GroupVersionResource based on the method receiver's GroupVersion and the passed Resource. +func (gv GroupVersion) WithResource(resource string) GroupVersionResource { + return GroupVersionResource{Group: gv.Group, Version: gv.Version, Resource: resource} +} + +// MarshalJSON implements the json.Marshaller interface. +func (gv GroupVersion) MarshalJSON() ([]byte, error) { + s := gv.String() + if strings.Count(s, "/") > 1 { + return []byte{}, fmt.Errorf("illegal GroupVersion %v: contains more than one /", s) + } + return json.Marshal(s) +} + +func (gv *GroupVersion) unmarshal(value []byte) error { + var s string + if err := json.Unmarshal(value, &s); err != nil { + return err + } + parsed, err := ParseGroupVersion(s) + if err != nil { + return err + } + *gv = parsed + return nil +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +func (gv *GroupVersion) UnmarshalJSON(value []byte) error { + return gv.unmarshal(value) +} + +// UnmarshalTEXT implements the Ugorji's encoding.TextUnmarshaler interface. +func (gv *GroupVersion) UnmarshalText(value []byte) error { + return gv.unmarshal(value) +} + +// ToAPIVersionAndKind is a convenience method for satisfying runtime.Object on types that +// do not use TypeMeta. +func (gvk *GroupVersionKind) ToAPIVersionAndKind() (string, string) { + if gvk == nil { + return "", "" + } + return gvk.GroupVersion().String(), gvk.Kind +} + +// FromAPIVersionAndKind returns a GVK representing the provided fields for types that +// do not use TypeMeta. This method exists to support test types and legacy serializations +// that have a distinct group and kind. +// TODO: further reduce usage of this method. +func FromAPIVersionAndKind(apiVersion, kind string) GroupVersionKind { + if gv, err := ParseGroupVersion(apiVersion); err == nil { + return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind} + } + return GroupVersionKind{Kind: kind} +} + +// All objects that are serialized from a Scheme encode their type information. This interface is used +// by serialization to set type information from the Scheme onto the serialized version of an object. +// For objects that cannot be serialized or have unique requirements, this interface may be a no-op. +// TODO: this belongs in pkg/runtime, move unversioned.GVK into runtime. +type ObjectKind interface { + // SetGroupVersionKind sets or clears the intended serialized kind of an object. Passing kind nil + // should clear the current setting. + SetGroupVersionKind(kind GroupVersionKind) + // GroupVersionKind returns the stored group, version, and kind of an object, or nil if the object does + // not expose or provide these fields. + GroupVersionKind() GroupVersionKind +} + +// EmptyObjectKind implements the ObjectKind interface as a noop +// TODO: this belongs in pkg/runtime, move unversioned.GVK into runtime. +var EmptyObjectKind = emptyObjectKind{} + +type emptyObjectKind struct{} + +// SetGroupVersionKind implements the ObjectKind interface +func (emptyObjectKind) SetGroupVersionKind(gvk GroupVersionKind) {} + +// GroupVersionKind implements the ObjectKind interface +func (emptyObjectKind) GroupVersionKind() GroupVersionKind { return GroupVersionKind{} } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/helpers.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/helpers.go new file mode 100644 index 0000000000..57a9a0efc8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/helpers.go @@ -0,0 +1,183 @@ +/* +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 unversioned + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/labels" + "k8s.io/client-go/1.4/pkg/util/sets" +) + +// LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements +// labels.Selector +// Note: This function should be kept in sync with the selector methods in pkg/labels/selector.go +func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error) { + if ps == nil { + return labels.Nothing(), nil + } + if len(ps.MatchLabels)+len(ps.MatchExpressions) == 0 { + return labels.Everything(), nil + } + selector := labels.NewSelector() + for k, v := range ps.MatchLabels { + r, err := labels.NewRequirement(k, labels.EqualsOperator, sets.NewString(v)) + if err != nil { + return nil, err + } + selector = selector.Add(*r) + } + for _, expr := range ps.MatchExpressions { + var op labels.Operator + switch expr.Operator { + case LabelSelectorOpIn: + op = labels.InOperator + case LabelSelectorOpNotIn: + op = labels.NotInOperator + case LabelSelectorOpExists: + op = labels.ExistsOperator + case LabelSelectorOpDoesNotExist: + op = labels.DoesNotExistOperator + default: + return nil, fmt.Errorf("%q is not a valid pod selector operator", expr.Operator) + } + r, err := labels.NewRequirement(expr.Key, op, sets.NewString(expr.Values...)) + if err != nil { + return nil, err + } + selector = selector.Add(*r) + } + return selector, nil +} + +// LabelSelectorAsMap converts the LabelSelector api type into a map of strings, ie. the +// original structure of a label selector. Operators that cannot be converted into plain +// labels (Exists, DoesNotExist, NotIn, and In with more than one value) will result in +// an error. +func LabelSelectorAsMap(ps *LabelSelector) (map[string]string, error) { + if ps == nil { + return nil, nil + } + selector := map[string]string{} + for k, v := range ps.MatchLabels { + selector[k] = v + } + for _, expr := range ps.MatchExpressions { + switch expr.Operator { + case LabelSelectorOpIn: + if len(expr.Values) != 1 { + return selector, fmt.Errorf("operator %q without a single value cannot be converted into the old label selector format", expr.Operator) + } + // Should we do anything in case this will override a previous key-value pair? + selector[expr.Key] = expr.Values[0] + case LabelSelectorOpNotIn, LabelSelectorOpExists, LabelSelectorOpDoesNotExist: + return selector, fmt.Errorf("operator %q cannot be converted into the old label selector format", expr.Operator) + default: + return selector, fmt.Errorf("%q is not a valid selector operator", expr.Operator) + } + } + return selector, nil +} + +// ParseToLabelSelector parses a string representing a selector into a LabelSelector object. +// Note: This function should be kept in sync with the parser in pkg/labels/selector.go +func ParseToLabelSelector(selector string) (*LabelSelector, error) { + reqs, err := labels.ParseToRequirements(selector) + if err != nil { + return nil, fmt.Errorf("couldn't parse the selector string \"%s\": %v", selector, err) + } + + labelSelector := &LabelSelector{ + MatchLabels: map[string]string{}, + MatchExpressions: []LabelSelectorRequirement{}, + } + for _, req := range reqs { + var op LabelSelectorOperator + switch req.Operator() { + case labels.EqualsOperator, labels.DoubleEqualsOperator: + vals := req.Values() + if vals.Len() != 1 { + return nil, fmt.Errorf("equals operator must have exactly one value") + } + val, ok := vals.PopAny() + if !ok { + return nil, fmt.Errorf("equals operator has exactly one value but it cannot be retrieved") + } + labelSelector.MatchLabels[req.Key()] = val + continue + case labels.InOperator: + op = LabelSelectorOpIn + case labels.NotInOperator: + op = LabelSelectorOpNotIn + case labels.ExistsOperator: + op = LabelSelectorOpExists + case labels.DoesNotExistOperator: + op = LabelSelectorOpDoesNotExist + case labels.GreaterThanOperator, labels.LessThanOperator: + // 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: + return nil, fmt.Errorf("%q is not a valid label selector operator", req.Operator()) + } + labelSelector.MatchExpressions = append(labelSelector.MatchExpressions, LabelSelectorRequirement{ + Key: req.Key(), + Operator: op, + Values: req.Values().List(), + }) + } + return labelSelector, nil +} + +// SetAsLabelSelector converts the labels.Set object into a LabelSelector api object. +func SetAsLabelSelector(ls labels.Set) *LabelSelector { + if ls == nil { + return nil + } + + selector := &LabelSelector{ + MatchLabels: make(map[string]string), + } + for label, value := range ls { + selector.MatchLabels[label] = value + } + + return selector +} + +// FormatLabelSelector convert labelSelector into plain string +func FormatLabelSelector(labelSelector *LabelSelector) string { + selector, err := LabelSelectorAsSelector(labelSelector) + if err != nil { + return "" + } + + l := selector.String() + if len(l) == 0 { + l = "" + } + return l +} + +func ExtractGroupVersions(l *APIGroupList) []string { + var groupVersions []string + for _, g := range l.Groups { + for _, gv := range g.Versions { + groupVersions = append(groupVersions, gv.GroupVersion) + } + } + return groupVersions +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/meta.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/meta.go new file mode 100644 index 0000000000..48009da162 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/meta.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 unversioned + +// ListMetaAccessor retrieves the list interface from an object +// TODO: move this, and TypeMeta and ListMeta, to a different package +type ListMetaAccessor interface { + GetListMeta() List +} + +// List lets you work with list metadata from any of the versioned or +// internal API objects. Attempting to set or retrieve a field on an object that does +// not support that field will be a no-op and return a default value. +// TODO: move this, and TypeMeta and ListMeta, to a different package +type List interface { + GetResourceVersion() string + SetResourceVersion(version string) + GetSelfLink() string + SetSelfLink(selfLink string) +} + +// Type exposes the type and APIVersion of versioned or internal API objects. +// TODO: move this, and TypeMeta and ListMeta, to a different package +type Type interface { + GetAPIVersion() string + SetAPIVersion(version string) + GetKind() string + SetKind(kind string) +} + +func (meta *ListMeta) GetResourceVersion() string { return meta.ResourceVersion } +func (meta *ListMeta) SetResourceVersion(version string) { meta.ResourceVersion = version } +func (meta *ListMeta) GetSelfLink() string { return meta.SelfLink } +func (meta *ListMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink } + +func (obj *TypeMeta) GetObjectKind() ObjectKind { return obj } + +// SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta +func (obj *TypeMeta) SetGroupVersionKind(gvk GroupVersionKind) { + obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() +} + +// GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta +func (obj *TypeMeta) GroupVersionKind() GroupVersionKind { + return FromAPIVersionAndKind(obj.APIVersion, obj.Kind) +} + +func (obj *ListMeta) GetListMeta() List { return obj } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/register.go new file mode 100644 index 0000000000..9af0566931 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/register.go @@ -0,0 +1,25 @@ +/* +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 unversioned + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = GroupVersion{Group: "", Version: ""} + +// Kind takes an unqualified kind and returns back a Group qualified GroupKind +func Kind(kind string) GroupKind { + return SchemeGroupVersion.WithKind(kind).GroupKind() +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/time.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/time.go new file mode 100644 index 0000000000..7e6281a205 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/time.go @@ -0,0 +1,166 @@ +/* +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 unversioned + +import ( + "encoding/json" + "time" + + "github.com/google/gofuzz" +) + +// Time is a wrapper around time.Time which supports correct +// marshaling to YAML and JSON. Wrappers are provided for many +// of the factory methods that the time package offers. +// +// +protobuf.options.marshal=false +// +protobuf.as=Timestamp +// +protobuf.options.(gogoproto.goproto_stringer)=false +type Time struct { + time.Time `protobuf:"-"` +} + +// DeepCopy returns a deep-copy of the Time value. The underlying time.Time +// type is effectively immutable in the time API, so it is safe to +// copy-by-assign, despite the presence of (unexported) Pointer fields. +func (t Time) DeepCopy() Time { + return t +} + +// String returns the representation of the time. +func (t Time) String() string { + return t.Time.String() +} + +// NewTime returns a wrapped instance of the provided time +func NewTime(time time.Time) Time { + return Time{time} +} + +// Date returns the Time corresponding to the supplied parameters +// by wrapping time.Date. +func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time { + return Time{time.Date(year, month, day, hour, min, sec, nsec, loc)} +} + +// Now returns the current local time. +func Now() Time { + return Time{time.Now()} +} + +// IsZero returns true if the value is nil or time is zero. +func (t *Time) IsZero() bool { + if t == nil { + return true + } + return t.Time.IsZero() +} + +// Before reports whether the time instant t is before u. +func (t Time) Before(u Time) bool { + return t.Time.Before(u.Time) +} + +// Equal reports whether the time instant t is equal to u. +func (t Time) Equal(u Time) bool { + return t.Time.Equal(u.Time) +} + +// Unix returns the local time corresponding to the given Unix time +// by wrapping time.Unix. +func Unix(sec int64, nsec int64) Time { + return Time{time.Unix(sec, nsec)} +} + +// Rfc3339Copy returns a copy of the Time at second-level precision. +func (t Time) Rfc3339Copy() Time { + copied, _ := time.Parse(time.RFC3339, t.Format(time.RFC3339)) + return Time{copied} +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +func (t *Time) UnmarshalJSON(b []byte) error { + if len(b) == 4 && string(b) == "null" { + t.Time = time.Time{} + return nil + } + + var str string + json.Unmarshal(b, &str) + + pt, err := time.Parse(time.RFC3339, str) + if err != nil { + return err + } + + t.Time = pt.Local() + return nil +} + +// UnmarshalQueryParameter converts from a URL query parameter value to an object +func (t *Time) UnmarshalQueryParameter(str string) error { + if len(str) == 0 { + t.Time = time.Time{} + return nil + } + // Tolerate requests from older clients that used JSON serialization to build query params + if len(str) == 4 && str == "null" { + t.Time = time.Time{} + return nil + } + + pt, err := time.Parse(time.RFC3339, str) + if err != nil { + return err + } + + t.Time = pt.Local() + return nil +} + +// MarshalJSON implements the json.Marshaler interface. +func (t Time) MarshalJSON() ([]byte, error) { + if t.IsZero() { + // Encode unset/nil objects as JSON's "null". + return []byte("null"), nil + } + + return json.Marshal(t.UTC().Format(time.RFC3339)) +} + +// MarshalQueryParameter converts to a URL query parameter value +func (t Time) MarshalQueryParameter() (string, error) { + if t.IsZero() { + // Encode unset/nil objects as an empty string + return "", nil + } + + return t.UTC().Format(time.RFC3339), nil +} + +// Fuzz satisfies fuzz.Interface. +func (t *Time) Fuzz(c fuzz.Continue) { + if t == nil { + return + } + // Allow for about 1000 years of randomness. Leave off nanoseconds + // because JSON doesn't represent them so they can't round-trip + // properly. + t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 0) +} + +var _ fuzz.Interface = &Time{} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/time_proto.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/time_proto.go new file mode 100644 index 0000000000..ba25e9164f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/time_proto.go @@ -0,0 +1,85 @@ +/* +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 unversioned + +import ( + "time" +) + +// Timestamp is a struct that is equivalent to Time, but intended for +// protobuf marshalling/unmarshalling. It is generated into a serialization +// that matches Time. Do not use in Go structs. +type Timestamp struct { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + Seconds int64 `json:"seconds" protobuf:"varint,1,opt,name=seconds"` + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. This field may be limited in precision depending on context. + Nanos int32 `json:"nanos" protobuf:"varint,2,opt,name=nanos"` +} + +// Timestamp returns the Time as a new Timestamp value. +func (m *Time) ProtoTime() *Timestamp { + if m == nil { + return &Timestamp{} + } + return &Timestamp{ + Seconds: m.Time.Unix(), + Nanos: int32(m.Time.Nanosecond()), + } +} + +// Size implements the protobuf marshalling interface. +func (m *Time) Size() (n int) { + if m == nil || m.Time.IsZero() { + return 0 + } + return m.ProtoTime().Size() +} + +// Reset implements the protobuf marshalling interface. +func (m *Time) Unmarshal(data []byte) error { + if len(data) == 0 { + m.Time = time.Time{} + return nil + } + p := Timestamp{} + if err := p.Unmarshal(data); err != nil { + return err + } + m.Time = time.Unix(p.Seconds, int64(p.Nanos)).Local() + return nil +} + +// Marshal implements the protobuf marshalling interface. +func (m *Time) Marshal() (data []byte, err error) { + if m == nil || m.Time.IsZero() { + return nil, nil + } + return m.ProtoTime().Marshal() +} + +// MarshalTo implements the protobuf marshalling interface. +func (m *Time) MarshalTo(data []byte) (int, error) { + if m == nil || m.Time.IsZero() { + return 0, nil + } + return m.ProtoTime().MarshalTo(data) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/types.go new file mode 100644 index 0000000000..7d632b496b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/types.go @@ -0,0 +1,460 @@ +/* +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 unversioned contains API types that are common to all versions. +// +// The package contains two categories of types: +// - external (serialized) types that lack their own version (e.g TypeMeta) +// - internal (never-serialized) types that are needed by several different +// api groups, and so live here, to avoid duplication and/or import loops +// (e.g. LabelSelector). +// In the future, we will probably move these categories of objects into +// separate packages. +package unversioned + +import "strings" + +// TypeMeta describes an individual object in an API response or request +// with strings representing the type of the object and its API schema version. +// Structures that are versioned or persisted should inline TypeMeta. +type TypeMeta struct { + // Kind is a string value representing the REST resource this object represents. + // Servers may infer this from the endpoint the client submits requests to. + // Cannot be updated. + // In CamelCase. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` + + // APIVersion defines the versioned schema of this representation of an object. + // Servers should convert recognized schemas to the latest internal value, and + // may reject unrecognized values. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"` +} + +// ListMeta describes metadata that synthetic resources must have, including lists and +// various status objects. A resource may have only one of {ObjectMeta, ListMeta}. +type ListMeta struct { + // SelfLink is a URL representing this object. + // Populated by the system. + // Read-only. + SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,1,opt,name=selfLink"` + + // String that identifies the server's internal version of this object that + // can be used by clients to determine when objects have changed. + // Value must be treated as opaque by clients and passed unmodified back to the server. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"` +} + +// ExportOptions is the query options to the standard REST get call. +type ExportOptions struct { + TypeMeta `json:",inline"` + // Should this value be exported. Export strips fields that a user can not specify.` + Export bool `json:"export" protobuf:"varint,1,opt,name=export"` + // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + Exact bool `json:"exact" protobuf:"varint,2,opt,name=exact"` +} + +// Status is a return value for calls that don't return other objects. +type Status struct { + TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Status of the operation. + // One of: "Success" or "Failure". + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status string `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` + // A human-readable description of the status of this operation. + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + // A machine-readable description of why this operation is in the + // "Failure" status. If this value is empty there + // is no information available. A Reason clarifies an HTTP status + // code but does not override it. + Reason StatusReason `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason,casttype=StatusReason"` + // Extended data associated with the reason. Each reason may define its + // own extended details. This field is optional and the data returned + // is not guaranteed to conform to any schema except that defined by + // the reason type. + Details *StatusDetails `json:"details,omitempty" protobuf:"bytes,5,opt,name=details"` + // Suggested HTTP return code for this status, 0 if not set. + Code int32 `json:"code,omitempty" protobuf:"varint,6,opt,name=code"` +} + +// StatusDetails is a set of additional properties that MAY be set by the +// server to provide additional information about a response. The Reason +// field of a Status object defines what attributes will be set. Clients +// must ignore fields that do not match the defined type of each attribute, +// and should assume that any attribute may be empty, invalid, or under +// defined. +type StatusDetails struct { + // The name attribute of the resource associated with the status StatusReason + // (when there is a single name which can be described). + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + // The group attribute of the resource associated with the status StatusReason. + Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"` + // The kind attribute of the resource associated with the status StatusReason. + // On some operations may differ from the requested resource Kind. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + Kind string `json:"kind,omitempty" protobuf:"bytes,3,opt,name=kind"` + // The Causes array includes more details associated with the StatusReason + // failure. Not all StatusReasons may provide detailed causes. + Causes []StatusCause `json:"causes,omitempty" protobuf:"bytes,4,rep,name=causes"` + // If specified, the time in seconds before the operation should be retried. + RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty" protobuf:"varint,5,opt,name=retryAfterSeconds"` +} + +// Values of Status.Status +const ( + StatusSuccess = "Success" + StatusFailure = "Failure" +) + +// StatusReason is an enumeration of possible failure causes. Each StatusReason +// must map to a single HTTP status code, but multiple reasons may map +// to the same HTTP status code. +// TODO: move to apiserver +type StatusReason string + +const ( + // StatusReasonUnknown means the server has declined to indicate a specific reason. + // The details field may contain other information about this error. + // Status code 500. + StatusReasonUnknown StatusReason = "" + + // StatusReasonUnauthorized means the server can be reached and understood the request, but requires + // the user to present appropriate authorization credentials (identified by the WWW-Authenticate header) + // in order for the action to be completed. If the user has specified credentials on the request, the + // server considers them insufficient. + // Status code 401 + StatusReasonUnauthorized StatusReason = "Unauthorized" + + // StatusReasonForbidden means the server can be reached and understood the request, but refuses + // to take any further action. It is the result of the server being configured to deny access for some reason + // to the requested resource by the client. + // Details (optional): + // "kind" string - the kind attribute of the forbidden resource + // on some operations may differ from the requested + // resource. + // "id" string - the identifier of the forbidden resource + // Status code 403 + StatusReasonForbidden StatusReason = "Forbidden" + + // StatusReasonNotFound means one or more resources required for this operation + // could not be found. + // Details (optional): + // "kind" string - the kind attribute of the missing resource + // on some operations may differ from the requested + // resource. + // "id" string - the identifier of the missing resource + // Status code 404 + StatusReasonNotFound StatusReason = "NotFound" + + // StatusReasonAlreadyExists means the resource you are creating already exists. + // Details (optional): + // "kind" string - the kind attribute of the conflicting resource + // "id" string - the identifier of the conflicting resource + // Status code 409 + StatusReasonAlreadyExists StatusReason = "AlreadyExists" + + // StatusReasonConflict means the requested operation cannot be completed + // due to a conflict in the operation. The client may need to alter the + // request. Each resource may define custom details that indicate the + // nature of the conflict. + // Status code 409 + StatusReasonConflict StatusReason = "Conflict" + + // StatusReasonGone means the item is no longer available at the server and no + // forwarding address is known. + // Status code 410 + StatusReasonGone StatusReason = "Gone" + + // StatusReasonInvalid means the requested create or update operation cannot be + // completed due to invalid data provided as part of the request. The client may + // need to alter the request. When set, the client may use the StatusDetails + // message field as a summary of the issues encountered. + // Details (optional): + // "kind" string - the kind attribute of the invalid resource + // "id" string - the identifier of the invalid resource + // "causes" - one or more StatusCause entries indicating the data in the + // provided resource that was invalid. The code, message, and + // field attributes will be set. + // Status code 422 + StatusReasonInvalid StatusReason = "Invalid" + + // StatusReasonServerTimeout means the server can be reached and understood the request, + // but cannot complete the action in a reasonable time. The client should retry the request. + // This is may be due to temporary server load or a transient communication issue with + // another server. Status code 500 is used because the HTTP spec provides no suitable + // server-requested client retry and the 5xx class represents actionable errors. + // Details (optional): + // "kind" string - the kind attribute of the resource being acted on. + // "id" string - the operation that is being attempted. + // "retryAfterSeconds" int32 - the number of seconds before the operation should be retried + // Status code 500 + StatusReasonServerTimeout StatusReason = "ServerTimeout" + + // StatusReasonTimeout means that the request could not be completed within the given time. + // Clients can get this response only when they specified a timeout param in the request, + // or if the server cannot complete the operation within a reasonable amount of time. + // The request might succeed with an increased value of timeout param. The client *should* + // wait at least the number of seconds specified by the retryAfterSeconds field. + // Details (optional): + // "retryAfterSeconds" int32 - the number of seconds before the operation should be retried + // Status code 504 + StatusReasonTimeout StatusReason = "Timeout" + + // StatusReasonBadRequest means that the request itself was invalid, because the request + // doesn't make any sense, for example deleting a read-only object. This is different than + // StatusReasonInvalid above which indicates that the API call could possibly succeed, but the + // data was invalid. API calls that return BadRequest can never succeed. + StatusReasonBadRequest StatusReason = "BadRequest" + + // StatusReasonMethodNotAllowed means that the action the client attempted to perform on the + // resource was not supported by the code - for instance, attempting to delete a resource that + // can only be created. API calls that return MethodNotAllowed can never succeed. + StatusReasonMethodNotAllowed StatusReason = "MethodNotAllowed" + + // StatusReasonInternalError indicates that an internal error occurred, it is unexpected + // and the outcome of the call is unknown. + // Details (optional): + // "causes" - The original error + // Status code 500 + StatusReasonInternalError StatusReason = "InternalError" + + // StatusReasonExpired indicates that the request is invalid because the content you are requesting + // has expired and is no longer available. It is typically associated with watches that can't be + // serviced. + // Status code 410 (gone) + StatusReasonExpired StatusReason = "Expired" + + // StatusReasonServiceUnavailable means that the request itself was valid, + // but the requested service is unavailable at this time. + // Retrying the request after some time might succeed. + // Status code 503 + StatusReasonServiceUnavailable StatusReason = "ServiceUnavailable" +) + +// StatusCause provides more information about an api.Status failure, including +// cases when multiple errors are encountered. +type StatusCause struct { + // A machine-readable description of the cause of the error. If this value is + // empty there is no information available. + Type CauseType `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason,casttype=CauseType"` + // A human-readable description of the cause of the error. This field may be + // presented as-is to a reader. + Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` + // The field of the resource that has caused this error, as named by its JSON + // serialization. May include dot and postfix notation for nested attributes. + // Arrays are zero-indexed. Fields may appear more than once in an array of + // causes due to fields having multiple errors. + // Optional. + // + // Examples: + // "name" - the field "name" on the current resource + // "items[0].name" - the field "name" on the first array entry in "items" + Field string `json:"field,omitempty" protobuf:"bytes,3,opt,name=field"` +} + +// CauseType is a machine readable value providing more detail about what +// occurred in a status response. An operation may have multiple causes for a +// status (whether Failure or Success). +type CauseType string + +const ( + // CauseTypeFieldValueNotFound is used to report failure to find a requested value + // (e.g. looking up an ID). + CauseTypeFieldValueNotFound CauseType = "FieldValueNotFound" + // CauseTypeFieldValueRequired is used to report required values that are not + // provided (e.g. empty strings, null values, or empty arrays). + CauseTypeFieldValueRequired CauseType = "FieldValueRequired" + // CauseTypeFieldValueDuplicate is used to report collisions of values that must be + // unique (e.g. unique IDs). + CauseTypeFieldValueDuplicate CauseType = "FieldValueDuplicate" + // CauseTypeFieldValueInvalid is used to report malformed values (e.g. failed regex + // match). + CauseTypeFieldValueInvalid CauseType = "FieldValueInvalid" + // CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules) + // values that can not be handled (e.g. an enumerated string). + CauseTypeFieldValueNotSupported CauseType = "FieldValueNotSupported" + // CauseTypeUnexpectedServerResponse is used to report when the server responded to the client + // without the expected return type. The presence of this cause indicates the error may be + // due to an intervening proxy or the server software malfunctioning. + CauseTypeUnexpectedServerResponse CauseType = "UnexpectedServerResponse" +) + +// APIVersions lists the versions that are available, to allow clients to +// discover the API at /api, which is the root path of the legacy v1 API. +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +type APIVersions struct { + TypeMeta `json:",inline"` + // versions are the api versions that are available. + Versions []string `json:"versions" protobuf:"bytes,1,rep,name=versions"` + // a map of client CIDR to server address that is serving this group. + // This is to help clients reach servers in the most network-efficient way possible. + // Clients can use the appropriate server address as per the CIDR that they match. + // In case of multiple matches, clients should use the longest matching CIDR. + // The server returns only those CIDRs that it thinks that the client can match. + // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs"` +} + +// APIGroupList is a list of APIGroup, to allow clients to discover the API at +// /apis. +type APIGroupList struct { + TypeMeta `json:",inline"` + // groups is a list of APIGroup. + Groups []APIGroup `json:"groups" protobuf:"bytes,1,rep,name=groups"` +} + +// APIGroup contains the name, the supported versions, and the preferred version +// of a group. +type APIGroup struct { + TypeMeta `json:",inline"` + // name is the name of the group. + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // versions are the versions supported in this group. + Versions []GroupVersionForDiscovery `json:"versions" protobuf:"bytes,2,rep,name=versions"` + // preferredVersion is the version preferred by the API server, which + // probably is the storage version. + PreferredVersion GroupVersionForDiscovery `json:"preferredVersion,omitempty" protobuf:"bytes,3,opt,name=preferredVersion"` + // a map of client CIDR to server address that is serving this group. + // This is to help clients reach servers in the most network-efficient way possible. + // Clients can use the appropriate server address as per the CIDR that they match. + // In case of multiple matches, clients should use the longest matching CIDR. + // The server returns only those CIDRs that it thinks that the client can match. + // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"` +} + +// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. +type ServerAddressByClientCIDR struct { + // The CIDR with which clients can match their IP to figure out the server address that they should use. + ClientCIDR string `json:"clientCIDR" protobuf:"bytes,1,opt,name=clientCIDR"` + // Address of this server, suitable for a client that matches the above CIDR. + // This can be a hostname, hostname:port, IP or IP:port. + ServerAddress string `json:"serverAddress" protobuf:"bytes,2,opt,name=serverAddress"` +} + +// GroupVersion contains the "group/version" and "version" string of a version. +// It is made a struct to keep extensibility. +type GroupVersionForDiscovery struct { + // groupVersion specifies the API group and version in the form "group/version" + GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"` + // version specifies the version in the form of "version". This is to save + // the clients the trouble of splitting the GroupVersion. + Version string `json:"version" protobuf:"bytes,2,opt,name=version"` +} + +// APIResource specifies the name of a resource and whether it is namespaced. +type APIResource struct { + // name is the name of the resource. + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // namespaced indicates if a resource is namespaced or not. + Namespaced bool `json:"namespaced" protobuf:"varint,2,opt,name=namespaced"` + // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"` +} + +// APIResourceList is a list of APIResource, it is used to expose the name of the +// resources supported in a specific group and version, and if the resource +// is namespaced. +type APIResourceList struct { + TypeMeta `json:",inline"` + // groupVersion is the group and version this APIResourceList is for. + GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"` + // resources contains the name of the resources and if they are namespaced. + APIResources []APIResource `json:"resources" protobuf:"bytes,2,rep,name=resources"` +} + +// RootPaths lists the paths available at root. +// For example: "/healthz", "/apis". +type RootPaths struct { + // paths are the paths available at root. + Paths []string `json:"paths" protobuf:"bytes,1,rep,name=paths"` +} + +// TODO: remove me when watch is refactored +func LabelSelectorQueryParam(version string) string { + return "labelSelector" +} + +// TODO: remove me when watch is refactored +func FieldSelectorQueryParam(version string) string { + return "fieldSelector" +} + +// String returns available api versions as a human-friendly version string. +func (apiVersions APIVersions) String() string { + return strings.Join(apiVersions.Versions, ",") +} + +func (apiVersions APIVersions) GoString() string { + return apiVersions.String() +} + +// Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. +type Patch struct{} + +// Note: +// There are two different styles of label selectors used in versioned types: +// an older style which is represented as just a string in versioned types, and a +// newer style that is structured. LabelSelector is an internal representation for the +// latter style. + +// A label selector is a label query over a set of resources. The result of matchLabels and +// matchExpressions are ANDed. An empty label selector matches all objects. A null +// label selector matches no objects. +type LabelSelector struct { + // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + // map is equivalent to an element of matchExpressions, whose key field is "key", the + // operator is "In", and the values array contains only "value". The requirements are ANDed. + MatchLabels map[string]string `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"` + // matchExpressions is a list of label selector requirements. The requirements are ANDed. + MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"` +} + +// A label selector requirement is a selector that contains values, a key, and an operator that +// relates the key and values. +type LabelSelectorRequirement struct { + // key is the label key that the selector applies to. + Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"` + // operator represents a key's relationship to a set of values. + // Valid operators ard In, NotIn, Exists and DoesNotExist. + Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"` + // values is an array of string values. If the operator is In or NotIn, + // the values array must be non-empty. If the operator is Exists or DoesNotExist, + // the values array must be empty. This array is replaced during a strategic + // merge patch. + Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` +} + +// A label selector operator is the set of operators that can be used in a selector requirement. +type LabelSelectorOperator string + +const ( + LabelSelectorOpIn LabelSelectorOperator = "In" + LabelSelectorOpNotIn LabelSelectorOperator = "NotIn" + LabelSelectorOpExists LabelSelectorOperator = "Exists" + LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist" +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/types_swagger_doc_generated.go new file mode 100644 index 0000000000..3f08115a6c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/types_swagger_doc_generated.go @@ -0,0 +1,208 @@ +/* +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 unversioned + +// This file contains a collection of methods that can be used from go-restful to +// generate Swagger API documentation for its models. Please read this PR for more +// information on the implementation: https://github.com/emicklei/go-restful/pull/215 +// +// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if +// they are on one line! For multiple line or blocks that you want to ignore use ---. +// Any context after a --- is ignored. +// +// Those methods can be generated by using hack/update-generated-swagger-docs.sh + +// AUTO-GENERATED FUNCTIONS START HERE +var map_APIGroup = map[string]string{ + "": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "name": "name is the name of the group.", + "versions": "versions are the versions supported in this group.", + "preferredVersion": "preferredVersion is the version preferred by the API server, which probably is the storage version.", + "serverAddressByClientCIDRs": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", +} + +func (APIGroup) SwaggerDoc() map[string]string { + return map_APIGroup +} + +var map_APIGroupList = map[string]string{ + "": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "groups": "groups is a list of APIGroup.", +} + +func (APIGroupList) SwaggerDoc() map[string]string { + return map_APIGroupList +} + +var map_APIResource = map[string]string{ + "": "APIResource specifies the name of a resource and whether it is namespaced.", + "name": "name is the name of the resource.", + "namespaced": "namespaced indicates if a resource is namespaced or not.", + "kind": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", +} + +func (APIResource) SwaggerDoc() map[string]string { + return map_APIResource +} + +var map_APIResourceList = map[string]string{ + "": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "groupVersion": "groupVersion is the group and version this APIResourceList is for.", + "resources": "resources contains the name of the resources and if they are namespaced.", +} + +func (APIResourceList) SwaggerDoc() map[string]string { + return map_APIResourceList +} + +var map_APIVersions = map[string]string{ + "": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "versions": "versions are the api versions that are available.", + "serverAddressByClientCIDRs": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", +} + +func (APIVersions) SwaggerDoc() map[string]string { + return map_APIVersions +} + +var map_ExportOptions = map[string]string{ + "": "ExportOptions is the query options to the standard REST get call.", + "export": "Should this value be exported. Export strips fields that a user can not specify.`", + "exact": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", +} + +func (ExportOptions) SwaggerDoc() map[string]string { + return map_ExportOptions +} + +var map_GroupVersionForDiscovery = map[string]string{ + "": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "groupVersion": "groupVersion specifies the API group and version in the form \"group/version\"", + "version": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", +} + +func (GroupVersionForDiscovery) SwaggerDoc() map[string]string { + return map_GroupVersionForDiscovery +} + +var map_LabelSelector = map[string]string{ + "": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "matchLabels": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "matchExpressions": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", +} + +func (LabelSelector) SwaggerDoc() map[string]string { + return map_LabelSelector +} + +var map_LabelSelectorRequirement = map[string]string{ + "": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "key": "key is the label key that the selector applies to.", + "operator": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.", + "values": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", +} + +func (LabelSelectorRequirement) SwaggerDoc() map[string]string { + return map_LabelSelectorRequirement +} + +var map_ListMeta = map[string]string{ + "": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "selfLink": "SelfLink is a URL representing this object. Populated by the system. Read-only.", + "resourceVersion": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", +} + +func (ListMeta) SwaggerDoc() map[string]string { + return map_ListMeta +} + +var map_Patch = map[string]string{ + "": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", +} + +func (Patch) SwaggerDoc() map[string]string { + return map_Patch +} + +var map_RootPaths = map[string]string{ + "": "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", + "paths": "paths are the paths available at root.", +} + +func (RootPaths) SwaggerDoc() map[string]string { + return map_RootPaths +} + +var map_ServerAddressByClientCIDR = map[string]string{ + "": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "clientCIDR": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "serverAddress": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", +} + +func (ServerAddressByClientCIDR) SwaggerDoc() map[string]string { + return map_ServerAddressByClientCIDR +} + +var map_Status = map[string]string{ + "": "Status is a return value for calls that don't return other objects.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "status": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "message": "A human-readable description of the status of this operation.", + "reason": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "details": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "code": "Suggested HTTP return code for this status, 0 if not set.", +} + +func (Status) SwaggerDoc() map[string]string { + return map_Status +} + +var map_StatusCause = map[string]string{ + "": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "reason": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "message": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "field": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", +} + +func (StatusCause) SwaggerDoc() map[string]string { + return map_StatusCause +} + +var map_StatusDetails = map[string]string{ + "": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "name": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "group": "The group attribute of the resource associated with the status StatusReason.", + "kind": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "causes": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "retryAfterSeconds": "If specified, the time in seconds before the operation should be retried.", +} + +func (StatusDetails) SwaggerDoc() map[string]string { + return map_StatusDetails +} + +var map_TypeMeta = map[string]string{ + "": "TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.", + "kind": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "apiVersion": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", +} + +func (TypeMeta) SwaggerDoc() map[string]string { + return map_TypeMeta +} + +// AUTO-GENERATED FUNCTIONS END HERE diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/validation/validation.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/validation/validation.go new file mode 100644 index 0000000000..6276fdc82c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/validation/validation.go @@ -0,0 +1,74 @@ +/* +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 validation + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/util/validation" + "k8s.io/client-go/1.4/pkg/util/validation/field" +) + +func ValidateLabelSelector(ps *unversioned.LabelSelector, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if ps == nil { + return allErrs + } + allErrs = append(allErrs, ValidateLabels(ps.MatchLabels, fldPath.Child("matchLabels"))...) + for i, expr := range ps.MatchExpressions { + allErrs = append(allErrs, ValidateLabelSelectorRequirement(expr, fldPath.Child("matchExpressions").Index(i))...) + } + return allErrs +} + +func ValidateLabelSelectorRequirement(sr unversioned.LabelSelectorRequirement, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + switch sr.Operator { + case unversioned.LabelSelectorOpIn, unversioned.LabelSelectorOpNotIn: + if len(sr.Values) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("values"), "must be specified when `operator` is 'In' or 'NotIn'")) + } + case unversioned.LabelSelectorOpExists, unversioned.LabelSelectorOpDoesNotExist: + if len(sr.Values) > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("values"), "may not be specified when `operator` is 'Exists' or 'DoesNotExist'")) + } + default: + allErrs = append(allErrs, field.Invalid(fldPath.Child("operator"), sr.Operator, "not a valid selector operator")) + } + allErrs = append(allErrs, ValidateLabelName(sr.Key, fldPath.Child("key"))...) + return allErrs +} + +// ValidateLabelName validates that the label name is correctly defined. +func ValidateLabelName(labelName string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsQualifiedName(labelName) { + allErrs = append(allErrs, field.Invalid(fldPath, labelName, msg)) + } + return allErrs +} + +// ValidateLabels validates that a set of labels are correctly defined. +func ValidateLabels(labels map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for k, v := range labels { + allErrs = append(allErrs, ValidateLabelName(k, fldPath)...) + for _, msg := range validation.IsValidLabelValue(v) { + allErrs = append(allErrs, field.Invalid(fldPath, v, msg)) + } + } + return allErrs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/well_known_labels.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/well_known_labels.go new file mode 100644 index 0000000000..318c6eebf1 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/well_known_labels.go @@ -0,0 +1,30 @@ +/* +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 unversioned + +const ( + // If you add a new topology domain here, also consider adding it to the set of default values + // for the scheduler's --failure-domain command-line argument. + LabelHostname = "kubernetes.io/hostname" + LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone" + LabelZoneRegion = "failure-domain.beta.kubernetes.io/region" + + LabelInstanceType = "beta.kubernetes.io/instance-type" + + LabelOS = "beta.kubernetes.io/os" + LabelArch = "beta.kubernetes.io/arch" +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/zz_generated.deepcopy.go new file mode 100644 index 0000000000..c732daaa3d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/unversioned/zz_generated.deepcopy.go @@ -0,0 +1,390 @@ +// +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 unversioned + +import ( + conversion "k8s.io/client-go/1.4/pkg/conversion" + time "time" +) + +func DeepCopy_unversioned_APIGroup(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIGroup) + out := out.(*APIGroup) + out.TypeMeta = in.TypeMeta + out.Name = in.Name + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]GroupVersionForDiscovery, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Versions = nil + } + out.PreferredVersion = in.PreferredVersion + if in.ServerAddressByClientCIDRs != nil { + in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs + *out = make([]ServerAddressByClientCIDR, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ServerAddressByClientCIDRs = nil + } + return nil + } +} + +func DeepCopy_unversioned_APIGroupList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIGroupList) + out := out.(*APIGroupList) + out.TypeMeta = in.TypeMeta + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]APIGroup, len(*in)) + for i := range *in { + if err := DeepCopy_unversioned_APIGroup(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Groups = nil + } + return nil + } +} + +func DeepCopy_unversioned_APIResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIResource) + out := out.(*APIResource) + out.Name = in.Name + out.Namespaced = in.Namespaced + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_unversioned_APIResourceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIResourceList) + out := out.(*APIResourceList) + out.TypeMeta = in.TypeMeta + out.GroupVersion = in.GroupVersion + if in.APIResources != nil { + in, out := &in.APIResources, &out.APIResources + *out = make([]APIResource, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.APIResources = nil + } + return nil + } +} + +func DeepCopy_unversioned_APIVersions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIVersions) + out := out.(*APIVersions) + out.TypeMeta = in.TypeMeta + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Versions = nil + } + if in.ServerAddressByClientCIDRs != nil { + in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs + *out = make([]ServerAddressByClientCIDR, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ServerAddressByClientCIDRs = nil + } + return nil + } +} + +func DeepCopy_unversioned_Duration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Duration) + out := out.(*Duration) + out.Duration = in.Duration + return nil + } +} + +func DeepCopy_unversioned_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_unversioned_GroupKind(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupKind) + out := out.(*GroupKind) + out.Group = in.Group + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_unversioned_GroupResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupResource) + out := out.(*GroupResource) + out.Group = in.Group + out.Resource = in.Resource + return nil + } +} + +func DeepCopy_unversioned_GroupVersion(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersion) + out := out.(*GroupVersion) + out.Group = in.Group + out.Version = in.Version + return nil + } +} + +func DeepCopy_unversioned_GroupVersionForDiscovery(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersionForDiscovery) + out := out.(*GroupVersionForDiscovery) + out.GroupVersion = in.GroupVersion + out.Version = in.Version + return nil + } +} + +func DeepCopy_unversioned_GroupVersionKind(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersionKind) + out := out.(*GroupVersionKind) + out.Group = in.Group + out.Version = in.Version + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_unversioned_GroupVersionResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GroupVersionResource) + out := out.(*GroupVersionResource) + out.Group = in.Group + out.Version = in.Version + out.Resource = in.Resource + return nil + } +} + +func DeepCopy_unversioned_LabelSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelector) + out := out.(*LabelSelector) + if in.MatchLabels != nil { + in, out := &in.MatchLabels, &out.MatchLabels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.MatchLabels = nil + } + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]LabelSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_unversioned_LabelSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_unversioned_LabelSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LabelSelectorRequirement) + out := out.(*LabelSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_unversioned_ListMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListMeta) + out := out.(*ListMeta) + out.SelfLink = in.SelfLink + out.ResourceVersion = in.ResourceVersion + return nil + } +} + +func DeepCopy_unversioned_Patch(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Patch) + out := out.(*Patch) + _ = in + _ = out + return nil + } +} + +func DeepCopy_unversioned_RootPaths(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RootPaths) + out := out.(*RootPaths) + if in.Paths != nil { + in, out := &in.Paths, &out.Paths + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Paths = nil + } + return nil + } +} + +func DeepCopy_unversioned_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServerAddressByClientCIDR) + out := out.(*ServerAddressByClientCIDR) + out.ClientCIDR = in.ClientCIDR + out.ServerAddress = in.ServerAddress + return nil + } +} + +func DeepCopy_unversioned_Status(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Status) + out := out.(*Status) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + out.Status = in.Status + out.Message = in.Message + out.Reason = in.Reason + if in.Details != nil { + in, out := &in.Details, &out.Details + *out = new(StatusDetails) + if err := DeepCopy_unversioned_StatusDetails(*in, *out, c); err != nil { + return err + } + } else { + out.Details = nil + } + out.Code = in.Code + return nil + } +} + +func DeepCopy_unversioned_StatusCause(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StatusCause) + out := out.(*StatusCause) + out.Type = in.Type + out.Message = in.Message + out.Field = in.Field + return nil + } +} + +func DeepCopy_unversioned_StatusDetails(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StatusDetails) + out := out.(*StatusDetails) + out.Name = in.Name + out.Group = in.Group + out.Kind = in.Kind + if in.Causes != nil { + in, out := &in.Causes, &out.Causes + *out = make([]StatusCause, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Causes = nil + } + out.RetryAfterSeconds = in.RetryAfterSeconds + return nil + } +} + +func DeepCopy_unversioned_Time(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Time) + out := out.(*Time) + if newVal, err := c.DeepCopy(&in.Time); err != nil { + return err + } else { + out.Time = *newVal.(*time.Time) + } + return nil + } +} + +func DeepCopy_unversioned_Timestamp(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Timestamp) + out := out.(*Timestamp) + out.Seconds = in.Seconds + out.Nanos = in.Nanos + return nil + } +} + +func DeepCopy_unversioned_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TypeMeta) + out := out.(*TypeMeta) + out.Kind = in.Kind + out.APIVersion = in.APIVersion + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/util/group_version.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/util/group_version.go new file mode 100644 index 0000000000..fea2f17f81 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/util/group_version.go @@ -0,0 +1,48 @@ +/* +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. +*/ + +// TODO: This GetVersion/GetGroup arrangement is temporary and will be replaced +// with a GroupAndVersion type. +package util + +import "strings" + +func GetVersion(groupVersion string) string { + s := strings.Split(groupVersion, "/") + if len(s) != 2 { + // e.g. return "v1" for groupVersion="v1" + return s[len(s)-1] + } + return s[1] +} + +func GetGroup(groupVersion string) string { + s := strings.Split(groupVersion, "/") + if len(s) == 1 { + // e.g. return "" for groupVersion="v1" + return "" + } + return s[0] +} + +// GetGroupVersion returns the "group/version". It returns "version" is if group +// is empty. It returns "group/" if version is empty. +func GetGroupVersion(group, version string) string { + if len(group) == 0 { + return version + } + return group + "/" + version +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/conversion.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/conversion.go new file mode 100644 index 0000000000..793695cb1b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/conversion.go @@ -0,0 +1,771 @@ +/* +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 v1 + +import ( + "encoding/json" + "fmt" + "reflect" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/apis/extensions" + "k8s.io/client-go/1.4/pkg/conversion" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/util/validation/field" + "k8s.io/client-go/1.4/pkg/watch/versioned" +) + +const ( + // Annotation key used to identify mirror pods. + mirrorAnnotationKey = "kubernetes.io/config.mirror" + + // Value used to identify mirror pods from pre-v1.1 kubelet. + mirrorAnnotationValue_1_0 = "mirror" + + // annotation key prefix used to identify non-convertible json paths. + NonConvertibleAnnotationPrefix = "kubernetes.io/non-convertible" +) + +// This is a "fast-path" that avoids reflection for common types. It focuses on the objects that are +// converted the most in the cluster. +// TODO: generate one of these for every external API group - this is to prove the impact +func addFastPathConversionFuncs(scheme *runtime.Scheme) error { + scheme.AddGenericConversionFunc(func(objA, objB interface{}, s conversion.Scope) (bool, error) { + switch a := objA.(type) { + case *Pod: + switch b := objB.(type) { + case *api.Pod: + return true, Convert_v1_Pod_To_api_Pod(a, b, s) + } + case *api.Pod: + switch b := objB.(type) { + case *Pod: + return true, Convert_api_Pod_To_v1_Pod(a, b, s) + } + + case *Event: + switch b := objB.(type) { + case *api.Event: + return true, Convert_v1_Event_To_api_Event(a, b, s) + } + case *api.Event: + switch b := objB.(type) { + case *Event: + return true, Convert_api_Event_To_v1_Event(a, b, s) + } + + case *ReplicationController: + switch b := objB.(type) { + case *api.ReplicationController: + return true, Convert_v1_ReplicationController_To_api_ReplicationController(a, b, s) + } + case *api.ReplicationController: + switch b := objB.(type) { + case *ReplicationController: + return true, Convert_api_ReplicationController_To_v1_ReplicationController(a, b, s) + } + + case *Node: + switch b := objB.(type) { + case *api.Node: + return true, Convert_v1_Node_To_api_Node(a, b, s) + } + case *api.Node: + switch b := objB.(type) { + case *Node: + return true, Convert_api_Node_To_v1_Node(a, b, s) + } + + case *Namespace: + switch b := objB.(type) { + case *api.Namespace: + return true, Convert_v1_Namespace_To_api_Namespace(a, b, s) + } + case *api.Namespace: + switch b := objB.(type) { + case *Namespace: + return true, Convert_api_Namespace_To_v1_Namespace(a, b, s) + } + + case *Service: + switch b := objB.(type) { + case *api.Service: + return true, Convert_v1_Service_To_api_Service(a, b, s) + } + case *api.Service: + switch b := objB.(type) { + case *Service: + return true, Convert_api_Service_To_v1_Service(a, b, s) + } + + case *Endpoints: + switch b := objB.(type) { + case *api.Endpoints: + return true, Convert_v1_Endpoints_To_api_Endpoints(a, b, s) + } + case *api.Endpoints: + switch b := objB.(type) { + case *Endpoints: + return true, Convert_api_Endpoints_To_v1_Endpoints(a, b, s) + } + + case *versioned.Event: + switch b := objB.(type) { + case *versioned.InternalEvent: + return true, versioned.Convert_versioned_Event_to_versioned_InternalEvent(a, b, s) + } + case *versioned.InternalEvent: + switch b := objB.(type) { + case *versioned.Event: + return true, versioned.Convert_versioned_InternalEvent_to_versioned_Event(a, b, s) + } + } + return false, nil + }) + return nil +} + +func addConversionFuncs(scheme *runtime.Scheme) error { + // Add non-generated conversion functions + err := scheme.AddConversionFuncs( + Convert_api_Pod_To_v1_Pod, + Convert_api_PodSpec_To_v1_PodSpec, + Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec, + Convert_api_ServiceSpec_To_v1_ServiceSpec, + Convert_v1_Pod_To_api_Pod, + Convert_v1_PodSpec_To_api_PodSpec, + Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec, + Convert_v1_Secret_To_api_Secret, + Convert_v1_ServiceSpec_To_api_ServiceSpec, + Convert_v1_ResourceList_To_api_ResourceList, + Convert_v1_ReplicationController_to_extensions_ReplicaSet, + Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec, + Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus, + Convert_extensions_ReplicaSet_to_v1_ReplicationController, + Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec, + Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus, + ) + if err != nil { + return err + } + + // Add field label conversions for kinds having selectable nothing but ObjectMeta fields. + for _, kind := range []string{ + "Endpoints", + "ResourceQuota", + "PersistentVolumeClaim", + "Service", + "ServiceAccount", + "ConfigMap", + } { + err = api.Scheme.AddFieldLabelConversionFunc("v1", kind, + func(label, value string) (string, string, error) { + switch label { + case "metadata.namespace", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label %q not supported for %q", label, kind) + } + }, + ) + if err != nil { + return err + } + } + + // Add field conversion funcs. + err = api.Scheme.AddFieldLabelConversionFunc("v1", "Pod", + func(label, value string) (string, string, error) { + switch label { + case "metadata.name", + "metadata.namespace", + "metadata.labels", + "metadata.annotations", + "status.phase", + "status.podIP", + "spec.nodeName", + "spec.restartPolicy": + return label, value, nil + // This is for backwards compatibility with old v1 clients which send spec.host + case "spec.host": + return "spec.nodeName", value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }, + ) + if err != nil { + return err + } + err = api.Scheme.AddFieldLabelConversionFunc("v1", "Node", + func(label, value string) (string, string, error) { + switch label { + case "metadata.name": + return label, value, nil + case "spec.unschedulable": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }, + ) + if err != nil { + return err + } + err = api.Scheme.AddFieldLabelConversionFunc("v1", "ReplicationController", + func(label, value string) (string, string, error) { + switch label { + case "metadata.name", + "metadata.namespace", + "status.replicas": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }) + if err != nil { + return err + } + err = api.Scheme.AddFieldLabelConversionFunc("v1", "Event", + func(label, value string) (string, string, error) { + switch label { + case "involvedObject.kind", + "involvedObject.namespace", + "involvedObject.name", + "involvedObject.uid", + "involvedObject.apiVersion", + "involvedObject.resourceVersion", + "involvedObject.fieldPath", + "reason", + "source", + "type", + "metadata.namespace", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }, + ) + if err != nil { + return err + } + err = api.Scheme.AddFieldLabelConversionFunc("v1", "Namespace", + func(label, value string) (string, string, error) { + switch label { + case "status.phase", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }, + ) + if err != nil { + return err + } + err = api.Scheme.AddFieldLabelConversionFunc("v1", "PersistentVolume", + 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) + } + }, + ) + if err != nil { + return err + } + err = api.Scheme.AddFieldLabelConversionFunc("v1", "Secret", + func(label, value string) (string, string, error) { + switch label { + case "type", + "metadata.namespace", + "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }, + ) + if err != nil { + return err + } + return nil +} + +func Convert_v1_ReplicationController_to_extensions_ReplicaSet(in *ReplicationController, out *extensions.ReplicaSet, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*ReplicationController))(in) + } + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_v1_ObjectMeta_To_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(in *ReplicationControllerSpec, out *extensions.ReplicaSetSpec, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*ReplicationControllerSpec))(in) + } + out.Replicas = *in.Replicas + if in.Selector != nil { + api.Convert_map_to_unversioned_LabelSelector(&in.Selector, out.Selector, s) + } + if in.Template != nil { + if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in.Template, &out.Template, s); err != nil { + return err + } + } + return nil +} + +func Convert_v1_ReplicationControllerStatus_to_extensions_ReplicaSetStatus(in *ReplicationControllerStatus, out *extensions.ReplicaSetStatus, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*ReplicationControllerStatus))(in) + } + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil +} + +func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.ReplicaSet, out *ReplicationController, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*extensions.ReplicaSet))(in) + } + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + if err := Convert_api_ObjectMeta_To_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { + return err + } + if err := Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, s); err != nil { + fieldErr, ok := err.(*field.Error) + if !ok { + return err + } + if out.Annotations == nil { + out.Annotations = make(map[string]string) + } + out.Annotations[NonConvertibleAnnotationPrefix+"/"+fieldErr.Field] = reflect.ValueOf(fieldErr.BadValue).String() + } + if err := Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(in *extensions.ReplicaSetSpec, out *ReplicationControllerSpec, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*extensions.ReplicaSetSpec))(in) + } + out.Replicas = new(int32) + *out.Replicas = in.Replicas + var invalidErr error + if in.Selector != nil { + invalidErr = api.Convert_unversioned_LabelSelector_to_map(in.Selector, &out.Selector, s) + } + out.Template = new(PodTemplateSpec) + if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, out.Template, s); err != nil { + return err + } + return invalidErr +} + +func Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus(in *extensions.ReplicaSetStatus, out *ReplicationControllerStatus, s conversion.Scope) error { + if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { + defaulting.(func(*extensions.ReplicaSetStatus))(in) + } + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil +} + +func Convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(in *api.ReplicationControllerSpec, out *ReplicationControllerSpec, s conversion.Scope) error { + out.Replicas = &in.Replicas + out.Selector = in.Selector + if in.Template != nil { + out.Template = new(PodTemplateSpec) + if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in.Template, out.Template, s); err != nil { + return err + } + } else { + out.Template = nil + } + return nil +} + +func Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(in *ReplicationControllerSpec, out *api.ReplicationControllerSpec, s conversion.Scope) error { + out.Replicas = *in.Replicas + out.Selector = in.Selector + if in.Template != nil { + out.Template = new(api.PodTemplateSpec) + if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in.Template, out.Template, s); err != nil { + return err + } + } else { + out.Template = nil + } + return nil +} + +func Convert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, out *PodStatusResult, s conversion.Scope) error { + if err := autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in, out, s); err != nil { + return err + } + + if old := out.Annotations; old != nil { + out.Annotations = make(map[string]string, len(old)) + for k, v := range old { + out.Annotations[k] = v + } + } + if len(out.Status.InitContainerStatuses) > 0 { + if out.Annotations == nil { + out.Annotations = make(map[string]string) + } + value, err := json.Marshal(out.Status.InitContainerStatuses) + if err != nil { + return err + } + out.Annotations[PodInitContainerStatusesAnnotationKey] = string(value) + } else { + delete(out.Annotations, PodInitContainerStatusesAnnotationKey) + } + return nil +} + +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 + if value, ok := in.Annotations[PodInitContainerStatusesAnnotationKey]; ok { + var values []ContainerStatus + if err := json.Unmarshal([]byte(value), &values); err != nil { + return err + } + // Conversion from external to internal version exists more to + // satisfy the needs of the decoder than it does to be a general + // purpose tool. And Decode always creates an intermediate object + // to decode to. Thus the caller of UnsafeConvertToVersion is + // taking responsibility to ensure mutation of in is not exposed + // back to the caller. + in.Status.InitContainerStatuses = values + } + + if err := autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in, out, s); err != nil { + return err + } + if len(out.Annotations) > 0 { + old := out.Annotations + out.Annotations = make(map[string]string, len(old)) + for k, v := range old { + out.Annotations[k] = v + } + delete(out.Annotations, PodInitContainerStatusesAnnotationKey) + } + return nil +} + +func Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error { + if err := autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in, out, s); err != nil { + return err + } + + // TODO: when we move init container to beta, remove these conversions + if old := out.Annotations; old != nil { + out.Annotations = make(map[string]string, len(old)) + for k, v := range old { + out.Annotations[k] = v + } + } + if len(out.Spec.InitContainers) > 0 { + if out.Annotations == nil { + out.Annotations = make(map[string]string) + } + value, err := json.Marshal(out.Spec.InitContainers) + if err != nil { + return err + } + out.Annotations[PodInitContainersAnnotationKey] = string(value) + } else { + delete(out.Annotations, PodInitContainersAnnotationKey) + } + 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 + if value, ok := in.Annotations[PodInitContainersAnnotationKey]; ok { + var values []Container + if err := json.Unmarshal([]byte(value), &values); err != nil { + return err + } + // Conversion from external to internal version exists more to + // satisfy the needs of the decoder than it does to be a general + // purpose tool. And Decode always creates an intermediate object + // to decode to. Thus the caller of UnsafeConvertToVersion is + // taking responsibility to ensure mutation of in is not exposed + // back to the caller. + in.Spec.InitContainers = values + } + + if err := autoConvert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in, out, s); err != nil { + return err + } + if len(out.Annotations) > 0 { + old := out.Annotations + out.Annotations = make(map[string]string, len(old)) + for k, v := range old { + out.Annotations[k] = v + } + delete(out.Annotations, PodInitContainersAnnotationKey) + } + return nil +} + +// The following two PodSpec conversions are done here to support ServiceAccount +// as an alias for ServiceAccountName. +func Convert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conversion.Scope) error { + if err := autoConvert_api_PodSpec_To_v1_PodSpec(in, out, s); err != nil { + return err + } + + // DeprecatedServiceAccount is an alias for ServiceAccountName. + out.DeprecatedServiceAccount = in.ServiceAccountName + + if in.SecurityContext != nil { + // the host namespace fields have to be handled here for backward compatibility + // with v1.0.0 + out.HostPID = in.SecurityContext.HostPID + out.HostNetwork = in.SecurityContext.HostNetwork + out.HostIPC = in.SecurityContext.HostIPC + } + + return nil +} + +func Convert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conversion.Scope) error { + if err := autoConvert_v1_PodSpec_To_api_PodSpec(in, out, s); err != nil { + return err + } + + // We support DeprecatedServiceAccount as an alias for ServiceAccountName. + // If both are specified, ServiceAccountName (the new field) wins. + if in.ServiceAccountName == "" { + out.ServiceAccountName = in.DeprecatedServiceAccount + } + + // the host namespace fields have to be handled specially for backward compatibility + // with v1.0.0 + if out.SecurityContext == nil { + out.SecurityContext = new(api.PodSecurityContext) + } + out.SecurityContext.HostNetwork = in.HostNetwork + out.SecurityContext.HostPID = in.HostPID + out.SecurityContext.HostIPC = in.HostIPC + + return nil +} + +func Convert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error { + if err := autoConvert_api_Pod_To_v1_Pod(in, out, s); err != nil { + return err + } + + // TODO: when we move init container to beta, 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)) + for k, v := range old { + out.Annotations[k] = v + } + delete(out.Annotations, PodInitContainersAnnotationKey) + delete(out.Annotations, PodInitContainerStatusesAnnotationKey) + } + if len(out.Spec.InitContainers) > 0 { + value, err := json.Marshal(out.Spec.InitContainers) + if err != nil { + return err + } + out.Annotations[PodInitContainersAnnotationKey] = string(value) + } + if len(out.Status.InitContainerStatuses) > 0 { + value, err := json.Marshal(out.Status.InitContainerStatuses) + if err != nil { + return err + } + out.Annotations[PodInitContainerStatusesAnnotationKey] = string(value) + } + + // We need to reset certain fields for mirror pods from pre-v1.1 kubelet + // (#15960). + // TODO: Remove this code after we drop support for v1.0 kubelets. + if value, ok := in.Annotations[mirrorAnnotationKey]; ok && value == mirrorAnnotationValue_1_0 { + // Reset the TerminationGracePeriodSeconds. + out.Spec.TerminationGracePeriodSeconds = nil + // Reset the resource requests. + for i := range out.Spec.Containers { + out.Spec.Containers[i].Resources.Requests = nil + } + } + return nil +} + +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 value, ok := in.Annotations[PodInitContainersAnnotationKey]; ok { + var values []Container + if err := json.Unmarshal([]byte(value), &values); err != nil { + return err + } + // Conversion from external to internal version exists more to + // satisfy the needs of the decoder than it does to be a general + // purpose tool. And Decode always creates an intermediate object + // to decode to. Thus the caller of UnsafeConvertToVersion is + // taking responsibility to ensure mutation of in is not exposed + // back to the caller. + in.Spec.InitContainers = values + } + if value, ok := in.Annotations[PodInitContainerStatusesAnnotationKey]; ok { + var values []ContainerStatus + if err := json.Unmarshal([]byte(value), &values); err != nil { + return err + } + // Conversion from external to internal version exists more to + // satisfy the needs of the decoder than it does to be a general + // purpose tool. And Decode always creates an intermediate object + // to decode to. Thus the caller of UnsafeConvertToVersion is + // taking responsibility to ensure mutation of in is not exposed + // back to the caller. + in.Status.InitContainerStatuses = values + } + + if err := autoConvert_v1_Pod_To_api_Pod(in, out, s); err != nil { + return err + } + if len(out.Annotations) > 0 { + old := out.Annotations + out.Annotations = make(map[string]string, len(old)) + for k, v := range old { + out.Annotations[k] = v + } + delete(out.Annotations, PodInitContainersAnnotationKey) + delete(out.Annotations, PodInitContainerStatusesAnnotationKey) + } + return nil +} + +func Convert_api_ServiceSpec_To_v1_ServiceSpec(in *api.ServiceSpec, out *ServiceSpec, s conversion.Scope) error { + if err := autoConvert_api_ServiceSpec_To_v1_ServiceSpec(in, out, s); err != nil { + return err + } + // Publish both externalIPs and deprecatedPublicIPs fields in v1. + out.DeprecatedPublicIPs = in.ExternalIPs + return nil +} + +func Convert_v1_Secret_To_api_Secret(in *Secret, out *api.Secret, s conversion.Scope) error { + if err := autoConvert_v1_Secret_To_api_Secret(in, out, s); err != nil { + return err + } + + // StringData overwrites Data + if len(in.StringData) > 0 { + if out.Data == nil { + out.Data = map[string][]byte{} + } + for k, v := range in.StringData { + out.Data[k] = []byte(v) + } + } + + return nil +} + +func Convert_v1_ServiceSpec_To_api_ServiceSpec(in *ServiceSpec, out *api.ServiceSpec, s conversion.Scope) error { + if err := autoConvert_v1_ServiceSpec_To_api_ServiceSpec(in, out, s); err != nil { + return err + } + // Prefer the legacy deprecatedPublicIPs field, if provided. + if len(in.DeprecatedPublicIPs) > 0 { + out.ExternalIPs = in.DeprecatedPublicIPs + } + return nil +} + +func Convert_api_PodSecurityContext_To_v1_PodSecurityContext(in *api.PodSecurityContext, out *PodSecurityContext, s conversion.Scope) error { + out.SupplementalGroups = in.SupplementalGroups + if in.SELinuxOptions != nil { + out.SELinuxOptions = new(SELinuxOptions) + if err := Convert_api_SELinuxOptions_To_v1_SELinuxOptions(in.SELinuxOptions, out.SELinuxOptions, s); err != nil { + return err + } + } else { + out.SELinuxOptions = nil + } + out.RunAsUser = in.RunAsUser + out.RunAsNonRoot = in.RunAsNonRoot + out.FSGroup = in.FSGroup + return nil +} + +func Convert_v1_PodSecurityContext_To_api_PodSecurityContext(in *PodSecurityContext, out *api.PodSecurityContext, s conversion.Scope) error { + out.SupplementalGroups = in.SupplementalGroups + if in.SELinuxOptions != nil { + out.SELinuxOptions = new(api.SELinuxOptions) + if err := Convert_v1_SELinuxOptions_To_api_SELinuxOptions(in.SELinuxOptions, out.SELinuxOptions, s); err != nil { + return err + } + } else { + out.SELinuxOptions = nil + } + out.RunAsUser = in.RunAsUser + out.RunAsNonRoot = in.RunAsNonRoot + out.FSGroup = in.FSGroup + return nil +} + +func Convert_v1_ResourceList_To_api_ResourceList(in *ResourceList, out *api.ResourceList, s conversion.Scope) error { + if *in == nil { + return nil + } + + if *out == nil { + *out = make(api.ResourceList, len(*in)) + } + for key, val := range *in { + // TODO(#18538): We round up resource values to milli scale to maintain API compatibility. + // In the future, we should instead reject values that need rounding. + const milliScale = -3 + val.RoundUp(milliScale) + + (*out)[api.ResourceName(key)] = val + } + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/defaults.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/defaults.go new file mode 100644 index 0000000000..e0aa6e2cbd --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/defaults.go @@ -0,0 +1,301 @@ +/* +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 v1 + +import ( + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/util" + "k8s.io/client-go/1.4/pkg/util/intstr" + "k8s.io/client-go/1.4/pkg/util/parsers" +) + +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return scheme.AddDefaultingFuncs( + SetDefaults_PodExecOptions, + SetDefaults_PodAttachOptions, + SetDefaults_ReplicationController, + SetDefaults_Volume, + SetDefaults_ContainerPort, + SetDefaults_Container, + SetDefaults_ServiceSpec, + SetDefaults_Pod, + SetDefaults_PodSpec, + SetDefaults_Probe, + SetDefaults_Secret, + SetDefaults_PersistentVolume, + SetDefaults_PersistentVolumeClaim, + SetDefaults_ISCSIVolumeSource, + SetDefaults_Endpoints, + SetDefaults_HTTPGetAction, + SetDefaults_NamespaceStatus, + SetDefaults_Node, + SetDefaults_NodeStatus, + SetDefaults_ObjectFieldSelector, + SetDefaults_LimitRangeItem, + SetDefaults_ConfigMap, + SetDefaults_RBDVolumeSource, + ) +} + +func SetDefaults_PodExecOptions(obj *PodExecOptions) { + obj.Stdout = true + obj.Stderr = true +} +func SetDefaults_PodAttachOptions(obj *PodAttachOptions) { + obj.Stdout = true + obj.Stderr = true +} +func SetDefaults_ReplicationController(obj *ReplicationController) { + var labels map[string]string + if obj.Spec.Template != nil { + labels = obj.Spec.Template.Labels + } + // TODO: support templates defined elsewhere when we support them in the API + if labels != nil { + if len(obj.Spec.Selector) == 0 { + obj.Spec.Selector = labels + } + if len(obj.Labels) == 0 { + obj.Labels = labels + } + } + if obj.Spec.Replicas == nil { + obj.Spec.Replicas = new(int32) + *obj.Spec.Replicas = 1 + } +} +func SetDefaults_Volume(obj *Volume) { + if util.AllPtrFieldsNil(&obj.VolumeSource) { + obj.VolumeSource = VolumeSource{ + EmptyDir: &EmptyDirVolumeSource{}, + } + } +} +func SetDefaults_ContainerPort(obj *ContainerPort) { + if obj.Protocol == "" { + obj.Protocol = ProtocolTCP + } +} +func SetDefaults_Container(obj *Container) { + if obj.ImagePullPolicy == "" { + // Ignore error and assume it has been validated elsewhere + _, tag, _, _ := parsers.ParseImageName(obj.Image) + + // Check image tag + + if tag == "latest" { + obj.ImagePullPolicy = PullAlways + } else { + obj.ImagePullPolicy = PullIfNotPresent + } + } + if obj.TerminationMessagePath == "" { + obj.TerminationMessagePath = TerminationMessagePathDefault + } +} +func SetDefaults_ServiceSpec(obj *ServiceSpec) { + if obj.SessionAffinity == "" { + obj.SessionAffinity = ServiceAffinityNone + } + if obj.Type == "" { + obj.Type = ServiceTypeClusterIP + } + for i := range obj.Ports { + sp := &obj.Ports[i] + if sp.Protocol == "" { + sp.Protocol = ProtocolTCP + } + if sp.TargetPort == intstr.FromInt(0) || sp.TargetPort == intstr.FromString("") { + sp.TargetPort = intstr.FromInt(int(sp.Port)) + } + } +} +func SetDefaults_Pod(obj *Pod) { + // If limits are specified, but requests are not, default requests to limits + // This is done here rather than a more specific defaulting pass on ResourceRequirements + // because we only want this defaulting semantic to take place on a Pod and not a PodTemplate + for i := range obj.Spec.Containers { + // set requests to limits if requests are not specified, but limits are + if obj.Spec.Containers[i].Resources.Limits != nil { + if obj.Spec.Containers[i].Resources.Requests == nil { + obj.Spec.Containers[i].Resources.Requests = make(ResourceList) + } + for key, value := range obj.Spec.Containers[i].Resources.Limits { + if _, exists := obj.Spec.Containers[i].Resources.Requests[key]; !exists { + obj.Spec.Containers[i].Resources.Requests[key] = *(value.Copy()) + } + } + } + } +} +func SetDefaults_PodSpec(obj *PodSpec) { + if obj.DNSPolicy == "" { + obj.DNSPolicy = DNSClusterFirst + } + if obj.RestartPolicy == "" { + obj.RestartPolicy = RestartPolicyAlways + } + if obj.HostNetwork { + defaultHostNetworkPorts(&obj.Containers) + } + if obj.SecurityContext == nil { + obj.SecurityContext = &PodSecurityContext{} + } + if obj.TerminationGracePeriodSeconds == nil { + period := int64(DefaultTerminationGracePeriodSeconds) + obj.TerminationGracePeriodSeconds = &period + } +} +func SetDefaults_Probe(obj *Probe) { + if obj.TimeoutSeconds == 0 { + obj.TimeoutSeconds = 1 + } + if obj.PeriodSeconds == 0 { + obj.PeriodSeconds = 10 + } + if obj.SuccessThreshold == 0 { + obj.SuccessThreshold = 1 + } + if obj.FailureThreshold == 0 { + obj.FailureThreshold = 3 + } +} +func SetDefaults_Secret(obj *Secret) { + if obj.Type == "" { + obj.Type = SecretTypeOpaque + } +} +func SetDefaults_PersistentVolume(obj *PersistentVolume) { + if obj.Status.Phase == "" { + obj.Status.Phase = VolumePending + } + if obj.Spec.PersistentVolumeReclaimPolicy == "" { + obj.Spec.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimRetain + } +} +func SetDefaults_PersistentVolumeClaim(obj *PersistentVolumeClaim) { + if obj.Status.Phase == "" { + obj.Status.Phase = ClaimPending + } +} +func SetDefaults_ISCSIVolumeSource(obj *ISCSIVolumeSource) { + if obj.ISCSIInterface == "" { + obj.ISCSIInterface = "default" + } +} +func SetDefaults_Endpoints(obj *Endpoints) { + for i := range obj.Subsets { + ss := &obj.Subsets[i] + for i := range ss.Ports { + ep := &ss.Ports[i] + if ep.Protocol == "" { + ep.Protocol = ProtocolTCP + } + } + } +} +func SetDefaults_HTTPGetAction(obj *HTTPGetAction) { + if obj.Path == "" { + obj.Path = "/" + } + if obj.Scheme == "" { + obj.Scheme = URISchemeHTTP + } +} +func SetDefaults_NamespaceStatus(obj *NamespaceStatus) { + if obj.Phase == "" { + obj.Phase = NamespaceActive + } +} +func SetDefaults_Node(obj *Node) { + if obj.Spec.ExternalID == "" { + obj.Spec.ExternalID = obj.Name + } +} +func SetDefaults_NodeStatus(obj *NodeStatus) { + if obj.Allocatable == nil && obj.Capacity != nil { + obj.Allocatable = make(ResourceList, len(obj.Capacity)) + for key, value := range obj.Capacity { + obj.Allocatable[key] = *(value.Copy()) + } + obj.Allocatable = obj.Capacity + } +} +func SetDefaults_ObjectFieldSelector(obj *ObjectFieldSelector) { + if obj.APIVersion == "" { + obj.APIVersion = "v1" + } +} +func SetDefaults_LimitRangeItem(obj *LimitRangeItem) { + // for container limits, we apply default values + if obj.Type == LimitTypeContainer { + + if obj.Default == nil { + obj.Default = make(ResourceList) + } + if obj.DefaultRequest == nil { + obj.DefaultRequest = make(ResourceList) + } + + // If a default limit is unspecified, but the max is specified, default the limit to the max + for key, value := range obj.Max { + if _, exists := obj.Default[key]; !exists { + obj.Default[key] = *(value.Copy()) + } + } + // If a default limit is specified, but the default request is not, default request to limit + for key, value := range obj.Default { + if _, exists := obj.DefaultRequest[key]; !exists { + obj.DefaultRequest[key] = *(value.Copy()) + } + } + // If a default request is not specified, but the min is provided, default request to the min + for key, value := range obj.Min { + if _, exists := obj.DefaultRequest[key]; !exists { + obj.DefaultRequest[key] = *(value.Copy()) + } + } + } +} +func SetDefaults_ConfigMap(obj *ConfigMap) { + if obj.Data == nil { + obj.Data = make(map[string]string) + } +} + +// With host networking default all container ports to host ports. +func defaultHostNetworkPorts(containers *[]Container) { + for i := range *containers { + for j := range (*containers)[i].Ports { + if (*containers)[i].Ports[j].HostPort == 0 { + (*containers)[i].Ports[j].HostPort = (*containers)[i].Ports[j].ContainerPort + } + } + } +} + +func SetDefaults_RBDVolumeSource(obj *RBDVolumeSource) { + if obj.RBDPool == "" { + obj.RBDPool = "rbd" + } + if obj.RadosUser == "" { + obj.RadosUser = "admin" + } + if obj.Keyring == "" { + obj.Keyring = "/etc/ceph/keyring" + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/doc.go new file mode 100644 index 0000000000..8849ee1cb1 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/doc.go @@ -0,0 +1,21 @@ +/* +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. +*/ + +// +k8s:deepcopy-gen=package,register +// +k8s:conversion-gen=k8s.io/kubernetes/pkg/api + +// Package v1 is the v1 version of the API. +package v1 diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/generated.pb.go new file mode 100644 index 0000000000..432378bcd3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/generated.pb.go @@ -0,0 +1,38054 @@ +/* +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/api/v1/generated.proto +// DO NOT EDIT! + +/* + Package v1 is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/api/v1/generated.proto + + It has these top-level messages: + AWSElasticBlockStoreVolumeSource + Affinity + AttachedVolume + AvoidPods + AzureFileVolumeSource + Binding + Capabilities + CephFSVolumeSource + CinderVolumeSource + ComponentCondition + ComponentStatus + ComponentStatusList + ConfigMap + ConfigMapKeySelector + ConfigMapList + ConfigMapVolumeSource + Container + ContainerImage + ContainerPort + ContainerState + ContainerStateRunning + ContainerStateTerminated + ContainerStateWaiting + ContainerStatus + DaemonEndpoint + DeleteOptions + DownwardAPIVolumeFile + DownwardAPIVolumeSource + EmptyDirVolumeSource + EndpointAddress + EndpointPort + EndpointSubset + Endpoints + EndpointsList + EnvVar + EnvVarSource + Event + EventList + EventSource + ExecAction + ExportOptions + FCVolumeSource + FlexVolumeSource + FlockerVolumeSource + GCEPersistentDiskVolumeSource + GitRepoVolumeSource + GlusterfsVolumeSource + HTTPGetAction + HTTPHeader + Handler + HostPathVolumeSource + ISCSIVolumeSource + KeyToPath + Lifecycle + LimitRange + LimitRangeItem + LimitRangeList + LimitRangeSpec + List + ListOptions + LoadBalancerIngress + LoadBalancerStatus + LocalObjectReference + NFSVolumeSource + Namespace + NamespaceList + NamespaceSpec + NamespaceStatus + Node + NodeAddress + NodeAffinity + NodeCondition + NodeDaemonEndpoints + NodeList + NodeProxyOptions + NodeSelector + NodeSelectorRequirement + NodeSelectorTerm + NodeSpec + NodeStatus + NodeSystemInfo + ObjectFieldSelector + ObjectMeta + ObjectReference + OwnerReference + PersistentVolume + PersistentVolumeClaim + PersistentVolumeClaimList + PersistentVolumeClaimSpec + PersistentVolumeClaimStatus + PersistentVolumeClaimVolumeSource + PersistentVolumeList + PersistentVolumeSource + PersistentVolumeSpec + PersistentVolumeStatus + Pod + PodAffinity + PodAffinityTerm + PodAntiAffinity + PodAttachOptions + PodCondition + PodExecOptions + PodList + PodLogOptions + PodProxyOptions + PodSecurityContext + PodSignature + PodSpec + PodStatus + PodStatusResult + PodTemplate + PodTemplateList + PodTemplateSpec + Preconditions + PreferAvoidPodsEntry + PreferredSchedulingTerm + Probe + RBDVolumeSource + RangeAllocation + ReplicationController + ReplicationControllerList + ReplicationControllerSpec + ReplicationControllerStatus + ResourceFieldSelector + ResourceQuota + ResourceQuotaList + ResourceQuotaSpec + ResourceQuotaStatus + ResourceRequirements + SELinuxOptions + Secret + SecretKeySelector + SecretList + SecretVolumeSource + SecurityContext + SerializedReference + Service + ServiceAccount + ServiceAccountList + ServiceList + ServicePort + ServiceProxyOptions + ServiceSpec + ServiceStatus + TCPSocketAction + Taint + Toleration + Volume + VolumeMount + VolumeSource + VsphereVirtualDiskVolumeSource + WeightedPodAffinityTerm +*/ +package v1 + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +import k8s_io_kubernetes_pkg_api_resource "k8s.io/client-go/1.4/pkg/api/resource" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_runtime "k8s.io/client-go/1.4/pkg/runtime" + +import k8s_io_kubernetes_pkg_types "k8s.io/client-go/1.4/pkg/types" + +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 *AWSElasticBlockStoreVolumeSource) Reset() { *m = AWSElasticBlockStoreVolumeSource{} } +func (*AWSElasticBlockStoreVolumeSource) ProtoMessage() {} +func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{0} +} + +func (m *Affinity) Reset() { *m = Affinity{} } +func (*Affinity) ProtoMessage() {} +func (*Affinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *AttachedVolume) Reset() { *m = AttachedVolume{} } +func (*AttachedVolume) ProtoMessage() {} +func (*AttachedVolume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *AvoidPods) Reset() { *m = AvoidPods{} } +func (*AvoidPods) ProtoMessage() {} +func (*AvoidPods) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *AzureFileVolumeSource) Reset() { *m = AzureFileVolumeSource{} } +func (*AzureFileVolumeSource) ProtoMessage() {} +func (*AzureFileVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *Binding) Reset() { *m = Binding{} } +func (*Binding) ProtoMessage() {} +func (*Binding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *Capabilities) Reset() { *m = Capabilities{} } +func (*Capabilities) ProtoMessage() {} +func (*Capabilities) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *CephFSVolumeSource) Reset() { *m = CephFSVolumeSource{} } +func (*CephFSVolumeSource) ProtoMessage() {} +func (*CephFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *CinderVolumeSource) Reset() { *m = CinderVolumeSource{} } +func (*CinderVolumeSource) ProtoMessage() {} +func (*CinderVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } + +func (m *ComponentCondition) Reset() { *m = ComponentCondition{} } +func (*ComponentCondition) ProtoMessage() {} +func (*ComponentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } + +func (m *ComponentStatus) Reset() { *m = ComponentStatus{} } +func (*ComponentStatus) ProtoMessage() {} +func (*ComponentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } + +func (m *ComponentStatusList) Reset() { *m = ComponentStatusList{} } +func (*ComponentStatusList) ProtoMessage() {} +func (*ComponentStatusList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } + +func (m *ConfigMap) Reset() { *m = ConfigMap{} } +func (*ConfigMap) ProtoMessage() {} +func (*ConfigMap) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } + +func (m *ConfigMapKeySelector) Reset() { *m = ConfigMapKeySelector{} } +func (*ConfigMapKeySelector) ProtoMessage() {} +func (*ConfigMapKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } + +func (m *ConfigMapList) Reset() { *m = ConfigMapList{} } +func (*ConfigMapList) ProtoMessage() {} +func (*ConfigMapList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } + +func (m *ConfigMapVolumeSource) Reset() { *m = ConfigMapVolumeSource{} } +func (*ConfigMapVolumeSource) ProtoMessage() {} +func (*ConfigMapVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } + +func (m *Container) Reset() { *m = Container{} } +func (*Container) ProtoMessage() {} +func (*Container) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } + +func (m *ContainerImage) Reset() { *m = ContainerImage{} } +func (*ContainerImage) ProtoMessage() {} +func (*ContainerImage) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } + +func (m *ContainerPort) Reset() { *m = ContainerPort{} } +func (*ContainerPort) ProtoMessage() {} +func (*ContainerPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } + +func (m *ContainerState) Reset() { *m = ContainerState{} } +func (*ContainerState) ProtoMessage() {} +func (*ContainerState) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } + +func (m *ContainerStateRunning) Reset() { *m = ContainerStateRunning{} } +func (*ContainerStateRunning) ProtoMessage() {} +func (*ContainerStateRunning) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } + +func (m *ContainerStateTerminated) Reset() { *m = ContainerStateTerminated{} } +func (*ContainerStateTerminated) ProtoMessage() {} +func (*ContainerStateTerminated) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{21} +} + +func (m *ContainerStateWaiting) Reset() { *m = ContainerStateWaiting{} } +func (*ContainerStateWaiting) ProtoMessage() {} +func (*ContainerStateWaiting) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } + +func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } +func (*ContainerStatus) ProtoMessage() {} +func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } + +func (m *DaemonEndpoint) Reset() { *m = DaemonEndpoint{} } +func (*DaemonEndpoint) ProtoMessage() {} +func (*DaemonEndpoint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } + +func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } +func (*DeleteOptions) ProtoMessage() {} +func (*DeleteOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } + +func (m *DownwardAPIVolumeFile) Reset() { *m = DownwardAPIVolumeFile{} } +func (*DownwardAPIVolumeFile) ProtoMessage() {} +func (*DownwardAPIVolumeFile) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } + +func (m *DownwardAPIVolumeSource) Reset() { *m = DownwardAPIVolumeSource{} } +func (*DownwardAPIVolumeSource) ProtoMessage() {} +func (*DownwardAPIVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{27} +} + +func (m *EmptyDirVolumeSource) Reset() { *m = EmptyDirVolumeSource{} } +func (*EmptyDirVolumeSource) ProtoMessage() {} +func (*EmptyDirVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } + +func (m *EndpointAddress) Reset() { *m = EndpointAddress{} } +func (*EndpointAddress) ProtoMessage() {} +func (*EndpointAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } + +func (m *EndpointPort) Reset() { *m = EndpointPort{} } +func (*EndpointPort) ProtoMessage() {} +func (*EndpointPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } + +func (m *EndpointSubset) Reset() { *m = EndpointSubset{} } +func (*EndpointSubset) ProtoMessage() {} +func (*EndpointSubset) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } + +func (m *Endpoints) Reset() { *m = Endpoints{} } +func (*Endpoints) ProtoMessage() {} +func (*Endpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } + +func (m *EndpointsList) Reset() { *m = EndpointsList{} } +func (*EndpointsList) ProtoMessage() {} +func (*EndpointsList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } + +func (m *EnvVar) Reset() { *m = EnvVar{} } +func (*EnvVar) ProtoMessage() {} +func (*EnvVar) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } + +func (m *EnvVarSource) Reset() { *m = EnvVarSource{} } +func (*EnvVarSource) ProtoMessage() {} +func (*EnvVarSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } + +func (m *Event) Reset() { *m = Event{} } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } + +func (m *EventList) Reset() { *m = EventList{} } +func (*EventList) ProtoMessage() {} +func (*EventList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } + +func (m *EventSource) Reset() { *m = EventSource{} } +func (*EventSource) ProtoMessage() {} +func (*EventSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } + +func (m *ExecAction) Reset() { *m = ExecAction{} } +func (*ExecAction) ProtoMessage() {} +func (*ExecAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } + +func (m *ExportOptions) Reset() { *m = ExportOptions{} } +func (*ExportOptions) ProtoMessage() {} +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } + +func (m *FCVolumeSource) Reset() { *m = FCVolumeSource{} } +func (*FCVolumeSource) ProtoMessage() {} +func (*FCVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } + +func (m *FlexVolumeSource) Reset() { *m = FlexVolumeSource{} } +func (*FlexVolumeSource) ProtoMessage() {} +func (*FlexVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } + +func (m *FlockerVolumeSource) Reset() { *m = FlockerVolumeSource{} } +func (*FlockerVolumeSource) ProtoMessage() {} +func (*FlockerVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } + +func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } +func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} +func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{44} +} + +func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } +func (*GitRepoVolumeSource) ProtoMessage() {} +func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } + +func (m *GlusterfsVolumeSource) Reset() { *m = GlusterfsVolumeSource{} } +func (*GlusterfsVolumeSource) ProtoMessage() {} +func (*GlusterfsVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } + +func (m *HTTPGetAction) Reset() { *m = HTTPGetAction{} } +func (*HTTPGetAction) ProtoMessage() {} +func (*HTTPGetAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } + +func (m *HTTPHeader) Reset() { *m = HTTPHeader{} } +func (*HTTPHeader) ProtoMessage() {} +func (*HTTPHeader) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } + +func (m *Handler) Reset() { *m = Handler{} } +func (*Handler) ProtoMessage() {} +func (*Handler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } + +func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } +func (*HostPathVolumeSource) ProtoMessage() {} +func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } + +func (m *ISCSIVolumeSource) Reset() { *m = ISCSIVolumeSource{} } +func (*ISCSIVolumeSource) ProtoMessage() {} +func (*ISCSIVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } + +func (m *KeyToPath) Reset() { *m = KeyToPath{} } +func (*KeyToPath) ProtoMessage() {} +func (*KeyToPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } + +func (m *Lifecycle) Reset() { *m = Lifecycle{} } +func (*Lifecycle) ProtoMessage() {} +func (*Lifecycle) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } + +func (m *LimitRange) Reset() { *m = LimitRange{} } +func (*LimitRange) ProtoMessage() {} +func (*LimitRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } + +func (m *LimitRangeItem) Reset() { *m = LimitRangeItem{} } +func (*LimitRangeItem) ProtoMessage() {} +func (*LimitRangeItem) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{55} } + +func (m *LimitRangeList) Reset() { *m = LimitRangeList{} } +func (*LimitRangeList) ProtoMessage() {} +func (*LimitRangeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } + +func (m *LimitRangeSpec) Reset() { *m = LimitRangeSpec{} } +func (*LimitRangeSpec) ProtoMessage() {} +func (*LimitRangeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{57} } + +func (m *List) Reset() { *m = List{} } +func (*List) ProtoMessage() {} +func (*List) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } + +func (m *ListOptions) Reset() { *m = ListOptions{} } +func (*ListOptions) ProtoMessage() {} +func (*ListOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } + +func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } +func (*LoadBalancerIngress) ProtoMessage() {} +func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } + +func (m *LoadBalancerStatus) Reset() { *m = LoadBalancerStatus{} } +func (*LoadBalancerStatus) ProtoMessage() {} +func (*LoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } + +func (m *LocalObjectReference) Reset() { *m = LocalObjectReference{} } +func (*LocalObjectReference) ProtoMessage() {} +func (*LocalObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } + +func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } +func (*NFSVolumeSource) ProtoMessage() {} +func (*NFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } + +func (m *Namespace) Reset() { *m = Namespace{} } +func (*Namespace) ProtoMessage() {} +func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } + +func (m *NamespaceList) Reset() { *m = NamespaceList{} } +func (*NamespaceList) ProtoMessage() {} +func (*NamespaceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } + +func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } +func (*NamespaceSpec) ProtoMessage() {} +func (*NamespaceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{66} } + +func (m *NamespaceStatus) Reset() { *m = NamespaceStatus{} } +func (*NamespaceStatus) ProtoMessage() {} +func (*NamespaceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{67} } + +func (m *Node) Reset() { *m = Node{} } +func (*Node) ProtoMessage() {} +func (*Node) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{68} } + +func (m *NodeAddress) Reset() { *m = NodeAddress{} } +func (*NodeAddress) ProtoMessage() {} +func (*NodeAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{69} } + +func (m *NodeAffinity) Reset() { *m = NodeAffinity{} } +func (*NodeAffinity) ProtoMessage() {} +func (*NodeAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{70} } + +func (m *NodeCondition) Reset() { *m = NodeCondition{} } +func (*NodeCondition) ProtoMessage() {} +func (*NodeCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{71} } + +func (m *NodeDaemonEndpoints) Reset() { *m = NodeDaemonEndpoints{} } +func (*NodeDaemonEndpoints) ProtoMessage() {} +func (*NodeDaemonEndpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{72} } + +func (m *NodeList) Reset() { *m = NodeList{} } +func (*NodeList) ProtoMessage() {} +func (*NodeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{73} } + +func (m *NodeProxyOptions) Reset() { *m = NodeProxyOptions{} } +func (*NodeProxyOptions) ProtoMessage() {} +func (*NodeProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{74} } + +func (m *NodeSelector) Reset() { *m = NodeSelector{} } +func (*NodeSelector) ProtoMessage() {} +func (*NodeSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{75} } + +func (m *NodeSelectorRequirement) Reset() { *m = NodeSelectorRequirement{} } +func (*NodeSelectorRequirement) ProtoMessage() {} +func (*NodeSelectorRequirement) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{76} +} + +func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } +func (*NodeSelectorTerm) ProtoMessage() {} +func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{77} } + +func (m *NodeSpec) Reset() { *m = NodeSpec{} } +func (*NodeSpec) ProtoMessage() {} +func (*NodeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{78} } + +func (m *NodeStatus) Reset() { *m = NodeStatus{} } +func (*NodeStatus) ProtoMessage() {} +func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{79} } + +func (m *NodeSystemInfo) Reset() { *m = NodeSystemInfo{} } +func (*NodeSystemInfo) ProtoMessage() {} +func (*NodeSystemInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{80} } + +func (m *ObjectFieldSelector) Reset() { *m = ObjectFieldSelector{} } +func (*ObjectFieldSelector) ProtoMessage() {} +func (*ObjectFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{81} } + +func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } +func (*ObjectMeta) ProtoMessage() {} +func (*ObjectMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{82} } + +func (m *ObjectReference) Reset() { *m = ObjectReference{} } +func (*ObjectReference) ProtoMessage() {} +func (*ObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{83} } + +func (m *OwnerReference) Reset() { *m = OwnerReference{} } +func (*OwnerReference) ProtoMessage() {} +func (*OwnerReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{84} } + +func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } +func (*PersistentVolume) ProtoMessage() {} +func (*PersistentVolume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{85} } + +func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } +func (*PersistentVolumeClaim) ProtoMessage() {} +func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{86} } + +func (m *PersistentVolumeClaimList) Reset() { *m = PersistentVolumeClaimList{} } +func (*PersistentVolumeClaimList) ProtoMessage() {} +func (*PersistentVolumeClaimList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{87} +} + +func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } +func (*PersistentVolumeClaimSpec) ProtoMessage() {} +func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{88} +} + +func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } +func (*PersistentVolumeClaimStatus) ProtoMessage() {} +func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{89} +} + +func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } +func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} +func (*PersistentVolumeClaimVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{90} +} + +func (m *PersistentVolumeList) Reset() { *m = PersistentVolumeList{} } +func (*PersistentVolumeList) ProtoMessage() {} +func (*PersistentVolumeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{91} } + +func (m *PersistentVolumeSource) Reset() { *m = PersistentVolumeSource{} } +func (*PersistentVolumeSource) ProtoMessage() {} +func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{92} } + +func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } +func (*PersistentVolumeSpec) ProtoMessage() {} +func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{93} } + +func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } +func (*PersistentVolumeStatus) ProtoMessage() {} +func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{94} } + +func (m *Pod) Reset() { *m = Pod{} } +func (*Pod) ProtoMessage() {} +func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{95} } + +func (m *PodAffinity) Reset() { *m = PodAffinity{} } +func (*PodAffinity) ProtoMessage() {} +func (*PodAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{96} } + +func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } +func (*PodAffinityTerm) ProtoMessage() {} +func (*PodAffinityTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{97} } + +func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } +func (*PodAntiAffinity) ProtoMessage() {} +func (*PodAntiAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{98} } + +func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } +func (*PodAttachOptions) ProtoMessage() {} +func (*PodAttachOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{99} } + +func (m *PodCondition) Reset() { *m = PodCondition{} } +func (*PodCondition) ProtoMessage() {} +func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{100} } + +func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } +func (*PodExecOptions) ProtoMessage() {} +func (*PodExecOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{101} } + +func (m *PodList) Reset() { *m = PodList{} } +func (*PodList) ProtoMessage() {} +func (*PodList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{102} } + +func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } +func (*PodLogOptions) ProtoMessage() {} +func (*PodLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{103} } + +func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } +func (*PodProxyOptions) ProtoMessage() {} +func (*PodProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{104} } + +func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } +func (*PodSecurityContext) ProtoMessage() {} +func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{105} } + +func (m *PodSignature) Reset() { *m = PodSignature{} } +func (*PodSignature) ProtoMessage() {} +func (*PodSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{106} } + +func (m *PodSpec) Reset() { *m = PodSpec{} } +func (*PodSpec) ProtoMessage() {} +func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{107} } + +func (m *PodStatus) Reset() { *m = PodStatus{} } +func (*PodStatus) ProtoMessage() {} +func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{108} } + +func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } +func (*PodStatusResult) ProtoMessage() {} +func (*PodStatusResult) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{109} } + +func (m *PodTemplate) Reset() { *m = PodTemplate{} } +func (*PodTemplate) ProtoMessage() {} +func (*PodTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{110} } + +func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } +func (*PodTemplateList) ProtoMessage() {} +func (*PodTemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{111} } + +func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } +func (*PodTemplateSpec) ProtoMessage() {} +func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{112} } + +func (m *Preconditions) Reset() { *m = Preconditions{} } +func (*Preconditions) ProtoMessage() {} +func (*Preconditions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{113} } + +func (m *PreferAvoidPodsEntry) Reset() { *m = PreferAvoidPodsEntry{} } +func (*PreferAvoidPodsEntry) ProtoMessage() {} +func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{114} } + +func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } +func (*PreferredSchedulingTerm) ProtoMessage() {} +func (*PreferredSchedulingTerm) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{115} +} + +func (m *Probe) Reset() { *m = Probe{} } +func (*Probe) ProtoMessage() {} +func (*Probe) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{116} } + +func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } +func (*RBDVolumeSource) ProtoMessage() {} +func (*RBDVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{117} } + +func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } +func (*RangeAllocation) ProtoMessage() {} +func (*RangeAllocation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{118} } + +func (m *ReplicationController) Reset() { *m = ReplicationController{} } +func (*ReplicationController) ProtoMessage() {} +func (*ReplicationController) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{119} } + +func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } +func (*ReplicationControllerList) ProtoMessage() {} +func (*ReplicationControllerList) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{120} +} + +func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } +func (*ReplicationControllerSpec) ProtoMessage() {} +func (*ReplicationControllerSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{121} +} + +func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } +func (*ReplicationControllerStatus) ProtoMessage() {} +func (*ReplicationControllerStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{122} +} + +func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } +func (*ResourceFieldSelector) ProtoMessage() {} +func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{123} } + +func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } +func (*ResourceQuota) ProtoMessage() {} +func (*ResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{124} } + +func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } +func (*ResourceQuotaList) ProtoMessage() {} +func (*ResourceQuotaList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{125} } + +func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } +func (*ResourceQuotaSpec) ProtoMessage() {} +func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{126} } + +func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } +func (*ResourceQuotaStatus) ProtoMessage() {} +func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{127} } + +func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } +func (*ResourceRequirements) ProtoMessage() {} +func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{128} } + +func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } +func (*SELinuxOptions) ProtoMessage() {} +func (*SELinuxOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{129} } + +func (m *Secret) Reset() { *m = Secret{} } +func (*Secret) ProtoMessage() {} +func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{130} } + +func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } +func (*SecretKeySelector) ProtoMessage() {} +func (*SecretKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{131} } + +func (m *SecretList) Reset() { *m = SecretList{} } +func (*SecretList) ProtoMessage() {} +func (*SecretList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{132} } + +func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } +func (*SecretVolumeSource) ProtoMessage() {} +func (*SecretVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{133} } + +func (m *SecurityContext) Reset() { *m = SecurityContext{} } +func (*SecurityContext) ProtoMessage() {} +func (*SecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{134} } + +func (m *SerializedReference) Reset() { *m = SerializedReference{} } +func (*SerializedReference) ProtoMessage() {} +func (*SerializedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{135} } + +func (m *Service) Reset() { *m = Service{} } +func (*Service) ProtoMessage() {} +func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{136} } + +func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } +func (*ServiceAccount) ProtoMessage() {} +func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{137} } + +func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } +func (*ServiceAccountList) ProtoMessage() {} +func (*ServiceAccountList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{138} } + +func (m *ServiceList) Reset() { *m = ServiceList{} } +func (*ServiceList) ProtoMessage() {} +func (*ServiceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{139} } + +func (m *ServicePort) Reset() { *m = ServicePort{} } +func (*ServicePort) ProtoMessage() {} +func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{140} } + +func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } +func (*ServiceProxyOptions) ProtoMessage() {} +func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{141} } + +func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } +func (*ServiceSpec) ProtoMessage() {} +func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{142} } + +func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } +func (*ServiceStatus) ProtoMessage() {} +func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{143} } + +func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } +func (*TCPSocketAction) ProtoMessage() {} +func (*TCPSocketAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{144} } + +func (m *Taint) Reset() { *m = Taint{} } +func (*Taint) ProtoMessage() {} +func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{145} } + +func (m *Toleration) Reset() { *m = Toleration{} } +func (*Toleration) ProtoMessage() {} +func (*Toleration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{146} } + +func (m *Volume) Reset() { *m = Volume{} } +func (*Volume) ProtoMessage() {} +func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{147} } + +func (m *VolumeMount) Reset() { *m = VolumeMount{} } +func (*VolumeMount) ProtoMessage() {} +func (*VolumeMount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{148} } + +func (m *VolumeSource) Reset() { *m = VolumeSource{} } +func (*VolumeSource) ProtoMessage() {} +func (*VolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{149} } + +func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } +func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} +func (*VsphereVirtualDiskVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{150} +} + +func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } +func (*WeightedPodAffinityTerm) ProtoMessage() {} +func (*WeightedPodAffinityTerm) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{151} +} + +func init() { + proto.RegisterType((*AWSElasticBlockStoreVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.AWSElasticBlockStoreVolumeSource") + 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((*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") + proto.RegisterType((*CephFSVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.CephFSVolumeSource") + proto.RegisterType((*CinderVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.CinderVolumeSource") + proto.RegisterType((*ComponentCondition)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ComponentCondition") + proto.RegisterType((*ComponentStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ComponentStatus") + proto.RegisterType((*ComponentStatusList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ComponentStatusList") + proto.RegisterType((*ConfigMap)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ConfigMap") + proto.RegisterType((*ConfigMapKeySelector)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ConfigMapKeySelector") + proto.RegisterType((*ConfigMapList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ConfigMapList") + proto.RegisterType((*ConfigMapVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ConfigMapVolumeSource") + proto.RegisterType((*Container)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Container") + proto.RegisterType((*ContainerImage)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerImage") + proto.RegisterType((*ContainerPort)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerPort") + proto.RegisterType((*ContainerState)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerState") + proto.RegisterType((*ContainerStateRunning)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerStateRunning") + proto.RegisterType((*ContainerStateTerminated)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerStateTerminated") + proto.RegisterType((*ContainerStateWaiting)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerStateWaiting") + proto.RegisterType((*ContainerStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ContainerStatus") + proto.RegisterType((*DaemonEndpoint)(nil), "k8s.io.client-go.1.4.pkg.api.v1.DaemonEndpoint") + proto.RegisterType((*DeleteOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.DeleteOptions") + proto.RegisterType((*DownwardAPIVolumeFile)(nil), "k8s.io.client-go.1.4.pkg.api.v1.DownwardAPIVolumeFile") + proto.RegisterType((*DownwardAPIVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.DownwardAPIVolumeSource") + proto.RegisterType((*EmptyDirVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EmptyDirVolumeSource") + proto.RegisterType((*EndpointAddress)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EndpointAddress") + proto.RegisterType((*EndpointPort)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EndpointPort") + proto.RegisterType((*EndpointSubset)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EndpointSubset") + proto.RegisterType((*Endpoints)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Endpoints") + proto.RegisterType((*EndpointsList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EndpointsList") + proto.RegisterType((*EnvVar)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EnvVar") + proto.RegisterType((*EnvVarSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EnvVarSource") + proto.RegisterType((*Event)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Event") + proto.RegisterType((*EventList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EventList") + proto.RegisterType((*EventSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.EventSource") + proto.RegisterType((*ExecAction)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ExecAction") + proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ExportOptions") + proto.RegisterType((*FCVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.FCVolumeSource") + proto.RegisterType((*FlexVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.FlexVolumeSource") + proto.RegisterType((*FlockerVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.FlockerVolumeSource") + proto.RegisterType((*GCEPersistentDiskVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.GCEPersistentDiskVolumeSource") + proto.RegisterType((*GitRepoVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.GitRepoVolumeSource") + proto.RegisterType((*GlusterfsVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.GlusterfsVolumeSource") + proto.RegisterType((*HTTPGetAction)(nil), "k8s.io.client-go.1.4.pkg.api.v1.HTTPGetAction") + proto.RegisterType((*HTTPHeader)(nil), "k8s.io.client-go.1.4.pkg.api.v1.HTTPHeader") + proto.RegisterType((*Handler)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Handler") + proto.RegisterType((*HostPathVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.HostPathVolumeSource") + proto.RegisterType((*ISCSIVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ISCSIVolumeSource") + proto.RegisterType((*KeyToPath)(nil), "k8s.io.client-go.1.4.pkg.api.v1.KeyToPath") + proto.RegisterType((*Lifecycle)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Lifecycle") + proto.RegisterType((*LimitRange)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LimitRange") + proto.RegisterType((*LimitRangeItem)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LimitRangeItem") + proto.RegisterType((*LimitRangeList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LimitRangeList") + proto.RegisterType((*LimitRangeSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LimitRangeSpec") + proto.RegisterType((*List)(nil), "k8s.io.client-go.1.4.pkg.api.v1.List") + proto.RegisterType((*ListOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ListOptions") + proto.RegisterType((*LoadBalancerIngress)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LoadBalancerIngress") + proto.RegisterType((*LoadBalancerStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LoadBalancerStatus") + proto.RegisterType((*LocalObjectReference)(nil), "k8s.io.client-go.1.4.pkg.api.v1.LocalObjectReference") + proto.RegisterType((*NFSVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NFSVolumeSource") + proto.RegisterType((*Namespace)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Namespace") + proto.RegisterType((*NamespaceList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NamespaceList") + proto.RegisterType((*NamespaceSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NamespaceSpec") + proto.RegisterType((*NamespaceStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NamespaceStatus") + proto.RegisterType((*Node)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Node") + proto.RegisterType((*NodeAddress)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeAddress") + proto.RegisterType((*NodeAffinity)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeAffinity") + proto.RegisterType((*NodeCondition)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeCondition") + proto.RegisterType((*NodeDaemonEndpoints)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeDaemonEndpoints") + proto.RegisterType((*NodeList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeList") + proto.RegisterType((*NodeProxyOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeProxyOptions") + proto.RegisterType((*NodeSelector)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeSelector") + proto.RegisterType((*NodeSelectorRequirement)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeSelectorRequirement") + proto.RegisterType((*NodeSelectorTerm)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeSelectorTerm") + proto.RegisterType((*NodeSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeSpec") + proto.RegisterType((*NodeStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeStatus") + proto.RegisterType((*NodeSystemInfo)(nil), "k8s.io.client-go.1.4.pkg.api.v1.NodeSystemInfo") + proto.RegisterType((*ObjectFieldSelector)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ObjectFieldSelector") + proto.RegisterType((*ObjectMeta)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ObjectMeta") + proto.RegisterType((*ObjectReference)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ObjectReference") + proto.RegisterType((*OwnerReference)(nil), "k8s.io.client-go.1.4.pkg.api.v1.OwnerReference") + proto.RegisterType((*PersistentVolume)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolume") + proto.RegisterType((*PersistentVolumeClaim)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeClaim") + proto.RegisterType((*PersistentVolumeClaimList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeClaimList") + proto.RegisterType((*PersistentVolumeClaimSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeClaimSpec") + proto.RegisterType((*PersistentVolumeClaimStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeClaimStatus") + proto.RegisterType((*PersistentVolumeClaimVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeClaimVolumeSource") + proto.RegisterType((*PersistentVolumeList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeList") + proto.RegisterType((*PersistentVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeSource") + proto.RegisterType((*PersistentVolumeSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeSpec") + proto.RegisterType((*PersistentVolumeStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PersistentVolumeStatus") + proto.RegisterType((*Pod)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Pod") + proto.RegisterType((*PodAffinity)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodAffinity") + proto.RegisterType((*PodAffinityTerm)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodAffinityTerm") + proto.RegisterType((*PodAntiAffinity)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodAntiAffinity") + proto.RegisterType((*PodAttachOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodAttachOptions") + proto.RegisterType((*PodCondition)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodCondition") + proto.RegisterType((*PodExecOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodExecOptions") + proto.RegisterType((*PodList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodList") + proto.RegisterType((*PodLogOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodLogOptions") + proto.RegisterType((*PodProxyOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodProxyOptions") + proto.RegisterType((*PodSecurityContext)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodSecurityContext") + proto.RegisterType((*PodSignature)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodSignature") + proto.RegisterType((*PodSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodSpec") + proto.RegisterType((*PodStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodStatus") + proto.RegisterType((*PodStatusResult)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodStatusResult") + proto.RegisterType((*PodTemplate)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodTemplate") + proto.RegisterType((*PodTemplateList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodTemplateList") + proto.RegisterType((*PodTemplateSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PodTemplateSpec") + proto.RegisterType((*Preconditions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Preconditions") + 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((*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") + proto.RegisterType((*ReplicationControllerList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ReplicationControllerList") + proto.RegisterType((*ReplicationControllerSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ReplicationControllerSpec") + proto.RegisterType((*ReplicationControllerStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ReplicationControllerStatus") + proto.RegisterType((*ResourceFieldSelector)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ResourceFieldSelector") + proto.RegisterType((*ResourceQuota)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ResourceQuota") + proto.RegisterType((*ResourceQuotaList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ResourceQuotaList") + proto.RegisterType((*ResourceQuotaSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ResourceQuotaSpec") + proto.RegisterType((*ResourceQuotaStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ResourceQuotaStatus") + proto.RegisterType((*ResourceRequirements)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ResourceRequirements") + proto.RegisterType((*SELinuxOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.SELinuxOptions") + proto.RegisterType((*Secret)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Secret") + proto.RegisterType((*SecretKeySelector)(nil), "k8s.io.client-go.1.4.pkg.api.v1.SecretKeySelector") + proto.RegisterType((*SecretList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.SecretList") + proto.RegisterType((*SecretVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.SecretVolumeSource") + proto.RegisterType((*SecurityContext)(nil), "k8s.io.client-go.1.4.pkg.api.v1.SecurityContext") + proto.RegisterType((*SerializedReference)(nil), "k8s.io.client-go.1.4.pkg.api.v1.SerializedReference") + proto.RegisterType((*Service)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Service") + proto.RegisterType((*ServiceAccount)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServiceAccount") + proto.RegisterType((*ServiceAccountList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServiceAccountList") + proto.RegisterType((*ServiceList)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServiceList") + proto.RegisterType((*ServicePort)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServicePort") + proto.RegisterType((*ServiceProxyOptions)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServiceProxyOptions") + proto.RegisterType((*ServiceSpec)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServiceSpec") + proto.RegisterType((*ServiceStatus)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ServiceStatus") + proto.RegisterType((*TCPSocketAction)(nil), "k8s.io.client-go.1.4.pkg.api.v1.TCPSocketAction") + proto.RegisterType((*Taint)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Taint") + proto.RegisterType((*Toleration)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Toleration") + proto.RegisterType((*Volume)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Volume") + proto.RegisterType((*VolumeMount)(nil), "k8s.io.client-go.1.4.pkg.api.v1.VolumeMount") + proto.RegisterType((*VolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.VolumeSource") + proto.RegisterType((*VsphereVirtualDiskVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.VsphereVirtualDiskVolumeSource") + proto.RegisterType((*WeightedPodAffinityTerm)(nil), "k8s.io.client-go.1.4.pkg.api.v1.WeightedPodAffinityTerm") +} +func (m *AWSElasticBlockStoreVolumeSource) 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 *AWSElasticBlockStoreVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.VolumeID))) + i += copy(data[i:], m.VolumeID) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Partition)) + data[i] = 0x20 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *Affinity) 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 *Affinity) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.NodeAffinity != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.NodeAffinity.Size())) + n1, err := m.NodeAffinity.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.PodAffinity != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodAffinity.Size())) + n2, err := m.PodAffinity.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.PodAntiAffinity != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodAntiAffinity.Size())) + n3, err := m.PodAntiAffinity.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + return i, nil +} + +func (m *AttachedVolume) 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 *AttachedVolume) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DevicePath))) + i += copy(data[i:], m.DevicePath) + return i, nil +} + +func (m *AvoidPods) 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 *AvoidPods) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.PreferAvoidPods) > 0 { + for _, msg := range m.PreferAvoidPods { + 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 + } + } + return i, nil +} + +func (m *AzureFileVolumeSource) 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 *AzureFileVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SecretName))) + i += copy(data[i:], m.SecretName) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ShareName))) + i += copy(data[i:], m.ShareName) + data[i] = 0x18 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *Binding) 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 *Binding) 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())) + n4, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Target.Size())) + n5, err := m.Target.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + return i, nil +} + +func (m *Capabilities) 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 *Capabilities) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Add) > 0 { + for _, s := range m.Add { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.Drop) > 0 { + for _, s := range m.Drop { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *CephFSVolumeSource) 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 *CephFSVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Monitors) > 0 { + for _, s := range m.Monitors { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.User))) + i += copy(data[i:], m.User) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SecretFile))) + i += copy(data[i:], m.SecretFile) + if m.SecretRef != nil { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) + n6, err := m.SecretRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + data[i] = 0x30 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *CinderVolumeSource) 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 *CinderVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.VolumeID))) + i += copy(data[i:], m.VolumeID) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + data[i] = 0x18 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *ComponentCondition) 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 *ComponentCondition) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Status))) + i += copy(data[i:], m.Status) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Error))) + i += copy(data[i:], m.Error) + return i, nil +} + +func (m *ComponentStatus) 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 *ComponentStatus) 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())) + n7, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + if len(m.Conditions) > 0 { + for _, msg := range m.Conditions { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ComponentStatusList) 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 *ComponentStatusList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n8, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ConfigMap) 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 *ConfigMap) 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())) + n9, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + if len(m.Data) > 0 { + for k := range m.Data { + data[i] = 0x12 + i++ + v := m.Data[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) + } + } + return i, nil +} + +func (m *ConfigMapKeySelector) 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 *ConfigMapKeySelector) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) + n10, err := m.LocalObjectReference.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n10 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + return i, nil +} + +func (m *ConfigMapList) 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 *ConfigMapList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n11, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n11 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ConfigMapVolumeSource) 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 *ConfigMapVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) + n12, err := m.LocalObjectReference.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n12 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *Container) 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 *Container) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Image))) + i += copy(data[i:], m.Image) + if len(m.Command) > 0 { + for _, s := range m.Command { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.Args) > 0 { + for _, s := range m.Args { + data[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.WorkingDir))) + i += copy(data[i:], m.WorkingDir) + if len(m.Ports) > 0 { + for _, msg := range m.Ports { + data[i] = 0x32 + 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.Env) > 0 { + for _, msg := range m.Env { + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Resources.Size())) + n13, err := m.Resources.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + if len(m.VolumeMounts) > 0 { + for _, msg := range m.VolumeMounts { + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.LivenessProbe != nil { + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(m.LivenessProbe.Size())) + n14, err := m.LivenessProbe.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.ReadinessProbe != nil { + data[i] = 0x5a + i++ + i = encodeVarintGenerated(data, i, uint64(m.ReadinessProbe.Size())) + n15, err := m.ReadinessProbe.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if m.Lifecycle != nil { + data[i] = 0x62 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Lifecycle.Size())) + n16, err := m.Lifecycle.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n16 + } + data[i] = 0x6a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.TerminationMessagePath))) + i += copy(data[i:], m.TerminationMessagePath) + data[i] = 0x72 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ImagePullPolicy))) + i += copy(data[i:], m.ImagePullPolicy) + if m.SecurityContext != nil { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(m.SecurityContext.Size())) + n17, err := m.SecurityContext.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n17 + } + data[i] = 0x80 + i++ + data[i] = 0x1 + i++ + if m.Stdin { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x88 + i++ + data[i] = 0x1 + i++ + if m.StdinOnce { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x90 + i++ + data[i] = 0x1 + i++ + if m.TTY { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *ContainerImage) 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 *ContainerImage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.SizeBytes)) + return i, nil +} + +func (m *ContainerPort) 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 *ContainerPort) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.HostPort)) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ContainerPort)) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Protocol))) + i += copy(data[i:], m.Protocol) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.HostIP))) + i += copy(data[i:], m.HostIP) + return i, nil +} + +func (m *ContainerState) 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 *ContainerState) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Waiting != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.Waiting.Size())) + n18, err := m.Waiting.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n18 + } + if m.Running != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Running.Size())) + n19, err := m.Running.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n19 + } + if m.Terminated != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Terminated.Size())) + n20, err := m.Terminated.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n20 + } + return i, nil +} + +func (m *ContainerStateRunning) 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 *ContainerStateRunning) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.StartedAt.Size())) + n21, err := m.StartedAt.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n21 + return i, nil +} + +func (m *ContainerStateTerminated) 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 *ContainerStateTerminated) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ExitCode)) + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Signal)) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.StartedAt.Size())) + n22, err := m.StartedAt.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n22 + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FinishedAt.Size())) + n23, err := m.FinishedAt.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n23 + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContainerID))) + i += copy(data[i:], m.ContainerID) + return i, nil +} + +func (m *ContainerStateWaiting) 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 *ContainerStateWaiting) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + return i, nil +} + +func (m *ContainerStatus) 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 *ContainerStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.State.Size())) + n24, err := m.State.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n24 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastTerminationState.Size())) + n25, err := m.LastTerminationState.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n25 + data[i] = 0x20 + i++ + if m.Ready { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.RestartCount)) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Image))) + i += copy(data[i:], m.Image) + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ImageID))) + i += copy(data[i:], m.ImageID) + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContainerID))) + i += copy(data[i:], m.ContainerID) + return i, nil +} + +func (m *DaemonEndpoint) 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 *DaemonEndpoint) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Port)) + return i, nil +} + +func (m *DeleteOptions) 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 *DeleteOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.GracePeriodSeconds != nil { + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.GracePeriodSeconds)) + } + if m.Preconditions != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Preconditions.Size())) + n26, err := m.Preconditions.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n26 + } + if m.OrphanDependents != nil { + data[i] = 0x18 + i++ + if *m.OrphanDependents { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + +func (m *DownwardAPIVolumeFile) 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 *DownwardAPIVolumeFile) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + if m.FieldRef != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FieldRef.Size())) + n27, err := m.FieldRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n27 + } + if m.ResourceFieldRef != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.ResourceFieldRef.Size())) + n28, err := m.ResourceFieldRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n28 + } + return i, nil +} + +func (m *DownwardAPIVolumeSource) 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 *DownwardAPIVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for _, msg := range m.Items { + 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 + } + } + return i, nil +} + +func (m *EmptyDirVolumeSource) 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 *EmptyDirVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Medium))) + i += copy(data[i:], m.Medium) + return i, nil +} + +func (m *EndpointAddress) 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 *EndpointAddress) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.IP))) + i += copy(data[i:], m.IP) + if m.TargetRef != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.TargetRef.Size())) + n29, err := m.TargetRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n29 + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Hostname))) + i += copy(data[i:], m.Hostname) + return i, nil +} + +func (m *EndpointPort) 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 *EndpointPort) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Port)) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Protocol))) + i += copy(data[i:], m.Protocol) + return i, nil +} + +func (m *EndpointSubset) 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 *EndpointSubset) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Addresses) > 0 { + for _, msg := range m.Addresses { + 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.NotReadyAddresses) > 0 { + for _, msg := range m.NotReadyAddresses { + data[i] = 0x12 + 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.Ports) > 0 { + for _, msg := range m.Ports { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *Endpoints) 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 *Endpoints) 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())) + n30, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n30 + if len(m.Subsets) > 0 { + for _, msg := range m.Subsets { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *EndpointsList) 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 *EndpointsList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n31, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n31 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *EnvVar) 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 *EnvVar) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + if m.ValueFrom != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.ValueFrom.Size())) + n32, err := m.ValueFrom.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n32 + } + return i, nil +} + +func (m *EnvVarSource) 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 *EnvVarSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FieldRef != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.FieldRef.Size())) + n33, err := m.FieldRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n33 + } + if m.ResourceFieldRef != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ResourceFieldRef.Size())) + n34, err := m.ResourceFieldRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n34 + } + if m.ConfigMapKeyRef != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.ConfigMapKeyRef.Size())) + n35, err := m.ConfigMapKeyRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n35 + } + if m.SecretKeyRef != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.SecretKeyRef.Size())) + n36, err := m.SecretKeyRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n36 + } + return i, nil +} + +func (m *Event) 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 *Event) 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())) + n37, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n37 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.InvolvedObject.Size())) + n38, err := m.InvolvedObject.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n38 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Source.Size())) + n39, err := m.Source.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n39 + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FirstTimestamp.Size())) + n40, err := m.FirstTimestamp.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n40 + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastTimestamp.Size())) + n41, err := m.LastTimestamp.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n41 + data[i] = 0x40 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Count)) + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + return i, nil +} + +func (m *EventList) 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 *EventList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n42, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n42 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *EventSource) 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 *EventSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Component))) + i += copy(data[i:], m.Component) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Host))) + i += copy(data[i:], m.Host) + return i, nil +} + +func (m *ExecAction) 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 *ExecAction) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Command) > 0 { + for _, s := range m.Command { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *ExportOptions) 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 *ExportOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + if m.Export { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x10 + i++ + if m.Exact { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *FCVolumeSource) 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 *FCVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TargetWWNs) > 0 { + for _, s := range m.TargetWWNs { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if m.Lun != nil { + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.Lun)) + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + data[i] = 0x20 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *FlexVolumeSource) 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 *FlexVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Driver))) + i += copy(data[i:], m.Driver) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + if m.SecretRef != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) + n43, err := m.SecretRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n43 + } + data[i] = 0x20 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + if len(m.Options) > 0 { + for k := range m.Options { + data[i] = 0x2a + i++ + v := m.Options[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) + } + } + return i, nil +} + +func (m *FlockerVolumeSource) 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 *FlockerVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DatasetName))) + i += copy(data[i:], m.DatasetName) + return i, nil +} + +func (m *GCEPersistentDiskVolumeSource) 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 *GCEPersistentDiskVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.PDName))) + i += copy(data[i:], m.PDName) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Partition)) + data[i] = 0x20 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *GitRepoVolumeSource) 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 *GitRepoVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Repository))) + i += copy(data[i:], m.Repository) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Revision))) + i += copy(data[i:], m.Revision) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Directory))) + i += copy(data[i:], m.Directory) + return i, nil +} + +func (m *GlusterfsVolumeSource) 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 *GlusterfsVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.EndpointsName))) + i += copy(data[i:], m.EndpointsName) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + data[i] = 0x18 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *HTTPGetAction) 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 *HTTPGetAction) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) + n44, err := m.Port.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n44 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Host))) + i += copy(data[i:], m.Host) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Scheme))) + i += copy(data[i:], m.Scheme) + if len(m.HTTPHeaders) > 0 { + for _, msg := range m.HTTPHeaders { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *HTTPHeader) 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 *HTTPHeader) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + return i, nil +} + +func (m *Handler) 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 *Handler) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Exec != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.Exec.Size())) + n45, err := m.Exec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n45 + } + if m.HTTPGet != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.HTTPGet.Size())) + n46, err := m.HTTPGet.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n46 + } + if m.TCPSocket != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.TCPSocket.Size())) + n47, err := m.TCPSocket.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n47 + } + return i, nil +} + +func (m *HostPathVolumeSource) 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 *HostPathVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + return i, nil +} + +func (m *ISCSIVolumeSource) 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 *ISCSIVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.TargetPortal))) + i += copy(data[i:], m.TargetPortal) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.IQN))) + i += copy(data[i:], m.IQN) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Lun)) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ISCSIInterface))) + i += copy(data[i:], m.ISCSIInterface) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + data[i] = 0x30 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *KeyToPath) 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 *KeyToPath) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + return i, nil +} + +func (m *Lifecycle) 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 *Lifecycle) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.PostStart != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.PostStart.Size())) + n48, err := m.PostStart.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n48 + } + if m.PreStop != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PreStop.Size())) + n49, err := m.PreStop.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n49 + } + return i, nil +} + +func (m *LimitRange) 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 *LimitRange) 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())) + n50, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n50 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n51, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n51 + return i, nil +} + +func (m *LimitRangeItem) 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 *LimitRangeItem) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + if len(m.Max) > 0 { + for k := range m.Max { + data[i] = 0x12 + i++ + v := m.Max[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n52, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n52 + } + } + if len(m.Min) > 0 { + for k := range m.Min { + data[i] = 0x1a + i++ + v := m.Min[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n53, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n53 + } + } + if len(m.Default) > 0 { + for k := range m.Default { + data[i] = 0x22 + i++ + v := m.Default[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n54, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n54 + } + } + if len(m.DefaultRequest) > 0 { + for k := range m.DefaultRequest { + data[i] = 0x2a + i++ + v := m.DefaultRequest[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n55, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n55 + } + } + if len(m.MaxLimitRequestRatio) > 0 { + for k := range m.MaxLimitRequestRatio { + data[i] = 0x32 + i++ + v := m.MaxLimitRequestRatio[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n56, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n56 + } + } + return i, nil +} + +func (m *LimitRangeList) 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 *LimitRangeList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n57, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n57 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *LimitRangeSpec) 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 *LimitRangeSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Limits) > 0 { + for _, msg := range m.Limits { + 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 + } + } + return i, nil +} + +func (m *List) 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 *List) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n58, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n58 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ListOptions) 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 *ListOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.LabelSelector))) + i += copy(data[i:], m.LabelSelector) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FieldSelector))) + i += copy(data[i:], m.FieldSelector) + data[i] = 0x18 + i++ + if m.Watch { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ResourceVersion))) + i += copy(data[i:], m.ResourceVersion) + if m.TimeoutSeconds != nil { + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.TimeoutSeconds)) + } + return i, nil +} + +func (m *LoadBalancerIngress) 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 *LoadBalancerIngress) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.IP))) + i += copy(data[i:], m.IP) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Hostname))) + i += copy(data[i:], m.Hostname) + return i, nil +} + +func (m *LoadBalancerStatus) 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 *LoadBalancerStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Ingress) > 0 { + for _, msg := range m.Ingress { + 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 + } + } + return i, nil +} + +func (m *LocalObjectReference) 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 *LocalObjectReference) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + return i, nil +} + +func (m *NFSVolumeSource) 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 *NFSVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Server))) + i += copy(data[i:], m.Server) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + data[i] = 0x18 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *Namespace) 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 *Namespace) 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())) + n59, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n59 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n60, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n60 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n61, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n61 + return i, nil +} + +func (m *NamespaceList) 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 *NamespaceList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n62, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n62 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *NamespaceSpec) 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 *NamespaceSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Finalizers) > 0 { + for _, s := range m.Finalizers { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *NamespaceStatus) 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 *NamespaceStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Phase))) + i += copy(data[i:], m.Phase) + return i, nil +} + +func (m *Node) 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 *Node) 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())) + n63, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n63 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n64, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n64 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n65, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n65 + return i, nil +} + +func (m *NodeAddress) 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 *NodeAddress) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Address))) + i += copy(data[i:], m.Address) + return i, nil +} + +func (m *NodeAffinity) 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 *NodeAffinity) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RequiredDuringSchedulingIgnoredDuringExecution != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.RequiredDuringSchedulingIgnoredDuringExecution.Size())) + n66, err := m.RequiredDuringSchedulingIgnoredDuringExecution.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n66 + } + if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, msg := range m.PreferredDuringSchedulingIgnoredDuringExecution { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *NodeCondition) 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 *NodeCondition) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Status))) + i += copy(data[i:], m.Status) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastHeartbeatTime.Size())) + n67, err := m.LastHeartbeatTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n67 + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) + n68, err := m.LastTransitionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n68 + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + return i, nil +} + +func (m *NodeDaemonEndpoints) 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 *NodeDaemonEndpoints) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.KubeletEndpoint.Size())) + n69, err := m.KubeletEndpoint.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n69 + return i, nil +} + +func (m *NodeList) 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 *NodeList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n70, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n70 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *NodeProxyOptions) 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 *NodeProxyOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + return i, nil +} + +func (m *NodeSelector) 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 *NodeSelector) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.NodeSelectorTerms) > 0 { + for _, msg := range m.NodeSelectorTerms { + 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 + } + } + return i, nil +} + +func (m *NodeSelectorRequirement) 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 *NodeSelectorRequirement) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Operator))) + i += copy(data[i:], m.Operator) + if len(m.Values) > 0 { + for _, s := range m.Values { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *NodeSelectorTerm) 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 *NodeSelectorTerm) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.MatchExpressions) > 0 { + for _, msg := range m.MatchExpressions { + 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 + } + } + return i, nil +} + +func (m *NodeSpec) 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 *NodeSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.PodCIDR))) + i += copy(data[i:], m.PodCIDR) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ExternalID))) + i += copy(data[i:], m.ExternalID) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ProviderID))) + i += copy(data[i:], m.ProviderID) + data[i] = 0x20 + i++ + if m.Unschedulable { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *NodeStatus) 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 *NodeStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Capacity) > 0 { + for k := range m.Capacity { + data[i] = 0xa + i++ + v := m.Capacity[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n71, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n71 + } + } + if len(m.Allocatable) > 0 { + for k := range m.Allocatable { + data[i] = 0x12 + i++ + v := m.Allocatable[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n72, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n72 + } + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Phase))) + i += copy(data[i:], m.Phase) + if len(m.Conditions) > 0 { + for _, msg := range m.Conditions { + data[i] = 0x22 + 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.Addresses) > 0 { + for _, msg := range m.Addresses { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(m.DaemonEndpoints.Size())) + n73, err := m.DaemonEndpoints.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n73 + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.NodeInfo.Size())) + n74, err := m.NodeInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n74 + if len(m.Images) > 0 { + for _, msg := range m.Images { + data[i] = 0x42 + 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.VolumesInUse) > 0 { + for _, s := range m.VolumesInUse { + data[i] = 0x4a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.VolumesAttached) > 0 { + for _, msg := range m.VolumesAttached { + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *NodeSystemInfo) 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 *NodeSystemInfo) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.MachineID))) + i += copy(data[i:], m.MachineID) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SystemUUID))) + i += copy(data[i:], m.SystemUUID) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.BootID))) + i += copy(data[i:], m.BootID) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.KernelVersion))) + i += copy(data[i:], m.KernelVersion) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.OSImage))) + i += copy(data[i:], m.OSImage) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContainerRuntimeVersion))) + i += copy(data[i:], m.ContainerRuntimeVersion) + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.KubeletVersion))) + i += copy(data[i:], m.KubeletVersion) + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.KubeProxyVersion))) + i += copy(data[i:], m.KubeProxyVersion) + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.OperatingSystem))) + i += copy(data[i:], m.OperatingSystem) + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Architecture))) + i += copy(data[i:], m.Architecture) + return i, nil +} + +func (m *ObjectFieldSelector) 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 *ObjectFieldSelector) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.APIVersion))) + i += copy(data[i:], m.APIVersion) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FieldPath))) + i += copy(data[i:], m.FieldPath) + return i, nil +} + +func (m *ObjectMeta) 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 *ObjectMeta) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.GenerateName))) + i += copy(data[i:], m.GenerateName) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Namespace))) + i += copy(data[i:], m.Namespace) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SelfLink))) + i += copy(data[i:], m.SelfLink) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.UID))) + i += copy(data[i:], m.UID) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ResourceVersion))) + i += copy(data[i:], m.ResourceVersion) + data[i] = 0x38 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Generation)) + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(m.CreationTimestamp.Size())) + n75, err := m.CreationTimestamp.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n75 + if m.DeletionTimestamp != nil { + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(m.DeletionTimestamp.Size())) + n76, err := m.DeletionTimestamp.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n76 + } + if m.DeletionGracePeriodSeconds != nil { + data[i] = 0x50 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.DeletionGracePeriodSeconds)) + } + if len(m.Labels) > 0 { + for k := range m.Labels { + data[i] = 0x5a + i++ + v := m.Labels[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) + } + } + if len(m.Annotations) > 0 { + for k := range m.Annotations { + data[i] = 0x62 + 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) + } + } + if len(m.OwnerReferences) > 0 { + for _, msg := range m.OwnerReferences { + data[i] = 0x6a + 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.Finalizers) > 0 { + for _, s := range m.Finalizers { + data[i] = 0x72 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *ObjectReference) 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 *ObjectReference) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Namespace))) + i += copy(data[i:], m.Namespace) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.UID))) + i += copy(data[i:], m.UID) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.APIVersion))) + i += copy(data[i:], m.APIVersion) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ResourceVersion))) + i += copy(data[i:], m.ResourceVersion) + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FieldPath))) + i += copy(data[i:], m.FieldPath) + return i, nil +} + +func (m *OwnerReference) 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 *OwnerReference) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.UID))) + i += copy(data[i:], m.UID) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.APIVersion))) + i += copy(data[i:], m.APIVersion) + if m.Controller != nil { + data[i] = 0x30 + i++ + if *m.Controller { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + +func (m *PersistentVolume) 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 *PersistentVolume) 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())) + n77, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n77 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n78, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n78 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n79, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n79 + return i, nil +} + +func (m *PersistentVolumeClaim) 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 *PersistentVolumeClaim) 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())) + n80, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n80 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n81, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n81 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n82, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n82 + return i, nil +} + +func (m *PersistentVolumeClaimList) 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 *PersistentVolumeClaimList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n83, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n83 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PersistentVolumeClaimSpec) 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 *PersistentVolumeClaimSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Resources.Size())) + n84, err := m.Resources.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n84 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.VolumeName))) + i += copy(data[i:], m.VolumeName) + if m.Selector != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) + n85, err := m.Selector.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n85 + } + return i, nil +} + +func (m *PersistentVolumeClaimStatus) 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 *PersistentVolumeClaimStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Phase))) + i += copy(data[i:], m.Phase) + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.Capacity) > 0 { + for k := range m.Capacity { + data[i] = 0x1a + i++ + v := m.Capacity[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n86, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n86 + } + } + return i, nil +} + +func (m *PersistentVolumeClaimVolumeSource) 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 *PersistentVolumeClaimVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ClaimName))) + i += copy(data[i:], m.ClaimName) + data[i] = 0x10 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *PersistentVolumeList) 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 *PersistentVolumeList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n87, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n87 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PersistentVolumeSource) 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 *PersistentVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.GCEPersistentDisk != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) + n88, err := m.GCEPersistentDisk.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n88 + } + if m.AWSElasticBlockStore != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) + n89, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n89 + } + if m.HostPath != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.HostPath.Size())) + n90, err := m.HostPath.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n90 + } + if m.Glusterfs != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) + n91, err := m.Glusterfs.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n91 + } + if m.NFS != nil { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) + n92, err := m.NFS.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n92 + } + if m.RBD != nil { + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) + n93, err := m.RBD.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n93 + } + if m.ISCSI != nil { + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) + n94, err := m.ISCSI.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n94 + } + if m.Cinder != nil { + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) + n95, err := m.Cinder.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n95 + } + if m.CephFS != nil { + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) + n96, err := m.CephFS.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n96 + } + if m.FC != nil { + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FC.Size())) + n97, err := m.FC.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n97 + } + if m.Flocker != nil { + data[i] = 0x5a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) + n98, err := m.Flocker.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n98 + } + if m.FlexVolume != nil { + data[i] = 0x62 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) + n99, err := m.FlexVolume.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n99 + } + if m.AzureFile != nil { + data[i] = 0x6a + i++ + i = encodeVarintGenerated(data, i, uint64(m.AzureFile.Size())) + n100, err := m.AzureFile.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n100 + } + if m.VsphereVolume != nil { + data[i] = 0x72 + i++ + i = encodeVarintGenerated(data, i, uint64(m.VsphereVolume.Size())) + n101, err := m.VsphereVolume.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n101 + } + return i, nil +} + +func (m *PersistentVolumeSpec) 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 *PersistentVolumeSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Capacity) > 0 { + for k := range m.Capacity { + data[i] = 0xa + i++ + v := m.Capacity[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n102, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n102 + } + } + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeSource.Size())) + n103, err := m.PersistentVolumeSource.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n103 + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + data[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if m.ClaimRef != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ClaimRef.Size())) + n104, err := m.ClaimRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n104 + } + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.PersistentVolumeReclaimPolicy))) + i += copy(data[i:], m.PersistentVolumeReclaimPolicy) + return i, nil +} + +func (m *PersistentVolumeStatus) 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 *PersistentVolumeStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Phase))) + i += copy(data[i:], m.Phase) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + return i, nil +} + +func (m *Pod) 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 *Pod) 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())) + 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:]) + if err != nil { + return 0, err + } + i += n107 + return i, nil +} + +func (m *PodAffinity) 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 *PodAffinity) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, msg := range m.RequiredDuringSchedulingIgnoredDuringExecution { + 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.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, msg := range m.PreferredDuringSchedulingIgnoredDuringExecution { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PodAffinityTerm) 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 *PodAffinityTerm) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.LabelSelector != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.LabelSelector.Size())) + n108, err := m.LabelSelector.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n108 + } + if len(m.Namespaces) > 0 { + for _, s := range m.Namespaces { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.TopologyKey))) + i += copy(data[i:], m.TopologyKey) + return i, nil +} + +func (m *PodAntiAffinity) 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 *PodAntiAffinity) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, msg := range m.RequiredDuringSchedulingIgnoredDuringExecution { + 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.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, msg := range m.PreferredDuringSchedulingIgnoredDuringExecution { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PodAttachOptions) 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 *PodAttachOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + if m.Stdin { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x10 + i++ + if m.Stdout { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x18 + i++ + if m.Stderr { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x20 + i++ + if m.TTY { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Container))) + i += copy(data[i:], m.Container) + return i, nil +} + +func (m *PodCondition) 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 *PodCondition) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Status))) + i += copy(data[i:], m.Status) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size())) + n109, err := m.LastProbeTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n109 + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) + n110, err := m.LastTransitionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n110 + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + return i, nil +} + +func (m *PodExecOptions) 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 *PodExecOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + if m.Stdin { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x10 + i++ + if m.Stdout { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x18 + i++ + if m.Stderr { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x20 + i++ + if m.TTY { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Container))) + i += copy(data[i:], m.Container) + if len(m.Command) > 0 { + for _, s := range m.Command { + data[i] = 0x32 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *PodList) 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 *PodList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n111, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n111 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PodLogOptions) 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 *PodLogOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Container))) + i += copy(data[i:], m.Container) + data[i] = 0x10 + i++ + if m.Follow { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x18 + i++ + if m.Previous { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + if m.SinceSeconds != nil { + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.SinceSeconds)) + } + if m.SinceTime != nil { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.SinceTime.Size())) + n112, err := m.SinceTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n112 + } + data[i] = 0x30 + i++ + if m.Timestamps { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + if m.TailLines != nil { + data[i] = 0x38 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.TailLines)) + } + if m.LimitBytes != nil { + data[i] = 0x40 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.LimitBytes)) + } + return i, nil +} + +func (m *PodProxyOptions) 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 *PodProxyOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + return i, nil +} + +func (m *PodSecurityContext) 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 *PodSecurityContext) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SELinuxOptions != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) + n113, err := m.SELinuxOptions.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n113 + } + if m.RunAsUser != nil { + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.RunAsUser)) + } + if m.RunAsNonRoot != nil { + data[i] = 0x18 + i++ + if *m.RunAsNonRoot { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if len(m.SupplementalGroups) > 0 { + for _, num := range m.SupplementalGroups { + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(num)) + } + } + if m.FSGroup != nil { + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.FSGroup)) + } + return i, nil +} + +func (m *PodSignature) 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 *PodSignature) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.PodController != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodController.Size())) + n114, err := m.PodController.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n114 + } + return i, nil +} + +func (m *PodSpec) 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 *PodSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Volumes) > 0 { + for _, msg := range m.Volumes { + 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.Containers) > 0 { + for _, msg := range m.Containers { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.RestartPolicy))) + i += copy(data[i:], m.RestartPolicy) + if m.TerminationGracePeriodSeconds != nil { + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.TerminationGracePeriodSeconds)) + } + if m.ActiveDeadlineSeconds != nil { + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.ActiveDeadlineSeconds)) + } + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DNSPolicy))) + i += copy(data[i:], m.DNSPolicy) + if len(m.NodeSelector) > 0 { + for k := range m.NodeSelector { + data[i] = 0x3a + i++ + v := m.NodeSelector[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] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ServiceAccountName))) + i += copy(data[i:], m.ServiceAccountName) + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DeprecatedServiceAccount))) + i += copy(data[i:], m.DeprecatedServiceAccount) + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.NodeName))) + i += copy(data[i:], m.NodeName) + data[i] = 0x58 + i++ + if m.HostNetwork { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x60 + i++ + if m.HostPID { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x68 + i++ + if m.HostIPC { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + if m.SecurityContext != nil { + data[i] = 0x72 + i++ + i = encodeVarintGenerated(data, i, uint64(m.SecurityContext.Size())) + n115, err := m.SecurityContext.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n115 + } + if len(m.ImagePullSecrets) > 0 { + for _, msg := range m.ImagePullSecrets { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x82 + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Hostname))) + i += copy(data[i:], m.Hostname) + data[i] = 0x8a + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Subdomain))) + i += copy(data[i:], m.Subdomain) + return i, nil +} + +func (m *PodStatus) 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 *PodStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Phase))) + i += copy(data[i:], m.Phase) + if len(m.Conditions) > 0 { + for _, msg := range m.Conditions { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.HostIP))) + i += copy(data[i:], m.HostIP) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.PodIP))) + i += copy(data[i:], m.PodIP) + if m.StartTime != nil { + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) + n116, err := m.StartTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n116 + } + if len(m.ContainerStatuses) > 0 { + for _, msg := range m.ContainerStatuses { + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PodStatusResult) 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 *PodStatusResult) 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())) + n117, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n117 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n118, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n118 + return i, nil +} + +func (m *PodTemplate) 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 *PodTemplate) 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())) + n119, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n119 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) + n120, err := m.Template.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n120 + return i, nil +} + +func (m *PodTemplateList) 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 *PodTemplateList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n121, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n121 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PodTemplateSpec) 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 *PodTemplateSpec) 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())) + n122, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n122 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n123, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n123 + return i, nil +} + +func (m *Preconditions) 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 *Preconditions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.UID != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(*m.UID))) + i += copy(data[i:], *m.UID) + } + return i, nil +} + +func (m *PreferAvoidPodsEntry) 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 *PreferAvoidPodsEntry) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodSignature.Size())) + n124, err := m.PodSignature.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n124 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.EvictionTime.Size())) + n125, err := m.EvictionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n125 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Message))) + i += copy(data[i:], m.Message) + return i, nil +} + +func (m *PreferredSchedulingTerm) 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 *PreferredSchedulingTerm) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Weight)) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Preference.Size())) + n126, err := m.Preference.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n126 + return i, nil +} + +func (m *Probe) 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 *Probe) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.Handler.Size())) + n127, err := m.Handler.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n127 + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.InitialDelaySeconds)) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.TimeoutSeconds)) + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PeriodSeconds)) + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.SuccessThreshold)) + data[i] = 0x30 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FailureThreshold)) + return i, nil +} + +func (m *RBDVolumeSource) 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 *RBDVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.CephMonitors) > 0 { + for _, s := range m.CephMonitors { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.RBDImage))) + i += copy(data[i:], m.RBDImage) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.RBDPool))) + i += copy(data[i:], m.RBDPool) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.RadosUser))) + i += copy(data[i:], m.RadosUser) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Keyring))) + i += copy(data[i:], m.Keyring) + if m.SecretRef != nil { + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) + n128, err := m.SecretRef.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n128 + } + data[i] = 0x40 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + return i, nil +} + +func (m *RangeAllocation) 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 *RangeAllocation) 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())) + n129, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n129 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Range))) + i += copy(data[i:], m.Range) + if m.Data != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + return i, nil +} + +func (m *ReplicationController) 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 *ReplicationController) 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())) + 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:]) + if err != nil { + return 0, err + } + i += n132 + return i, nil +} + +func (m *ReplicationControllerList) 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 *ReplicationControllerList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n133, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n133 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ReplicationControllerSpec) 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 *ReplicationControllerSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Replicas != nil { + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.Replicas)) + } + if len(m.Selector) > 0 { + for k := range m.Selector { + data[i] = 0x12 + i++ + v := m.Selector[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) + } + } + if m.Template != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) + n134, err := m.Template.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n134 + } + return i, nil +} + +func (m *ReplicationControllerStatus) 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 *ReplicationControllerStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Replicas)) + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FullyLabeledReplicas)) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ObservedGeneration)) + return i, nil +} + +func (m *ResourceFieldSelector) 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 *ResourceFieldSelector) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContainerName))) + i += copy(data[i:], m.ContainerName) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Resource))) + i += copy(data[i:], m.Resource) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Divisor.Size())) + n135, err := m.Divisor.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n135 + return i, nil +} + +func (m *ResourceQuota) 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 *ResourceQuota) 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())) + 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:]) + if err != nil { + return 0, err + } + i += n138 + return i, nil +} + +func (m *ResourceQuotaList) 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 *ResourceQuotaList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n139, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n139 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ResourceQuotaSpec) 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 *ResourceQuotaSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Hard) > 0 { + for k := range m.Hard { + data[i] = 0xa + i++ + v := m.Hard[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n140, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n140 + } + } + if len(m.Scopes) > 0 { + for _, s := range m.Scopes { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *ResourceQuotaStatus) 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 *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Hard) > 0 { + for k := range m.Hard { + data[i] = 0xa + i++ + v := m.Hard[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n141, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n141 + } + } + if len(m.Used) > 0 { + for k := range m.Used { + data[i] = 0x12 + i++ + v := m.Used[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n142, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n142 + } + } + return i, nil +} + +func (m *ResourceRequirements) 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 *ResourceRequirements) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Limits) > 0 { + for k := range m.Limits { + data[i] = 0xa + i++ + v := m.Limits[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n143, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n143 + } + } + if len(m.Requests) > 0 { + for k := range m.Requests { + data[i] = 0x12 + i++ + v := m.Requests[k] + msgSize := (&v).Size() + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize)) + 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((&v).Size())) + n144, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n144 + } + } + return i, nil +} + +func (m *SELinuxOptions) 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 *SELinuxOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.User))) + i += copy(data[i:], m.User) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Role))) + i += copy(data[i:], m.Role) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Level))) + i += copy(data[i:], m.Level) + return i, nil +} + +func (m *Secret) 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 *Secret) 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())) + n145, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n145 + if len(m.Data) > 0 { + for k := range m.Data { + data[i] = 0x12 + i++ + v := m.Data[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.Type))) + i += copy(data[i:], m.Type) + if len(m.StringData) > 0 { + for k := range m.StringData { + data[i] = 0x22 + i++ + v := m.StringData[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) + } + } + return i, nil +} + +func (m *SecretKeySelector) 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 *SecretKeySelector) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) + n146, err := m.LocalObjectReference.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n146 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + return i, nil +} + +func (m *SecretList) 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 *SecretList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n147, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n147 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *SecretVolumeSource) 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 *SecretVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SecretName))) + i += copy(data[i:], m.SecretName) + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *SecurityContext) 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 *SecurityContext) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Capabilities != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.Capabilities.Size())) + n148, err := m.Capabilities.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n148 + } + if m.Privileged != nil { + data[i] = 0x10 + i++ + if *m.Privileged { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.SELinuxOptions != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) + n149, err := m.SELinuxOptions.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n149 + } + if m.RunAsUser != nil { + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.RunAsUser)) + } + if m.RunAsNonRoot != nil { + data[i] = 0x28 + i++ + if *m.RunAsNonRoot { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.ReadOnlyRootFilesystem != nil { + data[i] = 0x30 + i++ + if *m.ReadOnlyRootFilesystem { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + +func (m *SerializedReference) 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 *SerializedReference) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.Reference.Size())) + n150, err := m.Reference.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n150 + return i, nil +} + +func (m *Service) 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 *Service) 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())) + 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:]) + if err != nil { + return 0, err + } + i += n153 + return i, nil +} + +func (m *ServiceAccount) 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 *ServiceAccount) 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())) + n154, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n154 + if len(m.Secrets) > 0 { + for _, msg := range m.Secrets { + data[i] = 0x12 + 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.ImagePullSecrets) > 0 { + for _, msg := range m.ImagePullSecrets { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ServiceAccountList) 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 *ServiceAccountList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n155, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n155 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ServiceList) 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 *ServiceList) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) + n156, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n156 + if len(m.Items) > 0 { + for _, msg := range m.Items { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ServicePort) 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 *ServicePort) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Protocol))) + i += copy(data[i:], m.Protocol) + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Port)) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.TargetPort.Size())) + n157, err := m.TargetPort.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n157 + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.NodePort)) + return i, nil +} + +func (m *ServiceProxyOptions) 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 *ServiceProxyOptions) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Path))) + i += copy(data[i:], m.Path) + return i, nil +} + +func (m *ServiceSpec) 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 *ServiceSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Ports) > 0 { + for _, msg := range m.Ports { + 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.Selector) > 0 { + for k := range m.Selector { + data[i] = 0x12 + i++ + v := m.Selector[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.ClusterIP))) + i += copy(data[i:], m.ClusterIP) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + if len(m.ExternalIPs) > 0 { + for _, s := range m.ExternalIPs { + data[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if len(m.DeprecatedPublicIPs) > 0 { + for _, s := range m.DeprecatedPublicIPs { + data[i] = 0x32 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SessionAffinity))) + i += copy(data[i:], m.SessionAffinity) + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.LoadBalancerIP))) + i += copy(data[i:], m.LoadBalancerIP) + if len(m.LoadBalancerSourceRanges) > 0 { + for _, s := range m.LoadBalancerSourceRanges { + data[i] = 0x4a + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + return i, nil +} + +func (m *ServiceStatus) 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 *ServiceStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.LoadBalancer.Size())) + n158, err := m.LoadBalancer.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n158 + return i, nil +} + +func (m *TCPSocketAction) 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 *TCPSocketAction) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) + n159, err := m.Port.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n159 + return i, nil +} + +func (m *Taint) 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 *Taint) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Effect))) + i += copy(data[i:], m.Effect) + return i, nil +} + +func (m *Toleration) 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 *Toleration) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Key))) + i += copy(data[i:], m.Key) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Operator))) + i += copy(data[i:], m.Operator) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Value))) + i += copy(data[i:], m.Value) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Effect))) + i += copy(data[i:], m.Effect) + return i, nil +} + +func (m *Volume) 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 *Volume) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.VolumeSource.Size())) + n160, err := m.VolumeSource.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n160 + return i, nil +} + +func (m *VolumeMount) 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 *VolumeMount) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Name))) + i += copy(data[i:], m.Name) + data[i] = 0x10 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.MountPath))) + i += copy(data[i:], m.MountPath) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.SubPath))) + i += copy(data[i:], m.SubPath) + return i, nil +} + +func (m *VolumeSource) 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 *VolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.HostPath != nil { + 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:]) + if err != nil { + return 0, err + } + i += n163 + } + if m.AWSElasticBlockStore != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) + n164, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n164 + } + if m.GitRepo != nil { + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) + n165, err := m.GitRepo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n165 + } + if m.Secret != nil { + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) + n166, err := m.Secret.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n166 + } + if m.NFS != nil { + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) + n167, err := m.NFS.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n167 + } + if m.ISCSI != nil { + data[i] = 0x42 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) + n168, err := m.ISCSI.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n168 + } + if m.Glusterfs != nil { + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) + n169, err := m.Glusterfs.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n169 + } + if m.PersistentVolumeClaim != nil { + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) + n170, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n170 + } + if m.RBD != nil { + data[i] = 0x5a + i++ + i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) + n171, err := m.RBD.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n171 + } + if m.FlexVolume != nil { + data[i] = 0x62 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) + n172, err := m.FlexVolume.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n172 + } + if m.Cinder != nil { + data[i] = 0x6a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) + n173, err := m.Cinder.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n173 + } + if m.CephFS != nil { + data[i] = 0x72 + i++ + i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) + n174, err := m.CephFS.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n174 + } + if m.Flocker != nil { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) + n175, err := m.Flocker.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n175 + } + 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:]) + if err != nil { + return 0, err + } + i += n176 + } + if m.FC != nil { + data[i] = 0x8a + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.FC.Size())) + n177, err := m.FC.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n177 + } + if m.AzureFile != nil { + data[i] = 0x92 + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AzureFile.Size())) + n178, err := m.AzureFile.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n178 + } + if m.ConfigMap != nil { + data[i] = 0x9a + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ConfigMap.Size())) + n179, err := m.ConfigMap.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n179 + } + if m.VsphereVolume != nil { + data[i] = 0xa2 + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.VsphereVolume.Size())) + n180, err := m.VsphereVolume.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n180 + } + return i, nil +} + +func (m *VsphereVirtualDiskVolumeSource) 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 *VsphereVirtualDiskVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.VolumePath))) + i += copy(data[i:], m.VolumePath) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + return i, nil +} + +func (m *WeightedPodAffinityTerm) 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 *WeightedPodAffinityTerm) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Weight)) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PodAffinityTerm.Size())) + n181, err := m.PodAffinityTerm.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n181 + 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 *AWSElasticBlockStoreVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.VolumeID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Partition)) + n += 2 + return n +} + +func (m *Affinity) Size() (n int) { + var l int + _ = l + if m.NodeAffinity != nil { + l = m.NodeAffinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PodAffinity != nil { + l = m.PodAffinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PodAntiAffinity != nil { + l = m.PodAntiAffinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *AttachedVolume) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DevicePath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *AvoidPods) Size() (n int) { + var l int + _ = l + if len(m.PreferAvoidPods) > 0 { + for _, e := range m.PreferAvoidPods { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *AzureFileVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.SecretName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ShareName) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *Binding) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Target.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Capabilities) Size() (n int) { + var l int + _ = l + if len(m.Add) > 0 { + for _, s := range m.Add { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Drop) > 0 { + for _, s := range m.Drop { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *CephFSVolumeSource) Size() (n int) { + var l int + _ = l + if len(m.Monitors) > 0 { + for _, s := range m.Monitors { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.User) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SecretFile) + n += 1 + l + sovGenerated(uint64(l)) + if m.SecretRef != nil { + l = m.SecretRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + return n +} + +func (m *CinderVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.VolumeID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *ComponentCondition) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Error) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ComponentStatus) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ComponentStatusList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ConfigMap) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Data) > 0 { + for k, v := range m.Data { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *ConfigMapKeySelector) Size() (n int) { + var l int + _ = l + l = m.LocalObjectReference.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ConfigMapList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ConfigMapVolumeSource) Size() (n int) { + var l int + _ = l + l = m.LocalObjectReference.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Container) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Image) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Command) > 0 { + for _, s := range m.Command { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.WorkingDir) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Env) > 0 { + for _, e := range m.Env { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.Resources.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.VolumeMounts) > 0 { + for _, e := range m.VolumeMounts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.LivenessProbe != nil { + l = m.LivenessProbe.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ReadinessProbe != nil { + l = m.ReadinessProbe.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Lifecycle != nil { + l = m.Lifecycle.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.TerminationMessagePath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ImagePullPolicy) + n += 1 + l + sovGenerated(uint64(l)) + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 3 + n += 3 + n += 3 + return n +} + +func (m *ContainerImage) Size() (n int) { + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + n += 1 + sovGenerated(uint64(m.SizeBytes)) + return n +} + +func (m *ContainerPort) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.HostPort)) + n += 1 + sovGenerated(uint64(m.ContainerPort)) + l = len(m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.HostIP) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ContainerState) Size() (n int) { + var l int + _ = l + if m.Waiting != nil { + l = m.Waiting.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Running != nil { + l = m.Running.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Terminated != nil { + l = m.Terminated.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ContainerStateRunning) Size() (n int) { + var l int + _ = l + l = m.StartedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ContainerStateTerminated) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.ExitCode)) + n += 1 + sovGenerated(uint64(m.Signal)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = m.StartedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.FinishedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ContainerID) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ContainerStateWaiting) Size() (n int) { + var l int + _ = l + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ContainerStatus) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = m.State.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTerminationState.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + n += 1 + sovGenerated(uint64(m.RestartCount)) + l = len(m.Image) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ImageID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ContainerID) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *DaemonEndpoint) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Port)) + return n +} + +func (m *DeleteOptions) Size() (n int) { + var l int + _ = l + if m.GracePeriodSeconds != nil { + n += 1 + sovGenerated(uint64(*m.GracePeriodSeconds)) + } + if m.Preconditions != nil { + l = m.Preconditions.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.OrphanDependents != nil { + n += 2 + } + return n +} + +func (m *DownwardAPIVolumeFile) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + if m.FieldRef != nil { + l = m.FieldRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ResourceFieldRef != nil { + l = m.ResourceFieldRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DownwardAPIVolumeSource) Size() (n int) { + var l int + _ = l + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *EmptyDirVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.Medium) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *EndpointAddress) Size() (n int) { + var l int + _ = l + l = len(m.IP) + n += 1 + l + sovGenerated(uint64(l)) + if m.TargetRef != nil { + l = m.TargetRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *EndpointPort) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Port)) + l = len(m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *EndpointSubset) Size() (n int) { + var l int + _ = l + if len(m.Addresses) > 0 { + for _, e := range m.Addresses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.NotReadyAddresses) > 0 { + for _, e := range m.NotReadyAddresses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Endpoints) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Subsets) > 0 { + for _, e := range m.Subsets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *EndpointsList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *EnvVar) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + if m.ValueFrom != nil { + l = m.ValueFrom.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *EnvVarSource) Size() (n int) { + var l int + _ = l + if m.FieldRef != nil { + l = m.FieldRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ResourceFieldRef != nil { + l = m.ResourceFieldRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ConfigMapKeyRef != nil { + l = m.ConfigMapKeyRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.SecretKeyRef != nil { + l = m.SecretKeyRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *Event) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.InvolvedObject.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Source.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.FirstTimestamp.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTimestamp.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Count)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *EventList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *EventSource) Size() (n int) { + var l int + _ = l + l = len(m.Component) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Host) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ExecAction) Size() (n int) { + var l int + _ = l + if len(m.Command) > 0 { + for _, s := range m.Command { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ExportOptions) Size() (n int) { + var l int + _ = l + n += 2 + n += 2 + return n +} + +func (m *FCVolumeSource) Size() (n int) { + var l int + _ = l + if len(m.TargetWWNs) > 0 { + for _, s := range m.TargetWWNs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Lun != nil { + n += 1 + sovGenerated(uint64(*m.Lun)) + } + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *FlexVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + if m.SecretRef != nil { + l = m.SecretRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + if len(m.Options) > 0 { + for k, v := range m.Options { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *FlockerVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.DatasetName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GCEPersistentDiskVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.PDName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Partition)) + n += 2 + return n +} + +func (m *GitRepoVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.Repository) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Revision) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Directory) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GlusterfsVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.EndpointsName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *HTTPGetAction) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Port.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Host) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Scheme) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.HTTPHeaders) > 0 { + for _, e := range m.HTTPHeaders { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *HTTPHeader) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Handler) Size() (n int) { + var l int + _ = l + if m.Exec != nil { + l = m.Exec.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HTTPGet != nil { + l = m.HTTPGet.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.TCPSocket != nil { + l = m.TCPSocket.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HostPathVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ISCSIVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.TargetPortal) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.IQN) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Lun)) + l = len(m.ISCSIInterface) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *KeyToPath) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Lifecycle) Size() (n int) { + var l int + _ = l + if m.PostStart != nil { + l = m.PostStart.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PreStop != nil { + l = m.PreStop.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *LimitRange) 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)) + return n +} + +func (m *LimitRangeItem) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Max) > 0 { + for k, v := range m.Max { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Min) > 0 { + for k, v := range m.Min { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Default) > 0 { + for k, v := range m.Default { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.DefaultRequest) > 0 { + for k, v := range m.DefaultRequest { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.MaxLimitRequestRatio) > 0 { + for k, v := range m.MaxLimitRequestRatio { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *LimitRangeList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *LimitRangeSpec) Size() (n int) { + var l int + _ = l + if len(m.Limits) > 0 { + for _, e := range m.Limits { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *List) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ListOptions) Size() (n int) { + var l int + _ = l + l = len(m.LabelSelector) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FieldSelector) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.ResourceVersion) + n += 1 + l + sovGenerated(uint64(l)) + if m.TimeoutSeconds != nil { + n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) + } + return n +} + +func (m *LoadBalancerIngress) Size() (n int) { + var l int + _ = l + l = len(m.IP) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *LoadBalancerStatus) Size() (n int) { + var l int + _ = l + if len(m.Ingress) > 0 { + for _, e := range m.Ingress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *LocalObjectReference) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NFSVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.Server) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *Namespace) 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 *NamespaceList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NamespaceSpec) Size() (n int) { + var l int + _ = l + if len(m.Finalizers) > 0 { + for _, s := range m.Finalizers { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NamespaceStatus) Size() (n int) { + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Node) 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 *NodeAddress) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Address) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NodeAffinity) Size() (n int) { + var l int + _ = l + if m.RequiredDuringSchedulingIgnoredDuringExecution != nil { + l = m.RequiredDuringSchedulingIgnoredDuringExecution.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, e := range m.PreferredDuringSchedulingIgnoredDuringExecution { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NodeCondition) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastHeartbeatTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NodeDaemonEndpoints) Size() (n int) { + var l int + _ = l + l = m.KubeletEndpoint.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NodeList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NodeProxyOptions) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NodeSelector) Size() (n int) { + var l int + _ = l + if len(m.NodeSelectorTerms) > 0 { + for _, e := range m.NodeSelectorTerms { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NodeSelectorRequirement) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Operator) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Values) > 0 { + for _, s := range m.Values { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NodeSelectorTerm) Size() (n int) { + var l int + _ = l + if len(m.MatchExpressions) > 0 { + for _, e := range m.MatchExpressions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NodeSpec) Size() (n int) { + var l int + _ = l + l = len(m.PodCIDR) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ExternalID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ProviderID) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *NodeStatus) Size() (n int) { + var l int + _ = l + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Allocatable) > 0 { + for k, v := range m.Allocatable { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Addresses) > 0 { + for _, e := range m.Addresses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.DaemonEndpoints.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.NodeInfo.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Images) > 0 { + for _, e := range m.Images { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumesInUse) > 0 { + for _, s := range m.VolumesInUse { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumesAttached) > 0 { + for _, e := range m.VolumesAttached { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NodeSystemInfo) Size() (n int) { + var l int + _ = l + l = len(m.MachineID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SystemUUID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.BootID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KernelVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.OSImage) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ContainerRuntimeVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KubeletVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KubeProxyVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.OperatingSystem) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Architecture) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ObjectFieldSelector) Size() (n int) { + var l int + _ = l + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FieldPath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ObjectMeta) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.GenerateName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SelfLink) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.UID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ResourceVersion) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Generation)) + l = m.CreationTimestamp.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.DeletionTimestamp != nil { + l = m.DeletionTimestamp.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.DeletionGracePeriodSeconds != nil { + n += 1 + sovGenerated(uint64(*m.DeletionGracePeriodSeconds)) + } + if len(m.Labels) > 0 { + for k, v := range m.Labels { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + 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)) + } + } + if len(m.OwnerReferences) > 0 { + for _, e := range m.OwnerReferences { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Finalizers) > 0 { + for _, s := range m.Finalizers { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ObjectReference) Size() (n int) { + var l int + _ = l + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.UID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ResourceVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FieldPath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *OwnerReference) Size() (n int) { + var l int + _ = l + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.UID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + if m.Controller != nil { + n += 2 + } + return n +} + +func (m *PersistentVolume) 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 *PersistentVolumeClaim) 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 *PersistentVolumeClaimList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PersistentVolumeClaimSpec) Size() (n int) { + var l int + _ = l + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.Resources.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.VolumeName) + n += 1 + l + sovGenerated(uint64(l)) + if m.Selector != nil { + l = m.Selector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PersistentVolumeClaimStatus) Size() (n int) { + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *PersistentVolumeClaimVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.ClaimName) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *PersistentVolumeList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PersistentVolumeSource) Size() (n int) { + var l int + _ = l + if m.GCEPersistentDisk != nil { + l = m.GCEPersistentDisk.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AWSElasticBlockStore != nil { + l = m.AWSElasticBlockStore.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HostPath != nil { + l = m.HostPath.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Glusterfs != nil { + l = m.Glusterfs.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NFS != nil { + l = m.NFS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.RBD != nil { + l = m.RBD.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ISCSI != nil { + l = m.ISCSI.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Cinder != nil { + l = m.Cinder.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.CephFS != nil { + l = m.CephFS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.FC != nil { + l = m.FC.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Flocker != nil { + l = m.Flocker.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.FlexVolume != nil { + l = m.FlexVolume.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AzureFile != nil { + l = m.AzureFile.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.VsphereVolume != nil { + l = m.VsphereVolume.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PersistentVolumeSpec) Size() (n int) { + var l int + _ = l + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + l = m.PersistentVolumeSource.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.ClaimRef != nil { + l = m.ClaimRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.PersistentVolumeReclaimPolicy) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PersistentVolumeStatus) Size() (n int) { + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Pod) 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 *PodAffinity) Size() (n int) { + var l int + _ = l + if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, e := range m.RequiredDuringSchedulingIgnoredDuringExecution { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, e := range m.PreferredDuringSchedulingIgnoredDuringExecution { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodAffinityTerm) Size() (n int) { + var l int + _ = l + if m.LabelSelector != nil { + l = m.LabelSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Namespaces) > 0 { + for _, s := range m.Namespaces { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.TopologyKey) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodAntiAffinity) Size() (n int) { + var l int + _ = l + if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, e := range m.RequiredDuringSchedulingIgnoredDuringExecution { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + for _, e := range m.PreferredDuringSchedulingIgnoredDuringExecution { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodAttachOptions) Size() (n int) { + var l int + _ = l + n += 2 + n += 2 + n += 2 + n += 2 + l = len(m.Container) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodCondition) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastProbeTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodExecOptions) Size() (n int) { + var l int + _ = l + n += 2 + n += 2 + n += 2 + n += 2 + l = len(m.Container) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Command) > 0 { + for _, s := range m.Command { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodLogOptions) Size() (n int) { + var l int + _ = l + l = len(m.Container) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + n += 2 + if m.SinceSeconds != nil { + n += 1 + sovGenerated(uint64(*m.SinceSeconds)) + } + if m.SinceTime != nil { + l = m.SinceTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + if m.TailLines != nil { + n += 1 + sovGenerated(uint64(*m.TailLines)) + } + if m.LimitBytes != nil { + n += 1 + sovGenerated(uint64(*m.LimitBytes)) + } + return n +} + +func (m *PodProxyOptions) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodSecurityContext) Size() (n int) { + var l int + _ = l + if m.SELinuxOptions != nil { + l = m.SELinuxOptions.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.RunAsUser != nil { + n += 1 + sovGenerated(uint64(*m.RunAsUser)) + } + if m.RunAsNonRoot != nil { + n += 2 + } + if len(m.SupplementalGroups) > 0 { + for _, e := range m.SupplementalGroups { + n += 1 + sovGenerated(uint64(e)) + } + } + if m.FSGroup != nil { + n += 1 + sovGenerated(uint64(*m.FSGroup)) + } + return n +} + +func (m *PodSignature) Size() (n int) { + var l int + _ = l + if m.PodController != nil { + l = m.PodController.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PodSpec) Size() (n int) { + var l int + _ = l + if len(m.Volumes) > 0 { + for _, e := range m.Volumes { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.RestartPolicy) + n += 1 + l + sovGenerated(uint64(l)) + if m.TerminationGracePeriodSeconds != nil { + n += 1 + sovGenerated(uint64(*m.TerminationGracePeriodSeconds)) + } + if m.ActiveDeadlineSeconds != nil { + n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) + } + l = len(m.DNSPolicy) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.NodeSelector) > 0 { + for k, v := range m.NodeSelector { + _ = 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.ServiceAccountName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DeprecatedServiceAccount) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.NodeName) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + n += 2 + n += 2 + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Hostname) + n += 2 + l + sovGenerated(uint64(l)) + l = len(m.Subdomain) + n += 2 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodStatus) Size() (n int) { + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.HostIP) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.PodIP) + n += 1 + l + sovGenerated(uint64(l)) + if m.StartTime != nil { + l = m.StartTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ContainerStatuses) > 0 { + for _, e := range m.ContainerStatuses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodStatusResult) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodTemplate) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Template.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodTemplateList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodTemplateSpec) 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)) + return n +} + +func (m *Preconditions) Size() (n int) { + var l int + _ = l + if m.UID != nil { + l = len(*m.UID) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PreferAvoidPodsEntry) Size() (n int) { + var l int + _ = l + l = m.PodSignature.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.EvictionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PreferredSchedulingTerm) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Weight)) + l = m.Preference.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Probe) Size() (n int) { + var l int + _ = l + l = m.Handler.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.InitialDelaySeconds)) + n += 1 + sovGenerated(uint64(m.TimeoutSeconds)) + n += 1 + sovGenerated(uint64(m.PeriodSeconds)) + n += 1 + sovGenerated(uint64(m.SuccessThreshold)) + n += 1 + sovGenerated(uint64(m.FailureThreshold)) + return n +} + +func (m *RBDVolumeSource) Size() (n int) { + var l int + _ = l + if len(m.CephMonitors) > 0 { + for _, s := range m.CephMonitors { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.RBDImage) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.RBDPool) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.RadosUser) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Keyring) + n += 1 + l + sovGenerated(uint64(l)) + if m.SecretRef != nil { + l = m.SecretRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + return n +} + +func (m *RangeAllocation) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Range) + n += 1 + l + sovGenerated(uint64(l)) + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ReplicationController) 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 *ReplicationControllerList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ReplicationControllerSpec) Size() (n int) { + var l int + _ = l + if m.Replicas != nil { + n += 1 + sovGenerated(uint64(*m.Replicas)) + } + if len(m.Selector) > 0 { + for k, v := range m.Selector { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if m.Template != nil { + l = m.Template.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ReplicationControllerStatus) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Replicas)) + n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + return n +} + +func (m *ResourceFieldSelector) Size() (n int) { + var l int + _ = l + l = len(m.ContainerName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Resource) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Divisor.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceQuota) 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 *ResourceQuotaList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResourceQuotaSpec) Size() (n int) { + var l int + _ = l + if len(m.Hard) > 0 { + for k, v := range m.Hard { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Scopes) > 0 { + for _, s := range m.Scopes { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResourceQuotaStatus) Size() (n int) { + var l int + _ = l + if len(m.Hard) > 0 { + for k, v := range m.Hard { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Used) > 0 { + for k, v := range m.Used { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *ResourceRequirements) Size() (n int) { + var l int + _ = l + if len(m.Limits) > 0 { + for k, v := range m.Limits { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Requests) > 0 { + for k, v := range m.Requests { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *SELinuxOptions) Size() (n int) { + var l int + _ = l + l = len(m.User) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Role) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Level) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Secret) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Data) > 0 { + for k, v := range m.Data { + _ = 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.Type) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.StringData) > 0 { + for k, v := range m.StringData { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *SecretKeySelector) Size() (n int) { + var l int + _ = l + l = m.LocalObjectReference.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SecretList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SecretVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.SecretName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SecurityContext) Size() (n int) { + var l int + _ = l + if m.Capabilities != nil { + l = m.Capabilities.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Privileged != nil { + n += 2 + } + if m.SELinuxOptions != nil { + l = m.SELinuxOptions.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.RunAsUser != nil { + n += 1 + sovGenerated(uint64(*m.RunAsUser)) + } + if m.RunAsNonRoot != nil { + n += 2 + } + if m.ReadOnlyRootFilesystem != nil { + n += 2 + } + return n +} + +func (m *SerializedReference) Size() (n int) { + var l int + _ = l + l = m.Reference.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Service) 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 *ServiceAccount) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Secrets) > 0 { + for _, e := range m.Secrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ServiceAccountList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ServiceList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ServicePort) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Port)) + l = m.TargetPort.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.NodePort)) + return n +} + +func (m *ServiceProxyOptions) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ServiceSpec) Size() (n int) { + var l int + _ = l + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Selector) > 0 { + for k, v := range m.Selector { + _ = 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.ClusterIP) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.ExternalIPs) > 0 { + for _, s := range m.ExternalIPs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.DeprecatedPublicIPs) > 0 { + for _, s := range m.DeprecatedPublicIPs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.SessionAffinity) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.LoadBalancerIP) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.LoadBalancerSourceRanges) > 0 { + for _, s := range m.LoadBalancerSourceRanges { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ServiceStatus) Size() (n int) { + var l int + _ = l + l = m.LoadBalancer.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *TCPSocketAction) Size() (n int) { + var l int + _ = l + l = m.Port.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Taint) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Effect) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Toleration) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Operator) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Effect) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Volume) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = m.VolumeSource.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VolumeMount) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.MountPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SubPath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VolumeSource) Size() (n int) { + var l int + _ = l + if m.HostPath != nil { + l = m.HostPath.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.EmptyDir != nil { + l = m.EmptyDir.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.GCEPersistentDisk != nil { + l = m.GCEPersistentDisk.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AWSElasticBlockStore != nil { + l = m.AWSElasticBlockStore.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.GitRepo != nil { + l = m.GitRepo.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Secret != nil { + l = m.Secret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NFS != nil { + l = m.NFS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ISCSI != nil { + l = m.ISCSI.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Glusterfs != nil { + l = m.Glusterfs.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PersistentVolumeClaim != nil { + l = m.PersistentVolumeClaim.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.RBD != nil { + l = m.RBD.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.FlexVolume != nil { + l = m.FlexVolume.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Cinder != nil { + l = m.Cinder.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.CephFS != nil { + l = m.CephFS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Flocker != nil { + l = m.Flocker.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.DownwardAPI != nil { + l = m.DownwardAPI.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.FC != nil { + l = m.FC.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.AzureFile != nil { + l = m.AzureFile.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.ConfigMap != nil { + l = m.ConfigMap.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.VsphereVolume != nil { + l = m.VsphereVolume.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *VsphereVirtualDiskVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.VolumePath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WeightedPodAffinityTerm) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Weight)) + l = m.PodAffinityTerm.Size() + 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 *AWSElasticBlockStoreVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AWSElasticBlockStoreVolumeSource{`, + `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *Affinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Affinity{`, + `NodeAffinity:` + strings.Replace(fmt.Sprintf("%v", this.NodeAffinity), "NodeAffinity", "NodeAffinity", 1) + `,`, + `PodAffinity:` + strings.Replace(fmt.Sprintf("%v", this.PodAffinity), "PodAffinity", "PodAffinity", 1) + `,`, + `PodAntiAffinity:` + strings.Replace(fmt.Sprintf("%v", this.PodAntiAffinity), "PodAntiAffinity", "PodAntiAffinity", 1) + `,`, + `}`, + }, "") + return s +} +func (this *AttachedVolume) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AttachedVolume{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `DevicePath:` + fmt.Sprintf("%v", this.DevicePath) + `,`, + `}`, + }, "") + return s +} +func (this *AvoidPods) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AvoidPods{`, + `PreferAvoidPods:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferAvoidPods), "PreferAvoidPodsEntry", "PreferAvoidPodsEntry", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *AzureFileVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AzureFileVolumeSource{`, + `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, + `ShareName:` + fmt.Sprintf("%v", this.ShareName) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *Binding) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Binding{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Target:` + strings.Replace(strings.Replace(this.Target.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Capabilities) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Capabilities{`, + `Add:` + fmt.Sprintf("%v", this.Add) + `,`, + `Drop:` + fmt.Sprintf("%v", this.Drop) + `,`, + `}`, + }, "") + return s +} +func (this *CephFSVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CephFSVolumeSource{`, + `Monitors:` + fmt.Sprintf("%v", this.Monitors) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `User:` + fmt.Sprintf("%v", this.User) + `,`, + `SecretFile:` + fmt.Sprintf("%v", this.SecretFile) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "LocalObjectReference", 1) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *CinderVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CinderVolumeSource{`, + `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *ComponentCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ComponentCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Error:` + fmt.Sprintf("%v", this.Error) + `,`, + `}`, + }, "") + return s +} +func (this *ComponentStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ComponentStatus{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "ComponentCondition", "ComponentCondition", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ComponentStatusList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ComponentStatusList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ComponentStatus", "ComponentStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMap) String() string { + if this == nil { + return "nil" + } + keysForData := make([]string, 0, len(this.Data)) + for k := range this.Data { + keysForData = append(keysForData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForData) + mapStringForData := "map[string]string{" + for _, k := range keysForData { + mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) + } + mapStringForData += "}" + s := strings.Join([]string{`&ConfigMap{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Data:` + mapStringForData + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMapKeySelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConfigMapKeySelector{`, + `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMapList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConfigMapList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ConfigMap", "ConfigMap", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigMapVolumeSource) String() string { + if this == nil { + return "nil" + } + 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) + `,`, + `}`, + }, "") + return s +} +func (this *Container) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Container{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Image:` + fmt.Sprintf("%v", this.Image) + `,`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `WorkingDir:` + fmt.Sprintf("%v", this.WorkingDir) + `,`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "ContainerPort", "ContainerPort", 1), `&`, ``, 1) + `,`, + `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "EnvVar", 1), `&`, ``, 1) + `,`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, + `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "VolumeMount", 1), `&`, ``, 1) + `,`, + `LivenessProbe:` + strings.Replace(fmt.Sprintf("%v", this.LivenessProbe), "Probe", "Probe", 1) + `,`, + `ReadinessProbe:` + strings.Replace(fmt.Sprintf("%v", this.ReadinessProbe), "Probe", "Probe", 1) + `,`, + `Lifecycle:` + strings.Replace(fmt.Sprintf("%v", this.Lifecycle), "Lifecycle", "Lifecycle", 1) + `,`, + `TerminationMessagePath:` + fmt.Sprintf("%v", this.TerminationMessagePath) + `,`, + `ImagePullPolicy:` + fmt.Sprintf("%v", this.ImagePullPolicy) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "SecurityContext", "SecurityContext", 1) + `,`, + `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, + `StdinOnce:` + fmt.Sprintf("%v", this.StdinOnce) + `,`, + `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerImage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerImage{`, + `Names:` + fmt.Sprintf("%v", this.Names) + `,`, + `SizeBytes:` + fmt.Sprintf("%v", this.SizeBytes) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerPort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `HostPort:` + fmt.Sprintf("%v", this.HostPort) + `,`, + `ContainerPort:` + fmt.Sprintf("%v", this.ContainerPort) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerState) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerState{`, + `Waiting:` + strings.Replace(fmt.Sprintf("%v", this.Waiting), "ContainerStateWaiting", "ContainerStateWaiting", 1) + `,`, + `Running:` + strings.Replace(fmt.Sprintf("%v", this.Running), "ContainerStateRunning", "ContainerStateRunning", 1) + `,`, + `Terminated:` + strings.Replace(fmt.Sprintf("%v", this.Terminated), "ContainerStateTerminated", "ContainerStateTerminated", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStateRunning) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStateRunning{`, + `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStateTerminated) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStateTerminated{`, + `ExitCode:` + fmt.Sprintf("%v", this.ExitCode) + `,`, + `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `FinishedAt:` + strings.Replace(strings.Replace(this.FinishedAt.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStateWaiting) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStateWaiting{`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerStatus{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `State:` + strings.Replace(strings.Replace(this.State.String(), "ContainerState", "ContainerState", 1), `&`, ``, 1) + `,`, + `LastTerminationState:` + strings.Replace(strings.Replace(this.LastTerminationState.String(), "ContainerState", "ContainerState", 1), `&`, ``, 1) + `,`, + `Ready:` + fmt.Sprintf("%v", this.Ready) + `,`, + `RestartCount:` + fmt.Sprintf("%v", this.RestartCount) + `,`, + `Image:` + fmt.Sprintf("%v", this.Image) + `,`, + `ImageID:` + fmt.Sprintf("%v", this.ImageID) + `,`, + `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, + `}`, + }, "") + return s +} +func (this *DaemonEndpoint) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DaemonEndpoint{`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteOptions{`, + `GracePeriodSeconds:` + valueToStringGenerated(this.GracePeriodSeconds) + `,`, + `Preconditions:` + strings.Replace(fmt.Sprintf("%v", this.Preconditions), "Preconditions", "Preconditions", 1) + `,`, + `OrphanDependents:` + valueToStringGenerated(this.OrphanDependents) + `,`, + `}`, + }, "") + return s +} +func (this *DownwardAPIVolumeFile) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DownwardAPIVolumeFile{`, + `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) + `,`, + `}`, + }, "") + return s +} +func (this *DownwardAPIVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DownwardAPIVolumeSource{`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "DownwardAPIVolumeFile", "DownwardAPIVolumeFile", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EmptyDirVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EmptyDirVolumeSource{`, + `Medium:` + fmt.Sprintf("%v", this.Medium) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointAddress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointAddress{`, + `IP:` + fmt.Sprintf("%v", this.IP) + `,`, + `TargetRef:` + strings.Replace(fmt.Sprintf("%v", this.TargetRef), "ObjectReference", "ObjectReference", 1) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointPort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointSubset) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointSubset{`, + `Addresses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Addresses), "EndpointAddress", "EndpointAddress", 1), `&`, ``, 1) + `,`, + `NotReadyAddresses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.NotReadyAddresses), "EndpointAddress", "EndpointAddress", 1), `&`, ``, 1) + `,`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "EndpointPort", "EndpointPort", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Endpoints) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Endpoints{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Subsets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subsets), "EndpointSubset", "EndpointSubset", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EndpointsList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EndpointsList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Endpoints", "Endpoints", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EnvVar) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EnvVar{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `ValueFrom:` + strings.Replace(fmt.Sprintf("%v", this.ValueFrom), "EnvVarSource", "EnvVarSource", 1) + `,`, + `}`, + }, "") + return s +} +func (this *EnvVarSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EnvVarSource{`, + `FieldRef:` + strings.Replace(fmt.Sprintf("%v", this.FieldRef), "ObjectFieldSelector", "ObjectFieldSelector", 1) + `,`, + `ResourceFieldRef:` + strings.Replace(fmt.Sprintf("%v", this.ResourceFieldRef), "ResourceFieldSelector", "ResourceFieldSelector", 1) + `,`, + `ConfigMapKeyRef:` + strings.Replace(fmt.Sprintf("%v", this.ConfigMapKeyRef), "ConfigMapKeySelector", "ConfigMapKeySelector", 1) + `,`, + `SecretKeyRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretKeyRef), "SecretKeySelector", "SecretKeySelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *Event) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `InvolvedObject:` + strings.Replace(strings.Replace(this.InvolvedObject.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Source:` + strings.Replace(strings.Replace(this.Source.String(), "EventSource", "EventSource", 1), `&`, ``, 1) + `,`, + `FirstTimestamp:` + strings.Replace(strings.Replace(this.FirstTimestamp.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTimestamp:` + strings.Replace(strings.Replace(this.LastTimestamp.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Count:` + fmt.Sprintf("%v", this.Count) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `}`, + }, "") + return s +} +func (this *EventList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EventList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Event", "Event", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *EventSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EventSource{`, + `Component:` + fmt.Sprintf("%v", this.Component) + `,`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `}`, + }, "") + return s +} +func (this *ExecAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecAction{`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `}`, + }, "") + return s +} +func (this *ExportOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportOptions{`, + `Export:` + fmt.Sprintf("%v", this.Export) + `,`, + `Exact:` + fmt.Sprintf("%v", this.Exact) + `,`, + `}`, + }, "") + return s +} +func (this *FCVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FCVolumeSource{`, + `TargetWWNs:` + fmt.Sprintf("%v", this.TargetWWNs) + `,`, + `Lun:` + valueToStringGenerated(this.Lun) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *FlexVolumeSource) String() string { + if this == nil { + return "nil" + } + keysForOptions := make([]string, 0, len(this.Options)) + for k := range this.Options { + keysForOptions = append(keysForOptions, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) + mapStringForOptions := "map[string]string{" + for _, k := range keysForOptions { + mapStringForOptions += fmt.Sprintf("%v: %v,", k, this.Options[k]) + } + mapStringForOptions += "}" + s := strings.Join([]string{`&FlexVolumeSource{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "LocalObjectReference", 1) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `Options:` + mapStringForOptions + `,`, + `}`, + }, "") + return s +} +func (this *FlockerVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FlockerVolumeSource{`, + `DatasetName:` + fmt.Sprintf("%v", this.DatasetName) + `,`, + `}`, + }, "") + return s +} +func (this *GCEPersistentDiskVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GCEPersistentDiskVolumeSource{`, + `PDName:` + fmt.Sprintf("%v", this.PDName) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *GitRepoVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GitRepoVolumeSource{`, + `Repository:` + fmt.Sprintf("%v", this.Repository) + `,`, + `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, + `Directory:` + fmt.Sprintf("%v", this.Directory) + `,`, + `}`, + }, "") + return s +} +func (this *GlusterfsVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GlusterfsVolumeSource{`, + `EndpointsName:` + fmt.Sprintf("%v", this.EndpointsName) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPGetAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPGetAction{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Port:` + strings.Replace(strings.Replace(this.Port.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `Scheme:` + fmt.Sprintf("%v", this.Scheme) + `,`, + `HTTPHeaders:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.HTTPHeaders), "HTTPHeader", "HTTPHeader", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPHeader) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPHeader{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *Handler) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Handler{`, + `Exec:` + strings.Replace(fmt.Sprintf("%v", this.Exec), "ExecAction", "ExecAction", 1) + `,`, + `HTTPGet:` + strings.Replace(fmt.Sprintf("%v", this.HTTPGet), "HTTPGetAction", "HTTPGetAction", 1) + `,`, + `TCPSocket:` + strings.Replace(fmt.Sprintf("%v", this.TCPSocket), "TCPSocketAction", "TCPSocketAction", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HostPathVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HostPathVolumeSource{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *ISCSIVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ISCSIVolumeSource{`, + `TargetPortal:` + fmt.Sprintf("%v", this.TargetPortal) + `,`, + `IQN:` + fmt.Sprintf("%v", this.IQN) + `,`, + `Lun:` + fmt.Sprintf("%v", this.Lun) + `,`, + `ISCSIInterface:` + fmt.Sprintf("%v", this.ISCSIInterface) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *KeyToPath) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&KeyToPath{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *Lifecycle) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Lifecycle{`, + `PostStart:` + strings.Replace(fmt.Sprintf("%v", this.PostStart), "Handler", "Handler", 1) + `,`, + `PreStop:` + strings.Replace(fmt.Sprintf("%v", this.PreStop), "Handler", "Handler", 1) + `,`, + `}`, + }, "") + return s +} +func (this *LimitRange) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LimitRange{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LimitRangeSpec", "LimitRangeSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LimitRangeItem) String() string { + if this == nil { + return "nil" + } + keysForMax := make([]string, 0, len(this.Max)) + for k := range this.Max { + keysForMax = append(keysForMax, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMax) + mapStringForMax := "ResourceList{" + for _, k := range keysForMax { + mapStringForMax += fmt.Sprintf("%v: %v,", k, this.Max[ResourceName(k)]) + } + mapStringForMax += "}" + keysForMin := make([]string, 0, len(this.Min)) + for k := range this.Min { + keysForMin = append(keysForMin, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMin) + mapStringForMin := "ResourceList{" + for _, k := range keysForMin { + mapStringForMin += fmt.Sprintf("%v: %v,", k, this.Min[ResourceName(k)]) + } + mapStringForMin += "}" + keysForDefault := make([]string, 0, len(this.Default)) + for k := range this.Default { + keysForDefault = append(keysForDefault, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForDefault) + mapStringForDefault := "ResourceList{" + for _, k := range keysForDefault { + mapStringForDefault += fmt.Sprintf("%v: %v,", k, this.Default[ResourceName(k)]) + } + mapStringForDefault += "}" + keysForDefaultRequest := make([]string, 0, len(this.DefaultRequest)) + for k := range this.DefaultRequest { + keysForDefaultRequest = append(keysForDefaultRequest, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForDefaultRequest) + mapStringForDefaultRequest := "ResourceList{" + for _, k := range keysForDefaultRequest { + mapStringForDefaultRequest += fmt.Sprintf("%v: %v,", k, this.DefaultRequest[ResourceName(k)]) + } + mapStringForDefaultRequest += "}" + keysForMaxLimitRequestRatio := make([]string, 0, len(this.MaxLimitRequestRatio)) + for k := range this.MaxLimitRequestRatio { + keysForMaxLimitRequestRatio = append(keysForMaxLimitRequestRatio, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMaxLimitRequestRatio) + mapStringForMaxLimitRequestRatio := "ResourceList{" + for _, k := range keysForMaxLimitRequestRatio { + mapStringForMaxLimitRequestRatio += fmt.Sprintf("%v: %v,", k, this.MaxLimitRequestRatio[ResourceName(k)]) + } + mapStringForMaxLimitRequestRatio += "}" + s := strings.Join([]string{`&LimitRangeItem{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Max:` + mapStringForMax + `,`, + `Min:` + mapStringForMin + `,`, + `Default:` + mapStringForDefault + `,`, + `DefaultRequest:` + mapStringForDefaultRequest + `,`, + `MaxLimitRequestRatio:` + mapStringForMaxLimitRequestRatio + `,`, + `}`, + }, "") + return s +} +func (this *LimitRangeList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LimitRangeList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "LimitRange", "LimitRange", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LimitRangeSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LimitRangeSpec{`, + `Limits:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Limits), "LimitRangeItem", "LimitRangeItem", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *List) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&List{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RawExtension", "k8s_io_kubernetes_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ListOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListOptions{`, + `LabelSelector:` + fmt.Sprintf("%v", this.LabelSelector) + `,`, + `FieldSelector:` + fmt.Sprintf("%v", this.FieldSelector) + `,`, + `Watch:` + fmt.Sprintf("%v", this.Watch) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, + `}`, + }, "") + return s +} +func (this *LoadBalancerIngress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LoadBalancerIngress{`, + `IP:` + fmt.Sprintf("%v", this.IP) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `}`, + }, "") + return s +} +func (this *LoadBalancerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LoadBalancerStatus{`, + `Ingress:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ingress), "LoadBalancerIngress", "LoadBalancerIngress", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LocalObjectReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LocalObjectReference{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *NFSVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NFSVolumeSource{`, + `Server:` + fmt.Sprintf("%v", this.Server) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *Namespace) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Namespace{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NamespaceSpec", "NamespaceSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "NamespaceStatus", "NamespaceStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceSpec{`, + `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `}`, + }, "") + return s +} +func (this *Node) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Node{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NodeSpec", "NodeSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "NodeStatus", "NodeStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeAddress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeAddress{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Address:` + fmt.Sprintf("%v", this.Address) + `,`, + `}`, + }, "") + return s +} +func (this *NodeAffinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeAffinity{`, + `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(fmt.Sprintf("%v", this.RequiredDuringSchedulingIgnoredDuringExecution), "NodeSelector", "NodeSelector", 1) + `,`, + `PreferredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferredDuringSchedulingIgnoredDuringExecution), "PreferredSchedulingTerm", "PreferredSchedulingTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastHeartbeatTime:` + strings.Replace(strings.Replace(this.LastHeartbeatTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *NodeDaemonEndpoints) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeDaemonEndpoints{`, + `KubeletEndpoint:` + strings.Replace(strings.Replace(this.KubeletEndpoint.String(), "DaemonEndpoint", "DaemonEndpoint", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Node", "Node", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeProxyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeProxyOptions{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSelector{`, + `NodeSelectorTerms:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.NodeSelectorTerms), "NodeSelectorTerm", "NodeSelectorTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSelectorRequirement) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSelectorRequirement{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSelectorTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSelectorTerm{`, + `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "NodeSelectorRequirement", "NodeSelectorRequirement", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSpec{`, + `PodCIDR:` + fmt.Sprintf("%v", this.PodCIDR) + `,`, + `ExternalID:` + fmt.Sprintf("%v", this.ExternalID) + `,`, + `ProviderID:` + fmt.Sprintf("%v", this.ProviderID) + `,`, + `Unschedulable:` + fmt.Sprintf("%v", this.Unschedulable) + `,`, + `}`, + }, "") + return s +} +func (this *NodeStatus) String() string { + if this == nil { + return "nil" + } + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "ResourceList{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) + } + mapStringForCapacity += "}" + keysForAllocatable := make([]string, 0, len(this.Allocatable)) + for k := range this.Allocatable { + keysForAllocatable = append(keysForAllocatable, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatable) + mapStringForAllocatable := "ResourceList{" + for _, k := range keysForAllocatable { + mapStringForAllocatable += fmt.Sprintf("%v: %v,", k, this.Allocatable[ResourceName(k)]) + } + mapStringForAllocatable += "}" + s := strings.Join([]string{`&NodeStatus{`, + `Capacity:` + mapStringForCapacity + `,`, + `Allocatable:` + mapStringForAllocatable + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "NodeCondition", "NodeCondition", 1), `&`, ``, 1) + `,`, + `Addresses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Addresses), "NodeAddress", "NodeAddress", 1), `&`, ``, 1) + `,`, + `DaemonEndpoints:` + strings.Replace(strings.Replace(this.DaemonEndpoints.String(), "NodeDaemonEndpoints", "NodeDaemonEndpoints", 1), `&`, ``, 1) + `,`, + `NodeInfo:` + strings.Replace(strings.Replace(this.NodeInfo.String(), "NodeSystemInfo", "NodeSystemInfo", 1), `&`, ``, 1) + `,`, + `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "ContainerImage", "ContainerImage", 1), `&`, ``, 1) + `,`, + `VolumesInUse:` + fmt.Sprintf("%v", this.VolumesInUse) + `,`, + `VolumesAttached:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumesAttached), "AttachedVolume", "AttachedVolume", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NodeSystemInfo) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeSystemInfo{`, + `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, + `SystemUUID:` + fmt.Sprintf("%v", this.SystemUUID) + `,`, + `BootID:` + fmt.Sprintf("%v", this.BootID) + `,`, + `KernelVersion:` + fmt.Sprintf("%v", this.KernelVersion) + `,`, + `OSImage:` + fmt.Sprintf("%v", this.OSImage) + `,`, + `ContainerRuntimeVersion:` + fmt.Sprintf("%v", this.ContainerRuntimeVersion) + `,`, + `KubeletVersion:` + fmt.Sprintf("%v", this.KubeletVersion) + `,`, + `KubeProxyVersion:` + fmt.Sprintf("%v", this.KubeProxyVersion) + `,`, + `OperatingSystem:` + fmt.Sprintf("%v", this.OperatingSystem) + `,`, + `Architecture:` + fmt.Sprintf("%v", this.Architecture) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectFieldSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ObjectFieldSelector{`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `FieldPath:` + fmt.Sprintf("%v", this.FieldPath) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectMeta) String() string { + if this == nil { + return "nil" + } + keysForLabels := make([]string, 0, len(this.Labels)) + for k := range this.Labels { + keysForLabels = append(keysForLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) + mapStringForLabels := "map[string]string{" + for _, k := range keysForLabels { + mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) + } + mapStringForLabels += "}" + 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{`&ObjectMeta{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `GenerateName:` + fmt.Sprintf("%v", this.GenerateName) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `SelfLink:` + fmt.Sprintf("%v", this.SelfLink) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, + `CreationTimestamp:` + strings.Replace(strings.Replace(this.CreationTimestamp.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `DeletionTimestamp:` + strings.Replace(fmt.Sprintf("%v", this.DeletionTimestamp), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `DeletionGracePeriodSeconds:` + valueToStringGenerated(this.DeletionGracePeriodSeconds) + `,`, + `Labels:` + mapStringForLabels + `,`, + `Annotations:` + mapStringForAnnotations + `,`, + `OwnerReferences:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OwnerReferences), "OwnerReference", "OwnerReference", 1), `&`, ``, 1) + `,`, + `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ObjectReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `FieldPath:` + fmt.Sprintf("%v", this.FieldPath) + `,`, + `}`, + }, "") + return s +} +func (this *OwnerReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OwnerReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Controller:` + valueToStringGenerated(this.Controller) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolume) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolume{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PersistentVolumeSpec", "PersistentVolumeSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PersistentVolumeStatus", "PersistentVolumeStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaim) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaim{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PersistentVolumeClaimSpec", "PersistentVolumeClaimSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PersistentVolumeClaimStatus", "PersistentVolumeClaimStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaimList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PersistentVolumeClaim", "PersistentVolumeClaim", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaimSpec{`, + `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, + `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimStatus) String() string { + if this == nil { + return "nil" + } + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "ResourceList{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) + } + mapStringForCapacity += "}" + s := strings.Join([]string{`&PersistentVolumeClaimStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, + `Capacity:` + mapStringForCapacity + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeClaimVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeClaimVolumeSource{`, + `ClaimName:` + fmt.Sprintf("%v", this.ClaimName) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PersistentVolume", "PersistentVolume", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeSource{`, + `GCEPersistentDisk:` + strings.Replace(fmt.Sprintf("%v", this.GCEPersistentDisk), "GCEPersistentDiskVolumeSource", "GCEPersistentDiskVolumeSource", 1) + `,`, + `AWSElasticBlockStore:` + strings.Replace(fmt.Sprintf("%v", this.AWSElasticBlockStore), "AWSElasticBlockStoreVolumeSource", "AWSElasticBlockStoreVolumeSource", 1) + `,`, + `HostPath:` + strings.Replace(fmt.Sprintf("%v", this.HostPath), "HostPathVolumeSource", "HostPathVolumeSource", 1) + `,`, + `Glusterfs:` + strings.Replace(fmt.Sprintf("%v", this.Glusterfs), "GlusterfsVolumeSource", "GlusterfsVolumeSource", 1) + `,`, + `NFS:` + strings.Replace(fmt.Sprintf("%v", this.NFS), "NFSVolumeSource", "NFSVolumeSource", 1) + `,`, + `RBD:` + strings.Replace(fmt.Sprintf("%v", this.RBD), "RBDVolumeSource", "RBDVolumeSource", 1) + `,`, + `ISCSI:` + strings.Replace(fmt.Sprintf("%v", this.ISCSI), "ISCSIVolumeSource", "ISCSIVolumeSource", 1) + `,`, + `Cinder:` + strings.Replace(fmt.Sprintf("%v", this.Cinder), "CinderVolumeSource", "CinderVolumeSource", 1) + `,`, + `CephFS:` + strings.Replace(fmt.Sprintf("%v", this.CephFS), "CephFSVolumeSource", "CephFSVolumeSource", 1) + `,`, + `FC:` + strings.Replace(fmt.Sprintf("%v", this.FC), "FCVolumeSource", "FCVolumeSource", 1) + `,`, + `Flocker:` + strings.Replace(fmt.Sprintf("%v", this.Flocker), "FlockerVolumeSource", "FlockerVolumeSource", 1) + `,`, + `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) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeSpec) String() string { + if this == nil { + return "nil" + } + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "ResourceList{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) + } + mapStringForCapacity += "}" + s := strings.Join([]string{`&PersistentVolumeSpec{`, + `Capacity:` + mapStringForCapacity + `,`, + `PersistentVolumeSource:` + strings.Replace(strings.Replace(this.PersistentVolumeSource.String(), "PersistentVolumeSource", "PersistentVolumeSource", 1), `&`, ``, 1) + `,`, + `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, + `ClaimRef:` + strings.Replace(fmt.Sprintf("%v", this.ClaimRef), "ObjectReference", "ObjectReference", 1) + `,`, + `PersistentVolumeReclaimPolicy:` + fmt.Sprintf("%v", this.PersistentVolumeReclaimPolicy) + `,`, + `}`, + }, "") + return s +} +func (this *PersistentVolumeStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PersistentVolumeStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `}`, + }, "") + return s +} +func (this *Pod) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Pod{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodStatus", "PodStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodAffinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAffinity{`, + `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RequiredDuringSchedulingIgnoredDuringExecution), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, + `PreferredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferredDuringSchedulingIgnoredDuringExecution), "WeightedPodAffinityTerm", "WeightedPodAffinityTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodAffinityTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAffinityTerm{`, + `LabelSelector:` + strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, + `TopologyKey:` + fmt.Sprintf("%v", this.TopologyKey) + `,`, + `}`, + }, "") + return s +} +func (this *PodAntiAffinity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAntiAffinity{`, + `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RequiredDuringSchedulingIgnoredDuringExecution), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, + `PreferredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PreferredDuringSchedulingIgnoredDuringExecution), "WeightedPodAffinityTerm", "WeightedPodAffinityTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodAttachOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodAttachOptions{`, + `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, + `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, + `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, + `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `}`, + }, "") + return s +} +func (this *PodCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *PodExecOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodExecOptions{`, + `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, + `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, + `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, + `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `}`, + }, "") + return s +} +func (this *PodList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Pod", "Pod", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodLogOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodLogOptions{`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `Follow:` + fmt.Sprintf("%v", this.Follow) + `,`, + `Previous:` + fmt.Sprintf("%v", this.Previous) + `,`, + `SinceSeconds:` + valueToStringGenerated(this.SinceSeconds) + `,`, + `SinceTime:` + strings.Replace(fmt.Sprintf("%v", this.SinceTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `Timestamps:` + fmt.Sprintf("%v", this.Timestamps) + `,`, + `TailLines:` + valueToStringGenerated(this.TailLines) + `,`, + `LimitBytes:` + valueToStringGenerated(this.LimitBytes) + `,`, + `}`, + }, "") + return s +} +func (this *PodProxyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodProxyOptions{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *PodSecurityContext) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSecurityContext{`, + `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "SELinuxOptions", 1) + `,`, + `RunAsUser:` + valueToStringGenerated(this.RunAsUser) + `,`, + `RunAsNonRoot:` + valueToStringGenerated(this.RunAsNonRoot) + `,`, + `SupplementalGroups:` + fmt.Sprintf("%v", this.SupplementalGroups) + `,`, + `FSGroup:` + valueToStringGenerated(this.FSGroup) + `,`, + `}`, + }, "") + return s +} +func (this *PodSignature) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodSignature{`, + `PodController:` + strings.Replace(fmt.Sprintf("%v", this.PodController), "OwnerReference", "OwnerReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodSpec) String() string { + if this == nil { + return "nil" + } + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&PodSpec{`, + `Volumes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "Volume", 1), `&`, ``, 1) + `,`, + `Containers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Containers), "Container", "Container", 1), `&`, ``, 1) + `,`, + `RestartPolicy:` + fmt.Sprintf("%v", this.RestartPolicy) + `,`, + `TerminationGracePeriodSeconds:` + valueToStringGenerated(this.TerminationGracePeriodSeconds) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `DNSPolicy:` + fmt.Sprintf("%v", this.DNSPolicy) + `,`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `DeprecatedServiceAccount:` + fmt.Sprintf("%v", this.DeprecatedServiceAccount) + `,`, + `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, + `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, + `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, + `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "PodSecurityContext", 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Subdomain:` + fmt.Sprintf("%v", this.Subdomain) + `,`, + `}`, + }, "") + return s +} +func (this *PodStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "PodCondition", "PodCondition", 1), `&`, ``, 1) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, + `PodIP:` + fmt.Sprintf("%v", this.PodIP) + `,`, + `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`, + `ContainerStatuses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ContainerStatuses), "ContainerStatus", "ContainerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodStatusResult) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodStatusResult{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodStatus", "PodStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplate{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "PodTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplateList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplateList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PodTemplate", "PodTemplate", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplateSpec{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Preconditions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Preconditions{`, + `UID:` + valueToStringGenerated(this.UID) + `,`, + `}`, + }, "") + return s +} +func (this *PreferAvoidPodsEntry) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PreferAvoidPodsEntry{`, + `PodSignature:` + strings.Replace(strings.Replace(this.PodSignature.String(), "PodSignature", "PodSignature", 1), `&`, ``, 1) + `,`, + `EvictionTime:` + strings.Replace(strings.Replace(this.EvictionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *PreferredSchedulingTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PreferredSchedulingTerm{`, + `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, + `Preference:` + strings.Replace(strings.Replace(this.Preference.String(), "NodeSelectorTerm", "NodeSelectorTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Probe) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Probe{`, + `Handler:` + strings.Replace(strings.Replace(this.Handler.String(), "Handler", "Handler", 1), `&`, ``, 1) + `,`, + `InitialDelaySeconds:` + fmt.Sprintf("%v", this.InitialDelaySeconds) + `,`, + `TimeoutSeconds:` + fmt.Sprintf("%v", this.TimeoutSeconds) + `,`, + `PeriodSeconds:` + fmt.Sprintf("%v", this.PeriodSeconds) + `,`, + `SuccessThreshold:` + fmt.Sprintf("%v", this.SuccessThreshold) + `,`, + `FailureThreshold:` + fmt.Sprintf("%v", this.FailureThreshold) + `,`, + `}`, + }, "") + return s +} +func (this *RBDVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RBDVolumeSource{`, + `CephMonitors:` + fmt.Sprintf("%v", this.CephMonitors) + `,`, + `RBDImage:` + fmt.Sprintf("%v", this.RBDImage) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `RBDPool:` + fmt.Sprintf("%v", this.RBDPool) + `,`, + `RadosUser:` + fmt.Sprintf("%v", this.RadosUser) + `,`, + `Keyring:` + fmt.Sprintf("%v", this.Keyring) + `,`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "LocalObjectReference", 1) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `}`, + }, "") + return s +} +func (this *RangeAllocation) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RangeAllocation{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Range:` + fmt.Sprintf("%v", this.Range) + `,`, + `Data:` + valueToStringGenerated(this.Data) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationController) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationController{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicationControllerSpec", "ReplicationControllerSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicationControllerStatus", "ReplicationControllerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationControllerList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ReplicationController", "ReplicationController", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerSpec) String() string { + if this == nil { + return "nil" + } + keysForSelector := make([]string, 0, len(this.Selector)) + for k := range this.Selector { + keysForSelector = append(keysForSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) + mapStringForSelector := "map[string]string{" + for _, k := range keysForSelector { + mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) + } + mapStringForSelector += "}" + s := strings.Join([]string{`&ReplicationControllerSpec{`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Selector:` + mapStringForSelector + `,`, + `Template:` + strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "PodTemplateSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ReplicationControllerStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationControllerStatus{`, + `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, + `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceFieldSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceFieldSelector{`, + `ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`, + `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, + `Divisor:` + strings.Replace(strings.Replace(this.Divisor.String(), "Quantity", "k8s_io_kubernetes_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuota) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceQuota{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceQuotaSpec", "ResourceQuotaSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceQuotaStatus", "ResourceQuotaStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuotaList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceQuotaList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ResourceQuota", "ResourceQuota", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuotaSpec) String() string { + if this == nil { + return "nil" + } + keysForHard := make([]string, 0, len(this.Hard)) + for k := range this.Hard { + keysForHard = append(keysForHard, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHard) + mapStringForHard := "ResourceList{" + for _, k := range keysForHard { + mapStringForHard += fmt.Sprintf("%v: %v,", k, this.Hard[ResourceName(k)]) + } + mapStringForHard += "}" + s := strings.Join([]string{`&ResourceQuotaSpec{`, + `Hard:` + mapStringForHard + `,`, + `Scopes:` + fmt.Sprintf("%v", this.Scopes) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceQuotaStatus) String() string { + if this == nil { + return "nil" + } + keysForHard := make([]string, 0, len(this.Hard)) + for k := range this.Hard { + keysForHard = append(keysForHard, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHard) + mapStringForHard := "ResourceList{" + for _, k := range keysForHard { + mapStringForHard += fmt.Sprintf("%v: %v,", k, this.Hard[ResourceName(k)]) + } + mapStringForHard += "}" + keysForUsed := make([]string, 0, len(this.Used)) + for k := range this.Used { + keysForUsed = append(keysForUsed, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForUsed) + mapStringForUsed := "ResourceList{" + for _, k := range keysForUsed { + mapStringForUsed += fmt.Sprintf("%v: %v,", k, this.Used[ResourceName(k)]) + } + mapStringForUsed += "}" + s := strings.Join([]string{`&ResourceQuotaStatus{`, + `Hard:` + mapStringForHard + `,`, + `Used:` + mapStringForUsed + `,`, + `}`, + }, "") + return s +} +func (this *ResourceRequirements) String() string { + if this == nil { + return "nil" + } + keysForLimits := make([]string, 0, len(this.Limits)) + for k := range this.Limits { + keysForLimits = append(keysForLimits, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLimits) + mapStringForLimits := "ResourceList{" + for _, k := range keysForLimits { + mapStringForLimits += fmt.Sprintf("%v: %v,", k, this.Limits[ResourceName(k)]) + } + mapStringForLimits += "}" + keysForRequests := make([]string, 0, len(this.Requests)) + for k := range this.Requests { + keysForRequests = append(keysForRequests, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForRequests) + mapStringForRequests := "ResourceList{" + for _, k := range keysForRequests { + mapStringForRequests += fmt.Sprintf("%v: %v,", k, this.Requests[ResourceName(k)]) + } + mapStringForRequests += "}" + s := strings.Join([]string{`&ResourceRequirements{`, + `Limits:` + mapStringForLimits + `,`, + `Requests:` + mapStringForRequests + `,`, + `}`, + }, "") + return s +} +func (this *SELinuxOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SELinuxOptions{`, + `User:` + fmt.Sprintf("%v", this.User) + `,`, + `Role:` + fmt.Sprintf("%v", this.Role) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Level:` + fmt.Sprintf("%v", this.Level) + `,`, + `}`, + }, "") + return s +} +func (this *Secret) String() string { + if this == nil { + return "nil" + } + keysForData := make([]string, 0, len(this.Data)) + for k := range this.Data { + keysForData = append(keysForData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForData) + mapStringForData := "map[string][]byte{" + for _, k := range keysForData { + mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) + } + mapStringForData += "}" + keysForStringData := make([]string, 0, len(this.StringData)) + for k := range this.StringData { + keysForStringData = append(keysForStringData, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForStringData) + mapStringForStringData := "map[string]string{" + for _, k := range keysForStringData { + mapStringForStringData += fmt.Sprintf("%v: %v,", k, this.StringData[k]) + } + mapStringForStringData += "}" + s := strings.Join([]string{`&Secret{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Data:` + mapStringForData + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `StringData:` + mapStringForStringData + `,`, + `}`, + }, "") + return s +} +func (this *SecretKeySelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecretKeySelector{`, + `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *SecretList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecretList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Secret", "Secret", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SecretVolumeSource) String() string { + if this == nil { + return "nil" + } + 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) + `,`, + `}`, + }, "") + return s +} +func (this *SecurityContext) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecurityContext{`, + `Capabilities:` + strings.Replace(fmt.Sprintf("%v", this.Capabilities), "Capabilities", "Capabilities", 1) + `,`, + `Privileged:` + valueToStringGenerated(this.Privileged) + `,`, + `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "SELinuxOptions", 1) + `,`, + `RunAsUser:` + valueToStringGenerated(this.RunAsUser) + `,`, + `RunAsNonRoot:` + valueToStringGenerated(this.RunAsNonRoot) + `,`, + `ReadOnlyRootFilesystem:` + valueToStringGenerated(this.ReadOnlyRootFilesystem) + `,`, + `}`, + }, "") + return s +} +func (this *SerializedReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SerializedReference{`, + `Reference:` + strings.Replace(strings.Replace(this.Reference.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Service) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Service{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ServiceSpec", "ServiceSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ServiceStatus", "ServiceStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceAccount) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceAccount{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Secrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Secrets), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceAccountList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceAccountList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ServiceAccount", "ServiceAccount", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Service", "Service", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServicePort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServicePort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `TargetPort:` + strings.Replace(strings.Replace(this.TargetPort.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `NodePort:` + fmt.Sprintf("%v", this.NodePort) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceProxyOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceProxyOptions{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceSpec) String() string { + if this == nil { + return "nil" + } + keysForSelector := make([]string, 0, len(this.Selector)) + for k := range this.Selector { + keysForSelector = append(keysForSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) + mapStringForSelector := "map[string]string{" + for _, k := range keysForSelector { + mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) + } + mapStringForSelector += "}" + s := strings.Join([]string{`&ServiceSpec{`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "ServicePort", "ServicePort", 1), `&`, ``, 1) + `,`, + `Selector:` + mapStringForSelector + `,`, + `ClusterIP:` + fmt.Sprintf("%v", this.ClusterIP) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `ExternalIPs:` + fmt.Sprintf("%v", this.ExternalIPs) + `,`, + `DeprecatedPublicIPs:` + fmt.Sprintf("%v", this.DeprecatedPublicIPs) + `,`, + `SessionAffinity:` + fmt.Sprintf("%v", this.SessionAffinity) + `,`, + `LoadBalancerIP:` + fmt.Sprintf("%v", this.LoadBalancerIP) + `,`, + `LoadBalancerSourceRanges:` + fmt.Sprintf("%v", this.LoadBalancerSourceRanges) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceStatus{`, + `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "LoadBalancerStatus", "LoadBalancerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TCPSocketAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TCPSocketAction{`, + `Port:` + strings.Replace(strings.Replace(this.Port.String(), "IntOrString", "k8s_io_kubernetes_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Taint) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Taint{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, + `}`, + }, "") + return s +} +func (this *Toleration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Toleration{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, + `}`, + }, "") + return s +} +func (this *Volume) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Volume{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `VolumeSource:` + strings.Replace(strings.Replace(this.VolumeSource.String(), "VolumeSource", "VolumeSource", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VolumeMount) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VolumeMount{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `MountPath:` + fmt.Sprintf("%v", this.MountPath) + `,`, + `SubPath:` + fmt.Sprintf("%v", this.SubPath) + `,`, + `}`, + }, "") + return s +} +func (this *VolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VolumeSource{`, + `HostPath:` + strings.Replace(fmt.Sprintf("%v", this.HostPath), "HostPathVolumeSource", "HostPathVolumeSource", 1) + `,`, + `EmptyDir:` + strings.Replace(fmt.Sprintf("%v", this.EmptyDir), "EmptyDirVolumeSource", "EmptyDirVolumeSource", 1) + `,`, + `GCEPersistentDisk:` + strings.Replace(fmt.Sprintf("%v", this.GCEPersistentDisk), "GCEPersistentDiskVolumeSource", "GCEPersistentDiskVolumeSource", 1) + `,`, + `AWSElasticBlockStore:` + strings.Replace(fmt.Sprintf("%v", this.AWSElasticBlockStore), "AWSElasticBlockStoreVolumeSource", "AWSElasticBlockStoreVolumeSource", 1) + `,`, + `GitRepo:` + strings.Replace(fmt.Sprintf("%v", this.GitRepo), "GitRepoVolumeSource", "GitRepoVolumeSource", 1) + `,`, + `Secret:` + strings.Replace(fmt.Sprintf("%v", this.Secret), "SecretVolumeSource", "SecretVolumeSource", 1) + `,`, + `NFS:` + strings.Replace(fmt.Sprintf("%v", this.NFS), "NFSVolumeSource", "NFSVolumeSource", 1) + `,`, + `ISCSI:` + strings.Replace(fmt.Sprintf("%v", this.ISCSI), "ISCSIVolumeSource", "ISCSIVolumeSource", 1) + `,`, + `Glusterfs:` + strings.Replace(fmt.Sprintf("%v", this.Glusterfs), "GlusterfsVolumeSource", "GlusterfsVolumeSource", 1) + `,`, + `PersistentVolumeClaim:` + strings.Replace(fmt.Sprintf("%v", this.PersistentVolumeClaim), "PersistentVolumeClaimVolumeSource", "PersistentVolumeClaimVolumeSource", 1) + `,`, + `RBD:` + strings.Replace(fmt.Sprintf("%v", this.RBD), "RBDVolumeSource", "RBDVolumeSource", 1) + `,`, + `FlexVolume:` + strings.Replace(fmt.Sprintf("%v", this.FlexVolume), "FlexVolumeSource", "FlexVolumeSource", 1) + `,`, + `Cinder:` + strings.Replace(fmt.Sprintf("%v", this.Cinder), "CinderVolumeSource", "CinderVolumeSource", 1) + `,`, + `CephFS:` + strings.Replace(fmt.Sprintf("%v", this.CephFS), "CephFSVolumeSource", "CephFSVolumeSource", 1) + `,`, + `Flocker:` + strings.Replace(fmt.Sprintf("%v", this.Flocker), "FlockerVolumeSource", "FlockerVolumeSource", 1) + `,`, + `DownwardAPI:` + strings.Replace(fmt.Sprintf("%v", this.DownwardAPI), "DownwardAPIVolumeSource", "DownwardAPIVolumeSource", 1) + `,`, + `FC:` + strings.Replace(fmt.Sprintf("%v", this.FC), "FCVolumeSource", "FCVolumeSource", 1) + `,`, + `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) + `,`, + `}`, + }, "") + return s +} +func (this *VsphereVirtualDiskVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VsphereVirtualDiskVolumeSource{`, + `VolumePath:` + fmt.Sprintf("%v", this.VolumePath) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `}`, + }, "") + return s +} +func (this *WeightedPodAffinityTerm) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WeightedPodAffinityTerm{`, + `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, + `PodAffinityTerm:` + strings.Replace(strings.Replace(this.PodAffinityTerm.String(), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + 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 *AWSElasticBlockStoreVolumeSource) 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: AWSElasticBlockStoreVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AWSElasticBlockStoreVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", 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.VolumeID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + } + m.FSType = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) + } + m.Partition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Partition |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + 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) + 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 *Affinity) 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: Affinity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Affinity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinity", 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.NodeAffinity == nil { + m.NodeAffinity = &NodeAffinity{} + } + if err := m.NodeAffinity.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodAffinity", 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.PodAffinity == nil { + m.PodAffinity = &PodAffinity{} + } + if err := m.PodAffinity.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodAntiAffinity", 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.PodAntiAffinity == nil { + m.PodAntiAffinity = &PodAntiAffinity{} + } + if err := m.PodAntiAffinity.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 *AttachedVolume) 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: AttachedVolume: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttachedVolume: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = UniqueVolumeName(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DevicePath", 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.DevicePath = 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 *AvoidPods) 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: AvoidPods: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AvoidPods: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreferAvoidPods", 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.PreferAvoidPods = append(m.PreferAvoidPods, PreferAvoidPodsEntry{}) + if err := m.PreferAvoidPods[len(m.PreferAvoidPods)-1].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 *AzureFileVolumeSource) 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: AzureFileVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AzureFileVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", 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.SecretName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShareName", 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.ShareName = 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) + 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 *Binding) 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: Binding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Binding: 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 Target", 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.Target.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 *Capabilities) 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: Capabilities: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Capabilities: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Add", 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.Add = append(m.Add, Capability(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Drop", 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.Drop = append(m.Drop, Capability(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 *CephFSVolumeSource) 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: CephFSVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CephFSVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Monitors", 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.Monitors = append(m.Monitors, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretFile", 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.SecretFile = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", 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.SecretRef == nil { + m.SecretRef = &LocalObjectReference{} + } + if err := m.SecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + 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) + 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 *CinderVolumeSource) 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: CinderVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CinderVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", 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.VolumeID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + } + m.FSType = 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) + 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 *ComponentCondition) 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: ComponentCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ComponentCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = ComponentConditionType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Status = ConditionStatus(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", 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.Error = 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 *ComponentStatus) 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: ComponentStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ComponentStatus: 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 Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, ComponentCondition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentStatusList) 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: ComponentStatusList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ComponentStatusList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ComponentStatus{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConfigMap) 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: ConfigMap: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigMap: 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 Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Data == nil { + m.Data = make(map[string]string) + } + m.Data[mapkey] = mapvalue + 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 *ConfigMapKeySelector) 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: ConfigMapKeySelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigMapKeySelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", 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.LocalObjectReference.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = 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 *ConfigMapList) 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: ConfigMapList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigMapList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ConfigMap{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConfigMapVolumeSource) 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: ConfigMapVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigMapVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", 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.LocalObjectReference.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, KeyToPath{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Container) 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: Container: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Container: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", 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.Command = append(m.Command, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", 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.Args = append(m.Args, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkingDir", 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.WorkingDir = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", 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.Ports = append(m.Ports, ContainerPort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Env", 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.Env = append(m.Env, EnvVar{}) + if err := m.Env[len(m.Env)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", 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.Resources.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", 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.VolumeMounts = append(m.VolumeMounts, VolumeMount{}) + if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LivenessProbe", 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.LivenessProbe == nil { + m.LivenessProbe = &Probe{} + } + if err := m.LivenessProbe.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadinessProbe", 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.ReadinessProbe == nil { + m.ReadinessProbe = &Probe{} + } + if err := m.ReadinessProbe.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lifecycle", 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.Lifecycle == nil { + m.Lifecycle = &Lifecycle{} + } + if err := m.Lifecycle.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePath", 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.TerminationMessagePath = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullPolicy", 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.ImagePullPolicy = PullPolicy(data[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", 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.SecurityContext == nil { + m.SecurityContext = &SecurityContext{} + } + if err := m.SecurityContext.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdin", 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.Stdin = bool(v != 0) + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StdinOnce", 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.StdinOnce = bool(v != 0) + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTY", 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.TTY = bool(v != 0) + 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 *ContainerImage) 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: ContainerImage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerImage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Names", 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.Names = append(m.Names, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) + } + m.SizeBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.SizeBytes |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *ContainerPort) 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: ContainerPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType) + } + m.HostPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.HostPort |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType) + } + m.ContainerPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ContainerPort |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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.Protocol = Protocol(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostIP", 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.HostIP = 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 *ContainerState) 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: ContainerState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Waiting", 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.Waiting == nil { + m.Waiting = &ContainerStateWaiting{} + } + if err := m.Waiting.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Running", 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.Running == nil { + m.Running = &ContainerStateRunning{} + } + if err := m.Running.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Terminated", 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.Terminated == nil { + m.Terminated = &ContainerStateTerminated{} + } + if err := m.Terminated.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 *ContainerStateRunning) 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: ContainerStateRunning: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerStateRunning: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", 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.StartedAt.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 *ContainerStateTerminated) 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: ContainerStateTerminated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerStateTerminated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) + } + m.ExitCode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ExitCode |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) + } + m.Signal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Signal |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", 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.StartedAt.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinishedAt", 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.FinishedAt.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", 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.ContainerID = 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 *ContainerStateWaiting) 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: ContainerStateWaiting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerStateWaiting: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = 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 *ContainerStatus) 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: ContainerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", 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.State.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTerminationState", 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.LastTerminationState.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ready", 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.Ready = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType) + } + m.RestartCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.RestartCount |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + 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 + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageID", 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.ImageID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", 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.ContainerID = 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 *DaemonEndpoint) 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: DaemonEndpoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaemonEndpoint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Port |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *DeleteOptions) 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: DeleteOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GracePeriodSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.GracePeriodSeconds = &v + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Preconditions", 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.Preconditions == nil { + m.Preconditions = &Preconditions{} + } + if err := m.Preconditions.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OrphanDependents", 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.OrphanDependents = &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 *DownwardAPIVolumeFile) 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: DownwardAPIVolumeFile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DownwardAPIVolumeFile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", 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.FieldRef == nil { + m.FieldRef = &ObjectFieldSelector{} + } + if err := m.FieldRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceFieldRef", 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.ResourceFieldRef == nil { + m.ResourceFieldRef = &ResourceFieldSelector{} + } + if err := m.ResourceFieldRef.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 *DownwardAPIVolumeSource) 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: DownwardAPIVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DownwardAPIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, DownwardAPIVolumeFile{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EmptyDirVolumeSource) 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: EmptyDirVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EmptyDirVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Medium", 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.Medium = StorageMedium(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 *EndpointAddress) 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: EndpointAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EndpointAddress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IP", 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.IP = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", 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.TargetRef == nil { + m.TargetRef = &ObjectReference{} + } + if err := m.TargetRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", 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.Hostname = 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 *EndpointPort) 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: EndpointPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EndpointPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Port |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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.Protocol = Protocol(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 *EndpointSubset) 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: EndpointSubset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EndpointSubset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", 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.Addresses = append(m.Addresses, EndpointAddress{}) + if err := m.Addresses[len(m.Addresses)-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 NotReadyAddresses", 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.NotReadyAddresses = append(m.NotReadyAddresses, EndpointAddress{}) + if err := m.NotReadyAddresses[len(m.NotReadyAddresses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", 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.Ports = append(m.Ports, EndpointPort{}) + if err := m.Ports[len(m.Ports)-1].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 *Endpoints) 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: Endpoints: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Endpoints: 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 Subsets", 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.Subsets = append(m.Subsets, EndpointSubset{}) + if err := m.Subsets[len(m.Subsets)-1].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 *EndpointsList) 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: EndpointsList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EndpointsList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Endpoints{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EnvVar) 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: EnvVar: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EnvVar: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueFrom", 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.ValueFrom == nil { + m.ValueFrom = &EnvVarSource{} + } + if err := m.ValueFrom.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 *EnvVarSource) 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: EnvVarSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EnvVarSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", 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.FieldRef == nil { + m.FieldRef = &ObjectFieldSelector{} + } + if err := m.FieldRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceFieldRef", 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.ResourceFieldRef == nil { + m.ResourceFieldRef = &ResourceFieldSelector{} + } + if err := m.ResourceFieldRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapKeyRef", 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.ConfigMapKeyRef == nil { + m.ConfigMapKeyRef = &ConfigMapKeySelector{} + } + if err := m.ConfigMapKeyRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretKeyRef", 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.SecretKeyRef == nil { + m.SecretKeyRef = &SecretKeySelector{} + } + if err := m.SecretKeyRef.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 *Event) 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: Event: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Event: 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 InvolvedObject", 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.InvolvedObject.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstTimestamp", 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.FirstTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTimestamp", 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.LastTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Count |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = 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 *EventList) 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: EventList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Event{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventSource) 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: EventSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Component", 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.Component = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host = 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 *ExecAction) 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: ExecAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", 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.Command = append(m.Command, 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 *ExportOptions) 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: ExportOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExportOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Export", 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.Export = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Exact", 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.Exact = bool(v != 0) + 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 *FCVolumeSource) 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: FCVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FCVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetWWNs", 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.TargetWWNs = append(m.TargetWWNs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lun", 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.Lun = &v + case 3: + 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 + } + m.FSType = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + 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) + 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 *FlexVolumeSource) 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: FlexVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlexVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", 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.Driver = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + } + m.FSType = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", 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.SecretRef == nil { + m.SecretRef = &LocalObjectReference{} + } + if err := m.SecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", 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.Options == nil { + m.Options = make(map[string]string) + } + m.Options[mapkey] = mapvalue + 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 *FlockerVolumeSource) 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: FlockerVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlockerVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatasetName", 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.DatasetName = 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 *GCEPersistentDiskVolumeSource) 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: GCEPersistentDiskVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GCEPersistentDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PDName", 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.PDName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + } + m.FSType = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) + } + m.Partition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Partition |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + 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) + 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 *GitRepoVolumeSource) 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: GitRepoVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GitRepoVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Repository", 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.Repository = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", 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.Revision = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Directory", 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.Directory = 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 *GlusterfsVolumeSource) 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: GlusterfsVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GlusterfsVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndpointsName", 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.EndpointsName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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) + 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 *HTTPGetAction) 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: HTTPGetAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPGetAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", 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.Port.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scheme", 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.Scheme = URIScheme(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTPHeaders", 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.HTTPHeaders = append(m.HTTPHeaders, HTTPHeader{}) + if err := m.HTTPHeaders[len(m.HTTPHeaders)-1].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 *HTTPHeader) 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: HTTPHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPHeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = 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 *Handler) 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: Handler: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Handler: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Exec", 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.Exec == nil { + m.Exec = &ExecAction{} + } + if err := m.Exec.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTPGet", 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.HTTPGet == nil { + m.HTTPGet = &HTTPGetAction{} + } + if err := m.HTTPGet.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TCPSocket", 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.TCPSocket == nil { + m.TCPSocket = &TCPSocketAction{} + } + if err := m.TCPSocket.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 *HostPathVolumeSource) 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: HostPathVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostPathVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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 *ISCSIVolumeSource) 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: ISCSIVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ISCSIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetPortal", 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.TargetPortal = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IQN", 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.IQN = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lun", wireType) + } + m.Lun = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Lun |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ISCSIInterface", 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.ISCSIInterface = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 + } + m.FSType = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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) + 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 *KeyToPath) 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: KeyToPath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KeyToPath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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 *Lifecycle) 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: Lifecycle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Lifecycle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PostStart", 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.PostStart == nil { + m.PostStart = &Handler{} + } + if err := m.PostStart.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreStop", 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.PreStop == nil { + m.PreStop = &Handler{} + } + if err := m.PreStop.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 *LimitRange) 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: LimitRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitRange: 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 + 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 *LimitRangeItem) 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: LimitRangeItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitRangeItem: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = LimitType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Max", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Max == nil { + m.Max = make(ResourceList) + } + m.Max[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Min", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Min == nil { + m.Min = make(ResourceList) + } + m.Min[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Default", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Default == nil { + m.Default = make(ResourceList) + } + m.Default[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultRequest", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.DefaultRequest == nil { + m.DefaultRequest = make(ResourceList) + } + m.DefaultRequest[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxLimitRequestRatio", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.MaxLimitRequestRatio == nil { + m.MaxLimitRequestRatio = make(ResourceList) + } + m.MaxLimitRequestRatio[ResourceName(mapkey)] = *mapvalue + 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 *LimitRangeList) 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: LimitRangeList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitRangeList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, LimitRange{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LimitRangeSpec) 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: LimitRangeSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitRangeSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Limits", 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.Limits = append(m.Limits, LimitRangeItem{}) + if err := m.Limits[len(m.Limits)-1].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 *List) 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: List: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, k8s_io_kubernetes_pkg_runtime.RawExtension{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListOptions) 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: ListOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", 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.LabelSelector = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldSelector", 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.FieldSelector = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Watch", 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.Watch = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TimeoutSeconds = &v + 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 *LoadBalancerIngress) 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: LoadBalancerIngress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LoadBalancerIngress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IP", 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.IP = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", 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.Hostname = 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 *LoadBalancerStatus) 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: LoadBalancerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LoadBalancerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", 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.Ingress = append(m.Ingress, LoadBalancerIngress{}) + if err := m.Ingress[len(m.Ingress)-1].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 *LocalObjectReference) 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: LocalObjectReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocalObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = 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 *NFSVolumeSource) 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: NFSVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFSVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", 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.Server = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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) + 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 *Namespace) 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: Namespace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Namespace: 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 *NamespaceList) 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: NamespaceList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NamespaceList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Namespace{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NamespaceSpec) 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: NamespaceSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NamespaceSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", 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.Finalizers = append(m.Finalizers, FinalizerName(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 *NamespaceStatus) 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: NamespaceStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NamespaceStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = NamespacePhase(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 *Node) 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: Node: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Node: 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 *NodeAddress) 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: NodeAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeAddress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = NodeAddressType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = 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 *NodeAffinity) 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: NodeAffinity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeAffinity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", 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.RequiredDuringSchedulingIgnoredDuringExecution == nil { + m.RequiredDuringSchedulingIgnoredDuringExecution = &NodeSelector{} + } + if err := m.RequiredDuringSchedulingIgnoredDuringExecution.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreferredDuringSchedulingIgnoredDuringExecution", 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.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, PreferredSchedulingTerm{}) + if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].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 *NodeCondition) 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: NodeCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = NodeConditionType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Status = ConditionStatus(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeatTime", 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.LastHeartbeatTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.LastTransitionTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + 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 + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = 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 *NodeDaemonEndpoints) 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: NodeDaemonEndpoints: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeDaemonEndpoints: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KubeletEndpoint", 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.KubeletEndpoint.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 *NodeList) 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: NodeList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Node{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeProxyOptions) 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: NodeProxyOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeProxyOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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 *NodeSelector) 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: NodeSelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeSelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelectorTerms", 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.NodeSelectorTerms = append(m.NodeSelectorTerms, NodeSelectorTerm{}) + if err := m.NodeSelectorTerms[len(m.NodeSelectorTerms)-1].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 *NodeSelectorRequirement) 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: NodeSelectorRequirement: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = NodeSelectorOperator(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", 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.Values = append(m.Values, 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 *NodeSelectorTerm) 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: NodeSelectorTerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeSelectorTerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", 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.MatchExpressions = append(m.MatchExpressions, NodeSelectorRequirement{}) + if err := m.MatchExpressions[len(m.MatchExpressions)-1].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 *NodeSpec) 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: NodeSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodCIDR", 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.PodCIDR = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalID", 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.ExternalID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderID", 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.ProviderID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Unschedulable", 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.Unschedulable = bool(v != 0) + 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 *NodeStatus) 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: NodeStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Capacity == nil { + m.Capacity = make(ResourceList) + } + m.Capacity[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocatable", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Allocatable == nil { + m.Allocatable = make(ResourceList) + } + m.Allocatable[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = NodePhase(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, NodeCondition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", 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.Addresses = append(m.Addresses, NodeAddress{}) + if err := m.Addresses[len(m.Addresses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DaemonEndpoints", 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.DaemonEndpoints.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", 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.NodeInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Images", 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.Images = append(m.Images, ContainerImage{}) + if err := m.Images[len(m.Images)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumesInUse", 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.VolumesInUse = append(m.VolumesInUse, UniqueVolumeName(data[iNdEx:postIndex])) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumesAttached", 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.VolumesAttached = append(m.VolumesAttached, AttachedVolume{}) + if err := m.VolumesAttached[len(m.VolumesAttached)-1].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 *NodeSystemInfo) 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: NodeSystemInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeSystemInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MachineID", 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.MachineID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemUUID", 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.SystemUUID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BootID", 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.BootID = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", 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.KernelVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OSImage", 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.OSImage = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerRuntimeVersion", 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.ContainerRuntimeVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KubeletVersion", 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.KubeletVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KubeProxyVersion", 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.KubeProxyVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatingSystem", 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.OperatingSystem = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Architecture", 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.Architecture = 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 *ObjectFieldSelector) 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: ObjectFieldSelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectFieldSelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", 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.APIVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldPath", 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.FieldPath = 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 *ObjectMeta) 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: ObjectMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenerateName", 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.GenerateName = string(data[iNdEx:postIndex]) + 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SelfLink", 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.SelfLink = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", 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.UID = k8s_io_kubernetes_pkg_types.UID(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) + } + m.Generation = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Generation |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreationTimestamp", 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.CreationTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletionTimestamp", 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.DeletionTimestamp == nil { + m.DeletionTimestamp = &k8s_io_kubernetes_pkg_api_unversioned.Time{} + } + if err := m.DeletionTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletionGracePeriodSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.DeletionGracePeriodSeconds = &v + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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.Labels == nil { + m.Labels = make(map[string]string) + } + m.Labels[mapkey] = mapvalue + iNdEx = postIndex + case 12: + 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 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerReferences", 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.OwnerReferences = append(m.OwnerReferences, OwnerReference{}) + if err := m.OwnerReferences[len(m.OwnerReferences)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", 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.Finalizers = append(m.Finalizers, 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 *ObjectReference) 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: ObjectReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", 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.UID = k8s_io_kubernetes_pkg_types.UID(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", 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.APIVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldPath", 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.FieldPath = 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 *OwnerReference) 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: OwnerReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnerReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", 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.UID = k8s_io_kubernetes_pkg_types.UID(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", 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.APIVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Controller", 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.Controller = &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 *PersistentVolume) 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: PersistentVolume: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolume: 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 *PersistentVolumeClaim) 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: PersistentVolumeClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaim: 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 *PersistentVolumeClaimList) 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: PersistentVolumeClaimList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, PersistentVolumeClaim{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PersistentVolumeClaimSpec) 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: PersistentVolumeClaimSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", 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.AccessModes = append(m.AccessModes, PersistentVolumeAccessMode(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", 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.Resources.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", 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.VolumeName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Selector == nil { + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} + } + if err := m.Selector.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 *PersistentVolumeClaimStatus) 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: PersistentVolumeClaimStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = PersistentVolumeClaimPhase(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", 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.AccessModes = append(m.AccessModes, PersistentVolumeAccessMode(data[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Capacity == nil { + m.Capacity = make(ResourceList) + } + m.Capacity[ResourceName(mapkey)] = *mapvalue + 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 *PersistentVolumeClaimVolumeSource) 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: PersistentVolumeClaimVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimName", 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.ClaimName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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) + 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 *PersistentVolumeList) 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: PersistentVolumeList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, PersistentVolume{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PersistentVolumeSource) 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: PersistentVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GCEPersistentDisk", 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.GCEPersistentDisk == nil { + m.GCEPersistentDisk = &GCEPersistentDiskVolumeSource{} + } + if err := m.GCEPersistentDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AWSElasticBlockStore", 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.AWSElasticBlockStore == nil { + m.AWSElasticBlockStore = &AWSElasticBlockStoreVolumeSource{} + } + if err := m.AWSElasticBlockStore.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostPath", 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.HostPath == nil { + m.HostPath = &HostPathVolumeSource{} + } + if err := m.HostPath.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Glusterfs", 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.Glusterfs == nil { + m.Glusterfs = &GlusterfsVolumeSource{} + } + if err := m.Glusterfs.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NFS", 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.NFS == nil { + m.NFS = &NFSVolumeSource{} + } + if err := m.NFS.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RBD", 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.RBD == nil { + m.RBD = &RBDVolumeSource{} + } + if err := m.RBD.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ISCSI", 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.ISCSI == nil { + m.ISCSI = &ISCSIVolumeSource{} + } + if err := m.ISCSI.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cinder", 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.Cinder == nil { + m.Cinder = &CinderVolumeSource{} + } + if err := m.Cinder.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CephFS", 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.CephFS == nil { + m.CephFS = &CephFSVolumeSource{} + } + if err := m.CephFS.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FC", 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.FC == nil { + m.FC = &FCVolumeSource{} + } + if err := m.FC.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flocker", 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.Flocker == nil { + m.Flocker = &FlockerVolumeSource{} + } + if err := m.Flocker.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlexVolume", 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.FlexVolume == nil { + m.FlexVolume = &FlexVolumeSource{} + } + if err := m.FlexVolume.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", 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.AzureFile == nil { + m.AzureFile = &AzureFileVolumeSource{} + } + if err := m.AzureFile.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VsphereVolume", 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.VsphereVolume == nil { + m.VsphereVolume = &VsphereVirtualDiskVolumeSource{} + } + if err := m.VsphereVolume.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 *PersistentVolumeSpec) 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: PersistentVolumeSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Capacity == nil { + m.Capacity = make(ResourceList) + } + m.Capacity[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeSource", 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.PersistentVolumeSource.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", 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.AccessModes = append(m.AccessModes, PersistentVolumeAccessMode(data[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimRef", 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.ClaimRef == nil { + m.ClaimRef = &ObjectReference{} + } + if err := m.ClaimRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeReclaimPolicy", 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.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(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 *PersistentVolumeStatus) 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: PersistentVolumeStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = PersistentVolumePhase(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 (m *Pod) 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: Pod: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Pod: 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 *PodAffinity) 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: PodAffinity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodAffinity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", 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.RequiredDuringSchedulingIgnoredDuringExecution = append(m.RequiredDuringSchedulingIgnoredDuringExecution, PodAffinityTerm{}) + if err := m.RequiredDuringSchedulingIgnoredDuringExecution[len(m.RequiredDuringSchedulingIgnoredDuringExecution)-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 PreferredDuringSchedulingIgnoredDuringExecution", 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.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, WeightedPodAffinityTerm{}) + if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].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 *PodAffinityTerm) 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: PodAffinityTerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodAffinityTerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", 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.LabelSelector == nil { + m.LabelSelector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} + } + if err := m.LabelSelector.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", 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.Namespaces = append(m.Namespaces, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopologyKey", 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.TopologyKey = 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 *PodAntiAffinity) 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: PodAntiAffinity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodAntiAffinity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", 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.RequiredDuringSchedulingIgnoredDuringExecution = append(m.RequiredDuringSchedulingIgnoredDuringExecution, PodAffinityTerm{}) + if err := m.RequiredDuringSchedulingIgnoredDuringExecution[len(m.RequiredDuringSchedulingIgnoredDuringExecution)-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 PreferredDuringSchedulingIgnoredDuringExecution", 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.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, WeightedPodAffinityTerm{}) + if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].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 *PodAttachOptions) 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: PodAttachOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodAttachOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdin", 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.Stdin = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdout", 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.Stdout = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stderr", 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.Stderr = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTY", 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.TTY = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", 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.Container = 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 *PodCondition) 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: PodCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = PodConditionType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Status = ConditionStatus(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", 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.LastProbeTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.LastTransitionTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + 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 + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = 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 *PodExecOptions) 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: PodExecOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodExecOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdin", 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.Stdin = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdout", 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.Stdout = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stderr", 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.Stderr = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTY", 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.TTY = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", 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.Container = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", 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.Command = append(m.Command, 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 *PodList) 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: PodList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Pod{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodLogOptions) 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: PodLogOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodLogOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", 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.Container = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Follow", 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.Follow = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Previous", 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.Previous = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SinceSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.SinceSeconds = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SinceTime", 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.SinceTime == nil { + m.SinceTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{} + } + if err := m.SinceTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamps", 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.Timestamps = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TailLines", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TailLines = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitBytes", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.LimitBytes = &v + 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 *PodProxyOptions) 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: PodProxyOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodProxyOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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 *PodSecurityContext) 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: PodSecurityContext: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodSecurityContext: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", 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.SELinuxOptions == nil { + m.SELinuxOptions = &SELinuxOptions{} + } + if err := m.SELinuxOptions.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.RunAsUser = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RunAsNonRoot", 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.RunAsNonRoot = &b + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.SupplementalGroups = append(m.SupplementalGroups, v) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.FSGroup = &v + 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 *PodSignature) 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: PodSignature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodSignature: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodController", 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.PodController == nil { + m.PodController = &OwnerReference{} + } + if err := m.PodController.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 *PodSpec) 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: PodSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volumes", 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.Volumes = append(m.Volumes, Volume{}) + if err := m.Volumes[len(m.Volumes)-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 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, Container{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", 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.RestartPolicy = RestartPolicy(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminationGracePeriodSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TerminationGracePeriodSeconds = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveDeadlineSeconds = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNSPolicy", 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.DNSPolicy = DNSPolicy(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", 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.NodeSelector == nil { + m.NodeSelector = make(map[string]string) + } + m.NodeSelector[mapkey] = mapvalue + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", 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.ServiceAccountName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedServiceAccount", 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.DeprecatedServiceAccount = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", 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.NodeName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", 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.HostNetwork = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostPID", 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.HostPID = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", 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.HostIPC = bool(v != 0) + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", 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.SecurityContext == nil { + m.SecurityContext = &PodSecurityContext{} + } + if err := m.SecurityContext.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", 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.ImagePullSecrets = append(m.ImagePullSecrets, LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", 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.Hostname = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subdomain", 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.Subdomain = 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 *PodStatus) 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: PodStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = PodPhase(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, PodCondition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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 + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostIP", 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.HostIP = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodIP", 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.PodIP = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", 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.StartTime == nil { + m.StartTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{} + } + if err := m.StartTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerStatuses", 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.ContainerStatuses = append(m.ContainerStatuses, ContainerStatus{}) + if err := m.ContainerStatuses[len(m.ContainerStatuses)-1].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 *PodStatusResult) 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: PodStatusResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodStatusResult: 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 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 *PodTemplate) 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: PodTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodTemplate: 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 Template", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Template.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 *PodTemplateList) 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: PodTemplateList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodTemplateList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, PodTemplate{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodTemplateSpec) 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: PodTemplateSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodTemplateSpec: 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 + 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 *Preconditions) 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: Preconditions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Preconditions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", 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 := k8s_io_kubernetes_pkg_types.UID(data[iNdEx:postIndex]) + m.UID = &s + 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 *PreferAvoidPodsEntry) 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: PreferAvoidPodsEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PreferAvoidPodsEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSignature", 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.PodSignature.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvictionTime", 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.EvictionTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Message = 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 *PreferredSchedulingTerm) 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: PreferredSchedulingTerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PreferredSchedulingTerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Weight |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Preference", 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.Preference.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 *Probe) 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: Probe: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Probe: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Handler", 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.Handler.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialDelaySeconds", wireType) + } + m.InitialDelaySeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.InitialDelaySeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) + } + m.TimeoutSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.TimeoutSeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeriodSeconds", wireType) + } + m.PeriodSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.PeriodSeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuccessThreshold", wireType) + } + m.SuccessThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.SuccessThreshold |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailureThreshold", wireType) + } + m.FailureThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.FailureThreshold |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 + 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: RBDVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RBDVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CephMonitors", 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.CephMonitors = append(m.CephMonitors, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RBDImage", 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.RBDImage = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 + } + m.FSType = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RBDPool", 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.RBDPool = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RadosUser", 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.RadosUser = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyring", 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.Keyring = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", 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.SecretRef == nil { + m.SecretRef = &LocalObjectReference{} + } + if err := m.SecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + 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) + 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 *RangeAllocation) 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: RangeAllocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RangeAllocation: 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 Range", 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.Range = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], data[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + 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 *ReplicationController) 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: ReplicationController: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationController: 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 *ReplicationControllerList) 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: ReplicationControllerList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationControllerList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ReplicationController{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReplicationControllerSpec) 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: ReplicationControllerSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationControllerSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Replicas = &v + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Selector == nil { + m.Selector = make(map[string]string) + } + m.Selector[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Template == nil { + m.Template = &PodTemplateSpec{} + } + if err := m.Template.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 *ReplicationControllerStatus) 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: ReplicationControllerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationControllerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + m.Replicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Replicas |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) + } + m.FullyLabeledReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.FullyLabeledReplicas |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + } + m.ObservedGeneration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ObservedGeneration |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *ResourceFieldSelector) 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: ResourceFieldSelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceFieldSelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", 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.ContainerName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", 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.Resource = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Divisor", 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.Divisor.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 *ResourceQuota) 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: ResourceQuota: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceQuota: 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 *ResourceQuotaList) 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: ResourceQuotaList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceQuotaList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ResourceQuota{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceQuotaSpec) 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: ResourceQuotaSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceQuotaSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hard", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Hard == nil { + m.Hard = make(ResourceList) + } + m.Hard[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scopes", 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.Scopes = append(m.Scopes, ResourceQuotaScope(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 *ResourceQuotaStatus) 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: ResourceQuotaStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceQuotaStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hard", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Hard == nil { + m.Hard = make(ResourceList) + } + m.Hard[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Used", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Used == nil { + m.Used = make(ResourceList) + } + m.Used[ResourceName(mapkey)] = *mapvalue + 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 *ResourceRequirements) 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: ResourceRequirements: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceRequirements: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Limits", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Limits == nil { + m.Limits = make(ResourceList) + } + m.Limits[ResourceName(mapkey)] = *mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", 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 := ResourceName(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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := &k8s_io_kubernetes_pkg_api_resource.Quantity{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.Requests == nil { + m.Requests = make(ResourceList) + } + m.Requests[ResourceName(mapkey)] = *mapvalue + 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 *SELinuxOptions) 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: SELinuxOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SELinuxOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", 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.Role = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", 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.Level = 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 *Secret) 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: Secret: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Secret: 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 Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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 mapbyteLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + mapbyteLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intMapbyteLen := int(mapbyteLen) + if intMapbyteLen < 0 { + return ErrInvalidLengthGenerated + } + postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue := make([]byte, mapbyteLen) + copy(mapvalue, data[iNdEx:postbytesIndex]) + iNdEx = postbytesIndex + if m.Data == nil { + m.Data = make(map[string][]byte) + } + m.Data[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = SecretType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringData", 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.StringData == nil { + m.StringData = make(map[string]string) + } + m.StringData[mapkey] = mapvalue + 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 *SecretKeySelector) 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: SecretKeySelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecretKeySelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", 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.LocalObjectReference.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = 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 *SecretList) 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: SecretList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecretList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Secret{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SecretVolumeSource) 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: SecretVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecretVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", 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.SecretName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, KeyToPath{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SecurityContext) 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: SecurityContext: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecurityContext: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", 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.Capabilities == nil { + m.Capabilities = &Capabilities{} + } + if err := m.Capabilities.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Privileged", 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.Privileged = &b + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", 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.SELinuxOptions == nil { + m.SELinuxOptions = &SELinuxOptions{} + } + if err := m.SELinuxOptions.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.RunAsUser = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RunAsNonRoot", 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.RunAsNonRoot = &b + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", 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.ReadOnlyRootFilesystem = &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 *SerializedReference) 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: SerializedReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SerializedReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reference", 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.Reference.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 *Service) 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: Service: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Service: 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 *ServiceAccount) 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: ServiceAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceAccount: 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 Secrets", 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.Secrets = append(m.Secrets, ObjectReference{}) + if err := m.Secrets[len(m.Secrets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", 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.ImagePullSecrets = append(m.ImagePullSecrets, LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].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 *ServiceAccountList) 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: ServiceAccountList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceAccountList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ServiceAccount{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceList) 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: ServiceList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Service{}) + if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServicePort) 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: ServicePort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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.Protocol = Protocol(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Port |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetPort", 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.TargetPort.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodePort", wireType) + } + m.NodePort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.NodePort |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + 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 *ServiceProxyOptions) 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: ServiceProxyOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceProxyOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = 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 *ServiceSpec) 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: ServiceSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", 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.Ports = append(m.Ports, ServicePort{}) + if err := m.Ports[len(m.Ports)-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 Selector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Selector == nil { + m.Selector = make(map[string]string) + } + m.Selector[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIP", 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.ClusterIP = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = ServiceType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalIPs", 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.ExternalIPs = append(m.ExternalIPs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedPublicIPs", 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.DeprecatedPublicIPs = append(m.DeprecatedPublicIPs, string(data[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinity", 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.SessionAffinity = ServiceAffinity(data[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIP", 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.LoadBalancerIP = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerSourceRanges", 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.LoadBalancerSourceRanges = append(m.LoadBalancerSourceRanges, 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 *ServiceStatus) 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: ServiceStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", 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.LoadBalancer.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 *TCPSocketAction) 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: TCPSocketAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TCPSocketAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", 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.Port.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 *Taint) 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: Taint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Taint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Effect", 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.Effect = TaintEffect(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 *Toleration) 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: Toleration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Toleration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = TolerationOperator(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Effect", 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.Effect = TaintEffect(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 *Volume) 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: Volume: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Volume: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeSource", 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.VolumeSource.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 *VolumeMount) 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: VolumeMount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VolumeMount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MountPath", 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.MountPath = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubPath", 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.SubPath = 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 *VolumeSource) 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: VolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostPath", 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.HostPath == nil { + m.HostPath = &HostPathVolumeSource{} + } + if err := m.HostPath.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EmptyDir", 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.EmptyDir == nil { + m.EmptyDir = &EmptyDirVolumeSource{} + } + if err := m.EmptyDir.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GCEPersistentDisk", 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.GCEPersistentDisk == nil { + m.GCEPersistentDisk = &GCEPersistentDiskVolumeSource{} + } + if err := m.GCEPersistentDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AWSElasticBlockStore", 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.AWSElasticBlockStore == nil { + m.AWSElasticBlockStore = &AWSElasticBlockStoreVolumeSource{} + } + if err := m.AWSElasticBlockStore.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GitRepo", 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.GitRepo == nil { + m.GitRepo = &GitRepoVolumeSource{} + } + if err := m.GitRepo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Secret", 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.Secret == nil { + m.Secret = &SecretVolumeSource{} + } + if err := m.Secret.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NFS", 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.NFS == nil { + m.NFS = &NFSVolumeSource{} + } + if err := m.NFS.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ISCSI", 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.ISCSI == nil { + m.ISCSI = &ISCSIVolumeSource{} + } + if err := m.ISCSI.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Glusterfs", 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.Glusterfs == nil { + m.Glusterfs = &GlusterfsVolumeSource{} + } + if err := m.Glusterfs.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaim", 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.PersistentVolumeClaim == nil { + m.PersistentVolumeClaim = &PersistentVolumeClaimVolumeSource{} + } + if err := m.PersistentVolumeClaim.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RBD", 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.RBD == nil { + m.RBD = &RBDVolumeSource{} + } + if err := m.RBD.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlexVolume", 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.FlexVolume == nil { + m.FlexVolume = &FlexVolumeSource{} + } + if err := m.FlexVolume.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cinder", 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.Cinder == nil { + m.Cinder = &CinderVolumeSource{} + } + if err := m.Cinder.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CephFS", 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.CephFS == nil { + m.CephFS = &CephFSVolumeSource{} + } + if err := m.CephFS.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flocker", 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.Flocker == nil { + m.Flocker = &FlockerVolumeSource{} + } + if err := m.Flocker.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DownwardAPI", 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.DownwardAPI == nil { + m.DownwardAPI = &DownwardAPIVolumeSource{} + } + if err := m.DownwardAPI.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FC", 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.FC == nil { + m.FC = &FCVolumeSource{} + } + if err := m.FC.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", 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.AzureFile == nil { + m.AzureFile = &AzureFileVolumeSource{} + } + if err := m.AzureFile.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", 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.ConfigMap == nil { + m.ConfigMap = &ConfigMapVolumeSource{} + } + if err := m.ConfigMap.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VsphereVolume", 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.VsphereVolume == nil { + m.VsphereVolume = &VsphereVirtualDiskVolumeSource{} + } + if err := m.VsphereVolume.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 *VsphereVirtualDiskVolumeSource) 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: VsphereVirtualDiskVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VsphereVirtualDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumePath", 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.VolumePath = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 + } + m.FSType = 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 *WeightedPodAffinityTerm) 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: WeightedPodAffinityTerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WeightedPodAffinityTerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Weight |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodAffinityTerm", 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.PodAffinityTerm.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 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{ + // 9454 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, 0x21, 0x89, 0x10, 0x42, 0xe2, + 0x07, 0x12, 0xbf, 0xb0, 0x22, 0xe0, 0x9e, 0xfb, 0x7d, 0x5f, 0xbd, 0xea, 0xf7, 0xaa, 0x3d, 0xd5, + 0x4c, 0x56, 0xfc, 0x68, 0xa9, 0xeb, 0xdc, 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, 0x87, 0x3f, 0x7c, 0x72, 0xea, 0xb6, 0x80, 0x83, 0xc2, 0x70, 0x9e, 0x23, 0x13, 0xbb, 0xf1, + 0xf6, 0x51, 0xd7, 0x5f, 0x2c, 0x33, 0xdc, 0x39, 0x81, 0x3b, 0xb1, 0xd1, 0x40, 0x28, 0x88, 0x52, + 0xe7, 0x12, 0xa9, 0x76, 0xbd, 0x28, 0x09, 0x12, 0x3a, 0xf6, 0xc5, 0x0a, 0x45, 0x1d, 0x5f, 0x3d, + 0x23, 0x50, 0xab, 0x75, 0x59, 0x00, 0x1a, 0x07, 0xbb, 0x11, 0xf9, 0x5e, 0xeb, 0x56, 0xa7, 0x7d, + 0xb4, 0x38, 0x46, 0xf1, 0xa7, 0x74, 0x37, 0x40, 0xc0, 0x41, 0x61, 0xb8, 0x1f, 0x96, 0xc9, 0xd4, + 0xca, 0xee, 0x6e, 0xd0, 0x09, 0x92, 0x23, 0xe7, 0x3d, 0x32, 0xd3, 0x09, 0x5b, 0xbe, 0xfc, 0xcd, + 0x46, 0x31, 0x7d, 0xe5, 0xc2, 0xf2, 0x71, 0x7c, 0xb1, 0x7c, 0xd3, 0xa8, 0xb1, 0xba, 0x40, 0x9b, + 0x99, 0x31, 0x21, 0x60, 0x51, 0x74, 0xde, 0x25, 0xd3, 0xdd, 0xb0, 0xa5, 0x1a, 0x28, 0xb3, 0x06, + 0x5e, 0x38, 0xbe, 0x81, 0xba, 0xae, 0xb0, 0x3a, 0x4f, 0xe9, 0x4f, 0x1b, 0x00, 0x30, 0xc9, 0x39, + 0x6d, 0x32, 0x8f, 0x3f, 0xe9, 0x67, 0x57, 0x2d, 0x54, 0x58, 0x0b, 0x17, 0xf3, 0x5b, 0x30, 0x2a, + 0xad, 0x9e, 0xa5, 0xad, 0xcc, 0xa7, 0x80, 0x90, 0x26, 0xed, 0x7e, 0x40, 0xe6, 0x56, 0x92, 0xc4, + 0x6b, 0xee, 0xfb, 0x2d, 0xfe, 0x7d, 0x9d, 0x57, 0xc9, 0x58, 0xc7, 0x3b, 0xf0, 0xc5, 0xd7, 0x7f, + 0x4a, 0x4c, 0xfb, 0xd8, 0x4d, 0x0a, 0xfb, 0xf8, 0x87, 0x4f, 0x2e, 0xbc, 0xd3, 0x09, 0xde, 0xef, + 0x09, 0x9e, 0x41, 0x18, 0x30, 0x6c, 0xe7, 0x0a, 0x21, 0x2d, 0xff, 0x30, 0x68, 0xfa, 0x75, 0x2f, + 0xd9, 0x17, 0xdc, 0xe0, 0x88, 0xba, 0xa4, 0xa6, 0x4a, 0xc0, 0xc0, 0x72, 0x7f, 0xa6, 0x44, 0xaa, + 0x2b, 0x87, 0x61, 0xd0, 0xa2, 0xbd, 0x8c, 0x9d, 0x1e, 0x1d, 0x77, 0xe4, 0xef, 0xfa, 0x91, 0x02, + 0xd1, 0x2e, 0x54, 0xe8, 0xb8, 0xaf, 0xe4, 0x8c, 0xdb, 0xae, 0xb4, 0xde, 0x49, 0xa2, 0xa3, 0xd5, + 0x47, 0x45, 0xd3, 0xf3, 0xa9, 0x52, 0x48, 0xb7, 0xe1, 0xfe, 0x83, 0x12, 0x39, 0xbf, 0xf2, 0x41, + 0x2f, 0xf2, 0x37, 0x82, 0xb6, 0xbd, 0x14, 0xe8, 0x90, 0x62, 0xbf, 0x19, 0xf9, 0xc9, 0x4d, 0x3d, + 0x1d, 0x6a, 0x48, 0x0d, 0x55, 0x02, 0x06, 0x16, 0x32, 0x7a, 0xbc, 0xef, 0x45, 0x6c, 0x66, 0xc4, + 0x2c, 0x28, 0x46, 0x6f, 0xc8, 0x02, 0xd0, 0x38, 0x16, 0xa3, 0x57, 0x72, 0x19, 0xfd, 0x9f, 0x95, + 0xc8, 0xe4, 0x6a, 0xd0, 0x69, 0x05, 0x9d, 0x3d, 0xe7, 0x2b, 0x64, 0xea, 0xc0, 0x4f, 0xbc, 0x96, + 0x97, 0x78, 0x82, 0xc7, 0x9f, 0x3f, 0x7e, 0xa2, 0x6e, 0xed, 0x7c, 0xc3, 0x6f, 0x26, 0x37, 0x68, + 0x1d, 0x3d, 0x0c, 0x0d, 0x03, 0x45, 0xcd, 0x79, 0x87, 0x4c, 0x24, 0x5e, 0xb4, 0xe7, 0x27, 0x82, + 0xb5, 0x2f, 0x16, 0xa1, 0x0b, 0x38, 0xad, 0x7e, 0xa7, 0xe9, 0x6b, 0x21, 0xb0, 0xcd, 0x88, 0x80, + 0x20, 0xe6, 0x36, 0xc9, 0xcc, 0x9a, 0xd7, 0xf5, 0x76, 0x82, 0x36, 0x5d, 0xe3, 0x7e, 0xec, 0x7c, + 0x8e, 0x54, 0xbc, 0x56, 0x8b, 0x7d, 0xe4, 0xea, 0xea, 0x79, 0x5a, 0xa1, 0xb2, 0xd2, 0x6a, 0x51, + 0x16, 0x23, 0x0a, 0xeb, 0x08, 0x10, 0xc3, 0xb9, 0x40, 0xc6, 0x5a, 0x51, 0xd8, 0xa5, 0xbd, 0x41, + 0xcc, 0x47, 0x90, 0x1b, 0x6b, 0xf4, 0x77, 0x0a, 0x95, 0xe1, 0xb8, 0xff, 0xaa, 0x4c, 0x9c, 0x35, + 0xbf, 0xbb, 0xbf, 0xd1, 0xb0, 0xbe, 0xe5, 0xf3, 0x74, 0xb2, 0x42, 0xca, 0xf0, 0x61, 0x14, 0x8b, + 0x06, 0x67, 0x70, 0x8a, 0x6f, 0x08, 0x18, 0xa8, 0x52, 0xe7, 0x29, 0x32, 0xd6, 0xd5, 0x2c, 0x3c, + 0x23, 0xd9, 0x9f, 0x31, 0x2f, 0x2b, 0x41, 0x8c, 0x5e, 0xec, 0x47, 0xec, 0x73, 0x19, 0x18, 0xef, + 0x50, 0x18, 0xb0, 0x12, 0xcd, 0x39, 0xc8, 0x53, 0x4c, 0x7e, 0xf5, 0x71, 0x0e, 0x96, 0x80, 0x81, + 0xe5, 0xfc, 0x24, 0xe5, 0x1c, 0xf6, 0x8b, 0x4e, 0xe4, 0xe2, 0x38, 0x9b, 0xf7, 0x1c, 0xc6, 0xdf, + 0x0a, 0x9b, 0x5e, 0x3b, 0x3d, 0xf9, 0xb3, 0x8c, 0xd3, 0x24, 0x21, 0xd0, 0x34, 0x2d, 0x4e, 0x9b, + 0xc8, 0xe5, 0xb4, 0xbf, 0x5e, 0xa2, 0xf3, 0x48, 0x39, 0xcd, 0x8f, 0x4e, 0x61, 0x7b, 0x18, 0x6e, + 0x11, 0xfc, 0x3e, 0x76, 0x2d, 0x3c, 0xe8, 0xd2, 0x6d, 0xb4, 0x93, 0xac, 0x85, 0x74, 0x35, 0xb0, + 0x2d, 0xe3, 0xf3, 0x64, 0x2c, 0xc1, 0xa6, 0x78, 0xb7, 0x9e, 0x93, 0x9f, 0x05, 0x1b, 0xa0, 0x9c, + 0xf2, 0x48, 0x7f, 0x0d, 0xd6, 0x05, 0x56, 0xc7, 0x79, 0x93, 0x4c, 0xc4, 0x89, 0x97, 0xf4, 0x62, + 0xd1, 0xd1, 0xa7, 0x65, 0x47, 0x1b, 0x0c, 0x4a, 0xeb, 0xcf, 0xab, 0x6a, 0x1c, 0x04, 0xa2, 0x82, + 0xf3, 0x02, 0x99, 0x3c, 0xf0, 0xe3, 0xd8, 0xdb, 0xf3, 0x05, 0x43, 0xcc, 0x8b, 0xba, 0x93, 0x37, + 0x38, 0x18, 0x64, 0xb9, 0xf3, 0x59, 0x32, 0xee, 0x47, 0x51, 0x18, 0x09, 0x8e, 0x98, 0x15, 0x88, + 0xe3, 0xeb, 0x08, 0x04, 0x5e, 0xe6, 0xfe, 0xa0, 0x44, 0xe6, 0x55, 0x5f, 0x79, 0x5b, 0x23, 0x5c, + 0xea, 0x2d, 0x42, 0x9a, 0x72, 0x60, 0x31, 0x5b, 0x60, 0xd3, 0x57, 0x5e, 0x3e, 0x9e, 0x76, 0xff, + 0x44, 0xea, 0x36, 0x14, 0x28, 0x06, 0x83, 0xae, 0xfb, 0xfd, 0x12, 0x39, 0x9b, 0x1a, 0xd3, 0x56, + 0x10, 0x27, 0xce, 0x9f, 0xee, 0x1b, 0xd7, 0xa5, 0x63, 0xda, 0x36, 0xb4, 0xa7, 0x65, 0xac, 0xce, + 0x86, 0xa7, 0x18, 0x45, 0x42, 0x8c, 0xc1, 0x01, 0x19, 0x0f, 0x12, 0xff, 0x40, 0x8e, 0xeb, 0x62, + 0xc1, 0x71, 0xf1, 0x0e, 0xea, 0xcf, 0xb3, 0x89, 0x34, 0x80, 0x93, 0x72, 0xff, 0x27, 0xdd, 0xb3, + 0xe8, 0x28, 0x77, 0x83, 0xbd, 0x1b, 0x5e, 0x77, 0x84, 0x1f, 0xa6, 0x41, 0x65, 0x1e, 0x52, 0xe5, + 0x5d, 0xbf, 0x9c, 0xd7, 0x75, 0xd1, 0xa1, 0xe5, 0x1a, 0xad, 0xc3, 0x77, 0x40, 0x25, 0x97, 0x10, + 0x04, 0x8c, 0xd8, 0xd2, 0xeb, 0xa4, 0xaa, 0x10, 0x9c, 0x05, 0x52, 0xb9, 0xeb, 0x73, 0xf5, 0xa8, + 0x0a, 0xf8, 0xaf, 0x73, 0x8e, 0x8c, 0x1f, 0x7a, 0xed, 0x9e, 0x58, 0xad, 0xc0, 0x7f, 0x7c, 0xbe, + 0xfc, 0x46, 0xc9, 0xfd, 0x8d, 0x12, 0x39, 0xa7, 0x1a, 0xb9, 0xee, 0x1f, 0x35, 0xfc, 0x36, 0xed, + 0x72, 0x18, 0x39, 0x3f, 0x4b, 0x0b, 0xda, 0x19, 0x72, 0x48, 0xcc, 0xc6, 0x49, 0x24, 0xd8, 0x67, + 0x44, 0xc7, 0xcf, 0x65, 0x95, 0x42, 0x66, 0x6b, 0xce, 0xe3, 0x7c, 0x2c, 0x7c, 0xf1, 0x4e, 0x0b, + 0x02, 0x15, 0xda, 0x51, 0x36, 0x30, 0xec, 0xfe, 0xac, 0xea, 0xfe, 0x69, 0x70, 0xde, 0x96, 0xcd, + 0x79, 0x9f, 0x2b, 0xf8, 0xf9, 0x06, 0xf0, 0xdc, 0x7f, 0xa7, 0x2a, 0x8a, 0xc2, 0xb1, 0xc4, 0xf1, + 0x43, 0x32, 0xfd, 0xc3, 0x0d, 0x97, 0x7e, 0x96, 0xed, 0x10, 0xf7, 0xd3, 0x01, 0xc3, 0xfd, 0xed, + 0x2a, 0x5b, 0x62, 0x89, 0x17, 0x50, 0xfb, 0x05, 0x77, 0x5b, 0x43, 0x1d, 0x9d, 0x31, 0xd5, 0x51, + 0xa1, 0x7a, 0x52, 0xb1, 0x1a, 0x1c, 0xa0, 0xfc, 0x2d, 0xdb, 0x62, 0x75, 0x13, 0x81, 0xc0, 0xcb, + 0x9c, 0x67, 0xc9, 0x24, 0xb5, 0xf9, 0x0e, 0xbc, 0x4e, 0x8b, 0x8a, 0x69, 0xdc, 0xff, 0xa7, 0x51, + 0x44, 0xaf, 0x71, 0x10, 0xc8, 0x32, 0xe7, 0x33, 0x64, 0x8c, 0x2a, 0x2b, 0x31, 0x95, 0xd0, 0x88, + 0x33, 0x85, 0x2d, 0xad, 0xd0, 0xdf, 0xc0, 0xa0, 0xb8, 0xaf, 0xdf, 0x0b, 0xa3, 0xbb, 0x54, 0xfb, + 0xaa, 0x05, 0x11, 0xdb, 0xa4, 0x8d, 0x7d, 0xfd, 0x8e, 0x2a, 0x01, 0x03, 0xcb, 0xa9, 0x93, 0xf1, + 0x6e, 0x18, 0x25, 0x31, 0xdd, 0x73, 0x71, 0x6e, 0x5e, 0xcc, 0x65, 0x05, 0x3e, 0xee, 0x3a, 0xad, + 0xa3, 0x87, 0x82, 0xbf, 0xe8, 0xfc, 0x30, 0x42, 0xce, 0x1a, 0xa9, 0xf8, 0x9d, 0xc3, 0xc5, 0x49, + 0x46, 0xef, 0x99, 0xe3, 0xe9, 0xad, 0x77, 0x0e, 0x6f, 0x7b, 0x91, 0x5e, 0x12, 0xf4, 0x37, 0x60, + 0x6d, 0xa7, 0x49, 0xaa, 0xd2, 0x82, 0x8d, 0x17, 0xa7, 0x8a, 0x70, 0x0b, 0x08, 0x74, 0xf0, 0xdf, + 0xef, 0x05, 0x91, 0x7f, 0x40, 0x25, 0x65, 0xac, 0x95, 0x5b, 0x59, 0x1a, 0x83, 0xa6, 0x4b, 0x1b, + 0x99, 0xe1, 0xba, 0xc0, 0x8d, 0x90, 0x9a, 0xb1, 0xf1, 0x62, 0x95, 0x75, 0x39, 0xc7, 0x52, 0xba, + 0xad, 0x6b, 0xac, 0x9e, 0x13, 0xe4, 0x67, 0x0c, 0x60, 0x0c, 0x16, 0x51, 0x6a, 0x8d, 0xcd, 0xb6, + 0x83, 0x43, 0x6a, 0xeb, 0xc6, 0x71, 0x3d, 0x0a, 0x77, 0xfc, 0x45, 0xc2, 0x46, 0xf3, 0xd9, 0x3c, + 0xab, 0x81, 0xa2, 0xae, 0x9e, 0xa1, 0xb4, 0x67, 0xb7, 0xcc, 0xda, 0x60, 0x13, 0xa3, 0x6a, 0xd9, + 0x1c, 0x2a, 0x1e, 0x81, 0x26, 0x3f, 0x5d, 0x9c, 0xbc, 0x43, 0xc9, 0xcf, 0x81, 0x55, 0x1d, 0x52, + 0xe4, 0x9c, 0x6d, 0x52, 0x6d, 0x07, 0xbb, 0x7e, 0xf3, 0xa8, 0x49, 0x55, 0xc5, 0x19, 0x46, 0x3b, + 0x67, 0xfd, 0x6c, 0x49, 0x74, 0xae, 0xec, 0xa9, 0x9f, 0xa0, 0x09, 0x39, 0xb7, 0xc9, 0x23, 0x89, + 0x1f, 0x1d, 0x04, 0x1d, 0x0f, 0x77, 0x60, 0xa1, 0x89, 0x30, 0xd3, 0x6c, 0x96, 0x71, 0xed, 0x13, + 0x62, 0x62, 0x1f, 0xd9, 0xce, 0xc4, 0x82, 0x01, 0xb5, 0x9d, 0x5b, 0x64, 0x9e, 0xad, 0xa7, 0x7a, + 0xaf, 0xdd, 0xae, 0x87, 0xed, 0xa0, 0x79, 0xb4, 0x38, 0xc7, 0x08, 0x3e, 0x2b, 0x0d, 0xae, 0x4d, + 0xbb, 0x18, 0x95, 0x74, 0xfd, 0x0b, 0xd2, 0xb5, 0xd1, 0xda, 0xa5, 0x2a, 0x6a, 0x2f, 0xa2, 0x1a, + 0x3c, 0xf2, 0xbe, 0x7f, 0x3f, 0x59, 0x9c, 0x2f, 0x62, 0x74, 0x34, 0xec, 0x4a, 0xdc, 0xda, 0x4d, + 0x01, 0x21, 0x4d, 0x1a, 0x45, 0x45, 0x9c, 0xd0, 0xd9, 0x5f, 0x5c, 0x60, 0x5a, 0xa6, 0x5a, 0x5f, + 0x0d, 0x04, 0x02, 0x2f, 0x63, 0x36, 0x1c, 0xfe, 0x73, 0x0b, 0x05, 0xe9, 0x19, 0x86, 0xa8, 0x6d, + 0x38, 0x59, 0x00, 0x1a, 0x07, 0x77, 0x9f, 0x84, 0x5a, 0xe9, 0x0e, 0x43, 0x55, 0x4b, 0x6d, 0x7b, + 0xfb, 0xab, 0x80, 0x70, 0x77, 0x87, 0xcc, 0xa9, 0x65, 0xcd, 0x66, 0xc7, 0x79, 0x92, 0x8c, 0xa3, + 0xe4, 0x92, 0xa6, 0x48, 0x15, 0xbb, 0x80, 0x02, 0x8d, 0x2e, 0x71, 0x06, 0x67, 0x5d, 0x08, 0x3e, + 0xf0, 0x57, 0x8f, 0xe8, 0xa8, 0x99, 0x58, 0xab, 0x18, 0x5d, 0x90, 0x05, 0xa0, 0x71, 0xdc, 0xff, + 0xcd, 0x77, 0x38, 0x2d, 0x3b, 0x0a, 0xc8, 0x4d, 0xaa, 0x75, 0xef, 0x87, 0x71, 0x82, 0xd8, 0xac, + 0x8d, 0x71, 0xbd, 0xa5, 0x5d, 0x13, 0x70, 0x50, 0x18, 0xce, 0x17, 0xc8, 0x6c, 0xd3, 0x6c, 0x40, + 0xb8, 0x71, 0xce, 0x8b, 0x2a, 0x76, 0xeb, 0x60, 0xe3, 0x3a, 0x6f, 0x90, 0x29, 0xe6, 0x83, 0x6a, + 0x86, 0x6d, 0xa1, 0xfc, 0xca, 0x6d, 0x66, 0xaa, 0x2e, 0xe0, 0x1f, 0x1b, 0xff, 0x83, 0xc2, 0x46, + 0x13, 0x02, 0xbb, 0xb0, 0x59, 0x17, 0xe2, 0x56, 0x99, 0x10, 0xd7, 0x18, 0x14, 0x44, 0xa9, 0xfb, + 0x2b, 0x65, 0x63, 0x96, 0x51, 0x83, 0xf3, 0x9d, 0x9f, 0x20, 0x93, 0xf7, 0x3c, 0xaa, 0x81, 0x76, + 0xf6, 0xc4, 0x76, 0xf8, 0x4a, 0x41, 0xd9, 0xcb, 0xaa, 0xdf, 0xe1, 0x55, 0xf9, 0x3e, 0x21, 0x7e, + 0x80, 0x24, 0x88, 0xb4, 0xa3, 0x5e, 0xa7, 0x83, 0xb4, 0xcb, 0xc3, 0xd3, 0x06, 0x5e, 0x95, 0xd3, + 0x16, 0x3f, 0x40, 0x12, 0x74, 0x76, 0x09, 0x91, 0xab, 0xcf, 0x6f, 0x09, 0xdf, 0xcf, 0x8f, 0x0d, + 0x43, 0x7e, 0x5b, 0xd5, 0x5e, 0x9d, 0xc3, 0x9d, 0x49, 0xff, 0x06, 0x83, 0xb2, 0xdb, 0x63, 0x5a, + 0x45, 0x7f, 0xb7, 0xa8, 0x44, 0xa5, 0xcc, 0xed, 0x45, 0x14, 0x67, 0x25, 0x11, 0x53, 0xf7, 0x62, + 0x41, 0xed, 0x68, 0x3b, 0x38, 0xf0, 0xcd, 0xd5, 0x22, 0xa8, 0x80, 0x26, 0xe8, 0x7e, 0xb7, 0x42, + 0x16, 0x07, 0xf5, 0x17, 0x79, 0xd2, 0xbf, 0x1f, 0x50, 0xd3, 0xa2, 0xc5, 0x39, 0xd7, 0xe0, 0xc9, + 0x75, 0x01, 0x07, 0x85, 0x81, 0xcc, 0x11, 0x07, 0x7b, 0x1d, 0xaf, 0x2d, 0xf8, 0x57, 0x31, 0x47, + 0x83, 0x41, 0x41, 0x94, 0x22, 0x1e, 0x95, 0xba, 0xb1, 0xf0, 0x3d, 0x1a, 0x4c, 0x04, 0x0c, 0x0a, + 0xa2, 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, 0xbc, 0x8c, 0xca, 0xd2, 0x19, 0xaa, 0x61, + 0x21, 0xab, 0xac, 0xa1, 0x02, 0xc4, 0x98, 0x6f, 0x5c, 0x6b, 0x4a, 0x60, 0x94, 0x81, 0x85, 0xa9, + 0x15, 0xe5, 0x89, 0x63, 0x14, 0x65, 0xfa, 0x85, 0xd8, 0x3f, 0x8a, 0x2b, 0xd4, 0x17, 0xda, 0xe4, + 0x60, 0x90, 0xe5, 0x69, 0x26, 0x9a, 0x2a, 0xc8, 0x44, 0x17, 0xc8, 0x5c, 0xcd, 0xf3, 0x0f, 0xc2, + 0xce, 0x7a, 0xa7, 0xd5, 0x0d, 0x03, 0xda, 0xb1, 0x45, 0x32, 0xc6, 0xb6, 0x14, 0xbe, 0xe2, 0xc7, + 0x90, 0x02, 0x8c, 0xa1, 0xb2, 0xeb, 0xfe, 0x1f, 0xba, 0xaf, 0xd5, 0xa8, 0xb1, 0x99, 0xf8, 0xb7, + 0xba, 0xcc, 0x97, 0xe0, 0x6c, 0x10, 0x67, 0x2f, 0xf2, 0x9a, 0x7e, 0xdd, 0x8f, 0x82, 0xb0, 0x45, + 0x77, 0xfc, 0xb0, 0xc3, 0x3c, 0xc5, 0xb8, 0x47, 0xa2, 0x6b, 0xd0, 0xb9, 0xda, 0x57, 0x0a, 0x19, + 0x35, 0x9c, 0x16, 0x99, 0xed, 0x46, 0xbe, 0xe5, 0xfc, 0x28, 0xe5, 0xeb, 0xe7, 0x75, 0xb3, 0x0a, + 0x57, 0x1f, 0x2d, 0x10, 0xd8, 0x44, 0x9d, 0xb7, 0xc8, 0x42, 0x18, 0x75, 0xf7, 0xbd, 0x4e, 0xcd, + 0xef, 0xfa, 0x9d, 0x16, 0xea, 0xcc, 0xc2, 0xc3, 0x75, 0x8e, 0xd6, 0x5d, 0xb8, 0x95, 0x2a, 0x83, + 0x3e, 0x6c, 0xf7, 0x2f, 0x95, 0xc9, 0xf9, 0x5a, 0x78, 0xaf, 0x73, 0xcf, 0x8b, 0x5a, 0x2b, 0xf5, + 0x4d, 0xae, 0x08, 0x33, 0x8f, 0xa1, 0xf4, 0x54, 0x96, 0x06, 0x7a, 0x2a, 0xbf, 0x46, 0xa6, 0x76, + 0x03, 0xbf, 0xdd, 0x42, 0x97, 0x22, 0x1f, 0xde, 0xe5, 0x22, 0xee, 0x89, 0x0d, 0xac, 0x23, 0x4d, + 0x7c, 0xee, 0x28, 0xdd, 0x10, 0x64, 0x40, 0x11, 0x74, 0x7a, 0x64, 0x41, 0x6a, 0xfa, 0xb2, 0x54, + 0xac, 0x8e, 0x57, 0x8a, 0x19, 0x12, 0x76, 0x33, 0x6c, 0x3e, 0x20, 0x45, 0x10, 0xfa, 0x9a, 0x70, + 0x63, 0xf2, 0x68, 0xdf, 0x74, 0x08, 0x6b, 0xf8, 0x2b, 0xd2, 0x0c, 0xe5, 0xe7, 0x06, 0x39, 0xdd, + 0xc8, 0x9c, 0xd4, 0x01, 0x26, 0xe9, 0x2d, 0x72, 0x6e, 0xfd, 0xa0, 0x9b, 0x1c, 0x51, 0x83, 0xce, + 0x6a, 0xf1, 0x75, 0x32, 0x71, 0xe0, 0xb7, 0x82, 0xde, 0x81, 0xf8, 0x08, 0x4f, 0x4a, 0xb1, 0x77, + 0x83, 0x41, 0xa9, 0x4e, 0x33, 0x8b, 0x47, 0x6c, 0x74, 0xb9, 0x70, 0x00, 0x08, 0x74, 0xf7, 0xd7, + 0x4b, 0x64, 0x5e, 0xb2, 0xff, 0x4a, 0xab, 0x45, 0x47, 0x19, 0x3b, 0x4b, 0xa4, 0x1c, 0x74, 0x05, + 0x21, 0x22, 0x08, 0x95, 0xa9, 0x8a, 0x43, 0xa1, 0x54, 0xdf, 0xa8, 0x72, 0x2f, 0xba, 0xfe, 0x94, + 0x43, 0x7a, 0xe5, 0x99, 0xad, 0xb0, 0x2d, 0x69, 0x80, 0x26, 0x27, 0xf5, 0x40, 0x26, 0x58, 0x2b, + 0xb6, 0x4f, 0xf7, 0x9a, 0x80, 0x83, 0xc2, 0x70, 0x7f, 0xbe, 0x44, 0x66, 0x64, 0xcf, 0x0b, 0x2a, + 0x9a, 0xc8, 0xa8, 0x5a, 0xc9, 0xd4, 0x8c, 0x8a, 0x8a, 0x22, 0x2b, 0xb1, 0xf4, 0xc3, 0xca, 0x30, + 0xfa, 0xa1, 0xfb, 0x5d, 0xaa, 0xf7, 0xc9, 0xee, 0x34, 0x7a, 0x3b, 0xb1, 0x9f, 0x38, 0x5f, 0x27, + 0x55, 0x8f, 0x4f, 0xa9, 0x2f, 0x59, 0xe1, 0x62, 0x9e, 0x95, 0x6c, 0x7d, 0x09, 0xbd, 0x39, 0xaf, + 0x48, 0x3a, 0xa0, 0x49, 0x3a, 0x87, 0xe4, 0x4c, 0x27, 0x4c, 0x98, 0x4c, 0x56, 0xe5, 0xc5, 0x5c, + 0x8c, 0xe9, 0x76, 0x1e, 0x13, 0xed, 0x9c, 0xb9, 0x99, 0xa6, 0x07, 0xfd, 0x4d, 0x50, 0xdb, 0x4b, + 0x78, 0x12, 0x2a, 0xac, 0xad, 0x0b, 0xc5, 0xda, 0x1a, 0xec, 0x48, 0x70, 0x7f, 0xb3, 0x44, 0xaa, + 0x12, 0x6d, 0x94, 0x4e, 0xe6, 0x3b, 0x64, 0x32, 0x66, 0x9f, 0x46, 0x4e, 0xd3, 0x4b, 0xc5, 0xba, + 0xce, 0xbf, 0xa7, 0xde, 0x80, 0xf8, 0xef, 0x18, 0x24, 0x35, 0xe6, 0xd7, 0x53, 0x03, 0x78, 0xf8, + 0xfc, 0x7a, 0xaa, 0x6b, 0x03, 0xa4, 0xca, 0xdf, 0x2b, 0x91, 0x09, 0xee, 0xa0, 0x29, 0xe6, 0xe5, + 0x32, 0x9c, 0xb3, 0x9a, 0xe2, 0x6d, 0x04, 0x0a, 0x5f, 0x2d, 0x9d, 0xe9, 0x2a, 0xfb, 0x67, 0x23, + 0x0a, 0x0f, 0x84, 0x30, 0xbe, 0x50, 0xc4, 0x41, 0xc4, 0xc5, 0x19, 0x97, 0x11, 0xb7, 0x25, 0x01, + 0xd0, 0xb4, 0xdc, 0xdf, 0xa8, 0xe0, 0xaa, 0xd7, 0xa8, 0xd6, 0xd6, 0x52, 0x3a, 0x8d, 0xad, 0xa5, + 0x3c, 0xf2, 0xad, 0xc5, 0x79, 0x9f, 0xcc, 0x37, 0x0d, 0x27, 0xb7, 0xde, 0xd0, 0xae, 0x14, 0xf4, + 0xdf, 0x1a, 0x9e, 0x71, 0xee, 0x90, 0x58, 0xb3, 0xc9, 0x41, 0x9a, 0xbe, 0xe3, 0x93, 0x19, 0x7e, + 0x42, 0x27, 0xda, 0x1b, 0xcb, 0xe5, 0x59, 0xee, 0xfb, 0xe0, 0x35, 0x54, 0x63, 0x2c, 0x62, 0xa1, + 0x61, 0x10, 0x02, 0x8b, 0xac, 0xfb, 0x57, 0xc6, 0xc9, 0xf8, 0xfa, 0x21, 0xd5, 0x27, 0x46, 0xb8, + 0xca, 0x0f, 0xc8, 0x5c, 0xd0, 0x39, 0x0c, 0xdb, 0x87, 0x7e, 0x8b, 0x97, 0x9f, 0x6c, 0x9f, 0x7a, + 0x44, 0x34, 0x32, 0xb7, 0x69, 0x11, 0x83, 0x14, 0xf1, 0x51, 0xd8, 0x74, 0x6f, 0x53, 0x73, 0x92, + 0x71, 0x84, 0x30, 0xe8, 0x72, 0x1c, 0x95, 0x6c, 0x42, 0xc5, 0xca, 0xd1, 0x96, 0x27, 0xf7, 0x91, + 0x0a, 0x42, 0xce, 0x5d, 0x32, 0xb7, 0x1b, 0x44, 0x54, 0xeb, 0xa7, 0x46, 0x19, 0xd5, 0xc4, 0x0f, + 0xba, 0x27, 0x31, 0xe6, 0xd4, 0x94, 0x6c, 0x58, 0xa4, 0x20, 0x45, 0x9a, 0x1a, 0x2a, 0xb3, 0x68, + 0x4b, 0xe8, 0xb6, 0x26, 0x87, 0x6f, 0x4b, 0xf9, 0x73, 0xb6, 0x4c, 0x4a, 0x60, 0x13, 0x46, 0x61, + 0xd4, 0x64, 0xc6, 0xc7, 0x14, 0xdb, 0xd2, 0x95, 0x30, 0xe2, 0x56, 0x07, 0x2f, 0x43, 0x99, 0xc6, + 0x0e, 0x64, 0xab, 0xb6, 0x4c, 0xd3, 0xc7, 0xae, 0xee, 0x77, 0x70, 0x03, 0xc2, 0x59, 0x3c, 0x0d, + 0xd9, 0x7d, 0xcd, 0x96, 0xdd, 0x9f, 0x2d, 0xf0, 0x71, 0x07, 0xc8, 0xed, 0xf7, 0xc8, 0xb4, 0xf1, + 0xed, 0xd1, 0x59, 0xd7, 0x94, 0x67, 0x87, 0x42, 0x80, 0x2b, 0x05, 0x42, 0x1d, 0x2a, 0x82, 0xc6, + 0xc1, 0x89, 0x41, 0x75, 0x2a, 0x1d, 0x62, 0x80, 0xca, 0x16, 0xb0, 0x12, 0xf7, 0x15, 0x42, 0xd6, + 0xef, 0xfb, 0xcd, 0x95, 0x26, 0x3b, 0xd9, 0x36, 0xce, 0x2e, 0x4a, 0x83, 0xcf, 0x2e, 0xdc, 0x77, + 0xe9, 0x66, 0x78, 0x1f, 0x77, 0x76, 0x69, 0x2a, 0xd1, 0x25, 0xe2, 0x33, 0x00, 0xeb, 0xd5, 0x94, + 0x66, 0x52, 0x8e, 0x06, 0xa2, 0x94, 0x9d, 0x4b, 0xdf, 0xf7, 0xc4, 0x82, 0x35, 0xcc, 0xce, 0x75, + 0x04, 0x02, 0x2f, 0x73, 0xbf, 0x5d, 0x22, 0x73, 0x1b, 0x6b, 0x96, 0xf6, 0xbb, 0x4c, 0x08, 0xd7, + 0x22, 0xef, 0xdc, 0xb9, 0x29, 0x7d, 0x99, 0xdc, 0xe1, 0xa4, 0xa0, 0x60, 0x60, 0x38, 0x8f, 0x91, + 0x4a, 0xbb, 0xd7, 0x11, 0x6a, 0xe0, 0x24, 0xfa, 0x48, 0xb7, 0x7a, 0x1d, 0x40, 0x98, 0x11, 0x29, + 0x50, 0x29, 0x1c, 0x29, 0x90, 0x1f, 0x17, 0xf6, 0x8b, 0x15, 0xb2, 0xb0, 0xd1, 0xf6, 0xef, 0x5b, + 0xbd, 0xa6, 0x4d, 0xb5, 0xa2, 0x80, 0x32, 0x4f, 0xda, 0x55, 0x51, 0x63, 0x50, 0x10, 0xa5, 0x85, + 0x83, 0x17, 0xac, 0xc0, 0x8d, 0xca, 0x88, 0x03, 0x37, 0x72, 0xc7, 0xec, 0xec, 0x92, 0xc9, 0x90, + 0x7f, 0x7f, 0x2a, 0xc5, 0x90, 0xd1, 0xbf, 0x70, 0x7c, 0x67, 0xd2, 0xf3, 0xb3, 0x2c, 0xb8, 0x87, + 0x9f, 0x22, 0x2b, 0x61, 0x29, 0xa0, 0x20, 0x89, 0x2f, 0x7d, 0x9e, 0xcc, 0x98, 0x98, 0x43, 0x1d, + 0x27, 0x6f, 0x91, 0xb3, 0x1b, 0x18, 0x7e, 0x98, 0x0a, 0x2e, 0x79, 0x8d, 0x4c, 0xe3, 0x4a, 0x8d, + 0xad, 0x88, 0x2b, 0xe5, 0x4f, 0xa8, 0xe9, 0x22, 0x30, 0xf1, 0xdc, 0x7f, 0x57, 0x22, 0x8f, 0x5f, + 0x5d, 0x5b, 0xaf, 0xa3, 0x38, 0x88, 0x13, 0xba, 0xc0, 0x6a, 0x41, 0x7c, 0x37, 0xfd, 0xc9, 0xbb, + 0x2d, 0x83, 0xa6, 0xfa, 0x94, 0xf5, 0x1a, 0x23, 0x27, 0x4a, 0x1f, 0x96, 0x70, 0x46, 0xaa, 0x17, + 0x9e, 0xbd, 0x1a, 0xd0, 0x6f, 0xdf, 0x0d, 0xd3, 0x01, 0x69, 0x11, 0x85, 0xc5, 0x18, 0xa8, 0x74, + 0x94, 0x0e, 0x48, 0x03, 0x55, 0x02, 0x06, 0x16, 0x6f, 0xf9, 0x30, 0x40, 0x41, 0x29, 0x06, 0x65, + 0xb4, 0xcc, 0xe1, 0xa0, 0x30, 0x70, 0x60, 0xad, 0x20, 0x62, 0x3a, 0xc5, 0x91, 0x58, 0x89, 0x6a, + 0x60, 0x35, 0x59, 0x00, 0x1a, 0xc7, 0xfd, 0x9b, 0x25, 0x72, 0xfe, 0x6a, 0xbb, 0x47, 0xa7, 0x3d, + 0xda, 0x8d, 0xad, 0xce, 0xbe, 0x42, 0xaa, 0xbe, 0xd4, 0x7f, 0x45, 0x5f, 0xd5, 0xde, 0xa2, 0x14, + 0x63, 0x1e, 0x0d, 0xa7, 0xf0, 0x0a, 0x04, 0x5f, 0x0d, 0x17, 0x2a, 0xf4, 0xcf, 0xcb, 0x64, 0xf6, + 0xda, 0xf6, 0x76, 0xfd, 0xaa, 0x9f, 0x08, 0x59, 0x9a, 0xef, 0x34, 0xa9, 0x1b, 0xd6, 0xea, 0xf4, + 0x95, 0xe5, 0x01, 0xab, 0x07, 0x03, 0x6d, 0x97, 0x79, 0xa0, 0xed, 0xf2, 0x66, 0x27, 0xb9, 0x15, + 0x35, 0x92, 0x08, 0x5d, 0xfa, 0x59, 0xd6, 0xad, 0x94, 0xf7, 0x95, 0x41, 0xf2, 0x9e, 0x4e, 0xd6, + 0x44, 0xdc, 0xdc, 0xf7, 0x0f, 0xa4, 0x8e, 0xf2, 0x69, 0xa5, 0x4e, 0x30, 0x28, 0xb5, 0x7d, 0xab, + 0xef, 0xc0, 0x26, 0xff, 0x01, 0x02, 0x95, 0x0a, 0x9e, 0xe9, 0xfd, 0x24, 0xe9, 0x5e, 0xa3, 0x83, + 0xa5, 0xac, 0x2f, 0x56, 0x7b, 0x8e, 0x36, 0x87, 0x93, 0xc1, 0x2b, 0xe8, 0x85, 0xa5, 0x61, 0x31, + 0x98, 0x14, 0xdd, 0x06, 0x21, 0xba, 0xec, 0x01, 0x99, 0x28, 0xee, 0x9f, 0x2d, 0x93, 0xc9, 0x6b, + 0x74, 0xbb, 0x6a, 0x53, 0x92, 0x1b, 0x64, 0xcc, 0xa7, 0xdb, 0x5c, 0x31, 0x45, 0x54, 0x6f, 0x88, + 0xfc, 0x5c, 0x1e, 0x7f, 0x03, 0xab, 0xef, 0x00, 0x99, 0xc4, 0x7e, 0x5f, 0x55, 0x11, 0x8b, 0x2f, + 0xe6, 0xcf, 0x82, 0x62, 0x09, 0xbe, 0x9b, 0x0a, 0x10, 0x48, 0x42, 0xcc, 0xe3, 0xd2, 0xec, 0x36, + 0x50, 0x4a, 0x25, 0xc5, 0x02, 0x70, 0xb7, 0xd7, 0xea, 0x1c, 0x5d, 0xd0, 0xe5, 0x1e, 0x17, 0x09, + 0x04, 0x4d, 0xce, 0x7d, 0x83, 0x9c, 0x63, 0x27, 0x6c, 0x94, 0xdd, 0xac, 0x35, 0x93, 0xcb, 0x9c, + 0xee, 0xdf, 0x2e, 0x93, 0x33, 0x9b, 0x8d, 0xb5, 0x86, 0xed, 0xf8, 0x7a, 0x83, 0xcc, 0xf0, 0x6d, + 0x16, 0x99, 0xce, 0x6b, 0x8b, 0xfa, 0xca, 0x25, 0xbc, 0x6d, 0x94, 0x81, 0x85, 0x89, 0x47, 0x97, + 0xc1, 0xfb, 0x9d, 0x74, 0xe0, 0xcc, 0xe6, 0xdb, 0x37, 0x01, 0xe1, 0x58, 0x8c, 0x3b, 0x36, 0x17, + 0x71, 0xaa, 0x58, 0xed, 0xda, 0x5f, 0xa2, 0x2a, 0x7f, 0xdc, 0x8c, 0x03, 0xba, 0x00, 0xe8, 0xfa, + 0xf7, 0x9a, 0x92, 0x7d, 0xb5, 0x0e, 0x8f, 0x5d, 0x55, 0xa5, 0x90, 0xc2, 0x36, 0xe4, 0xed, 0x78, + 0xe1, 0x5d, 0x3f, 0x3f, 0x74, 0x71, 0x8b, 0x54, 0x55, 0x88, 0x89, 0x8c, 0x0c, 0x2a, 0x65, 0x47, + 0x06, 0xe5, 0x0b, 0x1c, 0xf7, 0x1f, 0x51, 0x1d, 0x55, 0x1d, 0xb1, 0x53, 0x4e, 0xab, 0x52, 0xd1, + 0x9a, 0xb0, 0x43, 0x1b, 0xc1, 0xb6, 0xcf, 0xe6, 0xf0, 0x1a, 0xe7, 0x75, 0xce, 0x0d, 0x75, 0x59, + 0x17, 0x34, 0x19, 0x67, 0x8b, 0x4c, 0x76, 0x23, 0xbf, 0x91, 0xb0, 0x08, 0xd7, 0x21, 0x28, 0x32, + 0xbe, 0xad, 0xf3, 0x9a, 0x20, 0x49, 0xb8, 0xbf, 0x56, 0x22, 0x64, 0x2b, 0x38, 0xa0, 0xdb, 0x87, + 0xd7, 0xd9, 0xf3, 0x47, 0x68, 0xef, 0xdd, 0x24, 0x63, 0x71, 0x97, 0x2e, 0xde, 0x42, 0x07, 0x2d, + 0xba, 0x47, 0x0d, 0x5a, 0x47, 0x4f, 0x34, 0xfe, 0x02, 0x46, 0xc7, 0xfd, 0x65, 0x42, 0xe6, 0x34, + 0x1a, 0x2a, 0xdc, 0xce, 0x45, 0x2b, 0xa4, 0xf3, 0xb1, 0x54, 0x48, 0x67, 0x95, 0x61, 0x1b, 0x51, + 0x9c, 0x09, 0xa9, 0x1c, 0x78, 0xf7, 0x85, 0x7e, 0xff, 0x5a, 0xd1, 0x0e, 0x61, 0x4b, 0xcb, 0x37, + 0xbc, 0xfb, 0x5c, 0xe1, 0x79, 0x51, 0xb2, 0x08, 0x85, 0x7c, 0xcc, 0x8f, 0x53, 0xd8, 0x1a, 0x43, + 0x83, 0xe2, 0x67, 0xfe, 0x93, 0xfe, 0xcd, 0xc4, 0x1e, 0x36, 0xc7, 0x5a, 0x0d, 0x3a, 0xc2, 0x29, + 0x37, 0x64, 0xab, 0x41, 0x27, 0xdd, 0x6a, 0xd0, 0x29, 0xd0, 0x6a, 0xd0, 0xc1, 0xc8, 0xaf, 0xc9, + 0x96, 0xbf, 0xeb, 0xf5, 0xda, 0x09, 0x0b, 0x56, 0x9a, 0xbe, 0xf2, 0xe6, 0x50, 0x4d, 0xd7, 0x78, + 0x5d, 0xde, 0xfc, 0x25, 0xa9, 0xe5, 0x09, 0x68, 0x6e, 0x17, 0x64, 0xd3, 0xce, 0x2f, 0x51, 0xab, + 0x40, 0xfc, 0x8f, 0x71, 0x41, 0xd4, 0x3c, 0x14, 0xfb, 0xd0, 0x5b, 0x27, 0xe9, 0x8d, 0x20, 0xc1, + 0x3b, 0xf5, 0x63, 0x52, 0x88, 0xd8, 0x85, 0xb9, 0x7d, 0x4b, 0xf5, 0xc7, 0xf9, 0xb0, 0x44, 0xce, + 0xd1, 0xef, 0xc4, 0x5b, 0xe4, 0x30, 0xc0, 0xe3, 0x37, 0x11, 0x90, 0xb5, 0x31, 0x2c, 0x9f, 0xf4, + 0x11, 0xe2, 0xdd, 0xfd, 0xa2, 0x3c, 0xe4, 0xcb, 0x42, 0xc9, 0xed, 0x74, 0x66, 0x0f, 0x97, 0x5a, + 0x64, 0x4a, 0x32, 0x66, 0x86, 0x7e, 0xbd, 0x6a, 0x6e, 0xb7, 0xc7, 0xaf, 0x40, 0xe9, 0xea, 0x5a, + 0x7e, 0xbb, 0xe7, 0x75, 0x12, 0x8c, 0x96, 0xd7, 0xda, 0x38, 0x6b, 0x45, 0x30, 0xe2, 0x08, 0x5b, + 0xd9, 0x27, 0x33, 0x26, 0xcf, 0x8d, 0xb0, 0xa5, 0x90, 0x9c, 0xcd, 0xe0, 0xa7, 0x11, 0x36, 0xd8, + 0x23, 0x8f, 0x0d, 0xe4, 0x8b, 0xd1, 0x35, 0x8b, 0xee, 0x7b, 0x43, 0x60, 0x9e, 0x86, 0x0b, 0xe5, + 0x86, 0xed, 0x42, 0x79, 0xbe, 0xe8, 0xd2, 0x19, 0xe0, 0x47, 0xd9, 0x35, 0xfb, 0x8f, 0x3b, 0x81, + 0xb3, 0x4d, 0x26, 0xda, 0x08, 0x91, 0xe7, 0x36, 0x2f, 0x0d, 0xb3, 0x38, 0xb5, 0xfa, 0xc0, 0xe0, + 0x31, 0x08, 0x5a, 0x78, 0xd8, 0x36, 0x76, 0x1a, 0xd3, 0x53, 0xb7, 0xa7, 0x67, 0x90, 0x12, 0x2a, + 0xae, 0xf4, 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, 0x2c, 0x04, 0x1b, 0x17, 0x2b, 0xef, 0x9a, 0x7e, 0x71, 0xa1, 0xf4, + 0xa8, 0xca, 0x96, 0xd3, 0x1c, 0x6c, 0x5c, 0xd4, 0xed, 0xef, 0x79, 0x49, 0x73, 0x5f, 0x18, 0x5d, + 0xaa, 0xbb, 0x77, 0x10, 0x08, 0xbc, 0xcc, 0x59, 0x21, 0xf3, 0x92, 0x63, 0x6f, 0xf3, 0xa9, 0x13, + 0x0a, 0xa1, 0xba, 0x8e, 0x05, 0x76, 0x31, 0xa4, 0xf1, 0x9d, 0xcf, 0x93, 0x39, 0x9c, 0x9c, 0xb0, + 0x97, 0xc8, 0xa3, 0xfd, 0x71, 0x76, 0xb4, 0xcf, 0x42, 0x29, 0xb7, 0xad, 0x12, 0x48, 0x61, 0xba, + 0x3f, 0x49, 0xce, 0x6e, 0x85, 0x5e, 0x6b, 0xd5, 0x6b, 0x7b, 0x9d, 0xa6, 0x1f, 0x6d, 0x76, 0xf6, + 0x72, 0xcf, 0x55, 0xcd, 0xb3, 0xcf, 0x72, 0xee, 0xd9, 0x67, 0x44, 0x1c, 0xb3, 0x01, 0x11, 0x94, + 0xf2, 0x2e, 0x99, 0x0c, 0x78, 0x53, 0x82, 0x6b, 0x2f, 0xe7, 0xb9, 0x7f, 0xfa, 0xfa, 0x68, 0x04, + 0x59, 0x70, 0x00, 0x48, 0x92, 0x68, 0x2b, 0x64, 0xf9, 0x8b, 0xf2, 0xcd, 0x31, 0xf7, 0x2f, 0x94, + 0xc8, 0xfc, 0xcd, 0xd4, 0x3d, 0x28, 0x8c, 0x98, 0xf2, 0xa3, 0x0c, 0xe7, 0x57, 0x83, 0x41, 0x41, + 0x94, 0x3e, 0x70, 0x43, 0xfc, 0x2f, 0x96, 0x49, 0x95, 0x45, 0x38, 0x76, 0xbd, 0xe6, 0x28, 0x95, + 0xd2, 0x1b, 0x96, 0x52, 0x9a, 0x63, 0x06, 0xaa, 0x0e, 0x0d, 0xd2, 0x49, 0xf1, 0x26, 0x9c, 0xb8, + 0x17, 0x54, 0xc8, 0x02, 0xd4, 0x04, 0xf9, 0x15, 0x92, 0x39, 0xfb, 0x1a, 0x91, 0xbc, 0x33, 0xc4, + 0xce, 0x2d, 0x15, 0xee, 0xc3, 0x77, 0x6e, 0xa9, 0xba, 0x36, 0x40, 0x2a, 0xd5, 0x8d, 0xde, 0x33, + 0xb1, 0xfd, 0x65, 0x16, 0xae, 0xe6, 0xb5, 0x83, 0x0f, 0x7c, 0x75, 0xbf, 0xee, 0x49, 0x11, 0x7d, + 0x26, 0xa0, 0x1f, 0x33, 0x01, 0x23, 0x7e, 0xf1, 0x6b, 0x93, 0xba, 0x8a, 0x7b, 0x8d, 0x72, 0xaa, + 0x3d, 0x77, 0xce, 0x6b, 0x64, 0xbc, 0xbb, 0xef, 0xc5, 0x7e, 0x2a, 0xb2, 0x62, 0xbc, 0x8e, 0x40, + 0x4a, 0x6d, 0x4e, 0x55, 0x60, 0x10, 0xe0, 0xd8, 0xee, 0x1f, 0x53, 0x59, 0x8f, 0x57, 0x77, 0x47, + 0xc8, 0x63, 0xd7, 0x2c, 0x1e, 0x7b, 0x2e, 0xff, 0x62, 0xf1, 0x40, 0xf6, 0xaa, 0xa7, 0xd8, 0xeb, + 0xf9, 0x02, 0xb4, 0x8e, 0xe7, 0xac, 0x03, 0x32, 0xcd, 0x2e, 0x2e, 0x8b, 0x90, 0x92, 0x57, 0x2c, + 0x03, 0xea, 0xc9, 0x94, 0x01, 0x35, 0x6f, 0xa0, 0x1a, 0x66, 0xd4, 0x0b, 0x64, 0x52, 0x04, 0x3b, + 0xa4, 0x63, 0xf4, 0x04, 0x2e, 0xc8, 0x72, 0xf7, 0x57, 0x2b, 0xc4, 0xba, 0x28, 0xed, 0x7c, 0xaf, + 0x44, 0xa8, 0xd2, 0xc2, 0x2e, 0x08, 0xb4, 0x6a, 0x3d, 0xf4, 0x88, 0xa1, 0xd3, 0xaa, 0xd5, 0x6b, + 0xd3, 0xff, 0x36, 0xf7, 0x3a, 0xa1, 0x02, 0xa3, 0xf7, 0xa6, 0xc7, 0xfc, 0xa7, 0x85, 0xef, 0x67, + 0xab, 0xd3, 0xce, 0x2b, 0xb4, 0x2f, 0xcb, 0x30, 0x54, 0x2b, 0x30, 0x64, 0xaf, 0x9c, 0xdf, 0x2d, + 0x91, 0x4b, 0xfc, 0xaa, 0x70, 0xf1, 0x91, 0x14, 0x32, 0x3c, 0xeb, 0x92, 0xa8, 0x26, 0x87, 0x21, + 0x81, 0xab, 0xaf, 0x8b, 0x49, 0xbe, 0x54, 0x1f, 0xae, 0x55, 0x18, 0xb6, 0x9b, 0xee, 0xbf, 0xac, + 0xd0, 0xf5, 0x4b, 0xe7, 0x53, 0x5f, 0x9d, 0x7c, 0xcd, 0x62, 0x93, 0xa7, 0x53, 0x6c, 0x72, 0xc6, + 0x42, 0x7e, 0x30, 0xb7, 0x26, 0x13, 0x72, 0x06, 0x4f, 0x14, 0xaf, 0xf9, 0x5e, 0x94, 0xec, 0xf8, + 0x1e, 0x3b, 0x5a, 0x14, 0x8b, 0x60, 0xa8, 0xe3, 0x4a, 0x15, 0x41, 0xb3, 0x95, 0xa6, 0x06, 0xfd, + 0x0d, 0x38, 0xf7, 0x88, 0xc3, 0xce, 0x31, 0x23, 0x8f, 0x2a, 0x5d, 0x6c, 0x30, 0x81, 0x70, 0xb9, + 0x0e, 0xd9, 0xec, 0x92, 0x68, 0xd6, 0xd9, 0xea, 0x23, 0x07, 0x19, 0x4d, 0x18, 0x87, 0xd5, 0xe3, + 0x45, 0x0f, 0xab, 0x27, 0x72, 0xc2, 0x63, 0x7f, 0xae, 0x44, 0xce, 0xe2, 0x87, 0xb1, 0x43, 0x29, + 0x63, 0x27, 0x24, 0xf3, 0x38, 0x82, 0xb6, 0x9f, 0x48, 0x98, 0x58, 0x61, 0x39, 0xba, 0xb4, 0x4d, + 0x47, 0x6b, 0x6c, 0xd7, 0x6d, 0x62, 0x90, 0xa6, 0xee, 0xfe, 0x6a, 0x89, 0x4c, 0x61, 0x47, 0x4e, + 0x63, 0x1f, 0xbb, 0x6a, 0xef, 0x63, 0x6e, 0xbe, 0xd0, 0x18, 0xb0, 0x85, 0xbd, 0x4a, 0x16, 0xb0, + 0xb4, 0x1e, 0x85, 0xf7, 0x8f, 0xa4, 0x72, 0x9d, 0xef, 0x7d, 0xfd, 0xf3, 0x25, 0x2e, 0xee, 0x94, + 0x56, 0x7c, 0x0f, 0x43, 0xc1, 0xf4, 0x6f, 0x5c, 0xc8, 0x52, 0x09, 0x5c, 0x2e, 0x2e, 0xd0, 0xd8, + 0xfa, 0x37, 0x62, 0xc1, 0x52, 0x04, 0xa1, 0xbf, 0x0d, 0xf7, 0xef, 0x94, 0xc8, 0xa3, 0x26, 0xa2, + 0x71, 0x29, 0x2b, 0xcf, 0xe5, 0x59, 0x23, 0x53, 0x61, 0x17, 0x13, 0x83, 0x28, 0x0b, 0xe0, 0x79, + 0x39, 0xe3, 0xb7, 0x04, 0x9c, 0xae, 0xdc, 0x73, 0x26, 0x75, 0x09, 0x07, 0x55, 0xd3, 0x71, 0xc9, + 0x04, 0xb3, 0x44, 0x63, 0x71, 0x9d, 0x8e, 0x20, 0x37, 0x33, 0x47, 0x3f, 0x5d, 0xe4, 0xbc, 0xc4, + 0xfd, 0xcb, 0x25, 0x3e, 0xcb, 0x66, 0xd7, 0x9d, 0x6f, 0x92, 0x85, 0x03, 0x34, 0x16, 0xd6, 0xef, + 0x77, 0x71, 0x0b, 0x61, 0x07, 0x95, 0xa5, 0x22, 0x82, 0x73, 0xc0, 0x70, 0x57, 0x17, 0x45, 0xef, + 0x17, 0x6e, 0xa4, 0xc8, 0x42, 0x5f, 0x43, 0xee, 0xef, 0x09, 0x5e, 0x65, 0x5a, 0x0b, 0x5d, 0x6c, + 0xdd, 0xb0, 0xb5, 0xb6, 0x59, 0x03, 0x31, 0x57, 0x6a, 0xb1, 0xd5, 0x39, 0x18, 0x64, 0x39, 0x9e, + 0xbc, 0xf9, 0xd4, 0x54, 0x8b, 0xa8, 0xc2, 0xb2, 0x59, 0x4b, 0x67, 0xb7, 0x58, 0x57, 0x25, 0x60, + 0x60, 0x61, 0x9d, 0x6e, 0x14, 0x1e, 0x06, 0x2d, 0x16, 0x1c, 0x5d, 0xb1, 0xeb, 0xd4, 0x55, 0x09, + 0x18, 0x58, 0x68, 0xa2, 0xf5, 0x3a, 0x31, 0x17, 0xe0, 0xde, 0x8e, 0xc8, 0x1d, 0x30, 0xa5, 0x4d, + 0xb4, 0x77, 0xcc, 0x42, 0xb0, 0x71, 0xdd, 0x1f, 0x54, 0x09, 0xd1, 0x2a, 0x02, 0x7a, 0x08, 0xa7, + 0x9a, 0x1e, 0x55, 0x90, 0x78, 0x12, 0x94, 0x4a, 0xfe, 0x2d, 0x12, 0x5d, 0x79, 0x79, 0x4d, 0x54, + 0xe4, 0xbe, 0xad, 0x97, 0x25, 0x83, 0x48, 0x70, 0xae, 0x3f, 0x4b, 0xb5, 0xec, 0x7c, 0xab, 0x44, + 0xa6, 0xbd, 0x36, 0x5e, 0x1b, 0x4d, 0xd8, 0x88, 0xca, 0x45, 0x9c, 0x95, 0x46, 0x4f, 0x56, 0x74, + 0x5d, 0xde, 0x99, 0x57, 0xe4, 0xb9, 0x95, 0x51, 0x92, 0xdb, 0x1f, 0xb3, 0x0b, 0xce, 0xcb, 0x52, + 0xb5, 0xe4, 0x1f, 0x65, 0x29, 0xad, 0x5a, 0x56, 0x99, 0x68, 0x30, 0xb4, 0x4a, 0xbc, 0x8f, 0x61, + 0x44, 0x8a, 0x8f, 0x15, 0xb9, 0xc9, 0x69, 0x6d, 0x9a, 0x79, 0x37, 0xe4, 0xf1, 0xb4, 0x49, 0xc7, + 0xac, 0x8e, 0x17, 0xb9, 0x26, 0x69, 0xe8, 0x6e, 0x39, 0xf1, 0xaa, 0x09, 0x99, 0x6f, 0xd9, 0x9b, + 0x84, 0x08, 0x42, 0xba, 0x9c, 0xdf, 0x42, 0x6a, 0x77, 0xd1, 0xdb, 0x42, 0xaa, 0x00, 0xd2, 0x4d, + 0xd0, 0x11, 0x4d, 0xa1, 0xd8, 0xda, 0xec, 0xec, 0x86, 0x22, 0x0e, 0xe9, 0xa5, 0x02, 0xdf, 0xfc, + 0x28, 0xa6, 0xe2, 0x19, 0xeb, 0xe8, 0x6d, 0xe0, 0xa6, 0xa0, 0x02, 0x8a, 0x1e, 0xba, 0x89, 0xd8, + 0x1d, 0x04, 0xbc, 0xb9, 0x5a, 0x19, 0xe2, 0x3a, 0x06, 0xbb, 0xc1, 0xa0, 0x37, 0x5f, 0xf6, 0x93, + 0x8a, 0x2b, 0x4e, 0x8b, 0xea, 0xf5, 0xe2, 0x62, 0x69, 0xbc, 0xd9, 0x79, 0x27, 0xf6, 0xd9, 0x6d, + 0xd5, 0xea, 0xea, 0x33, 0xfa, 0xfa, 0x29, 0x87, 0x67, 0x26, 0xc1, 0xb1, 0x6a, 0xe2, 0x1e, 0x2c, + 0x7e, 0xcb, 0xdc, 0x3a, 0x8b, 0xa4, 0x48, 0x47, 0xed, 0x4c, 0x3c, 0x7a, 0xb2, 0x6f, 0xdb, 0xc4, + 0x20, 0x4d, 0x7d, 0x29, 0x20, 0xb3, 0xd6, 0x8a, 0x1d, 0xa1, 0xb3, 0xb3, 0x4d, 0x16, 0xd2, 0x4b, + 0x72, 0x84, 0x3e, 0xce, 0x3f, 0x1a, 0x23, 0x73, 0x36, 0x63, 0x60, 0x8c, 0xc2, 0x01, 0x1d, 0x35, + 0xfd, 0x9e, 0x2a, 0x07, 0x89, 0xe2, 0xff, 0x1b, 0xb2, 0x00, 0x34, 0x0e, 0xcb, 0xc6, 0xc2, 0xaa, + 0xbf, 0xf3, 0x4e, 0xbf, 0xf0, 0x6e, 0xa8, 0x12, 0x30, 0xb0, 0x50, 0x61, 0xdb, 0x09, 0xc3, 0x44, + 0x09, 0x6e, 0xc5, 0x33, 0xab, 0x0c, 0x0a, 0xa2, 0x14, 0x05, 0xf6, 0x5d, 0x1c, 0x50, 0xdb, 0xf6, + 0x77, 0x29, 0x81, 0x7d, 0xdd, 0x2c, 0x04, 0x1b, 0x17, 0x37, 0xa0, 0x30, 0x66, 0x4c, 0x28, 0xd4, + 0x42, 0x1d, 0x6d, 0xd3, 0xe0, 0x77, 0x72, 0x64, 0xb9, 0xf3, 0x55, 0xf2, 0xa8, 0xba, 0x42, 0x03, + 0xdc, 0x7f, 0x28, 0x5b, 0x9c, 0xb0, 0x6c, 0xbb, 0x47, 0xd7, 0xb2, 0xd1, 0x60, 0x50, 0x7d, 0x3c, + 0xc4, 0x15, 0x2a, 0x9d, 0xa4, 0x38, 0x69, 0x1f, 0xe2, 0x5e, 0xb7, 0x4a, 0x21, 0x85, 0x4d, 0xf5, + 0x89, 0x05, 0x84, 0x30, 0x55, 0x4a, 0x52, 0xe0, 0x57, 0x81, 0xd4, 0xce, 0x7c, 0x3d, 0x55, 0x0e, + 0x7d, 0x35, 0xd0, 0x75, 0xc8, 0x75, 0x0b, 0xb4, 0x60, 0xd8, 0x77, 0x10, 0x71, 0x83, 0x6a, 0x11, + 0xdc, 0xb2, 0x8b, 0x21, 0x8d, 0x8f, 0xa7, 0xe0, 0x5e, 0x44, 0x3f, 0x7a, 0x42, 0x55, 0x84, 0x5e, + 0xc4, 0xef, 0x81, 0x1b, 0xa7, 0xe0, 0x2b, 0x46, 0x19, 0x58, 0x98, 0xee, 0x07, 0xe4, 0x6c, 0x46, + 0x78, 0x32, 0x32, 0x0e, 0x65, 0x50, 0x39, 0xa6, 0x54, 0xbc, 0x0d, 0x5e, 0x1b, 0x11, 0xa3, 0x31, + 0xb0, 0x90, 0x3b, 0x99, 0xe3, 0xd4, 0x48, 0x83, 0xa5, 0xb8, 0x73, 0x43, 0x16, 0x80, 0xc6, 0x71, + 0xbf, 0x43, 0x77, 0x6d, 0xed, 0x66, 0x28, 0x10, 0x65, 0x41, 0x87, 0x29, 0x33, 0xbb, 0x19, 0x59, + 0xa6, 0xd4, 0x30, 0xaf, 0x1a, 0x65, 0x60, 0x61, 0x62, 0xdf, 0x3a, 0xd2, 0x69, 0x92, 0x8e, 0xee, + 0x51, 0xde, 0x14, 0xd0, 0x38, 0xe8, 0xe3, 0x8b, 0xfd, 0xf6, 0xee, 0x56, 0xd0, 0xb9, 0x2b, 0x18, + 0x5b, 0x49, 0xe5, 0x86, 0x80, 0x83, 0xc2, 0x70, 0xde, 0x22, 0x95, 0x5e, 0xd0, 0x12, 0xac, 0xbc, + 0x2c, 0xf5, 0x4e, 0xba, 0x9a, 0xa8, 0xc4, 0x7c, 0x32, 0x3b, 0x5d, 0x1d, 0x9a, 0x91, 0xf1, 0x32, + 0x2e, 0x3e, 0xac, 0x9a, 0xe5, 0x3f, 0x9e, 0x18, 0xd2, 0x7f, 0x4c, 0xbf, 0x99, 0x18, 0xb3, 0xe4, + 0xe4, 0x8a, 0xfe, 0x66, 0x57, 0x55, 0x09, 0x18, 0x58, 0x68, 0x8c, 0x36, 0xa9, 0x01, 0x26, 0xad, + 0x35, 0x1e, 0x3b, 0x3b, 0xf5, 0x09, 0x8c, 0xd1, 0xb5, 0x34, 0x35, 0xe8, 0x6f, 0xc0, 0xe9, 0x92, + 0x33, 0x2d, 0x5c, 0x47, 0x56, 0xab, 0xd5, 0x13, 0x44, 0xec, 0x62, 0x8b, 0xb5, 0x34, 0x25, 0xe8, + 0x27, 0xee, 0x7c, 0x9d, 0x2c, 0x49, 0x60, 0xff, 0x25, 0x39, 0xb6, 0x5c, 0x2a, 0xab, 0x4f, 0x50, + 0x6a, 0x4b, 0xb5, 0x81, 0x58, 0x70, 0x0c, 0x05, 0xe7, 0x5d, 0x32, 0xc1, 0x4e, 0x1c, 0xe2, 0xc5, + 0x69, 0xb6, 0xdb, 0xbd, 0x5a, 0xd4, 0xe1, 0xb6, 0xcc, 0xce, 0x2d, 0x44, 0xc8, 0xa1, 0x3e, 0xc5, + 0x61, 0x40, 0x10, 0x34, 0xe9, 0x7c, 0x4d, 0x7b, 0x9d, 0x4e, 0x98, 0x78, 0x5c, 0x09, 0x9b, 0x29, + 0xa2, 0x47, 0x1a, 0x4d, 0xac, 0xe8, 0xba, 0xbc, 0x1d, 0x15, 0xff, 0x64, 0x94, 0x80, 0xd9, 0x04, + 0x6e, 0xe3, 0xe1, 0x3d, 0x14, 0x98, 0xd2, 0xe9, 0x1e, 0x2f, 0xce, 0x16, 0xd9, 0xc6, 0x6f, 0x59, + 0x95, 0x0c, 0x09, 0x66, 0x13, 0x83, 0x34, 0x75, 0x0c, 0xa8, 0x35, 0xfc, 0xa8, 0x73, 0x3a, 0xa0, + 0x56, 0xfb, 0x51, 0x4d, 0xb7, 0xe9, 0xd2, 0x9b, 0x64, 0xda, 0x98, 0xb9, 0x61, 0x42, 0x30, 0x97, + 0xbe, 0x44, 0xb7, 0xf1, 0xd4, 0x8c, 0x0c, 0x15, 0xc2, 0xf9, 0x3f, 0xca, 0x64, 0x3e, 0xe3, 0x48, + 0xe2, 0x6e, 0xc0, 0x82, 0x94, 0x2d, 0xd9, 0x75, 0x9d, 0xc2, 0x80, 0x95, 0xd8, 0x12, 0xa8, 0x5c, + 0x40, 0x02, 0x49, 0x71, 0x58, 0x19, 0x28, 0x0e, 0x85, 0xd4, 0x19, 0x3b, 0xb9, 0xd4, 0xb1, 0xc5, + 0xfc, 0x78, 0x21, 0x31, 0xff, 0x00, 0x24, 0x95, 0xb5, 0x53, 0x4c, 0x16, 0xd8, 0x29, 0x3e, 0x2e, + 0x91, 0x39, 0x9b, 0x85, 0x0a, 0xcc, 0xf8, 0xc3, 0x3a, 0x81, 0xcb, 0xcc, 0xa2, 0x4a, 0xa2, 0xb0, + 0xdd, 0xf6, 0x23, 0x11, 0xd4, 0x35, 0x27, 0x0c, 0x24, 0x01, 0x05, 0x03, 0xc3, 0xfd, 0xa5, 0x32, + 0x59, 0xd0, 0x11, 0xbe, 0x22, 0x55, 0xe5, 0xe8, 0x7c, 0xfc, 0xdb, 0x96, 0x8f, 0x3f, 0x2f, 0x03, + 0x65, 0xaa, 0x5f, 0x03, 0xfd, 0xfd, 0xef, 0xa6, 0xfc, 0xfd, 0xaf, 0x0e, 0x49, 0xf7, 0x78, 0xdf, + 0xff, 0x3f, 0x2e, 0x93, 0xf3, 0xe9, 0x2a, 0x6b, 0x6d, 0x2f, 0x38, 0x18, 0xe1, 0x3c, 0x7d, 0xd5, + 0x9a, 0xa7, 0xd7, 0x87, 0x1b, 0x0f, 0xeb, 0xdc, 0xc0, 0xc9, 0xf2, 0x52, 0x93, 0xf5, 0xe6, 0x49, + 0x88, 0x1f, 0x3f, 0x63, 0xff, 0xbe, 0x44, 0x1e, 0xcb, 0xac, 0x77, 0x1a, 0xbe, 0xcc, 0xaf, 0xd8, + 0xbe, 0xcc, 0x57, 0x4e, 0x30, 0xbc, 0x01, 0xce, 0xcd, 0xff, 0x52, 0x1e, 0x30, 0x2c, 0xe6, 0xf6, + 0xba, 0x45, 0xf7, 0xd1, 0x26, 0xdd, 0x6d, 0xe2, 0x1b, 0xd4, 0xae, 0x92, 0xa7, 0x75, 0x17, 0xd9, + 0x46, 0xa8, 0xc1, 0x74, 0xed, 0x2f, 0xa5, 0x49, 0xe8, 0x62, 0x30, 0x29, 0xd8, 0xa9, 0xa4, 0xca, + 0x23, 0x4a, 0x25, 0x45, 0x65, 0xcc, 0xa1, 0x32, 0xb7, 0xd3, 0xde, 0x34, 0xc3, 0x10, 0x37, 0xb0, + 0xa8, 0xbe, 0x83, 0xca, 0x29, 0x8f, 0x75, 0x18, 0xcb, 0x5d, 0x70, 0xd6, 0x07, 0x34, 0x03, 0x27, + 0xf8, 0x35, 0x45, 0xe5, 0x7a, 0x54, 0x34, 0xdd, 0xef, 0x54, 0xc8, 0xa7, 0x8f, 0x61, 0x3b, 0xba, + 0x49, 0x58, 0x47, 0x98, 0x2f, 0xa6, 0xfd, 0x4c, 0x4b, 0x99, 0x95, 0x2d, 0xc7, 0x53, 0xea, 0x63, + 0x95, 0x3f, 0xf1, 0xc7, 0xfa, 0x45, 0xd3, 0x2b, 0xc8, 0x63, 0x16, 0xaf, 0x9e, 0x78, 0x61, 0x3d, + 0x38, 0x37, 0xe1, 0x29, 0x7a, 0x30, 0x30, 0xed, 0xf0, 0xd3, 0x99, 0x83, 0xb2, 0x22, 0x25, 0xf0, + 0x56, 0x17, 0x02, 0x8d, 0x6b, 0x23, 0xfa, 0x56, 0x97, 0x2c, 0x00, 0x8d, 0x63, 0x05, 0x44, 0x94, + 0x73, 0x03, 0x22, 0xfe, 0x75, 0x89, 0x9c, 0x4b, 0x77, 0xe2, 0x34, 0xa4, 0x4e, 0xc3, 0x96, 0x3a, + 0xcb, 0xc3, 0x7d, 0xfb, 0x01, 0x02, 0xe7, 0x3f, 0x10, 0xf2, 0x48, 0xdf, 0x66, 0xc5, 0xa7, 0xf1, + 0xa7, 0x4b, 0xe4, 0xcc, 0x1e, 0x33, 0x14, 0x8c, 0xcb, 0x39, 0x62, 0x60, 0x39, 0x37, 0x93, 0x8e, + 0xbd, 0xd3, 0xc3, 0xcd, 0x9e, 0x3e, 0x14, 0xe8, 0x6f, 0xcc, 0xf9, 0x79, 0x3a, 0xd5, 0xde, 0xbd, + 0xb8, 0x2f, 0xef, 0xb9, 0xe0, 0xa3, 0x2f, 0xe5, 0xf8, 0xe4, 0x72, 0x32, 0xa6, 0xaf, 0x2e, 0x62, + 0xd0, 0x67, 0x16, 0x16, 0x64, 0xb6, 0x4a, 0x95, 0x00, 0x9e, 0x54, 0x0b, 0xd5, 0xbe, 0x42, 0xd7, + 0xc5, 0xb2, 0xae, 0x0a, 0x70, 0x99, 0x24, 0x4b, 0x40, 0x51, 0x74, 0xde, 0x23, 0xd5, 0x3d, 0x79, + 0x1f, 0x47, 0x08, 0xbd, 0x9c, 0x9d, 0x25, 0xf3, 0xfa, 0x0e, 0x0f, 0x57, 0x57, 0x45, 0xa0, 0x89, + 0x3a, 0xd7, 0x48, 0xa5, 0xb3, 0x1b, 0x8b, 0x2b, 0xb2, 0x79, 0x01, 0x31, 0x76, 0xf8, 0x11, 0xbf, + 0xf4, 0x47, 0x81, 0x80, 0x24, 0x90, 0x52, 0xb4, 0xd3, 0x12, 0xce, 0xe8, 0x1c, 0x4a, 0xb0, 0x5a, + 0xeb, 0xa7, 0x44, 0x81, 0x80, 0x24, 0x58, 0xe4, 0x1d, 0x5e, 0x2d, 0x10, 0x9e, 0xe6, 0x9c, 0xfb, + 0xd3, 0x7d, 0x17, 0x28, 0x78, 0x06, 0x36, 0x06, 0x06, 0x4e, 0x08, 0x5d, 0xcc, 0x4d, 0x96, 0xfe, + 0x58, 0x38, 0x02, 0xf2, 0x92, 0xe2, 0xf6, 0xa5, 0x4a, 0xe6, 0x27, 0x62, 0x1c, 0x0e, 0x82, 0x16, + 0xa3, 0xea, 0x77, 0xf7, 0x77, 0x63, 0x61, 0xe8, 0xe7, 0x51, 0xed, 0x4b, 0x64, 0x2d, 0xa8, 0x32, + 0x38, 0x08, 0x5a, 0x4e, 0x8d, 0x94, 0x77, 0x9b, 0x22, 0xed, 0x61, 0x8e, 0x69, 0x6a, 0xdf, 0xe0, + 0x5c, 0x9d, 0xc0, 0x50, 0xb8, 0x8d, 0x35, 0xa0, 0xf5, 0xa9, 0x3e, 0x32, 0xb9, 0xcb, 0x2f, 0xe5, + 0x89, 0x14, 0x87, 0x97, 0xf3, 0x2e, 0x0e, 0xf6, 0xdd, 0xe0, 0xe3, 0x57, 0x12, 0x44, 0x01, 0x48, + 0x72, 0x74, 0x1f, 0x26, 0xbb, 0xea, 0x96, 0xa1, 0xc8, 0x71, 0xb8, 0x3c, 0xdc, 0xad, 0x44, 0x61, + 0x06, 0x2b, 0x28, 0x18, 0x14, 0x91, 0xe7, 0x3d, 0x99, 0xc1, 0x9d, 0xe5, 0x37, 0xcc, 0xe5, 0xf9, + 0xcc, 0x84, 0xef, 0x9c, 0xe7, 0x55, 0x11, 0x68, 0xa2, 0x4e, 0x8f, 0xcc, 0x1e, 0xc6, 0xdd, 0x7d, + 0x5f, 0x2e, 0x7d, 0x96, 0xf4, 0x70, 0xfa, 0xca, 0x17, 0x73, 0x32, 0x59, 0x8a, 0x2a, 0x41, 0x94, + 0xf4, 0xbc, 0x76, 0x9f, 0x04, 0x63, 0xd9, 0x83, 0x6e, 0x9b, 0x64, 0xc1, 0x6e, 0xc5, 0xfd, 0xbd, + 0xf1, 0xfe, 0x4d, 0x82, 0xe9, 0x70, 0xbf, 0xd0, 0x7f, 0xb6, 0xf7, 0xd6, 0xf0, 0x36, 0xca, 0x03, + 0x3c, 0xe5, 0xa3, 0x32, 0xf6, 0x91, 0x6e, 0xe6, 0x0e, 0x20, 0xa4, 0xec, 0xb0, 0xa6, 0x0e, 0x9f, + 0x22, 0x95, 0xa6, 0x32, 0xbb, 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, 0xac, 0x58, 0xe4, 0xd7, 0xe4, 0xf6, 0xf4, + 0x86, 0x98, 0x89, 0xc7, 0xeb, 0xc7, 0x21, 0x7f, 0x9c, 0x87, 0x00, 0xc7, 0x37, 0x76, 0x9a, 0x6a, + 0xd8, 0xdf, 0x2f, 0x65, 0x28, 0x0d, 0x5c, 0x71, 0xfe, 0xa2, 0xad, 0x38, 0x3f, 0x97, 0x56, 0x9c, + 0xfb, 0xcc, 0x5c, 0x4b, 0x67, 0x2e, 0x9e, 0x63, 0xae, 0x68, 0x12, 0x09, 0xf7, 0x7f, 0x95, 0x48, + 0xa5, 0x1e, 0xb6, 0x46, 0x68, 0x48, 0x5f, 0xb5, 0x0c, 0xe9, 0x67, 0x73, 0x9f, 0xfa, 0x18, 0x68, + 0x36, 0xdf, 0x4a, 0x99, 0xcd, 0x9f, 0xcb, 0x27, 0x75, 0xbc, 0x91, 0xfc, 0x61, 0x85, 0x98, 0x8f, + 0x95, 0x38, 0xbf, 0x7d, 0x92, 0x10, 0xbf, 0x4a, 0xb1, 0xf7, 0x4b, 0x44, 0x1b, 0x2c, 0x20, 0x46, + 0xde, 0xff, 0xf9, 0x13, 0x1b, 0xe9, 0x77, 0xc7, 0x0f, 0xf6, 0xf6, 0x13, 0xbf, 0x95, 0x1e, 0xd8, + 0xe9, 0x45, 0xfa, 0xfd, 0xd7, 0x12, 0x99, 0x4f, 0xb5, 0xee, 0x1c, 0x64, 0x5d, 0x21, 0x38, 0xa9, + 0x65, 0x7c, 0x26, 0xf7, 0xd2, 0xc1, 0x32, 0x21, 0xca, 0x9b, 0x2b, 0xed, 0x57, 0xb6, 0x97, 0x2b, + 0x77, 0x6f, 0x0c, 0x06, 0x06, 0xe6, 0x00, 0x48, 0xc2, 0x6e, 0xd8, 0x0e, 0xf7, 0x8e, 0xae, 0xfb, + 0xf2, 0x0e, 0xba, 0x72, 0xd5, 0x6f, 0xeb, 0x22, 0x30, 0xf1, 0x30, 0x3f, 0x51, 0xfa, 0xad, 0x9b, + 0xff, 0xcf, 0xa8, 0x7f, 0x72, 0x18, 0xf5, 0x77, 0x4a, 0x64, 0x01, 0x5b, 0x67, 0xf1, 0x0c, 0x32, + 0x1e, 0x4f, 0x25, 0x6b, 0x2e, 0x1d, 0x93, 0xac, 0x19, 0x2f, 0x34, 0x24, 0xad, 0xb0, 0x27, 0x93, + 0x97, 0x18, 0x52, 0x0c, 0xa1, 0x20, 0x4a, 0x05, 0x1e, 0xed, 0x93, 0xb8, 0xac, 0x60, 0xe2, 0x51, + 0x28, 0x88, 0x52, 0x99, 0xcb, 0x79, 0x2c, 0x3b, 0x97, 0x33, 0xcf, 0xf5, 0x22, 0xce, 0xd1, 0xc5, + 0xce, 0x6c, 0xe4, 0x7a, 0x91, 0x07, 0xec, 0x1a, 0xc7, 0xfd, 0xa7, 0x15, 0x32, 0x83, 0xe1, 0x64, + 0x2a, 0xd6, 0xf6, 0x55, 0x2b, 0xd6, 0xf6, 0xa9, 0x54, 0xac, 0xed, 0x82, 0x89, 0xfb, 0x60, 0x42, + 0x6d, 0x45, 0x56, 0x20, 0x96, 0x6d, 0xfc, 0xa4, 0x61, 0xb6, 0x56, 0x56, 0x20, 0x45, 0x09, 0x6c, + 0xc2, 0x3f, 0x52, 0xe1, 0xb5, 0x7f, 0x5c, 0x22, 0x73, 0xf4, 0x5b, 0x20, 0x8b, 0xfe, 0x28, 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, 0xa0, 0x20, 0x4a, 0xd1, 0xd5, 0xd7, 0xc5, 0x9c, 0x29, 0x61, + 0x2f, 0x4e, 0xdf, 0x7d, 0xaa, 0x0b, 0x38, 0x28, 0x0c, 0xba, 0xe2, 0x67, 0xe2, 0x80, 0xda, 0x00, + 0xf2, 0xa0, 0x7d, 0x8c, 0x1d, 0xb4, 0xf3, 0x94, 0x6d, 0x06, 0x1c, 0x2c, 0x2c, 0xaa, 0x6a, 0x56, + 0xd9, 0x6f, 0xb6, 0x86, 0x4e, 0x90, 0x60, 0x9a, 0xe7, 0x13, 0x92, 0x14, 0x40, 0x13, 0x43, 0x57, + 0x7a, 0x22, 0x63, 0x02, 0x62, 0x71, 0xf4, 0xa6, 0x94, 0x53, 0x15, 0x2d, 0x80, 0xa9, 0x9b, 0xd4, + 0xff, 0xce, 0x8b, 0x98, 0x7f, 0x34, 0x68, 0x6f, 0xe1, 0xc3, 0x05, 0x22, 0xaa, 0x42, 0x24, 0x14, + 0x15, 0x40, 0xd0, 0xe5, 0xb8, 0xe7, 0xb3, 0x9b, 0x97, 0x3c, 0x7d, 0xfd, 0x14, 0xc3, 0x66, 0x7b, + 0xfe, 0x96, 0x82, 0x82, 0x81, 0xe1, 0xbe, 0xc2, 0xf6, 0xee, 0x21, 0x63, 0xb1, 0x3f, 0x2a, 0x13, + 0xa7, 0xce, 0x62, 0x0f, 0xac, 0x0c, 0xff, 0xfb, 0x64, 0x2e, 0xa6, 0xc6, 0x6a, 0xa7, 0x77, 0x5f, + 0x90, 0x2a, 0x16, 0xfd, 0xde, 0x58, 0x37, 0xeb, 0xf0, 0xdb, 0x86, 0x36, 0x0c, 0x52, 0x74, 0x71, + 0x4a, 0xa2, 0x5e, 0x67, 0x25, 0xc6, 0x77, 0xbf, 0x44, 0x8e, 0x7e, 0x36, 0x25, 0x20, 0x81, 0xa0, + 0xcb, 0x91, 0x07, 0xd8, 0x8f, 0x9b, 0x54, 0x1a, 0x85, 0x61, 0x22, 0xb9, 0x86, 0x25, 0x6c, 0x36, + 0xe0, 0x60, 0x61, 0x61, 0xae, 0xe3, 0xb8, 0xd7, 0xed, 0xb6, 0xd9, 0x09, 0x89, 0xd7, 0xbe, 0x1a, + 0x85, 0xbd, 0x2e, 0x0f, 0x3f, 0x15, 0xb9, 0x8e, 0x1b, 0x7d, 0xa5, 0x90, 0x51, 0x03, 0x17, 0xfd, + 0x6e, 0xcc, 0xfe, 0x17, 0xb7, 0x29, 0xb9, 0x9f, 0xa6, 0xc1, 0x40, 0x20, 0xcb, 0xdc, 0x1e, 0xdb, + 0xaa, 0x58, 0xee, 0x74, 0x0c, 0x8b, 0x72, 0x7c, 0x32, 0xdb, 0x65, 0xdb, 0x91, 0x3c, 0xa6, 0x2d, + 0x34, 0x95, 0xa9, 0xe8, 0x07, 0x9e, 0x23, 0xd9, 0x24, 0x03, 0x36, 0x55, 0xf7, 0xdf, 0x12, 0x26, + 0x6b, 0xc4, 0xe1, 0xd4, 0xa4, 0x88, 0x6d, 0x14, 0xba, 0xd8, 0x33, 0x45, 0x1e, 0x0b, 0xd1, 0x72, + 0x5c, 0x44, 0x4a, 0x82, 0xa4, 0xe2, 0x7c, 0x8d, 0x9f, 0x33, 0xb3, 0xf5, 0x5d, 0xfc, 0x39, 0x1e, + 0x8e, 0x6f, 0x45, 0xed, 0x0a, 0x12, 0x60, 0x90, 0x73, 0xb6, 0xc8, 0xac, 0x48, 0xb0, 0x2d, 0x6c, + 0xf5, 0x8a, 0x65, 0xaf, 0xce, 0x82, 0x59, 0xf8, 0x71, 0x1a, 0x00, 0x76, 0x65, 0x67, 0x8f, 0x3c, + 0x6e, 0xbc, 0xba, 0x91, 0x11, 0xa1, 0xc3, 0x05, 0xc7, 0xd3, 0xe8, 0x05, 0xd8, 0x3e, 0x0e, 0x11, + 0x8e, 0xa7, 0x43, 0x27, 0xf9, 0xbc, 0xd7, 0x4c, 0x82, 0x43, 0xbf, 0xe6, 0x7b, 0x2d, 0xaa, 0x95, + 0xf9, 0xf6, 0x55, 0xdb, 0xc7, 0x68, 0x03, 0xe7, 0x57, 0xb2, 0x10, 0x20, 0xbb, 0x1e, 0xb5, 0xd7, + 0xab, 0xad, 0x4e, 0x2c, 0xe6, 0x60, 0xc2, 0x7a, 0x60, 0xa4, 0x5a, 0xbb, 0xd9, 0x50, 0xe3, 0xd7, + 0x3f, 0x40, 0x57, 0x70, 0xde, 0xe7, 0x0f, 0x76, 0x2a, 0x83, 0x84, 0x3f, 0x6c, 0xf3, 0x7a, 0x21, + 0x13, 0xd8, 0xba, 0x15, 0xc0, 0xdd, 0x58, 0x2a, 0x12, 0xce, 0xba, 0x30, 0x60, 0x35, 0xe1, 0xfc, + 0x38, 0x5d, 0x58, 0x7e, 0x84, 0x0f, 0x51, 0xae, 0x34, 0x59, 0xb2, 0x42, 0x76, 0xca, 0x33, 0x65, + 0x85, 0x83, 0x3b, 0x8d, 0x3e, 0x0c, 0xc8, 0xa8, 0xe5, 0x5c, 0x43, 0x89, 0x63, 0x42, 0x45, 0xe0, + 0xa2, 0x54, 0xed, 0x16, 0x6b, 0x3e, 0xe6, 0x04, 0xc7, 0xe7, 0x0d, 0x6c, 0x8a, 0x90, 0xaa, 0x87, + 0xdb, 0x0a, 0xf6, 0x92, 0xf5, 0x85, 0xd8, 0xe1, 0x76, 0x37, 0x05, 0x1c, 0x14, 0x06, 0x5a, 0x4a, + 0xe8, 0xf5, 0xbf, 0xe9, 0x27, 0xf8, 0xda, 0x10, 0xf3, 0xd9, 0x4e, 0x19, 0x49, 0x9d, 0x74, 0x11, + 0x98, 0x78, 0xa8, 0x03, 0xb1, 0xc3, 0x82, 0xcd, 0x1a, 0xf3, 0xc4, 0x4e, 0xe9, 0xb5, 0x73, 0x8d, + 0x83, 0x41, 0x96, 0x4b, 0xd4, 0xcd, 0xfa, 0x1a, 0xf3, 0xaa, 0xa6, 0x50, 0x29, 0x18, 0x64, 0x39, + 0x86, 0x4a, 0xa5, 0x9f, 0x71, 0x99, 0x2b, 0xe2, 0xe1, 0xee, 0x97, 0xe0, 0x05, 0x5f, 0x72, 0xb9, + 0x4f, 0x16, 0xd4, 0x53, 0x32, 0x3c, 0x6b, 0x5e, 0xbc, 0x38, 0x5f, 0xe4, 0xb9, 0xd0, 0xcc, 0xe4, + 0x7b, 0x2a, 0x52, 0x75, 0x33, 0x45, 0x13, 0xfa, 0x5a, 0xb1, 0xae, 0x8c, 0x2f, 0xe4, 0x5d, 0x19, + 0x67, 0x2f, 0xb9, 0xf4, 0x76, 0x5a, 0xe1, 0x01, 0x15, 0x19, 0xec, 0x31, 0x19, 0xf3, 0x41, 0x50, + 0x59, 0x00, 0x1a, 0x67, 0xe9, 0xcb, 0xe4, 0x4c, 0x1f, 0x4f, 0x0f, 0x15, 0x99, 0xf5, 0x0b, 0x63, + 0xa4, 0xaa, 0xbc, 0x3a, 0xb4, 0x7d, 0xcb, 0x95, 0xf6, 0x58, 0xda, 0x95, 0x36, 0x85, 0x3b, 0xaf, + 0xe9, 0x3d, 0xfb, 0x7a, 0xc6, 0x8b, 0x80, 0x17, 0x72, 0x3f, 0x62, 0xf1, 0x9b, 0x0e, 0x43, 0xbc, + 0x97, 0xa8, 0xd5, 0xfa, 0xb1, 0x63, 0xd5, 0xfa, 0x82, 0x6f, 0xc4, 0xa0, 0x02, 0x4f, 0x77, 0x1e, + 0x8a, 0x96, 0x7a, 0xff, 0xa0, 0x8e, 0x40, 0xe0, 0x65, 0x4c, 0xef, 0x42, 0xa1, 0xcc, 0xf4, 0xae, + 0xc9, 0x93, 0xea, 0x5d, 0x92, 0x02, 0x68, 0x62, 0x98, 0x37, 0xbc, 0x69, 0xbf, 0x67, 0xa1, 0x2e, + 0x30, 0x5c, 0x1c, 0xe2, 0x3d, 0x89, 0x9e, 0x91, 0x37, 0x7c, 0x2d, 0x4d, 0x0f, 0xfa, 0x9b, 0xc0, + 0xdb, 0xe6, 0xf3, 0x8a, 0x21, 0xe8, 0x0e, 0x84, 0x79, 0x7b, 0x46, 0xe7, 0xc8, 0xbc, 0x65, 0x59, + 0xaa, 0x0f, 0xc0, 0xff, 0xf8, 0x5b, 0x25, 0xe6, 0x7f, 0xdc, 0xf6, 0x0f, 0xba, 0x6d, 0x7c, 0x24, + 0x63, 0x74, 0x5d, 0xff, 0x1a, 0x99, 0x4a, 0x44, 0x2b, 0xc5, 0x72, 0x17, 0x1b, 0xdd, 0x62, 0xfe, + 0x58, 0x25, 0x08, 0x24, 0x14, 0x14, 0x41, 0xf7, 0x5f, 0xf0, 0xaf, 0x20, 0x4b, 0x4e, 0xc3, 0xb2, + 0xba, 0x69, 0x5b, 0x56, 0x2f, 0x14, 0x1e, 0xcc, 0x00, 0x0b, 0xeb, 0x3b, 0xf6, 0x10, 0x98, 0xc2, + 0xf6, 0xf0, 0x7b, 0xc4, 0xdd, 0x1b, 0xc4, 0x7e, 0xa3, 0x83, 0xaa, 0x2b, 0x2c, 0xe2, 0x91, 0x4b, + 0xc4, 0x0b, 0x43, 0x46, 0x3b, 0xba, 0xbf, 0x56, 0x26, 0xe7, 0xb2, 0xde, 0x9c, 0x76, 0x5a, 0x64, + 0xa6, 0x6b, 0xa8, 0xcf, 0xc5, 0x2e, 0xb6, 0x9b, 0x0a, 0xb7, 0x56, 0x5d, 0x4c, 0x28, 0x58, 0x54, + 0x31, 0x63, 0x38, 0xbe, 0xa0, 0xad, 0xdc, 0x2b, 0xe5, 0xe1, 0x45, 0x94, 0x6a, 0x66, 0xdd, 0x20, + 0x04, 0x16, 0xd9, 0x11, 0xa4, 0xd7, 0x76, 0xff, 0x6e, 0x89, 0x3c, 0x3a, 0xe0, 0xf6, 0x3b, 0x36, + 0x77, 0x8f, 0x79, 0x21, 0xc5, 0x1b, 0x30, 0xaa, 0x39, 0xee, 0x9b, 0x04, 0x51, 0xea, 0xec, 0xe0, + 0xa5, 0x4a, 0xf5, 0xca, 0x65, 0xb9, 0xc8, 0x51, 0x72, 0xdf, 0x4d, 0x5b, 0xe3, 0x12, 0xa6, 0x7a, + 0xd7, 0xd2, 0xa0, 0xea, 0x7e, 0xbb, 0x42, 0xc6, 0xf9, 0xdb, 0x7c, 0x75, 0xaa, 0x00, 0xf1, 0x64, + 0x7b, 0xc3, 0xe5, 0xfa, 0xd3, 0x7a, 0x12, 0x07, 0x80, 0x24, 0xe3, 0xdc, 0x20, 0x67, 0xd1, 0xbf, + 0x1a, 0x78, 0xed, 0x9a, 0xdf, 0xf6, 0x8e, 0xa4, 0xe2, 0xcd, 0x53, 0x22, 0xcb, 0xac, 0x9f, 0x67, + 0x37, 0xfb, 0x51, 0x20, 0xab, 0x1e, 0xde, 0xdd, 0x49, 0x65, 0xcb, 0xe1, 0xa9, 0x1a, 0xd5, 0xdd, + 0x9d, 0xe3, 0x33, 0xe6, 0xe0, 0xf5, 0xa5, 0x6e, 0x9f, 0x89, 0x61, 0x3c, 0xea, 0x66, 0x9b, 0x15, + 0x36, 0x2e, 0x5e, 0xfc, 0x89, 0x7b, 0xec, 0x8c, 0x74, 0x7b, 0x9f, 0x5a, 0x32, 0xfb, 0x61, 0xbb, + 0x25, 0x1e, 0x23, 0x52, 0xea, 0x54, 0x23, 0x55, 0x0e, 0x7d, 0x35, 0x90, 0xca, 0xae, 0x17, 0xb4, + 0x29, 0x6b, 0x6b, 0x2a, 0x13, 0x36, 0x95, 0x8d, 0x54, 0x39, 0xf4, 0xd5, 0xc0, 0x4c, 0xcf, 0xf3, + 0xa9, 0x10, 0x11, 0x54, 0xd4, 0x52, 0x6f, 0x7e, 0x33, 0x7b, 0x1b, 0x83, 0x27, 0x32, 0xde, 0xfd, + 0x7e, 0xce, 0x7e, 0x45, 0x54, 0xc7, 0x6e, 0xad, 0xd6, 0xac, 0xf7, 0x91, 0x8a, 0x66, 0xaa, 0xfe, + 0x2c, 0xa6, 0x91, 0x55, 0xcf, 0xdd, 0x29, 0x8e, 0xa0, 0xe4, 0xea, 0x14, 0x0c, 0xac, 0x90, 0x1a, + 0xe6, 0xfc, 0x29, 0xf1, 0x94, 0xe7, 0x0e, 0xbc, 0x56, 0x18, 0x1b, 0xef, 0x89, 0xd3, 0x45, 0x46, + 0x75, 0x3e, 0x74, 0x99, 0xa7, 0xfd, 0x96, 0xd7, 0x39, 0x18, 0x64, 0xb9, 0x9d, 0x8d, 0x7a, 0x72, + 0xc4, 0xd9, 0xa8, 0xa7, 0x72, 0xc3, 0xdc, 0x7e, 0x99, 0x6e, 0x19, 0x2c, 0x41, 0x97, 0xb8, 0x33, + 0x88, 0x1e, 0xf0, 0xd1, 0x6d, 0x19, 0xf8, 0x7e, 0x16, 0x36, 0x96, 0x4e, 0x40, 0xcb, 0x7a, 0x00, + 0xbc, 0x0c, 0x9f, 0x78, 0x65, 0x4d, 0xe3, 0xe7, 0x9b, 0xe1, 0xa9, 0x64, 0xf5, 0x13, 0xc9, 0x2c, + 0x88, 0x1a, 0xfc, 0x2e, 0x35, 0x4c, 0x59, 0x67, 0xb5, 0x9b, 0xe2, 0x61, 0x09, 0xa2, 0xce, 0xec, + 0xdc, 0x83, 0x0a, 0xa2, 0xce, 0x26, 0x9e, 0x1f, 0x44, 0x9d, 0x59, 0xef, 0xe1, 0x0b, 0xa2, 0xce, + 0xec, 0xe6, 0x00, 0x65, 0xe7, 0xa3, 0xf2, 0x80, 0x61, 0x31, 0xb5, 0xe7, 0x79, 0x5c, 0x05, 0xac, + 0x30, 0x16, 0x3b, 0xd6, 0x0c, 0x5f, 0x01, 0x1c, 0x06, 0xaa, 0xd4, 0x89, 0x8d, 0x20, 0x64, 0xde, + 0xc9, 0xf5, 0x13, 0x7e, 0xe0, 0x65, 0xdb, 0xcf, 0x61, 0x5e, 0xc5, 0x4b, 0x45, 0x26, 0x63, 0xb8, + 0x8a, 0xd2, 0x64, 0x2b, 0x27, 0xd1, 0x64, 0x67, 0xb2, 0xb5, 0xd8, 0x25, 0xba, 0x61, 0x9c, 0xdc, + 0x32, 0xfd, 0x6f, 0x25, 0xf2, 0xe9, 0x63, 0x38, 0x8c, 0x8b, 0x16, 0x6b, 0x52, 0x0d, 0xd1, 0xd2, + 0x37, 0xb1, 0x75, 0x72, 0x6e, 0x97, 0x9a, 0xe5, 0x47, 0xec, 0xf8, 0xd9, 0x6f, 0x49, 0x0c, 0xb1, + 0x97, 0xaa, 0x37, 0xf7, 0x36, 0x32, 0x70, 0x20, 0xb3, 0x26, 0x7a, 0x85, 0xc2, 0x1d, 0x96, 0x00, + 0xad, 0xa5, 0x6f, 0x0a, 0xb2, 0xf9, 0xab, 0x68, 0xaf, 0xd0, 0xad, 0x3e, 0x0c, 0xc8, 0xa8, 0xe5, + 0xfe, 0x7e, 0x09, 0xe5, 0x48, 0xc6, 0x6b, 0x34, 0xd6, 0x43, 0xaa, 0x46, 0x70, 0x71, 0xff, 0x43, + 0xaa, 0xcc, 0xdf, 0x63, 0xe3, 0xf2, 0x29, 0x8a, 0x75, 0x60, 0x95, 0x95, 0xce, 0x5d, 0x04, 0xd5, + 0x2b, 0x0c, 0x7c, 0x78, 0xa9, 0x15, 0x1c, 0x06, 0x71, 0x18, 0x15, 0x78, 0xb7, 0xb0, 0x2f, 0x58, + 0x47, 0xef, 0x32, 0x35, 0x4e, 0x04, 0x24, 0x35, 0xf7, 0xaf, 0x95, 0xc9, 0xac, 0x6c, 0xef, 0xed, + 0x5e, 0xc8, 0x16, 0xe2, 0xa8, 0xa4, 0xe3, 0xdb, 0x96, 0x74, 0xbc, 0x54, 0xec, 0x66, 0x01, 0xeb, + 0xd4, 0x40, 0xa9, 0xf8, 0xd5, 0x94, 0x54, 0xbc, 0x3c, 0x0c, 0xd1, 0x5c, 0x6b, 0xf5, 0x8c, 0x85, + 0xff, 0x10, 0x25, 0x9e, 0xcc, 0x1a, 0xce, 0x00, 0xe9, 0xf7, 0xed, 0x72, 0x6a, 0x18, 0x4c, 0xea, + 0x7d, 0x93, 0x8c, 0xed, 0x7b, 0x51, 0x4b, 0xb8, 0xe6, 0xdf, 0x1c, 0xf2, 0x53, 0x50, 0xf5, 0x38, + 0x6a, 0x71, 0xd9, 0xf5, 0x92, 0xca, 0x81, 0x4f, 0x41, 0xb9, 0x61, 0x86, 0xac, 0x51, 0xe7, 0x0d, + 0xcc, 0x91, 0x1f, 0x76, 0x55, 0x14, 0xc9, 0x53, 0x3c, 0x3f, 0x3e, 0x42, 0x28, 0x05, 0xc7, 0x6e, + 0x0e, 0xc1, 0x20, 0xf0, 0x97, 0x7c, 0x52, 0x55, 0x4d, 0x8f, 0x30, 0xa0, 0xed, 0x0f, 0x2a, 0xe4, + 0x6c, 0x06, 0xab, 0x38, 0x3f, 0x65, 0xcd, 0xda, 0x17, 0x86, 0xe6, 0xb5, 0x4f, 0x38, 0x6f, 0x3f, + 0xc5, 0x74, 0xcc, 0x96, 0xe0, 0x8d, 0x13, 0x34, 0x4f, 0x15, 0xd1, 0x74, 0xf3, 0x08, 0xca, 0x6f, + 0x1e, 0x9b, 0x3d, 0xa5, 0xc9, 0xc7, 0x66, 0x54, 0x3f, 0x47, 0xf8, 0x8d, 0x7f, 0x76, 0x8c, 0x9c, + 0xcb, 0xba, 0xbd, 0xe4, 0xfc, 0x5c, 0x29, 0x95, 0xba, 0xf6, 0x4b, 0xc3, 0x5f, 0x81, 0xe2, 0xf9, + 0x6c, 0xc5, 0xf5, 0xe4, 0x65, 0x3b, 0x99, 0x6d, 0xee, 0x6c, 0x8b, 0xd6, 0x59, 0x68, 0x70, 0xc4, + 0xb3, 0x10, 0x4b, 0x79, 0xf0, 0xd6, 0x09, 0xba, 0x22, 0x12, 0x19, 0xc7, 0xa9, 0xd0, 0x60, 0x09, + 0xce, 0x0f, 0x0d, 0x96, 0x7d, 0x58, 0xda, 0xc3, 0x14, 0xb6, 0x6a, 0x5c, 0x23, 0x64, 0x81, 0x00, + 0xf7, 0x24, 0xa3, 0xd7, 0x23, 0x64, 0x83, 0xbf, 0x51, 0x22, 0xa9, 0xe3, 0x61, 0x3c, 0xb1, 0x66, + 0xa6, 0x5c, 0xea, 0xc4, 0xda, 0xb0, 0xe2, 0x28, 0x06, 0x55, 0x77, 0xfc, 0x74, 0x4e, 0x55, 0xa0, + 0x30, 0x60, 0x25, 0xea, 0xc5, 0xac, 0xca, 0xa0, 0x17, 0xb3, 0xd0, 0xc2, 0x69, 0xfb, 0x87, 0xbe, + 0x34, 0x2b, 0x95, 0xf0, 0xde, 0x42, 0x20, 0xf0, 0x32, 0xf7, 0x7b, 0x15, 0x32, 0xc1, 0x6d, 0xb7, + 0x11, 0x6e, 0xcb, 0x75, 0x61, 0x46, 0x15, 0xba, 0x47, 0xc4, 0x7b, 0xb3, 0x8c, 0x76, 0x16, 0x67, + 0x28, 0x35, 0x36, 0x6d, 0x7a, 0x39, 0xcb, 0xd6, 0xe8, 0x97, 0x52, 0x91, 0x51, 0x84, 0xd3, 0x30, + 0xe6, 0x62, 0x9f, 0x90, 0x98, 0x3d, 0xba, 0x82, 0x34, 0x44, 0x52, 0xa6, 0x57, 0x0b, 0xf5, 0xa3, + 0xa1, 0xaa, 0xf1, 0xde, 0xe8, 0x6c, 0x30, 0xaa, 0x00, 0x0c, 0xda, 0x4b, 0xaf, 0x93, 0xaa, 0x42, + 0xce, 0xd3, 0x78, 0x67, 0x4c, 0x96, 0xfc, 0x53, 0x64, 0x3e, 0xd5, 0xd6, 0x50, 0x0a, 0xf3, 0x77, + 0xa9, 0x32, 0xd1, 0xf7, 0xd8, 0x1f, 0x26, 0xf6, 0x3a, 0xd7, 0xce, 0x30, 0xda, 0xc5, 0x07, 0x3e, + 0x89, 0xb9, 0xaf, 0x5f, 0xa8, 0xce, 0x28, 0x85, 0xcc, 0xd6, 0x64, 0x9a, 0xb9, 0x72, 0x76, 0x9a, + 0x39, 0xf6, 0x0e, 0x05, 0xef, 0xfb, 0x69, 0x68, 0x40, 0x9b, 0xb6, 0x06, 0xf4, 0x4c, 0x11, 0x36, + 0x18, 0xa0, 0xfa, 0xfc, 0xd5, 0x12, 0x71, 0x38, 0x42, 0xfa, 0xf1, 0x25, 0xee, 0x04, 0x31, 0x74, + 0x76, 0xcd, 0x37, 0xaa, 0x04, 0x0c, 0xac, 0x21, 0xd3, 0xee, 0xaa, 0x47, 0x4b, 0x06, 0x74, 0xec, + 0xb7, 0x2a, 0x24, 0x7d, 0x2e, 0xea, 0xbc, 0x47, 0x66, 0xf0, 0x0e, 0xc6, 0x4e, 0xd0, 0x0e, 0x92, + 0xc0, 0x8f, 0x8b, 0xf9, 0x9c, 0xd7, 0x8c, 0x1a, 0xc2, 0x27, 0x66, 0x40, 0xc0, 0xa2, 0x88, 0xc1, + 0x3c, 0xdd, 0x88, 0xaa, 0xfd, 0x6d, 0x7f, 0x8f, 0x29, 0x11, 0xea, 0xa2, 0x7e, 0x5d, 0x41, 0xc1, + 0xc0, 0xc8, 0x08, 0xc0, 0xa9, 0x9c, 0x46, 0x00, 0xce, 0xd8, 0x90, 0x01, 0x38, 0xe3, 0x85, 0x02, + 0x70, 0x80, 0x3c, 0x22, 0x5d, 0x59, 0xf8, 0x1b, 0xef, 0x02, 0xf1, 0x24, 0x51, 0x22, 0x6c, 0x6a, + 0x09, 0xef, 0xa6, 0x40, 0x26, 0x06, 0x0c, 0xa8, 0xe9, 0xf6, 0xc8, 0xd9, 0x86, 0x1f, 0x05, 0x2c, + 0x87, 0x47, 0x4b, 0x2f, 0xa7, 0xaf, 0xe3, 0x2d, 0x6a, 0x7b, 0x25, 0x0f, 0x79, 0xc5, 0xc4, 0xb8, + 0x40, 0x2d, 0x57, 0xae, 0x26, 0xe9, 0xfe, 0xb9, 0x32, 0x99, 0x14, 0xf1, 0x07, 0x23, 0xdc, 0x15, + 0xae, 0x5b, 0xc6, 0xda, 0x0b, 0x79, 0xcb, 0x90, 0x75, 0x67, 0xa0, 0x99, 0xd6, 0x48, 0x99, 0x69, + 0x2f, 0x16, 0x23, 0x77, 0xbc, 0x81, 0xf6, 0x9b, 0x65, 0xba, 0x75, 0xdb, 0x71, 0x17, 0xa3, 0x9b, + 0x8e, 0xaf, 0x90, 0xc9, 0x58, 0x04, 0x27, 0x14, 0x7a, 0x20, 0x3a, 0xfd, 0x49, 0xf5, 0xd3, 0xc7, + 0x22, 0x1c, 0x41, 0x92, 0xcb, 0x8c, 0x7f, 0xa8, 0x9c, 0x46, 0xfc, 0x83, 0xfb, 0x3d, 0x26, 0x1f, + 0xcd, 0x09, 0x3c, 0x0d, 0x01, 0xff, 0xb6, 0x2d, 0x4a, 0x5f, 0x2a, 0xc4, 0x0a, 0xa2, 0x7f, 0x03, + 0xe4, 0xe9, 0x87, 0x25, 0x32, 0x2d, 0x10, 0x4f, 0x63, 0x04, 0x3f, 0x6e, 0x8f, 0xe0, 0xd9, 0x42, + 0x23, 0x18, 0xd0, 0xf5, 0xbf, 0x55, 0x56, 0x5d, 0x2f, 0xf8, 0x06, 0xbb, 0xf9, 0xc2, 0x7a, 0x79, + 0x98, 0x17, 0xd6, 0xd5, 0xeb, 0xed, 0x95, 0x81, 0xaf, 0xb7, 0xef, 0xc8, 0x77, 0x40, 0x11, 0x26, + 0xe2, 0xbd, 0x87, 0x7d, 0x37, 0x4f, 0x07, 0xa0, 0x2a, 0x4a, 0x60, 0x50, 0x95, 0xb1, 0x51, 0xac, + 0x85, 0x71, 0xdb, 0x37, 0x78, 0x53, 0xc0, 0x41, 0x61, 0xb8, 0xaf, 0x33, 0x19, 0xcb, 0xa6, 0x67, + 0xb8, 0xa8, 0xd2, 0x1f, 0x8c, 0xab, 0x89, 0x65, 0x1e, 0x8f, 0x9b, 0xf2, 0xcd, 0xf5, 0x52, 0x91, + 0x23, 0x74, 0xe3, 0x93, 0x64, 0x3f, 0xb9, 0xee, 0xf8, 0x7d, 0xde, 0xe0, 0xd7, 0x0b, 0xcb, 0xc8, + 0x21, 0xfc, 0xbf, 0x2c, 0x79, 0x01, 0xbb, 0xb0, 0xbd, 0x59, 0x4f, 0x67, 0x7a, 0x5b, 0x93, 0x05, + 0xa0, 0x71, 0x68, 0x05, 0xae, 0x7b, 0xdb, 0xcf, 0x0f, 0x4a, 0xdd, 0x5b, 0x4e, 0x89, 0xa1, 0x7c, + 0x5f, 0x26, 0xd3, 0x2a, 0xd7, 0x6d, 0x9d, 0xa7, 0x2c, 0xad, 0xae, 0xce, 0x63, 0xe4, 0xd9, 0xba, + 0x06, 0x83, 0x89, 0x43, 0x75, 0xb4, 0xb3, 0x2d, 0x15, 0x0a, 0x57, 0xef, 0xed, 0xb4, 0x83, 0x26, + 0x56, 0xe5, 0x61, 0xe8, 0x8f, 0xe2, 0xb9, 0x67, 0xad, 0xbf, 0x18, 0xb2, 0xea, 0x38, 0xdb, 0x18, + 0x6e, 0xc6, 0x72, 0xfa, 0xca, 0x0b, 0x2b, 0x22, 0x83, 0xd2, 0x05, 0x99, 0x7e, 0xa9, 0x61, 0x17, + 0x7f, 0xcc, 0x40, 0x5c, 0x28, 0x08, 0x10, 0xa4, 0x49, 0xe0, 0x69, 0x6a, 0xdb, 0x7c, 0x9b, 0xa3, + 0x2e, 0x22, 0x02, 0xd5, 0x69, 0xaa, 0xf5, 0x72, 0x47, 0x1d, 0x52, 0xd8, 0x54, 0xda, 0x2f, 0x9a, + 0x10, 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, 0x66, 0x19, + 0x58, 0xb4, 0xdd, 0x26, 0x99, 0x4f, 0xbd, 0x8b, 0xa8, 0x1e, 0xd8, 0x2c, 0x3d, 0xa8, 0x07, 0x36, + 0x31, 0xa3, 0xc7, 0xf8, 0xb6, 0x17, 0xe4, 0xe7, 0xbe, 0x2e, 0xf4, 0x88, 0xfe, 0x6b, 0x64, 0xc2, + 0xdf, 0xdd, 0xc5, 0x07, 0xcc, 0xf9, 0xca, 0x79, 0x5c, 0x3d, 0x9b, 0xcc, 0xa0, 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, 0xf3, 0xe2, 0x1b, 0xf2, 0x7d, 0xf1, + 0x9c, 0x7e, 0x0d, 0x95, 0x92, 0x85, 0x25, 0x96, 0x45, 0xc2, 0x2a, 0x33, 0x87, 0x99, 0x58, 0x56, + 0x16, 0x80, 0xc6, 0xc1, 0x63, 0xf9, 0xb8, 0xb7, 0xc3, 0xd0, 0x53, 0xa7, 0xfc, 0x0d, 0x0e, 0x06, + 0x59, 0xee, 0x7e, 0x38, 0x4f, 0xac, 0xa1, 0x59, 0x59, 0x40, 0x4a, 0x0f, 0x3c, 0x0b, 0x08, 0xa5, + 0xee, 0x1f, 0x74, 0x93, 0xa3, 0x5a, 0x10, 0x15, 0xcb, 0xc8, 0xb4, 0x2e, 0xb0, 0xfb, 0xa9, 0xcb, + 0x12, 0x50, 0x14, 0x07, 0xe4, 0x74, 0xa9, 0x3c, 0x14, 0x39, 0x5d, 0xc6, 0xfe, 0x9f, 0xe4, 0x74, + 0xa1, 0x7a, 0xfe, 0x1e, 0x7f, 0xb0, 0x59, 0x5c, 0xd5, 0xc9, 0x39, 0x51, 0xca, 0x78, 0xdd, 0x99, + 0xdf, 0xc9, 0x10, 0x05, 0x20, 0xc9, 0x61, 0xc6, 0x10, 0xae, 0xf2, 0x8b, 0x34, 0x29, 0x2f, 0x17, + 0xf1, 0x6c, 0xf4, 0x67, 0x0c, 0x11, 0xa1, 0x1c, 0x82, 0x96, 0xcc, 0xe1, 0x32, 0xf9, 0xc9, 0x73, + 0xb8, 0xa8, 0xcc, 0x2b, 0x53, 0x0f, 0x2a, 0xf3, 0x8a, 0x95, 0xc1, 0xa6, 0x3a, 0x8a, 0x0c, 0x36, + 0x54, 0xb6, 0x9d, 0xef, 0x66, 0x25, 0x80, 0x12, 0x39, 0x54, 0xbe, 0x7c, 0x82, 0x84, 0x58, 0x56, + 0xd3, 0xec, 0x06, 0x45, 0x26, 0x1a, 0x64, 0x37, 0x2c, 0x53, 0xe1, 0x4c, 0x7f, 0xf2, 0x54, 0x38, + 0xa3, 0x4e, 0xb6, 0xa2, 0x13, 0xe3, 0xcc, 0x8e, 0x24, 0x31, 0xce, 0xdc, 0x03, 0x4c, 0x8c, 0x63, + 0xa4, 0xb4, 0x99, 0x7f, 0xb0, 0x29, 0x6d, 0xf6, 0xc9, 0x74, 0x2b, 0xbc, 0xd7, 0xb9, 0xe7, 0x45, + 0xad, 0x95, 0xfa, 0x26, 0xbb, 0x07, 0x90, 0x7b, 0xcd, 0xba, 0xa6, 0x2b, 0x58, 0x2d, 0x30, 0xad, + 0xd9, 0x28, 0x04, 0x93, 0xb4, 0x48, 0xee, 0x73, 0xe6, 0x13, 0x26, 0xf7, 0xb1, 0x52, 0xe4, 0x38, + 0xa3, 0x48, 0x91, 0xf3, 0x1e, 0xbb, 0x6c, 0xb9, 0x1b, 0xec, 0xdd, 0xf0, 0xba, 0x8b, 0x67, 0x8b, + 0xb4, 0xb0, 0x26, 0xd1, 0xfb, 0x5b, 0x50, 0x45, 0xa0, 0x89, 0xf6, 0x27, 0xe1, 0x39, 0x77, 0x2a, + 0x49, 0x78, 0xfe, 0x0c, 0x79, 0xe2, 0x78, 0x1a, 0x3a, 0x37, 0x61, 0x5d, 0x1b, 0x97, 0xa9, 0xdc, + 0x84, 0x6c, 0x7f, 0x36, 0xb0, 0x8c, 0x30, 0xc2, 0xf2, 0x71, 0x61, 0x84, 0xee, 0x3f, 0x29, 0x91, + 0x47, 0x07, 0xdc, 0xcf, 0x2f, 0x1c, 0x34, 0xdb, 0x25, 0xf3, 0x5d, 0xbb, 0x6a, 0xe1, 0xf0, 0x76, + 0x2b, 0x1f, 0x80, 0xca, 0x6d, 0x9b, 0x2a, 0x80, 0x34, 0xf9, 0xd5, 0x67, 0xbe, 0xff, 0x07, 0x4f, + 0x7c, 0xea, 0x23, 0xfa, 0xf7, 0xbb, 0xf4, 0xef, 0xa7, 0xff, 0xf0, 0x89, 0xd2, 0xf7, 0xe9, 0xdf, + 0x47, 0xf4, 0xef, 0x3f, 0xd3, 0xbf, 0x6f, 0xfd, 0xd1, 0x13, 0x9f, 0xfa, 0x89, 0xf2, 0xe1, 0xe5, + 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x44, 0x9a, 0xbd, 0xf4, 0xd9, 0xab, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/generated.proto b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/generated.proto new file mode 100644 index 0000000000..cc8d1baaca --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/generated.proto @@ -0,0 +1,2966 @@ +/* +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.api.v1; + +import "k8s.io/kubernetes/pkg/api/resource/generated.proto"; +import "k8s.io/kubernetes/pkg/api/unversioned/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 = "v1"; + +// Represents a Persistent Disk resource in AWS. +// +// An AWS EBS disk must exist before mounting to a container. The disk +// must also be in the same AWS zone as the kubelet. An AWS EBS disk +// can only be mounted as read/write once. AWS EBS volumes support +// ownership management and SELinux relabeling. +message AWSElasticBlockStoreVolumeSource { + // Unique ID of the persistent disk resource in AWS (Amazon EBS volume). + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + optional string volumeID = 1; + + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + // TODO: how do we prevent errors in the filesystem from compromising the machine + optional string fsType = 2; + + // The partition in the volume that you want to mount. + // If omitted, the default is to mount by volume name. + // Examples: For volume /dev/sda1, you specify the partition as "1". + // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + optional int32 partition = 3; + + // Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". + // If omitted, the default is "false". + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + optional bool readOnly = 4; +} + +// Affinity is a group of affinity scheduling rules. +message Affinity { + // Describes node affinity scheduling rules for the pod. + optional NodeAffinity nodeAffinity = 1; + + // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + optional PodAffinity podAffinity = 2; + + // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + optional PodAntiAffinity podAntiAffinity = 3; +} + +// AttachedVolume describes a volume attached to a node +message AttachedVolume { + // Name of the attached volume + optional string name = 1; + + // DevicePath represents the device path where the volume should be avilable + optional string devicePath = 2; +} + +// AvoidPods describes pods that should avoid this node. This is the value for a +// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +// will eventually become a field of NodeStatus. +message AvoidPods { + // Bounded-sized list of signatures of pods that should avoid this node, sorted + // in timestamp order from oldest to newest. Size of the slice is unspecified. + repeated PreferAvoidPodsEntry preferAvoidPods = 1; +} + +// 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 + optional string secretName = 1; + + // Share Name + optional string shareName = 2; + + // Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + optional bool readOnly = 3; +} + +// Binding ties one object to another. +// For example, a pod is bound to a node by a scheduler. +message Binding { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // The target object that you want to bind to the standard object. + optional ObjectReference target = 2; +} + +// Adds and removes POSIX capabilities from running containers. +message Capabilities { + // Added capabilities + repeated string add = 1; + + // Removed capabilities + repeated string drop = 2; +} + +// Represents a Ceph Filesystem mount that lasts the lifetime of a pod +// Cephfs volumes do not support ownership management or SELinux relabeling. +message CephFSVolumeSource { + // Required: Monitors is a collection of Ceph monitors + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + repeated string monitors = 1; + + // Optional: Used as the mounted root, rather than the full Ceph tree, default is / + optional string path = 2; + + // Optional: User is the rados user name, default is admin + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + optional string user = 3; + + // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + optional string secretFile = 4; + + // Optional: SecretRef is reference to the authentication secret for User, default is empty. + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + optional LocalObjectReference secretRef = 5; + + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + optional bool readOnly = 6; +} + +// Represents a cinder volume resource in Openstack. +// A Cinder volume must exist before mounting to a container. +// The volume must also be in the same region as the kubelet. +// Cinder volumes support ownership management and SELinux relabeling. +message CinderVolumeSource { + // volume id used to identify the volume in cinder + // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + optional string volumeID = 1; + + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + optional string fsType = 2; + + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + optional bool readOnly = 3; +} + +// Information about the condition of a component. +message ComponentCondition { + // Type of condition for a component. + // Valid value: "Healthy" + optional string type = 1; + + // Status of the condition for a component. + // Valid values for "Healthy": "True", "False", or "Unknown". + optional string status = 2; + + // Message about the condition for a component. + // For example, information about a health check. + optional string message = 3; + + // Condition error code for a component. + // For example, a health check error code. + optional string error = 4; +} + +// ComponentStatus (and ComponentStatusList) holds the cluster validation info. +message ComponentStatus { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // List of component conditions observed + repeated ComponentCondition conditions = 2; +} + +// Status of all the conditions for the component as a list of ComponentStatus objects. +message ComponentStatusList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of ComponentStatus objects. + repeated ComponentStatus items = 2; +} + +// ConfigMap holds configuration data for pods to consume. +message ConfigMap { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Data contains the configuration data. + // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + map data = 2; +} + +// Selects a key from a ConfigMap. +message ConfigMapKeySelector { + // The ConfigMap to select from. + optional LocalObjectReference localObjectReference = 1; + + // The key to select. + optional string key = 2; +} + +// ConfigMapList is a resource containing a list of ConfigMap objects. +message ConfigMapList { + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // Items is the list of ConfigMaps. + repeated ConfigMap items = 2; +} + +// Adapts a ConfigMap into a volume. +// +// The 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. +message ConfigMapVolumeSource { + optional LocalObjectReference localObjectReference = 1; + + // 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 '..'. + repeated KeyToPath items = 2; +} + +// A single application container that you want to run within a pod. +message Container { + // Name of the container specified as a DNS_LABEL. + // Each container in a pod must have a unique name (DNS_LABEL). + // Cannot be updated. + optional string name = 1; + + // Docker image name. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md + optional string image = 2; + + // Entrypoint array. Not executed within a shell. + // The docker image's ENTRYPOINT is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands + repeated string command = 3; + + // Arguments to the entrypoint. + // The docker image's CMD is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands + repeated string args = 4; + + // Container's working directory. + // If not specified, the container runtime's default will be used, which + // might be configured in the container image. + // Cannot be updated. + optional string workingDir = 5; + + // List of ports to expose from the container. Exposing a port here gives + // the system additional information about the network connections a + // container uses, but is primarily informational. Not specifying a port here + // DOES NOT prevent that port from being exposed. Any port which is + // listening on the default "0.0.0.0" address inside a container will be + // accessible from the network. + // Cannot be updated. + repeated ContainerPort ports = 6; + + // List of environment variables to set in the container. + // Cannot be updated. + repeated EnvVar env = 7; + + // Compute Resources required by this container. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources + optional ResourceRequirements resources = 8; + + // Pod volumes to mount into the container's filesystem. + // Cannot be updated. + repeated VolumeMount volumeMounts = 9; + + // Periodic probe of container liveness. + // Container will be restarted if the probe fails. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + optional Probe livenessProbe = 10; + + // Periodic probe of container service readiness. + // Container will be removed from service endpoints if the probe fails. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + optional Probe readinessProbe = 11; + + // Actions that the management system should take in response to container lifecycle events. + // Cannot be updated. + optional Lifecycle lifecycle = 12; + + // Optional: Path at which the file to which the container's termination message + // will be written is mounted into the container's filesystem. + // Message written is intended to be brief final status, such as an assertion failure message. + // Defaults to /dev/termination-log. + // Cannot be updated. + optional string terminationMessagePath = 13; + + // Image pull policy. + // One of Always, Never, IfNotPresent. + // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#updating-images + optional string imagePullPolicy = 14; + + // Security options the pod should run with. + // More info: http://releases.k8s.io/HEAD/docs/design/security_context.md + optional SecurityContext securityContext = 15; + + // Whether this container should allocate a buffer for stdin in the container runtime. If this + // is not set, reads from stdin in the container will always result in EOF. + // Default is false. + optional bool stdin = 16; + + // Whether the container runtime should close the stdin channel after it has been opened by + // a single attach. When stdin is true the stdin stream will remain open across multiple attach + // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the + // first client attaches to stdin, and then remains open and accepts data until the client disconnects, + // at which time stdin is closed and remains closed until the container is restarted. If this + // flag is false, a container processes that reads from stdin will never receive an EOF. + // Default is false + optional bool stdinOnce = 17; + + // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. + // Default is false. + optional bool tty = 18; +} + +// Describe a container image +message ContainerImage { + // Names by which this image is known. + // e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + repeated string names = 1; + + // The size of the image in bytes. + optional int64 sizeBytes = 2; +} + +// ContainerPort represents a network port in a single container. +message ContainerPort { + // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each + // named port in a pod must have a unique name. Name for the port that can be + // referred to by services. + optional string name = 1; + + // Number of port to expose on the host. + // If specified, this must be a valid port number, 0 < x < 65536. + // If HostNetwork is specified, this must match ContainerPort. + // Most containers do not need this. + optional int32 hostPort = 2; + + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + optional int32 containerPort = 3; + + // Protocol for port. Must be UDP or TCP. + // Defaults to "TCP". + optional string protocol = 4; + + // What host IP to bind the external port to. + optional string hostIP = 5; +} + +// ContainerState holds a possible state of container. +// Only one of its members may be specified. +// If none of them is specified, the default one is ContainerStateWaiting. +message ContainerState { + // Details about a waiting container + optional ContainerStateWaiting waiting = 1; + + // Details about a running container + optional ContainerStateRunning running = 2; + + // Details about a terminated container + optional ContainerStateTerminated terminated = 3; +} + +// ContainerStateRunning is a running state of a container. +message ContainerStateRunning { + // Time at which the container was last (re-)started + optional k8s.io.kubernetes.pkg.api.unversioned.Time startedAt = 1; +} + +// ContainerStateTerminated is a terminated state of a container. +message ContainerStateTerminated { + // Exit status from the last termination of the container + optional int32 exitCode = 1; + + // Signal from the last termination of the container + optional int32 signal = 2; + + // (brief) reason from the last termination of the container + optional string reason = 3; + + // Message regarding the last termination of the container + optional string message = 4; + + // Time at which previous execution of the container started + optional k8s.io.kubernetes.pkg.api.unversioned.Time startedAt = 5; + + // Time at which the container last terminated + optional k8s.io.kubernetes.pkg.api.unversioned.Time finishedAt = 6; + + // Container's ID in the format 'docker://' + optional string containerID = 7; +} + +// ContainerStateWaiting is a waiting state of a container. +message ContainerStateWaiting { + // (brief) reason the container is not yet running. + optional string reason = 1; + + // Message regarding why the container is not yet running. + optional string message = 2; +} + +// ContainerStatus contains details for the current status of this container. +message ContainerStatus { + // This must be a DNS_LABEL. Each container in a pod must have a unique name. + // Cannot be updated. + optional string name = 1; + + // Details about the container's current condition. + optional ContainerState state = 2; + + // Details about the container's last termination condition. + optional ContainerState lastState = 3; + + // Specifies whether the container has passed its readiness probe. + optional bool ready = 4; + + // The number of times the container has been restarted, currently based on + // the number of dead containers that have not yet been removed. + // Note that this is calculated from dead containers. But those containers are subject to + // garbage collection. This value will get capped at 5 by GC. + optional int32 restartCount = 5; + + // The image the container is running. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md + // TODO(dchen1107): Which image the container is running with? + optional string image = 6; + + // ImageID of the container's image. + optional string imageID = 7; + + // Container's ID in the format 'docker://'. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#container-information + optional string containerID = 8; +} + +// DaemonEndpoint contains information about a single Daemon endpoint. +message DaemonEndpoint { + // Port number of the given endpoint. + optional int32 Port = 1; +} + +// DeleteOptions may be provided when deleting an API object +message DeleteOptions { + // The duration in seconds before the object should be deleted. Value must be non-negative integer. + // The value zero indicates delete immediately. If this value is nil, the default grace period for the + // specified type will be used. + // Defaults to a per object value if not specified. zero means delete immediately. + optional int64 gracePeriodSeconds = 1; + + // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + // returned. + optional Preconditions preconditions = 2; + + // Should the dependent objects be orphaned. If true/false, the "orphan" + // finalizer will be added to/removed from the object's finalizers list. + optional bool orphanDependents = 3; +} + +// DownwardAPIVolumeFile represents information to create the file containing the pod field +message DownwardAPIVolumeFile { + // 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 '..' + optional string path = 1; + + // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + optional ObjectFieldSelector fieldRef = 2; + + // 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; +} + +// DownwardAPIVolumeSource represents a volume containing downward API info. +// Downward API volumes support ownership management and SELinux relabeling. +message DownwardAPIVolumeSource { + // Items is a list of downward API volume file + repeated DownwardAPIVolumeFile items = 1; +} + +// Represents an empty directory for a pod. +// Empty directory volumes support ownership management and SELinux relabeling. +message EmptyDirVolumeSource { + // What type of storage medium should back this directory. + // The default is "" which means to use the node's default medium. + // Must be an empty string (default) or Memory. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir + optional string medium = 1; +} + +// EndpointAddress is a tuple that describes single IP address. +message EndpointAddress { + // The IP of this endpoint. + // May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), + // or link-local multicast ((224.0.0.0/24). + // IPv6 is also accepted but not fully supported on all platforms. Also, certain + // kubernetes components, like kube-proxy, are not IPv6 ready. + // TODO: This should allow hostname or IP, See #4447. + optional string ip = 1; + + // The Hostname of this endpoint + optional string hostname = 3; + + // Reference to object providing the endpoint. + optional ObjectReference targetRef = 2; +} + +// EndpointPort is a tuple that describes a single port. +message EndpointPort { + // The name of this port (corresponds to ServicePort.Name). + // Must be a DNS_LABEL. + // Optional only if one port is defined. + optional string name = 1; + + // The port number of the endpoint. + optional int32 port = 2; + + // The IP protocol for this port. + // Must be UDP or TCP. + // Default is TCP. + optional string protocol = 3; +} + +// EndpointSubset is a group of addresses with a common set of ports. The +// expanded set of endpoints is the Cartesian product of Addresses x Ports. +// For example, given: +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// } +// The resulting set of endpoints can be viewed as: +// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], +// b: [ 10.10.1.1:309, 10.10.2.2:309 ] +message EndpointSubset { + // IP addresses which offer the related ports that are marked as ready. These endpoints + // should be considered safe for load balancers and clients to utilize. + repeated EndpointAddress addresses = 1; + + // IP addresses which offer the related ports but are not currently marked as ready + // because they have not yet finished starting, have recently failed a readiness check, + // or have recently failed a liveness check. + repeated EndpointAddress notReadyAddresses = 2; + + // Port numbers available on the related IP addresses. + repeated EndpointPort ports = 3; +} + +// Endpoints is a collection of endpoints that implement the actual service. Example: +// Name: "mysvc", +// Subsets: [ +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// }, +// { +// Addresses: [{"ip": "10.10.3.3"}], +// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] +// }, +// ] +message Endpoints { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // The set of all endpoints is the union of all subsets. Addresses are placed into + // subsets according to the IPs they share. A single address with multiple ports, + // some of which are ready and some of which are not (because they come from + // different containers) will result in the address being displayed in different + // subsets for the different ports. No address will appear in both Addresses and + // NotReadyAddresses in the same subset. + // Sets of addresses and ports that comprise a service. + repeated EndpointSubset subsets = 2; +} + +// EndpointsList is a list of endpoints. +message EndpointsList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of endpoints. + repeated Endpoints items = 2; +} + +// EnvVar represents an environment variable present in a Container. +message EnvVar { + // Name of the environment variable. Must be a C_IDENTIFIER. + optional string name = 1; + + // Variable references $(VAR_NAME) are expanded + // using the previous defined environment variables in the container and + // any service environment variables. If a variable cannot be resolved, + // the reference in the input string will be unchanged. The $(VAR_NAME) + // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + // references will never be expanded, regardless of whether the variable + // exists or not. + // Defaults to "". + optional string value = 2; + + // Source for the environment variable's value. Cannot be used if value is not empty. + optional EnvVarSource valueFrom = 3; +} + +// EnvVarSource represents a source for the value of an EnvVar. +message EnvVarSource { + // Selects a field of the pod; only name and namespace are supported. + optional ObjectFieldSelector fieldRef = 1; + + // 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 = 2; + + // Selects a key of a ConfigMap. + optional ConfigMapKeySelector configMapKeyRef = 3; + + // Selects a key of a secret in the pod's namespace + optional SecretKeySelector secretKeyRef = 4; +} + +// Event is a report of an event somewhere in the cluster. +// TODO: Decide whether to store these separately or with the object they apply to. +message Event { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // The object that this event is about. + optional ObjectReference involvedObject = 2; + + // This should be a short, machine understandable string that gives the reason + // for the transition into the object's current status. + // TODO: provide exact specification for format. + optional string reason = 3; + + // A human-readable description of the status of this operation. + // TODO: decide on maximum length. + optional string message = 4; + + // The component reporting this event. Should be a short machine understandable string. + optional EventSource source = 5; + + // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + optional k8s.io.kubernetes.pkg.api.unversioned.Time firstTimestamp = 6; + + // The time at which the most recent occurrence of this event was recorded. + optional k8s.io.kubernetes.pkg.api.unversioned.Time lastTimestamp = 7; + + // The number of times this event has occurred. + optional int32 count = 8; + + // Type of this event (Normal, Warning), new types could be added in the future + optional string type = 9; +} + +// EventList is a list of events. +message EventList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of events + repeated Event items = 2; +} + +// EventSource contains information for an event. +message EventSource { + // Component from which the event is generated. + optional string component = 1; + + // Host name on which the event is generated. + optional string host = 2; +} + +// ExecAction describes a "run in container" action. +message ExecAction { + // Command is the command line to execute inside the container, the working directory for the + // command is root ('/') in the container's filesystem. The command is simply exec'd, it is + // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use + // a shell, you need to explicitly call out to that shell. + // Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + repeated string command = 1; +} + +// ExportOptions is the query options to the standard REST get call. +message ExportOptions { + // Should this value be exported. Export strips fields that a user can not specify. + optional bool export = 1; + + // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + optional bool exact = 2; +} + +// Represents a Fibre Channel volume. +// Fibre Channel volumes can only be mounted as read/write once. +// Fibre Channel volumes support ownership management and SELinux relabeling. +message FCVolumeSource { + // Required: FC target world wide names (WWNs) + repeated string targetWWNs = 1; + + // Required: FC target lun number + optional int32 lun = 2; + + // 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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + optional string fsType = 3; + + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + optional bool readOnly = 4; +} + +// 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. +message FlexVolumeSource { + // Driver is the name of the driver to use for this volume. + optional string driver = 1; + + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + optional string fsType = 2; + + // Optional: SecretRef is reference to the secret object containing + // sensitive information to pass to the plugin scripts. This may be + // empty if no secret object is specified. If the secret object + // contains more than one secret, all secrets are passed to the plugin + // scripts. + optional LocalObjectReference secretRef = 3; + + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + optional bool readOnly = 4; + + // Optional: Extra command options if any. + map options = 5; +} + +// Represents a Flocker volume mounted by the Flocker agent. +// Flocker volumes do not support ownership management or SELinux relabeling. +message FlockerVolumeSource { + // Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker + optional string datasetName = 1; +} + +// Represents a Persistent Disk resource in Google Compute Engine. +// +// A GCE PD must exist before mounting to a container. The disk must +// also be in the same GCE project and zone as the kubelet. A GCE PD +// can only be mounted as read/write once or read-only many times. GCE +// PDs support ownership management and SELinux relabeling. +message GCEPersistentDiskVolumeSource { + // Unique name of the PD resource in GCE. Used to identify the disk in GCE. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + optional string pdName = 1; + + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + // TODO: how do we prevent errors in the filesystem from compromising the machine + optional string fsType = 2; + + // The partition in the volume that you want to mount. + // If omitted, the default is to mount by volume name. + // Examples: For volume /dev/sda1, you specify the partition as "1". + // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + optional int32 partition = 3; + + // ReadOnly here will force the ReadOnly setting in VolumeMounts. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + optional bool readOnly = 4; +} + +// Represents a volume that is populated with the contents of a git repository. +// Git repo volumes do not support ownership management. +// Git repo volumes support SELinux relabeling. +message GitRepoVolumeSource { + // Repository URL + optional string repository = 1; + + // Commit hash for the specified revision. + optional string revision = 2; + + // Target directory name. + // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the + // git repository. Otherwise, if specified, the volume will contain the git repository in + // the subdirectory with the given name. + optional string directory = 3; +} + +// Represents a Glusterfs mount that lasts the lifetime of a pod. +// Glusterfs volumes do not support ownership management or SELinux relabeling. +message GlusterfsVolumeSource { + // EndpointsName is the endpoint name that details Glusterfs topology. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + optional string endpoints = 1; + + // Path is the Glusterfs volume path. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + optional string path = 2; + + // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + optional bool readOnly = 3; +} + +// HTTPGetAction describes an action based on HTTP Get requests. +message HTTPGetAction { + // Path to access on the HTTP server. + optional string path = 1; + + // Name or number of the port to access on the container. + // Number must be in the range 1 to 65535. + // Name must be an IANA_SVC_NAME. + optional k8s.io.kubernetes.pkg.util.intstr.IntOrString port = 2; + + // Host name to connect to, defaults to the pod IP. You probably want to set + // "Host" in httpHeaders instead. + optional string host = 3; + + // Scheme to use for connecting to the host. + // Defaults to HTTP. + optional string scheme = 4; + + // Custom headers to set in the request. HTTP allows repeated headers. + repeated HTTPHeader httpHeaders = 5; +} + +// HTTPHeader describes a custom header to be used in HTTP probes +message HTTPHeader { + // The header field name + optional string name = 1; + + // The header field value + optional string value = 2; +} + +// Handler defines a specific action that should be taken +// TODO: pass structured data to these actions, and document that data here. +message Handler { + // One and only one of the following should be specified. + // Exec specifies the action to take. + optional ExecAction exec = 1; + + // HTTPGet specifies the http request to perform. + optional HTTPGetAction httpGet = 2; + + // TCPSocket specifies an action involving a TCP port. + // TCP hooks not yet supported + // TODO: implement a realistic TCP lifecycle hook + optional TCPSocketAction tcpSocket = 3; +} + +// Represents a host path mapped into a pod. +// Host path volumes do not support ownership management or SELinux relabeling. +message HostPathVolumeSource { + // Path of the directory on the host. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath + optional string path = 1; +} + +// Represents an ISCSI disk. +// ISCSI volumes can only be mounted as read/write once. +// ISCSI volumes support ownership management and SELinux relabeling. +message ISCSIVolumeSource { + // iSCSI target portal. The portal is either an IP or ip_addr:port if the port + // is other than default (typically TCP ports 860 and 3260). + optional string targetPortal = 1; + + // Target iSCSI Qualified Name. + optional string iqn = 2; + + // iSCSI target lun number. + optional int32 lun = 3; + + // Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + optional string iscsiInterface = 4; + + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#iscsi + // TODO: how do we prevent errors in the filesystem from compromising the machine + optional string fsType = 5; + + // ReadOnly here will force the ReadOnly setting in VolumeMounts. + // Defaults to false. + optional bool readOnly = 6; +} + +// Maps a string key to a path within a volume. +message KeyToPath { + // The key to project. + optional string key = 1; + + // 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 '..'. + optional string path = 2; +} + +// Lifecycle describes actions that the management system should take in response to container lifecycle +// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks +// until the action is complete, unless the container process fails, in which case the handler is aborted. +message Lifecycle { + // PostStart is called immediately after a container is created. If the handler fails, + // the container is terminated and restarted according to its restart policy. + // Other management of the container blocks until the hook completes. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details + optional Handler postStart = 1; + + // PreStop is called immediately before a container is terminated. + // The container is terminated after the handler completes. + // The reason for termination is passed to the handler. + // Regardless of the outcome of the handler, the container is eventually terminated. + // Other management of the container blocks until the hook completes. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details + optional Handler preStop = 2; +} + +// LimitRange sets resource usage limits for each kind of resource in a Namespace. +message LimitRange { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the limits enforced. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional LimitRangeSpec spec = 2; +} + +// LimitRangeItem defines a min/max usage limit for any resource that matches on kind. +message LimitRangeItem { + // Type of resource that this limit applies to. + optional string type = 1; + + // Max usage constraints on this kind by resource name. + map max = 2; + + // Min usage constraints on this kind by resource name. + map min = 3; + + // Default resource requirement limit value by resource name if resource limit is omitted. + map default = 4; + + // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + map defaultRequest = 5; + + // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + map maxLimitRequestRatio = 6; +} + +// LimitRangeList is a list of LimitRange items. +message LimitRangeList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // Items is a list of LimitRange objects. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md + repeated LimitRange items = 2; +} + +// LimitRangeSpec defines a min/max usage limit for resources that match on kind. +message LimitRangeSpec { + // Limits is the list of LimitRangeItem objects that are enforced. + repeated LimitRangeItem limits = 1; +} + +// List holds a list of objects, which may not be known by the server. +message List { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of objects + repeated k8s.io.kubernetes.pkg.runtime.RawExtension items = 2; +} + +// ListOptions is the query options to a standard REST list call. +message ListOptions { + // A selector to restrict the list of returned objects by their labels. + // Defaults to everything. + optional string labelSelector = 1; + + // A selector to restrict the list of returned objects by their fields. + // Defaults to everything. + optional string fieldSelector = 2; + + // Watch for changes to the described resources and return them as a stream of + // add, update, and remove notifications. Specify resourceVersion. + optional bool watch = 3; + + // When specified with a watch call, shows changes that occur after that particular version of a resource. + // Defaults to changes from the beginning of history. + optional string resourceVersion = 4; + + // Timeout for the list/watch call. + optional int64 timeoutSeconds = 5; +} + +// LoadBalancerIngress represents the status of a load-balancer ingress point: +// traffic intended for the service should be sent to an ingress point. +message LoadBalancerIngress { + // IP is set for load-balancer ingress points that are IP based + // (typically GCE or OpenStack load-balancers) + optional string ip = 1; + + // Hostname is set for load-balancer ingress points that are DNS based + // (typically AWS load-balancers) + optional string hostname = 2; +} + +// LoadBalancerStatus represents the status of a load-balancer. +message LoadBalancerStatus { + // Ingress is a list containing ingress points for the load-balancer. + // Traffic intended for the service should be sent to these ingress points. + repeated LoadBalancerIngress ingress = 1; +} + +// LocalObjectReference contains enough information to let you locate the +// referenced object inside the same namespace. +message LocalObjectReference { + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + // TODO: Add other useful fields. apiVersion, kind, uid? + optional string name = 1; +} + +// Represents an NFS mount that lasts the lifetime of a pod. +// NFS volumes do not support ownership management or SELinux relabeling. +message NFSVolumeSource { + // Server is the hostname or IP address of the NFS server. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + optional string server = 1; + + // Path that is exported by the NFS server. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + optional string path = 2; + + // ReadOnly here will force + // the NFS export to be mounted with read-only permissions. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + optional bool readOnly = 3; +} + +// Namespace provides a scope for Names. +// Use of multiple namespaces is optional. +message Namespace { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the behavior of the Namespace. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional NamespaceSpec spec = 2; + + // Status describes the current status of a Namespace. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional NamespaceStatus status = 3; +} + +// NamespaceList is a list of Namespaces. +message NamespaceList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // Items is the list of Namespace objects in the list. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + repeated Namespace items = 2; +} + +// NamespaceSpec describes the attributes on a Namespace. +message NamespaceSpec { + // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. + // More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers + repeated string finalizers = 1; +} + +// NamespaceStatus is information about the current status of a Namespace. +message NamespaceStatus { + // Phase is the current lifecycle phase of the namespace. + // More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases + optional string phase = 1; +} + +// Node is a worker node in Kubernetes, formerly known as minion. +// Each node will have a unique identifier in the cache (i.e. in etcd). +message Node { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the behavior of a node. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional NodeSpec spec = 2; + + // Most recently observed status of the node. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional NodeStatus status = 3; +} + +// NodeAddress contains information for the node's address. +message NodeAddress { + // Node address type, one of Hostname, ExternalIP or InternalIP. + optional string type = 1; + + // The node address. + optional string address = 2; +} + +// Node affinity is a group of node affinity scheduling rules. +message NodeAffinity { + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to an update), the system + // may or may not try to eventually evict the pod from its node. + optional NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; + + // The scheduler will prefer to schedule pods to nodes that satisfy + // the affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node matches the corresponding matchExpressions; the + // node(s) with the highest sum are the most preferred. + repeated PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; +} + +// NodeCondition contains condition infromation for a node. +message NodeCondition { + // Type of node condition. + optional string type = 1; + + // Status of the condition, one of True, False, Unknown. + optional string status = 2; + + // Last time we got an update on a given condition. + optional k8s.io.kubernetes.pkg.api.unversioned.Time lastHeartbeatTime = 3; + + // Last time the condition transit from one status to another. + optional k8s.io.kubernetes.pkg.api.unversioned.Time lastTransitionTime = 4; + + // (brief) reason for the condition's last transition. + optional string reason = 5; + + // Human readable message indicating details about last transition. + optional string message = 6; +} + +// NodeDaemonEndpoints lists ports opened by daemons running on the Node. +message NodeDaemonEndpoints { + // Endpoint on which Kubelet is listening. + optional DaemonEndpoint kubeletEndpoint = 1; +} + +// NodeList is the whole list of all Nodes which have been registered with master. +message NodeList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of nodes + repeated Node items = 2; +} + +// NodeProxyOptions is the query options to a Node's proxy call. +message NodeProxyOptions { + // Path is the URL path to use for the current proxy request to node. + optional string path = 1; +} + +// A node selector represents the union of the results of one or more label queries +// over a set of nodes; that is, it represents the OR of the selectors represented +// by the node selector terms. +message NodeSelector { + // Required. A list of node selector terms. The terms are ORed. + repeated NodeSelectorTerm nodeSelectorTerms = 1; +} + +// A node selector requirement is a selector that contains values, a key, and an operator +// that relates the key and values. +message NodeSelectorRequirement { + // The label key that the selector applies to. + optional string key = 1; + + // Represents a key's relationship to a set of values. + // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + optional string operator = 2; + + // An array of string values. If the operator is In or NotIn, + // the values array must be non-empty. If the operator is Exists or DoesNotExist, + // the values array must be empty. If the operator is Gt or Lt, the values + // array must have a single element, which will be interpreted as an integer. + // This array is replaced during a strategic merge patch. + repeated string values = 3; +} + +// A null or empty node selector term matches no objects. +message NodeSelectorTerm { + // Required. A list of node selector requirements. The requirements are ANDed. + repeated NodeSelectorRequirement matchExpressions = 1; +} + +// NodeSpec describes the attributes that a node is created with. +message NodeSpec { + // PodCIDR represents the pod IP range assigned to the node. + optional string podCIDR = 1; + + // External ID of the node assigned by some machine database (e.g. a cloud provider). + // Deprecated. + optional string externalID = 2; + + // ID of the node assigned by the cloud provider in the format: :// + optional string providerID = 3; + + // Unschedulable controls node schedulability of new pods. By default, node is schedulable. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration"` + optional bool unschedulable = 4; +} + +// NodeStatus is information about the current status of a node. +message NodeStatus { + // Capacity represents the total resources of a node. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity for more details. + map capacity = 1; + + // Allocatable represents the resources of a node that are available for scheduling. + // Defaults to Capacity. + map allocatable = 2; + + // NodePhase is the recently observed lifecycle phase of the node. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase + optional string phase = 3; + + // Conditions is an array of current observed node conditions. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition + repeated NodeCondition conditions = 4; + + // List of addresses reachable to the node. + // Queried from cloud provider, if available. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses + repeated NodeAddress addresses = 5; + + // Endpoints of daemons running on the Node. + optional NodeDaemonEndpoints daemonEndpoints = 6; + + // Set of ids/uuids to uniquely identify the node. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info + optional NodeSystemInfo nodeInfo = 7; + + // List of container images on this node + repeated ContainerImage images = 8; + + // List of attachable volumes in use (mounted) by the node. + repeated string volumesInUse = 9; + + // List of volumes that are attached to the node. + repeated AttachedVolume volumesAttached = 10; +} + +// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. +message NodeSystemInfo { + // Machine ID reported by the node. + optional string machineID = 1; + + // System UUID reported by the node. + optional string systemUUID = 2; + + // Boot ID reported by the node. + optional string bootID = 3; + + // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + optional string kernelVersion = 4; + + // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + optional string osImage = 5; + + // ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + optional string containerRuntimeVersion = 6; + + // Kubelet Version reported by the node. + optional string kubeletVersion = 7; + + // KubeProxy Version reported by the node. + optional string kubeProxyVersion = 8; + + // The Operating System reported by the node + optional string operatingSystem = 9; + + // The Architecture reported by the node + optional string architecture = 10; +} + +// ObjectFieldSelector selects an APIVersioned field of an object. +message ObjectFieldSelector { + // Version of the schema the FieldPath is written in terms of, defaults to "v1". + optional string apiVersion = 1; + + // Path of the field to select in the specified API version. + optional string fieldPath = 2; +} + +// ObjectMeta is metadata that all persisted resources must have, which includes all objects +// users must create. +message ObjectMeta { + // Name must be unique within a namespace. Is required when creating resources, although + // some resources may allow a client to request the generation of an appropriate name + // automatically. Name is primarily intended for creation idempotence and configuration + // definition. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + optional string name = 1; + + // GenerateName is an optional prefix, used by the server, to generate a unique + // name ONLY IF the Name field has not been provided. + // If this field is used, the name returned to the client will be different + // than the name passed. This value will also be combined with a unique suffix. + // The provided value has the same validation rules as the Name field, + // and may be truncated by the length of the suffix required to make the value + // unique on the server. + // + // If this field is specified and the generated name exists, the server will + // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + // ServerTimeout indicating a unique name could not be found in the time allotted, and the client + // should retry (optionally after the time indicated in the Retry-After header). + // + // Applied only if Name is not specified. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency + optional string generateName = 2; + + // Namespace defines the space within each name must be unique. An empty namespace is + // equivalent to the "default" namespace, but "default" is the canonical representation. + // Not all objects are required to be scoped to a namespace - the value of this field for + // those objects will be empty. + // + // Must be a DNS_LABEL. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + optional string namespace = 3; + + // SelfLink is a URL representing this object. + // Populated by the system. + // Read-only. + optional string selfLink = 4; + + // UID is the unique in time and space value for this object. It is typically generated by + // the server on successful creation of a resource and is not allowed to change on PUT + // operations. + // + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + optional string uid = 5; + + // An opaque value that represents the internal version of this object that can + // be used by clients to determine when objects have changed. May be used for optimistic + // concurrency, change detection, and the watch operation on a resource or set of resources. + // Clients must treat these values as opaque and passed unmodified back to the server. + // They may only be valid for a particular resource or set of resources. + // + // Populated by the system. + // Read-only. + // Value must be treated as opaque by clients and . + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + optional string resourceVersion = 6; + + // A sequence number representing a specific generation of the desired state. + // Populated by the system. Read-only. + optional int64 generation = 7; + + // CreationTimestamp is a timestamp representing the server time when this object was + // created. It is not guaranteed to be set in happens-before order across separate operations. + // Clients may not set this value. It is represented in RFC3339 form and is in UTC. + // + // Populated by the system. + // Read-only. + // Null for lists. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional k8s.io.kubernetes.pkg.api.unversioned.Time creationTimestamp = 8; + + // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + // field is set by the server when a graceful deletion is requested by the user, and is not + // directly settable by a client. The resource will be deleted (no longer visible from + // resource lists, and not reachable by name) after the time in this field. Once set, this + // value may not be unset or be set further into the future, although it may be shortened + // or the resource may be deleted prior to this time. For example, a user may request that + // a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + // signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet + // will send a hard termination signal to the container. + // If not set, graceful deletion of the object has not been requested. + // + // Populated by the system when a graceful deletion is requested. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional k8s.io.kubernetes.pkg.api.unversioned.Time deletionTimestamp = 9; + + // Number of seconds allowed for this object to gracefully terminate before + // it will be removed from the system. Only set when deletionTimestamp is also set. + // May only be shortened. + // Read-only. + optional int64 deletionGracePeriodSeconds = 10; + + // Map of string keys and values that can be used to organize and categorize + // (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 + // 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 + map annotations = 12; + + // 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. + repeated OwnerReference ownerReferences = 13; + + // 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. + repeated string finalizers = 14; +} + +// ObjectReference contains enough information to let you inspect or modify the referred object. +message ObjectReference { + // Kind of the referent. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional string kind = 1; + + // Namespace of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + optional string namespace = 2; + + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + optional string name = 3; + + // UID of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + optional string uid = 4; + + // API version of the referent. + optional string apiVersion = 5; + + // Specific resourceVersion to which this reference is made, if any. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + optional string resourceVersion = 6; + + // If referring to a piece of an object instead of an entire object, this string + // should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. + // For example, if the object reference is to a container within a pod, this would take on a value like: + // "spec.containers{name}" (where "name" refers to the name of the container that triggered + // the event) or if no container name is specified "spec.containers[2]" (container with + // index 2 in this pod). This syntax is chosen only to have some well-defined way of + // referencing a part of an object. + // TODO: this design is not final and this field is subject to change in the future. + optional string fieldPath = 7; +} + +// OwnerReference contains enough information to let you identify an owning +// object. Currently, an owning object must be in the same namespace, so there +// is no namespace field. +message OwnerReference { + // API version of the referent. + optional string apiVersion = 5; + + // Kind of the referent. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional string kind = 1; + + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + optional string name = 3; + + // UID of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + optional string uid = 4; + + // If true, this reference points to the managing controller. + optional bool controller = 6; +} + +// PersistentVolume (PV) is a storage resource provisioned by an administrator. +// It is analogous to a node. +// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md +message PersistentVolume { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines a specification of a persistent volume owned by the cluster. + // Provisioned by an administrator. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistent-volumes + optional PersistentVolumeSpec spec = 2; + + // Status represents the current information/status for the persistent volume. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistent-volumes + optional PersistentVolumeStatus status = 3; +} + +// PersistentVolumeClaim is a user's request for and claim to a persistent volume +message PersistentVolumeClaim { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the desired characteristics of a volume requested by a pod author. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + optional PersistentVolumeClaimSpec spec = 2; + + // Status represents the current information/status of a persistent volume claim. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + optional PersistentVolumeClaimStatus status = 3; +} + +// PersistentVolumeClaimList is a list of PersistentVolumeClaim items. +message PersistentVolumeClaimList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // A list of persistent volume claims. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + repeated PersistentVolumeClaim items = 2; +} + +// PersistentVolumeClaimSpec describes the common attributes of storage devices +// and allows a Source for provider-specific attributes +message PersistentVolumeClaimSpec { + // AccessModes contains the desired access modes the volume should have. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1 + repeated string accessModes = 1; + + // A label query over volumes to consider for binding. + optional k8s.io.kubernetes.pkg.api.unversioned.LabelSelector selector = 4; + + // Resources represents the minimum resources the volume should have. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources + optional ResourceRequirements resources = 2; + + // VolumeName is the binding reference to the PersistentVolume backing this claim. + optional string volumeName = 3; +} + +// PersistentVolumeClaimStatus is the current status of a persistent volume claim. +message PersistentVolumeClaimStatus { + // Phase represents the current phase of PersistentVolumeClaim. + optional string phase = 1; + + // AccessModes contains the actual access modes the volume backing the PVC has. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1 + repeated string accessModes = 2; + + // Represents the actual resources of the underlying volume. + map capacity = 3; +} + +// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. +// This volume finds the bound PV and mounts that volume for the pod. A +// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another +// type of volume that is owned by someone else (the system). +message PersistentVolumeClaimVolumeSource { + // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + optional string claimName = 1; + + // Will force the ReadOnly setting in VolumeMounts. + // Default false. + optional bool readOnly = 2; +} + +// PersistentVolumeList is a list of PersistentVolume items. +message PersistentVolumeList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of persistent volumes. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md + repeated PersistentVolume items = 2; +} + +// PersistentVolumeSource is similar to VolumeSource but meant for the +// administrator who creates PVs. Exactly one of its members must be set. +message PersistentVolumeSource { + // GCEPersistentDisk represents a GCE Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. Provisioned by an admin. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + optional GCEPersistentDiskVolumeSource gcePersistentDisk = 1; + + // AWSElasticBlockStore represents an AWS Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + optional AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; + + // HostPath represents a directory on the host. + // Provisioned by a developer or tester. + // This is useful for single-node development and testing only! + // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath + optional HostPathVolumeSource hostPath = 3; + + // Glusterfs represents a Glusterfs volume that is attached to a host and + // exposed to the pod. Provisioned by an admin. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + optional GlusterfsVolumeSource glusterfs = 4; + + // NFS represents an NFS mount on the host. Provisioned by an admin. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + optional NFSVolumeSource nfs = 5; + + // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + optional RBDVolumeSource rbd = 6; + + // ISCSI represents an ISCSI Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. Provisioned by an admin. + optional ISCSIVolumeSource iscsi = 7; + + // 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 + optional CinderVolumeSource cinder = 8; + + // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + optional CephFSVolumeSource cephfs = 9; + + // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + optional FCVolumeSource fc = 10; + + // Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + optional FlockerVolumeSource flocker = 11; + + // 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. + optional FlexVolumeSource flexVolume = 12; + + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + optional AzureFileVolumeSource azureFile = 13; + + // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + optional VsphereVirtualDiskVolumeSource vsphereVolume = 14; +} + +// PersistentVolumeSpec is the specification of a persistent volume. +message PersistentVolumeSpec { + // A description of the persistent volume's resources and capacity. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity + map capacity = 1; + + // The actual volume backing the persistent volume. + optional PersistentVolumeSource persistentVolumeSource = 2; + + // AccessModes contains all ways the volume can be mounted. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes + repeated string accessModes = 3; + + // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. + // Expected to be non-nil when bound. + // claim.VolumeName is the authoritative bind between PV and PVC. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#binding + optional ObjectReference claimRef = 4; + + // What happens to a persistent volume when released from its claim. + // Valid options are Retain (default) and Recycle. + // Recyling must be supported by the volume plugin underlying this persistent volume. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#recycling-policy + optional string persistentVolumeReclaimPolicy = 5; +} + +// PersistentVolumeStatus is the current status of a persistent volume. +message PersistentVolumeStatus { + // Phase indicates if a volume is available, bound to a claim, or released by a claim. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#phase + optional string phase = 1; + + // A human-readable message indicating details about why the volume is in this state. + optional string message = 2; + + // Reason is a brief CamelCase string that describes any failure and is meant + // for machine parsing and tidy display in the CLI. + optional string reason = 3; +} + +// Pod is a collection of containers that can run on a host. This resource is created +// by clients and scheduled onto hosts. +message Pod { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Specification of the desired behavior of the pod. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional PodSpec spec = 2; + + // Most recently observed status of the pod. + // This data may not be up to date. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional PodStatus status = 3; +} + +// Pod affinity is a group of inter pod affinity scheduling rules. +message PodAffinity { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system will try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system may or may not try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + repeated PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; + + // The scheduler will prefer to schedule pods to nodes that satisfy + // the affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // node(s) with the highest sum are the most preferred. + repeated WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; +} + +// Defines a set of pods (namely those matching the labelSelector +// relative to the given namespace(s)) that this pod should be +// co-located (affinity) or not co-located (anti-affinity) with, +// where co-located is defined as running on a node whose value of +// the label with key tches that of any node on which +// a pod of the set of pods is running +message PodAffinityTerm { + // A label query over a set of resources, in this case pods. + optional k8s.io.kubernetes.pkg.api.unversioned.LabelSelector labelSelector = 1; + + // namespaces specifies which namespaces the labelSelector applies to (matches against); + // nil list means "this pod's namespace," empty list means "all namespaces" + // The json tag here is not "omitempty" since we need to distinguish nil and empty. + // See https://golang.org/pkg/encoding/json/#Marshal for more details. + repeated string namespaces = 2; + + // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + // the labelSelector in the specified namespaces, where co-located is defined as running on a node + // whose value of the label with key topologyKey matches that of any node on which any of the + // selected pods is running. + // For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies" + // ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); + // for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. + optional string topologyKey = 3; +} + +// Pod anti affinity is a group of inter pod anti affinity scheduling rules. +message PodAntiAffinity { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the anti-affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the anti-affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system will try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + // If the anti-affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the anti-affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system may or may not try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + repeated PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; + + // The scheduler will prefer to schedule pods to nodes that satisfy + // the anti-affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling anti-affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // node(s) with the highest sum are the most preferred. + repeated WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; +} + +// PodAttachOptions is the query options to a Pod's remote attach call. +// --- +// TODO: merge w/ PodExecOptions below for stdin, stdout, etc +// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY +message PodAttachOptions { + // Stdin if true, redirects the standard input stream of the pod for this call. + // Defaults to false. + optional bool stdin = 1; + + // Stdout if true indicates that stdout is to be redirected for the attach call. + // Defaults to true. + optional bool stdout = 2; + + // Stderr if true indicates that stderr is to be redirected for the attach call. + // Defaults to true. + optional bool stderr = 3; + + // TTY if true indicates that a tty will be allocated for the attach call. + // This is passed through the container runtime so the tty + // is allocated on the worker node by the container runtime. + // Defaults to false. + optional bool tty = 4; + + // The container in which to execute the command. + // Defaults to only container if there is only one container in the pod. + optional string container = 5; +} + +// PodCondition contains details for the current condition of this pod. +message PodCondition { + // Type is the type of the condition. + // Currently only Ready. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions + optional string type = 1; + + // Status is the status of the condition. + // Can be True, False, Unknown. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions + optional string status = 2; + + // Last time we probed the condition. + optional k8s.io.kubernetes.pkg.api.unversioned.Time lastProbeTime = 3; + + // Last time the condition transitioned from one status to another. + optional k8s.io.kubernetes.pkg.api.unversioned.Time lastTransitionTime = 4; + + // Unique, one-word, CamelCase reason for the condition's last transition. + optional string reason = 5; + + // Human-readable message indicating details about last transition. + optional string message = 6; +} + +// PodExecOptions is the query options to a Pod's remote exec call. +// --- +// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging +// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY +message PodExecOptions { + // Redirect the standard input stream of the pod for this call. + // Defaults to false. + optional bool stdin = 1; + + // Redirect the standard output stream of the pod for this call. + // Defaults to true. + optional bool stdout = 2; + + // Redirect the standard error stream of the pod for this call. + // Defaults to true. + optional bool stderr = 3; + + // TTY if true indicates that a tty will be allocated for the exec call. + // Defaults to false. + optional bool tty = 4; + + // Container in which to execute the command. + // Defaults to only container if there is only one container in the pod. + optional string container = 5; + + // Command is the remote command to execute. argv array. Not executed within a shell. + repeated string command = 6; +} + +// PodList is a list of Pods. +message PodList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of pods. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pods.md + repeated Pod items = 2; +} + +// PodLogOptions is the query options for a Pod's logs REST call. +message PodLogOptions { + // The container for which to stream logs. Defaults to only container if there is one container in the pod. + optional string container = 1; + + // Follow the log stream of the pod. Defaults to false. + optional bool follow = 2; + + // Return previous terminated container logs. Defaults to false. + optional bool previous = 3; + + // A relative time in seconds before the current time from which to show logs. If this value + // precedes the time a pod was started, only logs since the pod start will be returned. + // If this value is in the future, no logs will be returned. + // Only one of sinceSeconds or sinceTime may be specified. + optional int64 sinceSeconds = 4; + + // An RFC3339 timestamp from which to show logs. If this value + // precedes the time a pod was started, only logs since the pod start will be returned. + // If this value is in the future, no logs will be returned. + // Only one of sinceSeconds or sinceTime may be specified. + optional k8s.io.kubernetes.pkg.api.unversioned.Time sinceTime = 5; + + // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line + // of log output. Defaults to false. + optional bool timestamps = 6; + + // If set, the number of lines from the end of the logs to show. If not specified, + // logs are shown from the creation of the container or sinceSeconds or sinceTime + optional int64 tailLines = 7; + + // If set, the number of bytes to read from the server before terminating the + // log output. This may not display a complete final line of logging, and may return + // slightly more or slightly less than the specified limit. + optional int64 limitBytes = 8; +} + +// PodProxyOptions is the query options to a Pod's proxy call. +message PodProxyOptions { + // Path is the URL path to use for the current proxy request to pod. + optional string path = 1; +} + +// 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. +message PodSecurityContext { + // The SELinux context to be applied to all containers. + // If unspecified, the container runtime will allocate a random SELinux context for each + // container. May also be set in SecurityContext. If set in + // both SecurityContext and PodSecurityContext, the value specified in SecurityContext + // takes precedence for that container. + optional SELinuxOptions seLinuxOptions = 1; + + // The UID to run the entrypoint of the container process. + // Defaults to user specified in image metadata if unspecified. + // May also be set in SecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence + // for that container. + optional int64 runAsUser = 2; + + // Indicates that the container must run as a non-root user. + // If true, the Kubelet will validate the image at runtime to ensure that it + // does not run as UID 0 (root) and fail to start the container if it does. + // If unset or false, no such validation will be performed. + // May also be set in SecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + optional bool runAsNonRoot = 3; + + // A list of groups applied to the first process run in each container, in addition + // to the container's primary GID. If unspecified, no groups will be added to + // any container. + repeated int64 supplementalGroups = 4; + + // A special supplemental group that applies to all containers in a pod. + // Some volume types allow the Kubelet to change the ownership of that volume + // to be owned by the pod: + // + // 1. The owning GID will be the FSGroup + // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + // 3. The permission bits are OR'd with rw-rw---- + // + // If unset, the Kubelet will not modify the ownership and permissions of any volume. + optional int64 fsGroup = 5; +} + +// Describes the class of pods that should avoid this node. +// Exactly one field should be set. +message PodSignature { + // Reference to controller whose pods should avoid this node. + optional OwnerReference podController = 1; +} + +// PodSpec is a description of a pod. +message PodSpec { + // List of volumes that can be mounted by containers belonging to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md + repeated Volume volumes = 1; + + // List of containers belonging to the pod. + // Containers cannot currently be added or removed. + // There must be at least one container in a Pod. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md + repeated Container containers = 2; + + // Restart policy for all containers within the pod. + // One of Always, OnFailure, Never. + // Default to Always. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#restartpolicy + optional string restartPolicy = 3; + + // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. + // Value must be non-negative integer. The value zero indicates delete immediately. + // If this value is nil, the default grace period will be used instead. + // The grace period is the duration in seconds after the processes running in the pod are sent + // a termination signal and the time when the processes are forcibly halted with a kill signal. + // Set this value longer than the expected cleanup time for your process. + // Defaults to 30 seconds. + optional int64 terminationGracePeriodSeconds = 4; + + // Optional duration in seconds the pod may be active on the node relative to + // StartTime before the system will actively try to mark it failed and kill associated containers. + // Value must be a positive integer. + optional int64 activeDeadlineSeconds = 5; + + // Set DNS policy for containers within the pod. + // One of 'ClusterFirst' or 'Default'. + // Defaults to "ClusterFirst". + optional string dnsPolicy = 6; + + // NodeSelector is a selector which must be true for the pod to fit on a node. + // Selector which must match a node's labels for the pod to be scheduled on that node. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/node-selection/README.md + map nodeSelector = 7; + + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md + optional string serviceAccountName = 8; + + // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. + // Deprecated: Use serviceAccountName instead. + // +k8s:conversion-gen=false + optional string serviceAccount = 9; + + // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + // the scheduler simply schedules this pod onto that node, assuming that it fits resource + // requirements. + optional string nodeName = 10; + + // Host networking requested for this pod. Use the host's network namespace. + // If this option is set, the ports that will be used must be specified. + // Default to false. + // +k8s:conversion-gen=false + optional bool hostNetwork = 11; + + // Use the host's pid namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + optional bool hostPID = 12; + + // Use the host's ipc namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + optional bool hostIPC = 13; + + // SecurityContext holds pod-level security attributes and common container settings. + // Optional: Defaults to empty. See type description for default values of each field. + optional PodSecurityContext securityContext = 14; + + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // If specified, these secrets will be passed to individual puller implementations for them to use. For example, + // in the case of docker, only DockerConfig type secrets are honored. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod + repeated LocalObjectReference imagePullSecrets = 15; + + // Specifies the hostname of the Pod + // If not specified, the pod's hostname will be set to a system-defined value. + optional string hostname = 16; + + // If specified, the fully qualified Pod hostname will be "...svc.". + // If not specified, the pod will not have a domainname at all. + optional string subdomain = 17; +} + +// PodStatus represents information about the status of a pod. Status may trail the actual +// state of a system. +message PodStatus { + // Current condition of the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-phase + optional string phase = 1; + + // Current service state of pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions + repeated PodCondition conditions = 2; + + // A human readable message indicating details about why the pod is in this condition. + optional string message = 3; + + // A brief CamelCase message indicating details about why the pod is in this state. + // e.g. 'OutOfDisk' + optional string reason = 4; + + // IP address of the host to which the pod is assigned. Empty if not yet scheduled. + optional string hostIP = 5; + + // IP address allocated to the pod. Routable at least within the cluster. + // Empty if not yet allocated. + optional string podIP = 6; + + // RFC 3339 date and time at which the object was acknowledged by the Kubelet. + // This is before the Kubelet pulled the container image(s) for the pod. + optional k8s.io.kubernetes.pkg.api.unversioned.Time startTime = 7; + + // The list has one entry per container in the manifest. Each entry is currently the output + // of `docker inspect`. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-statuses + repeated ContainerStatus containerStatuses = 8; +} + +// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded +message PodStatusResult { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Most recently observed status of the pod. + // This data may not be up to date. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional PodStatus status = 2; +} + +// PodTemplate describes a template for creating copies of a predefined pod. +message PodTemplate { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Template defines the pods that will be created from this pod template. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional PodTemplateSpec template = 2; +} + +// PodTemplateList is a list of PodTemplates. +message PodTemplateList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of pod templates + repeated PodTemplate items = 2; +} + +// PodTemplateSpec describes the data a pod should have when created from a template +message PodTemplateSpec { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Specification of the desired behavior of the pod. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional PodSpec spec = 2; +} + +// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. +message Preconditions { + // Specifies the target UID. + optional string uid = 1; +} + +// Describes a class of pods that should avoid this node. +message PreferAvoidPodsEntry { + // The class of pods. + optional PodSignature podSignature = 1; + + // Time at which this entry was added to the list. + optional k8s.io.kubernetes.pkg.api.unversioned.Time evictionTime = 2; + + // (brief) reason why this entry was added to the list. + optional string reason = 3; + + // Human readable message indicating why this entry was added to the list. + optional string message = 4; +} + +// An empty preferred scheduling term matches all objects with implicit weight 0 +// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). +message PreferredSchedulingTerm { + // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + optional int32 weight = 1; + + // A node selector term, associated with the corresponding weight. + optional NodeSelectorTerm preference = 2; +} + +// Probe describes a health check to be performed against a container to determine whether it is +// alive or ready to receive traffic. +message Probe { + // The action taken to determine the health of a container + optional Handler handler = 1; + + // Number of seconds after the container has started before liveness probes are initiated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + optional int32 initialDelaySeconds = 2; + + // Number of seconds after which the probe times out. + // Defaults to 1 second. Minimum value is 1. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + optional int32 timeoutSeconds = 3; + + // How often (in seconds) to perform the probe. + // Default to 10 seconds. Minimum value is 1. + optional int32 periodSeconds = 4; + + // Minimum consecutive successes for the probe to be considered successful after having failed. + // Defaults to 1. Must be 1 for liveness. Minimum value is 1. + optional int32 successThreshold = 5; + + // Minimum consecutive failures for the probe to be considered failed after having succeeded. + // Defaults to 3. Minimum value is 1. + optional int32 failureThreshold = 6; +} + +// Represents a Rados Block Device mount that lasts the lifetime of a pod. +// RBD volumes support ownership management and SELinux relabeling. +message RBDVolumeSource { + // A collection of Ceph monitors. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + repeated string monitors = 1; + + // The rados image name. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + optional string image = 2; + + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#rbd + // TODO: how do we prevent errors in the filesystem from compromising the machine + optional string fsType = 3; + + // The rados pool name. + // Default is rbd. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it. + optional string pool = 4; + + // The rados user name. + // Default is admin. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + optional string user = 5; + + // Keyring is the path to key ring for RBDUser. + // Default is /etc/ceph/keyring. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + optional string keyring = 6; + + // SecretRef is name of the authentication secret for RBDUser. If provided + // overrides keyring. + // Default is nil. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + optional LocalObjectReference secretRef = 7; + + // ReadOnly here will force the ReadOnly setting in VolumeMounts. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + optional bool readOnly = 8; +} + +// RangeAllocation is not a public type. +message RangeAllocation { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Range is string that identifies the range represented by 'data'. + optional string range = 2; + + // Data is a bit array containing all allocated addresses in the previous segment. + optional bytes data = 3; +} + +// ReplicationController represents the configuration of a replication controller. +message ReplicationController { + // If the Labels of a ReplicationController are empty, they are defaulted to + // be the same as the Pod(s) that the replication controller manages. + // Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the specification of the desired behavior of the replication controller. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional ReplicationControllerSpec spec = 2; + + // Status is the most recently observed status of the replication controller. + // This data may be out of date by some window of time. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional ReplicationControllerStatus status = 3; +} + +// ReplicationControllerList is a collection of replication controllers. +message ReplicationControllerList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of replication controllers. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md + repeated ReplicationController items = 2; +} + +// ReplicationControllerSpec is the specification of a replication controller. +message ReplicationControllerSpec { + // Replicas is the number of desired replicas. + // This is a pointer to distinguish between explicit zero and unspecified. + // Defaults to 1. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#what-is-a-replication-controller + optional int32 replicas = 1; + + // Selector is a label query over pods that should match the Replicas count. + // If Selector is empty, it is defaulted to the labels present on the Pod template. + // Label keys and values that must match in order to be controlled by this replication + // controller, if empty defaulted to labels on Pod template. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + map selector = 2; + + // Template is the object that describes the pod that will be created if + // insufficient replicas are detected. This takes precedence over a TemplateRef. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#pod-template + optional PodTemplateSpec template = 3; +} + +// ReplicationControllerStatus represents the current status of a replication +// controller. +message ReplicationControllerStatus { + // 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 + optional int32 replicas = 1; + + // The number of pods that have labels matching the labels of the pod template of the replication controller. + optional int32 fullyLabeledReplicas = 2; + + // ObservedGeneration reflects the generation of the most recently observed replication controller. + optional int64 observedGeneration = 3; +} + +// ResourceFieldSelector represents container resources (cpu, memory) and their output format +message ResourceFieldSelector { + // Container name: required for volumes, optional for env vars + optional string containerName = 1; + + // Required: resource to select + optional string resource = 2; + + // Specifies the output format of the exposed resources, defaults to "1" + optional k8s.io.kubernetes.pkg.api.resource.Quantity divisor = 3; +} + +// ResourceQuota sets aggregate quota restrictions enforced per namespace +message ResourceQuota { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the desired quota. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional ResourceQuotaSpec spec = 2; + + // Status defines the actual enforced quota and its current usage. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional ResourceQuotaStatus status = 3; +} + +// ResourceQuotaList is a list of ResourceQuota items. +message ResourceQuotaList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // Items is a list of ResourceQuota objects. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + repeated ResourceQuota items = 2; +} + +// ResourceQuotaSpec defines the desired hard limits to enforce for Quota. +message ResourceQuotaSpec { + // Hard is the set of desired hard limits for each named resource. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + map hard = 1; + + // A collection of filters that must match each object tracked by a quota. + // If not specified, the quota matches all objects. + repeated string scopes = 2; +} + +// ResourceQuotaStatus defines the enforced hard limits and observed use. +message ResourceQuotaStatus { + // Hard is the set of enforced hard limits for each named resource. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + map hard = 1; + + // Used is the current observed total usage of the resource in the namespace. + map used = 2; +} + +// 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 + 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 + map requests = 2; +} + +// SELinuxOptions are the labels to be applied to the container +message SELinuxOptions { + // User is a SELinux user label that applies to the container. + optional string user = 1; + + // Role is a SELinux role label that applies to the container. + optional string role = 2; + + // Type is a SELinux type label that applies to the container. + optional string type = 3; + + // Level is SELinux level label that applies to the container. + optional string level = 4; +} + +// Secret holds secret data of a certain type. The total bytes of the values in +// the Data field must be less than MaxSecretSize bytes. +message Secret { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN + // or leading dot followed by valid DNS_SUBDOMAIN. + // The serialized form of the secret data is a base64 encoded string, + // representing the arbitrary (possibly non-string) data value here. + // Described in https://tools.ietf.org/html/rfc4648#section-4 + map data = 2; + + // stringData allows specifying non-binary secret data in string form. + // It is provided as a write-only convenience method. + // All keys and values are merged into the data field on write, overwriting any existing values. + // It is never output when reading from the API. + // +k8s:conversion-gen=false + map stringData = 4; + + // Used to facilitate programmatic handling of secret data. + optional string type = 3; +} + +// SecretKeySelector selects a key of a Secret. +message SecretKeySelector { + // The name of the secret in the pod's namespace to select from. + optional LocalObjectReference localObjectReference = 1; + + // The key of the secret to select from. Must be a valid secret key. + optional string key = 2; +} + +// SecretList is a list of Secret. +message SecretList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // Items is a list of secret objects. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md + repeated Secret items = 2; +} + +// Adapts a Secret into a volume. +// +// The 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. +message SecretVolumeSource { + // Name of the secret in the pod's namespace to use. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets + optional string secretName = 1; + + // 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 '..'. + repeated KeyToPath items = 2; +} + +// SecurityContext holds security configuration that will be applied to a container. +// Some fields are present in both SecurityContext and PodSecurityContext. When both +// are set, the values in SecurityContext take precedence. +message SecurityContext { + // The capabilities to add/drop when running containers. + // Defaults to the default set of capabilities granted by the container runtime. + optional Capabilities capabilities = 1; + + // Run container in privileged mode. + // Processes in privileged containers are essentially equivalent to root on the host. + // Defaults to false. + optional bool privileged = 2; + + // The SELinux context to be applied to the container. + // If unspecified, the container runtime will allocate a random SELinux context for each + // container. May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + optional SELinuxOptions seLinuxOptions = 3; + + // The UID to run the entrypoint of the container process. + // Defaults to user specified in image metadata if unspecified. + // May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + optional int64 runAsUser = 4; + + // Indicates that the container must run as a non-root user. + // If true, the Kubelet will validate the image at runtime to ensure that it + // does not run as UID 0 (root) and fail to start the container if it does. + // If unset or false, no such validation will be performed. + // May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + optional bool runAsNonRoot = 5; + + // Whether this container has a read-only root filesystem. + // Default is false. + optional bool readOnlyRootFilesystem = 6; +} + +// SerializedReference is a reference to serialized object. +message SerializedReference { + // The reference to an object in the system. + optional ObjectReference reference = 1; +} + +// Service is a named abstraction of software service (for example, mysql) consisting of local port +// (for example 3306) that the proxy listens on, and the selector that determines which pods +// will answer requests sent through the proxy. +message Service { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Spec defines the behavior of a service. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional ServiceSpec spec = 2; + + // Most recently observed status of the service. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + optional ServiceStatus status = 3; +} + +// ServiceAccount binds together: +// * a name, understood by users, and perhaps by peripheral systems, for an identity +// * a principal that can be authenticated and authorized +// * a set of secrets +message ServiceAccount { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + optional ObjectMeta metadata = 1; + + // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md + repeated ObjectReference secrets = 2; + + // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images + // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets + // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret + repeated LocalObjectReference imagePullSecrets = 3; +} + +// ServiceAccountList is a list of ServiceAccount objects +message ServiceAccountList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of ServiceAccounts. + // More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts + repeated ServiceAccount items = 2; +} + +// ServiceList holds a list of services. +message ServiceList { + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1; + + // List of services + repeated Service items = 2; +} + +// ServicePort contains information on service's port. +message ServicePort { + // The name of this port within the service. This must be a DNS_LABEL. + // All ports within a ServiceSpec must have unique names. This maps to + // the 'Name' field in EndpointPort objects. + // Optional if only one ServicePort is defined on this service. + optional string name = 1; + + // The IP protocol for this port. Supports "TCP" and "UDP". + // Default is TCP. + optional string protocol = 2; + + // The port that will be exposed by this service. + optional int32 port = 3; + + // Number or name of the port to access on the pods targeted by the service. + // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + // If this is a string, it will be looked up as a named port in the + // target Pod's container ports. If this is not specified, the value + // of the 'port' field is used (an identity map). + // This field is ignored for services with clusterIP=None, and should be + // omitted or set equal to the 'port' field. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#defining-a-service + optional k8s.io.kubernetes.pkg.util.intstr.IntOrString targetPort = 4; + + // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. + // Usually assigned by the system. If specified, it will be allocated to the service + // if unused or else creation of the service will fail. + // Default is to auto-allocate a port if the ServiceType of this Service requires one. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#type--nodeport + optional int32 nodePort = 5; +} + +// ServiceProxyOptions is the query options to a Service's proxy call. +message ServiceProxyOptions { + // Path is the part of URLs that include service endpoints, suffixes, + // and parameters to use for the current proxy request to service. + // For example, the whole request URL is + // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. + // Path is _search?q=user:kimchy. + optional string path = 1; +} + +// ServiceSpec describes the attributes that a user creates on a service. +message ServiceSpec { + // 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 + 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. + // 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. + // 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 + optional string type = 4; + + // 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. + repeated string externalIPs = 5; + + // 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. + // +k8s:conversion-gen=false + repeated string deprecatedPublicIPs = 6; + + // 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 + optional string sessionAffinity = 7; + + // 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. + optional string loadBalancerIP = 8; + + // 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 + repeated string loadBalancerSourceRanges = 9; +} + +// ServiceStatus represents the current status of a service. +message ServiceStatus { + // LoadBalancer contains the current status of the load-balancer, + // if one is present. + optional LoadBalancerStatus loadBalancer = 1; +} + +// TCPSocketAction describes an action based on opening a socket +message TCPSocketAction { + // Number or name of the port to access on the container. + // Number must be in the range 1 to 65535. + // Name must be an IANA_SVC_NAME. + optional k8s.io.kubernetes.pkg.util.intstr.IntOrString port = 1; +} + +// The node this Taint is attached to has the effect "effect" on +// any pod that that does not tolerate the Taint. +message Taint { + // Required. The taint key to be applied to a node. + optional string key = 1; + + // Required. The taint value corresponding to the taint key. + optional string value = 2; + + // Required. The effect of the taint on pods + // that do not tolerate the taint. + // Valid effects are NoSchedule and PreferNoSchedule. + optional string effect = 3; +} + +// The pod this Toleration is attached to tolerates any taint that matches +// the triple using the matching operator . +message Toleration { + // Required. Key is the taint key that the toleration applies to. + optional string key = 1; + + // operator represents a key's relationship to the value. + // Valid operators are Exists and Equal. Defaults to Equal. + // Exists is equivalent to wildcard for value, so that a pod can + // tolerate all taints of a particular category. + optional string operator = 2; + + // Value is the taint value the toleration matches to. + // If the operator is Exists, the value should be empty, otherwise just a regular string. + optional string value = 3; + + // Effect indicates the taint effect to match. Empty means match all taint effects. + // When specified, allowed values are NoSchedule and PreferNoSchedule. + optional string effect = 4; +} + +// Volume represents a named volume in a pod that may be accessed by any container in the pod. +message Volume { + // Volume's name. + // Must be a DNS_LABEL and unique within the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + optional string name = 1; + + // VolumeSource represents the location and type of the mounted volume. + // If not specified, the Volume is implied to be an EmptyDir. + // This implied behavior is deprecated and will be removed in a future version. + optional VolumeSource volumeSource = 2; +} + +// VolumeMount describes a mounting of a Volume within a container. +message VolumeMount { + // This must match the Name of a Volume. + optional string name = 1; + + // Mounted read-only if true, read-write otherwise (false or unspecified). + // Defaults to false. + optional bool readOnly = 2; + + // Path within the container at which the volume should be mounted. Must + // not contain ':'. + optional string mountPath = 3; + + // Path within the volume from which the container's volume should be mounted. + // Defaults to "" (volume's root). + optional string subPath = 4; +} + +// Represents the source of a volume to mount. +// Only one of its members may be specified. +message VolumeSource { + // HostPath represents a pre-existing file or directory on the host + // machine that is directly exposed to the container. This is generally + // used for system agents or other privileged things that are allowed + // to see the host machine. Most containers will NOT need this. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath + // --- + // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not + // mount host directories as read/write. + optional HostPathVolumeSource hostPath = 1; + + // EmptyDir represents a temporary directory that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir + optional EmptyDirVolumeSource emptyDir = 2; + + // GCEPersistentDisk represents a GCE Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + optional GCEPersistentDiskVolumeSource gcePersistentDisk = 3; + + // AWSElasticBlockStore represents an AWS Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + optional AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; + + // GitRepo represents a git repository at a particular revision. + optional GitRepoVolumeSource gitRepo = 5; + + // Secret represents a secret that should populate this volume. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets + optional SecretVolumeSource secret = 6; + + // NFS represents an NFS mount on the host that shares a pod's lifetime + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + optional NFSVolumeSource nfs = 7; + + // ISCSI represents an ISCSI Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + optional ISCSIVolumeSource iscsi = 8; + + // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + optional GlusterfsVolumeSource glusterfs = 9; + + // PersistentVolumeClaimVolumeSource represents a reference to a + // PersistentVolumeClaim in the same namespace. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + optional PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; + + // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + optional RBDVolumeSource rbd = 11; + + // 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. + optional FlexVolumeSource flexVolume = 12; + + // 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 + optional CinderVolumeSource cinder = 13; + + // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + optional CephFSVolumeSource cephfs = 14; + + // Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + optional FlockerVolumeSource flocker = 15; + + // DownwardAPI represents downward API about the pod that should populate this volume + optional DownwardAPIVolumeSource downwardAPI = 16; + + // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + optional FCVolumeSource fc = 17; + + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + optional AzureFileVolumeSource azureFile = 18; + + // ConfigMap represents a configMap that should populate this volume + optional ConfigMapVolumeSource configMap = 19; + + // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + optional VsphereVirtualDiskVolumeSource vsphereVolume = 20; +} + +// Represents a vSphere volume resource. +message VsphereVirtualDiskVolumeSource { + // Path that identifies vSphere volume vmdk + optional string volumePath = 1; + + // 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 = 2; +} + +// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) +message WeightedPodAffinityTerm { + // weight associated with matching the corresponding podAffinityTerm, + // in the range 1-100. + optional int32 weight = 1; + + // Required. A pod affinity term, associated with the corresponding weight. + optional PodAffinityTerm podAffinityTerm = 2; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/meta.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/meta.go new file mode 100644 index 0000000000..284b86414e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/meta.go @@ -0,0 +1,85 @@ +/* +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 v1 + +import ( + "k8s.io/client-go/1.4/pkg/api/meta" + "k8s.io/client-go/1.4/pkg/api/meta/metatypes" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/types" +) + +func (obj *ObjectMeta) GetObjectMeta() meta.Object { return obj } + +// Namespace implements meta.Object for any object with an ObjectMeta typed field. Allows +// fast, direct access to metadata fields for API objects. +func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace } +func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace } +func (meta *ObjectMeta) GetName() string { return meta.Name } +func (meta *ObjectMeta) SetName(name string) { meta.Name = name } +func (meta *ObjectMeta) GetGenerateName() string { return meta.GenerateName } +func (meta *ObjectMeta) SetGenerateName(generateName string) { meta.GenerateName = generateName } +func (meta *ObjectMeta) GetUID() types.UID { return meta.UID } +func (meta *ObjectMeta) SetUID(uid types.UID) { meta.UID = uid } +func (meta *ObjectMeta) GetResourceVersion() string { return meta.ResourceVersion } +func (meta *ObjectMeta) SetResourceVersion(version string) { meta.ResourceVersion = version } +func (meta *ObjectMeta) GetSelfLink() string { return meta.SelfLink } +func (meta *ObjectMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink } +func (meta *ObjectMeta) GetCreationTimestamp() unversioned.Time { return meta.CreationTimestamp } +func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp unversioned.Time) { + meta.CreationTimestamp = creationTimestamp +} +func (meta *ObjectMeta) GetDeletionTimestamp() *unversioned.Time { return meta.DeletionTimestamp } +func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *unversioned.Time) { + meta.DeletionTimestamp = deletionTimestamp +} +func (meta *ObjectMeta) GetLabels() map[string]string { return meta.Labels } +func (meta *ObjectMeta) SetLabels(labels map[string]string) { meta.Labels = labels } +func (meta *ObjectMeta) GetAnnotations() map[string]string { return meta.Annotations } +func (meta *ObjectMeta) SetAnnotations(annotations map[string]string) { meta.Annotations = annotations } +func (meta *ObjectMeta) GetFinalizers() []string { return meta.Finalizers } +func (meta *ObjectMeta) SetFinalizers(finalizers []string) { meta.Finalizers = finalizers } + +func (meta *ObjectMeta) GetOwnerReferences() []metatypes.OwnerReference { + ret := make([]metatypes.OwnerReference, len(meta.OwnerReferences)) + for i := 0; i < len(meta.OwnerReferences); i++ { + ret[i].Kind = meta.OwnerReferences[i].Kind + ret[i].Name = meta.OwnerReferences[i].Name + ret[i].UID = meta.OwnerReferences[i].UID + ret[i].APIVersion = meta.OwnerReferences[i].APIVersion + if meta.OwnerReferences[i].Controller != nil { + value := *meta.OwnerReferences[i].Controller + ret[i].Controller = &value + } + } + return ret +} + +func (meta *ObjectMeta) SetOwnerReferences(references []metatypes.OwnerReference) { + newReferences := make([]OwnerReference, len(references)) + for i := 0; i < len(references); i++ { + newReferences[i].Kind = references[i].Kind + newReferences[i].Name = references[i].Name + newReferences[i].UID = references[i].UID + newReferences[i].APIVersion = references[i].APIVersion + if references[i].Controller != nil { + value := *references[i].Controller + newReferences[i].Controller = &value + } + } + meta.OwnerReferences = newReferences +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/ref.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/ref.go new file mode 100644 index 0000000000..77fe268b63 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/ref.go @@ -0,0 +1,133 @@ +/* +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 v1 + +import ( + "errors" + "fmt" + "k8s.io/client-go/1.4/pkg/api" + "net/url" + "strings" + + "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/runtime" +) + +var ( + // Errors that could be returned by GetReference. + ErrNilObject = errors.New("can't reference a nil object") + ErrNoSelfLink = errors.New("selfLink was empty, can't make reference") +) + +// GetReference returns an ObjectReference which refers to the given +// object, or an error if the object doesn't follow the conventions +// that would allow this. +// TODO: should take a meta.Interface see http://issue.k8s.io/7127 +func GetReference(obj runtime.Object) (*ObjectReference, error) { + if obj == nil { + return nil, ErrNilObject + } + if ref, ok := obj.(*ObjectReference); ok { + // Don't make a reference to a reference. + return ref, nil + } + + gvk := obj.GetObjectKind().GroupVersionKind() + + // if the object referenced is actually persisted, we can just get kind from meta + // if we are building an object reference to something not yet persisted, we should fallback to scheme + kind := gvk.Kind + if len(kind) == 0 { + // TODO: this is wrong + gvks, _, err := api.Scheme.ObjectKinds(obj) + if err != nil { + return nil, err + } + kind = gvks[0].Kind + } + + // An object that implements only List has enough metadata to build a reference + var listMeta meta.List + objectMeta, err := meta.Accessor(obj) + if err != nil { + listMeta, err = meta.ListAccessor(obj) + if err != nil { + return nil, err + } + } else { + listMeta = objectMeta + } + + // if the object referenced is actually persisted, we can also get version from meta + version := gvk.GroupVersion().String() + if len(version) == 0 { + selfLink := listMeta.GetSelfLink() + if len(selfLink) == 0 { + return nil, ErrNoSelfLink + } + selfLinkUrl, err := url.Parse(selfLink) + if err != nil { + return nil, err + } + // example paths: ///* + parts := strings.Split(selfLinkUrl.Path, "/") + if len(parts) < 3 { + return nil, fmt.Errorf("unexpected self link format: '%v'; got version '%v'", selfLink, version) + } + version = parts[2] + } + + // only has list metadata + if objectMeta == nil { + return &ObjectReference{ + Kind: kind, + APIVersion: version, + ResourceVersion: listMeta.GetResourceVersion(), + }, nil + } + + return &ObjectReference{ + Kind: kind, + APIVersion: version, + Name: objectMeta.GetName(), + Namespace: objectMeta.GetNamespace(), + UID: objectMeta.GetUID(), + ResourceVersion: objectMeta.GetResourceVersion(), + }, nil +} + +// GetPartialReference is exactly like GetReference, but allows you to set the FieldPath. +func GetPartialReference(obj runtime.Object, fieldPath string) (*ObjectReference, error) { + ref, err := GetReference(obj) + if err != nil { + return nil, err + } + ref.FieldPath = fieldPath + return ref, nil +} + +// IsAnAPIObject allows clients to preemptively get a reference to an API object and pass it to places that +// intend only to get a reference to that object. This simplifies the event recording interface. +func (obj *ObjectReference) SetGroupVersionKind(gvk unversioned.GroupVersionKind) { + obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() +} +func (obj *ObjectReference) GroupVersionKind() unversioned.GroupVersionKind { + return unversioned.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) +} + +func (obj *ObjectReference) GetObjectKind() unversioned.ObjectKind { return obj } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/register.go new file mode 100644 index 0000000000..0b2f244e0b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/register.go @@ -0,0 +1,93 @@ +/* +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 v1 + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" + versionedwatch "k8s.io/client-go/1.4/pkg/watch/versioned" +) + +// GroupName is the group name use in this package +const GroupName = "" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs, addFastPathConversionFuncs) + AddToScheme = SchemeBuilder.AddToScheme +) + +// Adds the list of known types to api.Scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &Pod{}, + &PodList{}, + &PodStatusResult{}, + &PodTemplate{}, + &PodTemplateList{}, + &ReplicationController{}, + &ReplicationControllerList{}, + &Service{}, + &ServiceProxyOptions{}, + &ServiceList{}, + &Endpoints{}, + &EndpointsList{}, + &Node{}, + &NodeList{}, + &NodeProxyOptions{}, + &Binding{}, + &Event{}, + &EventList{}, + &List{}, + &LimitRange{}, + &LimitRangeList{}, + &ResourceQuota{}, + &ResourceQuotaList{}, + &Namespace{}, + &NamespaceList{}, + &Secret{}, + &SecretList{}, + &ServiceAccount{}, + &ServiceAccountList{}, + &PersistentVolume{}, + &PersistentVolumeList{}, + &PersistentVolumeClaim{}, + &PersistentVolumeClaimList{}, + &DeleteOptions{}, + &ExportOptions{}, + &ListOptions{}, + &PodAttachOptions{}, + &PodLogOptions{}, + &PodExecOptions{}, + &PodProxyOptions{}, + &ComponentStatus{}, + &ComponentStatusList{}, + &SerializedReference{}, + &RangeAllocation{}, + &ConfigMap{}, + &ConfigMapList{}, + ) + + // Add common types + scheme.AddKnownTypes(SchemeGroupVersion, &unversioned.Status{}) + + // Add the watch version that applies + versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types.generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types.generated.go new file mode 100644 index 0000000000..9895295530 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types.generated.go @@ -0,0 +1,60549 @@ +/* +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 v1 + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg3_resource "k8s.io/client-go/1.4/pkg/api/resource" + pkg2_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + pkg5_runtime "k8s.io/client-go/1.4/pkg/runtime" + pkg1_types "k8s.io/client-go/1.4/pkg/types" + pkg4_intstr "k8s.io/client-go/1.4/pkg/util/intstr" + "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 pkg3_resource.Quantity + var v1 pkg2_unversioned.Time + var v2 pkg5_runtime.RawExtension + var v3 pkg1_types.UID + var v4 pkg4_intstr.IntOrString + var v5 time.Time + _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 + } +} + +func (x *ObjectMeta) 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 [14]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Name != "" + yyq2[1] = x.GenerateName != "" + yyq2[2] = x.Namespace != "" + yyq2[3] = x.SelfLink != "" + yyq2[4] = x.UID != "" + yyq2[5] = x.ResourceVersion != "" + yyq2[6] = x.Generation != 0 + yyq2[7] = true + yyq2[8] = x.DeletionTimestamp != nil + yyq2[9] = x.DeletionGracePeriodSeconds != nil + yyq2[10] = len(x.Labels) != 0 + yyq2[11] = len(x.Annotations) != 0 + yyq2[12] = len(x.OwnerReferences) != 0 + yyq2[13] = len(x.Finalizers) != 0 + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(14) + } else { + yynn2 = 0 + 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.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[2] { + yym10 := z.EncBinary() + _ = yym10 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym11 := z.EncBinary() + _ = yym11 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[3] { + yym13 := z.EncBinary() + _ = yym13 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym14 := z.EncBinary() + _ = yym14 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[4] { + yym16 := z.EncBinary() + _ = yym16 + 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[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym17 := z.EncBinary() + _ = yym17 + 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[5] { + yym19 := z.EncBinary() + _ = yym19 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym20 := z.EncBinary() + _ = yym20 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[6] { + yym22 := z.EncBinary() + _ = yym22 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generation")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym23 := z.EncBinary() + _ = yym23 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[7] { + yy25 := &x.CreationTimestamp + yym26 := z.EncBinary() + _ = yym26 + if false { + } else if z.HasExtensions() && z.EncExt(yy25) { + } else if yym26 { + z.EncBinaryMarshal(yy25) + } else if !yym26 && z.IsJSONHandle() { + z.EncJSONMarshal(yy25) + } else { + z.EncFallback(yy25) + } + } else { + r.EncodeNil() + } + } else { + if yyq2[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy27 := &x.CreationTimestamp + yym28 := z.EncBinary() + _ = yym28 + if false { + } else if z.HasExtensions() && z.EncExt(yy27) { + } else if yym28 { + z.EncBinaryMarshal(yy27) + } else if !yym28 && z.IsJSONHandle() { + z.EncJSONMarshal(yy27) + } else { + z.EncFallback(yy27) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[8] { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym30 := z.EncBinary() + _ = yym30 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym30 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym30 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym31 := z.EncBinary() + _ = yym31 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym31 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym31 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[9] { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy33 := *x.DeletionGracePeriodSeconds + yym34 := z.EncBinary() + _ = yym34 + if false { + } else { + r.EncodeInt(int64(yy33)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy35 := *x.DeletionGracePeriodSeconds + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeInt(int64(yy35)) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[10] { + if x.Labels == nil { + r.EncodeNil() + } else { + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labels")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Labels == nil { + r.EncodeNil() + } else { + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[11] { + if x.Annotations == nil { + r.EncodeNil() + } else { + yym41 := z.EncBinary() + _ = yym41 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym42 := z.EncBinary() + _ = yym42 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[12] { + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym44 := z.EncBinary() + _ = yym44 + if false { + } else { + h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym45 := z.EncBinary() + _ = yym45 + if false { + } else { + h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[13] { + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym47 := z.EncBinary() + _ = yym47 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym48 := z.EncBinary() + _ = yym48 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym49 := z.DecBinary() + _ = yym49 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct50 := r.ContainerType() + if yyct50 == codecSelferValueTypeMap1234 { + yyl50 := r.ReadMapStart() + if yyl50 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl50, d) + } + } else if yyct50 == codecSelferValueTypeArray1234 { + yyl50 := r.ReadArrayStart() + if yyl50 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl50, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys51Slc = r.DecodeBytes(yys51Slc, true, true) + yys51 := string(yys51Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys51 { + 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 = pkg1_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 = pkg2_unversioned.Time{} + } else { + yyv59 := &x.CreationTimestamp + yym60 := z.DecBinary() + _ = yym60 + if false { + } else if z.HasExtensions() && z.DecExt(yyv59) { + } else if yym60 { + z.DecBinaryUnmarshal(yyv59) + } else if !yym60 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv59) + } else { + z.DecFallback(yyv59, false) + } + } + case "deletionTimestamp": + if r.TryDecodeAsNil() { + if x.DeletionTimestamp != nil { + x.DeletionTimestamp = nil + } + } else { + if x.DeletionTimestamp == nil { + x.DeletionTimestamp = new(pkg2_unversioned.Time) + } + yym62 := z.DecBinary() + _ = yym62 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym62 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym62 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + case "deletionGracePeriodSeconds": + if r.TryDecodeAsNil() { + if x.DeletionGracePeriodSeconds != nil { + x.DeletionGracePeriodSeconds = nil + } + } else { + if x.DeletionGracePeriodSeconds == nil { + x.DeletionGracePeriodSeconds = new(int64) + } + yym64 := z.DecBinary() + _ = yym64 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "labels": + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv65 := &x.Labels + yym66 := z.DecBinary() + _ = yym66 + if false { + } else { + z.F.DecMapStringStringX(yyv65, false, d) + } + } + case "annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv67 := &x.Annotations + yym68 := z.DecBinary() + _ = yym68 + if false { + } else { + z.F.DecMapStringStringX(yyv67, false, d) + } + } + case "ownerReferences": + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv69 := &x.OwnerReferences + yym70 := z.DecBinary() + _ = yym70 + if false { + } else { + h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d) + } + } + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv71 := &x.Finalizers + yym72 := z.DecBinary() + _ = yym72 + if false { + } else { + z.F.DecSliceStringX(yyv71, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys51) + } // end switch yys51 + } // end for yyj51 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.GenerateName = "" + } else { + x.GenerateName = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SelfLink = "" + } else { + x.SelfLink = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Generation = 0 + } else { + x.Generation = int64(r.DecodeInt(64)) + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CreationTimestamp = pkg2_unversioned.Time{} + } else { + yyv81 := &x.CreationTimestamp + yym82 := z.DecBinary() + _ = yym82 + if false { + } else if z.HasExtensions() && z.DecExt(yyv81) { + } else if yym82 { + z.DecBinaryUnmarshal(yyv81) + } else if !yym82 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv81) + } else { + z.DecFallback(yyv81, false) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + 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(pkg2_unversioned.Time) + } + yym84 := z.DecBinary() + _ = yym84 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym84 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym84 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + 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) + } + yym86 := z.DecBinary() + _ = yym86 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv87 := &x.Labels + yym88 := z.DecBinary() + _ = yym88 + if false { + } else { + z.F.DecMapStringStringX(yyv87, false, d) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv89 := &x.Annotations + yym90 := z.DecBinary() + _ = yym90 + if false { + } else { + z.F.DecMapStringStringX(yyv89, false, d) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv91 := &x.OwnerReferences + yym92 := z.DecBinary() + _ = yym92 + if false { + } else { + h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d) + } + } + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv93 := &x.Finalizers + yym94 := z.DecBinary() + _ = yym94 + if false { + } else { + z.F.DecSliceStringX(yyv93, false, d) + } + } + for { + yyj73++ + if yyhl73 { + yyb73 = yyj73 > l + } else { + yyb73 = r.CheckBreak() + } + if yyb73 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj73-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym95 := z.EncBinary() + _ = yym95 + 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) + } else { + yynn96 = 1 + for _, b := range yyq96 { + if b { + yynn96++ + } + } + r.EncodeMapStart(yynn96) + yynn96 = 0 + } + if yyr96 || yy2arr96 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym98 := z.EncBinary() + _ = yym98 + 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) + yym99 := z.EncBinary() + _ = yym99 + 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 { + yyn105 = true + goto LABEL105 + } + LABEL105: + if yyr96 || yy2arr96 { + if yyn105 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[6] { + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secret")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn105 { + r.EncodeNil() + } else { + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } + } + } + var yyn106 bool + if x.VolumeSource.NFS == nil { + yyn106 = true + goto LABEL106 + } + LABEL106: + if yyr96 || yy2arr96 { + if yyn106 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[7] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn106 { + r.EncodeNil() + } else { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + } + var yyn107 bool + if x.VolumeSource.ISCSI == nil { + yyn107 = true + goto LABEL107 + } + LABEL107: + if yyr96 || yy2arr96 { + if yyn107 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[8] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn107 { + r.EncodeNil() + } else { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + } + var yyn108 bool + if x.VolumeSource.Glusterfs == nil { + yyn108 = true + goto LABEL108 + } + LABEL108: + if yyr96 || yy2arr96 { + if yyn108 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[9] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn108 { + r.EncodeNil() + } else { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + } + var yyn109 bool + if x.VolumeSource.PersistentVolumeClaim == nil { + yyn109 = true + goto LABEL109 + } + LABEL109: + if yyr96 || yy2arr96 { + if yyn109 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[10] { + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn109 { + r.EncodeNil() + } else { + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } + } + } + var yyn110 bool + if x.VolumeSource.RBD == nil { + yyn110 = true + goto LABEL110 + } + LABEL110: + if yyr96 || yy2arr96 { + if yyn110 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[11] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn110 { + r.EncodeNil() + } else { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + } + var yyn111 bool + if x.VolumeSource.FlexVolume == nil { + yyn111 = true + goto LABEL111 + } + LABEL111: + if yyr96 || yy2arr96 { + if yyn111 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[12] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn111 { + r.EncodeNil() + } else { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn112 bool + if x.VolumeSource.Cinder == nil { + yyn112 = true + goto LABEL112 + } + LABEL112: + if yyr96 || yy2arr96 { + if yyn112 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[13] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn112 { + r.EncodeNil() + } else { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + } + var yyn113 bool + if x.VolumeSource.CephFS == nil { + yyn113 = true + goto LABEL113 + } + LABEL113: + if yyr96 || yy2arr96 { + if yyn113 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[14] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn113 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn114 bool + if x.VolumeSource.Flocker == nil { + yyn114 = true + goto LABEL114 + } + LABEL114: + if yyr96 || yy2arr96 { + if yyn114 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[15] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn114 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn115 bool + if x.VolumeSource.DownwardAPI == nil { + yyn115 = true + goto LABEL115 + } + LABEL115: + if yyr96 || yy2arr96 { + if yyn115 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[16] { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn115 { + r.EncodeNil() + } else { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } + } + } + var yyn116 bool + if x.VolumeSource.FC == nil { + yyn116 = true + goto LABEL116 + } + LABEL116: + if yyr96 || yy2arr96 { + if yyn116 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[17] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn116 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn117 bool + if x.VolumeSource.AzureFile == nil { + yyn117 = true + goto LABEL117 + } + LABEL117: + if yyr96 || yy2arr96 { + if yyn117 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[18] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn117 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn118 bool + if x.VolumeSource.ConfigMap == nil { + yyn118 = true + goto LABEL118 + } + LABEL118: + if yyr96 || yy2arr96 { + if yyn118 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[19] { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMap")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn118 { + r.EncodeNil() + } else { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } + } + } + var yyn119 bool + if x.VolumeSource.VsphereVolume == nil { + yyn119 = true + goto LABEL119 + } + LABEL119: + if yyr96 || yy2arr96 { + if yyn119 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq96[20] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq96[20] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn119 { + r.EncodeNil() + } else { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + } + if yyr96 || yy2arr96 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym120 := z.DecBinary() + _ = yym120 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct121 := r.ContainerType() + if yyct121 == codecSelferValueTypeMap1234 { + yyl121 := r.ReadMapStart() + if yyl121 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl121, d) + } + } else if yyct121 == codecSelferValueTypeArray1234 { + yyl121 := r.ReadArrayStart() + if yyl121 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl121, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys122Slc = r.DecodeBytes(yys122Slc, true, true) + yys122 := string(yys122Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys122 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "hostPath": + if x.VolumeSource.HostPath == nil { + x.VolumeSource.HostPath = new(HostPathVolumeSource) + } + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "emptyDir": + if x.VolumeSource.EmptyDir == nil { + x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) + } + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + case "gcePersistentDisk": + if x.VolumeSource.GCEPersistentDisk == nil { + x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if x.VolumeSource.AWSElasticBlockStore == nil { + x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "gitRepo": + if x.VolumeSource.GitRepo == nil { + x.VolumeSource.GitRepo = new(GitRepoVolumeSource) + } + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + case "secret": + if x.VolumeSource.Secret == nil { + x.VolumeSource.Secret = new(SecretVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + case "nfs": + if x.VolumeSource.NFS == nil { + x.VolumeSource.NFS = new(NFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "iscsi": + if x.VolumeSource.ISCSI == nil { + x.VolumeSource.ISCSI = new(ISCSIVolumeSource) + } + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "glusterfs": + if x.VolumeSource.Glusterfs == nil { + x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "persistentVolumeClaim": + if x.VolumeSource.PersistentVolumeClaim == nil { + x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + case "rbd": + if x.VolumeSource.RBD == nil { + x.VolumeSource.RBD = new(RBDVolumeSource) + } + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "flexVolume": + if x.VolumeSource.FlexVolume == nil { + x.VolumeSource.FlexVolume = new(FlexVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "cinder": + if x.VolumeSource.Cinder == nil { + x.VolumeSource.Cinder = new(CinderVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if x.VolumeSource.CephFS == nil { + x.VolumeSource.CephFS = new(CephFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "flocker": + if x.VolumeSource.Flocker == nil { + x.VolumeSource.Flocker = new(FlockerVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "downwardAPI": + if x.VolumeSource.DownwardAPI == nil { + x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) + } + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + case "fc": + if x.VolumeSource.FC == nil { + x.VolumeSource.FC = new(FCVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "azureFile": + if x.VolumeSource.AzureFile == nil { + x.VolumeSource.AzureFile = new(AzureFileVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "configMap": + if x.VolumeSource.ConfigMap == nil { + x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) + } + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + case "vsphereVolume": + if x.VolumeSource.VsphereVolume == nil { + x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys122) + } // end switch yys122 + } // end for yyj122 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + if x.VolumeSource.HostPath == nil { + x.VolumeSource.HostPath = new(HostPathVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + if x.VolumeSource.EmptyDir == nil { + x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + if x.VolumeSource.GCEPersistentDisk == nil { + x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + if x.VolumeSource.AWSElasticBlockStore == nil { + x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + if x.VolumeSource.GitRepo == nil { + x.VolumeSource.GitRepo = new(GitRepoVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + if x.VolumeSource.Secret == nil { + x.VolumeSource.Secret = new(SecretVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + if x.VolumeSource.NFS == nil { + x.VolumeSource.NFS = new(NFSVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + if x.VolumeSource.ISCSI == nil { + x.VolumeSource.ISCSI = new(ISCSIVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + if x.VolumeSource.Glusterfs == nil { + x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + if x.VolumeSource.PersistentVolumeClaim == nil { + x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + if x.VolumeSource.RBD == nil { + x.VolumeSource.RBD = new(RBDVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + if x.VolumeSource.FlexVolume == nil { + x.VolumeSource.FlexVolume = new(FlexVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + if x.VolumeSource.Cinder == nil { + x.VolumeSource.Cinder = new(CinderVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + if x.VolumeSource.CephFS == nil { + x.VolumeSource.CephFS = new(CephFSVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + if x.VolumeSource.Flocker == nil { + x.VolumeSource.Flocker = new(FlockerVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + if x.VolumeSource.DownwardAPI == nil { + x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + if x.VolumeSource.FC == nil { + x.VolumeSource.FC = new(FCVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + if x.VolumeSource.AzureFile == nil { + x.VolumeSource.AzureFile = new(AzureFileVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + if x.VolumeSource.ConfigMap == nil { + x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + if x.VolumeSource.VsphereVolume == nil { + x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + for { + yyj144++ + if yyhl144 { + yyb144 = yyj144 > l + } else { + yyb144 = r.CheckBreak() + } + if yyb144 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj144-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym166 := z.EncBinary() + _ = yym166 + 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) + } else { + yynn167 = 0 + for _, b := range yyq167 { + if b { + yynn167++ + } + } + r.EncodeMapStart(yynn167) + yynn167 = 0 + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[0] { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[1] { + if x.EmptyDir == nil { + r.EncodeNil() + } else { + x.EmptyDir.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.EmptyDir == nil { + r.EncodeNil() + } else { + x.EmptyDir.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[2] { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[3] { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[4] { + if x.GitRepo == nil { + r.EncodeNil() + } else { + x.GitRepo.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GitRepo == nil { + r.EncodeNil() + } else { + x.GitRepo.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[5] { + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secret")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Secret == nil { + r.EncodeNil() + } else { + x.Secret.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[6] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[7] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[8] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[9] { + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PersistentVolumeClaim == nil { + r.EncodeNil() + } else { + x.PersistentVolumeClaim.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[10] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[11] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[12] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[13] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[14] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[15] { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[16] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[17] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[18] { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMap")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq167[19] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq167[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + if yyr167 || yy2arr167 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym188 := z.DecBinary() + _ = yym188 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct189 := r.ContainerType() + if yyct189 == codecSelferValueTypeMap1234 { + yyl189 := r.ReadMapStart() + if yyl189 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl189, d) + } + } else if yyct189 == codecSelferValueTypeArray1234 { + yyl189 := r.ReadArrayStart() + if yyl189 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl189, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys190Slc = r.DecodeBytes(yys190Slc, true, true) + yys190 := string(yys190Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys190 { + case "hostPath": + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "emptyDir": + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + case "gcePersistentDisk": + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "gitRepo": + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + case "secret": + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + case "nfs": + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "iscsi": + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "glusterfs": + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "persistentVolumeClaim": + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + case "rbd": + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "flexVolume": + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "cinder": + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "flocker": + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "downwardAPI": + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + case "fc": + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "azureFile": + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "configMap": + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + case "vsphereVolume": + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys190) + } // end switch yys190 + } // end for yyj190 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.EmptyDir != nil { + x.EmptyDir = nil + } + } else { + if x.EmptyDir == nil { + x.EmptyDir = new(EmptyDirVolumeSource) + } + x.EmptyDir.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GitRepo != nil { + x.GitRepo = nil + } + } else { + if x.GitRepo == nil { + x.GitRepo = new(GitRepoVolumeSource) + } + x.GitRepo.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Secret != nil { + x.Secret = nil + } + } else { + if x.Secret == nil { + x.Secret = new(SecretVolumeSource) + } + x.Secret.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PersistentVolumeClaim != nil { + x.PersistentVolumeClaim = nil + } + } else { + if x.PersistentVolumeClaim == nil { + x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) + } + x.PersistentVolumeClaim.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DownwardAPI != nil { + x.DownwardAPI = nil + } + } else { + if x.DownwardAPI == nil { + x.DownwardAPI = new(DownwardAPIVolumeSource) + } + x.DownwardAPI.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ConfigMap != nil { + x.ConfigMap = nil + } + } else { + if x.ConfigMap == nil { + x.ConfigMap = new(ConfigMapVolumeSource) + } + x.ConfigMap.CodecDecodeSelf(d) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + for { + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj211-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym232 := z.EncBinary() + _ = yym232 + 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 { + r.EncodeArrayStart(2) + } else { + yynn233 = 1 + for _, b := range yyq233 { + if b { + yynn233++ + } + } + r.EncodeMapStart(yynn233) + yynn233 = 0 + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym235 := z.EncBinary() + _ = yym235 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("claimName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym236 := z.EncBinary() + _ = yym236 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq233[1] { + yym238 := z.EncBinary() + _ = yym238 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq233[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym239 := z.EncBinary() + _ = yym239 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr233 || yy2arr233 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym240 := z.DecBinary() + _ = yym240 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct241 := r.ContainerType() + if yyct241 == codecSelferValueTypeMap1234 { + yyl241 := r.ReadMapStart() + if yyl241 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl241, d) + } + } else if yyct241 == codecSelferValueTypeArray1234 { + yyl241 := r.ReadArrayStart() + if yyl241 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl241, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys242Slc = r.DecodeBytes(yys242Slc, true, true) + yys242 := string(yys242Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys242 { + case "claimName": + if r.TryDecodeAsNil() { + x.ClaimName = "" + } else { + x.ClaimName = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys242) + } // end switch yys242 + } // end for yyj242 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb245 = r.CheckBreak() + } + if yyb245 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClaimName = "" + } else { + x.ClaimName = string(r.DecodeString()) + } + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l + } else { + yyb245 = r.CheckBreak() + } + if yyb245 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj245++ + if yyhl245 { + yyb245 = yyj245 > l + } else { + yyb245 = r.CheckBreak() + } + if yyb245 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj245-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym248 := z.EncBinary() + _ = yym248 + 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) + } else { + yynn249 = 0 + for _, b := range yyq249 { + if b { + yynn249++ + } + } + r.EncodeMapStart(yynn249) + yynn249 = 0 + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[0] { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[1] { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[2] { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[3] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[4] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[5] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[6] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[7] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[8] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[9] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[10] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[11] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[12] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq249[13] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq249[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + if yyr249 || yy2arr249 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym264 := z.DecBinary() + _ = yym264 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct265 := r.ContainerType() + if yyct265 == codecSelferValueTypeMap1234 { + yyl265 := r.ReadMapStart() + if yyl265 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl265, d) + } + } else if yyct265 == codecSelferValueTypeArray1234 { + yyl265 := r.ReadArrayStart() + if yyl265 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl265, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys266Slc = r.DecodeBytes(yys266Slc, true, true) + yys266 := string(yys266Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys266 { + case "gcePersistentDisk": + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "hostPath": + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "glusterfs": + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "nfs": + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "rbd": + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "iscsi": + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "cinder": + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "fc": + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "flocker": + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "flexVolume": + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "azureFile": + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "vsphereVolume": + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys266) + } // end switch yys266 + } // end for yyj266 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + for { + yyj281++ + if yyhl281 { + yyb281 = yyj281 > l + } else { + yyb281 = r.CheckBreak() + } + if yyb281 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj281-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym296 := z.EncBinary() + _ = yym296 + 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 { + r.EncodeArrayStart(5) + } else { + yynn297 = 0 + for _, b := range yyq297 { + if b { + yynn297++ + } + } + r.EncodeMapStart(yynn297) + yynn297 = 0 + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[0] { + yym299 := z.EncBinary() + _ = yym299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq297[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym300 := z.EncBinary() + _ = yym300 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[1] { + yym302 := z.EncBinary() + _ = yym302 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq297[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym303 := z.EncBinary() + _ = yym303 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[2] { + yy305 := &x.ObjectMeta + yy305.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq297[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy306 := &x.ObjectMeta + yy306.CodecEncodeSelf(e) + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[3] { + yy308 := &x.Spec + yy308.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq297[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy309 := &x.Spec + yy309.CodecEncodeSelf(e) + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq297[4] { + yy311 := &x.Status + yy311.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq297[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy312 := &x.Status + yy312.CodecEncodeSelf(e) + } + } + if yyr297 || yy2arr297 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym313 := z.DecBinary() + _ = yym313 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct314 := r.ContainerType() + if yyct314 == codecSelferValueTypeMap1234 { + yyl314 := r.ReadMapStart() + if yyl314 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl314, d) + } + } else if yyct314 == codecSelferValueTypeArray1234 { + yyl314 := r.ReadArrayStart() + if yyl314 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl314, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys315Slc = r.DecodeBytes(yys315Slc, true, true) + yys315 := string(yys315Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys315 { + 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 { + yyv318 := &x.ObjectMeta + yyv318.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeSpec{} + } else { + yyv319 := &x.Spec + yyv319.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeStatus{} + } else { + yyv320 := &x.Status + yyv320.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys315) + } // end switch yys315 + } // end for yyj315 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv324 := &x.ObjectMeta + yyv324.CodecDecodeSelf(d) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeSpec{} + } else { + yyv325 := &x.Spec + yyv325.CodecDecodeSelf(d) + } + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeStatus{} + } else { + yyv326 := &x.Status + yyv326.CodecDecodeSelf(d) + } + for { + yyj321++ + if yyhl321 { + yyb321 = yyj321 > l + } else { + yyb321 = r.CheckBreak() + } + if yyb321 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj321-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym327 := z.EncBinary() + _ = yym327 + 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) + } else { + yynn328 = 0 + for _, b := range yyq328 { + if b { + yynn328++ + } + } + r.EncodeMapStart(yynn328) + yynn328 = 0 + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[0] { + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq328[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + } + var yyn330 bool + if x.PersistentVolumeSource.GCEPersistentDisk == nil { + yyn330 = true + goto LABEL330 + } + LABEL330: + if yyr328 || yy2arr328 { + if yyn330 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[1] { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn330 { + r.EncodeNil() + } else { + if x.GCEPersistentDisk == nil { + r.EncodeNil() + } else { + x.GCEPersistentDisk.CodecEncodeSelf(e) + } + } + } + } + var yyn331 bool + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { + yyn331 = true + goto LABEL331 + } + LABEL331: + if yyr328 || yy2arr328 { + if yyn331 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[2] { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn331 { + r.EncodeNil() + } else { + if x.AWSElasticBlockStore == nil { + r.EncodeNil() + } else { + x.AWSElasticBlockStore.CodecEncodeSelf(e) + } + } + } + } + var yyn332 bool + if x.PersistentVolumeSource.HostPath == nil { + yyn332 = true + goto LABEL332 + } + LABEL332: + if yyr328 || yy2arr328 { + if yyn332 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[3] { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn332 { + r.EncodeNil() + } else { + if x.HostPath == nil { + r.EncodeNil() + } else { + x.HostPath.CodecEncodeSelf(e) + } + } + } + } + var yyn333 bool + if x.PersistentVolumeSource.Glusterfs == nil { + yyn333 = true + goto LABEL333 + } + LABEL333: + if yyr328 || yy2arr328 { + if yyn333 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[4] { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn333 { + r.EncodeNil() + } else { + if x.Glusterfs == nil { + r.EncodeNil() + } else { + x.Glusterfs.CodecEncodeSelf(e) + } + } + } + } + var yyn334 bool + if x.PersistentVolumeSource.NFS == nil { + yyn334 = true + goto LABEL334 + } + LABEL334: + if yyr328 || yy2arr328 { + if yyn334 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[5] { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn334 { + r.EncodeNil() + } else { + if x.NFS == nil { + r.EncodeNil() + } else { + x.NFS.CodecEncodeSelf(e) + } + } + } + } + var yyn335 bool + if x.PersistentVolumeSource.RBD == nil { + yyn335 = true + goto LABEL335 + } + LABEL335: + if yyr328 || yy2arr328 { + if yyn335 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[6] { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn335 { + r.EncodeNil() + } else { + if x.RBD == nil { + r.EncodeNil() + } else { + x.RBD.CodecEncodeSelf(e) + } + } + } + } + var yyn336 bool + if x.PersistentVolumeSource.ISCSI == nil { + yyn336 = true + goto LABEL336 + } + LABEL336: + if yyr328 || yy2arr328 { + if yyn336 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[7] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn336 { + r.EncodeNil() + } else { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + } + var yyn337 bool + if x.PersistentVolumeSource.Cinder == nil { + yyn337 = true + goto LABEL337 + } + LABEL337: + if yyr328 || yy2arr328 { + if yyn337 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[8] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn337 { + r.EncodeNil() + } else { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + } + var yyn338 bool + if x.PersistentVolumeSource.CephFS == nil { + yyn338 = true + goto LABEL338 + } + LABEL338: + if yyr328 || yy2arr328 { + if yyn338 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[9] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn338 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn339 bool + if x.PersistentVolumeSource.FC == nil { + yyn339 = true + goto LABEL339 + } + LABEL339: + if yyr328 || yy2arr328 { + if yyn339 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[10] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn339 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn340 bool + if x.PersistentVolumeSource.Flocker == nil { + yyn340 = true + goto LABEL340 + } + LABEL340: + if yyr328 || yy2arr328 { + if yyn340 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[11] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn340 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn341 bool + if x.PersistentVolumeSource.FlexVolume == nil { + yyn341 = true + goto LABEL341 + } + LABEL341: + if yyr328 || yy2arr328 { + if yyn341 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[12] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn341 { + r.EncodeNil() + } else { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn342 bool + if x.PersistentVolumeSource.AzureFile == nil { + yyn342 = true + goto LABEL342 + } + LABEL342: + if yyr328 || yy2arr328 { + if yyn342 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[13] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn342 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn343 bool + if x.PersistentVolumeSource.VsphereVolume == nil { + yyn343 = true + goto LABEL343 + } + LABEL343: + if yyr328 || yy2arr328 { + if yyn343 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[14] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq328[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn343 { + r.EncodeNil() + } else { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[15] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym345 := z.EncBinary() + _ = yym345 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq328[15] { + 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 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[16] { + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq328[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("claimRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ClaimRef == nil { + r.EncodeNil() + } else { + x.ClaimRef.CodecEncodeSelf(e) + } + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq328[17] { + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq328[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) + } + } + if yyr328 || yy2arr328 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym349 := z.DecBinary() + _ = yym349 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct350 := r.ContainerType() + if yyct350 == codecSelferValueTypeMap1234 { + yyl350 := r.ReadMapStart() + if yyl350 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl350, d) + } + } else if yyct350 == codecSelferValueTypeArray1234 { + yyl350 := r.ReadArrayStart() + if yyl350 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl350, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys351Slc = r.DecodeBytes(yys351Slc, true, true) + yys351 := string(yys351Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys351 { + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv352 := &x.Capacity + yyv352.CodecDecodeSelf(d) + } + case "gcePersistentDisk": + if x.PersistentVolumeSource.GCEPersistentDisk == nil { + x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + case "awsElasticBlockStore": + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { + x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + case "hostPath": + if x.PersistentVolumeSource.HostPath == nil { + x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) + } + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + case "glusterfs": + if x.PersistentVolumeSource.Glusterfs == nil { + x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + case "nfs": + if x.PersistentVolumeSource.NFS == nil { + x.PersistentVolumeSource.NFS = new(NFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + case "rbd": + if x.PersistentVolumeSource.RBD == nil { + x.PersistentVolumeSource.RBD = new(RBDVolumeSource) + } + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + case "iscsi": + if x.PersistentVolumeSource.ISCSI == nil { + x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) + } + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + case "cinder": + if x.PersistentVolumeSource.Cinder == nil { + x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + case "cephfs": + if x.PersistentVolumeSource.CephFS == nil { + x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) + } + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + case "fc": + if x.PersistentVolumeSource.FC == nil { + x.PersistentVolumeSource.FC = new(FCVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + case "flocker": + if x.PersistentVolumeSource.Flocker == nil { + x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + case "flexVolume": + if x.PersistentVolumeSource.FlexVolume == nil { + x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) + } + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + case "azureFile": + if x.PersistentVolumeSource.AzureFile == nil { + x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + case "vsphereVolume": + if x.PersistentVolumeSource.VsphereVolume == nil { + x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + case "accessModes": + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv367 := &x.AccessModes + yym368 := z.DecBinary() + _ = yym368 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv367), d) + } + } + case "claimRef": + if r.TryDecodeAsNil() { + if x.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + case "persistentVolumeReclaimPolicy": + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys351) + } // end switch yys351 + } // end for yyj351 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv372 := &x.Capacity + yyv372.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.GCEPersistentDisk == nil { + x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GCEPersistentDisk != nil { + x.GCEPersistentDisk = nil + } + } else { + if x.GCEPersistentDisk == nil { + x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) + } + x.GCEPersistentDisk.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { + x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AWSElasticBlockStore != nil { + x.AWSElasticBlockStore = nil + } + } else { + if x.AWSElasticBlockStore == nil { + x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + } + x.AWSElasticBlockStore.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.HostPath == nil { + x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HostPath != nil { + x.HostPath = nil + } + } else { + if x.HostPath == nil { + x.HostPath = new(HostPathVolumeSource) + } + x.HostPath.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.Glusterfs == nil { + x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Glusterfs != nil { + x.Glusterfs = nil + } + } else { + if x.Glusterfs == nil { + x.Glusterfs = new(GlusterfsVolumeSource) + } + x.Glusterfs.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.NFS == nil { + x.PersistentVolumeSource.NFS = new(NFSVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NFS != nil { + x.NFS = nil + } + } else { + if x.NFS == nil { + x.NFS = new(NFSVolumeSource) + } + x.NFS.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.RBD == nil { + x.PersistentVolumeSource.RBD = new(RBDVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RBD != nil { + x.RBD = nil + } + } else { + if x.RBD == nil { + x.RBD = new(RBDVolumeSource) + } + x.RBD.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.ISCSI == nil { + x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ISCSI != nil { + x.ISCSI = nil + } + } else { + if x.ISCSI == nil { + x.ISCSI = new(ISCSIVolumeSource) + } + x.ISCSI.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.Cinder == nil { + x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Cinder != nil { + x.Cinder = nil + } + } else { + if x.Cinder == nil { + x.Cinder = new(CinderVolumeSource) + } + x.Cinder.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.CephFS == nil { + x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CephFS != nil { + x.CephFS = nil + } + } else { + if x.CephFS == nil { + x.CephFS = new(CephFSVolumeSource) + } + x.CephFS.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.FC == nil { + x.PersistentVolumeSource.FC = new(FCVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FC != nil { + x.FC = nil + } + } else { + if x.FC == nil { + x.FC = new(FCVolumeSource) + } + x.FC.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.Flocker == nil { + x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Flocker != nil { + x.Flocker = nil + } + } else { + if x.Flocker == nil { + x.Flocker = new(FlockerVolumeSource) + } + x.Flocker.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.FlexVolume == nil { + x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FlexVolume != nil { + x.FlexVolume = nil + } + } else { + if x.FlexVolume == nil { + x.FlexVolume = new(FlexVolumeSource) + } + x.FlexVolume.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.AzureFile == nil { + x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureFile != nil { + x.AzureFile = nil + } + } else { + if x.AzureFile == nil { + x.AzureFile = new(AzureFileVolumeSource) + } + x.AzureFile.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.VsphereVolume == nil { + x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.VsphereVolume != nil { + x.VsphereVolume = nil + } + } else { + if x.VsphereVolume == nil { + x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) + } + x.VsphereVolume.CodecDecodeSelf(d) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv387 := &x.AccessModes + yym388 := z.DecBinary() + _ = yym388 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv387), d) + } + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ClaimRef != nil { + x.ClaimRef = nil + } + } else { + if x.ClaimRef == nil { + x.ClaimRef = new(ObjectReference) + } + x.ClaimRef.CodecDecodeSelf(d) + } + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PersistentVolumeReclaimPolicy = "" + } else { + x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) + } + for { + yyj371++ + if yyhl371 { + yyb371 = yyj371 > l + } else { + yyb371 = r.CheckBreak() + } + if yyb371 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj371-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym391 := z.EncBinary() + _ = yym391 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym392 := z.DecBinary() + _ = yym392 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym393 := z.EncBinary() + _ = yym393 + 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 { + r.EncodeArrayStart(3) + } else { + yynn394 = 0 + for _, b := range yyq394 { + if b { + yynn394++ + } + } + r.EncodeMapStart(yynn394) + yynn394 = 0 + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq394[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq394[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq394[1] { + yym397 := z.EncBinary() + _ = yym397 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq394[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym398 := z.EncBinary() + _ = yym398 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq394[2] { + yym400 := z.EncBinary() + _ = yym400 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq394[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym401 := z.EncBinary() + _ = yym401 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr394 || yy2arr394 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym402 := z.DecBinary() + _ = yym402 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct403 := r.ContainerType() + if yyct403 == codecSelferValueTypeMap1234 { + yyl403 := r.ReadMapStart() + if yyl403 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl403, d) + } + } else if yyct403 == codecSelferValueTypeArray1234 { + yyl403 := r.ReadArrayStart() + if yyl403 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl403, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys404Slc = r.DecodeBytes(yys404Slc, true, true) + yys404 := string(yys404Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys404 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PersistentVolumePhase(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys404) + } // end switch yys404 + } // end for yyj404 + 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 + var yyj437 int + var yyb437 bool + var yyhl437 bool = l >= 0 + 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ListMeta = pkg2_unversioned.ListMeta{} + } 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) + } + } + for { + yyj437++ + if yyhl437 { + yyb437 = yyj437 > l + } else { + yyb437 = r.CheckBreak() + } + if yyb437 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj437-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 { + yym444 := z.EncBinary() + _ = yym444 + 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) + } else { + yynn445 = 0 + for _, b := range yyq445 { + if b { + yynn445++ + } + } + r.EncodeMapStart(yynn445) + yynn445 = 0 + } + if yyr445 || yy2arr445 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq445[0] { + yym447 := z.EncBinary() + _ = yym447 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq445[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym448 := z.EncBinary() + _ = yym448 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr445 || yy2arr445 { + 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) + yym451 := z.EncBinary() + _ = yym451 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr445 || yy2arr445 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq445[2] { + yy453 := &x.ObjectMeta + yy453.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq445[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 + if false { + } 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)) + } + } + } + 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 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym489 := z.EncBinary() + _ = yym489 + 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 { + yym490 := z.EncBinary() + _ = yym490 + if false { + } else { + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + } + } + } + if yyr476 || yy2arr476 { + 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 + yym491 := z.DecBinary() + _ = yym491 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct492 := r.ContainerType() + if yyct492 == codecSelferValueTypeMap1234 { + yyl492 := r.ReadMapStart() + if yyl492 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl492, d) + } + } else if yyct492 == codecSelferValueTypeArray1234 { + yyl492 := r.ReadArrayStart() + if yyl492 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl492, 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 yys493Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys493Slc + var yyhl493 bool = l >= 0 + for yyj493 := 0; ; yyj493++ { + if yyhl493 { + if yyj493 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys493Slc = r.DecodeBytes(yys493Slc, true, true) + yys493 := string(yys493Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys493 { + 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 { + yyv496 := &x.ListMeta + yym497 := z.DecBinary() + _ = yym497 + if false { + } else if z.HasExtensions() && z.DecExt(yyv496) { + } else { + z.DecFallback(yyv496, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv498 := &x.Items + yym499 := z.DecBinary() + _ = yym499 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv498), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys493) + } // end switch yys493 + } // end for yyj493 + 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 yyj500 int + var yyb500 bool + var yyhl500 bool = l >= 0 + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv503 := &x.ListMeta + yym504 := z.DecBinary() + _ = yym504 + if false { + } else if z.HasExtensions() && z.DecExt(yyv503) { + } else { + z.DecFallback(yyv503, false) + } + } + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv505 := &x.Items + yym506 := z.DecBinary() + _ = yym506 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv505), d) + } + } + for { + yyj500++ + if yyhl500 { + yyb500 = yyj500 > l + } else { + yyb500 = r.CheckBreak() + } + if yyb500 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj500-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym507 := z.EncBinary() + _ = yym507 + 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 { + r.EncodeArrayStart(4) + } else { + yynn508 = 0 + for _, b := range yyq508 { + if b { + yynn508++ + } + } + r.EncodeMapStart(yynn508) + yynn508 = 0 + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[0] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym510 := z.EncBinary() + _ = yym510 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq508[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 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym513 := z.EncBinary() + _ = yym513 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq508[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[2] { + yy516 := &x.Resources + yy516.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq508[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy517 := &x.Resources + yy517.CodecEncodeSelf(e) + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq508[3] { + yym519 := z.EncBinary() + _ = yym519 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq508[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym520 := z.EncBinary() + _ = yym520 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) + } + } + } + if yyr508 || yy2arr508 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym521 := z.DecBinary() + _ = yym521 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct522 := r.ContainerType() + if yyct522 == codecSelferValueTypeMap1234 { + yyl522 := r.ReadMapStart() + if yyl522 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl522, d) + } + } else if yyct522 == codecSelferValueTypeArray1234 { + yyl522 := r.ReadArrayStart() + if yyl522 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl522, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys523Slc = r.DecodeBytes(yys523Slc, true, true) + yys523 := string(yys523Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys523 { + case "accessModes": + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv524 := &x.AccessModes + yym525 := z.DecBinary() + _ = yym525 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv524), d) + } + } + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg2_unversioned.LabelSelector) + } + yym527 := z.DecBinary() + _ = yym527 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + case "resources": + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv528 := &x.Resources + yyv528.CodecDecodeSelf(d) + } + case "volumeName": + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys523) + } // end switch yys523 + } // end for yyj523 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv531 := &x.AccessModes + yym532 := z.DecBinary() + _ = yym532 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv531), d) + } + } + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg2_unversioned.LabelSelector) + } + yym534 := z.DecBinary() + _ = yym534 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv535 := &x.Resources + yyv535.CodecDecodeSelf(d) + } + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = string(r.DecodeString()) + } + for { + yyj530++ + if yyhl530 { + yyb530 = yyj530 > l + } else { + yyb530 = r.CheckBreak() + } + if yyb530 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj530-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym537 := z.EncBinary() + _ = yym537 + 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 { + r.EncodeArrayStart(3) + } else { + yynn538 = 0 + for _, b := range yyq538 { + if b { + yynn538++ + } + } + r.EncodeMapStart(yynn538) + yynn538 = 0 + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq538[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq538[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq538[1] { + if x.AccessModes == nil { + r.EncodeNil() + } else { + yym541 := z.EncBinary() + _ = yym541 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq538[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 + if false { + } else { + h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) + } + } + } + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq538[2] { + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq538[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + } + if yyr538 || yy2arr538 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym544 := z.DecBinary() + _ = yym544 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct545 := r.ContainerType() + if yyct545 == codecSelferValueTypeMap1234 { + yyl545 := r.ReadMapStart() + if yyl545 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl545, d) + } + } else if yyct545 == codecSelferValueTypeArray1234 { + yyl545 := r.ReadArrayStart() + if yyl545 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl545, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys546Slc = r.DecodeBytes(yys546Slc, true, true) + yys546 := string(yys546Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys546 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) + } + case "accessModes": + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv548 := &x.AccessModes + yym549 := z.DecBinary() + _ = yym549 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv548), d) + } + } + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv550 := &x.Capacity + yyv550.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys546) + } // end switch yys546 + } // end for yyj546 + 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 + var yyj580 int + var yyb580 bool + var yyhl580 bool = l >= 0 + 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.Medium = "" + } else { + x.Medium = StorageMedium(r.DecodeString()) + } + for { + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l + } else { + yyb580 = r.CheckBreak() + } + if yyb580 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj580-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 { + yym582 := z.EncBinary() + _ = yym582 + 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) + } else { + yynn583 = 2 + for _, b := range yyq583 { + if b { + yynn583++ + } + } + r.EncodeMapStart(yynn583) + yynn583 = 0 + } + if yyr583 || yy2arr583 { + 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 + 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) + yym589 := z.EncBinary() + _ = yym589 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr583 || yy2arr583 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq583[2] { + yym591 := z.EncBinary() + _ = yym591 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq583[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym592 := z.EncBinary() + _ = yym592 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr583 || yy2arr583 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym593 := z.DecBinary() + _ = yym593 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct594 := r.ContainerType() + if yyct594 == codecSelferValueTypeMap1234 { + yyl594 := r.ReadMapStart() + if yyl594 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl594, d) + } + } else if yyct594 == codecSelferValueTypeArray1234 { + yyl594 := r.ReadArrayStart() + if yyl594 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl594, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys595Slc = r.DecodeBytes(yys595Slc, true, true) + yys595 := string(yys595Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys595 { + case "endpoints": + if r.TryDecodeAsNil() { + x.EndpointsName = "" + } else { + x.EndpointsName = string(r.DecodeString()) + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys595) + } // end switch yys595 + } // end for yyj595 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb599 = r.CheckBreak() + } + if yyb599 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EndpointsName = "" + } else { + x.EndpointsName = string(r.DecodeString()) + } + yyj599++ + if yyhl599 { + yyb599 = yyj599 > l + } else { + yyb599 = r.CheckBreak() + } + if yyb599 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj599++ + if yyhl599 { + yyb599 = yyj599 > l + } else { + yyb599 = r.CheckBreak() + } + if yyb599 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj599++ + if yyhl599 { + yyb599 = yyj599 > l + } else { + yyb599 = r.CheckBreak() + } + if yyb599 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj599-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym603 := z.EncBinary() + _ = yym603 + 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 { + r.EncodeArrayStart(8) + } else { + yynn604 = 2 + for _, b := range yyq604 { + if b { + yynn604++ + } + } + r.EncodeMapStart(yynn604) + yynn604 = 0 + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.CephMonitors == nil { + r.EncodeNil() + } else { + yym606 := z.EncBinary() + _ = yym606 + if false { + } else { + z.F.EncSliceStringV(x.CephMonitors, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("monitors")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CephMonitors == nil { + r.EncodeNil() + } else { + yym607 := z.EncBinary() + _ = yym607 + if false { + } else { + z.F.EncSliceStringV(x.CephMonitors, false, e) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym609 := z.EncBinary() + _ = yym609 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym610 := z.EncBinary() + _ = yym610 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq604[2] { + yym612 := z.EncBinary() + _ = yym612 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq604[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym613 := z.EncBinary() + _ = yym613 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq604[3] { + yym615 := z.EncBinary() + _ = yym615 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq604[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("pool")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym616 := z.EncBinary() + _ = yym616 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq604[4] { + yym618 := z.EncBinary() + _ = yym618 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq604[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym619 := z.EncBinary() + _ = yym619 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq604[5] { + yym621 := z.EncBinary() + _ = yym621 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq604[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("keyring")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym622 := z.EncBinary() + _ = yym622 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq604[6] { + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq604[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq604[7] { + yym625 := z.EncBinary() + _ = yym625 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq604[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym626 := z.EncBinary() + _ = yym626 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr604 || yy2arr604 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym627 := z.DecBinary() + _ = yym627 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct628 := r.ContainerType() + if yyct628 == codecSelferValueTypeMap1234 { + yyl628 := r.ReadMapStart() + if yyl628 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl628, d) + } + } else if yyct628 == codecSelferValueTypeArray1234 { + yyl628 := r.ReadArrayStart() + if yyl628 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl628, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys629Slc = r.DecodeBytes(yys629Slc, true, true) + yys629 := string(yys629Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys629 { + case "monitors": + if r.TryDecodeAsNil() { + x.CephMonitors = nil + } else { + yyv630 := &x.CephMonitors + yym631 := z.DecBinary() + _ = yym631 + if false { + } else { + z.F.DecSliceStringX(yyv630, false, d) + } + } + case "image": + if r.TryDecodeAsNil() { + x.RBDImage = "" + } else { + x.RBDImage = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "pool": + if r.TryDecodeAsNil() { + x.RBDPool = "" + } else { + x.RBDPool = string(r.DecodeString()) + } + case "user": + if r.TryDecodeAsNil() { + x.RadosUser = "" + } else { + x.RadosUser = string(r.DecodeString()) + } + case "keyring": + if r.TryDecodeAsNil() { + x.Keyring = "" + } else { + x.Keyring = string(r.DecodeString()) + } + case "secretRef": + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys629) + } // end switch yys629 + } // end for yyj629 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CephMonitors = nil + } else { + yyv640 := &x.CephMonitors + yym641 := z.DecBinary() + _ = yym641 + if false { + } else { + z.F.DecSliceStringX(yyv640, false, d) + } + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RBDImage = "" + } else { + x.RBDImage = string(r.DecodeString()) + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RBDPool = "" + } else { + x.RBDPool = string(r.DecodeString()) + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RadosUser = "" + } else { + x.RadosUser = string(r.DecodeString()) + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Keyring = "" + } else { + x.Keyring = string(r.DecodeString()) + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj639++ + if yyhl639 { + yyb639 = yyj639 > l + } else { + yyb639 = r.CheckBreak() + } + if yyb639 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj639-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym649 := z.EncBinary() + _ = yym649 + 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 { + r.EncodeArrayStart(3) + } else { + yynn650 = 1 + for _, b := range yyq650 { + if b { + yynn650++ + } + } + r.EncodeMapStart(yynn650) + yynn650 = 0 + } + if yyr650 || yy2arr650 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym652 := z.EncBinary() + _ = yym652 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym653 := z.EncBinary() + _ = yym653 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } + if yyr650 || yy2arr650 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq650[1] { + yym655 := z.EncBinary() + _ = yym655 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq650[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym656 := z.EncBinary() + _ = yym656 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr650 || yy2arr650 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq650[2] { + yym658 := z.EncBinary() + _ = yym658 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq650[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym659 := z.EncBinary() + _ = yym659 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr650 || yy2arr650 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym660 := z.DecBinary() + _ = yym660 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct661 := r.ContainerType() + if yyct661 == codecSelferValueTypeMap1234 { + yyl661 := r.ReadMapStart() + if yyl661 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl661, d) + } + } else if yyct661 == codecSelferValueTypeArray1234 { + yyl661 := r.ReadArrayStart() + if yyl661 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl661, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys662Slc = r.DecodeBytes(yys662Slc, true, true) + yys662 := string(yys662Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys662 { + case "volumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys662) + } // end switch yys662 + } // end for yyj662 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb666 = r.CheckBreak() + } + if yyb666 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + yyj666++ + if yyhl666 { + yyb666 = yyj666 > l + } else { + yyb666 = r.CheckBreak() + } + if yyb666 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj666++ + if yyhl666 { + yyb666 = yyj666 > l + } else { + yyb666 = r.CheckBreak() + } + if yyb666 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj666++ + if yyhl666 { + yyb666 = yyj666 > l + } else { + yyb666 = r.CheckBreak() + } + if yyb666 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj666-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym670 := z.EncBinary() + _ = yym670 + 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 { + r.EncodeArrayStart(6) + } else { + yynn671 = 1 + for _, b := range yyq671 { + if b { + yynn671++ + } + } + r.EncodeMapStart(yynn671) + yynn671 = 0 + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Monitors == nil { + r.EncodeNil() + } else { + yym673 := z.EncBinary() + _ = yym673 + if false { + } else { + z.F.EncSliceStringV(x.Monitors, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("monitors")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Monitors == nil { + r.EncodeNil() + } else { + yym674 := z.EncBinary() + _ = yym674 + if false { + } else { + z.F.EncSliceStringV(x.Monitors, false, e) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[1] { + yym676 := z.EncBinary() + _ = yym676 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq671[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym677 := z.EncBinary() + _ = yym677 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[2] { + yym679 := z.EncBinary() + _ = yym679 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq671[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym680 := z.EncBinary() + _ = yym680 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[3] { + yym682 := z.EncBinary() + _ = yym682 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq671[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym683 := z.EncBinary() + _ = yym683 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[4] { + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq671[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[5] { + yym686 := z.EncBinary() + _ = yym686 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq671[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym687 := z.EncBinary() + _ = yym687 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym688 := z.DecBinary() + _ = yym688 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct689 := r.ContainerType() + if yyct689 == codecSelferValueTypeMap1234 { + yyl689 := r.ReadMapStart() + if yyl689 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl689, d) + } + } else if yyct689 == codecSelferValueTypeArray1234 { + yyl689 := r.ReadArrayStart() + if yyl689 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl689, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys690Slc = r.DecodeBytes(yys690Slc, true, true) + yys690 := string(yys690Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys690 { + case "monitors": + if r.TryDecodeAsNil() { + x.Monitors = nil + } else { + yyv691 := &x.Monitors + yym692 := z.DecBinary() + _ = yym692 + if false { + } else { + z.F.DecSliceStringX(yyv691, false, d) + } + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "user": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + case "secretFile": + if r.TryDecodeAsNil() { + x.SecretFile = "" + } else { + x.SecretFile = string(r.DecodeString()) + } + case "secretRef": + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys690) + } // end switch yys690 + } // end for yyj690 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Monitors = nil + } else { + yyv699 := &x.Monitors + yym700 := z.DecBinary() + _ = yym700 + if false { + } else { + z.F.DecSliceStringX(yyv699, false, d) + } + } + yyj698++ + if yyhl698 { + yyb698 = yyj698 > l + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj698++ + if yyhl698 { + yyb698 = yyj698 > l + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + yyj698++ + if yyhl698 { + yyb698 = yyj698 > l + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretFile = "" + } else { + x.SecretFile = string(r.DecodeString()) + } + yyj698++ + if yyhl698 { + yyb698 = yyj698 > l + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + yyj698++ + if yyhl698 { + yyb698 = yyj698 > l + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj698++ + if yyhl698 { + yyb698 = yyj698 > l + } else { + yyb698 = r.CheckBreak() + } + if yyb698 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj698-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym706 := z.EncBinary() + _ = yym706 + 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 { + r.EncodeArrayStart(1) + } else { + yynn707 = 1 + for _, b := range yyq707 { + if b { + yynn707++ + } + } + r.EncodeMapStart(yynn707) + yynn707 = 0 + } + if yyr707 || yy2arr707 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym709 := z.EncBinary() + _ = yym709 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("datasetName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym710 := z.EncBinary() + _ = yym710 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } + } + if yyr707 || yy2arr707 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym711 := z.DecBinary() + _ = yym711 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct712 := r.ContainerType() + if yyct712 == codecSelferValueTypeMap1234 { + yyl712 := r.ReadMapStart() + if yyl712 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl712, d) + } + } else if yyct712 == codecSelferValueTypeArray1234 { + yyl712 := r.ReadArrayStart() + if yyl712 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl712, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys713Slc = r.DecodeBytes(yys713Slc, true, true) + yys713 := string(yys713Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys713 { + case "datasetName": + if r.TryDecodeAsNil() { + x.DatasetName = "" + } else { + x.DatasetName = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys713) + } // end switch yys713 + } // end for yyj713 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb715 = r.CheckBreak() + } + if yyb715 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DatasetName = "" + } else { + x.DatasetName = string(r.DecodeString()) + } + for { + yyj715++ + if yyhl715 { + yyb715 = yyj715 > l + } else { + yyb715 = r.CheckBreak() + } + if yyb715 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj715-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym717 := z.EncBinary() + _ = yym717 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym718 := z.DecBinary() + _ = yym718 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym719 := z.EncBinary() + _ = yym719 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym720 := z.DecBinary() + _ = yym720 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym721 := z.EncBinary() + _ = yym721 + 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 { + r.EncodeArrayStart(4) + } else { + yynn722 = 1 + for _, b := range yyq722 { + if b { + yynn722++ + } + } + r.EncodeMapStart(yynn722) + yynn722 = 0 + } + if yyr722 || yy2arr722 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym724 := z.EncBinary() + _ = yym724 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("pdName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym725 := z.EncBinary() + _ = yym725 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) + } + } + if yyr722 || yy2arr722 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq722[1] { + yym727 := z.EncBinary() + _ = yym727 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq722[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym728 := z.EncBinary() + _ = yym728 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr722 || yy2arr722 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq722[2] { + yym730 := z.EncBinary() + _ = yym730 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq722[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("partition")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym731 := z.EncBinary() + _ = yym731 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } + } + if yyr722 || yy2arr722 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq722[3] { + yym733 := z.EncBinary() + _ = yym733 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq722[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym734 := z.EncBinary() + _ = yym734 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr722 || yy2arr722 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym735 := z.DecBinary() + _ = yym735 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct736 := r.ContainerType() + if yyct736 == codecSelferValueTypeMap1234 { + yyl736 := r.ReadMapStart() + if yyl736 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl736, d) + } + } else if yyct736 == codecSelferValueTypeArray1234 { + yyl736 := r.ReadArrayStart() + if yyl736 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl736, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys737Slc = r.DecodeBytes(yys737Slc, true, true) + yys737 := string(yys737Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys737 { + case "pdName": + if r.TryDecodeAsNil() { + x.PDName = "" + } else { + x.PDName = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "partition": + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys737) + } // end switch yys737 + } // end for yyj737 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb742 = r.CheckBreak() + } + if yyb742 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PDName = "" + } else { + x.PDName = string(r.DecodeString()) + } + yyj742++ + if yyhl742 { + yyb742 = yyj742 > l + } else { + yyb742 = r.CheckBreak() + } + if yyb742 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj742++ + if yyhl742 { + yyb742 = yyj742 > l + } else { + yyb742 = r.CheckBreak() + } + if yyb742 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + yyj742++ + if yyhl742 { + yyb742 = yyj742 > l + } else { + yyb742 = r.CheckBreak() + } + if yyb742 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj742++ + if yyhl742 { + yyb742 = yyj742 > l + } else { + yyb742 = r.CheckBreak() + } + if yyb742 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj742-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym747 := z.EncBinary() + _ = yym747 + 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 { + r.EncodeArrayStart(5) + } else { + yynn748 = 1 + for _, b := range yyq748 { + if b { + yynn748++ + } + } + r.EncodeMapStart(yynn748) + yynn748 = 0 + } + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym750 := z.EncBinary() + _ = yym750 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("driver")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym751 := z.EncBinary() + _ = yym751 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) + } + } + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq748[1] { + yym753 := z.EncBinary() + _ = yym753 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq748[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym754 := z.EncBinary() + _ = yym754 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq748[2] { + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq748[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretRef == nil { + r.EncodeNil() + } else { + x.SecretRef.CodecEncodeSelf(e) + } + } + } + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq748[3] { + yym757 := z.EncBinary() + _ = yym757 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq748[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym758 := z.EncBinary() + _ = yym758 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq748[4] { + if x.Options == nil { + r.EncodeNil() + } else { + yym760 := z.EncBinary() + _ = yym760 + if false { + } else { + z.F.EncMapStringStringV(x.Options, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq748[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 + if false { + } else { + z.F.EncMapStringStringV(x.Options, false, e) + } + } + } + } + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym762 := z.DecBinary() + _ = yym762 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct763 := r.ContainerType() + if yyct763 == codecSelferValueTypeMap1234 { + yyl763 := r.ReadMapStart() + if yyl763 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl763, d) + } + } else if yyct763 == codecSelferValueTypeArray1234 { + yyl763 := r.ReadArrayStart() + if yyl763 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl763, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys764Slc = r.DecodeBytes(yys764Slc, true, true) + yys764 := string(yys764Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys764 { + case "driver": + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "secretRef": + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + case "options": + if r.TryDecodeAsNil() { + x.Options = nil + } else { + yyv769 := &x.Options + yym770 := z.DecBinary() + _ = yym770 + if false { + } else { + z.F.DecMapStringStringX(yyv769, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys764) + } // end switch yys764 + } // end for yyj764 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = string(r.DecodeString()) + } + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretRef != nil { + x.SecretRef = nil + } + } else { + if x.SecretRef == nil { + x.SecretRef = new(LocalObjectReference) + } + x.SecretRef.CodecDecodeSelf(d) + } + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Options = nil + } else { + yyv776 := &x.Options + yym777 := z.DecBinary() + _ = yym777 + if false { + } else { + z.F.DecMapStringStringX(yyv776, false, d) + } + } + for { + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj771-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym778 := z.EncBinary() + _ = yym778 + 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 { + r.EncodeArrayStart(4) + } else { + yynn779 = 1 + for _, b := range yyq779 { + if b { + yynn779++ + } + } + r.EncodeMapStart(yynn779) + yynn779 = 0 + } + if yyr779 || yy2arr779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym781 := z.EncBinary() + _ = yym781 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym782 := z.EncBinary() + _ = yym782 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) + } + } + if yyr779 || yy2arr779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq779[1] { + yym784 := z.EncBinary() + _ = yym784 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq779[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym785 := z.EncBinary() + _ = yym785 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr779 || yy2arr779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq779[2] { + yym787 := z.EncBinary() + _ = yym787 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq779[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("partition")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym788 := z.EncBinary() + _ = yym788 + if false { + } else { + r.EncodeInt(int64(x.Partition)) + } + } + } + if yyr779 || yy2arr779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq779[3] { + yym790 := z.EncBinary() + _ = yym790 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq779[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym791 := z.EncBinary() + _ = yym791 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr779 || yy2arr779 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym792 := z.DecBinary() + _ = yym792 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct793 := r.ContainerType() + if yyct793 == codecSelferValueTypeMap1234 { + yyl793 := r.ReadMapStart() + if yyl793 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl793, d) + } + } else if yyct793 == codecSelferValueTypeArray1234 { + yyl793 := r.ReadArrayStart() + if yyl793 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl793, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys794Slc = r.DecodeBytes(yys794Slc, true, true) + yys794 := string(yys794Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys794 { + case "volumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "partition": + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys794) + } // end switch yys794 + } // end for yyj794 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb799 = r.CheckBreak() + } + if yyb799 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = string(r.DecodeString()) + } + yyj799++ + if yyhl799 { + yyb799 = yyj799 > l + } else { + yyb799 = r.CheckBreak() + } + if yyb799 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj799++ + if yyhl799 { + yyb799 = yyj799 > l + } else { + yyb799 = r.CheckBreak() + } + if yyb799 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Partition = 0 + } else { + x.Partition = int32(r.DecodeInt(32)) + } + yyj799++ + if yyhl799 { + yyb799 = yyj799 > l + } else { + yyb799 = r.CheckBreak() + } + if yyb799 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj799++ + if yyhl799 { + yyb799 = yyj799 > l + } else { + yyb799 = r.CheckBreak() + } + if yyb799 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj799-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym804 := z.EncBinary() + _ = yym804 + 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 { + r.EncodeArrayStart(3) + } else { + yynn805 = 1 + for _, b := range yyq805 { + if b { + yynn805++ + } + } + r.EncodeMapStart(yynn805) + yynn805 = 0 + } + if yyr805 || yy2arr805 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym807 := z.EncBinary() + _ = yym807 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("repository")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym808 := z.EncBinary() + _ = yym808 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) + } + } + if yyr805 || yy2arr805 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq805[1] { + yym810 := z.EncBinary() + _ = yym810 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq805[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("revision")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym811 := z.EncBinary() + _ = yym811 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) + } + } + } + if yyr805 || yy2arr805 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq805[2] { + yym813 := z.EncBinary() + _ = yym813 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq805[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("directory")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym814 := z.EncBinary() + _ = yym814 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) + } + } + } + if yyr805 || yy2arr805 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym815 := z.DecBinary() + _ = yym815 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct816 := r.ContainerType() + if yyct816 == codecSelferValueTypeMap1234 { + yyl816 := r.ReadMapStart() + if yyl816 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl816, d) + } + } else if yyct816 == codecSelferValueTypeArray1234 { + yyl816 := r.ReadArrayStart() + if yyl816 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl816, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys817Slc = r.DecodeBytes(yys817Slc, true, true) + yys817 := string(yys817Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys817 { + case "repository": + if r.TryDecodeAsNil() { + x.Repository = "" + } else { + x.Repository = string(r.DecodeString()) + } + case "revision": + if r.TryDecodeAsNil() { + x.Revision = "" + } else { + x.Revision = string(r.DecodeString()) + } + case "directory": + if r.TryDecodeAsNil() { + x.Directory = "" + } else { + x.Directory = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys817) + } // end switch yys817 + } // end for yyj817 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb821 = r.CheckBreak() + } + if yyb821 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Repository = "" + } else { + x.Repository = string(r.DecodeString()) + } + yyj821++ + if yyhl821 { + yyb821 = yyj821 > l + } else { + yyb821 = r.CheckBreak() + } + if yyb821 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Revision = "" + } else { + x.Revision = string(r.DecodeString()) + } + yyj821++ + if yyhl821 { + yyb821 = yyj821 > l + } else { + yyb821 = r.CheckBreak() + } + if yyb821 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Directory = "" + } else { + x.Directory = string(r.DecodeString()) + } + for { + yyj821++ + if yyhl821 { + yyb821 = yyj821 > l + } else { + yyb821 = r.CheckBreak() + } + if yyb821 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj821-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym825 := z.EncBinary() + _ = yym825 + 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) + } else { + yynn826 = 0 + for _, b := range yyq826 { + if b { + yynn826++ + } + } + r.EncodeMapStart(yynn826) + yynn826 = 0 + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq826[0] { + yym828 := z.EncBinary() + _ = yym828 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq826[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym829 := z.EncBinary() + _ = yym829 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq826[1] { + if x.Items == nil { + r.EncodeNil() + } else { + yym831 := z.EncBinary() + _ = yym831 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq826[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 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym833 := z.DecBinary() + _ = yym833 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct834 := r.ContainerType() + if yyct834 == codecSelferValueTypeMap1234 { + yyl834 := r.ReadMapStart() + if yyl834 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl834, d) + } + } else if yyct834 == codecSelferValueTypeArray1234 { + yyl834 := r.ReadArrayStart() + if yyl834 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl834, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys835Slc = r.DecodeBytes(yys835Slc, true, true) + yys835 := string(yys835Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys835 { + case "secretName": + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv837 := &x.Items + yym838 := z.DecBinary() + _ = yym838 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv837), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys835) + } // end switch yys835 + } // end for yyj835 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb839 = r.CheckBreak() + } + if yyb839 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l + } else { + yyb839 = r.CheckBreak() + } + if yyb839 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv841 := &x.Items + yym842 := z.DecBinary() + _ = yym842 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv841), d) + } + } + for { + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l + } else { + yyb839 = r.CheckBreak() + } + if yyb839 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj839-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym843 := z.EncBinary() + _ = yym843 + 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 { + r.EncodeArrayStart(3) + } else { + yynn844 = 2 + for _, b := range yyq844 { + if b { + yynn844++ + } + } + r.EncodeMapStart(yynn844) + yynn844 = 0 + } + if yyr844 || yy2arr844 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym846 := z.EncBinary() + _ = yym846 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Server)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("server")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym847 := z.EncBinary() + _ = yym847 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Server)) + } + } + if yyr844 || yy2arr844 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym849 := z.EncBinary() + _ = yym849 + 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) + yym850 := z.EncBinary() + _ = yym850 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr844 || yy2arr844 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq844[2] { + yym852 := z.EncBinary() + _ = yym852 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq844[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym853 := z.EncBinary() + _ = yym853 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr844 || yy2arr844 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym854 := z.DecBinary() + _ = yym854 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct855 := r.ContainerType() + if yyct855 == codecSelferValueTypeMap1234 { + yyl855 := r.ReadMapStart() + if yyl855 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl855, d) + } + } else if yyct855 == codecSelferValueTypeArray1234 { + yyl855 := r.ReadArrayStart() + if yyl855 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl855, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys856Slc = r.DecodeBytes(yys856Slc, true, true) + yys856 := string(yys856Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys856 { + case "server": + if r.TryDecodeAsNil() { + x.Server = "" + } else { + x.Server = string(r.DecodeString()) + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys856) + } // end switch yys856 + } // end for yyj856 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Server = "" + } else { + x.Server = 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.Path = "" + } else { + x.Path = 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()) + } + 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) +} + +func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym864 := z.EncBinary() + _ = yym864 + 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 { + r.EncodeArrayStart(6) + } else { + yynn865 = 3 + for _, b := range yyq865 { + if b { + yynn865++ + } + } + r.EncodeMapStart(yynn865) + yynn865 = 0 + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym867 := z.EncBinary() + _ = yym867 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym868 := z.EncBinary() + _ = yym868 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym870 := z.EncBinary() + _ = yym870 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iqn")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym871 := z.EncBinary() + _ = yym871 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym873 := z.EncBinary() + _ = yym873 + if false { + } else { + r.EncodeInt(int64(x.Lun)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lun")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym874 := z.EncBinary() + _ = yym874 + if false { + } else { + r.EncodeInt(int64(x.Lun)) + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq865[3] { + yym876 := z.EncBinary() + _ = yym876 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq865[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym877 := z.EncBinary() + _ = yym877 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) + } + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq865[4] { + yym879 := z.EncBinary() + _ = yym879 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq865[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym880 := z.EncBinary() + _ = yym880 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq865[5] { + yym882 := z.EncBinary() + _ = yym882 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq865[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym883 := z.EncBinary() + _ = yym883 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr865 || yy2arr865 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym884 := z.DecBinary() + _ = yym884 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct885 := r.ContainerType() + if yyct885 == codecSelferValueTypeMap1234 { + yyl885 := r.ReadMapStart() + if yyl885 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl885, d) + } + } else if yyct885 == codecSelferValueTypeArray1234 { + yyl885 := r.ReadArrayStart() + if yyl885 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl885, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys886Slc = r.DecodeBytes(yys886Slc, true, true) + yys886 := string(yys886Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys886 { + case "targetPortal": + if r.TryDecodeAsNil() { + x.TargetPortal = "" + } else { + x.TargetPortal = string(r.DecodeString()) + } + case "iqn": + if r.TryDecodeAsNil() { + x.IQN = "" + } else { + x.IQN = string(r.DecodeString()) + } + case "lun": + if r.TryDecodeAsNil() { + x.Lun = 0 + } else { + x.Lun = int32(r.DecodeInt(32)) + } + case "iscsiInterface": + if r.TryDecodeAsNil() { + x.ISCSIInterface = "" + } else { + x.ISCSIInterface = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys886) + } // end switch yys886 + } // end for yyj886 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TargetPortal = "" + } else { + x.TargetPortal = string(r.DecodeString()) + } + yyj893++ + if yyhl893 { + yyb893 = yyj893 > l + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IQN = "" + } else { + x.IQN = string(r.DecodeString()) + } + yyj893++ + if yyhl893 { + yyb893 = yyj893 > l + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Lun = 0 + } else { + x.Lun = int32(r.DecodeInt(32)) + } + yyj893++ + if yyhl893 { + yyb893 = yyj893 > l + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ISCSIInterface = "" + } else { + x.ISCSIInterface = string(r.DecodeString()) + } + yyj893++ + if yyhl893 { + yyb893 = yyj893 > l + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj893++ + if yyhl893 { + yyb893 = yyj893 > l + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj893++ + if yyhl893 { + yyb893 = yyj893 > l + } else { + yyb893 = r.CheckBreak() + } + if yyb893 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj893-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym900 := z.EncBinary() + _ = yym900 + 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 { + r.EncodeArrayStart(4) + } else { + yynn901 = 2 + for _, b := range yyq901 { + if b { + yynn901++ + } + } + r.EncodeMapStart(yynn901) + yynn901 = 0 + } + if yyr901 || yy2arr901 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.TargetWWNs == nil { + r.EncodeNil() + } else { + yym903 := z.EncBinary() + _ = yym903 + if false { + } else { + z.F.EncSliceStringV(x.TargetWWNs, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetWWNs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TargetWWNs == nil { + r.EncodeNil() + } else { + yym904 := z.EncBinary() + _ = yym904 + if false { + } else { + z.F.EncSliceStringV(x.TargetWWNs, false, e) + } + } + } + if yyr901 || yy2arr901 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Lun == nil { + r.EncodeNil() + } else { + yy906 := *x.Lun + yym907 := z.EncBinary() + _ = yym907 + if false { + } else { + r.EncodeInt(int64(yy906)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lun")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Lun == nil { + r.EncodeNil() + } else { + yy908 := *x.Lun + yym909 := z.EncBinary() + _ = yym909 + if false { + } else { + r.EncodeInt(int64(yy908)) + } + } + } + if yyr901 || yy2arr901 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq901[2] { + yym911 := z.EncBinary() + _ = yym911 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq901[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym912 := z.EncBinary() + _ = yym912 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr901 || yy2arr901 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq901[3] { + yym914 := z.EncBinary() + _ = yym914 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq901[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym915 := z.EncBinary() + _ = yym915 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr901 || yy2arr901 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym916 := z.DecBinary() + _ = yym916 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct917 := r.ContainerType() + if yyct917 == codecSelferValueTypeMap1234 { + yyl917 := r.ReadMapStart() + if yyl917 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl917, d) + } + } else if yyct917 == codecSelferValueTypeArray1234 { + yyl917 := r.ReadArrayStart() + if yyl917 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl917, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys918Slc = r.DecodeBytes(yys918Slc, true, true) + yys918 := string(yys918Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys918 { + case "targetWWNs": + if r.TryDecodeAsNil() { + x.TargetWWNs = nil + } else { + yyv919 := &x.TargetWWNs + yym920 := z.DecBinary() + _ = yym920 + if false { + } else { + z.F.DecSliceStringX(yyv919, false, d) + } + } + case "lun": + if r.TryDecodeAsNil() { + if x.Lun != nil { + x.Lun = nil + } + } else { + if x.Lun == nil { + x.Lun = new(int32) + } + yym922 := z.DecBinary() + _ = yym922 + if false { + } else { + *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) + } + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys918) + } // end switch yys918 + } // end for yyj918 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb925 = r.CheckBreak() + } + if yyb925 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TargetWWNs = nil + } else { + yyv926 := &x.TargetWWNs + yym927 := z.DecBinary() + _ = yym927 + if false { + } else { + z.F.DecSliceStringX(yyv926, false, d) + } + } + yyj925++ + if yyhl925 { + yyb925 = yyj925 > l + } else { + yyb925 = r.CheckBreak() + } + if yyb925 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Lun != nil { + x.Lun = nil + } + } else { + if x.Lun == nil { + x.Lun = new(int32) + } + yym929 := z.DecBinary() + _ = yym929 + if false { + } else { + *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) + } + } + yyj925++ + if yyhl925 { + yyb925 = yyj925 > l + } else { + yyb925 = r.CheckBreak() + } + if yyb925 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + yyj925++ + if yyhl925 { + yyb925 = yyj925 > l + } else { + yyb925 = r.CheckBreak() + } + if yyb925 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj925++ + if yyhl925 { + yyb925 = yyj925 > l + } else { + yyb925 = r.CheckBreak() + } + if yyb925 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj925-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym932 := z.EncBinary() + _ = yym932 + 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 { + r.EncodeArrayStart(3) + } else { + yynn933 = 2 + for _, b := range yyq933 { + if b { + yynn933++ + } + } + r.EncodeMapStart(yynn933) + yynn933 = 0 + } + if yyr933 || yy2arr933 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym935 := z.EncBinary() + _ = yym935 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym936 := z.EncBinary() + _ = yym936 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } + if yyr933 || yy2arr933 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym938 := z.EncBinary() + _ = yym938 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("shareName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym939 := z.EncBinary() + _ = yym939 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) + } + } + if yyr933 || yy2arr933 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq933[2] { + yym941 := z.EncBinary() + _ = yym941 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq933[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym942 := z.EncBinary() + _ = yym942 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr933 || yy2arr933 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym943 := z.DecBinary() + _ = yym943 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct944 := r.ContainerType() + if yyct944 == codecSelferValueTypeMap1234 { + yyl944 := r.ReadMapStart() + if yyl944 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl944, d) + } + } else if yyct944 == codecSelferValueTypeArray1234 { + yyl944 := r.ReadArrayStart() + if yyl944 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl944, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys945Slc = r.DecodeBytes(yys945Slc, true, true) + yys945 := string(yys945Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys945 { + case "secretName": + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + case "shareName": + if r.TryDecodeAsNil() { + x.ShareName = "" + } else { + x.ShareName = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys945) + } // end switch yys945 + } // end for yyj945 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb949 = r.CheckBreak() + } + if yyb949 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + yyj949++ + if yyhl949 { + yyb949 = yyj949 > l + } else { + yyb949 = r.CheckBreak() + } + if yyb949 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ShareName = "" + } else { + x.ShareName = string(r.DecodeString()) + } + yyj949++ + if yyhl949 { + yyb949 = yyj949 > l + } else { + yyb949 = r.CheckBreak() + } + if yyb949 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + for { + yyj949++ + if yyhl949 { + yyb949 = yyj949 > l + } else { + yyb949 = r.CheckBreak() + } + if yyb949 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj949-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym953 := z.EncBinary() + _ = yym953 + 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 { + r.EncodeArrayStart(2) + } else { + yynn954 = 1 + for _, b := range yyq954 { + if b { + yynn954++ + } + } + r.EncodeMapStart(yynn954) + yynn954 = 0 + } + if yyr954 || yy2arr954 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym956 := z.EncBinary() + _ = yym956 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumePath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym957 := z.EncBinary() + _ = yym957 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) + } + } + if yyr954 || yy2arr954 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq954[1] { + yym959 := z.EncBinary() + _ = yym959 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq954[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym960 := z.EncBinary() + _ = yym960 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr954 || yy2arr954 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym961 := z.DecBinary() + _ = yym961 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct962 := r.ContainerType() + if yyct962 == codecSelferValueTypeMap1234 { + yyl962 := r.ReadMapStart() + if yyl962 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl962, d) + } + } else if yyct962 == codecSelferValueTypeArray1234 { + yyl962 := r.ReadArrayStart() + if yyl962 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl962, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys963Slc = r.DecodeBytes(yys963Slc, true, true) + yys963 := string(yys963Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys963 { + case "volumePath": + if r.TryDecodeAsNil() { + x.VolumePath = "" + } else { + x.VolumePath = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys963) + } // end switch yys963 + } // end for yyj963 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb966 = r.CheckBreak() + } + if yyb966 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumePath = "" + } else { + x.VolumePath = string(r.DecodeString()) + } + yyj966++ + if yyhl966 { + yyb966 = yyj966 > l + } else { + yyb966 = r.CheckBreak() + } + if yyb966 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + for { + yyj966++ + if yyhl966 { + yyb966 = yyj966 > l + } else { + yyb966 = r.CheckBreak() + } + if yyb966 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj966-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym969 := z.EncBinary() + _ = yym969 + 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) + } else { + yynn970 = 0 + for _, b := range yyq970 { + if b { + yynn970++ + } + } + r.EncodeMapStart(yynn970) + yynn970 = 0 + } + if yyr970 || yy2arr970 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq970[0] { + yym972 := z.EncBinary() + _ = yym972 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq970[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym973 := z.EncBinary() + _ = yym973 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr970 || yy2arr970 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq970[1] { + if x.Items == nil { + r.EncodeNil() + } else { + yym975 := z.EncBinary() + _ = yym975 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq970[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 + if false { + } else { + h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) + } + } + } + } + if yyr970 || yy2arr970 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym977 := z.DecBinary() + _ = yym977 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct978 := r.ContainerType() + if yyct978 == codecSelferValueTypeMap1234 { + yyl978 := r.ReadMapStart() + if yyl978 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl978, d) + } + } else if yyct978 == codecSelferValueTypeArray1234 { + yyl978 := r.ReadArrayStart() + if yyl978 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl978, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys979Slc = r.DecodeBytes(yys979Slc, true, true) + yys979 := string(yys979Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys979 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv981 := &x.Items + yym982 := z.DecBinary() + _ = yym982 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv981), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys979) + } // end switch yys979 + } // end for yyj979 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb983 = r.CheckBreak() + } + if yyb983 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj983++ + if yyhl983 { + yyb983 = yyj983 > l + } else { + yyb983 = r.CheckBreak() + } + if yyb983 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv985 := &x.Items + yym986 := z.DecBinary() + _ = yym986 + if false { + } else { + h.decSliceKeyToPath((*[]KeyToPath)(yyv985), d) + } + } + for { + yyj983++ + if yyhl983 { + yyb983 = yyj983 > l + } else { + yyb983 = r.CheckBreak() + } + if yyb983 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj983-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym987 := z.EncBinary() + _ = yym987 + 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) + } else { + yynn988 = 2 + for _, b := range yyq988 { + if b { + yynn988++ + } + } + r.EncodeMapStart(yynn988) + yynn988 = 0 + } + if yyr988 || yy2arr988 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym990 := z.EncBinary() + _ = yym990 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym991 := z.EncBinary() + _ = yym991 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr988 || yy2arr988 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym993 := z.EncBinary() + _ = yym993 + 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) + yym994 := z.EncBinary() + _ = yym994 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr988 || yy2arr988 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym995 := z.DecBinary() + _ = yym995 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct996 := r.ContainerType() + if yyct996 == codecSelferValueTypeMap1234 { + yyl996 := r.ReadMapStart() + if yyl996 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl996, d) + } + } else if yyct996 == codecSelferValueTypeArray1234 { + yyl996 := r.ReadArrayStart() + if yyl996 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl996, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys997Slc = r.DecodeBytes(yys997Slc, true, true) + yys997 := string(yys997Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys997 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys997) + } // end switch yys997 + } // end for yyj997 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1000 = r.CheckBreak() + } + if yyb1000 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1000++ + if yyhl1000 { + yyb1000 = yyj1000 > l + } else { + yyb1000 = r.CheckBreak() + } + if yyb1000 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj1000++ + if yyhl1000 { + yyb1000 = yyj1000 > l + } else { + yyb1000 = r.CheckBreak() + } + if yyb1000 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1000-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1003 := z.EncBinary() + _ = yym1003 + 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 { + r.EncodeArrayStart(5) + } else { + yynn1004 = 1 + for _, b := range yyq1004 { + if b { + yynn1004++ + } + } + r.EncodeMapStart(yynn1004) + yynn1004 = 0 + } + if yyr1004 || yy2arr1004 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1004[0] { + yym1006 := z.EncBinary() + _ = yym1006 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1004[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1007 := z.EncBinary() + _ = yym1007 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr1004 || yy2arr1004 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1004[1] { + yym1009 := z.EncBinary() + _ = yym1009 + if false { + } else { + r.EncodeInt(int64(x.HostPort)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1004[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1010 := z.EncBinary() + _ = yym1010 + if false { + } else { + r.EncodeInt(int64(x.HostPort)) + } + } + } + if yyr1004 || yy2arr1004 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1012 := z.EncBinary() + _ = yym1012 + if false { + } else { + r.EncodeInt(int64(x.ContainerPort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1013 := z.EncBinary() + _ = yym1013 + if false { + } else { + r.EncodeInt(int64(x.ContainerPort)) + } + } + if yyr1004 || yy2arr1004 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1004[3] { + x.Protocol.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1004[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protocol")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Protocol.CodecEncodeSelf(e) + } + } + if yyr1004 || yy2arr1004 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1004[4] { + yym1016 := z.EncBinary() + _ = yym1016 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1004[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1017 := z.EncBinary() + _ = yym1017 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } + } + if yyr1004 || yy2arr1004 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1018 := z.DecBinary() + _ = yym1018 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1019 := r.ContainerType() + if yyct1019 == codecSelferValueTypeMap1234 { + yyl1019 := r.ReadMapStart() + if yyl1019 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1019, d) + } + } else if yyct1019 == codecSelferValueTypeArray1234 { + yyl1019 := r.ReadArrayStart() + if yyl1019 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1019, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1020Slc = r.DecodeBytes(yys1020Slc, true, true) + yys1020 := string(yys1020Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1020 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "hostPort": + if r.TryDecodeAsNil() { + x.HostPort = 0 + } else { + x.HostPort = int32(r.DecodeInt(32)) + } + case "containerPort": + if r.TryDecodeAsNil() { + x.ContainerPort = 0 + } else { + x.ContainerPort = int32(r.DecodeInt(32)) + } + case "protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + case "hostIP": + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1020) + } // end switch yys1020 + } // end for yyj1020 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPort = 0 + } else { + x.HostPort = int32(r.DecodeInt(32)) + } + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerPort = 0 + } else { + x.ContainerPort = int32(r.DecodeInt(32)) + } + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + for { + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1026-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1032 := z.EncBinary() + _ = yym1032 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1033 = 2 + for _, b := range yyq1033 { + if b { + yynn1033++ + } + } + r.EncodeMapStart(yynn1033) + yynn1033 = 0 + } + if yyr1033 || yy2arr1033 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1035 := z.EncBinary() + _ = yym1035 + 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) + yym1036 := z.EncBinary() + _ = yym1036 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1033 || yy2arr1033 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1033[1] { + yym1038 := z.EncBinary() + _ = yym1038 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1033[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1039 := z.EncBinary() + _ = yym1039 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr1033 || yy2arr1033 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1041 := z.EncBinary() + _ = yym1041 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mountPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1042 := z.EncBinary() + _ = yym1042 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) + } + } + if yyr1033 || yy2arr1033 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1033[3] { + yym1044 := z.EncBinary() + _ = yym1044 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1033[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1045 := z.EncBinary() + _ = yym1045 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) + } + } + } + if yyr1033 || yy2arr1033 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1046 := z.DecBinary() + _ = yym1046 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1047 := r.ContainerType() + if yyct1047 == codecSelferValueTypeMap1234 { + yyl1047 := r.ReadMapStart() + if yyl1047 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1047, d) + } + } else if yyct1047 == codecSelferValueTypeArray1234 { + yyl1047 := r.ReadArrayStart() + if yyl1047 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1047, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1048Slc = r.DecodeBytes(yys1048Slc, true, true) + yys1048 := string(yys1048Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1048 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + case "mountPath": + if r.TryDecodeAsNil() { + x.MountPath = "" + } else { + x.MountPath = string(r.DecodeString()) + } + case "subPath": + if r.TryDecodeAsNil() { + x.SubPath = "" + } else { + x.SubPath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1048) + } // end switch yys1048 + } // end for yyj1048 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1053 = r.CheckBreak() + } + if yyb1053 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1053++ + if yyhl1053 { + yyb1053 = yyj1053 > l + } else { + yyb1053 = r.CheckBreak() + } + if yyb1053 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + yyj1053++ + if yyhl1053 { + yyb1053 = yyj1053 > l + } else { + yyb1053 = r.CheckBreak() + } + if yyb1053 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MountPath = "" + } else { + x.MountPath = string(r.DecodeString()) + } + yyj1053++ + if yyhl1053 { + yyb1053 = yyj1053 > l + } else { + yyb1053 = r.CheckBreak() + } + if yyb1053 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SubPath = "" + } else { + x.SubPath = string(r.DecodeString()) + } + for { + yyj1053++ + if yyhl1053 { + yyb1053 = yyj1053 > l + } else { + yyb1053 = r.CheckBreak() + } + if yyb1053 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1053-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1058 := z.EncBinary() + _ = yym1058 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1059 = 1 + for _, b := range yyq1059 { + if b { + yynn1059++ + } + } + r.EncodeMapStart(yynn1059) + yynn1059 = 0 + } + if yyr1059 || yy2arr1059 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1061 := z.EncBinary() + _ = yym1061 + 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) + yym1062 := z.EncBinary() + _ = yym1062 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1059 || yy2arr1059 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1059[1] { + yym1064 := z.EncBinary() + _ = yym1064 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1059[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1065 := z.EncBinary() + _ = yym1065 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + } + if yyr1059 || yy2arr1059 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1059[2] { + if x.ValueFrom == nil { + r.EncodeNil() + } else { + x.ValueFrom.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1059[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ValueFrom == nil { + r.EncodeNil() + } else { + x.ValueFrom.CodecEncodeSelf(e) + } + } + } + if yyr1059 || yy2arr1059 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1067 := z.DecBinary() + _ = yym1067 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1068 := r.ContainerType() + if yyct1068 == codecSelferValueTypeMap1234 { + yyl1068 := r.ReadMapStart() + if yyl1068 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1068, d) + } + } else if yyct1068 == codecSelferValueTypeArray1234 { + yyl1068 := r.ReadArrayStart() + if yyl1068 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1068, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1069Slc = r.DecodeBytes(yys1069Slc, true, true) + yys1069 := string(yys1069Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1069 { + 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()) + } + case "valueFrom": + if r.TryDecodeAsNil() { + if x.ValueFrom != nil { + x.ValueFrom = nil + } + } else { + if x.ValueFrom == nil { + x.ValueFrom = new(EnvVarSource) + } + x.ValueFrom.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1069) + } // end switch yys1069 + } // end for yyj1069 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1073 = r.CheckBreak() + } + if yyb1073 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1073++ + if yyhl1073 { + yyb1073 = yyj1073 > l + } else { + yyb1073 = r.CheckBreak() + } + if yyb1073 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj1073++ + if yyhl1073 { + yyb1073 = yyj1073 > l + } else { + yyb1073 = r.CheckBreak() + } + if yyb1073 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ValueFrom != nil { + x.ValueFrom = nil + } + } else { + if x.ValueFrom == nil { + x.ValueFrom = new(EnvVarSource) + } + x.ValueFrom.CodecDecodeSelf(d) + } + for { + yyj1073++ + if yyhl1073 { + yyb1073 = yyj1073 > l + } else { + yyb1073 = r.CheckBreak() + } + if yyb1073 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1073-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1077 := z.EncBinary() + _ = yym1077 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1078 = 0 + for _, b := range yyq1078 { + if b { + yynn1078++ + } + } + r.EncodeMapStart(yynn1078) + yynn1078 = 0 + } + if yyr1078 || yy2arr1078 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1078[0] { + if x.FieldRef == nil { + r.EncodeNil() + } else { + x.FieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1078[0] { + 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 yyr1078 || yy2arr1078 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1078[1] { + if x.ResourceFieldRef == nil { + r.EncodeNil() + } else { + x.ResourceFieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1078[1] { + 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 yyr1078 || yy2arr1078 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1078[2] { + if x.ConfigMapKeyRef == nil { + r.EncodeNil() + } else { + x.ConfigMapKeyRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1078[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ConfigMapKeyRef == nil { + r.EncodeNil() + } else { + x.ConfigMapKeyRef.CodecEncodeSelf(e) + } + } + } + if yyr1078 || yy2arr1078 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1078[3] { + if x.SecretKeyRef == nil { + r.EncodeNil() + } else { + x.SecretKeyRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1078[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecretKeyRef == nil { + r.EncodeNil() + } else { + x.SecretKeyRef.CodecEncodeSelf(e) + } + } + } + if yyr1078 || yy2arr1078 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1083 := z.DecBinary() + _ = yym1083 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1084 := r.ContainerType() + if yyct1084 == codecSelferValueTypeMap1234 { + yyl1084 := r.ReadMapStart() + if yyl1084 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1084, d) + } + } else if yyct1084 == codecSelferValueTypeArray1234 { + yyl1084 := r.ReadArrayStart() + if yyl1084 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1084, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1085Slc = r.DecodeBytes(yys1085Slc, true, true) + yys1085 := string(yys1085Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1085 { + 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 "configMapKeyRef": + if r.TryDecodeAsNil() { + if x.ConfigMapKeyRef != nil { + x.ConfigMapKeyRef = nil + } + } else { + if x.ConfigMapKeyRef == nil { + x.ConfigMapKeyRef = new(ConfigMapKeySelector) + } + x.ConfigMapKeyRef.CodecDecodeSelf(d) + } + case "secretKeyRef": + if r.TryDecodeAsNil() { + if x.SecretKeyRef != nil { + x.SecretKeyRef = nil + } + } else { + if x.SecretKeyRef == nil { + x.SecretKeyRef = new(SecretKeySelector) + } + x.SecretKeyRef.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1085) + } // end switch yys1085 + } // end for yyj1085 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1090 = r.CheckBreak() + } + if yyb1090 { + 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) + } + yyj1090++ + if yyhl1090 { + yyb1090 = yyj1090 > l + } else { + yyb1090 = r.CheckBreak() + } + if yyb1090 { + 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) + } + yyj1090++ + if yyhl1090 { + yyb1090 = yyj1090 > l + } else { + yyb1090 = r.CheckBreak() + } + if yyb1090 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ConfigMapKeyRef != nil { + x.ConfigMapKeyRef = nil + } + } else { + if x.ConfigMapKeyRef == nil { + x.ConfigMapKeyRef = new(ConfigMapKeySelector) + } + x.ConfigMapKeyRef.CodecDecodeSelf(d) + } + yyj1090++ + if yyhl1090 { + yyb1090 = yyj1090 > l + } else { + yyb1090 = r.CheckBreak() + } + if yyb1090 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecretKeyRef != nil { + x.SecretKeyRef = nil + } + } else { + if x.SecretKeyRef == nil { + x.SecretKeyRef = new(SecretKeySelector) + } + x.SecretKeyRef.CodecDecodeSelf(d) + } + for { + yyj1090++ + if yyhl1090 { + yyb1090 = yyj1090 > l + } else { + yyb1090 = r.CheckBreak() + } + if yyb1090 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1090-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1095 := z.EncBinary() + _ = yym1095 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1096 = 1 + for _, b := range yyq1096 { + if b { + yynn1096++ + } + } + r.EncodeMapStart(yynn1096) + yynn1096 = 0 + } + if yyr1096 || yy2arr1096 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1096[0] { + yym1098 := z.EncBinary() + _ = yym1098 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1096[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1099 := z.EncBinary() + _ = yym1099 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1096 || yy2arr1096 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1101 := z.EncBinary() + _ = yym1101 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1102 := z.EncBinary() + _ = yym1102 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } + if yyr1096 || yy2arr1096 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1103 := z.DecBinary() + _ = yym1103 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1104 := r.ContainerType() + if yyct1104 == codecSelferValueTypeMap1234 { + yyl1104 := r.ReadMapStart() + if yyl1104 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1104, d) + } + } else if yyct1104 == codecSelferValueTypeArray1234 { + yyl1104 := r.ReadArrayStart() + if yyl1104 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1104, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1105Slc = r.DecodeBytes(yys1105Slc, true, true) + yys1105 := string(yys1105Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1105 { + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "fieldPath": + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1105) + } // end switch yys1105 + } // end for yyj1105 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1108 = r.CheckBreak() + } + if yyb1108 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1108++ + if yyhl1108 { + yyb1108 = yyj1108 > l + } else { + yyb1108 = r.CheckBreak() + } + if yyb1108 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + for { + yyj1108++ + if yyhl1108 { + yyb1108 = yyj1108 > l + } else { + yyb1108 = r.CheckBreak() + } + if yyb1108 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1108-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1111 := z.EncBinary() + _ = yym1111 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1112 = 1 + for _, b := range yyq1112 { + if b { + yynn1112++ + } + } + r.EncodeMapStart(yynn1112) + yynn1112 = 0 + } + if yyr1112 || yy2arr1112 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1112[0] { + yym1114 := z.EncBinary() + _ = yym1114 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1112[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1115 := z.EncBinary() + _ = yym1115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) + } + } + } + if yyr1112 || yy2arr1112 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1117 := z.EncBinary() + _ = yym1117 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resource")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1118 := z.EncBinary() + _ = yym1118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) + } + } + if yyr1112 || yy2arr1112 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1112[2] { + yy1120 := &x.Divisor + yym1121 := z.EncBinary() + _ = yym1121 + if false { + } else if z.HasExtensions() && z.EncExt(yy1120) { + } else if !yym1121 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1120) + } else { + z.EncFallback(yy1120) + } + } else { + r.EncodeNil() + } + } else { + if yyq1112[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("divisor")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1122 := &x.Divisor + yym1123 := z.EncBinary() + _ = yym1123 + if false { + } else if z.HasExtensions() && z.EncExt(yy1122) { + } else if !yym1123 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1122) + } else { + z.EncFallback(yy1122) + } + } + } + if yyr1112 || yy2arr1112 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1124 := z.DecBinary() + _ = yym1124 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1125 := r.ContainerType() + if yyct1125 == codecSelferValueTypeMap1234 { + yyl1125 := r.ReadMapStart() + if yyl1125 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1125, d) + } + } else if yyct1125 == codecSelferValueTypeArray1234 { + yyl1125 := r.ReadArrayStart() + if yyl1125 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1125, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1126Slc = r.DecodeBytes(yys1126Slc, true, true) + yys1126 := string(yys1126Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1126 { + case "containerName": + if r.TryDecodeAsNil() { + x.ContainerName = "" + } else { + x.ContainerName = string(r.DecodeString()) + } + case "resource": + if r.TryDecodeAsNil() { + x.Resource = "" + } else { + x.Resource = string(r.DecodeString()) + } + case "divisor": + if r.TryDecodeAsNil() { + x.Divisor = pkg3_resource.Quantity{} + } else { + yyv1129 := &x.Divisor + yym1130 := z.DecBinary() + _ = yym1130 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1129) { + } else if !yym1130 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1129) + } else { + z.DecFallback(yyv1129, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1126) + } // end switch yys1126 + } // end for yyj1126 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1131 = r.CheckBreak() + } + if yyb1131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerName = "" + } else { + x.ContainerName = string(r.DecodeString()) + } + yyj1131++ + if yyhl1131 { + yyb1131 = yyj1131 > l + } else { + yyb1131 = r.CheckBreak() + } + if yyb1131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Resource = "" + } else { + x.Resource = string(r.DecodeString()) + } + yyj1131++ + if yyhl1131 { + yyb1131 = yyj1131 > l + } else { + yyb1131 = r.CheckBreak() + } + if yyb1131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Divisor = pkg3_resource.Quantity{} + } else { + yyv1134 := &x.Divisor + yym1135 := z.DecBinary() + _ = yym1135 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1134) { + } else if !yym1135 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1134) + } else { + z.DecFallback(yyv1134, false) + } + } + for { + yyj1131++ + if yyhl1131 { + yyb1131 = yyj1131 > l + } else { + yyb1131 = r.CheckBreak() + } + if yyb1131 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1131-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1136 := z.EncBinary() + _ = yym1136 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1137 = 1 + for _, b := range yyq1137 { + if b { + yynn1137++ + } + } + r.EncodeMapStart(yynn1137) + yynn1137 = 0 + } + if yyr1137 || yy2arr1137 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1137[0] { + yym1139 := z.EncBinary() + _ = yym1139 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1137[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1140 := z.EncBinary() + _ = yym1140 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr1137 || yy2arr1137 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1142 := z.EncBinary() + _ = yym1142 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1143 := z.EncBinary() + _ = yym1143 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1137 || yy2arr1137 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1144 := z.DecBinary() + _ = yym1144 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1145 := r.ContainerType() + if yyct1145 == codecSelferValueTypeMap1234 { + yyl1145 := r.ReadMapStart() + if yyl1145 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1145, d) + } + } else if yyct1145 == codecSelferValueTypeArray1234 { + yyl1145 := r.ReadArrayStart() + if yyl1145 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1145, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1146Slc = r.DecodeBytes(yys1146Slc, true, true) + yys1146 := string(yys1146Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1146 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1146) + } // end switch yys1146 + } // end for yyj1146 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1149 = r.CheckBreak() + } + if yyb1149 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1149++ + if yyhl1149 { + yyb1149 = yyj1149 > l + } else { + yyb1149 = r.CheckBreak() + } + if yyb1149 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + for { + yyj1149++ + if yyhl1149 { + yyb1149 = yyj1149 > l + } else { + yyb1149 = r.CheckBreak() + } + if yyb1149 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1149-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1152 := z.EncBinary() + _ = yym1152 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1153 = 1 + for _, b := range yyq1153 { + if b { + yynn1153++ + } + } + r.EncodeMapStart(yynn1153) + yynn1153 = 0 + } + if yyr1153 || yy2arr1153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1153[0] { + yym1155 := z.EncBinary() + _ = yym1155 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1153[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1156 := z.EncBinary() + _ = yym1156 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr1153 || yy2arr1153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1158 := z.EncBinary() + _ = yym1158 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1159 := z.EncBinary() + _ = yym1159 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1153 || yy2arr1153 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1160 := z.DecBinary() + _ = yym1160 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1161 := r.ContainerType() + if yyct1161 == codecSelferValueTypeMap1234 { + yyl1161 := r.ReadMapStart() + if yyl1161 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1161, d) + } + } else if yyct1161 == codecSelferValueTypeArray1234 { + yyl1161 := r.ReadArrayStart() + if yyl1161 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1161, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1162Slc = r.DecodeBytes(yys1162Slc, true, true) + yys1162 := string(yys1162Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1162 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1162) + } // end switch yys1162 + } // end for yyj1162 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1165 = r.CheckBreak() + } + if yyb1165 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1165++ + if yyhl1165 { + yyb1165 = yyj1165 > l + } else { + yyb1165 = r.CheckBreak() + } + if yyb1165 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + for { + yyj1165++ + if yyhl1165 { + yyb1165 = yyj1165 > l + } else { + yyb1165 = r.CheckBreak() + } + if yyb1165 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1165-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1168 := z.EncBinary() + _ = yym1168 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1169 = 2 + for _, b := range yyq1169 { + if b { + yynn1169++ + } + } + r.EncodeMapStart(yynn1169) + yynn1169 = 0 + } + if yyr1169 || yy2arr1169 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1171 := z.EncBinary() + _ = yym1171 + 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) + yym1172 := z.EncBinary() + _ = yym1172 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1169 || yy2arr1169 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1174 := z.EncBinary() + _ = yym1174 + 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) + yym1175 := z.EncBinary() + _ = yym1175 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + if yyr1169 || yy2arr1169 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1176 := z.DecBinary() + _ = yym1176 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1177 := r.ContainerType() + if yyct1177 == codecSelferValueTypeMap1234 { + yyl1177 := r.ReadMapStart() + if yyl1177 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1177, d) + } + } else if yyct1177 == codecSelferValueTypeArray1234 { + yyl1177 := r.ReadArrayStart() + if yyl1177 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1177, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1178Slc = r.DecodeBytes(yys1178Slc, true, true) + yys1178 := string(yys1178Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1178 { + 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, yys1178) + } // end switch yys1178 + } // end for yyj1178 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1181 = r.CheckBreak() + } + if yyb1181 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l + } else { + yyb1181 = r.CheckBreak() + } + if yyb1181 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + for { + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l + } else { + yyb1181 = r.CheckBreak() + } + if yyb1181 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1181-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1184 := z.EncBinary() + _ = yym1184 + 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 { + r.EncodeArrayStart(5) + } else { + yynn1185 = 1 + for _, b := range yyq1185 { + if b { + yynn1185++ + } + } + r.EncodeMapStart(yynn1185) + yynn1185 = 0 + } + if yyr1185 || yy2arr1185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1185[0] { + yym1187 := z.EncBinary() + _ = yym1187 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1185[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1188 := z.EncBinary() + _ = yym1188 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr1185 || yy2arr1185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1190 := &x.Port + yym1191 := z.EncBinary() + _ = yym1191 + if false { + } else if z.HasExtensions() && z.EncExt(yy1190) { + } else if !yym1191 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1190) + } else { + z.EncFallback(yy1190) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1192 := &x.Port + yym1193 := z.EncBinary() + _ = yym1193 + if false { + } else if z.HasExtensions() && z.EncExt(yy1192) { + } else if !yym1193 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1192) + } else { + z.EncFallback(yy1192) + } + } + if yyr1185 || yy2arr1185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1185[2] { + yym1195 := z.EncBinary() + _ = yym1195 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1185[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1196 := z.EncBinary() + _ = yym1196 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } + } + if yyr1185 || yy2arr1185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1185[3] { + x.Scheme.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1185[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("scheme")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Scheme.CodecEncodeSelf(e) + } + } + if yyr1185 || yy2arr1185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1185[4] { + if x.HTTPHeaders == nil { + r.EncodeNil() + } else { + yym1199 := z.EncBinary() + _ = yym1199 + if false { + } else { + h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1185[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 + if false { + } else { + h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) + } + } + } + } + if yyr1185 || yy2arr1185 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1201 := z.DecBinary() + _ = yym1201 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1202 := r.ContainerType() + if yyct1202 == codecSelferValueTypeMap1234 { + yyl1202 := r.ReadMapStart() + if yyl1202 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1202, d) + } + } else if yyct1202 == codecSelferValueTypeArray1234 { + yyl1202 := r.ReadArrayStart() + if yyl1202 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1202, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1203Slc = r.DecodeBytes(yys1203Slc, true, true) + yys1203 := string(yys1203Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1203 { + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "port": + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1205 := &x.Port + yym1206 := z.DecBinary() + _ = yym1206 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1205) { + } else if !yym1206 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1205) + } else { + z.DecFallback(yyv1205, false) + } + } + case "host": + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + case "scheme": + if r.TryDecodeAsNil() { + x.Scheme = "" + } else { + x.Scheme = URIScheme(r.DecodeString()) + } + case "httpHeaders": + if r.TryDecodeAsNil() { + x.HTTPHeaders = nil + } else { + yyv1209 := &x.HTTPHeaders + yym1210 := z.DecBinary() + _ = yym1210 + if false { + } else { + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1209), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1203) + } // end switch yys1203 + } // end for yyj1203 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1213 := &x.Port + yym1214 := z.DecBinary() + _ = yym1214 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1213) { + } else if !yym1214 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1213) + } else { + z.DecFallback(yyv1213, false) + } + } + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Scheme = "" + } else { + x.Scheme = URIScheme(r.DecodeString()) + } + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HTTPHeaders = nil + } else { + yyv1217 := &x.HTTPHeaders + yym1218 := z.DecBinary() + _ = yym1218 + if false { + } else { + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1217), d) + } + } + for { + yyj1211++ + if yyhl1211 { + yyb1211 = yyj1211 > l + } else { + yyb1211 = r.CheckBreak() + } + if yyb1211 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1211-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1219 := z.EncBinary() + _ = yym1219 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1220 := z.DecBinary() + _ = yym1220 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1221 := z.EncBinary() + _ = yym1221 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1222 = 1 + for _, b := range yyq1222 { + if b { + yynn1222++ + } + } + r.EncodeMapStart(yynn1222) + yynn1222 = 0 + } + if yyr1222 || yy2arr1222 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1224 := &x.Port + yym1225 := z.EncBinary() + _ = yym1225 + if false { + } else if z.HasExtensions() && z.EncExt(yy1224) { + } else if !yym1225 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1224) + } else { + z.EncFallback(yy1224) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1226 := &x.Port + yym1227 := z.EncBinary() + _ = yym1227 + if false { + } else if z.HasExtensions() && z.EncExt(yy1226) { + } else if !yym1227 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1226) + } else { + z.EncFallback(yy1226) + } + } + if yyr1222 || yy2arr1222 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1228 := z.DecBinary() + _ = yym1228 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1229 := r.ContainerType() + if yyct1229 == codecSelferValueTypeMap1234 { + yyl1229 := r.ReadMapStart() + if yyl1229 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1229, d) + } + } else if yyct1229 == codecSelferValueTypeArray1234 { + yyl1229 := r.ReadArrayStart() + if yyl1229 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1229, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1230Slc = r.DecodeBytes(yys1230Slc, true, true) + yys1230 := string(yys1230Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1230 { + case "port": + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1231 := &x.Port + yym1232 := z.DecBinary() + _ = yym1232 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1231) { + } else if !yym1232 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1231) + } else { + z.DecFallback(yyv1231, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1230) + } // end switch yys1230 + } // end for yyj1230 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1233 = r.CheckBreak() + } + if yyb1233 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = pkg4_intstr.IntOrString{} + } else { + yyv1234 := &x.Port + yym1235 := z.DecBinary() + _ = yym1235 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1234) { + } else if !yym1235 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1234) + } else { + z.DecFallback(yyv1234, false) + } + } + for { + yyj1233++ + if yyhl1233 { + yyb1233 = yyj1233 > l + } else { + yyb1233 = r.CheckBreak() + } + if yyb1233 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1233-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1236 := z.EncBinary() + _ = yym1236 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1237 = 0 + for _, b := range yyq1237 { + if b { + yynn1237++ + } + } + r.EncodeMapStart(yynn1237) + yynn1237 = 0 + } + if yyr1237 || yy2arr1237 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1237[0] { + if x.Command == nil { + r.EncodeNil() + } else { + yym1239 := z.EncBinary() + _ = yym1239 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1237[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 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } + } + if yyr1237 || yy2arr1237 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1241 := z.DecBinary() + _ = yym1241 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1242 := r.ContainerType() + if yyct1242 == codecSelferValueTypeMap1234 { + yyl1242 := r.ReadMapStart() + if yyl1242 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1242, d) + } + } else if yyct1242 == codecSelferValueTypeArray1234 { + yyl1242 := r.ReadArrayStart() + if yyl1242 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1242, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1243Slc = r.DecodeBytes(yys1243Slc, true, true) + yys1243 := string(yys1243Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1243 { + case "command": + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1244 := &x.Command + yym1245 := z.DecBinary() + _ = yym1245 + if false { + } else { + z.F.DecSliceStringX(yyv1244, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1243) + } // end switch yys1243 + } // end for yyj1243 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1246 = r.CheckBreak() + } + if yyb1246 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1247 := &x.Command + yym1248 := z.DecBinary() + _ = yym1248 + if false { + } else { + z.F.DecSliceStringX(yyv1247, false, d) + } + } + for { + yyj1246++ + if yyhl1246 { + yyb1246 = yyj1246 > l + } else { + yyb1246 = r.CheckBreak() + } + if yyb1246 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1246-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1249 := z.EncBinary() + _ = yym1249 + 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 { + r.EncodeArrayStart(8) + } else { + yynn1250 = 0 + for _, b := range yyq1250 { + if b { + yynn1250++ + } + } + r.EncodeMapStart(yynn1250) + yynn1250 = 0 + } + var yyn1251 bool + if x.Handler.Exec == nil { + yyn1251 = true + goto LABEL1251 + } + LABEL1251: + if yyr1250 || yy2arr1250 { + if yyn1251 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[0] { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq1250[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn1251 { + r.EncodeNil() + } else { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } + } + } + var yyn1252 bool + if x.Handler.HTTPGet == nil { + yyn1252 = true + goto LABEL1252 + } + LABEL1252: + if yyr1250 || yy2arr1250 { + if yyn1252 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[1] { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq1250[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("httpGet")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn1252 { + r.EncodeNil() + } else { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } + } + } + var yyn1253 bool + if x.Handler.TCPSocket == nil { + yyn1253 = true + goto LABEL1253 + } + LABEL1253: + if yyr1250 || yy2arr1250 { + if yyn1253 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[2] { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq1250[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn1253 { + r.EncodeNil() + } else { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } + } + } + if yyr1250 || yy2arr1250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[3] { + yym1255 := z.EncBinary() + _ = yym1255 + if false { + } else { + r.EncodeInt(int64(x.InitialDelaySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1250[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1256 := z.EncBinary() + _ = yym1256 + if false { + } else { + r.EncodeInt(int64(x.InitialDelaySeconds)) + } + } + } + if yyr1250 || yy2arr1250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[4] { + yym1258 := z.EncBinary() + _ = yym1258 + if false { + } else { + r.EncodeInt(int64(x.TimeoutSeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1250[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1259 := z.EncBinary() + _ = yym1259 + if false { + } else { + r.EncodeInt(int64(x.TimeoutSeconds)) + } + } + } + if yyr1250 || yy2arr1250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[5] { + yym1261 := z.EncBinary() + _ = yym1261 + if false { + } else { + r.EncodeInt(int64(x.PeriodSeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1250[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1262 := z.EncBinary() + _ = yym1262 + if false { + } else { + r.EncodeInt(int64(x.PeriodSeconds)) + } + } + } + if yyr1250 || yy2arr1250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[6] { + yym1264 := z.EncBinary() + _ = yym1264 + if false { + } else { + r.EncodeInt(int64(x.SuccessThreshold)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1250[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1265 := z.EncBinary() + _ = yym1265 + if false { + } else { + r.EncodeInt(int64(x.SuccessThreshold)) + } + } + } + if yyr1250 || yy2arr1250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1250[7] { + yym1267 := z.EncBinary() + _ = yym1267 + if false { + } else { + r.EncodeInt(int64(x.FailureThreshold)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1250[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1268 := z.EncBinary() + _ = yym1268 + if false { + } else { + r.EncodeInt(int64(x.FailureThreshold)) + } + } + } + if yyr1250 || yy2arr1250 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1269 := z.DecBinary() + _ = yym1269 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1270 := r.ContainerType() + if yyct1270 == codecSelferValueTypeMap1234 { + yyl1270 := r.ReadMapStart() + if yyl1270 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1270, d) + } + } else if yyct1270 == codecSelferValueTypeArray1234 { + yyl1270 := r.ReadArrayStart() + if yyl1270 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1270, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1271Slc = r.DecodeBytes(yys1271Slc, true, true) + yys1271 := string(yys1271Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1271 { + case "exec": + if x.Handler.Exec == nil { + x.Handler.Exec = new(ExecAction) + } + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + case "httpGet": + if x.Handler.HTTPGet == nil { + x.Handler.HTTPGet = new(HTTPGetAction) + } + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + case "tcpSocket": + if x.Handler.TCPSocket == nil { + x.Handler.TCPSocket = new(TCPSocketAction) + } + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + case "initialDelaySeconds": + if r.TryDecodeAsNil() { + x.InitialDelaySeconds = 0 + } else { + x.InitialDelaySeconds = int32(r.DecodeInt(32)) + } + case "timeoutSeconds": + if r.TryDecodeAsNil() { + x.TimeoutSeconds = 0 + } else { + x.TimeoutSeconds = int32(r.DecodeInt(32)) + } + case "periodSeconds": + if r.TryDecodeAsNil() { + x.PeriodSeconds = 0 + } else { + x.PeriodSeconds = int32(r.DecodeInt(32)) + } + case "successThreshold": + if r.TryDecodeAsNil() { + x.SuccessThreshold = 0 + } else { + x.SuccessThreshold = int32(r.DecodeInt(32)) + } + case "failureThreshold": + if r.TryDecodeAsNil() { + x.FailureThreshold = 0 + } else { + x.FailureThreshold = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys1271) + } // end switch yys1271 + } // end for yyj1271 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + if x.Handler.Exec == nil { + x.Handler.Exec = new(ExecAction) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + if x.Handler.HTTPGet == nil { + x.Handler.HTTPGet = new(HTTPGetAction) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + if x.Handler.TCPSocket == nil { + x.Handler.TCPSocket = new(TCPSocketAction) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.InitialDelaySeconds = 0 + } else { + x.InitialDelaySeconds = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TimeoutSeconds = 0 + } else { + x.TimeoutSeconds = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PeriodSeconds = 0 + } else { + x.PeriodSeconds = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SuccessThreshold = 0 + } else { + x.SuccessThreshold = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FailureThreshold = 0 + } else { + x.FailureThreshold = int32(r.DecodeInt(32)) + } + for { + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1280-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1289 := z.EncBinary() + _ = yym1289 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1290 := z.DecBinary() + _ = yym1290 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1291 := z.EncBinary() + _ = yym1291 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1292 := z.DecBinary() + _ = yym1292 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1293 := z.EncBinary() + _ = yym1293 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1294 = 0 + for _, b := range yyq1294 { + if b { + yynn1294++ + } + } + r.EncodeMapStart(yynn1294) + yynn1294 = 0 + } + if yyr1294 || yy2arr1294 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1294[0] { + if x.Add == nil { + r.EncodeNil() + } else { + yym1296 := z.EncBinary() + _ = yym1296 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Add), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1294[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 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Add), e) + } + } + } + } + if yyr1294 || yy2arr1294 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1294[1] { + if x.Drop == nil { + r.EncodeNil() + } else { + yym1299 := z.EncBinary() + _ = yym1299 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Drop), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1294[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 + if false { + } else { + h.encSliceCapability(([]Capability)(x.Drop), e) + } + } + } + } + if yyr1294 || yy2arr1294 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1301 := z.DecBinary() + _ = yym1301 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1302 := r.ContainerType() + if yyct1302 == codecSelferValueTypeMap1234 { + yyl1302 := r.ReadMapStart() + if yyl1302 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1302, d) + } + } else if yyct1302 == codecSelferValueTypeArray1234 { + yyl1302 := r.ReadArrayStart() + if yyl1302 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1302, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1303Slc = r.DecodeBytes(yys1303Slc, true, true) + yys1303 := string(yys1303Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1303 { + case "add": + if r.TryDecodeAsNil() { + x.Add = nil + } else { + yyv1304 := &x.Add + yym1305 := z.DecBinary() + _ = yym1305 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1304), d) + } + } + case "drop": + if r.TryDecodeAsNil() { + x.Drop = nil + } else { + yyv1306 := &x.Drop + yym1307 := z.DecBinary() + _ = yym1307 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1306), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1303) + } // end switch yys1303 + } // end for yyj1303 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1308 = r.CheckBreak() + } + if yyb1308 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Add = nil + } else { + yyv1309 := &x.Add + yym1310 := z.DecBinary() + _ = yym1310 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1309), d) + } + } + yyj1308++ + if yyhl1308 { + yyb1308 = yyj1308 > l + } else { + yyb1308 = r.CheckBreak() + } + if yyb1308 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Drop = nil + } else { + yyv1311 := &x.Drop + yym1312 := z.DecBinary() + _ = yym1312 + if false { + } else { + h.decSliceCapability((*[]Capability)(yyv1311), d) + } + } + for { + yyj1308++ + if yyhl1308 { + yyb1308 = yyj1308 > l + } else { + yyb1308 = r.CheckBreak() + } + if yyb1308 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1308-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1313 := z.EncBinary() + _ = yym1313 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1314 = 0 + for _, b := range yyq1314 { + if b { + yynn1314++ + } + } + r.EncodeMapStart(yynn1314) + yynn1314 = 0 + } + if yyr1314 || yy2arr1314 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1314[0] { + if x.Limits == nil { + r.EncodeNil() + } else { + x.Limits.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1314[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("limits")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Limits == nil { + r.EncodeNil() + } else { + x.Limits.CodecEncodeSelf(e) + } + } + } + if yyr1314 || yy2arr1314 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1314[1] { + if x.Requests == nil { + r.EncodeNil() + } else { + x.Requests.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1314[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("requests")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Requests == nil { + r.EncodeNil() + } else { + x.Requests.CodecEncodeSelf(e) + } + } + } + if yyr1314 || yy2arr1314 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1317 := z.DecBinary() + _ = yym1317 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1318 := r.ContainerType() + if yyct1318 == codecSelferValueTypeMap1234 { + yyl1318 := r.ReadMapStart() + if yyl1318 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1318, d) + } + } else if yyct1318 == codecSelferValueTypeArray1234 { + yyl1318 := r.ReadArrayStart() + if yyl1318 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1318, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1319Slc = r.DecodeBytes(yys1319Slc, true, true) + yys1319 := string(yys1319Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1319 { + case "limits": + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv1320 := &x.Limits + yyv1320.CodecDecodeSelf(d) + } + case "requests": + if r.TryDecodeAsNil() { + x.Requests = nil + } else { + yyv1321 := &x.Requests + yyv1321.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1319) + } // end switch yys1319 + } // end for yyj1319 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1322 = r.CheckBreak() + } + if yyb1322 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv1323 := &x.Limits + yyv1323.CodecDecodeSelf(d) + } + yyj1322++ + if yyhl1322 { + yyb1322 = yyj1322 > l + } else { + yyb1322 = r.CheckBreak() + } + if yyb1322 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Requests = nil + } else { + yyv1324 := &x.Requests + yyv1324.CodecDecodeSelf(d) + } + for { + yyj1322++ + if yyhl1322 { + yyb1322 = yyj1322 > l + } else { + yyb1322 = r.CheckBreak() + } + if yyb1322 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1322-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1325 := z.EncBinary() + _ = yym1325 + 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 { + r.EncodeArrayStart(18) + } else { + yynn1326 = 1 + for _, b := range yyq1326 { + if b { + yynn1326++ + } + } + r.EncodeMapStart(yynn1326) + yynn1326 = 0 + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1328 := z.EncBinary() + _ = yym1328 + 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) + yym1329 := z.EncBinary() + _ = yym1329 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[1] { + yym1331 := z.EncBinary() + _ = yym1331 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1326[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1332 := z.EncBinary() + _ = yym1332 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[2] { + if x.Command == nil { + r.EncodeNil() + } else { + yym1334 := z.EncBinary() + _ = yym1334 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[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 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[3] { + if x.Args == nil { + r.EncodeNil() + } else { + yym1337 := z.EncBinary() + _ = yym1337 + if false { + } else { + z.F.EncSliceStringV(x.Args, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[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 + if false { + } else { + z.F.EncSliceStringV(x.Args, false, e) + } + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[4] { + yym1340 := z.EncBinary() + _ = yym1340 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1326[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("workingDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1341 := z.EncBinary() + _ = yym1341 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[5] { + if x.Ports == nil { + r.EncodeNil() + } else { + yym1343 := z.EncBinary() + _ = yym1343 + if false { + } else { + h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[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 + if false { + } else { + h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) + } + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[6] { + if x.Env == nil { + r.EncodeNil() + } else { + yym1346 := z.EncBinary() + _ = yym1346 + if false { + } else { + h.encSliceEnvVar(([]EnvVar)(x.Env), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[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 + if false { + } else { + h.encSliceEnvVar(([]EnvVar)(x.Env), e) + } + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[7] { + yy1349 := &x.Resources + yy1349.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1326[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1350 := &x.Resources + yy1350.CodecEncodeSelf(e) + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[8] { + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + yym1352 := z.EncBinary() + _ = yym1352 + if false { + } else { + h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[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 + if false { + } else { + h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) + } + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[9] { + if x.LivenessProbe == nil { + r.EncodeNil() + } else { + x.LivenessProbe.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LivenessProbe == nil { + r.EncodeNil() + } else { + x.LivenessProbe.CodecEncodeSelf(e) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[10] { + if x.ReadinessProbe == nil { + r.EncodeNil() + } else { + x.ReadinessProbe.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadinessProbe == nil { + r.EncodeNil() + } else { + x.ReadinessProbe.CodecEncodeSelf(e) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[11] { + if x.Lifecycle == nil { + r.EncodeNil() + } else { + x.Lifecycle.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Lifecycle == nil { + r.EncodeNil() + } else { + x.Lifecycle.CodecEncodeSelf(e) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[12] { + yym1358 := z.EncBinary() + _ = yym1358 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1326[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1359 := z.EncBinary() + _ = yym1359 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[13] { + x.ImagePullPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1326[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.ImagePullPolicy.CodecEncodeSelf(e) + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[14] { + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1326[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("securityContext")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[15] { + yym1363 := z.EncBinary() + _ = yym1363 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1326[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1364 := z.EncBinary() + _ = yym1364 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[16] { + yym1366 := z.EncBinary() + _ = yym1366 + if false { + } else { + r.EncodeBool(bool(x.StdinOnce)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1326[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1367 := z.EncBinary() + _ = yym1367 + if false { + } else { + r.EncodeBool(bool(x.StdinOnce)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[17] { + yym1369 := z.EncBinary() + _ = yym1369 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1326[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tty")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1370 := z.EncBinary() + _ = yym1370 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1371 := z.DecBinary() + _ = yym1371 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1372 := r.ContainerType() + if yyct1372 == codecSelferValueTypeMap1234 { + yyl1372 := r.ReadMapStart() + if yyl1372 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1372, d) + } + } else if yyct1372 == codecSelferValueTypeArray1234 { + yyl1372 := r.ReadArrayStart() + if yyl1372 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1372, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1373Slc = r.DecodeBytes(yys1373Slc, true, true) + yys1373 := string(yys1373Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1373 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "image": + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + case "command": + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1376 := &x.Command + yym1377 := z.DecBinary() + _ = yym1377 + if false { + } else { + z.F.DecSliceStringX(yyv1376, false, d) + } + } + case "args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + yyv1378 := &x.Args + yym1379 := z.DecBinary() + _ = yym1379 + if false { + } else { + z.F.DecSliceStringX(yyv1378, false, d) + } + } + case "workingDir": + if r.TryDecodeAsNil() { + x.WorkingDir = "" + } else { + x.WorkingDir = string(r.DecodeString()) + } + case "ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv1381 := &x.Ports + yym1382 := z.DecBinary() + _ = yym1382 + if false { + } else { + h.decSliceContainerPort((*[]ContainerPort)(yyv1381), d) + } + } + case "env": + if r.TryDecodeAsNil() { + x.Env = nil + } else { + yyv1383 := &x.Env + yym1384 := z.DecBinary() + _ = yym1384 + if false { + } else { + h.decSliceEnvVar((*[]EnvVar)(yyv1383), d) + } + } + case "resources": + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv1385 := &x.Resources + yyv1385.CodecDecodeSelf(d) + } + case "volumeMounts": + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + yyv1386 := &x.VolumeMounts + yym1387 := z.DecBinary() + _ = yym1387 + if false { + } else { + h.decSliceVolumeMount((*[]VolumeMount)(yyv1386), d) + } + } + case "livenessProbe": + if r.TryDecodeAsNil() { + if x.LivenessProbe != nil { + x.LivenessProbe = nil + } + } else { + if x.LivenessProbe == nil { + x.LivenessProbe = new(Probe) + } + x.LivenessProbe.CodecDecodeSelf(d) + } + case "readinessProbe": + if r.TryDecodeAsNil() { + if x.ReadinessProbe != nil { + x.ReadinessProbe = nil + } + } else { + if x.ReadinessProbe == nil { + x.ReadinessProbe = new(Probe) + } + x.ReadinessProbe.CodecDecodeSelf(d) + } + case "lifecycle": + if r.TryDecodeAsNil() { + if x.Lifecycle != nil { + x.Lifecycle = nil + } + } else { + if x.Lifecycle == nil { + x.Lifecycle = new(Lifecycle) + } + x.Lifecycle.CodecDecodeSelf(d) + } + case "terminationMessagePath": + if r.TryDecodeAsNil() { + x.TerminationMessagePath = "" + } else { + x.TerminationMessagePath = string(r.DecodeString()) + } + case "imagePullPolicy": + if r.TryDecodeAsNil() { + x.ImagePullPolicy = "" + } else { + x.ImagePullPolicy = PullPolicy(r.DecodeString()) + } + case "securityContext": + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(SecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + case "stdin": + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + case "stdinOnce": + if r.TryDecodeAsNil() { + x.StdinOnce = false + } else { + x.StdinOnce = bool(r.DecodeBool()) + } + case "tty": + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys1373) + } // end switch yys1373 + } // end for yyj1373 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv1400 := &x.Command + yym1401 := z.DecBinary() + _ = yym1401 + if false { + } else { + z.F.DecSliceStringX(yyv1400, false, d) + } + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Args = nil + } else { + yyv1402 := &x.Args + yym1403 := z.DecBinary() + _ = yym1403 + if false { + } else { + z.F.DecSliceStringX(yyv1402, false, d) + } + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.WorkingDir = "" + } else { + x.WorkingDir = string(r.DecodeString()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv1405 := &x.Ports + yym1406 := z.DecBinary() + _ = yym1406 + if false { + } else { + h.decSliceContainerPort((*[]ContainerPort)(yyv1405), d) + } + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Env = nil + } else { + yyv1407 := &x.Env + yym1408 := z.DecBinary() + _ = yym1408 + if false { + } else { + h.decSliceEnvVar((*[]EnvVar)(yyv1407), d) + } + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Resources = ResourceRequirements{} + } else { + yyv1409 := &x.Resources + yyv1409.CodecDecodeSelf(d) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + yyv1410 := &x.VolumeMounts + yym1411 := z.DecBinary() + _ = yym1411 + if false { + } else { + h.decSliceVolumeMount((*[]VolumeMount)(yyv1410), d) + } + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LivenessProbe != nil { + x.LivenessProbe = nil + } + } else { + if x.LivenessProbe == nil { + x.LivenessProbe = new(Probe) + } + x.LivenessProbe.CodecDecodeSelf(d) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ReadinessProbe != nil { + x.ReadinessProbe = nil + } + } else { + if x.ReadinessProbe == nil { + x.ReadinessProbe = new(Probe) + } + x.ReadinessProbe.CodecDecodeSelf(d) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Lifecycle != nil { + x.Lifecycle = nil + } + } else { + if x.Lifecycle == nil { + x.Lifecycle = new(Lifecycle) + } + x.Lifecycle.CodecDecodeSelf(d) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TerminationMessagePath = "" + } else { + x.TerminationMessagePath = string(r.DecodeString()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImagePullPolicy = "" + } else { + x.ImagePullPolicy = PullPolicy(r.DecodeString()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(SecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StdinOnce = false + } else { + x.StdinOnce = bool(r.DecodeBool()) + } + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + for { + yyj1397++ + if yyhl1397 { + yyb1397 = yyj1397 > l + } else { + yyb1397 = r.CheckBreak() + } + if yyb1397 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1397-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1421 := z.EncBinary() + _ = yym1421 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1422 = 0 + for _, b := range yyq1422 { + if b { + yynn1422++ + } + } + r.EncodeMapStart(yynn1422) + yynn1422 = 0 + } + if yyr1422 || yy2arr1422 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1422[0] { + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1422[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Exec == nil { + r.EncodeNil() + } else { + x.Exec.CodecEncodeSelf(e) + } + } + } + if yyr1422 || yy2arr1422 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1422[1] { + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1422[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("httpGet")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HTTPGet == nil { + r.EncodeNil() + } else { + x.HTTPGet.CodecEncodeSelf(e) + } + } + } + if yyr1422 || yy2arr1422 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1422[2] { + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1422[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TCPSocket == nil { + r.EncodeNil() + } else { + x.TCPSocket.CodecEncodeSelf(e) + } + } + } + if yyr1422 || yy2arr1422 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1426 := z.DecBinary() + _ = yym1426 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1427 := r.ContainerType() + if yyct1427 == codecSelferValueTypeMap1234 { + yyl1427 := r.ReadMapStart() + if yyl1427 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1427, d) + } + } else if yyct1427 == codecSelferValueTypeArray1234 { + yyl1427 := r.ReadArrayStart() + if yyl1427 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1427, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1428Slc = r.DecodeBytes(yys1428Slc, true, true) + yys1428 := string(yys1428Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1428 { + case "exec": + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + case "httpGet": + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + case "tcpSocket": + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1428) + } // end switch yys1428 + } // end for yyj1428 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1432 = r.CheckBreak() + } + if yyb1432 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Exec != nil { + x.Exec = nil + } + } else { + if x.Exec == nil { + x.Exec = new(ExecAction) + } + x.Exec.CodecDecodeSelf(d) + } + yyj1432++ + if yyhl1432 { + yyb1432 = yyj1432 > l + } else { + yyb1432 = r.CheckBreak() + } + if yyb1432 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HTTPGet != nil { + x.HTTPGet = nil + } + } else { + if x.HTTPGet == nil { + x.HTTPGet = new(HTTPGetAction) + } + x.HTTPGet.CodecDecodeSelf(d) + } + yyj1432++ + if yyhl1432 { + yyb1432 = yyj1432 > l + } else { + yyb1432 = r.CheckBreak() + } + if yyb1432 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TCPSocket != nil { + x.TCPSocket = nil + } + } else { + if x.TCPSocket == nil { + x.TCPSocket = new(TCPSocketAction) + } + x.TCPSocket.CodecDecodeSelf(d) + } + for { + yyj1432++ + if yyhl1432 { + yyb1432 = yyj1432 > l + } else { + yyb1432 = r.CheckBreak() + } + if yyb1432 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1432-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1436 := z.EncBinary() + _ = yym1436 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1437 = 0 + for _, b := range yyq1437 { + if b { + yynn1437++ + } + } + r.EncodeMapStart(yynn1437) + yynn1437 = 0 + } + if yyr1437 || yy2arr1437 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1437[0] { + if x.PostStart == nil { + r.EncodeNil() + } else { + x.PostStart.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1437[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("postStart")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PostStart == nil { + r.EncodeNil() + } else { + x.PostStart.CodecEncodeSelf(e) + } + } + } + if yyr1437 || yy2arr1437 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1437[1] { + if x.PreStop == nil { + r.EncodeNil() + } else { + x.PreStop.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1437[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preStop")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PreStop == nil { + r.EncodeNil() + } else { + x.PreStop.CodecEncodeSelf(e) + } + } + } + if yyr1437 || yy2arr1437 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1440 := z.DecBinary() + _ = yym1440 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1441 := r.ContainerType() + if yyct1441 == codecSelferValueTypeMap1234 { + yyl1441 := r.ReadMapStart() + if yyl1441 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1441, d) + } + } else if yyct1441 == codecSelferValueTypeArray1234 { + yyl1441 := r.ReadArrayStart() + if yyl1441 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1441, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1442Slc = r.DecodeBytes(yys1442Slc, true, true) + yys1442 := string(yys1442Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1442 { + case "postStart": + if r.TryDecodeAsNil() { + if x.PostStart != nil { + x.PostStart = nil + } + } else { + if x.PostStart == nil { + x.PostStart = new(Handler) + } + x.PostStart.CodecDecodeSelf(d) + } + case "preStop": + if r.TryDecodeAsNil() { + if x.PreStop != nil { + x.PreStop = nil + } + } else { + if x.PreStop == nil { + x.PreStop = new(Handler) + } + x.PreStop.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1442) + } // end switch yys1442 + } // end for yyj1442 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1445 = r.CheckBreak() + } + if yyb1445 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PostStart != nil { + x.PostStart = nil + } + } else { + if x.PostStart == nil { + x.PostStart = new(Handler) + } + x.PostStart.CodecDecodeSelf(d) + } + yyj1445++ + if yyhl1445 { + yyb1445 = yyj1445 > l + } else { + yyb1445 = r.CheckBreak() + } + if yyb1445 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PreStop != nil { + x.PreStop = nil + } + } else { + if x.PreStop == nil { + x.PreStop = new(Handler) + } + x.PreStop.CodecDecodeSelf(d) + } + for { + yyj1445++ + if yyhl1445 { + yyb1445 = yyj1445 > l + } else { + yyb1445 = r.CheckBreak() + } + if yyb1445 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1445-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1448 := z.EncBinary() + _ = yym1448 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1449 := z.DecBinary() + _ = yym1449 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1450 := z.EncBinary() + _ = yym1450 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1451 = 0 + for _, b := range yyq1451 { + if b { + yynn1451++ + } + } + r.EncodeMapStart(yynn1451) + yynn1451 = 0 + } + if yyr1451 || yy2arr1451 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1451[0] { + yym1453 := z.EncBinary() + _ = yym1453 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1451[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1454 := z.EncBinary() + _ = yym1454 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1451 || yy2arr1451 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1451[1] { + yym1456 := z.EncBinary() + _ = yym1456 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1451[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1457 := z.EncBinary() + _ = yym1457 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1451 || yy2arr1451 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1458 := z.DecBinary() + _ = yym1458 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1459 := r.ContainerType() + if yyct1459 == codecSelferValueTypeMap1234 { + yyl1459 := r.ReadMapStart() + if yyl1459 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1459, d) + } + } else if yyct1459 == codecSelferValueTypeArray1234 { + yyl1459 := r.ReadArrayStart() + if yyl1459 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1459, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1460Slc = r.DecodeBytes(yys1460Slc, true, true) + yys1460 := string(yys1460Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1460 { + 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, yys1460) + } // end switch yys1460 + } // end for yyj1460 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1463 = r.CheckBreak() + } + if yyb1463 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1463++ + if yyhl1463 { + yyb1463 = yyj1463 > l + } else { + yyb1463 = r.CheckBreak() + } + if yyb1463 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1463++ + if yyhl1463 { + yyb1463 = yyj1463 > l + } else { + yyb1463 = r.CheckBreak() + } + if yyb1463 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1463-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1466 := z.EncBinary() + _ = yym1466 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1467 = 0 + for _, b := range yyq1467 { + if b { + yynn1467++ + } + } + r.EncodeMapStart(yynn1467) + yynn1467 = 0 + } + if yyr1467 || yy2arr1467 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1467[0] { + yy1469 := &x.StartedAt + yym1470 := z.EncBinary() + _ = yym1470 + if false { + } else if z.HasExtensions() && z.EncExt(yy1469) { + } else if yym1470 { + z.EncBinaryMarshal(yy1469) + } else if !yym1470 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1469) + } else { + z.EncFallback(yy1469) + } + } else { + r.EncodeNil() + } + } else { + if yyq1467[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1471 := &x.StartedAt + yym1472 := z.EncBinary() + _ = yym1472 + if false { + } else if z.HasExtensions() && z.EncExt(yy1471) { + } else if yym1472 { + z.EncBinaryMarshal(yy1471) + } else if !yym1472 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1471) + } else { + z.EncFallback(yy1471) + } + } + } + if yyr1467 || yy2arr1467 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1473 := z.DecBinary() + _ = yym1473 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1474 := r.ContainerType() + if yyct1474 == codecSelferValueTypeMap1234 { + yyl1474 := r.ReadMapStart() + if yyl1474 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1474, d) + } + } else if yyct1474 == codecSelferValueTypeArray1234 { + yyl1474 := r.ReadArrayStart() + if yyl1474 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1474, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1475Slc = r.DecodeBytes(yys1475Slc, true, true) + yys1475 := string(yys1475Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1475 { + case "startedAt": + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1476 := &x.StartedAt + yym1477 := z.DecBinary() + _ = yym1477 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1476) { + } else if yym1477 { + z.DecBinaryUnmarshal(yyv1476) + } else if !yym1477 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1476) + } else { + z.DecFallback(yyv1476, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1475) + } // end switch yys1475 + } // end for yyj1475 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1478 = r.CheckBreak() + } + if yyb1478 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1479 := &x.StartedAt + yym1480 := z.DecBinary() + _ = yym1480 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1479) { + } else if yym1480 { + z.DecBinaryUnmarshal(yyv1479) + } else if !yym1480 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1479) + } else { + z.DecFallback(yyv1479, false) + } + } + for { + yyj1478++ + if yyhl1478 { + yyb1478 = yyj1478 > l + } else { + yyb1478 = r.CheckBreak() + } + if yyb1478 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1478-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1481 := z.EncBinary() + _ = yym1481 + 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 { + r.EncodeArrayStart(7) + } else { + yynn1482 = 1 + for _, b := range yyq1482 { + if b { + yynn1482++ + } + } + r.EncodeMapStart(yynn1482) + yynn1482 = 0 + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1484 := z.EncBinary() + _ = yym1484 + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exitCode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1485 := z.EncBinary() + _ = yym1485 + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1482[1] { + yym1487 := z.EncBinary() + _ = yym1487 + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1482[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("signal")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1488 := z.EncBinary() + _ = yym1488 + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1482[2] { + yym1490 := z.EncBinary() + _ = yym1490 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1482[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1491 := z.EncBinary() + _ = yym1491 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1482[3] { + yym1493 := z.EncBinary() + _ = yym1493 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1482[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1494 := z.EncBinary() + _ = yym1494 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1482[4] { + yy1496 := &x.StartedAt + yym1497 := z.EncBinary() + _ = yym1497 + if false { + } else if z.HasExtensions() && z.EncExt(yy1496) { + } else if yym1497 { + z.EncBinaryMarshal(yy1496) + } else if !yym1497 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1496) + } else { + z.EncFallback(yy1496) + } + } else { + r.EncodeNil() + } + } else { + if yyq1482[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1498 := &x.StartedAt + yym1499 := z.EncBinary() + _ = yym1499 + if false { + } else if z.HasExtensions() && z.EncExt(yy1498) { + } else if yym1499 { + z.EncBinaryMarshal(yy1498) + } else if !yym1499 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1498) + } else { + z.EncFallback(yy1498) + } + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1482[5] { + yy1501 := &x.FinishedAt + yym1502 := z.EncBinary() + _ = yym1502 + if false { + } else if z.HasExtensions() && z.EncExt(yy1501) { + } else if yym1502 { + z.EncBinaryMarshal(yy1501) + } else if !yym1502 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1501) + } else { + z.EncFallback(yy1501) + } + } else { + r.EncodeNil() + } + } else { + if yyq1482[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1503 := &x.FinishedAt + yym1504 := z.EncBinary() + _ = yym1504 + if false { + } else if z.HasExtensions() && z.EncExt(yy1503) { + } else if yym1504 { + z.EncBinaryMarshal(yy1503) + } else if !yym1504 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1503) + } else { + z.EncFallback(yy1503) + } + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1482[6] { + yym1506 := z.EncBinary() + _ = yym1506 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1482[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1507 := z.EncBinary() + _ = yym1507 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } + } + if yyr1482 || yy2arr1482 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1508 := z.DecBinary() + _ = yym1508 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1509 := r.ContainerType() + if yyct1509 == codecSelferValueTypeMap1234 { + yyl1509 := r.ReadMapStart() + if yyl1509 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1509, d) + } + } else if yyct1509 == codecSelferValueTypeArray1234 { + yyl1509 := r.ReadArrayStart() + if yyl1509 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1509, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1510Slc = r.DecodeBytes(yys1510Slc, true, true) + yys1510 := string(yys1510Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1510 { + case "exitCode": + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = int32(r.DecodeInt(32)) + } + case "signal": + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = int32(r.DecodeInt(32)) + } + 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 "startedAt": + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1515 := &x.StartedAt + yym1516 := z.DecBinary() + _ = yym1516 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1515) { + } else if yym1516 { + z.DecBinaryUnmarshal(yyv1515) + } else if !yym1516 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1515) + } else { + z.DecFallback(yyv1515, false) + } + } + case "finishedAt": + if r.TryDecodeAsNil() { + x.FinishedAt = pkg2_unversioned.Time{} + } else { + yyv1517 := &x.FinishedAt + yym1518 := z.DecBinary() + _ = yym1518 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1517) { + } else if yym1518 { + z.DecBinaryUnmarshal(yyv1517) + } else if !yym1518 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1517) + } else { + z.DecFallback(yyv1517, false) + } + } + case "containerID": + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1510) + } // end switch yys1510 + } // end for yyj1510 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = int32(r.DecodeInt(32)) + } + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = int32(r.DecodeInt(32)) + } + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1525 := &x.StartedAt + yym1526 := z.DecBinary() + _ = yym1526 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1525) { + } else if yym1526 { + z.DecBinaryUnmarshal(yyv1525) + } else if !yym1526 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1525) + } else { + z.DecFallback(yyv1525, false) + } + } + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FinishedAt = pkg2_unversioned.Time{} + } else { + yyv1527 := &x.FinishedAt + yym1528 := z.DecBinary() + _ = yym1528 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1527) { + } else if yym1528 { + z.DecBinaryUnmarshal(yyv1527) + } else if !yym1528 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1527) + } else { + z.DecFallback(yyv1527, false) + } + } + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + for { + yyj1520++ + if yyhl1520 { + yyb1520 = yyj1520 > l + } else { + yyb1520 = r.CheckBreak() + } + if yyb1520 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1520-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1530 := z.EncBinary() + _ = yym1530 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1531 = 0 + for _, b := range yyq1531 { + if b { + yynn1531++ + } + } + r.EncodeMapStart(yynn1531) + yynn1531 = 0 + } + if yyr1531 || yy2arr1531 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1531[0] { + if x.Waiting == nil { + r.EncodeNil() + } else { + x.Waiting.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1531[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("waiting")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Waiting == nil { + r.EncodeNil() + } else { + x.Waiting.CodecEncodeSelf(e) + } + } + } + if yyr1531 || yy2arr1531 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1531[1] { + if x.Running == nil { + r.EncodeNil() + } else { + x.Running.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1531[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("running")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Running == nil { + r.EncodeNil() + } else { + x.Running.CodecEncodeSelf(e) + } + } + } + if yyr1531 || yy2arr1531 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1531[2] { + if x.Terminated == nil { + r.EncodeNil() + } else { + x.Terminated.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1531[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("terminated")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Terminated == nil { + r.EncodeNil() + } else { + x.Terminated.CodecEncodeSelf(e) + } + } + } + if yyr1531 || yy2arr1531 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1535 := z.DecBinary() + _ = yym1535 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1536 := r.ContainerType() + if yyct1536 == codecSelferValueTypeMap1234 { + yyl1536 := r.ReadMapStart() + if yyl1536 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1536, d) + } + } else if yyct1536 == codecSelferValueTypeArray1234 { + yyl1536 := r.ReadArrayStart() + if yyl1536 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1536, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1537Slc = r.DecodeBytes(yys1537Slc, true, true) + yys1537 := string(yys1537Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1537 { + case "waiting": + if r.TryDecodeAsNil() { + if x.Waiting != nil { + x.Waiting = nil + } + } else { + if x.Waiting == nil { + x.Waiting = new(ContainerStateWaiting) + } + x.Waiting.CodecDecodeSelf(d) + } + case "running": + if r.TryDecodeAsNil() { + if x.Running != nil { + x.Running = nil + } + } else { + if x.Running == nil { + x.Running = new(ContainerStateRunning) + } + x.Running.CodecDecodeSelf(d) + } + case "terminated": + if r.TryDecodeAsNil() { + if x.Terminated != nil { + x.Terminated = nil + } + } else { + if x.Terminated == nil { + x.Terminated = new(ContainerStateTerminated) + } + x.Terminated.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1537) + } // end switch yys1537 + } // end for yyj1537 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1541 = r.CheckBreak() + } + if yyb1541 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Waiting != nil { + x.Waiting = nil + } + } else { + if x.Waiting == nil { + x.Waiting = new(ContainerStateWaiting) + } + x.Waiting.CodecDecodeSelf(d) + } + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l + } else { + yyb1541 = r.CheckBreak() + } + if yyb1541 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Running != nil { + x.Running = nil + } + } else { + if x.Running == nil { + x.Running = new(ContainerStateRunning) + } + x.Running.CodecDecodeSelf(d) + } + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l + } else { + yyb1541 = r.CheckBreak() + } + if yyb1541 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Terminated != nil { + x.Terminated = nil + } + } else { + if x.Terminated == nil { + x.Terminated = new(ContainerStateTerminated) + } + x.Terminated.CodecDecodeSelf(d) + } + for { + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l + } else { + yyb1541 = r.CheckBreak() + } + if yyb1541 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1541-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1545 := z.EncBinary() + _ = yym1545 + 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 { + r.EncodeArrayStart(8) + } else { + yynn1546 = 5 + for _, b := range yyq1546 { + if b { + yynn1546++ + } + } + r.EncodeMapStart(yynn1546) + yynn1546 = 0 + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1548 := z.EncBinary() + _ = yym1548 + 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) + yym1549 := z.EncBinary() + _ = yym1549 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1546[1] { + yy1551 := &x.State + yy1551.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1546[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("state")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1552 := &x.State + yy1552.CodecEncodeSelf(e) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1546[2] { + yy1554 := &x.LastTerminationState + yy1554.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1546[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastState")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1555 := &x.LastTerminationState + yy1555.CodecEncodeSelf(e) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1557 := z.EncBinary() + _ = yym1557 + if false { + } else { + r.EncodeBool(bool(x.Ready)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ready")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1558 := z.EncBinary() + _ = yym1558 + if false { + } else { + r.EncodeBool(bool(x.Ready)) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1560 := z.EncBinary() + _ = yym1560 + if false { + } else { + r.EncodeInt(int64(x.RestartCount)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("restartCount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1561 := z.EncBinary() + _ = yym1561 + if false { + } else { + r.EncodeInt(int64(x.RestartCount)) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1563 := z.EncBinary() + _ = yym1563 + 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) + yym1564 := z.EncBinary() + _ = yym1564 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1566 := z.EncBinary() + _ = yym1566 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imageID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1567 := z.EncBinary() + _ = yym1567 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1546[7] { + yym1569 := z.EncBinary() + _ = yym1569 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1546[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1570 := z.EncBinary() + _ = yym1570 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) + } + } + } + if yyr1546 || yy2arr1546 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1571 := z.DecBinary() + _ = yym1571 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1572 := r.ContainerType() + if yyct1572 == codecSelferValueTypeMap1234 { + yyl1572 := r.ReadMapStart() + if yyl1572 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1572, d) + } + } else if yyct1572 == codecSelferValueTypeArray1234 { + yyl1572 := r.ReadArrayStart() + if yyl1572 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1572, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1573Slc = r.DecodeBytes(yys1573Slc, true, true) + yys1573 := string(yys1573Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1573 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "state": + if r.TryDecodeAsNil() { + x.State = ContainerState{} + } else { + yyv1575 := &x.State + yyv1575.CodecDecodeSelf(d) + } + case "lastState": + if r.TryDecodeAsNil() { + x.LastTerminationState = ContainerState{} + } else { + yyv1576 := &x.LastTerminationState + yyv1576.CodecDecodeSelf(d) + } + case "ready": + if r.TryDecodeAsNil() { + x.Ready = false + } else { + x.Ready = bool(r.DecodeBool()) + } + case "restartCount": + if r.TryDecodeAsNil() { + x.RestartCount = 0 + } else { + x.RestartCount = int32(r.DecodeInt(32)) + } + case "image": + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + case "imageID": + if r.TryDecodeAsNil() { + x.ImageID = "" + } else { + x.ImageID = string(r.DecodeString()) + } + case "containerID": + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1573) + } // end switch yys1573 + } // end for yyj1573 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.State = ContainerState{} + } else { + yyv1584 := &x.State + yyv1584.CodecDecodeSelf(d) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTerminationState = ContainerState{} + } else { + yyv1585 := &x.LastTerminationState + yyv1585.CodecDecodeSelf(d) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ready = false + } else { + x.Ready = bool(r.DecodeBool()) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RestartCount = 0 + } else { + x.RestartCount = int32(r.DecodeInt(32)) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImageID = "" + } else { + x.ImageID = string(r.DecodeString()) + } + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerID = "" + } else { + x.ContainerID = string(r.DecodeString()) + } + for { + yyj1582++ + if yyhl1582 { + yyb1582 = yyj1582 > l + } else { + yyb1582 = r.CheckBreak() + } + if yyb1582 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1582-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1591 := z.EncBinary() + _ = yym1591 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1592 := z.DecBinary() + _ = yym1592 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1593 := z.EncBinary() + _ = yym1593 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1594 := z.DecBinary() + _ = yym1594 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1595 := z.EncBinary() + _ = yym1595 + 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 { + r.EncodeArrayStart(6) + } else { + yynn1596 = 2 + for _, b := range yyq1596 { + if b { + yynn1596++ + } + } + r.EncodeMapStart(yynn1596) + yynn1596 = 0 + } + if yyr1596 || yy2arr1596 { + 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 yyr1596 || yy2arr1596 { + 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 yyr1596 || yy2arr1596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1596[2] { + yy1600 := &x.LastProbeTime + yym1601 := z.EncBinary() + _ = yym1601 + if false { + } else if z.HasExtensions() && z.EncExt(yy1600) { + } else if yym1601 { + z.EncBinaryMarshal(yy1600) + } else if !yym1601 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1600) + } else { + z.EncFallback(yy1600) + } + } else { + r.EncodeNil() + } + } else { + if yyq1596[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1602 := &x.LastProbeTime + yym1603 := z.EncBinary() + _ = yym1603 + if false { + } else if z.HasExtensions() && z.EncExt(yy1602) { + } else if yym1603 { + z.EncBinaryMarshal(yy1602) + } else if !yym1603 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1602) + } else { + z.EncFallback(yy1602) + } + } + } + if yyr1596 || yy2arr1596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1596[3] { + yy1605 := &x.LastTransitionTime + yym1606 := z.EncBinary() + _ = yym1606 + if false { + } else if z.HasExtensions() && z.EncExt(yy1605) { + } else if yym1606 { + z.EncBinaryMarshal(yy1605) + } else if !yym1606 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1605) + } else { + z.EncFallback(yy1605) + } + } else { + r.EncodeNil() + } + } else { + if yyq1596[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1607 := &x.LastTransitionTime + yym1608 := z.EncBinary() + _ = yym1608 + if false { + } else if z.HasExtensions() && z.EncExt(yy1607) { + } else if yym1608 { + z.EncBinaryMarshal(yy1607) + } else if !yym1608 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1607) + } else { + z.EncFallback(yy1607) + } + } + } + if yyr1596 || yy2arr1596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1596[4] { + yym1610 := z.EncBinary() + _ = yym1610 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1596[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1611 := z.EncBinary() + _ = yym1611 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1596 || yy2arr1596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1596[5] { + yym1613 := z.EncBinary() + _ = yym1613 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1596[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1614 := z.EncBinary() + _ = yym1614 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1596 || yy2arr1596 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1615 := z.DecBinary() + _ = yym1615 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1616 := r.ContainerType() + if yyct1616 == codecSelferValueTypeMap1234 { + yyl1616 := r.ReadMapStart() + if yyl1616 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1616, d) + } + } else if yyct1616 == codecSelferValueTypeArray1234 { + yyl1616 := r.ReadArrayStart() + if yyl1616 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1616, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1617Slc = r.DecodeBytes(yys1617Slc, true, true) + yys1617 := string(yys1617Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1617 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = PodConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + case "lastProbeTime": + if r.TryDecodeAsNil() { + x.LastProbeTime = pkg2_unversioned.Time{} + } else { + yyv1620 := &x.LastProbeTime + yym1621 := z.DecBinary() + _ = yym1621 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1620) { + } else if yym1621 { + z.DecBinaryUnmarshal(yyv1620) + } else if !yym1621 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1620) + } else { + z.DecFallback(yyv1620, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv1622 := &x.LastTransitionTime + yym1623 := z.DecBinary() + _ = yym1623 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1622) { + } else if yym1623 { + z.DecBinaryUnmarshal(yyv1622) + } else if !yym1623 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1622) + } else { + z.DecFallback(yyv1622, 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, yys1617) + } // end switch yys1617 + } // end for yyj1617 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = PodConditionType(r.DecodeString()) + } + yyj1626++ + if yyhl1626 { + yyb1626 = yyj1626 > l + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj1626++ + if yyhl1626 { + yyb1626 = yyj1626 > l + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastProbeTime = pkg2_unversioned.Time{} + } else { + yyv1629 := &x.LastProbeTime + yym1630 := z.DecBinary() + _ = yym1630 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1629) { + } else if yym1630 { + z.DecBinaryUnmarshal(yyv1629) + } else if !yym1630 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1629) + } else { + z.DecFallback(yyv1629, false) + } + } + yyj1626++ + if yyhl1626 { + yyb1626 = yyj1626 > l + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv1631 := &x.LastTransitionTime + yym1632 := z.DecBinary() + _ = yym1632 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1631) { + } else if yym1632 { + z.DecBinaryUnmarshal(yyv1631) + } else if !yym1632 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1631) + } else { + z.DecFallback(yyv1631, false) + } + } + yyj1626++ + if yyhl1626 { + yyb1626 = yyj1626 > l + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1626++ + if yyhl1626 { + yyb1626 = yyj1626 > l + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1626++ + if yyhl1626 { + yyb1626 = yyj1626 > l + } else { + yyb1626 = r.CheckBreak() + } + if yyb1626 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1626-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1635 := z.EncBinary() + _ = yym1635 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1636 := z.DecBinary() + _ = yym1636 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1637 := z.EncBinary() + _ = yym1637 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1638 := z.DecBinary() + _ = yym1638 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1639 := z.EncBinary() + _ = yym1639 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1640 = 1 + for _, b := range yyq1640 { + if b { + yynn1640++ + } + } + r.EncodeMapStart(yynn1640) + yynn1640 = 0 + } + if yyr1640 || yy2arr1640 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.NodeSelectorTerms == nil { + r.EncodeNil() + } else { + yym1642 := z.EncBinary() + _ = yym1642 + if false { + } else { + h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NodeSelectorTerms == nil { + r.EncodeNil() + } else { + yym1643 := z.EncBinary() + _ = yym1643 + if false { + } else { + h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) + } + } + } + if yyr1640 || yy2arr1640 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1644 := z.DecBinary() + _ = yym1644 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1645 := r.ContainerType() + if yyct1645 == codecSelferValueTypeMap1234 { + yyl1645 := r.ReadMapStart() + if yyl1645 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1645, d) + } + } else if yyct1645 == codecSelferValueTypeArray1234 { + yyl1645 := r.ReadArrayStart() + if yyl1645 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1645, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1646Slc = r.DecodeBytes(yys1646Slc, true, true) + yys1646 := string(yys1646Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1646 { + case "nodeSelectorTerms": + if r.TryDecodeAsNil() { + x.NodeSelectorTerms = nil + } else { + yyv1647 := &x.NodeSelectorTerms + yym1648 := z.DecBinary() + _ = yym1648 + if false { + } else { + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1647), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1646) + } // end switch yys1646 + } // end for yyj1646 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1649 = r.CheckBreak() + } + if yyb1649 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeSelectorTerms = nil + } else { + yyv1650 := &x.NodeSelectorTerms + yym1651 := z.DecBinary() + _ = yym1651 + if false { + } else { + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1650), d) + } + } + for { + yyj1649++ + if yyhl1649 { + yyb1649 = yyj1649 > l + } else { + yyb1649 = r.CheckBreak() + } + if yyb1649 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1649-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1652 := z.EncBinary() + _ = yym1652 + 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 { + r.EncodeArrayStart(1) + } else { + yynn1653 = 1 + for _, b := range yyq1653 { + if b { + yynn1653++ + } + } + r.EncodeMapStart(yynn1653) + yynn1653 = 0 + } + if yyr1653 || yy2arr1653 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.MatchExpressions == nil { + r.EncodeNil() + } else { + yym1655 := z.EncBinary() + _ = yym1655 + if false { + } else { + h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.MatchExpressions == nil { + r.EncodeNil() + } else { + yym1656 := z.EncBinary() + _ = yym1656 + if false { + } else { + h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) + } + } + } + if yyr1653 || yy2arr1653 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1657 := z.DecBinary() + _ = yym1657 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1658 := r.ContainerType() + if yyct1658 == codecSelferValueTypeMap1234 { + yyl1658 := r.ReadMapStart() + if yyl1658 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1658, d) + } + } else if yyct1658 == codecSelferValueTypeArray1234 { + yyl1658 := r.ReadArrayStart() + if yyl1658 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1658, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1659Slc = r.DecodeBytes(yys1659Slc, true, true) + yys1659 := string(yys1659Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1659 { + case "matchExpressions": + if r.TryDecodeAsNil() { + x.MatchExpressions = nil + } else { + yyv1660 := &x.MatchExpressions + yym1661 := z.DecBinary() + _ = yym1661 + if false { + } else { + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1660), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1659) + } // end switch yys1659 + } // end for yyj1659 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1662 = r.CheckBreak() + } + if yyb1662 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MatchExpressions = nil + } else { + yyv1663 := &x.MatchExpressions + yym1664 := z.DecBinary() + _ = yym1664 + if false { + } else { + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1663), d) + } + } + for { + yyj1662++ + if yyhl1662 { + yyb1662 = yyj1662 > l + } else { + yyb1662 = r.CheckBreak() + } + if yyb1662 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1662-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1665 := z.EncBinary() + _ = yym1665 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1666 = 2 + for _, b := range yyq1666 { + if b { + yynn1666++ + } + } + r.EncodeMapStart(yynn1666) + yynn1666 = 0 + } + if yyr1666 || yy2arr1666 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1668 := z.EncBinary() + _ = yym1668 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1669 := z.EncBinary() + _ = yym1669 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1666 || yy2arr1666 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Operator.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operator")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Operator.CodecEncodeSelf(e) + } + if yyr1666 || yy2arr1666 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1666[2] { + if x.Values == nil { + r.EncodeNil() + } else { + yym1672 := z.EncBinary() + _ = yym1672 + if false { + } else { + z.F.EncSliceStringV(x.Values, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1666[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 + if false { + } else { + z.F.EncSliceStringV(x.Values, false, e) + } + } + } + } + if yyr1666 || yy2arr1666 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1674 := z.DecBinary() + _ = yym1674 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1675 := r.ContainerType() + if yyct1675 == codecSelferValueTypeMap1234 { + yyl1675 := r.ReadMapStart() + if yyl1675 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1675, d) + } + } else if yyct1675 == codecSelferValueTypeArray1234 { + yyl1675 := r.ReadArrayStart() + if yyl1675 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1675, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1676Slc = r.DecodeBytes(yys1676Slc, true, true) + yys1676 := string(yys1676Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1676 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "operator": + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = NodeSelectorOperator(r.DecodeString()) + } + case "values": + if r.TryDecodeAsNil() { + x.Values = nil + } else { + yyv1679 := &x.Values + yym1680 := z.DecBinary() + _ = yym1680 + if false { + } else { + z.F.DecSliceStringX(yyv1679, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1676) + } // end switch yys1676 + } // end for yyj1676 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1681 = r.CheckBreak() + } + if yyb1681 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l + } else { + yyb1681 = r.CheckBreak() + } + if yyb1681 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = NodeSelectorOperator(r.DecodeString()) + } + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l + } else { + yyb1681 = r.CheckBreak() + } + if yyb1681 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Values = nil + } else { + yyv1684 := &x.Values + yym1685 := z.DecBinary() + _ = yym1685 + if false { + } else { + z.F.DecSliceStringX(yyv1684, false, d) + } + } + for { + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l + } else { + yyb1681 = r.CheckBreak() + } + if yyb1681 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1681-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1686 := z.EncBinary() + _ = yym1686 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1687 := z.DecBinary() + _ = yym1687 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1688 := z.EncBinary() + _ = yym1688 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1689 = 0 + for _, b := range yyq1689 { + if b { + yynn1689++ + } + } + r.EncodeMapStart(yynn1689) + yynn1689 = 0 + } + if yyr1689 || yy2arr1689 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1689[0] { + if x.NodeAffinity == nil { + r.EncodeNil() + } else { + x.NodeAffinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1689[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.NodeAffinity == nil { + r.EncodeNil() + } else { + x.NodeAffinity.CodecEncodeSelf(e) + } + } + } + if yyr1689 || yy2arr1689 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1689[1] { + if x.PodAffinity == nil { + r.EncodeNil() + } else { + x.PodAffinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1689[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PodAffinity == nil { + r.EncodeNil() + } else { + x.PodAffinity.CodecEncodeSelf(e) + } + } + } + if yyr1689 || yy2arr1689 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1689[2] { + if x.PodAntiAffinity == nil { + r.EncodeNil() + } else { + x.PodAntiAffinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1689[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PodAntiAffinity == nil { + r.EncodeNil() + } else { + x.PodAntiAffinity.CodecEncodeSelf(e) + } + } + } + if yyr1689 || yy2arr1689 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1693 := z.DecBinary() + _ = yym1693 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1694 := r.ContainerType() + if yyct1694 == codecSelferValueTypeMap1234 { + yyl1694 := r.ReadMapStart() + if yyl1694 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1694, d) + } + } else if yyct1694 == codecSelferValueTypeArray1234 { + yyl1694 := r.ReadArrayStart() + if yyl1694 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1694, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1695Slc = r.DecodeBytes(yys1695Slc, true, true) + yys1695 := string(yys1695Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1695 { + case "nodeAffinity": + if r.TryDecodeAsNil() { + if x.NodeAffinity != nil { + x.NodeAffinity = nil + } + } else { + if x.NodeAffinity == nil { + x.NodeAffinity = new(NodeAffinity) + } + x.NodeAffinity.CodecDecodeSelf(d) + } + case "podAffinity": + if r.TryDecodeAsNil() { + if x.PodAffinity != nil { + x.PodAffinity = nil + } + } else { + if x.PodAffinity == nil { + x.PodAffinity = new(PodAffinity) + } + x.PodAffinity.CodecDecodeSelf(d) + } + case "podAntiAffinity": + if r.TryDecodeAsNil() { + if x.PodAntiAffinity != nil { + x.PodAntiAffinity = nil + } + } else { + if x.PodAntiAffinity == nil { + x.PodAntiAffinity = new(PodAntiAffinity) + } + x.PodAntiAffinity.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1695) + } // end switch yys1695 + } // end for yyj1695 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1699 = r.CheckBreak() + } + if yyb1699 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NodeAffinity != nil { + x.NodeAffinity = nil + } + } else { + if x.NodeAffinity == nil { + x.NodeAffinity = new(NodeAffinity) + } + x.NodeAffinity.CodecDecodeSelf(d) + } + yyj1699++ + if yyhl1699 { + yyb1699 = yyj1699 > l + } else { + yyb1699 = r.CheckBreak() + } + if yyb1699 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodAffinity != nil { + x.PodAffinity = nil + } + } else { + if x.PodAffinity == nil { + x.PodAffinity = new(PodAffinity) + } + x.PodAffinity.CodecDecodeSelf(d) + } + yyj1699++ + if yyhl1699 { + yyb1699 = yyj1699 > l + } else { + yyb1699 = r.CheckBreak() + } + if yyb1699 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodAntiAffinity != nil { + x.PodAntiAffinity = nil + } + } else { + if x.PodAntiAffinity == nil { + x.PodAntiAffinity = new(PodAntiAffinity) + } + x.PodAntiAffinity.CodecDecodeSelf(d) + } + for { + yyj1699++ + if yyhl1699 { + yyb1699 = yyj1699 > l + } else { + yyb1699 = r.CheckBreak() + } + if yyb1699 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1699-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1703 := z.EncBinary() + _ = yym1703 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1704 = 0 + for _, b := range yyq1704 { + if b { + yynn1704++ + } + } + r.EncodeMapStart(yynn1704) + yynn1704 = 0 + } + if yyr1704 || yy2arr1704 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1704[0] { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1706 := z.EncBinary() + _ = yym1706 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1704[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 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1704 || yy2arr1704 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1704[1] { + if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1709 := z.EncBinary() + _ = yym1709 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1704[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 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1704 || yy2arr1704 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1711 := z.DecBinary() + _ = yym1711 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1712 := r.ContainerType() + if yyct1712 == codecSelferValueTypeMap1234 { + yyl1712 := r.ReadMapStart() + if yyl1712 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1712, d) + } + } else if yyct1712 == codecSelferValueTypeArray1234 { + yyl1712 := r.ReadArrayStart() + if yyl1712 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1712, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1713Slc = r.DecodeBytes(yys1713Slc, true, true) + yys1713 := string(yys1713Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1713 { + case "requiredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1714 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1715 := z.DecBinary() + _ = yym1715 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1714), d) + } + } + case "preferredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1716 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1717 := z.DecBinary() + _ = yym1717 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1716), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1713) + } // end switch yys1713 + } // end for yyj1713 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1718 = r.CheckBreak() + } + if yyb1718 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1719 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1720 := z.DecBinary() + _ = yym1720 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1719), d) + } + } + yyj1718++ + if yyhl1718 { + yyb1718 = yyj1718 > l + } else { + yyb1718 = r.CheckBreak() + } + if yyb1718 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1721 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1722 := z.DecBinary() + _ = yym1722 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1721), d) + } + } + for { + yyj1718++ + if yyhl1718 { + yyb1718 = yyj1718 > l + } else { + yyb1718 = r.CheckBreak() + } + if yyb1718 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1718-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1723 := z.EncBinary() + _ = yym1723 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1724 = 0 + for _, b := range yyq1724 { + if b { + yynn1724++ + } + } + r.EncodeMapStart(yynn1724) + yynn1724 = 0 + } + if yyr1724 || yy2arr1724 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1724[0] { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1726 := z.EncBinary() + _ = yym1726 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1724[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 + if false { + } else { + h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1724 || yy2arr1724 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1724[1] { + if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1729 := z.EncBinary() + _ = yym1729 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1724[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 + if false { + } else { + h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1724 || yy2arr1724 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1731 := z.DecBinary() + _ = yym1731 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1732 := r.ContainerType() + if yyct1732 == codecSelferValueTypeMap1234 { + yyl1732 := r.ReadMapStart() + if yyl1732 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1732, d) + } + } else if yyct1732 == codecSelferValueTypeArray1234 { + yyl1732 := r.ReadArrayStart() + if yyl1732 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1732, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1733Slc = r.DecodeBytes(yys1733Slc, true, true) + yys1733 := string(yys1733Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1733 { + case "requiredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1734 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1735 := z.DecBinary() + _ = yym1735 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1734), d) + } + } + case "preferredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1736 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1737 := z.DecBinary() + _ = yym1737 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1736), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1733) + } // end switch yys1733 + } // end for yyj1733 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1738 = r.CheckBreak() + } + if yyb1738 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1739 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1740 := z.DecBinary() + _ = yym1740 + if false { + } else { + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1739), d) + } + } + yyj1738++ + if yyhl1738 { + yyb1738 = yyj1738 > l + } else { + yyb1738 = r.CheckBreak() + } + if yyb1738 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1741 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1742 := z.DecBinary() + _ = yym1742 + if false { + } else { + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1741), d) + } + } + for { + yyj1738++ + if yyhl1738 { + yyb1738 = yyj1738 > l + } else { + yyb1738 = r.CheckBreak() + } + if yyb1738 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1738-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1743 := z.EncBinary() + _ = yym1743 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1744 = 2 + for _, b := range yyq1744 { + if b { + yynn1744++ + } + } + r.EncodeMapStart(yynn1744) + yynn1744 = 0 + } + if yyr1744 || yy2arr1744 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1746 := z.EncBinary() + _ = yym1746 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("weight")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1747 := z.EncBinary() + _ = yym1747 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr1744 || yy2arr1744 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1749 := &x.PodAffinityTerm + yy1749.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1750 := &x.PodAffinityTerm + yy1750.CodecEncodeSelf(e) + } + if yyr1744 || yy2arr1744 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1751 := z.DecBinary() + _ = yym1751 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1752 := r.ContainerType() + if yyct1752 == codecSelferValueTypeMap1234 { + yyl1752 := r.ReadMapStart() + if yyl1752 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1752, d) + } + } else if yyct1752 == codecSelferValueTypeArray1234 { + yyl1752 := r.ReadArrayStart() + if yyl1752 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1752, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1753Slc = r.DecodeBytes(yys1753Slc, true, true) + yys1753 := string(yys1753Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1753 { + case "weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int32(r.DecodeInt(32)) + } + case "podAffinityTerm": + if r.TryDecodeAsNil() { + x.PodAffinityTerm = PodAffinityTerm{} + } else { + yyv1755 := &x.PodAffinityTerm + yyv1755.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1753) + } // end switch yys1753 + } // end for yyj1753 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1756 = r.CheckBreak() + } + if yyb1756 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int32(r.DecodeInt(32)) + } + yyj1756++ + if yyhl1756 { + yyb1756 = yyj1756 > l + } else { + yyb1756 = r.CheckBreak() + } + if yyb1756 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodAffinityTerm = PodAffinityTerm{} + } else { + yyv1758 := &x.PodAffinityTerm + yyv1758.CodecDecodeSelf(d) + } + for { + yyj1756++ + if yyhl1756 { + yyb1756 = yyj1756 > l + } else { + yyb1756 = r.CheckBreak() + } + if yyb1756 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1756-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1759 := z.EncBinary() + _ = yym1759 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1760 = 1 + for _, b := range yyq1760 { + if b { + yynn1760++ + } + } + r.EncodeMapStart(yynn1760) + yynn1760 = 0 + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1760[0] { + if x.LabelSelector == nil { + r.EncodeNil() + } else { + yym1762 := z.EncBinary() + _ = yym1762 + if false { + } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { + } else { + z.EncFallback(x.LabelSelector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1760[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { + } else { + z.EncFallback(x.LabelSelector) + } + } + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Namespaces == nil { + r.EncodeNil() + } else { + yym1765 := z.EncBinary() + _ = yym1765 + if false { + } else { + z.F.EncSliceStringV(x.Namespaces, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespaces")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Namespaces == nil { + r.EncodeNil() + } else { + yym1766 := z.EncBinary() + _ = yym1766 + if false { + } else { + z.F.EncSliceStringV(x.Namespaces, false, e) + } + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1760[2] { + yym1768 := z.EncBinary() + _ = yym1768 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1760[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1769 := z.EncBinary() + _ = yym1769 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) + } + } + } + if yyr1760 || yy2arr1760 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1770 := z.DecBinary() + _ = yym1770 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1771 := r.ContainerType() + if yyct1771 == codecSelferValueTypeMap1234 { + yyl1771 := r.ReadMapStart() + if yyl1771 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1771, d) + } + } else if yyct1771 == codecSelferValueTypeArray1234 { + yyl1771 := r.ReadArrayStart() + if yyl1771 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1771, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1772Slc = r.DecodeBytes(yys1772Slc, true, true) + yys1772 := string(yys1772Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1772 { + case "labelSelector": + if r.TryDecodeAsNil() { + if x.LabelSelector != nil { + x.LabelSelector = nil + } + } else { + if x.LabelSelector == nil { + x.LabelSelector = new(pkg2_unversioned.LabelSelector) + } + yym1774 := z.DecBinary() + _ = yym1774 + if false { + } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { + } else { + z.DecFallback(x.LabelSelector, false) + } + } + case "namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + yyv1775 := &x.Namespaces + yym1776 := z.DecBinary() + _ = yym1776 + if false { + } else { + z.F.DecSliceStringX(yyv1775, false, d) + } + } + case "topologyKey": + if r.TryDecodeAsNil() { + x.TopologyKey = "" + } else { + x.TopologyKey = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1772) + } // end switch yys1772 + } // end for yyj1772 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1778 = r.CheckBreak() + } + if yyb1778 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LabelSelector != nil { + x.LabelSelector = nil + } + } else { + if x.LabelSelector == nil { + x.LabelSelector = new(pkg2_unversioned.LabelSelector) + } + yym1780 := z.DecBinary() + _ = yym1780 + if false { + } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { + } else { + z.DecFallback(x.LabelSelector, false) + } + } + yyj1778++ + if yyhl1778 { + yyb1778 = yyj1778 > l + } else { + yyb1778 = r.CheckBreak() + } + if yyb1778 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + yyv1781 := &x.Namespaces + yym1782 := z.DecBinary() + _ = yym1782 + if false { + } else { + z.F.DecSliceStringX(yyv1781, false, d) + } + } + yyj1778++ + if yyhl1778 { + yyb1778 = yyj1778 > l + } else { + yyb1778 = r.CheckBreak() + } + if yyb1778 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TopologyKey = "" + } else { + x.TopologyKey = string(r.DecodeString()) + } + for { + yyj1778++ + if yyhl1778 { + yyb1778 = yyj1778 > l + } else { + yyb1778 = r.CheckBreak() + } + if yyb1778 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1778-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1784 := z.EncBinary() + _ = yym1784 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1785 = 0 + for _, b := range yyq1785 { + if b { + yynn1785++ + } + } + r.EncodeMapStart(yynn1785) + yynn1785 = 0 + } + if yyr1785 || yy2arr1785 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1785[0] { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1785[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) + } + } + } + if yyr1785 || yy2arr1785 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1785[1] { + if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { + r.EncodeNil() + } else { + yym1788 := z.EncBinary() + _ = yym1788 + if false { + } else { + h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1785[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 + if false { + } else { + h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) + } + } + } + } + if yyr1785 || yy2arr1785 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1790 := z.DecBinary() + _ = yym1790 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1791 := r.ContainerType() + if yyct1791 == codecSelferValueTypeMap1234 { + yyl1791 := r.ReadMapStart() + if yyl1791 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1791, d) + } + } else if yyct1791 == codecSelferValueTypeArray1234 { + yyl1791 := r.ReadArrayStart() + if yyl1791 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1791, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1792Slc = r.DecodeBytes(yys1792Slc, true, true) + yys1792 := string(yys1792Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1792 { + case "requiredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + } else { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) + } + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) + } + case "preferredDuringSchedulingIgnoredDuringExecution": + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1794 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1795 := z.DecBinary() + _ = yym1795 + if false { + } else { + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1794), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1792) + } // end switch yys1792 + } // end for yyj1792 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1796 = r.CheckBreak() + } + if yyb1796 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + } else { + if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { + x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) + } + x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) + } + yyj1796++ + if yyhl1796 { + yyb1796 = yyj1796 > l + } else { + yyb1796 = r.CheckBreak() + } + if yyb1796 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferredDuringSchedulingIgnoredDuringExecution = nil + } else { + yyv1798 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1799 := z.DecBinary() + _ = yym1799 + if false { + } else { + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1798), d) + } + } + for { + yyj1796++ + if yyhl1796 { + yyb1796 = yyj1796 > l + } else { + yyb1796 = r.CheckBreak() + } + if yyb1796 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1796-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1800 := z.EncBinary() + _ = yym1800 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1801 = 2 + for _, b := range yyq1801 { + if b { + yynn1801++ + } + } + r.EncodeMapStart(yynn1801) + yynn1801 = 0 + } + if yyr1801 || yy2arr1801 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1803 := z.EncBinary() + _ = yym1803 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("weight")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1804 := z.EncBinary() + _ = yym1804 + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr1801 || yy2arr1801 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1806 := &x.Preference + yy1806.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preference")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1807 := &x.Preference + yy1807.CodecEncodeSelf(e) + } + if yyr1801 || yy2arr1801 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1808 := z.DecBinary() + _ = yym1808 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1809 := r.ContainerType() + if yyct1809 == codecSelferValueTypeMap1234 { + yyl1809 := r.ReadMapStart() + if yyl1809 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1809, d) + } + } else if yyct1809 == codecSelferValueTypeArray1234 { + yyl1809 := r.ReadArrayStart() + if yyl1809 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1809, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1810Slc = r.DecodeBytes(yys1810Slc, true, true) + yys1810 := string(yys1810Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1810 { + case "weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int32(r.DecodeInt(32)) + } + case "preference": + if r.TryDecodeAsNil() { + x.Preference = NodeSelectorTerm{} + } else { + yyv1812 := &x.Preference + yyv1812.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1810) + } // end switch yys1810 + } // end for yyj1810 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1813 = r.CheckBreak() + } + if yyb1813 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = int32(r.DecodeInt(32)) + } + yyj1813++ + if yyhl1813 { + yyb1813 = yyj1813 > l + } else { + yyb1813 = r.CheckBreak() + } + if yyb1813 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Preference = NodeSelectorTerm{} + } else { + yyv1815 := &x.Preference + yyv1815.CodecDecodeSelf(d) + } + for { + yyj1813++ + if yyhl1813 { + yyb1813 = yyj1813 > l + } else { + yyb1813 = r.CheckBreak() + } + if yyb1813 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1813-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1816 := z.EncBinary() + _ = yym1816 + 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 { + r.EncodeArrayStart(3) + } else { + yynn1817 = 2 + for _, b := range yyq1817 { + if b { + yynn1817++ + } + } + r.EncodeMapStart(yynn1817) + yynn1817 = 0 + } + if yyr1817 || yy2arr1817 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1819 := z.EncBinary() + _ = yym1819 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1820 := z.EncBinary() + _ = yym1820 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + if yyr1817 || yy2arr1817 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1817[1] { + yym1822 := z.EncBinary() + _ = yym1822 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1817[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1823 := z.EncBinary() + _ = yym1823 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + } + if yyr1817 || yy2arr1817 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Effect.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("effect")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Effect.CodecEncodeSelf(e) + } + if yyr1817 || yy2arr1817 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1825 := z.DecBinary() + _ = yym1825 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1826 := r.ContainerType() + if yyct1826 == codecSelferValueTypeMap1234 { + yyl1826 := r.ReadMapStart() + if yyl1826 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1826, d) + } + } else if yyct1826 == codecSelferValueTypeArray1234 { + yyl1826 := r.ReadArrayStart() + if yyl1826 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1826, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1827Slc = r.DecodeBytes(yys1827Slc, true, true) + yys1827 := string(yys1827Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1827 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + case "effect": + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1827) + } // end switch yys1827 + } // end for yyj1827 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1831 = r.CheckBreak() + } + if yyb1831 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1831++ + if yyhl1831 { + yyb1831 = yyj1831 > l + } else { + yyb1831 = r.CheckBreak() + } + if yyb1831 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj1831++ + if yyhl1831 { + yyb1831 = yyj1831 > l + } else { + yyb1831 = r.CheckBreak() + } + if yyb1831 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + for { + yyj1831++ + if yyhl1831 { + yyb1831 = yyj1831 > l + } else { + yyb1831 = r.CheckBreak() + } + if yyb1831 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1831-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1835 := z.EncBinary() + _ = yym1835 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1836 := z.DecBinary() + _ = yym1836 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1837 := z.EncBinary() + _ = yym1837 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1838 = 0 + for _, b := range yyq1838 { + if b { + yynn1838++ + } + } + r.EncodeMapStart(yynn1838) + yynn1838 = 0 + } + if yyr1838 || yy2arr1838 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1838[0] { + yym1840 := z.EncBinary() + _ = yym1840 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1838[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("key")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1841 := z.EncBinary() + _ = yym1841 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Key)) + } + } + } + if yyr1838 || yy2arr1838 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1838[1] { + x.Operator.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1838[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operator")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Operator.CodecEncodeSelf(e) + } + } + if yyr1838 || yy2arr1838 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1838[2] { + yym1844 := z.EncBinary() + _ = yym1844 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1838[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1845 := z.EncBinary() + _ = yym1845 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + } + if yyr1838 || yy2arr1838 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1838[3] { + x.Effect.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1838[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("effect")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Effect.CodecEncodeSelf(e) + } + } + if yyr1838 || yy2arr1838 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1847 := z.DecBinary() + _ = yym1847 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1848 := r.ContainerType() + if yyct1848 == codecSelferValueTypeMap1234 { + yyl1848 := r.ReadMapStart() + if yyl1848 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1848, d) + } + } else if yyct1848 == codecSelferValueTypeArray1234 { + yyl1848 := r.ReadArrayStart() + if yyl1848 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1848, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1849Slc = r.DecodeBytes(yys1849Slc, true, true) + yys1849 := string(yys1849Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1849 { + case "key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + case "operator": + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = TolerationOperator(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + case "effect": + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1849) + } // end switch yys1849 + } // end for yyj1849 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1854 = r.CheckBreak() + } + if yyb1854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = string(r.DecodeString()) + } + yyj1854++ + if yyhl1854 { + yyb1854 = yyj1854 > l + } else { + yyb1854 = r.CheckBreak() + } + if yyb1854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Operator = "" + } else { + x.Operator = TolerationOperator(r.DecodeString()) + } + yyj1854++ + if yyhl1854 { + yyb1854 = yyj1854 > l + } else { + yyb1854 = r.CheckBreak() + } + if yyb1854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + yyj1854++ + if yyhl1854 { + yyb1854 = yyj1854 > l + } else { + yyb1854 = r.CheckBreak() + } + if yyb1854 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Effect = "" + } else { + x.Effect = TaintEffect(r.DecodeString()) + } + for { + yyj1854++ + if yyhl1854 { + yyb1854 = yyj1854 > l + } else { + yyb1854 = r.CheckBreak() + } + if yyb1854 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1854-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1859 := z.EncBinary() + _ = yym1859 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1860 := z.DecBinary() + _ = yym1860 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1861 := z.EncBinary() + _ = yym1861 + 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 { + r.EncodeArrayStart(17) + } else { + yynn1862 = 1 + for _, b := range yyq1862 { + if b { + yynn1862++ + } + } + r.EncodeMapStart(yynn1862) + yynn1862 = 0 + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[0] { + if x.Volumes == nil { + r.EncodeNil() + } else { + yym1864 := z.EncBinary() + _ = yym1864 + if false { + } else { + h.encSliceVolume(([]Volume)(x.Volumes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1862[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 + if false { + } else { + h.encSliceVolume(([]Volume)(x.Volumes), e) + } + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Containers == nil { + r.EncodeNil() + } else { + yym1867 := z.EncBinary() + _ = yym1867 + if false { + } else { + h.encSliceContainer(([]Container)(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 { + yym1868 := z.EncBinary() + _ = yym1868 + if false { + } else { + h.encSliceContainer(([]Container)(x.Containers), e) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[2] { + x.RestartPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.RestartPolicy.CodecEncodeSelf(e) + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[3] { + if x.TerminationGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy1871 := *x.TerminationGracePeriodSeconds + yym1872 := z.EncBinary() + _ = yym1872 + if false { + } else { + r.EncodeInt(int64(yy1871)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1862[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 + if false { + } else { + r.EncodeInt(int64(yy1873)) + } + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[4] { + if x.ActiveDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy1876 := *x.ActiveDeadlineSeconds + yym1877 := z.EncBinary() + _ = yym1877 + if false { + } else { + r.EncodeInt(int64(yy1876)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1862[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 + if false { + } else { + r.EncodeInt(int64(yy1878)) + } + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[5] { + x.DNSPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.DNSPolicy.CodecEncodeSelf(e) + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[6] { + if x.NodeSelector == nil { + r.EncodeNil() + } else { + yym1882 := z.EncBinary() + _ = yym1882 + if false { + } else { + z.F.EncMapStringStringV(x.NodeSelector, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1862[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 + if false { + } else { + z.F.EncMapStringStringV(x.NodeSelector, false, e) + } + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[7] { + yym1885 := z.EncBinary() + _ = yym1885 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1886 := z.EncBinary() + _ = yym1886 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[8] { + yym1888 := z.EncBinary() + _ = yym1888 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serviceAccount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1889 := z.EncBinary() + _ = yym1889 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[9] { + yym1891 := z.EncBinary() + _ = yym1891 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1892 := z.EncBinary() + _ = yym1892 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[10] { + yym1894 := z.EncBinary() + _ = yym1894 + if false { + } else { + r.EncodeBool(bool(x.HostNetwork)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1862[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1895 := z.EncBinary() + _ = yym1895 + if false { + } else { + r.EncodeBool(bool(x.HostNetwork)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[11] { + yym1897 := z.EncBinary() + _ = yym1897 + if false { + } else { + r.EncodeBool(bool(x.HostPID)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1862[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1898 := z.EncBinary() + _ = yym1898 + if false { + } else { + r.EncodeBool(bool(x.HostPID)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[12] { + yym1900 := z.EncBinary() + _ = yym1900 + if false { + } else { + r.EncodeBool(bool(x.HostIPC)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq1862[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1901 := z.EncBinary() + _ = yym1901 + if false { + } else { + r.EncodeBool(bool(x.HostIPC)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[13] { + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1862[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("securityContext")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SecurityContext == nil { + r.EncodeNil() + } else { + x.SecurityContext.CodecEncodeSelf(e) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[14] { + if x.ImagePullSecrets == nil { + r.EncodeNil() + } else { + yym1904 := z.EncBinary() + _ = yym1904 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1862[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 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[15] { + yym1907 := z.EncBinary() + _ = yym1907 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostname")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1908 := z.EncBinary() + _ = yym1908 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1862[16] { + yym1910 := z.EncBinary() + _ = yym1910 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1862[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subdomain")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1911 := z.EncBinary() + _ = yym1911 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) + } + } + } + if yyr1862 || yy2arr1862 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1912 := z.DecBinary() + _ = yym1912 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1913 := r.ContainerType() + if yyct1913 == codecSelferValueTypeMap1234 { + yyl1913 := r.ReadMapStart() + if yyl1913 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1913, d) + } + } else if yyct1913 == codecSelferValueTypeArray1234 { + yyl1913 := r.ReadArrayStart() + if yyl1913 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1913, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1914Slc = r.DecodeBytes(yys1914Slc, true, true) + yys1914 := string(yys1914Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1914 { + case "volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + yyv1915 := &x.Volumes + yym1916 := z.DecBinary() + _ = yym1916 + if false { + } else { + h.decSliceVolume((*[]Volume)(yyv1915), d) + } + } + case "containers": + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv1917 := &x.Containers + yym1918 := z.DecBinary() + _ = yym1918 + if false { + } else { + h.decSliceContainer((*[]Container)(yyv1917), d) + } + } + case "restartPolicy": + if r.TryDecodeAsNil() { + x.RestartPolicy = "" + } else { + x.RestartPolicy = RestartPolicy(r.DecodeString()) + } + case "terminationGracePeriodSeconds": + if r.TryDecodeAsNil() { + if x.TerminationGracePeriodSeconds != nil { + x.TerminationGracePeriodSeconds = nil + } + } else { + if x.TerminationGracePeriodSeconds == nil { + x.TerminationGracePeriodSeconds = new(int64) + } + yym1921 := z.DecBinary() + _ = yym1921 + if false { + } else { + *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "activeDeadlineSeconds": + if r.TryDecodeAsNil() { + if x.ActiveDeadlineSeconds != nil { + x.ActiveDeadlineSeconds = nil + } + } else { + if x.ActiveDeadlineSeconds == nil { + x.ActiveDeadlineSeconds = new(int64) + } + yym1923 := z.DecBinary() + _ = yym1923 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + case "dnsPolicy": + if r.TryDecodeAsNil() { + x.DNSPolicy = "" + } else { + x.DNSPolicy = DNSPolicy(r.DecodeString()) + } + case "nodeSelector": + if r.TryDecodeAsNil() { + x.NodeSelector = nil + } else { + yyv1925 := &x.NodeSelector + yym1926 := z.DecBinary() + _ = yym1926 + if false { + } else { + z.F.DecMapStringStringX(yyv1925, false, d) + } + } + case "serviceAccountName": + if r.TryDecodeAsNil() { + x.ServiceAccountName = "" + } else { + x.ServiceAccountName = string(r.DecodeString()) + } + case "serviceAccount": + if r.TryDecodeAsNil() { + x.DeprecatedServiceAccount = "" + } else { + x.DeprecatedServiceAccount = string(r.DecodeString()) + } + case "nodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = string(r.DecodeString()) + } + case "hostNetwork": + if r.TryDecodeAsNil() { + x.HostNetwork = false + } else { + x.HostNetwork = bool(r.DecodeBool()) + } + case "hostPID": + if r.TryDecodeAsNil() { + x.HostPID = false + } else { + x.HostPID = bool(r.DecodeBool()) + } + case "hostIPC": + if r.TryDecodeAsNil() { + x.HostIPC = false + } else { + x.HostIPC = bool(r.DecodeBool()) + } + case "securityContext": + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(PodSecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + case "imagePullSecrets": + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv1934 := &x.ImagePullSecrets + yym1935 := z.DecBinary() + _ = yym1935 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1934), d) + } + } + case "hostname": + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + case "subdomain": + if r.TryDecodeAsNil() { + x.Subdomain = "" + } else { + x.Subdomain = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1914) + } // end switch yys1914 + } // end for yyj1914 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + yyv1939 := &x.Volumes + yym1940 := z.DecBinary() + _ = yym1940 + if false { + } else { + h.decSliceVolume((*[]Volume)(yyv1939), d) + } + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv1941 := &x.Containers + yym1942 := z.DecBinary() + _ = yym1942 + if false { + } else { + h.decSliceContainer((*[]Container)(yyv1941), d) + } + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RestartPolicy = "" + } else { + x.RestartPolicy = RestartPolicy(r.DecodeString()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TerminationGracePeriodSeconds != nil { + x.TerminationGracePeriodSeconds = nil + } + } else { + if x.TerminationGracePeriodSeconds == nil { + x.TerminationGracePeriodSeconds = new(int64) + } + yym1945 := z.DecBinary() + _ = yym1945 + if false { + } else { + *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ActiveDeadlineSeconds != nil { + x.ActiveDeadlineSeconds = nil + } + } else { + if x.ActiveDeadlineSeconds == nil { + x.ActiveDeadlineSeconds = new(int64) + } + yym1947 := z.DecBinary() + _ = yym1947 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DNSPolicy = "" + } else { + x.DNSPolicy = DNSPolicy(r.DecodeString()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeSelector = nil + } else { + yyv1949 := &x.NodeSelector + yym1950 := z.DecBinary() + _ = yym1950 + if false { + } else { + z.F.DecMapStringStringX(yyv1949, false, d) + } + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServiceAccountName = "" + } else { + x.ServiceAccountName = string(r.DecodeString()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DeprecatedServiceAccount = "" + } else { + x.DeprecatedServiceAccount = string(r.DecodeString()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = string(r.DecodeString()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostNetwork = false + } else { + x.HostNetwork = bool(r.DecodeBool()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPID = false + } else { + x.HostPID = bool(r.DecodeBool()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIPC = false + } else { + x.HostIPC = bool(r.DecodeBool()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(PodSecurityContext) + } + x.SecurityContext.CodecDecodeSelf(d) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv1958 := &x.ImagePullSecrets + yym1959 := z.DecBinary() + _ = yym1959 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1958), d) + } + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Subdomain = "" + } else { + x.Subdomain = string(r.DecodeString()) + } + for { + yyj1938++ + if yyhl1938 { + yyb1938 = yyj1938 > l + } else { + yyb1938 = r.CheckBreak() + } + if yyb1938 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1938-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1962 := z.EncBinary() + _ = yym1962 + 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 { + r.EncodeArrayStart(5) + } else { + yynn1963 = 0 + for _, b := range yyq1963 { + if b { + yynn1963++ + } + } + r.EncodeMapStart(yynn1963) + yynn1963 = 0 + } + if yyr1963 || yy2arr1963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1963[0] { + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1963[0] { + 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 yyr1963 || yy2arr1963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1963[1] { + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy1966 := *x.RunAsUser + yym1967 := z.EncBinary() + _ = yym1967 + if false { + } else { + r.EncodeInt(int64(yy1966)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1963[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 + if false { + } else { + r.EncodeInt(int64(yy1968)) + } + } + } + } + if yyr1963 || yy2arr1963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1963[2] { + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy1971 := *x.RunAsNonRoot + yym1972 := z.EncBinary() + _ = yym1972 + if false { + } else { + r.EncodeBool(bool(yy1971)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1963[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 + if false { + } else { + r.EncodeBool(bool(yy1973)) + } + } + } + } + if yyr1963 || yy2arr1963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1963[3] { + if x.SupplementalGroups == nil { + r.EncodeNil() + } else { + yym1976 := z.EncBinary() + _ = yym1976 + if false { + } else { + z.F.EncSliceInt64V(x.SupplementalGroups, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1963[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 + if false { + } else { + z.F.EncSliceInt64V(x.SupplementalGroups, false, e) + } + } + } + } + if yyr1963 || yy2arr1963 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1963[4] { + if x.FSGroup == nil { + r.EncodeNil() + } else { + yy1979 := *x.FSGroup + yym1980 := z.EncBinary() + _ = yym1980 + if false { + } else { + r.EncodeInt(int64(yy1979)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1963[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 + if false { + } else { + r.EncodeInt(int64(yy1981)) + } + } + } + } + if yyr1963 || yy2arr1963 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1983 := z.DecBinary() + _ = yym1983 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1984 := r.ContainerType() + if yyct1984 == codecSelferValueTypeMap1234 { + yyl1984 := r.ReadMapStart() + if yyl1984 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1984, d) + } + } else if yyct1984 == codecSelferValueTypeArray1234 { + yyl1984 := r.ReadArrayStart() + if yyl1984 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1984, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1985Slc = r.DecodeBytes(yys1985Slc, true, true) + yys1985 := string(yys1985Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1985 { + 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) + } + yym1988 := z.DecBinary() + _ = yym1988 + 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) + } + yym1990 := z.DecBinary() + _ = yym1990 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + case "supplementalGroups": + if r.TryDecodeAsNil() { + x.SupplementalGroups = nil + } else { + yyv1991 := &x.SupplementalGroups + yym1992 := z.DecBinary() + _ = yym1992 + if false { + } else { + z.F.DecSliceInt64X(yyv1991, false, d) + } + } + case "fsGroup": + if r.TryDecodeAsNil() { + if x.FSGroup != nil { + x.FSGroup = nil + } + } else { + if x.FSGroup == nil { + x.FSGroup = new(int64) + } + yym1994 := z.DecBinary() + _ = yym1994 + if false { + } else { + *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) + } + } + default: + z.DecStructFieldNotFound(-1, yys1985) + } // end switch yys1985 + } // end for yyj1985 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1995 = r.CheckBreak() + } + if yyb1995 { + 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) + } + yyj1995++ + if yyhl1995 { + yyb1995 = yyj1995 > l + } else { + yyb1995 = r.CheckBreak() + } + if yyb1995 { + 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) + } + yym1998 := z.DecBinary() + _ = yym1998 + if false { + } else { + *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) + } + } + yyj1995++ + if yyhl1995 { + yyb1995 = yyj1995 > l + } else { + yyb1995 = r.CheckBreak() + } + if yyb1995 { + 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) + } + yym2000 := z.DecBinary() + _ = yym2000 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + yyj1995++ + if yyhl1995 { + yyb1995 = yyj1995 > l + } else { + yyb1995 = r.CheckBreak() + } + if yyb1995 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SupplementalGroups = nil + } else { + yyv2001 := &x.SupplementalGroups + yym2002 := z.DecBinary() + _ = yym2002 + if false { + } else { + z.F.DecSliceInt64X(yyv2001, false, d) + } + } + yyj1995++ + if yyhl1995 { + yyb1995 = yyj1995 > l + } else { + yyb1995 = r.CheckBreak() + } + if yyb1995 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FSGroup != nil { + x.FSGroup = nil + } + } else { + if x.FSGroup == nil { + x.FSGroup = new(int64) + } + yym2004 := z.DecBinary() + _ = yym2004 + if false { + } else { + *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) + } + } + for { + yyj1995++ + if yyhl1995 { + yyb1995 = yyj1995 > l + } else { + yyb1995 = r.CheckBreak() + } + if yyb1995 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1995-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2005 := z.EncBinary() + _ = yym2005 + 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 { + r.EncodeArrayStart(8) + } else { + yynn2006 = 0 + for _, b := range yyq2006 { + if b { + yynn2006++ + } + } + r.EncodeMapStart(yynn2006) + yynn2006 = 0 + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2006[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[1] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2009 := z.EncBinary() + _ = yym2009 + if false { + } else { + h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2006[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 + if false { + } else { + h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) + } + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[2] { + yym2012 := z.EncBinary() + _ = yym2012 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2006[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2013 := z.EncBinary() + _ = yym2013 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[3] { + yym2015 := z.EncBinary() + _ = yym2015 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2006[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2016 := z.EncBinary() + _ = yym2016 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[4] { + yym2018 := z.EncBinary() + _ = yym2018 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2006[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2019 := z.EncBinary() + _ = yym2019 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[5] { + yym2021 := z.EncBinary() + _ = yym2021 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2006[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2022 := z.EncBinary() + _ = yym2022 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[6] { + if x.StartTime == nil { + r.EncodeNil() + } else { + yym2024 := z.EncBinary() + _ = yym2024 + if false { + } else if z.HasExtensions() && z.EncExt(x.StartTime) { + } else if yym2024 { + z.EncBinaryMarshal(x.StartTime) + } else if !yym2024 && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartTime) + } else { + z.EncFallback(x.StartTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2006[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.StartTime) { + } else if yym2025 { + z.EncBinaryMarshal(x.StartTime) + } else if !yym2025 && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartTime) + } else { + z.EncFallback(x.StartTime) + } + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2006[7] { + if x.ContainerStatuses == nil { + r.EncodeNil() + } else { + yym2027 := z.EncBinary() + _ = yym2027 + if false { + } else { + h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2006[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 + if false { + } else { + h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) + } + } + } + } + if yyr2006 || yy2arr2006 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2029 := z.DecBinary() + _ = yym2029 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2030 := r.ContainerType() + if yyct2030 == codecSelferValueTypeMap1234 { + yyl2030 := r.ReadMapStart() + if yyl2030 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2030, d) + } + } else if yyct2030 == codecSelferValueTypeArray1234 { + yyl2030 := r.ReadArrayStart() + if yyl2030 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2030, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2031Slc = r.DecodeBytes(yys2031Slc, true, true) + yys2031 := string(yys2031Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2031 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PodPhase(r.DecodeString()) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2033 := &x.Conditions + yym2034 := z.DecBinary() + _ = yym2034 + if false { + } else { + h.decSlicePodCondition((*[]PodCondition)(yyv2033), d) + } + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + case "hostIP": + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + case "podIP": + if r.TryDecodeAsNil() { + x.PodIP = "" + } else { + x.PodIP = string(r.DecodeString()) + } + case "startTime": + if r.TryDecodeAsNil() { + if x.StartTime != nil { + x.StartTime = nil + } + } else { + if x.StartTime == nil { + x.StartTime = new(pkg2_unversioned.Time) + } + yym2040 := z.DecBinary() + _ = yym2040 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym2040 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym2040 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + case "containerStatuses": + if r.TryDecodeAsNil() { + x.ContainerStatuses = nil + } else { + yyv2041 := &x.ContainerStatuses + yym2042 := z.DecBinary() + _ = yym2042 + if false { + } else { + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2041), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2031) + } // end switch yys2031 + } // end for yyj2031 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = PodPhase(r.DecodeString()) + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2045 := &x.Conditions + yym2046 := z.DecBinary() + _ = yym2046 + if false { + } else { + h.decSlicePodCondition((*[]PodCondition)(yyv2045), d) + } + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodIP = "" + } else { + x.PodIP = string(r.DecodeString()) + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.StartTime != nil { + x.StartTime = nil + } + } else { + if x.StartTime == nil { + x.StartTime = new(pkg2_unversioned.Time) + } + yym2052 := z.DecBinary() + _ = yym2052 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym2052 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym2052 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerStatuses = nil + } else { + yyv2053 := &x.ContainerStatuses + yym2054 := z.DecBinary() + _ = yym2054 + if false { + } else { + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2053), d) + } + } + for { + yyj2043++ + if yyhl2043 { + yyb2043 = yyj2043 > l + } else { + yyb2043 = r.CheckBreak() + } + if yyb2043 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2043-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2055 := z.EncBinary() + _ = yym2055 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2056 = 0 + for _, b := range yyq2056 { + if b { + yynn2056++ + } + } + r.EncodeMapStart(yynn2056) + yynn2056 = 0 + } + if yyr2056 || yy2arr2056 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2056[0] { + yym2058 := z.EncBinary() + _ = yym2058 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2056[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2059 := z.EncBinary() + _ = yym2059 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2056 || yy2arr2056 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2056[1] { + yym2061 := z.EncBinary() + _ = yym2061 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2056[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2062 := z.EncBinary() + _ = yym2062 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2056 || yy2arr2056 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2056[2] { + yy2064 := &x.ObjectMeta + yy2064.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2056[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2065 := &x.ObjectMeta + yy2065.CodecEncodeSelf(e) + } + } + if yyr2056 || yy2arr2056 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2056[3] { + yy2067 := &x.Status + yy2067.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2056[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2068 := &x.Status + yy2068.CodecEncodeSelf(e) + } + } + if yyr2056 || yy2arr2056 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2069 := z.DecBinary() + _ = yym2069 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2070 := r.ContainerType() + if yyct2070 == codecSelferValueTypeMap1234 { + yyl2070 := r.ReadMapStart() + if yyl2070 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2070, d) + } + } else if yyct2070 == codecSelferValueTypeArray1234 { + yyl2070 := r.ReadArrayStart() + if yyl2070 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2070, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2071Slc = r.DecodeBytes(yys2071Slc, true, true) + yys2071 := string(yys2071Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2071 { + 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 { + yyv2074 := &x.ObjectMeta + yyv2074.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2075 := &x.Status + yyv2075.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2071) + } // end switch yys2071 + } // end for yyj2071 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2076 = r.CheckBreak() + } + if yyb2076 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2076++ + if yyhl2076 { + yyb2076 = yyj2076 > l + } else { + yyb2076 = r.CheckBreak() + } + if yyb2076 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2076++ + if yyhl2076 { + yyb2076 = yyj2076 > l + } else { + yyb2076 = r.CheckBreak() + } + if yyb2076 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2079 := &x.ObjectMeta + yyv2079.CodecDecodeSelf(d) + } + yyj2076++ + if yyhl2076 { + yyb2076 = yyj2076 > l + } else { + yyb2076 = r.CheckBreak() + } + if yyb2076 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2080 := &x.Status + yyv2080.CodecDecodeSelf(d) + } + for { + yyj2076++ + if yyhl2076 { + yyb2076 = yyj2076 > l + } else { + yyb2076 = r.CheckBreak() + } + if yyb2076 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2076-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2081 := z.EncBinary() + _ = yym2081 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2082 = 0 + for _, b := range yyq2082 { + if b { + yynn2082++ + } + } + r.EncodeMapStart(yynn2082) + yynn2082 = 0 + } + if yyr2082 || yy2arr2082 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2082[0] { + yym2084 := z.EncBinary() + _ = yym2084 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2082[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2085 := z.EncBinary() + _ = yym2085 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2082 || yy2arr2082 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2082[1] { + yym2087 := z.EncBinary() + _ = yym2087 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2082[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2088 := z.EncBinary() + _ = yym2088 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2082 || yy2arr2082 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2082[2] { + yy2090 := &x.ObjectMeta + yy2090.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2082[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2091 := &x.ObjectMeta + yy2091.CodecEncodeSelf(e) + } + } + if yyr2082 || yy2arr2082 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2082[3] { + yy2093 := &x.Spec + yy2093.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2082[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2094 := &x.Spec + yy2094.CodecEncodeSelf(e) + } + } + if yyr2082 || yy2arr2082 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2082[4] { + yy2096 := &x.Status + yy2096.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2082[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2097 := &x.Status + yy2097.CodecEncodeSelf(e) + } + } + if yyr2082 || yy2arr2082 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2098 := z.DecBinary() + _ = yym2098 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2099 := r.ContainerType() + if yyct2099 == codecSelferValueTypeMap1234 { + yyl2099 := r.ReadMapStart() + if yyl2099 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2099, d) + } + } else if yyct2099 == codecSelferValueTypeArray1234 { + yyl2099 := r.ReadArrayStart() + if yyl2099 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2099, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2100Slc = r.DecodeBytes(yys2100Slc, true, true) + yys2100 := string(yys2100Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2100 { + 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 { + yyv2103 := &x.ObjectMeta + yyv2103.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2104 := &x.Spec + yyv2104.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2105 := &x.Status + yyv2105.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2100) + } // end switch yys2100 + } // end for yyj2100 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2106 = r.CheckBreak() + } + if yyb2106 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2106++ + if yyhl2106 { + yyb2106 = yyj2106 > l + } else { + yyb2106 = r.CheckBreak() + } + if yyb2106 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2106++ + if yyhl2106 { + yyb2106 = yyj2106 > l + } else { + yyb2106 = r.CheckBreak() + } + if yyb2106 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2109 := &x.ObjectMeta + yyv2109.CodecDecodeSelf(d) + } + yyj2106++ + if yyhl2106 { + yyb2106 = yyj2106 > l + } else { + yyb2106 = r.CheckBreak() + } + if yyb2106 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2110 := &x.Spec + yyv2110.CodecDecodeSelf(d) + } + yyj2106++ + if yyhl2106 { + yyb2106 = yyj2106 > l + } else { + yyb2106 = r.CheckBreak() + } + if yyb2106 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2111 := &x.Status + yyv2111.CodecDecodeSelf(d) + } + for { + yyj2106++ + if yyhl2106 { + yyb2106 = yyj2106 > l + } else { + yyb2106 = r.CheckBreak() + } + if yyb2106 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2106-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2112 := z.EncBinary() + _ = yym2112 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2113 = 1 + for _, b := range yyq2113 { + if b { + yynn2113++ + } + } + r.EncodeMapStart(yynn2113) + yynn2113 = 0 + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[0] { + yym2115 := z.EncBinary() + _ = yym2115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2113[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2116 := z.EncBinary() + _ = yym2116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[1] { + yym2118 := z.EncBinary() + _ = yym2118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2119 := z.EncBinary() + _ = yym2119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2113[2] { + yy2121 := &x.ListMeta + yym2122 := z.EncBinary() + _ = yym2122 + if false { + } else if z.HasExtensions() && z.EncExt(yy2121) { + } else { + z.EncFallback(yy2121) + } + } else { + r.EncodeNil() + } + } else { + if yyq2113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2123 := &x.ListMeta + yym2124 := z.EncBinary() + _ = yym2124 + if false { + } else if z.HasExtensions() && z.EncExt(yy2123) { + } else { + z.EncFallback(yy2123) + } + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2126 := z.EncBinary() + _ = yym2126 + if false { + } else { + h.encSlicePod(([]Pod)(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 { + yym2127 := z.EncBinary() + _ = yym2127 + if false { + } else { + h.encSlicePod(([]Pod)(x.Items), e) + } + } + } + if yyr2113 || yy2arr2113 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2128 := z.DecBinary() + _ = yym2128 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2129 := r.ContainerType() + if yyct2129 == codecSelferValueTypeMap1234 { + yyl2129 := r.ReadMapStart() + if yyl2129 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2129, d) + } + } else if yyct2129 == codecSelferValueTypeArray1234 { + yyl2129 := r.ReadArrayStart() + if yyl2129 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2129, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2130Slc = r.DecodeBytes(yys2130Slc, true, true) + yys2130 := string(yys2130Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2130 { + 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 { + yyv2133 := &x.ListMeta + yym2134 := z.DecBinary() + _ = yym2134 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2133) { + } else { + z.DecFallback(yyv2133, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2135 := &x.Items + yym2136 := z.DecBinary() + _ = yym2136 + if false { + } else { + h.decSlicePod((*[]Pod)(yyv2135), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2130) + } // end switch yys2130 + } // end for yyj2130 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2137 = r.CheckBreak() + } + if yyb2137 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2137++ + if yyhl2137 { + yyb2137 = yyj2137 > l + } else { + yyb2137 = r.CheckBreak() + } + if yyb2137 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2137++ + if yyhl2137 { + yyb2137 = yyj2137 > l + } else { + yyb2137 = r.CheckBreak() + } + if yyb2137 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2140 := &x.ListMeta + yym2141 := z.DecBinary() + _ = yym2141 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2140) { + } else { + z.DecFallback(yyv2140, false) + } + } + yyj2137++ + if yyhl2137 { + yyb2137 = yyj2137 > l + } else { + yyb2137 = r.CheckBreak() + } + if yyb2137 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2142 := &x.Items + yym2143 := z.DecBinary() + _ = yym2143 + if false { + } else { + h.decSlicePod((*[]Pod)(yyv2142), d) + } + } + for { + yyj2137++ + if yyhl2137 { + yyb2137 = yyj2137 > l + } else { + yyb2137 = r.CheckBreak() + } + if yyb2137 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2137-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2144 := z.EncBinary() + _ = yym2144 + 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 { + r.EncodeArrayStart(2) + } else { + yynn2145 = 0 + for _, b := range yyq2145 { + if b { + yynn2145++ + } + } + r.EncodeMapStart(yynn2145) + yynn2145 = 0 + } + if yyr2145 || yy2arr2145 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2145[0] { + yy2147 := &x.ObjectMeta + yy2147.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2145[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2148 := &x.ObjectMeta + yy2148.CodecEncodeSelf(e) + } + } + if yyr2145 || yy2arr2145 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2145[1] { + yy2150 := &x.Spec + yy2150.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2145[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2151 := &x.Spec + yy2151.CodecEncodeSelf(e) + } + } + if yyr2145 || yy2arr2145 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2152 := z.DecBinary() + _ = yym2152 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2153 := r.ContainerType() + if yyct2153 == codecSelferValueTypeMap1234 { + yyl2153 := r.ReadMapStart() + if yyl2153 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2153, d) + } + } else if yyct2153 == codecSelferValueTypeArray1234 { + yyl2153 := r.ReadArrayStart() + if yyl2153 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2153, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2154Slc = r.DecodeBytes(yys2154Slc, true, true) + yys2154 := string(yys2154Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2154 { + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2155 := &x.ObjectMeta + yyv2155.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2156 := &x.Spec + yyv2156.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2154) + } // end switch yys2154 + } // end for yyj2154 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2157 = r.CheckBreak() + } + if yyb2157 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2158 := &x.ObjectMeta + yyv2158.CodecDecodeSelf(d) + } + yyj2157++ + if yyhl2157 { + yyb2157 = yyj2157 > l + } else { + yyb2157 = r.CheckBreak() + } + if yyb2157 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PodSpec{} + } else { + yyv2159 := &x.Spec + yyv2159.CodecDecodeSelf(d) + } + for { + yyj2157++ + if yyhl2157 { + yyb2157 = yyj2157 > l + } else { + yyb2157 = r.CheckBreak() + } + if yyb2157 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2157-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2160 := z.EncBinary() + _ = yym2160 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2161 = 0 + for _, b := range yyq2161 { + if b { + yynn2161++ + } + } + r.EncodeMapStart(yynn2161) + yynn2161 = 0 + } + if yyr2161 || yy2arr2161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2161[0] { + yym2163 := z.EncBinary() + _ = yym2163 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2161[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2164 := z.EncBinary() + _ = yym2164 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2161 || yy2arr2161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2161[1] { + yym2166 := z.EncBinary() + _ = yym2166 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2161[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2167 := z.EncBinary() + _ = yym2167 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2161 || yy2arr2161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2161[2] { + yy2169 := &x.ObjectMeta + yy2169.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2161[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2170 := &x.ObjectMeta + yy2170.CodecEncodeSelf(e) + } + } + if yyr2161 || yy2arr2161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2161[3] { + yy2172 := &x.Template + yy2172.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2161[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2173 := &x.Template + yy2173.CodecEncodeSelf(e) + } + } + if yyr2161 || yy2arr2161 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2174 := z.DecBinary() + _ = yym2174 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2175 := r.ContainerType() + if yyct2175 == codecSelferValueTypeMap1234 { + yyl2175 := r.ReadMapStart() + if yyl2175 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2175, d) + } + } else if yyct2175 == codecSelferValueTypeArray1234 { + yyl2175 := r.ReadArrayStart() + if yyl2175 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2175, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2176Slc = r.DecodeBytes(yys2176Slc, true, true) + yys2176 := string(yys2176Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2176 { + 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 { + yyv2179 := &x.ObjectMeta + yyv2179.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = PodTemplateSpec{} + } else { + yyv2180 := &x.Template + yyv2180.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2176) + } // end switch yys2176 + } // end for yyj2176 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2181 = r.CheckBreak() + } + if yyb2181 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2181++ + if yyhl2181 { + yyb2181 = yyj2181 > l + } else { + yyb2181 = r.CheckBreak() + } + if yyb2181 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2181++ + if yyhl2181 { + yyb2181 = yyj2181 > l + } else { + yyb2181 = r.CheckBreak() + } + if yyb2181 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2184 := &x.ObjectMeta + yyv2184.CodecDecodeSelf(d) + } + yyj2181++ + if yyhl2181 { + yyb2181 = yyj2181 > l + } else { + yyb2181 = r.CheckBreak() + } + if yyb2181 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = PodTemplateSpec{} + } else { + yyv2185 := &x.Template + yyv2185.CodecDecodeSelf(d) + } + for { + yyj2181++ + if yyhl2181 { + yyb2181 = yyj2181 > l + } else { + yyb2181 = r.CheckBreak() + } + if yyb2181 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2181-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2186 := z.EncBinary() + _ = yym2186 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2187 = 1 + for _, b := range yyq2187 { + if b { + yynn2187++ + } + } + r.EncodeMapStart(yynn2187) + yynn2187 = 0 + } + if yyr2187 || yy2arr2187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2187[0] { + yym2189 := z.EncBinary() + _ = yym2189 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2187[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2190 := z.EncBinary() + _ = yym2190 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2187 || yy2arr2187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2187[1] { + yym2192 := z.EncBinary() + _ = yym2192 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2187[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2193 := z.EncBinary() + _ = yym2193 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2187 || yy2arr2187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2187[2] { + yy2195 := &x.ListMeta + yym2196 := z.EncBinary() + _ = yym2196 + if false { + } else if z.HasExtensions() && z.EncExt(yy2195) { + } else { + z.EncFallback(yy2195) + } + } else { + r.EncodeNil() + } + } else { + if yyq2187[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2197 := &x.ListMeta + yym2198 := z.EncBinary() + _ = yym2198 + if false { + } else if z.HasExtensions() && z.EncExt(yy2197) { + } else { + z.EncFallback(yy2197) + } + } + } + if yyr2187 || yy2arr2187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2200 := z.EncBinary() + _ = yym2200 + if false { + } else { + h.encSlicePodTemplate(([]PodTemplate)(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 { + yym2201 := z.EncBinary() + _ = yym2201 + if false { + } else { + h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) + } + } + } + if yyr2187 || yy2arr2187 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2202 := z.DecBinary() + _ = yym2202 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2203 := r.ContainerType() + if yyct2203 == codecSelferValueTypeMap1234 { + yyl2203 := r.ReadMapStart() + if yyl2203 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2203, d) + } + } else if yyct2203 == codecSelferValueTypeArray1234 { + yyl2203 := r.ReadArrayStart() + if yyl2203 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2203, 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 yys2204Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2204Slc + var yyhl2204 bool = l >= 0 + for yyj2204 := 0; ; yyj2204++ { + if yyhl2204 { + if yyj2204 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2204Slc = r.DecodeBytes(yys2204Slc, true, true) + yys2204 := string(yys2204Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2204 { + 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 { + yyv2207 := &x.ListMeta + yym2208 := z.DecBinary() + _ = yym2208 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2207) { + } else { + z.DecFallback(yyv2207, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2209 := &x.Items + yym2210 := z.DecBinary() + _ = yym2210 + if false { + } else { + h.decSlicePodTemplate((*[]PodTemplate)(yyv2209), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2204) + } // end switch yys2204 + } // end for yyj2204 + 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 yyj2211 int + var yyb2211 bool + var yyhl2211 bool = l >= 0 + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l + } else { + yyb2211 = r.CheckBreak() + } + if yyb2211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l + } else { + yyb2211 = r.CheckBreak() + } + if yyb2211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l + } else { + yyb2211 = r.CheckBreak() + } + if yyb2211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2214 := &x.ListMeta + yym2215 := z.DecBinary() + _ = yym2215 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2214) { + } else { + z.DecFallback(yyv2214, false) + } + } + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l + } else { + yyb2211 = r.CheckBreak() + } + if yyb2211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2216 := &x.Items + yym2217 := z.DecBinary() + _ = yym2217 + if false { + } else { + h.decSlicePodTemplate((*[]PodTemplate)(yyv2216), d) + } + } + for { + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l + } else { + yyb2211 = r.CheckBreak() + } + if yyb2211 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2211-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 { + yym2218 := z.EncBinary() + _ = yym2218 + 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 { + r.EncodeArrayStart(3) + } else { + yynn2219 = 0 + for _, b := range yyq2219 { + if b { + yynn2219++ + } + } + r.EncodeMapStart(yynn2219) + yynn2219 = 0 + } + if yyr2219 || yy2arr2219 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2219[0] { + if x.Replicas == nil { + r.EncodeNil() + } else { + yy2221 := *x.Replicas + yym2222 := z.EncBinary() + _ = yym2222 + if false { + } else { + r.EncodeInt(int64(yy2221)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2219[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 + if false { + } else { + r.EncodeInt(int64(yy2223)) + } + } + } + } + if yyr2219 || yy2arr2219 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2219[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym2226 := z.EncBinary() + _ = yym2226 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2219[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 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } + } + if yyr2219 || yy2arr2219 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2219[2] { + if x.Template == nil { + r.EncodeNil() + } else { + x.Template.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2219[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 yyr2219 || yy2arr2219 { + 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 + yym2229 := z.DecBinary() + _ = yym2229 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2230 := r.ContainerType() + if yyct2230 == codecSelferValueTypeMap1234 { + yyl2230 := r.ReadMapStart() + if yyl2230 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2230, d) + } + } else if yyct2230 == codecSelferValueTypeArray1234 { + yyl2230 := r.ReadArrayStart() + if yyl2230 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2230, 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 yys2231Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2231Slc + var yyhl2231 bool = l >= 0 + for yyj2231 := 0; ; yyj2231++ { + if yyhl2231 { + if yyj2231 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2231Slc = r.DecodeBytes(yys2231Slc, true, true) + yys2231 := string(yys2231Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2231 { + case "replicas": + if r.TryDecodeAsNil() { + if x.Replicas != nil { + x.Replicas = nil + } + } else { + if x.Replicas == nil { + x.Replicas = new(int32) + } + yym2233 := z.DecBinary() + _ = yym2233 + if false { + } else { + *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) + } + } + case "selector": + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2234 := &x.Selector + yym2235 := z.DecBinary() + _ = yym2235 + if false { + } else { + z.F.DecMapStringStringX(yyv2234, 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, yys2231) + } // end switch yys2231 + } // end for yyj2231 + 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 yyj2237 int + var yyb2237 bool + var yyhl2237 bool = l >= 0 + yyj2237++ + if yyhl2237 { + yyb2237 = yyj2237 > l + } else { + yyb2237 = r.CheckBreak() + } + if yyb2237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Replicas != nil { + x.Replicas = nil + } + } else { + if x.Replicas == nil { + x.Replicas = new(int32) + } + yym2239 := z.DecBinary() + _ = yym2239 + if false { + } else { + *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) + } + } + yyj2237++ + if yyhl2237 { + yyb2237 = yyj2237 > l + } else { + yyb2237 = r.CheckBreak() + } + if yyb2237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2240 := &x.Selector + yym2241 := z.DecBinary() + _ = yym2241 + if false { + } else { + z.F.DecMapStringStringX(yyv2240, false, d) + } + } + yyj2237++ + if yyhl2237 { + yyb2237 = yyj2237 > l + } else { + yyb2237 = r.CheckBreak() + } + if yyb2237 { + 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 { + yyj2237++ + if yyhl2237 { + yyb2237 = yyj2237 > l + } else { + yyb2237 = r.CheckBreak() + } + if yyb2237 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2237-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 { + 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[1] = x.FullyLabeledReplicas != 0 + yyq2244[2] = x.ObservedGeneration != 0 + var yynn2244 int + if yyr2244 || yy2arr2244 { + r.EncodeArrayStart(3) + } else { + yynn2244 = 1 + 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 yyq2244[1] { + yym2249 := z.EncBinary() + _ = yym2249 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2244[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2250 := z.EncBinary() + _ = yym2250 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } + } + if yyr2244 || yy2arr2244 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2244[2] { + yym2252 := z.EncBinary() + _ = yym2252 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2244[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2253 := z.EncBinary() + _ = yym2253 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } + } + if yyr2244 || yy2arr2244 { + 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 + yym2254 := z.DecBinary() + _ = yym2254 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2255 := r.ContainerType() + if yyct2255 == codecSelferValueTypeMap1234 { + yyl2255 := r.ReadMapStart() + if yyl2255 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2255, d) + } + } else if yyct2255 == codecSelferValueTypeArray1234 { + yyl2255 := r.ReadArrayStart() + if yyl2255 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2255, 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 yys2256Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2256Slc + var yyhl2256 bool = l >= 0 + for yyj2256 := 0; ; yyj2256++ { + if yyhl2256 { + if yyj2256 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2256Slc = r.DecodeBytes(yys2256Slc, true, true) + yys2256 := string(yys2256Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2256 { + 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, yys2256) + } // end switch yys2256 + } // end for yyj2256 + 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 yyj2260 int + var yyb2260 bool + var yyhl2260 bool = l >= 0 + yyj2260++ + if yyhl2260 { + yyb2260 = yyj2260 > l + } else { + yyb2260 = r.CheckBreak() + } + if yyb2260 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj2260++ + if yyhl2260 { + yyb2260 = yyj2260 > l + } else { + yyb2260 = r.CheckBreak() + } + if yyb2260 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FullyLabeledReplicas = 0 + } else { + x.FullyLabeledReplicas = int32(r.DecodeInt(32)) + } + yyj2260++ + if yyhl2260 { + yyb2260 = yyj2260 > l + } else { + yyb2260 = r.CheckBreak() + } + if yyb2260 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObservedGeneration = 0 + } else { + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + for { + yyj2260++ + if yyhl2260 { + yyb2260 = yyj2260 > l + } else { + yyb2260 = r.CheckBreak() + } + if yyb2260 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2260-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 { + yym2264 := z.EncBinary() + _ = yym2264 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2265 = 0 + for _, b := range yyq2265 { + if b { + yynn2265++ + } + } + r.EncodeMapStart(yynn2265) + yynn2265 = 0 + } + if yyr2265 || yy2arr2265 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2265[0] { + yym2267 := z.EncBinary() + _ = yym2267 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2265[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2268 := z.EncBinary() + _ = yym2268 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2265 || yy2arr2265 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2265[1] { + yym2270 := z.EncBinary() + _ = yym2270 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2265[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2271 := z.EncBinary() + _ = yym2271 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2265 || yy2arr2265 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2265[2] { + yy2273 := &x.ObjectMeta + yy2273.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2265[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2274 := &x.ObjectMeta + yy2274.CodecEncodeSelf(e) + } + } + if yyr2265 || yy2arr2265 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2265[3] { + yy2276 := &x.Spec + yy2276.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2265[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2277 := &x.Spec + yy2277.CodecEncodeSelf(e) + } + } + if yyr2265 || yy2arr2265 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2265[4] { + yy2279 := &x.Status + yy2279.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2265[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2280 := &x.Status + yy2280.CodecEncodeSelf(e) + } + } + if yyr2265 || yy2arr2265 { + 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 + yym2281 := z.DecBinary() + _ = yym2281 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2282 := r.ContainerType() + if yyct2282 == codecSelferValueTypeMap1234 { + yyl2282 := r.ReadMapStart() + if yyl2282 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2282, d) + } + } else if yyct2282 == codecSelferValueTypeArray1234 { + yyl2282 := r.ReadArrayStart() + if yyl2282 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2282, 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 yys2283Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2283Slc + var yyhl2283 bool = l >= 0 + for yyj2283 := 0; ; yyj2283++ { + if yyhl2283 { + if yyj2283 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2283Slc = r.DecodeBytes(yys2283Slc, true, true) + yys2283 := string(yys2283Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2283 { + 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 { + yyv2286 := &x.ObjectMeta + yyv2286.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2287 := &x.Spec + yyv2287.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2288 := &x.Status + yyv2288.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2283) + } // end switch yys2283 + } // end for yyj2283 + 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 yyj2289 int + var yyb2289 bool + var yyhl2289 bool = l >= 0 + yyj2289++ + if yyhl2289 { + yyb2289 = yyj2289 > l + } else { + yyb2289 = r.CheckBreak() + } + if yyb2289 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2289++ + if yyhl2289 { + yyb2289 = yyj2289 > l + } else { + yyb2289 = r.CheckBreak() + } + if yyb2289 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2289++ + if yyhl2289 { + yyb2289 = yyj2289 > l + } else { + yyb2289 = r.CheckBreak() + } + if yyb2289 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2292 := &x.ObjectMeta + yyv2292.CodecDecodeSelf(d) + } + yyj2289++ + if yyhl2289 { + yyb2289 = yyj2289 > l + } else { + yyb2289 = r.CheckBreak() + } + if yyb2289 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2293 := &x.Spec + yyv2293.CodecDecodeSelf(d) + } + yyj2289++ + if yyhl2289 { + yyb2289 = yyj2289 > l + } else { + yyb2289 = r.CheckBreak() + } + if yyb2289 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2294 := &x.Status + yyv2294.CodecDecodeSelf(d) + } + for { + yyj2289++ + if yyhl2289 { + yyb2289 = yyj2289 > l + } else { + yyb2289 = r.CheckBreak() + } + if yyb2289 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2289-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 { + yym2295 := z.EncBinary() + _ = yym2295 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2296 = 1 + for _, b := range yyq2296 { + if b { + yynn2296++ + } + } + r.EncodeMapStart(yynn2296) + yynn2296 = 0 + } + if yyr2296 || yy2arr2296 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2296[0] { + yym2298 := z.EncBinary() + _ = yym2298 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2296[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2299 := z.EncBinary() + _ = yym2299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2296 || yy2arr2296 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2296[1] { + yym2301 := z.EncBinary() + _ = yym2301 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2296[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2302 := z.EncBinary() + _ = yym2302 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2296 || yy2arr2296 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2296[2] { + yy2304 := &x.ListMeta + yym2305 := z.EncBinary() + _ = yym2305 + if false { + } else if z.HasExtensions() && z.EncExt(yy2304) { + } else { + z.EncFallback(yy2304) + } + } else { + r.EncodeNil() + } + } else { + if yyq2296[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2306 := &x.ListMeta + yym2307 := z.EncBinary() + _ = yym2307 + if false { + } else if z.HasExtensions() && z.EncExt(yy2306) { + } else { + z.EncFallback(yy2306) + } + } + } + if yyr2296 || yy2arr2296 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2309 := z.EncBinary() + _ = yym2309 + 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 { + yym2310 := z.EncBinary() + _ = yym2310 + if false { + } else { + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + } + } + } + if yyr2296 || yy2arr2296 { + 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 + yym2311 := z.DecBinary() + _ = yym2311 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2312 := r.ContainerType() + if yyct2312 == codecSelferValueTypeMap1234 { + yyl2312 := r.ReadMapStart() + if yyl2312 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2312, d) + } + } else if yyct2312 == codecSelferValueTypeArray1234 { + yyl2312 := r.ReadArrayStart() + if yyl2312 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2312, 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 yys2313Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2313Slc + var yyhl2313 bool = l >= 0 + for yyj2313 := 0; ; yyj2313++ { + if yyhl2313 { + if yyj2313 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2313Slc = r.DecodeBytes(yys2313Slc, true, true) + yys2313 := string(yys2313Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2313 { + 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 { + yyv2316 := &x.ListMeta + yym2317 := z.DecBinary() + _ = yym2317 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2316) { + } else { + z.DecFallback(yyv2316, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2318 := &x.Items + yym2319 := z.DecBinary() + _ = yym2319 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2318), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2313) + } // end switch yys2313 + } // end for yyj2313 + 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 yyj2320 int + var yyb2320 bool + var yyhl2320 bool = l >= 0 + yyj2320++ + if yyhl2320 { + yyb2320 = yyj2320 > l + } else { + yyb2320 = r.CheckBreak() + } + if yyb2320 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2320++ + if yyhl2320 { + yyb2320 = yyj2320 > l + } else { + yyb2320 = r.CheckBreak() + } + if yyb2320 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2320++ + if yyhl2320 { + yyb2320 = yyj2320 > l + } else { + yyb2320 = r.CheckBreak() + } + if yyb2320 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2323 := &x.ListMeta + yym2324 := z.DecBinary() + _ = yym2324 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2323) { + } else { + z.DecFallback(yyv2323, false) + } + } + yyj2320++ + if yyhl2320 { + yyb2320 = yyj2320 > l + } else { + yyb2320 = r.CheckBreak() + } + if yyb2320 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2325 := &x.Items + yym2326 := z.DecBinary() + _ = yym2326 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2325), d) + } + } + for { + yyj2320++ + if yyhl2320 { + yyb2320 = yyj2320 > l + } else { + yyb2320 = r.CheckBreak() + } + if yyb2320 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2320-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2327 := z.EncBinary() + _ = yym2327 + 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 + yym2328 := z.DecBinary() + _ = yym2328 + 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 + yym2329 := z.EncBinary() + _ = yym2329 + 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 + yym2330 := z.DecBinary() + _ = yym2330 + 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 { + yym2331 := z.EncBinary() + _ = yym2331 + 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 { + r.EncodeArrayStart(1) + } else { + yynn2332 = 0 + for _, b := range yyq2332 { + if b { + yynn2332++ + } + } + r.EncodeMapStart(yynn2332) + yynn2332 = 0 + } + if yyr2332 || yy2arr2332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2332[0] { + yy2334 := &x.LoadBalancer + yy2334.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2332[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2335 := &x.LoadBalancer + yy2335.CodecEncodeSelf(e) + } + } + if yyr2332 || yy2arr2332 { + 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 + yym2336 := z.DecBinary() + _ = yym2336 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2337 := r.ContainerType() + if yyct2337 == codecSelferValueTypeMap1234 { + yyl2337 := r.ReadMapStart() + if yyl2337 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2337, d) + } + } else if yyct2337 == codecSelferValueTypeArray1234 { + yyl2337 := r.ReadArrayStart() + if yyl2337 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2337, 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 yys2338Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2338Slc + var yyhl2338 bool = l >= 0 + for yyj2338 := 0; ; yyj2338++ { + if yyhl2338 { + if yyj2338 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2338Slc = r.DecodeBytes(yys2338Slc, true, true) + yys2338 := string(yys2338Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2338 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2339 := &x.LoadBalancer + yyv2339.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2338) + } // end switch yys2338 + } // end for yyj2338 + 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 yyj2340 int + var yyb2340 bool + var yyhl2340 bool = l >= 0 + yyj2340++ + if yyhl2340 { + yyb2340 = yyj2340 > l + } else { + yyb2340 = r.CheckBreak() + } + if yyb2340 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2341 := &x.LoadBalancer + yyv2341.CodecDecodeSelf(d) + } + for { + yyj2340++ + if yyhl2340 { + yyb2340 = yyj2340 > l + } else { + yyb2340 = r.CheckBreak() + } + if yyb2340 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2340-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 { + yym2342 := z.EncBinary() + _ = yym2342 + 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 { + r.EncodeArrayStart(1) + } else { + yynn2343 = 0 + for _, b := range yyq2343 { + if b { + yynn2343++ + } + } + r.EncodeMapStart(yynn2343) + yynn2343 = 0 + } + if yyr2343 || yy2arr2343 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2343[0] { + if x.Ingress == nil { + r.EncodeNil() + } else { + yym2345 := z.EncBinary() + _ = yym2345 + if false { + } else { + h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2343[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 + if false { + } else { + h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) + } + } + } + } + if yyr2343 || yy2arr2343 { + 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 + yym2347 := z.DecBinary() + _ = yym2347 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2348 := r.ContainerType() + if yyct2348 == codecSelferValueTypeMap1234 { + yyl2348 := r.ReadMapStart() + if yyl2348 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2348, d) + } + } else if yyct2348 == codecSelferValueTypeArray1234 { + yyl2348 := r.ReadArrayStart() + if yyl2348 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2348, 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 yys2349Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2349Slc + var yyhl2349 bool = l >= 0 + for yyj2349 := 0; ; yyj2349++ { + if yyhl2349 { + if yyj2349 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2349Slc = r.DecodeBytes(yys2349Slc, true, true) + yys2349 := string(yys2349Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2349 { + case "ingress": + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv2350 := &x.Ingress + yym2351 := z.DecBinary() + _ = yym2351 + if false { + } else { + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2350), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2349) + } // end switch yys2349 + } // end for yyj2349 + 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 yyj2352 int + var yyb2352 bool + var yyhl2352 bool = l >= 0 + yyj2352++ + if yyhl2352 { + yyb2352 = yyj2352 > l + } else { + yyb2352 = r.CheckBreak() + } + if yyb2352 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv2353 := &x.Ingress + yym2354 := z.DecBinary() + _ = yym2354 + if false { + } else { + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2353), d) + } + } + for { + yyj2352++ + if yyhl2352 { + yyb2352 = yyj2352 > l + } else { + yyb2352 = r.CheckBreak() + } + if yyb2352 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2352-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 { + yym2355 := z.EncBinary() + _ = yym2355 + 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 { + r.EncodeArrayStart(2) + } else { + yynn2356 = 0 + for _, b := range yyq2356 { + if b { + yynn2356++ + } + } + r.EncodeMapStart(yynn2356) + yynn2356 = 0 + } + if yyr2356 || yy2arr2356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2356[0] { + yym2358 := z.EncBinary() + _ = yym2358 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2356[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ip")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2359 := z.EncBinary() + _ = yym2359 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } + } + if yyr2356 || yy2arr2356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2356[1] { + yym2361 := z.EncBinary() + _ = yym2361 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2356[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostname")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2362 := z.EncBinary() + _ = yym2362 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } + } + if yyr2356 || yy2arr2356 { + 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 + yym2363 := z.DecBinary() + _ = yym2363 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2364 := r.ContainerType() + if yyct2364 == codecSelferValueTypeMap1234 { + yyl2364 := r.ReadMapStart() + if yyl2364 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2364, d) + } + } else if yyct2364 == codecSelferValueTypeArray1234 { + yyl2364 := r.ReadArrayStart() + if yyl2364 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2364, 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 yys2365Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2365Slc + var yyhl2365 bool = l >= 0 + for yyj2365 := 0; ; yyj2365++ { + if yyhl2365 { + if yyj2365 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2365Slc = r.DecodeBytes(yys2365Slc, true, true) + yys2365 := string(yys2365Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2365 { + 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, yys2365) + } // end switch yys2365 + } // end for yyj2365 + 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 yyj2368 int + var yyb2368 bool + var yyhl2368 bool = l >= 0 + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l + } else { + yyb2368 = r.CheckBreak() + } + if yyb2368 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = string(r.DecodeString()) + } + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l + } else { + yyb2368 = r.CheckBreak() + } + if yyb2368 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + for { + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l + } else { + yyb2368 = r.CheckBreak() + } + if yyb2368 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2368-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2371 := z.EncBinary() + _ = yym2371 + 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) + } else { + yynn2372 = 1 + for _, b := range yyq2372 { + if b { + yynn2372++ + } + } + r.EncodeMapStart(yynn2372) + yynn2372 = 0 + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Ports == nil { + r.EncodeNil() + } else { + yym2374 := z.EncBinary() + _ = yym2374 + if false { + } else { + h.encSliceServicePort(([]ServicePort)(x.Ports), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ports")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Ports == nil { + r.EncodeNil() + } else { + yym2375 := z.EncBinary() + _ = yym2375 + if false { + } else { + h.encSliceServicePort(([]ServicePort)(x.Ports), e) + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym2377 := z.EncBinary() + _ = yym2377 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2372[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 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[2] { + yym2380 := z.EncBinary() + _ = yym2380 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2372[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2381 := z.EncBinary() + _ = yym2381 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[3] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2372[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[4] { + if x.ExternalIPs == nil { + r.EncodeNil() + } else { + yym2384 := z.EncBinary() + _ = yym2384 + if false { + } else { + z.F.EncSliceStringV(x.ExternalIPs, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2372[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 + if false { + } else { + z.F.EncSliceStringV(x.ExternalIPs, false, e) + } + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[5] { + if x.DeprecatedPublicIPs == nil { + r.EncodeNil() + } else { + yym2387 := z.EncBinary() + _ = yym2387 + if false { + } else { + z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2372[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 + if false { + } else { + z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) + } + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[6] { + x.SessionAffinity.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2372[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.SessionAffinity.CodecEncodeSelf(e) + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[7] { + yym2391 := z.EncBinary() + _ = yym2391 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2372[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2392 := z.EncBinary() + _ = yym2392 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[8] { + if x.LoadBalancerSourceRanges == nil { + r.EncodeNil() + } else { + yym2394 := z.EncBinary() + _ = yym2394 + if false { + } else { + z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2372[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 + if false { + } else { + z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) + } + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2396 := z.DecBinary() + _ = yym2396 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2397 := r.ContainerType() + if yyct2397 == codecSelferValueTypeMap1234 { + yyl2397 := r.ReadMapStart() + if yyl2397 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2397, d) + } + } else if yyct2397 == codecSelferValueTypeArray1234 { + yyl2397 := r.ReadArrayStart() + if yyl2397 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2397, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2398Slc = r.DecodeBytes(yys2398Slc, true, true) + yys2398 := string(yys2398Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2398 { + case "ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2399 := &x.Ports + yym2400 := z.DecBinary() + _ = yym2400 + if false { + } else { + h.decSliceServicePort((*[]ServicePort)(yyv2399), d) + } + } + case "selector": + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2401 := &x.Selector + yym2402 := z.DecBinary() + _ = yym2402 + if false { + } else { + z.F.DecMapStringStringX(yyv2401, false, d) + } + } + case "clusterIP": + if r.TryDecodeAsNil() { + x.ClusterIP = "" + } else { + x.ClusterIP = string(r.DecodeString()) + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ServiceType(r.DecodeString()) + } + case "externalIPs": + if r.TryDecodeAsNil() { + x.ExternalIPs = nil + } else { + yyv2405 := &x.ExternalIPs + yym2406 := z.DecBinary() + _ = yym2406 + if false { + } else { + z.F.DecSliceStringX(yyv2405, false, d) + } + } + case "deprecatedPublicIPs": + if r.TryDecodeAsNil() { + x.DeprecatedPublicIPs = nil + } else { + yyv2407 := &x.DeprecatedPublicIPs + yym2408 := z.DecBinary() + _ = yym2408 + if false { + } else { + z.F.DecSliceStringX(yyv2407, false, d) + } + } + case "sessionAffinity": + if r.TryDecodeAsNil() { + x.SessionAffinity = "" + } else { + x.SessionAffinity = ServiceAffinity(r.DecodeString()) + } + case "loadBalancerIP": + if r.TryDecodeAsNil() { + x.LoadBalancerIP = "" + } else { + x.LoadBalancerIP = string(r.DecodeString()) + } + case "loadBalancerSourceRanges": + if r.TryDecodeAsNil() { + x.LoadBalancerSourceRanges = nil + } else { + yyv2411 := &x.LoadBalancerSourceRanges + yym2412 := z.DecBinary() + _ = yym2412 + if false { + } else { + z.F.DecSliceStringX(yyv2411, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2398) + } // end switch yys2398 + } // end for yyj2398 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2414 := &x.Ports + yym2415 := z.DecBinary() + _ = yym2415 + if false { + } else { + h.decSliceServicePort((*[]ServicePort)(yyv2414), d) + } + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2416 := &x.Selector + yym2417 := z.DecBinary() + _ = yym2417 + if false { + } else { + z.F.DecMapStringStringX(yyv2416, false, d) + } + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterIP = "" + } else { + x.ClusterIP = string(r.DecodeString()) + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ServiceType(r.DecodeString()) + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExternalIPs = nil + } else { + yyv2420 := &x.ExternalIPs + yym2421 := z.DecBinary() + _ = yym2421 + if false { + } else { + z.F.DecSliceStringX(yyv2420, false, d) + } + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DeprecatedPublicIPs = nil + } else { + yyv2422 := &x.DeprecatedPublicIPs + yym2423 := z.DecBinary() + _ = yym2423 + if false { + } else { + z.F.DecSliceStringX(yyv2422, false, d) + } + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SessionAffinity = "" + } else { + x.SessionAffinity = ServiceAffinity(r.DecodeString()) + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancerIP = "" + } else { + x.LoadBalancerIP = string(r.DecodeString()) + } + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancerSourceRanges = nil + } else { + yyv2426 := &x.LoadBalancerSourceRanges + yym2427 := z.DecBinary() + _ = yym2427 + if false { + } else { + z.F.DecSliceStringX(yyv2426, false, d) + } + } + for { + yyj2413++ + if yyhl2413 { + yyb2413 = yyj2413 > l + } else { + yyb2413 = r.CheckBreak() + } + if yyb2413 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2413-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2428 := z.EncBinary() + _ = yym2428 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2429 = 1 + for _, b := range yyq2429 { + if b { + yynn2429++ + } + } + r.EncodeMapStart(yynn2429) + yynn2429 = 0 + } + if yyr2429 || yy2arr2429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2429[0] { + yym2431 := z.EncBinary() + _ = yym2431 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2429[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2432 := z.EncBinary() + _ = yym2432 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr2429 || yy2arr2429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2429[1] { + x.Protocol.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2429[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protocol")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Protocol.CodecEncodeSelf(e) + } + } + if yyr2429 || yy2arr2429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2435 := z.EncBinary() + _ = yym2435 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2436 := z.EncBinary() + _ = yym2436 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2429 || yy2arr2429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2429[3] { + yy2438 := &x.TargetPort + yym2439 := z.EncBinary() + _ = yym2439 + if false { + } else if z.HasExtensions() && z.EncExt(yy2438) { + } else if !yym2439 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2438) + } else { + z.EncFallback(yy2438) + } + } else { + r.EncodeNil() + } + } else { + if yyq2429[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2440 := &x.TargetPort + yym2441 := z.EncBinary() + _ = yym2441 + if false { + } else if z.HasExtensions() && z.EncExt(yy2440) { + } else if !yym2441 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2440) + } else { + z.EncFallback(yy2440) + } + } + } + if yyr2429 || yy2arr2429 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2429[4] { + yym2443 := z.EncBinary() + _ = yym2443 + if false { + } else { + r.EncodeInt(int64(x.NodePort)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2429[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodePort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2444 := z.EncBinary() + _ = yym2444 + if false { + } else { + r.EncodeInt(int64(x.NodePort)) + } + } + } + if yyr2429 || yy2arr2429 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2445 := z.DecBinary() + _ = yym2445 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2446 := r.ContainerType() + if yyct2446 == codecSelferValueTypeMap1234 { + yyl2446 := r.ReadMapStart() + if yyl2446 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2446, d) + } + } else if yyct2446 == codecSelferValueTypeArray1234 { + yyl2446 := r.ReadArrayStart() + if yyl2446 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2446, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2447Slc = r.DecodeBytes(yys2447Slc, true, true) + yys2447 := string(yys2447Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2447 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + case "port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + case "targetPort": + if r.TryDecodeAsNil() { + x.TargetPort = pkg4_intstr.IntOrString{} + } else { + yyv2451 := &x.TargetPort + yym2452 := z.DecBinary() + _ = yym2452 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2451) { + } else if !yym2452 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2451) + } else { + z.DecFallback(yyv2451, false) + } + } + case "nodePort": + if r.TryDecodeAsNil() { + x.NodePort = 0 + } else { + x.NodePort = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys2447) + } // end switch yys2447 + } // end for yyj2447 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2454 = r.CheckBreak() + } + if yyb2454 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj2454++ + if yyhl2454 { + yyb2454 = yyj2454 > l + } else { + yyb2454 = r.CheckBreak() + } + if yyb2454 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + yyj2454++ + if yyhl2454 { + yyb2454 = yyj2454 > l + } else { + yyb2454 = r.CheckBreak() + } + if yyb2454 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj2454++ + if yyhl2454 { + yyb2454 = yyj2454 > l + } else { + yyb2454 = r.CheckBreak() + } + if yyb2454 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TargetPort = pkg4_intstr.IntOrString{} + } else { + yyv2458 := &x.TargetPort + yym2459 := z.DecBinary() + _ = yym2459 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2458) { + } else if !yym2459 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2458) + } else { + z.DecFallback(yyv2458, false) + } + } + yyj2454++ + if yyhl2454 { + yyb2454 = yyj2454 > l + } else { + yyb2454 = r.CheckBreak() + } + if yyb2454 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodePort = 0 + } else { + x.NodePort = int32(r.DecodeInt(32)) + } + for { + yyj2454++ + if yyhl2454 { + yyb2454 = yyj2454 > l + } else { + yyb2454 = r.CheckBreak() + } + if yyb2454 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2454-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2461 := z.EncBinary() + _ = yym2461 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2462 = 0 + for _, b := range yyq2462 { + if b { + yynn2462++ + } + } + r.EncodeMapStart(yynn2462) + yynn2462 = 0 + } + if yyr2462 || yy2arr2462 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2462[0] { + yym2464 := z.EncBinary() + _ = yym2464 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2462[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2465 := z.EncBinary() + _ = yym2465 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2462 || yy2arr2462 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2462[1] { + yym2467 := z.EncBinary() + _ = yym2467 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2462[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2468 := z.EncBinary() + _ = yym2468 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2462 || yy2arr2462 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2462[2] { + yy2470 := &x.ObjectMeta + yy2470.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2462[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2471 := &x.ObjectMeta + yy2471.CodecEncodeSelf(e) + } + } + if yyr2462 || yy2arr2462 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2462[3] { + yy2473 := &x.Spec + yy2473.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2462[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2474 := &x.Spec + yy2474.CodecEncodeSelf(e) + } + } + if yyr2462 || yy2arr2462 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2462[4] { + yy2476 := &x.Status + yy2476.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2462[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2477 := &x.Status + yy2477.CodecEncodeSelf(e) + } + } + if yyr2462 || yy2arr2462 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2478 := z.DecBinary() + _ = yym2478 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2479 := r.ContainerType() + if yyct2479 == codecSelferValueTypeMap1234 { + yyl2479 := r.ReadMapStart() + if yyl2479 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2479, d) + } + } else if yyct2479 == codecSelferValueTypeArray1234 { + yyl2479 := r.ReadArrayStart() + if yyl2479 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2479, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2480Slc = r.DecodeBytes(yys2480Slc, true, true) + yys2480 := string(yys2480Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2480 { + 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 { + yyv2483 := &x.ObjectMeta + yyv2483.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ServiceSpec{} + } else { + yyv2484 := &x.Spec + yyv2484.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ServiceStatus{} + } else { + yyv2485 := &x.Status + yyv2485.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2480) + } // end switch yys2480 + } // end for yyj2480 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2486 = r.CheckBreak() + } + if yyb2486 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2486++ + if yyhl2486 { + yyb2486 = yyj2486 > l + } else { + yyb2486 = r.CheckBreak() + } + if yyb2486 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2486++ + if yyhl2486 { + yyb2486 = yyj2486 > l + } else { + yyb2486 = r.CheckBreak() + } + if yyb2486 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2489 := &x.ObjectMeta + yyv2489.CodecDecodeSelf(d) + } + yyj2486++ + if yyhl2486 { + yyb2486 = yyj2486 > l + } else { + yyb2486 = r.CheckBreak() + } + if yyb2486 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ServiceSpec{} + } else { + yyv2490 := &x.Spec + yyv2490.CodecDecodeSelf(d) + } + yyj2486++ + if yyhl2486 { + yyb2486 = yyj2486 > l + } else { + yyb2486 = r.CheckBreak() + } + if yyb2486 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ServiceStatus{} + } else { + yyv2491 := &x.Status + yyv2491.CodecDecodeSelf(d) + } + for { + yyj2486++ + if yyhl2486 { + yyb2486 = yyj2486 > l + } else { + yyb2486 = r.CheckBreak() + } + if yyb2486 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2486-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 { + yym2492 := z.EncBinary() + _ = yym2492 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2493 = 1 + for _, b := range yyq2493 { + if b { + yynn2493++ + } + } + r.EncodeMapStart(yynn2493) + yynn2493 = 0 + } + if yyr2493 || yy2arr2493 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2493[0] { + yym2495 := z.EncBinary() + _ = yym2495 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2493[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2496 := z.EncBinary() + _ = yym2496 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2493 || yy2arr2493 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2493[1] { + yym2498 := z.EncBinary() + _ = yym2498 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2493[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2499 := z.EncBinary() + _ = yym2499 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2493 || yy2arr2493 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2493[2] { + yy2501 := &x.ListMeta + yym2502 := z.EncBinary() + _ = yym2502 + if false { + } else if z.HasExtensions() && z.EncExt(yy2501) { + } else { + z.EncFallback(yy2501) + } + } else { + r.EncodeNil() + } + } else { + if yyq2493[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2503 := &x.ListMeta + yym2504 := z.EncBinary() + _ = yym2504 + if false { + } else if z.HasExtensions() && z.EncExt(yy2503) { + } else { + z.EncFallback(yy2503) + } + } + } + if yyr2493 || yy2arr2493 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2506 := z.EncBinary() + _ = yym2506 + 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 { + yym2507 := z.EncBinary() + _ = yym2507 + if false { + } else { + h.encSliceService(([]Service)(x.Items), e) + } + } + } + if yyr2493 || yy2arr2493 { + 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 + yym2508 := z.DecBinary() + _ = yym2508 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2509 := r.ContainerType() + if yyct2509 == codecSelferValueTypeMap1234 { + yyl2509 := r.ReadMapStart() + if yyl2509 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2509, d) + } + } else if yyct2509 == codecSelferValueTypeArray1234 { + yyl2509 := r.ReadArrayStart() + if yyl2509 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2509, 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 yys2510Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2510Slc + var yyhl2510 bool = l >= 0 + for yyj2510 := 0; ; yyj2510++ { + if yyhl2510 { + if yyj2510 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2510Slc = r.DecodeBytes(yys2510Slc, true, true) + yys2510 := string(yys2510Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2510 { + 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 { + yyv2513 := &x.ListMeta + yym2514 := z.DecBinary() + _ = yym2514 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2513) { + } else { + z.DecFallback(yyv2513, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2515 := &x.Items + yym2516 := z.DecBinary() + _ = yym2516 + if false { + } else { + h.decSliceService((*[]Service)(yyv2515), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2510) + } // end switch yys2510 + } // end for yyj2510 + 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 yyj2517 int + var yyb2517 bool + var yyhl2517 bool = l >= 0 + yyj2517++ + if yyhl2517 { + yyb2517 = yyj2517 > l + } else { + yyb2517 = r.CheckBreak() + } + if yyb2517 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2517++ + if yyhl2517 { + yyb2517 = yyj2517 > l + } else { + yyb2517 = r.CheckBreak() + } + if yyb2517 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2517++ + if yyhl2517 { + yyb2517 = yyj2517 > l + } else { + yyb2517 = r.CheckBreak() + } + if yyb2517 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2520 := &x.ListMeta + yym2521 := z.DecBinary() + _ = yym2521 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2520) { + } else { + z.DecFallback(yyv2520, false) + } + } + yyj2517++ + if yyhl2517 { + yyb2517 = yyj2517 > l + } else { + yyb2517 = r.CheckBreak() + } + if yyb2517 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2522 := &x.Items + yym2523 := z.DecBinary() + _ = yym2523 + if false { + } else { + h.decSliceService((*[]Service)(yyv2522), d) + } + } + for { + yyj2517++ + if yyhl2517 { + yyb2517 = yyj2517 > l + } else { + yyb2517 = r.CheckBreak() + } + if yyb2517 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2517-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2524 := z.EncBinary() + _ = yym2524 + 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 { + r.EncodeArrayStart(5) + } else { + yynn2525 = 0 + for _, b := range yyq2525 { + if b { + yynn2525++ + } + } + r.EncodeMapStart(yynn2525) + yynn2525 = 0 + } + if yyr2525 || yy2arr2525 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2525[0] { + yym2527 := z.EncBinary() + _ = yym2527 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2525[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2528 := z.EncBinary() + _ = yym2528 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2525 || yy2arr2525 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2525[1] { + yym2530 := z.EncBinary() + _ = yym2530 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2525[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2531 := z.EncBinary() + _ = yym2531 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2525 || yy2arr2525 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2525[2] { + yy2533 := &x.ObjectMeta + yy2533.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2525[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2534 := &x.ObjectMeta + yy2534.CodecEncodeSelf(e) + } + } + if yyr2525 || yy2arr2525 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2525[3] { + if x.Secrets == nil { + r.EncodeNil() + } else { + yym2536 := z.EncBinary() + _ = yym2536 + if false { + } else { + h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2525[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 + if false { + } else { + h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) + } + } + } + } + if yyr2525 || yy2arr2525 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2525[4] { + if x.ImagePullSecrets == nil { + r.EncodeNil() + } else { + yym2539 := z.EncBinary() + _ = yym2539 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2525[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 + if false { + } else { + h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) + } + } + } + } + if yyr2525 || yy2arr2525 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2541 := z.DecBinary() + _ = yym2541 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2542 := r.ContainerType() + if yyct2542 == codecSelferValueTypeMap1234 { + yyl2542 := r.ReadMapStart() + if yyl2542 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2542, d) + } + } else if yyct2542 == codecSelferValueTypeArray1234 { + yyl2542 := r.ReadArrayStart() + if yyl2542 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2542, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2543Slc = r.DecodeBytes(yys2543Slc, true, true) + yys2543 := string(yys2543Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2543 { + 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 { + yyv2546 := &x.ObjectMeta + yyv2546.CodecDecodeSelf(d) + } + case "secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + yyv2547 := &x.Secrets + yym2548 := z.DecBinary() + _ = yym2548 + if false { + } else { + h.decSliceObjectReference((*[]ObjectReference)(yyv2547), d) + } + } + case "imagePullSecrets": + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv2549 := &x.ImagePullSecrets + yym2550 := z.DecBinary() + _ = yym2550 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2549), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2543) + } // end switch yys2543 + } // end for yyj2543 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2551 = r.CheckBreak() + } + if yyb2551 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2551++ + if yyhl2551 { + yyb2551 = yyj2551 > l + } else { + yyb2551 = r.CheckBreak() + } + if yyb2551 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2551++ + if yyhl2551 { + yyb2551 = yyj2551 > l + } else { + yyb2551 = r.CheckBreak() + } + if yyb2551 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2554 := &x.ObjectMeta + yyv2554.CodecDecodeSelf(d) + } + yyj2551++ + if yyhl2551 { + yyb2551 = yyj2551 > l + } else { + yyb2551 = r.CheckBreak() + } + if yyb2551 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + yyv2555 := &x.Secrets + yym2556 := z.DecBinary() + _ = yym2556 + if false { + } else { + h.decSliceObjectReference((*[]ObjectReference)(yyv2555), d) + } + } + yyj2551++ + if yyhl2551 { + yyb2551 = yyj2551 > l + } else { + yyb2551 = r.CheckBreak() + } + if yyb2551 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImagePullSecrets = nil + } else { + yyv2557 := &x.ImagePullSecrets + yym2558 := z.DecBinary() + _ = yym2558 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2557), d) + } + } + for { + yyj2551++ + if yyhl2551 { + yyb2551 = yyj2551 > l + } else { + yyb2551 = r.CheckBreak() + } + if yyb2551 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2551-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2559 := z.EncBinary() + _ = yym2559 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2560 = 1 + for _, b := range yyq2560 { + if b { + yynn2560++ + } + } + r.EncodeMapStart(yynn2560) + yynn2560 = 0 + } + if yyr2560 || yy2arr2560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2560[0] { + yym2562 := z.EncBinary() + _ = yym2562 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2560[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2563 := z.EncBinary() + _ = yym2563 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2560 || yy2arr2560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2560[1] { + yym2565 := z.EncBinary() + _ = yym2565 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2560[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2566 := z.EncBinary() + _ = yym2566 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2560 || yy2arr2560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2560[2] { + yy2568 := &x.ListMeta + yym2569 := z.EncBinary() + _ = yym2569 + if false { + } else if z.HasExtensions() && z.EncExt(yy2568) { + } else { + z.EncFallback(yy2568) + } + } else { + r.EncodeNil() + } + } else { + if yyq2560[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2570 := &x.ListMeta + yym2571 := z.EncBinary() + _ = yym2571 + if false { + } else if z.HasExtensions() && z.EncExt(yy2570) { + } else { + z.EncFallback(yy2570) + } + } + } + if yyr2560 || yy2arr2560 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2573 := z.EncBinary() + _ = yym2573 + if false { + } else { + h.encSliceServiceAccount(([]ServiceAccount)(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 { + yym2574 := z.EncBinary() + _ = yym2574 + if false { + } else { + h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) + } + } + } + if yyr2560 || yy2arr2560 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2575 := z.DecBinary() + _ = yym2575 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2576 := r.ContainerType() + if yyct2576 == codecSelferValueTypeMap1234 { + yyl2576 := r.ReadMapStart() + if yyl2576 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2576, d) + } + } else if yyct2576 == codecSelferValueTypeArray1234 { + yyl2576 := r.ReadArrayStart() + if yyl2576 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2576, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2577Slc = r.DecodeBytes(yys2577Slc, true, true) + yys2577 := string(yys2577Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2577 { + 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 { + yyv2580 := &x.ListMeta + yym2581 := z.DecBinary() + _ = yym2581 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2580) { + } else { + z.DecFallback(yyv2580, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2582 := &x.Items + yym2583 := z.DecBinary() + _ = yym2583 + if false { + } else { + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2582), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2577) + } // end switch yys2577 + } // end for yyj2577 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb2584 = r.CheckBreak() + } + if yyb2584 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l + } else { + yyb2584 = r.CheckBreak() + } + if yyb2584 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l + } else { + yyb2584 = r.CheckBreak() + } + if yyb2584 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2587 := &x.ListMeta + yym2588 := z.DecBinary() + _ = yym2588 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2587) { + } else { + z.DecFallback(yyv2587, false) + } + } + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l + } else { + yyb2584 = r.CheckBreak() + } + if yyb2584 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2589 := &x.Items + yym2590 := z.DecBinary() + _ = yym2590 + if false { + } else { + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2589), d) + } + } + for { + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l + } else { + yyb2584 = r.CheckBreak() + } + if yyb2584 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2584-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2591 := z.EncBinary() + _ = yym2591 + 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 { + r.EncodeArrayStart(4) + } else { + yynn2592 = 1 + for _, b := range yyq2592 { + if b { + yynn2592++ + } + } + r.EncodeMapStart(yynn2592) + yynn2592 = 0 + } + if yyr2592 || yy2arr2592 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2592[0] { + yym2594 := z.EncBinary() + _ = yym2594 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2592[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2595 := z.EncBinary() + _ = yym2595 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2592 || yy2arr2592 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2592[1] { + yym2597 := z.EncBinary() + _ = yym2597 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2592[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2598 := z.EncBinary() + _ = yym2598 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2592 || yy2arr2592 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2592[2] { + yy2600 := &x.ObjectMeta + yy2600.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2592[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2601 := &x.ObjectMeta + yy2601.CodecEncodeSelf(e) + } + } + if yyr2592 || yy2arr2592 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2603 := z.EncBinary() + _ = yym2603 + if false { + } else { + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("subsets")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Subsets == nil { + r.EncodeNil() + } else { + yym2604 := z.EncBinary() + _ = yym2604 + if false { + } else { + h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) + } + } + } + if yyr2592 || yy2arr2592 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2605 := z.DecBinary() + _ = yym2605 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2606 := r.ContainerType() + if yyct2606 == codecSelferValueTypeMap1234 { + yyl2606 := r.ReadMapStart() + if yyl2606 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2606, d) + } + } else if yyct2606 == codecSelferValueTypeArray1234 { + yyl2606 := r.ReadArrayStart() + if yyl2606 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2606, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2607Slc = r.DecodeBytes(yys2607Slc, true, true) + yys2607 := string(yys2607Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2607 { + 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 { + yyv2610 := &x.ObjectMeta + yyv2610.CodecDecodeSelf(d) + } + case "subsets": + if r.TryDecodeAsNil() { + x.Subsets = nil + } else { + yyv2611 := &x.Subsets + yym2612 := z.DecBinary() + _ = yym2612 + if false { + } else { + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2611), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2607) + } // end switch yys2607 + } // end for yyj2607 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2613 = r.CheckBreak() + } + if yyb2613 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2613++ + if yyhl2613 { + yyb2613 = yyj2613 > l + } else { + yyb2613 = r.CheckBreak() + } + if yyb2613 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2613++ + if yyhl2613 { + yyb2613 = yyj2613 > l + } else { + yyb2613 = r.CheckBreak() + } + if yyb2613 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2616 := &x.ObjectMeta + yyv2616.CodecDecodeSelf(d) + } + yyj2613++ + if yyhl2613 { + yyb2613 = yyj2613 > l + } else { + yyb2613 = r.CheckBreak() + } + if yyb2613 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Subsets = nil + } else { + yyv2617 := &x.Subsets + yym2618 := z.DecBinary() + _ = yym2618 + if false { + } else { + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2617), d) + } + } + for { + yyj2613++ + if yyhl2613 { + yyb2613 = yyj2613 > l + } else { + yyb2613 = r.CheckBreak() + } + if yyb2613 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2613-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2619 := z.EncBinary() + _ = yym2619 + 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 { + r.EncodeArrayStart(3) + } else { + yynn2620 = 0 + for _, b := range yyq2620 { + if b { + yynn2620++ + } + } + r.EncodeMapStart(yynn2620) + yynn2620 = 0 + } + if yyr2620 || yy2arr2620 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2620[0] { + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2622 := z.EncBinary() + _ = yym2622 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2620[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 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) + } + } + } + } + if yyr2620 || yy2arr2620 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2620[1] { + if x.NotReadyAddresses == nil { + r.EncodeNil() + } else { + yym2625 := z.EncBinary() + _ = yym2625 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2620[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 + if false { + } else { + h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) + } + } + } + } + if yyr2620 || yy2arr2620 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2620[2] { + if x.Ports == nil { + r.EncodeNil() + } else { + yym2628 := z.EncBinary() + _ = yym2628 + if false { + } else { + h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2620[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 + if false { + } else { + h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) + } + } + } + } + if yyr2620 || yy2arr2620 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2630 := z.DecBinary() + _ = yym2630 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2631 := r.ContainerType() + if yyct2631 == codecSelferValueTypeMap1234 { + yyl2631 := r.ReadMapStart() + if yyl2631 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2631, d) + } + } else if yyct2631 == codecSelferValueTypeArray1234 { + yyl2631 := r.ReadArrayStart() + if yyl2631 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2631, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2632Slc = r.DecodeBytes(yys2632Slc, true, true) + yys2632 := string(yys2632Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2632 { + case "addresses": + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2633 := &x.Addresses + yym2634 := z.DecBinary() + _ = yym2634 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2633), d) + } + } + case "notReadyAddresses": + if r.TryDecodeAsNil() { + x.NotReadyAddresses = nil + } else { + yyv2635 := &x.NotReadyAddresses + yym2636 := z.DecBinary() + _ = yym2636 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2635), d) + } + } + case "ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2637 := &x.Ports + yym2638 := z.DecBinary() + _ = yym2638 + if false { + } else { + h.decSliceEndpointPort((*[]EndpointPort)(yyv2637), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2632) + } // end switch yys2632 + } // end for yyj2632 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb2639 = r.CheckBreak() + } + if yyb2639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2640 := &x.Addresses + yym2641 := z.DecBinary() + _ = yym2641 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2640), d) + } + } + yyj2639++ + if yyhl2639 { + yyb2639 = yyj2639 > l + } else { + yyb2639 = r.CheckBreak() + } + if yyb2639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NotReadyAddresses = nil + } else { + yyv2642 := &x.NotReadyAddresses + yym2643 := z.DecBinary() + _ = yym2643 + if false { + } else { + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2642), d) + } + } + yyj2639++ + if yyhl2639 { + yyb2639 = yyj2639 > l + } else { + yyb2639 = r.CheckBreak() + } + if yyb2639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv2644 := &x.Ports + yym2645 := z.DecBinary() + _ = yym2645 + if false { + } else { + h.decSliceEndpointPort((*[]EndpointPort)(yyv2644), d) + } + } + for { + yyj2639++ + if yyhl2639 { + yyb2639 = yyj2639 > l + } else { + yyb2639 = r.CheckBreak() + } + if yyb2639 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2639-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2646 := z.EncBinary() + _ = yym2646 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2647 := !z.EncBinary() + yy2arr2647 := z.EncBasicHandle().StructToArray + var yyq2647 [3]bool + _, _, _ = yysep2647, yyq2647, yy2arr2647 + const yyr2647 bool = false + yyq2647[1] = x.Hostname != "" + yyq2647[2] = x.TargetRef != nil + var yynn2647 int + if yyr2647 || yy2arr2647 { + r.EncodeArrayStart(3) + } else { + yynn2647 = 1 + for _, b := range yyq2647 { + if b { + yynn2647++ + } + } + r.EncodeMapStart(yynn2647) + yynn2647 = 0 + } + if yyr2647 || yy2arr2647 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2649 := z.EncBinary() + _ = yym2649 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ip")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2650 := z.EncBinary() + _ = yym2650 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } + if yyr2647 || yy2arr2647 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2647[1] { + yym2652 := z.EncBinary() + _ = yym2652 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2647[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostname")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2653 := z.EncBinary() + _ = yym2653 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } + } + if yyr2647 || yy2arr2647 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2647[2] { + if x.TargetRef == nil { + r.EncodeNil() + } else { + x.TargetRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2647[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TargetRef == nil { + r.EncodeNil() + } else { + x.TargetRef.CodecEncodeSelf(e) + } + } + } + if yyr2647 || yy2arr2647 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2655 := z.DecBinary() + _ = yym2655 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2656 := r.ContainerType() + if yyct2656 == codecSelferValueTypeMap1234 { + yyl2656 := r.ReadMapStart() + if yyl2656 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2656, d) + } + } else if yyct2656 == codecSelferValueTypeArray1234 { + yyl2656 := r.ReadArrayStart() + if yyl2656 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2656, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2657Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2657Slc + var yyhl2657 bool = l >= 0 + for yyj2657 := 0; ; yyj2657++ { + if yyhl2657 { + if yyj2657 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2657Slc = r.DecodeBytes(yys2657Slc, true, true) + yys2657 := string(yys2657Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2657 { + 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()) + } + case "targetRef": + if r.TryDecodeAsNil() { + if x.TargetRef != nil { + x.TargetRef = nil + } + } else { + if x.TargetRef == nil { + x.TargetRef = new(ObjectReference) + } + x.TargetRef.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2657) + } // end switch yys2657 + } // end for yyj2657 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2661 int + var yyb2661 bool + var yyhl2661 bool = l >= 0 + yyj2661++ + if yyhl2661 { + yyb2661 = yyj2661 > l + } else { + yyb2661 = r.CheckBreak() + } + if yyb2661 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = string(r.DecodeString()) + } + yyj2661++ + if yyhl2661 { + yyb2661 = yyj2661 > l + } else { + yyb2661 = r.CheckBreak() + } + if yyb2661 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + yyj2661++ + if yyhl2661 { + yyb2661 = yyj2661 > l + } else { + yyb2661 = r.CheckBreak() + } + if yyb2661 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TargetRef != nil { + x.TargetRef = nil + } + } else { + if x.TargetRef == nil { + x.TargetRef = new(ObjectReference) + } + x.TargetRef.CodecDecodeSelf(d) + } + for { + yyj2661++ + if yyhl2661 { + yyb2661 = yyj2661 > l + } else { + yyb2661 = r.CheckBreak() + } + if yyb2661 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2661-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2665 := z.EncBinary() + _ = yym2665 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2666 := !z.EncBinary() + yy2arr2666 := z.EncBasicHandle().StructToArray + var yyq2666 [3]bool + _, _, _ = yysep2666, yyq2666, yy2arr2666 + const yyr2666 bool = false + yyq2666[0] = x.Name != "" + yyq2666[2] = x.Protocol != "" + var yynn2666 int + if yyr2666 || yy2arr2666 { + r.EncodeArrayStart(3) + } else { + yynn2666 = 1 + for _, b := range yyq2666 { + if b { + yynn2666++ + } + } + r.EncodeMapStart(yynn2666) + yynn2666 = 0 + } + if yyr2666 || yy2arr2666 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2666[0] { + yym2668 := z.EncBinary() + _ = yym2668 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2666[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2669 := z.EncBinary() + _ = yym2669 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr2666 || yy2arr2666 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2671 := z.EncBinary() + _ = yym2671 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2672 := z.EncBinary() + _ = yym2672 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2666 || yy2arr2666 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2666[2] { + x.Protocol.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2666[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protocol")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Protocol.CodecEncodeSelf(e) + } + } + if yyr2666 || yy2arr2666 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2674 := z.DecBinary() + _ = yym2674 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2675 := r.ContainerType() + if yyct2675 == codecSelferValueTypeMap1234 { + yyl2675 := r.ReadMapStart() + if yyl2675 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2675, d) + } + } else if yyct2675 == codecSelferValueTypeArray1234 { + yyl2675 := r.ReadArrayStart() + if yyl2675 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2675, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EndpointPort) 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2676Slc = r.DecodeBytes(yys2676Slc, true, true) + yys2676 := string(yys2676Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2676 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + case "protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys2676) + } // end switch yys2676 + } // end for yyj2676 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2680 int + var yyb2680 bool + var yyhl2680 bool = l >= 0 + yyj2680++ + if yyhl2680 { + yyb2680 = yyj2680 > l + } else { + yyb2680 = r.CheckBreak() + } + if yyb2680 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj2680++ + if yyhl2680 { + yyb2680 = yyj2680 > l + } else { + yyb2680 = r.CheckBreak() + } + if yyb2680 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj2680++ + if yyhl2680 { + yyb2680 = yyj2680 > l + } else { + yyb2680 = r.CheckBreak() + } + if yyb2680 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = Protocol(r.DecodeString()) + } + for { + yyj2680++ + if yyhl2680 { + yyb2680 = yyj2680 > l + } else { + yyb2680 = r.CheckBreak() + } + if yyb2680 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2680-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2684 := z.EncBinary() + _ = yym2684 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2685 := !z.EncBinary() + yy2arr2685 := z.EncBasicHandle().StructToArray + var yyq2685 [4]bool + _, _, _ = yysep2685, yyq2685, yy2arr2685 + const yyr2685 bool = false + yyq2685[0] = x.Kind != "" + yyq2685[1] = x.APIVersion != "" + yyq2685[2] = true + var yynn2685 int + if yyr2685 || yy2arr2685 { + r.EncodeArrayStart(4) + } else { + yynn2685 = 1 + for _, b := range yyq2685 { + if b { + yynn2685++ + } + } + r.EncodeMapStart(yynn2685) + yynn2685 = 0 + } + if yyr2685 || yy2arr2685 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2685[0] { + yym2687 := z.EncBinary() + _ = yym2687 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2685[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2688 := z.EncBinary() + _ = yym2688 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2685 || yy2arr2685 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2685[1] { + yym2690 := z.EncBinary() + _ = yym2690 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2685[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2691 := z.EncBinary() + _ = yym2691 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2685 || yy2arr2685 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2685[2] { + yy2693 := &x.ListMeta + yym2694 := z.EncBinary() + _ = yym2694 + if false { + } else if z.HasExtensions() && z.EncExt(yy2693) { + } else { + z.EncFallback(yy2693) + } + } else { + r.EncodeNil() + } + } else { + if yyq2685[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2695 := &x.ListMeta + yym2696 := z.EncBinary() + _ = yym2696 + if false { + } else if z.HasExtensions() && z.EncExt(yy2695) { + } else { + z.EncFallback(yy2695) + } + } + } + if yyr2685 || yy2arr2685 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2698 := z.EncBinary() + _ = yym2698 + if false { + } else { + h.encSliceEndpoints(([]Endpoints)(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 { + yym2699 := z.EncBinary() + _ = yym2699 + if false { + } else { + h.encSliceEndpoints(([]Endpoints)(x.Items), e) + } + } + } + if yyr2685 || yy2arr2685 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2700 := z.DecBinary() + _ = yym2700 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2701 := r.ContainerType() + if yyct2701 == codecSelferValueTypeMap1234 { + yyl2701 := r.ReadMapStart() + if yyl2701 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2701, d) + } + } else if yyct2701 == codecSelferValueTypeArray1234 { + yyl2701 := r.ReadArrayStart() + if yyl2701 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2701, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2702Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2702Slc + var yyhl2702 bool = l >= 0 + for yyj2702 := 0; ; yyj2702++ { + if yyhl2702 { + if yyj2702 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2702Slc = r.DecodeBytes(yys2702Slc, true, true) + yys2702 := string(yys2702Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2702 { + 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 { + yyv2705 := &x.ListMeta + yym2706 := z.DecBinary() + _ = yym2706 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2705) { + } else { + z.DecFallback(yyv2705, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2707 := &x.Items + yym2708 := z.DecBinary() + _ = yym2708 + if false { + } else { + h.decSliceEndpoints((*[]Endpoints)(yyv2707), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2702) + } // end switch yys2702 + } // end for yyj2702 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2709 int + var yyb2709 bool + var yyhl2709 bool = l >= 0 + yyj2709++ + if yyhl2709 { + yyb2709 = yyj2709 > l + } else { + yyb2709 = r.CheckBreak() + } + if yyb2709 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2709++ + if yyhl2709 { + yyb2709 = yyj2709 > l + } else { + yyb2709 = r.CheckBreak() + } + if yyb2709 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2709++ + if yyhl2709 { + yyb2709 = yyj2709 > l + } else { + yyb2709 = r.CheckBreak() + } + if yyb2709 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2712 := &x.ListMeta + yym2713 := z.DecBinary() + _ = yym2713 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2712) { + } else { + z.DecFallback(yyv2712, false) + } + } + yyj2709++ + if yyhl2709 { + yyb2709 = yyj2709 > l + } else { + yyb2709 = r.CheckBreak() + } + if yyb2709 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2714 := &x.Items + yym2715 := z.DecBinary() + _ = yym2715 + if false { + } else { + h.decSliceEndpoints((*[]Endpoints)(yyv2714), d) + } + } + for { + yyj2709++ + if yyhl2709 { + yyb2709 = yyj2709 > l + } else { + yyb2709 = r.CheckBreak() + } + if yyb2709 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2709-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2716 := z.EncBinary() + _ = yym2716 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2717 := !z.EncBinary() + yy2arr2717 := z.EncBasicHandle().StructToArray + var yyq2717 [4]bool + _, _, _ = yysep2717, yyq2717, yy2arr2717 + const yyr2717 bool = false + yyq2717[0] = x.PodCIDR != "" + yyq2717[1] = x.ExternalID != "" + yyq2717[2] = x.ProviderID != "" + yyq2717[3] = x.Unschedulable != false + var yynn2717 int + if yyr2717 || yy2arr2717 { + r.EncodeArrayStart(4) + } else { + yynn2717 = 0 + for _, b := range yyq2717 { + if b { + yynn2717++ + } + } + r.EncodeMapStart(yynn2717) + yynn2717 = 0 + } + if yyr2717 || yy2arr2717 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2717[0] { + yym2719 := z.EncBinary() + _ = yym2719 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2717[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2720 := z.EncBinary() + _ = yym2720 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + } + } + } + if yyr2717 || yy2arr2717 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2717[1] { + yym2722 := z.EncBinary() + _ = yym2722 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2717[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("externalID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2723 := z.EncBinary() + _ = yym2723 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) + } + } + } + if yyr2717 || yy2arr2717 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2717[2] { + yym2725 := z.EncBinary() + _ = yym2725 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2717[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("providerID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2726 := z.EncBinary() + _ = yym2726 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) + } + } + } + if yyr2717 || yy2arr2717 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2717[3] { + yym2728 := z.EncBinary() + _ = yym2728 + if false { + } else { + r.EncodeBool(bool(x.Unschedulable)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2717[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2729 := z.EncBinary() + _ = yym2729 + if false { + } else { + r.EncodeBool(bool(x.Unschedulable)) + } + } + } + if yyr2717 || yy2arr2717 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2730 := z.DecBinary() + _ = yym2730 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2731 := r.ContainerType() + if yyct2731 == codecSelferValueTypeMap1234 { + yyl2731 := r.ReadMapStart() + if yyl2731 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2731, d) + } + } else if yyct2731 == codecSelferValueTypeArray1234 { + yyl2731 := r.ReadArrayStart() + if yyl2731 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2731, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2732Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2732Slc + var yyhl2732 bool = l >= 0 + for yyj2732 := 0; ; yyj2732++ { + if yyhl2732 { + if yyj2732 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2732Slc = r.DecodeBytes(yys2732Slc, true, true) + yys2732 := string(yys2732Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2732 { + case "podCIDR": + if r.TryDecodeAsNil() { + x.PodCIDR = "" + } else { + x.PodCIDR = string(r.DecodeString()) + } + case "externalID": + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = string(r.DecodeString()) + } + case "providerID": + if r.TryDecodeAsNil() { + x.ProviderID = "" + } else { + x.ProviderID = string(r.DecodeString()) + } + case "unschedulable": + if r.TryDecodeAsNil() { + x.Unschedulable = false + } else { + x.Unschedulable = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys2732) + } // end switch yys2732 + } // end for yyj2732 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2737 int + var yyb2737 bool + var yyhl2737 bool = l >= 0 + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l + } else { + yyb2737 = r.CheckBreak() + } + if yyb2737 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodCIDR = "" + } else { + x.PodCIDR = string(r.DecodeString()) + } + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l + } else { + yyb2737 = r.CheckBreak() + } + if yyb2737 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = string(r.DecodeString()) + } + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l + } else { + yyb2737 = r.CheckBreak() + } + if yyb2737 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ProviderID = "" + } else { + x.ProviderID = string(r.DecodeString()) + } + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l + } else { + yyb2737 = r.CheckBreak() + } + if yyb2737 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Unschedulable = false + } else { + x.Unschedulable = bool(r.DecodeBool()) + } + for { + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l + } else { + yyb2737 = r.CheckBreak() + } + if yyb2737 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2737-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2742 := z.EncBinary() + _ = yym2742 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2743 := !z.EncBinary() + yy2arr2743 := z.EncBasicHandle().StructToArray + var yyq2743 [1]bool + _, _, _ = yysep2743, yyq2743, yy2arr2743 + const yyr2743 bool = false + var yynn2743 int + if yyr2743 || yy2arr2743 { + r.EncodeArrayStart(1) + } else { + yynn2743 = 1 + for _, b := range yyq2743 { + if b { + yynn2743++ + } + } + r.EncodeMapStart(yynn2743) + yynn2743 = 0 + } + if yyr2743 || yy2arr2743 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2745 := z.EncBinary() + _ = yym2745 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2746 := z.EncBinary() + _ = yym2746 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2743 || yy2arr2743 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2747 := z.DecBinary() + _ = yym2747 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2748 := r.ContainerType() + if yyct2748 == codecSelferValueTypeMap1234 { + yyl2748 := r.ReadMapStart() + if yyl2748 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2748, d) + } + } else if yyct2748 == codecSelferValueTypeArray1234 { + yyl2748 := r.ReadArrayStart() + if yyl2748 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2748, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2749Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2749Slc + var yyhl2749 bool = l >= 0 + for yyj2749 := 0; ; yyj2749++ { + if yyhl2749 { + if yyj2749 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2749Slc = r.DecodeBytes(yys2749Slc, true, true) + yys2749 := string(yys2749Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2749 { + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys2749) + } // end switch yys2749 + } // end for yyj2749 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2751 int + var yyb2751 bool + var yyhl2751 bool = l >= 0 + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + for { + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l + } else { + yyb2751 = r.CheckBreak() + } + if yyb2751 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2751-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2753 := z.EncBinary() + _ = yym2753 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2754 := !z.EncBinary() + yy2arr2754 := z.EncBasicHandle().StructToArray + var yyq2754 [1]bool + _, _, _ = yysep2754, yyq2754, yy2arr2754 + const yyr2754 bool = false + yyq2754[0] = true + var yynn2754 int + if yyr2754 || yy2arr2754 { + r.EncodeArrayStart(1) + } else { + yynn2754 = 0 + for _, b := range yyq2754 { + if b { + yynn2754++ + } + } + r.EncodeMapStart(yynn2754) + yynn2754 = 0 + } + if yyr2754 || yy2arr2754 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2754[0] { + yy2756 := &x.KubeletEndpoint + yy2756.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2754[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2757 := &x.KubeletEndpoint + yy2757.CodecEncodeSelf(e) + } + } + if yyr2754 || yy2arr2754 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2758 := z.DecBinary() + _ = yym2758 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2759 := r.ContainerType() + if yyct2759 == codecSelferValueTypeMap1234 { + yyl2759 := r.ReadMapStart() + if yyl2759 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2759, d) + } + } else if yyct2759 == codecSelferValueTypeArray1234 { + yyl2759 := r.ReadArrayStart() + if yyl2759 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2759, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2760Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2760Slc + var yyhl2760 bool = l >= 0 + for yyj2760 := 0; ; yyj2760++ { + if yyhl2760 { + if yyj2760 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2760Slc = r.DecodeBytes(yys2760Slc, true, true) + yys2760 := string(yys2760Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2760 { + case "kubeletEndpoint": + if r.TryDecodeAsNil() { + x.KubeletEndpoint = DaemonEndpoint{} + } else { + yyv2761 := &x.KubeletEndpoint + yyv2761.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2760) + } // end switch yys2760 + } // end for yyj2760 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2762 int + var yyb2762 bool + var yyhl2762 bool = l >= 0 + yyj2762++ + if yyhl2762 { + yyb2762 = yyj2762 > l + } else { + yyb2762 = r.CheckBreak() + } + if yyb2762 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeletEndpoint = DaemonEndpoint{} + } else { + yyv2763 := &x.KubeletEndpoint + yyv2763.CodecDecodeSelf(d) + } + for { + yyj2762++ + if yyhl2762 { + yyb2762 = yyj2762 > l + } else { + yyb2762 = r.CheckBreak() + } + if yyb2762 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2762-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2764 := z.EncBinary() + _ = yym2764 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2765 := !z.EncBinary() + yy2arr2765 := z.EncBasicHandle().StructToArray + var yyq2765 [10]bool + _, _, _ = yysep2765, yyq2765, yy2arr2765 + const yyr2765 bool = false + var yynn2765 int + if yyr2765 || yy2arr2765 { + r.EncodeArrayStart(10) + } else { + yynn2765 = 10 + for _, b := range yyq2765 { + if b { + yynn2765++ + } + } + r.EncodeMapStart(yynn2765) + yynn2765 = 0 + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2767 := z.EncBinary() + _ = yym2767 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("machineID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2768 := z.EncBinary() + _ = yym2768 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2770 := z.EncBinary() + _ = yym2770 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2771 := z.EncBinary() + _ = yym2771 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2773 := z.EncBinary() + _ = yym2773 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("bootID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2774 := z.EncBinary() + _ = yym2774 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2776 := z.EncBinary() + _ = yym2776 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2777 := z.EncBinary() + _ = yym2777 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2779 := z.EncBinary() + _ = yym2779 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("osImage")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2780 := z.EncBinary() + _ = yym2780 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2782 := z.EncBinary() + _ = yym2782 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2783 := z.EncBinary() + _ = yym2783 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2785 := z.EncBinary() + _ = yym2785 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2786 := z.EncBinary() + _ = yym2786 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2788 := z.EncBinary() + _ = yym2788 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2789 := z.EncBinary() + _ = yym2789 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2791 := z.EncBinary() + _ = yym2791 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2792 := z.EncBinary() + _ = yym2792 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2794 := z.EncBinary() + _ = yym2794 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("architecture")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2795 := z.EncBinary() + _ = yym2795 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) + } + } + if yyr2765 || yy2arr2765 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2796 := z.DecBinary() + _ = yym2796 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2797 := r.ContainerType() + if yyct2797 == codecSelferValueTypeMap1234 { + yyl2797 := r.ReadMapStart() + if yyl2797 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2797, d) + } + } else if yyct2797 == codecSelferValueTypeArray1234 { + yyl2797 := r.ReadArrayStart() + if yyl2797 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2797, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2798Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2798Slc + var yyhl2798 bool = l >= 0 + for yyj2798 := 0; ; yyj2798++ { + if yyhl2798 { + if yyj2798 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2798Slc = r.DecodeBytes(yys2798Slc, true, true) + yys2798 := string(yys2798Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2798 { + case "machineID": + if r.TryDecodeAsNil() { + x.MachineID = "" + } else { + x.MachineID = string(r.DecodeString()) + } + case "systemUUID": + if r.TryDecodeAsNil() { + x.SystemUUID = "" + } else { + x.SystemUUID = string(r.DecodeString()) + } + case "bootID": + if r.TryDecodeAsNil() { + x.BootID = "" + } else { + x.BootID = string(r.DecodeString()) + } + case "kernelVersion": + if r.TryDecodeAsNil() { + x.KernelVersion = "" + } else { + x.KernelVersion = string(r.DecodeString()) + } + case "osImage": + if r.TryDecodeAsNil() { + x.OSImage = "" + } else { + x.OSImage = string(r.DecodeString()) + } + case "containerRuntimeVersion": + if r.TryDecodeAsNil() { + x.ContainerRuntimeVersion = "" + } else { + x.ContainerRuntimeVersion = string(r.DecodeString()) + } + case "kubeletVersion": + if r.TryDecodeAsNil() { + x.KubeletVersion = "" + } else { + x.KubeletVersion = string(r.DecodeString()) + } + case "kubeProxyVersion": + if r.TryDecodeAsNil() { + x.KubeProxyVersion = "" + } else { + x.KubeProxyVersion = string(r.DecodeString()) + } + case "operatingSystem": + if r.TryDecodeAsNil() { + x.OperatingSystem = "" + } else { + x.OperatingSystem = string(r.DecodeString()) + } + case "architecture": + if r.TryDecodeAsNil() { + x.Architecture = "" + } else { + x.Architecture = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys2798) + } // end switch yys2798 + } // end for yyj2798 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2809 int + var yyb2809 bool + var yyhl2809 bool = l >= 0 + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MachineID = "" + } else { + x.MachineID = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SystemUUID = "" + } else { + x.SystemUUID = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.BootID = "" + } else { + x.BootID = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KernelVersion = "" + } else { + x.KernelVersion = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OSImage = "" + } else { + x.OSImage = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerRuntimeVersion = "" + } else { + x.ContainerRuntimeVersion = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeletVersion = "" + } else { + x.KubeletVersion = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeProxyVersion = "" + } else { + x.KubeProxyVersion = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OperatingSystem = "" + } else { + x.OperatingSystem = string(r.DecodeString()) + } + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Architecture = "" + } else { + x.Architecture = string(r.DecodeString()) + } + for { + yyj2809++ + if yyhl2809 { + yyb2809 = yyj2809 > l + } else { + yyb2809 = r.CheckBreak() + } + if yyb2809 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2809-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2820 := z.EncBinary() + _ = yym2820 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2821 := !z.EncBinary() + yy2arr2821 := z.EncBasicHandle().StructToArray + var yyq2821 [10]bool + _, _, _ = yysep2821, yyq2821, yy2arr2821 + const yyr2821 bool = false + yyq2821[0] = len(x.Capacity) != 0 + yyq2821[1] = len(x.Allocatable) != 0 + yyq2821[2] = x.Phase != "" + yyq2821[3] = len(x.Conditions) != 0 + yyq2821[4] = len(x.Addresses) != 0 + yyq2821[5] = true + yyq2821[6] = true + yyq2821[7] = len(x.Images) != 0 + yyq2821[8] = len(x.VolumesInUse) != 0 + yyq2821[9] = len(x.VolumesAttached) != 0 + var yynn2821 int + if yyr2821 || yy2arr2821 { + r.EncodeArrayStart(10) + } else { + yynn2821 = 0 + for _, b := range yyq2821 { + if b { + yynn2821++ + } + } + r.EncodeMapStart(yynn2821) + yynn2821 = 0 + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[0] { + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capacity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capacity == nil { + r.EncodeNil() + } else { + x.Capacity.CodecEncodeSelf(e) + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[1] { + if x.Allocatable == nil { + r.EncodeNil() + } else { + x.Allocatable.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("allocatable")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Allocatable == nil { + r.EncodeNil() + } else { + x.Allocatable.CodecEncodeSelf(e) + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[2] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2821[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[3] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2826 := z.EncBinary() + _ = yym2826 + if false { + } else { + h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2827 := z.EncBinary() + _ = yym2827 + if false { + } else { + h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) + } + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[4] { + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2829 := z.EncBinary() + _ = yym2829 + if false { + } else { + h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("addresses")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Addresses == nil { + r.EncodeNil() + } else { + yym2830 := z.EncBinary() + _ = yym2830 + if false { + } else { + h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) + } + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[5] { + yy2832 := &x.DaemonEndpoints + yy2832.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2821[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2833 := &x.DaemonEndpoints + yy2833.CodecEncodeSelf(e) + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[6] { + yy2835 := &x.NodeInfo + yy2835.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2821[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2836 := &x.NodeInfo + yy2836.CodecEncodeSelf(e) + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[7] { + if x.Images == nil { + r.EncodeNil() + } else { + yym2838 := z.EncBinary() + _ = yym2838 + if false { + } else { + h.encSliceContainerImage(([]ContainerImage)(x.Images), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("images")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Images == nil { + r.EncodeNil() + } else { + yym2839 := z.EncBinary() + _ = yym2839 + if false { + } else { + h.encSliceContainerImage(([]ContainerImage)(x.Images), e) + } + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[8] { + if x.VolumesInUse == nil { + r.EncodeNil() + } else { + yym2841 := z.EncBinary() + _ = yym2841 + if false { + } else { + h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VolumesInUse == nil { + r.EncodeNil() + } else { + yym2842 := z.EncBinary() + _ = yym2842 + if false { + } else { + h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) + } + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2821[9] { + if x.VolumesAttached == nil { + r.EncodeNil() + } else { + yym2844 := z.EncBinary() + _ = yym2844 + if false { + } else { + h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2821[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.VolumesAttached == nil { + r.EncodeNil() + } else { + yym2845 := z.EncBinary() + _ = yym2845 + if false { + } else { + h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) + } + } + } + } + if yyr2821 || yy2arr2821 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2846 := z.DecBinary() + _ = yym2846 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2847 := r.ContainerType() + if yyct2847 == codecSelferValueTypeMap1234 { + yyl2847 := r.ReadMapStart() + if yyl2847 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2847, d) + } + } else if yyct2847 == codecSelferValueTypeArray1234 { + yyl2847 := r.ReadArrayStart() + if yyl2847 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2847, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2848Slc = r.DecodeBytes(yys2848Slc, true, true) + yys2848 := string(yys2848Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2848 { + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv2849 := &x.Capacity + yyv2849.CodecDecodeSelf(d) + } + case "allocatable": + if r.TryDecodeAsNil() { + x.Allocatable = nil + } else { + yyv2850 := &x.Allocatable + yyv2850.CodecDecodeSelf(d) + } + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NodePhase(r.DecodeString()) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2852 := &x.Conditions + yym2853 := z.DecBinary() + _ = yym2853 + if false { + } else { + h.decSliceNodeCondition((*[]NodeCondition)(yyv2852), d) + } + } + case "addresses": + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2854 := &x.Addresses + yym2855 := z.DecBinary() + _ = yym2855 + if false { + } else { + h.decSliceNodeAddress((*[]NodeAddress)(yyv2854), d) + } + } + case "daemonEndpoints": + if r.TryDecodeAsNil() { + x.DaemonEndpoints = NodeDaemonEndpoints{} + } else { + yyv2856 := &x.DaemonEndpoints + yyv2856.CodecDecodeSelf(d) + } + case "nodeInfo": + if r.TryDecodeAsNil() { + x.NodeInfo = NodeSystemInfo{} + } else { + yyv2857 := &x.NodeInfo + yyv2857.CodecDecodeSelf(d) + } + case "images": + if r.TryDecodeAsNil() { + x.Images = nil + } else { + yyv2858 := &x.Images + yym2859 := z.DecBinary() + _ = yym2859 + if false { + } else { + h.decSliceContainerImage((*[]ContainerImage)(yyv2858), d) + } + } + case "volumesInUse": + if r.TryDecodeAsNil() { + x.VolumesInUse = nil + } else { + yyv2860 := &x.VolumesInUse + yym2861 := z.DecBinary() + _ = yym2861 + if false { + } else { + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2860), d) + } + } + case "volumesAttached": + if r.TryDecodeAsNil() { + x.VolumesAttached = nil + } else { + yyv2862 := &x.VolumesAttached + yym2863 := z.DecBinary() + _ = yym2863 + if false { + } else { + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2862), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2848) + } // end switch yys2848 + } // end for yyj2848 + 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 yyj2864 int + var yyb2864 bool + var yyhl2864 bool = l >= 0 + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv2865 := &x.Capacity + yyv2865.CodecDecodeSelf(d) + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Allocatable = nil + } else { + yyv2866 := &x.Allocatable + yyv2866.CodecDecodeSelf(d) + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NodePhase(r.DecodeString()) + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2868 := &x.Conditions + yym2869 := z.DecBinary() + _ = yym2869 + if false { + } else { + h.decSliceNodeCondition((*[]NodeCondition)(yyv2868), d) + } + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv2870 := &x.Addresses + yym2871 := z.DecBinary() + _ = yym2871 + if false { + } else { + h.decSliceNodeAddress((*[]NodeAddress)(yyv2870), d) + } + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DaemonEndpoints = NodeDaemonEndpoints{} + } else { + yyv2872 := &x.DaemonEndpoints + yyv2872.CodecDecodeSelf(d) + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeInfo = NodeSystemInfo{} + } else { + yyv2873 := &x.NodeInfo + yyv2873.CodecDecodeSelf(d) + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Images = nil + } else { + yyv2874 := &x.Images + yym2875 := z.DecBinary() + _ = yym2875 + if false { + } else { + h.decSliceContainerImage((*[]ContainerImage)(yyv2874), d) + } + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumesInUse = nil + } else { + yyv2876 := &x.VolumesInUse + yym2877 := z.DecBinary() + _ = yym2877 + if false { + } else { + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2876), d) + } + } + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumesAttached = nil + } else { + yyv2878 := &x.VolumesAttached + yym2879 := z.DecBinary() + _ = yym2879 + if false { + } else { + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2878), d) + } + } + for { + yyj2864++ + if yyhl2864 { + yyb2864 = yyj2864 > l + } else { + yyb2864 = r.CheckBreak() + } + if yyb2864 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2864-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2880 := z.EncBinary() + _ = yym2880 + 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 + yym2881 := z.DecBinary() + _ = yym2881 + 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 { + yym2882 := z.EncBinary() + _ = yym2882 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2883 := !z.EncBinary() + yy2arr2883 := z.EncBasicHandle().StructToArray + var yyq2883 [2]bool + _, _, _ = yysep2883, yyq2883, yy2arr2883 + const yyr2883 bool = false + var yynn2883 int + if yyr2883 || yy2arr2883 { + r.EncodeArrayStart(2) + } else { + yynn2883 = 2 + for _, b := range yyq2883 { + if b { + yynn2883++ + } + } + r.EncodeMapStart(yynn2883) + yynn2883 = 0 + } + if yyr2883 || yy2arr2883 { + 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 yyr2883 || yy2arr2883 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2886 := z.EncBinary() + _ = yym2886 + 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) + yym2887 := z.EncBinary() + _ = yym2887 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) + } + } + if yyr2883 || yy2arr2883 { + 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 + yym2888 := z.DecBinary() + _ = yym2888 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2889 := r.ContainerType() + if yyct2889 == codecSelferValueTypeMap1234 { + yyl2889 := r.ReadMapStart() + if yyl2889 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2889, d) + } + } else if yyct2889 == codecSelferValueTypeArray1234 { + yyl2889 := r.ReadArrayStart() + if yyl2889 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2889, 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 yys2890Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2890Slc + var yyhl2890 bool = l >= 0 + for yyj2890 := 0; ; yyj2890++ { + if yyhl2890 { + if yyj2890 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2890Slc = r.DecodeBytes(yys2890Slc, true, true) + yys2890 := string(yys2890Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2890 { + 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, yys2890) + } // end switch yys2890 + } // end for yyj2890 + 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 yyj2893 int + var yyb2893 bool + var yyhl2893 bool = l >= 0 + yyj2893++ + if yyhl2893 { + yyb2893 = yyj2893 > l + } else { + yyb2893 = r.CheckBreak() + } + if yyb2893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = UniqueVolumeName(r.DecodeString()) + } + yyj2893++ + if yyhl2893 { + yyb2893 = yyj2893 > l + } else { + yyb2893 = r.CheckBreak() + } + if yyb2893 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DevicePath = "" + } else { + x.DevicePath = string(r.DecodeString()) + } + for { + yyj2893++ + if yyhl2893 { + yyb2893 = yyj2893 > l + } else { + yyb2893 = r.CheckBreak() + } + if yyb2893 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2893-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 { + yym2896 := z.EncBinary() + _ = yym2896 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2897 := !z.EncBinary() + yy2arr2897 := z.EncBasicHandle().StructToArray + var yyq2897 [1]bool + _, _, _ = yysep2897, yyq2897, yy2arr2897 + const yyr2897 bool = false + yyq2897[0] = len(x.PreferAvoidPods) != 0 + var yynn2897 int + if yyr2897 || yy2arr2897 { + r.EncodeArrayStart(1) + } else { + yynn2897 = 0 + for _, b := range yyq2897 { + if b { + yynn2897++ + } + } + r.EncodeMapStart(yynn2897) + yynn2897 = 0 + } + if yyr2897 || yy2arr2897 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2897[0] { + if x.PreferAvoidPods == nil { + r.EncodeNil() + } else { + yym2899 := z.EncBinary() + _ = yym2899 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2897[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PreferAvoidPods == nil { + r.EncodeNil() + } else { + yym2900 := z.EncBinary() + _ = yym2900 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } + } + } + } + if yyr2897 || yy2arr2897 { + 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 + yym2901 := z.DecBinary() + _ = yym2901 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2902 := r.ContainerType() + if yyct2902 == codecSelferValueTypeMap1234 { + yyl2902 := r.ReadMapStart() + if yyl2902 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2902, d) + } + } else if yyct2902 == codecSelferValueTypeArray1234 { + yyl2902 := r.ReadArrayStart() + if yyl2902 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2902, 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 yys2903Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2903Slc + var yyhl2903 bool = l >= 0 + for yyj2903 := 0; ; yyj2903++ { + if yyhl2903 { + if yyj2903 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2903Slc = r.DecodeBytes(yys2903Slc, true, true) + yys2903 := string(yys2903Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2903 { + case "preferAvoidPods": + if r.TryDecodeAsNil() { + x.PreferAvoidPods = nil + } else { + yyv2904 := &x.PreferAvoidPods + yym2905 := z.DecBinary() + _ = yym2905 + if false { + } else { + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2904), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2903) + } // end switch yys2903 + } // end for yyj2903 + 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 yyj2906 int + var yyb2906 bool + var yyhl2906 bool = l >= 0 + yyj2906++ + if yyhl2906 { + yyb2906 = yyj2906 > l + } else { + yyb2906 = r.CheckBreak() + } + if yyb2906 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferAvoidPods = nil + } else { + yyv2907 := &x.PreferAvoidPods + yym2908 := z.DecBinary() + _ = yym2908 + if false { + } else { + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2907), d) + } + } + for { + yyj2906++ + if yyhl2906 { + yyb2906 = yyj2906 > l + } else { + yyb2906 = r.CheckBreak() + } + if yyb2906 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2906-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 { + yym2909 := z.EncBinary() + _ = yym2909 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2910 := !z.EncBinary() + yy2arr2910 := z.EncBasicHandle().StructToArray + var yyq2910 [4]bool + _, _, _ = yysep2910, yyq2910, yy2arr2910 + const yyr2910 bool = false + yyq2910[1] = true + yyq2910[2] = x.Reason != "" + yyq2910[3] = x.Message != "" + var yynn2910 int + if yyr2910 || yy2arr2910 { + r.EncodeArrayStart(4) + } else { + yynn2910 = 1 + for _, b := range yyq2910 { + if b { + yynn2910++ + } + } + r.EncodeMapStart(yynn2910) + yynn2910 = 0 + } + if yyr2910 || yy2arr2910 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy2912 := &x.PodSignature + yy2912.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podSignature")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2913 := &x.PodSignature + yy2913.CodecEncodeSelf(e) + } + if yyr2910 || yy2arr2910 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2910[1] { + yy2915 := &x.EvictionTime + yym2916 := z.EncBinary() + _ = yym2916 + if false { + } else if z.HasExtensions() && z.EncExt(yy2915) { + } else if yym2916 { + z.EncBinaryMarshal(yy2915) + } else if !yym2916 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2915) + } else { + z.EncFallback(yy2915) + } + } else { + r.EncodeNil() + } + } else { + if yyq2910[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2917 := &x.EvictionTime + yym2918 := z.EncBinary() + _ = yym2918 + if false { + } else if z.HasExtensions() && z.EncExt(yy2917) { + } else if yym2918 { + z.EncBinaryMarshal(yy2917) + } else if !yym2918 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2917) + } else { + z.EncFallback(yy2917) + } + } + } + if yyr2910 || yy2arr2910 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2910[2] { + yym2920 := z.EncBinary() + _ = yym2920 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2910[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2921 := z.EncBinary() + _ = yym2921 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2910 || yy2arr2910 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2910[3] { + yym2923 := z.EncBinary() + _ = yym2923 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2910[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2924 := z.EncBinary() + _ = yym2924 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2910 || yy2arr2910 { + 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 + yym2925 := z.DecBinary() + _ = yym2925 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2926 := r.ContainerType() + if yyct2926 == codecSelferValueTypeMap1234 { + yyl2926 := r.ReadMapStart() + if yyl2926 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2926, d) + } + } else if yyct2926 == codecSelferValueTypeArray1234 { + yyl2926 := r.ReadArrayStart() + if yyl2926 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2926, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2927Slc = r.DecodeBytes(yys2927Slc, true, true) + yys2927 := string(yys2927Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2927 { + case "podSignature": + if r.TryDecodeAsNil() { + x.PodSignature = PodSignature{} + } else { + yyv2928 := &x.PodSignature + yyv2928.CodecDecodeSelf(d) + } + case "evictionTime": + if r.TryDecodeAsNil() { + x.EvictionTime = pkg2_unversioned.Time{} + } else { + yyv2929 := &x.EvictionTime + yym2930 := z.DecBinary() + _ = yym2930 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2929) { + } else if yym2930 { + z.DecBinaryUnmarshal(yyv2929) + } else if !yym2930 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2929) + } else { + z.DecFallback(yyv2929, 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, yys2927) + } // end switch yys2927 + } // end for yyj2927 + 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 yyj2933 int + var yyb2933 bool + var yyhl2933 bool = l >= 0 + yyj2933++ + if yyhl2933 { + yyb2933 = yyj2933 > l + } else { + yyb2933 = r.CheckBreak() + } + if yyb2933 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodSignature = PodSignature{} + } else { + yyv2934 := &x.PodSignature + yyv2934.CodecDecodeSelf(d) + } + yyj2933++ + if yyhl2933 { + yyb2933 = yyj2933 > l + } else { + yyb2933 = r.CheckBreak() + } + if yyb2933 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionTime = pkg2_unversioned.Time{} + } else { + yyv2935 := &x.EvictionTime + yym2936 := z.DecBinary() + _ = yym2936 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2935) { + } else if yym2936 { + z.DecBinaryUnmarshal(yyv2935) + } else if !yym2936 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2935) + } else { + z.DecFallback(yyv2935, false) + } + } + yyj2933++ + if yyhl2933 { + yyb2933 = yyj2933 > l + } else { + yyb2933 = r.CheckBreak() + } + if yyb2933 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj2933++ + if yyhl2933 { + yyb2933 = yyj2933 > l + } else { + yyb2933 = r.CheckBreak() + } + if yyb2933 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj2933++ + if yyhl2933 { + yyb2933 = yyj2933 > l + } else { + yyb2933 = r.CheckBreak() + } + if yyb2933 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2933-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 { + yym2939 := z.EncBinary() + _ = yym2939 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2940 := !z.EncBinary() + yy2arr2940 := z.EncBasicHandle().StructToArray + var yyq2940 [1]bool + _, _, _ = yysep2940, yyq2940, yy2arr2940 + const yyr2940 bool = false + yyq2940[0] = x.PodController != nil + var yynn2940 int + if yyr2940 || yy2arr2940 { + r.EncodeArrayStart(1) + } else { + yynn2940 = 0 + for _, b := range yyq2940 { + if b { + yynn2940++ + } + } + r.EncodeMapStart(yynn2940) + yynn2940 = 0 + } + if yyr2940 || yy2arr2940 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2940[0] { + if x.PodController == nil { + r.EncodeNil() + } else { + x.PodController.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2940[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 yyr2940 || yy2arr2940 { + 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 + yym2942 := z.DecBinary() + _ = yym2942 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2943 := r.ContainerType() + if yyct2943 == codecSelferValueTypeMap1234 { + yyl2943 := r.ReadMapStart() + if yyl2943 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2943, d) + } + } else if yyct2943 == codecSelferValueTypeArray1234 { + yyl2943 := r.ReadArrayStart() + if yyl2943 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2943, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2944Slc = r.DecodeBytes(yys2944Slc, true, true) + yys2944 := string(yys2944Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2944 { + 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, yys2944) + } // end switch yys2944 + } // end for yyj2944 + 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 yyj2946 int + var yyb2946 bool + var yyhl2946 bool = l >= 0 + yyj2946++ + if yyhl2946 { + yyb2946 = yyj2946 > l + } else { + yyb2946 = r.CheckBreak() + } + if yyb2946 { + 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 { + yyj2946++ + if yyhl2946 { + yyb2946 = yyj2946 > l + } else { + yyb2946 = r.CheckBreak() + } + if yyb2946 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2946-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 { + yym2948 := z.EncBinary() + _ = yym2948 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2949 := !z.EncBinary() + yy2arr2949 := z.EncBasicHandle().StructToArray + var yyq2949 [2]bool + _, _, _ = yysep2949, yyq2949, yy2arr2949 + const yyr2949 bool = false + yyq2949[1] = x.SizeBytes != 0 + var yynn2949 int + if yyr2949 || yy2arr2949 { + r.EncodeArrayStart(2) + } else { + yynn2949 = 1 + for _, b := range yyq2949 { + if b { + yynn2949++ + } + } + r.EncodeMapStart(yynn2949) + yynn2949 = 0 + } + if yyr2949 || yy2arr2949 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Names == nil { + r.EncodeNil() + } else { + yym2951 := z.EncBinary() + _ = yym2951 + 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 { + yym2952 := z.EncBinary() + _ = yym2952 + if false { + } else { + z.F.EncSliceStringV(x.Names, false, e) + } + } + } + if yyr2949 || yy2arr2949 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2949[1] { + yym2954 := z.EncBinary() + _ = yym2954 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2949[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2955 := z.EncBinary() + _ = yym2955 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } + } + if yyr2949 || yy2arr2949 { + 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 + yym2956 := z.DecBinary() + _ = yym2956 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2957 := r.ContainerType() + if yyct2957 == codecSelferValueTypeMap1234 { + yyl2957 := r.ReadMapStart() + if yyl2957 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2957, d) + } + } else if yyct2957 == codecSelferValueTypeArray1234 { + yyl2957 := r.ReadArrayStart() + if yyl2957 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2957, 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 yys2958Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2958Slc + var yyhl2958 bool = l >= 0 + for yyj2958 := 0; ; yyj2958++ { + if yyhl2958 { + if yyj2958 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2958Slc = r.DecodeBytes(yys2958Slc, true, true) + yys2958 := string(yys2958Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2958 { + case "names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv2959 := &x.Names + yym2960 := z.DecBinary() + _ = yym2960 + if false { + } else { + z.F.DecSliceStringX(yyv2959, false, d) + } + } + case "sizeBytes": + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys2958) + } // end switch yys2958 + } // end for yyj2958 + 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 yyj2962 int + var yyb2962 bool + var yyhl2962 bool = l >= 0 + yyj2962++ + if yyhl2962 { + yyb2962 = yyj2962 > l + } else { + yyb2962 = r.CheckBreak() + } + if yyb2962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv2963 := &x.Names + yym2964 := z.DecBinary() + _ = yym2964 + if false { + } else { + z.F.DecSliceStringX(yyv2963, false, d) + } + } + yyj2962++ + if yyhl2962 { + yyb2962 = yyj2962 > l + } else { + yyb2962 = r.CheckBreak() + } + if yyb2962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + for { + yyj2962++ + if yyhl2962 { + yyb2962 = yyj2962 > l + } else { + yyb2962 = r.CheckBreak() + } + if yyb2962 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2962-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2966 := z.EncBinary() + _ = yym2966 + 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 + yym2967 := z.DecBinary() + _ = yym2967 + 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 + yym2968 := z.EncBinary() + _ = yym2968 + 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 + yym2969 := z.DecBinary() + _ = yym2969 + 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 { + yym2970 := z.EncBinary() + _ = yym2970 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2971 := !z.EncBinary() + yy2arr2971 := z.EncBasicHandle().StructToArray + var yyq2971 [6]bool + _, _, _ = yysep2971, yyq2971, yy2arr2971 + const yyr2971 bool = false + yyq2971[2] = true + yyq2971[3] = true + yyq2971[4] = x.Reason != "" + yyq2971[5] = x.Message != "" + var yynn2971 int + if yyr2971 || yy2arr2971 { + r.EncodeArrayStart(6) + } else { + yynn2971 = 2 + for _, b := range yyq2971 { + if b { + yynn2971++ + } + } + r.EncodeMapStart(yynn2971) + yynn2971 = 0 + } + if yyr2971 || yy2arr2971 { + 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 yyr2971 || yy2arr2971 { + 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 yyr2971 || yy2arr2971 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2971[2] { + yy2975 := &x.LastHeartbeatTime + yym2976 := z.EncBinary() + _ = yym2976 + if false { + } else if z.HasExtensions() && z.EncExt(yy2975) { + } else if yym2976 { + z.EncBinaryMarshal(yy2975) + } else if !yym2976 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2975) + } else { + z.EncFallback(yy2975) + } + } else { + r.EncodeNil() + } + } else { + if yyq2971[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2977 := &x.LastHeartbeatTime + yym2978 := z.EncBinary() + _ = yym2978 + if false { + } else if z.HasExtensions() && z.EncExt(yy2977) { + } else if yym2978 { + z.EncBinaryMarshal(yy2977) + } else if !yym2978 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2977) + } else { + z.EncFallback(yy2977) + } + } + } + if yyr2971 || yy2arr2971 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2971[3] { + yy2980 := &x.LastTransitionTime + yym2981 := z.EncBinary() + _ = yym2981 + if false { + } else if z.HasExtensions() && z.EncExt(yy2980) { + } else if yym2981 { + z.EncBinaryMarshal(yy2980) + } else if !yym2981 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2980) + } else { + z.EncFallback(yy2980) + } + } else { + r.EncodeNil() + } + } else { + if yyq2971[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2982 := &x.LastTransitionTime + yym2983 := z.EncBinary() + _ = yym2983 + if false { + } else if z.HasExtensions() && z.EncExt(yy2982) { + } else if yym2983 { + z.EncBinaryMarshal(yy2982) + } else if !yym2983 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2982) + } else { + z.EncFallback(yy2982) + } + } + } + if yyr2971 || yy2arr2971 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2971[4] { + yym2985 := z.EncBinary() + _ = yym2985 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2971[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2986 := z.EncBinary() + _ = yym2986 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2971 || yy2arr2971 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2971[5] { + yym2988 := z.EncBinary() + _ = yym2988 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2971[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2989 := z.EncBinary() + _ = yym2989 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2971 || yy2arr2971 { + 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 + yym2990 := z.DecBinary() + _ = yym2990 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2991 := r.ContainerType() + if yyct2991 == codecSelferValueTypeMap1234 { + yyl2991 := r.ReadMapStart() + if yyl2991 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2991, d) + } + } else if yyct2991 == codecSelferValueTypeArray1234 { + yyl2991 := r.ReadArrayStart() + if yyl2991 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2991, 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 yys2992Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2992Slc + var yyhl2992 bool = l >= 0 + for yyj2992 := 0; ; yyj2992++ { + if yyhl2992 { + if yyj2992 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2992Slc = r.DecodeBytes(yys2992Slc, true, true) + yys2992 := string(yys2992Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2992 { + 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 { + yyv2995 := &x.LastHeartbeatTime + yym2996 := z.DecBinary() + _ = yym2996 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2995) { + } else if yym2996 { + z.DecBinaryUnmarshal(yyv2995) + } else if !yym2996 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2995) + } else { + z.DecFallback(yyv2995, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv2997 := &x.LastTransitionTime + yym2998 := z.DecBinary() + _ = yym2998 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2997) { + } else if yym2998 { + z.DecBinaryUnmarshal(yyv2997) + } else if !yym2998 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2997) + } else { + z.DecFallback(yyv2997, 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, yys2992) + } // end switch yys2992 + } // end for yyj2992 + 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 yyj3001 int + var yyb3001 bool + var yyhl3001 bool = l >= 0 + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeConditionType(r.DecodeString()) + } + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastHeartbeatTime = pkg2_unversioned.Time{} + } else { + yyv3004 := &x.LastHeartbeatTime + yym3005 := z.DecBinary() + _ = yym3005 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3004) { + } else if yym3005 { + z.DecBinaryUnmarshal(yyv3004) + } else if !yym3005 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3004) + } else { + z.DecFallback(yyv3004, false) + } + } + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv3006 := &x.LastTransitionTime + yym3007 := z.DecBinary() + _ = yym3007 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3006) { + } else if yym3007 { + z.DecBinaryUnmarshal(yyv3006) + } else if !yym3007 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3006) + } else { + z.DecFallback(yyv3006, false) + } + } + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj3001++ + if yyhl3001 { + yyb3001 = yyj3001 > l + } else { + yyb3001 = r.CheckBreak() + } + if yyb3001 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3001-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3010 := z.EncBinary() + _ = yym3010 + 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 + yym3011 := z.DecBinary() + _ = yym3011 + 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 { + yym3012 := z.EncBinary() + _ = yym3012 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3013 := !z.EncBinary() + yy2arr3013 := z.EncBasicHandle().StructToArray + var yyq3013 [2]bool + _, _, _ = yysep3013, yyq3013, yy2arr3013 + const yyr3013 bool = false + var yynn3013 int + if yyr3013 || yy2arr3013 { + r.EncodeArrayStart(2) + } else { + yynn3013 = 2 + for _, b := range yyq3013 { + if b { + yynn3013++ + } + } + r.EncodeMapStart(yynn3013) + yynn3013 = 0 + } + if yyr3013 || yy2arr3013 { + 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 yyr3013 || yy2arr3013 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3016 := z.EncBinary() + _ = yym3016 + 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) + yym3017 := z.EncBinary() + _ = yym3017 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } + if yyr3013 || yy2arr3013 { + 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 + yym3018 := z.DecBinary() + _ = yym3018 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3019 := r.ContainerType() + if yyct3019 == codecSelferValueTypeMap1234 { + yyl3019 := r.ReadMapStart() + if yyl3019 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3019, d) + } + } else if yyct3019 == codecSelferValueTypeArray1234 { + yyl3019 := r.ReadArrayStart() + if yyl3019 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3019, 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 yys3020Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3020Slc + var yyhl3020 bool = l >= 0 + for yyj3020 := 0; ; yyj3020++ { + if yyhl3020 { + if yyj3020 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3020Slc = r.DecodeBytes(yys3020Slc, true, true) + yys3020 := string(yys3020Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3020 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeAddressType(r.DecodeString()) + } + case "address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3020) + } // end switch yys3020 + } // end for yyj3020 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3023 int + var yyb3023 bool + var yyhl3023 bool = l >= 0 + yyj3023++ + if yyhl3023 { + yyb3023 = yyj3023 > l + } else { + yyb3023 = r.CheckBreak() + } + if yyb3023 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeAddressType(r.DecodeString()) + } + yyj3023++ + if yyhl3023 { + yyb3023 = yyj3023 > l + } else { + yyb3023 = r.CheckBreak() + } + if yyb3023 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + for { + yyj3023++ + if yyhl3023 { + yyb3023 = yyj3023 > l + } else { + yyb3023 = r.CheckBreak() + } + if yyb3023 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3023-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3026 := z.EncBinary() + _ = yym3026 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3027 := z.DecBinary() + _ = yym3027 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3028 := z.EncBinary() + _ = yym3028 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + h.encResourceList((ResourceList)(x), e) + } + } +} + +func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3029 := z.DecBinary() + _ = yym3029 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + h.decResourceList((*ResourceList)(x), d) + } +} + +func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3030 := z.EncBinary() + _ = yym3030 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3031 := !z.EncBinary() + yy2arr3031 := z.EncBasicHandle().StructToArray + var yyq3031 [5]bool + _, _, _ = yysep3031, yyq3031, yy2arr3031 + const yyr3031 bool = false + yyq3031[0] = x.Kind != "" + yyq3031[1] = x.APIVersion != "" + yyq3031[2] = true + yyq3031[3] = true + yyq3031[4] = true + var yynn3031 int + if yyr3031 || yy2arr3031 { + r.EncodeArrayStart(5) + } else { + yynn3031 = 0 + for _, b := range yyq3031 { + if b { + yynn3031++ + } + } + r.EncodeMapStart(yynn3031) + yynn3031 = 0 + } + if yyr3031 || yy2arr3031 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3031[0] { + yym3033 := z.EncBinary() + _ = yym3033 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3031[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3034 := z.EncBinary() + _ = yym3034 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3031 || yy2arr3031 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3031[1] { + yym3036 := z.EncBinary() + _ = yym3036 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3031[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3037 := z.EncBinary() + _ = yym3037 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3031 || yy2arr3031 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3031[2] { + yy3039 := &x.ObjectMeta + yy3039.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3031[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3040 := &x.ObjectMeta + yy3040.CodecEncodeSelf(e) + } + } + if yyr3031 || yy2arr3031 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3031[3] { + yy3042 := &x.Spec + yy3042.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3031[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3043 := &x.Spec + yy3043.CodecEncodeSelf(e) + } + } + if yyr3031 || yy2arr3031 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3031[4] { + yy3045 := &x.Status + yy3045.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3031[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3046 := &x.Status + yy3046.CodecEncodeSelf(e) + } + } + if yyr3031 || yy2arr3031 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3047 := z.DecBinary() + _ = yym3047 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3048 := r.ContainerType() + if yyct3048 == codecSelferValueTypeMap1234 { + yyl3048 := r.ReadMapStart() + if yyl3048 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3048, d) + } + } else if yyct3048 == codecSelferValueTypeArray1234 { + yyl3048 := r.ReadArrayStart() + if yyl3048 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3048, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3049Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3049Slc + var yyhl3049 bool = l >= 0 + for yyj3049 := 0; ; yyj3049++ { + if yyhl3049 { + if yyj3049 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3049Slc = r.DecodeBytes(yys3049Slc, true, true) + yys3049 := string(yys3049Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3049 { + 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 { + yyv3052 := &x.ObjectMeta + yyv3052.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NodeSpec{} + } else { + yyv3053 := &x.Spec + yyv3053.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = NodeStatus{} + } else { + yyv3054 := &x.Status + yyv3054.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3049) + } // end switch yys3049 + } // end for yyj3049 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3055 int + var yyb3055 bool + var yyhl3055 bool = l >= 0 + yyj3055++ + if yyhl3055 { + yyb3055 = yyj3055 > l + } else { + yyb3055 = r.CheckBreak() + } + if yyb3055 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3055++ + if yyhl3055 { + yyb3055 = yyj3055 > l + } else { + yyb3055 = r.CheckBreak() + } + if yyb3055 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3055++ + if yyhl3055 { + yyb3055 = yyj3055 > l + } else { + yyb3055 = r.CheckBreak() + } + if yyb3055 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3058 := &x.ObjectMeta + yyv3058.CodecDecodeSelf(d) + } + yyj3055++ + if yyhl3055 { + yyb3055 = yyj3055 > l + } else { + yyb3055 = r.CheckBreak() + } + if yyb3055 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = NodeSpec{} + } else { + yyv3059 := &x.Spec + yyv3059.CodecDecodeSelf(d) + } + yyj3055++ + if yyhl3055 { + yyb3055 = yyj3055 > l + } else { + yyb3055 = r.CheckBreak() + } + if yyb3055 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = NodeStatus{} + } else { + yyv3060 := &x.Status + yyv3060.CodecDecodeSelf(d) + } + for { + yyj3055++ + if yyhl3055 { + yyb3055 = yyj3055 > l + } else { + yyb3055 = r.CheckBreak() + } + if yyb3055 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3055-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3061 := z.EncBinary() + _ = yym3061 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3062 := !z.EncBinary() + yy2arr3062 := z.EncBasicHandle().StructToArray + var yyq3062 [4]bool + _, _, _ = yysep3062, yyq3062, yy2arr3062 + const yyr3062 bool = false + yyq3062[0] = x.Kind != "" + yyq3062[1] = x.APIVersion != "" + yyq3062[2] = true + var yynn3062 int + if yyr3062 || yy2arr3062 { + r.EncodeArrayStart(4) + } else { + yynn3062 = 1 + for _, b := range yyq3062 { + if b { + yynn3062++ + } + } + r.EncodeMapStart(yynn3062) + yynn3062 = 0 + } + if yyr3062 || yy2arr3062 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3062[0] { + yym3064 := z.EncBinary() + _ = yym3064 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3062[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3065 := z.EncBinary() + _ = yym3065 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3062 || yy2arr3062 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3062[1] { + yym3067 := z.EncBinary() + _ = yym3067 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3062[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3068 := z.EncBinary() + _ = yym3068 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3062 || yy2arr3062 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3062[2] { + yy3070 := &x.ListMeta + yym3071 := z.EncBinary() + _ = yym3071 + if false { + } else if z.HasExtensions() && z.EncExt(yy3070) { + } else { + z.EncFallback(yy3070) + } + } else { + r.EncodeNil() + } + } else { + if yyq3062[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3072 := &x.ListMeta + yym3073 := z.EncBinary() + _ = yym3073 + if false { + } else if z.HasExtensions() && z.EncExt(yy3072) { + } else { + z.EncFallback(yy3072) + } + } + } + if yyr3062 || yy2arr3062 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3075 := z.EncBinary() + _ = yym3075 + if false { + } else { + h.encSliceNode(([]Node)(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 { + yym3076 := z.EncBinary() + _ = yym3076 + if false { + } else { + h.encSliceNode(([]Node)(x.Items), e) + } + } + } + if yyr3062 || yy2arr3062 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3077 := z.DecBinary() + _ = yym3077 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3078 := r.ContainerType() + if yyct3078 == codecSelferValueTypeMap1234 { + yyl3078 := r.ReadMapStart() + if yyl3078 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3078, d) + } + } else if yyct3078 == codecSelferValueTypeArray1234 { + yyl3078 := r.ReadArrayStart() + if yyl3078 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3078, 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 yys3079Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3079Slc + var yyhl3079 bool = l >= 0 + for yyj3079 := 0; ; yyj3079++ { + if yyhl3079 { + if yyj3079 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3079Slc = r.DecodeBytes(yys3079Slc, true, true) + yys3079 := string(yys3079Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3079 { + 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 { + yyv3082 := &x.ListMeta + yym3083 := z.DecBinary() + _ = yym3083 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3082) { + } else { + z.DecFallback(yyv3082, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3084 := &x.Items + yym3085 := z.DecBinary() + _ = yym3085 + if false { + } else { + h.decSliceNode((*[]Node)(yyv3084), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3079) + } // end switch yys3079 + } // end for yyj3079 + 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 yyj3086 int + var yyb3086 bool + var yyhl3086 bool = l >= 0 + yyj3086++ + if yyhl3086 { + yyb3086 = yyj3086 > l + } else { + yyb3086 = r.CheckBreak() + } + if yyb3086 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3086++ + if yyhl3086 { + yyb3086 = yyj3086 > l + } else { + yyb3086 = r.CheckBreak() + } + if yyb3086 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3086++ + if yyhl3086 { + yyb3086 = yyj3086 > l + } else { + yyb3086 = r.CheckBreak() + } + if yyb3086 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3089 := &x.ListMeta + yym3090 := z.DecBinary() + _ = yym3090 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3089) { + } else { + z.DecFallback(yyv3089, false) + } + } + yyj3086++ + if yyhl3086 { + yyb3086 = yyj3086 > l + } else { + yyb3086 = r.CheckBreak() + } + if yyb3086 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3091 := &x.Items + yym3092 := z.DecBinary() + _ = yym3092 + if false { + } else { + h.decSliceNode((*[]Node)(yyv3091), d) + } + } + for { + yyj3086++ + if yyhl3086 { + yyb3086 = yyj3086 > l + } else { + yyb3086 = r.CheckBreak() + } + if yyb3086 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3086-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3093 := z.EncBinary() + _ = yym3093 + 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 + yym3094 := z.DecBinary() + _ = yym3094 + 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 { + yym3095 := z.EncBinary() + _ = yym3095 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3096 := !z.EncBinary() + yy2arr3096 := z.EncBasicHandle().StructToArray + var yyq3096 [1]bool + _, _, _ = yysep3096, yyq3096, yy2arr3096 + const yyr3096 bool = false + yyq3096[0] = len(x.Finalizers) != 0 + var yynn3096 int + if yyr3096 || yy2arr3096 { + r.EncodeArrayStart(1) + } else { + yynn3096 = 0 + for _, b := range yyq3096 { + if b { + yynn3096++ + } + } + r.EncodeMapStart(yynn3096) + yynn3096 = 0 + } + if yyr3096 || yy2arr3096 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3096[0] { + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym3098 := z.EncBinary() + _ = yym3098 + if false { + } else { + h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3096[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym3099 := z.EncBinary() + _ = yym3099 + if false { + } else { + h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) + } + } + } + } + if yyr3096 || yy2arr3096 { + 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 + yym3100 := z.DecBinary() + _ = yym3100 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3101 := r.ContainerType() + if yyct3101 == codecSelferValueTypeMap1234 { + yyl3101 := r.ReadMapStart() + if yyl3101 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3101, d) + } + } else if yyct3101 == codecSelferValueTypeArray1234 { + yyl3101 := r.ReadArrayStart() + if yyl3101 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3101, 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 yys3102Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3102Slc + var yyhl3102 bool = l >= 0 + for yyj3102 := 0; ; yyj3102++ { + if yyhl3102 { + if yyj3102 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3102Slc = r.DecodeBytes(yys3102Slc, true, true) + yys3102 := string(yys3102Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3102 { + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv3103 := &x.Finalizers + yym3104 := z.DecBinary() + _ = yym3104 + if false { + } else { + h.decSliceFinalizerName((*[]FinalizerName)(yyv3103), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3102) + } // end switch yys3102 + } // end for yyj3102 + 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 yyj3105 int + var yyb3105 bool + var yyhl3105 bool = l >= 0 + yyj3105++ + if yyhl3105 { + yyb3105 = yyj3105 > l + } else { + yyb3105 = r.CheckBreak() + } + if yyb3105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv3106 := &x.Finalizers + yym3107 := z.DecBinary() + _ = yym3107 + if false { + } else { + h.decSliceFinalizerName((*[]FinalizerName)(yyv3106), d) + } + } + for { + yyj3105++ + if yyhl3105 { + yyb3105 = yyj3105 > l + } else { + yyb3105 = r.CheckBreak() + } + if yyb3105 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3105-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 { + yym3108 := z.EncBinary() + _ = yym3108 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3109 := !z.EncBinary() + yy2arr3109 := z.EncBasicHandle().StructToArray + var yyq3109 [1]bool + _, _, _ = yysep3109, yyq3109, yy2arr3109 + const yyr3109 bool = false + yyq3109[0] = x.Phase != "" + var yynn3109 int + if yyr3109 || yy2arr3109 { + r.EncodeArrayStart(1) + } else { + yynn3109 = 0 + for _, b := range yyq3109 { + if b { + yynn3109++ + } + } + r.EncodeMapStart(yynn3109) + yynn3109 = 0 + } + if yyr3109 || yy2arr3109 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3109[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3109[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr3109 || yy2arr3109 { + 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 + yym3111 := z.DecBinary() + _ = yym3111 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3112 := r.ContainerType() + if yyct3112 == codecSelferValueTypeMap1234 { + yyl3112 := r.ReadMapStart() + if yyl3112 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3112, d) + } + } else if yyct3112 == codecSelferValueTypeArray1234 { + yyl3112 := r.ReadArrayStart() + if yyl3112 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3112, 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 yys3113Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3113Slc + var yyhl3113 bool = l >= 0 + for yyj3113 := 0; ; yyj3113++ { + if yyhl3113 { + if yyj3113 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3113Slc = r.DecodeBytes(yys3113Slc, true, true) + yys3113 := string(yys3113Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3113 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NamespacePhase(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3113) + } // end switch yys3113 + } // end for yyj3113 + 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 yyj3115 int + var yyb3115 bool + var yyhl3115 bool = l >= 0 + yyj3115++ + if yyhl3115 { + yyb3115 = yyj3115 > l + } else { + yyb3115 = r.CheckBreak() + } + if yyb3115 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NamespacePhase(r.DecodeString()) + } + for { + yyj3115++ + if yyhl3115 { + yyb3115 = yyj3115 > l + } else { + yyb3115 = r.CheckBreak() + } + if yyb3115 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3115-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3117 := z.EncBinary() + _ = yym3117 + 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 + yym3118 := z.DecBinary() + _ = yym3118 + 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 { + yym3119 := z.EncBinary() + _ = yym3119 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3120 := !z.EncBinary() + yy2arr3120 := z.EncBasicHandle().StructToArray + var yyq3120 [5]bool + _, _, _ = yysep3120, yyq3120, yy2arr3120 + const yyr3120 bool = false + yyq3120[0] = x.Kind != "" + yyq3120[1] = x.APIVersion != "" + yyq3120[2] = true + yyq3120[3] = true + yyq3120[4] = true + var yynn3120 int + if yyr3120 || yy2arr3120 { + r.EncodeArrayStart(5) + } else { + yynn3120 = 0 + for _, b := range yyq3120 { + if b { + yynn3120++ + } + } + r.EncodeMapStart(yynn3120) + yynn3120 = 0 + } + if yyr3120 || yy2arr3120 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3120[0] { + yym3122 := z.EncBinary() + _ = yym3122 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3120[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3123 := z.EncBinary() + _ = yym3123 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3120 || yy2arr3120 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3120[1] { + yym3125 := z.EncBinary() + _ = yym3125 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3120[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3126 := z.EncBinary() + _ = yym3126 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3120 || yy2arr3120 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3120[2] { + yy3128 := &x.ObjectMeta + yy3128.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3120[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3129 := &x.ObjectMeta + yy3129.CodecEncodeSelf(e) + } + } + if yyr3120 || yy2arr3120 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3120[3] { + yy3131 := &x.Spec + yy3131.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3120[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3132 := &x.Spec + yy3132.CodecEncodeSelf(e) + } + } + if yyr3120 || yy2arr3120 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3120[4] { + yy3134 := &x.Status + yy3134.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3120[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3135 := &x.Status + yy3135.CodecEncodeSelf(e) + } + } + if yyr3120 || yy2arr3120 { + 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 + yym3136 := z.DecBinary() + _ = yym3136 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3137 := r.ContainerType() + if yyct3137 == codecSelferValueTypeMap1234 { + yyl3137 := r.ReadMapStart() + if yyl3137 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3137, d) + } + } else if yyct3137 == codecSelferValueTypeArray1234 { + yyl3137 := r.ReadArrayStart() + if yyl3137 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3137, 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 yys3138Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3138Slc + var yyhl3138 bool = l >= 0 + for yyj3138 := 0; ; yyj3138++ { + if yyhl3138 { + if yyj3138 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3138Slc = r.DecodeBytes(yys3138Slc, true, true) + yys3138 := string(yys3138Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3138 { + 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 { + yyv3141 := &x.ObjectMeta + yyv3141.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NamespaceSpec{} + } else { + yyv3142 := &x.Spec + yyv3142.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = NamespaceStatus{} + } else { + yyv3143 := &x.Status + yyv3143.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3138) + } // end switch yys3138 + } // end for yyj3138 + 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 yyj3144 int + var yyb3144 bool + var yyhl3144 bool = l >= 0 + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l + } else { + yyb3144 = r.CheckBreak() + } + if yyb3144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l + } else { + yyb3144 = r.CheckBreak() + } + if yyb3144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l + } else { + yyb3144 = r.CheckBreak() + } + if yyb3144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3147 := &x.ObjectMeta + yyv3147.CodecDecodeSelf(d) + } + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l + } else { + yyb3144 = r.CheckBreak() + } + if yyb3144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = NamespaceSpec{} + } else { + yyv3148 := &x.Spec + yyv3148.CodecDecodeSelf(d) + } + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l + } else { + yyb3144 = r.CheckBreak() + } + if yyb3144 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = NamespaceStatus{} + } else { + yyv3149 := &x.Status + yyv3149.CodecDecodeSelf(d) + } + for { + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l + } else { + yyb3144 = r.CheckBreak() + } + if yyb3144 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3144-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 { + yym3150 := z.EncBinary() + _ = yym3150 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3151 := !z.EncBinary() + yy2arr3151 := z.EncBasicHandle().StructToArray + var yyq3151 [4]bool + _, _, _ = yysep3151, yyq3151, yy2arr3151 + const yyr3151 bool = false + yyq3151[0] = x.Kind != "" + yyq3151[1] = x.APIVersion != "" + yyq3151[2] = true + var yynn3151 int + if yyr3151 || yy2arr3151 { + r.EncodeArrayStart(4) + } else { + yynn3151 = 1 + for _, b := range yyq3151 { + if b { + yynn3151++ + } + } + r.EncodeMapStart(yynn3151) + yynn3151 = 0 + } + if yyr3151 || yy2arr3151 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3151[0] { + yym3153 := z.EncBinary() + _ = yym3153 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3151[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3154 := z.EncBinary() + _ = yym3154 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3151 || yy2arr3151 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3151[1] { + yym3156 := z.EncBinary() + _ = yym3156 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3151[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3157 := z.EncBinary() + _ = yym3157 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3151 || yy2arr3151 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3151[2] { + yy3159 := &x.ListMeta + yym3160 := z.EncBinary() + _ = yym3160 + if false { + } else if z.HasExtensions() && z.EncExt(yy3159) { + } else { + z.EncFallback(yy3159) + } + } else { + r.EncodeNil() + } + } else { + if yyq3151[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3161 := &x.ListMeta + yym3162 := z.EncBinary() + _ = yym3162 + if false { + } else if z.HasExtensions() && z.EncExt(yy3161) { + } else { + z.EncFallback(yy3161) + } + } + } + if yyr3151 || yy2arr3151 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3164 := z.EncBinary() + _ = yym3164 + 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 { + yym3165 := z.EncBinary() + _ = yym3165 + if false { + } else { + h.encSliceNamespace(([]Namespace)(x.Items), e) + } + } + } + if yyr3151 || yy2arr3151 { + 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 + yym3166 := z.DecBinary() + _ = yym3166 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3167 := r.ContainerType() + if yyct3167 == codecSelferValueTypeMap1234 { + yyl3167 := r.ReadMapStart() + if yyl3167 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3167, d) + } + } else if yyct3167 == codecSelferValueTypeArray1234 { + yyl3167 := r.ReadArrayStart() + if yyl3167 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3167, 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 yys3168Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3168Slc + var yyhl3168 bool = l >= 0 + for yyj3168 := 0; ; yyj3168++ { + if yyhl3168 { + if yyj3168 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3168Slc = r.DecodeBytes(yys3168Slc, true, true) + yys3168 := string(yys3168Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3168 { + 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 { + yyv3171 := &x.ListMeta + yym3172 := z.DecBinary() + _ = yym3172 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3171) { + } else { + z.DecFallback(yyv3171, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3173 := &x.Items + yym3174 := z.DecBinary() + _ = yym3174 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3173), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3168) + } // end switch yys3168 + } // end for yyj3168 + 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 yyj3175 int + var yyb3175 bool + var yyhl3175 bool = l >= 0 + yyj3175++ + if yyhl3175 { + yyb3175 = yyj3175 > l + } else { + yyb3175 = r.CheckBreak() + } + if yyb3175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3175++ + if yyhl3175 { + yyb3175 = yyj3175 > l + } else { + yyb3175 = r.CheckBreak() + } + if yyb3175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3175++ + if yyhl3175 { + yyb3175 = yyj3175 > l + } else { + yyb3175 = r.CheckBreak() + } + if yyb3175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3178 := &x.ListMeta + yym3179 := z.DecBinary() + _ = yym3179 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3178) { + } else { + z.DecFallback(yyv3178, false) + } + } + yyj3175++ + if yyhl3175 { + yyb3175 = yyj3175 > l + } else { + yyb3175 = r.CheckBreak() + } + if yyb3175 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3180 := &x.Items + yym3181 := z.DecBinary() + _ = yym3181 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3180), d) + } + } + for { + yyj3175++ + if yyhl3175 { + yyb3175 = yyj3175 > l + } else { + yyb3175 = r.CheckBreak() + } + if yyb3175 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3175-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 { + yym3182 := z.EncBinary() + _ = yym3182 + 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 { + r.EncodeArrayStart(4) + } else { + yynn3183 = 1 + for _, b := range yyq3183 { + if b { + yynn3183++ + } + } + r.EncodeMapStart(yynn3183) + yynn3183 = 0 + } + if yyr3183 || yy2arr3183 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3183[0] { + yym3185 := z.EncBinary() + _ = yym3185 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3183[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3186 := z.EncBinary() + _ = yym3186 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3183 || yy2arr3183 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3183[1] { + yym3188 := z.EncBinary() + _ = yym3188 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3183[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3189 := z.EncBinary() + _ = yym3189 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3183 || yy2arr3183 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3183[2] { + yy3191 := &x.ObjectMeta + yy3191.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3183[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3192 := &x.ObjectMeta + yy3192.CodecEncodeSelf(e) + } + } + if yyr3183 || yy2arr3183 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3194 := &x.Target + yy3194.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("target")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3195 := &x.Target + yy3195.CodecEncodeSelf(e) + } + if yyr3183 || yy2arr3183 { + 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 + yym3196 := z.DecBinary() + _ = yym3196 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3197 := r.ContainerType() + if yyct3197 == codecSelferValueTypeMap1234 { + yyl3197 := r.ReadMapStart() + if yyl3197 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3197, d) + } + } else if yyct3197 == codecSelferValueTypeArray1234 { + yyl3197 := r.ReadArrayStart() + if yyl3197 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3197, 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 yys3198Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3198Slc + var yyhl3198 bool = l >= 0 + for yyj3198 := 0; ; yyj3198++ { + if yyhl3198 { + if yyj3198 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3198Slc = r.DecodeBytes(yys3198Slc, true, true) + yys3198 := string(yys3198Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3198 { + 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 { + yyv3201 := &x.ObjectMeta + yyv3201.CodecDecodeSelf(d) + } + case "target": + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3202 := &x.Target + yyv3202.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3198) + } // end switch yys3198 + } // end for yyj3198 + 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 yyj3203 int + var yyb3203 bool + var yyhl3203 bool = l >= 0 + yyj3203++ + if yyhl3203 { + yyb3203 = yyj3203 > l + } else { + yyb3203 = r.CheckBreak() + } + if yyb3203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3203++ + if yyhl3203 { + yyb3203 = yyj3203 > l + } else { + yyb3203 = r.CheckBreak() + } + if yyb3203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3203++ + if yyhl3203 { + yyb3203 = yyj3203 > l + } else { + yyb3203 = r.CheckBreak() + } + if yyb3203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3206 := &x.ObjectMeta + yyv3206.CodecDecodeSelf(d) + } + yyj3203++ + if yyhl3203 { + yyb3203 = yyj3203 > l + } else { + yyb3203 = r.CheckBreak() + } + if yyb3203 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3207 := &x.Target + yyv3207.CodecDecodeSelf(d) + } + for { + yyj3203++ + if yyhl3203 { + yyb3203 = yyj3203 > l + } else { + yyb3203 = r.CheckBreak() + } + if yyb3203 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3203-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 { + yym3208 := z.EncBinary() + _ = yym3208 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3209 := !z.EncBinary() + yy2arr3209 := z.EncBasicHandle().StructToArray + var yyq3209 [1]bool + _, _, _ = yysep3209, yyq3209, yy2arr3209 + const yyr3209 bool = false + yyq3209[0] = x.UID != nil + var yynn3209 int + if yyr3209 || yy2arr3209 { + r.EncodeArrayStart(1) + } else { + yynn3209 = 0 + for _, b := range yyq3209 { + if b { + yynn3209++ + } + } + r.EncodeMapStart(yynn3209) + yynn3209 = 0 + } + if yyr3209 || yy2arr3209 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3209[0] { + if x.UID == nil { + r.EncodeNil() + } else { + yy3211 := *x.UID + yym3212 := z.EncBinary() + _ = yym3212 + if false { + } else if z.HasExtensions() && z.EncExt(yy3211) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy3211)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3209[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.UID == nil { + r.EncodeNil() + } else { + yy3213 := *x.UID + yym3214 := z.EncBinary() + _ = yym3214 + if false { + } else if z.HasExtensions() && z.EncExt(yy3213) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy3213)) + } + } + } + } + if yyr3209 || yy2arr3209 { + 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 + yym3215 := z.DecBinary() + _ = yym3215 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3216 := r.ContainerType() + if yyct3216 == codecSelferValueTypeMap1234 { + yyl3216 := r.ReadMapStart() + if yyl3216 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3216, d) + } + } else if yyct3216 == codecSelferValueTypeArray1234 { + yyl3216 := r.ReadArrayStart() + if yyl3216 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3216, 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 yys3217Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3217Slc + var yyhl3217 bool = l >= 0 + for yyj3217 := 0; ; yyj3217++ { + if yyhl3217 { + if yyj3217 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3217Slc = r.DecodeBytes(yys3217Slc, true, true) + yys3217 := string(yys3217Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3217 { + case "uid": + if r.TryDecodeAsNil() { + if x.UID != nil { + x.UID = nil + } + } else { + if x.UID == nil { + x.UID = new(pkg1_types.UID) + } + yym3219 := z.DecBinary() + _ = yym3219 + if false { + } else if z.HasExtensions() && z.DecExt(x.UID) { + } else { + *((*string)(x.UID)) = r.DecodeString() + } + } + default: + z.DecStructFieldNotFound(-1, yys3217) + } // end switch yys3217 + } // end for yyj3217 + 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 yyj3220 int + var yyb3220 bool + var yyhl3220 bool = l >= 0 + yyj3220++ + if yyhl3220 { + yyb3220 = yyj3220 > l + } else { + yyb3220 = r.CheckBreak() + } + if yyb3220 { + 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) + } + yym3222 := z.DecBinary() + _ = yym3222 + if false { + } else if z.HasExtensions() && z.DecExt(x.UID) { + } else { + *((*string)(x.UID)) = r.DecodeString() + } + } + for { + yyj3220++ + if yyhl3220 { + yyb3220 = yyj3220 > l + } else { + yyb3220 = r.CheckBreak() + } + if yyb3220 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3220-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 { + yym3223 := z.EncBinary() + _ = yym3223 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3224 := !z.EncBinary() + yy2arr3224 := z.EncBasicHandle().StructToArray + var yyq3224 [5]bool + _, _, _ = yysep3224, yyq3224, yy2arr3224 + const yyr3224 bool = false + yyq3224[0] = x.Kind != "" + yyq3224[1] = x.APIVersion != "" + yyq3224[2] = x.GracePeriodSeconds != nil + yyq3224[3] = x.Preconditions != nil + yyq3224[4] = x.OrphanDependents != nil + var yynn3224 int + if yyr3224 || yy2arr3224 { + r.EncodeArrayStart(5) + } else { + yynn3224 = 0 + for _, b := range yyq3224 { + if b { + yynn3224++ + } + } + r.EncodeMapStart(yynn3224) + yynn3224 = 0 + } + if yyr3224 || yy2arr3224 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3224[0] { + yym3226 := z.EncBinary() + _ = yym3226 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3224[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3227 := z.EncBinary() + _ = yym3227 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3224 || yy2arr3224 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3224[1] { + yym3229 := z.EncBinary() + _ = yym3229 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3224[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3230 := z.EncBinary() + _ = yym3230 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3224 || yy2arr3224 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3224[2] { + if x.GracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy3232 := *x.GracePeriodSeconds + yym3233 := z.EncBinary() + _ = yym3233 + if false { + } else { + r.EncodeInt(int64(yy3232)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3224[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy3234 := *x.GracePeriodSeconds + yym3235 := z.EncBinary() + _ = yym3235 + if false { + } else { + r.EncodeInt(int64(yy3234)) + } + } + } + } + if yyr3224 || yy2arr3224 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3224[3] { + if x.Preconditions == nil { + r.EncodeNil() + } else { + x.Preconditions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3224[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 yyr3224 || yy2arr3224 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3224[4] { + if x.OrphanDependents == nil { + r.EncodeNil() + } else { + yy3238 := *x.OrphanDependents + yym3239 := z.EncBinary() + _ = yym3239 + if false { + } else { + r.EncodeBool(bool(yy3238)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3224[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OrphanDependents == nil { + r.EncodeNil() + } else { + yy3240 := *x.OrphanDependents + yym3241 := z.EncBinary() + _ = yym3241 + if false { + } else { + r.EncodeBool(bool(yy3240)) + } + } + } + } + if yyr3224 || yy2arr3224 { + 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 + yym3242 := z.DecBinary() + _ = yym3242 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3243 := r.ContainerType() + if yyct3243 == codecSelferValueTypeMap1234 { + yyl3243 := r.ReadMapStart() + if yyl3243 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3243, d) + } + } else if yyct3243 == codecSelferValueTypeArray1234 { + yyl3243 := r.ReadArrayStart() + if yyl3243 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3243, 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 yys3244Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3244Slc + var yyhl3244 bool = l >= 0 + for yyj3244 := 0; ; yyj3244++ { + if yyhl3244 { + if yyj3244 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3244Slc = r.DecodeBytes(yys3244Slc, true, true) + yys3244 := string(yys3244Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3244 { + 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) + } + yym3248 := z.DecBinary() + _ = yym3248 + 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) + } + yym3251 := z.DecBinary() + _ = yym3251 + if false { + } else { + *((*bool)(x.OrphanDependents)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys3244) + } // end switch yys3244 + } // end for yyj3244 + 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 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l + } else { + yyb3252 = r.CheckBreak() + } + if yyb3252 { + 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) + } + yym3256 := z.DecBinary() + _ = yym3256 + if false { + } else { + *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l + } else { + yyb3252 = r.CheckBreak() + } + if yyb3252 { + 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) + } + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l + } else { + yyb3252 = r.CheckBreak() + } + if yyb3252 { + 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) + } + yym3259 := z.DecBinary() + _ = yym3259 + if false { + } else { + *((*bool)(x.OrphanDependents)) = r.DecodeBool() + } + } + 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 *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3260 := z.EncBinary() + _ = yym3260 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3261 := !z.EncBinary() + yy2arr3261 := z.EncBasicHandle().StructToArray + var yyq3261 [4]bool + _, _, _ = yysep3261, yyq3261, yy2arr3261 + const yyr3261 bool = false + yyq3261[0] = x.Kind != "" + yyq3261[1] = x.APIVersion != "" + var yynn3261 int + if yyr3261 || yy2arr3261 { + r.EncodeArrayStart(4) + } else { + yynn3261 = 2 + for _, b := range yyq3261 { + if b { + yynn3261++ + } + } + r.EncodeMapStart(yynn3261) + yynn3261 = 0 + } + if yyr3261 || yy2arr3261 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3261[0] { + yym3263 := z.EncBinary() + _ = yym3263 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3261[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3264 := z.EncBinary() + _ = yym3264 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3261 || yy2arr3261 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3261[1] { + yym3266 := z.EncBinary() + _ = yym3266 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3261[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3267 := z.EncBinary() + _ = yym3267 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3261 || yy2arr3261 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3269 := z.EncBinary() + _ = yym3269 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("export")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3270 := z.EncBinary() + _ = yym3270 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } + if yyr3261 || yy2arr3261 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3272 := z.EncBinary() + _ = yym3272 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exact")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3273 := z.EncBinary() + _ = yym3273 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } + if yyr3261 || yy2arr3261 { + 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 + yym3274 := z.DecBinary() + _ = yym3274 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3275 := r.ContainerType() + if yyct3275 == codecSelferValueTypeMap1234 { + yyl3275 := r.ReadMapStart() + if yyl3275 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3275, d) + } + } else if yyct3275 == codecSelferValueTypeArray1234 { + yyl3275 := r.ReadArrayStart() + if yyl3275 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3275, 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 yys3276Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3276Slc + var yyhl3276 bool = l >= 0 + for yyj3276 := 0; ; yyj3276++ { + if yyhl3276 { + if yyj3276 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3276Slc = r.DecodeBytes(yys3276Slc, true, true) + yys3276 := string(yys3276Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3276 { + 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 "export": + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + case "exact": + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3276) + } // end switch yys3276 + } // end for yyj3276 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3281 int + var yyb3281 bool + var yyhl3281 bool = l >= 0 + yyj3281++ + if yyhl3281 { + yyb3281 = yyj3281 > l + } else { + yyb3281 = r.CheckBreak() + } + if yyb3281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3281++ + if yyhl3281 { + yyb3281 = yyj3281 > l + } else { + yyb3281 = r.CheckBreak() + } + if yyb3281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3281++ + if yyhl3281 { + yyb3281 = yyj3281 > l + } else { + yyb3281 = r.CheckBreak() + } + if yyb3281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Export = false + } else { + x.Export = bool(r.DecodeBool()) + } + yyj3281++ + if yyhl3281 { + yyb3281 = yyj3281 > l + } else { + yyb3281 = r.CheckBreak() + } + if yyb3281 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Exact = false + } else { + x.Exact = bool(r.DecodeBool()) + } + for { + yyj3281++ + if yyhl3281 { + yyb3281 = yyj3281 > l + } else { + yyb3281 = r.CheckBreak() + } + if yyb3281 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3281-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3286 := z.EncBinary() + _ = yym3286 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3287 := !z.EncBinary() + yy2arr3287 := z.EncBasicHandle().StructToArray + var yyq3287 [7]bool + _, _, _ = yysep3287, yyq3287, yy2arr3287 + const yyr3287 bool = false + yyq3287[0] = x.Kind != "" + yyq3287[1] = x.APIVersion != "" + yyq3287[2] = x.LabelSelector != "" + yyq3287[3] = x.FieldSelector != "" + yyq3287[4] = x.Watch != false + yyq3287[5] = x.ResourceVersion != "" + yyq3287[6] = x.TimeoutSeconds != nil + var yynn3287 int + if yyr3287 || yy2arr3287 { + r.EncodeArrayStart(7) + } else { + yynn3287 = 0 + for _, b := range yyq3287 { + if b { + yynn3287++ + } + } + r.EncodeMapStart(yynn3287) + yynn3287 = 0 + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[0] { + yym3289 := z.EncBinary() + _ = yym3289 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3287[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3290 := z.EncBinary() + _ = yym3290 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[1] { + yym3292 := z.EncBinary() + _ = yym3292 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3287[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3293 := z.EncBinary() + _ = yym3293 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[2] { + yym3295 := z.EncBinary() + _ = yym3295 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3287[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3296 := z.EncBinary() + _ = yym3296 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[3] { + yym3298 := z.EncBinary() + _ = yym3298 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3287[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3299 := z.EncBinary() + _ = yym3299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[4] { + yym3301 := z.EncBinary() + _ = yym3301 + if false { + } else { + r.EncodeBool(bool(x.Watch)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3287[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("watch")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3302 := z.EncBinary() + _ = yym3302 + if false { + } else { + r.EncodeBool(bool(x.Watch)) + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[5] { + yym3304 := z.EncBinary() + _ = yym3304 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3287[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3305 := z.EncBinary() + _ = yym3305 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3287[6] { + if x.TimeoutSeconds == nil { + r.EncodeNil() + } else { + yy3307 := *x.TimeoutSeconds + yym3308 := z.EncBinary() + _ = yym3308 + if false { + } else { + r.EncodeInt(int64(yy3307)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3287[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TimeoutSeconds == nil { + r.EncodeNil() + } else { + yy3309 := *x.TimeoutSeconds + yym3310 := z.EncBinary() + _ = yym3310 + if false { + } else { + r.EncodeInt(int64(yy3309)) + } + } + } + } + if yyr3287 || yy2arr3287 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3311 := z.DecBinary() + _ = yym3311 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3312 := r.ContainerType() + if yyct3312 == codecSelferValueTypeMap1234 { + yyl3312 := r.ReadMapStart() + if yyl3312 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3312, d) + } + } else if yyct3312 == codecSelferValueTypeArray1234 { + yyl3312 := r.ReadArrayStart() + if yyl3312 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3312, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3313Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3313Slc + var yyhl3313 bool = l >= 0 + for yyj3313 := 0; ; yyj3313++ { + if yyhl3313 { + if yyj3313 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3313Slc = r.DecodeBytes(yys3313Slc, true, true) + yys3313 := string(yys3313Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3313 { + 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 "labelSelector": + if r.TryDecodeAsNil() { + x.LabelSelector = "" + } else { + x.LabelSelector = string(r.DecodeString()) + } + case "fieldSelector": + if r.TryDecodeAsNil() { + x.FieldSelector = "" + } else { + x.FieldSelector = string(r.DecodeString()) + } + case "watch": + if r.TryDecodeAsNil() { + x.Watch = false + } else { + x.Watch = bool(r.DecodeBool()) + } + case "resourceVersion": + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + case "timeoutSeconds": + if r.TryDecodeAsNil() { + if x.TimeoutSeconds != nil { + x.TimeoutSeconds = nil + } + } else { + if x.TimeoutSeconds == nil { + x.TimeoutSeconds = new(int64) + } + yym3321 := z.DecBinary() + _ = yym3321 + if false { + } else { + *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) + } + } + default: + z.DecStructFieldNotFound(-1, yys3313) + } // end switch yys3313 + } // end for yyj3313 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ListOptions) 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.LabelSelector = "" + } else { + x.LabelSelector = 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.FieldSelector = "" + } else { + x.FieldSelector = 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.Watch = false + } else { + x.Watch = bool(r.DecodeBool()) + } + 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.ResourceVersion = "" + } else { + x.ResourceVersion = 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() { + if x.TimeoutSeconds != nil { + x.TimeoutSeconds = nil + } + } else { + if x.TimeoutSeconds == nil { + x.TimeoutSeconds = new(int64) + } + yym3330 := z.DecBinary() + _ = yym3330 + if false { + } else { + *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) + } + } + 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 *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3331 := z.EncBinary() + _ = yym3331 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3332 := !z.EncBinary() + yy2arr3332 := z.EncBasicHandle().StructToArray + var yyq3332 [10]bool + _, _, _ = yysep3332, yyq3332, yy2arr3332 + const yyr3332 bool = false + yyq3332[0] = x.Kind != "" + yyq3332[1] = x.APIVersion != "" + yyq3332[2] = x.Container != "" + yyq3332[3] = x.Follow != false + yyq3332[4] = x.Previous != false + yyq3332[5] = x.SinceSeconds != nil + yyq3332[6] = x.SinceTime != nil + yyq3332[7] = x.Timestamps != false + yyq3332[8] = x.TailLines != nil + yyq3332[9] = x.LimitBytes != nil + var yynn3332 int + if yyr3332 || yy2arr3332 { + r.EncodeArrayStart(10) + } else { + yynn3332 = 0 + for _, b := range yyq3332 { + if b { + yynn3332++ + } + } + r.EncodeMapStart(yynn3332) + yynn3332 = 0 + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[0] { + yym3334 := z.EncBinary() + _ = yym3334 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3332[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3335 := z.EncBinary() + _ = yym3335 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[1] { + yym3337 := z.EncBinary() + _ = yym3337 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3332[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3338 := z.EncBinary() + _ = yym3338 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[2] { + yym3340 := z.EncBinary() + _ = yym3340 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3332[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3341 := z.EncBinary() + _ = yym3341 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[3] { + yym3343 := z.EncBinary() + _ = yym3343 + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3332[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("follow")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3344 := z.EncBinary() + _ = yym3344 + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[4] { + yym3346 := z.EncBinary() + _ = yym3346 + if false { + } else { + r.EncodeBool(bool(x.Previous)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3332[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("previous")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3347 := z.EncBinary() + _ = yym3347 + if false { + } else { + r.EncodeBool(bool(x.Previous)) + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[5] { + if x.SinceSeconds == nil { + r.EncodeNil() + } else { + yy3349 := *x.SinceSeconds + yym3350 := z.EncBinary() + _ = yym3350 + if false { + } else { + r.EncodeInt(int64(yy3349)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3332[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sinceSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SinceSeconds == nil { + r.EncodeNil() + } else { + yy3351 := *x.SinceSeconds + yym3352 := z.EncBinary() + _ = yym3352 + if false { + } else { + r.EncodeInt(int64(yy3351)) + } + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[6] { + if x.SinceTime == nil { + r.EncodeNil() + } else { + yym3354 := z.EncBinary() + _ = yym3354 + if false { + } else if z.HasExtensions() && z.EncExt(x.SinceTime) { + } else if yym3354 { + z.EncBinaryMarshal(x.SinceTime) + } else if !yym3354 && z.IsJSONHandle() { + z.EncJSONMarshal(x.SinceTime) + } else { + z.EncFallback(x.SinceTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3332[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sinceTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SinceTime == nil { + r.EncodeNil() + } else { + yym3355 := z.EncBinary() + _ = yym3355 + if false { + } else if z.HasExtensions() && z.EncExt(x.SinceTime) { + } else if yym3355 { + z.EncBinaryMarshal(x.SinceTime) + } else if !yym3355 && z.IsJSONHandle() { + z.EncJSONMarshal(x.SinceTime) + } else { + z.EncFallback(x.SinceTime) + } + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[7] { + yym3357 := z.EncBinary() + _ = yym3357 + if false { + } else { + r.EncodeBool(bool(x.Timestamps)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3332[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("timestamps")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3358 := z.EncBinary() + _ = yym3358 + if false { + } else { + r.EncodeBool(bool(x.Timestamps)) + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[8] { + if x.TailLines == nil { + r.EncodeNil() + } else { + yy3360 := *x.TailLines + yym3361 := z.EncBinary() + _ = yym3361 + if false { + } else { + r.EncodeInt(int64(yy3360)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3332[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tailLines")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TailLines == nil { + r.EncodeNil() + } else { + yy3362 := *x.TailLines + yym3363 := z.EncBinary() + _ = yym3363 + if false { + } else { + r.EncodeInt(int64(yy3362)) + } + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3332[9] { + if x.LimitBytes == nil { + r.EncodeNil() + } else { + yy3365 := *x.LimitBytes + yym3366 := z.EncBinary() + _ = yym3366 + if false { + } else { + r.EncodeInt(int64(yy3365)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3332[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("limitBytes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LimitBytes == nil { + r.EncodeNil() + } else { + yy3367 := *x.LimitBytes + yym3368 := z.EncBinary() + _ = yym3368 + if false { + } else { + r.EncodeInt(int64(yy3367)) + } + } + } + } + if yyr3332 || yy2arr3332 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3369 := z.DecBinary() + _ = yym3369 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3370 := r.ContainerType() + if yyct3370 == codecSelferValueTypeMap1234 { + yyl3370 := r.ReadMapStart() + if yyl3370 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3370, d) + } + } else if yyct3370 == codecSelferValueTypeArray1234 { + yyl3370 := r.ReadArrayStart() + if yyl3370 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3370, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3371Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3371Slc + var yyhl3371 bool = l >= 0 + for yyj3371 := 0; ; yyj3371++ { + if yyhl3371 { + if yyj3371 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3371Slc = r.DecodeBytes(yys3371Slc, true, true) + yys3371 := string(yys3371Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3371 { + 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 "container": + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + case "follow": + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = bool(r.DecodeBool()) + } + case "previous": + if r.TryDecodeAsNil() { + x.Previous = false + } else { + x.Previous = bool(r.DecodeBool()) + } + case "sinceSeconds": + if r.TryDecodeAsNil() { + if x.SinceSeconds != nil { + x.SinceSeconds = nil + } + } else { + if x.SinceSeconds == nil { + x.SinceSeconds = new(int64) + } + yym3378 := z.DecBinary() + _ = yym3378 + if false { + } else { + *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) + } + } + case "sinceTime": + if r.TryDecodeAsNil() { + if x.SinceTime != nil { + x.SinceTime = nil + } + } else { + if x.SinceTime == nil { + x.SinceTime = new(pkg2_unversioned.Time) + } + yym3380 := z.DecBinary() + _ = yym3380 + if false { + } else if z.HasExtensions() && z.DecExt(x.SinceTime) { + } else if yym3380 { + z.DecBinaryUnmarshal(x.SinceTime) + } else if !yym3380 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.SinceTime) + } else { + z.DecFallback(x.SinceTime, false) + } + } + case "timestamps": + if r.TryDecodeAsNil() { + x.Timestamps = false + } else { + x.Timestamps = bool(r.DecodeBool()) + } + case "tailLines": + if r.TryDecodeAsNil() { + if x.TailLines != nil { + x.TailLines = nil + } + } else { + if x.TailLines == nil { + x.TailLines = new(int64) + } + yym3383 := z.DecBinary() + _ = yym3383 + if false { + } else { + *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) + } + } + case "limitBytes": + if r.TryDecodeAsNil() { + if x.LimitBytes != nil { + x.LimitBytes = nil + } + } else { + if x.LimitBytes == nil { + x.LimitBytes = new(int64) + } + yym3385 := z.DecBinary() + _ = yym3385 + if false { + } else { + *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) + } + } + default: + z.DecStructFieldNotFound(-1, yys3371) + } // end switch yys3371 + } // end for yyj3371 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3386 int + var yyb3386 bool + var yyhl3386 bool = l >= 0 + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = bool(r.DecodeBool()) + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Previous = false + } else { + x.Previous = bool(r.DecodeBool()) + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SinceSeconds != nil { + x.SinceSeconds = nil + } + } else { + if x.SinceSeconds == nil { + x.SinceSeconds = new(int64) + } + yym3393 := z.DecBinary() + _ = yym3393 + if false { + } else { + *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SinceTime != nil { + x.SinceTime = nil + } + } else { + if x.SinceTime == nil { + x.SinceTime = new(pkg2_unversioned.Time) + } + yym3395 := z.DecBinary() + _ = yym3395 + if false { + } else if z.HasExtensions() && z.DecExt(x.SinceTime) { + } else if yym3395 { + z.DecBinaryUnmarshal(x.SinceTime) + } else if !yym3395 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.SinceTime) + } else { + z.DecFallback(x.SinceTime, false) + } + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Timestamps = false + } else { + x.Timestamps = bool(r.DecodeBool()) + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TailLines != nil { + x.TailLines = nil + } + } else { + if x.TailLines == nil { + x.TailLines = new(int64) + } + yym3398 := z.DecBinary() + _ = yym3398 + if false { + } else { + *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) + } + } + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LimitBytes != nil { + x.LimitBytes = nil + } + } else { + if x.LimitBytes == nil { + x.LimitBytes = new(int64) + } + yym3400 := z.DecBinary() + _ = yym3400 + if false { + } else { + *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) + } + } + for { + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l + } else { + yyb3386 = r.CheckBreak() + } + if yyb3386 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3386-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3401 := z.EncBinary() + _ = yym3401 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3402 := !z.EncBinary() + yy2arr3402 := z.EncBasicHandle().StructToArray + var yyq3402 [7]bool + _, _, _ = yysep3402, yyq3402, yy2arr3402 + const yyr3402 bool = false + yyq3402[0] = x.Kind != "" + yyq3402[1] = x.APIVersion != "" + yyq3402[2] = x.Stdin != false + yyq3402[3] = x.Stdout != false + yyq3402[4] = x.Stderr != false + yyq3402[5] = x.TTY != false + yyq3402[6] = x.Container != "" + var yynn3402 int + if yyr3402 || yy2arr3402 { + r.EncodeArrayStart(7) + } else { + yynn3402 = 0 + for _, b := range yyq3402 { + if b { + yynn3402++ + } + } + r.EncodeMapStart(yynn3402) + yynn3402 = 0 + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[0] { + yym3404 := z.EncBinary() + _ = yym3404 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3402[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3405 := z.EncBinary() + _ = yym3405 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[1] { + yym3407 := z.EncBinary() + _ = yym3407 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3402[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3408 := z.EncBinary() + _ = yym3408 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[2] { + yym3410 := z.EncBinary() + _ = yym3410 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3402[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3411 := z.EncBinary() + _ = yym3411 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[3] { + yym3413 := z.EncBinary() + _ = yym3413 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3402[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3414 := z.EncBinary() + _ = yym3414 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[4] { + yym3416 := z.EncBinary() + _ = yym3416 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3402[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3417 := z.EncBinary() + _ = yym3417 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[5] { + yym3419 := z.EncBinary() + _ = yym3419 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3402[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tty")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3420 := z.EncBinary() + _ = yym3420 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3402[6] { + yym3422 := z.EncBinary() + _ = yym3422 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3402[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3423 := z.EncBinary() + _ = yym3423 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + } + if yyr3402 || yy2arr3402 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3424 := z.DecBinary() + _ = yym3424 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3425 := r.ContainerType() + if yyct3425 == codecSelferValueTypeMap1234 { + yyl3425 := r.ReadMapStart() + if yyl3425 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3425, d) + } + } else if yyct3425 == codecSelferValueTypeArray1234 { + yyl3425 := r.ReadArrayStart() + if yyl3425 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3425, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3426Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3426Slc + var yyhl3426 bool = l >= 0 + for yyj3426 := 0; ; yyj3426++ { + if yyhl3426 { + if yyj3426 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3426Slc = r.DecodeBytes(yys3426Slc, true, true) + yys3426 := string(yys3426Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3426 { + 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 "stdin": + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + case "stdout": + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + case "stderr": + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + case "tty": + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + case "container": + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3426) + } // end switch yys3426 + } // end for yyj3426 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3434 int + var yyb3434 bool + var yyhl3434 bool = l >= 0 + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + for { + yyj3434++ + if yyhl3434 { + yyb3434 = yyj3434 > l + } else { + yyb3434 = r.CheckBreak() + } + if yyb3434 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3434-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3442 := z.EncBinary() + _ = yym3442 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3443 := !z.EncBinary() + yy2arr3443 := z.EncBasicHandle().StructToArray + var yyq3443 [8]bool + _, _, _ = yysep3443, yyq3443, yy2arr3443 + const yyr3443 bool = false + yyq3443[0] = x.Kind != "" + yyq3443[1] = x.APIVersion != "" + yyq3443[2] = x.Stdin != false + yyq3443[3] = x.Stdout != false + yyq3443[4] = x.Stderr != false + yyq3443[5] = x.TTY != false + yyq3443[6] = x.Container != "" + var yynn3443 int + if yyr3443 || yy2arr3443 { + r.EncodeArrayStart(8) + } else { + yynn3443 = 1 + for _, b := range yyq3443 { + if b { + yynn3443++ + } + } + r.EncodeMapStart(yynn3443) + yynn3443 = 0 + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[0] { + yym3445 := z.EncBinary() + _ = yym3445 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3443[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3446 := z.EncBinary() + _ = yym3446 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[1] { + yym3448 := z.EncBinary() + _ = yym3448 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3443[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3449 := z.EncBinary() + _ = yym3449 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[2] { + yym3451 := z.EncBinary() + _ = yym3451 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3443[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3452 := z.EncBinary() + _ = yym3452 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[3] { + yym3454 := z.EncBinary() + _ = yym3454 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3443[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3455 := z.EncBinary() + _ = yym3455 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[4] { + yym3457 := z.EncBinary() + _ = yym3457 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3443[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3458 := z.EncBinary() + _ = yym3458 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[5] { + yym3460 := z.EncBinary() + _ = yym3460 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3443[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tty")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3461 := z.EncBinary() + _ = yym3461 + if false { + } else { + r.EncodeBool(bool(x.TTY)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3443[6] { + yym3463 := z.EncBinary() + _ = yym3463 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3443[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3464 := z.EncBinary() + _ = yym3464 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Command == nil { + r.EncodeNil() + } else { + yym3466 := z.EncBinary() + _ = yym3466 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("command")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Command == nil { + r.EncodeNil() + } else { + yym3467 := z.EncBinary() + _ = yym3467 + if false { + } else { + z.F.EncSliceStringV(x.Command, false, e) + } + } + } + if yyr3443 || yy2arr3443 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3468 := z.DecBinary() + _ = yym3468 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3469 := r.ContainerType() + if yyct3469 == codecSelferValueTypeMap1234 { + yyl3469 := r.ReadMapStart() + if yyl3469 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3469, d) + } + } else if yyct3469 == codecSelferValueTypeArray1234 { + yyl3469 := r.ReadArrayStart() + if yyl3469 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3469, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3470Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3470Slc + var yyhl3470 bool = l >= 0 + for yyj3470 := 0; ; yyj3470++ { + if yyhl3470 { + if yyj3470 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3470Slc = r.DecodeBytes(yys3470Slc, true, true) + yys3470 := string(yys3470Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3470 { + 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 "stdin": + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + case "stdout": + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + case "stderr": + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + case "tty": + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + case "container": + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + case "command": + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv3478 := &x.Command + yym3479 := z.DecBinary() + _ = yym3479 + if false { + } else { + z.F.DecSliceStringX(yyv3478, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3470) + } // end switch yys3470 + } // end for yyj3470 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3480 int + var yyb3480 bool + var yyhl3480 bool = l >= 0 + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdin = false + } else { + x.Stdin = bool(r.DecodeBool()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stdout = false + } else { + x.Stdout = bool(r.DecodeBool()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Stderr = false + } else { + x.Stderr = bool(r.DecodeBool()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TTY = false + } else { + x.TTY = bool(r.DecodeBool()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Container = "" + } else { + x.Container = string(r.DecodeString()) + } + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Command = nil + } else { + yyv3488 := &x.Command + yym3489 := z.DecBinary() + _ = yym3489 + if false { + } else { + z.F.DecSliceStringX(yyv3488, false, d) + } + } + for { + yyj3480++ + if yyhl3480 { + yyb3480 = yyj3480 > l + } else { + yyb3480 = r.CheckBreak() + } + if yyb3480 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3480-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3490 := z.EncBinary() + _ = yym3490 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3491 := !z.EncBinary() + yy2arr3491 := z.EncBasicHandle().StructToArray + var yyq3491 [3]bool + _, _, _ = yysep3491, yyq3491, yy2arr3491 + const yyr3491 bool = false + yyq3491[0] = x.Kind != "" + yyq3491[1] = x.APIVersion != "" + yyq3491[2] = x.Path != "" + var yynn3491 int + if yyr3491 || yy2arr3491 { + r.EncodeArrayStart(3) + } else { + yynn3491 = 0 + for _, b := range yyq3491 { + if b { + yynn3491++ + } + } + r.EncodeMapStart(yynn3491) + yynn3491 = 0 + } + if yyr3491 || yy2arr3491 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3491[0] { + yym3493 := z.EncBinary() + _ = yym3493 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3491[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3494 := z.EncBinary() + _ = yym3494 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3491 || yy2arr3491 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3491[1] { + yym3496 := z.EncBinary() + _ = yym3496 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3491[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3497 := z.EncBinary() + _ = yym3497 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3491 || yy2arr3491 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3491[2] { + yym3499 := z.EncBinary() + _ = yym3499 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3491[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3500 := z.EncBinary() + _ = yym3500 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr3491 || yy2arr3491 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3501 := z.DecBinary() + _ = yym3501 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3502 := r.ContainerType() + if yyct3502 == codecSelferValueTypeMap1234 { + yyl3502 := r.ReadMapStart() + if yyl3502 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3502, d) + } + } else if yyct3502 == codecSelferValueTypeArray1234 { + yyl3502 := r.ReadArrayStart() + if yyl3502 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3502, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3503Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3503Slc + var yyhl3503 bool = l >= 0 + for yyj3503 := 0; ; yyj3503++ { + if yyhl3503 { + if yyj3503 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3503Slc = r.DecodeBytes(yys3503Slc, true, true) + yys3503 := string(yys3503Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3503 { + 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 "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3503) + } // end switch yys3503 + } // end for yyj3503 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3507 int + var yyb3507 bool + var yyhl3507 bool = l >= 0 + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l + } else { + yyb3507 = r.CheckBreak() + } + if yyb3507 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3507-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3511 := z.EncBinary() + _ = yym3511 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3512 := !z.EncBinary() + yy2arr3512 := z.EncBasicHandle().StructToArray + var yyq3512 [3]bool + _, _, _ = yysep3512, yyq3512, yy2arr3512 + const yyr3512 bool = false + yyq3512[0] = x.Kind != "" + yyq3512[1] = x.APIVersion != "" + yyq3512[2] = x.Path != "" + var yynn3512 int + if yyr3512 || yy2arr3512 { + r.EncodeArrayStart(3) + } else { + yynn3512 = 0 + for _, b := range yyq3512 { + if b { + yynn3512++ + } + } + r.EncodeMapStart(yynn3512) + yynn3512 = 0 + } + if yyr3512 || yy2arr3512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3512[0] { + yym3514 := z.EncBinary() + _ = yym3514 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3512[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3515 := z.EncBinary() + _ = yym3515 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3512 || yy2arr3512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3512[1] { + yym3517 := z.EncBinary() + _ = yym3517 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3512[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3518 := z.EncBinary() + _ = yym3518 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3512 || yy2arr3512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3512[2] { + yym3520 := z.EncBinary() + _ = yym3520 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3512[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3521 := z.EncBinary() + _ = yym3521 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr3512 || yy2arr3512 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3522 := z.DecBinary() + _ = yym3522 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3523 := r.ContainerType() + if yyct3523 == codecSelferValueTypeMap1234 { + yyl3523 := r.ReadMapStart() + if yyl3523 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3523, d) + } + } else if yyct3523 == codecSelferValueTypeArray1234 { + yyl3523 := r.ReadArrayStart() + if yyl3523 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3523, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3524Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3524Slc + var yyhl3524 bool = l >= 0 + for yyj3524 := 0; ; yyj3524++ { + if yyhl3524 { + if yyj3524 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3524Slc = r.DecodeBytes(yys3524Slc, true, true) + yys3524 := string(yys3524Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3524 { + 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 "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3524) + } // end switch yys3524 + } // end for yyj3524 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3528 int + var yyb3528 bool + var yyhl3528 bool = l >= 0 + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l + } else { + yyb3528 = r.CheckBreak() + } + if yyb3528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l + } else { + yyb3528 = r.CheckBreak() + } + if yyb3528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l + } else { + yyb3528 = r.CheckBreak() + } + if yyb3528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l + } else { + yyb3528 = r.CheckBreak() + } + if yyb3528 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3528-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3532 := z.EncBinary() + _ = yym3532 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3533 := !z.EncBinary() + yy2arr3533 := z.EncBasicHandle().StructToArray + var yyq3533 [3]bool + _, _, _ = yysep3533, yyq3533, yy2arr3533 + const yyr3533 bool = false + yyq3533[0] = x.Kind != "" + yyq3533[1] = x.APIVersion != "" + yyq3533[2] = x.Path != "" + var yynn3533 int + if yyr3533 || yy2arr3533 { + r.EncodeArrayStart(3) + } else { + yynn3533 = 0 + for _, b := range yyq3533 { + if b { + yynn3533++ + } + } + r.EncodeMapStart(yynn3533) + yynn3533 = 0 + } + if yyr3533 || yy2arr3533 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3533[0] { + yym3535 := z.EncBinary() + _ = yym3535 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3533[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3536 := z.EncBinary() + _ = yym3536 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3533 || yy2arr3533 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3533[1] { + yym3538 := z.EncBinary() + _ = yym3538 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3533[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3539 := z.EncBinary() + _ = yym3539 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3533 || yy2arr3533 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3533[2] { + yym3541 := z.EncBinary() + _ = yym3541 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3533[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3542 := z.EncBinary() + _ = yym3542 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr3533 || yy2arr3533 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3543 := z.DecBinary() + _ = yym3543 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3544 := r.ContainerType() + if yyct3544 == codecSelferValueTypeMap1234 { + yyl3544 := r.ReadMapStart() + if yyl3544 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3544, d) + } + } else if yyct3544 == codecSelferValueTypeArray1234 { + yyl3544 := r.ReadArrayStart() + if yyl3544 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3544, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3545Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3545Slc + var yyhl3545 bool = l >= 0 + for yyj3545 := 0; ; yyj3545++ { + if yyhl3545 { + if yyj3545 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3545Slc = r.DecodeBytes(yys3545Slc, true, true) + yys3545 := string(yys3545Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3545 { + 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 "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3545) + } // end switch yys3545 + } // end for yyj3545 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3549 int + var yyb3549 bool + var yyhl3549 bool = l >= 0 + yyj3549++ + if yyhl3549 { + yyb3549 = yyj3549 > l + } else { + yyb3549 = r.CheckBreak() + } + if yyb3549 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3549++ + if yyhl3549 { + yyb3549 = yyj3549 > l + } else { + yyb3549 = r.CheckBreak() + } + if yyb3549 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3549++ + if yyhl3549 { + yyb3549 = yyj3549 > l + } else { + yyb3549 = r.CheckBreak() + } + if yyb3549 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj3549++ + if yyhl3549 { + yyb3549 = yyj3549 > l + } else { + yyb3549 = r.CheckBreak() + } + if yyb3549 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3549-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3553 := z.EncBinary() + _ = yym3553 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3554 := !z.EncBinary() + yy2arr3554 := z.EncBasicHandle().StructToArray + var yyq3554 [5]bool + _, _, _ = yysep3554, yyq3554, yy2arr3554 + const yyr3554 bool = false + yyq3554[4] = x.Controller != nil + var yynn3554 int + if yyr3554 || yy2arr3554 { + r.EncodeArrayStart(5) + } else { + yynn3554 = 4 + for _, b := range yyq3554 { + if b { + yynn3554++ + } + } + r.EncodeMapStart(yynn3554) + yynn3554 = 0 + } + if yyr3554 || yy2arr3554 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3556 := z.EncBinary() + _ = yym3556 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3557 := z.EncBinary() + _ = yym3557 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + if yyr3554 || yy2arr3554 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3559 := z.EncBinary() + _ = yym3559 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3560 := z.EncBinary() + _ = yym3560 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + if yyr3554 || yy2arr3554 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3562 := z.EncBinary() + _ = yym3562 + 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) + yym3563 := z.EncBinary() + _ = yym3563 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr3554 || yy2arr3554 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3565 := z.EncBinary() + _ = yym3565 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3566 := z.EncBinary() + _ = yym3566 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + if yyr3554 || yy2arr3554 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3554[4] { + if x.Controller == nil { + r.EncodeNil() + } else { + yy3568 := *x.Controller + yym3569 := z.EncBinary() + _ = yym3569 + if false { + } else { + r.EncodeBool(bool(yy3568)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3554[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("controller")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Controller == nil { + r.EncodeNil() + } else { + yy3570 := *x.Controller + yym3571 := z.EncBinary() + _ = yym3571 + if false { + } else { + r.EncodeBool(bool(yy3570)) + } + } + } + } + if yyr3554 || yy2arr3554 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3572 := z.DecBinary() + _ = yym3572 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3573 := r.ContainerType() + if yyct3573 == codecSelferValueTypeMap1234 { + yyl3573 := r.ReadMapStart() + if yyl3573 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3573, d) + } + } else if yyct3573 == codecSelferValueTypeArray1234 { + yyl3573 := r.ReadArrayStart() + if yyl3573 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3573, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3574Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3574Slc + var yyhl3574 bool = l >= 0 + for yyj3574 := 0; ; yyj3574++ { + if yyhl3574 { + if yyj3574 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3574Slc = r.DecodeBytes(yys3574Slc, true, true) + yys3574 := string(yys3574Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3574 { + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "uid": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + case "controller": + if r.TryDecodeAsNil() { + if x.Controller != nil { + x.Controller = nil + } + } else { + if x.Controller == nil { + x.Controller = new(bool) + } + yym3580 := z.DecBinary() + _ = yym3580 + if false { + } else { + *((*bool)(x.Controller)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys3574) + } // end switch yys3574 + } // end for yyj3574 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3581 int + var yyb3581 bool + var yyhl3581 bool = l >= 0 + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l + } else { + yyb3581 = r.CheckBreak() + } + if yyb3581 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l + } else { + yyb3581 = r.CheckBreak() + } + if yyb3581 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l + } else { + yyb3581 = r.CheckBreak() + } + if yyb3581 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l + } else { + yyb3581 = r.CheckBreak() + } + if yyb3581 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l + } else { + yyb3581 = r.CheckBreak() + } + if yyb3581 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Controller != nil { + x.Controller = nil + } + } else { + if x.Controller == nil { + x.Controller = new(bool) + } + yym3587 := z.DecBinary() + _ = yym3587 + if false { + } else { + *((*bool)(x.Controller)) = r.DecodeBool() + } + } + for { + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l + } else { + yyb3581 = r.CheckBreak() + } + if yyb3581 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3581-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3588 := z.EncBinary() + _ = yym3588 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3589 := !z.EncBinary() + yy2arr3589 := z.EncBasicHandle().StructToArray + var yyq3589 [7]bool + _, _, _ = yysep3589, yyq3589, yy2arr3589 + const yyr3589 bool = false + yyq3589[0] = x.Kind != "" + yyq3589[1] = x.Namespace != "" + yyq3589[2] = x.Name != "" + yyq3589[3] = x.UID != "" + yyq3589[4] = x.APIVersion != "" + yyq3589[5] = x.ResourceVersion != "" + yyq3589[6] = x.FieldPath != "" + var yynn3589 int + if yyr3589 || yy2arr3589 { + r.EncodeArrayStart(7) + } else { + yynn3589 = 0 + for _, b := range yyq3589 { + if b { + yynn3589++ + } + } + r.EncodeMapStart(yynn3589) + yynn3589 = 0 + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[0] { + yym3591 := z.EncBinary() + _ = yym3591 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3589[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3592 := z.EncBinary() + _ = yym3592 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[1] { + yym3594 := z.EncBinary() + _ = yym3594 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3589[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3595 := z.EncBinary() + _ = yym3595 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[2] { + yym3597 := z.EncBinary() + _ = yym3597 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3589[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3598 := z.EncBinary() + _ = yym3598 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[3] { + yym3600 := z.EncBinary() + _ = yym3600 + 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 yyq3589[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3601 := z.EncBinary() + _ = yym3601 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[4] { + yym3603 := z.EncBinary() + _ = yym3603 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3589[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3604 := z.EncBinary() + _ = yym3604 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[5] { + yym3606 := z.EncBinary() + _ = yym3606 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3589[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3607 := z.EncBinary() + _ = yym3607 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3589[6] { + yym3609 := z.EncBinary() + _ = yym3609 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3589[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3610 := z.EncBinary() + _ = yym3610 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) + } + } + } + if yyr3589 || yy2arr3589 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3611 := z.DecBinary() + _ = yym3611 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3612 := r.ContainerType() + if yyct3612 == codecSelferValueTypeMap1234 { + yyl3612 := r.ReadMapStart() + if yyl3612 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3612, d) + } + } else if yyct3612 == codecSelferValueTypeArray1234 { + yyl3612 := r.ReadArrayStart() + if yyl3612 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3612, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3613Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3613Slc + var yyhl3613 bool = l >= 0 + for yyj3613 := 0; ; yyj3613++ { + if yyhl3613 { + if yyj3613 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3613Slc = r.DecodeBytes(yys3613Slc, true, true) + yys3613 := string(yys3613Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3613 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "uid": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "resourceVersion": + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + case "fieldPath": + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3613) + } // end switch yys3613 + } // end for yyj3613 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3621 int + var yyb3621 bool + var yyhl3621 bool = l >= 0 + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg1_types.UID(r.DecodeString()) + } + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FieldPath = "" + } else { + x.FieldPath = string(r.DecodeString()) + } + for { + yyj3621++ + if yyhl3621 { + yyb3621 = yyj3621 > l + } else { + yyb3621 = r.CheckBreak() + } + if yyb3621 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3621-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3629 := z.EncBinary() + _ = yym3629 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3630 := !z.EncBinary() + yy2arr3630 := z.EncBasicHandle().StructToArray + var yyq3630 [1]bool + _, _, _ = yysep3630, yyq3630, yy2arr3630 + const yyr3630 bool = false + yyq3630[0] = x.Name != "" + var yynn3630 int + if yyr3630 || yy2arr3630 { + r.EncodeArrayStart(1) + } else { + yynn3630 = 0 + for _, b := range yyq3630 { + if b { + yynn3630++ + } + } + r.EncodeMapStart(yynn3630) + yynn3630 = 0 + } + if yyr3630 || yy2arr3630 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3630[0] { + yym3632 := z.EncBinary() + _ = yym3632 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3630[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3633 := z.EncBinary() + _ = yym3633 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr3630 || yy2arr3630 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3634 := z.DecBinary() + _ = yym3634 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3635 := r.ContainerType() + if yyct3635 == codecSelferValueTypeMap1234 { + yyl3635 := r.ReadMapStart() + if yyl3635 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3635, d) + } + } else if yyct3635 == codecSelferValueTypeArray1234 { + yyl3635 := r.ReadArrayStart() + if yyl3635 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3635, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3636Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3636Slc + var yyhl3636 bool = l >= 0 + for yyj3636 := 0; ; yyj3636++ { + if yyhl3636 { + if yyj3636 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3636Slc = r.DecodeBytes(yys3636Slc, true, true) + yys3636 := string(yys3636Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3636 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3636) + } // end switch yys3636 + } // end for yyj3636 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3638 int + var yyb3638 bool + var yyhl3638 bool = l >= 0 + yyj3638++ + if yyhl3638 { + yyb3638 = yyj3638 > l + } else { + yyb3638 = r.CheckBreak() + } + if yyb3638 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + for { + yyj3638++ + if yyhl3638 { + yyb3638 = yyj3638 > l + } else { + yyb3638 = r.CheckBreak() + } + if yyb3638 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3638-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 { + yym3640 := z.EncBinary() + _ = yym3640 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3641 := !z.EncBinary() + yy2arr3641 := z.EncBasicHandle().StructToArray + var yyq3641 [3]bool + _, _, _ = yysep3641, yyq3641, yy2arr3641 + const yyr3641 bool = false + yyq3641[0] = x.Kind != "" + yyq3641[1] = x.APIVersion != "" + yyq3641[2] = true + var yynn3641 int + if yyr3641 || yy2arr3641 { + r.EncodeArrayStart(3) + } else { + yynn3641 = 0 + for _, b := range yyq3641 { + if b { + yynn3641++ + } + } + r.EncodeMapStart(yynn3641) + yynn3641 = 0 + } + if yyr3641 || yy2arr3641 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3641[0] { + yym3643 := z.EncBinary() + _ = yym3643 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3641[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3644 := z.EncBinary() + _ = yym3644 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3641 || yy2arr3641 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3641[1] { + yym3646 := z.EncBinary() + _ = yym3646 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3641[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3647 := z.EncBinary() + _ = yym3647 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3641 || yy2arr3641 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3641[2] { + yy3649 := &x.Reference + yy3649.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3641[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reference")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3650 := &x.Reference + yy3650.CodecEncodeSelf(e) + } + } + if yyr3641 || yy2arr3641 { + 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 + yym3651 := z.DecBinary() + _ = yym3651 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3652 := r.ContainerType() + if yyct3652 == codecSelferValueTypeMap1234 { + yyl3652 := r.ReadMapStart() + if yyl3652 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3652, d) + } + } else if yyct3652 == codecSelferValueTypeArray1234 { + yyl3652 := r.ReadArrayStart() + if yyl3652 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3652, 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 yys3653Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3653Slc + var yyhl3653 bool = l >= 0 + for yyj3653 := 0; ; yyj3653++ { + if yyhl3653 { + if yyj3653 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3653Slc = r.DecodeBytes(yys3653Slc, true, true) + yys3653 := string(yys3653Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3653 { + 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 { + yyv3656 := &x.Reference + yyv3656.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3653) + } // end switch yys3653 + } // end for yyj3653 + 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 yyj3657 int + var yyb3657 bool + var yyhl3657 bool = l >= 0 + yyj3657++ + if yyhl3657 { + yyb3657 = yyj3657 > l + } else { + yyb3657 = r.CheckBreak() + } + if yyb3657 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3657++ + if yyhl3657 { + yyb3657 = yyj3657 > l + } else { + yyb3657 = r.CheckBreak() + } + if yyb3657 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3657++ + if yyhl3657 { + yyb3657 = yyj3657 > l + } else { + yyb3657 = r.CheckBreak() + } + if yyb3657 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reference = ObjectReference{} + } else { + yyv3660 := &x.Reference + yyv3660.CodecDecodeSelf(d) + } + for { + yyj3657++ + if yyhl3657 { + yyb3657 = yyj3657 > l + } else { + yyb3657 = r.CheckBreak() + } + if yyb3657 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3657-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 { + yym3661 := z.EncBinary() + _ = yym3661 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3662 := !z.EncBinary() + yy2arr3662 := z.EncBasicHandle().StructToArray + var yyq3662 [2]bool + _, _, _ = yysep3662, yyq3662, yy2arr3662 + const yyr3662 bool = false + yyq3662[0] = x.Component != "" + yyq3662[1] = x.Host != "" + var yynn3662 int + if yyr3662 || yy2arr3662 { + r.EncodeArrayStart(2) + } else { + yynn3662 = 0 + for _, b := range yyq3662 { + if b { + yynn3662++ + } + } + r.EncodeMapStart(yynn3662) + yynn3662 = 0 + } + if yyr3662 || yy2arr3662 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3662[0] { + yym3664 := z.EncBinary() + _ = yym3664 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3662[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("component")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3665 := z.EncBinary() + _ = yym3665 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } + } + } + if yyr3662 || yy2arr3662 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3662[1] { + yym3667 := z.EncBinary() + _ = yym3667 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3662[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3668 := z.EncBinary() + _ = yym3668 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } + } + if yyr3662 || yy2arr3662 { + 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 + yym3669 := z.DecBinary() + _ = yym3669 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3670 := r.ContainerType() + if yyct3670 == codecSelferValueTypeMap1234 { + yyl3670 := r.ReadMapStart() + if yyl3670 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3670, d) + } + } else if yyct3670 == codecSelferValueTypeArray1234 { + yyl3670 := r.ReadArrayStart() + if yyl3670 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3670, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3671Slc = r.DecodeBytes(yys3671Slc, true, true) + yys3671 := string(yys3671Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3671 { + 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, yys3671) + } // end switch yys3671 + } // end for yyj3671 + 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 yyj3674 int + var yyb3674 bool + var yyhl3674 bool = l >= 0 + yyj3674++ + if yyhl3674 { + yyb3674 = yyj3674 > l + } else { + yyb3674 = r.CheckBreak() + } + if yyb3674 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Component = "" + } else { + x.Component = string(r.DecodeString()) + } + yyj3674++ + if yyhl3674 { + yyb3674 = yyj3674 > l + } else { + yyb3674 = r.CheckBreak() + } + if yyb3674 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + for { + yyj3674++ + if yyhl3674 { + yyb3674 = yyj3674 > l + } else { + yyb3674 = r.CheckBreak() + } + if yyb3674 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3674-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 { + yym3677 := z.EncBinary() + _ = yym3677 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3678 := !z.EncBinary() + yy2arr3678 := z.EncBasicHandle().StructToArray + var yyq3678 [11]bool + _, _, _ = yysep3678, yyq3678, yy2arr3678 + const yyr3678 bool = false + yyq3678[0] = x.Kind != "" + yyq3678[1] = x.APIVersion != "" + yyq3678[4] = x.Reason != "" + yyq3678[5] = x.Message != "" + yyq3678[6] = true + yyq3678[7] = true + yyq3678[8] = true + yyq3678[9] = x.Count != 0 + yyq3678[10] = x.Type != "" + var yynn3678 int + if yyr3678 || yy2arr3678 { + r.EncodeArrayStart(11) + } else { + yynn3678 = 2 + for _, b := range yyq3678 { + if b { + yynn3678++ + } + } + r.EncodeMapStart(yynn3678) + yynn3678 = 0 + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[0] { + yym3680 := z.EncBinary() + _ = yym3680 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3678[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3681 := z.EncBinary() + _ = yym3681 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[1] { + yym3683 := z.EncBinary() + _ = yym3683 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3678[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3684 := z.EncBinary() + _ = yym3684 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3686 := &x.ObjectMeta + yy3686.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3687 := &x.ObjectMeta + yy3687.CodecEncodeSelf(e) + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3689 := &x.InvolvedObject + yy3689.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3690 := &x.InvolvedObject + yy3690.CodecEncodeSelf(e) + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[4] { + yym3692 := z.EncBinary() + _ = yym3692 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3678[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3693 := z.EncBinary() + _ = yym3693 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[5] { + yym3695 := z.EncBinary() + _ = yym3695 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3678[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3696 := z.EncBinary() + _ = yym3696 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[6] { + yy3698 := &x.Source + yy3698.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3678[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("source")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3699 := &x.Source + yy3699.CodecEncodeSelf(e) + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[7] { + yy3701 := &x.FirstTimestamp + yym3702 := z.EncBinary() + _ = yym3702 + if false { + } else if z.HasExtensions() && z.EncExt(yy3701) { + } else if yym3702 { + z.EncBinaryMarshal(yy3701) + } else if !yym3702 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3701) + } else { + z.EncFallback(yy3701) + } + } else { + r.EncodeNil() + } + } else { + if yyq3678[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3703 := &x.FirstTimestamp + yym3704 := z.EncBinary() + _ = yym3704 + if false { + } else if z.HasExtensions() && z.EncExt(yy3703) { + } else if yym3704 { + z.EncBinaryMarshal(yy3703) + } else if !yym3704 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3703) + } else { + z.EncFallback(yy3703) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[8] { + yy3706 := &x.LastTimestamp + yym3707 := z.EncBinary() + _ = yym3707 + if false { + } else if z.HasExtensions() && z.EncExt(yy3706) { + } else if yym3707 { + z.EncBinaryMarshal(yy3706) + } else if !yym3707 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3706) + } else { + z.EncFallback(yy3706) + } + } else { + r.EncodeNil() + } + } else { + if yyq3678[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3708 := &x.LastTimestamp + yym3709 := z.EncBinary() + _ = yym3709 + if false { + } else if z.HasExtensions() && z.EncExt(yy3708) { + } else if yym3709 { + z.EncBinaryMarshal(yy3708) + } else if !yym3709 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3708) + } else { + z.EncFallback(yy3708) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[9] { + yym3711 := z.EncBinary() + _ = yym3711 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq3678[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("count")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3712 := z.EncBinary() + _ = yym3712 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + } + if yyr3678 || yy2arr3678 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3678[10] { + yym3714 := z.EncBinary() + _ = yym3714 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3678[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3715 := z.EncBinary() + _ = yym3715 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } + if yyr3678 || yy2arr3678 { + 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 + yym3716 := z.DecBinary() + _ = yym3716 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3717 := r.ContainerType() + if yyct3717 == codecSelferValueTypeMap1234 { + yyl3717 := r.ReadMapStart() + if yyl3717 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3717, d) + } + } else if yyct3717 == codecSelferValueTypeArray1234 { + yyl3717 := r.ReadArrayStart() + if yyl3717 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3717, 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 yys3718Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3718Slc + var yyhl3718 bool = l >= 0 + for yyj3718 := 0; ; yyj3718++ { + if yyhl3718 { + if yyj3718 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3718Slc = r.DecodeBytes(yys3718Slc, true, true) + yys3718 := string(yys3718Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3718 { + 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 { + yyv3721 := &x.ObjectMeta + yyv3721.CodecDecodeSelf(d) + } + case "involvedObject": + if r.TryDecodeAsNil() { + x.InvolvedObject = ObjectReference{} + } else { + yyv3722 := &x.InvolvedObject + yyv3722.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 { + yyv3725 := &x.Source + yyv3725.CodecDecodeSelf(d) + } + case "firstTimestamp": + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3726 := &x.FirstTimestamp + yym3727 := z.DecBinary() + _ = yym3727 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3726) { + } else if yym3727 { + z.DecBinaryUnmarshal(yyv3726) + } else if !yym3727 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3726) + } else { + z.DecFallback(yyv3726, false) + } + } + case "lastTimestamp": + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3728 := &x.LastTimestamp + yym3729 := z.DecBinary() + _ = yym3729 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3728) { + } else if yym3729 { + z.DecBinaryUnmarshal(yyv3728) + } else if !yym3729 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3728) + } else { + z.DecFallback(yyv3728, 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, yys3718) + } // end switch yys3718 + } // end for yyj3718 + 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 yyj3732 int + var yyb3732 bool + var yyhl3732 bool = l >= 0 + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3735 := &x.ObjectMeta + yyv3735.CodecDecodeSelf(d) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.InvolvedObject = ObjectReference{} + } else { + yyv3736 := &x.InvolvedObject + yyv3736.CodecDecodeSelf(d) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Source = EventSource{} + } else { + yyv3739 := &x.Source + yyv3739.CodecDecodeSelf(d) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3740 := &x.FirstTimestamp + yym3741 := z.DecBinary() + _ = yym3741 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3740) { + } else if yym3741 { + z.DecBinaryUnmarshal(yyv3740) + } else if !yym3741 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3740) + } else { + z.DecFallback(yyv3740, false) + } + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3742 := &x.LastTimestamp + yym3743 := z.DecBinary() + _ = yym3743 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3742) { + } else if yym3743 { + z.DecBinaryUnmarshal(yyv3742) + } else if !yym3743 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3742) + } else { + z.DecFallback(yyv3742, false) + } + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = int32(r.DecodeInt(32)) + } + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } + for { + yyj3732++ + if yyhl3732 { + yyb3732 = yyj3732 > l + } else { + yyb3732 = r.CheckBreak() + } + if yyb3732 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3732-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 { + yym3746 := z.EncBinary() + _ = yym3746 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3747 := !z.EncBinary() + yy2arr3747 := z.EncBasicHandle().StructToArray + var yyq3747 [4]bool + _, _, _ = yysep3747, yyq3747, yy2arr3747 + const yyr3747 bool = false + yyq3747[0] = x.Kind != "" + yyq3747[1] = x.APIVersion != "" + yyq3747[2] = true + var yynn3747 int + if yyr3747 || yy2arr3747 { + r.EncodeArrayStart(4) + } else { + yynn3747 = 1 + for _, b := range yyq3747 { + if b { + yynn3747++ + } + } + r.EncodeMapStart(yynn3747) + yynn3747 = 0 + } + if yyr3747 || yy2arr3747 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3747[0] { + yym3749 := z.EncBinary() + _ = yym3749 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3747[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3750 := z.EncBinary() + _ = yym3750 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3747 || yy2arr3747 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3747[1] { + yym3752 := z.EncBinary() + _ = yym3752 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3747[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3753 := z.EncBinary() + _ = yym3753 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3747 || yy2arr3747 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3747[2] { + yy3755 := &x.ListMeta + yym3756 := z.EncBinary() + _ = yym3756 + if false { + } else if z.HasExtensions() && z.EncExt(yy3755) { + } else { + z.EncFallback(yy3755) + } + } else { + r.EncodeNil() + } + } else { + if yyq3747[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3757 := &x.ListMeta + yym3758 := z.EncBinary() + _ = yym3758 + if false { + } else if z.HasExtensions() && z.EncExt(yy3757) { + } else { + z.EncFallback(yy3757) + } + } + } + if yyr3747 || yy2arr3747 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3760 := z.EncBinary() + _ = yym3760 + 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 { + yym3761 := z.EncBinary() + _ = yym3761 + if false { + } else { + h.encSliceEvent(([]Event)(x.Items), e) + } + } + } + if yyr3747 || yy2arr3747 { + 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 + yym3762 := z.DecBinary() + _ = yym3762 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3763 := r.ContainerType() + if yyct3763 == codecSelferValueTypeMap1234 { + yyl3763 := r.ReadMapStart() + if yyl3763 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3763, d) + } + } else if yyct3763 == codecSelferValueTypeArray1234 { + yyl3763 := r.ReadArrayStart() + if yyl3763 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3763, 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 yys3764Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3764Slc + var yyhl3764 bool = l >= 0 + for yyj3764 := 0; ; yyj3764++ { + if yyhl3764 { + if yyj3764 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3764Slc = r.DecodeBytes(yys3764Slc, true, true) + yys3764 := string(yys3764Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3764 { + 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 { + yyv3767 := &x.ListMeta + yym3768 := z.DecBinary() + _ = yym3768 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3767) { + } else { + z.DecFallback(yyv3767, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3769 := &x.Items + yym3770 := z.DecBinary() + _ = yym3770 + if false { + } else { + h.decSliceEvent((*[]Event)(yyv3769), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3764) + } // end switch yys3764 + } // end for yyj3764 + 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 yyj3771 int + var yyb3771 bool + var yyhl3771 bool = l >= 0 + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l + } else { + yyb3771 = r.CheckBreak() + } + if yyb3771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l + } else { + yyb3771 = r.CheckBreak() + } + if yyb3771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l + } else { + yyb3771 = r.CheckBreak() + } + if yyb3771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3774 := &x.ListMeta + yym3775 := z.DecBinary() + _ = yym3775 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3774) { + } else { + z.DecFallback(yyv3774, false) + } + } + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l + } else { + yyb3771 = r.CheckBreak() + } + if yyb3771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3776 := &x.Items + yym3777 := z.DecBinary() + _ = yym3777 + if false { + } else { + h.decSliceEvent((*[]Event)(yyv3776), d) + } + } + for { + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l + } else { + yyb3771 = r.CheckBreak() + } + if yyb3771 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3771-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 { + yym3778 := z.EncBinary() + _ = yym3778 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3779 := !z.EncBinary() + yy2arr3779 := z.EncBasicHandle().StructToArray + var yyq3779 [4]bool + _, _, _ = yysep3779, yyq3779, yy2arr3779 + const yyr3779 bool = false + yyq3779[0] = x.Kind != "" + yyq3779[1] = x.APIVersion != "" + yyq3779[2] = true + var yynn3779 int + if yyr3779 || yy2arr3779 { + r.EncodeArrayStart(4) + } else { + yynn3779 = 1 + for _, b := range yyq3779 { + if b { + yynn3779++ + } + } + r.EncodeMapStart(yynn3779) + yynn3779 = 0 + } + if yyr3779 || yy2arr3779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3779[0] { + yym3781 := z.EncBinary() + _ = yym3781 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3779[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3782 := z.EncBinary() + _ = yym3782 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3779 || yy2arr3779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3779[1] { + yym3784 := z.EncBinary() + _ = yym3784 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3779[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3785 := z.EncBinary() + _ = yym3785 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3779 || yy2arr3779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3779[2] { + yy3787 := &x.ListMeta + yym3788 := z.EncBinary() + _ = yym3788 + if false { + } else if z.HasExtensions() && z.EncExt(yy3787) { + } else { + z.EncFallback(yy3787) + } + } else { + r.EncodeNil() + } + } else { + if yyq3779[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3789 := &x.ListMeta + yym3790 := z.EncBinary() + _ = yym3790 + if false { + } else if z.HasExtensions() && z.EncExt(yy3789) { + } else { + z.EncFallback(yy3789) + } + } + } + if yyr3779 || yy2arr3779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3792 := z.EncBinary() + _ = yym3792 + 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 { + yym3793 := z.EncBinary() + _ = yym3793 + if false { + } else { + h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) + } + } + } + if yyr3779 || yy2arr3779 { + 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 + yym3794 := z.DecBinary() + _ = yym3794 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3795 := r.ContainerType() + if yyct3795 == codecSelferValueTypeMap1234 { + yyl3795 := r.ReadMapStart() + if yyl3795 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3795, d) + } + } else if yyct3795 == codecSelferValueTypeArray1234 { + yyl3795 := r.ReadArrayStart() + if yyl3795 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3795, 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 yys3796Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3796Slc + var yyhl3796 bool = l >= 0 + for yyj3796 := 0; ; yyj3796++ { + if yyhl3796 { + if yyj3796 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3796Slc = r.DecodeBytes(yys3796Slc, true, true) + yys3796 := string(yys3796Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3796 { + 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 { + yyv3799 := &x.ListMeta + yym3800 := z.DecBinary() + _ = yym3800 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3799) { + } else { + z.DecFallback(yyv3799, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3801 := &x.Items + yym3802 := z.DecBinary() + _ = yym3802 + if false { + } else { + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3801), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3796) + } // end switch yys3796 + } // end for yyj3796 + 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 yyj3803 int + var yyb3803 bool + var yyhl3803 bool = l >= 0 + yyj3803++ + if yyhl3803 { + yyb3803 = yyj3803 > l + } else { + yyb3803 = r.CheckBreak() + } + if yyb3803 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3803++ + if yyhl3803 { + yyb3803 = yyj3803 > l + } else { + yyb3803 = r.CheckBreak() + } + if yyb3803 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3803++ + if yyhl3803 { + yyb3803 = yyj3803 > l + } else { + yyb3803 = r.CheckBreak() + } + if yyb3803 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3806 := &x.ListMeta + yym3807 := z.DecBinary() + _ = yym3807 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3806) { + } else { + z.DecFallback(yyv3806, false) + } + } + yyj3803++ + if yyhl3803 { + yyb3803 = yyj3803 > l + } else { + yyb3803 = r.CheckBreak() + } + if yyb3803 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3808 := &x.Items + yym3809 := z.DecBinary() + _ = yym3809 + if false { + } else { + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3808), d) + } + } + for { + yyj3803++ + if yyhl3803 { + yyb3803 = yyj3803 > l + } else { + yyb3803 = r.CheckBreak() + } + if yyb3803 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3803-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3810 := z.EncBinary() + _ = yym3810 + 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 + yym3811 := z.DecBinary() + _ = yym3811 + 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 { + yym3812 := z.EncBinary() + _ = yym3812 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3813 := !z.EncBinary() + yy2arr3813 := z.EncBasicHandle().StructToArray + var yyq3813 [6]bool + _, _, _ = yysep3813, yyq3813, yy2arr3813 + const yyr3813 bool = false + yyq3813[0] = x.Type != "" + yyq3813[1] = len(x.Max) != 0 + yyq3813[2] = len(x.Min) != 0 + yyq3813[3] = len(x.Default) != 0 + yyq3813[4] = len(x.DefaultRequest) != 0 + yyq3813[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn3813 int + if yyr3813 || yy2arr3813 { + r.EncodeArrayStart(6) + } else { + yynn3813 = 0 + for _, b := range yyq3813 { + if b { + yynn3813++ + } + } + r.EncodeMapStart(yynn3813) + yynn3813 = 0 + } + if yyr3813 || yy2arr3813 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3813[0] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3813[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr3813 || yy2arr3813 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3813[1] { + if x.Max == nil { + r.EncodeNil() + } else { + x.Max.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3813[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 yyr3813 || yy2arr3813 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3813[2] { + if x.Min == nil { + r.EncodeNil() + } else { + x.Min.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3813[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 yyr3813 || yy2arr3813 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3813[3] { + if x.Default == nil { + r.EncodeNil() + } else { + x.Default.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3813[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 yyr3813 || yy2arr3813 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3813[4] { + if x.DefaultRequest == nil { + r.EncodeNil() + } else { + x.DefaultRequest.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3813[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 yyr3813 || yy2arr3813 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3813[5] { + if x.MaxLimitRequestRatio == nil { + r.EncodeNil() + } else { + x.MaxLimitRequestRatio.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3813[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 yyr3813 || yy2arr3813 { + 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 + yym3820 := z.DecBinary() + _ = yym3820 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3821 := r.ContainerType() + if yyct3821 == codecSelferValueTypeMap1234 { + yyl3821 := r.ReadMapStart() + if yyl3821 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3821, d) + } + } else if yyct3821 == codecSelferValueTypeArray1234 { + yyl3821 := r.ReadArrayStart() + if yyl3821 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3821, 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 yys3822Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3822Slc + var yyhl3822 bool = l >= 0 + for yyj3822 := 0; ; yyj3822++ { + if yyhl3822 { + if yyj3822 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3822Slc = r.DecodeBytes(yys3822Slc, true, true) + yys3822 := string(yys3822Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3822 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + case "max": + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv3824 := &x.Max + yyv3824.CodecDecodeSelf(d) + } + case "min": + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv3825 := &x.Min + yyv3825.CodecDecodeSelf(d) + } + case "default": + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv3826 := &x.Default + yyv3826.CodecDecodeSelf(d) + } + case "defaultRequest": + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv3827 := &x.DefaultRequest + yyv3827.CodecDecodeSelf(d) + } + case "maxLimitRequestRatio": + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv3828 := &x.MaxLimitRequestRatio + yyv3828.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3822) + } // end switch yys3822 + } // end for yyj3822 + 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 yyj3829 int + var yyb3829 bool + var yyhl3829 bool = l >= 0 + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv3831 := &x.Max + yyv3831.CodecDecodeSelf(d) + } + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv3832 := &x.Min + yyv3832.CodecDecodeSelf(d) + } + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv3833 := &x.Default + yyv3833.CodecDecodeSelf(d) + } + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv3834 := &x.DefaultRequest + yyv3834.CodecDecodeSelf(d) + } + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv3835 := &x.MaxLimitRequestRatio + yyv3835.CodecDecodeSelf(d) + } + for { + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l + } else { + yyb3829 = r.CheckBreak() + } + if yyb3829 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3829-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 { + yym3836 := z.EncBinary() + _ = yym3836 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3837 := !z.EncBinary() + yy2arr3837 := z.EncBasicHandle().StructToArray + var yyq3837 [1]bool + _, _, _ = yysep3837, yyq3837, yy2arr3837 + const yyr3837 bool = false + var yynn3837 int + if yyr3837 || yy2arr3837 { + r.EncodeArrayStart(1) + } else { + yynn3837 = 1 + for _, b := range yyq3837 { + if b { + yynn3837++ + } + } + r.EncodeMapStart(yynn3837) + yynn3837 = 0 + } + if yyr3837 || yy2arr3837 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Limits == nil { + r.EncodeNil() + } else { + yym3839 := z.EncBinary() + _ = yym3839 + 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 { + yym3840 := z.EncBinary() + _ = yym3840 + if false { + } else { + h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + } + } + } + if yyr3837 || yy2arr3837 { + 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 + yym3841 := z.DecBinary() + _ = yym3841 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3842 := r.ContainerType() + if yyct3842 == codecSelferValueTypeMap1234 { + yyl3842 := r.ReadMapStart() + if yyl3842 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3842, d) + } + } else if yyct3842 == codecSelferValueTypeArray1234 { + yyl3842 := r.ReadArrayStart() + if yyl3842 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3842, 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 yys3843Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3843Slc + var yyhl3843 bool = l >= 0 + for yyj3843 := 0; ; yyj3843++ { + if yyhl3843 { + if yyj3843 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3843Slc = r.DecodeBytes(yys3843Slc, true, true) + yys3843 := string(yys3843Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3843 { + case "limits": + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv3844 := &x.Limits + yym3845 := z.DecBinary() + _ = yym3845 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3844), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3843) + } // end switch yys3843 + } // end for yyj3843 + 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 yyj3846 int + var yyb3846 bool + var yyhl3846 bool = l >= 0 + yyj3846++ + if yyhl3846 { + yyb3846 = yyj3846 > l + } else { + yyb3846 = r.CheckBreak() + } + if yyb3846 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv3847 := &x.Limits + yym3848 := z.DecBinary() + _ = yym3848 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3847), d) + } + } + for { + yyj3846++ + if yyhl3846 { + yyb3846 = yyj3846 > l + } else { + yyb3846 = r.CheckBreak() + } + if yyb3846 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3846-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 { + yym3849 := z.EncBinary() + _ = yym3849 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3850 := !z.EncBinary() + yy2arr3850 := z.EncBasicHandle().StructToArray + var yyq3850 [4]bool + _, _, _ = yysep3850, yyq3850, yy2arr3850 + const yyr3850 bool = false + yyq3850[0] = x.Kind != "" + yyq3850[1] = x.APIVersion != "" + yyq3850[2] = true + yyq3850[3] = true + var yynn3850 int + if yyr3850 || yy2arr3850 { + r.EncodeArrayStart(4) + } else { + yynn3850 = 0 + for _, b := range yyq3850 { + if b { + yynn3850++ + } + } + r.EncodeMapStart(yynn3850) + yynn3850 = 0 + } + if yyr3850 || yy2arr3850 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3850[0] { + yym3852 := z.EncBinary() + _ = yym3852 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3850[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3853 := z.EncBinary() + _ = yym3853 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3850 || yy2arr3850 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3850[1] { + yym3855 := z.EncBinary() + _ = yym3855 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3850[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3856 := z.EncBinary() + _ = yym3856 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3850 || yy2arr3850 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3850[2] { + yy3858 := &x.ObjectMeta + yy3858.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3850[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3859 := &x.ObjectMeta + yy3859.CodecEncodeSelf(e) + } + } + if yyr3850 || yy2arr3850 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3850[3] { + yy3861 := &x.Spec + yy3861.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3850[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3862 := &x.Spec + yy3862.CodecEncodeSelf(e) + } + } + if yyr3850 || yy2arr3850 { + 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 + yym3863 := z.DecBinary() + _ = yym3863 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3864 := r.ContainerType() + if yyct3864 == codecSelferValueTypeMap1234 { + yyl3864 := r.ReadMapStart() + if yyl3864 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3864, d) + } + } else if yyct3864 == codecSelferValueTypeArray1234 { + yyl3864 := r.ReadArrayStart() + if yyl3864 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3864, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3865Slc = r.DecodeBytes(yys3865Slc, true, true) + yys3865 := string(yys3865Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3865 { + 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 { + yyv3868 := &x.ObjectMeta + yyv3868.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv3869 := &x.Spec + yyv3869.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3865) + } // end switch yys3865 + } // end for yyj3865 + 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 yyj3870 int + var yyb3870 bool + var yyhl3870 bool = l >= 0 + yyj3870++ + if yyhl3870 { + yyb3870 = yyj3870 > l + } else { + yyb3870 = r.CheckBreak() + } + if yyb3870 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3870++ + if yyhl3870 { + yyb3870 = yyj3870 > l + } else { + yyb3870 = r.CheckBreak() + } + if yyb3870 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3870++ + if yyhl3870 { + yyb3870 = yyj3870 > l + } else { + yyb3870 = r.CheckBreak() + } + if yyb3870 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3873 := &x.ObjectMeta + yyv3873.CodecDecodeSelf(d) + } + yyj3870++ + if yyhl3870 { + yyb3870 = yyj3870 > l + } else { + yyb3870 = r.CheckBreak() + } + if yyb3870 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv3874 := &x.Spec + yyv3874.CodecDecodeSelf(d) + } + for { + yyj3870++ + if yyhl3870 { + yyb3870 = yyj3870 > l + } else { + yyb3870 = r.CheckBreak() + } + if yyb3870 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3870-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 { + yym3875 := z.EncBinary() + _ = yym3875 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3876 := !z.EncBinary() + yy2arr3876 := z.EncBasicHandle().StructToArray + var yyq3876 [4]bool + _, _, _ = yysep3876, yyq3876, yy2arr3876 + const yyr3876 bool = false + yyq3876[0] = x.Kind != "" + yyq3876[1] = x.APIVersion != "" + yyq3876[2] = true + var yynn3876 int + if yyr3876 || yy2arr3876 { + r.EncodeArrayStart(4) + } else { + yynn3876 = 1 + for _, b := range yyq3876 { + if b { + yynn3876++ + } + } + r.EncodeMapStart(yynn3876) + yynn3876 = 0 + } + if yyr3876 || yy2arr3876 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3876[0] { + yym3878 := z.EncBinary() + _ = yym3878 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3876[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3879 := z.EncBinary() + _ = yym3879 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3876 || yy2arr3876 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3876[1] { + yym3881 := z.EncBinary() + _ = yym3881 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3876[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3882 := z.EncBinary() + _ = yym3882 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3876 || yy2arr3876 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3876[2] { + yy3884 := &x.ListMeta + yym3885 := z.EncBinary() + _ = yym3885 + if false { + } else if z.HasExtensions() && z.EncExt(yy3884) { + } else { + z.EncFallback(yy3884) + } + } else { + r.EncodeNil() + } + } else { + if yyq3876[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3886 := &x.ListMeta + yym3887 := z.EncBinary() + _ = yym3887 + if false { + } else if z.HasExtensions() && z.EncExt(yy3886) { + } else { + z.EncFallback(yy3886) + } + } + } + if yyr3876 || yy2arr3876 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3889 := z.EncBinary() + _ = yym3889 + 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 { + yym3890 := z.EncBinary() + _ = yym3890 + if false { + } else { + h.encSliceLimitRange(([]LimitRange)(x.Items), e) + } + } + } + if yyr3876 || yy2arr3876 { + 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 + yym3891 := z.DecBinary() + _ = yym3891 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3892 := r.ContainerType() + if yyct3892 == codecSelferValueTypeMap1234 { + yyl3892 := r.ReadMapStart() + if yyl3892 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3892, d) + } + } else if yyct3892 == codecSelferValueTypeArray1234 { + yyl3892 := r.ReadArrayStart() + if yyl3892 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3892, 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 yys3893Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3893Slc + var yyhl3893 bool = l >= 0 + for yyj3893 := 0; ; yyj3893++ { + if yyhl3893 { + if yyj3893 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3893Slc = r.DecodeBytes(yys3893Slc, true, true) + yys3893 := string(yys3893Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3893 { + 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 { + yyv3896 := &x.ListMeta + yym3897 := z.DecBinary() + _ = yym3897 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3896) { + } else { + z.DecFallback(yyv3896, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3898 := &x.Items + yym3899 := z.DecBinary() + _ = yym3899 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv3898), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3893) + } // end switch yys3893 + } // end for yyj3893 + 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 yyj3900 int + var yyb3900 bool + var yyhl3900 bool = l >= 0 + yyj3900++ + if yyhl3900 { + yyb3900 = yyj3900 > l + } else { + yyb3900 = r.CheckBreak() + } + if yyb3900 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3900++ + if yyhl3900 { + yyb3900 = yyj3900 > l + } else { + yyb3900 = r.CheckBreak() + } + if yyb3900 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3900++ + if yyhl3900 { + yyb3900 = yyj3900 > l + } else { + yyb3900 = r.CheckBreak() + } + if yyb3900 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3903 := &x.ListMeta + yym3904 := z.DecBinary() + _ = yym3904 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3903) { + } else { + z.DecFallback(yyv3903, false) + } + } + yyj3900++ + if yyhl3900 { + yyb3900 = yyj3900 > l + } else { + yyb3900 = r.CheckBreak() + } + if yyb3900 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3905 := &x.Items + yym3906 := z.DecBinary() + _ = yym3906 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv3905), d) + } + } + for { + yyj3900++ + if yyhl3900 { + yyb3900 = yyj3900 > l + } else { + yyb3900 = r.CheckBreak() + } + if yyb3900 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3900-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3907 := z.EncBinary() + _ = yym3907 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3908 := z.DecBinary() + _ = yym3908 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3909 := z.EncBinary() + _ = yym3909 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3910 := !z.EncBinary() + yy2arr3910 := z.EncBasicHandle().StructToArray + var yyq3910 [2]bool + _, _, _ = yysep3910, yyq3910, yy2arr3910 + const yyr3910 bool = false + yyq3910[0] = len(x.Hard) != 0 + yyq3910[1] = len(x.Scopes) != 0 + var yynn3910 int + if yyr3910 || yy2arr3910 { + r.EncodeArrayStart(2) + } else { + yynn3910 = 0 + for _, b := range yyq3910 { + if b { + yynn3910++ + } + } + r.EncodeMapStart(yynn3910) + yynn3910 = 0 + } + if yyr3910 || yy2arr3910 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3910[0] { + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3910[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hard")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } + } + if yyr3910 || yy2arr3910 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3910[1] { + if x.Scopes == nil { + r.EncodeNil() + } else { + yym3913 := z.EncBinary() + _ = yym3913 + if false { + } else { + h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3910[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("scopes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Scopes == nil { + r.EncodeNil() + } else { + yym3914 := z.EncBinary() + _ = yym3914 + if false { + } else { + h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) + } + } + } + } + if yyr3910 || yy2arr3910 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3915 := z.DecBinary() + _ = yym3915 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3916 := r.ContainerType() + if yyct3916 == codecSelferValueTypeMap1234 { + yyl3916 := r.ReadMapStart() + if yyl3916 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3916, d) + } + } else if yyct3916 == codecSelferValueTypeArray1234 { + yyl3916 := r.ReadArrayStart() + if yyl3916 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3916, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3917Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3917Slc + var yyhl3917 bool = l >= 0 + for yyj3917 := 0; ; yyj3917++ { + if yyhl3917 { + if yyj3917 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3917Slc = r.DecodeBytes(yys3917Slc, true, true) + yys3917 := string(yys3917Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3917 { + case "hard": + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3918 := &x.Hard + yyv3918.CodecDecodeSelf(d) + } + case "scopes": + if r.TryDecodeAsNil() { + x.Scopes = nil + } else { + yyv3919 := &x.Scopes + yym3920 := z.DecBinary() + _ = yym3920 + if false { + } else { + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3919), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3917) + } // end switch yys3917 + } // end for yyj3917 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3921 int + var yyb3921 bool + var yyhl3921 bool = l >= 0 + yyj3921++ + if yyhl3921 { + yyb3921 = yyj3921 > l + } else { + yyb3921 = r.CheckBreak() + } + if yyb3921 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3922 := &x.Hard + yyv3922.CodecDecodeSelf(d) + } + yyj3921++ + if yyhl3921 { + yyb3921 = yyj3921 > l + } else { + yyb3921 = r.CheckBreak() + } + if yyb3921 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Scopes = nil + } else { + yyv3923 := &x.Scopes + yym3924 := z.DecBinary() + _ = yym3924 + if false { + } else { + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3923), d) + } + } + for { + yyj3921++ + if yyhl3921 { + yyb3921 = yyj3921 > l + } else { + yyb3921 = r.CheckBreak() + } + if yyb3921 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3921-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceQuotaStatus) 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 [2]bool + _, _, _ = yysep3926, yyq3926, yy2arr3926 + const yyr3926 bool = false + yyq3926[0] = len(x.Hard) != 0 + yyq3926[1] = len(x.Used) != 0 + var yynn3926 int + if yyr3926 || yy2arr3926 { + r.EncodeArrayStart(2) + } else { + yynn3926 = 0 + for _, b := range yyq3926 { + if b { + yynn3926++ + } + } + r.EncodeMapStart(yynn3926) + yynn3926 = 0 + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3926[0] { + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3926[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hard")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Hard == nil { + r.EncodeNil() + } else { + x.Hard.CodecEncodeSelf(e) + } + } + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3926[1] { + if x.Used == nil { + r.EncodeNil() + } else { + x.Used.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3926[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("used")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Used == nil { + r.EncodeNil() + } else { + x.Used.CodecEncodeSelf(e) + } + } + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3929 := z.DecBinary() + _ = yym3929 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3930 := r.ContainerType() + if yyct3930 == codecSelferValueTypeMap1234 { + yyl3930 := r.ReadMapStart() + if yyl3930 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3930, d) + } + } else if yyct3930 == codecSelferValueTypeArray1234 { + yyl3930 := r.ReadArrayStart() + if yyl3930 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3930, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3931Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3931Slc + var yyhl3931 bool = l >= 0 + for yyj3931 := 0; ; yyj3931++ { + if yyhl3931 { + if yyj3931 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3931Slc = r.DecodeBytes(yys3931Slc, true, true) + yys3931 := string(yys3931Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3931 { + case "hard": + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3932 := &x.Hard + yyv3932.CodecDecodeSelf(d) + } + case "used": + if r.TryDecodeAsNil() { + x.Used = nil + } else { + yyv3933 := &x.Used + yyv3933.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3931) + } // end switch yys3931 + } // end for yyj3931 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3934 int + var yyb3934 bool + var yyhl3934 bool = l >= 0 + yyj3934++ + if yyhl3934 { + yyb3934 = yyj3934 > l + } else { + yyb3934 = r.CheckBreak() + } + if yyb3934 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hard = nil + } else { + yyv3935 := &x.Hard + yyv3935.CodecDecodeSelf(d) + } + yyj3934++ + if yyhl3934 { + yyb3934 = yyj3934 > l + } else { + yyb3934 = r.CheckBreak() + } + if yyb3934 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Used = nil + } else { + yyv3936 := &x.Used + yyv3936.CodecDecodeSelf(d) + } + for { + yyj3934++ + if yyhl3934 { + yyb3934 = yyj3934 > l + } else { + yyb3934 = r.CheckBreak() + } + if yyb3934 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3934-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3937 := z.EncBinary() + _ = yym3937 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3938 := !z.EncBinary() + yy2arr3938 := z.EncBasicHandle().StructToArray + var yyq3938 [5]bool + _, _, _ = yysep3938, yyq3938, yy2arr3938 + const yyr3938 bool = false + yyq3938[0] = x.Kind != "" + yyq3938[1] = x.APIVersion != "" + yyq3938[2] = true + yyq3938[3] = true + yyq3938[4] = true + var yynn3938 int + if yyr3938 || yy2arr3938 { + r.EncodeArrayStart(5) + } else { + yynn3938 = 0 + for _, b := range yyq3938 { + if b { + yynn3938++ + } + } + r.EncodeMapStart(yynn3938) + yynn3938 = 0 + } + if yyr3938 || yy2arr3938 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3938[0] { + yym3940 := z.EncBinary() + _ = yym3940 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3938[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3941 := z.EncBinary() + _ = yym3941 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3938 || yy2arr3938 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3938[1] { + yym3943 := z.EncBinary() + _ = yym3943 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3938[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3944 := z.EncBinary() + _ = yym3944 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3938 || yy2arr3938 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3938[2] { + yy3946 := &x.ObjectMeta + yy3946.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3938[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3947 := &x.ObjectMeta + yy3947.CodecEncodeSelf(e) + } + } + if yyr3938 || yy2arr3938 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3938[3] { + yy3949 := &x.Spec + yy3949.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3938[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3950 := &x.Spec + yy3950.CodecEncodeSelf(e) + } + } + if yyr3938 || yy2arr3938 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3938[4] { + yy3952 := &x.Status + yy3952.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3938[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3953 := &x.Status + yy3953.CodecEncodeSelf(e) + } + } + if yyr3938 || yy2arr3938 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3954 := z.DecBinary() + _ = yym3954 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3955 := r.ContainerType() + if yyct3955 == codecSelferValueTypeMap1234 { + yyl3955 := r.ReadMapStart() + if yyl3955 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3955, d) + } + } else if yyct3955 == codecSelferValueTypeArray1234 { + yyl3955 := r.ReadArrayStart() + if yyl3955 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3955, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3956Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3956Slc + var yyhl3956 bool = l >= 0 + for yyj3956 := 0; ; yyj3956++ { + if yyhl3956 { + if yyj3956 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3956Slc = r.DecodeBytes(yys3956Slc, true, true) + yys3956 := string(yys3956Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3956 { + 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 { + yyv3959 := &x.ObjectMeta + yyv3959.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ResourceQuotaSpec{} + } else { + yyv3960 := &x.Spec + yyv3960.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ResourceQuotaStatus{} + } else { + yyv3961 := &x.Status + yyv3961.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3956) + } // end switch yys3956 + } // end for yyj3956 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3962 int + var yyb3962 bool + var yyhl3962 bool = l >= 0 + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l + } else { + yyb3962 = r.CheckBreak() + } + if yyb3962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l + } else { + yyb3962 = r.CheckBreak() + } + if yyb3962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l + } else { + yyb3962 = r.CheckBreak() + } + if yyb3962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3965 := &x.ObjectMeta + yyv3965.CodecDecodeSelf(d) + } + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l + } else { + yyb3962 = r.CheckBreak() + } + if yyb3962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ResourceQuotaSpec{} + } else { + yyv3966 := &x.Spec + yyv3966.CodecDecodeSelf(d) + } + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l + } else { + yyb3962 = r.CheckBreak() + } + if yyb3962 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ResourceQuotaStatus{} + } else { + yyv3967 := &x.Status + yyv3967.CodecDecodeSelf(d) + } + for { + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l + } else { + yyb3962 = r.CheckBreak() + } + if yyb3962 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3962-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3968 := z.EncBinary() + _ = yym3968 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3969 := !z.EncBinary() + yy2arr3969 := z.EncBasicHandle().StructToArray + var yyq3969 [4]bool + _, _, _ = yysep3969, yyq3969, yy2arr3969 + const yyr3969 bool = false + yyq3969[0] = x.Kind != "" + yyq3969[1] = x.APIVersion != "" + yyq3969[2] = true + var yynn3969 int + if yyr3969 || yy2arr3969 { + r.EncodeArrayStart(4) + } else { + yynn3969 = 1 + for _, b := range yyq3969 { + if b { + yynn3969++ + } + } + r.EncodeMapStart(yynn3969) + yynn3969 = 0 + } + if yyr3969 || yy2arr3969 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3969[0] { + yym3971 := z.EncBinary() + _ = yym3971 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3969[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3972 := z.EncBinary() + _ = yym3972 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3969 || yy2arr3969 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3969[1] { + yym3974 := z.EncBinary() + _ = yym3974 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3969[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3975 := z.EncBinary() + _ = yym3975 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3969 || yy2arr3969 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3969[2] { + yy3977 := &x.ListMeta + yym3978 := z.EncBinary() + _ = yym3978 + if false { + } else if z.HasExtensions() && z.EncExt(yy3977) { + } else { + z.EncFallback(yy3977) + } + } else { + r.EncodeNil() + } + } else { + if yyq3969[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3979 := &x.ListMeta + yym3980 := z.EncBinary() + _ = yym3980 + if false { + } else if z.HasExtensions() && z.EncExt(yy3979) { + } else { + z.EncFallback(yy3979) + } + } + } + if yyr3969 || yy2arr3969 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3982 := z.EncBinary() + _ = yym3982 + if false { + } else { + h.encSliceResourceQuota(([]ResourceQuota)(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 { + yym3983 := z.EncBinary() + _ = yym3983 + if false { + } else { + h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) + } + } + } + if yyr3969 || yy2arr3969 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3984 := z.DecBinary() + _ = yym3984 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3985 := r.ContainerType() + if yyct3985 == codecSelferValueTypeMap1234 { + yyl3985 := r.ReadMapStart() + if yyl3985 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3985, d) + } + } else if yyct3985 == codecSelferValueTypeArray1234 { + yyl3985 := r.ReadArrayStart() + if yyl3985 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3985, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3986Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3986Slc + var yyhl3986 bool = l >= 0 + for yyj3986 := 0; ; yyj3986++ { + if yyhl3986 { + if yyj3986 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3986Slc = r.DecodeBytes(yys3986Slc, true, true) + yys3986 := string(yys3986Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3986 { + 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 { + yyv3989 := &x.ListMeta + yym3990 := z.DecBinary() + _ = yym3990 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3989) { + } else { + z.DecFallback(yyv3989, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3991 := &x.Items + yym3992 := z.DecBinary() + _ = yym3992 + if false { + } else { + h.decSliceResourceQuota((*[]ResourceQuota)(yyv3991), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3986) + } // end switch yys3986 + } // end for yyj3986 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ResourceQuotaList) 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3996 := &x.ListMeta + yym3997 := z.DecBinary() + _ = yym3997 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3996) { + } else { + z.DecFallback(yyv3996, false) + } + } + 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.Items = nil + } else { + yyv3998 := &x.Items + yym3999 := z.DecBinary() + _ = yym3999 + if false { + } else { + h.decSliceResourceQuota((*[]ResourceQuota)(yyv3998), 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 *Secret) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4000 := z.EncBinary() + _ = yym4000 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4001 := !z.EncBinary() + yy2arr4001 := z.EncBasicHandle().StructToArray + var yyq4001 [6]bool + _, _, _ = yysep4001, yyq4001, yy2arr4001 + const yyr4001 bool = false + yyq4001[0] = x.Kind != "" + yyq4001[1] = x.APIVersion != "" + yyq4001[2] = true + yyq4001[3] = len(x.Data) != 0 + yyq4001[4] = len(x.StringData) != 0 + yyq4001[5] = x.Type != "" + var yynn4001 int + if yyr4001 || yy2arr4001 { + r.EncodeArrayStart(6) + } else { + yynn4001 = 0 + for _, b := range yyq4001 { + if b { + yynn4001++ + } + } + r.EncodeMapStart(yynn4001) + yynn4001 = 0 + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4001[0] { + yym4003 := z.EncBinary() + _ = yym4003 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4001[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4004 := z.EncBinary() + _ = yym4004 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4001[1] { + yym4006 := z.EncBinary() + _ = yym4006 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4001[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4007 := z.EncBinary() + _ = yym4007 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4001[2] { + yy4009 := &x.ObjectMeta + yy4009.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4001[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4010 := &x.ObjectMeta + yy4010.CodecEncodeSelf(e) + } + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4001[3] { + if x.Data == nil { + r.EncodeNil() + } else { + yym4012 := z.EncBinary() + _ = yym4012 + if false { + } else { + h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4001[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4013 := z.EncBinary() + _ = yym4013 + if false { + } else { + h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) + } + } + } + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4001[4] { + if x.StringData == nil { + r.EncodeNil() + } else { + yym4015 := z.EncBinary() + _ = yym4015 + if false { + } else { + z.F.EncMapStringStringV(x.StringData, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4001[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stringData")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.StringData == nil { + r.EncodeNil() + } else { + yym4016 := z.EncBinary() + _ = yym4016 + if false { + } else { + z.F.EncMapStringStringV(x.StringData, false, e) + } + } + } + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4001[5] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4001[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr4001 || yy2arr4001 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4018 := z.DecBinary() + _ = yym4018 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4019 := r.ContainerType() + if yyct4019 == codecSelferValueTypeMap1234 { + yyl4019 := r.ReadMapStart() + if yyl4019 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4019, d) + } + } else if yyct4019 == codecSelferValueTypeArray1234 { + yyl4019 := r.ReadArrayStart() + if yyl4019 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4019, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4020Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4020Slc + var yyhl4020 bool = l >= 0 + for yyj4020 := 0; ; yyj4020++ { + if yyhl4020 { + if yyj4020 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4020Slc = r.DecodeBytes(yys4020Slc, true, true) + yys4020 := string(yys4020Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4020 { + 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 { + yyv4023 := &x.ObjectMeta + yyv4023.CodecDecodeSelf(d) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4024 := &x.Data + yym4025 := z.DecBinary() + _ = yym4025 + if false { + } else { + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4024), d) + } + } + case "stringData": + if r.TryDecodeAsNil() { + x.StringData = nil + } else { + yyv4026 := &x.StringData + yym4027 := z.DecBinary() + _ = yym4027 + if false { + } else { + z.F.DecMapStringStringX(yyv4026, false, d) + } + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = SecretType(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys4020) + } // end switch yys4020 + } // end for yyj4020 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Secret) 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 + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4029++ + if yyhl4029 { + yyb4029 = yyj4029 > l + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4029++ + if yyhl4029 { + yyb4029 = yyj4029 > l + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4032 := &x.ObjectMeta + yyv4032.CodecDecodeSelf(d) + } + yyj4029++ + if yyhl4029 { + yyb4029 = yyj4029 > l + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4033 := &x.Data + yym4034 := z.DecBinary() + _ = yym4034 + if false { + } else { + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4033), d) + } + } + yyj4029++ + if yyhl4029 { + yyb4029 = yyj4029 > l + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StringData = nil + } else { + yyv4035 := &x.StringData + yym4036 := z.DecBinary() + _ = yym4036 + if false { + } else { + z.F.DecMapStringStringX(yyv4035, false, d) + } + } + yyj4029++ + if yyhl4029 { + yyb4029 = yyj4029 > l + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = SecretType(r.DecodeString()) + } + for { + yyj4029++ + if yyhl4029 { + yyb4029 = yyj4029 > l + } else { + yyb4029 = r.CheckBreak() + } + if yyb4029 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4029-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym4038 := z.EncBinary() + _ = yym4038 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4039 := z.DecBinary() + _ = yym4039 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4040 := z.EncBinary() + _ = yym4040 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4041 := !z.EncBinary() + yy2arr4041 := z.EncBasicHandle().StructToArray + var yyq4041 [4]bool + _, _, _ = yysep4041, yyq4041, yy2arr4041 + const yyr4041 bool = false + yyq4041[0] = x.Kind != "" + yyq4041[1] = x.APIVersion != "" + yyq4041[2] = true + var yynn4041 int + if yyr4041 || yy2arr4041 { + r.EncodeArrayStart(4) + } else { + yynn4041 = 1 + for _, b := range yyq4041 { + if b { + yynn4041++ + } + } + r.EncodeMapStart(yynn4041) + yynn4041 = 0 + } + if yyr4041 || yy2arr4041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4041[0] { + yym4043 := z.EncBinary() + _ = yym4043 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4041[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4044 := z.EncBinary() + _ = yym4044 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4041 || yy2arr4041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4041[1] { + yym4046 := z.EncBinary() + _ = yym4046 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4041[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4047 := z.EncBinary() + _ = yym4047 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4041 || yy2arr4041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4041[2] { + yy4049 := &x.ListMeta + yym4050 := z.EncBinary() + _ = yym4050 + if false { + } else if z.HasExtensions() && z.EncExt(yy4049) { + } else { + z.EncFallback(yy4049) + } + } else { + r.EncodeNil() + } + } else { + if yyq4041[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4051 := &x.ListMeta + yym4052 := z.EncBinary() + _ = yym4052 + if false { + } else if z.HasExtensions() && z.EncExt(yy4051) { + } else { + z.EncFallback(yy4051) + } + } + } + if yyr4041 || yy2arr4041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4054 := z.EncBinary() + _ = yym4054 + if false { + } else { + h.encSliceSecret(([]Secret)(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 { + yym4055 := z.EncBinary() + _ = yym4055 + if false { + } else { + h.encSliceSecret(([]Secret)(x.Items), e) + } + } + } + if yyr4041 || yy2arr4041 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4056 := z.DecBinary() + _ = yym4056 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4057 := r.ContainerType() + if yyct4057 == codecSelferValueTypeMap1234 { + yyl4057 := r.ReadMapStart() + if yyl4057 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4057, d) + } + } else if yyct4057 == codecSelferValueTypeArray1234 { + yyl4057 := r.ReadArrayStart() + if yyl4057 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4057, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4058Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4058Slc + var yyhl4058 bool = l >= 0 + for yyj4058 := 0; ; yyj4058++ { + if yyhl4058 { + if yyj4058 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4058Slc = r.DecodeBytes(yys4058Slc, true, true) + yys4058 := string(yys4058Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4058 { + 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 { + yyv4061 := &x.ListMeta + yym4062 := z.DecBinary() + _ = yym4062 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4061) { + } else { + z.DecFallback(yyv4061, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4063 := &x.Items + yym4064 := z.DecBinary() + _ = yym4064 + if false { + } else { + h.decSliceSecret((*[]Secret)(yyv4063), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4058) + } // end switch yys4058 + } // end for yyj4058 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4065 int + var yyb4065 bool + var yyhl4065 bool = l >= 0 + yyj4065++ + if yyhl4065 { + yyb4065 = yyj4065 > l + } else { + yyb4065 = r.CheckBreak() + } + if yyb4065 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4065++ + if yyhl4065 { + yyb4065 = yyj4065 > l + } else { + yyb4065 = r.CheckBreak() + } + if yyb4065 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4065++ + if yyhl4065 { + yyb4065 = yyj4065 > l + } else { + yyb4065 = r.CheckBreak() + } + if yyb4065 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4068 := &x.ListMeta + yym4069 := z.DecBinary() + _ = yym4069 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4068) { + } else { + z.DecFallback(yyv4068, false) + } + } + yyj4065++ + if yyhl4065 { + yyb4065 = yyj4065 > l + } else { + yyb4065 = r.CheckBreak() + } + if yyb4065 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4070 := &x.Items + yym4071 := z.DecBinary() + _ = yym4071 + if false { + } else { + h.decSliceSecret((*[]Secret)(yyv4070), d) + } + } + for { + yyj4065++ + if yyhl4065 { + yyb4065 = yyj4065 > l + } else { + yyb4065 = r.CheckBreak() + } + if yyb4065 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4065-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4072 := z.EncBinary() + _ = yym4072 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4073 := !z.EncBinary() + yy2arr4073 := z.EncBasicHandle().StructToArray + var yyq4073 [4]bool + _, _, _ = yysep4073, yyq4073, yy2arr4073 + const yyr4073 bool = false + yyq4073[0] = x.Kind != "" + yyq4073[1] = x.APIVersion != "" + yyq4073[2] = true + yyq4073[3] = len(x.Data) != 0 + var yynn4073 int + if yyr4073 || yy2arr4073 { + r.EncodeArrayStart(4) + } else { + yynn4073 = 0 + for _, b := range yyq4073 { + if b { + yynn4073++ + } + } + r.EncodeMapStart(yynn4073) + yynn4073 = 0 + } + if yyr4073 || yy2arr4073 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4073[0] { + yym4075 := z.EncBinary() + _ = yym4075 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4073[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4076 := z.EncBinary() + _ = yym4076 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4073 || yy2arr4073 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4073[1] { + yym4078 := z.EncBinary() + _ = yym4078 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4073[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4079 := z.EncBinary() + _ = yym4079 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4073 || yy2arr4073 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4073[2] { + yy4081 := &x.ObjectMeta + yy4081.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4073[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4082 := &x.ObjectMeta + yy4082.CodecEncodeSelf(e) + } + } + if yyr4073 || yy2arr4073 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4073[3] { + if x.Data == nil { + r.EncodeNil() + } else { + yym4084 := z.EncBinary() + _ = yym4084 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4073[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4085 := z.EncBinary() + _ = yym4085 + if false { + } else { + z.F.EncMapStringStringV(x.Data, false, e) + } + } + } + } + if yyr4073 || yy2arr4073 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4086 := z.DecBinary() + _ = yym4086 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4087 := r.ContainerType() + if yyct4087 == codecSelferValueTypeMap1234 { + yyl4087 := r.ReadMapStart() + if yyl4087 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4087, d) + } + } else if yyct4087 == codecSelferValueTypeArray1234 { + yyl4087 := r.ReadArrayStart() + if yyl4087 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4087, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4088Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4088Slc + var yyhl4088 bool = l >= 0 + for yyj4088 := 0; ; yyj4088++ { + if yyhl4088 { + if yyj4088 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4088Slc = r.DecodeBytes(yys4088Slc, true, true) + yys4088 := string(yys4088Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4088 { + 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 { + yyv4091 := &x.ObjectMeta + yyv4091.CodecDecodeSelf(d) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4092 := &x.Data + yym4093 := z.DecBinary() + _ = yym4093 + if false { + } else { + z.F.DecMapStringStringX(yyv4092, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4088) + } // end switch yys4088 + } // end for yyj4088 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMap) 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 + } else { + yyb4094 = r.CheckBreak() + } + if yyb4094 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l + } else { + yyb4094 = r.CheckBreak() + } + if yyb4094 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l + } else { + yyb4094 = r.CheckBreak() + } + if yyb4094 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4097 := &x.ObjectMeta + yyv4097.CodecDecodeSelf(d) + } + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l + } else { + yyb4094 = r.CheckBreak() + } + if yyb4094 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4098 := &x.Data + yym4099 := z.DecBinary() + _ = yym4099 + if false { + } else { + z.F.DecMapStringStringX(yyv4098, false, d) + } + } + for { + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l + } else { + yyb4094 = r.CheckBreak() + } + if yyb4094 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4094-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4100 := z.EncBinary() + _ = yym4100 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4101 := !z.EncBinary() + yy2arr4101 := z.EncBasicHandle().StructToArray + var yyq4101 [4]bool + _, _, _ = yysep4101, yyq4101, yy2arr4101 + const yyr4101 bool = false + yyq4101[0] = x.Kind != "" + yyq4101[1] = x.APIVersion != "" + yyq4101[2] = true + var yynn4101 int + if yyr4101 || yy2arr4101 { + r.EncodeArrayStart(4) + } else { + yynn4101 = 1 + for _, b := range yyq4101 { + if b { + yynn4101++ + } + } + r.EncodeMapStart(yynn4101) + yynn4101 = 0 + } + if yyr4101 || yy2arr4101 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4101[0] { + yym4103 := z.EncBinary() + _ = yym4103 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4101[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4104 := z.EncBinary() + _ = yym4104 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4101 || yy2arr4101 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4101[1] { + yym4106 := z.EncBinary() + _ = yym4106 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4101[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4107 := z.EncBinary() + _ = yym4107 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4101 || yy2arr4101 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4101[2] { + yy4109 := &x.ListMeta + yym4110 := z.EncBinary() + _ = yym4110 + if false { + } else if z.HasExtensions() && z.EncExt(yy4109) { + } else { + z.EncFallback(yy4109) + } + } else { + r.EncodeNil() + } + } else { + if yyq4101[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4111 := &x.ListMeta + yym4112 := z.EncBinary() + _ = yym4112 + if false { + } else if z.HasExtensions() && z.EncExt(yy4111) { + } else { + z.EncFallback(yy4111) + } + } + } + if yyr4101 || yy2arr4101 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4114 := z.EncBinary() + _ = yym4114 + if false { + } else { + h.encSliceConfigMap(([]ConfigMap)(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 { + yym4115 := z.EncBinary() + _ = yym4115 + if false { + } else { + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + } + } + } + if yyr4101 || yy2arr4101 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4116 := z.DecBinary() + _ = yym4116 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4117 := r.ContainerType() + if yyct4117 == codecSelferValueTypeMap1234 { + yyl4117 := r.ReadMapStart() + if yyl4117 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4117, d) + } + } else if yyct4117 == codecSelferValueTypeArray1234 { + yyl4117 := r.ReadArrayStart() + if yyl4117 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4117, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4118Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4118Slc + var yyhl4118 bool = l >= 0 + for yyj4118 := 0; ; yyj4118++ { + if yyhl4118 { + if yyj4118 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4118Slc = r.DecodeBytes(yys4118Slc, true, true) + yys4118 := string(yys4118Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4118 { + 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 { + yyv4121 := &x.ListMeta + yym4122 := z.DecBinary() + _ = yym4122 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4121) { + } else { + z.DecFallback(yyv4121, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4123 := &x.Items + yym4124 := z.DecBinary() + _ = yym4124 + if false { + } else { + h.decSliceConfigMap((*[]ConfigMap)(yyv4123), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4118) + } // end switch yys4118 + } // end for yyj4118 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4125 int + var yyb4125 bool + var yyhl4125 bool = l >= 0 + yyj4125++ + if yyhl4125 { + yyb4125 = yyj4125 > l + } else { + yyb4125 = r.CheckBreak() + } + if yyb4125 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4125++ + if yyhl4125 { + yyb4125 = yyj4125 > l + } else { + yyb4125 = r.CheckBreak() + } + if yyb4125 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4125++ + if yyhl4125 { + yyb4125 = yyj4125 > l + } else { + yyb4125 = r.CheckBreak() + } + if yyb4125 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4128 := &x.ListMeta + yym4129 := z.DecBinary() + _ = yym4129 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4128) { + } else { + z.DecFallback(yyv4128, false) + } + } + yyj4125++ + if yyhl4125 { + yyb4125 = yyj4125 > l + } else { + yyb4125 = r.CheckBreak() + } + if yyb4125 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4130 := &x.Items + yym4131 := z.DecBinary() + _ = yym4131 + if false { + } else { + h.decSliceConfigMap((*[]ConfigMap)(yyv4130), d) + } + } + for { + yyj4125++ + if yyhl4125 { + yyb4125 = yyj4125 > l + } else { + yyb4125 = r.CheckBreak() + } + if yyb4125 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4125-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym4132 := z.EncBinary() + _ = yym4132 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4133 := z.DecBinary() + _ = yym4133 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4134 := z.EncBinary() + _ = yym4134 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4135 := !z.EncBinary() + yy2arr4135 := z.EncBasicHandle().StructToArray + var yyq4135 [4]bool + _, _, _ = yysep4135, yyq4135, yy2arr4135 + const yyr4135 bool = false + yyq4135[2] = x.Message != "" + yyq4135[3] = x.Error != "" + var yynn4135 int + if yyr4135 || yy2arr4135 { + r.EncodeArrayStart(4) + } else { + yynn4135 = 2 + for _, b := range yyq4135 { + if b { + yynn4135++ + } + } + r.EncodeMapStart(yynn4135) + yynn4135 = 0 + } + if yyr4135 || yy2arr4135 { + 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 yyr4135 || yy2arr4135 { + 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 yyr4135 || yy2arr4135 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4135[2] { + yym4139 := z.EncBinary() + _ = yym4139 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4135[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4140 := z.EncBinary() + _ = yym4140 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr4135 || yy2arr4135 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4135[3] { + yym4142 := z.EncBinary() + _ = yym4142 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4135[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("error")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4143 := z.EncBinary() + _ = yym4143 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Error)) + } + } + } + if yyr4135 || yy2arr4135 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4144 := z.DecBinary() + _ = yym4144 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4145 := r.ContainerType() + if yyct4145 == codecSelferValueTypeMap1234 { + yyl4145 := r.ReadMapStart() + if yyl4145 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4145, d) + } + } else if yyct4145 == codecSelferValueTypeArray1234 { + yyl4145 := r.ReadArrayStart() + if yyl4145 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4145, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4146Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4146Slc + var yyhl4146 bool = l >= 0 + for yyj4146 := 0; ; yyj4146++ { + if yyhl4146 { + if yyj4146 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4146Slc = r.DecodeBytes(yys4146Slc, true, true) + yys4146 := string(yys4146Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4146 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ComponentConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys4146) + } // end switch yys4146 + } // end for yyj4146 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4151 int + var yyb4151 bool + var yyhl4151 bool = l >= 0 + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l + } else { + yyb4151 = r.CheckBreak() + } + if yyb4151 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ComponentConditionType(r.DecodeString()) + } + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l + } else { + yyb4151 = r.CheckBreak() + } + if yyb4151 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l + } else { + yyb4151 = r.CheckBreak() + } + if yyb4151 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l + } else { + yyb4151 = r.CheckBreak() + } + if yyb4151 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = string(r.DecodeString()) + } + for { + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l + } else { + yyb4151 = r.CheckBreak() + } + if yyb4151 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4151-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 { + yym4156 := z.EncBinary() + _ = yym4156 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4157 := !z.EncBinary() + yy2arr4157 := z.EncBasicHandle().StructToArray + var yyq4157 [4]bool + _, _, _ = yysep4157, yyq4157, yy2arr4157 + const yyr4157 bool = false + yyq4157[0] = x.Kind != "" + yyq4157[1] = x.APIVersion != "" + yyq4157[2] = true + yyq4157[3] = len(x.Conditions) != 0 + var yynn4157 int + if yyr4157 || yy2arr4157 { + r.EncodeArrayStart(4) + } else { + yynn4157 = 0 + for _, b := range yyq4157 { + if b { + yynn4157++ + } + } + r.EncodeMapStart(yynn4157) + yynn4157 = 0 + } + if yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4157[0] { + yym4159 := z.EncBinary() + _ = yym4159 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4157[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4160 := z.EncBinary() + _ = yym4160 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4157[1] { + yym4162 := z.EncBinary() + _ = yym4162 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4157[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4163 := z.EncBinary() + _ = yym4163 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4157[2] { + yy4165 := &x.ObjectMeta + yy4165.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4157[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4166 := &x.ObjectMeta + yy4166.CodecEncodeSelf(e) + } + } + if yyr4157 || yy2arr4157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4157[3] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym4168 := z.EncBinary() + _ = yym4168 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4157[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym4169 := z.EncBinary() + _ = yym4169 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } + } + } + } + if yyr4157 || yy2arr4157 { + 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 + yym4170 := z.DecBinary() + _ = yym4170 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4171 := r.ContainerType() + if yyct4171 == codecSelferValueTypeMap1234 { + yyl4171 := r.ReadMapStart() + if yyl4171 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4171, d) + } + } else if yyct4171 == codecSelferValueTypeArray1234 { + yyl4171 := r.ReadArrayStart() + if yyl4171 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4171, 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 yys4172Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4172Slc + var yyhl4172 bool = l >= 0 + for yyj4172 := 0; ; yyj4172++ { + if yyhl4172 { + if yyj4172 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4172Slc = r.DecodeBytes(yys4172Slc, true, true) + yys4172 := string(yys4172Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4172 { + 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 { + yyv4175 := &x.ObjectMeta + yyv4175.CodecDecodeSelf(d) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4176 := &x.Conditions + yym4177 := z.DecBinary() + _ = yym4177 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4176), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4172) + } // end switch yys4172 + } // end for yyj4172 + 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 yyj4178 int + var yyb4178 bool + var yyhl4178 bool = l >= 0 + yyj4178++ + if yyhl4178 { + yyb4178 = yyj4178 > l + } else { + yyb4178 = r.CheckBreak() + } + if yyb4178 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4178++ + if yyhl4178 { + yyb4178 = yyj4178 > l + } else { + yyb4178 = r.CheckBreak() + } + if yyb4178 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4178++ + if yyhl4178 { + yyb4178 = yyj4178 > l + } else { + yyb4178 = r.CheckBreak() + } + if yyb4178 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4181 := &x.ObjectMeta + yyv4181.CodecDecodeSelf(d) + } + yyj4178++ + if yyhl4178 { + yyb4178 = yyj4178 > l + } else { + yyb4178 = r.CheckBreak() + } + if yyb4178 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4182 := &x.Conditions + yym4183 := z.DecBinary() + _ = yym4183 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4182), d) + } + } + for { + yyj4178++ + if yyhl4178 { + yyb4178 = yyj4178 > l + } else { + yyb4178 = r.CheckBreak() + } + if yyb4178 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4178-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 { + yym4184 := z.EncBinary() + _ = yym4184 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4185 := !z.EncBinary() + yy2arr4185 := z.EncBasicHandle().StructToArray + var yyq4185 [4]bool + _, _, _ = yysep4185, yyq4185, yy2arr4185 + const yyr4185 bool = false + yyq4185[0] = x.Kind != "" + yyq4185[1] = x.APIVersion != "" + yyq4185[2] = true + var yynn4185 int + if yyr4185 || yy2arr4185 { + r.EncodeArrayStart(4) + } else { + yynn4185 = 1 + for _, b := range yyq4185 { + if b { + yynn4185++ + } + } + r.EncodeMapStart(yynn4185) + yynn4185 = 0 + } + if yyr4185 || yy2arr4185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4185[0] { + yym4187 := z.EncBinary() + _ = yym4187 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4185[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4188 := z.EncBinary() + _ = yym4188 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4185 || yy2arr4185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4185[1] { + yym4190 := z.EncBinary() + _ = yym4190 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4185[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4191 := z.EncBinary() + _ = yym4191 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4185 || yy2arr4185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4185[2] { + yy4193 := &x.ListMeta + yym4194 := z.EncBinary() + _ = yym4194 + if false { + } else if z.HasExtensions() && z.EncExt(yy4193) { + } else { + z.EncFallback(yy4193) + } + } else { + r.EncodeNil() + } + } else { + if yyq4185[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4195 := &x.ListMeta + yym4196 := z.EncBinary() + _ = yym4196 + if false { + } else if z.HasExtensions() && z.EncExt(yy4195) { + } else { + z.EncFallback(yy4195) + } + } + } + if yyr4185 || yy2arr4185 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4198 := z.EncBinary() + _ = yym4198 + 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 { + yym4199 := z.EncBinary() + _ = yym4199 + if false { + } else { + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + } + } + } + if yyr4185 || yy2arr4185 { + 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 + yym4200 := z.DecBinary() + _ = yym4200 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4201 := r.ContainerType() + if yyct4201 == codecSelferValueTypeMap1234 { + yyl4201 := r.ReadMapStart() + if yyl4201 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4201, d) + } + } else if yyct4201 == codecSelferValueTypeArray1234 { + yyl4201 := r.ReadArrayStart() + if yyl4201 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4201, 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 yys4202Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4202Slc + var yyhl4202 bool = l >= 0 + for yyj4202 := 0; ; yyj4202++ { + if yyhl4202 { + if yyj4202 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4202Slc = r.DecodeBytes(yys4202Slc, true, true) + yys4202 := string(yys4202Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4202 { + 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 { + yyv4205 := &x.ListMeta + yym4206 := z.DecBinary() + _ = yym4206 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4205) { + } else { + z.DecFallback(yyv4205, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4207 := &x.Items + yym4208 := z.DecBinary() + _ = yym4208 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4207), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4202) + } // end switch yys4202 + } // end for yyj4202 + 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 yyj4209 int + var yyb4209 bool + var yyhl4209 bool = l >= 0 + yyj4209++ + if yyhl4209 { + yyb4209 = yyj4209 > l + } else { + yyb4209 = r.CheckBreak() + } + if yyb4209 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4209++ + if yyhl4209 { + yyb4209 = yyj4209 > l + } else { + yyb4209 = r.CheckBreak() + } + if yyb4209 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4209++ + if yyhl4209 { + yyb4209 = yyj4209 > l + } else { + yyb4209 = r.CheckBreak() + } + if yyb4209 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4212 := &x.ListMeta + yym4213 := z.DecBinary() + _ = yym4213 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4212) { + } else { + z.DecFallback(yyv4212, false) + } + } + yyj4209++ + if yyhl4209 { + yyb4209 = yyj4209 > l + } else { + yyb4209 = r.CheckBreak() + } + if yyb4209 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4214 := &x.Items + yym4215 := z.DecBinary() + _ = yym4215 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4214), d) + } + } + for { + yyj4209++ + if yyhl4209 { + yyb4209 = yyj4209 > l + } else { + yyb4209 = r.CheckBreak() + } + if yyb4209 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4209-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 { + yym4216 := z.EncBinary() + _ = yym4216 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4217 := !z.EncBinary() + yy2arr4217 := z.EncBasicHandle().StructToArray + var yyq4217 [1]bool + _, _, _ = yysep4217, yyq4217, yy2arr4217 + const yyr4217 bool = false + yyq4217[0] = len(x.Items) != 0 + var yynn4217 int + if yyr4217 || yy2arr4217 { + r.EncodeArrayStart(1) + } else { + yynn4217 = 0 + for _, b := range yyq4217 { + if b { + yynn4217++ + } + } + r.EncodeMapStart(yynn4217) + yynn4217 = 0 + } + if yyr4217 || yy2arr4217 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4217[0] { + if x.Items == nil { + r.EncodeNil() + } else { + yym4219 := z.EncBinary() + _ = yym4219 + if false { + } else { + h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4217[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4220 := z.EncBinary() + _ = yym4220 + if false { + } else { + h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) + } + } + } + } + if yyr4217 || yy2arr4217 { + 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 + yym4221 := z.DecBinary() + _ = yym4221 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4222 := r.ContainerType() + if yyct4222 == codecSelferValueTypeMap1234 { + yyl4222 := r.ReadMapStart() + if yyl4222 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4222, d) + } + } else if yyct4222 == codecSelferValueTypeArray1234 { + yyl4222 := r.ReadArrayStart() + if yyl4222 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4222, 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 yys4223Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4223Slc + var yyhl4223 bool = l >= 0 + for yyj4223 := 0; ; yyj4223++ { + if yyhl4223 { + if yyj4223 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4223Slc = r.DecodeBytes(yys4223Slc, true, true) + yys4223 := string(yys4223Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4223 { + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4224 := &x.Items + yym4225 := z.DecBinary() + _ = yym4225 + if false { + } else { + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4224), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4223) + } // end switch yys4223 + } // end for yyj4223 + 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 yyj4226 int + var yyb4226 bool + var yyhl4226 bool = l >= 0 + yyj4226++ + if yyhl4226 { + yyb4226 = yyj4226 > l + } else { + yyb4226 = r.CheckBreak() + } + if yyb4226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4227 := &x.Items + yym4228 := z.DecBinary() + _ = yym4228 + if false { + } else { + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4227), d) + } + } + for { + yyj4226++ + if yyhl4226 { + yyb4226 = yyj4226 > l + } else { + yyb4226 = r.CheckBreak() + } + if yyb4226 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4226-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 { + yym4229 := z.EncBinary() + _ = yym4229 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4230 := !z.EncBinary() + yy2arr4230 := z.EncBasicHandle().StructToArray + var yyq4230 [3]bool + _, _, _ = yysep4230, yyq4230, yy2arr4230 + const yyr4230 bool = false + yyq4230[1] = x.FieldRef != nil + yyq4230[2] = x.ResourceFieldRef != nil + var yynn4230 int + if yyr4230 || yy2arr4230 { + r.EncodeArrayStart(3) + } else { + yynn4230 = 1 + for _, b := range yyq4230 { + if b { + yynn4230++ + } + } + r.EncodeMapStart(yynn4230) + yynn4230 = 0 + } + if yyr4230 || yy2arr4230 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym4232 := z.EncBinary() + _ = yym4232 + 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) + yym4233 := z.EncBinary() + _ = yym4233 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr4230 || yy2arr4230 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4230[1] { + if x.FieldRef == nil { + r.EncodeNil() + } else { + x.FieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4230[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 yyr4230 || yy2arr4230 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4230[2] { + if x.ResourceFieldRef == nil { + r.EncodeNil() + } else { + x.ResourceFieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4230[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 yyr4230 || yy2arr4230 { + 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 + yym4236 := z.DecBinary() + _ = yym4236 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4237 := r.ContainerType() + if yyct4237 == codecSelferValueTypeMap1234 { + yyl4237 := r.ReadMapStart() + if yyl4237 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4237, d) + } + } else if yyct4237 == codecSelferValueTypeArray1234 { + yyl4237 := r.ReadArrayStart() + if yyl4237 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4237, 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 yys4238Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4238Slc + var yyhl4238 bool = l >= 0 + for yyj4238 := 0; ; yyj4238++ { + if yyhl4238 { + if yyj4238 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4238Slc = r.DecodeBytes(yys4238Slc, true, true) + yys4238 := string(yys4238Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4238 { + 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, yys4238) + } // end switch yys4238 + } // end for yyj4238 + 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 yyj4242 int + var yyb4242 bool + var yyhl4242 bool = l >= 0 + yyj4242++ + if yyhl4242 { + yyb4242 = yyj4242 > l + } else { + yyb4242 = r.CheckBreak() + } + if yyb4242 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj4242++ + if yyhl4242 { + yyb4242 = yyj4242 > l + } else { + yyb4242 = r.CheckBreak() + } + if yyb4242 { + 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) + } + yyj4242++ + if yyhl4242 { + yyb4242 = yyj4242 > l + } else { + yyb4242 = r.CheckBreak() + } + if yyb4242 { + 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 { + yyj4242++ + if yyhl4242 { + yyb4242 = yyj4242 > l + } else { + yyb4242 = r.CheckBreak() + } + if yyb4242 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4242-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 { + yym4246 := z.EncBinary() + _ = yym4246 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4247 := !z.EncBinary() + yy2arr4247 := z.EncBasicHandle().StructToArray + var yyq4247 [6]bool + _, _, _ = yysep4247, yyq4247, yy2arr4247 + const yyr4247 bool = false + yyq4247[0] = x.Capabilities != nil + yyq4247[1] = x.Privileged != nil + yyq4247[2] = x.SELinuxOptions != nil + yyq4247[3] = x.RunAsUser != nil + yyq4247[4] = x.RunAsNonRoot != nil + yyq4247[5] = x.ReadOnlyRootFilesystem != nil + var yynn4247 int + if yyr4247 || yy2arr4247 { + r.EncodeArrayStart(6) + } else { + yynn4247 = 0 + for _, b := range yyq4247 { + if b { + yynn4247++ + } + } + r.EncodeMapStart(yynn4247) + yynn4247 = 0 + } + if yyr4247 || yy2arr4247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4247[0] { + if x.Capabilities == nil { + r.EncodeNil() + } else { + x.Capabilities.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4247[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 yyr4247 || yy2arr4247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4247[1] { + if x.Privileged == nil { + r.EncodeNil() + } else { + yy4250 := *x.Privileged + yym4251 := z.EncBinary() + _ = yym4251 + if false { + } else { + r.EncodeBool(bool(yy4250)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4247[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("privileged")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Privileged == nil { + r.EncodeNil() + } else { + yy4252 := *x.Privileged + yym4253 := z.EncBinary() + _ = yym4253 + if false { + } else { + r.EncodeBool(bool(yy4252)) + } + } + } + } + if yyr4247 || yy2arr4247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4247[2] { + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4247[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 yyr4247 || yy2arr4247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4247[3] { + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy4256 := *x.RunAsUser + yym4257 := z.EncBinary() + _ = yym4257 + if false { + } else { + r.EncodeInt(int64(yy4256)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4247[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy4258 := *x.RunAsUser + yym4259 := z.EncBinary() + _ = yym4259 + if false { + } else { + r.EncodeInt(int64(yy4258)) + } + } + } + } + if yyr4247 || yy2arr4247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4247[4] { + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy4261 := *x.RunAsNonRoot + yym4262 := z.EncBinary() + _ = yym4262 + if false { + } else { + r.EncodeBool(bool(yy4261)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4247[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy4263 := *x.RunAsNonRoot + yym4264 := z.EncBinary() + _ = yym4264 + if false { + } else { + r.EncodeBool(bool(yy4263)) + } + } + } + } + if yyr4247 || yy2arr4247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4247[5] { + if x.ReadOnlyRootFilesystem == nil { + r.EncodeNil() + } else { + yy4266 := *x.ReadOnlyRootFilesystem + yym4267 := z.EncBinary() + _ = yym4267 + if false { + } else { + r.EncodeBool(bool(yy4266)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4247[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadOnlyRootFilesystem == nil { + r.EncodeNil() + } else { + yy4268 := *x.ReadOnlyRootFilesystem + yym4269 := z.EncBinary() + _ = yym4269 + if false { + } else { + r.EncodeBool(bool(yy4268)) + } + } + } + } + if yyr4247 || yy2arr4247 { + 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 + yym4270 := z.DecBinary() + _ = yym4270 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4271 := r.ContainerType() + if yyct4271 == codecSelferValueTypeMap1234 { + yyl4271 := r.ReadMapStart() + if yyl4271 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4271, d) + } + } else if yyct4271 == codecSelferValueTypeArray1234 { + yyl4271 := r.ReadArrayStart() + if yyl4271 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4271, 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 yys4272Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4272Slc + var yyhl4272 bool = l >= 0 + for yyj4272 := 0; ; yyj4272++ { + if yyhl4272 { + if yyj4272 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4272Slc = r.DecodeBytes(yys4272Slc, true, true) + yys4272 := string(yys4272Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4272 { + 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) + } + yym4275 := z.DecBinary() + _ = yym4275 + 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) + } + yym4278 := z.DecBinary() + _ = yym4278 + 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) + } + yym4280 := z.DecBinary() + _ = yym4280 + 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) + } + yym4282 := z.DecBinary() + _ = yym4282 + if false { + } else { + *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys4272) + } // end switch yys4272 + } // end for yyj4272 + 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 yyj4283 int + var yyb4283 bool + var yyhl4283 bool = l >= 0 + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + 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) + } + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + 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) + } + yym4286 := z.DecBinary() + _ = yym4286 + if false { + } else { + *((*bool)(x.Privileged)) = r.DecodeBool() + } + } + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + 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) + } + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + 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) + } + yym4289 := z.DecBinary() + _ = yym4289 + if false { + } else { + *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) + } + } + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + 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) + } + yym4291 := z.DecBinary() + _ = yym4291 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + 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) + } + yym4293 := z.DecBinary() + _ = yym4293 + if false { + } else { + *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() + } + } + for { + yyj4283++ + if yyhl4283 { + yyb4283 = yyj4283 > l + } else { + yyb4283 = r.CheckBreak() + } + if yyb4283 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4283-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 { + yym4294 := z.EncBinary() + _ = yym4294 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4295 := !z.EncBinary() + yy2arr4295 := z.EncBasicHandle().StructToArray + var yyq4295 [4]bool + _, _, _ = yysep4295, yyq4295, yy2arr4295 + const yyr4295 bool = false + yyq4295[0] = x.User != "" + yyq4295[1] = x.Role != "" + yyq4295[2] = x.Type != "" + yyq4295[3] = x.Level != "" + var yynn4295 int + if yyr4295 || yy2arr4295 { + r.EncodeArrayStart(4) + } else { + yynn4295 = 0 + for _, b := range yyq4295 { + if b { + yynn4295++ + } + } + r.EncodeMapStart(yynn4295) + yynn4295 = 0 + } + if yyr4295 || yy2arr4295 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4295[0] { + yym4297 := z.EncBinary() + _ = yym4297 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4295[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4298 := z.EncBinary() + _ = yym4298 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr4295 || yy2arr4295 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4295[1] { + yym4300 := z.EncBinary() + _ = yym4300 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4295[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("role")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4301 := z.EncBinary() + _ = yym4301 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } + } + if yyr4295 || yy2arr4295 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4295[2] { + yym4303 := z.EncBinary() + _ = yym4303 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4295[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4304 := z.EncBinary() + _ = yym4304 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } + if yyr4295 || yy2arr4295 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4295[3] { + yym4306 := z.EncBinary() + _ = yym4306 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4295[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("level")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4307 := z.EncBinary() + _ = yym4307 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + } + } + } + if yyr4295 || yy2arr4295 { + 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 + yym4308 := z.DecBinary() + _ = yym4308 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4309 := r.ContainerType() + if yyct4309 == codecSelferValueTypeMap1234 { + yyl4309 := r.ReadMapStart() + if yyl4309 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4309, d) + } + } else if yyct4309 == codecSelferValueTypeArray1234 { + yyl4309 := r.ReadArrayStart() + if yyl4309 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4309, 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 yys4310Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4310Slc + var yyhl4310 bool = l >= 0 + for yyj4310 := 0; ; yyj4310++ { + if yyhl4310 { + if yyj4310 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4310Slc = r.DecodeBytes(yys4310Slc, true, true) + yys4310 := string(yys4310Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4310 { + case "user": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + case "role": + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = string(r.DecodeString()) + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } + case "level": + if r.TryDecodeAsNil() { + x.Level = "" + } else { + x.Level = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys4310) + } // end switch yys4310 + } // end for yyj4310 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4315 int + var yyb4315 bool + var yyhl4315 bool = l >= 0 + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l + } else { + yyb4315 = r.CheckBreak() + } + if yyb4315 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l + } else { + yyb4315 = r.CheckBreak() + } + if yyb4315 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = string(r.DecodeString()) + } + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l + } else { + yyb4315 = r.CheckBreak() + } + if yyb4315 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l + } else { + yyb4315 = r.CheckBreak() + } + if yyb4315 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Level = "" + } else { + x.Level = string(r.DecodeString()) + } + for { + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l + } else { + yyb4315 = r.CheckBreak() + } + if yyb4315 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4315-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4320 := z.EncBinary() + _ = yym4320 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4321 := !z.EncBinary() + yy2arr4321 := z.EncBasicHandle().StructToArray + var yyq4321 [5]bool + _, _, _ = yysep4321, yyq4321, yy2arr4321 + const yyr4321 bool = false + yyq4321[0] = x.Kind != "" + yyq4321[1] = x.APIVersion != "" + yyq4321[2] = true + var yynn4321 int + if yyr4321 || yy2arr4321 { + r.EncodeArrayStart(5) + } else { + yynn4321 = 2 + for _, b := range yyq4321 { + if b { + yynn4321++ + } + } + r.EncodeMapStart(yynn4321) + yynn4321 = 0 + } + if yyr4321 || yy2arr4321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4321[0] { + yym4323 := z.EncBinary() + _ = yym4323 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4321[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4324 := z.EncBinary() + _ = yym4324 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4321 || yy2arr4321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4321[1] { + yym4326 := z.EncBinary() + _ = yym4326 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4321[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4327 := z.EncBinary() + _ = yym4327 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4321 || yy2arr4321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4321[2] { + yy4329 := &x.ObjectMeta + yy4329.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4321[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4330 := &x.ObjectMeta + yy4330.CodecEncodeSelf(e) + } + } + if yyr4321 || yy2arr4321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym4332 := z.EncBinary() + _ = yym4332 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Range)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("range")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4333 := z.EncBinary() + _ = yym4333 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Range)) + } + } + if yyr4321 || yy2arr4321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4335 := z.EncBinary() + _ = yym4335 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym4336 := z.EncBinary() + _ = yym4336 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } + } + } + if yyr4321 || yy2arr4321 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4337 := z.DecBinary() + _ = yym4337 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4338 := r.ContainerType() + if yyct4338 == codecSelferValueTypeMap1234 { + yyl4338 := r.ReadMapStart() + if yyl4338 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4338, d) + } + } else if yyct4338 == codecSelferValueTypeArray1234 { + yyl4338 := r.ReadArrayStart() + if yyl4338 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4338, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4339Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4339Slc + var yyhl4339 bool = l >= 0 + for yyj4339 := 0; ; yyj4339++ { + if yyhl4339 { + if yyj4339 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4339Slc = r.DecodeBytes(yys4339Slc, true, true) + yys4339 := string(yys4339Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4339 { + 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 { + yyv4342 := &x.ObjectMeta + yyv4342.CodecDecodeSelf(d) + } + case "range": + if r.TryDecodeAsNil() { + x.Range = "" + } else { + x.Range = string(r.DecodeString()) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4344 := &x.Data + yym4345 := z.DecBinary() + _ = yym4345 + if false { + } else { + *yyv4344 = r.DecodeBytes(*(*[]byte)(yyv4344), false, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys4339) + } // end switch yys4339 + } // end for yyj4339 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4346 int + var yyb4346 bool + var yyhl4346 bool = l >= 0 + yyj4346++ + if yyhl4346 { + yyb4346 = yyj4346 > l + } else { + yyb4346 = r.CheckBreak() + } + if yyb4346 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4346++ + if yyhl4346 { + yyb4346 = yyj4346 > l + } else { + yyb4346 = r.CheckBreak() + } + if yyb4346 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4346++ + if yyhl4346 { + yyb4346 = yyj4346 > l + } else { + yyb4346 = r.CheckBreak() + } + if yyb4346 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4349 := &x.ObjectMeta + yyv4349.CodecDecodeSelf(d) + } + yyj4346++ + if yyhl4346 { + yyb4346 = yyj4346 > l + } else { + yyb4346 = r.CheckBreak() + } + if yyb4346 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Range = "" + } else { + x.Range = string(r.DecodeString()) + } + yyj4346++ + if yyhl4346 { + yyb4346 = yyj4346 > l + } else { + yyb4346 = r.CheckBreak() + } + if yyb4346 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv4351 := &x.Data + yym4352 := z.DecBinary() + _ = yym4352 + if false { + } else { + *yyv4351 = r.DecodeBytes(*(*[]byte)(yyv4351), false, false) + } + } + for { + yyj4346++ + if yyhl4346 { + yyb4346 = yyj4346 > l + } else { + yyb4346 = r.CheckBreak() + } + if yyb4346 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4346-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 _, yyv4353 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4354 := &yyv4353 + yy4354.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 + + yyv4355 := *v + yyh4355, yyl4355 := z.DecSliceHelperStart() + var yyc4355 bool + if yyl4355 == 0 { + if yyv4355 == nil { + yyv4355 = []OwnerReference{} + yyc4355 = true + } else if len(yyv4355) != 0 { + yyv4355 = yyv4355[:0] + yyc4355 = true + } + } else if yyl4355 > 0 { + var yyrr4355, yyrl4355 int + var yyrt4355 bool + if yyl4355 > cap(yyv4355) { + + yyrg4355 := len(yyv4355) > 0 + yyv24355 := yyv4355 + yyrl4355, yyrt4355 = z.DecInferLen(yyl4355, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4355 { + if yyrl4355 <= cap(yyv4355) { + yyv4355 = yyv4355[:yyrl4355] + } else { + yyv4355 = make([]OwnerReference, yyrl4355) + } + } else { + yyv4355 = make([]OwnerReference, yyrl4355) + } + yyc4355 = true + yyrr4355 = len(yyv4355) + if yyrg4355 { + copy(yyv4355, yyv24355) + } + } else if yyl4355 != len(yyv4355) { + yyv4355 = yyv4355[:yyl4355] + yyc4355 = true + } + yyj4355 := 0 + for ; yyj4355 < yyrr4355; yyj4355++ { + yyh4355.ElemContainerState(yyj4355) + if r.TryDecodeAsNil() { + yyv4355[yyj4355] = OwnerReference{} + } else { + yyv4356 := &yyv4355[yyj4355] + yyv4356.CodecDecodeSelf(d) + } + + } + if yyrt4355 { + for ; yyj4355 < yyl4355; yyj4355++ { + yyv4355 = append(yyv4355, OwnerReference{}) + yyh4355.ElemContainerState(yyj4355) + if r.TryDecodeAsNil() { + yyv4355[yyj4355] = OwnerReference{} + } else { + yyv4357 := &yyv4355[yyj4355] + yyv4357.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4355 := 0 + for ; !r.CheckBreak(); yyj4355++ { + + if yyj4355 >= len(yyv4355) { + yyv4355 = append(yyv4355, OwnerReference{}) // var yyz4355 OwnerReference + yyc4355 = true + } + yyh4355.ElemContainerState(yyj4355) + if yyj4355 < len(yyv4355) { + if r.TryDecodeAsNil() { + yyv4355[yyj4355] = OwnerReference{} + } else { + yyv4358 := &yyv4355[yyj4355] + yyv4358.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4355 < len(yyv4355) { + yyv4355 = yyv4355[:yyj4355] + yyc4355 = true + } else if yyj4355 == 0 && yyv4355 == nil { + yyv4355 = []OwnerReference{} + yyc4355 = true + } + } + yyh4355.End() + if yyc4355 { + *v = yyv4355 + } +} + +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 _, yyv4359 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4359.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 + + yyv4360 := *v + yyh4360, yyl4360 := z.DecSliceHelperStart() + var yyc4360 bool + if yyl4360 == 0 { + if yyv4360 == nil { + yyv4360 = []PersistentVolumeAccessMode{} + yyc4360 = true + } else if len(yyv4360) != 0 { + yyv4360 = yyv4360[:0] + yyc4360 = true + } + } else if yyl4360 > 0 { + var yyrr4360, yyrl4360 int + var yyrt4360 bool + if yyl4360 > cap(yyv4360) { + + yyrl4360, yyrt4360 = z.DecInferLen(yyl4360, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4360 { + if yyrl4360 <= cap(yyv4360) { + yyv4360 = yyv4360[:yyrl4360] + } else { + yyv4360 = make([]PersistentVolumeAccessMode, yyrl4360) + } + } else { + yyv4360 = make([]PersistentVolumeAccessMode, yyrl4360) + } + yyc4360 = true + yyrr4360 = len(yyv4360) + } else if yyl4360 != len(yyv4360) { + yyv4360 = yyv4360[:yyl4360] + yyc4360 = true + } + yyj4360 := 0 + for ; yyj4360 < yyrr4360; yyj4360++ { + yyh4360.ElemContainerState(yyj4360) + if r.TryDecodeAsNil() { + yyv4360[yyj4360] = "" + } else { + yyv4360[yyj4360] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } + if yyrt4360 { + for ; yyj4360 < yyl4360; yyj4360++ { + yyv4360 = append(yyv4360, "") + yyh4360.ElemContainerState(yyj4360) + if r.TryDecodeAsNil() { + yyv4360[yyj4360] = "" + } else { + yyv4360[yyj4360] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } + } + + } else { + yyj4360 := 0 + for ; !r.CheckBreak(); yyj4360++ { + + if yyj4360 >= len(yyv4360) { + yyv4360 = append(yyv4360, "") // var yyz4360 PersistentVolumeAccessMode + yyc4360 = true + } + yyh4360.ElemContainerState(yyj4360) + if yyj4360 < len(yyv4360) { + if r.TryDecodeAsNil() { + yyv4360[yyj4360] = "" + } else { + yyv4360[yyj4360] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4360 < len(yyv4360) { + yyv4360 = yyv4360[:yyj4360] + yyc4360 = true + } else if yyj4360 == 0 && yyv4360 == nil { + yyv4360 = []PersistentVolumeAccessMode{} + yyc4360 = true + } + } + yyh4360.End() + if yyc4360 { + *v = yyv4360 + } +} + +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 _, yyv4364 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4365 := &yyv4364 + yy4365.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 + + yyv4366 := *v + yyh4366, yyl4366 := z.DecSliceHelperStart() + var yyc4366 bool + if yyl4366 == 0 { + if yyv4366 == nil { + yyv4366 = []PersistentVolume{} + yyc4366 = true + } else if len(yyv4366) != 0 { + yyv4366 = yyv4366[:0] + yyc4366 = true + } + } else if yyl4366 > 0 { + var yyrr4366, yyrl4366 int + var yyrt4366 bool + if yyl4366 > cap(yyv4366) { + + yyrg4366 := len(yyv4366) > 0 + yyv24366 := yyv4366 + yyrl4366, yyrt4366 = z.DecInferLen(yyl4366, z.DecBasicHandle().MaxInitLen, 456) + if yyrt4366 { + if yyrl4366 <= cap(yyv4366) { + yyv4366 = yyv4366[:yyrl4366] + } else { + yyv4366 = make([]PersistentVolume, yyrl4366) + } + } else { + yyv4366 = make([]PersistentVolume, yyrl4366) + } + yyc4366 = true + yyrr4366 = len(yyv4366) + if yyrg4366 { + copy(yyv4366, yyv24366) + } + } else if yyl4366 != len(yyv4366) { + yyv4366 = yyv4366[:yyl4366] + yyc4366 = true + } + yyj4366 := 0 + for ; yyj4366 < yyrr4366; yyj4366++ { + yyh4366.ElemContainerState(yyj4366) + if r.TryDecodeAsNil() { + yyv4366[yyj4366] = PersistentVolume{} + } else { + yyv4367 := &yyv4366[yyj4366] + yyv4367.CodecDecodeSelf(d) + } + + } + if yyrt4366 { + for ; yyj4366 < yyl4366; yyj4366++ { + yyv4366 = append(yyv4366, PersistentVolume{}) + yyh4366.ElemContainerState(yyj4366) + if r.TryDecodeAsNil() { + yyv4366[yyj4366] = PersistentVolume{} + } else { + yyv4368 := &yyv4366[yyj4366] + yyv4368.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4366 := 0 + for ; !r.CheckBreak(); yyj4366++ { + + if yyj4366 >= len(yyv4366) { + yyv4366 = append(yyv4366, PersistentVolume{}) // var yyz4366 PersistentVolume + yyc4366 = true + } + yyh4366.ElemContainerState(yyj4366) + if yyj4366 < len(yyv4366) { + if r.TryDecodeAsNil() { + yyv4366[yyj4366] = PersistentVolume{} + } else { + yyv4369 := &yyv4366[yyj4366] + yyv4369.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4366 < len(yyv4366) { + yyv4366 = yyv4366[:yyj4366] + yyc4366 = true + } else if yyj4366 == 0 && yyv4366 == nil { + yyv4366 = []PersistentVolume{} + yyc4366 = true + } + } + yyh4366.End() + if yyc4366 { + *v = yyv4366 + } +} + +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 _, yyv4370 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4371 := &yyv4370 + yy4371.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 + + yyv4372 := *v + yyh4372, yyl4372 := z.DecSliceHelperStart() + var yyc4372 bool + if yyl4372 == 0 { + if yyv4372 == nil { + yyv4372 = []PersistentVolumeClaim{} + yyc4372 = true + } else if len(yyv4372) != 0 { + yyv4372 = yyv4372[:0] + yyc4372 = true + } + } else if yyl4372 > 0 { + var yyrr4372, yyrl4372 int + var yyrt4372 bool + if yyl4372 > cap(yyv4372) { + + yyrg4372 := len(yyv4372) > 0 + yyv24372 := yyv4372 + yyrl4372, yyrt4372 = z.DecInferLen(yyl4372, z.DecBasicHandle().MaxInitLen, 352) + if yyrt4372 { + if yyrl4372 <= cap(yyv4372) { + yyv4372 = yyv4372[:yyrl4372] + } else { + yyv4372 = make([]PersistentVolumeClaim, yyrl4372) + } + } else { + yyv4372 = make([]PersistentVolumeClaim, yyrl4372) + } + yyc4372 = true + yyrr4372 = len(yyv4372) + if yyrg4372 { + copy(yyv4372, yyv24372) + } + } else if yyl4372 != len(yyv4372) { + yyv4372 = yyv4372[:yyl4372] + yyc4372 = true + } + yyj4372 := 0 + for ; yyj4372 < yyrr4372; yyj4372++ { + yyh4372.ElemContainerState(yyj4372) + if r.TryDecodeAsNil() { + yyv4372[yyj4372] = PersistentVolumeClaim{} + } else { + yyv4373 := &yyv4372[yyj4372] + yyv4373.CodecDecodeSelf(d) + } + + } + if yyrt4372 { + for ; yyj4372 < yyl4372; yyj4372++ { + yyv4372 = append(yyv4372, PersistentVolumeClaim{}) + yyh4372.ElemContainerState(yyj4372) + if r.TryDecodeAsNil() { + yyv4372[yyj4372] = PersistentVolumeClaim{} + } else { + yyv4374 := &yyv4372[yyj4372] + yyv4374.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4372 := 0 + for ; !r.CheckBreak(); yyj4372++ { + + if yyj4372 >= len(yyv4372) { + yyv4372 = append(yyv4372, PersistentVolumeClaim{}) // var yyz4372 PersistentVolumeClaim + yyc4372 = true + } + yyh4372.ElemContainerState(yyj4372) + if yyj4372 < len(yyv4372) { + if r.TryDecodeAsNil() { + yyv4372[yyj4372] = PersistentVolumeClaim{} + } else { + yyv4375 := &yyv4372[yyj4372] + yyv4375.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4372 < len(yyv4372) { + yyv4372 = yyv4372[:yyj4372] + yyc4372 = true + } else if yyj4372 == 0 && yyv4372 == nil { + yyv4372 = []PersistentVolumeClaim{} + yyc4372 = true + } + } + yyh4372.End() + if yyc4372 { + *v = yyv4372 + } +} + +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 _, yyv4376 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4377 := &yyv4376 + yy4377.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 + + yyv4378 := *v + yyh4378, yyl4378 := z.DecSliceHelperStart() + var yyc4378 bool + if yyl4378 == 0 { + if yyv4378 == nil { + yyv4378 = []KeyToPath{} + yyc4378 = true + } else if len(yyv4378) != 0 { + yyv4378 = yyv4378[:0] + yyc4378 = true + } + } else if yyl4378 > 0 { + var yyrr4378, yyrl4378 int + var yyrt4378 bool + if yyl4378 > cap(yyv4378) { + + yyrg4378 := len(yyv4378) > 0 + yyv24378 := yyv4378 + yyrl4378, yyrt4378 = z.DecInferLen(yyl4378, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4378 { + if yyrl4378 <= cap(yyv4378) { + yyv4378 = yyv4378[:yyrl4378] + } else { + yyv4378 = make([]KeyToPath, yyrl4378) + } + } else { + yyv4378 = make([]KeyToPath, yyrl4378) + } + yyc4378 = true + yyrr4378 = len(yyv4378) + if yyrg4378 { + copy(yyv4378, yyv24378) + } + } else if yyl4378 != len(yyv4378) { + yyv4378 = yyv4378[:yyl4378] + yyc4378 = true + } + yyj4378 := 0 + for ; yyj4378 < yyrr4378; yyj4378++ { + yyh4378.ElemContainerState(yyj4378) + if r.TryDecodeAsNil() { + yyv4378[yyj4378] = KeyToPath{} + } else { + yyv4379 := &yyv4378[yyj4378] + yyv4379.CodecDecodeSelf(d) + } + + } + if yyrt4378 { + for ; yyj4378 < yyl4378; yyj4378++ { + yyv4378 = append(yyv4378, KeyToPath{}) + yyh4378.ElemContainerState(yyj4378) + if r.TryDecodeAsNil() { + yyv4378[yyj4378] = KeyToPath{} + } else { + yyv4380 := &yyv4378[yyj4378] + yyv4380.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4378 := 0 + for ; !r.CheckBreak(); yyj4378++ { + + if yyj4378 >= len(yyv4378) { + yyv4378 = append(yyv4378, KeyToPath{}) // var yyz4378 KeyToPath + yyc4378 = true + } + yyh4378.ElemContainerState(yyj4378) + if yyj4378 < len(yyv4378) { + if r.TryDecodeAsNil() { + yyv4378[yyj4378] = KeyToPath{} + } else { + yyv4381 := &yyv4378[yyj4378] + yyv4381.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4378 < len(yyv4378) { + yyv4378 = yyv4378[:yyj4378] + yyc4378 = true + } else if yyj4378 == 0 && yyv4378 == nil { + yyv4378 = []KeyToPath{} + yyc4378 = true + } + } + yyh4378.End() + if yyc4378 { + *v = yyv4378 + } +} + +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 _, yyv4382 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4383 := &yyv4382 + yy4383.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 + + yyv4384 := *v + yyh4384, yyl4384 := z.DecSliceHelperStart() + var yyc4384 bool + if yyl4384 == 0 { + if yyv4384 == nil { + yyv4384 = []HTTPHeader{} + yyc4384 = true + } else if len(yyv4384) != 0 { + yyv4384 = yyv4384[:0] + yyc4384 = true + } + } else if yyl4384 > 0 { + var yyrr4384, yyrl4384 int + var yyrt4384 bool + if yyl4384 > cap(yyv4384) { + + yyrg4384 := len(yyv4384) > 0 + yyv24384 := yyv4384 + yyrl4384, yyrt4384 = z.DecInferLen(yyl4384, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4384 { + if yyrl4384 <= cap(yyv4384) { + yyv4384 = yyv4384[:yyrl4384] + } else { + yyv4384 = make([]HTTPHeader, yyrl4384) + } + } else { + yyv4384 = make([]HTTPHeader, yyrl4384) + } + yyc4384 = true + yyrr4384 = len(yyv4384) + if yyrg4384 { + copy(yyv4384, yyv24384) + } + } else if yyl4384 != len(yyv4384) { + yyv4384 = yyv4384[:yyl4384] + yyc4384 = true + } + yyj4384 := 0 + for ; yyj4384 < yyrr4384; yyj4384++ { + yyh4384.ElemContainerState(yyj4384) + if r.TryDecodeAsNil() { + yyv4384[yyj4384] = HTTPHeader{} + } else { + yyv4385 := &yyv4384[yyj4384] + yyv4385.CodecDecodeSelf(d) + } + + } + if yyrt4384 { + for ; yyj4384 < yyl4384; yyj4384++ { + yyv4384 = append(yyv4384, HTTPHeader{}) + yyh4384.ElemContainerState(yyj4384) + if r.TryDecodeAsNil() { + yyv4384[yyj4384] = HTTPHeader{} + } else { + yyv4386 := &yyv4384[yyj4384] + yyv4386.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4384 := 0 + for ; !r.CheckBreak(); yyj4384++ { + + if yyj4384 >= len(yyv4384) { + yyv4384 = append(yyv4384, HTTPHeader{}) // var yyz4384 HTTPHeader + yyc4384 = true + } + yyh4384.ElemContainerState(yyj4384) + if yyj4384 < len(yyv4384) { + if r.TryDecodeAsNil() { + yyv4384[yyj4384] = HTTPHeader{} + } else { + yyv4387 := &yyv4384[yyj4384] + yyv4387.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4384 < len(yyv4384) { + yyv4384 = yyv4384[:yyj4384] + yyc4384 = true + } else if yyj4384 == 0 && yyv4384 == nil { + yyv4384 = []HTTPHeader{} + yyc4384 = true + } + } + yyh4384.End() + if yyc4384 { + *v = yyv4384 + } +} + +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 _, yyv4388 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4388.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 + + yyv4389 := *v + yyh4389, yyl4389 := z.DecSliceHelperStart() + var yyc4389 bool + if yyl4389 == 0 { + if yyv4389 == nil { + yyv4389 = []Capability{} + yyc4389 = true + } else if len(yyv4389) != 0 { + yyv4389 = yyv4389[:0] + yyc4389 = true + } + } else if yyl4389 > 0 { + var yyrr4389, yyrl4389 int + var yyrt4389 bool + if yyl4389 > cap(yyv4389) { + + yyrl4389, yyrt4389 = z.DecInferLen(yyl4389, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4389 { + if yyrl4389 <= cap(yyv4389) { + yyv4389 = yyv4389[:yyrl4389] + } else { + yyv4389 = make([]Capability, yyrl4389) + } + } else { + yyv4389 = make([]Capability, yyrl4389) + } + yyc4389 = true + yyrr4389 = len(yyv4389) + } else if yyl4389 != len(yyv4389) { + yyv4389 = yyv4389[:yyl4389] + yyc4389 = true + } + yyj4389 := 0 + for ; yyj4389 < yyrr4389; yyj4389++ { + yyh4389.ElemContainerState(yyj4389) + if r.TryDecodeAsNil() { + yyv4389[yyj4389] = "" + } else { + yyv4389[yyj4389] = Capability(r.DecodeString()) + } + + } + if yyrt4389 { + for ; yyj4389 < yyl4389; yyj4389++ { + yyv4389 = append(yyv4389, "") + yyh4389.ElemContainerState(yyj4389) + if r.TryDecodeAsNil() { + yyv4389[yyj4389] = "" + } else { + yyv4389[yyj4389] = Capability(r.DecodeString()) + } + + } + } + + } else { + yyj4389 := 0 + for ; !r.CheckBreak(); yyj4389++ { + + if yyj4389 >= len(yyv4389) { + yyv4389 = append(yyv4389, "") // var yyz4389 Capability + yyc4389 = true + } + yyh4389.ElemContainerState(yyj4389) + if yyj4389 < len(yyv4389) { + if r.TryDecodeAsNil() { + yyv4389[yyj4389] = "" + } else { + yyv4389[yyj4389] = Capability(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4389 < len(yyv4389) { + yyv4389 = yyv4389[:yyj4389] + yyc4389 = true + } else if yyj4389 == 0 && yyv4389 == nil { + yyv4389 = []Capability{} + yyc4389 = true + } + } + yyh4389.End() + if yyc4389 { + *v = yyv4389 + } +} + +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 _, yyv4393 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4394 := &yyv4393 + yy4394.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 + + yyv4395 := *v + yyh4395, yyl4395 := z.DecSliceHelperStart() + var yyc4395 bool + if yyl4395 == 0 { + if yyv4395 == nil { + yyv4395 = []ContainerPort{} + yyc4395 = true + } else if len(yyv4395) != 0 { + yyv4395 = yyv4395[:0] + yyc4395 = true + } + } else if yyl4395 > 0 { + var yyrr4395, yyrl4395 int + var yyrt4395 bool + if yyl4395 > cap(yyv4395) { + + yyrg4395 := len(yyv4395) > 0 + yyv24395 := yyv4395 + yyrl4395, yyrt4395 = z.DecInferLen(yyl4395, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4395 { + if yyrl4395 <= cap(yyv4395) { + yyv4395 = yyv4395[:yyrl4395] + } else { + yyv4395 = make([]ContainerPort, yyrl4395) + } + } else { + yyv4395 = make([]ContainerPort, yyrl4395) + } + yyc4395 = true + yyrr4395 = len(yyv4395) + if yyrg4395 { + copy(yyv4395, yyv24395) + } + } else if yyl4395 != len(yyv4395) { + yyv4395 = yyv4395[:yyl4395] + yyc4395 = true + } + yyj4395 := 0 + for ; yyj4395 < yyrr4395; yyj4395++ { + yyh4395.ElemContainerState(yyj4395) + if r.TryDecodeAsNil() { + yyv4395[yyj4395] = ContainerPort{} + } else { + yyv4396 := &yyv4395[yyj4395] + yyv4396.CodecDecodeSelf(d) + } + + } + if yyrt4395 { + for ; yyj4395 < yyl4395; yyj4395++ { + yyv4395 = append(yyv4395, ContainerPort{}) + yyh4395.ElemContainerState(yyj4395) + if r.TryDecodeAsNil() { + yyv4395[yyj4395] = ContainerPort{} + } else { + yyv4397 := &yyv4395[yyj4395] + yyv4397.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4395 := 0 + for ; !r.CheckBreak(); yyj4395++ { + + if yyj4395 >= len(yyv4395) { + yyv4395 = append(yyv4395, ContainerPort{}) // var yyz4395 ContainerPort + yyc4395 = true + } + yyh4395.ElemContainerState(yyj4395) + if yyj4395 < len(yyv4395) { + if r.TryDecodeAsNil() { + yyv4395[yyj4395] = ContainerPort{} + } else { + yyv4398 := &yyv4395[yyj4395] + yyv4398.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4395 < len(yyv4395) { + yyv4395 = yyv4395[:yyj4395] + yyc4395 = true + } else if yyj4395 == 0 && yyv4395 == nil { + yyv4395 = []ContainerPort{} + yyc4395 = true + } + } + yyh4395.End() + if yyc4395 { + *v = yyv4395 + } +} + +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 _, yyv4399 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4400 := &yyv4399 + yy4400.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 + + yyv4401 := *v + yyh4401, yyl4401 := z.DecSliceHelperStart() + var yyc4401 bool + if yyl4401 == 0 { + if yyv4401 == nil { + yyv4401 = []EnvVar{} + yyc4401 = true + } else if len(yyv4401) != 0 { + yyv4401 = yyv4401[:0] + yyc4401 = true + } + } else if yyl4401 > 0 { + var yyrr4401, yyrl4401 int + var yyrt4401 bool + if yyl4401 > cap(yyv4401) { + + yyrg4401 := len(yyv4401) > 0 + yyv24401 := yyv4401 + yyrl4401, yyrt4401 = z.DecInferLen(yyl4401, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4401 { + if yyrl4401 <= cap(yyv4401) { + yyv4401 = yyv4401[:yyrl4401] + } else { + yyv4401 = make([]EnvVar, yyrl4401) + } + } else { + yyv4401 = make([]EnvVar, yyrl4401) + } + yyc4401 = true + yyrr4401 = len(yyv4401) + if yyrg4401 { + copy(yyv4401, yyv24401) + } + } else if yyl4401 != len(yyv4401) { + yyv4401 = yyv4401[:yyl4401] + yyc4401 = true + } + yyj4401 := 0 + for ; yyj4401 < yyrr4401; yyj4401++ { + yyh4401.ElemContainerState(yyj4401) + if r.TryDecodeAsNil() { + yyv4401[yyj4401] = EnvVar{} + } else { + yyv4402 := &yyv4401[yyj4401] + yyv4402.CodecDecodeSelf(d) + } + + } + if yyrt4401 { + for ; yyj4401 < yyl4401; yyj4401++ { + yyv4401 = append(yyv4401, EnvVar{}) + yyh4401.ElemContainerState(yyj4401) + if r.TryDecodeAsNil() { + yyv4401[yyj4401] = EnvVar{} + } else { + yyv4403 := &yyv4401[yyj4401] + yyv4403.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4401 := 0 + for ; !r.CheckBreak(); yyj4401++ { + + if yyj4401 >= len(yyv4401) { + yyv4401 = append(yyv4401, EnvVar{}) // var yyz4401 EnvVar + yyc4401 = true + } + yyh4401.ElemContainerState(yyj4401) + if yyj4401 < len(yyv4401) { + if r.TryDecodeAsNil() { + yyv4401[yyj4401] = EnvVar{} + } else { + yyv4404 := &yyv4401[yyj4401] + yyv4404.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4401 < len(yyv4401) { + yyv4401 = yyv4401[:yyj4401] + yyc4401 = true + } else if yyj4401 == 0 && yyv4401 == nil { + yyv4401 = []EnvVar{} + yyc4401 = true + } + } + yyh4401.End() + if yyc4401 { + *v = yyv4401 + } +} + +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 _, yyv4405 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4406 := &yyv4405 + yy4406.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 + + yyv4407 := *v + yyh4407, yyl4407 := z.DecSliceHelperStart() + var yyc4407 bool + if yyl4407 == 0 { + if yyv4407 == nil { + yyv4407 = []VolumeMount{} + yyc4407 = true + } else if len(yyv4407) != 0 { + yyv4407 = yyv4407[:0] + yyc4407 = true + } + } else if yyl4407 > 0 { + var yyrr4407, yyrl4407 int + var yyrt4407 bool + if yyl4407 > cap(yyv4407) { + + yyrg4407 := len(yyv4407) > 0 + yyv24407 := yyv4407 + yyrl4407, yyrt4407 = z.DecInferLen(yyl4407, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4407 { + if yyrl4407 <= cap(yyv4407) { + yyv4407 = yyv4407[:yyrl4407] + } else { + yyv4407 = make([]VolumeMount, yyrl4407) + } + } else { + yyv4407 = make([]VolumeMount, yyrl4407) + } + yyc4407 = true + yyrr4407 = len(yyv4407) + if yyrg4407 { + copy(yyv4407, yyv24407) + } + } else if yyl4407 != len(yyv4407) { + yyv4407 = yyv4407[:yyl4407] + yyc4407 = true + } + yyj4407 := 0 + for ; yyj4407 < yyrr4407; yyj4407++ { + yyh4407.ElemContainerState(yyj4407) + if r.TryDecodeAsNil() { + yyv4407[yyj4407] = VolumeMount{} + } else { + yyv4408 := &yyv4407[yyj4407] + yyv4408.CodecDecodeSelf(d) + } + + } + if yyrt4407 { + for ; yyj4407 < yyl4407; yyj4407++ { + yyv4407 = append(yyv4407, VolumeMount{}) + yyh4407.ElemContainerState(yyj4407) + if r.TryDecodeAsNil() { + yyv4407[yyj4407] = VolumeMount{} + } else { + yyv4409 := &yyv4407[yyj4407] + yyv4409.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4407 := 0 + for ; !r.CheckBreak(); yyj4407++ { + + if yyj4407 >= len(yyv4407) { + yyv4407 = append(yyv4407, VolumeMount{}) // var yyz4407 VolumeMount + yyc4407 = true + } + yyh4407.ElemContainerState(yyj4407) + if yyj4407 < len(yyv4407) { + if r.TryDecodeAsNil() { + yyv4407[yyj4407] = VolumeMount{} + } else { + yyv4410 := &yyv4407[yyj4407] + yyv4410.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4407 < len(yyv4407) { + yyv4407 = yyv4407[:yyj4407] + yyc4407 = true + } else if yyj4407 == 0 && yyv4407 == nil { + yyv4407 = []VolumeMount{} + yyc4407 = true + } + } + yyh4407.End() + if yyc4407 { + *v = yyv4407 + } +} + +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 _, yyv4411 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4412 := &yyv4411 + yy4412.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 + + yyv4413 := *v + yyh4413, yyl4413 := z.DecSliceHelperStart() + var yyc4413 bool + if yyl4413 == 0 { + if yyv4413 == nil { + yyv4413 = []NodeSelectorTerm{} + yyc4413 = true + } else if len(yyv4413) != 0 { + yyv4413 = yyv4413[:0] + yyc4413 = true + } + } else if yyl4413 > 0 { + var yyrr4413, yyrl4413 int + var yyrt4413 bool + if yyl4413 > cap(yyv4413) { + + yyrg4413 := len(yyv4413) > 0 + yyv24413 := yyv4413 + yyrl4413, yyrt4413 = z.DecInferLen(yyl4413, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4413 { + if yyrl4413 <= cap(yyv4413) { + yyv4413 = yyv4413[:yyrl4413] + } else { + yyv4413 = make([]NodeSelectorTerm, yyrl4413) + } + } else { + yyv4413 = make([]NodeSelectorTerm, yyrl4413) + } + yyc4413 = true + yyrr4413 = len(yyv4413) + if yyrg4413 { + copy(yyv4413, yyv24413) + } + } else if yyl4413 != len(yyv4413) { + yyv4413 = yyv4413[:yyl4413] + yyc4413 = true + } + yyj4413 := 0 + for ; yyj4413 < yyrr4413; yyj4413++ { + yyh4413.ElemContainerState(yyj4413) + if r.TryDecodeAsNil() { + yyv4413[yyj4413] = NodeSelectorTerm{} + } else { + yyv4414 := &yyv4413[yyj4413] + yyv4414.CodecDecodeSelf(d) + } + + } + if yyrt4413 { + for ; yyj4413 < yyl4413; yyj4413++ { + yyv4413 = append(yyv4413, NodeSelectorTerm{}) + yyh4413.ElemContainerState(yyj4413) + if r.TryDecodeAsNil() { + yyv4413[yyj4413] = NodeSelectorTerm{} + } else { + yyv4415 := &yyv4413[yyj4413] + yyv4415.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4413 := 0 + for ; !r.CheckBreak(); yyj4413++ { + + if yyj4413 >= len(yyv4413) { + yyv4413 = append(yyv4413, NodeSelectorTerm{}) // var yyz4413 NodeSelectorTerm + yyc4413 = true + } + yyh4413.ElemContainerState(yyj4413) + if yyj4413 < len(yyv4413) { + if r.TryDecodeAsNil() { + yyv4413[yyj4413] = NodeSelectorTerm{} + } else { + yyv4416 := &yyv4413[yyj4413] + yyv4416.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4413 < len(yyv4413) { + yyv4413 = yyv4413[:yyj4413] + yyc4413 = true + } else if yyj4413 == 0 && yyv4413 == nil { + yyv4413 = []NodeSelectorTerm{} + yyc4413 = true + } + } + yyh4413.End() + if yyc4413 { + *v = yyv4413 + } +} + +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 _, yyv4417 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4418 := &yyv4417 + yy4418.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 + + yyv4419 := *v + yyh4419, yyl4419 := z.DecSliceHelperStart() + var yyc4419 bool + if yyl4419 == 0 { + if yyv4419 == nil { + yyv4419 = []NodeSelectorRequirement{} + yyc4419 = true + } else if len(yyv4419) != 0 { + yyv4419 = yyv4419[:0] + yyc4419 = true + } + } else if yyl4419 > 0 { + var yyrr4419, yyrl4419 int + var yyrt4419 bool + if yyl4419 > cap(yyv4419) { + + yyrg4419 := len(yyv4419) > 0 + yyv24419 := yyv4419 + yyrl4419, yyrt4419 = z.DecInferLen(yyl4419, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4419 { + if yyrl4419 <= cap(yyv4419) { + yyv4419 = yyv4419[:yyrl4419] + } else { + yyv4419 = make([]NodeSelectorRequirement, yyrl4419) + } + } else { + yyv4419 = make([]NodeSelectorRequirement, yyrl4419) + } + yyc4419 = true + yyrr4419 = len(yyv4419) + if yyrg4419 { + copy(yyv4419, yyv24419) + } + } else if yyl4419 != len(yyv4419) { + yyv4419 = yyv4419[:yyl4419] + yyc4419 = true + } + yyj4419 := 0 + for ; yyj4419 < yyrr4419; yyj4419++ { + yyh4419.ElemContainerState(yyj4419) + if r.TryDecodeAsNil() { + yyv4419[yyj4419] = NodeSelectorRequirement{} + } else { + yyv4420 := &yyv4419[yyj4419] + yyv4420.CodecDecodeSelf(d) + } + + } + if yyrt4419 { + for ; yyj4419 < yyl4419; yyj4419++ { + yyv4419 = append(yyv4419, NodeSelectorRequirement{}) + yyh4419.ElemContainerState(yyj4419) + if r.TryDecodeAsNil() { + yyv4419[yyj4419] = NodeSelectorRequirement{} + } else { + yyv4421 := &yyv4419[yyj4419] + yyv4421.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4419 := 0 + for ; !r.CheckBreak(); yyj4419++ { + + if yyj4419 >= len(yyv4419) { + yyv4419 = append(yyv4419, NodeSelectorRequirement{}) // var yyz4419 NodeSelectorRequirement + yyc4419 = true + } + yyh4419.ElemContainerState(yyj4419) + if yyj4419 < len(yyv4419) { + if r.TryDecodeAsNil() { + yyv4419[yyj4419] = NodeSelectorRequirement{} + } else { + yyv4422 := &yyv4419[yyj4419] + yyv4422.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4419 < len(yyv4419) { + yyv4419 = yyv4419[:yyj4419] + yyc4419 = true + } else if yyj4419 == 0 && yyv4419 == nil { + yyv4419 = []NodeSelectorRequirement{} + yyc4419 = true + } + } + yyh4419.End() + if yyc4419 { + *v = yyv4419 + } +} + +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 _, yyv4423 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4424 := &yyv4423 + yy4424.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 + + yyv4425 := *v + yyh4425, yyl4425 := z.DecSliceHelperStart() + var yyc4425 bool + if yyl4425 == 0 { + if yyv4425 == nil { + yyv4425 = []PodAffinityTerm{} + yyc4425 = true + } else if len(yyv4425) != 0 { + yyv4425 = yyv4425[:0] + yyc4425 = true + } + } else if yyl4425 > 0 { + var yyrr4425, yyrl4425 int + var yyrt4425 bool + if yyl4425 > cap(yyv4425) { + + yyrg4425 := len(yyv4425) > 0 + yyv24425 := yyv4425 + yyrl4425, yyrt4425 = z.DecInferLen(yyl4425, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4425 { + if yyrl4425 <= cap(yyv4425) { + yyv4425 = yyv4425[:yyrl4425] + } else { + yyv4425 = make([]PodAffinityTerm, yyrl4425) + } + } else { + yyv4425 = make([]PodAffinityTerm, yyrl4425) + } + yyc4425 = true + yyrr4425 = len(yyv4425) + if yyrg4425 { + copy(yyv4425, yyv24425) + } + } else if yyl4425 != len(yyv4425) { + yyv4425 = yyv4425[:yyl4425] + yyc4425 = true + } + yyj4425 := 0 + for ; yyj4425 < yyrr4425; yyj4425++ { + yyh4425.ElemContainerState(yyj4425) + if r.TryDecodeAsNil() { + yyv4425[yyj4425] = PodAffinityTerm{} + } else { + yyv4426 := &yyv4425[yyj4425] + yyv4426.CodecDecodeSelf(d) + } + + } + if yyrt4425 { + for ; yyj4425 < yyl4425; yyj4425++ { + yyv4425 = append(yyv4425, PodAffinityTerm{}) + yyh4425.ElemContainerState(yyj4425) + if r.TryDecodeAsNil() { + yyv4425[yyj4425] = PodAffinityTerm{} + } else { + yyv4427 := &yyv4425[yyj4425] + yyv4427.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4425 := 0 + for ; !r.CheckBreak(); yyj4425++ { + + if yyj4425 >= len(yyv4425) { + yyv4425 = append(yyv4425, PodAffinityTerm{}) // var yyz4425 PodAffinityTerm + yyc4425 = true + } + yyh4425.ElemContainerState(yyj4425) + if yyj4425 < len(yyv4425) { + if r.TryDecodeAsNil() { + yyv4425[yyj4425] = PodAffinityTerm{} + } else { + yyv4428 := &yyv4425[yyj4425] + yyv4428.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4425 < len(yyv4425) { + yyv4425 = yyv4425[:yyj4425] + yyc4425 = true + } else if yyj4425 == 0 && yyv4425 == nil { + yyv4425 = []PodAffinityTerm{} + yyc4425 = true + } + } + yyh4425.End() + if yyc4425 { + *v = yyv4425 + } +} + +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 _, yyv4429 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4430 := &yyv4429 + yy4430.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 + + yyv4431 := *v + yyh4431, yyl4431 := z.DecSliceHelperStart() + var yyc4431 bool + if yyl4431 == 0 { + if yyv4431 == nil { + yyv4431 = []WeightedPodAffinityTerm{} + yyc4431 = true + } else if len(yyv4431) != 0 { + yyv4431 = yyv4431[:0] + yyc4431 = true + } + } else if yyl4431 > 0 { + var yyrr4431, yyrl4431 int + var yyrt4431 bool + if yyl4431 > cap(yyv4431) { + + yyrg4431 := len(yyv4431) > 0 + yyv24431 := yyv4431 + yyrl4431, yyrt4431 = z.DecInferLen(yyl4431, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4431 { + if yyrl4431 <= cap(yyv4431) { + yyv4431 = yyv4431[:yyrl4431] + } else { + yyv4431 = make([]WeightedPodAffinityTerm, yyrl4431) + } + } else { + yyv4431 = make([]WeightedPodAffinityTerm, yyrl4431) + } + yyc4431 = true + yyrr4431 = len(yyv4431) + if yyrg4431 { + copy(yyv4431, yyv24431) + } + } else if yyl4431 != len(yyv4431) { + yyv4431 = yyv4431[:yyl4431] + yyc4431 = true + } + yyj4431 := 0 + for ; yyj4431 < yyrr4431; yyj4431++ { + yyh4431.ElemContainerState(yyj4431) + if r.TryDecodeAsNil() { + yyv4431[yyj4431] = WeightedPodAffinityTerm{} + } else { + yyv4432 := &yyv4431[yyj4431] + yyv4432.CodecDecodeSelf(d) + } + + } + if yyrt4431 { + for ; yyj4431 < yyl4431; yyj4431++ { + yyv4431 = append(yyv4431, WeightedPodAffinityTerm{}) + yyh4431.ElemContainerState(yyj4431) + if r.TryDecodeAsNil() { + yyv4431[yyj4431] = WeightedPodAffinityTerm{} + } else { + yyv4433 := &yyv4431[yyj4431] + yyv4433.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4431 := 0 + for ; !r.CheckBreak(); yyj4431++ { + + if yyj4431 >= len(yyv4431) { + yyv4431 = append(yyv4431, WeightedPodAffinityTerm{}) // var yyz4431 WeightedPodAffinityTerm + yyc4431 = true + } + yyh4431.ElemContainerState(yyj4431) + if yyj4431 < len(yyv4431) { + if r.TryDecodeAsNil() { + yyv4431[yyj4431] = WeightedPodAffinityTerm{} + } else { + yyv4434 := &yyv4431[yyj4431] + yyv4434.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4431 < len(yyv4431) { + yyv4431 = yyv4431[:yyj4431] + yyc4431 = true + } else if yyj4431 == 0 && yyv4431 == nil { + yyv4431 = []WeightedPodAffinityTerm{} + yyc4431 = true + } + } + yyh4431.End() + if yyc4431 { + *v = yyv4431 + } +} + +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 _, yyv4435 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4436 := &yyv4435 + yy4436.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 + + yyv4437 := *v + yyh4437, yyl4437 := z.DecSliceHelperStart() + var yyc4437 bool + if yyl4437 == 0 { + if yyv4437 == nil { + yyv4437 = []PreferredSchedulingTerm{} + yyc4437 = true + } else if len(yyv4437) != 0 { + yyv4437 = yyv4437[:0] + yyc4437 = true + } + } else if yyl4437 > 0 { + var yyrr4437, yyrl4437 int + var yyrt4437 bool + if yyl4437 > cap(yyv4437) { + + yyrg4437 := len(yyv4437) > 0 + yyv24437 := yyv4437 + yyrl4437, yyrt4437 = z.DecInferLen(yyl4437, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4437 { + if yyrl4437 <= cap(yyv4437) { + yyv4437 = yyv4437[:yyrl4437] + } else { + yyv4437 = make([]PreferredSchedulingTerm, yyrl4437) + } + } else { + yyv4437 = make([]PreferredSchedulingTerm, yyrl4437) + } + yyc4437 = true + yyrr4437 = len(yyv4437) + if yyrg4437 { + copy(yyv4437, yyv24437) + } + } else if yyl4437 != len(yyv4437) { + yyv4437 = yyv4437[:yyl4437] + yyc4437 = true + } + yyj4437 := 0 + for ; yyj4437 < yyrr4437; yyj4437++ { + yyh4437.ElemContainerState(yyj4437) + if r.TryDecodeAsNil() { + yyv4437[yyj4437] = PreferredSchedulingTerm{} + } else { + yyv4438 := &yyv4437[yyj4437] + yyv4438.CodecDecodeSelf(d) + } + + } + if yyrt4437 { + for ; yyj4437 < yyl4437; yyj4437++ { + yyv4437 = append(yyv4437, PreferredSchedulingTerm{}) + yyh4437.ElemContainerState(yyj4437) + if r.TryDecodeAsNil() { + yyv4437[yyj4437] = PreferredSchedulingTerm{} + } else { + yyv4439 := &yyv4437[yyj4437] + yyv4439.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4437 := 0 + for ; !r.CheckBreak(); yyj4437++ { + + if yyj4437 >= len(yyv4437) { + yyv4437 = append(yyv4437, PreferredSchedulingTerm{}) // var yyz4437 PreferredSchedulingTerm + yyc4437 = true + } + yyh4437.ElemContainerState(yyj4437) + if yyj4437 < len(yyv4437) { + if r.TryDecodeAsNil() { + yyv4437[yyj4437] = PreferredSchedulingTerm{} + } else { + yyv4440 := &yyv4437[yyj4437] + yyv4440.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4437 < len(yyv4437) { + yyv4437 = yyv4437[:yyj4437] + yyc4437 = true + } else if yyj4437 == 0 && yyv4437 == nil { + yyv4437 = []PreferredSchedulingTerm{} + yyc4437 = true + } + } + yyh4437.End() + if yyc4437 { + *v = yyv4437 + } +} + +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 _, yyv4441 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4442 := &yyv4441 + yy4442.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 + + yyv4443 := *v + yyh4443, yyl4443 := z.DecSliceHelperStart() + var yyc4443 bool + if yyl4443 == 0 { + if yyv4443 == nil { + yyv4443 = []Volume{} + yyc4443 = true + } else if len(yyv4443) != 0 { + yyv4443 = yyv4443[:0] + yyc4443 = true + } + } else if yyl4443 > 0 { + var yyrr4443, yyrl4443 int + var yyrt4443 bool + if yyl4443 > cap(yyv4443) { + + yyrg4443 := len(yyv4443) > 0 + yyv24443 := yyv4443 + yyrl4443, yyrt4443 = z.DecInferLen(yyl4443, z.DecBasicHandle().MaxInitLen, 176) + if yyrt4443 { + if yyrl4443 <= cap(yyv4443) { + yyv4443 = yyv4443[:yyrl4443] + } else { + yyv4443 = make([]Volume, yyrl4443) + } + } else { + yyv4443 = make([]Volume, yyrl4443) + } + yyc4443 = true + yyrr4443 = len(yyv4443) + if yyrg4443 { + copy(yyv4443, yyv24443) + } + } else if yyl4443 != len(yyv4443) { + yyv4443 = yyv4443[:yyl4443] + yyc4443 = true + } + yyj4443 := 0 + for ; yyj4443 < yyrr4443; yyj4443++ { + yyh4443.ElemContainerState(yyj4443) + if r.TryDecodeAsNil() { + yyv4443[yyj4443] = Volume{} + } else { + yyv4444 := &yyv4443[yyj4443] + yyv4444.CodecDecodeSelf(d) + } + + } + if yyrt4443 { + for ; yyj4443 < yyl4443; yyj4443++ { + yyv4443 = append(yyv4443, Volume{}) + yyh4443.ElemContainerState(yyj4443) + if r.TryDecodeAsNil() { + yyv4443[yyj4443] = Volume{} + } else { + yyv4445 := &yyv4443[yyj4443] + yyv4445.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4443 := 0 + for ; !r.CheckBreak(); yyj4443++ { + + if yyj4443 >= len(yyv4443) { + yyv4443 = append(yyv4443, Volume{}) // var yyz4443 Volume + yyc4443 = true + } + yyh4443.ElemContainerState(yyj4443) + if yyj4443 < len(yyv4443) { + if r.TryDecodeAsNil() { + yyv4443[yyj4443] = Volume{} + } else { + yyv4446 := &yyv4443[yyj4443] + yyv4446.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4443 < len(yyv4443) { + yyv4443 = yyv4443[:yyj4443] + yyc4443 = true + } else if yyj4443 == 0 && yyv4443 == nil { + yyv4443 = []Volume{} + yyc4443 = true + } + } + yyh4443.End() + if yyc4443 { + *v = yyv4443 + } +} + +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 _, yyv4447 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4448 := &yyv4447 + yy4448.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 + + yyv4449 := *v + yyh4449, yyl4449 := z.DecSliceHelperStart() + var yyc4449 bool + if yyl4449 == 0 { + if yyv4449 == nil { + yyv4449 = []Container{} + yyc4449 = true + } else if len(yyv4449) != 0 { + yyv4449 = yyv4449[:0] + yyc4449 = true + } + } else if yyl4449 > 0 { + var yyrr4449, yyrl4449 int + var yyrt4449 bool + if yyl4449 > cap(yyv4449) { + + yyrg4449 := len(yyv4449) > 0 + yyv24449 := yyv4449 + yyrl4449, yyrt4449 = z.DecInferLen(yyl4449, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4449 { + if yyrl4449 <= cap(yyv4449) { + yyv4449 = yyv4449[:yyrl4449] + } else { + yyv4449 = make([]Container, yyrl4449) + } + } else { + yyv4449 = make([]Container, yyrl4449) + } + yyc4449 = true + yyrr4449 = len(yyv4449) + if yyrg4449 { + copy(yyv4449, yyv24449) + } + } else if yyl4449 != len(yyv4449) { + yyv4449 = yyv4449[:yyl4449] + yyc4449 = true + } + yyj4449 := 0 + for ; yyj4449 < yyrr4449; yyj4449++ { + yyh4449.ElemContainerState(yyj4449) + if r.TryDecodeAsNil() { + yyv4449[yyj4449] = Container{} + } else { + yyv4450 := &yyv4449[yyj4449] + yyv4450.CodecDecodeSelf(d) + } + + } + if yyrt4449 { + for ; yyj4449 < yyl4449; yyj4449++ { + yyv4449 = append(yyv4449, Container{}) + yyh4449.ElemContainerState(yyj4449) + if r.TryDecodeAsNil() { + yyv4449[yyj4449] = Container{} + } else { + yyv4451 := &yyv4449[yyj4449] + yyv4451.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4449 := 0 + for ; !r.CheckBreak(); yyj4449++ { + + if yyj4449 >= len(yyv4449) { + yyv4449 = append(yyv4449, Container{}) // var yyz4449 Container + yyc4449 = true + } + yyh4449.ElemContainerState(yyj4449) + if yyj4449 < len(yyv4449) { + if r.TryDecodeAsNil() { + yyv4449[yyj4449] = Container{} + } else { + yyv4452 := &yyv4449[yyj4449] + yyv4452.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4449 < len(yyv4449) { + yyv4449 = yyv4449[:yyj4449] + yyc4449 = true + } else if yyj4449 == 0 && yyv4449 == nil { + yyv4449 = []Container{} + yyc4449 = true + } + } + yyh4449.End() + if yyc4449 { + *v = yyv4449 + } +} + +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 _, yyv4453 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4454 := &yyv4453 + yy4454.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 + + yyv4455 := *v + yyh4455, yyl4455 := z.DecSliceHelperStart() + var yyc4455 bool + if yyl4455 == 0 { + if yyv4455 == nil { + yyv4455 = []LocalObjectReference{} + yyc4455 = true + } else if len(yyv4455) != 0 { + yyv4455 = yyv4455[:0] + yyc4455 = true + } + } else if yyl4455 > 0 { + var yyrr4455, yyrl4455 int + var yyrt4455 bool + if yyl4455 > cap(yyv4455) { + + yyrg4455 := len(yyv4455) > 0 + yyv24455 := yyv4455 + yyrl4455, yyrt4455 = z.DecInferLen(yyl4455, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4455 { + if yyrl4455 <= cap(yyv4455) { + yyv4455 = yyv4455[:yyrl4455] + } else { + yyv4455 = make([]LocalObjectReference, yyrl4455) + } + } else { + yyv4455 = make([]LocalObjectReference, yyrl4455) + } + yyc4455 = true + yyrr4455 = len(yyv4455) + if yyrg4455 { + copy(yyv4455, yyv24455) + } + } else if yyl4455 != len(yyv4455) { + yyv4455 = yyv4455[:yyl4455] + yyc4455 = true + } + yyj4455 := 0 + for ; yyj4455 < yyrr4455; yyj4455++ { + yyh4455.ElemContainerState(yyj4455) + if r.TryDecodeAsNil() { + yyv4455[yyj4455] = LocalObjectReference{} + } else { + yyv4456 := &yyv4455[yyj4455] + yyv4456.CodecDecodeSelf(d) + } + + } + if yyrt4455 { + for ; yyj4455 < yyl4455; yyj4455++ { + yyv4455 = append(yyv4455, LocalObjectReference{}) + yyh4455.ElemContainerState(yyj4455) + if r.TryDecodeAsNil() { + yyv4455[yyj4455] = LocalObjectReference{} + } else { + yyv4457 := &yyv4455[yyj4455] + yyv4457.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4455 := 0 + for ; !r.CheckBreak(); yyj4455++ { + + if yyj4455 >= len(yyv4455) { + yyv4455 = append(yyv4455, LocalObjectReference{}) // var yyz4455 LocalObjectReference + yyc4455 = true + } + yyh4455.ElemContainerState(yyj4455) + if yyj4455 < len(yyv4455) { + if r.TryDecodeAsNil() { + yyv4455[yyj4455] = LocalObjectReference{} + } else { + yyv4458 := &yyv4455[yyj4455] + yyv4458.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4455 < len(yyv4455) { + yyv4455 = yyv4455[:yyj4455] + yyc4455 = true + } else if yyj4455 == 0 && yyv4455 == nil { + yyv4455 = []LocalObjectReference{} + yyc4455 = true + } + } + yyh4455.End() + if yyc4455 { + *v = yyv4455 + } +} + +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 _, yyv4459 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4460 := &yyv4459 + yy4460.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 + + yyv4461 := *v + yyh4461, yyl4461 := z.DecSliceHelperStart() + var yyc4461 bool + if yyl4461 == 0 { + if yyv4461 == nil { + yyv4461 = []PodCondition{} + yyc4461 = true + } else if len(yyv4461) != 0 { + yyv4461 = yyv4461[:0] + yyc4461 = true + } + } else if yyl4461 > 0 { + var yyrr4461, yyrl4461 int + var yyrt4461 bool + if yyl4461 > cap(yyv4461) { + + yyrg4461 := len(yyv4461) > 0 + yyv24461 := yyv4461 + yyrl4461, yyrt4461 = z.DecInferLen(yyl4461, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4461 { + if yyrl4461 <= cap(yyv4461) { + yyv4461 = yyv4461[:yyrl4461] + } else { + yyv4461 = make([]PodCondition, yyrl4461) + } + } else { + yyv4461 = make([]PodCondition, yyrl4461) + } + yyc4461 = true + yyrr4461 = len(yyv4461) + if yyrg4461 { + copy(yyv4461, yyv24461) + } + } else if yyl4461 != len(yyv4461) { + yyv4461 = yyv4461[:yyl4461] + yyc4461 = true + } + yyj4461 := 0 + for ; yyj4461 < yyrr4461; yyj4461++ { + yyh4461.ElemContainerState(yyj4461) + if r.TryDecodeAsNil() { + yyv4461[yyj4461] = PodCondition{} + } else { + yyv4462 := &yyv4461[yyj4461] + yyv4462.CodecDecodeSelf(d) + } + + } + if yyrt4461 { + for ; yyj4461 < yyl4461; yyj4461++ { + yyv4461 = append(yyv4461, PodCondition{}) + yyh4461.ElemContainerState(yyj4461) + if r.TryDecodeAsNil() { + yyv4461[yyj4461] = PodCondition{} + } else { + yyv4463 := &yyv4461[yyj4461] + yyv4463.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4461 := 0 + for ; !r.CheckBreak(); yyj4461++ { + + if yyj4461 >= len(yyv4461) { + yyv4461 = append(yyv4461, PodCondition{}) // var yyz4461 PodCondition + yyc4461 = true + } + yyh4461.ElemContainerState(yyj4461) + if yyj4461 < len(yyv4461) { + if r.TryDecodeAsNil() { + yyv4461[yyj4461] = PodCondition{} + } else { + yyv4464 := &yyv4461[yyj4461] + yyv4464.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4461 < len(yyv4461) { + yyv4461 = yyv4461[:yyj4461] + yyc4461 = true + } else if yyj4461 == 0 && yyv4461 == nil { + yyv4461 = []PodCondition{} + yyc4461 = true + } + } + yyh4461.End() + if yyc4461 { + *v = yyv4461 + } +} + +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 _, yyv4465 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4466 := &yyv4465 + yy4466.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 + + yyv4467 := *v + yyh4467, yyl4467 := z.DecSliceHelperStart() + var yyc4467 bool + if yyl4467 == 0 { + if yyv4467 == nil { + yyv4467 = []ContainerStatus{} + yyc4467 = true + } else if len(yyv4467) != 0 { + yyv4467 = yyv4467[:0] + yyc4467 = true + } + } else if yyl4467 > 0 { + var yyrr4467, yyrl4467 int + var yyrt4467 bool + if yyl4467 > cap(yyv4467) { + + yyrg4467 := len(yyv4467) > 0 + yyv24467 := yyv4467 + yyrl4467, yyrt4467 = z.DecInferLen(yyl4467, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4467 { + if yyrl4467 <= cap(yyv4467) { + yyv4467 = yyv4467[:yyrl4467] + } else { + yyv4467 = make([]ContainerStatus, yyrl4467) + } + } else { + yyv4467 = make([]ContainerStatus, yyrl4467) + } + yyc4467 = true + yyrr4467 = len(yyv4467) + if yyrg4467 { + copy(yyv4467, yyv24467) + } + } else if yyl4467 != len(yyv4467) { + yyv4467 = yyv4467[:yyl4467] + yyc4467 = true + } + yyj4467 := 0 + for ; yyj4467 < yyrr4467; yyj4467++ { + yyh4467.ElemContainerState(yyj4467) + if r.TryDecodeAsNil() { + yyv4467[yyj4467] = ContainerStatus{} + } else { + yyv4468 := &yyv4467[yyj4467] + yyv4468.CodecDecodeSelf(d) + } + + } + if yyrt4467 { + for ; yyj4467 < yyl4467; yyj4467++ { + yyv4467 = append(yyv4467, ContainerStatus{}) + yyh4467.ElemContainerState(yyj4467) + if r.TryDecodeAsNil() { + yyv4467[yyj4467] = ContainerStatus{} + } else { + yyv4469 := &yyv4467[yyj4467] + yyv4469.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4467 := 0 + for ; !r.CheckBreak(); yyj4467++ { + + if yyj4467 >= len(yyv4467) { + yyv4467 = append(yyv4467, ContainerStatus{}) // var yyz4467 ContainerStatus + yyc4467 = true + } + yyh4467.ElemContainerState(yyj4467) + if yyj4467 < len(yyv4467) { + if r.TryDecodeAsNil() { + yyv4467[yyj4467] = ContainerStatus{} + } else { + yyv4470 := &yyv4467[yyj4467] + yyv4470.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4467 < len(yyv4467) { + yyv4467 = yyv4467[:yyj4467] + yyc4467 = true + } else if yyj4467 == 0 && yyv4467 == nil { + yyv4467 = []ContainerStatus{} + yyc4467 = true + } + } + yyh4467.End() + if yyc4467 { + *v = yyv4467 + } +} + +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 _, yyv4471 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4472 := &yyv4471 + yy4472.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 + + yyv4473 := *v + yyh4473, yyl4473 := z.DecSliceHelperStart() + var yyc4473 bool + if yyl4473 == 0 { + if yyv4473 == nil { + yyv4473 = []Pod{} + yyc4473 = true + } else if len(yyv4473) != 0 { + yyv4473 = yyv4473[:0] + yyc4473 = true + } + } else if yyl4473 > 0 { + var yyrr4473, yyrl4473 int + var yyrt4473 bool + if yyl4473 > cap(yyv4473) { + + yyrg4473 := len(yyv4473) > 0 + yyv24473 := yyv4473 + yyrl4473, yyrt4473 = z.DecInferLen(yyl4473, z.DecBasicHandle().MaxInitLen, 648) + if yyrt4473 { + if yyrl4473 <= cap(yyv4473) { + yyv4473 = yyv4473[:yyrl4473] + } else { + yyv4473 = make([]Pod, yyrl4473) + } + } else { + yyv4473 = make([]Pod, yyrl4473) + } + yyc4473 = true + yyrr4473 = len(yyv4473) + if yyrg4473 { + copy(yyv4473, yyv24473) + } + } else if yyl4473 != len(yyv4473) { + yyv4473 = yyv4473[:yyl4473] + yyc4473 = true + } + yyj4473 := 0 + for ; yyj4473 < yyrr4473; yyj4473++ { + yyh4473.ElemContainerState(yyj4473) + if r.TryDecodeAsNil() { + yyv4473[yyj4473] = Pod{} + } else { + yyv4474 := &yyv4473[yyj4473] + yyv4474.CodecDecodeSelf(d) + } + + } + if yyrt4473 { + for ; yyj4473 < yyl4473; yyj4473++ { + yyv4473 = append(yyv4473, Pod{}) + yyh4473.ElemContainerState(yyj4473) + if r.TryDecodeAsNil() { + yyv4473[yyj4473] = Pod{} + } else { + yyv4475 := &yyv4473[yyj4473] + yyv4475.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4473 := 0 + for ; !r.CheckBreak(); yyj4473++ { + + if yyj4473 >= len(yyv4473) { + yyv4473 = append(yyv4473, Pod{}) // var yyz4473 Pod + yyc4473 = true + } + yyh4473.ElemContainerState(yyj4473) + if yyj4473 < len(yyv4473) { + if r.TryDecodeAsNil() { + yyv4473[yyj4473] = Pod{} + } else { + yyv4476 := &yyv4473[yyj4473] + yyv4476.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4473 < len(yyv4473) { + yyv4473 = yyv4473[:yyj4473] + yyc4473 = true + } else if yyj4473 == 0 && yyv4473 == nil { + yyv4473 = []Pod{} + yyc4473 = true + } + } + yyh4473.End() + if yyc4473 { + *v = yyv4473 + } +} + +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 _, yyv4477 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4478 := &yyv4477 + yy4478.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 + + yyv4479 := *v + yyh4479, yyl4479 := z.DecSliceHelperStart() + var yyc4479 bool + if yyl4479 == 0 { + if yyv4479 == nil { + yyv4479 = []PodTemplate{} + yyc4479 = true + } else if len(yyv4479) != 0 { + yyv4479 = yyv4479[:0] + yyc4479 = true + } + } else if yyl4479 > 0 { + var yyrr4479, yyrl4479 int + var yyrt4479 bool + if yyl4479 > cap(yyv4479) { + + yyrg4479 := len(yyv4479) > 0 + yyv24479 := yyv4479 + yyrl4479, yyrt4479 = z.DecInferLen(yyl4479, z.DecBasicHandle().MaxInitLen, 696) + if yyrt4479 { + if yyrl4479 <= cap(yyv4479) { + yyv4479 = yyv4479[:yyrl4479] + } else { + yyv4479 = make([]PodTemplate, yyrl4479) + } + } else { + yyv4479 = make([]PodTemplate, yyrl4479) + } + yyc4479 = true + yyrr4479 = len(yyv4479) + if yyrg4479 { + copy(yyv4479, yyv24479) + } + } else if yyl4479 != len(yyv4479) { + yyv4479 = yyv4479[:yyl4479] + yyc4479 = true + } + yyj4479 := 0 + for ; yyj4479 < yyrr4479; yyj4479++ { + yyh4479.ElemContainerState(yyj4479) + if r.TryDecodeAsNil() { + yyv4479[yyj4479] = PodTemplate{} + } else { + yyv4480 := &yyv4479[yyj4479] + yyv4480.CodecDecodeSelf(d) + } + + } + if yyrt4479 { + for ; yyj4479 < yyl4479; yyj4479++ { + yyv4479 = append(yyv4479, PodTemplate{}) + yyh4479.ElemContainerState(yyj4479) + if r.TryDecodeAsNil() { + yyv4479[yyj4479] = PodTemplate{} + } else { + yyv4481 := &yyv4479[yyj4479] + yyv4481.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4479 := 0 + for ; !r.CheckBreak(); yyj4479++ { + + if yyj4479 >= len(yyv4479) { + yyv4479 = append(yyv4479, PodTemplate{}) // var yyz4479 PodTemplate + yyc4479 = true + } + yyh4479.ElemContainerState(yyj4479) + if yyj4479 < len(yyv4479) { + if r.TryDecodeAsNil() { + yyv4479[yyj4479] = PodTemplate{} + } else { + yyv4482 := &yyv4479[yyj4479] + yyv4482.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4479 < len(yyv4479) { + yyv4479 = yyv4479[:yyj4479] + yyc4479 = true + } else if yyj4479 == 0 && yyv4479 == nil { + yyv4479 = []PodTemplate{} + yyc4479 = true + } + } + yyh4479.End() + if yyc4479 { + *v = yyv4479 + } +} + +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 _, yyv4483 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4484 := &yyv4483 + yy4484.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 + + yyv4485 := *v + yyh4485, yyl4485 := z.DecSliceHelperStart() + var yyc4485 bool + if yyl4485 == 0 { + if yyv4485 == nil { + yyv4485 = []ReplicationController{} + yyc4485 = true + } else if len(yyv4485) != 0 { + yyv4485 = yyv4485[:0] + yyc4485 = true + } + } else if yyl4485 > 0 { + var yyrr4485, yyrl4485 int + var yyrt4485 bool + if yyl4485 > cap(yyv4485) { + + yyrg4485 := len(yyv4485) > 0 + yyv24485 := yyv4485 + yyrl4485, yyrt4485 = z.DecInferLen(yyl4485, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4485 { + if yyrl4485 <= cap(yyv4485) { + yyv4485 = yyv4485[:yyrl4485] + } else { + yyv4485 = make([]ReplicationController, yyrl4485) + } + } else { + yyv4485 = make([]ReplicationController, yyrl4485) + } + yyc4485 = true + yyrr4485 = len(yyv4485) + if yyrg4485 { + copy(yyv4485, yyv24485) + } + } else if yyl4485 != len(yyv4485) { + yyv4485 = yyv4485[:yyl4485] + yyc4485 = true + } + yyj4485 := 0 + for ; yyj4485 < yyrr4485; yyj4485++ { + yyh4485.ElemContainerState(yyj4485) + if r.TryDecodeAsNil() { + yyv4485[yyj4485] = ReplicationController{} + } else { + yyv4486 := &yyv4485[yyj4485] + yyv4486.CodecDecodeSelf(d) + } + + } + if yyrt4485 { + for ; yyj4485 < yyl4485; yyj4485++ { + yyv4485 = append(yyv4485, ReplicationController{}) + yyh4485.ElemContainerState(yyj4485) + if r.TryDecodeAsNil() { + yyv4485[yyj4485] = ReplicationController{} + } else { + yyv4487 := &yyv4485[yyj4485] + yyv4487.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4485 := 0 + for ; !r.CheckBreak(); yyj4485++ { + + if yyj4485 >= len(yyv4485) { + yyv4485 = append(yyv4485, ReplicationController{}) // var yyz4485 ReplicationController + yyc4485 = true + } + yyh4485.ElemContainerState(yyj4485) + if yyj4485 < len(yyv4485) { + if r.TryDecodeAsNil() { + yyv4485[yyj4485] = ReplicationController{} + } else { + yyv4488 := &yyv4485[yyj4485] + yyv4488.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4485 < len(yyv4485) { + yyv4485 = yyv4485[:yyj4485] + yyc4485 = true + } else if yyj4485 == 0 && yyv4485 == nil { + yyv4485 = []ReplicationController{} + yyc4485 = true + } + } + yyh4485.End() + if yyc4485 { + *v = yyv4485 + } +} + +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 _, yyv4489 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4490 := &yyv4489 + yy4490.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 + + yyv4491 := *v + yyh4491, yyl4491 := z.DecSliceHelperStart() + var yyc4491 bool + if yyl4491 == 0 { + if yyv4491 == nil { + yyv4491 = []LoadBalancerIngress{} + yyc4491 = true + } else if len(yyv4491) != 0 { + yyv4491 = yyv4491[:0] + yyc4491 = true + } + } else if yyl4491 > 0 { + var yyrr4491, yyrl4491 int + var yyrt4491 bool + if yyl4491 > cap(yyv4491) { + + yyrg4491 := len(yyv4491) > 0 + yyv24491 := yyv4491 + yyrl4491, yyrt4491 = z.DecInferLen(yyl4491, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4491 { + if yyrl4491 <= cap(yyv4491) { + yyv4491 = yyv4491[:yyrl4491] + } else { + yyv4491 = make([]LoadBalancerIngress, yyrl4491) + } + } else { + yyv4491 = make([]LoadBalancerIngress, yyrl4491) + } + yyc4491 = true + yyrr4491 = len(yyv4491) + if yyrg4491 { + copy(yyv4491, yyv24491) + } + } else if yyl4491 != len(yyv4491) { + yyv4491 = yyv4491[:yyl4491] + yyc4491 = true + } + yyj4491 := 0 + for ; yyj4491 < yyrr4491; yyj4491++ { + yyh4491.ElemContainerState(yyj4491) + if r.TryDecodeAsNil() { + yyv4491[yyj4491] = LoadBalancerIngress{} + } else { + yyv4492 := &yyv4491[yyj4491] + yyv4492.CodecDecodeSelf(d) + } + + } + if yyrt4491 { + for ; yyj4491 < yyl4491; yyj4491++ { + yyv4491 = append(yyv4491, LoadBalancerIngress{}) + yyh4491.ElemContainerState(yyj4491) + if r.TryDecodeAsNil() { + yyv4491[yyj4491] = LoadBalancerIngress{} + } else { + yyv4493 := &yyv4491[yyj4491] + yyv4493.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4491 := 0 + for ; !r.CheckBreak(); yyj4491++ { + + if yyj4491 >= len(yyv4491) { + yyv4491 = append(yyv4491, LoadBalancerIngress{}) // var yyz4491 LoadBalancerIngress + yyc4491 = true + } + yyh4491.ElemContainerState(yyj4491) + if yyj4491 < len(yyv4491) { + if r.TryDecodeAsNil() { + yyv4491[yyj4491] = LoadBalancerIngress{} + } else { + yyv4494 := &yyv4491[yyj4491] + yyv4494.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4491 < len(yyv4491) { + yyv4491 = yyv4491[:yyj4491] + yyc4491 = true + } else if yyj4491 == 0 && yyv4491 == nil { + yyv4491 = []LoadBalancerIngress{} + yyc4491 = true + } + } + yyh4491.End() + if yyc4491 { + *v = yyv4491 + } +} + +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 _, yyv4495 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4496 := &yyv4495 + yy4496.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 + + yyv4497 := *v + yyh4497, yyl4497 := z.DecSliceHelperStart() + var yyc4497 bool + if yyl4497 == 0 { + if yyv4497 == nil { + yyv4497 = []ServicePort{} + yyc4497 = true + } else if len(yyv4497) != 0 { + yyv4497 = yyv4497[:0] + yyc4497 = true + } + } else if yyl4497 > 0 { + var yyrr4497, yyrl4497 int + var yyrt4497 bool + if yyl4497 > cap(yyv4497) { + + yyrg4497 := len(yyv4497) > 0 + yyv24497 := yyv4497 + yyrl4497, yyrt4497 = z.DecInferLen(yyl4497, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4497 { + if yyrl4497 <= cap(yyv4497) { + yyv4497 = yyv4497[:yyrl4497] + } else { + yyv4497 = make([]ServicePort, yyrl4497) + } + } else { + yyv4497 = make([]ServicePort, yyrl4497) + } + yyc4497 = true + yyrr4497 = len(yyv4497) + if yyrg4497 { + copy(yyv4497, yyv24497) + } + } else if yyl4497 != len(yyv4497) { + yyv4497 = yyv4497[:yyl4497] + yyc4497 = true + } + yyj4497 := 0 + for ; yyj4497 < yyrr4497; yyj4497++ { + yyh4497.ElemContainerState(yyj4497) + if r.TryDecodeAsNil() { + yyv4497[yyj4497] = ServicePort{} + } else { + yyv4498 := &yyv4497[yyj4497] + yyv4498.CodecDecodeSelf(d) + } + + } + if yyrt4497 { + for ; yyj4497 < yyl4497; yyj4497++ { + yyv4497 = append(yyv4497, ServicePort{}) + yyh4497.ElemContainerState(yyj4497) + if r.TryDecodeAsNil() { + yyv4497[yyj4497] = ServicePort{} + } else { + yyv4499 := &yyv4497[yyj4497] + yyv4499.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4497 := 0 + for ; !r.CheckBreak(); yyj4497++ { + + if yyj4497 >= len(yyv4497) { + yyv4497 = append(yyv4497, ServicePort{}) // var yyz4497 ServicePort + yyc4497 = true + } + yyh4497.ElemContainerState(yyj4497) + if yyj4497 < len(yyv4497) { + if r.TryDecodeAsNil() { + yyv4497[yyj4497] = ServicePort{} + } else { + yyv4500 := &yyv4497[yyj4497] + yyv4500.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4497 < len(yyv4497) { + yyv4497 = yyv4497[:yyj4497] + yyc4497 = true + } else if yyj4497 == 0 && yyv4497 == nil { + yyv4497 = []ServicePort{} + yyc4497 = true + } + } + yyh4497.End() + if yyc4497 { + *v = yyv4497 + } +} + +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 _, yyv4501 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4502 := &yyv4501 + yy4502.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 + + yyv4503 := *v + yyh4503, yyl4503 := z.DecSliceHelperStart() + var yyc4503 bool + if yyl4503 == 0 { + if yyv4503 == nil { + yyv4503 = []Service{} + yyc4503 = true + } else if len(yyv4503) != 0 { + yyv4503 = yyv4503[:0] + yyc4503 = true + } + } else if yyl4503 > 0 { + var yyrr4503, yyrl4503 int + var yyrt4503 bool + if yyl4503 > cap(yyv4503) { + + yyrg4503 := len(yyv4503) > 0 + yyv24503 := yyv4503 + yyrl4503, yyrt4503 = z.DecInferLen(yyl4503, z.DecBasicHandle().MaxInitLen, 432) + if yyrt4503 { + if yyrl4503 <= cap(yyv4503) { + yyv4503 = yyv4503[:yyrl4503] + } else { + yyv4503 = make([]Service, yyrl4503) + } + } else { + yyv4503 = make([]Service, yyrl4503) + } + yyc4503 = true + yyrr4503 = len(yyv4503) + if yyrg4503 { + copy(yyv4503, yyv24503) + } + } else if yyl4503 != len(yyv4503) { + yyv4503 = yyv4503[:yyl4503] + yyc4503 = true + } + yyj4503 := 0 + for ; yyj4503 < yyrr4503; yyj4503++ { + yyh4503.ElemContainerState(yyj4503) + if r.TryDecodeAsNil() { + yyv4503[yyj4503] = Service{} + } else { + yyv4504 := &yyv4503[yyj4503] + yyv4504.CodecDecodeSelf(d) + } + + } + if yyrt4503 { + for ; yyj4503 < yyl4503; yyj4503++ { + yyv4503 = append(yyv4503, Service{}) + yyh4503.ElemContainerState(yyj4503) + if r.TryDecodeAsNil() { + yyv4503[yyj4503] = Service{} + } else { + yyv4505 := &yyv4503[yyj4503] + yyv4505.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4503 := 0 + for ; !r.CheckBreak(); yyj4503++ { + + if yyj4503 >= len(yyv4503) { + yyv4503 = append(yyv4503, Service{}) // var yyz4503 Service + yyc4503 = true + } + yyh4503.ElemContainerState(yyj4503) + if yyj4503 < len(yyv4503) { + if r.TryDecodeAsNil() { + yyv4503[yyj4503] = Service{} + } else { + yyv4506 := &yyv4503[yyj4503] + yyv4506.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4503 < len(yyv4503) { + yyv4503 = yyv4503[:yyj4503] + yyc4503 = true + } else if yyj4503 == 0 && yyv4503 == nil { + yyv4503 = []Service{} + yyc4503 = true + } + } + yyh4503.End() + if yyc4503 { + *v = yyv4503 + } +} + +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 _, yyv4507 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4508 := &yyv4507 + yy4508.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 + + yyv4509 := *v + yyh4509, yyl4509 := z.DecSliceHelperStart() + var yyc4509 bool + if yyl4509 == 0 { + if yyv4509 == nil { + yyv4509 = []ObjectReference{} + yyc4509 = true + } else if len(yyv4509) != 0 { + yyv4509 = yyv4509[:0] + yyc4509 = true + } + } else if yyl4509 > 0 { + var yyrr4509, yyrl4509 int + var yyrt4509 bool + if yyl4509 > cap(yyv4509) { + + yyrg4509 := len(yyv4509) > 0 + yyv24509 := yyv4509 + yyrl4509, yyrt4509 = z.DecInferLen(yyl4509, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4509 { + if yyrl4509 <= cap(yyv4509) { + yyv4509 = yyv4509[:yyrl4509] + } else { + yyv4509 = make([]ObjectReference, yyrl4509) + } + } else { + yyv4509 = make([]ObjectReference, yyrl4509) + } + yyc4509 = true + yyrr4509 = len(yyv4509) + if yyrg4509 { + copy(yyv4509, yyv24509) + } + } else if yyl4509 != len(yyv4509) { + yyv4509 = yyv4509[:yyl4509] + yyc4509 = true + } + yyj4509 := 0 + for ; yyj4509 < yyrr4509; yyj4509++ { + yyh4509.ElemContainerState(yyj4509) + if r.TryDecodeAsNil() { + yyv4509[yyj4509] = ObjectReference{} + } else { + yyv4510 := &yyv4509[yyj4509] + yyv4510.CodecDecodeSelf(d) + } + + } + if yyrt4509 { + for ; yyj4509 < yyl4509; yyj4509++ { + yyv4509 = append(yyv4509, ObjectReference{}) + yyh4509.ElemContainerState(yyj4509) + if r.TryDecodeAsNil() { + yyv4509[yyj4509] = ObjectReference{} + } else { + yyv4511 := &yyv4509[yyj4509] + yyv4511.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4509 := 0 + for ; !r.CheckBreak(); yyj4509++ { + + if yyj4509 >= len(yyv4509) { + yyv4509 = append(yyv4509, ObjectReference{}) // var yyz4509 ObjectReference + yyc4509 = true + } + yyh4509.ElemContainerState(yyj4509) + if yyj4509 < len(yyv4509) { + if r.TryDecodeAsNil() { + yyv4509[yyj4509] = ObjectReference{} + } else { + yyv4512 := &yyv4509[yyj4509] + yyv4512.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4509 < len(yyv4509) { + yyv4509 = yyv4509[:yyj4509] + yyc4509 = true + } else if yyj4509 == 0 && yyv4509 == nil { + yyv4509 = []ObjectReference{} + yyc4509 = true + } + } + yyh4509.End() + if yyc4509 { + *v = yyv4509 + } +} + +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 _, yyv4513 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4514 := &yyv4513 + yy4514.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 + + yyv4515 := *v + yyh4515, yyl4515 := z.DecSliceHelperStart() + var yyc4515 bool + if yyl4515 == 0 { + if yyv4515 == nil { + yyv4515 = []ServiceAccount{} + yyc4515 = true + } else if len(yyv4515) != 0 { + yyv4515 = yyv4515[:0] + yyc4515 = true + } + } else if yyl4515 > 0 { + var yyrr4515, yyrl4515 int + var yyrt4515 bool + if yyl4515 > cap(yyv4515) { + + yyrg4515 := len(yyv4515) > 0 + yyv24515 := yyv4515 + yyrl4515, yyrt4515 = z.DecInferLen(yyl4515, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4515 { + if yyrl4515 <= cap(yyv4515) { + yyv4515 = yyv4515[:yyrl4515] + } else { + yyv4515 = make([]ServiceAccount, yyrl4515) + } + } else { + yyv4515 = make([]ServiceAccount, yyrl4515) + } + yyc4515 = true + yyrr4515 = len(yyv4515) + if yyrg4515 { + copy(yyv4515, yyv24515) + } + } else if yyl4515 != len(yyv4515) { + yyv4515 = yyv4515[:yyl4515] + yyc4515 = true + } + yyj4515 := 0 + for ; yyj4515 < yyrr4515; yyj4515++ { + yyh4515.ElemContainerState(yyj4515) + if r.TryDecodeAsNil() { + yyv4515[yyj4515] = ServiceAccount{} + } else { + yyv4516 := &yyv4515[yyj4515] + yyv4516.CodecDecodeSelf(d) + } + + } + if yyrt4515 { + for ; yyj4515 < yyl4515; yyj4515++ { + yyv4515 = append(yyv4515, ServiceAccount{}) + yyh4515.ElemContainerState(yyj4515) + if r.TryDecodeAsNil() { + yyv4515[yyj4515] = ServiceAccount{} + } else { + yyv4517 := &yyv4515[yyj4515] + yyv4517.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4515 := 0 + for ; !r.CheckBreak(); yyj4515++ { + + if yyj4515 >= len(yyv4515) { + yyv4515 = append(yyv4515, ServiceAccount{}) // var yyz4515 ServiceAccount + yyc4515 = true + } + yyh4515.ElemContainerState(yyj4515) + if yyj4515 < len(yyv4515) { + if r.TryDecodeAsNil() { + yyv4515[yyj4515] = ServiceAccount{} + } else { + yyv4518 := &yyv4515[yyj4515] + yyv4518.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4515 < len(yyv4515) { + yyv4515 = yyv4515[:yyj4515] + yyc4515 = true + } else if yyj4515 == 0 && yyv4515 == nil { + yyv4515 = []ServiceAccount{} + yyc4515 = true + } + } + yyh4515.End() + if yyc4515 { + *v = yyv4515 + } +} + +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 _, yyv4519 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4520 := &yyv4519 + yy4520.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 + + yyv4521 := *v + yyh4521, yyl4521 := z.DecSliceHelperStart() + var yyc4521 bool + if yyl4521 == 0 { + if yyv4521 == nil { + yyv4521 = []EndpointSubset{} + yyc4521 = true + } else if len(yyv4521) != 0 { + yyv4521 = yyv4521[:0] + yyc4521 = true + } + } else if yyl4521 > 0 { + var yyrr4521, yyrl4521 int + var yyrt4521 bool + if yyl4521 > cap(yyv4521) { + + yyrg4521 := len(yyv4521) > 0 + yyv24521 := yyv4521 + yyrl4521, yyrt4521 = z.DecInferLen(yyl4521, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4521 { + if yyrl4521 <= cap(yyv4521) { + yyv4521 = yyv4521[:yyrl4521] + } else { + yyv4521 = make([]EndpointSubset, yyrl4521) + } + } else { + yyv4521 = make([]EndpointSubset, yyrl4521) + } + yyc4521 = true + yyrr4521 = len(yyv4521) + if yyrg4521 { + copy(yyv4521, yyv24521) + } + } else if yyl4521 != len(yyv4521) { + yyv4521 = yyv4521[:yyl4521] + yyc4521 = true + } + yyj4521 := 0 + for ; yyj4521 < yyrr4521; yyj4521++ { + yyh4521.ElemContainerState(yyj4521) + if r.TryDecodeAsNil() { + yyv4521[yyj4521] = EndpointSubset{} + } else { + yyv4522 := &yyv4521[yyj4521] + yyv4522.CodecDecodeSelf(d) + } + + } + if yyrt4521 { + for ; yyj4521 < yyl4521; yyj4521++ { + yyv4521 = append(yyv4521, EndpointSubset{}) + yyh4521.ElemContainerState(yyj4521) + if r.TryDecodeAsNil() { + yyv4521[yyj4521] = EndpointSubset{} + } else { + yyv4523 := &yyv4521[yyj4521] + yyv4523.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4521 := 0 + for ; !r.CheckBreak(); yyj4521++ { + + if yyj4521 >= len(yyv4521) { + yyv4521 = append(yyv4521, EndpointSubset{}) // var yyz4521 EndpointSubset + yyc4521 = true + } + yyh4521.ElemContainerState(yyj4521) + if yyj4521 < len(yyv4521) { + if r.TryDecodeAsNil() { + yyv4521[yyj4521] = EndpointSubset{} + } else { + yyv4524 := &yyv4521[yyj4521] + yyv4524.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4521 < len(yyv4521) { + yyv4521 = yyv4521[:yyj4521] + yyc4521 = true + } else if yyj4521 == 0 && yyv4521 == nil { + yyv4521 = []EndpointSubset{} + yyc4521 = true + } + } + yyh4521.End() + if yyc4521 { + *v = yyv4521 + } +} + +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 _, yyv4525 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4526 := &yyv4525 + yy4526.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 + + yyv4527 := *v + yyh4527, yyl4527 := z.DecSliceHelperStart() + var yyc4527 bool + if yyl4527 == 0 { + if yyv4527 == nil { + yyv4527 = []EndpointAddress{} + yyc4527 = true + } else if len(yyv4527) != 0 { + yyv4527 = yyv4527[:0] + yyc4527 = true + } + } else if yyl4527 > 0 { + var yyrr4527, yyrl4527 int + var yyrt4527 bool + if yyl4527 > cap(yyv4527) { + + yyrg4527 := len(yyv4527) > 0 + yyv24527 := yyv4527 + yyrl4527, yyrt4527 = z.DecInferLen(yyl4527, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4527 { + if yyrl4527 <= cap(yyv4527) { + yyv4527 = yyv4527[:yyrl4527] + } else { + yyv4527 = make([]EndpointAddress, yyrl4527) + } + } else { + yyv4527 = make([]EndpointAddress, yyrl4527) + } + yyc4527 = true + yyrr4527 = len(yyv4527) + if yyrg4527 { + copy(yyv4527, yyv24527) + } + } else if yyl4527 != len(yyv4527) { + yyv4527 = yyv4527[:yyl4527] + yyc4527 = true + } + yyj4527 := 0 + for ; yyj4527 < yyrr4527; yyj4527++ { + yyh4527.ElemContainerState(yyj4527) + if r.TryDecodeAsNil() { + yyv4527[yyj4527] = EndpointAddress{} + } else { + yyv4528 := &yyv4527[yyj4527] + yyv4528.CodecDecodeSelf(d) + } + + } + if yyrt4527 { + for ; yyj4527 < yyl4527; yyj4527++ { + yyv4527 = append(yyv4527, EndpointAddress{}) + yyh4527.ElemContainerState(yyj4527) + if r.TryDecodeAsNil() { + yyv4527[yyj4527] = EndpointAddress{} + } else { + yyv4529 := &yyv4527[yyj4527] + yyv4529.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4527 := 0 + for ; !r.CheckBreak(); yyj4527++ { + + if yyj4527 >= len(yyv4527) { + yyv4527 = append(yyv4527, EndpointAddress{}) // var yyz4527 EndpointAddress + yyc4527 = true + } + yyh4527.ElemContainerState(yyj4527) + if yyj4527 < len(yyv4527) { + if r.TryDecodeAsNil() { + yyv4527[yyj4527] = EndpointAddress{} + } else { + yyv4530 := &yyv4527[yyj4527] + yyv4530.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4527 < len(yyv4527) { + yyv4527 = yyv4527[:yyj4527] + yyc4527 = true + } else if yyj4527 == 0 && yyv4527 == nil { + yyv4527 = []EndpointAddress{} + yyc4527 = true + } + } + yyh4527.End() + if yyc4527 { + *v = yyv4527 + } +} + +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 _, yyv4531 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4532 := &yyv4531 + yy4532.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 + + yyv4533 := *v + yyh4533, yyl4533 := z.DecSliceHelperStart() + var yyc4533 bool + if yyl4533 == 0 { + if yyv4533 == nil { + yyv4533 = []EndpointPort{} + yyc4533 = true + } else if len(yyv4533) != 0 { + yyv4533 = yyv4533[:0] + yyc4533 = true + } + } else if yyl4533 > 0 { + var yyrr4533, yyrl4533 int + var yyrt4533 bool + if yyl4533 > cap(yyv4533) { + + yyrg4533 := len(yyv4533) > 0 + yyv24533 := yyv4533 + yyrl4533, yyrt4533 = z.DecInferLen(yyl4533, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4533 { + if yyrl4533 <= cap(yyv4533) { + yyv4533 = yyv4533[:yyrl4533] + } else { + yyv4533 = make([]EndpointPort, yyrl4533) + } + } else { + yyv4533 = make([]EndpointPort, yyrl4533) + } + yyc4533 = true + yyrr4533 = len(yyv4533) + if yyrg4533 { + copy(yyv4533, yyv24533) + } + } else if yyl4533 != len(yyv4533) { + yyv4533 = yyv4533[:yyl4533] + yyc4533 = true + } + yyj4533 := 0 + for ; yyj4533 < yyrr4533; yyj4533++ { + yyh4533.ElemContainerState(yyj4533) + if r.TryDecodeAsNil() { + yyv4533[yyj4533] = EndpointPort{} + } else { + yyv4534 := &yyv4533[yyj4533] + yyv4534.CodecDecodeSelf(d) + } + + } + if yyrt4533 { + for ; yyj4533 < yyl4533; yyj4533++ { + yyv4533 = append(yyv4533, EndpointPort{}) + yyh4533.ElemContainerState(yyj4533) + if r.TryDecodeAsNil() { + yyv4533[yyj4533] = EndpointPort{} + } else { + yyv4535 := &yyv4533[yyj4533] + yyv4535.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4533 := 0 + for ; !r.CheckBreak(); yyj4533++ { + + if yyj4533 >= len(yyv4533) { + yyv4533 = append(yyv4533, EndpointPort{}) // var yyz4533 EndpointPort + yyc4533 = true + } + yyh4533.ElemContainerState(yyj4533) + if yyj4533 < len(yyv4533) { + if r.TryDecodeAsNil() { + yyv4533[yyj4533] = EndpointPort{} + } else { + yyv4536 := &yyv4533[yyj4533] + yyv4536.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4533 < len(yyv4533) { + yyv4533 = yyv4533[:yyj4533] + yyc4533 = true + } else if yyj4533 == 0 && yyv4533 == nil { + yyv4533 = []EndpointPort{} + yyc4533 = true + } + } + yyh4533.End() + if yyc4533 { + *v = yyv4533 + } +} + +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 _, yyv4537 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4538 := &yyv4537 + yy4538.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 + + yyv4539 := *v + yyh4539, yyl4539 := z.DecSliceHelperStart() + var yyc4539 bool + if yyl4539 == 0 { + if yyv4539 == nil { + yyv4539 = []Endpoints{} + yyc4539 = true + } else if len(yyv4539) != 0 { + yyv4539 = yyv4539[:0] + yyc4539 = true + } + } else if yyl4539 > 0 { + var yyrr4539, yyrl4539 int + var yyrt4539 bool + if yyl4539 > cap(yyv4539) { + + yyrg4539 := len(yyv4539) > 0 + yyv24539 := yyv4539 + yyrl4539, yyrt4539 = z.DecInferLen(yyl4539, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4539 { + if yyrl4539 <= cap(yyv4539) { + yyv4539 = yyv4539[:yyrl4539] + } else { + yyv4539 = make([]Endpoints, yyrl4539) + } + } else { + yyv4539 = make([]Endpoints, yyrl4539) + } + yyc4539 = true + yyrr4539 = len(yyv4539) + if yyrg4539 { + copy(yyv4539, yyv24539) + } + } else if yyl4539 != len(yyv4539) { + yyv4539 = yyv4539[:yyl4539] + yyc4539 = true + } + yyj4539 := 0 + for ; yyj4539 < yyrr4539; yyj4539++ { + yyh4539.ElemContainerState(yyj4539) + if r.TryDecodeAsNil() { + yyv4539[yyj4539] = Endpoints{} + } else { + yyv4540 := &yyv4539[yyj4539] + yyv4540.CodecDecodeSelf(d) + } + + } + if yyrt4539 { + for ; yyj4539 < yyl4539; yyj4539++ { + yyv4539 = append(yyv4539, Endpoints{}) + yyh4539.ElemContainerState(yyj4539) + if r.TryDecodeAsNil() { + yyv4539[yyj4539] = Endpoints{} + } else { + yyv4541 := &yyv4539[yyj4539] + yyv4541.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4539 := 0 + for ; !r.CheckBreak(); yyj4539++ { + + if yyj4539 >= len(yyv4539) { + yyv4539 = append(yyv4539, Endpoints{}) // var yyz4539 Endpoints + yyc4539 = true + } + yyh4539.ElemContainerState(yyj4539) + if yyj4539 < len(yyv4539) { + if r.TryDecodeAsNil() { + yyv4539[yyj4539] = Endpoints{} + } else { + yyv4542 := &yyv4539[yyj4539] + yyv4542.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4539 < len(yyv4539) { + yyv4539 = yyv4539[:yyj4539] + yyc4539 = true + } else if yyj4539 == 0 && yyv4539 == nil { + yyv4539 = []Endpoints{} + yyc4539 = true + } + } + yyh4539.End() + if yyc4539 { + *v = yyv4539 + } +} + +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 _, yyv4543 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4544 := &yyv4543 + yy4544.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 + + yyv4545 := *v + yyh4545, yyl4545 := z.DecSliceHelperStart() + var yyc4545 bool + if yyl4545 == 0 { + if yyv4545 == nil { + yyv4545 = []NodeCondition{} + yyc4545 = true + } else if len(yyv4545) != 0 { + yyv4545 = yyv4545[:0] + yyc4545 = true + } + } else if yyl4545 > 0 { + var yyrr4545, yyrl4545 int + var yyrt4545 bool + if yyl4545 > cap(yyv4545) { + + yyrg4545 := len(yyv4545) > 0 + yyv24545 := yyv4545 + yyrl4545, yyrt4545 = z.DecInferLen(yyl4545, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4545 { + if yyrl4545 <= cap(yyv4545) { + yyv4545 = yyv4545[:yyrl4545] + } else { + yyv4545 = make([]NodeCondition, yyrl4545) + } + } else { + yyv4545 = make([]NodeCondition, yyrl4545) + } + yyc4545 = true + yyrr4545 = len(yyv4545) + if yyrg4545 { + copy(yyv4545, yyv24545) + } + } else if yyl4545 != len(yyv4545) { + yyv4545 = yyv4545[:yyl4545] + yyc4545 = true + } + yyj4545 := 0 + for ; yyj4545 < yyrr4545; yyj4545++ { + yyh4545.ElemContainerState(yyj4545) + if r.TryDecodeAsNil() { + yyv4545[yyj4545] = NodeCondition{} + } else { + yyv4546 := &yyv4545[yyj4545] + yyv4546.CodecDecodeSelf(d) + } + + } + if yyrt4545 { + for ; yyj4545 < yyl4545; yyj4545++ { + yyv4545 = append(yyv4545, NodeCondition{}) + yyh4545.ElemContainerState(yyj4545) + if r.TryDecodeAsNil() { + yyv4545[yyj4545] = NodeCondition{} + } else { + yyv4547 := &yyv4545[yyj4545] + yyv4547.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4545 := 0 + for ; !r.CheckBreak(); yyj4545++ { + + if yyj4545 >= len(yyv4545) { + yyv4545 = append(yyv4545, NodeCondition{}) // var yyz4545 NodeCondition + yyc4545 = true + } + yyh4545.ElemContainerState(yyj4545) + if yyj4545 < len(yyv4545) { + if r.TryDecodeAsNil() { + yyv4545[yyj4545] = NodeCondition{} + } else { + yyv4548 := &yyv4545[yyj4545] + yyv4548.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4545 < len(yyv4545) { + yyv4545 = yyv4545[:yyj4545] + yyc4545 = true + } else if yyj4545 == 0 && yyv4545 == nil { + yyv4545 = []NodeCondition{} + yyc4545 = true + } + } + yyh4545.End() + if yyc4545 { + *v = yyv4545 + } +} + +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 _, yyv4549 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4550 := &yyv4549 + yy4550.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 + + yyv4551 := *v + yyh4551, yyl4551 := z.DecSliceHelperStart() + var yyc4551 bool + if yyl4551 == 0 { + if yyv4551 == nil { + yyv4551 = []NodeAddress{} + yyc4551 = true + } else if len(yyv4551) != 0 { + yyv4551 = yyv4551[:0] + yyc4551 = true + } + } else if yyl4551 > 0 { + var yyrr4551, yyrl4551 int + var yyrt4551 bool + if yyl4551 > cap(yyv4551) { + + yyrg4551 := len(yyv4551) > 0 + yyv24551 := yyv4551 + yyrl4551, yyrt4551 = z.DecInferLen(yyl4551, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4551 { + if yyrl4551 <= cap(yyv4551) { + yyv4551 = yyv4551[:yyrl4551] + } else { + yyv4551 = make([]NodeAddress, yyrl4551) + } + } else { + yyv4551 = make([]NodeAddress, yyrl4551) + } + yyc4551 = true + yyrr4551 = len(yyv4551) + if yyrg4551 { + copy(yyv4551, yyv24551) + } + } else if yyl4551 != len(yyv4551) { + yyv4551 = yyv4551[:yyl4551] + yyc4551 = true + } + yyj4551 := 0 + for ; yyj4551 < yyrr4551; yyj4551++ { + yyh4551.ElemContainerState(yyj4551) + if r.TryDecodeAsNil() { + yyv4551[yyj4551] = NodeAddress{} + } else { + yyv4552 := &yyv4551[yyj4551] + yyv4552.CodecDecodeSelf(d) + } + + } + if yyrt4551 { + for ; yyj4551 < yyl4551; yyj4551++ { + yyv4551 = append(yyv4551, NodeAddress{}) + yyh4551.ElemContainerState(yyj4551) + if r.TryDecodeAsNil() { + yyv4551[yyj4551] = NodeAddress{} + } else { + yyv4553 := &yyv4551[yyj4551] + yyv4553.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4551 := 0 + for ; !r.CheckBreak(); yyj4551++ { + + if yyj4551 >= len(yyv4551) { + yyv4551 = append(yyv4551, NodeAddress{}) // var yyz4551 NodeAddress + yyc4551 = true + } + yyh4551.ElemContainerState(yyj4551) + if yyj4551 < len(yyv4551) { + if r.TryDecodeAsNil() { + yyv4551[yyj4551] = NodeAddress{} + } else { + yyv4554 := &yyv4551[yyj4551] + yyv4554.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4551 < len(yyv4551) { + yyv4551 = yyv4551[:yyj4551] + yyc4551 = true + } else if yyj4551 == 0 && yyv4551 == nil { + yyv4551 = []NodeAddress{} + yyc4551 = true + } + } + yyh4551.End() + if yyc4551 { + *v = yyv4551 + } +} + +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 _, yyv4555 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4556 := &yyv4555 + yy4556.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 + + yyv4557 := *v + yyh4557, yyl4557 := z.DecSliceHelperStart() + var yyc4557 bool + if yyl4557 == 0 { + if yyv4557 == nil { + yyv4557 = []ContainerImage{} + yyc4557 = true + } else if len(yyv4557) != 0 { + yyv4557 = yyv4557[:0] + yyc4557 = true + } + } else if yyl4557 > 0 { + var yyrr4557, yyrl4557 int + var yyrt4557 bool + if yyl4557 > cap(yyv4557) { + + yyrg4557 := len(yyv4557) > 0 + yyv24557 := yyv4557 + yyrl4557, yyrt4557 = z.DecInferLen(yyl4557, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4557 { + if yyrl4557 <= cap(yyv4557) { + yyv4557 = yyv4557[:yyrl4557] + } else { + yyv4557 = make([]ContainerImage, yyrl4557) + } + } else { + yyv4557 = make([]ContainerImage, yyrl4557) + } + yyc4557 = true + yyrr4557 = len(yyv4557) + if yyrg4557 { + copy(yyv4557, yyv24557) + } + } else if yyl4557 != len(yyv4557) { + yyv4557 = yyv4557[:yyl4557] + yyc4557 = true + } + yyj4557 := 0 + for ; yyj4557 < yyrr4557; yyj4557++ { + yyh4557.ElemContainerState(yyj4557) + if r.TryDecodeAsNil() { + yyv4557[yyj4557] = ContainerImage{} + } else { + yyv4558 := &yyv4557[yyj4557] + yyv4558.CodecDecodeSelf(d) + } + + } + if yyrt4557 { + for ; yyj4557 < yyl4557; yyj4557++ { + yyv4557 = append(yyv4557, ContainerImage{}) + yyh4557.ElemContainerState(yyj4557) + if r.TryDecodeAsNil() { + yyv4557[yyj4557] = ContainerImage{} + } else { + yyv4559 := &yyv4557[yyj4557] + yyv4559.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4557 := 0 + for ; !r.CheckBreak(); yyj4557++ { + + if yyj4557 >= len(yyv4557) { + yyv4557 = append(yyv4557, ContainerImage{}) // var yyz4557 ContainerImage + yyc4557 = true + } + yyh4557.ElemContainerState(yyj4557) + if yyj4557 < len(yyv4557) { + if r.TryDecodeAsNil() { + yyv4557[yyj4557] = ContainerImage{} + } else { + yyv4560 := &yyv4557[yyj4557] + yyv4560.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4557 < len(yyv4557) { + yyv4557 = yyv4557[:yyj4557] + yyc4557 = true + } else if yyj4557 == 0 && yyv4557 == nil { + yyv4557 = []ContainerImage{} + yyc4557 = true + } + } + yyh4557.End() + if yyc4557 { + *v = yyv4557 + } +} + +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 _, yyv4561 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4561.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 + + yyv4562 := *v + yyh4562, yyl4562 := z.DecSliceHelperStart() + var yyc4562 bool + if yyl4562 == 0 { + if yyv4562 == nil { + yyv4562 = []UniqueVolumeName{} + yyc4562 = true + } else if len(yyv4562) != 0 { + yyv4562 = yyv4562[:0] + yyc4562 = true + } + } else if yyl4562 > 0 { + var yyrr4562, yyrl4562 int + var yyrt4562 bool + if yyl4562 > cap(yyv4562) { + + yyrl4562, yyrt4562 = z.DecInferLen(yyl4562, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4562 { + if yyrl4562 <= cap(yyv4562) { + yyv4562 = yyv4562[:yyrl4562] + } else { + yyv4562 = make([]UniqueVolumeName, yyrl4562) + } + } else { + yyv4562 = make([]UniqueVolumeName, yyrl4562) + } + yyc4562 = true + yyrr4562 = len(yyv4562) + } else if yyl4562 != len(yyv4562) { + yyv4562 = yyv4562[:yyl4562] + yyc4562 = true + } + yyj4562 := 0 + for ; yyj4562 < yyrr4562; yyj4562++ { + yyh4562.ElemContainerState(yyj4562) + if r.TryDecodeAsNil() { + yyv4562[yyj4562] = "" + } else { + yyv4562[yyj4562] = UniqueVolumeName(r.DecodeString()) + } + + } + if yyrt4562 { + for ; yyj4562 < yyl4562; yyj4562++ { + yyv4562 = append(yyv4562, "") + yyh4562.ElemContainerState(yyj4562) + if r.TryDecodeAsNil() { + yyv4562[yyj4562] = "" + } else { + yyv4562[yyj4562] = UniqueVolumeName(r.DecodeString()) + } + + } + } + + } else { + yyj4562 := 0 + for ; !r.CheckBreak(); yyj4562++ { + + if yyj4562 >= len(yyv4562) { + yyv4562 = append(yyv4562, "") // var yyz4562 UniqueVolumeName + yyc4562 = true + } + yyh4562.ElemContainerState(yyj4562) + if yyj4562 < len(yyv4562) { + if r.TryDecodeAsNil() { + yyv4562[yyj4562] = "" + } else { + yyv4562[yyj4562] = UniqueVolumeName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4562 < len(yyv4562) { + yyv4562 = yyv4562[:yyj4562] + yyc4562 = true + } else if yyj4562 == 0 && yyv4562 == nil { + yyv4562 = []UniqueVolumeName{} + yyc4562 = true + } + } + yyh4562.End() + if yyc4562 { + *v = yyv4562 + } +} + +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 _, yyv4566 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4567 := &yyv4566 + yy4567.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 + + yyv4568 := *v + yyh4568, yyl4568 := z.DecSliceHelperStart() + var yyc4568 bool + if yyl4568 == 0 { + if yyv4568 == nil { + yyv4568 = []AttachedVolume{} + 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) { + + yyrg4568 := len(yyv4568) > 0 + yyv24568 := yyv4568 + yyrl4568, yyrt4568 = z.DecInferLen(yyl4568, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4568 { + if yyrl4568 <= cap(yyv4568) { + yyv4568 = yyv4568[:yyrl4568] + } else { + yyv4568 = make([]AttachedVolume, yyrl4568) + } + } else { + yyv4568 = make([]AttachedVolume, yyrl4568) + } + yyc4568 = true + yyrr4568 = len(yyv4568) + if yyrg4568 { + copy(yyv4568, yyv24568) + } + } else if yyl4568 != len(yyv4568) { + yyv4568 = yyv4568[:yyl4568] + yyc4568 = true + } + yyj4568 := 0 + for ; yyj4568 < yyrr4568; yyj4568++ { + yyh4568.ElemContainerState(yyj4568) + if r.TryDecodeAsNil() { + yyv4568[yyj4568] = AttachedVolume{} + } else { + yyv4569 := &yyv4568[yyj4568] + yyv4569.CodecDecodeSelf(d) + } + + } + if yyrt4568 { + for ; yyj4568 < yyl4568; yyj4568++ { + yyv4568 = append(yyv4568, AttachedVolume{}) + yyh4568.ElemContainerState(yyj4568) + if r.TryDecodeAsNil() { + yyv4568[yyj4568] = AttachedVolume{} + } else { + yyv4570 := &yyv4568[yyj4568] + yyv4570.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4568 := 0 + for ; !r.CheckBreak(); yyj4568++ { + + if yyj4568 >= len(yyv4568) { + yyv4568 = append(yyv4568, AttachedVolume{}) // var yyz4568 AttachedVolume + yyc4568 = true + } + yyh4568.ElemContainerState(yyj4568) + if yyj4568 < len(yyv4568) { + if r.TryDecodeAsNil() { + yyv4568[yyj4568] = AttachedVolume{} + } else { + yyv4571 := &yyv4568[yyj4568] + yyv4571.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4568 < len(yyv4568) { + yyv4568 = yyv4568[:yyj4568] + yyc4568 = true + } else if yyj4568 == 0 && yyv4568 == nil { + yyv4568 = []AttachedVolume{} + yyc4568 = true + } + } + yyh4568.End() + if yyc4568 { + *v = yyv4568 + } +} + +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 _, yyv4572 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4573 := &yyv4572 + yy4573.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 + + yyv4574 := *v + yyh4574, yyl4574 := z.DecSliceHelperStart() + var yyc4574 bool + if yyl4574 == 0 { + if yyv4574 == nil { + yyv4574 = []PreferAvoidPodsEntry{} + yyc4574 = true + } else if len(yyv4574) != 0 { + yyv4574 = yyv4574[:0] + yyc4574 = true + } + } else if yyl4574 > 0 { + var yyrr4574, yyrl4574 int + var yyrt4574 bool + if yyl4574 > cap(yyv4574) { + + yyrg4574 := len(yyv4574) > 0 + yyv24574 := yyv4574 + yyrl4574, yyrt4574 = z.DecInferLen(yyl4574, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4574 { + if yyrl4574 <= cap(yyv4574) { + yyv4574 = yyv4574[:yyrl4574] + } else { + yyv4574 = make([]PreferAvoidPodsEntry, yyrl4574) + } + } else { + yyv4574 = make([]PreferAvoidPodsEntry, yyrl4574) + } + yyc4574 = true + yyrr4574 = len(yyv4574) + if yyrg4574 { + copy(yyv4574, yyv24574) + } + } else if yyl4574 != len(yyv4574) { + yyv4574 = yyv4574[:yyl4574] + yyc4574 = true + } + yyj4574 := 0 + for ; yyj4574 < yyrr4574; yyj4574++ { + yyh4574.ElemContainerState(yyj4574) + if r.TryDecodeAsNil() { + yyv4574[yyj4574] = PreferAvoidPodsEntry{} + } else { + yyv4575 := &yyv4574[yyj4574] + yyv4575.CodecDecodeSelf(d) + } + + } + if yyrt4574 { + for ; yyj4574 < yyl4574; yyj4574++ { + yyv4574 = append(yyv4574, PreferAvoidPodsEntry{}) + yyh4574.ElemContainerState(yyj4574) + if r.TryDecodeAsNil() { + yyv4574[yyj4574] = PreferAvoidPodsEntry{} + } else { + yyv4576 := &yyv4574[yyj4574] + yyv4576.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4574 := 0 + for ; !r.CheckBreak(); yyj4574++ { + + if yyj4574 >= len(yyv4574) { + yyv4574 = append(yyv4574, PreferAvoidPodsEntry{}) // var yyz4574 PreferAvoidPodsEntry + yyc4574 = true + } + yyh4574.ElemContainerState(yyj4574) + if yyj4574 < len(yyv4574) { + if r.TryDecodeAsNil() { + yyv4574[yyj4574] = PreferAvoidPodsEntry{} + } else { + yyv4577 := &yyv4574[yyj4574] + yyv4577.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4574 < len(yyv4574) { + yyv4574 = yyv4574[:yyj4574] + yyc4574 = true + } else if yyj4574 == 0 && yyv4574 == nil { + yyv4574 = []PreferAvoidPodsEntry{} + yyc4574 = true + } + } + yyh4574.End() + if yyc4574 { + *v = yyv4574 + } +} + +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 yyk4578, yyv4578 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yyk4578.CodecEncodeSelf(e) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4579 := &yyv4578 + yym4580 := z.EncBinary() + _ = yym4580 + if false { + } else if z.HasExtensions() && z.EncExt(yy4579) { + } else if !yym4580 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4579) + } else { + z.EncFallback(yy4579) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4581 := *v + yyl4581 := r.ReadMapStart() + yybh4581 := z.DecBasicHandle() + if yyv4581 == nil { + yyrl4581, _ := z.DecInferLen(yyl4581, yybh4581.MaxInitLen, 72) + yyv4581 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4581) + *v = yyv4581 + } + var yymk4581 ResourceName + var yymv4581 pkg3_resource.Quantity + var yymg4581 bool + if yybh4581.MapValueReset { + yymg4581 = true + } + if yyl4581 > 0 { + for yyj4581 := 0; yyj4581 < yyl4581; yyj4581++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4581 = "" + } else { + yymk4581 = ResourceName(r.DecodeString()) + } + + if yymg4581 { + yymv4581 = yyv4581[yymk4581] + } else { + yymv4581 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4581 = pkg3_resource.Quantity{} + } else { + yyv4583 := &yymv4581 + yym4584 := z.DecBinary() + _ = yym4584 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4583) { + } else if !yym4584 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4583) + } else { + z.DecFallback(yyv4583, false) + } + } + + if yyv4581 != nil { + yyv4581[yymk4581] = yymv4581 + } + } + } else if yyl4581 < 0 { + for yyj4581 := 0; !r.CheckBreak(); yyj4581++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4581 = "" + } else { + yymk4581 = ResourceName(r.DecodeString()) + } + + if yymg4581 { + yymv4581 = yyv4581[yymk4581] + } else { + yymv4581 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4581 = pkg3_resource.Quantity{} + } else { + yyv4586 := &yymv4581 + yym4587 := z.DecBinary() + _ = yym4587 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4586) { + } else if !yym4587 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4586) + } else { + z.DecFallback(yyv4586, false) + } + } + + if yyv4581 != nil { + yyv4581[yymk4581] = yymv4581 + } + } + } // 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 _, yyv4588 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4589 := &yyv4588 + yy4589.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 + + yyv4590 := *v + yyh4590, yyl4590 := z.DecSliceHelperStart() + var yyc4590 bool + if yyl4590 == 0 { + if yyv4590 == nil { + yyv4590 = []Node{} + 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, 616) + if yyrt4590 { + if yyrl4590 <= cap(yyv4590) { + yyv4590 = yyv4590[:yyrl4590] + } else { + yyv4590 = make([]Node, yyrl4590) + } + } else { + yyv4590 = make([]Node, 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] = Node{} + } else { + yyv4591 := &yyv4590[yyj4590] + yyv4591.CodecDecodeSelf(d) + } + + } + if yyrt4590 { + for ; yyj4590 < yyl4590; yyj4590++ { + yyv4590 = append(yyv4590, Node{}) + yyh4590.ElemContainerState(yyj4590) + if r.TryDecodeAsNil() { + yyv4590[yyj4590] = Node{} + } else { + yyv4592 := &yyv4590[yyj4590] + yyv4592.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4590 := 0 + for ; !r.CheckBreak(); yyj4590++ { + + if yyj4590 >= len(yyv4590) { + yyv4590 = append(yyv4590, Node{}) // var yyz4590 Node + yyc4590 = true + } + yyh4590.ElemContainerState(yyj4590) + if yyj4590 < len(yyv4590) { + if r.TryDecodeAsNil() { + yyv4590[yyj4590] = Node{} + } 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 = []Node{} + yyc4590 = true + } + } + yyh4590.End() + if yyc4590 { + *v = yyv4590 + } +} + +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 _, yyv4594 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4594.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 + + yyv4595 := *v + yyh4595, yyl4595 := z.DecSliceHelperStart() + var yyc4595 bool + if yyl4595 == 0 { + if yyv4595 == nil { + yyv4595 = []FinalizerName{} + yyc4595 = true + } else if len(yyv4595) != 0 { + yyv4595 = yyv4595[:0] + yyc4595 = true + } + } else if yyl4595 > 0 { + var yyrr4595, yyrl4595 int + var yyrt4595 bool + if yyl4595 > cap(yyv4595) { + + yyrl4595, yyrt4595 = z.DecInferLen(yyl4595, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4595 { + if yyrl4595 <= cap(yyv4595) { + yyv4595 = yyv4595[:yyrl4595] + } else { + yyv4595 = make([]FinalizerName, yyrl4595) + } + } else { + yyv4595 = make([]FinalizerName, yyrl4595) + } + yyc4595 = true + yyrr4595 = len(yyv4595) + } else if yyl4595 != len(yyv4595) { + yyv4595 = yyv4595[:yyl4595] + yyc4595 = true + } + yyj4595 := 0 + for ; yyj4595 < yyrr4595; yyj4595++ { + yyh4595.ElemContainerState(yyj4595) + if r.TryDecodeAsNil() { + yyv4595[yyj4595] = "" + } else { + yyv4595[yyj4595] = FinalizerName(r.DecodeString()) + } + + } + if yyrt4595 { + for ; yyj4595 < yyl4595; yyj4595++ { + yyv4595 = append(yyv4595, "") + yyh4595.ElemContainerState(yyj4595) + if r.TryDecodeAsNil() { + yyv4595[yyj4595] = "" + } else { + yyv4595[yyj4595] = FinalizerName(r.DecodeString()) + } + + } + } + + } else { + yyj4595 := 0 + for ; !r.CheckBreak(); yyj4595++ { + + if yyj4595 >= len(yyv4595) { + yyv4595 = append(yyv4595, "") // var yyz4595 FinalizerName + yyc4595 = true + } + yyh4595.ElemContainerState(yyj4595) + if yyj4595 < len(yyv4595) { + if r.TryDecodeAsNil() { + yyv4595[yyj4595] = "" + } else { + yyv4595[yyj4595] = FinalizerName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4595 < len(yyv4595) { + yyv4595 = yyv4595[:yyj4595] + yyc4595 = true + } else if yyj4595 == 0 && yyv4595 == nil { + yyv4595 = []FinalizerName{} + yyc4595 = true + } + } + yyh4595.End() + if yyc4595 { + *v = yyv4595 + } +} + +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 _, yyv4599 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4600 := &yyv4599 + yy4600.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 + + yyv4601 := *v + yyh4601, yyl4601 := z.DecSliceHelperStart() + var yyc4601 bool + if yyl4601 == 0 { + if yyv4601 == nil { + yyv4601 = []Namespace{} + yyc4601 = true + } else if len(yyv4601) != 0 { + yyv4601 = yyv4601[:0] + yyc4601 = true + } + } else if yyl4601 > 0 { + var yyrr4601, yyrl4601 int + var yyrt4601 bool + if yyl4601 > cap(yyv4601) { + + yyrg4601 := len(yyv4601) > 0 + yyv24601 := yyv4601 + yyrl4601, yyrt4601 = z.DecInferLen(yyl4601, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4601 { + if yyrl4601 <= cap(yyv4601) { + yyv4601 = yyv4601[:yyrl4601] + } else { + yyv4601 = make([]Namespace, yyrl4601) + } + } else { + yyv4601 = make([]Namespace, yyrl4601) + } + yyc4601 = true + yyrr4601 = len(yyv4601) + if yyrg4601 { + copy(yyv4601, yyv24601) + } + } else if yyl4601 != len(yyv4601) { + yyv4601 = yyv4601[:yyl4601] + yyc4601 = true + } + yyj4601 := 0 + for ; yyj4601 < yyrr4601; yyj4601++ { + yyh4601.ElemContainerState(yyj4601) + if r.TryDecodeAsNil() { + yyv4601[yyj4601] = Namespace{} + } else { + yyv4602 := &yyv4601[yyj4601] + yyv4602.CodecDecodeSelf(d) + } + + } + if yyrt4601 { + for ; yyj4601 < yyl4601; yyj4601++ { + yyv4601 = append(yyv4601, Namespace{}) + yyh4601.ElemContainerState(yyj4601) + if r.TryDecodeAsNil() { + yyv4601[yyj4601] = Namespace{} + } else { + yyv4603 := &yyv4601[yyj4601] + yyv4603.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4601 := 0 + for ; !r.CheckBreak(); yyj4601++ { + + if yyj4601 >= len(yyv4601) { + yyv4601 = append(yyv4601, Namespace{}) // var yyz4601 Namespace + yyc4601 = true + } + yyh4601.ElemContainerState(yyj4601) + if yyj4601 < len(yyv4601) { + if r.TryDecodeAsNil() { + yyv4601[yyj4601] = Namespace{} + } else { + yyv4604 := &yyv4601[yyj4601] + yyv4604.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4601 < len(yyv4601) { + yyv4601 = yyv4601[:yyj4601] + yyc4601 = true + } else if yyj4601 == 0 && yyv4601 == nil { + yyv4601 = []Namespace{} + yyc4601 = true + } + } + yyh4601.End() + if yyc4601 { + *v = yyv4601 + } +} + +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 _, yyv4605 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4606 := &yyv4605 + yy4606.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 + + yyv4607 := *v + yyh4607, yyl4607 := z.DecSliceHelperStart() + var yyc4607 bool + if yyl4607 == 0 { + if yyv4607 == nil { + yyv4607 = []Event{} + yyc4607 = true + } else if len(yyv4607) != 0 { + yyv4607 = yyv4607[:0] + yyc4607 = true + } + } else if yyl4607 > 0 { + var yyrr4607, yyrl4607 int + var yyrt4607 bool + if yyl4607 > cap(yyv4607) { + + yyrg4607 := len(yyv4607) > 0 + yyv24607 := yyv4607 + yyrl4607, yyrt4607 = z.DecInferLen(yyl4607, z.DecBasicHandle().MaxInitLen, 488) + if yyrt4607 { + if yyrl4607 <= cap(yyv4607) { + yyv4607 = yyv4607[:yyrl4607] + } else { + yyv4607 = make([]Event, yyrl4607) + } + } else { + yyv4607 = make([]Event, yyrl4607) + } + yyc4607 = true + yyrr4607 = len(yyv4607) + if yyrg4607 { + copy(yyv4607, yyv24607) + } + } else if yyl4607 != len(yyv4607) { + yyv4607 = yyv4607[:yyl4607] + yyc4607 = true + } + yyj4607 := 0 + for ; yyj4607 < yyrr4607; yyj4607++ { + yyh4607.ElemContainerState(yyj4607) + if r.TryDecodeAsNil() { + yyv4607[yyj4607] = Event{} + } else { + yyv4608 := &yyv4607[yyj4607] + yyv4608.CodecDecodeSelf(d) + } + + } + if yyrt4607 { + for ; yyj4607 < yyl4607; yyj4607++ { + yyv4607 = append(yyv4607, Event{}) + yyh4607.ElemContainerState(yyj4607) + if r.TryDecodeAsNil() { + yyv4607[yyj4607] = Event{} + } else { + yyv4609 := &yyv4607[yyj4607] + yyv4609.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4607 := 0 + for ; !r.CheckBreak(); yyj4607++ { + + if yyj4607 >= len(yyv4607) { + yyv4607 = append(yyv4607, Event{}) // var yyz4607 Event + yyc4607 = true + } + yyh4607.ElemContainerState(yyj4607) + if yyj4607 < len(yyv4607) { + if r.TryDecodeAsNil() { + yyv4607[yyj4607] = Event{} + } else { + yyv4610 := &yyv4607[yyj4607] + yyv4610.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4607 < len(yyv4607) { + yyv4607 = yyv4607[:yyj4607] + yyc4607 = true + } else if yyj4607 == 0 && yyv4607 == nil { + yyv4607 = []Event{} + yyc4607 = true + } + } + yyh4607.End() + if yyc4607 { + *v = yyv4607 + } +} + +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 _, yyv4611 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4612 := &yyv4611 + yym4613 := z.EncBinary() + _ = yym4613 + if false { + } else if z.HasExtensions() && z.EncExt(yy4612) { + } else if !yym4613 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4612) + } else { + z.EncFallback(yy4612) + } + } + 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 + + yyv4614 := *v + yyh4614, yyl4614 := z.DecSliceHelperStart() + var yyc4614 bool + if yyl4614 == 0 { + if yyv4614 == nil { + yyv4614 = []pkg5_runtime.RawExtension{} + yyc4614 = true + } else if len(yyv4614) != 0 { + yyv4614 = yyv4614[:0] + yyc4614 = true + } + } else if yyl4614 > 0 { + var yyrr4614, yyrl4614 int + var yyrt4614 bool + if yyl4614 > cap(yyv4614) { + + yyrg4614 := len(yyv4614) > 0 + yyv24614 := yyv4614 + yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4614 { + if yyrl4614 <= cap(yyv4614) { + yyv4614 = yyv4614[:yyrl4614] + } else { + yyv4614 = make([]pkg5_runtime.RawExtension, yyrl4614) + } + } else { + yyv4614 = make([]pkg5_runtime.RawExtension, yyrl4614) + } + yyc4614 = true + yyrr4614 = len(yyv4614) + if yyrg4614 { + copy(yyv4614, yyv24614) + } + } else if yyl4614 != len(yyv4614) { + yyv4614 = yyv4614[:yyl4614] + yyc4614 = true + } + yyj4614 := 0 + for ; yyj4614 < yyrr4614; yyj4614++ { + yyh4614.ElemContainerState(yyj4614) + if r.TryDecodeAsNil() { + yyv4614[yyj4614] = pkg5_runtime.RawExtension{} + } else { + yyv4615 := &yyv4614[yyj4614] + yym4616 := z.DecBinary() + _ = yym4616 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4615) { + } else if !yym4616 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4615) + } else { + z.DecFallback(yyv4615, false) + } + } + + } + if yyrt4614 { + for ; yyj4614 < yyl4614; yyj4614++ { + yyv4614 = append(yyv4614, pkg5_runtime.RawExtension{}) + yyh4614.ElemContainerState(yyj4614) + if r.TryDecodeAsNil() { + yyv4614[yyj4614] = pkg5_runtime.RawExtension{} + } else { + yyv4617 := &yyv4614[yyj4614] + yym4618 := z.DecBinary() + _ = yym4618 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4617) { + } else if !yym4618 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4617) + } else { + z.DecFallback(yyv4617, false) + } + } + + } + } + + } else { + yyj4614 := 0 + for ; !r.CheckBreak(); yyj4614++ { + + if yyj4614 >= len(yyv4614) { + yyv4614 = append(yyv4614, pkg5_runtime.RawExtension{}) // var yyz4614 pkg5_runtime.RawExtension + yyc4614 = true + } + yyh4614.ElemContainerState(yyj4614) + if yyj4614 < len(yyv4614) { + if r.TryDecodeAsNil() { + yyv4614[yyj4614] = pkg5_runtime.RawExtension{} + } else { + yyv4619 := &yyv4614[yyj4614] + yym4620 := z.DecBinary() + _ = yym4620 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4619) { + } else if !yym4620 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4619) + } else { + z.DecFallback(yyv4619, false) + } + } + + } else { + z.DecSwallow() + } + + } + if yyj4614 < len(yyv4614) { + yyv4614 = yyv4614[:yyj4614] + yyc4614 = true + } else if yyj4614 == 0 && yyv4614 == nil { + yyv4614 = []pkg5_runtime.RawExtension{} + yyc4614 = true + } + } + yyh4614.End() + if yyc4614 { + *v = yyv4614 + } +} + +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 _, yyv4621 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4622 := &yyv4621 + yy4622.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 + + yyv4623 := *v + yyh4623, yyl4623 := z.DecSliceHelperStart() + var yyc4623 bool + if yyl4623 == 0 { + if yyv4623 == nil { + yyv4623 = []LimitRangeItem{} + yyc4623 = true + } else if len(yyv4623) != 0 { + yyv4623 = yyv4623[:0] + yyc4623 = true + } + } else if yyl4623 > 0 { + var yyrr4623, yyrl4623 int + var yyrt4623 bool + if yyl4623 > cap(yyv4623) { + + yyrg4623 := len(yyv4623) > 0 + yyv24623 := yyv4623 + yyrl4623, yyrt4623 = z.DecInferLen(yyl4623, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4623 { + if yyrl4623 <= cap(yyv4623) { + yyv4623 = yyv4623[:yyrl4623] + } else { + yyv4623 = make([]LimitRangeItem, yyrl4623) + } + } else { + yyv4623 = make([]LimitRangeItem, yyrl4623) + } + yyc4623 = true + yyrr4623 = len(yyv4623) + if yyrg4623 { + copy(yyv4623, yyv24623) + } + } else if yyl4623 != len(yyv4623) { + yyv4623 = yyv4623[:yyl4623] + yyc4623 = true + } + yyj4623 := 0 + for ; yyj4623 < yyrr4623; yyj4623++ { + yyh4623.ElemContainerState(yyj4623) + if r.TryDecodeAsNil() { + yyv4623[yyj4623] = LimitRangeItem{} + } else { + yyv4624 := &yyv4623[yyj4623] + yyv4624.CodecDecodeSelf(d) + } + + } + if yyrt4623 { + for ; yyj4623 < yyl4623; yyj4623++ { + yyv4623 = append(yyv4623, LimitRangeItem{}) + yyh4623.ElemContainerState(yyj4623) + if r.TryDecodeAsNil() { + yyv4623[yyj4623] = LimitRangeItem{} + } else { + yyv4625 := &yyv4623[yyj4623] + yyv4625.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4623 := 0 + for ; !r.CheckBreak(); yyj4623++ { + + if yyj4623 >= len(yyv4623) { + yyv4623 = append(yyv4623, LimitRangeItem{}) // var yyz4623 LimitRangeItem + yyc4623 = true + } + yyh4623.ElemContainerState(yyj4623) + if yyj4623 < len(yyv4623) { + if r.TryDecodeAsNil() { + yyv4623[yyj4623] = LimitRangeItem{} + } else { + yyv4626 := &yyv4623[yyj4623] + yyv4626.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4623 < len(yyv4623) { + yyv4623 = yyv4623[:yyj4623] + yyc4623 = true + } else if yyj4623 == 0 && yyv4623 == nil { + yyv4623 = []LimitRangeItem{} + yyc4623 = true + } + } + yyh4623.End() + if yyc4623 { + *v = yyv4623 + } +} + +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 _, yyv4627 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4628 := &yyv4627 + yy4628.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 + + yyv4629 := *v + yyh4629, yyl4629 := z.DecSliceHelperStart() + var yyc4629 bool + if yyl4629 == 0 { + if yyv4629 == nil { + yyv4629 = []LimitRange{} + yyc4629 = true + } else if len(yyv4629) != 0 { + yyv4629 = yyv4629[:0] + yyc4629 = true + } + } else if yyl4629 > 0 { + var yyrr4629, yyrl4629 int + var yyrt4629 bool + if yyl4629 > cap(yyv4629) { + + yyrg4629 := len(yyv4629) > 0 + yyv24629 := yyv4629 + yyrl4629, yyrt4629 = z.DecInferLen(yyl4629, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4629 { + if yyrl4629 <= cap(yyv4629) { + yyv4629 = yyv4629[:yyrl4629] + } else { + yyv4629 = make([]LimitRange, yyrl4629) + } + } else { + yyv4629 = make([]LimitRange, yyrl4629) + } + yyc4629 = true + yyrr4629 = len(yyv4629) + if yyrg4629 { + copy(yyv4629, yyv24629) + } + } else if yyl4629 != len(yyv4629) { + yyv4629 = yyv4629[:yyl4629] + yyc4629 = true + } + yyj4629 := 0 + for ; yyj4629 < yyrr4629; yyj4629++ { + yyh4629.ElemContainerState(yyj4629) + if r.TryDecodeAsNil() { + yyv4629[yyj4629] = LimitRange{} + } else { + yyv4630 := &yyv4629[yyj4629] + yyv4630.CodecDecodeSelf(d) + } + + } + if yyrt4629 { + for ; yyj4629 < yyl4629; yyj4629++ { + yyv4629 = append(yyv4629, LimitRange{}) + yyh4629.ElemContainerState(yyj4629) + if r.TryDecodeAsNil() { + yyv4629[yyj4629] = LimitRange{} + } else { + yyv4631 := &yyv4629[yyj4629] + yyv4631.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4629 := 0 + for ; !r.CheckBreak(); yyj4629++ { + + if yyj4629 >= len(yyv4629) { + yyv4629 = append(yyv4629, LimitRange{}) // var yyz4629 LimitRange + yyc4629 = true + } + yyh4629.ElemContainerState(yyj4629) + if yyj4629 < len(yyv4629) { + if r.TryDecodeAsNil() { + yyv4629[yyj4629] = LimitRange{} + } 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 = []LimitRange{} + yyc4629 = true + } + } + yyh4629.End() + if yyc4629 { + *v = yyv4629 + } +} + +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 _, yyv4633 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4633.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 + + yyv4634 := *v + yyh4634, yyl4634 := z.DecSliceHelperStart() + var yyc4634 bool + if yyl4634 == 0 { + if yyv4634 == nil { + yyv4634 = []ResourceQuotaScope{} + yyc4634 = true + } else if len(yyv4634) != 0 { + yyv4634 = yyv4634[:0] + yyc4634 = true + } + } else if yyl4634 > 0 { + var yyrr4634, yyrl4634 int + var yyrt4634 bool + if yyl4634 > cap(yyv4634) { + + yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4634 { + if yyrl4634 <= cap(yyv4634) { + yyv4634 = yyv4634[:yyrl4634] + } else { + yyv4634 = make([]ResourceQuotaScope, yyrl4634) + } + } else { + yyv4634 = make([]ResourceQuotaScope, yyrl4634) + } + yyc4634 = true + yyrr4634 = len(yyv4634) + } else if yyl4634 != len(yyv4634) { + yyv4634 = yyv4634[:yyl4634] + yyc4634 = true + } + yyj4634 := 0 + for ; yyj4634 < yyrr4634; yyj4634++ { + yyh4634.ElemContainerState(yyj4634) + if r.TryDecodeAsNil() { + yyv4634[yyj4634] = "" + } else { + yyv4634[yyj4634] = ResourceQuotaScope(r.DecodeString()) + } + + } + if yyrt4634 { + for ; yyj4634 < yyl4634; yyj4634++ { + yyv4634 = append(yyv4634, "") + yyh4634.ElemContainerState(yyj4634) + if r.TryDecodeAsNil() { + yyv4634[yyj4634] = "" + } else { + yyv4634[yyj4634] = ResourceQuotaScope(r.DecodeString()) + } + + } + } + + } else { + yyj4634 := 0 + for ; !r.CheckBreak(); yyj4634++ { + + if yyj4634 >= len(yyv4634) { + yyv4634 = append(yyv4634, "") // var yyz4634 ResourceQuotaScope + yyc4634 = true + } + yyh4634.ElemContainerState(yyj4634) + if yyj4634 < len(yyv4634) { + if r.TryDecodeAsNil() { + yyv4634[yyj4634] = "" + } else { + yyv4634[yyj4634] = ResourceQuotaScope(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4634 < len(yyv4634) { + yyv4634 = yyv4634[:yyj4634] + yyc4634 = true + } else if yyj4634 == 0 && yyv4634 == nil { + yyv4634 = []ResourceQuotaScope{} + yyc4634 = true + } + } + yyh4634.End() + if yyc4634 { + *v = yyv4634 + } +} + +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 _, yyv4638 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4639 := &yyv4638 + yy4639.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 + + yyv4640 := *v + yyh4640, yyl4640 := z.DecSliceHelperStart() + var yyc4640 bool + if yyl4640 == 0 { + if yyv4640 == nil { + yyv4640 = []ResourceQuota{} + yyc4640 = true + } else if len(yyv4640) != 0 { + yyv4640 = yyv4640[:0] + yyc4640 = true + } + } else if yyl4640 > 0 { + var yyrr4640, yyrl4640 int + var yyrt4640 bool + if yyl4640 > cap(yyv4640) { + + yyrg4640 := len(yyv4640) > 0 + yyv24640 := yyv4640 + yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4640 { + if yyrl4640 <= cap(yyv4640) { + yyv4640 = yyv4640[:yyrl4640] + } else { + yyv4640 = make([]ResourceQuota, yyrl4640) + } + } else { + yyv4640 = make([]ResourceQuota, yyrl4640) + } + yyc4640 = true + yyrr4640 = len(yyv4640) + if yyrg4640 { + copy(yyv4640, yyv24640) + } + } else if yyl4640 != len(yyv4640) { + yyv4640 = yyv4640[:yyl4640] + yyc4640 = true + } + yyj4640 := 0 + for ; yyj4640 < yyrr4640; yyj4640++ { + yyh4640.ElemContainerState(yyj4640) + if r.TryDecodeAsNil() { + yyv4640[yyj4640] = ResourceQuota{} + } else { + yyv4641 := &yyv4640[yyj4640] + yyv4641.CodecDecodeSelf(d) + } + + } + if yyrt4640 { + for ; yyj4640 < yyl4640; yyj4640++ { + yyv4640 = append(yyv4640, ResourceQuota{}) + yyh4640.ElemContainerState(yyj4640) + if r.TryDecodeAsNil() { + yyv4640[yyj4640] = ResourceQuota{} + } else { + yyv4642 := &yyv4640[yyj4640] + yyv4642.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4640 := 0 + for ; !r.CheckBreak(); yyj4640++ { + + if yyj4640 >= len(yyv4640) { + yyv4640 = append(yyv4640, ResourceQuota{}) // var yyz4640 ResourceQuota + yyc4640 = true + } + yyh4640.ElemContainerState(yyj4640) + if yyj4640 < len(yyv4640) { + if r.TryDecodeAsNil() { + yyv4640[yyj4640] = ResourceQuota{} + } else { + yyv4643 := &yyv4640[yyj4640] + yyv4643.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4640 < len(yyv4640) { + yyv4640 = yyv4640[:yyj4640] + yyc4640 = true + } else if yyj4640 == 0 && yyv4640 == nil { + yyv4640 = []ResourceQuota{} + yyc4640 = true + } + } + yyh4640.End() + if yyc4640 { + *v = yyv4640 + } +} + +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 yyk4644, yyv4644 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym4645 := z.EncBinary() + _ = yym4645 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk4644)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyv4644 == nil { + r.EncodeNil() + } else { + yym4646 := z.EncBinary() + _ = yym4646 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4644)) + } + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4647 := *v + yyl4647 := r.ReadMapStart() + yybh4647 := z.DecBasicHandle() + if yyv4647 == nil { + yyrl4647, _ := z.DecInferLen(yyl4647, yybh4647.MaxInitLen, 40) + yyv4647 = make(map[string][]uint8, yyrl4647) + *v = yyv4647 + } + var yymk4647 string + var yymv4647 []uint8 + var yymg4647 bool + if yybh4647.MapValueReset { + yymg4647 = true + } + if yyl4647 > 0 { + for yyj4647 := 0; yyj4647 < yyl4647; yyj4647++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4647 = "" + } else { + yymk4647 = string(r.DecodeString()) + } + + if yymg4647 { + yymv4647 = yyv4647[yymk4647] + } else { + yymv4647 = nil + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4647 = nil + } else { + yyv4649 := &yymv4647 + yym4650 := z.DecBinary() + _ = yym4650 + if false { + } else { + *yyv4649 = r.DecodeBytes(*(*[]byte)(yyv4649), false, false) + } + } + + if yyv4647 != nil { + yyv4647[yymk4647] = yymv4647 + } + } + } else if yyl4647 < 0 { + for yyj4647 := 0; !r.CheckBreak(); yyj4647++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4647 = "" + } else { + yymk4647 = string(r.DecodeString()) + } + + if yymg4647 { + yymv4647 = yyv4647[yymk4647] + } else { + yymv4647 = nil + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4647 = nil + } else { + yyv4652 := &yymv4647 + yym4653 := z.DecBinary() + _ = yym4653 + if false { + } else { + *yyv4652 = r.DecodeBytes(*(*[]byte)(yyv4652), false, false) + } + } + + if yyv4647 != nil { + yyv4647[yymk4647] = yymv4647 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) encSliceSecret(v []Secret, 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) decSliceSecret(v *[]Secret, 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 = []Secret{} + 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, 272) + if yyrt4656 { + if yyrl4656 <= cap(yyv4656) { + yyv4656 = yyv4656[:yyrl4656] + } else { + yyv4656 = make([]Secret, yyrl4656) + } + } else { + yyv4656 = make([]Secret, 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] = Secret{} + } else { + yyv4657 := &yyv4656[yyj4656] + yyv4657.CodecDecodeSelf(d) + } + + } + if yyrt4656 { + for ; yyj4656 < yyl4656; yyj4656++ { + yyv4656 = append(yyv4656, Secret{}) + yyh4656.ElemContainerState(yyj4656) + if r.TryDecodeAsNil() { + yyv4656[yyj4656] = Secret{} + } else { + yyv4658 := &yyv4656[yyj4656] + yyv4658.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4656 := 0 + for ; !r.CheckBreak(); yyj4656++ { + + if yyj4656 >= len(yyv4656) { + yyv4656 = append(yyv4656, Secret{}) // var yyz4656 Secret + yyc4656 = true + } + yyh4656.ElemContainerState(yyj4656) + if yyj4656 < len(yyv4656) { + if r.TryDecodeAsNil() { + yyv4656[yyj4656] = Secret{} + } 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 = []Secret{} + yyc4656 = true + } + } + yyh4656.End() + if yyc4656 { + *v = yyv4656 + } +} + +func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, 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) decSliceConfigMap(v *[]ConfigMap, 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 = []ConfigMap{} + 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, 248) + if yyrt4662 { + if yyrl4662 <= cap(yyv4662) { + yyv4662 = yyv4662[:yyrl4662] + } else { + yyv4662 = make([]ConfigMap, yyrl4662) + } + } else { + yyv4662 = make([]ConfigMap, 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] = ConfigMap{} + } else { + yyv4663 := &yyv4662[yyj4662] + yyv4663.CodecDecodeSelf(d) + } + + } + if yyrt4662 { + for ; yyj4662 < yyl4662; yyj4662++ { + yyv4662 = append(yyv4662, ConfigMap{}) + yyh4662.ElemContainerState(yyj4662) + if r.TryDecodeAsNil() { + yyv4662[yyj4662] = ConfigMap{} + } else { + yyv4664 := &yyv4662[yyj4662] + yyv4664.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4662 := 0 + for ; !r.CheckBreak(); yyj4662++ { + + if yyj4662 >= len(yyv4662) { + yyv4662 = append(yyv4662, ConfigMap{}) // var yyz4662 ConfigMap + yyc4662 = true + } + yyh4662.ElemContainerState(yyj4662) + if yyj4662 < len(yyv4662) { + if r.TryDecodeAsNil() { + yyv4662[yyj4662] = ConfigMap{} + } 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 = []ConfigMap{} + yyc4662 = true + } + } + yyh4662.End() + if yyc4662 { + *v = yyv4662 + } +} + +func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, 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) decSliceComponentCondition(v *[]ComponentCondition, 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 = []ComponentCondition{} + 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, 64) + if yyrt4668 { + if yyrl4668 <= cap(yyv4668) { + yyv4668 = yyv4668[:yyrl4668] + } else { + yyv4668 = make([]ComponentCondition, yyrl4668) + } + } else { + yyv4668 = make([]ComponentCondition, 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] = ComponentCondition{} + } else { + yyv4669 := &yyv4668[yyj4668] + yyv4669.CodecDecodeSelf(d) + } + + } + if yyrt4668 { + for ; yyj4668 < yyl4668; yyj4668++ { + yyv4668 = append(yyv4668, ComponentCondition{}) + yyh4668.ElemContainerState(yyj4668) + if r.TryDecodeAsNil() { + yyv4668[yyj4668] = ComponentCondition{} + } else { + yyv4670 := &yyv4668[yyj4668] + yyv4670.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4668 := 0 + for ; !r.CheckBreak(); yyj4668++ { + + if yyj4668 >= len(yyv4668) { + yyv4668 = append(yyv4668, ComponentCondition{}) // var yyz4668 ComponentCondition + yyc4668 = true + } + yyh4668.ElemContainerState(yyj4668) + if yyj4668 < len(yyv4668) { + if r.TryDecodeAsNil() { + yyv4668[yyj4668] = ComponentCondition{} + } 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 = []ComponentCondition{} + yyc4668 = true + } + } + yyh4668.End() + if yyc4668 { + *v = yyv4668 + } +} + +func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, 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) decSliceComponentStatus(v *[]ComponentStatus, 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 = []ComponentStatus{} + 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, 264) + if yyrt4674 { + if yyrl4674 <= cap(yyv4674) { + yyv4674 = yyv4674[:yyrl4674] + } else { + yyv4674 = make([]ComponentStatus, yyrl4674) + } + } else { + yyv4674 = make([]ComponentStatus, 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] = ComponentStatus{} + } else { + yyv4675 := &yyv4674[yyj4674] + yyv4675.CodecDecodeSelf(d) + } + + } + if yyrt4674 { + for ; yyj4674 < yyl4674; yyj4674++ { + yyv4674 = append(yyv4674, ComponentStatus{}) + yyh4674.ElemContainerState(yyj4674) + if r.TryDecodeAsNil() { + yyv4674[yyj4674] = ComponentStatus{} + } else { + yyv4676 := &yyv4674[yyj4674] + yyv4676.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4674 := 0 + for ; !r.CheckBreak(); yyj4674++ { + + if yyj4674 >= len(yyv4674) { + yyv4674 = append(yyv4674, ComponentStatus{}) // var yyz4674 ComponentStatus + yyc4674 = true + } + yyh4674.ElemContainerState(yyj4674) + if yyj4674 < len(yyv4674) { + if r.TryDecodeAsNil() { + yyv4674[yyj4674] = ComponentStatus{} + } 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 = []ComponentStatus{} + yyc4674 = true + } + } + yyh4674.End() + if yyc4674 { + *v = yyv4674 + } +} + +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 _, yyv4678 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4679 := &yyv4678 + yy4679.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 + + yyv4680 := *v + yyh4680, yyl4680 := z.DecSliceHelperStart() + var yyc4680 bool + if yyl4680 == 0 { + if yyv4680 == nil { + yyv4680 = []DownwardAPIVolumeFile{} + 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, 32) + if yyrt4680 { + if yyrl4680 <= cap(yyv4680) { + yyv4680 = yyv4680[:yyrl4680] + } else { + yyv4680 = make([]DownwardAPIVolumeFile, yyrl4680) + } + } else { + yyv4680 = make([]DownwardAPIVolumeFile, 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] = DownwardAPIVolumeFile{} + } else { + yyv4681 := &yyv4680[yyj4680] + yyv4681.CodecDecodeSelf(d) + } + + } + if yyrt4680 { + for ; yyj4680 < yyl4680; yyj4680++ { + yyv4680 = append(yyv4680, DownwardAPIVolumeFile{}) + yyh4680.ElemContainerState(yyj4680) + if r.TryDecodeAsNil() { + yyv4680[yyj4680] = DownwardAPIVolumeFile{} + } else { + yyv4682 := &yyv4680[yyj4680] + yyv4682.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4680 := 0 + for ; !r.CheckBreak(); yyj4680++ { + + if yyj4680 >= len(yyv4680) { + yyv4680 = append(yyv4680, DownwardAPIVolumeFile{}) // var yyz4680 DownwardAPIVolumeFile + yyc4680 = true + } + yyh4680.ElemContainerState(yyj4680) + if yyj4680 < len(yyv4680) { + if r.TryDecodeAsNil() { + yyv4680[yyj4680] = DownwardAPIVolumeFile{} + } 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 = []DownwardAPIVolumeFile{} + yyc4680 = true + } + } + yyh4680.End() + if yyc4680 { + *v = yyv4680 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types.go new file mode 100644 index 0000000000..a2deb383a0 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types.go @@ -0,0 +1,3361 @@ +/* +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 v1 + +import ( + "k8s.io/client-go/1.4/pkg/api/resource" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/types" + "k8s.io/client-go/1.4/pkg/util/intstr" +) + +// The comments for the structs and fields can be used from go-restful to +// generate Swagger API documentation for its models. Please read this PR for more +// information on the implementation: https://github.com/emicklei/go-restful/pull/215 +// +// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if +// they are on one line! For multiple line or blocks that you want to ignore use ---. +// Any context after a --- is ignored and not exported to the SwaggerAPI. +// +// The aforementioned methods can be generated by hack/update-generated-swagger-docs.sh + +// Common string formats +// --------------------- +// Many fields in this API have formatting requirements. The commonly used +// formats are defined here. +// +// C_IDENTIFIER: This is a string that conforms to the definition of an "identifier" +// in the C language. This is captured by the following regex: +// [A-Za-z_][A-Za-z0-9_]* +// This defines the format, but not the length restriction, which should be +// specified at the definition of any field of this type. +// +// DNS_LABEL: This is a string, no more than 63 characters long, that conforms +// to the definition of a "label" in RFCs 1035 and 1123. This is captured +// by the following regex: +// [a-z0-9]([-a-z0-9]*[a-z0-9])? +// +// DNS_SUBDOMAIN: This is a string, no more than 253 characters long, that conforms +// to the definition of a "subdomain" in RFCs 1035 and 1123. This is captured +// by the following regex: +// [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* +// or more simply: +// DNS_LABEL(\.DNS_LABEL)* +// +// IANA_SVC_NAME: This is a string, no more than 15 characters long, that +// conforms to the definition of IANA service name in RFC 6335. +// It must contains at least one letter [a-z] and it must contains only [a-z0-9-]. +// Hypens ('-') cannot be leading or trailing character of the string +// and cannot be adjacent to other hyphens. + +// ObjectMeta is metadata that all persisted resources must have, which includes all objects +// users must create. +type ObjectMeta struct { + // Name must be unique within a namespace. Is required when creating resources, although + // some resources may allow a client to request the generation of an appropriate name + // automatically. Name is primarily intended for creation idempotence and configuration + // definition. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + + // GenerateName is an optional prefix, used by the server, to generate a unique + // name ONLY IF the Name field has not been provided. + // If this field is used, the name returned to the client will be different + // than the name passed. This value will also be combined with a unique suffix. + // The provided value has the same validation rules as the Name field, + // and may be truncated by the length of the suffix required to make the value + // unique on the server. + // + // If this field is specified and the generated name exists, the server will + // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + // ServerTimeout indicating a unique name could not be found in the time allotted, and the client + // should retry (optionally after the time indicated in the Retry-After header). + // + // Applied only if Name is not specified. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency + GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"` + + // Namespace defines the space within each name must be unique. An empty namespace is + // equivalent to the "default" namespace, but "default" is the canonical representation. + // Not all objects are required to be scoped to a namespace - the value of this field for + // those objects will be empty. + // + // Must be a DNS_LABEL. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` + + // SelfLink is a URL representing this object. + // Populated by the system. + // Read-only. + SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,4,opt,name=selfLink"` + + // UID is the unique in time and space value for this object. It is typically generated by + // the server on successful creation of a resource and is not allowed to change on PUT + // operations. + // + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` + + // An opaque value that represents the internal version of this object that can + // be used by clients to determine when objects have changed. May be used for optimistic + // concurrency, change detection, and the watch operation on a resource or set of resources. + // Clients must treat these values as opaque and passed unmodified back to the server. + // They may only be valid for a particular resource or set of resources. + // + // Populated by the system. + // Read-only. + // Value must be treated as opaque by clients and . + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"` + + // A sequence number representing a specific generation of the desired state. + // Populated by the system. Read-only. + Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"` + + // CreationTimestamp is a timestamp representing the server time when this object was + // created. It is not guaranteed to be set in happens-before order across separate operations. + // Clients may not set this value. It is represented in RFC3339 form and is in UTC. + // + // Populated by the system. + // Read-only. + // Null for lists. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + CreationTimestamp unversioned.Time `json:"creationTimestamp,omitempty" protobuf:"bytes,8,opt,name=creationTimestamp"` + + // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + // field is set by the server when a graceful deletion is requested by the user, and is not + // directly settable by a client. The resource will be deleted (no longer visible from + // resource lists, and not reachable by name) after the time in this field. Once set, this + // value may not be unset or be set further into the future, although it may be shortened + // or the resource may be deleted prior to this time. For example, a user may request that + // a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + // signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet + // will send a hard termination signal to the container. + // If not set, graceful deletion of the object has not been requested. + // + // Populated by the system when a graceful deletion is requested. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + DeletionTimestamp *unversioned.Time `json:"deletionTimestamp,omitempty" protobuf:"bytes,9,opt,name=deletionTimestamp"` + + // Number of seconds allowed for this object to gracefully terminate before + // it will be removed from the system. Only set when deletionTimestamp is also set. + // May only be shortened. + // Read-only. + DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty" protobuf:"varint,10,opt,name=deletionGracePeriodSeconds"` + + // Map of string keys and values that can be used to organize and categorize + // (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 + // 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 + Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"` + + // 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. + OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"` + + // 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. + Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"` +} + +const ( + // NamespaceDefault means the object is in the default namespace which is applied when not specified by clients + NamespaceDefault string = "default" + // NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces + NamespaceAll string = "" +) + +// Volume represents a named volume in a pod that may be accessed by any container in the pod. +type Volume struct { + // Volume's name. + // Must be a DNS_LABEL and unique within the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // VolumeSource represents the location and type of the mounted volume. + // If not specified, the Volume is implied to be an EmptyDir. + // This implied behavior is deprecated and will be removed in a future version. + VolumeSource `json:",inline" protobuf:"bytes,2,opt,name=volumeSource"` +} + +// Represents the source of a volume to mount. +// Only one of its members may be specified. +type VolumeSource struct { + // HostPath represents a pre-existing file or directory on the host + // machine that is directly exposed to the container. This is generally + // used for system agents or other privileged things that are allowed + // to see the host machine. Most containers will NOT need this. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath + // --- + // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not + // mount host directories as read/write. + HostPath *HostPathVolumeSource `json:"hostPath,omitempty" protobuf:"bytes,1,opt,name=hostPath"` + // EmptyDir represents a temporary directory that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir + EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty" protobuf:"bytes,2,opt,name=emptyDir"` + // GCEPersistentDisk represents a GCE Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" protobuf:"bytes,3,opt,name=gcePersistentDisk"` + // AWSElasticBlockStore represents an AWS Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" protobuf:"bytes,4,opt,name=awsElasticBlockStore"` + // GitRepo represents a git repository at a particular revision. + GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty" protobuf:"bytes,5,opt,name=gitRepo"` + // Secret represents a secret that should populate this volume. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets + Secret *SecretVolumeSource `json:"secret,omitempty" protobuf:"bytes,6,opt,name=secret"` + // NFS represents an NFS mount on the host that shares a pod's lifetime + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + NFS *NFSVolumeSource `json:"nfs,omitempty" protobuf:"bytes,7,opt,name=nfs"` + // ISCSI represents an ISCSI Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" protobuf:"bytes,8,opt,name=iscsi"` + // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" protobuf:"bytes,9,opt,name=glusterfs"` + // PersistentVolumeClaimVolumeSource represents a reference to a + // PersistentVolumeClaim in the same namespace. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaim"` + // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + RBD *RBDVolumeSource `json:"rbd,omitempty" protobuf:"bytes,11,opt,name=rbd"` + // 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" protobuf:"bytes,12,opt,name=flexVolume"` + // 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. + FC *FCVolumeSource `json:"fc,omitempty" protobuf:"bytes,17,opt,name=fc"` + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty" protobuf:"bytes,18,opt,name=azureFile"` + // ConfigMap represents a configMap that should populate this volume + 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"` +} + +// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. +// This volume finds the bound PV and mounts that volume for the pod. A +// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another +// type of volume that is owned by someone else (the system). +type PersistentVolumeClaimVolumeSource struct { + // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + ClaimName string `json:"claimName" protobuf:"bytes,1,opt,name=claimName"` + // Will force the ReadOnly setting in VolumeMounts. + // Default false. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` +} + +// PersistentVolumeSource is similar to VolumeSource but meant for the +// administrator who creates PVs. Exactly one of its members must be set. +type PersistentVolumeSource struct { + // GCEPersistentDisk represents a GCE Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. Provisioned by an admin. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" protobuf:"bytes,1,opt,name=gcePersistentDisk"` + // AWSElasticBlockStore represents an AWS Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" protobuf:"bytes,2,opt,name=awsElasticBlockStore"` + // HostPath represents a directory on the host. + // Provisioned by a developer or tester. + // This is useful for single-node development and testing only! + // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath + HostPath *HostPathVolumeSource `json:"hostPath,omitempty" protobuf:"bytes,3,opt,name=hostPath"` + // Glusterfs represents a Glusterfs volume that is attached to a host and + // exposed to the pod. Provisioned by an admin. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" protobuf:"bytes,4,opt,name=glusterfs"` + // NFS represents an NFS mount on the host. Provisioned by an admin. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + NFS *NFSVolumeSource `json:"nfs,omitempty" protobuf:"bytes,5,opt,name=nfs"` + // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + RBD *RBDVolumeSource `json:"rbd,omitempty" protobuf:"bytes,6,opt,name=rbd"` + // ISCSI represents an ISCSI Disk resource that is attached to a + // kubelet's host machine and then exposed to the pod. Provisioned by an admin. + ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" protobuf:"bytes,7,opt,name=iscsi"` + // 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,8,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,9,opt,name=cephfs"` + // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + FC *FCVolumeSource `json:"fc,omitempty" protobuf:"bytes,10,opt,name=fc"` + // Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + Flocker *FlockerVolumeSource `json:"flocker,omitempty" protobuf:"bytes,11,opt,name=flocker"` + // 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" protobuf:"bytes,12,opt,name=flexVolume"` + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + 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"` +} + +// +genclient=true +// +nonNamespaced=true + +// PersistentVolume (PV) is a storage resource provisioned by an administrator. +// It is analogous to a node. +// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md +type PersistentVolume struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines a specification of a persistent volume owned by the cluster. + // Provisioned by an administrator. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistent-volumes + Spec PersistentVolumeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Status represents the current information/status for the persistent volume. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistent-volumes + Status PersistentVolumeStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// PersistentVolumeSpec is the specification of a persistent volume. +type PersistentVolumeSpec struct { + // A description of the persistent volume's resources and capacity. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity + Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` + // The actual volume backing the persistent volume. + PersistentVolumeSource `json:",inline" protobuf:"bytes,2,opt,name=persistentVolumeSource"` + // AccessModes contains all ways the volume can be mounted. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes + AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,3,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` + // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. + // Expected to be non-nil when bound. + // claim.VolumeName is the authoritative bind between PV and PVC. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#binding + ClaimRef *ObjectReference `json:"claimRef,omitempty" protobuf:"bytes,4,opt,name=claimRef"` + // What happens to a persistent volume when released from its claim. + // Valid options are Retain (default) and Recycle. + // Recyling must be supported by the volume plugin underlying this persistent volume. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#recycling-policy + PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty" protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,casttype=PersistentVolumeReclaimPolicy"` +} + +// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes. +type PersistentVolumeReclaimPolicy string + +const ( + // PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. + // The volume plugin must support Recycling. + PersistentVolumeReclaimRecycle PersistentVolumeReclaimPolicy = "Recycle" + // PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim. + // The volume plugin must support Deletion. + PersistentVolumeReclaimDelete PersistentVolumeReclaimPolicy = "Delete" + // PersistentVolumeReclaimRetain means the volume will be left in its current phase (Released) for manual reclamation by the administrator. + // The default policy is Retain. + PersistentVolumeReclaimRetain PersistentVolumeReclaimPolicy = "Retain" +) + +// PersistentVolumeStatus is the current status of a persistent volume. +type PersistentVolumeStatus struct { + // Phase indicates if a volume is available, bound to a claim, or released by a claim. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#phase + Phase PersistentVolumePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumePhase"` + // A human-readable message indicating details about why the volume is in this state. + Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` + // Reason is a brief CamelCase string that describes any failure and is meant + // for machine parsing and tidy display in the CLI. + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` +} + +// PersistentVolumeList is a list of PersistentVolume items. +type PersistentVolumeList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // List of persistent volumes. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md + Items []PersistentVolume `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// PersistentVolumeClaim is a user's request for and claim to a persistent volume +type PersistentVolumeClaim struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the desired characteristics of a volume requested by a pod author. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + Spec PersistentVolumeClaimSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Status represents the current information/status of a persistent volume claim. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + Status PersistentVolumeClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// PersistentVolumeClaimList is a list of PersistentVolumeClaim items. +type PersistentVolumeClaimList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // A list of persistent volume claims. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims + Items []PersistentVolumeClaim `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// PersistentVolumeClaimSpec describes the common attributes of storage devices +// and allows a Source for provider-specific attributes +type PersistentVolumeClaimSpec struct { + // AccessModes contains the desired access modes the volume should have. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1 + AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,1,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` + // A label query over volumes to consider for binding. + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` + // Resources represents the minimum resources the volume should have. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources + Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,2,opt,name=resources"` + // VolumeName is the binding reference to the PersistentVolume backing this claim. + VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,3,opt,name=volumeName"` +} + +// PersistentVolumeClaimStatus is the current status of a persistent volume claim. +type PersistentVolumeClaimStatus struct { + // Phase represents the current phase of PersistentVolumeClaim. + Phase PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` + // AccessModes contains the actual access modes the volume backing the PVC has. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1 + AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,2,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` + // Represents the actual resources of the underlying volume. + Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` +} + +type PersistentVolumeAccessMode string + +const ( + // can be mounted read/write mode to exactly 1 host + ReadWriteOnce PersistentVolumeAccessMode = "ReadWriteOnce" + // can be mounted in read-only mode to many hosts + ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany" + // can be mounted in read/write mode to many hosts + ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany" +) + +type PersistentVolumePhase string + +const ( + // used for PersistentVolumes that are not available + VolumePending PersistentVolumePhase = "Pending" + // used for PersistentVolumes that are not yet bound + // Available volumes are held by the binder and matched to PersistentVolumeClaims + VolumeAvailable PersistentVolumePhase = "Available" + // used for PersistentVolumes that are bound + VolumeBound PersistentVolumePhase = "Bound" + // used for PersistentVolumes where the bound PersistentVolumeClaim was deleted + // released volumes must be recycled before becoming available again + // this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource + VolumeReleased PersistentVolumePhase = "Released" + // used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim + VolumeFailed PersistentVolumePhase = "Failed" +) + +type PersistentVolumeClaimPhase string + +const ( + // used for PersistentVolumeClaims that are not yet bound + ClaimPending PersistentVolumeClaimPhase = "Pending" + // used for PersistentVolumeClaims that are bound + ClaimBound PersistentVolumeClaimPhase = "Bound" + // used for PersistentVolumeClaims that lost their underlying + // PersistentVolume. The claim was bound to a PersistentVolume and this + // volume does not exist any longer and all data on it was lost. + ClaimLost PersistentVolumeClaimPhase = "Lost" +) + +// Represents a host path mapped into a pod. +// Host path volumes do not support ownership management or SELinux relabeling. +type HostPathVolumeSource struct { + // Path of the directory on the host. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath + Path string `json:"path" protobuf:"bytes,1,opt,name=path"` +} + +// Represents an empty directory for a pod. +// Empty directory volumes support ownership management and SELinux relabeling. +type EmptyDirVolumeSource struct { + // What type of storage medium should back this directory. + // The default is "" which means to use the node's default medium. + // Must be an empty string (default) or Memory. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir + Medium StorageMedium `json:"medium,omitempty" protobuf:"bytes,1,opt,name=medium,casttype=StorageMedium"` +} + +// Represents a Glusterfs mount that lasts the lifetime of a pod. +// Glusterfs volumes do not support ownership management or SELinux relabeling. +type GlusterfsVolumeSource struct { + // EndpointsName is the endpoint name that details Glusterfs topology. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + EndpointsName string `json:"endpoints" protobuf:"bytes,1,opt,name=endpoints"` + + // Path is the Glusterfs volume path. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + Path string `json:"path" protobuf:"bytes,2,opt,name=path"` + + // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` +} + +// Represents a Rados Block Device mount that lasts the lifetime of a pod. +// RBD volumes support ownership management and SELinux relabeling. +type RBDVolumeSource struct { + // A collection of Ceph monitors. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + CephMonitors []string `json:"monitors" protobuf:"bytes,1,rep,name=monitors"` + // The rados image name. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + RBDImage string `json:"image" protobuf:"bytes,2,opt,name=image"` + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#rbd + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` + // The rados pool name. + // Default is rbd. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it. + RBDPool string `json:"pool,omitempty" protobuf:"bytes,4,opt,name=pool"` + // The rados user name. + // Default is admin. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + RadosUser string `json:"user,omitempty" protobuf:"bytes,5,opt,name=user"` + // Keyring is the path to key ring for RBDUser. + // Default is /etc/ceph/keyring. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + Keyring string `json:"keyring,omitempty" protobuf:"bytes,6,opt,name=keyring"` + // SecretRef is name of the authentication secret for RBDUser. If provided + // overrides keyring. + // Default is nil. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,7,opt,name=secretRef"` + // ReadOnly here will force the ReadOnly setting in VolumeMounts. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,8,opt,name=readOnly"` +} + +// Represents a cinder volume resource in Openstack. +// A Cinder volume must exist before mounting to a container. +// The volume must also be in the same region as the kubelet. +// Cinder volumes support ownership management and SELinux relabeling. +type CinderVolumeSource struct { + // volume id used to identify the volume in cinder + // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + VolumeID string `json:"volumeID" protobuf:"bytes,1,opt,name=volumeID"` + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` +} + +// Represents a Ceph Filesystem mount that lasts the lifetime of a pod +// Cephfs volumes do not support ownership management or SELinux relabeling. +type CephFSVolumeSource struct { + // Required: Monitors is a collection of Ceph monitors + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + Monitors []string `json:"monitors" protobuf:"bytes,1,rep,name=monitors"` + // Optional: Used as the mounted root, rather than the full Ceph tree, default is / + Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` + // Optional: User is the rados user name, default is admin + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"` + // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + SecretFile string `json:"secretFile,omitempty" protobuf:"bytes,4,opt,name=secretFile"` + // Optional: SecretRef is reference to the authentication secret for User, default is empty. + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,5,opt,name=secretRef"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + // More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` +} + +// Represents a Flocker volume mounted by the Flocker agent. +// Flocker volumes do not support ownership management or SELinux relabeling. +type FlockerVolumeSource struct { + // Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker + DatasetName string `json:"datasetName" protobuf:"bytes,1,opt,name=datasetName"` +} + +// StorageMedium defines ways that storage can be allocated to a volume. +type StorageMedium string + +const ( + StorageMediumDefault StorageMedium = "" // use whatever the default is for the node + StorageMediumMemory StorageMedium = "Memory" // use memory (tmpfs) +) + +// Protocol defines network protocols supported for things like container ports. +type Protocol string + +const ( + // ProtocolTCP is the TCP protocol. + ProtocolTCP Protocol = "TCP" + // ProtocolUDP is the UDP protocol. + ProtocolUDP Protocol = "UDP" +) + +// Represents a Persistent Disk resource in Google Compute Engine. +// +// A GCE PD must exist before mounting to a container. The disk must +// also be in the same GCE project and zone as the kubelet. A GCE PD +// can only be mounted as read/write once or read-only many times. GCE +// PDs support ownership management and SELinux relabeling. +type GCEPersistentDiskVolumeSource struct { + // Unique name of the PD resource in GCE. Used to identify the disk in GCE. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + PDName string `json:"pdName" protobuf:"bytes,1,opt,name=pdName"` + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` + // The partition in the volume that you want to mount. + // If omitted, the default is to mount by volume name. + // Examples: For volume /dev/sda1, you specify the partition as "1". + // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + Partition int32 `json:"partition,omitempty" protobuf:"varint,3,opt,name=partition"` + // ReadOnly here will force the ReadOnly setting in VolumeMounts. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` +} + +// 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 { + // Driver is the name of the driver to use for this volume. + Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` + // Optional: SecretRef is reference to the secret object containing + // sensitive information to pass to the plugin scripts. This may be + // empty if no secret object is specified. If the secret object + // contains more than one secret, all secrets are passed to the plugin + // scripts. + SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,3,opt,name=secretRef"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` + // Optional: Extra command options if any. + Options map[string]string `json:"options,omitempty" protobuf:"bytes,5,rep,name=options"` +} + +// Represents a Persistent Disk resource in AWS. +// +// An AWS EBS disk must exist before mounting to a container. The disk +// must also be in the same AWS zone as the kubelet. An AWS EBS disk +// can only be mounted as read/write once. AWS EBS volumes support +// ownership management and SELinux relabeling. +type AWSElasticBlockStoreVolumeSource struct { + // Unique ID of the persistent disk resource in AWS (Amazon EBS volume). + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + VolumeID string `json:"volumeID" protobuf:"bytes,1,opt,name=volumeID"` + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` + // The partition in the volume that you want to mount. + // If omitted, the default is to mount by volume name. + // Examples: For volume /dev/sda1, you specify the partition as "1". + // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + Partition int32 `json:"partition,omitempty" protobuf:"varint,3,opt,name=partition"` + // Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". + // If omitted, the default is "false". + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` +} + +// Represents a volume that is populated with the contents of a git repository. +// Git repo volumes do not support ownership management. +// Git repo volumes support SELinux relabeling. +type GitRepoVolumeSource struct { + // Repository URL + Repository string `json:"repository" protobuf:"bytes,1,opt,name=repository"` + // Commit hash for the specified revision. + Revision string `json:"revision,omitempty" protobuf:"bytes,2,opt,name=revision"` + // Target directory name. + // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the + // git repository. Otherwise, if specified, the volume will contain the git repository in + // the subdirectory with the given name. + Directory string `json:"directory,omitempty" protobuf:"bytes,3,opt,name=directory"` +} + +// Adapts a Secret into a volume. +// +// The 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. +type SecretVolumeSource struct { + // Name of the secret in the pod's namespace to use. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets + SecretName string `json:"secretName,omitempty" protobuf:"bytes,1,opt,name=secretName"` + // 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 '..'. + Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` +} + +// Represents an NFS mount that lasts the lifetime of a pod. +// NFS volumes do not support ownership management or SELinux relabeling. +type NFSVolumeSource struct { + // Server is the hostname or IP address of the NFS server. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + Server string `json:"server" protobuf:"bytes,1,opt,name=server"` + + // Path that is exported by the NFS server. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + Path string `json:"path" protobuf:"bytes,2,opt,name=path"` + + // ReadOnly here will force + // the NFS export to be mounted with read-only permissions. + // Defaults to false. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` +} + +// Represents an ISCSI disk. +// ISCSI volumes can only be mounted as read/write once. +// ISCSI volumes support ownership management and SELinux relabeling. +type ISCSIVolumeSource struct { + // iSCSI target portal. The portal is either an IP or ip_addr:port if the port + // is other than default (typically TCP ports 860 and 3260). + TargetPortal string `json:"targetPortal" protobuf:"bytes,1,opt,name=targetPortal"` + // Target iSCSI Qualified Name. + IQN string `json:"iqn" protobuf:"bytes,2,opt,name=iqn"` + // iSCSI target lun number. + Lun int32 `json:"lun" protobuf:"varint,3,opt,name=lun"` + // Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + ISCSIInterface string `json:"iscsiInterface,omitempty" protobuf:"bytes,4,opt,name=iscsiInterface"` + // Filesystem type of the volume that you want to mount. + // Tip: Ensure that the filesystem type is supported by the host operating system. + // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#iscsi + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty" protobuf:"bytes,5,opt,name=fsType"` + // ReadOnly here will force the ReadOnly setting in VolumeMounts. + // Defaults to false. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` +} + +// Represents a Fibre Channel volume. +// Fibre Channel volumes can only be mounted as read/write once. +// Fibre Channel volumes support ownership management and SELinux relabeling. +type FCVolumeSource struct { + // Required: FC target world wide names (WWNs) + TargetWWNs []string `json:"targetWWNs" protobuf:"bytes,1,rep,name=targetWWNs"` + // Required: FC target lun number + Lun *int32 `json:"lun" protobuf:"varint,2,opt,name=lun"` + // 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. + // TODO: how do we prevent errors in the filesystem from compromising the machine + FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` + // Optional: Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` +} + +// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. +type AzureFileVolumeSource struct { + // the name of secret that contains Azure Storage Account Name and Key + SecretName string `json:"secretName" protobuf:"bytes,1,opt,name=secretName"` + // Share Name + ShareName string `json:"shareName" protobuf:"bytes,2,opt,name=shareName"` + // Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` +} + +// Represents a vSphere volume resource. +type VsphereVirtualDiskVolumeSource struct { + // Path that identifies vSphere volume vmdk + VolumePath string `json:"volumePath" protobuf:"bytes,1,opt,name=volumePath"` + // 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,2,opt,name=fsType"` +} + +// Adapts a ConfigMap into a volume. +// +// The 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. +type ConfigMapVolumeSource struct { + LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` + // 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 '..'. + Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` +} + +// Maps a string key to a path within a volume. +type KeyToPath struct { + // The key to project. + Key string `json:"key" protobuf:"bytes,1,opt,name=key"` + + // 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 '..'. + Path string `json:"path" protobuf:"bytes,2,opt,name=path"` +} + +// ContainerPort represents a network port in a single container. +type ContainerPort struct { + // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each + // named port in a pod must have a unique name. Name for the port that can be + // referred to by services. + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + // Number of port to expose on the host. + // If specified, this must be a valid port number, 0 < x < 65536. + // If HostNetwork is specified, this must match ContainerPort. + // Most containers do not need this. + HostPort int32 `json:"hostPort,omitempty" protobuf:"varint,2,opt,name=hostPort"` + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + ContainerPort int32 `json:"containerPort" protobuf:"varint,3,opt,name=containerPort"` + // Protocol for port. Must be UDP or TCP. + // Defaults to "TCP". + Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,4,opt,name=protocol,casttype=Protocol"` + // What host IP to bind the external port to. + HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` +} + +// VolumeMount describes a mounting of a Volume within a container. +type VolumeMount struct { + // This must match the Name of a Volume. + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // Mounted read-only if true, read-write otherwise (false or unspecified). + // Defaults to false. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` + // Path within the container at which the volume should be mounted. Must + // not contain ':'. + MountPath string `json:"mountPath" protobuf:"bytes,3,opt,name=mountPath"` + // Path within the volume from which the container's volume should be mounted. + // Defaults to "" (volume's root). + SubPath string `json:"subPath,omitempty" protobuf:"bytes,4,opt,name=subPath"` +} + +// EnvVar represents an environment variable present in a Container. +type EnvVar struct { + // Name of the environment variable. Must be a C_IDENTIFIER. + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + + // Optional: no more than one of the following may be specified. + + // Variable references $(VAR_NAME) are expanded + // using the previous defined environment variables in the container and + // any service environment variables. If a variable cannot be resolved, + // the reference in the input string will be unchanged. The $(VAR_NAME) + // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + // references will never be expanded, regardless of whether the variable + // exists or not. + // Defaults to "". + Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` + // Source for the environment variable's value. Cannot be used if value is not empty. + ValueFrom *EnvVarSource `json:"valueFrom,omitempty" protobuf:"bytes,3,opt,name=valueFrom"` +} + +// 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. + 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. + ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,2,opt,name=resourceFieldRef"` + // Selects a key of a ConfigMap. + ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"` + // Selects a key of a secret in the pod's namespace + SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"` +} + +// ObjectFieldSelector selects an APIVersioned field of an object. +type ObjectFieldSelector struct { + // Version of the schema the FieldPath is written in terms of, defaults to "v1". + APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"` + // Path of the field to select in the specified API version. + FieldPath string `json:"fieldPath" protobuf:"bytes,2,opt,name=fieldPath"` +} + +// ResourceFieldSelector represents container resources (cpu, memory) and their output format +type ResourceFieldSelector struct { + // Container name: required for volumes, optional for env vars + ContainerName string `json:"containerName,omitempty" protobuf:"bytes,1,opt,name=containerName"` + // Required: resource to select + Resource string `json:"resource" protobuf:"bytes,2,opt,name=resource"` + // Specifies the output format of the exposed resources, defaults to "1" + Divisor resource.Quantity `json:"divisor,omitempty" protobuf:"bytes,3,opt,name=divisor"` +} + +// Selects a key from a ConfigMap. +type ConfigMapKeySelector struct { + // The ConfigMap to select from. + LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` + // The key to select. + Key string `json:"key" protobuf:"bytes,2,opt,name=key"` +} + +// SecretKeySelector selects a key of a Secret. +type SecretKeySelector struct { + // The name of the secret in the pod's namespace to select from. + LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` + // The key of the secret to select from. Must be a valid secret key. + Key string `json:"key" protobuf:"bytes,2,opt,name=key"` +} + +// HTTPHeader describes a custom header to be used in HTTP probes +type HTTPHeader struct { + // The header field name + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // The header field value + Value string `json:"value" protobuf:"bytes,2,opt,name=value"` +} + +// HTTPGetAction describes an action based on HTTP Get requests. +type HTTPGetAction struct { + // Path to access on the HTTP server. + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` + // Name or number of the port to access on the container. + // Number must be in the range 1 to 65535. + // Name must be an IANA_SVC_NAME. + Port intstr.IntOrString `json:"port" protobuf:"bytes,2,opt,name=port"` + // Host name to connect to, defaults to the pod IP. You probably want to set + // "Host" in httpHeaders instead. + Host string `json:"host,omitempty" protobuf:"bytes,3,opt,name=host"` + // Scheme to use for connecting to the host. + // Defaults to HTTP. + Scheme URIScheme `json:"scheme,omitempty" protobuf:"bytes,4,opt,name=scheme,casttype=URIScheme"` + // Custom headers to set in the request. HTTP allows repeated headers. + HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty" protobuf:"bytes,5,rep,name=httpHeaders"` +} + +// URIScheme identifies the scheme used for connection to a host for Get actions +type URIScheme string + +const ( + // URISchemeHTTP means that the scheme used will be http:// + URISchemeHTTP URIScheme = "HTTP" + // URISchemeHTTPS means that the scheme used will be https:// + URISchemeHTTPS URIScheme = "HTTPS" +) + +// TCPSocketAction describes an action based on opening a socket +type TCPSocketAction struct { + // Number or name of the port to access on the container. + // Number must be in the range 1 to 65535. + // Name must be an IANA_SVC_NAME. + Port intstr.IntOrString `json:"port" protobuf:"bytes,1,opt,name=port"` +} + +// ExecAction describes a "run in container" action. +type ExecAction struct { + // Command is the command line to execute inside the container, the working directory for the + // command is root ('/') in the container's filesystem. The command is simply exec'd, it is + // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use + // a shell, you need to explicitly call out to that shell. + // Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + Command []string `json:"command,omitempty" protobuf:"bytes,1,rep,name=command"` +} + +// Probe describes a health check to be performed against a container to determine whether it is +// alive or ready to receive traffic. +type Probe struct { + // The action taken to determine the health of a container + Handler `json:",inline" protobuf:"bytes,1,opt,name=handler"` + // Number of seconds after the container has started before liveness probes are initiated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty" protobuf:"varint,2,opt,name=initialDelaySeconds"` + // Number of seconds after which the probe times out. + // Defaults to 1 second. Minimum value is 1. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + TimeoutSeconds int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,3,opt,name=timeoutSeconds"` + // How often (in seconds) to perform the probe. + // Default to 10 seconds. Minimum value is 1. + PeriodSeconds int32 `json:"periodSeconds,omitempty" protobuf:"varint,4,opt,name=periodSeconds"` + // Minimum consecutive successes for the probe to be considered successful after having failed. + // Defaults to 1. Must be 1 for liveness. Minimum value is 1. + SuccessThreshold int32 `json:"successThreshold,omitempty" protobuf:"varint,5,opt,name=successThreshold"` + // Minimum consecutive failures for the probe to be considered failed after having succeeded. + // Defaults to 3. Minimum value is 1. + FailureThreshold int32 `json:"failureThreshold,omitempty" protobuf:"varint,6,opt,name=failureThreshold"` +} + +// PullPolicy describes a policy for if/when to pull a container image +type PullPolicy string + +const ( + // PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + PullAlways PullPolicy = "Always" + // PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + PullNever PullPolicy = "Never" + // PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + PullIfNotPresent PullPolicy = "IfNotPresent" +) + +// Capability represent POSIX capabilities type +type Capability string + +// Adds and removes POSIX capabilities from running containers. +type Capabilities struct { + // Added capabilities + Add []Capability `json:"add,omitempty" protobuf:"bytes,1,rep,name=add,casttype=Capability"` + // Removed capabilities + Drop []Capability `json:"drop,omitempty" protobuf:"bytes,2,rep,name=drop,casttype=Capability"` +} + +// 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 + 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 + Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"` +} + +const ( + // TerminationMessagePathDefault means the default path to capture the application termination message running in a container + TerminationMessagePathDefault string = "/dev/termination-log" +) + +// A single application container that you want to run within a pod. +type Container struct { + // Name of the container specified as a DNS_LABEL. + // Each container in a pod must have a unique name (DNS_LABEL). + // Cannot be updated. + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // Docker image name. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md + Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"` + // Entrypoint array. Not executed within a shell. + // The docker image's ENTRYPOINT is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands + Command []string `json:"command,omitempty" protobuf:"bytes,3,rep,name=command"` + // Arguments to the entrypoint. + // The docker image's CMD is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands + Args []string `json:"args,omitempty" protobuf:"bytes,4,rep,name=args"` + // Container's working directory. + // If not specified, the container runtime's default will be used, which + // might be configured in the container image. + // Cannot be updated. + WorkingDir string `json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"` + // List of ports to expose from the container. Exposing a port here gives + // the system additional information about the network connections a + // container uses, but is primarily informational. Not specifying a port here + // DOES NOT prevent that port from being exposed. Any port which is + // listening on the default "0.0.0.0" address inside a container will be + // accessible from the network. + // Cannot be updated. + Ports []ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"` + // List of environment variables to set in the container. + // Cannot be updated. + Env []EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"` + // Compute Resources required by this container. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources + Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` + // Pod volumes to mount into the container's filesystem. + // Cannot be updated. + VolumeMounts []VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,9,rep,name=volumeMounts"` + // Periodic probe of container liveness. + // Container will be restarted if the probe fails. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + LivenessProbe *Probe `json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"` + // Periodic probe of container service readiness. + // Container will be removed from service endpoints if the probe fails. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes + ReadinessProbe *Probe `json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"` + // Actions that the management system should take in response to container lifecycle events. + // Cannot be updated. + Lifecycle *Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"` + // Optional: Path at which the file to which the container's termination message + // will be written is mounted into the container's filesystem. + // Message written is intended to be brief final status, such as an assertion failure message. + // Defaults to /dev/termination-log. + // Cannot be updated. + TerminationMessagePath string `json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"` + // Image pull policy. + // One of Always, Never, IfNotPresent. + // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#updating-images + ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"` + // Security options the pod should run with. + // More info: http://releases.k8s.io/HEAD/docs/design/security_context.md + SecurityContext *SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"` + + // Variables for interactive containers, these have very specialized use-cases (e.g. debugging) + // and shouldn't be used for general purpose containers. + + // Whether this container should allocate a buffer for stdin in the container runtime. If this + // is not set, reads from stdin in the container will always result in EOF. + // Default is false. + Stdin bool `json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"` + // Whether the container runtime should close the stdin channel after it has been opened by + // a single attach. When stdin is true the stdin stream will remain open across multiple attach + // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the + // first client attaches to stdin, and then remains open and accepts data until the client disconnects, + // at which time stdin is closed and remains closed until the container is restarted. If this + // flag is false, a container processes that reads from stdin will never receive an EOF. + // Default is false + StdinOnce bool `json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"` + // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. + // Default is false. + TTY bool `json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"` +} + +// Handler defines a specific action that should be taken +// TODO: pass structured data to these actions, and document that data here. +type Handler struct { + // One and only one of the following should be specified. + // Exec specifies the action to take. + Exec *ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"` + // HTTPGet specifies the http request to perform. + HTTPGet *HTTPGetAction `json:"httpGet,omitempty" protobuf:"bytes,2,opt,name=httpGet"` + // TCPSocket specifies an action involving a TCP port. + // TCP hooks not yet supported + // TODO: implement a realistic TCP lifecycle hook + TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"` +} + +// Lifecycle describes actions that the management system should take in response to container lifecycle +// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks +// until the action is complete, unless the container process fails, in which case the handler is aborted. +type Lifecycle struct { + // PostStart is called immediately after a container is created. If the handler fails, + // the container is terminated and restarted according to its restart policy. + // Other management of the container blocks until the hook completes. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details + PostStart *Handler `json:"postStart,omitempty" protobuf:"bytes,1,opt,name=postStart"` + // PreStop is called immediately before a container is terminated. + // The container is terminated after the handler completes. + // The reason for termination is passed to the handler. + // Regardless of the outcome of the handler, the container is eventually terminated. + // Other management of the container blocks until the hook completes. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details + PreStop *Handler `json:"preStop,omitempty" protobuf:"bytes,2,opt,name=preStop"` +} + +type ConditionStatus string + +// These are valid condition statuses. "ConditionTrue" means a resource is in the condition. +// "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means kubernetes +// can't decide if a resource is in the condition or not. In the future, we could add other +// intermediate conditions, e.g. ConditionDegraded. +const ( + ConditionTrue ConditionStatus = "True" + ConditionFalse ConditionStatus = "False" + ConditionUnknown ConditionStatus = "Unknown" +) + +// ContainerStateWaiting is a waiting state of a container. +type ContainerStateWaiting struct { + // (brief) reason the container is not yet running. + Reason string `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason"` + // Message regarding why the container is not yet running. + Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` +} + +// ContainerStateRunning is a running state of a container. +type ContainerStateRunning struct { + // Time at which the container was last (re-)started + StartedAt unversioned.Time `json:"startedAt,omitempty" protobuf:"bytes,1,opt,name=startedAt"` +} + +// ContainerStateTerminated is a terminated state of a container. +type ContainerStateTerminated struct { + // Exit status from the last termination of the container + ExitCode int32 `json:"exitCode" protobuf:"varint,1,opt,name=exitCode"` + // Signal from the last termination of the container + Signal int32 `json:"signal,omitempty" protobuf:"varint,2,opt,name=signal"` + // (brief) reason from the last termination of the container + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + // Message regarding the last termination of the container + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` + // Time at which previous execution of the container started + StartedAt unversioned.Time `json:"startedAt,omitempty" protobuf:"bytes,5,opt,name=startedAt"` + // Time at which the container last terminated + FinishedAt unversioned.Time `json:"finishedAt,omitempty" protobuf:"bytes,6,opt,name=finishedAt"` + // Container's ID in the format 'docker://' + ContainerID string `json:"containerID,omitempty" protobuf:"bytes,7,opt,name=containerID"` +} + +// ContainerState holds a possible state of container. +// Only one of its members may be specified. +// If none of them is specified, the default one is ContainerStateWaiting. +type ContainerState struct { + // Details about a waiting container + Waiting *ContainerStateWaiting `json:"waiting,omitempty" protobuf:"bytes,1,opt,name=waiting"` + // Details about a running container + Running *ContainerStateRunning `json:"running,omitempty" protobuf:"bytes,2,opt,name=running"` + // Details about a terminated container + Terminated *ContainerStateTerminated `json:"terminated,omitempty" protobuf:"bytes,3,opt,name=terminated"` +} + +// ContainerStatus contains details for the current status of this container. +type ContainerStatus struct { + // This must be a DNS_LABEL. Each container in a pod must have a unique name. + // Cannot be updated. + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + // Details about the container's current condition. + State ContainerState `json:"state,omitempty" protobuf:"bytes,2,opt,name=state"` + // Details about the container's last termination condition. + LastTerminationState ContainerState `json:"lastState,omitempty" protobuf:"bytes,3,opt,name=lastState"` + // Specifies whether the container has passed its readiness probe. + Ready bool `json:"ready" protobuf:"varint,4,opt,name=ready"` + // The number of times the container has been restarted, currently based on + // the number of dead containers that have not yet been removed. + // Note that this is calculated from dead containers. But those containers are subject to + // garbage collection. This value will get capped at 5 by GC. + RestartCount int32 `json:"restartCount" protobuf:"varint,5,opt,name=restartCount"` + // The image the container is running. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md + // TODO(dchen1107): Which image the container is running with? + Image string `json:"image" protobuf:"bytes,6,opt,name=image"` + // ImageID of the container's image. + ImageID string `json:"imageID" protobuf:"bytes,7,opt,name=imageID"` + // Container's ID in the format 'docker://'. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#container-information + ContainerID string `json:"containerID,omitempty" protobuf:"bytes,8,opt,name=containerID"` +} + +// PodPhase is a label for the condition of a pod at the current time. +type PodPhase string + +// These are the valid statuses of pods. +const ( + // PodPending means the pod has been accepted by the system, but one or more of the containers + // has not been started. This includes time before being bound to a node, as well as time spent + // pulling images onto the host. + PodPending PodPhase = "Pending" + // PodRunning means the pod has been bound to a node and all of the containers have been started. + // At least one container is still running or is in the process of being restarted. + PodRunning PodPhase = "Running" + // PodSucceeded means that all containers in the pod have voluntarily terminated + // with a container exit code of 0, and the system is not going to restart any of these containers. + PodSucceeded PodPhase = "Succeeded" + // PodFailed means that all containers in the pod have terminated, and at least one container has + // terminated in a failure (exited with a non-zero exit code or was stopped by the system). + PodFailed PodPhase = "Failed" + // PodUnknown means that for some reason the state of the pod could not be obtained, typically due + // to an error in communicating with the host of the pod. + PodUnknown PodPhase = "Unknown" +) + +// PodConditionType is a valid value for PodCondition.Type +type PodConditionType string + +// These are valid conditions of pod. +const ( + // PodScheduled represents status of the scheduling process for this pod. + PodScheduled PodConditionType = "PodScheduled" + // PodReady means the pod is able to service requests and should be added to the + // load balancing pools of all matching services. + PodReady PodConditionType = "Ready" +) + +// PodCondition contains details for the current condition of this pod. +type PodCondition struct { + // Type is the type of the condition. + // Currently only Ready. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions + Type PodConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PodConditionType"` + // Status is the status of the condition. + // Can be True, False, Unknown. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions + Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` + // Last time we probed the condition. + LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` + // Last time the condition transitioned from one status to another. + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` + // Unique, one-word, CamelCase reason for the condition's last transition. + Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` + // Human-readable message indicating details about last transition. + Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` +} + +// RestartPolicy describes how the container should be restarted. +// Only one of the following restart policies may be specified. +// If none of the following policies is specified, the default one +// is RestartPolicyAlways. +type RestartPolicy string + +const ( + RestartPolicyAlways RestartPolicy = "Always" + RestartPolicyOnFailure RestartPolicy = "OnFailure" + RestartPolicyNever RestartPolicy = "Never" +) + +// DNSPolicy defines how a pod's DNS will be configured. +type DNSPolicy string + +const ( + // DNSClusterFirst indicates that the pod should use cluster DNS + // first, if it is available, then fall back on the default (as + // determined by kubelet) DNS settings. + DNSClusterFirst DNSPolicy = "ClusterFirst" + + // DNSDefault indicates that the pod should use the default (as + // determined by kubelet) DNS settings. + DNSDefault DNSPolicy = "Default" + + DefaultTerminationGracePeriodSeconds = 30 +) + +// A node selector represents the union of the results of one or more label queries +// over a set of nodes; that is, it represents the OR of the selectors represented +// by the node selector terms. +type NodeSelector struct { + //Required. A list of node selector terms. The terms are ORed. + NodeSelectorTerms []NodeSelectorTerm `json:"nodeSelectorTerms" protobuf:"bytes,1,rep,name=nodeSelectorTerms"` +} + +// A null or empty node selector term matches no objects. +type NodeSelectorTerm struct { + //Required. A list of node selector requirements. The requirements are ANDed. + MatchExpressions []NodeSelectorRequirement `json:"matchExpressions" protobuf:"bytes,1,rep,name=matchExpressions"` +} + +// A node selector requirement is a selector that contains values, a key, and an operator +// that relates the key and values. +type NodeSelectorRequirement struct { + // The label key that the selector applies to. + Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"` + // Represents a key's relationship to a set of values. + // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + Operator NodeSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=NodeSelectorOperator"` + // An array of string values. If the operator is In or NotIn, + // the values array must be non-empty. If the operator is Exists or DoesNotExist, + // the values array must be empty. If the operator is Gt or Lt, the values + // array must have a single element, which will be interpreted as an integer. + // This array is replaced during a strategic merge patch. + Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` +} + +// A node selector operator is the set of operators that can be used in +// a node selector requirement. +type NodeSelectorOperator string + +const ( + NodeSelectorOpIn NodeSelectorOperator = "In" + NodeSelectorOpNotIn NodeSelectorOperator = "NotIn" + NodeSelectorOpExists NodeSelectorOperator = "Exists" + NodeSelectorOpDoesNotExist NodeSelectorOperator = "DoesNotExist" + NodeSelectorOpGt NodeSelectorOperator = "Gt" + NodeSelectorOpLt NodeSelectorOperator = "Lt" +) + +// Affinity is a group of affinity scheduling rules. +type Affinity struct { + // Describes node affinity scheduling rules for the pod. + NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty" protobuf:"bytes,1,opt,name=nodeAffinity"` + // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + PodAffinity *PodAffinity `json:"podAffinity,omitempty" protobuf:"bytes,2,opt,name=podAffinity"` + // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty" protobuf:"bytes,3,opt,name=podAntiAffinity"` +} + +// Pod affinity is a group of inter pod affinity scheduling rules. +type PodAffinity struct { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system will try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system may or may not try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,1,rep,name=requiredDuringSchedulingIgnoredDuringExecution"` + // The scheduler will prefer to schedule pods to nodes that satisfy + // the affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` +} + +// Pod anti affinity is a group of inter pod anti affinity scheduling rules. +type PodAntiAffinity struct { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the anti-affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the anti-affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system will try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + // If the anti-affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the anti-affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to a pod label update), the + // system may or may not try to eventually evict the pod from its node. + // When there are multiple elements, the lists of nodes corresponding to each + // podAffinityTerm are intersected, i.e. all terms must be satisfied. + RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,1,rep,name=requiredDuringSchedulingIgnoredDuringExecution"` + // The scheduler will prefer to schedule pods to nodes that satisfy + // the anti-affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling anti-affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` +} + +// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) +type WeightedPodAffinityTerm struct { + // weight associated with matching the corresponding podAffinityTerm, + // in the range 1-100. + Weight int32 `json:"weight" protobuf:"varint,1,opt,name=weight"` + // Required. A pod affinity term, associated with the corresponding weight. + PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm" protobuf:"bytes,2,opt,name=podAffinityTerm"` +} + +// Defines a set of pods (namely those matching the labelSelector +// relative to the given namespace(s)) that this pod should be +// co-located (affinity) or not co-located (anti-affinity) with, +// where co-located is defined as running on a node whose value of +// the label with key tches that of any node on which +// a pod of the set of pods is running +type PodAffinityTerm struct { + // A label query over a set of resources, in this case pods. + LabelSelector *unversioned.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"` + // namespaces specifies which namespaces the labelSelector applies to (matches against); + // nil list means "this pod's namespace," empty list means "all namespaces" + // The json tag here is not "omitempty" since we need to distinguish nil and empty. + // See https://golang.org/pkg/encoding/json/#Marshal for more details. + Namespaces []string `json:"namespaces" protobuf:"bytes,2,rep,name=namespaces"` + // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + // the labelSelector in the specified namespaces, where co-located is defined as running on a node + // whose value of the label with key topologyKey matches that of any node on which any of the + // selected pods is running. + // For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies" + // ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); + // for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. + TopologyKey string `json:"topologyKey,omitempty" protobuf:"bytes,3,opt,name=topologyKey"` +} + +// Node affinity is a group of node affinity scheduling rules. +type NodeAffinity struct { + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to an update), the system + // will try to eventually evict the pod from its node. + // RequiredDuringSchedulingRequiredDuringExecution *NodeSelector `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` + + // If the affinity requirements specified by this field are not met at + // scheduling time, the pod will not be scheduled onto the node. + // If the affinity requirements specified by this field cease to be met + // at some point during pod execution (e.g. due to an update), the system + // may or may not try to eventually evict the pod from its node. + RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,1,opt,name=requiredDuringSchedulingIgnoredDuringExecution"` + // The scheduler will prefer to schedule pods to nodes that satisfy + // the affinity expressions specified by this field, but it may choose + // a node that violates one or more of the expressions. The node that is + // most preferred is the one with the greatest sum of weights, i.e. + // for each node that meets all of the scheduling requirements (resource + // request, requiredDuringScheduling affinity expressions, etc.), + // compute a sum by iterating through the elements of this field and adding + // "weight" to the sum if the node matches the corresponding matchExpressions; the + // node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` +} + +// An empty preferred scheduling term matches all objects with implicit weight 0 +// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). +type PreferredSchedulingTerm struct { + // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + Weight int32 `json:"weight" protobuf:"varint,1,opt,name=weight"` + // A node selector term, associated with the corresponding weight. + Preference NodeSelectorTerm `json:"preference" protobuf:"bytes,2,opt,name=preference"` +} + +// The node this Taint is attached to has the effect "effect" on +// any pod that that does not tolerate the Taint. +type Taint struct { + // Required. The taint key to be applied to a node. + Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"` + // Required. The taint value corresponding to the taint key. + Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` + // Required. The effect of the taint on pods + // that do not tolerate the taint. + // Valid effects are NoSchedule and PreferNoSchedule. + Effect TaintEffect `json:"effect" protobuf:"bytes,3,opt,name=effect,casttype=TaintEffect"` +} + +type TaintEffect string + +const ( + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // but allow all pods submitted to Kubelet without going through the scheduler + // to start, and allow all already-running pods to continue running. + // Enforced by the scheduler. + TaintEffectNoSchedule TaintEffect = "NoSchedule" + // Like TaintEffectNoSchedule, but the scheduler tries not to schedule + // new pods onto the node, rather than prohibiting new pods from scheduling + // onto the node entirely. Enforced by the scheduler. + TaintEffectPreferNoSchedule TaintEffect = "PreferNoSchedule" + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // do not allow pods to start on Kubelet unless they tolerate the taint, + // but allow all already-running pods to continue running. + // Enforced by the scheduler and Kubelet. + // TaintEffectNoScheduleNoAdmit TaintEffect = "NoScheduleNoAdmit" + // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. + // Do not allow new pods to schedule onto the node unless they tolerate the taint, + // do not allow pods to start on Kubelet unless they tolerate the taint, + // and evict any already-running pods that do not tolerate the taint. + // Enforced by the scheduler and Kubelet. + // TaintEffectNoScheduleNoAdmitNoExecute = "NoScheduleNoAdmitNoExecute" +) + +// The pod this Toleration is attached to tolerates any taint that matches +// the triple using the matching operator . +type Toleration struct { + // Required. Key is the taint key that the toleration applies to. + Key string `json:"key,omitempty" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"` + // operator represents a key's relationship to the value. + // Valid operators are Exists and Equal. Defaults to Equal. + // Exists is equivalent to wildcard for value, so that a pod can + // tolerate all taints of a particular category. + Operator TolerationOperator `json:"operator,omitempty" protobuf:"bytes,2,opt,name=operator,casttype=TolerationOperator"` + // Value is the taint value the toleration matches to. + // If the operator is Exists, the value should be empty, otherwise just a regular string. + Value string `json:"value,omitempty" protobuf:"bytes,3,opt,name=value"` + // Effect indicates the taint effect to match. Empty means match all taint effects. + // When specified, allowed values are NoSchedule and PreferNoSchedule. + Effect TaintEffect `json:"effect,omitempty" protobuf:"bytes,4,opt,name=effect,casttype=TaintEffect"` + // TODO: For forgiveness (#1574), we'd eventually add at least a grace period + // here, and possibly an occurrence threshold and period. +} + +// A toleration operator is the set of operators that can be used in a toleration. +type TolerationOperator string + +const ( + TolerationOpExists TolerationOperator = "Exists" + TolerationOpEqual TolerationOperator = "Equal" +) + +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. + 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" +) + +// PodSpec is a description of a pod. +type PodSpec struct { + // List of volumes that can be mounted by containers belonging to the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md + Volumes []Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"` + // List of initialization containers belonging to the pod. + // Init containers are executed in order prior to containers being started. If any + // init container fails, the pod is considered to have failed and is handled according + // to its restartPolicy. The name for an init container or normal container must be + // unique among all containers. + // Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. + // The resourceRequirements of an init container are taken into account during scheduling + // by finding the highest request/limit for each resource type, and then using the max of + // of that value or the sum of the normal containers. Limits are applied to init containers + // in a similar fashion. + // Init containers cannot currently be added or removed. + // Init containers are in alpha state and may change without notice. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md + InitContainers []Container `json:"-" patchStrategy:"merge" patchMergeKey:"name"` + // List of containers belonging to the pod. + // Containers cannot currently be added or removed. + // There must be at least one container in a Pod. + // Cannot be updated. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md + Containers []Container `json:"containers" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=containers"` + // Restart policy for all containers within the pod. + // One of Always, OnFailure, Never. + // Default to Always. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#restartpolicy + RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,3,opt,name=restartPolicy,casttype=RestartPolicy"` + // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. + // Value must be non-negative integer. The value zero indicates delete immediately. + // If this value is nil, the default grace period will be used instead. + // The grace period is the duration in seconds after the processes running in the pod are sent + // a termination signal and the time when the processes are forcibly halted with a kill signal. + // Set this value longer than the expected cleanup time for your process. + // Defaults to 30 seconds. + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,4,opt,name=terminationGracePeriodSeconds"` + // Optional duration in seconds the pod may be active on the node relative to + // StartTime before the system will actively try to mark it failed and kill associated containers. + // Value must be a positive integer. + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,5,opt,name=activeDeadlineSeconds"` + // Set DNS policy for containers within the pod. + // One of 'ClusterFirst' or 'Default'. + // Defaults to "ClusterFirst". + DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"` + // NodeSelector is a selector which must be true for the pod to fit on a node. + // Selector which must match a node's labels for the pod to be scheduled on that node. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/node-selection/README.md + NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` + + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md + ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"` + // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. + // Deprecated: Use serviceAccountName instead. + // +k8s:conversion-gen=false + DeprecatedServiceAccount string `json:"serviceAccount,omitempty" protobuf:"bytes,9,opt,name=serviceAccount"` + + // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + // the scheduler simply schedules this pod onto that node, assuming that it fits resource + // requirements. + NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` + // Host networking requested for this pod. Use the host's network namespace. + // If this option is set, the ports that will be used must be specified. + // Default to false. + // +k8s:conversion-gen=false + HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,11,opt,name=hostNetwork"` + // Use the host's pid namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + HostPID bool `json:"hostPID,omitempty" protobuf:"varint,12,opt,name=hostPID"` + // Use the host's ipc namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"` + // SecurityContext holds pod-level security attributes and common container settings. + // Optional: Defaults to empty. See type description for default values of each field. + SecurityContext *PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,14,opt,name=securityContext"` + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // If specified, these secrets will be passed to individual puller implementations for them to use. For example, + // in the case of docker, only DockerConfig type secrets are honored. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod + ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` + // Specifies the hostname of the Pod + // If not specified, the pod's hostname will be set to a system-defined value. + Hostname string `json:"hostname,omitempty" protobuf:"bytes,16,opt,name=hostname"` + // If specified, the fully qualified Pod hostname will be "...svc.". + // If not specified, the pod will not have a domainname at all. + Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"` +} + +// 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. +type PodSecurityContext struct { + // The SELinux context to be applied to all containers. + // If unspecified, the container runtime will allocate a random SELinux context for each + // container. May also be set in SecurityContext. If set in + // both SecurityContext and PodSecurityContext, the value specified in SecurityContext + // takes precedence for that container. + SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,1,opt,name=seLinuxOptions"` + // The UID to run the entrypoint of the container process. + // Defaults to user specified in image metadata if unspecified. + // May also be set in SecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence + // for that container. + RunAsUser *int64 `json:"runAsUser,omitempty" protobuf:"varint,2,opt,name=runAsUser"` + // Indicates that the container must run as a non-root user. + // If true, the Kubelet will validate the image at runtime to ensure that it + // does not run as UID 0 (root) and fail to start the container if it does. + // If unset or false, no such validation will be performed. + // May also be set in SecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" protobuf:"varint,3,opt,name=runAsNonRoot"` + // A list of groups applied to the first process run in each container, in addition + // to the container's primary GID. If unspecified, no groups will be added to + // any container. + SupplementalGroups []int64 `json:"supplementalGroups,omitempty" protobuf:"varint,4,rep,name=supplementalGroups"` + // A special supplemental group that applies to all containers in a pod. + // Some volume types allow the Kubelet to change the ownership of that volume + // to be owned by the pod: + // + // 1. The owning GID will be the FSGroup + // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + // 3. The permission bits are OR'd with rw-rw---- + // + // If unset, the Kubelet will not modify the ownership and permissions of any volume. + FSGroup *int64 `json:"fsGroup,omitempty" protobuf:"varint,5,opt,name=fsGroup"` +} + +// PodStatus represents information about the status of a pod. Status may trail the actual +// state of a system. +type PodStatus struct { + // Current condition of the pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-phase + Phase PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` + // Current service state of pod. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions + Conditions []PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` + // A human readable message indicating details about why the pod is in this condition. + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + // A brief CamelCase message indicating details about why the pod is in this state. + // e.g. 'OutOfDisk' + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + + // IP address of the host to which the pod is assigned. Empty if not yet scheduled. + HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` + // IP address allocated to the pod. Routable at least within the cluster. + // Empty if not yet allocated. + PodIP string `json:"podIP,omitempty" protobuf:"bytes,6,opt,name=podIP"` + + // RFC 3339 date and time at which the object was acknowledged by the Kubelet. + // This is before the Kubelet pulled the container image(s) for the pod. + StartTime *unversioned.Time `json:"startTime,omitempty" protobuf:"bytes,7,opt,name=startTime"` + + // The list has one entry per init container in the manifest. The most recent successful + // init container will have ready = true, the most recently started container will have + // startTime set. + // Init containers are in alpha state and may change without notice. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-statuses + InitContainerStatuses []ContainerStatus `json:"-"` + // The list has one entry per container in the manifest. Each entry is currently the output + // of `docker inspect`. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-statuses + ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` +} + +// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded +type PodStatusResult struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // Most recently observed status of the pod. + // This data may not be up to date. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status PodStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` +} + +// +genclient=true + +// Pod is a collection of containers that can run on a host. This resource is created +// by clients and scheduled onto hosts. +type Pod struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Specification of the desired behavior of the pod. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Most recently observed status of the pod. + // This data may not be up to date. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status PodStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// PodList is a list of Pods. +type PodList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of pods. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/pods.md + Items []Pod `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// PodTemplateSpec describes the data a pod should have when created from a template +type PodTemplateSpec struct { + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Specification of the desired behavior of the pod. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` +} + +// +genclient=true + +// PodTemplate describes a template for creating copies of a predefined pod. +type PodTemplate struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Template defines the pods that will be created from this pod template. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Template PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` +} + +// PodTemplateList is a list of PodTemplates. +type PodTemplateList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of pod templates + Items []PodTemplate `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// ReplicationControllerSpec is the specification of a replication controller. +type ReplicationControllerSpec struct { + // Replicas is the number of desired replicas. + // This is a pointer to distinguish between explicit zero and unspecified. + // Defaults to 1. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#what-is-a-replication-controller + Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` + + // Selector is a label query over pods that should match the Replicas count. + // If Selector is empty, it is defaulted to the labels present on the Pod template. + // Label keys and values that must match in order to be controlled by this replication + // controller, if empty defaulted to labels on Pod template. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` + + // TemplateRef is a reference to an object that describes the pod that will be created if + // insufficient replicas are detected. + // Reference to an object that describes the pod that will be created if insufficient replicas are detected. + // TemplateRef *ObjectReference `json:"templateRef,omitempty"` + + // Template is the object that describes the pod that will be created if + // insufficient replicas are detected. This takes precedence over a TemplateRef. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#pod-template + Template *PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` +} + +// ReplicationControllerStatus represents the current status of a replication +// controller. +type ReplicationControllerStatus struct { + // 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 + Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` + + // 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"` + + // ObservedGeneration reflects the generation of the most recently observed replication controller. + ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` +} + +// +genclient=true + +// ReplicationController represents the configuration of a replication controller. +type ReplicationController struct { + unversioned.TypeMeta `json:",inline"` + + // If the Labels of a ReplicationController are empty, they are defaulted to + // be the same as the Pod(s) that the replication controller manages. + // Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the specification of the desired behavior of the replication controller. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec ReplicationControllerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Status is the most recently observed status of the replication controller. + // This data may be out of date by some window of time. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status ReplicationControllerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// ReplicationControllerList is a collection of replication controllers. +type ReplicationControllerList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of replication controllers. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md + Items []ReplicationController `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// Session Affinity Type string +type ServiceAffinity string + +const ( + // ServiceAffinityClientIP is the Client IP based. + ServiceAffinityClientIP ServiceAffinity = "ClientIP" + + // ServiceAffinityNone - no session affinity. + ServiceAffinityNone ServiceAffinity = "None" +) + +// Service Type string describes ingress methods for a service +type ServiceType string + +const ( + // ServiceTypeClusterIP means a service will only be accessible inside the + // cluster, via the cluster IP. + ServiceTypeClusterIP ServiceType = "ClusterIP" + + // ServiceTypeNodePort means a service will be exposed on one port of + // every node, in addition to 'ClusterIP' type. + ServiceTypeNodePort ServiceType = "NodePort" + + // ServiceTypeLoadBalancer means a service will be exposed via an + // external load balancer (if the cloud provider supports it), in addition + // to 'NodePort' type. + ServiceTypeLoadBalancer ServiceType = "LoadBalancer" +) + +// ServiceStatus represents the current status of a service. +type ServiceStatus struct { + // LoadBalancer contains the current status of the load-balancer, + // if one is present. + LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` +} + +// LoadBalancerStatus represents the status of a load-balancer. +type LoadBalancerStatus struct { + // Ingress is a list containing ingress points for the load-balancer. + // Traffic intended for the service should be sent to these ingress points. + Ingress []LoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` +} + +// LoadBalancerIngress represents the status of a load-balancer ingress point: +// traffic intended for the service should be sent to an ingress point. +type LoadBalancerIngress struct { + // IP is set for load-balancer ingress points that are IP based + // (typically GCE or OpenStack load-balancers) + IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` + + // Hostname is set for load-balancer ingress points that are DNS based + // (typically AWS load-balancers) + Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"` +} + +// ServiceSpec describes the attributes that a user creates on a service. +type ServiceSpec struct { + // 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 + 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. + // 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. + // 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 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 + // 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. + ExternalIPs []string `json:"externalIPs,omitempty" protobuf:"bytes,5,rep,name=externalIPs"` + + // 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. + // +k8s:conversion-gen=false + DeprecatedPublicIPs []string `json:"deprecatedPublicIPs,omitempty" protobuf:"bytes,6,rep,name=deprecatedPublicIPs"` + + // 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 + SessionAffinity ServiceAffinity `json:"sessionAffinity,omitempty" protobuf:"bytes,7,opt,name=sessionAffinity,casttype=ServiceAffinity"` + + // 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. + LoadBalancerIP string `json:"loadBalancerIP,omitempty" protobuf:"bytes,8,opt,name=loadBalancerIP"` + + // 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 + LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty" protobuf:"bytes,9,opt,name=loadBalancerSourceRanges"` +} + +// ServicePort contains information on service's port. +type ServicePort struct { + // The name of this port within the service. This must be a DNS_LABEL. + // All ports within a ServiceSpec must have unique names. This maps to + // the 'Name' field in EndpointPort objects. + // Optional if only one ServicePort is defined on this service. + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + + // The IP protocol for this port. Supports "TCP" and "UDP". + // Default is TCP. + Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` + + // The port that will be exposed by this service. + Port int32 `json:"port" protobuf:"varint,3,opt,name=port"` + + // Number or name of the port to access on the pods targeted by the service. + // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + // If this is a string, it will be looked up as a named port in the + // target Pod's container ports. If this is not specified, the value + // of the 'port' field is used (an identity map). + // This field is ignored for services with clusterIP=None, and should be + // omitted or set equal to the 'port' field. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#defining-a-service + TargetPort intstr.IntOrString `json:"targetPort,omitempty" protobuf:"bytes,4,opt,name=targetPort"` + + // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. + // Usually assigned by the system. If specified, it will be allocated to the service + // if unused or else creation of the service will fail. + // Default is to auto-allocate a port if the ServiceType of this Service requires one. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#type--nodeport + NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,5,opt,name=nodePort"` +} + +// +genclient=true + +// Service is a named abstraction of software service (for example, mysql) consisting of local port +// (for example 3306) that the proxy listens on, and the selector that determines which pods +// will answer requests sent through the proxy. +type Service struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the behavior of a service. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec ServiceSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Most recently observed status of the service. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status ServiceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +const ( + // ClusterIPNone - do not assign a cluster IP + // no proxying required and no environment variables should be created for pods + ClusterIPNone = "None" +) + +// ServiceList holds a list of services. +type ServiceList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of services + Items []Service `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// +genclient=true + +// ServiceAccount binds together: +// * a name, understood by users, and perhaps by peripheral systems, for an identity +// * a principal that can be authenticated and authorized +// * a set of secrets +type ServiceAccount struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md + Secrets []ObjectReference `json:"secrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=secrets"` + + // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images + // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets + // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret + ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,3,rep,name=imagePullSecrets"` +} + +// ServiceAccountList is a list of ServiceAccount objects +type ServiceAccountList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of ServiceAccounts. + // More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts + Items []ServiceAccount `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// +genclient=true + +// Endpoints is a collection of endpoints that implement the actual service. Example: +// Name: "mysvc", +// Subsets: [ +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// }, +// { +// Addresses: [{"ip": "10.10.3.3"}], +// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] +// }, +// ] +type Endpoints struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // The set of all endpoints is the union of all subsets. Addresses are placed into + // subsets according to the IPs they share. A single address with multiple ports, + // some of which are ready and some of which are not (because they come from + // different containers) will result in the address being displayed in different + // subsets for the different ports. No address will appear in both Addresses and + // NotReadyAddresses in the same subset. + // Sets of addresses and ports that comprise a service. + Subsets []EndpointSubset `json:"subsets" protobuf:"bytes,2,rep,name=subsets"` +} + +// EndpointSubset is a group of addresses with a common set of ports. The +// expanded set of endpoints is the Cartesian product of Addresses x Ports. +// For example, given: +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// } +// The resulting set of endpoints can be viewed as: +// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], +// b: [ 10.10.1.1:309, 10.10.2.2:309 ] +type EndpointSubset struct { + // IP addresses which offer the related ports that are marked as ready. These endpoints + // should be considered safe for load balancers and clients to utilize. + Addresses []EndpointAddress `json:"addresses,omitempty" protobuf:"bytes,1,rep,name=addresses"` + // IP addresses which offer the related ports but are not currently marked as ready + // because they have not yet finished starting, have recently failed a readiness check, + // or have recently failed a liveness check. + NotReadyAddresses []EndpointAddress `json:"notReadyAddresses,omitempty" protobuf:"bytes,2,rep,name=notReadyAddresses"` + // Port numbers available on the related IP addresses. + Ports []EndpointPort `json:"ports,omitempty" protobuf:"bytes,3,rep,name=ports"` +} + +// EndpointAddress is a tuple that describes single IP address. +type EndpointAddress struct { + // The IP of this endpoint. + // May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), + // or link-local multicast ((224.0.0.0/24). + // IPv6 is also accepted but not fully supported on all platforms. Also, certain + // kubernetes components, like kube-proxy, are not IPv6 ready. + // TODO: This should allow hostname or IP, See #4447. + IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"` + // The Hostname of this endpoint + Hostname string `json:"hostname,omitempty" protobuf:"bytes,3,opt,name=hostname"` + // Reference to object providing the endpoint. + TargetRef *ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,2,opt,name=targetRef"` +} + +// EndpointPort is a tuple that describes a single port. +type EndpointPort struct { + // The name of this port (corresponds to ServicePort.Name). + // Must be a DNS_LABEL. + // Optional only if one port is defined. + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + + // The port number of the endpoint. + Port int32 `json:"port" protobuf:"varint,2,opt,name=port"` + + // The IP protocol for this port. + // Must be UDP or TCP. + // Default is TCP. + Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,3,opt,name=protocol,casttype=Protocol"` +} + +// EndpointsList is a list of endpoints. +type EndpointsList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of endpoints. + Items []Endpoints `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// NodeSpec describes the attributes that a node is created with. +type NodeSpec struct { + // PodCIDR represents the pod IP range assigned to the node. + PodCIDR string `json:"podCIDR,omitempty" protobuf:"bytes,1,opt,name=podCIDR"` + // External ID of the node assigned by some machine database (e.g. a cloud provider). + // Deprecated. + ExternalID string `json:"externalID,omitempty" protobuf:"bytes,2,opt,name=externalID"` + // ID of the node assigned by the cloud provider in the format: :// + ProviderID string `json:"providerID,omitempty" protobuf:"bytes,3,opt,name=providerID"` + // Unschedulable controls node schedulability of new pods. By default, node is schedulable. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration"` + Unschedulable bool `json:"unschedulable,omitempty" protobuf:"varint,4,opt,name=unschedulable"` +} + +// DaemonEndpoint contains information about a single Daemon endpoint. +type DaemonEndpoint struct { + /* + The port tag was not properly in quotes in earlier releases, so it must be + uppercased for backwards compat (since it was falling back to var name of + 'Port'). + */ + + // Port number of the given endpoint. + Port int32 `json:"Port" protobuf:"varint,1,opt,name=Port"` +} + +// NodeDaemonEndpoints lists ports opened by daemons running on the Node. +type NodeDaemonEndpoints struct { + // Endpoint on which Kubelet is listening. + KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty" protobuf:"bytes,1,opt,name=kubeletEndpoint"` +} + +// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. +type NodeSystemInfo struct { + // Machine ID reported by the node. + MachineID string `json:"machineID" protobuf:"bytes,1,opt,name=machineID"` + // System UUID reported by the node. + SystemUUID string `json:"systemUUID" protobuf:"bytes,2,opt,name=systemUUID"` + // Boot ID reported by the node. + BootID string `json:"bootID" protobuf:"bytes,3,opt,name=bootID"` + // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + KernelVersion string `json:"kernelVersion" protobuf:"bytes,4,opt,name=kernelVersion"` + // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + OSImage string `json:"osImage" protobuf:"bytes,5,opt,name=osImage"` + // ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + ContainerRuntimeVersion string `json:"containerRuntimeVersion" protobuf:"bytes,6,opt,name=containerRuntimeVersion"` + // Kubelet Version reported by the node. + KubeletVersion string `json:"kubeletVersion" protobuf:"bytes,7,opt,name=kubeletVersion"` + // KubeProxy Version reported by the node. + KubeProxyVersion string `json:"kubeProxyVersion" protobuf:"bytes,8,opt,name=kubeProxyVersion"` + // The Operating System reported by the node + OperatingSystem string `json:"operatingSystem" protobuf:"bytes,9,opt,name=operatingSystem"` + // The Architecture reported by the node + Architecture string `json:"architecture" protobuf:"bytes,10,opt,name=architecture"` +} + +// NodeStatus is information about the current status of a node. +type NodeStatus struct { + // Capacity represents the total resources of a node. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity for more details. + Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` + // Allocatable represents the resources of a node that are available for scheduling. + // Defaults to Capacity. + Allocatable ResourceList `json:"allocatable,omitempty" protobuf:"bytes,2,rep,name=allocatable,casttype=ResourceList,castkey=ResourceName"` + // NodePhase is the recently observed lifecycle phase of the node. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase + Phase NodePhase `json:"phase,omitempty" protobuf:"bytes,3,opt,name=phase,casttype=NodePhase"` + // Conditions is an array of current observed node conditions. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition + Conditions []NodeCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` + // List of addresses reachable to the node. + // Queried from cloud provider, if available. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses + Addresses []NodeAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,5,rep,name=addresses"` + // Endpoints of daemons running on the Node. + DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty" protobuf:"bytes,6,opt,name=daemonEndpoints"` + // Set of ids/uuids to uniquely identify the node. + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info + NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty" protobuf:"bytes,7,opt,name=nodeInfo"` + // List of container images on this node + Images []ContainerImage `json:"images,omitempty" protobuf:"bytes,8,rep,name=images"` + // List of attachable volumes in use (mounted) by the node. + VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty" protobuf:"bytes,9,rep,name=volumesInUse"` + // List of volumes that are attached to the node. + VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty" protobuf:"bytes,10,rep,name=volumesAttached"` +} + +type UniqueVolumeName string + +// AttachedVolume describes a volume attached to a node +type AttachedVolume struct { + // Name of the attached volume + Name UniqueVolumeName `json:"name" protobuf:"bytes,1,rep,name=name"` + + // DevicePath represents the device path where the volume should be avilable + DevicePath string `json:"devicePath" protobuf:"bytes,2,rep,name=devicePath"` +} + +// AvoidPods describes pods that should avoid this node. This is the value for a +// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +// will eventually become a field of NodeStatus. +type AvoidPods struct { + // Bounded-sized list of signatures of pods that should avoid this node, sorted + // in timestamp order from oldest to newest. Size of the slice is unspecified. + PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty" protobuf:"bytes,1,rep,name=preferAvoidPods"` +} + +// Describes a class of pods that should avoid this node. +type PreferAvoidPodsEntry struct { + // The class of pods. + PodSignature PodSignature `json:"podSignature" protobuf:"bytes,1,opt,name=podSignature"` + // Time at which this entry was added to the list. + EvictionTime unversioned.Time `json:"evictionTime,omitempty" protobuf:"bytes,2,opt,name=evictionTime"` + // (brief) reason why this entry was added to the list. + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + // Human readable message indicating why this entry was added to the list. + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` +} + +// Describes the class of pods that should avoid this node. +// Exactly one field should be set. +type PodSignature struct { + // Reference to controller whose pods should avoid this node. + PodController *OwnerReference `json:"podController,omitempty" protobuf:"bytes,1,opt,name=podController"` +} + +// Describe a container image +type ContainerImage struct { + // Names by which this image is known. + // e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + Names []string `json:"names" protobuf:"bytes,1,rep,name=names"` + // The size of the image in bytes. + SizeBytes int64 `json:"sizeBytes,omitempty" protobuf:"varint,2,opt,name=sizeBytes"` +} + +type NodePhase string + +// These are the valid phases of node. +const ( + // NodePending means the node has been created/added by the system, but not configured. + NodePending NodePhase = "Pending" + // NodeRunning means the node has been configured and has Kubernetes components running. + NodeRunning NodePhase = "Running" + // NodeTerminated means the node has been removed from the cluster. + NodeTerminated NodePhase = "Terminated" +) + +type NodeConditionType string + +// These are valid conditions of node. Currently, we don't have enough information to decide +// node condition. In the future, we will add more. The proposed set of conditions are: +// NodeReachable, NodeLive, NodeReady, NodeSchedulable, NodeRunnable. +const ( + // NodeReady means kubelet is healthy and ready to accept pods. + NodeReady NodeConditionType = "Ready" + // NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk + // space on the node. + NodeOutOfDisk NodeConditionType = "OutOfDisk" + // NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory. + NodeMemoryPressure NodeConditionType = "MemoryPressure" + // NodeDiskPressure means the kubelet is under pressure due to insufficient available disk. + NodeDiskPressure NodeConditionType = "DiskPressure" + // NodeNetworkUnavailable means that network for the node is not correctly configured. + NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable" +) + +// NodeCondition contains condition infromation for a node. +type NodeCondition struct { + // Type of node condition. + Type NodeConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=NodeConditionType"` + // Status of the condition, one of True, False, Unknown. + Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` + // Last time we got an update on a given condition. + LastHeartbeatTime unversioned.Time `json:"lastHeartbeatTime,omitempty" protobuf:"bytes,3,opt,name=lastHeartbeatTime"` + // Last time the condition transit from one status to another. + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` + // (brief) reason for the condition's last transition. + Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` + // Human readable message indicating details about last transition. + Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` +} + +type NodeAddressType string + +// These are valid address type of node. +const ( + NodeHostName NodeAddressType = "Hostname" + NodeExternalIP NodeAddressType = "ExternalIP" + NodeInternalIP NodeAddressType = "InternalIP" +) + +// NodeAddress contains information for the node's address. +type NodeAddress struct { + // Node address type, one of Hostname, ExternalIP or InternalIP. + Type NodeAddressType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=NodeAddressType"` + // The node address. + Address string `json:"address" protobuf:"bytes,2,opt,name=address"` +} + +// ResourceName is the name identifying various resources in a ResourceList. +type ResourceName string + +// Resource names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters, +// with the -, _, and . characters allowed anywhere, except the first or last character. +// The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than +// camel case, separating compound words. +// Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name. +const ( + // CPU, in cores. (500m = .5 cores) + ResourceCPU ResourceName = "cpu" + // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) + ResourceMemory ResourceName = "memory" + // Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024) + ResourceStorage ResourceName = "storage" + // NVIDIA GPU, in devices. Alpha, might change: although fractional and allowing values >1, only one whole device per node is assigned. + ResourceNvidiaGPU ResourceName = "alpha.kubernetes.io/nvidia-gpu" + // Number of Pods that may be running on this Node: see ResourcePods +) + +// ResourceList is a set of (resource name, quantity) pairs. +type ResourceList map[ResourceName]resource.Quantity + +// +genclient=true +// +nonNamespaced=true + +// Node is a worker node in Kubernetes, formerly known as minion. +// Each node will have a unique identifier in the cache (i.e. in etcd). +type Node struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the behavior of a node. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec NodeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Most recently observed status of the node. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status NodeStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// NodeList is the whole list of all Nodes which have been registered with master. +type NodeList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of nodes + Items []Node `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +type FinalizerName string + +// These are internal finalizer values to Kubernetes, must be qualified name unless defined here +const ( + FinalizerKubernetes FinalizerName = "kubernetes" +) + +// NamespaceSpec describes the attributes on a Namespace. +type NamespaceSpec struct { + // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. + // More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers + Finalizers []FinalizerName `json:"finalizers,omitempty" protobuf:"bytes,1,rep,name=finalizers,casttype=FinalizerName"` +} + +// NamespaceStatus is information about the current status of a Namespace. +type NamespaceStatus struct { + // Phase is the current lifecycle phase of the namespace. + // More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases + Phase NamespacePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=NamespacePhase"` +} + +type NamespacePhase string + +// These are the valid phases of a namespace. +const ( + // NamespaceActive means the namespace is available for use in the system + NamespaceActive NamespacePhase = "Active" + // NamespaceTerminating means the namespace is undergoing graceful termination + NamespaceTerminating NamespacePhase = "Terminating" +) + +// +genclient=true +// +nonNamespaced=true + +// Namespace provides a scope for Names. +// Use of multiple namespaces is optional. +type Namespace struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the behavior of the Namespace. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec NamespaceSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Status describes the current status of a Namespace. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status NamespaceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// NamespaceList is a list of Namespaces. +type NamespaceList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is the list of Namespace objects in the list. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + Items []Namespace `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// Binding ties one object to another. +// For example, a pod is bound to a node by a scheduler. +type Binding struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // The target object that you want to bind to the standard object. + Target ObjectReference `json:"target" protobuf:"bytes,2,opt,name=target"` +} + +// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. +type Preconditions struct { + // Specifies the target UID. + UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` +} + +// DeleteOptions may be provided when deleting an API object +type DeleteOptions struct { + unversioned.TypeMeta `json:",inline"` + + // The duration in seconds before the object should be deleted. Value must be non-negative integer. + // The value zero indicates delete immediately. If this value is nil, the default grace period for the + // specified type will be used. + // Defaults to a per object value if not specified. zero means delete immediately. + GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=gracePeriodSeconds"` + + // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + // returned. + Preconditions *Preconditions `json:"preconditions,omitempty" protobuf:"bytes,2,opt,name=preconditions"` + + // Should the dependent objects be orphaned. If true/false, the "orphan" + // finalizer will be added to/removed from the object's finalizers list. + OrphanDependents *bool `json:"orphanDependents,omitempty" protobuf:"varint,3,opt,name=orphanDependents"` +} + +// ExportOptions is the query options to the standard REST get call. +type ExportOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Should this value be exported. Export strips fields that a user can not specify. + Export bool `json:"export" protobuf:"varint,1,opt,name=export"` + // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' + Exact bool `json:"exact" protobuf:"varint,2,opt,name=exact"` +} + +// ListOptions is the query options to a standard REST list call. +type ListOptions struct { + unversioned.TypeMeta `json:",inline"` + + // A selector to restrict the list of returned objects by their labels. + // Defaults to everything. + LabelSelector string `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"` + // A selector to restrict the list of returned objects by their fields. + // Defaults to everything. + FieldSelector string `json:"fieldSelector,omitempty" protobuf:"bytes,2,opt,name=fieldSelector"` + // Watch for changes to the described resources and return them as a stream of + // add, update, and remove notifications. Specify resourceVersion. + Watch bool `json:"watch,omitempty" protobuf:"varint,3,opt,name=watch"` + // When specified with a watch call, shows changes that occur after that particular version of a resource. + // Defaults to changes from the beginning of history. + ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"` + // Timeout for the list/watch call. + TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,5,opt,name=timeoutSeconds"` +} + +// PodLogOptions is the query options for a Pod's logs REST call. +type PodLogOptions struct { + unversioned.TypeMeta `json:",inline"` + + // The container for which to stream logs. Defaults to only container if there is one container in the pod. + Container string `json:"container,omitempty" protobuf:"bytes,1,opt,name=container"` + // Follow the log stream of the pod. Defaults to false. + Follow bool `json:"follow,omitempty" protobuf:"varint,2,opt,name=follow"` + // Return previous terminated container logs. Defaults to false. + Previous bool `json:"previous,omitempty" protobuf:"varint,3,opt,name=previous"` + // A relative time in seconds before the current time from which to show logs. If this value + // precedes the time a pod was started, only logs since the pod start will be returned. + // If this value is in the future, no logs will be returned. + // Only one of sinceSeconds or sinceTime may be specified. + SinceSeconds *int64 `json:"sinceSeconds,omitempty" protobuf:"varint,4,opt,name=sinceSeconds"` + // An RFC3339 timestamp from which to show logs. If this value + // precedes the time a pod was started, only logs since the pod start will be returned. + // If this value is in the future, no logs will be returned. + // Only one of sinceSeconds or sinceTime may be specified. + SinceTime *unversioned.Time `json:"sinceTime,omitempty" protobuf:"bytes,5,opt,name=sinceTime"` + // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line + // of log output. Defaults to false. + Timestamps bool `json:"timestamps,omitempty" protobuf:"varint,6,opt,name=timestamps"` + // If set, the number of lines from the end of the logs to show. If not specified, + // logs are shown from the creation of the container or sinceSeconds or sinceTime + TailLines *int64 `json:"tailLines,omitempty" protobuf:"varint,7,opt,name=tailLines"` + // If set, the number of bytes to read from the server before terminating the + // log output. This may not display a complete final line of logging, and may return + // slightly more or slightly less than the specified limit. + LimitBytes *int64 `json:"limitBytes,omitempty" protobuf:"varint,8,opt,name=limitBytes"` +} + +// PodAttachOptions is the query options to a Pod's remote attach call. +// --- +// TODO: merge w/ PodExecOptions below for stdin, stdout, etc +// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY +type PodAttachOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Stdin if true, redirects the standard input stream of the pod for this call. + // Defaults to false. + Stdin bool `json:"stdin,omitempty" protobuf:"varint,1,opt,name=stdin"` + + // Stdout if true indicates that stdout is to be redirected for the attach call. + // Defaults to true. + Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` + + // Stderr if true indicates that stderr is to be redirected for the attach call. + // Defaults to true. + Stderr bool `json:"stderr,omitempty" protobuf:"varint,3,opt,name=stderr"` + + // TTY if true indicates that a tty will be allocated for the attach call. + // This is passed through the container runtime so the tty + // is allocated on the worker node by the container runtime. + // Defaults to false. + TTY bool `json:"tty,omitempty" protobuf:"varint,4,opt,name=tty"` + + // The container in which to execute the command. + // Defaults to only container if there is only one container in the pod. + Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` +} + +// PodExecOptions is the query options to a Pod's remote exec call. +// --- +// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging +// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY +type PodExecOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Redirect the standard input stream of the pod for this call. + // Defaults to false. + Stdin bool `json:"stdin,omitempty" protobuf:"varint,1,opt,name=stdin"` + + // Redirect the standard output stream of the pod for this call. + // Defaults to true. + Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` + + // Redirect the standard error stream of the pod for this call. + // Defaults to true. + Stderr bool `json:"stderr,omitempty" protobuf:"varint,3,opt,name=stderr"` + + // TTY if true indicates that a tty will be allocated for the exec call. + // Defaults to false. + TTY bool `json:"tty,omitempty" protobuf:"varint,4,opt,name=tty"` + + // Container in which to execute the command. + // Defaults to only container if there is only one container in the pod. + Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` + + // Command is the remote command to execute. argv array. Not executed within a shell. + Command []string `json:"command" protobuf:"bytes,6,rep,name=command"` +} + +// PodProxyOptions is the query options to a Pod's proxy call. +type PodProxyOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Path is the URL path to use for the current proxy request to pod. + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` +} + +// NodeProxyOptions is the query options to a Node's proxy call. +type NodeProxyOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Path is the URL path to use for the current proxy request to node. + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` +} + +// ServiceProxyOptions is the query options to a Service's proxy call. +type ServiceProxyOptions struct { + unversioned.TypeMeta `json:",inline"` + + // Path is the part of URLs that include service endpoints, suffixes, + // and parameters to use for the current proxy request to service. + // For example, the whole request URL is + // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. + // Path is _search?q=user:kimchy. + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` +} + +// OwnerReference contains enough information to let you identify an owning +// object. Currently, an owning object must be in the same namespace, so there +// is no namespace field. +type OwnerReference struct { + // API version of the referent. + APIVersion string `json:"apiVersion" protobuf:"bytes,5,opt,name=apiVersion"` + // Kind of the referent. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + Name string `json:"name" protobuf:"bytes,3,opt,name=name"` + // UID of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + UID types.UID `json:"uid" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` + // If true, this reference points to the managing controller. + Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"` +} + +// ObjectReference contains enough information to let you inspect or modify the referred object. +type ObjectReference struct { + // Kind of the referent. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` + // Namespace of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"` + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"` + // UID of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` + // API version of the referent. + APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,5,opt,name=apiVersion"` + // Specific resourceVersion to which this reference is made, if any. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"` + + // If referring to a piece of an object instead of an entire object, this string + // should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. + // For example, if the object reference is to a container within a pod, this would take on a value like: + // "spec.containers{name}" (where "name" refers to the name of the container that triggered + // the event) or if no container name is specified "spec.containers[2]" (container with + // index 2 in this pod). This syntax is chosen only to have some well-defined way of + // referencing a part of an object. + // TODO: this design is not final and this field is subject to change in the future. + FieldPath string `json:"fieldPath,omitempty" protobuf:"bytes,7,opt,name=fieldPath"` +} + +// LocalObjectReference contains enough information to let you locate the +// referenced object inside the same namespace. +type LocalObjectReference struct { + // Name of the referent. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + // TODO: Add other useful fields. apiVersion, kind, uid? + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` +} + +// SerializedReference is a reference to serialized object. +type SerializedReference struct { + unversioned.TypeMeta `json:",inline"` + // The reference to an object in the system. + Reference ObjectReference `json:"reference,omitempty" protobuf:"bytes,1,opt,name=reference"` +} + +// EventSource contains information for an event. +type EventSource struct { + // Component from which the event is generated. + Component string `json:"component,omitempty" protobuf:"bytes,1,opt,name=component"` + // Host name on which the event is generated. + Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"` +} + +// Valid values for event types (new types could be added in future) +const ( + // Information only and will not cause any problems + EventTypeNormal string = "Normal" + // These events are to warn that something might go wrong + EventTypeWarning string = "Warning" +) + +// +genclient=true + +// Event is a report of an event somewhere in the cluster. +// TODO: Decide whether to store these separately or with the object they apply to. +type Event struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` + + // The object that this event is about. + InvolvedObject ObjectReference `json:"involvedObject" protobuf:"bytes,2,opt,name=involvedObject"` + + // This should be a short, machine understandable string that gives the reason + // for the transition into the object's current status. + // TODO: provide exact specification for format. + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + + // A human-readable description of the status of this operation. + // TODO: decide on maximum length. + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` + + // The component reporting this event. Should be a short machine understandable string. + Source EventSource `json:"source,omitempty" protobuf:"bytes,5,opt,name=source"` + + // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + FirstTimestamp unversioned.Time `json:"firstTimestamp,omitempty" protobuf:"bytes,6,opt,name=firstTimestamp"` + + // The time at which the most recent occurrence of this event was recorded. + LastTimestamp unversioned.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` + + // The number of times this event has occurred. + Count int32 `json:"count,omitempty" protobuf:"varint,8,opt,name=count"` + + // Type of this event (Normal, Warning), new types could be added in the future + Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` +} + +// EventList is a list of events. +type EventList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of events + Items []Event `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// List holds a list of objects, which may not be known by the server. +type List struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of objects + Items []runtime.RawExtension `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// LimitType is a type of object that is limited +type LimitType string + +const ( + // Limit that applies to all pods in a namespace + LimitTypePod LimitType = "Pod" + // Limit that applies to all containers in a namespace + LimitTypeContainer LimitType = "Container" +) + +// LimitRangeItem defines a min/max usage limit for any resource that matches on kind. +type LimitRangeItem struct { + // Type of resource that this limit applies to. + Type LimitType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=LimitType"` + // Max usage constraints on this kind by resource name. + Max ResourceList `json:"max,omitempty" protobuf:"bytes,2,rep,name=max,casttype=ResourceList,castkey=ResourceName"` + // Min usage constraints on this kind by resource name. + Min ResourceList `json:"min,omitempty" protobuf:"bytes,3,rep,name=min,casttype=ResourceList,castkey=ResourceName"` + // Default resource requirement limit value by resource name if resource limit is omitted. + Default ResourceList `json:"default,omitempty" protobuf:"bytes,4,rep,name=default,casttype=ResourceList,castkey=ResourceName"` + // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + DefaultRequest ResourceList `json:"defaultRequest,omitempty" protobuf:"bytes,5,rep,name=defaultRequest,casttype=ResourceList,castkey=ResourceName"` + // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty" protobuf:"bytes,6,rep,name=maxLimitRequestRatio,casttype=ResourceList,castkey=ResourceName"` +} + +// LimitRangeSpec defines a min/max usage limit for resources that match on kind. +type LimitRangeSpec struct { + // Limits is the list of LimitRangeItem objects that are enforced. + Limits []LimitRangeItem `json:"limits" protobuf:"bytes,1,rep,name=limits"` +} + +// +genclient=true + +// LimitRange sets resource usage limits for each kind of resource in a Namespace. +type LimitRange struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the limits enforced. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec LimitRangeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` +} + +// LimitRangeList is a list of LimitRange items. +type LimitRangeList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is a list of LimitRange objects. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md + Items []LimitRange `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// The following identify resource constants for Kubernetes object types +const ( + // Pods, number + ResourcePods ResourceName = "pods" + // Services, number + ResourceServices ResourceName = "services" + // ReplicationControllers, number + ResourceReplicationControllers ResourceName = "replicationcontrollers" + // ResourceQuotas, number + ResourceQuotas ResourceName = "resourcequotas" + // ResourceSecrets, number + ResourceSecrets ResourceName = "secrets" + // ResourceConfigMaps, number + ResourceConfigMaps ResourceName = "configmaps" + // ResourcePersistentVolumeClaims, number + ResourcePersistentVolumeClaims ResourceName = "persistentvolumeclaims" + // ResourceServicesNodePorts, number + ResourceServicesNodePorts ResourceName = "services.nodeports" + // ResourceServicesLoadBalancers, number + ResourceServicesLoadBalancers ResourceName = "services.loadbalancers" + // CPU request, in cores. (500m = .5 cores) + ResourceRequestsCPU ResourceName = "requests.cpu" + // Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) + ResourceRequestsMemory ResourceName = "requests.memory" + // Storage request, in bytes + ResourceRequestsStorage ResourceName = "requests.storage" + // CPU limit, in cores. (500m = .5 cores) + ResourceLimitsCPU ResourceName = "limits.cpu" + // Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) + ResourceLimitsMemory ResourceName = "limits.memory" +) + +// A ResourceQuotaScope defines a filter that must match each object tracked by a quota +type ResourceQuotaScope string + +const ( + // Match all pod objects where spec.activeDeadlineSeconds + ResourceQuotaScopeTerminating ResourceQuotaScope = "Terminating" + // Match all pod objects where !spec.activeDeadlineSeconds + ResourceQuotaScopeNotTerminating ResourceQuotaScope = "NotTerminating" + // Match all pod objects that have best effort quality of service + ResourceQuotaScopeBestEffort ResourceQuotaScope = "BestEffort" + // Match all pod objects that do not have best effort quality of service + ResourceQuotaScopeNotBestEffort ResourceQuotaScope = "NotBestEffort" +) + +// ResourceQuotaSpec defines the desired hard limits to enforce for Quota. +type ResourceQuotaSpec struct { + // Hard is the set of desired hard limits for each named resource. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Hard ResourceList `json:"hard,omitempty" protobuf:"bytes,1,rep,name=hard,casttype=ResourceList,castkey=ResourceName"` + // A collection of filters that must match each object tracked by a quota. + // If not specified, the quota matches all objects. + Scopes []ResourceQuotaScope `json:"scopes,omitempty" protobuf:"bytes,2,rep,name=scopes,casttype=ResourceQuotaScope"` +} + +// ResourceQuotaStatus defines the enforced hard limits and observed use. +type ResourceQuotaStatus struct { + // Hard is the set of enforced hard limits for each named resource. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Hard ResourceList `json:"hard,omitempty" protobuf:"bytes,1,rep,name=hard,casttype=ResourceList,castkey=ResourceName"` + // Used is the current observed total usage of the resource in the namespace. + Used ResourceList `json:"used,omitempty" protobuf:"bytes,2,rep,name=used,casttype=ResourceList,castkey=ResourceName"` +} + +// +genclient=true + +// ResourceQuota sets aggregate quota restrictions enforced per namespace +type ResourceQuota struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the desired quota. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec ResourceQuotaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + + // Status defines the actual enforced quota and its current usage. + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status ResourceQuotaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// ResourceQuotaList is a list of ResourceQuota items. +type ResourceQuotaList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is a list of ResourceQuota objects. + // More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota + Items []ResourceQuota `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// +genclient=true + +// Secret holds secret data of a certain type. The total bytes of the values in +// the Data field must be less than MaxSecretSize bytes. +type Secret struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN + // or leading dot followed by valid DNS_SUBDOMAIN. + // The serialized form of the secret data is a base64 encoded string, + // representing the arbitrary (possibly non-string) data value here. + // Described in https://tools.ietf.org/html/rfc4648#section-4 + Data map[string][]byte `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` + + // stringData allows specifying non-binary secret data in string form. + // It is provided as a write-only convenience method. + // All keys and values are merged into the data field on write, overwriting any existing values. + // It is never output when reading from the API. + // +k8s:conversion-gen=false + StringData map[string]string `json:"stringData,omitempty" protobuf:"bytes,4,rep,name=stringData"` + + // Used to facilitate programmatic handling of secret data. + Type SecretType `json:"type,omitempty" protobuf:"bytes,3,opt,name=type,casttype=SecretType"` +} + +const MaxSecretSize = 1 * 1024 * 1024 + +type SecretType string + +const ( + // SecretTypeOpaque is the default. Arbitrary user-defined data + SecretTypeOpaque SecretType = "Opaque" + + // SecretTypeServiceAccountToken contains a token that identifies a service account to the API + // + // Required fields: + // - Secret.Annotations["kubernetes.io/service-account.name"] - the name of the ServiceAccount the token identifies + // - Secret.Annotations["kubernetes.io/service-account.uid"] - the UID of the ServiceAccount the token identifies + // - Secret.Data["token"] - a token that identifies the service account to the API + SecretTypeServiceAccountToken SecretType = "kubernetes.io/service-account-token" + + // ServiceAccountNameKey is the key of the required annotation for SecretTypeServiceAccountToken secrets + ServiceAccountNameKey = "kubernetes.io/service-account.name" + // ServiceAccountUIDKey is the key of the required annotation for SecretTypeServiceAccountToken secrets + ServiceAccountUIDKey = "kubernetes.io/service-account.uid" + // ServiceAccountTokenKey is the key of the required data for SecretTypeServiceAccountToken secrets + ServiceAccountTokenKey = "token" + // ServiceAccountKubeconfigKey is the key of the optional kubeconfig data for SecretTypeServiceAccountToken secrets + ServiceAccountKubeconfigKey = "kubernetes.kubeconfig" + // ServiceAccountRootCAKey is the key of the optional root certificate authority for SecretTypeServiceAccountToken secrets + ServiceAccountRootCAKey = "ca.crt" + // ServiceAccountNamespaceKey is the key of the optional namespace to use as the default for namespaced API calls + ServiceAccountNamespaceKey = "namespace" + + // SecretTypeDockercfg contains a dockercfg file that follows the same format rules as ~/.dockercfg + // + // Required fields: + // - Secret.Data[".dockercfg"] - a serialized ~/.dockercfg file + SecretTypeDockercfg SecretType = "kubernetes.io/dockercfg" + + // DockerConfigKey is the key of the required data for SecretTypeDockercfg secrets + DockerConfigKey = ".dockercfg" + + // SecretTypeTLS contains information about a TLS client or server secret. It + // is primarily used with TLS termination of the Ingress resource, but may be + // used in other types. + // + // Required fields: + // - Secret.Data["tls.key"] - TLS private key. + // Secret.Data["tls.crt"] - TLS certificate. + // TODO: Consider supporting different formats, specifying CA/destinationCA. + SecretTypeTLS SecretType = "kubernetes.io/tls" + + // TLSCertKey is the key for tls certificates in a TLS secert. + TLSCertKey = "tls.crt" + // TLSPrivateKeyKey is the key for the private key field in a TLS secret. + TLSPrivateKeyKey = "tls.key" +) + +// SecretList is a list of Secret. +type SecretList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is a list of secret objects. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md + Items []Secret `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// +genclient=true + +// ConfigMap holds configuration data for pods to consume. +type ConfigMap struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Data contains the configuration data. + // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + Data map[string]string `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` +} + +// ConfigMapList is a resource containing a list of ConfigMap objects. +type ConfigMapList struct { + unversioned.TypeMeta `json:",inline"` + + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is the list of ConfigMaps. + Items []ConfigMap `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// Type and constants for component health validation. +type ComponentConditionType string + +// These are the valid conditions for the component. +const ( + ComponentHealthy ComponentConditionType = "Healthy" +) + +// Information about the condition of a component. +type ComponentCondition struct { + // Type of condition for a component. + // Valid value: "Healthy" + Type ComponentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ComponentConditionType"` + // Status of the condition for a component. + // Valid values for "Healthy": "True", "False", or "Unknown". + Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` + // Message about the condition for a component. + // For example, information about a health check. + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + // Condition error code for a component. + // For example, a health check error code. + Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"` +} + +// +genclient=true +// +nonNamespaced=true + +// ComponentStatus (and ComponentStatusList) holds the cluster validation info. +type ComponentStatus struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of component conditions observed + Conditions []ComponentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` +} + +// Status of all the conditions for the component as a list of ComponentStatus objects. +type ComponentStatusList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of ComponentStatus objects. + Items []ComponentStatus `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// DownwardAPIVolumeSource represents a volume containing downward API info. +// Downward API volumes support ownership management and SELinux relabeling. +type DownwardAPIVolumeSource struct { + // Items is a list of downward API volume file + Items []DownwardAPIVolumeFile `json:"items,omitempty" protobuf:"bytes,1,rep,name=items"` +} + +// 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 '..' + Path string `json:"path" protobuf:"bytes,1,opt,name=path"` + // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,2,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. + ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,3,opt,name=resourceFieldRef"` +} + +// SecurityContext holds security configuration that will be applied to a container. +// Some fields are present in both SecurityContext and PodSecurityContext. When both +// are set, the values in SecurityContext take precedence. +type SecurityContext struct { + // The capabilities to add/drop when running containers. + // Defaults to the default set of capabilities granted by the container runtime. + Capabilities *Capabilities `json:"capabilities,omitempty" protobuf:"bytes,1,opt,name=capabilities"` + // Run container in privileged mode. + // Processes in privileged containers are essentially equivalent to root on the host. + // Defaults to false. + Privileged *bool `json:"privileged,omitempty" protobuf:"varint,2,opt,name=privileged"` + // The SELinux context to be applied to the container. + // If unspecified, the container runtime will allocate a random SELinux context for each + // container. May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,3,opt,name=seLinuxOptions"` + // The UID to run the entrypoint of the container process. + // Defaults to user specified in image metadata if unspecified. + // May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + RunAsUser *int64 `json:"runAsUser,omitempty" protobuf:"varint,4,opt,name=runAsUser"` + // Indicates that the container must run as a non-root user. + // If true, the Kubelet will validate the image at runtime to ensure that it + // does not run as UID 0 (root) and fail to start the container if it does. + // If unset or false, no such validation will be performed. + // May also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" protobuf:"varint,5,opt,name=runAsNonRoot"` + // Whether this container has a read-only root filesystem. + // Default is false. + ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty" protobuf:"varint,6,opt,name=readOnlyRootFilesystem"` +} + +// SELinuxOptions are the labels to be applied to the container +type SELinuxOptions struct { + // User is a SELinux user label that applies to the container. + User string `json:"user,omitempty" protobuf:"bytes,1,opt,name=user"` + // Role is a SELinux role label that applies to the container. + Role string `json:"role,omitempty" protobuf:"bytes,2,opt,name=role"` + // Type is a SELinux type label that applies to the container. + Type string `json:"type,omitempty" protobuf:"bytes,3,opt,name=type"` + // Level is SELinux level label that applies to the container. + Level string `json:"level,omitempty" protobuf:"bytes,4,opt,name=level"` +} + +// RangeAllocation is not a public type. +type RangeAllocation struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Range is string that identifies the range represented by 'data'. + Range string `json:"range" protobuf:"bytes,2,opt,name=range"` + // Data is a bit array containing all allocated addresses in the previous segment. + Data []byte `json:"data" protobuf:"bytes,3,opt,name=data"` +} + +const ( + // "default-scheduler" is the name of default scheduler. + DefaultSchedulerName = "default-scheduler" +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types_swagger_doc_generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types_swagger_doc_generated.go new file mode 100644 index 0000000000..21e6b82c74 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/types_swagger_doc_generated.go @@ -0,0 +1,1772 @@ +/* +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 + +// This file contains a collection of methods that can be used from go-restful to +// generate Swagger API documentation for its models. Please read this PR for more +// information on the implementation: https://github.com/emicklei/go-restful/pull/215 +// +// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if +// they are on one line! For multiple line or blocks that you want to ignore use ---. +// Any context after a --- is ignored. +// +// Those methods can be generated by using hack/update-generated-swagger-docs.sh + +// AUTO-GENERATED FUNCTIONS START HERE +var map_AWSElasticBlockStoreVolumeSource = map[string]string{ + "": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "volumeID": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore", + "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore", + "partition": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "readOnly": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore", +} + +func (AWSElasticBlockStoreVolumeSource) SwaggerDoc() map[string]string { + return map_AWSElasticBlockStoreVolumeSource +} + +var map_Affinity = map[string]string{ + "": "Affinity is a group of affinity scheduling rules.", + "nodeAffinity": "Describes node affinity scheduling rules for the pod.", + "podAffinity": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "podAntiAffinity": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", +} + +func (Affinity) SwaggerDoc() map[string]string { + return map_Affinity +} + +var map_AttachedVolume = map[string]string{ + "": "AttachedVolume describes a volume attached to a node", + "name": "Name of the attached volume", + "devicePath": "DevicePath represents the device path where the volume should be avilable", +} + +func (AttachedVolume) SwaggerDoc() map[string]string { + return map_AttachedVolume +} + +var map_AvoidPods = map[string]string{ + "": "AvoidPods describes pods that should avoid this node. This is the value for a Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and will eventually become a field of NodeStatus.", + "preferAvoidPods": "Bounded-sized list of signatures of pods that should avoid this node, sorted in timestamp order from oldest to newest. Size of the slice is unspecified.", +} + +func (AvoidPods) SwaggerDoc() map[string]string { + return map_AvoidPods +} + +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", + "shareName": "Share Name", + "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", +} + +func (AzureFileVolumeSource) SwaggerDoc() map[string]string { + return map_AzureFileVolumeSource +} + +var map_Binding = map[string]string{ + "": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "target": "The target object that you want to bind to the standard object.", +} + +func (Binding) SwaggerDoc() map[string]string { + return map_Binding +} + +var map_Capabilities = map[string]string{ + "": "Adds and removes POSIX capabilities from running containers.", + "add": "Added capabilities", + "drop": "Removed capabilities", +} + +func (Capabilities) SwaggerDoc() map[string]string { + return map_Capabilities +} + +var map_CephFSVolumeSource = map[string]string{ + "": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "monitors": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "path": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "user": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "secretFile": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "secretRef": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", +} + +func (CephFSVolumeSource) SwaggerDoc() map[string]string { + return map_CephFSVolumeSource +} + +var map_CinderVolumeSource = map[string]string{ + "": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "volumeID": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", +} + +func (CinderVolumeSource) SwaggerDoc() map[string]string { + return map_CinderVolumeSource +} + +var map_ComponentCondition = map[string]string{ + "": "Information about the condition of a component.", + "type": "Type of condition for a component. Valid value: \"Healthy\"", + "status": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "message": "Message about the condition for a component. For example, information about a health check.", + "error": "Condition error code for a component. For example, a health check error code.", +} + +func (ComponentCondition) SwaggerDoc() map[string]string { + return map_ComponentCondition +} + +var map_ComponentStatus = map[string]string{ + "": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "conditions": "List of component conditions observed", +} + +func (ComponentStatus) SwaggerDoc() map[string]string { + return map_ComponentStatus +} + +var map_ComponentStatusList = map[string]string{ + "": "Status of all the conditions for the component as a list of ComponentStatus objects.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of ComponentStatus objects.", +} + +func (ComponentStatusList) SwaggerDoc() map[string]string { + return map_ComponentStatusList +} + +var map_ConfigMap = map[string]string{ + "": "ConfigMap holds configuration data for pods to consume.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "data": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.", +} + +func (ConfigMap) SwaggerDoc() map[string]string { + return map_ConfigMap +} + +var map_ConfigMapKeySelector = map[string]string{ + "": "Selects a key from a ConfigMap.", + "key": "The key to select.", +} + +func (ConfigMapKeySelector) SwaggerDoc() map[string]string { + return map_ConfigMapKeySelector +} + +var map_ConfigMapList = map[string]string{ + "": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "metadata": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "items": "Items is the list of ConfigMaps.", +} + +func (ConfigMapList) SwaggerDoc() map[string]string { + return map_ConfigMapList +} + +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 '..'.", +} + +func (ConfigMapVolumeSource) SwaggerDoc() map[string]string { + return map_ConfigMapVolumeSource +} + +var map_Container = map[string]string{ + "": "A single application container that you want to run within a pod.", + "name": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "image": "Docker image name. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md", + "command": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands", + "args": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md#containers-and-commands", + "workingDir": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "ports": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", + "env": "List of environment variables to set in the container. Cannot be updated.", + "resources": "Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources", + "volumeMounts": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes", + "readinessProbe": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes", + "lifecycle": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", + "terminationMessagePath": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated.", + "imagePullPolicy": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#updating-images", + "securityContext": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md", + "stdin": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "stdinOnce": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "tty": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", +} + +func (Container) SwaggerDoc() map[string]string { + return map_Container +} + +var map_ContainerImage = map[string]string{ + "": "Describe a container image", + "names": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", + "sizeBytes": "The size of the image in bytes.", +} + +func (ContainerImage) SwaggerDoc() map[string]string { + return map_ContainerImage +} + +var map_ContainerPort = map[string]string{ + "": "ContainerPort represents a network port in a single container.", + "name": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "hostPort": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "containerPort": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "protocol": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", + "hostIP": "What host IP to bind the external port to.", +} + +func (ContainerPort) SwaggerDoc() map[string]string { + return map_ContainerPort +} + +var map_ContainerState = map[string]string{ + "": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "waiting": "Details about a waiting container", + "running": "Details about a running container", + "terminated": "Details about a terminated container", +} + +func (ContainerState) SwaggerDoc() map[string]string { + return map_ContainerState +} + +var map_ContainerStateRunning = map[string]string{ + "": "ContainerStateRunning is a running state of a container.", + "startedAt": "Time at which the container was last (re-)started", +} + +func (ContainerStateRunning) SwaggerDoc() map[string]string { + return map_ContainerStateRunning +} + +var map_ContainerStateTerminated = map[string]string{ + "": "ContainerStateTerminated is a terminated state of a container.", + "exitCode": "Exit status from the last termination of the container", + "signal": "Signal from the last termination of the container", + "reason": "(brief) reason from the last termination of the container", + "message": "Message regarding the last termination of the container", + "startedAt": "Time at which previous execution of the container started", + "finishedAt": "Time at which the container last terminated", + "containerID": "Container's ID in the format 'docker://'", +} + +func (ContainerStateTerminated) SwaggerDoc() map[string]string { + return map_ContainerStateTerminated +} + +var map_ContainerStateWaiting = map[string]string{ + "": "ContainerStateWaiting is a waiting state of a container.", + "reason": "(brief) reason the container is not yet running.", + "message": "Message regarding why the container is not yet running.", +} + +func (ContainerStateWaiting) SwaggerDoc() map[string]string { + return map_ContainerStateWaiting +} + +var map_ContainerStatus = map[string]string{ + "": "ContainerStatus contains details for the current status of this container.", + "name": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "state": "Details about the container's current condition.", + "lastState": "Details about the container's last termination condition.", + "ready": "Specifies whether the container has passed its readiness probe.", + "restartCount": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", + "image": "The image the container is running. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md", + "imageID": "ImageID of the container's image.", + "containerID": "Container's ID in the format 'docker://'. More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#container-information", +} + +func (ContainerStatus) SwaggerDoc() map[string]string { + return map_ContainerStatus +} + +var map_DaemonEndpoint = map[string]string{ + "": "DaemonEndpoint contains information about a single Daemon endpoint.", + "Port": "Port number of the given endpoint.", +} + +func (DaemonEndpoint) SwaggerDoc() map[string]string { + return map_DaemonEndpoint +} + +var map_DeleteOptions = map[string]string{ + "": "DeleteOptions may be provided when deleting an API object", + "gracePeriodSeconds": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "preconditions": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", + "orphanDependents": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", +} + +func (DeleteOptions) SwaggerDoc() map[string]string { + return map_DeleteOptions +} + +var map_DownwardAPIVolumeFile = map[string]string{ + "": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "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.", +} + +func (DownwardAPIVolumeFile) SwaggerDoc() map[string]string { + return map_DownwardAPIVolumeFile +} + +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", +} + +func (DownwardAPIVolumeSource) SwaggerDoc() map[string]string { + return map_DownwardAPIVolumeSource +} + +var map_EmptyDirVolumeSource = map[string]string{ + "": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "medium": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir", +} + +func (EmptyDirVolumeSource) SwaggerDoc() map[string]string { + return map_EmptyDirVolumeSource +} + +var map_EndpointAddress = map[string]string{ + "": "EndpointAddress is a tuple that describes single IP address.", + "ip": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", + "hostname": "The Hostname of this endpoint", + "targetRef": "Reference to object providing the endpoint.", +} + +func (EndpointAddress) SwaggerDoc() map[string]string { + return map_EndpointAddress +} + +var map_EndpointPort = map[string]string{ + "": "EndpointPort is a tuple that describes a single port.", + "name": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", + "port": "The port number of the endpoint.", + "protocol": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", +} + +func (EndpointPort) SwaggerDoc() map[string]string { + return map_EndpointPort +} + +var map_EndpointSubset = map[string]string{ + "": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "addresses": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "notReadyAddresses": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "ports": "Port numbers available on the related IP addresses.", +} + +func (EndpointSubset) SwaggerDoc() map[string]string { + return map_EndpointSubset +} + +var map_Endpoints = map[string]string{ + "": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "subsets": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", +} + +func (Endpoints) SwaggerDoc() map[string]string { + return map_Endpoints +} + +var map_EndpointsList = map[string]string{ + "": "EndpointsList is a list of endpoints.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of endpoints.", +} + +func (EndpointsList) SwaggerDoc() map[string]string { + return map_EndpointsList +} + +var map_EnvVar = map[string]string{ + "": "EnvVar represents an environment variable present in a Container.", + "name": "Name of the environment variable. Must be a C_IDENTIFIER.", + "value": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "valueFrom": "Source for the environment variable's value. Cannot be used if value is not empty.", +} + +func (EnvVar) SwaggerDoc() map[string]string { + return map_EnvVar +} + +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.", + "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", +} + +func (EnvVarSource) SwaggerDoc() map[string]string { + return map_EnvVarSource +} + +var map_Event = map[string]string{ + "": "Event is a report of an event somewhere in the cluster.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "involvedObject": "The object that this event is about.", + "reason": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "message": "A human-readable description of the status of this operation.", + "source": "The component reporting this event. Should be a short machine understandable string.", + "firstTimestamp": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", + "lastTimestamp": "The time at which the most recent occurrence of this event was recorded.", + "count": "The number of times this event has occurred.", + "type": "Type of this event (Normal, Warning), new types could be added in the future", +} + +func (Event) SwaggerDoc() map[string]string { + return map_Event +} + +var map_EventList = map[string]string{ + "": "EventList is a list of events.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of events", +} + +func (EventList) SwaggerDoc() map[string]string { + return map_EventList +} + +var map_EventSource = map[string]string{ + "": "EventSource contains information for an event.", + "component": "Component from which the event is generated.", + "host": "Host name on which the event is generated.", +} + +func (EventSource) SwaggerDoc() map[string]string { + return map_EventSource +} + +var map_ExecAction = map[string]string{ + "": "ExecAction describes a \"run in container\" action.", + "command": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", +} + +func (ExecAction) SwaggerDoc() map[string]string { + return map_ExecAction +} + +var map_ExportOptions = map[string]string{ + "": "ExportOptions is the query options to the standard REST get call.", + "export": "Should this value be exported. Export strips fields that a user can not specify.", + "exact": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", +} + +func (ExportOptions) SwaggerDoc() map[string]string { + return map_ExportOptions +} + +var map_FCVolumeSource = map[string]string{ + "": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "targetWWNs": "Required: FC target world wide names (WWNs)", + "lun": "Required: FC target lun number", + "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": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", +} + +func (FCVolumeSource) SwaggerDoc() map[string]string { + return map_FCVolumeSource +} + +var map_FlexVolumeSource = map[string]string{ + "": "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.", + "driver": "Driver is the name of the driver to use for this volume.", + "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "secretRef": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", + "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "options": "Optional: Extra command options if any.", +} + +func (FlexVolumeSource) SwaggerDoc() map[string]string { + return map_FlexVolumeSource +} + +var map_FlockerVolumeSource = map[string]string{ + "": "Represents a Flocker volume mounted by the Flocker agent. Flocker volumes do not support ownership management or SELinux relabeling.", + "datasetName": "Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker", +} + +func (FlockerVolumeSource) SwaggerDoc() map[string]string { + return map_FlockerVolumeSource +} + +var map_GCEPersistentDiskVolumeSource = map[string]string{ + "": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "pdName": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk", + "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk", + "partition": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk", + "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk", +} + +func (GCEPersistentDiskVolumeSource) SwaggerDoc() map[string]string { + return map_GCEPersistentDiskVolumeSource +} + +var map_GitRepoVolumeSource = map[string]string{ + "": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", + "repository": "Repository URL", + "revision": "Commit hash for the specified revision.", + "directory": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", +} + +func (GitRepoVolumeSource) SwaggerDoc() map[string]string { + return map_GitRepoVolumeSource +} + +var map_GlusterfsVolumeSource = map[string]string{ + "": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "endpoints": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "path": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "readOnly": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", +} + +func (GlusterfsVolumeSource) SwaggerDoc() map[string]string { + return map_GlusterfsVolumeSource +} + +var map_HTTPGetAction = map[string]string{ + "": "HTTPGetAction describes an action based on HTTP Get requests.", + "path": "Path to access on the HTTP server.", + "port": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "host": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "scheme": "Scheme to use for connecting to the host. Defaults to HTTP.", + "httpHeaders": "Custom headers to set in the request. HTTP allows repeated headers.", +} + +func (HTTPGetAction) SwaggerDoc() map[string]string { + return map_HTTPGetAction +} + +var map_HTTPHeader = map[string]string{ + "": "HTTPHeader describes a custom header to be used in HTTP probes", + "name": "The header field name", + "value": "The header field value", +} + +func (HTTPHeader) SwaggerDoc() map[string]string { + return map_HTTPHeader +} + +var map_Handler = map[string]string{ + "": "Handler defines a specific action that should be taken", + "exec": "One and only one of the following should be specified. Exec specifies the action to take.", + "httpGet": "HTTPGet specifies the http request to perform.", + "tcpSocket": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", +} + +func (Handler) SwaggerDoc() map[string]string { + return map_Handler +} + +var map_HostPathVolumeSource = map[string]string{ + "": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "path": "Path of the directory on the host. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath", +} + +func (HostPathVolumeSource) SwaggerDoc() map[string]string { + return map_HostPathVolumeSource +} + +var map_ISCSIVolumeSource = map[string]string{ + "": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "targetPortal": "iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "iqn": "Target iSCSI Qualified Name.", + "lun": "iSCSI target lun number.", + "iscsiInterface": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.", + "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#iscsi", + "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", +} + +func (ISCSIVolumeSource) SwaggerDoc() map[string]string { + return map_ISCSIVolumeSource +} + +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 '..'.", +} + +func (KeyToPath) SwaggerDoc() map[string]string { + return map_KeyToPath +} + +var map_Lifecycle = map[string]string{ + "": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "postStart": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details", + "preStop": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/HEAD/docs/user-guide/container-environment.md#hook-details", +} + +func (Lifecycle) SwaggerDoc() map[string]string { + return map_Lifecycle +} + +var map_LimitRange = map[string]string{ + "": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (LimitRange) SwaggerDoc() map[string]string { + return map_LimitRange +} + +var map_LimitRangeItem = map[string]string{ + "": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "type": "Type of resource that this limit applies to.", + "max": "Max usage constraints on this kind by resource name.", + "min": "Min usage constraints on this kind by resource name.", + "default": "Default resource requirement limit value by resource name if resource limit is omitted.", + "defaultRequest": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "maxLimitRequestRatio": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", +} + +func (LimitRangeItem) SwaggerDoc() map[string]string { + return map_LimitRangeItem +} + +var map_LimitRangeList = map[string]string{ + "": "LimitRangeList is a list of LimitRange items.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md", +} + +func (LimitRangeList) SwaggerDoc() map[string]string { + return map_LimitRangeList +} + +var map_LimitRangeSpec = map[string]string{ + "": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "limits": "Limits is the list of LimitRangeItem objects that are enforced.", +} + +func (LimitRangeSpec) SwaggerDoc() map[string]string { + return map_LimitRangeSpec +} + +var map_List = map[string]string{ + "": "List holds a list of objects, which may not be known by the server.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of objects", +} + +func (List) SwaggerDoc() map[string]string { + return map_List +} + +var map_ListOptions = map[string]string{ + "": "ListOptions is the query options to a standard REST list call.", + "labelSelector": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "fieldSelector": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "watch": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "resourceVersion": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "timeoutSeconds": "Timeout for the list/watch call.", +} + +func (ListOptions) SwaggerDoc() map[string]string { + return map_ListOptions +} + +var map_LoadBalancerIngress = map[string]string{ + "": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "ip": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "hostname": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", +} + +func (LoadBalancerIngress) SwaggerDoc() map[string]string { + return map_LoadBalancerIngress +} + +var map_LoadBalancerStatus = map[string]string{ + "": "LoadBalancerStatus represents the status of a load-balancer.", + "ingress": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", +} + +func (LoadBalancerStatus) SwaggerDoc() map[string]string { + return map_LoadBalancerStatus +} + +var map_LocalObjectReference = map[string]string{ + "": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "name": "Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names", +} + +func (LocalObjectReference) SwaggerDoc() map[string]string { + return map_LocalObjectReference +} + +var map_NFSVolumeSource = map[string]string{ + "": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "server": "Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs", + "path": "Path that is exported by the NFS server. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs", + "readOnly": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs", +} + +func (NFSVolumeSource) SwaggerDoc() map[string]string { + return map_NFSVolumeSource +} + +var map_Namespace = map[string]string{ + "": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "status": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (Namespace) SwaggerDoc() map[string]string { + return map_Namespace +} + +var map_NamespaceList = map[string]string{ + "": "NamespaceList is a list of Namespaces.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md", +} + +func (NamespaceList) SwaggerDoc() map[string]string { + return map_NamespaceList +} + +var map_NamespaceSpec = map[string]string{ + "": "NamespaceSpec describes the attributes on a Namespace.", + "finalizers": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers", +} + +func (NamespaceSpec) SwaggerDoc() map[string]string { + return map_NamespaceSpec +} + +var map_NamespaceStatus = map[string]string{ + "": "NamespaceStatus is information about the current status of a Namespace.", + "phase": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases", +} + +func (NamespaceStatus) SwaggerDoc() map[string]string { + return map_NamespaceStatus +} + +var map_Node = map[string]string{ + "": "Node is a worker node in Kubernetes, formerly known as minion. Each node will have a unique identifier in the cache (i.e. in etcd).", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "status": "Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (Node) SwaggerDoc() map[string]string { + return map_Node +} + +var map_NodeAddress = map[string]string{ + "": "NodeAddress contains information for the node's address.", + "type": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "address": "The node address.", +} + +func (NodeAddress) SwaggerDoc() map[string]string { + return map_NodeAddress +} + +var map_NodeAffinity = map[string]string{ + "": "Node affinity is a group of node affinity scheduling rules.", + "requiredDuringSchedulingIgnoredDuringExecution": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", + "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", +} + +func (NodeAffinity) SwaggerDoc() map[string]string { + return map_NodeAffinity +} + +var map_NodeCondition = map[string]string{ + "": "NodeCondition contains condition infromation for a node.", + "type": "Type of node condition.", + "status": "Status of the condition, one of True, False, Unknown.", + "lastHeartbeatTime": "Last time we got an update on a given condition.", + "lastTransitionTime": "Last time the condition transit from one status to another.", + "reason": "(brief) reason for the condition's last transition.", + "message": "Human readable message indicating details about last transition.", +} + +func (NodeCondition) SwaggerDoc() map[string]string { + return map_NodeCondition +} + +var map_NodeDaemonEndpoints = map[string]string{ + "": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "kubeletEndpoint": "Endpoint on which Kubelet is listening.", +} + +func (NodeDaemonEndpoints) SwaggerDoc() map[string]string { + return map_NodeDaemonEndpoints +} + +var map_NodeList = map[string]string{ + "": "NodeList is the whole list of all Nodes which have been registered with master.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of nodes", +} + +func (NodeList) SwaggerDoc() map[string]string { + return map_NodeList +} + +var map_NodeProxyOptions = map[string]string{ + "": "NodeProxyOptions is the query options to a Node's proxy call.", + "path": "Path is the URL path to use for the current proxy request to node.", +} + +func (NodeProxyOptions) SwaggerDoc() map[string]string { + return map_NodeProxyOptions +} + +var map_NodeSelector = map[string]string{ + "": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "nodeSelectorTerms": "Required. A list of node selector terms. The terms are ORed.", +} + +func (NodeSelector) SwaggerDoc() map[string]string { + return map_NodeSelector +} + +var map_NodeSelectorRequirement = map[string]string{ + "": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "key": "The label key that the selector applies to.", + "operator": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "values": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", +} + +func (NodeSelectorRequirement) SwaggerDoc() map[string]string { + return map_NodeSelectorRequirement +} + +var map_NodeSelectorTerm = map[string]string{ + "": "A null or empty node selector term matches no objects.", + "matchExpressions": "Required. A list of node selector requirements. The requirements are ANDed.", +} + +func (NodeSelectorTerm) SwaggerDoc() map[string]string { + return map_NodeSelectorTerm +} + +var map_NodeSpec = map[string]string{ + "": "NodeSpec describes the attributes that a node is created with.", + "podCIDR": "PodCIDR represents the pod IP range assigned to the node.", + "externalID": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", + "providerID": "ID of the node assigned by the cloud provider in the format: ://", + "unschedulable": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration\"`", +} + +func (NodeSpec) SwaggerDoc() map[string]string { + return map_NodeSpec +} + +var map_NodeStatus = map[string]string{ + "": "NodeStatus is information about the current status of a node.", + "capacity": "Capacity represents the total resources of a node. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity for more details.", + "allocatable": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "phase": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase", + "conditions": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", + "addresses": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses", + "daemonEndpoints": "Endpoints of daemons running on the Node.", + "nodeInfo": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info", + "images": "List of container images on this node", + "volumesInUse": "List of attachable volumes in use (mounted) by the node.", + "volumesAttached": "List of volumes that are attached to the node.", +} + +func (NodeStatus) SwaggerDoc() map[string]string { + return map_NodeStatus +} + +var map_NodeSystemInfo = map[string]string{ + "": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "machineID": "Machine ID reported by the node.", + "systemUUID": "System UUID reported by the node.", + "bootID": "Boot ID reported by the node.", + "kernelVersion": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "osImage": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "containerRuntimeVersion": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", + "kubeletVersion": "Kubelet Version reported by the node.", + "kubeProxyVersion": "KubeProxy Version reported by the node.", + "operatingSystem": "The Operating System reported by the node", + "architecture": "The Architecture reported by the node", +} + +func (NodeSystemInfo) SwaggerDoc() map[string]string { + return map_NodeSystemInfo +} + +var map_ObjectFieldSelector = map[string]string{ + "": "ObjectFieldSelector selects an APIVersioned field of an object.", + "apiVersion": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "fieldPath": "Path of the field to select in the specified API version.", +} + +func (ObjectFieldSelector) SwaggerDoc() map[string]string { + return map_ObjectFieldSelector +} + +var map_ObjectMeta = map[string]string{ + "": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "name": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names", + "generateName": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", + "namespace": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md", + "selfLink": "SelfLink is a URL representing this object. Populated by the system. Read-only.", + "uid": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids", + "resourceVersion": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", + "generation": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "creationTimestamp": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "deletionTimestamp": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "deletionGracePeriodSeconds": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "labels": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md", + "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.", +} + +func (ObjectMeta) SwaggerDoc() map[string]string { + return map_ObjectMeta +} + +var map_ObjectReference = map[string]string{ + "": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "kind": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "namespace": "Namespace of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md", + "name": "Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names", + "uid": "UID of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids", + "apiVersion": "API version of the referent.", + "resourceVersion": "Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", + "fieldPath": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", +} + +func (ObjectReference) SwaggerDoc() map[string]string { + return map_ObjectReference +} + +var map_OwnerReference = map[string]string{ + "": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", + "apiVersion": "API version of the referent.", + "kind": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "name": "Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names", + "uid": "UID of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids", + "controller": "If true, this reference points to the managing controller.", +} + +func (OwnerReference) SwaggerDoc() map[string]string { + return map_OwnerReference +} + +var map_PersistentVolume = map[string]string{ + "": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistent-volumes", + "status": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistent-volumes", +} + +func (PersistentVolume) SwaggerDoc() map[string]string { + return map_PersistentVolume +} + +var map_PersistentVolumeClaim = map[string]string{ + "": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims", + "status": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims", +} + +func (PersistentVolumeClaim) SwaggerDoc() map[string]string { + return map_PersistentVolumeClaim +} + +var map_PersistentVolumeClaimList = map[string]string{ + "": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "A list of persistent volume claims. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims", +} + +func (PersistentVolumeClaimList) SwaggerDoc() map[string]string { + return map_PersistentVolumeClaimList +} + +var map_PersistentVolumeClaimSpec = map[string]string{ + "": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "accessModes": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1", + "selector": "A label query over volumes to consider for binding.", + "resources": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources", + "volumeName": "VolumeName is the binding reference to the PersistentVolume backing this claim.", +} + +func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string { + return map_PersistentVolumeClaimSpec +} + +var map_PersistentVolumeClaimStatus = map[string]string{ + "": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "phase": "Phase represents the current phase of PersistentVolumeClaim.", + "accessModes": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1", + "capacity": "Represents the actual resources of the underlying volume.", +} + +func (PersistentVolumeClaimStatus) SwaggerDoc() map[string]string { + return map_PersistentVolumeClaimStatus +} + +var map_PersistentVolumeClaimVolumeSource = map[string]string{ + "": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "claimName": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims", + "readOnly": "Will force the ReadOnly setting in VolumeMounts. Default false.", +} + +func (PersistentVolumeClaimVolumeSource) SwaggerDoc() map[string]string { + return map_PersistentVolumeClaimVolumeSource +} + +var map_PersistentVolumeList = map[string]string{ + "": "PersistentVolumeList is a list of PersistentVolume items.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of persistent volumes. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md", +} + +func (PersistentVolumeList) SwaggerDoc() map[string]string { + return map_PersistentVolumeList +} + +var map_PersistentVolumeSource = map[string]string{ + "": "PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.", + "gcePersistentDisk": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk", + "awsElasticBlockStore": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore", + "hostPath": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath", + "glusterfs": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", + "nfs": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs", + "rbd": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", + "iscsi": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", + "cinder": "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", + "cephfs": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + "fc": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + "flocker": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + "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", +} + +func (PersistentVolumeSource) SwaggerDoc() map[string]string { + return map_PersistentVolumeSource +} + +var map_PersistentVolumeSpec = map[string]string{ + "": "PersistentVolumeSpec is the specification of a persistent volume.", + "capacity": "A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#capacity", + "accessModes": "AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes", + "claimRef": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#binding", + "persistentVolumeReclaimPolicy": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#recycling-policy", +} + +func (PersistentVolumeSpec) SwaggerDoc() map[string]string { + return map_PersistentVolumeSpec +} + +var map_PersistentVolumeStatus = map[string]string{ + "": "PersistentVolumeStatus is the current status of a persistent volume.", + "phase": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#phase", + "message": "A human-readable message indicating details about why the volume is in this state.", + "reason": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", +} + +func (PersistentVolumeStatus) SwaggerDoc() map[string]string { + return map_PersistentVolumeStatus +} + +var map_Pod = map[string]string{ + "": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "status": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (Pod) SwaggerDoc() map[string]string { + return map_Pod +} + +var map_PodAffinity = map[string]string{ + "": "Pod affinity is a group of inter pod affinity scheduling rules.", + "requiredDuringSchedulingIgnoredDuringExecution": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", +} + +func (PodAffinity) SwaggerDoc() map[string]string { + return map_PodAffinity +} + +var map_PodAffinityTerm = map[string]string{ + "": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key tches that of any node on which a pod of the set of pods is running", + "labelSelector": "A label query over a set of resources, in this case pods.", + "namespaces": "namespaces specifies which namespaces the labelSelector applies to (matches against); nil list means \"this pod's namespace,\" empty list means \"all namespaces\" The json tag here is not \"omitempty\" since we need to distinguish nil and empty. See https://golang.org/pkg/encoding/json/#Marshal for more details.", + "topologyKey": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.", +} + +func (PodAffinityTerm) SwaggerDoc() map[string]string { + return map_PodAffinityTerm +} + +var map_PodAntiAffinity = map[string]string{ + "": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "requiredDuringSchedulingIgnoredDuringExecution": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", +} + +func (PodAntiAffinity) SwaggerDoc() map[string]string { + return map_PodAntiAffinity +} + +var map_PodAttachOptions = map[string]string{ + "": "PodAttachOptions is the query options to a Pod's remote attach call.", + "stdin": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", + "stdout": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", + "stderr": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", + "tty": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", + "container": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", +} + +func (PodAttachOptions) SwaggerDoc() map[string]string { + return map_PodAttachOptions +} + +var map_PodCondition = map[string]string{ + "": "PodCondition contains details for the current condition of this pod.", + "type": "Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions", + "status": "Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions", + "lastProbeTime": "Last time we probed the condition.", + "lastTransitionTime": "Last time the condition transitioned from one status to another.", + "reason": "Unique, one-word, CamelCase reason for the condition's last transition.", + "message": "Human-readable message indicating details about last transition.", +} + +func (PodCondition) SwaggerDoc() map[string]string { + return map_PodCondition +} + +var map_PodExecOptions = map[string]string{ + "": "PodExecOptions is the query options to a Pod's remote exec call.", + "stdin": "Redirect the standard input stream of the pod for this call. Defaults to false.", + "stdout": "Redirect the standard output stream of the pod for this call. Defaults to true.", + "stderr": "Redirect the standard error stream of the pod for this call. Defaults to true.", + "tty": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "container": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "command": "Command is the remote command to execute. argv array. Not executed within a shell.", +} + +func (PodExecOptions) SwaggerDoc() map[string]string { + return map_PodExecOptions +} + +var map_PodList = map[string]string{ + "": "PodList is a list of Pods.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of pods. More info: http://releases.k8s.io/HEAD/docs/user-guide/pods.md", +} + +func (PodList) SwaggerDoc() map[string]string { + return map_PodList +} + +var map_PodLogOptions = map[string]string{ + "": "PodLogOptions is the query options for a Pod's logs REST call.", + "container": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + "follow": "Follow the log stream of the pod. Defaults to false.", + "previous": "Return previous terminated container logs. Defaults to false.", + "sinceSeconds": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "sinceTime": "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "timestamps": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "tailLines": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + "limitBytes": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", +} + +func (PodLogOptions) SwaggerDoc() map[string]string { + return map_PodLogOptions +} + +var map_PodProxyOptions = map[string]string{ + "": "PodProxyOptions is the query options to a Pod's proxy call.", + "path": "Path is the URL path to use for the current proxy request to pod.", +} + +func (PodProxyOptions) SwaggerDoc() map[string]string { + return map_PodProxyOptions +} + +var map_PodSecurityContext = map[string]string{ + "": "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.", + "seLinuxOptions": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", + "runAsUser": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", + "runAsNonRoot": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "supplementalGroups": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", + "fsGroup": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw ", +} + +func (PodSecurityContext) SwaggerDoc() map[string]string { + return map_PodSecurityContext +} + +var map_PodSignature = map[string]string{ + "": "Describes the class of pods that should avoid this node. Exactly one field should be set.", + "podController": "Reference to controller whose pods should avoid this node.", +} + +func (PodSignature) SwaggerDoc() map[string]string { + return map_PodSignature +} + +var map_PodSpec = map[string]string{ + "": "PodSpec is a description of a pod.", + "volumes": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md", + "containers": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/containers.md", + "restartPolicy": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#restartpolicy", + "terminationGracePeriodSeconds": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "activeDeadlineSeconds": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "dnsPolicy": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\".", + "nodeSelector": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/HEAD/docs/user-guide/node-selection/README.md", + "serviceAccountName": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md", + "serviceAccount": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "nodeName": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", + "hostNetwork": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "hostPID": "Use the host's pid namespace. Optional: Default to false.", + "hostIPC": "Use the host's ipc namespace. Optional: Default to false.", + "securityContext": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", + "imagePullSecrets": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/HEAD/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod", + "hostname": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "subdomain": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", +} + +func (PodSpec) SwaggerDoc() map[string]string { + return map_PodSpec +} + +var map_PodStatus = map[string]string{ + "": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", + "phase": "Current condition of the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-phase", + "conditions": "Current service state of pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#pod-conditions", + "message": "A human readable message indicating details about why the pod is in this condition.", + "reason": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'", + "hostIP": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", + "podIP": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "startTime": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", + "containerStatuses": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-statuses", +} + +func (PodStatus) SwaggerDoc() map[string]string { + return map_PodStatus +} + +var map_PodStatusResult = map[string]string{ + "": "PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "status": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (PodStatusResult) SwaggerDoc() map[string]string { + return map_PodStatusResult +} + +var map_PodTemplate = map[string]string{ + "": "PodTemplate describes a template for creating copies of a predefined pod.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "template": "Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (PodTemplate) SwaggerDoc() map[string]string { + return map_PodTemplate +} + +var map_PodTemplateList = map[string]string{ + "": "PodTemplateList is a list of PodTemplates.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of pod templates", +} + +func (PodTemplateList) SwaggerDoc() map[string]string { + return map_PodTemplateList +} + +var map_PodTemplateSpec = map[string]string{ + "": "PodTemplateSpec describes the data a pod should have when created from a template", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (PodTemplateSpec) SwaggerDoc() map[string]string { + return map_PodTemplateSpec +} + +var map_Preconditions = map[string]string{ + "": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "uid": "Specifies the target UID.", +} + +func (Preconditions) SwaggerDoc() map[string]string { + return map_Preconditions +} + +var map_PreferAvoidPodsEntry = map[string]string{ + "": "Describes a class of pods that should avoid this node.", + "podSignature": "The class of pods.", + "evictionTime": "Time at which this entry was added to the list.", + "reason": "(brief) reason why this entry was added to the list.", + "message": "Human readable message indicating why this entry was added to the list.", +} + +func (PreferAvoidPodsEntry) SwaggerDoc() map[string]string { + return map_PreferAvoidPodsEntry +} + +var map_PreferredSchedulingTerm = map[string]string{ + "": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "weight": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "preference": "A node selector term, associated with the corresponding weight.", +} + +func (PreferredSchedulingTerm) SwaggerDoc() map[string]string { + return map_PreferredSchedulingTerm +} + +var map_Probe = map[string]string{ + "": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "initialDelaySeconds": "Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes", + "timeoutSeconds": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes", + "periodSeconds": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "successThreshold": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", + "failureThreshold": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", +} + +func (Probe) SwaggerDoc() map[string]string { + return map_Probe +} + +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", + "image": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#rbd", + "pool": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.", + "user": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "keyring": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "secretRef": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", +} + +func (RBDVolumeSource) SwaggerDoc() map[string]string { + return map_RBDVolumeSource +} + +var map_RangeAllocation = map[string]string{ + "": "RangeAllocation is not a public type.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "range": "Range is string that identifies the range represented by 'data'.", + "data": "Data is a bit array containing all allocated addresses in the previous segment.", +} + +func (RangeAllocation) SwaggerDoc() map[string]string { + return map_RangeAllocation +} + +var map_ReplicationController = map[string]string{ + "": "ReplicationController represents the configuration of a replication controller.", + "metadata": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "status": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (ReplicationController) SwaggerDoc() map[string]string { + return map_ReplicationController +} + +var map_ReplicationControllerList = map[string]string{ + "": "ReplicationControllerList is a collection of replication controllers.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of replication controllers. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md", +} + +func (ReplicationControllerList) SwaggerDoc() map[string]string { + return map_ReplicationControllerList +} + +var map_ReplicationControllerSpec = map[string]string{ + "": "ReplicationControllerSpec is the specification of a replication controller.", + "replicas": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#what-is-a-replication-controller", + "selector": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", + "template": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#pod-template", +} + +func (ReplicationControllerSpec) SwaggerDoc() map[string]string { + return map_ReplicationControllerSpec +} + +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.", + "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed replication controller.", +} + +func (ReplicationControllerStatus) SwaggerDoc() map[string]string { + return map_ReplicationControllerStatus +} + +var map_ResourceFieldSelector = map[string]string{ + "": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "containerName": "Container name: required for volumes, optional for env vars", + "resource": "Required: resource to select", + "divisor": "Specifies the output format of the exposed resources, defaults to \"1\"", +} + +func (ResourceFieldSelector) SwaggerDoc() map[string]string { + return map_ResourceFieldSelector +} + +var map_ResourceQuota = map[string]string{ + "": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "status": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (ResourceQuota) SwaggerDoc() map[string]string { + return map_ResourceQuota +} + +var map_ResourceQuotaList = map[string]string{ + "": "ResourceQuotaList is a list of ResourceQuota items.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", +} + +func (ResourceQuotaList) SwaggerDoc() map[string]string { + return map_ResourceQuotaList +} + +var map_ResourceQuotaSpec = map[string]string{ + "": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "hard": "Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", + "scopes": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", +} + +func (ResourceQuotaSpec) SwaggerDoc() map[string]string { + return map_ResourceQuotaSpec +} + +var map_ResourceQuotaStatus = map[string]string{ + "": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "hard": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", + "used": "Used is the current observed total usage of the resource in the namespace.", +} + +func (ResourceQuotaStatus) SwaggerDoc() map[string]string { + return map_ResourceQuotaStatus +} + +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", +} + +func (ResourceRequirements) SwaggerDoc() map[string]string { + return map_ResourceRequirements +} + +var map_SELinuxOptions = map[string]string{ + "": "SELinuxOptions are the labels to be applied to the container", + "user": "User is a SELinux user label that applies to the container.", + "role": "Role is a SELinux role label that applies to the container.", + "type": "Type is a SELinux type label that applies to the container.", + "level": "Level is SELinux level label that applies to the container.", +} + +func (SELinuxOptions) SwaggerDoc() map[string]string { + return map_SELinuxOptions +} + +var map_Secret = map[string]string{ + "": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "data": "Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "stringData": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", + "type": "Used to facilitate programmatic handling of secret data.", +} + +func (Secret) SwaggerDoc() map[string]string { + return map_Secret +} + +var map_SecretKeySelector = map[string]string{ + "": "SecretKeySelector selects a key of a Secret.", + "key": "The key of the secret to select from. Must be a valid secret key.", +} + +func (SecretKeySelector) SwaggerDoc() map[string]string { + return map_SecretKeySelector +} + +var map_SecretList = map[string]string{ + "": "SecretList is a list of Secret.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "Items is a list of secret objects. More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md", +} + +func (SecretList) SwaggerDoc() map[string]string { + return map_SecretList +} + +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 '..'.", +} + +func (SecretVolumeSource) SwaggerDoc() map[string]string { + return map_SecretVolumeSource +} + +var map_SecurityContext = map[string]string{ + "": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "capabilities": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", + "privileged": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", + "seLinuxOptions": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "runAsUser": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "runAsNonRoot": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "readOnlyRootFilesystem": "Whether this container has a read-only root filesystem. Default is false.", +} + +func (SecurityContext) SwaggerDoc() map[string]string { + return map_SecurityContext +} + +var map_SerializedReference = map[string]string{ + "": "SerializedReference is a reference to serialized object.", + "reference": "The reference to an object in the system.", +} + +func (SerializedReference) SwaggerDoc() map[string]string { + return map_SerializedReference +} + +var map_Service = map[string]string{ + "": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "status": "Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", +} + +func (Service) SwaggerDoc() map[string]string { + return map_Service +} + +var map_ServiceAccount = map[string]string{ + "": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "secrets": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md", + "imagePullSecrets": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://releases.k8s.io/HEAD/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret", +} + +func (ServiceAccount) SwaggerDoc() map[string]string { + return map_ServiceAccount +} + +var map_ServiceAccountList = map[string]string{ + "": "ServiceAccountList is a list of ServiceAccount objects", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts", +} + +func (ServiceAccountList) SwaggerDoc() map[string]string { + return map_ServiceAccountList +} + +var map_ServiceList = map[string]string{ + "": "ServiceList holds a list of services.", + "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "items": "List of services", +} + +func (ServiceList) SwaggerDoc() map[string]string { + return map_ServiceList +} + +var map_ServicePort = map[string]string{ + "": "ServicePort contains information on service's port.", + "name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.", + "protocol": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.", + "port": "The port that will be exposed by this service.", + "targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#defining-a-service", + "nodePort": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#type--nodeport", +} + +func (ServicePort) SwaggerDoc() map[string]string { + return map_ServicePort +} + +var map_ServiceProxyOptions = map[string]string{ + "": "ServiceProxyOptions is the query options to a Service's proxy call.", + "path": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", +} + +func (ServiceProxyOptions) SwaggerDoc() map[string]string { + return map_ServiceProxyOptions +} + +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", + "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", +} + +func (ServiceSpec) SwaggerDoc() map[string]string { + return map_ServiceSpec +} + +var map_ServiceStatus = map[string]string{ + "": "ServiceStatus represents the current status of a service.", + "loadBalancer": "LoadBalancer contains the current status of the load-balancer, if one is present.", +} + +func (ServiceStatus) SwaggerDoc() map[string]string { + return map_ServiceStatus +} + +var map_TCPSocketAction = map[string]string{ + "": "TCPSocketAction describes an action based on opening a socket", + "port": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", +} + +func (TCPSocketAction) SwaggerDoc() map[string]string { + return map_TCPSocketAction +} + +var map_Taint = map[string]string{ + "": "The node this Taint is attached to has the effect \"effect\" on any pod that that does not tolerate the Taint.", + "key": "Required. The taint key to be applied to a node.", + "value": "Required. The taint value corresponding to the taint key.", + "effect": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule and PreferNoSchedule.", +} + +func (Taint) SwaggerDoc() map[string]string { + return map_Taint +} + +var map_Toleration = map[string]string{ + "": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "key": "Required. Key is the taint key that the toleration applies to.", + "operator": "operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "value": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "effect": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and PreferNoSchedule.", +} + +func (Toleration) SwaggerDoc() map[string]string { + return map_Toleration +} + +var map_Volume = map[string]string{ + "": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "name": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names", +} + +func (Volume) SwaggerDoc() map[string]string { + return map_Volume +} + +var map_VolumeMount = map[string]string{ + "": "VolumeMount describes a mounting of a Volume within a container.", + "name": "This must match the Name of a Volume.", + "readOnly": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "mountPath": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "subPath": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", +} + +func (VolumeMount) SwaggerDoc() map[string]string { + return map_VolumeMount +} + +var map_VolumeSource = map[string]string{ + "": "Represents the source of a volume to mount. Only one of its members may be specified.", + "hostPath": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#hostpath", + "emptyDir": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#emptydir", + "gcePersistentDisk": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#gcepersistentdisk", + "awsElasticBlockStore": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#awselasticblockstore", + "gitRepo": "GitRepo represents a git repository at a particular revision.", + "secret": "Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets", + "nfs": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#nfs", + "iscsi": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", + "glusterfs": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", + "persistentVolumeClaim": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#persistentvolumeclaims", + "rbd": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", + "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.", + "cinder": "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", + "cephfs": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + "flocker": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + "downwardAPI": "DownwardAPI represents downward API about the pod that should populate this volume", + "fc": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + "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", +} + +func (VolumeSource) SwaggerDoc() map[string]string { + return map_VolumeSource +} + +var map_VsphereVirtualDiskVolumeSource = map[string]string{ + "": "Represents a vSphere volume resource.", + "volumePath": "Path that identifies vSphere volume vmdk", + "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.", +} + +func (VsphereVirtualDiskVolumeSource) SwaggerDoc() map[string]string { + return map_VsphereVirtualDiskVolumeSource +} + +var map_WeightedPodAffinityTerm = map[string]string{ + "": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "weight": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "podAffinityTerm": "Required. A pod affinity term, associated with the corresponding weight.", +} + +func (WeightedPodAffinityTerm) SwaggerDoc() map[string]string { + return map_WeightedPodAffinityTerm +} + +// AUTO-GENERATED FUNCTIONS END HERE diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion_generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/zz_generated.conversion.go similarity index 97% rename from ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion_generated.go rename to ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/zz_generated.conversion.go index a9cb349c0d..4303982f2f 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/api/v1/conversion_generated.go +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/zz_generated.conversion.go @@ -21,21 +21,29 @@ limitations under the License. package v1 import ( - api "k8s.io/kubernetes/pkg/api" - resource "k8s.io/kubernetes/pkg/api/resource" - conversion "k8s.io/kubernetes/pkg/conversion" - runtime "k8s.io/kubernetes/pkg/runtime" - types "k8s.io/kubernetes/pkg/types" + api "k8s.io/client-go/1.4/pkg/api" + resource "k8s.io/client-go/1.4/pkg/api/resource" + conversion "k8s.io/client-go/1.4/pkg/conversion" + runtime "k8s.io/client-go/1.4/pkg/runtime" + types "k8s.io/client-go/1.4/pkg/types" ) func init() { - if err := api.Scheme.AddGeneratedConversionFuncs( + 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_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource, Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolumeSource, Convert_v1_Affinity_To_api_Affinity, Convert_api_Affinity_To_v1_Affinity, Convert_v1_AttachedVolume_To_api_AttachedVolume, Convert_api_AttachedVolume_To_v1_AttachedVolume, + Convert_v1_AvoidPods_To_api_AvoidPods, + Convert_api_AvoidPods_To_v1_AvoidPods, Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource, Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource, Convert_v1_Binding_To_api_Binding, @@ -240,6 +248,8 @@ func init() { Convert_api_PodProxyOptions_To_v1_PodProxyOptions, Convert_v1_PodSecurityContext_To_api_PodSecurityContext, Convert_api_PodSecurityContext_To_v1_PodSecurityContext, + Convert_v1_PodSignature_To_api_PodSignature, + Convert_api_PodSignature_To_v1_PodSignature, Convert_v1_PodSpec_To_api_PodSpec, Convert_api_PodSpec_To_v1_PodSpec, Convert_v1_PodStatus_To_api_PodStatus, @@ -254,6 +264,8 @@ func init() { Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec, Convert_v1_Preconditions_To_api_Preconditions, Convert_api_Preconditions_To_v1_Preconditions, + Convert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry, + Convert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry, Convert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm, Convert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm, Convert_v1_Probe_To_api_Probe, @@ -328,10 +340,7 @@ func init() { Convert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSource, Convert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm, Convert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm, - ); err != nil { - // if one of the conversion functions is malformed, detect it immediately. - panic(err) - } + ) } func autoConvert_v1_AWSElasticBlockStoreVolumeSource_To_api_AWSElasticBlockStoreVolumeSource(in *AWSElasticBlockStoreVolumeSource, out *api.AWSElasticBlockStoreVolumeSource, s conversion.Scope) error { @@ -448,6 +457,44 @@ func Convert_api_AttachedVolume_To_v1_AttachedVolume(in *api.AttachedVolume, out return autoConvert_api_AttachedVolume_To_v1_AttachedVolume(in, out, s) } +func autoConvert_v1_AvoidPods_To_api_AvoidPods(in *AvoidPods, out *api.AvoidPods, s conversion.Scope) error { + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]api.PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := Convert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil +} + +func Convert_v1_AvoidPods_To_api_AvoidPods(in *AvoidPods, out *api.AvoidPods, s conversion.Scope) error { + return autoConvert_v1_AvoidPods_To_api_AvoidPods(in, out, s) +} + +func autoConvert_api_AvoidPods_To_v1_AvoidPods(in *api.AvoidPods, out *AvoidPods, s conversion.Scope) error { + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := Convert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil +} + +func Convert_api_AvoidPods_To_v1_AvoidPods(in *api.AvoidPods, out *AvoidPods, s conversion.Scope) error { + return autoConvert_api_AvoidPods_To_v1_AvoidPods(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 @@ -4802,6 +4849,40 @@ func autoConvert_api_PodSecurityContext_To_v1_PodSecurityContext(in *api.PodSecu return nil } +func autoConvert_v1_PodSignature_To_api_PodSignature(in *PodSignature, out *api.PodSignature, s conversion.Scope) error { + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(api.OwnerReference) + if err := Convert_v1_OwnerReference_To_api_OwnerReference(*in, *out, s); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil +} + +func Convert_v1_PodSignature_To_api_PodSignature(in *PodSignature, out *api.PodSignature, s conversion.Scope) error { + return autoConvert_v1_PodSignature_To_api_PodSignature(in, out, s) +} + +func autoConvert_api_PodSignature_To_v1_PodSignature(in *api.PodSignature, out *PodSignature, s conversion.Scope) error { + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(OwnerReference) + if err := Convert_api_OwnerReference_To_v1_OwnerReference(*in, *out, s); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil +} + +func Convert_api_PodSignature_To_v1_PodSignature(in *api.PodSignature, out *PodSignature, s conversion.Scope) error { + return autoConvert_api_PodSignature_To_v1_PodSignature(in, out, s) +} + func autoConvert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conversion.Scope) error { SetDefaults_PodSpec(in) if in.Volumes != nil { @@ -5177,6 +5258,38 @@ func Convert_api_Preconditions_To_v1_Preconditions(in *api.Preconditions, out *P return autoConvert_api_Preconditions_To_v1_Preconditions(in, out, s) } +func autoConvert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in *PreferAvoidPodsEntry, out *api.PreferAvoidPodsEntry, s conversion.Scope) error { + if err := Convert_v1_PodSignature_To_api_PodSignature(&in.PodSignature, &out.PodSignature, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.EvictionTime, &out.EvictionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in *PreferAvoidPodsEntry, out *api.PreferAvoidPodsEntry, s conversion.Scope) error { + return autoConvert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in, out, s) +} + +func autoConvert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in *api.PreferAvoidPodsEntry, out *PreferAvoidPodsEntry, s conversion.Scope) error { + if err := Convert_api_PodSignature_To_v1_PodSignature(&in.PodSignature, &out.PodSignature, s); err != nil { + return err + } + if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.EvictionTime, &out.EvictionTime, s); err != nil { + return err + } + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in *api.PreferAvoidPodsEntry, out *PreferAvoidPodsEntry, s conversion.Scope) error { + return autoConvert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in, out, s) +} + func autoConvert_v1_PreferredSchedulingTerm_To_api_PreferredSchedulingTerm(in *PreferredSchedulingTerm, out *api.PreferredSchedulingTerm, s conversion.Scope) error { out.Weight = in.Weight if err := Convert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(&in.Preference, &out.Preference, s); err != nil { @@ -5410,6 +5523,40 @@ func Convert_api_ReplicationControllerList_To_v1_ReplicationControllerList(in *a return autoConvert_api_ReplicationControllerList_To_v1_ReplicationControllerList(in, out, s) } +func autoConvert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(in *ReplicationControllerSpec, out *api.ReplicationControllerSpec, s conversion.Scope) error { + if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + out.Selector = in.Selector + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(api.PodTemplateSpec) + if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(*in, *out, s); err != nil { + return err + } + } else { + out.Template = nil + } + return nil +} + +func autoConvert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(in *api.ReplicationControllerSpec, out *ReplicationControllerSpec, s conversion.Scope) error { + if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + out.Selector = in.Selector + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(PodTemplateSpec) + if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(*in, *out, s); err != nil { + return err + } + } else { + out.Template = nil + } + return nil +} + func autoConvert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus(in *ReplicationControllerStatus, out *api.ReplicationControllerStatus, s conversion.Scope) error { out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..5f5c147188 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/v1/zz_generated.deepcopy.go @@ -0,0 +1,3576 @@ +// +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 v1 + +import ( + unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + conversion "k8s.io/client-go/1.4/pkg/conversion" + runtime "k8s.io/client-go/1.4/pkg/runtime" + types "k8s.io/client-go/1.4/pkg/types" + 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_v1_AWSElasticBlockStoreVolumeSource, InType: reflect.TypeOf(&AWSElasticBlockStoreVolumeSource{})}, + 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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_CephFSVolumeSource, InType: reflect.TypeOf(&CephFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_CinderVolumeSource, InType: reflect.TypeOf(&CinderVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ComponentCondition, InType: reflect.TypeOf(&ComponentCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ComponentStatus, InType: reflect.TypeOf(&ComponentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ComponentStatusList, InType: reflect.TypeOf(&ComponentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMap, InType: reflect.TypeOf(&ConfigMap{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMapKeySelector, InType: reflect.TypeOf(&ConfigMapKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMapList, InType: reflect.TypeOf(&ConfigMapList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ConfigMapVolumeSource, InType: reflect.TypeOf(&ConfigMapVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Container, InType: reflect.TypeOf(&Container{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerImage, InType: reflect.TypeOf(&ContainerImage{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerPort, InType: reflect.TypeOf(&ContainerPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerState, InType: reflect.TypeOf(&ContainerState{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStateRunning, InType: reflect.TypeOf(&ContainerStateRunning{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStateTerminated, InType: reflect.TypeOf(&ContainerStateTerminated{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStateWaiting, InType: reflect.TypeOf(&ContainerStateWaiting{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ContainerStatus, InType: reflect.TypeOf(&ContainerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DaemonEndpoint, InType: reflect.TypeOf(&DaemonEndpoint{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DeleteOptions, InType: reflect.TypeOf(&DeleteOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DownwardAPIVolumeFile, InType: reflect.TypeOf(&DownwardAPIVolumeFile{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_DownwardAPIVolumeSource, InType: reflect.TypeOf(&DownwardAPIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EmptyDirVolumeSource, InType: reflect.TypeOf(&EmptyDirVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointAddress, InType: reflect.TypeOf(&EndpointAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointPort, InType: reflect.TypeOf(&EndpointPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointSubset, InType: reflect.TypeOf(&EndpointSubset{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Endpoints, InType: reflect.TypeOf(&Endpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EndpointsList, InType: reflect.TypeOf(&EndpointsList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EnvVar, InType: reflect.TypeOf(&EnvVar{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EnvVarSource, InType: reflect.TypeOf(&EnvVarSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Event, InType: reflect.TypeOf(&Event{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EventList, InType: reflect.TypeOf(&EventList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_EventSource, InType: reflect.TypeOf(&EventSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ExecAction, InType: reflect.TypeOf(&ExecAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_FCVolumeSource, InType: reflect.TypeOf(&FCVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_FlexVolumeSource, InType: reflect.TypeOf(&FlexVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_FlockerVolumeSource, InType: reflect.TypeOf(&FlockerVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_GCEPersistentDiskVolumeSource, InType: reflect.TypeOf(&GCEPersistentDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_GitRepoVolumeSource, InType: reflect.TypeOf(&GitRepoVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_GlusterfsVolumeSource, InType: reflect.TypeOf(&GlusterfsVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HTTPGetAction, InType: reflect.TypeOf(&HTTPGetAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HTTPHeader, InType: reflect.TypeOf(&HTTPHeader{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Handler, InType: reflect.TypeOf(&Handler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_HostPathVolumeSource, InType: reflect.TypeOf(&HostPathVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ISCSIVolumeSource, InType: reflect.TypeOf(&ISCSIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_KeyToPath, InType: reflect.TypeOf(&KeyToPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Lifecycle, InType: reflect.TypeOf(&Lifecycle{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRange, InType: reflect.TypeOf(&LimitRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRangeItem, InType: reflect.TypeOf(&LimitRangeItem{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRangeList, InType: reflect.TypeOf(&LimitRangeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LimitRangeSpec, InType: reflect.TypeOf(&LimitRangeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_List, InType: reflect.TypeOf(&List{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ListOptions, InType: reflect.TypeOf(&ListOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LoadBalancerIngress, InType: reflect.TypeOf(&LoadBalancerIngress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LoadBalancerStatus, InType: reflect.TypeOf(&LoadBalancerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_LocalObjectReference, InType: reflect.TypeOf(&LocalObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NFSVolumeSource, InType: reflect.TypeOf(&NFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Namespace, InType: reflect.TypeOf(&Namespace{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NamespaceList, InType: reflect.TypeOf(&NamespaceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NamespaceSpec, InType: reflect.TypeOf(&NamespaceSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NamespaceStatus, InType: reflect.TypeOf(&NamespaceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Node, InType: reflect.TypeOf(&Node{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeAddress, InType: reflect.TypeOf(&NodeAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeAffinity, InType: reflect.TypeOf(&NodeAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeCondition, InType: reflect.TypeOf(&NodeCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeDaemonEndpoints, InType: reflect.TypeOf(&NodeDaemonEndpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeList, InType: reflect.TypeOf(&NodeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeProxyOptions, InType: reflect.TypeOf(&NodeProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSelector, InType: reflect.TypeOf(&NodeSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSelectorRequirement, InType: reflect.TypeOf(&NodeSelectorRequirement{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSelectorTerm, InType: reflect.TypeOf(&NodeSelectorTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSpec, InType: reflect.TypeOf(&NodeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeStatus, InType: reflect.TypeOf(&NodeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_NodeSystemInfo, InType: reflect.TypeOf(&NodeSystemInfo{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ObjectFieldSelector, InType: reflect.TypeOf(&ObjectFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ObjectMeta, InType: reflect.TypeOf(&ObjectMeta{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ObjectReference, InType: reflect.TypeOf(&ObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_OwnerReference, InType: reflect.TypeOf(&OwnerReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolume, InType: reflect.TypeOf(&PersistentVolume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaim, InType: reflect.TypeOf(&PersistentVolumeClaim{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimList, InType: reflect.TypeOf(&PersistentVolumeClaimList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimSpec, InType: reflect.TypeOf(&PersistentVolumeClaimSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimStatus, InType: reflect.TypeOf(&PersistentVolumeClaimStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeClaimVolumeSource, InType: reflect.TypeOf(&PersistentVolumeClaimVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeList, InType: reflect.TypeOf(&PersistentVolumeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeSource, InType: reflect.TypeOf(&PersistentVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeSpec, InType: reflect.TypeOf(&PersistentVolumeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PersistentVolumeStatus, InType: reflect.TypeOf(&PersistentVolumeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Pod, InType: reflect.TypeOf(&Pod{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAffinity, InType: reflect.TypeOf(&PodAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAffinityTerm, InType: reflect.TypeOf(&PodAffinityTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAntiAffinity, InType: reflect.TypeOf(&PodAntiAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodAttachOptions, InType: reflect.TypeOf(&PodAttachOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodCondition, InType: reflect.TypeOf(&PodCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodExecOptions, InType: reflect.TypeOf(&PodExecOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodList, InType: reflect.TypeOf(&PodList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodLogOptions, InType: reflect.TypeOf(&PodLogOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodProxyOptions, InType: reflect.TypeOf(&PodProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSecurityContext, InType: reflect.TypeOf(&PodSecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSignature, InType: reflect.TypeOf(&PodSignature{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodSpec, InType: reflect.TypeOf(&PodSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodStatus, InType: reflect.TypeOf(&PodStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodStatusResult, InType: reflect.TypeOf(&PodStatusResult{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodTemplate, InType: reflect.TypeOf(&PodTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodTemplateList, InType: reflect.TypeOf(&PodTemplateList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PodTemplateSpec, InType: reflect.TypeOf(&PodTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Preconditions, InType: reflect.TypeOf(&Preconditions{})}, + 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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationControllerList, InType: reflect.TypeOf(&ReplicationControllerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationControllerSpec, InType: reflect.TypeOf(&ReplicationControllerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationControllerStatus, InType: reflect.TypeOf(&ReplicationControllerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceFieldSelector, InType: reflect.TypeOf(&ResourceFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuota, InType: reflect.TypeOf(&ResourceQuota{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuotaList, InType: reflect.TypeOf(&ResourceQuotaList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuotaSpec, InType: reflect.TypeOf(&ResourceQuotaSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceQuotaStatus, InType: reflect.TypeOf(&ResourceQuotaStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ResourceRequirements, InType: reflect.TypeOf(&ResourceRequirements{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SELinuxOptions, InType: reflect.TypeOf(&SELinuxOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Secret, InType: reflect.TypeOf(&Secret{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecretKeySelector, InType: reflect.TypeOf(&SecretKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecretList, InType: reflect.TypeOf(&SecretList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecretVolumeSource, InType: reflect.TypeOf(&SecretVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SecurityContext, InType: reflect.TypeOf(&SecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_SerializedReference, InType: reflect.TypeOf(&SerializedReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Service, InType: reflect.TypeOf(&Service{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceAccount, InType: reflect.TypeOf(&ServiceAccount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceAccountList, InType: reflect.TypeOf(&ServiceAccountList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceList, InType: reflect.TypeOf(&ServiceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServicePort, InType: reflect.TypeOf(&ServicePort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceProxyOptions, InType: reflect.TypeOf(&ServiceProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceSpec, InType: reflect.TypeOf(&ServiceSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ServiceStatus, InType: reflect.TypeOf(&ServiceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_TCPSocketAction, InType: reflect.TypeOf(&TCPSocketAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Taint, InType: reflect.TypeOf(&Taint{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Toleration, InType: reflect.TypeOf(&Toleration{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Volume, InType: reflect.TypeOf(&Volume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_VolumeMount, InType: reflect.TypeOf(&VolumeMount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_VolumeSource, InType: reflect.TypeOf(&VolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_VsphereVirtualDiskVolumeSource, InType: reflect.TypeOf(&VsphereVirtualDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_WeightedPodAffinityTerm, InType: reflect.TypeOf(&WeightedPodAffinityTerm{})}, + ) +} + +func DeepCopy_v1_AWSElasticBlockStoreVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AWSElasticBlockStoreVolumeSource) + out := out.(*AWSElasticBlockStoreVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_Affinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Affinity) + out := out.(*Affinity) + if in.NodeAffinity != nil { + in, out := &in.NodeAffinity, &out.NodeAffinity + *out = new(NodeAffinity) + if err := DeepCopy_v1_NodeAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.NodeAffinity = nil + } + if in.PodAffinity != nil { + in, out := &in.PodAffinity, &out.PodAffinity + *out = new(PodAffinity) + if err := DeepCopy_v1_PodAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAffinity = nil + } + if in.PodAntiAffinity != nil { + in, out := &in.PodAntiAffinity, &out.PodAntiAffinity + *out = new(PodAntiAffinity) + if err := DeepCopy_v1_PodAntiAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAntiAffinity = nil + } + return nil + } +} + +func DeepCopy_v1_AttachedVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AttachedVolume) + out := out.(*AttachedVolume) + out.Name = in.Name + out.DevicePath = in.DevicePath + return nil + } +} + +func DeepCopy_v1_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AvoidPods) + out := out.(*AvoidPods) + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil + } +} + +func DeepCopy_v1_AzureFileVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AzureFileVolumeSource) + out := out.(*AzureFileVolumeSource) + out.SecretName = in.SecretName + out.ShareName = in.ShareName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_Binding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Binding) + out := out.(*Binding) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Target = in.Target + return nil + } +} + +func DeepCopy_v1_Capabilities(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Capabilities) + out := out.(*Capabilities) + if in.Add != nil { + in, out := &in.Add, &out.Add + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Add = nil + } + if in.Drop != nil { + in, out := &in.Drop, &out.Drop + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Drop = nil + } + return nil + } +} + +func DeepCopy_v1_CephFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CephFSVolumeSource) + out := out.(*CephFSVolumeSource) + if in.Monitors != nil { + in, out := &in.Monitors, &out.Monitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Monitors = nil + } + out.Path = in.Path + out.User = in.User + out.SecretFile = in.SecretFile + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_CinderVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CinderVolumeSource) + out := out.(*CinderVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_ComponentCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentCondition) + out := out.(*ComponentCondition) + out.Type = in.Type + out.Status = in.Status + out.Message = in.Message + out.Error = in.Error + return nil + } +} + +func DeepCopy_v1_ComponentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatus) + out := out.(*ComponentStatus) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ComponentCondition, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Conditions = nil + } + return nil + } +} + +func DeepCopy_v1_ComponentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatusList) + out := out.(*ComponentStatusList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ComponentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ComponentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMap) + out := out.(*ConfigMap) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_v1_ConfigMapKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapKeySelector) + out := out.(*ConfigMapKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_v1_ConfigMapList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapList) + out := out.(*ConfigMapList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigMap, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ConfigMap(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ConfigMapVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapVolumeSource) + out := out.(*ConfigMapVolumeSource) + out.LocalObjectReference = in.LocalObjectReference + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Container) + out := out.(*Container) + out.Name = in.Name + out.Image = in.Image + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Args = nil + } + out.WorkingDir = in.WorkingDir + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ContainerPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]EnvVar, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Env = nil + } + if err := DeepCopy_v1_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]VolumeMount, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumeMounts = nil + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.LivenessProbe = nil + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.ReadinessProbe = nil + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(Lifecycle) + if err := DeepCopy_v1_Lifecycle(*in, *out, c); err != nil { + return err + } + } else { + out.Lifecycle = nil + } + out.TerminationMessagePath = in.TerminationMessagePath + out.ImagePullPolicy = in.ImagePullPolicy + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(SecurityContext) + if err := DeepCopy_v1_SecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + out.Stdin = in.Stdin + out.StdinOnce = in.StdinOnce + out.TTY = in.TTY + return nil + } +} + +func DeepCopy_v1_ContainerImage(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerImage) + out := out.(*ContainerImage) + if in.Names != nil { + in, out := &in.Names, &out.Names + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Names = nil + } + out.SizeBytes = in.SizeBytes + return nil + } +} + +func DeepCopy_v1_ContainerPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerPort) + out := out.(*ContainerPort) + out.Name = in.Name + out.HostPort = in.HostPort + out.ContainerPort = in.ContainerPort + out.Protocol = in.Protocol + out.HostIP = in.HostIP + return nil + } +} + +func DeepCopy_v1_ContainerState(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerState) + out := out.(*ContainerState) + if in.Waiting != nil { + in, out := &in.Waiting, &out.Waiting + *out = new(ContainerStateWaiting) + **out = **in + } else { + out.Waiting = nil + } + if in.Running != nil { + in, out := &in.Running, &out.Running + *out = new(ContainerStateRunning) + if err := DeepCopy_v1_ContainerStateRunning(*in, *out, c); err != nil { + return err + } + } else { + out.Running = nil + } + if in.Terminated != nil { + in, out := &in.Terminated, &out.Terminated + *out = new(ContainerStateTerminated) + if err := DeepCopy_v1_ContainerStateTerminated(*in, *out, c); err != nil { + return err + } + } else { + out.Terminated = nil + } + return nil + } +} + +func DeepCopy_v1_ContainerStateRunning(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateRunning) + out := out.(*ContainerStateRunning) + out.StartedAt = in.StartedAt.DeepCopy() + return nil + } +} + +func DeepCopy_v1_ContainerStateTerminated(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateTerminated) + out := out.(*ContainerStateTerminated) + out.ExitCode = in.ExitCode + out.Signal = in.Signal + out.Reason = in.Reason + out.Message = in.Message + out.StartedAt = in.StartedAt.DeepCopy() + out.FinishedAt = in.FinishedAt.DeepCopy() + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_v1_ContainerStateWaiting(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateWaiting) + out := out.(*ContainerStateWaiting) + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_ContainerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStatus) + out := out.(*ContainerStatus) + out.Name = in.Name + if err := DeepCopy_v1_ContainerState(&in.State, &out.State, c); err != nil { + return err + } + if err := DeepCopy_v1_ContainerState(&in.LastTerminationState, &out.LastTerminationState, c); err != nil { + return err + } + out.Ready = in.Ready + out.RestartCount = in.RestartCount + out.Image = in.Image + out.ImageID = in.ImageID + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_v1_DaemonEndpoint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonEndpoint) + out := out.(*DaemonEndpoint) + out.Port = in.Port + return nil + } +} + +func DeepCopy_v1_DeleteOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeleteOptions) + out := out.(*DeleteOptions) + out.TypeMeta = in.TypeMeta + if in.GracePeriodSeconds != nil { + in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.GracePeriodSeconds = nil + } + if in.Preconditions != nil { + in, out := &in.Preconditions, &out.Preconditions + *out = new(Preconditions) + if err := DeepCopy_v1_Preconditions(*in, *out, c); err != nil { + return err + } + } else { + out.Preconditions = nil + } + if in.OrphanDependents != nil { + in, out := &in.OrphanDependents, &out.OrphanDependents + *out = new(bool) + **out = **in + } else { + out.OrphanDependents = nil + } + return nil + } +} + +func DeepCopy_v1_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeFile) + out := out.(*DownwardAPIVolumeFile) + out.Path = in.Path + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + return nil + } +} + +func DeepCopy_v1_DownwardAPIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeSource) + out := out.(*DownwardAPIVolumeSource) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DownwardAPIVolumeFile, len(*in)) + for i := range *in { + if err := DeepCopy_v1_DownwardAPIVolumeFile(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_EmptyDirVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EmptyDirVolumeSource) + out := out.(*EmptyDirVolumeSource) + out.Medium = in.Medium + return nil + } +} + +func DeepCopy_v1_EndpointAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointAddress) + out := out.(*EndpointAddress) + out.IP = in.IP + out.Hostname = in.Hostname + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(ObjectReference) + **out = **in + } else { + out.TargetRef = nil + } + return nil + } +} + +func DeepCopy_v1_EndpointPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointPort) + out := out.(*EndpointPort) + out.Name = in.Name + out.Port = in.Port + out.Protocol = in.Protocol + return nil + } +} + +func DeepCopy_v1_EndpointSubset(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointSubset) + out := out.(*EndpointSubset) + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if in.NotReadyAddresses != nil { + in, out := &in.NotReadyAddresses, &out.NotReadyAddresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NotReadyAddresses = nil + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]EndpointPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + return nil + } +} + +func DeepCopy_v1_Endpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Endpoints) + out := out.(*Endpoints) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subsets != nil { + in, out := &in.Subsets, &out.Subsets + *out = make([]EndpointSubset, len(*in)) + for i := range *in { + if err := DeepCopy_v1_EndpointSubset(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Subsets = nil + } + return nil + } +} + +func DeepCopy_v1_EndpointsList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointsList) + out := out.(*EndpointsList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Endpoints, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Endpoints(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_EnvVar(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVar) + out := out.(*EnvVar) + out.Name = in.Name + out.Value = in.Value + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(EnvVarSource) + if err := DeepCopy_v1_EnvVarSource(*in, *out, c); err != nil { + return err + } + } else { + out.ValueFrom = nil + } + return nil + } +} + +func DeepCopy_v1_EnvVarSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVarSource) + out := out.(*EnvVarSource) + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(ConfigMapKeySelector) + **out = **in + } else { + out.ConfigMapKeyRef = nil + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(SecretKeySelector) + **out = **in + } else { + out.SecretKeyRef = nil + } + return nil + } +} + +func DeepCopy_v1_Event(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Event) + out := out.(*Event) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.InvolvedObject = in.InvolvedObject + out.Reason = in.Reason + out.Message = in.Message + out.Source = in.Source + out.FirstTimestamp = in.FirstTimestamp.DeepCopy() + out.LastTimestamp = in.LastTimestamp.DeepCopy() + out.Count = in.Count + out.Type = in.Type + return nil + } +} + +func DeepCopy_v1_EventList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventList) + out := out.(*EventList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Event(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_EventSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventSource) + out := out.(*EventSource) + out.Component = in.Component + out.Host = in.Host + return nil + } +} + +func DeepCopy_v1_ExecAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExecAction) + out := out.(*ExecAction) + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_v1_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_v1_FCVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FCVolumeSource) + out := out.(*FCVolumeSource) + if in.TargetWWNs != nil { + in, out := &in.TargetWWNs, &out.TargetWWNs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.TargetWWNs = nil + } + if in.Lun != nil { + in, out := &in.Lun, &out.Lun + *out = new(int32) + **out = **in + } else { + out.Lun = nil + } + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_FlexVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlexVolumeSource) + out := out.(*FlexVolumeSource) + out.Driver = in.Driver + out.FSType = in.FSType + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + if in.Options != nil { + in, out := &in.Options, &out.Options + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Options = nil + } + return nil + } +} + +func DeepCopy_v1_FlockerVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlockerVolumeSource) + out := out.(*FlockerVolumeSource) + out.DatasetName = in.DatasetName + return nil + } +} + +func DeepCopy_v1_GCEPersistentDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GCEPersistentDiskVolumeSource) + out := out.(*GCEPersistentDiskVolumeSource) + out.PDName = in.PDName + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_GitRepoVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GitRepoVolumeSource) + out := out.(*GitRepoVolumeSource) + out.Repository = in.Repository + out.Revision = in.Revision + out.Directory = in.Directory + return nil + } +} + +func DeepCopy_v1_GlusterfsVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GlusterfsVolumeSource) + out := out.(*GlusterfsVolumeSource) + out.EndpointsName = in.EndpointsName + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_HTTPGetAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPGetAction) + out := out.(*HTTPGetAction) + out.Path = in.Path + out.Port = in.Port + out.Host = in.Host + out.Scheme = in.Scheme + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]HTTPHeader, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HTTPHeaders = nil + } + return nil + } +} + +func DeepCopy_v1_HTTPHeader(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPHeader) + out := out.(*HTTPHeader) + out.Name = in.Name + out.Value = in.Value + return nil + } +} + +func DeepCopy_v1_Handler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Handler) + out := out.(*Handler) + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(ExecAction) + if err := DeepCopy_v1_ExecAction(*in, *out, c); err != nil { + return err + } + } else { + out.Exec = nil + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(HTTPGetAction) + if err := DeepCopy_v1_HTTPGetAction(*in, *out, c); err != nil { + return err + } + } else { + out.HTTPGet = nil + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(TCPSocketAction) + **out = **in + } else { + out.TCPSocket = nil + } + return nil + } +} + +func DeepCopy_v1_HostPathVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPathVolumeSource) + out := out.(*HostPathVolumeSource) + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_ISCSIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ISCSIVolumeSource) + out := out.(*ISCSIVolumeSource) + out.TargetPortal = in.TargetPortal + out.IQN = in.IQN + out.Lun = in.Lun + out.ISCSIInterface = in.ISCSIInterface + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_KeyToPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KeyToPath) + out := out.(*KeyToPath) + out.Key = in.Key + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_Lifecycle(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Lifecycle) + out := out.(*Lifecycle) + if in.PostStart != nil { + in, out := &in.PostStart, &out.PostStart + *out = new(Handler) + if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PostStart = nil + } + if in.PreStop != nil { + in, out := &in.PreStop, &out.PreStop + *out = new(Handler) + if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PreStop = nil + } + return nil + } +} + +func DeepCopy_v1_LimitRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRange) + out := out.(*LimitRange) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeItem) + out := out.(*LimitRangeItem) + out.Type = in.Type + if in.Max != nil { + in, out := &in.Max, &out.Max + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Max = nil + } + if in.Min != nil { + in, out := &in.Min, &out.Min + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Min = nil + } + if in.Default != nil { + in, out := &in.Default, &out.Default + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Default = nil + } + if in.DefaultRequest != nil { + in, out := &in.DefaultRequest, &out.DefaultRequest + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.DefaultRequest = nil + } + if in.MaxLimitRequestRatio != nil { + in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.MaxLimitRequestRatio = nil + } + return nil + } +} + +func DeepCopy_v1_LimitRangeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeList) + out := out.(*LimitRangeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LimitRange, len(*in)) + for i := range *in { + if err := DeepCopy_v1_LimitRange(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_LimitRangeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeSpec) + out := out.(*LimitRangeSpec) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make([]LimitRangeItem, len(*in)) + for i := range *in { + if err := DeepCopy_v1_LimitRangeItem(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Limits = nil + } + return nil + } +} + +func DeepCopy_v1_List(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*List) + out := out.(*List) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]runtime.RawExtension, len(*in)) + for i := range *in { + if err := runtime.DeepCopy_runtime_RawExtension(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ListOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListOptions) + out := out.(*ListOptions) + out.TypeMeta = in.TypeMeta + out.LabelSelector = in.LabelSelector + out.FieldSelector = in.FieldSelector + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + if in.TimeoutSeconds != nil { + in, out := &in.TimeoutSeconds, &out.TimeoutSeconds + *out = new(int64) + **out = **in + } else { + out.TimeoutSeconds = nil + } + return nil + } +} + +func DeepCopy_v1_LoadBalancerIngress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerIngress) + out := out.(*LoadBalancerIngress) + out.IP = in.IP + out.Hostname = in.Hostname + return nil + } +} + +func DeepCopy_v1_LoadBalancerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerStatus) + out := out.(*LoadBalancerStatus) + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]LoadBalancerIngress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_v1_LocalObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LocalObjectReference) + out := out.(*LocalObjectReference) + out.Name = in.Name + return nil + } +} + +func DeepCopy_v1_NFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NFSVolumeSource) + out := out.(*NFSVolumeSource) + out.Server = in.Server + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_Namespace(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Namespace) + out := out.(*Namespace) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_NamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceList) + out := out.(*NamespaceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Namespace, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Namespace(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_NamespaceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceSpec) + out := out.(*NamespaceSpec) + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]FinalizerName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Finalizers = nil + } + return nil + } +} + +func DeepCopy_v1_NamespaceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceStatus) + out := out.(*NamespaceStatus) + out.Phase = in.Phase + return nil + } +} + +func DeepCopy_v1_Node(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Node) + out := out.(*Node) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_v1_NodeStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_NodeAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAddress) + out := out.(*NodeAddress) + out.Type = in.Type + out.Address = in.Address + return nil + } +} + +func DeepCopy_v1_NodeAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAffinity) + out := out.(*NodeAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = new(NodeSelector) + if err := DeepCopy_v1_NodeSelector(*in, *out, c); err != nil { + return err + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]PreferredSchedulingTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PreferredSchedulingTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_v1_NodeCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeCondition) + out := out.(*NodeCondition) + out.Type = in.Type + out.Status = in.Status + out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_NodeDaemonEndpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeDaemonEndpoints) + out := out.(*NodeDaemonEndpoints) + out.KubeletEndpoint = in.KubeletEndpoint + return nil + } +} + +func DeepCopy_v1_NodeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeList) + out := out.(*NodeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Node, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Node(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_NodeProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeProxyOptions) + out := out.(*NodeProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_NodeSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelector) + out := out.(*NodeSelector) + if in.NodeSelectorTerms != nil { + in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms + *out = make([]NodeSelectorTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_NodeSelectorTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NodeSelectorTerms = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorRequirement) + out := out.(*NodeSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSelectorTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorTerm) + out := out.(*NodeSelectorTerm) + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]NodeSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_v1_NodeSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSpec) + out := out.(*NodeSpec) + out.PodCIDR = in.PodCIDR + out.ExternalID = in.ExternalID + out.ProviderID = in.ProviderID + out.Unschedulable = in.Unschedulable + return nil + } +} + +func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeStatus) + out := out.(*NodeStatus) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if in.Allocatable != nil { + in, out := &in.Allocatable, &out.Allocatable + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Allocatable = nil + } + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]NodeCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1_NodeCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]NodeAddress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Addresses = nil + } + out.DaemonEndpoints = in.DaemonEndpoints + out.NodeInfo = in.NodeInfo + if in.Images != nil { + in, out := &in.Images, &out.Images + *out = make([]ContainerImage, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ContainerImage(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Images = nil + } + if in.VolumesInUse != nil { + in, out := &in.VolumesInUse, &out.VolumesInUse + *out = make([]UniqueVolumeName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesInUse = nil + } + if in.VolumesAttached != nil { + in, out := &in.VolumesAttached, &out.VolumesAttached + *out = make([]AttachedVolume, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesAttached = nil + } + return nil + } +} + +func DeepCopy_v1_NodeSystemInfo(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSystemInfo) + out := out.(*NodeSystemInfo) + out.MachineID = in.MachineID + out.SystemUUID = in.SystemUUID + out.BootID = in.BootID + out.KernelVersion = in.KernelVersion + out.OSImage = in.OSImage + out.ContainerRuntimeVersion = in.ContainerRuntimeVersion + out.KubeletVersion = in.KubeletVersion + out.KubeProxyVersion = in.KubeProxyVersion + out.OperatingSystem = in.OperatingSystem + out.Architecture = in.Architecture + return nil + } +} + +func DeepCopy_v1_ObjectFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectFieldSelector) + out := out.(*ObjectFieldSelector) + out.APIVersion = in.APIVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectMeta) + out := out.(*ObjectMeta) + out.Name = in.Name + out.GenerateName = in.GenerateName + out.Namespace = in.Namespace + out.SelfLink = in.SelfLink + out.UID = in.UID + out.ResourceVersion = in.ResourceVersion + out.Generation = in.Generation + out.CreationTimestamp = in.CreationTimestamp.DeepCopy() + if in.DeletionTimestamp != nil { + in, out := &in.DeletionTimestamp, &out.DeletionTimestamp + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.DeletionTimestamp = nil + } + if in.DeletionGracePeriodSeconds != nil { + in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.DeletionGracePeriodSeconds = nil + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Labels = 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 + } + if in.OwnerReferences != nil { + in, out := &in.OwnerReferences, &out.OwnerReferences + *out = make([]OwnerReference, len(*in)) + for i := range *in { + if err := DeepCopy_v1_OwnerReference(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.OwnerReferences = nil + } + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Finalizers = nil + } + return nil + } +} + +func DeepCopy_v1_ObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectReference) + out := out.(*ObjectReference) + out.Kind = in.Kind + out.Namespace = in.Namespace + out.Name = in.Name + out.UID = in.UID + out.APIVersion = in.APIVersion + out.ResourceVersion = in.ResourceVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_v1_OwnerReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*OwnerReference) + out := out.(*OwnerReference) + out.APIVersion = in.APIVersion + out.Kind = in.Kind + out.Name = in.Name + out.UID = in.UID + if in.Controller != nil { + in, out := &in.Controller, &out.Controller + *out = new(bool) + **out = **in + } else { + out.Controller = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolume) + out := out.(*PersistentVolume) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaim(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaim) + out := out.(*PersistentVolumeClaim) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_PersistentVolumeClaimStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimList) + out := out.(*PersistentVolumeClaimList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimSpec) + out := out.(*PersistentVolumeClaimSpec) + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := DeepCopy_v1_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + out.VolumeName = in.VolumeName + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimStatus) + out := out.(*PersistentVolumeClaimStatus) + out.Phase = in.Phase + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeClaimVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimVolumeSource) + out := out.(*PersistentVolumeClaimVolumeSource) + out.ClaimName = in.ClaimName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_PersistentVolumeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeList) + out := out.(*PersistentVolumeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolume, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PersistentVolume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSource) + out := out.(*PersistentVolumeSource) + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } else { + out.VsphereVolume = nil + } + return nil + } +} + +func DeepCopy_v1_PersistentVolumeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSpec) + out := out.(*PersistentVolumeSpec) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if err := DeepCopy_v1_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { + return err + } + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.ClaimRef != nil { + in, out := &in.ClaimRef, &out.ClaimRef + *out = new(ObjectReference) + **out = **in + } else { + out.ClaimRef = nil + } + out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy + return nil + } +} + +func DeepCopy_v1_PersistentVolumeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeStatus) + out := out.(*PersistentVolumeStatus) + out.Phase = in.Phase + out.Message = in.Message + out.Reason = in.Reason + return nil + } +} + +func DeepCopy_v1_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Pod) + out := out.(*Pod) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PodAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinity) + out := out.(*PodAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_v1_PodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinityTerm) + out := out.(*PodAffinityTerm) + if in.LabelSelector != nil { + in, out := &in.LabelSelector, &out.LabelSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.LabelSelector = nil + } + if in.Namespaces != nil { + in, out := &in.Namespaces, &out.Namespaces + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Namespaces = nil + } + out.TopologyKey = in.TopologyKey + return nil + } +} + +func DeepCopy_v1_PodAntiAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAntiAffinity) + out := out.(*PodAntiAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_v1_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_v1_PodAttachOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAttachOptions) + out := out.(*PodAttachOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + return nil + } +} + +func DeepCopy_v1_PodCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodCondition) + out := out.(*PodCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_PodExecOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodExecOptions) + out := out.(*PodExecOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_v1_PodList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodList) + out := out.(*PodList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Pod, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Pod(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PodLogOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodLogOptions) + out := out.(*PodLogOptions) + out.TypeMeta = in.TypeMeta + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } else { + out.SinceSeconds = nil + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.SinceTime = nil + } + out.Timestamps = in.Timestamps + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } else { + out.TailLines = nil + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in + } else { + out.LimitBytes = nil + } + return nil + } +} + +func DeepCopy_v1_PodProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodProxyOptions) + out := out.(*PodProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_PodSecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityContext) + out := out.(*PodSecurityContext) + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.SupplementalGroups != nil { + in, out := &in.SupplementalGroups, &out.SupplementalGroups + *out = make([]int64, len(*in)) + copy(*out, *in) + } else { + out.SupplementalGroups = nil + } + if in.FSGroup != nil { + in, out := &in.FSGroup, &out.FSGroup + *out = new(int64) + **out = **in + } else { + out.FSGroup = nil + } + return nil + } +} + +func DeepCopy_v1_PodSignature(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSignature) + out := out.(*PodSignature) + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(OwnerReference) + if err := DeepCopy_v1_OwnerReference(*in, *out, c); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil + } +} + +func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSpec) + out := out.(*PodSpec) + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]Volume, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Volume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Volumes = nil + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainers = nil + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.RestartPolicy = in.RestartPolicy + if in.TerminationGracePeriodSeconds != nil { + in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.TerminationGracePeriodSeconds = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + out.DNSPolicy = in.DNSPolicy + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.NodeSelector = nil + } + out.ServiceAccountName = in.ServiceAccountName + out.DeprecatedServiceAccount = in.DeprecatedServiceAccount + out.NodeName = in.NodeName + out.HostNetwork = in.HostNetwork + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(PodSecurityContext) + if err := DeepCopy_v1_PodSecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + out.Hostname = in.Hostname + out.Subdomain = in.Subdomain + return nil + } +} + +func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatus) + out := out.(*PodStatus) + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]PodCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + out.Message = in.Message + out.Reason = in.Reason + out.HostIP = in.HostIP + out.PodIP = in.PodIP + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainerStatuses = nil + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.ContainerStatuses = nil + } + return nil + } +} + +func DeepCopy_v1_PodStatusResult(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatusResult) + out := out.(*PodStatusResult) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PodTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplate) + out := out.(*PodTemplate) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_PodTemplateList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateList) + out := out.(*PodTemplateList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodTemplate, len(*in)) + for i := range *in { + if err := DeepCopy_v1_PodTemplate(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_PodTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateSpec) + out := out.(*PodTemplateSpec) + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_Preconditions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Preconditions) + out := out.(*Preconditions) + if in.UID != nil { + in, out := &in.UID, &out.UID + *out = new(types.UID) + **out = **in + } else { + out.UID = nil + } + return nil + } +} + +func DeepCopy_v1_PreferAvoidPodsEntry(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferAvoidPodsEntry) + out := out.(*PreferAvoidPodsEntry) + if err := DeepCopy_v1_PodSignature(&in.PodSignature, &out.PodSignature, c); err != nil { + return err + } + out.EvictionTime = in.EvictionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_v1_PreferredSchedulingTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferredSchedulingTerm) + out := out.(*PreferredSchedulingTerm) + out.Weight = in.Weight + if err := DeepCopy_v1_NodeSelectorTerm(&in.Preference, &out.Preference, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_Probe(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Probe) + out := out.(*Probe) + if err := DeepCopy_v1_Handler(&in.Handler, &out.Handler, c); err != nil { + return err + } + out.InitialDelaySeconds = in.InitialDelaySeconds + out.TimeoutSeconds = in.TimeoutSeconds + out.PeriodSeconds = in.PeriodSeconds + out.SuccessThreshold = in.SuccessThreshold + out.FailureThreshold = in.FailureThreshold + return nil + } +} + +func DeepCopy_v1_RBDVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RBDVolumeSource) + out := out.(*RBDVolumeSource) + if in.CephMonitors != nil { + in, out := &in.CephMonitors, &out.CephMonitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.CephMonitors = nil + } + out.RBDImage = in.RBDImage + out.FSType = in.FSType + out.RBDPool = in.RBDPool + out.RadosUser = in.RadosUser + out.Keyring = in.Keyring + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_v1_RangeAllocation(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RangeAllocation) + out := out.(*RangeAllocation) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Range = in.Range + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_v1_ReplicationController(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationController) + out := out.(*ReplicationController) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1_ReplicationControllerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerList) + out := out.(*ReplicationControllerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicationController, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ReplicationController(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ReplicationControllerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerSpec) + out := out.(*ReplicationControllerSpec) + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } else { + out.Replicas = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(PodTemplateSpec) + if err := DeepCopy_v1_PodTemplateSpec(*in, *out, c); err != nil { + return err + } + } else { + out.Template = nil + } + return nil + } +} + +func DeepCopy_v1_ReplicationControllerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerStatus) + out := out.(*ReplicationControllerStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_v1_ResourceFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceFieldSelector) + out := out.(*ResourceFieldSelector) + out.ContainerName = in.ContainerName + out.Resource = in.Resource + out.Divisor = in.Divisor.DeepCopy() + return nil + } +} + +func DeepCopy_v1_ResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuota) + out := out.(*ResourceQuota) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_ResourceQuotaStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_ResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaList) + out := out.(*ResourceQuotaList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceQuota, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ResourceQuota(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ResourceQuotaSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaSpec) + out := out.(*ResourceQuotaSpec) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]ResourceQuotaScope, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Scopes = nil + } + return nil + } +} + +func DeepCopy_v1_ResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaStatus) + out := out.(*ResourceQuotaStatus) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Used != nil { + in, out := &in.Used, &out.Used + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Used = nil + } + return nil + } +} + +func DeepCopy_v1_ResourceRequirements(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceRequirements) + out := out.(*ResourceRequirements) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Limits = nil + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Requests = nil + } + return nil + } +} + +func DeepCopy_v1_SELinuxOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxOptions) + out := out.(*SELinuxOptions) + out.User = in.User + out.Role = in.Role + out.Type = in.Type + out.Level = in.Level + return nil + } +} + +func DeepCopy_v1_Secret(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Secret) + out := out.(*Secret) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string][]byte) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*[]byte) + } + } + } else { + out.Data = nil + } + if in.StringData != nil { + in, out := &in.StringData, &out.StringData + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.StringData = nil + } + out.Type = in.Type + return nil + } +} + +func DeepCopy_v1_SecretKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretKeySelector) + out := out.(*SecretKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_v1_SecretList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretList) + out := out.(*SecretList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Secret, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Secret(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_SecretVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretVolumeSource) + out := out.(*SecretVolumeSource) + out.SecretName = in.SecretName + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_SecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecurityContext) + out := out.(*SecurityContext) + if in.Capabilities != nil { + in, out := &in.Capabilities, &out.Capabilities + *out = new(Capabilities) + if err := DeepCopy_v1_Capabilities(*in, *out, c); err != nil { + return err + } + } else { + out.Capabilities = nil + } + if in.Privileged != nil { + in, out := &in.Privileged, &out.Privileged + *out = new(bool) + **out = **in + } else { + out.Privileged = nil + } + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.ReadOnlyRootFilesystem != nil { + in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem + *out = new(bool) + **out = **in + } else { + out.ReadOnlyRootFilesystem = nil + } + return nil + } +} + +func DeepCopy_v1_SerializedReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SerializedReference) + out := out.(*SerializedReference) + out.TypeMeta = in.TypeMeta + out.Reference = in.Reference + return nil + } +} + +func DeepCopy_v1_Service(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Service) + out := out.(*Service) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1_ServiceStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_ServiceAccount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccount) + out := out.(*ServiceAccount) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = make([]ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Secrets = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + return nil + } +} + +func DeepCopy_v1_ServiceAccountList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccountList) + out := out.(*ServiceAccountList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ServiceAccount, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ServiceAccount(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ServiceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceList) + out := out.(*ServiceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Service, len(*in)) + for i := range *in { + if err := DeepCopy_v1_Service(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v1_ServicePort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServicePort) + out := out.(*ServicePort) + out.Name = in.Name + out.Protocol = in.Protocol + out.Port = in.Port + out.TargetPort = in.TargetPort + out.NodePort = in.NodePort + return nil + } +} + +func DeepCopy_v1_ServiceProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceProxyOptions) + out := out.(*ServiceProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_v1_ServiceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceSpec) + out := out.(*ServiceSpec) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ServicePort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + out.ClusterIP = in.ClusterIP + out.Type = in.Type + if in.ExternalIPs != nil { + in, out := &in.ExternalIPs, &out.ExternalIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.ExternalIPs = nil + } + if in.DeprecatedPublicIPs != nil { + in, out := &in.DeprecatedPublicIPs, &out.DeprecatedPublicIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.DeprecatedPublicIPs = nil + } + out.SessionAffinity = in.SessionAffinity + out.LoadBalancerIP = in.LoadBalancerIP + if in.LoadBalancerSourceRanges != nil { + in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.LoadBalancerSourceRanges = nil + } + return nil + } +} + +func DeepCopy_v1_ServiceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceStatus) + out := out.(*ServiceStatus) + if err := DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_TCPSocketAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TCPSocketAction) + out := out.(*TCPSocketAction) + out.Port = in.Port + return nil + } +} + +func DeepCopy_v1_Taint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Taint) + out := out.(*Taint) + out.Key = in.Key + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_v1_Toleration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Toleration) + out := out.(*Toleration) + out.Key = in.Key + out.Operator = in.Operator + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_v1_Volume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Volume) + out := out.(*Volume) + out.Name = in.Name + if err := DeepCopy_v1_VolumeSource(&in.VolumeSource, &out.VolumeSource, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_VolumeMount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeMount) + out := out.(*VolumeMount) + out.Name = in.Name + out.ReadOnly = in.ReadOnly + out.MountPath = in.MountPath + out.SubPath = in.SubPath + return nil + } +} + +func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeSource) + out := out.(*VolumeSource) + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.EmptyDir != nil { + in, out := &in.EmptyDir, &out.EmptyDir + *out = new(EmptyDirVolumeSource) + **out = **in + } else { + out.EmptyDir = nil + } + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.GitRepo != nil { + in, out := &in.GitRepo, &out.GitRepo + *out = new(GitRepoVolumeSource) + **out = **in + } else { + out.GitRepo = nil + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = new(SecretVolumeSource) + if err := DeepCopy_v1_SecretVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.Secret = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.PersistentVolumeClaim != nil { + in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim + *out = new(PersistentVolumeClaimVolumeSource) + **out = **in + } else { + out.PersistentVolumeClaim = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.DownwardAPI != nil { + in, out := &in.DownwardAPI, &out.DownwardAPI + *out = new(DownwardAPIVolumeSource) + if err := DeepCopy_v1_DownwardAPIVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.DownwardAPI = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.ConfigMap != nil { + in, out := &in.ConfigMap, &out.ConfigMap + *out = new(ConfigMapVolumeSource) + if err := DeepCopy_v1_ConfigMapVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.ConfigMap = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } else { + out.VsphereVolume = nil + } + return nil + } +} + +func DeepCopy_v1_VsphereVirtualDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VsphereVirtualDiskVolumeSource) + out := out.(*VsphereVirtualDiskVolumeSource) + out.VolumePath = in.VolumePath + out.FSType = in.FSType + return nil + } +} + +func DeepCopy_v1_WeightedPodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*WeightedPodAffinityTerm) + out := out.(*WeightedPodAffinityTerm) + out.Weight = in.Weight + if err := DeepCopy_v1_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { + return err + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/doc.go new file mode 100644 index 0000000000..f17a15cf9c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/doc.go @@ -0,0 +1,19 @@ +/* +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 validation has functions for validating the correctness of api +// objects and explaining what is wrong with them when they aren't valid. +package validation diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/events.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/events.go new file mode 100644 index 0000000000..d1b96d262e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/events.go @@ -0,0 +1,45 @@ +/* +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 validation + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/util/validation" + "k8s.io/client-go/1.4/pkg/util/validation/field" +) + +// 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")) + } + 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 _, msg := range validation.IsDNS1123Subdomain(event.Namespace) { + allErrs = append(allErrs, field.Invalid(field.NewPath("namespace"), event.Namespace, msg)) + } + return allErrs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/name.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/name.go new file mode 100644 index 0000000000..1358e6e7e9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/name.go @@ -0,0 +1,66 @@ +/* +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 validation + +import ( + "fmt" + "strings" +) + +// NameMayNotBe specifies strings that cannot be used as names specified as path segments (like the REST API or etcd store) +var NameMayNotBe = []string{".", ".."} + +// NameMayNotContain specifies substrings that cannot be used in names specified as path segments (like the REST API or etcd store) +var NameMayNotContain = []string{"/", "%"} + +// IsValidPathSegmentName validates the name can be safely encoded as a path segment +func IsValidPathSegmentName(name string) []string { + for _, illegalName := range NameMayNotBe { + if name == illegalName { + return []string{fmt.Sprintf(`may not be '%s'`, illegalName)} + } + } + + for _, illegalContent := range NameMayNotContain { + if strings.Contains(name, illegalContent) { + return []string{fmt.Sprintf(`may not contain '%s'`, illegalContent)} + } + } + + return nil +} + +// IsValidPathSegmentPrefix validates the name can be used as a prefix for a name which will be encoded as a path segment +// It does not check for exact matches with disallowed names, since an arbitrary suffix might make the name valid +func IsValidPathSegmentPrefix(name string) []string { + for _, illegalContent := range NameMayNotContain { + if strings.Contains(name, illegalContent) { + return []string{fmt.Sprintf(`may not contain '%s'`, illegalContent)} + } + } + + return nil +} + +// ValidatePathSegmentName validates the name can be safely encoded as a path segment +func ValidatePathSegmentName(name string, prefix bool) []string { + if prefix { + return IsValidPathSegmentPrefix(name) + } else { + return IsValidPathSegmentName(name) + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/schema.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/schema.go new file mode 100644 index 0000000000..1116bff6e0 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/schema.go @@ -0,0 +1,370 @@ +/* +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 validation + +import ( + "encoding/json" + "fmt" + "reflect" + "regexp" + "strings" + + "github.com/emicklei/go-restful/swagger" + "github.com/golang/glog" + apiutil "k8s.io/client-go/1.4/pkg/api/util" + "k8s.io/client-go/1.4/pkg/runtime" + utilerrors "k8s.io/client-go/1.4/pkg/util/errors" + "k8s.io/client-go/1.4/pkg/util/yaml" +) + +type InvalidTypeError struct { + ExpectedKind reflect.Kind + ObservedKind reflect.Kind + FieldName string +} + +func (i *InvalidTypeError) Error() string { + return fmt.Sprintf("expected type %s, for field %s, got %s", i.ExpectedKind.String(), i.FieldName, i.ObservedKind.String()) +} + +func NewInvalidTypeError(expected reflect.Kind, observed reflect.Kind, fieldName string) error { + return &InvalidTypeError{expected, observed, fieldName} +} + +// TypeNotFoundError is returned when specified type +// can not found in schema +type TypeNotFoundError string + +func (tnfe TypeNotFoundError) Error() string { + return fmt.Sprintf("couldn't find type: %s", string(tnfe)) +} + +// Schema is an interface that knows how to validate an API object serialized to a byte array. +type Schema interface { + ValidateBytes(data []byte) error +} + +type NullSchema struct{} + +func (NullSchema) ValidateBytes(data []byte) error { return nil } + +type SwaggerSchema struct { + api swagger.ApiDeclaration + delegate Schema // For delegating to other api groups +} + +func NewSwaggerSchemaFromBytes(data []byte, factory Schema) (Schema, error) { + schema := &SwaggerSchema{} + err := json.Unmarshal(data, &schema.api) + if err != nil { + return nil, err + } + schema.delegate = factory + return schema, nil +} + +// validateList unpacks a list and validate every item in the list. +// It return nil if every item is ok. +// Otherwise it return an error list contain errors of every item. +func (s *SwaggerSchema) validateList(obj map[string]interface{}) []error { + items, exists := obj["items"] + if !exists { + return []error{fmt.Errorf("no items field in %#v", obj)} + } + return s.validateItems(items) +} + +func (s *SwaggerSchema) validateItems(items interface{}) []error { + allErrs := []error{} + itemList, ok := items.([]interface{}) + if !ok { + return append(allErrs, fmt.Errorf("items isn't a slice")) + } + for i, item := range itemList { + fields, ok := item.(map[string]interface{}) + if !ok { + allErrs = append(allErrs, fmt.Errorf("items[%d] isn't a map[string]interface{}", i)) + continue + } + groupVersion := fields["apiVersion"] + if groupVersion == nil { + allErrs = append(allErrs, fmt.Errorf("items[%d].apiVersion not set", i)) + continue + } + itemVersion, ok := groupVersion.(string) + if !ok { + allErrs = append(allErrs, fmt.Errorf("items[%d].apiVersion isn't string type", i)) + continue + } + if len(itemVersion) == 0 { + allErrs = append(allErrs, fmt.Errorf("items[%d].apiVersion is empty", i)) + } + kind := fields["kind"] + if kind == nil { + allErrs = append(allErrs, fmt.Errorf("items[%d].kind not set", i)) + continue + } + itemKind, ok := kind.(string) + if !ok { + allErrs = append(allErrs, fmt.Errorf("items[%d].kind isn't string type", i)) + continue + } + if len(itemKind) == 0 { + allErrs = append(allErrs, fmt.Errorf("items[%d].kind is empty", i)) + } + version := apiutil.GetVersion(itemVersion) + errs := s.ValidateObject(item, "", version+"."+itemKind) + if len(errs) >= 1 { + allErrs = append(allErrs, errs...) + } + } + + return allErrs +} + +func (s *SwaggerSchema) ValidateBytes(data []byte) error { + var obj interface{} + out, err := yaml.ToJSON(data) + if err != nil { + return err + } + data = out + if err := json.Unmarshal(data, &obj); err != nil { + return err + } + fields, ok := obj.(map[string]interface{}) + if !ok { + return fmt.Errorf("error in unmarshaling data %s", string(data)) + } + groupVersion := fields["apiVersion"] + if groupVersion == nil { + return fmt.Errorf("apiVersion not set") + } + if _, ok := groupVersion.(string); !ok { + return fmt.Errorf("apiVersion isn't string type") + } + kind := fields["kind"] + if kind == nil { + return fmt.Errorf("kind not set") + } + if _, ok := kind.(string); !ok { + return fmt.Errorf("kind isn't string type") + } + if strings.HasSuffix(kind.(string), "List") { + return utilerrors.NewAggregate(s.validateList(fields)) + } + version := apiutil.GetVersion(groupVersion.(string)) + allErrs := s.ValidateObject(obj, "", version+"."+kind.(string)) + if len(allErrs) == 1 { + return allErrs[0] + } + return utilerrors.NewAggregate(allErrs) +} + +func (s *SwaggerSchema) ValidateObject(obj interface{}, fieldName, typeName string) []error { + allErrs := []error{} + models := s.api.Models + model, ok := models.At(typeName) + + // Verify the api version matches. This is required for nested types with differing api versions because + // s.api only has schema for 1 api version (the parent object type's version). + // e.g. an extensions/v1beta1 Template embedding a /v1 Service requires the schema for the extensions/v1beta1 + // api to delegate to the schema for the /v1 api. + // Only do this for !ok objects so that cross ApiVersion vendored types take precedence. + if !ok && s.delegate != nil { + fields, mapOk := obj.(map[string]interface{}) + if !mapOk { + return append(allErrs, fmt.Errorf("field %s: expected object of type map[string]interface{}, but the actual type is %T", fieldName, obj)) + } + if delegated, err := s.delegateIfDifferentApiVersion(runtime.Unstructured{Object: fields}); delegated { + if err != nil { + allErrs = append(allErrs, err) + } + return allErrs + } + } + + if !ok { + return append(allErrs, TypeNotFoundError(typeName)) + } + properties := model.Properties + if len(properties.List) == 0 { + // The object does not have any sub-fields. + return nil + } + fields, ok := obj.(map[string]interface{}) + if !ok { + return append(allErrs, fmt.Errorf("field %s: expected object of type map[string]interface{}, but the actual type is %T", fieldName, obj)) + } + if len(fieldName) > 0 { + fieldName = fieldName + "." + } + // handle required fields + for _, requiredKey := range model.Required { + if _, ok := fields[requiredKey]; !ok { + allErrs = append(allErrs, fmt.Errorf("field %s: is required", requiredKey)) + } + } + for key, value := range fields { + details, ok := properties.At(key) + + // Special case for runtime.RawExtension and runtime.Objects because they always fail to validate + // This is because the actual values will be of some sub-type (e.g. Deployment) not the expected + // super-type (RawExtension) + if s.isGenericArray(details) { + errs := s.validateItems(value) + if len(errs) > 0 { + allErrs = append(allErrs, errs...) + } + continue + } + if !ok { + allErrs = append(allErrs, fmt.Errorf("found invalid field %s for %s", key, typeName)) + continue + } + if details.Type == nil && details.Ref == nil { + allErrs = append(allErrs, fmt.Errorf("could not find the type of %s from object: %v", key, details)) + } + var fieldType string + if details.Type != nil { + fieldType = *details.Type + } else { + fieldType = *details.Ref + } + if value == nil { + glog.V(2).Infof("Skipping nil field: %s", key) + continue + } + errs := s.validateField(value, fieldName+key, fieldType, &details) + if len(errs) > 0 { + allErrs = append(allErrs, errs...) + } + } + return allErrs +} + +// delegateIfDifferentApiVersion delegates the validation of an object if its ApiGroup does not match the +// current SwaggerSchema. +// First return value is true if the validation was delegated (by a different ApiGroup SwaggerSchema) +// Second return value is the result of the delegated validation if performed. +func (s *SwaggerSchema) delegateIfDifferentApiVersion(obj runtime.Unstructured) (bool, error) { + // Never delegate objects in the same ApiVersion or we will get infinite recursion + if !s.isDifferentApiVersion(obj) { + return false, nil + } + + // Convert the object back into bytes so that we can pass it to the ValidateBytes function + m, err := json.Marshal(obj.Object) + if err != nil { + return true, err + } + + // Delegate validation of this object to the correct SwaggerSchema for its ApiGroup + return true, s.delegate.ValidateBytes(m) +} + +// isDifferentApiVersion Returns true if obj lives in a different ApiVersion than the SwaggerSchema does. +// The SwaggerSchema will not be able to process objects in different ApiVersions unless they are vendored. +func (s *SwaggerSchema) isDifferentApiVersion(obj runtime.Unstructured) bool { + groupVersion := obj.GetAPIVersion() + return len(groupVersion) > 0 && s.api.ApiVersion != groupVersion +} + +// isGenericArray Returns true if p is an array of generic Objects - either RawExtension or Object. +func (s *SwaggerSchema) isGenericArray(p swagger.ModelProperty) bool { + return p.DataTypeFields.Type != nil && + *p.DataTypeFields.Type == "array" && + p.Items != nil && + p.Items.Ref != nil && + (*p.Items.Ref == "runtime.RawExtension" || *p.Items.Ref == "runtime.Object") +} + +// This matches type name in the swagger spec, such as "v1.Binding". +var versionRegexp = regexp.MustCompile(`^(v.+|unversioned)\..*`) + +func (s *SwaggerSchema) validateField(value interface{}, fieldName, fieldType string, fieldDetails *swagger.ModelProperty) []error { + allErrs := []error{} + if reflect.TypeOf(value) == nil { + return append(allErrs, fmt.Errorf("unexpected nil value for field %v", fieldName)) + } + // TODO: caesarxuchao: because we have multiple group/versions and objects + // may reference objects in other group, the commented out way of checking + // if a filedType is a type defined by us is outdated. We use a hacky way + // for now. + // TODO: the type name in the swagger spec is something like "v1.Binding", + // and the "v1" is generated from the package name, not the groupVersion of + // the type. We need to fix go-restful to embed the group name in the type + // name, otherwise we couldn't handle identically named types in different + // groups correctly. + if versionRegexp.MatchString(fieldType) { + // if strings.HasPrefix(fieldType, apiVersion) { + return s.ValidateObject(value, fieldName, fieldType) + } + switch fieldType { + case "string": + // Be loose about what we accept for 'string' since we use IntOrString in a couple of places + _, isString := value.(string) + _, isNumber := value.(float64) + _, isInteger := value.(int) + if !isString && !isNumber && !isInteger { + return append(allErrs, NewInvalidTypeError(reflect.String, reflect.TypeOf(value).Kind(), fieldName)) + } + case "array": + arr, ok := value.([]interface{}) + if !ok { + return append(allErrs, NewInvalidTypeError(reflect.Array, reflect.TypeOf(value).Kind(), fieldName)) + } + var arrType string + if fieldDetails.Items.Ref == nil && fieldDetails.Items.Type == nil { + return append(allErrs, NewInvalidTypeError(reflect.Array, reflect.TypeOf(value).Kind(), fieldName)) + } + if fieldDetails.Items.Ref != nil { + arrType = *fieldDetails.Items.Ref + } else { + arrType = *fieldDetails.Items.Type + } + for ix := range arr { + errs := s.validateField(arr[ix], fmt.Sprintf("%s[%d]", fieldName, ix), arrType, nil) + if len(errs) > 0 { + allErrs = append(allErrs, errs...) + } + } + case "uint64": + case "int64": + case "integer": + _, isNumber := value.(float64) + _, isInteger := value.(int) + if !isNumber && !isInteger { + return append(allErrs, NewInvalidTypeError(reflect.Int, reflect.TypeOf(value).Kind(), fieldName)) + } + case "float64": + if _, ok := value.(float64); !ok { + return append(allErrs, NewInvalidTypeError(reflect.Float64, reflect.TypeOf(value).Kind(), fieldName)) + } + case "boolean": + if _, ok := value.(bool); !ok { + return append(allErrs, NewInvalidTypeError(reflect.Bool, reflect.TypeOf(value).Kind(), fieldName)) + } + // API servers before release 1.3 produce swagger spec with `type: "any"` as the fallback type, while newer servers produce spec with `type: "object"`. + // We have both here so that kubectl can work with both old and new api servers. + case "object": + case "any": + default: + return append(allErrs, fmt.Errorf("unexpected type: %v", fieldType)) + } + return allErrs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/validation.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/validation.go new file mode 100644 index 0000000000..96c44a6476 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/validation/validation.go @@ -0,0 +1,3274 @@ +/* +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 validation + +import ( + "encoding/json" + "fmt" + "net" + "os" + "path" + "reflect" + "strings" + + "github.com/golang/glog" + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/endpoints" + utilpod "k8s.io/client-go/1.4/pkg/api/pod" + "k8s.io/client-go/1.4/pkg/api/resource" + apiservice "k8s.io/client-go/1.4/pkg/api/service" + "k8s.io/client-go/1.4/pkg/api/unversioned" + unversionedvalidation "k8s.io/client-go/1.4/pkg/api/unversioned/validation" + "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/util/intstr" + "k8s.io/client-go/1.4/pkg/util/sets" + "k8s.io/client-go/1.4/pkg/util/validation" + "k8s.io/client-go/1.4/pkg/util/validation/field" +) + +// TODO: delete this global variable when we enable the validation of common +// fields by default. +var RepairMalformedUpdates bool = true + +const isNegativeErrorMsg string = `must be greater than or equal to 0` +const isInvalidQuotaResource string = `must be a standard resource for quota` +const fieldImmutableErrorMsg string = `field is immutable` +const isNotIntegerErrorMsg string = `must be an integer` + +var pdPartitionErrorMsg string = validation.InclusiveRangeError(1, 255) + +const totalAnnotationSizeLimitB int = 256 * (1 << 10) // 256 kB + +// BannedOwners is a black list of object that are not allowed to be owners. +var BannedOwners = map[unversioned.GroupVersionKind]struct{}{ + v1.SchemeGroupVersion.WithKind("Event"): {}, +} + +// ValidateHasLabel requires that api.ObjectMeta has a Label with key and expectedValue +func ValidateHasLabel(meta api.ObjectMeta, fldPath *field.Path, key, expectedValue string) field.ErrorList { + allErrs := field.ErrorList{} + actualValue, found := meta.Labels[key] + if !found { + allErrs = append(allErrs, field.Required(fldPath.Child("labels").Key(key), + fmt.Sprintf("must be '%s'", expectedValue))) + return allErrs + } + if actualValue != expectedValue { + allErrs = append(allErrs, field.Invalid(fldPath.Child("labels").Key(key), meta.Labels, + fmt.Sprintf("must be '%s'", expectedValue))) + } + return allErrs +} + +// ValidateAnnotations validates that a set of annotations are correctly defined. +func ValidateAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + var totalSize int64 + for k, v := range annotations { + for _, msg := range validation.IsQualifiedName(strings.ToLower(k)) { + allErrs = append(allErrs, field.Invalid(fldPath, k, msg)) + } + totalSize += (int64)(len(k)) + (int64)(len(v)) + } + if totalSize > (int64)(totalAnnotationSizeLimitB) { + allErrs = append(allErrs, field.TooLong(fldPath, "", totalAnnotationSizeLimitB)) + } + return allErrs +} + +func ValidateDNS1123Label(value string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsDNS1123Label(value) { + allErrs = append(allErrs, field.Invalid(fldPath, value, msg)) + } + return allErrs +} + +func ValidatePodSpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if annotations[api.AffinityAnnotationKey] != "" { + allErrs = append(allErrs, ValidateAffinityInPodAnnotations(annotations, fldPath)...) + } + + if annotations[api.TolerationsAnnotationKey] != "" { + allErrs = append(allErrs, ValidateTolerationsInPodAnnotations(annotations, fldPath)...) + } + + // TODO: remove these after we EOL the annotations. + if hostname, exists := annotations[utilpod.PodHostnameAnnotation]; exists { + allErrs = append(allErrs, ValidateDNS1123Label(hostname, fldPath.Key(utilpod.PodHostnameAnnotation))...) + } + if subdomain, exists := annotations[utilpod.PodSubdomainAnnotation]; exists { + allErrs = append(allErrs, ValidateDNS1123Label(subdomain, fldPath.Key(utilpod.PodSubdomainAnnotation))...) + } + + allErrs = append(allErrs, ValidateSeccompPodAnnotations(annotations, fldPath)...) + + return allErrs +} + +func ValidateEndpointsSpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + // TODO: remove this after we EOL the annotation. + hostnamesMap, exists := annotations[endpoints.PodHostnamesAnnotation] + if exists && !isValidHostnamesMap(hostnamesMap) { + allErrs = append(allErrs, field.Invalid(fldPath, endpoints.PodHostnamesAnnotation, + `must be a valid json representation of map[string(IP)][HostRecord] e.g. "{"10.245.1.6":{"HostName":"my-webserver"}}"`)) + } + + return allErrs +} + +func validateOwnerReference(ownerReference api.OwnerReference, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + gvk := unversioned.FromAPIVersionAndKind(ownerReference.APIVersion, ownerReference.Kind) + // gvk.Group is empty for the legacy group. + if len(gvk.Version) == 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("apiVersion"), ownerReference.APIVersion, "version must not be empty")) + } + if len(gvk.Kind) == 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("kind"), ownerReference.Kind, "kind must not be empty")) + } + if len(ownerReference.Name) == 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), ownerReference.Name, "name must not be empty")) + } + if len(ownerReference.UID) == 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("uid"), ownerReference.UID, "uid must not be empty")) + } + if _, ok := BannedOwners[gvk]; ok { + allErrs = append(allErrs, field.Invalid(fldPath, ownerReference, fmt.Sprintf("%s is disallowed from being an owner", gvk))) + } + return allErrs +} + +func ValidateOwnerReferences(ownerReferences []api.OwnerReference, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + controllerName := "" + for _, ref := range ownerReferences { + allErrs = append(allErrs, validateOwnerReference(ref, fldPath)...) + if ref.Controller != nil && *ref.Controller { + if controllerName != "" { + allErrs = append(allErrs, field.Invalid(fldPath, ownerReferences, + fmt.Sprintf("Only one reference can have Controller set to true. Found \"true\" in references for %v and %v", controllerName, ref.Name))) + } else { + controllerName = ref.Name + } + } + } + return allErrs +} + +// ValidateNameFunc validates that the provided name is valid for a given resource type. +// Not all resources have the same validation rules for names. Prefix is true +// if the name will have a value appended to it. If the name is not valid, +// this returns a list of descriptions of individual characteristics of the +// value that were not valid. Otherwise this returns an empty list or nil. +type ValidateNameFunc func(name string, prefix bool) []string + +// maskTrailingDash replaces the final character of a string with a subdomain safe +// value if is a dash. +func maskTrailingDash(name string) string { + if strings.HasSuffix(name, "-") { + return name[:len(name)-2] + "a" + } + return name +} + +// ValidatePodName can be used to check whether the given pod name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidatePodName = NameIsDNSSubdomain + +// ValidateReplicationControllerName can be used to check whether the given replication +// controller name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateReplicationControllerName = NameIsDNSSubdomain + +// ValidateServiceName can be used to check whether the given service name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateServiceName = NameIsDNS1035Label + +// ValidateNodeName can be used to check whether the given node name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateNodeName = NameIsDNSSubdomain + +// ValidateNamespaceName can be used to check whether the given namespace name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateNamespaceName = NameIsDNSLabel + +// ValidateLimitRangeName can be used to check whether the given limit range name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateLimitRangeName = NameIsDNSSubdomain + +// ValidateResourceQuotaName can be used to check whether the given +// resource quota name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateResourceQuotaName = NameIsDNSSubdomain + +// ValidateSecretName can be used to check whether the given secret name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateSecretName = NameIsDNSSubdomain + +// ValidateServiceAccountName can be used to check whether the given service account name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateServiceAccountName = NameIsDNSSubdomain + +// ValidateEndpointsName can be used to check whether the given endpoints name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateEndpointsName = NameIsDNSSubdomain + +// NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain. +func NameIsDNSSubdomain(name string, prefix bool) []string { + if prefix { + name = maskTrailingDash(name) + } + return validation.IsDNS1123Subdomain(name) +} + +// NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label. +func NameIsDNSLabel(name string, prefix bool) []string { + if prefix { + name = maskTrailingDash(name) + } + return validation.IsDNS1123Label(name) +} + +// NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label. +func NameIsDNS1035Label(name string, prefix bool) []string { + if prefix { + name = maskTrailingDash(name) + } + return validation.IsDNS1035Label(name) +} + +// Validates that given value is not negative. +func ValidateNonnegativeField(value int64, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if value < 0 { + allErrs = append(allErrs, field.Invalid(fldPath, value, isNegativeErrorMsg)) + } + return allErrs +} + +// Validates that a Quantity is not negative +func ValidateNonnegativeQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if value.Cmp(resource.Quantity{}) < 0 { + allErrs = append(allErrs, field.Invalid(fldPath, value.String(), isNegativeErrorMsg)) + } + return allErrs +} + +func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if !api.Semantic.DeepEqual(oldVal, newVal) { + allErrs = append(allErrs, field.Invalid(fldPath, newVal, fieldImmutableErrorMsg)) + } + return allErrs +} + +// ValidateObjectMeta validates an object's metadata on creation. It expects that name generation has already +// been performed. +// It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before. +// TODO: Remove calls to this method scattered in validations of specific resources, e.g., ValidatePodUpdate. +func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if len(meta.GenerateName) != 0 { + for _, msg := range nameFn(meta.GenerateName, true) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("generateName"), meta.GenerateName, msg)) + } + } + // If the generated name validates, but the calculated value does not, it's a problem with generation, and we + // report it here. This may confuse users, but indicates a programming bug and still must be validated. + // If there are multiple fields out of which one is required then add a or as a separator + if len(meta.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("name"), "name or generateName is required")) + } else { + for _, msg := range nameFn(meta.Name, false) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), meta.Name, msg)) + } + } + if requiresNamespace { + if len(meta.Namespace) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("namespace"), "")) + } else { + for _, msg := range ValidateNamespaceName(meta.Namespace, false) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("namespace"), meta.Namespace, msg)) + } + } + } else { + if len(meta.Namespace) != 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("namespace"), "not allowed on this type")) + } + } + 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"))...) + allErrs = append(allErrs, ValidateOwnerReferences(meta.OwnerReferences, fldPath.Child("ownerReferences"))...) + for _, finalizer := range meta.Finalizers { + allErrs = append(allErrs, validateFinalizerName(finalizer, fldPath.Child("finalizers"))...) + } + return allErrs +} + +// ValidateObjectMetaUpdate validates an object's metadata when updated +func ValidateObjectMetaUpdate(newMeta, oldMeta *api.ObjectMeta, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if !RepairMalformedUpdates && newMeta.UID != oldMeta.UID { + allErrs = append(allErrs, field.Invalid(fldPath.Child("uid"), newMeta.UID, "field is immutable")) + } + // in the event it is left empty, set it, to allow clients more flexibility + // TODO: remove the following code that repairs the update request when we retire the clients that modify the immutable fields. + // Please do not copy this pattern elsewhere; validation functions should not be modifying the objects they are passed! + if RepairMalformedUpdates { + if len(newMeta.UID) == 0 { + newMeta.UID = oldMeta.UID + } + // ignore changes to timestamp + if oldMeta.CreationTimestamp.IsZero() { + oldMeta.CreationTimestamp = newMeta.CreationTimestamp + } else { + newMeta.CreationTimestamp = oldMeta.CreationTimestamp + } + // an object can never remove a deletion timestamp or clear/change grace period seconds + if !oldMeta.DeletionTimestamp.IsZero() { + newMeta.DeletionTimestamp = oldMeta.DeletionTimestamp + } + if oldMeta.DeletionGracePeriodSeconds != nil && newMeta.DeletionGracePeriodSeconds == nil { + newMeta.DeletionGracePeriodSeconds = oldMeta.DeletionGracePeriodSeconds + } + } + + // TODO: needs to check if newMeta==nil && oldMeta !=nil after the repair logic is removed. + if newMeta.DeletionGracePeriodSeconds != nil && (oldMeta.DeletionGracePeriodSeconds == nil || *newMeta.DeletionGracePeriodSeconds != *oldMeta.DeletionGracePeriodSeconds) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("deletionGracePeriodSeconds"), newMeta.DeletionGracePeriodSeconds, "field is immutable; may only be changed via deletion")) + } + if newMeta.DeletionTimestamp != nil && (oldMeta.DeletionTimestamp == nil || !newMeta.DeletionTimestamp.Equal(*oldMeta.DeletionTimestamp)) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("deletionTimestamp"), newMeta.DeletionTimestamp, "field is immutable; may only be changed via deletion")) + } + + // Reject updates that don't specify a resource version + if len(newMeta.ResourceVersion) == 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("resourceVersion"), newMeta.ResourceVersion, "must be specified for an update")) + } + + // Generation shouldn't be decremented + if newMeta.Generation < oldMeta.Generation { + allErrs = append(allErrs, field.Invalid(fldPath.Child("generation"), newMeta.Generation, "must not be decremented")) + } + + allErrs = append(allErrs, ValidateImmutableField(newMeta.Name, oldMeta.Name, fldPath.Child("name"))...) + 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, unversionedvalidation.ValidateLabels(newMeta.Labels, fldPath.Child("labels"))...) + allErrs = append(allErrs, ValidateAnnotations(newMeta.Annotations, fldPath.Child("annotations"))...) + allErrs = append(allErrs, ValidateOwnerReferences(newMeta.OwnerReferences, fldPath.Child("ownerReferences"))...) + + return allErrs +} + +func validateVolumes(volumes []api.Volume, fldPath *field.Path) (sets.String, field.ErrorList) { + allErrs := field.ErrorList{} + + allNames := sets.String{} + for i, vol := range volumes { + idxPath := fldPath.Index(i) + namePath := idxPath.Child("name") + el := validateVolumeSource(&vol.VolumeSource, idxPath) + if len(vol.Name) == 0 { + el = append(el, field.Required(namePath, "")) + } else { + el = append(el, ValidateDNS1123Label(vol.Name, namePath)...) + } + if allNames.Has(vol.Name) { + el = append(el, field.Duplicate(namePath, vol.Name)) + } + if len(el) == 0 { + allNames.Insert(vol.Name) + } else { + allErrs = append(allErrs, el...) + } + + } + return allNames, allErrs +} + +func validateVolumeSource(source *api.VolumeSource, fldPath *field.Path) field.ErrorList { + numVolumes := 0 + allErrs := field.ErrorList{} + if source.EmptyDir != nil { + numVolumes++ + // EmptyDirs have nothing to validate + } + if source.HostPath != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("hostPath"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateHostPathVolumeSource(source.HostPath, fldPath.Child("hostPath"))...) + } + } + if source.GitRepo != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("gitRepo"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateGitRepoVolumeSource(source.GitRepo, fldPath.Child("gitRepo"))...) + } + } + if source.GCEPersistentDisk != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("gcePersistentDisk"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateGCEPersistentDiskVolumeSource(source.GCEPersistentDisk, fldPath.Child("persistentDisk"))...) + } + } + if source.AWSElasticBlockStore != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("awsElasticBlockStore"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateAWSElasticBlockStoreVolumeSource(source.AWSElasticBlockStore, fldPath.Child("awsElasticBlockStore"))...) + } + } + if source.Secret != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("secret"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateSecretVolumeSource(source.Secret, fldPath.Child("secret"))...) + } + } + if source.NFS != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("nfs"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateNFSVolumeSource(source.NFS, fldPath.Child("nfs"))...) + } + } + if source.ISCSI != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("iscsi"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateISCSIVolumeSource(source.ISCSI, fldPath.Child("iscsi"))...) + } + } + if source.Glusterfs != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("glusterfs"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateGlusterfs(source.Glusterfs, fldPath.Child("glusterfs"))...) + } + } + if source.Flocker != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("flocker"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateFlockerVolumeSource(source.Flocker, fldPath.Child("flocker"))...) + } + } + if source.PersistentVolumeClaim != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("persistentVolumeClaim"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validatePersistentClaimVolumeSource(source.PersistentVolumeClaim, fldPath.Child("persistentVolumeClaim"))...) + } + } + if source.RBD != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("rbd"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateRBDVolumeSource(source.RBD, fldPath.Child("rbd"))...) + } + } + if source.Cinder != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("cinder"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateCinderVolumeSource(source.Cinder, fldPath.Child("cinder"))...) + } + } + if source.CephFS != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("cephFS"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateCephFSVolumeSource(source.CephFS, fldPath.Child("cephfs"))...) + } + } + if source.DownwardAPI != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("downwarAPI"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateDownwardAPIVolumeSource(source.DownwardAPI, fldPath.Child("downwardAPI"))...) + } + } + if source.FC != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("fc"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateFCVolumeSource(source.FC, fldPath.Child("fc"))...) + } + } + if source.FlexVolume != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("flexVolume"), "may not specifiy more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateFlexVolumeSource(source.FlexVolume, fldPath.Child("flexVolume"))...) + } + } + if source.ConfigMap != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("configMap"), "may not specifiy more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateConfigMapVolumeSource(source.ConfigMap, fldPath.Child("configMap"))...) + } + } + if source.AzureFile != nil { + numVolumes++ + allErrs = append(allErrs, validateAzureFile(source.AzureFile, fldPath.Child("azureFile"))...) + } + if source.VsphereVolume != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("vsphereVolume"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateVsphereVolumeSource(source.VsphereVolume, fldPath.Child("vsphereVolume"))...) + } + } + if numVolumes == 0 { + allErrs = append(allErrs, field.Required(fldPath, "must specify a volume type")) + } + + return allErrs +} + +func validateHostPathVolumeSource(hostPath *api.HostPathVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(hostPath.Path) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) + } + return allErrs +} + +func validateGitRepoVolumeSource(gitRepo *api.GitRepoVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(gitRepo.Repository) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("repository"), "")) + } + + pathErrs := validateLocalDescendingPath(gitRepo.Directory, fldPath.Child("directory")) + allErrs = append(allErrs, pathErrs...) + return allErrs +} + +func validateISCSIVolumeSource(iscsi *api.ISCSIVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(iscsi.TargetPortal) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("targetPortal"), "")) + } + if len(iscsi.IQN) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("iqn"), "")) + } + if iscsi.Lun < 0 || iscsi.Lun > 255 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("lun"), iscsi.Lun, validation.InclusiveRangeError(0, 255))) + } + return allErrs +} + +func validateFCVolumeSource(fc *api.FCVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(fc.TargetWWNs) < 1 { + allErrs = append(allErrs, field.Required(fldPath.Child("targetWWNs"), "")) + } + + if fc.Lun == nil { + allErrs = append(allErrs, field.Required(fldPath.Child("lun"), "")) + } else { + if *fc.Lun < 0 || *fc.Lun > 255 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("lun"), fc.Lun, validation.InclusiveRangeError(0, 255))) + } + } + return allErrs +} + +func validateGCEPersistentDiskVolumeSource(pd *api.GCEPersistentDiskVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(pd.PDName) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("pdName"), "")) + } + if pd.Partition < 0 || pd.Partition > 255 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("partition"), pd.Partition, pdPartitionErrorMsg)) + } + return allErrs +} + +func validateAWSElasticBlockStoreVolumeSource(PD *api.AWSElasticBlockStoreVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(PD.VolumeID) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("volumeID"), "")) + } + if PD.Partition < 0 || PD.Partition > 255 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("partition"), PD.Partition, pdPartitionErrorMsg)) + } + return allErrs +} + +func validateSecretVolumeSource(secretSource *api.SecretVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(secretSource.SecretName) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("secretName"), "")) + } + itemsPath := fldPath.Child("items") + for i, kp := range secretSource.Items { + itemPath := itemsPath.Index(i) + allErrs = append(allErrs, validateKeyToPath(&kp, itemPath)...) + } + return allErrs +} + +func validateConfigMapVolumeSource(configMapSource *api.ConfigMapVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(configMapSource.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) + } + itemsPath := fldPath.Child("items") + for i, kp := range configMapSource.Items { + itemPath := itemsPath.Index(i) + allErrs = append(allErrs, validateKeyToPath(&kp, itemPath)...) + } + return allErrs +} + +func validateKeyToPath(kp *api.KeyToPath, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(kp.Key) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("key"), "")) + } + if len(kp.Path) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) + } + allErrs = append(allErrs, validateLocalNonReservedPath(kp.Path, fldPath.Child("path"))...) + return allErrs +} + +func validatePersistentClaimVolumeSource(claim *api.PersistentVolumeClaimVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(claim.ClaimName) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("claimName"), "")) + } + return allErrs +} + +func validateNFSVolumeSource(nfs *api.NFSVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(nfs.Server) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("server"), "")) + } + if len(nfs.Path) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) + } + if !path.IsAbs(nfs.Path) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("path"), nfs.Path, "must be an absolute path")) + } + return allErrs +} + +func validateGlusterfs(glusterfs *api.GlusterfsVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(glusterfs.EndpointsName) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("endpoints"), "")) + } + if len(glusterfs.Path) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) + } + return allErrs +} + +func validateFlockerVolumeSource(flocker *api.FlockerVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(flocker.DatasetName) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("datasetName"), "")) + } + if strings.Contains(flocker.DatasetName, "/") { + allErrs = append(allErrs, field.Invalid(fldPath.Child("datasetName"), flocker.DatasetName, "must not contain '/'")) + } + return allErrs +} + +var validDownwardAPIFieldPathExpressions = sets.NewString( + "metadata.name", + "metadata.namespace", + "metadata.labels", + "metadata.annotations") + +func validateDownwardAPIVolumeSource(downwardAPIVolume *api.DownwardAPIVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, file := range downwardAPIVolume.Items { + if len(file.Path) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) + } + allErrs = append(allErrs, validateLocalNonReservedPath(file.Path, fldPath.Child("path"))...) + if file.FieldRef != nil { + allErrs = append(allErrs, validateObjectFieldSelector(file.FieldRef, &validDownwardAPIFieldPathExpressions, fldPath.Child("fieldRef"))...) + if file.ResourceFieldRef != nil { + allErrs = append(allErrs, field.Invalid(fldPath, "resource", "fieldRef and resourceFieldRef can not be specified simultaneously")) + } + } else if file.ResourceFieldRef != nil { + allErrs = append(allErrs, validateContainerResourceFieldSelector(file.ResourceFieldRef, &validContainerResourceFieldPathExpressions, fldPath.Child("resourceFieldRef"), true)...) + } else { + allErrs = append(allErrs, field.Required(fldPath, "one of fieldRef and resourceFieldRef is required")) + } + } + return allErrs +} + +// This validate will make sure targetPath: +// 1. is not abs path +// 2. does not have any element which is ".." +func validateLocalDescendingPath(targetPath string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if path.IsAbs(targetPath) { + allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must be a relative path")) + } + + // TODO: this assumes the OS of apiserver & nodes are the same + parts := strings.Split(targetPath, string(os.PathSeparator)) + for _, item := range parts { + if item == ".." { + allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not contain '..'")) + break // even for `../../..`, one error is sufficient to make the point + } + } + return allErrs +} + +// This validate will make sure targetPath: +// 1. is not abs path +// 2. does not contain any '..' elements +// 3. does not start with '..' +func validateLocalNonReservedPath(targetPath string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = append(allErrs, validateLocalDescendingPath(targetPath, fldPath)...) + // Don't report this error if the check for .. elements already caught it. + if strings.HasPrefix(targetPath, "..") && !strings.HasPrefix(targetPath, "../") { + allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must not start with '..'")) + } + return allErrs +} + +func validateRBDVolumeSource(rbd *api.RBDVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(rbd.CephMonitors) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("monitors"), "")) + } + if len(rbd.RBDImage) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("image"), "")) + } + return allErrs +} + +func validateCinderVolumeSource(cd *api.CinderVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(cd.VolumeID) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("volumeID"), "")) + } + return allErrs +} + +func validateCephFSVolumeSource(cephfs *api.CephFSVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(cephfs.Monitors) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("monitors"), "")) + } + return allErrs +} + +func validateFlexVolumeSource(fv *api.FlexVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(fv.Driver) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("driver"), "")) + } + return allErrs +} + +func validateAzureFile(azure *api.AzureFileVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if azure.SecretName == "" { + allErrs = append(allErrs, field.Required(fldPath.Child("secretName"), "")) + } + if azure.ShareName == "" { + allErrs = append(allErrs, field.Required(fldPath.Child("shareName"), "")) + } + return allErrs +} + +func validateVsphereVolumeSource(cd *api.VsphereVirtualDiskVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(cd.VolumePath) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("volumePath"), "")) + } + return allErrs +} + +// ValidatePersistentVolumeName checks that a name is appropriate for a +// PersistentVolumeName object. +var ValidatePersistentVolumeName = NameIsDNSSubdomain + +var supportedAccessModes = sets.NewString(string(api.ReadWriteOnce), string(api.ReadOnlyMany), string(api.ReadWriteMany)) + +func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList { + allErrs := ValidateObjectMeta(&pv.ObjectMeta, false, ValidatePersistentVolumeName, field.NewPath("metadata")) + + specPath := field.NewPath("spec") + if len(pv.Spec.AccessModes) == 0 { + allErrs = append(allErrs, field.Required(specPath.Child("accessModes"), "")) + } + for _, mode := range pv.Spec.AccessModes { + if !supportedAccessModes.Has(string(mode)) { + allErrs = append(allErrs, field.NotSupported(specPath.Child("accessModes"), mode, supportedAccessModes.List())) + } + } + + if len(pv.Spec.Capacity) == 0 { + allErrs = append(allErrs, field.Required(specPath.Child("capacity"), "")) + } + + if _, ok := pv.Spec.Capacity[api.ResourceStorage]; !ok || len(pv.Spec.Capacity) > 1 { + allErrs = append(allErrs, field.NotSupported(specPath.Child("capacity"), pv.Spec.Capacity, []string{string(api.ResourceStorage)})) + } + capPath := specPath.Child("capacity") + for r, qty := range pv.Spec.Capacity { + allErrs = append(allErrs, validateBasicResource(qty, capPath.Key(string(r)))...) + } + + numVolumes := 0 + if pv.Spec.HostPath != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("hostPath"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateHostPathVolumeSource(pv.Spec.HostPath, specPath.Child("hostPath"))...) + } + } + if pv.Spec.GCEPersistentDisk != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("gcePersistentDisk"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateGCEPersistentDiskVolumeSource(pv.Spec.GCEPersistentDisk, specPath.Child("persistentDisk"))...) + } + } + if pv.Spec.AWSElasticBlockStore != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("awsElasticBlockStore"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateAWSElasticBlockStoreVolumeSource(pv.Spec.AWSElasticBlockStore, specPath.Child("awsElasticBlockStore"))...) + } + } + if pv.Spec.Glusterfs != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("glusterfs"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateGlusterfs(pv.Spec.Glusterfs, specPath.Child("glusterfs"))...) + } + } + if pv.Spec.Flocker != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("flocker"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateFlockerVolumeSource(pv.Spec.Flocker, specPath.Child("flocker"))...) + } + } + if pv.Spec.NFS != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("nfs"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateNFSVolumeSource(pv.Spec.NFS, specPath.Child("nfs"))...) + } + } + if pv.Spec.RBD != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("rbd"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateRBDVolumeSource(pv.Spec.RBD, specPath.Child("rbd"))...) + } + } + if pv.Spec.CephFS != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("cephFS"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateCephFSVolumeSource(pv.Spec.CephFS, specPath.Child("cephfs"))...) + } + } + if pv.Spec.ISCSI != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("iscsi"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateISCSIVolumeSource(pv.Spec.ISCSI, specPath.Child("iscsi"))...) + } + } + if pv.Spec.Cinder != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("cinder"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateCinderVolumeSource(pv.Spec.Cinder, specPath.Child("cinder"))...) + } + } + if pv.Spec.FC != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("fc"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateFCVolumeSource(pv.Spec.FC, specPath.Child("fc"))...) + } + } + if pv.Spec.FlexVolume != nil { + numVolumes++ + allErrs = append(allErrs, validateFlexVolumeSource(pv.Spec.FlexVolume, specPath.Child("flexVolume"))...) + } + if pv.Spec.AzureFile != nil { + numVolumes++ + allErrs = append(allErrs, validateAzureFile(pv.Spec.AzureFile, specPath.Child("azureFile"))...) + } + if pv.Spec.VsphereVolume != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("vsphereVolume"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateVsphereVolumeSource(pv.Spec.VsphereVolume, specPath.Child("vsphereVolume"))...) + } + } + if numVolumes == 0 { + allErrs = append(allErrs, field.Required(specPath, "must specify a volume type")) + } + return allErrs +} + +// ValidatePersistentVolumeUpdate tests to see if the update is legal for an end user to make. +// newPv is updated with fields that cannot be changed. +func ValidatePersistentVolumeUpdate(newPv, oldPv *api.PersistentVolume) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = ValidatePersistentVolume(newPv) + newPv.Status = oldPv.Status + return allErrs +} + +// ValidatePersistentVolumeStatusUpdate tests to see if the status update is legal for an end user to make. +// newPv is updated with fields that cannot be changed. +func ValidatePersistentVolumeStatusUpdate(newPv, oldPv *api.PersistentVolume) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newPv.ObjectMeta, &oldPv.ObjectMeta, field.NewPath("metadata")) + if len(newPv.ResourceVersion) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("resourceVersion"), "")) + } + newPv.Spec = oldPv.Spec + return allErrs +} + +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")) + } + if pvc.Spec.Selector != nil { + allErrs = append(allErrs, unversionedvalidation.ValidateLabelSelector(pvc.Spec.Selector, specPath.Child("selector"))...) + } + for _, mode := range pvc.Spec.AccessModes { + if mode != api.ReadWriteOnce && mode != api.ReadOnlyMany && mode != api.ReadWriteMany { + allErrs = append(allErrs, field.NotSupported(specPath.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)), "")) + } + return allErrs +} + +func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *api.PersistentVolumeClaim) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, ValidatePersistentVolumeClaim(newPvc)...) + // PVController needs to update PVC.Spec w/ VolumeName. + // Claims are immutable in order to enforce quota, range limits, etc. without gaming the system. + if len(oldPvc.Spec.VolumeName) == 0 { + // volumeName changes are allowed once. + // Reset back to empty string after equality check + oldPvc.Spec.VolumeName = newPvc.Spec.VolumeName + defer func() { oldPvc.Spec.VolumeName = "" }() + } + // changes to Spec are not allowed, but updates to label/annotations are OK. + // no-op updates pass validation. + if !api.Semantic.DeepEqual(newPvc.Spec, oldPvc.Spec) { + allErrs = append(allErrs, field.Forbidden(field.NewPath("spec"), "field is immutable after creation")) + } + newPvc.Status = oldPvc.Status + return allErrs +} + +func ValidatePersistentVolumeClaimStatusUpdate(newPvc, oldPvc *api.PersistentVolumeClaim) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata")) + if len(newPvc.ResourceVersion) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("resourceVersion"), "")) + } + if len(newPvc.Spec.AccessModes) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("Spec", "accessModes"), "")) + } + capPath := field.NewPath("status", "capacity") + for r, qty := range newPvc.Status.Capacity { + allErrs = append(allErrs, validateBasicResource(qty, capPath.Key(string(r)))...) + } + newPvc.Spec = oldPvc.Spec + return allErrs +} + +var supportedPortProtocols = sets.NewString(string(api.ProtocolTCP), string(api.ProtocolUDP)) + +func validateContainerPorts(ports []api.ContainerPort, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + allNames := sets.String{} + for i, port := range ports { + idxPath := fldPath.Index(i) + if len(port.Name) > 0 { + if msgs := validation.IsValidPortName(port.Name); len(msgs) != 0 { + for i = range msgs { + allErrs = append(allErrs, field.Invalid(idxPath.Child("name"), port.Name, msgs[i])) + } + } else if allNames.Has(port.Name) { + allErrs = append(allErrs, field.Duplicate(idxPath.Child("name"), port.Name)) + } else { + allNames.Insert(port.Name) + } + } + if port.ContainerPort == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("containerPort"), "")) + } else { + for _, msg := range validation.IsValidPortNum(int(port.ContainerPort)) { + allErrs = append(allErrs, field.Invalid(idxPath.Child("containerPort"), port.ContainerPort, msg)) + } + } + if port.HostPort != 0 { + for _, msg := range validation.IsValidPortNum(int(port.HostPort)) { + allErrs = append(allErrs, field.Invalid(idxPath.Child("hostPort"), port.HostPort, msg)) + } + } + if len(port.Protocol) == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("protocol"), "")) + } else if !supportedPortProtocols.Has(string(port.Protocol)) { + allErrs = append(allErrs, field.NotSupported(idxPath.Child("protocol"), port.Protocol, supportedPortProtocols.List())) + } + } + return allErrs +} + +func validateEnv(vars []api.EnvVar, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + for i, ev := range vars { + idxPath := fldPath.Index(i) + if len(ev.Name) == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("name"), "")) + } else { + for _, msg := range validation.IsCIdentifier(ev.Name) { + allErrs = append(allErrs, field.Invalid(idxPath.Child("name"), ev.Name, msg)) + } + } + allErrs = append(allErrs, validateEnvVarValueFrom(ev, idxPath.Child("valueFrom"))...) + } + return allErrs +} + +var validFieldPathExpressionsEnv = sets.NewString("metadata.name", "metadata.namespace", "status.podIP") +var validContainerResourceFieldPathExpressions = sets.NewString("limits.cpu", "limits.memory", "requests.cpu", "requests.memory") + +func validateEnvVarValueFrom(ev api.EnvVar, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if ev.ValueFrom == nil { + return allErrs + } + + numSources := 0 + + if ev.ValueFrom.FieldRef != nil { + numSources++ + allErrs = append(allErrs, validateObjectFieldSelector(ev.ValueFrom.FieldRef, &validFieldPathExpressionsEnv, fldPath.Child("fieldRef"))...) + } + if ev.ValueFrom.ResourceFieldRef != nil { + numSources++ + allErrs = append(allErrs, validateContainerResourceFieldSelector(ev.ValueFrom.ResourceFieldRef, &validContainerResourceFieldPathExpressions, fldPath.Child("resourceFieldRef"), false)...) + } + if ev.ValueFrom.ConfigMapKeyRef != nil { + numSources++ + allErrs = append(allErrs, validateConfigMapKeySelector(ev.ValueFrom.ConfigMapKeyRef, fldPath.Child("configMapKeyRef"))...) + } + if ev.ValueFrom.SecretKeyRef != nil { + numSources++ + allErrs = append(allErrs, validateSecretKeySelector(ev.ValueFrom.SecretKeyRef, fldPath.Child("secretKeyRef"))...) + } + + if len(ev.Value) != 0 { + if numSources != 0 { + allErrs = append(allErrs, field.Invalid(fldPath, "", "may not be specified when `value` is not empty")) + } + } else if numSources != 1 { + allErrs = append(allErrs, field.Invalid(fldPath, "", "may not have more than one field specified at a time")) + } + + return allErrs +} + +func validateObjectFieldSelector(fs *api.ObjectFieldSelector, expressions *sets.String, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if len(fs.APIVersion) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("apiVersion"), "")) + } else if len(fs.FieldPath) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("fieldPath"), "")) + } else { + internalFieldPath, _, err := api.Scheme.ConvertFieldLabel(fs.APIVersion, "Pod", fs.FieldPath, "") + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Child("fieldPath"), fs.FieldPath, fmt.Sprintf("error converting fieldPath: %v", err))) + } else if !expressions.Has(internalFieldPath) { + allErrs = append(allErrs, field.NotSupported(fldPath.Child("fieldPath"), internalFieldPath, expressions.List())) + } + } + + return allErrs +} + +func validateContainerResourceFieldSelector(fs *api.ResourceFieldSelector, expressions *sets.String, fldPath *field.Path, volume bool) field.ErrorList { + allErrs := field.ErrorList{} + + if volume && len(fs.ContainerName) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("containerName"), "")) + } else if len(fs.Resource) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("resource"), "")) + } else if !expressions.Has(fs.Resource) { + allErrs = append(allErrs, field.NotSupported(fldPath.Child("resource"), fs.Resource, expressions.List())) + } + allErrs = append(allErrs, validateContainerResourceDivisor(fs.Resource, fs.Divisor, fldPath)...) + return allErrs +} + +var validContainerResourceDivisorForCPU = sets.NewString("1m", "1") +var validContainerResourceDivisorForMemory = sets.NewString("1", "1k", "1M", "1G", "1T", "1P", "1E", "1Ki", "1Mi", "1Gi", "1Ti", "1Pi", "1Ei") + +func validateContainerResourceDivisor(rName string, divisor resource.Quantity, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + unsetDivisor := resource.Quantity{} + if unsetDivisor.Cmp(divisor) == 0 { + return allErrs + } + switch rName { + case "limits.cpu", "requests.cpu": + if !validContainerResourceDivisorForCPU.Has(divisor.String()) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("divisor"), rName, "only divisor's values 1m and 1 are supported with the cpu resource")) + } + case "limits.memory", "requests.memory": + if !validContainerResourceDivisorForMemory.Has(divisor.String()) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("divisor"), rName, "only divisor's values 1, 1k, 1M, 1G, 1T, 1P, 1E, 1Ki, 1Mi, 1Gi, 1Ti, 1Pi, 1Ei are supported with the memory resource")) + } + } + return allErrs +} + +func validateConfigMapKeySelector(s *api.ConfigMapKeySelector, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if len(s.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) + } + if len(s.Key) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("key"), "")) + } else { + for _, msg := range validation.IsConfigMapKey(s.Key) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("key"), s.Key, msg)) + } + } + + return allErrs +} + +func validateSecretKeySelector(s *api.SecretKeySelector, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if len(s.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) + } + if len(s.Key) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("key"), "")) + } else { + for _, msg := range validation.IsConfigMapKey(s.Key) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("key"), s.Key, msg)) + } + } + + return allErrs +} + +func validateVolumeMounts(mounts []api.VolumeMount, volumes sets.String, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + mountpoints := sets.NewString() + + for i, mnt := range mounts { + idxPath := fldPath.Index(i) + if len(mnt.Name) == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("name"), "")) + } else if !volumes.Has(mnt.Name) { + allErrs = append(allErrs, field.NotFound(idxPath.Child("name"), mnt.Name)) + } + if len(mnt.MountPath) == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("mountPath"), "")) + } else if strings.Contains(mnt.MountPath, ":") { + allErrs = append(allErrs, field.Invalid(idxPath.Child("mountPath"), mnt.MountPath, "must not contain ':'")) + } + if mountpoints.Has(mnt.MountPath) { + allErrs = append(allErrs, field.Invalid(idxPath.Child("mountPath"), mnt.MountPath, "must be unique")) + } + mountpoints.Insert(mnt.MountPath) + if len(mnt.SubPath) > 0 { + allErrs = append(allErrs, validateLocalDescendingPath(mnt.SubPath, fldPath.Child("subPath"))...) + } + } + return allErrs +} + +func validateProbe(probe *api.Probe, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if probe == nil { + return allErrs + } + allErrs = append(allErrs, validateHandler(&probe.Handler, fldPath)...) + + allErrs = append(allErrs, ValidateNonnegativeField(int64(probe.InitialDelaySeconds), fldPath.Child("initialDelaySeconds"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(probe.TimeoutSeconds), fldPath.Child("timeoutSeconds"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(probe.PeriodSeconds), fldPath.Child("periodSeconds"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(probe.SuccessThreshold), fldPath.Child("successThreshold"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(probe.FailureThreshold), fldPath.Child("failureThreshold"))...) + return allErrs +} + +// AccumulateUniqueHostPorts extracts each HostPort of each Container, +// accumulating the results and returning an error if any ports conflict. +func AccumulateUniqueHostPorts(containers []api.Container, accumulator *sets.String, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + for ci, ctr := range containers { + idxPath := fldPath.Index(ci) + portsPath := idxPath.Child("ports") + for pi := range ctr.Ports { + idxPath := portsPath.Index(pi) + port := ctr.Ports[pi].HostPort + if port == 0 { + continue + } + str := fmt.Sprintf("%d/%s", port, ctr.Ports[pi].Protocol) + if accumulator.Has(str) { + allErrs = append(allErrs, field.Duplicate(idxPath.Child("hostPort"), str)) + } else { + accumulator.Insert(str) + } + } + } + return allErrs +} + +// checkHostPortConflicts checks for colliding Port.HostPort values across +// a slice of containers. +func checkHostPortConflicts(containers []api.Container, fldPath *field.Path) field.ErrorList { + allPorts := sets.String{} + return AccumulateUniqueHostPorts(containers, &allPorts, fldPath) +} + +func validateExecAction(exec *api.ExecAction, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + if len(exec.Command) == 0 { + allErrors = append(allErrors, field.Required(fldPath.Child("command"), "")) + } + return allErrors +} + +var supportedHTTPSchemes = sets.NewString(string(api.URISchemeHTTP), string(api.URISchemeHTTPS)) + +func validateHTTPGetAction(http *api.HTTPGetAction, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + if len(http.Path) == 0 { + allErrors = append(allErrors, field.Required(fldPath.Child("path"), "")) + } + allErrors = append(allErrors, ValidatePortNumOrName(http.Port, fldPath.Child("port"))...) + if !supportedHTTPSchemes.Has(string(http.Scheme)) { + allErrors = append(allErrors, field.NotSupported(fldPath.Child("scheme"), http.Scheme, supportedHTTPSchemes.List())) + } + for _, header := range http.HTTPHeaders { + for _, msg := range validation.IsHTTPHeaderName(header.Name) { + allErrors = append(allErrors, field.Invalid(fldPath.Child("httpHeaders"), header.Name, msg)) + } + } + return allErrors +} + +func ValidatePortNumOrName(port intstr.IntOrString, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if port.Type == intstr.Int { + for _, msg := range validation.IsValidPortNum(port.IntValue()) { + allErrs = append(allErrs, field.Invalid(fldPath, port.IntValue(), msg)) + } + } else if port.Type == intstr.String { + for _, msg := range validation.IsValidPortName(port.StrVal) { + allErrs = append(allErrs, field.Invalid(fldPath, port.StrVal, msg)) + } + } else { + allErrs = append(allErrs, field.InternalError(fldPath, fmt.Errorf("unknown type: %v", port.Type))) + } + return allErrs +} + +func validateTCPSocketAction(tcp *api.TCPSocketAction, fldPath *field.Path) field.ErrorList { + return ValidatePortNumOrName(tcp.Port, fldPath.Child("port")) +} + +func validateHandler(handler *api.Handler, fldPath *field.Path) field.ErrorList { + numHandlers := 0 + allErrors := field.ErrorList{} + if handler.Exec != nil { + if numHandlers > 0 { + allErrors = append(allErrors, field.Forbidden(fldPath.Child("exec"), "may not specify more than 1 handler type")) + } else { + numHandlers++ + allErrors = append(allErrors, validateExecAction(handler.Exec, fldPath.Child("exec"))...) + } + } + if handler.HTTPGet != nil { + if numHandlers > 0 { + allErrors = append(allErrors, field.Forbidden(fldPath.Child("httpGet"), "may not specify more than 1 handler type")) + } else { + numHandlers++ + allErrors = append(allErrors, validateHTTPGetAction(handler.HTTPGet, fldPath.Child("httpGet"))...) + } + } + if handler.TCPSocket != nil { + if numHandlers > 0 { + allErrors = append(allErrors, field.Forbidden(fldPath.Child("tcpSocket"), "may not specify more than 1 handler type")) + } else { + numHandlers++ + allErrors = append(allErrors, validateTCPSocketAction(handler.TCPSocket, fldPath.Child("tcpSocket"))...) + } + } + if numHandlers == 0 { + allErrors = append(allErrors, field.Required(fldPath, "must specify a handler type")) + } + return allErrors +} + +func validateLifecycle(lifecycle *api.Lifecycle, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if lifecycle.PostStart != nil { + allErrs = append(allErrs, validateHandler(lifecycle.PostStart, fldPath.Child("postStart"))...) + } + if lifecycle.PreStop != nil { + allErrs = append(allErrs, validateHandler(lifecycle.PreStop, fldPath.Child("preStop"))...) + } + return allErrs +} + +var supportedPullPolicies = sets.NewString(string(api.PullAlways), string(api.PullIfNotPresent), string(api.PullNever)) + +func validatePullPolicy(policy api.PullPolicy, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + + switch policy { + case api.PullAlways, api.PullIfNotPresent, api.PullNever: + break + case "": + allErrors = append(allErrors, field.Required(fldPath, "")) + default: + allErrors = append(allErrors, field.NotSupported(fldPath, policy, supportedPullPolicies.List())) + } + + return allErrors +} + +func validateInitContainers(containers, otherContainers []api.Container, volumes sets.String, fldPath *field.Path) field.ErrorList { + var allErrs field.ErrorList + if len(containers) > 0 { + allErrs = append(allErrs, validateContainers(containers, volumes, fldPath)...) + } + + allNames := sets.String{} + for _, ctr := range otherContainers { + allNames.Insert(ctr.Name) + } + for i, ctr := range containers { + idxPath := fldPath.Index(i) + if allNames.Has(ctr.Name) { + allErrs = append(allErrs, field.Duplicate(idxPath.Child("name"), ctr.Name)) + } + if len(ctr.Name) > 0 { + allNames.Insert(ctr.Name) + } + if ctr.Lifecycle != nil { + allErrs = append(allErrs, field.Invalid(idxPath.Child("lifecycle"), ctr.Lifecycle, "must not be set for init containers")) + } + if ctr.LivenessProbe != nil { + allErrs = append(allErrs, field.Invalid(idxPath.Child("livenessProbe"), ctr.LivenessProbe, "must not be set for init containers")) + } + if ctr.ReadinessProbe != nil { + allErrs = append(allErrs, field.Invalid(idxPath.Child("readinessProbe"), ctr.ReadinessProbe, "must not be set for init containers")) + } + } + return allErrs +} + +func validateContainers(containers []api.Container, volumes sets.String, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if len(containers) == 0 { + return append(allErrs, field.Required(fldPath, "")) + } + + allNames := sets.String{} + for i, ctr := range containers { + idxPath := fldPath.Index(i) + namePath := idxPath.Child("name") + if len(ctr.Name) == 0 { + allErrs = append(allErrs, field.Required(namePath, "")) + } else { + allErrs = append(allErrs, ValidateDNS1123Label(ctr.Name, namePath)...) + } + if allNames.Has(ctr.Name) { + allErrs = append(allErrs, field.Duplicate(namePath, ctr.Name)) + } else { + allNames.Insert(ctr.Name) + } + if len(ctr.Image) == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("image"), "")) + } + if ctr.Lifecycle != nil { + allErrs = append(allErrs, validateLifecycle(ctr.Lifecycle, idxPath.Child("lifecycle"))...) + } + allErrs = append(allErrs, validateProbe(ctr.LivenessProbe, idxPath.Child("livenessProbe"))...) + // Liveness-specific validation + if ctr.LivenessProbe != nil && ctr.LivenessProbe.SuccessThreshold != 1 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("livenessProbe", "successThreshold"), ctr.LivenessProbe.SuccessThreshold, "must be 1")) + } + + allErrs = append(allErrs, validateProbe(ctr.ReadinessProbe, idxPath.Child("readinessProbe"))...) + allErrs = append(allErrs, validateContainerPorts(ctr.Ports, idxPath.Child("ports"))...) + allErrs = append(allErrs, validateEnv(ctr.Env, idxPath.Child("env"))...) + allErrs = append(allErrs, validateVolumeMounts(ctr.VolumeMounts, volumes, idxPath.Child("volumeMounts"))...) + allErrs = append(allErrs, validatePullPolicy(ctr.ImagePullPolicy, idxPath.Child("imagePullPolicy"))...) + allErrs = append(allErrs, ValidateResourceRequirements(&ctr.Resources, idxPath.Child("resources"))...) + allErrs = append(allErrs, ValidateSecurityContext(ctr.SecurityContext, idxPath.Child("securityContext"))...) + } + // Check for colliding ports across all containers. + allErrs = append(allErrs, checkHostPortConflicts(containers, fldPath)...) + + return allErrs +} + +func validateRestartPolicy(restartPolicy *api.RestartPolicy, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + switch *restartPolicy { + case api.RestartPolicyAlways, api.RestartPolicyOnFailure, api.RestartPolicyNever: + break + case "": + allErrors = append(allErrors, field.Required(fldPath, "")) + default: + validValues := []string{string(api.RestartPolicyAlways), string(api.RestartPolicyOnFailure), string(api.RestartPolicyNever)} + allErrors = append(allErrors, field.NotSupported(fldPath, *restartPolicy, validValues)) + } + + return allErrors +} + +func validateDNSPolicy(dnsPolicy *api.DNSPolicy, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + switch *dnsPolicy { + case api.DNSClusterFirst, api.DNSDefault: + break + case "": + allErrors = append(allErrors, field.Required(fldPath, "")) + default: + validValues := []string{string(api.DNSClusterFirst), string(api.DNSDefault)} + allErrors = append(allErrors, field.NotSupported(fldPath, dnsPolicy, validValues)) + } + return allErrors +} + +func validateHostNetwork(hostNetwork bool, containers []api.Container, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + if hostNetwork { + for i, container := range containers { + portsPath := fldPath.Index(i).Child("ports") + for i, port := range container.Ports { + idxPath := portsPath.Index(i) + if port.HostPort != port.ContainerPort { + allErrors = append(allErrors, field.Invalid(idxPath.Child("containerPort"), port.ContainerPort, "must match `hostPort` when `hostNetwork` is true")) + } + } + } + } + return allErrors +} + +// validateImagePullSecrets checks to make sure the pull secrets are well +// formed. Right now, we only expect name to be set (it's the only field). If +// this ever changes and someone decides to set those fields, we'd like to +// know. +func validateImagePullSecrets(imagePullSecrets []api.LocalObjectReference, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + for i, currPullSecret := range imagePullSecrets { + idxPath := fldPath.Index(i) + strippedRef := api.LocalObjectReference{Name: currPullSecret.Name} + if !reflect.DeepEqual(strippedRef, currPullSecret) { + allErrors = append(allErrors, field.Invalid(idxPath, currPullSecret, "only name may be set")) + } + } + return allErrors +} + +func validateTaintEffect(effect *api.TaintEffect, allowEmpty bool, fldPath *field.Path) field.ErrorList { + if !allowEmpty && len(*effect) == 0 { + return field.ErrorList{field.Required(fldPath, "")} + } + + allErrors := field.ErrorList{} + switch *effect { + // TODO: Replace next line with subsequent commented-out line when implement TaintEffectNoScheduleNoAdmit, TaintEffectNoScheduleNoAdmitNoExecute. + case api.TaintEffectNoSchedule, api.TaintEffectPreferNoSchedule: + // case api.TaintEffectNoSchedule, api.TaintEffectPreferNoSchedule, api.TaintEffectNoScheduleNoAdmit, api.TaintEffectNoScheduleNoAdmitNoExecute: + default: + validValues := []string{ + string(api.TaintEffectNoSchedule), + string(api.TaintEffectPreferNoSchedule), + // TODO: Uncomment this block when implement TaintEffectNoScheduleNoAdmit, TaintEffectNoScheduleNoAdmitNoExecute. + // string(api.TaintEffectNoScheduleNoAdmit), + // string(api.TaintEffectNoScheduleNoAdmitNoExecute), + } + allErrors = append(allErrors, field.NotSupported(fldPath, effect, validValues)) + } + return allErrors +} + +// validateTolerations tests if given tolerations have valid data. +func validateTolerations(tolerations []api.Toleration, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + for i, toleration := range tolerations { + idxPath := fldPath.Index(i) + // validate the toleration key + allErrors = append(allErrors, unversionedvalidation.ValidateLabelName(toleration.Key, idxPath.Child("key"))...) + + // validate toleration operator and value + switch toleration.Operator { + case api.TolerationOpEqual, "": + if errs := validation.IsValidLabelValue(toleration.Value); len(errs) != 0 { + allErrors = append(allErrors, field.Invalid(idxPath.Child("operator"), toleration.Value, strings.Join(errs, ";"))) + } + case api.TolerationOpExists: + if len(toleration.Value) > 0 { + allErrors = append(allErrors, field.Invalid(idxPath.Child("operator"), toleration, "value must be empty when `operator` is 'Exists'")) + } + default: + validValues := []string{string(api.TolerationOpEqual), string(api.TolerationOpExists)} + allErrors = append(allErrors, field.NotSupported(idxPath.Child("operator"), toleration.Operator, validValues)) + } + + // validate toleration effect + if len(toleration.Effect) > 0 { + allErrors = append(allErrors, validateTaintEffect(&toleration.Effect, true, idxPath.Child("effect"))...) + } + } + return allErrors +} + +// ValidatePod tests if required fields in the pod are set. +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, ValidatePodSpec(&pod.Spec, field.NewPath("spec"))...) + return allErrs +} + +// ValidatePodSpec tests that the specified PodSpec has valid data. +// This includes checking formatting and uniqueness. It also canonicalizes the +// structure by setting default values and implementing any backwards-compatibility +// tricks. +func ValidatePodSpec(spec *api.PodSpec, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + allVolumes, vErrs := validateVolumes(spec.Volumes, fldPath.Child("volumes")) + allErrs = append(allErrs, vErrs...) + allErrs = append(allErrs, validateContainers(spec.Containers, allVolumes, fldPath.Child("containers"))...) + allErrs = append(allErrs, validateInitContainers(spec.InitContainers, spec.Containers, allVolumes, fldPath.Child("initContainers"))...) + allErrs = append(allErrs, validateRestartPolicy(&spec.RestartPolicy, fldPath.Child("restartPolicy"))...) + allErrs = append(allErrs, validateDNSPolicy(&spec.DNSPolicy, fldPath.Child("dnsPolicy"))...) + allErrs = append(allErrs, unversionedvalidation.ValidateLabels(spec.NodeSelector, fldPath.Child("nodeSelector"))...) + allErrs = append(allErrs, ValidatePodSecurityContext(spec.SecurityContext, spec, fldPath, fldPath.Child("securityContext"))...) + allErrs = append(allErrs, validateImagePullSecrets(spec.ImagePullSecrets, fldPath.Child("imagePullSecrets"))...) + if len(spec.ServiceAccountName) > 0 { + for _, msg := range ValidateServiceAccountName(spec.ServiceAccountName, false) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("serviceAccountName"), spec.ServiceAccountName, msg)) + } + } + + if len(spec.NodeName) > 0 { + for _, msg := range ValidateNodeName(spec.NodeName, false) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("nodeName"), spec.NodeName, msg)) + } + } + + if spec.ActiveDeadlineSeconds != nil { + if *spec.ActiveDeadlineSeconds <= 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("activeDeadlineSeconds"), spec.ActiveDeadlineSeconds, "must be greater than 0")) + } + } + + if len(spec.Hostname) > 0 { + allErrs = append(allErrs, ValidateDNS1123Label(spec.Hostname, fldPath.Child("hostname"))...) + } + + if len(spec.Subdomain) > 0 { + allErrs = append(allErrs, ValidateDNS1123Label(spec.Subdomain, fldPath.Child("subdomain"))...) + } + + return allErrs +} + +// ValidateNodeSelectorRequirement tests that the specified NodeSelectorRequirement fields has valid data +func ValidateNodeSelectorRequirement(rq api.NodeSelectorRequirement, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + switch rq.Operator { + case api.NodeSelectorOpIn, api.NodeSelectorOpNotIn: + if len(rq.Values) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("values"), "must be specified when `operator` is 'In' or 'NotIn'")) + } + case api.NodeSelectorOpExists, api.NodeSelectorOpDoesNotExist: + if len(rq.Values) > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("values"), "may not be specified when `operator` is 'Exists' or 'DoesNotExist'")) + } + + case api.NodeSelectorOpGt, api.NodeSelectorOpLt: + if len(rq.Values) != 1 { + allErrs = append(allErrs, field.Required(fldPath.Child("values"), "must be specified single value when `operator` is 'Lt' or 'Gt'")) + } + default: + allErrs = append(allErrs, field.Invalid(fldPath.Child("operator"), rq.Operator, "not a valid selector operator")) + } + allErrs = append(allErrs, unversionedvalidation.ValidateLabelName(rq.Key, fldPath.Child("key"))...) + return allErrs +} + +// ValidateNodeSelectorTerm tests that the specified node selector term has valid data +func ValidateNodeSelectorTerm(term api.NodeSelectorTerm, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if len(term.MatchExpressions) == 0 { + return append(allErrs, field.Required(fldPath.Child("matchExpressions"), "must have at least one node selector requirement")) + } + for j, req := range term.MatchExpressions { + allErrs = append(allErrs, ValidateNodeSelectorRequirement(req, fldPath.Child("matchExpressions").Index(j))...) + } + return allErrs +} + +// ValidateNodeSelector tests that the specified nodeSelector fields has valid data +func ValidateNodeSelector(nodeSelector *api.NodeSelector, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + termFldPath := fldPath.Child("nodeSelectorTerms") + if len(nodeSelector.NodeSelectorTerms) == 0 { + return append(allErrs, field.Required(termFldPath, "must have at least one node selector term")) + } + + for i, term := range nodeSelector.NodeSelectorTerms { + allErrs = append(allErrs, ValidateNodeSelectorTerm(term, termFldPath.Index(i))...) + } + + return allErrs +} + +// ValidateAvoidPodsInNodeAnnotations tests that the serialized AvoidPods in Node.Annotations has valid data +func ValidateAvoidPodsInNodeAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + avoids, err := api.GetAvoidPodsFromNodeAnnotations(annotations) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Child("AvoidPods"), api.PreferAvoidPodsAnnotationKey, err.Error())) + return allErrs + } + + if len(avoids.PreferAvoidPods) != 0 { + for i, pa := range avoids.PreferAvoidPods { + idxPath := fldPath.Child(api.PreferAvoidPodsAnnotationKey).Index(i) + allErrs = append(allErrs, validatePreferAvoidPodsEntry(pa, idxPath)...) + } + } + + return allErrs +} + +// validatePreferAvoidPodsEntry tests if given PreferAvoidPodsEntry has valid data. +func validatePreferAvoidPodsEntry(avoidPodEntry api.PreferAvoidPodsEntry, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + if avoidPodEntry.PodSignature.PodController == nil { + allErrors = append(allErrors, field.Required(fldPath.Child("PodSignature"), "")) + } else { + if *(avoidPodEntry.PodSignature.PodController.Controller) != true { + allErrors = append(allErrors, + field.Invalid(fldPath.Child("PodSignature").Child("PodController").Child("Controller"), + *(avoidPodEntry.PodSignature.PodController.Controller), "must point to a controller")) + } + } + return allErrors +} + +// ValidatePreferredSchedulingTerms tests that the specified SoftNodeAffinity fields has valid data +func ValidatePreferredSchedulingTerms(terms []api.PreferredSchedulingTerm, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + for i, term := range terms { + if term.Weight <= 0 || term.Weight > 100 { + allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("weight"), term.Weight, "must be in the range 1-100")) + } + + allErrs = append(allErrs, ValidateNodeSelectorTerm(term.Preference, fldPath.Index(i).Child("preference"))...) + } + return allErrs +} + +// validatePodAffinityTerm tests that the specified podAffinityTerm fields have valid data +func validatePodAffinityTerm(podAffinityTerm api.PodAffinityTerm, allowEmptyTopologyKey bool, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = append(allErrs, unversionedvalidation.ValidateLabelSelector(podAffinityTerm.LabelSelector, fldPath.Child("matchExpressions"))...) + for _, name := range podAffinityTerm.Namespaces { + for _, msg := range ValidateNamespaceName(name, false) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("namespace"), name, msg)) + } + } + if !allowEmptyTopologyKey && len(podAffinityTerm.TopologyKey) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("topologyKey"), "can only be empty for PreferredDuringScheduling pod anti affinity")) + } + if len(podAffinityTerm.TopologyKey) != 0 { + allErrs = append(allErrs, unversionedvalidation.ValidateLabelName(podAffinityTerm.TopologyKey, fldPath.Child("topologyKey"))...) + } + return allErrs +} + +// validatePodAffinityTerms tests that the specified podAffinityTerms fields have valid data +func validatePodAffinityTerms(podAffinityTerms []api.PodAffinityTerm, allowEmptyTopologyKey bool, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for i, podAffinityTerm := range podAffinityTerms { + allErrs = append(allErrs, validatePodAffinityTerm(podAffinityTerm, allowEmptyTopologyKey, fldPath.Index(i))...) + } + return allErrs +} + +// validateWeightedPodAffinityTerms tests that the specified weightedPodAffinityTerms fields have valid data +func validateWeightedPodAffinityTerms(weightedPodAffinityTerms []api.WeightedPodAffinityTerm, allowEmptyTopologyKey bool, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for j, weightedTerm := range weightedPodAffinityTerms { + if weightedTerm.Weight <= 0 || weightedTerm.Weight > 100 { + allErrs = append(allErrs, field.Invalid(fldPath.Index(j).Child("weight"), weightedTerm.Weight, "must be in the range 1-100")) + } + allErrs = append(allErrs, validatePodAffinityTerm(weightedTerm.PodAffinityTerm, allowEmptyTopologyKey, fldPath.Index(j).Child("podAffinityTerm"))...) + } + return allErrs +} + +// validatePodAntiAffinity tests that the specified podAntiAffinity fields have valid data +func validatePodAntiAffinity(podAntiAffinity *api.PodAntiAffinity, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + // TODO:Uncomment below code once RequiredDuringSchedulingRequiredDuringExecution is implemented. + // if podAntiAffinity.RequiredDuringSchedulingRequiredDuringExecution != nil { + // allErrs = append(allErrs, validatePodAffinityTerms(podAntiAffinity.RequiredDuringSchedulingRequiredDuringExecution, false, + // fldPath.Child("requiredDuringSchedulingRequiredDuringExecution"))...) + //} + if podAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution != nil { + // empty topologyKey is not allowed for hard pod anti-affinity + allErrs = append(allErrs, validatePodAffinityTerms(podAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution, false, + fldPath.Child("requiredDuringSchedulingIgnoredDuringExecution"))...) + } + if podAntiAffinity.PreferredDuringSchedulingIgnoredDuringExecution != nil { + // empty topologyKey is allowed for soft pod anti-affinity + allErrs = append(allErrs, validateWeightedPodAffinityTerms(podAntiAffinity.PreferredDuringSchedulingIgnoredDuringExecution, true, + fldPath.Child("preferredDuringSchedulingIgnoredDuringExecution"))...) + } + return allErrs +} + +// validatePodAffinity tests that the specified podAffinity fields have valid data +func validatePodAffinity(podAffinity *api.PodAffinity, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + // TODO:Uncomment below code once RequiredDuringSchedulingRequiredDuringExecution is implemented. + // if podAffinity.RequiredDuringSchedulingRequiredDuringExecution != nil { + // allErrs = append(allErrs, validatePodAffinityTerms(podAffinity.RequiredDuringSchedulingRequiredDuringExecution, false, + // fldPath.Child("requiredDuringSchedulingRequiredDuringExecution"))...) + //} + if podAffinity.RequiredDuringSchedulingIgnoredDuringExecution != nil { + // empty topologyKey is not allowed for hard pod affinity + allErrs = append(allErrs, validatePodAffinityTerms(podAffinity.RequiredDuringSchedulingIgnoredDuringExecution, false, + fldPath.Child("requiredDuringSchedulingIgnoredDuringExecution"))...) + } + if podAffinity.PreferredDuringSchedulingIgnoredDuringExecution != nil { + // empty topologyKey is not allowed for soft pod affinity + allErrs = append(allErrs, validateWeightedPodAffinityTerms(podAffinity.PreferredDuringSchedulingIgnoredDuringExecution, false, + fldPath.Child("preferredDuringSchedulingIgnoredDuringExecution"))...) + } + return allErrs +} + +// ValidateAffinityInPodAnnotations tests that the serialized Affinity in Pod.Annotations has valid data +func ValidateAffinityInPodAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + affinity, err := api.GetAffinityFromPodAnnotations(annotations) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath, api.AffinityAnnotationKey, err.Error())) + return allErrs + } + if affinity == nil { + return allErrs + } + + affinityFldPath := fldPath.Child(api.AffinityAnnotationKey) + if affinity.NodeAffinity != nil { + na := affinity.NodeAffinity + naFldPath := affinityFldPath.Child("nodeAffinity") + // TODO: Uncomment the next three lines once RequiredDuringSchedulingRequiredDuringExecution is implemented. + // if na.RequiredDuringSchedulingRequiredDuringExecution != nil { + // allErrs = append(allErrs, ValidateNodeSelector(na.RequiredDuringSchedulingRequiredDuringExecution, naFldPath.Child("requiredDuringSchedulingRequiredDuringExecution"))...) + // } + + if na.RequiredDuringSchedulingIgnoredDuringExecution != nil { + allErrs = append(allErrs, ValidateNodeSelector(na.RequiredDuringSchedulingIgnoredDuringExecution, naFldPath.Child("requiredDuringSchedulingIgnoredDuringExecution"))...) + } + + if len(na.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { + allErrs = append(allErrs, ValidatePreferredSchedulingTerms(na.PreferredDuringSchedulingIgnoredDuringExecution, naFldPath.Child("preferredDuringSchedulingIgnoredDuringExecution"))...) + } + } + if affinity.PodAffinity != nil { + allErrs = append(allErrs, validatePodAffinity(affinity.PodAffinity, affinityFldPath.Child("podAffinity"))...) + } + if affinity.PodAntiAffinity != nil { + allErrs = append(allErrs, validatePodAntiAffinity(affinity.PodAntiAffinity, affinityFldPath.Child("podAntiAffinity"))...) + } + + return allErrs +} + +// ValidateTolerationsInPodAnnotations tests that the serialized tolerations in Pod.Annotations has valid data +func ValidateTolerationsInPodAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + tolerations, err := api.GetTolerationsFromPodAnnotations(annotations) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath, api.TolerationsAnnotationKey, err.Error())) + return allErrs + } + if len(tolerations) > 0 { + allErrs = append(allErrs, validateTolerations(tolerations, fldPath.Child(api.TolerationsAnnotationKey))...) + } + + return allErrs +} + +func validateSeccompProfile(p string, fldPath *field.Path) field.ErrorList { + if p == "docker/default" { + return nil + } + if p == "unconfined" { + return nil + } + if strings.HasPrefix(p, "localhost/") { + return validateLocalDescendingPath(strings.TrimPrefix(p, "localhost/"), fldPath) + } + return field.ErrorList{field.Invalid(fldPath, p, "must be a valid seccomp profile")} +} + +func ValidateSeccompPodAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if p, exists := annotations[api.SeccompPodAnnotationKey]; exists { + allErrs = append(allErrs, validateSeccompProfile(p, fldPath.Child(api.SeccompPodAnnotationKey))...) + } + for k, p := range annotations { + if strings.HasPrefix(k, api.SeccompContainerAnnotationKeyPrefix) { + allErrs = append(allErrs, validateSeccompProfile(p, fldPath.Child(k))...) + } + } + + 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{} + + if securityContext != nil { + allErrs = append(allErrs, validateHostNetwork(securityContext.HostNetwork, spec.Containers, specPath.Child("containers"))...) + if securityContext.FSGroup != nil { + for _, msg := range validation.IsValidGroupId(*securityContext.FSGroup) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("fsGroup"), *(securityContext.FSGroup), msg)) + } + } + if securityContext.RunAsUser != nil { + for _, msg := range validation.IsValidUserId(*securityContext.RunAsUser) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("runAsUser"), *(securityContext.RunAsUser), msg)) + } + } + for g, gid := range securityContext.SupplementalGroups { + for _, msg := range validation.IsValidGroupId(gid) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("supplementalGroups").Index(g), gid, msg)) + } + } + } + + return allErrs +} + +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 + allErrs = append(allErrs, field.Forbidden(fldPath, "pod updates may not add or remove containers")) + return allErrs, true + } + + // validate updated container images + for i, ctr := range newContainers { + if len(ctr.Image) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Index(i).Child("image"), "")) + } + } + return allErrs, false +} + +// ValidatePodUpdate tests to see if the update is legal for an end user to make. newPod is updated with fields +// that cannot be changed. +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"))...) + specPath := field.NewPath("spec") + + // validate updateable fields: + // 1. containers[*].image + // 2. initContainers[*].image + // 3. spec.activeDeadlineSeconds + + 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")) + allErrs = append(allErrs, containerErrs...) + if stop { + return allErrs + } + + // validate updated spec.activeDeadlineSeconds. two types of updates are allowed: + // 1. from nil to a positive value + // 2. from a positive value to a lesser, non-negative value + if newPod.Spec.ActiveDeadlineSeconds != nil { + newActiveDeadlineSeconds := *newPod.Spec.ActiveDeadlineSeconds + if newActiveDeadlineSeconds < 0 { + allErrs = append(allErrs, field.Invalid(specPath.Child("activeDeadlineSeconds"), newActiveDeadlineSeconds, isNegativeErrorMsg)) + return allErrs + } + if oldPod.Spec.ActiveDeadlineSeconds != nil { + oldActiveDeadlineSeconds := *oldPod.Spec.ActiveDeadlineSeconds + if oldActiveDeadlineSeconds < newActiveDeadlineSeconds { + allErrs = append(allErrs, field.Invalid(specPath.Child("activeDeadlineSeconds"), newActiveDeadlineSeconds, "must be less than or equal to previous value")) + return allErrs + } + } + } else if oldPod.Spec.ActiveDeadlineSeconds != nil { + allErrs = append(allErrs, field.Invalid(specPath.Child("activeDeadlineSeconds"), newPod.Spec.ActiveDeadlineSeconds, "must not update from a positive integer to nil value")) + } + + // handle updateable fields by munging those fields prior to deep equal comparison. + mungedPod := *newPod + // munge containers[*].image + var newContainers []api.Container + for ix, container := range mungedPod.Spec.Containers { + container.Image = oldPod.Spec.Containers[ix].Image + newContainers = append(newContainers, container) + } + mungedPod.Spec.Containers = newContainers + // munge initContainers[*].image + var newInitContainers []api.Container + for ix, container := range mungedPod.Spec.InitContainers { + container.Image = oldPod.Spec.InitContainers[ix].Image + newInitContainers = append(newInitContainers, container) + } + mungedPod.Spec.InitContainers = newInitContainers + // munge spec.activeDeadlineSeconds + mungedPod.Spec.ActiveDeadlineSeconds = nil + if oldPod.Spec.ActiveDeadlineSeconds != nil { + activeDeadlineSeconds := *oldPod.Spec.ActiveDeadlineSeconds + mungedPod.Spec.ActiveDeadlineSeconds = &activeDeadlineSeconds + } + if !api.Semantic.DeepEqual(mungedPod.Spec, oldPod.Spec) { + //TODO: Pinpoint the specific field that causes the invalid error after we have strategic merge diff + allErrs = append(allErrs, field.Forbidden(specPath, "pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds`")) + } + + return allErrs +} + +// ValidatePodStatusUpdate tests to see if the update is legal for an end user to make. newPod is updated with fields +// that cannot be changed. +func ValidatePodStatusUpdate(newPod, oldPod *api.Pod) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newPod.ObjectMeta, &oldPod.ObjectMeta, field.NewPath("metadata")) + + // TODO: allow change when bindings are properly decoupled from pods + if newPod.Spec.NodeName != oldPod.Spec.NodeName { + allErrs = append(allErrs, field.Forbidden(field.NewPath("status", "nodeName"), "may not be changed directly")) + } + + // For status update we ignore changes to pod spec. + newPod.Spec = oldPod.Spec + + return allErrs +} + +// ValidatePodBinding tests if required fields in the pod binding are legal. +func ValidatePodBinding(binding *api.Binding) field.ErrorList { + allErrs := field.ErrorList{} + + if len(binding.Target.Kind) != 0 && binding.Target.Kind != "Node" { + // TODO: When validation becomes versioned, this gets more complicated. + allErrs = append(allErrs, field.NotSupported(field.NewPath("target", "kind"), binding.Target.Kind, []string{"Node", ""})) + } + if len(binding.Target.Name) == 0 { + // TODO: When validation becomes versioned, this gets more complicated. + allErrs = append(allErrs, field.Required(field.NewPath("target", "name"), "")) + } + + return allErrs +} + +// ValidatePodTemplate tests if required fields in the pod template are set. +func ValidatePodTemplate(pod *api.PodTemplate) field.ErrorList { + allErrs := ValidateObjectMeta(&pod.ObjectMeta, true, ValidatePodName, field.NewPath("metadata")) + allErrs = append(allErrs, ValidatePodTemplateSpec(&pod.Template, field.NewPath("template"))...) + return allErrs +} + +// ValidatePodTemplateUpdate tests to see if the update is legal for an end user to make. newPod is updated with fields +// that cannot be changed. +func ValidatePodTemplateUpdate(newPod, oldPod *api.PodTemplate) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&oldPod.ObjectMeta, &newPod.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, ValidatePodTemplateSpec(&newPod.Template, field.NewPath("template"))...) + return allErrs +} + +var supportedSessionAffinityType = sets.NewString(string(api.ServiceAffinityClientIP), string(api.ServiceAffinityNone)) +var supportedServiceType = sets.NewString(string(api.ServiceTypeClusterIP), string(api.ServiceTypeNodePort), + string(api.ServiceTypeLoadBalancer)) + +// 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 { + allErrs = append(allErrs, field.Required(specPath.Child("ports"), "")) + } + if service.Spec.Type == api.ServiceTypeLoadBalancer { + for ix := range service.Spec.Ports { + port := &service.Spec.Ports[ix] + // This is a workaround for broken cloud environments that + // over-open firewalls. Hopefully it can go away when more clouds + // understand containers better. + if port.Port == 10250 { + portPath := specPath.Child("ports").Index(ix) + allErrs = append(allErrs, field.Invalid(portPath, port.Port, "may not expose port 10250 externally since it is used by kubelet")) + } + } + } + + isHeadlessService := service.Spec.ClusterIP == api.ClusterIPNone + allPortNames := sets.String{} + portsPath := specPath.Child("ports") + for i := range service.Spec.Ports { + portPath := portsPath.Index(i) + allErrs = append(allErrs, validateServicePort(&service.Spec.Ports[i], len(service.Spec.Ports) > 1, isHeadlessService, &allPortNames, portPath)...) + } + + if service.Spec.Selector != nil { + allErrs = append(allErrs, unversionedvalidation.ValidateLabels(service.Spec.Selector, specPath.Child("selector"))...) + } + + if len(service.Spec.SessionAffinity) == 0 { + allErrs = append(allErrs, field.Required(specPath.Child("sessionAffinity"), "")) + } else if !supportedSessionAffinityType.Has(string(service.Spec.SessionAffinity)) { + allErrs = append(allErrs, field.NotSupported(specPath.Child("sessionAffinity"), service.Spec.SessionAffinity, supportedSessionAffinityType.List())) + } + + if api.IsServiceIPSet(service) { + if ip := net.ParseIP(service.Spec.ClusterIP); ip == nil { + allErrs = append(allErrs, field.Invalid(specPath.Child("clusterIP"), service.Spec.ClusterIP, "must be empty, 'None', or a valid IP address")) + } + } + + ipPath := specPath.Child("externalIPs") + for i, ip := range service.Spec.ExternalIPs { + idxPath := ipPath.Index(i) + if msgs := validation.IsValidIP(ip); len(msgs) != 0 { + for i := range msgs { + allErrs = append(allErrs, field.Invalid(idxPath, ip, msgs[i])) + } + } else { + allErrs = append(allErrs, validateNonSpecialIP(ip, idxPath)...) + } + } + + if len(service.Spec.Type) == 0 { + allErrs = append(allErrs, field.Required(specPath.Child("type"), "")) + } else if !supportedServiceType.Has(string(service.Spec.Type)) { + allErrs = append(allErrs, field.NotSupported(specPath.Child("type"), service.Spec.Type, supportedServiceType.List())) + } + + if service.Spec.Type == api.ServiceTypeLoadBalancer { + portsPath := specPath.Child("ports") + includeProtocols := sets.NewString() + for i := range service.Spec.Ports { + portPath := portsPath.Index(i) + if !supportedPortProtocols.Has(string(service.Spec.Ports[i].Protocol)) { + allErrs = append(allErrs, field.Invalid(portPath.Child("protocol"), service.Spec.Ports[i].Protocol, "cannot create an external load balancer with non-TCP/UDP ports")) + } else { + includeProtocols.Insert(string(service.Spec.Ports[i].Protocol)) + } + } + if includeProtocols.Len() > 1 { + allErrs = append(allErrs, field.Invalid(portsPath, service.Spec.Ports, "cannot create an external load balancer with mix protocols")) + } + } + + if service.Spec.Type == api.ServiceTypeClusterIP { + portsPath := specPath.Child("ports") + for i := range service.Spec.Ports { + portPath := portsPath.Index(i) + if service.Spec.Ports[i].NodePort != 0 { + allErrs = append(allErrs, field.Invalid(portPath.Child("nodePort"), service.Spec.Ports[i].NodePort, "may not be used when `type` is 'ClusterIP'")) + } + } + } + + // Check for duplicate NodePorts, considering (protocol,port) pairs + portsPath = specPath.Child("ports") + nodePorts := make(map[api.ServicePort]bool) + for i := range service.Spec.Ports { + port := &service.Spec.Ports[i] + if port.NodePort == 0 { + continue + } + portPath := portsPath.Index(i) + var key api.ServicePort + key.Protocol = port.Protocol + key.NodePort = port.NodePort + _, found := nodePorts[key] + if found { + allErrs = append(allErrs, field.Duplicate(portPath.Child("nodePort"), port.NodePort)) + } + nodePorts[key] = true + } + + // Validate SourceRange field and annotation + _, ok := service.Annotations[apiservice.AnnotationLoadBalancerSourceRangesKey] + if len(service.Spec.LoadBalancerSourceRanges) > 0 || ok { + var fieldPath *field.Path + var val string + if len(service.Spec.LoadBalancerSourceRanges) > 0 { + fieldPath = specPath.Child("LoadBalancerSourceRanges") + val = fmt.Sprintf("%v", service.Spec.LoadBalancerSourceRanges) + } else { + fieldPath = field.NewPath("metadata", "annotations").Key(apiservice.AnnotationLoadBalancerSourceRangesKey) + val = service.Annotations[apiservice.AnnotationLoadBalancerSourceRangesKey] + } + if service.Spec.Type != api.ServiceTypeLoadBalancer { + allErrs = append(allErrs, field.Invalid(fieldPath, "", "may only be used when `type` is 'LoadBalancer'")) + } + _, err := apiservice.GetLoadBalancerSourceRanges(service) + if err != nil { + allErrs = append(allErrs, field.Invalid(fieldPath, val, "must be a list of IP ranges. For example, 10.240.0.0/24,10.250.0.0/24 ")) + } + } + return allErrs +} + +func validateServicePort(sp *api.ServicePort, requireName, isHeadlessService bool, allNames *sets.String, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + if requireName && len(sp.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) + } else if len(sp.Name) != 0 { + allErrs = append(allErrs, ValidateDNS1123Label(sp.Name, fldPath.Child("name"))...) + if allNames.Has(sp.Name) { + allErrs = append(allErrs, field.Duplicate(fldPath.Child("name"), sp.Name)) + } else { + allNames.Insert(sp.Name) + } + } + + for _, msg := range validation.IsValidPortNum(int(sp.Port)) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("port"), sp.Port, msg)) + } + + if len(sp.Protocol) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("protocol"), "")) + } else if !supportedPortProtocols.Has(string(sp.Protocol)) { + allErrs = append(allErrs, field.NotSupported(fldPath.Child("protocol"), sp.Protocol, supportedPortProtocols.List())) + } + + allErrs = append(allErrs, ValidatePortNumOrName(sp.TargetPort, fldPath.Child("targetPort"))...) + + // in the v1 API, targetPorts on headless services were tolerated. + // once we have version-specific validation, we can reject this on newer API versions, but until then, we have to tolerate it for compatibility. + // + // if isHeadlessService { + // if sp.TargetPort.Type == intstr.String || (sp.TargetPort.Type == intstr.Int && sp.Port != sp.TargetPort.IntValue()) { + // allErrs = append(allErrs, field.Invalid(fldPath.Child("targetPort"), sp.TargetPort, "must be equal to the value of 'port' when clusterIP = None")) + // } + // } + + return allErrs +} + +// ValidateServiceUpdate tests if required fields in the service are set during an update +func ValidateServiceUpdate(service, oldService *api.Service) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&service.ObjectMeta, &oldService.ObjectMeta, field.NewPath("metadata")) + + if api.IsServiceIPSet(oldService) { + allErrs = append(allErrs, ValidateImmutableField(service.Spec.ClusterIP, oldService.Spec.ClusterIP, field.NewPath("spec", "clusterIP"))...) + } + + allErrs = append(allErrs, ValidateService(service)...) + return allErrs +} + +// ValidateServiceStatusUpdate tests if required fields in the Service are set when updating status. +func ValidateServiceStatusUpdate(service, oldService *api.Service) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&service.ObjectMeta, &oldService.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, ValidateLoadBalancerStatus(&service.Status.LoadBalancer, field.NewPath("status", "loadBalancer"))...) + return allErrs +} + +// ValidateReplicationController tests if required fields in the replication controller are set. +func ValidateReplicationController(controller *api.ReplicationController) field.ErrorList { + allErrs := ValidateObjectMeta(&controller.ObjectMeta, true, ValidateReplicationControllerName, field.NewPath("metadata")) + allErrs = append(allErrs, ValidateReplicationControllerSpec(&controller.Spec, field.NewPath("spec"))...) + return allErrs +} + +// ValidateReplicationControllerUpdate tests if required fields in the replication controller are set. +func ValidateReplicationControllerUpdate(controller, oldController *api.ReplicationController) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&controller.ObjectMeta, &oldController.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, ValidateReplicationControllerSpec(&controller.Spec, field.NewPath("spec"))...) + return allErrs +} + +// ValidateReplicationControllerStatusUpdate tests if required fields in the replication controller are set. +func ValidateReplicationControllerStatusUpdate(controller, oldController *api.ReplicationController) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&controller.ObjectMeta, &oldController.ObjectMeta, field.NewPath("metadata")) + statusPath := field.NewPath("status") + allErrs = append(allErrs, ValidateNonnegativeField(int64(controller.Status.Replicas), statusPath.Child("replicas"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(controller.Status.FullyLabeledReplicas), statusPath.Child("fullyLabeledReplicas"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(controller.Status.ObservedGeneration), statusPath.Child("observedGeneration"))...) + return allErrs +} + +// Validates that the given selector is non-empty. +func ValidateNonEmptySelector(selectorMap map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + selector := labels.Set(selectorMap).AsSelector() + if selector.Empty() { + allErrs = append(allErrs, field.Required(fldPath, "")) + } + return allErrs +} + +// Validates the given template and ensures that it is in accordance with the desired selector and replicas. +func ValidatePodTemplateSpecForRC(template *api.PodTemplateSpec, selectorMap map[string]string, replicas int32, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if template == nil { + allErrs = append(allErrs, field.Required(fldPath, "")) + } else { + selector := labels.Set(selectorMap).AsSelector() + if !selector.Empty() { + // Verify that the RC selector matches the labels in template. + labels := labels.Set(template.Labels) + if !selector.Matches(labels) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("metadata", "labels"), template.Labels, "`selector` does not match template `labels`")) + } + } + allErrs = append(allErrs, ValidatePodTemplateSpec(template, fldPath)...) + if replicas > 1 { + allErrs = append(allErrs, ValidateReadOnlyPersistentDisks(template.Spec.Volumes, fldPath.Child("spec", "volumes"))...) + } + // RestartPolicy has already been first-order validated as per ValidatePodTemplateSpec(). + if template.Spec.RestartPolicy != api.RestartPolicyAlways { + allErrs = append(allErrs, field.NotSupported(fldPath.Child("spec", "restartPolicy"), template.Spec.RestartPolicy, []string{string(api.RestartPolicyAlways)})) + } + } + return allErrs +} + +// ValidateReplicationControllerSpec tests if required fields in the replication controller spec are set. +func ValidateReplicationControllerSpec(spec *api.ReplicationControllerSpec, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = append(allErrs, ValidateNonEmptySelector(spec.Selector, fldPath.Child("selector"))...) + allErrs = append(allErrs, ValidateNonnegativeField(int64(spec.Replicas), fldPath.Child("replicas"))...) + allErrs = append(allErrs, ValidatePodTemplateSpecForRC(spec.Template, spec.Selector, spec.Replicas, fldPath.Child("template"))...) + return allErrs +} + +// ValidatePodTemplateSpec validates the spec of a pod template +func ValidatePodTemplateSpec(spec *api.PodTemplateSpec, fldPath *field.Path) field.ErrorList { + 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, ValidatePodSpec(&spec.Spec, fldPath.Child("spec"))...) + return allErrs +} + +func ValidateReadOnlyPersistentDisks(volumes []api.Volume, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for i := range volumes { + vol := &volumes[i] + idxPath := fldPath.Index(i) + if vol.GCEPersistentDisk != nil { + if vol.GCEPersistentDisk.ReadOnly == false { + allErrs = append(allErrs, field.Invalid(idxPath.Child("gcePersistentDisk", "readOnly"), false, "must be true for replicated pods > 1; GCE PD can only be mounted on multiple machines if it is read-only")) + } + } + // TODO: What to do for AWS? It doesn't support replicas + } + return allErrs +} + +// validateTaints tests if given taints have valid data. +func validateTaints(taints []api.Taint, fldPath *field.Path) field.ErrorList { + allErrors := field.ErrorList{} + for i, currTaint := range taints { + idxPath := fldPath.Index(i) + // validate the taint key + allErrors = append(allErrors, unversionedvalidation.ValidateLabelName(currTaint.Key, idxPath.Child("key"))...) + // validate the taint value + if errs := validation.IsValidLabelValue(currTaint.Value); len(errs) != 0 { + allErrors = append(allErrors, field.Invalid(idxPath.Child("value"), currTaint.Value, strings.Join(errs, ";"))) + } + // validate the taint effect + allErrors = append(allErrors, validateTaintEffect(&currTaint.Effect, false, idxPath.Child("effect"))...) + } + return allErrors +} + +// ValidateTaintsInNodeAnnotations tests that the serialized taints in Node.Annotations has valid data +func ValidateTaintsInNodeAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + taints, err := api.GetTaintsFromNodeAnnotations(annotations) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath, api.TaintsAnnotationKey, err.Error())) + return allErrs + } + if len(taints) > 0 { + allErrs = append(allErrs, validateTaints(taints, fldPath.Child(api.TaintsAnnotationKey))...) + } + + return allErrs +} + +func ValidateNodeSpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if annotations[api.PreferAvoidPodsAnnotationKey] != "" { + allErrs = append(allErrs, ValidateAvoidPodsInNodeAnnotations(annotations, fldPath)...) + } + if annotations[api.TaintsAnnotationKey] != "" { + allErrs = append(allErrs, ValidateTaintsInNodeAnnotations(annotations, fldPath)...) + } + return allErrs +} + +// ValidateNode tests if required fields in the node are set. +func ValidateNode(node *api.Node) field.ErrorList { + fldPath := field.NewPath("metadata") + allErrs := ValidateObjectMeta(&node.ObjectMeta, false, ValidateNodeName, fldPath) + allErrs = append(allErrs, ValidateNodeSpecificAnnotations(node.ObjectMeta.Annotations, fldPath.Child("annotations"))...) + + // Only validate spec. All status fields are optional and can be updated later. + + // external ID is required. + if len(node.Spec.ExternalID) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("spec", "externalID"), "")) + } + + // TODO(rjnagal): Ignore PodCIDR till its completely implemented. + return allErrs +} + +// ValidateNodeUpdate tests to make sure a node update can be applied. Modifies oldNode. +func ValidateNodeUpdate(node, oldNode *api.Node) field.ErrorList { + fldPath := field.NewPath("metadata") + allErrs := ValidateObjectMetaUpdate(&node.ObjectMeta, &oldNode.ObjectMeta, fldPath) + allErrs = append(allErrs, ValidateNodeSpecificAnnotations(node.ObjectMeta.Annotations, fldPath.Child("annotations"))...) + + // TODO: Enable the code once we have better api object.status update model. Currently, + // anyone can update node status. + // if !api.Semantic.DeepEqual(node.Status, api.NodeStatus{}) { + // allErrs = append(allErrs, field.Invalid("status", node.Status, "must be empty")) + // } + + // Validte no duplicate addresses in node status. + addresses := make(map[api.NodeAddress]bool) + for i, address := range node.Status.Addresses { + if _, ok := addresses[address]; ok { + allErrs = append(allErrs, field.Duplicate(field.NewPath("status", "addresses").Index(i), address)) + } + addresses[address] = true + } + + if len(oldNode.Spec.PodCIDR) == 0 { + // Allow the controller manager to assign a CIDR to a node if it doesn't have one. + oldNode.Spec.PodCIDR = node.Spec.PodCIDR + } else { + if oldNode.Spec.PodCIDR != node.Spec.PodCIDR { + allErrs = append(allErrs, field.Forbidden(field.NewPath("spec", "podCIDR"), "node updates may not change podCIDR except from \"\" to valid")) + } + } + // TODO: move reset function to its own location + // Ignore metadata changes now that they have been tested + oldNode.ObjectMeta = node.ObjectMeta + // Allow users to update capacity + oldNode.Status.Capacity = node.Status.Capacity + // Allow users to unschedule node + oldNode.Spec.Unschedulable = node.Spec.Unschedulable + // Clear status + oldNode.Status = node.Status + + // TODO: Add a 'real' error type for this error and provide print actual diffs. + if !api.Semantic.DeepEqual(oldNode, node) { + glog.V(4).Infof("Update failed validation %#v vs %#v", oldNode, node) + allErrs = append(allErrs, field.Forbidden(field.NewPath(""), "node updates may only change labels or capacity")) + } + + return allErrs +} + +// Validate compute resource typename. +// Refer to docs/design/resources.md for more details. +func validateResourceName(value string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsQualifiedName(value) { + allErrs = append(allErrs, field.Invalid(fldPath, value, msg)) + } + if len(allErrs) != 0 { + return allErrs + } + + if len(strings.Split(value, "/")) == 1 { + if !api.IsStandardResourceName(value) { + return append(allErrs, field.Invalid(fldPath, value, "must be a standard resource type or fully qualified")) + } + } + + return field.ErrorList{} +} + +// Validate container resource name +// Refer to docs/design/resources.md for more details. +func validateContainerResourceName(value string, fldPath *field.Path) field.ErrorList { + allErrs := validateResourceName(value, fldPath) + if len(strings.Split(value, "/")) == 1 { + if !api.IsStandardContainerResourceName(value) { + return append(allErrs, field.Invalid(fldPath, value, "must be a standard resource for containers")) + } + } + return field.ErrorList{} +} + +// Validate resource names that can go in a resource quota +// Refer to docs/design/resources.md for more details. +func ValidateResourceQuotaResourceName(value string, fldPath *field.Path) field.ErrorList { + allErrs := validateResourceName(value, fldPath) + if len(strings.Split(value, "/")) == 1 { + if !api.IsStandardQuotaResourceName(value) { + return append(allErrs, field.Invalid(fldPath, value, isInvalidQuotaResource)) + } + } + return field.ErrorList{} +} + +// Validate limit range types +func validateLimitRangeTypeName(value string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsQualifiedName(value) { + allErrs = append(allErrs, field.Invalid(fldPath, value, msg)) + } + if len(allErrs) != 0 { + return allErrs + } + + if len(strings.Split(value, "/")) == 1 { + if !api.IsStandardLimitRangeType(value) { + return append(allErrs, field.Invalid(fldPath, value, "must be a standard limit type or fully qualified")) + } + } + + return allErrs +} + +// Validate limit range resource name +// limit types (other than Pod/Container) could contain storage not just cpu or memory +func validateLimitRangeResourceName(limitType api.LimitType, value string, fldPath *field.Path) field.ErrorList { + switch limitType { + case api.LimitTypePod, api.LimitTypeContainer: + return validateContainerResourceName(value, fldPath) + default: + return validateResourceName(value, fldPath) + } +} + +// ValidateLimitRange tests if required fields in the LimitRange are set. +func ValidateLimitRange(limitRange *api.LimitRange) field.ErrorList { + allErrs := ValidateObjectMeta(&limitRange.ObjectMeta, true, ValidateLimitRangeName, field.NewPath("metadata")) + + // ensure resource names are properly qualified per docs/design/resources.md + limitTypeSet := map[api.LimitType]bool{} + fldPath := field.NewPath("spec", "limits") + for i := range limitRange.Spec.Limits { + idxPath := fldPath.Index(i) + limit := &limitRange.Spec.Limits[i] + allErrs = append(allErrs, validateLimitRangeTypeName(string(limit.Type), idxPath.Child("type"))...) + + _, found := limitTypeSet[limit.Type] + if found { + allErrs = append(allErrs, field.Duplicate(idxPath.Child("type"), limit.Type)) + } + limitTypeSet[limit.Type] = true + + keys := sets.String{} + min := map[string]resource.Quantity{} + max := map[string]resource.Quantity{} + defaults := map[string]resource.Quantity{} + defaultRequests := map[string]resource.Quantity{} + maxLimitRequestRatios := map[string]resource.Quantity{} + + for k, q := range limit.Max { + allErrs = append(allErrs, validateLimitRangeResourceName(limit.Type, string(k), idxPath.Child("max").Key(string(k)))...) + keys.Insert(string(k)) + max[string(k)] = q + } + for k, q := range limit.Min { + allErrs = append(allErrs, validateLimitRangeResourceName(limit.Type, string(k), idxPath.Child("min").Key(string(k)))...) + keys.Insert(string(k)) + min[string(k)] = q + } + + if limit.Type == api.LimitTypePod { + if len(limit.Default) > 0 { + allErrs = append(allErrs, field.Forbidden(idxPath.Child("default"), "may not be specified when `type` is 'Pod'")) + } + if len(limit.DefaultRequest) > 0 { + allErrs = append(allErrs, field.Forbidden(idxPath.Child("defaultRequest"), "may not be specified when `type` is 'Pod'")) + } + } else { + for k, q := range limit.Default { + allErrs = append(allErrs, validateLimitRangeResourceName(limit.Type, string(k), idxPath.Child("default").Key(string(k)))...) + keys.Insert(string(k)) + defaults[string(k)] = q + } + for k, q := range limit.DefaultRequest { + allErrs = append(allErrs, validateLimitRangeResourceName(limit.Type, string(k), idxPath.Child("defaultRequest").Key(string(k)))...) + keys.Insert(string(k)) + defaultRequests[string(k)] = q + } + } + + for k, q := range limit.MaxLimitRequestRatio { + allErrs = append(allErrs, validateLimitRangeResourceName(limit.Type, string(k), idxPath.Child("maxLimitRequestRatio").Key(string(k)))...) + keys.Insert(string(k)) + maxLimitRequestRatios[string(k)] = q + } + + for k := range keys { + minQuantity, minQuantityFound := min[k] + maxQuantity, maxQuantityFound := max[k] + defaultQuantity, defaultQuantityFound := defaults[k] + defaultRequestQuantity, defaultRequestQuantityFound := defaultRequests[k] + maxRatio, maxRatioFound := maxLimitRequestRatios[k] + + if minQuantityFound && maxQuantityFound && minQuantity.Cmp(maxQuantity) > 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("min").Key(string(k)), minQuantity, fmt.Sprintf("min value %s is greater than max value %s", minQuantity.String(), maxQuantity.String()))) + } + + if defaultRequestQuantityFound && minQuantityFound && minQuantity.Cmp(defaultRequestQuantity) > 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("defaultRequest").Key(string(k)), defaultRequestQuantity, fmt.Sprintf("min value %s is greater than default request value %s", minQuantity.String(), defaultRequestQuantity.String()))) + } + + if defaultRequestQuantityFound && maxQuantityFound && defaultRequestQuantity.Cmp(maxQuantity) > 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("defaultRequest").Key(string(k)), defaultRequestQuantity, fmt.Sprintf("default request value %s is greater than max value %s", defaultRequestQuantity.String(), maxQuantity.String()))) + } + + if defaultRequestQuantityFound && defaultQuantityFound && defaultRequestQuantity.Cmp(defaultQuantity) > 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("defaultRequest").Key(string(k)), defaultRequestQuantity, fmt.Sprintf("default request value %s is greater than default limit value %s", defaultRequestQuantity.String(), defaultQuantity.String()))) + } + + if defaultQuantityFound && minQuantityFound && minQuantity.Cmp(defaultQuantity) > 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("default").Key(string(k)), minQuantity, fmt.Sprintf("min value %s is greater than default value %s", minQuantity.String(), defaultQuantity.String()))) + } + + if defaultQuantityFound && maxQuantityFound && defaultQuantity.Cmp(maxQuantity) > 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("default").Key(string(k)), maxQuantity, fmt.Sprintf("default value %s is greater than max value %s", defaultQuantity.String(), maxQuantity.String()))) + } + if maxRatioFound && maxRatio.Cmp(*resource.NewQuantity(1, resource.DecimalSI)) < 0 { + allErrs = append(allErrs, field.Invalid(idxPath.Child("maxLimitRequestRatio").Key(string(k)), maxRatio, fmt.Sprintf("ratio %s is less than 1", maxRatio.String()))) + } + if maxRatioFound && minQuantityFound && maxQuantityFound { + maxRatioValue := float64(maxRatio.Value()) + minQuantityValue := minQuantity.Value() + maxQuantityValue := maxQuantity.Value() + if maxRatio.Value() < resource.MaxMilliValue && minQuantityValue < resource.MaxMilliValue && maxQuantityValue < resource.MaxMilliValue { + maxRatioValue = float64(maxRatio.MilliValue()) / 1000 + minQuantityValue = minQuantity.MilliValue() + maxQuantityValue = maxQuantity.MilliValue() + } + maxRatioLimit := float64(maxQuantityValue) / float64(minQuantityValue) + if maxRatioValue > maxRatioLimit { + allErrs = append(allErrs, field.Invalid(idxPath.Child("maxLimitRequestRatio").Key(string(k)), maxRatio, fmt.Sprintf("ratio %s is greater than max/min = %f", maxRatio.String(), maxRatioLimit))) + } + } + } + } + + return allErrs +} + +// ValidateServiceAccount tests if required fields in the ServiceAccount are set. +func ValidateServiceAccount(serviceAccount *api.ServiceAccount) field.ErrorList { + allErrs := ValidateObjectMeta(&serviceAccount.ObjectMeta, true, ValidateServiceAccountName, field.NewPath("metadata")) + return allErrs +} + +// ValidateServiceAccountUpdate tests if required fields in the ServiceAccount are set. +func ValidateServiceAccountUpdate(newServiceAccount, oldServiceAccount *api.ServiceAccount) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newServiceAccount.ObjectMeta, &oldServiceAccount.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, ValidateServiceAccount(newServiceAccount)...) + return allErrs +} + +// ValidateSecret tests if required fields in the Secret are set. +func ValidateSecret(secret *api.Secret) field.ErrorList { + allErrs := ValidateObjectMeta(&secret.ObjectMeta, true, ValidateSecretName, field.NewPath("metadata")) + + dataPath := field.NewPath("data") + totalSize := 0 + for key, value := range secret.Data { + for _, msg := range validation.IsConfigMapKey(key) { + allErrs = append(allErrs, field.Invalid(dataPath.Key(key), key, msg)) + } + totalSize += len(value) + } + if totalSize > api.MaxSecretSize { + allErrs = append(allErrs, field.TooLong(dataPath, "", api.MaxSecretSize)) + } + + switch secret.Type { + case api.SecretTypeServiceAccountToken: + // Only require Annotations[kubernetes.io/service-account.name] + // Additional fields (like Annotations[kubernetes.io/service-account.uid] and Data[token]) might be contributed later by a controller loop + if value := secret.Annotations[api.ServiceAccountNameKey]; len(value) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("metadata", "annotations").Key(api.ServiceAccountNameKey), "")) + } + case api.SecretTypeOpaque, "": + // no-op + case api.SecretTypeDockercfg: + dockercfgBytes, exists := secret.Data[api.DockerConfigKey] + if !exists { + allErrs = append(allErrs, field.Required(dataPath.Key(api.DockerConfigKey), "")) + break + } + + // make sure that the content is well-formed json. + if err := json.Unmarshal(dockercfgBytes, &map[string]interface{}{}); err != nil { + allErrs = append(allErrs, field.Invalid(dataPath.Key(api.DockerConfigKey), "", err.Error())) + } + case api.SecretTypeDockerConfigJson: + dockerConfigJsonBytes, exists := secret.Data[api.DockerConfigJsonKey] + if !exists { + allErrs = append(allErrs, field.Required(dataPath.Key(api.DockerConfigJsonKey), "")) + break + } + + // make sure that the content is well-formed json. + if err := json.Unmarshal(dockerConfigJsonBytes, &map[string]interface{}{}); err != nil { + allErrs = append(allErrs, field.Invalid(dataPath.Key(api.DockerConfigJsonKey), "", err.Error())) + } + case api.SecretTypeBasicAuth: + _, usernameFieldExists := secret.Data[api.BasicAuthUsernameKey] + _, passwordFieldExists := secret.Data[api.BasicAuthPasswordKey] + + // username or password might be empty, but the field must be present + if !usernameFieldExists && !passwordFieldExists { + allErrs = append(allErrs, field.Required(field.NewPath("data[%s]").Key(api.BasicAuthUsernameKey), "")) + allErrs = append(allErrs, field.Required(field.NewPath("data[%s]").Key(api.BasicAuthPasswordKey), "")) + break + } + case api.SecretTypeSSHAuth: + if len(secret.Data[api.SSHAuthPrivateKey]) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("data[%s]").Key(api.SSHAuthPrivateKey), "")) + break + } + + case api.SecretTypeTLS: + if _, exists := secret.Data[api.TLSCertKey]; !exists { + allErrs = append(allErrs, field.Required(dataPath.Key(api.TLSCertKey), "")) + } + if _, exists := secret.Data[api.TLSPrivateKeyKey]; !exists { + allErrs = append(allErrs, field.Required(dataPath.Key(api.TLSPrivateKeyKey), "")) + } + // TODO: Verify that the key matches the cert. + default: + // no-op + } + + return allErrs +} + +// ValidateSecretUpdate tests if required fields in the Secret are set. +func ValidateSecretUpdate(newSecret, oldSecret *api.Secret) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newSecret.ObjectMeta, &oldSecret.ObjectMeta, field.NewPath("metadata")) + + if len(newSecret.Type) == 0 { + newSecret.Type = oldSecret.Type + } + + allErrs = append(allErrs, ValidateImmutableField(newSecret.Type, oldSecret.Type, field.NewPath("type"))...) + + allErrs = append(allErrs, ValidateSecret(newSecret)...) + return allErrs +} + +// ValidateConfigMapName can be used to check whether the given ConfigMap name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateConfigMapName = NameIsDNSSubdomain + +// ValidateConfigMap tests whether required fields in the ConfigMap are set. +func ValidateConfigMap(cfg *api.ConfigMap) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = append(allErrs, ValidateObjectMeta(&cfg.ObjectMeta, true, ValidateConfigMapName, field.NewPath("metadata"))...) + + totalSize := 0 + + for key, value := range cfg.Data { + for _, msg := range validation.IsConfigMapKey(key) { + allErrs = append(allErrs, field.Invalid(field.NewPath("data").Key(key), key, msg)) + } + totalSize += len(value) + } + if totalSize > api.MaxSecretSize { + allErrs = append(allErrs, field.TooLong(field.NewPath("data"), "", api.MaxSecretSize)) + } + + return allErrs +} + +// ValidateConfigMapUpdate tests if required fields in the ConfigMap are set. +func ValidateConfigMapUpdate(newCfg, oldCfg *api.ConfigMap) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = append(allErrs, ValidateObjectMetaUpdate(&newCfg.ObjectMeta, &oldCfg.ObjectMeta, field.NewPath("metadata"))...) + allErrs = append(allErrs, ValidateConfigMap(newCfg)...) + + return allErrs +} + +func validateBasicResource(quantity resource.Quantity, fldPath *field.Path) field.ErrorList { + if quantity.Value() < 0 { + return field.ErrorList{field.Invalid(fldPath, quantity.Value(), "must be a valid resource quantity")} + } + return field.ErrorList{} +} + +// Validates resource requirement spec. +func ValidateResourceRequirements(requirements *api.ResourceRequirements, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + limPath := fldPath.Child("limits") + reqPath := fldPath.Child("requests") + for resourceName, quantity := range requirements.Limits { + fldPath := limPath.Key(string(resourceName)) + // Validate resource name. + allErrs = append(allErrs, validateContainerResourceName(string(resourceName), fldPath)...) + if api.IsStandardResourceName(string(resourceName)) { + allErrs = append(allErrs, validateBasicResource(quantity, fldPath.Key(string(resourceName)))...) + } + // Check that request <= limit. + requestQuantity, exists := requirements.Requests[resourceName] + if exists { + // For GPUs, not only requests can't exceed limits, they also can't be lower, i.e. must be equal. + if resourceName == api.ResourceNvidiaGPU && quantity.Cmp(requestQuantity) != 0 { + allErrs = append(allErrs, field.Invalid(reqPath, requestQuantity.String(), fmt.Sprintf("must be equal to %s limit", api.ResourceNvidiaGPU))) + } else if quantity.Cmp(requestQuantity) < 0 { + allErrs = append(allErrs, field.Invalid(limPath, quantity.String(), fmt.Sprintf("must be greater than or equal to %s request", resourceName))) + } + } + } + for resourceName, quantity := range requirements.Requests { + fldPath := reqPath.Key(string(resourceName)) + // Validate resource name. + allErrs = append(allErrs, validateContainerResourceName(string(resourceName), fldPath)...) + if api.IsStandardResourceName(string(resourceName)) { + allErrs = append(allErrs, validateBasicResource(quantity, fldPath.Key(string(resourceName)))...) + } + } + return allErrs +} + +// validateResourceQuotaScopes ensures that each enumerated hard resource constraint is valid for set of scopes +func validateResourceQuotaScopes(resourceQuotaSpec *api.ResourceQuotaSpec, fld *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(resourceQuotaSpec.Scopes) == 0 { + return allErrs + } + hardLimits := sets.NewString() + for k := range resourceQuotaSpec.Hard { + hardLimits.Insert(string(k)) + } + fldPath := fld.Child("scopes") + scopeSet := sets.NewString() + for _, scope := range resourceQuotaSpec.Scopes { + if !api.IsStandardResourceQuotaScope(string(scope)) { + allErrs = append(allErrs, field.Invalid(fldPath, resourceQuotaSpec.Scopes, "unsupported scope")) + } + for _, k := range hardLimits.List() { + if api.IsStandardQuotaResourceName(k) && !api.IsResourceQuotaScopeValidForResource(scope, k) { + allErrs = append(allErrs, field.Invalid(fldPath, resourceQuotaSpec.Scopes, "unsupported scope applied to resource")) + } + } + scopeSet.Insert(string(scope)) + } + invalidScopePairs := []sets.String{ + sets.NewString(string(api.ResourceQuotaScopeBestEffort), string(api.ResourceQuotaScopeNotBestEffort)), + sets.NewString(string(api.ResourceQuotaScopeTerminating), string(api.ResourceQuotaScopeNotTerminating)), + } + for _, invalidScopePair := range invalidScopePairs { + if scopeSet.HasAll(invalidScopePair.List()...) { + allErrs = append(allErrs, field.Invalid(fldPath, resourceQuotaSpec.Scopes, "conflicting scopes")) + } + } + return allErrs +} + +// ValidateResourceQuota tests if required fields in the ResourceQuota are set. +func ValidateResourceQuota(resourceQuota *api.ResourceQuota) field.ErrorList { + allErrs := ValidateObjectMeta(&resourceQuota.ObjectMeta, true, ValidateResourceQuotaName, field.NewPath("metadata")) + + allErrs = append(allErrs, ValidateResourceQuotaSpec(&resourceQuota.Spec, field.NewPath("spec"))...) + allErrs = append(allErrs, ValidateResourceQuotaStatus(&resourceQuota.Status, field.NewPath("status"))...) + + return allErrs +} + +func ValidateResourceQuotaStatus(status *api.ResourceQuotaStatus, fld *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + fldPath := fld.Child("hard") + for k, v := range status.Hard { + resPath := fldPath.Key(string(k)) + allErrs = append(allErrs, ValidateResourceQuotaResourceName(string(k), resPath)...) + allErrs = append(allErrs, ValidateResourceQuantityValue(string(k), v, resPath)...) + } + fldPath = fld.Child("used") + for k, v := range status.Used { + resPath := fldPath.Key(string(k)) + allErrs = append(allErrs, ValidateResourceQuotaResourceName(string(k), resPath)...) + allErrs = append(allErrs, ValidateResourceQuantityValue(string(k), v, resPath)...) + } + + return allErrs +} + +func ValidateResourceQuotaSpec(resourceQuotaSpec *api.ResourceQuotaSpec, fld *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + fldPath := fld.Child("hard") + for k, v := range resourceQuotaSpec.Hard { + resPath := fldPath.Key(string(k)) + allErrs = append(allErrs, ValidateResourceQuotaResourceName(string(k), resPath)...) + allErrs = append(allErrs, ValidateResourceQuantityValue(string(k), v, resPath)...) + } + allErrs = append(allErrs, validateResourceQuotaScopes(resourceQuotaSpec, fld)...) + + return allErrs +} + +// ValidateResourceQuantityValue enforces that specified quantity is valid for specified resource +func ValidateResourceQuantityValue(resource string, value resource.Quantity, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + allErrs = append(allErrs, ValidateNonnegativeQuantity(value, fldPath)...) + if api.IsIntegerResourceName(resource) { + if value.MilliValue()%int64(1000) != int64(0) { + allErrs = append(allErrs, field.Invalid(fldPath, value, isNotIntegerErrorMsg)) + } + } + return allErrs +} + +// ValidateResourceQuotaUpdate tests to see if the update is legal for an end user to make. +// newResourceQuota is updated with fields that cannot be changed. +func ValidateResourceQuotaUpdate(newResourceQuota, oldResourceQuota *api.ResourceQuota) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newResourceQuota.ObjectMeta, &oldResourceQuota.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, ValidateResourceQuotaSpec(&newResourceQuota.Spec, field.NewPath("spec"))...) + + // ensure scopes cannot change, and that resources are still valid for scope + fldPath := field.NewPath("spec", "scopes") + oldScopes := sets.NewString() + newScopes := sets.NewString() + for _, scope := range newResourceQuota.Spec.Scopes { + newScopes.Insert(string(scope)) + } + for _, scope := range oldResourceQuota.Spec.Scopes { + oldScopes.Insert(string(scope)) + } + if !oldScopes.Equal(newScopes) { + allErrs = append(allErrs, field.Invalid(fldPath, newResourceQuota.Spec.Scopes, "field is immutable")) + } + + newResourceQuota.Status = oldResourceQuota.Status + return allErrs +} + +// ValidateResourceQuotaStatusUpdate tests to see if the status update is legal for an end user to make. +// newResourceQuota is updated with fields that cannot be changed. +func ValidateResourceQuotaStatusUpdate(newResourceQuota, oldResourceQuota *api.ResourceQuota) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newResourceQuota.ObjectMeta, &oldResourceQuota.ObjectMeta, field.NewPath("metadata")) + if len(newResourceQuota.ResourceVersion) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("resourceVersion"), "")) + } + fldPath := field.NewPath("status", "hard") + for k, v := range newResourceQuota.Status.Hard { + resPath := fldPath.Key(string(k)) + allErrs = append(allErrs, ValidateResourceQuotaResourceName(string(k), resPath)...) + allErrs = append(allErrs, ValidateResourceQuantityValue(string(k), v, resPath)...) + } + fldPath = field.NewPath("status", "used") + for k, v := range newResourceQuota.Status.Used { + resPath := fldPath.Key(string(k)) + allErrs = append(allErrs, ValidateResourceQuotaResourceName(string(k), resPath)...) + allErrs = append(allErrs, ValidateResourceQuantityValue(string(k), v, resPath)...) + } + newResourceQuota.Spec = oldResourceQuota.Spec + return allErrs +} + +// ValidateNamespace tests if required fields are set. +func ValidateNamespace(namespace *api.Namespace) field.ErrorList { + allErrs := ValidateObjectMeta(&namespace.ObjectMeta, false, ValidateNamespaceName, field.NewPath("metadata")) + for i := range namespace.Spec.Finalizers { + allErrs = append(allErrs, validateFinalizerName(string(namespace.Spec.Finalizers[i]), field.NewPath("spec", "finalizers"))...) + } + return allErrs +} + +// Validate finalizer names +func validateFinalizerName(stringValue string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsQualifiedName(stringValue) { + allErrs = append(allErrs, field.Invalid(fldPath, stringValue, msg)) + } + if len(allErrs) != 0 { + return allErrs + } + + if len(strings.Split(stringValue, "/")) == 1 { + if !api.IsStandardFinalizerName(stringValue) { + return append(allErrs, field.Invalid(fldPath, stringValue, "name is neither a standard finalizer name nor is it fully qualified")) + } + } + + return field.ErrorList{} +} + +// ValidateNamespaceUpdate tests to make sure a namespace update can be applied. +// newNamespace is updated with fields that cannot be changed +func ValidateNamespaceUpdate(newNamespace *api.Namespace, oldNamespace *api.Namespace) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newNamespace.ObjectMeta, &oldNamespace.ObjectMeta, field.NewPath("metadata")) + newNamespace.Spec.Finalizers = oldNamespace.Spec.Finalizers + newNamespace.Status = oldNamespace.Status + return allErrs +} + +// ValidateNamespaceStatusUpdate tests to see if the update is legal for an end user to make. newNamespace is updated with fields +// that cannot be changed. +func ValidateNamespaceStatusUpdate(newNamespace, oldNamespace *api.Namespace) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newNamespace.ObjectMeta, &oldNamespace.ObjectMeta, field.NewPath("metadata")) + newNamespace.Spec = oldNamespace.Spec + if newNamespace.DeletionTimestamp.IsZero() { + if newNamespace.Status.Phase != api.NamespaceActive { + allErrs = append(allErrs, field.Invalid(field.NewPath("status", "Phase"), newNamespace.Status.Phase, "may only be 'Active' if `deletionTimestamp` is empty")) + } + } else { + if newNamespace.Status.Phase != api.NamespaceTerminating { + allErrs = append(allErrs, field.Invalid(field.NewPath("status", "Phase"), newNamespace.Status.Phase, "may only be 'Terminating' if `deletionTimestamp` is not empty")) + } + } + return allErrs +} + +// ValidateNamespaceFinalizeUpdate tests to see if the update is legal for an end user to make. +// newNamespace is updated with fields that cannot be changed. +func ValidateNamespaceFinalizeUpdate(newNamespace, oldNamespace *api.Namespace) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newNamespace.ObjectMeta, &oldNamespace.ObjectMeta, field.NewPath("metadata")) + + fldPath := field.NewPath("spec", "finalizers") + for i := range newNamespace.Spec.Finalizers { + idxPath := fldPath.Index(i) + allErrs = append(allErrs, validateFinalizerName(string(newNamespace.Spec.Finalizers[i]), idxPath)...) + } + newNamespace.Status = oldNamespace.Status + return allErrs +} + +// ValidateEndpoints tests if required fields are set. +func ValidateEndpoints(endpoints *api.Endpoints) field.ErrorList { + allErrs := ValidateObjectMeta(&endpoints.ObjectMeta, true, ValidateEndpointsName, field.NewPath("metadata")) + allErrs = append(allErrs, ValidateEndpointsSpecificAnnotations(endpoints.Annotations, field.NewPath("annotations"))...) + allErrs = append(allErrs, validateEndpointSubsets(endpoints.Subsets, field.NewPath("subsets"))...) + return allErrs +} + +func validateEndpointSubsets(subsets []api.EndpointSubset, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + + for i := range subsets { + ss := &subsets[i] + idxPath := fldPath.Index(i) + + if len(ss.Addresses) == 0 && len(ss.NotReadyAddresses) == 0 { + //TODO: consider adding a RequiredOneOf() error for this and similar cases + allErrs = append(allErrs, field.Required(idxPath, "must specify `addresses` or `notReadyAddresses`")) + } + if len(ss.Ports) == 0 { + allErrs = append(allErrs, field.Required(idxPath.Child("ports"), "")) + } + for addr := range ss.Addresses { + allErrs = append(allErrs, validateEndpointAddress(&ss.Addresses[addr], idxPath.Child("addresses").Index(addr))...) + } + for addr := range ss.NotReadyAddresses { + allErrs = append(allErrs, validateEndpointAddress(&ss.NotReadyAddresses[addr], idxPath.Child("notReadyAddresses").Index(addr))...) + } + for port := range ss.Ports { + allErrs = append(allErrs, validateEndpointPort(&ss.Ports[port], len(ss.Ports) > 1, idxPath.Child("ports").Index(port))...) + } + } + + return allErrs +} + +func validateEndpointAddress(address *api.EndpointAddress, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsValidIP(address.IP) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("ip"), address.IP, msg)) + } + if len(address.Hostname) > 0 { + allErrs = append(allErrs, ValidateDNS1123Label(address.Hostname, fldPath.Child("hostname"))...) + } + if len(allErrs) > 0 { + return allErrs + } + allErrs = append(allErrs, validateNonSpecialIP(address.IP, fldPath.Child("ip"))...) + return allErrs +} + +func validateNonSpecialIP(ipAddress string, fldPath *field.Path) field.ErrorList { + // We disallow some IPs as endpoints or external-ips. Specifically, + // unspecified and loopback addresses are nonsensical and link-local + // addresses tend to be used for node-centric purposes (e.g. metadata + // service). + allErrs := field.ErrorList{} + ip := net.ParseIP(ipAddress) + if ip == nil { + allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "must be a valid IP address")) + return allErrs + } + if ip.IsUnspecified() { + allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "may not be unspecified (0.0.0.0)")) + } + if ip.IsLoopback() { + allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "may not be in the loopback range (127.0.0.0/8)")) + } + if ip.IsLinkLocalUnicast() { + allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "may not be in the link-local range (169.254.0.0/16)")) + } + if ip.IsLinkLocalMulticast() { + allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "may not be in the link-local multicast range (224.0.0.0/24)")) + } + return allErrs +} + +func validateEndpointPort(port *api.EndpointPort, requireName bool, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if requireName && len(port.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) + } else if len(port.Name) != 0 { + allErrs = append(allErrs, ValidateDNS1123Label(port.Name, fldPath.Child("name"))...) + } + for _, msg := range validation.IsValidPortNum(int(port.Port)) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("port"), port.Port, msg)) + } + if len(port.Protocol) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("protocol"), "")) + } else if !supportedPortProtocols.Has(string(port.Protocol)) { + allErrs = append(allErrs, field.NotSupported(fldPath.Child("protocol"), port.Protocol, supportedPortProtocols.List())) + } + return allErrs +} + +// ValidateEndpointsUpdate tests to make sure an endpoints update can be applied. +func ValidateEndpointsUpdate(newEndpoints, oldEndpoints *api.Endpoints) field.ErrorList { + allErrs := ValidateObjectMetaUpdate(&newEndpoints.ObjectMeta, &oldEndpoints.ObjectMeta, field.NewPath("metadata")) + allErrs = append(allErrs, validateEndpointSubsets(newEndpoints.Subsets, field.NewPath("subsets"))...) + allErrs = append(allErrs, ValidateEndpointsSpecificAnnotations(newEndpoints.Annotations, field.NewPath("annotations"))...) + return allErrs +} + +// ValidateSecurityContext ensure the security context contains valid settings +func ValidateSecurityContext(sc *api.SecurityContext, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + //this should only be true for testing since SecurityContext is defaulted by the api + if sc == nil { + return allErrs + } + + if sc.Privileged != nil { + if *sc.Privileged && !capabilities.Get().AllowPrivileged { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("privileged"), "disallowed by policy")) + } + } + + if sc.RunAsUser != nil { + if *sc.RunAsUser < 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Child("runAsUser"), *sc.RunAsUser, isNegativeErrorMsg)) + } + } + return allErrs +} + +func ValidatePodLogOptions(opts *api.PodLogOptions) field.ErrorList { + allErrs := field.ErrorList{} + if opts.TailLines != nil && *opts.TailLines < 0 { + allErrs = append(allErrs, field.Invalid(field.NewPath("tailLines"), *opts.TailLines, isNegativeErrorMsg)) + } + if opts.LimitBytes != nil && *opts.LimitBytes < 1 { + allErrs = append(allErrs, field.Invalid(field.NewPath("limitBytes"), *opts.LimitBytes, "must be greater than 0")) + } + switch { + case opts.SinceSeconds != nil && opts.SinceTime != nil: + allErrs = append(allErrs, field.Forbidden(field.NewPath(""), "at most one of `sinceTime` or `sinceSeconds` may be specified")) + case opts.SinceSeconds != nil: + if *opts.SinceSeconds < 1 { + allErrs = append(allErrs, field.Invalid(field.NewPath("sinceSeconds"), *opts.SinceSeconds, "must be greater than 0")) + } + } + return allErrs +} + +// ValidateLoadBalancerStatus validates required fields on a LoadBalancerStatus +func ValidateLoadBalancerStatus(status *api.LoadBalancerStatus, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for i, ingress := range status.Ingress { + idxPath := fldPath.Child("ingress").Index(i) + if len(ingress.IP) > 0 { + if isIP := (net.ParseIP(ingress.IP) != nil); !isIP { + allErrs = append(allErrs, field.Invalid(idxPath.Child("ip"), ingress.IP, "must be a valid IP address")) + } + } + if len(ingress.Hostname) > 0 { + for _, msg := range validation.IsDNS1123Subdomain(ingress.Hostname) { + allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, msg)) + } + if isIP := (net.ParseIP(ingress.Hostname) != nil); isIP { + allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, "must be a DNS name, not an IP address")) + } + } + } + return allErrs +} + +// TODO: remove this after we EOL the annotation that carries it. +func isValidHostnamesMap(serializedPodHostNames string) bool { + if len(serializedPodHostNames) == 0 { + return false + } + podHostNames := map[string]endpoints.HostRecord{} + err := json.Unmarshal([]byte(serializedPodHostNames), &podHostNames) + if err != nil { + return false + } + + for ip, hostRecord := range podHostNames { + if len(validation.IsDNS1123Label(hostRecord.HostName)) != 0 { + return false + } + if net.ParseIP(ip) == nil { + return false + } + } + return true +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/zz_generated.deepcopy.go new file mode 100644 index 0000000000..a9c4823bd2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/api/zz_generated.deepcopy.go @@ -0,0 +1,3611 @@ +// +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 api + +import ( + unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + conversion "k8s.io/client-go/1.4/pkg/conversion" + fields "k8s.io/client-go/1.4/pkg/fields" + labels "k8s.io/client-go/1.4/pkg/labels" + runtime "k8s.io/client-go/1.4/pkg/runtime" + types "k8s.io/client-go/1.4/pkg/types" + 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_api_AWSElasticBlockStoreVolumeSource, InType: reflect.TypeOf(&AWSElasticBlockStoreVolumeSource{})}, + 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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_CephFSVolumeSource, InType: reflect.TypeOf(&CephFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_CinderVolumeSource, InType: reflect.TypeOf(&CinderVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ComponentCondition, InType: reflect.TypeOf(&ComponentCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ComponentStatus, InType: reflect.TypeOf(&ComponentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ComponentStatusList, InType: reflect.TypeOf(&ComponentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMap, InType: reflect.TypeOf(&ConfigMap{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMapKeySelector, InType: reflect.TypeOf(&ConfigMapKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMapList, InType: reflect.TypeOf(&ConfigMapList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConfigMapVolumeSource, InType: reflect.TypeOf(&ConfigMapVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Container, InType: reflect.TypeOf(&Container{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerImage, InType: reflect.TypeOf(&ContainerImage{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerPort, InType: reflect.TypeOf(&ContainerPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerState, InType: reflect.TypeOf(&ContainerState{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStateRunning, InType: reflect.TypeOf(&ContainerStateRunning{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStateTerminated, InType: reflect.TypeOf(&ContainerStateTerminated{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStateWaiting, InType: reflect.TypeOf(&ContainerStateWaiting{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ContainerStatus, InType: reflect.TypeOf(&ContainerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ConversionError, InType: reflect.TypeOf(&ConversionError{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DaemonEndpoint, InType: reflect.TypeOf(&DaemonEndpoint{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DeleteOptions, InType: reflect.TypeOf(&DeleteOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DownwardAPIVolumeFile, InType: reflect.TypeOf(&DownwardAPIVolumeFile{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_DownwardAPIVolumeSource, InType: reflect.TypeOf(&DownwardAPIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EmptyDirVolumeSource, InType: reflect.TypeOf(&EmptyDirVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointAddress, InType: reflect.TypeOf(&EndpointAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointPort, InType: reflect.TypeOf(&EndpointPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointSubset, InType: reflect.TypeOf(&EndpointSubset{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Endpoints, InType: reflect.TypeOf(&Endpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EndpointsList, InType: reflect.TypeOf(&EndpointsList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EnvVar, InType: reflect.TypeOf(&EnvVar{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EnvVarSource, InType: reflect.TypeOf(&EnvVarSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Event, InType: reflect.TypeOf(&Event{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EventList, InType: reflect.TypeOf(&EventList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_EventSource, InType: reflect.TypeOf(&EventSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ExecAction, InType: reflect.TypeOf(&ExecAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_FCVolumeSource, InType: reflect.TypeOf(&FCVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_FlexVolumeSource, InType: reflect.TypeOf(&FlexVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_FlockerVolumeSource, InType: reflect.TypeOf(&FlockerVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_GCEPersistentDiskVolumeSource, InType: reflect.TypeOf(&GCEPersistentDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_GitRepoVolumeSource, InType: reflect.TypeOf(&GitRepoVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_GlusterfsVolumeSource, InType: reflect.TypeOf(&GlusterfsVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_HTTPGetAction, InType: reflect.TypeOf(&HTTPGetAction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_HTTPHeader, InType: reflect.TypeOf(&HTTPHeader{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Handler, InType: reflect.TypeOf(&Handler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_HostPathVolumeSource, InType: reflect.TypeOf(&HostPathVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ISCSIVolumeSource, InType: reflect.TypeOf(&ISCSIVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_KeyToPath, InType: reflect.TypeOf(&KeyToPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Lifecycle, InType: reflect.TypeOf(&Lifecycle{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRange, InType: reflect.TypeOf(&LimitRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRangeItem, InType: reflect.TypeOf(&LimitRangeItem{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRangeList, InType: reflect.TypeOf(&LimitRangeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LimitRangeSpec, InType: reflect.TypeOf(&LimitRangeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_List, InType: reflect.TypeOf(&List{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ListOptions, InType: reflect.TypeOf(&ListOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LoadBalancerIngress, InType: reflect.TypeOf(&LoadBalancerIngress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LoadBalancerStatus, InType: reflect.TypeOf(&LoadBalancerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_LocalObjectReference, InType: reflect.TypeOf(&LocalObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NFSVolumeSource, InType: reflect.TypeOf(&NFSVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Namespace, InType: reflect.TypeOf(&Namespace{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NamespaceList, InType: reflect.TypeOf(&NamespaceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NamespaceSpec, InType: reflect.TypeOf(&NamespaceSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NamespaceStatus, InType: reflect.TypeOf(&NamespaceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Node, InType: reflect.TypeOf(&Node{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeAddress, InType: reflect.TypeOf(&NodeAddress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeAffinity, InType: reflect.TypeOf(&NodeAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeCondition, InType: reflect.TypeOf(&NodeCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeDaemonEndpoints, InType: reflect.TypeOf(&NodeDaemonEndpoints{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeList, InType: reflect.TypeOf(&NodeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeProxyOptions, InType: reflect.TypeOf(&NodeProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeResources, InType: reflect.TypeOf(&NodeResources{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSelector, InType: reflect.TypeOf(&NodeSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSelectorRequirement, InType: reflect.TypeOf(&NodeSelectorRequirement{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSelectorTerm, InType: reflect.TypeOf(&NodeSelectorTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSpec, InType: reflect.TypeOf(&NodeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeStatus, InType: reflect.TypeOf(&NodeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_NodeSystemInfo, InType: reflect.TypeOf(&NodeSystemInfo{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ObjectFieldSelector, InType: reflect.TypeOf(&ObjectFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ObjectMeta, InType: reflect.TypeOf(&ObjectMeta{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ObjectReference, InType: reflect.TypeOf(&ObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_OwnerReference, InType: reflect.TypeOf(&OwnerReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolume, InType: reflect.TypeOf(&PersistentVolume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaim, InType: reflect.TypeOf(&PersistentVolumeClaim{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimList, InType: reflect.TypeOf(&PersistentVolumeClaimList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimSpec, InType: reflect.TypeOf(&PersistentVolumeClaimSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimStatus, InType: reflect.TypeOf(&PersistentVolumeClaimStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeClaimVolumeSource, InType: reflect.TypeOf(&PersistentVolumeClaimVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeList, InType: reflect.TypeOf(&PersistentVolumeList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeSource, InType: reflect.TypeOf(&PersistentVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeSpec, InType: reflect.TypeOf(&PersistentVolumeSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PersistentVolumeStatus, InType: reflect.TypeOf(&PersistentVolumeStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Pod, InType: reflect.TypeOf(&Pod{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAffinity, InType: reflect.TypeOf(&PodAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAffinityTerm, InType: reflect.TypeOf(&PodAffinityTerm{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAntiAffinity, InType: reflect.TypeOf(&PodAntiAffinity{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodAttachOptions, InType: reflect.TypeOf(&PodAttachOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodCondition, InType: reflect.TypeOf(&PodCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodExecOptions, InType: reflect.TypeOf(&PodExecOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodList, InType: reflect.TypeOf(&PodList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodLogOptions, InType: reflect.TypeOf(&PodLogOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodProxyOptions, InType: reflect.TypeOf(&PodProxyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityContext, InType: reflect.TypeOf(&PodSecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSignature, InType: reflect.TypeOf(&PodSignature{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSpec, InType: reflect.TypeOf(&PodSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodStatus, InType: reflect.TypeOf(&PodStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodStatusResult, InType: reflect.TypeOf(&PodStatusResult{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodTemplate, InType: reflect.TypeOf(&PodTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodTemplateList, InType: reflect.TypeOf(&PodTemplateList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodTemplateSpec, InType: reflect.TypeOf(&PodTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Preconditions, InType: reflect.TypeOf(&Preconditions{})}, + 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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationControllerList, InType: reflect.TypeOf(&ReplicationControllerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationControllerSpec, InType: reflect.TypeOf(&ReplicationControllerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationControllerStatus, InType: reflect.TypeOf(&ReplicationControllerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceFieldSelector, InType: reflect.TypeOf(&ResourceFieldSelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuota, InType: reflect.TypeOf(&ResourceQuota{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuotaList, InType: reflect.TypeOf(&ResourceQuotaList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuotaSpec, InType: reflect.TypeOf(&ResourceQuotaSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceQuotaStatus, InType: reflect.TypeOf(&ResourceQuotaStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ResourceRequirements, InType: reflect.TypeOf(&ResourceRequirements{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SELinuxOptions, InType: reflect.TypeOf(&SELinuxOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Secret, InType: reflect.TypeOf(&Secret{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecretKeySelector, InType: reflect.TypeOf(&SecretKeySelector{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecretList, InType: reflect.TypeOf(&SecretList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecretVolumeSource, InType: reflect.TypeOf(&SecretVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SecurityContext, InType: reflect.TypeOf(&SecurityContext{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_SerializedReference, InType: reflect.TypeOf(&SerializedReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Service, InType: reflect.TypeOf(&Service{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceAccount, InType: reflect.TypeOf(&ServiceAccount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceAccountList, InType: reflect.TypeOf(&ServiceAccountList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceList, InType: reflect.TypeOf(&ServiceList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServicePort, InType: reflect.TypeOf(&ServicePort{})}, + 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_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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Volume, InType: reflect.TypeOf(&Volume{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_VolumeMount, InType: reflect.TypeOf(&VolumeMount{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_VolumeSource, InType: reflect.TypeOf(&VolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_VsphereVirtualDiskVolumeSource, InType: reflect.TypeOf(&VsphereVirtualDiskVolumeSource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_WeightedPodAffinityTerm, InType: reflect.TypeOf(&WeightedPodAffinityTerm{})}, + ) +} + +func DeepCopy_api_AWSElasticBlockStoreVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AWSElasticBlockStoreVolumeSource) + out := out.(*AWSElasticBlockStoreVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_Affinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Affinity) + out := out.(*Affinity) + if in.NodeAffinity != nil { + in, out := &in.NodeAffinity, &out.NodeAffinity + *out = new(NodeAffinity) + if err := DeepCopy_api_NodeAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.NodeAffinity = nil + } + if in.PodAffinity != nil { + in, out := &in.PodAffinity, &out.PodAffinity + *out = new(PodAffinity) + if err := DeepCopy_api_PodAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAffinity = nil + } + if in.PodAntiAffinity != nil { + in, out := &in.PodAntiAffinity, &out.PodAntiAffinity + *out = new(PodAntiAffinity) + if err := DeepCopy_api_PodAntiAffinity(*in, *out, c); err != nil { + return err + } + } else { + out.PodAntiAffinity = nil + } + return nil + } +} + +func DeepCopy_api_AttachedVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AttachedVolume) + out := out.(*AttachedVolume) + out.Name = in.Name + out.DevicePath = in.DevicePath + return nil + } +} + +func DeepCopy_api_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AvoidPods) + out := out.(*AvoidPods) + if in.PreferAvoidPods != nil { + in, out := &in.PreferAvoidPods, &out.PreferAvoidPods + *out = make([]PreferAvoidPodsEntry, len(*in)) + for i := range *in { + if err := DeepCopy_api_PreferAvoidPodsEntry(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferAvoidPods = nil + } + return nil + } +} + +func DeepCopy_api_AzureFileVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AzureFileVolumeSource) + out := out.(*AzureFileVolumeSource) + out.SecretName = in.SecretName + out.ShareName = in.ShareName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_Binding(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Binding) + out := out.(*Binding) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Target = in.Target + return nil + } +} + +func DeepCopy_api_Capabilities(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Capabilities) + out := out.(*Capabilities) + if in.Add != nil { + in, out := &in.Add, &out.Add + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Add = nil + } + if in.Drop != nil { + in, out := &in.Drop, &out.Drop + *out = make([]Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Drop = nil + } + return nil + } +} + +func DeepCopy_api_CephFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CephFSVolumeSource) + out := out.(*CephFSVolumeSource) + if in.Monitors != nil { + in, out := &in.Monitors, &out.Monitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Monitors = nil + } + out.Path = in.Path + out.User = in.User + out.SecretFile = in.SecretFile + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_CinderVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CinderVolumeSource) + out := out.(*CinderVolumeSource) + out.VolumeID = in.VolumeID + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_ComponentCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentCondition) + out := out.(*ComponentCondition) + out.Type = in.Type + out.Status = in.Status + out.Message = in.Message + out.Error = in.Error + return nil + } +} + +func DeepCopy_api_ComponentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatus) + out := out.(*ComponentStatus) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ComponentCondition, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Conditions = nil + } + return nil + } +} + +func DeepCopy_api_ComponentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ComponentStatusList) + out := out.(*ComponentStatusList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ComponentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_api_ComponentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMap) + out := out.(*ConfigMap) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_api_ConfigMapKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapKeySelector) + out := out.(*ConfigMapKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_api_ConfigMapList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapList) + out := out.(*ConfigMapList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigMap, len(*in)) + for i := range *in { + if err := DeepCopy_api_ConfigMap(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ConfigMapVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConfigMapVolumeSource) + out := out.(*ConfigMapVolumeSource) + out.LocalObjectReference = in.LocalObjectReference + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Container) + out := out.(*Container) + out.Name = in.Name + out.Image = in.Image + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Args = nil + } + out.WorkingDir = in.WorkingDir + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ContainerPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]EnvVar, len(*in)) + for i := range *in { + if err := DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Env = nil + } + if err := DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]VolumeMount, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumeMounts = nil + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + if err := DeepCopy_api_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.LivenessProbe = nil + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + if err := DeepCopy_api_Probe(*in, *out, c); err != nil { + return err + } + } else { + out.ReadinessProbe = nil + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(Lifecycle) + if err := DeepCopy_api_Lifecycle(*in, *out, c); err != nil { + return err + } + } else { + out.Lifecycle = nil + } + out.TerminationMessagePath = in.TerminationMessagePath + out.ImagePullPolicy = in.ImagePullPolicy + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(SecurityContext) + if err := DeepCopy_api_SecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + out.Stdin = in.Stdin + out.StdinOnce = in.StdinOnce + out.TTY = in.TTY + return nil + } +} + +func DeepCopy_api_ContainerImage(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerImage) + out := out.(*ContainerImage) + if in.Names != nil { + in, out := &in.Names, &out.Names + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Names = nil + } + out.SizeBytes = in.SizeBytes + return nil + } +} + +func DeepCopy_api_ContainerPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerPort) + out := out.(*ContainerPort) + out.Name = in.Name + out.HostPort = in.HostPort + out.ContainerPort = in.ContainerPort + out.Protocol = in.Protocol + out.HostIP = in.HostIP + return nil + } +} + +func DeepCopy_api_ContainerState(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerState) + out := out.(*ContainerState) + if in.Waiting != nil { + in, out := &in.Waiting, &out.Waiting + *out = new(ContainerStateWaiting) + **out = **in + } else { + out.Waiting = nil + } + if in.Running != nil { + in, out := &in.Running, &out.Running + *out = new(ContainerStateRunning) + if err := DeepCopy_api_ContainerStateRunning(*in, *out, c); err != nil { + return err + } + } else { + out.Running = nil + } + if in.Terminated != nil { + in, out := &in.Terminated, &out.Terminated + *out = new(ContainerStateTerminated) + if err := DeepCopy_api_ContainerStateTerminated(*in, *out, c); err != nil { + return err + } + } else { + out.Terminated = nil + } + return nil + } +} + +func DeepCopy_api_ContainerStateRunning(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateRunning) + out := out.(*ContainerStateRunning) + out.StartedAt = in.StartedAt.DeepCopy() + return nil + } +} + +func DeepCopy_api_ContainerStateTerminated(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateTerminated) + out := out.(*ContainerStateTerminated) + out.ExitCode = in.ExitCode + out.Signal = in.Signal + out.Reason = in.Reason + out.Message = in.Message + out.StartedAt = in.StartedAt.DeepCopy() + out.FinishedAt = in.FinishedAt.DeepCopy() + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_api_ContainerStateWaiting(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStateWaiting) + out := out.(*ContainerStateWaiting) + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_ContainerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ContainerStatus) + out := out.(*ContainerStatus) + out.Name = in.Name + if err := DeepCopy_api_ContainerState(&in.State, &out.State, c); err != nil { + return err + } + if err := DeepCopy_api_ContainerState(&in.LastTerminationState, &out.LastTerminationState, c); err != nil { + return err + } + out.Ready = in.Ready + out.RestartCount = in.RestartCount + out.Image = in.Image + out.ImageID = in.ImageID + out.ContainerID = in.ContainerID + return nil + } +} + +func DeepCopy_api_ConversionError(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ConversionError) + out := out.(*ConversionError) + if in.In == nil { + out.In = nil + } else if newVal, err := c.DeepCopy(&in.In); err != nil { + return err + } else { + out.In = *newVal.(*interface{}) + } + if in.Out == nil { + out.Out = nil + } else if newVal, err := c.DeepCopy(&in.Out); err != nil { + return err + } else { + out.Out = *newVal.(*interface{}) + } + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_DaemonEndpoint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonEndpoint) + out := out.(*DaemonEndpoint) + out.Port = in.Port + return nil + } +} + +func DeepCopy_api_DeleteOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeleteOptions) + out := out.(*DeleteOptions) + out.TypeMeta = in.TypeMeta + if in.GracePeriodSeconds != nil { + in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.GracePeriodSeconds = nil + } + if in.Preconditions != nil { + in, out := &in.Preconditions, &out.Preconditions + *out = new(Preconditions) + if err := DeepCopy_api_Preconditions(*in, *out, c); err != nil { + return err + } + } else { + out.Preconditions = nil + } + if in.OrphanDependents != nil { + in, out := &in.OrphanDependents, &out.OrphanDependents + *out = new(bool) + **out = **in + } else { + out.OrphanDependents = nil + } + return nil + } +} + +func DeepCopy_api_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeFile) + out := out.(*DownwardAPIVolumeFile) + out.Path = in.Path + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + return nil + } +} + +func DeepCopy_api_DownwardAPIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DownwardAPIVolumeSource) + out := out.(*DownwardAPIVolumeSource) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DownwardAPIVolumeFile, len(*in)) + for i := range *in { + if err := DeepCopy_api_DownwardAPIVolumeFile(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_EmptyDirVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EmptyDirVolumeSource) + out := out.(*EmptyDirVolumeSource) + out.Medium = in.Medium + return nil + } +} + +func DeepCopy_api_EndpointAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointAddress) + out := out.(*EndpointAddress) + out.IP = in.IP + out.Hostname = in.Hostname + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(ObjectReference) + **out = **in + } else { + out.TargetRef = nil + } + return nil + } +} + +func DeepCopy_api_EndpointPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointPort) + out := out.(*EndpointPort) + out.Name = in.Name + out.Port = in.Port + out.Protocol = in.Protocol + return nil + } +} + +func DeepCopy_api_EndpointSubset(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointSubset) + out := out.(*EndpointSubset) + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_api_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Addresses = nil + } + if in.NotReadyAddresses != nil { + in, out := &in.NotReadyAddresses, &out.NotReadyAddresses + *out = make([]EndpointAddress, len(*in)) + for i := range *in { + if err := DeepCopy_api_EndpointAddress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NotReadyAddresses = nil + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]EndpointPort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + return nil + } +} + +func DeepCopy_api_Endpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Endpoints) + out := out.(*Endpoints) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Subsets != nil { + in, out := &in.Subsets, &out.Subsets + *out = make([]EndpointSubset, len(*in)) + for i := range *in { + if err := DeepCopy_api_EndpointSubset(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Subsets = nil + } + return nil + } +} + +func DeepCopy_api_EndpointsList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EndpointsList) + out := out.(*EndpointsList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Endpoints, len(*in)) + for i := range *in { + if err := DeepCopy_api_Endpoints(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_EnvVar(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVar) + out := out.(*EnvVar) + out.Name = in.Name + out.Value = in.Value + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(EnvVarSource) + if err := DeepCopy_api_EnvVarSource(*in, *out, c); err != nil { + return err + } + } else { + out.ValueFrom = nil + } + return nil + } +} + +func DeepCopy_api_EnvVarSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EnvVarSource) + out := out.(*EnvVarSource) + if in.FieldRef != nil { + in, out := &in.FieldRef, &out.FieldRef + *out = new(ObjectFieldSelector) + **out = **in + } else { + out.FieldRef = nil + } + if in.ResourceFieldRef != nil { + in, out := &in.ResourceFieldRef, &out.ResourceFieldRef + *out = new(ResourceFieldSelector) + if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { + return err + } + } else { + out.ResourceFieldRef = nil + } + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(ConfigMapKeySelector) + **out = **in + } else { + out.ConfigMapKeyRef = nil + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(SecretKeySelector) + **out = **in + } else { + out.SecretKeyRef = nil + } + return nil + } +} + +func DeepCopy_api_Event(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Event) + out := out.(*Event) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.InvolvedObject = in.InvolvedObject + out.Reason = in.Reason + out.Message = in.Message + out.Source = in.Source + out.FirstTimestamp = in.FirstTimestamp.DeepCopy() + out.LastTimestamp = in.LastTimestamp.DeepCopy() + out.Count = in.Count + out.Type = in.Type + return nil + } +} + +func DeepCopy_api_EventList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventList) + out := out.(*EventList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + if err := DeepCopy_api_Event(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_EventSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*EventSource) + out := out.(*EventSource) + out.Component = in.Component + out.Host = in.Host + return nil + } +} + +func DeepCopy_api_ExecAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExecAction) + out := out.(*ExecAction) + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_api_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ExportOptions) + out := out.(*ExportOptions) + out.TypeMeta = in.TypeMeta + out.Export = in.Export + out.Exact = in.Exact + return nil + } +} + +func DeepCopy_api_FCVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FCVolumeSource) + out := out.(*FCVolumeSource) + if in.TargetWWNs != nil { + in, out := &in.TargetWWNs, &out.TargetWWNs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.TargetWWNs = nil + } + if in.Lun != nil { + in, out := &in.Lun, &out.Lun + *out = new(int32) + **out = **in + } else { + out.Lun = nil + } + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_FlexVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlexVolumeSource) + out := out.(*FlexVolumeSource) + out.Driver = in.Driver + out.FSType = in.FSType + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + if in.Options != nil { + in, out := &in.Options, &out.Options + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Options = nil + } + return nil + } +} + +func DeepCopy_api_FlockerVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FlockerVolumeSource) + out := out.(*FlockerVolumeSource) + out.DatasetName = in.DatasetName + return nil + } +} + +func DeepCopy_api_GCEPersistentDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GCEPersistentDiskVolumeSource) + out := out.(*GCEPersistentDiskVolumeSource) + out.PDName = in.PDName + out.FSType = in.FSType + out.Partition = in.Partition + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_GitRepoVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GitRepoVolumeSource) + out := out.(*GitRepoVolumeSource) + out.Repository = in.Repository + out.Revision = in.Revision + out.Directory = in.Directory + return nil + } +} + +func DeepCopy_api_GlusterfsVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*GlusterfsVolumeSource) + out := out.(*GlusterfsVolumeSource) + out.EndpointsName = in.EndpointsName + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_HTTPGetAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPGetAction) + out := out.(*HTTPGetAction) + out.Path = in.Path + out.Port = in.Port + out.Host = in.Host + out.Scheme = in.Scheme + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]HTTPHeader, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HTTPHeaders = nil + } + return nil + } +} + +func DeepCopy_api_HTTPHeader(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPHeader) + out := out.(*HTTPHeader) + out.Name = in.Name + out.Value = in.Value + return nil + } +} + +func DeepCopy_api_Handler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Handler) + out := out.(*Handler) + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(ExecAction) + if err := DeepCopy_api_ExecAction(*in, *out, c); err != nil { + return err + } + } else { + out.Exec = nil + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(HTTPGetAction) + if err := DeepCopy_api_HTTPGetAction(*in, *out, c); err != nil { + return err + } + } else { + out.HTTPGet = nil + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(TCPSocketAction) + **out = **in + } else { + out.TCPSocket = nil + } + return nil + } +} + +func DeepCopy_api_HostPathVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPathVolumeSource) + out := out.(*HostPathVolumeSource) + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_ISCSIVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ISCSIVolumeSource) + out := out.(*ISCSIVolumeSource) + out.TargetPortal = in.TargetPortal + out.IQN = in.IQN + out.Lun = in.Lun + out.ISCSIInterface = in.ISCSIInterface + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_KeyToPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*KeyToPath) + out := out.(*KeyToPath) + out.Key = in.Key + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_Lifecycle(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Lifecycle) + out := out.(*Lifecycle) + if in.PostStart != nil { + in, out := &in.PostStart, &out.PostStart + *out = new(Handler) + if err := DeepCopy_api_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PostStart = nil + } + if in.PreStop != nil { + in, out := &in.PreStop, &out.PreStop + *out = new(Handler) + if err := DeepCopy_api_Handler(*in, *out, c); err != nil { + return err + } + } else { + out.PreStop = nil + } + return nil + } +} + +func DeepCopy_api_LimitRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRange) + out := out.(*LimitRange) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_LimitRangeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeItem) + out := out.(*LimitRangeItem) + out.Type = in.Type + if in.Max != nil { + in, out := &in.Max, &out.Max + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Max = nil + } + if in.Min != nil { + in, out := &in.Min, &out.Min + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Min = nil + } + if in.Default != nil { + in, out := &in.Default, &out.Default + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Default = nil + } + if in.DefaultRequest != nil { + in, out := &in.DefaultRequest, &out.DefaultRequest + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.DefaultRequest = nil + } + if in.MaxLimitRequestRatio != nil { + in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.MaxLimitRequestRatio = nil + } + return nil + } +} + +func DeepCopy_api_LimitRangeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeList) + out := out.(*LimitRangeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LimitRange, len(*in)) + for i := range *in { + if err := DeepCopy_api_LimitRange(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_LimitRangeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LimitRangeSpec) + out := out.(*LimitRangeSpec) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make([]LimitRangeItem, len(*in)) + for i := range *in { + if err := DeepCopy_api_LimitRangeItem(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Limits = nil + } + return nil + } +} + +func DeepCopy_api_List(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*List) + out := out.(*List) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]runtime.Object, len(*in)) + for i := range *in { + if newVal, err := c.DeepCopy(&(*in)[i]); err != nil { + return err + } else { + (*out)[i] = *newVal.(*runtime.Object) + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ListOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ListOptions) + out := out.(*ListOptions) + out.TypeMeta = in.TypeMeta + if in.LabelSelector == nil { + out.LabelSelector = nil + } else if newVal, err := c.DeepCopy(&in.LabelSelector); err != nil { + return err + } else { + out.LabelSelector = *newVal.(*labels.Selector) + } + if in.FieldSelector == nil { + out.FieldSelector = nil + } else if newVal, err := c.DeepCopy(&in.FieldSelector); err != nil { + return err + } else { + out.FieldSelector = *newVal.(*fields.Selector) + } + out.Watch = in.Watch + out.ResourceVersion = in.ResourceVersion + if in.TimeoutSeconds != nil { + in, out := &in.TimeoutSeconds, &out.TimeoutSeconds + *out = new(int64) + **out = **in + } else { + out.TimeoutSeconds = nil + } + return nil + } +} + +func DeepCopy_api_LoadBalancerIngress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerIngress) + out := out.(*LoadBalancerIngress) + out.IP = in.IP + out.Hostname = in.Hostname + return nil + } +} + +func DeepCopy_api_LoadBalancerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LoadBalancerStatus) + out := out.(*LoadBalancerStatus) + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]LoadBalancerIngress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_api_LocalObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*LocalObjectReference) + out := out.(*LocalObjectReference) + out.Name = in.Name + return nil + } +} + +func DeepCopy_api_NFSVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NFSVolumeSource) + out := out.(*NFSVolumeSource) + out.Server = in.Server + out.Path = in.Path + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_Namespace(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Namespace) + out := out.(*Namespace) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_api_NamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceList) + out := out.(*NamespaceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Namespace, len(*in)) + for i := range *in { + if err := DeepCopy_api_Namespace(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_NamespaceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceSpec) + out := out.(*NamespaceSpec) + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]FinalizerName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Finalizers = nil + } + return nil + } +} + +func DeepCopy_api_NamespaceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NamespaceStatus) + out := out.(*NamespaceStatus) + out.Phase = in.Phase + return nil + } +} + +func DeepCopy_api_Node(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Node) + out := out.(*Node) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_NodeAddress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAddress) + out := out.(*NodeAddress) + out.Type = in.Type + out.Address = in.Address + return nil + } +} + +func DeepCopy_api_NodeAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeAffinity) + out := out.(*NodeAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = new(NodeSelector) + if err := DeepCopy_api_NodeSelector(*in, *out, c); err != nil { + return err + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]PreferredSchedulingTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_PreferredSchedulingTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_api_NodeCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeCondition) + out := out.(*NodeCondition) + out.Type = in.Type + out.Status = in.Status + out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_NodeDaemonEndpoints(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeDaemonEndpoints) + out := out.(*NodeDaemonEndpoints) + out.KubeletEndpoint = in.KubeletEndpoint + return nil + } +} + +func DeepCopy_api_NodeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeList) + out := out.(*NodeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Node, len(*in)) + for i := range *in { + if err := DeepCopy_api_Node(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_NodeProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeProxyOptions) + out := out.(*NodeProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_NodeResources(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeResources) + out := out.(*NodeResources) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + return nil + } +} + +func DeepCopy_api_NodeSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelector) + out := out.(*NodeSelector) + if in.NodeSelectorTerms != nil { + in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms + *out = make([]NodeSelectorTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_NodeSelectorTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.NodeSelectorTerms = nil + } + return nil + } +} + +func DeepCopy_api_NodeSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorRequirement) + out := out.(*NodeSelectorRequirement) + out.Key = in.Key + out.Operator = in.Operator + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Values = nil + } + return nil + } +} + +func DeepCopy_api_NodeSelectorTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSelectorTerm) + out := out.(*NodeSelectorTerm) + if in.MatchExpressions != nil { + in, out := &in.MatchExpressions, &out.MatchExpressions + *out = make([]NodeSelectorRequirement, len(*in)) + for i := range *in { + if err := DeepCopy_api_NodeSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.MatchExpressions = nil + } + return nil + } +} + +func DeepCopy_api_NodeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSpec) + out := out.(*NodeSpec) + out.PodCIDR = in.PodCIDR + out.ExternalID = in.ExternalID + out.ProviderID = in.ProviderID + out.Unschedulable = in.Unschedulable + return nil + } +} + +func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeStatus) + out := out.(*NodeStatus) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if in.Allocatable != nil { + in, out := &in.Allocatable, &out.Allocatable + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Allocatable = nil + } + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]NodeCondition, len(*in)) + for i := range *in { + if err := DeepCopy_api_NodeCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]NodeAddress, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Addresses = nil + } + out.DaemonEndpoints = in.DaemonEndpoints + out.NodeInfo = in.NodeInfo + if in.Images != nil { + in, out := &in.Images, &out.Images + *out = make([]ContainerImage, len(*in)) + for i := range *in { + if err := DeepCopy_api_ContainerImage(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Images = nil + } + if in.VolumesInUse != nil { + in, out := &in.VolumesInUse, &out.VolumesInUse + *out = make([]UniqueVolumeName, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesInUse = nil + } + if in.VolumesAttached != nil { + in, out := &in.VolumesAttached, &out.VolumesAttached + *out = make([]AttachedVolume, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.VolumesAttached = nil + } + return nil + } +} + +func DeepCopy_api_NodeSystemInfo(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NodeSystemInfo) + out := out.(*NodeSystemInfo) + out.MachineID = in.MachineID + out.SystemUUID = in.SystemUUID + out.BootID = in.BootID + out.KernelVersion = in.KernelVersion + out.OSImage = in.OSImage + out.ContainerRuntimeVersion = in.ContainerRuntimeVersion + out.KubeletVersion = in.KubeletVersion + out.KubeProxyVersion = in.KubeProxyVersion + out.OperatingSystem = in.OperatingSystem + out.Architecture = in.Architecture + return nil + } +} + +func DeepCopy_api_ObjectFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectFieldSelector) + out := out.(*ObjectFieldSelector) + out.APIVersion = in.APIVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectMeta) + out := out.(*ObjectMeta) + out.Name = in.Name + out.GenerateName = in.GenerateName + out.Namespace = in.Namespace + out.SelfLink = in.SelfLink + out.UID = in.UID + out.ResourceVersion = in.ResourceVersion + out.Generation = in.Generation + out.CreationTimestamp = in.CreationTimestamp.DeepCopy() + if in.DeletionTimestamp != nil { + in, out := &in.DeletionTimestamp, &out.DeletionTimestamp + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.DeletionTimestamp = nil + } + if in.DeletionGracePeriodSeconds != nil { + in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.DeletionGracePeriodSeconds = nil + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Labels = 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 + } + if in.OwnerReferences != nil { + in, out := &in.OwnerReferences, &out.OwnerReferences + *out = make([]OwnerReference, len(*in)) + for i := range *in { + if err := DeepCopy_api_OwnerReference(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.OwnerReferences = nil + } + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Finalizers = nil + } + return nil + } +} + +func DeepCopy_api_ObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ObjectReference) + out := out.(*ObjectReference) + out.Kind = in.Kind + out.Namespace = in.Namespace + out.Name = in.Name + out.UID = in.UID + out.APIVersion = in.APIVersion + out.ResourceVersion = in.ResourceVersion + out.FieldPath = in.FieldPath + return nil + } +} + +func DeepCopy_api_OwnerReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*OwnerReference) + out := out.(*OwnerReference) + out.APIVersion = in.APIVersion + out.Kind = in.Kind + out.Name = in.Name + out.UID = in.UID + if in.Controller != nil { + in, out := &in.Controller, &out.Controller + *out = new(bool) + **out = **in + } else { + out.Controller = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolume) + out := out.(*PersistentVolume) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaim(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaim) + out := out.(*PersistentVolumeClaim) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PersistentVolumeClaimSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_PersistentVolumeClaimStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimList) + out := out.(*PersistentVolumeClaimList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolumeClaim, len(*in)) + for i := range *in { + if err := DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimSpec) + out := out.(*PersistentVolumeClaimSpec) + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { + return err + } + out.VolumeName = in.VolumeName + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimStatus) + out := out.(*PersistentVolumeClaimStatus) + out.Phase = in.Phase + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeClaimVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeClaimVolumeSource) + out := out.(*PersistentVolumeClaimVolumeSource) + out.ClaimName = in.ClaimName + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_PersistentVolumeList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeList) + out := out.(*PersistentVolumeList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PersistentVolume, len(*in)) + for i := range *in { + if err := DeepCopy_api_PersistentVolume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSource) + out := out.(*PersistentVolumeSource) + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } else { + out.VsphereVolume = nil + } + return nil + } +} + +func DeepCopy_api_PersistentVolumeSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeSpec) + out := out.(*PersistentVolumeSpec) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Capacity = nil + } + if err := DeepCopy_api_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { + return err + } + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]PersistentVolumeAccessMode, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AccessModes = nil + } + if in.ClaimRef != nil { + in, out := &in.ClaimRef, &out.ClaimRef + *out = new(ObjectReference) + **out = **in + } else { + out.ClaimRef = nil + } + out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy + return nil + } +} + +func DeepCopy_api_PersistentVolumeStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PersistentVolumeStatus) + out := out.(*PersistentVolumeStatus) + out.Phase = in.Phase + out.Message = in.Message + out.Reason = in.Reason + return nil + } +} + +func DeepCopy_api_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Pod) + out := out.(*Pod) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PodAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinity) + out := out.(*PodAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_api_PodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAffinityTerm) + out := out.(*PodAffinityTerm) + if in.LabelSelector != nil { + in, out := &in.LabelSelector, &out.LabelSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.LabelSelector = nil + } + if in.Namespaces != nil { + in, out := &in.Namespaces, &out.Namespaces + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Namespaces = nil + } + out.TopologyKey = in.TopologyKey + return nil + } +} + +func DeepCopy_api_PodAntiAffinity(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAntiAffinity) + out := out.(*PodAntiAffinity) + if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution + *out = make([]PodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.RequiredDuringSchedulingIgnoredDuringExecution = nil + } + if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { + in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution + *out = make([]WeightedPodAffinityTerm, len(*in)) + for i := range *in { + if err := DeepCopy_api_WeightedPodAffinityTerm(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.PreferredDuringSchedulingIgnoredDuringExecution = nil + } + return nil + } +} + +func DeepCopy_api_PodAttachOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodAttachOptions) + out := out.(*PodAttachOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + return nil + } +} + +func DeepCopy_api_PodCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodCondition) + out := out.(*PodCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_PodExecOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodExecOptions) + out := out.(*PodExecOptions) + out.TypeMeta = in.TypeMeta + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Command = nil + } + return nil + } +} + +func DeepCopy_api_PodList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodList) + out := out.(*PodList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Pod, len(*in)) + for i := range *in { + if err := DeepCopy_api_Pod(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PodLogOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodLogOptions) + out := out.(*PodLogOptions) + out.TypeMeta = in.TypeMeta + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } else { + out.SinceSeconds = nil + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.SinceTime = nil + } + out.Timestamps = in.Timestamps + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } else { + out.TailLines = nil + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in + } else { + out.LimitBytes = nil + } + return nil + } +} + +func DeepCopy_api_PodProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodProxyOptions) + out := out.(*PodProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_PodSecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityContext) + out := out.(*PodSecurityContext) + out.HostNetwork = in.HostNetwork + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.SupplementalGroups != nil { + in, out := &in.SupplementalGroups, &out.SupplementalGroups + *out = make([]int64, len(*in)) + copy(*out, *in) + } else { + out.SupplementalGroups = nil + } + if in.FSGroup != nil { + in, out := &in.FSGroup, &out.FSGroup + *out = new(int64) + **out = **in + } else { + out.FSGroup = nil + } + return nil + } +} + +func DeepCopy_api_PodSignature(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSignature) + out := out.(*PodSignature) + if in.PodController != nil { + in, out := &in.PodController, &out.PodController + *out = new(OwnerReference) + if err := DeepCopy_api_OwnerReference(*in, *out, c); err != nil { + return err + } + } else { + out.PodController = nil + } + return nil + } +} + +func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSpec) + out := out.(*PodSpec) + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]Volume, len(*in)) + for i := range *in { + if err := DeepCopy_api_Volume(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Volumes = nil + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_api_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainers = nil + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]Container, len(*in)) + for i := range *in { + if err := DeepCopy_api_Container(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.RestartPolicy = in.RestartPolicy + if in.TerminationGracePeriodSeconds != nil { + in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds + *out = new(int64) + **out = **in + } else { + out.TerminationGracePeriodSeconds = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + out.DNSPolicy = in.DNSPolicy + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.NodeSelector = nil + } + out.ServiceAccountName = in.ServiceAccountName + out.NodeName = in.NodeName + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(PodSecurityContext) + if err := DeepCopy_api_PodSecurityContext(*in, *out, c); err != nil { + return err + } + } else { + out.SecurityContext = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + out.Hostname = in.Hostname + out.Subdomain = in.Subdomain + return nil + } +} + +func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatus) + out := out.(*PodStatus) + out.Phase = in.Phase + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]PodCondition, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + out.Message = in.Message + out.Reason = in.Reason + out.HostIP = in.HostIP + out.PodIP = in.PodIP + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_api_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.InitContainerStatuses = nil + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]ContainerStatus, len(*in)) + for i := range *in { + if err := DeepCopy_api_ContainerStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.ContainerStatuses = nil + } + return nil + } +} + +func DeepCopy_api_PodStatusResult(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodStatusResult) + out := out.(*PodStatusResult) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PodTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplate) + out := out.(*PodTemplate) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_PodTemplateList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateList) + out := out.(*PodTemplateList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodTemplate, len(*in)) + for i := range *in { + if err := DeepCopy_api_PodTemplate(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_PodTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodTemplateSpec) + out := out.(*PodTemplateSpec) + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_PodSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_Preconditions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Preconditions) + out := out.(*Preconditions) + if in.UID != nil { + in, out := &in.UID, &out.UID + *out = new(types.UID) + **out = **in + } else { + out.UID = nil + } + return nil + } +} + +func DeepCopy_api_PreferAvoidPodsEntry(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferAvoidPodsEntry) + out := out.(*PreferAvoidPodsEntry) + if err := DeepCopy_api_PodSignature(&in.PodSignature, &out.PodSignature, c); err != nil { + return err + } + out.EvictionTime = in.EvictionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_api_PreferredSchedulingTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PreferredSchedulingTerm) + out := out.(*PreferredSchedulingTerm) + out.Weight = in.Weight + if err := DeepCopy_api_NodeSelectorTerm(&in.Preference, &out.Preference, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_Probe(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Probe) + out := out.(*Probe) + if err := DeepCopy_api_Handler(&in.Handler, &out.Handler, c); err != nil { + return err + } + out.InitialDelaySeconds = in.InitialDelaySeconds + out.TimeoutSeconds = in.TimeoutSeconds + out.PeriodSeconds = in.PeriodSeconds + out.SuccessThreshold = in.SuccessThreshold + out.FailureThreshold = in.FailureThreshold + return nil + } +} + +func DeepCopy_api_RBDVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RBDVolumeSource) + out := out.(*RBDVolumeSource) + if in.CephMonitors != nil { + in, out := &in.CephMonitors, &out.CephMonitors + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.CephMonitors = nil + } + out.RBDImage = in.RBDImage + out.FSType = in.FSType + out.RBDPool = in.RBDPool + out.RadosUser = in.RadosUser + out.Keyring = in.Keyring + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(LocalObjectReference) + **out = **in + } else { + out.SecretRef = nil + } + out.ReadOnly = in.ReadOnly + return nil + } +} + +func DeepCopy_api_RangeAllocation(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RangeAllocation) + out := out.(*RangeAllocation) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Range = in.Range + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_api_ReplicationController(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationController) + out := out.(*ReplicationController) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_api_ReplicationControllerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerList) + out := out.(*ReplicationControllerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicationController, len(*in)) + for i := range *in { + if err := DeepCopy_api_ReplicationController(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ReplicationControllerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerSpec) + out := out.(*ReplicationControllerSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(PodTemplateSpec) + if err := DeepCopy_api_PodTemplateSpec(*in, *out, c); err != nil { + return err + } + } else { + out.Template = nil + } + return nil + } +} + +func DeepCopy_api_ReplicationControllerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerStatus) + out := out.(*ReplicationControllerStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_api_ResourceFieldSelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceFieldSelector) + out := out.(*ResourceFieldSelector) + out.ContainerName = in.ContainerName + out.Resource = in.Resource + out.Divisor = in.Divisor.DeepCopy() + return nil + } +} + +func DeepCopy_api_ResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuota) + out := out.(*ResourceQuota) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_ResourceQuotaSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_ResourceQuotaStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_ResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaList) + out := out.(*ResourceQuotaList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceQuota, len(*in)) + for i := range *in { + if err := DeepCopy_api_ResourceQuota(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ResourceQuotaSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaSpec) + out := out.(*ResourceQuotaSpec) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]ResourceQuotaScope, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Scopes = nil + } + return nil + } +} + +func DeepCopy_api_ResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceQuotaStatus) + out := out.(*ResourceQuotaStatus) + if in.Hard != nil { + in, out := &in.Hard, &out.Hard + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Hard = nil + } + if in.Used != nil { + in, out := &in.Used, &out.Used + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Used = nil + } + return nil + } +} + +func DeepCopy_api_ResourceRequirements(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ResourceRequirements) + out := out.(*ResourceRequirements) + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Limits = nil + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(ResourceList) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.Requests = nil + } + return nil + } +} + +func DeepCopy_api_SELinuxOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxOptions) + out := out.(*SELinuxOptions) + out.User = in.User + out.Role = in.Role + out.Type = in.Type + out.Level = in.Level + return nil + } +} + +func DeepCopy_api_Secret(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Secret) + out := out.(*Secret) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string][]byte) + for key, val := range *in { + if newVal, err := c.DeepCopy(&val); err != nil { + return err + } else { + (*out)[key] = *newVal.(*[]byte) + } + } + } else { + out.Data = nil + } + out.Type = in.Type + return nil + } +} + +func DeepCopy_api_SecretKeySelector(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretKeySelector) + out := out.(*SecretKeySelector) + out.LocalObjectReference = in.LocalObjectReference + out.Key = in.Key + return nil + } +} + +func DeepCopy_api_SecretList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretList) + out := out.(*SecretList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Secret, len(*in)) + for i := range *in { + if err := DeepCopy_api_Secret(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_SecretVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecretVolumeSource) + out := out.(*SecretVolumeSource) + out.SecretName = in.SecretName + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KeyToPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_SecurityContext(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SecurityContext) + out := out.(*SecurityContext) + if in.Capabilities != nil { + in, out := &in.Capabilities, &out.Capabilities + *out = new(Capabilities) + if err := DeepCopy_api_Capabilities(*in, *out, c); err != nil { + return err + } + } else { + out.Capabilities = nil + } + if in.Privileged != nil { + in, out := &in.Privileged, &out.Privileged + *out = new(bool) + **out = **in + } else { + out.Privileged = nil + } + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + if in.RunAsUser != nil { + in, out := &in.RunAsUser, &out.RunAsUser + *out = new(int64) + **out = **in + } else { + out.RunAsUser = nil + } + if in.RunAsNonRoot != nil { + in, out := &in.RunAsNonRoot, &out.RunAsNonRoot + *out = new(bool) + **out = **in + } else { + out.RunAsNonRoot = nil + } + if in.ReadOnlyRootFilesystem != nil { + in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem + *out = new(bool) + **out = **in + } else { + out.ReadOnlyRootFilesystem = nil + } + return nil + } +} + +func DeepCopy_api_SerializedReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SerializedReference) + out := out.(*SerializedReference) + out.TypeMeta = in.TypeMeta + out.Reference = in.Reference + return nil + } +} + +func DeepCopy_api_Service(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Service) + out := out.(*Service) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_api_ServiceSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_api_ServiceStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccount) + out := out.(*ServiceAccount) + out.TypeMeta = in.TypeMeta + if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = make([]ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Secrets = nil + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]LocalObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.ImagePullSecrets = nil + } + return nil + } +} + +func DeepCopy_api_ServiceAccountList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceAccountList) + out := out.(*ServiceAccountList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ServiceAccount, len(*in)) + for i := range *in { + if err := DeepCopy_api_ServiceAccount(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ServiceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceList) + out := out.(*ServiceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Service, len(*in)) + for i := range *in { + if err := DeepCopy_api_Service(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_api_ServicePort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServicePort) + out := out.(*ServicePort) + out.Name = in.Name + out.Protocol = in.Protocol + out.Port = in.Port + out.TargetPort = in.TargetPort + out.NodePort = in.NodePort + return nil + } +} + +func DeepCopy_api_ServiceProxyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceProxyOptions) + out := out.(*ServiceProxyOptions) + out.TypeMeta = in.TypeMeta + out.Path = in.Path + return nil + } +} + +func DeepCopy_api_ServiceSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceSpec) + out := out.(*ServiceSpec) + out.Type = in.Type + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]ServicePort, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ports = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Selector = nil + } + out.ClusterIP = in.ClusterIP + if in.ExternalIPs != nil { + in, out := &in.ExternalIPs, &out.ExternalIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.ExternalIPs = nil + } + out.LoadBalancerIP = in.LoadBalancerIP + out.SessionAffinity = in.SessionAffinity + if in.LoadBalancerSourceRanges != nil { + in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.LoadBalancerSourceRanges = nil + } + return nil + } +} + +func DeepCopy_api_ServiceStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ServiceStatus) + out := out.(*ServiceStatus) + if err := DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_TCPSocketAction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TCPSocketAction) + out := out.(*TCPSocketAction) + out.Port = in.Port + return nil + } +} + +func DeepCopy_api_Taint(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Taint) + out := out.(*Taint) + out.Key = in.Key + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_api_Toleration(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Toleration) + out := out.(*Toleration) + out.Key = in.Key + out.Operator = in.Operator + out.Value = in.Value + out.Effect = in.Effect + return nil + } +} + +func DeepCopy_api_Volume(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Volume) + out := out.(*Volume) + out.Name = in.Name + if err := DeepCopy_api_VolumeSource(&in.VolumeSource, &out.VolumeSource, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_VolumeMount(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeMount) + out := out.(*VolumeMount) + out.Name = in.Name + out.ReadOnly = in.ReadOnly + out.MountPath = in.MountPath + out.SubPath = in.SubPath + return nil + } +} + +func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VolumeSource) + out := out.(*VolumeSource) + if in.HostPath != nil { + in, out := &in.HostPath, &out.HostPath + *out = new(HostPathVolumeSource) + **out = **in + } else { + out.HostPath = nil + } + if in.EmptyDir != nil { + in, out := &in.EmptyDir, &out.EmptyDir + *out = new(EmptyDirVolumeSource) + **out = **in + } else { + out.EmptyDir = nil + } + if in.GCEPersistentDisk != nil { + in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk + *out = new(GCEPersistentDiskVolumeSource) + **out = **in + } else { + out.GCEPersistentDisk = nil + } + if in.AWSElasticBlockStore != nil { + in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore + *out = new(AWSElasticBlockStoreVolumeSource) + **out = **in + } else { + out.AWSElasticBlockStore = nil + } + if in.GitRepo != nil { + in, out := &in.GitRepo, &out.GitRepo + *out = new(GitRepoVolumeSource) + **out = **in + } else { + out.GitRepo = nil + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = new(SecretVolumeSource) + if err := DeepCopy_api_SecretVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.Secret = nil + } + if in.NFS != nil { + in, out := &in.NFS, &out.NFS + *out = new(NFSVolumeSource) + **out = **in + } else { + out.NFS = nil + } + if in.ISCSI != nil { + in, out := &in.ISCSI, &out.ISCSI + *out = new(ISCSIVolumeSource) + **out = **in + } else { + out.ISCSI = nil + } + if in.Glusterfs != nil { + in, out := &in.Glusterfs, &out.Glusterfs + *out = new(GlusterfsVolumeSource) + **out = **in + } else { + out.Glusterfs = nil + } + if in.PersistentVolumeClaim != nil { + in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim + *out = new(PersistentVolumeClaimVolumeSource) + **out = **in + } else { + out.PersistentVolumeClaim = nil + } + if in.RBD != nil { + in, out := &in.RBD, &out.RBD + *out = new(RBDVolumeSource) + if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.RBD = nil + } + if in.FlexVolume != nil { + in, out := &in.FlexVolume, &out.FlexVolume + *out = new(FlexVolumeSource) + if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FlexVolume = nil + } + if in.Cinder != nil { + in, out := &in.Cinder, &out.Cinder + *out = new(CinderVolumeSource) + **out = **in + } else { + out.Cinder = nil + } + if in.CephFS != nil { + in, out := &in.CephFS, &out.CephFS + *out = new(CephFSVolumeSource) + if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.CephFS = nil + } + if in.Flocker != nil { + in, out := &in.Flocker, &out.Flocker + *out = new(FlockerVolumeSource) + **out = **in + } else { + out.Flocker = nil + } + if in.DownwardAPI != nil { + in, out := &in.DownwardAPI, &out.DownwardAPI + *out = new(DownwardAPIVolumeSource) + if err := DeepCopy_api_DownwardAPIVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.DownwardAPI = nil + } + if in.FC != nil { + in, out := &in.FC, &out.FC + *out = new(FCVolumeSource) + if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.FC = nil + } + if in.AzureFile != nil { + in, out := &in.AzureFile, &out.AzureFile + *out = new(AzureFileVolumeSource) + **out = **in + } else { + out.AzureFile = nil + } + if in.ConfigMap != nil { + in, out := &in.ConfigMap, &out.ConfigMap + *out = new(ConfigMapVolumeSource) + if err := DeepCopy_api_ConfigMapVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.ConfigMap = nil + } + if in.VsphereVolume != nil { + in, out := &in.VsphereVolume, &out.VsphereVolume + *out = new(VsphereVirtualDiskVolumeSource) + **out = **in + } else { + out.VsphereVolume = nil + } + return nil + } +} + +func DeepCopy_api_VsphereVirtualDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*VsphereVirtualDiskVolumeSource) + out := out.(*VsphereVirtualDiskVolumeSource) + out.VolumePath = in.VolumePath + out.FSType = in.FSType + return nil + } +} + +func DeepCopy_api_WeightedPodAffinityTerm(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*WeightedPodAffinityTerm) + out := out.(*WeightedPodAffinityTerm) + out.Weight = in.Weight + if err := DeepCopy_api_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { + return err + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/doc.go similarity index 96% rename from ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/doc.go rename to ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/doc.go index 66c5ae720c..2c770186ba 100644 --- a/ingress/vendor/k8s.io/kubernetes/pkg/apis/authentication.k8s.io/doc.go +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/doc.go @@ -16,4 +16,4 @@ limitations under the License. // +k8s:deepcopy-gen=package,register -package authentication +package autoscaling diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/register.go new file mode 100644 index 0000000000..62fde79695 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/register.go @@ -0,0 +1,55 @@ +/* +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 autoscaling + +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 = "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 +func Kind(kind string) unversioned.GroupKind { + return SchemeGroupVersion.WithKind(kind).GroupKind() +} + +// Resource takes an unqualified resource and returns back a Group qualified GroupResource +func Resource(resource string) unversioned.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +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, + &Scale{}, + &HorizontalPodAutoscaler{}, + &HorizontalPodAutoscalerList{}, + &api.ListOptions{}, + ) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/types.generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/types.generated.go new file mode 100644 index 0000000000..8960a2120b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/types.generated.go @@ -0,0 +1,2656 @@ +/* +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 autoscaling + +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 *Scale) 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[3] = true + yyq2[4] = true + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(5) + } else { + yynn2 = 0 + 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) + if yyq2[3] { + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[3] { + 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 *Scale) 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 *Scale) 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_api.ObjectMeta{} + } else { + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ScaleSpec{} + } else { + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ScaleStatus{} + } else { + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Scale) 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_api.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 = ScaleSpec{} + } 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 = ScaleStatus{} + } 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 *ScaleSpec) 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 [1]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Replicas != 0 + var yynn33 int + if yyr33 || yy2arr33 { + r.EncodeArrayStart(1) + } 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] { + yym35 := z.EncBinary() + _ = yym35 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq33[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym37 := z.DecBinary() + _ = yym37 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct38 := r.ContainerType() + if yyct38 == codecSelferValueTypeMap1234 { + yyl38 := r.ReadMapStart() + if yyl38 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl38, d) + } + } else if yyct38 == codecSelferValueTypeArray1234 { + yyl38 := r.ReadArrayStart() + if yyl38 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl38, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys39Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys39Slc + var yyhl39 bool = l >= 0 + for yyj39 := 0; ; yyj39++ { + if yyhl39 { + if yyj39 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys39Slc = r.DecodeBytes(yys39Slc, true, true) + yys39 := string(yys39Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys39 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys39) + } // end switch yys39 + } // end for yyj39 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj41 int + var yyb41 bool + var yyhl41 bool = l >= 0 + yyj41++ + if yyhl41 { + yyb41 = yyj41 > l + } else { + yyb41 = r.CheckBreak() + } + if yyb41 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + for { + yyj41++ + if yyhl41 { + yyb41 = yyj41 > l + } else { + yyb41 = r.CheckBreak() + } + if yyb41 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj41-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym43 := z.EncBinary() + _ = yym43 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep44 := !z.EncBinary() + yy2arr44 := z.EncBasicHandle().StructToArray + var yyq44 [2]bool + _, _, _ = yysep44, yyq44, yy2arr44 + const yyr44 bool = false + yyq44[1] = x.Selector != "" + var yynn44 int + if yyr44 || yy2arr44 { + r.EncodeArrayStart(2) + } else { + yynn44 = 1 + for _, b := range yyq44 { + if b { + yynn44++ + } + } + r.EncodeMapStart(yynn44) + yynn44 = 0 + } + if yyr44 || yy2arr44 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym46 := z.EncBinary() + _ = yym46 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym47 := z.EncBinary() + _ = yym47 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + if yyr44 || yy2arr44 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq44[1] { + yym49 := z.EncBinary() + _ = yym49 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq44[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym50 := z.EncBinary() + _ = yym50 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) + } + } + } + if yyr44 || yy2arr44 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym51 := z.DecBinary() + _ = yym51 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct52 := r.ContainerType() + if yyct52 == codecSelferValueTypeMap1234 { + yyl52 := r.ReadMapStart() + if yyl52 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl52, d) + } + } else if yyct52 == codecSelferValueTypeArray1234 { + yyl52 := r.ReadArrayStart() + if yyl52 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl52, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys53Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys53Slc + var yyhl53 bool = l >= 0 + for yyj53 := 0; ; yyj53++ { + if yyhl53 { + if yyj53 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys53Slc = r.DecodeBytes(yys53Slc, true, true) + yys53 := string(yys53Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys53 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + case "selector": + if r.TryDecodeAsNil() { + x.Selector = "" + } else { + x.Selector = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys53) + } // end switch yys53 + } // end for yyj53 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj56 int + var yyb56 bool + var yyhl56 bool = l >= 0 + yyj56++ + if yyhl56 { + yyb56 = yyj56 > l + } else { + yyb56 = r.CheckBreak() + } + if yyb56 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj56++ + if yyhl56 { + yyb56 = yyj56 > l + } else { + yyb56 = r.CheckBreak() + } + if yyb56 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Selector = "" + } else { + x.Selector = string(r.DecodeString()) + } + for { + yyj56++ + if yyhl56 { + yyb56 = yyj56 > l + } else { + yyb56 = r.CheckBreak() + } + if yyb56 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj56-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym59 := z.EncBinary() + _ = yym59 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep60 := !z.EncBinary() + yy2arr60 := z.EncBasicHandle().StructToArray + var yyq60 [3]bool + _, _, _ = yysep60, yyq60, yy2arr60 + const yyr60 bool = false + yyq60[2] = x.APIVersion != "" + var yynn60 int + if yyr60 || yy2arr60 { + r.EncodeArrayStart(3) + } else { + yynn60 = 2 + for _, b := range yyq60 { + if b { + yynn60++ + } + } + r.EncodeMapStart(yynn60) + yynn60 = 0 + } + if yyr60 || yy2arr60 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym62 := z.EncBinary() + _ = yym62 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym63 := z.EncBinary() + _ = yym63 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + if yyr60 || yy2arr60 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym65 := z.EncBinary() + _ = yym65 + 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) + yym66 := z.EncBinary() + _ = yym66 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr60 || yy2arr60 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq60[2] { + yym68 := z.EncBinary() + _ = yym68 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq60[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym69 := z.EncBinary() + _ = yym69 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr60 || yy2arr60 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym70 := z.DecBinary() + _ = yym70 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct71 := r.ContainerType() + if yyct71 == codecSelferValueTypeMap1234 { + yyl71 := r.ReadMapStart() + if yyl71 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl71, d) + } + } else if yyct71 == codecSelferValueTypeArray1234 { + yyl71 := r.ReadArrayStart() + if yyl71 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl71, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys72Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys72Slc + var yyhl72 bool = l >= 0 + for yyj72 := 0; ; yyj72++ { + if yyhl72 { + if yyj72 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys72Slc = r.DecodeBytes(yys72Slc, true, true) + yys72 := string(yys72Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys72 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys72) + } // end switch yys72 + } // end for yyj72 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj76 int + var yyb76 bool + var yyhl76 bool = l >= 0 + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l + } else { + yyb76 = r.CheckBreak() + } + if yyb76 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l + } else { + yyb76 = r.CheckBreak() + } + if yyb76 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l + } else { + yyb76 = r.CheckBreak() + } + if yyb76 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + for { + yyj76++ + if yyhl76 { + yyb76 = yyj76 > l + } else { + yyb76 = r.CheckBreak() + } + if yyb76 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj76-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym80 := z.EncBinary() + _ = yym80 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep81 := !z.EncBinary() + yy2arr81 := z.EncBasicHandle().StructToArray + var yyq81 [4]bool + _, _, _ = yysep81, yyq81, yy2arr81 + const yyr81 bool = false + yyq81[1] = x.MinReplicas != nil + yyq81[3] = x.TargetCPUUtilizationPercentage != nil + var yynn81 int + if yyr81 || yy2arr81 { + r.EncodeArrayStart(4) + } else { + yynn81 = 2 + for _, b := range yyq81 { + if b { + yynn81++ + } + } + r.EncodeMapStart(yynn81) + yynn81 = 0 + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy83 := &x.ScaleTargetRef + yy83.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("scaleTargetRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy84 := &x.ScaleTargetRef + yy84.CodecEncodeSelf(e) + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq81[1] { + if x.MinReplicas == nil { + r.EncodeNil() + } else { + yy86 := *x.MinReplicas + yym87 := z.EncBinary() + _ = yym87 + if false { + } else { + r.EncodeInt(int64(yy86)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq81[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.MinReplicas == nil { + r.EncodeNil() + } else { + yy88 := *x.MinReplicas + yym89 := z.EncBinary() + _ = yym89 + if false { + } else { + r.EncodeInt(int64(yy88)) + } + } + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym91 := z.EncBinary() + _ = yym91 + if false { + } else { + r.EncodeInt(int64(x.MaxReplicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym92 := z.EncBinary() + _ = yym92 + if false { + } else { + r.EncodeInt(int64(x.MaxReplicas)) + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq81[3] { + if x.TargetCPUUtilizationPercentage == nil { + r.EncodeNil() + } else { + yy94 := *x.TargetCPUUtilizationPercentage + yym95 := z.EncBinary() + _ = yym95 + if false { + } else { + r.EncodeInt(int64(yy94)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq81[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("targetCPUUtilizationPercentage")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TargetCPUUtilizationPercentage == nil { + r.EncodeNil() + } else { + yy96 := *x.TargetCPUUtilizationPercentage + yym97 := z.EncBinary() + _ = yym97 + if false { + } else { + r.EncodeInt(int64(yy96)) + } + } + } + } + if yyr81 || yy2arr81 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym98 := z.DecBinary() + _ = yym98 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl99, d) + } + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl99, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys100 { + case "scaleTargetRef": + if r.TryDecodeAsNil() { + x.ScaleTargetRef = CrossVersionObjectReference{} + } else { + yyv101 := &x.ScaleTargetRef + yyv101.CodecDecodeSelf(d) + } + case "minReplicas": + if r.TryDecodeAsNil() { + if x.MinReplicas != nil { + x.MinReplicas = nil + } + } else { + if x.MinReplicas == nil { + x.MinReplicas = new(int32) + } + yym103 := z.DecBinary() + _ = yym103 + if false { + } else { + *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) + } + } + case "maxReplicas": + if r.TryDecodeAsNil() { + x.MaxReplicas = 0 + } else { + x.MaxReplicas = int32(r.DecodeInt(32)) + } + case "targetCPUUtilizationPercentage": + if r.TryDecodeAsNil() { + if x.TargetCPUUtilizationPercentage != nil { + x.TargetCPUUtilizationPercentage = nil + } + } else { + if x.TargetCPUUtilizationPercentage == nil { + x.TargetCPUUtilizationPercentage = new(int32) + } + yym106 := z.DecBinary() + _ = yym106 + if false { + } else { + *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) + } + } + default: + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj107 int + var yyb107 bool + var yyhl107 bool = l >= 0 + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ScaleTargetRef = CrossVersionObjectReference{} + } else { + yyv108 := &x.ScaleTargetRef + yyv108.CodecDecodeSelf(d) + } + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.MinReplicas != nil { + x.MinReplicas = nil + } + } else { + if x.MinReplicas == nil { + x.MinReplicas = new(int32) + } + yym110 := z.DecBinary() + _ = yym110 + if false { + } else { + *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) + } + } + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxReplicas = 0 + } else { + x.MaxReplicas = int32(r.DecodeInt(32)) + } + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.TargetCPUUtilizationPercentage != nil { + x.TargetCPUUtilizationPercentage = nil + } + } else { + if x.TargetCPUUtilizationPercentage == nil { + x.TargetCPUUtilizationPercentage = new(int32) + } + yym113 := z.DecBinary() + _ = yym113 + if false { + } else { + *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) + } + } + for { + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj107-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym114 := z.EncBinary() + _ = yym114 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep115 := !z.EncBinary() + yy2arr115 := z.EncBasicHandle().StructToArray + var yyq115 [5]bool + _, _, _ = yysep115, yyq115, yy2arr115 + const yyr115 bool = false + yyq115[0] = x.ObservedGeneration != nil + yyq115[1] = x.LastScaleTime != nil + yyq115[4] = x.CurrentCPUUtilizationPercentage != nil + var yynn115 int + if yyr115 || yy2arr115 { + r.EncodeArrayStart(5) + } else { + yynn115 = 2 + for _, b := range yyq115 { + if b { + yynn115++ + } + } + r.EncodeMapStart(yynn115) + yynn115 = 0 + } + if yyr115 || yy2arr115 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq115[0] { + if x.ObservedGeneration == nil { + r.EncodeNil() + } else { + yy117 := *x.ObservedGeneration + yym118 := z.EncBinary() + _ = yym118 + if false { + } else { + r.EncodeInt(int64(yy117)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq115[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ObservedGeneration == nil { + r.EncodeNil() + } else { + yy119 := *x.ObservedGeneration + yym120 := z.EncBinary() + _ = yym120 + if false { + } else { + r.EncodeInt(int64(yy119)) + } + } + } + } + if yyr115 || yy2arr115 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq115[1] { + if x.LastScaleTime == nil { + r.EncodeNil() + } else { + yym122 := z.EncBinary() + _ = yym122 + if false { + } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { + } else if yym122 { + z.EncBinaryMarshal(x.LastScaleTime) + } else if !yym122 && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastScaleTime) + } else { + z.EncFallback(x.LastScaleTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq115[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastScaleTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LastScaleTime == nil { + r.EncodeNil() + } else { + yym123 := z.EncBinary() + _ = yym123 + if false { + } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { + } else if yym123 { + z.EncBinaryMarshal(x.LastScaleTime) + } else if !yym123 && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastScaleTime) + } else { + z.EncFallback(x.LastScaleTime) + } + } + } + } + if yyr115 || yy2arr115 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym125 := z.EncBinary() + _ = yym125 + if false { + } else { + r.EncodeInt(int64(x.CurrentReplicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("currentReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym126 := z.EncBinary() + _ = yym126 + if false { + } else { + r.EncodeInt(int64(x.CurrentReplicas)) + } + } + if yyr115 || yy2arr115 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym128 := z.EncBinary() + _ = yym128 + if false { + } else { + r.EncodeInt(int64(x.DesiredReplicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("desiredReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym129 := z.EncBinary() + _ = yym129 + if false { + } else { + r.EncodeInt(int64(x.DesiredReplicas)) + } + } + if yyr115 || yy2arr115 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq115[4] { + if x.CurrentCPUUtilizationPercentage == nil { + r.EncodeNil() + } else { + yy131 := *x.CurrentCPUUtilizationPercentage + yym132 := z.EncBinary() + _ = yym132 + if false { + } else { + r.EncodeInt(int64(yy131)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq115[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("currentCPUUtilizationPercentage")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CurrentCPUUtilizationPercentage == nil { + r.EncodeNil() + } else { + yy133 := *x.CurrentCPUUtilizationPercentage + yym134 := z.EncBinary() + _ = yym134 + if false { + } else { + r.EncodeInt(int64(yy133)) + } + } + } + } + if yyr115 || yy2arr115 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym135 := z.DecBinary() + _ = yym135 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct136 := r.ContainerType() + if yyct136 == codecSelferValueTypeMap1234 { + yyl136 := r.ReadMapStart() + if yyl136 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl136, d) + } + } else if yyct136 == codecSelferValueTypeArray1234 { + yyl136 := r.ReadArrayStart() + if yyl136 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl136, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys137Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys137Slc + var yyhl137 bool = l >= 0 + for yyj137 := 0; ; yyj137++ { + if yyhl137 { + if yyj137 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys137Slc = r.DecodeBytes(yys137Slc, true, true) + yys137 := string(yys137Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys137 { + case "observedGeneration": + if r.TryDecodeAsNil() { + if x.ObservedGeneration != nil { + x.ObservedGeneration = nil + } + } else { + if x.ObservedGeneration == nil { + x.ObservedGeneration = new(int64) + } + yym139 := z.DecBinary() + _ = yym139 + if false { + } else { + *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) + } + } + case "lastScaleTime": + if r.TryDecodeAsNil() { + if x.LastScaleTime != nil { + x.LastScaleTime = nil + } + } else { + if x.LastScaleTime == nil { + x.LastScaleTime = new(pkg1_unversioned.Time) + } + yym141 := z.DecBinary() + _ = yym141 + if false { + } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { + } else if yym141 { + z.DecBinaryUnmarshal(x.LastScaleTime) + } else if !yym141 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.LastScaleTime) + } else { + z.DecFallback(x.LastScaleTime, false) + } + } + case "currentReplicas": + if r.TryDecodeAsNil() { + x.CurrentReplicas = 0 + } else { + x.CurrentReplicas = int32(r.DecodeInt(32)) + } + case "desiredReplicas": + if r.TryDecodeAsNil() { + x.DesiredReplicas = 0 + } else { + x.DesiredReplicas = int32(r.DecodeInt(32)) + } + case "currentCPUUtilizationPercentage": + if r.TryDecodeAsNil() { + if x.CurrentCPUUtilizationPercentage != nil { + x.CurrentCPUUtilizationPercentage = nil + } + } else { + if x.CurrentCPUUtilizationPercentage == nil { + x.CurrentCPUUtilizationPercentage = new(int32) + } + yym145 := z.DecBinary() + _ = yym145 + if false { + } else { + *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) + } + } + default: + z.DecStructFieldNotFound(-1, yys137) + } // end switch yys137 + } // end for yyj137 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj146 int + var yyb146 bool + var yyhl146 bool = l >= 0 + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l + } else { + yyb146 = r.CheckBreak() + } + if yyb146 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ObservedGeneration != nil { + x.ObservedGeneration = nil + } + } else { + if x.ObservedGeneration == nil { + x.ObservedGeneration = new(int64) + } + yym148 := z.DecBinary() + _ = yym148 + if false { + } else { + *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) + } + } + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l + } else { + yyb146 = r.CheckBreak() + } + if yyb146 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LastScaleTime != nil { + x.LastScaleTime = nil + } + } else { + if x.LastScaleTime == nil { + x.LastScaleTime = new(pkg1_unversioned.Time) + } + yym150 := z.DecBinary() + _ = yym150 + if false { + } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { + } else if yym150 { + z.DecBinaryUnmarshal(x.LastScaleTime) + } else if !yym150 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.LastScaleTime) + } else { + z.DecFallback(x.LastScaleTime, false) + } + } + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l + } else { + yyb146 = r.CheckBreak() + } + if yyb146 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CurrentReplicas = 0 + } else { + x.CurrentReplicas = int32(r.DecodeInt(32)) + } + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l + } else { + yyb146 = r.CheckBreak() + } + if yyb146 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DesiredReplicas = 0 + } else { + x.DesiredReplicas = int32(r.DecodeInt(32)) + } + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l + } else { + yyb146 = r.CheckBreak() + } + if yyb146 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CurrentCPUUtilizationPercentage != nil { + x.CurrentCPUUtilizationPercentage = nil + } + } else { + if x.CurrentCPUUtilizationPercentage == nil { + x.CurrentCPUUtilizationPercentage = new(int32) + } + yym154 := z.DecBinary() + _ = yym154 + if false { + } else { + *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) + } + } + for { + yyj146++ + if yyhl146 { + yyb146 = yyj146 > l + } else { + yyb146 = r.CheckBreak() + } + if yyb146 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj146-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym155 := z.EncBinary() + _ = yym155 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep156 := !z.EncBinary() + yy2arr156 := z.EncBasicHandle().StructToArray + var yyq156 [5]bool + _, _, _ = yysep156, yyq156, yy2arr156 + const yyr156 bool = false + yyq156[0] = x.Kind != "" + yyq156[1] = x.APIVersion != "" + yyq156[2] = true + yyq156[3] = true + yyq156[4] = true + var yynn156 int + if yyr156 || yy2arr156 { + r.EncodeArrayStart(5) + } else { + yynn156 = 0 + for _, b := range yyq156 { + if b { + yynn156++ + } + } + r.EncodeMapStart(yynn156) + yynn156 = 0 + } + if yyr156 || yy2arr156 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq156[0] { + yym158 := z.EncBinary() + _ = yym158 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq156[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr156 || yy2arr156 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq156[1] { + yym161 := z.EncBinary() + _ = yym161 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq156[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym162 := z.EncBinary() + _ = yym162 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr156 || yy2arr156 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq156[2] { + yy164 := &x.ObjectMeta + yy164.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq156[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy165 := &x.ObjectMeta + yy165.CodecEncodeSelf(e) + } + } + if yyr156 || yy2arr156 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq156[3] { + yy167 := &x.Spec + yy167.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq156[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy168 := &x.Spec + yy168.CodecEncodeSelf(e) + } + } + if yyr156 || yy2arr156 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq156[4] { + yy170 := &x.Status + yy170.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq156[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy171 := &x.Status + yy171.CodecEncodeSelf(e) + } + } + if yyr156 || yy2arr156 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym172 := z.DecBinary() + _ = yym172 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct173 := r.ContainerType() + if yyct173 == codecSelferValueTypeMap1234 { + yyl173 := r.ReadMapStart() + if yyl173 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl173, d) + } + } else if yyct173 == codecSelferValueTypeArray1234 { + yyl173 := r.ReadArrayStart() + if yyl173 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl173, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys174Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys174Slc + var yyhl174 bool = l >= 0 + for yyj174 := 0; ; yyj174++ { + if yyhl174 { + if yyj174 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys174Slc = r.DecodeBytes(yys174Slc, true, true) + yys174 := string(yys174Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys174 { + 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_api.ObjectMeta{} + } else { + yyv177 := &x.ObjectMeta + yyv177.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = HorizontalPodAutoscalerSpec{} + } else { + yyv178 := &x.Spec + yyv178.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = HorizontalPodAutoscalerStatus{} + } else { + yyv179 := &x.Status + yyv179.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys174) + } // end switch yys174 + } // end for yyj174 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj180 int + var yyb180 bool + var yyhl180 bool = l >= 0 + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l + } else { + yyb180 = r.CheckBreak() + } + if yyb180 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l + } else { + yyb180 = r.CheckBreak() + } + if yyb180 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l + } else { + yyb180 = r.CheckBreak() + } + if yyb180 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv183 := &x.ObjectMeta + yyv183.CodecDecodeSelf(d) + } + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l + } else { + yyb180 = r.CheckBreak() + } + if yyb180 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = HorizontalPodAutoscalerSpec{} + } else { + yyv184 := &x.Spec + yyv184.CodecDecodeSelf(d) + } + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l + } else { + yyb180 = r.CheckBreak() + } + if yyb180 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = HorizontalPodAutoscalerStatus{} + } else { + yyv185 := &x.Status + yyv185.CodecDecodeSelf(d) + } + for { + yyj180++ + if yyhl180 { + yyb180 = yyj180 > l + } else { + yyb180 = r.CheckBreak() + } + if yyb180 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj180-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym186 := z.EncBinary() + _ = yym186 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep187 := !z.EncBinary() + yy2arr187 := z.EncBasicHandle().StructToArray + var yyq187 [4]bool + _, _, _ = yysep187, yyq187, yy2arr187 + const yyr187 bool = false + yyq187[0] = x.Kind != "" + yyq187[1] = x.APIVersion != "" + yyq187[2] = true + var yynn187 int + if yyr187 || yy2arr187 { + r.EncodeArrayStart(4) + } else { + yynn187 = 1 + for _, b := range yyq187 { + if b { + yynn187++ + } + } + r.EncodeMapStart(yynn187) + yynn187 = 0 + } + if yyr187 || yy2arr187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq187[0] { + yym189 := z.EncBinary() + _ = yym189 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq187[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym190 := z.EncBinary() + _ = yym190 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr187 || yy2arr187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq187[1] { + yym192 := z.EncBinary() + _ = yym192 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq187[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym193 := z.EncBinary() + _ = yym193 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr187 || yy2arr187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq187[2] { + yy195 := &x.ListMeta + yym196 := z.EncBinary() + _ = yym196 + if false { + } else if z.HasExtensions() && z.EncExt(yy195) { + } else { + z.EncFallback(yy195) + } + } else { + r.EncodeNil() + } + } else { + if yyq187[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy197 := &x.ListMeta + yym198 := z.EncBinary() + _ = yym198 + if false { + } else if z.HasExtensions() && z.EncExt(yy197) { + } else { + z.EncFallback(yy197) + } + } + } + if yyr187 || yy2arr187 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym200 := z.EncBinary() + _ = yym200 + if false { + } else { + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(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 { + yym201 := z.EncBinary() + _ = yym201 + if false { + } else { + h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) + } + } + } + if yyr187 || yy2arr187 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym202 := z.DecBinary() + _ = yym202 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct203 := r.ContainerType() + if yyct203 == codecSelferValueTypeMap1234 { + yyl203 := r.ReadMapStart() + if yyl203 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl203, d) + } + } else if yyct203 == codecSelferValueTypeArray1234 { + yyl203 := r.ReadArrayStart() + if yyl203 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl203, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys204Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys204Slc + var yyhl204 bool = l >= 0 + for yyj204 := 0; ; yyj204++ { + if yyhl204 { + if yyj204 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys204Slc = r.DecodeBytes(yys204Slc, true, true) + yys204 := string(yys204Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys204 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv207 := &x.ListMeta + yym208 := z.DecBinary() + _ = yym208 + if false { + } else if z.HasExtensions() && z.DecExt(yyv207) { + } else { + z.DecFallback(yyv207, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv209 := &x.Items + yym210 := z.DecBinary() + _ = yym210 + if false { + } else { + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv209), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys204) + } // end switch yys204 + } // end for yyj204 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HorizontalPodAutoscalerList) 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 + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv214 := &x.ListMeta + yym215 := z.DecBinary() + _ = yym215 + if false { + } else if z.HasExtensions() && z.DecExt(yyv214) { + } else { + z.DecFallback(yyv214, false) + } + } + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv216 := &x.Items + yym217 := z.DecBinary() + _ = yym217 + if false { + } else { + h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv216), d) + } + } + for { + yyj211++ + if yyhl211 { + yyb211 = yyj211 > l + } else { + yyb211 = r.CheckBreak() + } + if yyb211 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj211-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutoscaler, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv218 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy219 := &yyv218 + yy219.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutoscaler, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv220 := *v + yyh220, yyl220 := z.DecSliceHelperStart() + var yyc220 bool + if yyl220 == 0 { + if yyv220 == nil { + yyv220 = []HorizontalPodAutoscaler{} + yyc220 = true + } else if len(yyv220) != 0 { + yyv220 = yyv220[:0] + yyc220 = true + } + } else if yyl220 > 0 { + var yyrr220, yyrl220 int + var yyrt220 bool + if yyl220 > cap(yyv220) { + + yyrg220 := len(yyv220) > 0 + yyv2220 := yyv220 + yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 344) + if yyrt220 { + if yyrl220 <= cap(yyv220) { + yyv220 = yyv220[:yyrl220] + } else { + yyv220 = make([]HorizontalPodAutoscaler, yyrl220) + } + } else { + yyv220 = make([]HorizontalPodAutoscaler, yyrl220) + } + yyc220 = true + yyrr220 = len(yyv220) + if yyrg220 { + copy(yyv220, yyv2220) + } + } else if yyl220 != len(yyv220) { + yyv220 = yyv220[:yyl220] + yyc220 = true + } + yyj220 := 0 + for ; yyj220 < yyrr220; yyj220++ { + yyh220.ElemContainerState(yyj220) + if r.TryDecodeAsNil() { + yyv220[yyj220] = HorizontalPodAutoscaler{} + } else { + yyv221 := &yyv220[yyj220] + yyv221.CodecDecodeSelf(d) + } + + } + if yyrt220 { + for ; yyj220 < yyl220; yyj220++ { + yyv220 = append(yyv220, HorizontalPodAutoscaler{}) + yyh220.ElemContainerState(yyj220) + if r.TryDecodeAsNil() { + yyv220[yyj220] = HorizontalPodAutoscaler{} + } else { + yyv222 := &yyv220[yyj220] + yyv222.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj220 := 0 + for ; !r.CheckBreak(); yyj220++ { + + if yyj220 >= len(yyv220) { + yyv220 = append(yyv220, HorizontalPodAutoscaler{}) // var yyz220 HorizontalPodAutoscaler + yyc220 = true + } + yyh220.ElemContainerState(yyj220) + if yyj220 < len(yyv220) { + if r.TryDecodeAsNil() { + yyv220[yyj220] = HorizontalPodAutoscaler{} + } else { + yyv223 := &yyv220[yyj220] + yyv223.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj220 < len(yyv220) { + yyv220 = yyv220[:yyj220] + yyc220 = true + } else if yyj220 == 0 && yyv220 == nil { + yyv220 = []HorizontalPodAutoscaler{} + yyc220 = true + } + } + yyh220.End() + if yyc220 { + *v = yyv220 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/types.go new file mode 100644 index 0000000000..26f6f7185e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/types.go @@ -0,0 +1,120 @@ +/* +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 autoscaling + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// Scale represents a scaling request for a resource. +type Scale struct { + unversioned.TypeMeta `json:",inline"` + // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + api.ObjectMeta `json:"metadata,omitempty"` + + // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + Spec ScaleSpec `json:"spec,omitempty"` + + // current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + Status ScaleStatus `json:"status,omitempty"` +} + +// ScaleSpec describes the attributes of a scale subresource. +type ScaleSpec struct { + // desired number of instances for the scaled object. + Replicas int32 `json:"replicas,omitempty"` +} + +// ScaleStatus represents the current status of a scale subresource. +type ScaleStatus struct { + // actual number of observed instances of the scaled object. + Replicas int32 `json:"replicas"` + + // label query over pods that should match the replicas count. This is same + // as the label selector but in the string format to avoid introspection + // by clients. The string will be in the same format as the query-param syntax. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + Selector string `json:"selector,omitempty"` +} + +// CrossVersionObjectReference contains enough information to let you identify the referred resource. +type CrossVersionObjectReference struct { + // Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` + // Name of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + Name string `json:"name" protobuf:"bytes,2,opt,name=name"` + // API version of the referent + APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` +} + +// specification of a horizontal pod autoscaler. +type HorizontalPodAutoscalerSpec struct { + // reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption + // and will set the desired number of pods by using its Scale subresource. + ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef"` + // lower limit for the number of pods that can be set by the autoscaler, default 1. + MinReplicas *int32 `json:"minReplicas,omitempty"` + // upper limit for the number of pods that can be set by the autoscaler. It cannot be smaller than MinReplicas. + MaxReplicas int32 `json:"maxReplicas"` + // target average CPU utilization (represented as a percentage of requested CPU) over all the pods; + // if not specified the default autoscaling policy will be used. + TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"` +} + +// current status of a horizontal pod autoscaler +type HorizontalPodAutoscalerStatus struct { + // most recent generation observed by this autoscaler. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + + // last time the HorizontalPodAutoscaler scaled the number of pods; + // used by the autoscaler to control how often the number of pods is changed. + LastScaleTime *unversioned.Time `json:"lastScaleTime,omitempty"` + + // current number of replicas of pods managed by this autoscaler. + CurrentReplicas int32 `json:"currentReplicas"` + + // desired number of replicas of pods managed by this autoscaler. + DesiredReplicas int32 `json:"desiredReplicas"` + + // current average CPU utilization over all pods, represented as a percentage of requested CPU, + // e.g. 70 means that an average pod is using now 70% of its requested CPU. + CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty"` +} + +// +genclient=true + +// configuration of a horizontal pod autoscaler. +type HorizontalPodAutoscaler struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty"` + + // current information about the autoscaler. + Status HorizontalPodAutoscalerStatus `json:"status,omitempty"` +} + +// list of horizontal pod autoscaler objects. +type HorizontalPodAutoscalerList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + // list of horizontal pod autoscaler objects. + Items []HorizontalPodAutoscaler `json:"items"` +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/zz_generated.deepcopy.go new file mode 100644 index 0000000000..014ec1eb66 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/autoscaling/zz_generated.deepcopy.go @@ -0,0 +1,186 @@ +// +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 autoscaling + +import ( + api "k8s.io/client-go/1.4/pkg/api" + unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + 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_autoscaling_CrossVersionObjectReference, InType: reflect.TypeOf(&CrossVersionObjectReference{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscaler, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerList, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerSpec, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerStatus, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_Scale, InType: reflect.TypeOf(&Scale{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, + ) +} + +func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CrossVersionObjectReference) + out := out.(*CrossVersionObjectReference) + out.Kind = in.Kind + out.Name = in.Name + out.APIVersion = in.APIVersion + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscaler) + out := out.(*HorizontalPodAutoscaler) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerList) + out := out.(*HorizontalPodAutoscalerList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HorizontalPodAutoscaler, len(*in)) + for i := range *in { + if err := DeepCopy_autoscaling_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerSpec) + out := out.(*HorizontalPodAutoscalerSpec) + out.ScaleTargetRef = in.ScaleTargetRef + if in.MinReplicas != nil { + in, out := &in.MinReplicas, &out.MinReplicas + *out = new(int32) + **out = **in + } else { + out.MinReplicas = nil + } + out.MaxReplicas = in.MaxReplicas + if in.TargetCPUUtilizationPercentage != nil { + in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.TargetCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HorizontalPodAutoscalerStatus) + out := out.(*HorizontalPodAutoscalerStatus) + if in.ObservedGeneration != nil { + in, out := &in.ObservedGeneration, &out.ObservedGeneration + *out = new(int64) + **out = **in + } else { + out.ObservedGeneration = nil + } + if in.LastScaleTime != nil { + in, out := &in.LastScaleTime, &out.LastScaleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScaleTime = nil + } + out.CurrentReplicas = in.CurrentReplicas + out.DesiredReplicas = in.DesiredReplicas + if in.CurrentCPUUtilizationPercentage != nil { + in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage + *out = new(int32) + **out = **in + } else { + out.CurrentCPUUtilizationPercentage = nil + } + return nil + } +} + +func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Scale) + out := out.(*Scale) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + out.Status = in.Status + return nil + } +} + +func DeepCopy_autoscaling_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleSpec) + out := out.(*ScaleSpec) + out.Replicas = in.Replicas + return nil + } +} + +func DeepCopy_autoscaling_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleStatus) + out := out.(*ScaleStatus) + out.Replicas = in.Replicas + out.Selector = in.Selector + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/doc.go new file mode 100644 index 0000000000..c6b203cd8e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/doc.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. +*/ + +// +k8s:deepcopy-gen=package,register + +package batch diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/register.go new file mode 100644 index 0000000000..8b84cdde1d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/register.go @@ -0,0 +1,57 @@ +/* +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 batch + +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 = "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 +func Kind(kind string) unversioned.GroupKind { + return SchemeGroupVersion.WithKind(kind).GroupKind() +} + +// Resource takes an unqualified resource and returns back a Group qualified GroupResource +func Resource(resource string) unversioned.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +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, + &Job{}, + &JobList{}, + &JobTemplate{}, + &ScheduledJob{}, + &ScheduledJobList{}, + &api.ListOptions{}, + ) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/types.generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/types.generated.go new file mode 100644 index 0000000000..2de7c00c06 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/types.generated.go @@ -0,0 +1,4676 @@ +/* +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 batch + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg2_api "k8s.io/client-go/1.4/pkg/api" + pkg4_resource "k8s.io/client-go/1.4/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/1.4/pkg/types" + pkg5_intstr "k8s.io/client-go/1.4/pkg/util/intstr" + "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 pkg4_resource.Quantity + var v2 pkg1_unversioned.TypeMeta + var v3 pkg3_types.UID + var v4 pkg5_intstr.IntOrString + var v5 time.Time + _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 + } +} + +func (x *Job) 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[3] = true + yyq2[4] = true + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(5) + } else { + yynn2 = 0 + 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) + if yyq2[3] { + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[3] { + 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 *Job) 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 *Job) 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_api.ObjectMeta{} + } else { + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = JobSpec{} + } else { + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = JobStatus{} + } else { + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Job) 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_api.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 = JobSpec{} + } 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 = JobStatus{} + } 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 *JobList) 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 [4]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = x.Kind != "" + yyq33[1] = x.APIVersion != "" + yyq33[2] = true + var yynn33 int + if yyr33 || yy2arr33 { + r.EncodeArrayStart(4) + } else { + yynn33 = 1 + for _, b := range yyq33 { + if b { + yynn33++ + } + } + r.EncodeMapStart(yynn33) + yynn33 = 0 + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[0] { + yym35 := z.EncBinary() + _ = yym35 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq33[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[1] { + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq33[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[2] { + yy41 := &x.ListMeta + yym42 := z.EncBinary() + _ = yym42 + if false { + } else if z.HasExtensions() && z.EncExt(yy41) { + } else { + z.EncFallback(yy41) + } + } else { + r.EncodeNil() + } + } else { + if yyq33[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy43 := &x.ListMeta + yym44 := z.EncBinary() + _ = yym44 + if false { + } else if z.HasExtensions() && z.EncExt(yy43) { + } else { + z.EncFallback(yy43) + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym46 := z.EncBinary() + _ = yym46 + if false { + } else { + h.encSliceJob(([]Job)(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 { + yym47 := z.EncBinary() + _ = yym47 + if false { + } else { + h.encSliceJob(([]Job)(x.Items), e) + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym48 := z.DecBinary() + _ = yym48 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct49 := r.ContainerType() + if yyct49 == codecSelferValueTypeMap1234 { + yyl49 := r.ReadMapStart() + if yyl49 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl49, d) + } + } else if yyct49 == codecSelferValueTypeArray1234 { + yyl49 := r.ReadArrayStart() + if yyl49 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl49, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys50Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys50Slc + var yyhl50 bool = l >= 0 + for yyj50 := 0; ; yyj50++ { + if yyhl50 { + if yyj50 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys50Slc = r.DecodeBytes(yys50Slc, true, true) + yys50 := string(yys50Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys50 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv53 := &x.ListMeta + yym54 := z.DecBinary() + _ = yym54 + if false { + } else if z.HasExtensions() && z.DecExt(yyv53) { + } else { + z.DecFallback(yyv53, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv55 := &x.Items + yym56 := z.DecBinary() + _ = yym56 + if false { + } else { + h.decSliceJob((*[]Job)(yyv55), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys50) + } // end switch yys50 + } // end for yyj50 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj57 int + var yyb57 bool + var yyhl57 bool = l >= 0 + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv60 := &x.ListMeta + yym61 := z.DecBinary() + _ = yym61 + if false { + } else if z.HasExtensions() && z.DecExt(yyv60) { + } else { + z.DecFallback(yyv60, false) + } + } + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv62 := &x.Items + yym63 := z.DecBinary() + _ = yym63 + if false { + } else { + h.decSliceJob((*[]Job)(yyv62), d) + } + } + for { + yyj57++ + if yyhl57 { + yyb57 = yyj57 > l + } else { + yyb57 = r.CheckBreak() + } + if yyb57 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj57-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym64 := z.EncBinary() + _ = yym64 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep65 := !z.EncBinary() + yy2arr65 := z.EncBasicHandle().StructToArray + var yyq65 [4]bool + _, _, _ = yysep65, yyq65, yy2arr65 + const yyr65 bool = false + yyq65[0] = x.Kind != "" + yyq65[1] = x.APIVersion != "" + yyq65[2] = true + yyq65[3] = true + var yynn65 int + if yyr65 || yy2arr65 { + r.EncodeArrayStart(4) + } else { + yynn65 = 0 + for _, b := range yyq65 { + if b { + yynn65++ + } + } + r.EncodeMapStart(yynn65) + yynn65 = 0 + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[0] { + yym67 := z.EncBinary() + _ = yym67 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq65[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym68 := z.EncBinary() + _ = yym68 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[1] { + yym70 := z.EncBinary() + _ = yym70 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq65[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym71 := z.EncBinary() + _ = yym71 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[2] { + yy73 := &x.ObjectMeta + yy73.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq65[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy74 := &x.ObjectMeta + yy74.CodecEncodeSelf(e) + } + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq65[3] { + yy76 := &x.Template + yy76.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq65[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy77 := &x.Template + yy77.CodecEncodeSelf(e) + } + } + if yyr65 || yy2arr65 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *JobTemplate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym78 := z.DecBinary() + _ = yym78 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct79 := r.ContainerType() + if yyct79 == codecSelferValueTypeMap1234 { + yyl79 := r.ReadMapStart() + if yyl79 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl79, d) + } + } else if yyct79 == codecSelferValueTypeArray1234 { + yyl79 := r.ReadArrayStart() + if yyl79 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl79, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys80Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys80Slc + var yyhl80 bool = l >= 0 + for yyj80 := 0; ; yyj80++ { + if yyhl80 { + if yyj80 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys80Slc = r.DecodeBytes(yys80Slc, true, true) + yys80 := string(yys80Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys80 { + 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_api.ObjectMeta{} + } else { + yyv83 := &x.ObjectMeta + yyv83.CodecDecodeSelf(d) + } + case "template": + if r.TryDecodeAsNil() { + x.Template = JobTemplateSpec{} + } else { + yyv84 := &x.Template + yyv84.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys80) + } // end switch yys80 + } // end for yyj80 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj85 int + var yyb85 bool + var yyhl85 bool = l >= 0 + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l + } else { + yyb85 = r.CheckBreak() + } + if yyb85 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l + } else { + yyb85 = r.CheckBreak() + } + if yyb85 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l + } else { + yyb85 = r.CheckBreak() + } + if yyb85 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv88 := &x.ObjectMeta + yyv88.CodecDecodeSelf(d) + } + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l + } else { + yyb85 = r.CheckBreak() + } + if yyb85 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = JobTemplateSpec{} + } else { + yyv89 := &x.Template + yyv89.CodecDecodeSelf(d) + } + for { + yyj85++ + if yyhl85 { + yyb85 = yyj85 > l + } else { + yyb85 = r.CheckBreak() + } + if yyb85 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj85-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym90 := z.EncBinary() + _ = yym90 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep91 := !z.EncBinary() + yy2arr91 := z.EncBasicHandle().StructToArray + var yyq91 [2]bool + _, _, _ = yysep91, yyq91, yy2arr91 + const yyr91 bool = false + yyq91[0] = true + yyq91[1] = true + var yynn91 int + if yyr91 || yy2arr91 { + r.EncodeArrayStart(2) + } else { + yynn91 = 0 + for _, b := range yyq91 { + if b { + yynn91++ + } + } + r.EncodeMapStart(yynn91) + yynn91 = 0 + } + if yyr91 || yy2arr91 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq91[0] { + yy93 := &x.ObjectMeta + yy93.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq91[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy94 := &x.ObjectMeta + yy94.CodecEncodeSelf(e) + } + } + if yyr91 || yy2arr91 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq91[1] { + yy96 := &x.Spec + yy96.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq91[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy97 := &x.Spec + yy97.CodecEncodeSelf(e) + } + } + if yyr91 || yy2arr91 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *JobTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym98 := z.DecBinary() + _ = yym98 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct99 := r.ContainerType() + if yyct99 == codecSelferValueTypeMap1234 { + yyl99 := r.ReadMapStart() + if yyl99 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl99, d) + } + } else if yyct99 == codecSelferValueTypeArray1234 { + yyl99 := r.ReadArrayStart() + if yyl99 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl99, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys100Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys100Slc + var yyhl100 bool = l >= 0 + for yyj100 := 0; ; yyj100++ { + if yyhl100 { + if yyj100 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys100Slc = r.DecodeBytes(yys100Slc, true, true) + yys100 := string(yys100Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys100 { + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv101 := &x.ObjectMeta + yyv101.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = JobSpec{} + } else { + yyv102 := &x.Spec + yyv102.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys100) + } // end switch yys100 + } // end for yyj100 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj103 int + var yyb103 bool + var yyhl103 bool = l >= 0 + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l + } else { + yyb103 = r.CheckBreak() + } + if yyb103 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv104 := &x.ObjectMeta + yyv104.CodecDecodeSelf(d) + } + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l + } else { + yyb103 = r.CheckBreak() + } + if yyb103 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = JobSpec{} + } else { + yyv105 := &x.Spec + yyv105.CodecDecodeSelf(d) + } + for { + yyj103++ + if yyhl103 { + yyb103 = yyj103 > l + } else { + yyb103 = r.CheckBreak() + } + if yyb103 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj103-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym106 := z.EncBinary() + _ = yym106 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep107 := !z.EncBinary() + yy2arr107 := z.EncBasicHandle().StructToArray + var yyq107 [6]bool + _, _, _ = yysep107, yyq107, yy2arr107 + const yyr107 bool = false + yyq107[0] = x.Parallelism != nil + yyq107[1] = x.Completions != nil + yyq107[2] = x.ActiveDeadlineSeconds != nil + yyq107[3] = x.Selector != nil + yyq107[4] = x.ManualSelector != nil + var yynn107 int + if yyr107 || yy2arr107 { + r.EncodeArrayStart(6) + } else { + yynn107 = 1 + for _, b := range yyq107 { + if b { + yynn107++ + } + } + r.EncodeMapStart(yynn107) + yynn107 = 0 + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq107[0] { + if x.Parallelism == nil { + r.EncodeNil() + } else { + yy109 := *x.Parallelism + yym110 := z.EncBinary() + _ = yym110 + if false { + } else { + r.EncodeInt(int64(yy109)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq107[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parallelism")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Parallelism == nil { + r.EncodeNil() + } else { + yy111 := *x.Parallelism + yym112 := z.EncBinary() + _ = yym112 + if false { + } else { + r.EncodeInt(int64(yy111)) + } + } + } + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq107[1] { + if x.Completions == nil { + r.EncodeNil() + } else { + yy114 := *x.Completions + yym115 := z.EncBinary() + _ = yym115 + if false { + } else { + r.EncodeInt(int64(yy114)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq107[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("completions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Completions == nil { + r.EncodeNil() + } else { + yy116 := *x.Completions + yym117 := z.EncBinary() + _ = yym117 + if false { + } else { + r.EncodeInt(int64(yy116)) + } + } + } + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq107[2] { + if x.ActiveDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy119 := *x.ActiveDeadlineSeconds + yym120 := z.EncBinary() + _ = yym120 + if false { + } else { + r.EncodeInt(int64(yy119)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq107[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ActiveDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy121 := *x.ActiveDeadlineSeconds + yym122 := z.EncBinary() + _ = yym122 + if false { + } else { + r.EncodeInt(int64(yy121)) + } + } + } + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq107[3] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym124 := z.EncBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq107[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym125 := z.EncBinary() + _ = yym125 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq107[4] { + if x.ManualSelector == nil { + r.EncodeNil() + } else { + yy127 := *x.ManualSelector + yym128 := z.EncBinary() + _ = yym128 + if false { + } else { + r.EncodeBool(bool(yy127)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq107[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("manualSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ManualSelector == nil { + r.EncodeNil() + } else { + yy129 := *x.ManualSelector + yym130 := z.EncBinary() + _ = yym130 + if false { + } else { + r.EncodeBool(bool(yy129)) + } + } + } + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy132 := &x.Template + yy132.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy133 := &x.Template + yy133.CodecEncodeSelf(e) + } + if yyr107 || yy2arr107 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym134 := z.DecBinary() + _ = yym134 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct135 := r.ContainerType() + if yyct135 == codecSelferValueTypeMap1234 { + yyl135 := r.ReadMapStart() + if yyl135 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl135, d) + } + } else if yyct135 == codecSelferValueTypeArray1234 { + yyl135 := r.ReadArrayStart() + if yyl135 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl135, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys136Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys136Slc + var yyhl136 bool = l >= 0 + for yyj136 := 0; ; yyj136++ { + if yyhl136 { + if yyj136 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys136Slc = r.DecodeBytes(yys136Slc, true, true) + yys136 := string(yys136Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys136 { + case "parallelism": + if r.TryDecodeAsNil() { + if x.Parallelism != nil { + x.Parallelism = nil + } + } else { + if x.Parallelism == nil { + x.Parallelism = new(int32) + } + yym138 := z.DecBinary() + _ = yym138 + if false { + } else { + *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) + } + } + case "completions": + if r.TryDecodeAsNil() { + if x.Completions != nil { + x.Completions = nil + } + } else { + if x.Completions == nil { + x.Completions = new(int32) + } + yym140 := z.DecBinary() + _ = yym140 + if false { + } else { + *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) + } + } + case "activeDeadlineSeconds": + if r.TryDecodeAsNil() { + if x.ActiveDeadlineSeconds != nil { + x.ActiveDeadlineSeconds = nil + } + } else { + if x.ActiveDeadlineSeconds == nil { + x.ActiveDeadlineSeconds = new(int64) + } + yym142 := z.DecBinary() + _ = yym142 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym144 := z.DecBinary() + _ = yym144 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + case "manualSelector": + if r.TryDecodeAsNil() { + if x.ManualSelector != nil { + x.ManualSelector = nil + } + } else { + if x.ManualSelector == nil { + x.ManualSelector = new(bool) + } + yym146 := z.DecBinary() + _ = yym146 + if false { + } else { + *((*bool)(x.ManualSelector)) = r.DecodeBool() + } + } + case "template": + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv147 := &x.Template + yyv147.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys136) + } // end switch yys136 + } // end for yyj136 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj148 int + var yyb148 bool + var yyhl148 bool = l >= 0 + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Parallelism != nil { + x.Parallelism = nil + } + } else { + if x.Parallelism == nil { + x.Parallelism = new(int32) + } + yym150 := z.DecBinary() + _ = yym150 + if false { + } else { + *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) + } + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Completions != nil { + x.Completions = nil + } + } else { + if x.Completions == nil { + x.Completions = new(int32) + } + yym152 := z.DecBinary() + _ = yym152 + if false { + } else { + *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) + } + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ActiveDeadlineSeconds != nil { + x.ActiveDeadlineSeconds = nil + } + } else { + if x.ActiveDeadlineSeconds == nil { + x.ActiveDeadlineSeconds = new(int64) + } + yym154 := z.DecBinary() + _ = yym154 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym156 := z.DecBinary() + _ = yym156 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ManualSelector != nil { + x.ManualSelector = nil + } + } else { + if x.ManualSelector == nil { + x.ManualSelector = new(bool) + } + yym158 := z.DecBinary() + _ = yym158 + if false { + } else { + *((*bool)(x.ManualSelector)) = r.DecodeBool() + } + } + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv159 := &x.Template + yyv159.CodecDecodeSelf(d) + } + for { + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l + } else { + yyb148 = r.CheckBreak() + } + if yyb148 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj148-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym160 := z.EncBinary() + _ = yym160 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep161 := !z.EncBinary() + yy2arr161 := z.EncBasicHandle().StructToArray + var yyq161 [6]bool + _, _, _ = yysep161, yyq161, yy2arr161 + const yyr161 bool = false + yyq161[0] = len(x.Conditions) != 0 + yyq161[1] = x.StartTime != nil + yyq161[2] = x.CompletionTime != nil + yyq161[3] = x.Active != 0 + yyq161[4] = x.Succeeded != 0 + yyq161[5] = x.Failed != 0 + var yynn161 int + if yyr161 || yy2arr161 { + r.EncodeArrayStart(6) + } else { + yynn161 = 0 + for _, b := range yyq161 { + if b { + yynn161++ + } + } + r.EncodeMapStart(yynn161) + yynn161 = 0 + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq161[0] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym163 := z.EncBinary() + _ = yym163 + if false { + } else { + h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq161[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym164 := z.EncBinary() + _ = yym164 + if false { + } else { + h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) + } + } + } + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq161[1] { + if x.StartTime == nil { + r.EncodeNil() + } else { + yym166 := z.EncBinary() + _ = yym166 + if false { + } else if z.HasExtensions() && z.EncExt(x.StartTime) { + } else if yym166 { + z.EncBinaryMarshal(x.StartTime) + } else if !yym166 && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartTime) + } else { + z.EncFallback(x.StartTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq161[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.StartTime == nil { + r.EncodeNil() + } else { + yym167 := z.EncBinary() + _ = yym167 + if false { + } else if z.HasExtensions() && z.EncExt(x.StartTime) { + } else if yym167 { + z.EncBinaryMarshal(x.StartTime) + } else if !yym167 && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartTime) + } else { + z.EncFallback(x.StartTime) + } + } + } + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq161[2] { + if x.CompletionTime == nil { + r.EncodeNil() + } else { + yym169 := z.EncBinary() + _ = yym169 + if false { + } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { + } else if yym169 { + z.EncBinaryMarshal(x.CompletionTime) + } else if !yym169 && z.IsJSONHandle() { + z.EncJSONMarshal(x.CompletionTime) + } else { + z.EncFallback(x.CompletionTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq161[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("completionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CompletionTime == nil { + r.EncodeNil() + } else { + yym170 := z.EncBinary() + _ = yym170 + if false { + } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { + } else if yym170 { + z.EncBinaryMarshal(x.CompletionTime) + } else if !yym170 && z.IsJSONHandle() { + z.EncJSONMarshal(x.CompletionTime) + } else { + z.EncFallback(x.CompletionTime) + } + } + } + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq161[3] { + yym172 := z.EncBinary() + _ = yym172 + if false { + } else { + r.EncodeInt(int64(x.Active)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq161[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("active")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym173 := z.EncBinary() + _ = yym173 + if false { + } else { + r.EncodeInt(int64(x.Active)) + } + } + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq161[4] { + yym175 := z.EncBinary() + _ = yym175 + if false { + } else { + r.EncodeInt(int64(x.Succeeded)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq161[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("succeeded")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym176 := z.EncBinary() + _ = yym176 + if false { + } else { + r.EncodeInt(int64(x.Succeeded)) + } + } + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq161[5] { + yym178 := z.EncBinary() + _ = yym178 + if false { + } else { + r.EncodeInt(int64(x.Failed)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq161[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("failed")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym179 := z.EncBinary() + _ = yym179 + if false { + } else { + r.EncodeInt(int64(x.Failed)) + } + } + } + if yyr161 || yy2arr161 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym180 := z.DecBinary() + _ = yym180 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct181 := r.ContainerType() + if yyct181 == codecSelferValueTypeMap1234 { + yyl181 := r.ReadMapStart() + if yyl181 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl181, d) + } + } else if yyct181 == codecSelferValueTypeArray1234 { + yyl181 := r.ReadArrayStart() + if yyl181 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl181, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys182Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys182Slc + var yyhl182 bool = l >= 0 + for yyj182 := 0; ; yyj182++ { + if yyhl182 { + if yyj182 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys182Slc = r.DecodeBytes(yys182Slc, true, true) + yys182 := string(yys182Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys182 { + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv183 := &x.Conditions + yym184 := z.DecBinary() + _ = yym184 + if false { + } else { + h.decSliceJobCondition((*[]JobCondition)(yyv183), d) + } + } + case "startTime": + if r.TryDecodeAsNil() { + if x.StartTime != nil { + x.StartTime = nil + } + } else { + if x.StartTime == nil { + x.StartTime = new(pkg1_unversioned.Time) + } + yym186 := z.DecBinary() + _ = yym186 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym186 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym186 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + case "completionTime": + if r.TryDecodeAsNil() { + if x.CompletionTime != nil { + x.CompletionTime = nil + } + } else { + if x.CompletionTime == nil { + x.CompletionTime = new(pkg1_unversioned.Time) + } + yym188 := z.DecBinary() + _ = yym188 + if false { + } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { + } else if yym188 { + z.DecBinaryUnmarshal(x.CompletionTime) + } else if !yym188 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.CompletionTime) + } else { + z.DecFallback(x.CompletionTime, false) + } + } + case "active": + if r.TryDecodeAsNil() { + x.Active = 0 + } else { + x.Active = int32(r.DecodeInt(32)) + } + case "succeeded": + if r.TryDecodeAsNil() { + x.Succeeded = 0 + } else { + x.Succeeded = int32(r.DecodeInt(32)) + } + case "failed": + if r.TryDecodeAsNil() { + x.Failed = 0 + } else { + x.Failed = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys182) + } // end switch yys182 + } // end for yyj182 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj192 int + var yyb192 bool + var yyhl192 bool = l >= 0 + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv193 := &x.Conditions + yym194 := z.DecBinary() + _ = yym194 + if false { + } else { + h.decSliceJobCondition((*[]JobCondition)(yyv193), d) + } + } + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.StartTime != nil { + x.StartTime = nil + } + } else { + if x.StartTime == nil { + x.StartTime = new(pkg1_unversioned.Time) + } + yym196 := z.DecBinary() + _ = yym196 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym196 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym196 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CompletionTime != nil { + x.CompletionTime = nil + } + } else { + if x.CompletionTime == nil { + x.CompletionTime = new(pkg1_unversioned.Time) + } + yym198 := z.DecBinary() + _ = yym198 + if false { + } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { + } else if yym198 { + z.DecBinaryUnmarshal(x.CompletionTime) + } else if !yym198 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.CompletionTime) + } else { + z.DecFallback(x.CompletionTime, false) + } + } + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Active = 0 + } else { + x.Active = int32(r.DecodeInt(32)) + } + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Succeeded = 0 + } else { + x.Succeeded = int32(r.DecodeInt(32)) + } + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Failed = 0 + } else { + x.Failed = int32(r.DecodeInt(32)) + } + for { + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l + } else { + yyb192 = r.CheckBreak() + } + if yyb192 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj192-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym202 := z.EncBinary() + _ = yym202 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym203 := z.DecBinary() + _ = yym203 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym204 := z.EncBinary() + _ = yym204 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep205 := !z.EncBinary() + yy2arr205 := z.EncBasicHandle().StructToArray + var yyq205 [6]bool + _, _, _ = yysep205, yyq205, yy2arr205 + const yyr205 bool = false + yyq205[2] = true + yyq205[3] = true + yyq205[4] = x.Reason != "" + yyq205[5] = x.Message != "" + var yynn205 int + if yyr205 || yy2arr205 { + r.EncodeArrayStart(6) + } else { + yynn205 = 2 + for _, b := range yyq205 { + if b { + yynn205++ + } + } + r.EncodeMapStart(yynn205) + yynn205 = 0 + } + if yyr205 || yy2arr205 { + 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 yyr205 || yy2arr205 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym208 := z.EncBinary() + _ = yym208 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym209 := z.EncBinary() + _ = yym209 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } + } + if yyr205 || yy2arr205 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq205[2] { + yy211 := &x.LastProbeTime + yym212 := z.EncBinary() + _ = yym212 + if false { + } else if z.HasExtensions() && z.EncExt(yy211) { + } else if yym212 { + z.EncBinaryMarshal(yy211) + } else if !yym212 && z.IsJSONHandle() { + z.EncJSONMarshal(yy211) + } else { + z.EncFallback(yy211) + } + } else { + r.EncodeNil() + } + } else { + if yyq205[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy213 := &x.LastProbeTime + yym214 := z.EncBinary() + _ = yym214 + if false { + } else if z.HasExtensions() && z.EncExt(yy213) { + } else if yym214 { + z.EncBinaryMarshal(yy213) + } else if !yym214 && z.IsJSONHandle() { + z.EncJSONMarshal(yy213) + } else { + z.EncFallback(yy213) + } + } + } + if yyr205 || yy2arr205 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq205[3] { + yy216 := &x.LastTransitionTime + yym217 := z.EncBinary() + _ = yym217 + if false { + } else if z.HasExtensions() && z.EncExt(yy216) { + } else if yym217 { + z.EncBinaryMarshal(yy216) + } else if !yym217 && z.IsJSONHandle() { + z.EncJSONMarshal(yy216) + } else { + z.EncFallback(yy216) + } + } else { + r.EncodeNil() + } + } else { + if yyq205[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy218 := &x.LastTransitionTime + yym219 := z.EncBinary() + _ = yym219 + if false { + } else if z.HasExtensions() && z.EncExt(yy218) { + } else if yym219 { + z.EncBinaryMarshal(yy218) + } else if !yym219 && z.IsJSONHandle() { + z.EncJSONMarshal(yy218) + } else { + z.EncFallback(yy218) + } + } + } + if yyr205 || yy2arr205 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq205[4] { + yym221 := z.EncBinary() + _ = yym221 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq205[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym222 := z.EncBinary() + _ = yym222 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr205 || yy2arr205 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq205[5] { + yym224 := z.EncBinary() + _ = yym224 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq205[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym225 := z.EncBinary() + _ = yym225 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr205 || yy2arr205 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym226 := z.DecBinary() + _ = yym226 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct227 := r.ContainerType() + if yyct227 == codecSelferValueTypeMap1234 { + yyl227 := r.ReadMapStart() + if yyl227 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl227, d) + } + } else if yyct227 == codecSelferValueTypeArray1234 { + yyl227 := r.ReadArrayStart() + if yyl227 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl227, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys228Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys228Slc + var yyhl228 bool = l >= 0 + for yyj228 := 0; ; yyj228++ { + if yyhl228 { + if yyj228 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys228Slc = r.DecodeBytes(yys228Slc, true, true) + yys228 := string(yys228Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys228 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = JobConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_api.ConditionStatus(r.DecodeString()) + } + case "lastProbeTime": + if r.TryDecodeAsNil() { + x.LastProbeTime = pkg1_unversioned.Time{} + } else { + yyv231 := &x.LastProbeTime + yym232 := z.DecBinary() + _ = yym232 + if false { + } else if z.HasExtensions() && z.DecExt(yyv231) { + } else if yym232 { + z.DecBinaryUnmarshal(yyv231) + } else if !yym232 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv231) + } else { + z.DecFallback(yyv231, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv233 := &x.LastTransitionTime + yym234 := z.DecBinary() + _ = yym234 + if false { + } else if z.HasExtensions() && z.DecExt(yyv233) { + } else if yym234 { + z.DecBinaryUnmarshal(yyv233) + } else if !yym234 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv233) + } else { + z.DecFallback(yyv233, 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, yys228) + } // end switch yys228 + } // end for yyj228 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj237 int + var yyb237 bool + var yyhl237 bool = l >= 0 + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = JobConditionType(r.DecodeString()) + } + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_api.ConditionStatus(r.DecodeString()) + } + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastProbeTime = pkg1_unversioned.Time{} + } else { + yyv240 := &x.LastProbeTime + yym241 := z.DecBinary() + _ = yym241 + if false { + } else if z.HasExtensions() && z.DecExt(yyv240) { + } else if yym241 { + z.DecBinaryUnmarshal(yyv240) + } else if !yym241 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv240) + } else { + z.DecFallback(yyv240, false) + } + } + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv242 := &x.LastTransitionTime + yym243 := z.DecBinary() + _ = yym243 + if false { + } else if z.HasExtensions() && z.DecExt(yyv242) { + } else if yym243 { + z.DecBinaryUnmarshal(yyv242) + } else if !yym243 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv242) + } else { + z.DecFallback(yyv242, false) + } + } + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l + } else { + yyb237 = r.CheckBreak() + } + if yyb237 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj237-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym246 := z.EncBinary() + _ = yym246 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep247 := !z.EncBinary() + yy2arr247 := z.EncBasicHandle().StructToArray + var yyq247 [5]bool + _, _, _ = yysep247, yyq247, yy2arr247 + const yyr247 bool = false + yyq247[0] = x.Kind != "" + yyq247[1] = x.APIVersion != "" + yyq247[2] = true + yyq247[3] = true + yyq247[4] = true + var yynn247 int + if yyr247 || yy2arr247 { + r.EncodeArrayStart(5) + } else { + yynn247 = 0 + for _, b := range yyq247 { + if b { + yynn247++ + } + } + r.EncodeMapStart(yynn247) + yynn247 = 0 + } + if yyr247 || yy2arr247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq247[0] { + yym249 := z.EncBinary() + _ = yym249 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq247[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym250 := z.EncBinary() + _ = yym250 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr247 || yy2arr247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq247[1] { + yym252 := z.EncBinary() + _ = yym252 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq247[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym253 := z.EncBinary() + _ = yym253 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr247 || yy2arr247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq247[2] { + yy255 := &x.ObjectMeta + yy255.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq247[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy256 := &x.ObjectMeta + yy256.CodecEncodeSelf(e) + } + } + if yyr247 || yy2arr247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq247[3] { + yy258 := &x.Spec + yy258.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq247[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy259 := &x.Spec + yy259.CodecEncodeSelf(e) + } + } + if yyr247 || yy2arr247 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq247[4] { + yy261 := &x.Status + yy261.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq247[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy262 := &x.Status + yy262.CodecEncodeSelf(e) + } + } + if yyr247 || yy2arr247 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym263 := z.DecBinary() + _ = yym263 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct264 := r.ContainerType() + if yyct264 == codecSelferValueTypeMap1234 { + yyl264 := r.ReadMapStart() + if yyl264 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl264, d) + } + } else if yyct264 == codecSelferValueTypeArray1234 { + yyl264 := r.ReadArrayStart() + if yyl264 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl264, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys265Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys265Slc + var yyhl265 bool = l >= 0 + for yyj265 := 0; ; yyj265++ { + if yyhl265 { + if yyj265 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys265Slc = r.DecodeBytes(yys265Slc, true, true) + yys265 := string(yys265Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys265 { + 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_api.ObjectMeta{} + } else { + yyv268 := &x.ObjectMeta + yyv268.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ScheduledJobSpec{} + } else { + yyv269 := &x.Spec + yyv269.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ScheduledJobStatus{} + } else { + yyv270 := &x.Status + yyv270.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys265) + } // end switch yys265 + } // end for yyj265 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj271 int + var yyb271 bool + var yyhl271 bool = l >= 0 + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l + } else { + yyb271 = r.CheckBreak() + } + if yyb271 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l + } else { + yyb271 = r.CheckBreak() + } + if yyb271 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l + } else { + yyb271 = r.CheckBreak() + } + if yyb271 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv274 := &x.ObjectMeta + yyv274.CodecDecodeSelf(d) + } + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l + } else { + yyb271 = r.CheckBreak() + } + if yyb271 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ScheduledJobSpec{} + } else { + yyv275 := &x.Spec + yyv275.CodecDecodeSelf(d) + } + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l + } else { + yyb271 = r.CheckBreak() + } + if yyb271 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ScheduledJobStatus{} + } else { + yyv276 := &x.Status + yyv276.CodecDecodeSelf(d) + } + for { + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l + } else { + yyb271 = r.CheckBreak() + } + if yyb271 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj271-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym277 := z.EncBinary() + _ = yym277 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep278 := !z.EncBinary() + yy2arr278 := z.EncBasicHandle().StructToArray + var yyq278 [4]bool + _, _, _ = yysep278, yyq278, yy2arr278 + const yyr278 bool = false + yyq278[0] = x.Kind != "" + yyq278[1] = x.APIVersion != "" + yyq278[2] = true + var yynn278 int + if yyr278 || yy2arr278 { + r.EncodeArrayStart(4) + } else { + yynn278 = 1 + for _, b := range yyq278 { + if b { + yynn278++ + } + } + r.EncodeMapStart(yynn278) + yynn278 = 0 + } + if yyr278 || yy2arr278 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq278[0] { + yym280 := z.EncBinary() + _ = yym280 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq278[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym281 := z.EncBinary() + _ = yym281 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr278 || yy2arr278 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq278[1] { + yym283 := z.EncBinary() + _ = yym283 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq278[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym284 := z.EncBinary() + _ = yym284 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr278 || yy2arr278 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq278[2] { + yy286 := &x.ListMeta + yym287 := z.EncBinary() + _ = yym287 + if false { + } else if z.HasExtensions() && z.EncExt(yy286) { + } else { + z.EncFallback(yy286) + } + } else { + r.EncodeNil() + } + } else { + if yyq278[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy288 := &x.ListMeta + yym289 := z.EncBinary() + _ = yym289 + if false { + } else if z.HasExtensions() && z.EncExt(yy288) { + } else { + z.EncFallback(yy288) + } + } + } + if yyr278 || yy2arr278 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym291 := z.EncBinary() + _ = yym291 + if false { + } else { + h.encSliceScheduledJob(([]ScheduledJob)(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 { + yym292 := z.EncBinary() + _ = yym292 + if false { + } else { + h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + } + } + } + if yyr278 || yy2arr278 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym293 := z.DecBinary() + _ = yym293 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct294 := r.ContainerType() + if yyct294 == codecSelferValueTypeMap1234 { + yyl294 := r.ReadMapStart() + if yyl294 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl294, d) + } + } else if yyct294 == codecSelferValueTypeArray1234 { + yyl294 := r.ReadArrayStart() + if yyl294 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl294, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys295Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys295Slc + var yyhl295 bool = l >= 0 + for yyj295 := 0; ; yyj295++ { + if yyhl295 { + if yyj295 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys295Slc = r.DecodeBytes(yys295Slc, true, true) + yys295 := string(yys295Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys295 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv298 := &x.ListMeta + yym299 := z.DecBinary() + _ = yym299 + if false { + } else if z.HasExtensions() && z.DecExt(yyv298) { + } else { + z.DecFallback(yyv298, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv300 := &x.Items + yym301 := z.DecBinary() + _ = yym301 + if false { + } else { + h.decSliceScheduledJob((*[]ScheduledJob)(yyv300), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys295) + } // end switch yys295 + } // end for yyj295 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj302 int + var yyb302 bool + var yyhl302 bool = l >= 0 + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv305 := &x.ListMeta + yym306 := z.DecBinary() + _ = yym306 + if false { + } else if z.HasExtensions() && z.DecExt(yyv305) { + } else { + z.DecFallback(yyv305, false) + } + } + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv307 := &x.Items + yym308 := z.DecBinary() + _ = yym308 + if false { + } else { + h.decSliceScheduledJob((*[]ScheduledJob)(yyv307), d) + } + } + for { + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj302-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym309 := z.EncBinary() + _ = yym309 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep310 := !z.EncBinary() + yy2arr310 := z.EncBasicHandle().StructToArray + var yyq310 [5]bool + _, _, _ = yysep310, yyq310, yy2arr310 + const yyr310 bool = false + yyq310[1] = x.StartingDeadlineSeconds != nil + yyq310[2] = x.ConcurrencyPolicy != "" + yyq310[3] = x.Suspend != nil + var yynn310 int + if yyr310 || yy2arr310 { + r.EncodeArrayStart(5) + } else { + yynn310 = 2 + for _, b := range yyq310 { + if b { + yynn310++ + } + } + r.EncodeMapStart(yynn310) + yynn310 = 0 + } + if yyr310 || yy2arr310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym312 := z.EncBinary() + _ = yym312 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("schedule")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym313 := z.EncBinary() + _ = yym313 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) + } + } + if yyr310 || yy2arr310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq310[1] { + if x.StartingDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy315 := *x.StartingDeadlineSeconds + yym316 := z.EncBinary() + _ = yym316 + if false { + } else { + r.EncodeInt(int64(yy315)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq310[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startingDeadlineSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.StartingDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy317 := *x.StartingDeadlineSeconds + yym318 := z.EncBinary() + _ = yym318 + if false { + } else { + r.EncodeInt(int64(yy317)) + } + } + } + } + if yyr310 || yy2arr310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq310[2] { + x.ConcurrencyPolicy.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq310[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrencyPolicy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.ConcurrencyPolicy.CodecEncodeSelf(e) + } + } + if yyr310 || yy2arr310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq310[3] { + if x.Suspend == nil { + r.EncodeNil() + } else { + yy321 := *x.Suspend + yym322 := z.EncBinary() + _ = yym322 + if false { + } else { + r.EncodeBool(bool(yy321)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq310[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("suspend")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Suspend == nil { + r.EncodeNil() + } else { + yy323 := *x.Suspend + yym324 := z.EncBinary() + _ = yym324 + if false { + } else { + r.EncodeBool(bool(yy323)) + } + } + } + } + if yyr310 || yy2arr310 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy326 := &x.JobTemplate + yy326.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("jobTemplate")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy327 := &x.JobTemplate + yy327.CodecEncodeSelf(e) + } + if yyr310 || yy2arr310 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym328 := z.DecBinary() + _ = yym328 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct329 := r.ContainerType() + if yyct329 == codecSelferValueTypeMap1234 { + yyl329 := r.ReadMapStart() + if yyl329 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl329, d) + } + } else if yyct329 == codecSelferValueTypeArray1234 { + yyl329 := r.ReadArrayStart() + if yyl329 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl329, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys330Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys330Slc + var yyhl330 bool = l >= 0 + for yyj330 := 0; ; yyj330++ { + if yyhl330 { + if yyj330 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys330Slc = r.DecodeBytes(yys330Slc, true, true) + yys330 := string(yys330Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys330 { + case "schedule": + if r.TryDecodeAsNil() { + x.Schedule = "" + } else { + x.Schedule = string(r.DecodeString()) + } + case "startingDeadlineSeconds": + if r.TryDecodeAsNil() { + if x.StartingDeadlineSeconds != nil { + x.StartingDeadlineSeconds = nil + } + } else { + if x.StartingDeadlineSeconds == nil { + x.StartingDeadlineSeconds = new(int64) + } + yym333 := z.DecBinary() + _ = yym333 + if false { + } else { + *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + case "concurrencyPolicy": + if r.TryDecodeAsNil() { + x.ConcurrencyPolicy = "" + } else { + x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) + } + case "suspend": + if r.TryDecodeAsNil() { + if x.Suspend != nil { + x.Suspend = nil + } + } else { + if x.Suspend == nil { + x.Suspend = new(bool) + } + yym336 := z.DecBinary() + _ = yym336 + if false { + } else { + *((*bool)(x.Suspend)) = r.DecodeBool() + } + } + case "jobTemplate": + if r.TryDecodeAsNil() { + x.JobTemplate = JobTemplateSpec{} + } else { + yyv337 := &x.JobTemplate + yyv337.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys330) + } // end switch yys330 + } // end for yyj330 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj338 int + var yyb338 bool + var yyhl338 bool = l >= 0 + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l + } else { + yyb338 = r.CheckBreak() + } + if yyb338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Schedule = "" + } else { + x.Schedule = string(r.DecodeString()) + } + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l + } else { + yyb338 = r.CheckBreak() + } + if yyb338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.StartingDeadlineSeconds != nil { + x.StartingDeadlineSeconds = nil + } + } else { + if x.StartingDeadlineSeconds == nil { + x.StartingDeadlineSeconds = new(int64) + } + yym341 := z.DecBinary() + _ = yym341 + if false { + } else { + *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l + } else { + yyb338 = r.CheckBreak() + } + if yyb338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrencyPolicy = "" + } else { + x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) + } + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l + } else { + yyb338 = r.CheckBreak() + } + if yyb338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Suspend != nil { + x.Suspend = nil + } + } else { + if x.Suspend == nil { + x.Suspend = new(bool) + } + yym344 := z.DecBinary() + _ = yym344 + if false { + } else { + *((*bool)(x.Suspend)) = r.DecodeBool() + } + } + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l + } else { + yyb338 = r.CheckBreak() + } + if yyb338 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.JobTemplate = JobTemplateSpec{} + } else { + yyv345 := &x.JobTemplate + yyv345.CodecDecodeSelf(d) + } + for { + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l + } else { + yyb338 = r.CheckBreak() + } + if yyb338 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj338-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ConcurrencyPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym346 := z.EncBinary() + _ = yym346 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym347 := z.DecBinary() + _ = yym347 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym348 := z.EncBinary() + _ = yym348 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep349 := !z.EncBinary() + yy2arr349 := z.EncBasicHandle().StructToArray + var yyq349 [2]bool + _, _, _ = yysep349, yyq349, yy2arr349 + const yyr349 bool = false + yyq349[0] = len(x.Active) != 0 + yyq349[1] = x.LastScheduleTime != nil + var yynn349 int + if yyr349 || yy2arr349 { + r.EncodeArrayStart(2) + } else { + yynn349 = 0 + for _, b := range yyq349 { + if b { + yynn349++ + } + } + r.EncodeMapStart(yynn349) + yynn349 = 0 + } + if yyr349 || yy2arr349 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq349[0] { + if x.Active == nil { + r.EncodeNil() + } else { + yym351 := z.EncBinary() + _ = yym351 + if false { + } else { + h.encSliceapi_ObjectReference(([]pkg2_api.ObjectReference)(x.Active), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq349[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("active")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Active == nil { + r.EncodeNil() + } else { + yym352 := z.EncBinary() + _ = yym352 + if false { + } else { + h.encSliceapi_ObjectReference(([]pkg2_api.ObjectReference)(x.Active), e) + } + } + } + } + if yyr349 || yy2arr349 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq349[1] { + if x.LastScheduleTime == nil { + r.EncodeNil() + } else { + yym354 := z.EncBinary() + _ = yym354 + if false { + } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { + } else if yym354 { + z.EncBinaryMarshal(x.LastScheduleTime) + } else if !yym354 && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastScheduleTime) + } else { + z.EncFallback(x.LastScheduleTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq349[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastScheduleTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LastScheduleTime == nil { + r.EncodeNil() + } else { + yym355 := z.EncBinary() + _ = yym355 + if false { + } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { + } else if yym355 { + z.EncBinaryMarshal(x.LastScheduleTime) + } else if !yym355 && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastScheduleTime) + } else { + z.EncFallback(x.LastScheduleTime) + } + } + } + } + if yyr349 || yy2arr349 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym356 := z.DecBinary() + _ = yym356 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct357 := r.ContainerType() + if yyct357 == codecSelferValueTypeMap1234 { + yyl357 := r.ReadMapStart() + if yyl357 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl357, d) + } + } else if yyct357 == codecSelferValueTypeArray1234 { + yyl357 := r.ReadArrayStart() + if yyl357 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl357, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys358Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys358Slc + var yyhl358 bool = l >= 0 + for yyj358 := 0; ; yyj358++ { + if yyhl358 { + if yyj358 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys358Slc = r.DecodeBytes(yys358Slc, true, true) + yys358 := string(yys358Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys358 { + case "active": + if r.TryDecodeAsNil() { + x.Active = nil + } else { + yyv359 := &x.Active + yym360 := z.DecBinary() + _ = yym360 + if false { + } else { + h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv359), d) + } + } + case "lastScheduleTime": + if r.TryDecodeAsNil() { + if x.LastScheduleTime != nil { + x.LastScheduleTime = nil + } + } else { + if x.LastScheduleTime == nil { + x.LastScheduleTime = new(pkg1_unversioned.Time) + } + yym362 := z.DecBinary() + _ = yym362 + if false { + } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { + } else if yym362 { + z.DecBinaryUnmarshal(x.LastScheduleTime) + } else if !yym362 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.LastScheduleTime) + } else { + z.DecFallback(x.LastScheduleTime, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys358) + } // end switch yys358 + } // end for yyj358 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj363 int + var yyb363 bool + var yyhl363 bool = l >= 0 + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l + } else { + yyb363 = r.CheckBreak() + } + if yyb363 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Active = nil + } else { + yyv364 := &x.Active + yym365 := z.DecBinary() + _ = yym365 + if false { + } else { + h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv364), d) + } + } + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l + } else { + yyb363 = r.CheckBreak() + } + if yyb363 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.LastScheduleTime != nil { + x.LastScheduleTime = nil + } + } else { + if x.LastScheduleTime == nil { + x.LastScheduleTime = new(pkg1_unversioned.Time) + } + yym367 := z.DecBinary() + _ = yym367 + if false { + } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { + } else if yym367 { + z.DecBinaryUnmarshal(x.LastScheduleTime) + } else if !yym367 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.LastScheduleTime) + } else { + z.DecFallback(x.LastScheduleTime, false) + } + } + for { + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l + } else { + yyb363 = r.CheckBreak() + } + if yyb363 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj363-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv368 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy369 := &yyv368 + yy369.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv370 := *v + yyh370, yyl370 := z.DecSliceHelperStart() + var yyc370 bool + if yyl370 == 0 { + if yyv370 == nil { + yyv370 = []Job{} + yyc370 = true + } else if len(yyv370) != 0 { + yyv370 = yyv370[:0] + yyc370 = true + } + } else if yyl370 > 0 { + var yyrr370, yyrl370 int + var yyrt370 bool + if yyl370 > cap(yyv370) { + + yyrg370 := len(yyv370) > 0 + yyv2370 := yyv370 + yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 768) + if yyrt370 { + if yyrl370 <= cap(yyv370) { + yyv370 = yyv370[:yyrl370] + } else { + yyv370 = make([]Job, yyrl370) + } + } else { + yyv370 = make([]Job, yyrl370) + } + yyc370 = true + yyrr370 = len(yyv370) + if yyrg370 { + copy(yyv370, yyv2370) + } + } else if yyl370 != len(yyv370) { + yyv370 = yyv370[:yyl370] + yyc370 = true + } + yyj370 := 0 + for ; yyj370 < yyrr370; yyj370++ { + yyh370.ElemContainerState(yyj370) + if r.TryDecodeAsNil() { + yyv370[yyj370] = Job{} + } else { + yyv371 := &yyv370[yyj370] + yyv371.CodecDecodeSelf(d) + } + + } + if yyrt370 { + for ; yyj370 < yyl370; yyj370++ { + yyv370 = append(yyv370, Job{}) + yyh370.ElemContainerState(yyj370) + if r.TryDecodeAsNil() { + yyv370[yyj370] = Job{} + } else { + yyv372 := &yyv370[yyj370] + yyv372.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj370 := 0 + for ; !r.CheckBreak(); yyj370++ { + + if yyj370 >= len(yyv370) { + yyv370 = append(yyv370, Job{}) // var yyz370 Job + yyc370 = true + } + yyh370.ElemContainerState(yyj370) + if yyj370 < len(yyv370) { + if r.TryDecodeAsNil() { + yyv370[yyj370] = Job{} + } else { + yyv373 := &yyv370[yyj370] + yyv373.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj370 < len(yyv370) { + yyv370 = yyv370[:yyj370] + yyc370 = true + } else if yyj370 == 0 && yyv370 == nil { + yyv370 = []Job{} + yyc370 = true + } + } + yyh370.End() + if yyc370 { + *v = yyv370 + } +} + +func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv374 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy375 := &yyv374 + yy375.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv376 := *v + yyh376, yyl376 := z.DecSliceHelperStart() + var yyc376 bool + if yyl376 == 0 { + if yyv376 == nil { + yyv376 = []JobCondition{} + yyc376 = true + } else if len(yyv376) != 0 { + yyv376 = yyv376[:0] + yyc376 = true + } + } else if yyl376 > 0 { + var yyrr376, yyrl376 int + var yyrt376 bool + if yyl376 > cap(yyv376) { + + yyrg376 := len(yyv376) > 0 + yyv2376 := yyv376 + yyrl376, yyrt376 = z.DecInferLen(yyl376, z.DecBasicHandle().MaxInitLen, 112) + if yyrt376 { + if yyrl376 <= cap(yyv376) { + yyv376 = yyv376[:yyrl376] + } else { + yyv376 = make([]JobCondition, yyrl376) + } + } else { + yyv376 = make([]JobCondition, yyrl376) + } + yyc376 = true + yyrr376 = len(yyv376) + if yyrg376 { + copy(yyv376, yyv2376) + } + } else if yyl376 != len(yyv376) { + yyv376 = yyv376[:yyl376] + yyc376 = true + } + yyj376 := 0 + for ; yyj376 < yyrr376; yyj376++ { + yyh376.ElemContainerState(yyj376) + if r.TryDecodeAsNil() { + yyv376[yyj376] = JobCondition{} + } else { + yyv377 := &yyv376[yyj376] + yyv377.CodecDecodeSelf(d) + } + + } + if yyrt376 { + for ; yyj376 < yyl376; yyj376++ { + yyv376 = append(yyv376, JobCondition{}) + yyh376.ElemContainerState(yyj376) + if r.TryDecodeAsNil() { + yyv376[yyj376] = JobCondition{} + } else { + yyv378 := &yyv376[yyj376] + yyv378.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj376 := 0 + for ; !r.CheckBreak(); yyj376++ { + + if yyj376 >= len(yyv376) { + yyv376 = append(yyv376, JobCondition{}) // var yyz376 JobCondition + yyc376 = true + } + yyh376.ElemContainerState(yyj376) + if yyj376 < len(yyv376) { + if r.TryDecodeAsNil() { + yyv376[yyj376] = JobCondition{} + } else { + yyv379 := &yyv376[yyj376] + yyv379.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj376 < len(yyv376) { + yyv376 = yyv376[:yyj376] + yyc376 = true + } else if yyj376 == 0 && yyv376 == nil { + yyv376 = []JobCondition{} + yyc376 = true + } + } + yyh376.End() + if yyc376 { + *v = yyv376 + } +} + +func (x codecSelfer1234) encSliceScheduledJob(v []ScheduledJob, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv380 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy381 := &yyv380 + yy381.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv382 := *v + yyh382, yyl382 := z.DecSliceHelperStart() + var yyc382 bool + if yyl382 == 0 { + if yyv382 == nil { + yyv382 = []ScheduledJob{} + yyc382 = true + } else if len(yyv382) != 0 { + yyv382 = yyv382[:0] + yyc382 = true + } + } else if yyl382 > 0 { + var yyrr382, yyrl382 int + var yyrt382 bool + if yyl382 > cap(yyv382) { + + yyrg382 := len(yyv382) > 0 + yyv2382 := yyv382 + yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1000) + if yyrt382 { + if yyrl382 <= cap(yyv382) { + yyv382 = yyv382[:yyrl382] + } else { + yyv382 = make([]ScheduledJob, yyrl382) + } + } else { + yyv382 = make([]ScheduledJob, yyrl382) + } + yyc382 = true + yyrr382 = len(yyv382) + if yyrg382 { + copy(yyv382, yyv2382) + } + } else if yyl382 != len(yyv382) { + yyv382 = yyv382[:yyl382] + yyc382 = true + } + yyj382 := 0 + for ; yyj382 < yyrr382; yyj382++ { + yyh382.ElemContainerState(yyj382) + if r.TryDecodeAsNil() { + yyv382[yyj382] = ScheduledJob{} + } else { + yyv383 := &yyv382[yyj382] + yyv383.CodecDecodeSelf(d) + } + + } + if yyrt382 { + for ; yyj382 < yyl382; yyj382++ { + yyv382 = append(yyv382, ScheduledJob{}) + yyh382.ElemContainerState(yyj382) + if r.TryDecodeAsNil() { + yyv382[yyj382] = ScheduledJob{} + } else { + yyv384 := &yyv382[yyj382] + yyv384.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj382 := 0 + for ; !r.CheckBreak(); yyj382++ { + + if yyj382 >= len(yyv382) { + yyv382 = append(yyv382, ScheduledJob{}) // var yyz382 ScheduledJob + yyc382 = true + } + yyh382.ElemContainerState(yyj382) + if yyj382 < len(yyv382) { + if r.TryDecodeAsNil() { + yyv382[yyj382] = ScheduledJob{} + } else { + yyv385 := &yyv382[yyj382] + yyv385.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj382 < len(yyv382) { + yyv382 = yyv382[:yyj382] + yyc382 = true + } else if yyj382 == 0 && yyv382 == nil { + yyv382 = []ScheduledJob{} + yyc382 = true + } + } + yyh382.End() + if yyc382 { + *v = yyv382 + } +} + +func (x codecSelfer1234) encSliceapi_ObjectReference(v []pkg2_api.ObjectReference, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv386 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy387 := &yyv386 + yy387.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceapi_ObjectReference(v *[]pkg2_api.ObjectReference, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv388 := *v + yyh388, yyl388 := z.DecSliceHelperStart() + var yyc388 bool + if yyl388 == 0 { + if yyv388 == nil { + yyv388 = []pkg2_api.ObjectReference{} + yyc388 = true + } else if len(yyv388) != 0 { + yyv388 = yyv388[:0] + yyc388 = true + } + } else if yyl388 > 0 { + var yyrr388, yyrl388 int + var yyrt388 bool + if yyl388 > cap(yyv388) { + + yyrg388 := len(yyv388) > 0 + yyv2388 := yyv388 + yyrl388, yyrt388 = z.DecInferLen(yyl388, z.DecBasicHandle().MaxInitLen, 112) + if yyrt388 { + if yyrl388 <= cap(yyv388) { + yyv388 = yyv388[:yyrl388] + } else { + yyv388 = make([]pkg2_api.ObjectReference, yyrl388) + } + } else { + yyv388 = make([]pkg2_api.ObjectReference, yyrl388) + } + yyc388 = true + yyrr388 = len(yyv388) + if yyrg388 { + copy(yyv388, yyv2388) + } + } else if yyl388 != len(yyv388) { + yyv388 = yyv388[:yyl388] + yyc388 = true + } + yyj388 := 0 + for ; yyj388 < yyrr388; yyj388++ { + yyh388.ElemContainerState(yyj388) + if r.TryDecodeAsNil() { + yyv388[yyj388] = pkg2_api.ObjectReference{} + } else { + yyv389 := &yyv388[yyj388] + yyv389.CodecDecodeSelf(d) + } + + } + if yyrt388 { + for ; yyj388 < yyl388; yyj388++ { + yyv388 = append(yyv388, pkg2_api.ObjectReference{}) + yyh388.ElemContainerState(yyj388) + if r.TryDecodeAsNil() { + yyv388[yyj388] = pkg2_api.ObjectReference{} + } else { + yyv390 := &yyv388[yyj388] + yyv390.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj388 := 0 + for ; !r.CheckBreak(); yyj388++ { + + if yyj388 >= len(yyv388) { + yyv388 = append(yyv388, pkg2_api.ObjectReference{}) // var yyz388 pkg2_api.ObjectReference + yyc388 = true + } + yyh388.ElemContainerState(yyj388) + if yyj388 < len(yyv388) { + if r.TryDecodeAsNil() { + yyv388[yyj388] = pkg2_api.ObjectReference{} + } else { + yyv391 := &yyv388[yyj388] + yyv391.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj388 < len(yyv388) { + yyv388 = yyv388[:yyj388] + yyc388 = true + } else if yyj388 == 0 && yyv388 == nil { + yyv388 = []pkg2_api.ObjectReference{} + yyc388 = true + } + } + yyh388.End() + if yyc388 { + *v = yyv388 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/types.go new file mode 100644 index 0000000000..d0d9a7490c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/types.go @@ -0,0 +1,244 @@ +/* +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 batch + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// +genclient=true + +// Job represents the configuration of a single job. +type Job struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Spec is a structure defining the expected behavior of a job. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec JobSpec `json:"spec,omitempty"` + + // Status is a structure describing current status of a job. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status JobStatus `json:"status,omitempty"` +} + +// JobList is a collection of jobs. +type JobList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of Job. + Items []Job `json:"items"` +} + +// JobTemplate describes a template for creating copies of a predefined pod. +type JobTemplate struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Template defines jobs that will be created from this template + // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Template JobTemplateSpec `json:"template,omitempty"` +} + +// JobTemplateSpec describes the data a Job should have when created from a template +type JobTemplateSpec struct { + // Standard object's metadata of the jobs created from this template. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Specification of the desired behavior of the job. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec JobSpec `json:"spec,omitempty"` +} + +// JobSpec describes how the job execution will look like. +type JobSpec struct { + + // Parallelism specifies the maximum desired number of pods the job should + // run at any given time. The actual number of pods running in steady state will + // be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), + // i.e. when the work left to do is less than max parallelism. + Parallelism *int32 `json:"parallelism,omitempty"` + + // Completions specifies the desired number of successfully finished pods the + // job should be run with. Setting to nil means that the success of any + // pod signals the success of all pods, and allows parallelism to have any positive + // value. Setting to 1 means that parallelism is limited to 1 and the success of that + // pod signals the success of the job. + Completions *int32 `json:"completions,omitempty"` + + // Optional duration in seconds relative to the startTime that the job may be active + // before the system tries to terminate it; value must be positive integer + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + + // Selector is a label query over pods that should match the pod count. + // Normally, the system sets this field for you. + Selector *unversioned.LabelSelector `json:"selector,omitempty"` + + // ManualSelector controls generation of pod labels and pod selectors. + // Leave `manualSelector` unset unless you are certain what you are doing. + // When false or unset, the system pick labels unique to this job + // and appends those labels to the pod template. When true, + // the user is responsible for picking unique labels and specifying + // the selector. Failure to pick a unique label may cause this + // and other jobs to not function correctly. However, You may see + // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` + // API. + ManualSelector *bool `json:"manualSelector,omitempty"` + + // Template is the object that describes the pod that will be created when + // executing a job. + Template api.PodTemplateSpec `json:"template"` +} + +// JobStatus represents the current state of a Job. +type JobStatus struct { + + // Conditions represent the latest available observations of an object's current state. + Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` + + // StartTime represents time when the job was acknowledged by the Job Manager. + // It is not guaranteed to be set in happens-before order across separate operations. + // It is represented in RFC3339 form and is in UTC. + StartTime *unversioned.Time `json:"startTime,omitempty"` + + // CompletionTime represents time when the job was completed. It is not guaranteed to + // be set in happens-before order across separate operations. + // It is represented in RFC3339 form and is in UTC. + CompletionTime *unversioned.Time `json:"completionTime,omitempty"` + + // Active is the number of actively running pods. + Active int32 `json:"active,omitempty"` + + // Succeeded is the number of pods which reached Phase Succeeded. + Succeeded int32 `json:"succeeded,omitempty"` + + // Failed is the number of pods which reached Phase Failed. + Failed int32 `json:"failed,omitempty"` +} + +type JobConditionType string + +// These are valid conditions of a job. +const ( + // JobComplete means the job has completed its execution. + JobComplete JobConditionType = "Complete" + // JobFailed means the job has failed its execution. + JobFailed JobConditionType = "Failed" +) + +// JobCondition describes current state of a job. +type JobCondition struct { + // Type of job condition, Complete or Failed. + Type JobConditionType `json:"type"` + // Status of the condition, one of True, False, Unknown. + Status api.ConditionStatus `json:"status"` + // Last time the condition was checked. + LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"` + // Last time the condition transit from one status to another. + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + // (brief) reason for the condition's last transition. + Reason string `json:"reason,omitempty"` + // Human readable message indicating details about last transition. + Message string `json:"message,omitempty"` +} + +// +genclient=true + +// ScheduledJob represents the configuration of a single scheduled job. +type ScheduledJob struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Spec is a structure defining the expected behavior of a job, including the schedule. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec ScheduledJobSpec `json:"spec,omitempty"` + + // Status is a structure describing current status of a job. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status ScheduledJobStatus `json:"status,omitempty"` +} + +// ScheduledJobList is a collection of scheduled jobs. +type ScheduledJobList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of ScheduledJob. + Items []ScheduledJob `json:"items"` +} + +// ScheduledJobSpec describes how the job execution will look like and when it will actually run. +type ScheduledJobSpec struct { + + // Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + Schedule string `json:"schedule"` + + // Optional deadline in seconds for starting the job if it misses scheduled + // time for any reason. Missed jobs executions will be counted as failed ones. + StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` + + // ConcurrencyPolicy specifies how to treat concurrent executions of a Job. + ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` + + // Suspend flag tells the controller to suspend subsequent executions, it does + // not apply to already started executions. Defaults to false. + Suspend *bool `json:"suspend,omitempty"` + + // JobTemplate is the object that describes the job that will be created when + // executing a ScheduledJob. + JobTemplate JobTemplateSpec `json:"jobTemplate"` +} + +// ConcurrencyPolicy describes how the job will be handled. +// Only one of the following concurrent policies may be specified. +// If none of the following policies is specified, the default one +// is AllowConcurrent. +type ConcurrencyPolicy string + +const ( + // AllowConcurrent allows ScheduledJobs to run concurrently. + AllowConcurrent ConcurrencyPolicy = "Allow" + + // ForbidConcurrent forbids concurrent runs, skipping next run if previous + // hasn't finished yet. + ForbidConcurrent ConcurrencyPolicy = "Forbid" + + // ReplaceConcurrent cancels currently running job and replaces it with a new one. + ReplaceConcurrent ConcurrencyPolicy = "Replace" +) + +// ScheduledJobStatus represents the current state of a Job. +type ScheduledJobStatus struct { + // Active holds pointers to currently running jobs. + Active []api.ObjectReference `json:"active,omitempty"` + + // LastScheduleTime keeps information of when was the last time the job was successfully scheduled. + LastScheduleTime *unversioned.Time `json:"lastScheduleTime,omitempty"` +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/zz_generated.deepcopy.go new file mode 100644 index 0000000000..c5dfb80225 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/batch/zz_generated.deepcopy.go @@ -0,0 +1,307 @@ +// +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 batch + +import ( + api "k8s.io/client-go/1.4/pkg/api" + unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + 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_batch_Job, InType: reflect.TypeOf(&Job{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobList, InType: reflect.TypeOf(&JobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplate, InType: reflect.TypeOf(&JobTemplate{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplateSpec, InType: reflect.TypeOf(&JobTemplateSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJob, InType: reflect.TypeOf(&ScheduledJob{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJobList, InType: reflect.TypeOf(&ScheduledJobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJobSpec, InType: reflect.TypeOf(&ScheduledJobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_ScheduledJobStatus, InType: reflect.TypeOf(&ScheduledJobStatus{})}, + ) +} + +func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Job) + out := out.(*Job) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_batch_JobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobCondition) + out := out.(*JobCondition) + out.Type = in.Type + out.Status = in.Status + out.LastProbeTime = in.LastProbeTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message + return nil + } +} + +func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobList) + out := out.(*JobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Job, len(*in)) + for i := range *in { + if err := DeepCopy_batch_Job(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobSpec) + out := out.(*JobSpec) + if in.Parallelism != nil { + in, out := &in.Parallelism, &out.Parallelism + *out = new(int32) + **out = **in + } else { + out.Parallelism = nil + } + if in.Completions != nil { + in, out := &in.Completions, &out.Completions + *out = new(int32) + **out = **in + } else { + out.Completions = nil + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.ActiveDeadlineSeconds = nil + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if in.ManualSelector != nil { + in, out := &in.ManualSelector, &out.ManualSelector + *out = new(bool) + **out = **in + } else { + out.ManualSelector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobStatus) + out := out.(*JobStatus) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]JobCondition, len(*in)) + for i := range *in { + if err := DeepCopy_batch_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.StartTime = nil + } + if in.CompletionTime != nil { + in, out := &in.CompletionTime, &out.CompletionTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.CompletionTime = nil + } + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil + } +} + +func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobTemplate) + out := out.(*JobTemplate) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*JobTemplateSpec) + out := out.(*JobTemplateSpec) + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_ScheduledJob(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJob) + out := out.(*ScheduledJob) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_ScheduledJobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_batch_ScheduledJobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_ScheduledJobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobList) + out := out.(*ScheduledJobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ScheduledJob, len(*in)) + for i := range *in { + if err := DeepCopy_batch_ScheduledJob(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_batch_ScheduledJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobSpec) + out := out.(*ScheduledJobSpec) + out.Schedule = in.Schedule + if in.StartingDeadlineSeconds != nil { + in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds + *out = new(int64) + **out = **in + } else { + out.StartingDeadlineSeconds = nil + } + out.ConcurrencyPolicy = in.ConcurrencyPolicy + if in.Suspend != nil { + in, out := &in.Suspend, &out.Suspend + *out = new(bool) + **out = **in + } else { + out.Suspend = nil + } + if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_ScheduledJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScheduledJobStatus) + out := out.(*ScheduledJobStatus) + if in.Active != nil { + in, out := &in.Active, &out.Active + *out = make([]api.ObjectReference, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Active = nil + } + if in.LastScheduleTime != nil { + in, out := &in.LastScheduleTime, &out.LastScheduleTime + *out = new(unversioned.Time) + **out = (*in).DeepCopy() + } else { + out.LastScheduleTime = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/doc.go new file mode 100644 index 0000000000..2bbb71d057 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/doc.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. +*/ + +// +k8s:deepcopy-gen=package,register + +package extensions diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/register.go new file mode 100644 index 0000000000..701b68a276 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/register.go @@ -0,0 +1,82 @@ +/* +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 extensions + +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/apis/autoscaling" + "k8s.io/client-go/1.4/pkg/apis/batch" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// GroupName is the group name use in this package +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 +func Kind(kind string) unversioned.GroupKind { + return SchemeGroupVersion.WithKind(kind).GroupKind() +} + +// Resource takes an unqualified resource and returns back a Group qualified GroupResource +func Resource(resource string) unversioned.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + +// Adds the list of known types to api.Scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + // TODO this gets cleaned up when the types are fixed + scheme.AddKnownTypes(SchemeGroupVersion, + &Deployment{}, + &DeploymentList{}, + &DeploymentRollback{}, + &autoscaling.HorizontalPodAutoscaler{}, + &autoscaling.HorizontalPodAutoscalerList{}, + &batch.Job{}, + &batch.JobList{}, + &batch.JobTemplate{}, + &ReplicationControllerDummy{}, + &Scale{}, + &ThirdPartyResource{}, + &ThirdPartyResourceList{}, + &DaemonSetList{}, + &DaemonSet{}, + &ThirdPartyResourceData{}, + &ThirdPartyResourceDataList{}, + &Ingress{}, + &IngressList{}, + &api.ListOptions{}, + &ReplicaSet{}, + &ReplicaSetList{}, + &api.ExportOptions{}, + &PodSecurityPolicy{}, + &PodSecurityPolicyList{}, + &NetworkPolicy{}, + &NetworkPolicyList{}, + &StorageClass{}, + &StorageClassList{}, + ) + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/types.generated.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/types.generated.go new file mode 100644 index 0000000000..2c7289c5c9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/types.generated.go @@ -0,0 +1,18771 @@ +/* +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 extensions + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg2_api "k8s.io/client-go/1.4/pkg/api" + pkg4_resource "k8s.io/client-go/1.4/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/1.4/pkg/types" + pkg5_intstr "k8s.io/client-go/1.4/pkg/util/intstr" + "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 pkg4_resource.Quantity + var v2 pkg1_unversioned.LabelSelector + var v3 pkg3_types.UID + var v4 pkg5_intstr.IntOrString + var v5 time.Time + _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 + } +} + +func (x *ScaleSpec) 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 [1]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Replicas != 0 + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(1) + } else { + yynn2 = 0 + 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.EncodeInt(int64(x.Replicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym6 := z.DecBinary() + _ = yym6 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct7 := r.ContainerType() + if yyct7 == codecSelferValueTypeMap1234 { + yyl7 := r.ReadMapStart() + if yyl7 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl7, d) + } + } else if yyct7 == codecSelferValueTypeArray1234 { + yyl7 := r.ReadArrayStart() + if yyl7 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl7, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys8Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys8Slc + var yyhl8 bool = l >= 0 + for yyj8 := 0; ; yyj8++ { + if yyhl8 { + if yyj8 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys8Slc = r.DecodeBytes(yys8Slc, true, true) + yys8 := string(yys8Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys8 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys8) + } // end switch yys8 + } // end for yyj8 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj10-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym12 := z.EncBinary() + _ = yym12 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep13 := !z.EncBinary() + yy2arr13 := z.EncBasicHandle().StructToArray + var yyq13 [2]bool + _, _, _ = yysep13, yyq13, yy2arr13 + const yyr13 bool = false + yyq13[1] = x.Selector != nil + var yynn13 int + if yyr13 || yy2arr13 { + r.EncodeArrayStart(2) + } else { + yynn13 = 1 + for _, b := range yyq13 { + if b { + yynn13++ + } + } + r.EncodeMapStart(yynn13) + yynn13 = 0 + } + if yyr13 || yy2arr13 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym15 := z.EncBinary() + _ = yym15 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + if yyr13 || yy2arr13 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq13[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym18 := z.EncBinary() + _ = yym18 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq13[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym19 := z.EncBinary() + _ = yym19 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr13 || yy2arr13 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym20 := z.DecBinary() + _ = yym20 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct21 := r.ContainerType() + if yyct21 == codecSelferValueTypeMap1234 { + yyl21 := r.ReadMapStart() + if yyl21 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl21, d) + } + } else if yyct21 == codecSelferValueTypeArray1234 { + yyl21 := r.ReadArrayStart() + if yyl21 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl21, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys22Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys22Slc + var yyhl22 bool = l >= 0 + for yyj22 := 0; ; yyj22++ { + if yyhl22 { + if yyj22 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys22Slc = r.DecodeBytes(yys22Slc, true, true) + yys22 := string(yys22Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys22 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym25 := z.DecBinary() + _ = yym25 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys22) + } // end switch yys22 + } // end for yyj22 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ScaleStatus) 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.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym29 := z.DecBinary() + _ = yym29 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + 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 *Scale) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym30 := z.EncBinary() + _ = yym30 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep31 := !z.EncBinary() + yy2arr31 := z.EncBasicHandle().StructToArray + var yyq31 [5]bool + _, _, _ = yysep31, yyq31, yy2arr31 + const yyr31 bool = false + yyq31[0] = x.Kind != "" + yyq31[1] = x.APIVersion != "" + yyq31[2] = true + yyq31[3] = true + yyq31[4] = true + var yynn31 int + if yyr31 || yy2arr31 { + r.EncodeArrayStart(5) + } else { + yynn31 = 0 + for _, b := range yyq31 { + if b { + yynn31++ + } + } + r.EncodeMapStart(yynn31) + yynn31 = 0 + } + if yyr31 || yy2arr31 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq31[0] { + yym33 := z.EncBinary() + _ = yym33 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq31[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym34 := z.EncBinary() + _ = yym34 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr31 || yy2arr31 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq31[1] { + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq31[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym37 := z.EncBinary() + _ = yym37 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr31 || yy2arr31 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq31[2] { + yy39 := &x.ObjectMeta + yy39.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq31[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy40 := &x.ObjectMeta + yy40.CodecEncodeSelf(e) + } + } + if yyr31 || yy2arr31 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq31[3] { + yy42 := &x.Spec + yy42.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq31[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy43 := &x.Spec + yy43.CodecEncodeSelf(e) + } + } + if yyr31 || yy2arr31 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq31[4] { + yy45 := &x.Status + yy45.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq31[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy46 := &x.Status + yy46.CodecEncodeSelf(e) + } + } + if yyr31 || yy2arr31 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym47 := z.DecBinary() + _ = yym47 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct48 := r.ContainerType() + if yyct48 == codecSelferValueTypeMap1234 { + yyl48 := r.ReadMapStart() + if yyl48 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl48, d) + } + } else if yyct48 == codecSelferValueTypeArray1234 { + yyl48 := r.ReadArrayStart() + if yyl48 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl48, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys49Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys49Slc + var yyhl49 bool = l >= 0 + for yyj49 := 0; ; yyj49++ { + if yyhl49 { + if yyj49 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys49Slc = r.DecodeBytes(yys49Slc, true, true) + yys49 := string(yys49Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys49 { + 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_api.ObjectMeta{} + } else { + yyv52 := &x.ObjectMeta + yyv52.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ScaleSpec{} + } else { + yyv53 := &x.Spec + yyv53.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ScaleStatus{} + } else { + yyv54 := &x.Status + yyv54.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys49) + } // end switch yys49 + } // end for yyj49 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj55 int + var yyb55 bool + var yyhl55 bool = l >= 0 + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l + } else { + yyb55 = r.CheckBreak() + } + if yyb55 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l + } else { + yyb55 = r.CheckBreak() + } + if yyb55 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l + } else { + yyb55 = r.CheckBreak() + } + if yyb55 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv58 := &x.ObjectMeta + yyv58.CodecDecodeSelf(d) + } + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l + } else { + yyb55 = r.CheckBreak() + } + if yyb55 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ScaleSpec{} + } else { + yyv59 := &x.Spec + yyv59.CodecDecodeSelf(d) + } + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l + } else { + yyb55 = r.CheckBreak() + } + if yyb55 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ScaleStatus{} + } else { + yyv60 := &x.Status + yyv60.CodecDecodeSelf(d) + } + for { + yyj55++ + if yyhl55 { + yyb55 = yyj55 > l + } else { + yyb55 = r.CheckBreak() + } + if yyb55 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj55-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym61 := z.EncBinary() + _ = yym61 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep62 := !z.EncBinary() + yy2arr62 := z.EncBasicHandle().StructToArray + var yyq62 [2]bool + _, _, _ = yysep62, yyq62, yy2arr62 + const yyr62 bool = false + yyq62[0] = x.Kind != "" + yyq62[1] = x.APIVersion != "" + var yynn62 int + if yyr62 || yy2arr62 { + r.EncodeArrayStart(2) + } else { + yynn62 = 0 + for _, b := range yyq62 { + if b { + yynn62++ + } + } + r.EncodeMapStart(yynn62) + yynn62 = 0 + } + if yyr62 || yy2arr62 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq62[0] { + yym64 := z.EncBinary() + _ = yym64 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq62[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym65 := z.EncBinary() + _ = yym65 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr62 || yy2arr62 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq62[1] { + yym67 := z.EncBinary() + _ = yym67 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq62[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym68 := z.EncBinary() + _ = yym68 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr62 || yy2arr62 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicationControllerDummy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym69 := z.DecBinary() + _ = yym69 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct70 := r.ContainerType() + if yyct70 == codecSelferValueTypeMap1234 { + yyl70 := r.ReadMapStart() + if yyl70 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl70, d) + } + } else if yyct70 == codecSelferValueTypeArray1234 { + yyl70 := r.ReadArrayStart() + if yyl70 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl70, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys71Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys71Slc + var yyhl71 bool = l >= 0 + for yyj71 := 0; ; yyj71++ { + if yyhl71 { + if yyj71 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys71Slc = r.DecodeBytes(yys71Slc, true, true) + yys71 := string(yys71Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys71 { + 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()) + } + default: + z.DecStructFieldNotFound(-1, yys71) + } // end switch yys71 + } // end for yyj71 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj74 int + var yyb74 bool + var yyhl74 bool = l >= 0 + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l + } else { + yyb74 = r.CheckBreak() + } + if yyb74 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l + } else { + yyb74 = r.CheckBreak() + } + if yyb74 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + for { + yyj74++ + if yyhl74 { + yyb74 = yyj74 > l + } else { + yyb74 = r.CheckBreak() + } + if yyb74 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj74-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym77 := z.EncBinary() + _ = yym77 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep78 := !z.EncBinary() + yy2arr78 := z.EncBasicHandle().StructToArray + var yyq78 [2]bool + _, _, _ = yysep78, yyq78, yy2arr78 + const yyr78 bool = false + var yynn78 int + if yyr78 || yy2arr78 { + r.EncodeArrayStart(2) + } else { + yynn78 = 2 + for _, b := range yyq78 { + if b { + yynn78++ + } + } + r.EncodeMapStart(yynn78) + yynn78 = 0 + } + if yyr78 || yy2arr78 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym80 := z.EncBinary() + _ = yym80 + 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) + yym81 := z.EncBinary() + _ = yym81 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr78 || yy2arr78 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy83 := &x.TargetValue + yym84 := z.EncBinary() + _ = yym84 + if false { + } else if z.HasExtensions() && z.EncExt(yy83) { + } else if !yym84 && z.IsJSONHandle() { + z.EncJSONMarshal(yy83) + } else { + z.EncFallback(yy83) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy85 := &x.TargetValue + yym86 := z.EncBinary() + _ = yym86 + if false { + } else if z.HasExtensions() && z.EncExt(yy85) { + } else if !yym86 && z.IsJSONHandle() { + z.EncJSONMarshal(yy85) + } else { + z.EncFallback(yy85) + } + } + if yyr78 || yy2arr78 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CustomMetricTarget) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym87 := z.DecBinary() + _ = yym87 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct88 := r.ContainerType() + if yyct88 == codecSelferValueTypeMap1234 { + yyl88 := r.ReadMapStart() + if yyl88 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl88, d) + } + } else if yyct88 == codecSelferValueTypeArray1234 { + yyl88 := r.ReadArrayStart() + if yyl88 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl88, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys89Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys89Slc + var yyhl89 bool = l >= 0 + for yyj89 := 0; ; yyj89++ { + if yyhl89 { + if yyj89 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys89Slc = r.DecodeBytes(yys89Slc, true, true) + yys89 := string(yys89Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys89 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.TargetValue = pkg4_resource.Quantity{} + } else { + yyv91 := &x.TargetValue + yym92 := z.DecBinary() + _ = yym92 + if false { + } else if z.HasExtensions() && z.DecExt(yyv91) { + } else if !yym92 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv91) + } else { + z.DecFallback(yyv91, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys89) + } // end switch yys89 + } // end for yyj89 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CustomMetricTarget) 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.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.TargetValue = pkg4_resource.Quantity{} + } else { + yyv95 := &x.TargetValue + yym96 := z.DecBinary() + _ = yym96 + if false { + } else if z.HasExtensions() && z.DecExt(yyv95) { + } else if !yym96 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv95) + } else { + z.DecFallback(yyv95, false) + } + } + 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 *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym97 := z.EncBinary() + _ = yym97 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep98 := !z.EncBinary() + yy2arr98 := z.EncBasicHandle().StructToArray + var yyq98 [1]bool + _, _, _ = yysep98, yyq98, yy2arr98 + const yyr98 bool = false + var yynn98 int + if yyr98 || yy2arr98 { + r.EncodeArrayStart(1) + } else { + yynn98 = 1 + for _, b := range yyq98 { + if b { + yynn98++ + } + } + r.EncodeMapStart(yynn98) + yynn98 = 0 + } + if yyr98 || yy2arr98 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym100 := z.EncBinary() + _ = yym100 + if false { + } else { + h.encSliceCustomMetricTarget(([]CustomMetricTarget)(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 { + yym101 := z.EncBinary() + _ = yym101 + if false { + } else { + h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) + } + } + } + if yyr98 || yy2arr98 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CustomMetricTargetList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym102 := z.DecBinary() + _ = yym102 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct103 := r.ContainerType() + if yyct103 == codecSelferValueTypeMap1234 { + yyl103 := r.ReadMapStart() + if yyl103 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl103, d) + } + } else if yyct103 == codecSelferValueTypeArray1234 { + yyl103 := r.ReadArrayStart() + if yyl103 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl103, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys104Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys104Slc + var yyhl104 bool = l >= 0 + for yyj104 := 0; ; yyj104++ { + if yyhl104 { + if yyj104 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys104Slc = r.DecodeBytes(yys104Slc, true, true) + yys104 := string(yys104Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys104 { + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv105 := &x.Items + yym106 := z.DecBinary() + _ = yym106 + if false { + } else { + h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv105), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys104) + } // end switch yys104 + } // end for yyj104 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj107 int + var yyb107 bool + var yyhl107 bool = l >= 0 + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv108 := &x.Items + yym109 := z.DecBinary() + _ = yym109 + if false { + } else { + h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv108), d) + } + } + for { + yyj107++ + if yyhl107 { + yyb107 = yyj107 > l + } else { + yyb107 = r.CheckBreak() + } + if yyb107 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj107-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym110 := z.EncBinary() + _ = yym110 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep111 := !z.EncBinary() + yy2arr111 := z.EncBasicHandle().StructToArray + var yyq111 [2]bool + _, _, _ = yysep111, yyq111, yy2arr111 + const yyr111 bool = false + var yynn111 int + if yyr111 || yy2arr111 { + r.EncodeArrayStart(2) + } else { + yynn111 = 2 + for _, b := range yyq111 { + if b { + yynn111++ + } + } + r.EncodeMapStart(yynn111) + yynn111 = 0 + } + if yyr111 || yy2arr111 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym113 := z.EncBinary() + _ = yym113 + 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) + yym114 := z.EncBinary() + _ = yym114 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr111 || yy2arr111 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy116 := &x.CurrentValue + yym117 := z.EncBinary() + _ = yym117 + if false { + } else if z.HasExtensions() && z.EncExt(yy116) { + } else if !yym117 && z.IsJSONHandle() { + z.EncJSONMarshal(yy116) + } else { + z.EncFallback(yy116) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy118 := &x.CurrentValue + yym119 := z.EncBinary() + _ = yym119 + if false { + } else if z.HasExtensions() && z.EncExt(yy118) { + } else if !yym119 && z.IsJSONHandle() { + z.EncJSONMarshal(yy118) + } else { + z.EncFallback(yy118) + } + } + if yyr111 || yy2arr111 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CustomMetricCurrentStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym120 := z.DecBinary() + _ = yym120 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct121 := r.ContainerType() + if yyct121 == codecSelferValueTypeMap1234 { + yyl121 := r.ReadMapStart() + if yyl121 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl121, d) + } + } else if yyct121 == codecSelferValueTypeArray1234 { + yyl121 := r.ReadArrayStart() + if yyl121 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl121, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *CustomMetricCurrentStatus) 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys122Slc = r.DecodeBytes(yys122Slc, true, true) + yys122 := string(yys122Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys122 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.CurrentValue = pkg4_resource.Quantity{} + } else { + yyv124 := &x.CurrentValue + yym125 := z.DecBinary() + _ = yym125 + if false { + } else if z.HasExtensions() && z.DecExt(yyv124) { + } else if !yym125 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv124) + } else { + z.DecFallback(yyv124, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys122) + } // end switch yys122 + } // end for yyj122 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj126 int + var yyb126 bool + var yyhl126 bool = l >= 0 + yyj126++ + if yyhl126 { + yyb126 = yyj126 > l + } else { + yyb126 = r.CheckBreak() + } + if yyb126 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj126++ + if yyhl126 { + yyb126 = yyj126 > l + } else { + yyb126 = r.CheckBreak() + } + if yyb126 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CurrentValue = pkg4_resource.Quantity{} + } else { + yyv128 := &x.CurrentValue + yym129 := z.DecBinary() + _ = yym129 + if false { + } else if z.HasExtensions() && z.DecExt(yyv128) { + } else if !yym129 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv128) + } else { + z.DecFallback(yyv128, false) + } + } + for { + yyj126++ + if yyhl126 { + yyb126 = yyj126 > l + } else { + yyb126 = r.CheckBreak() + } + if yyb126 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj126-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym130 := z.EncBinary() + _ = yym130 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep131 := !z.EncBinary() + yy2arr131 := z.EncBasicHandle().StructToArray + var yyq131 [1]bool + _, _, _ = yysep131, yyq131, yy2arr131 + const yyr131 bool = false + var yynn131 int + if yyr131 || yy2arr131 { + r.EncodeArrayStart(1) + } else { + yynn131 = 1 + for _, b := range yyq131 { + if b { + yynn131++ + } + } + r.EncodeMapStart(yynn131) + yynn131 = 0 + } + if yyr131 || yy2arr131 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym133 := z.EncBinary() + _ = yym133 + if false { + } else { + h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(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 { + yym134 := z.EncBinary() + _ = yym134 + if false { + } else { + h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) + } + } + } + if yyr131 || yy2arr131 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *CustomMetricCurrentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym135 := z.DecBinary() + _ = yym135 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct136 := r.ContainerType() + if yyct136 == codecSelferValueTypeMap1234 { + yyl136 := r.ReadMapStart() + if yyl136 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl136, d) + } + } else if yyct136 == codecSelferValueTypeArray1234 { + yyl136 := r.ReadArrayStart() + if yyl136 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl136, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys137Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys137Slc + var yyhl137 bool = l >= 0 + for yyj137 := 0; ; yyj137++ { + if yyhl137 { + if yyj137 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys137Slc = r.DecodeBytes(yys137Slc, true, true) + yys137 := string(yys137Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys137 { + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv138 := &x.Items + yym139 := z.DecBinary() + _ = yym139 + if false { + } else { + h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv138), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys137) + } // end switch yys137 + } // end for yyj137 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj140 int + var yyb140 bool + var yyhl140 bool = l >= 0 + yyj140++ + if yyhl140 { + yyb140 = yyj140 > l + } else { + yyb140 = r.CheckBreak() + } + if yyb140 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv141 := &x.Items + yym142 := z.DecBinary() + _ = yym142 + if false { + } else { + h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv141), d) + } + } + for { + yyj140++ + if yyhl140 { + yyb140 = yyj140 > l + } else { + yyb140 = r.CheckBreak() + } + if yyb140 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj140-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ThirdPartyResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym143 := z.EncBinary() + _ = yym143 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep144 := !z.EncBinary() + yy2arr144 := z.EncBasicHandle().StructToArray + var yyq144 [5]bool + _, _, _ = yysep144, yyq144, yy2arr144 + const yyr144 bool = false + yyq144[0] = x.Kind != "" + yyq144[1] = x.APIVersion != "" + yyq144[2] = true + yyq144[3] = x.Description != "" + yyq144[4] = len(x.Versions) != 0 + var yynn144 int + if yyr144 || yy2arr144 { + r.EncodeArrayStart(5) + } else { + yynn144 = 0 + for _, b := range yyq144 { + if b { + yynn144++ + } + } + r.EncodeMapStart(yynn144) + yynn144 = 0 + } + if yyr144 || yy2arr144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq144[0] { + yym146 := z.EncBinary() + _ = yym146 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq144[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym147 := z.EncBinary() + _ = yym147 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr144 || yy2arr144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq144[1] { + yym149 := z.EncBinary() + _ = yym149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq144[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym150 := z.EncBinary() + _ = yym150 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr144 || yy2arr144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq144[2] { + yy152 := &x.ObjectMeta + yy152.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq144[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy153 := &x.ObjectMeta + yy153.CodecEncodeSelf(e) + } + } + if yyr144 || yy2arr144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq144[3] { + yym155 := z.EncBinary() + _ = yym155 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Description)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq144[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("description")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym156 := z.EncBinary() + _ = yym156 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Description)) + } + } + } + if yyr144 || yy2arr144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq144[4] { + if x.Versions == nil { + r.EncodeNil() + } else { + yym158 := z.EncBinary() + _ = yym158 + if false { + } else { + h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq144[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("versions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Versions == nil { + r.EncodeNil() + } else { + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) + } + } + } + } + if yyr144 || yy2arr144 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ThirdPartyResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym160 := z.DecBinary() + _ = yym160 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct161 := r.ContainerType() + if yyct161 == codecSelferValueTypeMap1234 { + yyl161 := r.ReadMapStart() + if yyl161 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl161, d) + } + } else if yyct161 == codecSelferValueTypeArray1234 { + yyl161 := r.ReadArrayStart() + if yyl161 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl161, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys162Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys162Slc + var yyhl162 bool = l >= 0 + for yyj162 := 0; ; yyj162++ { + if yyhl162 { + if yyj162 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys162Slc = r.DecodeBytes(yys162Slc, true, true) + yys162 := string(yys162Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys162 { + 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_api.ObjectMeta{} + } else { + yyv165 := &x.ObjectMeta + yyv165.CodecDecodeSelf(d) + } + case "description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = string(r.DecodeString()) + } + case "versions": + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + yyv167 := &x.Versions + yym168 := z.DecBinary() + _ = yym168 + if false { + } else { + h.decSliceAPIVersion((*[]APIVersion)(yyv167), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys162) + } // end switch yys162 + } // end for yyj162 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ThirdPartyResource) 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv172 := &x.ObjectMeta + yyv172.CodecDecodeSelf(d) + } + 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.Description = "" + } else { + x.Description = string(r.DecodeString()) + } + 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.Versions = nil + } else { + yyv174 := &x.Versions + yym175 := z.DecBinary() + _ = yym175 + if false { + } else { + h.decSliceAPIVersion((*[]APIVersion)(yyv174), d) + } + } + 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 *ThirdPartyResourceList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym176 := z.EncBinary() + _ = yym176 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep177 := !z.EncBinary() + yy2arr177 := z.EncBasicHandle().StructToArray + var yyq177 [4]bool + _, _, _ = yysep177, yyq177, yy2arr177 + const yyr177 bool = false + yyq177[0] = x.Kind != "" + yyq177[1] = x.APIVersion != "" + yyq177[2] = true + var yynn177 int + if yyr177 || yy2arr177 { + r.EncodeArrayStart(4) + } else { + yynn177 = 1 + for _, b := range yyq177 { + if b { + yynn177++ + } + } + r.EncodeMapStart(yynn177) + yynn177 = 0 + } + if yyr177 || yy2arr177 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq177[0] { + yym179 := z.EncBinary() + _ = yym179 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq177[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym180 := z.EncBinary() + _ = yym180 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr177 || yy2arr177 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq177[1] { + yym182 := z.EncBinary() + _ = yym182 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq177[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym183 := z.EncBinary() + _ = yym183 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr177 || yy2arr177 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq177[2] { + yy185 := &x.ListMeta + yym186 := z.EncBinary() + _ = yym186 + if false { + } else if z.HasExtensions() && z.EncExt(yy185) { + } else { + z.EncFallback(yy185) + } + } else { + r.EncodeNil() + } + } else { + if yyq177[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy187 := &x.ListMeta + yym188 := z.EncBinary() + _ = yym188 + if false { + } else if z.HasExtensions() && z.EncExt(yy187) { + } else { + z.EncFallback(yy187) + } + } + } + if yyr177 || yy2arr177 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym190 := z.EncBinary() + _ = yym190 + if false { + } else { + h.encSliceThirdPartyResource(([]ThirdPartyResource)(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 { + yym191 := z.EncBinary() + _ = yym191 + if false { + } else { + h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) + } + } + } + if yyr177 || yy2arr177 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ThirdPartyResourceList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym192 := z.DecBinary() + _ = yym192 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct193 := r.ContainerType() + if yyct193 == codecSelferValueTypeMap1234 { + yyl193 := r.ReadMapStart() + if yyl193 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl193, d) + } + } else if yyct193 == codecSelferValueTypeArray1234 { + yyl193 := r.ReadArrayStart() + if yyl193 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl193, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys194Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys194Slc + var yyhl194 bool = l >= 0 + for yyj194 := 0; ; yyj194++ { + if yyhl194 { + if yyj194 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys194Slc = r.DecodeBytes(yys194Slc, true, true) + yys194 := string(yys194Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys194 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv197 := &x.ListMeta + yym198 := z.DecBinary() + _ = yym198 + if false { + } else if z.HasExtensions() && z.DecExt(yyv197) { + } else { + z.DecFallback(yyv197, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv199 := &x.Items + yym200 := z.DecBinary() + _ = yym200 + if false { + } else { + h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv199), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys194) + } // end switch yys194 + } // end for yyj194 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ThirdPartyResourceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj201 int + var yyb201 bool + var yyhl201 bool = l >= 0 + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l + } else { + yyb201 = r.CheckBreak() + } + if yyb201 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l + } else { + yyb201 = r.CheckBreak() + } + if yyb201 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l + } else { + yyb201 = r.CheckBreak() + } + if yyb201 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv204 := &x.ListMeta + yym205 := z.DecBinary() + _ = yym205 + if false { + } else if z.HasExtensions() && z.DecExt(yyv204) { + } else { + z.DecFallback(yyv204, false) + } + } + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l + } else { + yyb201 = r.CheckBreak() + } + if yyb201 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv206 := &x.Items + yym207 := z.DecBinary() + _ = yym207 + if false { + } else { + h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv206), d) + } + } + for { + yyj201++ + if yyhl201 { + yyb201 = yyj201 > l + } else { + yyb201 = r.CheckBreak() + } + if yyb201 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj201-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym208 := z.EncBinary() + _ = yym208 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep209 := !z.EncBinary() + yy2arr209 := z.EncBasicHandle().StructToArray + var yyq209 [1]bool + _, _, _ = yysep209, yyq209, yy2arr209 + const yyr209 bool = false + yyq209[0] = x.Name != "" + var yynn209 int + if yyr209 || yy2arr209 { + r.EncodeArrayStart(1) + } else { + yynn209 = 0 + for _, b := range yyq209 { + if b { + yynn209++ + } + } + r.EncodeMapStart(yynn209) + yynn209 = 0 + } + if yyr209 || yy2arr209 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq209[0] { + yym211 := z.EncBinary() + _ = yym211 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq209[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym212 := z.EncBinary() + _ = yym212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr209 || yy2arr209 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *APIVersion) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym213 := z.DecBinary() + _ = yym213 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct214 := r.ContainerType() + if yyct214 == codecSelferValueTypeMap1234 { + yyl214 := r.ReadMapStart() + if yyl214 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl214, d) + } + } else if yyct214 == codecSelferValueTypeArray1234 { + yyl214 := r.ReadArrayStart() + if yyl214 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl214, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys215Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys215Slc + var yyhl215 bool = l >= 0 + for yyj215 := 0; ; yyj215++ { + if yyhl215 { + if yyj215 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys215Slc = r.DecodeBytes(yys215Slc, true, true) + yys215 := string(yys215Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys215 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys215) + } // end switch yys215 + } // end for yyj215 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj217 int + var yyb217 bool + var yyhl217 bool = l >= 0 + yyj217++ + if yyhl217 { + yyb217 = yyj217 > l + } else { + yyb217 = r.CheckBreak() + } + if yyb217 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + for { + yyj217++ + if yyhl217 { + yyb217 = yyj217 > l + } else { + yyb217 = r.CheckBreak() + } + if yyb217 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj217-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ThirdPartyResourceData) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym219 := z.EncBinary() + _ = yym219 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep220 := !z.EncBinary() + yy2arr220 := z.EncBasicHandle().StructToArray + var yyq220 [4]bool + _, _, _ = yysep220, yyq220, yy2arr220 + const yyr220 bool = false + yyq220[0] = x.Kind != "" + yyq220[1] = x.APIVersion != "" + yyq220[2] = true + yyq220[3] = len(x.Data) != 0 + var yynn220 int + if yyr220 || yy2arr220 { + r.EncodeArrayStart(4) + } else { + yynn220 = 0 + for _, b := range yyq220 { + if b { + yynn220++ + } + } + r.EncodeMapStart(yynn220) + yynn220 = 0 + } + if yyr220 || yy2arr220 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq220[0] { + yym222 := z.EncBinary() + _ = yym222 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq220[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym223 := z.EncBinary() + _ = yym223 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr220 || yy2arr220 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq220[1] { + yym225 := z.EncBinary() + _ = yym225 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq220[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym226 := z.EncBinary() + _ = yym226 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr220 || yy2arr220 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq220[2] { + yy228 := &x.ObjectMeta + yy228.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq220[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy229 := &x.ObjectMeta + yy229.CodecEncodeSelf(e) + } + } + if yyr220 || yy2arr220 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq220[3] { + if x.Data == nil { + r.EncodeNil() + } else { + yym231 := z.EncBinary() + _ = yym231 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq220[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("data")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Data == nil { + r.EncodeNil() + } else { + yym232 := z.EncBinary() + _ = yym232 + if false { + } else { + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) + } + } + } + } + if yyr220 || yy2arr220 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ThirdPartyResourceData) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym233 := z.DecBinary() + _ = yym233 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct234 := r.ContainerType() + if yyct234 == codecSelferValueTypeMap1234 { + yyl234 := r.ReadMapStart() + if yyl234 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl234, d) + } + } else if yyct234 == codecSelferValueTypeArray1234 { + yyl234 := r.ReadArrayStart() + if yyl234 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl234, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys235Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys235Slc + var yyhl235 bool = l >= 0 + for yyj235 := 0; ; yyj235++ { + if yyhl235 { + if yyj235 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys235Slc = r.DecodeBytes(yys235Slc, true, true) + yys235 := string(yys235Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys235 { + 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_api.ObjectMeta{} + } else { + yyv238 := &x.ObjectMeta + yyv238.CodecDecodeSelf(d) + } + case "data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv239 := &x.Data + yym240 := z.DecBinary() + _ = yym240 + if false { + } else { + *yyv239 = r.DecodeBytes(*(*[]byte)(yyv239), false, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys235) + } // end switch yys235 + } // end for yyj235 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ThirdPartyResourceData) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj241 int + var yyb241 bool + var yyhl241 bool = l >= 0 + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l + } else { + yyb241 = r.CheckBreak() + } + if yyb241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l + } else { + yyb241 = r.CheckBreak() + } + if yyb241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l + } else { + yyb241 = r.CheckBreak() + } + if yyb241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv244 := &x.ObjectMeta + yyv244.CodecDecodeSelf(d) + } + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l + } else { + yyb241 = r.CheckBreak() + } + if yyb241 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + yyv245 := &x.Data + yym246 := z.DecBinary() + _ = yym246 + if false { + } else { + *yyv245 = r.DecodeBytes(*(*[]byte)(yyv245), false, false) + } + } + for { + yyj241++ + if yyhl241 { + yyb241 = yyj241 > l + } else { + yyb241 = r.CheckBreak() + } + if yyb241 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj241-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym247 := z.EncBinary() + _ = yym247 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep248 := !z.EncBinary() + yy2arr248 := z.EncBasicHandle().StructToArray + var yyq248 [5]bool + _, _, _ = yysep248, yyq248, yy2arr248 + const yyr248 bool = false + yyq248[0] = x.Kind != "" + yyq248[1] = x.APIVersion != "" + yyq248[2] = true + yyq248[3] = true + yyq248[4] = true + var yynn248 int + if yyr248 || yy2arr248 { + r.EncodeArrayStart(5) + } else { + yynn248 = 0 + for _, b := range yyq248 { + if b { + yynn248++ + } + } + r.EncodeMapStart(yynn248) + yynn248 = 0 + } + if yyr248 || yy2arr248 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq248[0] { + yym250 := z.EncBinary() + _ = yym250 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq248[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym251 := z.EncBinary() + _ = yym251 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr248 || yy2arr248 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq248[1] { + yym253 := z.EncBinary() + _ = yym253 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq248[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym254 := z.EncBinary() + _ = yym254 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr248 || yy2arr248 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq248[2] { + yy256 := &x.ObjectMeta + yy256.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq248[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy257 := &x.ObjectMeta + yy257.CodecEncodeSelf(e) + } + } + if yyr248 || yy2arr248 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq248[3] { + yy259 := &x.Spec + yy259.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq248[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy260 := &x.Spec + yy260.CodecEncodeSelf(e) + } + } + if yyr248 || yy2arr248 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq248[4] { + yy262 := &x.Status + yy262.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq248[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy263 := &x.Status + yy263.CodecEncodeSelf(e) + } + } + if yyr248 || yy2arr248 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym264 := z.DecBinary() + _ = yym264 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct265 := r.ContainerType() + if yyct265 == codecSelferValueTypeMap1234 { + yyl265 := r.ReadMapStart() + if yyl265 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl265, d) + } + } else if yyct265 == codecSelferValueTypeArray1234 { + yyl265 := r.ReadArrayStart() + if yyl265 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl265, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys266Slc = r.DecodeBytes(yys266Slc, true, true) + yys266 := string(yys266Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys266 { + 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_api.ObjectMeta{} + } else { + yyv269 := &x.ObjectMeta + yyv269.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = DeploymentSpec{} + } else { + yyv270 := &x.Spec + yyv270.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = DeploymentStatus{} + } else { + yyv271 := &x.Status + yyv271.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys266) + } // end switch yys266 + } // end for yyj266 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj272 int + var yyb272 bool + var yyhl272 bool = l >= 0 + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l + } else { + yyb272 = r.CheckBreak() + } + if yyb272 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l + } else { + yyb272 = r.CheckBreak() + } + if yyb272 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l + } else { + yyb272 = r.CheckBreak() + } + if yyb272 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv275 := &x.ObjectMeta + yyv275.CodecDecodeSelf(d) + } + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l + } else { + yyb272 = r.CheckBreak() + } + if yyb272 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = DeploymentSpec{} + } else { + yyv276 := &x.Spec + yyv276.CodecDecodeSelf(d) + } + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l + } else { + yyb272 = r.CheckBreak() + } + if yyb272 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = DeploymentStatus{} + } else { + yyv277 := &x.Status + yyv277.CodecDecodeSelf(d) + } + for { + yyj272++ + if yyhl272 { + yyb272 = yyj272 > l + } else { + yyb272 = r.CheckBreak() + } + if yyb272 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj272-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym278 := z.EncBinary() + _ = yym278 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep279 := !z.EncBinary() + yy2arr279 := z.EncBasicHandle().StructToArray + var yyq279 [8]bool + _, _, _ = yysep279, yyq279, yy2arr279 + const yyr279 bool = false + yyq279[0] = x.Replicas != 0 + yyq279[1] = x.Selector != nil + yyq279[3] = true + yyq279[4] = x.MinReadySeconds != 0 + yyq279[5] = x.RevisionHistoryLimit != nil + yyq279[6] = x.Paused != false + yyq279[7] = x.RollbackTo != nil + var yynn279 int + if yyr279 || yy2arr279 { + r.EncodeArrayStart(8) + } else { + yynn279 = 1 + for _, b := range yyq279 { + if b { + yynn279++ + } + } + r.EncodeMapStart(yynn279) + yynn279 = 0 + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[0] { + yym281 := z.EncBinary() + _ = yym281 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq279[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym282 := z.EncBinary() + _ = yym282 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym284 := z.EncBinary() + _ = yym284 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq279[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym285 := z.EncBinary() + _ = yym285 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy287 := &x.Template + yy287.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy288 := &x.Template + yy288.CodecEncodeSelf(e) + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[3] { + yy290 := &x.Strategy + yy290.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq279[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("strategy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy291 := &x.Strategy + yy291.CodecEncodeSelf(e) + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[4] { + yym293 := z.EncBinary() + _ = yym293 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq279[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym294 := z.EncBinary() + _ = yym294 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[5] { + if x.RevisionHistoryLimit == nil { + r.EncodeNil() + } else { + yy296 := *x.RevisionHistoryLimit + yym297 := z.EncBinary() + _ = yym297 + if false { + } else { + r.EncodeInt(int64(yy296)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq279[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("revisionHistoryLimit")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RevisionHistoryLimit == nil { + r.EncodeNil() + } else { + yy298 := *x.RevisionHistoryLimit + yym299 := z.EncBinary() + _ = yym299 + if false { + } else { + r.EncodeInt(int64(yy298)) + } + } + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[6] { + yym301 := z.EncBinary() + _ = yym301 + if false { + } else { + r.EncodeBool(bool(x.Paused)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq279[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("paused")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym302 := z.EncBinary() + _ = yym302 + if false { + } else { + r.EncodeBool(bool(x.Paused)) + } + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[7] { + if x.RollbackTo == nil { + r.EncodeNil() + } else { + x.RollbackTo.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq279[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RollbackTo == nil { + r.EncodeNil() + } else { + x.RollbackTo.CodecEncodeSelf(e) + } + } + } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym304 := z.DecBinary() + _ = yym304 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct305 := r.ContainerType() + if yyct305 == codecSelferValueTypeMap1234 { + yyl305 := r.ReadMapStart() + if yyl305 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl305, d) + } + } else if yyct305 == codecSelferValueTypeArray1234 { + yyl305 := r.ReadArrayStart() + if yyl305 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl305, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys306Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys306Slc + var yyhl306 bool = l >= 0 + for yyj306 := 0; ; yyj306++ { + if yyhl306 { + if yyj306 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys306Slc = r.DecodeBytes(yys306Slc, true, true) + yys306 := string(yys306Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys306 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym309 := z.DecBinary() + _ = yym309 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + case "template": + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv310 := &x.Template + yyv310.CodecDecodeSelf(d) + } + case "strategy": + if r.TryDecodeAsNil() { + x.Strategy = DeploymentStrategy{} + } else { + yyv311 := &x.Strategy + yyv311.CodecDecodeSelf(d) + } + case "minReadySeconds": + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } + case "revisionHistoryLimit": + if r.TryDecodeAsNil() { + if x.RevisionHistoryLimit != nil { + x.RevisionHistoryLimit = nil + } + } else { + if x.RevisionHistoryLimit == nil { + x.RevisionHistoryLimit = new(int32) + } + yym314 := z.DecBinary() + _ = yym314 + if false { + } else { + *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) + } + } + case "paused": + if r.TryDecodeAsNil() { + x.Paused = false + } else { + x.Paused = bool(r.DecodeBool()) + } + case "rollbackTo": + if r.TryDecodeAsNil() { + if x.RollbackTo != nil { + x.RollbackTo = nil + } + } else { + if x.RollbackTo == nil { + x.RollbackTo = new(RollbackConfig) + } + x.RollbackTo.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys306) + } // end switch yys306 + } // end for yyj306 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym320 := z.DecBinary() + _ = yym320 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv321 := &x.Template + yyv321.CodecDecodeSelf(d) + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Strategy = DeploymentStrategy{} + } else { + yyv322 := &x.Strategy + yyv322.CodecDecodeSelf(d) + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RevisionHistoryLimit != nil { + x.RevisionHistoryLimit = nil + } + } else { + if x.RevisionHistoryLimit == nil { + x.RevisionHistoryLimit = new(int32) + } + yym325 := z.DecBinary() + _ = yym325 + if false { + } else { + *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) + } + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Paused = false + } else { + x.Paused = bool(r.DecodeBool()) + } + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RollbackTo != nil { + x.RollbackTo = nil + } + } else { + if x.RollbackTo == nil { + x.RollbackTo = new(RollbackConfig) + } + x.RollbackTo.CodecDecodeSelf(d) + } + for { + yyj317++ + if yyhl317 { + yyb317 = yyj317 > l + } else { + yyb317 = r.CheckBreak() + } + if yyb317 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj317-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym328 := z.EncBinary() + _ = yym328 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep329 := !z.EncBinary() + yy2arr329 := z.EncBasicHandle().StructToArray + var yyq329 [5]bool + _, _, _ = yysep329, yyq329, yy2arr329 + const yyr329 bool = false + yyq329[0] = x.Kind != "" + yyq329[1] = x.APIVersion != "" + yyq329[3] = len(x.UpdatedAnnotations) != 0 + var yynn329 int + if yyr329 || yy2arr329 { + r.EncodeArrayStart(5) + } else { + yynn329 = 2 + for _, b := range yyq329 { + if b { + yynn329++ + } + } + r.EncodeMapStart(yynn329) + yynn329 = 0 + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq329[0] { + yym331 := z.EncBinary() + _ = yym331 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq329[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym332 := z.EncBinary() + _ = yym332 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq329[1] { + yym334 := z.EncBinary() + _ = yym334 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq329[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym335 := z.EncBinary() + _ = yym335 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym337 := z.EncBinary() + _ = yym337 + 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) + yym338 := z.EncBinary() + _ = yym338 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq329[3] { + if x.UpdatedAnnotations == nil { + r.EncodeNil() + } else { + yym340 := z.EncBinary() + _ = yym340 + if false { + } else { + z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq329[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("updatedAnnotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.UpdatedAnnotations == nil { + r.EncodeNil() + } else { + yym341 := z.EncBinary() + _ = yym341 + if false { + } else { + z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) + } + } + } + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy343 := &x.RollbackTo + yy343.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy344 := &x.RollbackTo + yy344.CodecEncodeSelf(e) + } + if yyr329 || yy2arr329 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym345 := z.DecBinary() + _ = yym345 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct346 := r.ContainerType() + if yyct346 == codecSelferValueTypeMap1234 { + yyl346 := r.ReadMapStart() + if yyl346 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl346, d) + } + } else if yyct346 == codecSelferValueTypeArray1234 { + yyl346 := r.ReadArrayStart() + if yyl346 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl346, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys347Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys347Slc + var yyhl347 bool = l >= 0 + for yyj347 := 0; ; yyj347++ { + if yyhl347 { + if yyj347 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys347Slc = r.DecodeBytes(yys347Slc, true, true) + yys347 := string(yys347Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys347 { + 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 "updatedAnnotations": + if r.TryDecodeAsNil() { + x.UpdatedAnnotations = nil + } else { + yyv351 := &x.UpdatedAnnotations + yym352 := z.DecBinary() + _ = yym352 + if false { + } else { + z.F.DecMapStringStringX(yyv351, false, d) + } + } + case "rollbackTo": + if r.TryDecodeAsNil() { + x.RollbackTo = RollbackConfig{} + } else { + yyv353 := &x.RollbackTo + yyv353.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys347) + } // end switch yys347 + } // end for yyj347 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj354 int + var yyb354 bool + var yyhl354 bool = l >= 0 + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l + } else { + yyb354 = r.CheckBreak() + } + if yyb354 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l + } else { + yyb354 = r.CheckBreak() + } + if yyb354 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l + } else { + yyb354 = r.CheckBreak() + } + if yyb354 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l + } else { + yyb354 = r.CheckBreak() + } + if yyb354 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UpdatedAnnotations = nil + } else { + yyv358 := &x.UpdatedAnnotations + yym359 := z.DecBinary() + _ = yym359 + if false { + } else { + z.F.DecMapStringStringX(yyv358, false, d) + } + } + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l + } else { + yyb354 = r.CheckBreak() + } + if yyb354 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RollbackTo = RollbackConfig{} + } else { + yyv360 := &x.RollbackTo + yyv360.CodecDecodeSelf(d) + } + for { + yyj354++ + if yyhl354 { + yyb354 = yyj354 > l + } else { + yyb354 = r.CheckBreak() + } + if yyb354 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj354-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym361 := z.EncBinary() + _ = yym361 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep362 := !z.EncBinary() + yy2arr362 := z.EncBasicHandle().StructToArray + var yyq362 [1]bool + _, _, _ = yysep362, yyq362, yy2arr362 + const yyr362 bool = false + yyq362[0] = x.Revision != 0 + var yynn362 int + if yyr362 || yy2arr362 { + r.EncodeArrayStart(1) + } else { + yynn362 = 0 + for _, b := range yyq362 { + if b { + yynn362++ + } + } + r.EncodeMapStart(yynn362) + yynn362 = 0 + } + if yyr362 || yy2arr362 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq362[0] { + yym364 := z.EncBinary() + _ = yym364 + if false { + } else { + r.EncodeInt(int64(x.Revision)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq362[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("revision")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym365 := z.EncBinary() + _ = yym365 + if false { + } else { + r.EncodeInt(int64(x.Revision)) + } + } + } + if yyr362 || yy2arr362 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym366 := z.DecBinary() + _ = yym366 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct367 := r.ContainerType() + if yyct367 == codecSelferValueTypeMap1234 { + yyl367 := r.ReadMapStart() + if yyl367 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl367, d) + } + } else if yyct367 == codecSelferValueTypeArray1234 { + yyl367 := r.ReadArrayStart() + if yyl367 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl367, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *RollbackConfig) 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys368Slc = r.DecodeBytes(yys368Slc, true, true) + yys368 := string(yys368Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys368 { + case "revision": + if r.TryDecodeAsNil() { + x.Revision = 0 + } else { + x.Revision = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys368) + } // end switch yys368 + } // end for yyj368 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj370 int + var yyb370 bool + var yyhl370 bool = l >= 0 + yyj370++ + if yyhl370 { + yyb370 = yyj370 > l + } else { + yyb370 = r.CheckBreak() + } + if yyb370 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Revision = 0 + } else { + x.Revision = int64(r.DecodeInt(64)) + } + for { + yyj370++ + if yyhl370 { + yyb370 = yyj370 > l + } else { + yyb370 = r.CheckBreak() + } + if yyb370 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj370-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym372 := z.EncBinary() + _ = yym372 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep373 := !z.EncBinary() + yy2arr373 := z.EncBasicHandle().StructToArray + var yyq373 [2]bool + _, _, _ = yysep373, yyq373, yy2arr373 + const yyr373 bool = false + yyq373[0] = x.Type != "" + yyq373[1] = x.RollingUpdate != nil + var yynn373 int + if yyr373 || yy2arr373 { + r.EncodeArrayStart(2) + } else { + yynn373 = 0 + for _, b := range yyq373 { + if b { + yynn373++ + } + } + r.EncodeMapStart(yynn373) + yynn373 = 0 + } + if yyr373 || yy2arr373 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq373[0] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq373[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr373 || yy2arr373 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq373[1] { + if x.RollingUpdate == nil { + r.EncodeNil() + } else { + x.RollingUpdate.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq373[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RollingUpdate == nil { + r.EncodeNil() + } else { + x.RollingUpdate.CodecEncodeSelf(e) + } + } + } + if yyr373 || yy2arr373 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym376 := z.DecBinary() + _ = yym376 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct377 := r.ContainerType() + if yyct377 == codecSelferValueTypeMap1234 { + yyl377 := r.ReadMapStart() + if yyl377 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl377, d) + } + } else if yyct377 == codecSelferValueTypeArray1234 { + yyl377 := r.ReadArrayStart() + if yyl377 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl377, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys378Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys378Slc + var yyhl378 bool = l >= 0 + for yyj378 := 0; ; yyj378++ { + if yyhl378 { + if yyj378 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys378Slc = r.DecodeBytes(yys378Slc, true, true) + yys378 := string(yys378Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys378 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = DeploymentStrategyType(r.DecodeString()) + } + case "rollingUpdate": + if r.TryDecodeAsNil() { + if x.RollingUpdate != nil { + x.RollingUpdate = nil + } + } else { + if x.RollingUpdate == nil { + x.RollingUpdate = new(RollingUpdateDeployment) + } + x.RollingUpdate.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys378) + } // end switch yys378 + } // end for yyj378 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj381 int + var yyb381 bool + var yyhl381 bool = l >= 0 + yyj381++ + if yyhl381 { + yyb381 = yyj381 > l + } else { + yyb381 = r.CheckBreak() + } + if yyb381 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = DeploymentStrategyType(r.DecodeString()) + } + yyj381++ + if yyhl381 { + yyb381 = yyj381 > l + } else { + yyb381 = r.CheckBreak() + } + if yyb381 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RollingUpdate != nil { + x.RollingUpdate = nil + } + } else { + if x.RollingUpdate == nil { + x.RollingUpdate = new(RollingUpdateDeployment) + } + x.RollingUpdate.CodecDecodeSelf(d) + } + for { + yyj381++ + if yyhl381 { + yyb381 = yyj381 > l + } else { + yyb381 = r.CheckBreak() + } + if yyb381 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj381-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym384 := z.EncBinary() + _ = yym384 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym385 := z.DecBinary() + _ = yym385 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym386 := z.EncBinary() + _ = yym386 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep387 := !z.EncBinary() + yy2arr387 := z.EncBasicHandle().StructToArray + var yyq387 [2]bool + _, _, _ = yysep387, yyq387, yy2arr387 + const yyr387 bool = false + yyq387[0] = true + yyq387[1] = true + var yynn387 int + if yyr387 || yy2arr387 { + r.EncodeArrayStart(2) + } else { + yynn387 = 0 + for _, b := range yyq387 { + if b { + yynn387++ + } + } + r.EncodeMapStart(yynn387) + yynn387 = 0 + } + if yyr387 || yy2arr387 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq387[0] { + yy389 := &x.MaxUnavailable + yym390 := z.EncBinary() + _ = yym390 + if false { + } else if z.HasExtensions() && z.EncExt(yy389) { + } else if !yym390 && z.IsJSONHandle() { + z.EncJSONMarshal(yy389) + } else { + z.EncFallback(yy389) + } + } else { + r.EncodeNil() + } + } else { + if yyq387[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy391 := &x.MaxUnavailable + yym392 := z.EncBinary() + _ = yym392 + if false { + } else if z.HasExtensions() && z.EncExt(yy391) { + } else if !yym392 && z.IsJSONHandle() { + z.EncJSONMarshal(yy391) + } else { + z.EncFallback(yy391) + } + } + } + if yyr387 || yy2arr387 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq387[1] { + yy394 := &x.MaxSurge + yym395 := z.EncBinary() + _ = yym395 + if false { + } else if z.HasExtensions() && z.EncExt(yy394) { + } else if !yym395 && z.IsJSONHandle() { + z.EncJSONMarshal(yy394) + } else { + z.EncFallback(yy394) + } + } else { + r.EncodeNil() + } + } else { + if yyq387[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxSurge")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy396 := &x.MaxSurge + yym397 := z.EncBinary() + _ = yym397 + if false { + } else if z.HasExtensions() && z.EncExt(yy396) { + } else if !yym397 && z.IsJSONHandle() { + z.EncJSONMarshal(yy396) + } else { + z.EncFallback(yy396) + } + } + } + if yyr387 || yy2arr387 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym398 := z.DecBinary() + _ = yym398 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct399 := r.ContainerType() + if yyct399 == codecSelferValueTypeMap1234 { + yyl399 := r.ReadMapStart() + if yyl399 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl399, d) + } + } else if yyct399 == codecSelferValueTypeArray1234 { + yyl399 := r.ReadArrayStart() + if yyl399 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl399, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys400Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys400Slc + var yyhl400 bool = l >= 0 + for yyj400 := 0; ; yyj400++ { + if yyhl400 { + if yyj400 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys400Slc = r.DecodeBytes(yys400Slc, true, true) + yys400 := string(yys400Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys400 { + case "maxUnavailable": + if r.TryDecodeAsNil() { + x.MaxUnavailable = pkg5_intstr.IntOrString{} + } else { + yyv401 := &x.MaxUnavailable + yym402 := z.DecBinary() + _ = yym402 + if false { + } else if z.HasExtensions() && z.DecExt(yyv401) { + } else if !yym402 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv401) + } else { + z.DecFallback(yyv401, false) + } + } + case "maxSurge": + if r.TryDecodeAsNil() { + x.MaxSurge = pkg5_intstr.IntOrString{} + } else { + yyv403 := &x.MaxSurge + yym404 := z.DecBinary() + _ = yym404 + if false { + } else if z.HasExtensions() && z.DecExt(yyv403) { + } else if !yym404 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv403) + } else { + z.DecFallback(yyv403, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys400) + } // end switch yys400 + } // end for yyj400 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj405 int + var yyb405 bool + var yyhl405 bool = l >= 0 + yyj405++ + if yyhl405 { + yyb405 = yyj405 > l + } else { + yyb405 = r.CheckBreak() + } + if yyb405 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxUnavailable = pkg5_intstr.IntOrString{} + } else { + yyv406 := &x.MaxUnavailable + yym407 := z.DecBinary() + _ = yym407 + if false { + } else if z.HasExtensions() && z.DecExt(yyv406) { + } else if !yym407 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv406) + } else { + z.DecFallback(yyv406, false) + } + } + yyj405++ + if yyhl405 { + yyb405 = yyj405 > l + } else { + yyb405 = r.CheckBreak() + } + if yyb405 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxSurge = pkg5_intstr.IntOrString{} + } else { + yyv408 := &x.MaxSurge + yym409 := z.DecBinary() + _ = yym409 + if false { + } else if z.HasExtensions() && z.DecExt(yyv408) { + } else if !yym409 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv408) + } else { + z.DecFallback(yyv408, false) + } + } + for { + yyj405++ + if yyhl405 { + yyb405 = yyj405 > l + } else { + yyb405 = r.CheckBreak() + } + if yyb405 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj405-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym410 := z.EncBinary() + _ = yym410 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep411 := !z.EncBinary() + yy2arr411 := z.EncBasicHandle().StructToArray + var yyq411 [5]bool + _, _, _ = yysep411, yyq411, yy2arr411 + const yyr411 bool = false + yyq411[0] = x.ObservedGeneration != 0 + yyq411[1] = x.Replicas != 0 + yyq411[2] = x.UpdatedReplicas != 0 + yyq411[3] = x.AvailableReplicas != 0 + yyq411[4] = x.UnavailableReplicas != 0 + var yynn411 int + if yyr411 || yy2arr411 { + r.EncodeArrayStart(5) + } else { + yynn411 = 0 + for _, b := range yyq411 { + if b { + yynn411++ + } + } + r.EncodeMapStart(yynn411) + yynn411 = 0 + } + if yyr411 || yy2arr411 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq411[0] { + yym413 := z.EncBinary() + _ = yym413 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq411[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym414 := z.EncBinary() + _ = yym414 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } + } + if yyr411 || yy2arr411 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq411[1] { + yym416 := z.EncBinary() + _ = yym416 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq411[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym417 := z.EncBinary() + _ = yym417 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + } + if yyr411 || yy2arr411 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq411[2] { + yym419 := z.EncBinary() + _ = yym419 + if false { + } else { + r.EncodeInt(int64(x.UpdatedReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq411[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym420 := z.EncBinary() + _ = yym420 + if false { + } else { + r.EncodeInt(int64(x.UpdatedReplicas)) + } + } + } + if yyr411 || yy2arr411 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq411[3] { + yym422 := z.EncBinary() + _ = yym422 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq411[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym423 := z.EncBinary() + _ = yym423 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr411 || yy2arr411 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq411[4] { + yym425 := z.EncBinary() + _ = yym425 + if false { + } else { + r.EncodeInt(int64(x.UnavailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq411[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym426 := z.EncBinary() + _ = yym426 + if false { + } else { + r.EncodeInt(int64(x.UnavailableReplicas)) + } + } + } + if yyr411 || yy2arr411 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym427 := z.DecBinary() + _ = yym427 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct428 := r.ContainerType() + if yyct428 == codecSelferValueTypeMap1234 { + yyl428 := r.ReadMapStart() + if yyl428 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl428, d) + } + } else if yyct428 == codecSelferValueTypeArray1234 { + yyl428 := r.ReadArrayStart() + if yyl428 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl428, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys429Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys429Slc + var yyhl429 bool = l >= 0 + for yyj429 := 0; ; yyj429++ { + if yyhl429 { + if yyj429 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys429Slc = r.DecodeBytes(yys429Slc, true, true) + yys429 := string(yys429Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys429 { + case "observedGeneration": + if r.TryDecodeAsNil() { + x.ObservedGeneration = 0 + } else { + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + case "updatedReplicas": + if r.TryDecodeAsNil() { + x.UpdatedReplicas = 0 + } else { + x.UpdatedReplicas = int32(r.DecodeInt(32)) + } + case "availableReplicas": + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } + case "unavailableReplicas": + if r.TryDecodeAsNil() { + x.UnavailableReplicas = 0 + } else { + x.UnavailableReplicas = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys429) + } // end switch yys429 + } // end for yyj429 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj435 int + var yyb435 bool + var yyhl435 bool = l >= 0 + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l + } else { + yyb435 = r.CheckBreak() + } + if yyb435 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObservedGeneration = 0 + } else { + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l + } else { + yyb435 = r.CheckBreak() + } + if yyb435 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l + } else { + yyb435 = r.CheckBreak() + } + if yyb435 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UpdatedReplicas = 0 + } else { + x.UpdatedReplicas = int32(r.DecodeInt(32)) + } + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l + } else { + yyb435 = r.CheckBreak() + } + if yyb435 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l + } else { + yyb435 = r.CheckBreak() + } + if yyb435 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UnavailableReplicas = 0 + } else { + x.UnavailableReplicas = int32(r.DecodeInt(32)) + } + for { + yyj435++ + if yyhl435 { + yyb435 = yyj435 > l + } else { + yyb435 = r.CheckBreak() + } + if yyb435 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj435-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym441 := z.EncBinary() + _ = yym441 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + 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 { + yynn442 = 1 + for _, b := range yyq442 { + if b { + yynn442++ + } + } + r.EncodeMapStart(yynn442) + yynn442 = 0 + } + if yyr442 || yy2arr442 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq442[0] { + yym444 := z.EncBinary() + _ = yym444 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + 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.APIVersion)) + } + } + } + if yyr442 || yy2arr442 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq442[2] { + yy450 := &x.ListMeta + yym451 := z.EncBinary() + _ = yym451 + if false { + } else if z.HasExtensions() && z.EncExt(yy450) { + } else { + z.EncFallback(yy450) + } + } else { + r.EncodeNil() + } + } else { + if yyq442[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy452 := &x.ListMeta + yym453 := z.EncBinary() + _ = yym453 + if false { + } else if z.HasExtensions() && z.EncExt(yy452) { + } else { + z.EncFallback(yy452) + } + } + } + if yyr442 || yy2arr442 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym455 := z.EncBinary() + _ = yym455 + if false { + } else { + h.encSliceDeployment(([]Deployment)(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 { + yym456 := z.EncBinary() + _ = yym456 + if false { + } else { + h.encSliceDeployment(([]Deployment)(x.Items), e) + } + } + } + if yyr442 || yy2arr442 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeploymentList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym457 := z.DecBinary() + _ = yym457 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct458 := r.ContainerType() + if yyct458 == codecSelferValueTypeMap1234 { + yyl458 := r.ReadMapStart() + if yyl458 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl458, d) + } + } else if yyct458 == codecSelferValueTypeArray1234 { + yyl458 := r.ReadArrayStart() + if yyl458 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl458, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys459Slc = r.DecodeBytes(yys459Slc, true, true) + yys459 := string(yys459Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys459 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv462 := &x.ListMeta + yym463 := z.DecBinary() + _ = yym463 + if false { + } else if z.HasExtensions() && z.DecExt(yyv462) { + } else { + z.DecFallback(yyv462, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv464 := &x.Items + yym465 := z.DecBinary() + _ = yym465 + if false { + } else { + h.decSliceDeployment((*[]Deployment)(yyv464), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys459) + } // end switch yys459 + } // end for yyj459 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj466 int + var yyb466 bool + var yyhl466 bool = l >= 0 + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l + } else { + yyb466 = r.CheckBreak() + } + if yyb466 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l + } else { + yyb466 = r.CheckBreak() + } + if yyb466 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l + } else { + yyb466 = r.CheckBreak() + } + if yyb466 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv469 := &x.ListMeta + yym470 := z.DecBinary() + _ = yym470 + if false { + } else if z.HasExtensions() && z.DecExt(yyv469) { + } else { + z.DecFallback(yyv469, false) + } + } + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l + } else { + yyb466 = r.CheckBreak() + } + if yyb466 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv471 := &x.Items + yym472 := z.DecBinary() + _ = yym472 + if false { + } else { + h.decSliceDeployment((*[]Deployment)(yyv471), d) + } + } + for { + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l + } else { + yyb466 = r.CheckBreak() + } + if yyb466 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj466-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DaemonSetSpec) 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 [2]bool + _, _, _ = yysep474, yyq474, yy2arr474 + const yyr474 bool = false + yyq474[0] = x.Selector != nil + var yynn474 int + if yyr474 || yy2arr474 { + r.EncodeArrayStart(2) + } else { + yynn474 = 1 + for _, b := range yyq474 { + if b { + yynn474++ + } + } + r.EncodeMapStart(yynn474) + yynn474 = 0 + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[0] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym476 := z.EncBinary() + _ = yym476 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq474[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym477 := z.EncBinary() + _ = yym477 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy479 := &x.Template + yy479.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy480 := &x.Template + yy480.CodecEncodeSelf(e) + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym481 := z.DecBinary() + _ = yym481 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct482 := r.ContainerType() + if yyct482 == codecSelferValueTypeMap1234 { + yyl482 := r.ReadMapStart() + if yyl482 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl482, d) + } + } else if yyct482 == codecSelferValueTypeArray1234 { + yyl482 := r.ReadArrayStart() + if yyl482 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl482, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys483Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys483Slc + var yyhl483 bool = l >= 0 + for yyj483 := 0; ; yyj483++ { + if yyhl483 { + if yyj483 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys483Slc = r.DecodeBytes(yys483Slc, true, true) + yys483 := string(yys483Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys483 { + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym485 := z.DecBinary() + _ = yym485 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + case "template": + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv486 := &x.Template + yyv486.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys483) + } // end switch yys483 + } // end for yyj483 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj487 int + var yyb487 bool + var yyhl487 bool = l >= 0 + yyj487++ + if yyhl487 { + yyb487 = yyj487 > l + } else { + yyb487 = r.CheckBreak() + } + if yyb487 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym489 := z.DecBinary() + _ = yym489 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + yyj487++ + if yyhl487 { + yyb487 = yyj487 > l + } else { + yyb487 = r.CheckBreak() + } + if yyb487 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv490 := &x.Template + yyv490.CodecDecodeSelf(d) + } + for { + yyj487++ + if yyhl487 { + yyb487 = yyj487 > l + } else { + yyb487 = r.CheckBreak() + } + if yyb487 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj487-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym491 := z.EncBinary() + _ = yym491 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep492 := !z.EncBinary() + yy2arr492 := z.EncBasicHandle().StructToArray + var yyq492 [3]bool + _, _, _ = yysep492, yyq492, yy2arr492 + const yyr492 bool = false + var yynn492 int + if yyr492 || yy2arr492 { + r.EncodeArrayStart(3) + } else { + yynn492 = 3 + for _, b := range yyq492 { + if b { + yynn492++ + } + } + r.EncodeMapStart(yynn492) + yynn492 = 0 + } + if yyr492 || yy2arr492 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym494 := z.EncBinary() + _ = yym494 + if false { + } else { + r.EncodeInt(int64(x.CurrentNumberScheduled)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym495 := z.EncBinary() + _ = yym495 + if false { + } else { + r.EncodeInt(int64(x.CurrentNumberScheduled)) + } + } + if yyr492 || yy2arr492 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym497 := z.EncBinary() + _ = yym497 + if false { + } else { + r.EncodeInt(int64(x.NumberMisscheduled)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym498 := z.EncBinary() + _ = yym498 + if false { + } else { + r.EncodeInt(int64(x.NumberMisscheduled)) + } + } + if yyr492 || yy2arr492 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym500 := z.EncBinary() + _ = yym500 + if false { + } else { + r.EncodeInt(int64(x.DesiredNumberScheduled)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym501 := z.EncBinary() + _ = yym501 + if false { + } else { + r.EncodeInt(int64(x.DesiredNumberScheduled)) + } + } + if yyr492 || yy2arr492 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym502 := z.DecBinary() + _ = yym502 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct503 := r.ContainerType() + if yyct503 == codecSelferValueTypeMap1234 { + yyl503 := r.ReadMapStart() + if yyl503 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl503, d) + } + } else if yyct503 == codecSelferValueTypeArray1234 { + yyl503 := r.ReadArrayStart() + if yyl503 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl503, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys504Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys504Slc + var yyhl504 bool = l >= 0 + for yyj504 := 0; ; yyj504++ { + if yyhl504 { + if yyj504 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys504Slc = r.DecodeBytes(yys504Slc, true, true) + yys504 := string(yys504Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys504 { + case "currentNumberScheduled": + if r.TryDecodeAsNil() { + x.CurrentNumberScheduled = 0 + } else { + x.CurrentNumberScheduled = int32(r.DecodeInt(32)) + } + case "numberMisscheduled": + if r.TryDecodeAsNil() { + x.NumberMisscheduled = 0 + } else { + x.NumberMisscheduled = int32(r.DecodeInt(32)) + } + case "desiredNumberScheduled": + if r.TryDecodeAsNil() { + x.DesiredNumberScheduled = 0 + } else { + x.DesiredNumberScheduled = int32(r.DecodeInt(32)) + } + default: + z.DecStructFieldNotFound(-1, yys504) + } // end switch yys504 + } // end for yyj504 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj508 int + var yyb508 bool + var yyhl508 bool = l >= 0 + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l + } else { + yyb508 = r.CheckBreak() + } + if yyb508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CurrentNumberScheduled = 0 + } else { + x.CurrentNumberScheduled = int32(r.DecodeInt(32)) + } + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l + } else { + yyb508 = r.CheckBreak() + } + if yyb508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NumberMisscheduled = 0 + } else { + x.NumberMisscheduled = int32(r.DecodeInt(32)) + } + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l + } else { + yyb508 = r.CheckBreak() + } + if yyb508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DesiredNumberScheduled = 0 + } else { + x.DesiredNumberScheduled = int32(r.DecodeInt(32)) + } + for { + yyj508++ + if yyhl508 { + yyb508 = yyj508 > l + } else { + yyb508 = r.CheckBreak() + } + if yyb508 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj508-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym512 := z.EncBinary() + _ = yym512 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep513 := !z.EncBinary() + yy2arr513 := z.EncBasicHandle().StructToArray + var yyq513 [5]bool + _, _, _ = yysep513, yyq513, yy2arr513 + const yyr513 bool = false + yyq513[0] = x.Kind != "" + yyq513[1] = x.APIVersion != "" + yyq513[2] = true + yyq513[3] = true + yyq513[4] = true + var yynn513 int + if yyr513 || yy2arr513 { + r.EncodeArrayStart(5) + } else { + yynn513 = 0 + for _, b := range yyq513 { + if b { + yynn513++ + } + } + r.EncodeMapStart(yynn513) + yynn513 = 0 + } + if yyr513 || yy2arr513 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq513[0] { + yym515 := z.EncBinary() + _ = yym515 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq513[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym516 := z.EncBinary() + _ = yym516 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr513 || yy2arr513 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq513[1] { + yym518 := z.EncBinary() + _ = yym518 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq513[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym519 := z.EncBinary() + _ = yym519 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr513 || yy2arr513 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq513[2] { + yy521 := &x.ObjectMeta + yy521.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq513[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy522 := &x.ObjectMeta + yy522.CodecEncodeSelf(e) + } + } + if yyr513 || yy2arr513 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq513[3] { + yy524 := &x.Spec + yy524.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq513[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy525 := &x.Spec + yy525.CodecEncodeSelf(e) + } + } + if yyr513 || yy2arr513 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq513[4] { + yy527 := &x.Status + yy527.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq513[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy528 := &x.Status + yy528.CodecEncodeSelf(e) + } + } + if yyr513 || yy2arr513 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym529 := z.DecBinary() + _ = yym529 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct530 := r.ContainerType() + if yyct530 == codecSelferValueTypeMap1234 { + yyl530 := r.ReadMapStart() + if yyl530 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl530, d) + } + } else if yyct530 == codecSelferValueTypeArray1234 { + yyl530 := r.ReadArrayStart() + if yyl530 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl530, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys531Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys531Slc + var yyhl531 bool = l >= 0 + for yyj531 := 0; ; yyj531++ { + if yyhl531 { + if yyj531 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys531Slc = r.DecodeBytes(yys531Slc, true, true) + yys531 := string(yys531Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys531 { + 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_api.ObjectMeta{} + } else { + yyv534 := &x.ObjectMeta + yyv534.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = DaemonSetSpec{} + } else { + yyv535 := &x.Spec + yyv535.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = DaemonSetStatus{} + } else { + yyv536 := &x.Status + yyv536.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys531) + } // end switch yys531 + } // end for yyj531 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj537 int + var yyb537 bool + var yyhl537 bool = l >= 0 + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l + } else { + yyb537 = r.CheckBreak() + } + if yyb537 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l + } else { + yyb537 = r.CheckBreak() + } + if yyb537 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l + } else { + yyb537 = r.CheckBreak() + } + if yyb537 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv540 := &x.ObjectMeta + yyv540.CodecDecodeSelf(d) + } + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l + } else { + yyb537 = r.CheckBreak() + } + if yyb537 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = DaemonSetSpec{} + } else { + yyv541 := &x.Spec + yyv541.CodecDecodeSelf(d) + } + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l + } else { + yyb537 = r.CheckBreak() + } + if yyb537 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = DaemonSetStatus{} + } else { + yyv542 := &x.Status + yyv542.CodecDecodeSelf(d) + } + for { + yyj537++ + if yyhl537 { + yyb537 = yyj537 > l + } else { + yyb537 = r.CheckBreak() + } + if yyb537 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj537-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym543 := z.EncBinary() + _ = yym543 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep544 := !z.EncBinary() + yy2arr544 := z.EncBasicHandle().StructToArray + var yyq544 [4]bool + _, _, _ = yysep544, yyq544, yy2arr544 + const yyr544 bool = false + yyq544[0] = x.Kind != "" + yyq544[1] = x.APIVersion != "" + yyq544[2] = true + var yynn544 int + if yyr544 || yy2arr544 { + r.EncodeArrayStart(4) + } else { + yynn544 = 1 + for _, b := range yyq544 { + if b { + yynn544++ + } + } + r.EncodeMapStart(yynn544) + yynn544 = 0 + } + if yyr544 || yy2arr544 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq544[0] { + yym546 := z.EncBinary() + _ = yym546 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq544[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym547 := z.EncBinary() + _ = yym547 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr544 || yy2arr544 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq544[1] { + yym549 := z.EncBinary() + _ = yym549 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq544[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym550 := z.EncBinary() + _ = yym550 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr544 || yy2arr544 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq544[2] { + yy552 := &x.ListMeta + yym553 := z.EncBinary() + _ = yym553 + if false { + } else if z.HasExtensions() && z.EncExt(yy552) { + } else { + z.EncFallback(yy552) + } + } else { + r.EncodeNil() + } + } else { + if yyq544[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy554 := &x.ListMeta + yym555 := z.EncBinary() + _ = yym555 + if false { + } else if z.HasExtensions() && z.EncExt(yy554) { + } else { + z.EncFallback(yy554) + } + } + } + if yyr544 || yy2arr544 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym557 := z.EncBinary() + _ = yym557 + if false { + } else { + h.encSliceDaemonSet(([]DaemonSet)(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 { + yym558 := z.EncBinary() + _ = yym558 + if false { + } else { + h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) + } + } + } + if yyr544 || yy2arr544 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DaemonSetList) 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 { + yyct560 := r.ContainerType() + if yyct560 == codecSelferValueTypeMap1234 { + yyl560 := r.ReadMapStart() + if yyl560 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl560, d) + } + } else if yyct560 == codecSelferValueTypeArray1234 { + yyl560 := r.ReadArrayStart() + if yyl560 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl560, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys561Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys561Slc + var yyhl561 bool = l >= 0 + for yyj561 := 0; ; yyj561++ { + if yyhl561 { + if yyj561 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys561Slc = r.DecodeBytes(yys561Slc, true, true) + yys561 := string(yys561Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys561 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv564 := &x.ListMeta + yym565 := z.DecBinary() + _ = yym565 + if false { + } else if z.HasExtensions() && z.DecExt(yyv564) { + } else { + z.DecFallback(yyv564, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv566 := &x.Items + yym567 := z.DecBinary() + _ = yym567 + if false { + } else { + h.decSliceDaemonSet((*[]DaemonSet)(yyv566), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys561) + } // end switch yys561 + } // end for yyj561 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj568 int + var yyb568 bool + var yyhl568 bool = l >= 0 + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l + } else { + yyb568 = r.CheckBreak() + } + if yyb568 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l + } else { + yyb568 = r.CheckBreak() + } + if yyb568 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l + } else { + yyb568 = r.CheckBreak() + } + if yyb568 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv571 := &x.ListMeta + yym572 := z.DecBinary() + _ = yym572 + if false { + } else if z.HasExtensions() && z.DecExt(yyv571) { + } else { + z.DecFallback(yyv571, false) + } + } + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l + } else { + yyb568 = r.CheckBreak() + } + if yyb568 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv573 := &x.Items + yym574 := z.DecBinary() + _ = yym574 + if false { + } else { + h.decSliceDaemonSet((*[]DaemonSet)(yyv573), d) + } + } + for { + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l + } else { + yyb568 = r.CheckBreak() + } + if yyb568 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj568-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym575 := z.EncBinary() + _ = yym575 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep576 := !z.EncBinary() + yy2arr576 := z.EncBasicHandle().StructToArray + var yyq576 [4]bool + _, _, _ = yysep576, yyq576, yy2arr576 + const yyr576 bool = false + yyq576[0] = x.Kind != "" + yyq576[1] = x.APIVersion != "" + yyq576[2] = true + var yynn576 int + if yyr576 || yy2arr576 { + r.EncodeArrayStart(4) + } else { + yynn576 = 1 + for _, b := range yyq576 { + if b { + yynn576++ + } + } + r.EncodeMapStart(yynn576) + yynn576 = 0 + } + if yyr576 || yy2arr576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq576[0] { + yym578 := z.EncBinary() + _ = yym578 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq576[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym579 := z.EncBinary() + _ = yym579 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr576 || yy2arr576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq576[1] { + yym581 := z.EncBinary() + _ = yym581 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq576[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym582 := z.EncBinary() + _ = yym582 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr576 || yy2arr576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq576[2] { + yy584 := &x.ListMeta + yym585 := z.EncBinary() + _ = yym585 + if false { + } else if z.HasExtensions() && z.EncExt(yy584) { + } else { + z.EncFallback(yy584) + } + } else { + r.EncodeNil() + } + } else { + if yyq576[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy586 := &x.ListMeta + yym587 := z.EncBinary() + _ = yym587 + if false { + } else if z.HasExtensions() && z.EncExt(yy586) { + } else { + z.EncFallback(yy586) + } + } + } + if yyr576 || yy2arr576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym589 := z.EncBinary() + _ = yym589 + if false { + } else { + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(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 { + yym590 := z.EncBinary() + _ = yym590 + if false { + } else { + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) + } + } + } + if yyr576 || yy2arr576 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ThirdPartyResourceDataList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym591 := z.DecBinary() + _ = yym591 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct592 := r.ContainerType() + if yyct592 == codecSelferValueTypeMap1234 { + yyl592 := r.ReadMapStart() + if yyl592 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl592, d) + } + } else if yyct592 == codecSelferValueTypeArray1234 { + yyl592 := r.ReadArrayStart() + if yyl592 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl592, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys593Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys593Slc + var yyhl593 bool = l >= 0 + for yyj593 := 0; ; yyj593++ { + if yyhl593 { + if yyj593 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys593Slc = r.DecodeBytes(yys593Slc, true, true) + yys593 := string(yys593Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys593 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv596 := &x.ListMeta + yym597 := z.DecBinary() + _ = yym597 + if false { + } else if z.HasExtensions() && z.DecExt(yyv596) { + } else { + z.DecFallback(yyv596, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv598 := &x.Items + yym599 := z.DecBinary() + _ = yym599 + if false { + } else { + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv598), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys593) + } // end switch yys593 + } // end for yyj593 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ThirdPartyResourceDataList) 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv603 := &x.ListMeta + yym604 := z.DecBinary() + _ = yym604 + if false { + } else if z.HasExtensions() && z.DecExt(yyv603) { + } else { + z.DecFallback(yyv603, false) + } + } + 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.Items = nil + } else { + yyv605 := &x.Items + yym606 := z.DecBinary() + _ = yym606 + if false { + } else { + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv605), d) + } + } + 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 *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym607 := z.EncBinary() + _ = yym607 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep608 := !z.EncBinary() + yy2arr608 := z.EncBasicHandle().StructToArray + var yyq608 [5]bool + _, _, _ = yysep608, yyq608, yy2arr608 + const yyr608 bool = false + yyq608[0] = x.Kind != "" + yyq608[1] = x.APIVersion != "" + yyq608[2] = true + yyq608[3] = true + yyq608[4] = true + var yynn608 int + if yyr608 || yy2arr608 { + r.EncodeArrayStart(5) + } else { + yynn608 = 0 + for _, b := range yyq608 { + if b { + yynn608++ + } + } + r.EncodeMapStart(yynn608) + yynn608 = 0 + } + if yyr608 || yy2arr608 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq608[0] { + yym610 := z.EncBinary() + _ = yym610 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq608[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym611 := z.EncBinary() + _ = yym611 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr608 || yy2arr608 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq608[1] { + yym613 := z.EncBinary() + _ = yym613 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq608[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym614 := z.EncBinary() + _ = yym614 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr608 || yy2arr608 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq608[2] { + yy616 := &x.ObjectMeta + yy616.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq608[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy617 := &x.ObjectMeta + yy617.CodecEncodeSelf(e) + } + } + if yyr608 || yy2arr608 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq608[3] { + yy619 := &x.Spec + yy619.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq608[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy620 := &x.Spec + yy620.CodecEncodeSelf(e) + } + } + if yyr608 || yy2arr608 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq608[4] { + yy622 := &x.Status + yy622.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq608[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy623 := &x.Status + yy623.CodecEncodeSelf(e) + } + } + if yyr608 || yy2arr608 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym624 := z.DecBinary() + _ = yym624 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct625 := r.ContainerType() + if yyct625 == codecSelferValueTypeMap1234 { + yyl625 := r.ReadMapStart() + if yyl625 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl625, d) + } + } else if yyct625 == codecSelferValueTypeArray1234 { + yyl625 := r.ReadArrayStart() + if yyl625 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl625, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys626Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys626Slc + var yyhl626 bool = l >= 0 + for yyj626 := 0; ; yyj626++ { + if yyhl626 { + if yyj626 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys626Slc = r.DecodeBytes(yys626Slc, true, true) + yys626 := string(yys626Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys626 { + 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_api.ObjectMeta{} + } else { + yyv629 := &x.ObjectMeta + yyv629.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = IngressSpec{} + } else { + yyv630 := &x.Spec + yyv630.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = IngressStatus{} + } else { + yyv631 := &x.Status + yyv631.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys626) + } // end switch yys626 + } // end for yyj626 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj632 int + var yyb632 bool + var yyhl632 bool = l >= 0 + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l + } else { + yyb632 = r.CheckBreak() + } + if yyb632 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l + } else { + yyb632 = r.CheckBreak() + } + if yyb632 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l + } else { + yyb632 = r.CheckBreak() + } + if yyb632 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv635 := &x.ObjectMeta + yyv635.CodecDecodeSelf(d) + } + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l + } else { + yyb632 = r.CheckBreak() + } + if yyb632 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = IngressSpec{} + } else { + yyv636 := &x.Spec + yyv636.CodecDecodeSelf(d) + } + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l + } else { + yyb632 = r.CheckBreak() + } + if yyb632 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = IngressStatus{} + } else { + yyv637 := &x.Status + yyv637.CodecDecodeSelf(d) + } + for { + yyj632++ + if yyhl632 { + yyb632 = yyj632 > l + } else { + yyb632 = r.CheckBreak() + } + if yyb632 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj632-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym638 := z.EncBinary() + _ = yym638 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep639 := !z.EncBinary() + yy2arr639 := z.EncBasicHandle().StructToArray + var yyq639 [4]bool + _, _, _ = yysep639, yyq639, yy2arr639 + const yyr639 bool = false + yyq639[0] = x.Kind != "" + yyq639[1] = x.APIVersion != "" + yyq639[2] = true + var yynn639 int + if yyr639 || yy2arr639 { + r.EncodeArrayStart(4) + } else { + yynn639 = 1 + for _, b := range yyq639 { + if b { + yynn639++ + } + } + r.EncodeMapStart(yynn639) + yynn639 = 0 + } + if yyr639 || yy2arr639 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq639[0] { + yym641 := z.EncBinary() + _ = yym641 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq639[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym642 := z.EncBinary() + _ = yym642 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr639 || yy2arr639 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq639[1] { + yym644 := z.EncBinary() + _ = yym644 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq639[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym645 := z.EncBinary() + _ = yym645 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr639 || yy2arr639 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq639[2] { + yy647 := &x.ListMeta + yym648 := z.EncBinary() + _ = yym648 + if false { + } else if z.HasExtensions() && z.EncExt(yy647) { + } else { + z.EncFallback(yy647) + } + } else { + r.EncodeNil() + } + } else { + if yyq639[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy649 := &x.ListMeta + yym650 := z.EncBinary() + _ = yym650 + if false { + } else if z.HasExtensions() && z.EncExt(yy649) { + } else { + z.EncFallback(yy649) + } + } + } + if yyr639 || yy2arr639 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym652 := z.EncBinary() + _ = yym652 + if false { + } else { + h.encSliceIngress(([]Ingress)(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 { + yym653 := z.EncBinary() + _ = yym653 + if false { + } else { + h.encSliceIngress(([]Ingress)(x.Items), e) + } + } + } + if yyr639 || yy2arr639 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym654 := z.DecBinary() + _ = yym654 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct655 := r.ContainerType() + if yyct655 == codecSelferValueTypeMap1234 { + yyl655 := r.ReadMapStart() + if yyl655 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl655, d) + } + } else if yyct655 == codecSelferValueTypeArray1234 { + yyl655 := r.ReadArrayStart() + if yyl655 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl655, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys656Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys656Slc + var yyhl656 bool = l >= 0 + for yyj656 := 0; ; yyj656++ { + if yyhl656 { + if yyj656 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys656Slc = r.DecodeBytes(yys656Slc, true, true) + yys656 := string(yys656Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys656 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv659 := &x.ListMeta + yym660 := z.DecBinary() + _ = yym660 + if false { + } else if z.HasExtensions() && z.DecExt(yyv659) { + } else { + z.DecFallback(yyv659, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv661 := &x.Items + yym662 := z.DecBinary() + _ = yym662 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv661), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys656) + } // end switch yys656 + } // end for yyj656 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj663 int + var yyb663 bool + var yyhl663 bool = l >= 0 + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l + } else { + yyb663 = r.CheckBreak() + } + if yyb663 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l + } else { + yyb663 = r.CheckBreak() + } + if yyb663 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l + } else { + yyb663 = r.CheckBreak() + } + if yyb663 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv666 := &x.ListMeta + yym667 := z.DecBinary() + _ = yym667 + if false { + } else if z.HasExtensions() && z.DecExt(yyv666) { + } else { + z.DecFallback(yyv666, false) + } + } + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l + } else { + yyb663 = r.CheckBreak() + } + if yyb663 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv668 := &x.Items + yym669 := z.DecBinary() + _ = yym669 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv668), d) + } + } + for { + yyj663++ + if yyhl663 { + yyb663 = yyj663 > l + } else { + yyb663 = r.CheckBreak() + } + if yyb663 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj663-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym670 := z.EncBinary() + _ = yym670 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep671 := !z.EncBinary() + yy2arr671 := z.EncBasicHandle().StructToArray + var yyq671 [3]bool + _, _, _ = yysep671, yyq671, yy2arr671 + const yyr671 bool = false + yyq671[0] = x.Backend != nil + yyq671[1] = len(x.TLS) != 0 + yyq671[2] = len(x.Rules) != 0 + var yynn671 int + if yyr671 || yy2arr671 { + r.EncodeArrayStart(3) + } else { + yynn671 = 0 + for _, b := range yyq671 { + if b { + yynn671++ + } + } + r.EncodeMapStart(yynn671) + yynn671 = 0 + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[0] { + if x.Backend == nil { + r.EncodeNil() + } else { + x.Backend.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq671[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("backend")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Backend == nil { + r.EncodeNil() + } else { + x.Backend.CodecEncodeSelf(e) + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[1] { + if x.TLS == nil { + r.EncodeNil() + } else { + yym674 := z.EncBinary() + _ = yym674 + if false { + } else { + h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq671[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tls")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TLS == nil { + r.EncodeNil() + } else { + yym675 := z.EncBinary() + _ = yym675 + if false { + } else { + h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) + } + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq671[2] { + if x.Rules == nil { + r.EncodeNil() + } else { + yym677 := z.EncBinary() + _ = yym677 + if false { + } else { + h.encSliceIngressRule(([]IngressRule)(x.Rules), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq671[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rules")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Rules == nil { + r.EncodeNil() + } else { + yym678 := z.EncBinary() + _ = yym678 + if false { + } else { + h.encSliceIngressRule(([]IngressRule)(x.Rules), e) + } + } + } + } + if yyr671 || yy2arr671 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym679 := z.DecBinary() + _ = yym679 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct680 := r.ContainerType() + if yyct680 == codecSelferValueTypeMap1234 { + yyl680 := r.ReadMapStart() + if yyl680 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl680, d) + } + } else if yyct680 == codecSelferValueTypeArray1234 { + yyl680 := r.ReadArrayStart() + if yyl680 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl680, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys681Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys681Slc + var yyhl681 bool = l >= 0 + for yyj681 := 0; ; yyj681++ { + if yyhl681 { + if yyj681 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys681Slc = r.DecodeBytes(yys681Slc, true, true) + yys681 := string(yys681Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys681 { + case "backend": + if r.TryDecodeAsNil() { + if x.Backend != nil { + x.Backend = nil + } + } else { + if x.Backend == nil { + x.Backend = new(IngressBackend) + } + x.Backend.CodecDecodeSelf(d) + } + case "tls": + if r.TryDecodeAsNil() { + x.TLS = nil + } else { + yyv683 := &x.TLS + yym684 := z.DecBinary() + _ = yym684 + if false { + } else { + h.decSliceIngressTLS((*[]IngressTLS)(yyv683), d) + } + } + case "rules": + if r.TryDecodeAsNil() { + x.Rules = nil + } else { + yyv685 := &x.Rules + yym686 := z.DecBinary() + _ = yym686 + if false { + } else { + h.decSliceIngressRule((*[]IngressRule)(yyv685), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys681) + } // end switch yys681 + } // end for yyj681 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj687 int + var yyb687 bool + var yyhl687 bool = l >= 0 + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l + } else { + yyb687 = r.CheckBreak() + } + if yyb687 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Backend != nil { + x.Backend = nil + } + } else { + if x.Backend == nil { + x.Backend = new(IngressBackend) + } + x.Backend.CodecDecodeSelf(d) + } + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l + } else { + yyb687 = r.CheckBreak() + } + if yyb687 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TLS = nil + } else { + yyv689 := &x.TLS + yym690 := z.DecBinary() + _ = yym690 + if false { + } else { + h.decSliceIngressTLS((*[]IngressTLS)(yyv689), d) + } + } + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l + } else { + yyb687 = r.CheckBreak() + } + if yyb687 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Rules = nil + } else { + yyv691 := &x.Rules + yym692 := z.DecBinary() + _ = yym692 + if false { + } else { + h.decSliceIngressRule((*[]IngressRule)(yyv691), d) + } + } + for { + yyj687++ + if yyhl687 { + yyb687 = yyj687 > l + } else { + yyb687 = r.CheckBreak() + } + if yyb687 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj687-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym693 := z.EncBinary() + _ = yym693 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep694 := !z.EncBinary() + yy2arr694 := z.EncBasicHandle().StructToArray + var yyq694 [2]bool + _, _, _ = yysep694, yyq694, yy2arr694 + const yyr694 bool = false + yyq694[0] = len(x.Hosts) != 0 + yyq694[1] = x.SecretName != "" + var yynn694 int + if yyr694 || yy2arr694 { + r.EncodeArrayStart(2) + } else { + yynn694 = 0 + for _, b := range yyq694 { + if b { + yynn694++ + } + } + r.EncodeMapStart(yynn694) + yynn694 = 0 + } + if yyr694 || yy2arr694 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq694[0] { + if x.Hosts == nil { + r.EncodeNil() + } else { + yym696 := z.EncBinary() + _ = yym696 + if false { + } else { + z.F.EncSliceStringV(x.Hosts, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq694[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hosts")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Hosts == nil { + r.EncodeNil() + } else { + yym697 := z.EncBinary() + _ = yym697 + if false { + } else { + z.F.EncSliceStringV(x.Hosts, false, e) + } + } + } + } + if yyr694 || yy2arr694 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq694[1] { + yym699 := z.EncBinary() + _ = yym699 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq694[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym700 := z.EncBinary() + _ = yym700 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } + } + if yyr694 || yy2arr694 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym701 := z.DecBinary() + _ = yym701 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct702 := r.ContainerType() + if yyct702 == codecSelferValueTypeMap1234 { + yyl702 := r.ReadMapStart() + if yyl702 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl702, d) + } + } else if yyct702 == codecSelferValueTypeArray1234 { + yyl702 := r.ReadArrayStart() + if yyl702 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl702, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys703Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys703Slc + var yyhl703 bool = l >= 0 + for yyj703 := 0; ; yyj703++ { + if yyhl703 { + if yyj703 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys703Slc = r.DecodeBytes(yys703Slc, true, true) + yys703 := string(yys703Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys703 { + case "hosts": + if r.TryDecodeAsNil() { + x.Hosts = nil + } else { + yyv704 := &x.Hosts + yym705 := z.DecBinary() + _ = yym705 + if false { + } else { + z.F.DecSliceStringX(yyv704, false, d) + } + } + case "secretName": + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys703) + } // end switch yys703 + } // end for yyj703 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj707 int + var yyb707 bool + var yyhl707 bool = l >= 0 + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l + } else { + yyb707 = r.CheckBreak() + } + if yyb707 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hosts = nil + } else { + yyv708 := &x.Hosts + yym709 := z.DecBinary() + _ = yym709 + if false { + } else { + z.F.DecSliceStringX(yyv708, false, d) + } + } + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l + } else { + yyb707 = r.CheckBreak() + } + if yyb707 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + for { + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l + } else { + yyb707 = r.CheckBreak() + } + if yyb707 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj707-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym711 := z.EncBinary() + _ = yym711 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep712 := !z.EncBinary() + yy2arr712 := z.EncBasicHandle().StructToArray + var yyq712 [1]bool + _, _, _ = yysep712, yyq712, yy2arr712 + const yyr712 bool = false + yyq712[0] = true + var yynn712 int + if yyr712 || yy2arr712 { + r.EncodeArrayStart(1) + } else { + yynn712 = 0 + for _, b := range yyq712 { + if b { + yynn712++ + } + } + r.EncodeMapStart(yynn712) + yynn712 = 0 + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq712[0] { + yy714 := &x.LoadBalancer + yy714.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq712[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy715 := &x.LoadBalancer + yy715.CodecEncodeSelf(e) + } + } + if yyr712 || yy2arr712 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym716 := z.DecBinary() + _ = yym716 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct717 := r.ContainerType() + if yyct717 == codecSelferValueTypeMap1234 { + yyl717 := r.ReadMapStart() + if yyl717 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl717, d) + } + } else if yyct717 == codecSelferValueTypeArray1234 { + yyl717 := r.ReadArrayStart() + if yyl717 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl717, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys718Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys718Slc + var yyhl718 bool = l >= 0 + for yyj718 := 0; ; yyj718++ { + if yyhl718 { + if yyj718 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys718Slc = r.DecodeBytes(yys718Slc, true, true) + yys718 := string(yys718Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys718 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = pkg2_api.LoadBalancerStatus{} + } else { + yyv719 := &x.LoadBalancer + yyv719.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys718) + } // end switch yys718 + } // end for yyj718 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj720 int + var yyb720 bool + var yyhl720 bool = l >= 0 + yyj720++ + if yyhl720 { + yyb720 = yyj720 > l + } else { + yyb720 = r.CheckBreak() + } + if yyb720 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = pkg2_api.LoadBalancerStatus{} + } else { + yyv721 := &x.LoadBalancer + yyv721.CodecDecodeSelf(d) + } + for { + yyj720++ + if yyhl720 { + yyb720 = yyj720 > l + } else { + yyb720 = r.CheckBreak() + } + if yyb720 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj720-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym722 := z.EncBinary() + _ = yym722 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep723 := !z.EncBinary() + yy2arr723 := z.EncBasicHandle().StructToArray + var yyq723 [2]bool + _, _, _ = yysep723, yyq723, yy2arr723 + const yyr723 bool = false + yyq723[0] = x.Host != "" + yyq723[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil + var yynn723 int + if yyr723 || yy2arr723 { + r.EncodeArrayStart(2) + } else { + yynn723 = 0 + for _, b := range yyq723 { + if b { + yynn723++ + } + } + r.EncodeMapStart(yynn723) + yynn723 = 0 + } + if yyr723 || yy2arr723 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq723[0] { + yym725 := z.EncBinary() + _ = yym725 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq723[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym726 := z.EncBinary() + _ = yym726 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } + } + var yyn727 bool + if x.IngressRuleValue.HTTP == nil { + yyn727 = true + goto LABEL727 + } + LABEL727: + if yyr723 || yy2arr723 { + if yyn727 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq723[1] { + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq723[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("http")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn727 { + r.EncodeNil() + } else { + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } + } + } + if yyr723 || yy2arr723 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressRule) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym728 := z.DecBinary() + _ = yym728 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct729 := r.ContainerType() + if yyct729 == codecSelferValueTypeMap1234 { + yyl729 := r.ReadMapStart() + if yyl729 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl729, d) + } + } else if yyct729 == codecSelferValueTypeArray1234 { + yyl729 := r.ReadArrayStart() + if yyl729 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl729, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys730Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys730Slc + var yyhl730 bool = l >= 0 + for yyj730 := 0; ; yyj730++ { + if yyhl730 { + if yyj730 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys730Slc = r.DecodeBytes(yys730Slc, true, true) + yys730 := string(yys730Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys730 { + case "host": + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + case "http": + if x.IngressRuleValue.HTTP == nil { + x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue) + } + if r.TryDecodeAsNil() { + if x.HTTP != nil { + x.HTTP = nil + } + } else { + if x.HTTP == nil { + x.HTTP = new(HTTPIngressRuleValue) + } + x.HTTP.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys730) + } // end switch yys730 + } // end for yyj730 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj733 int + var yyb733 bool + var yyhl733 bool = l >= 0 + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l + } else { + yyb733 = r.CheckBreak() + } + if yyb733 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) + } + if x.IngressRuleValue.HTTP == nil { + x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue) + } + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l + } else { + yyb733 = r.CheckBreak() + } + if yyb733 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HTTP != nil { + x.HTTP = nil + } + } else { + if x.HTTP == nil { + x.HTTP = new(HTTPIngressRuleValue) + } + x.HTTP.CodecDecodeSelf(d) + } + for { + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l + } else { + yyb733 = r.CheckBreak() + } + if yyb733 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj733-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym736 := z.EncBinary() + _ = yym736 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep737 := !z.EncBinary() + yy2arr737 := z.EncBasicHandle().StructToArray + var yyq737 [1]bool + _, _, _ = yysep737, yyq737, yy2arr737 + const yyr737 bool = false + yyq737[0] = x.HTTP != nil + var yynn737 int + if yyr737 || yy2arr737 { + r.EncodeArrayStart(1) + } else { + yynn737 = 0 + for _, b := range yyq737 { + if b { + yynn737++ + } + } + r.EncodeMapStart(yynn737) + yynn737 = 0 + } + if yyr737 || yy2arr737 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq737[0] { + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq737[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("http")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } + } + if yyr737 || yy2arr737 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym739 := z.DecBinary() + _ = yym739 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct740 := r.ContainerType() + if yyct740 == codecSelferValueTypeMap1234 { + yyl740 := r.ReadMapStart() + if yyl740 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl740, d) + } + } else if yyct740 == codecSelferValueTypeArray1234 { + yyl740 := r.ReadArrayStart() + if yyl740 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl740, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys741Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys741Slc + var yyhl741 bool = l >= 0 + for yyj741 := 0; ; yyj741++ { + if yyhl741 { + if yyj741 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys741Slc = r.DecodeBytes(yys741Slc, true, true) + yys741 := string(yys741Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys741 { + case "http": + if r.TryDecodeAsNil() { + if x.HTTP != nil { + x.HTTP = nil + } + } else { + if x.HTTP == nil { + x.HTTP = new(HTTPIngressRuleValue) + } + x.HTTP.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys741) + } // end switch yys741 + } // end for yyj741 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj743 int + var yyb743 bool + var yyhl743 bool = l >= 0 + yyj743++ + if yyhl743 { + yyb743 = yyj743 > l + } else { + yyb743 = r.CheckBreak() + } + if yyb743 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.HTTP != nil { + x.HTTP = nil + } + } else { + if x.HTTP == nil { + x.HTTP = new(HTTPIngressRuleValue) + } + x.HTTP.CodecDecodeSelf(d) + } + for { + yyj743++ + if yyhl743 { + yyb743 = yyj743 > l + } else { + yyb743 = r.CheckBreak() + } + if yyb743 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj743-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym745 := z.EncBinary() + _ = yym745 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep746 := !z.EncBinary() + yy2arr746 := z.EncBasicHandle().StructToArray + var yyq746 [1]bool + _, _, _ = yysep746, yyq746, yy2arr746 + const yyr746 bool = false + var yynn746 int + if yyr746 || yy2arr746 { + r.EncodeArrayStart(1) + } else { + yynn746 = 1 + for _, b := range yyq746 { + if b { + yynn746++ + } + } + r.EncodeMapStart(yynn746) + yynn746 = 0 + } + if yyr746 || yy2arr746 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Paths == nil { + r.EncodeNil() + } else { + yym748 := z.EncBinary() + _ = yym748 + if false { + } else { + h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("paths")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Paths == nil { + r.EncodeNil() + } else { + yym749 := z.EncBinary() + _ = yym749 + if false { + } else { + h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) + } + } + } + if yyr746 || yy2arr746 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPIngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym750 := z.DecBinary() + _ = yym750 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct751 := r.ContainerType() + if yyct751 == codecSelferValueTypeMap1234 { + yyl751 := r.ReadMapStart() + if yyl751 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl751, d) + } + } else if yyct751 == codecSelferValueTypeArray1234 { + yyl751 := r.ReadArrayStart() + if yyl751 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl751, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys752Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys752Slc + var yyhl752 bool = l >= 0 + for yyj752 := 0; ; yyj752++ { + if yyhl752 { + if yyj752 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys752Slc = r.DecodeBytes(yys752Slc, true, true) + yys752 := string(yys752Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys752 { + case "paths": + if r.TryDecodeAsNil() { + x.Paths = nil + } else { + yyv753 := &x.Paths + yym754 := z.DecBinary() + _ = yym754 + if false { + } else { + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv753), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys752) + } // end switch yys752 + } // end for yyj752 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj755 int + var yyb755 bool + var yyhl755 bool = l >= 0 + yyj755++ + if yyhl755 { + yyb755 = yyj755 > l + } else { + yyb755 = r.CheckBreak() + } + if yyb755 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Paths = nil + } else { + yyv756 := &x.Paths + yym757 := z.DecBinary() + _ = yym757 + if false { + } else { + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv756), d) + } + } + for { + yyj755++ + if yyhl755 { + yyb755 = yyj755 > l + } else { + yyb755 = r.CheckBreak() + } + if yyb755 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj755-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym758 := z.EncBinary() + _ = yym758 + 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.Path != "" + var yynn759 int + if yyr759 || yy2arr759 { + r.EncodeArrayStart(2) + } else { + yynn759 = 1 + for _, b := range yyq759 { + if b { + yynn759++ + } + } + r.EncodeMapStart(yynn759) + yynn759 = 0 + } + if yyr759 || yy2arr759 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq759[0] { + yym761 := z.EncBinary() + _ = yym761 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq759[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym762 := z.EncBinary() + _ = yym762 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr759 || yy2arr759 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy764 := &x.Backend + yy764.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("backend")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy765 := &x.Backend + yy765.CodecEncodeSelf(e) + } + if yyr759 || yy2arr759 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym766 := z.DecBinary() + _ = yym766 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct767 := r.ContainerType() + if yyct767 == codecSelferValueTypeMap1234 { + yyl767 := r.ReadMapStart() + if yyl767 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl767, d) + } + } else if yyct767 == codecSelferValueTypeArray1234 { + yyl767 := r.ReadArrayStart() + if yyl767 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl767, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HTTPIngressPath) 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys768Slc = r.DecodeBytes(yys768Slc, true, true) + yys768 := string(yys768Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys768 { + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "backend": + if r.TryDecodeAsNil() { + x.Backend = IngressBackend{} + } else { + yyv770 := &x.Backend + yyv770.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys768) + } // end switch yys768 + } // end for yyj768 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HTTPIngressPath) 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 + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Backend = IngressBackend{} + } else { + yyv773 := &x.Backend + yyv773.CodecDecodeSelf(d) + } + for { + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l + } else { + yyb771 = r.CheckBreak() + } + if yyb771 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj771-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym774 := z.EncBinary() + _ = yym774 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep775 := !z.EncBinary() + yy2arr775 := z.EncBasicHandle().StructToArray + var yyq775 [2]bool + _, _, _ = yysep775, yyq775, yy2arr775 + const yyr775 bool = false + var yynn775 int + if yyr775 || yy2arr775 { + r.EncodeArrayStart(2) + } else { + yynn775 = 2 + for _, b := range yyq775 { + if b { + yynn775++ + } + } + r.EncodeMapStart(yynn775) + yynn775 = 0 + } + if yyr775 || yy2arr775 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym777 := z.EncBinary() + _ = yym777 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serviceName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym778 := z.EncBinary() + _ = yym778 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) + } + } + if yyr775 || yy2arr775 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy780 := &x.ServicePort + yym781 := z.EncBinary() + _ = yym781 + if false { + } else if z.HasExtensions() && z.EncExt(yy780) { + } else if !yym781 && z.IsJSONHandle() { + z.EncJSONMarshal(yy780) + } else { + z.EncFallback(yy780) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("servicePort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy782 := &x.ServicePort + yym783 := z.EncBinary() + _ = yym783 + if false { + } else if z.HasExtensions() && z.EncExt(yy782) { + } else if !yym783 && z.IsJSONHandle() { + z.EncJSONMarshal(yy782) + } else { + z.EncFallback(yy782) + } + } + if yyr775 || yy2arr775 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym784 := z.DecBinary() + _ = yym784 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct785 := r.ContainerType() + if yyct785 == codecSelferValueTypeMap1234 { + yyl785 := r.ReadMapStart() + if yyl785 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl785, d) + } + } else if yyct785 == codecSelferValueTypeArray1234 { + yyl785 := r.ReadArrayStart() + if yyl785 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl785, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys786Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys786Slc + var yyhl786 bool = l >= 0 + for yyj786 := 0; ; yyj786++ { + if yyhl786 { + if yyj786 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys786Slc = r.DecodeBytes(yys786Slc, true, true) + yys786 := string(yys786Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys786 { + case "serviceName": + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = string(r.DecodeString()) + } + case "servicePort": + if r.TryDecodeAsNil() { + x.ServicePort = pkg5_intstr.IntOrString{} + } else { + yyv788 := &x.ServicePort + yym789 := z.DecBinary() + _ = yym789 + if false { + } else if z.HasExtensions() && z.DecExt(yyv788) { + } else if !yym789 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv788) + } else { + z.DecFallback(yyv788, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys786) + } // end switch yys786 + } // end for yyj786 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj790 int + var yyb790 bool + var yyhl790 bool = l >= 0 + yyj790++ + if yyhl790 { + yyb790 = yyj790 > l + } else { + yyb790 = r.CheckBreak() + } + if yyb790 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = string(r.DecodeString()) + } + yyj790++ + if yyhl790 { + yyb790 = yyj790 > l + } else { + yyb790 = r.CheckBreak() + } + if yyb790 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServicePort = pkg5_intstr.IntOrString{} + } else { + yyv792 := &x.ServicePort + yym793 := z.DecBinary() + _ = yym793 + if false { + } else if z.HasExtensions() && z.DecExt(yyv792) { + } else if !yym793 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv792) + } else { + z.DecFallback(yyv792, false) + } + } + for { + yyj790++ + if yyhl790 { + yyb790 = yyj790 > l + } else { + yyb790 = r.CheckBreak() + } + if yyb790 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj790-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym794 := z.EncBinary() + _ = yym794 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep795 := !z.EncBinary() + yy2arr795 := z.EncBasicHandle().StructToArray + var yyq795 [5]bool + _, _, _ = yysep795, yyq795, yy2arr795 + const yyr795 bool = false + yyq795[0] = x.Kind != "" + yyq795[1] = x.APIVersion != "" + yyq795[2] = true + yyq795[3] = true + yyq795[4] = true + var yynn795 int + if yyr795 || yy2arr795 { + r.EncodeArrayStart(5) + } else { + yynn795 = 0 + for _, b := range yyq795 { + if b { + yynn795++ + } + } + r.EncodeMapStart(yynn795) + yynn795 = 0 + } + if yyr795 || yy2arr795 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq795[0] { + yym797 := z.EncBinary() + _ = yym797 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq795[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym798 := z.EncBinary() + _ = yym798 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr795 || yy2arr795 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq795[1] { + yym800 := z.EncBinary() + _ = yym800 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq795[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym801 := z.EncBinary() + _ = yym801 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr795 || yy2arr795 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq795[2] { + yy803 := &x.ObjectMeta + yy803.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq795[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy804 := &x.ObjectMeta + yy804.CodecEncodeSelf(e) + } + } + if yyr795 || yy2arr795 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq795[3] { + yy806 := &x.Spec + yy806.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq795[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy807 := &x.Spec + yy807.CodecEncodeSelf(e) + } + } + if yyr795 || yy2arr795 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq795[4] { + yy809 := &x.Status + yy809.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq795[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy810 := &x.Status + yy810.CodecEncodeSelf(e) + } + } + if yyr795 || yy2arr795 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym811 := z.DecBinary() + _ = yym811 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct812 := r.ContainerType() + if yyct812 == codecSelferValueTypeMap1234 { + yyl812 := r.ReadMapStart() + if yyl812 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl812, d) + } + } else if yyct812 == codecSelferValueTypeArray1234 { + yyl812 := r.ReadArrayStart() + if yyl812 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl812, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys813Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys813Slc + var yyhl813 bool = l >= 0 + for yyj813 := 0; ; yyj813++ { + if yyhl813 { + if yyj813 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys813Slc = r.DecodeBytes(yys813Slc, true, true) + yys813 := string(yys813Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys813 { + 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_api.ObjectMeta{} + } else { + yyv816 := &x.ObjectMeta + yyv816.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ReplicaSetSpec{} + } else { + yyv817 := &x.Spec + yyv817.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ReplicaSetStatus{} + } else { + yyv818 := &x.Status + yyv818.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys813) + } // end switch yys813 + } // end for yyj813 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj819 int + var yyb819 bool + var yyhl819 bool = l >= 0 + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l + } else { + yyb819 = r.CheckBreak() + } + if yyb819 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l + } else { + yyb819 = r.CheckBreak() + } + if yyb819 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l + } else { + yyb819 = r.CheckBreak() + } + if yyb819 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv822 := &x.ObjectMeta + yyv822.CodecDecodeSelf(d) + } + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l + } else { + yyb819 = r.CheckBreak() + } + if yyb819 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ReplicaSetSpec{} + } else { + yyv823 := &x.Spec + yyv823.CodecDecodeSelf(d) + } + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l + } else { + yyb819 = r.CheckBreak() + } + if yyb819 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ReplicaSetStatus{} + } else { + yyv824 := &x.Status + yyv824.CodecDecodeSelf(d) + } + for { + yyj819++ + if yyhl819 { + yyb819 = yyj819 > l + } else { + yyb819 = r.CheckBreak() + } + if yyb819 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj819-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym825 := z.EncBinary() + _ = yym825 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep826 := !z.EncBinary() + yy2arr826 := z.EncBasicHandle().StructToArray + var yyq826 [4]bool + _, _, _ = yysep826, yyq826, yy2arr826 + const yyr826 bool = false + yyq826[0] = x.Kind != "" + yyq826[1] = x.APIVersion != "" + yyq826[2] = true + var yynn826 int + if yyr826 || yy2arr826 { + r.EncodeArrayStart(4) + } else { + yynn826 = 1 + for _, b := range yyq826 { + if b { + yynn826++ + } + } + r.EncodeMapStart(yynn826) + yynn826 = 0 + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq826[0] { + yym828 := z.EncBinary() + _ = yym828 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq826[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym829 := z.EncBinary() + _ = yym829 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq826[1] { + yym831 := z.EncBinary() + _ = yym831 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq826[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym832 := z.EncBinary() + _ = yym832 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq826[2] { + yy834 := &x.ListMeta + yym835 := z.EncBinary() + _ = yym835 + if false { + } else if z.HasExtensions() && z.EncExt(yy834) { + } else { + z.EncFallback(yy834) + } + } else { + r.EncodeNil() + } + } else { + if yyq826[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy836 := &x.ListMeta + yym837 := z.EncBinary() + _ = yym837 + if false { + } else if z.HasExtensions() && z.EncExt(yy836) { + } else { + z.EncFallback(yy836) + } + } + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym839 := z.EncBinary() + _ = yym839 + if false { + } else { + h.encSliceReplicaSet(([]ReplicaSet)(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 { + yym840 := z.EncBinary() + _ = yym840 + if false { + } else { + h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) + } + } + } + if yyr826 || yy2arr826 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym841 := z.DecBinary() + _ = yym841 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct842 := r.ContainerType() + if yyct842 == codecSelferValueTypeMap1234 { + yyl842 := r.ReadMapStart() + if yyl842 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl842, d) + } + } else if yyct842 == codecSelferValueTypeArray1234 { + yyl842 := r.ReadArrayStart() + if yyl842 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl842, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys843Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys843Slc + var yyhl843 bool = l >= 0 + for yyj843 := 0; ; yyj843++ { + if yyhl843 { + if yyj843 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys843Slc = r.DecodeBytes(yys843Slc, true, true) + yys843 := string(yys843Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys843 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv846 := &x.ListMeta + yym847 := z.DecBinary() + _ = yym847 + if false { + } else if z.HasExtensions() && z.DecExt(yyv846) { + } else { + z.DecFallback(yyv846, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv848 := &x.Items + yym849 := z.DecBinary() + _ = yym849 + if false { + } else { + h.decSliceReplicaSet((*[]ReplicaSet)(yyv848), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys843) + } // end switch yys843 + } // end for yyj843 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj850 int + var yyb850 bool + var yyhl850 bool = l >= 0 + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l + } else { + yyb850 = r.CheckBreak() + } + if yyb850 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l + } else { + yyb850 = r.CheckBreak() + } + if yyb850 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l + } else { + yyb850 = r.CheckBreak() + } + if yyb850 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv853 := &x.ListMeta + yym854 := z.DecBinary() + _ = yym854 + if false { + } else if z.HasExtensions() && z.DecExt(yyv853) { + } else { + z.DecFallback(yyv853, false) + } + } + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l + } else { + yyb850 = r.CheckBreak() + } + if yyb850 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv855 := &x.Items + yym856 := z.DecBinary() + _ = yym856 + if false { + } else { + h.decSliceReplicaSet((*[]ReplicaSet)(yyv855), d) + } + } + for { + yyj850++ + if yyhl850 { + yyb850 = yyj850 > l + } else { + yyb850 = r.CheckBreak() + } + if yyb850 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj850-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym857 := z.EncBinary() + _ = yym857 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep858 := !z.EncBinary() + yy2arr858 := z.EncBasicHandle().StructToArray + var yyq858 [3]bool + _, _, _ = yysep858, yyq858, yy2arr858 + const yyr858 bool = false + yyq858[1] = x.Selector != nil + yyq858[2] = true + var yynn858 int + if yyr858 || yy2arr858 { + r.EncodeArrayStart(3) + } else { + yynn858 = 1 + for _, b := range yyq858 { + if b { + yynn858++ + } + } + r.EncodeMapStart(yynn858) + yynn858 = 0 + } + if yyr858 || yy2arr858 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym860 := z.EncBinary() + _ = yym860 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym861 := z.EncBinary() + _ = yym861 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + if yyr858 || yy2arr858 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq858[1] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym863 := z.EncBinary() + _ = yym863 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq858[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym864 := z.EncBinary() + _ = yym864 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr858 || yy2arr858 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq858[2] { + yy866 := &x.Template + yy866.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq858[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy867 := &x.Template + yy867.CodecEncodeSelf(e) + } + } + if yyr858 || yy2arr858 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym868 := z.DecBinary() + _ = yym868 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct869 := r.ContainerType() + if yyct869 == codecSelferValueTypeMap1234 { + yyl869 := r.ReadMapStart() + if yyl869 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl869, d) + } + } else if yyct869 == codecSelferValueTypeArray1234 { + yyl869 := r.ReadArrayStart() + if yyl869 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl869, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys870Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys870Slc + var yyhl870 bool = l >= 0 + for yyj870 := 0; ; yyj870++ { + if yyhl870 { + if yyj870 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys870Slc = r.DecodeBytes(yys870Slc, true, true) + yys870 := string(yys870Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys870 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + case "selector": + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym873 := z.DecBinary() + _ = yym873 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + case "template": + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv874 := &x.Template + yyv874.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys870) + } // end switch yys870 + } // end for yyj870 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj875 int + var yyb875 bool + var yyhl875 bool = l >= 0 + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l + } else { + yyb875 = r.CheckBreak() + } + if yyb875 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l + } else { + yyb875 = r.CheckBreak() + } + if yyb875 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Selector != nil { + x.Selector = nil + } + } else { + if x.Selector == nil { + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym878 := z.DecBinary() + _ = yym878 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) + } + } + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l + } else { + yyb875 = r.CheckBreak() + } + if yyb875 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Template = pkg2_api.PodTemplateSpec{} + } else { + yyv879 := &x.Template + yyv879.CodecDecodeSelf(d) + } + for { + yyj875++ + if yyhl875 { + yyb875 = yyj875 > l + } else { + yyb875 = r.CheckBreak() + } + if yyb875 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj875-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym880 := z.EncBinary() + _ = yym880 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep881 := !z.EncBinary() + yy2arr881 := z.EncBasicHandle().StructToArray + var yyq881 [3]bool + _, _, _ = yysep881, yyq881, yy2arr881 + const yyr881 bool = false + yyq881[1] = x.FullyLabeledReplicas != 0 + yyq881[2] = x.ObservedGeneration != 0 + var yynn881 int + if yyr881 || yy2arr881 { + r.EncodeArrayStart(3) + } else { + yynn881 = 1 + for _, b := range yyq881 { + if b { + yynn881++ + } + } + r.EncodeMapStart(yynn881) + yynn881 = 0 + } + if yyr881 || yy2arr881 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym883 := z.EncBinary() + _ = yym883 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym884 := z.EncBinary() + _ = yym884 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + if yyr881 || yy2arr881 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq881[1] { + yym886 := z.EncBinary() + _ = yym886 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq881[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym887 := z.EncBinary() + _ = yym887 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } + } + if yyr881 || yy2arr881 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq881[2] { + yym889 := z.EncBinary() + _ = yym889 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq881[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym890 := z.EncBinary() + _ = yym890 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } + } + if yyr881 || yy2arr881 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym891 := z.DecBinary() + _ = yym891 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct892 := r.ContainerType() + if yyct892 == codecSelferValueTypeMap1234 { + yyl892 := r.ReadMapStart() + if yyl892 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl892, d) + } + } else if yyct892 == codecSelferValueTypeArray1234 { + yyl892 := r.ReadArrayStart() + if yyl892 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl892, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys893Slc = r.DecodeBytes(yys893Slc, true, true) + yys893 := string(yys893Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys893 { + 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, yys893) + } // end switch yys893 + } // end for yyj893 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb897 = r.CheckBreak() + } + if yyb897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj897++ + if yyhl897 { + yyb897 = yyj897 > l + } else { + yyb897 = r.CheckBreak() + } + if yyb897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FullyLabeledReplicas = 0 + } else { + x.FullyLabeledReplicas = int32(r.DecodeInt(32)) + } + yyj897++ + if yyhl897 { + yyb897 = yyj897 > l + } else { + yyb897 = r.CheckBreak() + } + if yyb897 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObservedGeneration = 0 + } else { + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + for { + yyj897++ + if yyhl897 { + yyb897 = yyj897 > l + } else { + yyb897 = r.CheckBreak() + } + if yyb897 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj897-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym901 := z.EncBinary() + _ = yym901 + 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 { + r.EncodeArrayStart(4) + } else { + yynn902 = 0 + for _, b := range yyq902 { + if b { + yynn902++ + } + } + r.EncodeMapStart(yynn902) + yynn902 = 0 + } + if yyr902 || yy2arr902 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq902[0] { + yym904 := z.EncBinary() + _ = yym904 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq902[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym905 := z.EncBinary() + _ = yym905 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr902 || yy2arr902 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq902[1] { + yym907 := z.EncBinary() + _ = yym907 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq902[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym908 := z.EncBinary() + _ = yym908 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr902 || yy2arr902 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq902[2] { + yy910 := &x.ObjectMeta + yy910.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq902[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy911 := &x.ObjectMeta + yy911.CodecEncodeSelf(e) + } + } + if yyr902 || yy2arr902 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq902[3] { + yy913 := &x.Spec + yy913.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq902[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy914 := &x.Spec + yy914.CodecEncodeSelf(e) + } + } + if yyr902 || yy2arr902 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym915 := z.DecBinary() + _ = yym915 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct916 := r.ContainerType() + if yyct916 == codecSelferValueTypeMap1234 { + yyl916 := r.ReadMapStart() + if yyl916 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl916, d) + } + } else if yyct916 == codecSelferValueTypeArray1234 { + yyl916 := r.ReadArrayStart() + if yyl916 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl916, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys917Slc = r.DecodeBytes(yys917Slc, true, true) + yys917 := string(yys917Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys917 { + 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_api.ObjectMeta{} + } else { + yyv920 := &x.ObjectMeta + yyv920.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PodSecurityPolicySpec{} + } else { + yyv921 := &x.Spec + yyv921.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys917) + } // end switch yys917 + } // end for yyj917 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb922 = r.CheckBreak() + } + if yyb922 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj922++ + if yyhl922 { + yyb922 = yyj922 > l + } else { + yyb922 = r.CheckBreak() + } + if yyb922 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj922++ + if yyhl922 { + yyb922 = yyj922 > l + } else { + yyb922 = r.CheckBreak() + } + if yyb922 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv925 := &x.ObjectMeta + yyv925.CodecDecodeSelf(d) + } + yyj922++ + if yyhl922 { + yyb922 = yyj922 > l + } else { + yyb922 = r.CheckBreak() + } + if yyb922 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PodSecurityPolicySpec{} + } else { + yyv926 := &x.Spec + yyv926.CodecDecodeSelf(d) + } + for { + yyj922++ + if yyhl922 { + yyb922 = yyj922 > l + } else { + yyb922 = r.CheckBreak() + } + if yyb922 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj922-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym927 := z.EncBinary() + _ = yym927 + 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 { + r.EncodeArrayStart(14) + } else { + yynn928 = 4 + for _, b := range yyq928 { + if b { + yynn928++ + } + } + r.EncodeMapStart(yynn928) + yynn928 = 0 + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[0] { + yym930 := z.EncBinary() + _ = yym930 + if false { + } else { + r.EncodeBool(bool(x.Privileged)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq928[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("privileged")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym931 := z.EncBinary() + _ = yym931 + if false { + } else { + r.EncodeBool(bool(x.Privileged)) + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[1] { + if x.DefaultAddCapabilities == nil { + r.EncodeNil() + } else { + yym933 := z.EncBinary() + _ = yym933 + if false { + } else { + h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq928[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 + if false { + } else { + h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) + } + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[2] { + if x.RequiredDropCapabilities == nil { + r.EncodeNil() + } else { + yym936 := z.EncBinary() + _ = yym936 + if false { + } else { + h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq928[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 + if false { + } else { + h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) + } + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[3] { + if x.AllowedCapabilities == nil { + r.EncodeNil() + } else { + yym939 := z.EncBinary() + _ = yym939 + if false { + } else { + h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq928[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 + if false { + } else { + h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) + } + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[4] { + if x.Volumes == nil { + r.EncodeNil() + } else { + yym942 := z.EncBinary() + _ = yym942 + if false { + } else { + h.encSliceFSType(([]FSType)(x.Volumes), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq928[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 + if false { + } else { + h.encSliceFSType(([]FSType)(x.Volumes), e) + } + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[5] { + yym945 := z.EncBinary() + _ = yym945 + if false { + } else { + r.EncodeBool(bool(x.HostNetwork)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq928[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym946 := z.EncBinary() + _ = yym946 + if false { + } else { + r.EncodeBool(bool(x.HostNetwork)) + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[6] { + if x.HostPorts == nil { + r.EncodeNil() + } else { + yym948 := z.EncBinary() + _ = yym948 + if false { + } else { + h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq928[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 + if false { + } else { + h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) + } + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[7] { + yym951 := z.EncBinary() + _ = yym951 + if false { + } else { + r.EncodeBool(bool(x.HostPID)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq928[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym952 := z.EncBinary() + _ = yym952 + if false { + } else { + r.EncodeBool(bool(x.HostPID)) + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[8] { + yym954 := z.EncBinary() + _ = yym954 + if false { + } else { + r.EncodeBool(bool(x.HostIPC)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq928[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym955 := z.EncBinary() + _ = yym955 + if false { + } else { + r.EncodeBool(bool(x.HostIPC)) + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy957 := &x.SELinux + yy957.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("seLinux")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy958 := &x.SELinux + yy958.CodecEncodeSelf(e) + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy960 := &x.RunAsUser + yy960.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy961 := &x.RunAsUser + yy961.CodecEncodeSelf(e) + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy963 := &x.SupplementalGroups + yy963.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy964 := &x.SupplementalGroups + yy964.CodecEncodeSelf(e) + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy966 := &x.FSGroup + yy966.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy967 := &x.FSGroup + yy967.CodecEncodeSelf(e) + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq928[13] { + yym969 := z.EncBinary() + _ = yym969 + if false { + } else { + r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq928[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym970 := z.EncBinary() + _ = yym970 + if false { + } else { + r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) + } + } + } + if yyr928 || yy2arr928 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym971 := z.DecBinary() + _ = yym971 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct972 := r.ContainerType() + if yyct972 == codecSelferValueTypeMap1234 { + yyl972 := r.ReadMapStart() + if yyl972 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl972, d) + } + } else if yyct972 == codecSelferValueTypeArray1234 { + yyl972 := r.ReadArrayStart() + if yyl972 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl972, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys973Slc = r.DecodeBytes(yys973Slc, true, true) + yys973 := string(yys973Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys973 { + case "privileged": + if r.TryDecodeAsNil() { + x.Privileged = false + } else { + x.Privileged = bool(r.DecodeBool()) + } + case "defaultAddCapabilities": + if r.TryDecodeAsNil() { + x.DefaultAddCapabilities = nil + } else { + yyv975 := &x.DefaultAddCapabilities + yym976 := z.DecBinary() + _ = yym976 + if false { + } else { + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv975), d) + } + } + case "requiredDropCapabilities": + if r.TryDecodeAsNil() { + x.RequiredDropCapabilities = nil + } else { + yyv977 := &x.RequiredDropCapabilities + yym978 := z.DecBinary() + _ = yym978 + if false { + } else { + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv977), d) + } + } + case "allowedCapabilities": + if r.TryDecodeAsNil() { + x.AllowedCapabilities = nil + } else { + yyv979 := &x.AllowedCapabilities + yym980 := z.DecBinary() + _ = yym980 + if false { + } else { + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv979), d) + } + } + case "volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + yyv981 := &x.Volumes + yym982 := z.DecBinary() + _ = yym982 + if false { + } else { + h.decSliceFSType((*[]FSType)(yyv981), d) + } + } + case "hostNetwork": + if r.TryDecodeAsNil() { + x.HostNetwork = false + } else { + x.HostNetwork = bool(r.DecodeBool()) + } + case "hostPorts": + if r.TryDecodeAsNil() { + x.HostPorts = nil + } else { + yyv984 := &x.HostPorts + yym985 := z.DecBinary() + _ = yym985 + if false { + } else { + h.decSliceHostPortRange((*[]HostPortRange)(yyv984), d) + } + } + case "hostPID": + if r.TryDecodeAsNil() { + x.HostPID = false + } else { + x.HostPID = bool(r.DecodeBool()) + } + case "hostIPC": + if r.TryDecodeAsNil() { + x.HostIPC = false + } else { + x.HostIPC = bool(r.DecodeBool()) + } + case "seLinux": + if r.TryDecodeAsNil() { + x.SELinux = SELinuxStrategyOptions{} + } else { + yyv988 := &x.SELinux + yyv988.CodecDecodeSelf(d) + } + case "runAsUser": + if r.TryDecodeAsNil() { + x.RunAsUser = RunAsUserStrategyOptions{} + } else { + yyv989 := &x.RunAsUser + yyv989.CodecDecodeSelf(d) + } + case "supplementalGroups": + if r.TryDecodeAsNil() { + x.SupplementalGroups = SupplementalGroupsStrategyOptions{} + } else { + yyv990 := &x.SupplementalGroups + yyv990.CodecDecodeSelf(d) + } + case "fsGroup": + if r.TryDecodeAsNil() { + x.FSGroup = FSGroupStrategyOptions{} + } else { + yyv991 := &x.FSGroup + yyv991.CodecDecodeSelf(d) + } + case "readOnlyRootFilesystem": + if r.TryDecodeAsNil() { + x.ReadOnlyRootFilesystem = false + } else { + x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys973) + } // end switch yys973 + } // end for yyj973 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Privileged = false + } else { + x.Privileged = bool(r.DecodeBool()) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DefaultAddCapabilities = nil + } else { + yyv995 := &x.DefaultAddCapabilities + yym996 := z.DecBinary() + _ = yym996 + if false { + } else { + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv995), d) + } + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RequiredDropCapabilities = nil + } else { + yyv997 := &x.RequiredDropCapabilities + yym998 := z.DecBinary() + _ = yym998 + if false { + } else { + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv997), d) + } + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AllowedCapabilities = nil + } else { + yyv999 := &x.AllowedCapabilities + yym1000 := z.DecBinary() + _ = yym1000 + if false { + } else { + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv999), d) + } + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + yyv1001 := &x.Volumes + yym1002 := z.DecBinary() + _ = yym1002 + if false { + } else { + h.decSliceFSType((*[]FSType)(yyv1001), d) + } + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostNetwork = false + } else { + x.HostNetwork = bool(r.DecodeBool()) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPorts = nil + } else { + yyv1004 := &x.HostPorts + yym1005 := z.DecBinary() + _ = yym1005 + if false { + } else { + h.decSliceHostPortRange((*[]HostPortRange)(yyv1004), d) + } + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPID = false + } else { + x.HostPID = bool(r.DecodeBool()) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIPC = false + } else { + x.HostIPC = bool(r.DecodeBool()) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SELinux = SELinuxStrategyOptions{} + } else { + yyv1008 := &x.SELinux + yyv1008.CodecDecodeSelf(d) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RunAsUser = RunAsUserStrategyOptions{} + } else { + yyv1009 := &x.RunAsUser + yyv1009.CodecDecodeSelf(d) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SupplementalGroups = SupplementalGroupsStrategyOptions{} + } else { + yyv1010 := &x.SupplementalGroups + yyv1010.CodecDecodeSelf(d) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSGroup = FSGroupStrategyOptions{} + } else { + yyv1011 := &x.FSGroup + yyv1011.CodecDecodeSelf(d) + } + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnlyRootFilesystem = false + } else { + x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) + } + for { + yyj993++ + if yyhl993 { + yyb993 = yyj993 > l + } else { + yyb993 = r.CheckBreak() + } + if yyb993 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj993-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1013 := z.EncBinary() + _ = yym1013 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1014 = 2 + for _, b := range yyq1014 { + if b { + yynn1014++ + } + } + r.EncodeMapStart(yynn1014) + yynn1014 = 0 + } + if yyr1014 || yy2arr1014 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1016 := z.EncBinary() + _ = yym1016 + if false { + } else { + r.EncodeInt(int64(x.Min)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("min")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1017 := z.EncBinary() + _ = yym1017 + if false { + } else { + r.EncodeInt(int64(x.Min)) + } + } + if yyr1014 || yy2arr1014 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1019 := z.EncBinary() + _ = yym1019 + if false { + } else { + r.EncodeInt(int64(x.Max)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("max")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1020 := z.EncBinary() + _ = yym1020 + if false { + } else { + r.EncodeInt(int64(x.Max)) + } + } + if yyr1014 || yy2arr1014 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1021 := z.DecBinary() + _ = yym1021 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1022 := r.ContainerType() + if yyct1022 == codecSelferValueTypeMap1234 { + yyl1022 := r.ReadMapStart() + if yyl1022 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1022, d) + } + } else if yyct1022 == codecSelferValueTypeArray1234 { + yyl1022 := r.ReadArrayStart() + if yyl1022 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1022, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1023Slc = r.DecodeBytes(yys1023Slc, true, true) + yys1023 := string(yys1023Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1023 { + case "min": + if r.TryDecodeAsNil() { + x.Min = 0 + } else { + x.Min = int(r.DecodeInt(codecSelferBitsize1234)) + } + case "max": + if r.TryDecodeAsNil() { + x.Max = 0 + } else { + x.Max = int(r.DecodeInt(codecSelferBitsize1234)) + } + default: + z.DecStructFieldNotFound(-1, yys1023) + } // end switch yys1023 + } // end for yyj1023 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Min = 0 + } else { + x.Min = int(r.DecodeInt(codecSelferBitsize1234)) + } + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Max = 0 + } else { + x.Max = int(r.DecodeInt(codecSelferBitsize1234)) + } + for { + yyj1026++ + if yyhl1026 { + yyb1026 = yyj1026 > l + } else { + yyb1026 = r.CheckBreak() + } + if yyb1026 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1026-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1029 := z.EncBinary() + _ = yym1029 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1030 := z.DecBinary() + _ = yym1030 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1031 := z.EncBinary() + _ = yym1031 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1032 = 1 + for _, b := range yyq1032 { + if b { + yynn1032++ + } + } + r.EncodeMapStart(yynn1032) + yynn1032 = 0 + } + if yyr1032 || yy2arr1032 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Rule.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rule")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Rule.CodecEncodeSelf(e) + } + if yyr1032 || yy2arr1032 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1032[1] { + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1032[1] { + 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 yyr1032 || yy2arr1032 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1035 := z.DecBinary() + _ = yym1035 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1036 := r.ContainerType() + if yyct1036 == codecSelferValueTypeMap1234 { + yyl1036 := r.ReadMapStart() + if yyl1036 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1036, d) + } + } else if yyct1036 == codecSelferValueTypeArray1234 { + yyl1036 := r.ReadArrayStart() + if yyl1036 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1036, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1037Slc = r.DecodeBytes(yys1037Slc, true, true) + yys1037 := string(yys1037Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1037 { + case "rule": + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = SELinuxStrategy(r.DecodeString()) + } + case "seLinuxOptions": + if r.TryDecodeAsNil() { + if x.SELinuxOptions != nil { + x.SELinuxOptions = nil + } + } else { + if x.SELinuxOptions == nil { + x.SELinuxOptions = new(pkg2_api.SELinuxOptions) + } + x.SELinuxOptions.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1037) + } // end switch yys1037 + } // end for yyj1037 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1040 = r.CheckBreak() + } + if yyb1040 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = SELinuxStrategy(r.DecodeString()) + } + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l + } else { + yyb1040 = r.CheckBreak() + } + if yyb1040 { + 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(pkg2_api.SELinuxOptions) + } + x.SELinuxOptions.CodecDecodeSelf(d) + } + for { + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l + } else { + yyb1040 = r.CheckBreak() + } + if yyb1040 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1040-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1043 := z.EncBinary() + _ = yym1043 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1044 := z.DecBinary() + _ = yym1044 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1045 := z.EncBinary() + _ = yym1045 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1046 = 1 + for _, b := range yyq1046 { + if b { + yynn1046++ + } + } + r.EncodeMapStart(yynn1046) + yynn1046 = 0 + } + if yyr1046 || yy2arr1046 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Rule.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rule")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Rule.CodecEncodeSelf(e) + } + if yyr1046 || yy2arr1046 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1046[1] { + if x.Ranges == nil { + r.EncodeNil() + } else { + yym1049 := z.EncBinary() + _ = yym1049 + if false { + } else { + h.encSliceIDRange(([]IDRange)(x.Ranges), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1046[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 + if false { + } else { + h.encSliceIDRange(([]IDRange)(x.Ranges), e) + } + } + } + } + if yyr1046 || yy2arr1046 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1051 := z.DecBinary() + _ = yym1051 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1052 := r.ContainerType() + if yyct1052 == codecSelferValueTypeMap1234 { + yyl1052 := r.ReadMapStart() + if yyl1052 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1052, d) + } + } else if yyct1052 == codecSelferValueTypeArray1234 { + yyl1052 := r.ReadArrayStart() + if yyl1052 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1052, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1053Slc = r.DecodeBytes(yys1053Slc, true, true) + yys1053 := string(yys1053Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1053 { + case "rule": + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = RunAsUserStrategy(r.DecodeString()) + } + case "ranges": + if r.TryDecodeAsNil() { + x.Ranges = nil + } else { + yyv1055 := &x.Ranges + yym1056 := z.DecBinary() + _ = yym1056 + if false { + } else { + h.decSliceIDRange((*[]IDRange)(yyv1055), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1053) + } // end switch yys1053 + } // end for yyj1053 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1057 = r.CheckBreak() + } + if yyb1057 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = RunAsUserStrategy(r.DecodeString()) + } + yyj1057++ + if yyhl1057 { + yyb1057 = yyj1057 > l + } else { + yyb1057 = r.CheckBreak() + } + if yyb1057 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ranges = nil + } else { + yyv1059 := &x.Ranges + yym1060 := z.DecBinary() + _ = yym1060 + if false { + } else { + h.decSliceIDRange((*[]IDRange)(yyv1059), d) + } + } + for { + yyj1057++ + if yyhl1057 { + yyb1057 = yyj1057 > l + } else { + yyb1057 = r.CheckBreak() + } + if yyb1057 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1057-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1061 := z.EncBinary() + _ = yym1061 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1062 = 2 + for _, b := range yyq1062 { + if b { + yynn1062++ + } + } + r.EncodeMapStart(yynn1062) + yynn1062 = 0 + } + if yyr1062 || yy2arr1062 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1064 := z.EncBinary() + _ = yym1064 + if false { + } else { + r.EncodeInt(int64(x.Min)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("min")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1065 := z.EncBinary() + _ = yym1065 + if false { + } else { + r.EncodeInt(int64(x.Min)) + } + } + if yyr1062 || yy2arr1062 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1067 := z.EncBinary() + _ = yym1067 + if false { + } else { + r.EncodeInt(int64(x.Max)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("max")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1068 := z.EncBinary() + _ = yym1068 + if false { + } else { + r.EncodeInt(int64(x.Max)) + } + } + if yyr1062 || yy2arr1062 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1069 := z.DecBinary() + _ = yym1069 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1070 := r.ContainerType() + if yyct1070 == codecSelferValueTypeMap1234 { + yyl1070 := r.ReadMapStart() + if yyl1070 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1070, d) + } + } else if yyct1070 == codecSelferValueTypeArray1234 { + yyl1070 := r.ReadArrayStart() + if yyl1070 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1070, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1071Slc = r.DecodeBytes(yys1071Slc, true, true) + yys1071 := string(yys1071Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1071 { + case "min": + if r.TryDecodeAsNil() { + x.Min = 0 + } else { + x.Min = int64(r.DecodeInt(64)) + } + case "max": + if r.TryDecodeAsNil() { + x.Max = 0 + } else { + x.Max = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys1071) + } // end switch yys1071 + } // end for yyj1071 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1074 = r.CheckBreak() + } + if yyb1074 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Min = 0 + } else { + x.Min = int64(r.DecodeInt(64)) + } + yyj1074++ + if yyhl1074 { + yyb1074 = yyj1074 > l + } else { + yyb1074 = r.CheckBreak() + } + if yyb1074 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Max = 0 + } else { + x.Max = int64(r.DecodeInt(64)) + } + for { + yyj1074++ + if yyhl1074 { + yyb1074 = yyj1074 > l + } else { + yyb1074 = r.CheckBreak() + } + if yyb1074 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1074-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1077 := z.EncBinary() + _ = yym1077 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1078 := z.DecBinary() + _ = yym1078 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1079 := z.EncBinary() + _ = yym1079 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1080 = 0 + for _, b := range yyq1080 { + if b { + yynn1080++ + } + } + r.EncodeMapStart(yynn1080) + yynn1080 = 0 + } + if yyr1080 || yy2arr1080 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1080[0] { + x.Rule.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1080[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rule")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Rule.CodecEncodeSelf(e) + } + } + if yyr1080 || yy2arr1080 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1080[1] { + if x.Ranges == nil { + r.EncodeNil() + } else { + yym1083 := z.EncBinary() + _ = yym1083 + if false { + } else { + h.encSliceIDRange(([]IDRange)(x.Ranges), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1080[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 + if false { + } else { + h.encSliceIDRange(([]IDRange)(x.Ranges), e) + } + } + } + } + if yyr1080 || yy2arr1080 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1085 := z.DecBinary() + _ = yym1085 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1086 := r.ContainerType() + if yyct1086 == codecSelferValueTypeMap1234 { + yyl1086 := r.ReadMapStart() + if yyl1086 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1086, d) + } + } else if yyct1086 == codecSelferValueTypeArray1234 { + yyl1086 := r.ReadArrayStart() + if yyl1086 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1086, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1087Slc = r.DecodeBytes(yys1087Slc, true, true) + yys1087 := string(yys1087Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1087 { + case "rule": + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = FSGroupStrategyType(r.DecodeString()) + } + case "ranges": + if r.TryDecodeAsNil() { + x.Ranges = nil + } else { + yyv1089 := &x.Ranges + yym1090 := z.DecBinary() + _ = yym1090 + if false { + } else { + h.decSliceIDRange((*[]IDRange)(yyv1089), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1087) + } // end switch yys1087 + } // end for yyj1087 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1091 = r.CheckBreak() + } + if yyb1091 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = FSGroupStrategyType(r.DecodeString()) + } + yyj1091++ + if yyhl1091 { + yyb1091 = yyj1091 > l + } else { + yyb1091 = r.CheckBreak() + } + if yyb1091 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ranges = nil + } else { + yyv1093 := &x.Ranges + yym1094 := z.DecBinary() + _ = yym1094 + if false { + } else { + h.decSliceIDRange((*[]IDRange)(yyv1093), d) + } + } + for { + yyj1091++ + if yyhl1091 { + yyb1091 = yyj1091 > l + } else { + yyb1091 = r.CheckBreak() + } + if yyb1091 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1091-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1095 := z.EncBinary() + _ = yym1095 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1096 := z.DecBinary() + _ = yym1096 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1097 := z.EncBinary() + _ = yym1097 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1098 = 0 + for _, b := range yyq1098 { + if b { + yynn1098++ + } + } + r.EncodeMapStart(yynn1098) + yynn1098 = 0 + } + if yyr1098 || yy2arr1098 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1098[0] { + x.Rule.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1098[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rule")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Rule.CodecEncodeSelf(e) + } + } + if yyr1098 || yy2arr1098 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1098[1] { + if x.Ranges == nil { + r.EncodeNil() + } else { + yym1101 := z.EncBinary() + _ = yym1101 + if false { + } else { + h.encSliceIDRange(([]IDRange)(x.Ranges), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1098[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 + if false { + } else { + h.encSliceIDRange(([]IDRange)(x.Ranges), e) + } + } + } + } + if yyr1098 || yy2arr1098 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1103 := z.DecBinary() + _ = yym1103 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1104 := r.ContainerType() + if yyct1104 == codecSelferValueTypeMap1234 { + yyl1104 := r.ReadMapStart() + if yyl1104 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1104, d) + } + } else if yyct1104 == codecSelferValueTypeArray1234 { + yyl1104 := r.ReadArrayStart() + if yyl1104 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1104, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *SupplementalGroupsStrategyOptions) 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1105Slc = r.DecodeBytes(yys1105Slc, true, true) + yys1105 := string(yys1105Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1105 { + case "rule": + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) + } + case "ranges": + if r.TryDecodeAsNil() { + x.Ranges = nil + } else { + yyv1107 := &x.Ranges + yym1108 := z.DecBinary() + _ = yym1108 + if false { + } else { + h.decSliceIDRange((*[]IDRange)(yyv1107), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1105) + } // end switch yys1105 + } // end for yyj1105 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1109 = r.CheckBreak() + } + if yyb1109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Rule = "" + } else { + x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) + } + yyj1109++ + if yyhl1109 { + yyb1109 = yyj1109 > l + } else { + yyb1109 = r.CheckBreak() + } + if yyb1109 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ranges = nil + } else { + yyv1111 := &x.Ranges + yym1112 := z.DecBinary() + _ = yym1112 + if false { + } else { + h.decSliceIDRange((*[]IDRange)(yyv1111), d) + } + } + for { + yyj1109++ + if yyhl1109 { + yyb1109 = yyj1109 > l + } else { + yyb1109 = r.CheckBreak() + } + if yyb1109 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1109-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1113 := z.EncBinary() + _ = yym1113 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1114 := z.DecBinary() + _ = yym1114 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1115 := z.EncBinary() + _ = yym1115 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1116 = 1 + for _, b := range yyq1116 { + if b { + yynn1116++ + } + } + r.EncodeMapStart(yynn1116) + yynn1116 = 0 + } + if yyr1116 || yy2arr1116 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1116[0] { + yym1118 := z.EncBinary() + _ = yym1118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1116[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1119 := z.EncBinary() + _ = yym1119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1116 || yy2arr1116 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1116[1] { + yym1121 := z.EncBinary() + _ = yym1121 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1116[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1122 := z.EncBinary() + _ = yym1122 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1116 || yy2arr1116 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1116[2] { + yy1124 := &x.ListMeta + yym1125 := z.EncBinary() + _ = yym1125 + if false { + } else if z.HasExtensions() && z.EncExt(yy1124) { + } else { + z.EncFallback(yy1124) + } + } else { + r.EncodeNil() + } + } else { + if yyq1116[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1126 := &x.ListMeta + yym1127 := z.EncBinary() + _ = yym1127 + if false { + } else if z.HasExtensions() && z.EncExt(yy1126) { + } else { + z.EncFallback(yy1126) + } + } + } + if yyr1116 || yy2arr1116 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1129 := z.EncBinary() + _ = yym1129 + if false { + } else { + h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(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 { + yym1130 := z.EncBinary() + _ = yym1130 + if false { + } else { + h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) + } + } + } + if yyr1116 || yy2arr1116 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1131 := z.DecBinary() + _ = yym1131 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1132 := r.ContainerType() + if yyct1132 == codecSelferValueTypeMap1234 { + yyl1132 := r.ReadMapStart() + if yyl1132 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1132, d) + } + } else if yyct1132 == codecSelferValueTypeArray1234 { + yyl1132 := r.ReadArrayStart() + if yyl1132 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1132, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1133Slc = r.DecodeBytes(yys1133Slc, true, true) + yys1133 := string(yys1133Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1133 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv1136 := &x.ListMeta + yym1137 := z.DecBinary() + _ = yym1137 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1136) { + } else { + z.DecFallback(yyv1136, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1138 := &x.Items + yym1139 := z.DecBinary() + _ = yym1139 + if false { + } else { + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1138), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1133) + } // end switch yys1133 + } // end for yyj1133 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1140 = r.CheckBreak() + } + if yyb1140 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1140++ + if yyhl1140 { + yyb1140 = yyj1140 > l + } else { + yyb1140 = r.CheckBreak() + } + if yyb1140 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1140++ + if yyhl1140 { + yyb1140 = yyj1140 > l + } else { + yyb1140 = r.CheckBreak() + } + if yyb1140 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv1143 := &x.ListMeta + yym1144 := z.DecBinary() + _ = yym1144 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1143) { + } else { + z.DecFallback(yyv1143, false) + } + } + yyj1140++ + if yyhl1140 { + yyb1140 = yyj1140 > l + } else { + yyb1140 = r.CheckBreak() + } + if yyb1140 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1145 := &x.Items + yym1146 := z.DecBinary() + _ = yym1146 + if false { + } else { + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1145), d) + } + } + for { + yyj1140++ + if yyhl1140 { + yyb1140 = yyj1140 > l + } else { + yyb1140 = r.CheckBreak() + } + if yyb1140 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1140-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1147 := z.EncBinary() + _ = yym1147 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1148 = 0 + for _, b := range yyq1148 { + if b { + yynn1148++ + } + } + r.EncodeMapStart(yynn1148) + yynn1148 = 0 + } + if yyr1148 || yy2arr1148 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1148[0] { + yym1150 := z.EncBinary() + _ = yym1150 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1148[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1151 := z.EncBinary() + _ = yym1151 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1148 || yy2arr1148 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1148[1] { + yym1153 := z.EncBinary() + _ = yym1153 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1148[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1154 := z.EncBinary() + _ = yym1154 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1148 || yy2arr1148 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1148[2] { + yy1156 := &x.ObjectMeta + yy1156.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1148[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1157 := &x.ObjectMeta + yy1157.CodecEncodeSelf(e) + } + } + if yyr1148 || yy2arr1148 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1148[3] { + yy1159 := &x.Spec + yy1159.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1148[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1160 := &x.Spec + yy1160.CodecEncodeSelf(e) + } + } + if yyr1148 || yy2arr1148 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1161 := z.DecBinary() + _ = yym1161 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1162 := r.ContainerType() + if yyct1162 == codecSelferValueTypeMap1234 { + yyl1162 := r.ReadMapStart() + if yyl1162 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1162, d) + } + } else if yyct1162 == codecSelferValueTypeArray1234 { + yyl1162 := r.ReadArrayStart() + if yyl1162 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1162, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1163Slc = r.DecodeBytes(yys1163Slc, true, true) + yys1163 := string(yys1163Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1163 { + 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_api.ObjectMeta{} + } else { + yyv1166 := &x.ObjectMeta + yyv1166.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NetworkPolicySpec{} + } else { + yyv1167 := &x.Spec + yyv1167.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1163) + } // end switch yys1163 + } // end for yyj1163 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1168 = r.CheckBreak() + } + if yyb1168 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1168++ + if yyhl1168 { + yyb1168 = yyj1168 > l + } else { + yyb1168 = r.CheckBreak() + } + if yyb1168 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1168++ + if yyhl1168 { + yyb1168 = yyj1168 > l + } else { + yyb1168 = r.CheckBreak() + } + if yyb1168 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv1171 := &x.ObjectMeta + yyv1171.CodecDecodeSelf(d) + } + yyj1168++ + if yyhl1168 { + yyb1168 = yyj1168 > l + } else { + yyb1168 = r.CheckBreak() + } + if yyb1168 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = NetworkPolicySpec{} + } else { + yyv1172 := &x.Spec + yyv1172.CodecDecodeSelf(d) + } + for { + yyj1168++ + if yyhl1168 { + yyb1168 = yyj1168 > l + } else { + yyb1168 = r.CheckBreak() + } + if yyb1168 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1168-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1173 := z.EncBinary() + _ = yym1173 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1174 = 1 + for _, b := range yyq1174 { + if b { + yynn1174++ + } + } + r.EncodeMapStart(yynn1174) + yynn1174 = 0 + } + if yyr1174 || yy2arr1174 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1176 := &x.PodSelector + yym1177 := z.EncBinary() + _ = yym1177 + if false { + } else if z.HasExtensions() && z.EncExt(yy1176) { + } else { + z.EncFallback(yy1176) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1178 := &x.PodSelector + yym1179 := z.EncBinary() + _ = yym1179 + if false { + } else if z.HasExtensions() && z.EncExt(yy1178) { + } else { + z.EncFallback(yy1178) + } + } + if yyr1174 || yy2arr1174 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1174[1] { + if x.Ingress == nil { + r.EncodeNil() + } else { + yym1181 := z.EncBinary() + _ = yym1181 + if false { + } else { + h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1174[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 + if false { + } else { + h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) + } + } + } + } + if yyr1174 || yy2arr1174 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1183 := z.DecBinary() + _ = yym1183 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1184 := r.ContainerType() + if yyct1184 == codecSelferValueTypeMap1234 { + yyl1184 := r.ReadMapStart() + if yyl1184 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1184, d) + } + } else if yyct1184 == codecSelferValueTypeArray1234 { + yyl1184 := r.ReadArrayStart() + if yyl1184 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1184, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1185Slc = r.DecodeBytes(yys1185Slc, true, true) + yys1185 := string(yys1185Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1185 { + case "podSelector": + if r.TryDecodeAsNil() { + x.PodSelector = pkg1_unversioned.LabelSelector{} + } else { + yyv1186 := &x.PodSelector + yym1187 := z.DecBinary() + _ = yym1187 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1186) { + } else { + z.DecFallback(yyv1186, false) + } + } + case "ingress": + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv1188 := &x.Ingress + yym1189 := z.DecBinary() + _ = yym1189 + if false { + } else { + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1188), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1185) + } // end switch yys1185 + } // end for yyj1185 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1190 = r.CheckBreak() + } + if yyb1190 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodSelector = pkg1_unversioned.LabelSelector{} + } else { + yyv1191 := &x.PodSelector + yym1192 := z.DecBinary() + _ = yym1192 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1191) { + } else { + z.DecFallback(yyv1191, false) + } + } + yyj1190++ + if yyhl1190 { + yyb1190 = yyj1190 > l + } else { + yyb1190 = r.CheckBreak() + } + if yyb1190 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv1193 := &x.Ingress + yym1194 := z.DecBinary() + _ = yym1194 + if false { + } else { + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1193), d) + } + } + for { + yyj1190++ + if yyhl1190 { + yyb1190 = yyj1190 > l + } else { + yyb1190 = r.CheckBreak() + } + if yyb1190 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1190-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1195 := z.EncBinary() + _ = yym1195 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1196 = 0 + for _, b := range yyq1196 { + if b { + yynn1196++ + } + } + r.EncodeMapStart(yynn1196) + yynn1196 = 0 + } + if yyr1196 || yy2arr1196 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1196[0] { + if x.Ports == nil { + r.EncodeNil() + } else { + yym1198 := z.EncBinary() + _ = yym1198 + if false { + } else { + h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1196[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 + if false { + } else { + h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) + } + } + } + } + if yyr1196 || yy2arr1196 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1196[1] { + if x.From == nil { + r.EncodeNil() + } else { + yym1201 := z.EncBinary() + _ = yym1201 + if false { + } else { + h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1196[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 + if false { + } else { + h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) + } + } + } + } + if yyr1196 || yy2arr1196 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1203 := z.DecBinary() + _ = yym1203 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1204 := r.ContainerType() + if yyct1204 == codecSelferValueTypeMap1234 { + yyl1204 := r.ReadMapStart() + if yyl1204 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1204, d) + } + } else if yyct1204 == codecSelferValueTypeArray1234 { + yyl1204 := r.ReadArrayStart() + if yyl1204 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1204, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + 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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1205Slc = r.DecodeBytes(yys1205Slc, true, true) + yys1205 := string(yys1205Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1205 { + case "ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv1206 := &x.Ports + yym1207 := z.DecBinary() + _ = yym1207 + if false { + } else { + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1206), d) + } + } + case "from": + if r.TryDecodeAsNil() { + x.From = nil + } else { + yyv1208 := &x.From + yym1209 := z.DecBinary() + _ = yym1209 + if false { + } else { + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1208), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1205) + } // end switch yys1205 + } // end for yyj1205 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + 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 + } else { + yyb1210 = r.CheckBreak() + } + if yyb1210 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + yyv1211 := &x.Ports + yym1212 := z.DecBinary() + _ = yym1212 + if false { + } else { + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1211), d) + } + } + yyj1210++ + if yyhl1210 { + yyb1210 = yyj1210 > l + } else { + yyb1210 = r.CheckBreak() + } + if yyb1210 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.From = nil + } else { + yyv1213 := &x.From + yym1214 := z.DecBinary() + _ = yym1214 + if false { + } else { + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1213), d) + } + } + for { + yyj1210++ + if yyhl1210 { + yyb1210 = yyj1210 > l + } else { + yyb1210 = r.CheckBreak() + } + if yyb1210 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1210-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1215 := z.EncBinary() + _ = yym1215 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1216 = 0 + for _, b := range yyq1216 { + if b { + yynn1216++ + } + } + r.EncodeMapStart(yynn1216) + yynn1216 = 0 + } + if yyr1216 || yy2arr1216 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1216[0] { + if x.Protocol == nil { + r.EncodeNil() + } else { + yy1218 := *x.Protocol + yym1219 := z.EncBinary() + _ = yym1219 + if false { + } else if z.HasExtensions() && z.EncExt(yy1218) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1218)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1216[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 + if false { + } else if z.HasExtensions() && z.EncExt(yy1220) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1220)) + } + } + } + } + if yyr1216 || yy2arr1216 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1216[1] { + if x.Port == nil { + r.EncodeNil() + } else { + yym1223 := z.EncBinary() + _ = yym1223 + if false { + } else if z.HasExtensions() && z.EncExt(x.Port) { + } else if !yym1223 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Port) + } else { + z.EncFallback(x.Port) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1216[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.Port) { + } else if !yym1224 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Port) + } else { + z.EncFallback(x.Port) + } + } + } + } + if yyr1216 || yy2arr1216 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1225 := z.DecBinary() + _ = yym1225 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1226 := r.ContainerType() + if yyct1226 == codecSelferValueTypeMap1234 { + yyl1226 := r.ReadMapStart() + if yyl1226 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1226, d) + } + } else if yyct1226 == codecSelferValueTypeArray1234 { + yyl1226 := r.ReadArrayStart() + if yyl1226 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1226, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1227Slc = r.DecodeBytes(yys1227Slc, true, true) + yys1227 := string(yys1227Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1227 { + case "protocol": + if r.TryDecodeAsNil() { + if x.Protocol != nil { + x.Protocol = nil + } + } else { + if x.Protocol == nil { + x.Protocol = new(pkg2_api.Protocol) + } + x.Protocol.CodecDecodeSelf(d) + } + case "port": + if r.TryDecodeAsNil() { + if x.Port != nil { + x.Port = nil + } + } else { + if x.Port == nil { + x.Port = new(pkg5_intstr.IntOrString) + } + yym1230 := z.DecBinary() + _ = yym1230 + if false { + } else if z.HasExtensions() && z.DecExt(x.Port) { + } else if !yym1230 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Port) + } else { + z.DecFallback(x.Port, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1227) + } // end switch yys1227 + } // end for yyj1227 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1231 = r.CheckBreak() + } + if yyb1231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Protocol != nil { + x.Protocol = nil + } + } else { + if x.Protocol == nil { + x.Protocol = new(pkg2_api.Protocol) + } + x.Protocol.CodecDecodeSelf(d) + } + yyj1231++ + if yyhl1231 { + yyb1231 = yyj1231 > l + } else { + yyb1231 = r.CheckBreak() + } + if yyb1231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Port != nil { + x.Port = nil + } + } else { + if x.Port == nil { + x.Port = new(pkg5_intstr.IntOrString) + } + yym1234 := z.DecBinary() + _ = yym1234 + if false { + } else if z.HasExtensions() && z.DecExt(x.Port) { + } else if !yym1234 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Port) + } else { + z.DecFallback(x.Port, false) + } + } + for { + yyj1231++ + if yyhl1231 { + yyb1231 = yyj1231 > l + } else { + yyb1231 = r.CheckBreak() + } + if yyb1231 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1231-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1235 := z.EncBinary() + _ = yym1235 + 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 { + r.EncodeArrayStart(2) + } else { + yynn1236 = 0 + for _, b := range yyq1236 { + if b { + yynn1236++ + } + } + r.EncodeMapStart(yynn1236) + yynn1236 = 0 + } + if yyr1236 || yy2arr1236 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1236[0] { + if x.PodSelector == nil { + r.EncodeNil() + } else { + yym1238 := z.EncBinary() + _ = yym1238 + if false { + } else if z.HasExtensions() && z.EncExt(x.PodSelector) { + } else { + z.EncFallback(x.PodSelector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1236[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.PodSelector) { + } else { + z.EncFallback(x.PodSelector) + } + } + } + } + if yyr1236 || yy2arr1236 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1236[1] { + if x.NamespaceSelector == nil { + r.EncodeNil() + } else { + yym1241 := z.EncBinary() + _ = yym1241 + if false { + } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { + } else { + z.EncFallback(x.NamespaceSelector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1236[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 + if false { + } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { + } else { + z.EncFallback(x.NamespaceSelector) + } + } + } + } + if yyr1236 || yy2arr1236 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1243 := z.DecBinary() + _ = yym1243 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1244 := r.ContainerType() + if yyct1244 == codecSelferValueTypeMap1234 { + yyl1244 := r.ReadMapStart() + if yyl1244 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1244, d) + } + } else if yyct1244 == codecSelferValueTypeArray1234 { + yyl1244 := r.ReadArrayStart() + if yyl1244 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1244, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1245Slc = r.DecodeBytes(yys1245Slc, true, true) + yys1245 := string(yys1245Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1245 { + case "podSelector": + if r.TryDecodeAsNil() { + if x.PodSelector != nil { + x.PodSelector = nil + } + } else { + if x.PodSelector == nil { + x.PodSelector = new(pkg1_unversioned.LabelSelector) + } + yym1247 := z.DecBinary() + _ = yym1247 + if false { + } else if z.HasExtensions() && z.DecExt(x.PodSelector) { + } else { + z.DecFallback(x.PodSelector, false) + } + } + case "namespaceSelector": + if r.TryDecodeAsNil() { + if x.NamespaceSelector != nil { + x.NamespaceSelector = nil + } + } else { + if x.NamespaceSelector == nil { + x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) + } + yym1249 := z.DecBinary() + _ = yym1249 + if false { + } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { + } else { + z.DecFallback(x.NamespaceSelector, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1245) + } // end switch yys1245 + } // end for yyj1245 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1250 = r.CheckBreak() + } + if yyb1250 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodSelector != nil { + x.PodSelector = nil + } + } else { + if x.PodSelector == nil { + x.PodSelector = new(pkg1_unversioned.LabelSelector) + } + yym1252 := z.DecBinary() + _ = yym1252 + if false { + } else if z.HasExtensions() && z.DecExt(x.PodSelector) { + } else { + z.DecFallback(x.PodSelector, false) + } + } + yyj1250++ + if yyhl1250 { + yyb1250 = yyj1250 > l + } else { + yyb1250 = r.CheckBreak() + } + if yyb1250 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.NamespaceSelector != nil { + x.NamespaceSelector = nil + } + } else { + if x.NamespaceSelector == nil { + x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) + } + yym1254 := z.DecBinary() + _ = yym1254 + if false { + } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { + } else { + z.DecFallback(x.NamespaceSelector, false) + } + } + for { + yyj1250++ + if yyhl1250 { + yyb1250 = yyj1250 > l + } else { + yyb1250 = r.CheckBreak() + } + if yyb1250 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1250-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1255 := z.EncBinary() + _ = yym1255 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1256 = 1 + for _, b := range yyq1256 { + if b { + yynn1256++ + } + } + r.EncodeMapStart(yynn1256) + yynn1256 = 0 + } + if yyr1256 || yy2arr1256 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1256[0] { + yym1258 := z.EncBinary() + _ = yym1258 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1256[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1259 := z.EncBinary() + _ = yym1259 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1256 || yy2arr1256 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1256[1] { + yym1261 := z.EncBinary() + _ = yym1261 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1256[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1262 := z.EncBinary() + _ = yym1262 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1256 || yy2arr1256 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1256[2] { + yy1264 := &x.ListMeta + yym1265 := z.EncBinary() + _ = yym1265 + if false { + } else if z.HasExtensions() && z.EncExt(yy1264) { + } else { + z.EncFallback(yy1264) + } + } else { + r.EncodeNil() + } + } else { + if yyq1256[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1266 := &x.ListMeta + yym1267 := z.EncBinary() + _ = yym1267 + if false { + } else if z.HasExtensions() && z.EncExt(yy1266) { + } else { + z.EncFallback(yy1266) + } + } + } + if yyr1256 || yy2arr1256 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1269 := z.EncBinary() + _ = yym1269 + if false { + } else { + h.encSliceNetworkPolicy(([]NetworkPolicy)(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 { + yym1270 := z.EncBinary() + _ = yym1270 + if false { + } else { + h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) + } + } + } + if yyr1256 || yy2arr1256 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1271 := z.DecBinary() + _ = yym1271 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1272 := r.ContainerType() + if yyct1272 == codecSelferValueTypeMap1234 { + yyl1272 := r.ReadMapStart() + if yyl1272 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1272, d) + } + } else if yyct1272 == codecSelferValueTypeArray1234 { + yyl1272 := r.ReadArrayStart() + if yyl1272 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1272, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1273Slc = r.DecodeBytes(yys1273Slc, true, true) + yys1273 := string(yys1273Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1273 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv1276 := &x.ListMeta + yym1277 := z.DecBinary() + _ = yym1277 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1276) { + } else { + z.DecFallback(yyv1276, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1278 := &x.Items + yym1279 := z.DecBinary() + _ = yym1279 + if false { + } else { + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1278), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1273) + } // end switch yys1273 + } // end for yyj1273 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv1283 := &x.ListMeta + yym1284 := z.DecBinary() + _ = yym1284 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1283) { + } else { + z.DecFallback(yyv1283, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1285 := &x.Items + yym1286 := z.DecBinary() + _ = yym1286 + if false { + } else { + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1285), d) + } + } + for { + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1280-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1287 := z.EncBinary() + _ = yym1287 + 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 { + r.EncodeArrayStart(5) + } else { + yynn1288 = 1 + for _, b := range yyq1288 { + if b { + yynn1288++ + } + } + r.EncodeMapStart(yynn1288) + yynn1288 = 0 + } + if yyr1288 || yy2arr1288 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1288[0] { + yym1290 := z.EncBinary() + _ = yym1290 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1288[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1291 := z.EncBinary() + _ = yym1291 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1288 || yy2arr1288 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1288[1] { + yym1293 := z.EncBinary() + _ = yym1293 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1288[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1294 := z.EncBinary() + _ = yym1294 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1288 || yy2arr1288 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1288[2] { + yy1296 := &x.ObjectMeta + yy1296.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq1288[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1297 := &x.ObjectMeta + yy1297.CodecEncodeSelf(e) + } + } + if yyr1288 || yy2arr1288 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1299 := z.EncBinary() + _ = yym1299 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("provisioner")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1300 := z.EncBinary() + _ = yym1300 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) + } + } + if yyr1288 || yy2arr1288 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1288[4] { + if x.Parameters == nil { + r.EncodeNil() + } else { + yym1302 := z.EncBinary() + _ = yym1302 + if false { + } else { + z.F.EncMapStringStringV(x.Parameters, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1288[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 + if false { + } else { + z.F.EncMapStringStringV(x.Parameters, false, e) + } + } + } + } + if yyr1288 || yy2arr1288 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1304 := z.DecBinary() + _ = yym1304 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1305 := r.ContainerType() + if yyct1305 == codecSelferValueTypeMap1234 { + yyl1305 := r.ReadMapStart() + if yyl1305 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1305, d) + } + } else if yyct1305 == codecSelferValueTypeArray1234 { + yyl1305 := r.ReadArrayStart() + if yyl1305 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1305, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1306Slc = r.DecodeBytes(yys1306Slc, true, true) + yys1306 := string(yys1306Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1306 { + 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_api.ObjectMeta{} + } else { + yyv1309 := &x.ObjectMeta + yyv1309.CodecDecodeSelf(d) + } + case "provisioner": + if r.TryDecodeAsNil() { + x.Provisioner = "" + } else { + x.Provisioner = string(r.DecodeString()) + } + case "parameters": + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + yyv1311 := &x.Parameters + yym1312 := z.DecBinary() + _ = yym1312 + if false { + } else { + z.F.DecMapStringStringX(yyv1311, false, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1306) + } // end switch yys1306 + } // end for yyj1306 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1313 = r.CheckBreak() + } + if yyb1313 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1313++ + if yyhl1313 { + yyb1313 = yyj1313 > l + } else { + yyb1313 = r.CheckBreak() + } + if yyb1313 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1313++ + if yyhl1313 { + yyb1313 = yyj1313 > l + } else { + yyb1313 = r.CheckBreak() + } + if yyb1313 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv1316 := &x.ObjectMeta + yyv1316.CodecDecodeSelf(d) + } + yyj1313++ + if yyhl1313 { + yyb1313 = yyj1313 > l + } else { + yyb1313 = r.CheckBreak() + } + if yyb1313 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Provisioner = "" + } else { + x.Provisioner = string(r.DecodeString()) + } + yyj1313++ + if yyhl1313 { + yyb1313 = yyj1313 > l + } else { + yyb1313 = r.CheckBreak() + } + if yyb1313 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + yyv1318 := &x.Parameters + yym1319 := z.DecBinary() + _ = yym1319 + if false { + } else { + z.F.DecMapStringStringX(yyv1318, false, d) + } + } + for { + yyj1313++ + if yyhl1313 { + yyb1313 = yyj1313 > l + } else { + yyb1313 = r.CheckBreak() + } + if yyb1313 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1313-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1320 := z.EncBinary() + _ = yym1320 + 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 { + r.EncodeArrayStart(4) + } else { + yynn1321 = 1 + for _, b := range yyq1321 { + if b { + yynn1321++ + } + } + r.EncodeMapStart(yynn1321) + yynn1321 = 0 + } + if yyr1321 || yy2arr1321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1321[0] { + yym1323 := z.EncBinary() + _ = yym1323 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1321[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1324 := z.EncBinary() + _ = yym1324 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1321 || yy2arr1321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1321[1] { + yym1326 := z.EncBinary() + _ = yym1326 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1321[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1327 := z.EncBinary() + _ = yym1327 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1321 || yy2arr1321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1321[2] { + yy1329 := &x.ListMeta + yym1330 := z.EncBinary() + _ = yym1330 + if false { + } else if z.HasExtensions() && z.EncExt(yy1329) { + } else { + z.EncFallback(yy1329) + } + } else { + r.EncodeNil() + } + } else { + if yyq1321[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1331 := &x.ListMeta + yym1332 := z.EncBinary() + _ = yym1332 + if false { + } else if z.HasExtensions() && z.EncExt(yy1331) { + } else { + z.EncFallback(yy1331) + } + } + } + if yyr1321 || yy2arr1321 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1334 := z.EncBinary() + _ = yym1334 + if false { + } else { + h.encSliceStorageClass(([]StorageClass)(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 { + yym1335 := z.EncBinary() + _ = yym1335 + if false { + } else { + h.encSliceStorageClass(([]StorageClass)(x.Items), e) + } + } + } + if yyr1321 || yy2arr1321 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1336 := z.DecBinary() + _ = yym1336 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1337 := r.ContainerType() + if yyct1337 == codecSelferValueTypeMap1234 { + yyl1337 := r.ReadMapStart() + if yyl1337 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1337, d) + } + } else if yyct1337 == codecSelferValueTypeArray1234 { + yyl1337 := r.ReadArrayStart() + if yyl1337 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1337, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +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 { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1338Slc = r.DecodeBytes(yys1338Slc, true, true) + yys1338 := string(yys1338Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1338 { + 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 = pkg1_unversioned.ListMeta{} + } else { + yyv1341 := &x.ListMeta + yym1342 := z.DecBinary() + _ = yym1342 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1341) { + } else { + z.DecFallback(yyv1341, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1343 := &x.Items + yym1344 := z.DecBinary() + _ = yym1344 + if false { + } else { + h.decSliceStorageClass((*[]StorageClass)(yyv1343), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1338) + } // end switch yys1338 + } // end for yyj1338 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +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 + } else { + yyb1345 = r.CheckBreak() + } + if yyb1345 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1345++ + if yyhl1345 { + yyb1345 = yyj1345 > l + } else { + yyb1345 = r.CheckBreak() + } + if yyb1345 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1345++ + if yyhl1345 { + yyb1345 = yyj1345 > l + } else { + yyb1345 = r.CheckBreak() + } + if yyb1345 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv1348 := &x.ListMeta + yym1349 := z.DecBinary() + _ = yym1349 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1348) { + } else { + z.DecFallback(yyv1348, false) + } + } + yyj1345++ + if yyhl1345 { + yyb1345 = yyj1345 > l + } else { + yyb1345 = r.CheckBreak() + } + if yyb1345 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1350 := &x.Items + yym1351 := z.DecBinary() + _ = yym1351 + if false { + } else { + h.decSliceStorageClass((*[]StorageClass)(yyv1350), d) + } + } + for { + yyj1345++ + if yyhl1345 { + yyb1345 = yyj1345 > l + } else { + yyb1345 = r.CheckBreak() + } + if yyb1345 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1345-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1352 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1353 := &yyv1352 + yy1353.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1354 > 0 { + var yyrr1354, yyrl1354 int + var yyrt1354 bool + if yyl1354 > cap(yyv1354) { + + yyrg1354 := len(yyv1354) > 0 + yyv21354 := yyv1354 + yyrl1354, yyrt1354 = z.DecInferLen(yyl1354, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1354 { + if yyrl1354 <= cap(yyv1354) { + yyv1354 = yyv1354[:yyrl1354] + } else { + yyv1354 = make([]CustomMetricTarget, yyrl1354) + } + } else { + yyv1354 = make([]CustomMetricTarget, yyrl1354) + } + yyc1354 = true + yyrr1354 = len(yyv1354) + if yyrg1354 { + copy(yyv1354, yyv21354) + } + } else if yyl1354 != len(yyv1354) { + yyv1354 = yyv1354[:yyl1354] + yyc1354 = true + } + yyj1354 := 0 + for ; yyj1354 < yyrr1354; yyj1354++ { + yyh1354.ElemContainerState(yyj1354) + if r.TryDecodeAsNil() { + yyv1354[yyj1354] = CustomMetricTarget{} + } else { + yyv1355 := &yyv1354[yyj1354] + yyv1355.CodecDecodeSelf(d) + } + + } + if yyrt1354 { + for ; yyj1354 < yyl1354; yyj1354++ { + yyv1354 = append(yyv1354, CustomMetricTarget{}) + yyh1354.ElemContainerState(yyj1354) + if r.TryDecodeAsNil() { + yyv1354[yyj1354] = CustomMetricTarget{} + } else { + yyv1356 := &yyv1354[yyj1354] + yyv1356.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1354 := 0 + for ; !r.CheckBreak(); yyj1354++ { + + if yyj1354 >= len(yyv1354) { + yyv1354 = append(yyv1354, CustomMetricTarget{}) // var yyz1354 CustomMetricTarget + yyc1354 = true + } + yyh1354.ElemContainerState(yyj1354) + if yyj1354 < len(yyv1354) { + if r.TryDecodeAsNil() { + yyv1354[yyj1354] = CustomMetricTarget{} + } else { + yyv1357 := &yyv1354[yyj1354] + yyv1357.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1354 < len(yyv1354) { + yyv1354 = yyv1354[:yyj1354] + yyc1354 = true + } else if yyj1354 == 0 && yyv1354 == nil { + yyv1354 = []CustomMetricTarget{} + yyc1354 = true + } + } + yyh1354.End() + if yyc1354 { + *v = yyv1354 + } +} + +func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurrentStatus, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1358 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1359 := &yyv1358 + yy1359.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurrentStatus, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1360 > 0 { + var yyrr1360, yyrl1360 int + var yyrt1360 bool + if yyl1360 > cap(yyv1360) { + + yyrg1360 := len(yyv1360) > 0 + yyv21360 := yyv1360 + yyrl1360, yyrt1360 = z.DecInferLen(yyl1360, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1360 { + if yyrl1360 <= cap(yyv1360) { + yyv1360 = yyv1360[:yyrl1360] + } else { + yyv1360 = make([]CustomMetricCurrentStatus, yyrl1360) + } + } else { + yyv1360 = make([]CustomMetricCurrentStatus, yyrl1360) + } + yyc1360 = true + yyrr1360 = len(yyv1360) + if yyrg1360 { + copy(yyv1360, yyv21360) + } + } else if yyl1360 != len(yyv1360) { + yyv1360 = yyv1360[:yyl1360] + yyc1360 = true + } + yyj1360 := 0 + for ; yyj1360 < yyrr1360; yyj1360++ { + yyh1360.ElemContainerState(yyj1360) + if r.TryDecodeAsNil() { + yyv1360[yyj1360] = CustomMetricCurrentStatus{} + } else { + yyv1361 := &yyv1360[yyj1360] + yyv1361.CodecDecodeSelf(d) + } + + } + if yyrt1360 { + for ; yyj1360 < yyl1360; yyj1360++ { + yyv1360 = append(yyv1360, CustomMetricCurrentStatus{}) + yyh1360.ElemContainerState(yyj1360) + if r.TryDecodeAsNil() { + yyv1360[yyj1360] = CustomMetricCurrentStatus{} + } else { + yyv1362 := &yyv1360[yyj1360] + yyv1362.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1360 := 0 + for ; !r.CheckBreak(); yyj1360++ { + + if yyj1360 >= len(yyv1360) { + yyv1360 = append(yyv1360, CustomMetricCurrentStatus{}) // var yyz1360 CustomMetricCurrentStatus + yyc1360 = true + } + yyh1360.ElemContainerState(yyj1360) + if yyj1360 < len(yyv1360) { + if r.TryDecodeAsNil() { + yyv1360[yyj1360] = CustomMetricCurrentStatus{} + } else { + yyv1363 := &yyv1360[yyj1360] + yyv1363.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1360 < len(yyv1360) { + yyv1360 = yyv1360[:yyj1360] + yyc1360 = true + } else if yyj1360 == 0 && yyv1360 == nil { + yyv1360 = []CustomMetricCurrentStatus{} + yyc1360 = true + } + } + yyh1360.End() + if yyc1360 { + *v = yyv1360 + } +} + +func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1364 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1365 := &yyv1364 + yy1365.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1366 > 0 { + var yyrr1366, yyrl1366 int + var yyrt1366 bool + if yyl1366 > cap(yyv1366) { + + yyrg1366 := len(yyv1366) > 0 + yyv21366 := yyv1366 + yyrl1366, yyrt1366 = z.DecInferLen(yyl1366, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1366 { + if yyrl1366 <= cap(yyv1366) { + yyv1366 = yyv1366[:yyrl1366] + } else { + yyv1366 = make([]APIVersion, yyrl1366) + } + } else { + yyv1366 = make([]APIVersion, yyrl1366) + } + yyc1366 = true + yyrr1366 = len(yyv1366) + if yyrg1366 { + copy(yyv1366, yyv21366) + } + } else if yyl1366 != len(yyv1366) { + yyv1366 = yyv1366[:yyl1366] + yyc1366 = true + } + yyj1366 := 0 + for ; yyj1366 < yyrr1366; yyj1366++ { + yyh1366.ElemContainerState(yyj1366) + if r.TryDecodeAsNil() { + yyv1366[yyj1366] = APIVersion{} + } else { + yyv1367 := &yyv1366[yyj1366] + yyv1367.CodecDecodeSelf(d) + } + + } + if yyrt1366 { + for ; yyj1366 < yyl1366; yyj1366++ { + yyv1366 = append(yyv1366, APIVersion{}) + yyh1366.ElemContainerState(yyj1366) + if r.TryDecodeAsNil() { + yyv1366[yyj1366] = APIVersion{} + } else { + yyv1368 := &yyv1366[yyj1366] + yyv1368.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1366 := 0 + for ; !r.CheckBreak(); yyj1366++ { + + if yyj1366 >= len(yyv1366) { + yyv1366 = append(yyv1366, APIVersion{}) // var yyz1366 APIVersion + yyc1366 = true + } + yyh1366.ElemContainerState(yyj1366) + if yyj1366 < len(yyv1366) { + if r.TryDecodeAsNil() { + yyv1366[yyj1366] = APIVersion{} + } else { + yyv1369 := &yyv1366[yyj1366] + yyv1369.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1366 < len(yyv1366) { + yyv1366 = yyv1366[:yyj1366] + yyc1366 = true + } else if yyj1366 == 0 && yyv1366 == nil { + yyv1366 = []APIVersion{} + yyc1366 = true + } + } + yyh1366.End() + if yyc1366 { + *v = yyv1366 + } +} + +func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1370 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1371 := &yyv1370 + yy1371.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1372 > 0 { + var yyrr1372, yyrl1372 int + var yyrt1372 bool + if yyl1372 > cap(yyv1372) { + + yyrg1372 := len(yyv1372) > 0 + yyv21372 := yyv1372 + yyrl1372, yyrt1372 = z.DecInferLen(yyl1372, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1372 { + if yyrl1372 <= cap(yyv1372) { + yyv1372 = yyv1372[:yyrl1372] + } else { + yyv1372 = make([]ThirdPartyResource, yyrl1372) + } + } else { + yyv1372 = make([]ThirdPartyResource, yyrl1372) + } + yyc1372 = true + yyrr1372 = len(yyv1372) + if yyrg1372 { + copy(yyv1372, yyv21372) + } + } else if yyl1372 != len(yyv1372) { + yyv1372 = yyv1372[:yyl1372] + yyc1372 = true + } + yyj1372 := 0 + for ; yyj1372 < yyrr1372; yyj1372++ { + yyh1372.ElemContainerState(yyj1372) + if r.TryDecodeAsNil() { + yyv1372[yyj1372] = ThirdPartyResource{} + } else { + yyv1373 := &yyv1372[yyj1372] + yyv1373.CodecDecodeSelf(d) + } + + } + if yyrt1372 { + for ; yyj1372 < yyl1372; yyj1372++ { + yyv1372 = append(yyv1372, ThirdPartyResource{}) + yyh1372.ElemContainerState(yyj1372) + if r.TryDecodeAsNil() { + yyv1372[yyj1372] = ThirdPartyResource{} + } else { + yyv1374 := &yyv1372[yyj1372] + yyv1374.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1372 := 0 + for ; !r.CheckBreak(); yyj1372++ { + + if yyj1372 >= len(yyv1372) { + yyv1372 = append(yyv1372, ThirdPartyResource{}) // var yyz1372 ThirdPartyResource + yyc1372 = true + } + yyh1372.ElemContainerState(yyj1372) + if yyj1372 < len(yyv1372) { + if r.TryDecodeAsNil() { + yyv1372[yyj1372] = ThirdPartyResource{} + } else { + yyv1375 := &yyv1372[yyj1372] + yyv1375.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1372 < len(yyv1372) { + yyv1372 = yyv1372[:yyj1372] + yyc1372 = true + } else if yyj1372 == 0 && yyv1372 == nil { + yyv1372 = []ThirdPartyResource{} + yyc1372 = true + } + } + yyh1372.End() + if yyc1372 { + *v = yyv1372 + } +} + +func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1376 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1377 := &yyv1376 + yy1377.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1378 > 0 { + var yyrr1378, yyrl1378 int + var yyrt1378 bool + if yyl1378 > cap(yyv1378) { + + yyrg1378 := len(yyv1378) > 0 + yyv21378 := yyv1378 + yyrl1378, yyrt1378 = z.DecInferLen(yyl1378, z.DecBasicHandle().MaxInitLen, 768) + if yyrt1378 { + if yyrl1378 <= cap(yyv1378) { + yyv1378 = yyv1378[:yyrl1378] + } else { + yyv1378 = make([]Deployment, yyrl1378) + } + } else { + yyv1378 = make([]Deployment, yyrl1378) + } + yyc1378 = true + yyrr1378 = len(yyv1378) + if yyrg1378 { + copy(yyv1378, yyv21378) + } + } else if yyl1378 != len(yyv1378) { + yyv1378 = yyv1378[:yyl1378] + yyc1378 = true + } + yyj1378 := 0 + for ; yyj1378 < yyrr1378; yyj1378++ { + yyh1378.ElemContainerState(yyj1378) + if r.TryDecodeAsNil() { + yyv1378[yyj1378] = Deployment{} + } else { + yyv1379 := &yyv1378[yyj1378] + yyv1379.CodecDecodeSelf(d) + } + + } + if yyrt1378 { + for ; yyj1378 < yyl1378; yyj1378++ { + yyv1378 = append(yyv1378, Deployment{}) + yyh1378.ElemContainerState(yyj1378) + if r.TryDecodeAsNil() { + yyv1378[yyj1378] = Deployment{} + } else { + yyv1380 := &yyv1378[yyj1378] + yyv1380.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1378 := 0 + for ; !r.CheckBreak(); yyj1378++ { + + if yyj1378 >= len(yyv1378) { + yyv1378 = append(yyv1378, Deployment{}) // var yyz1378 Deployment + yyc1378 = true + } + yyh1378.ElemContainerState(yyj1378) + if yyj1378 < len(yyv1378) { + if r.TryDecodeAsNil() { + yyv1378[yyj1378] = Deployment{} + } else { + yyv1381 := &yyv1378[yyj1378] + yyv1381.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1378 < len(yyv1378) { + yyv1378 = yyv1378[:yyj1378] + yyc1378 = true + } else if yyj1378 == 0 && yyv1378 == nil { + yyv1378 = []Deployment{} + yyc1378 = true + } + } + yyh1378.End() + if yyc1378 { + *v = yyv1378 + } +} + +func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1382 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1383 := &yyv1382 + yy1383.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1384 > 0 { + var yyrr1384, yyrl1384 int + var yyrt1384 bool + if yyl1384 > cap(yyv1384) { + + yyrg1384 := len(yyv1384) > 0 + yyv21384 := yyv1384 + yyrl1384, yyrt1384 = z.DecInferLen(yyl1384, z.DecBasicHandle().MaxInitLen, 696) + if yyrt1384 { + if yyrl1384 <= cap(yyv1384) { + yyv1384 = yyv1384[:yyrl1384] + } else { + yyv1384 = make([]DaemonSet, yyrl1384) + } + } else { + yyv1384 = make([]DaemonSet, yyrl1384) + } + yyc1384 = true + yyrr1384 = len(yyv1384) + if yyrg1384 { + copy(yyv1384, yyv21384) + } + } else if yyl1384 != len(yyv1384) { + yyv1384 = yyv1384[:yyl1384] + yyc1384 = true + } + yyj1384 := 0 + for ; yyj1384 < yyrr1384; yyj1384++ { + yyh1384.ElemContainerState(yyj1384) + if r.TryDecodeAsNil() { + yyv1384[yyj1384] = DaemonSet{} + } else { + yyv1385 := &yyv1384[yyj1384] + yyv1385.CodecDecodeSelf(d) + } + + } + if yyrt1384 { + for ; yyj1384 < yyl1384; yyj1384++ { + yyv1384 = append(yyv1384, DaemonSet{}) + yyh1384.ElemContainerState(yyj1384) + if r.TryDecodeAsNil() { + yyv1384[yyj1384] = DaemonSet{} + } else { + yyv1386 := &yyv1384[yyj1384] + yyv1386.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1384 := 0 + for ; !r.CheckBreak(); yyj1384++ { + + if yyj1384 >= len(yyv1384) { + yyv1384 = append(yyv1384, DaemonSet{}) // var yyz1384 DaemonSet + yyc1384 = true + } + yyh1384.ElemContainerState(yyj1384) + if yyj1384 < len(yyv1384) { + if r.TryDecodeAsNil() { + yyv1384[yyj1384] = DaemonSet{} + } else { + yyv1387 := &yyv1384[yyj1384] + yyv1387.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1384 < len(yyv1384) { + yyv1384 = yyv1384[:yyj1384] + yyc1384 = true + } else if yyj1384 == 0 && yyv1384 == nil { + yyv1384 = []DaemonSet{} + yyc1384 = true + } + } + yyh1384.End() + if yyc1384 { + *v = yyv1384 + } +} + +func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceData, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1388 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1389 := &yyv1388 + yy1389.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceData, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1390 > 0 { + var yyrr1390, yyrl1390 int + var yyrt1390 bool + if yyl1390 > cap(yyv1390) { + + yyrg1390 := len(yyv1390) > 0 + yyv21390 := yyv1390 + yyrl1390, yyrt1390 = z.DecInferLen(yyl1390, z.DecBasicHandle().MaxInitLen, 264) + if yyrt1390 { + if yyrl1390 <= cap(yyv1390) { + yyv1390 = yyv1390[:yyrl1390] + } else { + yyv1390 = make([]ThirdPartyResourceData, yyrl1390) + } + } else { + yyv1390 = make([]ThirdPartyResourceData, yyrl1390) + } + yyc1390 = true + yyrr1390 = len(yyv1390) + if yyrg1390 { + copy(yyv1390, yyv21390) + } + } else if yyl1390 != len(yyv1390) { + yyv1390 = yyv1390[:yyl1390] + yyc1390 = true + } + yyj1390 := 0 + for ; yyj1390 < yyrr1390; yyj1390++ { + yyh1390.ElemContainerState(yyj1390) + if r.TryDecodeAsNil() { + yyv1390[yyj1390] = ThirdPartyResourceData{} + } else { + yyv1391 := &yyv1390[yyj1390] + yyv1391.CodecDecodeSelf(d) + } + + } + if yyrt1390 { + for ; yyj1390 < yyl1390; yyj1390++ { + yyv1390 = append(yyv1390, ThirdPartyResourceData{}) + yyh1390.ElemContainerState(yyj1390) + if r.TryDecodeAsNil() { + yyv1390[yyj1390] = ThirdPartyResourceData{} + } else { + yyv1392 := &yyv1390[yyj1390] + yyv1392.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1390 := 0 + for ; !r.CheckBreak(); yyj1390++ { + + if yyj1390 >= len(yyv1390) { + yyv1390 = append(yyv1390, ThirdPartyResourceData{}) // var yyz1390 ThirdPartyResourceData + yyc1390 = true + } + yyh1390.ElemContainerState(yyj1390) + if yyj1390 < len(yyv1390) { + if r.TryDecodeAsNil() { + yyv1390[yyj1390] = ThirdPartyResourceData{} + } else { + yyv1393 := &yyv1390[yyj1390] + yyv1393.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1390 < len(yyv1390) { + yyv1390 = yyv1390[:yyj1390] + yyc1390 = true + } else if yyj1390 == 0 && yyv1390 == nil { + yyv1390 = []ThirdPartyResourceData{} + yyc1390 = true + } + } + yyh1390.End() + if yyc1390 { + *v = yyv1390 + } +} + +func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1394 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1395 := &yyv1394 + yy1395.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1396 > 0 { + var yyrr1396, yyrl1396 int + var yyrt1396 bool + if yyl1396 > cap(yyv1396) { + + yyrg1396 := len(yyv1396) > 0 + yyv21396 := yyv1396 + yyrl1396, yyrt1396 = z.DecInferLen(yyl1396, z.DecBasicHandle().MaxInitLen, 320) + if yyrt1396 { + if yyrl1396 <= cap(yyv1396) { + yyv1396 = yyv1396[:yyrl1396] + } else { + yyv1396 = make([]Ingress, yyrl1396) + } + } else { + yyv1396 = make([]Ingress, yyrl1396) + } + yyc1396 = true + yyrr1396 = len(yyv1396) + if yyrg1396 { + copy(yyv1396, yyv21396) + } + } else if yyl1396 != len(yyv1396) { + yyv1396 = yyv1396[:yyl1396] + yyc1396 = true + } + yyj1396 := 0 + for ; yyj1396 < yyrr1396; yyj1396++ { + yyh1396.ElemContainerState(yyj1396) + if r.TryDecodeAsNil() { + yyv1396[yyj1396] = Ingress{} + } else { + yyv1397 := &yyv1396[yyj1396] + yyv1397.CodecDecodeSelf(d) + } + + } + if yyrt1396 { + for ; yyj1396 < yyl1396; yyj1396++ { + yyv1396 = append(yyv1396, Ingress{}) + yyh1396.ElemContainerState(yyj1396) + if r.TryDecodeAsNil() { + yyv1396[yyj1396] = Ingress{} + } else { + yyv1398 := &yyv1396[yyj1396] + yyv1398.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1396 := 0 + for ; !r.CheckBreak(); yyj1396++ { + + if yyj1396 >= len(yyv1396) { + yyv1396 = append(yyv1396, Ingress{}) // var yyz1396 Ingress + yyc1396 = true + } + yyh1396.ElemContainerState(yyj1396) + if yyj1396 < len(yyv1396) { + if r.TryDecodeAsNil() { + yyv1396[yyj1396] = Ingress{} + } else { + yyv1399 := &yyv1396[yyj1396] + yyv1399.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1396 < len(yyv1396) { + yyv1396 = yyv1396[:yyj1396] + yyc1396 = true + } else if yyj1396 == 0 && yyv1396 == nil { + yyv1396 = []Ingress{} + yyc1396 = true + } + } + yyh1396.End() + if yyc1396 { + *v = yyv1396 + } +} + +func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1400 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1401 := &yyv1400 + yy1401.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1402 > 0 { + var yyrr1402, yyrl1402 int + var yyrt1402 bool + if yyl1402 > cap(yyv1402) { + + yyrg1402 := len(yyv1402) > 0 + yyv21402 := yyv1402 + yyrl1402, yyrt1402 = z.DecInferLen(yyl1402, z.DecBasicHandle().MaxInitLen, 40) + if yyrt1402 { + if yyrl1402 <= cap(yyv1402) { + yyv1402 = yyv1402[:yyrl1402] + } else { + yyv1402 = make([]IngressTLS, yyrl1402) + } + } else { + yyv1402 = make([]IngressTLS, yyrl1402) + } + yyc1402 = true + yyrr1402 = len(yyv1402) + if yyrg1402 { + copy(yyv1402, yyv21402) + } + } else if yyl1402 != len(yyv1402) { + yyv1402 = yyv1402[:yyl1402] + yyc1402 = true + } + yyj1402 := 0 + for ; yyj1402 < yyrr1402; yyj1402++ { + yyh1402.ElemContainerState(yyj1402) + if r.TryDecodeAsNil() { + yyv1402[yyj1402] = IngressTLS{} + } else { + yyv1403 := &yyv1402[yyj1402] + yyv1403.CodecDecodeSelf(d) + } + + } + if yyrt1402 { + for ; yyj1402 < yyl1402; yyj1402++ { + yyv1402 = append(yyv1402, IngressTLS{}) + yyh1402.ElemContainerState(yyj1402) + if r.TryDecodeAsNil() { + yyv1402[yyj1402] = IngressTLS{} + } else { + yyv1404 := &yyv1402[yyj1402] + yyv1404.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1402 := 0 + for ; !r.CheckBreak(); yyj1402++ { + + if yyj1402 >= len(yyv1402) { + yyv1402 = append(yyv1402, IngressTLS{}) // var yyz1402 IngressTLS + yyc1402 = true + } + yyh1402.ElemContainerState(yyj1402) + if yyj1402 < len(yyv1402) { + if r.TryDecodeAsNil() { + yyv1402[yyj1402] = IngressTLS{} + } else { + yyv1405 := &yyv1402[yyj1402] + yyv1405.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1402 < len(yyv1402) { + yyv1402 = yyv1402[:yyj1402] + yyc1402 = true + } else if yyj1402 == 0 && yyv1402 == nil { + yyv1402 = []IngressTLS{} + yyc1402 = true + } + } + yyh1402.End() + if yyc1402 { + *v = yyv1402 + } +} + +func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1406 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1407 := &yyv1406 + yy1407.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1408 > 0 { + var yyrr1408, yyrl1408 int + var yyrt1408 bool + if yyl1408 > cap(yyv1408) { + + yyrg1408 := len(yyv1408) > 0 + yyv21408 := yyv1408 + yyrl1408, yyrt1408 = z.DecInferLen(yyl1408, z.DecBasicHandle().MaxInitLen, 24) + if yyrt1408 { + if yyrl1408 <= cap(yyv1408) { + yyv1408 = yyv1408[:yyrl1408] + } else { + yyv1408 = make([]IngressRule, yyrl1408) + } + } else { + yyv1408 = make([]IngressRule, yyrl1408) + } + yyc1408 = true + yyrr1408 = len(yyv1408) + if yyrg1408 { + copy(yyv1408, yyv21408) + } + } else if yyl1408 != len(yyv1408) { + yyv1408 = yyv1408[:yyl1408] + yyc1408 = true + } + yyj1408 := 0 + for ; yyj1408 < yyrr1408; yyj1408++ { + yyh1408.ElemContainerState(yyj1408) + if r.TryDecodeAsNil() { + yyv1408[yyj1408] = IngressRule{} + } else { + yyv1409 := &yyv1408[yyj1408] + yyv1409.CodecDecodeSelf(d) + } + + } + if yyrt1408 { + for ; yyj1408 < yyl1408; yyj1408++ { + yyv1408 = append(yyv1408, IngressRule{}) + yyh1408.ElemContainerState(yyj1408) + if r.TryDecodeAsNil() { + yyv1408[yyj1408] = IngressRule{} + } else { + yyv1410 := &yyv1408[yyj1408] + yyv1410.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1408 := 0 + for ; !r.CheckBreak(); yyj1408++ { + + if yyj1408 >= len(yyv1408) { + yyv1408 = append(yyv1408, IngressRule{}) // var yyz1408 IngressRule + yyc1408 = true + } + yyh1408.ElemContainerState(yyj1408) + if yyj1408 < len(yyv1408) { + if r.TryDecodeAsNil() { + yyv1408[yyj1408] = IngressRule{} + } else { + yyv1411 := &yyv1408[yyj1408] + yyv1411.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1408 < len(yyv1408) { + yyv1408 = yyv1408[:yyj1408] + yyc1408 = true + } else if yyj1408 == 0 && yyv1408 == nil { + yyv1408 = []IngressRule{} + yyc1408 = true + } + } + yyh1408.End() + if yyc1408 { + *v = yyv1408 + } +} + +func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1412 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1413 := &yyv1412 + yy1413.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1414 > 0 { + var yyrr1414, yyrl1414 int + var yyrt1414 bool + if yyl1414 > cap(yyv1414) { + + yyrg1414 := len(yyv1414) > 0 + yyv21414 := yyv1414 + yyrl1414, yyrt1414 = z.DecInferLen(yyl1414, z.DecBasicHandle().MaxInitLen, 64) + if yyrt1414 { + if yyrl1414 <= cap(yyv1414) { + yyv1414 = yyv1414[:yyrl1414] + } else { + yyv1414 = make([]HTTPIngressPath, yyrl1414) + } + } else { + yyv1414 = make([]HTTPIngressPath, yyrl1414) + } + yyc1414 = true + yyrr1414 = len(yyv1414) + if yyrg1414 { + copy(yyv1414, yyv21414) + } + } else if yyl1414 != len(yyv1414) { + yyv1414 = yyv1414[:yyl1414] + yyc1414 = true + } + yyj1414 := 0 + for ; yyj1414 < yyrr1414; yyj1414++ { + yyh1414.ElemContainerState(yyj1414) + if r.TryDecodeAsNil() { + yyv1414[yyj1414] = HTTPIngressPath{} + } else { + yyv1415 := &yyv1414[yyj1414] + yyv1415.CodecDecodeSelf(d) + } + + } + if yyrt1414 { + for ; yyj1414 < yyl1414; yyj1414++ { + yyv1414 = append(yyv1414, HTTPIngressPath{}) + yyh1414.ElemContainerState(yyj1414) + if r.TryDecodeAsNil() { + yyv1414[yyj1414] = HTTPIngressPath{} + } else { + yyv1416 := &yyv1414[yyj1414] + yyv1416.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1414 := 0 + for ; !r.CheckBreak(); yyj1414++ { + + if yyj1414 >= len(yyv1414) { + yyv1414 = append(yyv1414, HTTPIngressPath{}) // var yyz1414 HTTPIngressPath + yyc1414 = true + } + yyh1414.ElemContainerState(yyj1414) + if yyj1414 < len(yyv1414) { + if r.TryDecodeAsNil() { + yyv1414[yyj1414] = HTTPIngressPath{} + } else { + yyv1417 := &yyv1414[yyj1414] + yyv1417.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1414 < len(yyv1414) { + yyv1414 = yyv1414[:yyj1414] + yyc1414 = true + } else if yyj1414 == 0 && yyv1414 == nil { + yyv1414 = []HTTPIngressPath{} + yyc1414 = true + } + } + yyh1414.End() + if yyc1414 { + *v = yyv1414 + } +} + +func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1418 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1419 := &yyv1418 + yy1419.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1420 > 0 { + var yyrr1420, yyrl1420 int + var yyrt1420 bool + if yyl1420 > cap(yyv1420) { + + yyrg1420 := len(yyv1420) > 0 + yyv21420 := yyv1420 + yyrl1420, yyrt1420 = z.DecInferLen(yyl1420, z.DecBasicHandle().MaxInitLen, 704) + if yyrt1420 { + if yyrl1420 <= cap(yyv1420) { + yyv1420 = yyv1420[:yyrl1420] + } else { + yyv1420 = make([]ReplicaSet, yyrl1420) + } + } else { + yyv1420 = make([]ReplicaSet, yyrl1420) + } + yyc1420 = true + yyrr1420 = len(yyv1420) + if yyrg1420 { + copy(yyv1420, yyv21420) + } + } else if yyl1420 != len(yyv1420) { + yyv1420 = yyv1420[:yyl1420] + yyc1420 = true + } + yyj1420 := 0 + for ; yyj1420 < yyrr1420; yyj1420++ { + yyh1420.ElemContainerState(yyj1420) + if r.TryDecodeAsNil() { + yyv1420[yyj1420] = ReplicaSet{} + } else { + yyv1421 := &yyv1420[yyj1420] + yyv1421.CodecDecodeSelf(d) + } + + } + if yyrt1420 { + for ; yyj1420 < yyl1420; yyj1420++ { + yyv1420 = append(yyv1420, ReplicaSet{}) + yyh1420.ElemContainerState(yyj1420) + if r.TryDecodeAsNil() { + yyv1420[yyj1420] = ReplicaSet{} + } else { + yyv1422 := &yyv1420[yyj1420] + yyv1422.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1420 := 0 + for ; !r.CheckBreak(); yyj1420++ { + + if yyj1420 >= len(yyv1420) { + yyv1420 = append(yyv1420, ReplicaSet{}) // var yyz1420 ReplicaSet + yyc1420 = true + } + yyh1420.ElemContainerState(yyj1420) + if yyj1420 < len(yyv1420) { + if r.TryDecodeAsNil() { + yyv1420[yyj1420] = ReplicaSet{} + } else { + yyv1423 := &yyv1420[yyj1420] + yyv1423.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1420 < len(yyv1420) { + yyv1420 = yyv1420[:yyj1420] + yyc1420 = true + } else if yyj1420 == 0 && yyv1420 == nil { + yyv1420 = []ReplicaSet{} + yyc1420 = true + } + } + yyh1420.End() + if yyc1420 { + *v = yyv1420 + } +} + +func (x codecSelfer1234) encSliceapi_Capability(v []pkg2_api.Capability, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1424 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1425 := z.EncBinary() + _ = yym1425 + if false { + } else if z.HasExtensions() && z.EncExt(yyv1424) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyv1424)) + } + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *codec1978.Decoder) { + var h codecSelfer1234 + 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{} + yyc1431 = true + } else if len(yyv1431) != 0 { + yyv1431 = yyv1431[:0] + yyc1431 = true + } + } else if yyl1431 > 0 { + var yyrr1431, yyrl1431 int + var yyrt1431 bool + if yyl1431 > cap(yyv1431) { + + yyrl1431, yyrt1431 = z.DecInferLen(yyl1431, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1431 { + if yyrl1431 <= cap(yyv1431) { + yyv1431 = yyv1431[:yyrl1431] + } else { + yyv1431 = make([]FSType, yyrl1431) + } + } else { + yyv1431 = make([]FSType, yyrl1431) + } + yyc1431 = true + yyrr1431 = len(yyv1431) + } else if yyl1431 != len(yyv1431) { + yyv1431 = yyv1431[:yyl1431] + yyc1431 = true + } + yyj1431 := 0 + for ; yyj1431 < yyrr1431; yyj1431++ { + yyh1431.ElemContainerState(yyj1431) + if r.TryDecodeAsNil() { + yyv1431[yyj1431] = "" + } else { + yyv1431[yyj1431] = FSType(r.DecodeString()) + } + + } + if yyrt1431 { + for ; yyj1431 < yyl1431; yyj1431++ { + yyv1431 = append(yyv1431, "") + yyh1431.ElemContainerState(yyj1431) + if r.TryDecodeAsNil() { + yyv1431[yyj1431] = "" + } else { + yyv1431[yyj1431] = FSType(r.DecodeString()) + } + + } + } + + } else { + yyj1431 := 0 + for ; !r.CheckBreak(); yyj1431++ { + + if yyj1431 >= len(yyv1431) { + yyv1431 = append(yyv1431, "") // var yyz1431 FSType + yyc1431 = true + } + yyh1431.ElemContainerState(yyj1431) + if yyj1431 < len(yyv1431) { + if r.TryDecodeAsNil() { + yyv1431[yyj1431] = "" + } else { + yyv1431[yyj1431] = FSType(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj1431 < len(yyv1431) { + yyv1431 = yyv1431[:yyj1431] + yyc1431 = true + } else if yyj1431 == 0 && yyv1431 == nil { + yyv1431 = []FSType{} + yyc1431 = true + } + } + yyh1431.End() + if yyc1431 { + *v = yyv1431 + } +} + +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 _, yyv1435 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1436 := &yyv1435 + yy1436.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1437 > 0 { + var yyrr1437, yyrl1437 int + var yyrt1437 bool + if yyl1437 > cap(yyv1437) { + + yyrg1437 := len(yyv1437) > 0 + yyv21437 := yyv1437 + yyrl1437, yyrt1437 = z.DecInferLen(yyl1437, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1437 { + if yyrl1437 <= cap(yyv1437) { + yyv1437 = yyv1437[:yyrl1437] + } else { + yyv1437 = make([]HostPortRange, yyrl1437) + } + } else { + yyv1437 = make([]HostPortRange, yyrl1437) + } + yyc1437 = true + yyrr1437 = len(yyv1437) + if yyrg1437 { + copy(yyv1437, yyv21437) + } + } else if yyl1437 != len(yyv1437) { + yyv1437 = yyv1437[:yyl1437] + yyc1437 = true + } + yyj1437 := 0 + for ; yyj1437 < yyrr1437; yyj1437++ { + yyh1437.ElemContainerState(yyj1437) + if r.TryDecodeAsNil() { + yyv1437[yyj1437] = HostPortRange{} + } else { + yyv1438 := &yyv1437[yyj1437] + yyv1438.CodecDecodeSelf(d) + } + + } + if yyrt1437 { + for ; yyj1437 < yyl1437; yyj1437++ { + yyv1437 = append(yyv1437, HostPortRange{}) + yyh1437.ElemContainerState(yyj1437) + if r.TryDecodeAsNil() { + yyv1437[yyj1437] = HostPortRange{} + } else { + yyv1439 := &yyv1437[yyj1437] + yyv1439.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1437 := 0 + for ; !r.CheckBreak(); yyj1437++ { + + if yyj1437 >= len(yyv1437) { + yyv1437 = append(yyv1437, HostPortRange{}) // var yyz1437 HostPortRange + yyc1437 = true + } + yyh1437.ElemContainerState(yyj1437) + if yyj1437 < len(yyv1437) { + if r.TryDecodeAsNil() { + yyv1437[yyj1437] = HostPortRange{} + } else { + yyv1440 := &yyv1437[yyj1437] + yyv1440.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1437 < len(yyv1437) { + yyv1437 = yyv1437[:yyj1437] + yyc1437 = true + } else if yyj1437 == 0 && yyv1437 == nil { + yyv1437 = []HostPortRange{} + yyc1437 = true + } + } + yyh1437.End() + if yyc1437 { + *v = yyv1437 + } +} + +func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1441 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1442 := &yyv1441 + yy1442.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1443 > 0 { + var yyrr1443, yyrl1443 int + var yyrt1443 bool + if yyl1443 > cap(yyv1443) { + + yyrg1443 := len(yyv1443) > 0 + yyv21443 := yyv1443 + yyrl1443, yyrt1443 = z.DecInferLen(yyl1443, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1443 { + if yyrl1443 <= cap(yyv1443) { + yyv1443 = yyv1443[:yyrl1443] + } else { + yyv1443 = make([]IDRange, yyrl1443) + } + } else { + yyv1443 = make([]IDRange, yyrl1443) + } + yyc1443 = true + yyrr1443 = len(yyv1443) + if yyrg1443 { + copy(yyv1443, yyv21443) + } + } else if yyl1443 != len(yyv1443) { + yyv1443 = yyv1443[:yyl1443] + yyc1443 = true + } + yyj1443 := 0 + for ; yyj1443 < yyrr1443; yyj1443++ { + yyh1443.ElemContainerState(yyj1443) + if r.TryDecodeAsNil() { + yyv1443[yyj1443] = IDRange{} + } else { + yyv1444 := &yyv1443[yyj1443] + yyv1444.CodecDecodeSelf(d) + } + + } + if yyrt1443 { + for ; yyj1443 < yyl1443; yyj1443++ { + yyv1443 = append(yyv1443, IDRange{}) + yyh1443.ElemContainerState(yyj1443) + if r.TryDecodeAsNil() { + yyv1443[yyj1443] = IDRange{} + } else { + yyv1445 := &yyv1443[yyj1443] + yyv1445.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1443 := 0 + for ; !r.CheckBreak(); yyj1443++ { + + if yyj1443 >= len(yyv1443) { + yyv1443 = append(yyv1443, IDRange{}) // var yyz1443 IDRange + yyc1443 = true + } + yyh1443.ElemContainerState(yyj1443) + if yyj1443 < len(yyv1443) { + if r.TryDecodeAsNil() { + yyv1443[yyj1443] = IDRange{} + } else { + yyv1446 := &yyv1443[yyj1443] + yyv1446.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1443 < len(yyv1443) { + yyv1443 = yyv1443[:yyj1443] + yyc1443 = true + } else if yyj1443 == 0 && yyv1443 == nil { + yyv1443 = []IDRange{} + yyc1443 = true + } + } + yyh1443.End() + if yyc1443 { + *v = yyv1443 + } +} + +func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1447 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1448 := &yyv1447 + yy1448.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1449 > 0 { + var yyrr1449, yyrl1449 int + var yyrt1449 bool + if yyl1449 > cap(yyv1449) { + + yyrg1449 := len(yyv1449) > 0 + yyv21449 := yyv1449 + yyrl1449, yyrt1449 = z.DecInferLen(yyl1449, z.DecBasicHandle().MaxInitLen, 536) + if yyrt1449 { + if yyrl1449 <= cap(yyv1449) { + yyv1449 = yyv1449[:yyrl1449] + } else { + yyv1449 = make([]PodSecurityPolicy, yyrl1449) + } + } else { + yyv1449 = make([]PodSecurityPolicy, yyrl1449) + } + yyc1449 = true + yyrr1449 = len(yyv1449) + if yyrg1449 { + copy(yyv1449, yyv21449) + } + } else if yyl1449 != len(yyv1449) { + yyv1449 = yyv1449[:yyl1449] + yyc1449 = true + } + yyj1449 := 0 + for ; yyj1449 < yyrr1449; yyj1449++ { + yyh1449.ElemContainerState(yyj1449) + if r.TryDecodeAsNil() { + yyv1449[yyj1449] = PodSecurityPolicy{} + } else { + yyv1450 := &yyv1449[yyj1449] + yyv1450.CodecDecodeSelf(d) + } + + } + if yyrt1449 { + for ; yyj1449 < yyl1449; yyj1449++ { + yyv1449 = append(yyv1449, PodSecurityPolicy{}) + yyh1449.ElemContainerState(yyj1449) + if r.TryDecodeAsNil() { + yyv1449[yyj1449] = PodSecurityPolicy{} + } else { + yyv1451 := &yyv1449[yyj1449] + yyv1451.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1449 := 0 + for ; !r.CheckBreak(); yyj1449++ { + + if yyj1449 >= len(yyv1449) { + yyv1449 = append(yyv1449, PodSecurityPolicy{}) // var yyz1449 PodSecurityPolicy + yyc1449 = true + } + yyh1449.ElemContainerState(yyj1449) + if yyj1449 < len(yyv1449) { + if r.TryDecodeAsNil() { + yyv1449[yyj1449] = PodSecurityPolicy{} + } else { + yyv1452 := &yyv1449[yyj1449] + yyv1452.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1449 < len(yyv1449) { + yyv1449 = yyv1449[:yyj1449] + yyc1449 = true + } else if yyj1449 == 0 && yyv1449 == nil { + yyv1449 = []PodSecurityPolicy{} + yyc1449 = true + } + } + yyh1449.End() + if yyc1449 { + *v = yyv1449 + } +} + +func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngressRule, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1453 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1454 := &yyv1453 + yy1454.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngressRule, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1455 > 0 { + var yyrr1455, yyrl1455 int + var yyrt1455 bool + if yyl1455 > cap(yyv1455) { + + yyrg1455 := len(yyv1455) > 0 + yyv21455 := yyv1455 + yyrl1455, yyrt1455 = z.DecInferLen(yyl1455, z.DecBasicHandle().MaxInitLen, 48) + if yyrt1455 { + if yyrl1455 <= cap(yyv1455) { + yyv1455 = yyv1455[:yyrl1455] + } else { + yyv1455 = make([]NetworkPolicyIngressRule, yyrl1455) + } + } else { + yyv1455 = make([]NetworkPolicyIngressRule, yyrl1455) + } + yyc1455 = true + yyrr1455 = len(yyv1455) + if yyrg1455 { + copy(yyv1455, yyv21455) + } + } else if yyl1455 != len(yyv1455) { + yyv1455 = yyv1455[:yyl1455] + yyc1455 = true + } + yyj1455 := 0 + for ; yyj1455 < yyrr1455; yyj1455++ { + yyh1455.ElemContainerState(yyj1455) + if r.TryDecodeAsNil() { + yyv1455[yyj1455] = NetworkPolicyIngressRule{} + } else { + yyv1456 := &yyv1455[yyj1455] + yyv1456.CodecDecodeSelf(d) + } + + } + if yyrt1455 { + for ; yyj1455 < yyl1455; yyj1455++ { + yyv1455 = append(yyv1455, NetworkPolicyIngressRule{}) + yyh1455.ElemContainerState(yyj1455) + if r.TryDecodeAsNil() { + yyv1455[yyj1455] = NetworkPolicyIngressRule{} + } else { + yyv1457 := &yyv1455[yyj1455] + yyv1457.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1455 := 0 + for ; !r.CheckBreak(); yyj1455++ { + + if yyj1455 >= len(yyv1455) { + yyv1455 = append(yyv1455, NetworkPolicyIngressRule{}) // var yyz1455 NetworkPolicyIngressRule + yyc1455 = true + } + yyh1455.ElemContainerState(yyj1455) + if yyj1455 < len(yyv1455) { + if r.TryDecodeAsNil() { + yyv1455[yyj1455] = NetworkPolicyIngressRule{} + } else { + yyv1458 := &yyv1455[yyj1455] + yyv1458.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1455 < len(yyv1455) { + yyv1455 = yyv1455[:yyj1455] + yyc1455 = true + } else if yyj1455 == 0 && yyv1455 == nil { + yyv1455 = []NetworkPolicyIngressRule{} + yyc1455 = true + } + } + yyh1455.End() + if yyc1455 { + *v = yyv1455 + } +} + +func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1459 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1460 := &yyv1459 + yy1460.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1461 > 0 { + var yyrr1461, yyrl1461 int + var yyrt1461 bool + if yyl1461 > cap(yyv1461) { + + yyrg1461 := len(yyv1461) > 0 + yyv21461 := yyv1461 + yyrl1461, yyrt1461 = z.DecInferLen(yyl1461, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1461 { + if yyrl1461 <= cap(yyv1461) { + yyv1461 = yyv1461[:yyrl1461] + } else { + yyv1461 = make([]NetworkPolicyPort, yyrl1461) + } + } else { + yyv1461 = make([]NetworkPolicyPort, yyrl1461) + } + yyc1461 = true + yyrr1461 = len(yyv1461) + if yyrg1461 { + copy(yyv1461, yyv21461) + } + } else if yyl1461 != len(yyv1461) { + yyv1461 = yyv1461[:yyl1461] + yyc1461 = true + } + yyj1461 := 0 + for ; yyj1461 < yyrr1461; yyj1461++ { + yyh1461.ElemContainerState(yyj1461) + if r.TryDecodeAsNil() { + yyv1461[yyj1461] = NetworkPolicyPort{} + } else { + yyv1462 := &yyv1461[yyj1461] + yyv1462.CodecDecodeSelf(d) + } + + } + if yyrt1461 { + for ; yyj1461 < yyl1461; yyj1461++ { + yyv1461 = append(yyv1461, NetworkPolicyPort{}) + yyh1461.ElemContainerState(yyj1461) + if r.TryDecodeAsNil() { + yyv1461[yyj1461] = NetworkPolicyPort{} + } else { + yyv1463 := &yyv1461[yyj1461] + yyv1463.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1461 := 0 + for ; !r.CheckBreak(); yyj1461++ { + + if yyj1461 >= len(yyv1461) { + yyv1461 = append(yyv1461, NetworkPolicyPort{}) // var yyz1461 NetworkPolicyPort + yyc1461 = true + } + yyh1461.ElemContainerState(yyj1461) + if yyj1461 < len(yyv1461) { + if r.TryDecodeAsNil() { + yyv1461[yyj1461] = NetworkPolicyPort{} + } else { + yyv1464 := &yyv1461[yyj1461] + yyv1464.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1461 < len(yyv1461) { + yyv1461 = yyv1461[:yyj1461] + yyc1461 = true + } else if yyj1461 == 0 && yyv1461 == nil { + yyv1461 = []NetworkPolicyPort{} + yyc1461 = true + } + } + yyh1461.End() + if yyc1461 { + *v = yyv1461 + } +} + +func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1465 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1466 := &yyv1465 + yy1466.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1467 > 0 { + var yyrr1467, yyrl1467 int + var yyrt1467 bool + if yyl1467 > cap(yyv1467) { + + yyrg1467 := len(yyv1467) > 0 + yyv21467 := yyv1467 + yyrl1467, yyrt1467 = z.DecInferLen(yyl1467, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1467 { + if yyrl1467 <= cap(yyv1467) { + yyv1467 = yyv1467[:yyrl1467] + } else { + yyv1467 = make([]NetworkPolicyPeer, yyrl1467) + } + } else { + yyv1467 = make([]NetworkPolicyPeer, yyrl1467) + } + yyc1467 = true + yyrr1467 = len(yyv1467) + if yyrg1467 { + copy(yyv1467, yyv21467) + } + } else if yyl1467 != len(yyv1467) { + yyv1467 = yyv1467[:yyl1467] + yyc1467 = true + } + yyj1467 := 0 + for ; yyj1467 < yyrr1467; yyj1467++ { + yyh1467.ElemContainerState(yyj1467) + if r.TryDecodeAsNil() { + yyv1467[yyj1467] = NetworkPolicyPeer{} + } else { + yyv1468 := &yyv1467[yyj1467] + yyv1468.CodecDecodeSelf(d) + } + + } + if yyrt1467 { + for ; yyj1467 < yyl1467; yyj1467++ { + yyv1467 = append(yyv1467, NetworkPolicyPeer{}) + yyh1467.ElemContainerState(yyj1467) + if r.TryDecodeAsNil() { + yyv1467[yyj1467] = NetworkPolicyPeer{} + } else { + yyv1469 := &yyv1467[yyj1467] + yyv1469.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1467 := 0 + for ; !r.CheckBreak(); yyj1467++ { + + if yyj1467 >= len(yyv1467) { + yyv1467 = append(yyv1467, NetworkPolicyPeer{}) // var yyz1467 NetworkPolicyPeer + yyc1467 = true + } + yyh1467.ElemContainerState(yyj1467) + if yyj1467 < len(yyv1467) { + if r.TryDecodeAsNil() { + yyv1467[yyj1467] = NetworkPolicyPeer{} + } else { + yyv1470 := &yyv1467[yyj1467] + yyv1470.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1467 < len(yyv1467) { + yyv1467 = yyv1467[:yyj1467] + yyc1467 = true + } else if yyj1467 == 0 && yyv1467 == nil { + yyv1467 = []NetworkPolicyPeer{} + yyc1467 = true + } + } + yyh1467.End() + if yyc1467 { + *v = yyv1467 + } +} + +func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1471 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1472 := &yyv1471 + yy1472.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1473 > 0 { + var yyrr1473, yyrl1473 int + var yyrt1473 bool + if yyl1473 > cap(yyv1473) { + + yyrg1473 := len(yyv1473) > 0 + yyv21473 := yyv1473 + yyrl1473, yyrt1473 = z.DecInferLen(yyl1473, z.DecBasicHandle().MaxInitLen, 296) + if yyrt1473 { + if yyrl1473 <= cap(yyv1473) { + yyv1473 = yyv1473[:yyrl1473] + } else { + yyv1473 = make([]NetworkPolicy, yyrl1473) + } + } else { + yyv1473 = make([]NetworkPolicy, yyrl1473) + } + yyc1473 = true + yyrr1473 = len(yyv1473) + if yyrg1473 { + copy(yyv1473, yyv21473) + } + } else if yyl1473 != len(yyv1473) { + yyv1473 = yyv1473[:yyl1473] + yyc1473 = true + } + yyj1473 := 0 + for ; yyj1473 < yyrr1473; yyj1473++ { + yyh1473.ElemContainerState(yyj1473) + if r.TryDecodeAsNil() { + yyv1473[yyj1473] = NetworkPolicy{} + } else { + yyv1474 := &yyv1473[yyj1473] + yyv1474.CodecDecodeSelf(d) + } + + } + if yyrt1473 { + for ; yyj1473 < yyl1473; yyj1473++ { + yyv1473 = append(yyv1473, NetworkPolicy{}) + yyh1473.ElemContainerState(yyj1473) + if r.TryDecodeAsNil() { + yyv1473[yyj1473] = NetworkPolicy{} + } else { + yyv1475 := &yyv1473[yyj1473] + yyv1475.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1473 := 0 + for ; !r.CheckBreak(); yyj1473++ { + + if yyj1473 >= len(yyv1473) { + yyv1473 = append(yyv1473, NetworkPolicy{}) // var yyz1473 NetworkPolicy + yyc1473 = true + } + yyh1473.ElemContainerState(yyj1473) + if yyj1473 < len(yyv1473) { + if r.TryDecodeAsNil() { + yyv1473[yyj1473] = NetworkPolicy{} + } else { + yyv1476 := &yyv1473[yyj1473] + yyv1476.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1473 < len(yyv1473) { + yyv1473 = yyv1473[:yyj1473] + yyc1473 = true + } else if yyj1473 == 0 && yyv1473 == nil { + yyv1473 = []NetworkPolicy{} + yyc1473 = true + } + } + yyh1473.End() + if yyc1473 { + *v = yyv1473 + } +} + +func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1477 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1478 := &yyv1477 + yy1478.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.Decoder) { + var h codecSelfer1234 + 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 + } + } else if yyl1479 > 0 { + var yyrr1479, yyrl1479 int + var yyrt1479 bool + if yyl1479 > cap(yyv1479) { + + yyrg1479 := len(yyv1479) > 0 + yyv21479 := yyv1479 + yyrl1479, yyrt1479 = z.DecInferLen(yyl1479, z.DecBasicHandle().MaxInitLen, 264) + if yyrt1479 { + if yyrl1479 <= cap(yyv1479) { + yyv1479 = yyv1479[:yyrl1479] + } else { + yyv1479 = make([]StorageClass, yyrl1479) + } + } else { + yyv1479 = make([]StorageClass, yyrl1479) + } + yyc1479 = true + yyrr1479 = len(yyv1479) + if yyrg1479 { + copy(yyv1479, yyv21479) + } + } else if yyl1479 != len(yyv1479) { + yyv1479 = yyv1479[:yyl1479] + yyc1479 = true + } + yyj1479 := 0 + for ; yyj1479 < yyrr1479; yyj1479++ { + yyh1479.ElemContainerState(yyj1479) + if r.TryDecodeAsNil() { + yyv1479[yyj1479] = StorageClass{} + } else { + yyv1480 := &yyv1479[yyj1479] + yyv1480.CodecDecodeSelf(d) + } + + } + if yyrt1479 { + for ; yyj1479 < yyl1479; yyj1479++ { + yyv1479 = append(yyv1479, StorageClass{}) + yyh1479.ElemContainerState(yyj1479) + if r.TryDecodeAsNil() { + yyv1479[yyj1479] = StorageClass{} + } else { + yyv1481 := &yyv1479[yyj1479] + yyv1481.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1479 := 0 + for ; !r.CheckBreak(); yyj1479++ { + + if yyj1479 >= len(yyv1479) { + yyv1479 = append(yyv1479, StorageClass{}) // var yyz1479 StorageClass + yyc1479 = true + } + yyh1479.ElemContainerState(yyj1479) + if yyj1479 < len(yyv1479) { + if r.TryDecodeAsNil() { + yyv1479[yyj1479] = StorageClass{} + } else { + yyv1482 := &yyv1479[yyj1479] + yyv1482.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1479 < len(yyv1479) { + yyv1479 = yyv1479[:yyj1479] + yyc1479 = true + } else if yyj1479 == 0 && yyv1479 == nil { + yyv1479 = []StorageClass{} + yyc1479 = true + } + } + yyh1479.End() + if yyc1479 { + *v = yyv1479 + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/types.go new file mode 100644 index 0000000000..acbb49b8f9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/types.go @@ -0,0 +1,939 @@ +/* +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. +*/ + +/* +This file (together with pkg/apis/extensions/v1beta1/types.go) contain the experimental +types in kubernetes. These API objects are experimental, meaning that the +APIs may be broken at any time by the kubernetes team. + +DISCLAIMER: The implementation of the experimental API group itself is +a temporary one meant as a stopgap solution until kubernetes has proper +support for multiple API groups. The transition may require changes +beyond registration differences. In other words, experimental API group +support is experimental. +*/ + +package extensions + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/resource" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/util/intstr" +) + +// describes the attributes of a scale subresource +type ScaleSpec struct { + // desired number of instances for the scaled object. + Replicas int32 `json:"replicas,omitempty"` +} + +// represents the current status of a scale subresource. +type ScaleStatus struct { + // actual number of observed instances of the scaled object. + Replicas int32 `json:"replicas"` + + // label query over pods that should match the replicas count. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + Selector *unversioned.LabelSelector `json:"selector,omitempty"` +} + +// +genclient=true +// +noMethods=true + +// represents a scaling request for a resource. +type Scale struct { + unversioned.TypeMeta `json:",inline"` + // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + api.ObjectMeta `json:"metadata,omitempty"` + + // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + Spec ScaleSpec `json:"spec,omitempty"` + + // current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + Status ScaleStatus `json:"status,omitempty"` +} + +// Dummy definition +type ReplicationControllerDummy struct { + unversioned.TypeMeta `json:",inline"` +} + +// Alpha-level support for Custom Metrics in HPA (as annotations). +type CustomMetricTarget struct { + // Custom Metric name. + Name string `json:"name"` + // Custom Metric value (average). + TargetValue resource.Quantity `json:"value"` +} + +type CustomMetricTargetList struct { + Items []CustomMetricTarget `json:"items"` +} + +type CustomMetricCurrentStatus struct { + // Custom Metric name. + Name string `json:"name"` + // Custom Metric value (average). + CurrentValue resource.Quantity `json:"value"` +} + +type CustomMetricCurrentStatusList struct { + Items []CustomMetricCurrentStatus `json:"items"` +} + +// +genclient=true +// +nonNamespaced=true + +// A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource +// types to the API. It consists of one or more Versions of the api. +type ThirdPartyResource struct { + unversioned.TypeMeta `json:",inline"` + + // Standard object metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Description is the description of this object. + Description string `json:"description,omitempty"` + + // Versions are versions for this third party object + Versions []APIVersion `json:"versions,omitempty"` +} + +type ThirdPartyResourceList struct { + unversioned.TypeMeta `json:",inline"` + + // Standard list metadata. + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of horizontal pod autoscalers. + Items []ThirdPartyResource `json:"items"` +} + +// An APIVersion represents a single concrete version of an object model. +// TODO: we should consider merge this struct with GroupVersion in unversioned.go +type APIVersion struct { + // Name of this version (e.g. 'v1'). + Name string `json:"name,omitempty"` +} + +// An internal object, used for versioned storage in etcd. Not exposed to the end user. +type ThirdPartyResourceData struct { + unversioned.TypeMeta `json:",inline"` + // Standard object metadata. + api.ObjectMeta `json:"metadata,omitempty"` + + // Data is the raw JSON data for this data. + Data []byte `json:"data,omitempty"` +} + +// +genclient=true + +type Deployment struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // Specification of the desired behavior of the Deployment. + Spec DeploymentSpec `json:"spec,omitempty"` + + // Most recently observed status of the Deployment. + Status DeploymentStatus `json:"status,omitempty"` +} + +type DeploymentSpec struct { + // Number of desired pods. This is a pointer to distinguish between explicit + // zero and not specified. Defaults to 1. + Replicas int32 `json:"replicas,omitempty"` + + // Label selector for pods. Existing ReplicaSets whose pods are + // selected by this will be the ones affected by this deployment. + Selector *unversioned.LabelSelector `json:"selector,omitempty"` + + // Template describes the pods that will be created. + Template api.PodTemplateSpec `json:"template"` + + // The deployment strategy to use to replace existing pods with new ones. + Strategy DeploymentStrategy `json:"strategy,omitempty"` + + // Minimum number of seconds for which a newly created pod should be ready + // without any of its container crashing, for it to be considered available. + // Defaults to 0 (pod will be considered available as soon as it is ready) + MinReadySeconds int32 `json:"minReadySeconds,omitempty"` + + // The number of old ReplicaSets to retain to allow rollback. + // This is a pointer to distinguish between explicit zero and not specified. + RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` + + // Indicates that the deployment is paused and will not be processed by the + // deployment controller. + Paused bool `json:"paused,omitempty"` + // The config this deployment is rolling back to. Will be cleared after rollback is done. + RollbackTo *RollbackConfig `json:"rollbackTo,omitempty"` +} + +// DeploymentRollback stores the information required to rollback a deployment. +type DeploymentRollback struct { + unversioned.TypeMeta `json:",inline"` + // Required: This must match the Name of a deployment. + Name string `json:"name"` + // The annotations to be updated to a deployment + UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty"` + // The config of this deployment rollback. + RollbackTo RollbackConfig `json:"rollbackTo"` +} + +type RollbackConfig struct { + // The revision to rollback to. If set to 0, rollbck to the last revision. + Revision int64 `json:"revision,omitempty"` +} + +const ( + // DefaultDeploymentUniqueLabelKey is the default key of the selector that is added + // to existing RCs (and label key that is added to its pods) to prevent the existing RCs + // to select new pods (and old pods being select by new RC). + DefaultDeploymentUniqueLabelKey string = "pod-template-hash" +) + +type DeploymentStrategy struct { + // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + Type DeploymentStrategyType `json:"type,omitempty"` + + // Rolling update config params. Present only if DeploymentStrategyType = + // RollingUpdate. + //--- + // TODO: Update this to follow our convention for oneOf, whatever we decide it + // to be. + RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty"` +} + +type DeploymentStrategyType string + +const ( + // Kill all existing pods before creating new ones. + RecreateDeploymentStrategyType DeploymentStrategyType = "Recreate" + + // Replace the old RCs by new one using rolling update i.e gradually scale down the old RCs and scale up the new one. + RollingUpdateDeploymentStrategyType DeploymentStrategyType = "RollingUpdate" +) + +// Spec to control the desired behavior of rolling update. +type RollingUpdateDeployment struct { + // The maximum number of pods that can be unavailable during the update. + // Value can be an absolute number (ex: 5) or a percentage of total pods at the start of update (ex: 10%). + // Absolute number is calculated from percentage by rounding up. + // This can not be 0 if MaxSurge is 0. + // By default, a fixed value of 1 is used. + // Example: when this is set to 30%, the old RC can be scaled down by 30% + // immediately when the rolling update starts. Once new pods are ready, old RC + // can be scaled down further, followed by scaling up the new RC, ensuring + // that at least 70% of original number of pods are available at all times + // during the update. + MaxUnavailable intstr.IntOrString `json:"maxUnavailable,omitempty"` + + // The maximum number of pods that can be scheduled above the original number of + // pods. + // Value can be an absolute number (ex: 5) or a percentage of total pods at + // the start of the update (ex: 10%). This can not be 0 if MaxUnavailable is 0. + // Absolute number is calculated from percentage by rounding up. + // By default, a value of 1 is used. + // Example: when this is set to 30%, the new RC can be scaled up by 30% + // immediately when the rolling update starts. Once old pods have been killed, + // new RC can be scaled up further, ensuring that total number of pods running + // at any time during the update is atmost 130% of original pods. + MaxSurge intstr.IntOrString `json:"maxSurge,omitempty"` +} + +type DeploymentStatus struct { + // The generation observed by the deployment controller. + ObservedGeneration int64 `json:"observedGeneration,omitempty"` + + // Total number of non-terminated pods targeted by this deployment (their labels match the selector). + Replicas int32 `json:"replicas,omitempty"` + + // Total number of non-terminated pods targeted by this deployment that have the desired template spec. + UpdatedReplicas int32 `json:"updatedReplicas,omitempty"` + + // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + AvailableReplicas int32 `json:"availableReplicas,omitempty"` + + // Total number of unavailable pods targeted by this deployment. + UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"` +} + +type DeploymentList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of deployments. + Items []Deployment `json:"items"` +} + +// TODO(madhusudancs): Uncomment while implementing DaemonSet updates. +/* Commenting out for v1.2. We are planning to bring these types back with a more robust DaemonSet update implementation in v1.3, hence not deleting but just commenting the types out. +type DaemonSetUpdateStrategy struct { + // Type of daemon set update. Only "RollingUpdate" is supported at this time. Default is RollingUpdate. + Type DaemonSetUpdateStrategyType `json:"type,omitempty"` + + // Rolling update config params. Present only if DaemonSetUpdateStrategy = + // RollingUpdate. + //--- + // TODO: Update this to follow our convention for oneOf, whatever we decide it + // to be. Same as DeploymentStrategy.RollingUpdate. + RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty"` +} + +type DaemonSetUpdateStrategyType string + +const ( + // Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. + RollingUpdateDaemonSetStrategyType DaemonSetUpdateStrategyType = "RollingUpdate" +) + +// Spec to control the desired behavior of daemon set rolling update. +type RollingUpdateDaemonSet struct { + // The maximum number of DaemonSet pods that can be unavailable during the + // update. Value can be an absolute number (ex: 5) or a percentage of total + // number of DaemonSet pods at the start of the update (ex: 10%). Absolute + // number is calculated from percentage by rounding up. + // This cannot be 0. + // Default value is 1. + // Example: when this is set to 30%, 30% of the currently running DaemonSet + // pods can be stopped for an update at any given time. The update starts + // by stopping at most 30% of the currently running DaemonSet pods and then + // brings up new DaemonSet pods in their place. Once the new pods are ready, + // it then proceeds onto other DaemonSet pods, thus ensuring that at least + // 70% of original number of DaemonSet pods are available at all times + // during the update. + MaxUnavailable intstr.IntOrString `json:"maxUnavailable,omitempty"` + + // Minimum number of seconds for which a newly created DaemonSet pod should + // be ready without any of its container crashing, for it to be considered + // available. Defaults to 0 (pod will be considered available as soon as it + // is ready). + MinReadySeconds int `json:"minReadySeconds,omitempty"` +} +*/ + +// DaemonSetSpec is the specification of a daemon set. +type DaemonSetSpec struct { + // Selector is a label query over pods that are managed by the daemon set. + // Must match in order to be controlled. + // If empty, defaulted to labels on Pod template. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + Selector *unversioned.LabelSelector `json:"selector,omitempty"` + + // Template is the object that describes the pod that will be created. + // The DaemonSet will create exactly one copy of this pod on every node + // that matches the template's node selector (or on every node if no node + // selector is specified). + // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#pod-template + Template api.PodTemplateSpec `json:"template"` + + // TODO(madhusudancs): Uncomment while implementing DaemonSet updates. + /* Commenting out for v1.2. We are planning to bring these fields back with a more robust DaemonSet update implementation in v1.3, hence not deleting but just commenting these fields out. + // Update strategy to replace existing DaemonSet pods with new pods. + UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty"` + + // Label key that is added to DaemonSet pods to distinguish between old and + // new pod templates during DaemonSet update. + // Users can set this to an empty string to indicate that the system should + // not add any label. If unspecified, system uses + // DefaultDaemonSetUniqueLabelKey("daemonset.kubernetes.io/podTemplateHash"). + // Value of this key is hash of DaemonSetSpec.PodTemplateSpec. + // No label is added if this is set to empty string. + UniqueLabelKey string `json:"uniqueLabelKey,omitempty"` + */ +} + +const ( + // DefaultDaemonSetUniqueLabelKey is the default key of the labels that is added + // to daemon set pods to distinguish between old and new pod templates during + // DaemonSet update. See DaemonSetSpec's UniqueLabelKey field for more information. + DefaultDaemonSetUniqueLabelKey string = "daemonset.kubernetes.io/podTemplateHash" +) + +// DaemonSetStatus represents the current status of a daemon set. +type DaemonSetStatus struct { + // CurrentNumberScheduled is the number of nodes that are running at least 1 + // daemon pod and are supposed to run the daemon pod. + CurrentNumberScheduled int32 `json:"currentNumberScheduled"` + + // NumberMisscheduled is the number of nodes that are running the daemon pod, but are + // not supposed to run the daemon pod. + NumberMisscheduled int32 `json:"numberMisscheduled"` + + // DesiredNumberScheduled is the total number of nodes that should be running the daemon + // pod (including nodes correctly running the daemon pod). + DesiredNumberScheduled int32 `json:"desiredNumberScheduled"` +} + +// +genclient=true + +// DaemonSet represents the configuration of a daemon set. +type DaemonSet struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the desired behavior of this daemon set. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec DaemonSetSpec `json:"spec,omitempty"` + + // Status is the current status of this daemon set. This data may be + // out of date by some window of time. + // Populated by the system. + // Read-only. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status DaemonSetStatus `json:"status,omitempty"` +} + +// DaemonSetList is a collection of daemon sets. +type DaemonSetList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is a list of daemon sets. + Items []DaemonSet `json:"items"` +} + +type ThirdPartyResourceDataList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + // Items is a list of third party objects + Items []ThirdPartyResourceData `json:"items"` +} + +// +genclient=true + +// Ingress is a collection of rules that allow inbound connections to reach the +// endpoints defined by a backend. An Ingress can be configured to give services +// externally-reachable urls, load balance traffic, terminate SSL, offer name +// based virtual hosting etc. +type Ingress struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + api.ObjectMeta `json:"metadata,omitempty"` + + // Spec is the desired state of the Ingress. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Spec IngressSpec `json:"spec,omitempty"` + + // Status is the current state of the Ingress. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + Status IngressStatus `json:"status,omitempty"` +} + +// IngressList is a collection of Ingress. +type IngressList struct { + unversioned.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of Ingress. + Items []Ingress `json:"items"` +} + +// IngressSpec describes the Ingress the user wishes to exist. +type IngressSpec struct { + // A default backend capable of servicing requests that don't match any + // rule. At least one of 'backend' or 'rules' must be specified. This field + // is optional to allow the loadbalancer controller or defaulting logic to + // specify a global default. + Backend *IngressBackend `json:"backend,omitempty"` + + // TLS configuration. Currently the Ingress only supports a single TLS + // port, 443. If multiple members of this list specify different hosts, they + // will be multiplexed on the same port according to the hostname specified + // through the SNI TLS extension, if the ingress controller fulfilling the + // ingress supports SNI. + TLS []IngressTLS `json:"tls,omitempty"` + + // A list of host rules used to configure the Ingress. If unspecified, or + // no rule matches, all traffic is sent to the default backend. + Rules []IngressRule `json:"rules,omitempty"` + // TODO: Add the ability to specify load-balancer IP through claims +} + +// IngressTLS describes the transport layer security associated with an Ingress. +type IngressTLS struct { + // Hosts are a list of hosts included in the TLS certificate. The values in + // this list must match the name/s used in the tlsSecret. Defaults to the + // wildcard host setting for the loadbalancer controller fulfilling this + // Ingress, if left unspecified. + Hosts []string `json:"hosts,omitempty"` + // SecretName is the name of the secret used to terminate SSL traffic on 443. + // Field is left optional to allow SSL routing based on SNI hostname alone. + // If the SNI host in a listener conflicts with the "Host" header field used + // by an IngressRule, the SNI host is used for termination and value of the + // Host header is used for routing. + SecretName string `json:"secretName,omitempty"` + // TODO: Consider specifying different modes of termination, protocols etc. +} + +// IngressStatus describe the current state of the Ingress. +type IngressStatus struct { + // LoadBalancer contains the current status of the load-balancer. + LoadBalancer api.LoadBalancerStatus `json:"loadBalancer,omitempty"` +} + +// IngressRule represents the rules mapping the paths under a specified host to +// the related backend services. Incoming requests are first evaluated for a host +// match, then routed to the backend associated with the matching IngressRuleValue. +type IngressRule struct { + // Host is the fully qualified domain name of a network host, as defined + // by RFC 3986. Note the following deviations from the "host" part of the + // URI as defined in the RFC: + // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the + // IP in the Spec of the parent Ingress. + // 2. The `:` delimiter is not respected because ports are not allowed. + // Currently the port of an Ingress is implicitly :80 for http and + // :443 for https. + // Both these may change in the future. + // Incoming requests are matched against the host before the IngressRuleValue. + // If the host is unspecified, the Ingress routes all traffic based on the + // specified IngressRuleValue. + Host string `json:"host,omitempty"` + // IngressRuleValue represents a rule to route requests for this IngressRule. + // If unspecified, the rule defaults to a http catch-all. Whether that sends + // just traffic matching the host to the default backend or all traffic to the + // default backend, is left to the controller fulfilling the Ingress. Http is + // currently the only supported IngressRuleValue. + IngressRuleValue `json:",inline,omitempty"` +} + +// IngressRuleValue represents a rule to apply against incoming requests. If the +// rule is satisfied, the request is routed to the specified backend. Currently +// mixing different types of rules in a single Ingress is disallowed, so exactly +// one of the following must be set. +type IngressRuleValue struct { + //TODO: + // 1. Consider renaming this resource and the associated rules so they + // aren't tied to Ingress. They can be used to route intra-cluster traffic. + // 2. Consider adding fields for ingress-type specific global options + // usable by a loadbalancer, like http keep-alive. + + HTTP *HTTPIngressRuleValue `json:"http,omitempty"` +} + +// HTTPIngressRuleValue is a list of http selectors pointing to backends. +// In the example: http:///? -> backend where +// where parts of the url correspond to RFC 3986, this resource will be used +// to match against everything after the last '/' and before the first '?' +// or '#'. +type HTTPIngressRuleValue struct { + // A collection of paths that map requests to backends. + Paths []HTTPIngressPath `json:"paths"` + // TODO: Consider adding fields for ingress-type specific global + // options usable by a loadbalancer, like http keep-alive. +} + +// 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, + // (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 string `json:"path,omitempty"` + + // Backend defines the referenced service endpoint to which the traffic + // will be forwarded to. + Backend IngressBackend `json:"backend"` +} + +// IngressBackend describes all endpoints for a given service and port. +type IngressBackend struct { + // Specifies the name of the referenced service. + ServiceName string `json:"serviceName"` + + // Specifies the port of the referenced service. + ServicePort intstr.IntOrString `json:"servicePort"` +} + +// +genclient=true + +// ReplicaSet represents the configuration of a replica set. +type ReplicaSet struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the desired behavior of this ReplicaSet. + Spec ReplicaSetSpec `json:"spec,omitempty"` + + // Status is the current status of this ReplicaSet. This data may be + // out of date by some window of time. + Status ReplicaSetStatus `json:"status,omitempty"` +} + +// ReplicaSetList is a collection of ReplicaSets. +type ReplicaSetList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []ReplicaSet `json:"items"` +} + +// ReplicaSetSpec is the specification of a ReplicaSet. +// As the internal representation of a ReplicaSet, it must have +// a Template set. +type ReplicaSetSpec struct { + // Replicas is the number of desired replicas. + Replicas int32 `json:"replicas"` + + // Selector is a label query over pods that should match the replica count. + // Must match in order to be controlled. + // If empty, defaulted to labels on pod template. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + Selector *unversioned.LabelSelector `json:"selector,omitempty"` + + // Template is the object that describes the pod that will be created if + // insufficient replicas are detected. + Template api.PodTemplateSpec `json:"template,omitempty"` +} + +// ReplicaSetStatus represents the current status of a ReplicaSet. +type ReplicaSetStatus struct { + // Replicas is the number of actual replicas. + Replicas int32 `json:"replicas"` + + // The number of pods that have labels matching the labels of the pod template of the replicaset. + FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` + + // ObservedGeneration is the most recent generation observed by the controller. + ObservedGeneration int64 `json:"observedGeneration,omitempty"` +} + +// +genclient=true +// +nonNamespaced=true + +// PodSecurityPolicy governs the ability to make requests that affect the SecurityContext +// that will be applied to a pod and container. +type PodSecurityPolicy struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // Spec defines the policy enforced. + Spec PodSecurityPolicySpec `json:"spec,omitempty"` +} + +// PodSecurityPolicySpec defines the policy enforced. +type PodSecurityPolicySpec struct { + // Privileged determines if a pod can request to be run as privileged. + Privileged bool `json:"privileged,omitempty"` + // DefaultAddCapabilities is the default set of capabilities that will be added to the container + // unless the pod spec specifically drops the capability. You may not list a capability in both + // DefaultAddCapabilities and RequiredDropCapabilities. + DefaultAddCapabilities []api.Capability `json:"defaultAddCapabilities,omitempty"` + // RequiredDropCapabilities are the capabilities that will be dropped from the container. These + // are required to be dropped and cannot be added. + RequiredDropCapabilities []api.Capability `json:"requiredDropCapabilities,omitempty"` + // AllowedCapabilities is a list of capabilities that can be requested to add to the container. + // Capabilities in this field may be added at the pod author's discretion. + // You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. + AllowedCapabilities []api.Capability `json:"allowedCapabilities,omitempty"` + // Volumes is a white list of allowed volume plugins. Empty indicates that all plugins + // may be used. + Volumes []FSType `json:"volumes,omitempty"` + // HostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + HostNetwork bool `json:"hostNetwork,omitempty"` + // HostPorts determines which host port ranges are allowed to be exposed. + HostPorts []HostPortRange `json:"hostPorts,omitempty"` + // HostPID determines if the policy allows the use of HostPID in the pod spec. + HostPID bool `json:"hostPID,omitempty"` + // HostIPC determines if the policy allows the use of HostIPC in the pod spec. + HostIPC bool `json:"hostIPC,omitempty"` + // SELinux is the strategy that will dictate the allowable labels that may be set. + SELinux SELinuxStrategyOptions `json:"seLinux"` + // RunAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + RunAsUser RunAsUserStrategyOptions `json:"runAsUser"` + // SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + SupplementalGroups SupplementalGroupsStrategyOptions `json:"supplementalGroups"` + // FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. + FSGroup FSGroupStrategyOptions `json:"fsGroup"` + // ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file + // system. If the container specifically requests to run with a non-read only root file system + // the PSP should deny the pod. + // If set to false the container may run with a read only root file system if it wishes but it + // will not be forced to. + ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"` +} + +// HostPortRange defines a range of host ports that will be enabled by a policy +// for pods to use. It requires both the start and end to be defined. +type HostPortRange struct { + // Min is the start of the range, inclusive. + Min int `json:"min"` + // Max is the end of the range, inclusive. + Max int `json:"max"` +} + +// FSType gives strong typing to different file systems that are used by volumes. +type FSType string + +var ( + AzureFile FSType = "azureFile" + Flocker FSType = "flocker" + FlexVolume FSType = "flexVolume" + HostPath FSType = "hostPath" + EmptyDir FSType = "emptyDir" + GCEPersistentDisk FSType = "gcePersistentDisk" + AWSElasticBlockStore FSType = "awsElasticBlockStore" + GitRepo FSType = "gitRepo" + Secret FSType = "secret" + NFS FSType = "nfs" + ISCSI FSType = "iscsi" + Glusterfs FSType = "glusterfs" + PersistentVolumeClaim FSType = "persistentVolumeClaim" + RBD FSType = "rbd" + Cinder FSType = "cinder" + CephFS FSType = "cephFS" + DownwardAPI FSType = "downwardAPI" + FC FSType = "fc" + ConfigMap FSType = "configMap" + VsphereVolume FSType = "vsphereVolume" + All FSType = "*" +) + +// SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. +type SELinuxStrategyOptions struct { + // Rule is the strategy that will dictate the allowable labels that may be set. + Rule SELinuxStrategy `json:"rule"` + // seLinuxOptions required to run as; required for MustRunAs + // More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context + SELinuxOptions *api.SELinuxOptions `json:"seLinuxOptions,omitempty"` +} + +// SELinuxStrategy denotes strategy types for generating SELinux options for a +// Security. +type SELinuxStrategy string + +const ( + // container must have SELinux labels of X applied. + SELinuxStrategyMustRunAs SELinuxStrategy = "MustRunAs" + // container may make requests for any SELinux context labels. + SELinuxStrategyRunAsAny SELinuxStrategy = "RunAsAny" +) + +// RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. +type RunAsUserStrategyOptions struct { + // Rule is the strategy that will dictate the allowable RunAsUser values that may be set. + Rule RunAsUserStrategy `json:"rule"` + // Ranges are the allowed ranges of uids that may be used. + Ranges []IDRange `json:"ranges,omitempty"` +} + +// IDRange provides a min/max of an allowed range of IDs. +type IDRange struct { + // Min is the start of the range, inclusive. + Min int64 `json:"min"` + // Max is the end of the range, inclusive. + Max int64 `json:"max"` +} + +// RunAsUserStrategy denotes strategy types for generating RunAsUser values for a +// SecurityContext. +type RunAsUserStrategy string + +const ( + // container must run as a particular uid. + RunAsUserStrategyMustRunAs RunAsUserStrategy = "MustRunAs" + // container must run as a non-root uid + RunAsUserStrategyMustRunAsNonRoot RunAsUserStrategy = "MustRunAsNonRoot" + // container may make requests for any uid. + RunAsUserStrategyRunAsAny RunAsUserStrategy = "RunAsAny" +) + +// FSGroupStrategyOptions defines the strategy type and options used to create the strategy. +type FSGroupStrategyOptions struct { + // Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + Rule FSGroupStrategyType `json:"rule,omitempty"` + // Ranges are the allowed ranges of fs groups. If you would like to force a single + // fs group then supply a single range with the same start and end. + Ranges []IDRange `json:"ranges,omitempty"` +} + +// FSGroupStrategyType denotes strategy types for generating FSGroup values for a +// SecurityContext +type FSGroupStrategyType string + +const ( + // container must have FSGroup of X applied. + FSGroupStrategyMustRunAs FSGroupStrategyType = "MustRunAs" + // container may make requests for any FSGroup labels. + FSGroupStrategyRunAsAny FSGroupStrategyType = "RunAsAny" +) + +// SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. +type SupplementalGroupsStrategyOptions struct { + // Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + Rule SupplementalGroupsStrategyType `json:"rule,omitempty"` + // Ranges are the allowed ranges of supplemental groups. If you would like to force a single + // supplemental group then supply a single range with the same start and end. + Ranges []IDRange `json:"ranges,omitempty"` +} + +// SupplementalGroupsStrategyType denotes strategy types for determining valid supplemental +// groups for a SecurityContext. +type SupplementalGroupsStrategyType string + +const ( + // container must run as a particular gid. + SupplementalGroupsStrategyMustRunAs SupplementalGroupsStrategyType = "MustRunAs" + // container may make requests for any gid. + SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny" +) + +// PodSecurityPolicyList is a list of PodSecurityPolicy objects. +type PodSecurityPolicyList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []PodSecurityPolicy `json:"items"` +} + +type NetworkPolicy struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // Specification of the desired behavior for this NetworkPolicy. + Spec NetworkPolicySpec `json:"spec,omitempty"` +} + +type NetworkPolicySpec struct { + // Selects the pods to which this NetworkPolicy object applies. The array of ingress rules + // is applied to any pods selected by this field. Multiple network policies can select the + // same set of pods. In this case, the ingress rules for each are combined additively. + // This field is NOT optional and follows standard label selector semantics. + // An empty podSelector matches all pods in this namespace. + PodSelector unversioned.LabelSelector `json:"podSelector"` + + // List of ingress rules to be applied to the selected pods. + // Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, + // OR if the traffic source is the pod's local node, + // OR if the traffic matches at least one ingress rule across all of the NetworkPolicy + // objects whose podSelector matches the pod. + // If this field is empty then this NetworkPolicy does not affect ingress isolation. + // If this field is present and contains at least one rule, this policy allows any traffic + // which matches at least one of the ingress rules in this list. + Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty"` +} + +// This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. +type NetworkPolicyIngressRule struct { + // List of ports which should be made accessible on the pods selected for this rule. + // Each item in this list is combined using a logical OR. + // If this field is not provided, this rule matches all ports (traffic not restricted by port). + // If this field is empty, this rule matches no ports (no traffic matches). + // If this field is present and contains at least one item, then this rule allows traffic + // only if the traffic matches at least one port in the list. + // TODO: Update this to be a pointer to slice as soon as auto-generation supports it. + Ports []NetworkPolicyPort `json:"ports,omitempty"` + + // List of sources which should be able to access the pods selected for this rule. + // Items in this list are combined using a logical OR operation. + // If this field is not provided, this rule matches all sources (traffic not restricted by source). + // If this field is empty, this rule matches no sources (no traffic matches). + // If this field is present and contains at least on item, this rule allows traffic only if the + // traffic matches at least one item in the from list. + // TODO: Update this to be a pointer to slice as soon as auto-generation supports it. + From []NetworkPolicyPeer `json:"from,omitempty"` +} + +type NetworkPolicyPort struct { + // Optional. The protocol (TCP or UDP) which traffic must match. + // If not specified, this field defaults to TCP. + Protocol *api.Protocol `json:"protocol,omitempty"` + + // If specified, the port on the given protocol. This can + // either be a numerical or named port on a pod. If this field is not provided, + // this matches all port names and numbers. + // If present, only traffic on the specified protocol AND port + // will be matched. + Port *intstr.IntOrString `json:"port,omitempty"` +} + +type NetworkPolicyPeer struct { + // Exactly one of the following must be specified. + + // This is a label selector which selects Pods in this namespace. + // This field follows standard label selector semantics. + // If not provided, this selector selects no pods. + // If present but empty, this selector selects all pods in this namespace. + PodSelector *unversioned.LabelSelector `json:"podSelector,omitempty"` + + // Selects Namespaces using cluster scoped-labels. This + // matches all pods in all namespaces selected by this label selector. + // This field follows standard label selector semantics. + // If omitted, this selector selects no namespaces. + // If present but empty, this selector selects all namespaces. + NamespaceSelector *unversioned.LabelSelector `json:"namespaceSelector,omitempty"` +} + +// NetworkPolicyList is a list of NetworkPolicy objects. +type NetworkPolicyList struct { + unversioned.TypeMeta `json:",inline"` + unversioned.ListMeta `json:"metadata,omitempty"` + + Items []NetworkPolicy `json:"items"` +} + +// +genclient=true +// +nonNamespaced=true + +// StorageClass describes a named "class" of storage offered in a cluster. +// Different classes might map to quality-of-service levels, or to backup policies, +// or to arbitrary policies determined by the cluster administrators. Kubernetes +// itself is unopinionated about what classes represent. This concept is sometimes +// called "profiles" in other storage systems. +// The name of a StorageClass object is significant, and is how users can request a particular class. +type StorageClass struct { + unversioned.TypeMeta `json:",inline"` + api.ObjectMeta `json:"metadata,omitempty"` + + // provisioner is the driver expected to handle this StorageClass. + // This is an optionally-prefixed name, like a label key. + // For example: "kubernetes.io/gce-pd" or "kubernetes.io/aws-ebs". + // This value may not be empty. + Provisioner string `json:"provisioner"` + + // parameters holds parameters for the provisioner. + // These values are opaque to the system and are passed directly + // to the provisioner. The only validation done on keys is that they are + // not empty. The maximum number of parameters is + // 512, with a cumulative max size of 256K + Parameters map[string]string `json:"parameters,omitempty"` +} + +// StorageClassList is a collection of storage classes. +type StorageClassList struct { + unversioned.TypeMeta `json:",inline"` + // Standard list metadata + // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + unversioned.ListMeta `json:"metadata,omitempty"` + + // Items is the list of StorageClasses + Items []StorageClass `json:"items"` +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/zz_generated.deepcopy.go new file mode 100644 index 0000000000..d7d19f8ea7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/apis/extensions/zz_generated.deepcopy.go @@ -0,0 +1,1125 @@ +// +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 extensions + +import ( + api "k8s.io/client-go/1.4/pkg/api" + unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + conversion "k8s.io/client-go/1.4/pkg/conversion" + runtime "k8s.io/client-go/1.4/pkg/runtime" + intstr "k8s.io/client-go/1.4/pkg/util/intstr" + 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_extensions_APIVersion, InType: reflect.TypeOf(&APIVersion{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricCurrentStatus, InType: reflect.TypeOf(&CustomMetricCurrentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricCurrentStatusList, InType: reflect.TypeOf(&CustomMetricCurrentStatusList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricTarget, InType: reflect.TypeOf(&CustomMetricTarget{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_CustomMetricTargetList, InType: reflect.TypeOf(&CustomMetricTargetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSet, InType: reflect.TypeOf(&DaemonSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSetList, InType: reflect.TypeOf(&DaemonSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSetSpec, InType: reflect.TypeOf(&DaemonSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DaemonSetStatus, InType: reflect.TypeOf(&DaemonSetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_Deployment, InType: reflect.TypeOf(&Deployment{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentList, InType: reflect.TypeOf(&DeploymentList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentRollback, InType: reflect.TypeOf(&DeploymentRollback{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentSpec, InType: reflect.TypeOf(&DeploymentSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentStatus, InType: reflect.TypeOf(&DeploymentStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_DeploymentStrategy, InType: reflect.TypeOf(&DeploymentStrategy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_FSGroupStrategyOptions, InType: reflect.TypeOf(&FSGroupStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_HTTPIngressPath, InType: reflect.TypeOf(&HTTPIngressPath{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_HTTPIngressRuleValue, InType: reflect.TypeOf(&HTTPIngressRuleValue{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_HostPortRange, InType: reflect.TypeOf(&HostPortRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IDRange, InType: reflect.TypeOf(&IDRange{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_Ingress, InType: reflect.TypeOf(&Ingress{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressBackend, InType: reflect.TypeOf(&IngressBackend{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressList, InType: reflect.TypeOf(&IngressList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressRule, InType: reflect.TypeOf(&IngressRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressRuleValue, InType: reflect.TypeOf(&IngressRuleValue{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressSpec, InType: reflect.TypeOf(&IngressSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressStatus, InType: reflect.TypeOf(&IngressStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_IngressTLS, InType: reflect.TypeOf(&IngressTLS{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyPeer, InType: reflect.TypeOf(&NetworkPolicyPeer{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicyPort, InType: reflect.TypeOf(&NetworkPolicyPort{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_NetworkPolicySpec, InType: reflect.TypeOf(&NetworkPolicySpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_PodSecurityPolicy, InType: reflect.TypeOf(&PodSecurityPolicy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_PodSecurityPolicyList, InType: reflect.TypeOf(&PodSecurityPolicyList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_PodSecurityPolicySpec, InType: reflect.TypeOf(&PodSecurityPolicySpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSet, InType: reflect.TypeOf(&ReplicaSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSetList, InType: reflect.TypeOf(&ReplicaSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSetSpec, InType: reflect.TypeOf(&ReplicaSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicaSetStatus, InType: reflect.TypeOf(&ReplicaSetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ReplicationControllerDummy, InType: reflect.TypeOf(&ReplicationControllerDummy{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_RollbackConfig, InType: reflect.TypeOf(&RollbackConfig{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_RollingUpdateDeployment, InType: reflect.TypeOf(&RollingUpdateDeployment{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_RunAsUserStrategyOptions, InType: reflect.TypeOf(&RunAsUserStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_SELinuxStrategyOptions, InType: reflect.TypeOf(&SELinuxStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_Scale, InType: reflect.TypeOf(&Scale{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_StorageClass, InType: reflect.TypeOf(&StorageClass{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_StorageClassList, InType: reflect.TypeOf(&StorageClassList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_SupplementalGroupsStrategyOptions, InType: reflect.TypeOf(&SupplementalGroupsStrategyOptions{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResource, InType: reflect.TypeOf(&ThirdPartyResource{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResourceData, InType: reflect.TypeOf(&ThirdPartyResourceData{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResourceDataList, InType: reflect.TypeOf(&ThirdPartyResourceDataList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_extensions_ThirdPartyResourceList, InType: reflect.TypeOf(&ThirdPartyResourceList{})}, + ) +} + +func DeepCopy_extensions_APIVersion(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*APIVersion) + out := out.(*APIVersion) + out.Name = in.Name + return nil + } +} + +func DeepCopy_extensions_CustomMetricCurrentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricCurrentStatus) + out := out.(*CustomMetricCurrentStatus) + out.Name = in.Name + out.CurrentValue = in.CurrentValue.DeepCopy() + return nil + } +} + +func DeepCopy_extensions_CustomMetricCurrentStatusList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricCurrentStatusList) + out := out.(*CustomMetricCurrentStatusList) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomMetricCurrentStatus, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_CustomMetricCurrentStatus(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_CustomMetricTarget(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricTarget) + out := out.(*CustomMetricTarget) + out.Name = in.Name + out.TargetValue = in.TargetValue.DeepCopy() + return nil + } +} + +func DeepCopy_extensions_CustomMetricTargetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CustomMetricTargetList) + out := out.(*CustomMetricTargetList) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomMetricTarget, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_CustomMetricTarget(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_DaemonSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSet) + out := out.(*DaemonSet) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_extensions_DaemonSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetList) + out := out.(*DaemonSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DaemonSet, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_DaemonSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_DaemonSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetSpec) + out := out.(*DaemonSetSpec) + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_DaemonSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DaemonSetStatus) + out := out.(*DaemonSetStatus) + out.CurrentNumberScheduled = in.CurrentNumberScheduled + out.NumberMisscheduled = in.NumberMisscheduled + out.DesiredNumberScheduled = in.DesiredNumberScheduled + return nil + } +} + +func DeepCopy_extensions_Deployment(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Deployment) + out := out.(*Deployment) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_extensions_DeploymentList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentList) + out := out.(*DeploymentList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Deployment, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_Deployment(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_DeploymentRollback(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentRollback) + out := out.(*DeploymentRollback) + out.TypeMeta = in.TypeMeta + out.Name = in.Name + if in.UpdatedAnnotations != nil { + in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.UpdatedAnnotations = nil + } + out.RollbackTo = in.RollbackTo + return nil + } +} + +func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentSpec) + out := out.(*DeploymentSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + if err := DeepCopy_extensions_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { + return err + } + out.MinReadySeconds = in.MinReadySeconds + if in.RevisionHistoryLimit != nil { + in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit + *out = new(int32) + **out = **in + } else { + out.RevisionHistoryLimit = nil + } + out.Paused = in.Paused + if in.RollbackTo != nil { + in, out := &in.RollbackTo, &out.RollbackTo + *out = new(RollbackConfig) + **out = **in + } else { + out.RollbackTo = nil + } + return nil + } +} + +func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentStatus) + out := out.(*DeploymentStatus) + out.ObservedGeneration = in.ObservedGeneration + out.Replicas = in.Replicas + out.UpdatedReplicas = in.UpdatedReplicas + out.AvailableReplicas = in.AvailableReplicas + out.UnavailableReplicas = in.UnavailableReplicas + return nil + } +} + +func DeepCopy_extensions_DeploymentStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentStrategy) + out := out.(*DeploymentStrategy) + out.Type = in.Type + if in.RollingUpdate != nil { + in, out := &in.RollingUpdate, &out.RollingUpdate + *out = new(RollingUpdateDeployment) + **out = **in + } else { + out.RollingUpdate = nil + } + return nil + } +} + +func DeepCopy_extensions_FSGroupStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*FSGroupStrategyOptions) + out := out.(*FSGroupStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_extensions_HTTPIngressPath(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPIngressPath) + out := out.(*HTTPIngressPath) + out.Path = in.Path + out.Backend = in.Backend + return nil + } +} + +func DeepCopy_extensions_HTTPIngressRuleValue(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HTTPIngressRuleValue) + out := out.(*HTTPIngressRuleValue) + if in.Paths != nil { + in, out := &in.Paths, &out.Paths + *out = make([]HTTPIngressPath, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Paths = nil + } + return nil + } +} + +func DeepCopy_extensions_HostPortRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*HostPortRange) + out := out.(*HostPortRange) + out.Min = in.Min + out.Max = in.Max + return nil + } +} + +func DeepCopy_extensions_IDRange(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IDRange) + out := out.(*IDRange) + out.Min = in.Min + out.Max = in.Max + return nil + } +} + +func DeepCopy_extensions_Ingress(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Ingress) + out := out.(*Ingress) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_IngressSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_extensions_IngressStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_IngressBackend(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressBackend) + out := out.(*IngressBackend) + out.ServiceName = in.ServiceName + out.ServicePort = in.ServicePort + return nil + } +} + +func DeepCopy_extensions_IngressList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressList) + out := out.(*IngressList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Ingress, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_Ingress(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_IngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressRule) + out := out.(*IngressRule) + out.Host = in.Host + if err := DeepCopy_extensions_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_IngressRuleValue(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressRuleValue) + out := out.(*IngressRuleValue) + if in.HTTP != nil { + in, out := &in.HTTP, &out.HTTP + *out = new(HTTPIngressRuleValue) + if err := DeepCopy_extensions_HTTPIngressRuleValue(*in, *out, c); err != nil { + return err + } + } else { + out.HTTP = nil + } + return nil + } +} + +func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressSpec) + out := out.(*IngressSpec) + if in.Backend != nil { + in, out := &in.Backend, &out.Backend + *out = new(IngressBackend) + **out = **in + } else { + out.Backend = nil + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = make([]IngressTLS, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_IngressTLS(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.TLS = nil + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]IngressRule, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_IngressRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Rules = nil + } + return nil + } +} + +func DeepCopy_extensions_IngressStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressStatus) + out := out.(*IngressStatus) + if err := api.DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_IngressTLS(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*IngressTLS) + out := out.(*IngressTLS) + if in.Hosts != nil { + in, out := &in.Hosts, &out.Hosts + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.Hosts = nil + } + out.SecretName = in.SecretName + return nil + } +} + +func DeepCopy_extensions_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicy) + out := out.(*NetworkPolicy) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyIngressRule) + out := out.(*NetworkPolicyIngressRule) + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]NetworkPolicyPort, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicyPort(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Ports = nil + } + if in.From != nil { + in, out := &in.From, &out.From + *out = make([]NetworkPolicyPeer, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicyPeer(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.From = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyList) + out := out.(*NetworkPolicyList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NetworkPolicy, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicy(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyPeer) + out := out.(*NetworkPolicyPeer) + if in.PodSelector != nil { + in, out := &in.PodSelector, &out.PodSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.PodSelector = nil + } + if in.NamespaceSelector != nil { + in, out := &in.NamespaceSelector, &out.NamespaceSelector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.NamespaceSelector = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicyPort) + out := out.(*NetworkPolicyPort) + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol + *out = new(api.Protocol) + **out = **in + } else { + out.Protocol = nil + } + if in.Port != nil { + in, out := &in.Port, &out.Port + *out = new(intstr.IntOrString) + **out = **in + } else { + out.Port = nil + } + return nil + } +} + +func DeepCopy_extensions_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*NetworkPolicySpec) + out := out.(*NetworkPolicySpec) + if err := unversioned.DeepCopy_unversioned_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { + return err + } + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]NetworkPolicyIngressRule, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Ingress = nil + } + return nil + } +} + +func DeepCopy_extensions_PodSecurityPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicy) + out := out.(*PodSecurityPolicy) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_PodSecurityPolicySpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_PodSecurityPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicyList) + out := out.(*PodSecurityPolicyList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodSecurityPolicy, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_PodSecurityPolicy(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PodSecurityPolicySpec) + out := out.(*PodSecurityPolicySpec) + out.Privileged = in.Privileged + if in.DefaultAddCapabilities != nil { + in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.DefaultAddCapabilities = nil + } + if in.RequiredDropCapabilities != nil { + in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.RequiredDropCapabilities = nil + } + if in.AllowedCapabilities != nil { + in, out := &in.AllowedCapabilities, &out.AllowedCapabilities + *out = make([]api.Capability, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.AllowedCapabilities = nil + } + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]FSType, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Volumes = nil + } + out.HostNetwork = in.HostNetwork + if in.HostPorts != nil { + in, out := &in.HostPorts, &out.HostPorts + *out = make([]HostPortRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.HostPorts = nil + } + out.HostPID = in.HostPID + out.HostIPC = in.HostIPC + if err := DeepCopy_extensions_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { + return err + } + if err := DeepCopy_extensions_RunAsUserStrategyOptions(&in.RunAsUser, &out.RunAsUser, c); err != nil { + return err + } + if err := DeepCopy_extensions_SupplementalGroupsStrategyOptions(&in.SupplementalGroups, &out.SupplementalGroups, c); err != nil { + return err + } + if err := DeepCopy_extensions_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { + return err + } + out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem + return nil + } +} + +func DeepCopy_extensions_ReplicaSet(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSet) + out := out.(*ReplicaSet) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_extensions_ReplicaSetList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetList) + out := out.(*ReplicaSetList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ReplicaSet, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ReplicaSet(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_ReplicaSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetSpec) + out := out.(*ReplicaSetSpec) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetStatus) + out := out.(*ReplicaSetStatus) + out.Replicas = in.Replicas + out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ObservedGeneration = in.ObservedGeneration + return nil + } +} + +func DeepCopy_extensions_ReplicationControllerDummy(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerDummy) + out := out.(*ReplicationControllerDummy) + out.TypeMeta = in.TypeMeta + return nil + } +} + +func DeepCopy_extensions_RollbackConfig(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RollbackConfig) + out := out.(*RollbackConfig) + out.Revision = in.Revision + return nil + } +} + +func DeepCopy_extensions_RollingUpdateDeployment(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RollingUpdateDeployment) + out := out.(*RollingUpdateDeployment) + out.MaxUnavailable = in.MaxUnavailable + out.MaxSurge = in.MaxSurge + return nil + } +} + +func DeepCopy_extensions_RunAsUserStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RunAsUserStrategyOptions) + out := out.(*RunAsUserStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_extensions_SELinuxStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SELinuxStrategyOptions) + out := out.(*SELinuxStrategyOptions) + out.Rule = in.Rule + if in.SELinuxOptions != nil { + in, out := &in.SELinuxOptions, &out.SELinuxOptions + *out = new(api.SELinuxOptions) + **out = **in + } else { + out.SELinuxOptions = nil + } + return nil + } +} + +func DeepCopy_extensions_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Scale) + out := out.(*Scale) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Spec = in.Spec + if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleSpec) + out := out.(*ScaleSpec) + out.Replicas = in.Replicas + return nil + } +} + +func DeepCopy_extensions_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ScaleStatus) + out := out.(*ScaleStatus) + out.Replicas = in.Replicas + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { + return err + } + } else { + out.Selector = nil + } + return nil + } +} + +func DeepCopy_extensions_StorageClass(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StorageClass) + out := out.(*StorageClass) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Provisioner = in.Provisioner + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Parameters = nil + } + return nil + } +} + +func DeepCopy_extensions_StorageClassList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*StorageClassList) + out := out.(*StorageClassList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]StorageClass, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_StorageClass(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_SupplementalGroupsStrategyOptions(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*SupplementalGroupsStrategyOptions) + out := out.(*SupplementalGroupsStrategyOptions) + out.Rule = in.Rule + if in.Ranges != nil { + in, out := &in.Ranges, &out.Ranges + *out = make([]IDRange, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Ranges = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResource) + out := out.(*ThirdPartyResource) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + out.Description = in.Description + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]APIVersion, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Versions = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceData) + out := out.(*ThirdPartyResourceData) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Data = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResourceDataList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceDataList) + out := out.(*ThirdPartyResourceDataList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ThirdPartyResourceData, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ThirdPartyResourceData(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_extensions_ThirdPartyResourceList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ThirdPartyResourceList) + out := out.(*ThirdPartyResourceList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ThirdPartyResource, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ThirdPartyResource(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user/doc.go new file mode 100644 index 0000000000..570c51ae99 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user/doc.go @@ -0,0 +1,19 @@ +/* +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 user contains utilities for dealing with simple user exchange in the auth +// packages. The user.Info interface defines an interface for exchanging that info. +package user diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user/user.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user/user.go new file mode 100644 index 0000000000..99261965d8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/auth/user/user.go @@ -0,0 +1,65 @@ +/* +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 user + +// Info describes a user that has been authenticated to the system. +type Info interface { + // GetName returns the name that uniquely identifies this user among all + // other active users. + GetName() string + // GetUID returns a unique value for a particular user that will change + // if the user is removed from the system and another user is added with + // the same name. + GetUID() string + // GetGroups returns the names of the groups the user is a member of + GetGroups() []string + + // GetExtra can contain any additional information that the authenticator + // thought was interesting. One example would be scopes on a token. + // Keys in this map should be namespaced to the authenticator or + // authenticator/authorizer pair making use of them. + // For instance: "example.org/foo" instead of "foo" + // This is a map[string][]string because it needs to be serializeable into + // a SubjectAccessReviewSpec.authorization.k8s.io for proper authorization + // delegation flows + GetExtra() map[string][]string +} + +// DefaultInfo provides a simple user information exchange object +// for components that implement the UserInfo interface. +type DefaultInfo struct { + Name string + UID string + Groups []string + Extra map[string][]string +} + +func (i *DefaultInfo) GetName() string { + return i.Name +} + +func (i *DefaultInfo) GetUID() string { + return i.UID +} + +func (i *DefaultInfo) GetGroups() []string { + return i.Groups +} + +func (i *DefaultInfo) GetExtra() map[string][]string { + return i.Extra +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities/capabilities.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities/capabilities.go new file mode 100644 index 0000000000..96146c6b09 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities/capabilities.go @@ -0,0 +1,94 @@ +/* +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 capabilities + +import ( + "sync" +) + +// Capabilities defines the set of capabilities available within the system. +// For now these are global. Eventually they may be per-user +type Capabilities struct { + AllowPrivileged bool + + // Pod sources from which to allow privileged capabilities like host networking, sharing the host + // IPC namespace, and sharing the host PID namespace. + PrivilegedSources PrivilegedSources + + // PerConnectionBandwidthLimitBytesPerSec limits the throughput of each connection (currently only used for proxy, exec, attach) + PerConnectionBandwidthLimitBytesPerSec int64 +} + +// PrivilegedSources defines the pod sources allowed to make privileged requests for certain types +// of capabilities like host networking, sharing the host IPC namespace, and sharing the host PID namespace. +type PrivilegedSources struct { + // List of pod sources for which using host network is allowed. + HostNetworkSources []string + + // List of pod sources for which using host pid namespace is allowed. + HostPIDSources []string + + // List of pod sources for which using host ipc is allowed. + HostIPCSources []string +} + +// TODO: Clean these up into a singleton +var once sync.Once +var lock sync.Mutex +var capabilities *Capabilities + +// Initialize the capability set. This can only be done once per binary, subsequent calls are ignored. +func Initialize(c Capabilities) { + // Only do this once + once.Do(func() { + capabilities = &c + }) +} + +// Setup the capability set. It wraps Initialize for improving usability. +func Setup(allowPrivileged bool, privilegedSources PrivilegedSources, perConnectionBytesPerSec int64) { + Initialize(Capabilities{ + AllowPrivileged: allowPrivileged, + PrivilegedSources: privilegedSources, + PerConnectionBandwidthLimitBytesPerSec: perConnectionBytesPerSec, + }) +} + +// SetCapabilitiesForTests. Convenience method for testing. This should only be called from tests. +func SetForTests(c Capabilities) { + lock.Lock() + defer lock.Unlock() + capabilities = &c +} + +// Returns a read-only copy of the system capabilities. +func Get() Capabilities { + lock.Lock() + defer lock.Unlock() + // This check prevents clobbering of capabilities that might've been set via SetForTests + if capabilities == nil { + Initialize(Capabilities{ + AllowPrivileged: false, + PrivilegedSources: PrivilegedSources{ + HostNetworkSources: []string{}, + HostPIDSources: []string{}, + HostIPCSources: []string{}, + }, + }) + } + return *capabilities +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities/doc.go new file mode 100644 index 0000000000..e2042a881e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/capabilities/doc.go @@ -0,0 +1,18 @@ +/* +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 capabilities manages system level capabilities +package capabilities diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/OWNERS b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/OWNERS new file mode 100644 index 0000000000..a046efc0c2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/OWNERS @@ -0,0 +1,5 @@ +assignees: + - derekwaynecarr + - lavalamp + - smarterclayton + - wojtek-t diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/cloner.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/cloner.go new file mode 100644 index 0000000000..c5dec1f31e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/cloner.go @@ -0,0 +1,249 @@ +/* +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 conversion + +import ( + "fmt" + "reflect" +) + +// Cloner knows how to copy one type to another. +type Cloner struct { + // Map from the type to a function which can do the deep copy. + deepCopyFuncs map[reflect.Type]reflect.Value + generatedDeepCopyFuncs map[reflect.Type]func(in interface{}, out interface{}, c *Cloner) error +} + +// NewCloner creates a new Cloner object. +func NewCloner() *Cloner { + c := &Cloner{ + deepCopyFuncs: map[reflect.Type]reflect.Value{}, + generatedDeepCopyFuncs: map[reflect.Type]func(in interface{}, out interface{}, c *Cloner) error{}, + } + if err := c.RegisterDeepCopyFunc(byteSliceDeepCopy); err != nil { + // If one of the deep-copy functions is malformed, detect it immediately. + panic(err) + } + return c +} + +// Prevent recursing into every byte... +func byteSliceDeepCopy(in *[]byte, out *[]byte, c *Cloner) error { + if *in != nil { + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + *out = nil + } + return nil +} + +// Verifies whether a deep-copy function has a correct signature. +func verifyDeepCopyFunctionSignature(ft reflect.Type) error { + if ft.Kind() != reflect.Func { + return fmt.Errorf("expected func, got: %v", ft) + } + if ft.NumIn() != 3 { + return fmt.Errorf("expected three 'in' params, got %v", ft) + } + if ft.NumOut() != 1 { + return fmt.Errorf("expected one 'out' param, got %v", ft) + } + if ft.In(0).Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'in' param 0, got: %v", ft) + } + if ft.In(1) != ft.In(0) { + return fmt.Errorf("expected 'in' param 0 the same as param 1, got: %v", ft) + } + var forClonerType Cloner + if expected := reflect.TypeOf(&forClonerType); ft.In(2) != expected { + return fmt.Errorf("expected '%v' arg for 'in' param 2, got: '%v'", expected, ft.In(2)) + } + var forErrorType error + // This convolution is necessary, otherwise TypeOf picks up on the fact + // that forErrorType is nil + errorType := reflect.TypeOf(&forErrorType).Elem() + if ft.Out(0) != errorType { + return fmt.Errorf("expected error return, got: %v", ft) + } + return nil +} + +// RegisterGeneratedDeepCopyFunc registers a copying func with the Cloner. +// deepCopyFunc must take three parameters: a type input, a pointer to a +// type output, and a pointer to Cloner. It should return an error. +// +// Example: +// c.RegisterGeneratedDeepCopyFunc( +// func(in Pod, out *Pod, c *Cloner) error { +// // deep copy logic... +// return nil +// }) +func (c *Cloner) RegisterDeepCopyFunc(deepCopyFunc interface{}) error { + fv := reflect.ValueOf(deepCopyFunc) + ft := fv.Type() + if err := verifyDeepCopyFunctionSignature(ft); err != nil { + return err + } + c.deepCopyFuncs[ft.In(0)] = fv + return nil +} + +// GeneratedDeepCopyFunc bundles an untyped generated deep-copy function of a type +// with a reflection type object used as a key to lookup the deep-copy function. +type GeneratedDeepCopyFunc struct { + Fn func(in interface{}, out interface{}, c *Cloner) error + InType reflect.Type +} + +// Similar to RegisterDeepCopyFunc, but registers deep copy function that were +// automatically generated. +func (c *Cloner) RegisterGeneratedDeepCopyFunc(fn GeneratedDeepCopyFunc) error { + c.generatedDeepCopyFuncs[fn.InType] = fn.Fn + return nil +} + +// DeepCopy will perform a deep copy of a given object. +func (c *Cloner) DeepCopy(in interface{}) (interface{}, error) { + // Can be invalid if we run DeepCopy(X) where X is a nil interface type. + // For example, we get an invalid value when someone tries to deep-copy + // a nil labels.Selector. + // This does not occur if X is nil and is a pointer to a concrete type. + if in == nil { + return nil, nil + } + inValue := reflect.ValueOf(in) + outValue, err := c.deepCopy(inValue) + if err != nil { + return nil, err + } + return outValue.Interface(), nil +} + +func (c *Cloner) deepCopy(src reflect.Value) (reflect.Value, error) { + inType := src.Type() + + switch src.Kind() { + case reflect.Interface, reflect.Ptr, reflect.Map, reflect.Slice: + if src.IsNil() { + return src, nil + } + } + + if fv, ok := c.deepCopyFuncs[inType]; ok { + return c.customDeepCopy(src, fv) + } + if fv, ok := c.generatedDeepCopyFuncs[inType]; ok { + var outValue reflect.Value + outValue = reflect.New(inType.Elem()) + err := fv(src.Interface(), outValue.Interface(), c) + return outValue, err + } + return c.defaultDeepCopy(src) +} + +func (c *Cloner) customDeepCopy(src, fv reflect.Value) (reflect.Value, error) { + outValue := reflect.New(src.Type().Elem()) + args := []reflect.Value{src, outValue, reflect.ValueOf(c)} + result := fv.Call(args)[0].Interface() + // This convolution is necessary because nil interfaces won't convert + // to error. + if result == nil { + return outValue, nil + } + return outValue, result.(error) +} + +func (c *Cloner) defaultDeepCopy(src reflect.Value) (reflect.Value, error) { + switch src.Kind() { + case reflect.Chan, reflect.Func, reflect.UnsafePointer, reflect.Uintptr: + return src, fmt.Errorf("cannot deep copy kind: %s", src.Kind()) + case reflect.Array: + dst := reflect.New(src.Type()) + for i := 0; i < src.Len(); i++ { + copyVal, err := c.deepCopy(src.Index(i)) + if err != nil { + return src, err + } + dst.Elem().Index(i).Set(copyVal) + } + return dst.Elem(), nil + case reflect.Interface: + if src.IsNil() { + return src, nil + } + return c.deepCopy(src.Elem()) + case reflect.Map: + if src.IsNil() { + return src, nil + } + dst := reflect.MakeMap(src.Type()) + for _, k := range src.MapKeys() { + copyVal, err := c.deepCopy(src.MapIndex(k)) + if err != nil { + return src, err + } + dst.SetMapIndex(k, copyVal) + } + return dst, nil + case reflect.Ptr: + if src.IsNil() { + return src, nil + } + dst := reflect.New(src.Type().Elem()) + copyVal, err := c.deepCopy(src.Elem()) + if err != nil { + return src, err + } + dst.Elem().Set(copyVal) + return dst, nil + case reflect.Slice: + if src.IsNil() { + return src, nil + } + dst := reflect.MakeSlice(src.Type(), 0, src.Len()) + for i := 0; i < src.Len(); i++ { + copyVal, err := c.deepCopy(src.Index(i)) + if err != nil { + return src, err + } + dst = reflect.Append(dst, copyVal) + } + return dst, nil + case reflect.Struct: + dst := reflect.New(src.Type()) + for i := 0; i < src.NumField(); i++ { + if !dst.Elem().Field(i).CanSet() { + // Can't set private fields. At this point, the + // best we can do is a shallow copy. For + // example, time.Time is a value type with + // private members that can be shallow copied. + return src, nil + } + copyVal, err := c.deepCopy(src.Field(i)) + if err != nil { + return src, err + } + dst.Elem().Field(i).Set(copyVal) + } + return dst.Elem(), nil + + default: + // Value types like numbers, booleans, and strings. + return src, nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/converter.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/converter.go new file mode 100644 index 0000000000..7a18d6360f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/converter.go @@ -0,0 +1,951 @@ +/* +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 conversion + +import ( + "fmt" + "reflect" +) + +type typePair struct { + source reflect.Type + dest reflect.Type +} + +type typeNamePair struct { + fieldType reflect.Type + fieldName string +} + +// DebugLogger allows you to get debugging messages if necessary. +type DebugLogger interface { + Logf(format string, args ...interface{}) +} + +type NameFunc func(t reflect.Type) string + +var DefaultNameFunc = func(t reflect.Type) string { return t.Name() } + +type GenericConversionFunc func(a, b interface{}, scope Scope) (bool, error) + +// Converter knows how to convert one type to another. +type Converter struct { + // Map from the conversion pair to a function which can + // do the conversion. + conversionFuncs ConversionFuncs + generatedConversionFuncs ConversionFuncs + + // genericConversions are called during normal conversion to offer a "fast-path" + // that avoids all reflection. These methods are not called outside of the .Convert() + // method. + genericConversions []GenericConversionFunc + + // Set of conversions that should be treated as a no-op + ignoredConversions map[typePair]struct{} + + // This is a map from a source field type and name, to a list of destination + // field type and name. + structFieldDests map[typeNamePair][]typeNamePair + + // Allows for the opposite lookup of structFieldDests. So that SourceFromDest + // copy flag also works. So this is a map of destination field name, to potential + // source field name and type to look for. + structFieldSources map[typeNamePair][]typeNamePair + + // Map from a type to a function which applies defaults. + defaultingFuncs map[reflect.Type]reflect.Value + + // Similar to above, but function is stored as interface{}. + defaultingInterfaces map[reflect.Type]interface{} + + // Map from an input type to a function which can apply a key name mapping + inputFieldMappingFuncs map[reflect.Type]FieldMappingFunc + + // Map from an input type to a set of default conversion flags. + inputDefaultFlags map[reflect.Type]FieldMatchingFlags + + // If non-nil, will be called to print helpful debugging info. Quite verbose. + Debug DebugLogger + + // nameFunc is called to retrieve the name of a type; this name is used for the + // purpose of deciding whether two types match or not (i.e., will we attempt to + // do a conversion). The default returns the go type name. + nameFunc func(t reflect.Type) string +} + +// NewConverter creates a new Converter object. +func NewConverter(nameFn NameFunc) *Converter { + c := &Converter{ + conversionFuncs: NewConversionFuncs(), + generatedConversionFuncs: NewConversionFuncs(), + ignoredConversions: make(map[typePair]struct{}), + defaultingFuncs: make(map[reflect.Type]reflect.Value), + defaultingInterfaces: make(map[reflect.Type]interface{}), + nameFunc: nameFn, + structFieldDests: make(map[typeNamePair][]typeNamePair), + structFieldSources: make(map[typeNamePair][]typeNamePair), + + inputFieldMappingFuncs: make(map[reflect.Type]FieldMappingFunc), + inputDefaultFlags: make(map[reflect.Type]FieldMatchingFlags), + } + c.RegisterConversionFunc(Convert_Slice_byte_To_Slice_byte) + return c +} + +// AddGenericConversionFunc adds a function that accepts the ConversionFunc call pattern +// (for two conversion types) to the converter. These functions are checked first during +// a normal conversion, but are otherwise not called. Use AddConversionFuncs when registering +// typed conversions. +func (c *Converter) AddGenericConversionFunc(fn GenericConversionFunc) { + c.genericConversions = append(c.genericConversions, fn) +} + +// WithConversions returns a Converter that is a copy of c but with the additional +// fns merged on top. +func (c *Converter) WithConversions(fns ConversionFuncs) *Converter { + copied := *c + copied.conversionFuncs = c.conversionFuncs.Merge(fns) + return &copied +} + +// DefaultMeta returns the conversion FieldMappingFunc and meta for a given type. +func (c *Converter) DefaultMeta(t reflect.Type) (FieldMatchingFlags, *Meta) { + return c.inputDefaultFlags[t], &Meta{ + KeyNameMapping: c.inputFieldMappingFuncs[t], + } +} + +// Convert_Slice_byte_To_Slice_byte prevents recursing into every byte +func Convert_Slice_byte_To_Slice_byte(in *[]byte, out *[]byte, s Scope) error { + if *in == nil { + *out = nil + return nil + } + *out = make([]byte, len(*in)) + copy(*out, *in) + return nil +} + +// Scope is passed to conversion funcs to allow them to continue an ongoing conversion. +// If multiple converters exist in the system, Scope will allow you to use the correct one +// from a conversion function--that is, the one your conversion function was called by. +type Scope interface { + // Call Convert to convert sub-objects. Note that if you call it with your own exact + // parameters, you'll run out of stack space before anything useful happens. + Convert(src, dest interface{}, flags FieldMatchingFlags) error + + // DefaultConvert performs the default conversion, without calling a conversion func + // on the current stack frame. This makes it safe to call from a conversion func. + DefaultConvert(src, dest interface{}, flags FieldMatchingFlags) error + + // If registered, returns a function applying defaults for objects of a given type. + // Used for automatically generating conversion functions. + DefaultingInterface(inType reflect.Type) (interface{}, bool) + + // SrcTags and DestTags contain the struct tags that src and dest had, respectively. + // If the enclosing object was not a struct, then these will contain no tags, of course. + SrcTag() reflect.StructTag + DestTag() reflect.StructTag + + // Flags returns the flags with which the conversion was started. + Flags() FieldMatchingFlags + + // Meta returns any information originally passed to Convert. + Meta() *Meta +} + +// FieldMappingFunc can convert an input field value into different values, depending on +// the value of the source or destination struct tags. +type FieldMappingFunc func(key string, sourceTag, destTag reflect.StructTag) (source string, dest string) + +func NewConversionFuncs() ConversionFuncs { + return ConversionFuncs{fns: make(map[typePair]reflect.Value)} +} + +type ConversionFuncs struct { + fns map[typePair]reflect.Value +} + +// Add adds the provided conversion functions to the lookup table - they must have the signature +// `func(type1, type2, Scope) error`. Functions are added in the order passed and will override +// previously registered pairs. +func (c ConversionFuncs) Add(fns ...interface{}) error { + for _, fn := range fns { + fv := reflect.ValueOf(fn) + ft := fv.Type() + if err := verifyConversionFunctionSignature(ft); err != nil { + return err + } + c.fns[typePair{ft.In(0).Elem(), ft.In(1).Elem()}] = fv + } + return nil +} + +// Merge returns a new ConversionFuncs that contains all conversions from +// both other and c, with other conversions taking precedence. +func (c ConversionFuncs) Merge(other ConversionFuncs) ConversionFuncs { + merged := NewConversionFuncs() + for k, v := range c.fns { + merged.fns[k] = v + } + for k, v := range other.fns { + merged.fns[k] = v + } + return merged +} + +// Meta is supplied by Scheme, when it calls Convert. +type Meta struct { + // KeyNameMapping is an optional function which may map the listed key (field name) + // into a source and destination value. + KeyNameMapping FieldMappingFunc +} + +// scope contains information about an ongoing conversion. +type scope struct { + converter *Converter + meta *Meta + flags FieldMatchingFlags + + // srcStack & destStack are separate because they may not have a 1:1 + // relationship. + srcStack scopeStack + destStack scopeStack +} + +type scopeStackElem struct { + tag reflect.StructTag + value reflect.Value + key string +} + +type scopeStack []scopeStackElem + +func (s *scopeStack) pop() { + n := len(*s) + *s = (*s)[:n-1] +} + +func (s *scopeStack) push(e scopeStackElem) { + *s = append(*s, e) +} + +func (s *scopeStack) top() *scopeStackElem { + return &(*s)[len(*s)-1] +} + +func (s scopeStack) describe() string { + desc := "" + if len(s) > 1 { + desc = "(" + s[1].value.Type().String() + ")" + } + for i, v := range s { + if i < 2 { + // First layer on stack is not real; second is handled specially above. + continue + } + if v.key == "" { + desc += fmt.Sprintf(".%v", v.value.Type()) + } else { + desc += fmt.Sprintf(".%v", v.key) + } + } + return desc +} + +func (s *scope) DefaultingInterface(inType reflect.Type) (interface{}, bool) { + value, found := s.converter.defaultingInterfaces[inType] + return value, found +} + +// Formats src & dest as indices for printing. +func (s *scope) setIndices(src, dest int) { + s.srcStack.top().key = fmt.Sprintf("[%v]", src) + s.destStack.top().key = fmt.Sprintf("[%v]", dest) +} + +// Formats src & dest as map keys for printing. +func (s *scope) setKeys(src, dest interface{}) { + s.srcStack.top().key = fmt.Sprintf(`["%v"]`, src) + s.destStack.top().key = fmt.Sprintf(`["%v"]`, dest) +} + +// Convert continues a conversion. +func (s *scope) Convert(src, dest interface{}, flags FieldMatchingFlags) error { + return s.converter.Convert(src, dest, flags, s.meta) +} + +// DefaultConvert continues a conversion, performing a default conversion (no conversion func) +// for the current stack frame. +func (s *scope) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags) error { + return s.converter.DefaultConvert(src, dest, flags, s.meta) +} + +// SrcTag returns the tag of the struct containing the current source item, if any. +func (s *scope) SrcTag() reflect.StructTag { + return s.srcStack.top().tag +} + +// DestTag returns the tag of the struct containing the current dest item, if any. +func (s *scope) DestTag() reflect.StructTag { + return s.destStack.top().tag +} + +// Flags returns the flags with which the current conversion was started. +func (s *scope) Flags() FieldMatchingFlags { + return s.flags +} + +// Meta returns the meta object that was originally passed to Convert. +func (s *scope) Meta() *Meta { + return s.meta +} + +// describe prints the path to get to the current (source, dest) values. +func (s *scope) describe() (src, dest string) { + return s.srcStack.describe(), s.destStack.describe() +} + +// error makes an error that includes information about where we were in the objects +// we were asked to convert. +func (s *scope) errorf(message string, args ...interface{}) error { + srcPath, destPath := s.describe() + where := fmt.Sprintf("converting %v to %v: ", srcPath, destPath) + return fmt.Errorf(where+message, args...) +} + +// Verifies whether a conversion function has a correct signature. +func verifyConversionFunctionSignature(ft reflect.Type) error { + if ft.Kind() != reflect.Func { + return fmt.Errorf("expected func, got: %v", ft) + } + if ft.NumIn() != 3 { + return fmt.Errorf("expected three 'in' params, got: %v", ft) + } + if ft.NumOut() != 1 { + return fmt.Errorf("expected one 'out' param, got: %v", ft) + } + if ft.In(0).Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'in' param 0, got: %v", ft) + } + if ft.In(1).Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'in' param 1, got: %v", ft) + } + scopeType := Scope(nil) + if e, a := reflect.TypeOf(&scopeType).Elem(), ft.In(2); e != a { + return fmt.Errorf("expected '%v' arg for 'in' param 2, got '%v' (%v)", e, a, ft) + } + var forErrorType error + // This convolution is necessary, otherwise TypeOf picks up on the fact + // that forErrorType is nil. + errorType := reflect.TypeOf(&forErrorType).Elem() + if ft.Out(0) != errorType { + return fmt.Errorf("expected error return, got: %v", ft) + } + return nil +} + +// RegisterConversionFunc registers a conversion func with the +// Converter. conversionFunc must take three parameters: a pointer to the input +// type, a pointer to the output type, and a conversion.Scope (which should be +// used if recursive conversion calls are desired). It must return an error. +// +// Example: +// c.RegisterConversionFunc( +// func(in *Pod, out *v1.Pod, s Scope) error { +// // conversion logic... +// return nil +// }) +func (c *Converter) RegisterConversionFunc(conversionFunc interface{}) error { + return c.conversionFuncs.Add(conversionFunc) +} + +// Similar to RegisterConversionFunc, but registers conversion function that were +// automatically generated. +func (c *Converter) RegisterGeneratedConversionFunc(conversionFunc interface{}) error { + return c.generatedConversionFuncs.Add(conversionFunc) +} + +// RegisterIgnoredConversion registers a "no-op" for conversion, where any requested +// conversion between from and to is ignored. +func (c *Converter) RegisterIgnoredConversion(from, to interface{}) error { + typeFrom := reflect.TypeOf(from) + typeTo := reflect.TypeOf(to) + if reflect.TypeOf(from).Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'from' param 0, got: %v", typeFrom) + } + if typeTo.Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'to' param 1, got: %v", typeTo) + } + c.ignoredConversions[typePair{typeFrom.Elem(), typeTo.Elem()}] = struct{}{} + return nil +} + +// IsConversionIgnored returns true if the specified objects should be dropped during +// conversion. +func (c *Converter) IsConversionIgnored(inType, outType reflect.Type) bool { + _, found := c.ignoredConversions[typePair{inType, outType}] + return found +} + +func (c *Converter) HasConversionFunc(inType, outType reflect.Type) bool { + _, found := c.conversionFuncs.fns[typePair{inType, outType}] + return found +} + +func (c *Converter) ConversionFuncValue(inType, outType reflect.Type) (reflect.Value, bool) { + value, found := c.conversionFuncs.fns[typePair{inType, outType}] + return value, found +} + +// SetStructFieldCopy registers a correspondence. Whenever a struct field is encountered +// which has a type and name matching srcFieldType and srcFieldName, it wil be copied +// into the field in the destination struct matching destFieldType & Name, if such a +// field exists. +// May be called multiple times, even for the same source field & type--all applicable +// copies will be performed. +func (c *Converter) SetStructFieldCopy(srcFieldType interface{}, srcFieldName string, destFieldType interface{}, destFieldName string) error { + st := reflect.TypeOf(srcFieldType) + dt := reflect.TypeOf(destFieldType) + srcKey := typeNamePair{st, srcFieldName} + destKey := typeNamePair{dt, destFieldName} + c.structFieldDests[srcKey] = append(c.structFieldDests[srcKey], destKey) + c.structFieldSources[destKey] = append(c.structFieldSources[destKey], srcKey) + return nil +} + +// RegisterDefaultingFunc registers a value-defaulting func with the Converter. +// defaultingFunc must take one parameters: a pointer to the input type. +// +// Example: +// c.RegisteDefaultingFunc( +// func(in *v1.Pod) { +// // defaulting logic... +// }) +func (c *Converter) RegisterDefaultingFunc(defaultingFunc interface{}) error { + fv := reflect.ValueOf(defaultingFunc) + ft := fv.Type() + if ft.Kind() != reflect.Func { + return fmt.Errorf("expected func, got: %v", ft) + } + if ft.NumIn() != 1 { + return fmt.Errorf("expected one 'in' param, got: %v", ft) + } + if ft.NumOut() != 0 { + return fmt.Errorf("expected zero 'out' params, got: %v", ft) + } + if ft.In(0).Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer arg for 'in' param 0, got: %v", ft) + } + inType := ft.In(0).Elem() + c.defaultingFuncs[inType] = fv + c.defaultingInterfaces[inType] = defaultingFunc + return nil +} + +// RegisterInputDefaults registers a field name mapping function, used when converting +// from maps to structs. Inputs to the conversion methods are checked for this type and a mapping +// applied automatically if the input matches in. A set of default flags for the input conversion +// may also be provided, which will be used when no explicit flags are requested. +func (c *Converter) RegisterInputDefaults(in interface{}, fn FieldMappingFunc, defaultFlags FieldMatchingFlags) error { + fv := reflect.ValueOf(in) + ft := fv.Type() + if ft.Kind() != reflect.Ptr { + return fmt.Errorf("expected pointer 'in' argument, got: %v", ft) + } + c.inputFieldMappingFuncs[ft] = fn + c.inputDefaultFlags[ft] = defaultFlags + return nil +} + +// FieldMatchingFlags contains a list of ways in which struct fields could be +// copied. These constants may be | combined. +type FieldMatchingFlags int + +const ( + // Loop through destination fields, search for matching source + // field to copy it from. Source fields with no corresponding + // destination field will be ignored. If SourceToDest is + // specified, this flag is ignored. If neither is specified, + // or no flags are passed, this flag is the default. + DestFromSource FieldMatchingFlags = 0 + // Loop through source fields, search for matching dest field + // to copy it into. Destination fields with no corresponding + // source field will be ignored. + SourceToDest FieldMatchingFlags = 1 << iota + // Don't treat it as an error if the corresponding source or + // dest field can't be found. + IgnoreMissingFields + // Don't require type names to match. + AllowDifferentFieldTypeNames +) + +// IsSet returns true if the given flag or combination of flags is set. +func (f FieldMatchingFlags) IsSet(flag FieldMatchingFlags) bool { + if flag == DestFromSource { + // The bit logic doesn't work on the default value. + return f&SourceToDest != SourceToDest + } + return f&flag == flag +} + +// Convert will translate src to dest if it knows how. Both must be pointers. +// If no conversion func is registered and the default copying mechanism +// doesn't work on this type pair, an error will be returned. +// Read the comments on the various FieldMatchingFlags constants to understand +// what the 'flags' parameter does. +// 'meta' is given to allow you to pass information to conversion functions, +// it is not used by Convert() other than storing it in the scope. +// Not safe for objects with cyclic references! +func (c *Converter) Convert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error { + if len(c.genericConversions) > 0 { + // TODO: avoid scope allocation + s := &scope{converter: c, flags: flags, meta: meta} + for _, fn := range c.genericConversions { + if ok, err := fn(src, dest, s); ok { + return err + } + } + } + return c.doConversion(src, dest, flags, meta, c.convert) +} + +// DefaultConvert will translate src to dest if it knows how. Both must be pointers. +// No conversion func is used. If the default copying mechanism +// doesn't work on this type pair, an error will be returned. +// Read the comments on the various FieldMatchingFlags constants to understand +// what the 'flags' parameter does. +// 'meta' is given to allow you to pass information to conversion functions, +// it is not used by DefaultConvert() other than storing it in the scope. +// Not safe for objects with cyclic references! +func (c *Converter) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error { + return c.doConversion(src, dest, flags, meta, c.defaultConvert) +} + +type conversionFunc func(sv, dv reflect.Value, scope *scope) error + +func (c *Converter) doConversion(src, dest interface{}, flags FieldMatchingFlags, meta *Meta, f conversionFunc) error { + dv, err := EnforcePtr(dest) + if err != nil { + return err + } + if !dv.CanAddr() && !dv.CanSet() { + return fmt.Errorf("can't write to dest") + } + sv, err := EnforcePtr(src) + if err != nil { + return err + } + s := &scope{ + converter: c, + flags: flags, + meta: meta, + } + // Leave something on the stack, so that calls to struct tag getters never fail. + s.srcStack.push(scopeStackElem{}) + s.destStack.push(scopeStackElem{}) + return f(sv, dv, s) +} + +// callCustom calls 'custom' with sv & dv. custom must be a conversion function. +func (c *Converter) callCustom(sv, dv, custom reflect.Value, scope *scope) error { + if !sv.CanAddr() { + sv2 := reflect.New(sv.Type()) + sv2.Elem().Set(sv) + sv = sv2 + } else { + sv = sv.Addr() + } + if !dv.CanAddr() { + if !dv.CanSet() { + return scope.errorf("can't addr or set dest.") + } + dvOrig := dv + dv := reflect.New(dvOrig.Type()) + defer func() { dvOrig.Set(dv) }() + } else { + dv = dv.Addr() + } + args := []reflect.Value{sv, dv, reflect.ValueOf(scope)} + ret := custom.Call(args)[0].Interface() + // This convolution is necessary because nil interfaces won't convert + // to errors. + if ret == nil { + return nil + } + return ret.(error) +} + +// convert recursively copies sv into dv, calling an appropriate conversion function if +// one is registered. +func (c *Converter) convert(sv, dv reflect.Value, scope *scope) error { + dt, st := dv.Type(), sv.Type() + // Apply default values. + if fv, ok := c.defaultingFuncs[st]; ok { + if c.Debug != nil { + c.Debug.Logf("Applying defaults for '%v'", st) + } + args := []reflect.Value{sv.Addr()} + fv.Call(args) + } + + pair := typePair{st, dt} + + // ignore conversions of this type + if _, ok := c.ignoredConversions[pair]; ok { + if c.Debug != nil { + c.Debug.Logf("Ignoring conversion of '%v' to '%v'", st, dt) + } + return nil + } + + // Convert sv to dv. + if fv, ok := c.conversionFuncs.fns[pair]; ok { + if c.Debug != nil { + c.Debug.Logf("Calling custom conversion of '%v' to '%v'", st, dt) + } + return c.callCustom(sv, dv, fv, scope) + } + if fv, ok := c.generatedConversionFuncs.fns[pair]; ok { + if c.Debug != nil { + c.Debug.Logf("Calling generated conversion of '%v' to '%v'", st, dt) + } + return c.callCustom(sv, dv, fv, scope) + } + + return c.defaultConvert(sv, dv, scope) +} + +// defaultConvert recursively copies sv into dv. no conversion function is called +// for the current stack frame (but conversion functions may be called for nested objects) +func (c *Converter) defaultConvert(sv, dv reflect.Value, scope *scope) error { + dt, st := dv.Type(), sv.Type() + + if !dv.CanSet() { + return scope.errorf("Cannot set dest. (Tried to deep copy something with unexported fields?)") + } + + if !scope.flags.IsSet(AllowDifferentFieldTypeNames) && c.nameFunc(dt) != c.nameFunc(st) { + return scope.errorf( + "type names don't match (%v, %v), and no conversion 'func (%v, %v) error' registered.", + c.nameFunc(st), c.nameFunc(dt), st, dt) + } + + switch st.Kind() { + case reflect.Map, reflect.Ptr, reflect.Slice, reflect.Interface, reflect.Struct: + // Don't copy these via assignment/conversion! + default: + // This should handle all simple types. + if st.AssignableTo(dt) { + dv.Set(sv) + return nil + } + if st.ConvertibleTo(dt) { + dv.Set(sv.Convert(dt)) + return nil + } + } + + if c.Debug != nil { + c.Debug.Logf("Trying to convert '%v' to '%v'", st, dt) + } + + scope.srcStack.push(scopeStackElem{value: sv}) + scope.destStack.push(scopeStackElem{value: dv}) + defer scope.srcStack.pop() + defer scope.destStack.pop() + + switch dv.Kind() { + case reflect.Struct: + return c.convertKV(toKVValue(sv), toKVValue(dv), scope) + case reflect.Slice: + if sv.IsNil() { + // Don't make a zero-length slice. + dv.Set(reflect.Zero(dt)) + return nil + } + dv.Set(reflect.MakeSlice(dt, sv.Len(), sv.Cap())) + for i := 0; i < sv.Len(); i++ { + scope.setIndices(i, i) + if err := c.convert(sv.Index(i), dv.Index(i), scope); err != nil { + return err + } + } + case reflect.Ptr: + if sv.IsNil() { + // Don't copy a nil ptr! + dv.Set(reflect.Zero(dt)) + return nil + } + dv.Set(reflect.New(dt.Elem())) + switch st.Kind() { + case reflect.Ptr, reflect.Interface: + return c.convert(sv.Elem(), dv.Elem(), scope) + default: + return c.convert(sv, dv.Elem(), scope) + } + case reflect.Map: + if sv.IsNil() { + // Don't copy a nil ptr! + dv.Set(reflect.Zero(dt)) + return nil + } + dv.Set(reflect.MakeMap(dt)) + for _, sk := range sv.MapKeys() { + dk := reflect.New(dt.Key()).Elem() + if err := c.convert(sk, dk, scope); err != nil { + return err + } + dkv := reflect.New(dt.Elem()).Elem() + scope.setKeys(sk.Interface(), dk.Interface()) + // TODO: sv.MapIndex(sk) may return a value with CanAddr() == false, + // because a map[string]struct{} does not allow a pointer reference. + // Calling a custom conversion function defined for the map value + // will panic. Example is PodInfo map[string]ContainerStatus. + if err := c.convert(sv.MapIndex(sk), dkv, scope); err != nil { + return err + } + dv.SetMapIndex(dk, dkv) + } + case reflect.Interface: + if sv.IsNil() { + // Don't copy a nil interface! + dv.Set(reflect.Zero(dt)) + return nil + } + tmpdv := reflect.New(sv.Elem().Type()).Elem() + if err := c.convert(sv.Elem(), tmpdv, scope); err != nil { + return err + } + dv.Set(reflect.ValueOf(tmpdv.Interface())) + return nil + default: + return scope.errorf("couldn't copy '%v' into '%v'; didn't understand types", st, dt) + } + return nil +} + +var stringType = reflect.TypeOf("") + +func toKVValue(v reflect.Value) kvValue { + switch v.Kind() { + case reflect.Struct: + return structAdaptor(v) + case reflect.Map: + if v.Type().Key().AssignableTo(stringType) { + return stringMapAdaptor(v) + } + } + + return nil +} + +// kvValue lets us write the same conversion logic to work with both maps +// and structs. Only maps with string keys make sense for this. +type kvValue interface { + // returns all keys, as a []string. + keys() []string + // Will just return "" for maps. + tagOf(key string) reflect.StructTag + // Will return the zero Value if the key doesn't exist. + value(key string) reflect.Value + // Maps require explicit setting-- will do nothing for structs. + // Returns false on failure. + confirmSet(key string, v reflect.Value) bool +} + +type stringMapAdaptor reflect.Value + +func (a stringMapAdaptor) len() int { + return reflect.Value(a).Len() +} + +func (a stringMapAdaptor) keys() []string { + v := reflect.Value(a) + keys := make([]string, v.Len()) + for i, v := range v.MapKeys() { + if v.IsNil() { + continue + } + switch t := v.Interface().(type) { + case string: + keys[i] = t + } + } + return keys +} + +func (a stringMapAdaptor) tagOf(key string) reflect.StructTag { + return "" +} + +func (a stringMapAdaptor) value(key string) reflect.Value { + return reflect.Value(a).MapIndex(reflect.ValueOf(key)) +} + +func (a stringMapAdaptor) confirmSet(key string, v reflect.Value) bool { + return true +} + +type structAdaptor reflect.Value + +func (a structAdaptor) len() int { + v := reflect.Value(a) + return v.Type().NumField() +} + +func (a structAdaptor) keys() []string { + v := reflect.Value(a) + t := v.Type() + keys := make([]string, t.NumField()) + for i := range keys { + keys[i] = t.Field(i).Name + } + return keys +} + +func (a structAdaptor) tagOf(key string) reflect.StructTag { + v := reflect.Value(a) + field, ok := v.Type().FieldByName(key) + if ok { + return field.Tag + } + return "" +} + +func (a structAdaptor) value(key string) reflect.Value { + v := reflect.Value(a) + return v.FieldByName(key) +} + +func (a structAdaptor) confirmSet(key string, v reflect.Value) bool { + return true +} + +// convertKV can convert things that consist of key/value pairs, like structs +// and some maps. +func (c *Converter) convertKV(skv, dkv kvValue, scope *scope) error { + if skv == nil || dkv == nil { + // TODO: add keys to stack to support really understandable error messages. + return fmt.Errorf("Unable to convert %#v to %#v", skv, dkv) + } + + lister := dkv + if scope.flags.IsSet(SourceToDest) { + lister = skv + } + + var mapping FieldMappingFunc + if scope.meta != nil && scope.meta.KeyNameMapping != nil { + mapping = scope.meta.KeyNameMapping + } + + for _, key := range lister.keys() { + if found, err := c.checkField(key, skv, dkv, scope); found { + if err != nil { + return err + } + continue + } + stag := skv.tagOf(key) + dtag := dkv.tagOf(key) + skey := key + dkey := key + if mapping != nil { + skey, dkey = scope.meta.KeyNameMapping(key, stag, dtag) + } + + df := dkv.value(dkey) + sf := skv.value(skey) + if !df.IsValid() || !sf.IsValid() { + switch { + case scope.flags.IsSet(IgnoreMissingFields): + // No error. + case scope.flags.IsSet(SourceToDest): + return scope.errorf("%v not present in dest", dkey) + default: + return scope.errorf("%v not present in src", skey) + } + continue + } + scope.srcStack.top().key = skey + scope.srcStack.top().tag = stag + scope.destStack.top().key = dkey + scope.destStack.top().tag = dtag + if err := c.convert(sf, df, scope); err != nil { + return err + } + } + return nil +} + +// checkField returns true if the field name matches any of the struct +// field copying rules. The error should be ignored if it returns false. +func (c *Converter) checkField(fieldName string, skv, dkv kvValue, scope *scope) (bool, error) { + replacementMade := false + if scope.flags.IsSet(DestFromSource) { + df := dkv.value(fieldName) + if !df.IsValid() { + return false, nil + } + destKey := typeNamePair{df.Type(), fieldName} + // Check each of the potential source (type, name) pairs to see if they're + // present in sv. + for _, potentialSourceKey := range c.structFieldSources[destKey] { + sf := skv.value(potentialSourceKey.fieldName) + if !sf.IsValid() { + continue + } + if sf.Type() == potentialSourceKey.fieldType { + // Both the source's name and type matched, so copy. + scope.srcStack.top().key = potentialSourceKey.fieldName + scope.destStack.top().key = fieldName + if err := c.convert(sf, df, scope); err != nil { + return true, err + } + dkv.confirmSet(fieldName, df) + replacementMade = true + } + } + return replacementMade, nil + } + + sf := skv.value(fieldName) + if !sf.IsValid() { + return false, nil + } + srcKey := typeNamePair{sf.Type(), fieldName} + // Check each of the potential dest (type, name) pairs to see if they're + // present in dv. + for _, potentialDestKey := range c.structFieldDests[srcKey] { + df := dkv.value(potentialDestKey.fieldName) + if !df.IsValid() { + continue + } + if df.Type() == potentialDestKey.fieldType { + // Both the dest's name and type matched, so copy. + scope.srcStack.top().key = fieldName + scope.destStack.top().key = potentialDestKey.fieldName + if err := c.convert(sf, df, scope); err != nil { + return true, err + } + dkv.confirmSet(potentialDestKey.fieldName, df) + replacementMade = true + } + } + return replacementMade, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/deep_equal.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/deep_equal.go new file mode 100644 index 0000000000..271098f219 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/deep_equal.go @@ -0,0 +1,36 @@ +/* +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 conversion + +import ( + "k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect" +) + +// The code for this type must be located in third_party, since it forks from +// go std lib. But for convenience, we expose the type here, too. +type Equalities struct { + reflect.Equalities +} + +// For convenience, panics on errors +func EqualitiesOrDie(funcs ...interface{}) Equalities { + e := Equalities{reflect.Equalities{}} + if err := e.AddFuncs(funcs...); err != nil { + panic(err) + } + return e +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/doc.go new file mode 100644 index 0000000000..0c46ef2d16 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/doc.go @@ -0,0 +1,24 @@ +/* +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 conversion provides go object versioning. +// +// Specifically, conversion provides a way for you to define multiple versions +// of the same object. You may write functions which implement conversion logic, +// but for the fields which did not change, copying is automated. This makes it +// easy to modify the structures you use in memory without affecting the format +// you store on disk or respond to in your external API calls. +package conversion diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/helper.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/helper.go new file mode 100644 index 0000000000..4ebc1ebc51 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/helper.go @@ -0,0 +1,39 @@ +/* +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 conversion + +import ( + "fmt" + "reflect" +) + +// EnforcePtr ensures that obj is a pointer of some sort. Returns a reflect.Value +// of the dereferenced pointer, ensuring that it is settable/addressable. +// Returns an error if this is not possible. +func EnforcePtr(obj interface{}) (reflect.Value, error) { + v := reflect.ValueOf(obj) + if v.Kind() != reflect.Ptr { + if v.Kind() == reflect.Invalid { + return reflect.Value{}, fmt.Errorf("expected pointer, but got invalid kind") + } + return reflect.Value{}, fmt.Errorf("expected pointer, but got %v type", v.Type()) + } + if v.IsNil() { + return reflect.Value{}, fmt.Errorf("expected pointer, but got nil") + } + return v.Elem(), nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams/convert.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams/convert.go new file mode 100644 index 0000000000..30f717b2ce --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams/convert.go @@ -0,0 +1,188 @@ +/* +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 queryparams + +import ( + "fmt" + "net/url" + "reflect" + "strings" +) + +// Marshaler converts an object to a query parameter string representation +type Marshaler interface { + MarshalQueryParameter() (string, error) +} + +// Unmarshaler converts a string representation to an object +type Unmarshaler interface { + UnmarshalQueryParameter(string) error +} + +func jsonTag(field reflect.StructField) (string, bool) { + structTag := field.Tag.Get("json") + if len(structTag) == 0 { + return "", false + } + parts := strings.Split(structTag, ",") + tag := parts[0] + if tag == "-" { + tag = "" + } + omitempty := false + parts = parts[1:] + for _, part := range parts { + if part == "omitempty" { + omitempty = true + break + } + } + return tag, omitempty +} + +func formatValue(value interface{}) string { + return fmt.Sprintf("%v", value) +} + +func isPointerKind(kind reflect.Kind) bool { + return kind == reflect.Ptr +} + +func isStructKind(kind reflect.Kind) bool { + return kind == reflect.Struct +} + +func isValueKind(kind reflect.Kind) bool { + switch kind { + case reflect.String, reflect.Bool, reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, + reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Float32, + reflect.Float64, reflect.Complex64, reflect.Complex128: + return true + default: + return false + } +} + +func zeroValue(value reflect.Value) bool { + return reflect.DeepEqual(reflect.Zero(value.Type()).Interface(), value.Interface()) +} + +func customMarshalValue(value reflect.Value) (reflect.Value, bool) { + // Return unless we implement a custom query marshaler + if !value.CanInterface() { + return reflect.Value{}, false + } + + marshaler, ok := value.Interface().(Marshaler) + if !ok { + return reflect.Value{}, false + } + + // Don't invoke functions on nil pointers + // If the type implements MarshalQueryParameter, AND the tag is not omitempty, AND the value is a nil pointer, "" seems like a reasonable response + if isPointerKind(value.Kind()) && zeroValue(value) { + return reflect.ValueOf(""), true + } + + // Get the custom marshalled value + v, err := marshaler.MarshalQueryParameter() + if err != nil { + return reflect.Value{}, false + } + return reflect.ValueOf(v), true +} + +func addParam(values url.Values, tag string, omitempty bool, value reflect.Value) { + if omitempty && zeroValue(value) { + return + } + val := "" + iValue := fmt.Sprintf("%v", value.Interface()) + + if iValue != "" { + val = iValue + } + values.Add(tag, val) +} + +func addListOfParams(values url.Values, tag string, omitempty bool, list reflect.Value) { + for i := 0; i < list.Len(); i++ { + addParam(values, tag, omitempty, list.Index(i)) + } +} + +// Convert takes an object and converts it to a url.Values object using JSON tags as +// parameter names. Only top-level simple values, arrays, and slices are serialized. +// Embedded structs, maps, etc. will not be serialized. +func Convert(obj interface{}) (url.Values, error) { + result := url.Values{} + if obj == nil { + return result, nil + } + var sv reflect.Value + switch reflect.TypeOf(obj).Kind() { + case reflect.Ptr, reflect.Interface: + sv = reflect.ValueOf(obj).Elem() + default: + return nil, fmt.Errorf("expecting a pointer or interface") + } + st := sv.Type() + if !isStructKind(st.Kind()) { + return nil, fmt.Errorf("expecting a pointer to a struct") + } + + // Check all object fields + convertStruct(result, st, sv) + + return result, nil +} + +func convertStruct(result url.Values, st reflect.Type, sv reflect.Value) { + for i := 0; i < st.NumField(); i++ { + field := sv.Field(i) + tag, omitempty := jsonTag(st.Field(i)) + if len(tag) == 0 { + continue + } + ft := field.Type() + + kind := ft.Kind() + if isPointerKind(kind) { + ft = ft.Elem() + kind = ft.Kind() + if !field.IsNil() { + field = reflect.Indirect(field) + } + } + + switch { + case isValueKind(kind): + addParam(result, tag, omitempty, field) + case kind == reflect.Array || kind == reflect.Slice: + if isValueKind(ft.Elem().Kind()) { + addListOfParams(result, tag, omitempty, field) + } + case isStructKind(kind) && !(zeroValue(field) && omitempty): + if marshalValue, ok := customMarshalValue(field); ok { + addParam(result, tag, omitempty, marshalValue) + } else { + convertStruct(result, ft, field) + } + } + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams/doc.go new file mode 100644 index 0000000000..4c1002a4c1 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/conversion/queryparams/doc.go @@ -0,0 +1,19 @@ +/* +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 queryparams provides conversion from versioned +// runtime objects to URL query values +package queryparams diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/doc.go new file mode 100644 index 0000000000..49059e2635 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/doc.go @@ -0,0 +1,19 @@ +/* +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 fields implements a simple field system, parsing and matching +// selectors with sets of fields. +package fields diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/fields.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/fields.go new file mode 100644 index 0000000000..623b27e957 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/fields.go @@ -0,0 +1,62 @@ +/* +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 fields + +import ( + "sort" + "strings" +) + +// Fields allows you to present fields independently from their storage. +type Fields interface { + // Has returns whether the provided field exists. + Has(field string) (exists bool) + + // Get returns the value for the provided field. + Get(field string) (value string) +} + +// Set is a map of field:value. It implements Fields. +type Set map[string]string + +// String returns all fields listed as a human readable string. +// Conveniently, exactly the format that ParseSelector takes. +func (ls Set) String() string { + selector := make([]string, 0, len(ls)) + for key, value := range ls { + selector = append(selector, key+"="+value) + } + // Sort for determinism. + sort.StringSlice(selector).Sort() + return strings.Join(selector, ",") +} + +// Has returns whether the provided field exists in the map. +func (ls Set) Has(field string) bool { + _, exists := ls[field] + return exists +} + +// Get returns the value in the map for the provided field. +func (ls Set) Get(field string) string { + return ls[field] +} + +// AsSelector converts fields into a selectors. +func (ls Set) AsSelector() Selector { + return SelectorFromSet(ls) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/selector.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/selector.go new file mode 100644 index 0000000000..eef44d3563 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/fields/selector.go @@ -0,0 +1,247 @@ +/* +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 fields + +import ( + "fmt" + "sort" + "strings" +) + +// Selector represents a field selector. +type Selector interface { + // Matches returns true if this selector matches the given set of fields. + Matches(Fields) bool + + // Empty returns true if this selector does not restrict the selection space. + Empty() bool + + // RequiresExactMatch allows a caller to introspect whether a given selector + // requires a single specific field to be set, and if so returns the value it + // requires. + RequiresExactMatch(field string) (value string, found bool) + + // Transform returns a new copy of the selector after TransformFunc has been + // applied to the entire selector, or an error if fn returns an error. + Transform(fn TransformFunc) (Selector, error) + + // String returns a human readable string that represents this selector. + String() string +} + +// Everything returns a selector that matches all fields. +func Everything() Selector { + return andTerm{} +} + +type hasTerm struct { + field, value string +} + +func (t *hasTerm) Matches(ls Fields) bool { + return ls.Get(t.field) == t.value +} + +func (t *hasTerm) Empty() bool { + return false +} + +func (t *hasTerm) RequiresExactMatch(field string) (value string, found bool) { + if t.field == field { + return t.value, true + } + return "", false +} + +func (t *hasTerm) Transform(fn TransformFunc) (Selector, error) { + field, value, err := fn(t.field, t.value) + if err != nil { + return nil, err + } + return &hasTerm{field, value}, nil +} + +func (t *hasTerm) String() string { + return fmt.Sprintf("%v=%v", t.field, t.value) +} + +type notHasTerm struct { + field, value string +} + +func (t *notHasTerm) Matches(ls Fields) bool { + return ls.Get(t.field) != t.value +} + +func (t *notHasTerm) Empty() bool { + return false +} + +func (t *notHasTerm) RequiresExactMatch(field string) (value string, found bool) { + return "", false +} + +func (t *notHasTerm) Transform(fn TransformFunc) (Selector, error) { + field, value, err := fn(t.field, t.value) + if err != nil { + return nil, err + } + return ¬HasTerm{field, value}, nil +} + +func (t *notHasTerm) String() string { + return fmt.Sprintf("%v!=%v", t.field, t.value) +} + +type andTerm []Selector + +func (t andTerm) Matches(ls Fields) bool { + for _, q := range t { + if !q.Matches(ls) { + return false + } + } + return true +} + +func (t andTerm) Empty() bool { + if t == nil { + return true + } + if len([]Selector(t)) == 0 { + return true + } + for i := range t { + if !t[i].Empty() { + return false + } + } + return true +} + +func (t andTerm) RequiresExactMatch(field string) (string, bool) { + if t == nil || len([]Selector(t)) == 0 { + return "", false + } + for i := range t { + if value, found := t[i].RequiresExactMatch(field); found { + return value, found + } + } + return "", false +} + +func (t andTerm) Transform(fn TransformFunc) (Selector, error) { + next := make([]Selector, len([]Selector(t))) + for i, s := range []Selector(t) { + n, err := s.Transform(fn) + if err != nil { + return nil, err + } + next[i] = n + } + return andTerm(next), nil +} + +func (t andTerm) String() string { + var terms []string + for _, q := range t { + terms = append(terms, q.String()) + } + return strings.Join(terms, ",") +} + +// SelectorFromSet returns a Selector which will match exactly the given Set. A +// nil Set is considered equivalent to Everything(). +func SelectorFromSet(ls Set) Selector { + if ls == nil { + return Everything() + } + items := make([]Selector, 0, len(ls)) + for field, value := range ls { + items = append(items, &hasTerm{field: field, value: value}) + } + if len(items) == 1 { + return items[0] + } + return andTerm(items) +} + +// ParseSelectorOrDie takes a string representing a selector and returns an +// object suitable for matching, or panic when an error occur. +func ParseSelectorOrDie(s string) Selector { + selector, err := ParseSelector(s) + if err != nil { + panic(err) + } + return selector +} + +// ParseSelector takes a string representing a selector and returns an +// object suitable for matching, or an error. +func ParseSelector(selector string) (Selector, error) { + return parseSelector(selector, + func(lhs, rhs string) (newLhs, newRhs string, err error) { + return lhs, rhs, nil + }) +} + +// Parses the selector and runs them through the given TransformFunc. +func ParseAndTransformSelector(selector string, fn TransformFunc) (Selector, error) { + return parseSelector(selector, fn) +} + +// Function to transform selectors. +type TransformFunc func(field, value string) (newField, newValue string, err error) + +func try(selectorPiece, op string) (lhs, rhs string, ok bool) { + pieces := strings.Split(selectorPiece, op) + if len(pieces) == 2 { + return pieces[0], pieces[1], true + } + return "", "", false +} + +func parseSelector(selector string, fn TransformFunc) (Selector, error) { + parts := strings.Split(selector, ",") + sort.StringSlice(parts).Sort() + var items []Selector + for _, part := range parts { + if part == "" { + continue + } + if lhs, rhs, ok := try(part, "!="); ok { + items = append(items, ¬HasTerm{field: lhs, value: rhs}) + } else if lhs, rhs, ok := try(part, "=="); ok { + items = append(items, &hasTerm{field: lhs, value: rhs}) + } else if lhs, rhs, ok := try(part, "="); ok { + items = append(items, &hasTerm{field: lhs, value: rhs}) + } else { + return nil, fmt.Errorf("invalid selector: '%s'; can't understand '%s'", selector, part) + } + } + if len(items) == 1 { + return items[0].Transform(fn) + } + return andTerm(items).Transform(fn) +} + +// OneTermEqualSelector returns an object that matches objects where one field/field equals one value. +// Cannot return an error. +func OneTermEqualSelector(k, v string) Selector { + return &hasTerm{field: k, value: v} +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/doc.go new file mode 100644 index 0000000000..35ba788094 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/doc.go @@ -0,0 +1,19 @@ +/* +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 labels implements a simple label system, parsing and matching +// selectors with sets of labels. +package labels diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/labels.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/labels.go new file mode 100644 index 0000000000..637a45fd38 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/labels.go @@ -0,0 +1,71 @@ +/* +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 labels + +import ( + "sort" + "strings" +) + +// Labels allows you to present labels independently from their storage. +type Labels interface { + // Has returns whether the provided label exists. + Has(label string) (exists bool) + + // Get returns the value for the provided label. + Get(label string) (value string) +} + +// Set is a map of label:value. It implements Labels. +type Set map[string]string + +// String returns all labels listed as a human readable string. +// Conveniently, exactly the format that ParseSelector takes. +func (ls Set) String() string { + selector := make([]string, 0, len(ls)) + for key, value := range ls { + selector = append(selector, key+"="+value) + } + // Sort for determinism. + sort.StringSlice(selector).Sort() + return strings.Join(selector, ",") +} + +// Has returns whether the provided label exists in the map. +func (ls Set) Has(label string) bool { + _, exists := ls[label] + return exists +} + +// Get returns the value in the map for the provided label. +func (ls Set) Get(label string) string { + return ls[label] +} + +// AsSelector converts labels into a selectors. +func (ls Set) AsSelector() Selector { + return SelectorFromSet(ls) +} + +// FormatLables convert label map into plain string +func FormatLabels(labelMap map[string]string) string { + l := Set(labelMap).String() + if l == "" { + l = "" + } + return l +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/selector.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/selector.go new file mode 100644 index 0000000000..2cc05e1ce7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/labels/selector.go @@ -0,0 +1,810 @@ +/* +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 labels + +import ( + "bytes" + "fmt" + "sort" + "strconv" + "strings" + + "github.com/golang/glog" + "k8s.io/client-go/1.4/pkg/util/sets" + "k8s.io/client-go/1.4/pkg/util/validation" +) + +// Selector represents a label selector. +type Selector interface { + // Matches returns true if this selector matches the given set of labels. + Matches(Labels) bool + + // Empty returns true if this selector does not restrict the selection space. + Empty() bool + + // String returns a human readable string that represents this selector. + String() string + + // Add adds requirements to the Selector + Add(r ...Requirement) Selector +} + +// Everything returns a selector that matches all labels. +func Everything() Selector { + return internalSelector{} +} + +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 } + +// 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) +} + +type internalSelector []Requirement + +// Sort by key to obtain determisitic parser +type ByKey []Requirement + +func (a ByKey) Len() int { return len(a) } + +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 implements both set based match and exact match +// Requirement is initialized via NewRequirement constructor for creating a valid Requirement. +type Requirement struct { + key string + operator Operator + strValues sets.String +} + +// NewRequirement is the constructor for a Requirement. +// If any of these rules is violated, an error is returned: +// (1) The operator can only be In, NotIn, Equals, DoubleEquals, NotEquals, Exists, or DoesNotExist. +// (2) If the operator is In or NotIn, the values set must be non-empty. +// (3) If the operator is Equals, DoubleEquals, or NotEquals, the values set must contain one value. +// (4) If the operator is Exists or DoesNotExist, the value set must be empty. +// (5) If the operator is Gt or Lt, the values set must contain only one value, which will be interpreted as an integer. +// (6) The key is invalid due to its length, or sequence +// 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) { + if err := validateLabelKey(key); err != nil { + return nil, err + } + switch op { + case InOperator, NotInOperator: + if len(vals) == 0 { + return nil, fmt.Errorf("for 'in', 'notin' operators, values set can't be empty") + } + case EqualsOperator, DoubleEqualsOperator, NotEqualsOperator: + if len(vals) != 1 { + return nil, fmt.Errorf("exact-match compatibility requires one single value") + } + case ExistsOperator, DoesNotExistOperator: + if len(vals) != 0 { + return nil, fmt.Errorf("values set must be empty for exists and does not exist") + } + case GreaterThanOperator, LessThanOperator: + if len(vals) != 1 { + return nil, fmt.Errorf("for 'Gt', 'Lt' operators, exactly one value is required") + } + for val := range vals { + if _, err := strconv.ParseInt(val, 10, 64); err != nil { + return nil, fmt.Errorf("for 'Gt', 'Lt' operators, the value must be an integer") + } + } + default: + return nil, fmt.Errorf("operator '%v' is not recognized", op) + } + + for v := range vals { + if err := validateLabelValue(v); err != nil { + return nil, err + } + } + return &Requirement{key: key, operator: op, strValues: vals}, nil +} + +// Matches returns true if the Requirement matches the input Labels. +// There is a match in the following cases: +// (1) The operator is Exists and Labels has the Requirement's key. +// (2) The operator is In, Labels has the Requirement's key and Labels' +// value for that key is in Requirement's value set. +// (3) The operator is NotIn, Labels has the Requirement's key and +// Labels' value for that key is not in Requirement's value set. +// (4) The operator is DoesNotExist or NotIn and Labels does not have the +// Requirement's key. +// (5) The operator is GreaterThanOperator or LessThanOperator, and Labels has +// 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: + if !ls.Has(r.key) { + return false + } + return r.strValues.Has(ls.Get(r.key)) + case NotInOperator, NotEqualsOperator: + if !ls.Has(r.key) { + return true + } + return !r.strValues.Has(ls.Get(r.key)) + case ExistsOperator: + return ls.Has(r.key) + case DoesNotExistOperator: + return !ls.Has(r.key) + case GreaterThanOperator, LessThanOperator: + if !ls.Has(r.key) { + return false + } + lsValue, err := strconv.ParseInt(ls.Get(r.key), 10, 64) + if err != nil { + glog.V(10).Infof("ParseInt failed for value %+v in label %+v, %+v", ls.Get(r.key), ls, err) + return false + } + + // There should be only one strValue in r.strValues, and can be converted to a integer. + if len(r.strValues) != 1 { + glog.V(10).Infof("Invalid values count %+v of requirement %#v, for 'Gt', 'Lt' operators, exactly one value is required", len(r.strValues), r) + return false + } + + var rValue int64 + for strValue := range r.strValues { + rValue, err = strconv.ParseInt(strValue, 10, 64) + if err != nil { + glog.V(10).Infof("ParseInt failed for value %+v in requirement %#v, for 'Gt', 'Lt' operators, the value must be an integer", strValue, r) + return false + } + } + return (r.operator == GreaterThanOperator && lsValue > rValue) || (r.operator == LessThanOperator && lsValue < rValue) + default: + return false + } +} + +func (r *Requirement) Key() string { + return r.key +} +func (r *Requirement) Operator() Operator { + return r.operator +} +func (r *Requirement) Values() sets.String { + ret := sets.String{} + for k := range r.strValues { + ret.Insert(k) + } + return ret +} + +// Return true if the internalSelector doesn't restrict selection space +func (lsel internalSelector) Empty() bool { + if lsel == nil { + return true + } + return len(lsel) == 0 +} + +// String returns a human-readable string that represents this +// Requirement. If called on an invalid Requirement, an error is +// returned. See NewRequirement for creating a valid Requirement. +func (r *Requirement) String() string { + var buffer bytes.Buffer + if r.operator == DoesNotExistOperator { + buffer.WriteString("!") + } + buffer.WriteString(r.key) + + switch r.operator { + case EqualsOperator: + buffer.WriteString("=") + case DoubleEqualsOperator: + buffer.WriteString("==") + case NotEqualsOperator: + buffer.WriteString("!=") + case InOperator: + buffer.WriteString(" in ") + case NotInOperator: + buffer.WriteString(" notin ") + case GreaterThanOperator: + buffer.WriteString(">") + case LessThanOperator: + buffer.WriteString("<") + case ExistsOperator, DoesNotExistOperator: + return buffer.String() + } + + switch r.operator { + case InOperator, NotInOperator: + buffer.WriteString("(") + } + if len(r.strValues) == 1 { + buffer.WriteString(r.strValues.List()[0]) + } else { // only > 1 since == 0 prohibited by NewRequirement + buffer.WriteString(strings.Join(r.strValues.List(), ",")) + } + + switch r.operator { + case InOperator, NotInOperator: + buffer.WriteString(")") + } + return buffer.String() +} + +// Add adds requirements to the selector. It copies the current selector returning a new one +func (lsel internalSelector) Add(reqs ...Requirement) Selector { + var sel internalSelector + for ix := range lsel { + sel = append(sel, lsel[ix]) + } + for _, r := range reqs { + sel = append(sel, r) + } + sort.Sort(ByKey(sel)) + return sel +} + +// Matches for a internalSelector returns true if all +// its Requirements match the input Labels. If any +// Requirement does not match, false is returned. +func (lsel internalSelector) Matches(l Labels) bool { + for ix := range lsel { + if matches := lsel[ix].Matches(l); !matches { + return false + } + } + return true +} + +// String returns a comma-separated string of all +// the internalSelector Requirements' human-readable strings. +func (lsel internalSelector) String() string { + var reqs []string + for ix := range lsel { + reqs = append(reqs, lsel[ix].String()) + } + return strings.Join(reqs, ",") +} + +// constants definition for lexer token +type Token int + +const ( + ErrorToken Token = iota + EndOfStringToken + ClosedParToken + CommaToken + DoesNotExistToken + DoubleEqualsToken + EqualsToken + GreaterThanToken + IdentifierToken // to represent keys and values + InToken + LessThanToken + NotEqualsToken + NotInToken + OpenParToken +) + +// string2token contains the mapping between lexer Token and token literal +// (except IdentifierToken, EndOfStringToken and ErrorToken since it makes no sense) +var string2token = map[string]Token{ + ")": ClosedParToken, + ",": CommaToken, + "!": DoesNotExistToken, + "==": DoubleEqualsToken, + "=": EqualsToken, + ">": GreaterThanToken, + "in": InToken, + "<": LessThanToken, + "!=": NotEqualsToken, + "notin": NotInToken, + "(": OpenParToken, +} + +// The item produced by the lexer. It contains the Token and the literal. +type ScannedItem struct { + tok Token + literal string +} + +// isWhitespace returns true if the rune is a space, tab, or newline. +func isWhitespace(ch byte) bool { + return ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n' +} + +// isSpecialSymbol detect if the character ch can be an operator +func isSpecialSymbol(ch byte) bool { + switch ch { + case '=', '!', '(', ')', ',', '>', '<': + return true + } + return false +} + +// Lexer represents the Lexer struct for label selector. +// It contains necessary informationt to tokenize the input string +type Lexer struct { + // s stores the string to be tokenized + s string + // pos is the position currently tokenized + pos int +} + +// read return the character currently lexed +// increment the position and check the buffer overflow +func (l *Lexer) read() (b byte) { + b = 0 + if l.pos < len(l.s) { + b = l.s[l.pos] + l.pos++ + } + return b +} + +// unread 'undoes' the last read character +func (l *Lexer) unread() { + l.pos-- +} + +// scanIdOrKeyword scans string to recognize literal token (for example 'in') or an identifier. +func (l *Lexer) scanIdOrKeyword() (tok Token, lit string) { + var buffer []byte +IdentifierLoop: + for { + switch ch := l.read(); { + case ch == 0: + break IdentifierLoop + case isSpecialSymbol(ch) || isWhitespace(ch): + l.unread() + break IdentifierLoop + default: + buffer = append(buffer, ch) + } + } + s := string(buffer) + if val, ok := string2token[s]; ok { // is a literal token? + return val, s + } + return IdentifierToken, s // otherwise is an identifier +} + +// scanSpecialSymbol scans string starting with special symbol. +// special symbol identify non literal operators. "!=", "==", "=" +func (l *Lexer) scanSpecialSymbol() (Token, string) { + lastScannedItem := ScannedItem{} + var buffer []byte +SpecialSymbolLoop: + for { + switch ch := l.read(); { + case ch == 0: + break SpecialSymbolLoop + case isSpecialSymbol(ch): + buffer = append(buffer, ch) + if token, ok := string2token[string(buffer)]; ok { + lastScannedItem = ScannedItem{tok: token, literal: string(buffer)} + } else if lastScannedItem.tok != 0 { + l.unread() + break SpecialSymbolLoop + } + default: + l.unread() + break SpecialSymbolLoop + } + } + if lastScannedItem.tok == 0 { + return ErrorToken, fmt.Sprintf("error expected: keyword found '%s'", buffer) + } + return lastScannedItem.tok, lastScannedItem.literal +} + +// skipWhiteSpaces consumes all blank characters +// returning the first non blank character +func (l *Lexer) skipWhiteSpaces(ch byte) byte { + for { + if !isWhitespace(ch) { + return ch + } + ch = l.read() + } +} + +// Lex returns a pair of Token and the literal +// literal is meaningfull only for IdentifierToken token +func (l *Lexer) Lex() (tok Token, lit string) { + switch ch := l.skipWhiteSpaces(l.read()); { + case ch == 0: + return EndOfStringToken, "" + case isSpecialSymbol(ch): + l.unread() + return l.scanSpecialSymbol() + default: + l.unread() + return l.scanIdOrKeyword() + } +} + +// Parser data structure contains the label selector parser data structure +type Parser struct { + l *Lexer + scannedItems []ScannedItem + position int +} + +// Parser context represents context during parsing: +// some literal for example 'in' and 'notin' can be +// recognized as operator for example 'x in (a)' but +// it can be recognized as value for example 'value in (in)' +type ParserContext int + +const ( + KeyAndOperator ParserContext = iota + Values +) + +// lookahead func returns the current token and string. No increment of current position +func (p *Parser) lookahead(context ParserContext) (Token, string) { + tok, lit := p.scannedItems[p.position].tok, p.scannedItems[p.position].literal + if context == Values { + switch tok { + case InToken, NotInToken: + tok = IdentifierToken + } + } + return tok, lit +} + +// consume returns current token and string. Increments the the position +func (p *Parser) consume(context ParserContext) (Token, string) { + p.position++ + tok, lit := p.scannedItems[p.position-1].tok, p.scannedItems[p.position-1].literal + if context == Values { + switch tok { + case InToken, NotInToken: + tok = IdentifierToken + } + } + return tok, lit +} + +// scan runs through the input string and stores the ScannedItem in an array +// Parser can now lookahead and consume the tokens +func (p *Parser) scan() { + for { + token, literal := p.l.Lex() + p.scannedItems = append(p.scannedItems, ScannedItem{token, literal}) + if token == EndOfStringToken { + break + } + } +} + +// parse runs the left recursive descending algorithm +// on input string. It returns a list of Requirement objects. +func (p *Parser) parse() (internalSelector, error) { + p.scan() // init scannedItems + + var requirements internalSelector + for { + tok, lit := p.lookahead(Values) + switch tok { + case IdentifierToken, DoesNotExistToken: + r, err := p.parseRequirement() + if err != nil { + return nil, fmt.Errorf("unable to parse requirement: %v", err) + } + requirements = append(requirements, *r) + t, l := p.consume(Values) + switch t { + case EndOfStringToken: + return requirements, nil + case CommaToken: + t2, l2 := p.lookahead(Values) + if t2 != IdentifierToken && t2 != DoesNotExistToken { + return nil, fmt.Errorf("found '%s', expected: identifier after ','", l2) + } + default: + return nil, fmt.Errorf("found '%s', expected: ',' or 'end of string'", l) + } + case EndOfStringToken: + return requirements, nil + default: + return nil, fmt.Errorf("found '%s', expected: !, identifier, or 'end of string'", lit) + } + } +} + +func (p *Parser) parseRequirement() (*Requirement, error) { + key, operator, err := p.parseKeyAndInferOperator() + if err != nil { + return nil, err + } + if operator == ExistsOperator || operator == DoesNotExistOperator { // operator found lookahead set checked + return NewRequirement(key, operator, nil) + } + operator, err = p.parseOperator() + if err != nil { + return nil, err + } + var values sets.String + switch operator { + case InOperator, NotInOperator: + values, err = p.parseValues() + case EqualsOperator, DoubleEqualsOperator, NotEqualsOperator, GreaterThanOperator, LessThanOperator: + values, err = p.parseExactValue() + } + if err != nil { + return nil, err + } + return NewRequirement(key, operator, values) + +} + +// 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 + tok, literal := p.consume(Values) + if tok == DoesNotExistToken { + operator = DoesNotExistOperator + tok, literal = p.consume(Values) + } + if tok != IdentifierToken { + err := fmt.Errorf("found '%s', expected: identifier", literal) + return "", "", err + } + if err := validateLabelKey(literal); err != nil { + return "", "", err + } + if t, _ := p.lookahead(Values); t == EndOfStringToken || t == CommaToken { + if operator != DoesNotExistOperator { + operator = ExistsOperator + } + } + return literal, operator, nil +} + +// parseOperator return operator and eventually matchType +// matchType can be exact +func (p *Parser) parseOperator() (op 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 + case EqualsToken: + op = EqualsOperator + case DoubleEqualsToken: + op = DoubleEqualsOperator + case GreaterThanToken: + op = GreaterThanOperator + case LessThanToken: + op = LessThanOperator + case NotInToken: + op = NotInOperator + case NotEqualsToken: + op = NotEqualsOperator + default: + return "", fmt.Errorf("found '%s', expected: '=', '!=', '==', 'in', notin'", lit) + } + return op, nil +} + +// parseValues parses the values for set based matching (x,y,z) +func (p *Parser) parseValues() (sets.String, error) { + tok, lit := p.consume(Values) + if tok != OpenParToken { + return nil, fmt.Errorf("found '%s' expected: '('", lit) + } + tok, lit = p.lookahead(Values) + switch tok { + case IdentifierToken, CommaToken: + s, err := p.parseIdentifiersList() // handles general cases + if err != nil { + return s, err + } + if tok, _ = p.consume(Values); tok != ClosedParToken { + return nil, fmt.Errorf("found '%s', expected: ')'", lit) + } + return s, nil + case ClosedParToken: // handles "()" + p.consume(Values) + return sets.NewString(""), nil + default: + return nil, fmt.Errorf("found '%s', expected: ',', ')' or identifier", lit) + } +} + +// parseIdentifiersList parses a (possibly empty) list of +// of comma separated (possibly empty) identifiers +func (p *Parser) parseIdentifiersList() (sets.String, error) { + s := sets.NewString() + for { + tok, lit := p.consume(Values) + switch tok { + case IdentifierToken: + s.Insert(lit) + tok2, lit2 := p.lookahead(Values) + switch tok2 { + case CommaToken: + continue + case ClosedParToken: + return s, nil + default: + return nil, fmt.Errorf("found '%s', expected: ',' or ')'", lit2) + } + case CommaToken: // handled here since we can have "(," + if s.Len() == 0 { + s.Insert("") // to handle (, + } + tok2, _ := p.lookahead(Values) + if tok2 == ClosedParToken { + s.Insert("") // to handle ,) Double "" removed by StringSet + return s, nil + } + if tok2 == CommaToken { + p.consume(Values) + s.Insert("") // to handle ,, Double "" removed by StringSet + } + default: // it can be operator + return s, fmt.Errorf("found '%s', expected: ',', or identifier", lit) + } + } +} + +// parseExactValue parses the only value for exact match style +func (p *Parser) parseExactValue() (sets.String, error) { + s := sets.NewString() + tok, lit := p.lookahead(Values) + if tok == EndOfStringToken || tok == CommaToken { + s.Insert("") + return s, nil + } + tok, lit = p.consume(Values) + if tok == IdentifierToken { + s.Insert(lit) + return s, nil + } + return nil, fmt.Errorf("found '%s', expected: identifier", lit) +} + +// Parse takes a string representing a selector and returns a selector +// object, or an error. This parsing function differs from ParseSelector +// as they parse different selectors with different syntaxes. +// The input will cause an error if it does not follow this form: +// +// ::= | "," ] +// ::= [!] KEY [ | ] +// ::= "" | +// ::= | +// ::= "notin" +// ::= "in" +// ::= "(" ")" +// ::= VALUE | VALUE "," +// ::= ["="|"=="|"!="] VALUE +// KEY is a sequence of one or more characters following [ DNS_SUBDOMAIN "/" ] DNS_LABEL. Max length is 63 characters. +// VALUE is a sequence of zero or more characters "([A-Za-z0-9_-\.])". Max length is 63 characters. +// Delimiter is white space: (' ', '\t') +// Example of valid syntax: +// "x in (foo,,baz),y,z notin ()" +// +// Note: +// (1) Inclusion - " in " - denotes that the KEY exists and is equal to any of the +// VALUEs in its requirement +// (2) Exclusion - " notin " - denotes that the KEY is not equal to any +// of the VALUEs in its requirement or does not exist +// (3) The empty string is a valid VALUE +// (4) A requirement with just a KEY - as in "y" above - denotes that +// the KEY exists and can be any VALUE. +// (5) A requirement with just !KEY requires that the KEY not exist. +// +func Parse(selector string) (Selector, error) { + parsedSelector, err := parse(selector) + if err == nil { + return parsedSelector, nil + } + return nil, err +} + +// parse parses the string representation of the selector and returns the internalSelector struct. +// The callers of this method can then decide how to return the internalSelector struct to their +// callers. This function has two callers now, one returns a Selector interface and the other +// returns a list of requirements. +func parse(selector string) (internalSelector, error) { + p := &Parser{l: &Lexer{s: selector, pos: 0}} + items, err := p.parse() + if err != nil { + return nil, err + } + sort.Sort(ByKey(items)) // sort to grant determistic parsing + return internalSelector(items), err +} + +func validateLabelKey(k string) error { + if errs := validation.IsQualifiedName(k); len(errs) != 0 { + return fmt.Errorf("invalid label key %q: %s", k, strings.Join(errs, "; ")) + } + return nil +} + +func validateLabelValue(v string) error { + if errs := validation.IsValidLabelValue(v); len(errs) != 0 { + return fmt.Errorf("invalid label value: %q: %s", v, strings.Join(errs, "; ")) + } + return nil +} + +// SelectorFromSet returns a Selector which will match exactly the given Set. A +// nil and empty Sets are considered equivalent to Everything(). +func SelectorFromSet(ls Set) Selector { + if ls == nil { + return internalSelector{} + } + var requirements internalSelector + for label, value := range ls { + if r, err := NewRequirement(label, EqualsOperator, sets.NewString(value)); err != nil { + //TODO: double check errors when input comes from serialization? + return internalSelector{} + } else { + requirements = append(requirements, *r) + } + } + // 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. +// See the documentation for Parse() function for more details. +// TODO: Consider exporting the internalSelector type instead. +func ParseToRequirements(selector string) ([]Requirement, error) { + return parse(selector) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/OWNERS b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/OWNERS new file mode 100644 index 0000000000..d038b5e9b9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/OWNERS @@ -0,0 +1,5 @@ +assignees: + - caesarxuchao + - deads2k + - lavalamp + - smarterclayton diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/codec.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/codec.go new file mode 100644 index 0000000000..9f8ecef428 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/codec.go @@ -0,0 +1,200 @@ +/* +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 runtime + +import ( + "bytes" + "encoding/base64" + "fmt" + "io" + "net/url" + "reflect" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion/queryparams" +) + +// codec binds an encoder and decoder. +type codec struct { + Encoder + Decoder +} + +// NewCodec creates a Codec from an Encoder and Decoder. +func NewCodec(e Encoder, d Decoder) Codec { + return codec{e, d} +} + +// Encode is a convenience wrapper for encoding to a []byte from an Encoder +func Encode(e Encoder, obj Object) ([]byte, error) { + // TODO: reuse buffer + buf := &bytes.Buffer{} + if err := e.Encode(obj, buf); err != nil { + return nil, err + } + return buf.Bytes(), nil +} + +// Decode is a convenience wrapper for decoding data into an Object. +func Decode(d Decoder, data []byte) (Object, error) { + obj, _, err := d.Decode(data, nil, nil) + return obj, err +} + +// DecodeInto performs a Decode into the provided object. +func DecodeInto(d Decoder, data []byte, into Object) error { + out, gvk, err := d.Decode(data, nil, into) + if err != nil { + return err + } + if out != into { + return fmt.Errorf("unable to decode %s into %v", gvk, reflect.TypeOf(into)) + } + return nil +} + +// EncodeOrDie is a version of Encode which will panic instead of returning an error. For tests. +func EncodeOrDie(e Encoder, obj Object) string { + bytes, err := Encode(e, obj) + if err != nil { + panic(err) + } + return string(bytes) +} + +// UseOrCreateObject returns obj if the canonical ObjectKind returned by the provided typer matches gvk, or +// invokes the ObjectCreator to instantiate a new gvk. Returns an error if the typer cannot find the object. +func UseOrCreateObject(t ObjectTyper, c ObjectCreater, gvk unversioned.GroupVersionKind, obj Object) (Object, error) { + if obj != nil { + kinds, _, err := t.ObjectKinds(obj) + if err != nil { + return nil, err + } + for _, kind := range kinds { + if gvk == kind { + return obj, nil + } + } + } + return c.New(gvk) +} + +// NoopEncoder converts an Decoder to a Serializer or Codec for code that expects them but only uses decoding. +type NoopEncoder struct { + Decoder +} + +var _ Serializer = NoopEncoder{} + +func (n NoopEncoder) Encode(obj Object, w io.Writer) error { + return fmt.Errorf("encoding is not allowed for this codec: %v", reflect.TypeOf(n.Decoder)) +} + +// NoopDecoder converts an Encoder to a Serializer or Codec for code that expects them but only uses encoding. +type NoopDecoder struct { + Encoder +} + +var _ Serializer = NoopDecoder{} + +func (n NoopDecoder) Decode(data []byte, gvk *unversioned.GroupVersionKind, into Object) (Object, *unversioned.GroupVersionKind, error) { + return nil, nil, fmt.Errorf("decoding is not allowed for this codec: %v", reflect.TypeOf(n.Encoder)) +} + +// NewParameterCodec creates a ParameterCodec capable of transforming url values into versioned objects and back. +func NewParameterCodec(scheme *Scheme) ParameterCodec { + return ¶meterCodec{ + typer: scheme, + convertor: scheme, + creator: scheme, + } +} + +// parameterCodec implements conversion to and from query parameters and objects. +type parameterCodec struct { + typer ObjectTyper + convertor ObjectConvertor + creator ObjectCreater +} + +var _ ParameterCodec = ¶meterCodec{} + +// DecodeParameters converts the provided url.Values into an object of type From with the kind of into, and then +// converts that object to into (if necessary). Returns an error if the operation cannot be completed. +func (c *parameterCodec) DecodeParameters(parameters url.Values, from unversioned.GroupVersion, into Object) error { + if len(parameters) == 0 { + return nil + } + targetGVKs, _, err := c.typer.ObjectKinds(into) + if err != nil { + return err + } + targetGVK := targetGVKs[0] + if targetGVK.GroupVersion() == from { + return c.convertor.Convert(¶meters, into) + } + input, err := c.creator.New(from.WithKind(targetGVK.Kind)) + if err != nil { + return err + } + if err := c.convertor.Convert(¶meters, input); err != nil { + return err + } + return c.convertor.Convert(input, into) +} + +// EncodeParameters converts the provided object into the to version, then converts that object to url.Values. +// Returns an error if conversion is not possible. +func (c *parameterCodec) EncodeParameters(obj Object, to unversioned.GroupVersion) (url.Values, error) { + gvks, _, err := c.typer.ObjectKinds(obj) + if err != nil { + return nil, err + } + gvk := gvks[0] + if to != gvk.GroupVersion() { + out, err := c.convertor.ConvertToVersion(obj, to) + if err != nil { + return nil, err + } + obj = out + } + return queryparams.Convert(obj) +} + +type base64Serializer struct { + Serializer +} + +func NewBase64Serializer(s Serializer) Serializer { + return &base64Serializer{s} +} + +func (s base64Serializer) Encode(obj Object, stream io.Writer) error { + e := base64.NewEncoder(base64.StdEncoding, stream) + err := s.Serializer.Encode(obj, e) + e.Close() + return err +} + +func (s base64Serializer) Decode(data []byte, defaults *unversioned.GroupVersionKind, into Object) (Object, *unversioned.GroupVersionKind, error) { + out := make([]byte, base64.StdEncoding.DecodedLen(len(data))) + n, err := base64.StdEncoding.Decode(out, data) + if err != nil { + return nil, nil, err + } + return s.Serializer.Decode(out[:n], defaults, into) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/codec_check.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/codec_check.go new file mode 100644 index 0000000000..36868c19bc --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/codec_check.go @@ -0,0 +1,50 @@ +/* +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 runtime + +import ( + "fmt" + "reflect" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// CheckCodec makes sure that the codec can encode objects like internalType, +// decode all of the external types listed, and also decode them into the given +// object. (Will modify internalObject.) (Assumes JSON serialization.) +// TODO: verify that the correct external version is chosen on encode... +func CheckCodec(c Codec, internalType Object, externalTypes ...unversioned.GroupVersionKind) error { + _, err := Encode(c, internalType) + if err != nil { + return fmt.Errorf("Internal type not encodable: %v", err) + } + for _, et := range externalTypes { + exBytes := []byte(fmt.Sprintf(`{"kind":"%v","apiVersion":"%v"}`, et.Kind, et.GroupVersion().String())) + obj, err := Decode(c, exBytes) + if err != nil { + return fmt.Errorf("external type %s not interpretable: %v", et, err) + } + if reflect.TypeOf(obj) != reflect.TypeOf(internalType) { + return fmt.Errorf("decode of external type %s produced: %#v", et, obj) + } + err = DecodeInto(c, exBytes, internalType) + if err != nil { + return fmt.Errorf("external type %s not convertable to internal type: %v", et, err) + } + } + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/conversion.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/conversion.go new file mode 100644 index 0000000000..da1d097f75 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/conversion.go @@ -0,0 +1,98 @@ +/* +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. +*/ + +// Defines conversions between generic types and structs to map query strings +// to struct objects. +package runtime + +import ( + "reflect" + "strconv" + "strings" + + "k8s.io/client-go/1.4/pkg/conversion" +) + +// JSONKeyMapper uses the struct tags on a conversion to determine the key value for +// the other side. Use when mapping from a map[string]* to a struct or vice versa. +func JSONKeyMapper(key string, sourceTag, destTag reflect.StructTag) (string, string) { + if s := destTag.Get("json"); len(s) > 0 { + return strings.SplitN(s, ",", 2)[0], key + } + if s := sourceTag.Get("json"); len(s) > 0 { + return key, strings.SplitN(s, ",", 2)[0] + } + return key, key +} + +// DefaultStringConversions are helpers for converting []string and string to real values. +var DefaultStringConversions = []interface{}{ + Convert_Slice_string_To_string, + Convert_Slice_string_To_int, + Convert_Slice_string_To_bool, + Convert_Slice_string_To_int64, +} + +func Convert_Slice_string_To_string(input *[]string, out *string, s conversion.Scope) error { + if len(*input) == 0 { + *out = "" + } + *out = (*input)[0] + return nil +} + +func Convert_Slice_string_To_int(input *[]string, out *int, s conversion.Scope) error { + if len(*input) == 0 { + *out = 0 + } + str := (*input)[0] + i, err := strconv.Atoi(str) + if err != nil { + return err + } + *out = i + return nil +} + +// Conver_Slice_string_To_bool will convert a string parameter to boolean. +// Only the absence of a value, a value of "false", or a value of "0" resolve to false. +// Any other value (including empty string) resolves to true. +func Convert_Slice_string_To_bool(input *[]string, out *bool, s conversion.Scope) error { + if len(*input) == 0 { + *out = false + return nil + } + switch strings.ToLower((*input)[0]) { + case "false", "0": + *out = false + default: + *out = true + } + return nil +} + +func Convert_Slice_string_To_int64(input *[]string, out *int64, s conversion.Scope) error { + if len(*input) == 0 { + *out = 0 + } + str := (*input)[0] + i, err := strconv.ParseInt(str, 10, 64) + if err != nil { + return err + } + *out = i + return nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/doc.go new file mode 100644 index 0000000000..a9d084d9fb --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/doc.go @@ -0,0 +1,45 @@ +/* +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 runtime includes helper functions for working with API objects +// that follow the kubernetes API object conventions, which are: +// +// 0. Your API objects have a common metadata struct member, TypeMeta. +// 1. Your code refers to an internal set of API objects. +// 2. In a separate package, you have an external set of API objects. +// 3. The external set is considered to be versioned, and no breaking +// changes are ever made to it (fields may be added but not changed +// or removed). +// 4. As your api evolves, you'll make an additional versioned package +// with every major change. +// 5. Versioned packages have conversion functions which convert to +// and from the internal version. +// 6. You'll continue to support older versions according to your +// deprecation policy, and you can easily provide a program/library +// to update old versions into new versions because of 5. +// 7. All of your serializations and deserializations are handled in a +// centralized place. +// +// Package runtime provides a conversion helper to make 5 easy, and the +// Encode/Decode/DecodeInto trio to accomplish 7. You can also register +// additional "codecs" which use a version of your choice. It's +// recommended that you register your types with runtime in your +// package's init function. +// +// As a bonus, a few common types useful from all api objects and versions +// are provided in types.go. + +package runtime diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/embedded.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/embedded.go new file mode 100644 index 0000000000..38199a438e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/embedded.go @@ -0,0 +1,136 @@ +/* +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 runtime + +import ( + "errors" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" +) + +type encodable struct { + E Encoder `json:"-"` + obj Object + versions []unversioned.GroupVersion +} + +func (e encodable) GetObjectKind() unversioned.ObjectKind { return e.obj.GetObjectKind() } + +// NewEncodable creates an object that will be encoded with the provided codec on demand. +// Provided as a convenience for test cases dealing with internal objects. +func NewEncodable(e Encoder, obj Object, versions ...unversioned.GroupVersion) Object { + if _, ok := obj.(*Unknown); ok { + return obj + } + return encodable{e, obj, versions} +} + +func (re encodable) UnmarshalJSON(in []byte) error { + return errors.New("runtime.encodable cannot be unmarshalled from JSON") +} + +// Marshal may get called on pointers or values, so implement MarshalJSON on value. +// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go +func (re encodable) MarshalJSON() ([]byte, error) { + return Encode(re.E, re.obj) +} + +// NewEncodableList creates an object that will be encoded with the provided codec on demand. +// Provided as a convenience for test cases dealing with internal objects. +func NewEncodableList(e Encoder, objects []Object, versions ...unversioned.GroupVersion) []Object { + out := make([]Object, len(objects)) + for i := range objects { + if _, ok := objects[i].(*Unknown); ok { + out[i] = objects[i] + continue + } + out[i] = NewEncodable(e, objects[i], versions...) + } + return out +} + +func (re *Unknown) UnmarshalJSON(in []byte) error { + if re == nil { + return errors.New("runtime.Unknown: UnmarshalJSON on nil pointer") + } + re.TypeMeta = TypeMeta{} + re.Raw = append(re.Raw[0:0], in...) + re.ContentEncoding = "" + re.ContentType = ContentTypeJSON + return nil +} + +// Marshal may get called on pointers or values, so implement MarshalJSON on value. +// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go +func (re Unknown) MarshalJSON() ([]byte, error) { + // If ContentType is unset, we assume this is JSON. + if re.ContentType != "" && re.ContentType != ContentTypeJSON { + return nil, errors.New("runtime.Unknown: MarshalJSON on non-json data") + } + if re.Raw == nil { + return []byte("null"), nil + } + return re.Raw, nil +} + +func Convert_runtime_Object_To_runtime_RawExtension(in *Object, out *RawExtension, s conversion.Scope) error { + if in == nil { + out.Raw = []byte("null") + return nil + } + obj := *in + if unk, ok := obj.(*Unknown); ok { + if unk.Raw != nil { + out.Raw = unk.Raw + return nil + } + obj = out.Object + } + if obj == nil { + out.Raw = nil + return nil + } + out.Object = obj + return nil +} + +func Convert_runtime_RawExtension_To_runtime_Object(in *RawExtension, out *Object, s conversion.Scope) error { + if in.Object != nil { + *out = in.Object + return nil + } + data := in.Raw + if len(data) == 0 || (len(data) == 4 && string(data) == "null") { + *out = nil + return nil + } + *out = &Unknown{ + Raw: data, + // TODO: Set ContentEncoding and ContentType appropriately. + // Currently we set ContentTypeJSON to make tests passing. + ContentType: ContentTypeJSON, + } + return nil +} + +func DefaultEmbeddedConversions() []interface{} { + return []interface{}{ + Convert_runtime_Object_To_runtime_RawExtension, + Convert_runtime_RawExtension_To_runtime_Object, + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/error.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/error.go new file mode 100644 index 0000000000..3703157684 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/error.go @@ -0,0 +1,102 @@ +/* +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 runtime + +import ( + "fmt" + "reflect" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +type notRegisteredErr struct { + gvk unversioned.GroupVersionKind + t reflect.Type +} + +// NewNotRegisteredErr is exposed for testing. +func NewNotRegisteredErr(gvk unversioned.GroupVersionKind, t reflect.Type) error { + return ¬RegisteredErr{gvk: gvk, t: t} +} + +func (k *notRegisteredErr) Error() string { + if k.t != nil { + return fmt.Sprintf("no kind is registered for the type %v", k.t) + } + if len(k.gvk.Kind) == 0 { + return fmt.Sprintf("no version %q has been registered", k.gvk.GroupVersion()) + } + if k.gvk.Version == APIVersionInternal { + return fmt.Sprintf("no kind %q is registered for the internal version of group %q", k.gvk.Kind, k.gvk.Group) + } + + return fmt.Sprintf("no kind %q is registered for version %q", k.gvk.Kind, k.gvk.GroupVersion()) +} + +// IsNotRegisteredError returns true if the error indicates the provided +// object or input data is not registered. +func IsNotRegisteredError(err error) bool { + if err == nil { + return false + } + _, ok := err.(*notRegisteredErr) + return ok +} + +type missingKindErr struct { + data string +} + +func NewMissingKindErr(data string) error { + return &missingKindErr{data} +} + +func (k *missingKindErr) Error() string { + return fmt.Sprintf("Object 'Kind' is missing in '%s'", k.data) +} + +// IsMissingKind returns true if the error indicates that the provided object +// is missing a 'Kind' field. +func IsMissingKind(err error) bool { + if err == nil { + return false + } + _, ok := err.(*missingKindErr) + return ok +} + +type missingVersionErr struct { + data string +} + +// IsMissingVersion returns true if the error indicates that the provided object +// is missing a 'Version' field. +func NewMissingVersionErr(data string) error { + return &missingVersionErr{data} +} + +func (k *missingVersionErr) Error() string { + return fmt.Sprintf("Object 'apiVersion' is missing in '%s'", k.data) +} + +func IsMissingVersion(err error) bool { + if err == nil { + return false + } + _, ok := err.(*missingVersionErr) + return ok +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/extension.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/extension.go new file mode 100644 index 0000000000..4d23ee9ee3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/extension.go @@ -0,0 +1,48 @@ +/* +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 runtime + +import ( + "encoding/json" + "errors" +) + +func (re *RawExtension) UnmarshalJSON(in []byte) error { + if re == nil { + return errors.New("runtime.RawExtension: UnmarshalJSON on nil pointer") + } + re.Raw = append(re.Raw[0:0], in...) + return nil +} + +// Marshal may get called on pointers or values, so implement MarshalJSON on value. +// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go +func (re RawExtension) MarshalJSON() ([]byte, error) { + if re.Raw == nil { + // TODO: this is to support legacy behavior of JSONPrinter and YAMLPrinter, which + // expect to call json.Marshal on arbitrary versioned objects (even those not in + // the scheme). pkg/kubectl/resource#AsVersionedObjects and its interaction with + // kubectl get on objects not in the scheme needs to be updated to ensure that the + // objects that are not part of the scheme are correctly put into the right form. + if re.Object != nil { + return json.Marshal(re.Object) + } + return []byte("null"), nil + } + // TODO: Check whether ContentType is actually JSON before returning it. + return re.Raw, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/generated.pb.go new file mode 100644 index 0000000000..2f5376c6ae --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/generated.pb.go @@ -0,0 +1,766 @@ +/* +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/runtime/generated.proto +// DO NOT EDIT! + +/* + Package runtime is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/runtime/generated.proto + + It has these top-level messages: + RawExtension + TypeMeta + Unknown +*/ +package runtime + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +import strings "strings" +import reflect "reflect" + +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 *RawExtension) Reset() { *m = RawExtension{} } +func (*RawExtension) ProtoMessage() {} +func (*RawExtension) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *TypeMeta) Reset() { *m = TypeMeta{} } +func (*TypeMeta) ProtoMessage() {} +func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *Unknown) Reset() { *m = Unknown{} } +func (*Unknown) ProtoMessage() {} +func (*Unknown) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func init() { + proto.RegisterType((*RawExtension)(nil), "k8s.io.client-go.1.4.pkg.runtime.RawExtension") + proto.RegisterType((*TypeMeta)(nil), "k8s.io.client-go.1.4.pkg.runtime.TypeMeta") + proto.RegisterType((*Unknown)(nil), "k8s.io.client-go.1.4.pkg.runtime.Unknown") +} +func (m *RawExtension) 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 *RawExtension) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Raw != nil { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Raw))) + i += copy(data[i:], m.Raw) + } + return i, nil +} + +func (m *TypeMeta) 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 *TypeMeta) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.APIVersion))) + i += copy(data[i:], m.APIVersion) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Kind))) + i += copy(data[i:], m.Kind) + return i, nil +} + +func (m *Unknown) 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 *Unknown) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.TypeMeta.Size())) + n1, err := m.TypeMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + if m.Raw != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Raw))) + i += copy(data[i:], m.Raw) + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContentEncoding))) + i += copy(data[i:], m.ContentEncoding) + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContentType))) + i += copy(data[i:], m.ContentType) + 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 *RawExtension) Size() (n int) { + var l int + _ = l + if m.Raw != nil { + l = len(m.Raw) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *TypeMeta) Size() (n int) { + var l int + _ = l + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Unknown) Size() (n int) { + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Raw != nil { + l = len(m.Raw) + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.ContentEncoding) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ContentType) + 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 *RawExtension) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RawExtension{`, + `Raw:` + valueToStringGenerated(this.Raw) + `,`, + `}`, + }, "") + return s +} +func (this *TypeMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TypeMeta{`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `}`, + }, "") + return s +} +func (this *Unknown) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Unknown{`, + `TypeMeta:` + strings.Replace(strings.Replace(this.TypeMeta.String(), "TypeMeta", "TypeMeta", 1), `&`, ``, 1) + `,`, + `Raw:` + valueToStringGenerated(this.Raw) + `,`, + `ContentEncoding:` + fmt.Sprintf("%v", this.ContentEncoding) + `,`, + `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`, + `}`, + }, "") + 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 *RawExtension) 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: RawExtension: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RawExtension: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Raw = append(m.Raw[:0], data[iNdEx:postIndex]...) + if m.Raw == nil { + m.Raw = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TypeMeta) 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: TypeMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", 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.APIVersion = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = 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 *Unknown) 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: Unknown: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Unknown: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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.TypeMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Raw = append(m.Raw[:0], data[iNdEx:postIndex]...) + if m.Raw == nil { + m.Raw = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContentEncoding", 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.ContentEncoding = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContentType", 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.ContentType = 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{ + // 380 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x90, 0xcf, 0x4e, 0x2a, 0x31, + 0x14, 0xc6, 0x19, 0x20, 0x81, 0x5b, 0x48, 0xb8, 0xe9, 0x5d, 0xdc, 0x91, 0x44, 0x20, 0x6c, 0x94, + 0x05, 0x6d, 0x24, 0x31, 0x71, 0xcb, 0x10, 0x16, 0xc6, 0x98, 0x98, 0x89, 0xb8, 0x70, 0xe5, 0x30, + 0xd4, 0xb1, 0x19, 0x69, 0x27, 0x9d, 0x4e, 0xd0, 0x9d, 0x8f, 0xe0, 0x63, 0xb1, 0x64, 0xe9, 0x8a, + 0x28, 0x3e, 0x83, 0x7b, 0x4b, 0x29, 0x7f, 0x04, 0xe2, 0xe2, 0x24, 0x33, 0xe7, 0xfc, 0xbe, 0xef, + 0x7c, 0xa7, 0xa0, 0x19, 0x9e, 0xc5, 0x88, 0x72, 0x1c, 0x26, 0x7d, 0x22, 0x18, 0x91, 0x24, 0xc6, + 0x51, 0x18, 0x60, 0x91, 0x30, 0x49, 0x87, 0x04, 0x07, 0x84, 0x11, 0xe1, 0x49, 0x32, 0x40, 0x91, + 0xe0, 0x92, 0xc3, 0xc3, 0x05, 0x8e, 0xd6, 0x38, 0x52, 0x38, 0x32, 0x78, 0xb9, 0x19, 0x50, 0xf9, + 0x90, 0xf4, 0x91, 0xcf, 0x87, 0x38, 0xe0, 0x01, 0xc7, 0x5a, 0xd5, 0x4f, 0xee, 0xf5, 0x9f, 0xfe, + 0xd1, 0x5f, 0x0b, 0xb7, 0x72, 0x6b, 0xff, 0x72, 0x2f, 0xa2, 0x58, 0x90, 0x98, 0x27, 0xc2, 0xdf, + 0x49, 0x50, 0x3e, 0xd9, 0xaf, 0x49, 0x24, 0x7d, 0xc4, 0x94, 0xc9, 0x58, 0x8a, 0x6d, 0x49, 0xbd, + 0x01, 0x8a, 0xae, 0x37, 0xea, 0x3e, 0x49, 0xc2, 0x62, 0xca, 0x19, 0x3c, 0x00, 0x19, 0xe1, 0x8d, + 0x6c, 0xab, 0x66, 0x1d, 0x17, 0x9d, 0xdc, 0x6c, 0x5a, 0xcd, 0xa8, 0xb1, 0x3b, 0xef, 0xd5, 0xef, + 0x40, 0xfe, 0xfa, 0x39, 0x22, 0x97, 0x44, 0x7a, 0xb0, 0x05, 0x80, 0x4a, 0x72, 0x43, 0xc4, 0x5c, + 0xa4, 0xe9, 0x3f, 0x0e, 0x1c, 0x4f, 0xab, 0x29, 0xa5, 0x00, 0xed, 0xab, 0x73, 0x33, 0x71, 0x37, + 0x28, 0x58, 0x03, 0xd9, 0x90, 0xb2, 0x81, 0x9d, 0xd6, 0x74, 0xd1, 0xd0, 0xd9, 0x0b, 0xd5, 0x73, + 0xf5, 0xa4, 0xfe, 0x65, 0x81, 0x5c, 0x8f, 0x85, 0x8c, 0x8f, 0x18, 0xec, 0x81, 0xbc, 0x34, 0xdb, + 0xb4, 0x7f, 0xa1, 0x75, 0x84, 0x7e, 0x7d, 0x60, 0xb4, 0x0c, 0xe7, 0xfc, 0x35, 0xd6, 0xab, 0xb8, + 0xee, 0xca, 0x6a, 0x79, 0x5f, 0x7a, 0xf7, 0x3e, 0xd8, 0x06, 0x25, 0x9f, 0x33, 0xf5, 0x10, 0xb2, + 0xcb, 0x7c, 0x3e, 0xa0, 0x2c, 0xb0, 0x33, 0x3a, 0xea, 0x7f, 0xe3, 0x57, 0xea, 0xfc, 0x1c, 0xbb, + 0xdb, 0x3c, 0x3c, 0x05, 0x05, 0xd3, 0x9a, 0xaf, 0xb6, 0xb3, 0x5a, 0xfe, 0xcf, 0xc8, 0x0b, 0x9d, + 0xf5, 0xc8, 0xdd, 0xe4, 0x9c, 0xc6, 0xf8, 0xa3, 0x92, 0x9a, 0xa8, 0x7a, 0x53, 0xf5, 0x32, 0xab, + 0x58, 0x63, 0x55, 0x13, 0x55, 0xef, 0xaa, 0x5e, 0x3f, 0x2b, 0xa9, 0xdb, 0x9c, 0x39, 0xf2, 0x3b, + 0x00, 0x00, 0xff, 0xff, 0x32, 0xc1, 0x73, 0x2d, 0x94, 0x02, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/generated.proto b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/generated.proto new file mode 100644 index 0000000000..0e602abe1b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/generated.proto @@ -0,0 +1,124 @@ +/* +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.runtime; + +import "k8s.io/kubernetes/pkg/api/resource/generated.proto"; +import "k8s.io/kubernetes/pkg/util/intstr/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "runtime"; + +// RawExtension is used to hold extensions in external versions. +// +// To use this, make a field which has RawExtension as its type in your external, versioned +// struct, and Object in your internal struct. You also need to register your +// various plugin types. +// +// // Internal package: +// type MyAPIObject struct { +// runtime.TypeMeta `json:",inline"` +// MyPlugin runtime.Object `json:"myPlugin"` +// } +// type PluginA struct { +// AOption string `json:"aOption"` +// } +// +// // External package: +// type MyAPIObject struct { +// runtime.TypeMeta `json:",inline"` +// MyPlugin runtime.RawExtension `json:"myPlugin"` +// } +// type PluginA struct { +// AOption string `json:"aOption"` +// } +// +// // On the wire, the JSON will look something like this: +// { +// "kind":"MyAPIObject", +// "apiVersion":"v1", +// "myPlugin": { +// "kind":"PluginA", +// "aOption":"foo", +// }, +// } +// +// So what happens? Decode first uses json or yaml to unmarshal the serialized data into +// your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. +// The next step is to copy (using pkg/conversion) into the internal struct. The runtime +// package's DefaultScheme has conversion functions installed which will unpack the +// JSON stored in RawExtension, turning it into the correct object type, and storing it +// in the Object. (TODO: In the case where the object is of an unknown type, a +// runtime.Unknown object will be created and stored.) +// +// +k8s:deepcopy-gen=true +// +protobuf=true +message RawExtension { + // Raw is the underlying serialization of this object. + // + // TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. + optional bytes raw = 1; +} + +// TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, +// like this: +// type MyAwesomeAPIObject struct { +// runtime.TypeMeta `json:",inline"` +// ... // other fields +// } +// func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *unversioned.GroupVersionKind) { unversioned.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind +// +// TypeMeta is provided here for convenience. You may use it directly from this package or define +// your own with the same fields. +// +// +k8s:deepcopy-gen=true +// +protobuf=true +message TypeMeta { + optional string apiVersion = 1; + + optional string kind = 2; +} + +// Unknown allows api objects with unknown types to be passed-through. This can be used +// to deal with the API objects from a plug-in. Unknown objects still have functioning +// TypeMeta features-- kind, version, etc. +// TODO: Make this object have easy access to field based accessors and settors for +// metadata and field mutatation. +// +// +k8s:deepcopy-gen=true +// +protobuf=true +message Unknown { + optional TypeMeta typeMeta = 1; + + // Raw will hold the complete serialized object which couldn't be matched + // with a registered type. Most likely, nothing should be done with this + // except for passing it through the system. + optional bytes raw = 2; + + // ContentEncoding is encoding used to encode 'Raw' data. + // Unspecified means no encoding. + optional string contentEncoding = 3; + + // ContentType is serialization method used to serialize 'Raw'. + // Unspecified means ContentTypeJSON. + optional string contentType = 4; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/helper.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/helper.go new file mode 100644 index 0000000000..c2cc163ae3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/helper.go @@ -0,0 +1,212 @@ +/* +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 runtime + +import ( + "fmt" + "io" + "reflect" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" + "k8s.io/client-go/1.4/pkg/util/errors" +) + +// unsafeObjectConvertor implements ObjectConvertor using the unsafe conversion path. +type unsafeObjectConvertor struct { + *Scheme +} + +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) { + return c.Scheme.UnsafeConvertToVersion(in, outVersion) +} + +// UnsafeObjectConvertor performs object conversion without copying the object structure, +// for use when the converted object will not be reused or mutated. Primarily for use within +// versioned codecs, which use the external object for serialization but do not return it. +func UnsafeObjectConvertor(scheme *Scheme) ObjectConvertor { + return unsafeObjectConvertor{scheme} +} + +// SetField puts the value of src, into fieldName, which must be a member of v. +// The value of src must be assignable to the field. +func SetField(src interface{}, v reflect.Value, fieldName string) error { + field := v.FieldByName(fieldName) + if !field.IsValid() { + return fmt.Errorf("couldn't find %v field in %#v", fieldName, v.Interface()) + } + srcValue := reflect.ValueOf(src) + if srcValue.Type().AssignableTo(field.Type()) { + field.Set(srcValue) + return nil + } + if srcValue.Type().ConvertibleTo(field.Type()) { + field.Set(srcValue.Convert(field.Type())) + return nil + } + return fmt.Errorf("couldn't assign/convert %v to %v", srcValue.Type(), field.Type()) +} + +// Field puts the value of fieldName, which must be a member of v, into dest, +// which must be a variable to which this field's value can be assigned. +func Field(v reflect.Value, fieldName string, dest interface{}) error { + field := v.FieldByName(fieldName) + if !field.IsValid() { + return fmt.Errorf("couldn't find %v field in %#v", fieldName, v.Interface()) + } + destValue, err := conversion.EnforcePtr(dest) + if err != nil { + return err + } + if field.Type().AssignableTo(destValue.Type()) { + destValue.Set(field) + return nil + } + if field.Type().ConvertibleTo(destValue.Type()) { + destValue.Set(field.Convert(destValue.Type())) + return nil + } + return fmt.Errorf("couldn't assign/convert %v to %v", field.Type(), destValue.Type()) +} + +// fieldPtr puts the address of fieldName, which must be a member of v, +// into dest, which must be an address of a variable to which this field's +// address can be assigned. +func FieldPtr(v reflect.Value, fieldName string, dest interface{}) error { + field := v.FieldByName(fieldName) + if !field.IsValid() { + return fmt.Errorf("couldn't find %v field in %#v", fieldName, v.Interface()) + } + v, err := conversion.EnforcePtr(dest) + if err != nil { + return err + } + field = field.Addr() + if field.Type().AssignableTo(v.Type()) { + v.Set(field) + return nil + } + if field.Type().ConvertibleTo(v.Type()) { + v.Set(field.Convert(v.Type())) + return nil + } + return fmt.Errorf("couldn't assign/convert %v to %v", field.Type(), v.Type()) +} + +// EncodeList ensures that each object in an array is converted to a Unknown{} in serialized form. +// TODO: accept a content type. +func EncodeList(e Encoder, objects []Object) error { + var errs []error + for i := range objects { + data, err := Encode(e, objects[i]) + if err != nil { + errs = append(errs, err) + continue + } + // TODO: Set ContentEncoding and ContentType. + objects[i] = &Unknown{Raw: data} + } + return errors.NewAggregate(errs) +} + +func decodeListItem(obj *Unknown, decoders []Decoder) (Object, error) { + for _, decoder := range decoders { + // TODO: Decode based on ContentType. + obj, err := Decode(decoder, obj.Raw) + if err != nil { + if IsNotRegisteredError(err) { + continue + } + return nil, err + } + return obj, nil + } + // could not decode, so leave the object as Unknown, but give the decoders the + // chance to set Unknown.TypeMeta if it is available. + for _, decoder := range decoders { + if err := DecodeInto(decoder, obj.Raw, obj); err == nil { + return obj, nil + } + } + return obj, nil +} + +// DecodeList alters the list in place, attempting to decode any objects found in +// the list that have the Unknown type. Any errors that occur are returned +// after the entire list is processed. Decoders are tried in order. +func DecodeList(objects []Object, decoders ...Decoder) []error { + errs := []error(nil) + for i, obj := range objects { + switch t := obj.(type) { + case *Unknown: + decoded, err := decodeListItem(t, decoders) + if err != nil { + errs = append(errs, err) + break + } + objects[i] = decoded + } + } + return errs +} + +// MultiObjectTyper returns the types of objects across multiple schemes in order. +type MultiObjectTyper []ObjectTyper + +var _ ObjectTyper = MultiObjectTyper{} + +func (m MultiObjectTyper) ObjectKinds(obj Object) (gvks []unversioned.GroupVersionKind, unversionedType bool, err error) { + for _, t := range m { + gvks, unversionedType, err = t.ObjectKinds(obj) + if err == nil { + return + } + } + return +} + +func (m MultiObjectTyper) Recognizes(gvk unversioned.GroupVersionKind) bool { + for _, t := range m { + if t.Recognizes(gvk) { + return true + } + } + return false +} + +// SetZeroValue would set the object of objPtr to zero value of its type. +func SetZeroValue(objPtr Object) error { + v, err := conversion.EnforcePtr(objPtr) + if err != nil { + return err + } + v.Set(reflect.Zero(v.Type())) + return nil +} + +// DefaultFramer is valid for any stream that can read objects serially without +// any separation in the stream. +var DefaultFramer = defaultFramer{} + +type defaultFramer struct{} + +func (defaultFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { return r } +func (defaultFramer) NewFrameWriter(w io.Writer) io.Writer { return w } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/interfaces.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/interfaces.go new file mode 100644 index 0000000000..2a09d2f7bf --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/interfaces.go @@ -0,0 +1,217 @@ +/* +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 runtime + +import ( + "io" + "net/url" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +const ( + // APIVersionInternal may be used if you are registering a type that should not + // be considered stable or serialized - it is a convention only and has no + // special behavior in this package. + APIVersionInternal = "__internal" +) + +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 +} + +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 + // version from the serialized data, or an error. If into is non-nil, it will be used as the target type + // and implementations may choose to use it rather than reallocating an object. However, the object is not + // guaranteed to be populated. The returned object is not guaranteed to match into. If defaults are + // provided, they are applied to the data by default. If no defaults or partial defaults are provided, the + // type of the into may be used to guide conversion decisions. + Decode(data []byte, defaults *unversioned.GroupVersionKind, into Object) (Object, *unversioned.GroupVersionKind, error) +} + +// Serializer is the core interface for transforming objects into a serialized format and back. +// Implementations may choose to perform conversion of the object, but no assumptions should be made. +type Serializer interface { + Encoder + Decoder +} + +// Codec is a Serializer that deals with the details of versioning objects. It offers the same +// interface as Serializer, so this is a marker to consumers that care about the version of the objects +// they receive. +type Codec Serializer + +// ParameterCodec defines methods for serializing and deserializing API objects to url.Values and +// performing any necessary conversion. Unlike the normal Codec, query parameters are not self describing +// and the desired version must be specified. +type ParameterCodec interface { + // DecodeParameters takes the given url.Values in the specified group version and decodes them + // into the provided object, or returns an error. + DecodeParameters(parameters url.Values, from unversioned.GroupVersion, into Object) error + // EncodeParameters encodes the provided object as query parameters or returns an error. + EncodeParameters(obj Object, to unversioned.GroupVersion) (url.Values, error) +} + +// Framer is a factory for creating readers and writers that obey a particular framing pattern. +type Framer interface { + NewFrameReader(r io.ReadCloser) io.ReadCloser + NewFrameWriter(w io.Writer) io.Writer +} + +// SerializerInfo contains information about a specific serialization format +type SerializerInfo struct { + Serializer + // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. + EncodesAsText bool + // MediaType is the value that represents this serializer over the wire. + MediaType string +} + +// StreamSerializerInfo contains information about a specific stream serialization format +type StreamSerializerInfo struct { + SerializerInfo + // Framer is the factory for retrieving streams that separate objects on the wire + Framer + // Embedded is the type of the nested serialization that should be used. + Embedded SerializerInfo +} + +// NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers +// for multiple supported media types. This would commonly be accepted by a server component +// that performs HTTP content negotiation to accept multiple formats. +type NegotiatedSerializer interface { + // SupportedMediaTypes is the media types supported for reading and writing single objects. + SupportedMediaTypes() []string + // SerializerForMediaType returns a serializer for the provided media type. params is the set of + // parameters applied to the media type that may modify the resulting output. ok will be false + // if no serializer matched the media type. + SerializerForMediaType(mediaType string, params map[string]string) (s SerializerInfo, ok bool) + + // SupportedStreamingMediaTypes returns the media types of the supported streaming serializers. + // Streaming serializers control how multiple objects are written to a stream output. + SupportedStreamingMediaTypes() []string + // StreamingSerializerForMediaType returns a serializer for the provided media type that supports + // reading and writing multiple objects to a stream. It returns a framer and serializer, or an + // error if no such serializer can be created. Params is the set of parameters applied to the + // media type that may modify the resulting output. ok will be false if no serializer matched + // the media type. + StreamingSerializerForMediaType(mediaType string, params map[string]string) (s StreamSerializerInfo, ok bool) + + // 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 + // 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 +} + +// StorageSerializer is an interface used for obtaining encoders, decoders, and serializers +// that can read and write data at rest. This would commonly be used by client tools that must +// read files, or server side storage interfaces that persist restful objects. +type StorageSerializer interface { + // SerializerForMediaType returns a serializer for the provided media type. Options is a set of + // parameters applied to the media type that may modify the resulting output. + SerializerForMediaType(mediaType string, options map[string]string) (SerializerInfo, bool) + + // UniversalDeserializer returns a Serializer that can read objects in multiple supported formats + // by introspecting the data at rest. + UniversalDeserializer() Decoder + + // 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 + // 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 +} + +/////////////////////////////////////////////////////////////////////////////// +// Non-codec interfaces + +type ObjectVersioner interface { + ConvertToVersion(in Object, outVersion unversioned.GroupVersion) (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 + // 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) + ConvertFieldLabel(version, kind, label, value string) (string, string, error) +} + +// ObjectTyper contains methods for extracting the APIVersion and Kind +// of objects. +type ObjectTyper interface { + // ObjectKinds returns the all possible group,version,kind of the provided object, true if + // the object is unversioned, or an error if the object is not recognized + // (IsNotRegisteredError will return true). + ObjectKinds(Object) ([]unversioned.GroupVersionKind, bool, error) + // Recognizes returns true if the scheme is able to handle the provided version and kind, + // or more precisely that the provided version is a possible conversion or decoding + // target. + Recognizes(gvk unversioned.GroupVersionKind) bool +} + +// ObjectCreater contains methods for instantiating an object by kind and version. +type ObjectCreater interface { + New(kind unversioned.GroupVersionKind) (out Object, err error) +} + +// ObjectCopier duplicates an object. +type ObjectCopier interface { + // Copy returns an exact copy of the provided Object, or an error if the + // copy could not be completed. + Copy(Object) (Object, error) +} + +// ResourceVersioner provides methods for setting and retrieving +// the resource version from an API object. +type ResourceVersioner interface { + SetResourceVersion(obj Object, version string) error + ResourceVersion(obj Object) (string, error) +} + +// SelfLinker provides methods for setting and retrieving the SelfLink field of an API object. +type SelfLinker interface { + SetSelfLink(obj Object, selfLink string) error + SelfLink(obj Object) (string, error) + + // Knowing Name is sometimes necessary to use a SelfLinker. + Name(obj Object) (string, error) + // Knowing Namespace is sometimes necessary to use a SelfLinker + Namespace(obj Object) (string, error) +} + +// All API types registered with Scheme must support the Object interface. Since objects in a scheme are +// expected to be serialized to the wire, the interface an Object must provide to the Scheme allows +// serializers to set the kind, version, and group the object is represented as. An Object may choose +// to return a no-op ObjectKindAccessor in cases where it is not expected to be serialized. +type Object interface { + GetObjectKind() unversioned.ObjectKind +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/register.go new file mode 100644 index 0000000000..80f5eefe41 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/register.go @@ -0,0 +1,66 @@ +/* +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 runtime + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta +func (obj *TypeMeta) SetGroupVersionKind(gvk unversioned.GroupVersionKind) { + obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() +} + +// GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta +func (obj *TypeMeta) GroupVersionKind() unversioned.GroupVersionKind { + return unversioned.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) +} + +func (obj *Unknown) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } + +func (obj *Unstructured) GetObjectKind() unversioned.ObjectKind { return obj } +func (obj *UnstructuredList) GetObjectKind() unversioned.ObjectKind { return obj } + +// GetObjectKind implements Object for VersionedObjects, returning an empty ObjectKind +// interface if no objects are provided, or the ObjectKind interface of the object in the +// highest array position. +func (obj *VersionedObjects) GetObjectKind() unversioned.ObjectKind { + last := obj.Last() + if last == nil { + return unversioned.EmptyObjectKind + } + return last.GetObjectKind() +} + +// First returns the leftmost object in the VersionedObjects array, which is usually the +// object as serialized on the wire. +func (obj *VersionedObjects) First() Object { + if len(obj.Objects) == 0 { + return nil + } + return obj.Objects[0] +} + +// Last is the rightmost object in the VersionedObjects array, which is the object after +// all transformations have been applied. This is the same object that would be returned +// by Decode in a normal invocation (without VersionedObjects in the into argument). +func (obj *VersionedObjects) Last() Object { + if len(obj.Objects) == 0 { + return nil + } + return obj.Objects[len(obj.Objects)-1] +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/scheme.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/scheme.go new file mode 100644 index 0000000000..31f1f30113 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/scheme.go @@ -0,0 +1,628 @@ +/* +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 runtime + +import ( + "fmt" + "net/url" + "reflect" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" +) + +// Scheme defines methods for serializing and deserializing API objects, a type +// registry for converting group, version, and kind information to and from Go +// schemas, and mappings between Go schemas of different versions. A scheme is the +// foundation for a versioned API and versioned configuration over time. +// +// In a Scheme, a Type is a particular Go struct, a Version is a point-in-time +// identifier for a particular representation of that Type (typically backwards +// compatible), a Kind is the unique name for that Type within the Version, and a +// Group identifies a set of Versions, Kinds, and Types that evolve over time. An +// Unversioned Type is one that is not yet formally bound to a type and is promised +// to be backwards compatible (effectively a "v1" of a Type that does not expect +// to break in the future). +// +// Schemes are not expected to change at runtime and are only threadsafe after +// registration is complete. +type Scheme struct { + // versionMap allows one to figure out the go type of an object with + // the given version and name. + gvkToType map[unversioned.GroupVersionKind]reflect.Type + + // typeToGroupVersion allows one to find metadata for a given go object. + // The reflect.Type we index by should *not* be a pointer. + typeToGVK map[reflect.Type][]unversioned.GroupVersionKind + + // unversionedTypes are transformed without conversion in ConvertToVersion. + unversionedTypes map[reflect.Type]unversioned.GroupVersionKind + + // unversionedKinds are the names of kinds that can be created in the context of any group + // or version + // TODO: resolve the status of unversioned types. + unversionedKinds map[string]reflect.Type + + // Map from version and resource to the corresponding func to convert + // resource field labels in that version to internal version. + fieldLabelConversionFuncs map[string]map[string]FieldLabelConversionFunc + + // converter stores all registered conversion functions. It also has + // default coverting behavior. + converter *conversion.Converter + + // cloner stores all registered copy functions. It also has default + // deep copy behavior. + cloner *conversion.Cloner +} + +// Function to convert a field selector to internal representation. +type FieldLabelConversionFunc func(label, value string) (internalLabel, internalValue string, err error) + +// NewScheme creates a new Scheme. This scheme is pluggable by default. +func NewScheme() *Scheme { + s := &Scheme{ + gvkToType: map[unversioned.GroupVersionKind]reflect.Type{}, + typeToGVK: map[reflect.Type][]unversioned.GroupVersionKind{}, + unversionedTypes: map[reflect.Type]unversioned.GroupVersionKind{}, + unversionedKinds: map[string]reflect.Type{}, + cloner: conversion.NewCloner(), + fieldLabelConversionFuncs: map[string]map[string]FieldLabelConversionFunc{}, + } + s.converter = conversion.NewConverter(s.nameFunc) + + s.AddConversionFuncs(DefaultEmbeddedConversions()...) + + // Enable map[string][]string conversions by default + if err := s.AddConversionFuncs(DefaultStringConversions...); err != nil { + panic(err) + } + if err := s.RegisterInputDefaults(&map[string][]string{}, JSONKeyMapper, conversion.AllowDifferentFieldTypeNames|conversion.IgnoreMissingFields); err != nil { + panic(err) + } + if err := s.RegisterInputDefaults(&url.Values{}, JSONKeyMapper, conversion.AllowDifferentFieldTypeNames|conversion.IgnoreMissingFields); err != nil { + panic(err) + } + return s +} + +// nameFunc returns the name of the type that we wish to use to determine when two types attempt +// a conversion. Defaults to the go name of the type if the type is not registered. +func (s *Scheme) nameFunc(t reflect.Type) string { + // find the preferred names for this type + gvks, ok := s.typeToGVK[t] + if !ok { + return t.Name() + } + + for _, gvk := range gvks { + internalGV := gvk.GroupVersion() + internalGV.Version = "__internal" // this is hacky and maybe should be passed in + internalGVK := internalGV.WithKind(gvk.Kind) + + if internalType, exists := s.gvkToType[internalGVK]; exists { + return s.typeToGVK[internalType][0].Kind + } + } + + return gvks[0].Kind +} + +// fromScope gets the input version, desired output version, and desired Scheme +// from a conversion.Scope. +func (s *Scheme) fromScope(scope conversion.Scope) *Scheme { + return s +} + +// Converter allows access to the converter for the scheme +func (s *Scheme) Converter() *conversion.Converter { + return s.converter +} + +// AddUnversionedTypes registers the provided types as "unversioned", which means that they follow special rules. +// Whenever an object of this type is serialized, it is serialized with the provided group version and is not +// converted. Thus unversioned objects are expected to remain backwards compatible forever, as if they were in an +// API group and version that would never be updated. +// +// TODO: there is discussion about removing unversioned and replacing it with objects that are manifest into +// every version with particular schemas. Resolve this method at that point. +func (s *Scheme) AddUnversionedTypes(version unversioned.GroupVersion, types ...Object) { + s.AddKnownTypes(version, types...) + for _, obj := range types { + t := reflect.TypeOf(obj).Elem() + gvk := version.WithKind(t.Name()) + s.unversionedTypes[t] = gvk + if _, ok := s.unversionedKinds[gvk.Kind]; ok { + panic(fmt.Sprintf("%v has already been registered as unversioned kind %q - kind name must be unique", reflect.TypeOf(t), gvk.Kind)) + } + s.unversionedKinds[gvk.Kind] = t + } +} + +// AddKnownTypes registers all types passed in 'types' as being members of version 'version'. +// All objects passed to types should be pointers to structs. The name that go reports for +// the struct becomes the "kind" field when encoding. Version may not be empty - use the +// APIVersionInternal constant if you have a type that does not have a formal version. +func (s *Scheme) AddKnownTypes(gv unversioned.GroupVersion, types ...Object) { + if len(gv.Version) == 0 { + panic(fmt.Sprintf("version is required on all types: %s %v", gv, types[0])) + } + for _, obj := range types { + t := reflect.TypeOf(obj) + if t.Kind() != reflect.Ptr { + panic("All types must be pointers to structs.") + } + t = t.Elem() + if t.Kind() != reflect.Struct { + panic("All types must be pointers to structs.") + } + + gvk := gv.WithKind(t.Name()) + s.gvkToType[gvk] = t + s.typeToGVK[t] = append(s.typeToGVK[t], gvk) + } +} + +// AddKnownTypeWithName is like AddKnownTypes, but it lets you specify what this type should +// be encoded as. Useful for testing when you don't want to make multiple packages to define +// your structs. Version may not be empty - use the APIVersionInternal constant if you have a +// type that does not have a formal version. +func (s *Scheme) AddKnownTypeWithName(gvk unversioned.GroupVersionKind, obj Object) { + t := reflect.TypeOf(obj) + if len(gvk.Version) == 0 { + panic(fmt.Sprintf("version is required on all types: %s %v", gvk, t)) + } + if t.Kind() != reflect.Ptr { + panic("All types must be pointers to structs.") + } + t = t.Elem() + if t.Kind() != reflect.Struct { + panic("All types must be pointers to structs.") + } + + s.gvkToType[gvk] = t + s.typeToGVK[t] = append(s.typeToGVK[t], gvk) +} + +// KnownTypes returns the types known for the given version. +func (s *Scheme) KnownTypes(gv unversioned.GroupVersion) map[string]reflect.Type { + types := make(map[string]reflect.Type) + for gvk, t := range s.gvkToType { + if gv != gvk.GroupVersion() { + continue + } + + types[gvk.Kind] = t + } + return types +} + +// AllKnownTypes returns the all known types. +func (s *Scheme) AllKnownTypes() map[unversioned.GroupVersionKind]reflect.Type { + return s.gvkToType +} + +// ObjectKind returns the group,version,kind of the go object and true if this object +// is considered unversioned, or an error if it's not a pointer or is unregistered. +func (s *Scheme) ObjectKind(obj Object) (unversioned.GroupVersionKind, bool, error) { + gvks, unversionedType, err := s.ObjectKinds(obj) + if err != nil { + return unversioned.GroupVersionKind{}, false, err + } + return gvks[0], unversionedType, nil +} + +// ObjectKinds returns all possible group,version,kind of the go object, true if the +// object is considered unversioned, or an error if it's not a pointer or is unregistered. +func (s *Scheme) ObjectKinds(obj Object) ([]unversioned.GroupVersionKind, bool, error) { + v, err := conversion.EnforcePtr(obj) + if err != nil { + return nil, false, err + } + t := v.Type() + + gvks, ok := s.typeToGVK[t] + if !ok { + return nil, false, ¬RegisteredErr{t: t} + } + _, unversionedType := s.unversionedTypes[t] + + return gvks, unversionedType, nil +} + +// Recognizes returns true if the scheme is able to handle the provided group,version,kind +// of an object. +func (s *Scheme) Recognizes(gvk unversioned.GroupVersionKind) bool { + _, exists := s.gvkToType[gvk] + return exists +} + +func (s *Scheme) IsUnversioned(obj Object) (bool, bool) { + v, err := conversion.EnforcePtr(obj) + if err != nil { + return false, false + } + t := v.Type() + + if _, ok := s.typeToGVK[t]; !ok { + return false, false + } + _, ok := s.unversionedTypes[t] + return ok, true +} + +// New returns a new API object of the given version and name, or an error if it hasn't +// been registered. The version and kind fields must be specified. +func (s *Scheme) New(kind unversioned.GroupVersionKind) (Object, error) { + if t, exists := s.gvkToType[kind]; exists { + return reflect.New(t).Interface().(Object), nil + } + + if t, exists := s.unversionedKinds[kind.Kind]; exists { + return reflect.New(t).Interface().(Object), nil + } + return nil, ¬RegisteredErr{gvk: kind} +} + +// AddGenericConversionFunc adds a function that accepts the ConversionFunc call pattern +// (for two conversion types) to the converter. These functions are checked first during +// a normal conversion, but are otherwise not called. Use AddConversionFuncs when registering +// typed conversions. +func (s *Scheme) AddGenericConversionFunc(fn conversion.GenericConversionFunc) { + s.converter.AddGenericConversionFunc(fn) +} + +// Log sets a logger on the scheme. For test purposes only +func (s *Scheme) Log(l conversion.DebugLogger) { + s.converter.Debug = l +} + +// AddIgnoredConversionType identifies a pair of types that should be skipped by +// conversion (because the data inside them is explicitly dropped during +// conversion). +func (s *Scheme) AddIgnoredConversionType(from, to interface{}) error { + return s.converter.RegisterIgnoredConversion(from, to) +} + +// AddConversionFuncs adds functions to the list of conversion functions. The given +// functions should know how to convert between two of your API objects, or their +// sub-objects. We deduce how to call these functions from the types of their two +// parameters; see the comment for Converter.Register. +// +// Note that, if you need to copy sub-objects that didn't change, you can use the +// conversion.Scope object that will be passed to your conversion function. +// Additionally, all conversions started by Scheme will set the SrcVersion and +// DestVersion fields on the Meta object. Example: +// +// s.AddConversionFuncs( +// func(in *InternalObject, out *ExternalObject, scope conversion.Scope) error { +// // You can depend on Meta() being non-nil, and this being set to +// // the source version, e.g., "" +// s.Meta().SrcVersion +// // You can depend on this being set to the destination version, +// // e.g., "v1". +// s.Meta().DestVersion +// // Call scope.Convert to copy sub-fields. +// s.Convert(&in.SubFieldThatMoved, &out.NewLocation.NewName, 0) +// return nil +// }, +// ) +// +// (For more detail about conversion functions, see Converter.Register's comment.) +// +// Also note that the default behavior, if you don't add a conversion function, is to +// sanely copy fields that have the same names and same type names. It's OK if the +// destination type has extra fields, but it must not remove any. So you only need to +// add conversion functions for things with changed/removed fields. +func (s *Scheme) AddConversionFuncs(conversionFuncs ...interface{}) error { + for _, f := range conversionFuncs { + if err := s.converter.RegisterConversionFunc(f); err != nil { + return err + } + } + return nil +} + +// Similar to AddConversionFuncs, but registers conversion functions that were +// automatically generated. +func (s *Scheme) AddGeneratedConversionFuncs(conversionFuncs ...interface{}) error { + for _, f := range conversionFuncs { + if err := s.converter.RegisterGeneratedConversionFunc(f); err != nil { + return err + } + } + return nil +} + +// AddDeepCopyFuncs adds a function to the list of deep-copy functions. +// For the expected format of deep-copy function, see the comment for +// Copier.RegisterDeepCopyFunction. +func (s *Scheme) AddDeepCopyFuncs(deepCopyFuncs ...interface{}) error { + for _, f := range deepCopyFuncs { + if err := s.cloner.RegisterDeepCopyFunc(f); err != nil { + return err + } + } + return nil +} + +// Similar to AddDeepCopyFuncs, but registers deep-copy functions that were +// automatically generated. +func (s *Scheme) AddGeneratedDeepCopyFuncs(deepCopyFuncs ...conversion.GeneratedDeepCopyFunc) error { + for _, fn := range deepCopyFuncs { + if err := s.cloner.RegisterGeneratedDeepCopyFunc(fn); err != nil { + return err + } + } + return nil +} + +// AddFieldLabelConversionFunc adds a conversion function to convert field selectors +// of the given kind from the given version to internal version representation. +func (s *Scheme) AddFieldLabelConversionFunc(version, kind string, conversionFunc FieldLabelConversionFunc) error { + if s.fieldLabelConversionFuncs[version] == nil { + s.fieldLabelConversionFuncs[version] = map[string]FieldLabelConversionFunc{} + } + + s.fieldLabelConversionFuncs[version][kind] = conversionFunc + return nil +} + +// AddStructFieldConversion allows you to specify a mechanical copy for a moved +// or renamed struct field without writing an entire conversion function. See +// the comment in conversion.Converter.SetStructFieldCopy for parameter details. +// Call as many times as needed, even on the same fields. +func (s *Scheme) AddStructFieldConversion(srcFieldType interface{}, srcFieldName string, destFieldType interface{}, destFieldName string) error { + return s.converter.SetStructFieldCopy(srcFieldType, srcFieldName, destFieldType, destFieldName) +} + +// RegisterInputDefaults sets the provided field mapping function and field matching +// as the defaults for the provided input type. The fn may be nil, in which case no +// mapping will happen by default. Use this method to register a mechanism for handling +// a specific input type in conversion, such as a map[string]string to structs. +func (s *Scheme) RegisterInputDefaults(in interface{}, fn conversion.FieldMappingFunc, defaultFlags conversion.FieldMatchingFlags) error { + return s.converter.RegisterInputDefaults(in, fn, defaultFlags) +} + +// AddDefaultingFuncs adds functions to the list of default-value functions. +// Each of the given functions is responsible for applying default values +// when converting an instance of a versioned API object into an internal +// API object. These functions do not need to handle sub-objects. We deduce +// how to call these functions from the types of their two parameters. +// +// s.AddDefaultingFuncs( +// func(obj *v1.Pod) { +// if obj.OptionalField == "" { +// obj.OptionalField = "DefaultValue" +// } +// }, +// ) +func (s *Scheme) AddDefaultingFuncs(defaultingFuncs ...interface{}) error { + for _, f := range defaultingFuncs { + err := s.converter.RegisterDefaultingFunc(f) + if err != nil { + return err + } + } + return nil +} + +// Copy does a deep copy of an API object. +func (s *Scheme) Copy(src Object) (Object, error) { + dst, err := s.DeepCopy(src) + if err != nil { + return nil, err + } + return dst.(Object), nil +} + +// Performs a deep copy of the given object. +func (s *Scheme) DeepCopy(src interface{}) (interface{}, error) { + return s.cloner.DeepCopy(src) +} + +// 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) + if flags == 0 { + flags = conversion.AllowDifferentFieldTypeNames + } + return s.converter.Convert(in, out, flags, meta) +} + +// Converts the given field label and value for an kind field selector from +// versioned representation to an unversioned one. +func (s *Scheme) ConvertFieldLabel(version, kind, label, value string) (string, string, error) { + if s.fieldLabelConversionFuncs[version] == nil { + return "", "", fmt.Errorf("No field label conversion function found for version: %s", version) + } + conversionFunc, ok := s.fieldLabelConversionFuncs[version][kind] + if !ok { + return "", "", fmt.Errorf("No field label conversion function found for version %s and kind %s", version, kind) + } + return conversionFunc(label, value) +} + +// ConvertToVersion attempts to convert an input object to its matching Kind in another +// 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 +} + +// UnsafeConvertToVersion will convert in to the provided outVersion 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 + } + + // determine the incoming kinds with as few allocations as possible. + 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) + } + 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) + } + + // 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 + } + } + + // 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 + } + + // 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) + 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 err := s.converter.Convert(in, out, flags, meta); err != nil { + return nil, err + } + + setTargetKind(out, kind) + 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) { + 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}) + } +} + +// setTargetKind sets the kind on an object, taking into account whether the target kind is the internal version. +func setTargetKind(obj Object, kind unversioned.GroupVersionKind) { + if kind.Version == APIVersionInternal { + // internal is a special case + // TODO: look at removing the need to special case this + obj.GetObjectKind().SetGroupVersionKind(unversioned.GroupVersionKind{}) + return + } + obj.GetObjectKind().SetGroupVersionKind(kind) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/scheme_builder.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/scheme_builder.go new file mode 100644 index 0000000000..944db48182 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/scheme_builder.go @@ -0,0 +1,48 @@ +/* +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 runtime + +// SchemeBuilder collects functions that add things to a scheme. It's to allow +// code to compile without explicitly referencing generated types. You should +// declare one in each package that will have generated deep copy or conversion +// functions. +type SchemeBuilder []func(*Scheme) error + +// AddToScheme applies all the stored functions to the scheme. A non-nil error +// indicates that one function failed and the attempt was abandoned. +func (sb *SchemeBuilder) AddToScheme(s *Scheme) error { + for _, f := range *sb { + if err := f(s); err != nil { + return err + } + } + return nil +} + +// Register adds a scheme setup function to the list. +func (sb *SchemeBuilder) Register(funcs ...func(*Scheme) error) { + for _, f := range funcs { + *sb = append(*sb, f) + } +} + +// NewSchemeBuilder calls Register for you. +func NewSchemeBuilder(funcs ...func(*Scheme) error) SchemeBuilder { + var sb SchemeBuilder + sb.Register(funcs...) + return sb +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/codec_factory.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/codec_factory.go new file mode 100644 index 0000000000..6c4a3cf95b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/codec_factory.go @@ -0,0 +1,364 @@ +/* +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 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" + "k8s.io/client-go/1.4/pkg/runtime/serializer/recognizer" + "k8s.io/client-go/1.4/pkg/runtime/serializer/versioning" +) + +// serializerExtensions are for serializers that are conditionally compiled in +var serializerExtensions = []func(*runtime.Scheme) (serializerType, bool){} + +type serializerType struct { + AcceptContentTypes []string + ContentType string + FileExtensions []string + // EncodesAsText should be true if this content type can be represented safely in UTF-8 + EncodesAsText bool + + Serializer runtime.Serializer + PrettySerializer runtime.Serializer + // RawSerializer serializes an object without adding a type wrapper. Some serializers, like JSON + // automatically include identifying type information with the JSON. Others, like Protobuf, need + // a wrapper object that includes type information. This serializer should be set if the serializer + // can serialize / deserialize objects without type info. Note that this serializer will always + // be expected to pass into or a gvk to Decode, since no type information will be available on + // the object itself. + RawSerializer runtime.Serializer + // Specialize gives the type the opportunity to return a different serializer implementation if + // the content type contains alternate operations. Here it is used to implement "pretty" as an + // option to application/json, but could also be used to allow serializers to perform type + // defaulting or alter output. + Specialize func(map[string]string) (runtime.Serializer, bool) + + AcceptStreamContentTypes []string + StreamContentType string + + Framer runtime.Framer + StreamSerializer runtime.Serializer + StreamSpecialize func(map[string]string) (runtime.Serializer, bool) +} + +func newSerializersForScheme(scheme *runtime.Scheme, mf json.MetaFactory) []serializerType { + jsonSerializer := json.NewSerializer(mf, scheme, scheme, false) + jsonPrettySerializer := json.NewSerializer(mf, scheme, scheme, true) + yamlSerializer := json.NewYAMLSerializer(mf, scheme, scheme) + + serializers := []serializerType{ + { + AcceptContentTypes: []string{"application/json"}, + ContentType: "application/json", + FileExtensions: []string{"json"}, + EncodesAsText: true, + Serializer: jsonSerializer, + PrettySerializer: jsonPrettySerializer, + + AcceptStreamContentTypes: []string{"application/json", "application/json;stream=watch"}, + StreamContentType: "application/json", + Framer: json.Framer, + StreamSerializer: jsonSerializer, + }, + { + AcceptContentTypes: []string{"application/yaml"}, + ContentType: "application/yaml", + FileExtensions: []string{"yaml"}, + EncodesAsText: true, + Serializer: yamlSerializer, + + // TODO: requires runtime.RawExtension to properly distinguish when the nested content is + // yaml, because the yaml encoder invokes MarshalJSON first + //AcceptStreamContentTypes: []string{"application/yaml", "application/yaml;stream=watch"}, + //StreamContentType: "application/yaml;stream=watch", + //Framer: json.YAMLFramer, + //StreamSerializer: yamlSerializer, + }, + } + + for _, fn := range serializerExtensions { + if serializer, ok := fn(scheme); ok { + serializers = append(serializers, serializer) + } + } + return serializers +} + +// CodecFactory provides methods for retrieving codecs and serializers for specific +// versions and content types. +type CodecFactory struct { + scheme *runtime.Scheme + serializers []serializerType + universal runtime.Decoder + accepts []string + streamingAccepts []string + + legacySerializer runtime.Serializer +} + +// NewCodecFactory provides methods for retrieving serializers for the supported wire formats +// and conversion wrappers to define preferred internal and external versions. In the future, +// as the internal version is used less, callers may instead use a defaulting serializer and +// only convert objects which are shared internally (Status, common API machinery). +// TODO: allow other codecs to be compiled in? +// TODO: accept a scheme interface +func NewCodecFactory(scheme *runtime.Scheme) CodecFactory { + serializers := newSerializersForScheme(scheme, json.DefaultMetaFactory) + return newCodecFactory(scheme, serializers) +} + +// newCodecFactory is a helper for testing that allows a different metafactory to be specified. +func newCodecFactory(scheme *runtime.Scheme, serializers []serializerType) CodecFactory { + decoders := make([]runtime.Decoder, 0, len(serializers)) + accepts := []string{} + alreadyAccepted := make(map[string]struct{}) + + var legacySerializer runtime.Serializer + for _, d := range serializers { + decoders = append(decoders, d.Serializer) + for _, mediaType := range d.AcceptContentTypes { + if _, ok := alreadyAccepted[mediaType]; ok { + continue + } + alreadyAccepted[mediaType] = struct{}{} + accepts = append(accepts, mediaType) + if mediaType == "application/json" { + legacySerializer = d.Serializer + } + } + } + if legacySerializer == nil { + legacySerializer = serializers[0].Serializer + } + + streamAccepts := []string{} + alreadyAccepted = make(map[string]struct{}) + for _, d := range serializers { + if len(d.StreamContentType) == 0 { + continue + } + for _, mediaType := range d.AcceptStreamContentTypes { + if _, ok := alreadyAccepted[mediaType]; ok { + continue + } + alreadyAccepted[mediaType] = struct{}{} + streamAccepts = append(streamAccepts, mediaType) + } + } + + return CodecFactory{ + scheme: scheme, + serializers: serializers, + universal: recognizer.NewDecoder(decoders...), + + accepts: accepts, + streamingAccepts: streamAccepts, + + legacySerializer: legacySerializer, + } +} + +var _ runtime.NegotiatedSerializer = &CodecFactory{} + +// SupportedMediaTypes returns the RFC2046 media types that this factory has serializers for. +func (f CodecFactory) SupportedMediaTypes() []string { + return f.accepts +} + +// SupportedStreamingMediaTypes returns the RFC2046 media types that this factory has stream serializers for. +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. +// +// 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(). +func (f CodecFactory) LegacyCodec(version ...unversioned.GroupVersion) runtime.Codec { + return versioning.NewCodecForScheme(f.scheme, f.legacySerializer, f.universal, version, nil) +} + +// UniversalDeserializer can convert any stored data recognized by this factory into a Go object that satisfies +// runtime.Object. It does not perform conversion. It does not perform defaulting. +func (f CodecFactory) UniversalDeserializer() runtime.Decoder { + return f.universal +} + +// UniversalDecoder returns a runtime.Decoder capable of decoding all known API objects in all known formats. Used +// by clients that do not need to encode objects but want to deserialize API objects stored on disk. Only decodes +// objects in groups registered with the scheme. The GroupVersions passed may be used to select alternate +// versions of objects to return - by default, runtime.APIVersionInternal is used. If any versions are specified, +// unrecognized groups will be returned in the version they are encoded as (no conversion). This decoder performs +// defaulting. +// +// TODO: the decoder will eventually be removed in favor of dealing with objects in their versioned form +func (f CodecFactory) UniversalDecoder(versions ...unversioned.GroupVersion) runtime.Decoder { + return f.CodecForVersions(nil, f.universal, nil, versions) +} + +// 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 { + 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}) +} + +// 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) +} + +// SerializerForMediaType returns a serializer that matches the provided RFC2046 mediaType, or false if no such +// serializer exists +func (f CodecFactory) SerializerForMediaType(mediaType string, params map[string]string) (runtime.SerializerInfo, bool) { + for _, s := range f.serializers { + for _, accepted := range s.AcceptContentTypes { + if accepted == mediaType { + // specialization abstracts variants to the content type + if s.Specialize != nil && len(params) > 0 { + serializer, ok := s.Specialize(params) + // TODO: return formatted mediaType+params + return runtime.SerializerInfo{Serializer: serializer, MediaType: s.ContentType, EncodesAsText: s.EncodesAsText}, ok + } + + // legacy support for ?pretty=1 continues, but this is more formally defined + if v, ok := params["pretty"]; ok && v == "1" && s.PrettySerializer != nil { + return runtime.SerializerInfo{Serializer: s.PrettySerializer, MediaType: s.ContentType, EncodesAsText: s.EncodesAsText}, true + } + + // return the base variant + return runtime.SerializerInfo{Serializer: s.Serializer, MediaType: s.ContentType, EncodesAsText: s.EncodesAsText}, true + } + } + } + return runtime.SerializerInfo{}, false +} + +// StreamingSerializerForMediaType returns a serializer that matches the provided RFC2046 mediaType, or false if no such +// serializer exists +func (f CodecFactory) StreamingSerializerForMediaType(mediaType string, params map[string]string) (runtime.StreamSerializerInfo, bool) { + for _, s := range f.serializers { + for _, accepted := range s.AcceptStreamContentTypes { + if accepted == mediaType { + // TODO: accept params + nested, ok := f.SerializerForMediaType(s.ContentType, nil) + if !ok { + panic("no serializer defined for internal content type") + } + + if s.StreamSpecialize != nil && len(params) > 0 { + serializer, ok := s.StreamSpecialize(params) + // TODO: return formatted mediaType+params + return runtime.StreamSerializerInfo{ + SerializerInfo: runtime.SerializerInfo{ + Serializer: serializer, + MediaType: s.StreamContentType, + EncodesAsText: s.EncodesAsText, + }, + Framer: s.Framer, + Embedded: nested, + }, ok + } + + return runtime.StreamSerializerInfo{ + SerializerInfo: runtime.SerializerInfo{ + Serializer: s.StreamSerializer, + MediaType: s.StreamContentType, + EncodesAsText: s.EncodesAsText, + }, + Framer: s.Framer, + Embedded: nested, + }, true + } + } + } + return runtime.StreamSerializerInfo{}, false +} + +// SerializerForFileExtension returns a serializer for the provided extension, or false if no serializer matches. +func (f CodecFactory) SerializerForFileExtension(extension string) (runtime.Serializer, bool) { + for _, s := range f.serializers { + for _, ext := range s.FileExtensions { + if extension == ext { + return s.Serializer, true + } + } + } + return nil, false +} + +// DirectCodecFactory provides methods for retrieving "DirectCodec"s, which do not do conversion. +type DirectCodecFactory struct { + CodecFactory +} + +// 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, + } +} + +// 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, + } +} + +// 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/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json/json.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json/json.go new file mode 100644 index 0000000000..a50ddd63f2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json/json.go @@ -0,0 +1,245 @@ +/* +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 json + +import ( + "encoding/json" + "io" + + "github.com/ghodss/yaml" + "github.com/ugorji/go/codec" + + "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/recognizer" + "k8s.io/client-go/1.4/pkg/util/framer" + utilyaml "k8s.io/client-go/1.4/pkg/util/yaml" +) + +// NewSerializer creates a JSON serializer that handles encoding versioned objects into the proper JSON form. If typer +// is not nil, the object has the group, version, and kind fields set. +func NewSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper, pretty bool) *Serializer { + return &Serializer{ + meta: meta, + creater: creater, + typer: typer, + yaml: false, + pretty: pretty, + } +} + +// NewYAMLSerializer creates a YAML serializer that handles encoding versioned objects into the proper YAML form. If typer +// is not nil, the object has the group, version, and kind fields set. This serializer supports only the subset of YAML that +// matches JSON, and will error if constructs are used that do not serialize to JSON. +func NewYAMLSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper) *Serializer { + return &Serializer{ + meta: meta, + creater: creater, + typer: typer, + yaml: true, + } +} + +type Serializer struct { + meta MetaFactory + creater runtime.ObjectCreater + typer runtime.ObjectTyper + yaml bool + pretty bool +} + +// Serializer implements Serializer +var _ runtime.Serializer = &Serializer{} +var _ recognizer.RecognizingDecoder = &Serializer{} + +// Decode attempts to convert the provided data into YAML or JSON, extract the stored schema kind, apply the provided default gvk, and then +// load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, the raw data will be +// extracted and no decoding will be performed. If into is not registered with the typer, then the object will be straight decoded using +// normal JSON/YAML unmarshalling. If into is provided and the original data is not fully qualified with kind/version/group, the type of +// the into will be used to alter the returned gvk. On success or most errors, the method will return the calculated schema kind. +func (s *Serializer) Decode(originalData []byte, gvk *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + if versioned, ok := into.(*runtime.VersionedObjects); ok { + into = versioned.Last() + obj, actual, err := s.Decode(originalData, gvk, into) + if err != nil { + return nil, actual, err + } + versioned.Objects = []runtime.Object{obj} + return versioned, actual, nil + } + + data := originalData + if s.yaml { + altered, err := yaml.YAMLToJSON(data) + if err != nil { + return nil, nil, err + } + data = altered + } + + actual, err := s.meta.Interpret(data) + if err != nil { + return nil, nil, err + } + + if gvk != nil { + // apply kind and version defaulting from provided default + if len(actual.Kind) == 0 { + actual.Kind = gvk.Kind + } + if len(actual.Version) == 0 && len(actual.Group) == 0 { + actual.Group = gvk.Group + actual.Version = gvk.Version + } + if len(actual.Version) == 0 && actual.Group == gvk.Group { + actual.Version = gvk.Version + } + } + + if unk, ok := into.(*runtime.Unknown); ok && unk != nil { + unk.Raw = originalData + unk.ContentType = runtime.ContentTypeJSON + unk.GetObjectKind().SetGroupVersionKind(*actual) + return unk, actual, nil + } + + if into != nil { + types, _, err := s.typer.ObjectKinds(into) + switch { + case runtime.IsNotRegisteredError(err): + if err := codec.NewDecoderBytes(data, new(codec.JsonHandle)).Decode(into); err != nil { + return nil, actual, err + } + return into, actual, nil + case err != nil: + return nil, actual, err + default: + typed := types[0] + if len(actual.Kind) == 0 { + actual.Kind = typed.Kind + } + if len(actual.Version) == 0 && len(actual.Group) == 0 { + actual.Group = typed.Group + actual.Version = typed.Version + } + if len(actual.Version) == 0 && actual.Group == typed.Group { + actual.Version = typed.Version + } + } + } + + if len(actual.Kind) == 0 { + return nil, actual, runtime.NewMissingKindErr(string(originalData)) + } + if len(actual.Version) == 0 { + return nil, actual, runtime.NewMissingVersionErr(string(originalData)) + } + + // use the target if necessary + obj, err := runtime.UseOrCreateObject(s.typer, s.creater, *actual, into) + if err != nil { + return nil, actual, err + } + + if err := codec.NewDecoderBytes(data, new(codec.JsonHandle)).Decode(obj); err != nil { + return nil, actual, err + } + return obj, actual, nil +} + +// Encode serializes the provided object to the given writer. +func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error { + if s.yaml { + json, err := json.Marshal(obj) + if err != nil { + return err + } + data, err := yaml.JSONToYAML(json) + if err != nil { + return err + } + _, err = w.Write(data) + return err + } + + if s.pretty { + data, err := json.MarshalIndent(obj, "", " ") + if err != nil { + return err + } + _, err = w.Write(data) + return err + } + encoder := json.NewEncoder(w) + return encoder.Encode(obj) +} + +// RecognizesData implements the RecognizingDecoder interface. +func (s *Serializer) RecognizesData(peek io.Reader) (ok, unknown bool, err error) { + if s.yaml { + // we could potentially look for '---' + return false, true, nil + } + _, ok = utilyaml.GuessJSONStream(peek, 2048) + return ok, false, nil +} + +// Framer is the default JSON framing behavior, with newlines delimiting individual objects. +var Framer = jsonFramer{} + +type jsonFramer struct{} + +// NewFrameWriter implements stream framing for this serializer +func (jsonFramer) NewFrameWriter(w io.Writer) io.Writer { + // we can write JSON objects directly to the writer, because they are self-framing + return w +} + +// NewFrameReader implements stream framing for this serializer +func (jsonFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { + // we need to extract the JSON chunks of data to pass to Decode() + return framer.NewJSONFramedReader(r) +} + +// Framer is the default JSON framing behavior, with newlines delimiting individual objects. +var YAMLFramer = yamlFramer{} + +type yamlFramer struct{} + +// NewFrameWriter implements stream framing for this serializer +func (yamlFramer) NewFrameWriter(w io.Writer) io.Writer { + return yamlFrameWriter{w} +} + +// NewFrameReader implements stream framing for this serializer +func (yamlFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { + // extract the YAML document chunks directly + return utilyaml.NewDocumentDecoder(r) +} + +type yamlFrameWriter struct { + w io.Writer +} + +// Write separates each document with the YAML document separator (`---` followed by line +// break). Writers must write well formed YAML documents (include a final line break). +func (w yamlFrameWriter) Write(data []byte) (n int, err error) { + if _, err := w.w.Write([]byte("---\n")); err != nil { + return 0, err + } + return w.w.Write(data) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json/meta.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json/meta.go new file mode 100644 index 0000000000..6044ed37a7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/json/meta.go @@ -0,0 +1,61 @@ +/* +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 json + +import ( + "encoding/json" + "fmt" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// MetaFactory is used to store and retrieve the version and kind +// information for JSON objects in a serializer. +type MetaFactory interface { + // Interpret should return the version and kind of the wire-format of + // the object. + Interpret(data []byte) (*unversioned.GroupVersionKind, error) +} + +// DefaultMetaFactory is a default factory for versioning objects in JSON. The object +// in memory and in the default JSON serialization will use the "kind" and "apiVersion" +// fields. +var DefaultMetaFactory = SimpleMetaFactory{} + +// SimpleMetaFactory provides default methods for retrieving the type and version of objects +// that are identified with an "apiVersion" and "kind" fields in their JSON +// serialization. It may be parameterized with the names of the fields in memory, or an +// optional list of base structs to search for those fields in memory. +type SimpleMetaFactory struct { +} + +// Interpret will return the APIVersion and Kind of the JSON wire-format +// encoding of an object, or an error. +func (SimpleMetaFactory) Interpret(data []byte) (*unversioned.GroupVersionKind, error) { + findKind := struct { + APIVersion string `json:"apiVersion,omitempty"` + Kind string `json:"kind,omitempty"` + }{} + if err := json.Unmarshal(data, &findKind); err != nil { + return nil, fmt.Errorf("couldn't get version/kind; json parse error: %v", err) + } + gv, err := unversioned.ParseGroupVersion(findKind.APIVersion) + if err != nil { + return nil, err + } + return &unversioned.GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: findKind.Kind}, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/negotiated_codec.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/negotiated_codec.go new file mode 100644 index 0000000000..f4187127b0 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/negotiated_codec.go @@ -0,0 +1,57 @@ +/* +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 serializer + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// TODO: We should figure out what happens when someone asks +// encoder for version and it conflicts with the raw serializer. +type negotiatedSerializerWrapper struct { + info runtime.SerializerInfo + streamInfo runtime.StreamSerializerInfo +} + +func NegotiatedSerializerWrapper(info runtime.SerializerInfo, streamInfo runtime.StreamSerializerInfo) runtime.NegotiatedSerializer { + return &negotiatedSerializerWrapper{info, streamInfo} +} + +func (n *negotiatedSerializerWrapper) SupportedMediaTypes() []string { + return []string{} +} + +func (n *negotiatedSerializerWrapper) SerializerForMediaType(mediaType string, options map[string]string) (runtime.SerializerInfo, bool) { + return n.info, true +} + +func (n *negotiatedSerializerWrapper) SupportedStreamingMediaTypes() []string { + return []string{} +} + +func (n *negotiatedSerializerWrapper) StreamingSerializerForMediaType(mediaType string, options map[string]string) (runtime.StreamSerializerInfo, bool) { + return n.streamInfo, true +} + +func (n *negotiatedSerializerWrapper) EncoderForVersion(e runtime.Encoder, _ unversioned.GroupVersion) runtime.Encoder { + return e +} + +func (n *negotiatedSerializerWrapper) DecoderToVersion(d runtime.Decoder, _gv unversioned.GroupVersion) runtime.Decoder { + return d +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf/doc.go new file mode 100644 index 0000000000..381748d69f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf/doc.go @@ -0,0 +1,18 @@ +/* +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 protobuf provides a Kubernetes serializer for the protobuf format. +package protobuf diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf/protobuf.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf/protobuf.go new file mode 100644 index 0000000000..00de5961cf --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf/protobuf.go @@ -0,0 +1,448 @@ +/* +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 protobuf + +import ( + "bytes" + "fmt" + "io" + "reflect" + + "github.com/gogo/protobuf/proto" + + "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/recognizer" + "k8s.io/client-go/1.4/pkg/util/framer" +) + +var ( + // protoEncodingPrefix serves as a magic number for an encoded protobuf message on this serializer. All + // proto messages serialized by this schema will be preceded by the bytes 0x6b 0x38 0x73, with the fourth + // byte being reserved for the encoding style. The only encoding style defined is 0x00, which means that + // the rest of the byte stream is a message of type k8s.io.kubernetes.pkg.runtime.Unknown (proto2). + // + // See k8s.io/kubernetes/pkg/runtime/generated.proto for details of the runtime.Unknown message. + // + // This encoding scheme is experimental, and is subject to change at any time. + protoEncodingPrefix = []byte{0x6b, 0x38, 0x73, 0x00} +) + +type errNotMarshalable struct { + t reflect.Type +} + +func (e errNotMarshalable) Error() string { + return fmt.Sprintf("object %v does not implement the protobuf marshalling interface and cannot be encoded to a protobuf message", e.t) +} + +func IsNotMarshalable(err error) bool { + _, ok := err.(errNotMarshalable) + return err != nil && ok +} + +// NewSerializer creates a Protobuf serializer that handles encoding versioned objects into the proper wire form. If a typer +// is passed, the encoded object will have group, version, and kind fields set. If typer is nil, the objects will be written +// as-is (any type info passed with the object will be used). +// +// This encoding scheme is experimental, and is subject to change at any time. +func NewSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper, defaultContentType string) *Serializer { + return &Serializer{ + prefix: protoEncodingPrefix, + creater: creater, + typer: typer, + contentType: defaultContentType, + } +} + +type Serializer struct { + prefix []byte + creater runtime.ObjectCreater + typer runtime.ObjectTyper + contentType string +} + +var _ runtime.Serializer = &Serializer{} +var _ recognizer.RecognizingDecoder = &Serializer{} + +// Decode attempts to convert the provided data into a protobuf message, extract the stored schema kind, apply the provided default +// gvk, and then load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, +// the raw data will be extracted and no decoding will be performed. If into is not registered with the typer, then the object will +// be straight decoded using normal protobuf unmarshalling (the MarshalTo interface). If into is provided and the original data is +// not fully qualified with kind/version/group, the type of the into will be used to alter the returned gvk. On success or most +// errors, the method will return the calculated schema kind. +func (s *Serializer) Decode(originalData []byte, gvk *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + if versioned, ok := into.(*runtime.VersionedObjects); ok { + into = versioned.Last() + obj, actual, err := s.Decode(originalData, gvk, into) + if err != nil { + return nil, actual, err + } + // the last item in versioned becomes into, so if versioned was not originally empty we reset the object + // array so the first position is the decoded object and the second position is the outermost object. + // if there were no objects in the versioned list passed to us, only add ourselves. + if into != nil && into != obj { + versioned.Objects = []runtime.Object{obj, into} + } else { + versioned.Objects = []runtime.Object{obj} + } + return versioned, actual, err + } + + prefixLen := len(s.prefix) + switch { + case len(originalData) == 0: + // TODO: treat like decoding {} from JSON with defaulting + return nil, nil, fmt.Errorf("empty data") + case len(originalData) < prefixLen || !bytes.Equal(s.prefix, originalData[:prefixLen]): + return nil, nil, fmt.Errorf("provided data does not appear to be a protobuf message, expected prefix %v", s.prefix) + case len(originalData) == prefixLen: + // TODO: treat like decoding {} from JSON with defaulting + return nil, nil, fmt.Errorf("empty body") + } + + data := originalData[prefixLen:] + unk := runtime.Unknown{} + if err := unk.Unmarshal(data); err != nil { + return nil, nil, err + } + + actual := unk.GroupVersionKind() + copyKindDefaults(&actual, gvk) + + if intoUnknown, ok := into.(*runtime.Unknown); ok && intoUnknown != nil { + *intoUnknown = unk + if ok, _, _ := s.RecognizesData(bytes.NewBuffer(unk.Raw)); ok { + intoUnknown.ContentType = s.contentType + } + return intoUnknown, &actual, nil + } + + if into != nil { + types, _, err := s.typer.ObjectKinds(into) + switch { + case runtime.IsNotRegisteredError(err): + pb, ok := into.(proto.Message) + if !ok { + return nil, &actual, errNotMarshalable{reflect.TypeOf(into)} + } + if err := proto.Unmarshal(unk.Raw, pb); err != nil { + return nil, &actual, err + } + return into, &actual, nil + case err != nil: + return nil, &actual, err + default: + copyKindDefaults(&actual, &types[0]) + // if the result of defaulting did not set a version or group, ensure that at least group is set + // (copyKindDefaults will not assign Group if version is already set). This guarantees that the group + // of into is set if there is no better information from the caller or object. + if len(actual.Version) == 0 && len(actual.Group) == 0 { + actual.Group = types[0].Group + } + } + } + + if len(actual.Kind) == 0 { + return nil, &actual, runtime.NewMissingKindErr(fmt.Sprintf("%#v", unk.TypeMeta)) + } + if len(actual.Version) == 0 { + return nil, &actual, runtime.NewMissingVersionErr(fmt.Sprintf("%#v", unk.TypeMeta)) + } + + return unmarshalToObject(s.typer, s.creater, &actual, into, unk.Raw) +} + +// Encode serializes the provided object to the given writer. +func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error { + prefixSize := uint64(len(s.prefix)) + + var unk runtime.Unknown + switch t := obj.(type) { + case *runtime.Unknown: + estimatedSize := prefixSize + uint64(t.Size()) + data := make([]byte, estimatedSize) + i, err := t.MarshalTo(data[prefixSize:]) + if err != nil { + return err + } + copy(data, s.prefix) + _, err = w.Write(data[:prefixSize+uint64(i)]) + return err + default: + kind := obj.GetObjectKind().GroupVersionKind() + unk = runtime.Unknown{ + TypeMeta: runtime.TypeMeta{ + Kind: kind.Kind, + APIVersion: kind.GroupVersion().String(), + }, + } + } + + switch t := obj.(type) { + case bufferedMarshaller: + // this path performs a single allocation during write but requires the caller to implement + // the more efficient Size and MarshalTo methods + encodedSize := uint64(t.Size()) + estimatedSize := prefixSize + estimateUnknownSize(&unk, encodedSize) + data := make([]byte, estimatedSize) + + i, err := unk.NestedMarshalTo(data[prefixSize:], t, encodedSize) + if err != nil { + return err + } + + copy(data, s.prefix) + + _, err = w.Write(data[:prefixSize+uint64(i)]) + return err + + case proto.Marshaler: + // this path performs extra allocations + data, err := t.Marshal() + if err != nil { + return err + } + unk.Raw = data + + estimatedSize := prefixSize + uint64(unk.Size()) + data = make([]byte, estimatedSize) + + i, err := unk.MarshalTo(data[prefixSize:]) + if err != nil { + return err + } + + copy(data, s.prefix) + + _, err = w.Write(data[:prefixSize+uint64(i)]) + return err + + default: + // TODO: marshal with a different content type and serializer (JSON for third party objects) + return errNotMarshalable{reflect.TypeOf(obj)} + } +} + +// RecognizesData implements the RecognizingDecoder interface. +func (s *Serializer) RecognizesData(peek io.Reader) (bool, bool, error) { + prefix := make([]byte, 4) + n, err := peek.Read(prefix) + if err != nil { + if err == io.EOF { + return false, false, nil + } + return false, false, err + } + if n != 4 { + return false, false, nil + } + return bytes.Equal(s.prefix, prefix), false, nil +} + +// copyKindDefaults defaults dst to the value in src if dst does not have a value set. +func copyKindDefaults(dst, src *unversioned.GroupVersionKind) { + if src == nil { + return + } + // apply kind and version defaulting from provided default + if len(dst.Kind) == 0 { + dst.Kind = src.Kind + } + if len(dst.Version) == 0 && len(src.Version) > 0 { + dst.Group = src.Group + dst.Version = src.Version + } +} + +// bufferedMarshaller describes a more efficient marshalling interface that can avoid allocating multiple +// byte buffers by pre-calculating the size of the final buffer needed. +type bufferedMarshaller interface { + proto.Sizer + runtime.ProtobufMarshaller +} + +// estimateUnknownSize returns the expected bytes consumed by a given runtime.Unknown +// object with a nil RawJSON struct and the expected size of the provided buffer. The +// returned size will not be correct if RawJSOn is set on unk. +func estimateUnknownSize(unk *runtime.Unknown, byteSize uint64) uint64 { + size := uint64(unk.Size()) + // protobuf uses 1 byte for the tag, a varint for the length of the array (at most 8 bytes - uint64 - here), + // and the size of the array. + size += 1 + 8 + byteSize + return size +} + +// NewRawSerializer creates a Protobuf serializer that handles encoding versioned objects into the proper wire form. If typer +// is not nil, the object has the group, version, and kind fields set. This serializer does not provide type information for the +// encoded object, and thus is not self describing (callers must know what type is being described in order to decode). +// +// This encoding scheme is experimental, and is subject to change at any time. +func NewRawSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper, defaultContentType string) *RawSerializer { + return &RawSerializer{ + creater: creater, + typer: typer, + contentType: defaultContentType, + } +} + +// RawSerializer encodes and decodes objects without adding a runtime.Unknown wrapper (objects are encoded without identifying +// type). +type RawSerializer struct { + creater runtime.ObjectCreater + typer runtime.ObjectTyper + contentType string +} + +var _ runtime.Serializer = &RawSerializer{} + +// Decode attempts to convert the provided data into a protobuf message, extract the stored schema kind, apply the provided default +// gvk, and then load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, +// the raw data will be extracted and no decoding will be performed. If into is not registered with the typer, then the object will +// be straight decoded using normal protobuf unmarshalling (the MarshalTo interface). If into is provided and the original data is +// not fully qualified with kind/version/group, the type of the into will be used to alter the returned gvk. On success or most +// errors, the method will return the calculated schema kind. +func (s *RawSerializer) Decode(originalData []byte, gvk *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + if into == nil { + return nil, nil, fmt.Errorf("this serializer requires an object to decode into: %#v", s) + } + + if versioned, ok := into.(*runtime.VersionedObjects); ok { + into = versioned.Last() + obj, actual, err := s.Decode(originalData, gvk, into) + if err != nil { + return nil, actual, err + } + if into != nil && into != obj { + versioned.Objects = []runtime.Object{obj, into} + } else { + versioned.Objects = []runtime.Object{obj} + } + return versioned, actual, err + } + + if len(originalData) == 0 { + // TODO: treat like decoding {} from JSON with defaulting + return nil, nil, fmt.Errorf("empty data") + } + data := originalData + + actual := &unversioned.GroupVersionKind{} + copyKindDefaults(actual, gvk) + + if intoUnknown, ok := into.(*runtime.Unknown); ok && intoUnknown != nil { + intoUnknown.Raw = data + intoUnknown.ContentEncoding = "" + intoUnknown.ContentType = s.contentType + intoUnknown.SetGroupVersionKind(*actual) + return intoUnknown, actual, nil + } + + types, _, err := s.typer.ObjectKinds(into) + switch { + case runtime.IsNotRegisteredError(err): + pb, ok := into.(proto.Message) + if !ok { + return nil, actual, errNotMarshalable{reflect.TypeOf(into)} + } + if err := proto.Unmarshal(data, pb); err != nil { + return nil, actual, err + } + return into, actual, nil + case err != nil: + return nil, actual, err + default: + copyKindDefaults(actual, &types[0]) + // if the result of defaulting did not set a version or group, ensure that at least group is set + // (copyKindDefaults will not assign Group if version is already set). This guarantees that the group + // of into is set if there is no better information from the caller or object. + if len(actual.Version) == 0 && len(actual.Group) == 0 { + actual.Group = types[0].Group + } + } + + if len(actual.Kind) == 0 { + return nil, actual, runtime.NewMissingKindErr("") + } + if len(actual.Version) == 0 { + return nil, actual, runtime.NewMissingVersionErr("") + } + + return unmarshalToObject(s.typer, s.creater, actual, into, data) +} + +// unmarshalToObject is the common code between decode in the raw and normal serializer. +func unmarshalToObject(typer runtime.ObjectTyper, creater runtime.ObjectCreater, actual *unversioned.GroupVersionKind, into runtime.Object, data []byte) (runtime.Object, *unversioned.GroupVersionKind, error) { + // use the target if necessary + obj, err := runtime.UseOrCreateObject(typer, creater, *actual, into) + if err != nil { + return nil, actual, err + } + + pb, ok := obj.(proto.Message) + if !ok { + return nil, actual, errNotMarshalable{reflect.TypeOf(obj)} + } + if err := proto.Unmarshal(data, pb); err != nil { + return nil, actual, err + } + return obj, actual, nil +} + +// Encode serializes the provided object to the given writer. Overrides is ignored. +func (s *RawSerializer) Encode(obj runtime.Object, w io.Writer) error { + switch t := obj.(type) { + case bufferedMarshaller: + // this path performs a single allocation during write but requires the caller to implement + // the more efficient Size and MarshalTo methods + encodedSize := uint64(t.Size()) + data := make([]byte, encodedSize) + + n, err := t.MarshalTo(data) + if err != nil { + return err + } + _, err = w.Write(data[:n]) + return err + + case proto.Marshaler: + // this path performs extra allocations + data, err := t.Marshal() + if err != nil { + return err + } + _, err = w.Write(data) + return err + + default: + return errNotMarshalable{reflect.TypeOf(obj)} + } +} + +var LengthDelimitedFramer = lengthDelimitedFramer{} + +type lengthDelimitedFramer struct{} + +// NewFrameWriter implements stream framing for this serializer +func (lengthDelimitedFramer) NewFrameWriter(w io.Writer) io.Writer { + return framer.NewLengthDelimitedFrameWriter(w) +} + +// NewFrameReader implements stream framing for this serializer +func (lengthDelimitedFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { + return framer.NewLengthDelimitedFrameReader(r) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf_extension.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf_extension.go new file mode 100644 index 0000000000..fc6b0e8526 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf_extension.go @@ -0,0 +1,52 @@ +/* +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 serializer + +import ( + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/runtime/serializer/protobuf" +) + +const ( + // contentTypeProtobuf is the protobuf type exposed for Kubernetes. It is private to prevent others from + // depending on it unintentionally. + // TODO: potentially move to pkg/api (since it's part of the Kube public API) and pass it in to the + // CodecFactory on initialization. + contentTypeProtobuf = "application/vnd.kubernetes.protobuf" + contentTypeProtobufWatch = contentTypeProtobuf + ";stream=watch" +) + +func protobufSerializer(scheme *runtime.Scheme) (serializerType, bool) { + serializer := protobuf.NewSerializer(scheme, scheme, contentTypeProtobuf) + raw := protobuf.NewRawSerializer(scheme, scheme, contentTypeProtobuf) + return serializerType{ + AcceptContentTypes: []string{contentTypeProtobuf}, + ContentType: contentTypeProtobuf, + FileExtensions: []string{"pb"}, + Serializer: serializer, + RawSerializer: raw, + + AcceptStreamContentTypes: []string{contentTypeProtobuf, contentTypeProtobufWatch}, + StreamContentType: contentTypeProtobufWatch, + Framer: protobuf.LengthDelimitedFramer, + StreamSerializer: raw, + }, true +} + +func init() { + serializerExtensions = append(serializerExtensions, protobufSerializer) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/recognizer/recognizer.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/recognizer/recognizer.go new file mode 100644 index 0000000000..d5d2f3f29f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/recognizer/recognizer.go @@ -0,0 +1,127 @@ +/* +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 recognizer + +import ( + "bufio" + "bytes" + "fmt" + "io" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +type RecognizingDecoder interface { + runtime.Decoder + // RecognizesData should return true if the input provided in the provided reader + // belongs to this decoder, or an error if the data could not be read or is ambiguous. + // Unknown is true if the data could not be determined to match the decoder type. + // Decoders should assume that they can read as much of peek as they need (as the caller + // provides) and may return unknown if the data provided is not sufficient to make a + // a determination. When peek returns EOF that may mean the end of the input or the + // end of buffered input - recognizers should return the best guess at that time. + RecognizesData(peek io.Reader) (ok, unknown bool, err error) +} + +// NewDecoder creates a decoder that will attempt multiple decoders in an order defined +// by: +// +// 1. The decoder implements RecognizingDecoder and identifies the data +// 2. All other decoders, and any decoder that returned true for unknown. +// +// The order passed to the constructor is preserved within those priorities. +func NewDecoder(decoders ...runtime.Decoder) runtime.Decoder { + return &decoder{ + decoders: decoders, + } +} + +type decoder struct { + decoders []runtime.Decoder +} + +var _ RecognizingDecoder = &decoder{} + +func (d *decoder) RecognizesData(peek io.Reader) (bool, bool, error) { + var ( + lastErr error + anyUnknown bool + ) + data, _ := bufio.NewReaderSize(peek, 1024).Peek(1024) + for _, r := range d.decoders { + switch t := r.(type) { + case RecognizingDecoder: + ok, unknown, err := t.RecognizesData(bytes.NewBuffer(data)) + if err != nil { + lastErr = err + continue + } + anyUnknown = anyUnknown || unknown + if !ok { + continue + } + return true, false, nil + } + } + return false, anyUnknown, lastErr +} + +func (d *decoder) Decode(data []byte, gvk *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + var ( + lastErr error + skipped []runtime.Decoder + ) + + // try recognizers, record any decoders we need to give a chance later + for _, r := range d.decoders { + switch t := r.(type) { + case RecognizingDecoder: + buf := bytes.NewBuffer(data) + ok, unknown, err := t.RecognizesData(buf) + if err != nil { + lastErr = err + continue + } + if unknown { + skipped = append(skipped, t) + continue + } + if !ok { + continue + } + return r.Decode(data, gvk, into) + default: + skipped = append(skipped, t) + } + } + + // try recognizers that returned unknown or didn't recognize their data + for _, r := range skipped { + out, actual, err := r.Decode(data, gvk, into) + if err != nil { + lastErr = err + continue + } + return out, actual, nil + } + + if lastErr == nil { + lastErr = fmt.Errorf("no serialization format matched the provided data") + } + return nil, nil, lastErr +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/streaming/streaming.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/streaming/streaming.go new file mode 100644 index 0000000000..2a0e15594f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/streaming/streaming.go @@ -0,0 +1,137 @@ +/* +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 streaming implements encoder and decoder for streams +// of runtime.Objects over io.Writer/Readers. +package streaming + +import ( + "bytes" + "fmt" + "io" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// Encoder is a runtime.Encoder on a stream. +type Encoder interface { + // Encode will write the provided object to the stream or return an error. It obeys the same + // contract as runtime.VersionedEncoder. + Encode(obj runtime.Object) error +} + +// Decoder is a runtime.Decoder from a stream. +type Decoder interface { + // Decode will return io.EOF when no more objects are available. + Decode(defaults *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) + // Close closes the underlying stream. + Close() error +} + +// Serializer is a factory for creating encoders and decoders that work over streams. +type Serializer interface { + NewEncoder(w io.Writer) Encoder + NewDecoder(r io.ReadCloser) Decoder +} + +type decoder struct { + reader io.ReadCloser + decoder runtime.Decoder + buf []byte + maxBytes int + resetRead bool +} + +// NewDecoder creates a streaming decoder that reads object chunks from r and decodes them with d. +// The reader is expected to return ErrShortRead if the provided buffer is not large enough to read +// an entire object. +func NewDecoder(r io.ReadCloser, d runtime.Decoder) Decoder { + return &decoder{ + reader: r, + decoder: d, + buf: make([]byte, 1024), + maxBytes: 1024 * 1024, + } +} + +var ErrObjectTooLarge = fmt.Errorf("object to decode was longer than maximum allowed size") + +// Decode reads the next object from the stream and decodes it. +func (d *decoder) Decode(defaults *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + base := 0 + for { + n, err := d.reader.Read(d.buf[base:]) + if err == io.ErrShortBuffer { + if n == 0 { + return nil, nil, fmt.Errorf("got short buffer with n=0, base=%d, cap=%d", base, cap(d.buf)) + } + if d.resetRead { + continue + } + // double the buffer size up to maxBytes + if len(d.buf) < d.maxBytes { + base += n + d.buf = append(d.buf, make([]byte, len(d.buf))...) + continue + } + // must read the rest of the frame (until we stop getting ErrShortBuffer) + d.resetRead = true + base = 0 + return nil, nil, ErrObjectTooLarge + } + if err != nil { + return nil, nil, err + } + if d.resetRead { + // now that we have drained the large read, continue + d.resetRead = false + continue + } + base += n + break + } + return d.decoder.Decode(d.buf[:base], defaults, into) +} + +func (d *decoder) Close() error { + return d.reader.Close() +} + +type encoder struct { + writer io.Writer + encoder runtime.Encoder + buf *bytes.Buffer +} + +// NewEncoder returns a new streaming encoder. +func NewEncoder(w io.Writer, e runtime.Encoder) Encoder { + return &encoder{ + writer: w, + encoder: e, + buf: &bytes.Buffer{}, + } +} + +// Encode writes the provided object to the nested writer. +func (e *encoder) Encode(obj runtime.Object) error { + if err := e.encoder.Encode(obj, e.buf); err != nil { + return err + } + _, err := e.writer.Write(e.buf.Bytes()) + e.buf.Reset() + return err +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/versioning/versioning.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/versioning/versioning.go new file mode 100644 index 0000000000..d6295daf52 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/serializer/versioning/versioning.go @@ -0,0 +1,275 @@ +/* +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 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, +) runtime.Codec { + return NewCodec(encoder, decoder, runtime.UnsafeObjectConvertor(scheme), scheme, scheme, scheme, encodeVersion, decodeVersion) +} + +// NewCodec takes objects in their internal versions and converts them to external versions before +// serializing them. It assumes the serializer provided to it only deals with external versions. +// This class is also a serializer, but is generally used with a specific version. +func NewCodec( + encoder runtime.Encoder, + decoder runtime.Decoder, + convertor runtime.ObjectConvertor, + creater runtime.ObjectCreater, + copier runtime.ObjectCopier, + typer runtime.ObjectTyper, + encodeVersion []unversioned.GroupVersion, + decodeVersion []unversioned.GroupVersion, +) runtime.Codec { + internal := &codec{ + encoder: encoder, + decoder: decoder, + convertor: convertor, + 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 + } + } + + return internal +} + +type codec struct { + encoder runtime.Encoder + decoder runtime.Decoder + convertor runtime.ObjectConvertor + creater runtime.ObjectCreater + copier runtime.ObjectCopier + typer runtime.ObjectTyper + + encodeVersion map[string]unversioned.GroupVersion + decodeVersion map[string]unversioned.GroupVersion + + preferredEncodeVersion []unversioned.GroupVersion +} + +// Decode attempts a decode of the object, then tries to convert it to the internal version. If into is provided and the decoding is +// successful, the returned runtime.Object will be the value passed as into. Note that this may bypass conversion if you pass an +// into that matches the serialized version. +func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + versioned, isVersioned := into.(*runtime.VersionedObjects) + if isVersioned { + into = versioned.Last() + } + + obj, gvk, err := c.decoder.Decode(data, defaultGVK, into) + if err != nil { + return nil, gvk, err + } + + // if we specify a target, use generic conversion. + if into != nil { + if into == obj { + if isVersioned { + return versioned, gvk, nil + } + return into, gvk, nil + } + if err := c.convertor.Convert(obj, into); err != nil { + return nil, gvk, err + } + if isVersioned { + versioned.Objects = []runtime.Object{obj, into} + return versioned, gvk, nil + } + 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 + } + + if isVersioned { + // create a copy, because ConvertToVersion does not guarantee non-mutation of objects + copied, err := c.copier.Copy(obj) + if err != nil { + copied = obj + } + versioned.Objects = []runtime.Object{copied} + } + + // Convert if needed. + out, err := c.convertor.ConvertToVersion(obj, targetGV) + if err != nil { + return nil, gvk, err + } + if isVersioned { + versioned.Objects = append(versioned.Objects, out) + return versioned, gvk, nil + } + return out, gvk, nil +} + +// 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 { + 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 { + objectKind := obj.GetObjectKind() + old := objectKind.GroupVersionKind() + objectKind.SetGroupVersionKind(gvk) + 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) + if err != nil { + if ok { + 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) + // restore the old GVK, in case conversion returned the same object + objectKind.SetGroupVersionKind(old) + return err +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/swagger_doc_generator.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/swagger_doc_generator.go new file mode 100644 index 0000000000..29722d52e7 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/swagger_doc_generator.go @@ -0,0 +1,262 @@ +/* +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 runtime + +import ( + "bytes" + "fmt" + "go/ast" + "go/doc" + "go/parser" + "go/token" + "io" + "reflect" + "strings" +) + +// Pair of strings. We keed the name of fields and the doc +type Pair struct { + Name, Doc string +} + +// KubeTypes is an array to represent all available types in a parsed file. [0] is for the type itself +type KubeTypes []Pair + +func astFrom(filePath string) *doc.Package { + fset := token.NewFileSet() + m := make(map[string]*ast.File) + + f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments) + if err != nil { + fmt.Println(err) + return nil + } + + m[filePath] = f + apkg, _ := ast.NewPackage(fset, m, nil, nil) + + return doc.New(apkg, "", 0) +} + +func fmtRawDoc(rawDoc string) string { + var buffer bytes.Buffer + delPrevChar := func() { + if buffer.Len() > 0 { + buffer.Truncate(buffer.Len() - 1) // Delete the last " " or "\n" + } + } + + // Ignore all lines after --- + rawDoc = strings.Split(rawDoc, "---")[0] + + for _, line := range strings.Split(rawDoc, "\n") { + line = strings.TrimRight(line, " ") + leading := strings.TrimLeft(line, " ") + switch { + case len(line) == 0: // Keep paragraphs + delPrevChar() + buffer.WriteString("\n\n") + case strings.HasPrefix(leading, "TODO"): // Ignore one line TODOs + case strings.HasPrefix(leading, "+"): // Ignore instructions to go2idl + default: + if strings.HasPrefix(line, " ") || strings.HasPrefix(line, "\t") { + delPrevChar() + line = "\n" + line + "\n" // Replace it with newline. This is useful when we have a line with: "Example:\n\tJSON-someting..." + } else { + line += " " + } + buffer.WriteString(line) + } + } + + postDoc := strings.TrimRight(buffer.String(), "\n") + postDoc = strings.Replace(postDoc, "\\\"", "\"", -1) // replace user's \" to " + postDoc = strings.Replace(postDoc, "\"", "\\\"", -1) // Escape " + postDoc = strings.Replace(postDoc, "\n", "\\n", -1) + postDoc = strings.Replace(postDoc, "\t", "\\t", -1) + + return postDoc +} + +// fieldName returns the name of the field as it should appear in JSON format +// "-" indicates that this field is not part of the JSON representation +func fieldName(field *ast.Field) string { + jsonTag := "" + if field.Tag != nil { + jsonTag = reflect.StructTag(field.Tag.Value[1 : len(field.Tag.Value)-1]).Get("json") // Delete first and last quotation + if strings.Contains(jsonTag, "inline") { + return "-" + } + } + + jsonTag = strings.Split(jsonTag, ",")[0] // This can return "-" + if jsonTag == "" { + if field.Names != nil { + return field.Names[0].Name + } + return field.Type.(*ast.Ident).Name + } + return jsonTag +} + +// A buffer of lines that will be written. +type bufferedLine struct { + line string + indentation int +} + +type buffer struct { + lines []bufferedLine +} + +func newBuffer() *buffer { + return &buffer{ + lines: make([]bufferedLine, 0), + } +} + +func (b *buffer) addLine(line string, indent int) { + b.lines = append(b.lines, bufferedLine{line, indent}) +} + +func (b *buffer) flushLines(w io.Writer) error { + for _, line := range b.lines { + indentation := strings.Repeat("\t", line.indentation) + fullLine := fmt.Sprintf("%s%s", indentation, line.line) + if _, err := io.WriteString(w, fullLine); err != nil { + return err + } + } + return nil +} + +func writeFuncHeader(b *buffer, structName string, indent int) { + s := fmt.Sprintf("var map_%s = map[string]string {\n", structName) + b.addLine(s, indent) +} + +func writeFuncFooter(b *buffer, structName string, indent int) { + b.addLine("}\n", indent) // Closes the map definition + + s := fmt.Sprintf("func (%s) SwaggerDoc() map[string]string {\n", structName) + b.addLine(s, indent) + s = fmt.Sprintf("return map_%s\n", structName) + b.addLine(s, indent+1) + b.addLine("}\n", indent) // Closes the function definition +} + +func writeMapBody(b *buffer, kubeType []Pair, indent int) { + format := "\"%s\": \"%s\",\n" + for _, pair := range kubeType { + s := fmt.Sprintf(format, pair.Name, pair.Doc) + b.addLine(s, indent+2) + } +} + +// ParseDocumentationFrom gets all types' documentation and returns them as an +// array. Each type is again represented as an array (we have to use arrays as we +// need to be sure for the order of the fields). This function returns fields and +// struct definitions that have no documentation as {name, ""}. +func ParseDocumentationFrom(src string) []KubeTypes { + var docForTypes []KubeTypes + + pkg := astFrom(src) + + for _, kubType := range pkg.Types { + if structType, ok := kubType.Decl.Specs[0].(*ast.TypeSpec).Type.(*ast.StructType); ok { + var ks KubeTypes + ks = append(ks, Pair{kubType.Name, fmtRawDoc(kubType.Doc)}) + + for _, field := range structType.Fields.List { + if n := fieldName(field); n != "-" { + fieldDoc := fmtRawDoc(field.Doc.Text()) + ks = append(ks, Pair{n, fieldDoc}) + } + } + docForTypes = append(docForTypes, ks) + } + } + + return docForTypes +} + +// WriteSwaggerDocFunc writes a declaration of a function as a string. This function is used in +// Swagger as a documentation source for structs and theirs fields +func WriteSwaggerDocFunc(kubeTypes []KubeTypes, w io.Writer) error { + for _, kubeType := range kubeTypes { + structName := kubeType[0].Name + kubeType[0].Name = "" + + // Ignore empty documentation + docfulTypes := make(KubeTypes, 0, len(kubeType)) + for _, pair := range kubeType { + if pair.Doc != "" { + docfulTypes = append(docfulTypes, pair) + } + } + + if len(docfulTypes) == 0 { + continue // If no fields and the struct have documentation, skip the function definition + } + + indent := 0 + buffer := newBuffer() + + writeFuncHeader(buffer, structName, indent) + writeMapBody(buffer, docfulTypes, indent) + writeFuncFooter(buffer, structName, indent) + buffer.addLine("\n", 0) + + if err := buffer.flushLines(w); err != nil { + return err + } + } + + return nil +} + +// VerifySwaggerDocsExist writes in a io.Writer a list of structs and fields that +// are missing of documentation. +func VerifySwaggerDocsExist(kubeTypes []KubeTypes, w io.Writer) (int, error) { + missingDocs := 0 + buffer := newBuffer() + + for _, kubeType := range kubeTypes { + structName := kubeType[0].Name + if kubeType[0].Doc == "" { + format := "Missing documentation for the struct itself: %s\n" + s := fmt.Sprintf(format, structName) + buffer.addLine(s, 0) + missingDocs++ + } + kubeType = kubeType[1:] // Skip struct definition + + for _, pair := range kubeType { // Iterate only the fields + if pair.Doc == "" { + format := "In struct: %s, field documentation is missing: %s\n" + s := fmt.Sprintf(format, structName, pair.Name) + buffer.addLine(s, 0) + missingDocs++ + } + } + } + + if err := buffer.flushLines(w); err != nil { + return -1, err + } + return missingDocs, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/types.go new file mode 100644 index 0000000000..0b63056a1a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/types.go @@ -0,0 +1,514 @@ +/* +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 runtime + +import ( + "fmt" + + "github.com/golang/glog" + + "k8s.io/client-go/1.4/pkg/api/meta/metatypes" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/types" +) + +// Note that the types provided in this file are not versioned and are intended to be +// safe to use from within all versions of every API object. + +// TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, +// like this: +// type MyAwesomeAPIObject struct { +// runtime.TypeMeta `json:",inline"` +// ... // other fields +// } +// func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *unversioned.GroupVersionKind) { unversioned.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind +// +// TypeMeta is provided here for convenience. You may use it directly from this package or define +// your own with the same fields. +// +// +k8s:deepcopy-gen=true +// +protobuf=true +type TypeMeta struct { + APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"` + Kind string `json:"kind,omitempty" yaml:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"` +} + +const ( + ContentTypeJSON string = "application/json" +) + +// RawExtension is used to hold extensions in external versions. +// +// To use this, make a field which has RawExtension as its type in your external, versioned +// struct, and Object in your internal struct. You also need to register your +// various plugin types. +// +// // Internal package: +// type MyAPIObject struct { +// runtime.TypeMeta `json:",inline"` +// MyPlugin runtime.Object `json:"myPlugin"` +// } +// type PluginA struct { +// AOption string `json:"aOption"` +// } +// +// // External package: +// type MyAPIObject struct { +// runtime.TypeMeta `json:",inline"` +// MyPlugin runtime.RawExtension `json:"myPlugin"` +// } +// type PluginA struct { +// AOption string `json:"aOption"` +// } +// +// // On the wire, the JSON will look something like this: +// { +// "kind":"MyAPIObject", +// "apiVersion":"v1", +// "myPlugin": { +// "kind":"PluginA", +// "aOption":"foo", +// }, +// } +// +// So what happens? Decode first uses json or yaml to unmarshal the serialized data into +// your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. +// The next step is to copy (using pkg/conversion) into the internal struct. The runtime +// package's DefaultScheme has conversion functions installed which will unpack the +// JSON stored in RawExtension, turning it into the correct object type, and storing it +// in the Object. (TODO: In the case where the object is of an unknown type, a +// runtime.Unknown object will be created and stored.) +// +// +k8s:deepcopy-gen=true +// +protobuf=true +type RawExtension struct { + // Raw is the underlying serialization of this object. + // + // TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. + Raw []byte `protobuf:"bytes,1,opt,name=raw"` + // Object can hold a representation of this extension - useful for working with versioned + // structs. + Object Object `json:"-"` +} + +// Unknown allows api objects with unknown types to be passed-through. This can be used +// to deal with the API objects from a plug-in. Unknown objects still have functioning +// TypeMeta features-- kind, version, etc. +// TODO: Make this object have easy access to field based accessors and settors for +// metadata and field mutatation. +// +// +k8s:deepcopy-gen=true +// +protobuf=true +type Unknown struct { + TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + // Raw will hold the complete serialized object which couldn't be matched + // with a registered type. Most likely, nothing should be done with this + // except for passing it through the system. + Raw []byte `protobuf:"bytes,2,opt,name=raw"` + // ContentEncoding is encoding used to encode 'Raw' data. + // Unspecified means no encoding. + ContentEncoding string `protobuf:"bytes,3,opt,name=contentEncoding"` + // ContentType is serialization method used to serialize 'Raw'. + // Unspecified means ContentTypeJSON. + ContentType string `protobuf:"bytes,4,opt,name=contentType"` +} + +// Unstructured allows objects that do not have Golang structs registered to be manipulated +// generically. This can be used to deal with the API objects from a plug-in. Unstructured +// objects still have functioning TypeMeta features-- kind, version, etc. +// TODO: Make this object have easy access to field based accessors and settors for +// metadata and field mutatation. +type Unstructured struct { + // Object is a JSON compatible map with string, float, int, []interface{}, or map[string]interface{} + // children. + Object map[string]interface{} +} + +func getNestedField(obj map[string]interface{}, fields ...string) interface{} { + var val interface{} = obj + for _, field := range fields { + if _, ok := val.(map[string]interface{}); !ok { + return nil + } + val = val.(map[string]interface{})[field] + } + return val +} + +func getNestedString(obj map[string]interface{}, fields ...string) string { + if str, ok := getNestedField(obj, fields...).(string); ok { + return str + } + return "" +} + +func getNestedSlice(obj map[string]interface{}, fields ...string) []string { + if m, ok := getNestedField(obj, fields...).([]interface{}); ok { + strSlice := make([]string, 0, len(m)) + for _, v := range m { + if str, ok := v.(string); ok { + strSlice = append(strSlice, str) + } + } + return strSlice + } + return nil +} + +func getNestedMap(obj map[string]interface{}, fields ...string) map[string]string { + if m, ok := getNestedField(obj, fields...).(map[string]interface{}); ok { + strMap := make(map[string]string, len(m)) + for k, v := range m { + if str, ok := v.(string); ok { + strMap[k] = str + } + } + return strMap + } + return nil +} + +func setNestedField(obj map[string]interface{}, value interface{}, fields ...string) { + m := obj + if len(fields) > 1 { + for _, field := range fields[0 : len(fields)-1] { + if _, ok := m[field].(map[string]interface{}); !ok { + m[field] = make(map[string]interface{}) + } + m = m[field].(map[string]interface{}) + } + } + m[fields[len(fields)-1]] = value +} + +func setNestedSlice(obj map[string]interface{}, value []string, fields ...string) { + m := make([]interface{}, 0, len(value)) + for _, v := range value { + m = append(m, v) + } + setNestedField(obj, m, fields...) +} + +func setNestedMap(obj map[string]interface{}, value map[string]string, fields ...string) { + m := make(map[string]interface{}, len(value)) + for k, v := range value { + m[k] = v + } + setNestedField(obj, m, fields...) +} + +func (u *Unstructured) setNestedField(value interface{}, fields ...string) { + if u.Object == nil { + u.Object = make(map[string]interface{}) + } + setNestedField(u.Object, value, fields...) +} + +func (u *Unstructured) setNestedSlice(value []string, fields ...string) { + if u.Object == nil { + u.Object = make(map[string]interface{}) + } + setNestedSlice(u.Object, value, fields...) +} + +func (u *Unstructured) setNestedMap(value map[string]string, fields ...string) { + if u.Object == nil { + u.Object = make(map[string]interface{}) + } + setNestedMap(u.Object, value, fields...) +} + +func extractOwnerReference(src interface{}) metatypes.OwnerReference { + v := src.(map[string]interface{}) + controllerPtr, ok := (getNestedField(v, "controller")).(*bool) + if !ok { + controllerPtr = nil + } else { + if controllerPtr != nil { + controller := *controllerPtr + controllerPtr = &controller + } + } + return metatypes.OwnerReference{ + Kind: getNestedString(v, "kind"), + Name: getNestedString(v, "name"), + APIVersion: getNestedString(v, "apiVersion"), + UID: (types.UID)(getNestedString(v, "uid")), + Controller: controllerPtr, + } +} + +func setOwnerReference(src metatypes.OwnerReference) map[string]interface{} { + ret := make(map[string]interface{}) + controllerPtr := src.Controller + if controllerPtr != nil { + controller := *controllerPtr + controllerPtr = &controller + } + setNestedField(ret, src.Kind, "kind") + setNestedField(ret, src.Name, "name") + setNestedField(ret, src.APIVersion, "apiVersion") + setNestedField(ret, string(src.UID), "uid") + setNestedField(ret, controllerPtr, "controller") + return ret +} + +func getOwnerReferences(object map[string]interface{}) ([]map[string]interface{}, error) { + field := getNestedField(object, "metadata", "ownerReferences") + if field == nil { + return nil, fmt.Errorf("cannot find field metadata.ownerReferences in %v", object) + } + ownerReferences, ok := field.([]map[string]interface{}) + if ok { + return ownerReferences, nil + } + // TODO: This is hacky... + interfaces, ok := field.([]interface{}) + if !ok { + return nil, fmt.Errorf("expect metadata.ownerReferences to be a slice in %#v", object) + } + ownerReferences = make([]map[string]interface{}, 0, len(interfaces)) + for i := 0; i < len(interfaces); i++ { + r, ok := interfaces[i].(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("expect element metadata.ownerReferences to be a map[string]interface{} in %#v", object) + } + ownerReferences = append(ownerReferences, r) + } + return ownerReferences, nil +} + +func (u *Unstructured) GetOwnerReferences() []metatypes.OwnerReference { + original, err := getOwnerReferences(u.Object) + if err != nil { + glog.V(6).Info(err) + return nil + } + ret := make([]metatypes.OwnerReference, 0, len(original)) + for i := 0; i < len(original); i++ { + ret = append(ret, extractOwnerReference(original[i])) + } + return ret +} + +func (u *Unstructured) SetOwnerReferences(references []metatypes.OwnerReference) { + var newReferences = make([]map[string]interface{}, 0, len(references)) + for i := 0; i < len(references); i++ { + newReferences = append(newReferences, setOwnerReference(references[i])) + } + u.setNestedField(newReferences, "metadata", "ownerReferences") +} + +func (u *Unstructured) GetAPIVersion() string { + return getNestedString(u.Object, "apiVersion") +} + +func (u *Unstructured) SetAPIVersion(version string) { + u.setNestedField(version, "apiVersion") +} + +func (u *Unstructured) GetKind() string { + return getNestedString(u.Object, "kind") +} + +func (u *Unstructured) SetKind(kind string) { + u.setNestedField(kind, "kind") +} + +func (u *Unstructured) GetNamespace() string { + return getNestedString(u.Object, "metadata", "namespace") +} + +func (u *Unstructured) SetNamespace(namespace string) { + u.setNestedField(namespace, "metadata", "namespace") +} + +func (u *Unstructured) GetName() string { + return getNestedString(u.Object, "metadata", "name") +} + +func (u *Unstructured) SetName(name string) { + u.setNestedField(name, "metadata", "name") +} + +func (u *Unstructured) GetGenerateName() string { + return getNestedString(u.Object, "metadata", "generateName") +} + +func (u *Unstructured) SetGenerateName(name string) { + u.setNestedField(name, "metadata", "generateName") +} + +func (u *Unstructured) GetUID() types.UID { + return types.UID(getNestedString(u.Object, "metadata", "uid")) +} + +func (u *Unstructured) SetUID(uid types.UID) { + u.setNestedField(string(uid), "metadata", "uid") +} + +func (u *Unstructured) GetResourceVersion() string { + return getNestedString(u.Object, "metadata", "resourceVersion") +} + +func (u *Unstructured) SetResourceVersion(version string) { + u.setNestedField(version, "metadata", "resourceVersion") +} + +func (u *Unstructured) GetSelfLink() string { + return getNestedString(u.Object, "metadata", "selfLink") +} + +func (u *Unstructured) SetSelfLink(selfLink string) { + u.setNestedField(selfLink, "metadata", "selfLink") +} + +func (u *Unstructured) GetCreationTimestamp() unversioned.Time { + var timestamp unversioned.Time + timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "creationTimestamp")) + return timestamp +} + +func (u *Unstructured) SetCreationTimestamp(timestamp unversioned.Time) { + ts, _ := timestamp.MarshalQueryParameter() + u.setNestedField(ts, "metadata", "creationTimestamp") +} + +func (u *Unstructured) GetDeletionTimestamp() *unversioned.Time { + var timestamp unversioned.Time + timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "deletionTimestamp")) + if timestamp.IsZero() { + return nil + } + return ×tamp +} + +func (u *Unstructured) SetDeletionTimestamp(timestamp *unversioned.Time) { + ts, _ := timestamp.MarshalQueryParameter() + u.setNestedField(ts, "metadata", "deletionTimestamp") +} + +func (u *Unstructured) GetLabels() map[string]string { + return getNestedMap(u.Object, "metadata", "labels") +} + +func (u *Unstructured) SetLabels(labels map[string]string) { + u.setNestedMap(labels, "metadata", "labels") +} + +func (u *Unstructured) GetAnnotations() map[string]string { + return getNestedMap(u.Object, "metadata", "annotations") +} + +func (u *Unstructured) SetAnnotations(annotations map[string]string) { + u.setNestedMap(annotations, "metadata", "annotations") +} + +func (u *Unstructured) SetGroupVersionKind(gvk unversioned.GroupVersionKind) { + u.SetAPIVersion(gvk.GroupVersion().String()) + u.SetKind(gvk.Kind) +} + +func (u *Unstructured) GroupVersionKind() unversioned.GroupVersionKind { + gv, err := unversioned.ParseGroupVersion(u.GetAPIVersion()) + if err != nil { + return unversioned.GroupVersionKind{} + } + gvk := gv.WithKind(u.GetKind()) + return gvk +} + +func (u *Unstructured) GetFinalizers() []string { + return getNestedSlice(u.Object, "metadata", "finalizers") +} + +func (u *Unstructured) SetFinalizers(finalizers []string) { + u.setNestedSlice(finalizers, "metadata", "finalizers") +} + +// 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. +type UnstructuredList struct { + Object map[string]interface{} + + // Items is a list of unstructured objects. + Items []*Unstructured `json:"items"` +} + +func (u *UnstructuredList) setNestedField(value interface{}, fields ...string) { + if u.Object == nil { + u.Object = make(map[string]interface{}) + } + setNestedField(u.Object, value, fields...) +} + +func (u *UnstructuredList) GetAPIVersion() string { + return getNestedString(u.Object, "apiVersion") +} + +func (u *UnstructuredList) SetAPIVersion(version string) { + u.setNestedField(version, "apiVersion") +} + +func (u *UnstructuredList) GetKind() string { + return getNestedString(u.Object, "kind") +} + +func (u *UnstructuredList) SetKind(kind string) { + u.setNestedField(kind, "kind") +} + +func (u *UnstructuredList) GetResourceVersion() string { + return getNestedString(u.Object, "metadata", "resourceVersion") +} + +func (u *UnstructuredList) SetResourceVersion(version string) { + u.setNestedField(version, "metadata", "resourceVersion") +} + +func (u *UnstructuredList) GetSelfLink() string { + return getNestedString(u.Object, "metadata", "selfLink") +} + +func (u *UnstructuredList) SetSelfLink(selfLink string) { + u.setNestedField(selfLink, "metadata", "selfLink") +} + +func (u *UnstructuredList) SetGroupVersionKind(gvk unversioned.GroupVersionKind) { + u.SetAPIVersion(gvk.GroupVersion().String()) + u.SetKind(gvk.Kind) +} + +func (u *UnstructuredList) GroupVersionKind() unversioned.GroupVersionKind { + gv, err := unversioned.ParseGroupVersion(u.GetAPIVersion()) + if err != nil { + return unversioned.GroupVersionKind{} + } + gvk := gv.WithKind(u.GetKind()) + return gvk +} + +// VersionedObjects is used by Decoders to give callers a way to access all versions +// of an object during the decoding process. +type VersionedObjects struct { + // Objects is the set of objects retrieved during decoding, in order of conversion. + // The 0 index is the object as serialized on the wire. If conversion has occurred, + // other objects may be present. The right most object is the same as would be returned + // by a normal Decode call. + Objects []Object +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/types_proto.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/types_proto.go new file mode 100644 index 0000000000..ead96ee055 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/types_proto.go @@ -0,0 +1,69 @@ +/* +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 runtime + +import ( + "fmt" +) + +type ProtobufMarshaller interface { + MarshalTo(data []byte) (int, error) +} + +// NestedMarshalTo allows a caller to avoid extra allocations during serialization of an Unknown +// that will contain an object that implements ProtobufMarshaller. +func (m *Unknown) NestedMarshalTo(data []byte, b ProtobufMarshaller, size uint64) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.TypeMeta.Size())) + n1, err := m.TypeMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + + if b != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, size) + n2, err := b.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + if uint64(n2) != size { + // programmer error: the Size() method for protobuf does not match the results of MarshalTo, which means the proto + // struct returned would be wrong. + return 0, fmt.Errorf("the Size() value of %T was %d, but NestedMarshalTo wrote %d bytes to data", b, size, n2) + } + i += n2 + } + + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContentEncoding))) + i += copy(data[i:], m.ContentEncoding) + + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ContentType))) + i += copy(data[i:], m.ContentType) + return i, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/unstructured.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/unstructured.go new file mode 100644 index 0000000000..9c9018a6df --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/unstructured.go @@ -0,0 +1,200 @@ +/* +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 runtime + +import ( + gojson "encoding/json" + "errors" + "fmt" + "io" + "strings" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/util/json" +) + +// UnstructuredJSONScheme is capable of converting JSON data into the Unstructured +// type, which can be used for generic access to objects without a predefined scheme. +// TODO: move into serializer/json. +var UnstructuredJSONScheme Codec = unstructuredJSONScheme{} + +type unstructuredJSONScheme struct{} + +func (s unstructuredJSONScheme) Decode(data []byte, _ *unversioned.GroupVersionKind, obj Object) (Object, *unversioned.GroupVersionKind, error) { + var err error + if obj != nil { + err = s.decodeInto(data, obj) + } else { + obj, err = s.decode(data) + } + + if err != nil { + return nil, nil, err + } + + gvk := obj.GetObjectKind().GroupVersionKind() + if len(gvk.Kind) == 0 { + return nil, &gvk, NewMissingKindErr(string(data)) + } + + return obj, &gvk, nil +} + +func (unstructuredJSONScheme) Encode(obj Object, w io.Writer) error { + switch t := obj.(type) { + case *Unstructured: + return json.NewEncoder(w).Encode(t.Object) + case *UnstructuredList: + items := make([]map[string]interface{}, 0, len(t.Items)) + for _, i := range t.Items { + items = append(items, i.Object) + } + t.Object["items"] = items + defer func() { delete(t.Object, "items") }() + return json.NewEncoder(w).Encode(t.Object) + case *Unknown: + // TODO: Unstructured needs to deal with ContentType. + _, err := w.Write(t.Raw) + return err + default: + return json.NewEncoder(w).Encode(t) + } +} + +func (s unstructuredJSONScheme) decode(data []byte) (Object, error) { + type detector struct { + Items gojson.RawMessage + } + var det detector + if err := json.Unmarshal(data, &det); err != nil { + return nil, err + } + + if det.Items != nil { + list := &UnstructuredList{} + err := s.decodeToList(data, list) + return list, err + } + + // No Items field, so it wasn't a list. + unstruct := &Unstructured{} + err := s.decodeToUnstructured(data, unstruct) + return unstruct, err +} + +func (s unstructuredJSONScheme) decodeInto(data []byte, obj Object) error { + switch x := obj.(type) { + case *Unstructured: + return s.decodeToUnstructured(data, x) + case *UnstructuredList: + return s.decodeToList(data, x) + case *VersionedObjects: + u := new(Unstructured) + err := s.decodeToUnstructured(data, u) + if err == nil { + x.Objects = []Object{u} + } + return err + default: + return json.Unmarshal(data, x) + } +} + +func (unstructuredJSONScheme) decodeToUnstructured(data []byte, unstruct *Unstructured) error { + m := make(map[string]interface{}) + if err := json.Unmarshal(data, &m); err != nil { + return err + } + + unstruct.Object = m + + return nil +} + +func (s unstructuredJSONScheme) decodeToList(data []byte, list *UnstructuredList) error { + type decodeList struct { + Items []gojson.RawMessage + } + + var dList decodeList + if err := json.Unmarshal(data, &dList); err != nil { + return err + } + + if err := json.Unmarshal(data, &list.Object); err != nil { + return err + } + + // For typed lists, e.g., a PodList, API server doesn't set each item's + // APIVersion and Kind. We need to set it. + listAPIVersion := list.GetAPIVersion() + listKind := list.GetKind() + itemKind := strings.TrimSuffix(listKind, "List") + + delete(list.Object, "items") + list.Items = nil + for _, i := range dList.Items { + unstruct := &Unstructured{} + if err := s.decodeToUnstructured([]byte(i), unstruct); err != nil { + return err + } + // This is hacky. Set the item's Kind and APIVersion to those inferred + // from the List. + if len(unstruct.GetKind()) == 0 && len(unstruct.GetAPIVersion()) == 0 { + unstruct.SetKind(itemKind) + unstruct.SetAPIVersion(listAPIVersion) + } + list.Items = append(list.Items, unstruct) + } + return nil +} + +// UnstructuredObjectConverter is an ObjectConverter for use with +// Unstructured objects. Since it has no schema or type information, +// it will only succeed for no-op conversions. This is provided as a +// sane implementation for APIs that require an object converter. +type UnstructuredObjectConverter struct{} + +func (UnstructuredObjectConverter) Convert(in, out interface{}) error { + unstructIn, ok := in.(*Unstructured) + if !ok { + return fmt.Errorf("input type %T in not valid for unstructured conversion", in) + } + + unstructOut, ok := out.(*Unstructured) + if !ok { + return fmt.Errorf("output type %T in not valid for unstructured conversion", out) + } + + // maybe deep copy the map? It is documented in the + // ObjectConverter interface that this function is not + // guaranteeed to not mutate the input. Or maybe set the input + // object to nil. + unstructOut.Object = unstructIn.Object + 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") + } + return in, nil +} + +func (UnstructuredObjectConverter) ConvertFieldLabel(version, kind, label, value string) (string, string, error) { + return "", "", errors.New("unstructured cannot convert field labels") +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/zz_generated.deepcopy.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/zz_generated.deepcopy.go new file mode 100644 index 0000000000..d0c4e83bcd --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/runtime/zz_generated.deepcopy.go @@ -0,0 +1,75 @@ +// +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 runtime + +import ( + conversion "k8s.io/client-go/1.4/pkg/conversion" +) + +func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*RawExtension) + out := out.(*RawExtension) + if in.Raw != nil { + in, out := &in.Raw, &out.Raw + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Raw = nil + } + if in.Object == nil { + out.Object = nil + } else if newVal, err := c.DeepCopy(&in.Object); err != nil { + return err + } else { + out.Object = *newVal.(*Object) + } + return nil + } +} + +func DeepCopy_runtime_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*TypeMeta) + out := out.(*TypeMeta) + out.APIVersion = in.APIVersion + out.Kind = in.Kind + return nil + } +} + +func DeepCopy_runtime_Unknown(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Unknown) + out := out.(*Unknown) + out.TypeMeta = in.TypeMeta + if in.Raw != nil { + in, out := &in.Raw, &out.Raw + *out = make([]byte, len(*in)) + copy(*out, *in) + } else { + out.Raw = nil + } + out.ContentEncoding = in.ContentEncoding + out.ContentType = in.ContentType + return nil + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect/deep_equal.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect/deep_equal.go new file mode 100644 index 0000000000..9e45dbe1d2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect/deep_equal.go @@ -0,0 +1,388 @@ +// Copyright 2009 The Go 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 reflect is a fork of go's standard library reflection package, which +// allows for deep equal with equality functions defined. +package reflect + +import ( + "fmt" + "reflect" + "strings" +) + +// Equalities is a map from type to a function comparing two values of +// that type. +type Equalities map[reflect.Type]reflect.Value + +// For convenience, panics on errrors +func EqualitiesOrDie(funcs ...interface{}) Equalities { + e := Equalities{} + if err := e.AddFuncs(funcs...); err != nil { + panic(err) + } + return e +} + +// AddFuncs is a shortcut for multiple calls to AddFunc. +func (e Equalities) AddFuncs(funcs ...interface{}) error { + for _, f := range funcs { + if err := e.AddFunc(f); err != nil { + return err + } + } + return nil +} + +// AddFunc uses func as an equality function: it must take +// two parameters of the same type, and return a boolean. +func (e Equalities) AddFunc(eqFunc interface{}) error { + fv := reflect.ValueOf(eqFunc) + ft := fv.Type() + if ft.Kind() != reflect.Func { + return fmt.Errorf("expected func, got: %v", ft) + } + if ft.NumIn() != 2 { + return fmt.Errorf("expected three 'in' params, got: %v", ft) + } + if ft.NumOut() != 1 { + return fmt.Errorf("expected one 'out' param, got: %v", ft) + } + if ft.In(0) != ft.In(1) { + return fmt.Errorf("expected arg 1 and 2 to have same type, but got %v", ft) + } + var forReturnType bool + boolType := reflect.TypeOf(forReturnType) + if ft.Out(0) != boolType { + return fmt.Errorf("expected bool return, got: %v", ft) + } + e[ft.In(0)] = fv + return nil +} + +// Below here is forked from go's reflect/deepequal.go + +// During deepValueEqual, must keep track of checks that are +// in progress. The comparison algorithm assumes that all +// checks in progress are true when it reencounters them. +// Visited comparisons are stored in a map indexed by visit. +type visit struct { + a1 uintptr + a2 uintptr + typ reflect.Type +} + +// unexportedTypePanic is thrown when you use this DeepEqual on something that has an +// unexported type. It indicates a programmer error, so should not occur at runtime, +// which is why it's not public and thus impossible to catch. +type unexportedTypePanic []reflect.Type + +func (u unexportedTypePanic) Error() string { return u.String() } +func (u unexportedTypePanic) String() string { + strs := make([]string, len(u)) + for i, t := range u { + strs[i] = fmt.Sprintf("%v", t) + } + return "an unexported field was encountered, nested like this: " + strings.Join(strs, " -> ") +} + +func makeUsefulPanic(v reflect.Value) { + if x := recover(); x != nil { + if u, ok := x.(unexportedTypePanic); ok { + u = append(unexportedTypePanic{v.Type()}, u...) + x = u + } + panic(x) + } +} + +// Tests for deep equality using reflected types. The map argument tracks +// comparisons that have already been seen, which allows short circuiting on +// recursive types. +func (e Equalities) deepValueEqual(v1, v2 reflect.Value, visited map[visit]bool, depth int) bool { + defer makeUsefulPanic(v1) + + if !v1.IsValid() || !v2.IsValid() { + return v1.IsValid() == v2.IsValid() + } + if v1.Type() != v2.Type() { + return false + } + if fv, ok := e[v1.Type()]; ok { + return fv.Call([]reflect.Value{v1, v2})[0].Bool() + } + + hard := func(k reflect.Kind) bool { + switch k { + case reflect.Array, reflect.Map, reflect.Slice, reflect.Struct: + return true + } + return false + } + + if v1.CanAddr() && v2.CanAddr() && hard(v1.Kind()) { + addr1 := v1.UnsafeAddr() + addr2 := v2.UnsafeAddr() + if addr1 > addr2 { + // Canonicalize order to reduce number of entries in visited. + addr1, addr2 = addr2, addr1 + } + + // Short circuit if references are identical ... + if addr1 == addr2 { + return true + } + + // ... or already seen + typ := v1.Type() + v := visit{addr1, addr2, typ} + if visited[v] { + return true + } + + // Remember for later. + visited[v] = true + } + + switch v1.Kind() { + case reflect.Array: + // We don't need to check length here because length is part of + // an array's type, which has already been filtered for. + for i := 0; i < v1.Len(); i++ { + if !e.deepValueEqual(v1.Index(i), v2.Index(i), visited, depth+1) { + return false + } + } + return true + case reflect.Slice: + if (v1.IsNil() || v1.Len() == 0) != (v2.IsNil() || v2.Len() == 0) { + return false + } + if v1.IsNil() || v1.Len() == 0 { + return true + } + if v1.Len() != v2.Len() { + return false + } + if v1.Pointer() == v2.Pointer() { + return true + } + for i := 0; i < v1.Len(); i++ { + if !e.deepValueEqual(v1.Index(i), v2.Index(i), visited, depth+1) { + return false + } + } + return true + case reflect.Interface: + if v1.IsNil() || v2.IsNil() { + return v1.IsNil() == v2.IsNil() + } + return e.deepValueEqual(v1.Elem(), v2.Elem(), visited, depth+1) + case reflect.Ptr: + return e.deepValueEqual(v1.Elem(), v2.Elem(), visited, depth+1) + case reflect.Struct: + for i, n := 0, v1.NumField(); i < n; i++ { + if !e.deepValueEqual(v1.Field(i), v2.Field(i), visited, depth+1) { + return false + } + } + return true + case reflect.Map: + if (v1.IsNil() || v1.Len() == 0) != (v2.IsNil() || v2.Len() == 0) { + return false + } + if v1.IsNil() || v1.Len() == 0 { + return true + } + if v1.Len() != v2.Len() { + return false + } + if v1.Pointer() == v2.Pointer() { + return true + } + for _, k := range v1.MapKeys() { + if !e.deepValueEqual(v1.MapIndex(k), v2.MapIndex(k), visited, depth+1) { + return false + } + } + return true + case reflect.Func: + if v1.IsNil() && v2.IsNil() { + return true + } + // Can't do better than this: + return false + default: + // Normal equality suffices + if !v1.CanInterface() || !v2.CanInterface() { + panic(unexportedTypePanic{}) + } + return v1.Interface() == v2.Interface() + } +} + +// DeepEqual is like reflect.DeepEqual, but focused on semantic equality +// instead of memory equality. +// +// It will use e's equality functions if it finds types that match. +// +// An empty slice *is* equal to a nil slice for our purposes; same for maps. +// +// Unexported field members cannot be compared and will cause an imformative panic; you must add an Equality +// function for these types. +func (e Equalities) DeepEqual(a1, a2 interface{}) bool { + if a1 == nil || a2 == nil { + return a1 == a2 + } + v1 := reflect.ValueOf(a1) + v2 := reflect.ValueOf(a2) + if v1.Type() != v2.Type() { + return false + } + return e.deepValueEqual(v1, v2, make(map[visit]bool), 0) +} + +func (e Equalities) deepValueDerive(v1, v2 reflect.Value, visited map[visit]bool, depth int) bool { + defer makeUsefulPanic(v1) + + if !v1.IsValid() || !v2.IsValid() { + return v1.IsValid() == v2.IsValid() + } + if v1.Type() != v2.Type() { + return false + } + if fv, ok := e[v1.Type()]; ok { + return fv.Call([]reflect.Value{v1, v2})[0].Bool() + } + + hard := func(k reflect.Kind) bool { + switch k { + case reflect.Array, reflect.Map, reflect.Slice, reflect.Struct: + return true + } + return false + } + + if v1.CanAddr() && v2.CanAddr() && hard(v1.Kind()) { + addr1 := v1.UnsafeAddr() + addr2 := v2.UnsafeAddr() + if addr1 > addr2 { + // Canonicalize order to reduce number of entries in visited. + addr1, addr2 = addr2, addr1 + } + + // Short circuit if references are identical ... + if addr1 == addr2 { + return true + } + + // ... or already seen + typ := v1.Type() + v := visit{addr1, addr2, typ} + if visited[v] { + return true + } + + // Remember for later. + visited[v] = true + } + + switch v1.Kind() { + case reflect.Array: + // We don't need to check length here because length is part of + // an array's type, which has already been filtered for. + for i := 0; i < v1.Len(); i++ { + if !e.deepValueDerive(v1.Index(i), v2.Index(i), visited, depth+1) { + return false + } + } + return true + case reflect.Slice: + if v1.IsNil() || v1.Len() == 0 { + return true + } + if v1.Len() > v2.Len() { + return false + } + if v1.Pointer() == v2.Pointer() { + return true + } + for i := 0; i < v1.Len(); i++ { + if !e.deepValueDerive(v1.Index(i), v2.Index(i), visited, depth+1) { + return false + } + } + return true + case reflect.String: + if v1.Len() == 0 { + return true + } + if v1.Len() > v2.Len() { + return false + } + return v1.String() == v2.String() + case reflect.Interface: + if v1.IsNil() { + return true + } + return e.deepValueDerive(v1.Elem(), v2.Elem(), visited, depth+1) + case reflect.Ptr: + if v1.IsNil() { + return true + } + return e.deepValueDerive(v1.Elem(), v2.Elem(), visited, depth+1) + case reflect.Struct: + for i, n := 0, v1.NumField(); i < n; i++ { + if !e.deepValueDerive(v1.Field(i), v2.Field(i), visited, depth+1) { + return false + } + } + return true + case reflect.Map: + if v1.IsNil() || v1.Len() == 0 { + return true + } + if v1.Len() > v2.Len() { + return false + } + if v1.Pointer() == v2.Pointer() { + return true + } + for _, k := range v1.MapKeys() { + if !e.deepValueDerive(v1.MapIndex(k), v2.MapIndex(k), visited, depth+1) { + return false + } + } + return true + case reflect.Func: + if v1.IsNil() && v2.IsNil() { + return true + } + // Can't do better than this: + return false + default: + // Normal equality suffices + if !v1.CanInterface() || !v2.CanInterface() { + panic(unexportedTypePanic{}) + } + return v1.Interface() == v2.Interface() + } +} + +// DeepDerivative is similar to DeepEqual except that unset fields in a1 are +// ignored (not compared). This allows us to focus on the fields that matter to +// the semantic comparison. +// +// The unset fields include a nil pointer and an empty string. +func (e Equalities) DeepDerivative(a1, a2 interface{}) bool { + if a1 == nil { + return true + } + v1 := reflect.ValueOf(a1) + v2 := reflect.ValueOf(a2) + if v1.Type() != v2.Type() { + return false + } + return e.deepValueDerive(v1, v2, make(map[visit]bool), 0) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect/type.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect/type.go new file mode 100644 index 0000000000..67957ee33e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/third_party/forked/golang/reflect/type.go @@ -0,0 +1,91 @@ +//This package is copied from Go library reflect/type.go. +//The struct tag library provides no way to extract the list of struct tags, only +//a specific tag +package reflect + +import ( + "fmt" + + "strconv" + "strings" +) + +type StructTag struct { + Name string + Value string +} + +func (t StructTag) String() string { + return fmt.Sprintf("%s:%q", t.Name, t.Value) +} + +type StructTags []StructTag + +func (tags StructTags) String() string { + s := make([]string, 0, len(tags)) + for _, tag := range tags { + s = append(s, tag.String()) + } + return "`" + strings.Join(s, " ") + "`" +} + +func (tags StructTags) Has(name string) bool { + for i := range tags { + if tags[i].Name == name { + return true + } + } + return false +} + +// ParseStructTags returns the full set of fields in a struct tag in the order they appear in +// the struct tag. +func ParseStructTags(tag string) (StructTags, error) { + tags := StructTags{} + for tag != "" { + // Skip leading space. + i := 0 + for i < len(tag) && tag[i] == ' ' { + i++ + } + tag = tag[i:] + if tag == "" { + break + } + + // Scan to colon. A space, a quote or a control character is a syntax error. + // Strictly speaking, control chars include the range [0x7f, 0x9f], not just + // [0x00, 0x1f], but in practice, we ignore the multi-byte control characters + // as it is simpler to inspect the tag's bytes than the tag's runes. + i = 0 + for i < len(tag) && tag[i] > ' ' && tag[i] != ':' && tag[i] != '"' && tag[i] != 0x7f { + i++ + } + if i == 0 || i+1 >= len(tag) || tag[i] != ':' || tag[i+1] != '"' { + break + } + name := string(tag[:i]) + tag = tag[i+1:] + + // Scan quoted string to find value. + i = 1 + for i < len(tag) && tag[i] != '"' { + if tag[i] == '\\' { + i++ + } + i++ + } + if i >= len(tag) { + break + } + qvalue := string(tag[:i+1]) + tag = tag[i+1:] + + value, err := strconv.Unquote(qvalue) + if err != nil { + return nil, err + } + tags = append(tags, StructTag{Name: name, Value: value}) + } + return tags, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/doc.go new file mode 100644 index 0000000000..783cbcdc8d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/doc.go @@ -0,0 +1,18 @@ +/* +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 types implements various generic types used throughout kubernetes. +package types diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/namespacedname.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/namespacedname.go new file mode 100644 index 0000000000..70a9ac3e24 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/namespacedname.go @@ -0,0 +1,35 @@ +/* +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 types + +// 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 +// do not get conflated in code. For most use cases, namespace and name +// will already have been format validated at the API entry point, so we +// don't do that here. Where that's not the case (e.g. in testing), +// consider using NamespacedNameOrDie() in testing.go in this package. + +type NamespacedName struct { + Namespace string + Name string +} + +// String returns the general purpose string representation +func (n NamespacedName) String() string { + return n.Namespace + "/" + n.Name +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/uid.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/uid.go new file mode 100644 index 0000000000..869339222e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/uid.go @@ -0,0 +1,22 @@ +/* +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 types + +// UID is a type that holds unique ID values, including UUIDs. Because we +// don't ONLY use UUIDs, this is an alias to string. Being a type captures +// intent and helps make sure that UIDs and names do not get conflated. +type UID string diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/unix_user_id.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/unix_user_id.go new file mode 100644 index 0000000000..dc770c11e2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/types/unix_user_id.go @@ -0,0 +1,23 @@ +/* +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 types + +// int64 is used as a safe bet against wrap-around (uid's are general +// int32) and to support uid_t -1, and -2. + +type UnixUserID int64 +type UnixGroupID int64 diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/clock/clock.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/clock/clock.go new file mode 100644 index 0000000000..2ea1b53c1a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/clock/clock.go @@ -0,0 +1,218 @@ +/* +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 clock + +import ( + "sync" + "time" +) + +// Clock allows for injecting fake or real clocks into code that +// needs to do arbitrary things based on time. +type Clock interface { + Now() time.Time + Since(time.Time) time.Duration + After(d time.Duration) <-chan time.Time + Sleep(d time.Duration) + Tick(d time.Duration) <-chan time.Time +} + +var ( + _ = Clock(RealClock{}) + _ = Clock(&FakeClock{}) + _ = Clock(&IntervalClock{}) +) + +// RealClock really calls time.Now() +type RealClock struct{} + +// Now returns the current time. +func (RealClock) Now() time.Time { + return time.Now() +} + +// Since returns time since the specified timestamp. +func (RealClock) Since(ts time.Time) time.Duration { + return time.Since(ts) +} + +// Same as time.After(d). +func (RealClock) After(d time.Duration) <-chan time.Time { + return time.After(d) +} + +func (RealClock) Tick(d time.Duration) <-chan time.Time { + return time.Tick(d) +} + +func (RealClock) Sleep(d time.Duration) { + time.Sleep(d) +} + +// FakeClock implements Clock, but returns an arbitrary time. +type FakeClock struct { + lock sync.RWMutex + time time.Time + + // waiters are waiting for the fake time to pass their specified time + waiters []fakeClockWaiter +} + +type fakeClockWaiter struct { + targetTime time.Time + stepInterval time.Duration + skipIfBlocked bool + destChan chan<- time.Time +} + +func NewFakeClock(t time.Time) *FakeClock { + return &FakeClock{ + time: t, + } +} + +// Now returns f's time. +func (f *FakeClock) Now() time.Time { + f.lock.RLock() + defer f.lock.RUnlock() + return f.time +} + +// Since returns time since the time in f. +func (f *FakeClock) Since(ts time.Time) time.Duration { + f.lock.RLock() + defer f.lock.RUnlock() + return f.time.Sub(ts) +} + +// Fake version of time.After(d). +func (f *FakeClock) After(d time.Duration) <-chan time.Time { + f.lock.Lock() + defer f.lock.Unlock() + stopTime := f.time.Add(d) + ch := make(chan time.Time, 1) // Don't block! + f.waiters = append(f.waiters, fakeClockWaiter{ + targetTime: stopTime, + destChan: ch, + }) + return ch +} + +func (f *FakeClock) Tick(d time.Duration) <-chan time.Time { + f.lock.Lock() + defer f.lock.Unlock() + tickTime := f.time.Add(d) + ch := make(chan time.Time, 1) // hold one tick + f.waiters = append(f.waiters, fakeClockWaiter{ + targetTime: tickTime, + stepInterval: d, + skipIfBlocked: true, + destChan: ch, + }) + + return ch +} + +// Move clock by Duration, notify anyone that's called After or Tick +func (f *FakeClock) Step(d time.Duration) { + f.lock.Lock() + defer f.lock.Unlock() + f.setTimeLocked(f.time.Add(d)) +} + +// Sets the time. +func (f *FakeClock) SetTime(t time.Time) { + f.lock.Lock() + defer f.lock.Unlock() + f.setTimeLocked(t) +} + +// Actually changes the time and checks any waiters. f must be write-locked. +func (f *FakeClock) setTimeLocked(t time.Time) { + f.time = t + newWaiters := make([]fakeClockWaiter, 0, len(f.waiters)) + for i := range f.waiters { + w := &f.waiters[i] + if !w.targetTime.After(t) { + + if w.skipIfBlocked { + select { + case w.destChan <- t: + default: + } + } else { + w.destChan <- t + } + + if w.stepInterval > 0 { + for !w.targetTime.After(t) { + w.targetTime = w.targetTime.Add(w.stepInterval) + } + newWaiters = append(newWaiters, *w) + } + + } else { + newWaiters = append(newWaiters, f.waiters[i]) + } + } + f.waiters = newWaiters +} + +// Returns true if After has been called on f but not yet satisfied (so you can +// write race-free tests). +func (f *FakeClock) HasWaiters() bool { + f.lock.RLock() + defer f.lock.RUnlock() + return len(f.waiters) > 0 +} + +func (f *FakeClock) Sleep(d time.Duration) { + f.Step(d) +} + +// IntervalClock implements Clock, but each invocation of Now steps the clock forward the specified duration +type IntervalClock struct { + Time time.Time + Duration time.Duration +} + +// Now returns i's time. +func (i *IntervalClock) Now() time.Time { + i.Time = i.Time.Add(i.Duration) + return i.Time +} + +// Since returns time since the time in i. +func (i *IntervalClock) Since(ts time.Time) time.Duration { + return i.Time.Sub(ts) +} + +// Unimplemented, will panic. +// TODO: make interval clock use FakeClock so this can be implemented. +func (*IntervalClock) After(d time.Duration) <-chan time.Time { + panic("IntervalClock doesn't implement After") +} + +// Unimplemented, will panic. +// TODO: make interval clock use FakeClock so this can be implemented. +func (*IntervalClock) Tick(d time.Duration) <-chan time.Time { + panic("IntervalClock doesn't implement Tick") +} + +func (*IntervalClock) Sleep(d time.Duration) { + panic("IntervalClock doesn't implement Sleep") +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/crypto/crypto.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/crypto/crypto.go new file mode 100644 index 0000000000..b573c8a594 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/crypto/crypto.go @@ -0,0 +1,190 @@ +/* +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 crypto + +import ( + "bytes" + "crypto/rand" + "crypto/rsa" + "crypto/x509" + "crypto/x509/pkix" + "encoding/pem" + "errors" + "fmt" + "io/ioutil" + "math/big" + "net" + "os" + "path/filepath" + "time" +) + +// ShouldGenSelfSignedCerts returns false if the certificate or key files already exists, +// otherwise returns true. +func ShouldGenSelfSignedCerts(certPath, keyPath string) bool { + if canReadFile(certPath) || canReadFile(keyPath) { + return false + } + + return true +} + +// If the file represented by path exists and +// readable, returns true otherwise returns false. +func canReadFile(path string) bool { + f, err := os.Open(path) + if err != nil { + return false + } + + defer f.Close() + + return true +} + +// GenerateSelfSignedCert creates a self-signed certificate and key for the given host. +// Host may be an IP or a DNS name +// You may also specify additional subject alt names (either ip or dns names) for the certificate +// The certificate will be created with file mode 0644. The key will be created with file mode 0600. +// If the certificate or key files already exist, they will be overwritten. +// Any parent directories of the certPath or keyPath will be created as needed with file mode 0755. +func GenerateSelfSignedCert(host, certPath, keyPath string, alternateIPs []net.IP, alternateDNS []string) error { + priv, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + return err + } + + template := x509.Certificate{ + SerialNumber: big.NewInt(1), + Subject: pkix.Name{ + CommonName: fmt.Sprintf("%s@%d", host, time.Now().Unix()), + }, + NotBefore: time.Now(), + NotAfter: time.Now().Add(time.Hour * 24 * 365), + + KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, + ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, + BasicConstraintsValid: true, + IsCA: true, + } + + if ip := net.ParseIP(host); ip != nil { + template.IPAddresses = append(template.IPAddresses, ip) + } else { + template.DNSNames = append(template.DNSNames, host) + } + + template.IPAddresses = append(template.IPAddresses, alternateIPs...) + template.DNSNames = append(template.DNSNames, alternateDNS...) + + derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv) + if err != nil { + return err + } + + // Generate cert + certBuffer := bytes.Buffer{} + if err := pem.Encode(&certBuffer, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes}); err != nil { + return err + } + + // Generate key + keyBuffer := bytes.Buffer{} + if err := pem.Encode(&keyBuffer, &pem.Block{Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(priv)}); err != nil { + return err + } + + // 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 { + 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 { + 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) { + certs, err := certificatesFromFile(filename) + if err != nil { + return nil, err + } + pool := x509.NewCertPool() + for _, cert := range certs { + pool.AddCert(cert) + } + return pool, nil +} + +// certificatesFromFile returns the x509.Certificates contained 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 certificatesFromFile(file string) ([]*x509.Certificate, error) { + if len(file) == 0 { + return nil, errors.New("error reading certificates from an empty filename") + } + pemBlock, err := ioutil.ReadFile(file) + if err != nil { + return nil, err + } + certs, err := CertsFromPEM(pemBlock) + if err != nil { + return nil, fmt.Errorf("error reading %s: %s", file, err) + } + return certs, nil +} + +// CertsFromPEM returns the x509.Certificates contained in the given PEM-encoded byte array +// Returns an error if a certificate could not be parsed, or if the data does not contain any certificates +func CertsFromPEM(pemCerts []byte) ([]*x509.Certificate, error) { + ok := false + certs := []*x509.Certificate{} + for len(pemCerts) > 0 { + var block *pem.Block + block, pemCerts = pem.Decode(pemCerts) + if block == nil { + break + } + // Only use PEM "CERTIFICATE" blocks without extra headers + if block.Type != "CERTIFICATE" || len(block.Headers) != 0 { + continue + } + + cert, err := x509.ParseCertificate(block.Bytes) + if err != nil { + return certs, err + } + + certs = append(certs, cert) + ok = true + } + + if !ok { + return certs, errors.New("could not read any certificates") + } + return certs, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/doc.go new file mode 100644 index 0000000000..1747db5506 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/doc.go @@ -0,0 +1,20 @@ +/* +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 util implements various utility functions used in both testing and implementation +// of Kubernetes. Package util may not depend on any other package in the Kubernetes +// package tree. +package util diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors/doc.go new file mode 100644 index 0000000000..b3b39bc388 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors/doc.go @@ -0,0 +1,18 @@ +/* +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 errors implements various utility functions and types around errors. +package errors diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors/errors.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors/errors.go new file mode 100644 index 0000000000..0445c142be --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/errors/errors.go @@ -0,0 +1,156 @@ +/* +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 errors + +import ( + "errors" + "fmt" +) + +// Aggregate represents an object that contains multiple errors, but does not +// necessarily have singular semantic meaning. +type Aggregate interface { + error + Errors() []error +} + +// NewAggregate converts a slice of errors into an Aggregate interface, which +// is itself an implementation of the error interface. If the slice is empty, +// this returns nil. +func NewAggregate(errlist []error) Aggregate { + if len(errlist) == 0 { + return nil + } + return aggregate(errlist) +} + +// This helper implements the error and Errors interfaces. Keeping it private +// prevents people from making an aggregate of 0 errors, which is not +// an error, but does satisfy the error interface. +type aggregate []error + +// Error is part of the error interface. +func (agg aggregate) Error() string { + if len(agg) == 0 { + // This should never happen, really. + return "" + } + if len(agg) == 1 { + return agg[0].Error() + } + result := fmt.Sprintf("[%s", agg[0].Error()) + for i := 1; i < len(agg); i++ { + result += fmt.Sprintf(", %s", agg[i].Error()) + } + result += "]" + return result +} + +// Errors is part of the Aggregate interface. +func (agg aggregate) Errors() []error { + return []error(agg) +} + +// Matcher is used to match errors. Returns true if the error matches. +type Matcher func(error) bool + +// FilterOut removes all errors that match any of the matchers from the input +// error. If the input is a singular error, only that error is tested. If the +// input implements the Aggregate interface, the list of errors will be +// processed recursively. +// +// This can be used, for example, to remove known-OK errors (such as io.EOF or +// os.PathNotFound) from a list of errors. +func FilterOut(err error, fns ...Matcher) error { + if err == nil { + return nil + } + if agg, ok := err.(Aggregate); ok { + return NewAggregate(filterErrors(agg.Errors(), fns...)) + } + if !matchesError(err, fns...) { + return err + } + return nil +} + +// matchesError returns true if any Matcher returns true +func matchesError(err error, fns ...Matcher) bool { + for _, fn := range fns { + if fn(err) { + return true + } + } + return false +} + +// filterErrors returns any errors (or nested errors, if the list contains +// nested Errors) for which all fns return false. If no errors +// remain a nil list is returned. The resulting silec will have all +// nested slices flattened as a side effect. +func filterErrors(list []error, fns ...Matcher) []error { + result := []error{} + for _, err := range list { + r := FilterOut(err, fns...) + if r != nil { + result = append(result, r) + } + } + return result +} + +// Flatten takes an Aggregate, which may hold other Aggregates in arbitrary +// nesting, and flattens them all into a single Aggregate, recursively. +func Flatten(agg Aggregate) Aggregate { + result := []error{} + if agg == nil { + return nil + } + for _, err := range agg.Errors() { + if a, ok := err.(Aggregate); ok { + r := Flatten(a) + if r != nil { + result = append(result, r.Errors()...) + } + } else { + if err != nil { + result = append(result, err) + } + } + } + return NewAggregate(result) +} + +// AggregateGoroutines runs the provided functions in parallel, stuffing all +// non-nil errors into the returned Aggregate. +// Returns nil if all the functions complete successfully. +func AggregateGoroutines(funcs ...func() error) Aggregate { + errChan := make(chan error, len(funcs)) + for _, f := range funcs { + go func(f func() error) { errChan <- f() }(f) + } + errs := make([]error, 0) + for i := 0; i < cap(errChan); i++ { + if err := <-errChan; err != nil { + errs = append(errs, err) + } + } + return NewAggregate(errs) +} + +// ErrPreconditionViolated is returned when the precondition is violated +var ErrPreconditionViolated = errors.New("precondition is violated") diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol/backoff.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol/backoff.go new file mode 100644 index 0000000000..27cc341605 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol/backoff.go @@ -0,0 +1,149 @@ +/* +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 flowcontrol + +import ( + "sync" + "time" + + "k8s.io/client-go/1.4/pkg/util/clock" + "k8s.io/client-go/1.4/pkg/util/integer" +) + +type backoffEntry struct { + backoff time.Duration + lastUpdate time.Time +} + +type Backoff struct { + sync.Mutex + Clock clock.Clock + defaultDuration time.Duration + maxDuration time.Duration + perItemBackoff map[string]*backoffEntry +} + +func NewFakeBackOff(initial, max time.Duration, tc *clock.FakeClock) *Backoff { + return &Backoff{ + perItemBackoff: map[string]*backoffEntry{}, + Clock: tc, + defaultDuration: initial, + maxDuration: max, + } +} + +func NewBackOff(initial, max time.Duration) *Backoff { + return &Backoff{ + perItemBackoff: map[string]*backoffEntry{}, + Clock: clock.RealClock{}, + defaultDuration: initial, + maxDuration: max, + } +} + +// Get the current backoff Duration +func (p *Backoff) Get(id string) time.Duration { + p.Lock() + defer p.Unlock() + var delay time.Duration + entry, ok := p.perItemBackoff[id] + if ok { + delay = entry.backoff + } + return delay +} + +// move backoff to the next mark, capping at maxDuration +func (p *Backoff) Next(id string, eventTime time.Time) { + p.Lock() + defer p.Unlock() + entry, ok := p.perItemBackoff[id] + if !ok || hasExpired(eventTime, entry.lastUpdate, p.maxDuration) { + entry = p.initEntryUnsafe(id) + } else { + delay := entry.backoff * 2 // exponential + entry.backoff = time.Duration(integer.Int64Min(int64(delay), int64(p.maxDuration))) + } + entry.lastUpdate = p.Clock.Now() +} + +// Reset forces clearing of all backoff data for a given key. +func (p *Backoff) Reset(id string) { + p.Lock() + defer p.Unlock() + delete(p.perItemBackoff, id) +} + +// Returns True if the elapsed time since eventTime is smaller than the current backoff window +func (p *Backoff) IsInBackOffSince(id string, eventTime time.Time) bool { + p.Lock() + defer p.Unlock() + entry, ok := p.perItemBackoff[id] + if !ok { + return false + } + if hasExpired(eventTime, entry.lastUpdate, p.maxDuration) { + return false + } + return p.Clock.Now().Sub(eventTime) < entry.backoff +} + +// Returns True if time since lastupdate is less than the current backoff window. +func (p *Backoff) IsInBackOffSinceUpdate(id string, eventTime time.Time) bool { + p.Lock() + defer p.Unlock() + entry, ok := p.perItemBackoff[id] + if !ok { + return false + } + if hasExpired(eventTime, entry.lastUpdate, p.maxDuration) { + return false + } + return eventTime.Sub(entry.lastUpdate) < entry.backoff +} + +// Garbage collect records that have aged past maxDuration. Backoff users are expected +// to invoke this periodically. +func (p *Backoff) GC() { + p.Lock() + defer p.Unlock() + now := p.Clock.Now() + for id, entry := range p.perItemBackoff { + if now.Sub(entry.lastUpdate) > p.maxDuration*2 { + // GC when entry has not been updated for 2*maxDuration + delete(p.perItemBackoff, id) + } + } +} + +func (p *Backoff) DeleteEntry(id string) { + p.Lock() + defer p.Unlock() + delete(p.perItemBackoff, id) +} + +// Take a lock on *Backoff, before calling initEntryUnsafe +func (p *Backoff) initEntryUnsafe(id string) *backoffEntry { + entry := &backoffEntry{backoff: p.defaultDuration} + p.perItemBackoff[id] = entry + return entry +} + +// After 2*maxDuration we restart the backoff factor to the beginning +func hasExpired(eventTime time.Time, lastUpdate time.Time, maxDuration time.Duration) bool { + return eventTime.Sub(lastUpdate) > maxDuration*2 // consider stable if it's ok for twice the maxDuration +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol/throttle.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol/throttle.go new file mode 100644 index 0000000000..232ef6e58c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/flowcontrol/throttle.go @@ -0,0 +1,134 @@ +/* +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 flowcontrol + +import ( + "sync" + + "github.com/juju/ratelimit" +) + +type RateLimiter interface { + // TryAccept returns true if a token is taken immediately. Otherwise, + // it returns false. + TryAccept() bool + // Accept returns once a token becomes available. + Accept() + // Stop stops the rate limiter, subsequent calls to CanAccept will return false + Stop() + // Saturation returns a percentage number which describes how saturated + // this rate limiter is. + // Usually we use token bucket rate limiter. In that case, + // 1.0 means no tokens are available; 0.0 means we have a full bucket of tokens to use. + Saturation() float64 + // QPS returns QPS of this rate limiter + QPS() float32 +} + +type tokenBucketRateLimiter struct { + limiter *ratelimit.Bucket + qps float32 +} + +// NewTokenBucketRateLimiter creates a rate limiter which implements a token bucket approach. +// The rate limiter allows bursts of up to 'burst' to exceed the QPS, while still maintaining a +// smoothed qps rate of 'qps'. +// The bucket is initially filled with 'burst' tokens, and refills at a rate of 'qps'. +// The maximum number of tokens in the bucket is capped at 'burst'. +func NewTokenBucketRateLimiter(qps float32, burst int) RateLimiter { + limiter := ratelimit.NewBucketWithRate(float64(qps), int64(burst)) + return &tokenBucketRateLimiter{ + limiter: limiter, + qps: qps, + } +} + +func (t *tokenBucketRateLimiter) TryAccept() bool { + return t.limiter.TakeAvailable(1) == 1 +} + +func (t *tokenBucketRateLimiter) Saturation() float64 { + capacity := t.limiter.Capacity() + avail := t.limiter.Available() + return float64(capacity-avail) / float64(capacity) +} + +// Accept will block until a token becomes available +func (t *tokenBucketRateLimiter) Accept() { + t.limiter.Wait(1) +} + +func (t *tokenBucketRateLimiter) Stop() { +} + +func (t *tokenBucketRateLimiter) QPS() float32 { + return t.qps +} + +type fakeAlwaysRateLimiter struct{} + +func NewFakeAlwaysRateLimiter() RateLimiter { + return &fakeAlwaysRateLimiter{} +} + +func (t *fakeAlwaysRateLimiter) TryAccept() bool { + return true +} + +func (t *fakeAlwaysRateLimiter) Saturation() float64 { + return 0 +} + +func (t *fakeAlwaysRateLimiter) Stop() {} + +func (t *fakeAlwaysRateLimiter) Accept() {} + +func (t *fakeAlwaysRateLimiter) QPS() float32 { + return 1 +} + +type fakeNeverRateLimiter struct { + wg sync.WaitGroup +} + +func NewFakeNeverRateLimiter() RateLimiter { + wg := sync.WaitGroup{} + wg.Add(1) + return &fakeNeverRateLimiter{ + wg: wg, + } +} + +func (t *fakeNeverRateLimiter) TryAccept() bool { + return false +} + +func (t *fakeNeverRateLimiter) Saturation() float64 { + return 1 +} + +func (t *fakeNeverRateLimiter) Stop() { + t.wg.Done() +} + +func (t *fakeNeverRateLimiter) Accept() { + t.wg.Wait() +} + +func (t *fakeNeverRateLimiter) QPS() float32 { + return 1 +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/framer/framer.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/framer/framer.go new file mode 100644 index 0000000000..066680f443 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/framer/framer.go @@ -0,0 +1,167 @@ +/* +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 framer implements simple frame decoding techniques for an io.ReadCloser +package framer + +import ( + "encoding/binary" + "encoding/json" + "io" +) + +type lengthDelimitedFrameWriter struct { + w io.Writer + h [4]byte +} + +func NewLengthDelimitedFrameWriter(w io.Writer) io.Writer { + return &lengthDelimitedFrameWriter{w: w} +} + +// Write writes a single frame to the nested writer, prepending it with the length in +// in bytes of data (as a 4 byte, bigendian uint32). +func (w *lengthDelimitedFrameWriter) Write(data []byte) (int, error) { + binary.BigEndian.PutUint32(w.h[:], uint32(len(data))) + n, err := w.w.Write(w.h[:]) + if err != nil { + return 0, err + } + if n != len(w.h) { + return 0, io.ErrShortWrite + } + return w.w.Write(data) +} + +type lengthDelimitedFrameReader struct { + r io.ReadCloser + remaining int +} + +// NewLengthDelimitedFrameReader returns an io.Reader that will decode length-prefixed +// frames off of a stream. +// +// The protocol is: +// +// stream: message ... +// message: prefix body +// prefix: 4 byte uint32 in BigEndian order, denotes length of body +// body: bytes (0..prefix) +// +// If the buffer passed to Read is not long enough to contain an entire frame, io.ErrShortRead +// will be returned along with the number of bytes read. +func NewLengthDelimitedFrameReader(r io.ReadCloser) io.ReadCloser { + return &lengthDelimitedFrameReader{r: r} +} + +// Read attempts to read an entire frame into data. If that is not possible, io.ErrShortBuffer +// is returned and subsequent calls will attempt to read the last frame. A frame is complete when +// err is nil. +func (r *lengthDelimitedFrameReader) Read(data []byte) (int, error) { + if r.remaining <= 0 { + header := [4]byte{} + n, err := io.ReadAtLeast(r.r, header[:4], 4) + if err != nil { + return 0, err + } + if n != 4 { + return 0, io.ErrUnexpectedEOF + } + frameLength := int(binary.BigEndian.Uint32(header[:])) + r.remaining = frameLength + } + + expect := r.remaining + max := expect + if max > len(data) { + max = len(data) + } + n, err := io.ReadAtLeast(r.r, data[:max], int(max)) + r.remaining -= n + if err == io.ErrShortBuffer || r.remaining > 0 { + return n, io.ErrShortBuffer + } + if err != nil { + return n, err + } + if n != expect { + return n, io.ErrUnexpectedEOF + } + + return n, nil +} + +func (r *lengthDelimitedFrameReader) Close() error { + return r.r.Close() +} + +type jsonFrameReader struct { + r io.ReadCloser + decoder *json.Decoder + remaining []byte +} + +// NewJSONFramedReader returns an io.Reader that will decode individual JSON objects off +// of a wire. +// +// The boundaries between each frame are valid JSON objects. A JSON parsing error will terminate +// the read. +func NewJSONFramedReader(r io.ReadCloser) io.ReadCloser { + return &jsonFrameReader{ + r: r, + decoder: json.NewDecoder(r), + } +} + +// ReadFrame decodes the next JSON object in the stream, or returns an error. The returned +// byte slice will be modified the next time ReadFrame is invoked and should not be altered. +func (r *jsonFrameReader) Read(data []byte) (int, error) { + // Return whatever remaining data exists from an in progress frame + if n := len(r.remaining); n > 0 { + if n <= len(data) { + data = append(data[0:0], r.remaining...) + r.remaining = nil + return n, nil + } + + n = len(data) + data = append(data[0:0], r.remaining[:n]...) + r.remaining = r.remaining[n:] + return n, io.ErrShortBuffer + } + + // RawMessage#Unmarshal appends to data - we reset the slice down to 0 and will either see + // data written to data, or be larger than data and a different array. + n := len(data) + m := json.RawMessage(data[:0]) + if err := r.decoder.Decode(&m); err != nil { + return 0, err + } + + // If capacity of data is less than length of the message, decoder will allocate a new slice + // and set m to it, which means we need to copy the partial result back into data and preserve + // the remaining result for subsequent reads. + if len(m) > n { + data = append(data[0:0], m[:n]...) + r.remaining = m[n:] + return n, io.ErrShortBuffer + } + return len(m), nil +} + +func (r *jsonFrameReader) Close() error { + return r.r.Close() +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/hash/hash.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/hash/hash.go new file mode 100644 index 0000000000..803f066a44 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/hash/hash.go @@ -0,0 +1,37 @@ +/* +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 hash + +import ( + "hash" + + "github.com/davecgh/go-spew/spew" +) + +// DeepHashObject writes specified object to hash using the spew library +// which follows pointers and prints actual values of the nested objects +// ensuring the hash does not change when a pointer changes. +func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) { + hasher.Reset() + printer := spew.ConfigState{ + Indent: " ", + SortKeys: true, + DisableMethods: true, + SpewKeys: true, + } + printer.Fprintf(hasher, "%#v", objectToWrite) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/integer/integer.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/integer/integer.go new file mode 100644 index 0000000000..c6ea106f9b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/integer/integer.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 integer + +func IntMax(a, b int) int { + if b > a { + return b + } + return a +} + +func IntMin(a, b int) int { + if b < a { + return b + } + return a +} + +func Int32Max(a, b int32) int32 { + if b > a { + return b + } + return a +} + +func Int32Min(a, b int32) int32 { + if b < a { + return b + } + return a +} + +func Int64Max(a, b int64) int64 { + if b > a { + return b + } + return a +} + +func Int64Min(a, b int64) int64 { + if b < a { + return b + } + return a +} + +// RoundToInt32 rounds floats into integer numbers. +func RoundToInt32(a float64) int32 { + if a < 0 { + return int32(a - 0.5) + } + return int32(a + 0.5) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/generated.pb.go new file mode 100644 index 0000000000..a564abf909 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/generated.pb.go @@ -0,0 +1,372 @@ +/* +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/util/intstr/generated.proto +// DO NOT EDIT! + +/* + Package intstr is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/util/intstr/generated.proto + + It has these top-level messages: + IntOrString +*/ +package intstr + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +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 *IntOrString) Reset() { *m = IntOrString{} } +func (*IntOrString) ProtoMessage() {} +func (*IntOrString) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func init() { + proto.RegisterType((*IntOrString)(nil), "k8s.io.client-go.1.4.pkg.util.intstr.IntOrString") +} +func (m *IntOrString) 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 *IntOrString) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Type)) + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(m.IntVal)) + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.StrVal))) + i += copy(data[i:], m.StrVal) + 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 *IntOrString) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Type)) + n += 1 + sovGenerated(uint64(m.IntVal)) + l = len(m.StrVal) + 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 (m *IntOrString) 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: IntOrString: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IntOrString: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Type |= (Type(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType) + } + m.IntVal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.IntVal |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StrVal", 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.StrVal = 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{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0xcc, 0xb6, 0x28, 0xd6, + 0xcb, 0xcc, 0xd7, 0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xca, 0x4b, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, 0xc8, + 0x4e, 0xd7, 0x2f, 0x2d, 0xc9, 0xcc, 0xd1, 0xcf, 0xcc, 0x2b, 0x29, 0x2e, 0x29, 0xd2, 0x4f, 0x4f, + 0xcd, 0x4b, 0x2d, 0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x84, + 0x68, 0xd1, 0x43, 0x68, 0xd1, 0x03, 0x6a, 0xd1, 0x03, 0x69, 0xd1, 0x83, 0x68, 0x91, 0xd2, 0x4d, + 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, + 0xeb, 0x4c, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0xa2, 0xd2, 0x44, 0x46, 0x2e, + 0x6e, 0xcf, 0xbc, 0x12, 0xff, 0xa2, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0x74, 0x21, 0x0d, 0x2e, 0x96, + 0x92, 0xca, 0x82, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x66, 0x27, 0x91, 0x13, 0xf7, 0xe4, 0x19, + 0x1e, 0xdd, 0x93, 0x67, 0x09, 0x01, 0x8a, 0xfd, 0x82, 0xd2, 0x41, 0x60, 0x15, 0x42, 0x6a, 0x5c, + 0x6c, 0x40, 0x2b, 0xc3, 0x12, 0x73, 0x24, 0x98, 0x80, 0x6a, 0x59, 0x9d, 0xf8, 0xa0, 0x6a, 0xd9, + 0x3c, 0xc1, 0xa2, 0x41, 0x50, 0x59, 0x90, 0x3a, 0xa0, 0xbb, 0x40, 0xea, 0x98, 0x81, 0xea, 0x38, + 0x11, 0xea, 0x82, 0xc1, 0xa2, 0x41, 0x50, 0x59, 0x2b, 0x8e, 0x19, 0x0b, 0xe4, 0x19, 0x1a, 0xee, + 0x28, 0x30, 0x38, 0x69, 0x9c, 0x78, 0x28, 0xc7, 0x70, 0x01, 0x88, 0x6f, 0x00, 0x71, 0xc3, 0x23, + 0x39, 0xc6, 0x13, 0x40, 0x7c, 0x01, 0x88, 0x1f, 0x00, 0xf1, 0x84, 0xc7, 0x72, 0x0c, 0x51, 0x6c, + 0x10, 0xcf, 0x02, 0x02, 0x00, 0x00, 0xff, 0xff, 0x68, 0x57, 0xfb, 0xfa, 0x43, 0x01, 0x00, 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/generated.proto b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/generated.proto new file mode 100644 index 0000000000..dd508e1c8f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/generated.proto @@ -0,0 +1,42 @@ +/* +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.util.intstr; + +// Package-wide variables from generator "generated". +option go_package = "intstr"; + +// IntOrString is a type that can hold an int32 or a string. When used in +// JSON or YAML marshalling and unmarshalling, it produces or consumes the +// inner type. This allows you to have, for example, a JSON field that can +// accept a name or number. +// TODO: Rename to Int32OrString +// +// +protobuf=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +message IntOrString { + optional int64 type = 1; + + optional int32 intVal = 2; + + optional string strVal = 3; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/intstr.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/intstr.go new file mode 100644 index 0000000000..59e7a06633 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/intstr/intstr.go @@ -0,0 +1,147 @@ +/* +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 intstr + +import ( + "encoding/json" + "fmt" + "math" + "strconv" + "strings" + + "github.com/google/gofuzz" +) + +// IntOrString is a type that can hold an int32 or a string. When used in +// JSON or YAML marshalling and unmarshalling, it produces or consumes the +// inner type. This allows you to have, for example, a JSON field that can +// accept a name or number. +// TODO: Rename to Int32OrString +// +// +protobuf=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +type IntOrString struct { + Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` + IntVal int32 `protobuf:"varint,2,opt,name=intVal"` + StrVal string `protobuf:"bytes,3,opt,name=strVal"` +} + +// Type represents the stored type of IntOrString. +type Type int + +const ( + Int Type = iota // The IntOrString holds an int. + String // The IntOrString holds a string. +) + +// FromInt creates an IntOrString object with an int32 value. It is +// your responsibility not to call this method with a value greater +// than int32. +// TODO: convert to (val int32) +func FromInt(val int) IntOrString { + return IntOrString{Type: Int, IntVal: int32(val)} +} + +// FromString creates an IntOrString object with a string value. +func FromString(val string) IntOrString { + return IntOrString{Type: String, StrVal: val} +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +func (intstr *IntOrString) UnmarshalJSON(value []byte) error { + if value[0] == '"' { + intstr.Type = String + return json.Unmarshal(value, &intstr.StrVal) + } + intstr.Type = Int + return json.Unmarshal(value, &intstr.IntVal) +} + +// String returns the string value, or the Itoa of the int value. +func (intstr *IntOrString) String() string { + if intstr.Type == String { + return intstr.StrVal + } + return strconv.Itoa(intstr.IntValue()) +} + +// IntValue returns the IntVal if type Int, or if +// it is a String, will attempt a conversion to int. +func (intstr *IntOrString) IntValue() int { + if intstr.Type == String { + i, _ := strconv.Atoi(intstr.StrVal) + return i + } + return int(intstr.IntVal) +} + +// MarshalJSON implements the json.Marshaller interface. +func (intstr IntOrString) MarshalJSON() ([]byte, error) { + switch intstr.Type { + case Int: + return json.Marshal(intstr.IntVal) + case String: + return json.Marshal(intstr.StrVal) + default: + return []byte{}, fmt.Errorf("impossible IntOrString.Type") + } +} + +func (intstr *IntOrString) Fuzz(c fuzz.Continue) { + if intstr == nil { + return + } + if c.RandBool() { + intstr.Type = Int + c.Fuzz(&intstr.IntVal) + intstr.StrVal = "" + } else { + intstr.Type = String + intstr.IntVal = 0 + c.Fuzz(&intstr.StrVal) + } +} + +func GetValueFromIntOrPercent(intOrPercent *IntOrString, total int, roundUp bool) (int, error) { + value, isPercent, err := getIntOrPercentValue(intOrPercent) + if err != nil { + return 0, fmt.Errorf("invalid value for IntOrString: %v", err) + } + if isPercent { + if roundUp { + value = int(math.Ceil(float64(value) * (float64(total)) / 100)) + } else { + value = int(math.Floor(float64(value) * (float64(total)) / 100)) + } + } + return value, nil +} + +func getIntOrPercentValue(intOrStr *IntOrString) (int, bool, error) { + switch intOrStr.Type { + case Int: + return intOrStr.IntValue(), false, nil + case String: + s := strings.Replace(intOrStr.StrVal, "%", "", -1) + v, err := strconv.Atoi(s) + if err != nil { + return 0, false, fmt.Errorf("invalid value %q: %v", intOrStr.StrVal, err) + } + return int(v), true, nil + } + return 0, false, fmt.Errorf("invalid type: neither int nor percentage") +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/json/json.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/json/json.go new file mode 100644 index 0000000000..e8054a12ed --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/json/json.go @@ -0,0 +1,107 @@ +/* +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 json + +import ( + "bytes" + "encoding/json" + "io" +) + +// NewEncoder delegates to json.NewEncoder +// It is only here so this package can be a drop-in for common encoding/json uses +func NewEncoder(w io.Writer) *json.Encoder { + return json.NewEncoder(w) +} + +// Marshal delegates to json.Marshal +// It is only here so this package can be a drop-in for common encoding/json uses +func Marshal(v interface{}) ([]byte, error) { + return json.Marshal(v) +} + +// Unmarshal unmarshals the given data +// If v is a *map[string]interface{}, numbers are converted to int64 or float64 +func Unmarshal(data []byte, v interface{}) error { + switch v := v.(type) { + case *map[string]interface{}: + // Build a decoder from the given data + decoder := json.NewDecoder(bytes.NewBuffer(data)) + // Preserve numbers, rather than casting to float64 automatically + decoder.UseNumber() + // Run the decode + if err := decoder.Decode(v); err != nil { + return err + } + // If the decode succeeds, post-process the map to convert json.Number objects to int64 or float64 + return convertMapNumbers(*v) + + default: + return json.Unmarshal(data, v) + } +} + +// convertMapNumbers traverses the map, converting any json.Number values to int64 or float64. +// values which are map[string]interface{} or []interface{} are recursively visited +func convertMapNumbers(m map[string]interface{}) error { + var err error + for k, v := range m { + switch v := v.(type) { + case json.Number: + m[k], err = convertNumber(v) + case map[string]interface{}: + err = convertMapNumbers(v) + case []interface{}: + err = convertSliceNumbers(v) + } + if err != nil { + return err + } + } + return nil +} + +// convertSliceNumbers traverses the slice, converting any json.Number values to int64 or float64. +// values which are map[string]interface{} or []interface{} are recursively visited +func convertSliceNumbers(s []interface{}) error { + var err error + for i, v := range s { + switch v := v.(type) { + case json.Number: + s[i], err = convertNumber(v) + case map[string]interface{}: + err = convertMapNumbers(v) + case []interface{}: + err = convertSliceNumbers(v) + } + if err != nil { + return err + } + } + return nil +} + +// convertNumber converts a json.Number to an int64 or float64, or returns an error +func convertNumber(n json.Number) (interface{}, error) { + // Attempt to convert to an int64 first + if i, err := n.Int64(); err == nil { + return i, nil + } + // Return a float64 (default json.Decode() behavior) + // An overflow will return an error + return n.Float64() +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels/doc.go new file mode 100644 index 0000000000..c87305fb09 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels/doc.go @@ -0,0 +1,18 @@ +/* +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 labels provides utilities to work with Kubernetes labels. +package labels diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels/labels.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels/labels.go new file mode 100644 index 0000000000..fc5d317b17 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/labels/labels.go @@ -0,0 +1,126 @@ +/* +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 labels + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// Clones the given map and returns a new map with the given key and value added. +// Returns the given map, if labelKey is empty. +func CloneAndAddLabel(labels map[string]string, labelKey string, labelValue uint32) map[string]string { + if labelKey == "" { + // Don't need to add a label. + return labels + } + // Clone. + newLabels := map[string]string{} + for key, value := range labels { + newLabels[key] = value + } + newLabels[labelKey] = fmt.Sprintf("%d", labelValue) + return newLabels +} + +// CloneAndRemoveLabel clones the given map and returns a new map with the given key removed. +// Returns the given map, if labelKey is empty. +func CloneAndRemoveLabel(labels map[string]string, labelKey string) map[string]string { + if labelKey == "" { + // Don't need to add a label. + return labels + } + // Clone. + newLabels := map[string]string{} + for key, value := range labels { + newLabels[key] = value + } + delete(newLabels, labelKey) + return newLabels +} + +// AddLabel returns a map with the given key and value added to the given map. +func AddLabel(labels map[string]string, labelKey string, labelValue string) map[string]string { + if labelKey == "" { + // Don't need to add a label. + return labels + } + if labels == nil { + labels = make(map[string]string) + } + labels[labelKey] = labelValue + return labels +} + +// Clones the given selector and returns a new selector with the given key and value added. +// Returns the given selector, if labelKey is empty. +func CloneSelectorAndAddLabel(selector *unversioned.LabelSelector, labelKey string, labelValue uint32) *unversioned.LabelSelector { + if labelKey == "" { + // Don't need to add a label. + return selector + } + + // Clone. + newSelector := new(unversioned.LabelSelector) + + // TODO(madhusudancs): Check if you can use deepCopy_extensions_LabelSelector here. + newSelector.MatchLabels = make(map[string]string) + if selector.MatchLabels != nil { + for key, val := range selector.MatchLabels { + newSelector.MatchLabels[key] = val + } + } + newSelector.MatchLabels[labelKey] = fmt.Sprintf("%d", labelValue) + + if selector.MatchExpressions != nil { + newMExps := make([]unversioned.LabelSelectorRequirement, len(selector.MatchExpressions)) + for i, me := range selector.MatchExpressions { + newMExps[i].Key = me.Key + newMExps[i].Operator = me.Operator + if me.Values != nil { + newMExps[i].Values = make([]string, len(me.Values)) + copy(newMExps[i].Values, me.Values) + } else { + newMExps[i].Values = nil + } + } + newSelector.MatchExpressions = newMExps + } else { + newSelector.MatchExpressions = nil + } + + return newSelector +} + +// AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels. +func AddLabelToSelector(selector *unversioned.LabelSelector, labelKey string, labelValue string) *unversioned.LabelSelector { + if labelKey == "" { + // Don't need to add a label. + return selector + } + if selector.MatchLabels == nil { + selector.MatchLabels = make(map[string]string) + } + selector.MatchLabels[labelKey] = labelValue + return selector +} + +// SelectorHasLabel checks if the given selector contains the given label key in its MatchLabels +func SelectorHasLabel(selector *unversioned.LabelSelector, labelKey string) bool { + return len(selector.MatchLabels[labelKey]) > 0 +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/http.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/http.go new file mode 100644 index 0000000000..53f28dfca2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/http.go @@ -0,0 +1,233 @@ +/* +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 net + +import ( + "crypto/tls" + "fmt" + "io" + "net" + "net/http" + "net/url" + "os" + "strconv" + "strings" + + "github.com/golang/glog" + "golang.org/x/net/http2" +) + +// IsProbableEOF returns true if the given error resembles a connection termination +// scenario that would justify assuming that the watch is empty. +// These errors are what the Go http stack returns back to us which are general +// connection closure errors (strongly correlated) and callers that need to +// differentiate probable errors in connection behavior between normal "this is +// disconnected" should use the method. +func IsProbableEOF(err error) bool { + if uerr, ok := err.(*url.Error); ok { + err = uerr.Err + } + switch { + case err == io.EOF: + return true + case err.Error() == "http: can't write HTTP request on broken connection": + return true + case strings.Contains(err.Error(), "connection reset by peer"): + return true + case strings.Contains(strings.ToLower(err.Error()), "use of closed network connection"): + return true + } + return false +} + +var defaultTransport = http.DefaultTransport.(*http.Transport) + +// SetOldTransportDefaults applies the defaults from http.DefaultTransport +// for the Proxy, Dial, and TLSHandshakeTimeout fields if unset +func SetOldTransportDefaults(t *http.Transport) *http.Transport { + if t.Proxy == nil || isDefault(t.Proxy) { + // http.ProxyFromEnvironment doesn't respect CIDRs and that makes it impossible to exclude things like pod and service IPs from proxy settings + // ProxierWithNoProxyCIDR allows CIDR rules in NO_PROXY + t.Proxy = NewProxierWithNoProxyCIDR(http.ProxyFromEnvironment) + } + if t.Dial == nil { + t.Dial = defaultTransport.Dial + } + if t.TLSHandshakeTimeout == 0 { + t.TLSHandshakeTimeout = defaultTransport.TLSHandshakeTimeout + } + return t +} + +// SetTransportDefaults applies the defaults from http.DefaultTransport +// for the Proxy, Dial, and TLSHandshakeTimeout fields if unset +func SetTransportDefaults(t *http.Transport) *http.Transport { + t = SetOldTransportDefaults(t) + // Allow HTTP2 clients but default off for now + if s := os.Getenv("ENABLE_HTTP2"); len(s) > 0 { + if err := http2.ConfigureTransport(t); err != nil { + glog.Warningf("Transport failed http2 configuration: %v", err) + } + } + return t +} + +type RoundTripperWrapper interface { + http.RoundTripper + WrappedRoundTripper() http.RoundTripper +} + +type DialFunc func(net, addr string) (net.Conn, error) + +func Dialer(transport http.RoundTripper) (DialFunc, error) { + if transport == nil { + return nil, nil + } + + switch transport := transport.(type) { + case *http.Transport: + return transport.Dial, nil + case RoundTripperWrapper: + return Dialer(transport.WrappedRoundTripper()) + default: + return nil, fmt.Errorf("unknown transport type: %v", transport) + } +} + +func TLSClientConfig(transport http.RoundTripper) (*tls.Config, error) { + if transport == nil { + return nil, nil + } + + switch transport := transport.(type) { + case *http.Transport: + return transport.TLSClientConfig, nil + case RoundTripperWrapper: + return TLSClientConfig(transport.WrappedRoundTripper()) + default: + return nil, fmt.Errorf("unknown transport type: %v", transport) + } +} + +func FormatURL(scheme string, host string, port int, path string) *url.URL { + return &url.URL{ + Scheme: scheme, + Host: net.JoinHostPort(host, strconv.Itoa(port)), + Path: path, + } +} + +func GetHTTPClient(req *http.Request) string { + if userAgent, ok := req.Header["User-Agent"]; ok { + if len(userAgent) > 0 { + return userAgent[0] + } + } + return "unknown" +} + +// Extracts and returns the clients IP from the given request. +// Looks at X-Forwarded-For header, X-Real-Ip header and request.RemoteAddr in that order. +// Returns nil if none of them are set or is set to an invalid value. +func GetClientIP(req *http.Request) net.IP { + hdr := req.Header + // First check the X-Forwarded-For header for requests via proxy. + hdrForwardedFor := hdr.Get("X-Forwarded-For") + if hdrForwardedFor != "" { + // X-Forwarded-For can be a csv of IPs in case of multiple proxies. + // Use the first valid one. + parts := strings.Split(hdrForwardedFor, ",") + for _, part := range parts { + ip := net.ParseIP(strings.TrimSpace(part)) + if ip != nil { + return ip + } + } + } + + // Try the X-Real-Ip header. + hdrRealIp := hdr.Get("X-Real-Ip") + if hdrRealIp != "" { + ip := net.ParseIP(hdrRealIp) + if ip != nil { + return ip + } + } + + // Fallback to Remote Address in request, which will give the correct client IP when there is no proxy. + // Remote Address in Go's HTTP server is in the form host:port so we need to split that first. + host, _, err := net.SplitHostPort(req.RemoteAddr) + if err == nil { + return net.ParseIP(host) + } + + // Fallback if Remote Address was just IP. + return net.ParseIP(req.RemoteAddr) +} + +var defaultProxyFuncPointer = fmt.Sprintf("%p", http.ProxyFromEnvironment) + +// isDefault checks to see if the transportProxierFunc is pointing to the default one +func isDefault(transportProxier func(*http.Request) (*url.URL, error)) bool { + transportProxierPointer := fmt.Sprintf("%p", transportProxier) + return transportProxierPointer == defaultProxyFuncPointer +} + +// NewProxierWithNoProxyCIDR constructs a Proxier function that respects CIDRs in NO_PROXY and delegates if +// no matching CIDRs are found +func NewProxierWithNoProxyCIDR(delegate func(req *http.Request) (*url.URL, error)) func(req *http.Request) (*url.URL, error) { + // we wrap the default method, so we only need to perform our check if the NO_PROXY envvar has a CIDR in it + noProxyEnv := os.Getenv("NO_PROXY") + noProxyRules := strings.Split(noProxyEnv, ",") + + cidrs := []*net.IPNet{} + for _, noProxyRule := range noProxyRules { + _, cidr, _ := net.ParseCIDR(noProxyRule) + if cidr != nil { + cidrs = append(cidrs, cidr) + } + } + + if len(cidrs) == 0 { + return delegate + } + + return func(req *http.Request) (*url.URL, error) { + host := req.URL.Host + // for some urls, the Host is already the host, not the host:port + if net.ParseIP(host) == nil { + var err error + host, _, err = net.SplitHostPort(req.URL.Host) + if err != nil { + return delegate(req) + } + } + + ip := net.ParseIP(host) + if ip == nil { + return delegate(req) + } + + for _, cidr := range cidrs { + if cidr.Contains(ip) { + return nil, nil + } + } + + return delegate(req) + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/interface.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/interface.go new file mode 100644 index 0000000000..a1e53d2e43 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/interface.go @@ -0,0 +1,278 @@ +/* +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 net + +import ( + "bufio" + "encoding/hex" + "fmt" + "io" + "net" + "os" + + "strings" + + "github.com/golang/glog" +) + +type Route struct { + Interface string + Destination net.IP + Gateway net.IP + // TODO: add more fields here if needed +} + +func getRoutes(input io.Reader) ([]Route, error) { + routes := []Route{} + if input == nil { + return nil, fmt.Errorf("input is nil") + } + scanner := bufio.NewReader(input) + for { + line, err := scanner.ReadString('\n') + if err == io.EOF { + break + } + //ignore the headers in the route info + if strings.HasPrefix(line, "Iface") { + continue + } + fields := strings.Fields(line) + routes = append(routes, Route{}) + route := &routes[len(routes)-1] + route.Interface = fields[0] + ip, err := parseIP(fields[1]) + if err != nil { + return nil, err + } + route.Destination = ip + ip, err = parseIP(fields[2]) + if err != nil { + return nil, err + } + route.Gateway = ip + } + return routes, nil +} + +func parseIP(str string) (net.IP, error) { + if str == "" { + return nil, fmt.Errorf("input is nil") + } + bytes, err := hex.DecodeString(str) + if err != nil { + return nil, err + } + //TODO add ipv6 support + if len(bytes) != net.IPv4len { + return nil, fmt.Errorf("only IPv4 is supported") + } + bytes[0], bytes[1], bytes[2], bytes[3] = bytes[3], bytes[2], bytes[1], bytes[0] + return net.IP(bytes), nil +} + +func isInterfaceUp(intf *net.Interface) bool { + if intf == nil { + return false + } + if intf.Flags&net.FlagUp != 0 { + glog.V(4).Infof("Interface %v is up", intf.Name) + return true + } + return false +} + +//getFinalIP method receives all the IP addrs of a Interface +//and returns a nil if the address is Loopback, Ipv6, link-local or nil. +//It returns a valid IPv4 if an Ipv4 address is found in the array. +func getFinalIP(addrs []net.Addr) (net.IP, error) { + if len(addrs) > 0 { + for i := range addrs { + glog.V(4).Infof("Checking addr %s.", addrs[i].String()) + ip, _, err := net.ParseCIDR(addrs[i].String()) + if err != nil { + return nil, err + } + //Only IPv4 + //TODO : add IPv6 support + if ip.To4() != nil { + if !ip.IsLoopback() && !ip.IsLinkLocalMulticast() && !ip.IsLinkLocalUnicast() { + glog.V(4).Infof("IP found %v", ip) + return ip, nil + } else { + glog.V(4).Infof("Loopback/link-local found %v", ip) + } + } else { + glog.V(4).Infof("%v is not a valid IPv4 address", ip) + } + + } + } + return nil, nil +} + +func getIPFromInterface(intfName string, nw networkInterfacer) (net.IP, error) { + intf, err := nw.InterfaceByName(intfName) + if err != nil { + return nil, err + } + if isInterfaceUp(intf) { + addrs, err := nw.Addrs(intf) + if err != nil { + return nil, err + } + glog.V(4).Infof("Interface %q has %d addresses :%v.", intfName, len(addrs), addrs) + finalIP, err := getFinalIP(addrs) + if err != nil { + return nil, err + } + if finalIP != nil { + glog.V(4).Infof("valid IPv4 address for interface %q found as %v.", intfName, finalIP) + return finalIP, nil + } + } + + return nil, nil +} + +func flagsSet(flags net.Flags, test net.Flags) bool { + return flags&test != 0 +} + +func flagsClear(flags net.Flags, test net.Flags) bool { + return flags&test == 0 +} + +func chooseHostInterfaceNativeGo() (net.IP, error) { + intfs, err := net.Interfaces() + if err != nil { + return nil, err + } + i := 0 + var ip net.IP + for i = range intfs { + if flagsSet(intfs[i].Flags, net.FlagUp) && flagsClear(intfs[i].Flags, net.FlagLoopback|net.FlagPointToPoint) { + addrs, err := intfs[i].Addrs() + if err != nil { + return nil, err + } + if len(addrs) > 0 { + for _, addr := range addrs { + if addrIP, _, err := net.ParseCIDR(addr.String()); err == nil { + if addrIP.To4() != nil { + ip = addrIP.To4() + if !ip.IsLinkLocalMulticast() && !ip.IsLinkLocalUnicast() { + break + } + } + } + } + if ip != nil { + // This interface should suffice. + break + } + } + } + } + if ip == nil { + return nil, fmt.Errorf("no acceptable interface from host") + } + glog.V(4).Infof("Choosing interface %s (IP %v) as default", intfs[i].Name, ip) + return ip, nil +} + +//ChooseHostInterface is a method used fetch an IP for a daemon. +//It uses data from /proc/net/route file. +//For a node with no internet connection ,it returns error +//For a multi n/w interface node it returns the IP of the interface with gateway on it. +func ChooseHostInterface() (net.IP, error) { + inFile, err := os.Open("/proc/net/route") + if err != nil { + if os.IsNotExist(err) { + return chooseHostInterfaceNativeGo() + } + return nil, err + } + defer inFile.Close() + var nw networkInterfacer = networkInterface{} + return chooseHostInterfaceFromRoute(inFile, nw) +} + +type networkInterfacer interface { + InterfaceByName(intfName string) (*net.Interface, error) + Addrs(intf *net.Interface) ([]net.Addr, error) +} + +type networkInterface struct{} + +func (_ networkInterface) InterfaceByName(intfName string) (*net.Interface, error) { + intf, err := net.InterfaceByName(intfName) + if err != nil { + return nil, err + } + return intf, nil +} + +func (_ networkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { + addrs, err := intf.Addrs() + if err != nil { + return nil, err + } + return addrs, nil +} + +func chooseHostInterfaceFromRoute(inFile io.Reader, nw networkInterfacer) (net.IP, error) { + routes, err := getRoutes(inFile) + if err != nil { + return nil, err + } + zero := net.IP{0, 0, 0, 0} + var finalIP net.IP + for i := range routes { + //find interface with gateway + if routes[i].Destination.Equal(zero) { + glog.V(4).Infof("Default route transits interface %q", routes[i].Interface) + finalIP, err := getIPFromInterface(routes[i].Interface, nw) + if err != nil { + return nil, err + } + if finalIP != nil { + glog.V(4).Infof("Choosing IP %v ", finalIP) + return finalIP, nil + } + } + } + glog.V(4).Infof("No valid IP found") + if finalIP == nil { + return nil, fmt.Errorf("Unable to select an IP.") + } + return nil, nil +} + +// If bind-address is usable, return it directly +// If bind-address is not usable (unset, 0.0.0.0, or loopback), we will use the host's default +// interface. +func ChooseBindAddress(bindAddress net.IP) (net.IP, error) { + if bindAddress == nil || bindAddress.IsUnspecified() || bindAddress.IsLoopback() { + hostIP, err := ChooseHostInterface() + if err != nil { + return nil, err + } + bindAddress = hostIP + } + return bindAddress, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/port_range.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/port_range.go new file mode 100644 index 0000000000..6a50e6186d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/port_range.go @@ -0,0 +1,113 @@ +/* +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 net + +import ( + "fmt" + "strconv" + "strings" +) + +// PortRange represents a range of TCP/UDP ports. To represent a single port, +// set Size to 1. +type PortRange struct { + Base int + Size int +} + +// Contains tests whether a given port falls within the PortRange. +func (pr *PortRange) Contains(p int) bool { + return (p >= pr.Base) && ((p - pr.Base) < pr.Size) +} + +// String converts the PortRange to a string representation, which can be +// parsed by PortRange.Set or ParsePortRange. +func (pr PortRange) String() string { + if pr.Size == 0 { + return "" + } + return fmt.Sprintf("%d-%d", pr.Base, pr.Base+pr.Size-1) +} + +// Set parses a string of the form "min-max", inclusive at both ends, and +// sets the PortRange from it. This is part of the flag.Value and pflag.Value +// interfaces. +func (pr *PortRange) Set(value string) error { + value = strings.TrimSpace(value) + + // TODO: Accept "80" syntax + // TODO: Accept "80+8" syntax + + if value == "" { + pr.Base = 0 + pr.Size = 0 + return nil + } + + hyphenIndex := strings.Index(value, "-") + if hyphenIndex == -1 { + return fmt.Errorf("expected hyphen in port range") + } + + var err error + var low int + var high int + low, err = strconv.Atoi(value[:hyphenIndex]) + if err == nil { + high, err = strconv.Atoi(value[hyphenIndex+1:]) + } + if err != nil { + return fmt.Errorf("unable to parse port range: %s: %v", value, err) + } + + if low > 65535 || high > 65535 { + return fmt.Errorf("the port range cannot be greater than 65535: %s", value) + } + + if high < low { + return fmt.Errorf("end port cannot be less than start port: %s", value) + } + + pr.Base = low + pr.Size = 1 + high - low + return nil +} + +// Type returns a descriptive string about this type. This is part of the +// pflag.Value interface. +func (*PortRange) Type() string { + return "portRange" +} + +// ParsePortRange parses a string of the form "min-max", inclusive at both +// ends, and initializs a new PortRange from it. +func ParsePortRange(value string) (*PortRange, error) { + pr := &PortRange{} + err := pr.Set(value) + if err != nil { + return nil, err + } + return pr, nil +} + +func ParsePortRangeOrDie(value string) *PortRange { + pr, err := ParsePortRange(value) + if err != nil { + panic(fmt.Sprintf("couldn't parse port range %q: %v", value, err)) + } + return pr +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/port_split.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/port_split.go new file mode 100644 index 0000000000..4cd57e88f8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/port_split.go @@ -0,0 +1,77 @@ +/* +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 net + +import ( + "strings" + + "k8s.io/client-go/1.4/pkg/util/sets" +) + +var validSchemes = sets.NewString("http", "https", "") + +// SplitSchemeNamePort takes a string of the following forms: +// * "", returns "", "","", true +// * ":", returns "", "","",true +// * "::", returns "","","",true +// +// Name must be non-empty or valid will be returned false. +// Scheme must be "http" or "https" if specified +// Port is returned as a string, and it is not required to be numeric (could be +// used for a named port, for example). +func SplitSchemeNamePort(id string) (scheme, name, port string, valid bool) { + parts := strings.Split(id, ":") + switch len(parts) { + case 1: + name = parts[0] + case 2: + name = parts[0] + port = parts[1] + case 3: + scheme = parts[0] + name = parts[1] + port = parts[2] + default: + return "", "", "", false + } + + if len(name) > 0 && validSchemes.Has(scheme) { + return scheme, name, port, true + } else { + return "", "", "", false + } +} + +// JoinSchemeNamePort returns a string that specifies the scheme, name, and port: +// * "" +// * ":" +// * "::" +// None of the parameters may contain a ':' character +// Name is required +// Scheme must be "", "http", or "https" +func JoinSchemeNamePort(scheme, name, port string) string { + if len(scheme) > 0 { + // Must include three segments to specify scheme + return scheme + ":" + name + ":" + port + } + if len(port) > 0 { + // Must include two segments to specify port + return name + ":" + port + } + // Return name alone + return name +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets/doc.go new file mode 100644 index 0000000000..2f5fe497a9 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets/doc.go @@ -0,0 +1,28 @@ +/* +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 contains hand-coded set implementations that should be similar +// to the autogenerated ones in pkg/util/sets. +// We can't simply use net.IPNet as a map-key in Go (because it contains a +// []byte). +// We could use the same workaround we use here (a string representation as the +// key) to autogenerate sets. If we do that, or decide on an alternate +// approach, we should replace the implementations in this package with the +// autogenerated versions. +// It is expected that callers will alias this import as "netsets" i.e. import +// netsets "k8s.io/client-go/1.4/pkg/util/net/sets" + +package sets diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets/ipnet.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets/ipnet.go new file mode 100644 index 0000000000..5b6fe933f1 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/sets/ipnet.go @@ -0,0 +1,119 @@ +/* +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 sets + +import ( + "net" + "strings" +) + +type IPNet map[string]*net.IPNet + +func ParseIPNets(specs ...string) (IPNet, error) { + ipnetset := make(IPNet) + for _, spec := range specs { + spec = strings.TrimSpace(spec) + _, ipnet, err := net.ParseCIDR(spec) + if err != nil { + return nil, err + } + k := ipnet.String() // In case of normalization + ipnetset[k] = ipnet + } + return ipnetset, nil +} + +// Insert adds items to the set. +func (s IPNet) Insert(items ...*net.IPNet) { + for _, item := range items { + s[item.String()] = item + } +} + +// Delete removes all items from the set. +func (s IPNet) Delete(items ...*net.IPNet) { + for _, item := range items { + delete(s, item.String()) + } +} + +// Has returns true if and only if item is contained in the set. +func (s IPNet) Has(item *net.IPNet) bool { + _, contained := s[item.String()] + return contained +} + +// HasAll returns true if and only if all items are contained in the set. +func (s IPNet) HasAll(items ...*net.IPNet) bool { + for _, item := range items { + if !s.Has(item) { + return false + } + } + return true +} + +// Difference returns a set of objects that are not in s2 +// For example: +// s1 = {a1, a2, a3} +// s2 = {a1, a2, a4, a5} +// s1.Difference(s2) = {a3} +// s2.Difference(s1) = {a4, a5} +func (s IPNet) Difference(s2 IPNet) IPNet { + result := make(IPNet) + for k, i := range s { + _, found := s2[k] + if found { + continue + } + result[k] = i + } + return result +} + +// StringSlice returns a []string with the String representation of each element in the set. +// Order is undefined. +func (s IPNet) StringSlice() []string { + a := make([]string, 0, len(s)) + for k := range s { + a = append(a, k) + } + return a +} + +// IsSuperset returns true if and only if s1 is a superset of s2. +func (s1 IPNet) IsSuperset(s2 IPNet) bool { + for k := range s2 { + _, found := s1[k] + if !found { + return false + } + } + return true +} + +// Equal returns true if and only if s1 is equal (as a set) to s2. +// Two sets are equal if their membership is identical. +// (In practice, this means same elements, order doesn't matter) +func (s1 IPNet) Equal(s2 IPNet) bool { + return len(s1) == len(s2) && s1.IsSuperset(s2) +} + +// Len returns the size of the set. +func (s IPNet) Len() int { + return len(s) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/util.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/util.go new file mode 100644 index 0000000000..1348f4deeb --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/net/util.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 net + +import ( + "net" + "reflect" +) + +// IPNetEqual checks if the two input IPNets are representing the same subnet. +// For example, +// 10.0.0.1/24 and 10.0.0.0/24 are the same subnet. +// 10.0.0.1/24 and 10.0.0.0/25 are not the same subnet. +func IPNetEqual(ipnet1, ipnet2 *net.IPNet) bool { + if ipnet1 == nil || ipnet2 == nil { + return false + } + if reflect.DeepEqual(ipnet1.Mask, ipnet2.Mask) && ipnet1.Contains(ipnet2.IP) && ipnet2.Contains(ipnet1.IP) { + return true + } + return false +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/parsers/parsers.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/parsers/parsers.go new file mode 100644 index 0000000000..4e70cc6827 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/parsers/parsers.go @@ -0,0 +1,54 @@ +/* +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 parsers + +import ( + "fmt" + + dockerref "github.com/docker/distribution/reference" +) + +const ( + DefaultImageTag = "latest" +) + +// ParseImageName parses a docker image string into three parts: repo, tag and digest. +// If both tag and digest are empty, a default image tag will be returned. +func ParseImageName(image string) (string, string, string, error) { + named, err := dockerref.ParseNamed(image) + if err != nil { + return "", "", "", fmt.Errorf("couldn't parse image name: %v", err) + } + + repoToPull := named.Name() + var tag, digest string + + tagged, ok := named.(dockerref.Tagged) + if ok { + tag = tagged.Tag() + } + + digested, ok := named.(dockerref.Digested) + if ok { + digest = digested.Digest().String() + } + // If no tag was specified, use the default "latest". + if len(tag) == 0 && len(digest) == 0 { + tag = DefaultImageTag + } + return repoToPull, tag, digest, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/rand/rand.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/rand/rand.go new file mode 100644 index 0000000000..134c152605 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/rand/rand.go @@ -0,0 +1,83 @@ +/* +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 rand provides utilities related to randomization. +package rand + +import ( + "math/rand" + "sync" + "time" +) + +var letters = []rune("abcdefghijklmnopqrstuvwxyz0123456789") +var numLetters = len(letters) +var rng = struct { + sync.Mutex + rand *rand.Rand +}{ + rand: rand.New(rand.NewSource(time.Now().UTC().UnixNano())), +} + +// Intn generates an integer in range [0,max). +// By design this should panic if input is invalid, <= 0. +func Intn(max int) int { + rng.Lock() + defer rng.Unlock() + return rng.rand.Intn(max) +} + +// IntnRange generates an integer in range [min,max). +// By design this should panic if input is invalid, <= 0. +func IntnRange(min, max int) int { + rng.Lock() + defer rng.Unlock() + return rng.rand.Intn(max-min) + min +} + +// IntnRange generates an int64 integer in range [min,max). +// By design this should panic if input is invalid, <= 0. +func Int63nRange(min, max int64) int64 { + rng.Lock() + defer rng.Unlock() + return rng.rand.Int63n(max-min) + min +} + +// Seed seeds the rng with the provided seed. +func Seed(seed int64) { + rng.Lock() + defer rng.Unlock() + + rng.rand = rand.New(rand.NewSource(seed)) +} + +// Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n) +// from the default Source. +func Perm(n int) []int { + rng.Lock() + defer rng.Unlock() + return rng.rand.Perm(n) +} + +// String generates a random alphanumeric string n characters long. This will +// panic if n is less than zero. +func String(length int) string { + b := make([]rune, length) + for i := range b { + b[i] = letters[Intn(numLetters)] + } + return string(b) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/runtime/runtime.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/runtime/runtime.go new file mode 100644 index 0000000000..976de49d58 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/runtime/runtime.go @@ -0,0 +1,128 @@ +/* +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 runtime + +import ( + "fmt" + "runtime" + + "github.com/golang/glog" +) + +var ( + // ReallyCrash controls the behavior of HandleCrash and now defaults + // true. It's still exposed so components can optionally set to false + // to restore prior behavior. + ReallyCrash = true +) + +// PanicHandlers is a list of functions which will be invoked when a panic happens. +var PanicHandlers = []func(interface{}){logPanic} + +// HandleCrash simply catches a crash and logs an error. Meant to be called via +// defer. Additional context-specific handlers can be provided, and will be +// called in case of panic. HandleCrash actually crashes, after calling the +// handlers and logging the panic message. +// +// TODO: remove this function. We are switching to a world where it's safe for +// apiserver to panic, since it will be restarted by kubelet. At the beginning +// of the Kubernetes project, nothing was going to restart apiserver and so +// catching panics was important. But it's actually much simpler for montoring +// software if we just exit when an unexpected panic happens. +func HandleCrash(additionalHandlers ...func(interface{})) { + if r := recover(); r != nil { + for _, fn := range PanicHandlers { + fn(r) + } + for _, fn := range additionalHandlers { + fn(r) + } + if ReallyCrash { + // Actually proceed to panic. + panic(r) + } + } +} + +// logPanic logs the caller tree when a panic occurs. +func logPanic(r interface{}) { + callers := getCallers(r) + glog.Errorf("Observed a panic: %#v (%v)\n%v", r, r, callers) +} + +func getCallers(r interface{}) string { + callers := "" + for i := 0; true; i++ { + _, file, line, ok := runtime.Caller(i) + if !ok { + break + } + callers = callers + fmt.Sprintf("%v:%v\n", file, line) + } + + return callers +} + +// ErrorHandlers is a list of functions which will be invoked when an unreturnable +// error occurs. +var ErrorHandlers = []func(error){logError} + +// HandlerError is a method to invoke when a non-user facing piece of code cannot +// return an error and needs to indicate it has been ignored. Invoking this method +// is preferable to logging the error - the default behavior is to log but the +// errors may be sent to a remote server for analysis. +func HandleError(err error) { + // this is sometimes called with a nil error. We probably shouldn't fail and should do nothing instead + if err == nil { + return + } + + for _, fn := range ErrorHandlers { + fn(err) + } +} + +// logError prints an error with the call stack of the location it was reported +func logError(err error) { + glog.ErrorDepth(2, err) +} + +// GetCaller returns the caller of the function that calls it. +func GetCaller() string { + var pc [1]uintptr + runtime.Callers(3, pc[:]) + f := runtime.FuncForPC(pc[0]) + if f == nil { + return fmt.Sprintf("Unable to find caller") + } + return f.Name() +} + +// RecoverFromPanic replaces the specified error with an error containing the +// original error, and the call tree when a panic occurs. This enables error +// handlers to handle errors and panics the same way. +func RecoverFromPanic(err *error) { + if r := recover(); r != nil { + callers := getCallers(r) + + *err = fmt.Errorf( + "recovered from panic %q. (err=%v) Call stack:\n%v", + r, + *err, + callers) + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/byte.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/byte.go new file mode 100644 index 0000000000..45f5d4f67f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/byte.go @@ -0,0 +1,194 @@ +/* +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 set-gen. Do not edit it manually! + +package sets + +import ( + "reflect" + "sort" +) + +// sets.Byte is a set of bytes, implemented via map[byte]struct{} for minimal memory consumption. +type Byte map[byte]Empty + +// New creates a Byte from a list of values. +func NewByte(items ...byte) Byte { + ss := Byte{} + ss.Insert(items...) + return ss +} + +// ByteKeySet creates a Byte from a keys of a map[byte](? extends interface{}). +// If the value passed in is not actually a map, this will panic. +func ByteKeySet(theMap interface{}) Byte { + v := reflect.ValueOf(theMap) + ret := Byte{} + + for _, keyValue := range v.MapKeys() { + ret.Insert(keyValue.Interface().(byte)) + } + return ret +} + +// Insert adds items to the set. +func (s Byte) Insert(items ...byte) { + for _, item := range items { + s[item] = Empty{} + } +} + +// Delete removes all items from the set. +func (s Byte) Delete(items ...byte) { + for _, item := range items { + delete(s, item) + } +} + +// Has returns true if and only if item is contained in the set. +func (s Byte) Has(item byte) bool { + _, contained := s[item] + return contained +} + +// HasAll returns true if and only if all items are contained in the set. +func (s Byte) HasAll(items ...byte) bool { + for _, item := range items { + if !s.Has(item) { + return false + } + } + return true +} + +// HasAny returns true if any items are contained in the set. +func (s Byte) HasAny(items ...byte) bool { + for _, item := range items { + if s.Has(item) { + return true + } + } + return false +} + +// Difference returns a set of objects that are not in s2 +// For example: +// s1 = {a1, a2, a3} +// s2 = {a1, a2, a4, a5} +// s1.Difference(s2) = {a3} +// s2.Difference(s1) = {a4, a5} +func (s Byte) Difference(s2 Byte) Byte { + result := NewByte() + for key := range s { + if !s2.Has(key) { + result.Insert(key) + } + } + return result +} + +// Union returns a new set which includes items in either s1 or s2. +// For example: +// s1 = {a1, a2} +// s2 = {a3, a4} +// s1.Union(s2) = {a1, a2, a3, a4} +// s2.Union(s1) = {a1, a2, a3, a4} +func (s1 Byte) Union(s2 Byte) Byte { + result := NewByte() + for key := range s1 { + result.Insert(key) + } + for key := range s2 { + result.Insert(key) + } + return result +} + +// Intersection returns a new set which includes the item in BOTH s1 and s2 +// For example: +// s1 = {a1, a2} +// s2 = {a2, a3} +// s1.Intersection(s2) = {a2} +func (s1 Byte) Intersection(s2 Byte) Byte { + var walk, other Byte + result := NewByte() + if s1.Len() < s2.Len() { + walk = s1 + other = s2 + } else { + walk = s2 + other = s1 + } + for key := range walk { + if other.Has(key) { + result.Insert(key) + } + } + return result +} + +// IsSuperset returns true if and only if s1 is a superset of s2. +func (s1 Byte) IsSuperset(s2 Byte) bool { + for item := range s2 { + if !s1.Has(item) { + return false + } + } + return true +} + +// Equal returns true if and only if s1 is equal (as a set) to s2. +// Two sets are equal if their membership is identical. +// (In practice, this means same elements, order doesn't matter) +func (s1 Byte) Equal(s2 Byte) bool { + return len(s1) == len(s2) && s1.IsSuperset(s2) +} + +type sortableSliceOfByte []byte + +func (s sortableSliceOfByte) Len() int { return len(s) } +func (s sortableSliceOfByte) Less(i, j int) bool { return lessByte(s[i], s[j]) } +func (s sortableSliceOfByte) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +// List returns the contents as a sorted byte slice. +func (s Byte) List() []byte { + res := make(sortableSliceOfByte, 0, len(s)) + for key := range s { + res = append(res, key) + } + sort.Sort(res) + return []byte(res) +} + +// Returns a single element from the set. +func (s Byte) PopAny() (byte, bool) { + for key := range s { + s.Delete(key) + return key, true + } + var zeroValue byte + return zeroValue, false +} + +// Len returns the size of the set. +func (s Byte) Len() int { + return len(s) +} + +func lessByte(lhs, rhs byte) bool { + return lhs < rhs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/doc.go new file mode 100644 index 0000000000..c5e541621f --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/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 file was autogenerated by set-gen. Do not edit it manually! + +// Package sets has auto-generated set types. +package sets diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/empty.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/empty.go new file mode 100644 index 0000000000..5654edd773 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/empty.go @@ -0,0 +1,23 @@ +/* +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 set-gen. Do not edit it manually! + +package sets + +// Empty is public since it is used by some internal API objects for conversions between external +// string arrays and internal sets, and conversion logic requires public types today. +type Empty struct{} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/int.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/int.go new file mode 100644 index 0000000000..4b8c331b53 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/int.go @@ -0,0 +1,194 @@ +/* +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 set-gen. Do not edit it manually! + +package sets + +import ( + "reflect" + "sort" +) + +// sets.Int is a set of ints, implemented via map[int]struct{} for minimal memory consumption. +type Int map[int]Empty + +// New creates a Int from a list of values. +func NewInt(items ...int) Int { + ss := Int{} + ss.Insert(items...) + return ss +} + +// IntKeySet creates a Int from a keys of a map[int](? extends interface{}). +// If the value passed in is not actually a map, this will panic. +func IntKeySet(theMap interface{}) Int { + v := reflect.ValueOf(theMap) + ret := Int{} + + for _, keyValue := range v.MapKeys() { + ret.Insert(keyValue.Interface().(int)) + } + return ret +} + +// Insert adds items to the set. +func (s Int) Insert(items ...int) { + for _, item := range items { + s[item] = Empty{} + } +} + +// Delete removes all items from the set. +func (s Int) Delete(items ...int) { + for _, item := range items { + delete(s, item) + } +} + +// Has returns true if and only if item is contained in the set. +func (s Int) Has(item int) bool { + _, contained := s[item] + return contained +} + +// HasAll returns true if and only if all items are contained in the set. +func (s Int) HasAll(items ...int) bool { + for _, item := range items { + if !s.Has(item) { + return false + } + } + return true +} + +// HasAny returns true if any items are contained in the set. +func (s Int) HasAny(items ...int) bool { + for _, item := range items { + if s.Has(item) { + return true + } + } + return false +} + +// Difference returns a set of objects that are not in s2 +// For example: +// s1 = {a1, a2, a3} +// s2 = {a1, a2, a4, a5} +// s1.Difference(s2) = {a3} +// s2.Difference(s1) = {a4, a5} +func (s Int) Difference(s2 Int) Int { + result := NewInt() + for key := range s { + if !s2.Has(key) { + result.Insert(key) + } + } + return result +} + +// Union returns a new set which includes items in either s1 or s2. +// For example: +// s1 = {a1, a2} +// s2 = {a3, a4} +// s1.Union(s2) = {a1, a2, a3, a4} +// s2.Union(s1) = {a1, a2, a3, a4} +func (s1 Int) Union(s2 Int) Int { + result := NewInt() + for key := range s1 { + result.Insert(key) + } + for key := range s2 { + result.Insert(key) + } + return result +} + +// Intersection returns a new set which includes the item in BOTH s1 and s2 +// For example: +// s1 = {a1, a2} +// s2 = {a2, a3} +// s1.Intersection(s2) = {a2} +func (s1 Int) Intersection(s2 Int) Int { + var walk, other Int + result := NewInt() + if s1.Len() < s2.Len() { + walk = s1 + other = s2 + } else { + walk = s2 + other = s1 + } + for key := range walk { + if other.Has(key) { + result.Insert(key) + } + } + return result +} + +// IsSuperset returns true if and only if s1 is a superset of s2. +func (s1 Int) IsSuperset(s2 Int) bool { + for item := range s2 { + if !s1.Has(item) { + return false + } + } + return true +} + +// Equal returns true if and only if s1 is equal (as a set) to s2. +// Two sets are equal if their membership is identical. +// (In practice, this means same elements, order doesn't matter) +func (s1 Int) Equal(s2 Int) bool { + return len(s1) == len(s2) && s1.IsSuperset(s2) +} + +type sortableSliceOfInt []int + +func (s sortableSliceOfInt) Len() int { return len(s) } +func (s sortableSliceOfInt) Less(i, j int) bool { return lessInt(s[i], s[j]) } +func (s sortableSliceOfInt) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +// List returns the contents as a sorted int slice. +func (s Int) List() []int { + res := make(sortableSliceOfInt, 0, len(s)) + for key := range s { + res = append(res, key) + } + sort.Sort(res) + return []int(res) +} + +// Returns a single element from the set. +func (s Int) PopAny() (int, bool) { + for key := range s { + s.Delete(key) + return key, true + } + var zeroValue int + return zeroValue, false +} + +// Len returns the size of the set. +func (s Int) Len() int { + return len(s) +} + +func lessInt(lhs, rhs int) bool { + return lhs < rhs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/int64.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/int64.go new file mode 100644 index 0000000000..b6a97e70d8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/int64.go @@ -0,0 +1,194 @@ +/* +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 set-gen. Do not edit it manually! + +package sets + +import ( + "reflect" + "sort" +) + +// sets.Int64 is a set of int64s, implemented via map[int64]struct{} for minimal memory consumption. +type Int64 map[int64]Empty + +// New creates a Int64 from a list of values. +func NewInt64(items ...int64) Int64 { + ss := Int64{} + ss.Insert(items...) + return ss +} + +// Int64KeySet creates a Int64 from a keys of a map[int64](? extends interface{}). +// If the value passed in is not actually a map, this will panic. +func Int64KeySet(theMap interface{}) Int64 { + v := reflect.ValueOf(theMap) + ret := Int64{} + + for _, keyValue := range v.MapKeys() { + ret.Insert(keyValue.Interface().(int64)) + } + return ret +} + +// Insert adds items to the set. +func (s Int64) Insert(items ...int64) { + for _, item := range items { + s[item] = Empty{} + } +} + +// Delete removes all items from the set. +func (s Int64) Delete(items ...int64) { + for _, item := range items { + delete(s, item) + } +} + +// Has returns true if and only if item is contained in the set. +func (s Int64) Has(item int64) bool { + _, contained := s[item] + return contained +} + +// HasAll returns true if and only if all items are contained in the set. +func (s Int64) HasAll(items ...int64) bool { + for _, item := range items { + if !s.Has(item) { + return false + } + } + return true +} + +// HasAny returns true if any items are contained in the set. +func (s Int64) HasAny(items ...int64) bool { + for _, item := range items { + if s.Has(item) { + return true + } + } + return false +} + +// Difference returns a set of objects that are not in s2 +// For example: +// s1 = {a1, a2, a3} +// s2 = {a1, a2, a4, a5} +// s1.Difference(s2) = {a3} +// s2.Difference(s1) = {a4, a5} +func (s Int64) Difference(s2 Int64) Int64 { + result := NewInt64() + for key := range s { + if !s2.Has(key) { + result.Insert(key) + } + } + return result +} + +// Union returns a new set which includes items in either s1 or s2. +// For example: +// s1 = {a1, a2} +// s2 = {a3, a4} +// s1.Union(s2) = {a1, a2, a3, a4} +// s2.Union(s1) = {a1, a2, a3, a4} +func (s1 Int64) Union(s2 Int64) Int64 { + result := NewInt64() + for key := range s1 { + result.Insert(key) + } + for key := range s2 { + result.Insert(key) + } + return result +} + +// Intersection returns a new set which includes the item in BOTH s1 and s2 +// For example: +// s1 = {a1, a2} +// s2 = {a2, a3} +// s1.Intersection(s2) = {a2} +func (s1 Int64) Intersection(s2 Int64) Int64 { + var walk, other Int64 + result := NewInt64() + if s1.Len() < s2.Len() { + walk = s1 + other = s2 + } else { + walk = s2 + other = s1 + } + for key := range walk { + if other.Has(key) { + result.Insert(key) + } + } + return result +} + +// IsSuperset returns true if and only if s1 is a superset of s2. +func (s1 Int64) IsSuperset(s2 Int64) bool { + for item := range s2 { + if !s1.Has(item) { + return false + } + } + return true +} + +// Equal returns true if and only if s1 is equal (as a set) to s2. +// Two sets are equal if their membership is identical. +// (In practice, this means same elements, order doesn't matter) +func (s1 Int64) Equal(s2 Int64) bool { + return len(s1) == len(s2) && s1.IsSuperset(s2) +} + +type sortableSliceOfInt64 []int64 + +func (s sortableSliceOfInt64) Len() int { return len(s) } +func (s sortableSliceOfInt64) Less(i, j int) bool { return lessInt64(s[i], s[j]) } +func (s sortableSliceOfInt64) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +// List returns the contents as a sorted int64 slice. +func (s Int64) List() []int64 { + res := make(sortableSliceOfInt64, 0, len(s)) + for key := range s { + res = append(res, key) + } + sort.Sort(res) + return []int64(res) +} + +// Returns a single element from the set. +func (s Int64) PopAny() (int64, bool) { + for key := range s { + s.Delete(key) + return key, true + } + var zeroValue int64 + return zeroValue, false +} + +// Len returns the size of the set. +func (s Int64) Len() int { + return len(s) +} + +func lessInt64(lhs, rhs int64) bool { + return lhs < rhs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/string.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/string.go new file mode 100644 index 0000000000..2094b3205e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/sets/string.go @@ -0,0 +1,194 @@ +/* +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 set-gen. Do not edit it manually! + +package sets + +import ( + "reflect" + "sort" +) + +// sets.String is a set of strings, implemented via map[string]struct{} for minimal memory consumption. +type String map[string]Empty + +// New creates a String from a list of values. +func NewString(items ...string) String { + ss := String{} + ss.Insert(items...) + return ss +} + +// StringKeySet creates a String from a keys of a map[string](? extends interface{}). +// If the value passed in is not actually a map, this will panic. +func StringKeySet(theMap interface{}) String { + v := reflect.ValueOf(theMap) + ret := String{} + + for _, keyValue := range v.MapKeys() { + ret.Insert(keyValue.Interface().(string)) + } + return ret +} + +// Insert adds items to the set. +func (s String) Insert(items ...string) { + for _, item := range items { + s[item] = Empty{} + } +} + +// Delete removes all items from the set. +func (s String) Delete(items ...string) { + for _, item := range items { + delete(s, item) + } +} + +// Has returns true if and only if item is contained in the set. +func (s String) Has(item string) bool { + _, contained := s[item] + return contained +} + +// HasAll returns true if and only if all items are contained in the set. +func (s String) HasAll(items ...string) bool { + for _, item := range items { + if !s.Has(item) { + return false + } + } + return true +} + +// HasAny returns true if any items are contained in the set. +func (s String) HasAny(items ...string) bool { + for _, item := range items { + if s.Has(item) { + return true + } + } + return false +} + +// Difference returns a set of objects that are not in s2 +// For example: +// s1 = {a1, a2, a3} +// s2 = {a1, a2, a4, a5} +// s1.Difference(s2) = {a3} +// s2.Difference(s1) = {a4, a5} +func (s String) Difference(s2 String) String { + result := NewString() + for key := range s { + if !s2.Has(key) { + result.Insert(key) + } + } + return result +} + +// Union returns a new set which includes items in either s1 or s2. +// For example: +// s1 = {a1, a2} +// s2 = {a3, a4} +// s1.Union(s2) = {a1, a2, a3, a4} +// s2.Union(s1) = {a1, a2, a3, a4} +func (s1 String) Union(s2 String) String { + result := NewString() + for key := range s1 { + result.Insert(key) + } + for key := range s2 { + result.Insert(key) + } + return result +} + +// Intersection returns a new set which includes the item in BOTH s1 and s2 +// For example: +// s1 = {a1, a2} +// s2 = {a2, a3} +// s1.Intersection(s2) = {a2} +func (s1 String) Intersection(s2 String) String { + var walk, other String + result := NewString() + if s1.Len() < s2.Len() { + walk = s1 + other = s2 + } else { + walk = s2 + other = s1 + } + for key := range walk { + if other.Has(key) { + result.Insert(key) + } + } + return result +} + +// IsSuperset returns true if and only if s1 is a superset of s2. +func (s1 String) IsSuperset(s2 String) bool { + for item := range s2 { + if !s1.Has(item) { + return false + } + } + return true +} + +// Equal returns true if and only if s1 is equal (as a set) to s2. +// Two sets are equal if their membership is identical. +// (In practice, this means same elements, order doesn't matter) +func (s1 String) Equal(s2 String) bool { + return len(s1) == len(s2) && s1.IsSuperset(s2) +} + +type sortableSliceOfString []string + +func (s sortableSliceOfString) Len() int { return len(s) } +func (s sortableSliceOfString) Less(i, j int) bool { return lessString(s[i], s[j]) } +func (s sortableSliceOfString) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +// List returns the contents as a sorted string slice. +func (s String) List() []string { + res := make(sortableSliceOfString, 0, len(s)) + for key := range s { + res = append(res, key) + } + sort.Sort(res) + return []string(res) +} + +// Returns a single element from the set. +func (s String) PopAny() (string, bool) { + for key := range s { + s.Delete(key) + return key, true + } + var zeroValue string + return zeroValue, false +} + +// Len returns the size of the set. +func (s String) Len() int { + return len(s) +} + +func lessString(lhs, rhs string) bool { + return lhs < rhs +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/string_flag.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/string_flag.go new file mode 100644 index 0000000000..9d6a00a159 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/string_flag.go @@ -0,0 +1,56 @@ +/* +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 util + +// StringFlag is a string flag compatible with flags and pflags that keeps track of whether it had a value supplied or not. +type StringFlag struct { + // If Set has been invoked this value is true + provided bool + // The exact value provided on the flag + value string +} + +func NewStringFlag(defaultVal string) StringFlag { + return StringFlag{value: defaultVal} +} + +func (f *StringFlag) Default(value string) { + f.value = value +} + +func (f StringFlag) String() string { + return f.value +} + +func (f StringFlag) Value() string { + return f.value +} + +func (f *StringFlag) Set(value string) error { + f.value = value + f.provided = true + + return nil +} + +func (f StringFlag) Provided() bool { + return f.provided +} + +func (f *StringFlag) Type() string { + return "string" +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/template.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/template.go new file mode 100644 index 0000000000..d09d7dc867 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/template.go @@ -0,0 +1,48 @@ +/* +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 util + +import ( + "bytes" + "go/doc" + "io" + "strings" + "text/template" +) + +func wrap(indent string, s string) string { + var buf bytes.Buffer + doc.ToText(&buf, s, indent, indent+" ", 80-len(indent)) + return buf.String() +} + +// ExecuteTemplate executes templateText with data and output written to w. +func ExecuteTemplate(w io.Writer, templateText string, data interface{}) error { + t := template.New("top") + t.Funcs(template.FuncMap{ + "trim": strings.TrimSpace, + "wrap": wrap, + }) + template.Must(t.Parse(templateText)) + return t.Execute(w, data) +} + +func ExecuteTemplateToString(templateText string, data interface{}) (string, error) { + b := bytes.Buffer{} + err := ExecuteTemplate(&b, templateText, data) + return b.String(), err +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/trace.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/trace.go new file mode 100644 index 0000000000..fe93db8df6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/trace.go @@ -0,0 +1,72 @@ +/* +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 util + +import ( + "bytes" + "fmt" + "time" + + "github.com/golang/glog" +) + +type traceStep struct { + stepTime time.Time + msg string +} + +type Trace struct { + name string + startTime time.Time + steps []traceStep +} + +func NewTrace(name string) *Trace { + return &Trace{name, time.Now(), nil} +} + +func (t *Trace) Step(msg string) { + if t.steps == nil { + // traces almost always have less than 6 steps, do this to avoid more than a single allocation + t.steps = make([]traceStep, 0, 6) + } + t.steps = append(t.steps, traceStep{time.Now(), msg}) +} + +func (t *Trace) Log() { + endTime := time.Now() + var buffer bytes.Buffer + + buffer.WriteString(fmt.Sprintf("Trace %q (started %v):\n", t.name, t.startTime)) + lastStepTime := t.startTime + for _, step := range t.steps { + buffer.WriteString(fmt.Sprintf("[%v] [%v] %v\n", step.stepTime.Sub(t.startTime), step.stepTime.Sub(lastStepTime), step.msg)) + lastStepTime = step.stepTime + } + buffer.WriteString(fmt.Sprintf("[%v] [%v] END\n", endTime.Sub(t.startTime), endTime.Sub(lastStepTime))) + glog.Info(buffer.String()) +} + +func (t *Trace) LogIfLong(threshold time.Duration) { + if time.Since(t.startTime) >= threshold { + t.Log() + } +} + +func (t *Trace) TotalTime() time.Duration { + return time.Since(t.startTime) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/umask.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/umask.go new file mode 100644 index 0000000000..35ccce50bd --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/umask.go @@ -0,0 +1,27 @@ +// +build !windows + +/* +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 util + +import ( + "syscall" +) + +func Umask(mask int) (old int, err error) { + return syscall.Umask(mask), nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/umask_windows.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/umask_windows.go new file mode 100644 index 0000000000..8c1b2cbc7d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/umask_windows.go @@ -0,0 +1,27 @@ +// +build windows + +/* +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 util + +import ( + "errors" +) + +func Umask(mask int) (old int, err error) { + return 0, errors.New("platform and architecture is not supported") +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/util.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/util.go new file mode 100644 index 0000000000..7a94149578 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/util.go @@ -0,0 +1,147 @@ +/* +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 util + +import ( + "fmt" + "os" + "reflect" + "regexp" +) + +// Takes a list of strings and compiles them into a list of regular expressions +func CompileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) { + regexps := []*regexp.Regexp{} + for _, regexpStr := range regexpStrings { + r, err := regexp.Compile(regexpStr) + if err != nil { + return []*regexp.Regexp{}, err + } + regexps = append(regexps, r) + } + return regexps, nil +} + +// Detects if using systemd as the init system +// Please note that simply reading /proc/1/cmdline can be misleading because +// some installation of various init programs can automatically make /sbin/init +// a symlink or even a renamed version of their main program. +// TODO(dchen1107): realiably detects the init system using on the system: +// systemd, upstart, initd, etc. +func UsingSystemdInitSystem() bool { + if _, err := os.Stat("/run/systemd/system"); err == nil { + return true + } + + return false +} + +// Tests whether all pointer fields in a struct are nil. This is useful when, +// for example, an API struct is handled by plugins which need to distinguish +// "no plugin accepted this spec" from "this spec is empty". +// +// This function is only valid for structs and pointers to structs. Any other +// type will cause a panic. Passing a typed nil pointer will return true. +func AllPtrFieldsNil(obj interface{}) bool { + v := reflect.ValueOf(obj) + if !v.IsValid() { + panic(fmt.Sprintf("reflect.ValueOf() produced a non-valid Value for %#v", obj)) + } + if v.Kind() == reflect.Ptr { + if v.IsNil() { + return true + } + v = v.Elem() + } + for i := 0; i < v.NumField(); i++ { + if v.Field(i).Kind() == reflect.Ptr && !v.Field(i).IsNil() { + return false + } + } + return true +} + +func FileExists(filename string) (bool, error) { + if _, err := os.Stat(filename); os.IsNotExist(err) { + return false, nil + } else if err != nil { + return false, err + } + return true, nil +} + +// borrowed from ioutil.ReadDir +// ReadDir reads the directory named by dirname and returns +// a list of directory entries, minus those with lstat errors +func ReadDirNoExit(dirname string) ([]os.FileInfo, []error, error) { + if dirname == "" { + dirname = "." + } + + f, err := os.Open(dirname) + if err != nil { + return nil, nil, err + } + defer f.Close() + + names, err := f.Readdirnames(-1) + list := make([]os.FileInfo, 0, len(names)) + errs := make([]error, 0, len(names)) + for _, filename := range names { + fip, lerr := os.Lstat(dirname + "/" + filename) + if os.IsNotExist(lerr) { + // File disappeared between readdir + stat. + // Just treat it as if it didn't exist. + continue + } + + list = append(list, fip) + errs = append(errs, lerr) + } + + return list, errs, nil +} + +// IntPtr returns a pointer to an int +func IntPtr(i int) *int { + o := i + return &o +} + +// Int32Ptr returns a pointer to an int32 +func Int32Ptr(i int32) *int32 { + o := i + return &o +} + +// IntPtrDerefOr dereference the int ptr and returns it i not nil, +// else returns def. +func IntPtrDerefOr(ptr *int, def int) int { + if ptr != nil { + return *ptr + } + return def +} + +// Int32PtrDerefOr dereference the int32 ptr and returns it i not nil, +// else returns def. +func Int32PtrDerefOr(ptr *int32, def int32) int32 { + if ptr != nil { + return *ptr + } + return def +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/uuid/uuid.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/uuid/uuid.go new file mode 100644 index 0000000000..bcbf6ab5f3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/uuid/uuid.go @@ -0,0 +1,42 @@ +/* +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 uuid + +import ( + "sync" + + "github.com/pborman/uuid" + "k8s.io/client-go/1.4/pkg/types" +) + +var uuidLock sync.Mutex +var lastUUID uuid.UUID + +func NewUUID() types.UID { + uuidLock.Lock() + defer uuidLock.Unlock() + result := uuid.NewUUID() + // The UUID package is naive and can generate identical UUIDs if the + // time interval is quick enough. + // The UUID uses 100 ns increments so it's short enough to actively + // wait for a new value. + for uuid.Equal(lastUUID, result) == true { + result = uuid.NewUUID() + } + lastUUID = result + return types.UID(result.String()) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field/errors.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field/errors.go new file mode 100644 index 0000000000..76e441e015 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field/errors.go @@ -0,0 +1,228 @@ +/* +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 field + +import ( + "encoding/json" + "fmt" + "strings" + + utilerrors "k8s.io/client-go/1.4/pkg/util/errors" +) + +// Error is an implementation of the 'error' interface, which represents a +// field-level validation error. +type Error struct { + Type ErrorType + Field string + BadValue interface{} + Detail string +} + +var _ error = &Error{} + +// Error implements the error interface. +func (v *Error) Error() string { + return fmt.Sprintf("%s: %s", v.Field, v.ErrorBody()) +} + +// ErrorBody returns the error message without the field name. This is useful +// for building nice-looking higher-level error reporting. +func (v *Error) ErrorBody() string { + var s string + switch v.Type { + case ErrorTypeRequired, ErrorTypeForbidden, ErrorTypeTooLong, ErrorTypeInternal: + s = fmt.Sprintf("%s", v.Type) + default: + var bad string + badBytes, err := json.Marshal(v.BadValue) + if err != nil { + bad = err.Error() + } else { + bad = string(badBytes) + } + s = fmt.Sprintf("%s: %s", v.Type, bad) + } + if len(v.Detail) != 0 { + s += fmt.Sprintf(": %s", v.Detail) + } + return s +} + +// ErrorType is a machine readable value providing more detail about why +// a field is invalid. These values are expected to match 1-1 with +// CauseType in api/types.go. +type ErrorType string + +// TODO: These values are duplicated in api/types.go, but there's a circular dep. Fix it. +const ( + // ErrorTypeNotFound is used to report failure to find a requested value + // (e.g. looking up an ID). See NotFound(). + ErrorTypeNotFound ErrorType = "FieldValueNotFound" + // ErrorTypeRequired is used to report required values that are not + // provided (e.g. empty strings, null values, or empty arrays). See + // Required(). + ErrorTypeRequired ErrorType = "FieldValueRequired" + // ErrorTypeDuplicate is used to report collisions of values that must be + // unique (e.g. unique IDs). See Duplicate(). + ErrorTypeDuplicate ErrorType = "FieldValueDuplicate" + // ErrorTypeInvalid is used to report malformed values (e.g. failed regex + // match, too long, out of bounds). See Invalid(). + ErrorTypeInvalid ErrorType = "FieldValueInvalid" + // ErrorTypeNotSupported is used to report unknown values for enumerated + // fields (e.g. a list of valid values). See NotSupported(). + ErrorTypeNotSupported ErrorType = "FieldValueNotSupported" + // ErrorTypeForbidden is used to report valid (as per formatting rules) + // values which would be accepted under some conditions, but which are not + // permitted by the current conditions (such as security policy). See + // Forbidden(). + ErrorTypeForbidden ErrorType = "FieldValueForbidden" + // ErrorTypeTooLong is used to report that the given value is too long. + // This is similar to ErrorTypeInvalid, but the error will not include the + // too-long value. See TooLong(). + ErrorTypeTooLong ErrorType = "FieldValueTooLong" + // ErrorTypeInternal is used to report other errors that are not related + // to user input. See InternalError(). + ErrorTypeInternal ErrorType = "InternalError" +) + +// String converts a ErrorType into its corresponding canonical error message. +func (t ErrorType) String() string { + switch t { + case ErrorTypeNotFound: + return "Not found" + case ErrorTypeRequired: + return "Required value" + case ErrorTypeDuplicate: + return "Duplicate value" + case ErrorTypeInvalid: + return "Invalid value" + case ErrorTypeNotSupported: + return "Unsupported value" + case ErrorTypeForbidden: + return "Forbidden" + case ErrorTypeTooLong: + return "Too long" + case ErrorTypeInternal: + return "Internal error" + default: + panic(fmt.Sprintf("unrecognized validation error: %q", string(t))) + } +} + +// NotFound returns a *Error indicating "value not found". This is +// used to report failure to find a requested value (e.g. looking up an ID). +func NotFound(field *Path, value interface{}) *Error { + return &Error{ErrorTypeNotFound, field.String(), value, ""} +} + +// Required returns a *Error indicating "value required". This is used +// to report required values that are not provided (e.g. empty strings, null +// values, or empty arrays). +func Required(field *Path, detail string) *Error { + return &Error{ErrorTypeRequired, field.String(), "", detail} +} + +// Duplicate returns a *Error indicating "duplicate value". This is +// used to report collisions of values that must be unique (e.g. names or IDs). +func Duplicate(field *Path, value interface{}) *Error { + return &Error{ErrorTypeDuplicate, field.String(), value, ""} +} + +// Invalid returns a *Error indicating "invalid value". This is used +// to report malformed values (e.g. failed regex match, too long, out of bounds). +func Invalid(field *Path, value interface{}, detail string) *Error { + return &Error{ErrorTypeInvalid, field.String(), value, detail} +} + +// NotSupported returns a *Error indicating "unsupported value". +// This is used to report unknown values for enumerated fields (e.g. a list of +// valid values). +func NotSupported(field *Path, value interface{}, validValues []string) *Error { + detail := "" + if validValues != nil && len(validValues) > 0 { + detail = "supported values: " + strings.Join(validValues, ", ") + } + return &Error{ErrorTypeNotSupported, field.String(), value, detail} +} + +// Forbidden returns a *Error indicating "forbidden". This is used to +// report valid (as per formatting rules) values which would be accepted under +// some conditions, but which are not permitted by current conditions (e.g. +// security policy). +func Forbidden(field *Path, detail string) *Error { + return &Error{ErrorTypeForbidden, field.String(), "", detail} +} + +// TooLong returns a *Error indicating "too long". This is used to +// report that the given value is too long. This is similar to +// Invalid, but the returned error will not include the too-long +// value. +func TooLong(field *Path, value interface{}, maxLength int) *Error { + return &Error{ErrorTypeTooLong, field.String(), value, fmt.Sprintf("must have at most %d characters", maxLength)} +} + +// InternalError returns a *Error indicating "internal error". This is used +// to signal that an error was found that was not directly related to user +// input. The err argument must be non-nil. +func InternalError(field *Path, err error) *Error { + return &Error{ErrorTypeInternal, field.String(), nil, err.Error()} +} + +// ErrorList holds a set of Errors. It is plausible that we might one day have +// non-field errors in this same umbrella package, but for now we don't, so +// we can keep it simple and leave ErrorList here. +type ErrorList []*Error + +// NewErrorTypeMatcher returns an errors.Matcher that returns true +// if the provided error is a Error and has the provided ErrorType. +func NewErrorTypeMatcher(t ErrorType) utilerrors.Matcher { + return func(err error) bool { + if e, ok := err.(*Error); ok { + return e.Type == t + } + return false + } +} + +// ToAggregate converts the ErrorList into an errors.Aggregate. +func (list ErrorList) ToAggregate() utilerrors.Aggregate { + errs := make([]error, len(list)) + for i := range list { + errs[i] = list[i] + } + return utilerrors.NewAggregate(errs) +} + +func fromAggregate(agg utilerrors.Aggregate) ErrorList { + errs := agg.Errors() + list := make(ErrorList, len(errs)) + for i := range errs { + list[i] = errs[i].(*Error) + } + return list +} + +// Filter removes items from the ErrorList that match the provided fns. +func (list ErrorList) Filter(fns ...utilerrors.Matcher) ErrorList { + err := utilerrors.FilterOut(list.ToAggregate(), fns...) + if err == nil { + return nil + } + // FilterOut takes an Aggregate and returns an Aggregate + return fromAggregate(err.(utilerrors.Aggregate)) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field/path.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field/path.go new file mode 100644 index 0000000000..2efc8eec76 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/field/path.go @@ -0,0 +1,91 @@ +/* +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 field + +import ( + "bytes" + "fmt" + "strconv" +) + +// Path represents the path from some root to a particular field. +type Path struct { + name string // the name of this field or "" if this is an index + index string // if name == "", this is a subscript (index or map key) of the previous element + parent *Path // nil if this is the root element +} + +// NewPath creates a root Path object. +func NewPath(name string, moreNames ...string) *Path { + r := &Path{name: name, parent: nil} + for _, anotherName := range moreNames { + r = &Path{name: anotherName, parent: r} + } + return r +} + +// Root returns the root element of this Path. +func (p *Path) Root() *Path { + for ; p.parent != nil; p = p.parent { + // Do nothing. + } + return p +} + +// Child creates a new Path that is a child of the method receiver. +func (p *Path) Child(name string, moreNames ...string) *Path { + r := NewPath(name, moreNames...) + r.Root().parent = p + return r +} + +// Index indicates that the previous Path is to be subscripted by an int. +// This sets the same underlying value as Key. +func (p *Path) Index(index int) *Path { + return &Path{index: strconv.Itoa(index), parent: p} +} + +// Key indicates that the previous Path is to be subscripted by a string. +// This sets the same underlying value as Index. +func (p *Path) Key(key string) *Path { + return &Path{index: key, parent: p} +} + +// String produces a string representation of the Path. +func (p *Path) String() string { + // make a slice to iterate + elems := []*Path{} + for ; p != nil; p = p.parent { + elems = append(elems, p) + } + + // iterate, but it has to be backwards + buf := bytes.NewBuffer(nil) + for i := range elems { + p := elems[len(elems)-1-i] + if p.parent != nil && len(p.name) > 0 { + // This is either the root or it is a subscript. + buf.WriteString(".") + } + if len(p.name) > 0 { + buf.WriteString(p.name) + } else { + fmt.Fprintf(buf, "[%s]", p.index) + } + } + return buf.String() +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/validation.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/validation.go new file mode 100644 index 0000000000..aac2357d74 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/validation/validation.go @@ -0,0 +1,334 @@ +/* +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 validation + +import ( + "fmt" + "math" + "net" + "regexp" + "strings" +) + +const qnameCharFmt string = "[A-Za-z0-9]" +const qnameExtCharFmt string = "[-A-Za-z0-9_.]" +const qualifiedNameFmt string = "(" + qnameCharFmt + qnameExtCharFmt + "*)?" + qnameCharFmt +const qualifiedNameMaxLength int = 63 + +var qualifiedNameRegexp = regexp.MustCompile("^" + qualifiedNameFmt + "$") + +// IsQualifiedName tests whether the value passed is what Kubernetes calls a +// "qualified name". This is a format used in various places throughout the +// system. If the value is not valid, a list of error strings is returned. +// Otherwise an empty list (or nil) is returned. +func IsQualifiedName(value string) []string { + var errs []string + parts := strings.Split(value, "/") + var name string + switch len(parts) { + case 1: + name = parts[0] + case 2: + var prefix string + prefix, name = parts[0], parts[1] + if len(prefix) == 0 { + errs = append(errs, "prefix part "+EmptyError()) + } else if msgs := IsDNS1123Subdomain(prefix); len(msgs) != 0 { + errs = append(errs, prefixEach(msgs, "prefix part ")...) + } + default: + return append(errs, RegexError(qualifiedNameFmt, "MyName", "my.name", "123-abc")+ + " with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName'") + } + + if len(name) == 0 { + errs = append(errs, "name part "+EmptyError()) + } else if len(name) > qualifiedNameMaxLength { + errs = append(errs, "name part "+MaxLenError(qualifiedNameMaxLength)) + } + if !qualifiedNameRegexp.MatchString(name) { + errs = append(errs, "name part "+RegexError(qualifiedNameFmt, "MyName", "my.name", "123-abc")) + } + return errs +} + +const labelValueFmt string = "(" + qualifiedNameFmt + ")?" +const LabelValueMaxLength int = 63 + +var labelValueRegexp = regexp.MustCompile("^" + labelValueFmt + "$") + +// IsValidLabelValue tests whether the value passed is a valid label value. If +// the value is not valid, a list of error strings is returned. Otherwise an +// empty list (or nil) is returned. +func IsValidLabelValue(value string) []string { + var errs []string + if len(value) > LabelValueMaxLength { + errs = append(errs, MaxLenError(LabelValueMaxLength)) + } + if !labelValueRegexp.MatchString(value) { + errs = append(errs, RegexError(labelValueFmt, "MyValue", "my_value", "12345")) + } + return errs +} + +const dns1123LabelFmt string = "[a-z0-9]([-a-z0-9]*[a-z0-9])?" +const DNS1123LabelMaxLength int = 63 + +var dns1123LabelRegexp = regexp.MustCompile("^" + dns1123LabelFmt + "$") + +// IsDNS1123Label tests for a string that conforms to the definition of a label in +// DNS (RFC 1123). +func IsDNS1123Label(value string) []string { + var errs []string + if len(value) > DNS1123LabelMaxLength { + errs = append(errs, MaxLenError(DNS1123LabelMaxLength)) + } + if !dns1123LabelRegexp.MatchString(value) { + errs = append(errs, RegexError(dns1123LabelFmt, "my-name", "123-abc")) + } + return errs +} + +const dns1123SubdomainFmt string = dns1123LabelFmt + "(\\." + dns1123LabelFmt + ")*" +const DNS1123SubdomainMaxLength int = 253 + +var dns1123SubdomainRegexp = regexp.MustCompile("^" + dns1123SubdomainFmt + "$") + +// IsDNS1123Subdomain tests for a string that conforms to the definition of a +// subdomain in DNS (RFC 1123). +func IsDNS1123Subdomain(value string) []string { + var errs []string + if len(value) > DNS1123SubdomainMaxLength { + errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength)) + } + if !dns1123SubdomainRegexp.MatchString(value) { + errs = append(errs, RegexError(dns1123SubdomainFmt, "example.com")) + } + return errs +} + +const dns1035LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?" +const DNS1035LabelMaxLength int = 63 + +var dns1035LabelRegexp = regexp.MustCompile("^" + dns1035LabelFmt + "$") + +// IsDNS1035Label tests for a string that conforms to the definition of a label in +// DNS (RFC 1035). +func IsDNS1035Label(value string) []string { + var errs []string + if len(value) > DNS1035LabelMaxLength { + errs = append(errs, MaxLenError(DNS1035LabelMaxLength)) + } + if !dns1035LabelRegexp.MatchString(value) { + errs = append(errs, RegexError(dns1035LabelFmt, "my-name", "abc-123")) + } + return errs +} + +// wildcard definition - RFC 1034 section 4.3.3. +// examples: +// - valid: *.bar.com, *.foo.bar.com +// - invalid: *.*.bar.com, *.foo.*.com, *bar.com, f*.bar.com, * +const wildcardDNF1123SubdomainFmt = "\\*\\." + dns1123SubdomainFmt + +// IsWildcardDNS1123Subdomain tests for a string that conforms to the definition of a +// wildcard subdomain in DNS (RFC 1034 section 4.3.3). +func IsWildcardDNS1123Subdomain(value string) []string { + wildcardDNS1123SubdomainRegexp := regexp.MustCompile("^\\*\\." + dns1123SubdomainFmt + "$") + + var errs []string + if len(value) > DNS1123SubdomainMaxLength { + errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength)) + } + if !wildcardDNS1123SubdomainRegexp.MatchString(value) { + errs = append(errs, RegexError(wildcardDNF1123SubdomainFmt, "*.example.com")) + } + return errs +} + +const cIdentifierFmt string = "[A-Za-z_][A-Za-z0-9_]*" + +var cIdentifierRegexp = regexp.MustCompile("^" + cIdentifierFmt + "$") + +// IsCIdentifier tests for a string that conforms the definition of an identifier +// in C. This checks the format, but not the length. +func IsCIdentifier(value string) []string { + if !cIdentifierRegexp.MatchString(value) { + return []string{RegexError(cIdentifierFmt, "my_name", "MY_NAME", "MyName")} + } + return nil +} + +// IsValidPortNum tests that the argument is a valid, non-zero port number. +func IsValidPortNum(port int) []string { + if 1 <= port && port <= 65535 { + return nil + } + return []string{InclusiveRangeError(1, 65535)} +} + +// Now in libcontainer UID/GID limits is 0 ~ 1<<31 - 1 +// TODO: once we have a type for UID/GID we should make these that type. +const ( + minUserID = 0 + maxUserID = math.MaxInt32 + minGroupID = 0 + maxGroupID = math.MaxInt32 +) + +// IsValidGroupId tests that the argument is a valid Unix GID. +func IsValidGroupId(gid int64) []string { + if minGroupID <= gid && gid <= maxGroupID { + return nil + } + return []string{InclusiveRangeError(minGroupID, maxGroupID)} +} + +// IsValidUserId tests that the argument is a valid Unix UID. +func IsValidUserId(uid int64) []string { + if minUserID <= uid && uid <= maxUserID { + return nil + } + return []string{InclusiveRangeError(minUserID, maxUserID)} +} + +var portNameCharsetRegex = regexp.MustCompile("^[-a-z0-9]+$") +var portNameOneLetterRegexp = regexp.MustCompile("[a-z]") + +// IsValidPortName check that the argument is valid syntax. It must be +// non-empty and no more than 15 characters long. It may contain only [-a-z0-9] +// and must contain at least one letter [a-z]. It must not start or end with a +// hyphen, nor contain adjacent hyphens. +// +// Note: We only allow lower-case characters, even though RFC 6335 is case +// insensitive. +func IsValidPortName(port string) []string { + var errs []string + if len(port) > 15 { + errs = append(errs, MaxLenError(15)) + } + if !portNameCharsetRegex.MatchString(port) { + errs = append(errs, "must contain only alpha-numeric characters (a-z, 0-9), and hyphens (-)") + } + if !portNameOneLetterRegexp.MatchString(port) { + errs = append(errs, "must contain at least one letter (a-z)") + } + if strings.Contains(port, "--") { + errs = append(errs, "must not contain consecutive hyphens") + } + if len(port) > 0 && (port[0] == '-' || port[len(port)-1] == '-') { + errs = append(errs, "must not begin or end with a hyphen") + } + return errs +} + +// IsValidIP tests that the argument is a valid IP address. +func IsValidIP(value string) []string { + if net.ParseIP(value) == nil { + return []string{"must be a valid IP address, (e.g. 10.9.8.7)"} + } + return nil +} + +const percentFmt string = "[0-9]+%" + +var percentRegexp = regexp.MustCompile("^" + percentFmt + "$") + +func IsValidPercent(percent string) []string { + if !percentRegexp.MatchString(percent) { + return []string{RegexError(percentFmt, "1%", "93%")} + } + return nil +} + +const httpHeaderNameFmt string = "[-A-Za-z0-9]+" + +var httpHeaderNameRegexp = regexp.MustCompile("^" + httpHeaderNameFmt + "$") + +// IsHTTPHeaderName checks that a string conforms to the Go HTTP library's +// definition of a valid header field name (a stricter subset than RFC7230). +func IsHTTPHeaderName(value string) []string { + if !httpHeaderNameRegexp.MatchString(value) { + return []string{RegexError(httpHeaderNameFmt, "X-Header-Name")} + } + return nil +} + +const configMapKeyFmt = `[-._a-zA-Z0-9]+` + +var configMapKeyRegexp = regexp.MustCompile("^" + configMapKeyFmt + "$") + +// IsConfigMapKey tests for a string that is a valid key for a ConfigMap or Secret +func IsConfigMapKey(value string) []string { + var errs []string + if len(value) > DNS1123SubdomainMaxLength { + errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength)) + } + if !configMapKeyRegexp.MatchString(value) { + errs = append(errs, RegexError(configMapKeyFmt, "key.name", "KEY_NAME", "key-name")) + } + if value == "." { + errs = append(errs, `must not be '.'`) + } + if value == ".." { + errs = append(errs, `must not be '..'`) + } else if strings.HasPrefix(value, "..") { + errs = append(errs, `must not start with '..'`) + } + return errs +} + +// MaxLenError returns a string explanation of a "string too long" validation +// failure. +func MaxLenError(length int) string { + return fmt.Sprintf("must be no more than %d characters", length) +} + +// RegexError returns a string explanation of a regex validation failure. +func RegexError(fmt string, examples ...string) string { + s := "must match the regex " + fmt + if len(examples) == 0 { + return s + } + s += " (e.g. " + for i := range examples { + if i > 0 { + s += " or " + } + s += "'" + examples[i] + "'" + } + return s + ")" +} + +// EmptyError returns a string explanation of a "must not be empty" validation +// failure. +func EmptyError() string { + return "must be non-empty" +} + +func prefixEach(msgs []string, prefix string) []string { + for i := range msgs { + msgs[i] = prefix + msgs[i] + } + return msgs +} + +// InclusiveRangeError returns a string explanation of a numeric "must be +// between" validation failure. +func InclusiveRangeError(lo, hi int) string { + return fmt.Sprintf(`must be between %d and %d, inclusive`, lo, hi) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait/doc.go new file mode 100644 index 0000000000..ff89dc170e --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait/doc.go @@ -0,0 +1,19 @@ +/* +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 wait provides tools for polling or listening for changes +// to a condition. +package wait diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait/wait.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait/wait.go new file mode 100644 index 0000000000..517577c8c8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/wait/wait.go @@ -0,0 +1,263 @@ +/* +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 wait + +import ( + "errors" + "math/rand" + "time" +) + +// For any test of the style: +// ... +// <- time.After(timeout): +// t.Errorf("Timed out") +// The value for timeout should effectively be "forever." Obviously we don't want our tests to truly lock up forever, but 30s +// is long enough that it is effectively forever for the things that can slow down a run on a heavily contended machine +// (GC, seeks, etc), but not so long as to make a developer ctrl-c a test run if they do happen to break that test. +var ForeverTestTimeout = time.Second * 30 + +// NeverStop may be passed to Until to make it never stop. +var NeverStop <-chan struct{} = make(chan struct{}) + +// Forever is syntactic sugar on top of Until +func Forever(f func(), period time.Duration) { + Until(f, period, NeverStop) +} + +// Until loops until stop channel is closed, running f every period. +// Until is syntactic sugar on top of JitterUntil with zero jitter +// factor, with sliding = true (which means the timer for period +// starts after the f completes). +func Until(f func(), period time.Duration, stopCh <-chan struct{}) { + JitterUntil(f, period, 0.0, true, stopCh) +} + +// NonSlidingUntil loops until stop channel is closed, running f every +// period. NonSlidingUntil is syntactic sugar on top of JitterUntil +// with zero jitter factor, with sliding = false (meaning the timer for +// period starts at the same time as the function starts). +func NonSlidingUntil(f func(), period time.Duration, stopCh <-chan struct{}) { + JitterUntil(f, period, 0.0, false, stopCh) +} + +// JitterUntil loops until stop channel is closed, running f every period. +// If jitterFactor is positive, the period is jittered before every run of f. +// If jitterFactor is not positive, the period is unchanged. +// Catches any panics, and keeps going. f may not be invoked if +// stop channel is already closed. Pass NeverStop to Until if you +// don't want it stop. +func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding bool, stopCh <-chan struct{}) { + for { + + select { + case <-stopCh: + return + default: + } + + jitteredPeriod := period + if jitterFactor > 0.0 { + jitteredPeriod = Jitter(period, jitterFactor) + } + + var t *time.Timer + if !sliding { + t = time.NewTimer(jitteredPeriod) + } + + func() { + f() + }() + + if sliding { + t = time.NewTimer(jitteredPeriod) + } + + // NOTE: b/c there is no priority selection in golang + // it is possible for this to race, meaning we could + // trigger t.C and stopCh, and t.C select falls through. + // In order to mitigate we re-check stopCh at the beginning + // of every loop to prevent extra executions of f(). + select { + case <-stopCh: + return + case <-t.C: + } + } +} + +// Jitter returns a time.Duration between duration and duration + maxFactor * duration, +// to allow clients to avoid converging on periodic behavior. If maxFactor is 0.0, a +// suggested default value will be chosen. +func Jitter(duration time.Duration, maxFactor float64) time.Duration { + if maxFactor <= 0.0 { + maxFactor = 1.0 + } + wait := duration + time.Duration(rand.Float64()*maxFactor*float64(duration)) + return wait +} + +// ErrWaitTimeout is returned when the condition exited without success +var ErrWaitTimeout = errors.New("timed out waiting for the condition") + +// ConditionFunc returns true if the condition is satisfied, or an error +// if the loop should be aborted. +type ConditionFunc func() (done bool, err error) + +// Backoff is parameters applied to a Backoff function. +type Backoff struct { + Duration time.Duration + Factor float64 + Jitter float64 + Steps int +} + +// ExponentialBackoff repeats a condition check up to steps times, increasing the wait +// by multipling the previous duration by factor. If jitter is greater than zero, +// a random amount of each duration is added (between duration and duration*(1+jitter)). +// If the condition never returns true, ErrWaitTimeout is returned. All other errors +// terminate immediately. +func ExponentialBackoff(backoff Backoff, condition ConditionFunc) error { + duration := backoff.Duration + for i := 0; i < backoff.Steps; i++ { + if i != 0 { + adjusted := duration + if backoff.Jitter > 0.0 { + adjusted = Jitter(duration, backoff.Jitter) + } + time.Sleep(adjusted) + duration = time.Duration(float64(duration) * backoff.Factor) + } + if ok, err := condition(); err != nil || ok { + return err + } + } + return ErrWaitTimeout +} + +// Poll tries a condition func until it returns true, an error, or the timeout +// is reached. condition will always be invoked at least once but some intervals +// may be missed if the condition takes too long or the time window is too short. +// If you want to Poll something forever, see PollInfinite. +// Poll always waits the interval before the first check of the condition. +func Poll(interval, timeout time.Duration, condition ConditionFunc) error { + return pollInternal(poller(interval, timeout), condition) +} + +func pollInternal(wait WaitFunc, condition ConditionFunc) error { + done := make(chan struct{}) + defer close(done) + return WaitFor(wait, condition, done) +} + +// PollImmediate is identical to Poll, except that it performs the first check +// immediately, not waiting interval beforehand. +func PollImmediate(interval, timeout time.Duration, condition ConditionFunc) error { + return pollImmediateInternal(poller(interval, timeout), condition) +} + +func pollImmediateInternal(wait WaitFunc, condition ConditionFunc) error { + done, err := condition() + if err != nil { + return err + } + if done { + return nil + } + return pollInternal(wait, condition) +} + +// PollInfinite polls forever. +func PollInfinite(interval time.Duration, condition ConditionFunc) error { + done := make(chan struct{}) + defer close(done) + return WaitFor(poller(interval, 0), condition, done) +} + +// WaitFunc creates a channel that receives an item every time a test +// should be executed and is closed when the last test should be invoked. +type WaitFunc func(done <-chan struct{}) <-chan struct{} + +// WaitFor gets a channel from wait(), and then invokes fn once for every value +// placed on the channel and once more when the channel is closed. If fn +// returns an error the loop ends and that error is returned, and if fn returns +// true the loop ends and nil is returned. ErrWaitTimeout will be returned if +// the channel is closed without fn ever returning true. +func WaitFor(wait WaitFunc, fn ConditionFunc, done <-chan struct{}) error { + c := wait(done) + for { + _, open := <-c + ok, err := fn() + if err != nil { + return err + } + if ok { + return nil + } + if !open { + break + } + } + return ErrWaitTimeout +} + +// poller returns a WaitFunc that will send to the channel every +// interval until timeout has elapsed and then close the channel. +// Over very short intervals you may receive no ticks before +// the channel is closed. If timeout is 0, the channel +// will never be closed. +func poller(interval, timeout time.Duration) WaitFunc { + return WaitFunc(func(done <-chan struct{}) <-chan struct{} { + ch := make(chan struct{}) + + go func() { + defer close(ch) + + tick := time.NewTicker(interval) + defer tick.Stop() + + var after <-chan time.Time + if timeout != 0 { + // time.After is more convenient, but it + // potentially leaves timers around much longer + // than necessary if we exit early. + timer := time.NewTimer(timeout) + after = timer.C + defer timer.Stop() + } + + for { + select { + case <-tick.C: + // If the consumer isn't ready for this signal drop it and + // check the other channels. + select { + case ch <- struct{}{}: + default: + } + case <-after: + return + case <-done: + return + } + } + }() + + return ch + }) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/yaml/decoder.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/yaml/decoder.go new file mode 100644 index 0000000000..6a9f05a587 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/util/yaml/decoder.go @@ -0,0 +1,247 @@ +/* +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 yaml + +import ( + "bufio" + "bytes" + "encoding/json" + "fmt" + "io" + "io/ioutil" + "strings" + "unicode" + + "github.com/ghodss/yaml" + "github.com/golang/glog" +) + +// ToJSON converts a single YAML document into a JSON document +// or returns an error. If the document appears to be JSON the +// YAML decoding path is not used (so that error messages are +// JSON specific). +func ToJSON(data []byte) ([]byte, error) { + if hasJSONPrefix(data) { + return data, nil + } + return yaml.YAMLToJSON(data) +} + +// YAMLToJSONDecoder decodes YAML documents from an io.Reader by +// separating individual documents. It first converts the YAML +// body to JSON, then unmarshals the JSON. +type YAMLToJSONDecoder struct { + scanner *bufio.Scanner +} + +// NewYAMLToJSONDecoder decodes YAML documents from the provided +// stream in chunks by converting each document (as defined by +// 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) + return &YAMLToJSONDecoder{ + scanner: scanner, + } +} + +// Decode reads a YAML document as JSON from the stream or returns +// 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()) + if err != nil { + return err + } + return json.Unmarshal(data, into) + } + err := d.scanner.Err() + if err == nil { + err = io.EOF + } + return err +} + +// YAMLDecoder reads chunks of objects and returns ErrShortBuffer if +// the data is not sufficient. +type YAMLDecoder struct { + r io.ReadCloser + scanner *bufio.Scanner + remaining []byte +} + +// NewDocumentDecoder decodes YAML documents from the provided +// stream in chunks by converting each document (as defined by +// the YAML spec) into its own chunk. io.ErrShortBuffer will be +// returned if the entire buffer could not be read to assist +// the caller in framing the chunk. +func NewDocumentDecoder(r io.ReadCloser) io.ReadCloser { + scanner := bufio.NewScanner(r) + scanner.Split(splitYAMLDocument) + return &YAMLDecoder{ + r: r, + scanner: scanner, + } +} + +// Read reads the previous slice into the buffer, or attempts to read +// the next chunk. +// TODO: switch to readline approach. +func (d *YAMLDecoder) Read(data []byte) (n int, err error) { + left := len(d.remaining) + if left == 0 { + // return the next chunk from the stream + if !d.scanner.Scan() { + err := d.scanner.Err() + if err == nil { + err = io.EOF + } + return 0, err + } + out := d.scanner.Bytes() + d.remaining = out + left = len(out) + } + + // fits within data + if left <= len(data) { + copy(data, d.remaining) + d.remaining = nil + return len(d.remaining), nil + } + + // caller will need to reread + copy(data, d.remaining[:left]) + d.remaining = d.remaining[left:] + return len(data), io.ErrShortBuffer +} + +func (d *YAMLDecoder) Close() error { + return d.r.Close() +} + +const yamlSeparator = "\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) { + if atEOF && len(data) == 0 { + return 0, nil, nil + } + sep := len([]byte(yamlSeparator)) + if i := bytes.Index(data, []byte(yamlSeparator)); i >= 0 { + // We have a potential document terminator + i += sep + after := data[i:] + if len(after) == 0 { + // we can't read any more characters + if atEOF { + return len(data), data[:len(data)-sep], nil + } + return 0, nil, nil + } + if j := bytes.IndexByte(after, '\n'); j >= 0 { + return i + j + 1, data[0 : i-sep], nil + } + return 0, nil, nil + } + // If we're at EOF, we have a final, non-terminated line. Return it. + if atEOF { + return len(data), data, nil + } + // Request more data. + return 0, nil, nil +} + +// decoder is a convenience interface for Decode. +type decoder interface { + Decode(into interface{}) error +} + +// YAMLOrJSONDecoder attempts to decode a stream of JSON documents or +// YAML documents by sniffing for a leading { character. +type YAMLOrJSONDecoder struct { + r io.Reader + bufferSize int + + decoder decoder +} + +// NewYAMLOrJSONDecoder returns a decoder that will process YAML documents +// or JSON documents from the given reader as a stream. bufferSize determines +// how far into the stream the decoder will look to figure out whether this +// is a JSON stream (has whitespace followed by an open brace). +func NewYAMLOrJSONDecoder(r io.Reader, bufferSize int) *YAMLOrJSONDecoder { + return &YAMLOrJSONDecoder{ + r: r, + bufferSize: bufferSize, + } +} + +// Decode unmarshals the next object from the underlying stream into the +// provide object, or returns an error. +func (d *YAMLOrJSONDecoder) Decode(into interface{}) error { + if d.decoder == nil { + buffer, isJSON := GuessJSONStream(d.r, d.bufferSize) + if isJSON { + glog.V(4).Infof("decoding stream as JSON") + d.decoder = json.NewDecoder(buffer) + } else { + glog.V(4).Infof("decoding stream as YAML") + d.decoder = NewYAMLToJSONDecoder(buffer) + } + } + err := d.decoder.Decode(into) + if jsonDecoder, ok := d.decoder.(*json.Decoder); ok { + if syntax, ok := err.(*json.SyntaxError); ok { + data, readErr := ioutil.ReadAll(jsonDecoder.Buffered()) + if readErr != nil { + glog.V(4).Infof("reading stream failed: %v", readErr) + } + js := string(data) + start := strings.LastIndex(js[:syntax.Offset], "\n") + 1 + line := strings.Count(js[:start], "\n") + return fmt.Errorf("json: line %d: %s", line, syntax.Error()) + } + } + return 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. +func GuessJSONStream(r io.Reader, size int) (io.Reader, bool) { + buffer := bufio.NewReaderSize(r, size) + b, _ := buffer.Peek(size) + return buffer, hasJSONPrefix(b) +} + +var jsonPrefix = []byte("{") + +// hasJSONPrefix returns true if the provided buffer appears to start with +// a JSON open brace. +func hasJSONPrefix(buf []byte) bool { + return hasPrefix(buf, jsonPrefix) +} + +// Return true if the first non-whitespace bytes in buf is +// prefix. +func hasPrefix(buf []byte, prefix []byte) bool { + trim := bytes.TrimLeftFunc(buf, unicode.IsSpace) + return bytes.HasPrefix(trim, prefix) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/.gitattributes b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/.gitattributes new file mode 100644 index 0000000000..7e349eff60 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/.gitattributes @@ -0,0 +1 @@ +base.go export-subst diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/base.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/base.go new file mode 100644 index 0000000000..c377705fe8 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/base.go @@ -0,0 +1,59 @@ +/* +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 version + +// Base version information. +// +// This is the fallback data used when version information from git is not +// provided via go ldflags. It provides an approximation of the Kubernetes +// version for ad-hoc builds (e.g. `go build`) that cannot get the version +// information from git. +// +// If you are looking at these fields in the git tree, they look +// strange. They are modified on the fly by the build process. The +// in-tree values are dummy values used for "git archive", which also +// works for GitHub tar downloads. +// +// When releasing a new Kubernetes version, this file is updated by +// build/mark_new_version.sh to reflect the new version, and then a +// git annotated tag (using format vX.Y where X == Major version and Y +// == Minor version) is created to point to the commit that updates +// pkg/version/base.go +var ( + // TODO: Deprecate gitMajor and gitMinor, use only gitVersion + // instead. First step in deprecation, keep the fields but make + // them irrelevant. (Next we'll take it out, which may muck with + // scripts consuming the kubectl version output - but most of + // these should be looking at gitVersion already anyways.) + gitMajor string = "" // major version, always numeric + gitMinor string = "" // minor version, numeric possibly followed by "+" + + // semantic version, derived by build scripts (see + // https://github.com/kubernetes/kubernetes/blob/master/docs/design/versioning.md + // for a detailed discussion of this field) + // + // TODO: This field is still called "gitVersion" for legacy + // reasons. For prerelease versions, the build metadata on the + // semantic version is a git hash, but the version itself is no + // longer the direct output of "git describe", but a slight + // translation to be semver compliant. + gitVersion string = "v0.0.0-master+$Format:%h$" + gitCommit string = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD) + gitTreeState string = "not a git tree" // state of git tree, either "clean" or "dirty" + + buildDate string = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ') +) diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/doc.go new file mode 100644 index 0000000000..ccedec76f6 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/doc.go @@ -0,0 +1,19 @@ +/* +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 version supplies version information collected at build time to +// kubernetes components. +package version diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/semver.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/semver.go new file mode 100644 index 0000000000..1f4067e217 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/semver.go @@ -0,0 +1,50 @@ +/* +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 version + +import ( + "strings" + "unicode" + + "github.com/blang/semver" + "github.com/golang/glog" +) + +func Parse(gitversion string) (semver.Version, error) { + // optionally trim leading spaces then one v + var seen bool + gitversion = strings.TrimLeftFunc(gitversion, func(ch rune) bool { + if seen { + return false + } + if ch == 'v' { + seen = true + return true + } + return unicode.IsSpace(ch) + }) + + return semver.Make(gitversion) +} + +func MustParse(gitversion string) semver.Version { + v, err := Parse(gitversion) + if err != nil { + glog.Fatalf("failed to parse semver from gitversion %q: %v", gitversion, err) + } + return v +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/version.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/version.go new file mode 100644 index 0000000000..fb4654c47d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/version/version.go @@ -0,0 +1,76 @@ +/* +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 version + +import ( + "fmt" + "runtime" + + "github.com/prometheus/client_golang/prometheus" +) + +// Info contains versioning information. +// TODO: Add []string of api versions supported? It's still unclear +// how we'll want to distribute that information. +type Info struct { + Major string `json:"major"` + Minor string `json:"minor"` + GitVersion string `json:"gitVersion"` + GitCommit string `json:"gitCommit"` + GitTreeState string `json:"gitTreeState"` + BuildDate string `json:"buildDate"` + GoVersion string `json:"goVersion"` + Compiler string `json:"compiler"` + Platform string `json:"platform"` +} + +// Get returns the overall codebase version. It's for detecting +// what code a binary was built from. +func Get() Info { + // These variables typically come from -ldflags settings and in + // their absence fallback to the settings in pkg/version/base.go + return Info{ + Major: gitMajor, + Minor: gitMinor, + GitVersion: gitVersion, + GitCommit: gitCommit, + GitTreeState: gitTreeState, + BuildDate: buildDate, + GoVersion: runtime.Version(), + Compiler: runtime.Compiler, + Platform: fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH), + } +} + +// String returns info as a human-friendly version string. +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/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/doc.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/doc.go new file mode 100644 index 0000000000..5fde5e7427 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/doc.go @@ -0,0 +1,19 @@ +/* +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 watch contains a generic watchable interface, and a fake for +// testing code that uses the watch interface. +package watch diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/filter.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/filter.go new file mode 100644 index 0000000000..3ca27f22c5 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/filter.go @@ -0,0 +1,109 @@ +/* +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 watch + +import ( + "sync" +) + +// FilterFunc should take an event, possibly modify it in some way, and return +// the modified event. If the event should be ignored, then return keep=false. +type FilterFunc func(in Event) (out Event, keep bool) + +// Filter passes all events through f before allowing them to pass on. +// Putting a filter on a watch, as an unavoidable side-effect due to the way +// go channels work, effectively causes the watch's event channel to have its +// queue length increased by one. +// +// WARNING: filter has a fatal flaw, in that it can't properly update the +// Type field (Add/Modified/Deleted) to reflect items beginning to pass the +// filter when they previously didn't. +// +func Filter(w Interface, f FilterFunc) Interface { + fw := &filteredWatch{ + incoming: w, + result: make(chan Event), + f: f, + } + go fw.loop() + return fw +} + +type filteredWatch struct { + incoming Interface + result chan Event + f FilterFunc +} + +// ResultChan returns a channel which will receive filtered events. +func (fw *filteredWatch) ResultChan() <-chan Event { + return fw.result +} + +// Stop stops the upstream watch, which will eventually stop this watch. +func (fw *filteredWatch) Stop() { + fw.incoming.Stop() +} + +// loop waits for new values, filters them, and resends them. +func (fw *filteredWatch) loop() { + defer close(fw.result) + for { + event, ok := <-fw.incoming.ResultChan() + if !ok { + break + } + filtered, keep := fw.f(event) + if keep { + fw.result <- filtered + } + } +} + +// Recorder records all events that are sent from the watch until it is closed. +type Recorder struct { + Interface + + lock sync.Mutex + events []Event +} + +var _ Interface = &Recorder{} + +// NewRecorder wraps an Interface and records any changes sent across it. +func NewRecorder(w Interface) *Recorder { + r := &Recorder{} + r.Interface = Filter(w, r.record) + return r +} + +// record is a FilterFunc and tracks each received event. +func (r *Recorder) record(in Event) (Event, bool) { + r.lock.Lock() + defer r.lock.Unlock() + r.events = append(r.events, in) + return in, true +} + +// Events returns a copy of the events sent across this recorder. +func (r *Recorder) Events() []Event { + r.lock.Lock() + defer r.lock.Unlock() + copied := make([]Event, len(r.events)) + copy(copied, r.events) + return copied +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/mux.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/mux.go new file mode 100644 index 0000000000..1bee998267 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/mux.go @@ -0,0 +1,257 @@ +/* +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 watch + +import ( + "sync" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// FullChannelBehavior controls how the Broadcaster reacts if a watcher's watch +// channel is full. +type FullChannelBehavior int + +const ( + WaitIfChannelFull FullChannelBehavior = iota + DropIfChannelFull +) + +// Buffer the incoming queue a little bit even though it should rarely ever accumulate +// anything, just in case a few events are received in such a short window that +// Broadcaster can't move them onto the watchers' queues fast enough. +const incomingQueueLength = 25 + +// Broadcaster distributes event notifications among any number of watchers. Every event +// is delivered to every watcher. +type Broadcaster struct { + // TODO: see if this lock is needed now that new watchers go through + // the incoming channel. + lock sync.Mutex + + watchers map[int64]*broadcasterWatcher + nextWatcher int64 + distributing sync.WaitGroup + + incoming chan Event + + // How large to make watcher's channel. + watchQueueLength int + // If one of the watch channels is full, don't wait for it to become empty. + // Instead just deliver it to the watchers that do have space in their + // channels and move on to the next event. + // It's more fair to do this on a per-watcher basis than to do it on the + // "incoming" channel, which would allow one slow watcher to prevent all + // other watchers from getting new events. + fullChannelBehavior FullChannelBehavior +} + +// NewBroadcaster creates a new Broadcaster. queueLength is the maximum number of events to queue per watcher. +// It is guaranteed that events will be distributed in the order in which they occur, +// but the order in which a single event is distributed among all of the watchers is unspecified. +func NewBroadcaster(queueLength int, fullChannelBehavior FullChannelBehavior) *Broadcaster { + m := &Broadcaster{ + watchers: map[int64]*broadcasterWatcher{}, + incoming: make(chan Event, incomingQueueLength), + watchQueueLength: queueLength, + fullChannelBehavior: fullChannelBehavior, + } + m.distributing.Add(1) + go m.loop() + return m +} + +const internalRunFunctionMarker = "internal-do-function" + +// a function type we can shoehorn into the queue. +type functionFakeRuntimeObject func() + +func (obj functionFakeRuntimeObject) GetObjectKind() unversioned.ObjectKind { + return unversioned.EmptyObjectKind +} + +// Execute f, blocking the incoming queue (and waiting for it to drain first). +// The purpose of this terrible hack is so that watchers added after an event +// won't ever see that event, and will always see any event after they are +// added. +func (b *Broadcaster) blockQueue(f func()) { + var wg sync.WaitGroup + wg.Add(1) + b.incoming <- Event{ + Type: internalRunFunctionMarker, + Object: functionFakeRuntimeObject(func() { + defer wg.Done() + f() + }), + } + wg.Wait() +} + +// Watch adds a new watcher to the list and returns an Interface for it. +// Note: new watchers will only receive new events. They won't get an entire history +// of previous events. +func (m *Broadcaster) Watch() Interface { + var w *broadcasterWatcher + m.blockQueue(func() { + m.lock.Lock() + defer m.lock.Unlock() + id := m.nextWatcher + m.nextWatcher++ + w = &broadcasterWatcher{ + result: make(chan Event, m.watchQueueLength), + stopped: make(chan struct{}), + id: id, + m: m, + } + m.watchers[id] = w + }) + return w +} + +// WatchWithPrefix adds a new watcher to the list and returns an Interface for it. It sends +// queuedEvents down the new watch before beginning to send ordinary events from Broadcaster. +// The returned watch will have a queue length that is at least large enough to accommodate +// all of the items in queuedEvents. +func (m *Broadcaster) WatchWithPrefix(queuedEvents []Event) Interface { + var w *broadcasterWatcher + m.blockQueue(func() { + m.lock.Lock() + defer m.lock.Unlock() + id := m.nextWatcher + m.nextWatcher++ + length := m.watchQueueLength + if n := len(queuedEvents) + 1; n > length { + length = n + } + w = &broadcasterWatcher{ + result: make(chan Event, length), + stopped: make(chan struct{}), + id: id, + m: m, + } + m.watchers[id] = w + for _, e := range queuedEvents { + w.result <- e + } + }) + return w +} + +// stopWatching stops the given watcher and removes it from the list. +func (m *Broadcaster) stopWatching(id int64) { + m.lock.Lock() + defer m.lock.Unlock() + w, ok := m.watchers[id] + if !ok { + // No need to do anything, it's already been removed from the list. + return + } + delete(m.watchers, id) + close(w.result) +} + +// closeAll disconnects all watchers (presumably in response to a Shutdown call). +func (m *Broadcaster) closeAll() { + m.lock.Lock() + defer m.lock.Unlock() + for _, w := range m.watchers { + close(w.result) + } + // Delete everything from the map, since presence/absence in the map is used + // by stopWatching to avoid double-closing the channel. + m.watchers = map[int64]*broadcasterWatcher{} +} + +// Action distributes the given event among all watchers. +func (m *Broadcaster) Action(action EventType, obj runtime.Object) { + m.incoming <- Event{action, obj} +} + +// Shutdown disconnects all watchers (but any queued events will still be distributed). +// You must not call Action or Watch* after calling Shutdown. This call blocks +// until all events have been distributed through the outbound channels. Note +// that since they can be buffered, this means that the watchers might not +// have received the data yet as it can remain sitting in the buffered +// channel. +func (m *Broadcaster) Shutdown() { + close(m.incoming) + m.distributing.Wait() +} + +// loop receives from m.incoming and distributes to all watchers. +func (m *Broadcaster) loop() { + // Deliberately not catching crashes here. Yes, bring down the process if there's a + // bug in watch.Broadcaster. + for { + event, ok := <-m.incoming + if !ok { + break + } + if event.Type == internalRunFunctionMarker { + event.Object.(functionFakeRuntimeObject)() + continue + } + m.distribute(event) + } + m.closeAll() + m.distributing.Done() +} + +// distribute sends event to all watchers. Blocking. +func (m *Broadcaster) distribute(event Event) { + m.lock.Lock() + defer m.lock.Unlock() + if m.fullChannelBehavior == DropIfChannelFull { + for _, w := range m.watchers { + select { + case w.result <- event: + case <-w.stopped: + default: // Don't block if the event can't be queued. + } + } + } else { + for _, w := range m.watchers { + select { + case w.result <- event: + case <-w.stopped: + } + } + } +} + +// broadcasterWatcher handles a single watcher of a broadcaster +type broadcasterWatcher struct { + result chan Event + stopped chan struct{} + stop sync.Once + id int64 + m *Broadcaster +} + +// ResultChan returns a channel to use for waiting on events. +func (mw *broadcasterWatcher) ResultChan() <-chan Event { + return mw.result +} + +// Stop stops watching and removes mw from its list. +func (mw *broadcasterWatcher) Stop() { + mw.stop.Do(func() { + close(mw.stopped) + mw.m.stopWatching(mw.id) + }) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/streamwatcher.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/streamwatcher.go new file mode 100644 index 0000000000..5ae4a1d957 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/streamwatcher.go @@ -0,0 +1,119 @@ +/* +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 watch + +import ( + "io" + "sync" + + "github.com/golang/glog" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/util/net" + utilruntime "k8s.io/client-go/1.4/pkg/util/runtime" +) + +// Decoder allows StreamWatcher to watch any stream for which a Decoder can be written. +type Decoder interface { + // Decode should return the type of event, the decoded object, or an error. + // An error will cause StreamWatcher to call Close(). Decode should block until + // it has data or an error occurs. + Decode() (action EventType, object runtime.Object, err error) + + // Close should close the underlying io.Reader, signalling to the source of + // the stream that it is no longer being watched. Close() must cause any + // outstanding call to Decode() to return with an error of some sort. + Close() +} + +// StreamWatcher turns any stream for which you can write a Decoder interface +// into a watch.Interface. +type StreamWatcher struct { + sync.Mutex + source Decoder + result chan Event + stopped bool +} + +// NewStreamWatcher creates a StreamWatcher from the given decoder. +func NewStreamWatcher(d Decoder) *StreamWatcher { + sw := &StreamWatcher{ + source: d, + // It's easy for a consumer to add buffering via an extra + // goroutine/channel, but impossible for them to remove it, + // so nonbuffered is better. + result: make(chan Event), + } + go sw.receive() + return sw +} + +// ResultChan implements Interface. +func (sw *StreamWatcher) ResultChan() <-chan Event { + return sw.result +} + +// Stop implements Interface. +func (sw *StreamWatcher) Stop() { + // Call Close() exactly once by locking and setting a flag. + sw.Lock() + defer sw.Unlock() + if !sw.stopped { + sw.stopped = true + sw.source.Close() + } +} + +// stopping returns true if Stop() was called previously. +func (sw *StreamWatcher) stopping() bool { + sw.Lock() + defer sw.Unlock() + return sw.stopped +} + +// receive reads result from the decoder in a loop and sends down the result channel. +func (sw *StreamWatcher) receive() { + defer close(sw.result) + defer sw.Stop() + defer utilruntime.HandleCrash() + for { + action, obj, err := sw.source.Decode() + if err != nil { + // Ignore expected error. + if sw.stopping() { + return + } + switch err { + case io.EOF: + // watch closed normally + case io.ErrUnexpectedEOF: + glog.V(1).Infof("Unexpected EOF during watch stream event decoding: %v", err) + default: + msg := "Unable to decode an event from the watch stream: %v" + if net.IsProbableEOF(err) { + glog.V(5).Infof(msg, err) + } else { + glog.Errorf(msg, err) + } + } + return + } + sw.result <- Event{ + Type: action, + Object: obj, + } + } +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/until.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/until.go new file mode 100644 index 0000000000..b93e31ec30 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/until.go @@ -0,0 +1,82 @@ +/* +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 watch + +import ( + "time" + + "k8s.io/client-go/1.4/pkg/util/wait" +) + +// ConditionFunc returns true if the condition has been reached, false if it has not been reached yet, +// or an error if the condition cannot be checked and should terminate. In general, it is better to define +// level driven conditions over edge driven conditions (pod has ready=true, vs pod modified and ready changed +// from false to true). +type ConditionFunc func(event Event) (bool, error) + +// Until reads items from the watch until each provided condition succeeds, and then returns the last watch +// encountered. The first condition that returns an error terminates the watch (and the event is also returned). +// If no event has been received, the returned event will be nil. +// Conditions are satisfied sequentially so as to provide a useful primitive for higher level composition. +func Until(timeout time.Duration, watcher Interface, conditions ...ConditionFunc) (*Event, error) { + ch := watcher.ResultChan() + defer watcher.Stop() + var after <-chan time.Time + if timeout > 0 { + after = time.After(timeout) + } else { + ch := make(chan time.Time) + close(ch) + after = ch + } + var lastEvent *Event + for _, condition := range conditions { + // check the next condition against the previous event and short circuit waiting for the next watch + if lastEvent != nil { + done, err := condition(*lastEvent) + if err != nil { + return lastEvent, err + } + if done { + break + } + } + ConditionSucceeded: + for { + select { + case event, ok := <-ch: + if !ok { + return lastEvent, wait.ErrWaitTimeout + } + lastEvent = &event + + // TODO: check for watch expired error and retry watch from latest point? + done, err := condition(event) + if err != nil { + return lastEvent, err + } + if done { + break ConditionSucceeded + } + + case <-after: + return lastEvent, wait.ErrWaitTimeout + } + } + } + return lastEvent, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/decoder.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/decoder.go new file mode 100644 index 0000000000..116d63f6f2 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/decoder.go @@ -0,0 +1,71 @@ +/* +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 versioned + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/runtime/serializer/streaming" + "k8s.io/client-go/1.4/pkg/watch" +) + +// Decoder implements the watch.Decoder interface for io.ReadClosers that +// have contents which consist of a series of watchEvent objects encoded +// with the given streaming decoder. The internal objects will be then +// decoded by the embedded decoder. +type Decoder struct { + decoder streaming.Decoder + embeddedDecoder runtime.Decoder +} + +// NewDecoder creates an Decoder for the given writer and codec. +func NewDecoder(decoder streaming.Decoder, embeddedDecoder runtime.Decoder) *Decoder { + return &Decoder{ + decoder: decoder, + embeddedDecoder: embeddedDecoder, + } +} + +// Decode blocks until it can return the next object in the reader. Returns an error +// if the reader is closed or an object can't be decoded. +func (d *Decoder) Decode() (watch.EventType, runtime.Object, error) { + var got Event + res, _, err := d.decoder.Decode(nil, &got) + if err != nil { + return "", nil, err + } + if res != &got { + return "", nil, fmt.Errorf("unable to decode to versioned.Event") + } + switch got.Type { + case string(watch.Added), string(watch.Modified), string(watch.Deleted), string(watch.Error): + default: + return "", nil, fmt.Errorf("got invalid watch event type: %v", got.Type) + } + + obj, err := runtime.Decode(d.embeddedDecoder, got.Object.Raw) + if err != nil { + return "", nil, fmt.Errorf("unable to decode watch event: %v", err) + } + return watch.EventType(got.Type), obj, nil +} + +// Close closes the underlying r. +func (d *Decoder) Close() { + d.decoder.Close() +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/encoder.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/encoder.go new file mode 100644 index 0000000000..659a47da34 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/encoder.go @@ -0,0 +1,51 @@ +/* +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 versioned + +import ( + "encoding/json" + + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/runtime/serializer/streaming" + "k8s.io/client-go/1.4/pkg/watch" +) + +// Encoder serializes watch.Events into io.Writer. The internal objects +// are encoded using embedded encoder, and the outer Event is serialized +// using encoder. +type Encoder struct { + encoder streaming.Encoder + embeddedEncoder runtime.Encoder +} + +func NewEncoder(encoder streaming.Encoder, embeddedEncoder runtime.Encoder) *Encoder { + return &Encoder{ + encoder: encoder, + embeddedEncoder: embeddedEncoder, + } +} + +// Encode writes an event to the writer. Returns an error +// if the writer is closed or an object can't be encoded. +func (e *Encoder) Encode(event *watch.Event) error { + data, err := runtime.Encode(e.embeddedEncoder, event.Object) + if err != nil { + return err + } + // FIXME: get rid of json.RawMessage. + return e.encoder.Encode(&Event{string(event.Type), runtime.RawExtension{Raw: json.RawMessage(data)}}) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/generated.pb.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/generated.pb.go new file mode 100644 index 0000000000..601f14e480 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/generated.pb.go @@ -0,0 +1,390 @@ +/* +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/watch/versioned/generated.proto +// DO NOT EDIT! + +/* + Package versioned is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/watch/versioned/generated.proto + + It has these top-level messages: + Event +*/ +package versioned + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +import strings "strings" +import reflect "reflect" + +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 *Event) Reset() { *m = Event{} } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func init() { + proto.RegisterType((*Event)(nil), "k8s.io.client-go.1.4.pkg.watch.versioned.Event") +} +func (m *Event) 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 *Event) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Type))) + i += copy(data[i:], m.Type) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Object.Size())) + n1, err := m.Object.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + 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 *Event) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Object.Size() + 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 *Event) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Object:` + strings.Replace(strings.Replace(this.Object.String(), "RawExtension", "k8s_io_kubernetes_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + 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 *Event) 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: Event: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.Type = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Object", 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.Object.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 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{ + // 273 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0xcd, 0xb6, 0x28, 0xd6, + 0xcb, 0xcc, 0xd7, 0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xca, 0x4b, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, 0xc8, + 0x4e, 0xd7, 0x2f, 0x4f, 0x2c, 0x49, 0xce, 0xd0, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x4b, + 0x4d, 0xd1, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x52, 0x85, 0x68, 0xd3, 0x43, 0x68, 0xd3, 0x03, 0x6a, 0xd3, 0x03, 0x6b, 0xd3, 0x83, + 0x6b, 0x93, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, + 0x4f, 0xcf, 0xd7, 0x07, 0xeb, 0x4e, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0xaa, + 0x94, 0x2e, 0x76, 0xc7, 0x14, 0x95, 0xe6, 0x95, 0x64, 0xe6, 0xa6, 0xa2, 0x3b, 0x42, 0xca, 0x10, + 0xbb, 0xf2, 0xd2, 0x92, 0xcc, 0x1c, 0xfd, 0xcc, 0xbc, 0x92, 0xe2, 0x92, 0x22, 0x74, 0x2d, 0x4a, + 0x75, 0x5c, 0xac, 0xae, 0x65, 0xa9, 0x79, 0x25, 0x42, 0x0a, 0x5c, 0x2c, 0x25, 0x95, 0x05, 0xa9, + 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x3c, 0x27, 0xee, 0xc9, 0x33, 0x3c, 0xba, 0x27, 0xcf, + 0x12, 0x02, 0x14, 0x0b, 0x02, 0xcb, 0x08, 0x05, 0x73, 0xb1, 0xe5, 0x27, 0x65, 0xa5, 0x26, 0x97, + 0x48, 0x30, 0x01, 0xd5, 0x70, 0x1b, 0x69, 0xeb, 0x61, 0xf7, 0x33, 0xd4, 0x75, 0x7a, 0x41, 0x89, + 0xe5, 0xae, 0x15, 0x25, 0xa9, 0x79, 0x20, 0xaf, 0x3b, 0xf1, 0x41, 0x0d, 0x64, 0xf3, 0x07, 0x1b, + 0x11, 0x04, 0x35, 0xca, 0x49, 0xfb, 0xc4, 0x43, 0x39, 0x86, 0x0b, 0x40, 0x7c, 0x03, 0x88, 0x1b, + 0x1e, 0xc9, 0x31, 0x9e, 0x00, 0xe2, 0x0b, 0x40, 0xfc, 0x00, 0x88, 0x27, 0x3c, 0x96, 0x63, 0x88, + 0xe2, 0x84, 0x87, 0x1e, 0x20, 0x00, 0x00, 0xff, 0xff, 0x23, 0x3d, 0x7b, 0x7e, 0x9c, 0x01, 0x00, + 0x00, +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/generated.proto b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/generated.proto new file mode 100644 index 0000000000..8d5506552d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/generated.proto @@ -0,0 +1,43 @@ +/* +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.watch.versioned; + +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 = "versioned"; + +// Event represents a single event to a watched resource. +// +// +protobuf=true +message Event { + optional string type = 1; + + // Object is: + // * If Type is Added or Modified: the new state of the object. + // * If Type is Deleted: the state of the object immediately before deletion. + // * If Type is Error: *api.Status is recommended; other types may make sense + // depending on context. + optional k8s.io.kubernetes.pkg.runtime.RawExtension object = 2; +} + diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/register.go new file mode 100644 index 0000000000..e44f0caab0 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/register.go @@ -0,0 +1,84 @@ +/* +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 versioned + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/conversion" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/watch" +) + +// WatchEventKind is name reserved for serializing watch events. +const WatchEventKind = "WatchEvent" + +// AddToGroupVersion registers the watch external and internal kinds with the scheme, and ensures the proper +// conversions are in place. +func AddToGroupVersion(scheme *runtime.Scheme, groupVersion unversioned.GroupVersion) { + scheme.AddKnownTypeWithName(groupVersion.WithKind(WatchEventKind), &Event{}) + scheme.AddKnownTypeWithName( + unversioned.GroupVersion{Group: groupVersion.Group, Version: runtime.APIVersionInternal}.WithKind(WatchEventKind), + &InternalEvent{}, + ) + scheme.AddConversionFuncs( + Convert_versioned_Event_to_watch_Event, + Convert_versioned_InternalEvent_to_versioned_Event, + Convert_watch_Event_to_versioned_Event, + Convert_versioned_Event_to_versioned_InternalEvent, + ) +} + +func Convert_watch_Event_to_versioned_Event(in *watch.Event, out *Event, s conversion.Scope) error { + out.Type = string(in.Type) + switch t := in.Object.(type) { + case *runtime.Unknown: + // TODO: handle other fields on Unknown and detect type + out.Object.Raw = t.Raw + case nil: + default: + out.Object.Object = in.Object + } + return nil +} + +func Convert_versioned_InternalEvent_to_versioned_Event(in *InternalEvent, out *Event, s conversion.Scope) error { + return Convert_watch_Event_to_versioned_Event((*watch.Event)(in), out, s) +} + +func Convert_versioned_Event_to_watch_Event(in *Event, out *watch.Event, s conversion.Scope) error { + out.Type = watch.EventType(in.Type) + if in.Object.Object != nil { + out.Object = in.Object.Object + } else if in.Object.Raw != nil { + // TODO: handle other fields on Unknown and detect type + out.Object = &runtime.Unknown{ + Raw: in.Object.Raw, + ContentType: runtime.ContentTypeJSON, + } + } + return nil +} + +func Convert_versioned_Event_to_versioned_InternalEvent(in *Event, out *InternalEvent, s conversion.Scope) error { + return Convert_versioned_Event_to_watch_Event(in, (*watch.Event)(out), s) +} + +// InternalEvent makes watch.Event versioned +type InternalEvent watch.Event + +func (e *InternalEvent) GetObjectKind() unversioned.ObjectKind { return unversioned.EmptyObjectKind } +func (e *Event) GetObjectKind() unversioned.ObjectKind { return unversioned.EmptyObjectKind } diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/types.go new file mode 100644 index 0000000000..3366adef5d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/versioned/types.go @@ -0,0 +1,37 @@ +/* +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 versioned contains the versioned types for watch. This is the first +// serialization version unless otherwise noted. +package versioned + +import ( + "k8s.io/client-go/1.4/pkg/runtime" +) + +// Event represents a single event to a watched resource. +// +// +protobuf=true +type Event struct { + Type string `json:"type" protobuf:"bytes,1,opt,name=type"` + + // Object is: + // * If Type is Added or Modified: the new state of the object. + // * If Type is Deleted: the state of the object immediately before deletion. + // * If Type is Error: *api.Status is recommended; other types may make sense + // depending on context. + Object runtime.RawExtension `json:"object" protobuf:"bytes,2,opt,name=object"` +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/watch.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/watch.go new file mode 100644 index 0000000000..0879ce8f5d --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/pkg/watch/watch.go @@ -0,0 +1,137 @@ +/* +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 watch + +import ( + "sync" + + "k8s.io/client-go/1.4/pkg/runtime" +) + +// Interface can be implemented by anything that knows how to watch and report changes. +type Interface interface { + // Stops watching. Will close the channel returned by ResultChan(). Releases + // any resources used by the watch. + Stop() + + // Returns a chan which will receive all the events. If an error occurs + // or Stop() is called, this channel will be closed, in which case the + // watch should be completely cleaned up. + ResultChan() <-chan Event +} + +// EventType defines the possible types of events. +type EventType string + +const ( + Added EventType = "ADDED" + Modified EventType = "MODIFIED" + Deleted EventType = "DELETED" + Error EventType = "ERROR" +) + +// Event represents a single event to a watched resource. +type Event struct { + Type EventType + + // Object is: + // * If Type is Added or Modified: the new state of the object. + // * If Type is Deleted: the state of the object immediately before deletion. + // * If Type is Error: *api.Status is recommended; other types may make sense + // depending on context. + Object runtime.Object +} + +type emptyWatch chan Event + +// NewEmptyWatch returns a watch interface that returns no results and is closed. +// May be used in certain error conditions where no information is available but +// an error is not warranted. +func NewEmptyWatch() Interface { + ch := make(chan Event) + close(ch) + return emptyWatch(ch) +} + +// Stop implements Interface +func (w emptyWatch) Stop() { +} + +// ResultChan implements Interface +func (w emptyWatch) ResultChan() <-chan Event { + return chan Event(w) +} + +// FakeWatcher lets you test anything that consumes a watch.Interface; threadsafe. +type FakeWatcher struct { + result chan Event + Stopped bool + sync.Mutex +} + +func NewFake() *FakeWatcher { + return &FakeWatcher{ + result: make(chan Event), + } +} + +// Stop implements Interface.Stop(). +func (f *FakeWatcher) Stop() { + f.Lock() + defer f.Unlock() + if !f.Stopped { + close(f.result) + f.Stopped = true + } +} + +// Reset prepares the watcher to be reused. +func (f *FakeWatcher) Reset() { + f.Lock() + defer f.Unlock() + f.Stopped = false + f.result = make(chan Event) +} + +func (f *FakeWatcher) ResultChan() <-chan Event { + return f.result +} + +// Add sends an add event. +func (f *FakeWatcher) Add(obj runtime.Object) { + f.result <- Event{Added, obj} +} + +// Modify sends a modify event. +func (f *FakeWatcher) Modify(obj runtime.Object) { + f.result <- Event{Modified, obj} +} + +// Delete sends a delete event. +func (f *FakeWatcher) Delete(lastValue runtime.Object) { + f.result <- Event{Deleted, lastValue} +} + +// Error sends an Error event. +func (f *FakeWatcher) Error(errValue runtime.Object) { + f.result <- Event{Error, errValue} +} + +// Action sends an event of the requested type, for table-based testing. +func (f *FakeWatcher) Action(action EventType, obj runtime.Object) { + f.result <- Event{action, obj} +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/client.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/client.go new file mode 100644 index 0000000000..a9cae51550 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/client.go @@ -0,0 +1,224 @@ +/* +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 rest + +import ( + "fmt" + "net/http" + "net/url" + "os" + "strconv" + "strings" + "time" + + "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" + "k8s.io/client-go/1.4/pkg/util/flowcontrol" +) + +const ( + // Environment variables: Note that the duration should be long enough that the backoff + // persists for some reasonable time (i.e. 120 seconds). The typical base might be "1". + envBackoffBase = "KUBE_CLIENT_BACKOFF_BASE" + envBackoffDuration = "KUBE_CLIENT_BACKOFF_DURATION" +) + +// RESTClient imposes common Kubernetes API conventions on a set of resource paths. +// The baseURL is expected to point to an HTTP or HTTPS path that is the parent +// of one or more resources. The server should return a decodable API resource +// object, or an api.Status object which contains information about the reason for +// any failure. +// +// Most consumers should use client.New() to get a Kubernetes API client. +type RESTClient struct { + // base is the root URL for all invocations of the client + base *url.URL + // versionedAPIPath is a path segment connecting the base URL to the resource root + versionedAPIPath string + + // contentConfig is the information used to communicate with the server. + contentConfig ContentConfig + + // serializers contain all serializers for undelying content type. + serializers Serializers + + // creates BackoffManager that is passed to requests. + createBackoffMgr func() BackoffManager + + // TODO extract this into a wrapper interface via the RESTClient interface in kubectl. + Throttle flowcontrol.RateLimiter + + // Set specific behavior of the client. If not set http.DefaultClient will be used. + Client *http.Client +} + +type Serializers struct { + Encoder runtime.Encoder + Decoder runtime.Decoder + StreamingSerializer runtime.Serializer + Framer runtime.Framer + RenegotiatedDecoder func(contentType string, params map[string]string) (runtime.Decoder, error) +} + +// NewRESTClient creates a new RESTClient. This client performs generic REST functions +// such as Get, Put, Post, and Delete on specified paths. Codec controls encoding and +// decoding of responses from the server. +func NewRESTClient(baseURL *url.URL, versionedAPIPath string, config ContentConfig, maxQPS float32, maxBurst int, rateLimiter flowcontrol.RateLimiter, client *http.Client) (*RESTClient, error) { + base := *baseURL + if !strings.HasSuffix(base.Path, "/") { + base.Path += "/" + } + base.RawQuery = "" + base.Fragment = "" + + if config.GroupVersion == nil { + config.GroupVersion = &unversioned.GroupVersion{} + } + if len(config.ContentType) == 0 { + config.ContentType = "application/json" + } + serializers, err := createSerializers(config) + if err != nil { + return nil, err + } + + var throttle flowcontrol.RateLimiter + if maxQPS > 0 && rateLimiter == nil { + throttle = flowcontrol.NewTokenBucketRateLimiter(maxQPS, maxBurst) + } else if rateLimiter != nil { + throttle = rateLimiter + } + return &RESTClient{ + base: &base, + versionedAPIPath: versionedAPIPath, + contentConfig: config, + serializers: *serializers, + createBackoffMgr: readExpBackoffConfig, + Throttle: throttle, + Client: client, + }, nil +} + +// GetRateLimiter returns rate limier for a given client, or nil if it's called on a nil client +func (c *RESTClient) GetRateLimiter() flowcontrol.RateLimiter { + if c == nil { + return nil + } + return c.Throttle +} + +// readExpBackoffConfig handles the internal logic of determining what the +// backoff policy is. By default if no information is available, NoBackoff. +// TODO Generalize this see #17727 . +func readExpBackoffConfig() BackoffManager { + backoffBase := os.Getenv(envBackoffBase) + backoffDuration := os.Getenv(envBackoffDuration) + + backoffBaseInt, errBase := strconv.ParseInt(backoffBase, 10, 64) + backoffDurationInt, errDuration := strconv.ParseInt(backoffDuration, 10, 64) + if errBase != nil || errDuration != nil { + return &NoBackoff{} + } + return &URLBackoff{ + Backoff: flowcontrol.NewBackOff( + time.Duration(backoffBaseInt)*time.Second, + time.Duration(backoffDurationInt)*time.Second)} +} + +// createSerializers creates all necessary serializers for given contentType. +func createSerializers(config ContentConfig) (*Serializers, error) { + negotiated := config.NegotiatedSerializer + contentType := config.ContentType + info, ok := negotiated.SerializerForMediaType(contentType, nil) + if !ok { + return nil, fmt.Errorf("serializer for %s not registered", contentType) + } + streamInfo, ok := negotiated.StreamingSerializerForMediaType(contentType, nil) + if !ok { + return nil, fmt.Errorf("streaming serializer for %s not registered", contentType) + } + internalGV := unversioned.GroupVersion{ + Group: config.GroupVersion.Group, + Version: runtime.APIVersionInternal, + } + return &Serializers{ + Encoder: negotiated.EncoderForVersion(info.Serializer, *config.GroupVersion), + Decoder: negotiated.DecoderToVersion(info.Serializer, internalGV), + StreamingSerializer: streamInfo.Serializer, + Framer: streamInfo.Framer, + RenegotiatedDecoder: func(contentType string, params map[string]string) (runtime.Decoder, error) { + renegotiated, ok := negotiated.SerializerForMediaType(contentType, params) + if !ok { + return nil, fmt.Errorf("serializer for %s not registered", contentType) + } + return negotiated.DecoderToVersion(renegotiated.Serializer, internalGV), nil + }, + }, nil +} + +// Verb begins a request with a verb (GET, POST, PUT, DELETE). +// +// Example usage of RESTClient's request building interface: +// c, err := NewRESTClient(...) +// if err != nil { ... } +// resp, err := c.Verb("GET"). +// Path("pods"). +// SelectorParam("labels", "area=staging"). +// Timeout(10*time.Second). +// Do() +// if err != nil { ... } +// list, ok := resp.(*api.PodList) +// +func (c *RESTClient) Verb(verb string) *Request { + backoff := c.createBackoffMgr() + + if c.Client == nil { + return NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle) + } + return NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle) +} + +// Post begins a POST request. Short for c.Verb("POST"). +func (c *RESTClient) Post() *Request { + return c.Verb("POST") +} + +// Put begins a PUT request. Short for c.Verb("PUT"). +func (c *RESTClient) Put() *Request { + return c.Verb("PUT") +} + +// Patch begins a PATCH request. Short for c.Verb("Patch"). +func (c *RESTClient) Patch(pt api.PatchType) *Request { + return c.Verb("PATCH").SetHeader("Content-Type", string(pt)) +} + +// Get begins a GET request. Short for c.Verb("GET"). +func (c *RESTClient) Get() *Request { + return c.Verb("GET") +} + +// Delete begins a DELETE request. Short for c.Verb("DELETE"). +func (c *RESTClient) Delete() *Request { + return c.Verb("DELETE") +} + +// APIVersion returns the APIVersion this RESTClient is expected to use. +func (c *RESTClient) APIVersion() unversioned.GroupVersion { + return *c.contentConfig.GroupVersion +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/config.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/config.go new file mode 100644 index 0000000000..766459c820 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/config.go @@ -0,0 +1,335 @@ +/* +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 rest + +import ( + "fmt" + "io/ioutil" + "net" + "net/http" + "os" + "path" + gruntime "runtime" + "strings" + + "github.com/golang/glog" + + "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" + "k8s.io/client-go/1.4/pkg/util/crypto" + "k8s.io/client-go/1.4/pkg/util/flowcontrol" + "k8s.io/client-go/1.4/pkg/version" + clientcmdapi "k8s.io/client-go/1.4/tools/clientcmd/api" +) + +const ( + DefaultQPS float32 = 5.0 + DefaultBurst int = 10 +) + +// Config holds the common attributes that can be passed to a Kubernetes client on +// initialization. +type Config struct { + // Host must be a host string, a host:port pair, or a URL to the base of the apiserver. + // If a URL is given then the (optional) Path of that URL represents a prefix that must + // be appended to all request URIs used to access the apiserver. This allows a frontend + // proxy to easily relocate all of the apiserver endpoints. + Host string + // APIPath is a sub-path that points to an API root. + APIPath string + // Prefix is the sub path of the server. If not specified, the client will set + // a default value. Use "/" to indicate the server root should be used + Prefix string + + // ContentConfig contains settings that affect how objects are transformed when + // sent to the server. + ContentConfig + + // Server requires Basic authentication + Username string + Password string + + // Server requires Bearer authentication. This client will not attempt to use + // refresh tokens for an OAuth2 flow. + // TODO: demonstrate an OAuth2 compatible client. + BearerToken string + + // Impersonate is the username that this RESTClient will impersonate + Impersonate string + + // Server requires plugin-specified authentication. + AuthProvider *clientcmdapi.AuthProviderConfig + + // Callback to persist config for AuthProvider. + AuthConfigPersister AuthProviderConfigPersister + + // TLSClientConfig contains settings to enable transport layer security + TLSClientConfig + + // Server should be accessed without verifying the TLS + // certificate. For testing only. + Insecure bool + + // UserAgent is an optional field that specifies the caller of this request. + UserAgent string + + // Transport may be used for custom HTTP behavior. This attribute may not + // be specified with the TLS client certificate options. Use WrapTransport + // for most client level operations. + Transport http.RoundTripper + // WrapTransport will be invoked for custom HTTP behavior after the underlying + // transport is initialized (either the transport created from TLSClientConfig, + // Transport, or http.DefaultTransport). The config may layer other RoundTrippers + // on top of the returned RoundTripper. + WrapTransport func(rt http.RoundTripper) http.RoundTripper + + // QPS indicates the maximum QPS to the master from this client. + // If it's zero, the created RESTClient will use DefaultQPS: 5 + QPS float32 + + // Maximum burst for throttle. + // If it's zero, the created RESTClient will use DefaultBurst: 10. + Burst int + + // Rate limiter for limiting connections to the master from this client. If present overwrites QPS/Burst + RateLimiter flowcontrol.RateLimiter + + // Version forces a specific version to be used (if registered) + // Do we need this? + // Version string +} + +// TLSClientConfig contains settings to enable transport layer security +type TLSClientConfig struct { + // Server requires TLS client certificate authentication + CertFile string + // Server requires TLS client certificate authentication + KeyFile string + // Trusted root certificates for server + CAFile string + + // CertData holds PEM-encoded bytes (typically read from a client certificate file). + // CertData takes precedence over CertFile + CertData []byte + // KeyData holds PEM-encoded bytes (typically read from a client certificate key file). + // KeyData takes precedence over KeyFile + KeyData []byte + // CAData holds PEM-encoded bytes (typically read from a root certificates bundle). + // CAData takes precedence over CAFile + CAData []byte +} + +type ContentConfig struct { + // AcceptContentTypes specifies the types the client will accept and is optional. + // If not set, ContentType will be used to define the Accept header + AcceptContentTypes string + // ContentType specifies the wire format used to communicate with the server. + // This value will be set as the Accept header on requests made to the server, and + // as the default content type on any object sent to the server. If not set, + // "application/json" is used. + ContentType string + // GroupVersion is the API version to talk to. Must be provided when initializing + // a RESTClient directly. When initializing a Client, will be set with the default + // code version. + GroupVersion *unversioned.GroupVersion + // NegotiatedSerializer is used for obtaining encoders and decoders for multiple + // supported media types. + NegotiatedSerializer runtime.NegotiatedSerializer +} + +// RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config +// object. Note that a RESTClient may require fields that are optional when initializing a Client. +// A RESTClient created by this method is generic - it expects to operate on an API that follows +// the Kubernetes conventions, but may not be the Kubernetes API. +func RESTClientFor(config *Config) (*RESTClient, error) { + if config.GroupVersion == nil { + return nil, fmt.Errorf("GroupVersion is required when initializing a RESTClient") + } + if config.NegotiatedSerializer == nil { + return nil, fmt.Errorf("NegotiatedSerializer is required when initializing a RESTClient") + } + qps := config.QPS + if config.QPS == 0.0 { + qps = DefaultQPS + } + burst := config.Burst + if config.Burst == 0 { + burst = DefaultBurst + } + + baseURL, versionedAPIPath, err := defaultServerUrlFor(config) + if err != nil { + return nil, err + } + + transport, err := TransportFor(config) + if err != nil { + return nil, err + } + + var httpClient *http.Client + if transport != http.DefaultTransport { + httpClient = &http.Client{Transport: transport} + } + + return NewRESTClient(baseURL, versionedAPIPath, config.ContentConfig, qps, burst, config.RateLimiter, httpClient) +} + +// UnversionedRESTClientFor is the same as RESTClientFor, except that it allows +// the config.Version to be empty. +func UnversionedRESTClientFor(config *Config) (*RESTClient, error) { + if config.NegotiatedSerializer == nil { + return nil, fmt.Errorf("NeogitatedSerializer is required when initializing a RESTClient") + } + + baseURL, versionedAPIPath, err := defaultServerUrlFor(config) + if err != nil { + return nil, err + } + + transport, err := TransportFor(config) + if err != nil { + return nil, err + } + + var httpClient *http.Client + if transport != http.DefaultTransport { + httpClient = &http.Client{Transport: transport} + } + + versionConfig := config.ContentConfig + if versionConfig.GroupVersion == nil { + v := unversioned.SchemeGroupVersion + versionConfig.GroupVersion = &v + } + + return NewRESTClient(baseURL, versionedAPIPath, versionConfig, config.QPS, config.Burst, config.RateLimiter, httpClient) +} + +// SetKubernetesDefaults sets default values on the provided client config for accessing the +// Kubernetes API or returns an error if any of the defaults are impossible or invalid. +func SetKubernetesDefaults(config *Config) error { + if len(config.UserAgent) == 0 { + config.UserAgent = DefaultKubernetesUserAgent() + } + return nil +} + +// DefaultKubernetesUserAgent returns the default user agent that clients can use. +func DefaultKubernetesUserAgent() string { + commit := version.Get().GitCommit + if len(commit) > 7 { + commit = commit[:7] + } + if len(commit) == 0 { + commit = "unknown" + } + version := version.Get().GitVersion + seg := strings.SplitN(version, "-", 2) + version = seg[0] + return fmt.Sprintf("%s/%s (%s/%s) kubernetes/%s", path.Base(os.Args[0]), version, gruntime.GOOS, gruntime.GOARCH, commit) +} + +// InClusterConfig returns a config object which uses the service account +// kubernetes gives to pods. It's intended for clients that expect to be +// running inside a pod running on kubernetes. It will return an error if +// called from a process not running in a kubernetes environment. +func InClusterConfig() (*Config, error) { + host, port := os.Getenv("KUBERNETES_SERVICE_HOST"), os.Getenv("KUBERNETES_SERVICE_PORT") + if len(host) == 0 || len(port) == 0 { + return nil, fmt.Errorf("unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined") + } + + token, err := ioutil.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/" + api.ServiceAccountTokenKey) + if err != nil { + return nil, err + } + tlsClientConfig := TLSClientConfig{} + rootCAFile := "/var/run/secrets/kubernetes.io/serviceaccount/" + api.ServiceAccountRootCAKey + if _, err := crypto.CertPoolFromFile(rootCAFile); err != nil { + glog.Errorf("Expected to load root CA config from %s, but got err: %v", rootCAFile, err) + } else { + tlsClientConfig.CAFile = rootCAFile + } + + return &Config{ + // TODO: switch to using cluster DNS. + Host: "https://" + net.JoinHostPort(host, port), + BearerToken: string(token), + TLSClientConfig: tlsClientConfig, + }, nil +} + +// IsConfigTransportTLS returns true if and only if the provided +// config will result in a protected connection to the server when it +// is passed to rest.RESTClientFor(). Use to determine when to +// send credentials over the wire. +// +// Note: the Insecure flag is ignored when testing for this value, so MITM attacks are +// still possible. +func IsConfigTransportTLS(config Config) bool { + baseURL, _, err := defaultServerUrlFor(&config) + if err != nil { + return false + } + return baseURL.Scheme == "https" +} + +// LoadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData, +// KeyData, and CAFile fields, or returns an error. If no error is returned, all three fields are +// either populated or were empty to start. +func LoadTLSFiles(c *Config) error { + var err error + c.CAData, err = dataFromSliceOrFile(c.CAData, c.CAFile) + if err != nil { + return err + } + + c.CertData, err = dataFromSliceOrFile(c.CertData, c.CertFile) + if err != nil { + return err + } + + c.KeyData, err = dataFromSliceOrFile(c.KeyData, c.KeyFile) + if err != nil { + return err + } + return nil +} + +// dataFromSliceOrFile returns data from the slice (if non-empty), or from the file, +// or an error if an error occurred reading the file +func dataFromSliceOrFile(data []byte, file string) ([]byte, error) { + if len(data) > 0 { + return data, nil + } + if len(file) > 0 { + fileData, err := ioutil.ReadFile(file) + if err != nil { + return []byte{}, err + } + return fileData, nil + } + return nil, nil +} + +func AddUserAgent(config *Config, userAgent string) *Config { + fullUserAgent := DefaultKubernetesUserAgent() + "/" + userAgent + config.UserAgent = fullUserAgent + return config +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/plugin.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/plugin.go new file mode 100644 index 0000000000..d15a119164 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/plugin.go @@ -0,0 +1,73 @@ +/* +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 rest + +import ( + "fmt" + "net/http" + "sync" + + "github.com/golang/glog" + + clientcmdapi "k8s.io/client-go/1.4/tools/clientcmd/api" +) + +type AuthProvider interface { + // WrapTransport allows the plugin to create a modified RoundTripper that + // attaches authorization headers (or other info) to requests. + WrapTransport(http.RoundTripper) http.RoundTripper + // Login allows the plugin to initialize its configuration. It must not + // require direct user interaction. + Login() error +} + +// Factory generates an AuthProvider plugin. +// clusterAddress is the address of the current cluster. +// config is the initial configuration for this plugin. +// persister allows the plugin to save updated configuration. +type Factory func(clusterAddress string, config map[string]string, persister AuthProviderConfigPersister) (AuthProvider, error) + +// AuthProviderConfigPersister allows a plugin to persist configuration info +// for just itself. +type AuthProviderConfigPersister interface { + Persist(map[string]string) error +} + +// All registered auth provider plugins. +var pluginsLock sync.Mutex +var plugins = make(map[string]Factory) + +func RegisterAuthProviderPlugin(name string, plugin Factory) error { + pluginsLock.Lock() + defer pluginsLock.Unlock() + if _, found := plugins[name]; found { + return fmt.Errorf("Auth Provider Plugin %q was registered twice", name) + } + glog.V(4).Infof("Registered Auth Provider Plugin %q", name) + plugins[name] = plugin + return nil +} + +func GetAuthProvider(clusterAddress string, apc *clientcmdapi.AuthProviderConfig, persister AuthProviderConfigPersister) (AuthProvider, error) { + pluginsLock.Lock() + defer pluginsLock.Unlock() + p, ok := plugins[apc.Name] + if !ok { + return nil, fmt.Errorf("No Auth Provider found for name %q", apc.Name) + } + return p(clusterAddress, apc.Config, persister) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/request.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/request.go new file mode 100644 index 0000000000..b4a748e171 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/request.go @@ -0,0 +1,1104 @@ +/* +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 rest + +import ( + "bytes" + "encoding/hex" + "fmt" + "io" + "io/ioutil" + "mime" + "net/http" + "net/url" + "path" + "reflect" + "strconv" + "strings" + "time" + + "github.com/golang/glog" + "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/api/v1" + "k8s.io/client-go/1.4/pkg/api/validation" + "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/runtime/serializer/streaming" + "k8s.io/client-go/1.4/pkg/util/flowcontrol" + "k8s.io/client-go/1.4/pkg/util/net" + "k8s.io/client-go/1.4/pkg/util/sets" + "k8s.io/client-go/1.4/pkg/watch" + "k8s.io/client-go/1.4/pkg/watch/versioned" + "k8s.io/client-go/1.4/tools/metrics" +) + +var ( + // specialParams lists parameters that are handled specially and which users of Request + // are therefore not allowed to set manually. + specialParams = sets.NewString("timeout") + + // longThrottleLatency defines threshold for logging requests. All requests being + // throttle for more than longThrottleLatency will be logged. + 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) +} + +// ResponseWrapper is an interface for getting a response. +// The response may be either accessed as a raw data (the whole output is put into memory) or as a stream. +type ResponseWrapper interface { + DoRaw() ([]byte, error) + Stream() (io.ReadCloser, error) +} + +// RequestConstructionError is returned when there's an error assembling a request. +type RequestConstructionError struct { + Err error +} + +// Error returns a textual description of 'r'. +func (r *RequestConstructionError) Error() string { + return fmt.Sprintf("request construction error: '%v'", r.Err) +} + +// Request allows for building up a request to a server in a chained fashion. +// Any errors are stored until the end of your call, so you only have to +// check once. +type Request struct { + // required + client HTTPClient + verb string + + baseURL *url.URL + content ContentConfig + serializers Serializers + + // generic components accessible via method setters + pathPrefix string + subpath string + params url.Values + headers http.Header + + // structural elements of the request that are part of the Kubernetes API conventions + namespace string + namespaceSet bool + resource string + resourceName string + subresource string + selector labels.Selector + timeout time.Duration + + // output + err error + body io.Reader + + // The constructed request and the response + req *http.Request + resp *http.Response + + backoffMgr BackoffManager + throttle flowcontrol.RateLimiter +} + +// NewRequest creates a new request helper object for accessing runtime.Objects on a server. +func NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter) *Request { + if backoff == nil { + glog.V(2).Infof("Not implementing request backoff strategy.") + backoff = &NoBackoff{} + } + + pathPrefix := "/" + if baseURL != nil { + pathPrefix = path.Join(pathPrefix, baseURL.Path) + } + r := &Request{ + client: client, + verb: verb, + baseURL: baseURL, + pathPrefix: path.Join(pathPrefix, versionedAPIPath), + content: content, + serializers: serializers, + backoffMgr: backoff, + throttle: throttle, + } + switch { + case len(content.AcceptContentTypes) > 0: + r.SetHeader("Accept", content.AcceptContentTypes) + case len(content.ContentType) > 0: + r.SetHeader("Accept", content.ContentType+", */*") + } + return r +} + +// Prefix adds segments to the relative beginning to the request path. These +// items will be placed before the optional Namespace, Resource, or Name sections. +// Setting AbsPath will clear any previously set Prefix segments +func (r *Request) Prefix(segments ...string) *Request { + if r.err != nil { + return r + } + r.pathPrefix = path.Join(r.pathPrefix, path.Join(segments...)) + return r +} + +// Suffix appends segments to the end of the path. These items will be placed after the prefix and optional +// Namespace, Resource, or Name sections. +func (r *Request) Suffix(segments ...string) *Request { + if r.err != nil { + return r + } + r.subpath = path.Join(r.subpath, path.Join(segments...)) + return r +} + +// Resource sets the resource to access (/[ns//]) +func (r *Request) Resource(resource string) *Request { + if r.err != nil { + return r + } + if len(r.resource) != 0 { + r.err = fmt.Errorf("resource already set to %q, cannot change to %q", r.resource, resource) + return r + } + if msgs := validation.IsValidPathSegmentName(resource); len(msgs) != 0 { + r.err = fmt.Errorf("invalid resource %q: %v", resource, msgs) + return r + } + r.resource = resource + return r +} + +// SubResource sets a sub-resource path which can be multiple segments segment after the resource +// name but before the suffix. +func (r *Request) SubResource(subresources ...string) *Request { + if r.err != nil { + return r + } + subresource := path.Join(subresources...) + if len(r.subresource) != 0 { + r.err = fmt.Errorf("subresource already set to %q, cannot change to %q", r.resource, subresource) + return r + } + for _, s := range subresources { + if msgs := validation.IsValidPathSegmentName(s); len(msgs) != 0 { + r.err = fmt.Errorf("invalid subresource %q: %v", s, msgs) + return r + } + } + r.subresource = subresource + return r +} + +// Name sets the name of a resource to access (/[ns//]) +func (r *Request) Name(resourceName string) *Request { + if r.err != nil { + return r + } + if len(resourceName) == 0 { + r.err = fmt.Errorf("resource name may not be empty") + return r + } + if len(r.resourceName) != 0 { + r.err = fmt.Errorf("resource name already set to %q, cannot change to %q", r.resourceName, resourceName) + return r + } + if msgs := validation.IsValidPathSegmentName(resourceName); len(msgs) != 0 { + r.err = fmt.Errorf("invalid resource name %q: %v", resourceName, msgs) + return r + } + r.resourceName = resourceName + return r +} + +// Namespace applies the namespace scope to a request (/[ns//]) +func (r *Request) Namespace(namespace string) *Request { + if r.err != nil { + return r + } + if r.namespaceSet { + r.err = fmt.Errorf("namespace already set to %q, cannot change to %q", r.namespace, namespace) + return r + } + if msgs := validation.IsValidPathSegmentName(namespace); len(msgs) != 0 { + r.err = fmt.Errorf("invalid namespace %q: %v", namespace, msgs) + return r + } + r.namespaceSet = true + r.namespace = namespace + return r +} + +// NamespaceIfScoped is a convenience function to set a namespace if scoped is true +func (r *Request) NamespaceIfScoped(namespace string, scoped bool) *Request { + if scoped { + return r.Namespace(namespace) + } + return r +} + +// AbsPath overwrites an existing path with the segments provided. Trailing slashes are preserved +// when a single segment is passed. +func (r *Request) AbsPath(segments ...string) *Request { + if r.err != nil { + return r + } + r.pathPrefix = path.Join(r.baseURL.Path, path.Join(segments...)) + if len(segments) == 1 && (len(r.baseURL.Path) > 1 || len(segments[0]) > 1) && strings.HasSuffix(segments[0], "/") { + // preserve any trailing slashes for legacy behavior + r.pathPrefix += "/" + } + return r +} + +// RequestURI overwrites existing path and parameters with the value of the provided server relative +// URI. Some parameters (those in specialParameters) cannot be overwritten. +func (r *Request) RequestURI(uri string) *Request { + if r.err != nil { + return r + } + locator, err := url.Parse(uri) + if err != nil { + r.err = err + return r + } + r.pathPrefix = locator.Path + if len(locator.Query()) > 0 { + if r.params == nil { + r.params = make(url.Values) + } + for k, v := range locator.Query() { + r.params[k] = v + } + } + return r +} + +const ( + // A constant that clients can use to refer in a field selector to the object name field. + // Will be automatically emitted as the correct name for the API version. + nodeUnschedulable = "spec.unschedulable" + objectNameField = "metadata.name" + podHost = "spec.nodeName" + podStatus = "status.phase" + secretType = "type" + + eventReason = "reason" + eventSource = "source" + eventType = "type" + eventInvolvedKind = "involvedObject.kind" + eventInvolvedNamespace = "involvedObject.namespace" + eventInvolvedName = "involvedObject.name" + eventInvolvedUID = "involvedObject.uid" + eventInvolvedAPIVersion = "involvedObject.apiVersion" + eventInvolvedResourceVersion = "involvedObject.resourceVersion" + eventInvolvedFieldPath = "involvedObject.fieldPath" +) + +type clientFieldNameToAPIVersionFieldName map[string]string + +func (c clientFieldNameToAPIVersionFieldName) filterField(field, value string) (newField, newValue string, err error) { + newFieldName, ok := c[field] + if !ok { + return "", "", fmt.Errorf("%v - %v - no field mapping defined", field, value) + } + return newFieldName, value, nil +} + +type resourceTypeToFieldMapping map[string]clientFieldNameToAPIVersionFieldName + +func (r resourceTypeToFieldMapping) filterField(resourceType, field, value string) (newField, newValue string, err error) { + fMapping, ok := r[resourceType] + if !ok { + return "", "", fmt.Errorf("%v - %v - %v - no field mapping defined", resourceType, field, value) + } + return fMapping.filterField(field, value) +} + +type versionToResourceToFieldMapping map[unversioned.GroupVersion]resourceTypeToFieldMapping + +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) + 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) + return field, value, nil + } + return newField, newValue, nil +} + +var fieldMappings = versionToResourceToFieldMapping{ + v1.SchemeGroupVersion: resourceTypeToFieldMapping{ + "nodes": clientFieldNameToAPIVersionFieldName{ + objectNameField: objectNameField, + nodeUnschedulable: nodeUnschedulable, + }, + "pods": clientFieldNameToAPIVersionFieldName{ + podHost: podHost, + podStatus: podStatus, + }, + "secrets": clientFieldNameToAPIVersionFieldName{ + secretType: secretType, + }, + "serviceAccounts": clientFieldNameToAPIVersionFieldName{ + objectNameField: objectNameField, + }, + "endpoints": clientFieldNameToAPIVersionFieldName{ + objectNameField: objectNameField, + }, + "events": clientFieldNameToAPIVersionFieldName{ + objectNameField: objectNameField, + eventReason: eventReason, + eventSource: eventSource, + eventType: eventType, + eventInvolvedKind: eventInvolvedKind, + eventInvolvedNamespace: eventInvolvedNamespace, + eventInvolvedName: eventInvolvedName, + eventInvolvedUID: eventInvolvedUID, + eventInvolvedAPIVersion: eventInvolvedAPIVersion, + eventInvolvedResourceVersion: eventInvolvedResourceVersion, + eventInvolvedFieldPath: eventInvolvedFieldPath, + }, + }, +} + +// FieldsSelectorParam adds the given selector as a query parameter with the name paramName. +func (r *Request) FieldsSelectorParam(s fields.Selector) *Request { + if r.err != nil { + return r + } + if s == nil { + return r + } + if s.Empty() { + return r + } + s2, err := s.Transform(func(field, value string) (newField, newValue string, err error) { + return fieldMappings.filterField(r.content.GroupVersion, r.resource, field, value) + }) + if err != nil { + r.err = err + return r + } + return r.setParam(unversioned.FieldSelectorQueryParam(r.content.GroupVersion.String()), s2.String()) +} + +// LabelsSelectorParam adds the given selector as a query parameter +func (r *Request) LabelsSelectorParam(s labels.Selector) *Request { + if r.err != nil { + return r + } + if s == nil { + return r + } + if s.Empty() { + return r + } + return r.setParam(unversioned.LabelSelectorQueryParam(r.content.GroupVersion.String()), s.String()) +} + +// UintParam creates a query parameter with the given value. +func (r *Request) UintParam(paramName string, u uint64) *Request { + if r.err != nil { + return r + } + return r.setParam(paramName, strconv.FormatUint(u, 10)) +} + +// Param creates a query parameter with the given string value. +func (r *Request) Param(paramName, s string) *Request { + if r.err != nil { + return r + } + return r.setParam(paramName, s) +} + +// VersionedParams will take the provided object, serialize it to a map[string][]string using the +// implicit RESTClient API version and the default parameter codec, and then add those as parameters +// to the request. Use this to provide versioned query parameters from client libraries. +func (r *Request) VersionedParams(obj runtime.Object, codec runtime.ParameterCodec) *Request { + if r.err != nil { + return r + } + params, err := codec.EncodeParameters(obj, *r.content.GroupVersion) + if err != nil { + r.err = err + return r + } + for k, v := range params { + for _, value := range v { + // TODO: Move it to setParam method, once we get rid of + // FieldSelectorParam & LabelSelectorParam methods. + if k == unversioned.LabelSelectorQueryParam(r.content.GroupVersion.String()) && value == "" { + // Don't set an empty selector for backward compatibility. + // Since there is no way to get the difference between empty + // and unspecified string, we don't set it to avoid having + // labelSelector= param in every request. + continue + } + if k == unversioned.FieldSelectorQueryParam(r.content.GroupVersion.String()) { + if len(value) == 0 { + // Don't set an empty selector for backward compatibility. + // Since there is no way to get the difference between empty + // and unspecified string, we don't set it to avoid having + // fieldSelector= param in every request. + continue + } + // TODO: Filtering should be handled somewhere else. + selector, err := fields.ParseSelector(value) + if err != nil { + r.err = fmt.Errorf("unparsable field selector: %v", err) + return r + } + filteredSelector, err := selector.Transform( + func(field, value string) (newField, newValue string, err error) { + return fieldMappings.filterField(r.content.GroupVersion, r.resource, field, value) + }) + if err != nil { + r.err = fmt.Errorf("untransformable field selector: %v", err) + return r + } + value = filteredSelector.String() + } + + r.setParam(k, value) + } + } + return r +} + +func (r *Request) setParam(paramName, value string) *Request { + if specialParams.Has(paramName) { + r.err = fmt.Errorf("must set %v through the corresponding function, not directly.", paramName) + return r + } + if r.params == nil { + r.params = make(url.Values) + } + r.params[paramName] = append(r.params[paramName], value) + return r +} + +func (r *Request) SetHeader(key, value string) *Request { + if r.headers == nil { + r.headers = http.Header{} + } + r.headers.Set(key, value) + return r +} + +// Timeout makes the request use the given duration as a timeout. Sets the "timeout" +// parameter. +func (r *Request) Timeout(d time.Duration) *Request { + if r.err != nil { + return r + } + r.timeout = d + return r +} + +// Body makes the request use obj as the body. Optional. +// If obj is a string, try to read a file of that name. +// If obj is a []byte, send it directly. +// If obj is an io.Reader, use it directly. +// If obj is a runtime.Object, marshal it correctly, and set Content-Type header. +// If obj is a runtime.Object and nil, do nothing. +// Otherwise, set an error. +func (r *Request) Body(obj interface{}) *Request { + if r.err != nil { + return r + } + switch t := obj.(type) { + case string: + data, err := ioutil.ReadFile(t) + if err != nil { + r.err = err + return r + } + glog.V(8).Infof("Request Body: %#v", string(data)) + r.body = bytes.NewReader(data) + case []byte: + glog.V(8).Infof("Request Body: %#v", string(t)) + r.body = bytes.NewReader(t) + case io.Reader: + r.body = t + case runtime.Object: + // callers may pass typed interface pointers, therefore we must check nil with reflection + if reflect.ValueOf(t).IsNil() { + return r + } + data, err := runtime.Encode(r.serializers.Encoder, t) + if err != nil { + r.err = err + return r + } + glog.V(8).Infof("Request Body: %#v", string(data)) + r.body = bytes.NewReader(data) + r.SetHeader("Content-Type", r.content.ContentType) + default: + r.err = fmt.Errorf("unknown type used for body: %+v", obj) + } + return r +} + +// URL returns the current working URL. +func (r *Request) URL() *url.URL { + p := r.pathPrefix + if r.namespaceSet && len(r.namespace) > 0 { + p = path.Join(p, "namespaces", r.namespace) + } + if len(r.resource) != 0 { + p = path.Join(p, strings.ToLower(r.resource)) + } + // Join trims trailing slashes, so preserve r.pathPrefix's trailing slash for backwards compatibility if nothing was changed + if len(r.resourceName) != 0 || len(r.subpath) != 0 || len(r.subresource) != 0 { + p = path.Join(p, r.resourceName, r.subresource, r.subpath) + } + + finalURL := &url.URL{} + if r.baseURL != nil { + *finalURL = *r.baseURL + } + finalURL.Path = p + + query := url.Values{} + for key, values := range r.params { + for _, value := range values { + query.Add(key, value) + } + } + + // timeout is handled specially here. + if r.timeout != 0 { + query.Set("timeout", r.timeout.String()) + } + finalURL.RawQuery = query.Encode() + return finalURL +} + +// finalURLTemplate is similar to URL(), but will make all specific parameter values equal +// - instead of name or namespace, "{name}" and "{namespace}" will be used, and all query +// parameters will be reset. This creates a copy of the request so as not to change the +// 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 { + if len(r.resourceName) != 0 { + r.resourceName = "{name}" + } + if r.namespaceSet && len(r.namespace) != 0 { + r.namespace = "{namespace}" + } + newParams := url.Values{} + v := []string{"{value}"} + for k := range r.params { + newParams[k] = v + } + r.params = newParams + return r.URL().String() +} + +func (r *Request) tryThrottle() { + now := time.Now() + if r.throttle != nil { + r.throttle.Accept() + } + if latency := time.Since(now); latency > longThrottleLatency { + glog.V(4).Infof("Throttling request took %v, request: %s:%s", latency, r.verb, r.URL().String()) + } +} + +// Watch attempts to begin watching the requested location. +// Returns a watch.Interface, or an error. +func (r *Request) Watch() (watch.Interface, error) { + // We specifically don't want to rate limit watches, so we + // don't use r.throttle here. + if r.err != nil { + return nil, r.err + } + if r.serializers.Framer == nil { + return nil, fmt.Errorf("watching resources is not possible with this client (content-type: %s)", r.content.ContentType) + } + + url := r.URL().String() + req, err := http.NewRequest(r.verb, url, r.body) + if err != nil { + return nil, err + } + req.Header = r.headers + client := r.client + if client == nil { + client = http.DefaultClient + } + r.backoffMgr.Sleep(r.backoffMgr.CalculateBackoff(r.URL())) + resp, err := client.Do(req) + updateURLMetrics(r, resp, err) + if r.baseURL != nil { + if err != nil { + r.backoffMgr.UpdateBackoff(r.baseURL, err, 0) + } else { + r.backoffMgr.UpdateBackoff(r.baseURL, err, resp.StatusCode) + } + } + if err != nil { + // The watch stream mechanism handles many common partial data errors, so closed + // connections can be retried in many cases. + if net.IsProbableEOF(err) { + return watch.NewEmptyWatch(), nil + } + return nil, err + } + if resp.StatusCode != http.StatusOK { + defer resp.Body.Close() + if result := r.transformResponse(resp, req); result.err != nil { + return nil, result.err + } + return nil, fmt.Errorf("for request '%+v', got status: %v", url, resp.StatusCode) + } + framer := r.serializers.Framer.NewFrameReader(resp.Body) + decoder := streaming.NewDecoder(framer, r.serializers.StreamingSerializer) + return watch.NewStreamWatcher(versioned.NewDecoder(decoder, r.serializers.Decoder)), nil +} + +// updateURLMetrics is a convenience function for pushing metrics. +// It also handles corner cases for incomplete/invalid request data. +func updateURLMetrics(req *Request, resp *http.Response, err error) { + url := "none" + if req.baseURL != nil { + url = req.baseURL.Host + } + + // 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() + } else { + //Metrics for failure codes + metrics.RequestResult.WithLabelValues(strconv.Itoa(resp.StatusCode), req.verb, url).Inc() + } +} + +// Stream formats and executes the request, and offers streaming of the response. +// Returns io.ReadCloser which could be used for streaming of the response, or an error +// Any non-2xx http status code causes an error. If we get a non-2xx code, we try to convert the body into an APIStatus object. +// If we can, we return that as an error. Otherwise, we create an error that lists the http status and the content of the response. +func (r *Request) Stream() (io.ReadCloser, error) { + if r.err != nil { + return nil, r.err + } + + r.tryThrottle() + + url := r.URL().String() + req, err := http.NewRequest(r.verb, url, nil) + if err != nil { + return nil, err + } + req.Header = r.headers + client := r.client + if client == nil { + client = http.DefaultClient + } + r.backoffMgr.Sleep(r.backoffMgr.CalculateBackoff(r.URL())) + resp, err := client.Do(req) + updateURLMetrics(r, resp, err) + if r.baseURL != nil { + if err != nil { + r.backoffMgr.UpdateBackoff(r.URL(), err, 0) + } else { + r.backoffMgr.UpdateBackoff(r.URL(), err, resp.StatusCode) + } + } + if err != nil { + return nil, err + } + + switch { + case (resp.StatusCode >= 200) && (resp.StatusCode < 300): + return resp.Body, nil + + default: + // ensure we close the body before returning the error + defer resp.Body.Close() + + // we have a decent shot at taking the object returned, parsing it as a status object and returning a more normal error + bodyBytes, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("%v while accessing %v", resp.Status, url) + } + + // TODO: Check ContentType. + if runtimeObject, err := runtime.Decode(r.serializers.Decoder, bodyBytes); err == nil { + statusError := errors.FromObject(runtimeObject) + + if _, ok := statusError.(errors.APIStatus); ok { + return nil, statusError + } + } + + bodyText := string(bodyBytes) + return nil, fmt.Errorf("%s while accessing %v: %s", resp.Status, url, bodyText) + } +} + +// request connects to the server and invokes the provided function when a server response is +// received. It handles retry behavior and up front validation of requests. It will invoke +// fn at most once. It will return an error if a problem occurred prior to connecting to the +// server - the provided function is responsible for handling server errors. +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)) + }() + + if r.err != nil { + glog.V(4).Infof("Error in request: %v", r.err) + return r.err + } + + // TODO: added to catch programmer errors (invoking operations with an object with an empty namespace) + if (r.verb == "GET" || r.verb == "PUT" || r.verb == "DELETE") && r.namespaceSet && len(r.resourceName) > 0 && len(r.namespace) == 0 { + return fmt.Errorf("an empty namespace may not be set when a resource name is provided") + } + if (r.verb == "POST") && r.namespaceSet && len(r.namespace) == 0 { + return fmt.Errorf("an empty namespace may not be set during creation") + } + + client := r.client + if client == nil { + client = http.DefaultClient + } + + // Right now we make about ten retry attempts if we get a Retry-After response. + // TODO: Change to a timeout based approach. + maxRetries := 10 + retries := 0 + for { + url := r.URL().String() + req, err := http.NewRequest(r.verb, url, r.body) + if err != nil { + return err + } + req.Header = r.headers + + r.backoffMgr.Sleep(r.backoffMgr.CalculateBackoff(r.URL())) + resp, err := client.Do(req) + updateURLMetrics(r, resp, err) + if err != nil { + r.backoffMgr.UpdateBackoff(r.URL(), err, 0) + } else { + r.backoffMgr.UpdateBackoff(r.URL(), err, resp.StatusCode) + } + if err != nil { + return err + } + + done := func() bool { + // ensure the response body is closed before we reconnect, so that we reuse the same + // TCP connection + defer resp.Body.Close() + + retries++ + if seconds, wait := checkWait(resp); wait && retries < maxRetries { + if seeker, ok := r.body.(io.Seeker); ok && r.body != nil { + _, err := seeker.Seek(0, 0) + if err != nil { + glog.V(4).Infof("Could not retry request, can't Seek() back to beginning of body for %T", r.body) + fn(req, resp) + return true + } + } + + glog.V(4).Infof("Got a Retry-After %s response for attempt %d to %v", seconds, retries, url) + r.backoffMgr.Sleep(time.Duration(seconds) * time.Second) + return false + } + fn(req, resp) + return true + }() + if done { + return nil + } + } +} + +// Do formats and executes the request. Returns a Result object for easy response +// processing. +// +// Error type: +// * If the request can't be constructed, or an error happened earlier while building its +// arguments: *RequestConstructionError +// * If the server responds with a status: *errors.StatusError or *errors.UnexpectedObjectError +// * http.Client.Do errors are returned directly. +func (r *Request) Do() Result { + r.tryThrottle() + + var result Result + err := r.request(func(req *http.Request, resp *http.Response) { + result = r.transformResponse(resp, req) + }) + if err != nil { + return Result{err: err} + } + return result +} + +// DoRaw executes the request but does not process the response body. +func (r *Request) DoRaw() ([]byte, error) { + r.tryThrottle() + + var result Result + err := r.request(func(req *http.Request, resp *http.Response) { + result.body, result.err = ioutil.ReadAll(resp.Body) + }) + if err != nil { + return nil, err + } + return result.body, result.err +} + +// transformResponse converts an API response into a structured API object +func (r *Request) transformResponse(resp *http.Response, req *http.Request) Result { + var body []byte + if resp.Body != nil { + if data, err := ioutil.ReadAll(resp.Body); err == nil { + body = data + } + } + + if glog.V(8) { + switch { + case bytes.IndexFunc(body, func(r rune) bool { return r < 0x0a }) != -1: + glog.Infof("Response Body:\n%s", hex.Dump(body)) + default: + glog.Infof("Response Body: %s", string(body)) + } + } + + // verify the content type is accurate + contentType := resp.Header.Get("Content-Type") + decoder := r.serializers.Decoder + if len(contentType) > 0 && (decoder == nil || (len(r.content.ContentType) > 0 && contentType != r.content.ContentType)) { + mediaType, params, err := mime.ParseMediaType(contentType) + if err != nil { + return Result{err: errors.NewInternalError(err)} + } + decoder, err = r.serializers.RenegotiatedDecoder(mediaType, params) + if err != nil { + // if we fail to negotiate a decoder, treat this as an unstructured error + switch { + case resp.StatusCode == http.StatusSwitchingProtocols: + // no-op, we've been upgraded + case resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent: + return Result{err: r.transformUnstructuredResponseError(resp, req, body)} + } + return Result{ + body: body, + contentType: contentType, + statusCode: resp.StatusCode, + } + } + } + + // Did the server give us a status response? + isStatusResponse := false + status := &unversioned.Status{} + // Because release-1.1 server returns Status with empty APIVersion at paths + // to the Extensions resources, we need to use DecodeInto here to provide + // default groupVersion, otherwise a status response won't be correctly + // decoded. + err := runtime.DecodeInto(decoder, body, status) + if err == nil && len(status.Status) > 0 { + isStatusResponse = true + } + + switch { + case resp.StatusCode == http.StatusSwitchingProtocols: + // no-op, we've been upgraded + case resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent: + if !isStatusResponse { + return Result{err: r.transformUnstructuredResponseError(resp, req, body)} + } + return Result{err: errors.FromObject(status)} + } + + // If the server gave us a status back, look at what it was. + success := resp.StatusCode >= http.StatusOK && resp.StatusCode <= http.StatusPartialContent + if isStatusResponse && (status.Status != unversioned.StatusSuccess && !success) { + // "Failed" requests are clearly just an error and it makes sense to return them as such. + return Result{err: errors.FromObject(status)} + } + + return Result{ + body: body, + contentType: contentType, + statusCode: resp.StatusCode, + decoder: decoder, + } +} + +// transformUnstructuredResponseError handles an error from the server that is not in a structured form. +// It is expected to transform any response that is not recognizable as a clear server sent error from the +// K8S API using the information provided with the request. In practice, HTTP proxies and client libraries +// introduce a level of uncertainty to the responses returned by servers that in common use result in +// unexpected responses. The rough structure is: +// +// 1. Assume the server sends you something sane - JSON + well defined error objects + proper codes +// - this is the happy path +// - when you get this output, trust what the server sends +// 2. Guard against empty fields / bodies in received JSON and attempt to cull sufficient info from them to +// generate a reasonable facsimile of the original failure. +// - Be sure to use a distinct error type or flag that allows a client to distinguish between this and error 1 above +// 3. Handle true disconnect failures / completely malformed data by moving up to a more generic client error +// 4. Distinguish between various connection failures like SSL certificates, timeouts, proxy errors, unexpected +// initial contact, the presence of mismatched body contents from posted content types +// - Give these a separate distinct error type and capture as much as possible of the original message +// +// TODO: introduce transformation of generic http.Client.Do() errors that separates 4. +func (r *Request) transformUnstructuredResponseError(resp *http.Response, req *http.Request, body []byte) error { + if body == nil && resp.Body != nil { + if data, err := ioutil.ReadAll(resp.Body); err == nil { + body = data + } + } + glog.V(8).Infof("Response Body: %#v", string(body)) + + message := "unknown" + if isTextResponse(resp) { + message = strings.TrimSpace(string(body)) + } + retryAfter, _ := retryAfterSeconds(resp) + return errors.NewGenericServerResponse( + resp.StatusCode, + req.Method, + unversioned.GroupResource{ + Group: r.content.GroupVersion.Group, + Resource: r.resource, + }, + r.resourceName, + message, + retryAfter, + true, + ) +} + +// isTextResponse returns true if the response appears to be a textual media type. +func isTextResponse(resp *http.Response) bool { + contentType := resp.Header.Get("Content-Type") + if len(contentType) == 0 { + return true + } + media, _, err := mime.ParseMediaType(contentType) + if err != nil { + return false + } + return strings.HasPrefix(media, "text/") +} + +// checkWait returns true along with a number of seconds if the server instructed us to wait +// before retrying. +func checkWait(resp *http.Response) (int, bool) { + switch r := resp.StatusCode; { + // any 500 error code and 429 can trigger a wait + case r == errors.StatusTooManyRequests, r >= 500: + default: + return 0, false + } + i, ok := retryAfterSeconds(resp) + return i, ok +} + +// retryAfterSeconds returns the value of the Retry-After header and true, or 0 and false if +// the header was missing or not a valid number. +func retryAfterSeconds(resp *http.Response) (int, bool) { + if h := resp.Header.Get("Retry-After"); len(h) > 0 { + if i, err := strconv.Atoi(h); err == nil { + return i, true + } + } + return 0, false +} + +// Result contains the result of calling Request.Do(). +type Result struct { + body []byte + contentType string + err error + statusCode int + + decoder runtime.Decoder +} + +// Raw returns the raw result. +func (r Result) Raw() ([]byte, error) { + return r.body, r.err +} + +// Get returns the result as an object. +func (r Result) Get() (runtime.Object, error) { + if r.err != nil { + return nil, r.err + } + if r.decoder == nil { + return nil, fmt.Errorf("serializer for %s doesn't exist", r.contentType) + } + return runtime.Decode(r.decoder, r.body) +} + +// StatusCode returns the HTTP status code of the request. (Only valid if no +// error was returned.) +func (r Result) StatusCode(statusCode *int) Result { + *statusCode = r.statusCode + return r +} + +// Into stores the result into obj, if possible. If obj is nil it is ignored. +func (r Result) Into(obj runtime.Object) error { + if r.err != nil { + return r.err + } + if r.decoder == nil { + return fmt.Errorf("serializer for %s doesn't exist", r.contentType) + } + return runtime.DecodeInto(r.decoder, r.body, obj) +} + +// WasCreated updates the provided bool pointer to whether the server returned +// 201 created or a different response. +func (r Result) WasCreated(wasCreated *bool) Result { + *wasCreated = r.statusCode == http.StatusCreated + return r +} + +// Error returns the error executing the request, nil if no error occurred. +// See the Request.Do() comment for what errors you might get. +func (r Result) Error() error { + return r.err +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/transport.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/transport.go new file mode 100644 index 0000000000..cccea28e77 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/transport.go @@ -0,0 +1,94 @@ +/* +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 rest + +import ( + "crypto/tls" + "net/http" + + "k8s.io/client-go/1.4/transport" +) + +// TLSConfigFor returns a tls.Config that will provide the transport level security defined +// by the provided Config. Will return nil if no transport level security is requested. +func TLSConfigFor(config *Config) (*tls.Config, error) { + cfg, err := config.transportConfig() + if err != nil { + return nil, err + } + return transport.TLSConfigFor(cfg) +} + +// TransportFor returns an http.RoundTripper that will provide the authentication +// or transport level security defined by the provided Config. Will return the +// default http.DefaultTransport if no special case behavior is needed. +func TransportFor(config *Config) (http.RoundTripper, error) { + cfg, err := config.transportConfig() + if err != nil { + return nil, err + } + return transport.New(cfg) +} + +// HTTPWrappersForConfig wraps a round tripper with any relevant layered behavior from the +// config. Exposed to allow more clients that need HTTP-like behavior but then must hijack +// the underlying connection (like WebSocket or HTTP2 clients). Pure HTTP clients should use +// the higher level TransportFor or RESTClientFor methods. +func HTTPWrappersForConfig(config *Config, rt http.RoundTripper) (http.RoundTripper, error) { + cfg, err := config.transportConfig() + if err != nil { + return nil, err + } + return transport.HTTPWrappersForConfig(cfg, rt) +} + +// transportConfig converts a client config to an appropriate transport config. +func (c *Config) transportConfig() (*transport.Config, error) { + wt := c.WrapTransport + if c.AuthProvider != nil { + provider, err := GetAuthProvider(c.Host, c.AuthProvider, c.AuthConfigPersister) + if err != nil { + return nil, err + } + if wt != nil { + previousWT := wt + wt = func(rt http.RoundTripper) http.RoundTripper { + return provider.WrapTransport(previousWT(rt)) + } + } else { + wt = provider.WrapTransport + } + } + return &transport.Config{ + UserAgent: c.UserAgent, + Transport: c.Transport, + WrapTransport: wt, + TLS: transport.TLSConfig{ + CAFile: c.CAFile, + CAData: c.CAData, + CertFile: c.CertFile, + CertData: c.CertData, + KeyFile: c.KeyFile, + KeyData: c.KeyData, + Insecure: c.Insecure, + }, + Username: c.Username, + Password: c.Password, + BearerToken: c.BearerToken, + Impersonate: c.Impersonate, + }, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/url_utils.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/url_utils.go new file mode 100644 index 0000000000..7443c2146c --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/url_utils.go @@ -0,0 +1,93 @@ +/* +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 rest + +import ( + "fmt" + "net/url" + "path" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// DefaultServerURL converts a host, host:port, or URL string to the default base server API path +// to use with a Client at a given API version following the standard conventions for a +// Kubernetes API. +func DefaultServerURL(host, apiPath string, groupVersion unversioned.GroupVersion, defaultTLS bool) (*url.URL, string, error) { + if host == "" { + return nil, "", fmt.Errorf("host must be a URL or a host:port pair") + } + base := host + hostURL, err := url.Parse(base) + if err != nil { + return nil, "", err + } + if hostURL.Scheme == "" || hostURL.Host == "" { + scheme := "http://" + if defaultTLS { + scheme = "https://" + } + hostURL, err = url.Parse(scheme + base) + if err != nil { + return nil, "", err + } + if hostURL.Path != "" && hostURL.Path != "/" { + return nil, "", fmt.Errorf("host must be a URL or a host:port pair: %q", base) + } + } + + // hostURL.Path is optional; a non-empty Path is treated as a prefix that is to be applied to + // all URIs used to access the host. this is useful when there's a proxy in front of the + // apiserver that has relocated the apiserver endpoints, forwarding all requests from, for + // example, /a/b/c to the apiserver. in this case the Path should be /a/b/c. + // + // if running without a frontend proxy (that changes the location of the apiserver), then + // hostURL.Path should be blank. + // + // versionedAPIPath, a path relative to baseURL.Path, points to a versioned API base + versionedAPIPath := path.Join("/", apiPath) + + // Add the version to the end of the path + if len(groupVersion.Group) > 0 { + versionedAPIPath = path.Join(versionedAPIPath, groupVersion.Group, groupVersion.Version) + + } else { + versionedAPIPath = path.Join(versionedAPIPath, groupVersion.Version) + + } + + return hostURL, versionedAPIPath, nil +} + +// defaultServerUrlFor is shared between IsConfigTransportTLS and RESTClientFor. It +// requires Host and Version to be set prior to being called. +func defaultServerUrlFor(config *Config) (*url.URL, string, error) { + // TODO: move the default to secure when the apiserver supports TLS by default + // config.Insecure is taken to mean "I want HTTPS but don't bother checking the certs against a CA." + hasCA := len(config.CAFile) != 0 || len(config.CAData) != 0 + hasCert := len(config.CertFile) != 0 || len(config.CertData) != 0 + defaultTLS := hasCA || hasCert || config.Insecure + host := config.Host + if host == "" { + host = "localhost" + } + + if config.GroupVersion != nil { + return DefaultServerURL(host, config.APIPath, *config.GroupVersion, defaultTLS) + } + return DefaultServerURL(host, config.APIPath, unversioned.GroupVersion{}, defaultTLS) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/urlbackoff.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/urlbackoff.go new file mode 100644 index 0000000000..bdce99109a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/urlbackoff.go @@ -0,0 +1,107 @@ +/* +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 rest + +import ( + "net/url" + "time" + + "github.com/golang/glog" + "k8s.io/client-go/1.4/pkg/util/flowcontrol" + "k8s.io/client-go/1.4/pkg/util/sets" +) + +// Set of resp. Codes that we backoff for. +// In general these should be errors that indicate a server is overloaded. +// These shouldn't be configured by any user, we set them based on conventions +// described in +var serverIsOverloadedSet = sets.NewInt(429) +var maxResponseCode = 499 + +type BackoffManager interface { + UpdateBackoff(actualUrl *url.URL, err error, responseCode int) + CalculateBackoff(actualUrl *url.URL) time.Duration + Sleep(d time.Duration) +} + +// URLBackoff struct implements the semantics on top of Backoff which +// we need for URL specific exponential backoff. +type URLBackoff struct { + // Uses backoff as underlying implementation. + Backoff *flowcontrol.Backoff +} + +// NoBackoff is a stub implementation, can be used for mocking or else as a default. +type NoBackoff struct { +} + +func (n *NoBackoff) UpdateBackoff(actualUrl *url.URL, err error, responseCode int) { + // do nothing. +} + +func (n *NoBackoff) CalculateBackoff(actualUrl *url.URL) time.Duration { + return 0 * time.Second +} + +func (n *NoBackoff) Sleep(d time.Duration) { + time.Sleep(d) +} + +// Disable makes the backoff trivial, i.e., sets it to zero. This might be used +// by tests which want to run 1000s of mock requests without slowing down. +func (b *URLBackoff) Disable() { + glog.V(4).Infof("Disabling backoff strategy") + b.Backoff = flowcontrol.NewBackOff(0*time.Second, 0*time.Second) +} + +// baseUrlKey returns the key which urls will be mapped to. +// For example, 127.0.0.1:8080/api/v2/abcde -> 127.0.0.1:8080. +func (b *URLBackoff) baseUrlKey(rawurl *url.URL) string { + // Simple implementation for now, just the host. + // We may backoff specific paths (i.e. "pods") differentially + // in the future. + host, err := url.Parse(rawurl.String()) + if err != nil { + glog.V(4).Infof("Error extracting url: %v", rawurl) + panic("bad url!") + } + return host.Host +} + +// UpdateBackoff updates backoff metadata +func (b *URLBackoff) UpdateBackoff(actualUrl *url.URL, err error, responseCode int) { + // range for retry counts that we store is [0,13] + if responseCode > maxResponseCode || serverIsOverloadedSet.Has(responseCode) { + b.Backoff.Next(b.baseUrlKey(actualUrl), b.Backoff.Clock.Now()) + return + } else if responseCode >= 300 || err != nil { + glog.V(4).Infof("Client is returning errors: code %v, error %v", responseCode, err) + } + + //If we got this far, there is no backoff required for this URL anymore. + b.Backoff.Reset(b.baseUrlKey(actualUrl)) +} + +// CalculateBackoff takes a url and back's off exponentially, +// based on its knowledge of existing failures. +func (b *URLBackoff) CalculateBackoff(actualUrl *url.URL) time.Duration { + return b.Backoff.Get(b.baseUrlKey(actualUrl)) +} + +func (b *URLBackoff) Sleep(d time.Duration) { + b.Backoff.Clock.Sleep(d) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/versions.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/versions.go new file mode 100644 index 0000000000..6fd6a9b671 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/rest/versions.go @@ -0,0 +1,88 @@ +/* +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 rest + +import ( + "encoding/json" + "fmt" + "net/http" + "path" + + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +const ( + legacyAPIPath = "/api" + defaultAPIPath = "/apis" +) + +// TODO: Is this obsoleted by the discovery client? + +// ServerAPIVersions returns the GroupVersions supported by the API server. +// It creates a RESTClient based on the passed in config, but it doesn't rely +// on the Version and Codec of the config, because it uses AbsPath and +// takes the raw response. +func ServerAPIVersions(c *Config) (groupVersions []string, err error) { + transport, err := TransportFor(c) + if err != nil { + return nil, err + } + client := http.Client{Transport: transport} + + configCopy := *c + configCopy.GroupVersion = nil + configCopy.APIPath = "" + baseURL, _, err := defaultServerUrlFor(&configCopy) + if err != nil { + return nil, err + } + // Get the groupVersions exposed at /api + originalPath := baseURL.Path + baseURL.Path = path.Join(originalPath, legacyAPIPath) + resp, err := client.Get(baseURL.String()) + if err != nil { + return nil, err + } + var v unversioned.APIVersions + defer resp.Body.Close() + err = json.NewDecoder(resp.Body).Decode(&v) + if err != nil { + return nil, fmt.Errorf("unexpected error: %v", err) + } + + groupVersions = append(groupVersions, v.Versions...) + // Get the groupVersions exposed at /apis + baseURL.Path = path.Join(originalPath, defaultAPIPath) + resp2, err := client.Get(baseURL.String()) + if err != nil { + return nil, err + } + var apiGroupList unversioned.APIGroupList + defer resp2.Body.Close() + err = json.NewDecoder(resp2.Body).Decode(&apiGroupList) + if err != nil { + return nil, fmt.Errorf("unexpected error: %v", err) + } + + for _, g := range apiGroupList.Groups { + for _, gv := range g.Versions { + groupVersions = append(groupVersions, gv.GroupVersion) + } + } + + return groupVersions, nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/helpers.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/helpers.go new file mode 100644 index 0000000000..43e26487cb --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/helpers.go @@ -0,0 +1,183 @@ +/* +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 api + +import ( + "encoding/base64" + "errors" + "fmt" + "io/ioutil" + "os" + "path" + "path/filepath" +) + +func init() { + sDec, _ := base64.StdEncoding.DecodeString("REDACTED+") + redactedBytes = []byte(string(sDec)) +} + +// IsConfigEmpty returns true if the config is empty. +func IsConfigEmpty(config *Config) bool { + return len(config.AuthInfos) == 0 && len(config.Clusters) == 0 && len(config.Contexts) == 0 && + len(config.CurrentContext) == 0 && + len(config.Preferences.Extensions) == 0 && !config.Preferences.Colors && + len(config.Extensions) == 0 +} + +// MinifyConfig read the current context and uses that to keep only the relevant pieces of config +// This is useful for making secrets based on kubeconfig files +func MinifyConfig(config *Config) error { + if len(config.CurrentContext) == 0 { + return errors.New("current-context must exist in order to minify") + } + + currContext, exists := config.Contexts[config.CurrentContext] + if !exists { + return fmt.Errorf("cannot locate context %v", config.CurrentContext) + } + + newContexts := map[string]*Context{} + newContexts[config.CurrentContext] = currContext + + newClusters := map[string]*Cluster{} + if len(currContext.Cluster) > 0 { + if _, exists := config.Clusters[currContext.Cluster]; !exists { + return fmt.Errorf("cannot locate cluster %v", currContext.Cluster) + } + + newClusters[currContext.Cluster] = config.Clusters[currContext.Cluster] + } + + newAuthInfos := map[string]*AuthInfo{} + if len(currContext.AuthInfo) > 0 { + if _, exists := config.AuthInfos[currContext.AuthInfo]; !exists { + return fmt.Errorf("cannot locate user %v", currContext.AuthInfo) + } + + newAuthInfos[currContext.AuthInfo] = config.AuthInfos[currContext.AuthInfo] + } + + config.AuthInfos = newAuthInfos + config.Clusters = newClusters + config.Contexts = newContexts + + return nil +} + +var redactedBytes []byte + +// Flatten redacts raw data entries from the config object for a human-readable view. +func ShortenConfig(config *Config) { + // trick json encoder into printing a human readable string in the raw data + // by base64 decoding what we want to print. Relies on implementation of + // http://golang.org/pkg/encoding/json/#Marshal using base64 to encode []byte + for key, authInfo := range config.AuthInfos { + if len(authInfo.ClientKeyData) > 0 { + authInfo.ClientKeyData = redactedBytes + } + if len(authInfo.ClientCertificateData) > 0 { + authInfo.ClientCertificateData = redactedBytes + } + config.AuthInfos[key] = authInfo + } + for key, cluster := range config.Clusters { + if len(cluster.CertificateAuthorityData) > 0 { + cluster.CertificateAuthorityData = redactedBytes + } + config.Clusters[key] = cluster + } +} + +// Flatten changes the config object into a self contained config (useful for making secrets) +func FlattenConfig(config *Config) error { + for key, authInfo := range config.AuthInfos { + baseDir, err := MakeAbs(path.Dir(authInfo.LocationOfOrigin), "") + if err != nil { + return err + } + + if err := FlattenContent(&authInfo.ClientCertificate, &authInfo.ClientCertificateData, baseDir); err != nil { + return err + } + if err := FlattenContent(&authInfo.ClientKey, &authInfo.ClientKeyData, baseDir); err != nil { + return err + } + + config.AuthInfos[key] = authInfo + } + for key, cluster := range config.Clusters { + baseDir, err := MakeAbs(path.Dir(cluster.LocationOfOrigin), "") + if err != nil { + return err + } + + if err := FlattenContent(&cluster.CertificateAuthority, &cluster.CertificateAuthorityData, baseDir); err != nil { + return err + } + + config.Clusters[key] = cluster + } + + return nil +} + +func FlattenContent(path *string, contents *[]byte, baseDir string) error { + if len(*path) != 0 { + if len(*contents) > 0 { + return errors.New("cannot have values for both path and contents") + } + + var err error + absPath := ResolvePath(*path, baseDir) + *contents, err = ioutil.ReadFile(absPath) + if err != nil { + return err + } + + *path = "" + } + + return nil +} + +// ResolvePath returns the path as an absolute paths, relative to the given base directory +func ResolvePath(path string, base string) string { + // Don't resolve empty paths + if len(path) > 0 { + // Don't resolve absolute paths + if !filepath.IsAbs(path) { + return filepath.Join(base, path) + } + } + + return path +} + +func MakeAbs(path, base string) (string, error) { + if filepath.IsAbs(path) { + return path, nil + } + if len(base) == 0 { + cwd, err := os.Getwd() + if err != nil { + return "", err + } + base = cwd + } + return filepath.Join(base, path), nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/register.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/register.go new file mode 100644 index 0000000000..4597ae6f55 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/register.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 api + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// SchemeGroupVersion is group version used to register these objects +// TODO this should be in the "kubeconfig" group +var SchemeGroupVersion = unversioned.GroupVersion{Group: "", Version: runtime.APIVersionInternal} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &Config{}, + ) + return nil +} + +func (obj *Config) GetObjectKind() unversioned.ObjectKind { return obj } +func (obj *Config) SetGroupVersionKind(gvk unversioned.GroupVersionKind) { + obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() +} +func (obj *Config) GroupVersionKind() unversioned.GroupVersionKind { + return unversioned.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/types.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/types.go new file mode 100644 index 0000000000..b09de0bfbf --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/clientcmd/api/types.go @@ -0,0 +1,152 @@ +/* +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 api + +import ( + "k8s.io/client-go/1.4/pkg/runtime" +) + +// Where possible, json tags match the cli argument names. +// Top level config objects and all values required for proper functioning are not "omitempty". Any truly optional piece of config is allowed to be omitted. + +// Config holds the information needed to build connect to remote kubernetes clusters as a given user +// IMPORTANT if you add fields to this struct, please update IsConfigEmpty() +type Config struct { + // Legacy field from pkg/api/types.go TypeMeta. + // TODO(jlowdermilk): remove this after eliminating downstream dependencies. + Kind string `json:"kind,omitempty"` + // DEPRECATED: APIVersion is the preferred api version for communicating with the kubernetes cluster (v1, v2, etc). + // Because a cluster can run multiple API groups and potentially multiple versions of each, it no longer makes sense to specify + // a single value for the cluster version. + // This field isn't really needed anyway, so we are deprecating it without replacement. + // It will be ignored if it is present. + APIVersion string `json:"apiVersion,omitempty"` + // Preferences holds general information to be use for cli interactions + Preferences Preferences `json:"preferences"` + // Clusters is a map of referencable names to cluster configs + Clusters map[string]*Cluster `json:"clusters"` + // AuthInfos is a map of referencable names to user configs + AuthInfos map[string]*AuthInfo `json:"users"` + // Contexts is a map of referencable names to context configs + Contexts map[string]*Context `json:"contexts"` + // CurrentContext is the name of the context that you would like to use by default + CurrentContext string `json:"current-context"` + // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + Extensions map[string]runtime.Object `json:"extensions,omitempty"` +} + +// IMPORTANT if you add fields to this struct, please update IsConfigEmpty() +type Preferences struct { + Colors bool `json:"colors,omitempty"` + // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + Extensions map[string]runtime.Object `json:"extensions,omitempty"` +} + +// Cluster contains information about how to communicate with a kubernetes cluster +type Cluster struct { + // LocationOfOrigin indicates where this object came from. It is used for round tripping config post-merge, but never serialized. + LocationOfOrigin string + // Server is the address of the kubernetes cluster (https://hostname:port). + Server string `json:"server"` + // APIVersion is the preferred api version for communicating with the kubernetes cluster (v1, v2, etc). + APIVersion string `json:"api-version,omitempty"` + // InsecureSkipTLSVerify skips the validity check for the server's certificate. This will make your HTTPS connections insecure. + InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify,omitempty"` + // CertificateAuthority is the path to a cert file for the certificate authority. + CertificateAuthority string `json:"certificate-authority,omitempty"` + // CertificateAuthorityData contains PEM-encoded certificate authority certificates. Overrides CertificateAuthority + CertificateAuthorityData []byte `json:"certificate-authority-data,omitempty"` + // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + Extensions map[string]runtime.Object `json:"extensions,omitempty"` +} + +// AuthInfo contains information that describes identity information. This is use to tell the kubernetes cluster who you are. +type AuthInfo struct { + // LocationOfOrigin indicates where this object came from. It is used for round tripping config post-merge, but never serialized. + LocationOfOrigin string + // ClientCertificate is the path to a client cert file for TLS. + ClientCertificate string `json:"client-certificate,omitempty"` + // ClientCertificateData contains PEM-encoded data from a client cert file for TLS. Overrides ClientCertificate + ClientCertificateData []byte `json:"client-certificate-data,omitempty"` + // ClientKey is the path to a client key file for TLS. + ClientKey string `json:"client-key,omitempty"` + // ClientKeyData contains PEM-encoded data from a client key file for TLS. Overrides ClientKey + ClientKeyData []byte `json:"client-key-data,omitempty"` + // Token is the bearer token for authentication to the kubernetes cluster. + Token string `json:"token,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. + Username string `json:"username,omitempty"` + // Password is the password for basic authentication to the kubernetes cluster. + Password string `json:"password,omitempty"` + // AuthProvider specifies a custom authentication plugin for the kubernetes cluster. + AuthProvider *AuthProviderConfig `json:"auth-provider,omitempty"` + // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + Extensions map[string]runtime.Object `json:"extensions,omitempty"` +} + +// Context is a tuple of references to a cluster (how do I communicate with a kubernetes cluster), a user (how do I identify myself), and a namespace (what subset of resources do I want to work with) +type Context struct { + // LocationOfOrigin indicates where this object came from. It is used for round tripping config post-merge, but never serialized. + LocationOfOrigin string + // Cluster is the name of the cluster for this context + Cluster string `json:"cluster"` + // AuthInfo is the name of the authInfo for this context + AuthInfo string `json:"user"` + // Namespace is the default namespace to use on unspecified requests + Namespace string `json:"namespace,omitempty"` + // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + Extensions map[string]runtime.Object `json:"extensions,omitempty"` +} + +// AuthProviderConfig holds the configuration for a specified auth provider. +type AuthProviderConfig struct { + Name string `json:"name"` + Config map[string]string `json:"config,omitempty"` +} + +// NewConfig is a convenience function that returns a new Config object with non-nil maps +func NewConfig() *Config { + return &Config{ + Preferences: *NewPreferences(), + Clusters: make(map[string]*Cluster), + AuthInfos: make(map[string]*AuthInfo), + Contexts: make(map[string]*Context), + Extensions: make(map[string]runtime.Object), + } +} + +// NewConfig is a convenience function that returns a new Config object with non-nil maps +func NewContext() *Context { + return &Context{Extensions: make(map[string]runtime.Object)} +} + +// NewConfig is a convenience function that returns a new Config object with non-nil maps +func NewCluster() *Cluster { + return &Cluster{Extensions: make(map[string]runtime.Object)} +} + +// NewConfig is a convenience function that returns a new Config object with non-nil maps +func NewAuthInfo() *AuthInfo { + return &AuthInfo{Extensions: make(map[string]runtime.Object)} +} + +// NewConfig is a convenience function that returns a new Config object with non-nil maps +func NewPreferences() *Preferences { + return &Preferences{Extensions: make(map[string]runtime.Object)} +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/metrics/metrics.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/metrics/metrics.go new file mode 100644 index 0000000000..3f649643ca --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/tools/metrics/metrics.go @@ -0,0 +1,67 @@ +/* +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 metrics provides utilities for registering client metrics to Prometheus. +package metrics + +import ( + "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. + registerMetrics.Do(func() { + prometheus.MustRegister(RequestLatency) + prometheus.MustRegister(RequestResult) + }) +} + +// Calculates the time since the specified start in microseconds. +func SinceInMicroseconds(start time.Time) float64 { + return float64(time.Since(start).Nanoseconds() / time.Microsecond.Nanoseconds()) +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/cache.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/cache.go new file mode 100644 index 0000000000..b6e4e7a291 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/cache.go @@ -0,0 +1,88 @@ +/* +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 transport + +import ( + "fmt" + "net" + "net/http" + "sync" + "time" + + utilnet "k8s.io/client-go/1.4/pkg/util/net" +) + +// TlsTransportCache caches TLS http.RoundTrippers different configurations. The +// same RoundTripper will be returned for configs with identical TLS options If +// the config has no custom TLS options, http.DefaultTransport is returned. +type tlsTransportCache struct { + mu sync.Mutex + transports map[string]*http.Transport +} + +const idleConnsPerHost = 25 + +var tlsCache = &tlsTransportCache{transports: make(map[string]*http.Transport)} + +func (c *tlsTransportCache) get(config *Config) (http.RoundTripper, error) { + key, err := tlsConfigKey(config) + if err != nil { + return nil, err + } + + // Ensure we only create a single transport for the given TLS options + c.mu.Lock() + defer c.mu.Unlock() + + // See if we already have a custom transport for this config + if t, ok := c.transports[key]; ok { + return t, nil + } + + // Get the TLS options for this client config + tlsConfig, err := TLSConfigFor(config) + if err != nil { + return nil, err + } + // The options didn't require a custom TLS config + if tlsConfig == nil { + return http.DefaultTransport, nil + } + + // Cache a single transport for these options + c.transports[key] = utilnet.SetTransportDefaults(&http.Transport{ + Proxy: http.ProxyFromEnvironment, + TLSHandshakeTimeout: 10 * time.Second, + TLSClientConfig: tlsConfig, + MaxIdleConnsPerHost: idleConnsPerHost, + Dial: (&net.Dialer{ + Timeout: 30 * time.Second, + KeepAlive: 30 * time.Second, + }).Dial, + }) + return c.transports[key], nil +} + +// tlsConfigKey returns a unique key for tls.Config objects returned from TLSConfigFor +func tlsConfigKey(c *Config) (string, error) { + // Make sure ca/key/cert content is loaded + if err := loadTLSFiles(c); err != nil { + return "", err + } + // Only include the things that actually affect the tls.Config + return fmt.Sprintf("%v/%x/%x/%x", c.TLS.Insecure, c.TLS.CAData, c.TLS.CertData, c.TLS.KeyData), nil +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/config.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/config.go new file mode 100644 index 0000000000..6e5c68a30b --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/config.go @@ -0,0 +1,84 @@ +/* +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 transport + +import "net/http" + +// Config holds various options for establishing a transport. +type Config struct { + // UserAgent is an optional field that specifies the caller of this + // request. + UserAgent string + + // The base TLS configuration for this transport. + TLS TLSConfig + + // Username and password for basic authentication + Username string + Password string + + // Bearer token for authentication + BearerToken string + + // Impersonate is the username that this Config will impersonate + Impersonate string + + // Transport may be used for custom HTTP behavior. This attribute may + // not be specified with the TLS client certificate options. Use + // WrapTransport for most client level operations. + Transport http.RoundTripper + + // WrapTransport will be invoked for custom HTTP behavior after the + // underlying transport is initialized (either the transport created + // from TLSClientConfig, Transport, or http.DefaultTransport). The + // config may layer other RoundTrippers on top of the returned + // RoundTripper. + WrapTransport func(rt http.RoundTripper) http.RoundTripper +} + +// HasCA returns whether the configuration has a certificate authority or not. +func (c *Config) HasCA() bool { + return len(c.TLS.CAData) > 0 || len(c.TLS.CAFile) > 0 +} + +// HasBasicAuth returns whether the configuration has basic authentication or not. +func (c *Config) HasBasicAuth() bool { + return len(c.Username) != 0 +} + +// HasTokenAuth returns whether the configuration has token authentication or not. +func (c *Config) HasTokenAuth() bool { + return len(c.BearerToken) != 0 +} + +// HasCertAuth returns whether the configuration has certificate authentication or not. +func (c *Config) HasCertAuth() bool { + return len(c.TLS.CertData) != 0 || len(c.TLS.CertFile) != 0 +} + +// TLSConfig holds the information needed to set up a TLS transport. +type TLSConfig struct { + CAFile string // Path of the PEM-encoded server trusted root certificates. + CertFile string // Path of the PEM-encoded client certificate. + KeyFile string // Path of the PEM-encoded client key. + + Insecure bool // Server should be accessed without verifying the certificate. For testing only. + + CAData []byte // Bytes of the PEM-encoded server trusted root certificates. Supercedes CAFile. + CertData []byte // Bytes of the PEM-encoded client certificate. Supercedes CertFile. + KeyData []byte // Bytes of the PEM-encoded client key. Supercedes KeyFile. +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/round_trippers.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/round_trippers.go new file mode 100644 index 0000000000..aadf0cbf9a --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/round_trippers.go @@ -0,0 +1,337 @@ +/* +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 transport + +import ( + "fmt" + "net/http" + "time" + + "github.com/golang/glog" +) + +// HTTPWrappersForConfig wraps a round tripper with any relevant layered +// behavior from the config. Exposed to allow more clients that need HTTP-like +// behavior but then must hijack the underlying connection (like WebSocket or +// HTTP2 clients). Pure HTTP clients should use the RoundTripper returned from +// New. +func HTTPWrappersForConfig(config *Config, rt http.RoundTripper) (http.RoundTripper, error) { + if config.WrapTransport != nil { + rt = config.WrapTransport(rt) + } + + rt = DebugWrappers(rt) + + // Set authentication wrappers + switch { + case config.HasBasicAuth() && config.HasTokenAuth(): + return nil, fmt.Errorf("username/password or bearer token may be set, but not both") + case config.HasTokenAuth(): + rt = NewBearerAuthRoundTripper(config.BearerToken, rt) + case config.HasBasicAuth(): + rt = NewBasicAuthRoundTripper(config.Username, config.Password, rt) + } + if len(config.UserAgent) > 0 { + rt = NewUserAgentRoundTripper(config.UserAgent, rt) + } + if len(config.Impersonate) > 0 { + rt = NewImpersonatingRoundTripper(config.Impersonate, rt) + } + return rt, nil +} + +// DebugWrappers wraps a round tripper and logs based on the current log level. +func DebugWrappers(rt http.RoundTripper) http.RoundTripper { + switch { + case bool(glog.V(9)): + rt = newDebuggingRoundTripper(rt, debugCurlCommand, debugURLTiming, debugResponseHeaders) + case bool(glog.V(8)): + rt = newDebuggingRoundTripper(rt, debugJustURL, debugRequestHeaders, debugResponseStatus, debugResponseHeaders) + case bool(glog.V(7)): + rt = newDebuggingRoundTripper(rt, debugJustURL, debugRequestHeaders, debugResponseStatus) + case bool(glog.V(6)): + rt = newDebuggingRoundTripper(rt, debugURLTiming) + } + + return rt +} + +type requestCanceler interface { + CancelRequest(*http.Request) +} + +type userAgentRoundTripper struct { + agent string + rt http.RoundTripper +} + +func NewUserAgentRoundTripper(agent string, rt http.RoundTripper) http.RoundTripper { + return &userAgentRoundTripper{agent, rt} +} + +func (rt *userAgentRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + if len(req.Header.Get("User-Agent")) != 0 { + return rt.rt.RoundTrip(req) + } + req = cloneRequest(req) + req.Header.Set("User-Agent", rt.agent) + return rt.rt.RoundTrip(req) +} + +func (rt *userAgentRoundTripper) CancelRequest(req *http.Request) { + if canceler, ok := rt.rt.(requestCanceler); ok { + canceler.CancelRequest(req) + } else { + glog.Errorf("CancelRequest not implemented") + } +} + +func (rt *userAgentRoundTripper) WrappedRoundTripper() http.RoundTripper { return rt.rt } + +type basicAuthRoundTripper struct { + username string + password string + rt http.RoundTripper +} + +// NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a +// request unless it has already been set. +func NewBasicAuthRoundTripper(username, password string, rt http.RoundTripper) http.RoundTripper { + return &basicAuthRoundTripper{username, password, rt} +} + +func (rt *basicAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + if len(req.Header.Get("Authorization")) != 0 { + return rt.rt.RoundTrip(req) + } + req = cloneRequest(req) + req.SetBasicAuth(rt.username, rt.password) + return rt.rt.RoundTrip(req) +} + +func (rt *basicAuthRoundTripper) CancelRequest(req *http.Request) { + if canceler, ok := rt.rt.(requestCanceler); ok { + canceler.CancelRequest(req) + } else { + glog.Errorf("CancelRequest not implemented") + } +} + +func (rt *basicAuthRoundTripper) WrappedRoundTripper() http.RoundTripper { return rt.rt } + +type impersonatingRoundTripper struct { + impersonate string + delegate http.RoundTripper +} + +// NewImpersonatingRoundTripper will add an Act-As header to a request unless it has already been set. +func NewImpersonatingRoundTripper(impersonate string, delegate http.RoundTripper) http.RoundTripper { + return &impersonatingRoundTripper{impersonate, delegate} +} + +func (rt *impersonatingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + if len(req.Header.Get("Impersonate-User")) != 0 { + return rt.delegate.RoundTrip(req) + } + req = cloneRequest(req) + req.Header.Set("Impersonate-User", rt.impersonate) + return rt.delegate.RoundTrip(req) +} + +func (rt *impersonatingRoundTripper) CancelRequest(req *http.Request) { + if canceler, ok := rt.delegate.(requestCanceler); ok { + canceler.CancelRequest(req) + } else { + glog.Errorf("CancelRequest not implemented") + } +} + +func (rt *impersonatingRoundTripper) WrappedRoundTripper() http.RoundTripper { return rt.delegate } + +type bearerAuthRoundTripper struct { + bearer string + rt http.RoundTripper +} + +// NewBearerAuthRoundTripper adds the provided bearer token to a request +// unless the authorization header has already been set. +func NewBearerAuthRoundTripper(bearer string, rt http.RoundTripper) http.RoundTripper { + return &bearerAuthRoundTripper{bearer, rt} +} + +func (rt *bearerAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + if len(req.Header.Get("Authorization")) != 0 { + return rt.rt.RoundTrip(req) + } + + req = cloneRequest(req) + req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", rt.bearer)) + return rt.rt.RoundTrip(req) +} + +func (rt *bearerAuthRoundTripper) CancelRequest(req *http.Request) { + if canceler, ok := rt.rt.(requestCanceler); ok { + canceler.CancelRequest(req) + } else { + glog.Errorf("CancelRequest not implemented") + } +} + +func (rt *bearerAuthRoundTripper) WrappedRoundTripper() http.RoundTripper { return rt.rt } + +// cloneRequest returns a clone of the provided *http.Request. +// The clone is a shallow copy of the struct and its Header map. +func cloneRequest(r *http.Request) *http.Request { + // shallow copy of the struct + r2 := new(http.Request) + *r2 = *r + // deep copy of the Header + r2.Header = make(http.Header) + for k, s := range r.Header { + r2.Header[k] = s + } + return r2 +} + +// requestInfo keeps track of information about a request/response combination +type requestInfo struct { + RequestHeaders http.Header + RequestVerb string + RequestURL string + + ResponseStatus string + ResponseHeaders http.Header + ResponseErr error + + Duration time.Duration +} + +// newRequestInfo creates a new RequestInfo based on an http request +func newRequestInfo(req *http.Request) *requestInfo { + return &requestInfo{ + RequestURL: req.URL.String(), + RequestVerb: req.Method, + RequestHeaders: req.Header, + } +} + +// complete adds information about the response to the requestInfo +func (r *requestInfo) complete(response *http.Response, err error) { + if err != nil { + r.ResponseErr = err + return + } + r.ResponseStatus = response.Status + r.ResponseHeaders = response.Header +} + +// toCurl returns a string that can be run as a command in a terminal (minus the body) +func (r *requestInfo) toCurl() string { + headers := "" + for key, values := range r.RequestHeaders { + for _, value := range values { + headers += fmt.Sprintf(` -H %q`, fmt.Sprintf("%s: %s", key, value)) + } + } + + return fmt.Sprintf("curl -k -v -X%s %s %s", r.RequestVerb, headers, r.RequestURL) +} + +// debuggingRoundTripper will display information about the requests passing +// through it based on what is configured +type debuggingRoundTripper struct { + delegatedRoundTripper http.RoundTripper + + levels map[debugLevel]bool +} + +type debugLevel int + +const ( + debugJustURL debugLevel = iota + debugURLTiming + debugCurlCommand + debugRequestHeaders + debugResponseStatus + debugResponseHeaders +) + +func newDebuggingRoundTripper(rt http.RoundTripper, levels ...debugLevel) *debuggingRoundTripper { + drt := &debuggingRoundTripper{ + delegatedRoundTripper: rt, + levels: make(map[debugLevel]bool, len(levels)), + } + for _, v := range levels { + drt.levels[v] = true + } + return drt +} + +func (rt *debuggingRoundTripper) CancelRequest(req *http.Request) { + if canceler, ok := rt.delegatedRoundTripper.(requestCanceler); ok { + canceler.CancelRequest(req) + } else { + glog.Errorf("CancelRequest not implemented") + } +} + +func (rt *debuggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + reqInfo := newRequestInfo(req) + + if rt.levels[debugJustURL] { + glog.Infof("%s %s", reqInfo.RequestVerb, reqInfo.RequestURL) + } + if rt.levels[debugCurlCommand] { + glog.Infof("%s", reqInfo.toCurl()) + + } + if rt.levels[debugRequestHeaders] { + glog.Infof("Request Headers:") + for key, values := range reqInfo.RequestHeaders { + for _, value := range values { + glog.Infof(" %s: %s", key, value) + } + } + } + + startTime := time.Now() + response, err := rt.delegatedRoundTripper.RoundTrip(req) + reqInfo.Duration = time.Since(startTime) + + reqInfo.complete(response, err) + + if rt.levels[debugURLTiming] { + glog.Infof("%s %s %s in %d milliseconds", reqInfo.RequestVerb, reqInfo.RequestURL, reqInfo.ResponseStatus, reqInfo.Duration.Nanoseconds()/int64(time.Millisecond)) + } + if rt.levels[debugResponseStatus] { + glog.Infof("Response Status: %s in %d milliseconds", reqInfo.ResponseStatus, reqInfo.Duration.Nanoseconds()/int64(time.Millisecond)) + } + if rt.levels[debugResponseHeaders] { + glog.Infof("Response Headers:") + for key, values := range reqInfo.ResponseHeaders { + for _, value := range values { + glog.Infof(" %s: %s", key, value) + } + } + } + + return response, err +} + +func (rt *debuggingRoundTripper) WrappedRoundTripper() http.RoundTripper { + return rt.delegatedRoundTripper +} diff --git a/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/transport.go b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/transport.go new file mode 100644 index 0000000000..9c5b9ef3c3 --- /dev/null +++ b/ingress/vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/transport/transport.go @@ -0,0 +1,140 @@ +/* +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 transport + +import ( + "crypto/tls" + "crypto/x509" + "fmt" + "io/ioutil" + "net/http" +) + +// New returns an http.RoundTripper that will provide the authentication +// or transport level security defined by the provided Config. +func New(config *Config) (http.RoundTripper, error) { + // Set transport level security + if config.Transport != nil && (config.HasCA() || config.HasCertAuth() || config.TLS.Insecure) { + return nil, fmt.Errorf("using a custom transport with TLS certificate options or the insecure flag is not allowed") + } + + var ( + rt http.RoundTripper + err error + ) + + if config.Transport != nil { + rt = config.Transport + } else { + rt, err = tlsCache.get(config) + if err != nil { + return nil, err + } + } + + return HTTPWrappersForConfig(config, rt) +} + +// TLSConfigFor returns a tls.Config that will provide the transport level security defined +// by the provided Config. Will return nil if no transport level security is requested. +func TLSConfigFor(c *Config) (*tls.Config, error) { + if !(c.HasCA() || c.HasCertAuth() || c.TLS.Insecure) { + return nil, nil + } + if c.HasCA() && c.TLS.Insecure { + return nil, fmt.Errorf("specifying a root certificates file with the insecure flag is not allowed") + } + if err := loadTLSFiles(c); err != nil { + return nil, err + } + + tlsConfig := &tls.Config{ + // Can't use SSLv3 because of POODLE and BEAST + // Can't use TLSv1.0 because of POODLE and BEAST using CBC cipher + // Can't use TLSv1.1 because of RC4 cipher usage + MinVersion: tls.VersionTLS12, + InsecureSkipVerify: c.TLS.Insecure, + } + + if c.HasCA() { + tlsConfig.RootCAs = rootCertPool(c.TLS.CAData) + } + + if c.HasCertAuth() { + cert, err := tls.X509KeyPair(c.TLS.CertData, c.TLS.KeyData) + if err != nil { + return nil, err + } + tlsConfig.Certificates = []tls.Certificate{cert} + } + + return tlsConfig, nil +} + +// loadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData, +// KeyData, and CAFile fields, or returns an error. If no error is returned, all three fields are +// either populated or were empty to start. +func loadTLSFiles(c *Config) error { + var err error + c.TLS.CAData, err = dataFromSliceOrFile(c.TLS.CAData, c.TLS.CAFile) + if err != nil { + return err + } + + c.TLS.CertData, err = dataFromSliceOrFile(c.TLS.CertData, c.TLS.CertFile) + if err != nil { + return err + } + + c.TLS.KeyData, err = dataFromSliceOrFile(c.TLS.KeyData, c.TLS.KeyFile) + if err != nil { + return err + } + return nil +} + +// dataFromSliceOrFile returns data from the slice (if non-empty), or from the file, +// or an error if an error occurred reading the file +func dataFromSliceOrFile(data []byte, file string) ([]byte, error) { + if len(data) > 0 { + return data, nil + } + if len(file) > 0 { + fileData, err := ioutil.ReadFile(file) + if err != nil { + return []byte{}, err + } + return fileData, nil + } + return nil, nil +} + +// rootCertPool returns nil if caData is empty. When passed along, this will mean "use system CAs". +// When caData is not empty, it will be the ONLY information used in the CertPool. +func rootCertPool(caData []byte) *x509.CertPool { + // What we really want is a copy of x509.systemRootsPool, but that isn't exposed. It's difficult to build (see the go + // code for a look at the platform specific insanity), so we'll use the fact that RootCAs == nil gives us the system values + // It doesn't allow trusting either/or, but hopefully that won't be an issue + if len(caData) == 0 { + return nil + } + + // if we have caData, use it + certPool := x509.NewCertPool() + certPool.AppendCertsFromPEM(caData) + return certPool +}